@sheerid/jslib-nightly 2.121.0-alpha.1 → 2.121.0-alpha.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (258) hide show
  1. package/_mysheerid-preview.css +4 -4
  2. package/_mysheerid-preview.js +387 -367
  3. package/_mysheerid-preview.js.map +1 -1
  4. package/chunk/EmailLoopPending-Dtf0p85F.js +3 -3
  5. package/chunk/EmailLoopPending-Dy8mLFvV.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-CmNwFqjD.js +3 -3
  10. package/chunk/StepIDCheckLoopOnfido-DtbplNxs.js +3 -3
  11. package/chunk/StepIDCheckLoopRegula-RoX971sR.js +3 -3
  12. package/chunk/StepIDCheckLoopRegula-oqf-QxHT.js +3 -3
  13. package/chunk/{StepInactiveMilitaryPersonalInfoComponent-D8OXf0Lu.js → StepInactiveMilitaryPersonalInfoComponent-CTCfr5Y8.js} +4 -4
  14. package/chunk/{StepInactiveMilitaryPersonalInfoComponent-Dwda4ALY.js.map → StepInactiveMilitaryPersonalInfoComponent-CTCfr5Y8.js.map} +1 -1
  15. package/chunk/{StepInactiveMilitaryPersonalInfoComponent-Dwda4ALY.js → StepInactiveMilitaryPersonalInfoComponent-D4veFRlW.js} +4 -4
  16. package/chunk/{StepInactiveMilitaryPersonalInfoComponent-D8OXf0Lu.js.map → StepInactiveMilitaryPersonalInfoComponent-D4veFRlW.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-CwiPRX5T.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-BlLBNTpz.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-DD4NnfK-.js +3 -3
  30. package/chunk/ga-D-rK3PZy.js +3 -3
  31. package/chunk/hi-IN-B1NQdkcj.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-vy_jalCd.js → index-4APUDd8S.js} +4 -4
  36. package/chunk/{index-vy_jalCd.js.map → index-4APUDd8S.js.map} +1 -1
  37. package/chunk/{index-j0xHyveJ.js → index-9OD0Bw98.js} +4 -4
  38. package/chunk/{index-Bwj4nE_v.js.map → index-9OD0Bw98.js.map} +1 -1
  39. package/chunk/index-B-PpnUEO.js +3 -3
  40. package/chunk/index-B8F8N-JM.js +3 -3
  41. package/chunk/index-B8KPM--K.js +3 -3
  42. package/chunk/index-BD2bjH-C.js +3 -3
  43. package/chunk/index-BD_a0MZT.js +3 -3
  44. package/chunk/index-BDrKYann.js +182 -0
  45. package/chunk/index-BDrKYann.js.map +1 -0
  46. package/chunk/index-BORxVuto.js +3 -3
  47. package/chunk/index-BTMETMEE.js +3 -3
  48. package/chunk/index-Bi9QXN5x.js +3 -3
  49. package/chunk/{index-CbyO6gUK.js → index-Bmq6cJ3F.js} +4 -4
  50. package/chunk/{index--dYu91RK.js.map → index-Bmq6cJ3F.js.map} +1 -1
  51. package/chunk/index-BpZoH-Wz.js +3 -3
  52. package/chunk/{index-Bb8-qcHi.js → index-BuX76GyE.js} +4 -4
  53. package/chunk/{index-BVQdKC8x.js.map → index-BuX76GyE.js.map} +1 -1
  54. package/chunk/index-C2h0Wj84.js +3 -3
  55. package/chunk/{index-Bfjzcj7g.js → index-C8MQD8EK.js} +4 -4
  56. package/chunk/{index-Bfjzcj7g.js.map → index-C8MQD8EK.js.map} +1 -1
  57. package/chunk/index-C8u9IJUa.js +3 -3
  58. package/chunk/{index--dYu91RK.js → index-C96ntS0u.js} +4 -4
  59. package/chunk/{index-CbyO6gUK.js.map → index-C96ntS0u.js.map} +1 -1
  60. package/chunk/index-CHK5i4jj.js +3 -3
  61. package/chunk/index-CTb96lOK.js +3 -3
  62. package/chunk/index-CU0rkVHP.js +3 -3
  63. package/chunk/index-CcRowarb.js +3 -3
  64. package/chunk/index-CeHu2Npu.js +3 -3
  65. package/chunk/index-DIkWpujR.js +3 -3
  66. package/chunk/{index-Bwj4nE_v.js → index-DKWjcFJK.js} +4 -4
  67. package/chunk/{index-j0xHyveJ.js.map → index-DKWjcFJK.js.map} +1 -1
  68. package/chunk/index-DLz31Fzh.js +3 -3
  69. package/chunk/{index-BVQdKC8x.js → index-DO5Z3e-E.js} +4 -4
  70. package/chunk/{index-Bb8-qcHi.js.map → index-DO5Z3e-E.js.map} +1 -1
  71. package/chunk/index-DRlGAW07.js +3 -3
  72. package/chunk/index-DVynViqA.js +3 -3
  73. package/chunk/index-D_9J6arc.js +3 -3
  74. package/chunk/index-Dg8t7-dm.js +3 -3
  75. package/chunk/index-DhGg9lvf.js +186 -0
  76. package/chunk/index-DhGg9lvf.js.map +1 -0
  77. package/chunk/index-DsgCNIS5.js +3 -3
  78. package/chunk/{index-ZwQAXML1.js → index-DvQoVn8P.js} +4 -4
  79. package/chunk/{index-JZ74-iZZ.js.map → index-DvQoVn8P.js.map} +1 -1
  80. package/chunk/index-DzqRsB7_.js +3 -3
  81. package/chunk/index-FjzhfDlx.js +3 -3
  82. package/chunk/index-Gfy-1H7s.js +3 -3
  83. package/chunk/{index-JZ74-iZZ.js → index-YSVzGeq_.js} +4 -4
  84. package/chunk/{index-ZwQAXML1.js.map → index-YSVzGeq_.js.map} +1 -1
  85. package/chunk/index-_t8SsXjy.js +3 -3
  86. package/chunk/is-BFoDLV-f.js +3 -3
  87. package/chunk/it-B_iK-eSd.js +3 -3
  88. package/chunk/iw-DL48t5mZ.js +3 -3
  89. package/chunk/ja-C5bG2SRl.js +3 -3
  90. package/chunk/ko-CmmVl873.js +3 -3
  91. package/chunk/lo-DvBsVm-4.js +3 -3
  92. package/chunk/lt-DWoqI4gx.js +3 -3
  93. package/chunk/ms-BCHBEoqA.js +3 -3
  94. package/chunk/nl-BE-DLixID0q.js +3 -3
  95. package/chunk/nl-CeBqOv0i.js +3 -3
  96. package/chunk/no-BR2xqD23.js +3 -3
  97. package/chunk/pl-Dl77tRgW.js +3 -3
  98. package/chunk/pt-BR--SxHOWht.js +3 -3
  99. package/chunk/pt-D0bmI49-.js +3 -3
  100. package/chunk/ro-HCkS3amY.js +3 -3
  101. package/chunk/ru-BDMi1lvr.js +3 -3
  102. package/chunk/sk-C4zNHeM6.js +3 -3
  103. package/chunk/sl-BbQVw1S0.js +3 -3
  104. package/chunk/sr-8d4sC8Hd.js +3 -3
  105. package/chunk/sv-B0-e7r_0.js +3 -3
  106. package/chunk/sw-Bo9F25Vc.js +3 -3
  107. package/chunk/th-DDuVbwLh.js +3 -3
  108. package/chunk/tr-CUwkgj2T.js +3 -3
  109. package/chunk/uk-BPrGA4MJ.js +3 -3
  110. package/chunk/ur-CIgS3emx.js +3 -3
  111. package/chunk/useCollectFieldsEndpoint-C5fsaYJe.js +3 -3
  112. package/chunk/useCollectFieldsEndpoint-kmLFyUA-.js +3 -3
  113. package/chunk/useEmailFirstExperiment-BbDrKQEs.js +3 -3
  114. package/chunk/useEmailFirstExperiment-CgU-itQI.js +3 -3
  115. package/chunk/vi-JbWizd9m.js +3 -3
  116. package/chunk/zh-DjbXrser.js +3 -3
  117. package/chunk/zh-HK-DXcspp2Y.js +3 -3
  118. package/chunk/zu-BzwZfIDF.js +3 -3
  119. package/es6.css +4 -4
  120. package/jslib.js +4 -4
  121. package/lib/{EmailLoopPending-dhGN-Z77.js → EmailLoopPending-B9dUBtoZ.js} +4 -4
  122. package/lib/{EmailLoopPending-dhGN-Z77.js.map → EmailLoopPending-B9dUBtoZ.js.map} +1 -1
  123. package/lib/{LicensedProfessionalOrganizationComponent-BMyQWD6n.js → LicensedProfessionalOrganizationComponent-ClJIe1Ux.js} +4 -4
  124. package/lib/{LicensedProfessionalOrganizationComponent-BMyQWD6n.js.map → LicensedProfessionalOrganizationComponent-ClJIe1Ux.js.map} +1 -1
  125. package/lib/Onfido-AyvUk6wg.js +3 -3
  126. package/lib/StepCollectMilitaryStatusComponent-Cre33r_T.js +11 -0
  127. package/lib/{StepCollectMilitaryStatusComponent-DdNPIrbt.js.map → StepCollectMilitaryStatusComponent-Cre33r_T.js.map} +1 -1
  128. package/lib/{StepIDCheckLoopOnfido-C5tmJcqh.js → StepIDCheckLoopOnfido-ngOf5-Xx.js} +4 -4
  129. package/lib/{StepIDCheckLoopOnfido-C5tmJcqh.js.map → StepIDCheckLoopOnfido-ngOf5-Xx.js.map} +1 -1
  130. package/lib/{StepIDCheckLoopRegula-CR4QPRiX.js → StepIDCheckLoopRegula-Bb2wOdiz.js} +4 -4
  131. package/lib/{StepIDCheckLoopRegula-CR4QPRiX.js.map → StepIDCheckLoopRegula-Bb2wOdiz.js.map} +1 -1
  132. package/lib/{StepInactiveMilitaryPersonalInfoComponent-BNK7PaTB.js → StepInactiveMilitaryPersonalInfoComponent-AXrIpJyj.js} +11 -11
  133. package/lib/{StepInactiveMilitaryPersonalInfoComponent-BNK7PaTB.js.map → StepInactiveMilitaryPersonalInfoComponent-AXrIpJyj.js.map} +1 -1
  134. package/lib/{VerificationApiUtils-wcCsLmma.js → VerificationApiUtils-B20QqDjD.js} +4 -4
  135. package/lib/{VerificationApiUtils-wcCsLmma.js.map → VerificationApiUtils-B20QqDjD.js.map} +1 -1
  136. package/lib/ar--TDb5qE5.js +3 -3
  137. package/lib/bg-D3cL-ciP.js +3 -3
  138. package/lib/bn-IN-CwiPRX5T.js +3 -3
  139. package/lib/cs-7pQwm9YC.js +3 -3
  140. package/lib/da-C2xASa_G.js +3 -3
  141. package/lib/de-D4nlAbMa.js +3 -3
  142. package/lib/el-C-PZe5CV.js +3 -3
  143. package/lib/en-GB-DXa6bdA_.js +3 -3
  144. package/lib/es-BlLBNTpz.js +3 -3
  145. package/lib/es-ES-inNoG-F1.js +3 -3
  146. package/lib/{es6-BpT9St5X.js → es6-BVEB0OmM.js} +408 -388
  147. package/lib/{es6-BpT9St5X.js.map → es6-BVEB0OmM.js.map} +1 -1
  148. package/lib/fi-CcolQnAY.js +3 -3
  149. package/lib/fr-BjHvlhn5.js +3 -3
  150. package/lib/fr-CA-DD4NnfK-.js +3 -3
  151. package/lib/ga-D-rK3PZy.js +3 -3
  152. package/lib/hi-IN-B1NQdkcj.js +3 -3
  153. package/lib/hr-CwvyeMFM.js +3 -3
  154. package/lib/hu-BCZWPgvf.js +3 -3
  155. package/lib/id-CRNXXELT.js +3 -3
  156. package/lib/{index-TQRWS3PQ.js → index-4ThRXxxC.js} +4 -4
  157. package/lib/{index-TQRWS3PQ.js.map → index-4ThRXxxC.js.map} +1 -1
  158. package/lib/{index-B8BGLhnE.js → index-B1Z54XFZ.js} +6 -6
  159. package/lib/{index-B8BGLhnE.js.map → index-B1Z54XFZ.js.map} +1 -1
  160. package/lib/{index-CBnC1N7w.js → index-B54sZItl.js} +4 -4
  161. package/lib/{index-CBnC1N7w.js.map → index-B54sZItl.js.map} +1 -1
  162. package/lib/{index-C4fxtLKf.js → index-BAh1m0N5.js} +4 -4
  163. package/lib/{index-C4fxtLKf.js.map → index-BAh1m0N5.js.map} +1 -1
  164. package/lib/{index-BJ8zkkLO.js → index-BDIO_TGG.js} +4 -4
  165. package/lib/{index-BJ8zkkLO.js.map → index-BDIO_TGG.js.map} +1 -1
  166. package/lib/index-BWoAXq5x.js +11 -0
  167. package/lib/index-BWoAXq5x.js.map +1 -0
  168. package/lib/{index-V3uzIW9K.js → index-BexytaSe.js} +5 -5
  169. package/lib/{index-V3uzIW9K.js.map → index-BexytaSe.js.map} +1 -1
  170. package/lib/{index-SOMtJBRq.js → index-C3NMriHe.js} +4 -4
  171. package/lib/{index-SOMtJBRq.js.map → index-C3NMriHe.js.map} +1 -1
  172. package/lib/{index-CtNFLjIw.js → index-C7HriM7I.js} +5 -5
  173. package/lib/{index-CtNFLjIw.js.map → index-C7HriM7I.js.map} +1 -1
  174. package/lib/{index-CaKrD30S.js → index-C9AZZgWj.js} +4 -4
  175. package/lib/{index-CaKrD30S.js.map → index-C9AZZgWj.js.map} +1 -1
  176. package/lib/{index-BMflxsN8.js → index-CCBoCEoA.js} +5 -5
  177. package/lib/{index-BMflxsN8.js.map → index-CCBoCEoA.js.map} +1 -1
  178. package/lib/{index-B341hf1b.js → index-CDlnxiMK.js} +8 -8
  179. package/lib/{index-B341hf1b.js.map → index-CDlnxiMK.js.map} +1 -1
  180. package/lib/index-CFbwTZCk.js +11 -0
  181. package/lib/index-CFbwTZCk.js.map +1 -0
  182. package/lib/index-CMHAiHkx.js +11 -0
  183. package/lib/index-CMHAiHkx.js.map +1 -0
  184. package/lib/{index-BOuy0Das.js → index-Cul2jiYE.js} +4 -4
  185. package/lib/{index-BOuy0Das.js.map → index-Cul2jiYE.js.map} +1 -1
  186. package/lib/{index-LaQxGNP4.js → index-DE45lEIz.js} +9 -9
  187. package/lib/{index-LaQxGNP4.js.map → index-DE45lEIz.js.map} +1 -1
  188. package/lib/index-DIkWpujR.js +3 -3
  189. package/lib/{index-C7Pwk3OQ.js → index-DMv6rKId.js} +5 -5
  190. package/lib/{index-C7Pwk3OQ.js.map → index-DMv6rKId.js.map} +1 -1
  191. package/lib/{index-DrlR-TWK.js → index-DTaiMRy5.js} +7 -7
  192. package/lib/{index-DrlR-TWK.js.map → index-DTaiMRy5.js.map} +1 -1
  193. package/lib/index-DZG2wC0t.js +11 -0
  194. package/lib/index-DZG2wC0t.js.map +1 -0
  195. package/lib/{index-D1hSOsdT.js → index-Do4REAbj.js} +4 -4
  196. package/lib/{index-D1hSOsdT.js.map → index-Do4REAbj.js.map} +1 -1
  197. package/lib/{index-DJ01tBj4.js → index-DwpXKtlG.js} +5 -5
  198. package/lib/{index-DJ01tBj4.js.map → index-DwpXKtlG.js.map} +1 -1
  199. package/lib/{index-CvGLoFsW.js → index-PIPvR0_T.js} +4 -4
  200. package/lib/{index-CvGLoFsW.js.map → index-PIPvR0_T.js.map} +1 -1
  201. package/lib/index-wdm7VTGN.js +184 -0
  202. package/lib/index-wdm7VTGN.js.map +1 -0
  203. package/lib/is-BFoDLV-f.js +3 -3
  204. package/lib/it-B_iK-eSd.js +3 -3
  205. package/lib/iw-DL48t5mZ.js +3 -3
  206. package/lib/ja-C5bG2SRl.js +3 -3
  207. package/lib/ko-CmmVl873.js +3 -3
  208. package/lib/lo-DvBsVm-4.js +3 -3
  209. package/lib/lt-DWoqI4gx.js +3 -3
  210. package/lib/ms-BCHBEoqA.js +3 -3
  211. package/lib/nl-BE-DLixID0q.js +3 -3
  212. package/lib/nl-CeBqOv0i.js +3 -3
  213. package/lib/no-BR2xqD23.js +3 -3
  214. package/lib/pl-Dl77tRgW.js +3 -3
  215. package/lib/pt-BR--SxHOWht.js +3 -3
  216. package/lib/pt-D0bmI49-.js +3 -3
  217. package/lib/ro-HCkS3amY.js +3 -3
  218. package/lib/ru-BDMi1lvr.js +3 -3
  219. package/lib/sk-C4zNHeM6.js +3 -3
  220. package/lib/sl-BbQVw1S0.js +3 -3
  221. package/lib/sr-8d4sC8Hd.js +3 -3
  222. package/lib/sv-B0-e7r_0.js +3 -3
  223. package/lib/sw-Bo9F25Vc.js +3 -3
  224. package/lib/th-DDuVbwLh.js +3 -3
  225. package/lib/tr-CUwkgj2T.js +3 -3
  226. package/lib/uk-BPrGA4MJ.js +3 -3
  227. package/lib/ur-CIgS3emx.js +3 -3
  228. package/lib/{useCollectFieldsEndpoint-k_TbEEZ5.js → useCollectFieldsEndpoint-Do7iWmwg.js} +5 -5
  229. package/lib/{useCollectFieldsEndpoint-k_TbEEZ5.js.map → useCollectFieldsEndpoint-Do7iWmwg.js.map} +1 -1
  230. package/lib/{useEmailFirstExperiment-DzxkyCiX.js → useEmailFirstExperiment-ZGzYFj1g.js} +4 -4
  231. package/lib/{useEmailFirstExperiment-DzxkyCiX.js.map → useEmailFirstExperiment-ZGzYFj1g.js.map} +1 -1
  232. package/lib/vi-JbWizd9m.js +3 -3
  233. package/lib/zh-DjbXrser.js +3 -3
  234. package/lib/zh-HK-DXcspp2Y.js +3 -3
  235. package/lib/zu-BzwZfIDF.js +3 -3
  236. package/package.json +1 -1
  237. package/sheerid-install.css +3 -3
  238. package/sheerid-install.js +4 -4
  239. package/sheerid.css +4 -4
  240. package/sheerid.js +387 -367
  241. package/sheerid.js.map +1 -1
  242. package/src/components/FormInputs/Typeahead/TypeaheadClearButton/TypeaheadClearButtonComponent.d.ts +5 -2
  243. package/types-reference.zip +0 -0
  244. package/chunk/index-BZHyRleL.js +0 -193
  245. package/chunk/index-BZHyRleL.js.map +0 -1
  246. package/chunk/index-CHicl-ag.js +0 -189
  247. package/chunk/index-CHicl-ag.js.map +0 -1
  248. package/lib/StepCollectMilitaryStatusComponent-DdNPIrbt.js +0 -11
  249. package/lib/index-B9sss0ph.js +0 -11
  250. package/lib/index-B9sss0ph.js.map +0 -1
  251. package/lib/index-BsQFqKYo.js +0 -191
  252. package/lib/index-BsQFqKYo.js.map +0 -1
  253. package/lib/index-Dc-WpfHG.js +0 -11
  254. package/lib/index-Dc-WpfHG.js.map +0 -1
  255. package/lib/index-Df4a3Zrj.js +0 -11
  256. package/lib/index-Df4a3Zrj.js.map +0 -1
  257. package/lib/index-Dnz7kL_i.js +0 -11
  258. package/lib/index-Dnz7kL_i.js.map +0 -1
