@sheerid/jslib-nightly 2.104.0-alpha.1 → 2.105.0-alpha.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (467) hide show
  1. package/__tests__/__helpers__/renderers.d.ts +5 -5
  2. package/__tests__/e2e/collectInfo/collectInfo.spec.d.ts +1 -0
  3. package/_mysheerid-preview.css +4 -4
  4. package/_mysheerid-preview.js +16311 -17900
  5. package/_mysheerid-preview.js.map +1 -1
  6. package/chunk/{EmailLoopPending-Cp3dQjbH.js → EmailLoopPending-CKTAwQQA.js} +17 -17
  7. package/chunk/{EmailLoopPending-Cp3dQjbH.js.map → EmailLoopPending-CKTAwQQA.js.map} +1 -1
  8. package/chunk/{EmailLoopPending-WTPkkJsm.js → EmailLoopPending-Dzs07hxx.js} +17 -17
  9. package/chunk/{EmailLoopPending-WTPkkJsm.js.map → EmailLoopPending-Dzs07hxx.js.map} +1 -1
  10. package/chunk/{LicensedProfessionalOrganizationComponent-D7gWh3Qx.js → LicensedProfessionalOrganizationComponent-BNNNPaDn.js} +5 -5
  11. package/chunk/{LicensedProfessionalOrganizationComponent-D7gWh3Qx.js.map → LicensedProfessionalOrganizationComponent-BNNNPaDn.js.map} +1 -1
  12. package/chunk/{LicensedProfessionalOrganizationComponent-LYrmpWss.js → LicensedProfessionalOrganizationComponent-trZr_eIW.js} +5 -5
  13. package/chunk/{LicensedProfessionalOrganizationComponent-LYrmpWss.js.map → LicensedProfessionalOrganizationComponent-trZr_eIW.js.map} +1 -1
  14. package/chunk/{Onfido-AyvUk6wg.js → Onfido-CMH3IUna.js} +28 -28
  15. package/chunk/{Onfido-AyvUk6wg.js.map → Onfido-CMH3IUna.js.map} +1 -1
  16. package/chunk/{StepIDCheckLoopOnfido-CQTiZz60.js → StepIDCheckLoopOnfido-C9iUX8TC.js} +11 -12
  17. package/chunk/{StepIDCheckLoopOnfido-CQTiZz60.js.map → StepIDCheckLoopOnfido-C9iUX8TC.js.map} +1 -1
  18. package/chunk/{StepIDCheckLoopOnfido-CsO8JOUT.js → StepIDCheckLoopOnfido-lChJAp_W.js} +11 -12
  19. package/chunk/{StepIDCheckLoopOnfido-CsO8JOUT.js.map → StepIDCheckLoopOnfido-lChJAp_W.js.map} +1 -1
  20. package/chunk/{StepIDCheckLoopRegula-VCHUckkA.js → StepIDCheckLoopRegula-BB8xA4nn.js} +85 -59
  21. package/chunk/StepIDCheckLoopRegula-BB8xA4nn.js.map +1 -0
  22. package/chunk/{StepIDCheckLoopRegula-B2frgNDw.js → StepIDCheckLoopRegula-D8XhToQz.js} +85 -59
  23. package/chunk/StepIDCheckLoopRegula-D8XhToQz.js.map +1 -0
  24. package/chunk/{StepInactiveMilitaryPersonalInfoComponent-Dls2h-Cu.js → StepInactiveMilitaryPersonalInfoComponent-ClKql0Nd.js} +48 -48
  25. package/chunk/{StepInactiveMilitaryPersonalInfoComponent-CVpOu51H.js.map → StepInactiveMilitaryPersonalInfoComponent-ClKql0Nd.js.map} +1 -1
  26. package/chunk/{StepInactiveMilitaryPersonalInfoComponent-CVpOu51H.js → StepInactiveMilitaryPersonalInfoComponent-DXkei7Fp.js} +48 -48
  27. package/chunk/{StepInactiveMilitaryPersonalInfoComponent-Dls2h-Cu.js.map → StepInactiveMilitaryPersonalInfoComponent-DXkei7Fp.js.map} +1 -1
  28. package/chunk/ar-CtJ_9k3U.js +4 -4
  29. package/chunk/bg-CWxXfiDq.js +4 -4
  30. package/chunk/bn-IN-Dpq_hCqt.js +4 -4
  31. package/chunk/cs-HevyelX7.js +4 -4
  32. package/chunk/da-6QXhWjWH.js +4 -4
  33. package/chunk/de-ChuCvRLv.js +4 -4
  34. package/chunk/el-3IAhABcN.js +4 -4
  35. package/chunk/en-GB-ByNBaer-.js +4 -4
  36. package/chunk/es-CL_dUc9X.js +4 -4
  37. package/chunk/es-ES-CW4At4Ol.js +4 -4
  38. package/chunk/fi-D8cIebkk.js +4 -4
  39. package/chunk/fr-BDU-1C6f.js +4 -4
  40. package/chunk/fr-CA-Dc02rv8D.js +4 -4
  41. package/chunk/ga-P7eP-INQ.js +4 -4
  42. package/chunk/hi-IN-DlmwjoqH.js +4 -4
  43. package/chunk/hr-CT_VP_lm.js +4 -4
  44. package/chunk/hu-I8Z1uXsR.js +4 -4
  45. package/chunk/id-CUPTGKOT.js +4 -4
  46. package/chunk/{index-CgBENXRP.js → index-B1579hxf.js} +28 -28
  47. package/chunk/{index-tFgJS6bB.js.map → index-B1579hxf.js.map} +1 -1
  48. package/chunk/{index-DB9SisGK.js → index-B4B6qxaM.js} +15 -15
  49. package/chunk/{index-DB9SisGK.js.map → index-B4B6qxaM.js.map} +1 -1
  50. package/chunk/{index-BGCnajPS.js → index-B5okgMmp.js} +30 -30
  51. package/chunk/{index-BFMTiaJv.js.map → index-B5okgMmp.js.map} +1 -1
  52. package/chunk/{index-DPEoeYI6.js → index-B8tKf2Rd.js} +38 -38
  53. package/chunk/{index-CgSW4Vzh.js.map → index-B8tKf2Rd.js.map} +1 -1
  54. package/chunk/{index-XXxK9rgV.js → index-B92Kfyw6.js} +46 -46
  55. package/chunk/{index-XXxK9rgV.js.map → index-B92Kfyw6.js.map} +1 -1
  56. package/chunk/{index-CtqWr1aK.js → index-BDsZCFuU.js} +58 -58
  57. package/chunk/{index-CtqWr1aK.js.map → index-BDsZCFuU.js.map} +1 -1
  58. package/chunk/{index-aKTpkBwz.js → index-BGGHZBWq.js} +56 -48
  59. package/chunk/{index-aKTpkBwz.js.map → index-BGGHZBWq.js.map} +1 -1
  60. package/chunk/{index-B3NA0DdP.js → index-BW4s6-PH.js} +46 -46
  61. package/chunk/{index-B3NA0DdP.js.map → index-BW4s6-PH.js.map} +1 -1
  62. package/chunk/{index-MRhfTdmm.js → index-BYMr8It7.js} +15 -15
  63. package/chunk/{index-MRhfTdmm.js.map → index-BYMr8It7.js.map} +1 -1
  64. package/chunk/{index-CgSW4Vzh.js → index-BjaCS2a8.js} +38 -38
  65. package/{lib/index-DIJ3ZLm3.js.map → chunk/index-BjaCS2a8.js.map} +1 -1
  66. package/chunk/{index-BDw8efPp.js → index-Bld-AWYE.js} +11 -11
  67. package/chunk/{index-BhkJfnda.js.map → index-Bld-AWYE.js.map} +1 -1
  68. package/chunk/{index-C9bZ7enn.js → index-BnPrfsM1.js} +7 -7
  69. package/chunk/{index-2QV6VPA3.js.map → index-BnPrfsM1.js.map} +1 -1
  70. package/chunk/{index-NjSUlAP4.js → index-BqnEM3hj.js} +54 -54
  71. package/chunk/index-BqnEM3hj.js.map +1 -0
  72. package/chunk/{index-RmF57u5_.js → index-BrkIzqD1.js} +57 -54
  73. package/chunk/index-BrkIzqD1.js.map +1 -0
  74. package/chunk/index-BupTUiiS.js +27 -0
  75. package/chunk/index-BupTUiiS.js.map +1 -0
  76. package/chunk/{index-BPEB_HHW.js → index-BvGP9l7M.js} +237 -219
  77. package/chunk/index-BvGP9l7M.js.map +1 -0
  78. package/chunk/index-C7nYtBX_.js +172 -0
  79. package/chunk/index-C7nYtBX_.js.map +1 -0
  80. package/chunk/{index-BtYzUCrC.js → index-CCUi9Uhw.js} +11 -11
  81. package/chunk/{index-qAxcloBs.js.map → index-CCUi9Uhw.js.map} +1 -1
  82. package/chunk/{index-DZsw9-0u.js → index-CEi_QkyI.js} +237 -219
  83. package/chunk/index-CEi_QkyI.js.map +1 -0
  84. package/chunk/index-CLCPYu7D.js +176 -0
  85. package/chunk/index-CLCPYu7D.js.map +1 -0
  86. package/chunk/{index-BhkJfnda.js → index-CZjGTko2.js} +11 -11
  87. package/chunk/{index-BDw8efPp.js.map → index-CZjGTko2.js.map} +1 -1
  88. package/chunk/{index-Dl7QItmr.js → index-CfUabHav.js} +56 -48
  89. package/chunk/{index-Dl7QItmr.js.map → index-CfUabHav.js.map} +1 -1
  90. package/chunk/{index-qAxcloBs.js → index-CjcHzfTY.js} +11 -11
  91. package/chunk/{index-BtYzUCrC.js.map → index-CjcHzfTY.js.map} +1 -1
  92. package/chunk/{index-DWjrZunN.js → index-Cp0C-9fh.js} +8 -8
  93. package/{lib/index-BpAwd4yZ.js.map → chunk/index-Cp0C-9fh.js.map} +1 -1
  94. package/chunk/{index-D3dphMnl.js → index-Cq__fToG.js} +15 -15
  95. package/chunk/{index-CaSKZsTY.js.map → index-Cq__fToG.js.map} +1 -1
  96. package/chunk/{index-DFQ4PjGJ.js → index-D6oLMvTq.js} +58 -58
  97. package/chunk/{index-DFQ4PjGJ.js.map → index-D6oLMvTq.js.map} +1 -1
  98. package/chunk/{index-tFgJS6bB.js → index-D7O7vvSe.js} +28 -28
  99. package/{lib/index-CFbGwQvV.js.map → chunk/index-D7O7vvSe.js.map} +1 -1
  100. package/chunk/{index-BFMTiaJv.js → index-DGGRPaEI.js} +30 -30
  101. package/chunk/{index-BGCnajPS.js.map → index-DGGRPaEI.js.map} +1 -1
  102. package/chunk/index-DIkWpujR.js +4 -4
  103. package/chunk/index-DIkWpujR.js.map +1 -1
  104. package/chunk/{index-DIV55Je2.js → index-DPv0lytr.js} +18 -18
  105. package/chunk/{index-DIV55Je2.js.map → index-DPv0lytr.js.map} +1 -1
  106. package/chunk/{index-4APDQFqJ.js → index-DSrYVtDo.js} +8 -8
  107. package/chunk/{index-4APDQFqJ.js.map → index-DSrYVtDo.js.map} +1 -1
  108. package/chunk/{index-D7dDB9pN.js → index-Dba2dHcR.js} +18 -18
  109. package/chunk/{index-D7dDB9pN.js.map → index-Dba2dHcR.js.map} +1 -1
  110. package/chunk/{index-CaSKZsTY.js → index-DhpucFa7.js} +15 -15
  111. package/{lib/index-CWWXURVN.js.map → chunk/index-DhpucFa7.js.map} +1 -1
  112. package/chunk/{index-_ohn63ug.js → index-DnCqjuSC.js} +29 -29
  113. package/chunk/{index-B30_E6pJ.js.map → index-DnCqjuSC.js.map} +1 -1
  114. package/chunk/{index-B30_E6pJ.js → index-DpYUZXus.js} +29 -29
  115. package/chunk/{index-_ohn63ug.js.map → index-DpYUZXus.js.map} +1 -1
  116. package/chunk/{index-oMg5zy_2.js → index-F6_JySe5.js} +54 -54
  117. package/chunk/index-F6_JySe5.js.map +1 -0
  118. package/chunk/{index-2QV6VPA3.js → index-YmkMflXj.js} +7 -7
  119. package/chunk/{index-C9bZ7enn.js.map → index-YmkMflXj.js.map} +1 -1
  120. package/chunk/{index-C0jDbJPp.js → index-eYM75vHB.js} +57 -54
  121. package/chunk/index-eYM75vHB.js.map +1 -0
  122. package/chunk/index-iZ8pO5if.js +31 -0
  123. package/chunk/index-iZ8pO5if.js.map +1 -0
  124. package/chunk/is-CUuXi4qZ.js +4 -4
  125. package/chunk/it-BNmynTsg.js +4 -4
  126. package/chunk/iw-FGzquR_X.js +4 -4
  127. package/chunk/ja-YgUpXA0l.js +4 -4
  128. package/chunk/ko-CuNS5J_M.js +4 -4
  129. package/chunk/lo-BEf8aFjR.js +4 -4
  130. package/chunk/lt-DvX1gz1a.js +4 -4
  131. package/chunk/ms-gSqM-Mfi.js +4 -4
  132. package/chunk/nl-BE-Cid5LFlN.js +4 -4
  133. package/chunk/nl-CUUTswxa.js +4 -4
  134. package/chunk/no-BvUqlShV.js +4 -4
  135. package/chunk/pl-CU8leZhI.js +4 -4
  136. package/chunk/pt-BR-CboWpHFi.js +4 -4
  137. package/chunk/pt-BnK7xRT_.js +4 -4
  138. package/chunk/ro-BfAyXxSW.js +4 -4
  139. package/chunk/ru-BD-YGPuQ.js +4 -4
  140. package/chunk/sk-CqsabpdG.js +4 -4
  141. package/chunk/sl-CeVAf0S_.js +4 -4
  142. package/chunk/sr-DSaHxcCQ.js +4 -4
  143. package/chunk/sv-DOyWYViy.js +4 -4
  144. package/chunk/sw-2Q7Jo6wp.js +4 -4
  145. package/chunk/th-BZ6F9sPf.js +4 -4
  146. package/chunk/tr-om80xrv2.js +4 -4
  147. package/chunk/uk-Dxugux8e.js +4 -4
  148. package/chunk/ur-OBILUeZ7.js +4 -4
  149. package/chunk/{useCollectFieldsEndpoint-BsY8WlOg.js → useCollectFieldsEndpoint-C5fsaYJe.js} +11 -11
  150. package/chunk/{useCollectFieldsEndpoint-BsY8WlOg.js.map → useCollectFieldsEndpoint-C5fsaYJe.js.map} +1 -1
  151. package/chunk/{useCollectFieldsEndpoint-DeICm6Vb.js → useCollectFieldsEndpoint-kmLFyUA-.js} +11 -11
  152. package/chunk/{useCollectFieldsEndpoint-DeICm6Vb.js.map → useCollectFieldsEndpoint-kmLFyUA-.js.map} +1 -1
  153. package/chunk/{useEmailFirstExperiment-3uKuefem.js → useEmailFirstExperiment-CSa3DQll.js} +30 -29
  154. package/chunk/{useEmailFirstExperiment-3uKuefem.js.map → useEmailFirstExperiment-CSa3DQll.js.map} +1 -1
  155. package/chunk/{useEmailFirstExperiment-B1_E_D0z.js → useEmailFirstExperiment-DZ1B78ke.js} +30 -29
  156. package/chunk/{useEmailFirstExperiment-B1_E_D0z.js.map → useEmailFirstExperiment-DZ1B78ke.js.map} +1 -1
  157. package/chunk/vi-BOR2GuRI.js +4 -4
  158. package/chunk/zh-HK-BI-IHOGG.js +4 -4
  159. package/chunk/zh-eoMG5RFC.js +4 -4
  160. package/chunk/zu-D_A8wcJW.js +4 -4
  161. package/dev/programIds.d.ts +1 -1
  162. package/es6.css +4 -4
  163. package/jslib.js +15 -15
  164. package/lib/{EmailLoopPending-CqGboDpE.js → EmailLoopPending-Dv5RU8aW.js} +8 -8
  165. package/lib/{EmailLoopPending-CqGboDpE.js.map → EmailLoopPending-Dv5RU8aW.js.map} +1 -1
  166. package/lib/{LicensedProfessionalOrganizationComponent-DZ-zCLNb.js → LicensedProfessionalOrganizationComponent-DtoPR91l.js} +5 -5
  167. package/lib/{LicensedProfessionalOrganizationComponent-DZ-zCLNb.js.map → LicensedProfessionalOrganizationComponent-DtoPR91l.js.map} +1 -1
  168. package/lib/{Onfido-AyvUk6wg.js → Onfido-CMH3IUna.js} +28 -28
  169. package/lib/{Onfido-AyvUk6wg.js.map → Onfido-CMH3IUna.js.map} +1 -1
  170. package/lib/StepCollectMilitaryStatusComponent-DGfjdYFR.js +11 -0
  171. package/lib/{StepCollectMilitaryStatusComponent-BdghJG7J.js.map → StepCollectMilitaryStatusComponent-DGfjdYFR.js.map} +1 -1
  172. package/lib/{StepIDCheckLoopOnfido-C6a2v64o.js → StepIDCheckLoopOnfido-DiSAKwu6.js} +5 -5
  173. package/lib/{StepIDCheckLoopOnfido-C6a2v64o.js.map → StepIDCheckLoopOnfido-DiSAKwu6.js.map} +1 -1
  174. package/lib/{StepIDCheckLoopRegula-B4gdB1au.js → StepIDCheckLoopRegula-Cbr1wxzD.js} +16 -17
  175. package/lib/StepIDCheckLoopRegula-Cbr1wxzD.js.map +1 -0
  176. package/lib/{StepInactiveMilitaryPersonalInfoComponent-DIS37EQl.js → StepInactiveMilitaryPersonalInfoComponent-CEneK5BB.js} +44 -44
  177. package/lib/{StepInactiveMilitaryPersonalInfoComponent-DIS37EQl.js.map → StepInactiveMilitaryPersonalInfoComponent-CEneK5BB.js.map} +1 -1
  178. package/lib/VerificationApiUtils-BaeyxwKQ.js +21 -0
  179. package/lib/{VerificationApiUtils-Dec-3NxE.js.map → VerificationApiUtils-BaeyxwKQ.js.map} +1 -1
  180. package/lib/ar-CtJ_9k3U.js +4 -4
  181. package/lib/bg-CWxXfiDq.js +4 -4
  182. package/lib/bn-IN-Dpq_hCqt.js +4 -4
  183. package/lib/cs-HevyelX7.js +4 -4
  184. package/lib/da-6QXhWjWH.js +4 -4
  185. package/lib/de-ChuCvRLv.js +4 -4
  186. package/lib/el-3IAhABcN.js +4 -4
  187. package/lib/en-GB-ByNBaer-.js +4 -4
  188. package/lib/es-CL_dUc9X.js +4 -4
  189. package/lib/es-ES-CW4At4Ol.js +4 -4
  190. package/lib/{es6-CNbgOM7D.js → es6-DIUKg5Yl.js} +12458 -13664
  191. package/lib/es6-DIUKg5Yl.js.map +1 -0
  192. package/lib/fi-D8cIebkk.js +4 -4
  193. package/lib/fr-BDU-1C6f.js +4 -4
  194. package/lib/fr-CA-Dc02rv8D.js +4 -4
  195. package/lib/ga-P7eP-INQ.js +4 -4
  196. package/lib/hi-IN-DlmwjoqH.js +4 -4
  197. package/lib/hr-CT_VP_lm.js +4 -4
  198. package/lib/hu-I8Z1uXsR.js +4 -4
  199. package/lib/id-CUPTGKOT.js +4 -4
  200. package/lib/{index-CwEH1Xqn.js → index-348MFV_0.js} +5 -5
  201. package/lib/{index-CwEH1Xqn.js.map → index-348MFV_0.js.map} +1 -1
  202. package/lib/{index-CF4-uNPC.js → index-5FO_J7_Z.js} +27 -27
  203. package/lib/{index-CF4-uNPC.js.map → index-5FO_J7_Z.js.map} +1 -1
  204. package/lib/{index-DiEccR2E.js → index-B8tJDCPk.js} +27 -27
  205. package/lib/{index-DiEccR2E.js.map → index-B8tJDCPk.js.map} +1 -1
  206. package/lib/{index-Da-h4i4f.js → index-BNxZc3yj.js} +20 -20
  207. package/lib/{index-Da-h4i4f.js.map → index-BNxZc3yj.js.map} +1 -1
  208. package/lib/{index-CFbGwQvV.js → index-BR7Obj6X.js} +32 -32
  209. package/{chunk/index-CgBENXRP.js.map → lib/index-BR7Obj6X.js.map} +1 -1
  210. package/lib/index-BfZIEtAp.js +174 -0
  211. package/lib/index-BfZIEtAp.js.map +1 -0
  212. package/lib/{index-BpAwd4yZ.js → index-BwlcJZwR.js} +8 -8
  213. package/{chunk/index-DWjrZunN.js.map → lib/index-BwlcJZwR.js.map} +1 -1
  214. package/lib/{index-CFdjELC4.js → index-CEOPDO2Y.js} +30 -27
  215. package/lib/index-CEOPDO2Y.js.map +1 -0
  216. package/lib/{index-U8Xg6WS9.js → index-CGjXCGni.js} +20 -20
  217. package/lib/{index-U8Xg6WS9.js.map → index-CGjXCGni.js.map} +1 -1
  218. package/lib/index-CLowb6Wx.js +11 -0
  219. package/lib/index-CLowb6Wx.js.map +1 -0
  220. package/lib/{index-Bs8gT2Ki.js → index-CT2Bcg4x.js} +5 -5
  221. package/lib/{index-Bs8gT2Ki.js.map → index-CT2Bcg4x.js.map} +1 -1
  222. package/lib/{index-BgxQ03Lw.js → index-CUzHMJTj.js} +26 -26
  223. package/lib/{index-BgxQ03Lw.js.map → index-CUzHMJTj.js.map} +1 -1
  224. package/lib/{index-Dz5MfyRl.js → index-CeXTXAJi.js} +60 -60
  225. package/lib/{index-Dz5MfyRl.js.map → index-CeXTXAJi.js.map} +1 -1
  226. package/lib/index-DIkWpujR.js +4 -4
  227. package/lib/index-DIkWpujR.js.map +1 -1
  228. package/lib/index-DPs8xffH.js +11 -0
  229. package/lib/index-DPs8xffH.js.map +1 -0
  230. package/lib/index-DWo3Cysb.js +11 -0
  231. package/lib/index-DWo3Cysb.js.map +1 -0
  232. package/lib/index-DXdjJ-86.js +28 -0
  233. package/lib/{index-BqMoknWH.js.map → index-DXdjJ-86.js.map} +1 -1
  234. package/lib/{index-JHJAgNn2.js → index-DdQXDuhi.js} +9 -9
  235. package/lib/{index-JHJAgNn2.js.map → index-DdQXDuhi.js.map} +1 -1
  236. package/lib/{index-s1MF80_2.js → index-LZPXbSqW.js} +402 -385
  237. package/lib/index-LZPXbSqW.js.map +1 -0
  238. package/lib/{index-DIJ3ZLm3.js → index-MzEDmZWe.js} +16 -16
  239. package/{chunk/index-DPEoeYI6.js.map → lib/index-MzEDmZWe.js.map} +1 -1
  240. package/lib/index-TKSJ1nbf.js +11 -0
  241. package/lib/index-TKSJ1nbf.js.map +1 -0
  242. package/lib/{index-CWWXURVN.js → index-UiGEZV81.js} +5 -5
  243. package/{chunk/index-D3dphMnl.js.map → lib/index-UiGEZV81.js.map} +1 -1
  244. package/lib/{index-CHCJ1GKm.js → index-ed6oGI-U.js} +7 -7
  245. package/lib/{index-CHCJ1GKm.js.map → index-ed6oGI-U.js.map} +1 -1
  246. package/lib/{index-B-vvoe4K.js → index-s5CW4RjM.js} +61 -61
  247. package/lib/index-s5CW4RjM.js.map +1 -0
  248. package/lib/is-CUuXi4qZ.js +4 -4
  249. package/lib/it-BNmynTsg.js +4 -4
  250. package/lib/iw-FGzquR_X.js +4 -4
  251. package/lib/ja-YgUpXA0l.js +4 -4
  252. package/lib/ko-CuNS5J_M.js +4 -4
  253. package/lib/lo-BEf8aFjR.js +4 -4
  254. package/lib/lt-DvX1gz1a.js +4 -4
  255. package/lib/ms-gSqM-Mfi.js +4 -4
  256. package/lib/nl-BE-Cid5LFlN.js +4 -4
  257. package/lib/nl-CUUTswxa.js +4 -4
  258. package/lib/no-BvUqlShV.js +4 -4
  259. package/lib/pl-CU8leZhI.js +4 -4
  260. package/lib/pt-BR-CboWpHFi.js +4 -4
  261. package/lib/pt-BnK7xRT_.js +4 -4
  262. package/lib/ro-BfAyXxSW.js +4 -4
  263. package/lib/ru-BD-YGPuQ.js +4 -4
  264. package/lib/sk-CqsabpdG.js +4 -4
  265. package/lib/sl-CeVAf0S_.js +4 -4
  266. package/lib/sr-DSaHxcCQ.js +4 -4
  267. package/lib/sv-DOyWYViy.js +4 -4
  268. package/lib/sw-2Q7Jo6wp.js +4 -4
  269. package/lib/th-BZ6F9sPf.js +4 -4
  270. package/lib/tr-om80xrv2.js +4 -4
  271. package/lib/uk-Dxugux8e.js +4 -4
  272. package/lib/ur-OBILUeZ7.js +4 -4
  273. package/lib/{useCollectFieldsEndpoint-DLjeRtxA.js → useCollectFieldsEndpoint-CS1fVgEX.js} +6 -6
  274. package/lib/{useCollectFieldsEndpoint-DLjeRtxA.js.map → useCollectFieldsEndpoint-CS1fVgEX.js.map} +1 -1
  275. package/lib/{useEmailFirstExperiment-RXZazerr.js → useEmailFirstExperiment-Co9DPGhK.js} +7 -6
  276. package/lib/{useEmailFirstExperiment-RXZazerr.js.map → useEmailFirstExperiment-Co9DPGhK.js.map} +1 -1
  277. package/lib/vi-BOR2GuRI.js +4 -4
  278. package/lib/zh-HK-BI-IHOGG.js +4 -4
  279. package/lib/zh-eoMG5RFC.js +4 -4
  280. package/lib/zu-D_A8wcJW.js +4 -4
  281. package/package.json +4 -4
  282. package/sheerid-install.css +4 -4
  283. package/sheerid-install.js +6 -6
  284. package/sheerid-install.js.map +1 -1
  285. package/sheerid.css +5 -5
  286. package/sheerid.js +16329 -17918
  287. package/sheerid.js.map +1 -1
  288. package/src/components/AcceptableUploadsComponent/AcceptableUploadsComponent.d.ts +1 -1
  289. package/src/components/AcceptableUploadsComponent/getLegacyAcceptableUploads.d.ts +1 -1
  290. package/src/components/Button/Button.d.ts +0 -1
  291. package/src/components/CopyToClipboard/CopyToClipboardComponent.d.ts +1 -2
  292. package/src/components/CustomCssContext/CustomCssContextProvider.d.ts +1 -1
  293. package/src/components/DateComponent/DateComponent.d.ts +2 -2
  294. package/src/components/ExtraMessage.d.ts +1 -1
  295. package/src/components/FaqLink/FaqLinkComponent.d.ts +1 -1
  296. package/src/components/FeatureFlags/ExperimentComponent/ExperimentComponent.d.ts +4 -4
  297. package/src/components/FetchOrganizationsComponent.d.ts +1 -1
  298. package/src/components/FormFields/ActiveDutyStartDate/ActiveDutyStartDateComponent.d.ts +1 -1
  299. package/src/components/FormFields/Address/AddressComponent.d.ts +2 -2
  300. package/src/components/FormFields/BirthDate/BirthDateComponent.d.ts +1 -1
  301. package/src/components/FormFields/BranchOfService/BranchOfServiceComponent.d.ts +2 -2
  302. package/src/components/FormFields/CVECNumber/CVECNumberComponent.d.ts +2 -2
  303. package/src/components/FormFields/ChangeLocale/ChangeLocaleComponent.d.ts +3 -3
  304. package/src/components/FormFields/City/City.d.ts +2 -2
  305. package/src/components/FormFields/CollegeName/CollegeNameComponent.d.ts +2 -2
  306. package/src/components/FormFields/Company/CompanyComponent.d.ts +2 -2
  307. package/src/components/FormFields/Country/CountryComponent.d.ts +2 -2
  308. package/src/components/FormFields/Country/CountryComponentWrapper.d.ts +2 -2
  309. package/src/components/FormFields/DischargeDate/DischargeDateComponent.d.ts +1 -1
  310. package/src/components/FormFields/DriverLicenseNumber/DriverLicenseNumberComponent.d.ts +2 -2
  311. package/src/components/FormFields/EBTCardNumber/EBTCardNumberComponent.d.ts +2 -2
  312. package/src/components/FormFields/Email/EmailComponent.d.ts +2 -2
  313. package/src/components/FormFields/EmailFirstCollectInfo/EmailLookupResponseMessageComponent.d.ts +1 -1
  314. package/src/components/FormFields/EmailFirstCollectInfo/useEmailFirstExperiment.d.ts +1 -1
  315. package/src/components/FormFields/FirstName/FirstNameComponent.d.ts +2 -2
  316. package/src/components/FormFields/FirstResponderOrganization/FirstResponderOrganizationComponent.d.ts +2 -2
  317. package/src/components/FormFields/FormFieldCustom/FormFieldCustom.d.ts +2 -2
  318. package/src/components/FormFields/FormFieldInputSelect/FormFieldInputSelect.d.ts +1 -1
  319. package/src/components/FormFields/FormFieldRadio/FormFieldRadio.d.ts +2 -2
  320. package/src/components/FormFields/FormFieldSelect/FormFieldSelect.d.ts +2 -2
  321. package/src/components/FormFields/FormFieldText/FormFieldText.d.ts +1 -1
  322. package/src/components/FormFields/FormFieldTypeahead/FormFieldTypeahead.d.ts +2 -2
  323. package/src/components/FormFields/LastName/LastNameComponent.d.ts +2 -2
  324. package/src/components/FormFields/LicensedProfessionalOrganization/LicensedProfessionalOrganizationComponent.d.ts +2 -2
  325. package/src/components/FormFields/LowIncomeOrganization/LowIncomeOrganizationComponent.d.ts +2 -2
  326. package/src/components/FormFields/MarketConsentWrapper/MarketConsentWrapperComponent.d.ts +1 -1
  327. package/src/components/FormFields/MedicalProfessionalOrganization/MedicalProfessionalOrganizationComponent.d.ts +2 -2
  328. package/src/components/FormFields/MemberId/MemberIdComponent.d.ts +2 -2
  329. package/src/components/FormFields/MembershipOrganization/MembershipOrganizationComponent.d.ts +2 -2
  330. package/src/components/FormFields/OptIn/OptInComponent.d.ts +1 -1
  331. package/src/components/FormFields/OverrideCode/OverrideCodeComponent.d.ts +2 -2
  332. package/src/components/FormFields/PhoneNumber/PhoneNumberComponent.d.ts +2 -2
  333. package/src/components/FormFields/PostalCode/PostalCodeComponent.d.ts +2 -2
  334. package/src/components/FormFields/SMSCode/SMSCodeComponent.d.ts +2 -2
  335. package/src/components/FormFields/SSN/SSN.d.ts +2 -2
  336. package/src/components/FormFields/State/State.d.ts +2 -2
  337. package/src/components/FormFields/State/StateSelectComponent.d.ts +2 -2
  338. package/src/components/FormFields/Status/StatusComponent.d.ts +2 -2
  339. package/src/components/FormFields/TeacherSchool/TeacherSchoolComponent.d.ts +2 -2
  340. package/src/components/FormFooter/FooterTextComponent.d.ts +1 -1
  341. package/src/components/FormFooter/FormFooterComponent.d.ts +1 -1
  342. package/src/components/FormHeader/FormHeaderComponent.d.ts +1 -1
  343. package/src/components/FormHeader/StepHeaders/PersonalInfoHeaderComponent.d.ts +1 -1
  344. package/src/components/FormInputs/InputRadio/InputRadio.d.ts +1 -1
  345. package/src/components/FormInputs/InputSelect/InputSelectComponent.d.ts +1 -1
  346. package/src/components/FormInputs/InputSelect/InputSelectList/InputSelectListComponent.d.ts +1 -1
  347. package/src/components/FormInputs/PostalCodeInput/PostalCodeInputComponent.d.ts +1 -1
  348. package/src/components/FormInputs/Select/SelectComponent.d.ts +1 -1
  349. package/src/components/FormInputs/Select/SelectList/SelectListComponent.d.ts +1 -1
  350. package/src/components/FormInputs/Typeahead/TypeaheadComponent.d.ts +1 -1
  351. package/src/components/FormInputs/Typeahead/TypeaheadComponentHelper.d.ts +1 -1
  352. package/src/components/HowDoesVerifyingWork/HowDoesVerifyingWorkComponent.d.ts +1 -1
  353. package/src/components/Layout/Layout.d.ts +1 -1
  354. package/src/components/LoadStepComponent.d.ts +1 -1
  355. package/src/components/LoadingScreen/LoadingScreenComponent.d.ts +1 -1
  356. package/src/components/LoadingScreen/LoadingScreenMessage.d.ts +1 -1
  357. package/src/components/LogoComponent/LogoComponent.d.ts +1 -1
  358. package/src/components/NewVerificationComponent.d.ts +3 -3
  359. package/src/components/NewVerificationInnerComponent.d.ts +1 -1
  360. package/src/components/OrganizationList/OrganizationListComponent.d.ts +1 -1
  361. package/src/components/PersonalInfoStepSubmitButton/PersonalInfoStepSubmitButton.d.ts +2 -2
  362. package/src/components/PersonalInfoStepWrapper/PersonalInfoStepWrapper.d.ts +1 -2
  363. package/src/components/PoweredBy/PoweredByComponent.d.ts +1 -1
  364. package/src/components/PrivacyPolicyLink/PrivacyPolicyLinkComponent.d.ts +2 -2
  365. package/src/components/RewardsRemaining/RewardsRemainingComponent.d.ts +1 -1
  366. package/src/components/SingleSignOnComponent.d.ts +2 -2
  367. package/src/components/StepAgePersonalInfo/StepAgePersonalInfoComponent.d.ts +2 -2
  368. package/src/components/StepCollectIdentifier/StepCollectIdentifierComponent.d.ts +1 -1
  369. package/src/components/StepCollectPersonalInfo/StepCollectPersonalInfoComponent.d.ts +2 -2
  370. package/src/components/StepConsolation/StepConsolationComponent.d.ts +1 -1
  371. package/src/components/StepDocUpload/StepDocUploadComponent.d.ts +1 -1
  372. package/src/components/StepEmailLoop/EmailLoopCollectOrganizationEmail.d.ts +1 -1
  373. package/src/components/StepEmailLoop/EmailLoopPending.d.ts +1 -1
  374. package/src/components/StepEmailLoop/StepEmailLoopComponent.d.ts +2 -2
  375. package/src/components/StepEmploymentPersonalInfo/StepEmploymentPersonalInfoComponent.d.ts +1 -1
  376. package/src/components/StepError/StepErrorComponent.d.ts +2 -2
  377. package/src/components/StepFirstResponderPersonalInfo/StepFirstResponderPersonalInfoComponent.d.ts +1 -1
  378. package/src/components/StepIDCheckLoop/IdCheckLoopFooter/IdCheckLoopOnfidoFooter.d.ts +1 -1
  379. package/src/components/StepIDCheckLoop/IdCheckLoopFooter/IdCheckLoopRegulaFooter.d.ts +1 -1
  380. package/src/components/StepIDCheckLoop/Onfido/IdCheckLoopOnfido/IdCheckLoopOnfido.d.ts +2 -2
  381. package/src/components/StepIDCheckLoop/Onfido/StepIDCheckLoopOnfido/StepIDCheckLoopOnfido.d.ts +1 -1
  382. package/src/components/StepIDCheckLoop/Onfido/utils/getAndFormatOrderedStepCards.d.ts +1 -1
  383. package/src/components/StepIDCheckLoop/Regula/IdCheckLoopRegula/DisplayThumbnail.d.ts +1 -1
  384. package/src/components/StepIDCheckLoop/Regula/IdCheckLoopRegula/IdCheckLoopRegula.d.ts +1 -1
  385. package/src/components/StepIDCheckLoop/Regula/StepIDCheckLoopRegulaComponent/StepIDCheckLoopRegula.d.ts +1 -1
  386. package/src/components/StepIDCheckLoop/StepIDCheckLoopComponent.d.ts +1 -1
  387. package/src/components/StepIdentityPersonalInfo/StepDriverLicensePersonalInfoComponent.d.ts +1 -1
  388. package/src/components/StepIdentityPersonalInfo/StepGeneralIdentityPersonalInfoComponent.d.ts +1 -1
  389. package/src/components/StepIdentityPersonalInfo/StepHybridIdentityPersonalInfoComponent.d.ts +1 -1
  390. package/src/components/StepLicensedProfessionalPersonalInfo/StepLicensedProfessionalPersonalInfoComponent.d.ts +1 -1
  391. package/src/components/StepLowIncomePersonalInfo/StepLowIncomePersonalInfoComponent.d.ts +1 -1
  392. package/src/components/StepMedicalProfessionalPersonalInfo/StepMedicalProfessionalPersonalInfoComponent.d.ts +1 -1
  393. package/src/components/StepMemberPersonalInfo/StepMemberPersonalInfoComponent.d.ts +1 -1
  394. package/src/components/StepMilitaryPersonalInfo/StepActiveMilitaryPersonalInfoComponent.d.ts +1 -1
  395. package/src/components/StepMilitaryPersonalInfo/StepInactiveMilitaryPersonalInfoComponent.d.ts +1 -1
  396. package/src/components/StepMoverPersonalInfo/StepMoverPersonalInfoComponent.d.ts +1 -1
  397. package/src/components/StepOverrideComponent/StepOverrideComponent.d.ts +2 -2
  398. package/src/components/StepPending/ReviewPendingComponent.d.ts +1 -1
  399. package/src/components/StepPending/SingleSignOnPendingComponent.d.ts +2 -2
  400. package/src/components/StepPending/StepPendingComponent.d.ts +1 -1
  401. package/src/components/StepPending/ThirdPartyLoopPendingComponent.d.ts +1 -1
  402. package/src/components/StepSMSLoop/StepSMSLoopComponent.d.ts +2 -2
  403. package/src/components/StepSSO/StepSSOComponent.d.ts +1 -1
  404. package/src/components/StepSeniorPersonalInfo/StepSeniorPersonalInfoComponent.d.ts +1 -1
  405. package/src/components/StepSocialSecurityNumber/StepSocialSecurityNumber.d.ts +1 -1
  406. package/src/components/StepStudentPersonalInfo/StepStudentPersonalInfoComponent.d.ts +1 -1
  407. package/src/components/StepSuccess/StepSuccessComponent.d.ts +1 -1
  408. package/src/components/StepTeacherPersonalInfo/StepTeacherPersonalInfoComponent.d.ts +1 -1
  409. package/src/components/StepThirdPartyLoop/StepThirdPartyLoopComponent.d.ts +3 -3
  410. package/src/components/TestModeFlag/TestModeFlagComponent.d.ts +1 -1
  411. package/src/components/UploadInfoComponent/UploadInfoComponent.d.ts +1 -1
  412. package/src/components/VerificationForm/VerificationFormComponent.d.ts +1 -1
  413. package/src/es5Bindings/VerificationFormEs5.d.ts +1 -1
  414. package/src/lib/ProgramTheme/programThemeGetters.d.ts +1 -1
  415. package/src/lib/ServerApi/ApiUrls.d.ts +1 -1
  416. package/src/lib/ServerApi/VerificationApiClient.d.ts +1 -1
  417. package/src/lib/ServerApi/VerificationHelpRequestApi.d.ts +1 -1
  418. package/src/lib/VerificationService/VerificationServiceActions.d.ts +1 -1
  419. package/src/lib/VerificationService/ViewModel.d.ts +5 -3
  420. package/src/lib/hooks/index.d.ts +1 -1
  421. package/src/lib/installScript/_mysheerid-preview.d.ts +2 -2
  422. package/src/lib/installScript/affinity.d.ts +1 -1
  423. package/src/lib/installScript/iframe.d.ts +1 -1
  424. package/src/lib/installScript/index.d.ts +3 -3
  425. package/src/lib/installScript/modal.d.ts +1 -1
  426. package/src/lib/intl/localized-messages/en-US.json.d.ts +1 -1
  427. package/src/lib/state/contextHooks.d.ts +1 -1
  428. package/src/lib/types/runtimeTypes.d.ts +1 -1
  429. package/src/lib/types/types.d.ts +12 -8
  430. package/src/lib/utils/customTagReplacer/index.d.ts +1 -1
  431. package/src/lib/utils/stepComponentHelpers/stepComponentHelpers.d.ts +2 -2
  432. package/src/lib/utils/structures/FormSelectChoice.d.ts +1 -1
  433. package/types-reference.zip +0 -0
  434. package/chunk/StepIDCheckLoopRegula-B2frgNDw.js.map +0 -1
  435. package/chunk/StepIDCheckLoopRegula-VCHUckkA.js.map +0 -1
  436. package/chunk/index-BIn_Jf1h.js +0 -48
  437. package/chunk/index-BIn_Jf1h.js.map +0 -1
  438. package/chunk/index-BOpxl8V9.js +0 -167
  439. package/chunk/index-BOpxl8V9.js.map +0 -1
  440. package/chunk/index-BPEB_HHW.js.map +0 -1
  441. package/chunk/index-C0jDbJPp.js.map +0 -1
  442. package/chunk/index-CfKAGYGb.js +0 -52
  443. package/chunk/index-CfKAGYGb.js.map +0 -1
  444. package/chunk/index-DZsw9-0u.js.map +0 -1
  445. package/chunk/index-DtoxnCtM.js +0 -171
  446. package/chunk/index-DtoxnCtM.js.map +0 -1
  447. package/chunk/index-NjSUlAP4.js.map +0 -1
  448. package/chunk/index-RmF57u5_.js.map +0 -1
  449. package/chunk/index-oMg5zy_2.js.map +0 -1
  450. package/lib/StepCollectMilitaryStatusComponent-BdghJG7J.js +0 -11
  451. package/lib/StepIDCheckLoopRegula-B4gdB1au.js.map +0 -1
  452. package/lib/VerificationApiUtils-Dec-3NxE.js +0 -23
  453. package/lib/es6-CNbgOM7D.js.map +0 -1
  454. package/lib/index-B-vvoe4K.js.map +0 -1
  455. package/lib/index-BUb81vE5.js +0 -11
  456. package/lib/index-BUb81vE5.js.map +0 -1
  457. package/lib/index-BqMoknWH.js +0 -28
  458. package/lib/index-BvZhF_Rn.js +0 -168
  459. package/lib/index-BvZhF_Rn.js.map +0 -1
  460. package/lib/index-CFdjELC4.js.map +0 -1
  461. package/lib/index-DFexphfg.js +0 -11
  462. package/lib/index-DFexphfg.js.map +0 -1
  463. package/lib/index-DbevfyP-.js +0 -11
  464. package/lib/index-DbevfyP-.js.map +0 -1
  465. package/lib/index-aInot7yT.js +0 -11
  466. package/lib/index-aInot7yT.js.map +0 -1
  467. package/lib/index-s1MF80_2.js.map +0 -1
