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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (273) hide show
  1. package/_mysheerid-preview.css +3 -3
  2. package/_mysheerid-preview.js +31 -31
  3. package/chunk/EmailLoopPending-Dtf0p85F.js +3 -3
  4. package/chunk/EmailLoopPending-Dy8mLFvV.js +3 -3
  5. package/chunk/LicensedProfessionalOrganizationComponent-BYijEfDT.js +3 -3
  6. package/chunk/LicensedProfessionalOrganizationComponent-CiYU-2dW.js +3 -3
  7. package/chunk/Onfido-AyvUk6wg.js +3 -3
  8. package/chunk/{StepIDCheckLoopOnfido-DPftaR9s.js → StepIDCheckLoopOnfido--3Fw5dMg.js} +4 -4
  9. package/chunk/{StepIDCheckLoopOnfido-DPftaR9s.js.map → StepIDCheckLoopOnfido--3Fw5dMg.js.map} +1 -1
  10. package/chunk/{StepIDCheckLoopOnfido-wrbezEdo.js → StepIDCheckLoopOnfido-CeiLgm_c.js} +4 -4
  11. package/chunk/{StepIDCheckLoopOnfido-wrbezEdo.js.map → StepIDCheckLoopOnfido-CeiLgm_c.js.map} +1 -1
  12. package/chunk/{StepIDCheckLoopRegula-CoJkGsDn.js → StepIDCheckLoopRegula-BFSb544w.js} +5 -5
  13. package/chunk/{StepIDCheckLoopRegula-5mxsRVU3.js.map → StepIDCheckLoopRegula-BFSb544w.js.map} +1 -1
  14. package/chunk/{StepIDCheckLoopRegula-5mxsRVU3.js → StepIDCheckLoopRegula-DDR_mxSn.js} +5 -5
  15. package/chunk/{StepIDCheckLoopRegula-CoJkGsDn.js.map → StepIDCheckLoopRegula-DDR_mxSn.js.map} +1 -1
  16. package/chunk/{StepInactiveMilitaryPersonalInfoComponent-CTCfr5Y8.js → StepInactiveMilitaryPersonalInfoComponent-Dhm9dCs2.js} +15 -15
  17. package/chunk/{StepInactiveMilitaryPersonalInfoComponent-D4veFRlW.js.map → StepInactiveMilitaryPersonalInfoComponent-Dhm9dCs2.js.map} +1 -1
  18. package/chunk/{StepInactiveMilitaryPersonalInfoComponent-D4veFRlW.js → StepInactiveMilitaryPersonalInfoComponent-_NISUzZF.js} +15 -15
  19. package/chunk/{StepInactiveMilitaryPersonalInfoComponent-CTCfr5Y8.js.map → StepInactiveMilitaryPersonalInfoComponent-_NISUzZF.js.map} +1 -1
  20. package/chunk/ar-BZsYQiJv.js +3 -3
  21. package/chunk/bg-DB_ZEB5O.js +3 -3
  22. package/chunk/bn-IN-D69rNeuh.js +3 -3
  23. package/chunk/cs-Dk4czWE5.js +3 -3
  24. package/chunk/da-NesYkkEW.js +3 -3
  25. package/chunk/de-4yAGb-JC.js +3 -3
  26. package/chunk/el-D1h3O3E7.js +3 -3
  27. package/chunk/en-GB-QY9gqmlz.js +3 -3
  28. package/chunk/es-BYhP2rUk.js +3 -3
  29. package/chunk/es-ES-BJLdehwH.js +3 -3
  30. package/chunk/fi-D-Ycqh7I.js +3 -3
  31. package/chunk/fr-CA-a8W9ZT_A.js +3 -3
  32. package/chunk/fr-DR25pnXw.js +3 -3
  33. package/chunk/ga-Bj6efXd2.js +3 -3
  34. package/chunk/hi-IN-C-u9_T8L.js +3 -3
  35. package/chunk/hr-B8E9jyUX.js +3 -3
  36. package/chunk/hu-C7z4yBSK.js +3 -3
  37. package/chunk/id-AsEkOlRu.js +3 -3
  38. package/chunk/{index-YSVzGeq_.js → index-3wRIidxQ.js} +17 -17
  39. package/chunk/{index-DvQoVn8P.js.map → index-3wRIidxQ.js.map} +1 -1
  40. package/chunk/{index-DFKdt9N2.js → index-4zf9jvK6.js} +9 -9
  41. package/chunk/{index-DFKdt9N2.js.map → index-4zf9jvK6.js.map} +1 -1
  42. package/chunk/{index-h1dR7dZA.js → index-8gjxKx0J.js} +5 -5
  43. package/chunk/{index-BrulkRve.js.map → index-8gjxKx0J.js.map} +1 -1
  44. package/chunk/index-B8KPM--K.js +3 -3
  45. package/chunk/index-BD2bjH-C.js +3 -3
  46. package/chunk/index-BD_a0MZT.js +3 -3
  47. package/chunk/{index-Cp0trvsP.js → index-BFMzh8b3.js} +34 -31
  48. package/chunk/index-BFMzh8b3.js.map +1 -0
  49. package/chunk/{index-_t8SsXjy.js → index-BSmAslR-.js} +11 -11
  50. package/chunk/{index-_t8SsXjy.js.map → index-BSmAslR-.js.map} +1 -1
  51. package/chunk/{index-DvQoVn8P.js → index-BYGkr72X.js} +17 -17
  52. package/chunk/{index-YSVzGeq_.js.map → index-BYGkr72X.js.map} +1 -1
  53. package/chunk/{index-C8MQD8EK.js → index-Bemwq78a.js} +8 -8
  54. package/chunk/{index-4APUDd8S.js.map → index-Bemwq78a.js.map} +1 -1
  55. package/chunk/{index-DDOySTBb.js → index-BgAd7a0x.js} +15 -15
  56. package/chunk/{index-BElPqx0Q.js.map → index-BgAd7a0x.js.map} +1 -1
  57. package/chunk/index-BpZoH-Wz.js +3 -3
  58. package/chunk/{index-CsPUjZ8r.js → index-ByBO6KNx.js} +34 -35
  59. package/chunk/{index-CsPUjZ8r.js.map → index-ByBO6KNx.js.map} +1 -1
  60. package/chunk/{index-4APUDd8S.js → index-C-YPXV3H.js} +8 -8
  61. package/chunk/{index-C8MQD8EK.js.map → index-C-YPXV3H.js.map} +1 -1
  62. package/chunk/{index-B0RXjf3X.js → index-C29suvHQ.js} +34 -31
  63. package/chunk/index-C29suvHQ.js.map +1 -0
  64. package/chunk/index-C2h0Wj84.js +3 -3
  65. package/chunk/{index-C96ntS0u.js → index-C9UAjull.js} +11 -11
  66. package/chunk/{index-Bmq6cJ3F.js.map → index-C9UAjull.js.map} +1 -1
  67. package/chunk/index-CcRowarb.js +3 -3
  68. package/chunk/index-CeHu2Npu.js +3 -3
  69. package/chunk/{index-Bmq6cJ3F.js → index-DEKYtYJV.js} +11 -11
  70. package/chunk/{index-C96ntS0u.js.map → index-DEKYtYJV.js.map} +1 -1
  71. package/chunk/{index-Dg8t7-dm.js → index-DHrneLz9.js} +14 -14
  72. package/chunk/{index-B8F8N-JM.js.map → index-DHrneLz9.js.map} +1 -1
  73. package/chunk/index-DIkWpujR.js +3 -3
  74. package/chunk/index-DRmBhdAn.js +3 -3
  75. package/chunk/{index-BElPqx0Q.js → index-DUXQFubY.js} +15 -15
  76. package/chunk/{index-DDOySTBb.js.map → index-DUXQFubY.js.map} +1 -1
  77. package/chunk/index-DVynViqA.js +3 -3
  78. package/chunk/{index-DhGg9lvf.js → index-Dg6e8PFO.js} +12 -12
  79. package/chunk/{index-BDrKYann.js.map → index-Dg6e8PFO.js.map} +1 -1
  80. package/chunk/{index-brVWUjHi.js → index-DgXh3iXb.js} +9 -9
  81. package/chunk/{index-brVWUjHi.js.map → index-DgXh3iXb.js.map} +1 -1
  82. package/chunk/{index-BuX76GyE.js → index-Dw4HZdl4.js} +8 -8
  83. package/chunk/{index-DO5Z3e-E.js.map → index-Dw4HZdl4.js.map} +1 -1
  84. package/chunk/{index-BDrKYann.js → index-DypbXiPM.js} +12 -12
  85. package/chunk/{index-DhGg9lvf.js.map → index-DypbXiPM.js.map} +1 -1
  86. package/chunk/{index-DsgCNIS5.js → index-FfsFdWXt.js} +9 -9
  87. package/chunk/{index-D_9J6arc.js.map → index-FfsFdWXt.js.map} +1 -1
  88. package/chunk/{index-C-G05eCw.js → index-TysYb0wj.js} +4 -4
  89. package/chunk/{index-C-G05eCw.js.map → index-TysYb0wj.js.map} +1 -1
  90. package/chunk/{index-DP5XPjKi.js → index-VrTXSLSj.js} +34 -35
  91. package/chunk/{index-DP5XPjKi.js.map → index-VrTXSLSj.js.map} +1 -1
  92. package/chunk/index-VxNSWlHu.js +3 -3
  93. package/chunk/{index-B8F8N-JM.js → index-Z410glzc.js} +14 -14
  94. package/chunk/{index-Dg8t7-dm.js.map → index-Z410glzc.js.map} +1 -1
  95. package/chunk/{index-BrulkRve.js → index-aRiqFbd1.js} +5 -5
  96. package/chunk/{index-h1dR7dZA.js.map → index-aRiqFbd1.js.map} +1 -1
  97. package/chunk/{index-D4Nea32j.js → index-eDr5_bvN.js} +4 -4
  98. package/chunk/{index-D4Nea32j.js.map → index-eDr5_bvN.js.map} +1 -1
  99. package/chunk/{index-D_9J6arc.js → index-f8an5bUm.js} +9 -9
  100. package/chunk/{index-DsgCNIS5.js.map → index-f8an5bUm.js.map} +1 -1
  101. package/chunk/{index-DO5Z3e-E.js → index-m9Gpah9q.js} +8 -8
  102. package/chunk/{index-BuX76GyE.js.map → index-m9Gpah9q.js.map} +1 -1
  103. package/chunk/{index-BTMETMEE.js → index-qj9OiaWM.js} +11 -11
  104. package/chunk/{index-BTMETMEE.js.map → index-qj9OiaWM.js.map} +1 -1
  105. package/chunk/is-PzizLXcv.js +3 -3
  106. package/chunk/it-CiJeQN1_.js +3 -3
  107. package/chunk/iw-QHmqNHZP.js +3 -3
  108. package/chunk/ja-DPgVvasb.js +3 -3
  109. package/chunk/ko-DykOu1Yp.js +3 -3
  110. package/chunk/lo-C4bFrJOj.js +3 -3
  111. package/chunk/lt-KjZ7oOV5.js +3 -3
  112. package/chunk/ms-CNvzXjsH.js +3 -3
  113. package/chunk/nl-BE-BXbsNtu2.js +3 -3
  114. package/chunk/nl-ucuj2G5l.js +3 -3
  115. package/chunk/no-D8IuXJ7O.js +3 -3
  116. package/chunk/pl-DvnUkXGb.js +3 -3
  117. package/chunk/pt-BR-Be00Hx-L.js +3 -3
  118. package/chunk/pt-DS7isrlt.js +3 -3
  119. package/chunk/ro-BHCICvJV.js +3 -3
  120. package/chunk/ru-DUDtL41i.js +3 -3
  121. package/chunk/sk-O9yqW58Q.js +3 -3
  122. package/chunk/sl-CxcvfiDu.js +3 -3
  123. package/chunk/sr-DgvzAvVS.js +3 -3
  124. package/chunk/sv-BtktR0mm.js +3 -3
  125. package/chunk/sw-D06YJhji.js +3 -3
  126. package/chunk/th-C1KZhtMd.js +3 -3
  127. package/chunk/tr-CqpbTukW.js +3 -3
  128. package/chunk/uk-BWHH_jN1.js +3 -3
  129. package/chunk/ur-BHWni4Fn.js +3 -3
  130. package/chunk/useCollectFieldsEndpoint-C5fsaYJe.js +3 -3
  131. package/chunk/useCollectFieldsEndpoint-kmLFyUA-.js +3 -3
  132. package/chunk/useEmailFirstExperiment-BbDrKQEs.js +3 -3
  133. package/chunk/useEmailFirstExperiment-CgU-itQI.js +3 -3
  134. package/chunk/vi-DVhQHKtP.js +3 -3
  135. package/chunk/zh-HK-C-wTSVhL.js +3 -3
  136. package/chunk/zh-qa3hzwEB.js +3 -3
  137. package/chunk/zu-DwVIy-bC.js +3 -3
  138. package/es6.css +3 -3
  139. package/jslib.js +4 -4
  140. package/lib/{EmailLoopPending-1RfnE4mt.js → EmailLoopPending-CRs0n7WO.js} +4 -4
  141. package/lib/{EmailLoopPending-1RfnE4mt.js.map → EmailLoopPending-CRs0n7WO.js.map} +1 -1
  142. package/lib/{LicensedProfessionalOrganizationComponent-1EOmC_XF.js → LicensedProfessionalOrganizationComponent-DpimxCKC.js} +4 -4
  143. package/lib/{LicensedProfessionalOrganizationComponent-1EOmC_XF.js.map → LicensedProfessionalOrganizationComponent-DpimxCKC.js.map} +1 -1
  144. package/lib/Onfido-AyvUk6wg.js +3 -3
  145. package/lib/StepCollectMilitaryStatusComponent-DjIRHg05.js +11 -0
  146. package/lib/{StepCollectMilitaryStatusComponent-BQkj7ZoB.js.map → StepCollectMilitaryStatusComponent-DjIRHg05.js.map} +1 -1
  147. package/lib/{StepIDCheckLoopOnfido-B3HvjOZj.js → StepIDCheckLoopOnfido-DNOdBaAR.js} +4 -4
  148. package/lib/{StepIDCheckLoopOnfido-B3HvjOZj.js.map → StepIDCheckLoopOnfido-DNOdBaAR.js.map} +1 -1
  149. package/lib/{StepIDCheckLoopRegula-DIeNhWoA.js → StepIDCheckLoopRegula-CX73icyg.js} +4 -4
  150. package/lib/{StepIDCheckLoopRegula-DIeNhWoA.js.map → StepIDCheckLoopRegula-CX73icyg.js.map} +1 -1
  151. package/lib/{StepInactiveMilitaryPersonalInfoComponent-D-xj1LVu.js → StepInactiveMilitaryPersonalInfoComponent-CeJIe91S.js} +18 -18
  152. package/lib/{StepInactiveMilitaryPersonalInfoComponent-D-xj1LVu.js.map → StepInactiveMilitaryPersonalInfoComponent-CeJIe91S.js.map} +1 -1
  153. package/lib/{VerificationApiUtils-DdSD4k-s.js → VerificationApiUtils-DCEPKSOt.js} +4 -4
  154. package/lib/{VerificationApiUtils-DdSD4k-s.js.map → VerificationApiUtils-DCEPKSOt.js.map} +1 -1
  155. package/lib/ar-BZsYQiJv.js +3 -3
  156. package/lib/bg-DB_ZEB5O.js +3 -3
  157. package/lib/bn-IN-D69rNeuh.js +3 -3
  158. package/lib/cs-Dk4czWE5.js +3 -3
  159. package/lib/da-NesYkkEW.js +3 -3
  160. package/lib/de-4yAGb-JC.js +3 -3
  161. package/lib/el-D1h3O3E7.js +3 -3
  162. package/lib/en-GB-QY9gqmlz.js +3 -3
  163. package/lib/es-BYhP2rUk.js +3 -3
  164. package/lib/es-ES-BJLdehwH.js +3 -3
  165. package/lib/{es6-DoczaIOS.js → es6-C2abemUD.js} +44 -44
  166. package/lib/{es6-DoczaIOS.js.map → es6-C2abemUD.js.map} +1 -1
  167. package/lib/fi-D-Ycqh7I.js +3 -3
  168. package/lib/fr-CA-a8W9ZT_A.js +3 -3
  169. package/lib/fr-DR25pnXw.js +3 -3
  170. package/lib/ga-Bj6efXd2.js +3 -3
  171. package/lib/hi-IN-C-u9_T8L.js +3 -3
  172. package/lib/hr-B8E9jyUX.js +3 -3
  173. package/lib/hu-C7z4yBSK.js +3 -3
  174. package/lib/id-AsEkOlRu.js +3 -3
  175. package/lib/{index-CVStpTnM.js → index--1Hzxve4.js} +6 -6
  176. package/lib/{index-CVStpTnM.js.map → index--1Hzxve4.js.map} +1 -1
  177. package/lib/{index-C94vhVR4.js → index-7L1Z0u1-.js} +4 -4
  178. package/lib/{index-C94vhVR4.js.map → index-7L1Z0u1-.js.map} +1 -1
  179. package/lib/{index-BHpxeZvo.js → index-84DA_jT2.js} +10 -10
  180. package/lib/{index-BHpxeZvo.js.map → index-84DA_jT2.js.map} +1 -1
  181. package/lib/{index-DhavY2m5.js → index-8kESiptt.js} +4 -4
  182. package/lib/{index-DhavY2m5.js.map → index-8kESiptt.js.map} +1 -1
  183. package/lib/{index-BU0lsrnW.js → index-B_BS9qnQ.js} +12 -12
  184. package/lib/{index-BU0lsrnW.js.map → index-B_BS9qnQ.js.map} +1 -1
  185. package/lib/{index-BTku6Nav.js → index-Bb5tkw_V.js} +8 -8
  186. package/lib/{index-BTku6Nav.js.map → index-Bb5tkw_V.js.map} +1 -1
  187. package/lib/index-Bm_R6wgA.js +11 -0
  188. package/lib/index-Bm_R6wgA.js.map +1 -0
  189. package/lib/{index-C28KGyFC.js → index-BtM1XPhl.js} +4 -4
  190. package/lib/{index-C28KGyFC.js.map → index-BtM1XPhl.js.map} +1 -1
  191. package/lib/{index-DdKZTMDD.js → index-BzZl5JDO.js} +36 -32
  192. package/lib/index-BzZl5JDO.js.map +1 -0
  193. package/lib/{index-CCIzkIQB.js → index-C3CtMm2Q.js} +13 -13
  194. package/lib/{index-CCIzkIQB.js.map → index-C3CtMm2Q.js.map} +1 -1
  195. package/lib/index-CNmUvsR-.js +11 -0
  196. package/lib/index-CNmUvsR-.js.map +1 -0
  197. package/lib/{index-BtwZxcpp.js → index-CS_JuJR3.js} +8 -8
  198. package/lib/{index-BtwZxcpp.js.map → index-CS_JuJR3.js.map} +1 -1
  199. package/lib/index-Cg0pahuD.js +11 -0
  200. package/lib/index-Cg0pahuD.js.map +1 -0
  201. package/lib/{index-86CuJOnE.js → index-DCCPfELa.js} +4 -4
  202. package/lib/{index-86CuJOnE.js.map → index-DCCPfELa.js.map} +1 -1
  203. package/lib/index-DIkWpujR.js +3 -3
  204. package/lib/index-DbQvQo1A.js +11 -0
  205. package/lib/index-DbQvQo1A.js.map +1 -0
  206. package/lib/{index-CY047n3D.js → index-DbaJBiSs.js} +6 -6
  207. package/lib/{index-CY047n3D.js.map → index-DbaJBiSs.js.map} +1 -1
  208. package/lib/{index-DblwzU8U.js → index-DdKeUKWu.js} +5 -5
  209. package/lib/{index-DblwzU8U.js.map → index-DdKeUKWu.js.map} +1 -1
  210. package/lib/{index-C8QQR_XI.js → index-DlwFWaiY.js} +13 -13
  211. package/lib/{index-C8QQR_XI.js.map → index-DlwFWaiY.js.map} +1 -1
  212. package/lib/{index-BEzio-vG.js → index-Dm5PevSE.js} +10 -10
  213. package/lib/{index-BEzio-vG.js.map → index-Dm5PevSE.js.map} +1 -1
  214. package/lib/{index-CRqc1g9s.js → index-DrxXRhEO.js} +4 -4
  215. package/lib/{index-CRqc1g9s.js.map → index-DrxXRhEO.js.map} +1 -1
  216. package/lib/{index-BZ9TBRcn.js → index-EEqCPFo8.js} +8 -8
  217. package/lib/{index-BZ9TBRcn.js.map → index-EEqCPFo8.js.map} +1 -1
  218. package/lib/{index-D1rQZWS-.js → index-K0J2eq7Y.js} +38 -39
  219. package/lib/index-K0J2eq7Y.js.map +1 -0
  220. package/lib/{index-BV42p1ID.js → index-PtF39r2i.js} +7 -7
  221. package/lib/{index-BV42p1ID.js.map → index-PtF39r2i.js.map} +1 -1
  222. package/lib/is-PzizLXcv.js +3 -3
  223. package/lib/it-CiJeQN1_.js +3 -3
  224. package/lib/iw-QHmqNHZP.js +3 -3
  225. package/lib/ja-DPgVvasb.js +3 -3
  226. package/lib/ko-DykOu1Yp.js +3 -3
  227. package/lib/lo-C4bFrJOj.js +3 -3
  228. package/lib/lt-KjZ7oOV5.js +3 -3
  229. package/lib/ms-CNvzXjsH.js +3 -3
  230. package/lib/nl-BE-BXbsNtu2.js +3 -3
  231. package/lib/nl-ucuj2G5l.js +3 -3
  232. package/lib/no-D8IuXJ7O.js +3 -3
  233. package/lib/pl-DvnUkXGb.js +3 -3
  234. package/lib/pt-BR-Be00Hx-L.js +3 -3
  235. package/lib/pt-DS7isrlt.js +3 -3
  236. package/lib/ro-BHCICvJV.js +3 -3
  237. package/lib/ru-DUDtL41i.js +3 -3
  238. package/lib/sk-O9yqW58Q.js +3 -3
  239. package/lib/sl-CxcvfiDu.js +3 -3
  240. package/lib/sr-DgvzAvVS.js +3 -3
  241. package/lib/sv-BtktR0mm.js +3 -3
  242. package/lib/sw-D06YJhji.js +3 -3
  243. package/lib/th-C1KZhtMd.js +3 -3
  244. package/lib/tr-CqpbTukW.js +3 -3
  245. package/lib/uk-BWHH_jN1.js +3 -3
  246. package/lib/ur-BHWni4Fn.js +3 -3
  247. package/lib/{useCollectFieldsEndpoint-CHfpu8rz.js → useCollectFieldsEndpoint-C9_ygIzy.js} +5 -5
  248. package/lib/{useCollectFieldsEndpoint-CHfpu8rz.js.map → useCollectFieldsEndpoint-C9_ygIzy.js.map} +1 -1
  249. package/lib/{useEmailFirstExperiment-BW42yQPm.js → useEmailFirstExperiment-Cib954tq.js} +4 -4
  250. package/lib/{useEmailFirstExperiment-BW42yQPm.js.map → useEmailFirstExperiment-Cib954tq.js.map} +1 -1
  251. package/lib/vi-DVhQHKtP.js +3 -3
  252. package/lib/zh-HK-C-wTSVhL.js +3 -3
  253. package/lib/zh-qa3hzwEB.js +3 -3
  254. package/lib/zu-DwVIy-bC.js +3 -3
  255. package/package.json +1 -1
  256. package/sheerid-install.css +3 -3
  257. package/sheerid-install.js +4 -4
  258. package/sheerid.css +3 -3
  259. package/sheerid.js +31 -31
  260. package/types-reference.zip +0 -0
  261. package/chunk/index-B0RXjf3X.js.map +0 -1
  262. package/chunk/index-Cp0trvsP.js.map +0 -1
  263. package/lib/StepCollectMilitaryStatusComponent-BQkj7ZoB.js +0 -11
  264. package/lib/index-CcAsLQCG.js +0 -11
  265. package/lib/index-CcAsLQCG.js.map +0 -1
  266. package/lib/index-Cnu2Xjr1.js +0 -11
  267. package/lib/index-Cnu2Xjr1.js.map +0 -1
  268. package/lib/index-D--q13gK.js +0 -11
  269. package/lib/index-D--q13gK.js.map +0 -1
  270. package/lib/index-D1rQZWS-.js.map +0 -1
  271. package/lib/index-DdKZTMDD.js.map +0 -1
  272. package/lib/index-PsAje25X.js +0 -11
  273. package/lib/index-PsAje25X.js.map +0 -1