@@ -1,8 +1,11 @@
1
1
  import { default as React } from 'react';
2
2
 
3
3
  interface TypeaheadClearButtonProps {
4
- onMouseDown: () => void;
4
+ id: string;
5
+ onMouseDown: (event: React.MouseEvent<HTMLButtonElement>) => void;
6
+ onKeyDown: (event: React.KeyboardEvent<HTMLButtonElement>) => void;
7
+ handleOnBlur: (event: React.FocusEvent<HTMLButtonElement>) => void;
5
8
  disabled?: boolean;
6
9
  }
7
- export declare const TypeaheadClearButtonComponent: ({ onMouseDown, disabled }: TypeaheadClearButtonProps) => React.JSX.Element;
10
+ export declare const TypeaheadClearButtonComponent: ({ id, onMouseDown, disabled, onKeyDown, handleOnBlur, }: TypeaheadClearButtonProps) => React.JSX.Element;
8
11
  export {};
Binary file
@@ -1,193 +0,0 @@
1
-
2
- /**
3
- * WARNING: This file is intended to be used within MySheerID.
4
- * This file is not intended for use in other contexts and there are no guarantees about its behavior outside of MySheerID.
5
- */
6
- /**
7
- * VERSION: 2.121.0-alpha.1
8
- * BUILD_TIMESTAMP: 1753455739330
9
- * BUILD_DATE: Fri Jul 25 2025 15:02:19 GMT+0000 (Coordinated Universal Time)
10
- * BUILD_COMMIT: 091dfb82603775b7de0bf8cf799f963fc4950e98
11
- */
12
- import { i as A, h as T, _ as k, $ as q, d as B, R as w, u as d, j as a, t as L, v as W, P as H, w as U, Q as K, g as l, a0 as O, x as z, y as G, W as Q, a1 as _, z as $, B as J, E as X, e as Y, D as Z, G as S, M as v, H as ee, f as se, V as oe, b as ae, a2 as te } from "../_mysheerid-preview.js";
13
- import { u as de } from "./useCollectFieldsEndpoint-C5fsaYJe.js";
14
- const ne = ({ verificationService: s, intl: E }) => {
15
- var h, i, b, g, y, N, x, c, j;
16
- const o = s.viewModel, { fieldValidationErrors: t } = s, m = s.verificationResponse, I = T(m), f = k(
17
- s.programTheme,
18
- E
19
- ), F = q(f), u = B(() => o.countryChoice.value, F.value), M = u === "US" ? [{ key: "postalCode" }] : [], D = u !== "US" || s.programTheme.isSmsNotifierConfigured || s.programTheme.smsLoopEnabled, P = u !== "US" || s.programTheme.smsLoopEnabled, R = o.localeChoice.value, V = W();
20
- !t.phoneNumber && m.errorIds && m.errorIds.includes("invalidPhoneNumber") && s.updateFieldValidationErrors({
21
- ...t,
22
- phoneNumber: "invalidPhoneNumber"
23
- });
24
- const n = (e, C) => {
25
- const r = te(o, e, C);
26
- s.updateViewModel(r);
27
- }, { isFieldRequired: p } = de({
28
- verificationId: m.verificationId,
29
- currentStep: m.currentStep,
30
- viewModel: o,
31
- defaultRequiredFields: M
32
- });
33
- return w.useEffect(() => {
34
- d("phoneNumber", o.phoneNumber, s);
35
- }, [o.country]), /* @__PURE__ */ a.jsxs(
36
- L,
37
- {
38
- verificationService: s,
39
- step: m.currentStep,
40
- children: [
41
- /* @__PURE__ */ a.jsx(H, { verificationService: s, classNameIdentifier: "age" }),
42
- /* @__PURE__ */ a.jsx(U, { verificationService: s }),
43
- /* @__PURE__ */ a.jsx(
44
- K,
45
- {
46
- verificationService: s,
47
- disabled: (h = l("country")) == null ? void 0 : h.disabled,
48
- viewModelDraftDecorator: (e, C) => {
49
- const r = e;
50
- O(
51
- C,
52
- s.programTheme.config.countries
53
- ) ? r.fieldsToSkipValidation = void 0 : (r.address1 = "", r.city = "", r.postalCode = "", r.fieldsToSkipValidation = ["address1", "city", "state", "postalCode"]);
54
- }
55
- }
56
- ),
57
- /* @__PURE__ */ a.jsxs("div", { className: "sid-names", children: [
58
- /* @__PURE__ */ a.jsx(
59
- z,
60
- {
61
- value: o.firstName,
62
- isErrored: !!t.firstName,
63
- disabled: (i = l("firstName")) == null ? void 0 : i.disabled,
64
- onChange: (e) => {
65
- n("firstName", e), d("firstName", e, s);
66
- }
67
- }
68
- ),
69
- /* @__PURE__ */ a.jsx(
70
- G,
71
- {
72
- value: o.lastName,
73
- isErrored: !!t.lastName,
74
- disabled: (b = l("lastName")) == null ? void 0 : b.disabled,
75
- onChange: (e) => {
76
- n("lastName", e), d("lastName", e, s);
77
- }
78
- }
79
- )
80
- ] }),
81
- /* @__PURE__ */ a.jsx(
82
- Q,
83
- {
84
- errorId: t.birthDate,
85
- locale: R,
86
- onChange: (e) => {
87
- n("birthDate", e), d("birthDate", e, s);
88
- },
89
- value: o.birthDate,
90
- disabled: (g = l("birthDate")) == null ? void 0 : g.disabled
91
- }
92
- ),
93
- p("city") && /* @__PURE__ */ a.jsx(
94
- _,
95
- {
96
- value: o.city,
97
- isRequired: !0,
98
- isErrored: !!t.city,
99
- errorId: t.city,
100
- disabled: (y = l("city")) == null ? void 0 : y.disabled,
101
- onChange: (e) => {
102
- n("city", e), d("city", e, s);
103
- }
104
- }
105
- ),
106
- p("address1") && /* @__PURE__ */ a.jsx(
107
- $,
108
- {
109
- value: o.address1,
110
- isRequired: !0,
111
- isErrored: !!t.address1,
112
- errorId: t.address1,
113
- onChange: (e) => {
114
- n("address1", e), d("address1", e, s);
115
- }
116
- }
117
- ),
118
- p("postalCode") && /* @__PURE__ */ a.jsx(
119
- J,
120
- {
121
- isErrored: !!t.postalCode,
122
- onChange: (e) => {
123
- n("postalCode", e), d("postalCode", e, s);
124
- },
125
- value: o.postalCode,
126
- disabled: (N = l("postalCode")) == null ? void 0 : N.disabled
127
- }
128
- ),
129
- /* @__PURE__ */ a.jsx(
130
- X,
131
- {
132
- value: o.email,
133
- isErrored: !!t.email,
134
- onChange: (e) => {
135
- n("email", e), d("email", e, s);
136
- },
137
- onKeyDown: (e) => Y(e),
138
- disabled: (x = l("email")) == null ? void 0 : x.disabled
139
- }
140
- ),
141
- D ? /* @__PURE__ */ a.jsx(
142
- Z,
143
- {
144
- isRequired: P,
145
- value: o.phoneNumber,
146
- isErrored: !!t.phoneNumber,
147
- onChange: (e) => {
148
- n("phoneNumber", e), d("phoneNumber", e, s);
149
- },
150
- selectedCountryCode: o.countryChoice && o.countryChoice.value,
151
- disabled: (c = l("phoneNumber")) == null ? void 0 : c.disabled
152
- }
153
- ) : null,
154
- V.customFormFields.map((e) => /* @__PURE__ */ a.jsx(S, { config: e, verificationService: s })),
155
- /* @__PURE__ */ a.jsx(
156
- v,
157
- {
158
- verificationService: s,
159
- isErrored: !!t.marketConsentValue,
160
- onChange: (e) => {
161
- n("metadata", {
162
- ...s.viewModel.metadata,
163
- marketConsentValue: e
164
- }), d("marketConsentValue", e, s);
165
- },
166
- viewModel: o,
167
- disabled: (j = l("marketConsentValue")) == null ? void 0 : j.disabled
168
- }
169
- ),
170
- /* @__PURE__ */ a.jsx(ee, { verificationService: s, suffix: "CollectAboveSubmit" }),
171
- /* @__PURE__ */ a.jsx(
172
- se,
173
- {
174
- step: oe.collectAgePersonalInfo,
175
- verificationService: s,
176
- viewModel: o,
177
- failedInstantMatch: I,
178
- buttonText: /* @__PURE__ */ a.jsx(
179
- ae,
180
- {
181
- id: "step.personalInfo.submitButtonText",
182
- defaultMessage: "Verify and continue"
183
- }
184
- )
185
- }
186
- )
187
- ]
188
- }
189
- );
190
- }, ue = A(ne);
191
- export {
192
- ue as default
193
- };
@@ -1 +0,0 @@
1
- {"version":3,"file":"index-BZHyRleL.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 shouldCollectAddressFields,\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 viewModelDraftDecorator={(draft, countryChoice) => {\n const draftViewModel = draft as AgePersonalInfoViewModel;\n\n const shouldCollectAddress = shouldCollectAddressFields(\n countryChoice,\n verificationService.programTheme.config.countries,\n );\n if (!shouldCollectAddress) {\n draftViewModel.address1 = \"\";\n draftViewModel.city = \"\";\n draftViewModel.postalCode = \"\";\n draftViewModel.fieldsToSkipValidation = [\"address1\", \"city\", \"state\", \"postalCode\"];\n } else {\n draftViewModel.fieldsToSkipValidation = undefined;\n }\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 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","draft","countryChoice","draftViewModel","shouldCollectAddressFields","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":";;AAsDA,MAAMA,KAAsB,CAAC,EAAE,qBAAAC,GAAqB,MAAAC,QAA8C;;AAChG,QAAMC,IAAYF,EAAoB,WAChC,EAAE,uBAAAG,MAA0BH,GAC5BI,IAAuBJ,EAAoB,sBAC3CK,IAAqBC,EAAsBF,CAAoB,GAC/DG,IAAsDC;AAAA,IAC1DR,EAAoB;AAAA,IACpBC;AAAA,EACF,GACMQ,IACJC,EAAwBH,CAAc,GAClCI,IAAmBC,EAAQ,MAAMV,EAAU,cAAc,OAAOO,EAAqB,KAAK,GAC1FI,IACJF,MAAqB,OAAO,CAAC,EAAE,KAAK,aAAc,CAAA,IAAI,CAAC,GAGnDG,IACJH,MAAqB,QACrBX,EAAoB,aAAa,2BACjCA,EAAoB,aAAa,gBAC7Be,IACJJ,MAAqB,QAAQX,EAAoB,aAAa,gBAE1DgB,IAASd,EAAU,aAAa,OAChCe,IAAUC,EAAW;AAGzB,EAAA,CAACf,EAAsB,eACvBC,EAAqB,YACrBA,EAAqB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ACH,gBAAe;AAAA,cAAA;AAAA,YAAA;AAAA,UACjB;AAAA,QAAA;AAAA,MAEJ;AAAA,IAAA;AAAA,EACF;AAEJ,GAEaC,KAA+BC,EAAWpE,EAAmB;"}
@@ -1,189 +0,0 @@
1
-
2
- /**
3
- * VERSION: 2.121.0-alpha.1
4
- * BUILD_TIMESTAMP: 1753455686037
5
- * BUILD_DATE: Fri Jul 25 2025 15:01:26 GMT+0000 (Coordinated Universal Time)
6
- * BUILD_COMMIT: 091dfb82603775b7de0bf8cf799f963fc4950e98
7
- */
8
- import { i as A, h as T, _ as k, $ as q, d as B, R as w, u as d, j as a, t as L, v as W, P as H, w as U, Q as K, g as l, a0 as O, x as z, y as G, W as Q, a1 as _, z as $, B as J, E as X, e as Y, D as Z, G as S, M as v, H as ee, f as se, V as oe, b as ae, a2 as te } from "../sheerid.js";
9
- import { u as de } from "./useCollectFieldsEndpoint-kmLFyUA-.js";
10
- const ne = ({ verificationService: s, intl: E }) => {
11
- var h, i, b, g, y, N, x, c, j;
12
- const o = s.viewModel, { fieldValidationErrors: t } = s, m = s.verificationResponse, I = T(m), f = k(
13
- s.programTheme,
14
- E
15
- ), F = q(f), u = B(() => o.countryChoice.value, F.value), M = u === "US" ? [{ key: "postalCode" }] : [], D = u !== "US" || s.programTheme.isSmsNotifierConfigured || s.programTheme.smsLoopEnabled, P = u !== "US" || s.programTheme.smsLoopEnabled, R = o.localeChoice.value, V = W();
16
- !t.phoneNumber && m.errorIds && m.errorIds.includes("invalidPhoneNumber") && s.updateFieldValidationErrors({
17
- ...t,
18
- phoneNumber: "invalidPhoneNumber"
19
- });
20
- const n = (e, C) => {
21
- const r = te(o, e, C);
22
- s.updateViewModel(r);
23
- }, { isFieldRequired: p } = de({
24
- verificationId: m.verificationId,
25
- currentStep: m.currentStep,
26
- viewModel: o,
27
- defaultRequiredFields: M
28
- });
29
- return w.useEffect(() => {
30
- d("phoneNumber", o.phoneNumber, s);
31
- }, [o.country]), /* @__PURE__ */ a.jsxs(
32
- L,
33
- {
34
- verificationService: s,
35
- step: m.currentStep,
36
- children: [
37
- /* @__PURE__ */ a.jsx(H, { verificationService: s, classNameIdentifier: "age" }),
38
- /* @__PURE__ */ a.jsx(U, { verificationService: s }),
39
- /* @__PURE__ */ a.jsx(
40
- K,
41
- {
42
- verificationService: s,
43
- disabled: (h = l("country")) == null ? void 0 : h.disabled,
44
- viewModelDraftDecorator: (e, C) => {
45
- const r = e;
46
- O(
47
- C,
48
- s.programTheme.config.countries
49
- ) ? r.fieldsToSkipValidation = void 0 : (r.address1 = "", r.city = "", r.postalCode = "", r.fieldsToSkipValidation = ["address1", "city", "state", "postalCode"]);
50
- }
51
- }
52
- ),
53
- /* @__PURE__ */ a.jsxs("div", { className: "sid-names", children: [
54
- /* @__PURE__ */ a.jsx(
55
- z,
56
- {
57
- value: o.firstName,
58
- isErrored: !!t.firstName,
59
- disabled: (i = l("firstName")) == null ? void 0 : i.disabled,
60
- onChange: (e) => {
61
- n("firstName", e), d("firstName", e, s);
62
- }
63
- }
64
- ),
65
- /* @__PURE__ */ a.jsx(
66
- G,
67
- {
68
- value: o.lastName,
69
- isErrored: !!t.lastName,
70
- disabled: (b = l("lastName")) == null ? void 0 : b.disabled,
71
- onChange: (e) => {
72
- n("lastName", e), d("lastName", e, s);
73
- }
74
- }
75
- )
76
- ] }),
77
- /* @__PURE__ */ a.jsx(
78
- Q,
79
- {
80
- errorId: t.birthDate,
81
- locale: R,
82
- onChange: (e) => {
83
- n("birthDate", e), d("birthDate", e, s);
84
- },
85
- value: o.birthDate,
86
- disabled: (g = l("birthDate")) == null ? void 0 : g.disabled
87
- }
88
- ),
89
- p("city") && /* @__PURE__ */ a.jsx(
90
- _,
91
- {
92
- value: o.city,
93
- isRequired: !0,
94
- isErrored: !!t.city,
95
- errorId: t.city,
96
- disabled: (y = l("city")) == null ? void 0 : y.disabled,
97
- onChange: (e) => {
98
- n("city", e), d("city", e, s);
99
- }
100
- }
101
- ),
102
- p("address1") && /* @__PURE__ */ a.jsx(
103
- $,
104
- {
105
- value: o.address1,
106
- isRequired: !0,
107
- isErrored: !!t.address1,
108
- errorId: t.address1,
109
- onChange: (e) => {
110
- n("address1", e), d("address1", e, s);
111
- }
112
- }
113
- ),
114
- p("postalCode") && /* @__PURE__ */ a.jsx(
115
- J,
116
- {
117
- isErrored: !!t.postalCode,
118
- onChange: (e) => {
119
- n("postalCode", e), d("postalCode", e, s);
120
- },
121
- value: o.postalCode,
122
- disabled: (N = l("postalCode")) == null ? void 0 : N.disabled
123
- }
124
- ),
125
- /* @__PURE__ */ a.jsx(
126
- X,
127
- {
128
- value: o.email,
129
- isErrored: !!t.email,
130
- onChange: (e) => {
131
- n("email", e), d("email", e, s);
132
- },
133
- onKeyDown: (e) => Y(e),
134
- disabled: (x = l("email")) == null ? void 0 : x.disabled
135
- }
136
- ),
137
- D ? /* @__PURE__ */ a.jsx(
138
- Z,
139
- {
140
- isRequired: P,
141
- value: o.phoneNumber,
142
- isErrored: !!t.phoneNumber,
143
- onChange: (e) => {
144
- n("phoneNumber", e), d("phoneNumber", e, s);
145
- },
146
- selectedCountryCode: o.countryChoice && o.countryChoice.value,
147
- disabled: (c = l("phoneNumber")) == null ? void 0 : c.disabled
148
- }
149
- ) : null,
150
- V.customFormFields.map((e) => /* @__PURE__ */ a.jsx(S, { config: e, verificationService: s })),
151
- /* @__PURE__ */ a.jsx(
152
- v,
153
- {
154
- verificationService: s,
155
- isErrored: !!t.marketConsentValue,
156
- onChange: (e) => {
157
- n("metadata", {
158
- ...s.viewModel.metadata,
159
- marketConsentValue: e
160
- }), d("marketConsentValue", e, s);
161
- },
162
- viewModel: o,
163
- disabled: (j = l("marketConsentValue")) == null ? void 0 : j.disabled
164
- }
165
- ),
166
- /* @__PURE__ */ a.jsx(ee, { verificationService: s, suffix: "CollectAboveSubmit" }),
167
- /* @__PURE__ */ a.jsx(
168
- se,
169
- {
170
- step: oe.collectAgePersonalInfo,
171
- verificationService: s,
172
- viewModel: o,
173
- failedInstantMatch: I,
174
- buttonText: /* @__PURE__ */ a.jsx(
175
- ae,
176
- {
177
- id: "step.personalInfo.submitButtonText",
178
- defaultMessage: "Verify and continue"
179
- }
180
- )
181
- }
182
- )
183
- ]
184
- }
185
- );
186
- }, ue = A(ne);
187
- export {
188
- ue as default
189
- };
@@ -1 +0,0 @@
1
- {"version":3,"file":"index-CHicl-ag.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 shouldCollectAddressFields,\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 viewModelDraftDecorator={(draft, countryChoice) => {\n const draftViewModel = draft as AgePersonalInfoViewModel;\n\n const shouldCollectAddress = shouldCollectAddressFields(\n countryChoice,\n verificationService.programTheme.config.countries,\n );\n if (!shouldCollectAddress) {\n draftViewModel.address1 = \"\";\n draftViewModel.city = \"\";\n draftViewModel.postalCode = \"\";\n draftViewModel.fieldsToSkipValidation = [\"address1\", \"city\", \"state\", \"postalCode\"];\n } else {\n draftViewModel.fieldsToSkipValidation = undefined;\n }\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 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","draft","countryChoice","draftViewModel","shouldCollectAddressFields","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":";;AAsDA,MAAMA,KAAsB,CAAC,EAAE,qBAAAC,GAAqB,MAAAC,QAA8C;;AAChG,QAAMC,IAAYF,EAAoB,WAChC,EAAE,uBAAAG,MAA0BH,GAC5BI,IAAuBJ,EAAoB,sBAC3CK,IAAqBC,EAAsBF,CAAoB,GAC/DG,IAAsDC;AAAA,IAC1DR,EAAoB;AAAA,IACpBC;AAAA,EACF,GACMQ,IACJC,EAAwBH,CAAc,GAClCI,IAAmBC,EAAQ,MAAMV,EAAU,cAAc,OAAOO,EAAqB,KAAK,GAC1FI,IACJF,MAAqB,OAAO,CAAC,EAAE,KAAK,aAAc,CAAA,IAAI,CAAC,GAGnDG,IACJH,MAAqB,QACrBX,EAAoB,aAAa,2BACjCA,EAAoB,aAAa,gBAC7Be,IACJJ,MAAqB,QAAQX,EAAoB,aAAa,gBAE1DgB,IAASd,EAAU,aAAa,OAChCe,IAAUC,EAAW;AAGzB,EAAA,CAACf,EAAsB,eACvBC,EAAqB,YACrBA,EAAqB,SAAS,SAAS,oBAAoB,KAE3DJ,EAAoB,4BAA4B;AAAA,IAC9C,GAAGG;AAAA,IACH,aAAa;AAAA,EAAA,CACd;AAGG,QAAAgB,IAAqB,CAACC,GAAqCC,MAAe;AAC9E,UAAMC,IAAsCC,GAAsBrB,GAAWkB,GAAKC,CAAK;AACvF,IAAArB,EAAoB,gBAAgBsB,CAAS;AAAA,EAC/C,GAEM,EAAE,iB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GMT+0000 (Coordinated Universal Time)
6
- * BUILD_COMMIT: 091dfb82603775b7de0bf8cf799f963fc4950e98
7
- */
8
- import { a as f } from "./es6-BpT9St5X.js";
9
- export {
10
- f as default
11
- };
@@ -1,11 +0,0 @@
1
-
2
- /**
3
- * VERSION: 2.121.0-alpha.1
4
- * BUILD_TIMESTAMP: 1753455770299
5
- * BUILD_DATE: Fri Jul 25 2025 15:02:50 GMT+0000 (Coordinated Universal Time)
6
- * BUILD_COMMIT: 091dfb82603775b7de0bf8cf799f963fc4950e98
7
- */
8
- import { c as f } from "./es6-BpT9St5X.js";
9
- export {
10
- f as default
11
- };
@@ -1 +0,0 @@
1
- {"version":3,"file":"index-B9sss0ph.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}