@sheerid/jslib-nightly 2.104.0-alpha.0 → 2.104.0-alpha.2

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 (305) hide show
  1. package/_mysheerid-preview.css +4 -4
  2. package/_mysheerid-preview.js +2350 -2429
  3. package/_mysheerid-preview.js.map +1 -1
  4. package/chunk/{EmailLoopPending-D-O7IRrU.js → EmailLoopPending-CKTAwQQA.js} +9 -9
  5. package/chunk/{EmailLoopPending-D-O7IRrU.js.map → EmailLoopPending-CKTAwQQA.js.map} +1 -1
  6. package/chunk/{EmailLoopPending-DmENoLpP.js → EmailLoopPending-Dzs07hxx.js} +9 -9
  7. package/chunk/{EmailLoopPending-DmENoLpP.js.map → EmailLoopPending-Dzs07hxx.js.map} +1 -1
  8. package/chunk/LicensedProfessionalOrganizationComponent-BNNNPaDn.js +45 -0
  9. package/chunk/LicensedProfessionalOrganizationComponent-BNNNPaDn.js.map +1 -0
  10. package/chunk/LicensedProfessionalOrganizationComponent-trZr_eIW.js +49 -0
  11. package/chunk/LicensedProfessionalOrganizationComponent-trZr_eIW.js.map +1 -0
  12. package/chunk/Onfido-CMH3IUna.js +4 -4
  13. package/chunk/{StepIDCheckLoopOnfido-mZhLONqq.js → StepIDCheckLoopOnfido-C9iUX8TC.js} +7 -7
  14. package/chunk/{StepIDCheckLoopOnfido-BRtMQNQl.js.map → StepIDCheckLoopOnfido-C9iUX8TC.js.map} +1 -1
  15. package/chunk/{StepIDCheckLoopOnfido-BRtMQNQl.js → StepIDCheckLoopOnfido-lChJAp_W.js} +7 -7
  16. package/chunk/{StepIDCheckLoopOnfido-mZhLONqq.js.map → StepIDCheckLoopOnfido-lChJAp_W.js.map} +1 -1
  17. package/chunk/{StepIDCheckLoopRegula-1wd-jJGJ.js → StepIDCheckLoopRegula-BB8xA4nn.js} +5 -5
  18. package/chunk/{StepIDCheckLoopRegula-1wd-jJGJ.js.map → StepIDCheckLoopRegula-BB8xA4nn.js.map} +1 -1
  19. package/chunk/{StepIDCheckLoopRegula-jyg1vIi3.js → StepIDCheckLoopRegula-D8XhToQz.js} +5 -5
  20. package/chunk/{StepIDCheckLoopRegula-jyg1vIi3.js.map → StepIDCheckLoopRegula-D8XhToQz.js.map} +1 -1
  21. package/chunk/{StepInactiveMilitaryPersonalInfoComponent-CmQGKlal.js → StepInactiveMilitaryPersonalInfoComponent-ClKql0Nd.js} +16 -16
  22. package/chunk/{StepInactiveMilitaryPersonalInfoComponent-CmQGKlal.js.map → StepInactiveMilitaryPersonalInfoComponent-ClKql0Nd.js.map} +1 -1
  23. package/chunk/{StepInactiveMilitaryPersonalInfoComponent-Qfl3ZvB1.js → StepInactiveMilitaryPersonalInfoComponent-DXkei7Fp.js} +16 -16
  24. package/chunk/{StepInactiveMilitaryPersonalInfoComponent-Qfl3ZvB1.js.map → StepInactiveMilitaryPersonalInfoComponent-DXkei7Fp.js.map} +1 -1
  25. package/chunk/ar-CtJ_9k3U.js +4 -4
  26. package/chunk/bg-CWxXfiDq.js +4 -4
  27. package/chunk/bn-IN-Dpq_hCqt.js +4 -4
  28. package/chunk/cs-HevyelX7.js +4 -4
  29. package/chunk/da-6QXhWjWH.js +4 -4
  30. package/chunk/de-ChuCvRLv.js +4 -4
  31. package/chunk/el-3IAhABcN.js +4 -4
  32. package/chunk/en-GB-ByNBaer-.js +4 -4
  33. package/chunk/es-CL_dUc9X.js +4 -4
  34. package/chunk/es-ES-CW4At4Ol.js +4 -4
  35. package/chunk/fi-D8cIebkk.js +4 -4
  36. package/chunk/fr-BDU-1C6f.js +4 -4
  37. package/chunk/fr-CA-Dc02rv8D.js +4 -4
  38. package/chunk/ga-P7eP-INQ.js +4 -4
  39. package/chunk/hi-IN-DlmwjoqH.js +4 -4
  40. package/chunk/hr-CT_VP_lm.js +4 -4
  41. package/chunk/hu-I8Z1uXsR.js +4 -4
  42. package/chunk/id-CUPTGKOT.js +4 -4
  43. package/chunk/{index-whConjrR.js → index-B1579hxf.js} +11 -11
  44. package/chunk/{index-n6-LNqUp.js.map → index-B1579hxf.js.map} +1 -1
  45. package/chunk/{index-D6Gez9pU.js → index-B4B6qxaM.js} +12 -12
  46. package/chunk/{index-DyHhX3QL.js.map → index-B4B6qxaM.js.map} +1 -1
  47. package/chunk/{index-D6RaCifq.js → index-B5okgMmp.js} +12 -12
  48. package/chunk/{index-IntP52Fm.js.map → index-B5okgMmp.js.map} +1 -1
  49. package/chunk/{index-Cq8qB8GK.js → index-B8tKf2Rd.js} +13 -13
  50. package/chunk/{index-F-HVkQz5.js.map → index-B8tKf2Rd.js.map} +1 -1
  51. package/chunk/{index-25aIMfhs.js → index-B92Kfyw6.js} +67 -68
  52. package/chunk/index-B92Kfyw6.js.map +1 -0
  53. package/chunk/{index-BrVZpRb7.js → index-BDsZCFuU.js} +6 -6
  54. package/chunk/{index-BgB4HxER.js.map → index-BDsZCFuU.js.map} +1 -1
  55. package/chunk/{index-C3tQa9xA.js → index-BGGHZBWq.js} +5 -5
  56. package/chunk/{index-1tM2UWke.js.map → index-BGGHZBWq.js.map} +1 -1
  57. package/chunk/{index-D_lbJwrN.js → index-BW4s6-PH.js} +67 -68
  58. package/chunk/index-BW4s6-PH.js.map +1 -0
  59. package/chunk/{index-DyHhX3QL.js → index-BYMr8It7.js} +12 -12
  60. package/chunk/{index-D6Gez9pU.js.map → index-BYMr8It7.js.map} +1 -1
  61. package/chunk/{index-BjWeyRVL.js → index-Bb9hNLHu.js} +16 -16
  62. package/chunk/{index-C6cgSdQ9.js.map → index-Bb9hNLHu.js.map} +1 -1
  63. package/chunk/{index-F-HVkQz5.js → index-BjaCS2a8.js} +13 -13
  64. package/chunk/{index-Cq8qB8GK.js.map → index-BjaCS2a8.js.map} +1 -1
  65. package/chunk/{index-DJReh58z.js → index-Bld-AWYE.js} +9 -9
  66. package/chunk/{index-DJReh58z.js.map → index-Bld-AWYE.js.map} +1 -1
  67. package/chunk/{index-DFjiwKs3.js → index-BnPrfsM1.js} +5 -5
  68. package/chunk/{index-rjS-77t0.js.map → index-BnPrfsM1.js.map} +1 -1
  69. package/chunk/{index-B_CvWvhW.js → index-BupTUiiS.js} +6 -6
  70. package/chunk/{index-Bv_0MGCt.js.map → index-BupTUiiS.js.map} +1 -1
  71. package/chunk/{index-vIL1gjSk.js → index-BvGP9l7M.js} +6 -6
  72. package/chunk/{index-DR_Yi6nm.js.map → index-BvGP9l7M.js.map} +1 -1
  73. package/chunk/{index-Cb7GlxEu.js → index-CCUi9Uhw.js} +5 -5
  74. package/chunk/{index-BmJ3aubI.js.map → index-CCUi9Uhw.js.map} +1 -1
  75. package/chunk/{index-DR_Yi6nm.js → index-CEi_QkyI.js} +6 -6
  76. package/chunk/{index-vIL1gjSk.js.map → index-CEi_QkyI.js.map} +1 -1
  77. package/chunk/{index-CGKKTwvx.js → index-CZjGTko2.js} +9 -9
  78. package/chunk/{index-CGKKTwvx.js.map → index-CZjGTko2.js.map} +1 -1
  79. package/chunk/index-CblWzXDU.js +169 -0
  80. package/chunk/index-CblWzXDU.js.map +1 -0
  81. package/chunk/{index-1tM2UWke.js → index-CfUabHav.js} +5 -5
  82. package/chunk/{index-C3tQa9xA.js.map → index-CfUabHav.js.map} +1 -1
  83. package/chunk/{index-BmJ3aubI.js → index-CjcHzfTY.js} +5 -5
  84. package/chunk/{index-Cb7GlxEu.js.map → index-CjcHzfTY.js.map} +1 -1
  85. package/chunk/{index-DPLvpl1z.js → index-Cp0C-9fh.js} +8 -8
  86. package/chunk/{index-BSXBGGOf.js.map → index-Cp0C-9fh.js.map} +1 -1
  87. package/chunk/{index-CEidf7uT.js → index-Cq__fToG.js} +5 -5
  88. package/chunk/{index-BJxmlJd1.js.map → index-Cq__fToG.js.map} +1 -1
  89. package/chunk/{index-BgB4HxER.js → index-D6oLMvTq.js} +6 -6
  90. package/chunk/{index-BrVZpRb7.js.map → index-D6oLMvTq.js.map} +1 -1
  91. package/chunk/{index-n6-LNqUp.js → index-D7O7vvSe.js} +11 -11
  92. package/chunk/{index-whConjrR.js.map → index-D7O7vvSe.js.map} +1 -1
  93. package/chunk/{index-C6cgSdQ9.js → index-DCKw4cP_.js} +16 -16
  94. package/chunk/{index-BjWeyRVL.js.map → index-DCKw4cP_.js.map} +1 -1
  95. package/chunk/{index-ygMzyxW9.js → index-DFsuXQL_.js} +6 -6
  96. package/chunk/{index-D8z4eipH.js.map → index-DFsuXQL_.js.map} +1 -1
  97. package/chunk/{index-IntP52Fm.js → index-DGGRPaEI.js} +12 -12
  98. package/chunk/{index-D6RaCifq.js.map → index-DGGRPaEI.js.map} +1 -1
  99. package/chunk/index-DIkWpujR.js +4 -4
  100. package/chunk/{index-i9-QlgZ0.js → index-DPv0lytr.js} +12 -12
  101. package/chunk/{index-i9-QlgZ0.js.map → index-DPv0lytr.js.map} +1 -1
  102. package/chunk/{index-BSXBGGOf.js → index-DSrYVtDo.js} +8 -8
  103. package/chunk/{index-DPLvpl1z.js.map → index-DSrYVtDo.js.map} +1 -1
  104. package/chunk/{index-GaKINs6g.js → index-Dba2dHcR.js} +12 -12
  105. package/chunk/{index-GaKINs6g.js.map → index-Dba2dHcR.js.map} +1 -1
  106. package/chunk/{index-BJxmlJd1.js → index-DhpucFa7.js} +5 -5
  107. package/chunk/{index-CEidf7uT.js.map → index-DhpucFa7.js.map} +1 -1
  108. package/chunk/{index-DZ0bnNgg.js → index-DnCqjuSC.js} +13 -13
  109. package/chunk/{index-D1j4nnQa.js.map → index-DnCqjuSC.js.map} +1 -1
  110. package/chunk/{index-D1j4nnQa.js → index-DpYUZXus.js} +13 -13
  111. package/chunk/{index-DZ0bnNgg.js.map → index-DpYUZXus.js.map} +1 -1
  112. package/chunk/{index-D8z4eipH.js → index-QVvWIHrD.js} +6 -6
  113. package/chunk/{index-ygMzyxW9.js.map → index-QVvWIHrD.js.map} +1 -1
  114. package/chunk/{index-y-QcpyIc.js → index-UGfD9tnj.js} +63 -61
  115. package/chunk/index-UGfD9tnj.js.map +1 -0
  116. package/chunk/{index-rjS-77t0.js → index-YmkMflXj.js} +5 -5
  117. package/chunk/{index-DFjiwKs3.js.map → index-YmkMflXj.js.map} +1 -1
  118. package/chunk/{index-Bv_0MGCt.js → index-iZ8pO5if.js} +6 -6
  119. package/chunk/{index-B_CvWvhW.js.map → index-iZ8pO5if.js.map} +1 -1
  120. package/chunk/is-CUuXi4qZ.js +4 -4
  121. package/chunk/it-BNmynTsg.js +4 -4
  122. package/chunk/iw-FGzquR_X.js +4 -4
  123. package/chunk/ja-YgUpXA0l.js +4 -4
  124. package/chunk/ko-CuNS5J_M.js +4 -4
  125. package/chunk/lo-BEf8aFjR.js +4 -4
  126. package/chunk/lt-DvX1gz1a.js +4 -4
  127. package/chunk/ms-gSqM-Mfi.js +4 -4
  128. package/chunk/nl-BE-Cid5LFlN.js +4 -4
  129. package/chunk/nl-CUUTswxa.js +4 -4
  130. package/chunk/no-BvUqlShV.js +4 -4
  131. package/chunk/pl-CU8leZhI.js +4 -4
  132. package/chunk/pt-BR-CboWpHFi.js +4 -4
  133. package/chunk/pt-BnK7xRT_.js +4 -4
  134. package/chunk/ro-BfAyXxSW.js +4 -4
  135. package/chunk/ru-BD-YGPuQ.js +4 -4
  136. package/chunk/sk-CqsabpdG.js +4 -4
  137. package/chunk/sl-CeVAf0S_.js +4 -4
  138. package/chunk/sr-DSaHxcCQ.js +4 -4
  139. package/chunk/sv-DOyWYViy.js +4 -4
  140. package/chunk/sw-2Q7Jo6wp.js +4 -4
  141. package/chunk/th-BZ6F9sPf.js +4 -4
  142. package/chunk/tr-om80xrv2.js +4 -4
  143. package/chunk/uk-Dxugux8e.js +4 -4
  144. package/chunk/ur-OBILUeZ7.js +4 -4
  145. package/chunk/{useCollectFieldsEndpoint-CumMd2sJ.js → useCollectFieldsEndpoint-C5fsaYJe.js} +5 -5
  146. package/chunk/{useCollectFieldsEndpoint-CumMd2sJ.js.map → useCollectFieldsEndpoint-C5fsaYJe.js.map} +1 -1
  147. package/chunk/{useCollectFieldsEndpoint-V5bz5WAF.js → useCollectFieldsEndpoint-kmLFyUA-.js} +5 -5
  148. package/chunk/{useCollectFieldsEndpoint-V5bz5WAF.js.map → useCollectFieldsEndpoint-kmLFyUA-.js.map} +1 -1
  149. package/chunk/{useEmailFirstExperiment-CV5nAxtl.js → useEmailFirstExperiment-CSa3DQll.js} +5 -5
  150. package/chunk/{useEmailFirstExperiment-CV5nAxtl.js.map → useEmailFirstExperiment-CSa3DQll.js.map} +1 -1
  151. package/chunk/{useEmailFirstExperiment-mjdDc7vk.js → useEmailFirstExperiment-DZ1B78ke.js} +5 -5
  152. package/chunk/{useEmailFirstExperiment-mjdDc7vk.js.map → useEmailFirstExperiment-DZ1B78ke.js.map} +1 -1
  153. package/chunk/vi-BOR2GuRI.js +4 -4
  154. package/chunk/zh-HK-BI-IHOGG.js +4 -4
  155. package/chunk/zh-eoMG5RFC.js +4 -4
  156. package/chunk/zu-D_A8wcJW.js +4 -4
  157. package/es6.css +4 -4
  158. package/jslib.js +35 -35
  159. package/lib/{EmailLoopPending-DUy2k56y.js → EmailLoopPending-9TIqOjh0.js} +11 -11
  160. package/lib/{EmailLoopPending-DUy2k56y.js.map → EmailLoopPending-9TIqOjh0.js.map} +1 -1
  161. package/lib/LicensedProfessionalOrganizationComponent-BdlRIkjK.js +46 -0
  162. package/lib/LicensedProfessionalOrganizationComponent-BdlRIkjK.js.map +1 -0
  163. package/lib/Onfido-CMH3IUna.js +4 -4
  164. package/lib/StepCollectMilitaryStatusComponent-D9AxEZrO.js +11 -0
  165. package/lib/{StepCollectMilitaryStatusComponent-u1rI8N4t.js.map → StepCollectMilitaryStatusComponent-D9AxEZrO.js.map} +1 -1
  166. package/lib/{StepIDCheckLoopOnfido-DirszrOR.js → StepIDCheckLoopOnfido-tTk18P23.js} +19 -19
  167. package/lib/{StepIDCheckLoopOnfido-DirszrOR.js.map → StepIDCheckLoopOnfido-tTk18P23.js.map} +1 -1
  168. package/lib/{StepIDCheckLoopRegula-DoIQP1h2.js → StepIDCheckLoopRegula-BzHh3YEv.js} +5 -5
  169. package/lib/{StepIDCheckLoopRegula-DoIQP1h2.js.map → StepIDCheckLoopRegula-BzHh3YEv.js.map} +1 -1
  170. package/lib/{StepInactiveMilitaryPersonalInfoComponent-uX6OkV0d.js → StepInactiveMilitaryPersonalInfoComponent-DCgIcHvZ.js} +18 -18
  171. package/lib/{StepInactiveMilitaryPersonalInfoComponent-uX6OkV0d.js.map → StepInactiveMilitaryPersonalInfoComponent-DCgIcHvZ.js.map} +1 -1
  172. package/lib/{VerificationApiUtils-DXDQAg5m.js → VerificationApiUtils-hb7EqMfE.js} +5 -5
  173. package/lib/{VerificationApiUtils-DXDQAg5m.js.map → VerificationApiUtils-hb7EqMfE.js.map} +1 -1
  174. package/lib/ar-CtJ_9k3U.js +4 -4
  175. package/lib/bg-CWxXfiDq.js +4 -4
  176. package/lib/bn-IN-Dpq_hCqt.js +4 -4
  177. package/lib/cs-HevyelX7.js +4 -4
  178. package/lib/da-6QXhWjWH.js +4 -4
  179. package/lib/de-ChuCvRLv.js +4 -4
  180. package/lib/el-3IAhABcN.js +4 -4
  181. package/lib/en-GB-ByNBaer-.js +4 -4
  182. package/lib/es-CL_dUc9X.js +4 -4
  183. package/lib/es-ES-CW4At4Ol.js +4 -4
  184. package/lib/{es6-DS7nD0gX.js → es6-C6MdgCMX.js} +2901 -2980
  185. package/lib/es6-C6MdgCMX.js.map +1 -0
  186. package/lib/fi-D8cIebkk.js +4 -4
  187. package/lib/fr-BDU-1C6f.js +4 -4
  188. package/lib/fr-CA-Dc02rv8D.js +4 -4
  189. package/lib/ga-P7eP-INQ.js +4 -4
  190. package/lib/hi-IN-DlmwjoqH.js +4 -4
  191. package/lib/hr-CT_VP_lm.js +4 -4
  192. package/lib/hu-I8Z1uXsR.js +4 -4
  193. package/lib/id-CUPTGKOT.js +4 -4
  194. package/lib/{index-AWpSRRq3.js → index-A2uleoGr.js} +34 -34
  195. package/lib/{index-AWpSRRq3.js.map → index-A2uleoGr.js.map} +1 -1
  196. package/lib/index-B0q6ScmE.js +171 -0
  197. package/lib/index-B0q6ScmE.js.map +1 -0
  198. package/lib/{index--qLF6ZOW.js → index-B4tPRnWs.js} +58 -59
  199. package/lib/index-B4tPRnWs.js.map +1 -0
  200. package/lib/{index-CLj9YCrn.js → index-BF3H-Cda.js} +22 -22
  201. package/lib/{index-CLj9YCrn.js.map → index-BF3H-Cda.js.map} +1 -1
  202. package/lib/{index-VC3WFrsr.js → index-BJIfbxEt.js} +8 -8
  203. package/lib/{index-VC3WFrsr.js.map → index-BJIfbxEt.js.map} +1 -1
  204. package/lib/{index-Da2aS2uY.js → index-BplQ7imw.js} +7 -7
  205. package/lib/{index-Da2aS2uY.js.map → index-BplQ7imw.js.map} +1 -1
  206. package/lib/{index-CyiYceqn.js → index-BpszpgeX.js} +14 -14
  207. package/lib/{index-CyiYceqn.js.map → index-BpszpgeX.js.map} +1 -1
  208. package/lib/index-BvlWWXiT.js +11 -0
  209. package/lib/index-BvlWWXiT.js.map +1 -0
  210. package/lib/index-CJvrsSXZ.js +11 -0
  211. package/lib/index-CJvrsSXZ.js.map +1 -0
  212. package/lib/{index-CCflTrqh.js → index-CZjkIENw.js} +10 -10
  213. package/lib/{index-CCflTrqh.js.map → index-CZjkIENw.js.map} +1 -1
  214. package/lib/{index-DcOpzG-K.js → index-CZodZNg-.js} +5 -5
  215. package/lib/{index-DcOpzG-K.js.map → index-CZodZNg-.js.map} +1 -1
  216. package/lib/{index-DEYBhR7F.js → index-Cp36Pcoi.js} +12 -12
  217. package/lib/{index-DEYBhR7F.js.map → index-Cp36Pcoi.js.map} +1 -1
  218. package/lib/{index-CwqfypY1.js → index-D4eERCAu.js} +5 -5
  219. package/lib/{index-CwqfypY1.js.map → index-D4eERCAu.js.map} +1 -1
  220. package/lib/index-DIkWpujR.js +4 -4
  221. package/lib/{index-CgJWGuRF.js → index-DKrXU7hs.js} +7 -7
  222. package/lib/{index-CgJWGuRF.js.map → index-DKrXU7hs.js.map} +1 -1
  223. package/lib/index-DLUpqP9u.js +11 -0
  224. package/lib/index-DLUpqP9u.js.map +1 -0
  225. package/lib/{index-CY10ElCy.js → index-DyBgfOX7.js} +5 -5
  226. package/lib/{index-CY10ElCy.js.map → index-DyBgfOX7.js.map} +1 -1
  227. package/lib/{index-CkW6g9oh.js → index-N-dolDtu.js} +12 -12
  228. package/lib/{index-CkW6g9oh.js.map → index-N-dolDtu.js.map} +1 -1
  229. package/lib/{index-D-0wY68l.js → index-QQE4f5yZ.js} +8 -8
  230. package/lib/{index-D-0wY68l.js.map → index-QQE4f5yZ.js.map} +1 -1
  231. package/lib/{index-uCUcf8WW.js → index-cfFxpmJ0.js} +5 -5
  232. package/lib/{index-uCUcf8WW.js.map → index-cfFxpmJ0.js.map} +1 -1
  233. package/lib/{index-BAFdbWcI.js → index-qTuKj59y.js} +9 -9
  234. package/lib/{index-BAFdbWcI.js.map → index-qTuKj59y.js.map} +1 -1
  235. package/lib/{index-CJfYYEay.js → index-uG_slt2C.js} +5 -5
  236. package/lib/{index-CJfYYEay.js.map → index-uG_slt2C.js.map} +1 -1
  237. package/lib/{index-C1JFiqbD.js → index-vHwl9Ouo.js} +13 -13
  238. package/lib/{index-C1JFiqbD.js.map → index-vHwl9Ouo.js.map} +1 -1
  239. package/lib/index-wzVNqFMX.js +11 -0
  240. package/lib/index-wzVNqFMX.js.map +1 -0
  241. package/lib/is-CUuXi4qZ.js +4 -4
  242. package/lib/it-BNmynTsg.js +4 -4
  243. package/lib/iw-FGzquR_X.js +4 -4
  244. package/lib/ja-YgUpXA0l.js +4 -4
  245. package/lib/ko-CuNS5J_M.js +4 -4
  246. package/lib/lo-BEf8aFjR.js +4 -4
  247. package/lib/lt-DvX1gz1a.js +4 -4
  248. package/lib/ms-gSqM-Mfi.js +4 -4
  249. package/lib/nl-BE-Cid5LFlN.js +4 -4
  250. package/lib/nl-CUUTswxa.js +4 -4
  251. package/lib/no-BvUqlShV.js +4 -4
  252. package/lib/pl-CU8leZhI.js +4 -4
  253. package/lib/pt-BR-CboWpHFi.js +4 -4
  254. package/lib/pt-BnK7xRT_.js +4 -4
  255. package/lib/ro-BfAyXxSW.js +4 -4
  256. package/lib/ru-BD-YGPuQ.js +4 -4
  257. package/lib/sk-CqsabpdG.js +4 -4
  258. package/lib/sl-CeVAf0S_.js +4 -4
  259. package/lib/sr-DSaHxcCQ.js +4 -4
  260. package/lib/sv-DOyWYViy.js +4 -4
  261. package/lib/sw-2Q7Jo6wp.js +4 -4
  262. package/lib/th-BZ6F9sPf.js +4 -4
  263. package/lib/tr-om80xrv2.js +4 -4
  264. package/lib/uk-Dxugux8e.js +4 -4
  265. package/lib/ur-OBILUeZ7.js +4 -4
  266. package/lib/{useCollectFieldsEndpoint-DhvzoNQ8.js → useCollectFieldsEndpoint-wNz5nMBP.js} +8 -8
  267. package/lib/{useCollectFieldsEndpoint-DhvzoNQ8.js.map → useCollectFieldsEndpoint-wNz5nMBP.js.map} +1 -1
  268. package/lib/{useEmailFirstExperiment-r3ZPOBWV.js → useEmailFirstExperiment-Bk3uBcKy.js} +5 -5
  269. package/lib/{useEmailFirstExperiment-r3ZPOBWV.js.map → useEmailFirstExperiment-Bk3uBcKy.js.map} +1 -1
  270. package/lib/vi-BOR2GuRI.js +4 -4
  271. package/lib/zh-HK-BI-IHOGG.js +4 -4
  272. package/lib/zh-eoMG5RFC.js +4 -4
  273. package/lib/zu-D_A8wcJW.js +4 -4
  274. package/package.json +1 -1
  275. package/sheerid-install.css +4 -4
  276. package/sheerid-install.js +5 -5
  277. package/sheerid.css +4 -4
  278. package/sheerid.js +2355 -2434
  279. package/sheerid.js.map +1 -1
  280. package/src/lib/types/types.d.ts +0 -1
  281. package/types-reference.zip +0 -0
  282. package/chunk/LicensedProfessionalOrganizationComponent-BrW9osPt.js +0 -55
  283. package/chunk/LicensedProfessionalOrganizationComponent-BrW9osPt.js.map +0 -1
  284. package/chunk/LicensedProfessionalOrganizationComponent-Cu6a9uBs.js +0 -51
  285. package/chunk/LicensedProfessionalOrganizationComponent-Cu6a9uBs.js.map +0 -1
  286. package/chunk/index-25aIMfhs.js.map +0 -1
  287. package/chunk/index-2tpdu0Sm.js +0 -167
  288. package/chunk/index-2tpdu0Sm.js.map +0 -1
  289. package/chunk/index-D_lbJwrN.js.map +0 -1
  290. package/chunk/index-y-QcpyIc.js.map +0 -1
  291. package/lib/LicensedProfessionalOrganizationComponent-BPtxmkjH.js +0 -52
  292. package/lib/LicensedProfessionalOrganizationComponent-BPtxmkjH.js.map +0 -1
  293. package/lib/StepCollectMilitaryStatusComponent-u1rI8N4t.js +0 -11
  294. package/lib/es6-DS7nD0gX.js.map +0 -1
  295. package/lib/index--qLF6ZOW.js.map +0 -1
  296. package/lib/index-0NkCv3Y-.js +0 -11
  297. package/lib/index-0NkCv3Y-.js.map +0 -1
  298. package/lib/index-9ka8yNRo.js +0 -168
  299. package/lib/index-9ka8yNRo.js.map +0 -1
  300. package/lib/index-B9dEWYQH.js +0 -11
  301. package/lib/index-B9dEWYQH.js.map +0 -1
  302. package/lib/index-BY6Xy81u.js +0 -11
  303. package/lib/index-BY6Xy81u.js.map +0 -1
  304. package/lib/index-C3Iqch6i.js +0 -11
  305. package/lib/index-C3Iqch6i.js.map +0 -1
