@sheerid/jslib-nightly 2.128.0-alpha.5 → 2.128.0-alpha.6

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 (274) hide show
  1. package/_mysheerid-preview.css +3 -3
  2. package/_mysheerid-preview.js +14073 -16095
  3. package/_mysheerid-preview.js.map +1 -1
  4. package/chunk/EmailLoopPending-CHILFZYc.js +3 -3
  5. package/chunk/EmailLoopPending-Nn_H3cfS.js +3 -3
  6. package/chunk/LicensedProfessionalOrganizationComponent-BYijEfDT.js +3 -3
  7. package/chunk/LicensedProfessionalOrganizationComponent-CiYU-2dW.js +3 -3
  8. package/chunk/Onfido-AyvUk6wg.js +3 -3
  9. package/chunk/StepIDCheckLoopOnfido-Bl1QfUZZ.js +3 -3
  10. package/chunk/StepIDCheckLoopOnfido-D0kpzIyk.js +3 -3
  11. package/chunk/StepIDCheckLoopRegula-BkTDnK3G.js +3 -3
  12. package/chunk/StepIDCheckLoopRegula-D6freNro.js +3 -3
  13. package/chunk/{StepInactiveMilitaryPersonalInfoComponent-CejkPGc7.js → StepInactiveMilitaryPersonalInfoComponent-CooMPgH1.js} +9 -9
  14. package/chunk/{StepInactiveMilitaryPersonalInfoComponent-CejkPGc7.js.map → StepInactiveMilitaryPersonalInfoComponent-CooMPgH1.js.map} +1 -1
  15. package/chunk/{StepInactiveMilitaryPersonalInfoComponent-Dfq060Rm.js → StepInactiveMilitaryPersonalInfoComponent-DTtUadmx.js} +9 -9
  16. package/{lib/StepInactiveMilitaryPersonalInfoComponent-DcmQon2v.js.map → chunk/StepInactiveMilitaryPersonalInfoComponent-DTtUadmx.js.map} +1 -1
  17. package/chunk/ar--TDb5qE5.js +3 -3
  18. package/chunk/bg-D3cL-ciP.js +3 -3
  19. package/chunk/bn-IN-BqsOEBPN.js +3 -3
  20. package/chunk/cs-7pQwm9YC.js +3 -3
  21. package/chunk/da-C2xASa_G.js +3 -3
  22. package/chunk/de-D4nlAbMa.js +3 -3
  23. package/chunk/el-C-PZe5CV.js +3 -3
  24. package/chunk/en-GB-DXa6bdA_.js +3 -3
  25. package/chunk/es-CNTVekqW.js +3 -3
  26. package/chunk/es-ES-inNoG-F1.js +3 -3
  27. package/chunk/fi-CcolQnAY.js +3 -3
  28. package/chunk/fr-BjHvlhn5.js +3 -3
  29. package/chunk/fr-CA-CmZKx-C9.js +3 -3
  30. package/chunk/ga-D-rK3PZy.js +3 -3
  31. package/chunk/hi-IN-B5SHv4t9.js +3 -3
  32. package/chunk/hr-CwvyeMFM.js +3 -3
  33. package/chunk/hu-BCZWPgvf.js +3 -3
  34. package/chunk/id-CRNXXELT.js +3 -3
  35. package/chunk/index--Wcf_zsf.js +3 -3
  36. package/chunk/index-1Cpf6KJI.js +3 -3
  37. package/chunk/index-2ob_KvkC.js +3 -3
  38. package/chunk/index-B4HIyFVA.js +3 -3
  39. package/chunk/{index-DY7vn_Lg.js → index-B5Db6m8t.js} +11 -11
  40. package/chunk/{index-CxZt0BFc.js.map → index-B5Db6m8t.js.map} +1 -1
  41. package/chunk/{index-I9k6NZrA.js → index-BJg9BX3v.js} +8 -8
  42. package/chunk/{index-I9k6NZrA.js.map → index-BJg9BX3v.js.map} +1 -1
  43. package/chunk/{index-yXBEMaOE.js → index-BLIxYZFr.js} +8 -8
  44. package/{lib/index-BcHRNspF.js.map → chunk/index-BLIxYZFr.js.map} +1 -1
  45. package/chunk/index-BU0HFLKm.js +3 -3
  46. package/chunk/index-Bofro8C_.js +3 -3
  47. package/chunk/{index-CHaIZirz.js → index-BqUi3r5Z.js} +4 -4
  48. package/chunk/{index-CHaIZirz.js.map → index-BqUi3r5Z.js.map} +1 -1
  49. package/chunk/{index-B9JnXGrb.js → index-Br3LkCoX.js} +83 -83
  50. package/chunk/{index-WHUp5RNf.js.map → index-Br3LkCoX.js.map} +1 -1
  51. package/chunk/{index-D5AJ5u6Y.js → index-C4OCK6G0.js} +7 -7
  52. package/chunk/{index-D5AJ5u6Y.js.map → index-C4OCK6G0.js.map} +1 -1
  53. package/chunk/{index-Bb2METWH.js → index-C8UuTatc.js} +13 -13
  54. package/chunk/{index-BhfkDd-S.js.map → index-C8UuTatc.js.map} +1 -1
  55. package/chunk/index-CVEIzLov.js +3 -3
  56. package/chunk/index-CcE-GFi6.js +3 -3
  57. package/chunk/index-CjcYFvhf.js +3 -3
  58. package/chunk/{index-BGfqBrWl.js → index-Cnc52tkD.js} +9 -9
  59. package/{lib/index-BCb1irYW.js.map → chunk/index-Cnc52tkD.js.map} +1 -1
  60. package/chunk/{index-WHUp5RNf.js → index-CoPQ1aC2.js} +83 -83
  61. package/chunk/{index-B9JnXGrb.js.map → index-CoPQ1aC2.js.map} +1 -1
  62. package/chunk/index-Cu25bQnA.js +3 -3
  63. package/chunk/{index-CExjesRv.js → index-CxH2IKXK.js} +9 -9
  64. package/chunk/{index-BGfqBrWl.js.map → index-CxH2IKXK.js.map} +1 -1
  65. package/chunk/{index--kEgeOmj.js → index-CyTruyP6.js} +4 -4
  66. package/{lib/index-Bc8evJUg.js.map → chunk/index-CyTruyP6.js.map} +1 -1
  67. package/chunk/index-DAE3SOJH.js +3 -3
  68. package/chunk/{index-BhfkDd-S.js → index-DCTYdT7J.js} +13 -13
  69. package/chunk/{index-Bb2METWH.js.map → index-DCTYdT7J.js.map} +1 -1
  70. package/chunk/index-DFajPA-e.js +3 -3
  71. package/chunk/index-DHtYIKVA.js +3 -3
  72. package/chunk/index-DIkWpujR.js +3 -3
  73. package/chunk/index-DJo820YY.js +172 -0
  74. package/{lib/index-BhMRmiLR.js.map → chunk/index-DJo820YY.js.map} +1 -1
  75. package/chunk/index-DSi_yLKY.js +3 -3
  76. package/chunk/{index-ClyCQ8YP.js → index-DdQD36Ht.js} +7 -7
  77. package/{lib/index-kHjfLElh.js.map → chunk/index-DdQD36Ht.js.map} +1 -1
  78. package/chunk/{index-CUti-8Jc.js → index-Dg1E2EXp.js} +63 -63
  79. package/chunk/{index-CHo0fdEq.js.map → index-Dg1E2EXp.js.map} +1 -1
  80. package/chunk/{index-fOfKAbJL.js → index-DljRrdj9.js} +21 -21
  81. package/chunk/{index-5LobjedY.js.map → index-DljRrdj9.js.map} +1 -1
  82. package/chunk/index-N20c5WiN.js +3 -3
  83. package/chunk/{index-C4fkTurt.js → index-SwnUiXjr.js} +8 -8
  84. package/chunk/{index-D0WTHjEm.js.map → index-SwnUiXjr.js.map} +1 -1
  85. package/chunk/{index-5LobjedY.js → index-dDH8B6_D.js} +21 -21
  86. package/chunk/{index-fOfKAbJL.js.map → index-dDH8B6_D.js.map} +1 -1
  87. package/chunk/index-huf3obhv.js +3 -3
  88. package/chunk/{index-D0WTHjEm.js → index-n6fChAZJ.js} +8 -8
  89. package/chunk/{index-C4fkTurt.js.map → index-n6fChAZJ.js.map} +1 -1
  90. package/chunk/index-oHEY5B58.js +3 -3
  91. package/chunk/{index-CxZt0BFc.js → index-xgVNIuKt.js} +11 -11
  92. package/chunk/{index-DY7vn_Lg.js.map → index-xgVNIuKt.js.map} +1 -1
  93. package/chunk/index-zX2rojxg.js +3 -3
  94. package/chunk/is-BFoDLV-f.js +3 -3
  95. package/chunk/it-B_iK-eSd.js +3 -3
  96. package/chunk/iw-DL48t5mZ.js +3 -3
  97. package/chunk/ja-C5bG2SRl.js +3 -3
  98. package/chunk/ko-CmmVl873.js +3 -3
  99. package/chunk/lo-DvBsVm-4.js +3 -3
  100. package/chunk/lt-DWoqI4gx.js +3 -3
  101. package/chunk/ms-BCHBEoqA.js +3 -3
  102. package/chunk/nl-BE-DLixID0q.js +3 -3
  103. package/chunk/nl-CeBqOv0i.js +3 -3
  104. package/chunk/no-BR2xqD23.js +3 -3
  105. package/chunk/pl-Dl77tRgW.js +3 -3
  106. package/chunk/pt-BR--SxHOWht.js +3 -3
  107. package/chunk/pt-D0bmI49-.js +3 -3
  108. package/chunk/ro-HCkS3amY.js +3 -3
  109. package/chunk/ru-BDMi1lvr.js +3 -3
  110. package/chunk/sk-C4zNHeM6.js +3 -3
  111. package/chunk/sl-BbQVw1S0.js +3 -3
  112. package/chunk/sr-8d4sC8Hd.js +3 -3
  113. package/chunk/sv-B0-e7r_0.js +3 -3
  114. package/chunk/sw-Bo9F25Vc.js +3 -3
  115. package/chunk/th-DDuVbwLh.js +3 -3
  116. package/chunk/tr-CUwkgj2T.js +3 -3
  117. package/chunk/uk-BPrGA4MJ.js +3 -3
  118. package/chunk/ur-Cdtm-A0s.js +3 -3
  119. package/chunk/useCollectFieldsEndpoint-DFo1yXvN.js +3 -3
  120. package/chunk/useCollectFieldsEndpoint-DPX8CT4Y.js +3 -3
  121. package/chunk/useEmailFirstExperiment-DH410dM-.js +3 -3
  122. package/chunk/useEmailFirstExperiment-q-thhCji.js +3 -3
  123. package/chunk/vi-JbWizd9m.js +3 -3
  124. package/chunk/zh-DjbXrser.js +3 -3
  125. package/chunk/zh-HK-DXcspp2Y.js +3 -3
  126. package/chunk/zu-BzwZfIDF.js +3 -3
  127. package/es6.css +3 -3
  128. package/jslib.js +4 -4
  129. package/lib/{EmailLoopPending-CCjNVDMn.js → EmailLoopPending-C0Wnlze5.js} +4 -4
  130. package/lib/{EmailLoopPending-CCjNVDMn.js.map → EmailLoopPending-C0Wnlze5.js.map} +1 -1
  131. package/lib/{LicensedProfessionalOrganizationComponent-Cr7f4VhO.js → LicensedProfessionalOrganizationComponent-B0b0KZs8.js} +4 -4
  132. package/lib/{LicensedProfessionalOrganizationComponent-Cr7f4VhO.js.map → LicensedProfessionalOrganizationComponent-B0b0KZs8.js.map} +1 -1
  133. package/lib/Onfido-AyvUk6wg.js +3 -3
  134. package/lib/StepCollectMilitaryStatusComponent-DirIh1kj.js +11 -0
  135. package/lib/{StepCollectMilitaryStatusComponent-BOuuFmHJ.js.map → StepCollectMilitaryStatusComponent-DirIh1kj.js.map} +1 -1
  136. package/lib/{StepIDCheckLoopOnfido-BDwm1p6n.js → StepIDCheckLoopOnfido-rrimffU9.js} +4 -4
  137. package/lib/{StepIDCheckLoopOnfido-BDwm1p6n.js.map → StepIDCheckLoopOnfido-rrimffU9.js.map} +1 -1
  138. package/lib/{StepIDCheckLoopRegula-CWa5_d1Y.js → StepIDCheckLoopRegula-CuIVqDIO.js} +4 -4
  139. package/lib/{StepIDCheckLoopRegula-CWa5_d1Y.js.map → StepIDCheckLoopRegula-CuIVqDIO.js.map} +1 -1
  140. package/lib/{StepInactiveMilitaryPersonalInfoComponent-DcmQon2v.js → StepInactiveMilitaryPersonalInfoComponent-CfU9h1cc.js} +68 -68
  141. package/{chunk/StepInactiveMilitaryPersonalInfoComponent-Dfq060Rm.js.map → lib/StepInactiveMilitaryPersonalInfoComponent-CfU9h1cc.js.map} +1 -1
  142. package/lib/{VerificationApiUtils-eJHxEHcj.js → VerificationApiUtils-BRmpMrea.js} +4 -4
  143. package/lib/{VerificationApiUtils-eJHxEHcj.js.map → VerificationApiUtils-BRmpMrea.js.map} +1 -1
  144. package/lib/ar--TDb5qE5.js +3 -3
  145. package/lib/bg-D3cL-ciP.js +3 -3
  146. package/lib/bn-IN-BqsOEBPN.js +3 -3
  147. package/lib/cs-7pQwm9YC.js +3 -3
  148. package/lib/da-C2xASa_G.js +3 -3
  149. package/lib/de-D4nlAbMa.js +3 -3
  150. package/lib/el-C-PZe5CV.js +3 -3
  151. package/lib/en-GB-DXa6bdA_.js +3 -3
  152. package/lib/es-CNTVekqW.js +3 -3
  153. package/lib/es-ES-inNoG-F1.js +3 -3
  154. package/lib/{es6-DJZVXP2R.js → es6-brk1mvjr.js} +10435 -12457
  155. package/lib/es6-brk1mvjr.js.map +1 -0
  156. package/lib/fi-CcolQnAY.js +3 -3
  157. package/lib/fr-BjHvlhn5.js +3 -3
  158. package/lib/fr-CA-CmZKx-C9.js +3 -3
  159. package/lib/ga-D-rK3PZy.js +3 -3
  160. package/lib/hi-IN-B5SHv4t9.js +3 -3
  161. package/lib/hr-CwvyeMFM.js +3 -3
  162. package/lib/hu-BCZWPgvf.js +3 -3
  163. package/lib/id-CRNXXELT.js +3 -3
  164. package/lib/{index-BCb1irYW.js → index-AhpIl0el.js} +21 -21
  165. package/{chunk/index-CExjesRv.js.map → lib/index-AhpIl0el.js.map} +1 -1
  166. package/lib/{index-BoRislw1.js → index-BC3Pykb9.js} +6 -6
  167. package/lib/{index-BoRislw1.js.map → index-BC3Pykb9.js.map} +1 -1
  168. package/lib/{index-BbOLkZaw.js → index-BOLwOgjV.js} +4 -4
  169. package/lib/{index-BbOLkZaw.js.map → index-BOLwOgjV.js.map} +1 -1
  170. package/lib/{index-CUp-WoU6.js → index-BTc6mybp.js} +4 -4
  171. package/lib/{index-CUp-WoU6.js.map → index-BTc6mybp.js.map} +1 -1
  172. package/lib/{index-D_gS4OoR.js → index-BbPCfNOX.js} +4 -4
  173. package/lib/{index-D_gS4OoR.js.map → index-BbPCfNOX.js.map} +1 -1
  174. package/lib/{index-Bc8evJUg.js → index-BbT38vqI.js} +6 -6
  175. package/{chunk/index--kEgeOmj.js.map → lib/index-BbT38vqI.js.map} +1 -1
  176. package/lib/{index-BM6iOuN2.js → index-BguVL358.js} +12 -12
  177. package/lib/{index-BM6iOuN2.js.map → index-BguVL358.js.map} +1 -1
  178. package/lib/{index-DpZNNCgU.js → index-BjaB_4p6.js} +8 -8
  179. package/lib/{index-DpZNNCgU.js.map → index-BjaB_4p6.js.map} +1 -1
  180. package/lib/{index-i9FeGF31.js → index-CAxcpf-j.js} +4 -4
  181. package/lib/{index-i9FeGF31.js.map → index-CAxcpf-j.js.map} +1 -1
  182. package/lib/{index-CYVQawU-.js → index-CU1TNU0H.js} +5 -5
  183. package/lib/{index-CYVQawU-.js.map → index-CU1TNU0H.js.map} +1 -1
  184. package/lib/{index-BhMRmiLR.js → index-CXwBpl2h.js} +43 -43
  185. package/{chunk/index-CUti-8Jc.js.map → lib/index-CXwBpl2h.js.map} +1 -1
  186. package/lib/{index-JvdJbBMv.js → index-D2SEqIk0.js} +26 -26
  187. package/lib/{index-JvdJbBMv.js.map → index-D2SEqIk0.js.map} +1 -1
  188. package/lib/{index-CniixQOb.js → index-DDcwvePO.js} +4 -4
  189. package/lib/{index-CniixQOb.js.map → index-DDcwvePO.js.map} +1 -1
  190. package/lib/index-DIkWpujR.js +3 -3
  191. package/lib/index-DROlpQkG.js +11 -0
  192. package/lib/index-DROlpQkG.js.map +1 -0
  193. package/lib/{index-kHjfLElh.js → index-DSUwTsBZ.js} +12 -12
  194. package/{chunk/index-ClyCQ8YP.js.map → lib/index-DSUwTsBZ.js.map} +1 -1
  195. package/lib/{index-dveG4Lri.js → index-DcoHpP50.js} +4 -4
  196. package/lib/{index-dveG4Lri.js.map → index-DcoHpP50.js.map} +1 -1
  197. package/lib/{index-B2mTxb6Q.js → index-DdQze9sK.js} +71 -71
  198. package/lib/{index-B2mTxb6Q.js.map → index-DdQze9sK.js.map} +1 -1
  199. package/lib/index-Dr1kigrf.js +11 -0
  200. package/lib/index-Dr1kigrf.js.map +1 -0
  201. package/lib/index-HC8YvA62.js +11 -0
  202. package/lib/index-HC8YvA62.js.map +1 -0
  203. package/lib/{index-DPmgTB0s.js → index-cIlOFyHr.js} +4 -4
  204. package/lib/{index-DPmgTB0s.js.map → index-cIlOFyHr.js.map} +1 -1
  205. package/lib/{index-BcHRNspF.js → index-pEHKrnBv.js} +9 -9
  206. package/{chunk/index-yXBEMaOE.js.map → lib/index-pEHKrnBv.js.map} +1 -1
  207. package/lib/index-py5jtvcQ.js +11 -0
  208. package/lib/index-py5jtvcQ.js.map +1 -0
  209. package/lib/{index-DKucIMgX.js → index-v0pHCveE.js} +10 -10
  210. package/lib/{index-DKucIMgX.js.map → index-v0pHCveE.js.map} +1 -1
  211. package/lib/is-BFoDLV-f.js +3 -3
  212. package/lib/it-B_iK-eSd.js +3 -3
  213. package/lib/iw-DL48t5mZ.js +3 -3
  214. package/lib/ja-C5bG2SRl.js +3 -3
  215. package/lib/ko-CmmVl873.js +3 -3
  216. package/lib/lo-DvBsVm-4.js +3 -3
  217. package/lib/lt-DWoqI4gx.js +3 -3
  218. package/lib/ms-BCHBEoqA.js +3 -3
  219. package/lib/nl-BE-DLixID0q.js +3 -3
  220. package/lib/nl-CeBqOv0i.js +3 -3
  221. package/lib/no-BR2xqD23.js +3 -3
  222. package/lib/pl-Dl77tRgW.js +3 -3
  223. package/lib/pt-BR--SxHOWht.js +3 -3
  224. package/lib/pt-D0bmI49-.js +3 -3
  225. package/lib/ro-HCkS3amY.js +3 -3
  226. package/lib/ru-BDMi1lvr.js +3 -3
  227. package/lib/sk-C4zNHeM6.js +3 -3
  228. package/lib/sl-BbQVw1S0.js +3 -3
  229. package/lib/sr-8d4sC8Hd.js +3 -3
  230. package/lib/sv-B0-e7r_0.js +3 -3
  231. package/lib/sw-Bo9F25Vc.js +3 -3
  232. package/lib/th-DDuVbwLh.js +3 -3
  233. package/lib/tr-CUwkgj2T.js +3 -3
  234. package/lib/uk-BPrGA4MJ.js +3 -3
  235. package/lib/ur-Cdtm-A0s.js +3 -3
  236. package/lib/{useCollectFieldsEndpoint-BPWSL39W.js → useCollectFieldsEndpoint-C9B3dfkT.js} +5 -5
  237. package/lib/{useCollectFieldsEndpoint-BPWSL39W.js.map → useCollectFieldsEndpoint-C9B3dfkT.js.map} +1 -1
  238. package/lib/{useEmailFirstExperiment-CUBlN8Od.js → useEmailFirstExperiment-BAOrKoTy.js} +4 -4
  239. package/lib/{useEmailFirstExperiment-CUBlN8Od.js.map → useEmailFirstExperiment-BAOrKoTy.js.map} +1 -1
  240. package/lib/vi-JbWizd9m.js +3 -3
  241. package/lib/zh-DjbXrser.js +3 -3
  242. package/lib/zh-HK-DXcspp2Y.js +3 -3
  243. package/lib/zu-BzwZfIDF.js +3 -3
  244. package/package.json +1 -4
  245. package/sheerid-install.css +3 -3
  246. package/sheerid-install.js +4 -4
  247. package/sheerid.css +4 -4
  248. package/sheerid.js +14792 -16813
  249. package/sheerid.js.map +1 -1
  250. package/src/components/ExtraMessage.d.ts +5 -4
  251. package/src/components/FeatureFlags/ExperimentComponent/ExperimentComponent.d.ts +2 -2
  252. package/src/components/LinkExternal.d.ts +1 -1
  253. package/src/components/NewVerificationComponent.d.ts +3 -3
  254. package/src/lib/ServerApi/Network.d.ts +1 -3
  255. package/src/lib/types/assertions.d.ts +2 -2
  256. package/src/lib/types/helpers.d.ts +1 -6
  257. package/src/lib/types/runtimeTypes.d.ts +1 -1
  258. package/src/lib/types/types.d.ts +3 -1
  259. package/types-reference.zip +0 -0
  260. package/chunk/index-CHo0fdEq.js +0 -172
  261. package/lib/StepCollectMilitaryStatusComponent-BOuuFmHJ.js +0 -11
  262. package/lib/es6-DJZVXP2R.js.map +0 -1
  263. package/lib/index-BAZA__91.js +0 -11
  264. package/lib/index-BAZA__91.js.map +0 -1
  265. package/lib/index-BY2R2Itl.js +0 -11
  266. package/lib/index-BY2R2Itl.js.map +0 -1
  267. package/lib/index-D3nT-co3.js +0 -11
  268. package/lib/index-D3nT-co3.js.map +0 -1
  269. package/lib/index-GvGPKkv_.js +0 -11
  270. package/lib/index-GvGPKkv_.js.map +0 -1
  271. package/src/components/Text/Text.d.ts +0 -6
  272. package/src/components/Text/Text.test.d.ts +0 -1
  273. package/src/components/Text/index.d.ts +0 -1
  274. package/src/lib/intl/i18n.d.ts +0 -11
