@sheerid/jslib 2.105.0 → 2.106.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 (452) hide show
  1. package/__tests__/__helpers__/renderers.d.ts +5 -5
  2. package/_mysheerid-preview.css +4 -4
  3. package/_mysheerid-preview.js +18155 -16559
  4. package/_mysheerid-preview.js.map +1 -1
  5. package/chunk/{EmailLoopPending-DmENoLpP.js → EmailLoopPending-Dtf0p85F.js} +18 -18
  6. package/chunk/{EmailLoopPending-D-O7IRrU.js.map → EmailLoopPending-Dtf0p85F.js.map} +1 -1
  7. package/chunk/{EmailLoopPending-D-O7IRrU.js → EmailLoopPending-Dy8mLFvV.js} +18 -18
  8. package/chunk/{EmailLoopPending-DmENoLpP.js.map → EmailLoopPending-Dy8mLFvV.js.map} +1 -1
  9. package/chunk/{LicensedProfessionalOrganizationComponent-BrW9osPt.js → LicensedProfessionalOrganizationComponent-BYijEfDT.js} +8 -8
  10. package/chunk/{LicensedProfessionalOrganizationComponent-BrW9osPt.js.map → LicensedProfessionalOrganizationComponent-BYijEfDT.js.map} +1 -1
  11. package/chunk/{LicensedProfessionalOrganizationComponent-Cu6a9uBs.js → LicensedProfessionalOrganizationComponent-CiYU-2dW.js} +8 -8
  12. package/chunk/{LicensedProfessionalOrganizationComponent-Cu6a9uBs.js.map → LicensedProfessionalOrganizationComponent-CiYU-2dW.js.map} +1 -1
  13. package/chunk/{Onfido-CMH3IUna.js → Onfido-AyvUk6wg.js} +28 -28
  14. package/chunk/{Onfido-CMH3IUna.js.map → Onfido-AyvUk6wg.js.map} +1 -1
  15. package/chunk/{StepIDCheckLoopOnfido-BRtMQNQl.js → StepIDCheckLoopOnfido-CmNwFqjD.js} +12 -11
  16. package/chunk/{StepIDCheckLoopOnfido-BRtMQNQl.js.map → StepIDCheckLoopOnfido-CmNwFqjD.js.map} +1 -1
  17. package/chunk/{StepIDCheckLoopOnfido-mZhLONqq.js → StepIDCheckLoopOnfido-DtbplNxs.js} +12 -11
  18. package/chunk/{StepIDCheckLoopOnfido-mZhLONqq.js.map → StepIDCheckLoopOnfido-DtbplNxs.js.map} +1 -1
  19. package/chunk/{StepIDCheckLoopRegula-1wd-jJGJ.js → StepIDCheckLoopRegula-RoX971sR.js} +59 -85
  20. package/chunk/StepIDCheckLoopRegula-RoX971sR.js.map +1 -0
  21. package/chunk/{StepIDCheckLoopRegula-jyg1vIi3.js → StepIDCheckLoopRegula-oqf-QxHT.js} +59 -85
  22. package/chunk/StepIDCheckLoopRegula-oqf-QxHT.js.map +1 -0
  23. package/chunk/{StepInactiveMilitaryPersonalInfoComponent-CmQGKlal.js → StepInactiveMilitaryPersonalInfoComponent-CTCfr5Y8.js} +52 -52
  24. package/chunk/{StepInactiveMilitaryPersonalInfoComponent-CmQGKlal.js.map → StepInactiveMilitaryPersonalInfoComponent-CTCfr5Y8.js.map} +1 -1
  25. package/chunk/{StepInactiveMilitaryPersonalInfoComponent-Qfl3ZvB1.js → StepInactiveMilitaryPersonalInfoComponent-D4veFRlW.js} +52 -52
  26. package/chunk/{StepInactiveMilitaryPersonalInfoComponent-Qfl3ZvB1.js.map → StepInactiveMilitaryPersonalInfoComponent-D4veFRlW.js.map} +1 -1
  27. package/chunk/ar-CtJ_9k3U.js +4 -4
  28. package/chunk/bg-CWxXfiDq.js +4 -4
  29. package/chunk/bn-IN-Dpq_hCqt.js +4 -4
  30. package/chunk/cs-HevyelX7.js +4 -4
  31. package/chunk/da-6QXhWjWH.js +4 -4
  32. package/chunk/de-ChuCvRLv.js +4 -4
  33. package/chunk/el-3IAhABcN.js +4 -4
  34. package/chunk/en-GB-ByNBaer-.js +4 -4
  35. package/chunk/es-CL_dUc9X.js +4 -4
  36. package/chunk/es-ES-CW4At4Ol.js +4 -4
  37. package/chunk/fi-D8cIebkk.js +4 -4
  38. package/chunk/fr-BDU-1C6f.js +4 -4
  39. package/chunk/fr-CA-Dc02rv8D.js +4 -4
  40. package/chunk/ga-P7eP-INQ.js +4 -4
  41. package/chunk/hi-IN-DlmwjoqH.js +4 -4
  42. package/chunk/hr-CT_VP_lm.js +4 -4
  43. package/chunk/hu-I8Z1uXsR.js +4 -4
  44. package/chunk/id-CUPTGKOT.js +4 -4
  45. package/chunk/{index-IntP52Fm.js → index-4APUDd8S.js} +26 -26
  46. package/chunk/{index-IntP52Fm.js.map → index-4APUDd8S.js.map} +1 -1
  47. package/chunk/{index-BrVZpRb7.js → index-9OD0Bw98.js} +58 -58
  48. package/chunk/{index-BgB4HxER.js.map → index-9OD0Bw98.js.map} +1 -1
  49. package/chunk/index-B-PpnUEO.js +52 -0
  50. package/chunk/index-B-PpnUEO.js.map +1 -0
  51. package/chunk/{index-D_lbJwrN.js → index-B8F8N-JM.js} +46 -46
  52. package/chunk/{index-D_lbJwrN.js.map → index-B8F8N-JM.js.map} +1 -1
  53. package/chunk/{index-C3tQa9xA.js → index-B8KPM--K.js} +48 -56
  54. package/chunk/{index-C3tQa9xA.js.map → index-B8KPM--K.js.map} +1 -1
  55. package/chunk/{index-BJxmlJd1.js → index-BD2bjH-C.js} +5 -5
  56. package/{lib/index-mtr_UcW2.js.map → chunk/index-BD2bjH-C.js.map} +1 -1
  57. package/chunk/{index-GaKINs6g.js → index-BD_a0MZT.js} +24 -24
  58. package/chunk/{index-i9-QlgZ0.js.map → index-BD_a0MZT.js.map} +1 -1
  59. package/chunk/{index-DZ0bnNgg.js → index-BDrKYann.js} +29 -29
  60. package/chunk/{index-D1j4nnQa.js.map → index-BDrKYann.js.map} +1 -1
  61. package/chunk/{index-NMedOT6B.js → index-BTR4RdFx.js} +25 -25
  62. package/chunk/{index-NMedOT6B.js.map → index-BTR4RdFx.js.map} +1 -1
  63. package/chunk/{index-DJReh58z.js → index-Bi9QXN5x.js} +9 -9
  64. package/chunk/{index-DJReh58z.js.map → index-Bi9QXN5x.js.map} +1 -1
  65. package/chunk/{index-whConjrR.js → index-Bmq6cJ3F.js} +25 -25
  66. package/{lib/index-CkM0aH9Q.js.map → chunk/index-Bmq6cJ3F.js.map} +1 -1
  67. package/chunk/{index-i9-QlgZ0.js → index-BpZoH-Wz.js} +24 -24
  68. package/chunk/{index-GaKINs6g.js.map → index-BpZoH-Wz.js.map} +1 -1
  69. package/chunk/{index-F-HVkQz5.js → index-BuX76GyE.js} +40 -40
  70. package/{lib/index-CZyo7O6A.js.map → chunk/index-BuX76GyE.js.map} +1 -1
  71. package/chunk/{index-1tM2UWke.js → index-C2h0Wj84.js} +48 -56
  72. package/chunk/{index-1tM2UWke.js.map → index-C2h0Wj84.js.map} +1 -1
  73. package/chunk/{index-D6RaCifq.js → index-C8MQD8EK.js} +26 -26
  74. package/chunk/{index-D6RaCifq.js.map → index-C8MQD8EK.js.map} +1 -1
  75. package/chunk/{index-Cb7GlxEu.js → index-C8u9IJUa.js} +11 -11
  76. package/chunk/{index-BmJ3aubI.js.map → index-C8u9IJUa.js.map} +1 -1
  77. package/chunk/{index-n6-LNqUp.js → index-C96ntS0u.js} +25 -25
  78. package/chunk/{index-n6-LNqUp.js.map → index-C96ntS0u.js.map} +1 -1
  79. package/chunk/{index-C6cgSdQ9.js → index-CG2W8lDZ.js} +41 -41
  80. package/chunk/{index-BjWeyRVL.js.map → index-CG2W8lDZ.js.map} +1 -1
  81. package/chunk/index-CHK5i4jj.js +48 -0
  82. package/chunk/index-CHK5i4jj.js.map +1 -0
  83. package/chunk/{index-BSXBGGOf.js → index-CTb96lOK.js} +8 -8
  84. package/chunk/{index-BSXBGGOf.js.map → index-CTb96lOK.js.map} +1 -1
  85. package/chunk/{index-CEidf7uT.js → index-CcRowarb.js} +5 -5
  86. package/chunk/{index-CEidf7uT.js.map → index-CcRowarb.js.map} +1 -1
  87. package/chunk/{index-DFjiwKs3.js → index-CeHu2Npu.js} +7 -7
  88. package/chunk/{index-rjS-77t0.js.map → index-CeHu2Npu.js.map} +1 -1
  89. package/chunk/{index-DkuH8kG3.js → index-CepZL7Cr.js} +25 -25
  90. package/chunk/{index-DkuH8kG3.js.map → index-CepZL7Cr.js.map} +1 -1
  91. package/chunk/{index-vIL1gjSk.js → index-CniY_P3e.js} +219 -237
  92. package/chunk/index-CniY_P3e.js.map +1 -0
  93. package/chunk/{index-BjWeyRVL.js → index-DDyTUP55.js} +41 -41
  94. package/chunk/{index-C6cgSdQ9.js.map → index-DDyTUP55.js.map} +1 -1
  95. package/chunk/index-DIkWpujR.js +4 -4
  96. package/chunk/index-DIkWpujR.js.map +1 -1
  97. package/chunk/{index-BgB4HxER.js → index-DKWjcFJK.js} +58 -58
  98. package/chunk/{index-BrVZpRb7.js.map → index-DKWjcFJK.js.map} +1 -1
  99. package/chunk/{index-D6Gez9pU.js → index-DLz31Fzh.js} +17 -17
  100. package/chunk/{index-DyHhX3QL.js.map → index-DLz31Fzh.js.map} +1 -1
  101. package/chunk/{index-Cq8qB8GK.js → index-DO5Z3e-E.js} +40 -40
  102. package/chunk/{index-F-HVkQz5.js.map → index-DO5Z3e-E.js.map} +1 -1
  103. package/chunk/{index-BmJ3aubI.js → index-DRlGAW07.js} +11 -11
  104. package/chunk/{index-Cb7GlxEu.js.map → index-DRlGAW07.js.map} +1 -1
  105. package/chunk/{index-rjS-77t0.js → index-DVynViqA.js} +7 -7
  106. package/chunk/{index-DFjiwKs3.js.map → index-DVynViqA.js.map} +1 -1
  107. package/chunk/{index-25aIMfhs.js → index-Dg8t7-dm.js} +46 -46
  108. package/chunk/{index-25aIMfhs.js.map → index-Dg8t7-dm.js.map} +1 -1
  109. package/chunk/{index-D1j4nnQa.js → index-DhGg9lvf.js} +29 -29
  110. package/chunk/{index-DZ0bnNgg.js.map → index-DhGg9lvf.js.map} +1 -1
  111. package/chunk/{index-D8z4eipH.js → index-DtH8Qo7N.js} +51 -51
  112. package/chunk/{index-ygMzyxW9.js.map → index-DtH8Qo7N.js.map} +1 -1
  113. package/chunk/{index-DyHhX3QL.js → index-DzqRsB7_.js} +17 -17
  114. package/chunk/{index-D6Gez9pU.js.map → index-DzqRsB7_.js.map} +1 -1
  115. package/chunk/{index-DR_Yi6nm.js → index-FfXcSdRM.js} +219 -237
  116. package/chunk/index-FfXcSdRM.js.map +1 -0
  117. package/chunk/{index-CGKKTwvx.js → index-FjzhfDlx.js} +9 -9
  118. package/chunk/{index-CGKKTwvx.js.map → index-FjzhfDlx.js.map} +1 -1
  119. package/chunk/{index-DPLvpl1z.js → index-Gfy-1H7s.js} +8 -8
  120. package/{lib/index-DNrYLi4q.js.map → chunk/index-Gfy-1H7s.js.map} +1 -1
  121. package/chunk/{index-ygMzyxW9.js → index-jFznw2e5.js} +51 -51
  122. package/chunk/{index-D8z4eipH.js.map → index-jFznw2e5.js.map} +1 -1
  123. package/chunk/is-CUuXi4qZ.js +4 -4
  124. package/chunk/it-BNmynTsg.js +4 -4
  125. package/chunk/iw-FGzquR_X.js +4 -4
  126. package/chunk/ja-YgUpXA0l.js +4 -4
  127. package/chunk/ko-CuNS5J_M.js +4 -4
  128. package/chunk/lo-BEf8aFjR.js +4 -4
  129. package/chunk/lt-DvX1gz1a.js +4 -4
  130. package/chunk/ms-gSqM-Mfi.js +4 -4
  131. package/chunk/nl-BE-Cid5LFlN.js +4 -4
  132. package/chunk/nl-CUUTswxa.js +4 -4
  133. package/chunk/no-BvUqlShV.js +4 -4
  134. package/chunk/pl-CU8leZhI.js +4 -4
  135. package/chunk/pt-BR-CboWpHFi.js +4 -4
  136. package/chunk/pt-BnK7xRT_.js +4 -4
  137. package/chunk/ro-BfAyXxSW.js +4 -4
  138. package/chunk/ru-BD-YGPuQ.js +4 -4
  139. package/chunk/sk-CqsabpdG.js +4 -4
  140. package/chunk/sl-CeVAf0S_.js +4 -4
  141. package/chunk/sr-DSaHxcCQ.js +4 -4
  142. package/chunk/sv-DOyWYViy.js +4 -4
  143. package/chunk/sw-2Q7Jo6wp.js +4 -4
  144. package/chunk/th-BZ6F9sPf.js +4 -4
  145. package/chunk/tr-om80xrv2.js +4 -4
  146. package/chunk/uk-Dxugux8e.js +4 -4
  147. package/chunk/ur-OBILUeZ7.js +4 -4
  148. package/chunk/{useCollectFieldsEndpoint-CumMd2sJ.js → useCollectFieldsEndpoint-C5fsaYJe.js} +5 -5
  149. package/chunk/{useCollectFieldsEndpoint-CumMd2sJ.js.map → useCollectFieldsEndpoint-C5fsaYJe.js.map} +1 -1
  150. package/chunk/{useCollectFieldsEndpoint-V5bz5WAF.js → useCollectFieldsEndpoint-kmLFyUA-.js} +5 -5
  151. package/chunk/{useCollectFieldsEndpoint-V5bz5WAF.js.map → useCollectFieldsEndpoint-kmLFyUA-.js.map} +1 -1
  152. package/chunk/{useEmailFirstExperiment-CV5nAxtl.js → useEmailFirstExperiment-BbDrKQEs.js} +29 -30
  153. package/chunk/{useEmailFirstExperiment-CV5nAxtl.js.map → useEmailFirstExperiment-BbDrKQEs.js.map} +1 -1
  154. package/chunk/{useEmailFirstExperiment-mjdDc7vk.js → useEmailFirstExperiment-CgU-itQI.js} +29 -30
  155. package/chunk/{useEmailFirstExperiment-mjdDc7vk.js.map → useEmailFirstExperiment-CgU-itQI.js.map} +1 -1
  156. package/chunk/vi-BOR2GuRI.js +4 -4
  157. package/chunk/zh-HK-BI-IHOGG.js +4 -4
  158. package/chunk/zh-eoMG5RFC.js +4 -4
  159. package/chunk/zu-D_A8wcJW.js +4 -4
  160. package/dev/programIds.d.ts +1 -1
  161. package/es6.css +4 -4
  162. package/jslib.js +15 -15
  163. package/lib/{EmailLoopPending-CU7XS8L8.js → EmailLoopPending-BkFtAtLY.js} +11 -11
  164. package/lib/{EmailLoopPending-CU7XS8L8.js.map → EmailLoopPending-BkFtAtLY.js.map} +1 -1
  165. package/lib/{LicensedProfessionalOrganizationComponent-CE90PGza.js → LicensedProfessionalOrganizationComponent-CoLJGZjk.js} +5 -5
  166. package/lib/{LicensedProfessionalOrganizationComponent-CE90PGza.js.map → LicensedProfessionalOrganizationComponent-CoLJGZjk.js.map} +1 -1
  167. package/lib/{Onfido-CMH3IUna.js → Onfido-AyvUk6wg.js} +28 -28
  168. package/lib/{Onfido-CMH3IUna.js.map → Onfido-AyvUk6wg.js.map} +1 -1
  169. package/lib/StepCollectMilitaryStatusComponent-DHn5ssAC.js +11 -0
  170. package/lib/{StepCollectMilitaryStatusComponent-DvJIjJ8Z.js.map → StepCollectMilitaryStatusComponent-DHn5ssAC.js.map} +1 -1
  171. package/lib/{StepIDCheckLoopOnfido-B8g2Degw.js → StepIDCheckLoopOnfido-CkjBN_Da.js} +5 -5
  172. package/lib/{StepIDCheckLoopOnfido-B8g2Degw.js.map → StepIDCheckLoopOnfido-CkjBN_Da.js.map} +1 -1
  173. package/lib/{StepIDCheckLoopRegula-C971tdOB.js → StepIDCheckLoopRegula-CQJ_E15E.js} +22 -21
  174. package/lib/StepIDCheckLoopRegula-CQJ_E15E.js.map +1 -0
  175. package/lib/{StepInactiveMilitaryPersonalInfoComponent-B-bOA0LI.js → StepInactiveMilitaryPersonalInfoComponent-BHsDNqtp.js} +49 -49
  176. package/lib/{StepInactiveMilitaryPersonalInfoComponent-B-bOA0LI.js.map → StepInactiveMilitaryPersonalInfoComponent-BHsDNqtp.js.map} +1 -1
  177. package/lib/VerificationApiUtils-CxjsRjYe.js +23 -0
  178. package/lib/{VerificationApiUtils-Cn5PJJ2V.js.map → VerificationApiUtils-CxjsRjYe.js.map} +1 -1
  179. package/lib/ar-CtJ_9k3U.js +4 -4
  180. package/lib/bg-CWxXfiDq.js +4 -4
  181. package/lib/bn-IN-Dpq_hCqt.js +4 -4
  182. package/lib/cs-HevyelX7.js +4 -4
  183. package/lib/da-6QXhWjWH.js +4 -4
  184. package/lib/de-ChuCvRLv.js +4 -4
  185. package/lib/el-3IAhABcN.js +4 -4
  186. package/lib/en-GB-ByNBaer-.js +4 -4
  187. package/lib/es-CL_dUc9X.js +4 -4
  188. package/lib/es-ES-CW4At4Ol.js +4 -4
  189. package/lib/{es6-BxF8vNXX.js → es6-C5hrJrzs.js} +12434 -11221
  190. package/lib/es6-C5hrJrzs.js.map +1 -0
  191. package/lib/fi-D8cIebkk.js +4 -4
  192. package/lib/fr-BDU-1C6f.js +4 -4
  193. package/lib/fr-CA-Dc02rv8D.js +4 -4
  194. package/lib/ga-P7eP-INQ.js +4 -4
  195. package/lib/hi-IN-DlmwjoqH.js +4 -4
  196. package/lib/hr-CT_VP_lm.js +4 -4
  197. package/lib/hu-I8Z1uXsR.js +4 -4
  198. package/lib/id-CUPTGKOT.js +4 -4
  199. package/lib/{index-ByJQnMVd.js → index-BCu5-yVP.js} +9 -9
  200. package/lib/{index-ByJQnMVd.js.map → index-BCu5-yVP.js.map} +1 -1
  201. package/lib/index-BRBnXXDR.js +11 -0
  202. package/lib/index-BRBnXXDR.js.map +1 -0
  203. package/lib/{index-DNrYLi4q.js → index-BjZXQGq2.js} +10 -10
  204. package/{chunk/index-DPLvpl1z.js.map → lib/index-BjZXQGq2.js.map} +1 -1
  205. package/lib/{index-Cm9LAqYW.js → index-BrFRNvvE.js} +24 -24
  206. package/lib/{index-Cm9LAqYW.js.map → index-BrFRNvvE.js.map} +1 -1
  207. package/lib/index-BwOJXq6v.js +28 -0
  208. package/lib/{index-BvonWwY9.js.map → index-BwOJXq6v.js.map} +1 -1
  209. package/lib/{index-CZyo7O6A.js → index-C1cD1JSk.js} +19 -19
  210. package/{chunk/index-Cq8qB8GK.js.map → lib/index-C1cD1JSk.js.map} +1 -1
  211. package/lib/index-CHw5WoUt.js +11 -0
  212. package/lib/index-CHw5WoUt.js.map +1 -0
  213. package/lib/{index-CyEPe472.js → index-COY4ajo9.js} +28 -28
  214. package/lib/{index-CyEPe472.js.map → index-COY4ajo9.js.map} +1 -1
  215. package/lib/index-CWPZXASu.js +11 -0
  216. package/lib/index-CWPZXASu.js.map +1 -0
  217. package/lib/{index-DYEdh22B.js → index-Ch6T03iH.js} +5 -5
  218. package/lib/{index-DYEdh22B.js.map → index-Ch6T03iH.js.map} +1 -1
  219. package/lib/{index-T7cotgLv.js → index-Chzksasq.js} +27 -27
  220. package/lib/{index-T7cotgLv.js.map → index-Chzksasq.js.map} +1 -1
  221. package/lib/{index-CLCBNuVt.js → index-DA-Qp7MI.js} +61 -61
  222. package/lib/{index-CLCBNuVt.js.map → index-DA-Qp7MI.js.map} +1 -1
  223. package/lib/{index-DV-jRbN_.js → index-DGP2Q-U8.js} +385 -402
  224. package/lib/index-DGP2Q-U8.js.map +1 -0
  225. package/lib/index-DIkWpujR.js +4 -4
  226. package/lib/index-DIkWpujR.js.map +1 -1
  227. package/lib/{index-CkM0aH9Q.js → index-DJEjWEGY.js} +31 -31
  228. package/{chunk/index-whConjrR.js.map → lib/index-DJEjWEGY.js.map} +1 -1
  229. package/lib/{index-DF0_IZ4J.js → index-DKUoIXZw.js} +5 -5
  230. package/lib/{index-DF0_IZ4J.js.map → index-DKUoIXZw.js.map} +1 -1
  231. package/lib/{index--LSZP8PV.js → index-DcTF8Chq.js} +34 -34
  232. package/lib/{index--LSZP8PV.js.map → index-DcTF8Chq.js.map} +1 -1
  233. package/lib/{index-BM4FQqsg.js → index-DolStOo8.js} +50 -50
  234. package/lib/{index-BM4FQqsg.js.map → index-DolStOo8.js.map} +1 -1
  235. package/lib/index-DsHv4Pni.js +11 -0
  236. package/lib/index-DsHv4Pni.js.map +1 -0
  237. package/lib/{index-kFFbuxGz.js → index-DwNbV0jH.js} +30 -30
  238. package/lib/{index-kFFbuxGz.js.map → index-DwNbV0jH.js.map} +1 -1
  239. package/lib/{index-mtr_UcW2.js → index-F25h-epz.js} +5 -5
  240. package/{chunk/index-BJxmlJd1.js.map → lib/index-F25h-epz.js.map} +1 -1
  241. package/lib/{index-CdboVnqo.js → index-GiMHZ0Yc.js} +34 -34
  242. package/lib/{index-CdboVnqo.js.map → index-GiMHZ0Yc.js.map} +1 -1
  243. package/lib/{index-BbYtScSJ.js → index-H-IbghCG.js} +29 -29
  244. package/lib/{index-BbYtScSJ.js.map → index-H-IbghCG.js.map} +1 -1
  245. package/lib/{index-C9Fn2hpc.js → index-ZZYkknoq.js} +7 -7
  246. package/lib/{index-C9Fn2hpc.js.map → index-ZZYkknoq.js.map} +1 -1
  247. package/lib/is-CUuXi4qZ.js +4 -4
  248. package/lib/it-BNmynTsg.js +4 -4
  249. package/lib/iw-FGzquR_X.js +4 -4
  250. package/lib/ja-YgUpXA0l.js +4 -4
  251. package/lib/ko-CuNS5J_M.js +4 -4
  252. package/lib/lo-BEf8aFjR.js +4 -4
  253. package/lib/lt-DvX1gz1a.js +4 -4
  254. package/lib/ms-gSqM-Mfi.js +4 -4
  255. package/lib/nl-BE-Cid5LFlN.js +4 -4
  256. package/lib/nl-CUUTswxa.js +4 -4
  257. package/lib/no-BvUqlShV.js +4 -4
  258. package/lib/pl-CU8leZhI.js +4 -4
  259. package/lib/pt-BR-CboWpHFi.js +4 -4
  260. package/lib/pt-BnK7xRT_.js +4 -4
  261. package/lib/ro-BfAyXxSW.js +4 -4
  262. package/lib/ru-BD-YGPuQ.js +4 -4
  263. package/lib/sk-CqsabpdG.js +4 -4
  264. package/lib/sl-CeVAf0S_.js +4 -4
  265. package/lib/sr-DSaHxcCQ.js +4 -4
  266. package/lib/sv-DOyWYViy.js +4 -4
  267. package/lib/sw-2Q7Jo6wp.js +4 -4
  268. package/lib/th-BZ6F9sPf.js +4 -4
  269. package/lib/tr-om80xrv2.js +4 -4
  270. package/lib/uk-Dxugux8e.js +4 -4
  271. package/lib/ur-OBILUeZ7.js +4 -4
  272. package/lib/{useCollectFieldsEndpoint-gIqEUxfv.js → useCollectFieldsEndpoint-DT6XJjOz.js} +6 -6
  273. package/lib/{useCollectFieldsEndpoint-gIqEUxfv.js.map → useCollectFieldsEndpoint-DT6XJjOz.js.map} +1 -1
  274. package/lib/{useEmailFirstExperiment-B0sWtBW-.js → useEmailFirstExperiment-Cg7IR6Pb.js} +6 -7
  275. package/lib/{useEmailFirstExperiment-B0sWtBW-.js.map → useEmailFirstExperiment-Cg7IR6Pb.js.map} +1 -1
  276. package/lib/vi-BOR2GuRI.js +4 -4
  277. package/lib/zh-HK-BI-IHOGG.js +4 -4
  278. package/lib/zh-eoMG5RFC.js +4 -4
  279. package/lib/zu-D_A8wcJW.js +4 -4
  280. package/package.json +4 -4
  281. package/sheerid-install.css +4 -4
  282. package/sheerid-install.js +6 -6
  283. package/sheerid-install.js.map +1 -1
  284. package/sheerid.css +5 -5
  285. package/sheerid.js +18334 -16738
  286. package/sheerid.js.map +1 -1
  287. package/src/components/AcceptableUploadsComponent/AcceptableUploadsComponent.d.ts +1 -1
  288. package/src/components/AcceptableUploadsComponent/getLegacyAcceptableUploads.d.ts +1 -1
  289. package/src/components/Button/Button.d.ts +1 -0
  290. package/src/components/CopyToClipboard/CopyToClipboardComponent.d.ts +2 -1
  291. package/src/components/CustomCssContext/CustomCssContextProvider.d.ts +1 -1
  292. package/src/components/DateComponent/DateComponent.d.ts +2 -2
  293. package/src/components/ExtraMessage.d.ts +1 -1
  294. package/src/components/FaqLink/FaqLinkComponent.d.ts +1 -1
  295. package/src/components/FeatureFlags/ExperimentComponent/ExperimentComponent.d.ts +4 -4
  296. package/src/components/FetchOrganizationsComponent.d.ts +1 -1
  297. package/src/components/FormFields/ActiveDutyStartDate/ActiveDutyStartDateComponent.d.ts +1 -1
  298. package/src/components/FormFields/Address/AddressComponent.d.ts +2 -2
  299. package/src/components/FormFields/BirthDate/BirthDateComponent.d.ts +1 -1
  300. package/src/components/FormFields/BranchOfService/BranchOfServiceComponent.d.ts +2 -2
  301. package/src/components/FormFields/CVECNumber/CVECNumberComponent.d.ts +2 -2
  302. package/src/components/FormFields/ChangeLocale/ChangeLocaleComponent.d.ts +3 -3
  303. package/src/components/FormFields/City/City.d.ts +2 -2
  304. package/src/components/FormFields/CollegeName/CollegeNameComponent.d.ts +2 -2
  305. package/src/components/FormFields/Company/CompanyComponent.d.ts +2 -2
  306. package/src/components/FormFields/Country/CountryComponent.d.ts +2 -2
  307. package/src/components/FormFields/Country/CountryComponentWrapper.d.ts +2 -2
  308. package/src/components/FormFields/DischargeDate/DischargeDateComponent.d.ts +1 -1
  309. package/src/components/FormFields/DriverLicenseNumber/DriverLicenseNumberComponent.d.ts +2 -2
  310. package/src/components/FormFields/EBTCardNumber/EBTCardNumberComponent.d.ts +2 -2
  311. package/src/components/FormFields/Email/EmailComponent.d.ts +2 -2
  312. package/src/components/FormFields/EmailFirstCollectInfo/EmailLookupResponseMessageComponent.d.ts +1 -1
  313. package/src/components/FormFields/EmailFirstCollectInfo/useEmailFirstExperiment.d.ts +1 -1
  314. package/src/components/FormFields/FirstName/FirstNameComponent.d.ts +2 -2
  315. package/src/components/FormFields/FirstResponderOrganization/FirstResponderOrganizationComponent.d.ts +2 -2
  316. package/src/components/FormFields/FormFieldCustom/FormFieldCustom.d.ts +2 -2
  317. package/src/components/FormFields/FormFieldInputSelect/FormFieldInputSelect.d.ts +1 -1
  318. package/src/components/FormFields/FormFieldRadio/FormFieldRadio.d.ts +2 -2
  319. package/src/components/FormFields/FormFieldSelect/FormFieldSelect.d.ts +2 -2
  320. package/src/components/FormFields/FormFieldText/FormFieldText.d.ts +1 -1
  321. package/src/components/FormFields/FormFieldTypeahead/FormFieldTypeahead.d.ts +2 -2
  322. package/src/components/FormFields/LastName/LastNameComponent.d.ts +2 -2
  323. package/src/components/FormFields/LicensedProfessionalOrganization/LicensedProfessionalOrganizationComponent.d.ts +2 -2
  324. package/src/components/FormFields/LowIncomeOrganization/LowIncomeOrganizationComponent.d.ts +2 -2
  325. package/src/components/FormFields/MarketConsentWrapper/MarketConsentWrapperComponent.d.ts +1 -1
  326. package/src/components/FormFields/MedicalProfessionalOrganization/MedicalProfessionalOrganizationComponent.d.ts +2 -2
  327. package/src/components/FormFields/MemberId/MemberIdComponent.d.ts +2 -2
  328. package/src/components/FormFields/MembershipOrganization/MembershipOrganizationComponent.d.ts +2 -2
  329. package/src/components/FormFields/OptIn/OptInComponent.d.ts +1 -1
  330. package/src/components/FormFields/OverrideCode/OverrideCodeComponent.d.ts +2 -2
  331. package/src/components/FormFields/PhoneNumber/PhoneNumberComponent.d.ts +2 -2
  332. package/src/components/FormFields/PostalCode/PostalCodeComponent.d.ts +2 -2
  333. package/src/components/FormFields/SMSCode/SMSCodeComponent.d.ts +2 -2
  334. package/src/components/FormFields/SSN/SSN.d.ts +2 -2
  335. package/src/components/FormFields/State/State.d.ts +2 -2
  336. package/src/components/FormFields/State/StateSelectComponent.d.ts +2 -2
  337. package/src/components/FormFields/Status/StatusComponent.d.ts +2 -2
  338. package/src/components/FormFields/TeacherSchool/TeacherSchoolComponent.d.ts +2 -2
  339. package/src/components/FormFooter/FooterTextComponent.d.ts +1 -1
  340. package/src/components/FormFooter/FormFooterComponent.d.ts +1 -1
  341. package/src/components/FormHeader/FormHeaderComponent.d.ts +1 -1
  342. package/src/components/FormHeader/StepHeaders/PersonalInfoHeaderComponent.d.ts +1 -1
  343. package/src/components/FormInputs/InputRadio/InputRadio.d.ts +1 -1
  344. package/src/components/FormInputs/InputSelect/InputSelectComponent.d.ts +1 -1
  345. package/src/components/FormInputs/InputSelect/InputSelectList/InputSelectListComponent.d.ts +1 -1
  346. package/src/components/FormInputs/PostalCodeInput/PostalCodeInputComponent.d.ts +1 -1
  347. package/src/components/FormInputs/Select/SelectComponent.d.ts +1 -1
  348. package/src/components/FormInputs/Select/SelectList/SelectListComponent.d.ts +1 -1
  349. package/src/components/FormInputs/Typeahead/TypeaheadComponent.d.ts +1 -1
  350. package/src/components/FormInputs/Typeahead/TypeaheadComponentHelper.d.ts +1 -1
  351. package/src/components/HowDoesVerifyingWork/HowDoesVerifyingWorkComponent.d.ts +1 -1
  352. package/src/components/Layout/Layout.d.ts +1 -1
  353. package/src/components/LoadStepComponent.d.ts +1 -1
  354. package/src/components/LoadingScreen/LoadingScreenComponent.d.ts +1 -1
  355. package/src/components/LoadingScreen/LoadingScreenMessage.d.ts +1 -1
  356. package/src/components/LogoComponent/LogoComponent.d.ts +1 -1
  357. package/src/components/NewVerificationComponent.d.ts +3 -3
  358. package/src/components/NewVerificationInnerComponent.d.ts +1 -1
  359. package/src/components/OrganizationList/OrganizationListComponent.d.ts +1 -1
  360. package/src/components/PersonalInfoStepSubmitButton/PersonalInfoStepSubmitButton.d.ts +2 -2
  361. package/src/components/PersonalInfoStepWrapper/PersonalInfoStepWrapper.d.ts +2 -1
  362. package/src/components/PoweredBy/PoweredByComponent.d.ts +1 -1
  363. package/src/components/PrivacyPolicyLink/PrivacyPolicyLinkComponent.d.ts +2 -2
  364. package/src/components/RewardsRemaining/RewardsRemainingComponent.d.ts +1 -1
  365. package/src/components/SingleSignOnComponent.d.ts +2 -2
  366. package/src/components/StepAgePersonalInfo/StepAgePersonalInfoComponent.d.ts +2 -2
  367. package/src/components/StepCollectIdentifier/StepCollectIdentifierComponent.d.ts +1 -1
  368. package/src/components/StepCollectPersonalInfo/StepCollectPersonalInfoComponent.d.ts +2 -2
  369. package/src/components/StepConsolation/StepConsolationComponent.d.ts +1 -1
  370. package/src/components/StepDocUpload/StepDocUploadComponent.d.ts +1 -1
  371. package/src/components/StepEmailLoop/EmailLoopCollectOrganizationEmail.d.ts +1 -1
  372. package/src/components/StepEmailLoop/EmailLoopPending.d.ts +1 -1
  373. package/src/components/StepEmailLoop/StepEmailLoopComponent.d.ts +2 -2
  374. package/src/components/StepEmploymentPersonalInfo/StepEmploymentPersonalInfoComponent.d.ts +1 -1
  375. package/src/components/StepError/StepErrorComponent.d.ts +2 -2
  376. package/src/components/StepFirstResponderPersonalInfo/StepFirstResponderPersonalInfoComponent.d.ts +1 -1
  377. package/src/components/StepIDCheckLoop/IdCheckLoopFooter/IdCheckLoopOnfidoFooter.d.ts +1 -1
  378. package/src/components/StepIDCheckLoop/IdCheckLoopFooter/IdCheckLoopRegulaFooter.d.ts +1 -1
  379. package/src/components/StepIDCheckLoop/Onfido/IdCheckLoopOnfido/IdCheckLoopOnfido.d.ts +2 -2
  380. package/src/components/StepIDCheckLoop/Onfido/StepIDCheckLoopOnfido/StepIDCheckLoopOnfido.d.ts +1 -1
  381. package/src/components/StepIDCheckLoop/Onfido/utils/getAndFormatOrderedStepCards.d.ts +1 -1
  382. package/src/components/StepIDCheckLoop/Regula/IdCheckLoopRegula/DisplayThumbnail.d.ts +1 -1
  383. package/src/components/StepIDCheckLoop/Regula/IdCheckLoopRegula/IdCheckLoopRegula.d.ts +1 -1
  384. package/src/components/StepIDCheckLoop/Regula/StepIDCheckLoopRegulaComponent/StepIDCheckLoopRegula.d.ts +1 -1
  385. package/src/components/StepIDCheckLoop/StepIDCheckLoopComponent.d.ts +1 -1
  386. package/src/components/StepIdentityPersonalInfo/StepDriverLicensePersonalInfoComponent.d.ts +1 -1
  387. package/src/components/StepIdentityPersonalInfo/StepGeneralIdentityPersonalInfoComponent.d.ts +1 -1
  388. package/src/components/StepIdentityPersonalInfo/StepHybridIdentityPersonalInfoComponent.d.ts +1 -1
  389. package/src/components/StepLicensedProfessionalPersonalInfo/StepLicensedProfessionalPersonalInfoComponent.d.ts +1 -1
  390. package/src/components/StepLowIncomePersonalInfo/StepLowIncomePersonalInfoComponent.d.ts +1 -1
  391. package/src/components/StepMedicalProfessionalPersonalInfo/StepMedicalProfessionalPersonalInfoComponent.d.ts +1 -1
  392. package/src/components/StepMemberPersonalInfo/StepMemberPersonalInfoComponent.d.ts +1 -1
  393. package/src/components/StepMilitaryPersonalInfo/StepActiveMilitaryPersonalInfoComponent.d.ts +1 -1
  394. package/src/components/StepMilitaryPersonalInfo/StepInactiveMilitaryPersonalInfoComponent.d.ts +1 -1
  395. package/src/components/StepMoverPersonalInfo/StepMoverPersonalInfoComponent.d.ts +1 -1
  396. package/src/components/StepOverrideComponent/StepOverrideComponent.d.ts +2 -2
  397. package/src/components/StepPending/ReviewPendingComponent.d.ts +1 -1
  398. package/src/components/StepPending/SingleSignOnPendingComponent.d.ts +2 -2
  399. package/src/components/StepPending/StepPendingComponent.d.ts +1 -1
  400. package/src/components/StepPending/ThirdPartyLoopPendingComponent.d.ts +1 -1
  401. package/src/components/StepSMSLoop/StepSMSLoopComponent.d.ts +2 -2
  402. package/src/components/StepSSO/StepSSOComponent.d.ts +1 -1
  403. package/src/components/StepSeniorPersonalInfo/StepSeniorPersonalInfoComponent.d.ts +1 -1
  404. package/src/components/StepSocialSecurityNumber/StepSocialSecurityNumber.d.ts +1 -1
  405. package/src/components/StepStudentPersonalInfo/StepStudentPersonalInfoComponent.d.ts +1 -1
  406. package/src/components/StepSuccess/StepSuccessComponent.d.ts +1 -1
  407. package/src/components/StepTeacherPersonalInfo/StepTeacherPersonalInfoComponent.d.ts +1 -1
  408. package/src/components/StepThirdPartyLoop/StepThirdPartyLoopComponent.d.ts +3 -3
  409. package/src/components/TestModeFlag/TestModeFlagComponent.d.ts +1 -1
  410. package/src/components/UploadInfoComponent/UploadInfoComponent.d.ts +1 -1
  411. package/src/components/VerificationForm/VerificationFormComponent.d.ts +1 -1
  412. package/src/es5Bindings/VerificationFormEs5.d.ts +1 -1
  413. package/src/lib/ProgramTheme/programThemeGetters.d.ts +1 -1
  414. package/src/lib/ServerApi/ApiUrls.d.ts +1 -1
  415. package/src/lib/ServerApi/VerificationApiClient.d.ts +1 -1
  416. package/src/lib/ServerApi/VerificationHelpRequestApi.d.ts +1 -1
  417. package/src/lib/VerificationService/VerificationServiceActions.d.ts +1 -1
  418. package/src/lib/hooks/index.d.ts +1 -1
  419. package/src/lib/installScript/_mysheerid-preview.d.ts +2 -2
  420. package/src/lib/installScript/affinity.d.ts +1 -1
  421. package/src/lib/installScript/iframe.d.ts +1 -1
  422. package/src/lib/installScript/index.d.ts +3 -3
  423. package/src/lib/installScript/modal.d.ts +1 -1
  424. package/src/lib/state/contextHooks.d.ts +1 -1
  425. package/src/lib/types/runtimeTypes.d.ts +1 -1
  426. package/src/lib/types/types.d.ts +7 -7
  427. package/src/lib/utils/customTagReplacer/index.d.ts +1 -1
  428. package/src/lib/utils/stepComponentHelpers/stepComponentHelpers.d.ts +2 -2
  429. package/src/lib/utils/structures/FormSelectChoice.d.ts +1 -1
  430. package/types-reference.zip +0 -0
  431. package/chunk/StepIDCheckLoopRegula-1wd-jJGJ.js.map +0 -1
  432. package/chunk/StepIDCheckLoopRegula-jyg1vIi3.js.map +0 -1
  433. package/chunk/index-B_CvWvhW.js +0 -27
  434. package/chunk/index-B_CvWvhW.js.map +0 -1
  435. package/chunk/index-Bv_0MGCt.js +0 -31
  436. package/chunk/index-Bv_0MGCt.js.map +0 -1
  437. package/chunk/index-DR_Yi6nm.js.map +0 -1
  438. package/chunk/index-vIL1gjSk.js.map +0 -1
  439. package/lib/StepCollectMilitaryStatusComponent-DvJIjJ8Z.js +0 -11
  440. package/lib/StepIDCheckLoopRegula-C971tdOB.js.map +0 -1
  441. package/lib/VerificationApiUtils-Cn5PJJ2V.js +0 -21
  442. package/lib/es6-BxF8vNXX.js.map +0 -1
  443. package/lib/index-Bf3CeTFC.js +0 -11
  444. package/lib/index-Bf3CeTFC.js.map +0 -1
  445. package/lib/index-BvonWwY9.js +0 -28
  446. package/lib/index-DAjrVVta.js +0 -11
  447. package/lib/index-DAjrVVta.js.map +0 -1
  448. package/lib/index-DO-KFs1U.js +0 -11
  449. package/lib/index-DO-KFs1U.js.map +0 -1
  450. package/lib/index-DV-jRbN_.js.map +0 -1
  451. package/lib/index-GAJX_Tjm.js +0 -11
  452. package/lib/index-GAJX_Tjm.js.map +0 -1
