@sheerid/jslib-nightly 2.115.0-alpha.1 → 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 (283) hide show
  1. package/_mysheerid-preview.css +4 -4
  2. package/_mysheerid-preview.js +35 -35
  3. package/_mysheerid-preview.js.map +1 -1
  4. package/chunk/EmailLoopPending-Dtf0p85F.js +4 -4
  5. package/chunk/EmailLoopPending-Dy8mLFvV.js +4 -4
  6. package/chunk/LicensedProfessionalOrganizationComponent-BYijEfDT.js +4 -4
  7. package/chunk/LicensedProfessionalOrganizationComponent-CiYU-2dW.js +4 -4
  8. package/chunk/Onfido-AyvUk6wg.js +4 -4
  9. package/chunk/{StepIDCheckLoopOnfido-CmNwFqjD.js → StepIDCheckLoopOnfido--3Fw5dMg.js} +5 -5
  10. package/chunk/{StepIDCheckLoopOnfido-CmNwFqjD.js.map → StepIDCheckLoopOnfido--3Fw5dMg.js.map} +1 -1
  11. package/chunk/{StepIDCheckLoopOnfido-DtbplNxs.js → StepIDCheckLoopOnfido-CeiLgm_c.js} +5 -5
  12. package/chunk/{StepIDCheckLoopOnfido-DtbplNxs.js.map → StepIDCheckLoopOnfido-CeiLgm_c.js.map} +1 -1
  13. package/chunk/{StepIDCheckLoopRegula-RoX971sR.js → StepIDCheckLoopRegula-BFSb544w.js} +6 -6
  14. package/chunk/{StepIDCheckLoopRegula-RoX971sR.js.map → StepIDCheckLoopRegula-BFSb544w.js.map} +1 -1
  15. package/chunk/{StepIDCheckLoopRegula-oqf-QxHT.js → StepIDCheckLoopRegula-DDR_mxSn.js} +6 -6
  16. package/chunk/{StepIDCheckLoopRegula-oqf-QxHT.js.map → StepIDCheckLoopRegula-DDR_mxSn.js.map} +1 -1
  17. package/chunk/{StepInactiveMilitaryPersonalInfoComponent-CTCfr5Y8.js → StepInactiveMilitaryPersonalInfoComponent-Dhm9dCs2.js} +16 -16
  18. package/chunk/{StepInactiveMilitaryPersonalInfoComponent-D4veFRlW.js.map → StepInactiveMilitaryPersonalInfoComponent-Dhm9dCs2.js.map} +1 -1
  19. package/chunk/{StepInactiveMilitaryPersonalInfoComponent-D4veFRlW.js → StepInactiveMilitaryPersonalInfoComponent-_NISUzZF.js} +16 -16
  20. package/chunk/{StepInactiveMilitaryPersonalInfoComponent-CTCfr5Y8.js.map → StepInactiveMilitaryPersonalInfoComponent-_NISUzZF.js.map} +1 -1
  21. package/chunk/ar-BZsYQiJv.js +4 -4
  22. package/chunk/bg-DB_ZEB5O.js +4 -4
  23. package/chunk/bn-IN-D69rNeuh.js +4 -4
  24. package/chunk/cs-Dk4czWE5.js +4 -4
  25. package/chunk/da-NesYkkEW.js +4 -4
  26. package/chunk/de-4yAGb-JC.js +4 -4
  27. package/chunk/el-D1h3O3E7.js +4 -4
  28. package/chunk/en-GB-QY9gqmlz.js +4 -4
  29. package/chunk/es-BYhP2rUk.js +4 -4
  30. package/chunk/es-ES-BJLdehwH.js +4 -4
  31. package/chunk/fi-D-Ycqh7I.js +4 -4
  32. package/chunk/fr-CA-a8W9ZT_A.js +4 -4
  33. package/chunk/fr-DR25pnXw.js +4 -4
  34. package/chunk/ga-Bj6efXd2.js +4 -4
  35. package/chunk/hi-IN-C-u9_T8L.js +4 -4
  36. package/chunk/hr-B8E9jyUX.js +4 -4
  37. package/chunk/hu-C7z4yBSK.js +4 -4
  38. package/chunk/id-AsEkOlRu.js +4 -4
  39. package/chunk/{index-YSVzGeq_.js → index-3wRIidxQ.js} +18 -18
  40. package/chunk/{index-DvQoVn8P.js.map → index-3wRIidxQ.js.map} +1 -1
  41. package/chunk/{index-9OD0Bw98.js → index-4zf9jvK6.js} +10 -10
  42. package/chunk/{index-9OD0Bw98.js.map → index-4zf9jvK6.js.map} +1 -1
  43. package/chunk/{index-CHK5i4jj.js → index-8gjxKx0J.js} +6 -6
  44. package/chunk/{index-B-PpnUEO.js.map → index-8gjxKx0J.js.map} +1 -1
  45. package/chunk/index-B8KPM--K.js +4 -4
  46. package/chunk/index-BD2bjH-C.js +4 -4
  47. package/chunk/index-BD_a0MZT.js +4 -4
  48. package/chunk/index-BFMzh8b3.js +165 -0
  49. package/chunk/index-BFMzh8b3.js.map +1 -0
  50. package/chunk/{index-_t8SsXjy.js → index-BSmAslR-.js} +12 -12
  51. package/chunk/{index-_t8SsXjy.js.map → index-BSmAslR-.js.map} +1 -1
  52. package/chunk/{index-DvQoVn8P.js → index-BYGkr72X.js} +18 -18
  53. package/chunk/{index-YSVzGeq_.js.map → index-BYGkr72X.js.map} +1 -1
  54. package/chunk/{index-C8MQD8EK.js → index-Bemwq78a.js} +9 -9
  55. package/chunk/{index-4APUDd8S.js.map → index-Bemwq78a.js.map} +1 -1
  56. package/chunk/{index-DLz31Fzh.js → index-BgAd7a0x.js} +13 -13
  57. package/chunk/{index-DLz31Fzh.js.map → index-BgAd7a0x.js.map} +1 -1
  58. package/chunk/index-BpZoH-Wz.js +4 -4
  59. package/chunk/{index-Bi9QXN5x.js → index-ByBO6KNx.js} +67 -58
  60. package/chunk/index-ByBO6KNx.js.map +1 -0
  61. package/chunk/{index-4APUDd8S.js → index-C-YPXV3H.js} +9 -9
  62. package/chunk/{index-C8MQD8EK.js.map → index-C-YPXV3H.js.map} +1 -1
  63. package/chunk/index-C29suvHQ.js +169 -0
  64. package/chunk/index-C29suvHQ.js.map +1 -0
  65. package/chunk/index-C2h0Wj84.js +4 -4
  66. package/chunk/{index-C96ntS0u.js → index-C9UAjull.js} +12 -12
  67. package/chunk/{index-Bmq6cJ3F.js.map → index-C9UAjull.js.map} +1 -1
  68. package/chunk/index-CcRowarb.js +4 -4
  69. package/chunk/index-CeHu2Npu.js +4 -4
  70. package/chunk/{index-Bmq6cJ3F.js → index-DEKYtYJV.js} +12 -12
  71. package/chunk/{index-C96ntS0u.js.map → index-DEKYtYJV.js.map} +1 -1
  72. package/chunk/{index-Dg8t7-dm.js → index-DHrneLz9.js} +15 -15
  73. package/chunk/{index-B8F8N-JM.js.map → index-DHrneLz9.js.map} +1 -1
  74. package/chunk/index-DIkWpujR.js +4 -4
  75. package/chunk/{index-C8u9IJUa.js → index-DRmBhdAn.js} +8 -8
  76. package/chunk/{index-DRlGAW07.js.map → index-DRmBhdAn.js.map} +1 -1
  77. package/chunk/{index-DzqRsB7_.js → index-DUXQFubY.js} +13 -13
  78. package/chunk/{index-DzqRsB7_.js.map → index-DUXQFubY.js.map} +1 -1
  79. package/chunk/index-DVynViqA.js +4 -4
  80. package/chunk/{index-DhGg9lvf.js → index-Dg6e8PFO.js} +13 -13
  81. package/chunk/{index-BDrKYann.js.map → index-Dg6e8PFO.js.map} +1 -1
  82. package/chunk/{index-DKWjcFJK.js → index-DgXh3iXb.js} +10 -10
  83. package/chunk/{index-DKWjcFJK.js.map → index-DgXh3iXb.js.map} +1 -1
  84. package/chunk/{index-BuX76GyE.js → index-Dw4HZdl4.js} +9 -9
  85. package/chunk/{index-BuX76GyE.js.map → index-Dw4HZdl4.js.map} +1 -1
  86. package/chunk/{index-BDrKYann.js → index-DypbXiPM.js} +13 -13
  87. package/chunk/{index-DhGg9lvf.js.map → index-DypbXiPM.js.map} +1 -1
  88. package/chunk/{index-DsgCNIS5.js → index-FfsFdWXt.js} +10 -10
  89. package/chunk/{index-D_9J6arc.js.map → index-FfsFdWXt.js.map} +1 -1
  90. package/chunk/{index-CU0rkVHP.js → index-TysYb0wj.js} +5 -5
  91. package/chunk/{index-BORxVuto.js.map → index-TysYb0wj.js.map} +1 -1
  92. package/chunk/{index-FjzhfDlx.js → index-VrTXSLSj.js} +67 -58
  93. package/chunk/index-VrTXSLSj.js.map +1 -0
  94. package/chunk/{index-DRlGAW07.js → index-VxNSWlHu.js} +8 -8
  95. package/chunk/{index-C8u9IJUa.js.map → index-VxNSWlHu.js.map} +1 -1
  96. package/chunk/{index-B8F8N-JM.js → index-Z410glzc.js} +15 -15
  97. package/chunk/{index-Dg8t7-dm.js.map → index-Z410glzc.js.map} +1 -1
  98. package/chunk/{index-B-PpnUEO.js → index-aRiqFbd1.js} +6 -6
  99. package/chunk/{index-CHK5i4jj.js.map → index-aRiqFbd1.js.map} +1 -1
  100. package/chunk/{index-BORxVuto.js → index-eDr5_bvN.js} +5 -5
  101. package/chunk/{index-CU0rkVHP.js.map → index-eDr5_bvN.js.map} +1 -1
  102. package/chunk/{index-D_9J6arc.js → index-f8an5bUm.js} +10 -10
  103. package/chunk/{index-DsgCNIS5.js.map → index-f8an5bUm.js.map} +1 -1
  104. package/chunk/{index-DO5Z3e-E.js → index-m9Gpah9q.js} +9 -9
  105. package/chunk/{index-DO5Z3e-E.js.map → index-m9Gpah9q.js.map} +1 -1
  106. package/chunk/{index-BTMETMEE.js → index-qj9OiaWM.js} +12 -12
  107. package/chunk/{index-BTMETMEE.js.map → index-qj9OiaWM.js.map} +1 -1
  108. package/chunk/is-PzizLXcv.js +4 -4
  109. package/chunk/it-CiJeQN1_.js +4 -4
  110. package/chunk/iw-QHmqNHZP.js +4 -4
  111. package/chunk/ja-DPgVvasb.js +4 -4
  112. package/chunk/ko-DykOu1Yp.js +4 -4
  113. package/chunk/lo-C4bFrJOj.js +4 -4
  114. package/chunk/lt-KjZ7oOV5.js +4 -4
  115. package/chunk/ms-CNvzXjsH.js +4 -4
  116. package/chunk/nl-BE-BXbsNtu2.js +4 -4
  117. package/chunk/nl-ucuj2G5l.js +4 -4
  118. package/chunk/no-D8IuXJ7O.js +4 -4
  119. package/chunk/pl-DvnUkXGb.js +4 -4
  120. package/chunk/pt-BR-Be00Hx-L.js +4 -4
  121. package/chunk/pt-DS7isrlt.js +4 -4
  122. package/chunk/ro-BHCICvJV.js +4 -4
  123. package/chunk/ru-DUDtL41i.js +4 -4
  124. package/chunk/sk-O9yqW58Q.js +4 -4
  125. package/chunk/sl-CxcvfiDu.js +4 -4
  126. package/chunk/sr-DgvzAvVS.js +4 -4
  127. package/chunk/sv-BtktR0mm.js +4 -4
  128. package/chunk/sw-D06YJhji.js +4 -4
  129. package/chunk/th-C1KZhtMd.js +4 -4
  130. package/chunk/tr-CqpbTukW.js +4 -4
  131. package/chunk/uk-BWHH_jN1.js +4 -4
  132. package/chunk/ur-BHWni4Fn.js +4 -4
  133. package/chunk/useCollectFieldsEndpoint-C5fsaYJe.js +4 -4
  134. package/chunk/useCollectFieldsEndpoint-kmLFyUA-.js +4 -4
  135. package/chunk/useEmailFirstExperiment-BbDrKQEs.js +4 -4
  136. package/chunk/useEmailFirstExperiment-CgU-itQI.js +4 -4
  137. package/chunk/vi-DVhQHKtP.js +4 -4
  138. package/chunk/zh-HK-C-wTSVhL.js +4 -4
  139. package/chunk/zh-qa3hzwEB.js +4 -4
  140. package/chunk/zu-DwVIy-bC.js +4 -4
  141. package/es6.css +4 -4
  142. package/jslib.js +5 -5
  143. package/lib/{EmailLoopPending-CLMm5kzg.js → EmailLoopPending-CRs0n7WO.js} +5 -5
  144. package/lib/{EmailLoopPending-CLMm5kzg.js.map → EmailLoopPending-CRs0n7WO.js.map} +1 -1
  145. package/lib/{LicensedProfessionalOrganizationComponent-QzV1b2qr.js → LicensedProfessionalOrganizationComponent-DpimxCKC.js} +5 -5
  146. package/lib/{LicensedProfessionalOrganizationComponent-QzV1b2qr.js.map → LicensedProfessionalOrganizationComponent-DpimxCKC.js.map} +1 -1
  147. package/lib/Onfido-AyvUk6wg.js +4 -4
  148. package/lib/StepCollectMilitaryStatusComponent-DjIRHg05.js +11 -0
  149. package/lib/{StepCollectMilitaryStatusComponent-CTUyDSrJ.js.map → StepCollectMilitaryStatusComponent-DjIRHg05.js.map} +1 -1
  150. package/lib/{StepIDCheckLoopOnfido-CMFFYJSD.js → StepIDCheckLoopOnfido-DNOdBaAR.js} +5 -5
  151. package/lib/{StepIDCheckLoopOnfido-CMFFYJSD.js.map → StepIDCheckLoopOnfido-DNOdBaAR.js.map} +1 -1
  152. package/lib/{StepIDCheckLoopRegula-BhG4ztuO.js → StepIDCheckLoopRegula-CX73icyg.js} +5 -5
  153. package/lib/{StepIDCheckLoopRegula-BhG4ztuO.js.map → StepIDCheckLoopRegula-CX73icyg.js.map} +1 -1
  154. package/lib/{StepInactiveMilitaryPersonalInfoComponent-Dgpty6wc.js → StepInactiveMilitaryPersonalInfoComponent-CeJIe91S.js} +11 -11
  155. package/lib/{StepInactiveMilitaryPersonalInfoComponent-Dgpty6wc.js.map → StepInactiveMilitaryPersonalInfoComponent-CeJIe91S.js.map} +1 -1
  156. package/lib/{VerificationApiUtils-CSaNJkC3.js → VerificationApiUtils-DCEPKSOt.js} +5 -5
  157. package/lib/{VerificationApiUtils-CSaNJkC3.js.map → VerificationApiUtils-DCEPKSOt.js.map} +1 -1
  158. package/lib/ar-BZsYQiJv.js +4 -4
  159. package/lib/bg-DB_ZEB5O.js +4 -4
  160. package/lib/bn-IN-D69rNeuh.js +4 -4
  161. package/lib/cs-Dk4czWE5.js +4 -4
  162. package/lib/da-NesYkkEW.js +4 -4
  163. package/lib/de-4yAGb-JC.js +4 -4
  164. package/lib/el-D1h3O3E7.js +4 -4
  165. package/lib/en-GB-QY9gqmlz.js +4 -4
  166. package/lib/es-BYhP2rUk.js +4 -4
  167. package/lib/es-ES-BJLdehwH.js +4 -4
  168. package/lib/{es6-Cg68NDAU.js → es6-C2abemUD.js} +48 -48
  169. package/lib/{es6-Cg68NDAU.js.map → es6-C2abemUD.js.map} +1 -1
  170. package/lib/fi-D-Ycqh7I.js +4 -4
  171. package/lib/fr-CA-a8W9ZT_A.js +4 -4
  172. package/lib/fr-DR25pnXw.js +4 -4
  173. package/lib/ga-Bj6efXd2.js +4 -4
  174. package/lib/hi-IN-C-u9_T8L.js +4 -4
  175. package/lib/hr-B8E9jyUX.js +4 -4
  176. package/lib/hu-C7z4yBSK.js +4 -4
  177. package/lib/id-AsEkOlRu.js +4 -4
  178. package/lib/{index-CV7uZhtg.js → index--1Hzxve4.js} +11 -11
  179. package/lib/{index-CV7uZhtg.js.map → index--1Hzxve4.js.map} +1 -1
  180. package/lib/{index-BZ5Df5ka.js → index-7L1Z0u1-.js} +5 -5
  181. package/lib/{index-BZ5Df5ka.js.map → index-7L1Z0u1-.js.map} +1 -1
  182. package/lib/{index-DbLroc9E.js → index-84DA_jT2.js} +10 -10
  183. package/lib/{index-DbLroc9E.js.map → index-84DA_jT2.js.map} +1 -1
  184. package/lib/{index-B7My6ttZ.js → index-8kESiptt.js} +5 -5
  185. package/lib/{index-B7My6ttZ.js.map → index-8kESiptt.js.map} +1 -1
  186. package/lib/{index-C0JJeh2O.js → index-B_BS9qnQ.js} +13 -13
  187. package/lib/{index-C0JJeh2O.js.map → index-B_BS9qnQ.js.map} +1 -1
  188. package/lib/{index-cqiBSywX.js → index-Bb5tkw_V.js} +12 -12
  189. package/lib/{index-cqiBSywX.js.map → index-Bb5tkw_V.js.map} +1 -1
  190. package/lib/index-Bm_R6wgA.js +11 -0
  191. package/lib/index-Bm_R6wgA.js.map +1 -0
  192. package/lib/{index-DQujAAfH.js → index-BtM1XPhl.js} +5 -5
  193. package/lib/{index-DQujAAfH.js.map → index-BtM1XPhl.js.map} +1 -1
  194. package/lib/index-BzZl5JDO.js +167 -0
  195. package/lib/index-BzZl5JDO.js.map +1 -0
  196. package/lib/{index-Ccywa6Cm.js → index-C3CtMm2Q.js} +14 -14
  197. package/lib/{index-Ccywa6Cm.js.map → index-C3CtMm2Q.js.map} +1 -1
  198. package/lib/index-CNmUvsR-.js +11 -0
  199. package/lib/index-CNmUvsR-.js.map +1 -0
  200. package/lib/{index-Dwh6oJQA.js → index-CS_JuJR3.js} +10 -10
  201. package/lib/{index-Dwh6oJQA.js.map → index-CS_JuJR3.js.map} +1 -1
  202. package/lib/index-Cg0pahuD.js +11 -0
  203. package/lib/index-Cg0pahuD.js.map +1 -0
  204. package/lib/{index-Crwuy1ZD.js → index-DCCPfELa.js} +5 -5
  205. package/lib/{index-Crwuy1ZD.js.map → index-DCCPfELa.js.map} +1 -1
  206. package/lib/index-DIkWpujR.js +4 -4
  207. package/lib/index-DbQvQo1A.js +11 -0
  208. package/lib/index-DbQvQo1A.js.map +1 -0
  209. package/lib/{index-Bqc2bM7u.js → index-DbaJBiSs.js} +7 -7
  210. package/lib/{index-Bqc2bM7u.js.map → index-DbaJBiSs.js.map} +1 -1
  211. package/lib/{index-BomkmzNo.js → index-DdKeUKWu.js} +10 -10
  212. package/lib/{index-BomkmzNo.js.map → index-DdKeUKWu.js.map} +1 -1
  213. package/lib/{index-CxbjGaQU.js → index-DlwFWaiY.js} +14 -14
  214. package/lib/{index-CxbjGaQU.js.map → index-DlwFWaiY.js.map} +1 -1
  215. package/lib/{index-ZvqcMdMg.js → index-Dm5PevSE.js} +9 -9
  216. package/lib/{index-ZvqcMdMg.js.map → index-Dm5PevSE.js.map} +1 -1
  217. package/lib/{index-B8p1PjuO.js → index-DrxXRhEO.js} +5 -5
  218. package/lib/{index-B8p1PjuO.js.map → index-DrxXRhEO.js.map} +1 -1
  219. package/lib/{index-B0v6V8qu.js → index-EEqCPFo8.js} +9 -9
  220. package/lib/{index-B0v6V8qu.js.map → index-EEqCPFo8.js.map} +1 -1
  221. package/lib/index-K0J2eq7Y.js +116 -0
  222. package/lib/index-K0J2eq7Y.js.map +1 -0
  223. package/lib/{index--Sdx2jr8.js → index-PtF39r2i.js} +11 -11
  224. package/lib/{index--Sdx2jr8.js.map → index-PtF39r2i.js.map} +1 -1
  225. package/lib/is-PzizLXcv.js +4 -4
  226. package/lib/it-CiJeQN1_.js +4 -4
  227. package/lib/iw-QHmqNHZP.js +4 -4
  228. package/lib/ja-DPgVvasb.js +4 -4
  229. package/lib/ko-DykOu1Yp.js +4 -4
  230. package/lib/lo-C4bFrJOj.js +4 -4
  231. package/lib/lt-KjZ7oOV5.js +4 -4
  232. package/lib/ms-CNvzXjsH.js +4 -4
  233. package/lib/nl-BE-BXbsNtu2.js +4 -4
  234. package/lib/nl-ucuj2G5l.js +4 -4
  235. package/lib/no-D8IuXJ7O.js +4 -4
  236. package/lib/pl-DvnUkXGb.js +4 -4
  237. package/lib/pt-BR-Be00Hx-L.js +4 -4
  238. package/lib/pt-DS7isrlt.js +4 -4
  239. package/lib/ro-BHCICvJV.js +4 -4
  240. package/lib/ru-DUDtL41i.js +4 -4
  241. package/lib/sk-O9yqW58Q.js +4 -4
  242. package/lib/sl-CxcvfiDu.js +4 -4
  243. package/lib/sr-DgvzAvVS.js +4 -4
  244. package/lib/sv-BtktR0mm.js +4 -4
  245. package/lib/sw-D06YJhji.js +4 -4
  246. package/lib/th-C1KZhtMd.js +4 -4
  247. package/lib/tr-CqpbTukW.js +4 -4
  248. package/lib/uk-BWHH_jN1.js +4 -4
  249. package/lib/ur-BHWni4Fn.js +4 -4
  250. package/lib/{useCollectFieldsEndpoint-bsqUgBE3.js → useCollectFieldsEndpoint-C9_ygIzy.js} +6 -6
  251. package/lib/{useCollectFieldsEndpoint-bsqUgBE3.js.map → useCollectFieldsEndpoint-C9_ygIzy.js.map} +1 -1
  252. package/lib/{useEmailFirstExperiment-0b-sm4DD.js → useEmailFirstExperiment-Cib954tq.js} +5 -5
  253. package/lib/{useEmailFirstExperiment-0b-sm4DD.js.map → useEmailFirstExperiment-Cib954tq.js.map} +1 -1
  254. package/lib/vi-DVhQHKtP.js +4 -4
  255. package/lib/zh-HK-C-wTSVhL.js +4 -4
  256. package/lib/zh-qa3hzwEB.js +4 -4
  257. package/lib/zu-DwVIy-bC.js +4 -4
  258. package/package.json +1 -1
  259. package/sheerid-install.css +4 -4
  260. package/sheerid-install.js +5 -5
  261. package/sheerid.css +4 -4
  262. package/sheerid.js +35 -35
  263. package/sheerid.js.map +1 -1
  264. package/types-reference.zip +0 -0
  265. package/chunk/index-Bi9QXN5x.js.map +0 -1
  266. package/chunk/index-CTb96lOK.js +0 -158
  267. package/chunk/index-CTb96lOK.js.map +0 -1
  268. package/chunk/index-FjzhfDlx.js.map +0 -1
  269. package/chunk/index-Gfy-1H7s.js +0 -154
  270. package/chunk/index-Gfy-1H7s.js.map +0 -1
  271. package/lib/StepCollectMilitaryStatusComponent-CTUyDSrJ.js +0 -11
  272. package/lib/index-C5Ag2pL8.js +0 -11
  273. package/lib/index-C5Ag2pL8.js.map +0 -1
  274. package/lib/index-C_pHiFBt.js +0 -11
  275. package/lib/index-C_pHiFBt.js.map +0 -1
  276. package/lib/index-CkVQHhwe.js +0 -11
  277. package/lib/index-CkVQHhwe.js.map +0 -1
  278. package/lib/index-DZ_J61oY.js +0 -11
  279. package/lib/index-DZ_J61oY.js.map +0 -1
  280. package/lib/index-MVALSelO.js +0 -107
  281. package/lib/index-MVALSelO.js.map +0 -1
  282. package/lib/index-XBgKR4Wt.js +0 -155
  283. package/lib/index-XBgKR4Wt.js.map +0 -1