@@ -1,18 +1,18 @@
1
1
 
2
2
  /**
3
- * VERSION: 2.115.0-alpha.2
4
- * BUILD_TIMESTAMP: 1751929030742
5
- * BUILD_DATE: Mon Jul 07 2025 22:57:10 GMT+0000 (Coordinated Universal Time)
3
+ * VERSION: 2.115.0-alpha.3
4
+ * BUILD_TIMESTAMP: 1751931324976
5
+ * BUILD_DATE: Mon Jul 07 2025 23:35:24 GMT+0000 (Coordinated Universal Time)
6
6
  * BUILD_COMMIT: 9b953bf464bb46df40df3f4b766e06f47b82b5aa
7
7
  */
8
- import { i as A, h as G, j as a, t as Q, P as U, a8 as J, E as z, g as n, u as d, b as g, d as m, v as X, w as Y, Q as Z, a2 as _, aa as $, ab as S, ac as c, ad as v, ae as ee, m as D, x as se, y as ae, W as oe, e as ne, D as te, B as de, G as le, M as re, H as me, f as pe, V as ie } from "../sheerid.js";
8
+ import { i as A, h as U, j as a, t as G, P as J, a8 as Q, E as z, g as n, u as d, b as g, d as m, v as X, w as Y, O as Z, a2 as _, aa as $, ab as S, ac as c, ad as v, ae as ee, m as D, x as se, y as ae, U as oe, e as ne, D as te, B as de, G as le, M as re, H as me, f as pe, V as ie } from "../sheerid.js";
9
9
  import { u as ue, E as ge } from "./useEmailFirstExperiment-CgU-itQI.js";
