@sheerid/jslib 2.229.0 → 2.231.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (221) hide show
  1. package/_mysheerid-preview.css +4 -4
  2. package/_mysheerid-preview.js +25 -25
  3. package/chunk/{ActiveDutyStartDateComponent-CLjp2D9z.js → ActiveDutyStartDateComponent-BNwC2c3Y.js} +5 -5
  4. package/chunk/{ActiveDutyStartDateComponent-CLjp2D9z.js.map → ActiveDutyStartDateComponent-BNwC2c3Y.js.map} +1 -1
  5. package/chunk/{ActiveDutyStartDateComponent-D7Q8AKCS.js → ActiveDutyStartDateComponent-CF9c-0bL.js} +5 -5
  6. package/chunk/{ActiveDutyStartDateComponent-D7Q8AKCS.js.map → ActiveDutyStartDateComponent-CF9c-0bL.js.map} +1 -1
  7. package/chunk/AddressComponent-AiyIPiCz.js +4 -4
  8. package/chunk/AddressComponent-DV2Wsw6k.js +4 -4
  9. package/chunk/{CaptchaComponent-CKP3wfXl.js → CaptchaComponent-CnWyxiTy.js} +154 -154
  10. package/chunk/CaptchaComponent-CnWyxiTy.js.map +1 -0
  11. package/chunk/{CaptchaComponent-CR32xDg8.js → CaptchaComponent-SmUa6m52.js} +154 -154
  12. package/chunk/CaptchaComponent-SmUa6m52.js.map +1 -0
  13. package/chunk/ChangeLocaleComponent-Cu2DR-Q3.js +4 -4
  14. package/chunk/ChangeLocaleComponent-DUnfgQuX.js +4 -4
  15. package/chunk/City-BmrJpnS6.js +4 -4
  16. package/chunk/City-yVVnZQTP.js +4 -4
  17. package/chunk/CollegeNameComponent-DaTimEqC.js +4 -4
  18. package/chunk/CollegeNameComponent-DtKPZHb-.js +4 -4
  19. package/chunk/CopyToClipboardComponent-9hyfSMC0.js +4 -4
  20. package/chunk/CopyToClipboardComponent-H3bJGcOM.js +4 -4
  21. package/chunk/CountryComponentWrapper--2UQ7mXP.js +4 -4
  22. package/chunk/CountryComponentWrapper-Ceq-eink.js +4 -4
  23. package/chunk/DriverLicenseNumberComponent-D9cakdvU.js +4 -4
  24. package/chunk/DriverLicenseNumberComponent-ziLNYB8e.js +4 -4
  25. package/chunk/EBTCardNumberComponent-B1kv4R4G.js +4 -4
  26. package/chunk/EBTCardNumberComponent-oYQJ_tP7.js +4 -4
  27. package/chunk/EmailLoopPending-In0FH-Ap.js +4 -4
  28. package/chunk/EmailLoopPending-lxRF0bx8.js +4 -4
  29. package/chunk/FirstResponderOrganizationComponent-Bru1a0U7.js +4 -4
  30. package/chunk/FirstResponderOrganizationComponent-fPxZFdpO.js +4 -4
  31. package/chunk/FormFieldInputSelect-CjWY_ush.js +4 -4
  32. package/chunk/FormFieldInputSelect-o7QZaYhS.js +4 -4
  33. package/chunk/FormFieldLayout-DDEEmlGC.js +4 -4
  34. package/chunk/FormFieldLayout-DEVPpEyA.js +4 -4
  35. package/chunk/FormFieldText-CJ-GVpZE.js +4 -4
  36. package/chunk/FormFieldText-CaWtYVur.js +4 -4
  37. package/chunk/FormFieldTypeahead-C6eS7yJg.js +4 -4
  38. package/chunk/FormFieldTypeahead-CyKKVK89.js +4 -4
  39. package/chunk/FormSelectChoice-BahCx4wG.js +4 -4
  40. package/chunk/FormSelectChoice-C-rIlDKl.js +4 -4
  41. package/chunk/InputText-CCNbZmMe.js +4 -4
  42. package/chunk/InputText-PEiatRRJ.js +4 -4
  43. package/chunk/LicensedProfessionalOrganizationComponent-C5pc7hVJ.js +4 -4
  44. package/chunk/LicensedProfessionalOrganizationComponent-CnR_qF3r.js +4 -4
  45. package/chunk/MedicalProfessionalOrganizationComponent-CXHX25GN.js +4 -4
  46. package/chunk/MedicalProfessionalOrganizationComponent-DBf6V49M.js +4 -4
  47. package/chunk/MemberIdComponent-C8mVSo9m.js +4 -4
  48. package/chunk/MemberIdComponent-oanWSvQh.js +4 -4
  49. package/chunk/MembershipOrganizationComponent-CN6_d_Fk.js +4 -4
  50. package/chunk/MembershipOrganizationComponent-yu-UNXIK.js +4 -4
  51. package/chunk/Onfido-BG8cDEVW.js +4 -4
  52. package/chunk/PersonalInfoStepSubmitButton-j44RdZDq.js +4 -4
  53. package/chunk/PersonalInfoStepSubmitButton-v_kWLmEw.js +4 -4
  54. package/chunk/PersonalInfoStepWrapper-BOBNCgik.js +4 -4
  55. package/chunk/PersonalInfoStepWrapper-PV06WMKL.js +4 -4
  56. package/chunk/PostalCodeComponent-DrCcV90W.js +4 -4
  57. package/chunk/PostalCodeComponent-KXVfZkLx.js +4 -4
  58. package/chunk/SSN-B_z2R4Bx.js +4 -4
  59. package/chunk/SSN-Hb1lTx8A.js +4 -4
  60. package/chunk/StateSelectComponent-CChSqKXz.js +4 -4
  61. package/chunk/StateSelectComponent-CIpB-Rh1.js +4 -4
  62. package/chunk/StatusComponent-C6J1B7Tl.js +4 -4
  63. package/chunk/StatusComponent-pmuIhuXi.js +4 -4
  64. package/chunk/StepCard-CIfaQVu-.js +4 -4
  65. package/chunk/StepCard-dcwCtPrW.js +4 -4
  66. package/chunk/{StepCollectMilitaryStatusComponent-BFw6xXZ_.js → StepCollectMilitaryStatusComponent-7aKgQ9Sj.js} +7 -7
  67. package/chunk/{StepCollectMilitaryStatusComponent-BFw6xXZ_.js.map → StepCollectMilitaryStatusComponent-7aKgQ9Sj.js.map} +1 -1
  68. package/chunk/{StepCollectMilitaryStatusComponent-D8Cg_PCr.js → StepCollectMilitaryStatusComponent-BRimaaXv.js} +7 -7
  69. package/chunk/{StepCollectMilitaryStatusComponent-D8Cg_PCr.js.map → StepCollectMilitaryStatusComponent-BRimaaXv.js.map} +1 -1
  70. package/chunk/{StepDriverLicensePersonalInfoComponent-CufQozWB.js → StepDriverLicensePersonalInfoComponent-2TPYKvF4.js} +5 -5
  71. package/chunk/{StepDriverLicensePersonalInfoComponent-CUy3hSOh.js.map → StepDriverLicensePersonalInfoComponent-2TPYKvF4.js.map} +1 -1
  72. package/chunk/{StepDriverLicensePersonalInfoComponent-CUy3hSOh.js → StepDriverLicensePersonalInfoComponent-BwVtnrmJ.js} +5 -5
  73. package/chunk/{StepDriverLicensePersonalInfoComponent-CufQozWB.js.map → StepDriverLicensePersonalInfoComponent-BwVtnrmJ.js.map} +1 -1
  74. package/chunk/{StepGeneralIdentityPersonalInfoComponent--e85H1gm.js → StepGeneralIdentityPersonalInfoComponent-B_GAU5ZU.js} +6 -6
  75. package/chunk/{StepGeneralIdentityPersonalInfoComponent--e85H1gm.js.map → StepGeneralIdentityPersonalInfoComponent-B_GAU5ZU.js.map} +1 -1
  76. package/chunk/{StepGeneralIdentityPersonalInfoComponent-Bdj5NErb.js → StepGeneralIdentityPersonalInfoComponent-D51YIuCd.js} +6 -6
  77. package/chunk/{StepGeneralIdentityPersonalInfoComponent-Bdj5NErb.js.map → StepGeneralIdentityPersonalInfoComponent-D51YIuCd.js.map} +1 -1
  78. package/chunk/{StepHybridIdentityPersonalInfoComponent-Dh2YNjdy.js → StepHybridIdentityPersonalInfoComponent-kap6IZbx.js} +6 -6
  79. package/chunk/{StepHybridIdentityPersonalInfoComponent-Dh2YNjdy.js.map → StepHybridIdentityPersonalInfoComponent-kap6IZbx.js.map} +1 -1
  80. package/chunk/{StepHybridIdentityPersonalInfoComponent-DvK9EwQi.js → StepHybridIdentityPersonalInfoComponent-zAjPWGNG.js} +6 -6
  81. package/chunk/{StepHybridIdentityPersonalInfoComponent-DvK9EwQi.js.map → StepHybridIdentityPersonalInfoComponent-zAjPWGNG.js.map} +1 -1
  82. package/chunk/StepIDCheckLoopOnfido-Sg4a19wV.js +4 -4
  83. package/chunk/StepIDCheckLoopOnfido-djTS20UT.js +4 -4
  84. package/chunk/StepIDCheckLoopRegula-B5I-ojjy.js +4 -4
  85. package/chunk/StepIDCheckLoopRegula-DZA5G1Z6.js +4 -4
  86. package/chunk/{StepInactiveMilitaryPersonalInfoComponent-DOOVtWps.js → StepInactiveMilitaryPersonalInfoComponent-Bieu_7kd.js} +7 -7
  87. package/chunk/{StepInactiveMilitaryPersonalInfoComponent-DOOVtWps.js.map → StepInactiveMilitaryPersonalInfoComponent-Bieu_7kd.js.map} +1 -1
  88. package/chunk/{StepInactiveMilitaryPersonalInfoComponent-DaF0OIw-.js → StepInactiveMilitaryPersonalInfoComponent-Czd3ecq6.js} +7 -7
  89. package/chunk/{StepInactiveMilitaryPersonalInfoComponent-DaF0OIw-.js.map → StepInactiveMilitaryPersonalInfoComponent-Czd3ecq6.js.map} +1 -1
  90. package/chunk/TeacherSchoolComponent-BSHPjiwQ.js +4 -4
  91. package/chunk/TeacherSchoolComponent-Bf3ZhJ_c.js +4 -4
  92. package/chunk/ar-DRRl0F7-.js +4 -4
  93. package/chunk/bg-F0WsRCx8.js +4 -4
  94. package/chunk/bn-IN-CMjQj55J.js +4 -4
  95. package/chunk/cs-fNk_NoQI.js +4 -4
  96. package/chunk/{da-Dus0G0xF.js → da-KMILteCO.js} +9 -6
  97. package/chunk/{da-Dus0G0xF.js.map → da-KMILteCO.js.map} +1 -1
  98. package/chunk/de-CWVNPgGa.js +4 -4
  99. package/chunk/downshift.esm-CtrbqQGL.js +4 -4
  100. package/chunk/downshift.esm-huKBwB2d.js +4 -4
  101. package/chunk/el-Cwv4peel.js +4 -4
  102. package/chunk/en-GB-Dqonxi7-.js +4 -4
  103. package/chunk/es-ES-C4H8ciVZ.js +4 -4
  104. package/chunk/es-hn_UHPBI.js +4 -4
  105. package/chunk/fi-CYcXXvjq.js +4 -4
  106. package/chunk/fr-CA-CGAQ-6AP.js +4 -4
  107. package/chunk/fr-D_IYCyUP.js +4 -4
  108. package/chunk/ga-45LsHAEB.js +4 -4
  109. package/chunk/hi-IN-ChuePzRc.js +4 -4
  110. package/chunk/hr-CX75fSnP.js +4 -4
  111. package/chunk/hu-BaLNR_Fx.js +4 -4
  112. package/chunk/id-BuJILOHQ.js +4 -4
  113. package/chunk/{index-DIp12ukz.js → index-4SoX7nBO.js} +5 -5
  114. package/chunk/{index-DIp12ukz.js.map → index-4SoX7nBO.js.map} +1 -1
  115. package/chunk/index-B0SBEWOf.js +4 -4
  116. package/chunk/{index-rViqil74.js → index-B0gkU4sD.js} +6 -6
  117. package/chunk/{index-Cjs5VMjq.js.map → index-B0gkU4sD.js.map} +1 -1
  118. package/chunk/index-B4FcNhzB.js +4 -4
  119. package/chunk/{index-C6Zi9YN5.js → index-B6DSPaeb.js} +6 -6
  120. package/chunk/{index-C6Zi9YN5.js.map → index-B6DSPaeb.js.map} +1 -1
  121. package/chunk/index-BA3bE-f-.js +4 -4
  122. package/chunk/{index-C6hAAbwq.js → index-BDfHyxH2.js} +6 -6
  123. package/chunk/{index-C6hAAbwq.js.map → index-BDfHyxH2.js.map} +1 -1
  124. package/chunk/{index-exPL5Yp5.js → index-BKpiJJJ9.js} +6 -6
  125. package/chunk/{index-BKJJkl7e.js.map → index-BKpiJJJ9.js.map} +1 -1
  126. package/chunk/index-BZ1nv-sB.js +4 -4
  127. package/chunk/index-BbOCWcRK.js +4 -4
  128. package/chunk/{index-B92WlzWU.js → index-Blxi9-p3.js} +5 -5
  129. package/chunk/{index-B92WlzWU.js.map → index-Blxi9-p3.js.map} +1 -1
  130. package/chunk/index-Bn00xQJF.js +4 -4
  131. package/chunk/index-Brpm5gN6.js +4 -4
  132. package/chunk/index-CHDBBfsg.js +4 -4
  133. package/chunk/{index-DluA07xU.js → index-CMYxhs0t.js} +6 -6
  134. package/chunk/{index-Ci9xfdh_.js.map → index-CMYxhs0t.js.map} +1 -1
  135. package/chunk/{index-Cjs5VMjq.js → index-CMwYcIy7.js} +6 -6
  136. package/chunk/{index-rViqil74.js.map → index-CMwYcIy7.js.map} +1 -1
  137. package/chunk/{index-7FgFM0BB.js → index-CO75J-sD.js} +7 -7
  138. package/chunk/{index-7FgFM0BB.js.map → index-CO75J-sD.js.map} +1 -1
  139. package/chunk/index-CR19uOwz.js +4 -4
  140. package/chunk/index-CTGY1a4m.js +4 -4
  141. package/chunk/{index-Boz8OGs2.js → index-CTjvQpKK.js} +6 -6
  142. package/chunk/{index-7yjIdl5b.js.map → index-CTjvQpKK.js.map} +1 -1
  143. package/chunk/index-CaBrLsal.js +4 -4
  144. package/chunk/{index-CVNb00ji.js → index-Ccp2Exqo.js} +6 -6
  145. package/chunk/{index-BwYlPjg-.js.map → index-Ccp2Exqo.js.map} +1 -1
  146. package/chunk/{index-DeYLtsQg.js → index-CfHHbJNm.js} +6 -6
  147. package/chunk/{index-DeYLtsQg.js.map → index-CfHHbJNm.js.map} +1 -1
  148. package/chunk/{index-CHA5YjcZ.js → index-Cgw-oCXC.js} +5 -5
  149. package/chunk/{index-CHA5YjcZ.js.map → index-Cgw-oCXC.js.map} +1 -1
  150. package/chunk/index-CrPc1exn.js +4 -4
  151. package/chunk/index-CwaTj-69.js +4 -4
  152. package/chunk/index-D2d6x5LN.js +4 -4
  153. package/chunk/{index-BestrDUg.js → index-D62LImgf.js} +6 -6
  154. package/chunk/{index-BestrDUg.js.map → index-D62LImgf.js.map} +1 -1
  155. package/chunk/index-D7Mqx5na.js +4 -4
  156. package/chunk/index-DFoMYB8K.js +4 -4
  157. package/chunk/{index-BwYlPjg-.js → index-DGCqI3ez.js} +6 -6
  158. package/chunk/{index-CVNb00ji.js.map → index-DGCqI3ez.js.map} +1 -1
  159. package/chunk/index-DIkWpujR.js +4 -4
  160. package/chunk/{index-DRzWEvzt.js → index-DM6d_MOp.js} +5 -5
  161. package/chunk/{index-DRzWEvzt.js.map → index-DM6d_MOp.js.map} +1 -1
  162. package/chunk/{index-BKJJkl7e.js → index-Di4VOQ0c.js} +6 -6
  163. package/chunk/{index-exPL5Yp5.js.map → index-Di4VOQ0c.js.map} +1 -1
  164. package/chunk/{index-CLCadcyZ.js → index-DsIG7oZ5.js} +7 -7
  165. package/chunk/{index-CLCadcyZ.js.map → index-DsIG7oZ5.js.map} +1 -1
  166. package/chunk/index-EUJqfdiJ.js +4 -4
  167. package/chunk/{index-Ci9xfdh_.js → index-Tt8XFCKg.js} +6 -6
  168. package/chunk/{index-DluA07xU.js.map → index-Tt8XFCKg.js.map} +1 -1
  169. package/chunk/{index-7yjIdl5b.js → index-XxwXcW8j.js} +6 -6
  170. package/chunk/{index-Boz8OGs2.js.map → index-XxwXcW8j.js.map} +1 -1
  171. package/chunk/{index-C_5U0d5a.js → index-brtM2eoI.js} +6 -6
  172. package/chunk/{index-C_5U0d5a.js.map → index-brtM2eoI.js.map} +1 -1
  173. package/chunk/index-dTu4ORna.js +4 -4
  174. package/chunk/{index-Zi6lCz6u.js → index-yLck7gVG.js} +6 -6
  175. package/chunk/{index-Zi6lCz6u.js.map → index-yLck7gVG.js.map} +1 -1
  176. package/chunk/is-B3D8NTKa.js +4 -4
  177. package/chunk/it-CzAy2lzA.js +4 -4
  178. package/chunk/iw-C9nimuXe.js +4 -4
  179. package/chunk/ja-BEXgm7zu.js +4 -4
  180. package/chunk/ko-Ct-zPR2E.js +4 -4
  181. package/chunk/lo-Di9C_kLP.js +4 -4
  182. package/chunk/lt-CEBQxuWT.js +4 -4
  183. package/chunk/{militaryStepHelpers-CLn6PXMu.js → militaryStepHelpers-0OUuQpBw.js} +5 -5
  184. package/chunk/{militaryStepHelpers-CLn6PXMu.js.map → militaryStepHelpers-0OUuQpBw.js.map} +1 -1
  185. package/chunk/{militaryStepHelpers-pEvqlKjI.js → militaryStepHelpers-jW2_4c1l.js} +5 -5
  186. package/chunk/{militaryStepHelpers-pEvqlKjI.js.map → militaryStepHelpers-jW2_4c1l.js.map} +1 -1
  187. package/chunk/mocks-CeAm-JFs.js +4 -4
  188. package/chunk/mocks-ClJ0M6QH.js +4 -4
  189. package/chunk/ms-CxGIGN7C.js +4 -4
  190. package/chunk/nl-BE-DPBUnfk6.js +4 -4
  191. package/chunk/nl-BIm7MF9X.js +4 -4
  192. package/chunk/no-BmBisNVx.js +4 -4
  193. package/chunk/pl-BOGNzi_o.js +4 -4
  194. package/chunk/pt-BR-uABX_syI.js +4 -4
  195. package/chunk/pt-MSESKPWr.js +4 -4
  196. package/chunk/ro-DoSzUhte.js +4 -4
  197. package/chunk/ru-_re-OOAp.js +4 -4
  198. package/chunk/sk-BS3zToE5.js +4 -4
  199. package/chunk/sl-CVBUMpyN.js +4 -4
  200. package/chunk/sr-Cmqfavur.js +4 -4
  201. package/chunk/sv-BzRp9aoC.js +4 -4
  202. package/chunk/sw-C4I4Ivyc.js +4 -4
  203. package/chunk/th-SsMlrFQN.js +4 -4
  204. package/chunk/tr-i4hcCWIF.js +4 -4
  205. package/chunk/uk-CLl1S03h.js +4 -4
  206. package/chunk/ur-CfVN1Pr2.js +4 -4
  207. package/chunk/useCollectFieldsEndpoint-Cd6d_u47.js +4 -4
  208. package/chunk/useCollectFieldsEndpoint-DqTjyVEr.js +4 -4
  209. package/chunk/useMetrics-D2fG6cgw.js +4 -4
  210. package/chunk/useMetrics-wq7yrL0b.js +4 -4
  211. package/chunk/vi-STS0AV-q.js +4 -4
  212. package/chunk/zh-HK-DGm6tmJZ.js +4 -4
  213. package/chunk/zh-rPW1DJOh.js +4 -4
  214. package/chunk/zu-D7Vc6viT.js +4 -4
  215. package/package.json +1 -1
  216. package/sheerid-install.css +4 -4
  217. package/sheerid-install.js +4 -4
  218. package/sheerid.css +4 -4
  219. package/sheerid.js +25 -25
  220. package/chunk/CaptchaComponent-CKP3wfXl.js.map +0 -1
  221. package/chunk/CaptchaComponent-CR32xDg8.js.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"index-BwYlPjg-.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 \"@jslib/shared/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 { CaptchaComponent } from \"../FormFields/Captcha/CaptchaComponent\";\nimport { blankOrganization } from \"../../lib/types/empties\";\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 return (\n <PersonalInfoWrapper\n verificationService={verificationService}\n step={verificationResponse.currentStep}\n >\n <PersonalInfoHeader\n verificationService={verificationService}\n classNameIdentifier=\"first-responder\"\n />\n\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(intl, viewModel.status, FirstResponderStatusDefaultMessagesEnum),\n }}\n isErrored={!!fieldValidationErrors.status}\n errorId=\"invalidFirstResponderStatus\"\n disabled={getFieldConfigByFieldId(\"status\")?.disabled}\n options={getAvailableFirstResponderStatuses(intl, verificationResponse.availableStatuses)}\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={(verificationService.viewModel as FirstResponderPersonalInfoViewModel).organization}\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\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 {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(\"phoneNumber\", newValue, verificationService);\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(\"postalCode\", newValue, verificationService);\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(\"marketConsentValue\", newValue, verificationService);\n }}\n viewModel={viewModel}\n disabled={getFieldConfigByFieldId(\"marketConsentValue\")?.disabled}\n />\n\n <ExtraMessage verificationService={verificationService} suffix=\"CollectAboveSubmit\" />\n\n <CaptchaComponent\n verificationService={verificationService}\n isErrored={!!fieldValidationErrors.captchaToken}\n />\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 </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","jsxs","PersonalInfoWrapper","jsx","PersonalInfoHeader","ChangeLocaleV2Component","CountryComponentWrapper","getFieldConfigByFieldId","FirstResponderStatus","getStatusLabel","FirstResponderStatusDefaultMessagesEnum","getAvailableFirstResponderStatuses","status","updateFieldValidationErrorsByFieldId","FirstResponderOrganization","choice","blankOrganization","getSafe","FirstName","newValue","LastName","BirthDate","Email","FormattedHTMLMessage","event","handleEmailOnKeyDown","PhoneNumber","PostalCodeComponent","config","FormFieldCustom","MarketConsentWrapper","ExtraMessage","CaptchaComponent","PersonalInfoStepSubmitButton","VerificationStepsEnum","StepFirstResponderPersonalInfoComponent","injectIntl"],"mappings":";;;;;;;;;;AAuDO,MAAMA,IAAiC,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,EAAA,GAEVC,IAASP,EAAU,aAAa,OAEhCQ,IAAgC,CACpCC,GACAC,MACG;AACH,UAAMC,IAAiDC;AAAAA,MACrDZ;AAAA,MACA,CAACa,MAA+C;AAC7C,QAAAA,EAAMJ,CAAG,IAAYC;AAAA,MACxB;AA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UAAA;AAAA,YACC,qBAAA9C;AAAA,YACA,WAAW,CAAC,CAACE,EAAsB;AAAA,UAAA;AAAA,QAAA;AAAA,QAGrCe,gBAAAA,EAAAA;AAAAA,UAAC8B;AAAA,UAAA;AAAA,YACC,MAAMC,EAAsB;AAAA,YAC5B,qBAAAhD;AAAA,YACA,WAAAC;AAAA,YACA,oBAAAG;AAAA,YACA,YACEa,gBAAAA,EAAAA;AAAAA,cAACoB;AAAA,cAAA;AAAA,gBACC,IAAG;AAAA,gBACH,gBAAe;AAAA,cAAA;AAAA,YAAA;AAAA,UACjB;AAAA,QAAA;AAAA,MAEJ;AAAA,IAAA;AAAA,EAAA;AAGN,GAEaY,KAA0CC,EAAWpD,CAA8B;"}