@@ -1,14 +1,14 @@
1
1
 
2
2
  /**
3
- * VERSION: 2.115.0-alpha.1
4
- * BUILD_TIMESTAMP: 1751924290184
5
- * BUILD_DATE: Mon Jul 07 2025 21:38:10 GMT+0000 (Coordinated Universal Time)
6
- * BUILD_COMMIT: b058d3e0b1c974501cf6bb55f1803b3084c06d78
3
+ * VERSION: 2.115.0-alpha.3
4
+ * BUILD_TIMESTAMP: 1751931390816
5
+ * BUILD_DATE: Mon Jul 07 2025 23:36:30 GMT+0000 (Coordinated Universal Time)
6
+ * BUILD_COMMIT: 9b953bf464bb46df40df3f4b766e06f47b82b5aa
7
7
  */
8
- import { k as V, a7 as k, a8 as A, i as q, u as d, j as o, M as B, N as L, m as U, w as W, a1 as w, f as r, O, T as _, a4 as H, a9 as K, U as X, W as Y, E as Z, n as z, X as G, Y as J, Z as Q, _ as $, o as S, V as v, aa as ee } from "./es6-Cg68NDAU.js";
8
+ import { k as V, a7 as k, a8 as A, i as q, u as d, j as o, M as B, N as L, m as U, z as W, a0 as O, f as r, O as _, T as w, a3 as H, a9 as K, U as z, W as X, E as Y, n as Z, X as G, Y as J, Z as Q, _ as $, o as S, V as v, aa as ee } from "./es6-C2abemUD.js";
9
9
  import se from "react";