@@ -4,49 +4,48 @@
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.104.0-alpha.0
8
- * BUILD_TIMESTAMP: 1746122131368
9
- * BUILD_DATE: Thu May 01 2025 17:55:31 GMT+0000 (Coordinated Universal Time)
10
- * BUILD_COMMIT: 11de903d86267c3dbd7e05948a323fa12b63d0ec
7
+ * VERSION: 2.104.0-alpha.2
8
+ * BUILD_TIMESTAMP: 1746142396526
9
+ * BUILD_DATE: Thu May 01 2025 23:33:16 GMT+0000 (Coordinated Universal Time)
10
+ * BUILD_COMMIT: 890118c01f0c12b348ca343732208200aed0c6c3
11
11
  */
12
- import { i as Z, al as w, a as l, j as a, X as S, b as i, R as g, h as v, n as ee, x as ae, P as se, ae as ne, E as R, u as r, y as te, Y as le, am as oe, _ as B, z as de, B as re, $ as ie, f as me, H as ue, J as pe, M as be, K as ce, k as Ce, V as ge, N as he } from "../_mysheerid-preview.js";
13
- import { u as xe, E as Ne, a as L } from "./useEmailFirstExperiment-CV5nAxtl.js";
12
+ import { i as Z, al as B, j as a, X as S, a as m, R as g, h as v, m as ee, w as ae, P as se, ae as ne, E as R, u as r, z as l, x as te, Y as oe, am as le, _ as k, y as de, B as re, $ as me, e as ie, H as ue, J as pe, M as be, K as Ce, f as ce, V as ge, N as he } from "../_mysheerid-preview.js";
13
+ import { u as xe, E as Ne, a as w } from "./useEmailFirstExperiment-CSa3DQll.js";
14
14
  const Ee = ({
15
15
  value: e,
16
16
  isErrored: n,
17
- onChange: o,
18
- intl: c,
17
+ onChange: t,
18
+ intl: C,
19
19
  explanation: h,
20
20
  placeholder: p = "",
21
21
  isRequired: b = !1
22
22
  }) => {
23
- var t;
24
- const m = w("include-cvec-field-france-student"), x = () => m === "labeled-optional" ? /* @__PURE__ */ a.jsx(
25
- i,
23
+ const i = B("include-cvec-field-france-student"), x = () => i === "labeled-optional" ? /* @__PURE__ */ a.jsx(
24
+ m,
26
25
  {
27
26
  id: "cvecNumberExplanation",
28
27
  defaultMessage: "Optional - Add your CVEC number to increase your chances of being verified instantly."
29
28
  }
30
29
  ) : /* @__PURE__ */ a.jsx(
31
- i,
30
+ m,
32
31
  {
33
32
  id: "_EXPERIMENTAL.cvecNumberExplanation",
34
33
  defaultMessage: "Add your CVEC number to increase your chances of being verified instantly."
35
34
  }
36
35
  );
37
- return ((t = l("cvecNumber")) == null ? void 0 : t.hidden) ? null : /* @__PURE__ */ a.jsx(
36
+ return /* @__PURE__ */ a.jsx(
38
37
  S,
39
38
  {
40
39
  fieldId: "cvecNumber",
41
40
  value: e,
42
- onChange: o,
43
- placeholder: p || c.formatHTMLMessage({
41
+ onChange: t,
42
+ placeholder: p || C.formatHTMLMessage({
44
43
  id: "cvecNumberPlaceholder",
45
44
  defaultMessage: "CVEC certificate number"
46
45
  }),
47
- label: /* @__PURE__ */ a.jsx(i, { id: "cvecNumber", defaultMessage: "CVEC certificate number" }),
46
+ label: /* @__PURE__ */ a.jsx(m, { id: "cvecNumber", defaultMessage: "CVEC certificate number" }),
48
47
  errorMessage: n && /* @__PURE__ */ a.jsx(
49
- i,
48
+ m,
50
49
  {
51
50
  id: "errorId.invalidCvecNumber",
52
51
  defaultMessage: "Invalid CVEC certificate number"
@@ -60,39 +59,39 @@ const Ee = ({
60
59
  }, fe = Z(Ee), je = ({
61
60
  verificationService: e
62
61
  }) => {
63
- var f, j, M, F, y, I, O, V, D, P, T, k;
64
- const n = e.viewModel, { fieldValidationErrors: o } = e, c = e.verificationResponse, h = he(), p = w("include-cvec-field-france-student"), b = p !== "control" && p !== "default" && ((f = n == null ? void 0 : n.countryChoice) == null ? void 0 : f.value) === "FR";
62
+ var E, f, j, M, y, F, I, O, V, D, P, T;
63
+ const n = e.viewModel, { fieldValidationErrors: t } = e, C = e.verificationResponse, h = he(), p = B("include-cvec-field-france-student"), b = p !== "control" && p !== "default" && ((E = n == null ? void 0 : n.countryChoice) == null ? void 0 : E.value) === "FR";
65
64
  g.useEffect(() => {
66
65
  b ? d("fieldsToSkipValidation", []) : d("fieldsToSkipValidation", ["cvecNumber"]);
67
66
  }, [b]);
68
67
  const {
69
- isEmailUpTop: m,
68
+ isEmailUpTop: i,
70
69
  isEmailValidationLoading: x,
71
- showFormFields: N,
72
- emailLookupResponse: t,
70
+ showFormFields: L,
71
+ emailLookupResponse: o,
73
72
  emailOnBlur: z,
74
73
  emailOnKeyDown: H,
75
74
  handleResendClick: q,
76
75
  showEmailLookupResponseMessages: A,
77
76
  enableFormFields: K,
78
- isValidEmail: C,
77
+ isValidEmail: c,
79
78
  getOrgByDomain: _,
80
79
  handleOnClickProceedHere: U
81
80
  } = xe(
82
81
  e.programId,
83
82
  n.email,
84
83
  e.verificationResponse.segment
85
- ), [W, E] = g.useState(null), [X, J] = g.useState(null);
84
+ ), [W, N] = g.useState(null), [X, J] = g.useState(null);
86
85
  g.useEffect(() => {
87
- C && t && (async () => {
88
- if (n.email && C && t && t.status === L.NOT_FOUND) {
86
+ c && o && (async () => {
87
+ if (n.email && c && o && o.status === w.NOT_FOUND) {
89
88
  const u = await _(e);
90
- u && (E(u), B(u, e), r("organization", u, e));
89
+ u && (N(u), k(u, e), r("organization", u, e));
91
90
  } else
92
- E(null);
91
+ N(null);
93
92
  })();
94
- }, [n.email, C, t == null ? void 0 : t.status]);
95
- const Y = v(c), d = (s, u) => {
93
+ }, [n.email, c, o == null ? void 0 : o.status]);
94
+ const Y = v(C), d = (s, u) => {
96
95
  const G = ee(
97
96
  n,
98
97
  (Q) => {
@@ -105,7 +104,7 @@ const Ee = ({
105
104
  ae,
106
105
  {
107
106
  verificationService: e,
108
- step: c.currentStep,
107
+ step: C.currentStep,
109
108
  children: [
110
109
  /* @__PURE__ */ a.jsx(
111
110
  se,
@@ -115,15 +114,15 @@ const Ee = ({
115
114
  }
116
115
  ),
117
116
  // #region email-first-experiment
118
- m && /* @__PURE__ */ a.jsx(a.Fragment, { children: /* @__PURE__ */ a.jsxs("div", { className: "email-input-wrapper", children: [
117
+ i && /* @__PURE__ */ a.jsx(a.Fragment, { children: /* @__PURE__ */ a.jsxs("div", { className: "email-input-wrapper", children: [
119
118
  x && /* @__PURE__ */ a.jsx("div", { className: "email-input-wrapper-frame", children: /* @__PURE__ */ a.jsx("div", { className: "sid-spinner scaled", children: /* @__PURE__ */ a.jsx(ne, {}) }) }),
120
119
  /* @__PURE__ */ a.jsx(
121
120
  R,
122
121
  {
123
122
  value: n.email,
124
- isErrored: !!o.email,
123
+ isErrored: !!t.email,
125
124
  explanation: /* @__PURE__ */ a.jsx(
126
- i,
125
+ m,
127
126
  {
128
127
  id: "emailExplanation",
129
128
  defaultMessage: "Personal or school email is fine"
@@ -134,38 +133,38 @@ const Ee = ({
134
133
  },
135
134
  onKeyDown: H,
136
135
  onBlur: z,
137
- disabled: (j = l("email")) == null ? void 0 : j.disabled
136
+ disabled: (f = l("email")) == null ? void 0 : f.disabled
138
137
  }
139
138
  )
140
139
  ] }) }),
141
- A && t && C && /* @__PURE__ */ a.jsx(
140
+ A && o && c && /* @__PURE__ */ a.jsx(
142
141
  Ne,
143
142
  {
144
- emailLookupResponse: t,
143
+ emailLookupResponse: o,
145
144
  onResendClick: q,
146
145
  onHandleClickLink: U
147
146
  }
148
147
  ),
149
- N && /* @__PURE__ */ a.jsx(a.Fragment, { children: /* @__PURE__ */ a.jsxs("div", { className: K || !m ? "" : "sid-disable-elements", children: [
148
+ L && /* @__PURE__ */ a.jsx(a.Fragment, { children: /* @__PURE__ */ a.jsxs("div", { className: K || !i ? "" : "sid-disable-elements", children: [
150
149
  " ",
151
150
  /* @__PURE__ */ a.jsx(te, { verificationService: e }),
152
151
  /* @__PURE__ */ a.jsx(
153
- le,
152
+ oe,
154
153
  {
155
154
  verificationService: e,
156
- disabled: (M = l("country")) == null ? void 0 : M.disabled
155
+ disabled: (j = l("country")) == null ? void 0 : j.disabled
157
156
  }
158
157
  ),
159
158
  /* @__PURE__ */ a.jsx(
160
- oe,
159
+ le,
161
160
  {
162
- value: X || m && (t == null ? void 0 : t.status) === L.NOT_FOUND && W || e.viewModel.organization,
161
+ value: X || i && (o == null ? void 0 : o.status) === w.NOT_FOUND && W || e.viewModel.organization,
163
162
  verificationService: e,
164
- isErrored: !!o.organization,
163
+ isErrored: !!t.organization,
165
164
  isRequired: !0,
166
- disabled: (F = l("organization")) == null ? void 0 : F.disabled,
165
+ disabled: (M = l("organization")) == null ? void 0 : M.disabled,
167
166
  onChange: (s) => {
168
- J(s), B(s, e), r("organization", s, e);
167
+ J(s), k(s, e), r("organization", s, e);
169
168
  }
170
169
  }
171
170
  ),
@@ -174,8 +173,8 @@ const Ee = ({
174
173
  {
175
174
  isRequired: (y = l("cvecNumber")) == null ? void 0 : y.requireIfOptional,
176
175
  value: n.cvecNumber,
177
- isErrored: !!o.cvecNumber,
178
- disabled: (I = l("cvecNumber")) == null ? void 0 : I.disabled,
176
+ isErrored: !!t.cvecNumber,
177
+ disabled: (F = l("cvecNumber")) == null ? void 0 : F.disabled,
179
178
  onChange: (s) => {
180
179
  d("cvecNumber", s), r("cvecNumber", s, e);
181
180
  }
@@ -186,8 +185,8 @@ const Ee = ({
186
185
  de,
187
186
  {
188
187
  value: n.firstName,
189
- isErrored: !!o.firstName,
190
- disabled: (O = l("firstName")) == null ? void 0 : O.disabled,
188
+ isErrored: !!t.firstName,
189
+ disabled: (I = l("firstName")) == null ? void 0 : I.disabled,
191
190
  onChange: (s) => {
192
191
  d("firstName", s), r("firstName", s, e);
193
192
  }
@@ -197,8 +196,8 @@ const Ee = ({
197
196
  re,
198
197
  {
199
198
  value: n.lastName,
200
- isErrored: !!o.lastName,
201
- disabled: (V = l("lastName")) == null ? void 0 : V.disabled,
199
+ isErrored: !!t.lastName,
200
+ disabled: (O = l("lastName")) == null ? void 0 : O.disabled,
202
201
  onChange: (s) => {
203
202
  d("lastName", s), r("lastName", s, e);
204
203
  }
@@ -206,25 +205,25 @@ const Ee = ({
206
205
  )
207
206
  ] }),
208
207
  /* @__PURE__ */ a.jsx(
209
- ie,
208
+ me,
210
209
  {
211
210
  value: n.birthDate,
212
- errorId: o.birthDate,
211
+ errorId: t.birthDate,
213
212
  locale: $,
214
213
  isRequired: !0,
215
- disabled: (D = l("birthDate")) == null ? void 0 : D.disabled,
214
+ disabled: (V = l("birthDate")) == null ? void 0 : V.disabled,
216
215
  onChange: (s) => {
217
216
  d("birthDate", s), r("birthDate", s, e);
218
217
  }
219
218
  }
220
219
  ),
221
- !m && /* @__PURE__ */ a.jsx(
220
+ !i && /* @__PURE__ */ a.jsx(
222
221
  R,
223
222
  {
224
223
  value: n.email,
225
- isErrored: !!o.email,
224
+ isErrored: !!t.email,
226
225
  explanation: /* @__PURE__ */ a.jsx(
227
- i,
226
+ m,
228
227
  {
229
228
  id: "emailExplanation",
230
229
  defaultMessage: "Personal or school email is fine"
@@ -233,8 +232,8 @@ const Ee = ({
233
232
  onChange: (s) => {
234
233
  d("email", s), r("email", s, e);
235
234
  },
236
- onKeyDown: (s) => me(s),
237
- disabled: (P = l("email")) == null ? void 0 : P.disabled
235
+ onKeyDown: (s) => ie(s),
236
+ disabled: (D = l("email")) == null ? void 0 : D.disabled
238
237
  }
239
238
  ),
240
239
  e.programTheme.isSmsNotifierConfigured || e.programTheme.smsLoopEnabled ? /* @__PURE__ */ a.jsx(
@@ -242,8 +241,8 @@ const Ee = ({
242
241
  {
243
242
  isRequired: !!e.programTheme.smsLoopEnabled,
244
243
  value: n.phoneNumber,
245
- isErrored: !!o.phoneNumber,
246
- disabled: (T = l("phoneNumber")) == null ? void 0 : T.disabled,
244
+ isErrored: !!t.phoneNumber,
245
+ disabled: (P = l("phoneNumber")) == null ? void 0 : P.disabled,
247
246
  onChange: (s) => {
248
247
  d("phoneNumber", s), r(
249
248
  "phoneNumber",
@@ -260,8 +259,8 @@ const Ee = ({
260
259
  be,
261
260
  {
262
261
  verificationService: e,
263
- isErrored: !!o.marketConsentValue,
264
- disabled: (k = l("marketConsentValue")) == null ? void 0 : k.disabled,
262
+ isErrored: !!t.marketConsentValue,
263
+ disabled: (T = l("marketConsentValue")) == null ? void 0 : T.disabled,
265
264
  onChange: (s) => {
266
265
  d("metadata", {
267
266
  ...e.viewModel.metadata,
@@ -275,16 +274,16 @@ const Ee = ({
275
274
  viewModel: n
276
275
  }
277
276
  ),
278
- /* @__PURE__ */ a.jsx(ce, { verificationService: e, suffix: "CollectAboveSubmit" }),
277
+ /* @__PURE__ */ a.jsx(Ce, { verificationService: e, suffix: "CollectAboveSubmit" }),
279
278
  /* @__PURE__ */ a.jsx(
280
- Ce,
279
+ ce,
281
280
  {
282
281
  step: ge.collectStudentPersonalInfo,
283
282
  verificationService: e,
284
283
  viewModel: n,
285
284
  failedInstantMatch: Y,
286
285
  buttonText: /* @__PURE__ */ a.jsx(
287
- i,
286
+ m,
288
287
  {
289
288
  id: "step.personalInfo.submitButtonText",
290
289
  defaultMessage: "Verify My Student Status"
@@ -296,7 +295,7 @@ const Ee = ({
296
295
  ]
297
296
  }
298
297
  );
299
- }, ye = je;
298
+ }, Fe = je;
300
299
  export {
301
- ye as default
300
+ Fe as default
302
301
  };
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index-B92Kfyw6.js","sources":["../../src/components/FormFields/CVECNumber/CVECNumberComponent.tsx","../../src/components/StepStudentPersonalInfo/StepStudentPersonalInfoComponent.tsx"],"sourcesContent":["import React from \"react\";\nimport { FormattedHTMLMessage, injectIntl } from \"react-intl\";\nimport { FormFieldComponentProps } from \"../../../lib/types/types\";\nimport { FormFieldText } from \"../FormFieldText/FormFieldText\";\nimport { useFlag } from \"../../FeatureFlags/hooks\";\n\ninterface PassedProps {\n explanation?: string | JSX.Element;\n}\n\nexport const CVECNumber = ({\n value,\n isErrored,\n onChange,\n intl,\n explanation,\n placeholder = \"\",\n isRequired = false,\n}: FormFieldComponentProps & PassedProps) => {\n // #region include-cvec-field-france-student\n const showCvecInputVariation = useFlag(\"include-cvec-field-france-student\");\n\n const getDefaultExplanation = () =>\n showCvecInputVariation === \"labeled-optional\" ? (\n <FormattedHTMLMessage\n id=\"cvecNumberExplanation\"\n defaultMessage=\"Optional - Add your CVEC number to increase your chances of being verified instantly.\"\n />\n ) : (\n <FormattedHTMLMessage\n id=\"_EXPERIMENTAL.cvecNumberExplanation\"\n defaultMessage=\"Add your CVEC number to increase your chances of being verified instantly.\"\n />\n );\n // #endregion include-cvec-field-france-student\n\n return (\n <FormFieldText\n fieldId=\"cvecNumber\"\n value={value}\n onChange={onChange}\n placeholder={\n placeholder ||\n intl.formatHTMLMessage({\n id: \"cvecNumberPlaceholder\",\n defaultMessage: \"CVEC certificate number\",\n })\n }\n label={<FormattedHTMLMessage id=\"cvecNumber\" defaultMessage=\"CVEC certificate number\" />}\n errorMessage={\n isErrored && (\n <FormattedHTMLMessage\n id=\"errorId.invalidCvecNumber\"\n defaultMessage=\"Invalid CVEC certificate number\"\n />\n )\n }\n showPlaceholderAndHideLabel={!!placeholder}\n required={isRequired}\n explanation={explanation || getDefaultExplanation()}\n />\n );\n};\nexport const CVECNumberComponent = injectIntl(CVECNumber);\n","/* eslint-disable */\n/**\n * TODO - preamble\n */\nimport React from \"react\";\nimport { FormattedHTMLMessage } from \"react-intl\";\nimport { produce } from \"immer\";\n\nimport {\n VerificationService,\n StudentPersonalInfoViewModel,\n Organization,\n StudentPersonalInfoResponse,\n CustomFormFieldConfig,\n} from \"../../lib/types/types\";\n\nimport { VerificationStepsEnum } from \"../../lib/types/runtimeTypes\";\nimport { hasFailedInstantMatch } from \"../../lib/VerificationService/VerificationServiceHelpers\";\nimport {\n getFieldConfigByFieldId,\n handleEmailOnKeyDown,\n updateFieldValidationErrorsByFieldId,\n updateViewModelOrganization,\n} from \"../../lib/utils/stepComponentHelpers/stepComponentHelpers\";\n\nimport { ChangeLocaleV2Component } from \"../FormFields/ChangeLocale/ChangeLocaleComponent\";\nimport { MarketConsentWrapperComponent as MarketConsentWrapper } from \"../FormFields/MarketConsentWrapper/MarketConsentWrapperComponent\";\nimport { PhoneNumberComponent as PhoneNumber } from \"../FormFields/PhoneNumber/PhoneNumberComponent\";\nimport { CollegeNameComponent as CollegeName } from \"../FormFields/CollegeName/CollegeNameComponent\";\nimport { FirstNameComponent as FirstName } from \"../FormFields/FirstName/FirstNameComponent\";\nimport { LastNameComponent as LastName } from \"../FormFields/LastName/LastNameComponent\";\nimport { EmailComponent as Email } from \"../FormFields/Email/EmailComponent\";\nimport { BirthDateComponent as BirthDate } from \"../FormFields/BirthDate/BirthDateComponent\";\nimport { CountryComponentWrapper } from \"../FormFields/Country/CountryComponentWrapper\";\nimport { getOptions } from \"../../options/options\";\nimport { FormFieldCustom } from \"../FormFields/FormFieldCustom/FormFieldCustom\";\nimport { ExtraMessage } from \"../ExtraMessage\";\nimport { PersonalInfoWrapper } from \"../PersonalInfoStepWrapper/PersonalInfoStepWrapper\";\nimport { PersonalInfoStepSubmitButton } from \"../PersonalInfoStepSubmitButton/PersonalInfoStepSubmitButton\";\nimport { PersonalInfoHeader } from \"../FormHeader/StepHeaders/PersonalInfoHeaderComponent\";\nimport { useFlag } from \"../FeatureFlags/hooks\";\nimport { CVECNumberComponent } from \"../FormFields/CVECNumber/CVECNumberComponent\";\nimport EmailLookupResponseMessages from \"../FormFields/EmailFirstCollectInfo/EmailLookupResponseMessageComponent\";\nimport { LoadingSpinnerComponent } from \"../LoadingSpinner/LoadingSpinnerComponent\";\nimport { useEmailFirstExperiment } from \"../FormFields/EmailFirstCollectInfo/useEmailFirstExperiment\";\nimport { EmailLookupStatus } from \"../FormFields/EmailFirstCollectInfo/types\";\n\ninterface StepStudentPersonalInfoComponentProps {\n verificationService: VerificationService;\n}\n\nconst StepStudentPersonalInfo = ({\n verificationService,\n}: StepStudentPersonalInfoComponentProps) => {\n const viewModel = verificationService.viewModel as StudentPersonalInfoViewModel;\n const { fieldValidationErrors } = verificationService;\n const verificationResponse =\n verificationService.verificationResponse as StudentPersonalInfoResponse;\n const options = getOptions();\n\n // #region include-cvec-field-france-student\n const showCvecInputVariation = useFlag(\"include-cvec-field-france-student\");\n const showCvecInput =\n showCvecInputVariation !== \"control\" &&\n showCvecInputVariation !== \"default\" &&\n viewModel?.countryChoice?.value === \"FR\";\n\n React.useEffect(() => {\n if (showCvecInput) {\n updateStudentViewModel(\"fieldsToSkipValidation\", []);\n } else {\n // Don't validate CVEC number if country is not France\n updateStudentViewModel(\"fieldsToSkipValidation\", [\"cvecNumber\"]);\n }\n }, [showCvecInput]);\n // #endregion include-cvec-field-france-student\n\n // #region collect-info-step-email-first\n const {\n isEmailUpTop,\n isEmailValidationLoading,\n showFormFields,\n emailLookupResponse,\n emailOnBlur,\n emailOnKeyDown,\n handleResendClick,\n showEmailLookupResponseMessages,\n enableFormFields,\n isValidEmail,\n getOrgByDomain,\n handleOnClickProceedHere,\n } = useEmailFirstExperiment(\n verificationService.programId,\n viewModel.email,\n verificationService.verificationResponse.segment,\n );\n const [orgByEmailDomain, setOrgByEmailDomain] = React.useState<Organization | null>(null);\n const [selectedOrganization, setSelectedOrganization] = React.useState<Organization | null>(null);\n\n React.useEffect(() => {\n const fetchOrg = async () => {\n if (\n viewModel.email &&\n isValidEmail &&\n emailLookupResponse &&\n emailLookupResponse.status === EmailLookupStatus.NOT_FOUND\n ) {\n const org = await getOrgByDomain(verificationService);\n\n if (org) {\n setOrgByEmailDomain(org);\n updateViewModelOrganization(org, verificationService);\n updateFieldValidationErrorsByFieldId(\"organization\", org, verificationService);\n }\n } else {\n setOrgByEmailDomain(null);\n }\n };\n\n if (isValidEmail && emailLookupResponse) {\n fetchOrg();\n }\n }, [viewModel.email, isValidEmail, emailLookupResponse?.status]);\n // #endregion collect-info-step-email-first\n\n const failedInstantMatch = hasFailedInstantMatch(verificationResponse);\n\n const updateStudentViewModel = (key: keyof StudentPersonalInfoViewModel, value: any) => {\n const nextState: StudentPersonalInfoViewModel = produce(\n viewModel,\n (draft: StudentPersonalInfoViewModel) => {\n draft[key] = value;\n },\n );\n verificationService.updateViewModel(nextState);\n };\n\n const locale = viewModel.localeChoice.value;\n\n return (\n <PersonalInfoWrapper\n verificationService={verificationService}\n step={verificationResponse.currentStep}\n >\n <PersonalInfoHeader\n verificationService={verificationService}\n classNameIdentifier=\"student-personal-info\"\n />\n {\n // #region email-first-experiment\n isEmailUpTop && (\n <>\n <div className=\"email-input-wrapper\">\n {isEmailValidationLoading && (\n <div className=\"email-input-wrapper-frame\">\n <div className=\"sid-spinner scaled\">\n <LoadingSpinnerComponent />\n </div>\n </div>\n )}\n <Email\n value={viewModel.email}\n isErrored={!!fieldValidationErrors.email}\n explanation={\n <FormattedHTMLMessage\n id=\"emailExplanation\"\n defaultMessage=\"Personal or school email is fine\"\n />\n }\n onChange={(newValue) => {\n updateStudentViewModel(\"email\", newValue);\n updateFieldValidationErrorsByFieldId(\"email\", newValue, verificationService);\n }}\n onKeyDown={emailOnKeyDown}\n onBlur={emailOnBlur}\n disabled={getFieldConfigByFieldId(\"email\")?.disabled}\n />\n </div>\n </>\n )\n }\n {showEmailLookupResponseMessages && emailLookupResponse && isValidEmail && (\n <EmailLookupResponseMessages\n emailLookupResponse={emailLookupResponse}\n onResendClick={handleResendClick}\n onHandleClickLink={handleOnClickProceedHere}\n />\n )}\n {showFormFields && (\n <>\n <div className={enableFormFields || !isEmailUpTop ? \"\" : \"sid-disable-elements\"}>\n {\" \"}\n <ChangeLocaleV2Component verificationService={verificationService} />\n <CountryComponentWrapper\n verificationService={verificationService}\n disabled={getFieldConfigByFieldId(\"country\")?.disabled}\n />\n <CollegeName\n value={\n selectedOrganization ||\n (isEmailUpTop &&\n emailLookupResponse?.status === EmailLookupStatus.NOT_FOUND &&\n orgByEmailDomain) ||\n (verificationService.viewModel as StudentPersonalInfoViewModel).organization\n }\n verificationService={verificationService}\n isErrored={!!fieldValidationErrors.organization}\n isRequired\n disabled={getFieldConfigByFieldId(\"organization\")?.disabled}\n onChange={(choice: Organization) => {\n setSelectedOrganization(choice);\n updateViewModelOrganization(choice, verificationService);\n updateFieldValidationErrorsByFieldId(\"organization\", choice, verificationService);\n }}\n />\n {showCvecInput && (\n <CVECNumberComponent\n isRequired={getFieldConfigByFieldId(\"cvecNumber\")?.requireIfOptional}\n value={viewModel.cvecNumber}\n isErrored={!!fieldValidationErrors.cvecNumber}\n disabled={getFieldConfigByFieldId(\"cvecNumber\")?.disabled}\n onChange={(newValue) => {\n updateStudentViewModel(\"cvecNumber\", newValue);\n updateFieldValidationErrorsByFieldId(\"cvecNumber\", newValue, verificationService);\n }}\n />\n )}\n <div className=\"sid-names\">\n <FirstName\n value={viewModel.firstName}\n isErrored={!!fieldValidationErrors.firstName}\n disabled={getFieldConfigByFieldId(\"firstName\")?.disabled}\n onChange={(newValue) => {\n updateStudentViewModel(\"firstName\", newValue);\n updateFieldValidationErrorsByFieldId(\"firstName\", newValue, verificationService);\n }}\n />\n\n <LastName\n value={viewModel.lastName}\n isErrored={!!fieldValidationErrors.lastName}\n disabled={getFieldConfigByFieldId(\"lastName\")?.disabled}\n onChange={(newValue) => {\n updateStudentViewModel(\"lastName\", newValue);\n updateFieldValidationErrorsByFieldId(\"lastName\", newValue, verificationService);\n }}\n />\n </div>\n <BirthDate\n value={viewModel.birthDate}\n errorId={fieldValidationErrors.birthDate}\n locale={locale}\n isRequired\n disabled={getFieldConfigByFieldId(\"birthDate\")?.disabled}\n onChange={(newValue) => {\n updateStudentViewModel(\"birthDate\", newValue);\n updateFieldValidationErrorsByFieldId(\"birthDate\", newValue, verificationService);\n }}\n />\n {!isEmailUpTop && (\n <Email\n value={viewModel.email}\n isErrored={!!fieldValidationErrors.email}\n explanation={\n <FormattedHTMLMessage\n id=\"emailExplanation\"\n defaultMessage=\"Personal or school email is fine\"\n />\n }\n onChange={(newValue) => {\n updateStudentViewModel(\"email\", newValue);\n updateFieldValidationErrorsByFieldId(\"email\", newValue, verificationService);\n }}\n onKeyDown={(event) => handleEmailOnKeyDown(event)}\n disabled={getFieldConfigByFieldId(\"email\")?.disabled}\n />\n )}\n {verificationService.programTheme.isSmsNotifierConfigured ||\n verificationService.programTheme.smsLoopEnabled ? (\n <PhoneNumber\n isRequired={!!verificationService.programTheme.smsLoopEnabled}\n value={viewModel.phoneNumber}\n isErrored={!!fieldValidationErrors.phoneNumber}\n disabled={getFieldConfigByFieldId(\"phoneNumber\")?.disabled}\n onChange={(newValue) => {\n updateStudentViewModel(\"phoneNumber\", newValue);\n updateFieldValidationErrorsByFieldId(\n \"phoneNumber\",\n newValue,\n verificationService,\n );\n }}\n selectedCountryCode={viewModel.countryChoice && viewModel.countryChoice.value}\n />\n ) : null}\n {(options.customFormFields || []).map((config: CustomFormFieldConfig) => (\n <FormFieldCustom config={config} verificationService={verificationService} />\n ))}{\" \"}\n <MarketConsentWrapper\n verificationService={verificationService}\n isErrored={!!fieldValidationErrors.marketConsentValue}\n disabled={getFieldConfigByFieldId(\"marketConsentValue\")?.disabled}\n onChange={(newValue) => {\n updateStudentViewModel(\"metadata\", {\n ...verificationService.viewModel.metadata,\n marketConsentValue: newValue,\n });\n updateFieldValidationErrorsByFieldId(\n \"marketConsentValue\",\n newValue,\n verificationService,\n );\n }}\n viewModel={viewModel}\n />\n <ExtraMessage verificationService={verificationService} suffix=\"CollectAboveSubmit\" />\n <PersonalInfoStepSubmitButton\n step={VerificationStepsEnum.collectStudentPersonalInfo}\n verificationService={verificationService}\n viewModel={viewModel}\n failedInstantMatch={failedInstantMatch}\n buttonText={\n <FormattedHTMLMessage\n id=\"step.personalInfo.submitButtonText\"\n defaultMessage=\"Verify My Student Status\"\n />\n }\n />\n </div>\n </>\n )}\n </PersonalInfoWrapper>\n );\n};\n\nexport const StepStudentPersonalInfoComponent = StepStudentPersonalInfo;\n"],"names":["CVECNumber","value","isErrored","onChange","intl","explanation","placeholder","isRequired","showCvecInputVariation","useFlag","getDefaultExplanation","jsx","FormattedHTMLMessage","FormFieldText","CVECNumberComponent","injectIntl","StepStudentPersonalInfo","verificationService","viewModel","fieldValidationErrors","verificationResponse","options","getOptions","showCvecInput","_a","React","updateStudentViewModel","isEmailUpTop","isEmailValidationLoading","showFormFields","emailLookupResponse","emailOnBlur","emailOnKeyDown","handleResendClick","showEmailLookupResponseMessages","enableFormFields","isValidEmail","getOrgByDomain","handleOnClickProceedHere","useEmailFirstExperiment","orgByEmailDomain","setOrgByEmailDomain","selectedOrganization","setSelectedOrganization","EmailLookupStatus","org","updateViewModelOrganization","updateFieldValidationErrorsByFieldId","failedInstantMatch","hasFailedInstantMatch","key","nextState","produce","draft","locale","jsxs","PersonalInfoWrapper","PersonalInfoHeader","Fragment","LoadingSpinnerComponent","Email","newValue","_b","getFieldConfigByFieldId","EmailLookupResponseMessages","ChangeLocaleV2Component","CountryComponentWrapper","_c","CollegeName","_d","choice","_e","_f","FirstName","_g","LastName","_h","BirthDate","_i","event","handleEmailOnKeyDown","_j","PhoneNumber","_k","config","FormFieldCustom","MarketConsentWrapper","_l","ExtraMessage","PersonalInfoStepSubmitButton","VerificationStepsEnum","StepStudentPersonalInfoComponent"],"mappings":";;AAUO,MAAMA,KAAa,CAAC;AAAA,EACzB,OAAAC;AAAA,EACA,WAAAC;AAAA,EACA,UAAAC;AAAA,EACA,MAAAC;AAAA,EACA,aAAAC;AAAA,EACA,aAAAC,IAAc;AAAA,EACd,YAAAC,IAAa;AACf,MAA6C;AAErC,QAAAC,IAAyBC,EAAQ,mCAAmC,GAEpEC,IAAwB,MAC5BF,MAA2B,qBACzBG,gBAAAA,EAAA;AAAA,IAACC;AAAA,IAAA;AAAA,MACC,IAAG;AAAA,MACH,gBAAe;AAAA,IAAA;AAAA,EAAA,IAGjBD,gBAAAA,EAAA;AAAA,IAACC;AAAA,IAAA;AAAA,MACC,IAAG;AAAA,MACH,gBAAe;AAAA,IAAA;AAAA,EAAA;AAMnB,SAAAD,gBAAAA,EAAA;AAAA,IAACE;AAAA,IAAA;AAAA,MACC,SAAQ;AAAA,MACR,OAAAZ;AAAA,MACA,UAAAE;AAAA,MACA,aACEG,KACAF,EAAK,kBAAkB;AAAA,QACrB,IAAI;AAAA,QACJ,gBAAgB;AAAA,MAAA,CACjB;AAAA,MAEH,OAAQO,gBAAAA,EAAA,IAAAC,GAAA,EAAqB,IAAG,cAAa,gBAAe,2BAA0B;AAAA,MACtF,cACEV,KACES,gBAAAA,EAAA;AAAA,QAACC;AAAA,QAAA;AAAA,UACC,IAAG;AAAA,UACH,gBAAe;AAAA,QAAA;AAAA,MACjB;AAAA,MAGJ,6BAA6B,CAAC,CAACN;AAAA,MAC/B,UAAUC;AAAA,MACV,aAAaF,KAAeK,EAAsB;AAAA,IAAA;AAAA,EAAA;AAGxD,GACaI,KAAsBC,EAAWf,EAAU,GCZlDgB,KAA0B,CAAC;AAAA,EAC/B,qBAAAC;AACF,MAA6C;;AAC3C,QAAMC,IAAYD,EAAoB,WAChC,EAAE,uBAAAE,EAA0B,IAAAF,GAC5BG,IACJH,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CAAC,CAACE,EAAsB;AAAA,cACnC,WAAUoE,IAAAxB,EAAwB,oBAAoB,MAA5C,gBAAAwB,EAA+C;AAAA,cACzD,UAAU,CAAC1B,MAAa;AACtB,gBAAAnC,EAAuB,YAAY;AAAA,kBACjC,GAAGT,EAAoB,UAAU;AAAA,kBACjC,oBAAoB4C;AAAA,gBAAA,CACrB,GACDd;AAAA,kBACE;AAAA,kBACAc;AAAA,kBACA5C;AAAA,gBAAA;AAAA,cAEJ;AAAA,cACA,WAAAC;AAAA,YAAA;AAAA,UACF;AAAA,UACCP,gBAAAA,EAAAA,IAAA6E,IAAA,EAAa,qBAAAvE,GAA0C,QAAO,qBAAqB,CAAA;AAAA,UACpFN,gBAAAA,EAAA;AAAA,YAAC8E;AAAA,YAAA;AAAA,cACC,MAAMC,GAAsB;AAAA,cAC5B,qBAAAzE;AAAA,cACA,WAAAC;AAAA,cACA,oBAAA8B;AAAA,cACA,YACErC,gBAAAA,EAAA;AAAA,gBAACC;AAAA,gBAAA;AAAA,kBACC,IAAG;AAAA,kBACH,gBAAe;AAAA,gBAAA;AAAA,cACjB;AAAA,YAAA;AAAA,UAEJ;AAAA,QAAA,EAAA,CACF,EACF,CAAA;AAAA,MAAA;AAAA,IAAA;AAAA,EAAA;AAIR,GAEa+E,KAAmC3E;"}
@@ -4,13 +4,13 @@
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.104.0-alpha.0
8
- * BUILD_TIMESTAMP: 1746122131368
9
- * BUILD_DATE: Thu May 01 2025 17:55:31 GMT+0000 (Coordinated Universal Time)
10
- * BUILD_COMMIT: 11de903d86267c3dbd7e05948a323fa12b63d0ec
7
+ * VERSION: 2.104.0-alpha.2
8
+ * BUILD_TIMESTAMP: 1746142396526
9
+ * BUILD_DATE: Thu May 01 2025 23:33:16 GMT+0000 (Coordinated Universal Time)
10
+ * BUILD_COMMIT: 890118c01f0c12b348ca343732208200aed0c6c3
11
11
  */
12
- import { i as da, R as N, h as na, aN as m, aO as ra, T as la, V as f, j as s, P as ua, Y as ma, a as d, a8 as ia, ag as ba, aP as ga, u as n, z as Ca, B as pa, $ as ha, E as Ea, f as Na, H as Ia, D as xa, a6 as Ma, aD as ja, aQ as za, aR as Da, a0 as Ra, b as z, G as ya, S as Fa, O as La, ab as Oa, ac as Ta, aC as qa, J as Pa, M as Aa, K as wa, k as Ba, m as ka, w as _a, N as Wa, aS as Va, e as D, l as Ya, aT as Ha, _ as C, aU as Ka, ap as Ua, aj as $a, aB as Ga, Z as Ja, af as Qa, am as Za, aV as Xa } from "../_mysheerid-preview.js";
13
- import { L as ca } from "./LicensedProfessionalOrganizationComponent-BrW9osPt.js";
12
+ import { i as da, R as N, h as na, aN as m, aO as ra, T as la, V as f, j as s, P as ua, Y as ma, z as d, a8 as ia, ag as ba, aP as ga, u as n, y as Ca, B as pa, $ as ha, E as Ea, e as Na, H as Ia, D as xa, a6 as Ma, aD as ja, aQ as za, aR as Da, a0 as Ra, a as z, G as ya, S as Fa, O as La, ab as Oa, ac as Ta, aC as qa, J as Pa, M as Aa, K as wa, f as Ba, k as ka, v as _a, N as Wa, aS as Va, d as D, l as Ya, aT as Ha, _ as C, aU as Ka, ap as Ua, aj as $a, aB as Ga, Z as Ja, af as Qa, am as Za, aV as Xa } from "../_mysheerid-preview.js";
13
+ import { L as ca } from "./LicensedProfessionalOrganizationComponent-trZr_eIW.js";
14
14
  const fa = ({
15
15
  intl: I,
16
16
  verificationService: e
@@ -1 +1 @@
1
- {"version":3,"file":"index-BgB4HxER.js","sources":["../../src/components/StepCollectPersonalInfo/StepCollectPersonalInfoComponent.tsx"],"sourcesContent":["import React from \"react\";\n\nimport produce from \"immer\";\nimport { FormattedHTMLMessage, InjectedIntl, injectIntl } from \"react-intl\";\nimport { hasFailedInstantMatch } from \"../../lib/VerificationService/VerificationServiceHelpers\";\nimport {\n VerificationService,\n CollectPersonalInfoViewModel,\n CustomFormFieldConfig,\n Organization,\n FormSelectChoice,\n State,\n CollectFieldsResponse,\n CollectPersonalInfoResponse,\n FieldDescription,\n AllStatuses,\n} from \"../../lib/types/types\";\nimport {\n getAvailableStateChoices,\n orgToOption,\n getStatusLabel,\n handleEmailOnKeyDown,\n submitForm,\n updateFieldValidationErrorsByFieldId,\n updateViewModelOrganization,\n produceDraftViewModelWithAllRequiredFields,\n getAvailableStatuses,\n getFieldConfigByFieldId,\n} from \"../../lib/utils/stepComponentHelpers/stepComponentHelpers\";\nimport { MarketConsentWrapperComponent as MarketConsentWrapper } from \"../FormFields/MarketConsentWrapper/MarketConsentWrapperComponent\";\nimport { PhoneNumberComponent as PhoneNumber } from \"../FormFields/PhoneNumber/PhoneNumberComponent\";\nimport { CollegeNameComponent as CollegeName } from \"../FormFields/CollegeName/CollegeNameComponent\";\nimport { FirstNameComponent as FirstName } from \"../FormFields/FirstName/FirstNameComponent\";\nimport { LastNameComponent as LastName } from \"../FormFields/LastName/LastNameComponent\";\nimport { EmailComponent as Email } from \"../FormFields/Email/EmailComponent\";\nimport { BirthDateComponent as BirthDate } from \"../FormFields/BirthDate/BirthDateComponent\";\nimport { FormFooterComponent as FormFooter } from \"../FormFooter/FormFooterComponent\";\nimport { CountryComponentWrapper } from \"../FormFields/Country/CountryComponentWrapper\";\nimport { getOptions } from \"../../options/options\";\nimport { FormFieldCustom } from \"../FormFields/FormFieldCustom/FormFieldCustom\";\nimport { ExtraMessage } from \"../ExtraMessage\";\nimport { FieldIdEnum, SegmentEnum, VerificationStepsEnum } from \"../../lib/types/runtimeTypes\";\nimport { CityComponent } from \"../FormFields/City/City\";\nimport { StateSelectComponent } from \"../FormFields/State/StateSelectComponent\";\nimport { PostalCodeComponent } from \"../FormFields/PostalCode/PostalCodeComponent\";\nimport { AddressComponent } from \"../FormFields/Address/AddressComponent\";\nimport { ActiveDutyStartDateComponent } from \"../FormFields/ActiveDutyStartDate/ActiveDutyStartDateComponent\";\nimport { BranchOfServiceComponent as BranchOfService } from \"../FormFields/BranchOfService/BranchOfServiceComponent\";\nimport { DriverLicenseNumberComponent as DriverLicenseNumber } from \"../FormFields/DriverLicenseNumber/DriverLicenseNumberComponent\";\nimport { EBTCardNumberComponent } from \"../FormFields/EBTCardNumber/EBTCardNumberComponent\";\nimport { StatusComponent as Status } from \"../FormFields/Status/StatusComponent\";\nimport { LowIncomeOrganizationComponent as LowIncomeOrganization } from \"../FormFields/LowIncomeOrganization/LowIncomeOrganizationComponent\";\nimport { FirstResponderOrganizationComponent as FirstResponderOrganization } from \"../FormFields/FirstResponderOrganization/FirstResponderOrganizationComponent\";\nimport { LicensedProfessionalOrganizationComponent as LicensedProfessionalOrganization } from \"../FormFields/LicensedProfessionalOrganization/LicensedProfessionalOrganizationComponent\";\nimport { MedicalProfessionalOrganizationComponent as MedicalProfessionalOrganization } from \"../FormFields/MedicalProfessionalOrganization/MedicalProfessionalOrganizationComponent\";\nimport { MemberIdComponent as MemberId } from \"../FormFields/MemberId/MemberIdComponent\";\nimport { MembershipOrganizationComponent as MembershipOrganization } from \"../FormFields/MembershipOrganization/MembershipOrganizationComponent\";\nimport { TeacherSchoolComponent as TeacherSchool } from \"../FormFields/TeacherSchool/TeacherSchoolComponent\";\nimport { SocialSecurityNumber } from \"../FormFields/SSN/SSN\";\nimport { DischargeDateComponent } from \"../FormFields/DischargeDate/DischargeDateComponent\";\nimport { getAllFieldsToCollect } from \"../../lib/ServerApi/VerificationApiClient\";\nimport { getSafe } from \"../../lib/utils/getSafe\";\nimport { logger } from \"../../lib/utils/logger/logger\";\nimport { getMarketConsent } from \"../../lib/ProgramTheme/programThemeGetters\";\nimport { PersonalInfoHeader } from \"../FormHeader/StepHeaders/PersonalInfoHeaderComponent\";\nimport { PersonalInfoStepSubmitButton } from \"../PersonalInfoStepSubmitButton/PersonalInfoStepSubmitButton\";\n\ninterface StepCollectPersonalInfoProps {\n intl: InjectedIntl;\n verificationService: VerificationService;\n}\n\nexport const StepCollectPersonalInfo = ({\n intl,\n verificationService,\n}: StepCollectPersonalInfoProps) => {\n const viewModel = verificationService.viewModel as CollectPersonalInfoViewModel;\n const { updateViewModel, programTheme } = verificationService;\n\n const [requiredFields, setRequiredFields] = React.useState<FieldDescription[]>(undefined);\n\n const isFieldRequired = (key: keyof CollectPersonalInfoViewModel) =>\n requiredFields && requiredFields.some((field) => field.key === key);\n\n const { fieldValidationErrors } = verificationService;\n const verificationResponse =\n verificationService.verificationResponse as CollectPersonalInfoResponse;\n const failedInstantMatch = hasFailedInstantMatch(verificationResponse);\n\n const updatePersonalInfoViewModel = (key: keyof CollectPersonalInfoViewModel, value: any) => {\n const nextState: CollectPersonalInfoViewModel = produce(\n viewModel,\n (draft: CollectPersonalInfoViewModel) => {\n (draft[key] as any) = value;\n },\n );\n updateViewModel(nextState);\n };\n\n const updateViewModelWithRequiredFields = (newRequiredFields: FieldDescription[]) => {\n const nextState: CollectPersonalInfoViewModel = produceDraftViewModelWithAllRequiredFields(\n viewModel,\n newRequiredFields,\n );\n updateViewModel(nextState);\n };\n\n const locale = viewModel.localeChoice.value;\n const options = getOptions();\n\n const { segment, availableStatuses } = verificationResponse;\n const pascalCaseSegment = segment.charAt(0).toUpperCase() + segment.slice(1);\n\n const isStatusRequired = (): boolean =>\n availableStatuses &&\n (segment === SegmentEnum.FIRST_RESPONDER ||\n segment === SegmentEnum.MEDICAL ||\n segment === SegmentEnum.LOW_INCOME ||\n segment === SegmentEnum.LICENSED_PROFESSIONAL ||\n segment === SegmentEnum.EMPLOYMENT ||\n segment === SegmentEnum.RECENT_MOVER ||\n segment === SegmentEnum.MILITARY);\n\n const getAndSetRequiredFields = (requestBody: { statuses?: AllStatuses[] }) =>\n (async () => {\n try {\n const collectFieldsResponse: CollectFieldsResponse = await getAllFieldsToCollect(\n verificationResponse.verificationId,\n verificationResponse.currentStep,\n requestBody,\n );\n const newRequiredFields = getSafe(() => collectFieldsResponse.fieldsToCollect.required, []);\n\n if (isStatusRequired()) {\n // Adding `status` as a required input field if it's been removed by getting\n // all fields to collect with a statuses req body\n newRequiredFields.push({ key: \"status\" });\n }\n\n updateViewModelWithRequiredFields(newRequiredFields);\n setRequiredFields(newRequiredFields);\n } catch (error) {\n logger.error(`Failed to determine fields to collect: ${error}`);\n }\n })();\n\n const getOrganizationField = () => {\n switch (segment) {\n case SegmentEnum.STUDENT:\n return (\n <CollegeName\n value={(verificationService.viewModel as CollectPersonalInfoViewModel).organization}\n verificationService={verificationService}\n isErrored={!!fieldValidationErrors.organization}\n isRequired\n disabled={getFieldConfigByFieldId(\"organization\")?.disabled}\n onChange={(choice: Organization) => {\n updateViewModelOrganization(choice, verificationService);\n updateFieldValidationErrorsByFieldId(\"organization\", choice, verificationService);\n }}\n />\n );\n case SegmentEnum.TEACHER:\n return (\n <TeacherSchool\n value={(verificationService.viewModel as CollectPersonalInfoViewModel).organization}\n verificationService={verificationService}\n isErrored={!!fieldValidationErrors.organization}\n disabled={getFieldConfigByFieldId(\"organization\")?.disabled}\n onChange={(choice: Organization) => {\n updateViewModelOrganization(choice, verificationService);\n updateFieldValidationErrorsByFieldId(\"organization\", choice, verificationService);\n }}\n />\n );\n case SegmentEnum.MEMBER:\n return (\n <MembershipOrganization\n value={(verificationService.viewModel as CollectPersonalInfoViewModel).organization}\n verificationService={verificationService}\n isErrored={!!fieldValidationErrors.organization}\n disabled={getFieldConfigByFieldId(\"organization\")?.disabled}\n onChange={(choice: Organization) => {\n updateViewModelOrganization(choice, verificationService);\n updateFieldValidationErrorsByFieldId(\"organization\", choice, verificationService);\n }}\n />\n );\n case SegmentEnum.MILITARY:\n return (\n <BranchOfService\n isErrored={!!fieldValidationErrors.organization}\n onChange={(choice: Organization) => {\n updateViewModelOrganization(choice, verificationService);\n updateFieldValidationErrorsByFieldId(\"organization\", choice, verificationService);\n }}\n value={{\n value: getSafe(\n () =>\n (verificationService.viewModel as CollectPersonalInfoViewModel).organization.id,\n ),\n label: getSafe(\n () =>\n (verificationService.viewModel as CollectPersonalInfoViewModel).organization.name,\n ),\n }}\n verificationService={verificationService}\n disabled={getFieldConfigByFieldId(\"organization\")?.disabled}\n />\n );\n case SegmentEnum.FIRST_RESPONDER:\n return (\n <FirstResponderOrganization\n isErrored={!!fieldValidationErrors.organization}\n onChange={(choice: Organization) => {\n updateViewModelOrganization(choice, verificationService);\n updateFieldValidationErrorsByFieldId(\"organization\", choice, verificationService);\n }}\n value={(verificationService.viewModel as CollectPersonalInfoViewModel).organization}\n verificationService={verificationService}\n disabled={getFieldConfigByFieldId(\"organization\")?.disabled}\n />\n );\n case SegmentEnum.MEDICAL:\n return (\n <MedicalProfessionalOrganization\n isErrored={!!fieldValidationErrors.organization}\n onChange={(choice: Organization) => {\n updateViewModelOrganization(choice, verificationService);\n updateFieldValidationErrorsByFieldId(\"organization\", choice, verificationService);\n }}\n value={(verificationService.viewModel as CollectPersonalInfoViewModel).organization}\n verificationService={verificationService}\n disabled={getFieldConfigByFieldId(\"organization\")?.disabled}\n />\n );\n case SegmentEnum.LICENSED_PROFESSIONAL:\n return (\n <LicensedProfessionalOrganization\n isErrored={!!fieldValidationErrors.organization}\n onChange={(choice: Organization) => {\n updateViewModelOrganization(choice, verificationService);\n updateFieldValidationErrorsByFieldId(\"organization\", choice, verificationService);\n }}\n value={(verificationService.viewModel as CollectPersonalInfoViewModel).organization}\n verificationService={verificationService}\n disabled={getFieldConfigByFieldId(\"organization\")?.disabled}\n />\n );\n case SegmentEnum.LOW_INCOME:\n return (\n <LowIncomeOrganization\n isErrored={!!fieldValidationErrors.organization}\n onChange={(choice: Organization) => {\n updateViewModelOrganization(choice, verificationService);\n updateFieldValidationErrorsByFieldId(\"organization\", choice, verificationService);\n }}\n value={orgToOption(\n (verificationService.viewModel as CollectPersonalInfoViewModel).organization,\n )}\n verificationService={verificationService}\n isRequired\n disabled={getFieldConfigByFieldId(\"organization\")?.disabled}\n />\n );\n default:\n return null;\n }\n };\n\n React.useEffect(() => {\n if (availableStatuses && segment === SegmentEnum.MILITARY) {\n // display all required military fields by setting an initial default status\n getAndSetRequiredFields({ statuses: [] });\n } else {\n // fetch initial list of required input fields\n getAndSetRequiredFields({});\n }\n }, []);\n\n React.useEffect(() => {\n if (!getMarketConsent(programTheme).enabled && requiredFields && requiredFields.length === 0) {\n // skip this step if there are no required fields, and marketConsent is not enabled\n submitForm(viewModel, verificationService, VerificationStepsEnum.collectPersonalInfo);\n }\n }, [requiredFields]);\n\n React.useEffect(() => {\n if (viewModel.status) {\n // if status changes, re-fetch required fields because they may have changed based on selected status\n getAndSetRequiredFields({ statuses: [viewModel.status] });\n }\n }, [viewModel.status]);\n\n return (\n <div\n id=\"sid-step-personal-info-personal-info\"\n className=\"sid-personal-info-container sid-l-container\"\n >\n <div role=\"main\">\n <PersonalInfoHeader\n verificationService={verificationService}\n classNameIdentifier=\"personal-info\"\n />\n\n <CountryComponentWrapper\n verificationService={verificationService}\n disabled={getFieldConfigByFieldId(\"country\")?.disabled}\n />\n\n {isStatusRequired() && (\n <Status\n segmentId={segment}\n value={{\n value: viewModel.status,\n label: getStatusLabel(intl, viewModel.status, null),\n }}\n isErrored={!!fieldValidationErrors.status}\n errorId={`invalid${pascalCaseSegment}Status`}\n options={getAvailableStatuses(intl, availableStatuses)}\n disabled={getFieldConfigByFieldId(\"status\")?.disabled}\n onChange={(status: FormSelectChoice) => {\n updatePersonalInfoViewModel(\"status\", status ? (status.value as string) : \"\");\n updateFieldValidationErrorsByFieldId(\n \"status\",\n status ? (status.value as string) : \"\",\n verificationService,\n );\n }}\n />\n )}\n\n {isFieldRequired(\"organization\") && getOrganizationField()}\n\n <div className=\"sid-names\">\n {isFieldRequired(\"firstName\") && (\n <FirstName\n value={viewModel.firstName}\n isErrored={!!fieldValidationErrors.firstName}\n disabled={getFieldConfigByFieldId(\"firstName\")?.disabled}\n onChange={(newValue) => {\n updatePersonalInfoViewModel(\"firstName\", newValue);\n updateFieldValidationErrorsByFieldId(\"firstName\", newValue, verificationService);\n }}\n />\n )}\n\n {isFieldRequired(\"lastName\") && (\n <LastName\n value={viewModel.lastName}\n isErrored={!!fieldValidationErrors.lastName}\n disabled={getFieldConfigByFieldId(\"lastName\")?.disabled}\n onChange={(newValue) => {\n updatePersonalInfoViewModel(\"lastName\", newValue);\n updateFieldValidationErrorsByFieldId(\"lastName\", newValue, verificationService);\n }}\n />\n )}\n </div>\n\n {isFieldRequired(\"birthDate\") && (\n <BirthDate\n value={viewModel.birthDate}\n errorId={fieldValidationErrors.birthDate}\n locale={locale}\n isRequired\n disabled={getFieldConfigByFieldId(\"birthDate\")?.disabled}\n onChange={(newValue) => {\n updatePersonalInfoViewModel(\"birthDate\", newValue);\n updateFieldValidationErrorsByFieldId(\"birthDate\", newValue, verificationService);\n }}\n />\n )}\n\n {isFieldRequired(\"email\") && (\n <Email\n value={viewModel.email}\n isErrored={!!fieldValidationErrors.email}\n explanation=\" \"\n onChange={(newValue) => {\n updatePersonalInfoViewModel(\"email\", newValue);\n updateFieldValidationErrorsByFieldId(\"email\", newValue, verificationService);\n }}\n onKeyDown={(event) => handleEmailOnKeyDown(event)}\n disabled={getFieldConfigByFieldId(\"email\")?.disabled}\n />\n )}\n\n {isFieldRequired(\"phoneNumber\") && (\n <PhoneNumber\n isRequired={!!verificationService.programTheme.smsLoopEnabled}\n value={viewModel.phoneNumber}\n isErrored={!!fieldValidationErrors.phoneNumber}\n onChange={(newValue) => {\n updatePersonalInfoViewModel(\"phoneNumber\", newValue);\n updateFieldValidationErrorsByFieldId(\"phoneNumber\", newValue, verificationService);\n }}\n selectedCountryCode={viewModel.countryChoice && viewModel.countryChoice.value}\n disabled={getFieldConfigByFieldId(\"phoneNumber\")?.disabled}\n />\n )}\n\n {isFieldRequired(\"address1\") && (\n <AddressComponent\n value={viewModel.address1}\n isRequired\n isErrored={!!fieldValidationErrors.address1}\n errorId={fieldValidationErrors.address1}\n disabled={getFieldConfigByFieldId(\"address1\")?.disabled}\n onChange={(value) => {\n updatePersonalInfoViewModel(\"address1\", value);\n updateFieldValidationErrorsByFieldId(\"address1\", value, verificationService);\n }}\n />\n )}\n\n {isFieldRequired(\"city\") && (\n <CityComponent\n value={viewModel.city}\n isRequired\n isErrored={!!fieldValidationErrors.city}\n errorId={fieldValidationErrors.city}\n disabled={getFieldConfigByFieldId(\"city\")?.disabled}\n onChange={(newValue) => {\n updatePersonalInfoViewModel(\"city\", newValue);\n updateFieldValidationErrorsByFieldId(\"city\", newValue, verificationService);\n }}\n />\n )}\n\n {isFieldRequired(\"dischargeDate\") && (\n <DischargeDateComponent\n errorId={fieldValidationErrors.dischargeDate}\n locale={locale}\n onChange={(newValue) => {\n updatePersonalInfoViewModel(\"dischargeDate\", newValue);\n updateFieldValidationErrorsByFieldId(\"dischargeDate\", newValue, verificationService);\n }}\n value={viewModel.dischargeDate}\n disabled={getFieldConfigByFieldId(\"dischargeDate\")?.disabled}\n />\n )}\n\n {isFieldRequired(\"driverLicenseNumber\") && (\n <DriverLicenseNumber\n value={viewModel.driverLicenseNumber}\n isErrored={!!fieldValidationErrors.driverLicenseNumber}\n isRequired\n disabled={getFieldConfigByFieldId(\"driverLicenseNumber\")?.disabled}\n onChange={(newValue) => {\n updatePersonalInfoViewModel(\"driverLicenseNumber\", newValue);\n updateFieldValidationErrorsByFieldId(\n \"driverLicenseNumber\",\n newValue,\n verificationService,\n );\n }}\n />\n )}\n\n {isFieldRequired(\"ebtCardNumber\") && (\n <EBTCardNumberComponent\n value={viewModel.ebtCardNumber}\n isErrored={!!fieldValidationErrors.ebtCardNumber}\n disabled={getFieldConfigByFieldId(\"ebtCardNumber\")?.disabled}\n onChange={(newValue) => {\n updatePersonalInfoViewModel(\"ebtCardNumber\", newValue);\n updateFieldValidationErrorsByFieldId(\"ebtCardNumber\", newValue, verificationService);\n }}\n />\n )}\n\n {isFieldRequired(\"memberId\") && (\n <MemberId\n value={viewModel.memberId}\n isErrored={!!fieldValidationErrors.memberId}\n isRequired={getFieldConfigByFieldId(\"memberId\")?.requireIfOptional}\n disabled={getFieldConfigByFieldId(\"memberId\")?.disabled}\n onChange={(newValue) => {\n updatePersonalInfoViewModel(\"memberId\", newValue);\n updateFieldValidationErrorsByFieldId(\"memberId\", newValue, verificationService);\n }}\n label={\n <FormattedHTMLMessage\n id=\"step.collectMedicalPersonalInfo.registrationNumberLabel\"\n defaultMessage=\"Registration Number\"\n />\n }\n />\n )}\n\n {isFieldRequired(\"postalCode\") && (\n <PostalCodeComponent\n isErrored={!!fieldValidationErrors.postalCode}\n onChange={(newValue) => {\n updatePersonalInfoViewModel(\"postalCode\", newValue);\n updateFieldValidationErrorsByFieldId(\"postalCode\", newValue, verificationService);\n }}\n value={viewModel.postalCode}\n disabled={getFieldConfigByFieldId(\"postalCode\")?.disabled}\n />\n )}\n\n {isFieldRequired(\"socialSecurityNumber\") && (\n <div className=\"sid-ssn-wrapper\">\n <SocialSecurityNumber\n value={viewModel.socialSecurityNumber}\n onChange={(value: string) => {\n updatePersonalInfoViewModel(\"socialSecurityNumber\", value);\n updateFieldValidationErrorsByFieldId(\n \"socialSecurityNumber\",\n value,\n verificationService,\n );\n }}\n isErrored={!!fieldValidationErrors[FieldIdEnum.socialSecurityNumber]}\n placeholder=\"000-00-0000\"\n disabled={getFieldConfigByFieldId(\"socialSecurityNumber\")?.disabled}\n />\n </div>\n )}\n\n {isFieldRequired(\"state\") && (\n <StateSelectComponent\n isRequired\n options={getAvailableStateChoices(verificationService.programTheme, intl)}\n value={viewModel.state || undefined}\n isErrored={Boolean(fieldValidationErrors.state)}\n onChange={async (stateChoice: FormSelectChoice<State, string>) => {\n const stateValue = stateChoice ? stateChoice.value : undefined;\n updatePersonalInfoViewModel(\"state\", stateValue);\n updateFieldValidationErrorsByFieldId(\"state\", stateValue, verificationService);\n }}\n label={<FormattedHTMLMessage id=\"state\" defaultMessage=\"State\" />}\n disabled={getFieldConfigByFieldId(\"state\")?.disabled}\n />\n )}\n\n {isFieldRequired(\"activeDutyStartDate\") &&\n verificationService.programTheme.strictMilitaryValidationEnabled && (\n <ActiveDutyStartDateComponent\n errorId={fieldValidationErrors.activeDutyStartDate}\n locale={locale}\n onChange={(newValue) => {\n updatePersonalInfoViewModel(\"activeDutyStartDate\", newValue);\n updateFieldValidationErrorsByFieldId(\n \"activeDutyStartDate\",\n newValue,\n verificationService,\n );\n }}\n value={viewModel.activeDutyStartDate}\n disabled={getFieldConfigByFieldId(\"activeDutyStartDate\")?.disabled}\n />\n )}\n\n {options.customFormFields?.map((config: CustomFormFieldConfig) => (\n <FormFieldCustom config={config} verificationService={verificationService} />\n ))}\n\n <MarketConsentWrapper\n verificationService={verificationService}\n isErrored={!!fieldValidationErrors.marketConsentValue}\n onChange={(newValue) => {\n updatePersonalInfoViewModel(\"metadata\", {\n ...verificationService.viewModel.metadata,\n marketConsentValue: newValue,\n });\n updateFieldValidationErrorsByFieldId(\n \"marketConsentValue\",\n newValue,\n verificationService,\n );\n }}\n viewModel={viewModel}\n disabled={getFieldConfigByFieldId(\"marketConsentValue\")?.disabled}\n />\n\n <ExtraMessage verificationService={verificationService} suffix=\"CollectAboveSubmit\" />\n\n <PersonalInfoStepSubmitButton\n step={VerificationStepsEnum.collectPersonalInfo}\n verificationService={verificationService}\n viewModel={viewModel}\n failedInstantMatch={failedInstantMatch}\n buttonText={\n <FormattedHTMLMessage\n id=\"step.personalInfo.submitButtonText\"\n defaultMessage=\"Verify and continue\"\n />\n }\n />\n </div>\n <FormFooter verificationService={verificationService} />\n </div>\n );\n};\n\nexport const StepCollectPersonalInfoComponent = injectIntl(StepCollectPersonalInfo);\n"],"names":["StepCollectPersonalInfo","intl","verificationService","viewModel","updateViewModel","programTheme","requiredFields","setRequiredFields","React","isFieldRequired","key","field","fieldValidationErrors","verificationResponse","failedInstantMatch","hasFailedInstantMatch","updatePersonalInfoViewModel","value","nextState","produce","draft","updateViewModelWithRequiredFields","newRequiredFields","produceDraftViewModelWithAllRequiredFields","locale","options","getOptions","segment","availableStatuses","pascalCaseSegment","isStatusRequired","SegmentEnum","getAndSetRequiredFields","requestBody","collectFieldsResponse","getAllFieldsToCollect","getSafe","error","logger","getOrganizationField","jsx","CollegeName","_a","getFieldConfigByFieldId","choice","updateViewModelOrganization","updateFieldValidationErrorsByFieldId","TeacherSchool","_b","MembershipOrganization","_c","BranchOfService","_d","FirstResponderOrganization","_e","MedicalProfessionalOrganization","_f","LicensedProfessionalOrganization","_g","LowIncomeOrganization","orgToOption","_h","getMarketConsent","submitForm","VerificationStepsEnum","jsxs","PersonalInfoHeader","CountryComponentWrapper","Status","getStatusLabel","getAvailableStatuses","status","FirstName","newValue","LastName","BirthDate","Email","event","handleEmailOnKeyDown","PhoneNumber","AddressComponent","CityComponent","_i","DischargeDateComponent","_j","DriverLicenseNumber","_k","EBTCardNumberComponent","_l","MemberId","_m","_n","FormattedHTMLMessage","PostalCodeComponent","_o","SocialSecurityNumber","FieldIdEnum","_p","StateSelectComponent","getAvailableStateChoices","stateChoice","stateValue","_q","ActiveDutyStartDateComponent","_r","_s","config","FormFieldCustom","MarketConsentWrapper","_t","ExtraMessage","PersonalInfoStepSubmitButton","FormFooter","StepCollectPersonalInfoComponent","injectIntl"],"mappings":";;AAwEO,MAAMA,KAA0B,CAAC;AAAA,EACtC,MAAAC;AAAA,EACA,qBAAAC;AACF,MAAoC;;AAClC,QAAMC,IAAYD,EAAoB,WAChC,EAAE,iBAAAE,GAAiB,cAAAC,EAAiB,IAAAH,GAEpC,CAACI,GAAgBC,CAAiB,IAAIC,EAAM,SAA6B,MAAS,GAElFC,IAAkB,CAACC,MACvBJ,KAAkBA,EAAe,KAAK,CAACK,MAAUA,EAAM,QAAQD,CAAG,GAE9D,EAAE,uBAAAE,EAA0B,IAAAV,GAC5BW,IACJX,EAAoB,sBAChBY,KAAqBC,GAAsBF,CAAoB,GAE/DG,IAA8B,CAACN,GAAyCO,MAAe;AAC3F,UAAMC,IAA0CC;AAAA,MAC9ChB;AAAA,MACA,CAACiB,MAAwC;AACtC,QAAAA,EAAMV,CAAG,IAAYO;AAAA,MACxB;AAAA,IAAA;AAEF,IAAAb,EAAgBc,CAAS;AAAA,EAAA,GAG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kBACtC,GAAGd,EAAoB,UAAU;AAAA,kBACjC,oBAAoBuE;AAAA,gBAAA,CACrB,GACD3B;AAAA,kBACE;AAAA,kBACA2B;AAAA,kBACAvE;AAAA,gBAAA;AAAA,cAEJ;AAAA,cACA,WAAAC;AAAA,cACA,WAAU0G,IAAAlE,EAAwB,oBAAoB,MAA5C,gBAAAkE,EAA+C;AAAA,YAAA;AAAA,UAC3D;AAAA,UAECrE,gBAAAA,EAAAA,IAAAsE,IAAA,EAAa,qBAAA5G,GAA0C,QAAO,qBAAqB,CAAA;AAAA,UAEpFsC,gBAAAA,EAAA;AAAA,YAACuE;AAAA,YAAA;AAAA,cACC,MAAM/C,EAAsB;AAAA,cAC5B,qBAAA9D;AAAA,cACA,WAAAC;AAAA,cACA,oBAAAW;AAAA,cACA,YACE0B,gBAAAA,EAAA;AAAA,gBAACoD;AAAA,gBAAA;AAAA,kBACC,IAAG;AAAA,kBACH,gBAAe;AAAA,gBAAA;AAAA,cACjB;AAAA,YAAA;AAAA,UAEJ;AAAA,QAAA,GACF;AAAA,QACApD,gBAAAA,MAACwE,MAAW,qBAAA9G,GAA0C;AAAA,MAAA;AAAA,IAAA;AAAA,EAAA;AAG5D,GAEa+G,KAAmCC,GAAWlH,EAAuB;"}
1
+ {"version":3,"file":"index-BDsZCFuU.js","sources":["../../src/components/StepCollectPersonalInfo/StepCollectPersonalInfoComponent.tsx"],"sourcesContent":["import React from \"react\";\n\nimport produce from \"immer\";\nimport { FormattedHTMLMessage, InjectedIntl, injectIntl } from \"react-intl\";\nimport { hasFailedInstantMatch } from \"../../lib/VerificationService/VerificationServiceHelpers\";\nimport {\n VerificationService,\n CollectPersonalInfoViewModel,\n CustomFormFieldConfig,\n Organization,\n FormSelectChoice,\n State,\n CollectFieldsResponse,\n CollectPersonalInfoResponse,\n FieldDescription,\n AllStatuses,\n} from \"../../lib/types/types\";\nimport {\n getAvailableStateChoices,\n orgToOption,\n getStatusLabel,\n handleEmailOnKeyDown,\n submitForm,\n updateFieldValidationErrorsByFieldId,\n updateViewModelOrganization,\n produceDraftViewModelWithAllRequiredFields,\n getAvailableStatuses,\n getFieldConfigByFieldId,\n} from \"../../lib/utils/stepComponentHelpers/stepComponentHelpers\";\nimport { MarketConsentWrapperComponent as MarketConsentWrapper } from \"../FormFields/MarketConsentWrapper/MarketConsentWrapperComponent\";\nimport { PhoneNumberComponent as PhoneNumber } from \"../FormFields/PhoneNumber/PhoneNumberComponent\";\nimport { CollegeNameComponent as CollegeName } from \"../FormFields/CollegeName/CollegeNameComponent\";\nimport { FirstNameComponent as FirstName } from \"../FormFields/FirstName/FirstNameComponent\";\nimport { LastNameComponent as LastName } from \"../FormFields/LastName/LastNameComponent\";\nimport { EmailComponent as Email } from \"../FormFields/Email/EmailComponent\";\nimport { BirthDateComponent as BirthDate } from \"../FormFields/BirthDate/BirthDateComponent\";\nimport { FormFooterComponent as FormFooter } from \"../FormFooter/FormFooterComponent\";\nimport { CountryComponentWrapper } from \"../FormFields/Country/CountryComponentWrapper\";\nimport { getOptions } from \"../../options/options\";\nimport { FormFieldCustom } from \"../FormFields/FormFieldCustom/FormFieldCustom\";\nimport { ExtraMessage } from \"../ExtraMessage\";\nimport { FieldIdEnum, SegmentEnum, VerificationStepsEnum } from \"../../lib/types/runtimeTypes\";\nimport { CityComponent } from \"../FormFields/City/City\";\nimport { StateSelectComponent } from \"../FormFields/State/StateSelectComponent\";\nimport { PostalCodeComponent } from \"../FormFields/PostalCode/PostalCodeComponent\";\nimport { AddressComponent } from \"../FormFields/Address/AddressComponent\";\nimport { ActiveDutyStartDateComponent } from \"../FormFields/ActiveDutyStartDate/ActiveDutyStartDateComponent\";\nimport { BranchOfServiceComponent as BranchOfService } from \"../FormFields/BranchOfService/BranchOfServiceComponent\";\nimport { DriverLicenseNumberComponent as DriverLicenseNumber } from \"../FormFields/DriverLicenseNumber/DriverLicenseNumberComponent\";\nimport { EBTCardNumberComponent } from \"../FormFields/EBTCardNumber/EBTCardNumberComponent\";\nimport { StatusComponent as Status } from \"../FormFields/Status/StatusComponent\";\nimport { LowIncomeOrganizationComponent as LowIncomeOrganization } from \"../FormFields/LowIncomeOrganization/LowIncomeOrganizationComponent\";\nimport { FirstResponderOrganizationComponent as FirstResponderOrganization } from \"../FormFields/FirstResponderOrganization/FirstResponderOrganizationComponent\";\nimport { LicensedProfessionalOrganizationComponent as LicensedProfessionalOrganization } from \"../FormFields/LicensedProfessionalOrganization/LicensedProfessionalOrganizationComponent\";\nimport { MedicalProfessionalOrganizationComponent as MedicalProfessionalOrganization } from \"../FormFields/MedicalProfessionalOrganization/MedicalProfessionalOrganizationComponent\";\nimport { MemberIdComponent as MemberId } from \"../FormFields/MemberId/MemberIdComponent\";\nimport { MembershipOrganizationComponent as MembershipOrganization } from \"../FormFields/MembershipOrganization/MembershipOrganizationComponent\";\nimport { TeacherSchoolComponent as TeacherSchool } from \"../FormFields/TeacherSchool/TeacherSchoolComponent\";\nimport { SocialSecurityNumber } from \"../FormFields/SSN/SSN\";\nimport { DischargeDateComponent } from \"../FormFields/DischargeDate/DischargeDateComponent\";\nimport { getAllFieldsToCollect } from \"../../lib/ServerApi/VerificationApiClient\";\nimport { getSafe } from \"../../lib/utils/getSafe\";\nimport { logger } from \"../../lib/utils/logger/logger\";\nimport { getMarketConsent } from \"../../lib/ProgramTheme/programThemeGetters\";\nimport { PersonalInfoHeader } from \"../FormHeader/StepHeaders/PersonalInfoHeaderComponent\";\nimport { PersonalInfoStepSubmitButton } from \"../PersonalInfoStepSubmitButton/PersonalInfoStepSubmitButton\";\n\ninterface StepCollectPersonalInfoProps {\n intl: InjectedIntl;\n verificationService: VerificationService;\n}\n\nexport const StepCollectPersonalInfo = ({\n intl,\n verificationService,\n}: StepCollectPersonalInfoProps) => {\n const viewModel = verificationService.viewModel as CollectPersonalInfoViewModel;\n const { updateViewModel, programTheme } = verificationService;\n\n const [requiredFields, setRequiredFields] = React.useState<FieldDescription[]>(undefined);\n\n const isFieldRequired = (key: keyof CollectPersonalInfoViewModel) =>\n requiredFields && requiredFields.some((field) => field.key === key);\n\n const { fieldValidationErrors } = verificationService;\n const verificationResponse =\n verificationService.verificationResponse as CollectPersonalInfoResponse;\n const failedInstantMatch = hasFailedInstantMatch(verificationResponse);\n\n const updatePersonalInfoViewModel = (key: keyof CollectPersonalInfoViewModel, value: any) => {\n const nextState: CollectPersonalInfoViewModel = produce(\n viewModel,\n (draft: CollectPersonalInfoViewModel) => {\n (draft[key] as any) = value;\n },\n );\n updateViewModel(nextState);\n };\n\n const updateViewModelWithRequiredFields = (newRequiredFields: FieldDescription[]) => {\n const nextState: CollectPersonalInfoViewModel = produceDraftViewModelWithAllRequiredFields(\n viewModel,\n newRequiredFields,\n );\n updateViewModel(nextState);\n };\n\n const locale = viewModel.localeChoice.value;\n const options = getOptions();\n\n const { segment, availableStatuses } = verificationResponse;\n const pascalCaseSegment = segment.charAt(0).toUpperCase() + segment.slice(1);\n\n const isStatusRequired = (): boolean =>\n availableStatuses &&\n (segment === SegmentEnum.FIRST_RESPONDER ||\n segment === SegmentEnum.MEDICAL ||\n segment === SegmentEnum.LOW_INCOME ||\n segment === SegmentEnum.LICENSED_PROFESSIONAL ||\n segment === SegmentEnum.EMPLOYMENT ||\n segment === SegmentEnum.RECENT_MOVER ||\n segment === SegmentEnum.MILITARY);\n\n const getAndSetRequiredFields = (requestBody: { statuses?: AllStatuses[] }) =>\n (async () => {\n try {\n const collectFieldsResponse: CollectFieldsResponse = await getAllFieldsToCollect(\n verificationResponse.verificationId,\n verificationResponse.currentStep,\n requestBody,\n );\n const newRequiredFields = getSafe(() => collectFieldsResponse.fieldsToCollect.required, []);\n\n if (isStatusRequired()) {\n // Adding `status` as a required input field if it's been removed by getting\n // all fields to collect with a statuses req body\n newRequiredFields.push({ key: \"status\" });\n }\n\n updateViewModelWithRequiredFields(newRequiredFields);\n setRequiredFields(newRequiredFields);\n } catch (error) {\n logger.error(`Failed to determine fields to collect: ${error}`);\n }\n })();\n\n const getOrganizationField = () => {\n switch (segment) {\n case SegmentEnum.STUDENT:\n return (\n <CollegeName\n value={(verificationService.viewModel as CollectPersonalInfoViewModel).organization}\n verificationService={verificationService}\n isErrored={!!fieldValidationErrors.organization}\n isRequired\n disabled={getFieldConfigByFieldId(\"organization\")?.disabled}\n onChange={(choice: Organization) => {\n updateViewModelOrganization(choice, verificationService);\n updateFieldValidationErrorsByFieldId(\"organization\", choice, verificationService);\n }}\n />\n );\n case SegmentEnum.TEACHER:\n return (\n <TeacherSchool\n value={(verificationService.viewModel as CollectPersonalInfoViewModel).organization}\n verificationService={verificationService}\n isErrored={!!fieldValidationErrors.organization}\n disabled={getFieldConfigByFieldId(\"organization\")?.disabled}\n onChange={(choice: Organization) => {\n updateViewModelOrganization(choice, verificationService);\n updateFieldValidationErrorsByFieldId(\"organization\", choice, verificationService);\n }}\n />\n );\n case SegmentEnum.MEMBER:\n return (\n <MembershipOrganization\n value={(verificationService.viewModel as CollectPersonalInfoViewModel).organization}\n verificationService={verificationService}\n isErrored={!!fieldValidationErrors.organization}\n disabled={getFieldConfigByFieldId(\"organization\")?.disabled}\n onChange={(choice: Organization) => {\n updateViewModelOrganization(choice, verificationService);\n updateFieldValidationErrorsByFieldId(\"organization\", choice, verificationService);\n }}\n />\n );\n case SegmentEnum.MILITARY:\n return (\n <BranchOfService\n isErrored={!!fieldValidationErrors.organization}\n onChange={(choice: Organization) => {\n updateViewModelOrganization(choice, verificationService);\n updateFieldValidationErrorsByFieldId(\"organization\", choice, verificationService);\n }}\n value={{\n value: getSafe(\n () =>\n (verificationService.viewModel as CollectPersonalInfoViewModel).organization.id,\n ),\n label: getSafe(\n () =>\n (verificationService.viewModel as CollectPersonalInfoViewModel).organization.name,\n ),\n }}\n verificationService={verificationService}\n disabled={getFieldConfigByFieldId(\"organization\")?.disabled}\n />\n );\n case SegmentEnum.FIRST_RESPONDER:\n return (\n <FirstResponderOrganization\n isErrored={!!fieldValidationErrors.organization}\n onChange={(choice: Organization) => {\n updateViewModelOrganization(choice, verificationService);\n updateFieldValidationErrorsByFieldId(\"organization\", choice, verificationService);\n }}\n value={(verificationService.viewModel as CollectPersonalInfoViewModel).organization}\n verificationService={verificationService}\n disabled={getFieldConfigByFieldId(\"organization\")?.disabled}\n />\n );\n case SegmentEnum.MEDICAL:\n return (\n <MedicalProfessionalOrganization\n isErrored={!!fieldValidationErrors.organization}\n onChange={(choice: Organization) => {\n updateViewModelOrganization(choice, verificationService);\n updateFieldValidationErrorsByFieldId(\"organization\", choice, verificationService);\n }}\n value={(verificationService.viewModel as CollectPersonalInfoViewModel).organization}\n verificationService={verificationService}\n disabled={getFieldConfigByFieldId(\"organization\")?.disabled}\n />\n );\n case SegmentEnum.LICENSED_PROFESSIONAL:\n return (\n <LicensedProfessionalOrganization\n isErrored={!!fieldValidationErrors.organization}\n onChange={(choice: Organization) => {\n updateViewModelOrganization(choice, verificationService);\n updateFieldValidationErrorsByFieldId(\"organization\", choice, verificationService);\n }}\n value={(verificationService.viewModel as CollectPersonalInfoViewModel).organization}\n verificationService={verificationService}\n disabled={getFieldConfigByFieldId(\"organization\")?.disabled}\n />\n );\n case SegmentEnum.LOW_INCOME:\n return (\n <LowIncomeOrganization\n isErrored={!!fieldValidationErrors.organization}\n onChange={(choice: Organization) => {\n updateViewModelOrganization(choice, verificationService);\n updateFieldValidationErrorsByFieldId(\"organization\", choice, verificationService);\n }}\n value={orgToOption(\n (verificationService.viewModel as CollectPersonalInfoViewModel).organization,\n )}\n verificationService={verificationService}\n isRequired\n disabled={getFieldConfigByFieldId(\"organization\")?.disabled}\n />\n );\n default:\n return null;\n }\n };\n\n React.useEffect(() => {\n if (availableStatuses && segment === SegmentEnum.MILITARY) {\n // display all required military fields by setting an initial default status\n getAndSetRequiredFields({ statuses: [] });\n } else {\n // fetch initial list of required input fields\n getAndSetRequiredFields({});\n }\n }, []);\n\n React.useEffect(() => {\n if (!getMarketConsent(programTheme).enabled && requiredFields && requiredFields.length === 0) {\n // skip this step if there are no required fields, and marketConsent is not enabled\n submitForm(viewModel, verificationService, VerificationStepsEnum.collectPersonalInfo);\n }\n }, [requiredFields]);\n\n React.useEffect(() => {\n if (viewModel.status) {\n // if status changes, re-fetch required fields because they may have changed based on selected status\n getAndSetRequiredFields({ statuses: [viewModel.status] });\n }\n }, [viewModel.status]);\n\n return (\n <div\n id=\"sid-step-personal-info-personal-info\"\n className=\"sid-personal-info-container sid-l-container\"\n >\n <div role=\"main\">\n <PersonalInfoHeader\n verificationService={verificationService}\n classNameIdentifier=\"personal-info\"\n />\n\n <CountryComponentWrapper\n verificationService={verificationService}\n disabled={getFieldConfigByFieldId(\"country\")?.disabled}\n />\n\n {isStatusRequired() && (\n <Status\n segmentId={segment}\n value={{\n value: viewModel.status,\n label: getStatusLabel(intl, viewModel.status, null),\n }}\n isErrored={!!fieldValidationErrors.status}\n errorId={`invalid${pascalCaseSegment}Status`}\n options={getAvailableStatuses(intl, availableStatuses)}\n disabled={getFieldConfigByFieldId(\"status\")?.disabled}\n onChange={(status: FormSelectChoice) => {\n updatePersonalInfoViewModel(\"status\", status ? (status.value as string) : \"\");\n updateFieldValidationErrorsByFieldId(\n \"status\",\n status ? (status.value as string) : \"\",\n verificationService,\n );\n }}\n />\n )}\n\n {isFieldRequired(\"organization\") && getOrganizationField()}\n\n <div className=\"sid-names\">\n {isFieldRequired(\"firstName\") && (\n <FirstName\n value={viewModel.firstName}\n isErrored={!!fieldValidationErrors.firstName}\n disabled={getFieldConfigByFieldId(\"firstName\")?.disabled}\n onChange={(newValue) => {\n updatePersonalInfoViewModel(\"firstName\", newValue);\n updateFieldValidationErrorsByFieldId(\"firstName\", newValue, verificationService);\n }}\n />\n )}\n\n {isFieldRequired(\"lastName\") && (\n <LastName\n value={viewModel.lastName}\n isErrored={!!fieldValidationErrors.lastName}\n disabled={getFieldConfigByFieldId(\"lastName\")?.disabled}\n onChange={(newValue) => {\n updatePersonalInfoViewModel(\"lastName\", newValue);\n updateFieldValidationErrorsByFieldId(\"lastName\", newValue, verificationService);\n }}\n />\n )}\n </div>\n\n {isFieldRequired(\"birthDate\") && (\n <BirthDate\n value={viewModel.birthDate}\n errorId={fieldValidationErrors.birthDate}\n locale={locale}\n isRequired\n disabled={getFieldConfigByFieldId(\"birthDate\")?.disabled}\n onChange={(newValue) => {\n updatePersonalInfoViewModel(\"birthDate\", newValue);\n updateFieldValidationErrorsByFieldId(\"birthDate\", newValue, verificationService);\n }}\n />\n )}\n\n {isFieldRequired(\"email\") && (\n <Email\n value={viewModel.email}\n isErrored={!!fieldValidationErrors.email}\n explanation=\" \"\n onChange={(newValue) => {\n updatePersonalInfoViewModel(\"email\", newValue);\n updateFieldValidationErrorsByFieldId(\"email\", newValue, verificationService);\n }}\n onKeyDown={(event) => handleEmailOnKeyDown(event)}\n disabled={getFieldConfigByFieldId(\"email\")?.disabled}\n />\n )}\n\n {isFieldRequired(\"phoneNumber\") && (\n <PhoneNumber\n isRequired={!!verificationService.programTheme.smsLoopEnabled}\n value={viewModel.phoneNumber}\n isErrored={!!fieldValidationErrors.phoneNumber}\n onChange={(newValue) => {\n updatePersonalInfoViewModel(\"phoneNumber\", newValue);\n updateFieldValidationErrorsByFieldId(\"phoneNumber\", newValue, verificationService);\n }}\n selectedCountryCode={viewModel.countryChoice && viewModel.countryChoice.value}\n disabled={getFieldConfigByFieldId(\"phoneNumber\")?.disabled}\n />\n )}\n\n {isFieldRequired(\"address1\") && (\n <AddressComponent\n value={viewModel.address1}\n isRequired\n isErrored={!!fieldValidationErrors.address1}\n errorId={fieldValidationErrors.address1}\n disabled={getFieldConfigByFieldId(\"address1\")?.disabled}\n onChange={(value) => {\n updatePersonalInfoViewModel(\"address1\", value);\n updateFieldValidationErrorsByFieldId(\"address1\", value, verificationService);\n }}\n />\n )}\n\n {isFieldRequired(\"city\") && (\n <CityComponent\n value={viewModel.city}\n isRequired\n isErrored={!!fieldValidationErrors.city}\n errorId={fieldValidationErrors.city}\n disabled={getFieldConfigByFieldId(\"city\")?.disabled}\n onChange={(newValue) => {\n updatePersonalInfoViewModel(\"city\", newValue);\n updateFieldValidationErrorsByFieldId(\"city\", newValue, verificationService);\n }}\n />\n )}\n\n {isFieldRequired(\"dischargeDate\") && (\n <DischargeDateComponent\n errorId={fieldValidationErrors.dischargeDate}\n locale={locale}\n onChange={(newValue) => {\n updatePersonalInfoViewModel(\"dischargeDate\", newValue);\n updateFieldValidationErrorsByFieldId(\"dischargeDate\", newValue, verificationService);\n }}\n value={viewModel.dischargeDate}\n disabled={getFieldConfigByFieldId(\"dischargeDate\")?.disabled}\n />\n )}\n\n {isFieldRequired(\"driverLicenseNumber\") && (\n <DriverLicenseNumber\n value={viewModel.driverLicenseNumber}\n isErrored={!!fieldValidationErrors.driverLicenseNumber}\n isRequired\n disabled={getFieldConfigByFieldId(\"driverLicenseNumber\")?.disabled}\n onChange={(newValue) => {\n updatePersonalInfoViewModel(\"driverLicenseNumber\", newValue);\n updateFieldValidationErrorsByFieldId(\n \"driverLicenseNumber\",\n newValue,\n verificationService,\n );\n }}\n />\n )}\n\n {isFieldRequired(\"ebtCardNumber\") && (\n <EBTCardNumberComponent\n value={viewModel.ebtCardNumber}\n isErrored={!!fieldValidationErrors.ebtCardNumber}\n disabled={getFieldConfigByFieldId(\"ebtCardNumber\")?.disabled}\n onChange={(newValue) => {\n updatePersonalInfoViewModel(\"ebtCardNumber\", newValue);\n updateFieldValidationErrorsByFieldId(\"ebtCardNumber\", newValue, verificationService);\n }}\n />\n )}\n\n {isFieldRequired(\"memberId\") && (\n <MemberId\n value={viewModel.memberId}\n isErrored={!!fieldValidationErrors.memberId}\n isRequired={getFieldConfigByFieldId(\"memberId\")?.requireIfOptional}\n disabled={getFieldConfigByFieldId(\"memberId\")?.disabled}\n onChange={(newValue) => {\n updatePersonalInfoViewModel(\"memberId\", newValue);\n updateFieldValidationErrorsByFieldId(\"memberId\", newValue, verificationService);\n }}\n label={\n <FormattedHTMLMessage\n id=\"step.collectMedicalPersonalInfo.registrationNumberLabel\"\n defaultMessage=\"Registration Number\"\n />\n }\n />\n )}\n\n {isFieldRequired(\"postalCode\") && (\n <PostalCodeComponent\n isErrored={!!fieldValidationErrors.postalCode}\n onChange={(newValue) => {\n updatePersonalInfoViewModel(\"postalCode\", newValue);\n updateFieldValidationErrorsByFieldId(\"postalCode\", newValue, verificationService);\n }}\n value={viewModel.postalCode}\n disabled={getFieldConfigByFieldId(\"postalCode\")?.disabled}\n />\n )}\n\n {isFieldRequired(\"socialSecurityNumber\") && (\n <div className=\"sid-ssn-wrapper\">\n <SocialSecurityNumber\n value={viewModel.socialSecurityNumber}\n onChange={(value: string) => {\n updatePersonalInfoViewModel(\"socialSecurityNumber\", value);\n updateFieldValidationErrorsByFieldId(\n \"socialSecurityNumber\",\n value,\n verificationService,\n );\n }}\n isErrored={!!fieldValidationErrors[FieldIdEnum.socialSecurityNumber]}\n placeholder=\"000-00-0000\"\n disabled={getFieldConfigByFieldId(\"socialSecurityNumber\")?.disabled}\n />\n </div>\n )}\n\n {isFieldRequired(\"state\") && (\n <StateSelectComponent\n isRequired\n options={getAvailableStateChoices(verificationService.programTheme, intl)}\n value={viewModel.state || undefined}\n isErrored={Boolean(fieldValidationErrors.state)}\n onChange={async (stateChoice: FormSelectChoice<State, string>) => {\n const stateValue = stateChoice ? stateChoice.value : undefined;\n updatePersonalInfoViewModel(\"state\", stateValue);\n updateFieldValidationErrorsByFieldId(\"state\", stateValue, verificationService);\n }}\n label={<FormattedHTMLMessage id=\"state\" defaultMessage=\"State\" />}\n disabled={getFieldConfigByFieldId(\"state\")?.disabled}\n />\n )}\n\n {isFieldRequired(\"activeDutyStartDate\") &&\n verificationService.programTheme.strictMilitaryValidationEnabled && (\n <ActiveDutyStartDateComponent\n errorId={fieldValidationErrors.activeDutyStartDate}\n locale={locale}\n onChange={(newValue) => {\n updatePersonalInfoViewModel(\"activeDutyStartDate\", newValue);\n updateFieldValidationErrorsByFieldId(\n \"activeDutyStartDate\",\n newValue,\n verificationService,\n );\n }}\n value={viewModel.activeDutyStartDate}\n disabled={getFieldConfigByFieldId(\"activeDutyStartDate\")?.disabled}\n />\n )}\n\n {options.customFormFields?.map((config: CustomFormFieldConfig) => (\n <FormFieldCustom config={config} verificationService={verificationService} />\n ))}\n\n <MarketConsentWrapper\n verificationService={verificationService}\n isErrored={!!fieldValidationErrors.marketConsentValue}\n onChange={(newValue) => {\n updatePersonalInfoViewModel(\"metadata\", {\n ...verificationService.viewModel.metadata,\n marketConsentValue: newValue,\n });\n updateFieldValidationErrorsByFieldId(\n \"marketConsentValue\",\n newValue,\n verificationService,\n );\n }}\n viewModel={viewModel}\n disabled={getFieldConfigByFieldId(\"marketConsentValue\")?.disabled}\n />\n\n <ExtraMessage verificationService={verificationService} suffix=\"CollectAboveSubmit\" />\n\n <PersonalInfoStepSubmitButton\n step={VerificationStepsEnum.collectPersonalInfo}\n verificationService={verificationService}\n viewModel={viewModel}\n failedInstantMatch={failedInstantMatch}\n buttonText={\n <FormattedHTMLMessage\n id=\"step.personalInfo.submitButtonText\"\n defaultMessage=\"Verify and continue\"\n />\n }\n />\n </div>\n <FormFooter verificationService={verificationService} />\n </div>\n );\n};\n\nexport const StepCollectPersonalInfoComponent = injectIntl(StepCollectPersonalInfo);\n"],"names":["StepCollectPersonalInfo","intl","verificationService","viewModel","updateViewModel","programTheme","requiredFields","setRequiredFields","React","isFieldRequired","key","field","fieldValidationErrors","verificationResponse","failedInstantMatch","hasFailedInstantMatch","updatePersonalInfoViewModel","value","nextState","produce","draft","updateViewModelWithRequiredFields","newRequiredFields","produceDraftViewModelWithAllRequiredFields","locale","options","getOptions","segment","availableStatuses","pascalCaseSegment","isStatusRequired","SegmentEnum","getAndSetRequiredFields","requestBody","collectFieldsResponse","getAllFieldsToCollect","getSafe","error","logger","getOrganizationField","jsx","CollegeName","_a","getFieldConfigByFieldId","choice","updateViewModelOrganization","updateFieldValidationErrorsByFieldId","TeacherSchool","_b","MembershipOrganization","_c","BranchOfService","_d","FirstResponderOrganization","_e","MedicalProfessionalOrganization","_f","LicensedProfessionalOrganization","_g","LowIncomeOrganization","orgToOption","_h","getMarketConsent","submitForm","VerificationStepsEnum","jsxs","PersonalInfoHeader","CountryComponentWrapper","Status","getStatusLabel","getAvailableStatuses","status","FirstName","newValue","LastName","BirthDate","Email","event","handleEmailOnKeyDown","PhoneNumber","AddressComponent","CityComponent","_i","DischargeDateComponent","_j","DriverLicenseNumber","_k","EBTCardNumberComponent","_l","MemberId","_m","_n","FormattedHTMLMessage","PostalCodeComponent","_o","SocialSecurityNumber","FieldIdEnum","_p","StateSelectComponent","getAvailableStateChoices","stateChoice","stateValue","_q","ActiveDutyStartDateComponent","_r","_s","config","FormFieldCustom","MarketConsentWrapper","_t","ExtraMessage","PersonalInfoStepSubmitButton","FormFooter","StepCollectPersonalInfoComponent","injectIntl"],"mappings":";;AAwEO,MAAMA,KAA0B,CAAC;AAAA,EACtC,MAAAC;AAAA,EACA,qBAAAC;AACF,MAAoC;;AAClC,QAAMC,IAAYD,EAAoB,WAChC,EAAE,iBAAAE,GAAiB,cAAAC,EAAiB,IAAAH,GAEpC,CAACI,GAAgBC,CAAiB,IAAIC,EAAM,SAA6B,MAAS,GAElFC,IAAkB,CAACC,MACvBJ,KAAkBA,EAAe,KAAK,CAACK,MAAUA,EAAM,QAAQD,CAAG,GAE9D,EAAE,uBAAAE,EAA0B,IAAAV,GAC5BW,IACJX,EAAoB,sBAChBY,KAAqBC,GAAsBF,CAAoB,GAE/DG,IAA8B,CAACN,GAAyCO,MAAe;AAC3F,UAAMC,IAA0CC;AAAA,MAC9ChB;AAAA,MACA,CAACiB,MAAwC;AACtC,QAAAA,EAAMV,CAAG,IAAYO;AAAA,MACxB;AAAA,IAAA;AAEF,IAAAb,EAAgBc,CAAS;AAAA,EAAA,GAGrBG,KAAoC,CAACC,MAA0C;AACnF,UAAMJ,IAA0CK;AAAA,MAC9CpB;AAAA,MACAmB;AAAA,IAAA;AAEF,IAAAlB,EAAgBc,CAAS;AAAA,EAAA,GAGrBM,IAASrB,EAAU,aAAa,OAChCsB,KA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