@@ -0,0 +1,172 @@
1
+
2
+ /**
3
+ * VERSION: 2.128.0-alpha.6
4
+ * BUILD_TIMESTAMP: 1758832435278
5
+ * BUILD_DATE: Thu Sep 25 2025 20:33:55 GMT+0000 (Coordinated Universal Time)
6
+ * BUILD_COMMIT: 654d7fc1aaba56601eb06bfc20080f48c256040c
7
+ */
8
+ import { h as R, g as t, R as T, j as a, v as k, w as P, P as z, x as q, T as O, U as w, W as B, f as n, y as L, z as W, E as H, e as K, b as j, X as A, Y as G, G as U, H as X, M as Y, I as J, k as Q, V as Z, n as _ } from "../sheerid.js";
9
+ const $ = ({ verificationService: e }) => {
10
+ var p, b, u, h, C, i, x, g, M, I, N;
11
+ const o = e.viewModel, { fieldValidationErrors: d } = e, r = e.verificationResponse, E = R(r), y = P(), m = (p = t("memberId")) == null ? void 0 : p.requireIfOptional, F = o.localeChoice.value, l = (s, f) => {
12
+ const V = _(
13
+ o,
14
+ (D) => {
15
+ D[s] = f;
16
+ }
17
+ );
18
+ e.updateViewModel(V);
19
+ };
20
+ return T.useEffect(() => {
21
+ m ? e.updateViewModel({ fieldsToSkipValidation: [] }, { partial: !0 }) : e.updateViewModel(
22
+ { fieldsToSkipValidation: ["memberId"] },
23
+ { partial: !0 }
24
+ );
25
+ }, [m]), /* @__PURE__ */ a.jsxs(
26
+ k,
27
+ {
28
+ verificationService: e,
29
+ step: r.currentStep,
30
+ children: [
31
+ /* @__PURE__ */ a.jsx(
32
+ z,
33
+ {
34
+ verificationService: e,
35
+ classNameIdentifier: "member-personal-info"
36
+ }
37
+ ),
38
+ /* @__PURE__ */ a.jsx(q, { verificationService: e }),
39
+ /* @__PURE__ */ a.jsx(
40
+ O,
41
+ {
42
+ verificationService: e,
43
+ disabled: (b = t("country")) == null ? void 0 : b.disabled
44
+ }
45
+ ),
46
+ /* @__PURE__ */ a.jsx(
47
+ w,
48
+ {
49
+ value: e.viewModel.organization,
50
+ verificationService: e,
51
+ isErrored: !!d.organization,
52
+ disabled: (u = t("organization")) == null ? void 0 : u.disabled,
53
+ onChange: (s) => {
54
+ B(s, e), n("organization", s, e);
55
+ }
56
+ }
57
+ ),
58
+ /* @__PURE__ */ a.jsxs("div", { className: "sid-names", children: [
59
+ /* @__PURE__ */ a.jsx(
60
+ L,
61
+ {
62
+ value: o.firstName,
63
+ isErrored: !!d.firstName,
64
+ disabled: (h = t("firstName")) == null ? void 0 : h.disabled,
65
+ onChange: (s) => {
66
+ l("firstName", s), n("firstName", s, e);
67
+ }
68
+ }
69
+ ),
70
+ /* @__PURE__ */ a.jsx(
71
+ W,
72
+ {
73
+ value: o.lastName,
74
+ isErrored: !!d.lastName,
75
+ disabled: (C = t("lastName")) == null ? void 0 : C.disabled,
76
+ onChange: (s) => {
77
+ l("lastName", s), n("lastName", s, e);
78
+ }
79
+ }
80
+ )
81
+ ] }),
82
+ /* @__PURE__ */ a.jsx(
83
+ H,
84
+ {
85
+ value: o.email,
86
+ isErrored: !!d.email,
87
+ explanation: /* @__PURE__ */ a.jsx(j, { id: "emailExplanation", defaultMessage: " " }),
88
+ onChange: (s) => {
89
+ l("email", s), n("email", s, e);
90
+ },
91
+ onKeyDown: (s) => K(s),
92
+ disabled: (i = t("email")) == null ? void 0 : i.disabled
93
+ }
94
+ ),
95
+ /* @__PURE__ */ a.jsx(
96
+ A,
97
+ {
98
+ errorId: d.birthDate,
99
+ locale: F,
100
+ isRequired: (x = t("birthDate")) == null ? void 0 : x.requireIfOptional,
101
+ onChange: (s) => {
102
+ l("birthDate", s), n("birthDate", s, e);
103
+ },
104
+ value: o.birthDate,
105
+ disabled: (g = t("birthDate")) == null ? void 0 : g.disabled
106
+ }
107
+ ),
108
+ /* @__PURE__ */ a.jsx(
109
+ G,
110
+ {
111
+ value: o.memberId,
112
+ isErrored: !!d.memberId,
113
+ isRequired: m,
114
+ disabled: (M = t("memberId")) == null ? void 0 : M.disabled,
115
+ onChange: (s) => {
116
+ l("memberId", s), n("memberId", s, e);
117
+ }
118
+ }
119
+ ),
120
+ e.programTheme.isSmsNotifierConfigured || e.programTheme.smsLoopEnabled ? /* @__PURE__ */ a.jsx(
121
+ U,
122
+ {
123
+ isRequired: !!e.programTheme.smsLoopEnabled,
124
+ value: o.phoneNumber,
125
+ isErrored: !!d.phoneNumber,
126
+ onChange: (s) => {
127
+ l("phoneNumber", s), n("phoneNumber", s, e);
128
+ },
129
+ selectedCountryCode: o.countryChoice && o.countryChoice.value,
130
+ disabled: (I = t("phoneNumber")) == null ? void 0 : I.disabled
131
+ }
132
+ ) : null,
133
+ y.customFormFields.map((s) => /* @__PURE__ */ a.jsx(X, { config: s, verificationService: e })),
134
+ /* @__PURE__ */ a.jsx(
135
+ Y,
136
+ {
137
+ verificationService: e,
138
+ isErrored: !!d.marketConsentValue,
139
+ onChange: (s) => {
140
+ l("metadata", {
141
+ ...e.viewModel.metadata,
142
+ marketConsentValue: s
143
+ }), n("marketConsentValue", s, e);
144
+ },
145
+ viewModel: o,
146
+ disabled: (N = t("marketConsentValue")) == null ? void 0 : N.disabled
147
+ }
148
+ ),
149
+ /* @__PURE__ */ a.jsx(J, { verificationService: e, suffix: "CollectAboveSubmit" }),
150
+ /* @__PURE__ */ a.jsx(
151
+ Q,
152
+ {
153
+ step: Z.collectMemberPersonalInfo,
154
+ verificationService: e,
155
+ viewModel: o,
156
+ failedInstantMatch: E,
157
+ buttonText: /* @__PURE__ */ a.jsx(
158
+ j,
159
+ {
160
+ id: "step.personalInfo.submitButtonText",
161
+ defaultMessage: "Verify My Membership Status"
162
+ }
163
+ )
164
+ }
165
+ )
166
+ ]
167
+ }
168
+ );
169
+ }, c = $;
170
+ export {
171
+ c as default
172
+ };
@@ -1 +1 @@
1
- {"version":3,"file":"index-BhMRmiLR.js","sources":["../../src/components/StepMemberPersonalInfo/StepMemberPersonalInfoComponent.tsx"],"sourcesContent":["import React from \"react\";\nimport { FormattedHTMLMessage } from \"react-intl\";\nimport { produce } from \"immer\";\n\nimport { VerificationStepsEnum } from \"../../lib/types/runtimeTypes\";\nimport { hasFailedInstantMatch } from \"../../lib/VerificationService/VerificationServiceHelpers\";\nimport {\n VerificationService,\n Organization,\n MemberPersonalInfoViewModel,\n MemberPersonalInfoResponse,\n CustomFormFieldConfig,\n} from \"../../lib/types/types\";\nimport {\n getFieldConfigByFieldId,\n handleEmailOnKeyDown,\n updateFieldValidationErrorsByFieldId,\n updateViewModelOrganization,\n} from \"../../lib/utils/stepComponentHelpers/stepComponentHelpers\";\n\nimport { PhoneNumberComponent as PhoneNumber } from \"../FormFields/PhoneNumber/PhoneNumberComponent\";\nimport { FirstNameComponent as FirstName } from \"../FormFields/FirstName/FirstNameComponent\";\nimport { LastNameComponent as LastName } from \"../FormFields/LastName/LastNameComponent\";\nimport { EmailComponent as Email } from \"../FormFields/Email/EmailComponent\";\nimport { BirthDateComponent as BirthDate } from \"../FormFields/BirthDate/BirthDateComponent\";\nimport { MemberIdComponent as MemberId } from \"../FormFields/MemberId/MemberIdComponent\";\nimport { ChangeLocaleV2Component } from \"../FormFields/ChangeLocale/ChangeLocaleComponent\";\nimport { MembershipOrganizationComponent } from \"../FormFields/MembershipOrganization/MembershipOrganizationComponent\";\nimport { MarketConsentWrapperComponent } from \"../FormFields/MarketConsentWrapper/MarketConsentWrapperComponent\";\nimport { CountryComponentWrapper } from \"../FormFields/Country/CountryComponentWrapper\";\nimport { getOptions } from \"../../options/options\";\nimport { FormFieldCustom } from \"../FormFields/FormFieldCustom/FormFieldCustom\";\nimport { ExtraMessage } from \"../ExtraMessage\";\nimport { PersonalInfoWrapper } from \"../PersonalInfoStepWrapper/PersonalInfoStepWrapper\";\nimport { PersonalInfoStepSubmitButton } from \"../PersonalInfoStepSubmitButton/PersonalInfoStepSubmitButton\";\nimport { PersonalInfoHeader } from \"../FormHeader/StepHeaders/PersonalInfoHeaderComponent\";\n\ninterface StepMemberPersonalInfoComponentProps {\n verificationService: VerificationService;\n}\n\nconst StepMemberPersonalInfo = ({ verificationService }: StepMemberPersonalInfoComponentProps) => {\n const viewModel = verificationService.viewModel as MemberPersonalInfoViewModel;\n const { fieldValidationErrors } = verificationService;\n const verificationResponse =\n verificationService.verificationResponse as MemberPersonalInfoResponse;\n const failedInstantMatch = hasFailedInstantMatch(verificationResponse);\n const options = getOptions();\n const isMemberIdRequired = getFieldConfigByFieldId(\"memberId\")?.requireIfOptional;\n\n const locale = viewModel.localeChoice.value;\n\n const updateMemberViewModel = (key: keyof MemberPersonalInfoViewModel, value: any) => {\n const nextState: MemberPersonalInfoViewModel = produce(\n viewModel,\n (draft: MemberPersonalInfoViewModel) => {\n (draft[key] as any) = value;\n },\n );\n verificationService.updateViewModel(nextState);\n };\n\n React.useEffect(() => {\n if (!isMemberIdRequired) {\n verificationService.updateViewModel(\n { fieldsToSkipValidation: [\"memberId\"] },\n { partial: true },\n );\n } else {\n verificationService.updateViewModel({ fieldsToSkipValidation: [] }, { partial: true });\n }\n }, [isMemberIdRequired]);\n\n return (\n <PersonalInfoWrapper\n verificationService={verificationService}\n step={verificationResponse.currentStep}\n >\n <PersonalInfoHeader\n verificationService={verificationService}\n classNameIdentifier=\"member-personal-info\"\n />\n\n <ChangeLocaleV2Component verificationService={verificationService} />\n <CountryComponentWrapper\n verificationService={verificationService}\n disabled={getFieldConfigByFieldId(\"country\")?.disabled}\n />\n\n <MembershipOrganizationComponent\n value={(verificationService.viewModel as MemberPersonalInfoViewModel).organization}\n verificationService={verificationService}\n isErrored={!!fieldValidationErrors.organization}\n disabled={getFieldConfigByFieldId(\"organization\")?.disabled}\n onChange={(choice: Organization) => {\n updateViewModelOrganization(choice, verificationService);\n updateFieldValidationErrorsByFieldId(\"organization\", choice, verificationService);\n }}\n />\n\n <div className=\"sid-names\">\n <FirstName\n value={viewModel.firstName}\n isErrored={!!fieldValidationErrors.firstName}\n disabled={getFieldConfigByFieldId(\"firstName\")?.disabled}\n onChange={(newValue) => {\n updateMemberViewModel(\"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 updateMemberViewModel(\"lastName\", newValue);\n updateFieldValidationErrorsByFieldId(\"lastName\", newValue, verificationService);\n }}\n />\n </div>\n\n <Email\n value={viewModel.email}\n isErrored={!!fieldValidationErrors.email}\n explanation={<FormattedHTMLMessage id=\"emailExplanation\" defaultMessage=\" \" />}\n onChange={(newValue) => {\n updateMemberViewModel(\"email\", newValue);\n updateFieldValidationErrorsByFieldId(\"email\", newValue, verificationService);\n }}\n onKeyDown={(event) => handleEmailOnKeyDown(event)}\n disabled={getFieldConfigByFieldId(\"email\")?.disabled}\n />\n\n <BirthDate\n errorId={fieldValidationErrors.birthDate}\n locale={locale}\n isRequired={getFieldConfigByFieldId(\"birthDate\")?.requireIfOptional}\n onChange={(newValue) => {\n updateMemberViewModel(\"birthDate\", newValue);\n updateFieldValidationErrorsByFieldId(\"birthDate\", newValue, verificationService);\n }}\n value={viewModel.birthDate}\n disabled={getFieldConfigByFieldId(\"birthDate\")?.disabled}\n />\n\n <MemberId\n value={viewModel.memberId}\n isErrored={!!fieldValidationErrors.memberId}\n isRequired={isMemberIdRequired}\n disabled={getFieldConfigByFieldId(\"memberId\")?.disabled}\n onChange={(newValue) => {\n updateMemberViewModel(\"memberId\", newValue);\n updateFieldValidationErrorsByFieldId(\"memberId\", newValue, verificationService);\n }}\n />\n\n {verificationService.programTheme.isSmsNotifierConfigured ||\n verificationService.programTheme.smsLoopEnabled ? (\n <PhoneNumber\n isRequired={!!verificationService.programTheme.smsLoopEnabled}\n value={viewModel.phoneNumber}\n isErrored={!!fieldValidationErrors.phoneNumber}\n onChange={(newValue) => {\n updateMemberViewModel(\"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 <MarketConsentWrapperComponent\n verificationService={verificationService}\n isErrored={!!fieldValidationErrors.marketConsentValue}\n onChange={(newValue) => {\n updateMemberViewModel(\"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 suffix=\"CollectAboveSubmit\" />\n\n <PersonalInfoStepSubmitButton\n step={VerificationStepsEnum.collectMemberPersonalInfo}\n verificationService={verificationService}\n viewModel={viewModel}\n failedInstantMatch={failedInstantMatch}\n buttonText={\n <FormattedHTMLMessage\n id=\"step.personalInfo.submitButtonText\"\n defaultMessage=\"Verify My Membership Status\"\n />\n }\n />\n </PersonalInfoWrapper>\n );\n};\n\nexport const StepMemberPersonalInfoComponent = StepMemberPersonalInfo;\n"],"names":["StepMemberPersonalInfo","verificationService","viewModel","fieldValidationErrors","verificationResponse","failedInstantMatch","hasFailedInstantMatch","options","getOptions","isMemberIdRequired","_a","getFieldConfigByFieldId","locale","updateMemberViewModel","key","value","nextState","produce","draft","React","jsxs","PersonalInfoWrapper","jsx","PersonalInfoHeader","ChangeLocaleV2Component","CountryComponentWrapper","_b","MembershipOrganizationComponent","_c","choice","updateViewModelOrganization","updateFieldValidationErrorsByFieldId","FirstName","_d","newValue","LastName","_e","Email","FormattedHTMLMessage","event","handleEmailOnKeyDown","_f","BirthDate","_g","_h","MemberId","_i","PhoneNumber","_j","config","FormFieldCustom","MarketConsentWrapperComponent","_k","ExtraMessage","PersonalInfoStepSubmitButton","VerificationStepsEnum","StepMemberPersonalInfoComponent"],"mappings":";;;AAyCA,MAAMA,IAAyB,CAAC,EAAE,qBAAAC,QAAgE;;AAChG,QAAMC,IAAYD,EAAoB,WAChC,EAAE,uBAAAE,MAA0BF,GAC5BG,IACJH,EAAoB,sBAChBI,IAAqBC,EAAsBF,CAAoB,GAC/DG,IAAUC,EAAW,GACrBC,KAAqBC,IAAAC,EAAwB,UAAU,MAAlC,gBAAAD,EAAqC,mBAE1DE,IAASV,EAAU,aAAa,OAEhCW,IAAwB,CAACC,GAAwCC,MAAe;AACpF,UAAMC,IAAyCC;AAAAA,MAC7Cf;AAAA,MACA,CAACgB,MAAuC;AACrC,QAAAA,EAAMJ,CAAG,IAAYC;AAAA,MAAA;AAAA,IAE1B;AACA,IAAAd,EAAoB,gBAAgBe,CAAS;AAAA,EAC/C;AAEAG,SAAAA,EAAM,UAAU,MAAM;AACpB,IAAKV,IAMiBR,EAAA,gBAAgB,EAAE,wBAAwB,MAAM,EAAE,SAAS,IA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AA,sBAAsBG,GAAUjC,CAAmB;AAAA,YAC1F;AAAA,YACA,WAAAC;AAAA,YACA,WAAUkD,IAAAzC,EAAwB,oBAAoB,MAA5C,gBAAAyC,EAA+C;AAAA,UAAA;AAAA,QAC3D;AAAA,QAEA9B,gBAAAA,EAAAA,IAAC+B,GAAa,EAAA,QAAO,qBAAqB,CAAA;AAAA,QAE1C/B,gBAAAA,EAAA;AAAA,UAACgC;AAAA,UAAA;AAAA,YACC,MAAMC,EAAsB;AAAA,YAC5B,qBAAAtD;AAAA,YACA,WAAAC;AAAA,YACA,oBAAAG;AAAA,YACA,YACEiB,gBAAAA,EAAA;AAAA,cAACgB;AAAA,cAAA;AAAA,gBACC,IAAG;AAAA,gBACH,gBAAe;AAAA,cAAA;AAAA,YAAA;AAAA,UACjB;AAAA,QAAA;AAAA,MAEJ;AAAA,IAAA;AAAA,EACF;AAEJ,GAEakB,KAAkCxD;"}
1
+ {"version":3,"file":"index-DJo820YY.js","sources":["../../src/components/StepMemberPersonalInfo/StepMemberPersonalInfoComponent.tsx"],"sourcesContent":["import React from \"react\";\nimport { FormattedHTMLMessage } from \"react-intl\";\nimport { produce } from \"immer\";\n\nimport { VerificationStepsEnum } from \"../../lib/types/runtimeTypes\";\nimport { hasFailedInstantMatch } from \"../../lib/VerificationService/VerificationServiceHelpers\";\nimport {\n VerificationService,\n Organization,\n MemberPersonalInfoViewModel,\n MemberPersonalInfoResponse,\n CustomFormFieldConfig,\n} from \"../../lib/types/types\";\nimport {\n getFieldConfigByFieldId,\n handleEmailOnKeyDown,\n updateFieldValidationErrorsByFieldId,\n updateViewModelOrganization,\n} from \"../../lib/utils/stepComponentHelpers/stepComponentHelpers\";\n\nimport { PhoneNumberComponent as PhoneNumber } from \"../FormFields/PhoneNumber/PhoneNumberComponent\";\nimport { FirstNameComponent as FirstName } from \"../FormFields/FirstName/FirstNameComponent\";\nimport { LastNameComponent as LastName } from \"../FormFields/LastName/LastNameComponent\";\nimport { EmailComponent as Email } from \"../FormFields/Email/EmailComponent\";\nimport { BirthDateComponent as BirthDate } from \"../FormFields/BirthDate/BirthDateComponent\";\nimport { MemberIdComponent as MemberId } from \"../FormFields/MemberId/MemberIdComponent\";\nimport { ChangeLocaleV2Component } from \"../FormFields/ChangeLocale/ChangeLocaleComponent\";\nimport { MembershipOrganizationComponent } from \"../FormFields/MembershipOrganization/MembershipOrganizationComponent\";\nimport { MarketConsentWrapperComponent } from \"../FormFields/MarketConsentWrapper/MarketConsentWrapperComponent\";\nimport { CountryComponentWrapper } from \"../FormFields/Country/CountryComponentWrapper\";\nimport { getOptions } from \"../../options/options\";\nimport { FormFieldCustom } from \"../FormFields/FormFieldCustom/FormFieldCustom\";\nimport { ExtraMessage } from \"../ExtraMessage\";\nimport { PersonalInfoWrapper } from \"../PersonalInfoStepWrapper/PersonalInfoStepWrapper\";\nimport { PersonalInfoStepSubmitButton } from \"../PersonalInfoStepSubmitButton/PersonalInfoStepSubmitButton\";\nimport { PersonalInfoHeader } from \"../FormHeader/StepHeaders/PersonalInfoHeaderComponent\";\n\ninterface StepMemberPersonalInfoComponentProps {\n verificationService: VerificationService;\n}\n\nconst StepMemberPersonalInfo = ({ verificationService }: StepMemberPersonalInfoComponentProps) => {\n const viewModel = verificationService.viewModel as MemberPersonalInfoViewModel;\n const { fieldValidationErrors } = verificationService;\n const verificationResponse =\n verificationService.verificationResponse as MemberPersonalInfoResponse;\n const failedInstantMatch = hasFailedInstantMatch(verificationResponse);\n const options = getOptions();\n const isMemberIdRequired = getFieldConfigByFieldId(\"memberId\")?.requireIfOptional;\n\n const locale = viewModel.localeChoice.value;\n\n const updateMemberViewModel = (key: keyof MemberPersonalInfoViewModel, value: any) => {\n const nextState: MemberPersonalInfoViewModel = produce(\n viewModel,\n (draft: MemberPersonalInfoViewModel) => {\n (draft[key] as any) = value;\n },\n );\n verificationService.updateViewModel(nextState);\n };\n\n React.useEffect(() => {\n if (!isMemberIdRequired) {\n verificationService.updateViewModel(\n { fieldsToSkipValidation: [\"memberId\"] },\n { partial: true },\n );\n } else {\n verificationService.updateViewModel({ fieldsToSkipValidation: [] }, { partial: true });\n }\n }, [isMemberIdRequired]);\n\n return (\n <PersonalInfoWrapper\n verificationService={verificationService}\n step={verificationResponse.currentStep}\n >\n <PersonalInfoHeader\n verificationService={verificationService}\n classNameIdentifier=\"member-personal-info\"\n />\n\n <ChangeLocaleV2Component verificationService={verificationService} />\n <CountryComponentWrapper\n verificationService={verificationService}\n disabled={getFieldConfigByFieldId(\"country\")?.disabled}\n />\n\n <MembershipOrganizationComponent\n value={(verificationService.viewModel as MemberPersonalInfoViewModel).organization}\n verificationService={verificationService}\n isErrored={!!fieldValidationErrors.organization}\n disabled={getFieldConfigByFieldId(\"organization\")?.disabled}\n onChange={(choice: Organization) => {\n updateViewModelOrganization(choice, verificationService);\n updateFieldValidationErrorsByFieldId(\"organization\", choice, verificationService);\n }}\n />\n\n <div className=\"sid-names\">\n <FirstName\n value={viewModel.firstName}\n isErrored={!!fieldValidationErrors.firstName}\n disabled={getFieldConfigByFieldId(\"firstName\")?.disabled}\n onChange={(newValue) => {\n updateMemberViewModel(\"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 updateMemberViewModel(\"lastName\", newValue);\n updateFieldValidationErrorsByFieldId(\"lastName\", newValue, verificationService);\n }}\n />\n </div>\n\n <Email\n value={viewModel.email}\n isErrored={!!fieldValidationErrors.email}\n explanation={<FormattedHTMLMessage id=\"emailExplanation\" defaultMessage=\" \" />}\n onChange={(newValue) => {\n updateMemberViewModel(\"email\", newValue);\n updateFieldValidationErrorsByFieldId(\"email\", newValue, verificationService);\n }}\n onKeyDown={(event) => handleEmailOnKeyDown(event)}\n disabled={getFieldConfigByFieldId(\"email\")?.disabled}\n />\n\n <BirthDate\n errorId={fieldValidationErrors.birthDate}\n locale={locale}\n isRequired={getFieldConfigByFieldId(\"birthDate\")?.requireIfOptional}\n onChange={(newValue) => {\n updateMemberViewModel(\"birthDate\", newValue);\n updateFieldValidationErrorsByFieldId(\"birthDate\", newValue, verificationService);\n }}\n value={viewModel.birthDate}\n disabled={getFieldConfigByFieldId(\"birthDate\")?.disabled}\n />\n\n <MemberId\n value={viewModel.memberId}\n isErrored={!!fieldValidationErrors.memberId}\n isRequired={isMemberIdRequired}\n disabled={getFieldConfigByFieldId(\"memberId\")?.disabled}\n onChange={(newValue) => {\n updateMemberViewModel(\"memberId\", newValue);\n updateFieldValidationErrorsByFieldId(\"memberId\", newValue, verificationService);\n }}\n />\n\n {verificationService.programTheme.isSmsNotifierConfigured ||\n verificationService.programTheme.smsLoopEnabled ? (\n <PhoneNumber\n isRequired={!!verificationService.programTheme.smsLoopEnabled}\n value={viewModel.phoneNumber}\n isErrored={!!fieldValidationErrors.phoneNumber}\n onChange={(newValue) => {\n updateMemberViewModel(\"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 <MarketConsentWrapperComponent\n verificationService={verificationService}\n isErrored={!!fieldValidationErrors.marketConsentValue}\n onChange={(newValue) => {\n updateMemberViewModel(\"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.collectMemberPersonalInfo}\n verificationService={verificationService}\n viewModel={viewModel}\n failedInstantMatch={failedInstantMatch}\n buttonText={\n <FormattedHTMLMessage\n id=\"step.personalInfo.submitButtonText\"\n defaultMessage=\"Verify My Membership Status\"\n />\n }\n />\n </PersonalInfoWrapper>\n );\n};\n\nexport const StepMemberPersonalInfoComponent = StepMemberPersonalInfo;\n"],"names":["StepMemberPersonalInfo","verificationService","viewModel","fieldValidationErrors","verificationResponse","failedInstantMatch","hasFailedInstantMatch","options","getOptions","isMemberIdRequired","_a","getFieldConfigByFieldId","locale","updateMemberViewModel","key","value","nextState","produce","draft","React","jsxs","PersonalInfoWrapper","jsx","PersonalInfoHeader","ChangeLocaleV2Component","CountryComponentWrapper","_b","MembershipOrganizationComponent","_c","choice","updateViewModelOrganization","updateFieldValidationErrorsByFieldId","FirstName","_d","newValue","LastName","_e","Email","FormattedHTMLMessage","event","handleEmailOnKeyDown","_f","BirthDate","_g","_h","MemberId","_i","PhoneNumber","_j","config","FormFieldCustom","MarketConsentWrapperComponent","_k","ExtraMessage","PersonalInfoStepSubmitButton","VerificationStepsEnum","StepMemberPersonalInfoComponent"],"mappings":";AAyCA,MAAMA,IAAyB,CAAC,EAAE,qBAAAC,QAAgE;;AAChG,QAAMC,IAAYD,EAAoB,WAChC,EAAE,uBAAAE,MAA0BF,GAC5BG,IACJH,EAAoB,sBAChBI,IAAqBC,EAAsBF,CAAoB,GAC/DG,IAAUC,EAAW,GACrBC,KAAqBC,IAAAC,EAAwB,UAAU,MAAlC,gBAAAD,EAAqC,mBAE1DE,IAASV,EAAU,aAAa,OAEhCW,IAAwB,CAACC,GAAwCC,MAAe;AACpF,UAAMC,IAAyCC;AAAAA,MAC7Cf;AAAA,MACA,CAACgB,MAAuC;AACrC,QAAAA,EAAMJ,CAAG,IAAYC;AAAA,MAAA;AAAA,IAE1B;AACA,IAAAd,EAAoB,gBAAgBe,CAAS;AAAA,EAC/C;AAEA,SAAAG,EAAM,UAAU,MAAM;AACpB,IAAKV,IAMiB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AAAA,gBACjC,oBAAoBiC;AAAA,cAAA,CACrB,GACoCH,EAAA,sBAAsBG,GAAUjC,CAAmB;AAAA,YAC1F;AAAA,YACA,WAAAC;AAAA,YACA,WAAUkD,IAAAzC,EAAwB,oBAAoB,MAA5C,gBAAAyC,EAA+C;AAAA,UAAA;AAAA,QAC3D;AAAA,QAEC9B,gBAAAA,EAAAA,IAAA+B,GAAA,EAAa,qBAAApD,GAA0C,QAAO,qBAAqB,CAAA;AAAA,QAEpFqB,gBAAAA,EAAA;AAAA,UAACgC;AAAA,UAAA;AAAA,YACC,MAAMC,EAAsB;AAAA,YAC5B,qBAAAtD;AAAA,YACA,WAAAC;AAAA,YACA,oBAAAG;AAAA,YACA,YACEiB,gBAAAA,EAAA;AAAA,cAACgB;AAAA,cAAA;AAAA,gBACC,IAAG;AAAA,gBACH,gBAAe;AAAA,cAAA;AAAA,YAAA;AAAA,UACjB;AAAA,QAAA;AAAA,MAEJ;AAAA,IAAA;AAAA,EACF;AAEJ,GAEakB,IAAkCxD;"}
@@ -1,8 +1,8 @@
1
1
 