10
10
  import { injectIntl as ae, FormattedHTMLMessage as oe } from "react-intl";
11
- import { u as te } from "./useCollectFieldsEndpoint-bsqUgBE3.js";
11
+ import { u as te } from "./useCollectFieldsEndpoint-C9_ygIzy.js";
12
12
  const de = ({ verificationService: s, intl: j }) => {
13
13
  var p, C, h, b, i, N, g, x, y;
14
14
  const a = s.viewModel, { fieldValidationErrors: t } = s, l = s.verificationResponse, E = V(l), I = k(
@@ -39,7 +39,7 @@ const de = ({ verificationService: s, intl: j }) => {
39
39
  /* @__PURE__ */ o.jsx(U, { verificationService: s, classNameIdentifier: "age" }),
40
40
  /* @__PURE__ */ o.jsx(W, { verificationService: s }),
41
41
  /* @__PURE__ */ o.jsx(
42
- w,
42
+ O,
43
43
  {
44
44
  verificationService: s,
45
45
  disabled: (p = r("country")) == null ? void 0 : p.disabled
@@ -47,7 +47,7 @@ const de = ({ verificationService: s, intl: j }) => {
47
47
  ),
48
48
  /* @__PURE__ */ o.jsxs("div", { className: "sid-names", children: [
49
49
  /* @__PURE__ */ o.jsx(
50
- O,
50
+ _,
51
51
  {
52
52
  value: a.firstName,
53
53
  isErrored: !!t.firstName,
@@ -58,7 +58,7 @@ const de = ({ verificationService: s, intl: j }) => {
58
58
  }
59
59
  ),
60
60
  /* @__PURE__ */ o.jsx(
61
- _,
61
+ w,
62
62
  {
63
63
  value: a.lastName,
64
64
  isErrored: !!t.lastName,
@@ -95,7 +95,7 @@ const de = ({ verificationService: s, intl: j }) => {
95
95
  }
96
96
  ),
97
97
  u("address1") && /* @__PURE__ */ o.jsx(
98
- X,
98
+ z,
99
99
  {
100
100
  value: a.address1,
101
101
  isRequired: !0,
@@ -107,7 +107,7 @@ const de = ({ verificationService: s, intl: j }) => {
107
107
  }
108
108
  ),
109
109
  u("postalCode") && /* @__PURE__ */ o.jsx(
110
- Y,
110
+ X,
111
111
  {
112
112
  isErrored: !!t.postalCode,
113
113
  onChange: (e) => {
@@ -118,14 +118,14 @@ const de = ({ verificationService: s, intl: j }) => {
118
118
  }
119
119
  ),
120
120
  /* @__PURE__ */ o.jsx(
121
- Z,
121
+ Y,
122
122
  {
123
123
  value: a.email,
124
124
  isErrored: !!t.email,
125
125
  onChange: (e) => {
126
126
  n("email", e), d("email", e, s);
127
127
  },
128
- onKeyDown: (e) => z(e),
128
+ onKeyDown: (e) => Z(e),
129
129
  disabled: (g = r("email")) == null ? void 0 : g.disabled
130
130
  }
131
131
  ),
@@ -1 +1 @@
1
- {"version":3,"file":"index-C0JJeh2O.js","sources":["../../src/components/StepAgePersonalInfo/StepAgePersonalInfoComponent.tsx"],"sourcesContent":["/**\n * TODO - preamble\n */\nimport React from \"react\";\nimport { FormattedHTMLMessage, InjectedIntl, injectIntl } from \"react-intl\";\n\nimport { useCollectFieldsEndpoint } from \"@/lib/ServerApi/useCollectFieldsEndpoint\";\nimport { VerificationStepsEnum } from \"../../lib/types/runtimeTypes\";\nimport { hasFailedInstantMatch } from \"../../lib/VerificationService/VerificationServiceHelpers\";\nimport { getSafe } from \"../../lib/utils/getSafe\";\nimport {\n VerificationService,\n AgePersonalInfoViewModel,\n AgePersonalInfoResponse,\n FormSelectChoice,\n Country,\n FieldDescription,\n CustomFormFieldConfig,\n} from \"../../lib/types/types\";\n\nimport {\n handleEmailOnKeyDown,\n updateFieldValidationErrorsByFieldId,\n getAvailableCountryChoices,\n getDefaultCountryChoice,\n produceDraftViewModel,\n getFieldConfigByFieldId,\n} from \"../../lib/utils/stepComponentHelpers/stepComponentHelpers\";\n\nimport { MarketConsentWrapperComponent as MarketConsentWrapper } from \"../FormFields/MarketConsentWrapper/MarketConsentWrapperComponent\";\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 { BirthDateComponent as BirthDate } from \"../FormFields/BirthDate/BirthDateComponent\";\nimport { PostalCodeComponent as PostalCode } from \"../FormFields/PostalCode/PostalCodeComponent\";\n\nimport { CountryComponentWrapper } from \"../FormFields/Country/CountryComponentWrapper\";\nimport { CityComponent } from \"../FormFields/City/City\";\nimport { AddressComponent } from \"../FormFields/Address/AddressComponent\";\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 StepAgePersonalInfoComponentProps {\n intl: InjectedIntl;\n verificationService: VerificationService;\n}\n\nconst StepAgePersonalInfo = ({ verificationService, intl }: StepAgePersonalInfoComponentProps) => {\n const viewModel = verificationService.viewModel as AgePersonalInfoViewModel;\n const { fieldValidationErrors } = verificationService;\n const verificationResponse = verificationService.verificationResponse as AgePersonalInfoResponse;\n const failedInstantMatch = hasFailedInstantMatch(verificationResponse);\n const countryChoices: FormSelectChoice<Country, string>[] = getAvailableCountryChoices(\n verificationService.programTheme,\n intl,\n );\n const defaultCountryChoice: FormSelectChoice<Country, string> =\n getDefaultCountryChoice(countryChoices);\n const safeCountryValue = getSafe(() => viewModel.countryChoice.value, defaultCountryChoice.value);\n const defaultRequiredFields: FieldDescription[] =\n safeCountryValue === \"US\" ? [{ key: \"postalCode\" }] : [];\n\n // PhoneNumber is required for all non-US age programs and if smsLoop is enabled.\n const showPhoneNumber =\n safeCountryValue !== \"US\" ||\n verificationService.programTheme.isSmsNotifierConfigured ||\n verificationService.programTheme.smsLoopEnabled;\n const phoneNumberRequired =\n safeCountryValue !== \"US\" || verificationService.programTheme.smsLoopEnabled;\n\n const locale = viewModel.localeChoice.value;\n const options = getOptions();\n\n if (\n !fieldValidationErrors.phoneNumber &&\n verificationResponse.errorIds &&\n verificationResponse.errorIds.includes(\"invalidPhoneNumber\")\n ) {\n verificationService.updateFieldValidationErrors({\n ...fieldValidationErrors,\n phoneNumber: \"invalidPhoneNumber\",\n });\n }\n\n const updateAgeViewModel = (key: keyof AgePersonalInfoViewModel, value: any) => {\n const nextState: AgePersonalInfoViewModel = produceDraftViewModel(viewModel, key, value);\n verificationService.updateViewModel(nextState);\n };\n\n const { isFieldRequired } = useCollectFieldsEndpoint({\n verificationId: verificationResponse.verificationId,\n currentStep: verificationResponse.currentStep,\n viewModel,\n defaultRequiredFields,\n });\n\n React.useEffect(() => {\n // When country changes re-check the phone number validation\n updateFieldValidationErrorsByFieldId(\"phoneNumber\", viewModel.phoneNumber, verificationService);\n }, [viewModel.country]);\n\n return (\n <PersonalInfoWrapper\n verificationService={verificationService}\n step={verificationResponse.currentStep}\n >\n <PersonalInfoHeader verificationService={verificationService} classNameIdentifier=\"age\" />\n\n <ChangeLocaleV2Component verificationService={verificationService} />\n <CountryComponentWrapper\n verificationService={verificationService}\n disabled={getFieldConfigByFieldId(\"country\")?.disabled}\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 updateAgeViewModel(\"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 updateAgeViewModel(\"lastName\", newValue);\n updateFieldValidationErrorsByFieldId(\"lastName\", newValue, verificationService);\n }}\n />\n </div>\n <BirthDate\n errorId={fieldValidationErrors.birthDate}\n locale={locale}\n onChange={(newValue) => {\n updateAgeViewModel(\"birthDate\", newValue);\n updateFieldValidationErrorsByFieldId(\"birthDate\", newValue, verificationService);\n }}\n value={viewModel.birthDate}\n disabled={getFieldConfigByFieldId(\"birthDate\")?.disabled}\n />\n {isFieldRequired(\"city\") && (\n <CityComponent\n value={viewModel.city}\n isRequired\n isErrored={!!fieldValidationErrors.city}\n errorId={fieldValidationErrors.city}\n disabled={getFieldConfigByFieldId(\"city\")?.disabled}\n onChange={(value) => {\n updateAgeViewModel(\"city\", value);\n updateFieldValidationErrorsByFieldId(\"city\", value, verificationService);\n }}\n />\n )}\n {isFieldRequired(\"address1\") && (\n <AddressComponent\n value={viewModel.address1}\n isRequired\n isErrored={!!fieldValidationErrors.address1}\n errorId={fieldValidationErrors.address1}\n onChange={(value) => {\n updateAgeViewModel(\"address1\", value);\n updateFieldValidationErrorsByFieldId(\"address1\", value, verificationService);\n }}\n />\n )}\n {isFieldRequired(\"postalCode\") && (\n <PostalCode\n isErrored={!!fieldValidationErrors.postalCode}\n onChange={(newValue) => {\n updateAgeViewModel(\"postalCode\", newValue);\n updateFieldValidationErrorsByFieldId(\"postalCode\", newValue, verificationService);\n }}\n value={viewModel.postalCode}\n disabled={getFieldConfigByFieldId(\"postalCode\")?.disabled}\n />\n )}\n <Email\n value={viewModel.email}\n isErrored={!!fieldValidationErrors.email}\n onChange={(newValue) => {\n updateAgeViewModel(\"email\", newValue);\n updateFieldValidationErrorsByFieldId(\"email\", newValue, verificationService);\n }}\n onKeyDown={(event) => handleEmailOnKeyDown(event)}\n disabled={getFieldConfigByFieldId(\"email\")?.disabled}\n />\n\n {showPhoneNumber ? (\n <PhoneNumber\n isRequired={phoneNumberRequired}\n value={viewModel.phoneNumber}\n isErrored={!!fieldValidationErrors.phoneNumber}\n onChange={(newValue) => {\n updateAgeViewModel(\"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 updateAgeViewModel(\"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.collectAgePersonalInfo}\n verificationService={verificationService}\n viewModel={viewModel}\n failedInstantMatch={failedInstantMatch}\n buttonText={\n <FormattedHTMLMessage\n id=\"step.personalInfo.submitButtonText\"\n defaultMessage=\"Verify and continue\"\n />\n }\n />\n </PersonalInfoWrapper>\n );\n};\n\nexport const StepAgePersonalInfoComponent = injectIntl(StepAgePersonalInfo);\n"],"names":["StepAgePersonalInfo","verificationService","intl","viewModel","fieldValidationErrors","verificationResponse","failedInstantMatch","hasFailedInstantMatch","countryChoices","getAvailableCountryChoices","defaultCountryChoice","getDefaultCountryChoice","safeCountryValue","getSafe","defaultRequiredFields","showPhoneNumber","phoneNumberRequired","locale","options","getOptions","updateAgeViewModel","key","value","nextState","produceDraftViewModel","isFieldRequired","useCollectFieldsEndpoint","React","updateFieldValidationErrorsByFieldId","jsxs","PersonalInfoWrapper","jsx","PersonalInfoHeader","ChangeLocaleV2Component","CountryComponentWrapper","_a","getFieldConfigByFieldId","FirstName","_b","newValue","LastName","_c","BirthDate","_d","CityComponent","_e","AddressComponent","PostalCode","_f","Email","event","handleEmailOnKeyDown","_g","PhoneNumber","_h","config","FormFieldCustom","MarketConsentWrapper","_i","ExtraMessage","PersonalInfoStepSubmitButton","VerificationStepsEnum","FormattedHTMLMessage","StepAgePersonalInfoComponent","injectIntl"],"mappings":";;;;AAqDA,MAAMA,KAAsB,CAAC,EAAE,q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AAA,IAAA4B,GAAA,EAAa,qBAAA1D,GAA0C,QAAO,qBAAqB,CAAA;AAAA,QAEpF8B,gBAAAA,EAAA;AAAA,UAAC6B;AAAA,UAAA;AAAA,YACC,MAAMC,EAAsB;AAAA,YAC5B,qBAAA5D;AAAA,YACA,WAAAE;AAAA,YACA,oBAAAG;AAAA,YACA,YACEyB,gBAAAA,EAAA;AAAA,cAAC+B;AAAA,cAAA;AAAA,gBACC,IAAG;AAAA,gBACH,gBAAe;AAAA,cAAA;AAAA,YAAA;AAAA,UACjB;AAAA,QAAA;AAAA,MAEJ;AAAA,IAAA;AAAA,EACF;AAEJ,GAEaC,KAA+BC,GAAWhE,EAAmB;"}
1
+ {"version":3,"file":"index-B_BS9qnQ.js","sources":["../../src/components/StepAgePersonalInfo/StepAgePersonalInfoComponent.tsx"],"sourcesContent":["/**\n * TODO - preamble\n */\nimport React from \"react\";\nimport { FormattedHTMLMessage, InjectedIntl, injectIntl } from \"react-intl\";\n\nimport { useCollectFieldsEndpoint } from \"@/lib/ServerApi/useCollectFieldsEndpoint\";\nimport { VerificationStepsEnum } from \"../../lib/types/runtimeTypes\";\nimport { hasFailedInstantMatch } from \"../../lib/VerificationService/VerificationServiceHelpers\";\nimport { getSafe } from \"../../lib/utils/getSafe\";\nimport {\n VerificationService,\n AgePersonalInfoViewModel,\n AgePersonalInfoResponse,\n FormSelectChoice,\n Country,\n FieldDescription,\n CustomFormFieldConfig,\n} from \"../../lib/types/types\";\n\nimport {\n handleEmailOnKeyDown,\n updateFieldValidationErrorsByFieldId,\n getAvailableCountryChoices,\n getDefaultCountryChoice,\n produceDraftViewModel,\n getFieldConfigByFieldId,\n} from \"../../lib/utils/stepComponentHelpers/stepComponentHelpers\";\n\nimport { MarketConsentWrapperComponent as MarketConsentWrapper } from \"../FormFields/MarketConsentWrapper/MarketConsentWrapperComponent\";\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 { BirthDateComponent as BirthDate } from \"../FormFields/BirthDate/BirthDateComponent\";\nimport { PostalCodeComponent as PostalCode } from \"../FormFields/PostalCode/PostalCodeComponent\";\n\nimport { CountryComponentWrapper } from \"../FormFields/Country/CountryComponentWrapper\";\nimport { CityComponent } from \"../FormFields/City/City\";\nimport { AddressComponent } from \"../FormFields/Address/AddressComponent\";\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 StepAgePersonalInfoComponentProps {\n intl: InjectedIntl;\n verificationService: VerificationService;\n}\n\nconst StepAgePersonalInfo = ({ verificationService, intl }: StepAgePersonalInfoComponentProps) => {\n const viewModel = verificationService.viewModel as AgePersonalInfoViewModel;\n const { fieldValidationErrors } = verificationService;\n const verificationResponse = verificationService.verificationResponse as AgePersonalInfoResponse;\n const failedInstantMatch = hasFailedInstantMatch(verificationResponse);\n const countryChoices: FormSelectChoice<Country, string>[] = getAvailableCountryChoices(\n verificationService.programTheme,\n intl,\n );\n const defaultCountryChoice: FormSelectChoice<Country, string> =\n getDefaultCountryChoice(countryChoices);\n const safeCountryValue = getSafe(() => viewModel.countryChoice.value, defaultCountryChoice.value);\n const defaultRequiredFields: FieldDescription[] =\n safeCountryValue === \"US\" ? [{ key: \"postalCode\" }] : [];\n\n // PhoneNumber is required for all non-US age programs and if smsLoop is enabled.\n const showPhoneNumber =\n safeCountryValue !== \"US\" ||\n verificationService.programTheme.isSmsNotifierConfigured ||\n verificationService.programTheme.smsLoopEnabled;\n const phoneNumberRequired =\n safeCountryValue !== \"US\" || verificationService.programTheme.smsLoopEnabled;\n\n const locale = viewModel.localeChoice.value;\n const options = getOptions();\n\n if (\n !fieldValidationErrors.phoneNumber &&\n verificationResponse.errorIds &&\n verificationResponse.errorIds.includes(\"invalidPhoneNumber\")\n ) {\n verificationService.updateFieldValidationErrors({\n ...fieldValidationErrors,\n phoneNumber: \"invalidPhoneNumber\",\n });\n }\n\n const updateAgeViewModel = (key: keyof AgePersonalInfoViewModel, value: any) => {\n const nextState: AgePersonalInfoViewModel = produceDraftViewModel(viewModel, key, value);\n verificationService.updateViewModel(nextState);\n };\n\n const { isFieldRequired } = useCollectFieldsEndpoint({\n verificationId: verificationResponse.verificationId,\n currentStep: verificationResponse.currentStep,\n viewModel,\n defaultRequiredFields,\n });\n\n React.useEffect(() => {\n // When country changes re-check the phone number validation\n updateFieldValidationErrorsByFieldId(\"phoneNumber\", viewModel.phoneNumber, verificationService);\n }, [viewModel.country]);\n\n return (\n <PersonalInfoWrapper\n verificationService={verificationService}\n step={verificationResponse.currentStep}\n >\n <PersonalInfoHeader verificationService={verificationService} classNameIdentifier=\"age\" />\n\n <ChangeLocaleV2Component verificationService={verificationService} />\n <CountryComponentWrapper\n verificationService={verificationService}\n disabled={getFieldConfigByFieldId(\"country\")?.disabled}\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 updateAgeViewModel(\"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 updateAgeViewModel(\"lastName\", newValue);\n updateFieldValidationErrorsByFieldId(\"lastName\", newValue, verificationService);\n }}\n />\n </div>\n <BirthDate\n errorId={fieldValidationErrors.birthDate}\n locale={locale}\n onChange={(newValue) => {\n updateAgeViewModel(\"birthDate\", newValue);\n updateFieldValidationErrorsByFieldId(\"birthDate\", newValue, verificationService);\n }}\n value={viewModel.birthDate}\n disabled={getFieldConfigByFieldId(\"birthDate\")?.disabled}\n />\n {isFieldRequired(\"city\") && (\n <CityComponent\n value={viewModel.city}\n isRequired\n isErrored={!!fieldValidationErrors.city}\n errorId={fieldValidationErrors.city}\n disabled={getFieldConfigByFieldId(\"city\")?.disabled}\n onChange={(value) => {\n updateAgeViewModel(\"city\", value);\n updateFieldValidationErrorsByFieldId(\"city\", value, verificationService);\n }}\n />\n )}\n {isFieldRequired(\"address1\") && (\n <AddressComponent\n value={viewModel.address1}\n isRequired\n isErrored={!!fieldValidationErrors.address1}\n errorId={fieldValidationErrors.address1}\n onChange={(value) => {\n updateAgeViewModel(\"address1\", value);\n updateFieldValidationErrorsByFieldId(\"address1\", value, verificationService);\n }}\n />\n )}\n {isFieldRequired(\"postalCode\") && (\n <PostalCode\n isErrored={!!fieldValidationErrors.postalCode}\n onChange={(newValue) => {\n updateAgeViewModel(\"postalCode\", newValue);\n updateFieldValidationErrorsByFieldId(\"postalCode\", newValue, verificationService);\n }}\n value={viewModel.postalCode}\n disabled={getFieldConfigByFieldId(\"postalCode\")?.disabled}\n />\n )}\n <Email\n value={viewModel.email}\n isErrored={!!fieldValidationErrors.email}\n onChange={(newValue) => {\n updateAgeViewModel(\"email\", newValue);\n updateFieldValidationErrorsByFieldId(\"email\", newValue, verificationService);\n }}\n onKeyDown={(event) => handleEmailOnKeyDown(event)}\n disabled={getFieldConfigByFieldId(\"email\")?.disabled}\n />\n\n {showPhoneNumber ? (\n <PhoneNumber\n isRequired={phoneNumberRequired}\n value={viewModel.phoneNumber}\n isErrored={!!fieldValidationErrors.phoneNumber}\n onChange={(newValue) => {\n updateAgeViewModel(\"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 updateAgeViewModel(\"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.collectAgePersonalInfo}\n verificationService={verificationService}\n viewModel={viewModel}\n failedInstantMatch={failedInstantMatch}\n buttonText={\n <FormattedHTMLMessage\n id=\"step.personalInfo.submitButtonText\"\n defaultMessage=\"Verify and continue\"\n />\n }\n />\n </PersonalInfoWrapper>\n );\n};\n\nexport const StepAgePersonalInfoComponent = injectIntl(StepAgePersonalInfo);\n"],"names":["StepAgePersonalInfo","verificationService","intl","viewModel","fieldValidationErrors","verificationResponse","failedInstantMatch","hasFailedInstantMatch","countryChoices","getAvailableCountryChoices","defaultCountryChoice","getDefaultCountryChoice","safeCountryValue","getSafe","defaultRequiredFields","showPhoneNumber","phoneNumberRequired","locale","options","getOptions","updateAgeViewModel","key","value","nextState","produceDraftViewModel","isFieldRequired","useCollectFieldsEndpoint","React","updateFieldValidationErrorsByFieldId","jsxs","PersonalInfoWrapper","jsx","PersonalInfoHeader","ChangeLocaleV2Component","CountryComponentWrapper","_a","getFieldConfigByFieldId","FirstName","_b","newValue","LastName","_c","BirthDate","_d","CityComponent","_e","AddressComponent","PostalCode","_f","Email","event","handleEmailOnKeyDown","_g","PhoneNumber","_h","config","FormFieldCustom","MarketConsentWrapper","_i","ExtraMessage","PersonalInfoStepSubmitButton","VerificationStepsEnum","FormattedHTMLMessage","StepAgePersonalInfoComponent","injectIntl"],"mappings":";;;;AAqDA,MAAMA,KAAsB,CAAC,EAAE,qBAAAC,GAAqB,MAAAC,QAA8C;;AAChG,QAAMC,IAAYF,EAAoB,WAChC,EAAE,uBAAAG,MAA0BH,GAC5BI,IAAuBJ,EAAoB,sBAC3CK,IAAqBC,EAAsBF,CAAoB,GAC/DG,IAAsDC;AAAA,IAC1DR,EAAoB;AAAA,IACpBC;AAAA,EACF,GACMQ,IACJC,EAAwBH,CAAc,GAClCI,IAAmBC,EAAQ,MAAMV,EAAU,cAAc,OAAOO,EAAqB,KAAK,GAC1FI,IACJF,MAAqB,OAAO,CAAC,EAAE,KAAK,aAAc,CAAA,IAAI,CAAC,GAGnDG,IACJH,MAAqB,QACrBX,EAAoB,aAAa,2BACjCA,EAAoB,aAAa,gBAC7Be,IACJJ,MAAqB,QAAQX,EAAoB,aAAa,gBAE1DgB,IAASd,EAAU,aAAa,OAChCe,IAAUC,EAAW;AAGzB,EAAA,CAACf,EAAsB,eACvBC,EAAqB,YACrBA,EAAqB,SAAS,SAAS,oBAAoB,KAE3DJ,EAAoB,4BAA4B;AAAA,IAC9C,GAAGG;AAAA,IACH,aAAa;AAAA,EAAA,CACd;AAGG,QAAAgB,IAAqB,CAACC,GAAqCC,MAAe;AAC9E,UAAMC,IAAsCC,GAAsBrB,GAAWkB,GAAKC,CAAK;AACvF,IAAArB,EAAoB,gBAAgBsB,CAAS;AAAA,EAC/C,GAEM,EAAE,iBAAAE,EAAgB,IAAIC,GAAyB;AAAA,IACnD,gBAAgBrB,EAAqB;AAAA,IACrC,aAAaA,EAAqB;AAAA,IAClC,WAAAF;AAAA,IACA,uBAAAW;AAAA,EAAA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C7B,GAAGnB,EAAoB,UAAU;AAAA,gBACjC,oBAAoBsC;AAAA,cAAA,CACrB,GACoCX,EAAA,sBAAsBW,GAAUtC,CAAmB;AAAA,YAC1F;AAAA,YACA,WAAAE;AAAA,YACA,WAAUuD,IAAAtB,EAAwB,oBAAoB,MAA5C,gBAAAsB,EAA+C;AAAA,UAAA;AAAA,QAC3D;AAAA,QAEC3B,gBAAAA,EAAAA,IAAA4B,GAAA,EAAa,qBAAA1D,GAA0C,QAAO,qBAAqB,CAAA;AAAA,QAEpF8B,gBAAAA,EAAA;AAAA,UAAC6B;AAAA,UAAA;AAAA,YACC,MAAMC,EAAsB;AAAA,YAC5B,qBAAA5D;AAAA,YACA,WAAAE;AAAA,YACA,oBAAAG;AAAA,YACA,YACEyB,gBAAAA,EAAA;AAAA,cAAC+B;AAAA,cAAA;AAAA,gBACC,IAAG;AAAA,gBACH,gBAAe;AAAA,cAAA;AAAA,YAAA;AAAA,UACjB;AAAA,QAAA;AAAA,MAEJ;AAAA,IAAA;AAAA,EACF;AAEJ,GAEaC,KAA+BC,GAAWhE,EAAmB;"}
@@ -1,11 +1,11 @@
1
1
 
2
2
  /**
3
- * VERSION: 2.115.0-alpha.1
4
- * BUILD_TIMESTAMP: 1751924290184
5
- * BUILD_DATE: Mon Jul 07 2025 21:38:10 GMT+0000 (Coordinated Universal Time)
6
- * BUILD_COMMIT: b058d3e0b1c974501cf6bb55f1803b3084c06d78
3
+ * VERSION: 2.115.0-alpha.3
4
+ * BUILD_TIMESTAMP: 1751931390816
5
+ * BUILD_DATE: Mon Jul 07 2025 23:36:30 GMT+0000 (Coordinated Universal Time)
6
+ * BUILD_COMMIT: 9b953bf464bb46df40df3f4b766e06f47b82b5aa
7
7
  */
8
- import { j as a, M as k, N as P, m as V, w as f, a1 as A, f as t, ag as u, ah as R, a3 as q, u as n, O as w, T as z, U as B, a9 as L, ai as D, aj as O, W, E as U, n as H, X as K, Y as X, Z as Y, _ as Z, o as _, V as G, q as J } from "./es6-Cg68NDAU.js";
8
+ import { j as a, M as k, N as P, m as V, z as f, a0 as z, f as t, ag as u, ah as A, a2 as R, u as n, O as q, T as B, U as L, a9 as w, ai as D, aj as O, W, E as U, n as H, X as K, Y as X, Z as Y, _ as Z, o as _, V as G, q as J } from "./es6-C2abemUD.js";
9
9
  import { injectIntl as Q, FormattedHTMLMessage as p } from "react-intl";
10
10
  const $ = ({
11
11
  intl: I,
@@ -36,7 +36,7 @@ const $ = ({
36
36
  ),
37
37
  /* @__PURE__ */ a.jsx(f, { verificationService: e }),
38
38
  /* @__PURE__ */ a.jsx(
39
- A,
39
+ z,
40
40
  {
41
41
  verificationService: e,
42
42
  disabled: (C = t("country")) == null ? void 0 : C.disabled,
@@ -50,20 +50,20 @@ const $ = ({
50
50
  }
51
51
  ),
52
52
  /* @__PURE__ */ a.jsx(
53
- R,
53
+ A,
54
54
  {
55
55
  value: e.viewModel.organization,
56
56
  verificationService: e,
57
57
  isErrored: !!d.organization,
58
58
  disabled: (g = t("organization")) == null ? void 0 : g.disabled,
59
59
  onChange: (s) => {
60
- q(s, e), n("organization", s, e);
60
+ R(s, e), n("organization", s, e);
61
61
  }
62
62
  }
63
63
  ),
64
64
  /* @__PURE__ */ a.jsxs("div", { className: "sid-names", children: [
65
65
  /* @__PURE__ */ a.jsx(
66
- w,
66
+ q,
67
67
  {
68
68
  value: o.firstName,
69
69
  isErrored: !!d.firstName,
@@ -74,7 +74,7 @@ const $ = ({
74
74
  }
75
75
  ),
76
76
  /* @__PURE__ */ a.jsx(
77
- z,
77
+ B,
78
78
  {
79
79
  value: o.lastName,
80
80
  isErrored: !!d.lastName,
@@ -89,7 +89,7 @@ const $ = ({
89
89
  o.countryChoice,
90
90
  e.programTheme.config.countries
91
91
  ) ? /* @__PURE__ */ a.jsx(
92
- B,
92
+ L,
93
93
  {
94
94
  isErrored: !!d.address1,
95
95
  errorId: d.address1,
@@ -107,7 +107,7 @@ const $ = ({
107
107
  e.programTheme.config.countries
108
108
  ) ? /* @__PURE__ */ a.jsxs("div", { className: "sid-thirds", children: [
109
109
  /* @__PURE__ */ a.jsx(
110
- L,
110
+ w,
111
111
  {
112
112
  isErrored: !!d.city,
113
113
  errorId: d.city,
@@ -1 +1 @@
1
- {"version":3,"file":"index-cqiBSywX.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,qB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E,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;"}
1
+ {"version":3,"file":"index-Bb5tkw_V.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,gBA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sB;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;"}
@@ -0,0 +1,11 @@
1
+
2
+ /**
3
+ * VERSION: 2.115.0-alpha.3
4
+ * BUILD_TIMESTAMP: 1751931390816
5
+ * BUILD_DATE: Mon Jul 07 2025 23:36:30 GMT+0000 (Coordinated Universal Time)
6
+ * BUILD_COMMIT: 9b953bf464bb46df40df3f4b766e06f47b82b5aa
7
+ */
8
+ import { d as e } from "./es6-C2abemUD.js";
9
+ export {
10
+ e as default
11
+ };
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index-Bm_R6wgA.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
@@ -1,11 +1,11 @@
1
1
 
2
2
  /**
3
- * VERSION: 2.115.0-alpha.1
4
- * BUILD_TIMESTAMP: 1751924290184
5
- * BUILD_DATE: Mon Jul 07 2025 21:38:10 GMT+0000 (Coordinated Universal Time)
6
- * BUILD_COMMIT: b058d3e0b1c974501cf6bb55f1803b3084c06d78
3
+ * VERSION: 2.115.0-alpha.3
4
+ * BUILD_TIMESTAMP: 1751931390816
5
+ * BUILD_DATE: Mon Jul 07 2025 23:36:30 GMT+0000 (Coordinated Universal Time)
6
+ * BUILD_COMMIT: 9b953bf464bb46df40df3f4b766e06f47b82b5aa
7
7
  */
8
- import { i as l, j as e, A as S, $ as R, q as E, l as V, V as w, K as y } from "./es6-Cg68NDAU.js";
8
+ import { i as l, j as e, A as S, $ as R, q as E, l as V, V as w, K as y } from "./es6-C2abemUD.js";
9
9
  import c from "react";
10
10
  import { injectIntl as _, FormattedHTMLMessage as t } from "react-intl";
11
11
  const k = ({ intl: i, verificationService: s }) => {
@@ -1 +1 @@
1
- {"version":3,"file":"index-DQujAAfH.js","sources":["../../src/components/StepSMSLoop/StepSMSLoopComponent.tsx"],"sourcesContent":["import React from \"react\";\nimport { injectIntl, FormattedHTMLMessage, InjectedIntl } from \"react-intl\";\nimport { produce } from \"immer\";\n\nimport { logger } from \"../../lib/utils/logger/logger\";\nimport {\n VerificationService,\n StudentPersonalInfoViewModel,\n SMSLoopResponse,\n SMSLoopViewModel,\n} from \"../../lib/types/types\";\nimport { VerificationStepsEnum } from \"../../lib/types/runtimeTypes\";\nimport { getSafe } from \"../../lib/utils/getSafe\";\n\nimport { SMSCodeComponent } from \"../FormFields/SMSCode/SMSCodeComponent\";\n\nimport { VerificationApiClient } from \"../../lib/ServerApi/VerificationApiClient\";\nimport { AnnouncingHeader } from \"../AnnouncingHeader/AnnouncingHeader\";\n\ninterface StepSMSLoopProps {\n intl: InjectedIntl;\n verificationService: VerificationService;\n}\n\nconst StepSMSLoop = ({ intl, verificationService }: StepSMSLoopProps) => {\n const viewModel = verificationService.viewModel as SMSLoopViewModel;\n const verificationResponse = verificationService.verificationResponse as SMSLoopResponse;\n const isErrored = Boolean(verificationService.fieldValidationErrors.smsCode);\n const previousViewModel =\n (verificationService.previousViewModel as StudentPersonalInfoViewModel) || undefined;\n\n const [stepResultMessage, setStepResultMessage] = React.useState(\"\");\n const [isAttemptLimitExceeded, setAttemptLimitExceeded] = React.useState(\n verificationResponse.errorIds &&\n verificationResponse.errorIds.includes(\"incorrectSMSCodeAttemptLimitExceeded\"),\n );\n\n const stepSuccessMessage = intl.formatHTMLMessage({\n id: \"step.smsLoop.successResend\",\n defaultMessage: \"SMS message re-sent successfully\",\n });\n const maxTotalRetriesMessage = intl.formatHTMLMessage({\n id: \"step.smsLoop.errors.codeResendLimit\",\n defaultMessage: \"Maximum number of re-tries has been reached.\",\n });\n const maxRetriesPerCodeMessage = intl.formatHTMLMessage({\n id: \"step.smsLoop.errors.codeResendLimit\",\n defaultMessage: \"Maximum number of re-tries has been reached.\",\n });\n const errorResendingSMSMessage = intl.formatHTMLMessage({\n id: \"step.smsLoop.errors.resend\",\n defaultMessage: \"Error sending the SMS message\",\n });\n\n React.useEffect(() => {\n if (isAttemptLimitExceeded) {\n setStepResultMessage(maxRetriesPerCodeMessage);\n }\n }, []);\n\n if (\n getSafe(() => verificationResponse.errorIds.length) &&\n !verificationService.fieldValidationErrors.smsCode\n ) {\n verificationService.updateFieldValidationErrors({\n ...verificationService.fieldValidationErrors,\n smsCode: verificationResponse.errorIds[0],\n });\n }\n\n const updateSmsCode = (value) => {\n const nextState: SMSLoopViewModel = produce(viewModel, (draft: SMSLoopViewModel) => {\n draft.smsCode = value;\n draft.phoneNumber = previousViewModel && previousViewModel.phoneNumber;\n });\n verificationService.updateViewModel(nextState);\n };\n\n const submitForm = () => {\n logger.info(\"StepSMSLoop submitting form\");\n verificationService.submitStep(\n VerificationStepsEnum.smsLoop,\n viewModel,\n verificationService.verificationResponse,\n );\n };\n\n const resendSmsCode = async (verificationId) => {\n const response = await VerificationApiClient.getResendNewSmsCode(verificationId);\n if (response) {\n setAttemptLimitExceeded(false);\n setStepResultMessage(response.status === 204 ? stepSuccessMessage : maxTotalRetriesMessage);\n } else {\n setStepResultMessage(errorResendingSMSMessage);\n }\n };\n\n return (\n <div id=\"sid-step-sms-loop\" className=\"sid-sms-loop-container sid-l-container\">\n <AnnouncingHeader align=\"center\">\n <FormattedHTMLMessage\n id=\"step.smsLoop.verificationCode\"\n defaultMessage=\"Verification Code\"\n tagName=\"h1\"\n />\n </AnnouncingHeader>\n\n <div className=\"sid-header__subtitle\">\n {getSafe(() => previousViewModel.phoneNumber) ? (\n <FormattedHTMLMessage\n id=\"step.smsLoop.titleWithNumber\"\n defaultMessage=\"We've sent an SMS message to the mobile number ending in {number}. Enter your code here.\"\n values={{\n number: getSafe(() => previousViewModel.phoneNumber.slice(-4), \"\"),\n }}\n />\n ) : (\n <FormattedHTMLMessage\n id=\"step.smsLoop.titleWithoutNumber\"\n defaultMessage=\"We've sent an SMS to your mobile number. Please enter the code here.\"\n />\n )}\n </div>\n\n <div className=\"sid-sms-code-id-wrapper sid-l-horz-center\">\n <SMSCodeComponent\n onChange={updateSmsCode}\n value={viewModel.smsCode}\n isErrored={isErrored}\n errorId={verificationService.fieldValidationErrors.smsCode}\n />\n </div>\n\n {stepResultMessage && (\n <div>\n <p>{stepResultMessage}</p>\n </div>\n )}\n\n <div className=\"sid-submit sid-sms-loop-submit sid-l-space-top-md sid-l-horz-center\">\n <button\n id=\"sid-submit-sms-code\"\n onClick={submitForm}\n type=\"button\"\n className=\"sid-btn sid-sms-loop-submit-btn sid-btn--dark sid-submit__continue\"\n aria-label=\"submit\"\n disabled={\n !!(!viewModel.smsCode || viewModel.smsCode.length <= 0 || isAttemptLimitExceeded)\n }\n >\n <FormattedHTMLMessage id=\"step.smsLoop.submitButton\" defaultMessage=\"Submit\" />\n </button>\n\n <div className=\"sid-l-space-left-sm\">&nbsp;</div>\n\n <button\n id=\"sid-resend-sms-code\"\n onClick={() => resendSmsCode(verificationResponse.verificationId)}\n type=\"submit\"\n className=\"sid-btn sid-resend-sms-code-btn sid-btn--light sid-submit__cancel\"\n aria-label=\"re-send\"\n >\n <FormattedHTMLMessage id=\"step.smsLoop.resendButton\" defaultMessage=\"Re-send\" />\n </button>\n </div>\n\n <div className=\"sid-incorrect-number sid-l-horz-center\">\n <FormattedHTMLMessage\n id=\"step.smsLoop.incorrectNumber.incorrectNumber1\"\n defaultMessage=\"Incorrect number? Click\"\n />\n &nbsp;\n <button\n type=\"button\"\n onClick={() => window.location.reload()}\n className=\"sid-incorrect-number__refresh-link sid-h-btn-link-like\"\n >\n <FormattedHTMLMessage\n id=\"step.smsLoop.incorrectNumber.incorrectNumber2\"\n defaultMessage=\"here\"\n />\n &nbsp;\n </button>\n <FormattedHTMLMessage id=\"companyName\" defaultMessage=\"{Company}\">\n {(companyName) => (\n <FormattedHTMLMessage\n id=\"step.smsLoop.incorrectNumber.incorrectNumber3\"\n defaultMessage=\"to return to {companyName}\"\n values={{ companyName }}\n />\n )}\n </FormattedHTMLMessage>\n </div>\n </div>\n );\n};\n\nexport const StepSMSLoopComponent = injectIntl(StepSMSLoop);\n"],"names":["StepSMSLoop","intl","verificationService","viewModel","verificationResponse","isErrored","previousViewModel","stepResultMessage","setStepResultMessage","React","isAttemptLimitExceeded","setAttemptLimitExceeded","stepSuccessMessage","maxTotalRetriesMessage","maxRetriesPerCodeMessage","errorResendingSMSMessage","getSafe","updateSmsCode","value","nextState","produce","draft","submitForm","logger","VerificationStepsEnum","resendSmsCode","verificationId","response","VerificationApiClient","jsxs","jsx","AnnouncingHeader","FormattedHTMLMessage","SMSCodeComponent","companyName","StepSMSLoopComponent","injectIntl"],"mappings":";;;AAwBA,MAAMA,IAAc,CAAC,EAAE,MAAAC,GAAM,qBAAAC,QAA4C;AACvE,QAAMC,IAAYD,EAAoB,WAChCE,IAAuBF,EAAoB,sBAC3CG,IAAY,EAAQH,EAAoB,sBAAsB,SAC9DI,IACHJ,EAAoB,qBAAsD,QAEvE,CAACK,GAAmBC,CAAoB,IAAIC,EAAM,SAAS,EAAE,GAC7D,CAACC,GAAwBC,CAAuB,IAAIF,EAAM;AAAA,IAC9DL,EAAqB,Y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,CAAA;AAAA,IAAA,EACF,CAAA;AAAA,EAAA,GACF;AAEJ,GAEaC,IAAuBC,EAAWpC,CAAW;"}
1
+ {"version":3,"file":"index-BtM1XPhl.js","sources":["../../src/components/StepSMSLoop/StepSMSLoopComponent.tsx"],"sourcesContent":["import React from \"react\";\nimport { injectIntl, FormattedHTMLMessage, InjectedIntl } from \"react-intl\";\nimport { produce } from \"immer\";\n\nimport { logger } from \"../../lib/utils/logger/logger\";\nimport {\n VerificationService,\n StudentPersonalInfoViewModel,\n SMSLoopResponse,\n SMSLoopViewModel,\n} from \"../../lib/types/types\";\nimport { VerificationStepsEnum } from \"../../lib/types/runtimeTypes\";\nimport { getSafe } from \"../../lib/utils/getSafe\";\n\nimport { SMSCodeComponent } from \"../FormFields/SMSCode/SMSCodeComponent\";\n\nimport { VerificationApiClient } from \"../../lib/ServerApi/VerificationApiClient\";\nimport { AnnouncingHeader } from \"../AnnouncingHeader/AnnouncingHeader\";\n\ninterface StepSMSLoopProps {\n intl: InjectedIntl;\n verificationService: VerificationService;\n}\n\nconst StepSMSLoop = ({ intl, verificationService }: StepSMSLoopProps) => {\n const viewModel = verificationService.viewModel as SMSLoopViewModel;\n const verificationResponse = verificationService.verificationResponse as SMSLoopResponse;\n const isErrored = Boolean(verificationService.fieldValidationErrors.smsCode);\n const previousViewModel =\n (verificationService.previousViewModel as StudentPersonalInfoViewModel) || undefined;\n\n const [stepResultMessage, setStepResultMessage] = React.useState(\"\");\n const [isAttemptLimitExceeded, setAttemptLimitExceeded] = React.useState(\n verificationResponse.errorIds &&\n verificationResponse.errorIds.includes(\"incorrectSMSCodeAttemptLimitExceeded\"),\n );\n\n const stepSuccessMessage = intl.formatHTMLMessage({\n id: \"step.smsLoop.successResend\",\n defaultMessage: \"SMS message re-sent successfully\",\n });\n const maxTotalRetriesMessage = intl.formatHTMLMessage({\n id: \"step.smsLoop.errors.codeResendLimit\",\n defaultMessage: \"Maximum number of re-tries has been reached.\",\n });\n const maxRetriesPerCodeMessage = intl.formatHTMLMessage({\n id: \"step.smsLoop.errors.codeResendLimit\",\n defaultMessage: \"Maximum number of re-tries has been reached.\",\n });\n const errorResendingSMSMessage = intl.formatHTMLMessage({\n id: \"step.smsLoop.errors.resend\",\n defaultMessage: \"Error sending the SMS message\",\n });\n\n React.useEffect(() => {\n if (isAttemptLimitExceeded) {\n setStepResultMessage(maxRetriesPerCodeMessage);\n }\n }, []);\n\n if (\n getSafe(() => verificationResponse.errorIds.length) &&\n !verificationService.fieldValidationErrors.smsCode\n ) {\n verificationService.updateFieldValidationErrors({\n ...verificationService.fieldValidationErrors,\n smsCode: verificationResponse.errorIds[0],\n });\n }\n\n const updateSmsCode = (value) => {\n const nextState: SMSLoopViewModel = produce(viewModel, (draft: SMSLoopViewModel) => {\n draft.smsCode = value;\n draft.phoneNumber = previousViewModel && previousViewModel.phoneNumber;\n });\n verificationService.updateViewModel(nextState);\n };\n\n const submitForm = () => {\n logger.info(\"StepSMSLoop submitting form\");\n verificationService.submitStep(\n VerificationStepsEnum.smsLoop,\n viewModel,\n verificationService.verificationResponse,\n );\n };\n\n const resendSmsCode = async (verificationId) => {\n const response = await VerificationApiClient.getResendNewSmsCode(verificationId);\n if (response) {\n setAttemptLimitExceeded(false);\n setStepResultMessage(response.status === 204 ? stepSuccessMessage : maxTotalRetriesMessage);\n } else {\n setStepResultMessage(errorResendingSMSMessage);\n }\n };\n\n return (\n <div id=\"sid-step-sms-loop\" className=\"sid-sms-loop-container sid-l-container\">\n <AnnouncingHeader align=\"center\">\n <FormattedHTMLMessage\n id=\"step.smsLoop.verificationCode\"\n defaultMessage=\"Verification Code\"\n tagName=\"h1\"\n />\n </AnnouncingHeader>\n\n <div className=\"sid-header__subtitle\">\n {getSafe(() => previousViewModel.phoneNumber) ? (\n <FormattedHTMLMessage\n id=\"step.smsLoop.titleWithNumber\"\n defaultMessage=\"We've sent an SMS message to the mobile number ending in {number}. Enter your code here.\"\n values={{\n number: getSafe(() => previousViewModel.phoneNumber.slice(-4), \"\"),\n }}\n />\n ) : (\n <FormattedHTMLMessage\n id=\"step.smsLoop.titleWithoutNumber\"\n defaultMessage=\"We've sent an SMS to your mobile number. Please enter the code here.\"\n />\n )}\n </div>\n\n <div className=\"sid-sms-code-id-wrapper sid-l-horz-center\">\n <SMSCodeComponent\n onChange={updateSmsCode}\n value={viewModel.smsCode}\n isErrored={isErrored}\n errorId={verificationService.fieldValidationErrors.smsCode}\n />\n </div>\n\n {stepResultMessage && (\n <div>\n <p>{stepResultMessage}</p>\n </div>\n )}\n\n <div className=\"sid-submit sid-sms-loop-submit sid-l-space-top-md sid-l-horz-center\">\n <button\n id=\"sid-submit-sms-code\"\n onClick={submitForm}\n type=\"button\"\n className=\"sid-btn sid-sms-loop-submit-btn sid-btn--dark sid-submit__continue\"\n aria-label=\"submit\"\n disabled={\n !!(!viewModel.smsCode || viewModel.smsCode.length <= 0 || isAttemptLimitExceeded)\n }\n >\n <FormattedHTMLMessage id=\"step.smsLoop.submitButton\" defaultMessage=\"Submit\" />\n </button>\n\n <div className=\"sid-l-space-left-sm\">&nbsp;</div>\n\n <button\n id=\"sid-resend-sms-code\"\n onClick={() => resendSmsCode(verificationResponse.verificationId)}\n type=\"submit\"\n className=\"sid-btn sid-resend-sms-code-btn sid-btn--light sid-submit__cancel\"\n aria-label=\"re-send\"\n >\n <FormattedHTMLMessage id=\"step.smsLoop.resendButton\" defaultMessage=\"Re-send\" />\n </button>\n </div>\n\n <div className=\"sid-incorrect-number sid-l-horz-center\">\n <FormattedHTMLMessage\n id=\"step.smsLoop.incorrectNumber.incorrectNumber1\"\n defaultMessage=\"Incorrect number? Click\"\n />\n &nbsp;\n <button\n type=\"button\"\n onClick={() => window.location.reload()}\n className=\"sid-incorrect-number__refresh-link sid-h-btn-link-like\"\n >\n <FormattedHTMLMessage\n id=\"step.smsLoop.incorrectNumber.incorrectNumber2\"\n defaultMessage=\"here\"\n />\n &nbsp;\n </button>\n <FormattedHTMLMessage id=\"companyName\" defaultMessage=\"{Company}\">\n {(companyName) => (\n <FormattedHTMLMessage\n id=\"step.smsLoop.incorrectNumber.incorrectNumber3\"\n defaultMessage=\"to return to {companyName}\"\n values={{ companyName }}\n />\n )}\n </FormattedHTMLMessage>\n </div>\n </div>\n );\n};\n\nexport const StepSMSLoopComponent = injectIntl(StepSMSLoop);\n"],"names":["StepSMSLoop","intl","verificationService","viewModel","verificationResponse","isErrored","previousViewModel","stepResultMessage","setStepResultMessage","React","isAttemptLimitExceeded","setAttemptLimitExceeded","stepSuccessMessage","maxTotalRetriesMessage","maxRetriesPerCodeMessage","errorResendingSMSMessage","getSafe","updateSmsCode","value","nextState","produce","draft","submitForm","logger","VerificationStepsEnum","resendSmsCode","verificationId","response","VerificationApiClient","jsxs","jsx","AnnouncingHeader","FormattedHTMLMessage","SMSCodeComponent","companyName","StepSMSLoopComponent","injectIntl"],"mappings":";;;AAwBA,MAAMA,IAAc,CAAC,EAAE,MAAAC,GAAM,qBAAAC,QAA4C;AACvE,QAAMC,IAAYD,EAAoB,WAChCE,IAAuBF,EAAoB,sBAC3CG,IAAY,EAAQH,EAAoB,sBAAsB,SAC9DI,IACHJ,EAAoB,qBAAsD,QAEvE,CAACK,GAAmBC,CAAoB,IAAIC,EAAM,SAAS,EAAE,GAC7D,CAACC,GAAwBC,CAAuB,IAAIF,EAAM;AAAA,IAC9DL,EAAqB,YACnBA,EAAqB,SAAS,SAAS,sCAAsC;AAAA,EACjF,GAEMQ,IAAqBX,EAAK,kBAAkB;AAAA,IAChD,IAAI;AAAA,IACJ,gBAAgB;AAAA,EAAA,CACjB,GACKY,IAAyBZ,EAAK,kBAAkB;AAAA,IACpD,IAAI;AAAA,IACJ,gBAAgB;AAAA,EAAA,CACjB,GACKa,IAA2Bb,EAAK,kBAAkB;AAAA,IACtD,IAAI;AAAA,IACJ,gBAAgB;AAAA,EAAA,CACjB,GACKc,IAA2Bd,EAAK,kBAAkB;AAAA,IACtD,IAAI;AAAA,IACJ,gBAAgB;AAAA,EAAA,CACjB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V,cAAW;AAAA,UAEX,UAAC0B,gBAAAA,EAAA,IAAAE,GAAA,EAAqB,IAAG,6BAA4B,gBAAe,UAAU,CAAA;AAAA,QAAA;AAAA,MAAA;AAAA,IAChF,GACF;AAAA,IAEAH,gBAAAA,EAAAA,KAAC,OAAI,EAAA,WAAU,0CACb,UAAA;AAAA,MAAAC,gBAAAA,EAAA;AAAA,QAACE;AAAA,QAAA;AAAA,UACC,IAAG;AAAA,UACH,gBAAe;AAAA,QAAA;AAAA,MACjB;AAAA,MAAE;AAAA,MAEFH,gBAAAA,EAAA;AAAA,QAAC;AAAA,QAAA;AAAA,UACC,MAAK;AAAA,UACL,SAAS,MAAM,OAAO,SAAS,OAAO;AAAA,UACtC,WAAU;AAAA,UAEV,UAAA;AAAA,YAAAC,gBAAAA,EAAA;AAAA,cAACE;AAAA,cAAA;AAAA,gBACC,IAAG;AAAA,gBACH,gBAAe;AAAA,cAAA;AAAA,YACjB;AAAA,YAAE;AAAA,UAAA;AAAA,QAAA;AAAA,MAEJ;AAAA,4BACCA,GAAqB,EAAA,IAAG,eAAc,gBAAe,aACnD,WAACE,MACAJ,gBAAAA,EAAA;AAAA,QAACE;AAAA,QAAA;AAAA,UACC,IAAG;AAAA,UACH,gBAAe;AAAA,UACf,QAAQ,EAAE,aAAAE,EAAY;AAAA,QAAA;AAAA,MAAA,EAG5B,CAAA;AAAA,IAAA,EACF,CAAA;AAAA,EAAA,GACF;AAEJ,GAEaC,IAAuBC,EAAWpC,CAAW;"}
@@ -0,0 +1,167 @@
1
+
2
+ /**
3
+ * VERSION: 2.115.0-alpha.3
4
+ * BUILD_TIMESTAMP: 1751931390816
5
+ * BUILD_DATE: Mon Jul 07 2025 23:36:30 GMT+0000 (Coordinated Universal Time)
6
+ * BUILD_COMMIT: 9b953bf464bb46df40df3f4b766e06f47b82b5aa
7
+ */
8
+ import { x as c, V as d, j as s, r as u, A as g, a5 as x, p as b, u as h, l as j, q as f } from "./es6-C2abemUD.js";
9
+ import { FormattedHTMLMessage as a, injectIntl as E } from "react-intl";
10
+ import L from "react";
11
+ import { EmailLoopPendingComponent as N } from "./EmailLoopPending-CRs0n7WO.js";
12
+ const y = ({
13
+ verificationService: e
14
+ }) => {
15
+ var t;
16
+ const l = e.viewModel, { fieldValidationErrors: o } = e, n = (((t = e.verificationResponse) == null ? void 0 : t.errorIds) || []).includes(
17
+ "invalidEmail"
18
+ ), m = (i) => {
19
+ e.updateViewModel({ ...l, organizationEmail: i }), h(
20
+ "organizationEmail",
21
+ i,
22
+ e
23
+ );
24
+ }, r = async () => {
25
+ j.info("StepEmailLoopComponent submitting form after skipping email loop");
26
+ const i = f(l, () => {
27
+ });
28
+ return e.submitStep(
29
+ d.cancelEmailLoop,
30
+ i,
31
+ e.verificationResponse
32
+ );
33
+ }, p = L.useCallback(
34
+ (i) => {
35
+ i.preventDefault(), c(
36
+ l,
37
+ e,
38
+ d.emailLoopCollectOrganizationEmail
39
+ );
40
+ },
41
+ [l, e]
42
+ );
43
+ return /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
44
+ /* @__PURE__ */ s.jsxs("div", { className: "sid-header sid-l-horz-center", children: [
45
+ /* @__PURE__ */ s.jsxs("div", { role: "main", children: [
46
+ /* @__PURE__ */ s.jsx("div", { className: "sid-sso-logo-container sid-l-horz-center", children: /* @__PURE__ */ s.jsx(
47
+ u,
48
+ {
49
+ verificationService: e,
50
+ fallbackLogo: /* @__PURE__ */ s.jsx(
51
+ "img",
52
+ {
53
+ className: "sid-sso-logo-default sid-l-lead-image",
54
+ alt: "",
55
+ src: "https://assets-resources.sheerid.com/common/images/2018/icons/doc-pending.svg"
56
+ }
57
+ )
58
+ }
59
+ ) }),
60
+ /* @__PURE__ */ s.jsx("div", { className: "sid-preheader-label sid-l-space-top-md", children: /* @__PURE__ */ s.jsx("span", { className: "sid-h-label", children: /* @__PURE__ */ s.jsx(a, { id: "instant", defaultMessage: "Instant" }) }) }),
61
+ /* @__PURE__ */ s.jsx(g, { align: "center", children: /* @__PURE__ */ s.jsx(
62
+ a,
63
+ {
64
+ id: "step.emailLoop.collectOrganizationEmail.title",
65
+ defaultMessage: "Verify using your work email address",
66
+ tagName: "h1"
67
+ }
68
+ ) }),
69
+ /* @__PURE__ */ s.jsx("div", { className: "sid-header__subtitle-one", children: /* @__PURE__ */ s.jsx(
70
+ a,
71
+ {
72
+ id: "step.emailLoop.collectOrganizationEmail.subtitle",
73
+ defaultMessage: "Enter the email address provided by your employer and we'll send you a verification link"
74
+ }
75
+ ) })
76
+ ] }),
77
+ /* @__PURE__ */ s.jsxs(
78
+ "form",
79
+ {
80
+ onSubmit: p,
81
+ className: "sid-form-region sid-email-submit sid-submit-wrapper sid-l-space-top-md",
82
+ children: [
83
+ /* @__PURE__ */ s.jsx(
84
+ x,
85
+ {
86
+ fieldId: "emailOverride",
87
+ value: l.organizationEmail,
88
+ onChange: m,
89
+ placeholder: "",
90
+ label: /* @__PURE__ */ s.jsx(
91
+ a,
92
+ {
93
+ id: "step.emailLoop.collectOrganizationEmail.email.label",
94
+ defaultMessage: "Work email address"
95
+ }
96
+ ),
97
+ errorMessage: n && /* @__PURE__ */ s.jsx(
98
+ a,
99
+ {
100
+ id: "step.emailLoop.errors.invalidEmail",
101
+ defaultMessage: "This email address is not valid for instant verification. Please use an email address provided by your employer or upload documentation below."
102
+ }
103
+ ) || o.organizationEmail && /* @__PURE__ */ s.jsx(a, { id: "emailIds.invalidEmail", defaultMessage: "Invalid email" })
104
+ }
105
+ ),
106
+ /* @__PURE__ */ s.jsx("div", { className: "sid-l-space-top-sm", children: /* @__PURE__ */ s.jsx(
107
+ "button",
108
+ {
109
+ id: "sid-submit-btn-sso",
110
+ type: "submit",
111
+ disabled: !!o.organizationEmail,
112
+ className: "sid-btn sid-sso-submit-btn sid-btn--dark sid-l-full-width ",
113
+ "aria-label": "submit",
114
+ children: /* @__PURE__ */ s.jsx(
115
+ a,
116
+ {
117
+ id: "step.emailLoop.collectOrganizationEmail.email.send",
118
+ defaultMessage: "Send Email"
119
+ }
120
+ )
121
+ }
122
+ ) }),
123
+ /* @__PURE__ */ s.jsxs("div", { className: "sid-form-region sid-l-space-top-lg sid-l-horz-center", children: [
124
+ /* @__PURE__ */ s.jsx("div", { className: "sid-header__subtitle-two sid-h-bold-text", children: /* @__PURE__ */ s.jsx(
125
+ a,
126
+ {
127
+ id: "step.emailLoop.collectOrganizationEmail.alternative",
128
+ defaultMessage: "Unable to access a work email address?"
129
+ }
130
+ ) }),
131
+ /* @__PURE__ */ s.jsx("div", { className: "sid-form-region sid-l-space-btm-sm sid-l-space-top-sm", children: /* @__PURE__ */ s.jsx(
132
+ a,
133
+ {
134
+ id: "step.sso.alternative",
135
+ defaultMessage: "You can also verify by uploading proof of eligibility"
136
+ }
137
+ ) }),
138
+ /* @__PURE__ */ s.jsx("div", { className: "sid-l-space-top-sm", children: /* @__PURE__ */ s.jsx(
139
+ "button",
140
+ {
141
+ onClick: r,
142
+ className: "sid-h-btn-link-like sid-link sid-h-bold-text",
143
+ type: "button",
144
+ children: /* @__PURE__ */ s.jsx(
145
+ a,
146
+ {
147
+ id: "step.sso.cancel",
148
+ defaultMessage: "Upload Proof of Enrollment"
149
+ }
150
+ )
151
+ }
152
+ ) })
153
+ ] }),
154
+ /* @__PURE__ */ s.jsx("div", { className: "sid-l-space-top-lg" })
155
+ ]
156
+ }
157
+ )
158
+ ] }),
159
+ /* @__PURE__ */ s.jsx(b, { verificationService: e })
160
+ ] });
161
+ }, M = ({ verificationService: e }) => {
162
+ const l = e.verificationResponse.currentState === "collectOrganizationEmail";
163
+ return /* @__PURE__ */ s.jsx("div", { id: "sid-step-email-loop", className: "sid-step-email-loop-container sid-l-container", children: l ? /* @__PURE__ */ s.jsx(y, { verificationService: e }) : /* @__PURE__ */ s.jsx(N, { verificationService: e }) });
164
+ }, v = E(M);
165
+ export {
166
+ v as default
167
+ };