@@ -1,18 +1,18 @@
1
1
 
2
2
  /**
3
- * VERSION: 2.104.0-alpha.1
4
- * BUILD_TIMESTAMP: 1746127986395
5
- * BUILD_DATE: Thu May 01 2025 19:33:06 GMT+0000 (Coordinated Universal Time)
6
- * BUILD_COMMIT: a18837a69c59275ce314d94cf6208e53b6620598
3
+ * VERSION: 2.105.0-alpha.0
4
+ * BUILD_TIMESTAMP: 1746202200333
5
+ * BUILD_DATE: Fri May 02 2025 16:10:00 GMT+0000 (Coordinated Universal Time)
6
+ * BUILD_COMMIT: 5e00bc964fbbb4f7f7b152a375026d6591cd1564
7
7
  */
8
- import { i as A, h as T, _ as k, $ as q, c as B, R as L, u as d, j as o, s as W, t as w, P as H, v as U, Q as K, x as l, w as O, y as z, W as G, a0 as Q, z as _, B as $, E as J, d as X, D as Y, G as Z, M as S, H as v, e as ee, V as se, a as ae, a1 as oe } from "../sheerid.js";
9
- import { u as te } from "./useCollectFieldsEndpoint-DeICm6Vb.js";
8
+ import { i as A, h as T, a4 as k, a5 as q, d as B, R as L, u as d, j as o, w, P as H, x as K, Y as U, z as l, y as W, B as O, $ as z, a6 as G, D as J, G as Y, E as $, e as Q, H as X, J as Z, M as _, K as S, f as v, V as ee, a as se, N as ae, a7 as oe } from "../sheerid.js";
9
+ import { u as te } from "./useCollectFieldsEndpoint-kmLFyUA-.js";
10
10
  const de = ({ verificationService: s, intl: j }) => {
11
- var p, C, h, b, i, g, N, x, y;
11
+ var p, C, h, b, i, N, g, x, y;
12
12
  const a = s.viewModel, { fieldValidationErrors: t } = s, r = s.verificationResponse, E = T(r), I = k(
13
13
  s.programTheme,
14
14
  j
15
- ), F = q(I), m = B(() => a.countryChoice.value, F.value), c = m === "US" ? [{ key: "postalCode" }] : [], M = m !== "US" || s.programTheme.isSmsNotifierConfigured || s.programTheme.smsLoopEnabled, f = m !== "US" || s.programTheme.smsLoopEnabled, P = a.localeChoice.value, D = w();
15
+ ), F = q(I), m = B(() => a.countryChoice.value, F.value), M = m === "US" ? [{ key: "postalCode" }] : [], c = m !== "US" || s.programTheme.isSmsNotifierConfigured || s.programTheme.smsLoopEnabled, f = m !== "US" || s.programTheme.smsLoopEnabled, P = a.localeChoice.value, D = ae();
16
16
  !t.phoneNumber && r.errorIds && r.errorIds.includes("invalidPhoneNumber") && s.updateFieldValidationErrors({
17
17
  ...t,
18
18
  phoneNumber: "invalidPhoneNumber"
@@ -24,20 +24,20 @@ const de = ({ verificationService: s, intl: j }) => {
24
24
  verificationId: r.verificationId,
25
25
  currentStep: r.currentStep,
26
26
  viewModel: a,
27
- defaultRequiredFields: c
27
+ defaultRequiredFields: M
28
28
  });
29
29
  return L.useEffect(() => {
30
30
  d("phoneNumber", a.phoneNumber, s);
31
31
  }, [a.country]), /* @__PURE__ */ o.jsxs(
32
- W,
32
+ w,
33
33
  {
34
34
  verificationService: s,
35
35
  step: r.currentStep,
36
36
  children: [
37
37
  /* @__PURE__ */ o.jsx(H, { verificationService: s, classNameIdentifier: "age" }),
38
- /* @__PURE__ */ o.jsx(U, { verificationService: s }),
38
+ /* @__PURE__ */ o.jsx(K, { verificationService: s }),
39
39
  /* @__PURE__ */ o.jsx(
40
- K,
40
+ U,
41
41
  {
42
42
  verificationService: s,
43
43
  disabled: (p = l("country")) == null ? void 0 : p.disabled
@@ -45,7 +45,7 @@ const de = ({ verificationService: s, intl: j }) => {
45
45
  ),
46
46
  /* @__PURE__ */ o.jsxs("div", { className: "sid-names", children: [
47
47
  /* @__PURE__ */ o.jsx(
48
- O,
48
+ W,
49
49
  {
50
50
  value: a.firstName,
51
51
  isErrored: !!t.firstName,
@@ -56,7 +56,7 @@ const de = ({ verificationService: s, intl: j }) => {
56
56
  }
57
57
  ),
58
58
  /* @__PURE__ */ o.jsx(
59
- z,
59
+ O,
60
60
  {
61
61
  value: a.lastName,
62
62
  isErrored: !!t.lastName,
@@ -68,7 +68,7 @@ const de = ({ verificationService: s, intl: j }) => {
68
68
  )
69
69
  ] }),
70
70
  /* @__PURE__ */ o.jsx(
71
- G,
71
+ z,
72
72
  {
73
73
  errorId: t.birthDate,
74
74
  locale: P,
@@ -80,7 +80,7 @@ const de = ({ verificationService: s, intl: j }) => {
80
80
  }
81
81
  ),
82
82
  u("city") && /* @__PURE__ */ o.jsx(
83
- Q,
83
+ G,
84
84
  {
85
85
  value: a.city,
86
86
  isRequired: !0,
@@ -93,7 +93,7 @@ const de = ({ verificationService: s, intl: j }) => {
93
93
  }
94
94
  ),
95
95
  u("address1") && /* @__PURE__ */ o.jsx(
96
- _,
96
+ J,
97
97
  {
98
98
  value: a.address1,
99
99
  isRequired: !0,
@@ -105,30 +105,30 @@ const de = ({ verificationService: s, intl: j }) => {
105
105
  }
106
106
  ),
107
107
  u("postalCode") && /* @__PURE__ */ o.jsx(
108
- $,
108
+ Y,
109
109
  {
110
110
  isErrored: !!t.postalCode,
111
111
  onChange: (e) => {
112
112
  n("postalCode", e), d("postalCode", e, s);
113
113
  },
114
114
  value: a.postalCode,
115
- disabled: (g = l("postalCode")) == null ? void 0 : g.disabled
115
+ disabled: (N = l("postalCode")) == null ? void 0 : N.disabled
116
116
  }
117
117
  ),
118
118
  /* @__PURE__ */ o.jsx(
119
- J,
119
+ $,
120
120
  {
121
121
  value: a.email,
122
122
  isErrored: !!t.email,
123
123
  onChange: (e) => {
124
124
  n("email", e), d("email", e, s);
125
125
  },
126
- onKeyDown: (e) => X(e),
127
- disabled: (N = l("email")) == null ? void 0 : N.disabled
126
+ onKeyDown: (e) => Q(e),
127
+ disabled: (g = l("email")) == null ? void 0 : g.disabled
128
128
  }
129
129
  ),
130
- M ? /* @__PURE__ */ o.jsx(
131
- Y,
130
+ c ? /* @__PURE__ */ o.jsx(
131
+ X,
132
132
  {
133
133
  isRequired: f,
134
134
  value: a.phoneNumber,
@@ -142,7 +142,7 @@ const de = ({ verificationService: s, intl: j }) => {
142
142
  ) : null,
143
143
  D.customFormFields.map((e) => /* @__PURE__ */ o.jsx(Z, { config: e, verificationService: s })),
144
144
  /* @__PURE__ */ o.jsx(
145
- S,
145
+ _,
146
146
  {
147
147
  verificationService: s,
148
148
  isErrored: !!t.marketConsentValue,
@@ -156,16 +156,16 @@ const de = ({ verificationService: s, intl: j }) => {
156
156
  disabled: (y = l("marketConsentValue")) == null ? void 0 : y.disabled
157
157
  }
158
158
  ),
159
- /* @__PURE__ */ o.jsx(v, { verificationService: s, suffix: "CollectAboveSubmit" }),
159
+ /* @__PURE__ */ o.jsx(S, { verificationService: s, suffix: "CollectAboveSubmit" }),
160
160
  /* @__PURE__ */ o.jsx(
161
- ee,
161
+ v,
162
162
  {
163
- step: se.collectAgePersonalInfo,
163
+ step: ee.collectAgePersonalInfo,
164
164
  verificationService: s,
165
165
  viewModel: a,
166
166
  failedInstantMatch: E,
167
167
  buttonText: /* @__PURE__ */ o.jsx(
168
- ae,
168
+ se,
169
169
  {
170
170
  id: "step.personalInfo.submitButtonText",
171
171
  defaultMessage: "Verify and continue"
@@ -1 +1 @@
1
- {"version":3,"file":"index-B30_E6pJ.js","sources":["../../src/components/StepAgePersonalInfo/StepAgePersonalInfoComponent.tsx"],"sourcesContent":["/**\n * TODO - preamble\n */\nimport React from \"react\";\nimport { FormattedHTMLMessage, InjectedIntl, injectIntl } from \"react-intl\";\n\nimport { useCollectFieldsEndpoint } from \"@/lib/ServerApi/useCollectFieldsEndpoint\";\nimport { VerificationStepsEnum } from \"../../lib/types/runtimeTypes\";\nimport { hasFailedInstantMatch } from \"../../lib/VerificationService/VerificationServiceHelpers\";\nimport { getSafe } from \"../../lib/utils/getSafe\";\nimport {\n VerificationService,\n AgePersonalInfoViewModel,\n AgePersonalInfoResponse,\n FormSelectChoice,\n Country,\n FieldDescription,\n CustomFormFieldConfig,\n} from \"../../lib/types/types\";\n\nimport {\n handleEmailOnKeyDown,\n updateFieldValidationErrorsByFieldId,\n getAvailableCountryChoices,\n getDefaultCountryChoice,\n produceDraftViewModel,\n getFieldConfigByFieldId,\n} from \"../../lib/utils/stepComponentHelpers/stepComponentHelpers\";\n\nimport { MarketConsentWrapperComponent as MarketConsentWrapper } from \"../FormFields/MarketConsentWrapper/MarketConsentWrapperComponent\";\nimport { PhoneNumberComponent as PhoneNumber } from \"../FormFields/PhoneNumber/PhoneNumberComponent\";\nimport { FirstNameComponent as FirstName } from \"../FormFields/FirstName/FirstNameComponent\";\nimport { LastNameComponent as LastName } from \"../FormFields/LastName/LastNameComponent\";\nimport { EmailComponent as Email } from \"../FormFields/Email/EmailComponent\";\nimport { BirthDateComponent as BirthDate } from \"../FormFields/BirthDate/BirthDateComponent\";\nimport { PostalCodeComponent as PostalCode } from \"../FormFields/PostalCode/PostalCodeComponent\";\n\nimport { CountryComponentWrapper } from \"../FormFields/Country/CountryComponentWrapper\";\nimport { CityComponent } from \"../FormFields/City/City\";\nimport { AddressComponent } from \"../FormFields/Address/AddressComponent\";\nimport { getOptions } from \"../../options/options\";\nimport { FormFieldCustom } from \"../FormFields/FormFieldCustom/FormFieldCustom\";\nimport { ExtraMessage } from \"../ExtraMessage\";\nimport { ChangeLocaleV2Component } from \"../FormFields/ChangeLocale/ChangeLocaleComponent\";\nimport { PersonalInfoWrapper } from \"../PersonalInfoStepWrapper/PersonalInfoStepWrapper\";\nimport { PersonalInfoStepSubmitButton } from \"../PersonalInfoStepSubmitButton/PersonalInfoStepSubmitButton\";\nimport { PersonalInfoHeader } from \"../FormHeader/StepHeaders/PersonalInfoHeaderComponent\";\n\ninterface StepAgePersonalInfoComponentProps {\n intl: InjectedIntl;\n verificationService: VerificationService;\n}\n\nconst StepAgePersonalInfo = ({ verificationService, intl }: StepAgePersonalInfoComponentProps) => {\n const viewModel = verificationService.viewModel as AgePersonalInfoViewModel;\n const { fieldValidationErrors } = verificationService;\n const verificationResponse = verificationService.verificationResponse as AgePersonalInfoResponse;\n const failedInstantMatch = hasFailedInstantMatch(verificationResponse);\n const countryChoices: FormSelectChoice<Country, string>[] = getAvailableCountryChoices(\n verificationService.programTheme,\n intl,\n );\n const defaultCountryChoice: FormSelectChoice<Country, string> =\n getDefaultCountryChoice(countryChoices);\n const safeCountryValue = getSafe(() => viewModel.countryChoice.value, defaultCountryChoice.value);\n const defaultRequiredFields: FieldDescription[] =\n safeCountryValue === \"US\" ? [{ key: \"postalCode\" }] : [];\n\n // PhoneNumber is required for all non-US age programs and if smsLoop is enabled.\n const showPhoneNumber =\n safeCountryValue !== \"US\" ||\n verificationService.programTheme.isSmsNotifierConfigured ||\n verificationService.programTheme.smsLoopEnabled;\n const phoneNumberRequired =\n safeCountryValue !== \"US\" || verificationService.programTheme.smsLoopEnabled;\n\n const locale = viewModel.localeChoice.value;\n const options = getOptions();\n\n if (\n !fieldValidationErrors.phoneNumber &&\n verificationResponse.errorIds &&\n verificationResponse.errorIds.includes(\"invalidPhoneNumber\")\n ) {\n verificationService.updateFieldValidationErrors({\n ...fieldValidationErrors,\n phoneNumber: \"invalidPhoneNumber\",\n });\n }\n\n const updateAgeViewModel = (key: keyof AgePersonalInfoViewModel, value: any) => {\n const nextState: AgePersonalInfoViewModel = produceDraftViewModel(viewModel, key, value);\n verificationService.updateViewModel(nextState);\n };\n\n const { isFieldRequired } = useCollectFieldsEndpoint({\n verificationId: verificationResponse.verificationId,\n currentStep: verificationResponse.currentStep,\n viewModel,\n defaultRequiredFields,\n });\n\n React.useEffect(() => {\n // When country changes re-check the phone number validation\n updateFieldValidationErrorsByFieldId(\"phoneNumber\", viewModel.phoneNumber, verificationService);\n }, [viewModel.country]);\n\n return (\n <PersonalInfoWrapper\n verificationService={verificationService}\n step={verificationResponse.currentStep}\n >\n <PersonalInfoHeader verificationService={verificationService} classNameIdentifier=\"age\" />\n\n <ChangeLocaleV2Component verificationService={verificationService} />\n <CountryComponentWrapper\n verificationService={verificationService}\n disabled={getFieldConfigByFieldId(\"country\")?.disabled}\n />\n\n <div className=\"sid-names\">\n <FirstName\n value={viewModel.firstName}\n isErrored={!!fieldValidationErrors.firstName}\n disabled={getFieldConfigByFieldId(\"firstName\")?.disabled}\n onChange={(newValue) => {\n updateAgeViewModel(\"firstName\", newValue);\n updateFieldValidationErrorsByFieldId(\"firstName\", newValue, verificationService);\n }}\n />\n\n <LastName\n value={viewModel.lastName}\n isErrored={!!fieldValidationErrors.lastName}\n disabled={getFieldConfigByFieldId(\"lastName\")?.disabled}\n onChange={(newValue) => {\n updateAgeViewModel(\"lastName\", newValue);\n updateFieldValidationErrorsByFieldId(\"lastName\", newValue, verificationService);\n }}\n />\n </div>\n <BirthDate\n errorId={fieldValidationErrors.birthDate}\n locale={locale}\n onChange={(newValue) => {\n updateAgeViewModel(\"birthDate\", newValue);\n updateFieldValidationErrorsByFieldId(\"birthDate\", newValue, verificationService);\n }}\n value={viewModel.birthDate}\n disabled={getFieldConfigByFieldId(\"birthDate\")?.disabled}\n />\n {isFieldRequired(\"city\") && (\n <CityComponent\n value={viewModel.city}\n isRequired\n isErrored={!!fieldValidationErrors.city}\n errorId={fieldValidationErrors.city}\n disabled={getFieldConfigByFieldId(\"city\")?.disabled}\n onChange={(value) => {\n updateAgeViewModel(\"city\", value);\n updateFieldValidationErrorsByFieldId(\"city\", value, verificationService);\n }}\n />\n )}\n {isFieldRequired(\"address1\") && (\n <AddressComponent\n value={viewModel.address1}\n isRequired\n isErrored={!!fieldValidationErrors.address1}\n errorId={fieldValidationErrors.address1}\n onChange={(value) => {\n updateAgeViewModel(\"address1\", value);\n updateFieldValidationErrorsByFieldId(\"address1\", value, verificationService);\n }}\n />\n )}\n {isFieldRequired(\"postalCode\") && (\n <PostalCode\n isErrored={!!fieldValidationErrors.postalCode}\n onChange={(newValue) => {\n updateAgeViewModel(\"postalCode\", newValue);\n updateFieldValidationErrorsByFieldId(\"postalCode\", newValue, verificationService);\n }}\n value={viewModel.postalCode}\n disabled={getFieldConfigByFieldId(\"postalCode\")?.disabled}\n />\n )}\n <Email\n value={viewModel.email}\n isErrored={!!fieldValidationErrors.email}\n onChange={(newValue) => {\n updateAgeViewModel(\"email\", newValue);\n updateFieldValidationErrorsByFieldId(\"email\", newValue, verificationService);\n }}\n onKeyDown={(event) => handleEmailOnKeyDown(event)}\n disabled={getFieldConfigByFieldId(\"email\")?.disabled}\n />\n\n {showPhoneNumber ? (\n <PhoneNumber\n isRequired={phoneNumberRequired}\n value={viewModel.phoneNumber}\n isErrored={!!fieldValidationErrors.phoneNumber}\n onChange={(newValue) => {\n updateAgeViewModel(\"phoneNumber\", newValue);\n updateFieldValidationErrorsByFieldId(\"phoneNumber\", newValue, verificationService);\n }}\n selectedCountryCode={viewModel.countryChoice && viewModel.countryChoice.value}\n disabled={getFieldConfigByFieldId(\"phoneNumber\")?.disabled}\n />\n ) : null}\n\n {options.customFormFields.map((config: CustomFormFieldConfig) => (\n <FormFieldCustom config={config} verificationService={verificationService} />\n ))}\n\n <MarketConsentWrapper\n verificationService={verificationService}\n isErrored={!!fieldValidationErrors.marketConsentValue}\n onChange={(newValue) => {\n updateAgeViewModel(\"metadata\", {\n ...verificationService.viewModel.metadata,\n marketConsentValue: newValue,\n });\n updateFieldValidationErrorsByFieldId(\"marketConsentValue\", newValue, verificationService);\n }}\n viewModel={viewModel}\n disabled={getFieldConfigByFieldId(\"marketConsentValue\")?.disabled}\n />\n\n <ExtraMessage verificationService={verificationService} suffix=\"CollectAboveSubmit\" />\n\n <PersonalInfoStepSubmitButton\n step={VerificationStepsEnum.collectAgePersonalInfo}\n verificationService={verificationService}\n viewModel={viewModel}\n failedInstantMatch={failedInstantMatch}\n buttonText={\n <FormattedHTMLMessage\n id=\"step.personalInfo.submitButtonText\"\n defaultMessage=\"Verify and continue\"\n />\n }\n />\n </PersonalInfoWrapper>\n );\n};\n\nexport const StepAgePersonalInfoComponent = injectIntl(StepAgePersonalInfo);\n"],"names":["StepAgePersonalInfo","verificationService","intl","viewModel","fieldValidationErrors","verificationResponse","failedInstantMatch","hasFailedInstantMatch","countryChoices","getAvailableCountryChoices","defaultCountryChoice","getDefaultCountryChoice","safeCountryValue","getSafe","defaultRequiredFields","showPhoneNumber","phoneNumberRequired","locale","options","getOptions","updateAgeViewModel","key","value","nextState","produceDraftViewModel","isFieldRequired","useCollectFieldsEndpoint","React","updateFieldValidationErrorsByFieldId","jsxs","PersonalInfoWrapper","jsx","PersonalInfoHeader","ChangeLocaleV2Component","CountryComponentWrapper","_a","getFieldConfigByFieldId","FirstName","_b","newValue","LastName","_c","BirthDate","_d","CityComponent","_e","AddressComponent","PostalCode","_f","Email","event","handleEmailOnKeyDown","_g","PhoneNumber","_h","config","FormFieldCustom","MarketConsentWrapper","_i","ExtraMessage","PersonalInfoStepSubmitButton","VerificationStepsEnum","FormattedHTMLMessage","StepAgePersonalInfoComponent","injectIntl"],"mappings":";;AAqDA,MAAMA,KAAsB,CAAC,EAAE,qBAAAC,GAAqB,MAAAC,QAA8C;;AAChG,QAAMC,IAAYF,EAAoB,WAChC,EAAE,uBAAAG,MAA0BH,GAC5BI,IAAuBJ,EAAoB,sBAC3CK,IAAqBC,EAAsBF,CAAoB,GAC/DG,IAAsDC;AAAA,IAC1DR,EAAoB;AAAA,IACpBC;AAAA,EACF,GACMQ,IACJC,EAAwBH,CAAc,GAClCI,IAAmBC,EAAQ,MAAMV,EAAU,cAAc,OAAOO,EAAqB,KAAK,GAC1FI,IACJF,MAAqB,OAAO,CAAC,EAAE,KAAK,aAAc,CAAA,IAAI,CAAC,GAGnDG,IACJH,MAAqB,QACrBX,EAAoB,aAAa,2BACjCA,EAAoB,aAAa,gBAC7Be,IACJJ,MAAqB,QAAQX,EAAoB,aAAa,gBAE1DgB,IAASd,EAAU,aAAa,OAChCe,IAAUC,EAAW;AAGzB,EAAA,CAACf,EAAsB,eACvBC,EAAqB,YACrBA,EAAqB,SAAS,SAAS,oBAAoB,KAE3DJ,EAAoB,4BAA4B;AAAA,IAC9C,GAAGG;AAAA,IACH,aAAa;AAAA,EAAA,CACd;AAGG,QAAAgB,IAAqB,CAACC,GAAqCC,MAAe;AAC9E,UAAMC,IAAsCC,GAAsBrB,GAAWkB,GAAKC,CAAK;AACvF,IAAArB,EAAoB,gBAAgBsB,CAAS;AAAA,EAC/C,GAEM,EAAE,iBAAAE,EAAgB,IAAIC,GAAyB;AAAA,IACnD,gBAAgBrB,EAAqB;AAAA,IACrC,aAAaA,EAAqB;AAAA,IAClC,WAAAF;AAAA,IACA,uBAAAW;AAAA,EAAA,CACD;AAED,SAAAa,EAAM,UAAU,M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BACjC,oBAAoBsC;AAAA,cAAA,CACrB,GACoCX,EAAA,sBAAsBW,GAAUtC,CAAmB;AAAA,YAC1F;AAAA,YACA,WAAAE;AAAA,YACA,WAAUuD,IAAAtB,EAAwB,oBAAoB,MAA5C,gBAAAsB,EAA+C;AAAA,UAAA;AAAA,QAC3D;AAAA,QAEC3B,gBAAAA,EAAAA,IAAA4B,GAAA,EAAa,qBAAA1D,GAA0C,QAAO,qBAAqB,CAAA;AAAA,QAEpF8B,gBAAAA,EAAA;AAAA,UAAC6B;AAAA,UAAA;AAAA,YACC,MAAMC,GAAsB;AAAA,YAC5B,qBAAA5D;AAAA,YACA,WAAAE;AAAA,YACA,oBAAAG;AAAA,YACA,YACEyB,gBAAAA,EAAA;AAAA,cAAC+B;AAAA,cAAA;AAAA,gBACC,IAAG;AAAA,gBACH,gBAAe;AAAA,cAAA;AAAA,YAAA;AAAA,UACjB;AAAA,QAAA;AAAA,MAEJ;AAAA,IAAA;AAAA,EACF;AAEJ,GAEaC,KAA+BC,EAAWhE,EAAmB;"}
1
+ {"version":3,"file":"index-DnCqjuSC.js","sources":["../../src/components/StepAgePersonalInfo/StepAgePersonalInfoComponent.tsx"],"sourcesContent":["/**\n * TODO - preamble\n */\nimport React from \"react\";\nimport { FormattedHTMLMessage, InjectedIntl, injectIntl } from \"react-intl\";\n\nimport { useCollectFieldsEndpoint } from \"@/lib/ServerApi/useCollectFieldsEndpoint\";\nimport { VerificationStepsEnum } from \"../../lib/types/runtimeTypes\";\nimport { hasFailedInstantMatch } from \"../../lib/VerificationService/VerificationServiceHelpers\";\nimport { getSafe } from \"../../lib/utils/getSafe\";\nimport {\n VerificationService,\n AgePersonalInfoViewModel,\n AgePersonalInfoResponse,\n FormSelectChoice,\n Country,\n FieldDescription,\n CustomFormFieldConfig,\n} from \"../../lib/types/types\";\n\nimport {\n handleEmailOnKeyDown,\n updateFieldValidationErrorsByFieldId,\n getAvailableCountryChoices,\n getDefaultCountryChoice,\n produceDraftViewModel,\n getFieldConfigByFieldId,\n} from \"../../lib/utils/stepComponentHelpers/stepComponentHelpers\";\n\nimport { MarketConsentWrapperComponent as MarketConsentWrapper } from \"../FormFields/MarketConsentWrapper/MarketConsentWrapperComponent\";\nimport { PhoneNumberComponent as PhoneNumber } from \"../FormFields/PhoneNumber/PhoneNumberComponent\";\nimport { FirstNameComponent as FirstName } from \"../FormFields/FirstName/FirstNameComponent\";\nimport { LastNameComponent as LastName } from \"../FormFields/LastName/LastNameComponent\";\nimport { EmailComponent as Email } from \"../FormFields/Email/EmailComponent\";\nimport { BirthDateComponent as BirthDate } from \"../FormFields/BirthDate/BirthDateComponent\";\nimport { PostalCodeComponent as PostalCode } from \"../FormFields/PostalCode/PostalCodeComponent\";\n\nimport { CountryComponentWrapper } from \"../FormFields/Country/CountryComponentWrapper\";\nimport { CityComponent } from \"../FormFields/City/City\";\nimport { AddressComponent } from \"../FormFields/Address/AddressComponent\";\nimport { getOptions } from \"../../options/options\";\nimport { FormFieldCustom } from \"../FormFields/FormFieldCustom/FormFieldCustom\";\nimport { ExtraMessage } from \"../ExtraMessage\";\nimport { ChangeLocaleV2Component } from \"../FormFields/ChangeLocale/ChangeLocaleComponent\";\nimport { PersonalInfoWrapper } from \"../PersonalInfoStepWrapper/PersonalInfoStepWrapper\";\nimport { PersonalInfoStepSubmitButton } from \"../PersonalInfoStepSubmitButton/PersonalInfoStepSubmitButton\";\nimport { PersonalInfoHeader } from \"../FormHeader/StepHeaders/PersonalInfoHeaderComponent\";\n\ninterface StepAgePersonalInfoComponentProps {\n intl: InjectedIntl;\n verificationService: VerificationService;\n}\n\nconst StepAgePersonalInfo = ({ verificationService, intl }: StepAgePersonalInfoComponentProps) => {\n const viewModel = verificationService.viewModel as AgePersonalInfoViewModel;\n const { fieldValidationErrors } = verificationService;\n const verificationResponse = verificationService.verificationResponse as AgePersonalInfoResponse;\n const failedInstantMatch = hasFailedInstantMatch(verificationResponse);\n const countryChoices: FormSelectChoice<Country, string>[] = getAvailableCountryChoices(\n verificationService.programTheme,\n intl,\n );\n const defaultCountryChoice: FormSelectChoice<Country, string> =\n getDefaultCountryChoice(countryChoices);\n const safeCountryValue = getSafe(() => viewModel.countryChoice.value, defaultCountryChoice.value);\n const defaultRequiredFields: FieldDescription[] =\n safeCountryValue === \"US\" ? [{ key: \"postalCode\" }] : [];\n\n // PhoneNumber is required for all non-US age programs and if smsLoop is enabled.\n const showPhoneNumber =\n safeCountryValue !== \"US\" ||\n verificationService.programTheme.isSmsNotifierConfigured ||\n verificationService.programTheme.smsLoopEnabled;\n const phoneNumberRequired =\n safeCountryValue !== \"US\" || verificationService.programTheme.smsLoopEnabled;\n\n const locale = viewModel.localeChoice.value;\n const options = getOptions();\n\n if (\n !fieldValidationErrors.phoneNumber &&\n verificationResponse.errorIds &&\n verificationResponse.errorIds.includes(\"invalidPhoneNumber\")\n ) {\n verificationService.updateFieldValidationErrors({\n ...fieldValidationErrors,\n phoneNumber: \"invalidPhoneNumber\",\n });\n }\n\n const updateAgeViewModel = (key: keyof AgePersonalInfoViewModel, value: any) => {\n const nextState: AgePersonalInfoViewModel = produceDraftViewModel(viewModel, key, value);\n verificationService.updateViewModel(nextState);\n };\n\n const { isFieldRequired } = useCollectFieldsEndpoint({\n verificationId: verificationResponse.verificationId,\n currentStep: verificationResponse.currentStep,\n viewModel,\n defaultRequiredFields,\n });\n\n React.useEffect(() => {\n // When country changes re-check the phone number validation\n updateFieldValidationErrorsByFieldId(\"phoneNumber\", viewModel.phoneNumber, verificationService);\n }, [viewModel.country]);\n\n return (\n <PersonalInfoWrapper\n verificationService={verificationService}\n step={verificationResponse.currentStep}\n >\n <PersonalInfoHeader verificationService={verificationService} classNameIdentifier=\"age\" />\n\n <ChangeLocaleV2Component verificationService={verificationService} />\n <CountryComponentWrapper\n verificationService={verificationService}\n disabled={getFieldConfigByFieldId(\"country\")?.disabled}\n />\n\n <div className=\"sid-names\">\n <FirstName\n value={viewModel.firstName}\n isErrored={!!fieldValidationErrors.firstName}\n disabled={getFieldConfigByFieldId(\"firstName\")?.disabled}\n onChange={(newValue) => {\n updateAgeViewModel(\"firstName\", newValue);\n updateFieldValidationErrorsByFieldId(\"firstName\", newValue, verificationService);\n }}\n />\n\n <LastName\n value={viewModel.lastName}\n isErrored={!!fieldValidationErrors.lastName}\n disabled={getFieldConfigByFieldId(\"lastName\")?.disabled}\n onChange={(newValue) => {\n updateAgeViewModel(\"lastName\", newValue);\n updateFieldValidationErrorsByFieldId(\"lastName\", newValue, verificationService);\n }}\n />\n </div>\n <BirthDate\n errorId={fieldValidationErrors.birthDate}\n locale={locale}\n onChange={(newValue) => {\n updateAgeViewModel(\"birthDate\", newValue);\n updateFieldValidationErrorsByFieldId(\"birthDate\", newValue, verificationService);\n }}\n value={viewModel.birthDate}\n disabled={getFieldConfigByFieldId(\"birthDate\")?.disabled}\n />\n {isFieldRequired(\"city\") && (\n <CityComponent\n value={viewModel.city}\n isRequired\n isErrored={!!fieldValidationErrors.city}\n errorId={fieldValidationErrors.city}\n disabled={getFieldConfigByFieldId(\"city\")?.disabled}\n onChange={(value) => {\n updateAgeViewModel(\"city\", value);\n updateFieldValidationErrorsByFieldId(\"city\", value, verificationService);\n }}\n />\n )}\n {isFieldRequired(\"address1\") && (\n <AddressComponent\n value={viewModel.address1}\n isRequired\n isErrored={!!fieldValidationErrors.address1}\n errorId={fieldValidationErrors.address1}\n onChange={(value) => {\n updateAgeViewModel(\"address1\", value);\n updateFieldValidationErrorsByFieldId(\"address1\", value, verificationService);\n }}\n />\n )}\n {isFieldRequired(\"postalCode\") && (\n <PostalCode\n isErrored={!!fieldValidationErrors.postalCode}\n onChange={(newValue) => {\n updateAgeViewModel(\"postalCode\", newValue);\n updateFieldValidationErrorsByFieldId(\"postalCode\", newValue, verificationService);\n }}\n value={viewModel.postalCode}\n disabled={getFieldConfigByFieldId(\"postalCode\")?.disabled}\n />\n )}\n <Email\n value={viewModel.email}\n isErrored={!!fieldValidationErrors.email}\n onChange={(newValue) => {\n updateAgeViewModel(\"email\", newValue);\n updateFieldValidationErrorsByFieldId(\"email\", newValue, verificationService);\n }}\n onKeyDown={(event) => handleEmailOnKeyDown(event)}\n disabled={getFieldConfigByFieldId(\"email\")?.disabled}\n />\n\n {showPhoneNumber ? (\n <PhoneNumber\n isRequired={phoneNumberRequired}\n value={viewModel.phoneNumber}\n isErrored={!!fieldValidationErrors.phoneNumber}\n onChange={(newValue) => {\n updateAgeViewModel(\"phoneNumber\", newValue);\n updateFieldValidationErrorsByFieldId(\"phoneNumber\", newValue, verificationService);\n }}\n selectedCountryCode={viewModel.countryChoice && viewModel.countryChoice.value}\n disabled={getFieldConfigByFieldId(\"phoneNumber\")?.disabled}\n />\n ) : null}\n\n {options.customFormFields.map((config: CustomFormFieldConfig) => (\n <FormFieldCustom config={config} verificationService={verificationService} />\n ))}\n\n <MarketConsentWrapper\n verificationService={verificationService}\n isErrored={!!fieldValidationErrors.marketConsentValue}\n onChange={(newValue) => {\n updateAgeViewModel(\"metadata\", {\n ...verificationService.viewModel.metadata,\n marketConsentValue: newValue,\n });\n updateFieldValidationErrorsByFieldId(\"marketConsentValue\", newValue, verificationService);\n }}\n viewModel={viewModel}\n disabled={getFieldConfigByFieldId(\"marketConsentValue\")?.disabled}\n />\n\n <ExtraMessage verificationService={verificationService} suffix=\"CollectAboveSubmit\" />\n\n <PersonalInfoStepSubmitButton\n step={VerificationStepsEnum.collectAgePersonalInfo}\n verificationService={verificationService}\n viewModel={viewModel}\n failedInstantMatch={failedInstantMatch}\n buttonText={\n <FormattedHTMLMessage\n id=\"step.personalInfo.submitButtonText\"\n defaultMessage=\"Verify and continue\"\n />\n }\n />\n </PersonalInfoWrapper>\n );\n};\n\nexport const StepAgePersonalInfoComponent = injectIntl(StepAgePersonalInfo);\n"],"names":["StepAgePersonalInfo","verificationService","intl","viewModel","fieldValidationErrors","verificationResponse","failedInstantMatch","hasFailedInstantMatch","countryChoices","getAvailableCountryChoices","defaultCountryChoice","getDefaultCountryChoice","safeCountryValue","getSafe","defaultRequiredFields","showPhoneNumber","phoneNumberRequired","locale","options","getOptions","updateAgeViewModel","key","value","nextState","produceDraftViewModel","isFieldRequired","useCollectFieldsEndpoint","React","updateFieldValidationErrorsByFieldId","jsxs","PersonalInfoWrapper","jsx","PersonalInfoHeader","ChangeLocaleV2Component","CountryComponentWrapper","_a","getFieldConfigByFieldId","FirstName","_b","newValue","LastName","_c","BirthDate","_d","CityComponent","_e","AddressComponent","PostalCode","_f","Email","event","handleEmailOnKeyDown","_g","PhoneNumber","_h","config","FormFieldCustom","MarketConsentWrapper","_i","ExtraMessage","PersonalInfoStepSubmitButton","VerificationStepsEnum","FormattedHTMLMessage","StepAgePersonalInfoComponent","injectIntl"],"mappings":";;AAqDA,MAAMA,KAAsB,CAAC,EAAE,qBAAAC,GAAqB,MAAAC,QAA8C;;AAChG,QAAMC,IAAYF,EAAoB,WAChC,EAAE,uBAAAG,EAA0B,IAAAH,GAC5BI,IAAuBJ,EAAoB,sBAC3CK,IAAqBC,EAAsBF,CAAoB,GAC/DG,IAAsDC;AAAA,IAC1DR,EAAoB;AAAA,IACpBC;AAAA,EAAA,GAEIQ,IACJC,EAAwBH,CAAc,GAClCI,IAAmBC,EAAQ,MAAMV,EAAU,cAAc,OAAOO,EAAqB,KAAK,GAC1FI,IACJF,MAAqB,OAAO,CAAC,EAAE,KAAK,aAAA,CAAc,IAAI,IAGlDG,IACJH,MAAqB,QACrBX,EAAoB,aAAa,2BACjCA,EAAoB,aAAa,gBAC7Be,IACJJ,MAAqB,QAAQX,EAAoB,aAAa,gBAE1DgB,IAASd,EAAU,aAAa,OAChCe,IAAUC;AAGd,EAAA,CAACf,EAAsB,eACvBC,EAAqB,YACrBA,EAAqB,SAAS,SAAS,oBAAoB,KAE3DJ,EAAoB,4BAA4B;AAAA,IAC9C,GAAGG;AAAA,IACH,aAAa;AAAA,EAAA,CACd;AAGG,QAAAgB,IAAqB,CAACC,GAAqCC,MAAe;AAC9E,UAAMC,IAAsCC,GAAsBrB,GAAWk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,qBAAAtD,EAAA,CAA0C,CAC5E;AAAA,QAED8B,gBAAAA,EAAA;AAAA,UAAC0B;AAAAA,UAAA;AAAA,YACC,qBAAAxD;AAAA,YACA,WAAW,CAAC,CAACG,EAAsB;AAAA,YACnC,UAAU,CAACmC,MAAa;AACtB,cAAAnB,EAAmB,YAAY;AAAA,gBAC7B,GAAGnB,EAAoB,UAAU;AAAA,gBACjC,oBAAoBsC;AAAA,cAAA,CACrB,GACoCX,EAAA,sBAAsBW,GAAUtC,CAAmB;AAAA,YAC1F;AAAA,YACA,WAAAE;AAAA,YACA,WAAUuD,IAAAtB,EAAwB,oBAAoB,MAA5C,gBAAAsB,EAA+C;AAAA,UAAA;AAAA,QAC3D;AAAA,QAEC3B,gBAAAA,EAAAA,IAAA4B,GAAA,EAAa,qBAAA1D,GAA0C,QAAO,qBAAqB,CAAA;AAAA,QAEpF8B,gBAAAA,EAAA;AAAA,UAAC6B;AAAA,UAAA;AAAA,YACC,MAAMC,GAAsB;AAAA,YAC5B,qBAAA5D;AAAA,YACA,WAAAE;AAAA,YACA,oBAAAG;AAAA,YACA,YACEyB,gBAAAA,EAAA;AAAA,cAAC+B;AAAA,cAAA;AAAA,gBACC,IAAG;AAAA,gBACH,gBAAe;AAAA,cAAA;AAAA,YACjB;AAAA,UAAA;AAAA,QAEJ;AAAA,MAAA;AAAA,IAAA;AAAA,EAAA;AAGN,GAEaC,KAA+BC,EAAWhE,EAAmB;"}
@@ -4,19 +4,19 @@
4
4
  * This file is not intended for use in other contexts and there are no guarantees about its behavior outside of MySheerID.
5
5
  */
6
6
  /**
7
- * VERSION: 2.104.0-alpha.1
8
- * BUILD_TIMESTAMP: 1746128043861
9
- * BUILD_DATE: Thu May 01 2025 19:34:03 GMT+0000 (Coordinated Universal Time)
10
- * BUILD_COMMIT: a18837a69c59275ce314d94cf6208e53b6620598
7
+ * VERSION: 2.105.0-alpha.0
8
+ * BUILD_TIMESTAMP: 1746202258802
9
+ * BUILD_DATE: Fri May 02 2025 16:10:58 GMT+0000 (Coordinated Universal Time)
10
+ * BUILD_COMMIT: 5e00bc964fbbb4f7f7b152a375026d6591cd1564
11
11
  */
12
- import { i as A, h as T, _ as k, $ as q, c as B, R as L, u as d, j as o, s as W, t as w, P as H, v as U, Q as K, x as l, w as O, y as z, W as G, a0 as Q, z as _, B as $, E as J, d as X, D as Y, G as Z, M as S, H as v, e as ee, V as se, a as ae, a1 as oe } from "../_mysheerid-preview.js";
13
- import { u as te } from "./useCollectFieldsEndpoint-BsY8WlOg.js";
12
+ import { i as A, h as T, a4 as k, a5 as q, d as B, R as L, u as d, j as o, w, P as H, x as K, Y as U, z as l, y as W, B as O, $ as z, a6 as G, D as J, G as Y, E as $, e as Q, H as X, J as Z, M as _, K as S, f as v, V as ee, a as se, N as ae, a7 as oe } from "../_mysheerid-preview.js";
13
+ import { u as te } from "./useCollectFieldsEndpoint-C5fsaYJe.js";
14
14
  const de = ({ verificationService: s, intl: j }) => {
15
- var p, C, h, b, i, g, N, x, y;
15
+ var p, C, h, b, i, N, g, x, y;
16
16
  const a = s.viewModel, { fieldValidationErrors: t } = s, r = s.verificationResponse, E = T(r), I = k(
17
17
  s.programTheme,
18
18
  j
19
- ), F = q(I), m = B(() => a.countryChoice.value, F.value), c = m === "US" ? [{ key: "postalCode" }] : [], M = m !== "US" || s.programTheme.isSmsNotifierConfigured || s.programTheme.smsLoopEnabled, f = m !== "US" || s.programTheme.smsLoopEnabled, P = a.localeChoice.value, D = w();
19
+ ), F = q(I), m = B(() => a.countryChoice.value, F.value), M = m === "US" ? [{ key: "postalCode" }] : [], c = m !== "US" || s.programTheme.isSmsNotifierConfigured || s.programTheme.smsLoopEnabled, f = m !== "US" || s.programTheme.smsLoopEnabled, P = a.localeChoice.value, D = ae();
20
20
  !t.phoneNumber && r.errorIds && r.errorIds.includes("invalidPhoneNumber") && s.updateFieldValidationErrors({
21
21
  ...t,
22
22
  phoneNumber: "invalidPhoneNumber"
@@ -28,20 +28,20 @@ const de = ({ verificationService: s, intl: j }) => {
28
28
  verificationId: r.verificationId,
29
29
  currentStep: r.currentStep,
30
30
  viewModel: a,
31
- defaultRequiredFields: c
31
+ defaultRequiredFields: M
32
32
  });
33
33
  return L.useEffect(() => {
34
34
  d("phoneNumber", a.phoneNumber, s);
35
35
  }, [a.country]), /* @__PURE__ */ o.jsxs(
36
- W,
36
+ w,
37
37
  {
38
38
  verificationService: s,
39
39
  step: r.currentStep,
40
40
  children: [
41
41
  /* @__PURE__ */ o.jsx(H, { verificationService: s, classNameIdentifier: "age" }),
42
- /* @__PURE__ */ o.jsx(U, { verificationService: s }),
42
+ /* @__PURE__ */ o.jsx(K, { verificationService: s }),
43
43
  /* @__PURE__ */ o.jsx(
44
- K,
44
+ U,
45
45
  {
46
46
  verificationService: s,
47
47
  disabled: (p = l("country")) == null ? void 0 : p.disabled
@@ -49,7 +49,7 @@ const de = ({ verificationService: s, intl: j }) => {
49
49
  ),
50
50
  /* @__PURE__ */ o.jsxs("div", { className: "sid-names", children: [
51
51
  /* @__PURE__ */ o.jsx(
52
- O,
52
+ W,
53
53
  {
54
54
  value: a.firstName,
55
55
  isErrored: !!t.firstName,
@@ -60,7 +60,7 @@ const de = ({ verificationService: s, intl: j }) => {
60
60
  }
61
61
  ),
62
62
  /* @__PURE__ */ o.jsx(
63
- z,
63
+ O,
64
64
  {
65
65
  value: a.lastName,
66
66
  isErrored: !!t.lastName,
@@ -72,7 +72,7 @@ const de = ({ verificationService: s, intl: j }) => {
72
72
  )
73
73
  ] }),
74
74
  /* @__PURE__ */ o.jsx(
75
- G,
75
+ z,
76
76
  {
77
77
  errorId: t.birthDate,
78
78
  locale: P,
@@ -84,7 +84,7 @@ const de = ({ verificationService: s, intl: j }) => {
84
84
  }
85
85
  ),
86
86
  u("city") && /* @__PURE__ */ o.jsx(
87
- Q,
87
+ G,
88
88
  {
89
89
  value: a.city,
90
90
  isRequired: !0,
@@ -97,7 +97,7 @@ const de = ({ verificationService: s, intl: j }) => {
97
97
  }
98
98
  ),
99
99
  u("address1") && /* @__PURE__ */ o.jsx(
100
- _,
100
+ J,
101
101
  {
102
102
  value: a.address1,
103
103
  isRequired: !0,
@@ -109,30 +109,30 @@ const de = ({ verificationService: s, intl: j }) => {
109
109
  }
110
110
  ),
111
111
  u("postalCode") && /* @__PURE__ */ o.jsx(
112
- $,
112
+ Y,
113
113
  {
114
114
  isErrored: !!t.postalCode,
115
115
  onChange: (e) => {
116
116
  n("postalCode", e), d("postalCode", e, s);
117
117
  },
118
118
  value: a.postalCode,
119
- disabled: (g = l("postalCode")) == null ? void 0 : g.disabled
119
+ disabled: (N = l("postalCode")) == null ? void 0 : N.disabled
120
120
  }
121
121
  ),
122
122
  /* @__PURE__ */ o.jsx(
123
- J,
123
+ $,
124
124
  {
125
125
  value: a.email,
126
126
  isErrored: !!t.email,
127
127
  onChange: (e) => {
128
128
  n("email", e), d("email", e, s);
129
129
  },
130
- onKeyDown: (e) => X(e),
131
- disabled: (N = l("email")) == null ? void 0 : N.disabled
130
+ onKeyDown: (e) => Q(e),
131
+ disabled: (g = l("email")) == null ? void 0 : g.disabled
132
132
  }
133
133
  ),
134
- M ? /* @__PURE__ */ o.jsx(
135
- Y,
134
+ c ? /* @__PURE__ */ o.jsx(
135
+ X,
136
136
  {
137
137
  isRequired: f,
138
138
  value: a.phoneNumber,
@@ -146,7 +146,7 @@ const de = ({ verificationService: s, intl: j }) => {
146
146
  ) : null,
147
147
  D.customFormFields.map((e) => /* @__PURE__ */ o.jsx(Z, { config: e, verificationService: s })),
148
148
  /* @__PURE__ */ o.jsx(
149
- S,
149
+ _,
150
150
  {
151
151
  verificationService: s,
152
152
  isErrored: !!t.marketConsentValue,
@@ -160,16 +160,16 @@ const de = ({ verificationService: s, intl: j }) => {
160
160
  disabled: (y = l("marketConsentValue")) == null ? void 0 : y.disabled
161
161
  }
162
162
  ),
163
- /* @__PURE__ */ o.jsx(v, { verificationService: s, suffix: "CollectAboveSubmit" }),
163
+ /* @__PURE__ */ o.jsx(S, { verificationService: s, suffix: "CollectAboveSubmit" }),
164
164
  /* @__PURE__ */ o.jsx(
165
- ee,
165
+ v,
166
166
  {
167
- step: se.collectAgePersonalInfo,
167
+ step: ee.collectAgePersonalInfo,
168
168
  verificationService: s,
169
169
  viewModel: a,
170
170
  failedInstantMatch: E,
171
171
  buttonText: /* @__PURE__ */ o.jsx(
172
- ae,
172
+ se,
173
173
  {
174
174
  id: "step.personalInfo.submitButtonText",
175
175
  defaultMessage: "Verify and continue"
@@ -1 +1 @@
1
- {"version":3,"file":"index-_ohn63ug.js","sources":["../../src/components/StepAgePersonalInfo/StepAgePersonalInfoComponent.tsx"],"sourcesContent":["/**\n * TODO - preamble\n */\nimport React from \"react\";\nimport { FormattedHTMLMessage, InjectedIntl, injectIntl } from \"react-intl\";\n\nimport { useCollectFieldsEndpoint } from \"@/lib/ServerApi/useCollectFieldsEndpoint\";\nimport { VerificationStepsEnum } from \"../../lib/types/runtimeTypes\";\nimport { hasFailedInstantMatch } from \"../../lib/VerificationService/VerificationServiceHelpers\";\nimport { getSafe } from \"../../lib/utils/getSafe\";\nimport {\n VerificationService,\n AgePersonalInfoViewModel,\n AgePersonalInfoResponse,\n FormSelectChoice,\n Country,\n FieldDescription,\n CustomFormFieldConfig,\n} from \"../../lib/types/types\";\n\nimport {\n handleEmailOnKeyDown,\n updateFieldValidationErrorsByFieldId,\n getAvailableCountryChoices,\n getDefaultCountryChoice,\n produceDraftViewModel,\n getFieldConfigByFieldId,\n} from \"../../lib/utils/stepComponentHelpers/stepComponentHelpers\";\n\nimport { MarketConsentWrapperComponent as MarketConsentWrapper } from \"../FormFields/MarketConsentWrapper/MarketConsentWrapperComponent\";\nimport { PhoneNumberComponent as PhoneNumber } from \"../FormFields/PhoneNumber/PhoneNumberComponent\";\nimport { FirstNameComponent as FirstName } from \"../FormFields/FirstName/FirstNameComponent\";\nimport { LastNameComponent as LastName } from \"../FormFields/LastName/LastNameComponent\";\nimport { EmailComponent as Email } from \"../FormFields/Email/EmailComponent\";\nimport { BirthDateComponent as BirthDate } from \"../FormFields/BirthDate/BirthDateComponent\";\nimport { PostalCodeComponent as PostalCode } from \"../FormFields/PostalCode/PostalCodeComponent\";\n\nimport { CountryComponentWrapper } from \"../FormFields/Country/CountryComponentWrapper\";\nimport { CityComponent } from \"../FormFields/City/City\";\nimport { AddressComponent } from \"../FormFields/Address/AddressComponent\";\nimport { getOptions } from \"../../options/options\";\nimport { FormFieldCustom } from \"../FormFields/FormFieldCustom/FormFieldCustom\";\nimport { ExtraMessage } from \"../ExtraMessage\";\nimport { ChangeLocaleV2Component } from \"../FormFields/ChangeLocale/ChangeLocaleComponent\";\nimport { PersonalInfoWrapper } from \"../PersonalInfoStepWrapper/PersonalInfoStepWrapper\";\nimport { PersonalInfoStepSubmitButton } from \"../PersonalInfoStepSubmitButton/PersonalInfoStepSubmitButton\";\nimport { PersonalInfoHeader } from \"../FormHeader/StepHeaders/PersonalInfoHeaderComponent\";\n\ninterface StepAgePersonalInfoComponentProps {\n intl: InjectedIntl;\n verificationService: VerificationService;\n}\n\nconst StepAgePersonalInfo = ({ verificationService, intl }: StepAgePersonalInfoComponentProps) => {\n const viewModel = verificationService.viewModel as AgePersonalInfoViewModel;\n const { fieldValidationErrors } = verificationService;\n const verificationResponse = verificationService.verificationResponse as AgePersonalInfoResponse;\n const failedInstantMatch = hasFailedInstantMatch(verificationResponse);\n const countryChoices: FormSelectChoice<Country, string>[] = getAvailableCountryChoices(\n verificationService.programTheme,\n intl,\n );\n const defaultCountryChoice: FormSelectChoice<Country, string> =\n getDefaultCountryChoice(countryChoices);\n const safeCountryValue = getSafe(() => viewModel.countryChoice.value, defaultCountryChoice.value);\n const defaultRequiredFields: FieldDescription[] =\n safeCountryValue === \"US\" ? [{ key: \"postalCode\" }] : [];\n\n // PhoneNumber is required for all non-US age programs and if smsLoop is enabled.\n const showPhoneNumber =\n safeCountryValue !== \"US\" ||\n verificationService.programTheme.isSmsNotifierConfigured ||\n verificationService.programTheme.smsLoopEnabled;\n const phoneNumberRequired =\n safeCountryValue !== \"US\" || verificationService.programTheme.smsLoopEnabled;\n\n const locale = viewModel.localeChoice.value;\n const options = getOptions();\n\n if (\n !fieldValidationErrors.phoneNumber &&\n verificationResponse.errorIds &&\n verificationResponse.errorIds.includes(\"invalidPhoneNumber\")\n ) {\n verificationService.updateFieldValidationErrors({\n ...fieldValidationErrors,\n phoneNumber: \"invalidPhoneNumber\",\n });\n }\n\n const updateAgeViewModel = (key: keyof AgePersonalInfoViewModel, value: any) => {\n const nextState: AgePersonalInfoViewModel = produceDraftViewModel(viewModel, key, value);\n verificationService.updateViewModel(nextState);\n };\n\n const { isFieldRequired } = useCollectFieldsEndpoint({\n verificationId: verificationResponse.verificationId,\n currentStep: verificationResponse.currentStep,\n viewModel,\n defaultRequiredFields,\n });\n\n React.useEffect(() => {\n // When country changes re-check the phone number validation\n updateFieldValidationErrorsByFieldId(\"phoneNumber\", viewModel.phoneNumber, verificationService);\n }, [viewModel.country]);\n\n return (\n <PersonalInfoWrapper\n verificationService={verificationService}\n step={verificationResponse.currentStep}\n >\n <PersonalInfoHeader verificationService={verificationService} classNameIdentifier=\"age\" />\n\n <ChangeLocaleV2Component verificationService={verificationService} />\n <CountryComponentWrapper\n verificationService={verificationService}\n disabled={getFieldConfigByFieldId(\"country\")?.disabled}\n />\n\n <div className=\"sid-names\">\n <FirstName\n value={viewModel.firstName}\n isErrored={!!fieldValidationErrors.firstName}\n disabled={getFieldConfigByFieldId(\"firstName\")?.disabled}\n onChange={(newValue) => {\n updateAgeViewModel(\"firstName\", newValue);\n updateFieldValidationErrorsByFieldId(\"firstName\", newValue, verificationService);\n }}\n />\n\n <LastName\n value={viewModel.lastName}\n isErrored={!!fieldValidationErrors.lastName}\n disabled={getFieldConfigByFieldId(\"lastName\")?.disabled}\n onChange={(newValue) => {\n updateAgeViewModel(\"lastName\", newValue);\n updateFieldValidationErrorsByFieldId(\"lastName\", newValue, verificationService);\n }}\n />\n </div>\n <BirthDate\n errorId={fieldValidationErrors.birthDate}\n locale={locale}\n onChange={(newValue) => {\n updateAgeViewModel(\"birthDate\", newValue);\n updateFieldValidationErrorsByFieldId(\"birthDate\", newValue, verificationService);\n }}\n value={viewModel.birthDate}\n disabled={getFieldConfigByFieldId(\"birthDate\")?.disabled}\n />\n {isFieldRequired(\"city\") && (\n <CityComponent\n value={viewModel.city}\n isRequired\n isErrored={!!fieldValidationErrors.city}\n errorId={fieldValidationErrors.city}\n disabled={getFieldConfigByFieldId(\"city\")?.disabled}\n onChange={(value) => {\n updateAgeViewModel(\"city\", value);\n updateFieldValidationErrorsByFieldId(\"city\", value, verificationService);\n }}\n />\n )}\n {isFieldRequired(\"address1\") && (\n <AddressComponent\n value={viewModel.address1}\n isRequired\n isErrored={!!fieldValidationErrors.address1}\n errorId={fieldValidationErrors.address1}\n onChange={(value) => {\n updateAgeViewModel(\"address1\", value);\n updateFieldValidationErrorsByFieldId(\"address1\", value, verificationService);\n }}\n />\n )}\n {isFieldRequired(\"postalCode\") && (\n <PostalCode\n isErrored={!!fieldValidationErrors.postalCode}\n onChange={(newValue) => {\n updateAgeViewModel(\"postalCode\", newValue);\n updateFieldValidationErrorsByFieldId(\"postalCode\", newValue, verificationService);\n }}\n value={viewModel.postalCode}\n disabled={getFieldConfigByFieldId(\"postalCode\")?.disabled}\n />\n )}\n <Email\n value={viewModel.email}\n isErrored={!!fieldValidationErrors.email}\n onChange={(newValue) => {\n updateAgeViewModel(\"email\", newValue);\n updateFieldValidationErrorsByFieldId(\"email\", newValue, verificationService);\n }}\n onKeyDown={(event) => handleEmailOnKeyDown(event)}\n disabled={getFieldConfigByFieldId(\"email\")?.disabled}\n />\n\n {showPhoneNumber ? (\n <PhoneNumber\n isRequired={phoneNumberRequired}\n value={viewModel.phoneNumber}\n isErrored={!!fieldValidationErrors.phoneNumber}\n onChange={(newValue) => {\n updateAgeViewModel(\"phoneNumber\", newValue);\n updateFieldValidationErrorsByFieldId(\"phoneNumber\", newValue, verificationService);\n }}\n selectedCountryCode={viewModel.countryChoice && viewModel.countryChoice.value}\n disabled={getFieldConfigByFieldId(\"phoneNumber\")?.disabled}\n />\n ) : null}\n\n {options.customFormFields.map((config: CustomFormFieldConfig) => (\n <FormFieldCustom config={config} verificationService={verificationService} />\n ))}\n\n <MarketConsentWrapper\n verificationService={verificationService}\n isErrored={!!fieldValidationErrors.marketConsentValue}\n onChange={(newValue) => {\n updateAgeViewModel(\"metadata\", {\n ...verificationService.viewModel.metadata,\n marketConsentValue: newValue,\n });\n updateFieldValidationErrorsByFieldId(\"marketConsentValue\", newValue, verificationService);\n }}\n viewModel={viewModel}\n disabled={getFieldConfigByFieldId(\"marketConsentValue\")?.disabled}\n />\n\n <ExtraMessage verificationService={verificationService} suffix=\"CollectAboveSubmit\" />\n\n <PersonalInfoStepSubmitButton\n step={VerificationStepsEnum.collectAgePersonalInfo}\n verificationService={verificationService}\n viewModel={viewModel}\n failedInstantMatch={failedInstantMatch}\n buttonText={\n <FormattedHTMLMessage\n id=\"step.personalInfo.submitButtonText\"\n defaultMessage=\"Verify and continue\"\n />\n }\n />\n </PersonalInfoWrapper>\n );\n};\n\nexport const StepAgePersonalInfoComponent = injectIntl(StepAgePersonalInfo);\n"],"names":["StepAgePersonalInfo","verificationService","intl","viewModel","fieldValidationErrors","verificationResponse","failedInstantMatch","hasFailedInstantMatch","countryChoices","getAvailableCountryChoices","defaultCountryChoice","getDefaultCountryChoice","safeCountryValue","getSafe","defaultRequiredFields","showPhoneNumber","phoneNumberRequired","locale","options","getOptions","updateAgeViewModel","key","value","nextState","produceDraftViewModel","isFieldRequired","useCollectFieldsEndpoint","React","updateFieldValidationErrorsByFieldId","jsxs","PersonalInfoWrapper","jsx","PersonalInfoHeader","ChangeLocaleV2Component","CountryComponentWrapper","_a","getFieldConfigByFieldId","FirstName","_b","newValue","LastName","_c","BirthDate","_d","CityComponent","_e","AddressComponent","PostalCode","_f","Email","event","handleEmailOnKeyDown","_g","PhoneNumber","_h","config","FormFieldCustom","MarketConsentWrapper","_i","ExtraMessage","PersonalInfoStepSubmitButton","VerificationStepsEnum","FormattedHTMLMessage","StepAgePersonalInfoComponent","injectIntl"],"mappings":";;AAqDA,MAAMA,KAAsB,CAAC,EAAE,qBAAAC,GAAqB,MAAAC,QAA8C;;AAChG,QAAMC,IAAYF,EAAoB,WAChC,EAAE,uBAAAG,MAA0BH,GAC5BI,IAAuBJ,EAAoB,sBAC3CK,IAAqBC,EAAsBF,CAAoB,GAC/DG,IAAsDC;AAAA,IAC1DR,EAAoB;AAAA,IACpBC;AAAA,EACF,GACMQ,IACJC,EAAwBH,CAAc,GAClCI,IAAmBC,EAAQ,MAAMV,EAAU,cAAc,OAAOO,EAAqB,KAAK,GAC1FI,IACJF,MAAqB,OAAO,CAAC,EAAE,KAAK,aAAc,CAAA,IAAI,CAAC,GAGnDG,IACJH,MAAqB,QACrBX,EAAoB,aAAa,2BACjCA,EAAoB,aAAa,gBAC7Be,IACJJ,MAAqB,QAAQX,EAAoB,aAAa,gBAE1DgB,IAASd,EAAU,aAAa,OAChCe,IAAUC,EAAW;AAGzB,EAAA,CAACf,EAAsB,eACvBC,EAAqB,YACrBA,EAAqB,SAAS,SAAS,oBAAoB,KAE3DJ,EAAoB,4BAA4B;AAAA,IAC9C,GAAGG;AAAA,IACH,aAAa;AAAA,EAAA,CACd;AAGG,QAAAgB,IAAqB,CAACC,GAAqCC,MAAe;AAC9E,UAAMC,IAAsCC,GAAsBrB,GAAWkB,GAAKC,CAAK;AACvF,IAAArB,EAAoB,gBAAgBsB,CAAS;AAAA,EAC/C,GAEM,EAAE,iBAAAE,EAAgB,IAAIC,GAAyB;AAAA,IACnD,gBAAgBrB,EAAqB;AAAA,IACrC,aAAaA,EAAqB;AAAA,IAClC,WAAAF;AAAA,IACA,uBAAAW;AAAA,EAAA,CACD;AAED,SAAAa,EAAM,UAAU,MAAM;AAEiB,IAAAC,EAAA,eAAezB,EAAU,aAAaF,CAAmB;AAAA,EAAA,GAC7F,CAACE,EAAU,OAA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AAA,YACA,WAAAE;AAAA,YACA,WAAUuD,IAAAtB,EAAwB,oBAAoB,MAA5C,gBAAAsB,EAA+C;AAAA,UAAA;AAAA,QAC3D;AAAA,QAEC3B,gBAAAA,EAAAA,IAAA4B,GAAA,EAAa,qBAAA1D,GAA0C,QAAO,qBAAqB,CAAA;AAAA,QAEpF8B,gBAAAA,EAAA;AAAA,UAAC6B;AAAA,UAAA;AAAA,YACC,MAAMC,GAAsB;AAAA,YAC5B,qBAAA5D;AAAA,YACA,WAAAE;AAAA,YACA,oBAAAG;AAAA,YACA,YACEyB,gBAAAA,EAAA;AAAA,cAAC+B;AAAA,cAAA;AAAA,gBACC,IAAG;AAAA,gBACH,gBAAe;AAAA,cAAA;AAAA,YAAA;AAAA,UACjB;AAAA,QAAA;AAAA,MAEJ;AAAA,IAAA;AAAA,EACF;AAEJ,GAEaC,KAA+BC,EAAWhE,EAAmB;"}
1
+ {"version":3,"file":"index-DpYUZXus.js","sources":["../../src/components/StepAgePersonalInfo/StepAgePersonalInfoComponent.tsx"],"sourcesContent":["/**\n * TODO - preamble\n */\nimport React from \"react\";\nimport { FormattedHTMLMessage, InjectedIntl, injectIntl } from \"react-intl\";\n\nimport { useCollectFieldsEndpoint } from \"@/lib/ServerApi/useCollectFieldsEndpoint\";\nimport { VerificationStepsEnum } from \"../../lib/types/runtimeTypes\";\nimport { hasFailedInstantMatch } from \"../../lib/VerificationService/VerificationServiceHelpers\";\nimport { getSafe } from \"../../lib/utils/getSafe\";\nimport {\n VerificationService,\n AgePersonalInfoViewModel,\n AgePersonalInfoResponse,\n FormSelectChoice,\n Country,\n FieldDescription,\n CustomFormFieldConfig,\n} from \"../../lib/types/types\";\n\nimport {\n handleEmailOnKeyDown,\n updateFieldValidationErrorsByFieldId,\n getAvailableCountryChoices,\n getDefaultCountryChoice,\n produceDraftViewModel,\n getFieldConfigByFieldId,\n} from \"../../lib/utils/stepComponentHelpers/stepComponentHelpers\";\n\nimport { MarketConsentWrapperComponent as MarketConsentWrapper } from \"../FormFields/MarketConsentWrapper/MarketConsentWrapperComponent\";\nimport { PhoneNumberComponent as PhoneNumber } from \"../FormFields/PhoneNumber/PhoneNumberComponent\";\nimport { FirstNameComponent as FirstName } from \"../FormFields/FirstName/FirstNameComponent\";\nimport { LastNameComponent as LastName } from \"../FormFields/LastName/LastNameComponent\";\nimport { EmailComponent as Email } from \"../FormFields/Email/EmailComponent\";\nimport { BirthDateComponent as BirthDate } from \"../FormFields/BirthDate/BirthDateComponent\";\nimport { PostalCodeComponent as PostalCode } from \"../FormFields/PostalCode/PostalCodeComponent\";\n\nimport { CountryComponentWrapper } from \"../FormFields/Country/CountryComponentWrapper\";\nimport { CityComponent } from \"../FormFields/City/City\";\nimport { AddressComponent } from \"../FormFields/Address/AddressComponent\";\nimport { getOptions } from \"../../options/options\";\nimport { FormFieldCustom } from \"../FormFields/FormFieldCustom/FormFieldCustom\";\nimport { ExtraMessage } from \"../ExtraMessage\";\nimport { ChangeLocaleV2Component } from \"../FormFields/ChangeLocale/ChangeLocaleComponent\";\nimport { PersonalInfoWrapper } from \"../PersonalInfoStepWrapper/PersonalInfoStepWrapper\";\nimport { PersonalInfoStepSubmitButton } from \"../PersonalInfoStepSubmitButton/PersonalInfoStepSubmitButton\";\nimport { PersonalInfoHeader } from \"../FormHeader/StepHeaders/PersonalInfoHeaderComponent\";\n\ninterface StepAgePersonalInfoComponentProps {\n intl: InjectedIntl;\n verificationService: VerificationService;\n}\n\nconst StepAgePersonalInfo = ({ verificationService, intl }: StepAgePersonalInfoComponentProps) => {\n const viewModel = verificationService.viewModel as AgePersonalInfoViewModel;\n const { fieldValidationErrors } = verificationService;\n const verificationResponse = verificationService.verificationResponse as AgePersonalInfoResponse;\n const failedInstantMatch = hasFailedInstantMatch(verificationResponse);\n const countryChoices: FormSelectChoice<Country, string>[] = getAvailableCountryChoices(\n verificationService.programTheme,\n intl,\n );\n const defaultCountryChoice: FormSelectChoice<Country, string> =\n getDefaultCountryChoice(countryChoices);\n const safeCountryValue = getSafe(() => viewModel.countryChoice.value, defaultCountryChoice.value);\n const defaultRequiredFields: FieldDescription[] =\n safeCountryValue === \"US\" ? [{ key: \"postalCode\" }] : [];\n\n // PhoneNumber is required for all non-US age programs and if smsLoop is enabled.\n const showPhoneNumber =\n safeCountryValue !== \"US\" ||\n verificationService.programTheme.isSmsNotifierConfigured ||\n verificationService.programTheme.smsLoopEnabled;\n const phoneNumberRequired =\n safeCountryValue !== \"US\" || verificationService.programTheme.smsLoopEnabled;\n\n const locale = viewModel.localeChoice.value;\n const options = getOptions();\n\n if (\n !fieldValidationErrors.phoneNumber &&\n verificationResponse.errorIds &&\n verificationResponse.errorIds.includes(\"invalidPhoneNumber\")\n ) {\n verificationService.updateFieldValidationErrors({\n ...fieldValidationErrors,\n phoneNumber: \"invalidPhoneNumber\",\n });\n }\n\n const updateAgeViewModel = (key: keyof AgePersonalInfoViewModel, value: any) => {\n const nextState: AgePersonalInfoViewModel = produceDraftViewModel(viewModel, key, value);\n verificationService.updateViewModel(nextState);\n };\n\n const { isFieldRequired } = useCollectFieldsEndpoint({\n verificationId: verificationResponse.verificationId,\n currentStep: verificationResponse.currentStep,\n viewModel,\n defaultRequiredFields,\n });\n\n React.useEffect(() => {\n // When country changes re-check the phone number validation\n updateFieldValidationErrorsByFieldId(\"phoneNumber\", viewModel.phoneNumber, verificationService);\n }, [viewModel.country]);\n\n return (\n <PersonalInfoWrapper\n verificationService={verificationService}\n step={verificationResponse.currentStep}\n >\n <PersonalInfoHeader verificationService={verificationService} classNameIdentifier=\"age\" />\n\n <ChangeLocaleV2Component verificationService={verificationService} />\n <CountryComponentWrapper\n verificationService={verificationService}\n disabled={getFieldConfigByFieldId(\"country\")?.disabled}\n />\n\n <div className=\"sid-names\">\n <FirstName\n value={viewModel.firstName}\n isErrored={!!fieldValidationErrors.firstName}\n disabled={getFieldConfigByFieldId(\"firstName\")?.disabled}\n onChange={(newValue) => {\n updateAgeViewModel(\"firstName\", newValue);\n updateFieldValidationErrorsByFieldId(\"firstName\", newValue, verificationService);\n }}\n />\n\n <LastName\n value={viewModel.lastName}\n isErrored={!!fieldValidationErrors.lastName}\n disabled={getFieldConfigByFieldId(\"lastName\")?.disabled}\n onChange={(newValue) => {\n updateAgeViewModel(\"lastName\", newValue);\n updateFieldValidationErrorsByFieldId(\"lastName\", newValue, verificationService);\n }}\n />\n </div>\n <BirthDate\n errorId={fieldValidationErrors.birthDate}\n locale={locale}\n onChange={(newValue) => {\n updateAgeViewModel(\"birthDate\", newValue);\n updateFieldValidationErrorsByFieldId(\"birthDate\", newValue, verificationService);\n }}\n value={viewModel.birthDate}\n disabled={getFieldConfigByFieldId(\"birthDate\")?.disabled}\n />\n {isFieldRequired(\"city\") && (\n <CityComponent\n value={viewModel.city}\n isRequired\n isErrored={!!fieldValidationErrors.city}\n errorId={fieldValidationErrors.city}\n disabled={getFieldConfigByFieldId(\"city\")?.disabled}\n onChange={(value) => {\n updateAgeViewModel(\"city\", value);\n updateFieldValidationErrorsByFieldId(\"city\", value, verificationService);\n }}\n />\n )}\n {isFieldRequired(\"address1\") && (\n <AddressComponent\n value={viewModel.address1}\n isRequired\n isErrored={!!fieldValidationErrors.address1}\n errorId={fieldValidationErrors.address1}\n onChange={(value) => {\n updateAgeViewModel(\"address1\", value);\n updateFieldValidationErrorsByFieldId(\"address1\", value, verificationService);\n }}\n />\n )}\n {isFieldRequired(\"postalCode\") && (\n <PostalCode\n isErrored={!!fieldValidationErrors.postalCode}\n onChange={(newValue) => {\n updateAgeViewModel(\"postalCode\", newValue);\n updateFieldValidationErrorsByFieldId(\"postalCode\", newValue, verificationService);\n }}\n value={viewModel.postalCode}\n disabled={getFieldConfigByFieldId(\"postalCode\")?.disabled}\n />\n )}\n <Email\n value={viewModel.email}\n isErrored={!!fieldValidationErrors.email}\n onChange={(newValue) => {\n updateAgeViewModel(\"email\", newValue);\n updateFieldValidationErrorsByFieldId(\"email\", newValue, verificationService);\n }}\n onKeyDown={(event) => handleEmailOnKeyDown(event)}\n disabled={getFieldConfigByFieldId(\"email\")?.disabled}\n />\n\n {showPhoneNumber ? (\n <PhoneNumber\n isRequired={phoneNumberRequired}\n value={viewModel.phoneNumber}\n isErrored={!!fieldValidationErrors.phoneNumber}\n onChange={(newValue) => {\n updateAgeViewModel(\"phoneNumber\", newValue);\n updateFieldValidationErrorsByFieldId(\"phoneNumber\", newValue, verificationService);\n }}\n selectedCountryCode={viewModel.countryChoice && viewModel.countryChoice.value}\n disabled={getFieldConfigByFieldId(\"phoneNumber\")?.disabled}\n />\n ) : null}\n\n {options.customFormFields.map((config: CustomFormFieldConfig) => (\n <FormFieldCustom config={config} verificationService={verificationService} />\n ))}\n\n <MarketConsentWrapper\n verificationService={verificationService}\n isErrored={!!fieldValidationErrors.marketConsentValue}\n onChange={(newValue) => {\n updateAgeViewModel(\"metadata\", {\n ...verificationService.viewModel.metadata,\n marketConsentValue: newValue,\n });\n updateFieldValidationErrorsByFieldId(\"marketConsentValue\", newValue, verificationService);\n }}\n viewModel={viewModel}\n disabled={getFieldConfigByFieldId(\"marketConsentValue\")?.disabled}\n />\n\n <ExtraMessage verificationService={verificationService} suffix=\"CollectAboveSubmit\" />\n\n <PersonalInfoStepSubmitButton\n step={VerificationStepsEnum.collectAgePersonalInfo}\n verificationService={verificationService}\n viewModel={viewModel}\n failedInstantMatch={failedInstantMatch}\n buttonText={\n <FormattedHTMLMessage\n id=\"step.personalInfo.submitButtonText\"\n defaultMessage=\"Verify and continue\"\n />\n }\n />\n </PersonalInfoWrapper>\n );\n};\n\nexport const StepAgePersonalInfoComponent = injectIntl(StepAgePersonalInfo);\n"],"names":["StepAgePersonalInfo","verificationService","intl","viewModel","fieldValidationErrors","verificationResponse","failedInstantMatch","hasFailedInstantMatch","countryChoices","getAvailableCountryChoices","defaultCountryChoice","getDefaultCountryChoice","safeCountryValue","getSafe","defaultRequiredFields","showPhoneNumber","phoneNumberRequired","locale","options","getOptions","updateAgeViewModel","key","value","nextState","produceDraftViewModel","isFieldRequired","useCollectFieldsEndpoint","React","updateFieldValidationErrorsByFieldId","jsxs","PersonalInfoWrapper","jsx","PersonalInfoHeader","ChangeLocaleV2Component","CountryComponentWrapper","_a","getFieldConfigByFieldId","FirstName","_b","newValue","LastName","_c","BirthDate","_d","CityComponent","_e","AddressComponent","PostalCode","_f","Email","event","handleEmailOnKeyDown","_g","PhoneNumber","_h","config","FormFieldCustom","MarketConsentWrapper","_i","ExtraMessage","PersonalInfoStepSubmitButton","VerificationStepsEnum","FormattedHTMLMessage","StepAgePersonalInfoComponent","injectIntl"],"mappings":";;AAqDA,MAAMA,KAAsB,CAAC,EAAE,qBAAAC,GAAqB,MAAAC,QAA8C;;AAChG,QAAMC,IAAYF,EAAoB,WAChC,EAAE,uBAAAG,EAA0B,IAAAH,GAC5BI,IAAuBJ,EAAoB,sBAC3CK,IAAqBC,EAAsBF,CAAoB,GAC/DG,IAAsDC;AAAA,IAC1DR,EAAoB;AAAA,IACpBC;AAAA,EAAA,GAEIQ,IACJC,EAAwBH,CAAc,GAClCI,IAAmBC,EAAQ,MAAMV,EAAU,cAAc,OAAOO,EAAqB,KAAK,GAC1FI,IACJF,MAAqB,OAAO,CAAC,EAAE,KAAK,aAAA,CAAc,IAAI,IAGlDG,IACJH,MAAqB,QACrBX,EAAoB,aAAa,2BACjCA,EAAoB,aAAa,gBAC7Be,IACJJ,MAAqB,QAAQX,EAAoB,aAAa,gBAE1DgB,IAASd,EAAU,aAAa,OAChCe,IAAUC;AAGd,EAAA,CAACf,EAAsB,eACvBC,EAAqB,YACrBA,EAAqB,SAAS,SAAS,oBAAoB,KAE3DJ,EAAoB,4BAA4B;AAAA,IAC9C,GAAGG;AAAA,IACH,aAAa;AAAA,EAAA,CACd;AAGG,QAAAgB,IAAqB,CAACC,GAAqCC,MAAe;AAC9E,UAAMC,IAAsCC,GAAsBrB,GAAWkB,GAAKC,CAAK;AACvF,IAAArB,EAAoB,gBAAgBsB,CAAS;AAAA,EAAA,GAGzC,EAAE,iBAAAE,EA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