1
+ {"version":3,"file":"index-Ccp2Exqo.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 \"@jslib/shared/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 { CaptchaComponent } from \"../FormFields/Captcha/CaptchaComponent\";\nimport { blankOrganization } from \"../../lib/types/empties\";\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 return (\n <PersonalInfoWrapper\n verificationService={verificationService}\n step={verificationResponse.currentStep}\n >\n <PersonalInfoHeader\n verificationService={verificationService}\n classNameIdentifier=\"first-responder\"\n />\n\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(intl, viewModel.status, FirstResponderStatusDefaultMessagesEnum),\n }}\n isErrored={!!fieldValidationErrors.status}\n errorId=\"invalidFirstResponderStatus\"\n disabled={getFieldConfigByFieldId(\"status\")?.disabled}\n options={getAvailableFirstResponderStatuses(intl, verificationResponse.availableStatuses)}\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={(verificationService.viewModel as FirstResponderPersonalInfoViewModel).organization}\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\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 {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(\"phoneNumber\", newValue, verificationService);\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(\"postalCode\", newValue, verificationService);\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(\"marketConsentValue\", newValue, verificationService);\n }}\n viewModel={viewModel}\n disabled={getFieldConfigByFieldId(\"marketConsentValue\")?.disabled}\n />\n\n <ExtraMessage verificationService={verificationService} suffix=\"CollectAboveSubmit\" />\n\n <CaptchaComponent\n verificationService={verificationService}\n isErrored={!!fieldValidationErrors.captchaToken}\n />\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 </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","jsxs","PersonalInfoWrapper","jsx","PersonalInfoHeader","ChangeLocaleV2Component","CountryComponentWrapper","getFieldConfigByFieldId","FirstResponderStatus","getStatusLabel","FirstResponderStatusDefaultMessagesEnum","getAvailableFirstResponderStatuses","status","updateFieldValidationErrorsByFieldId","FirstResponderOrganization","choice","blankOrganization","getSafe","FirstName","newValue","LastName","BirthDate","Email","FormattedHTMLMessage","event","handleEmailOnKeyDown","PhoneNumber","PostalCodeComponent","config","FormFieldCustom","MarketConsentWrapper","ExtraMessage","CaptchaComponent","PersonalInfoStepSubmitButton","VerificationStepsEnum","StepFirstResponderPersonalInfoComponent","injectIntl"],"mappings":";;;;;;;;;;AAuDO,MAAMA,IAAiC,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,EAAA,GAEVC,IAASP,EAAU,aAAa,OAEhCQ,IAAgC,CACpCC,GACAC,MACG;AACH,UAAMC,IAAiDC;AAAAA,MACrDZ;AAAA,MACA,CAACa,MAA+C;AAC7C,QAAAA,EAAMJ,CAAG,IAAYC;AAAA,MACxB;AAAA,IAAA;AAEF,IAAAX,EAAoB,gBAAgBY,CAAS;AAAA,EAC/C;AAEA,SACEG,gBAAAA,EAAAA;AAAAA,IAACC;AAAA,IAAA;AAAA,MACC,qBAAAhB;AAAA,MACA,MAAMG,EAAqB;AAAA,MAE3B,UAAA;AAAA,QAAAc,gBAAAA,EAAAA;AAAAA,UAACC;AAAA,UAAA;AAAA,YACC,qBAAAlB;AAAA,YACA,qBAAoB;AAAA,UAAA;AAAA,QAAA;AAAA,QAGtBiB,gBAAAA,MAACE,KAAwB,qBAAAnB,G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,YAAA;AAAA,UACjB;AAAA,QAAA;AAAA,MAEJ;AAAA,IAAA;AAAA,EAAA;AAGN,GAEaY,KAA0CC,EAAWpD,CAA8B;"}
@@ -1,16 +1,16 @@
1
1
 
