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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (273) hide show
  1. package/_mysheerid-preview.css +3 -3
  2. package/_mysheerid-preview.js +31 -31
  3. package/chunk/EmailLoopPending-Dtf0p85F.js +3 -3
  4. package/chunk/EmailLoopPending-Dy8mLFvV.js +3 -3
  5. package/chunk/LicensedProfessionalOrganizationComponent-BYijEfDT.js +3 -3
  6. package/chunk/LicensedProfessionalOrganizationComponent-CiYU-2dW.js +3 -3
  7. package/chunk/Onfido-AyvUk6wg.js +3 -3
  8. package/chunk/{StepIDCheckLoopOnfido-DPftaR9s.js → StepIDCheckLoopOnfido--3Fw5dMg.js} +4 -4
  9. package/chunk/{StepIDCheckLoopOnfido-DPftaR9s.js.map → StepIDCheckLoopOnfido--3Fw5dMg.js.map} +1 -1
  10. package/chunk/{StepIDCheckLoopOnfido-wrbezEdo.js → StepIDCheckLoopOnfido-CeiLgm_c.js} +4 -4
  11. package/chunk/{StepIDCheckLoopOnfido-wrbezEdo.js.map → StepIDCheckLoopOnfido-CeiLgm_c.js.map} +1 -1
  12. package/chunk/{StepIDCheckLoopRegula-CoJkGsDn.js → StepIDCheckLoopRegula-BFSb544w.js} +5 -5
  13. package/chunk/{StepIDCheckLoopRegula-5mxsRVU3.js.map → StepIDCheckLoopRegula-BFSb544w.js.map} +1 -1
  14. package/chunk/{StepIDCheckLoopRegula-5mxsRVU3.js → StepIDCheckLoopRegula-DDR_mxSn.js} +5 -5
  15. package/chunk/{StepIDCheckLoopRegula-CoJkGsDn.js.map → StepIDCheckLoopRegula-DDR_mxSn.js.map} +1 -1
  16. package/chunk/{StepInactiveMilitaryPersonalInfoComponent-CTCfr5Y8.js → StepInactiveMilitaryPersonalInfoComponent-Dhm9dCs2.js} +15 -15
  17. package/chunk/{StepInactiveMilitaryPersonalInfoComponent-D4veFRlW.js.map → StepInactiveMilitaryPersonalInfoComponent-Dhm9dCs2.js.map} +1 -1
  18. package/chunk/{StepInactiveMilitaryPersonalInfoComponent-D4veFRlW.js → StepInactiveMilitaryPersonalInfoComponent-_NISUzZF.js} +15 -15
  19. package/chunk/{StepInactiveMilitaryPersonalInfoComponent-CTCfr5Y8.js.map → StepInactiveMilitaryPersonalInfoComponent-_NISUzZF.js.map} +1 -1
  20. package/chunk/ar-BZsYQiJv.js +3 -3
  21. package/chunk/bg-DB_ZEB5O.js +3 -3
  22. package/chunk/bn-IN-D69rNeuh.js +3 -3
  23. package/chunk/cs-Dk4czWE5.js +3 -3
  24. package/chunk/da-NesYkkEW.js +3 -3
  25. package/chunk/de-4yAGb-JC.js +3 -3
  26. package/chunk/el-D1h3O3E7.js +3 -3
  27. package/chunk/en-GB-QY9gqmlz.js +3 -3
  28. package/chunk/es-BYhP2rUk.js +3 -3
  29. package/chunk/es-ES-BJLdehwH.js +3 -3
  30. package/chunk/fi-D-Ycqh7I.js +3 -3
  31. package/chunk/fr-CA-a8W9ZT_A.js +3 -3
  32. package/chunk/fr-DR25pnXw.js +3 -3
  33. package/chunk/ga-Bj6efXd2.js +3 -3
  34. package/chunk/hi-IN-C-u9_T8L.js +3 -3
  35. package/chunk/hr-B8E9jyUX.js +3 -3
  36. package/chunk/hu-C7z4yBSK.js +3 -3
  37. package/chunk/id-AsEkOlRu.js +3 -3
  38. package/chunk/{index-YSVzGeq_.js → index-3wRIidxQ.js} +17 -17
  39. package/chunk/{index-DvQoVn8P.js.map → index-3wRIidxQ.js.map} +1 -1
  40. package/chunk/{index-DFKdt9N2.js → index-4zf9jvK6.js} +9 -9
  41. package/chunk/{index-DFKdt9N2.js.map → index-4zf9jvK6.js.map} +1 -1
  42. package/chunk/{index-h1dR7dZA.js → index-8gjxKx0J.js} +5 -5
  43. package/chunk/{index-BrulkRve.js.map → index-8gjxKx0J.js.map} +1 -1
  44. package/chunk/index-B8KPM--K.js +3 -3
  45. package/chunk/index-BD2bjH-C.js +3 -3
  46. package/chunk/index-BD_a0MZT.js +3 -3
  47. package/chunk/{index-Cp0trvsP.js → index-BFMzh8b3.js} +34 -31
  48. package/chunk/index-BFMzh8b3.js.map +1 -0
  49. package/chunk/{index-_t8SsXjy.js → index-BSmAslR-.js} +11 -11
  50. package/chunk/{index-_t8SsXjy.js.map → index-BSmAslR-.js.map} +1 -1
  51. package/chunk/{index-DvQoVn8P.js → index-BYGkr72X.js} +17 -17
  52. package/chunk/{index-YSVzGeq_.js.map → index-BYGkr72X.js.map} +1 -1
  53. package/chunk/{index-C8MQD8EK.js → index-Bemwq78a.js} +8 -8
  54. package/chunk/{index-4APUDd8S.js.map → index-Bemwq78a.js.map} +1 -1
  55. package/chunk/{index-DDOySTBb.js → index-BgAd7a0x.js} +15 -15
  56. package/chunk/{index-BElPqx0Q.js.map → index-BgAd7a0x.js.map} +1 -1
  57. package/chunk/index-BpZoH-Wz.js +3 -3
  58. package/chunk/{index-CsPUjZ8r.js → index-ByBO6KNx.js} +34 -35
  59. package/chunk/{index-CsPUjZ8r.js.map → index-ByBO6KNx.js.map} +1 -1
  60. package/chunk/{index-4APUDd8S.js → index-C-YPXV3H.js} +8 -8
  61. package/chunk/{index-C8MQD8EK.js.map → index-C-YPXV3H.js.map} +1 -1
  62. package/chunk/{index-B0RXjf3X.js → index-C29suvHQ.js} +34 -31
  63. package/chunk/index-C29suvHQ.js.map +1 -0
  64. package/chunk/index-C2h0Wj84.js +3 -3
  65. package/chunk/{index-C96ntS0u.js → index-C9UAjull.js} +11 -11
  66. package/chunk/{index-Bmq6cJ3F.js.map → index-C9UAjull.js.map} +1 -1
  67. package/chunk/index-CcRowarb.js +3 -3
  68. package/chunk/index-CeHu2Npu.js +3 -3
  69. package/chunk/{index-Bmq6cJ3F.js → index-DEKYtYJV.js} +11 -11
  70. package/chunk/{index-C96ntS0u.js.map → index-DEKYtYJV.js.map} +1 -1
  71. package/chunk/{index-Dg8t7-dm.js → index-DHrneLz9.js} +14 -14
  72. package/chunk/{index-B8F8N-JM.js.map → index-DHrneLz9.js.map} +1 -1
  73. package/chunk/index-DIkWpujR.js +3 -3
  74. package/chunk/index-DRmBhdAn.js +3 -3
  75. package/chunk/{index-BElPqx0Q.js → index-DUXQFubY.js} +15 -15
  76. package/chunk/{index-DDOySTBb.js.map → index-DUXQFubY.js.map} +1 -1
  77. package/chunk/index-DVynViqA.js +3 -3
  78. package/chunk/{index-DhGg9lvf.js → index-Dg6e8PFO.js} +12 -12
  79. package/chunk/{index-BDrKYann.js.map → index-Dg6e8PFO.js.map} +1 -1
  80. package/chunk/{index-brVWUjHi.js → index-DgXh3iXb.js} +9 -9
  81. package/chunk/{index-brVWUjHi.js.map → index-DgXh3iXb.js.map} +1 -1
  82. package/chunk/{index-BuX76GyE.js → index-Dw4HZdl4.js} +8 -8
  83. package/chunk/{index-DO5Z3e-E.js.map → index-Dw4HZdl4.js.map} +1 -1
  84. package/chunk/{index-BDrKYann.js → index-DypbXiPM.js} +12 -12
  85. package/chunk/{index-DhGg9lvf.js.map → index-DypbXiPM.js.map} +1 -1
  86. package/chunk/{index-DsgCNIS5.js → index-FfsFdWXt.js} +9 -9
  87. package/chunk/{index-D_9J6arc.js.map → index-FfsFdWXt.js.map} +1 -1
  88. package/chunk/{index-C-G05eCw.js → index-TysYb0wj.js} +4 -4
  89. package/chunk/{index-C-G05eCw.js.map → index-TysYb0wj.js.map} +1 -1
  90. package/chunk/{index-DP5XPjKi.js → index-VrTXSLSj.js} +34 -35
  91. package/chunk/{index-DP5XPjKi.js.map → index-VrTXSLSj.js.map} +1 -1
  92. package/chunk/index-VxNSWlHu.js +3 -3
  93. package/chunk/{index-B8F8N-JM.js → index-Z410glzc.js} +14 -14
  94. package/chunk/{index-Dg8t7-dm.js.map → index-Z410glzc.js.map} +1 -1
  95. package/chunk/{index-BrulkRve.js → index-aRiqFbd1.js} +5 -5
  96. package/chunk/{index-h1dR7dZA.js.map → index-aRiqFbd1.js.map} +1 -1
  97. package/chunk/{index-D4Nea32j.js → index-eDr5_bvN.js} +4 -4
  98. package/chunk/{index-D4Nea32j.js.map → index-eDr5_bvN.js.map} +1 -1
  99. package/chunk/{index-D_9J6arc.js → index-f8an5bUm.js} +9 -9
  100. package/chunk/{index-DsgCNIS5.js.map → index-f8an5bUm.js.map} +1 -1
  101. package/chunk/{index-DO5Z3e-E.js → index-m9Gpah9q.js} +8 -8
  102. package/chunk/{index-BuX76GyE.js.map → index-m9Gpah9q.js.map} +1 -1
  103. package/chunk/{index-BTMETMEE.js → index-qj9OiaWM.js} +11 -11
  104. package/chunk/{index-BTMETMEE.js.map → index-qj9OiaWM.js.map} +1 -1
  105. package/chunk/is-PzizLXcv.js +3 -3
  106. package/chunk/it-CiJeQN1_.js +3 -3
  107. package/chunk/iw-QHmqNHZP.js +3 -3
  108. package/chunk/ja-DPgVvasb.js +3 -3
  109. package/chunk/ko-DykOu1Yp.js +3 -3
  110. package/chunk/lo-C4bFrJOj.js +3 -3
  111. package/chunk/lt-KjZ7oOV5.js +3 -3
  112. package/chunk/ms-CNvzXjsH.js +3 -3
  113. package/chunk/nl-BE-BXbsNtu2.js +3 -3
  114. package/chunk/nl-ucuj2G5l.js +3 -3
  115. package/chunk/no-D8IuXJ7O.js +3 -3
  116. package/chunk/pl-DvnUkXGb.js +3 -3
  117. package/chunk/pt-BR-Be00Hx-L.js +3 -3
  118. package/chunk/pt-DS7isrlt.js +3 -3
  119. package/chunk/ro-BHCICvJV.js +3 -3
  120. package/chunk/ru-DUDtL41i.js +3 -3
  121. package/chunk/sk-O9yqW58Q.js +3 -3
  122. package/chunk/sl-CxcvfiDu.js +3 -3
  123. package/chunk/sr-DgvzAvVS.js +3 -3
  124. package/chunk/sv-BtktR0mm.js +3 -3
  125. package/chunk/sw-D06YJhji.js +3 -3
  126. package/chunk/th-C1KZhtMd.js +3 -3
  127. package/chunk/tr-CqpbTukW.js +3 -3
  128. package/chunk/uk-BWHH_jN1.js +3 -3
  129. package/chunk/ur-BHWni4Fn.js +3 -3
  130. package/chunk/useCollectFieldsEndpoint-C5fsaYJe.js +3 -3
  131. package/chunk/useCollectFieldsEndpoint-kmLFyUA-.js +3 -3
  132. package/chunk/useEmailFirstExperiment-BbDrKQEs.js +3 -3
  133. package/chunk/useEmailFirstExperiment-CgU-itQI.js +3 -3
  134. package/chunk/vi-DVhQHKtP.js +3 -3
  135. package/chunk/zh-HK-C-wTSVhL.js +3 -3
  136. package/chunk/zh-qa3hzwEB.js +3 -3
  137. package/chunk/zu-DwVIy-bC.js +3 -3
  138. package/es6.css +3 -3
  139. package/jslib.js +4 -4
  140. package/lib/{EmailLoopPending-1RfnE4mt.js → EmailLoopPending-CRs0n7WO.js} +4 -4
  141. package/lib/{EmailLoopPending-1RfnE4mt.js.map → EmailLoopPending-CRs0n7WO.js.map} +1 -1
  142. package/lib/{LicensedProfessionalOrganizationComponent-1EOmC_XF.js → LicensedProfessionalOrganizationComponent-DpimxCKC.js} +4 -4
  143. package/lib/{LicensedProfessionalOrganizationComponent-1EOmC_XF.js.map → LicensedProfessionalOrganizationComponent-DpimxCKC.js.map} +1 -1
  144. package/lib/Onfido-AyvUk6wg.js +3 -3
  145. package/lib/StepCollectMilitaryStatusComponent-DjIRHg05.js +11 -0
  146. package/lib/{StepCollectMilitaryStatusComponent-BQkj7ZoB.js.map → StepCollectMilitaryStatusComponent-DjIRHg05.js.map} +1 -1
  147. package/lib/{StepIDCheckLoopOnfido-B3HvjOZj.js → StepIDCheckLoopOnfido-DNOdBaAR.js} +4 -4
  148. package/lib/{StepIDCheckLoopOnfido-B3HvjOZj.js.map → StepIDCheckLoopOnfido-DNOdBaAR.js.map} +1 -1
  149. package/lib/{StepIDCheckLoopRegula-DIeNhWoA.js → StepIDCheckLoopRegula-CX73icyg.js} +4 -4
  150. package/lib/{StepIDCheckLoopRegula-DIeNhWoA.js.map → StepIDCheckLoopRegula-CX73icyg.js.map} +1 -1
  151. package/lib/{StepInactiveMilitaryPersonalInfoComponent-D-xj1LVu.js → StepInactiveMilitaryPersonalInfoComponent-CeJIe91S.js} +18 -18
  152. package/lib/{StepInactiveMilitaryPersonalInfoComponent-D-xj1LVu.js.map → StepInactiveMilitaryPersonalInfoComponent-CeJIe91S.js.map} +1 -1
  153. package/lib/{VerificationApiUtils-DdSD4k-s.js → VerificationApiUtils-DCEPKSOt.js} +4 -4
  154. package/lib/{VerificationApiUtils-DdSD4k-s.js.map → VerificationApiUtils-DCEPKSOt.js.map} +1 -1
  155. package/lib/ar-BZsYQiJv.js +3 -3
  156. package/lib/bg-DB_ZEB5O.js +3 -3
  157. package/lib/bn-IN-D69rNeuh.js +3 -3
  158. package/lib/cs-Dk4czWE5.js +3 -3
  159. package/lib/da-NesYkkEW.js +3 -3
  160. package/lib/de-4yAGb-JC.js +3 -3
  161. package/lib/el-D1h3O3E7.js +3 -3
  162. package/lib/en-GB-QY9gqmlz.js +3 -3
  163. package/lib/es-BYhP2rUk.js +3 -3
  164. package/lib/es-ES-BJLdehwH.js +3 -3
  165. package/lib/{es6-DoczaIOS.js → es6-C2abemUD.js} +44 -44
  166. package/lib/{es6-DoczaIOS.js.map → es6-C2abemUD.js.map} +1 -1
  167. package/lib/fi-D-Ycqh7I.js +3 -3
  168. package/lib/fr-CA-a8W9ZT_A.js +3 -3
  169. package/lib/fr-DR25pnXw.js +3 -3
  170. package/lib/ga-Bj6efXd2.js +3 -3
  171. package/lib/hi-IN-C-u9_T8L.js +3 -3
  172. package/lib/hr-B8E9jyUX.js +3 -3
  173. package/lib/hu-C7z4yBSK.js +3 -3
  174. package/lib/id-AsEkOlRu.js +3 -3
  175. package/lib/{index-CVStpTnM.js → index--1Hzxve4.js} +6 -6
  176. package/lib/{index-CVStpTnM.js.map → index--1Hzxve4.js.map} +1 -1
  177. package/lib/{index-C94vhVR4.js → index-7L1Z0u1-.js} +4 -4
  178. package/lib/{index-C94vhVR4.js.map → index-7L1Z0u1-.js.map} +1 -1
  179. package/lib/{index-BHpxeZvo.js → index-84DA_jT2.js} +10 -10
  180. package/lib/{index-BHpxeZvo.js.map → index-84DA_jT2.js.map} +1 -1
  181. package/lib/{index-DhavY2m5.js → index-8kESiptt.js} +4 -4
  182. package/lib/{index-DhavY2m5.js.map → index-8kESiptt.js.map} +1 -1
  183. package/lib/{index-BU0lsrnW.js → index-B_BS9qnQ.js} +12 -12
  184. package/lib/{index-BU0lsrnW.js.map → index-B_BS9qnQ.js.map} +1 -1
  185. package/lib/{index-BTku6Nav.js → index-Bb5tkw_V.js} +8 -8
  186. package/lib/{index-BTku6Nav.js.map → index-Bb5tkw_V.js.map} +1 -1
  187. package/lib/index-Bm_R6wgA.js +11 -0
  188. package/lib/index-Bm_R6wgA.js.map +1 -0
  189. package/lib/{index-C28KGyFC.js → index-BtM1XPhl.js} +4 -4
  190. package/lib/{index-C28KGyFC.js.map → index-BtM1XPhl.js.map} +1 -1
  191. package/lib/{index-DdKZTMDD.js → index-BzZl5JDO.js} +36 -32
  192. package/lib/index-BzZl5JDO.js.map +1 -0
  193. package/lib/{index-CCIzkIQB.js → index-C3CtMm2Q.js} +13 -13
  194. package/lib/{index-CCIzkIQB.js.map → index-C3CtMm2Q.js.map} +1 -1
  195. package/lib/index-CNmUvsR-.js +11 -0
  196. package/lib/index-CNmUvsR-.js.map +1 -0
  197. package/lib/{index-BtwZxcpp.js → index-CS_JuJR3.js} +8 -8
  198. package/lib/{index-BtwZxcpp.js.map → index-CS_JuJR3.js.map} +1 -1
  199. package/lib/index-Cg0pahuD.js +11 -0
  200. package/lib/index-Cg0pahuD.js.map +1 -0
  201. package/lib/{index-86CuJOnE.js → index-DCCPfELa.js} +4 -4
  202. package/lib/{index-86CuJOnE.js.map → index-DCCPfELa.js.map} +1 -1
  203. package/lib/index-DIkWpujR.js +3 -3
  204. package/lib/index-DbQvQo1A.js +11 -0
  205. package/lib/index-DbQvQo1A.js.map +1 -0
  206. package/lib/{index-CY047n3D.js → index-DbaJBiSs.js} +6 -6
  207. package/lib/{index-CY047n3D.js.map → index-DbaJBiSs.js.map} +1 -1
  208. package/lib/{index-DblwzU8U.js → index-DdKeUKWu.js} +5 -5
  209. package/lib/{index-DblwzU8U.js.map → index-DdKeUKWu.js.map} +1 -1
  210. package/lib/{index-C8QQR_XI.js → index-DlwFWaiY.js} +13 -13
  211. package/lib/{index-C8QQR_XI.js.map → index-DlwFWaiY.js.map} +1 -1
  212. package/lib/{index-BEzio-vG.js → index-Dm5PevSE.js} +10 -10
  213. package/lib/{index-BEzio-vG.js.map → index-Dm5PevSE.js.map} +1 -1
  214. package/lib/{index-CRqc1g9s.js → index-DrxXRhEO.js} +4 -4
  215. package/lib/{index-CRqc1g9s.js.map → index-DrxXRhEO.js.map} +1 -1
  216. package/lib/{index-BZ9TBRcn.js → index-EEqCPFo8.js} +8 -8
  217. package/lib/{index-BZ9TBRcn.js.map → index-EEqCPFo8.js.map} +1 -1
  218. package/lib/{index-D1rQZWS-.js → index-K0J2eq7Y.js} +38 -39
  219. package/lib/index-K0J2eq7Y.js.map +1 -0
  220. package/lib/{index-BV42p1ID.js → index-PtF39r2i.js} +7 -7
  221. package/lib/{index-BV42p1ID.js.map → index-PtF39r2i.js.map} +1 -1
  222. package/lib/is-PzizLXcv.js +3 -3
  223. package/lib/it-CiJeQN1_.js +3 -3
  224. package/lib/iw-QHmqNHZP.js +3 -3
  225. package/lib/ja-DPgVvasb.js +3 -3
  226. package/lib/ko-DykOu1Yp.js +3 -3
  227. package/lib/lo-C4bFrJOj.js +3 -3
  228. package/lib/lt-KjZ7oOV5.js +3 -3
  229. package/lib/ms-CNvzXjsH.js +3 -3
  230. package/lib/nl-BE-BXbsNtu2.js +3 -3
  231. package/lib/nl-ucuj2G5l.js +3 -3
  232. package/lib/no-D8IuXJ7O.js +3 -3
  233. package/lib/pl-DvnUkXGb.js +3 -3
  234. package/lib/pt-BR-Be00Hx-L.js +3 -3
  235. package/lib/pt-DS7isrlt.js +3 -3
  236. package/lib/ro-BHCICvJV.js +3 -3
  237. package/lib/ru-DUDtL41i.js +3 -3
  238. package/lib/sk-O9yqW58Q.js +3 -3
  239. package/lib/sl-CxcvfiDu.js +3 -3
  240. package/lib/sr-DgvzAvVS.js +3 -3
  241. package/lib/sv-BtktR0mm.js +3 -3
  242. package/lib/sw-D06YJhji.js +3 -3
  243. package/lib/th-C1KZhtMd.js +3 -3
  244. package/lib/tr-CqpbTukW.js +3 -3
  245. package/lib/uk-BWHH_jN1.js +3 -3
  246. package/lib/ur-BHWni4Fn.js +3 -3
  247. package/lib/{useCollectFieldsEndpoint-CHfpu8rz.js → useCollectFieldsEndpoint-C9_ygIzy.js} +5 -5
  248. package/lib/{useCollectFieldsEndpoint-CHfpu8rz.js.map → useCollectFieldsEndpoint-C9_ygIzy.js.map} +1 -1
  249. package/lib/{useEmailFirstExperiment-BW42yQPm.js → useEmailFirstExperiment-Cib954tq.js} +4 -4
  250. package/lib/{useEmailFirstExperiment-BW42yQPm.js.map → useEmailFirstExperiment-Cib954tq.js.map} +1 -1
  251. package/lib/vi-DVhQHKtP.js +3 -3
  252. package/lib/zh-HK-C-wTSVhL.js +3 -3
  253. package/lib/zh-qa3hzwEB.js +3 -3
  254. package/lib/zu-DwVIy-bC.js +3 -3
  255. package/package.json +1 -1
  256. package/sheerid-install.css +3 -3
  257. package/sheerid-install.js +4 -4
  258. package/sheerid.css +3 -3
  259. package/sheerid.js +31 -31
  260. package/types-reference.zip +0 -0
  261. package/chunk/index-B0RXjf3X.js.map +0 -1
  262. package/chunk/index-Cp0trvsP.js.map +0 -1
  263. package/lib/StepCollectMilitaryStatusComponent-BQkj7ZoB.js +0 -11
  264. package/lib/index-CcAsLQCG.js +0 -11
  265. package/lib/index-CcAsLQCG.js.map +0 -1
  266. package/lib/index-Cnu2Xjr1.js +0 -11
  267. package/lib/index-Cnu2Xjr1.js.map +0 -1
  268. package/lib/index-D--q13gK.js +0 -11
  269. package/lib/index-D--q13gK.js.map +0 -1
  270. package/lib/index-D1rQZWS-.js.map +0 -1
  271. package/lib/index-DdKZTMDD.js.map +0 -1
  272. package/lib/index-PsAje25X.js +0 -11
  273. package/lib/index-PsAje25X.js.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"index-BElPqx0Q.js","sources":["../../node_modules/react-auth-code-input/dist/index.modern.js","../../src/components/StepCompleteAuthentication/StepCompleteAuthenticationComponent.tsx"],"sourcesContent":["import React, { forwardRef, useRef, useImperativeHandle, useEffect } from 'react';\n\nvar allowedCharactersValues = ['alpha', 'numeric', 'alphanumeric'];\nvar propsMap = {\n alpha: {\n type: 'text',\n inputMode: 'text',\n pattern: '[a-zA-Z]{1}'\n },\n alphanumeric: {\n type: 'text',\n inputMode: 'text',\n pattern: '[a-zA-Z0-9]{1}'\n },\n numeric: {\n type: 'tel',\n inputMode: 'numeric',\n pattern: '[0-9]{1}',\n min: '0',\n max: '9'\n }\n};\nvar AuthCode = forwardRef(function (_ref, ref) {\n var _ref$allowedCharacter = _ref.allowedCharacters,\n allowedCharacters = _ref$allowedCharacter === void 0 ? 'alphanumeric' : _ref$allowedCharacter,\n ariaLabel = _ref.ariaLabel,\n _ref$autoFocus = _ref.autoFocus,\n autoFocus = _ref$autoFocus === void 0 ? true : _ref$autoFocus,\n containerClassName = _ref.containerClassName,\n disabled = _ref.disabled,\n inputClassName = _ref.inputClassName,\n _ref$isPassword = _ref.isPassword,\n isPassword = _ref$isPassword === void 0 ? false : _ref$isPassword,\n _ref$length = _ref.length,\n length = _ref$length === void 0 ? 6 : _ref$length,\n placeholder = _ref.placeholder,\n onChange = _ref.onChange;\n\n if (isNaN(length) || length < 1) {\n throw new Error('Length should be a number and greater than 0');\n }\n\n if (!allowedCharactersValues.some(function (value) {\n return value === allowedCharacters;\n })) {\n throw new Error('Invalid value for allowedCharacters. Use alpha, numeric, or alphanumeric');\n }\n\n var inputsRef = useRef([]);\n var inputProps = propsMap[allowedCharacters];\n useImperativeHandle(ref, function () {\n return {\n focus: function focus() {\n if (inputsRef.current) {\n inputsRef.current[0].focus();\n }\n },\n clear: function clear() {\n if (inputsRef.current) {\n for (var i = 0; i < inputsRef.current.length; i++) {\n inputsRef.current[i].value = '';\n }\n\n inputsRef.current[0].focus();\n }\n\n sendResult();\n }\n };\n });\n useEffect(function () {\n if (autoFocus) {\n inputsRef.current[0].focus();\n }\n }, []);\n\n var sendResult = function sendResult() {\n var res = inputsRef.current.map(function (input) {\n return input.value;\n }).join('');\n onChange && onChange(res);\n };\n\n var handleOnChange = function handleOnChange(e) {\n var _e$target = e.target,\n value = _e$target.value,\n nextElementSibling = _e$target.nextElementSibling;\n\n if (value.length > 1) {\n e.target.value = value.charAt(0);\n\n if (nextElementSibling !== null) {\n nextElementSibling.focus();\n }\n } else {\n if (value.match(inputProps.pattern)) {\n if (nextElementSibling !== null) {\n nextElementSibling.focus();\n }\n } else {\n e.target.value = '';\n }\n }\n\n sendResult();\n };\n\n var handleOnKeyDown = function handleOnKeyDown(e) {\n var key = e.key;\n var target = e.target;\n\n if (key === 'Backspace') {\n if (target.value === '') {\n if (target.previousElementSibling !== null) {\n var t = target.previousElementSibling;\n t.value = '';\n t.focus();\n e.preventDefault();\n }\n } else {\n target.value = '';\n }\n\n sendResult();\n }\n };\n\n var handleOnFocus = function handleOnFocus(e) {\n e.target.select();\n };\n\n var handleOnPaste = function handleOnPaste(e) {\n var pastedValue = e.clipboardData.getData('Text');\n var currentInput = 0;\n\n for (var i = 0; i < pastedValue.length; i++) {\n var pastedCharacter = pastedValue.charAt(i);\n var currentValue = inputsRef.current[currentInput].value;\n\n if (pastedCharacter.match(inputProps.pattern)) {\n if (!currentValue) {\n inputsRef.current[currentInput].value = pastedCharacter;\n\n if (inputsRef.current[currentInput].nextElementSibling !== null) {\n inputsRef.current[currentInput].nextElementSibling.focus();\n currentInput++;\n }\n }\n }\n }\n\n sendResult();\n e.preventDefault();\n };\n\n var inputs = [];\n\n var _loop = function _loop(i) {\n inputs.push(React.createElement(\"input\", Object.assign({\n key: i,\n onChange: handleOnChange,\n onKeyDown: handleOnKeyDown,\n onFocus: handleOnFocus,\n onPaste: handleOnPaste\n }, inputProps, {\n type: isPassword ? 'password' : inputProps.type,\n ref: function ref(el) {\n inputsRef.current[i] = el;\n },\n maxLength: 1,\n className: inputClassName,\n autoComplete: i === 0 ? 'one-time-code' : 'off',\n \"aria-label\": ariaLabel ? ariaLabel + \". Character \" + (i + 1) + \".\" : \"Character \" + (i + 1) + \".\",\n disabled: disabled,\n placeholder: placeholder\n })));\n };\n\n for (var i = 0; i < length; i++) {\n _loop(i);\n }\n\n return React.createElement(\"div\", {\n className: containerClassName\n }, inputs);\n});\n\nexport default AuthCode;\n//# sourceMappingURL=index.modern.js.map\n","import * as React from \"react\";\nimport { FormattedHTMLMessage } from \"react-intl\";\n\nimport AuthCode from \"react-auth-code-input\";\nimport produce from \"immer\";\nimport { CompleteAuthenticationViewModel, VerificationService } from \"../../lib/types/types\";\nimport {\n submitForm,\n updateFieldValidationErrorsByFieldId,\n} from \"../../lib/utils/stepComponentHelpers/stepComponentHelpers\";\nimport { AUTH_TOKEN_LENGTH } from \"../../constants\";\n\nimport { VerificationStepsEnum } from \"../../lib/types/runtimeTypes\";\nimport { AnnouncingHeader } from \"../AnnouncingHeader/AnnouncingHeader\";\n\ninterface StepCompleteAuthenticationProps {\n verificationService: VerificationService;\n}\n\nexport const StepCompleteAuthenticationComponent = ({\n verificationService,\n}: StepCompleteAuthenticationProps) => {\n const viewModel = verificationService.viewModel as CompleteAuthenticationViewModel;\n const { fieldValidationErrors, verificationResponse } = verificationService;\n const { errorIds } = verificationResponse;\n\n const authInputRef = React.useRef(null);\n\n const updateCompleteAuthenticationViewmodel = (\n key: keyof CompleteAuthenticationViewModel,\n value: any,\n ) => {\n const nextState: CompleteAuthenticationViewModel = produce(\n viewModel,\n (draft: CompleteAuthenticationViewModel) => {\n (draft[key] as any) = value;\n },\n );\n verificationService.updateViewModel(nextState);\n };\n\n const manuallyVerifyViewModel = (): CompleteAuthenticationViewModel => {\n const nextState: CompleteAuthenticationViewModel = produce(\n viewModel,\n (draft: CompleteAuthenticationViewModel) => {\n draft.didManuallyVerify = true;\n delete draft.authenticationCode;\n },\n );\n verificationService.updateViewModel(nextState);\n\n return nextState;\n };\n\n React.useEffect(() => {\n if (viewModel.authenticationCode) {\n // reset local viewModel's authenticationCode to prevent form from submitting\n // prematurely when provided with an incorrect auth code.\n viewModel.authenticationCode = \"\";\n }\n }, []);\n\n React.useEffect(() => {\n if (viewModel.authenticationCode.length >= AUTH_TOKEN_LENGTH) {\n submitForm(viewModel, verificationService, VerificationStepsEnum.completeAuthentication);\n }\n }, [viewModel.authenticationCode]);\n\n return (\n <div\n id=\"sid-step-complete-authentication\"\n className=\"sid-step-complete-authentication-container sid-l-container\"\n >\n <div className=\"sid-header\">\n <AnnouncingHeader align=\"center\">\n <FormattedHTMLMessage\n id=\"step.completeAuthentication.title\"\n defaultMessage=\"Verify with Remember Me\"\n />\n </AnnouncingHeader>\n <div className=\"sid-header__subtitle sid-l-horz-center\">\n <FormattedHTMLMessage\n id=\"step.completeAuthentication.subtitle\"\n defaultMessage=\"Enter the code sent to your email.\"\n />\n </div>\n </div>\n <div className=\"sid-l-space-top-md\" />\n <div className=\"auth-code\">\n <AuthCode\n onChange={(token) => {\n updateCompleteAuthenticationViewmodel(\"authenticationCode\", token);\n updateFieldValidationErrorsByFieldId(\"authenticationCode\", token, verificationService);\n }}\n ref={authInputRef}\n allowedCharacters=\"numeric\"\n length={AUTH_TOKEN_LENGTH}\n isPassword\n containerClassName=\"auth-code__container\"\n inputClassName={`auth-code__input${\n fieldValidationErrors.authenticationCode ? \" auth-code__input-error\" : \"\"\n }`}\n />\n {fieldValidationErrors.authenticationCode ||\n (errorIds?.length > 0 && (\n <div className=\"auth-code__error-container\">\n <div>\n <img\n alt=\"red-exclaimation-circle\"\n src=\"https://assets-resources.sheerid.com/common/images/2018/icons/red-exclaimation-circle.svg\"\n />\n </div>\n <div className=\"auth-code__error-text\">\n <FormattedHTMLMessage\n id=\"errorId.invalidAuthenticationLoopToken\"\n defaultMessage=\"The code provided is invalid\"\n />\n </div>\n </div>\n ))}\n </div>\n <div className=\"sid-complete-auth__manually-verify-button-continer\">\n <button\n type=\"button\"\n className=\"sid-btn sid-btn-light sid-complete-auth__manually-verify-button\"\n aria-label=\"submit\"\n onClick={() => {\n submitForm(\n manuallyVerifyViewModel(),\n verificationService,\n VerificationStepsEnum.completeAuthentication,\n );\n }}\n >\n <FormattedHTMLMessage\n id=\"step.completeAuthentication.manuallyVerifyButton\"\n defaultMessage=\"Manually verify\"\n />\n </button>\n </div>\n </div>\n );\n};\n"],"names":["allowedCharactersValues","propsMap","AuthCode","forwardRef","_ref","ref","_ref$allowedCharacter","allowedCharacters","ariaLabel","_ref$autoFocus","autoFocus","containerClassName","disabled","inputClassName","_ref$isPassword","isPassword","_ref$length","length","placeholder","onChange","value","inputsRef","useRef","inputProps","useImperativeHandle","i","sendResult","useEffect","res","input","handleOnChange","_e$target","nextElementSibling","handleOnKeyDown","key","target","t","handleOnFocus","handleOnPaste","pastedValue","currentInput","pastedCharacter","currentValue","inputs","_loop","React","el","StepCompleteAuthenticationComponent","verificationService","viewModel","fieldValidationErrors","verificationResponse","errorIds","authInputRef","React.useRef","updateCompleteAuthenticationViewmodel","nextState","produce","draft","manuallyVerifyViewModel","React.useEffect","AUTH_TOKEN_LENGTH","submitForm","VerificationStepsEnum","jsxs","jsx","AnnouncingHeader","FormattedHTMLMessage","token","updateFieldValidationErrorsByFieldId"],"mappings":";AAEA,IAAIA,IAA0B,CAAC,SAAS,WAAW,cAAc,GAC7DC,IAAW;AAAA,EACb,OAAO;AAAA,IACL,MAAM;AAAA,IACN,WAAW;AAAA,IACX,SAAS;AAAA,EACV;AAAA,EACD,cAAc;AAAA,IACZ,MAAM;AAAA,IACN,WAAW;AAAA,IACX,SAAS;AAAA,EACV;AAAA,EACD,SAAS;AAAA,IACP,MAAM;AAAA,IACN,WAAW;AAAA,IACX,SAAS;AAAA,IACT,KAAK;AAAA,IACL,KAAK;AAAA,EACT;AACA,GACIC,IAAWC,EAAU,WAAC,SAAUC,GA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["../../node_modules/react-auth-code-input/dist/index.modern.js","../../src/components/StepCompleteAuthentication/StepCompleteAuthenticationComponent.tsx"],"sourcesContent":["import React, { forwardRef, useRef, useImperativeHandle, useEffect } from 'react';\n\nvar allowedCharactersValues = ['alpha', 'numeric', 'alphanumeric'];\nvar propsMap = {\n alpha: {\n type: 'text',\n inputMode: 'text',\n pattern: '[a-zA-Z]{1}'\n },\n alphanumeric: {\n type: 'text',\n inputMode: 'text',\n pattern: '[a-zA-Z0-9]{1}'\n },\n numeric: {\n type: 'tel',\n inputMode: 'numeric',\n pattern: '[0-9]{1}',\n min: '0',\n max: '9'\n }\n};\nvar AuthCode = forwardRef(function (_ref, ref) {\n var _ref$allowedCharacter = _ref.allowedCharacters,\n allowedCharacters = _ref$allowedCharacter === void 0 ? 'alphanumeric' : _ref$allowedCharacter,\n ariaLabel = _ref.ariaLabel,\n _ref$autoFocus = _ref.autoFocus,\n autoFocus = _ref$autoFocus === void 0 ? true : _ref$autoFocus,\n containerClassName = _ref.containerClassName,\n disabled = _ref.disabled,\n inputClassName = _ref.inputClassName,\n _ref$isPassword = _ref.isPassword,\n isPassword = _ref$isPassword === void 0 ? false : _ref$isPassword,\n _ref$length = _ref.length,\n length = _ref$length === void 0 ? 6 : _ref$length,\n placeholder = _ref.placeholder,\n onChange = _ref.onChange;\n\n if (isNaN(length) || length < 1) {\n throw new Error('Length should be a number and greater than 0');\n }\n\n if (!allowedCharactersValues.some(function (value) {\n return value === allowedCharacters;\n })) {\n throw new Error('Invalid value for allowedCharacters. Use alpha, numeric, or alphanumeric');\n }\n\n var inputsRef = useRef([]);\n var inputProps = propsMap[allowedCharacters];\n useImperativeHandle(ref, function () {\n return {\n focus: function focus() {\n if (inputsRef.current) {\n inputsRef.current[0].focus();\n }\n },\n clear: function clear() {\n if (inputsRef.current) {\n for (var i = 0; i < inputsRef.current.length; i++) {\n inputsRef.current[i].value = '';\n }\n\n inputsRef.current[0].focus();\n }\n\n sendResult();\n }\n };\n });\n useEffect(function () {\n if (autoFocus) {\n inputsRef.current[0].focus();\n }\n }, []);\n\n var sendResult = function sendResult() {\n var res = inputsRef.current.map(function (input) {\n return input.value;\n }).join('');\n onChange && onChange(res);\n };\n\n var handleOnChange = function handleOnChange(e) {\n var _e$target = e.target,\n value = _e$target.value,\n nextElementSibling = _e$target.nextElementSibling;\n\n if (value.length > 1) {\n e.target.value = value.charAt(0);\n\n if (nextElementSibling !== null) {\n nextElementSibling.focus();\n }\n } else {\n if (value.match(inputProps.pattern)) {\n if (nextElementSibling !== null) {\n nextElementSibling.focus();\n }\n } else {\n e.target.value = '';\n }\n }\n\n sendResult();\n };\n\n var handleOnKeyDown = function handleOnKeyDown(e) {\n var key = e.key;\n var target = e.target;\n\n if (key === 'Backspace') {\n if (target.value === '') {\n if (target.previousElementSibling !== null) {\n var t = target.previousElementSibling;\n t.value = '';\n t.focus();\n e.preventDefault();\n }\n } else {\n target.value = '';\n }\n\n sendResult();\n }\n };\n\n var handleOnFocus = function handleOnFocus(e) {\n e.target.select();\n };\n\n var handleOnPaste = function handleOnPaste(e) {\n var pastedValue = e.clipboardData.getData('Text');\n var currentInput = 0;\n\n for (var i = 0; i < pastedValue.length; i++) {\n var pastedCharacter = pastedValue.charAt(i);\n var currentValue = inputsRef.current[currentInput].value;\n\n if (pastedCharacter.match(inputProps.pattern)) {\n if (!currentValue) {\n inputsRef.current[currentInput].value = pastedCharacter;\n\n if (inputsRef.current[currentInput].nextElementSibling !== null) {\n inputsRef.current[currentInput].nextElementSibling.focus();\n currentInput++;\n }\n }\n }\n }\n\n sendResult();\n e.preventDefault();\n };\n\n var inputs = [];\n\n var _loop = function _loop(i) {\n inputs.push(React.createElement(\"input\", Object.assign({\n key: i,\n onChange: handleOnChange,\n onKeyDown: handleOnKeyDown,\n onFocus: handleOnFocus,\n onPaste: handleOnPaste\n }, inputProps, {\n type: isPassword ? 'password' : inputProps.type,\n ref: function ref(el) {\n inputsRef.current[i] = el;\n },\n maxLength: 1,\n className: inputClassName,\n autoComplete: i === 0 ? 'one-time-code' : 'off',\n \"aria-label\": ariaLabel ? ariaLabel + \". Character \" + (i + 1) + \".\" : \"Character \" + (i + 1) + \".\",\n disabled: disabled,\n placeholder: placeholder\n })));\n };\n\n for (var i = 0; i < length; i++) {\n _loop(i);\n }\n\n return React.createElement(\"div\", {\n className: containerClassName\n }, inputs);\n});\n\nexport default AuthCode;\n//# sourceMappingURL=index.modern.js.map\n","import * as React from \"react\";\nimport { FormattedHTMLMessage } from \"react-intl\";\n\nimport AuthCode from \"react-auth-code-input\";\nimport produce from \"immer\";\nimport { CompleteAuthenticationViewModel, VerificationService } from \"../../lib/types/types\";\nimport {\n submitForm,\n updateFieldValidationErrorsByFieldId,\n} from \"../../lib/utils/stepComponentHelpers/stepComponentHelpers\";\nimport { AUTH_TOKEN_LENGTH } from \"../../constants\";\n\nimport { VerificationStepsEnum } from \"../../lib/types/runtimeTypes\";\nimport { AnnouncingHeader } from \"../AnnouncingHeader/AnnouncingHeader\";\n\ninterface StepCompleteAuthenticationProps {\n verificationService: VerificationService;\n}\n\nexport const StepCompleteAuthenticationComponent = ({\n verificationService,\n}: StepCompleteAuthenticationProps) => {\n const viewModel = verificationService.viewModel as CompleteAuthenticationViewModel;\n const { fieldValidationErrors, verificationResponse } = verificationService;\n const { errorIds } = verificationResponse;\n\n const authInputRef = React.useRef(null);\n\n const updateCompleteAuthenticationViewmodel = (\n key: keyof CompleteAuthenticationViewModel,\n value: any,\n ) => {\n const nextState: CompleteAuthenticationViewModel = produce(\n viewModel,\n (draft: CompleteAuthenticationViewModel) => {\n (draft[key] as any) = value;\n },\n );\n verificationService.updateViewModel(nextState);\n };\n\n const manuallyVerifyViewModel = (): CompleteAuthenticationViewModel => {\n const nextState: CompleteAuthenticationViewModel = produce(\n viewModel,\n (draft: CompleteAuthenticationViewModel) => {\n draft.didManuallyVerify = true;\n delete draft.authenticationCode;\n },\n );\n verificationService.updateViewModel(nextState);\n\n return nextState;\n };\n\n React.useEffect(() => {\n if (viewModel.authenticationCode) {\n // reset local viewModel's authenticationCode to prevent form from submitting\n // prematurely when provided with an incorrect auth code.\n viewModel.authenticationCode = \"\";\n }\n }, []);\n\n React.useEffect(() => {\n if (viewModel.authenticationCode.length >= AUTH_TOKEN_LENGTH) {\n submitForm(viewModel, verificationService, VerificationStepsEnum.completeAuthentication);\n }\n }, [viewModel.authenticationCode]);\n\n return (\n <div\n id=\"sid-step-complete-authentication\"\n className=\"sid-step-complete-authentication-container sid-l-container\"\n >\n <div className=\"sid-header\">\n <AnnouncingHeader align=\"center\">\n <FormattedHTMLMessage\n id=\"step.completeAuthentication.title\"\n defaultMessage=\"Verify with Remember Me\"\n />\n </AnnouncingHeader>\n <div className=\"sid-header__subtitle sid-l-horz-center\">\n <FormattedHTMLMessage\n id=\"step.completeAuthentication.subtitle\"\n defaultMessage=\"Enter the code sent to your email.\"\n />\n </div>\n </div>\n <div className=\"sid-l-space-top-md\" />\n <div className=\"auth-code\">\n <AuthCode\n onChange={(token) => {\n updateCompleteAuthenticationViewmodel(\"authenticationCode\", token);\n updateFieldValidationErrorsByFieldId(\"authenticationCode\", token, verificationService);\n }}\n ref={authInputRef}\n allowedCharacters=\"numeric\"\n length={AUTH_TOKEN_LENGTH}\n isPassword\n containerClassName=\"auth-code__container\"\n inputClassName={`auth-code__input${\n fieldValidationErrors.authenticationCode ? \" auth-code__input-error\" : \"\"\n }`}\n />\n {fieldValidationErrors.authenticationCode ||\n (errorIds?.length > 0 && (\n <div className=\"auth-code__error-container\">\n <div>\n <img\n alt=\"red-exclaimation-circle\"\n src=\"https://assets-resources.sheerid.com/common/images/2018/icons/red-exclaimation-circle.svg\"\n />\n </div>\n <div className=\"auth-code__error-text\">\n <FormattedHTMLMessage\n id=\"errorId.invalidAuthenticationLoopToken\"\n defaultMessage=\"The code provided is invalid\"\n />\n </div>\n </div>\n ))}\n </div>\n <div className=\"sid-complete-auth__manually-verify-button-continer\">\n <button\n type=\"button\"\n className=\"sid-btn sid-btn-light sid-complete-auth__manually-verify-button\"\n aria-label=\"submit\"\n onClick={() => {\n submitForm(\n manuallyVerifyViewModel(),\n verificationService,\n VerificationStepsEnum.completeAuthentication,\n );\n }}\n >\n <FormattedHTMLMessage\n id=\"step.completeAuthentication.manuallyVerifyButton\"\n defaultMessage=\"Manually verify\"\n />\n </button>\n </div>\n </div>\n );\n};\n"],"names":["allowedCharactersValues","propsMap","AuthCode","forwardRef","_ref","ref","_ref$allowedCharacter","allowedCharacters","ariaLabel","_ref$autoFocus","autoFocus","containerClassName","disabled","inputClassName","_ref$isPassword","isPassword","_ref$length","length","placeholder","onChange","value","inputsRef","useRef","inputProps","useImperativeHandle","i","sendResult","useEffect","res","input","handleOnChange","_e$target","nextElementSibling","handleOnKeyDown","key","target","t","handleOnFocus","handleOnPaste","pastedValue","currentInput","pastedCharacter","currentValue","inputs","_loop","React","el","StepCompleteAuthenticationComponent","verificationService","viewModel","fieldValidationErrors","verificationResponse","errorIds","authInputRef","React.useRef","updateCompleteAuthenticationViewmodel","nextState","produce","draft","manuallyVerifyViewModel","React.useEffect","AUTH_TOKEN_LENGTH","submitForm","VerificationStepsEnum","jsxs","jsx","AnnouncingHeader","FormattedHTMLMessage","token","updateFieldValidationErrorsByFieldId"],"mappings":";AAEA,IAAIA,IAA0B,CAAC,SAAS,WAAW,cAAc,GAC7DC,IAAW;AAAA,EACb,OAAO;AAAA,IACL,MAAM;AAAA,IACN,WAAW;AAAA,IACX,SAAS;AAAA,EACV;AAAA,EACD,cAAc;AAAA,IACZ,MAAM;AAAA,IACN,WAAW;AAAA,IACX,SAAS;AAAA,EACV;AAAA,EACD,SAAS;AAAA,IACP,MAAM;AAAA,IACN,WAAW;AAAA,IACX,SAAS;AAAA,IACT,KAAK;AAAA,IACL,KAAK;AAAA,EACT;AACA,GACIC,IAAWC,EAAU,WAAC,SAAUC,GAAMC,GAAK;AAC7C,MAAIC,IAAwBF,EAAK,mBAC7BG,IAAoBD,MAA0B,SAAS,iBAAiBA,GACxEE,IAAY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AAkB;AAAA,cAClB,QAAQQ;AAAA,cACR,YAAU;AAAA,cACV,oBAAmB;AAAA,cACnB,gBAAgB,mBACdX,EAAsB,qBAAqB,4BAA4B,EACzE;AAAA,YAAA;AAAA,UACF;AAAA,UACCA,EAAsB,uBACpBE,KAAA,gBAAAA,EAAU,UAAS,KACjBY,gBAAAA,OAAA,OAAA,EAAI,WAAU,8BACb,UAAA;AAAA,YAAAC,gBAAAA,MAAC,OACC,EAAA,UAAAA,gBAAAA,EAAA;AAAA,cAAC;AAAA,cAAA;AAAA,gBACC,KAAI;AAAA,gBACJ,KAAI;AAAA,cAAA;AAAA,YAAA,GAER;AAAA,YACAA,gBAAAA,EAAAA,IAAC,OAAI,EAAA,WAAU,yBACb,UAAAA,gBAAAA,EAAA;AAAA,cAACE;AAAA,cAAA;AAAA,gBACC,IAAG;AAAA,gBACH,gBAAe;AAAA,cAAA;AAAA,YAAA,EAEnB,CAAA;AAAA,UAAA,EACF,CAAA;AAAA,QAAA,GAEN;AAAA,QACAF,gBAAAA,EAAAA,IAAC,OAAI,EAAA,WAAU,sDACb,UAAAA,gBAAAA,EAAA;AAAA,UAAC;AAAA,UAAA;AAAA,YACC,MAAK;AAAA,YACL,WAAU;AAAA,YACV,cAAW;AAAA,YACX,SAAS,MAAM;AACb,cAAAH;AAAA,gBACEH,EAAwB;AAAA,gBACxBX;AAAA,gBACAe,EAAsB;AAAA,cACxB;AAAA,YACF;AAAA,YAEA,UAAAE,gBAAAA,EAAA;AAAA,cAACE;AAAA,cAAA;AAAA,gBACC,IAAG;AAAA,gBACH,gBAAe;AAAA,cAAA;AAAA,YAAA;AAAA,UACjB;AAAA,QAAA,EAEJ,CAAA;AAAA,MAAA;AAAA,IAAA;AAAA,EACF;AAEJ;","x_google_ignoreList":[0]}
@@ -4,9 +4,9 @@
4
4
  * This file is not intended for use in other contexts and there are no guarantees about its behavior outside of MySheerID.
5
5
  */
6
6
  /**
7
- * VERSION: 2.115.0-alpha.2
8
- * BUILD_TIMESTAMP: 1751929074457
9
- * BUILD_DATE: Mon Jul 07 2025 22:57:54 GMT+0000 (Coordinated Universal Time)
7
+ * VERSION: 2.115.0-alpha.3
8
+ * BUILD_TIMESTAMP: 1751931366907
9
+ * BUILD_DATE: Mon Jul 07 2025 23:36:06 GMT+0000 (Coordinated Universal Time)
10
10
  * BUILD_COMMIT: 9b953bf464bb46df40df3f4b766e06f47b82b5aa
11
11
  */
12
12
  import { i as I, h as f, s as y, j as a, t as F, v as P, P as R, w as T, x as k, g as n, u as l, y as B, z as L, b as m, B as V, E as A, e as q, D, G as H, M as K, H as O, f as W, V as w, m as z } from "../_mysheerid-preview.js";
@@ -1,15 +1,15 @@
1
1
 
2
2
  /**
3
- * VERSION: 2.115.0-alpha.2
4
- * BUILD_TIMESTAMP: 1751929030742
5
- * BUILD_DATE: Mon Jul 07 2025 22:57:10 GMT+0000 (Coordinated Universal Time)
3
+ * VERSION: 2.115.0-alpha.3
4
+ * BUILD_TIMESTAMP: 1751931324976
5
+ * BUILD_DATE: Mon Jul 07 2025 23:35:24 GMT+0000 (Coordinated Universal Time)
6
6
  * BUILD_COMMIT: 9b953bf464bb46df40df3f4b766e06f47b82b5aa
7
7
  */
8
- import { j as s, L as n, b as l, k as r, i as j, R as N, A as y, w as S, I as g, J as f, u as w, K as C, N as M, V as o, m as _ } from "../sheerid.js";
9
- const k = ({ useSsn: e, useDocUpload: c, verificationService: d }) => /* @__PURE__ */ s.jsxs("div", { id: "sid-ssn-choice", className: "sid-ssn-choice-container sid-l-container sid-l-horz-center", children: [
8
+ import { j as s, L as r, b as l, k as u, i as y, R as o, I as S, V as n, A as g, w as f, J as w, K as C, u as M, N as _, m as k } from "../sheerid.js";
9
+ const V = ({ useSsn: e, useDocUpload: c, verificationService: d }) => /* @__PURE__ */ s.jsxs("div", { id: "sid-ssn-choice", className: "sid-ssn-choice-container sid-l-container sid-l-horz-center", children: [
10
10
  /* @__PURE__ */ s.jsxs("div", { role: "main", children: [
11
11
  /* @__PURE__ */ s.jsxs("div", { className: "sid-header", children: [
12
- /* @__PURE__ */ s.jsx("div", { className: "sid-ssn-choice-logo-container sid-l-horz-center", children: /* @__PURE__ */ s.jsx(n, { verificationService: d }) }),
12
+ /* @__PURE__ */ s.jsx("div", { className: "sid-ssn-choice-logo-container sid-l-horz-center", children: /* @__PURE__ */ s.jsx(r, { verificationService: d }) }),
13
13
  /* @__PURE__ */ s.jsx("div", { className: "sid-header__title sid-l-horz-center", children: /* @__PURE__ */ s.jsx(
14
14
  l,
15
15
  {
@@ -50,23 +50,28 @@ const k = ({ useSsn: e, useDocUpload: c, verificationService: d }) => /* @__PURE
50
50
  }
51
51
  ) })
52
52
  ] }),
53
- /* @__PURE__ */ s.jsx("div", { className: "sid-ssn-choice__footer sid-l-space-top-lg", children: /* @__PURE__ */ s.jsx(r, { verificationService: d }) })
54
- ] }), V = k, E = ({ verificationService: e }) => {
55
- const [c, d] = N.useState(!0), t = e.viewModel, { fieldValidationErrors: u } = e, a = () => e.submitStep(
56
- o.cancelSocialSecurityNumber,
53
+ /* @__PURE__ */ s.jsx("div", { className: "sid-ssn-choice__footer sid-l-space-top-lg", children: /* @__PURE__ */ s.jsx(u, { verificationService: d }) })
54
+ ] }), E = V, F = ({ verificationService: e }) => {
55
+ const [c, d] = o.useState(!0), t = e.viewModel, { fieldValidationErrors: m } = e, a = () => e.submitStep(
56
+ n.cancelSocialSecurityNumber,
57
57
  t,
58
58
  e.verificationResponse
59
- ), m = (i, h) => {
60
- const p = _(
59
+ ), b = (i, x) => {
60
+ const j = k(
61
61
  t,
62
- (x) => {
63
- x[i] = h;
62
+ (N) => {
63
+ N[i] = x;
64
64
  }
65
65
  );
66
- e.updateViewModel(p);
67
- }, b = t.socialSecurityNumber && t.socialSecurityNumber.toString().length === 9;
66
+ e.updateViewModel(j);
67
+ }, h = o.useCallback(
68
+ (i) => {
69
+ i.preventDefault(), S(t, e, n.collectSocialSecurityNumber);
70
+ },
71
+ [t, e]
72
+ ), p = t.socialSecurityNumber && t.socialSecurityNumber.toString().length === 9;
68
73
  return c ? /* @__PURE__ */ s.jsx(
69
- V,
74
+ E,
70
75
  {
71
76
  useSsn: () => d(!1),
72
77
  useDocUpload: a,
@@ -80,8 +85,8 @@ const k = ({ useSsn: e, useDocUpload: c, verificationService: d }) => /* @__PURE
80
85
  children: [
81
86
  /* @__PURE__ */ s.jsxs("div", { role: "main", children: [
82
87
  /* @__PURE__ */ s.jsxs("div", { className: "sid-header", children: [
83
- /* @__PURE__ */ s.jsx("div", { className: "sid-social-security-number-logo-container sid-l-horz-center", children: /* @__PURE__ */ s.jsx(n, { verificationService: e }) }),
84
- /* @__PURE__ */ s.jsx(y, { align: "center", children: /* @__PURE__ */ s.jsx(
88
+ /* @__PURE__ */ s.jsx("div", { className: "sid-social-security-number-logo-container sid-l-horz-center", children: /* @__PURE__ */ s.jsx(r, { verificationService: e }) }),
89
+ /* @__PURE__ */ s.jsx(g, { align: "center", children: /* @__PURE__ */ s.jsx(
85
90
  l,
86
91
  {
87
92
  id: "step.collectSocialSecurityNumber.title",
@@ -93,28 +98,22 @@ const k = ({ useSsn: e, useDocUpload: c, verificationService: d }) => /* @__PURE
93
98
  /* @__PURE__ */ s.jsxs(
94
99
  "form",
95
100
  {
96
- onSubmit: (i) => {
97
- i.preventDefault(), M(
98
- t,
99
- e,
100
- o.collectSocialSecurityNumber
101
- );
102
- },
101
+ onSubmit: h,
103
102
  className: "sid-form-region sid-submit-wrapper sid-l-space-top-md",
104
103
  children: [
105
- /* @__PURE__ */ s.jsx(S, { verificationService: e }),
104
+ /* @__PURE__ */ s.jsx(f, { verificationService: e }),
106
105
  /* @__PURE__ */ s.jsx("div", { className: "sid-ssn-wrapper sid-l-space-btm-md", children: /* @__PURE__ */ s.jsx(
107
- g,
106
+ w,
108
107
  {
109
108
  value: t.socialSecurityNumber,
110
109
  onChange: (i) => {
111
- m("socialSecurityNumber", i), w(
110
+ b("socialSecurityNumber", i), M(
112
111
  "socialSecurityNumber",
113
112
  i,
114
113
  e
115
114
  );
116
115
  },
117
- isErrored: !!u[f.socialSecurityNumber],
116
+ isErrored: !!m[C.socialSecurityNumber],
118
117
  placeholder: "000-00-0000"
119
118
  }
120
119
  ) }),
@@ -123,9 +122,9 @@ const k = ({ useSsn: e, useDocUpload: c, verificationService: d }) => /* @__PURE
123
122
  {
124
123
  id: "sid-submit-wrapper__collect-info",
125
124
  type: "submit",
126
- className: `sid-btn sid-social-security-number-submit-btn sid-btn--dark sid-l-full-width ${b ? "" : "sid-btn--disabled-like"}`,
125
+ className: `sid-btn sid-social-security-number-submit-btn sid-btn--dark sid-l-full-width ${p ? "" : "sid-btn--disabled-like"}`,
127
126
  "aria-label": "submit",
128
- ref: (i) => C("submitButton", i),
127
+ ref: (i) => _("submitButton", i),
129
128
  children: /* @__PURE__ */ s.jsx(l, { id: "proceed", defaultMessage: "Proceed" })
130
129
  }
131
130
  ) })
@@ -150,11 +149,11 @@ const k = ({ useSsn: e, useDocUpload: c, verificationService: d }) => /* @__PURE
150
149
  }
151
150
  )
152
151
  ] }),
153
- /* @__PURE__ */ s.jsx(r, { verificationService: e })
152
+ /* @__PURE__ */ s.jsx(u, { verificationService: e })
154
153
  ]
155
154
  }
156
155
  );
157
- }, I = j(E);
156
+ }, z = y(F);
158
157
  export {
159
- I as default
158
+ z as default
160
159
  };
@@ -1 +1 @@
1
- {"version":3,"file":"index-CsPUjZ8r.js","sources":["../../src/components/StepSocialSecurityNumber/SsnChoice.tsx","../../src/components/StepSocialSecurityNumber/StepSocialSecurityNumber.tsx"],"sourcesContent":["import React from \"react\";\nimport { FormattedHTMLMessage } from \"react-intl\";\nimport { FormFooterComponent as FormFooter } from \"../FormFooter/FormFooterComponent\";\nimport { LogoComponent } from \"../LogoComponent/LogoComponent\";\n\ntype Props = {\n useSsn: () => void;\n useDocUpload: () => void;\n verificationService: any;\n};\n\nconst Step = ({ useSsn, useDocUpload, verificationService }: Props) => (\n <div id=\"sid-ssn-choice\" className=\"sid-ssn-choice-container sid-l-container sid-l-horz-center\">\n <div role=\"main\">\n <div className=\"sid-header\">\n <div className=\"sid-ssn-choice-logo-container sid-l-horz-center\">\n <LogoComponent verificationService={verificationService} />\n </div>\n <div className=\"sid-header__title sid-l-horz-center\">\n <FormattedHTMLMessage\n id=\"step.collectSocialSecurityNumber.selectOption\"\n defaultMessage=\"Select an option\"\n tagName=\"h1\"\n />\n </div>\n </div>\n\n <div className=\"sid-ssn-choice__choice1 sid-l-space-top-lg\">\n <button\n type=\"button\"\n onClick={useSsn}\n className=\"sid-btn sid-ssn-choice-one-btn sid-btn--light sid-l-full-width sid-use-ssn\"\n >\n <FormattedHTMLMessage\n id=\"step.collectSocialSecurityNumber.useSsn\"\n defaultMessage=\"Verify using your social security number\"\n />\n </button>\n </div>\n\n <div className=\"sid-ssn-choice__choice2 sid-l-space-top-md\">\n <button\n type=\"button\"\n onClick={useDocUpload}\n className=\"sid-btn sid-ssn-choice-two-btn sid-btn--light sid-l-full-width sid-use-doc-upload\"\n >\n <FormattedHTMLMessage\n id=\"step.collectSocialSecurityNumber.uploadDoc\"\n defaultMessage=\"Upload a document\"\n />\n </button>\n </div>\n </div>\n <div className=\"sid-ssn-choice__footer sid-l-space-top-lg\">\n <FormFooter verificationService={verificationService} />\n </div>\n </div>\n);\n\nexport const SsnChoice = Step;\n","import React from \"react\";\nimport { FormattedHTMLMessage, injectIntl } from \"react-intl\";\nimport { produce } from \"immer\";\n\nimport { VerificationStepsEnum, FieldIdEnum } from \"../../lib/types/runtimeTypes\";\nimport { setRef } from \"../../lib/refs/refs\";\nimport { VerificationService, SocialSecurityViewModel } from \"../../lib/types/types\";\nimport {\n submitForm,\n updateFieldValidationErrorsByFieldId,\n} from \"../../lib/utils/stepComponentHelpers/stepComponentHelpers\";\nimport { LogoComponent } from \"../LogoComponent/LogoComponent\";\nimport { FormFooterComponent as FormFooter } from \"../FormFooter/FormFooterComponent\";\nimport { SocialSecurityNumber } from \"../FormFields/SSN/SSN\";\nimport { SsnChoice } from \"./SsnChoice\";\nimport { ChangeLocaleV2Component } from \"../FormFields/ChangeLocale/ChangeLocaleComponent\";\nimport { AnnouncingHeader } from \"../AnnouncingHeader/AnnouncingHeader\";\n\ninterface StepSocialSecurityNumberProps {\n verificationService: VerificationService;\n}\n\nconst Step = ({ verificationService }: StepSocialSecurityNumberProps) => {\n const [showChoice, setShowChoice] = React.useState(true);\n const viewModel = verificationService.viewModel as SocialSecurityViewModel;\n const { fieldValidationErrors } = verificationService;\n const doCancelStep = () =>\n verificationService.submitStep(\n VerificationStepsEnum.cancelSocialSecurityNumber,\n viewModel,\n verificationService.verificationResponse,\n );\n\n const updateSSNViewModel = (key: keyof SocialSecurityViewModel, value: any) => {\n const nextState: SocialSecurityViewModel = produce(\n viewModel,\n (draft: SocialSecurityViewModel) => {\n (draft[key] as any) = value;\n },\n );\n verificationService.updateViewModel(nextState);\n };\n\n const isSubmittable =\n viewModel.socialSecurityNumber && viewModel.socialSecurityNumber.toString().length === 9;\n\n if (showChoice) {\n return (\n <SsnChoice\n useSsn={() => setShowChoice(false)}\n useDocUpload={doCancelStep}\n verificationService={verificationService}\n />\n );\n }\n\n return (\n <div\n id=\"sid-step-social-security\"\n className=\"sid-social-sercurity-number-container sid-l-container sid-l-horz-center\"\n >\n <div role=\"main\">\n <div className=\"sid-header\">\n <div className=\"sid-social-security-number-logo-container sid-l-horz-center\">\n <LogoComponent verificationService={verificationService} />\n </div>\n\n <AnnouncingHeader align=\"center\">\n <FormattedHTMLMessage\n id=\"step.collectSocialSecurityNumber.title\"\n defaultMessage=\"Enter your social security number\"\n tagName=\"h1\"\n />\n </AnnouncingHeader>\n </div>\n\n <form\n onSubmit={(e) => {\n e.preventDefault();\n submitForm(\n viewModel,\n verificationService,\n VerificationStepsEnum.collectSocialSecurityNumber,\n );\n }}\n className=\"sid-form-region sid-submit-wrapper sid-l-space-top-md\"\n >\n <ChangeLocaleV2Component verificationService={verificationService} />\n\n <div className=\"sid-ssn-wrapper sid-l-space-btm-md\">\n <SocialSecurityNumber\n value={viewModel.socialSecurityNumber}\n onChange={(value: string) => {\n updateSSNViewModel(\"socialSecurityNumber\", value);\n updateFieldValidationErrorsByFieldId(\n \"socialSecurityNumber\",\n value,\n verificationService,\n );\n }}\n isErrored={!!fieldValidationErrors[FieldIdEnum.socialSecurityNumber]}\n placeholder=\"000-00-0000\"\n />\n </div>\n <div className=\"sid-social-security-number-submit sid-submit\">\n <button\n id=\"sid-submit-wrapper__collect-info\"\n type=\"submit\"\n className={`sid-btn sid-social-security-number-submit-btn sid-btn--dark sid-l-full-width ${\n isSubmittable ? \"\" : \"sid-btn--disabled-like\"\n }`}\n aria-label=\"submit\"\n ref={(button) => setRef(\"submitButton\", button)}\n >\n <FormattedHTMLMessage id=\"proceed\" defaultMessage=\"Proceed\" />\n </button>\n </div>\n </form>\n\n <div\n className=\"sid-form-region sid-social-security-number-upload-instead-btn sid-l-space-top-md\"\n role=\"button\"\n tabIndex={0}\n onKeyUp={doCancelStep}\n onClick={doCancelStep}\n >\n <div className=\"sid-social-security-number-upload-instead-text sid-h-link-like\">\n <FormattedHTMLMessage\n id=\"step.collectSocialSecurityNumber.uploadInstead\"\n defaultMessage=\"Upload a document instead\"\n />\n </div>\n </div>\n </div>\n <FormFooter verificationService={verificationService} />\n </div>\n );\n};\n\n// TODO remove injectIntl, it's not used\nexport const StepSocialSecurityNumber = injectIntl(Step);\n"],"names":["Step","useSsn","useDocUpload","verificationService","jsxs","jsx","LogoComponent","FormattedHTMLMessage","FormFooter","SsnChoice","showChoice","setShowChoice","React","viewModel","fieldValidationErrors","doCancelStep","VerificationStepsEnum","updateSSNViewModel","key","value","nextState","produce","draft","isSubmittable","AnnouncingHeader","e","submitForm","ChangeLocaleV2Component","SocialSecurityNumber","updateFieldValidationErrorsByFieldId","FieldIdEnum","button","setRef","StepSocialSecurityNumber","injectIntl"],"mappings":";AAWA,MAAMA,IAAO,CAAC,EAAE,QAAAC,GAAQ,cAAAC,GAAc,qBAAAC,EAAA,MACpCC,g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,cACL,UAAU;AAAA,cACV,SAASU;AAAA,cACT,SAASA;AAAA,cAET,UAAAV,gBAAAA,EAAA,IAAC,OAAI,EAAA,WAAU,kEACb,UAAAA,gBAAAA,EAAA;AAAA,gBAACE;AAAA,gBAAA;AAAA,kBACC,IAAG;AAAA,kBACH,gBAAe;AAAA,gBAAA;AAAA,cAAA,EAEnB,CAAA;AAAA,YAAA;AAAA,UAAA;AAAA,QACF,GACF;AAAA,QACAF,gBAAAA,MAACG,KAAW,qBAAAL,EAA0C,CAAA;AAAA,MAAA;AAAA,IAAA;AAAA,EACxD;AAEJ,GAGa8B,IAA2BC,EAAWlC,CAAI;"}
1
+ {"version":3,"file":"index-ByBO6KNx.js","sources":["../../src/components/StepSocialSecurityNumber/SsnChoice.tsx","../../src/components/StepSocialSecurityNumber/StepSocialSecurityNumber.tsx"],"sourcesContent":["import React from \"react\";\nimport { FormattedHTMLMessage } from \"react-intl\";\nimport { FormFooterComponent as FormFooter } from \"../FormFooter/FormFooterComponent\";\nimport { LogoComponent } from \"../LogoComponent/LogoComponent\";\n\ntype Props = {\n useSsn: () => void;\n useDocUpload: () => void;\n verificationService: any;\n};\n\nconst Step = ({ useSsn, useDocUpload, verificationService }: Props) => (\n <div id=\"sid-ssn-choice\" className=\"sid-ssn-choice-container sid-l-container sid-l-horz-center\">\n <div role=\"main\">\n <div className=\"sid-header\">\n <div className=\"sid-ssn-choice-logo-container sid-l-horz-center\">\n <LogoComponent verificationService={verificationService} />\n </div>\n <div className=\"sid-header__title sid-l-horz-center\">\n <FormattedHTMLMessage\n id=\"step.collectSocialSecurityNumber.selectOption\"\n defaultMessage=\"Select an option\"\n tagName=\"h1\"\n />\n </div>\n </div>\n\n <div className=\"sid-ssn-choice__choice1 sid-l-space-top-lg\">\n <button\n type=\"button\"\n onClick={useSsn}\n className=\"sid-btn sid-ssn-choice-one-btn sid-btn--light sid-l-full-width sid-use-ssn\"\n >\n <FormattedHTMLMessage\n id=\"step.collectSocialSecurityNumber.useSsn\"\n defaultMessage=\"Verify using your social security number\"\n />\n </button>\n </div>\n\n <div className=\"sid-ssn-choice__choice2 sid-l-space-top-md\">\n <button\n type=\"button\"\n onClick={useDocUpload}\n className=\"sid-btn sid-ssn-choice-two-btn sid-btn--light sid-l-full-width sid-use-doc-upload\"\n >\n <FormattedHTMLMessage\n id=\"step.collectSocialSecurityNumber.uploadDoc\"\n defaultMessage=\"Upload a document\"\n />\n </button>\n </div>\n </div>\n <div className=\"sid-ssn-choice__footer sid-l-space-top-lg\">\n <FormFooter verificationService={verificationService} />\n </div>\n </div>\n);\n\nexport const SsnChoice = Step;\n","import React from \"react\";\nimport { FormattedHTMLMessage, injectIntl } from \"react-intl\";\nimport { produce } from \"immer\";\n\nimport { VerificationStepsEnum, FieldIdEnum } from \"../../lib/types/runtimeTypes\";\nimport { setRef } from \"../../lib/refs/refs\";\nimport { VerificationService, SocialSecurityViewModel } from \"../../lib/types/types\";\nimport {\n submitForm,\n updateFieldValidationErrorsByFieldId,\n} from \"../../lib/utils/stepComponentHelpers/stepComponentHelpers\";\nimport { LogoComponent } from \"../LogoComponent/LogoComponent\";\nimport { FormFooterComponent as FormFooter } from \"../FormFooter/FormFooterComponent\";\nimport { SocialSecurityNumber } from \"../FormFields/SSN/SSN\";\nimport { SsnChoice } from \"./SsnChoice\";\nimport { ChangeLocaleV2Component } from \"../FormFields/ChangeLocale/ChangeLocaleComponent\";\nimport { AnnouncingHeader } from \"../AnnouncingHeader/AnnouncingHeader\";\n\ninterface StepSocialSecurityNumberProps {\n verificationService: VerificationService;\n}\n\nconst Step = ({ verificationService }: StepSocialSecurityNumberProps) => {\n const [showChoice, setShowChoice] = React.useState(true);\n const viewModel = verificationService.viewModel as SocialSecurityViewModel;\n const { fieldValidationErrors } = verificationService;\n const doCancelStep = () =>\n verificationService.submitStep(\n VerificationStepsEnum.cancelSocialSecurityNumber,\n viewModel,\n verificationService.verificationResponse,\n );\n\n const updateSSNViewModel = (key: keyof SocialSecurityViewModel, value: any) => {\n const nextState: SocialSecurityViewModel = produce(\n viewModel,\n (draft: SocialSecurityViewModel) => {\n (draft[key] as any) = value;\n },\n );\n verificationService.updateViewModel(nextState);\n };\n\n const handleSubmit = React.useCallback(\n (e: React.FormEvent<HTMLFormElement>) => {\n e.preventDefault();\n submitForm(viewModel, verificationService, VerificationStepsEnum.collectSocialSecurityNumber);\n },\n [viewModel, verificationService],\n );\n\n const isSubmittable =\n viewModel.socialSecurityNumber && viewModel.socialSecurityNumber.toString().length === 9;\n\n if (showChoice) {\n return (\n <SsnChoice\n useSsn={() => setShowChoice(false)}\n useDocUpload={doCancelStep}\n verificationService={verificationService}\n />\n );\n }\n\n return (\n <div\n id=\"sid-step-social-security\"\n className=\"sid-social-sercurity-number-container sid-l-container sid-l-horz-center\"\n >\n <div role=\"main\">\n <div className=\"sid-header\">\n <div className=\"sid-social-security-number-logo-container sid-l-horz-center\">\n <LogoComponent verificationService={verificationService} />\n </div>\n\n <AnnouncingHeader align=\"center\">\n <FormattedHTMLMessage\n id=\"step.collectSocialSecurityNumber.title\"\n defaultMessage=\"Enter your social security number\"\n tagName=\"h1\"\n />\n </AnnouncingHeader>\n </div>\n\n <form\n onSubmit={handleSubmit}\n className=\"sid-form-region sid-submit-wrapper sid-l-space-top-md\"\n >\n <ChangeLocaleV2Component verificationService={verificationService} />\n\n <div className=\"sid-ssn-wrapper sid-l-space-btm-md\">\n <SocialSecurityNumber\n value={viewModel.socialSecurityNumber}\n onChange={(value: string) => {\n updateSSNViewModel(\"socialSecurityNumber\", value);\n updateFieldValidationErrorsByFieldId(\n \"socialSecurityNumber\",\n value,\n verificationService,\n );\n }}\n isErrored={!!fieldValidationErrors[FieldIdEnum.socialSecurityNumber]}\n placeholder=\"000-00-0000\"\n />\n </div>\n <div className=\"sid-social-security-number-submit sid-submit\">\n <button\n id=\"sid-submit-wrapper__collect-info\"\n type=\"submit\"\n className={`sid-btn sid-social-security-number-submit-btn sid-btn--dark sid-l-full-width ${\n isSubmittable ? \"\" : \"sid-btn--disabled-like\"\n }`}\n aria-label=\"submit\"\n ref={(button) => setRef(\"submitButton\", button)}\n >\n <FormattedHTMLMessage id=\"proceed\" defaultMessage=\"Proceed\" />\n </button>\n </div>\n </form>\n\n <div\n className=\"sid-form-region sid-social-security-number-upload-instead-btn sid-l-space-top-md\"\n role=\"button\"\n tabIndex={0}\n onKeyUp={doCancelStep}\n onClick={doCancelStep}\n >\n <div className=\"sid-social-security-number-upload-instead-text sid-h-link-like\">\n <FormattedHTMLMessage\n id=\"step.collectSocialSecurityNumber.uploadInstead\"\n defaultMessage=\"Upload a document instead\"\n />\n </div>\n </div>\n </div>\n <FormFooter verificationService={verificationService} />\n </div>\n );\n};\n\n// TODO remove injectIntl, it's not used\nexport const StepSocialSecurityNumber = injectIntl(Step);\n"],"names":["Step","useSsn","useDocUpload","verificationService","jsxs","jsx","LogoComponent","FormattedHTMLMessage","FormFooter","SsnChoice","showChoice","setShowChoice","React","viewModel","fieldValidationErrors","doCancelStep","VerificationStepsEnum","updateSSNViewModel","key","value","nextState","produce","draft","handleSubmit","e","submitForm","isSubmittable","AnnouncingHeader","ChangeLocaleV2Component","SocialSecurityNumber","updateFieldValidationErrorsByFieldId","FieldIdEnum","button","setRef","StepSocialSecurityNumber","injectIntl"],"mappings":";AAWA,MAAMA,IAAO,CAAC,EAAE,QAAAC,GAAQ,cAAAC,GAAc,qBAAAC,EAAA,MACpCC,gBAAAA,EAAAA,KAAC,OAAI,EAAA,IAAG,kBAAiB,WAAU,8DACjC,UAAA;AAAA,EAACA,gBAAAA,EAAAA,KAAA,OAAA,EAAI,MAAK,QACR,UAAA;AAAA,IAACA,gBAAAA,EAAAA,KAAA,OAAA,EAAI,WAAU,cACb,UAAA;AAAA,MAAAC,gBAAAA,EAAAA,IAAC,SAAI,WAAU,mDACb,UAACA,gBAAAA,EAAA,IAAAC,GAAA,EAAc,qBAAAH,EAA0C,CAAA,GAC3D;AAAA,MACAE,gBAAAA,EAAAA,IAAC,OAAI,EAAA,W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KAAW,qBAAAL,EAA0C,CAAA;AAAA,MAAA;AAAA,IAAA;AAAA,EACxD;AAEJ,GAGa+B,IAA2BC,EAAWnC,CAAI;"}
@@ -1,11 +1,11 @@
1
1
 
2
2
  /**
3
- * VERSION: 2.115.0-alpha.2
4
- * BUILD_TIMESTAMP: 1751929030742
5
- * BUILD_DATE: Mon Jul 07 2025 22:57:10 GMT+0000 (Coordinated Universal Time)
3
+ * VERSION: 2.115.0-alpha.3
4
+ * BUILD_TIMESTAMP: 1751931324976
5
+ * BUILD_DATE: Mon Jul 07 2025 23:35:24 GMT+0000 (Coordinated Universal Time)
6
6
  * BUILD_COMMIT: 9b953bf464bb46df40df3f4b766e06f47b82b5aa
7
7
  */
8
- import { i as A, h as D, j as a, t as O, v as F, P as _, w as V, Q as B, g as t, a2 as k, u as l, U as z, x as G, y as H, W, B as w, b as p, E as c, e as K, D as U, G as q, M as Q, H as J, f as X, V as Y, m as Z } from "../sheerid.js";
8
+ import { i as A, h as O, j as a, t as D, v as F, P as _, w as V, O as B, g as t, a2 as k, u as l, T as z, x as G, y as H, U as W, B as w, b as p, E as c, e as K, D as U, G as q, M as J, H as Q, f as X, V as Y, m as Z } from "../sheerid.js";
9
9
  import { L as $ } from "./LicensedProfessionalOrganizationComponent-CiYU-2dW.js";
10
10
  const S = {
11
11
  LICENSED_COSMETOLOGIST: "Licensed Cosmetologist",
@@ -22,7 +22,7 @@ const S = {
22
22
  verificationService: e
23
23
  }) => {
24
24
  var C, b, E, g, h, N, x, I, L, f;
25
- const o = e.viewModel, { fieldValidationErrors: n } = e, u = e.verificationResponse, M = D(u), R = o.localeChoice.value, T = F(), d = (s, r) => {
25
+ const o = e.viewModel, { fieldValidationErrors: n } = e, u = e.verificationResponse, M = O(u), R = o.localeChoice.value, T = F(), d = (s, r) => {
26
26
  const m = Z(
27
27
  o,
28
28
  (y) => {
@@ -41,7 +41,7 @@ const S = {
41
41
  return r;
42
42
  };
43
43
  return /* @__PURE__ */ a.jsxs(
44
- O,
44
+ D,
45
45
  {
46
46
  verificationService: e,
47
47
  step: u.currentStep,
@@ -182,7 +182,7 @@ const S = {
182
182
  ) : null,
183
183
  T.customFormFields.map((s) => /* @__PURE__ */ a.jsx(q, { config: s, verificationService: e })),
184
184
  /* @__PURE__ */ a.jsx(
185
- Q,
185
+ J,
186
186
  {
187
187
  verificationService: e,
188
188
  isErrored: !!n.marketConsentValue,
@@ -196,7 +196,7 @@ const S = {
196
196
  disabled: (f = t("marketConsentValue")) == null ? void 0 : f.disabled
197
197
  }
198
198
  ),
199
- /* @__PURE__ */ a.jsx(J, { verificationService: e, suffix: "CollectAboveSubmit" }),
199
+ /* @__PURE__ */ a.jsx(Q, { verificationService: e, suffix: "CollectAboveSubmit" }),
200
200
  /* @__PURE__ */ a.jsx(
201
201
  X,
202
202
  {
@@ -1 +1 @@
1
- {"version":3,"file":"index-C8MQD8EK.js","sources":["../../src/components/StepLicensedProfessionalPersonalInfo/StepLicensedProfessionalPersonalInfoComponent.tsx"],"sourcesContent":["import React from \"react\";\nimport { FormattedHTMLMessage, injectIntl } from \"react-intl\";\nimport { produce } from \"immer\";\n\nimport { VerificationStepsEnum } from \"../../lib/types/runtimeTypes\";\nimport { hasFailedInstantMatch } from \"../../lib/VerificationService/VerificationServiceHelpers\";\nimport {\n CustomFormFieldConfig,\n FormSelectChoice,\n LicensedProfessionalPersonalInfoResponse,\n LicensedProfessionalPersonalInfoViewModel,\n LicensedProfessionalStatus,\n Organization,\n VerificationService,\n} from \"../../lib/types/types\";\nimport {\n getFieldConfigByFieldId,\n handleEmailOnKeyDown,\n updateFieldValidationErrorsByFieldId,\n updateViewModelOrganization,\n} from \"../../lib/utils/stepComponentHelpers/stepComponentHelpers\";\n\nimport { BirthDateComponent as BirthDate } from \"../FormFields/BirthDate/BirthDateComponent\";\nimport { EmailComponent as Email } from \"../FormFields/Email/EmailComponent\";\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 { StatusComponent as LicensedProfessionalStatusComponent } from \"../FormFields/Status/StatusComponent\";\nimport { LicensedProfessionalOrganizationComponent as LicensedProfessionalOrganization } from \"../FormFields/LicensedProfessionalOrganization/LicensedProfessionalOrganizationComponent\";\nimport { MarketConsentWrapperComponent as MarketConsentWrapper } from \"../FormFields/MarketConsentWrapper/MarketConsentWrapperComponent\";\nimport { PostalCodeComponent } from \"../FormFields/PostalCode/PostalCodeComponent\";\nimport { getOptions } from \"../../options/options\";\nimport { FormFieldCustom } from \"../FormFields/FormFieldCustom/FormFieldCustom\";\nimport { ExtraMessage } from \"../ExtraMessage\";\nimport { ChangeLocaleV2Component } from \"../FormFields/ChangeLocale/ChangeLocaleComponent\";\nimport { CountryComponentWrapper } from \"../FormFields/Country/CountryComponentWrapper\";\nimport { PersonalInfoWrapper } from \"../PersonalInfoStepWrapper/PersonalInfoStepWrapper\";\nimport { PersonalInfoStepSubmitButton } from \"../PersonalInfoStepSubmitButton/PersonalInfoStepSubmitButton\";\nimport { PersonalInfoHeader } from \"../FormHeader/StepHeaders/PersonalInfoHeaderComponent\";\n\ninterface StepLicensedProfessionalPersonalInfoComponentProps {\n verificationService: VerificationService;\n intl: any;\n}\n\ntype DefaultStatusMessages = {\n [key in LicensedProfessionalStatus]: string;\n};\n\nconst defaultStatusMessages: DefaultStatusMessages = {\n LICENSED_COSMETOLOGIST: \"Licensed Cosmetologist\",\n LICENSED_REAL_ESTATE_AGENT: \"Licensed Real Estate Agent\",\n VETERINARIAN: \"Veterinarian\",\n CHILD_CARE_WORKER: \"Child Care Worker\",\n LIBRARIAN: \"Librarian\",\n INTERIOR_DESIGNER: \"Interior Designer\",\n ARCHITECT: \"Architect\",\n GENERAL_CONTRACTOR: \"General Contractor\",\n NUTRITION_PROFESSIONAL: \"Nutrition Professional\",\n};\n\nconst StepLicensedProfessionalPersonalInfo = ({\n intl,\n verificationService,\n}: StepLicensedProfessionalPersonalInfoComponentProps) => {\n const viewModel = verificationService.viewModel as LicensedProfessionalPersonalInfoViewModel;\n const { fieldValidationErrors } = verificationService;\n const verificationResponse =\n verificationService.verificationResponse as LicensedProfessionalPersonalInfoResponse;\n const failedInstantMatch = hasFailedInstantMatch(verificationResponse);\n\n const locale = viewModel.localeChoice.value;\n const options = getOptions();\n\n const updateLicensedProfessionalViewModel = (\n key: keyof LicensedProfessionalPersonalInfoViewModel,\n value: any,\n ) => {\n const nextState: LicensedProfessionalPersonalInfoViewModel = produce(\n viewModel,\n (draft: LicensedProfessionalPersonalInfoViewModel) => {\n (draft[key] as any) = value;\n },\n );\n verificationService.updateViewModel(nextState);\n };\n\n const getStatusLabel = (status: LicensedProfessionalStatus | undefined): string => {\n if (!status) {\n return \"\";\n }\n return intl.formatHTMLMessage({ id: status, defaultMessage: defaultStatusMessages[status] });\n };\n\n const getAvailableLicensedProfessionalStatuses = () => {\n const availableStatusesResponse = verificationResponse.availableStatuses;\n const availableStatuses: FormSelectChoice[] = [];\n\n if (availableStatusesResponse) {\n for (const status of availableStatusesResponse) {\n availableStatuses.push({\n value: status,\n label: getStatusLabel(status),\n });\n }\n }\n return availableStatuses;\n };\n\n return (\n <PersonalInfoWrapper\n verificationService={verificationService}\n step={verificationResponse.currentStep}\n >\n <PersonalInfoHeader\n verificationService={verificationService}\n classNameIdentifier=\"licensed-professional\"\n />\n\n <ChangeLocaleV2Component verificationService={verificationService} />\n <CountryComponentWrapper\n verificationService={verificationService}\n disabled={getFieldConfigByFieldId(\"country\")?.disabled}\n />\n\n <LicensedProfessionalStatusComponent\n segmentId=\"licensed-professional\"\n value={{\n value: viewModel.statuses ? viewModel.statuses[0] : \"\",\n label: viewModel.statuses ? getStatusLabel(viewModel.statuses[0]) : \"\",\n }}\n isErrored={!!fieldValidationErrors.statuses}\n options={getAvailableLicensedProfessionalStatuses()}\n disabled={getFieldConfigByFieldId(\"statuses\")?.disabled}\n onChange={(status: FormSelectChoice) => {\n const updatedStatuses = status ? [status.value as string] : [];\n updateLicensedProfessionalViewModel(\"statuses\", updatedStatuses);\n updateFieldValidationErrorsByFieldId(\n \"statuses\",\n status ? (status.value as string) : \"\",\n verificationService,\n );\n }}\n />\n <LicensedProfessionalOrganization\n isErrored={!!fieldValidationErrors.organization}\n onChange={(choice: Organization) => {\n updateViewModelOrganization(choice, verificationService);\n updateFieldValidationErrorsByFieldId(\"organization\", choice, verificationService);\n }}\n value={\n (verificationService.viewModel as LicensedProfessionalPersonalInfoViewModel).organization\n }\n verificationService={verificationService}\n disabled={getFieldConfigByFieldId(\"organization\")?.disabled}\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 updateLicensedProfessionalViewModel(\"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 updateLicensedProfessionalViewModel(\"lastName\", newValue);\n updateFieldValidationErrorsByFieldId(\"lastName\", newValue, verificationService);\n }}\n />\n </div>\n <BirthDate\n errorId={fieldValidationErrors.birthDate}\n locale={locale}\n onChange={(newValue) => {\n updateLicensedProfessionalViewModel(\"birthDate\", newValue);\n updateFieldValidationErrorsByFieldId(\"birthDate\", newValue, verificationService);\n }}\n value={viewModel.birthDate}\n disabled={getFieldConfigByFieldId(\"birthDate\")?.disabled}\n />\n <PostalCodeComponent\n isErrored={!!fieldValidationErrors.postalCode}\n onChange={(newValue) => {\n updateLicensedProfessionalViewModel(\"postalCode\", newValue);\n updateFieldValidationErrorsByFieldId(\"postalCode\", newValue, verificationService);\n }}\n value={viewModel.postalCode}\n disabled={getFieldConfigByFieldId(\"postalCode\")?.disabled}\n explanation={\n <FormattedHTMLMessage\n id=\"postalCodeExplanation\"\n defaultMessage=\"Use the location on file with your licensing body\"\n />\n }\n />\n <Email\n value={viewModel.email}\n isErrored={!!fieldValidationErrors.email}\n explanation={\n <FormattedHTMLMessage\n id=\"emailExplanation\"\n defaultMessage=\"Needed to send you your unique code\"\n />\n }\n onChange={(newValue) => {\n updateLicensedProfessionalViewModel(\"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 updateLicensedProfessionalViewModel(\"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 updateLicensedProfessionalViewModel(\"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.collectLicensedProfessionalPersonalInfo}\n verificationService={verificationService}\n viewModel={viewModel}\n failedInstantMatch={failedInstantMatch}\n buttonText={\n <FormattedHTMLMessage\n id=\"step.personalInfo.submitButtonText\"\n defaultMessage=\"Verify My Licensed Professional Status\"\n />\n }\n />\n </PersonalInfoWrapper>\n );\n};\n\nexport const StepLicensedProfessionalPersonalInfoComponent = injectIntl(\n StepLicensedProfessionalPersonalInfo,\n);\n"],"names":["defaultStatusMessages","StepLicensedProfessionalPersonalInfo","intl","verificationService","viewModel","fieldValidationErrors","verificationResponse","failedInstantMatch","hasFailedInstantMatch","locale","options","getOptions","updateLicensedProfessionalViewModel","key","value","nextState","produce","draft","getStatusLabel","status","getAvailableLicensedProfessionalStatuses","availableStatusesResponse","availableStatuses","jsxs","PersonalInfoWrapper","jsx","PersonalInfoHeader","ChangeLocaleV2Component","CountryComponentWrapper","_a","getFieldConfigByFieldId","LicensedProfessionalStatusComponent","_b","updatedStatuses","updateFieldValidationErrorsByFieldId","LicensedProfessionalOrganization","choice","updateViewModelOrganization","_c","FirstName","_d","newValue","LastName","_e","BirthDate","_f","PostalCodeComponent","_g","FormattedHTMLMessage","Email","event","handleEmailOnKeyDown","_h","PhoneNumber","_i","config","FormFieldCustom","MarketConsentWrapper","_j","ExtraMessage","PersonalInfoStepSubmitButton","VerificationStepsEnum","StepLicensedProfessionalPersonalInfoComponent","injectIntl"],"mappings":";;AAiDA,MAAMA,IAA+C;AAAA,EACnD,wBAAwB;AAAA,EACxB,4BAA4B;AAAA,EAC5B,cAAc;AAAA,EACd,mBAAmB;AAAA,EACnB,WAAW;AAAA,EACX,mBAAmB;AAAA,EACnB,WAAW;AAAA,EACX,oBAAoB;AAAA,EACpB,wBAAwB;AAC1B,GAEMC,IAAuC,CAAC;AAAA,EAC5C,MAAAC;AAAA,EACA,qBAAAC;AACF,MAA0D;;AACxD,QAAMC,IAAYD,EAAoB,WAChC,EAAE,uBAAAE,MAA0BF,GAC5BG,IACJH,EAAoB,sBAChBI,IAAqBC,EAAsBF,CAAoB,GAE/DG,IAASL,EAAU,aAAa,OAChCM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D;AAAA,QAECjC,gBAAAA,EAAAA,IAAAkC,GAAA,EAAa,qBAAAxD,GAA0C,QAAO,qBAAqB,CAAA;AAAA,QAEpFsB,gBAAAA,EAAA;AAAA,UAACmC;AAAA,UAAA;AAAA,YACC,MAAMC,EAAsB;AAAA,YAC5B,qBAAA1D;AAAA,YACA,WAAAC;AAAA,YACA,oBAAAG;AAAA,YACA,YACEkB,gBAAAA,EAAA;AAAA,cAACuB;AAAA,cAAA;AAAA,gBACC,IAAG;AAAA,gBACH,gBAAe;AAAA,cAAA;AAAA,YAAA;AAAA,UACjB;AAAA,QAAA;AAAA,MAEJ;AAAA,IAAA;AAAA,EACF;AAEJ,GAEac,KAAgDC;AAAA,EAC3D9D;AACF;"}
1
+ {"version":3,"file":"index-C-YPXV3H.js","sources":["../../src/components/StepLicensedProfessionalPersonalInfo/StepLicensedProfessionalPersonalInfoComponent.tsx"],"sourcesContent":["import React from \"react\";\nimport { FormattedHTMLMessage, injectIntl } from \"react-intl\";\nimport { produce } from \"immer\";\n\nimport { VerificationStepsEnum } from \"../../lib/types/runtimeTypes\";\nimport { hasFailedInstantMatch } from \"../../lib/VerificationService/VerificationServiceHelpers\";\nimport {\n CustomFormFieldConfig,\n FormSelectChoice,\n LicensedProfessionalPersonalInfoResponse,\n LicensedProfessionalPersonalInfoViewModel,\n LicensedProfessionalStatus,\n Organization,\n VerificationService,\n} from \"../../lib/types/types\";\nimport {\n getFieldConfigByFieldId,\n handleEmailOnKeyDown,\n updateFieldValidationErrorsByFieldId,\n updateViewModelOrganization,\n} from \"../../lib/utils/stepComponentHelpers/stepComponentHelpers\";\n\nimport { BirthDateComponent as BirthDate } from \"../FormFields/BirthDate/BirthDateComponent\";\nimport { EmailComponent as Email } from \"../FormFields/Email/EmailComponent\";\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 { StatusComponent as LicensedProfessionalStatusComponent } from \"../FormFields/Status/StatusComponent\";\nimport { LicensedProfessionalOrganizationComponent as LicensedProfessionalOrganization } from \"../FormFields/LicensedProfessionalOrganization/LicensedProfessionalOrganizationComponent\";\nimport { MarketConsentWrapperComponent as MarketConsentWrapper } from \"../FormFields/MarketConsentWrapper/MarketConsentWrapperComponent\";\nimport { PostalCodeComponent } from \"../FormFields/PostalCode/PostalCodeComponent\";\nimport { getOptions } from \"../../options/options\";\nimport { FormFieldCustom } from \"../FormFields/FormFieldCustom/FormFieldCustom\";\nimport { ExtraMessage } from \"../ExtraMessage\";\nimport { ChangeLocaleV2Component } from \"../FormFields/ChangeLocale/ChangeLocaleComponent\";\nimport { CountryComponentWrapper } from \"../FormFields/Country/CountryComponentWrapper\";\nimport { PersonalInfoWrapper } from \"../PersonalInfoStepWrapper/PersonalInfoStepWrapper\";\nimport { PersonalInfoStepSubmitButton } from \"../PersonalInfoStepSubmitButton/PersonalInfoStepSubmitButton\";\nimport { PersonalInfoHeader } from \"../FormHeader/StepHeaders/PersonalInfoHeaderComponent\";\n\ninterface StepLicensedProfessionalPersonalInfoComponentProps {\n verificationService: VerificationService;\n intl: any;\n}\n\ntype DefaultStatusMessages = {\n [key in LicensedProfessionalStatus]: string;\n};\n\nconst defaultStatusMessages: DefaultStatusMessages = {\n LICENSED_COSMETOLOGIST: \"Licensed Cosmetologist\",\n LICENSED_REAL_ESTATE_AGENT: \"Licensed Real Estate Agent\",\n VETERINARIAN: \"Veterinarian\",\n CHILD_CARE_WORKER: \"Child Care Worker\",\n LIBRARIAN: \"Librarian\",\n INTERIOR_DESIGNER: \"Interior Designer\",\n ARCHITECT: \"Architect\",\n GENERAL_CONTRACTOR: \"General Contractor\",\n NUTRITION_PROFESSIONAL: \"Nutrition Professional\",\n};\n\nconst StepLicensedProfessionalPersonalInfo = ({\n intl,\n verificationService,\n}: StepLicensedProfessionalPersonalInfoComponentProps) => {\n const viewModel = verificationService.viewModel as LicensedProfessionalPersonalInfoViewModel;\n const { fieldValidationErrors } = verificationService;\n const verificationResponse =\n verificationService.verificationResponse as LicensedProfessionalPersonalInfoResponse;\n const failedInstantMatch = hasFailedInstantMatch(verificationResponse);\n\n const locale = viewModel.localeChoice.value;\n const options = getOptions();\n\n const updateLicensedProfessionalViewModel = (\n key: keyof LicensedProfessionalPersonalInfoViewModel,\n value: any,\n ) => {\n const nextState: LicensedProfessionalPersonalInfoViewModel = produce(\n viewModel,\n (draft: LicensedProfessionalPersonalInfoViewModel) => {\n (draft[key] as any) = value;\n },\n );\n verificationService.updateViewModel(nextState);\n };\n\n const getStatusLabel = (status: LicensedProfessionalStatus | undefined): string => {\n if (!status) {\n return \"\";\n }\n return intl.formatHTMLMessage({ id: status, defaultMessage: defaultStatusMessages[status] });\n };\n\n const getAvailableLicensedProfessionalStatuses = () => {\n const availableStatusesResponse = verificationResponse.availableStatuses;\n const availableStatuses: FormSelectChoice[] = [];\n\n if (availableStatusesResponse) {\n for (const status of availableStatusesResponse) {\n availableStatuses.push({\n value: status,\n label: getStatusLabel(status),\n });\n }\n }\n return availableStatuses;\n };\n\n return (\n <PersonalInfoWrapper\n verificationService={verificationService}\n step={verificationResponse.currentStep}\n >\n <PersonalInfoHeader\n verificationService={verificationService}\n classNameIdentifier=\"licensed-professional\"\n />\n\n <ChangeLocaleV2Component verificationService={verificationService} />\n <CountryComponentWrapper\n verificationService={verificationService}\n disabled={getFieldConfigByFieldId(\"country\")?.disabled}\n />\n\n <LicensedProfessionalStatusComponent\n segmentId=\"licensed-professional\"\n value={{\n value: viewModel.statuses ? viewModel.statuses[0] : \"\",\n label: viewModel.statuses ? getStatusLabel(viewModel.statuses[0]) : \"\",\n }}\n isErrored={!!fieldValidationErrors.statuses}\n options={getAvailableLicensedProfessionalStatuses()}\n disabled={getFieldConfigByFieldId(\"statuses\")?.disabled}\n onChange={(status: FormSelectChoice) => {\n const updatedStatuses = status ? [status.value as string] : [];\n updateLicensedProfessionalViewModel(\"statuses\", updatedStatuses);\n updateFieldValidationErrorsByFieldId(\n \"statuses\",\n status ? (status.value as string) : \"\",\n verificationService,\n );\n }}\n />\n <LicensedProfessionalOrganization\n isErrored={!!fieldValidationErrors.organization}\n onChange={(choice: Organization) => {\n updateViewModelOrganization(choice, verificationService);\n updateFieldValidationErrorsByFieldId(\"organization\", choice, verificationService);\n }}\n value={\n (verificationService.viewModel as LicensedProfessionalPersonalInfoViewModel).organization\n }\n verificationService={verificationService}\n disabled={getFieldConfigByFieldId(\"organization\")?.disabled}\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 updateLicensedProfessionalViewModel(\"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 updateLicensedProfessionalViewModel(\"lastName\", newValue);\n updateFieldValidationErrorsByFieldId(\"lastName\", newValue, verificationService);\n }}\n />\n </div>\n <BirthDate\n errorId={fieldValidationErrors.birthDate}\n locale={locale}\n onChange={(newValue) => {\n updateLicensedProfessionalViewModel(\"birthDate\", newValue);\n updateFieldValidationErrorsByFieldId(\"birthDate\", newValue, verificationService);\n }}\n value={viewModel.birthDate}\n disabled={getFieldConfigByFieldId(\"birthDate\")?.disabled}\n />\n <PostalCodeComponent\n isErrored={!!fieldValidationErrors.postalCode}\n onChange={(newValue) => {\n updateLicensedProfessionalViewModel(\"postalCode\", newValue);\n updateFieldValidationErrorsByFieldId(\"postalCode\", newValue, verificationService);\n }}\n value={viewModel.postalCode}\n disabled={getFieldConfigByFieldId(\"postalCode\")?.disabled}\n explanation={\n <FormattedHTMLMessage\n id=\"postalCodeExplanation\"\n defaultMessage=\"Use the location on file with your licensing body\"\n />\n }\n />\n <Email\n value={viewModel.email}\n isErrored={!!fieldValidationErrors.email}\n explanation={\n <FormattedHTMLMessage\n id=\"emailExplanation\"\n defaultMessage=\"Needed to send you your unique code\"\n />\n }\n onChange={(newValue) => {\n updateLicensedProfessionalViewModel(\"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 updateLicensedProfessionalViewModel(\"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 updateLicensedProfessionalViewModel(\"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.collectLicensedProfessionalPersonalInfo}\n verificationService={verificationService}\n viewModel={viewModel}\n failedInstantMatch={failedInstantMatch}\n buttonText={\n <FormattedHTMLMessage\n id=\"step.personalInfo.submitButtonText\"\n defaultMessage=\"Verify My Licensed Professional Status\"\n />\n }\n />\n </PersonalInfoWrapper>\n );\n};\n\nexport const StepLicensedProfessionalPersonalInfoComponent = injectIntl(\n StepLicensedProfessionalPersonalInfo,\n);\n"],"names":["defaultStatusMessages","StepLicensedProfessionalPersonalInfo","intl","verificationService","viewModel","fieldValidationErrors","verificationResponse","failedInstantMatch","hasFailedInstantMatch","locale","options","getOptions","updateLicensedProfessionalViewModel","key","value","nextState","produce","draft","getStatusLabel","status","getAvailableLicensedProfessionalStatuses","availableStatusesResponse","availableStatuses","jsxs","PersonalInfoWrapper","jsx","PersonalInfoHeader","ChangeLocaleV2Component","CountryComponentWrapper","_a","getFieldConfigByFieldId","LicensedProfessionalStatusComponent","_b","updatedStatuses","updateFieldValidationErrorsByFieldId","LicensedProfessionalOrganization","choice","updateViewModelOrganization","_c","FirstName","_d","newValue","LastName","_e","BirthDate","_f","PostalCodeComponent","_g","FormattedHTMLMessage","Email","event","handleEmailOnKeyDown","_h","PhoneNumber","_i","config","FormFieldCustom","MarketConsentWrapper","_j","ExtraMessage","PersonalInfoStepSubmitButton","VerificationStepsEnum","StepLicensedProfessionalPersonalInfoComponent","injectIntl"],"mappings":";;AAiDA,MAAMA,IAA+C;AAAA,EACnD,wBAAwB;AAAA,EACxB,4BAA4B;AAAA,EAC5B,cAAc;AAAA,EACd,mBAAmB;AAAA,EACnB,WAAW;AAAA,EACX,mBAAmB;AAAA,EACnB,WAAW;AAAA,EACX,oBAAoB;AAAA,EACpB,wBAAwB;AAC1B,GAEMC,IAAuC,CAAC;AAAA,EAC5C,MAAAC;AAAA,EACA,qBAAAC;AACF,MAA0D;;AACxD,QAAMC,IAAYD,EAAoB,WAChC,EAAE,uBAAAE,MAA0BF,GAC5BG,IACJH,EAAoB,sBAChBI,IAAqBC,EAAsBF,CAAoB,GAE/DG,IAASL,EAAU,aAAa,OAChCM,IAAUC,EAAW,GAErBC,IAAsC,CAC1CC,GACAC,MACG;AACH,UAAMC,IAA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A0C,QAAO,qBAAqB,CAAA;AAAA,QAEpFsB,gBAAAA,EAAA;AAAA,UAACmC;AAAA,UAAA;AAAA,YACC,MAAMC,EAAsB;AAAA,YAC5B,qBAAA1D;AAAA,YACA,WAAAC;AAAA,YACA,oBAAAG;AAAA,YACA,YACEkB,gBAAAA,EAAA;AAAA,cAACuB;AAAA,cAAA;AAAA,gBACC,IAAG;AAAA,gBACH,gBAAe;AAAA,cAAA;AAAA,YAAA;AAAA,UACjB;AAAA,QAAA;AAAA,MAEJ;AAAA,IAAA;AAAA,EACF;AAEJ,GAEac,KAAgDC;AAAA,EAC3D9D;AACF;"}
@@ -4,40 +4,49 @@
4
4
  * This file is not intended for use in other contexts and there are no guarantees about its behavior outside of MySheerID.
5
5
  */
6
6
  /**
7
- * VERSION: 2.115.0-alpha.2
8
- * BUILD_TIMESTAMP: 1751929074457
9
- * BUILD_DATE: Mon Jul 07 2025 22:57:54 GMT+0000 (Coordinated Universal Time)
7
+ * VERSION: 2.115.0-alpha.3
8
+ * BUILD_TIMESTAMP: 1751931366907
9
+ * BUILD_DATE: Mon Jul 07 2025 23:36:06 GMT+0000 (Coordinated Universal Time)
10
10
  * BUILD_COMMIT: 9b953bf464bb46df40df3f4b766e06f47b82b5aa
11
11
  */
12
- import { j as s, L as c, b as a, A as p, O as u, N as g, V as d, k as x, u as b, l as j, m as h, i as E } from "../_mysheerid-preview.js";
13
- import { EmailLoopPendingComponent as f } from "./EmailLoopPending-Dtf0p85F.js";
14
- const L = ({
12
+ import { R as p, I as u, V as d, j as s, L as g, b as a, A as x, X as b, k as h, u as j, l as E, m as f, i as L } from "../_mysheerid-preview.js";
13
+ import { EmailLoopPendingComponent as N } from "./EmailLoopPending-Dtf0p85F.js";
14
+ const y = ({
15
15
  verificationService: e
16
16
  }) => {
17
17
  var t;
18
- const i = e.viewModel, { fieldValidationErrors: o } = e, n = (((t = e.verificationResponse) == null ? void 0 : t.errorIds) || []).includes(
18
+ const l = e.viewModel, { fieldValidationErrors: o } = e, n = (((t = e.verificationResponse) == null ? void 0 : t.errorIds) || []).includes(
19
19
  "invalidEmail"
20
- ), m = (l) => {
21
- e.updateViewModel({ ...i, organizationEmail: l }), b(
20
+ ), m = (i) => {
21
+ e.updateViewModel({ ...l, organizationEmail: i }), j(
22
22
  "organizationEmail",
23
- l,
23
+ i,
24
24
  e
25
25
  );
26
26
  }, r = async () => {
27
- j.info("StepEmailLoopComponent submitting form after skipping email loop");
28
- const l = h(i, () => {
27
+ E.info("StepEmailLoopComponent submitting form after skipping email loop");
28
+ const i = f(l, () => {
29
29
  });
30
30
  return e.submitStep(
31
31
  d.cancelEmailLoop,
32
- l,
32
+ i,
33
33
  e.verificationResponse
34
34
  );
35
- };
35
+ }, c = p.useCallback(
36
+ (i) => {
37
+ i.preventDefault(), u(
38
+ l,
39
+ e,
40
+ d.emailLoopCollectOrganizationEmail
41
+ );
42
+ },
43
+ [l, e]
44
+ );
36
45
  return /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
37
46
  /* @__PURE__ */ s.jsxs("div", { className: "sid-header sid-l-horz-center", children: [
38
47
  /* @__PURE__ */ s.jsxs("div", { role: "main", children: [
39
48
  /* @__PURE__ */ s.jsx("div", { className: "sid-sso-logo-container sid-l-horz-center", children: /* @__PURE__ */ s.jsx(
40
- c,
49
+ g,
41
50
  {
42
51
  verificationService: e,
43
52
  fallbackLogo: /* @__PURE__ */ s.jsx(
@@ -51,7 +60,7 @@ const L = ({
51
60
  }
52
61
  ) }),
53
62
  /* @__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" }) }) }),
54
- /* @__PURE__ */ s.jsx(p, { align: "center", children: /* @__PURE__ */ s.jsx(
63
+ /* @__PURE__ */ s.jsx(x, { align: "center", children: /* @__PURE__ */ s.jsx(
55
64
  a,
56
65
  {
57
66
  id: "step.emailLoop.collectOrganizationEmail.title",
@@ -70,20 +79,14 @@ const L = ({
70
79
  /* @__PURE__ */ s.jsxs(
71
80
  "form",
72
81
  {
73
- onSubmit: (l) => {
74
- l.preventDefault(), g(
75
- i,
76
- e,
77
- d.emailLoopCollectOrganizationEmail
78
- );
79
- },
82
+ onSubmit: c,
80
83
  className: "sid-form-region sid-email-submit sid-submit-wrapper sid-l-space-top-md",
81
84
  children: [
82
85
  /* @__PURE__ */ s.jsx(
83
- u,
86
+ b,
84
87
  {
85
88
  fieldId: "emailOverride",
86
- value: i.organizationEmail,
89
+ value: l.organizationEmail,
87
90
  onChange: m,
88
91
  placeholder: "",
89
92
  label: /* @__PURE__ */ s.jsx(
@@ -155,12 +158,12 @@ const L = ({
155
158
  }
156
159
  )
157
160
  ] }),
158
- /* @__PURE__ */ s.jsx(x, { verificationService: e })
161
+ /* @__PURE__ */ s.jsx(h, { verificationService: e })
159
162
  ] });
160
- }, N = ({ verificationService: e }) => {
161
- const i = e.verificationResponse.currentState === "collectOrganizationEmail";
162
- return /* @__PURE__ */ s.jsx("div", { id: "sid-step-email-loop", className: "sid-step-email-loop-container sid-l-container", children: i ? /* @__PURE__ */ s.jsx(L, { verificationService: e }) : /* @__PURE__ */ s.jsx(f, { verificationService: e }) });
163
- }, z = E(N);
163
+ }, M = ({ verificationService: e }) => {
164
+ const l = e.verificationResponse.currentState === "collectOrganizationEmail";
165
+ 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 }) });
166
+ }, C = L(M);
164
167
  export {
165
- z as default
168
+ C as default
166
169
  };
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index-C29suvHQ.js","sources":["../../src/components/StepEmailLoop/EmailLoopCollectOrganizationEmail.tsx","../../src/components/StepEmailLoop/StepEmailLoopComponent.tsx"],"sourcesContent":["import React from \"react\";\nimport produce from \"immer\";\n\nimport { FormattedHTMLMessage } from \"react-intl\";\nimport { LogoComponent } from \"../LogoComponent/LogoComponent\";\nimport { FormFooterComponent as FormFooter } from \"../FormFooter/FormFooterComponent\";\nimport { FormFieldText } from \"../FormFields/FormFieldText/FormFieldText\";\nimport {\n updateFieldValidationErrorsByFieldId,\n submitForm,\n} from \"../../lib/utils/stepComponentHelpers/stepComponentHelpers\";\n\nimport { VerificationStepsEnum } from \"../../lib/types/runtimeTypes\";\nimport { logger } from \"../../lib/utils/logger/logger\";\nimport {\n EmailLoopCollectOrganizationEmailViewModel,\n VerificationService,\n} from \"../../lib/types/types\";\nimport { AnnouncingHeader } from \"../AnnouncingHeader/AnnouncingHeader\";\n\nexport const EmailLoopCollectOrganizationEmail = ({\n verificationService,\n}: {\n verificationService: VerificationService;\n}) => {\n const viewModel = verificationService.viewModel as EmailLoopCollectOrganizationEmailViewModel;\n const { fieldValidationErrors } = verificationService;\n const isInvalidOrgEmail = (verificationService.verificationResponse?.errorIds || []).includes(\n \"invalidEmail\",\n );\n\n const setEmailValue = (organizationEmail: string) => {\n verificationService.updateViewModel({ ...viewModel, organizationEmail });\n updateFieldValidationErrorsByFieldId(\n \"organizationEmail\",\n organizationEmail,\n verificationService,\n );\n };\n\n const cancelEmailLoop = async () => {\n logger.info(\"StepEmailLoopComponent submitting form after skipping email loop\");\n const nextState = produce(viewModel, () => {});\n return verificationService.submitStep(\n VerificationStepsEnum.cancelEmailLoop,\n nextState,\n verificationService.verificationResponse,\n );\n };\n\n const handleSubmit = React.useCallback(\n (e: React.FormEvent<HTMLFormElement>) => {\n e.preventDefault();\n submitForm(\n viewModel,\n verificationService,\n VerificationStepsEnum.emailLoopCollectOrganizationEmail,\n );\n },\n [viewModel, verificationService],\n );\n\n return (\n <>\n <div className=\"sid-header sid-l-horz-center\">\n <div role=\"main\">\n <div className=\"sid-sso-logo-container sid-l-horz-center\">\n <LogoComponent\n verificationService={verificationService}\n fallbackLogo={\n <img\n className=\"sid-sso-logo-default sid-l-lead-image\"\n alt=\"\"\n src=\"https://assets-resources.sheerid.com/common/images/2018/icons/doc-pending.svg\"\n />\n }\n />\n </div>\n <div className=\"sid-preheader-label sid-l-space-top-md\">\n <span className=\"sid-h-label\">\n <FormattedHTMLMessage id=\"instant\" defaultMessage=\"Instant\" />\n </span>\n </div>\n <AnnouncingHeader align=\"center\">\n <FormattedHTMLMessage\n id=\"step.emailLoop.collectOrganizationEmail.title\"\n defaultMessage=\"Verify using your work email address\"\n tagName=\"h1\"\n />\n </AnnouncingHeader>\n <div className=\"sid-header__subtitle-one\">\n <FormattedHTMLMessage\n id=\"step.emailLoop.collectOrganizationEmail.subtitle\"\n defaultMessage=\"Enter the email address provided by your employer and we'll send you a verification link\"\n />\n </div>\n </div>\n\n <form\n onSubmit={handleSubmit}\n className=\"sid-form-region sid-email-submit sid-submit-wrapper sid-l-space-top-md\"\n >\n <FormFieldText\n fieldId=\"emailOverride\"\n value={viewModel.organizationEmail}\n onChange={setEmailValue}\n placeholder=\"\"\n label={\n <FormattedHTMLMessage\n id=\"step.emailLoop.collectOrganizationEmail.email.label\"\n defaultMessage=\"Work email address\"\n />\n }\n errorMessage={\n (isInvalidOrgEmail && (\n <FormattedHTMLMessage\n id=\"step.emailLoop.errors.invalidEmail\"\n defaultMessage=\"This email address is not valid for instant verification. Please use an email address provided by your employer or upload documentation below.\"\n />\n )) ||\n (fieldValidationErrors.organizationEmail && (\n <FormattedHTMLMessage id=\"emailIds.invalidEmail\" defaultMessage=\"Invalid email\" />\n ))\n }\n />\n <div className=\"sid-l-space-top-sm\">\n <button\n id=\"sid-submit-btn-sso\"\n type=\"submit\"\n disabled={!!fieldValidationErrors.organizationEmail}\n className=\"sid-btn sid-sso-submit-btn sid-btn--dark sid-l-full-width \"\n aria-label=\"submit\"\n >\n <FormattedHTMLMessage\n id=\"step.emailLoop.collectOrganizationEmail.email.send\"\n defaultMessage=\"Send Email\"\n />\n </button>\n </div>\n\n <div className=\"sid-form-region sid-l-space-top-lg sid-l-horz-center\">\n <div className=\"sid-header__subtitle-two sid-h-bold-text\">\n <FormattedHTMLMessage\n id=\"step.emailLoop.collectOrganizationEmail.alternative\"\n defaultMessage=\"Unable to access a work email address?\"\n />\n </div>\n <div className=\"sid-form-region sid-l-space-btm-sm sid-l-space-top-sm\">\n <FormattedHTMLMessage\n id=\"step.sso.alternative\"\n defaultMessage=\"You can also verify by uploading proof of eligibility\"\n />\n </div>\n <div className=\"sid-l-space-top-sm\">\n <button\n onClick={cancelEmailLoop}\n className=\"sid-h-btn-link-like sid-link sid-h-bold-text\"\n type=\"button\"\n >\n <FormattedHTMLMessage\n id=\"step.sso.cancel\"\n defaultMessage=\"Upload Proof of Enrollment\"\n />\n </button>\n </div>\n </div>\n\n <div className=\"sid-l-space-top-lg\" />\n </form>\n </div>\n <FormFooter verificationService={verificationService} />\n </>\n );\n};\n","import React from \"react\";\nimport { injectIntl, InjectedIntl } from \"react-intl\";\n\nimport { EmailLoopResponse, VerificationService } from \"../../lib/types/types\";\n\nimport { EmailLoopCollectOrganizationEmail } from \"./EmailLoopCollectOrganizationEmail\";\nimport { EmailLoopPendingComponent } from \"./EmailLoopPending\";\n\nexport interface StepEmailLoopComponentProps {\n // eslint-disable-next-line react/no-unused-prop-types -- this prop type is reused in the sub components\n intl: InjectedIntl;\n verificationService: VerificationService;\n}\n\nexport const StepEmailLoop = ({ verificationService }: StepEmailLoopComponentProps) => {\n const isCollectOrgEmailState =\n (verificationService.verificationResponse as EmailLoopResponse).currentState ===\n \"collectOrganizationEmail\";\n return (\n <div id=\"sid-step-email-loop\" className=\"sid-step-email-loop-container sid-l-container\">\n {isCollectOrgEmailState ? (\n <EmailLoopCollectOrganizationEmail verificationService={verificationService} />\n ) : (\n <EmailLoopPendingComponent verificationService={verificationService} />\n )}\n </div>\n );\n};\n\nexport const StepEmailLoopComponent = injectIntl(StepEmailLoop);\n"],"names":["EmailLoopCollectOrganizationEmail","verificationService","viewModel","fieldValidationErrors","isInvalidOrgEmail","_a","setEmailValue","organizationEmail","updateFieldValidationErrorsByFieldId","cancelEmailLoop","logger","nextState","produce","VerificationStepsEnum","handleSubmit","React","e","submitForm","jsxs","Fragment","jsx","LogoComponent","FormattedHTMLMessage","AnnouncingHeader","FormFieldText","FormFooter","StepEmailLoop","isCollectOrgEmailState","EmailLoopPendingComponent","StepEmailLoopComponent","injectIntl"],"mappings":";;AAoBO,MAAMA,IAAoC,CAAC;AAAA,EAChD,qBAAAC;AACF,MAEM;;AACJ,QAAMC,IAAYD,EAAoB,WAChC,EAAE,uBAAAE,MAA0BF,GAC5BG,OAAqBC,IAAAJ,EAAoB,yBAApB,gBAAAI,EAA0C,aAAY,CAAI,GAAA;AAAA,IACnF;AAAA,EACF,GAEMC,IAAgB,CAACC,MAA8B;AACnD,IAAAN,EAAoB,gBAAgB,EAAE,GAAGC,GAAW,mBAAAK,GAAmB,GACvEC;AAAA,MACE;AAAA,MACAD;AAAA,MACAN;AAAA,IACF;AAAA,EACF,GAEMQ,IAAkB,YAAY;AAClC,IAAAC,EAAO,KAAK,kEAAkE;AACxE,UAAAC,IAAYC,EAAQV,GAAW,MAAM;AAAA,IAAA,CAAE;AAC7C,WAAOD,EAAoB;AAAA,MACzBY,EAAsB;AAAA,MACtBF;AAAA,MACAV,EAAoB;AAAA,IACtB;AAAA,EACF,GAEMa,IAAeC,EAAM;AAAA,IACzB,CAACC,MAAwC;AACvC,MAAAA,EAAE,eAAe,GACjBC;AAAA,QACEf;AAAA,QACAD;AAAA,QACAY,EAAsB;AAAA,MACxB;AAAA,IACF;AAAA,IACA,CAACX,GAAWD,CAAmB;AAAA,EACjC;AAEA,SAEIiB,gBAAAA,EAAA,KAAAC,YAAA,EAAA,UAAA;AAAA,IAACD,gBAAAA,EAAAA,KAAA,OAAA,EAAI,WAAU,gCACb,UAAA;AAAA,MAACA,gBAAAA,EAAAA,KAAA,OAAA,EAAI,MAAK,QACR,UAAA;AAAA,QAACE,gBAAAA,EAAAA,IAAA,OAAA,EAAI,WAAU,4CAC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AAA,gBACjB;AAAA,cAAA,EAEJ,CAAA;AAAA,YAAA,GACF;AAAA,YAEAF,gBAAAA,EAAAA,IAAC,OAAI,EAAA,WAAU,qBAAqB,CAAA;AAAA,UAAA;AAAA,QAAA;AAAA,MAAA;AAAA,IACtC,GACF;AAAA,IACAA,gBAAAA,MAACK,KAAW,qBAAAxB,EAA0C,CAAA;AAAA,EAAA,GACxD;AAEJ,GC/JayB,IAAgB,CAAC,EAAE,qBAAAzB,QAAuD;AAC/E,QAAA0B,IACH1B,EAAoB,qBAA2C,iBAChE;AACF,SACGmB,gBAAAA,EAAA,IAAA,OAAA,EAAI,IAAG,uBAAsB,WAAU,iDACrC,UAAAO,IACEP,gBAAAA,EAAA,IAAApB,GAAA,EAAkC,qBAAAC,EAA0C,CAAA,IAE5EmB,gBAAAA,EAAAA,IAAAQ,GAAA,EAA0B,qBAAA3B,EAA0C,CAAA,GAEzE;AAEJ,GAEa4B,IAAyBC,EAAWJ,CAAa;"}
@@ -1,8 +1,8 @@
1
1
 
2
2
  /**
3
- * VERSION: 2.115.0-alpha.2
4
- * BUILD_TIMESTAMP: 1751929030742
5
- * BUILD_DATE: Mon Jul 07 2025 22:57:10 GMT+0000 (Coordinated Universal Time)
3
+ * VERSION: 2.115.0-alpha.3
4
+ * BUILD_TIMESTAMP: 1751931324976
5
+ * BUILD_DATE: Mon Jul 07 2025 23:35:24 GMT+0000 (Coordinated Universal Time)
6
6
  * BUILD_COMMIT: 9b953bf464bb46df40df3f4b766e06f47b82b5aa
7
7
  */
8
8
  var b = Object.defineProperty;