10
10
  const Ce = ({
11
11
  intl: C,
12
12
  verificationService: s
13
13
  }) => {
14
14
  var h, x, E, j, F, N, M, R, I, y, k;
15
- const o = s.viewModel, { fieldValidationErrors: t } = s, p = s.verificationResponse, L = G(p), P = X(), O = o.localeChoice.value, l = (e, u) => {
15
+ const o = s.viewModel, { fieldValidationErrors: t } = s, p = s.verificationResponse, L = U(p), P = X(), O = o.localeChoice.value, l = (e, u) => {
16
16
  const r = D(
17
17
  o,
18
18
  (q) => {
@@ -37,13 +37,13 @@ const Ce = ({
37
37
  s.verificationResponse.segment
38
38
  );
39
39
  return /* @__PURE__ */ a.jsxs(
40
- Q,
40
+ G,
41
41
  {
42
42
  verificationService: s,
43
43
  step: p.currentStep,
44
44
  children: [
45
45
  /* @__PURE__ */ a.jsx(
46
- U,
46
+ J,
47
47
  {
48
48
  verificationService: s,
49
49
  classNameIdentifier: "first-responder"
@@ -51,7 +51,7 @@ const Ce = ({
51
51
  ),
52
52
  // #region email-first-experiment
53
53
  i && /* @__PURE__ */ a.jsx(a.Fragment, { children: /* @__PURE__ */ a.jsxs("div", { className: "email-input-wrapper", children: [
54
- T && /* @__PURE__ */ a.jsx("div", { className: "email-input-wrapper-frame", children: /* @__PURE__ */ a.jsx("div", { className: "sid-spinner scaled", children: /* @__PURE__ */ a.jsx(J, {}) }) }),
54
+ T && /* @__PURE__ */ a.jsx("div", { className: "email-input-wrapper-frame", children: /* @__PURE__ */ a.jsx("div", { className: "sid-spinner scaled", children: /* @__PURE__ */ a.jsx(Q, {}) }) }),
55
55
  /* @__PURE__ */ a.jsx(
56
56
  z,
57
57
  {
@@ -1 +1 @@
1
- {"version":3,"file":"index-DO5Z3e-E.js","sources":["../../src/components/StepFirstResponderPersonalInfo/StepFirstResponderPersonalInfoComponent.tsx"],"sourcesContent":["/* eslint-disable */\n/**\n * TODO - preamble\n */\nimport React from \"react\";\nimport { FormattedHTMLMessage, injectIntl } from \"react-intl\";\nimport { produce } from \"immer\";\n\nimport {\n VerificationStepsEnum,\n FirstResponderStatusDefaultMessagesEnum,\n} from \"../../lib/types/runtimeTypes\";\nimport { hasFailedInstantMatch } from \"../../lib/VerificationService/VerificationServiceHelpers\";\nimport { getSafe } from \"../../lib/utils/getSafe\";\nimport {\n VerificationService,\n FormSelectChoice,\n Organization,\n FirstResponderPersonalInfoViewModel,\n FirstResponderPersonalInfoResponse,\n CustomFormFieldConfig,\n} from \"../../lib/types/types\";\nimport {\n getAvailableFirstResponderStatuses,\n getFieldConfigByFieldId,\n getStatusLabel,\n handleEmailOnKeyDown,\n updateFieldValidationErrorsByFieldId,\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 { MarketConsentWrapperComponent as MarketConsentWrapper } from \"../FormFields/MarketConsentWrapper/MarketConsentWrapperComponent\";\nimport { StatusComponent as FirstResponderStatus } from \"../FormFields/Status/StatusComponent\";\nimport { FirstResponderOrganizationComponent as FirstResponderOrganization } from \"../FormFields/FirstResponderOrganization/FirstResponderOrganizationComponent\";\nimport { PostalCodeComponent } from \"../FormFields/PostalCode/PostalCodeComponent\";\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\";\nimport { blankOrganization } from \"../../lib/types/empties\";\nimport { LoadingSpinnerComponent } from \"../LoadingSpinner/LoadingSpinnerComponent\";\nimport EmailLookupResponseMessages from \"../FormFields/EmailFirstCollectInfo/EmailLookupResponseMessageComponent\";\nimport { useEmailFirstExperiment } from \"../FormFields/EmailFirstCollectInfo/useEmailFirstExperiment\";\n\ninterface StepFirstResponderPersonalInfoComponentProps {\n verificationService: VerificationService;\n intl: any;\n}\n\nexport const StepFirstResponderPersonalInfo = ({\n intl,\n verificationService,\n}: StepFirstResponderPersonalInfoComponentProps) => {\n const viewModel = verificationService.viewModel as FirstResponderPersonalInfoViewModel;\n const { fieldValidationErrors } = verificationService;\n const verificationResponse =\n verificationService.verificationResponse as FirstResponderPersonalInfoResponse;\n const failedInstantMatch = hasFailedInstantMatch(verificationResponse);\n const options = getOptions();\n\n const locale = viewModel.localeChoice.value;\n\n const updateFirstResponderViewModel = (\n key: keyof FirstResponderPersonalInfoViewModel,\n value: any,\n ) => {\n const nextState: FirstResponderPersonalInfoViewModel = produce(\n viewModel,\n (draft: FirstResponderPersonalInfoViewModel) => {\n (draft[key] as any) = value;\n },\n );\n verificationService.updateViewModel(nextState);\n };\n\n // #region collect-info-step-email-first\n\n const {\n isEmailUpTop,\n isEmailValidationLoading,\n showFormFields,\n emailLookupResponse,\n emailOnBlur,\n emailOnKeyDown,\n handleResendClick,\n showEmailLookupResponseMessages,\n enableFormFields,\n handleOnClickProceedHere,\n } = useEmailFirstExperiment(\n verificationService.programId,\n viewModel.email,\n verificationService.verificationResponse.segment,\n );\n // #endregion collect-info-step-email-first\n\n return (\n <PersonalInfoWrapper\n verificationService={verificationService}\n step={verificationResponse.currentStep}\n >\n <PersonalInfoHeader\n verificationService={verificationService}\n classNameIdentifier=\"first-responder\"\n />\n\n {\n // #region email-first-experiment\n isEmailUpTop && (\n <>\n <div className=\"email-input-wrapper\">\n {isEmailValidationLoading && (\n <div className=\"email-input-wrapper-frame\">\n <div className=\"sid-spinner scaled\">\n <LoadingSpinnerComponent />\n </div>\n </div>\n )}\n <Email\n value={viewModel.email}\n isErrored={!!fieldValidationErrors.email}\n explanation={\n <FormattedHTMLMessage\n id=\"emailExplanation\"\n defaultMessage=\"Personal email address is recommended\"\n />\n }\n onChange={(newValue) => {\n updateFirstResponderViewModel(\"email\", newValue);\n updateFieldValidationErrorsByFieldId(\"email\", newValue, verificationService);\n }}\n onKeyDown={emailOnKeyDown}\n onBlur={emailOnBlur}\n disabled={getFieldConfigByFieldId(\"email\")?.disabled}\n />\n </div>\n </>\n ) // #endregion email-first-experiment\n }\n {showEmailLookupResponseMessages && emailLookupResponse && (\n <EmailLookupResponseMessages\n emailLookupResponse={emailLookupResponse}\n onResendClick={handleResendClick}\n onHandleClickLink={handleOnClickProceedHere}\n />\n )}\n {showFormFields && (\n <>\n <div className={enableFormFields || !isEmailUpTop ? \"\" : \"sid-disable-elements\"}>\n <ChangeLocaleV2Component verificationService={verificationService} />\n <CountryComponentWrapper\n verificationService={verificationService}\n disabled={getFieldConfigByFieldId(\"country\")?.disabled}\n />\n <FirstResponderStatus\n segmentId=\"first-responder\"\n value={{\n value: viewModel.status,\n label: getStatusLabel(\n intl,\n viewModel.status,\n FirstResponderStatusDefaultMessagesEnum,\n ),\n }}\n isErrored={!!fieldValidationErrors.status}\n errorId=\"invalidFirstResponderStatus\"\n disabled={getFieldConfigByFieldId(\"status\")?.disabled}\n options={getAvailableFirstResponderStatuses(\n intl,\n verificationResponse.availableStatuses,\n )}\n onChange={(status: FormSelectChoice) => {\n updateFirstResponderViewModel(\"status\", status ? (status.value as string) : \"\");\n updateFieldValidationErrorsByFieldId(\n \"status\",\n status ? (status.value as string) : \"\",\n verificationService,\n );\n }}\n />\n\n <FirstResponderOrganization\n isErrored={!!fieldValidationErrors.organization}\n onChange={(choice: Organization = blankOrganization.organization) => {\n const nextState = produce(viewModel, (draft) => {\n draft.organization = {\n id: choice.id,\n idExtended: choice.idExtended,\n name: choice.name,\n source: choice.source,\n };\n\n if (viewModel.organization && viewModel.organization.source !== undefined) {\n draft.organization.source = viewModel.organization.source;\n }\n\n if (\n getSafe(() => verificationService.programTheme.openOrgSearchEnabled) &&\n getSafe(() => choice.id) === 0 &&\n getSafe(() => choice.name, \"\").length > 0\n ) {\n draft.postalCode = viewModel.postalCode ? viewModel.postalCode : \"\";\n } else if (viewModel.postalCode || viewModel.postalCode === \"\") {\n delete draft.postalCode;\n }\n });\n\n verificationService.updateViewModel(nextState);\n updateFieldValidationErrorsByFieldId(\"organization\", choice, verificationService);\n }}\n value={\n (verificationService.viewModel as FirstResponderPersonalInfoViewModel).organization\n }\n verificationService={verificationService}\n disabled={getFieldConfigByFieldId(\"organization\")?.disabled}\n />\n\n <div className=\"sid-names\">\n <FirstName\n value={viewModel.firstName}\n isErrored={!!fieldValidationErrors.firstName}\n disabled={getFieldConfigByFieldId(\"firstName\")?.disabled}\n onChange={(newValue) => {\n updateFirstResponderViewModel(\"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 updateFirstResponderViewModel(\"lastName\", newValue);\n updateFieldValidationErrorsByFieldId(\"lastName\", newValue, verificationService);\n }}\n />\n </div>\n\n <BirthDate\n errorId={fieldValidationErrors.birthDate}\n locale={locale}\n onChange={(newValue) => {\n updateFirstResponderViewModel(\"birthDate\", newValue);\n updateFieldValidationErrorsByFieldId(\"birthDate\", newValue, verificationService);\n }}\n value={viewModel.birthDate}\n disabled={getFieldConfigByFieldId(\"birthDate\")?.disabled}\n />\n {!isEmailUpTop && (\n <Email\n value={viewModel.email}\n isErrored={!!fieldValidationErrors.email}\n explanation={\n <FormattedHTMLMessage\n id=\"emailExplanation\"\n defaultMessage=\"Needed to send you your unique code\"\n />\n }\n onChange={(newValue) => {\n updateFirstResponderViewModel(\"email\", newValue);\n updateFieldValidationErrorsByFieldId(\"email\", newValue, verificationService);\n }}\n onKeyDown={(event) => handleEmailOnKeyDown(event)}\n disabled={getFieldConfigByFieldId(\"email\")?.disabled}\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 updateFirstResponderViewModel(\"phoneNumber\", newValue);\n updateFieldValidationErrorsByFieldId(\n \"phoneNumber\",\n newValue,\n verificationService,\n );\n }}\n selectedCountryCode={viewModel.countryChoice && viewModel.countryChoice.value}\n disabled={getFieldConfigByFieldId(\"phoneNumber\")?.disabled}\n />\n ) : null}\n {getSafe(() => verificationService.programTheme.openOrgSearchEnabled) &&\n getSafe(() => viewModel.organization.id) === 0 &&\n getSafe(() => viewModel.organization.name, \"\").length > 0 && (\n <PostalCodeComponent\n isErrored={!!fieldValidationErrors.postalCode}\n onChange={(newValue) => {\n updateFirstResponderViewModel(\"postalCode\", newValue);\n updateFieldValidationErrorsByFieldId(\n \"postalCode\",\n newValue,\n verificationService,\n );\n }}\n value={viewModel.postalCode}\n disabled={getFieldConfigByFieldId(\"postalCode\")?.disabled}\n />\n )}\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 updateFirstResponderViewModel(\"metadata\", {\n ...verificationService.viewModel.metadata,\n marketConsentValue: newValue,\n });\n updateFieldValidationErrorsByFieldId(\n \"marketConsentValue\",\n newValue,\n verificationService,\n );\n }}\n viewModel={viewModel}\n disabled={getFieldConfigByFieldId(\"marketConsentValue\")?.disabled}\n />\n\n <ExtraMessage verificationService={verificationService} suffix=\"CollectAboveSubmit\" />\n\n <PersonalInfoStepSubmitButton\n step={VerificationStepsEnum.collectFirstResponderPersonalInfo}\n verificationService={verificationService}\n viewModel={viewModel}\n failedInstantMatch={failedInstantMatch}\n buttonText={\n <FormattedHTMLMessage\n id=\"step.personalInfo.submitButtonText\"\n defaultMessage=\"Verify My First Responder Status\"\n />\n }\n />\n </div>\n </>\n )}\n </PersonalInfoWrapper>\n );\n};\n\nexport const StepFirstResponderPersonalInfoComponent = injectIntl(StepFirstResponderPersonalInfo);\n"],"names":["StepFirstResponderPersonalInfo","intl","verificationService","viewModel","fieldValidationErrors","verificationResponse","failedInstantMatch","hasFailedInstantMatch","options","getOptions","locale","updateFirstResponderViewModel","key","value","nextState","produce","draft","isEmailUpTop","isEmailValidationLoading","showFormFields","emailLookupResponse","emailOnBlur","emailOnKeyDown","handleResendClick","showEmailLookupResponseMessages","enableFormFields","handleOnClickProceedHere","useEmailFirstExperiment","jsxs","PersonalInfoWrapper","jsx","PersonalInfoHeader","Fragment","LoadingSpinnerComponent","Email","FormattedHTMLMessage","newValue","updateFieldValidationErrorsByFieldId","_a","getFieldConfigByFieldId","EmailLookupResponseMessages","ChangeLocaleV2Component","CountryComponentWrapper","_b","FirstResponderStatus","getStatusLabel","FirstResponderStatusDefaultMessagesEnum","_c","getAvailableFirstResponderStatuses","status","FirstResponderOrganization","choice","blankOrganization","getSafe","_d","FirstName","_e","LastName","_f","BirthDate","_g","event","handleEmailOnKeyDown","_h","PhoneNumber","_i","PostalCodeComponent","_j","config","FormFieldCustom","MarketConsentWrapper","_k","ExtraMessage","PersonalInfoStepSubmitButton","VerificationStepsEnum","StepFirstResponderPersonalInfoComponent","injectIntl"],"mappings":";;AAyDO,MAAMA,KAAiC,CAAC;AAAA,EAC7C,MAAAC;AAAA,EACA,qBAAAC;AACF,MAAoD;;AAClD,QAAMC,IAAYD,EAAoB,WAChC,EAAE,uBAAAE,MAA0BF,GAC5BG,IACJH,EAAoB,sBAChBI,IAAqBC,EAAsBF,CAAoB,GAC/DG,IAAUC,EAAW,GAErBC,IAASP,EAAU,aAAa,OAEhCQ,IAAgC,CACpCC,GACAC,MACG;AACH,UAAMC,IAAiDC;AAAAA,MACrDZ;AAAA,MACA,CAACa,MAA+C;AAC7C,QAAAA,EAAMJ,CAAG,IAAYC;AAAA,MAAA;AAAA,IAE1B;AACA,IAAAX,EAAoB,gBAAgBY,CAAS;AAAA,EAC/C,GAIM;AAAA,IACJ,cAAAG;AAAA,IACA,0BAAAC;AAAA,IACA,gBAAAC;AAAA,IACA,qBAAAC;AAA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GACDC;AAAA,kBACE;AAAA,kBACAD;AAAA,kBACAlC;AAAA,gBACF;AAAA,cACF;AAAA,cACA,WAAAC;AAAA,cACA,WAAUoE,IAAAhC,EAAwB,oBAAoB,MAA5C,gBAAAgC,EAA+C;AAAA,YAAA;AAAA,UAC3D;AAAA,UAECzC,gBAAAA,EAAAA,IAAA0C,IAAA,EAAa,qBAAAtE,GAA0C,QAAO,qBAAqB,CAAA;AAAA,UAEpF4B,gBAAAA,EAAA;AAAA,YAAC2C;AAAA,YAAA;AAAA,cACC,MAAMC,GAAsB;AAAA,cAC5B,qBAAAxE;AAAA,cACA,WAAAC;AAAA,cACA,oBAAAG;AAAA,cACA,YACEwB,gBAAAA,EAAA;AAAA,gBAACK;AAAA,gBAAA;AAAA,kBACC,IAAG;AAAA,kBACH,gBAAe;AAAA,gBAAA;AAAA,cAAA;AAAA,YACjB;AAAA,UAAA;AAAA,QAEJ,EAAA,CACF,EACF,CAAA;AAAA,MAAA;AAAA,IAAA;AAAA,EAEJ;AAEJ,GAEawC,KAA0CC,EAAW5E,EAA8B;"}
1
+ {"version":3,"file":"index-Dw4HZdl4.js","sources":["../../src/components/StepFirstResponderPersonalInfo/StepFirstResponderPersonalInfoComponent.tsx"],"sourcesContent":["/* eslint-disable */\n/**\n * TODO - preamble\n */\nimport React from \"react\";\nimport { FormattedHTMLMessage, injectIntl } from \"react-intl\";\nimport { produce } from \"immer\";\n\nimport {\n VerificationStepsEnum,\n FirstResponderStatusDefaultMessagesEnum,\n} from \"../../lib/types/runtimeTypes\";\nimport { hasFailedInstantMatch } from \"../../lib/VerificationService/VerificationServiceHelpers\";\nimport { getSafe } from \"../../lib/utils/getSafe\";\nimport {\n VerificationService,\n FormSelectChoice,\n Organization,\n FirstResponderPersonalInfoViewModel,\n FirstResponderPersonalInfoResponse,\n CustomFormFieldConfig,\n} from \"../../lib/types/types\";\nimport {\n getAvailableFirstResponderStatuses,\n getFieldConfigByFieldId,\n getStatusLabel,\n handleEmailOnKeyDown,\n updateFieldValidationErrorsByFieldId,\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 { MarketConsentWrapperComponent as MarketConsentWrapper } from \"../FormFields/MarketConsentWrapper/MarketConsentWrapperComponent\";\nimport { StatusComponent as FirstResponderStatus } from \"../FormFields/Status/StatusComponent\";\nimport { FirstResponderOrganizationComponent as FirstResponderOrganization } from \"../FormFields/FirstResponderOrganization/FirstResponderOrganizationComponent\";\nimport { PostalCodeComponent } from \"../FormFields/PostalCode/PostalCodeComponent\";\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\";\nimport { blankOrganization } from \"../../lib/types/empties\";\nimport { LoadingSpinnerComponent } from \"../LoadingSpinner/LoadingSpinnerComponent\";\nimport EmailLookupResponseMessages from \"../FormFields/EmailFirstCollectInfo/EmailLookupResponseMessageComponent\";\nimport { useEmailFirstExperiment } from \"../FormFields/EmailFirstCollectInfo/useEmailFirstExperiment\";\n\ninterface StepFirstResponderPersonalInfoComponentProps {\n verificationService: VerificationService;\n intl: any;\n}\n\nexport const StepFirstResponderPersonalInfo = ({\n intl,\n verificationService,\n}: StepFirstResponderPersonalInfoComponentProps) => {\n const viewModel = verificationService.viewModel as FirstResponderPersonalInfoViewModel;\n const { fieldValidationErrors } = verificationService;\n const verificationResponse =\n verificationService.verificationResponse as FirstResponderPersonalInfoResponse;\n const failedInstantMatch = hasFailedInstantMatch(verificationResponse);\n const options = getOptions();\n\n const locale = viewModel.localeChoice.value;\n\n const updateFirstResponderViewModel = (\n key: keyof FirstResponderPersonalInfoViewModel,\n value: any,\n ) => {\n const nextState: FirstResponderPersonalInfoViewModel = produce(\n viewModel,\n (draft: FirstResponderPersonalInfoViewModel) => {\n (draft[key] as any) = value;\n },\n );\n verificationService.updateViewModel(nextState);\n };\n\n // #region collect-info-step-email-first\n\n const {\n isEmailUpTop,\n isEmailValidationLoading,\n showFormFields,\n emailLookupResponse,\n emailOnBlur,\n emailOnKeyDown,\n handleResendClick,\n showEmailLookupResponseMessages,\n enableFormFields,\n handleOnClickProceedHere,\n } = useEmailFirstExperiment(\n verificationService.programId,\n viewModel.email,\n verificationService.verificationResponse.segment,\n );\n // #endregion collect-info-step-email-first\n\n return (\n <PersonalInfoWrapper\n verificationService={verificationService}\n step={verificationResponse.currentStep}\n >\n <PersonalInfoHeader\n verificationService={verificationService}\n classNameIdentifier=\"first-responder\"\n />\n\n {\n // #region email-first-experiment\n isEmailUpTop && (\n <>\n <div className=\"email-input-wrapper\">\n {isEmailValidationLoading && (\n <div className=\"email-input-wrapper-frame\">\n <div className=\"sid-spinner scaled\">\n <LoadingSpinnerComponent />\n </div>\n </div>\n )}\n <Email\n value={viewModel.email}\n isErrored={!!fieldValidationErrors.email}\n explanation={\n <FormattedHTMLMessage\n id=\"emailExplanation\"\n defaultMessage=\"Personal email address is recommended\"\n />\n }\n onChange={(newValue) => {\n updateFirstResponderViewModel(\"email\", newValue);\n updateFieldValidationErrorsByFieldId(\"email\", newValue, verificationService);\n }}\n onKeyDown={emailOnKeyDown}\n onBlur={emailOnBlur}\n disabled={getFieldConfigByFieldId(\"email\")?.disabled}\n />\n </div>\n </>\n ) // #endregion email-first-experiment\n }\n {showEmailLookupResponseMessages && emailLookupResponse && (\n <EmailLookupResponseMessages\n emailLookupResponse={emailLookupResponse}\n onResendClick={handleResendClick}\n onHandleClickLink={handleOnClickProceedHere}\n />\n )}\n {showFormFields && (\n <>\n <div className={enableFormFields || !isEmailUpTop ? \"\" : \"sid-disable-elements\"}>\n <ChangeLocaleV2Component verificationService={verificationService} />\n <CountryComponentWrapper\n verificationService={verificationService}\n disabled={getFieldConfigByFieldId(\"country\")?.disabled}\n />\n <FirstResponderStatus\n segmentId=\"first-responder\"\n value={{\n value: viewModel.status,\n label: getStatusLabel(\n intl,\n viewModel.status,\n FirstResponderStatusDefaultMessagesEnum,\n ),\n }}\n isErrored={!!fieldValidationErrors.status}\n errorId=\"invalidFirstResponderStatus\"\n disabled={getFieldConfigByFieldId(\"status\")?.disabled}\n options={getAvailableFirstResponderStatuses(\n intl,\n verificationResponse.availableStatuses,\n )}\n onChange={(status: FormSelectChoice) => {\n updateFirstResponderViewModel(\"status\", status ? (status.value as string) : \"\");\n updateFieldValidationErrorsByFieldId(\n \"status\",\n status ? (status.value as string) : \"\",\n verificationService,\n );\n }}\n />\n\n <FirstResponderOrganization\n isErrored={!!fieldValidationErrors.organization}\n onChange={(choice: Organization = blankOrganization.organization) => {\n const nextState = produce(viewModel, (draft) => {\n draft.organization = {\n id: choice.id,\n idExtended: choice.idExtended,\n name: choice.name,\n source: choice.source,\n };\n\n if (viewModel.organization && viewModel.organization.source !== undefined) {\n draft.organization.source = viewModel.organization.source;\n }\n\n if (\n getSafe(() => verificationService.programTheme.openOrgSearchEnabled) &&\n getSafe(() => choice.id) === 0 &&\n getSafe(() => choice.name, \"\").length > 0\n ) {\n draft.postalCode = viewModel.postalCode ? viewModel.postalCode : \"\";\n } else if (viewModel.postalCode || viewModel.postalCode === \"\") {\n delete draft.postalCode;\n }\n });\n\n verificationService.updateViewModel(nextState);\n updateFieldValidationErrorsByFieldId(\"organization\", choice, verificationService);\n }}\n value={\n (verificationService.viewModel as FirstResponderPersonalInfoViewModel).organization\n }\n verificationService={verificationService}\n disabled={getFieldConfigByFieldId(\"organization\")?.disabled}\n />\n\n <div className=\"sid-names\">\n <FirstName\n value={viewModel.firstName}\n isErrored={!!fieldValidationErrors.firstName}\n disabled={getFieldConfigByFieldId(\"firstName\")?.disabled}\n onChange={(newValue) => {\n updateFirstResponderViewModel(\"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 updateFirstResponderViewModel(\"lastName\", newValue);\n updateFieldValidationErrorsByFieldId(\"lastName\", newValue, verificationService);\n }}\n />\n </div>\n\n <BirthDate\n errorId={fieldValidationErrors.birthDate}\n locale={locale}\n onChange={(newValue) => {\n updateFirstResponderViewModel(\"birthDate\", newValue);\n updateFieldValidationErrorsByFieldId(\"birthDate\", newValue, verificationService);\n }}\n value={viewModel.birthDate}\n disabled={getFieldConfigByFieldId(\"birthDate\")?.disabled}\n />\n {!isEmailUpTop && (\n <Email\n value={viewModel.email}\n isErrored={!!fieldValidationErrors.email}\n explanation={\n <FormattedHTMLMessage\n id=\"emailExplanation\"\n defaultMessage=\"Needed to send you your unique code\"\n />\n }\n onChange={(newValue) => {\n updateFirstResponderViewModel(\"email\", newValue);\n updateFieldValidationErrorsByFieldId(\"email\", newValue, verificationService);\n }}\n onKeyDown={(event) => handleEmailOnKeyDown(event)}\n disabled={getFieldConfigByFieldId(\"email\")?.disabled}\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 updateFirstResponderViewModel(\"phoneNumber\", newValue);\n updateFieldValidationErrorsByFieldId(\n \"phoneNumber\",\n newValue,\n verificationService,\n );\n }}\n selectedCountryCode={viewModel.countryChoice && viewModel.countryChoice.value}\n disabled={getFieldConfigByFieldId(\"phoneNumber\")?.disabled}\n />\n ) : null}\n {getSafe(() => verificationService.programTheme.openOrgSearchEnabled) &&\n getSafe(() => viewModel.organization.id) === 0 &&\n getSafe(() => viewModel.organization.name, \"\").length > 0 && (\n <PostalCodeComponent\n isErrored={!!fieldValidationErrors.postalCode}\n onChange={(newValue) => {\n updateFirstResponderViewModel(\"postalCode\", newValue);\n updateFieldValidationErrorsByFieldId(\n \"postalCode\",\n newValue,\n verificationService,\n );\n }}\n value={viewModel.postalCode}\n disabled={getFieldConfigByFieldId(\"postalCode\")?.disabled}\n />\n )}\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 updateFirstResponderViewModel(\"metadata\", {\n ...verificationService.viewModel.metadata,\n marketConsentValue: newValue,\n });\n updateFieldValidationErrorsByFieldId(\n \"marketConsentValue\",\n newValue,\n verificationService,\n );\n }}\n viewModel={viewModel}\n disabled={getFieldConfigByFieldId(\"marketConsentValue\")?.disabled}\n />\n\n <ExtraMessage verificationService={verificationService} suffix=\"CollectAboveSubmit\" />\n\n <PersonalInfoStepSubmitButton\n step={VerificationStepsEnum.collectFirstResponderPersonalInfo}\n verificationService={verificationService}\n viewModel={viewModel}\n failedInstantMatch={failedInstantMatch}\n buttonText={\n <FormattedHTMLMessage\n id=\"step.personalInfo.submitButtonText\"\n defaultMessage=\"Verify My First Responder Status\"\n />\n }\n />\n </div>\n </>\n )}\n </PersonalInfoWrapper>\n );\n};\n\nexport const StepFirstResponderPersonalInfoComponent = injectIntl(StepFirstResponderPersonalInfo);\n"],"names":["StepFirstResponderPersonalInfo","intl","verificationService","viewModel","fieldValidationErrors","verificationResponse","failedInstantMatch","hasFailedInstantMatch","options","getOptions","locale","updateFirstResponderViewModel","key","value","nextState","produce","draft","isEmailUpTop","isEmailValidationLoading","showFormFields","emailLookupResponse","emailOnBlur","emailOnKeyDown","handleResendClick","showEmailLookupResponseMessages","enableFormFields","handleOnClickProceedHere","useEmailFirstExperiment","jsxs","PersonalInfoWrapper","jsx","PersonalInfoHeader","Fragment","LoadingSpinnerComponent","Email","FormattedHTMLMessage","newValue","updateFieldValidationErrorsByFieldId","_a","getFieldConfigByFieldId","EmailLookupResponseMessages","ChangeLocaleV2Component","CountryComponentWrapper","_b","FirstResponderStatus","getStatusLabel","FirstResponderStatusDefaultMessagesEnum","_c","getAvailableFirstResponderStatuses","status","FirstResponderOrganization","choice","blankOrganization","getSafe","_d","FirstName","_e","LastName","_f","BirthDate","_g","event","handleEmailOnKeyDown","_h","PhoneNumber","_i","PostalCodeComponent","_j","config","FormFieldCustom","MarketConsentWrapper","_k","ExtraMessage","PersonalInfoStepSubmitButton","VerificationStepsEnum","StepFirstResponderPersonalInfoComponent","injectIntl"],"mappings":";;AAyDO,MAAMA,KAAiC,CAAC;AAAA,EAC7C,MAAAC;AAAA,EACA,qBAAAC;AACF,MAAoD;;AAClD,QAAMC,IAAYD,EAAoB,WAChC,EAAE,uBAAAE,MAA0BF,GAC5BG,IACJH,EAAoB,sBAChBI,IAAqBC,EAAsBF,CAAoB,GAC/DG,IAAUC,EAAW,GAErBC,IAASP,EAAU,aAAa,OAEhCQ,IAAgC,CACpCC,GACAC,MACG;AACH,UAAMC,IAAiDC;AAAAA,MACrDZ;AAAA,MACA,CAACa,MAA+C;AAC7C,QAAAA,EAAMJ,CAAG,IAAYC;AAAA,MAAA;AAAA,IAE1B;AACA,IAAAX,EAAoB,gBAAgBY,CAAS;AAAA,EAC/C,GAIM;AAAA,IACJ,cAA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,GAAGT,EAAoB,UAAU;AAAA,kBACjC,oBAAoBkC;AAAA,gBAAA,CACrB,GACDC;AAAA,kBACE;AAAA,kBACAD;AAAA,kBACAlC;AAAA,gBACF;AAAA,cACF;AAAA,cACA,WAAAC;AAAA,cACA,WAAUoE,IAAAhC,EAAwB,oBAAoB,MAA5C,gBAAAgC,EAA+C;AAAA,YAAA;AAAA,UAC3D;AAAA,UAECzC,gBAAAA,EAAAA,IAAA0C,IAAA,EAAa,qBAAAtE,GAA0C,QAAO,qBAAqB,CAAA;AAAA,UAEpF4B,gBAAAA,EAAA;AAAA,YAAC2C;AAAA,YAAA;AAAA,cACC,MAAMC,GAAsB;AAAA,cAC5B,qBAAAxE;AAAA,cACA,WAAAC;AAAA,cACA,oBAAAG;AAAA,cACA,YACEwB,gBAAAA,EAAA;AAAA,gBAACK;AAAA,gBAAA;AAAA,kBACC,IAAG;AAAA,kBACH,gBAAe;AAAA,gBAAA;AAAA,cAAA;AAAA,YACjB;AAAA,UAAA;AAAA,QAEJ,EAAA,CACF,EACF,CAAA;AAAA,MAAA;AAAA,IAAA;AAAA,EAEJ;AAEJ,GAEawC,KAA0CC,EAAW5E,EAA8B;"}
@@ -1,11 +1,11 @@
1
1
 
2
2
  /**
3
- * VERSION: 2.115.0-alpha.2
4
- * BUILD_TIMESTAMP: 1751929030742
5
- * BUILD_DATE: Mon Jul 07 2025 22:57:10 GMT+0000 (Coordinated Universal Time)
3
+ * VERSION: 2.115.0-alpha.3
4
+ * BUILD_TIMESTAMP: 1751931324976
5
+ * BUILD_DATE: Mon Jul 07 2025 23:35:24 GMT+0000 (Coordinated Universal Time)
6
6
  * BUILD_COMMIT: 9b953bf464bb46df40df3f4b766e06f47b82b5aa
7
7
  */
8
- import { i as A, h as T, _ as k, $ as q, d as B, R as L, u as d, j as o, t as W, v as w, P as H, w as U, Q as K, g as l, x as O, y as z, W as G, a0 as Q, z as _, B as $, E as J, e as X, D as Y, G as Z, M as S, H as v, f as ee, V as se, b as ae, a1 as oe } from "../sheerid.js";
8
+ import { i as A, h as T, _ as k, $ as q, d as B, R as L, u as d, j as o, t as U, v as w, P as H, w as O, O as W, g as l, x as K, y as z, U as G, a0 as _, z as $, B as J, E as Q, e as X, D as Y, G as Z, M as S, H as v, f as ee, V as se, b as ae, a1 as oe } from "../sheerid.js";
9
9
  import { u as te } from "./useCollectFieldsEndpoint-kmLFyUA-.js";
10
10
  const de = ({ verificationService: s, intl: j }) => {
11
11
  var p, C, h, b, i, g, N, x, y;
@@ -29,15 +29,15 @@ const de = ({ verificationService: s, intl: j }) => {
29
29
  return L.useEffect(() => {
30
30
  d("phoneNumber", a.phoneNumber, s);
31
31
  }, [a.country]), /* @__PURE__ */ o.jsxs(
32
- W,
32
+ U,
33
33
  {
34
34
  verificationService: s,
35
35
  step: r.currentStep,
36
36
  children: [
37
37
  /* @__PURE__ */ o.jsx(H, { verificationService: s, classNameIdentifier: "age" }),
38
- /* @__PURE__ */ o.jsx(U, { verificationService: s }),
38
+ /* @__PURE__ */ o.jsx(O, { verificationService: s }),
39
39
  /* @__PURE__ */ o.jsx(
40
- K,
40
+ W,
41
41
  {
42
42
  verificationService: s,
43
43
  disabled: (p = l("country")) == null ? void 0 : p.disabled
@@ -45,7 +45,7 @@ const de = ({ verificationService: s, intl: j }) => {
45
45
  ),
46
46
  /* @__PURE__ */ o.jsxs("div", { className: "sid-names", children: [
47
47
  /* @__PURE__ */ o.jsx(
48
- O,
48
+ K,
49
49
  {
50
50
  value: a.firstName,
51
51
  isErrored: !!t.firstName,
@@ -80,7 +80,7 @@ const de = ({ verificationService: s, intl: j }) => {
80
80
  }
81
81
  ),
82
82
  u("city") && /* @__PURE__ */ o.jsx(
83
- Q,
83
+ _,
84
84
  {
85
85
  value: a.city,
86
86
  isRequired: !0,
@@ -93,7 +93,7 @@ const de = ({ verificationService: s, intl: j }) => {
93
93
  }
94
94
  ),
95
95
  u("address1") && /* @__PURE__ */ o.jsx(
96
- _,
96
+ $,
97
97
  {
98
98
  value: a.address1,
99
99
  isRequired: !0,
@@ -105,7 +105,7 @@ const de = ({ verificationService: s, intl: j }) => {
105
105
  }
106
106
  ),
107
107
  u("postalCode") && /* @__PURE__ */ o.jsx(
108
- $,
108
+ J,
109
109
  {
110
110
  isErrored: !!t.postalCode,
111
111
  onChange: (e) => {
@@ -116,7 +116,7 @@ const de = ({ verificationService: s, intl: j }) => {
116
116
  }
117
117
  ),
118
118
  /* @__PURE__ */ o.jsx(
119
- J,
119
+ Q,
120
120
  {
121
121
  value: a.email,
122
122
  isErrored: !!t.email,
@@ -1 +1 @@
1
- {"version":3,"file":"index-DhGg9lvf.js","sources":["../../src/components/StepAgePersonalInfo/StepAgePersonalInfoComponent.tsx"],"sourcesContent":["/**\n * TODO - preamble\n */\nimport React from \"react\";\nimport { FormattedHTMLMessage, InjectedIntl, injectIntl } from \"react-intl\";\n\nimport { useCollectFieldsEndpoint } from \"@/lib/ServerApi/useCollectFieldsEndpoint\";\nimport { VerificationStepsEnum } from \"../../lib/types/runtimeTypes\";\nimport { hasFailedInstantMatch } from \"../../lib/VerificationService/VerificationServiceHelpers\";\nimport { getSafe } from \"../../lib/utils/getSafe\";\nimport {\n VerificationService,\n AgePersonalInfoViewModel,\n AgePersonalInfoResponse,\n FormSelectChoice,\n Country,\n FieldDescription,\n CustomFormFieldConfig,\n} from \"../../lib/types/types\";\n\nimport {\n handleEmailOnKeyDown,\n updateFieldValidationErrorsByFieldId,\n getAvailableCountryChoices,\n getDefaultCountryChoice,\n produceDraftViewModel,\n getFieldConfigByFieldId,\n} from \"../../lib/utils/stepComponentHelpers/stepComponentHelpers\";\n\nimport { MarketConsentWrapperComponent as MarketConsentWrapper } from \"../FormFields/MarketConsentWrapper/MarketConsentWrapperComponent\";\nimport { PhoneNumberComponent as PhoneNumber } from \"../FormFields/PhoneNumber/PhoneNumberComponent\";\nimport { FirstNameComponent as FirstName } from \"../FormFields/FirstName/FirstNameComponent\";\nimport { LastNameComponent as LastName } from \"../FormFields/LastName/LastNameComponent\";\nimport { EmailComponent as Email } from \"../FormFields/Email/EmailComponent\";\nimport { BirthDateComponent as BirthDate } from \"../FormFields/BirthDate/BirthDateComponent\";\nimport { PostalCodeComponent as PostalCode } from \"../FormFields/PostalCode/PostalCodeComponent\";\n\nimport { CountryComponentWrapper } from \"../FormFields/Country/CountryComponentWrapper\";\nimport { CityComponent } from \"../FormFields/City/City\";\nimport { AddressComponent } from \"../FormFields/Address/AddressComponent\";\nimport { getOptions } from \"../../options/options\";\nimport { FormFieldCustom } from \"../FormFields/FormFieldCustom/FormFieldCustom\";\nimport { ExtraMessage } from \"../ExtraMessage\";\nimport { ChangeLocaleV2Component } from \"../FormFields/ChangeLocale/ChangeLocaleComponent\";\nimport { PersonalInfoWrapper } from \"../PersonalInfoStepWrapper/PersonalInfoStepWrapper\";\nimport { PersonalInfoStepSubmitButton } from \"../PersonalInfoStepSubmitButton/PersonalInfoStepSubmitButton\";\nimport { PersonalInfoHeader } from \"../FormHeader/StepHeaders/PersonalInfoHeaderComponent\";\n\ninterface StepAgePersonalInfoComponentProps {\n intl: InjectedIntl;\n verificationService: VerificationService;\n}\n\nconst StepAgePersonalInfo = ({ verificationService, intl }: StepAgePersonalInfoComponentProps) => {\n const viewModel = verificationService.viewModel as AgePersonalInfoViewModel;\n const { fieldValidationErrors } = verificationService;\n const verificationResponse = verificationService.verificationResponse as AgePersonalInfoResponse;\n const failedInstantMatch = hasFailedInstantMatch(verificationResponse);\n const countryChoices: FormSelectChoice<Country, string>[] = getAvailableCountryChoices(\n verificationService.programTheme,\n intl,\n );\n const defaultCountryChoice: FormSelectChoice<Country, string> =\n getDefaultCountryChoice(countryChoices);\n const safeCountryValue = getSafe(() => viewModel.countryChoice.value, defaultCountryChoice.value);\n const defaultRequiredFields: FieldDescription[] =\n safeCountryValue === \"US\" ? [{ key: \"postalCode\" }] : [];\n\n // PhoneNumber is required for all non-US age programs and if smsLoop is enabled.\n const showPhoneNumber =\n safeCountryValue !== \"US\" ||\n verificationService.programTheme.isSmsNotifierConfigured ||\n verificationService.programTheme.smsLoopEnabled;\n const phoneNumberRequired =\n safeCountryValue !== \"US\" || verificationService.programTheme.smsLoopEnabled;\n\n const locale = viewModel.localeChoice.value;\n const options = getOptions();\n\n if (\n !fieldValidationErrors.phoneNumber &&\n verificationResponse.errorIds &&\n verificationResponse.errorIds.includes(\"invalidPhoneNumber\")\n ) {\n verificationService.updateFieldValidationErrors({\n ...fieldValidationErrors,\n phoneNumber: \"invalidPhoneNumber\",\n });\n }\n\n const updateAgeViewModel = (key: keyof AgePersonalInfoViewModel, value: any) => {\n const nextState: AgePersonalInfoViewModel = produceDraftViewModel(viewModel, key, value);\n verificationService.updateViewModel(nextState);\n };\n\n const { isFieldRequired } = useCollectFieldsEndpoint({\n verificationId: verificationResponse.verificationId,\n currentStep: verificationResponse.currentStep,\n viewModel,\n defaultRequiredFields,\n });\n\n React.useEffect(() => {\n // When country changes re-check the phone number validation\n updateFieldValidationErrorsByFieldId(\"phoneNumber\", viewModel.phoneNumber, verificationService);\n }, [viewModel.country]);\n\n return (\n <PersonalInfoWrapper\n verificationService={verificationService}\n step={verificationResponse.currentStep}\n >\n <PersonalInfoHeader verificationService={verificationService} classNameIdentifier=\"age\" />\n\n <ChangeLocaleV2Component verificationService={verificationService} />\n <CountryComponentWrapper\n verificationService={verificationService}\n disabled={getFieldConfigByFieldId(\"country\")?.disabled}\n />\n\n <div className=\"sid-names\">\n <FirstName\n value={viewModel.firstName}\n isErrored={!!fieldValidationErrors.firstName}\n disabled={getFieldConfigByFieldId(\"firstName\")?.disabled}\n onChange={(newValue) => {\n updateAgeViewModel(\"firstName\", newValue);\n updateFieldValidationErrorsByFieldId(\"firstName\", newValue, verificationService);\n }}\n />\n\n <LastName\n value={viewModel.lastName}\n isErrored={!!fieldValidationErrors.lastName}\n disabled={getFieldConfigByFieldId(\"lastName\")?.disabled}\n onChange={(newValue) => {\n updateAgeViewModel(\"lastName\", newValue);\n updateFieldValidationErrorsByFieldId(\"lastName\", newValue, verificationService);\n }}\n />\n </div>\n <BirthDate\n errorId={fieldValidationErrors.birthDate}\n locale={locale}\n onChange={(newValue) => {\n updateAgeViewModel(\"birthDate\", newValue);\n updateFieldValidationErrorsByFieldId(\"birthDate\", newValue, verificationService);\n }}\n value={viewModel.birthDate}\n disabled={getFieldConfigByFieldId(\"birthDate\")?.disabled}\n />\n {isFieldRequired(\"city\") && (\n <CityComponent\n value={viewModel.city}\n isRequired\n isErrored={!!fieldValidationErrors.city}\n errorId={fieldValidationErrors.city}\n disabled={getFieldConfigByFieldId(\"city\")?.disabled}\n onChange={(value) => {\n updateAgeViewModel(\"city\", value);\n updateFieldValidationErrorsByFieldId(\"city\", value, verificationService);\n }}\n />\n )}\n {isFieldRequired(\"address1\") && (\n <AddressComponent\n value={viewModel.address1}\n isRequired\n isErrored={!!fieldValidationErrors.address1}\n errorId={fieldValidationErrors.address1}\n onChange={(value) => {\n updateAgeViewModel(\"address1\", value);\n updateFieldValidationErrorsByFieldId(\"address1\", value, verificationService);\n }}\n />\n )}\n {isFieldRequired(\"postalCode\") && (\n <PostalCode\n isErrored={!!fieldValidationErrors.postalCode}\n onChange={(newValue) => {\n updateAgeViewModel(\"postalCode\", newValue);\n updateFieldValidationErrorsByFieldId(\"postalCode\", newValue, verificationService);\n }}\n value={viewModel.postalCode}\n disabled={getFieldConfigByFieldId(\"postalCode\")?.disabled}\n />\n )}\n <Email\n value={viewModel.email}\n isErrored={!!fieldValidationErrors.email}\n onChange={(newValue) => {\n updateAgeViewModel(\"email\", newValue);\n updateFieldValidationErrorsByFieldId(\"email\", newValue, verificationService);\n }}\n onKeyDown={(event) => handleEmailOnKeyDown(event)}\n disabled={getFieldConfigByFieldId(\"email\")?.disabled}\n />\n\n {showPhoneNumber ? (\n <PhoneNumber\n isRequired={phoneNumberRequired}\n value={viewModel.phoneNumber}\n isErrored={!!fieldValidationErrors.phoneNumber}\n onChange={(newValue) => {\n updateAgeViewModel(\"phoneNumber\", newValue);\n updateFieldValidationErrorsByFieldId(\"phoneNumber\", newValue, verificationService);\n }}\n selectedCountryCode={viewModel.countryChoice && viewModel.countryChoice.value}\n disabled={getFieldConfigByFieldId(\"phoneNumber\")?.disabled}\n />\n ) : null}\n\n {options.customFormFields.map((config: CustomFormFieldConfig) => (\n <FormFieldCustom config={config} verificationService={verificationService} />\n ))}\n\n <MarketConsentWrapper\n verificationService={verificationService}\n isErrored={!!fieldValidationErrors.marketConsentValue}\n onChange={(newValue) => {\n updateAgeViewModel(\"metadata\", {\n ...verificationService.viewModel.metadata,\n marketConsentValue: newValue,\n });\n updateFieldValidationErrorsByFieldId(\"marketConsentValue\", newValue, verificationService);\n }}\n viewModel={viewModel}\n disabled={getFieldConfigByFieldId(\"marketConsentValue\")?.disabled}\n />\n\n <ExtraMessage verificationService={verificationService} suffix=\"CollectAboveSubmit\" />\n\n <PersonalInfoStepSubmitButton\n step={VerificationStepsEnum.collectAgePersonalInfo}\n verificationService={verificationService}\n viewModel={viewModel}\n failedInstantMatch={failedInstantMatch}\n buttonText={\n <FormattedHTMLMessage\n id=\"step.personalInfo.submitButtonText\"\n defaultMessage=\"Verify and continue\"\n />\n }\n />\n </PersonalInfoWrapper>\n );\n};\n\nexport const StepAgePersonalInfoComponent = injectIntl(StepAgePersonalInfo);\n"],"names":["StepAgePersonalInfo","verificationService","intl","viewModel","fieldValidationErrors","verificationResponse","failedInstantMatch","hasFailedInstantMatch","countryChoices","getAvailableCountryChoices","defaultCountryChoice","getDefaultCountryChoice","safeCountryValue","getSafe","defaultRequiredFields","showPhoneNumber","phoneNumberRequired","locale","options","getOptions","updateAgeViewModel","key","value","nextState","produceDraftViewModel","isFieldRequired","useCollectFieldsEndpoint","React","updateFieldValidationErrorsByFieldId","jsxs","PersonalInfoWrapper","jsx","PersonalInfoHeader","ChangeLocaleV2Component","CountryComponentWrapper","_a","getFieldConfigByFieldId","FirstName","_b","newValue","LastName","_c","BirthDate","_d","CityComponent","_e","AddressComponent","PostalCode","_f","Email","event","handleEmailOnKeyDown","_g","PhoneNumber","_h","config","FormFieldCustom","MarketConsentWrapper","_i","ExtraMessage","PersonalInfoStepSubmitButton","VerificationStepsEnum","FormattedHTMLMessage","StepAgePersonalInfoComponent","injectIntl"],"mappings":";;AAqDA,MAAMA,KAAsB,CAAC,EAAE,qBAAAC,GAAqB,MAAAC,QAA8C;;AAChG,QAAMC,IAAYF,EAAoB,WAChC,EAAE,uBAAAG,MAA0BH,GAC5BI,IAAuBJ,EAAoB,sBAC3CK,IAAqBC,EAAsBF,CAAoB,GAC/DG,IAAsDC;AAAA,IAC1DR,EAAoB;AAAA,IACpBC;AAAA,EACF,GACMQ,IACJC,EAAwBH,CAAc,GAClCI,IAAmBC,EAAQ,MAAMV,EAAU,cAAc,OAAOO,EAAqB,KAAK,GAC1FI,IACJF,MAAqB,OAAO,CAAC,EAAE,KAAK,aAAc,CAAA,IAAI,CAAC,GAGnDG,IACJH,MAAqB,QACrBX,EAAoB,aAAa,2BACjCA,EAAoB,aAAa,gBAC7Be,IACJJ,MAAqB,QAAQX,EAAoB,aAAa,gBAE1DgB,IAASd,EAAU,aAAa,OAChCe,IAAUC,EAAW;AAGzB,EAAA,CAACf,EAAsB,eACvBC,EAAqB,YACrBA,EAAqB,SAAS,SAAS,oBAAoB,KAE3DJ,EAAoB,4BAA4B;AAAA,IAC9C,GAAGG;AAAA,IACH,aAAa;AAAA,EAAA,CACd;AAGG,QAAAgB,IAAqB,CAACC,GAAqCC,MAAe;AAC9E,UAAMC,IAAsCC,GAAsBrB,GAAWkB,GAAKC,CAAK;AACvF,IAAArB,EAAoB,gBAAgBsB,CAAS;AAAA,EAC/C,GAEM,EAAE,iBAAAE,EAAgB,IAAIC,GAAyB;AAAA,IACnD,gBAAgBrB,EAAqB;AAAA,IACrC,aAAaA,EAAqB;AAAA,IAClC,WAAAF;AAAA,IACA,uBAAAW;AAAA,EAAA,CACD;AAED,SAAAa,EAAM,UAAU,MAAM;AAEiB,IAAAC,EAAA,eAAezB,EAAU,aAAa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AAA,sBAAsBW,GAAUtC,CAAmB;AAAA,YAC1F;AAAA,YACA,WAAAE;AAAA,YACA,WAAUuD,IAAAtB,EAAwB,oBAAoB,MAA5C,gBAAAsB,EAA+C;AAAA,UAAA;AAAA,QAC3D;AAAA,QAEC3B,gBAAAA,EAAAA,IAAA4B,GAAA,EAAa,qBAAA1D,GAA0C,QAAO,qBAAqB,CAAA;AAAA,QAEpF8B,gBAAAA,EAAA;AAAA,UAAC6B;AAAA,UAAA;AAAA,YACC,MAAMC,GAAsB;AAAA,YAC5B,qBAAA5D;AAAA,YACA,WAAAE;AAAA,YACA,oBAAAG;AAAA,YACA,YACEyB,gBAAAA,EAAA;AAAA,cAAC+B;AAAA,cAAA;AAAA,gBACC,IAAG;AAAA,gBACH,gBAAe;AAAA,cAAA;AAAA,YAAA;AAAA,UACjB;AAAA,QAAA;AAAA,MAEJ;AAAA,IAAA;AAAA,EACF;AAEJ,GAEaC,KAA+BC,EAAWhE,EAAmB;"}
1
+ {"version":3,"file":"index-DypbXiPM.js","sources":["../../src/components/StepAgePersonalInfo/StepAgePersonalInfoComponent.tsx"],"sourcesContent":["/**\n * TODO - preamble\n */\nimport React from \"react\";\nimport { FormattedHTMLMessage, InjectedIntl, injectIntl } from \"react-intl\";\n\nimport { useCollectFieldsEndpoint } from \"@/lib/ServerApi/useCollectFieldsEndpoint\";\nimport { VerificationStepsEnum } from \"../../lib/types/runtimeTypes\";\nimport { hasFailedInstantMatch } from \"../../lib/VerificationService/VerificationServiceHelpers\";\nimport { getSafe } from \"../../lib/utils/getSafe\";\nimport {\n VerificationService,\n AgePersonalInfoViewModel,\n AgePersonalInfoResponse,\n FormSelectChoice,\n Country,\n FieldDescription,\n CustomFormFieldConfig,\n} from \"../../lib/types/types\";\n\nimport {\n handleEmailOnKeyDown,\n updateFieldValidationErrorsByFieldId,\n getAvailableCountryChoices,\n getDefaultCountryChoice,\n produceDraftViewModel,\n getFieldConfigByFieldId,\n} from \"../../lib/utils/stepComponentHelpers/stepComponentHelpers\";\n\nimport { MarketConsentWrapperComponent as MarketConsentWrapper } from \"../FormFields/MarketConsentWrapper/MarketConsentWrapperComponent\";\nimport { PhoneNumberComponent as PhoneNumber } from \"../FormFields/PhoneNumber/PhoneNumberComponent\";\nimport { FirstNameComponent as FirstName } from \"../FormFields/FirstName/FirstNameComponent\";\nimport { LastNameComponent as LastName } from \"../FormFields/LastName/LastNameComponent\";\nimport { EmailComponent as Email } from \"../FormFields/Email/EmailComponent\";\nimport { BirthDateComponent as BirthDate } from \"../FormFields/BirthDate/BirthDateComponent\";\nimport { PostalCodeComponent as PostalCode } from \"../FormFields/PostalCode/PostalCodeComponent\";\n\nimport { CountryComponentWrapper } from \"../FormFields/Country/CountryComponentWrapper\";\nimport { CityComponent } from \"../FormFields/City/City\";\nimport { AddressComponent } from \"../FormFields/Address/AddressComponent\";\nimport { getOptions } from \"../../options/options\";\nimport { FormFieldCustom } from \"../FormFields/FormFieldCustom/FormFieldCustom\";\nimport { ExtraMessage } from \"../ExtraMessage\";\nimport { ChangeLocaleV2Component } from \"../FormFields/ChangeLocale/ChangeLocaleComponent\";\nimport { PersonalInfoWrapper } from \"../PersonalInfoStepWrapper/PersonalInfoStepWrapper\";\nimport { PersonalInfoStepSubmitButton } from \"../PersonalInfoStepSubmitButton/PersonalInfoStepSubmitButton\";\nimport { PersonalInfoHeader } from \"../FormHeader/StepHeaders/PersonalInfoHeaderComponent\";\n\ninterface StepAgePersonalInfoComponentProps {\n intl: InjectedIntl;\n verificationService: VerificationService;\n}\n\nconst StepAgePersonalInfo = ({ verificationService, intl }: StepAgePersonalInfoComponentProps) => {\n const viewModel = verificationService.viewModel as AgePersonalInfoViewModel;\n const { fieldValidationErrors } = verificationService;\n const verificationResponse = verificationService.verificationResponse as AgePersonalInfoResponse;\n const failedInstantMatch = hasFailedInstantMatch(verificationResponse);\n const countryChoices: FormSelectChoice<Country, string>[] = getAvailableCountryChoices(\n verificationService.programTheme,\n intl,\n );\n const defaultCountryChoice: FormSelectChoice<Country, string> =\n getDefaultCountryChoice(countryChoices);\n const safeCountryValue = getSafe(() => viewModel.countryChoice.value, defaultCountryChoice.value);\n const defaultRequiredFields: FieldDescription[] =\n safeCountryValue === \"US\" ? [{ key: \"postalCode\" }] : [];\n\n // PhoneNumber is required for all non-US age programs and if smsLoop is enabled.\n const showPhoneNumber =\n safeCountryValue !== \"US\" ||\n verificationService.programTheme.isSmsNotifierConfigured ||\n verificationService.programTheme.smsLoopEnabled;\n const phoneNumberRequired =\n safeCountryValue !== \"US\" || verificationService.programTheme.smsLoopEnabled;\n\n const locale = viewModel.localeChoice.value;\n const options = getOptions();\n\n if (\n !fieldValidationErrors.phoneNumber &&\n verificationResponse.errorIds &&\n verificationResponse.errorIds.includes(\"invalidPhoneNumber\")\n ) {\n verificationService.updateFieldValidationErrors({\n ...fieldValidationErrors,\n phoneNumber: \"invalidPhoneNumber\",\n });\n }\n\n const updateAgeViewModel = (key: keyof AgePersonalInfoViewModel, value: any) => {\n const nextState: AgePersonalInfoViewModel = produceDraftViewModel(viewModel, key, value);\n verificationService.updateViewModel(nextState);\n };\n\n const { isFieldRequired } = useCollectFieldsEndpoint({\n verificationId: verificationResponse.verificationId,\n currentStep: verificationResponse.currentStep,\n viewModel,\n defaultRequiredFields,\n });\n\n React.useEffect(() => {\n // When country changes re-check the phone number validation\n updateFieldValidationErrorsByFieldId(\"phoneNumber\", viewModel.phoneNumber, verificationService);\n }, [viewModel.country]);\n\n return (\n <PersonalInfoWrapper\n verificationService={verificationService}\n step={verificationResponse.currentStep}\n >\n <PersonalInfoHeader verificationService={verificationService} classNameIdentifier=\"age\" />\n\n <ChangeLocaleV2Component verificationService={verificationService} />\n <CountryComponentWrapper\n verificationService={verificationService}\n disabled={getFieldConfigByFieldId(\"country\")?.disabled}\n />\n\n <div className=\"sid-names\">\n <FirstName\n value={viewModel.firstName}\n isErrored={!!fieldValidationErrors.firstName}\n disabled={getFieldConfigByFieldId(\"firstName\")?.disabled}\n onChange={(newValue) => {\n updateAgeViewModel(\"firstName\", newValue);\n updateFieldValidationErrorsByFieldId(\"firstName\", newValue, verificationService);\n }}\n />\n\n <LastName\n value={viewModel.lastName}\n isErrored={!!fieldValidationErrors.lastName}\n disabled={getFieldConfigByFieldId(\"lastName\")?.disabled}\n onChange={(newValue) => {\n updateAgeViewModel(\"lastName\", newValue);\n updateFieldValidationErrorsByFieldId(\"lastName\", newValue, verificationService);\n }}\n />\n </div>\n <BirthDate\n errorId={fieldValidationErrors.birthDate}\n locale={locale}\n onChange={(newValue) => {\n updateAgeViewModel(\"birthDate\", newValue);\n updateFieldValidationErrorsByFieldId(\"birthDate\", newValue, verificationService);\n }}\n value={viewModel.birthDate}\n disabled={getFieldConfigByFieldId(\"birthDate\")?.disabled}\n />\n {isFieldRequired(\"city\") && (\n <CityComponent\n value={viewModel.city}\n isRequired\n isErrored={!!fieldValidationErrors.city}\n errorId={fieldValidationErrors.city}\n disabled={getFieldConfigByFieldId(\"city\")?.disabled}\n onChange={(value) => {\n updateAgeViewModel(\"city\", value);\n updateFieldValidationErrorsByFieldId(\"city\", value, verificationService);\n }}\n />\n )}\n {isFieldRequired(\"address1\") && (\n <AddressComponent\n value={viewModel.address1}\n isRequired\n isErrored={!!fieldValidationErrors.address1}\n errorId={fieldValidationErrors.address1}\n onChange={(value) => {\n updateAgeViewModel(\"address1\", value);\n updateFieldValidationErrorsByFieldId(\"address1\", value, verificationService);\n }}\n />\n )}\n {isFieldRequired(\"postalCode\") && (\n <PostalCode\n isErrored={!!fieldValidationErrors.postalCode}\n onChange={(newValue) => {\n updateAgeViewModel(\"postalCode\", newValue);\n updateFieldValidationErrorsByFieldId(\"postalCode\", newValue, verificationService);\n }}\n value={viewModel.postalCode}\n disabled={getFieldConfigByFieldId(\"postalCode\")?.disabled}\n />\n )}\n <Email\n value={viewModel.email}\n isErrored={!!fieldValidationErrors.email}\n onChange={(newValue) => {\n updateAgeViewModel(\"email\", newValue);\n updateFieldValidationErrorsByFieldId(\"email\", newValue, verificationService);\n }}\n onKeyDown={(event) => handleEmailOnKeyDown(event)}\n disabled={getFieldConfigByFieldId(\"email\")?.disabled}\n />\n\n {showPhoneNumber ? (\n <PhoneNumber\n isRequired={phoneNumberRequired}\n value={viewModel.phoneNumber}\n isErrored={!!fieldValidationErrors.phoneNumber}\n onChange={(newValue) => {\n updateAgeViewModel(\"phoneNumber\", newValue);\n updateFieldValidationErrorsByFieldId(\"phoneNumber\", newValue, verificationService);\n }}\n selectedCountryCode={viewModel.countryChoice && viewModel.countryChoice.value}\n disabled={getFieldConfigByFieldId(\"phoneNumber\")?.disabled}\n />\n ) : null}\n\n {options.customFormFields.map((config: CustomFormFieldConfig) => (\n <FormFieldCustom config={config} verificationService={verificationService} />\n ))}\n\n <MarketConsentWrapper\n verificationService={verificationService}\n isErrored={!!fieldValidationErrors.marketConsentValue}\n onChange={(newValue) => {\n updateAgeViewModel(\"metadata\", {\n ...verificationService.viewModel.metadata,\n marketConsentValue: newValue,\n });\n updateFieldValidationErrorsByFieldId(\"marketConsentValue\", newValue, verificationService);\n }}\n viewModel={viewModel}\n disabled={getFieldConfigByFieldId(\"marketConsentValue\")?.disabled}\n />\n\n <ExtraMessage verificationService={verificationService} suffix=\"CollectAboveSubmit\" />\n\n <PersonalInfoStepSubmitButton\n step={VerificationStepsEnum.collectAgePersonalInfo}\n verificationService={verificationService}\n viewModel={viewModel}\n failedInstantMatch={failedInstantMatch}\n buttonText={\n <FormattedHTMLMessage\n id=\"step.personalInfo.submitButtonText\"\n defaultMessage=\"Verify and continue\"\n />\n }\n />\n </PersonalInfoWrapper>\n );\n};\n\nexport const StepAgePersonalInfoComponent = injectIntl(StepAgePersonalInfo);\n"],"names":["StepAgePersonalInfo","verificationService","intl","viewModel","fieldValidationErrors","verificationResponse","failedInstantMatch","hasFailedInstantMatch","countryChoices","getAvailableCountryChoices","defaultCountryChoice","getDefaultCountryChoice","safeCountryValue","getSafe","defaultRequiredFields","showPhoneNumber","phoneNumberRequired","locale","options","getOptions","updateAgeViewModel","key","value","nextState","produceDraftViewModel","isFieldRequired","useCollectFieldsEndpoint","React","updateFieldValidationErrorsByFieldId","jsxs","PersonalInfoWrapper","jsx","PersonalInfoHeader","ChangeLocaleV2Component","CountryComponentWrapper","_a","getFieldConfigByFieldId","FirstName","_b","newValue","LastName","_c","BirthDate","_d","CityComponent","_e","AddressComponent","PostalCode","_f","Email","event","handleEmailOnKeyDown","_g","PhoneNumber","_h","config","FormFieldCustom","MarketConsentWrapper","_i","ExtraMessage","PersonalInfoStepSubmitButton","VerificationStepsEnum","FormattedHTMLMessage","StepAgePersonalInfoComponent","injectIntl"],"mappings":";;AAqDA,MAAMA,KAAsB,CAAC,EAAE,qBAAAC,GAAqB,MAAAC,QAA8C;;AAChG,QAAMC,IAAYF,EAAoB,WAChC,EAAE,uBAAAG,MAA0BH,GAC5BI,IAAuBJ,EAAoB,sBAC3CK,IAAqBC,EAAsBF,CAAoB,GAC/DG,IAAsDC;AAAA,IAC1DR,EAAoB;AAAA,IACpBC;AAAA,EACF,GACMQ,IACJC,EAAwBH,CAAc,GAClCI,IAAmBC,EAAQ,MAAMV,EAAU,cAAc,OAAOO,EAAqB,KAAK,GAC1FI,IACJF,MAAqB,OAAO,CAAC,EAAE,KAAK,aAAc,CAAA,IAAI,CAAC,GAGnDG,IACJH,MAAqB,QACrBX,EAAoB,aAAa,2BACjCA,EAAoB,aAAa,gBAC7Be,IACJJ,MAAqB,QAAQX,EAAoB,aAAa,gBAE1DgB,IAASd,EAAU,aAAa,OAChCe,IAAUC,EAAW;AAGzB,EAAA,CAACf,EAAsB,eACvBC,EAAqB,YACrBA,EAAqB,SAAS,SAAS,oBAAoB,KAE3DJ,EAAoB,4BAA4B;AAAA,IAC9C,GAAGG;AAAA,IACH,aAAa;AAAA,EAAA,CACd;AAGG,QAAAgB,IAAqB,CAACC,GAAqCC,MAAe;AAC9E,UAAMC,IAAsCC,GAAsBrB,GAAWkB,GAAKC,CAAK;AACvF,IAAArB,EAAoB,gBA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ED8B,gBAAAA,EAAA;AAAA,UAAC0B;AAAAA,UAAA;AAAA,YACC,qBAAAxD;AAAA,YACA,WAAW,CAAC,CAACG,EAAsB;AAAA,YACnC,UAAU,CAACmC,MAAa;AACtB,cAAAnB,EAAmB,YAAY;AAAA,gBAC7B,GAAGnB,EAAoB,UAAU;AAAA,gBACjC,oBAAoBsC;AAAA,cAAA,CACrB,GACoCX,EAAA,sBAAsBW,GAAUtC,CAAmB;AAAA,YAC1F;AAAA,YACA,WAAAE;AAAA,YACA,WAAUuD,IAAAtB,EAAwB,oBAAoB,MAA5C,gBAAAsB,EAA+C;AAAA,UAAA;AAAA,QAC3D;AAAA,QAEC3B,gBAAAA,EAAAA,IAAA4B,GAAA,EAAa,qBAAA1D,GAA0C,QAAO,qBAAqB,CAAA;AAAA,QAEpF8B,gBAAAA,EAAA;AAAA,UAAC6B;AAAA,UAAA;AAAA,YACC,MAAMC,GAAsB;AAAA,YAC5B,qBAAA5D;AAAA,YACA,WAAAE;AAAA,YACA,oBAAAG;AAAA,YACA,YACEyB,gBAAAA,EAAA;AAAA,cAAC+B;AAAA,cAAA;AAAA,gBACC,IAAG;AAAA,gBACH,gBAAe;AAAA,cAAA;AAAA,YAAA;AAAA,UACjB;AAAA,QAAA;AAAA,MAEJ;AAAA,IAAA;AAAA,EACF;AAEJ,GAEaC,KAA+BC,EAAWhE,EAAmB;"}
@@ -4,12 +4,12 @@
4
4
  * This file is not intended for use in other contexts and there are no guarantees about its behavior outside of MySheerID.
5
5
  */
6
6
  /**
7
- * VERSION: 2.115.0-alpha.2
8
- * BUILD_TIMESTAMP: 1751929074457
9
- * BUILD_DATE: Mon Jul 07 2025 22:57:54 GMT+0000 (Coordinated Universal Time)
7
+ * VERSION: 2.115.0-alpha.3
8
+ * BUILD_TIMESTAMP: 1751931366907
9
+ * BUILD_DATE: Mon Jul 07 2025 23:36:06 GMT+0000 (Coordinated Universal Time)
10
10
  * BUILD_COMMIT: 9b953bf464bb46df40df3f4b766e06f47b82b5aa
11
11
  */
12
- import { h as R, g as t, R as T, j as a, t as P, v as k, P as q, w as z, Q as O, T as w, U as B, u as n, x as L, y as W, E as H, e as K, b as j, W as A, X as G, D as Q, G as U, M as X, H as J, f as Y, V as Z, m as _ } from "../_mysheerid-preview.js";
12
+ import { h as R, g as t, R as T, j as a, t as P, v as k, P as O, w as q, O as z, Q as w, T as B, u as n, x as L, y as W, E as H, e as K, b as j, U as A, W as G, D as Q, G as U, M as J, H as X, f as Y, V as Z, m as _ } from "../_mysheerid-preview.js";
13
13
  const $ = ({ verificationService: e }) => {
14
14
  var p, b, u, h, C, i, x, g, M, I, N;
15
15
  const o = e.viewModel, { fieldValidationErrors: d } = e, r = e.verificationResponse, E = R(r), y = k(), m = (p = t("memberId")) == null ? void 0 : p.requireIfOptional, F = o.localeChoice.value, l = (s, f) => {
@@ -33,15 +33,15 @@ const $ = ({ verificationService: e }) => {
33
33
  step: r.currentStep,
34
34
  children: [
35
35
  /* @__PURE__ */ a.jsx(
36
- q,
36
+ O,
37
37
  {
38
38
  verificationService: e,
39
39
  classNameIdentifier: "member-personal-info"
40
40
  }
41
41
  ),
42
- /* @__PURE__ */ a.jsx(z, { verificationService: e }),
42
+ /* @__PURE__ */ a.jsx(q, { verificationService: e }),
43
43
  /* @__PURE__ */ a.jsx(
44
- O,
44
+ z,
45
45
  {
46
46
  verificationService: e,
47
47
  disabled: (b = t("country")) == null ? void 0 : b.disabled
@@ -136,7 +136,7 @@ const $ = ({ verificationService: e }) => {
136
136
  ) : null,
137
137
  y.customFormFields.map((s) => /* @__PURE__ */ a.jsx(U, { config: s, verificationService: e })),
138
138
  /* @__PURE__ */ a.jsx(
139
- X,
139
+ J,
140
140
  {
141
141
  verificationService: e,
142
142
  isErrored: !!d.marketConsentValue,
@@ -150,7 +150,7 @@ const $ = ({ verificationService: e }) => {
150
150
  disabled: (N = t("marketConsentValue")) == null ? void 0 : N.disabled
151
151
  }
152
152
  ),
153
- /* @__PURE__ */ a.jsx(J, { verificationService: e, suffix: "CollectAboveSubmit" }),
153
+ /* @__PURE__ */ a.jsx(X, { verificationService: e, suffix: "CollectAboveSubmit" }),
154
154
  /* @__PURE__ */ a.jsx(
155
155
  Y,
156
156
  {
@@ -1 +1 @@
1
- {"version":3,"file":"index-D_9J6arc.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,IAMiBR,EAAA,gBAAgB,EAAE,wBAAwB,MAAM,EAAE,SAAS,IAAM,IALjEA,EAAA;AAAA,MAClB,EAAE,wBAAwB,CAAC,UAAU,EAAE;AAAA,MACvC,EAAE,SAAS,GAAK;AAAA,IAClB;AAAA,EAGF,GACC,CAACQ,CAAkB,CAAC,GAGrBW,gBAAAA,EAAA;AAAA,IAACC;AAAA,IAAA;AAAA,MACC,qBAAApB;AAAA,MACA,MAAMG,EAAqB;AAAA,MAE3B,UAAA;AAAA,QAAAkB,gBAAAA,EAAA;AAAA,UAACC;AAAA,UAAA;AAAA,YACC,qBAAAtB;AAAA,YACA,qBAAoB;AAAA,UAAA;AAAA,QACtB;AA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,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
+ {"version":3,"file":"index-FfsFdWXt.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,IAMiBR,EAAA,gBAAgB,EAAE,wBAAwB,MAAM,EAAE,SAAS,IAAM,IALjEA,EAAA;AAAA,MAClB,EAAE,wBAAwB,CAAC,UAAU,EAAE;AAAA,MACvC,EAAE,SAAS,GAAK;AAAA,IAClB;AAAA,EAGF,GACC,CAACQ,CAAkB,CAAC,GAGrBW,gBAAAA,EAAA;AAAA,IAACC;AAAA,IAAA;AAAA,MACC,qBAAApB;AAAA,MACA,MAAMG,EAAqB;AAAA,MAE3B,UAAA;AAAA,QAAAkB,gBAAAA,EAAA;AAAA,UAACC;AAAA,UA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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;"}
@@ -4,12 +4,12 @@
4
4
  * This file is not intended for use in other contexts and there are no guarantees about its behavior outside of MySheerID.
5
5
  */
6
6
  /**
7
- * VERSION: 2.115.0-alpha.2
8
- * BUILD_TIMESTAMP: 1751929074457
9
- * BUILD_DATE: Mon Jul 07 2025 22:57:54 GMT+0000 (Coordinated Universal Time)
7
+ * VERSION: 2.115.0-alpha.3
8
+ * BUILD_TIMESTAMP: 1751931366907
9
+ * BUILD_DATE: Mon Jul 07 2025 23:36:06 GMT+0000 (Coordinated Universal Time)
10
10
  * BUILD_COMMIT: 9b953bf464bb46df40df3f4b766e06f47b82b5aa
11
11
  */
12
- import { m as Ee, aU as Be, aV as K, aW as q, aX as gt, s as f, R as xt, aY as g, j as t, aZ as n, aL as u, b as h, i as bt, ai as be, as as yt, aH as It, a_ as Et, d as vt, a$ as ze, L as Ut, A as jt, b0 as Dt, af as _t, K as At, b1 as wt, b2 as Rt, b3 as Ft, k as Nt, l as Oe, V as ye, ah as Ct, b4 as Tt, b5 as Ot, b6 as St } from "../_mysheerid-preview.js";
12
+ import { m as Ee, aU as Be, aV as K, aW as q, aX as gt, s as f, R as xt, aY as g, j as t, aZ as n, aL as u, b as h, i as bt, ai as be, as as yt, aH as It, a_ as Et, d as vt, a$ as ze, L as Ut, A as jt, b0 as Dt, af as _t, N as At, b1 as wt, b2 as Rt, b3 as Ft, k as Nt, l as Oe, V as ye, ah as Ct, b4 as Tt, b5 as Ot, b6 as St } from "../_mysheerid-preview.js";
13
13
  const Lt = (e, a, o) => Ee(e, (r) => {
14
14
  Object.keys(e).filter((s) => !!e[s] && s.includes("file")).map((s) => e[s]).concat(a, Array(Be).fill(void 0)).splice(0, 3).forEach((s, d) => r[`file${d + 1}`] = s), o ? r.erroredFileNames = o : r.erroredFileNames = void 0;
15
15
  }), Mt = (e, a) => {