@@ -1,20 +1,20 @@
1
1
 
2
2
  /**
3
- * VERSION: 2.105.0
4
- * BUILD_TIMESTAMP: 1746205300523
5
- * BUILD_DATE: Fri May 02 2025 17:01:40 GMT+0000 (Coordinated Universal Time)
6
- * BUILD_COMMIT: 6bc9b7c13c867b22d0b64758983911e2b4e64489
3
+ * VERSION: 2.106.0
4
+ * BUILD_TIMESTAMP: 1746459877927
5
+ * BUILD_DATE: Mon May 05 2025 15:44:37 GMT+0000 (Coordinated Universal Time)
6
+ * BUILD_COMMIT: 7c075bae25a0aacdeced516d09b9d25db3b82216
7
7
  */
8
- import { k as V, a8 as k, a9 as A, i as q, u as d, j as o, N as B, m as L, y as U, a2 as W, f as r, O, T as _, a5 as w, aa as H, U as K, W as X, E as Y, n as Z, X as $, Y as z, Z as G, _ as J, o as Q, V as S, $ as v, ab as ee } from "./es6-BxF8vNXX.js";
8
+ import { k as V, a7 as k, a8 as A, i as q, u as d, j as o, M as B, N as L, m as U, w as W, a1 as w, f as r, O, T as _, a4 as H, a9 as K, U as X, W as Y, E as Z, n as z, X as G, Y as J, Z as Q, _ as $, o as S, V as v, aa as ee } from "./es6-C5hrJrzs.js";
9
9
  import se from "react";