2
2
  /**
3
- * VERSION: 2.229.0
4
- * BUILD_TIMESTAMP: 1778622589526
5
- * BUILD_DATE: Tue May 12 2026 21:49:49 GMT+0000 (Coordinated Universal Time)
6
- * BUILD_COMMIT: 7af1c105d5485ac4ed1190c56d492bb4590667a9
3
+ * VERSION: 2.231.0
4
+ * BUILD_TIMESTAMP: 1778866812284
5
+ * BUILD_DATE: Fri May 15 2026 17:40:12 GMT+0000 (Coordinated Universal Time)
6
+ * BUILD_COMMIT: e2c23e54ba6fc3b35cb24b5b0cb59bd07dbdc3a1
7
7
  */
8
8
  import { i as N, a4 as h, g as d, j as s, F as r, R as g, m as E, p as j, P as M, _ as I, o as l, n as F, U as y, V, e as P } from "../sheerid.js";
9
9
  import { C as T } from "./ChangeLocaleComponent-DUnfgQuX.js";
10
- import { F as R, L as k, P as D, a as L, M as w, C as q } from "./CaptchaComponent-CR32xDg8.js";
10
+ import { F as R, L as k, P as D, a as L, M as w, C as q } from "./CaptchaComponent-SmUa6m52.js";
11
11
  import { C as B } from "./CollegeNameComponent-DtKPZHb-.js";
12
12
  import { E as H, P as z } from "./PersonalInfoStepSubmitButton-j44RdZDq.js";
13
- import { B as A } from "./militaryStepHelpers-CLn6PXMu.js";
13
+ import { B as A } from "./militaryStepHelpers-0OUuQpBw.js";
14
14
  import { C as O } from "./CountryComponentWrapper-Ceq-eink.js";
15
15
  import { P as W } from "./PersonalInfoStepWrapper-PV06WMKL.js";
16
16
  import { F as K } from "./FormFieldText-CaWtYVur.js";