2
2
  /**
3
- * VERSION: 2.128.0-alpha.5
4
- * BUILD_TIMESTAMP: 1758752018225
5
- * BUILD_DATE: Wed Sep 24 2025 22:13:38 GMT+0000 (Coordinated Universal Time)
3
+ * VERSION: 2.128.0-alpha.6
4
+ * BUILD_TIMESTAMP: 1758832435278
5
+ * BUILD_DATE: Thu Sep 25 2025 20:33:55 GMT+0000 (Coordinated Universal Time)
6
6
  * BUILD_COMMIT: 654d7fc1aaba56601eb06bfc20080f48c256040c
7
7
  */
8
8
  var I = Object.defineProperty;
@@ -1,8 +1,8 @@
1
1
 
2
2
  /**
3
- * VERSION: 2.128.0-alpha.5
4
- * BUILD_TIMESTAMP: 1758752018225
5
- * BUILD_DATE: Wed Sep 24 2025 22:13:38 GMT+0000 (Coordinated Universal Time)
3
+ * VERSION: 2.128.0-alpha.6
4
+ * BUILD_TIMESTAMP: 1758832435278
5
+ * BUILD_DATE: Thu Sep 25 2025 20:33:55 GMT+0000 (Coordinated Universal Time)
6
6
  * BUILD_COMMIT: 654d7fc1aaba56601eb06bfc20080f48c256040c
7
7
  */