10
10
  import { injectIntl as ae, FormattedHTMLMessage as oe } from "react-intl";
11
- import { u as te } from "./useCollectFieldsEndpoint-gIqEUxfv.js";
11
+ import { u as te } from "./useCollectFieldsEndpoint-DT6XJjOz.js";
12
12
  const de = ({ verificationService: s, intl: j }) => {
13
- var p, C, h, b, i, N, g, y, x;
13
+ var p, C, h, b, i, N, g, x, y;
14
14
  const a = s.viewModel, { fieldValidationErrors: t } = s, l = s.verificationResponse, E = V(l), I = k(
15
15
  s.programTheme,
16
16
  j
17
- ), f = A(I), m = q(() => a.countryChoice.value, f.value), F = m === "US" ? [{ key: "postalCode" }] : [], c = m !== "US" || s.programTheme.isSmsNotifierConfigured || s.programTheme.smsLoopEnabled, M = m !== "US" || s.programTheme.smsLoopEnabled, P = a.localeChoice.value, D = v();
17
+ ), f = A(I), m = q(() => a.countryChoice.value, f.value), F = m === "US" ? [{ key: "postalCode" }] : [], M = m !== "US" || s.programTheme.isSmsNotifierConfigured || s.programTheme.smsLoopEnabled, c = m !== "US" || s.programTheme.smsLoopEnabled, P = a.localeChoice.value, D = L();
18
18
  !t.phoneNumber && l.errorIds && l.errorIds.includes("invalidPhoneNumber") && s.updateFieldValidationErrors({
19
19
  ...t,
20
20
  phoneNumber: "invalidPhoneNumber"
@@ -36,10 +36,10 @@ const de = ({ verificationService: s, intl: j }) => {
36
36
  verificationService: s,
37
37
  step: l.currentStep,
38
38
  children: [
39
- /* @__PURE__ */ o.jsx(L, { verificationService: s, classNameIdentifier: "age" }),
40
- /* @__PURE__ */ o.jsx(U, { verificationService: s }),
39
+ /* @__PURE__ */ o.jsx(U, { verificationService: s, classNameIdentifier: "age" }),
40
+ /* @__PURE__ */ o.jsx(W, { verificationService: s }),
41
41
  /* @__PURE__ */ o.jsx(
42
- W,
42
+ w,
43
43
  {
44
44
  verificationService: s,
45
45
  disabled: (p = r("country")) == null ? void 0 : p.disabled
@@ -70,7 +70,7 @@ const de = ({ verificationService: s, intl: j }) => {
70
70
  )
71
71
  ] }),
72
72
  /* @__PURE__ */ o.jsx(
73
- w,
73
+ H,
74
74
  {
75
75
  errorId: t.birthDate,
76
76
  locale: P,
@@ -82,7 +82,7 @@ const de = ({ verificationService: s, intl: j }) => {
82
82
  }
83
83
  ),
84
84
  u("city") && /* @__PURE__ */ o.jsx(
85
- H,
85
+ K,
86
86
  {
87
87
  value: a.city,
88
88
  isRequired: !0,
@@ -95,7 +95,7 @@ const de = ({ verificationService: s, intl: j }) => {
95
95
  }
96
96
  ),
97
97
  u("address1") && /* @__PURE__ */ o.jsx(
98
- K,
98
+ X,
99
99
  {
100
100
  value: a.address1,
101
101
  isRequired: !0,
@@ -107,7 +107,7 @@ const de = ({ verificationService: s, intl: j }) => {
107
107
  }
108
108
  ),
109
109
  u("postalCode") && /* @__PURE__ */ o.jsx(
110
- X,
110
+ Y,
111
111
  {
112
112
  isErrored: !!t.postalCode,
113
113
  onChange: (e) => {
@@ -118,33 +118,33 @@ const de = ({ verificationService: s, intl: j }) => {
118
118
  }
119
119
  ),
120
120
  /* @__PURE__ */ o.jsx(
121
- Y,
121
+ Z,
122
122
  {
123
123
  value: a.email,
124
124
  isErrored: !!t.email,
125
125
  onChange: (e) => {
126
126
  n("email", e), d("email", e, s);
127
127
  },
128
- onKeyDown: (e) => Z(e),
128
+ onKeyDown: (e) => z(e),
129
129
  disabled: (g = r("email")) == null ? void 0 : g.disabled
130
130
  }
131
131
  ),
132
- c ? /* @__PURE__ */ o.jsx(
133
- $,
132
+ M ? /* @__PURE__ */ o.jsx(
133
+ G,
134
134
  {
135
- isRequired: M,
135
+ isRequired: c,
136
136
  value: a.phoneNumber,
137
137
  isErrored: !!t.phoneNumber,
138
138
  onChange: (e) => {
139
139
  n("phoneNumber", e), d("phoneNumber", e, s);
140
140
  },
141
141
  selectedCountryCode: a.countryChoice && a.countryChoice.value,
142
- disabled: (y = r("phoneNumber")) == null ? void 0 : y.disabled
142
+ disabled: (x = r("phoneNumber")) == null ? void 0 : x.disabled
143
143
  }
144
144
  ) : null,
145
- D.customFormFields.map((e) => /* @__PURE__ */ o.jsx(z, { config: e, verificationService: s })),
145
+ D.customFormFields.map((e) => /* @__PURE__ */ o.jsx(J, { config: e, verificationService: s })),
146
146
  /* @__PURE__ */ o.jsx(
147
- G,
147
+ Q,
148
148
  {
149
149
  verificationService: s,
150
150
  isErrored: !!t.marketConsentValue,
@@ -155,14 +155,14 @@ const de = ({ verificationService: s, intl: j }) => {
155
155
  }), d("marketConsentValue", e, s);
156
156
  },
157
157
  viewModel: a,
158
- disabled: (x = r("marketConsentValue")) == null ? void 0 : x.disabled
158
+ disabled: (y = r("marketConsentValue")) == null ? void 0 : y.disabled
159
159
  }
160
160
  ),
161
- /* @__PURE__ */ o.jsx(J, { verificationService: s, suffix: "CollectAboveSubmit" }),
161
+ /* @__PURE__ */ o.jsx($, { verificationService: s, suffix: "CollectAboveSubmit" }),
162
162
  /* @__PURE__ */ o.jsx(
163
- Q,
163
+ S,
164
164
  {
165
- step: S.collectAgePersonalInfo,
165
+ step: v.collectAgePersonalInfo,
166
166
  verificationService: s,
167
167
  viewModel: a,
168
168
  failedInstantMatch: E,
@@ -1 +1 @@
1
- {"version":3,"file":"index-T7cotgLv.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,I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ksasq.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;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BAAAG;AAAA,YACA,YACEyB,gBAAAA,EAAA;AAAA,cAAC+B;AAAA,cAAA;AAAA,gBACC,IAAG;AAAA,gBACH,gBAAe;AAAA,cAAA;AAAA,YAAA;AAAA,UACjB;AAAA,QAAA;AAAA,MAEJ;AAAA,IAAA;AAAA,EACF;AAEJ,GAEaC,KAA+BC,GAAWhE,EAAmB;"}
@@ -1,21 +1,21 @@
1
1
 
2
2
  /**
3
- * VERSION: 2.105.0
4
- * BUILD_TIMESTAMP: 1746205300523
5
- * BUILD_DATE: Fri May 02 2025 17:01:40 GMT+0000 (Coordinated Universal Time)
6
- * BUILD_COMMIT: 6bc9b7c13c867b22d0b64758983911e2b4e64489
3
+ * VERSION: 2.106.0
4
+ * BUILD_TIMESTAMP: 1746459877927
5
+ * BUILD_DATE: Mon May 05 2025 15:44:37 GMT+0000 (Coordinated Universal Time)
6
+ * BUILD_COMMIT: 7c075bae25a0aacdeced516d09b9d25db3b82216
7
7
  */
8
- import { k as da, aQ as m, aR as na, D as ra, V as f, j as s, m as la, a2 as ua, f as d, ac as ma, ap as ia, aS as ba, u as n, O as ga, T as pa, a5 as Ca, E as ha, n as Ea, X as Na, U as Ia, aa as xa, aM as Ma, aT as ja, aU as za, a6 as Da, W as ya, z as Ra, B as Fa, aj as La, ak as Oa, aL as Ta, Y as qa, Z as Aa, _ as Pa, o as wa, p as ka, M as Ba, $ as _a, aV as Wa, i as z, l as Ya, aW as Va, a4 as p, aX as Ua, ay as Ha, as as Ka, aK as $a, a3 as Xa, an as Qa, av as Za, aY as Ga } from "./es6-BxF8vNXX.js";
8
+ import { k as da, aP as m, aQ as na, B as ra, V as f, j as s, N as la, m as ua, a1 as ma, f as d, ab as ia, aR as ba, ap as ga, u as n, O as Ca, T as pa, a4 as ha, E as Ea, n as Na, X as Ia, U as xa, a9 as Ma, aM as ja, aS as za, aT as Da, a5 as ya, W as Ra, x as Fa, y as La, ai as Oa, aj as Ta, aL as qa, Y as Pa, Z as Aa, _ as wa, o as Ba, p as _a, aU as ka, i as z, l as Wa, aV as Va, aW as Ya, a3 as C, aw as Ua, aq as Ha, aK as Ka, a2 as Xa, am as $a, au as Qa, q as Za, aX as Ga } from "./es6-C5hrJrzs.js";
9
9
  import N from "react";
10
10
  import { injectIntl as Ja, FormattedHTMLMessage as D } from "react-intl";
11
- import { L as ca } from "./LicensedProfessionalOrganizationComponent-CE90PGza.js";
11
+ import { L as ca } from "./LicensedProfessionalOrganizationComponent-CoLJGZjk.js";
12
12
  const fa = ({
13
13
  intl: I,
14
14
  verificationService: e
15
15
  }) => {
16
- var F, L, O, T, q, A, P, w, k, B, _, W, Y, V, U, H, K, $, X, Q;
17
- const t = e.viewModel, { updateViewModel: y, programTheme: S } = e, [C, v] = N.useState(void 0), u = (a) => C && C.some((i) => i.key === a), { fieldValidationErrors: o } = e, h = e.verificationResponse, aa = da(h), l = (a, i) => {
18
- const g = Ba(
16
+ var F, L, O, T, q, P, A, w, B, _, k, W, V, Y, U, H, K, X, $, Q;
17
+ const t = e.viewModel, { updateViewModel: y, programTheme: S } = e, [p, v] = N.useState(void 0), u = (a) => p && p.some((i) => i.key === a), { fieldValidationErrors: o } = e, h = e.verificationResponse, aa = da(h), l = (a, i) => {
18
+ const g = Za(
19
19
  t,
20
20
  (E) => {
21
21
  E[a] = i;
@@ -28,23 +28,23 @@ const fa = ({
28
28
  a
29
29
  );
30
30
  y(i);
31
- }, x = t.localeChoice.value, sa = _a(), { segment: b, availableStatuses: M } = h, ta = b.charAt(0).toUpperCase() + b.slice(1), R = () => M && (b === m.FIRST_RESPONDER || b === m.MEDICAL || b === m.LOW_INCOME || b === m.LICENSED_PROFESSIONAL || b === m.EMPLOYMENT || b === m.RECENT_MOVER || b === m.MILITARY), j = (a) => (async () => {
31
+ }, x = t.localeChoice.value, sa = la(), { segment: b, availableStatuses: M } = h, ta = b.charAt(0).toUpperCase() + b.slice(1), R = () => M && (b === m.FIRST_RESPONDER || b === m.MEDICAL || b === m.LOW_INCOME || b === m.LICENSED_PROFESSIONAL || b === m.EMPLOYMENT || b === m.RECENT_MOVER || b === m.MILITARY), j = (a) => (async () => {
32
32
  try {
33
- const i = await Wa(
33
+ const i = await ka(
34
34
  h.verificationId,
35
35
  h.currentStep,
36
36
  a
37
37
  ), g = z(() => i.fieldsToCollect.required, []);
38
38
  R() && g.push({ key: "status" }), ea(g), v(g);
39
39
  } catch (i) {
40
- Ya.error(`Failed to determine fields to collect: ${i}`);
40
+ Wa.error(`Failed to determine fields to collect: ${i}`);
41
41
  }
42
42
  })(), oa = () => {
43
43
  var a, i, g, E, Z, G, J, c;
44
44
  switch (b) {
45
45
  case m.STUDENT:
46
46
  return /* @__PURE__ */ s.jsx(
47
- Za,
47
+ Qa,
48
48
  {
49
49
  value: e.viewModel.organization,
50
50
  verificationService: e,
@@ -52,20 +52,20 @@ const fa = ({
52
52
  isRequired: !0,
53
53
  disabled: (a = d("organization")) == null ? void 0 : a.disabled,
54
54
  onChange: (r) => {
55
- p(r, e), n("organization", r, e);
55
+ C(r, e), n("organization", r, e);
56
56
  }
57
57
  }
58
58
  );
59
59
  case m.TEACHER:
60
60
  return /* @__PURE__ */ s.jsx(
61
- Qa,
61
+ $a,
62
62
  {
63
63
  value: e.viewModel.organization,
64
64
  verificationService: e,
65
65
  isErrored: !!o.organization,
66
66
  disabled: (i = d("organization")) == null ? void 0 : i.disabled,
67
67
  onChange: (r) => {
68
- p(r, e), n("organization", r, e);
68
+ C(r, e), n("organization", r, e);
69
69
  }
70
70
  }
71
71
  );
@@ -78,17 +78,17 @@ const fa = ({
78
78
  isErrored: !!o.organization,
79
79
  disabled: (g = d("organization")) == null ? void 0 : g.disabled,
80
80
  onChange: (r) => {
81
- p(r, e), n("organization", r, e);
81
+ C(r, e), n("organization", r, e);
82
82
  }
83
83
  }
84
84
  );
85
85
  case m.MILITARY:
86
86
  return /* @__PURE__ */ s.jsx(
87
- $a,
87
+ Ka,
88
88
  {
89
89
  isErrored: !!o.organization,
90
90
  onChange: (r) => {
91
- p(r, e), n("organization", r, e);
91
+ C(r, e), n("organization", r, e);
92
92
  },
93
93
  value: {
94
94
  value: z(
@@ -104,11 +104,11 @@ const fa = ({
104
104
  );
105
105
  case m.FIRST_RESPONDER:
106
106
  return /* @__PURE__ */ s.jsx(
107
- Ka,
107
+ Ha,
108
108
  {
109
109
  isErrored: !!o.organization,
110
110
  onChange: (r) => {
111
- p(r, e), n("organization", r, e);
111
+ C(r, e), n("organization", r, e);
112
112
  },
113
113
  value: e.viewModel.organization,
114
114
  verificationService: e,
@@ -117,11 +117,11 @@ const fa = ({
117
117
  );
118
118
  case m.MEDICAL:
119
119
  return /* @__PURE__ */ s.jsx(
120
- Ha,
120
+ Ua,
121
121
  {
122
122
  isErrored: !!o.organization,
123
123
  onChange: (r) => {
124
- p(r, e), n("organization", r, e);
124
+ C(r, e), n("organization", r, e);
125
125
  },
126
126
  value: e.viewModel.organization,
127
127
  verificationService: e,
@@ -134,7 +134,7 @@ const fa = ({
134
134
  {
135
135
  isErrored: !!o.organization,
136
136
  onChange: (r) => {
137
- p(r, e), n("organization", r, e);
137
+ C(r, e), n("organization", r, e);
138
138
  },
139
139
  value: e.viewModel.organization,
140
140
  verificationService: e,
@@ -147,9 +147,9 @@ const fa = ({
147
147
  {
148
148
  isErrored: !!o.organization,
149
149
  onChange: (r) => {
150
- p(r, e), n("organization", r, e);
150
+ C(r, e), n("organization", r, e);
151
151
  },
152
- value: Ua(
152
+ value: Ya(
153
153
  e.viewModel.organization
154
154
  ),
155
155
  verificationService: e,
@@ -164,8 +164,8 @@ const fa = ({
164
164
  return N.useEffect(() => {
165
165
  M && b === m.MILITARY ? j({ statuses: [] }) : j({});
166
166
  }, []), N.useEffect(() => {
167
- !na(S).enabled && C && C.length === 0 && ra(t, e, f.collectPersonalInfo);
168
- }, [C]), N.useEffect(() => {
167
+ !na(S).enabled && p && p.length === 0 && ra(t, e, f.collectPersonalInfo);
168
+ }, [p]), N.useEffect(() => {
169
169
  t.status && j({ statuses: [t.status] });
170
170
  }, [t.status]), /* @__PURE__ */ s.jsxs(
171
171
  "div",
@@ -175,26 +175,26 @@ const fa = ({
175
175
  children: [
176
176
  /* @__PURE__ */ s.jsxs("div", { role: "main", children: [
177
177
  /* @__PURE__ */ s.jsx(
178
- la,
178
+ ua,
179
179
  {
180
180
  verificationService: e,
181
181
  classNameIdentifier: "personal-info"
182
182
  }
183
183
  ),
184
184
  /* @__PURE__ */ s.jsx(
185
- ua,
185
+ ma,
186
186
  {
187
187
  verificationService: e,
188
188
  disabled: (F = d("country")) == null ? void 0 : F.disabled
189
189
  }
190
190
  ),
191
191
  R() && /* @__PURE__ */ s.jsx(
192
- ma,
192
+ ia,
193
193
  {
194
194
  segmentId: b,
195
195
  value: {
196
196
  value: t.status,
197
- label: ia(I, t.status, null)
197
+ label: ga(I, t.status, null)
198
198
  },
199
199
  isErrored: !!o.status,
200
200
  errorId: `invalid${ta}Status`,
@@ -212,7 +212,7 @@ const fa = ({
212
212
  u("organization") && oa(),
213
213
  /* @__PURE__ */ s.jsxs("div", { className: "sid-names", children: [
214
214
  u("firstName") && /* @__PURE__ */ s.jsx(
215
- ga,
215
+ Ca,
216
216
  {
217
217
  value: t.firstName,
218
218
  isErrored: !!o.firstName,
@@ -235,7 +235,7 @@ const fa = ({
235
235
  )
236
236
  ] }),
237
237
  u("birthDate") && /* @__PURE__ */ s.jsx(
238
- Ca,
238
+ ha,
239
239
  {
240
240
  value: t.birthDate,
241
241
  errorId: o.birthDate,
@@ -248,7 +248,7 @@ const fa = ({
248
248
  }
249
249
  ),
250
250
  u("email") && /* @__PURE__ */ s.jsx(
251
- ha,
251
+ Ea,
252
252
  {
253
253
  value: t.email,
254
254
  isErrored: !!o.email,
@@ -256,12 +256,12 @@ const fa = ({
256
256
  onChange: (a) => {
257
257
  l("email", a), n("email", a, e);
258
258
  },
259
- onKeyDown: (a) => Ea(a),
260
- disabled: (A = d("email")) == null ? void 0 : A.disabled
259
+ onKeyDown: (a) => Na(a),
260
+ disabled: (P = d("email")) == null ? void 0 : P.disabled
261
261
  }
262
262
  ),
263
263
  u("phoneNumber") && /* @__PURE__ */ s.jsx(
264
- Na,
264
+ Ia,
265
265
  {
266
266
  isRequired: !!e.programTheme.smsLoopEnabled,
267
267
  value: t.phoneNumber,
@@ -270,11 +270,11 @@ const fa = ({
270
270
  l("phoneNumber", a), n("phoneNumber", a, e);
271
271
  },
272
272
  selectedCountryCode: t.countryChoice && t.countryChoice.value,
273
- disabled: (P = d("phoneNumber")) == null ? void 0 : P.disabled
273
+ disabled: (A = d("phoneNumber")) == null ? void 0 : A.disabled
274
274
  }
275
275
  ),
276
276
  u("address1") && /* @__PURE__ */ s.jsx(
277
- Ia,
277
+ xa,
278
278
  {
279
279
  value: t.address1,
280
280
  isRequired: !0,
@@ -287,20 +287,20 @@ const fa = ({
287
287
  }
288
288
  ),
289
289
  u("city") && /* @__PURE__ */ s.jsx(
290
- xa,
290
+ Ma,
291
291
  {
292
292
  value: t.city,
293
293
  isRequired: !0,
294
294
  isErrored: !!o.city,
295
295
  errorId: o.city,
296
- disabled: (k = d("city")) == null ? void 0 : k.disabled,
296
+ disabled: (B = d("city")) == null ? void 0 : B.disabled,
297
297
  onChange: (a) => {
298
298
  l("city", a), n("city", a, e);
299
299
  }
300
300
  }
301
301
  ),
302
302
  u("dischargeDate") && /* @__PURE__ */ s.jsx(
303
- Ma,
303
+ ja,
304
304
  {
305
305
  errorId: o.dischargeDate,
306
306
  locale: x,
@@ -308,16 +308,16 @@ const fa = ({
308
308
  l("dischargeDate", a), n("dischargeDate", a, e);
309
309
  },
310
310
  value: t.dischargeDate,
311
- disabled: (B = d("dischargeDate")) == null ? void 0 : B.disabled
311
+ disabled: (_ = d("dischargeDate")) == null ? void 0 : _.disabled
312
312
  }
313
313
  ),
314
314
  u("driverLicenseNumber") && /* @__PURE__ */ s.jsx(
315
- ja,
315
+ za,
316
316
  {
317
317
  value: t.driverLicenseNumber,
318
318
  isErrored: !!o.driverLicenseNumber,
319
319
  isRequired: !0,
320
- disabled: (_ = d("driverLicenseNumber")) == null ? void 0 : _.disabled,
320
+ disabled: (k = d("driverLicenseNumber")) == null ? void 0 : k.disabled,
321
321
  onChange: (a) => {
322
322
  l("driverLicenseNumber", a), n(
323
323
  "driverLicenseNumber",
@@ -328,7 +328,7 @@ const fa = ({
328
328
  }
329
329
  ),
330
330
  u("ebtCardNumber") && /* @__PURE__ */ s.jsx(
331
- za,
331
+ Da,
332
332
  {
333
333
  value: t.ebtCardNumber,
334
334
  isErrored: !!o.ebtCardNumber,
@@ -339,12 +339,12 @@ const fa = ({
339
339
  }
340
340
  ),
341
341
  u("memberId") && /* @__PURE__ */ s.jsx(
342
- Da,
342
+ ya,
343
343
  {
344
344
  value: t.memberId,
345
345
  isErrored: !!o.memberId,
346
- isRequired: (Y = d("memberId")) == null ? void 0 : Y.requireIfOptional,
347
- disabled: (V = d("memberId")) == null ? void 0 : V.disabled,
346
+ isRequired: (V = d("memberId")) == null ? void 0 : V.requireIfOptional,
347
+ disabled: (Y = d("memberId")) == null ? void 0 : Y.disabled,
348
348
  onChange: (a) => {
349
349
  l("memberId", a), n("memberId", a, e);
350
350
  },
@@ -358,7 +358,7 @@ const fa = ({
358
358
  }
359
359
  ),
360
360
  u("postalCode") && /* @__PURE__ */ s.jsx(
361
- ya,
361
+ Ra,
362
362
  {
363
363
  isErrored: !!o.postalCode,
364
364
  onChange: (a) => {
@@ -369,7 +369,7 @@ const fa = ({
369
369
  }
370
370
  ),
371
371
  u("socialSecurityNumber") && /* @__PURE__ */ s.jsx("div", { className: "sid-ssn-wrapper", children: /* @__PURE__ */ s.jsx(
372
- Ra,
372
+ Fa,
373
373
  {
374
374
  value: t.socialSecurityNumber,
375
375
  onChange: (a) => {
@@ -379,16 +379,16 @@ const fa = ({
379
379
  e
380
380
  );
381
381
  },
382
- isErrored: !!o[Fa.socialSecurityNumber],
382
+ isErrored: !!o[La.socialSecurityNumber],
383
383
  placeholder: "000-00-0000",
384
384
  disabled: (H = d("socialSecurityNumber")) == null ? void 0 : H.disabled
385
385
  }
386
386
  ) }),
387
387
  u("state") && /* @__PURE__ */ s.jsx(
388
- La,
388
+ Oa,
389
389
  {
390
390
  isRequired: !0,
391
- options: Oa(e.programTheme, I),
391
+ options: Ta(e.programTheme, I),
392
392
  value: t.state || void 0,
393
393
  isErrored: !!o.state,
394
394
  onChange: async (a) => {
@@ -400,7 +400,7 @@ const fa = ({
400
400
  }
401
401
  ),
402
402
  u("activeDutyStartDate") && e.programTheme.strictMilitaryValidationEnabled && /* @__PURE__ */ s.jsx(
403
- Ta,
403
+ qa,
404
404
  {
405
405
  errorId: o.activeDutyStartDate,
406
406
  locale: x,
@@ -412,10 +412,10 @@ const fa = ({
412
412
  );
413
413
  },
414
414
  value: t.activeDutyStartDate,
415
- disabled: ($ = d("activeDutyStartDate")) == null ? void 0 : $.disabled
415
+ disabled: (X = d("activeDutyStartDate")) == null ? void 0 : X.disabled
416
416
  }
417
417
  ),
418
- (X = sa.customFormFields) == null ? void 0 : X.map((a) => /* @__PURE__ */ s.jsx(qa, { config: a, verificationService: e })),
418
+ ($ = sa.customFormFields) == null ? void 0 : $.map((a) => /* @__PURE__ */ s.jsx(Pa, { config: a, verificationService: e })),
419
419
  /* @__PURE__ */ s.jsx(
420
420
  Aa,
421
421
  {
@@ -435,9 +435,9 @@ const fa = ({
435
435
  disabled: (Q = d("marketConsentValue")) == null ? void 0 : Q.disabled
436
436
  }
437
437
  ),
438
- /* @__PURE__ */ s.jsx(Pa, { verificationService: e, suffix: "CollectAboveSubmit" }),
438
+ /* @__PURE__ */ s.jsx(wa, { verificationService: e, suffix: "CollectAboveSubmit" }),
439
439
  /* @__PURE__ */ s.jsx(
440
- wa,
440
+ Ba,
441
441
  {
442
442
  step: f.collectPersonalInfo,
443
443
  verificationService: e,
@@ -453,7 +453,7 @@ const fa = ({
453
453
  }
454
454
  )
455
455
  ] }),
456
- /* @__PURE__ */ s.jsx(ka, { verificationService: e })
456
+ /* @__PURE__ */ s.jsx(_a, { verificationService: e })
457
457
  ]
458
458
  }
459
459
  );