@@ -1 +1 @@
1
- {"version":3,"file":"index-DeYLtsQg.js","sources":["../../src/components/FormFields/CVECNumber/CVECNumberComponent.tsx","../../src/components/StepStudentPersonalInfo/StepStudentPersonalInfoComponent.tsx"],"sourcesContent":["import { FormattedHTMLMessage, injectIntl } from \"react-intl\";\n\nimport { getFieldConfigByFieldId } from \"@/lib/utils/stepComponentHelpers/stepComponentHelpers\";\n\nimport { type FormFieldComponentProps } from \"../../../lib/types/types\";\nimport { FormFieldText } from \"../FormFieldText/FormFieldText\";\nimport { useFlag } from \"../../FeatureFlags/hooks\";\n\ninterface PassedProps {\n explanation?: string | JSX.Element;\n}\n\nexport const CVECNumber = ({\n value,\n isErrored,\n onChange,\n intl,\n explanation,\n placeholder = \"\",\n isRequired = false,\n}: FormFieldComponentProps & PassedProps) => {\n // #region include-cvec-field-france-student\n const showCvecInputVariation = useFlag(\"include-cvec-field-france-student\");\n\n const getDefaultExplanation = () =>\n showCvecInputVariation === \"labeled-optional\" ? (\n <FormattedHTMLMessage\n id=\"cvecNumberExplanation\"\n defaultMessage=\"Optional - Add your CVEC number to increase your chances of being verified instantly.\"\n />\n ) : (\n <FormattedHTMLMessage\n id=\"_EXPERIMENTAL.cvecNumberExplanation\"\n defaultMessage=\"Add your CVEC number to increase your chances of being verified instantly.\"\n />\n );\n // #endregion include-cvec-field-france-student\n\n const isFieldHidden = getFieldConfigByFieldId(\"cvecNumber\")?.hidden;\n\n if (isFieldHidden) {\n return null;\n }\n\n return (\n <FormFieldText\n fieldId=\"cvecNumber\"\n value={value}\n onChange={onChange}\n placeholder={\n placeholder ||\n intl.formatHTMLMessage({\n id: \"cvecNumberPlaceholder\",\n defaultMessage: \"CVEC certificate number\",\n })\n }\n label={<FormattedHTMLMessage id=\"cvecNumber\" defaultMessage=\"CVEC certificate number\" />}\n errorMessage={\n isErrored && (\n <FormattedHTMLMessage\n id=\"errorId.invalidCvecNumber\"\n defaultMessage=\"Invalid CVEC certificate number\"\n />\n )\n }\n showPlaceholderAndHideLabel={!!placeholder}\n required={isRequired}\n explanation={explanation || getDefaultExplanation()}\n />\n );\n};\nexport const CVECNumberComponent = injectIntl(CVECNumber);\n","/* eslint-disable */\n/**\n * TODO - preamble\n */\nimport React from \"react\";\nimport { FormattedHTMLMessage } from \"react-intl\";\nimport { produce } from \"immer\";\n\nimport {\n VerificationService,\n StudentPersonalInfoViewModel,\n Organization,\n StudentPersonalInfoResponse,\n CustomFormFieldConfig,\n} from \"../../lib/types/types\";\n\nimport { VerificationStepsEnum } from \"../../lib/types/runtimeTypes\";\nimport { hasFailedInstantMatch } from \"../../lib/VerificationService/VerificationServiceHelpers\";\nimport {\n getFieldConfigByFieldId,\n handleEmailOnKeyDown,\n updateFieldValidationErrorsByFieldId,\n updateViewModelOrganization,\n} from \"../../lib/utils/stepComponentHelpers/stepComponentHelpers\";\n\nimport { ChangeLocaleV2Component } from \"../FormFields/ChangeLocale/ChangeLocaleComponent\";\nimport { MarketConsentWrapperComponent as MarketConsentWrapper } from \"../FormFields/MarketConsentWrapper/MarketConsentWrapperComponent\";\nimport { PhoneNumberComponent as PhoneNumber } from \"../FormFields/PhoneNumber/PhoneNumberComponent\";\nimport { CollegeNameComponent as CollegeName } from \"../FormFields/CollegeName/CollegeNameComponent\";\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 { 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\";\nimport { useFlag } from \"../FeatureFlags/hooks\";\nimport { CVECNumberComponent } from \"../FormFields/CVECNumber/CVECNumberComponent\";\nimport { CaptchaComponent } from \"../FormFields/Captcha/CaptchaComponent\";\n\ninterface StepStudentPersonalInfoComponentProps {\n verificationService: VerificationService;\n}\n\nconst StepStudentPersonalInfo = ({\n verificationService,\n}: StepStudentPersonalInfoComponentProps) => {\n const viewModel = verificationService.viewModel as StudentPersonalInfoViewModel;\n const { fieldValidationErrors } = verificationService;\n const verificationResponse =\n verificationService.verificationResponse as StudentPersonalInfoResponse;\n const options = getOptions();\n\n // #region include-cvec-field-france-student\n const showCvecInputVariation = useFlag(\"include-cvec-field-france-student\");\n const showCvecInput =\n showCvecInputVariation !== \"control\" &&\n showCvecInputVariation !== \"default\" &&\n viewModel?.countryChoice?.value === \"FR\";\n\n React.useEffect(() => {\n const existing = (verificationService.viewModel?.fieldsToSkipValidation || []).filter(\n (id) => id !== \"cvecNumber\",\n );\n if (showCvecInput) {\n updateStudentViewModel(\"fieldsToSkipValidation\", existing);\n } else {\n // Don't validate CVEC number if country is not France\n updateStudentViewModel(\"fieldsToSkipValidation\", [...existing, \"cvecNumber\"]);\n }\n }, [showCvecInput]);\n // #endregion include-cvec-field-france-student\n\n const failedInstantMatch = hasFailedInstantMatch(verificationResponse);\n\n const updateStudentViewModel = (key: keyof StudentPersonalInfoViewModel, value: any) => {\n const nextState: StudentPersonalInfoViewModel = produce(\n viewModel,\n (draft: StudentPersonalInfoViewModel) => {\n draft[key] = value;\n },\n );\n verificationService.updateViewModel(nextState);\n };\n\n const locale = viewModel.localeChoice.value;\n\n return (\n <PersonalInfoWrapper\n verificationService={verificationService}\n step={verificationResponse.currentStep}\n >\n <PersonalInfoHeader\n verificationService={verificationService}\n classNameIdentifier=\"student-personal-info\"\n />\n <ChangeLocaleV2Component verificationService={verificationService} />\n <CountryComponentWrapper\n verificationService={verificationService}\n disabled={getFieldConfigByFieldId(\"country\")?.disabled}\n />\n <CollegeName\n value={(verificationService.viewModel as StudentPersonalInfoViewModel).organization}\n verificationService={verificationService}\n isErrored={!!fieldValidationErrors.organization}\n isRequired\n disabled={getFieldConfigByFieldId(\"organization\")?.disabled}\n onChange={(choice: Organization) => {\n updateViewModelOrganization(choice, verificationService);\n updateFieldValidationErrorsByFieldId(\"organization\", choice, verificationService);\n }}\n />\n {showCvecInput && (\n <CVECNumberComponent\n isRequired={getFieldConfigByFieldId(\"cvecNumber\")?.requireIfOptional}\n value={viewModel.cvecNumber}\n isErrored={!!fieldValidationErrors.cvecNumber}\n disabled={getFieldConfigByFieldId(\"cvecNumber\")?.disabled}\n onChange={(newValue) => {\n updateStudentViewModel(\"cvecNumber\", newValue);\n updateFieldValidationErrorsByFieldId(\"cvecNumber\", newValue, 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 updateStudentViewModel(\"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 updateStudentViewModel(\"lastName\", newValue);\n updateFieldValidationErrorsByFieldId(\"lastName\", newValue, verificationService);\n }}\n />\n </div>\n <BirthDate\n value={viewModel.birthDate}\n errorId={fieldValidationErrors.birthDate}\n locale={locale}\n isRequired\n disabled={getFieldConfigByFieldId(\"birthDate\")?.disabled}\n onChange={(newValue) => {\n updateStudentViewModel(\"birthDate\", newValue);\n updateFieldValidationErrorsByFieldId(\"birthDate\", newValue, verificationService);\n }}\n />\n <Email\n value={viewModel.email}\n isErrored={!!fieldValidationErrors.email}\n explanation={\n <FormattedHTMLMessage\n id=\"emailExplanation\"\n defaultMessage=\"Personal or school email is fine\"\n />\n }\n onChange={(newValue) => {\n updateStudentViewModel(\"email\", newValue);\n updateFieldValidationErrorsByFieldId(\"email\", newValue, verificationService);\n }}\n onKeyDown={(event) => handleEmailOnKeyDown(event)}\n disabled={getFieldConfigByFieldId(\"email\")?.disabled}\n />\n {verificationService.programTheme.isSmsNotifierConfigured ||\n verificationService.programTheme.smsLoopEnabled ? (\n <PhoneNumber\n isRequired={!!verificationService.programTheme.smsLoopEnabled}\n value={viewModel.phoneNumber}\n isErrored={!!fieldValidationErrors.phoneNumber}\n disabled={getFieldConfigByFieldId(\"phoneNumber\")?.disabled}\n onChange={(newValue) => {\n updateStudentViewModel(\"phoneNumber\", newValue);\n updateFieldValidationErrorsByFieldId(\"phoneNumber\", newValue, verificationService);\n }}\n selectedCountryCode={viewModel.countryChoice && viewModel.countryChoice.value}\n />\n ) : null}\n {(options.customFormFields || []).map((config: CustomFormFieldConfig) => (\n <FormFieldCustom config={config} verificationService={verificationService} />\n ))}{\" \"}\n <MarketConsentWrapper\n verificationService={verificationService}\n isErrored={!!fieldValidationErrors.marketConsentValue}\n disabled={getFieldConfigByFieldId(\"marketConsentValue\")?.disabled}\n onChange={(newValue) => {\n updateStudentViewModel(\"metadata\", {\n ...verificationService.viewModel.metadata,\n marketConsentValue: newValue,\n });\n updateFieldValidationErrorsByFieldId(\"marketConsentValue\", newValue, verificationService);\n }}\n viewModel={viewModel}\n />\n <ExtraMessage verificationService={verificationService} suffix=\"CollectAboveSubmit\" />\n <CaptchaComponent\n verificationService={verificationService}\n isErrored={!!fieldValidationErrors.captchaToken}\n />\n <PersonalInfoStepSubmitButton\n step={VerificationStepsEnum.collectStudentPersonalInfo}\n verificationService={verificationService}\n viewModel={viewModel}\n failedInstantMatch={failedInstantMatch}\n buttonText={\n <FormattedHTMLMessage\n id=\"step.personalInfo.submitButtonText\"\n defaultMessage=\"Verify My Student Status\"\n />\n }\n />\n </PersonalInfoWrapper>\n );\n};\n\nexport const StepStudentPersonalInfoComponent = StepStudentPersonalInfo;\n"],"names":["CVECNumber","value","isErrored","onChange","intl","explanation","placeholder","isRequired","showCvecInputVariation","useFlag","getDefaultExplanation","jsx","FormattedHTMLMessage","getFieldConfigByFieldId","FormFieldText","CVECNumberComponent","injectIntl","StepStudentPersonalInfo","verificationService","viewModel","fieldValidationErrors","verificationResponse","options","getOptions","showCvecInput","React","existing","id","updateStudentViewModel","failedInstantMatch","hasFailedInstantMatch","key","nextState","produce","draft","locale","jsxs","PersonalInfoWrapper","PersonalInfoHeader","ChangeLocaleV2Component","CountryComponentWrapper","CollegeName","choice","updateViewModelOrganization","updateFieldValidationErrorsByFieldId","newValue","FirstName","LastName","BirthDate","Email","event","handleEmailOnKeyDown","PhoneNumber","config","FormFieldCustom","MarketConsentWrapper","ExtraMessage","CaptchaComponent","PersonalInfoStepSubmitButton","VerificationStepsEnum","StepStudentPersonalInfoComponent"],"mappings":";;;;;;;;;AAYO,MAAMA,IAAa,CAAC;AAAA,EACzB,OAAAC;AAAA,EACA,WAAAC;AAAA,EACA,UAAAC;AAAA,EACA,MAAAC;AAAA,EACA,aAAAC;AAAA,EACA,aAAAC,IAAc;AAAA,EACd,YAAAC,IAAa;AACf,MAA6C;AAE3C,QAAMC,IAAyBC,EAAQ,mCAAmC,GAEpEC,IAAwB,MAC5BF,MAA2B,qBACzBG,gBAAAA,EAAAA;AAAAA,IAACC;AAAA,IAAA;AAAA,MACC,IAAG;AAAA,MACH,gBAAe;AAAA,IAAA;AAAA,EAAA,IAGjBD,gBAAAA,EAAAA;AAAAA,IAACC;AAAA,IAAA;AAAA,MACC,IAAG;AAAA,MACH,gBAAe;AAAA,IAAA;AAAA,EAAA;AAOrB,SAFsBC,EAAwB,YAAY,GAAG,SAGpD,OAIPF,gBAAAA,EAAAA;AAAAA,IAACG;AAAA,IAAA;AAAA,MACC,SAAQ;AAAA,MACR,OAAAb;AAAA,MACA,UAAAE;AAAA,MACA,aACEG,KACAF,EAAK,kBAAkB;AAAA,QACrB,IAAI;AAAA,QACJ,gBAAgB;AAAA,MAAA,CACjB;AAAA,MAEH,OAAOO,gBAAAA,EAAAA,IAACC,GAAA,EAAqB,IAAG,cAAa,gBAAe,2BAA0B;AAAA,MACt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YACC,MAAMC,EAAsB;AAAA,YAC5B,qBAAAzC;AAAA,YACA,WAAAC;AAAA,YACA,oBAAAU;AAAA,YACA,YACElB,gBAAAA,EAAAA;AAAAA,cAACC;AAAA,cAAA;AAAA,gBACC,IAAG;AAAA,gBACH,gBAAe;AAAA,cAAA;AAAA,YAAA;AAAA,UACjB;AAAA,QAAA;AAAA,MAEJ;AAAA,IAAA;AAAA,EAAA;AAGN,GAEagD,KAAmC3C;"}
1
+ {"version":3,"file":"index-CfHHbJNm.js","sources":["../../src/components/FormFields/CVECNumber/CVECNumberComponent.tsx","../../src/components/StepStudentPersonalInfo/StepStudentPersonalInfoComponent.tsx"],"sourcesContent":["import { FormattedHTMLMessage, injectIntl } from \"react-intl\";\n\nimport { getFieldConfigByFieldId } from \"@/lib/utils/stepComponentHelpers/stepComponentHelpers\";\n\nimport { type FormFieldComponentProps } from \"../../../lib/types/types\";\nimport { FormFieldText } from \"../FormFieldText/FormFieldText\";\nimport { useFlag } from \"../../FeatureFlags/hooks\";\n\ninterface PassedProps {\n explanation?: string | JSX.Element;\n}\n\nexport const CVECNumber = ({\n value,\n isErrored,\n onChange,\n intl,\n explanation,\n placeholder = \"\",\n isRequired = false,\n}: FormFieldComponentProps & PassedProps) => {\n // #region include-cvec-field-france-student\n const showCvecInputVariation = useFlag(\"include-cvec-field-france-student\");\n\n const getDefaultExplanation = () =>\n showCvecInputVariation === \"labeled-optional\" ? (\n <FormattedHTMLMessage\n id=\"cvecNumberExplanation\"\n defaultMessage=\"Optional - Add your CVEC number to increase your chances of being verified instantly.\"\n />\n ) : (\n <FormattedHTMLMessage\n id=\"_EXPERIMENTAL.cvecNumberExplanation\"\n defaultMessage=\"Add your CVEC number to increase your chances of being verified instantly.\"\n />\n );\n // #endregion include-cvec-field-france-student\n\n const isFieldHidden = getFieldConfigByFieldId(\"cvecNumber\")?.hidden;\n\n if (isFieldHidden) {\n return null;\n }\n\n return (\n <FormFieldText\n fieldId=\"cvecNumber\"\n value={value}\n onChange={onChange}\n placeholder={\n placeholder ||\n intl.formatHTMLMessage({\n id: \"cvecNumberPlaceholder\",\n defaultMessage: \"CVEC certificate number\",\n })\n }\n label={<FormattedHTMLMessage id=\"cvecNumber\" defaultMessage=\"CVEC certificate number\" />}\n errorMessage={\n isErrored && (\n <FormattedHTMLMessage\n id=\"errorId.invalidCvecNumber\"\n defaultMessage=\"Invalid CVEC certificate number\"\n />\n )\n }\n showPlaceholderAndHideLabel={!!placeholder}\n required={isRequired}\n explanation={explanation || getDefaultExplanation()}\n />\n );\n};\nexport const CVECNumberComponent = injectIntl(CVECNumber);\n","/* eslint-disable */\n/**\n * TODO - preamble\n */\nimport React from \"react\";\nimport { FormattedHTMLMessage } from \"react-intl\";\nimport { produce } from \"immer\";\n\nimport {\n VerificationService,\n StudentPersonalInfoViewModel,\n Organization,\n StudentPersonalInfoResponse,\n CustomFormFieldConfig,\n} from \"../../lib/types/types\";\n\nimport { VerificationStepsEnum } from \"../../lib/types/runtimeTypes\";\nimport { hasFailedInstantMatch } from \"../../lib/VerificationService/VerificationServiceHelpers\";\nimport {\n getFieldConfigByFieldId,\n handleEmailOnKeyDown,\n updateFieldValidationErrorsByFieldId,\n updateViewModelOrganization,\n} from \"../../lib/utils/stepComponentHelpers/stepComponentHelpers\";\n\nimport { ChangeLocaleV2Component } from \"../FormFields/ChangeLocale/ChangeLocaleComponent\";\nimport { MarketConsentWrapperComponent as MarketConsentWrapper } from \"../FormFields/MarketConsentWrapper/MarketConsentWrapperComponent\";\nimport { PhoneNumberComponent as PhoneNumber } from \"../FormFields/PhoneNumber/PhoneNumberComponent\";\nimport { CollegeNameComponent as CollegeName } from \"../FormFields/CollegeName/CollegeNameComponent\";\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 { 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\";\nimport { useFlag } from \"../FeatureFlags/hooks\";\nimport { CVECNumberComponent } from \"../FormFields/CVECNumber/CVECNumberComponent\";\nimport { CaptchaComponent } from \"../FormFields/Captcha/CaptchaComponent\";\n\ninterface StepStudentPersonalInfoComponentProps {\n verificationService: VerificationService;\n}\n\nconst StepStudentPersonalInfo = ({\n verificationService,\n}: StepStudentPersonalInfoComponentProps) => {\n const viewModel = verificationService.viewModel as StudentPersonalInfoViewModel;\n const { fieldValidationErrors } = verificationService;\n const verificationResponse =\n verificationService.verificationResponse as StudentPersonalInfoResponse;\n const options = getOptions();\n\n // #region include-cvec-field-france-student\n const showCvecInputVariation = useFlag(\"include-cvec-field-france-student\");\n const showCvecInput =\n showCvecInputVariation !== \"control\" &&\n showCvecInputVariation !== \"default\" &&\n viewModel?.countryChoice?.value === \"FR\";\n\n React.useEffect(() => {\n const existing = (verificationService.viewModel?.fieldsToSkipValidation || []).filter(\n (id) => id !== \"cvecNumber\",\n );\n if (showCvecInput) {\n updateStudentViewModel(\"fieldsToSkipValidation\", existing);\n } else {\n // Don't validate CVEC number if country is not France\n updateStudentViewModel(\"fieldsToSkipValidation\", [...existing, \"cvecNumber\"]);\n }\n }, [showCvecInput]);\n // #endregion include-cvec-field-france-student\n\n const failedInstantMatch = hasFailedInstantMatch(verificationResponse);\n\n const updateStudentViewModel = (key: keyof StudentPersonalInfoViewModel, value: any) => {\n const nextState: StudentPersonalInfoViewModel = produce(\n viewModel,\n (draft: StudentPersonalInfoViewModel) => {\n draft[key] = value;\n },\n );\n verificationService.updateViewModel(nextState);\n };\n\n const locale = viewModel.localeChoice.value;\n\n return (\n <PersonalInfoWrapper\n verificationService={verificationService}\n step={verificationResponse.currentStep}\n >\n <PersonalInfoHeader\n verificationService={verificationService}\n classNameIdentifier=\"student-personal-info\"\n />\n <ChangeLocaleV2Component verificationService={verificationService} />\n <CountryComponentWrapper\n verificationService={verificationService}\n disabled={getFieldConfigByFieldId(\"country\")?.disabled}\n />\n <CollegeName\n value={(verificationService.viewModel as StudentPersonalInfoViewModel).organization}\n verificationService={verificationService}\n isErrored={!!fieldValidationErrors.organization}\n isRequired\n disabled={getFieldConfigByFieldId(\"organization\")?.disabled}\n onChange={(choice: Organization) => {\n updateViewModelOrganization(choice, verificationService);\n updateFieldValidationErrorsByFieldId(\"organization\", choice, verificationService);\n }}\n />\n {showCvecInput && (\n <CVECNumberComponent\n isRequired={getFieldConfigByFieldId(\"cvecNumber\")?.requireIfOptional}\n value={viewModel.cvecNumber}\n isErrored={!!fieldValidationErrors.cvecNumber}\n disabled={getFieldConfigByFieldId(\"cvecNumber\")?.disabled}\n onChange={(newValue) => {\n updateStudentViewModel(\"cvecNumber\", newValue);\n updateFieldValidationErrorsByFieldId(\"cvecNumber\", newValue, 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 updateStudentViewModel(\"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 updateStudentViewModel(\"lastName\", newValue);\n updateFieldValidationErrorsByFieldId(\"lastName\", newValue, verificationService);\n }}\n />\n </div>\n <BirthDate\n value={viewModel.birthDate}\n errorId={fieldValidationErrors.birthDate}\n locale={locale}\n isRequired\n disabled={getFieldConfigByFieldId(\"birthDate\")?.disabled}\n onChange={(newValue) => {\n updateStudentViewModel(\"birthDate\", newValue);\n updateFieldValidationErrorsByFieldId(\"birthDate\", newValue, verificationService);\n }}\n />\n <Email\n value={viewModel.email}\n isErrored={!!fieldValidationErrors.email}\n explanation={\n <FormattedHTMLMessage\n id=\"emailExplanation\"\n defaultMessage=\"Personal or school email is fine\"\n />\n }\n onChange={(newValue) => {\n updateStudentViewModel(\"email\", newValue);\n updateFieldValidationErrorsByFieldId(\"email\", newValue, verificationService);\n }}\n onKeyDown={(event) => handleEmailOnKeyDown(event)}\n disabled={getFieldConfigByFieldId(\"email\")?.disabled}\n />\n {verificationService.programTheme.isSmsNotifierConfigured ||\n verificationService.programTheme.smsLoopEnabled ? (\n <PhoneNumber\n isRequired={!!verificationService.programTheme.smsLoopEnabled}\n value={viewModel.phoneNumber}\n isErrored={!!fieldValidationErrors.phoneNumber}\n disabled={getFieldConfigByFieldId(\"phoneNumber\")?.disabled}\n onChange={(newValue) => {\n updateStudentViewModel(\"phoneNumber\", newValue);\n updateFieldValidationErrorsByFieldId(\"phoneNumber\", newValue, verificationService);\n }}\n selectedCountryCode={viewModel.countryChoice && viewModel.countryChoice.value}\n />\n ) : null}\n {(options.customFormFields || []).map((config: CustomFormFieldConfig) => (\n <FormFieldCustom config={config} verificationService={verificationService} />\n ))}{\" \"}\n <MarketConsentWrapper\n verificationService={verificationService}\n isErrored={!!fieldValidationErrors.marketConsentValue}\n disabled={getFieldConfigByFieldId(\"marketConsentValue\")?.disabled}\n onChange={(newValue) => {\n updateStudentViewModel(\"metadata\", {\n ...verificationService.viewModel.metadata,\n marketConsentValue: newValue,\n });\n updateFieldValidationErrorsByFieldId(\"marketConsentValue\", newValue, verificationService);\n }}\n viewModel={viewModel}\n />\n <ExtraMessage verificationService={verificationService} suffix=\"CollectAboveSubmit\" />\n <CaptchaComponent\n verificationService={verificationService}\n isErrored={!!fieldValidationErrors.captchaToken}\n />\n <PersonalInfoStepSubmitButton\n step={VerificationStepsEnum.collectStudentPersonalInfo}\n verificationService={verificationService}\n viewModel={viewModel}\n failedInstantMatch={failedInstantMatch}\n buttonText={\n <FormattedHTMLMessage\n id=\"step.personalInfo.submitButtonText\"\n defaultMessage=\"Verify My Student Status\"\n />\n }\n />\n </PersonalInfoWrapper>\n );\n};\n\nexport const StepStudentPersonalInfoComponent = StepStudentPersonalInfo;\n"],"names":["CVECNumber","value","isErrored","onChange","intl","explanation","placeholder","isRequired","showCvecInputVariation","useFlag","getDefaultExplanation","jsx","FormattedHTMLMessage","getFieldConfigByFieldId","FormFieldText","CVECNumberComponent","injectIntl","StepStudentPersonalInfo","verificationService","viewModel","fieldValidationErrors","verificationResponse","options","getOptions","showCvecInput","React","existing","id","updateStudentViewModel","failedInstantMatch","hasFailedInstantMatch","key","nextState","produce","draft","locale","jsxs","PersonalInfoWrapper","PersonalInfoHeader","ChangeLocaleV2Component","CountryComponentWrapper","CollegeName","choice","updateViewModelOrganization","updateFieldValidationErrorsByFieldId","newValue","FirstName","LastName","BirthDate","Email","event","handleEmailOnKeyDown","PhoneNumber","config","FormFieldCustom","MarketConsentWrapper","ExtraMessage","CaptchaComponent","PersonalInfoStepSubmitButton","VerificationStepsEnum","StepStudentPersonalInfoComponent"],"mappings":";;;;;;;;;AAYO,MAAMA,IAAa,CAAC;AAAA,EACzB,OAAAC;AAAA,EACA,WAAAC;AAAA,EACA,UAAAC;AAAA,EACA,MAAAC;AAAA,EACA,aAAAC;AAAA,EACA,aAAAC,IAAc;AAAA,EACd,YAAAC,IAAa;AACf,MAA6C;AAE3C,QAAMC,IAAyBC,EAAQ,mCAAmC,GAEpEC,IAAwB,MAC5BF,MAA2B,qBACzBG,gBAAAA,EAAAA;AAAAA,IAACC;AAAA,IAAA;AAAA,MACC,IAAG;AAAA,MACH,gBAAe;AAAA,IAAA;AAAA,EA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AAGV,EAAoB,UAAU;AAAA,gBACjC,oBAAoB2B;AAAA,cAAA,CACrB,GACDD,EAAqC,sBAAsBC,GAAU3B,CAAmB;AAAA,YAC1F;AAAA,YACA,WAAAC;AAAA,UAAA;AAAA,QAAA;AAAA,QAEFR,gBAAAA,EAAAA,IAAC6C,GAAA,EAAa,qBAAAtC,GAA0C,QAAO,qBAAA,CAAqB;AAAA,QACpFP,gBAAAA,EAAAA;AAAAA,UAAC8C;AAAA,UAAA;AAAA,YACC,qBAAAvC;AAAA,YACA,WAAW,CAAC,CAACE,EAAsB;AAAA,UAAA;AAAA,QAAA;AAAA,QAErCT,gBAAAA,EAAAA;AAAAA,UAAC+C;AAAA,UAAA;AAAA,YACC,MAAMC,EAAsB;AAAA,YAC5B,qBAAAzC;AAAA,YACA,WAAAC;AAAA,YACA,oBAAAU;AAAA,YACA,YACElB,gBAAAA,EAAAA;AAAAA,cAACC;AAAA,cAAA;AAAA,gBACC,IAAG;AAAA,gBACH,gBAAe;AAAA,cAAA;AAAA,YAAA;AAAA,UACjB;AAAA,QAAA;AAAA,MAEJ;AAAA,IAAA;AAAA,EAAA;AAGN,GAEagD,KAAmC3C;"}
@@ -4,13 +4,13 @@
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.229.0
8
- * BUILD_TIMESTAMP: 1778622605704
9
- * BUILD_DATE: Tue May 12 2026 21:50:05 GMT+0000 (Coordinated Universal Time)
10
- * BUILD_COMMIT: 7af1c105d5485ac4ed1190c56d492bb4590667a9
7
+ * VERSION: 2.231.0
8
+ * BUILD_TIMESTAMP: 1778866828678
9
+ * BUILD_DATE: Fri May 15 2026 17:40:28 GMT+0000 (Coordinated Universal Time)
10
+ * BUILD_COMMIT: e2c23e54ba6fc3b35cb24b5b0cb59bd07dbdc3a1
11
11
  */