8
8
  import { i as k, j as a, v as P, w as V, P as f, x as z, T as A, g as t, a4 as u, a5 as B, W as R, f as n, y as w, z as D, B as L, b as p, a1 as q, a6 as W, a7 as H, D as O, E as K, e as U, G, H as J, M as Q, I as X, k as Y, V as Z, n as _ } from "../sheerid.js";
@@ -10,7 +10,7 @@ const $ = ({
10
10
  intl: I,
11
11
  verificationService: e
12
12
  }) => {
13
- var C, b, g, h, x, i, y, E, j, N, M;
13
+ var C, b, g, h, x, y, i, E, j, N, M;
14
14
  const o = e.viewModel, { fieldValidationErrors: d } = e, T = V(), m = (s, r) => {
15
15
  const l = _(
16
16
  o,
@@ -115,7 +115,7 @@ const $ = ({
115
115
  },
116
116
  value: o.city,
117
117
  isRequired: !0,
118
- disabled: (i = t("city")) == null ? void 0 : i.disabled
118
+ disabled: (y = t("city")) == null ? void 0 : y.disabled
119
119
  }
120
120
  ),
121
121
  /* @__PURE__ */ a.jsx(
@@ -130,7 +130,7 @@ const $ = ({
130
130
  m("state", r), n("state", r, e);
131
131
  },
132
132
  label: /* @__PURE__ */ a.jsx(p, { id: "state", defaultMessage: "State" }),
133
- disabled: (y = t("state")) == null ? void 0 : y.disabled
133
+ disabled: (i = t("state")) == null ? void 0 : i.disabled
134
134
  }
135
135
  ),
136
136
  /* @__PURE__ */ a.jsx(
@@ -193,7 +193,7 @@ const $ = ({
193
193
  disabled: (M = t("marketConsentValue")) == null ? void 0 : M.disabled
194
194
  }
195
195
  ),
196
- /* @__PURE__ */ a.jsx(X, { suffix: "CollectAboveSubmit" }),
196
+ /* @__PURE__ */ a.jsx(X, { verificationService: e, suffix: "CollectAboveSubmit" }),
197
197
  /* @__PURE__ */ a.jsx(
198
198
  Y,
199
199
  {
@@ -1 +1 @@
1
- {"version":3,"file":"index-kHjfLElh.js","sources":["../../src/components/StepEmploymentPersonalInfo/StepEmploymentPersonalInfoComponent.tsx"],"sourcesContent":["/**\n * TODO - preamble\n */\nimport React from \"react\";\nimport { FormattedHTMLMessage, injectIntl } from \"react-intl\";\nimport { produce } from \"immer\";\n\nimport { VerificationStepsEnum } from \"../../lib/types/runtimeTypes\";\nimport {\n VerificationService,\n Organization,\n EmploymentPersonalInfoViewModel,\n CustomFormFieldConfig,\n FormSelectChoice,\n State,\n} from \"../../lib/types/types\";\nimport {\n handleEmailOnKeyDown,\n updateFieldValidationErrorsByFieldId,\n updateViewModelOrganization,\n shouldCollectAddressFields,\n getAvailableStateChoices,\n getFieldConfigByFieldId,\n} from \"../../lib/utils/stepComponentHelpers/stepComponentHelpers\";\n\nimport { PhoneNumberComponent as PhoneNumber } from \"../FormFields/PhoneNumber/PhoneNumberComponent\";\nimport { FirstNameComponent as FirstName } from \"../FormFields/FirstName/FirstNameComponent\";\nimport { LastNameComponent as LastName } from \"../FormFields/LastName/LastNameComponent\";\nimport { EmailComponent as Email } from \"../FormFields/Email/EmailComponent\";\nimport { MarketConsentWrapperComponent as MarketConsentWrapper } from \"../FormFields/MarketConsentWrapper/MarketConsentWrapperComponent\";\nimport { AddressComponent } from \"../FormFields/Address/AddressComponent\";\nimport { CityComponent } from \"../FormFields/City/City\";\nimport { StateSelectComponent } from \"../FormFields/State/StateSelectComponent\";\nimport { CompanyComponent } from \"../FormFields/Company/CompanyComponent\";\nimport { PostalCodeComponent } from \"../FormFields/PostalCode/PostalCodeComponent\";\n\nimport { CountryComponentWrapper } from \"../FormFields/Country/CountryComponentWrapper\";\nimport { getOptions } from \"../../options/options\";\nimport { FormFieldCustom } from \"../FormFields/FormFieldCustom/FormFieldCustom\";\nimport { ExtraMessage } from \"../ExtraMessage\";\nimport { ChangeLocaleV2Component } from \"../FormFields/ChangeLocale/ChangeLocaleComponent\";\nimport { PersonalInfoWrapper } from \"../PersonalInfoStepWrapper/PersonalInfoStepWrapper\";\nimport { PersonalInfoStepSubmitButton } from \"../PersonalInfoStepSubmitButton/PersonalInfoStepSubmitButton\";\nimport { PersonalInfoHeader } from \"../FormHeader/StepHeaders/PersonalInfoHeaderComponent\";\n\ninterface StepEmploymentPersonalInfoComponentProps {\n intl: any;\n verificationService: VerificationService;\n}\n\nconst StepEmploymentPersonalInfo = ({\n intl,\n verificationService,\n}: StepEmploymentPersonalInfoComponentProps) => {\n const viewModel = verificationService.viewModel as EmploymentPersonalInfoViewModel;\n const { fieldValidationErrors } = verificationService;\n const options = getOptions();\n\n const updateEmploymentViewModel = (key: keyof EmploymentPersonalInfoViewModel, value: any) => {\n const nextState: EmploymentPersonalInfoViewModel = produce(\n viewModel,\n (draft: EmploymentPersonalInfoViewModel) => {\n (draft[key] as any) = value;\n },\n );\n verificationService.updateViewModel(nextState);\n };\n\n return (\n <PersonalInfoWrapper\n verificationService={verificationService}\n step={verificationService.verificationResponse.currentStep}\n >\n <PersonalInfoHeader\n verificationService={verificationService}\n classNameIdentifier=\"employment\"\n />\n\n <ChangeLocaleV2Component verificationService={verificationService} />\n <CountryComponentWrapper\n verificationService={verificationService}\n disabled={getFieldConfigByFieldId(\"country\")?.disabled}\n viewModelDraftDecorator={(draft, countryChoice) => {\n const viewModel = draft as EmploymentPersonalInfoViewModel;\n\n viewModel.shouldCollectAddress = shouldCollectAddressFields(\n countryChoice,\n verificationService.programTheme.config.countries,\n );\n if (!viewModel.shouldCollectAddress) {\n viewModel.address1 = \"\";\n viewModel.city = \"\";\n viewModel.state = \"\";\n viewModel.postalCode = \"\";\n viewModel.fieldsToSkipValidation = [\"address1\", \"city\", \"state\", \"postalCode\"];\n } else {\n viewModel.fieldsToSkipValidation = undefined;\n }\n }}\n />\n\n <CompanyComponent\n value={(verificationService.viewModel as EmploymentPersonalInfoViewModel).organization}\n verificationService={verificationService}\n isErrored={!!fieldValidationErrors.organization}\n disabled={getFieldConfigByFieldId(\"organization\")?.disabled}\n onChange={(choice: Organization) => {\n updateViewModelOrganization(choice, verificationService);\n updateFieldValidationErrorsByFieldId(\"organization\", choice, verificationService);\n }}\n />\n\n <div className=\"sid-names\">\n <FirstName\n value={viewModel.firstName}\n isErrored={!!fieldValidationErrors.firstName}\n disabled={getFieldConfigByFieldId(\"firstName\")?.disabled}\n onChange={(newValue) => {\n updateEmploymentViewModel(\"firstName\", newValue);\n updateFieldValidationErrorsByFieldId(\"firstName\", newValue, verificationService);\n }}\n />\n\n <LastName\n value={viewModel.lastName}\n isErrored={!!fieldValidationErrors.lastName}\n disabled={getFieldConfigByFieldId(\"lastName\")?.disabled}\n onChange={(newValue) => {\n updateEmploymentViewModel(\"lastName\", newValue);\n updateFieldValidationErrorsByFieldId(\"lastName\", newValue, verificationService);\n }}\n />\n </div>\n\n {shouldCollectAddressFields(\n viewModel.countryChoice,\n verificationService.programTheme.config.countries,\n ) ? (\n <AddressComponent\n isErrored={!!fieldValidationErrors.address1}\n errorId={fieldValidationErrors.address1}\n onChange={(newValue) => {\n updateEmploymentViewModel(\"address1\", newValue);\n updateFieldValidationErrorsByFieldId(\"address1\", newValue, verificationService);\n }}\n isRequired\n value={viewModel.address1}\n disabled={getFieldConfigByFieldId(\"address1\")?.disabled}\n explanation={\n <FormattedHTMLMessage id=\"addressExplanation\" defaultMessage=\"Use your home address\" />\n }\n />\n ) : null}\n\n {shouldCollectAddressFields(\n viewModel.countryChoice,\n verificationService.programTheme.config.countries,\n ) ? (\n <div className=\"sid-thirds\">\n <CityComponent\n isErrored={!!fieldValidationErrors.city}\n errorId={fieldValidationErrors.city}\n onChange={(newValue) => {\n updateEmploymentViewModel(\"city\", newValue);\n updateFieldValidationErrorsByFieldId(\"city\", newValue, verificationService);\n }}\n value={viewModel.city}\n isRequired\n disabled={getFieldConfigByFieldId(\"city\")?.disabled}\n />\n <StateSelectComponent\n isRequired\n options={getAvailableStateChoices(verificationService.programTheme, intl)}\n value={viewModel.state || undefined}\n isErrored={Boolean(fieldValidationErrors.state)}\n onChange={async (stateChoice: FormSelectChoice<State, string>) => {\n const stateValue = stateChoice ? stateChoice.value : undefined;\n updateEmploymentViewModel(\"state\", stateValue);\n updateFieldValidationErrorsByFieldId(\"state\", stateValue, verificationService);\n }}\n label={<FormattedHTMLMessage id=\"state\" defaultMessage=\"State\" />}\n disabled={getFieldConfigByFieldId(\"state\")?.disabled}\n />\n <PostalCodeComponent\n isErrored={!!fieldValidationErrors.postalCode}\n onChange={(newValue) => {\n updateEmploymentViewModel(\"postalCode\", newValue);\n updateFieldValidationErrorsByFieldId(\"postalCode\", newValue, verificationService);\n }}\n value={viewModel.postalCode}\n disabled={getFieldConfigByFieldId(\"postalCode\")?.disabled}\n />\n </div>\n ) : null}\n\n <Email\n value={viewModel.email}\n isErrored={!!fieldValidationErrors.email}\n explanation={\n <FormattedHTMLMessage\n id=\"emailExplanation\"\n defaultMessage=\"Use your work email if you have one\"\n />\n }\n onChange={(newValue) => {\n updateEmploymentViewModel(\"email\", newValue);\n updateFieldValidationErrorsByFieldId(\"email\", newValue, verificationService);\n }}\n onKeyDown={(event) => handleEmailOnKeyDown(event)}\n disabled={getFieldConfigByFieldId(\"email\")?.disabled}\n />\n {verificationService.programTheme.isSmsNotifierConfigured ||\n verificationService.programTheme.smsLoopEnabled ? (\n <PhoneNumber\n isRequired={!!verificationService.programTheme.smsLoopEnabled}\n value={viewModel.phoneNumber}\n isErrored={!!fieldValidationErrors.phoneNumber}\n onChange={(newValue) => {\n updateEmploymentViewModel(\"phoneNumber\", newValue);\n updateFieldValidationErrorsByFieldId(\"phoneNumber\", newValue, verificationService);\n }}\n selectedCountryCode={viewModel.countryChoice && viewModel.countryChoice.value}\n disabled={getFieldConfigByFieldId(\"phoneNumber\")?.disabled}\n />\n ) : null}\n\n {options.customFormFields.map((config: CustomFormFieldConfig) => (\n <FormFieldCustom config={config} verificationService={verificationService} />\n ))}\n\n <MarketConsentWrapper\n verificationService={verificationService}\n isErrored={!!fieldValidationErrors.marketConsentValue}\n onChange={(newValue) => {\n updateEmploymentViewModel(\"metadata\", {\n ...verificationService.viewModel.metadata,\n marketConsentValue: newValue,\n });\n updateFieldValidationErrorsByFieldId(\"marketConsentValue\", newValue, verificationService);\n }}\n viewModel={viewModel}\n disabled={getFieldConfigByFieldId(\"marketConsentValue\")?.disabled}\n />\n\n <ExtraMessage suffix=\"CollectAboveSubmit\" />\n\n <PersonalInfoStepSubmitButton\n step={VerificationStepsEnum.collectEmployeePersonalInfo}\n verificationService={verificationService}\n viewModel={viewModel}\n buttonText={\n <FormattedHTMLMessage\n id=\"step.personalInfo.submitButtonText\"\n defaultMessage=\"Verify My Employment Status\"\n />\n }\n />\n </PersonalInfoWrapper>\n );\n};\n\n// TODO remove injectIntl, unused\nexport const StepEmploymentPersonalInfoComponent = injectIntl(StepEmploymentPersonalInfo);\n"],"names":["StepEmploymentPersonalInfo","intl","verificationService","viewModel","fieldValidationErrors","options","getOptions","updateEmploymentViewModel","key","value","nextState","produce","draft","jsxs","PersonalInfoWrapper","jsx","PersonalInfoHeader","ChangeLocaleV2Component","CountryComponentWrapper","_a","getFieldConfigByFieldId","countryChoice","shouldCollectAddressFields","CompanyComponent","_b","choice","updateViewModelOrganization","updateFieldValidationErrorsByFieldId","FirstName","_c","newValue","LastName","_d","AddressComponent","_e","FormattedHTMLMessage","CityComponent","_f","StateSelectComponent","getAvailableStateChoices","stateChoice","stateValue","_g","PostalCodeComponent","_h","Email","event","handleEmailOnKeyDown","_i","PhoneNumber","_j","config","FormFieldCustom","MarketConsentWrapper","_k","ExtraMessage","PersonalInfoStepSubmitButton","VerificationStepsEnum","StepEmploymentPersonalInfoComponent","injectIntl"],"mappings":";;AAkDA,MAAMA,IAA6B,CAAC;AAAA,EAClC,MAAAC;AAAA,EACA,qBAAAC;AACF,MAAgD;;AAC9C,QAAMC,IAAYD,EAAoB,WAChC,EAAE,uBAAAE,MAA0BF,GAC5BG,IAAUC,EAAW,GAErBC,IAA4B,CAACC,GAA4CC,MAAe;AAC5F,UAAMC,IAA6CC;AAAAA,MACjDR;AAAA,MACA,CAACS,MAA2C;AACzC,QAAAA,EAAM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;AAAA,QAEDa,gBAAAA,EAAA;AAAA,UAACsC;AAAAA,UAAA;AAAA,YACC,qBAAAnD;AAAA,YACA,WAAW,CAAC,CAACE,EAAsB;AAAA,YACnC,UAAU,CAAC0B,MAAa;AACtB,cAAAvB,EAA0B,YAAY;AAAA,gBACpC,GAAGL,EAAoB,UAAU;AAAA,gBACjC,oBAAoB4B;AAAA,cAAA,CACrB,GACoCH,EAAA,sBAAsBG,GAAU5B,CAAmB;AAAA,YAC1F;AAAA,YACA,WAAAC;AAAA,YACA,WAAUmD,IAAAlC,EAAwB,oBAAoB,MAA5C,gBAAAkC,EAA+C;AAAA,UAAA;AAAA,QAC3D;AAAA,QAEAvC,gBAAAA,EAAAA,IAACwC,GAAa,EAAA,QAAO,qBAAqB,CAAA;AAAA,QAE1CxC,gBAAAA,EAAA;AAAA,UAACyC;AAAA,UAAA;AAAA,YACC,MAAMC,EAAsB;AAAA,YAC5B,qBAAAvD;AAAA,YACA,WAAAC;AAAA,YACA,YACEY,gBAAAA,EAAA;AAAA,cAACoB;AAAA,cAAA;AAAA,gBACC,IAAG;AAAA,gBACH,gBAAe;AAAA,cAAA;AAAA,YAAA;AAAA,UACjB;AAAA,QAAA;AAAA,MAEJ;AAAA,IAAA;AAAA,EACF;AAEJ,GAGauB,IAAsCC,EAAW3D,CAA0B;"}
1
+ {"version":3,"file":"index-DdQD36Ht.js","sources":["../../src/components/StepEmploymentPersonalInfo/StepEmploymentPersonalInfoComponent.tsx"],"sourcesContent":["/**\n * TODO - preamble\n */\nimport React from \"react\";\nimport { FormattedHTMLMessage, injectIntl } from \"react-intl\";\nimport { produce } from \"immer\";\n\nimport { VerificationStepsEnum } from \"../../lib/types/runtimeTypes\";\nimport {\n VerificationService,\n Organization,\n EmploymentPersonalInfoViewModel,\n CustomFormFieldConfig,\n FormSelectChoice,\n State,\n} from \"../../lib/types/types\";\nimport {\n handleEmailOnKeyDown,\n updateFieldValidationErrorsByFieldId,\n updateViewModelOrganization,\n shouldCollectAddressFields,\n getAvailableStateChoices,\n getFieldConfigByFieldId,\n} from \"../../lib/utils/stepComponentHelpers/stepComponentHelpers\";\n\nimport { PhoneNumberComponent as PhoneNumber } from \"../FormFields/PhoneNumber/PhoneNumberComponent\";\nimport { FirstNameComponent as FirstName } from \"../FormFields/FirstName/FirstNameComponent\";\nimport { LastNameComponent as LastName } from \"../FormFields/LastName/LastNameComponent\";\nimport { EmailComponent as Email } from \"../FormFields/Email/EmailComponent\";\nimport { MarketConsentWrapperComponent as MarketConsentWrapper } from \"../FormFields/MarketConsentWrapper/MarketConsentWrapperComponent\";\nimport { AddressComponent } from \"../FormFields/Address/AddressComponent\";\nimport { CityComponent } from \"../FormFields/City/City\";\nimport { StateSelectComponent } from \"../FormFields/State/StateSelectComponent\";\nimport { CompanyComponent } from \"../FormFields/Company/CompanyComponent\";\nimport { PostalCodeComponent } from \"../FormFields/PostalCode/PostalCodeComponent\";\n\nimport { CountryComponentWrapper } from \"../FormFields/Country/CountryComponentWrapper\";\nimport { getOptions } from \"../../options/options\";\nimport { FormFieldCustom } from \"../FormFields/FormFieldCustom/FormFieldCustom\";\nimport { ExtraMessage } from \"../ExtraMessage\";\nimport { ChangeLocaleV2Component } from \"../FormFields/ChangeLocale/ChangeLocaleComponent\";\nimport { PersonalInfoWrapper } from \"../PersonalInfoStepWrapper/PersonalInfoStepWrapper\";\nimport { PersonalInfoStepSubmitButton } from \"../PersonalInfoStepSubmitButton/PersonalInfoStepSubmitButton\";\nimport { PersonalInfoHeader } from \"../FormHeader/StepHeaders/PersonalInfoHeaderComponent\";\n\ninterface StepEmploymentPersonalInfoComponentProps {\n intl: any;\n verificationService: VerificationService;\n}\n\nconst StepEmploymentPersonalInfo = ({\n intl,\n verificationService,\n}: StepEmploymentPersonalInfoComponentProps) => {\n const viewModel = verificationService.viewModel as EmploymentPersonalInfoViewModel;\n const { fieldValidationErrors } = verificationService;\n const options = getOptions();\n\n const updateEmploymentViewModel = (key: keyof EmploymentPersonalInfoViewModel, value: any) => {\n const nextState: EmploymentPersonalInfoViewModel = produce(\n viewModel,\n (draft: EmploymentPersonalInfoViewModel) => {\n (draft[key] as any) = value;\n },\n );\n verificationService.updateViewModel(nextState);\n };\n\n return (\n <PersonalInfoWrapper\n verificationService={verificationService}\n step={verificationService.verificationResponse.currentStep}\n >\n <PersonalInfoHeader\n verificationService={verificationService}\n classNameIdentifier=\"employment\"\n />\n\n <ChangeLocaleV2Component verificationService={verificationService} />\n <CountryComponentWrapper\n verificationService={verificationService}\n disabled={getFieldConfigByFieldId(\"country\")?.disabled}\n viewModelDraftDecorator={(draft, countryChoice) => {\n const viewModel = draft as EmploymentPersonalInfoViewModel;\n\n viewModel.shouldCollectAddress = shouldCollectAddressFields(\n countryChoice,\n verificationService.programTheme.config.countries,\n );\n if (!viewModel.shouldCollectAddress) {\n viewModel.address1 = \"\";\n viewModel.city = \"\";\n viewModel.state = \"\";\n viewModel.postalCode = \"\";\n viewModel.fieldsToSkipValidation = [\"address1\", \"city\", \"state\", \"postalCode\"];\n } else {\n viewModel.fieldsToSkipValidation = undefined;\n }\n }}\n />\n\n <CompanyComponent\n value={(verificationService.viewModel as EmploymentPersonalInfoViewModel).organization}\n verificationService={verificationService}\n isErrored={!!fieldValidationErrors.organization}\n disabled={getFieldConfigByFieldId(\"organization\")?.disabled}\n onChange={(choice: Organization) => {\n updateViewModelOrganization(choice, verificationService);\n updateFieldValidationErrorsByFieldId(\"organization\", choice, verificationService);\n }}\n />\n\n <div className=\"sid-names\">\n <FirstName\n value={viewModel.firstName}\n isErrored={!!fieldValidationErrors.firstName}\n disabled={getFieldConfigByFieldId(\"firstName\")?.disabled}\n onChange={(newValue) => {\n updateEmploymentViewModel(\"firstName\", newValue);\n updateFieldValidationErrorsByFieldId(\"firstName\", newValue, verificationService);\n }}\n />\n\n <LastName\n value={viewModel.lastName}\n isErrored={!!fieldValidationErrors.lastName}\n disabled={getFieldConfigByFieldId(\"lastName\")?.disabled}\n onChange={(newValue) => {\n updateEmploymentViewModel(\"lastName\", newValue);\n updateFieldValidationErrorsByFieldId(\"lastName\", newValue, verificationService);\n }}\n />\n </div>\n\n {shouldCollectAddressFields(\n viewModel.countryChoice,\n verificationService.programTheme.config.countries,\n ) ? (\n <AddressComponent\n isErrored={!!fieldValidationErrors.address1}\n errorId={fieldValidationErrors.address1}\n onChange={(newValue) => {\n updateEmploymentViewModel(\"address1\", newValue);\n updateFieldValidationErrorsByFieldId(\"address1\", newValue, verificationService);\n }}\n isRequired\n value={viewModel.address1}\n disabled={getFieldConfigByFieldId(\"address1\")?.disabled}\n explanation={\n <FormattedHTMLMessage id=\"addressExplanation\" defaultMessage=\"Use your home address\" />\n }\n />\n ) : null}\n\n {shouldCollectAddressFields(\n viewModel.countryChoice,\n verificationService.programTheme.config.countries,\n ) ? (\n <div className=\"sid-thirds\">\n <CityComponent\n isErrored={!!fieldValidationErrors.city}\n errorId={fieldValidationErrors.city}\n onChange={(newValue) => {\n updateEmploymentViewModel(\"city\", newValue);\n updateFieldValidationErrorsByFieldId(\"city\", newValue, verificationService);\n }}\n value={viewModel.city}\n isRequired\n disabled={getFieldConfigByFieldId(\"city\")?.disabled}\n />\n <StateSelectComponent\n isRequired\n options={getAvailableStateChoices(verificationService.programTheme, intl)}\n value={viewModel.state || undefined}\n isErrored={Boolean(fieldValidationErrors.state)}\n onChange={async (stateChoice: FormSelectChoice<State, string>) => {\n const stateValue = stateChoice ? stateChoice.value : undefined;\n updateEmploymentViewModel(\"state\", stateValue);\n updateFieldValidationErrorsByFieldId(\"state\", stateValue, verificationService);\n }}\n label={<FormattedHTMLMessage id=\"state\" defaultMessage=\"State\" />}\n disabled={getFieldConfigByFieldId(\"state\")?.disabled}\n />\n <PostalCodeComponent\n isErrored={!!fieldValidationErrors.postalCode}\n onChange={(newValue) => {\n updateEmploymentViewModel(\"postalCode\", newValue);\n updateFieldValidationErrorsByFieldId(\"postalCode\", newValue, verificationService);\n }}\n value={viewModel.postalCode}\n disabled={getFieldConfigByFieldId(\"postalCode\")?.disabled}\n />\n </div>\n ) : null}\n\n <Email\n value={viewModel.email}\n isErrored={!!fieldValidationErrors.email}\n explanation={\n <FormattedHTMLMessage\n id=\"emailExplanation\"\n defaultMessage=\"Use your work email if you have one\"\n />\n }\n onChange={(newValue) => {\n updateEmploymentViewModel(\"email\", newValue);\n updateFieldValidationErrorsByFieldId(\"email\", newValue, verificationService);\n }}\n onKeyDown={(event) => handleEmailOnKeyDown(event)}\n disabled={getFieldConfigByFieldId(\"email\")?.disabled}\n />\n {verificationService.programTheme.isSmsNotifierConfigured ||\n verificationService.programTheme.smsLoopEnabled ? (\n <PhoneNumber\n isRequired={!!verificationService.programTheme.smsLoopEnabled}\n value={viewModel.phoneNumber}\n isErrored={!!fieldValidationErrors.phoneNumber}\n onChange={(newValue) => {\n updateEmploymentViewModel(\"phoneNumber\", newValue);\n updateFieldValidationErrorsByFieldId(\"phoneNumber\", newValue, verificationService);\n }}\n selectedCountryCode={viewModel.countryChoice && viewModel.countryChoice.value}\n disabled={getFieldConfigByFieldId(\"phoneNumber\")?.disabled}\n />\n ) : null}\n\n {options.customFormFields.map((config: CustomFormFieldConfig) => (\n <FormFieldCustom config={config} verificationService={verificationService} />\n ))}\n\n <MarketConsentWrapper\n verificationService={verificationService}\n isErrored={!!fieldValidationErrors.marketConsentValue}\n onChange={(newValue) => {\n updateEmploymentViewModel(\"metadata\", {\n ...verificationService.viewModel.metadata,\n marketConsentValue: newValue,\n });\n updateFieldValidationErrorsByFieldId(\"marketConsentValue\", newValue, verificationService);\n }}\n viewModel={viewModel}\n disabled={getFieldConfigByFieldId(\"marketConsentValue\")?.disabled}\n />\n\n <ExtraMessage verificationService={verificationService} suffix=\"CollectAboveSubmit\" />\n\n <PersonalInfoStepSubmitButton\n step={VerificationStepsEnum.collectEmployeePersonalInfo}\n verificationService={verificationService}\n viewModel={viewModel}\n buttonText={\n <FormattedHTMLMessage\n id=\"step.personalInfo.submitButtonText\"\n defaultMessage=\"Verify My Employment Status\"\n />\n }\n />\n </PersonalInfoWrapper>\n );\n};\n\n// TODO remove injectIntl, unused\nexport const StepEmploymentPersonalInfoComponent = injectIntl(StepEmploymentPersonalInfo);\n"],"names":["StepEmploymentPersonalInfo","intl","verificationService","viewModel","fieldValidationErrors","options","getOptions","updateEmploymentViewModel","key","value","nextState","produce","draft","jsxs","PersonalInfoWrapper","jsx","PersonalInfoHeader","ChangeLocaleV2Component","CountryComponentWrapper","_a","getFieldConfigByFieldId","countryChoice","shouldCollectAddressFields","CompanyComponent","_b","choice","updateViewModelOrganization","updateFieldValidationErrorsByFieldId","FirstName","_c","newValue","LastName","_d","AddressComponent","_e","FormattedHTMLMessage","CityComponent","_f","StateSelectComponent","getAvailableStateChoices","stateChoice","stateValue","_g","PostalCodeComponent","_h","Email","event","handleEmailOnKeyDown","_i","PhoneNumber","_j","config","FormFieldCustom","MarketConsentWrapper","_k","ExtraMessage","PersonalInfoStepSubmitButton","VerificationStepsEnum","StepEmploymentPersonalInfoComponent","injectIntl"],"mappings":";AAkDA,MAAMA,IAA6B,CAAC;AAAA,EAClC,MAAAC;AAAA,EACA,qBAAAC;AACF,MAAgD;;AAC9C,QAAMC,IAAYD,EAAoB,WAChC,EAAE,uBAAAE,MAA0BF,GAC5BG,IAAUC,EAAW,GAErBC,IAA4B,CAACC,GAA4CC,MAAe;AAC5F,UAAMC,IAA6CC;AAAAA,MACjDR;AAAA,MACA,CAACS,MAA2C;AACzC,QAAAA,EAAMJ,CAAG,IAAYC;AAAA,MAAA;AAAA,IAE1B;AACA,IAAAP,EAAoB,gBAAgBQ,CAAS;AAAA,EAC/C;AAGE,SAAAG,gBAAAA,EAAA;AAAA,IAACC;AAAA,IAAA;AAAA,MACC,qBAAAZ;AAAA,MACA,MAAMA,EAAoB,qBAAqB;AAAA,MAE/C,UAAA;AAAA,QAAAa,gBAAAA,EAAA;AAAA,UAACC;AAAA,UAAA;AAAA,YACC,qBAAAd;AAAA,YACA,qBAAoB;AAAA,UAAA;AAAA,QACtB;AAAA,Q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AAAlC,EAAwB,oBAAoB,MAA5C,gBAAAkC,EAA+C;AAAA,UAAA;AAAA,QAC3D;AAAA,QAECvC,gBAAAA,EAAAA,IAAAwC,GAAA,EAAa,qBAAArD,GAA0C,QAAO,qBAAqB,CAAA;AAAA,QAEpFa,gBAAAA,EAAA;AAAA,UAACyC;AAAA,UAAA;AAAA,YACC,MAAMC,EAAsB;AAAA,YAC5B,qBAAAvD;AAAA,YACA,WAAAC;AAAA,YACA,YACEY,gBAAAA,EAAA;AAAA,cAACoB;AAAA,cAAA;AAAA,gBACC,IAAG;AAAA,gBACH,gBAAe;AAAA,cAAA;AAAA,YAAA;AAAA,UACjB;AAAA,QAAA;AAAA,MAEJ;AAAA,IAAA;AAAA,EACF;AAEJ,GAGauB,IAAsCC,EAAW3D,CAA0B;"}
@@ -4,161 +4,161 @@
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.128.0-alpha.5
8
- * BUILD_TIMESTAMP: 1758752070211
9
- * BUILD_DATE: Wed Sep 24 2025 22:14:30 GMT+0000 (Coordinated Universal Time)
7
+ * VERSION: 2.128.0-alpha.6
8
+ * BUILD_TIMESTAMP: 1758832482832
9
+ * BUILD_DATE: Thu Sep 25 2025 20:34:42 GMT+0000 (Coordinated Universal Time)
10
10
  * BUILD_COMMIT: 654d7fc1aaba56601eb06bfc20080f48c256040c
11
11
  */
12
- import { h as R, g as t, R as T, j as s, v as k, w as P, P as z, x as q, T as O, U as w, W as B, f as d, y as L, z as W, E as H, e as K, b as j, X as A, Y as G, G as U, H as X, M as Y, I as J, k as Q, V as Z, n as _ } from "../_mysheerid-preview.js";
13
- const $ = ({ verificationService: a }) => {
12
+ import { h as R, g as t, R as T, j as a, v as k, w as P, P as z, x as q, T as O, U as w, W as B, f as n, y as L, z as W, E as H, e as K, b as j, X as A, Y as G, G as U, H as X, M as Y, I as J, k as Q, V as Z, n as _ } from "../_mysheerid-preview.js";
13
+ const $ = ({ verificationService: e }) => {
14
14
  var p, b, u, h, C, i, x, g, M, I, N;
15
- const o = a.viewModel, { fieldValidationErrors: n } = a, r = a.verificationResponse, E = R(r), y = P(), m = (p = t("memberId")) == null ? void 0 : p.requireIfOptional, f = o.localeChoice.value, l = (e, F) => {
15
+ const o = e.viewModel, { fieldValidationErrors: d } = e, r = e.verificationResponse, E = R(r), y = P(), m = (p = t("memberId")) == null ? void 0 : p.requireIfOptional, F = o.localeChoice.value, l = (s, f) => {
16
16
  const V = _(
17
17
  o,
18
18
  (D) => {
19
- D[e] = F;
19
+ D[s] = f;
20
20
  }
21
21
  );
22
- a.updateViewModel(V);
22
+ e.updateViewModel(V);
23
23
  };
24
24
  return T.useEffect(() => {
25
- m ? a.updateViewModel({ fieldsToSkipValidation: [] }, { partial: !0 }) : a.updateViewModel(
25
+ m ? e.updateViewModel({ fieldsToSkipValidation: [] }, { partial: !0 }) : e.updateViewModel(
26
26
  { fieldsToSkipValidation: ["memberId"] },
27
27
  { partial: !0 }
28
28
  );
29
- }, [m]), /* @__PURE__ */ s.jsxs(
29
+ }, [m]), /* @__PURE__ */ a.jsxs(
30
30
  k,
31
31
  {
32
- verificationService: a,
32
+ verificationService: e,
33
33
  step: r.currentStep,
34
34
  children: [
35
- /* @__PURE__ */ s.jsx(
35
+ /* @__PURE__ */ a.jsx(
36
36
  z,
37
37
  {
38
- verificationService: a,
38
+ verificationService: e,
39
39
  classNameIdentifier: "member-personal-info"
40
40
  }
41
41
  ),
42
- /* @__PURE__ */ s.jsx(q, { verificationService: a }),
43
- /* @__PURE__ */ s.jsx(
42
+ /* @__PURE__ */ a.jsx(q, { verificationService: e }),
43
+ /* @__PURE__ */ a.jsx(
44
44
  O,
45
45
  {
46
- verificationService: a,
46
+ verificationService: e,
47
47
  disabled: (b = t("country")) == null ? void 0 : b.disabled
48
48
  }
49
49
  ),
50
- /* @__PURE__ */ s.jsx(
50
+ /* @__PURE__ */ a.jsx(
51
51
  w,
52
52
  {
53
- value: a.viewModel.organization,
54
- verificationService: a,
55
- isErrored: !!n.organization,
53
+ value: e.viewModel.organization,
54
+ verificationService: e,
55
+ isErrored: !!d.organization,
56
56
  disabled: (u = t("organization")) == null ? void 0 : u.disabled,
57
- onChange: (e) => {
58
- B(e, a), d("organization", e, a);
57
+ onChange: (s) => {
58
+ B(s, e), n("organization", s, e);
59
59
  }
60
60
  }
61
61
  ),
62
- /* @__PURE__ */ s.jsxs("div", { className: "sid-names", children: [
63
- /* @__PURE__ */ s.jsx(
62
+ /* @__PURE__ */ a.jsxs("div", { className: "sid-names", children: [
63
+ /* @__PURE__ */ a.jsx(
64
64
  L,
65
65
  {
66
66
  value: o.firstName,
67
- isErrored: !!n.firstName,
67
+ isErrored: !!d.firstName,
68
68
  disabled: (h = t("firstName")) == null ? void 0 : h.disabled,
69
- onChange: (e) => {
70
- l("firstName", e), d("firstName", e, a);
69
+ onChange: (s) => {
70
+ l("firstName", s), n("firstName", s, e);
71
71
  }
72
72
  }
73
73
  ),
74
- /* @__PURE__ */ s.jsx(
74
+ /* @__PURE__ */ a.jsx(
75
75
  W,
76
76
  {
77
77
  value: o.lastName,
78
- isErrored: !!n.lastName,
78
+ isErrored: !!d.lastName,
79
79
  disabled: (C = t("lastName")) == null ? void 0 : C.disabled,
80
- onChange: (e) => {
81
- l("lastName", e), d("lastName", e, a);
80
+ onChange: (s) => {
81
+ l("lastName", s), n("lastName", s, e);
82
82
  }
83
83
  }
84
84
  )
85
85
  ] }),
86
- /* @__PURE__ */ s.jsx(
86
+ /* @__PURE__ */ a.jsx(
87
87
  H,
88
88
  {
89
89
  value: o.email,
90
- isErrored: !!n.email,
91
- explanation: /* @__PURE__ */ s.jsx(j, { id: "emailExplanation", defaultMessage: " " }),
92
- onChange: (e) => {
93
- l("email", e), d("email", e, a);
90
+ isErrored: !!d.email,
91
+ explanation: /* @__PURE__ */ a.jsx(j, { id: "emailExplanation", defaultMessage: " " }),
92
+ onChange: (s) => {
93
+ l("email", s), n("email", s, e);
94
94
  },
95
- onKeyDown: (e) => K(e),
95
+ onKeyDown: (s) => K(s),
96
96
  disabled: (i = t("email")) == null ? void 0 : i.disabled
97
97
  }
98
98
  ),
99
- /* @__PURE__ */ s.jsx(
99
+ /* @__PURE__ */ a.jsx(
100
100
  A,
101
101
  {
102
- errorId: n.birthDate,
103
- locale: f,
102
+ errorId: d.birthDate,
103
+ locale: F,
104
104
  isRequired: (x = t("birthDate")) == null ? void 0 : x.requireIfOptional,
105
- onChange: (e) => {
106
- l("birthDate", e), d("birthDate", e, a);
105
+ onChange: (s) => {
106
+ l("birthDate", s), n("birthDate", s, e);
107
107
  },
108
108
  value: o.birthDate,
109
109
  disabled: (g = t("birthDate")) == null ? void 0 : g.disabled
110
110
  }
111
111
  ),
112
- /* @__PURE__ */ s.jsx(
112
+ /* @__PURE__ */ a.jsx(
113
113
  G,
114
114
  {
115
115
  value: o.memberId,
116
- isErrored: !!n.memberId,
116
+ isErrored: !!d.memberId,
117
117
  isRequired: m,
118
118
  disabled: (M = t("memberId")) == null ? void 0 : M.disabled,
119
- onChange: (e) => {
120
- l("memberId", e), d("memberId", e, a);
119
+ onChange: (s) => {
120
+ l("memberId", s), n("memberId", s, e);
121
121
  }
122
122
  }
123
123
  ),
124
- a.programTheme.isSmsNotifierConfigured || a.programTheme.smsLoopEnabled ? /* @__PURE__ */ s.jsx(
124
+ e.programTheme.isSmsNotifierConfigured || e.programTheme.smsLoopEnabled ? /* @__PURE__ */ a.jsx(
125
125
  U,
126
126
  {
127
- isRequired: !!a.programTheme.smsLoopEnabled,
127
+ isRequired: !!e.programTheme.smsLoopEnabled,
128
128
  value: o.phoneNumber,
129
- isErrored: !!n.phoneNumber,
130
- onChange: (e) => {
131
- l("phoneNumber", e), d("phoneNumber", e, a);
129
+ isErrored: !!d.phoneNumber,
130
+ onChange: (s) => {
131
+ l("phoneNumber", s), n("phoneNumber", s, e);
132
132
  },
133
133
  selectedCountryCode: o.countryChoice && o.countryChoice.value,
134
134
  disabled: (I = t("phoneNumber")) == null ? void 0 : I.disabled
135
135
  }
136
136
  ) : null,
137
- y.customFormFields.map((e) => /* @__PURE__ */ s.jsx(X, { config: e, verificationService: a })),
138
- /* @__PURE__ */ s.jsx(
137
+ y.customFormFields.map((s) => /* @__PURE__ */ a.jsx(X, { config: s, verificationService: e })),
138
+ /* @__PURE__ */ a.jsx(
139
139
  Y,
140
140
  {
141
- verificationService: a,
142
- isErrored: !!n.marketConsentValue,
143
- onChange: (e) => {
141
+ verificationService: e,
142
+ isErrored: !!d.marketConsentValue,
143
+ onChange: (s) => {
144
144
  l("metadata", {
145
- ...a.viewModel.metadata,
146
- marketConsentValue: e
147
- }), d("marketConsentValue", e, a);
145
+ ...e.viewModel.metadata,
146
+ marketConsentValue: s
147
+ }), n("marketConsentValue", s, e);
148
148
  },
149
149
  viewModel: o,
150
150
  disabled: (N = t("marketConsentValue")) == null ? void 0 : N.disabled
151
151
  }
152
152
  ),
153
- /* @__PURE__ */ s.jsx(J, { suffix: "CollectAboveSubmit" }),
154
- /* @__PURE__ */ s.jsx(
153
+ /* @__PURE__ */ a.jsx(J, { verificationService: e, suffix: "CollectAboveSubmit" }),
154
+ /* @__PURE__ */ a.jsx(
155
155
  Q,
156
156
  {
157
157
  step: Z.collectMemberPersonalInfo,
158
- verificationService: a,
158
+ verificationService: e,
159
159
  viewModel: o,
160
160
  failedInstantMatch: E,
161
- buttonText: /* @__PURE__ */ s.jsx(
161
+ buttonText: /* @__PURE__ */ a.jsx(
162
162
  j,
163
163
  {
164
164
  id: "step.personalInfo.submitButtonText",