@sheerid/jslib-nightly 2.115.0-alpha.2 → 2.115.0-alpha.3

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 (273) hide show
  1. package/_mysheerid-preview.css +3 -3
  2. package/_mysheerid-preview.js +31 -31
  3. package/chunk/EmailLoopPending-Dtf0p85F.js +3 -3
  4. package/chunk/EmailLoopPending-Dy8mLFvV.js +3 -3
  5. package/chunk/LicensedProfessionalOrganizationComponent-BYijEfDT.js +3 -3
  6. package/chunk/LicensedProfessionalOrganizationComponent-CiYU-2dW.js +3 -3
  7. package/chunk/Onfido-AyvUk6wg.js +3 -3
  8. package/chunk/{StepIDCheckLoopOnfido-DPftaR9s.js → StepIDCheckLoopOnfido--3Fw5dMg.js} +4 -4
  9. package/chunk/{StepIDCheckLoopOnfido-DPftaR9s.js.map → StepIDCheckLoopOnfido--3Fw5dMg.js.map} +1 -1
  10. package/chunk/{StepIDCheckLoopOnfido-wrbezEdo.js → StepIDCheckLoopOnfido-CeiLgm_c.js} +4 -4
  11. package/chunk/{StepIDCheckLoopOnfido-wrbezEdo.js.map → StepIDCheckLoopOnfido-CeiLgm_c.js.map} +1 -1
  12. package/chunk/{StepIDCheckLoopRegula-CoJkGsDn.js → StepIDCheckLoopRegula-BFSb544w.js} +5 -5
  13. package/chunk/{StepIDCheckLoopRegula-5mxsRVU3.js.map → StepIDCheckLoopRegula-BFSb544w.js.map} +1 -1
  14. package/chunk/{StepIDCheckLoopRegula-5mxsRVU3.js → StepIDCheckLoopRegula-DDR_mxSn.js} +5 -5
  15. package/chunk/{StepIDCheckLoopRegula-CoJkGsDn.js.map → StepIDCheckLoopRegula-DDR_mxSn.js.map} +1 -1
  16. package/chunk/{StepInactiveMilitaryPersonalInfoComponent-CTCfr5Y8.js → StepInactiveMilitaryPersonalInfoComponent-Dhm9dCs2.js} +15 -15
  17. package/chunk/{StepInactiveMilitaryPersonalInfoComponent-D4veFRlW.js.map → StepInactiveMilitaryPersonalInfoComponent-Dhm9dCs2.js.map} +1 -1
  18. package/chunk/{StepInactiveMilitaryPersonalInfoComponent-D4veFRlW.js → StepInactiveMilitaryPersonalInfoComponent-_NISUzZF.js} +15 -15
  19. package/chunk/{StepInactiveMilitaryPersonalInfoComponent-CTCfr5Y8.js.map → StepInactiveMilitaryPersonalInfoComponent-_NISUzZF.js.map} +1 -1
  20. package/chunk/ar-BZsYQiJv.js +3 -3
  21. package/chunk/bg-DB_ZEB5O.js +3 -3
  22. package/chunk/bn-IN-D69rNeuh.js +3 -3
  23. package/chunk/cs-Dk4czWE5.js +3 -3
  24. package/chunk/da-NesYkkEW.js +3 -3
  25. package/chunk/de-4yAGb-JC.js +3 -3
  26. package/chunk/el-D1h3O3E7.js +3 -3
  27. package/chunk/en-GB-QY9gqmlz.js +3 -3
  28. package/chunk/es-BYhP2rUk.js +3 -3
  29. package/chunk/es-ES-BJLdehwH.js +3 -3
  30. package/chunk/fi-D-Ycqh7I.js +3 -3
  31. package/chunk/fr-CA-a8W9ZT_A.js +3 -3
  32. package/chunk/fr-DR25pnXw.js +3 -3
  33. package/chunk/ga-Bj6efXd2.js +3 -3
  34. package/chunk/hi-IN-C-u9_T8L.js +3 -3
  35. package/chunk/hr-B8E9jyUX.js +3 -3
  36. package/chunk/hu-C7z4yBSK.js +3 -3
  37. package/chunk/id-AsEkOlRu.js +3 -3
  38. package/chunk/{index-YSVzGeq_.js → index-3wRIidxQ.js} +17 -17
  39. package/chunk/{index-DvQoVn8P.js.map → index-3wRIidxQ.js.map} +1 -1
  40. package/chunk/{index-DFKdt9N2.js → index-4zf9jvK6.js} +9 -9
  41. package/chunk/{index-DFKdt9N2.js.map → index-4zf9jvK6.js.map} +1 -1
  42. package/chunk/{index-h1dR7dZA.js → index-8gjxKx0J.js} +5 -5
  43. package/chunk/{index-BrulkRve.js.map → index-8gjxKx0J.js.map} +1 -1
  44. package/chunk/index-B8KPM--K.js +3 -3
  45. package/chunk/index-BD2bjH-C.js +3 -3
  46. package/chunk/index-BD_a0MZT.js +3 -3
  47. package/chunk/{index-Cp0trvsP.js → index-BFMzh8b3.js} +34 -31
  48. package/chunk/index-BFMzh8b3.js.map +1 -0
  49. package/chunk/{index-_t8SsXjy.js → index-BSmAslR-.js} +11 -11
  50. package/chunk/{index-_t8SsXjy.js.map → index-BSmAslR-.js.map} +1 -1
  51. package/chunk/{index-DvQoVn8P.js → index-BYGkr72X.js} +17 -17
  52. package/chunk/{index-YSVzGeq_.js.map → index-BYGkr72X.js.map} +1 -1
  53. package/chunk/{index-C8MQD8EK.js → index-Bemwq78a.js} +8 -8
  54. package/chunk/{index-4APUDd8S.js.map → index-Bemwq78a.js.map} +1 -1
  55. package/chunk/{index-DDOySTBb.js → index-BgAd7a0x.js} +15 -15
  56. package/chunk/{index-BElPqx0Q.js.map → index-BgAd7a0x.js.map} +1 -1
  57. package/chunk/index-BpZoH-Wz.js +3 -3
  58. package/chunk/{index-CsPUjZ8r.js → index-ByBO6KNx.js} +34 -35
  59. package/chunk/{index-CsPUjZ8r.js.map → index-ByBO6KNx.js.map} +1 -1
  60. package/chunk/{index-4APUDd8S.js → index-C-YPXV3H.js} +8 -8
  61. package/chunk/{index-C8MQD8EK.js.map → index-C-YPXV3H.js.map} +1 -1
  62. package/chunk/{index-B0RXjf3X.js → index-C29suvHQ.js} +34 -31
  63. package/chunk/index-C29suvHQ.js.map +1 -0
  64. package/chunk/index-C2h0Wj84.js +3 -3
  65. package/chunk/{index-C96ntS0u.js → index-C9UAjull.js} +11 -11
  66. package/chunk/{index-Bmq6cJ3F.js.map → index-C9UAjull.js.map} +1 -1
  67. package/chunk/index-CcRowarb.js +3 -3
  68. package/chunk/index-CeHu2Npu.js +3 -3
  69. package/chunk/{index-Bmq6cJ3F.js → index-DEKYtYJV.js} +11 -11
  70. package/chunk/{index-C96ntS0u.js.map → index-DEKYtYJV.js.map} +1 -1
  71. package/chunk/{index-Dg8t7-dm.js → index-DHrneLz9.js} +14 -14
  72. package/chunk/{index-B8F8N-JM.js.map → index-DHrneLz9.js.map} +1 -1
  73. package/chunk/index-DIkWpujR.js +3 -3
  74. package/chunk/index-DRmBhdAn.js +3 -3
  75. package/chunk/{index-BElPqx0Q.js → index-DUXQFubY.js} +15 -15
  76. package/chunk/{index-DDOySTBb.js.map → index-DUXQFubY.js.map} +1 -1
  77. package/chunk/index-DVynViqA.js +3 -3
  78. package/chunk/{index-DhGg9lvf.js → index-Dg6e8PFO.js} +12 -12
  79. package/chunk/{index-BDrKYann.js.map → index-Dg6e8PFO.js.map} +1 -1
  80. package/chunk/{index-brVWUjHi.js → index-DgXh3iXb.js} +9 -9
  81. package/chunk/{index-brVWUjHi.js.map → index-DgXh3iXb.js.map} +1 -1
  82. package/chunk/{index-BuX76GyE.js → index-Dw4HZdl4.js} +8 -8
  83. package/chunk/{index-DO5Z3e-E.js.map → index-Dw4HZdl4.js.map} +1 -1
  84. package/chunk/{index-BDrKYann.js → index-DypbXiPM.js} +12 -12
  85. package/chunk/{index-DhGg9lvf.js.map → index-DypbXiPM.js.map} +1 -1
  86. package/chunk/{index-DsgCNIS5.js → index-FfsFdWXt.js} +9 -9
  87. package/chunk/{index-D_9J6arc.js.map → index-FfsFdWXt.js.map} +1 -1
  88. package/chunk/{index-C-G05eCw.js → index-TysYb0wj.js} +4 -4
  89. package/chunk/{index-C-G05eCw.js.map → index-TysYb0wj.js.map} +1 -1
  90. package/chunk/{index-DP5XPjKi.js → index-VrTXSLSj.js} +34 -35
  91. package/chunk/{index-DP5XPjKi.js.map → index-VrTXSLSj.js.map} +1 -1
  92. package/chunk/index-VxNSWlHu.js +3 -3
  93. package/chunk/{index-B8F8N-JM.js → index-Z410glzc.js} +14 -14
  94. package/chunk/{index-Dg8t7-dm.js.map → index-Z410glzc.js.map} +1 -1
  95. package/chunk/{index-BrulkRve.js → index-aRiqFbd1.js} +5 -5
  96. package/chunk/{index-h1dR7dZA.js.map → index-aRiqFbd1.js.map} +1 -1
  97. package/chunk/{index-D4Nea32j.js → index-eDr5_bvN.js} +4 -4
  98. package/chunk/{index-D4Nea32j.js.map → index-eDr5_bvN.js.map} +1 -1
  99. package/chunk/{index-D_9J6arc.js → index-f8an5bUm.js} +9 -9
  100. package/chunk/{index-DsgCNIS5.js.map → index-f8an5bUm.js.map} +1 -1
  101. package/chunk/{index-DO5Z3e-E.js → index-m9Gpah9q.js} +8 -8
  102. package/chunk/{index-BuX76GyE.js.map → index-m9Gpah9q.js.map} +1 -1
  103. package/chunk/{index-BTMETMEE.js → index-qj9OiaWM.js} +11 -11
  104. package/chunk/{index-BTMETMEE.js.map → index-qj9OiaWM.js.map} +1 -1
  105. package/chunk/is-PzizLXcv.js +3 -3
  106. package/chunk/it-CiJeQN1_.js +3 -3
  107. package/chunk/iw-QHmqNHZP.js +3 -3
  108. package/chunk/ja-DPgVvasb.js +3 -3
  109. package/chunk/ko-DykOu1Yp.js +3 -3
  110. package/chunk/lo-C4bFrJOj.js +3 -3
  111. package/chunk/lt-KjZ7oOV5.js +3 -3
  112. package/chunk/ms-CNvzXjsH.js +3 -3
  113. package/chunk/nl-BE-BXbsNtu2.js +3 -3
  114. package/chunk/nl-ucuj2G5l.js +3 -3
  115. package/chunk/no-D8IuXJ7O.js +3 -3
  116. package/chunk/pl-DvnUkXGb.js +3 -3
  117. package/chunk/pt-BR-Be00Hx-L.js +3 -3
  118. package/chunk/pt-DS7isrlt.js +3 -3
  119. package/chunk/ro-BHCICvJV.js +3 -3
  120. package/chunk/ru-DUDtL41i.js +3 -3
  121. package/chunk/sk-O9yqW58Q.js +3 -3
  122. package/chunk/sl-CxcvfiDu.js +3 -3
  123. package/chunk/sr-DgvzAvVS.js +3 -3
  124. package/chunk/sv-BtktR0mm.js +3 -3
  125. package/chunk/sw-D06YJhji.js +3 -3
  126. package/chunk/th-C1KZhtMd.js +3 -3
  127. package/chunk/tr-CqpbTukW.js +3 -3
  128. package/chunk/uk-BWHH_jN1.js +3 -3
  129. package/chunk/ur-BHWni4Fn.js +3 -3
  130. package/chunk/useCollectFieldsEndpoint-C5fsaYJe.js +3 -3
  131. package/chunk/useCollectFieldsEndpoint-kmLFyUA-.js +3 -3
  132. package/chunk/useEmailFirstExperiment-BbDrKQEs.js +3 -3
  133. package/chunk/useEmailFirstExperiment-CgU-itQI.js +3 -3
  134. package/chunk/vi-DVhQHKtP.js +3 -3
  135. package/chunk/zh-HK-C-wTSVhL.js +3 -3
  136. package/chunk/zh-qa3hzwEB.js +3 -3
  137. package/chunk/zu-DwVIy-bC.js +3 -3
  138. package/es6.css +3 -3
  139. package/jslib.js +4 -4
  140. package/lib/{EmailLoopPending-1RfnE4mt.js → EmailLoopPending-CRs0n7WO.js} +4 -4
  141. package/lib/{EmailLoopPending-1RfnE4mt.js.map → EmailLoopPending-CRs0n7WO.js.map} +1 -1
  142. package/lib/{LicensedProfessionalOrganizationComponent-1EOmC_XF.js → LicensedProfessionalOrganizationComponent-DpimxCKC.js} +4 -4
  143. package/lib/{LicensedProfessionalOrganizationComponent-1EOmC_XF.js.map → LicensedProfessionalOrganizationComponent-DpimxCKC.js.map} +1 -1
  144. package/lib/Onfido-AyvUk6wg.js +3 -3
  145. package/lib/StepCollectMilitaryStatusComponent-DjIRHg05.js +11 -0
  146. package/lib/{StepCollectMilitaryStatusComponent-BQkj7ZoB.js.map → StepCollectMilitaryStatusComponent-DjIRHg05.js.map} +1 -1
  147. package/lib/{StepIDCheckLoopOnfido-B3HvjOZj.js → StepIDCheckLoopOnfido-DNOdBaAR.js} +4 -4
  148. package/lib/{StepIDCheckLoopOnfido-B3HvjOZj.js.map → StepIDCheckLoopOnfido-DNOdBaAR.js.map} +1 -1
  149. package/lib/{StepIDCheckLoopRegula-DIeNhWoA.js → StepIDCheckLoopRegula-CX73icyg.js} +4 -4
  150. package/lib/{StepIDCheckLoopRegula-DIeNhWoA.js.map → StepIDCheckLoopRegula-CX73icyg.js.map} +1 -1
  151. package/lib/{StepInactiveMilitaryPersonalInfoComponent-D-xj1LVu.js → StepInactiveMilitaryPersonalInfoComponent-CeJIe91S.js} +18 -18
  152. package/lib/{StepInactiveMilitaryPersonalInfoComponent-D-xj1LVu.js.map → StepInactiveMilitaryPersonalInfoComponent-CeJIe91S.js.map} +1 -1
  153. package/lib/{VerificationApiUtils-DdSD4k-s.js → VerificationApiUtils-DCEPKSOt.js} +4 -4
  154. package/lib/{VerificationApiUtils-DdSD4k-s.js.map → VerificationApiUtils-DCEPKSOt.js.map} +1 -1
  155. package/lib/ar-BZsYQiJv.js +3 -3
  156. package/lib/bg-DB_ZEB5O.js +3 -3
  157. package/lib/bn-IN-D69rNeuh.js +3 -3
  158. package/lib/cs-Dk4czWE5.js +3 -3
  159. package/lib/da-NesYkkEW.js +3 -3
  160. package/lib/de-4yAGb-JC.js +3 -3
  161. package/lib/el-D1h3O3E7.js +3 -3
  162. package/lib/en-GB-QY9gqmlz.js +3 -3
  163. package/lib/es-BYhP2rUk.js +3 -3
  164. package/lib/es-ES-BJLdehwH.js +3 -3
  165. package/lib/{es6-DoczaIOS.js → es6-C2abemUD.js} +44 -44
  166. package/lib/{es6-DoczaIOS.js.map → es6-C2abemUD.js.map} +1 -1
  167. package/lib/fi-D-Ycqh7I.js +3 -3
  168. package/lib/fr-CA-a8W9ZT_A.js +3 -3
  169. package/lib/fr-DR25pnXw.js +3 -3
  170. package/lib/ga-Bj6efXd2.js +3 -3
  171. package/lib/hi-IN-C-u9_T8L.js +3 -3
  172. package/lib/hr-B8E9jyUX.js +3 -3
  173. package/lib/hu-C7z4yBSK.js +3 -3
  174. package/lib/id-AsEkOlRu.js +3 -3
  175. package/lib/{index-CVStpTnM.js → index--1Hzxve4.js} +6 -6
  176. package/lib/{index-CVStpTnM.js.map → index--1Hzxve4.js.map} +1 -1
  177. package/lib/{index-C94vhVR4.js → index-7L1Z0u1-.js} +4 -4
  178. package/lib/{index-C94vhVR4.js.map → index-7L1Z0u1-.js.map} +1 -1
  179. package/lib/{index-BHpxeZvo.js → index-84DA_jT2.js} +10 -10
  180. package/lib/{index-BHpxeZvo.js.map → index-84DA_jT2.js.map} +1 -1
  181. package/lib/{index-DhavY2m5.js → index-8kESiptt.js} +4 -4
  182. package/lib/{index-DhavY2m5.js.map → index-8kESiptt.js.map} +1 -1
  183. package/lib/{index-BU0lsrnW.js → index-B_BS9qnQ.js} +12 -12
  184. package/lib/{index-BU0lsrnW.js.map → index-B_BS9qnQ.js.map} +1 -1
  185. package/lib/{index-BTku6Nav.js → index-Bb5tkw_V.js} +8 -8
  186. package/lib/{index-BTku6Nav.js.map → index-Bb5tkw_V.js.map} +1 -1
  187. package/lib/index-Bm_R6wgA.js +11 -0
  188. package/lib/index-Bm_R6wgA.js.map +1 -0
  189. package/lib/{index-C28KGyFC.js → index-BtM1XPhl.js} +4 -4
  190. package/lib/{index-C28KGyFC.js.map → index-BtM1XPhl.js.map} +1 -1
  191. package/lib/{index-DdKZTMDD.js → index-BzZl5JDO.js} +36 -32
  192. package/lib/index-BzZl5JDO.js.map +1 -0
  193. package/lib/{index-CCIzkIQB.js → index-C3CtMm2Q.js} +13 -13
  194. package/lib/{index-CCIzkIQB.js.map → index-C3CtMm2Q.js.map} +1 -1
  195. package/lib/index-CNmUvsR-.js +11 -0
  196. package/lib/index-CNmUvsR-.js.map +1 -0
  197. package/lib/{index-BtwZxcpp.js → index-CS_JuJR3.js} +8 -8
  198. package/lib/{index-BtwZxcpp.js.map → index-CS_JuJR3.js.map} +1 -1
  199. package/lib/index-Cg0pahuD.js +11 -0
  200. package/lib/index-Cg0pahuD.js.map +1 -0
  201. package/lib/{index-86CuJOnE.js → index-DCCPfELa.js} +4 -4
  202. package/lib/{index-86CuJOnE.js.map → index-DCCPfELa.js.map} +1 -1
  203. package/lib/index-DIkWpujR.js +3 -3
  204. package/lib/index-DbQvQo1A.js +11 -0
  205. package/lib/index-DbQvQo1A.js.map +1 -0
  206. package/lib/{index-CY047n3D.js → index-DbaJBiSs.js} +6 -6
  207. package/lib/{index-CY047n3D.js.map → index-DbaJBiSs.js.map} +1 -1
  208. package/lib/{index-DblwzU8U.js → index-DdKeUKWu.js} +5 -5
  209. package/lib/{index-DblwzU8U.js.map → index-DdKeUKWu.js.map} +1 -1
  210. package/lib/{index-C8QQR_XI.js → index-DlwFWaiY.js} +13 -13
  211. package/lib/{index-C8QQR_XI.js.map → index-DlwFWaiY.js.map} +1 -1
  212. package/lib/{index-BEzio-vG.js → index-Dm5PevSE.js} +10 -10
  213. package/lib/{index-BEzio-vG.js.map → index-Dm5PevSE.js.map} +1 -1
  214. package/lib/{index-CRqc1g9s.js → index-DrxXRhEO.js} +4 -4
  215. package/lib/{index-CRqc1g9s.js.map → index-DrxXRhEO.js.map} +1 -1
  216. package/lib/{index-BZ9TBRcn.js → index-EEqCPFo8.js} +8 -8
  217. package/lib/{index-BZ9TBRcn.js.map → index-EEqCPFo8.js.map} +1 -1
  218. package/lib/{index-D1rQZWS-.js → index-K0J2eq7Y.js} +38 -39
  219. package/lib/index-K0J2eq7Y.js.map +1 -0
  220. package/lib/{index-BV42p1ID.js → index-PtF39r2i.js} +7 -7
  221. package/lib/{index-BV42p1ID.js.map → index-PtF39r2i.js.map} +1 -1
  222. package/lib/is-PzizLXcv.js +3 -3
  223. package/lib/it-CiJeQN1_.js +3 -3
  224. package/lib/iw-QHmqNHZP.js +3 -3
  225. package/lib/ja-DPgVvasb.js +3 -3
  226. package/lib/ko-DykOu1Yp.js +3 -3
  227. package/lib/lo-C4bFrJOj.js +3 -3
  228. package/lib/lt-KjZ7oOV5.js +3 -3
  229. package/lib/ms-CNvzXjsH.js +3 -3
  230. package/lib/nl-BE-BXbsNtu2.js +3 -3
  231. package/lib/nl-ucuj2G5l.js +3 -3
  232. package/lib/no-D8IuXJ7O.js +3 -3
  233. package/lib/pl-DvnUkXGb.js +3 -3
  234. package/lib/pt-BR-Be00Hx-L.js +3 -3
  235. package/lib/pt-DS7isrlt.js +3 -3
  236. package/lib/ro-BHCICvJV.js +3 -3
  237. package/lib/ru-DUDtL41i.js +3 -3
  238. package/lib/sk-O9yqW58Q.js +3 -3
  239. package/lib/sl-CxcvfiDu.js +3 -3
  240. package/lib/sr-DgvzAvVS.js +3 -3
  241. package/lib/sv-BtktR0mm.js +3 -3
  242. package/lib/sw-D06YJhji.js +3 -3
  243. package/lib/th-C1KZhtMd.js +3 -3
  244. package/lib/tr-CqpbTukW.js +3 -3
  245. package/lib/uk-BWHH_jN1.js +3 -3
  246. package/lib/ur-BHWni4Fn.js +3 -3
  247. package/lib/{useCollectFieldsEndpoint-CHfpu8rz.js → useCollectFieldsEndpoint-C9_ygIzy.js} +5 -5
  248. package/lib/{useCollectFieldsEndpoint-CHfpu8rz.js.map → useCollectFieldsEndpoint-C9_ygIzy.js.map} +1 -1
  249. package/lib/{useEmailFirstExperiment-BW42yQPm.js → useEmailFirstExperiment-Cib954tq.js} +4 -4
  250. package/lib/{useEmailFirstExperiment-BW42yQPm.js.map → useEmailFirstExperiment-Cib954tq.js.map} +1 -1
  251. package/lib/vi-DVhQHKtP.js +3 -3
  252. package/lib/zh-HK-C-wTSVhL.js +3 -3
  253. package/lib/zh-qa3hzwEB.js +3 -3
  254. package/lib/zu-DwVIy-bC.js +3 -3
  255. package/package.json +1 -1
  256. package/sheerid-install.css +3 -3
  257. package/sheerid-install.js +4 -4
  258. package/sheerid.css +3 -3
  259. package/sheerid.js +31 -31
  260. package/types-reference.zip +0 -0
  261. package/chunk/index-B0RXjf3X.js.map +0 -1
  262. package/chunk/index-Cp0trvsP.js.map +0 -1
  263. package/lib/StepCollectMilitaryStatusComponent-BQkj7ZoB.js +0 -11
  264. package/lib/index-CcAsLQCG.js +0 -11
  265. package/lib/index-CcAsLQCG.js.map +0 -1
  266. package/lib/index-Cnu2Xjr1.js +0 -11
  267. package/lib/index-Cnu2Xjr1.js.map +0 -1
  268. package/lib/index-D--q13gK.js +0 -11
  269. package/lib/index-D--q13gK.js.map +0 -1
  270. package/lib/index-D1rQZWS-.js.map +0 -1
  271. package/lib/index-DdKZTMDD.js.map +0 -1
  272. package/lib/index-PsAje25X.js +0 -11
  273. package/lib/index-PsAje25X.js.map +0 -1