12
12
  import { i as h, m as N, b as g, j as a, P as j, o as n, g as l, F as m, n as E, U as M, V as f, p as i, e as I } from "../_mysheerid-preview.js";
13
- import { F, L as P, P as y, a as T, M as k, C as L } from "./CaptchaComponent-CKP3wfXl.js";
13
+ import { F, L as P, P as y, a as T, M as k, C as L } from "./CaptchaComponent-CnWyxiTy.js";
14
14
  import { A as R } from "./AddressComponent-DV2Wsw6k.js";
15
15
  import { P as A } from "./PostalCodeComponent-KXVfZkLx.js";
16
16
  import { E as V, P as B } from "./PersonalInfoStepSubmitButton-v_kWLmEw.js";
@@ -1 +1 @@
1
- {"version":3,"file":"index-CHA5YjcZ.js","sources":["../../src/components/StepMoverPersonalInfo/StepMoverPersonalInfoComponent.tsx"],"sourcesContent":["import { useEffect } from \"react\";\nimport { FormattedHTMLMessage, injectIntl } from \"react-intl\";\nimport { produce } from \"immer\";\n\nimport {\n type VerificationService,\n type MoverPersonalInfoViewModel,\n type MoverPersonalInfoResponse,\n type CustomFormFieldConfig,\n} from \"../../lib/types/types\";\nimport { VerificationStepsEnum } from \"../../lib/types/runtimeTypes\";\nimport { hasFailedInstantMatch } from \"../../lib/VerificationService/VerificationServiceHelpers\";\nimport {\n getFieldConfigByFieldId,\n handleEmailOnKeyDown,\n updateFieldValidationErrorsByFieldId,\n} from \"../../lib/utils/stepComponentHelpers/stepComponentHelpers\";\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 { AddressComponent as Address } from \"../FormFields/Address/AddressComponent\";\nimport { PostalCodeComponent as PostalCode } from \"../FormFields/PostalCode/PostalCodeComponent\";\nimport { EmailComponent as Email } from \"../FormFields/Email/EmailComponent\";\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 { CaptchaComponent } from \"../FormFields/Captcha/CaptchaComponent\";\n\ninterface StepMoverPersonalInfoComponentProps {\n verificationService: VerificationService;\n}\n\nconst StepMoverPersonalInfo = ({ verificationService }: StepMoverPersonalInfoComponentProps) => {\n const viewModel = verificationService.viewModel as MoverPersonalInfoViewModel;\n const { fieldValidationErrors } = verificationService;\n const verificationResponse =\n verificationService.verificationResponse as MoverPersonalInfoResponse;\n const failedInstantMatch = hasFailedInstantMatch(verificationResponse);\n const options = getOptions();\n\n const updateMoverViewModel = (key: keyof MoverPersonalInfoViewModel, value: any) => {\n const nextState: MoverPersonalInfoViewModel = produce(\n viewModel,\n (draft: MoverPersonalInfoViewModel) => {\n (draft[key] as any) = value;\n },\n );\n verificationService.updateViewModel(nextState);\n };\n\n // We do not want a drop down list, just apply available statuses to the viewModel\n useEffect(() => {\n updateMoverViewModel(\"statuses\", verificationResponse.availableStatuses);\n }, []);\n\n return (\n <PersonalInfoWrapper\n verificationService={verificationService}\n step={verificationResponse.currentStep}\n >\n <PersonalInfoHeader\n verificationService={verificationService}\n classNameIdentifier=\"mover-personal-info\"\n />\n\n <ChangeLocaleV2Component verificationService={verificationService} />\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 updateMoverViewModel(\"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 updateMoverViewModel(\"lastName\", newValue);\n updateFieldValidationErrorsByFieldId(\"lastName\", newValue, verificationService);\n }}\n />\n </div>\n\n <Address\n value={viewModel.address1}\n isErrored={!!fieldValidationErrors.address1}\n errorId={fieldValidationErrors.address1}\n onChange={(newValue) => {\n updateMoverViewModel(\"address1\", newValue);\n updateFieldValidationErrorsByFieldId(\"address1\", newValue, verificationService);\n }}\n label={<FormattedHTMLMessage id=\"streetAddress\" defaultMessage=\"Street Address\" />}\n isRequired\n disabled={getFieldConfigByFieldId(\"address1\")?.disabled}\n />\n\n <PostalCode\n value={viewModel.postalCode}\n isErrored={!!fieldValidationErrors.postalCode}\n disabled={getFieldConfigByFieldId(\"postalCode\")?.disabled}\n onChange={(newValue) => {\n updateMoverViewModel(\"postalCode\", newValue);\n updateFieldValidationErrorsByFieldId(\"postalCode\", newValue, verificationService);\n }}\n />\n\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 updateMoverViewModel(\"email\", newValue);\n updateFieldValidationErrorsByFieldId(\"email\", newValue, verificationService);\n }}\n onKeyDown={(event) => handleEmailOnKeyDown(event)}\n disabled={getFieldConfigByFieldId(\"email\")?.disabled}\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 updateMoverViewModel(\"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 updateMoverViewModel(\"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 <CaptchaComponent\n verificationService={verificationService}\n isErrored={!!fieldValidationErrors.captchaToken}\n />\n\n <PersonalInfoStepSubmitButton\n step={VerificationStepsEnum.collectMoverPersonalInfo}\n verificationService={verificationService}\n viewModel={viewModel}\n failedInstantMatch={failedInstantMatch}\n buttonText={\n <FormattedHTMLMessage\n id=\"step.personalInfo.submitButtonText\"\n defaultMessage=\"Verify My Recent Mover Status\"\n />\n }\n />\n </PersonalInfoWrapper>\n );\n};\n\nexport const StepMoverPersonalInfoComponent = injectIntl(StepMoverPersonalInfo);\n"],"names":["StepMoverPersonalInfo","verificationService","viewModel","fieldValidationErrors","verificationResponse","failedInstantMatch","hasFailedInstantMatch","options","getOptions","updateMoverViewModel","key","value","nextState","produce","draft","useEffect","jsxs","PersonalInfoWrapper","jsx","PersonalInfoHeader","ChangeLocaleV2Component","FirstName","getFieldConfigByFieldId","newValue","updateFieldValidationErrorsByFieldId","LastName","Address","FormattedHTMLMessage","PostalCode","Email","event","handleEmailOnKeyDown","PhoneNumber","config","FormFieldCustom","MarketConsentWrapper","ExtraMessage","CaptchaComponent","PersonalInfoStepSubmitButton","VerificationStepsEnum","StepMoverPersonalInfoComponent","injectIntl"],"mappings":";;;;;;;AAqCA,MAAMA,IAAwB,CAAC,EAAE,qBAAAC,QAA+D;AAC9F,QAAMC,IAAYD,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AAA,YACA,WAAW,CAAC,CAACE,EAAsB;AAAA,UAAA;AAAA,QAAA;AAAA,QAGrCe,gBAAAA,EAAAA;AAAAA,UAACoB;AAAA,UAAA;AAAA,YACC,MAAMC,EAAsB;AAAA,YAC5B,qBAAAtC;AAAA,YACA,WAAAC;AAAA,YACA,oBAAAG;AAAA,YACA,YACEa,gBAAAA,EAAAA;AAAAA,cAACS;AAAA,cAAA;AAAA,gBACC,IAAG;AAAA,gBACH,gBAAe;AAAA,cAAA;AAAA,YAAA;AAAA,UACjB;AAAA,QAAA;AAAA,MAEJ;AAAA,IAAA;AAAA,EAAA;AAGN,GAEaa,IAAiCC,EAAWzC,CAAqB;"}
1
+ {"version":3,"file":"index-Cgw-oCXC.js","sources":["../../src/components/StepMoverPersonalInfo/StepMoverPersonalInfoComponent.tsx"],"sourcesContent":["import { useEffect } from \"react\";\nimport { FormattedHTMLMessage, injectIntl } from \"react-intl\";\nimport { produce } from \"immer\";\n\nimport {\n type VerificationService,\n type MoverPersonalInfoViewModel,\n type MoverPersonalInfoResponse,\n type CustomFormFieldConfig,\n} from \"../../lib/types/types\";\nimport { VerificationStepsEnum } from \"../../lib/types/runtimeTypes\";\nimport { hasFailedInstantMatch } from \"../../lib/VerificationService/VerificationServiceHelpers\";\nimport {\n getFieldConfigByFieldId,\n handleEmailOnKeyDown,\n updateFieldValidationErrorsByFieldId,\n} from \"../../lib/utils/stepComponentHelpers/stepComponentHelpers\";\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 { AddressComponent as Address } from \"../FormFields/Address/AddressComponent\";\nimport { PostalCodeComponent as PostalCode } from \"../FormFields/PostalCode/PostalCodeComponent\";\nimport { EmailComponent as Email } from \"../FormFields/Email/EmailComponent\";\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 { CaptchaComponent } from \"../FormFields/Captcha/CaptchaComponent\";\n\ninterface StepMoverPersonalInfoComponentProps {\n verificationService: VerificationService;\n}\n\nconst StepMoverPersonalInfo = ({ verificationService }: StepMoverPersonalInfoComponentProps) => {\n const viewModel = verificationService.viewModel as MoverPersonalInfoViewModel;\n const { fieldValidationErrors } = verificationService;\n const verificationResponse =\n verificationService.verificationResponse as MoverPersonalInfoResponse;\n const failedInstantMatch = hasFailedInstantMatch(verificationResponse);\n const options = getOptions();\n\n const updateMoverViewModel = (key: keyof MoverPersonalInfoViewModel, value: any) => {\n const nextState: MoverPersonalInfoViewModel = produce(\n viewModel,\n (draft: MoverPersonalInfoViewModel) => {\n (draft[key] as any) = value;\n },\n );\n verificationService.updateViewModel(nextState);\n };\n\n // We do not want a drop down list, just apply available statuses to the viewModel\n useEffect(() => {\n updateMoverViewModel(\"statuses\", verificationResponse.availableStatuses);\n }, []);\n\n return (\n <PersonalInfoWrapper\n verificationService={verificationService}\n step={verificationResponse.currentStep}\n >\n <PersonalInfoHeader\n verificationService={verificationService}\n classNameIdentifier=\"mover-personal-info\"\n />\n\n <ChangeLocaleV2Component verificationService={verificationService} />\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 updateMoverViewModel(\"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 updateMoverViewModel(\"lastName\", newValue);\n updateFieldValidationErrorsByFieldId(\"lastName\", newValue, verificationService);\n }}\n />\n </div>\n\n <Address\n value={viewModel.address1}\n isErrored={!!fieldValidationErrors.address1}\n errorId={fieldValidationErrors.address1}\n onChange={(newValue) => {\n updateMoverViewModel(\"address1\", newValue);\n updateFieldValidationErrorsByFieldId(\"address1\", newValue, verificationService);\n }}\n label={<FormattedHTMLMessage id=\"streetAddress\" defaultMessage=\"Street Address\" />}\n isRequired\n disabled={getFieldConfigByFieldId(\"address1\")?.disabled}\n />\n\n <PostalCode\n value={viewModel.postalCode}\n isErrored={!!fieldValidationErrors.postalCode}\n disabled={getFieldConfigByFieldId(\"postalCode\")?.disabled}\n onChange={(newValue) => {\n updateMoverViewModel(\"postalCode\", newValue);\n updateFieldValidationErrorsByFieldId(\"postalCode\", newValue, verificationService);\n }}\n />\n\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 updateMoverViewModel(\"email\", newValue);\n updateFieldValidationErrorsByFieldId(\"email\", newValue, verificationService);\n }}\n onKeyDown={(event) => handleEmailOnKeyDown(event)}\n disabled={getFieldConfigByFieldId(\"email\")?.disabled}\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 updateMoverViewModel(\"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 updateMoverViewModel(\"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 <CaptchaComponent\n verificationService={verificationService}\n isErrored={!!fieldValidationErrors.captchaToken}\n />\n\n <PersonalInfoStepSubmitButton\n step={VerificationStepsEnum.collectMoverPersonalInfo}\n verificationService={verificationService}\n viewModel={viewModel}\n failedInstantMatch={failedInstantMatch}\n buttonText={\n <FormattedHTMLMessage\n id=\"step.personalInfo.submitButtonText\"\n defaultMessage=\"Verify My Recent Mover Status\"\n />\n }\n />\n </PersonalInfoWrapper>\n );\n};\n\nexport const StepMoverPersonalInfoComponent = injectIntl(StepMoverPersonalInfo);\n"],"names":["StepMoverPersonalInfo","verificationService","viewModel","fieldValidationErrors","verificationResponse","failedInstantMatch","hasFailedInstantMatch","options","getOptions","updateMoverViewModel","key","value","nextState","produce","draft","useEffect","jsxs","PersonalInfoWrapper","jsx","PersonalInfoHeader","ChangeLocaleV2Component","FirstName","getFieldConfigByFieldId","newValue","updateFieldValidationErrorsByFieldId","LastName","Address","FormattedHTMLMessage","PostalCode","Email","event","handleEmailOnKeyDown","PhoneNumber","config","FormFieldCustom","MarketConsentWrapper","ExtraMessage","CaptchaComponent","PersonalInfoStepSubmit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B,GAAA,EAAa,qBAAAnC,GAA0C,QAAO,qBAAA,CAAqB;AAAA,QAEpFiB,gBAAAA,EAAAA;AAAAA,UAACmB;AAAA,UAAA;AAAA,YACC,qBAAApC;AAAA,YACA,WAAW,CAAC,CAACE,EAAsB;AAAA,UAAA;AAAA,QAAA;AAAA,QAGrCe,gBAAAA,EAAAA;AAAAA,UAACoB;AAAA,UAAA;AAAA,YACC,MAAMC,EAAsB;AAAA,YAC5B,qBAAAtC;AAAA,YACA,WAAAC;AAAA,YACA,oBAAAG;AAAA,YACA,YACEa,gBAAAA,EAAAA;AAAAA,cAACS;AAAA,cAAA;AAAA,gBACC,IAAG;AAAA,gBACH,gBAAe;AAAA,cAAA;AAAA,YAAA;AAAA,UACjB;AAAA,QAAA;AAAA,MAEJ;AAAA,IAAA;AAAA,EAAA;AAGN,GAEaa,IAAiCC,EAAWzC,CAAqB;"}
@@ -1,9 +1,9 @@
1
1
 
2
2
  /**
3
- * VERSION: 2.229.0
4
- * BUILD_TIMESTAMP: 1778622589526
5
- * BUILD_DATE: Tue May 12 2026 21:49:49 GMT+0000 (Coordinated Universal Time)
6
- * BUILD_COMMIT: 7af1c105d5485ac4ed1190c56d492bb4590667a9
3
+ * VERSION: 2.231.0
4
+ * BUILD_TIMESTAMP: 1778866812284
5
+ * BUILD_DATE: Fri May 15 2026 17:40:12 GMT+0000 (Coordinated Universal Time)
6
+ * BUILD_COMMIT: e2c23e54ba6fc3b35cb24b5b0cb59bd07dbdc3a1
7
7
  */
8
8
  import { j as s, L as n, F as l, a as r, i as j, R as N, I as y, k as S, o as g, s as f, M as C, V as a, p as w } from "../sheerid.js";
9
9
  import { S as M } from "./SSN-B_z2R4Bx.js";
@@ -4,10 +4,10 @@
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.229.0
8
- * BUILD_TIMESTAMP: 1778622605704
9
- * BUILD_DATE: Tue May 12 2026 21:50:05 GMT+0000 (Coordinated Universal Time)
10
- * BUILD_COMMIT: 7af1c105d5485ac4ed1190c56d492bb4590667a9
7
+ * VERSION: 2.231.0
8
+ * BUILD_TIMESTAMP: 1778866828678
9
+ * BUILD_DATE: Fri May 15 2026 17:40:28 GMT+0000 (Coordinated Universal Time)
10
+ * BUILD_COMMIT: e2c23e54ba6fc3b35cb24b5b0cb59bd07dbdc3a1
11
11
  */
12
12
  import { af as y, l as v, ag as b, ah as M, R as w, ai as j, aj as C, ak as R, j as s, L as S, I as T, F as a, t as _, v as F, al as O, E as A, am as D, e as P } from "../_mysheerid-preview.js";
13
13
  import { C as k } from "./CopyToClipboardComponent-9hyfSMC0.js";
@@ -1,9 +1,9 @@
1
1
 
2
2
  /**
3
- * VERSION: 2.229.0
4
- * BUILD_TIMESTAMP: 1778622589526
5
- * BUILD_DATE: Tue May 12 2026 21:49:49 GMT+0000 (Coordinated Universal Time)
6
- * BUILD_COMMIT: 7af1c105d5485ac4ed1190c56d492bb4590667a9
3
+ * VERSION: 2.231.0
4
+ * BUILD_TIMESTAMP: 1778866812284
5
+ * BUILD_DATE: Fri May 15 2026 17:40:12 GMT+0000 (Coordinated Universal Time)
6
+ * BUILD_COMMIT: e2c23e54ba6fc3b35cb24b5b0cb59bd07dbdc3a1
7
7
  */
8
8
  import { b as f, b4 as ee, b5 as te, b6 as It, W as Ut, R as yt, av as g, p as De, b7 as Ve, j as t, b8 as s, an as c, F as h, i as vt, a4 as Ue, ai as jt, b9 as Dt, h as At, ba as We, L as _t, I as Rt, bb as Nt, s as wt, bc as Ct, bd as Tt, a as Ft, l as Me, V as ye, al as $e, E as Ke, be as St, y as Ot } from "../sheerid.js";
9
9
  import { u as Lt, D as Mt, b as kt } from "./useMetrics-wq7yrL0b.js";
@@ -4,17 +4,17 @@
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.229.0
8
- * BUILD_TIMESTAMP: 1778622605704
9
- * BUILD_DATE: Tue May 12 2026 21:50:05 GMT+0000 (Coordinated Universal Time)
10
- * BUILD_COMMIT: 7af1c105d5485ac4ed1190c56d492bb4590667a9
7
+ * VERSION: 2.231.0
8
+ * BUILD_TIMESTAMP: 1778866828678
9
+ * BUILD_DATE: Fri May 15 2026 17:40:28 GMT+0000 (Coordinated Universal Time)
10
+ * BUILD_COMMIT: e2c23e54ba6fc3b35cb24b5b0cb59bd07dbdc3a1
11
11
  */
12
12
  import { i as N, a4 as h, g as d, j as s, F as r, R as g, m as E, p as j, P as M, _ as I, o as l, n as F, U as y, V, e as P } from "../_mysheerid-preview.js";
13
13
  import { C as T } from "./ChangeLocaleComponent-Cu2DR-Q3.js";
14
- import { F as R, L as k, P as D, a as L, M as w, C as q } from "./CaptchaComponent-CKP3wfXl.js";
14
+ import { F as R, L as k, P as D, a as L, M as w, C as q } from "./CaptchaComponent-CnWyxiTy.js";
15
15
  import { C as B } from "./CollegeNameComponent-DaTimEqC.js";
16
16
  import { E as H, P as z } from "./PersonalInfoStepSubmitButton-v_kWLmEw.js";
17
- import { B as A } from "./militaryStepHelpers-pEvqlKjI.js";
17
+ import { B as A } from "./militaryStepHelpers-jW2_4c1l.js";
18
18
  import { C as O } from "./CountryComponentWrapper--2UQ7mXP.js";
19
19
  import { P as W } from "./PersonalInfoStepWrapper-BOBNCgik.js";
20
20
  import { F as K } from "./FormFieldText-CJ-GVpZE.js";
@@ -1 +1 @@
1
- {"version":3,"file":"index-BestrDUg.js","sources":["../../src/components/FormFields/CVECNumber/CVECNumberComponent.tsx","../../src/components/StepStudentPersonalInfo/StepStudentPersonalInfoComponent.tsx"],"sourcesContent":["import { FormattedHTMLMessage, injectIntl } from \"react-intl\";\n\nimport { getFieldConfigByFieldId } from \"@/lib/utils/stepComponentHelpers/stepComponentHelpers\";\n\nimport { type FormFieldComponentProps } from \"../../../lib/types/types\";\nimport { FormFieldText } from \"../FormFieldText/FormFieldText\";\nimport { useFlag } from \"../../FeatureFlags/hooks\";\n\ninterface PassedProps {\n explanation?: string | JSX.Element;\n}\n\nexport const CVECNumber = ({\n value,\n isErrored,\n onChange,\n intl,\n explanation,\n placeholder = \"\",\n isRequired = false,\n}: FormFieldComponentProps & PassedProps) => {\n // #region include-cvec-field-france-student\n const showCvecInputVariation = useFlag(\"include-cvec-field-france-student\");\n\n const getDefaultExplanation = () =>\n showCvecInputVariation === \"labeled-optional\" ? (\n <FormattedHTMLMessage\n id=\"cvecNumberExplanation\"\n defaultMessage=\"Optional - Add your CVEC number to increase your chances of being verified instantly.\"\n />\n ) : (\n <FormattedHTMLMessage\n id=\"_EXPERIMENTAL.cvecNumberExplanation\"\n defaultMessage=\"Add your CVEC number to increase your chances of being verified instantly.\"\n />\n );\n // #endregion include-cvec-field-france-student\n\n const isFieldHidden = getFieldConfigByFieldId(\"cvecNumber\")?.hidden;\n\n if (isFieldHidden) {\n return null;\n }\n\n return (\n <FormFieldText\n fieldId=\"cvecNumber\"\n value={value}\n onChange={onChange}\n placeholder={\n placeholder ||\n intl.formatHTMLMessage({\n id: \"cvecNumberPlaceholder\",\n defaultMessage: \"CVEC certificate number\",\n })\n }\n label={<FormattedHTMLMessage id=\"cvecNumber\" defaultMessage=\"CVEC certificate number\" />}\n errorMessage={\n isErrored && (\n <FormattedHTMLMessage\n id=\"errorId.invalidCvecNumber\"\n defaultMessage=\"Invalid CVEC certificate number\"\n />\n )\n }\n showPlaceholderAndHideLabel={!!placeholder}\n required={isRequired}\n explanation={explanation || getDefaultExplanation()}\n />\n );\n};\nexport const CVECNumberComponent = injectIntl(CVECNumber);\n","/* eslint-disable */\n/**\n * TODO - preamble\n */\nimport React from \"react\";\nimport { FormattedHTMLMessage } from \"react-intl\";\nimport { produce } from \"immer\";\n\nimport {\n VerificationService,\n StudentPersonalInfoViewModel,\n Organization,\n StudentPersonalInfoResponse,\n CustomFormFieldConfig,\n} from \"../../lib/types/types\";\n\nimport { VerificationStepsEnum } from \"../../lib/types/runtimeTypes\";\nimport { hasFailedInstantMatch } from \"../../lib/VerificationService/VerificationServiceHelpers\";\nimport {\n getFieldConfigByFieldId,\n handleEmailOnKeyDown,\n updateFieldValidationErrorsByFieldId,\n updateViewModelOrganization,\n} from \"../../lib/utils/stepComponentHelpers/stepComponentHelpers\";\n\nimport { ChangeLocaleV2Component } from \"../FormFields/ChangeLocale/ChangeLocaleComponent\";\nimport { MarketConsentWrapperComponent as MarketConsentWrapper } from \"../FormFields/MarketConsentWrapper/MarketConsentWrapperComponent\";\nimport { PhoneNumberComponent as PhoneNumber } from \"../FormFields/PhoneNumber/PhoneNumberComponent\";\nimport { CollegeNameComponent as CollegeName } from \"../FormFields/CollegeName/CollegeNameComponent\";\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 { 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\";\nimport { useFlag } from \"../FeatureFlags/hooks\";\nimport { CVECNumberComponent } from \"../FormFields/CVECNumber/CVECNumberComponent\";\nimport { CaptchaComponent } from \"../FormFields/Captcha/CaptchaComponent\";\n\ninterface StepStudentPersonalInfoComponentProps {\n verificationService: VerificationService;\n}\n\nconst StepStudentPersonalInfo = ({\n verificationService,\n}: StepStudentPersonalInfoComponentProps) => {\n const viewModel = verificationService.viewModel as StudentPersonalInfoViewModel;\n const { fieldValidationErrors } = verificationService;\n const verificationResponse =\n verificationService.verificationResponse as StudentPersonalInfoResponse;\n const options = getOptions();\n\n // #region include-cvec-field-france-student\n const showCvecInputVariation = useFlag(\"include-cvec-field-france-student\");\n const showCvecInput =\n showCvecInputVariation !== \"control\" &&\n showCvecInputVariation !== \"default\" &&\n viewModel?.countryChoice?.value === \"FR\";\n\n React.useEffect(() => {\n const existing = (verificationService.viewModel?.fieldsToSkipValidation || []).filter(\n (id) => id !== \"cvecNumber\",\n );\n if (showCvecInput) {\n updateStudentViewModel(\"fieldsToSkipValidation\", existing);\n } else {\n // Don't validate CVEC number if country is not France\n updateStudentViewModel(\"fieldsToSkipValidation\", [...existing, \"cvecNumber\"]);\n }\n }, [showCvecInput]);\n // #endregion include-cvec-field-france-student\n\n const failedInstantMatch = hasFailedInstantMatch(verificationResponse);\n\n const updateStudentViewModel = (key: keyof StudentPersonalInfoViewModel, value: any) => {\n const nextState: StudentPersonalInfoViewModel = produce(\n viewModel,\n (draft: StudentPersonalInfoViewModel) => {\n draft[key] = value;\n },\n );\n verificationService.updateViewModel(nextState);\n };\n\n const locale = viewModel.localeChoice.value;\n\n return (\n <PersonalInfoWrapper\n verificationService={verificationService}\n step={verificationResponse.currentStep}\n >\n <PersonalInfoHeader\n verificationService={verificationService}\n classNameIdentifier=\"student-personal-info\"\n />\n <ChangeLocaleV2Component verificationService={verificationService} />\n <CountryComponentWrapper\n verificationService={verificationService}\n disabled={getFieldConfigByFieldId(\"country\")?.disabled}\n />\n <CollegeName\n value={(verificationService.viewModel as StudentPersonalInfoViewModel).organization}\n verificationService={verificationService}\n isErrored={!!fieldValidationErrors.organization}\n isRequired\n disabled={getFieldConfigByFieldId(\"organization\")?.disabled}\n onChange={(choice: Organization) => {\n updateViewModelOrganization(choice, verificationService);\n updateFieldValidationErrorsByFieldId(\"organization\", choice, verificationService);\n }}\n />\n {showCvecInput && (\n <CVECNumberComponent\n isRequired={getFieldConfigByFieldId(\"cvecNumber\")?.requireIfOptional}\n value={viewModel.cvecNumber}\n isErrored={!!fieldValidationErrors.cvecNumber}\n disabled={getFieldConfigByFieldId(\"cvecNumber\")?.disabled}\n onChange={(newValue) => {\n updateStudentViewModel(\"cvecNumber\", newValue);\n updateFieldValidationErrorsByFieldId(\"cvecNumber\", newValue, 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 updateStudentViewModel(\"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 updateStudentViewModel(\"lastName\", newValue);\n updateFieldValidationErrorsByFieldId(\"lastName\", newValue, verificationService);\n }}\n />\n </div>\n <BirthDate\n value={viewModel.birthDate}\n errorId={fieldValidationErrors.birthDate}\n locale={locale}\n isRequired\n disabled={getFieldConfigByFieldId(\"birthDate\")?.disabled}\n onChange={(newValue) => {\n updateStudentViewModel(\"birthDate\", newValue);\n updateFieldValidationErrorsByFieldId(\"birthDate\", newValue, verificationService);\n }}\n />\n <Email\n value={viewModel.email}\n isErrored={!!fieldValidationErrors.email}\n explanation={\n <FormattedHTMLMessage\n id=\"emailExplanation\"\n defaultMessage=\"Personal or school email is fine\"\n />\n }\n onChange={(newValue) => {\n updateStudentViewModel(\"email\", newValue);\n updateFieldValidationErrorsByFieldId(\"email\", newValue, verificationService);\n }}\n onKeyDown={(event) => handleEmailOnKeyDown(event)}\n disabled={getFieldConfigByFieldId(\"email\")?.disabled}\n />\n {verificationService.programTheme.isSmsNotifierConfigured ||\n verificationService.programTheme.smsLoopEnabled ? (\n <PhoneNumber\n isRequired={!!verificationService.programTheme.smsLoopEnabled}\n value={viewModel.phoneNumber}\n isErrored={!!fieldValidationErrors.phoneNumber}\n disabled={getFieldConfigByFieldId(\"phoneNumber\")?.disabled}\n onChange={(newValue) => {\n updateStudentViewModel(\"phoneNumber\", newValue);\n updateFieldValidationErrorsByFieldId(\"phoneNumber\", newValue, verificationService);\n }}\n selectedCountryCode={viewModel.countryChoice && viewModel.countryChoice.value}\n />\n ) : null}\n {(options.customFormFields || []).map((config: CustomFormFieldConfig) => (\n <FormFieldCustom config={config} verificationService={verificationService} />\n ))}{\" \"}\n <MarketConsentWrapper\n verificationService={verificationService}\n isErrored={!!fieldValidationErrors.marketConsentValue}\n disabled={getFieldConfigByFieldId(\"marketConsentValue\")?.disabled}\n onChange={(newValue) => {\n updateStudentViewModel(\"metadata\", {\n ...verificationService.viewModel.metadata,\n marketConsentValue: newValue,\n });\n updateFieldValidationErrorsByFieldId(\"marketConsentValue\", newValue, verificationService);\n }}\n viewModel={viewModel}\n />\n <ExtraMessage verificationService={verificationService} suffix=\"CollectAboveSubmit\" />\n <CaptchaComponent\n verificationService={verificationService}\n isErrored={!!fieldValidationErrors.captchaToken}\n />\n <PersonalInfoStepSubmitButton\n step={VerificationStepsEnum.collectStudentPersonalInfo}\n verificationService={verificationService}\n viewModel={viewModel}\n failedInstantMatch={failedInstantMatch}\n buttonText={\n <FormattedHTMLMessage\n id=\"step.personalInfo.submitButtonText\"\n defaultMessage=\"Verify My Student Status\"\n />\n }\n />\n </PersonalInfoWrapper>\n );\n};\n\nexport const StepStudentPersonalInfoComponent = StepStudentPersonalInfo;\n"],"names":["CVECNumber","value","isErrored","onChange","intl","explanation","placeholder","isRequired","showCvecInputVariation","useFlag","getDefaultExplanation","jsx","FormattedHTMLMessage","getFieldConfigByFieldId","FormFieldText","CVECNumberComponent","injectIntl","StepStudentPersonalInfo","verificationService","viewModel","fieldValidationErrors","verificationResponse","options","getOptions","showCvecInput","React","existing","id","updateStudentViewModel","failedInstantMatch","hasFailedInstantMatch","key","nextState","produce","draft","locale","jsxs","PersonalInfoWrapper","PersonalInfoHeader","ChangeLocaleV2Component","CountryComponentWrapper","CollegeName","choice","updateViewModelOrganization","updateFieldValidationErrorsByFieldId","newValue","FirstName","LastName","BirthDate","Email","event","handleEmailOnKeyDown","PhoneNumber","config","FormFieldCustom","MarketConsentWrapper","ExtraMessage","CaptchaComponent","PersonalInfoStepSubmitButton","VerificationStepsEnum","StepStudentPersonalInfoComponent"],"mappings":";;;;;;;;;AAYO,MAAMA,IAAa,CAAC;AAAA,EACzB,OAAAC;AAAA,EACA,WAAAC;AAAA,EACA,UAAAC;AAAA,EACA,MAAAC;AAAA,EACA,aAAAC;AAAA,EACA,aAAAC,IAAc;AAAA,EACd,YAAAC,IAAa;AACf,MAA6C;AAE3C,QAAMC,IAAyBC,EAAQ,mCAAmC,GAEpEC,IAAwB,MAC5BF,MAA2B,qBACzBG,gBAAAA,EAAAA;AAAAA,IAACC;AAAA,IAAA;AAAA,MACC,IAAG;AAAA,MACH,gBAAe;AAAA,IAAA;AAAA,EAAA,IAGjBD,gBAAAA,EAAAA;AAAAA,IAACC;AAAA,IAAA;AAAA,MACC,IAAG;AAAA,MACH,gBAAe;AAAA,IAAA;AAAA,EAAA;AAOrB,SAFsBC,EAAwB,YAAY,GAAG,SAGpD,OAIPF,gBAAAA,EAAAA;AAAAA,IAACG;AAAA,IAAA;AAAA,MACC,SAAQ;AAAA,MACR,OAAAb;AAAA,MACA,UAAAE;AAAA,MACA,aACEG,KACAF,EAAK,kBAAkB;AAAA,QACrB,IAAI;AAAA,QACJ,gBAAgB;AAAA,MAAA,CACjB;AAAA,MAEH,OAAOO,gBAAAA,EAAAA,IAACC,GAAA,EAAqB,IAAG,cAAa,gBAAe,2BAA0B;AAAA,MACtF,cACEV,KACES,gBAAAA,EAAAA;AAAAA,QAACC;AAAA,QAAA;AAAA,UACC,IAAG;AAAA,UACH,gBAAe;AAAA,QAAA;AAAA,MAAA;AAAA,MAIrB,6BAA6B,CAAC,CAACN;AAAA,MAC/B,UAAUC;AAAA,MACV,aAAaF,KAAeK,EA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AA;AAAA,UACjB;AAAA,QAAA;AAAA,MAEJ;AAAA,IAAA;AAAA,EAAA;AAGN,GAEagD,KAAmC3C;"}
1
+ {"version":3,"file":"index-D62LImgf.js","sources":["../../src/components/FormFields/CVECNumber/CVECNumberComponent.tsx","../../src/components/StepStudentPersonalInfo/StepStudentPersonalInfoComponent.tsx"],"sourcesContent":["import { FormattedHTMLMessage, injectIntl } from \"react-intl\";\n\nimport { getFieldConfigByFieldId } from \"@/lib/utils/stepComponentHelpers/stepComponentHelpers\";\n\nimport { type FormFieldComponentProps } from \"../../../lib/types/types\";\nimport { FormFieldText } from \"../FormFieldText/FormFieldText\";\nimport { useFlag } from \"../../FeatureFlags/hooks\";\n\ninterface PassedProps {\n explanation?: string | JSX.Element;\n}\n\nexport const CVECNumber = ({\n value,\n isErrored,\n onChange,\n intl,\n explanation,\n placeholder = \"\",\n isRequired = false,\n}: FormFieldComponentProps & PassedProps) => {\n // #region include-cvec-field-france-student\n const showCvecInputVariation = useFlag(\"include-cvec-field-france-student\");\n\n const getDefaultExplanation = () =>\n showCvecInputVariation === \"labeled-optional\" ? (\n <FormattedHTMLMessage\n id=\"cvecNumberExplanation\"\n defaultMessage=\"Optional - Add your CVEC number to increase your chances of being verified instantly.\"\n />\n ) : (\n <FormattedHTMLMessage\n id=\"_EXPERIMENTAL.cvecNumberExplanation\"\n defaultMessage=\"Add your CVEC number to increase your chances of being verified instantly.\"\n />\n );\n // #endregion include-cvec-field-france-student\n\n const isFieldHidden = getFieldConfigByFieldId(\"cvecNumber\")?.hidden;\n\n if (isFieldHidden) {\n return null;\n }\n\n return (\n <FormFieldText\n fieldId=\"cvecNumber\"\n value={value}\n onChange={onChange}\n placeholder={\n placeholder ||\n intl.formatHTMLMessage({\n id: \"cvecNumberPlaceholder\",\n defaultMessage: \"CVEC certificate number\",\n })\n }\n label={<FormattedHTMLMessage id=\"cvecNumber\" defaultMessage=\"CVEC certificate number\" />}\n errorMessage={\n isErrored && (\n <FormattedHTMLMessage\n id=\"errorId.invalidCvecNumber\"\n defaultMessage=\"Invalid CVEC certificate number\"\n />\n )\n }\n showPlaceholderAndHideLabel={!!placeholder}\n required={isRequired}\n explanation={explanation || getDefaultExplanation()}\n />\n );\n};\nexport const CVECNumberComponent = injectIntl(CVECNumber);\n","/* eslint-disable */\n/**\n * TODO - preamble\n */\nimport React from \"react\";\nimport { FormattedHTMLMessage } from \"react-intl\";\nimport { produce } from \"immer\";\n\nimport {\n VerificationService,\n StudentPersonalInfoViewModel,\n Organization,\n StudentPersonalInfoResponse,\n CustomFormFieldConfig,\n} from \"../../lib/types/types\";\n\nimport { VerificationStepsEnum } from \"../../lib/types/runtimeTypes\";\nimport { hasFailedInstantMatch } from \"../../lib/VerificationService/VerificationServiceHelpers\";\nimport {\n getFieldConfigByFieldId,\n handleEmailOnKeyDown,\n updateFieldValidationErrorsByFieldId,\n updateViewModelOrganization,\n} from \"../../lib/utils/stepComponentHelpers/stepComponentHelpers\";\n\nimport { ChangeLocaleV2Component } from \"../FormFields/ChangeLocale/ChangeLocaleComponent\";\nimport { MarketConsentWrapperComponent as MarketConsentWrapper } from \"../FormFields/MarketConsentWrapper/MarketConsentWrapperComponent\";\nimport { PhoneNumberComponent as PhoneNumber } from \"../FormFields/PhoneNumber/PhoneNumberComponent\";\nimport { CollegeNameComponent as CollegeName } from \"../FormFields/CollegeName/CollegeNameComponent\";\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 { 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\";\nimport { useFlag } from \"../FeatureFlags/hooks\";\nimport { CVECNumberComponent } from \"../FormFields/CVECNumber/CVECNumberComponent\";\nimport { CaptchaComponent } from \"../FormFields/Captcha/CaptchaComponent\";\n\ninterface StepStudentPersonalInfoComponentProps {\n verificationService: VerificationService;\n}\n\nconst StepStudentPersonalInfo = ({\n verificationService,\n}: StepStudentPersonalInfoComponentProps) => {\n const viewModel = verificationService.viewModel as StudentPersonalInfoViewModel;\n const { fieldValidationErrors } = verificationService;\n const verificationResponse =\n verificationService.verificationResponse as StudentPersonalInfoResponse;\n const options = getOptions();\n\n // #region include-cvec-field-france-student\n const showCvecInputVariation = useFlag(\"include-cvec-field-france-student\");\n const showCvecInput =\n showCvecInputVariation !== \"control\" &&\n showCvecInputVariation !== \"default\" &&\n viewModel?.countryChoice?.value === \"FR\";\n\n React.useEffect(() => {\n const existing = (verificationService.viewModel?.fieldsToSkipValidation || []).filter(\n (id) => id !== \"cvecNumber\",\n );\n if (showCvecInput) {\n updateStudentViewModel(\"fieldsToSkipValidation\", existing);\n } else {\n // Don't validate CVEC number if country is not France\n updateStudentViewModel(\"fieldsToSkipValidation\", [...existing, \"cvecNumber\"]);\n }\n }, [showCvecInput]);\n // #endregion include-cvec-field-france-student\n\n const failedInstantMatch = hasFailedInstantMatch(verificationResponse);\n\n const updateStudentViewModel = (key: keyof StudentPersonalInfoViewModel, value: any) => {\n const nextState: StudentPersonalInfoViewModel = produce(\n viewModel,\n (draft: StudentPersonalInfoViewModel) => {\n draft[key] = value;\n },\n );\n verificationService.updateViewModel(nextState);\n };\n\n const locale = viewModel.localeChoice.value;\n\n return (\n <PersonalInfoWrapper\n verificationService={verificationService}\n step={verificationResponse.currentStep}\n >\n <PersonalInfoHeader\n verificationService={verificationService}\n classNameIdentifier=\"student-personal-info\"\n />\n <ChangeLocaleV2Component verificationService={verificationService} />\n <CountryComponentWrapper\n verificationService={verificationService}\n disabled={getFieldConfigByFieldId(\"country\")?.disabled}\n />\n <CollegeName\n value={(verificationService.viewModel as StudentPersonalInfoViewModel).organization}\n verificationService={verificationService}\n isErrored={!!fieldValidationErrors.organization}\n isRequired\n disabled={getFieldConfigByFieldId(\"organization\")?.disabled}\n onChange={(choice: Organization) => {\n updateViewModelOrganization(choice, verificationService);\n updateFieldValidationErrorsByFieldId(\"organization\", choice, verificationService);\n }}\n />\n {showCvecInput && (\n <CVECNumberComponent\n isRequired={getFieldConfigByFieldId(\"cvecNumber\")?.requireIfOptional}\n value={viewModel.cvecNumber}\n isErrored={!!fieldValidationErrors.cvecNumber}\n disabled={getFieldConfigByFieldId(\"cvecNumber\")?.disabled}\n onChange={(newValue) => {\n updateStudentViewModel(\"cvecNumber\", newValue);\n updateFieldValidationErrorsByFieldId(\"cvecNumber\", newValue, 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 updateStudentViewModel(\"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 updateStudentViewModel(\"lastName\", newValue);\n updateFieldValidationErrorsByFieldId(\"lastName\", newValue, verificationService);\n }}\n />\n </div>\n <BirthDate\n value={viewModel.birthDate}\n errorId={fieldValidationErrors.birthDate}\n locale={locale}\n isRequired\n disabled={getFieldConfigByFieldId(\"birthDate\")?.disabled}\n onChange={(newValue) => {\n updateStudentViewModel(\"birthDate\", newValue);\n updateFieldValidationErrorsByFieldId(\"birthDate\", newValue, verificationService);\n }}\n />\n <Email\n value={viewModel.email}\n isErrored={!!fieldValidationErrors.email}\n explanation={\n <FormattedHTMLMessage\n id=\"emailExplanation\"\n defaultMessage=\"Personal or school email is fine\"\n />\n }\n onChange={(newValue) => {\n updateStudentViewModel(\"email\", newValue);\n updateFieldValidationErrorsByFieldId(\"email\", newValue, verificationService);\n }}\n onKeyDown={(event) => handleEmailOnKeyDown(event)}\n disabled={getFieldConfigByFieldId(\"email\")?.disabled}\n />\n {verificationService.programTheme.isSmsNotifierConfigured ||\n verificationService.programTheme.smsLoopEnabled ? (\n <PhoneNumber\n isRequired={!!verificationService.programTheme.smsLoopEnabled}\n value={viewModel.phoneNumber}\n isErrored={!!fieldValidationErrors.phoneNumber}\n disabled={getFieldConfigByFieldId(\"phoneNumber\")?.disabled}\n onChange={(newValue) => {\n updateStudentViewModel(\"phoneNumber\", newValue);\n updateFieldValidationErrorsByFieldId(\"phoneNumber\", newValue, verificationService);\n }}\n selectedCountryCode={viewModel.countryChoice && viewModel.countryChoice.value}\n />\n ) : null}\n {(options.customFormFields || []).map((config: CustomFormFieldConfig) => (\n <FormFieldCustom config={config} verificationService={verificationService} />\n ))}{\" \"}\n <MarketConsentWrapper\n verificationService={verificationService}\n isErrored={!!fieldValidationErrors.marketConsentValue}\n disabled={getFieldConfigByFieldId(\"marketConsentValue\")?.disabled}\n onChange={(newValue) => {\n updateStudentViewModel(\"metadata\", {\n ...verificationService.viewModel.metadata,\n marketConsentValue: newValue,\n });\n updateFieldValidationErrorsByFieldId(\"marketConsentValue\", newValue, verificationService);\n }}\n viewModel={viewModel}\n />\n <ExtraMessage verificationService={verificationService} suffix=\"CollectAboveSubmit\" />\n <CaptchaComponent\n verificationService={verificationService}\n isErrored={!!fieldValidationErrors.captchaToken}\n />\n <PersonalInfoStepSubmitButton\n step={VerificationStepsEnum.collectStudentPersonalInfo}\n verificationService={verificationService}\n viewModel={viewModel}\n failedInstantMatch={failedInstantMatch}\n buttonText={\n <FormattedHTMLMessage\n id=\"step.personalInfo.submitButtonText\"\n defaultMessage=\"Verify My Student Status\"\n />\n }\n />\n </PersonalInfoWrapper>\n );\n};\n\nexport const StepStudentPersonalInfoComponent = StepStudentPersonalInfo;\n"],"names":["CVECNumber","value","isErrored","onChange","intl","explanation","placeholder","isRequired","showCvecInputVariation","useFlag","getDefaultExplanation","jsx","FormattedHTMLMessage","getFieldConfigByFieldId","FormFieldText","CVECNumberComponent","injectIntl","StepStudentPersonalInfo","verificationService","viewModel","fieldValidationErrors","verificationResponse","options","getOptions","showCvecInput","React","existing","id","updateStudentViewModel","failedInstantMatch","hasFailedInstantMatch","key","nextState","produce","draft","locale","jsxs","PersonalInfoWrapper","PersonalInfoHeader","ChangeLocaleV2Component","CountryComponentWrapper","CollegeName","choice","updateViewModelOrganization","updateFieldValidationErrorsByFieldId","newValue","FirstName","LastName","BirthDate","Email","event","handleEmailOnKeyDown","PhoneNumber","config","FormFieldCustom","MarketConsentWrapper","ExtraMessage","CaptchaComponent","PersonalInfoStepSubmitButton","VerificationStepsEnum","StepStudentPersonalInfoComponent"],"mappings":";;;;;;;;;AAYO,MAAMA,IAAa,CAAC;AAAA,EACzB,OAAAC;AAAA,EACA,WAAAC;AAAA,EACA,UAAAC;AAAA,EACA,MAAAC;AAAA,EACA,aAAAC;AAAA,EACA,aAAAC,IAAc;AAAA,EACd,YAAAC,IAAa;AACf,MAA6C;AAE3C,QAAMC,IAAyBC,EAAQ,mCAAmC,GAEpEC,IAAwB,MAC5BF,MAA2B,qBACzBG,gBAAAA,EAAAA;AAAAA,IAACC;AAAA,IAAA;AAAA,MACC,IAAG;AAAA,MACH,gBAAe;AAAA,IAAA;AAAA,EAAA,IAGjBD,gBAAAA,EAAAA;AAAAA,IAACC;AAAA,IAAA;AAAA,MACC,IAAG;AAAA,MACH,gBAAe;AAAA,IAAA;AAAA,EAAA;AAOrB,SAFsBC,EAAwB,YAAY,GAAG,SAGpD,OAIPF,gBAAAA,EAAAA;AAAAA,IAACG;AAAA,I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,EAAa,qBAAAtC,GAA0C,QAAO,qBAAA,CAAqB;AAAA,QACpFP,gBAAAA,EAAAA;AAAAA,UAAC8C;AAAA,UAAA;AAAA,YACC,qBAAAvC;AAAA,YACA,WAAW,CAAC,CAACE,EAAsB;AAAA,UAAA;AAAA,QAAA;AAAA,QAErCT,gBAAAA,EAAAA;AAAAA,UAAC+C;AAAA,UAAA;AAAA,YACC,MAAMC,EAAsB;AAAA,YAC5B,qBAAAzC;AAAA,YACA,WAAAC;AAAA,YACA,oBAAAU;AAAA,YACA,YACElB,gBAAAA,EAAAA;AAAAA,cAACC;AAAA,cAAA;AAAA,gBACC,IAAG;AAAA,gBACH,gBAAe;AAAA,cAAA;AAAA,YAAA;AAAA,UACjB;AAAA,QAAA;AAAA,MAEJ;AAAA,IAAA;AAAA,EAAA;AAGN,GAEagD,KAAmC3C;"}
@@ -4,10 +4,10 @@
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.229.0
8
- * BUILD_TIMESTAMP: 1778622605704
9
- * BUILD_DATE: Tue May 12 2026 21:50:05 GMT+0000 (Coordinated Universal Time)
10
- * BUILD_COMMIT: 7af1c105d5485ac4ed1190c56d492bb4590667a9
7
+ * VERSION: 2.231.0
8
+ * BUILD_TIMESTAMP: 1778866828678
9
+ * BUILD_DATE: Fri May 15 2026 17:40:28 GMT+0000 (Coordinated Universal Time)
10
+ * BUILD_COMMIT: e2c23e54ba6fc3b35cb24b5b0cb59bd07dbdc3a1
11
11
  */
12
12
  import { b as f, b4 as ee, b5 as te, b6 as It, W as Ut, R as yt, av as g, p as De, b7 as Ve, j as t, b8 as s, an as c, F as h, i as vt, a4 as Ue, ai as jt, b9 as Dt, h as At, ba as We, L as _t, I as Rt, bb as Nt, s as wt, bc as Ct, bd as Tt, a as Ft, l as Me, V as ye, al as $e, E as Ke, be as St, y as Ot } from "../_mysheerid-preview.js";
13
13
  import { u as Lt, D as Mt, b as kt } from "./useMetrics-D2fG6cgw.js";
@@ -1,9 +1,9 @@
1
1
 
2
2
  /**
3
- * VERSION: 2.229.0
4
- * BUILD_TIMESTAMP: 1778622589526
5
- * BUILD_DATE: Tue May 12 2026 21:49:49 GMT+0000 (Coordinated Universal Time)
6
- * BUILD_COMMIT: 7af1c105d5485ac4ed1190c56d492bb4590667a9
3
+ * VERSION: 2.231.0
4
+ * BUILD_TIMESTAMP: 1778866812284
5
+ * BUILD_DATE: Fri May 15 2026 17:40:12 GMT+0000 (Coordinated Universal Time)
6
+ * BUILD_COMMIT: e2c23e54ba6fc3b35cb24b5b0cb59bd07dbdc3a1
7
7
  */
8
8
  import { j as s, L as m, F as a, I as c, M as p, V as t, a as g, o as u, l as x, p as j, i as b } from "../sheerid.js";
9
9
  import { F as h } from "./FormFieldText-CaWtYVur.js";
@@ -4,15 +4,15 @@
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.229.0
8
- * BUILD_TIMESTAMP: 1778622605704
9
- * BUILD_DATE: Tue May 12 2026 21:50:05 GMT+0000 (Coordinated Universal Time)
10
- * BUILD_COMMIT: 7af1c105d5485ac4ed1190c56d492bb4590667a9
7
+ * VERSION: 2.231.0
8
+ * BUILD_TIMESTAMP: 1778866828678
9
+ * BUILD_DATE: Fri May 15 2026 17:40:28 GMT+0000 (Coordinated Universal Time)
10
+ * BUILD_COMMIT: e2c23e54ba6fc3b35cb24b5b0cb59bd07dbdc3a1
11
11
  */
12
12
  import { i as j, m as F, j as o, P as N, g as n, o as d, a1 as M, a2 as I, A as z, p as g, h as m, n as y, F as i, U as P, V as R, e as f, a3 as D } from "../_mysheerid-preview.js";
13
- import { F as T, L as k, P as L, a as B, M as O, C as V } from "./CaptchaComponent-CKP3wfXl.js";
13
+ import { F as T, L as k, P as L, a as B, M as O, C as V } from "./CaptchaComponent-CnWyxiTy.js";
14
14
  import { E as A, P as W } from "./PersonalInfoStepSubmitButton-v_kWLmEw.js";
15
- import { B as q } from "./militaryStepHelpers-pEvqlKjI.js";
15
+ import { B as q } from "./militaryStepHelpers-jW2_4c1l.js";
16
16
  import { S as w } from "./StatusComponent-pmuIhuXi.js";
17
17
  import { F as H } from "./FirstResponderOrganizationComponent-fPxZFdpO.js";
18
18
  import { P as K } from "./PostalCodeComponent-KXVfZkLx.js";