@@ -1,11 +1,11 @@
1
1
 
2
2
  /**
3
- * VERSION: 2.115.0-alpha.2
4
- * BUILD_TIMESTAMP: 1751929030742
5
- * BUILD_DATE: Mon Jul 07 2025 22:57:10 GMT+0000 (Coordinated Universal Time)
3
+ * VERSION: 2.115.0-alpha.3
4
+ * BUILD_TIMESTAMP: 1751931324976
5
+ * BUILD_DATE: Mon Jul 07 2025 23:35:24 GMT+0000 (Coordinated Universal Time)
6
6
  * BUILD_COMMIT: 9b953bf464bb46df40df3f4b766e06f47b82b5aa
7
7
  */
8
- import { i as P, j as a, t as k, v as V, P as f, w as z, Q as A, g as t, a3 as u, a4 as B, U as R, u as n, x as w, y as D, z as L, b as p, a0 as q, a5 as H, a6 as O, B as U, E as W, e as K, D as G, G as Q, M as J, H as X, f as Y, V as Z, m as _ } from "../sheerid.js";
8
+ import { i as P, j as a, t as k, v as V, P as f, w as z, O as A, g as t, a3 as u, a4 as B, T as R, u as n, x as w, y as D, z as L, b as p, a0 as q, a5 as O, a6 as H, B as W, E as K, e as U, D as G, G as J, M as Q, H as X, f as Y, V as Z, m as _ } from "../sheerid.js";
9
9
  const $ = ({
10
10
  intl: I,
11
11
  verificationService: e
@@ -119,10 +119,10 @@ const $ = ({
119
119
  }
120
120
  ),
121
121
  /* @__PURE__ */ a.jsx(
122
- H,
122
+ O,
123
123
  {
124
124
  isRequired: !0,
125
- options: O(e.programTheme, I),
125
+ options: H(e.programTheme, I),
126
126
  value: o.state || void 0,
127
127
  isErrored: !!d.state,
128
128
  onChange: async (s) => {
@@ -134,7 +134,7 @@ const $ = ({
134
134
  }
135
135
  ),
136
136
  /* @__PURE__ */ a.jsx(
137
- U,
137
+ W,
138
138
  {
139
139
  isErrored: !!d.postalCode,
140
140
  onChange: (s) => {
@@ -146,7 +146,7 @@ const $ = ({
146
146
  )
147
147
  ] }) : null,
148
148
  /* @__PURE__ */ a.jsx(
149
- W,
149
+ K,
150
150
  {
151
151
  value: o.email,
152
152
  isErrored: !!d.email,
@@ -160,7 +160,7 @@ const $ = ({
160
160
  onChange: (s) => {
161
161
  m("email", s), n("email", s, e);
162
162
  },
163
- onKeyDown: (s) => K(s),
163
+ onKeyDown: (s) => U(s),
164
164
  disabled: (j = t("email")) == null ? void 0 : j.disabled
165
165
  }
166
166
  ),
@@ -177,9 +177,9 @@ const $ = ({
177
177
  disabled: (N = t("phoneNumber")) == null ? void 0 : N.disabled
178
178
  }
179
179
  ) : null,
180
- T.customFormFields.map((s) => /* @__PURE__ */ a.jsx(Q, { config: s, verificationService: e })),
180
+ T.customFormFields.map((s) => /* @__PURE__ */ a.jsx(J, { config: s, verificationService: e })),
181
181
  /* @__PURE__ */ a.jsx(
182
- J,
182
+ Q,
183
183
  {
184
184
  verificationService: e,
185
185
  isErrored: !!d.marketConsentValue,
@@ -1 +1 @@
1
- {"version":3,"file":"index-Bmq6cJ3F.js","sources":["../../src/components/StepEmploymentPersonalInfo/StepEmploymentPersonalInfoComponent.tsx"],"sourcesContent":["/**\n * TODO - preamble\n */\nimport React from \"react\";\nimport { FormattedHTMLMessage, injectIntl } from \"react-intl\";\nimport { produce } from \"immer\";\n\nimport { VerificationStepsEnum } from \"../../lib/types/runtimeTypes\";\nimport {\n VerificationService,\n Organization,\n EmploymentPersonalInfoViewModel,\n CustomFormFieldConfig,\n FormSelectChoice,\n State,\n} from \"../../lib/types/types\";\nimport {\n handleEmailOnKeyDown,\n updateFieldValidationErrorsByFieldId,\n updateViewModelOrganization,\n shouldCollectAddressFields,\n getAvailableStateChoices,\n getFieldConfigByFieldId,\n} from \"../../lib/utils/stepComponentHelpers/stepComponentHelpers\";\n\nimport { PhoneNumberComponent as PhoneNumber } from \"../FormFields/PhoneNumber/PhoneNumberComponent\";\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 { MarketConsentWrapperComponent as MarketConsentWrapper } from \"../FormFields/MarketConsentWrapper/MarketConsentWrapperComponent\";\nimport { AddressComponent } from \"../FormFields/Address/AddressComponent\";\nimport { CityComponent } from \"../FormFields/City/City\";\nimport { StateSelectComponent } from \"../FormFields/State/StateSelectComponent\";\nimport { CompanyComponent } from \"../FormFields/Company/CompanyComponent\";\nimport { PostalCodeComponent } from \"../FormFields/PostalCode/PostalCodeComponent\";\n\nimport { CountryComponentWrapper } from \"../FormFields/Country/CountryComponentWrapper\";\nimport { getOptions } from \"../../options/options\";\nimport { FormFieldCustom } from \"../FormFields/FormFieldCustom/FormFieldCustom\";\nimport { ExtraMessage } from \"../ExtraMessage\";\nimport { ChangeLocaleV2Component } from \"../FormFields/ChangeLocale/ChangeLocaleComponent\";\nimport { PersonalInfoWrapper } from \"../PersonalInfoStepWrapper/PersonalInfoStepWrapper\";\nimport { PersonalInfoStepSubmitButton } from \"../PersonalInfoStepSubmitButton/PersonalInfoStepSubmitButton\";\nimport { PersonalInfoHeader } from \"../FormHeader/StepHeaders/PersonalInfoHeaderComponent\";\n\ninterface StepEmploymentPersonalInfoComponentProps {\n intl: any;\n verificationService: VerificationService;\n}\n\nconst StepEmploymentPersonalInfo = ({\n intl,\n verificationService,\n}: StepEmploymentPersonalInfoComponentProps) => {\n const viewModel = verificationService.viewModel as EmploymentPersonalInfoViewModel;\n const { fieldValidationErrors } = verificationService;\n const options = getOptions();\n\n const updateEmploymentViewModel = (key: keyof EmploymentPersonalInfoViewModel, value: any) => {\n const nextState: EmploymentPersonalInfoViewModel = produce(\n viewModel,\n (draft: EmploymentPersonalInfoViewModel) => {\n (draft[key] as any) = value;\n },\n );\n verificationService.updateViewModel(nextState);\n };\n\n return (\n <PersonalInfoWrapper\n verificationService={verificationService}\n step={verificationService.verificationResponse.currentStep}\n >\n <PersonalInfoHeader\n verificationService={verificationService}\n classNameIdentifier=\"employment\"\n />\n\n <ChangeLocaleV2Component verificationService={verificationService} />\n <CountryComponentWrapper\n verificationService={verificationService}\n disabled={getFieldConfigByFieldId(\"country\")?.disabled}\n viewModelDraftDecorator={(draft, countryChoice) => {\n const viewModel = draft as EmploymentPersonalInfoViewModel;\n\n viewModel.shouldCollectAddress = shouldCollectAddressFields(\n countryChoice,\n verificationService.programTheme.config.countries,\n );\n if (!viewModel.shouldCollectAddress) {\n viewModel.address1 = \"\";\n viewModel.city = \"\";\n viewModel.state = \"\";\n viewModel.postalCode = \"\";\n viewModel.fieldsToSkipValidation = [\"address1\", \"city\", \"state\", \"postalCode\"];\n } else {\n viewModel.fieldsToSkipValidation = undefined;\n }\n }}\n />\n\n <CompanyComponent\n value={(verificationService.viewModel as EmploymentPersonalInfoViewModel).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 <div className=\"sid-names\">\n <FirstName\n value={viewModel.firstName}\n isErrored={!!fieldValidationErrors.firstName}\n disabled={getFieldConfigByFieldId(\"firstName\")?.disabled}\n onChange={(newValue) => {\n updateEmploymentViewModel(\"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 updateEmploymentViewModel(\"lastName\", newValue);\n updateFieldValidationErrorsByFieldId(\"lastName\", newValue, verificationService);\n }}\n />\n </div>\n\n {shouldCollectAddressFields(\n viewModel.countryChoice,\n verificationService.programTheme.config.countries,\n ) ? (\n <AddressComponent\n isErrored={!!fieldValidationErrors.address1}\n errorId={fieldValidationErrors.address1}\n onChange={(newValue) => {\n updateEmploymentViewModel(\"address1\", newValue);\n updateFieldValidationErrorsByFieldId(\"address1\", newValue, verificationService);\n }}\n isRequired\n value={viewModel.address1}\n disabled={getFieldConfigByFieldId(\"address1\")?.disabled}\n explanation={\n <FormattedHTMLMessage id=\"addressExplanation\" defaultMessage=\"Use your home address\" />\n }\n />\n ) : null}\n\n {shouldCollectAddressFields(\n viewModel.countryChoice,\n verificationService.programTheme.config.countries,\n ) ? (\n <div className=\"sid-thirds\">\n <CityComponent\n isErrored={!!fieldValidationErrors.city}\n errorId={fieldValidationErrors.city}\n onChange={(newValue) => {\n updateEmploymentViewModel(\"city\", newValue);\n updateFieldValidationErrorsByFieldId(\"city\", newValue, verificationService);\n }}\n value={viewModel.city}\n isRequired\n disabled={getFieldConfigByFieldId(\"city\")?.disabled}\n />\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 updateEmploymentViewModel(\"state\", stateValue);\n updateFieldValidationErrorsByFieldId(\"state\", stateValue, verificationService);\n }}\n label={<FormattedHTMLMessage id=\"state\" defaultMessage=\"State\" />}\n disabled={getFieldConfigByFieldId(\"state\")?.disabled}\n />\n <PostalCodeComponent\n isErrored={!!fieldValidationErrors.postalCode}\n onChange={(newValue) => {\n updateEmploymentViewModel(\"postalCode\", newValue);\n updateFieldValidationErrorsByFieldId(\"postalCode\", newValue, verificationService);\n }}\n value={viewModel.postalCode}\n disabled={getFieldConfigByFieldId(\"postalCode\")?.disabled}\n />\n </div>\n ) : null}\n\n <Email\n value={viewModel.email}\n isErrored={!!fieldValidationErrors.email}\n explanation={\n <FormattedHTMLMessage\n id=\"emailExplanation\"\n defaultMessage=\"Use your work email if you have one\"\n />\n }\n onChange={(newValue) => {\n updateEmploymentViewModel(\"email\", newValue);\n updateFieldValidationErrorsByFieldId(\"email\", newValue, verificationService);\n }}\n onKeyDown={(event) => handleEmailOnKeyDown(event)}\n disabled={getFieldConfigByFieldId(\"email\")?.disabled}\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 onChange={(newValue) => {\n updateEmploymentViewModel(\"phoneNumber\", newValue);\n updateFieldValidationErrorsByFieldId(\"phoneNumber\", newValue, verificationService);\n }}\n selectedCountryCode={viewModel.countryChoice && viewModel.countryChoice.value}\n disabled={getFieldConfigByFieldId(\"phoneNumber\")?.disabled}\n />\n ) : null}\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 updateEmploymentViewModel(\"metadata\", {\n ...verificationService.viewModel.metadata,\n marketConsentValue: newValue,\n });\n updateFieldValidationErrorsByFieldId(\"marketConsentValue\", newValue, verificationService);\n }}\n viewModel={viewModel}\n disabled={getFieldConfigByFieldId(\"marketConsentValue\")?.disabled}\n />\n\n <ExtraMessage verificationService={verificationService} suffix=\"CollectAboveSubmit\" />\n\n <PersonalInfoStepSubmitButton\n step={VerificationStepsEnum.collectEmployeePersonalInfo}\n verificationService={verificationService}\n viewModel={viewModel}\n buttonText={\n <FormattedHTMLMessage\n id=\"step.personalInfo.submitButtonText\"\n defaultMessage=\"Verify My Employment Status\"\n />\n }\n />\n </PersonalInfoWrapper>\n );\n};\n\n// TODO remove injectIntl, unused\nexport const StepEmploymentPersonalInfoComponent = injectIntl(StepEmploymentPersonalInfo);\n"],"names":["StepEmploymentPersonalInfo","intl","verificationService","viewModel","fieldValidationErrors","options","getOptions","updateEmploymentViewModel","key","value","nextState","produce","draft","jsxs","PersonalInfoWrapper","jsx","PersonalInfoHeader","ChangeLocaleV2Component","CountryComponentWrapper","_a","getFieldConfigByFieldId","countryChoice","shouldCollectAddressFields","CompanyComponent","_b","choice","updateViewModelOrganization","updateFieldValidationErrorsByFieldId","FirstName","_c","newValue","LastName","_d","AddressComponent","_e","FormattedHTMLMessage","CityComponent","_f","StateSelectComponent","getAvailableStateChoices","stateChoice","stateValue","_g","PostalCodeComponent","_h","Email","event","handleEmailOnKeyDown","_i","PhoneNumber","_j","config","FormFieldCustom","MarketConsentWrapper","_k","ExtraMessage","PersonalInfoStepSubmitButton","VerificationStepsEnum","StepEmploymentPersonalInfoComponent","injectIntl"],"mappings":";AAkDA,MAAMA,IAA6B,CAAC;AAAA,EAClC,MAAAC;AAAA,EACA,qBAAAC;AACF,MAAgD;;AAC9C,QAAMC,IAAYD,EAAoB,WAChC,EAAE,uBAAAE,MAA0BF,GAC5BG,IAAUC,EAAW,GAErBC,IAA4B,CAACC,GAA4CC,MAAe;AAC5F,UAAMC,IAA6CC;AAAAA,MACjDR;AAAA,MACA,CAACS,MAA2C;AACzC,QAAAA,EAAMJ,CAAG,IAAYC;AAAA,MAAA;AAAA,IAE1B;AACA,IAAAP,EAAoB,gBAAgBQ,CAAS;AAAA,EAC/C;AAGE,SAAAG,gBAAAA,EAAA;AAAA,IAACC;AAAA,IAAA;AAAA,MACC,qBAAAZ;AAAA,MACA,MAAMA,EAAoB,qBAAqB;AAAA,MAE/C,UAAA;AAAA,QAAAa,gBAAAA,EAAA;AAAA,UAACC;AAAA,UAAA;AAAA,YACC,qBAAAd;AAAA,YACA,qBAAoB;AAAA,UAAA;AAAA,QACtB;AAAA,QAEAa,gBAAAA,MAACE,KAAwB,qBAAAf,GAA0C;AAAA,QACnEa,gBAAAA,EAAA;AAAA,UAACG;AAAA,UAAA;AAAA,YACC,qBAAAhB;AAAA,YACA,WAAUiB,IAAAC,EAAwB,SAAS,MAAjC,gBAAAD,EAAoC;AAAA,YAC9C,yBAAyB,CAACP,GAAOS,MAAkB;AACjD,oBAAMlB,IAAYS;AAElBT,cAAAA,EAAU,uBAAuBmB;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AC;AAAA,YACA,YACEY,gBAAAA,EAAA;AAAA,cAACoB;AAAA,cAAA;AAAA,gBACC,IAAG;AAAA,gBACH,gBAAe;AAAA,cAAA;AAAA,YAAA;AAAA,UACjB;AAAA,QAAA;AAAA,MAEJ;AAAA,IAAA;AAAA,EACF;AAEJ,GAGauB,IAAsCC,EAAW3D,CAA0B;"}
1
+ {"version":3,"file":"index-C9UAjull.js","sources":["../../src/components/StepEmploymentPersonalInfo/StepEmploymentPersonalInfoComponent.tsx"],"sourcesContent":["/**\n * TODO - preamble\n */\nimport React from \"react\";\nimport { FormattedHTMLMessage, injectIntl } from \"react-intl\";\nimport { produce } from \"immer\";\n\nimport { VerificationStepsEnum } from \"../../lib/types/runtimeTypes\";\nimport {\n VerificationService,\n Organization,\n EmploymentPersonalInfoViewModel,\n CustomFormFieldConfig,\n FormSelectChoice,\n State,\n} from \"../../lib/types/types\";\nimport {\n handleEmailOnKeyDown,\n updateFieldValidationErrorsByFieldId,\n updateViewModelOrganization,\n shouldCollectAddressFields,\n getAvailableStateChoices,\n getFieldConfigByFieldId,\n} from \"../../lib/utils/stepComponentHelpers/stepComponentHelpers\";\n\nimport { PhoneNumberComponent as PhoneNumber } from \"../FormFields/PhoneNumber/PhoneNumberComponent\";\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 { MarketConsentWrapperComponent as MarketConsentWrapper } from \"../FormFields/MarketConsentWrapper/MarketConsentWrapperComponent\";\nimport { AddressComponent } from \"../FormFields/Address/AddressComponent\";\nimport { CityComponent } from \"../FormFields/City/City\";\nimport { StateSelectComponent } from \"../FormFields/State/StateSelectComponent\";\nimport { CompanyComponent } from \"../FormFields/Company/CompanyComponent\";\nimport { PostalCodeComponent } from \"../FormFields/PostalCode/PostalCodeComponent\";\n\nimport { CountryComponentWrapper } from \"../FormFields/Country/CountryComponentWrapper\";\nimport { getOptions } from \"../../options/options\";\nimport { FormFieldCustom } from \"../FormFields/FormFieldCustom/FormFieldCustom\";\nimport { ExtraMessage } from \"../ExtraMessage\";\nimport { ChangeLocaleV2Component } from \"../FormFields/ChangeLocale/ChangeLocaleComponent\";\nimport { PersonalInfoWrapper } from \"../PersonalInfoStepWrapper/PersonalInfoStepWrapper\";\nimport { PersonalInfoStepSubmitButton } from \"../PersonalInfoStepSubmitButton/PersonalInfoStepSubmitButton\";\nimport { PersonalInfoHeader } from \"../FormHeader/StepHeaders/PersonalInfoHeaderComponent\";\n\ninterface StepEmploymentPersonalInfoComponentProps {\n intl: any;\n verificationService: VerificationService;\n}\n\nconst StepEmploymentPersonalInfo = ({\n intl,\n verificationService,\n}: StepEmploymentPersonalInfoComponentProps) => {\n const viewModel = verificationService.viewModel as EmploymentPersonalInfoViewModel;\n const { fieldValidationErrors } = verificationService;\n const options = getOptions();\n\n const updateEmploymentViewModel = (key: keyof EmploymentPersonalInfoViewModel, value: any) => {\n const nextState: EmploymentPersonalInfoViewModel = produce(\n viewModel,\n (draft: EmploymentPersonalInfoViewModel) => {\n (draft[key] as any) = value;\n },\n );\n verificationService.updateViewModel(nextState);\n };\n\n return (\n <PersonalInfoWrapper\n verificationService={verificationService}\n step={verificationService.verificationResponse.currentStep}\n >\n <PersonalInfoHeader\n verificationService={verificationService}\n classNameIdentifier=\"employment\"\n />\n\n <ChangeLocaleV2Component verificationService={verificationService} />\n <CountryComponentWrapper\n verificationService={verificationService}\n disabled={getFieldConfigByFieldId(\"country\")?.disabled}\n viewModelDraftDecorator={(draft, countryChoice) => {\n const viewModel = draft as EmploymentPersonalInfoViewModel;\n\n viewModel.shouldCollectAddress = shouldCollectAddressFields(\n countryChoice,\n verificationService.programTheme.config.countries,\n );\n if (!viewModel.shouldCollectAddress) {\n viewModel.address1 = \"\";\n viewModel.city = \"\";\n viewModel.state = \"\";\n viewModel.postalCode = \"\";\n viewModel.fieldsToSkipValidation = [\"address1\", \"city\", \"state\", \"postalCode\"];\n } else {\n viewModel.fieldsToSkipValidation = undefined;\n }\n }}\n />\n\n <CompanyComponent\n value={(verificationService.viewModel as EmploymentPersonalInfoViewModel).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 <div className=\"sid-names\">\n <FirstName\n value={viewModel.firstName}\n isErrored={!!fieldValidationErrors.firstName}\n disabled={getFieldConfigByFieldId(\"firstName\")?.disabled}\n onChange={(newValue) => {\n updateEmploymentViewModel(\"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 updateEmploymentViewModel(\"lastName\", newValue);\n updateFieldValidationErrorsByFieldId(\"lastName\", newValue, verificationService);\n }}\n />\n </div>\n\n {shouldCollectAddressFields(\n viewModel.countryChoice,\n verificationService.programTheme.config.countries,\n ) ? (\n <AddressComponent\n isErrored={!!fieldValidationErrors.address1}\n errorId={fieldValidationErrors.address1}\n onChange={(newValue) => {\n updateEmploymentViewModel(\"address1\", newValue);\n updateFieldValidationErrorsByFieldId(\"address1\", newValue, verificationService);\n }}\n isRequired\n value={viewModel.address1}\n disabled={getFieldConfigByFieldId(\"address1\")?.disabled}\n explanation={\n <FormattedHTMLMessage id=\"addressExplanation\" defaultMessage=\"Use your home address\" />\n }\n />\n ) : null}\n\n {shouldCollectAddressFields(\n viewModel.countryChoice,\n verificationService.programTheme.config.countries,\n ) ? (\n <div className=\"sid-thirds\">\n <CityComponent\n isErrored={!!fieldValidationErrors.city}\n errorId={fieldValidationErrors.city}\n onChange={(newValue) => {\n updateEmploymentViewModel(\"city\", newValue);\n updateFieldValidationErrorsByFieldId(\"city\", newValue, verificationService);\n }}\n value={viewModel.city}\n isRequired\n disabled={getFieldConfigByFieldId(\"city\")?.disabled}\n />\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 updateEmploymentViewModel(\"state\", stateValue);\n updateFieldValidationErrorsByFieldId(\"state\", stateValue, verificationService);\n }}\n label={<FormattedHTMLMessage id=\"state\" defaultMessage=\"State\" />}\n disabled={getFieldConfigByFieldId(\"state\")?.disabled}\n />\n <PostalCodeComponent\n isErrored={!!fieldValidationErrors.postalCode}\n onChange={(newValue) => {\n updateEmploymentViewModel(\"postalCode\", newValue);\n updateFieldValidationErrorsByFieldId(\"postalCode\", newValue, verificationService);\n }}\n value={viewModel.postalCode}\n disabled={getFieldConfigByFieldId(\"postalCode\")?.disabled}\n />\n </div>\n ) : null}\n\n <Email\n value={viewModel.email}\n isErrored={!!fieldValidationErrors.email}\n explanation={\n <FormattedHTMLMessage\n id=\"emailExplanation\"\n defaultMessage=\"Use your work email if you have one\"\n />\n }\n onChange={(newValue) => {\n updateEmploymentViewModel(\"email\", newValue);\n updateFieldValidationErrorsByFieldId(\"email\", newValue, verificationService);\n }}\n onKeyDown={(event) => handleEmailOnKeyDown(event)}\n disabled={getFieldConfigByFieldId(\"email\")?.disabled}\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 onChange={(newValue) => {\n updateEmploymentViewModel(\"phoneNumber\", newValue);\n updateFieldValidationErrorsByFieldId(\"phoneNumber\", newValue, verificationService);\n }}\n selectedCountryCode={viewModel.countryChoice && viewModel.countryChoice.value}\n disabled={getFieldConfigByFieldId(\"phoneNumber\")?.disabled}\n />\n ) : null}\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 updateEmploymentViewModel(\"metadata\", {\n ...verificationService.viewModel.metadata,\n marketConsentValue: newValue,\n });\n updateFieldValidationErrorsByFieldId(\"marketConsentValue\", newValue, verificationService);\n }}\n viewModel={viewModel}\n disabled={getFieldConfigByFieldId(\"marketConsentValue\")?.disabled}\n />\n\n <ExtraMessage verificationService={verificationService} suffix=\"CollectAboveSubmit\" />\n\n <PersonalInfoStepSubmitButton\n step={VerificationStepsEnum.collectEmployeePersonalInfo}\n verificationService={verificationService}\n viewModel={viewModel}\n buttonText={\n <FormattedHTMLMessage\n id=\"step.personalInfo.submitButtonText\"\n defaultMessage=\"Verify My Employment Status\"\n />\n }\n />\n </PersonalInfoWrapper>\n );\n};\n\n// TODO remove injectIntl, unused\nexport const StepEmploymentPersonalInfoComponent = injectIntl(StepEmploymentPersonalInfo);\n"],"names":["StepEmploymentPersonalInfo","intl","verificationService","viewModel","fieldValidationErrors","options","getOptions","updateEmploymentViewModel","key","value","nextState","produce","draft","jsxs","PersonalInfoWrapper","jsx","PersonalInfoHeader","ChangeLocaleV2Component","CountryComponentWrapper","_a","getFieldConfigByFieldId","countryChoice","shouldCollectAddressFields","CompanyComponent","_b","choice","updateViewModelOrganization","updateFieldValidationErrorsByFieldId","FirstName","_c","newValue","LastName","_d","AddressComponent","_e","FormattedHTMLMessage","CityComponent","_f","StateSelectComponent","getAvailableStateChoices","stateChoice","stateValue","_g","PostalCodeComponent","_h","Email","event","handleEmailOnKeyDown","_i","PhoneNumber","_j","config","FormFieldCustom","MarketConsentWrapper","_k","ExtraMessage","PersonalInfoStepSubmitButton","VerificationStepsEnum","StepEmploymentPersonalInfo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5B,CAAmB;AAAA,YACnF;AAAA,YACA,qBAAqBC,EAAU,iBAAiBA,EAAU,cAAc;AAAA,YACxE,WAAU+C,IAAA9B,EAAwB,aAAa,MAArC,gBAAA8B,EAAwC;AAAA,UAAA;AAAA,QAAA,IAElD;AAAA,QAEH7C,EAAQ,iBAAiB,IAAI,CAAC8C,MAC5BpC,gBAAAA,MAAAqC,GAAA,EAAgB,QAAAD,GAAgB,qBAAAjD,EAAA,CAA0C,CAC5E;AAAA,QAEDa,gBAAAA,EAAA;AAAA,UAACsC;AAAAA,UAAA;AAAA,YACC,qBAAAnD;AAAA,YACA,WAAW,CAAC,CAACE,EAAsB;AAAA,YACnC,UAAU,CAAC0B,MAAa;AACtB,cAAAvB,EAA0B,YAAY;AAAA,gBACpC,GAAGL,EAAoB,UAAU;AAAA,gBACjC,oBAAoB4B;AAAA,cAAA,CACrB,GACoCH,EAAA,sBAAsBG,GAAU5B,CAAmB;AAAA,YAC1F;AAAA,YACA,WAAAC;AAAA,YACA,WAAUmD,IAAAlC,EAAwB,oBAAoB,MAA5C,gBAAAkC,EAA+C;AAAA,UAAA;AAAA,QAC3D;AAAA,QAECvC,gBAAAA,EAAAA,IAAAwC,GAAA,EAAa,qBAAArD,GAA0C,QAAO,qBAAqB,CAAA;AAAA,QAEpFa,gBAAAA,EAAA;AAAA,UAACyC;AAAA,UAAA;AAAA,YACC,MAAMC,EAAsB;AAAA,YAC5B,qBAAAvD;AAAA,YACA,WAAAC;AAAA,YACA,YACEY,gBAAAA,EAAA;AAAA,cAACoB;AAAA,cAAA;AAAA,gBACC,IAAG;AAAA,gBACH,gBAAe;AAAA,cAAA;AAAA,YAAA;AAAA,UACjB;AAAA,QAAA;AAAA,MAEJ;AAAA,IAAA;AAAA,EACF;AAEJ,GAGauB,IAAsCC,EAAW3D,CAA0B;"}
@@ -4,9 +4,9 @@
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.115.0-alpha.2
8
- * BUILD_TIMESTAMP: 1751929074457
9
- * BUILD_DATE: Mon Jul 07 2025 22:57:54 GMT+0000 (Coordinated Universal Time)
7
+ * VERSION: 2.115.0-alpha.3
8
+ * BUILD_TIMESTAMP: 1751931366907
9
+ * BUILD_DATE: Mon Jul 07 2025 23:36:06 GMT+0000 (Coordinated Universal Time)
10
10
  * BUILD_COMMIT: 9b953bf464bb46df40df3f4b766e06f47b82b5aa
11
11
  */
12
12
  import { j as e, L as r, b as o, n as c, o as p, C as m } from "../_mysheerid-preview.js";
@@ -1,8 +1,8 @@
1
1
 
2
2
  /**
3
- * VERSION: 2.115.0-alpha.2
4
- * BUILD_TIMESTAMP: 1751929030742
5
- * BUILD_DATE: Mon Jul 07 2025 22:57:10 GMT+0000 (Coordinated Universal Time)
3
+ * VERSION: 2.115.0-alpha.3
4
+ * BUILD_TIMESTAMP: 1751931324976
5
+ * BUILD_DATE: Mon Jul 07 2025 23:35:24 GMT+0000 (Coordinated Universal Time)
6
6
  * BUILD_COMMIT: 9b953bf464bb46df40df3f4b766e06f47b82b5aa
7
7
  */
8
8
  import { h as m, j as t, P as u, E as x, e as f, u as I, b as a, f as j, V as h, k as E, m as M } from "../sheerid.js";
@@ -4,12 +4,12 @@
4
4
  * This file is not intended for use in other contexts and there are no guarantees about its behavior outside of MySheerID.
5
5
  */
6
6
  /**
7
- * VERSION: 2.115.0-alpha.2
8
- * BUILD_TIMESTAMP: 1751929074457
9
- * BUILD_DATE: Mon Jul 07 2025 22:57:54 GMT+0000 (Coordinated Universal Time)
7
+ * VERSION: 2.115.0-alpha.3
8
+ * BUILD_TIMESTAMP: 1751931366907
9
+ * BUILD_DATE: Mon Jul 07 2025 23:36:06 GMT+0000 (Coordinated Universal Time)
10
10
  * BUILD_COMMIT: 9b953bf464bb46df40df3f4b766e06f47b82b5aa
11
11
  */
12
- import { i as P, j as a, t as k, v as V, P as f, w as z, Q as A, g as t, a3 as u, a4 as B, U as R, u as n, x as w, y as D, z as L, b as p, a0 as q, a5 as H, a6 as O, B as U, E as W, e as K, D as G, G as Q, M as J, H as X, f as Y, V as Z, m as _ } from "../_mysheerid-preview.js";
12
+ import { i as P, j as a, t as k, v as V, P as f, w as z, O as A, g as t, a3 as u, a4 as B, T as R, u as n, x as w, y as D, z as L, b as p, a0 as q, a5 as O, a6 as H, B as W, E as K, e as U, D as G, G as J, M as Q, H as X, f as Y, V as Z, m as _ } from "../_mysheerid-preview.js";
13
13
  const $ = ({
14
14
  intl: I,
15
15
  verificationService: e
@@ -123,10 +123,10 @@ const $ = ({
123
123
  }
124
124
  ),
125
125
  /* @__PURE__ */ a.jsx(
126
- H,
126
+ O,
127
127
  {
128
128
  isRequired: !0,
129
- options: O(e.programTheme, I),
129
+ options: H(e.programTheme, I),
130
130
  value: o.state || void 0,
131
131
  isErrored: !!d.state,
132
132
  onChange: async (s) => {
@@ -138,7 +138,7 @@ const $ = ({
138
138
  }
139
139
  ),
140
140
  /* @__PURE__ */ a.jsx(
141
- U,
141
+ W,
142
142
  {
143
143
  isErrored: !!d.postalCode,
144
144
  onChange: (s) => {
@@ -150,7 +150,7 @@ const $ = ({
150
150
  )
151
151
  ] }) : null,
152
152
  /* @__PURE__ */ a.jsx(
153
- W,
153
+ K,
154
154
  {
155
155
  value: o.email,
156
156
  isErrored: !!d.email,
@@ -164,7 +164,7 @@ const $ = ({
164
164
  onChange: (s) => {
165
165
  m("email", s), n("email", s, e);
166
166
  },
167
- onKeyDown: (s) => K(s),
167
+ onKeyDown: (s) => U(s),
168
168
  disabled: (j = t("email")) == null ? void 0 : j.disabled
169
169
  }
170
170
  ),
@@ -181,9 +181,9 @@ const $ = ({
181
181
  disabled: (N = t("phoneNumber")) == null ? void 0 : N.disabled
182
182
  }
183
183
  ) : null,
184
- T.customFormFields.map((s) => /* @__PURE__ */ a.jsx(Q, { config: s, verificationService: e })),
184
+ T.customFormFields.map((s) => /* @__PURE__ */ a.jsx(J, { config: s, verificationService: e })),
185
185
  /* @__PURE__ */ a.jsx(
186
- J,
186
+ Q,
187
187
  {
188
188
  verificationService: e,
189
189
  isErrored: !!d.marketConsentValue,
@@ -1 +1 @@
1
- {"version":3,"file":"index-C96ntS0u.js","sources":["../../src/components/StepEmploymentPersonalInfo/StepEmploymentPersonalInfoComponent.tsx"],"sourcesContent":["/**\n * TODO - preamble\n */\nimport React from \"react\";\nimport { FormattedHTMLMessage, injectIntl } from \"react-intl\";\nimport { produce } from \"immer\";\n\nimport { VerificationStepsEnum } from \"../../lib/types/runtimeTypes\";\nimport {\n VerificationService,\n Organization,\n EmploymentPersonalInfoViewModel,\n CustomFormFieldConfig,\n FormSelectChoice,\n State,\n} from \"../../lib/types/types\";\nimport {\n handleEmailOnKeyDown,\n updateFieldValidationErrorsByFieldId,\n updateViewModelOrganization,\n shouldCollectAddressFields,\n getAvailableStateChoices,\n getFieldConfigByFieldId,\n} from \"../../lib/utils/stepComponentHelpers/stepComponentHelpers\";\n\nimport { PhoneNumberComponent as PhoneNumber } from \"../FormFields/PhoneNumber/PhoneNumberComponent\";\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 { MarketConsentWrapperComponent as MarketConsentWrapper } from \"../FormFields/MarketConsentWrapper/MarketConsentWrapperComponent\";\nimport { AddressComponent } from \"../FormFields/Address/AddressComponent\";\nimport { CityComponent } from \"../FormFields/City/City\";\nimport { StateSelectComponent } from \"../FormFields/State/StateSelectComponent\";\nimport { CompanyComponent } from \"../FormFields/Company/CompanyComponent\";\nimport { PostalCodeComponent } from \"../FormFields/PostalCode/PostalCodeComponent\";\n\nimport { CountryComponentWrapper } from \"../FormFields/Country/CountryComponentWrapper\";\nimport { getOptions } from \"../../options/options\";\nimport { FormFieldCustom } from \"../FormFields/FormFieldCustom/FormFieldCustom\";\nimport { ExtraMessage } from \"../ExtraMessage\";\nimport { ChangeLocaleV2Component } from \"../FormFields/ChangeLocale/ChangeLocaleComponent\";\nimport { PersonalInfoWrapper } from \"../PersonalInfoStepWrapper/PersonalInfoStepWrapper\";\nimport { PersonalInfoStepSubmitButton } from \"../PersonalInfoStepSubmitButton/PersonalInfoStepSubmitButton\";\nimport { PersonalInfoHeader } from \"../FormHeader/StepHeaders/PersonalInfoHeaderComponent\";\n\ninterface StepEmploymentPersonalInfoComponentProps {\n intl: any;\n verificationService: VerificationService;\n}\n\nconst StepEmploymentPersonalInfo = ({\n intl,\n verificationService,\n}: StepEmploymentPersonalInfoComponentProps) => {\n const viewModel = verificationService.viewModel as EmploymentPersonalInfoViewModel;\n const { fieldValidationErrors } = verificationService;\n const options = getOptions();\n\n const updateEmploymentViewModel = (key: keyof EmploymentPersonalInfoViewModel, value: any) => {\n const nextState: EmploymentPersonalInfoViewModel = produce(\n viewModel,\n (draft: EmploymentPersonalInfoViewModel) => {\n (draft[key] as any) = value;\n },\n );\n verificationService.updateViewModel(nextState);\n };\n\n return (\n <PersonalInfoWrapper\n verificationService={verificationService}\n step={verificationService.verificationResponse.currentStep}\n >\n <PersonalInfoHeader\n verificationService={verificationService}\n classNameIdentifier=\"employment\"\n />\n\n <ChangeLocaleV2Component verificationService={verificationService} />\n <CountryComponentWrapper\n verificationService={verificationService}\n disabled={getFieldConfigByFieldId(\"country\")?.disabled}\n viewModelDraftDecorator={(draft, countryChoice) => {\n const viewModel = draft as EmploymentPersonalInfoViewModel;\n\n viewModel.shouldCollectAddress = shouldCollectAddressFields(\n countryChoice,\n verificationService.programTheme.config.countries,\n );\n if (!viewModel.shouldCollectAddress) {\n viewModel.address1 = \"\";\n viewModel.city = \"\";\n viewModel.state = \"\";\n viewModel.postalCode = \"\";\n viewModel.fieldsToSkipValidation = [\"address1\", \"city\", \"state\", \"postalCode\"];\n } else {\n viewModel.fieldsToSkipValidation = undefined;\n }\n }}\n />\n\n <CompanyComponent\n value={(verificationService.viewModel as EmploymentPersonalInfoViewModel).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 <div className=\"sid-names\">\n <FirstName\n value={viewModel.firstName}\n isErrored={!!fieldValidationErrors.firstName}\n disabled={getFieldConfigByFieldId(\"firstName\")?.disabled}\n onChange={(newValue) => {\n updateEmploymentViewModel(\"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 updateEmploymentViewModel(\"lastName\", newValue);\n updateFieldValidationErrorsByFieldId(\"lastName\", newValue, verificationService);\n }}\n />\n </div>\n\n {shouldCollectAddressFields(\n viewModel.countryChoice,\n verificationService.programTheme.config.countries,\n ) ? (\n <AddressComponent\n isErrored={!!fieldValidationErrors.address1}\n errorId={fieldValidationErrors.address1}\n onChange={(newValue) => {\n updateEmploymentViewModel(\"address1\", newValue);\n updateFieldValidationErrorsByFieldId(\"address1\", newValue, verificationService);\n }}\n isRequired\n value={viewModel.address1}\n disabled={getFieldConfigByFieldId(\"address1\")?.disabled}\n explanation={\n <FormattedHTMLMessage id=\"addressExplanation\" defaultMessage=\"Use your home address\" />\n }\n />\n ) : null}\n\n {shouldCollectAddressFields(\n viewModel.countryChoice,\n verificationService.programTheme.config.countries,\n ) ? (\n <div className=\"sid-thirds\">\n <CityComponent\n isErrored={!!fieldValidationErrors.city}\n errorId={fieldValidationErrors.city}\n onChange={(newValue) => {\n updateEmploymentViewModel(\"city\", newValue);\n updateFieldValidationErrorsByFieldId(\"city\", newValue, verificationService);\n }}\n value={viewModel.city}\n isRequired\n disabled={getFieldConfigByFieldId(\"city\")?.disabled}\n />\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 updateEmploymentViewModel(\"state\", stateValue);\n updateFieldValidationErrorsByFieldId(\"state\", stateValue, verificationService);\n }}\n label={<FormattedHTMLMessage id=\"state\" defaultMessage=\"State\" />}\n disabled={getFieldConfigByFieldId(\"state\")?.disabled}\n />\n <PostalCodeComponent\n isErrored={!!fieldValidationErrors.postalCode}\n onChange={(newValue) => {\n updateEmploymentViewModel(\"postalCode\", newValue);\n updateFieldValidationErrorsByFieldId(\"postalCode\", newValue, verificationService);\n }}\n value={viewModel.postalCode}\n disabled={getFieldConfigByFieldId(\"postalCode\")?.disabled}\n />\n </div>\n ) : null}\n\n <Email\n value={viewModel.email}\n isErrored={!!fieldValidationErrors.email}\n explanation={\n <FormattedHTMLMessage\n id=\"emailExplanation\"\n defaultMessage=\"Use your work email if you have one\"\n />\n }\n onChange={(newValue) => {\n updateEmploymentViewModel(\"email\", newValue);\n updateFieldValidationErrorsByFieldId(\"email\", newValue, verificationService);\n }}\n onKeyDown={(event) => handleEmailOnKeyDown(event)}\n disabled={getFieldConfigByFieldId(\"email\")?.disabled}\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 onChange={(newValue) => {\n updateEmploymentViewModel(\"phoneNumber\", newValue);\n updateFieldValidationErrorsByFieldId(\"phoneNumber\", newValue, verificationService);\n }}\n selectedCountryCode={viewModel.countryChoice && viewModel.countryChoice.value}\n disabled={getFieldConfigByFieldId(\"phoneNumber\")?.disabled}\n />\n ) : null}\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 updateEmploymentViewModel(\"metadata\", {\n ...verificationService.viewModel.metadata,\n marketConsentValue: newValue,\n });\n updateFieldValidationErrorsByFieldId(\"marketConsentValue\", newValue, verificationService);\n }}\n viewModel={viewModel}\n disabled={getFieldConfigByFieldId(\"marketConsentValue\")?.disabled}\n />\n\n <ExtraMessage verificationService={verificationService} suffix=\"CollectAboveSubmit\" />\n\n <PersonalInfoStepSubmitButton\n step={VerificationStepsEnum.collectEmployeePersonalInfo}\n verificationService={verificationService}\n viewModel={viewModel}\n buttonText={\n <FormattedHTMLMessage\n id=\"step.personalInfo.submitButtonText\"\n defaultMessage=\"Verify My Employment Status\"\n />\n }\n />\n </PersonalInfoWrapper>\n );\n};\n\n// TODO remove injectIntl, unused\nexport const StepEmploymentPersonalInfoComponent = injectIntl(StepEmploymentPersonalInfo);\n"],"names":["StepEmploymentPersonalInfo","intl","verificationService","viewModel","fieldValidationErrors","options","getOptions","updateEmploymentViewModel","key","value","nextState","produce","draft","jsxs","PersonalInfoWrapper","jsx","PersonalInfoHeader","ChangeLocaleV2Component","CountryComponentWrapper","_a","getFieldConfigByFieldId","countryChoice","shouldCollectAddressFields","CompanyComponent","_b","choice","updateViewModelOrganization","updateFieldValidationErrorsByFieldId","FirstName","_c","newValue","LastName","_d","AddressComponent","_e","FormattedHTMLMessage","CityComponent","_f","StateSelectComponent","getAvailableStateChoices","stateChoice","stateValue","_g","PostalCodeComponent","_h","Email","event","handleEmailOnKeyDown","_i","PhoneNumber","_j","config","FormFieldCustom","MarketConsentWrapper","_k","ExtraMessage","PersonalInfoStepSubmitButton","VerificationStepsEnum","StepEmploymentPersonalInfoComponent","injectIntl"],"mappings":";AAkDA,MAAMA,IAA6B,CAAC;AAAA,EAClC,MAAAC;AAAA,EACA,qBAAAC;AACF,MAAgD;;AAC9C,QAAMC,IAAYD,EAAoB,W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AAwC;AAAA,UAAA;AAAA,QAAA,IAElD;AAAA,QAEH7C,EAAQ,iBAAiB,IAAI,CAAC8C,MAC5BpC,gBAAAA,MAAAqC,GAAA,EAAgB,QAAAD,GAAgB,qBAAAjD,EAAA,CAA0C,CAC5E;AAAA,QAEDa,gBAAAA,EAAA;AAAA,UAACsC;AAAAA,UAAA;AAAA,YACC,qBAAAnD;AAAA,YACA,WAAW,CAAC,CAACE,EAAsB;AAAA,YACnC,UAAU,CAAC0B,MAAa;AACtB,cAAAvB,EAA0B,YAAY;AAAA,gBACpC,GAAGL,EAAoB,UAAU;AAAA,gBACjC,oBAAoB4B;AAAA,cAAA,CACrB,GACoCH,EAAA,sBAAsBG,GAAU5B,CAAmB;AAAA,YAC1F;AAAA,YACA,WAAAC;AAAA,YACA,WAAUmD,IAAAlC,EAAwB,oBAAoB,MAA5C,gBAAAkC,EAA+C;AAAA,UAAA;AAAA,QAC3D;AAAA,QAECvC,gBAAAA,EAAAA,IAAAwC,GAAA,EAAa,qBAAArD,GAA0C,QAAO,qBAAqB,CAAA;AAAA,QAEpFa,gBAAAA,EAAA;AAAA,UAACyC;AAAA,UAAA;AAAA,YACC,MAAMC,EAAsB;AAAA,YAC5B,qBAAAvD;AAAA,YACA,WAAAC;AAAA,YACA,YACEY,gBAAAA,EAAA;AAAA,cAACoB;AAAA,cAAA;AAAA,gBACC,IAAG;AAAA,gBACH,gBAAe;AAAA,cAAA;AAAA,YAAA;AAAA,UACjB;AAAA,QAAA;AAAA,MAEJ;AAAA,IAAA;AAAA,EACF;AAEJ,GAGauB,IAAsCC,EAAW3D,CAA0B;"}
1
+ {"version":3,"file":"index-DEKYtYJV.js","sources":["../../src/components/StepEmploymentPersonalInfo/StepEmploymentPersonalInfoComponent.tsx"],"sourcesContent":["/**\n * TODO - preamble\n */\nimport React from \"react\";\nimport { FormattedHTMLMessage, injectIntl } from \"react-intl\";\nimport { produce } from \"immer\";\n\nimport { VerificationStepsEnum } from \"../../lib/types/runtimeTypes\";\nimport {\n VerificationService,\n Organization,\n EmploymentPersonalInfoViewModel,\n CustomFormFieldConfig,\n FormSelectChoice,\n State,\n} from \"../../lib/types/types\";\nimport {\n handleEmailOnKeyDown,\n updateFieldValidationErrorsByFieldId,\n updateViewModelOrganization,\n shouldCollectAddressFields,\n getAvailableStateChoices,\n getFieldConfigByFieldId,\n} from \"../../lib/utils/stepComponentHelpers/stepComponentHelpers\";\n\nimport { PhoneNumberComponent as PhoneNumber } from \"../FormFields/PhoneNumber/PhoneNumberComponent\";\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 { MarketConsentWrapperComponent as MarketConsentWrapper } from \"../FormFields/MarketConsentWrapper/MarketConsentWrapperComponent\";\nimport { AddressComponent } from \"../FormFields/Address/AddressComponent\";\nimport { CityComponent } from \"../FormFields/City/City\";\nimport { StateSelectComponent } from \"../FormFields/State/StateSelectComponent\";\nimport { CompanyComponent } from \"../FormFields/Company/CompanyComponent\";\nimport { PostalCodeComponent } from \"../FormFields/PostalCode/PostalCodeComponent\";\n\nimport { CountryComponentWrapper } from \"../FormFields/Country/CountryComponentWrapper\";\nimport { getOptions } from \"../../options/options\";\nimport { FormFieldCustom } from \"../FormFields/FormFieldCustom/FormFieldCustom\";\nimport { ExtraMessage } from \"../ExtraMessage\";\nimport { ChangeLocaleV2Component } from \"../FormFields/ChangeLocale/ChangeLocaleComponent\";\nimport { PersonalInfoWrapper } from \"../PersonalInfoStepWrapper/PersonalInfoStepWrapper\";\nimport { PersonalInfoStepSubmitButton } from \"../PersonalInfoStepSubmitButton/PersonalInfoStepSubmitButton\";\nimport { PersonalInfoHeader } from \"../FormHeader/StepHeaders/PersonalInfoHeaderComponent\";\n\ninterface StepEmploymentPersonalInfoComponentProps {\n intl: any;\n verificationService: VerificationService;\n}\n\nconst StepEmploymentPersonalInfo = ({\n intl,\n verificationService,\n}: StepEmploymentPersonalInfoComponentProps) => {\n const viewModel = verificationService.viewModel as EmploymentPersonalInfoViewModel;\n const { fieldValidationErrors } = verificationService;\n const options = getOptions();\n\n const updateEmploymentViewModel = (key: keyof EmploymentPersonalInfoViewModel, value: any) => {\n const nextState: EmploymentPersonalInfoViewModel = produce(\n viewModel,\n (draft: EmploymentPersonalInfoViewModel) => {\n (draft[key] as any) = value;\n },\n );\n verificationService.updateViewModel(nextState);\n };\n\n return (\n <PersonalInfoWrapper\n verificationService={verificationService}\n step={verificationService.verificationResponse.currentStep}\n >\n <PersonalInfoHeader\n verificationService={verificationService}\n classNameIdentifier=\"employment\"\n />\n\n <ChangeLocaleV2Component verificationService={verificationService} />\n <CountryComponentWrapper\n verificationService={verificationService}\n disabled={getFieldConfigByFieldId(\"country\")?.disabled}\n viewModelDraftDecorator={(draft, countryChoice) => {\n const viewModel = draft as EmploymentPersonalInfoViewModel;\n\n viewModel.shouldCollectAddress = shouldCollectAddressFields(\n countryChoice,\n verificationService.programTheme.config.countries,\n );\n if (!viewModel.shouldCollectAddress) {\n viewModel.address1 = \"\";\n viewModel.city = \"\";\n viewModel.state = \"\";\n viewModel.postalCode = \"\";\n viewModel.fieldsToSkipValidation = [\"address1\", \"city\", \"state\", \"postalCode\"];\n } else {\n viewModel.fieldsToSkipValidation = undefined;\n }\n }}\n />\n\n <CompanyComponent\n value={(verificationService.viewModel as EmploymentPersonalInfoViewModel).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 <div className=\"sid-names\">\n <FirstName\n value={viewModel.firstName}\n isErrored={!!fieldValidationErrors.firstName}\n disabled={getFieldConfigByFieldId(\"firstName\")?.disabled}\n onChange={(newValue) => {\n updateEmploymentViewModel(\"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 updateEmploymentViewModel(\"lastName\", newValue);\n updateFieldValidationErrorsByFieldId(\"lastName\", newValue, verificationService);\n }}\n />\n </div>\n\n {shouldCollectAddressFields(\n viewModel.countryChoice,\n verificationService.programTheme.config.countries,\n ) ? (\n <AddressComponent\n isErrored={!!fieldValidationErrors.address1}\n errorId={fieldValidationErrors.address1}\n onChange={(newValue) => {\n updateEmploymentViewModel(\"address1\", newValue);\n updateFieldValidationErrorsByFieldId(\"address1\", newValue, verificationService);\n }}\n isRequired\n value={viewModel.address1}\n disabled={getFieldConfigByFieldId(\"address1\")?.disabled}\n explanation={\n <FormattedHTMLMessage id=\"addressExplanation\" defaultMessage=\"Use your home address\" />\n }\n />\n ) : null}\n\n {shouldCollectAddressFields(\n viewModel.countryChoice,\n verificationService.programTheme.config.countries,\n ) ? (\n <div className=\"sid-thirds\">\n <CityComponent\n isErrored={!!fieldValidationErrors.city}\n errorId={fieldValidationErrors.city}\n onChange={(newValue) => {\n updateEmploymentViewModel(\"city\", newValue);\n updateFieldValidationErrorsByFieldId(\"city\", newValue, verificationService);\n }}\n value={viewModel.city}\n isRequired\n disabled={getFieldConfigByFieldId(\"city\")?.disabled}\n />\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 updateEmploymentViewModel(\"state\", stateValue);\n updateFieldValidationErrorsByFieldId(\"state\", stateValue, verificationService);\n }}\n label={<FormattedHTMLMessage id=\"state\" defaultMessage=\"State\" />}\n disabled={getFieldConfigByFieldId(\"state\")?.disabled}\n />\n <PostalCodeComponent\n isErrored={!!fieldValidationErrors.postalCode}\n onChange={(newValue) => {\n updateEmploymentViewModel(\"postalCode\", newValue);\n updateFieldValidationErrorsByFieldId(\"postalCode\", newValue, verificationService);\n }}\n value={viewModel.postalCode}\n disabled={getFieldConfigByFieldId(\"postalCode\")?.disabled}\n />\n </div>\n ) : null}\n\n <Email\n value={viewModel.email}\n isErrored={!!fieldValidationErrors.email}\n explanation={\n <FormattedHTMLMessage\n id=\"emailExplanation\"\n defaultMessage=\"Use your work email if you have one\"\n />\n }\n onChange={(newValue) => {\n updateEmploymentViewModel(\"email\", newValue);\n updateFieldValidationErrorsByFieldId(\"email\", newValue, verificationService);\n }}\n onKeyDown={(event) => handleEmailOnKeyDown(event)}\n disabled={getFieldConfigByFieldId(\"email\")?.disabled}\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 onChange={(newValue) => {\n updateEmploymentViewModel(\"phoneNumber\", newValue);\n updateFieldValidationErrorsByFieldId(\"phoneNumber\", newValue, verificationService);\n }}\n selectedCountryCode={viewModel.countryChoice && viewModel.countryChoice.value}\n disabled={getFieldConfigByFieldId(\"phoneNumber\")?.disabled}\n />\n ) : null}\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 updateEmploymentViewModel(\"metadata\", {\n ...verificationService.viewModel.metadata,\n marketConsentValue: newValue,\n });\n updateFieldValidationErrorsByFieldId(\"marketConsentValue\", newValue, verificationService);\n }}\n viewModel={viewModel}\n disabled={getFieldConfigByFieldId(\"marketConsentValue\")?.disabled}\n />\n\n <ExtraMessage verificationService={verificationService} suffix=\"CollectAboveSubmit\" />\n\n <PersonalInfoStepSubmitButton\n step={VerificationStepsEnum.collectEmployeePersonalInfo}\n verificationService={verificationService}\n viewModel={viewModel}\n buttonText={\n <FormattedHTMLMessage\n id=\"step.personalInfo.submitButtonText\"\n defaultMessage=\"Verify My Employment Status\"\n />\n }\n />\n </PersonalInfoWrapper>\n );\n};\n\n// TODO remove injectIntl, unused\nexport const StepEmploymentPersonalInfoComponent = injectIntl(StepEmploymentPersonalInfo);\n"],"names":["StepEmploymentPersonalInfo","intl","verificationService","viewModel","fieldValidationErrors","options","getOptions","updateEmploymentViewModel","key","value","nextState","produce","draft","jsxs","PersonalInfoWrapper","jsx","PersonalInfoHeader","ChangeLocaleV2Component","CountryComponentWrapper","_a","getFieldConfigByFieldId","countryChoice","shouldCollectAddressFields","CompanyComponent","_b","choice","updateViewModelOrganization","updateFieldValidationErrorsByFieldId","FirstName","_c","newValue","LastName","_d","AddressComponent","_e","FormattedHTMLMessage","CityComponent","_f","StateSelectComponent","getAvailableStateChoices","stateChoice","stateValue","_g","PostalCodeComponent","_h","Email","event","handleEmailOnKeyDown","_i","PhoneNumber","_j","config","FormFieldCustom","MarketConsentWrapper","_k","ExtraMessage","PersonalInfoStepSubmitButton","VerificationStepsEnum","StepEmploymentPersonalInfoComponent","injectIntl"],"mappings":";AAkDA,MAAMA,IAA6B,CAAC;AAAA,EAClC,MAAAC;AAAA,EACA,qBAAAC;AACF,MAAgD;;AAC9C,QAAMC,IAAYD,EAAoB,WAChC,EAAE,uBAAAE,MAA0BF,GAC5BG,IAAUC,EAAW,GAErBC,IAA4B,CAACC,GAA4CC,MAAe;AAC5F,UAAMC,IAA6CC;AAAAA,MACjDR;AAAA,MACA,CAACS,MAA2C;AACzC,QAAAA,EAAMJ,CAAG,IAAYC;AAAA,MAAA;AAAA,IAE1B;AACA,IAAAP,EAAoB,gBAAgBQ,CAAS;AAAA,EAC/C;AAGE,SAAAG,gBAAAA,EAAA;AAAA,IAACC;AAAA,IAAA;AAAA,MACC,qBAAA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AA0B,YAAY;AAAA,gBACpC,GAAGL,EAAoB,UAAU;AAAA,gBACjC,oBAAoB4B;AAAA,cAAA,CACrB,GACoCH,EAAA,sBAAsBG,GAAU5B,CAAmB;AAAA,YAC1F;AAAA,YACA,WAAAC;AAAA,YACA,WAAUmD,IAAAlC,EAAwB,oBAAoB,MAA5C,gBAAAkC,EAA+C;AAAA,UAAA;AAAA,QAC3D;AAAA,QAECvC,gBAAAA,EAAAA,IAAAwC,GAAA,EAAa,qBAAArD,GAA0C,QAAO,qBAAqB,CAAA;AAAA,QAEpFa,gBAAAA,EAAA;AAAA,UAACyC;AAAA,UAAA;AAAA,YACC,MAAMC,EAAsB;AAAA,YAC5B,qBAAAvD;AAAA,YACA,WAAAC;AAAA,YACA,YACEY,gBAAAA,EAAA;AAAA,cAACoB;AAAA,cAAA;AAAA,gBACC,IAAG;AAAA,gBACH,gBAAe;AAAA,cAAA;AAAA,YAAA;AAAA,UACjB;AAAA,QAAA;AAAA,MAEJ;AAAA,IAAA;AAAA,EACF;AAEJ,GAGauB,IAAsCC,EAAW3D,CAA0B;"}
@@ -4,12 +4,12 @@
4
4
  * This file is not intended for use in other contexts and there are no guarantees about its behavior outside of MySheerID.
5
5
  */
6
6
  /**
7
- * VERSION: 2.115.0-alpha.2
8
- * BUILD_TIMESTAMP: 1751929074457
9
- * BUILD_DATE: Mon Jul 07 2025 22:57:54 GMT+0000 (Coordinated Universal Time)
7
+ * VERSION: 2.115.0-alpha.3
8
+ * BUILD_TIMESTAMP: 1751931366907
9
+ * BUILD_DATE: Mon Jul 07 2025 23:36:06 GMT+0000 (Coordinated Universal Time)
10
10
  * BUILD_COMMIT: 9b953bf464bb46df40df3f4b766e06f47b82b5aa
11
11
  */
12
- import { i as $, ai as B, g as l, j as a, O as S, b as i, R as g, h as v, m as ee, t as ae, P as se, a8 as ne, E as k, u as r, v as te, w as le, Q as oe, aj as de, U as w, x as re, y as ie, W as me, e as ue, D as pe, G as be, M as ce, H as Ce, f as ge, V as he } from "../_mysheerid-preview.js";
12
+ import { i as $, ai as B, g as l, j as a, X as S, b as i, R as g, h as v, m as ee, t as ae, P as se, a8 as ne, E as k, u as r, v as te, w as le, O as oe, aj as de, T as w, x as re, y as ie, U as me, e as ue, D as pe, G as be, M as ce, H as Ce, f as ge, V as he } from "../_mysheerid-preview.js";
13
13
  import { u as xe, E as Ne, a as L } from "./useEmailFirstExperiment-BbDrKQEs.js";
14
14
  const Ee = ({
15
15
  value: e,
@@ -60,7 +60,7 @@ const Ee = ({
60
60
  }, fe = $(Ee), je = ({
61
61
  verificationService: e
62
62
  }) => {
63
- var f, j, M, F, y, I, O, V, D, P, T, R;
63
+ var f, j, M, F, y, I, O, V, D, T, P, R;
64
64
  const n = e.viewModel, { fieldValidationErrors: o } = e, c = e.verificationResponse, h = te(), p = B("include-cvec-field-france-student"), b = p !== "control" && p !== "default" && ((f = n == null ? void 0 : n.countryChoice) == null ? void 0 : f.value) === "FR";
65
65
  g.useEffect(() => {
66
66
  b ? d("fieldsToSkipValidation", []) : d("fieldsToSkipValidation", ["cvecNumber"]);
@@ -82,7 +82,7 @@ const Ee = ({
82
82
  e.programId,
83
83
  n.email,
84
84
  e.verificationResponse.segment
85
- ), [_, E] = g.useState(null), [G, Q] = g.useState(null);
85
+ ), [_, E] = g.useState(null), [X, G] = g.useState(null);
86
86
  g.useEffect(() => {
87
87
  C && t && (async () => {
88
88
  if (n.email && C && t && t.status === L.NOT_FOUND) {
@@ -92,7 +92,7 @@ const Ee = ({
92
92
  E(null);
93
93
  })();
94
94
  }, [n.email, C, t == null ? void 0 : t.status]);
95
- const X = v(c), d = (s, u) => {
95
+ const J = v(c), d = (s, u) => {
96
96
  const Y = ee(
97
97
  n,
98
98
  (Z) => {
@@ -100,7 +100,7 @@ const Ee = ({
100
100
  }
101
101
  );
102
102
  e.updateViewModel(Y);
103
- }, J = n.localeChoice.value;
103
+ }, Q = n.localeChoice.value;
104
104
  return /* @__PURE__ */ a.jsxs(
105
105
  ae,
106
106
  {
@@ -159,13 +159,13 @@ const Ee = ({
159
159
  /* @__PURE__ */ a.jsx(
160
160
  de,
161
161
  {
162
- value: G || m && (t == null ? void 0 : t.status) === L.NOT_FOUND && _ || e.viewModel.organization,
162
+ value: X || m && (t == null ? void 0 : t.status) === L.NOT_FOUND && _ || e.viewModel.organization,
163
163
  verificationService: e,
164
164
  isErrored: !!o.organization,
165
165
  isRequired: !0,
166
166
  disabled: (F = l("organization")) == null ? void 0 : F.disabled,
167
167
  onChange: (s) => {
168
- Q(s), w(s, e), r("organization", s, e);
168
+ G(s), w(s, e), r("organization", s, e);
169
169
  }
170
170
  }
171
171
  ),
@@ -210,7 +210,7 @@ const Ee = ({
210
210
  {
211
211
  value: n.birthDate,
212
212
  errorId: o.birthDate,
213
- locale: J,
213
+ locale: Q,
214
214
  isRequired: !0,
215
215
  disabled: (D = l("birthDate")) == null ? void 0 : D.disabled,
216
216
  onChange: (s) => {
@@ -234,7 +234,7 @@ const Ee = ({
234
234
  d("email", s), r("email", s, e);
235
235
  },
236
236
  onKeyDown: (s) => ue(s),
237
- disabled: (P = l("email")) == null ? void 0 : P.disabled
237
+ disabled: (T = l("email")) == null ? void 0 : T.disabled
238
238
  }
239
239
  ),
240
240
  e.programTheme.isSmsNotifierConfigured || e.programTheme.smsLoopEnabled ? /* @__PURE__ */ a.jsx(
@@ -243,7 +243,7 @@ const Ee = ({
243
243
  isRequired: !!e.programTheme.smsLoopEnabled,
244
244
  value: n.phoneNumber,
245
245
  isErrored: !!o.phoneNumber,
246
- disabled: (T = l("phoneNumber")) == null ? void 0 : T.disabled,
246
+ disabled: (P = l("phoneNumber")) == null ? void 0 : P.disabled,
247
247
  onChange: (s) => {
248
248
  d("phoneNumber", s), r(
249
249
  "phoneNumber",
@@ -282,7 +282,7 @@ const Ee = ({
282
282
  step: he.collectStudentPersonalInfo,
283
283
  verificationService: e,
284
284
  viewModel: n,
285
- failedInstantMatch: X,
285
+ failedInstantMatch: J,
286
286
  buttonText: /* @__PURE__ */ a.jsx(
287
287
  i,
288
288
  {
@@ -1 +1 @@
1
- {"version":3,"file":"index-B8F8N-JM.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 { getFieldConfigByFieldId } from \"@/lib/utils/stepComponentHelpers/stepComponentHelpers\";\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 const isFieldHidden = getFieldConfigByFieldId(\"cvecNumber\")?.hidden;\n\n if (isFieldHidden) {\n return null;\n }\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","_a","getFieldConfigByFieldId","FormFieldText","CVECNumberComponent","injectIntl","StepStudentPersonalInfo","verificationService","viewModel","fieldValidationErrors","verificationResponse","options","getOptions","showCvecInput","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","EmailLookupResponseMessages","ChangeLocaleV2Component","CountryComponentWrapper","_c","CollegeName","_d","choice","_e","_f","FirstName","_g","LastName","_h","BirthDate","_i","event","handleEmailOnKeyDown","_j","PhoneNumber","_k","config","FormFieldCustom","MarketConsentWrapper","_l","ExtraMess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E;AAAAA,YAAA;AAAA,cACC,qBAAAnE;AAAA,cACA,WAAW,CAAC,CAACE,EAAsB;AAAA,cACnC,WAAUkE,IAAAzE,EAAwB,oBAAoB,MAA5C,gBAAAyE,EAA+C;AAAA,cACzD,UAAU,CAACzB,MAAa;AACtB,gBAAAnC,EAAuB,YAAY;AAAA,kBACjC,GAAGR,EAAoB,UAAU;AAAA,kBACjC,oBAAoB2C;AAAA,gBAAA,CACrB,GACDd;AAAA,kBACE;AAAA,kBACAc;AAAA,kBACA3C;AAAA,gBACF;AAAA,cACF;AAAA,cACA,WAAAC;AAAA,YAAA;AAAA,UACF;AAAA,UACCT,gBAAAA,EAAAA,IAAA6E,IAAA,EAAa,qBAAArE,GAA0C,QAAO,qBAAqB,CAAA;AAAA,UACpFR,gBAAAA,EAAA;AAAA,YAAC8E;AAAA,YAAA;AAAA,cACC,MAAMC,GAAsB;AAAA,cAC5B,qBAAAvE;AAAA,cACA,WAAAC;AAAA,cACA,oBAAA6B;AAAA,cACA,YACEtC,gBAAAA,EAAA;AAAA,gBAACC;AAAA,gBAAA;AAAA,kBACC,IAAG;AAAA,kBACH,gBAAe;AAAA,gBAAA;AAAA,cAAA;AAAA,YACjB;AAAA,UAAA;AAAA,QAEJ,EAAA,CACF,EACF,CAAA;AAAA,MAAA;AAAA,IAAA;AAAA,EAEJ;AAEJ,GAEa+E,KAAmCzE;"}
1
+ {"version":3,"file":"index-DHrneLz9.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 { getFieldConfigByFieldId } from \"@/lib/utils/stepComponentHelpers/stepComponentHelpers\";\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 const isFieldHidden = getFieldConfigByFieldId(\"cvecNumber\")?.hidden;\n\n if (isFieldHidden) {\n return null;\n }\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","_a","getFieldConfigByFieldId","FormFieldText","CVECNumberComponent","injectIntl","StepStudentPersonalInfo","verificationService","viewModel","fieldValidationErrors","verificationResponse","options","getOptions","showCvecInput","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","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":";;AAWO,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,I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AA6E,IAAA,EAAa,qBAAArE,GAA0C,QAAO,qBAAqB,CAAA;AAAA,UACpFR,gBAAAA,EAAA;AAAA,YAAC8E;AAAA,YAAA;AAAA,cACC,MAAMC,GAAsB;AAAA,cAC5B,qBAAAvE;AAAA,cACA,WAAAC;AAAA,cACA,oBAAA6B;AAAA,cACA,YACEtC,gBAAAA,EAAA;AAAA,gBAACC;AAAA,gBAAA;AAAA,kBACC,IAAG;AAAA,kBACH,gBAAe;AAAA,gBAAA;AAAA,cAAA;AAAA,YACjB;AAAA,UAAA;AAAA,QAEJ,EAAA,CACF,EACF,CAAA;AAAA,MAAA;AAAA,IAAA;AAAA,EAEJ;AAEJ,GAEa+E,KAAmCzE;"}
@@ -4,9 +4,9 @@
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.115.0-alpha.2
8
- * BUILD_TIMESTAMP: 1751929074457
9
- * BUILD_DATE: Mon Jul 07 2025 22:57:54 GMT+0000 (Coordinated Universal Time)
7
+ * VERSION: 2.115.0-alpha.3
8
+ * BUILD_TIMESTAMP: 1751931366907
9
+ * BUILD_DATE: Mon Jul 07 2025 23:36:06 GMT+0000 (Coordinated Universal Time)
10
10
  * BUILD_COMMIT: 9b953bf464bb46df40df3f4b766e06f47b82b5aa
11
11
  */
12
12
  const v = () => {
@@ -4,9 +4,9 @@
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.115.0-alpha.2
8
- * BUILD_TIMESTAMP: 1751929074457
9
- * BUILD_DATE: Mon Jul 07 2025 22:57:54 GMT+0000 (Coordinated Universal Time)
7
+ * VERSION: 2.115.0-alpha.3
8
+ * BUILD_TIMESTAMP: 1751931366907
9
+ * BUILD_DATE: Mon Jul 07 2025 23:36:06 GMT+0000 (Coordinated Universal Time)
10
10
  * BUILD_COMMIT: 9b953bf464bb46df40df3f4b766e06f47b82b5aa
11
11
  */
12
12
  import { i as N, R as l, d as c, j as e, A as R, b as t, S as E, m as V, l as w, V as y, r as k } from "../_mysheerid-preview.js";