@sheerid/jslib 2.215.0 → 2.216.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 (217) hide show
  1. package/_mysheerid-preview.css +4 -4
  2. package/_mysheerid-preview.js +15 -15
  3. package/chunk/ActiveDutyStartDateComponent-8ed93MIc.js +4 -4
  4. package/chunk/ActiveDutyStartDateComponent-BfkF0ser.js +4 -4
  5. package/chunk/AddressComponent-AiyIPiCz.js +4 -4
  6. package/chunk/AddressComponent-DV2Wsw6k.js +4 -4
  7. package/chunk/CaptchaComponent-CSCvSY8Y.js +4 -4
  8. package/chunk/CaptchaComponent-DcxyBvrf.js +4 -4
  9. package/chunk/ChangeLocaleComponent-Cu2DR-Q3.js +4 -4
  10. package/chunk/ChangeLocaleComponent-DUnfgQuX.js +4 -4
  11. package/chunk/City-BmrJpnS6.js +4 -4
  12. package/chunk/City-yVVnZQTP.js +4 -4
  13. package/chunk/{CollegeNameComponent-DqIROnau.js → CollegeNameComponent-DaTimEqC.js} +5 -5
  14. package/chunk/{CollegeNameComponent-OwbvKomU.js.map → CollegeNameComponent-DaTimEqC.js.map} +1 -1
  15. package/chunk/{CollegeNameComponent-OwbvKomU.js → CollegeNameComponent-DtKPZHb-.js} +5 -5
  16. package/chunk/{CollegeNameComponent-DqIROnau.js.map → CollegeNameComponent-DtKPZHb-.js.map} +1 -1
  17. package/chunk/CopyToClipboardComponent-9hyfSMC0.js +4 -4
  18. package/chunk/CopyToClipboardComponent-H3bJGcOM.js +4 -4
  19. package/chunk/CountryComponentWrapper--2UQ7mXP.js +4 -4
  20. package/chunk/CountryComponentWrapper-Ceq-eink.js +4 -4
  21. package/chunk/DriverLicenseNumberComponent-D9cakdvU.js +4 -4
  22. package/chunk/DriverLicenseNumberComponent-ziLNYB8e.js +4 -4
  23. package/chunk/{EBTCardNumberComponent-BbL9NoDt.js → EBTCardNumberComponent-B1kv4R4G.js} +5 -5
  24. package/chunk/{EBTCardNumberComponent-BbL9NoDt.js.map → EBTCardNumberComponent-B1kv4R4G.js.map} +1 -1
  25. package/chunk/{EBTCardNumberComponent-ps7LjMyZ.js → EBTCardNumberComponent-oYQJ_tP7.js} +5 -5
  26. package/chunk/{EBTCardNumberComponent-ps7LjMyZ.js.map → EBTCardNumberComponent-oYQJ_tP7.js.map} +1 -1
  27. package/chunk/EmailLoopPending-In0FH-Ap.js +4 -4
  28. package/chunk/EmailLoopPending-lxRF0bx8.js +4 -4
  29. package/chunk/{FirstResponderOrganizationComponent-CIRKlR-B.js → FirstResponderOrganizationComponent-Bru1a0U7.js} +5 -5
  30. package/chunk/{FirstResponderOrganizationComponent-BJ_sSKyU.js.map → FirstResponderOrganizationComponent-Bru1a0U7.js.map} +1 -1
  31. package/chunk/{FirstResponderOrganizationComponent-BJ_sSKyU.js → FirstResponderOrganizationComponent-fPxZFdpO.js} +5 -5
  32. package/chunk/{FirstResponderOrganizationComponent-CIRKlR-B.js.map → FirstResponderOrganizationComponent-fPxZFdpO.js.map} +1 -1
  33. package/chunk/FormFieldInputSelect-CjWY_ush.js +4 -4
  34. package/chunk/FormFieldInputSelect-o7QZaYhS.js +4 -4
  35. package/chunk/FormFieldLayout-DDEEmlGC.js +4 -4
  36. package/chunk/FormFieldLayout-DEVPpEyA.js +4 -4
  37. package/chunk/FormFieldText-CJ-GVpZE.js +4 -4
  38. package/chunk/FormFieldText-CaWtYVur.js +4 -4
  39. package/chunk/{FormFieldTypeahead-D0_jXok8.js → FormFieldTypeahead-C6eS7yJg.js} +4 -4
  40. package/chunk/FormFieldTypeahead-C6eS7yJg.js.map +1 -0
  41. package/chunk/{FormFieldTypeahead-vwV0QGbl.js → FormFieldTypeahead-CyKKVK89.js} +4 -4
  42. package/chunk/FormFieldTypeahead-CyKKVK89.js.map +1 -0
  43. package/chunk/FormSelectChoice-BahCx4wG.js +4 -4
  44. package/chunk/FormSelectChoice-C-rIlDKl.js +4 -4
  45. package/chunk/InputText-CCNbZmMe.js +4 -4
  46. package/chunk/InputText-PEiatRRJ.js +4 -4
  47. package/chunk/{LicensedProfessionalOrganizationComponent-CDUu7n6S.js → LicensedProfessionalOrganizationComponent-C5pc7hVJ.js} +5 -5
  48. package/chunk/{LicensedProfessionalOrganizationComponent-CDUu7n6S.js.map → LicensedProfessionalOrganizationComponent-C5pc7hVJ.js.map} +1 -1
  49. package/chunk/{LicensedProfessionalOrganizationComponent-DfulwYkx.js → LicensedProfessionalOrganizationComponent-CnR_qF3r.js} +5 -5
  50. package/chunk/{LicensedProfessionalOrganizationComponent-DfulwYkx.js.map → LicensedProfessionalOrganizationComponent-CnR_qF3r.js.map} +1 -1
  51. package/chunk/{MedicalProfessionalOrganizationComponent-DNENwJq-.js → MedicalProfessionalOrganizationComponent-CXHX25GN.js} +5 -5
  52. package/chunk/{MedicalProfessionalOrganizationComponent-DNENwJq-.js.map → MedicalProfessionalOrganizationComponent-CXHX25GN.js.map} +1 -1
  53. package/chunk/{MedicalProfessionalOrganizationComponent-RGG8iBdc.js → MedicalProfessionalOrganizationComponent-DBf6V49M.js} +5 -5
  54. package/chunk/{MedicalProfessionalOrganizationComponent-RGG8iBdc.js.map → MedicalProfessionalOrganizationComponent-DBf6V49M.js.map} +1 -1
  55. package/chunk/MemberIdComponent-C8mVSo9m.js +4 -4
  56. package/chunk/MemberIdComponent-oanWSvQh.js +4 -4
  57. package/chunk/{MembershipOrganizationComponent-B4bYo0LI.js → MembershipOrganizationComponent-CN6_d_Fk.js} +5 -5
  58. package/chunk/{MembershipOrganizationComponent-B4bYo0LI.js.map → MembershipOrganizationComponent-CN6_d_Fk.js.map} +1 -1
  59. package/chunk/{MembershipOrganizationComponent-BPkKoRE3.js → MembershipOrganizationComponent-yu-UNXIK.js} +5 -5
  60. package/chunk/{MembershipOrganizationComponent-BPkKoRE3.js.map → MembershipOrganizationComponent-yu-UNXIK.js.map} +1 -1
  61. package/chunk/Onfido-BG8cDEVW.js +4 -4
  62. package/chunk/PersonalInfoStepSubmitButton-j44RdZDq.js +4 -4
  63. package/chunk/PersonalInfoStepSubmitButton-v_kWLmEw.js +4 -4
  64. package/chunk/PersonalInfoStepWrapper-BOBNCgik.js +4 -4
  65. package/chunk/PersonalInfoStepWrapper-PV06WMKL.js +4 -4
  66. package/chunk/PostalCodeComponent-DrCcV90W.js +4 -4
  67. package/chunk/PostalCodeComponent-KXVfZkLx.js +4 -4
  68. package/chunk/SSN-B_z2R4Bx.js +4 -4
  69. package/chunk/SSN-Hb1lTx8A.js +4 -4
  70. package/chunk/StateSelectComponent-CChSqKXz.js +4 -4
  71. package/chunk/StateSelectComponent-CIpB-Rh1.js +4 -4
  72. package/chunk/StatusComponent-C6J1B7Tl.js +4 -4
  73. package/chunk/StatusComponent-pmuIhuXi.js +4 -4
  74. package/chunk/StepCard-CIfaQVu-.js +4 -4
  75. package/chunk/StepCard-dcwCtPrW.js +4 -4
  76. package/chunk/StepCollectMilitaryStatusComponent-C02BKffq.js +4 -4
  77. package/chunk/StepCollectMilitaryStatusComponent-CaP-tPJA.js +4 -4
  78. package/chunk/StepDriverLicensePersonalInfoComponent-C4QRbgMC.js +4 -4
  79. package/chunk/StepDriverLicensePersonalInfoComponent-I3LNN4GB.js +4 -4
  80. package/chunk/StepGeneralIdentityPersonalInfoComponent-Bw6WDrOP.js +4 -4
  81. package/chunk/StepGeneralIdentityPersonalInfoComponent-CGIiAyvk.js +4 -4
  82. package/chunk/StepHybridIdentityPersonalInfoComponent-BAe_HzjN.js +4 -4
  83. package/chunk/StepHybridIdentityPersonalInfoComponent-kE7xVuag.js +4 -4
  84. package/chunk/StepIDCheckLoopOnfido-Sg4a19wV.js +4 -4
  85. package/chunk/StepIDCheckLoopOnfido-djTS20UT.js +4 -4
  86. package/chunk/StepIDCheckLoopRegula-B5I-ojjy.js +4 -4
  87. package/chunk/StepIDCheckLoopRegula-DZA5G1Z6.js +4 -4
  88. package/chunk/StepInactiveMilitaryPersonalInfoComponent-BBsJj3Sm.js +4 -4
  89. package/chunk/StepInactiveMilitaryPersonalInfoComponent-DDwAnwM5.js +4 -4
  90. package/chunk/{TeacherSchoolComponent-DFtsbQdJ.js → TeacherSchoolComponent-BSHPjiwQ.js} +5 -5
  91. package/chunk/{TeacherSchoolComponent-CQsnm2Ob.js.map → TeacherSchoolComponent-BSHPjiwQ.js.map} +1 -1
  92. package/chunk/{TeacherSchoolComponent-CQsnm2Ob.js → TeacherSchoolComponent-Bf3ZhJ_c.js} +5 -5
  93. package/chunk/{TeacherSchoolComponent-DFtsbQdJ.js.map → TeacherSchoolComponent-Bf3ZhJ_c.js.map} +1 -1
  94. package/chunk/ar-uNi-5jZs.js +4 -4
  95. package/chunk/bg-BSs2zI8g.js +4 -4
  96. package/chunk/bn-IN-DgKTANOE.js +4 -4
  97. package/chunk/cs-ZQhsI2gf.js +4 -4
  98. package/chunk/da-Ca6-P-fb.js +4 -4
  99. package/chunk/de-qTizo3k0.js +4 -4
  100. package/chunk/downshift.esm-CtrbqQGL.js +4 -4
  101. package/chunk/downshift.esm-huKBwB2d.js +4 -4
  102. package/chunk/el-Ci0_i7um.js +4 -4
  103. package/chunk/en-GB-BMFtN6kg.js +4 -4
  104. package/chunk/es-10I2Uwx1.js +4 -4
  105. package/chunk/es-ES-BEtGV8ZY.js +4 -4
  106. package/chunk/fi-VAIle52X.js +4 -4
  107. package/chunk/fr-CA-YGnUj1Cd.js +4 -4
  108. package/chunk/fr-CmkojiS4.js +4 -4
  109. package/chunk/ga-CTdDfi4f.js +4 -4
  110. package/chunk/hi-IN-mBG2SFX6.js +4 -4
  111. package/chunk/hr-D8voB0hC.js +4 -4
  112. package/chunk/hu-DzN9Oup5.js +4 -4
  113. package/chunk/id-ZqMlj7_U.js +4 -4
  114. package/chunk/index-B0SBEWOf.js +4 -4
  115. package/chunk/index-BA3bE-f-.js +4 -4
  116. package/chunk/{index-DzdL5k0x.js → index-BKJ-EAbL.js} +5 -5
  117. package/chunk/{index-DzdL5k0x.js.map → index-BKJ-EAbL.js.map} +1 -1
  118. package/chunk/{index-BoJdZalW.js → index-BSzMX8zb.js} +6 -6
  119. package/chunk/{index-CrGgYYxL.js.map → index-BSzMX8zb.js.map} +1 -1
  120. package/chunk/index-BZ1nv-sB.js +4 -4
  121. package/chunk/{index-CrGgYYxL.js → index-BbDuLZm0.js} +6 -6
  122. package/chunk/{index-BoJdZalW.js.map → index-BbDuLZm0.js.map} +1 -1
  123. package/chunk/index-BbOCWcRK.js +4 -4
  124. package/chunk/index-Bn00xQJF.js +4 -4
  125. package/chunk/index-Brpm5gN6.js +4 -4
  126. package/chunk/{index-Cn27i0i0.js → index-C6CmnxtU.js} +5 -5
  127. package/chunk/{index-Cn27i0i0.js.map → index-C6CmnxtU.js.map} +1 -1
  128. package/chunk/index-CARFmnRY.js +4 -4
  129. package/chunk/{index-BfLyVxHW.js → index-CBoeMu9i.js} +11 -11
  130. package/chunk/{index-kldzFCt7.js.map → index-CBoeMu9i.js.map} +1 -1
  131. package/chunk/index-CHDBBfsg.js +4 -4
  132. package/chunk/index-CR19uOwz.js +4 -4
  133. package/chunk/index-CTGY1a4m.js +4 -4
  134. package/chunk/{index-C4dHeTGl.js → index-CYi-EOgq.js} +5 -5
  135. package/chunk/{index-BWVPL9OQ.js.map → index-CYi-EOgq.js.map} +1 -1
  136. package/chunk/index-CaBrLsal.js +4 -4
  137. package/chunk/{index-kldzFCt7.js → index-Ck4Jg3xo.js} +11 -11
  138. package/chunk/{index-BfLyVxHW.js.map → index-Ck4Jg3xo.js.map} +1 -1
  139. package/chunk/index-CrPc1exn.js +4 -4
  140. package/chunk/{index-CaQ-a7L7.js → index-CzRLvvKQ.js} +5 -5
  141. package/chunk/{index-JJtRAk_6.js.map → index-CzRLvvKQ.js.map} +1 -1
  142. package/chunk/index-D2d6x5LN.js +4 -4
  143. package/chunk/index-D2nA_06X.js +4 -4
  144. package/chunk/index-D7Mqx5na.js +4 -4
  145. package/chunk/{index-B88uZBY0.js → index-DD5n87cJ.js} +5 -5
  146. package/chunk/{index-D3EKpvm9.js.map → index-DD5n87cJ.js.map} +1 -1
  147. package/chunk/{index-pw3DJwhY.js → index-DE_o4TXi.js} +5 -5
  148. package/chunk/{index-BvxBxJg1.js.map → index-DE_o4TXi.js.map} +1 -1
  149. package/chunk/index-DFoMYB8K.js +4 -4
  150. package/chunk/index-DIkWpujR.js +4 -4
  151. package/chunk/{index-D3EKpvm9.js → index-DWjm3Bvf.js} +5 -5
  152. package/chunk/{index-B88uZBY0.js.map → index-DWjm3Bvf.js.map} +1 -1
  153. package/chunk/{index-5ENZBJEX.js → index-DbVmFTqT.js} +5 -5
  154. package/chunk/{index-5ENZBJEX.js.map → index-DbVmFTqT.js.map} +1 -1
  155. package/chunk/{index-JJtRAk_6.js → index-DdxRfsSh.js} +5 -5
  156. package/chunk/{index-CaQ-a7L7.js.map → index-DdxRfsSh.js.map} +1 -1
  157. package/chunk/index-DeW_gAIO.js +4 -4
  158. package/chunk/{index-B2w8GxVA.js → index-Dekegp07.js} +5 -5
  159. package/chunk/{index-B2w8GxVA.js.map → index-Dekegp07.js.map} +1 -1
  160. package/chunk/index-DhehscKj.js +4 -4
  161. package/chunk/index-EUJqfdiJ.js +4 -4
  162. package/chunk/index-MB6FRj7G.js +4 -4
  163. package/chunk/{index-CnlkYvi8.js → index-W05VUuom.js} +5 -5
  164. package/chunk/{index-CnlkYvi8.js.map → index-W05VUuom.js.map} +1 -1
  165. package/chunk/{index-BWVPL9OQ.js → index-Xq2oC7I1.js} +5 -5
  166. package/chunk/{index-C4dHeTGl.js.map → index-Xq2oC7I1.js.map} +1 -1
  167. package/chunk/index-dTu4ORna.js +4 -4
  168. package/chunk/index-dWqQPCim.js +4 -4
  169. package/chunk/{index-CsFSxihY.js → index-jeII5suL.js} +5 -5
  170. package/chunk/{index-CsFSxihY.js.map → index-jeII5suL.js.map} +1 -1
  171. package/chunk/{index-BvxBxJg1.js → index-zyCRCimF.js} +5 -5
  172. package/chunk/{index-pw3DJwhY.js.map → index-zyCRCimF.js.map} +1 -1
  173. package/chunk/is-OeoxCvCJ.js +4 -4
  174. package/chunk/it-C8ZVZXAZ.js +4 -4
  175. package/chunk/iw-BlNWQ44s.js +4 -4
  176. package/chunk/ja-ByZsq6B3.js +4 -4
  177. package/chunk/ko-CJtRHc1k.js +4 -4
  178. package/chunk/lo-DG5_kBxI.js +4 -4
  179. package/chunk/lt-CPMjVK0l.js +4 -4
  180. package/chunk/militaryStepHelpers-BAkdVJwA.js +4 -4
  181. package/chunk/militaryStepHelpers-BBHrfNCB.js +4 -4
  182. package/chunk/mocks-CeAm-JFs.js +4 -4
  183. package/chunk/mocks-ClJ0M6QH.js +4 -4
  184. package/chunk/ms-kW4-QxcQ.js +4 -4
  185. package/chunk/nl-BE-B50g9ESZ.js +4 -4
  186. package/chunk/nl-CqhguuWs.js +4 -4
  187. package/chunk/no-oDvd5Pbh.js +4 -4
  188. package/chunk/pl-CmJTwwaK.js +4 -4
  189. package/chunk/pt-BR-Bn7yzXgL.js +4 -4
  190. package/chunk/pt-CO5wB188.js +4 -4
  191. package/chunk/ro-sj1FJM-g.js +4 -4
  192. package/chunk/ru-8IiNvgy2.js +4 -4
  193. package/chunk/sk-aGVgcFKm.js +4 -4
  194. package/chunk/sl-BhNdkTbu.js +4 -4
  195. package/chunk/sr-BMFHnZm-.js +4 -4
  196. package/chunk/sv-B_eq88ce.js +4 -4
  197. package/chunk/sw-DbdFPGF8.js +4 -4
  198. package/chunk/th-BYY2tGFz.js +4 -4
  199. package/chunk/tr-d4Yjkvpu.js +4 -4
  200. package/chunk/uk-Cm64Vc92.js +4 -4
  201. package/chunk/ur-DFf2LHi5.js +4 -4
  202. package/chunk/useCollectFieldsEndpoint-Cd6d_u47.js +4 -4
  203. package/chunk/useCollectFieldsEndpoint-DqTjyVEr.js +4 -4
  204. package/chunk/useMetrics-D2fG6cgw.js +4 -4
  205. package/chunk/useMetrics-wq7yrL0b.js +4 -4
  206. package/chunk/vi-DDgpUcog.js +4 -4
  207. package/chunk/zh-BoejQGiZ.js +4 -4
  208. package/chunk/zh-HK-Bwd8sr9B.js +4 -4
  209. package/chunk/zu-BKlg24xX.js +4 -4
  210. package/package.json +1 -1
  211. package/sheerid-install.css +4 -4
  212. package/sheerid-install.js +4 -4
  213. package/sheerid.css +5 -5
  214. package/sheerid.js +15 -15
  215. package/FormFieldTypeahead.css +0 -12
  216. package/chunk/FormFieldTypeahead-D0_jXok8.js.map +0 -1
  217. package/chunk/FormFieldTypeahead-vwV0QGbl.js.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"index-BfLyVxHW.js","sources":["../../src/components/StepCollectPersonalInfo/StepCollectPersonalInfoComponent.tsx"],"sourcesContent":["import React from \"react\";\nimport produce from \"immer\";\nimport { FormattedHTMLMessage, type InjectedIntl, injectIntl } from \"react-intl\";\n\nimport { getSafe } from \"@jslib/shared/utils/getSafe\";\nimport { logger } from \"@jslib/shared/utils/logger\";\n\nimport { hasFailedInstantMatch } from \"../../lib/VerificationService/VerificationServiceHelpers\";\nimport {\n type VerificationService,\n type CollectPersonalInfoViewModel,\n type CustomFormFieldConfig,\n type Organization,\n type FormSelectChoice,\n type State,\n type CollectFieldsResponse,\n type CollectPersonalInfoResponse,\n type FieldDescription,\n type AllStatuses,\n} from \"../../lib/types/types\";\nimport {\n getAvailableStateChoices,\n orgToOption,\n getStatusLabel,\n handleEmailOnKeyDown,\n submitForm,\n updateFieldValidationErrorsByFieldId,\n updateViewModelOrganization,\n produceDraftViewModelWithAllRequiredFields,\n getAvailableStatuses,\n getFieldConfigByFieldId,\n} from \"../../lib/utils/stepComponentHelpers/stepComponentHelpers\";\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 { FormFooterComponent as FormFooter } from \"../FormFooter/FormFooterComponent\";\nimport { CountryComponentWrapper } from \"../FormFields/Country/CountryComponentWrapper\";\nimport { getOptions } from \"../../options/options\";\nimport { FormFieldCustom } from \"../FormFields/FormFieldCustom/FormFieldCustom\";\nimport { ExtraMessage } from \"../ExtraMessage\";\nimport { FieldIdEnum, SegmentEnum, VerificationStepsEnum } from \"../../lib/types/runtimeTypes\";\nimport { CityComponent } from \"../FormFields/City/City\";\nimport { StateSelectComponent } from \"../FormFields/State/StateSelectComponent\";\nimport { PostalCodeComponent } from \"../FormFields/PostalCode/PostalCodeComponent\";\nimport { AddressComponent } from \"../FormFields/Address/AddressComponent\";\nimport { ActiveDutyStartDateComponent } from \"../FormFields/ActiveDutyStartDate/ActiveDutyStartDateComponent\";\nimport { BranchOfServiceComponent as BranchOfService } from \"../FormFields/BranchOfService/BranchOfServiceComponent\";\nimport { DriverLicenseNumberComponent as DriverLicenseNumber } from \"../FormFields/DriverLicenseNumber/DriverLicenseNumberComponent\";\nimport { EBTCardNumberComponent } from \"../FormFields/EBTCardNumber/EBTCardNumberComponent\";\nimport { StatusComponent as Status } from \"../FormFields/Status/StatusComponent\";\nimport { LowIncomeOrganizationComponent as LowIncomeOrganization } from \"../FormFields/LowIncomeOrganization/LowIncomeOrganizationComponent\";\nimport { FirstResponderOrganizationComponent as FirstResponderOrganization } from \"../FormFields/FirstResponderOrganization/FirstResponderOrganizationComponent\";\nimport { LicensedProfessionalOrganizationComponent as LicensedProfessionalOrganization } from \"../FormFields/LicensedProfessionalOrganization/LicensedProfessionalOrganizationComponent\";\nimport { MedicalProfessionalOrganizationComponent as MedicalProfessionalOrganization } from \"../FormFields/MedicalProfessionalOrganization/MedicalProfessionalOrganizationComponent\";\nimport { MemberIdComponent as MemberId } from \"../FormFields/MemberId/MemberIdComponent\";\nimport { MembershipOrganizationComponent as MembershipOrganization } from \"../FormFields/MembershipOrganization/MembershipOrganizationComponent\";\nimport { TeacherSchoolComponent as TeacherSchool } from \"../FormFields/TeacherSchool/TeacherSchoolComponent\";\nimport { SocialSecurityNumber } from \"../FormFields/SSN/SSN\";\nimport { DischargeDateComponent } from \"../FormFields/DischargeDate/DischargeDateComponent\";\nimport { getAllFieldsToCollect } from \"../../lib/ServerApi/VerificationApiClient\";\nimport { getMarketConsent } from \"../../lib/ProgramTheme/programThemeGetters\";\nimport { PersonalInfoHeader } from \"../FormHeader/StepHeaders/PersonalInfoHeaderComponent\";\nimport { PersonalInfoStepSubmitButton } from \"../PersonalInfoStepSubmitButton/PersonalInfoStepSubmitButton\";\nimport { CaptchaComponent } from \"../FormFields/Captcha/CaptchaComponent\";\n\ninterface StepCollectPersonalInfoProps {\n intl: InjectedIntl;\n verificationService: VerificationService;\n}\n\nexport const StepCollectPersonalInfo = ({\n intl,\n verificationService,\n}: StepCollectPersonalInfoProps) => {\n const viewModel = verificationService.viewModel as CollectPersonalInfoViewModel;\n const { updateViewModel, programTheme } = verificationService;\n\n const [requiredFields, setRequiredFields] = React.useState<FieldDescription[]>(undefined);\n\n const isFieldRequired = (key: keyof CollectPersonalInfoViewModel) =>\n requiredFields && requiredFields.some((field) => field.key === key);\n\n const { fieldValidationErrors } = verificationService;\n const verificationResponse =\n verificationService.verificationResponse as CollectPersonalInfoResponse;\n const failedInstantMatch = hasFailedInstantMatch(verificationResponse);\n\n const updatePersonalInfoViewModel = (key: keyof CollectPersonalInfoViewModel, value: any) => {\n const nextState: CollectPersonalInfoViewModel = produce(\n viewModel,\n (draft: CollectPersonalInfoViewModel) => {\n (draft[key] as any) = value;\n },\n );\n updateViewModel(nextState);\n };\n\n const updateViewModelWithRequiredFields = (newRequiredFields: FieldDescription[]) => {\n const nextState: CollectPersonalInfoViewModel = produceDraftViewModelWithAllRequiredFields(\n viewModel,\n newRequiredFields,\n );\n updateViewModel(nextState);\n };\n\n const locale = viewModel.localeChoice.value;\n const options = getOptions();\n\n const { segment, availableStatuses } = verificationResponse;\n const pascalCaseSegment = segment.charAt(0).toUpperCase() + segment.slice(1);\n\n const isStatusRequired = (): boolean =>\n availableStatuses &&\n (segment === SegmentEnum.FIRST_RESPONDER ||\n segment === SegmentEnum.MEDICAL ||\n segment === SegmentEnum.LOW_INCOME ||\n segment === SegmentEnum.LICENSED_PROFESSIONAL ||\n segment === SegmentEnum.EMPLOYMENT ||\n segment === SegmentEnum.RECENT_MOVER ||\n segment === SegmentEnum.MILITARY);\n\n const getAndSetRequiredFields = (requestBody: { statuses?: AllStatuses[] }) =>\n (async () => {\n try {\n const collectFieldsResponse: CollectFieldsResponse = await getAllFieldsToCollect(\n verificationResponse.verificationId,\n verificationResponse.currentStep,\n requestBody,\n );\n const newRequiredFields = getSafe(() => collectFieldsResponse.fieldsToCollect.required, []);\n\n if (isStatusRequired()) {\n // Adding `status` as a required input field if it's been removed by getting\n // all fields to collect with a statuses req body\n newRequiredFields.push({ key: \"status\" });\n }\n\n updateViewModelWithRequiredFields(newRequiredFields);\n setRequiredFields(newRequiredFields);\n } catch (error) {\n logger.error(`Failed to determine fields to collect: ${error}`);\n }\n })();\n\n const getOrganizationField = () => {\n switch (segment) {\n case SegmentEnum.STUDENT:\n return (\n <CollegeName\n value={(verificationService.viewModel as CollectPersonalInfoViewModel).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 );\n case SegmentEnum.TEACHER:\n return (\n <TeacherSchool\n value={(verificationService.viewModel as CollectPersonalInfoViewModel).organization}\n verificationService={verificationService}\n isErrored={!!fieldValidationErrors.organization}\n disabled={getFieldConfigByFieldId(\"organization\")?.disabled}\n onChange={(choice: Organization) => {\n updateViewModelOrganization(choice, verificationService);\n updateFieldValidationErrorsByFieldId(\"organization\", choice, verificationService);\n }}\n />\n );\n case SegmentEnum.MEMBER:\n return (\n <MembershipOrganization\n value={(verificationService.viewModel as CollectPersonalInfoViewModel).organization}\n verificationService={verificationService}\n isErrored={!!fieldValidationErrors.organization}\n disabled={getFieldConfigByFieldId(\"organization\")?.disabled}\n onChange={(choice: Organization) => {\n updateViewModelOrganization(choice, verificationService);\n updateFieldValidationErrorsByFieldId(\"organization\", choice, verificationService);\n }}\n />\n );\n case SegmentEnum.MILITARY:\n return (\n <BranchOfService\n isErrored={!!fieldValidationErrors.organization}\n onChange={(choice: Organization) => {\n updateViewModelOrganization(choice, verificationService);\n updateFieldValidationErrorsByFieldId(\"organization\", choice, verificationService);\n }}\n value={{\n value: getSafe(\n () =>\n (verificationService.viewModel as CollectPersonalInfoViewModel).organization.id,\n ),\n label: getSafe(\n () =>\n (verificationService.viewModel as CollectPersonalInfoViewModel).organization.name,\n ),\n }}\n verificationService={verificationService}\n disabled={getFieldConfigByFieldId(\"organization\")?.disabled}\n />\n );\n case SegmentEnum.FIRST_RESPONDER:\n return (\n <FirstResponderOrganization\n isErrored={!!fieldValidationErrors.organization}\n onChange={(choice: Organization) => {\n updateViewModelOrganization(choice, verificationService);\n updateFieldValidationErrorsByFieldId(\"organization\", choice, verificationService);\n }}\n value={(verificationService.viewModel as CollectPersonalInfoViewModel).organization}\n verificationService={verificationService}\n disabled={getFieldConfigByFieldId(\"organization\")?.disabled}\n />\n );\n case SegmentEnum.MEDICAL:\n return (\n <MedicalProfessionalOrganization\n isErrored={!!fieldValidationErrors.organization}\n onChange={(choice: Organization) => {\n updateViewModelOrganization(choice, verificationService);\n updateFieldValidationErrorsByFieldId(\"organization\", choice, verificationService);\n }}\n value={(verificationService.viewModel as CollectPersonalInfoViewModel).organization}\n verificationService={verificationService}\n disabled={getFieldConfigByFieldId(\"organization\")?.disabled}\n />\n );\n case SegmentEnum.LICENSED_PROFESSIONAL:\n return (\n <LicensedProfessionalOrganization\n isErrored={!!fieldValidationErrors.organization}\n onChange={(choice: Organization) => {\n updateViewModelOrganization(choice, verificationService);\n updateFieldValidationErrorsByFieldId(\"organization\", choice, verificationService);\n }}\n value={(verificationService.viewModel as CollectPersonalInfoViewModel).organization}\n verificationService={verificationService}\n disabled={getFieldConfigByFieldId(\"organization\")?.disabled}\n />\n );\n case SegmentEnum.LOW_INCOME:\n return (\n <LowIncomeOrganization\n isErrored={!!fieldValidationErrors.organization}\n onChange={(choice: Organization) => {\n updateViewModelOrganization(choice, verificationService);\n updateFieldValidationErrorsByFieldId(\"organization\", choice, verificationService);\n }}\n value={orgToOption(\n (verificationService.viewModel as CollectPersonalInfoViewModel).organization,\n )}\n verificationService={verificationService}\n isRequired\n disabled={getFieldConfigByFieldId(\"organization\")?.disabled}\n />\n );\n default:\n return null;\n }\n };\n\n React.useEffect(() => {\n if (availableStatuses && segment === SegmentEnum.MILITARY) {\n // display all required military fields by setting an initial default status\n getAndSetRequiredFields({ statuses: [] });\n } else {\n // fetch initial list of required input fields\n getAndSetRequiredFields({});\n }\n }, []);\n\n React.useEffect(() => {\n if (!getMarketConsent(programTheme).enabled && requiredFields && requiredFields.length === 0) {\n // skip this step if there are no required fields, and marketConsent is not enabled\n submitForm(viewModel, verificationService, VerificationStepsEnum.collectPersonalInfo);\n }\n }, [requiredFields]);\n\n React.useEffect(() => {\n if (viewModel.status) {\n // if status changes, re-fetch required fields because they may have changed based on selected status\n getAndSetRequiredFields({ statuses: [viewModel.status] });\n }\n }, [viewModel.status]);\n\n return (\n <div\n id=\"sid-step-personal-info-personal-info\"\n className=\"sid-personal-info-container sid-l-container\"\n >\n <div role=\"main\">\n <PersonalInfoHeader\n verificationService={verificationService}\n classNameIdentifier=\"personal-info\"\n />\n\n <CountryComponentWrapper\n verificationService={verificationService}\n disabled={getFieldConfigByFieldId(\"country\")?.disabled}\n />\n\n {isStatusRequired() && (\n <Status\n segmentId={segment}\n value={{\n value: viewModel.status,\n label: getStatusLabel(intl, viewModel.status, null),\n }}\n isErrored={!!fieldValidationErrors.status}\n errorId={`invalid${pascalCaseSegment}Status`}\n options={getAvailableStatuses(intl, availableStatuses)}\n disabled={getFieldConfigByFieldId(\"status\")?.disabled}\n onChange={(status: FormSelectChoice) => {\n updatePersonalInfoViewModel(\"status\", status ? (status.value as string) : \"\");\n updateFieldValidationErrorsByFieldId(\n \"status\",\n status ? (status.value as string) : \"\",\n verificationService,\n );\n }}\n />\n )}\n\n {isFieldRequired(\"organization\") && getOrganizationField()}\n\n <div className=\"sid-names\">\n {isFieldRequired(\"firstName\") && (\n <FirstName\n value={viewModel.firstName}\n isErrored={!!fieldValidationErrors.firstName}\n disabled={getFieldConfigByFieldId(\"firstName\")?.disabled}\n onChange={(newValue) => {\n updatePersonalInfoViewModel(\"firstName\", newValue);\n updateFieldValidationErrorsByFieldId(\"firstName\", newValue, verificationService);\n }}\n />\n )}\n\n {isFieldRequired(\"lastName\") && (\n <LastName\n value={viewModel.lastName}\n isErrored={!!fieldValidationErrors.lastName}\n disabled={getFieldConfigByFieldId(\"lastName\")?.disabled}\n onChange={(newValue) => {\n updatePersonalInfoViewModel(\"lastName\", newValue);\n updateFieldValidationErrorsByFieldId(\"lastName\", newValue, verificationService);\n }}\n />\n )}\n </div>\n\n {isFieldRequired(\"birthDate\") && (\n <BirthDate\n value={viewModel.birthDate}\n errorId={fieldValidationErrors.birthDate}\n locale={locale}\n isRequired\n disabled={getFieldConfigByFieldId(\"birthDate\")?.disabled}\n onChange={(newValue) => {\n updatePersonalInfoViewModel(\"birthDate\", newValue);\n updateFieldValidationErrorsByFieldId(\"birthDate\", newValue, verificationService);\n }}\n />\n )}\n\n {isFieldRequired(\"email\") && (\n <Email\n value={viewModel.email}\n isErrored={!!fieldValidationErrors.email}\n explanation=\" \"\n onChange={(newValue) => {\n updatePersonalInfoViewModel(\"email\", newValue);\n updateFieldValidationErrorsByFieldId(\"email\", newValue, verificationService);\n }}\n onKeyDown={(event) => handleEmailOnKeyDown(event)}\n disabled={getFieldConfigByFieldId(\"email\")?.disabled}\n />\n )}\n\n {isFieldRequired(\"phoneNumber\") && (\n <PhoneNumber\n isRequired={!!verificationService.programTheme.smsLoopEnabled}\n value={viewModel.phoneNumber}\n isErrored={!!fieldValidationErrors.phoneNumber}\n onChange={(newValue) => {\n updatePersonalInfoViewModel(\"phoneNumber\", newValue);\n updateFieldValidationErrorsByFieldId(\"phoneNumber\", newValue, verificationService);\n }}\n selectedCountryCode={viewModel.countryChoice && viewModel.countryChoice.value}\n disabled={getFieldConfigByFieldId(\"phoneNumber\")?.disabled}\n />\n )}\n\n {isFieldRequired(\"address1\") && (\n <AddressComponent\n value={viewModel.address1}\n isRequired\n isErrored={!!fieldValidationErrors.address1}\n errorId={fieldValidationErrors.address1}\n disabled={getFieldConfigByFieldId(\"address1\")?.disabled}\n onChange={(value) => {\n updatePersonalInfoViewModel(\"address1\", value);\n updateFieldValidationErrorsByFieldId(\"address1\", value, verificationService);\n }}\n />\n )}\n\n {isFieldRequired(\"city\") && (\n <CityComponent\n value={viewModel.city}\n isRequired\n isErrored={!!fieldValidationErrors.city}\n errorId={fieldValidationErrors.city}\n disabled={getFieldConfigByFieldId(\"city\")?.disabled}\n onChange={(newValue) => {\n updatePersonalInfoViewModel(\"city\", newValue);\n updateFieldValidationErrorsByFieldId(\"city\", newValue, verificationService);\n }}\n />\n )}\n\n {isFieldRequired(\"dischargeDate\") && (\n <DischargeDateComponent\n errorId={fieldValidationErrors.dischargeDate}\n locale={locale}\n onChange={(newValue) => {\n updatePersonalInfoViewModel(\"dischargeDate\", newValue);\n updateFieldValidationErrorsByFieldId(\"dischargeDate\", newValue, verificationService);\n }}\n value={viewModel.dischargeDate}\n disabled={getFieldConfigByFieldId(\"dischargeDate\")?.disabled}\n />\n )}\n\n {isFieldRequired(\"driverLicenseNumber\") && (\n <DriverLicenseNumber\n value={viewModel.driverLicenseNumber}\n isErrored={!!fieldValidationErrors.driverLicenseNumber}\n isRequired\n disabled={getFieldConfigByFieldId(\"driverLicenseNumber\")?.disabled}\n onChange={(newValue) => {\n updatePersonalInfoViewModel(\"driverLicenseNumber\", newValue);\n updateFieldValidationErrorsByFieldId(\n \"driverLicenseNumber\",\n newValue,\n verificationService,\n );\n }}\n />\n )}\n\n {isFieldRequired(\"ebtCardNumber\") && (\n <EBTCardNumberComponent\n value={viewModel.ebtCardNumber}\n isErrored={!!fieldValidationErrors.ebtCardNumber}\n disabled={getFieldConfigByFieldId(\"ebtCardNumber\")?.disabled}\n onChange={(newValue) => {\n updatePersonalInfoViewModel(\"ebtCardNumber\", newValue);\n updateFieldValidationErrorsByFieldId(\"ebtCardNumber\", newValue, verificationService);\n }}\n />\n )}\n\n {isFieldRequired(\"memberId\") && (\n <MemberId\n value={viewModel.memberId}\n isErrored={!!fieldValidationErrors.memberId}\n isRequired={getFieldConfigByFieldId(\"memberId\")?.requireIfOptional}\n disabled={getFieldConfigByFieldId(\"memberId\")?.disabled}\n onChange={(newValue) => {\n updatePersonalInfoViewModel(\"memberId\", newValue);\n updateFieldValidationErrorsByFieldId(\"memberId\", newValue, verificationService);\n }}\n label={\n <FormattedHTMLMessage\n id=\"step.collectMedicalPersonalInfo.registrationNumberLabel\"\n defaultMessage=\"Registration Number\"\n />\n }\n />\n )}\n\n {isFieldRequired(\"postalCode\") && (\n <PostalCodeComponent\n isErrored={!!fieldValidationErrors.postalCode}\n onChange={(newValue) => {\n updatePersonalInfoViewModel(\"postalCode\", newValue);\n updateFieldValidationErrorsByFieldId(\"postalCode\", newValue, verificationService);\n }}\n value={viewModel.postalCode}\n disabled={getFieldConfigByFieldId(\"postalCode\")?.disabled}\n />\n )}\n\n {isFieldRequired(\"socialSecurityNumber\") && (\n <div className=\"sid-ssn-wrapper\">\n <SocialSecurityNumber\n value={viewModel.socialSecurityNumber}\n onChange={(value: string) => {\n updatePersonalInfoViewModel(\"socialSecurityNumber\", value);\n updateFieldValidationErrorsByFieldId(\n \"socialSecurityNumber\",\n value,\n verificationService,\n );\n }}\n isErrored={!!fieldValidationErrors[FieldIdEnum.socialSecurityNumber]}\n placeholder=\"000-00-0000\"\n disabled={getFieldConfigByFieldId(\"socialSecurityNumber\")?.disabled}\n />\n </div>\n )}\n\n {isFieldRequired(\"state\") && (\n <StateSelectComponent\n isRequired\n options={getAvailableStateChoices(verificationService.programTheme, intl)}\n value={viewModel.state || undefined}\n isErrored={Boolean(fieldValidationErrors.state)}\n onChange={async (stateChoice: FormSelectChoice<State, string>) => {\n const stateValue = stateChoice ? stateChoice.value : undefined;\n updatePersonalInfoViewModel(\"state\", stateValue);\n updateFieldValidationErrorsByFieldId(\"state\", stateValue, verificationService);\n }}\n label={<FormattedHTMLMessage id=\"state\" defaultMessage=\"State\" />}\n disabled={getFieldConfigByFieldId(\"state\")?.disabled}\n />\n )}\n\n {isFieldRequired(\"activeDutyStartDate\") &&\n verificationService.programTheme.strictMilitaryValidationEnabled && (\n <ActiveDutyStartDateComponent\n errorId={fieldValidationErrors.activeDutyStartDate}\n locale={locale}\n onChange={(newValue) => {\n updatePersonalInfoViewModel(\"activeDutyStartDate\", newValue);\n updateFieldValidationErrorsByFieldId(\n \"activeDutyStartDate\",\n newValue,\n verificationService,\n );\n }}\n value={viewModel.activeDutyStartDate}\n disabled={getFieldConfigByFieldId(\"activeDutyStartDate\")?.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 updatePersonalInfoViewModel(\"metadata\", {\n ...verificationService.viewModel.metadata,\n marketConsentValue: newValue,\n });\n updateFieldValidationErrorsByFieldId(\n \"marketConsentValue\",\n newValue,\n verificationService,\n );\n }}\n viewModel={viewModel}\n disabled={getFieldConfigByFieldId(\"marketConsentValue\")?.disabled}\n />\n\n <ExtraMessage verificationService={verificationService} suffix=\"CollectAboveSubmit\" />\n\n <CaptchaComponent\n verificationService={verificationService}\n isErrored={!!fieldValidationErrors.captchaToken}\n />\n\n <PersonalInfoStepSubmitButton\n step={VerificationStepsEnum.collectPersonalInfo}\n verificationService={verificationService}\n viewModel={viewModel}\n failedInstantMatch={failedInstantMatch}\n buttonText={\n <FormattedHTMLMessage\n id=\"step.personalInfo.submitButtonText\"\n defaultMessage=\"Verify and continue\"\n />\n }\n />\n </div>\n <FormFooter verificationService={verificationService} />\n </div>\n );\n};\n\nexport const StepCollectPersonalInfoComponent = injectIntl(StepCollectPersonalInfo);\n"],"names":["StepCollectPersonalInfo","intl","verificationService","viewModel","updateViewModel","programTheme","requiredFields","setRequiredFields","React","isFieldRequired","key","field","fieldValidationErrors","verificationResponse","failedInstantMatch","hasFailedInstantMatch","updatePersonalInfoViewModel","value","nextState","produce","draft","updateViewModelWithRequiredFields","newRequiredFields","produceDraftViewModelWithAllRequiredFields","locale","options","getOptions","segment","availableStatuses","pascalCaseSegment","isStatusRequired","SegmentEnum","getAndSetRequiredFields","requestBody","collectFieldsResponse","getAllFieldsToCollect","getSafe","error","logger","getOrganizationField","jsx","CollegeName","getFieldConfigByFieldId","choice","updateViewModelOrganization","updateFieldValidationErrorsByFieldId","TeacherSchool","MembershipOrganization","BranchOfService","FirstResponderOrganization","MedicalProfessionalOrganization","LicensedProfessionalOrganization","LowIncomeOrganization","orgToOption","getMarketConsent","submitForm","VerificationStepsEnum","jsxs","PersonalInfoHeader","CountryComponentWrapper","Status","getStatusLabel","getAvailableStatuses","status","FirstName","newValue","LastName","BirthDate","Email","event","handleEmailOnKeyDown","PhoneNumber","AddressComponent","CityComponent","DischargeDateComponent","DriverLicenseNumber","EBTCardNumberComponent","MemberId","FormattedHTMLMessage","PostalCodeComponent","SocialSecurityNumber","FieldIdEnum","StateSelectComponent","getAvailableStateChoices","stateChoice","stateValue","ActiveDutyStartDateComponent","config","FormFieldCustom","MarketConsentWrapper","ExtraMessage","CaptchaComponent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A,cACnC,UAAU,CAACqD,MAAa;AACtB,gBAAAjD,EAA4B,YAAY;AAAA,kBACtC,GAAGd,EAAoB,UAAU;AAAA,kBACjC,oBAAoB+D;AAAA,gBAAA,CACrB,GACDpB;AAAA,kBACE;AAAA,kBACAoB;AAAA,kBACA/D;AAAA,gBAAA;AAAA,cAEJ;AAAA,cACA,WAAAC;AAAA,cACA,UAAUuC,EAAwB,oBAAoB,GAAG;AAAA,YAAA;AAAA,UAAA;AAAA,UAG3DF,gBAAAA,EAAAA,IAACkD,GAAA,EAAa,qBAAAxF,GAA0C,QAAO,qBAAA,CAAqB;AAAA,UAEpFsC,gBAAAA,EAAAA;AAAAA,YAACmD;AAAA,YAAA;AAAA,cACC,qBAAAzF;AAAA,cACA,WAAW,CAAC,CAACU,EAAsB;AAAA,YAAA;AAAA,UAAA;AAAA,UAGrC4B,gBAAAA,EAAAA;AAAAA,YAACoD;AAAA,YAAA;AAAA,cACC,MAAMpC,EAAsB;AAAA,cAC5B,qBAAAtD;AAAA,cACA,WAAAC;AAAA,cACA,oBAAAW;AAAA,cACA,YACE0B,gBAAAA,EAAAA;AAAAA,gBAACsC;AAAA,gBAAA;AAAA,kBACC,IAAG;AAAA,kBACH,gBAAe;AAAA,gBAAA;AAAA,cAAA;AAAA,YACjB;AAAA,UAAA;AAAA,QAEJ,GACF;AAAA,QACAtC,gBAAAA,MAACqD,KAAW,qBAAA3F,EAAA,CAA0C;AAAA,MAAA;AAAA,IAAA;AAAA,EAAA;AAG5D,GAEa4F,KAAmCC,EAAW/F,EAAuB;"}
1
+ {"version":3,"file":"index-Ck4Jg3xo.js","sources":["../../src/components/StepCollectPersonalInfo/StepCollectPersonalInfoComponent.tsx"],"sourcesContent":["import React from \"react\";\nimport produce from \"immer\";\nimport { FormattedHTMLMessage, type InjectedIntl, injectIntl } from \"react-intl\";\n\nimport { getSafe } from \"@jslib/shared/utils/getSafe\";\nimport { logger } from \"@jslib/shared/utils/logger\";\n\nimport { hasFailedInstantMatch } from \"../../lib/VerificationService/VerificationServiceHelpers\";\nimport {\n type VerificationService,\n type CollectPersonalInfoViewModel,\n type CustomFormFieldConfig,\n type Organization,\n type FormSelectChoice,\n type State,\n type CollectFieldsResponse,\n type CollectPersonalInfoResponse,\n type FieldDescription,\n type AllStatuses,\n} from \"../../lib/types/types\";\nimport {\n getAvailableStateChoices,\n orgToOption,\n getStatusLabel,\n handleEmailOnKeyDown,\n submitForm,\n updateFieldValidationErrorsByFieldId,\n updateViewModelOrganization,\n produceDraftViewModelWithAllRequiredFields,\n getAvailableStatuses,\n getFieldConfigByFieldId,\n} from \"../../lib/utils/stepComponentHelpers/stepComponentHelpers\";\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 { FormFooterComponent as FormFooter } from \"../FormFooter/FormFooterComponent\";\nimport { CountryComponentWrapper } from \"../FormFields/Country/CountryComponentWrapper\";\nimport { getOptions } from \"../../options/options\";\nimport { FormFieldCustom } from \"../FormFields/FormFieldCustom/FormFieldCustom\";\nimport { ExtraMessage } from \"../ExtraMessage\";\nimport { FieldIdEnum, SegmentEnum, VerificationStepsEnum } from \"../../lib/types/runtimeTypes\";\nimport { CityComponent } from \"../FormFields/City/City\";\nimport { StateSelectComponent } from \"../FormFields/State/StateSelectComponent\";\nimport { PostalCodeComponent } from \"../FormFields/PostalCode/PostalCodeComponent\";\nimport { AddressComponent } from \"../FormFields/Address/AddressComponent\";\nimport { ActiveDutyStartDateComponent } from \"../FormFields/ActiveDutyStartDate/ActiveDutyStartDateComponent\";\nimport { BranchOfServiceComponent as BranchOfService } from \"../FormFields/BranchOfService/BranchOfServiceComponent\";\nimport { DriverLicenseNumberComponent as DriverLicenseNumber } from \"../FormFields/DriverLicenseNumber/DriverLicenseNumberComponent\";\nimport { EBTCardNumberComponent } from \"../FormFields/EBTCardNumber/EBTCardNumberComponent\";\nimport { StatusComponent as Status } from \"../FormFields/Status/StatusComponent\";\nimport { LowIncomeOrganizationComponent as LowIncomeOrganization } from \"../FormFields/LowIncomeOrganization/LowIncomeOrganizationComponent\";\nimport { FirstResponderOrganizationComponent as FirstResponderOrganization } from \"../FormFields/FirstResponderOrganization/FirstResponderOrganizationComponent\";\nimport { LicensedProfessionalOrganizationComponent as LicensedProfessionalOrganization } from \"../FormFields/LicensedProfessionalOrganization/LicensedProfessionalOrganizationComponent\";\nimport { MedicalProfessionalOrganizationComponent as MedicalProfessionalOrganization } from \"../FormFields/MedicalProfessionalOrganization/MedicalProfessionalOrganizationComponent\";\nimport { MemberIdComponent as MemberId } from \"../FormFields/MemberId/MemberIdComponent\";\nimport { MembershipOrganizationComponent as MembershipOrganization } from \"../FormFields/MembershipOrganization/MembershipOrganizationComponent\";\nimport { TeacherSchoolComponent as TeacherSchool } from \"../FormFields/TeacherSchool/TeacherSchoolComponent\";\nimport { SocialSecurityNumber } from \"../FormFields/SSN/SSN\";\nimport { DischargeDateComponent } from \"../FormFields/DischargeDate/DischargeDateComponent\";\nimport { getAllFieldsToCollect } from \"../../lib/ServerApi/VerificationApiClient\";\nimport { getMarketConsent } from \"../../lib/ProgramTheme/programThemeGetters\";\nimport { PersonalInfoHeader } from \"../FormHeader/StepHeaders/PersonalInfoHeaderComponent\";\nimport { PersonalInfoStepSubmitButton } from \"../PersonalInfoStepSubmitButton/PersonalInfoStepSubmitButton\";\nimport { CaptchaComponent } from \"../FormFields/Captcha/CaptchaComponent\";\n\ninterface StepCollectPersonalInfoProps {\n intl: InjectedIntl;\n verificationService: VerificationService;\n}\n\nexport const StepCollectPersonalInfo = ({\n intl,\n verificationService,\n}: StepCollectPersonalInfoProps) => {\n const viewModel = verificationService.viewModel as CollectPersonalInfoViewModel;\n const { updateViewModel, programTheme } = verificationService;\n\n const [requiredFields, setRequiredFields] = React.useState<FieldDescription[]>(undefined);\n\n const isFieldRequired = (key: keyof CollectPersonalInfoViewModel) =>\n requiredFields && requiredFields.some((field) => field.key === key);\n\n const { fieldValidationErrors } = verificationService;\n const verificationResponse =\n verificationService.verificationResponse as CollectPersonalInfoResponse;\n const failedInstantMatch = hasFailedInstantMatch(verificationResponse);\n\n const updatePersonalInfoViewModel = (key: keyof CollectPersonalInfoViewModel, value: any) => {\n const nextState: CollectPersonalInfoViewModel = produce(\n viewModel,\n (draft: CollectPersonalInfoViewModel) => {\n (draft[key] as any) = value;\n },\n );\n updateViewModel(nextState);\n };\n\n const updateViewModelWithRequiredFields = (newRequiredFields: FieldDescription[]) => {\n const nextState: CollectPersonalInfoViewModel = produceDraftViewModelWithAllRequiredFields(\n viewModel,\n newRequiredFields,\n );\n updateViewModel(nextState);\n };\n\n const locale = viewModel.localeChoice.value;\n const options = getOptions();\n\n const { segment, availableStatuses } = verificationResponse;\n const pascalCaseSegment = segment.charAt(0).toUpperCase() + segment.slice(1);\n\n const isStatusRequired = (): boolean =>\n availableStatuses &&\n (segment === SegmentEnum.FIRST_RESPONDER ||\n segment === SegmentEnum.MEDICAL ||\n segment === SegmentEnum.LOW_INCOME ||\n segment === SegmentEnum.LICENSED_PROFESSIONAL ||\n segment === SegmentEnum.EMPLOYMENT ||\n segment === SegmentEnum.RECENT_MOVER ||\n segment === SegmentEnum.MILITARY);\n\n const getAndSetRequiredFields = (requestBody: { statuses?: AllStatuses[] }) =>\n (async () => {\n try {\n const collectFieldsResponse: CollectFieldsResponse = await getAllFieldsToCollect(\n verificationResponse.verificationId,\n verificationResponse.currentStep,\n requestBody,\n );\n const newRequiredFields = getSafe(() => collectFieldsResponse.fieldsToCollect.required, []);\n\n if (isStatusRequired()) {\n // Adding `status` as a required input field if it's been removed by getting\n // all fields to collect with a statuses req body\n newRequiredFields.push({ key: \"status\" });\n }\n\n updateViewModelWithRequiredFields(newRequiredFields);\n setRequiredFields(newRequiredFields);\n } catch (error) {\n logger.error(`Failed to determine fields to collect: ${error}`);\n }\n })();\n\n const getOrganizationField = () => {\n switch (segment) {\n case SegmentEnum.STUDENT:\n return (\n <CollegeName\n value={(verificationService.viewModel as CollectPersonalInfoViewModel).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 );\n case SegmentEnum.TEACHER:\n return (\n <TeacherSchool\n value={(verificationService.viewModel as CollectPersonalInfoViewModel).organization}\n verificationService={verificationService}\n isErrored={!!fieldValidationErrors.organization}\n disabled={getFieldConfigByFieldId(\"organization\")?.disabled}\n onChange={(choice: Organization) => {\n updateViewModelOrganization(choice, verificationService);\n updateFieldValidationErrorsByFieldId(\"organization\", choice, verificationService);\n }}\n />\n );\n case SegmentEnum.MEMBER:\n return (\n <MembershipOrganization\n value={(verificationService.viewModel as CollectPersonalInfoViewModel).organization}\n verificationService={verificationService}\n isErrored={!!fieldValidationErrors.organization}\n disabled={getFieldConfigByFieldId(\"organization\")?.disabled}\n onChange={(choice: Organization) => {\n updateViewModelOrganization(choice, verificationService);\n updateFieldValidationErrorsByFieldId(\"organization\", choice, verificationService);\n }}\n />\n );\n case SegmentEnum.MILITARY:\n return (\n <BranchOfService\n isErrored={!!fieldValidationErrors.organization}\n onChange={(choice: Organization) => {\n updateViewModelOrganization(choice, verificationService);\n updateFieldValidationErrorsByFieldId(\"organization\", choice, verificationService);\n }}\n value={{\n value: getSafe(\n () =>\n (verificationService.viewModel as CollectPersonalInfoViewModel).organization.id,\n ),\n label: getSafe(\n () =>\n (verificationService.viewModel as CollectPersonalInfoViewModel).organization.name,\n ),\n }}\n verificationService={verificationService}\n disabled={getFieldConfigByFieldId(\"organization\")?.disabled}\n />\n );\n case SegmentEnum.FIRST_RESPONDER:\n return (\n <FirstResponderOrganization\n isErrored={!!fieldValidationErrors.organization}\n onChange={(choice: Organization) => {\n updateViewModelOrganization(choice, verificationService);\n updateFieldValidationErrorsByFieldId(\"organization\", choice, verificationService);\n }}\n value={(verificationService.viewModel as CollectPersonalInfoViewModel).organization}\n verificationService={verificationService}\n disabled={getFieldConfigByFieldId(\"organization\")?.disabled}\n />\n );\n case SegmentEnum.MEDICAL:\n return (\n <MedicalProfessionalOrganization\n isErrored={!!fieldValidationErrors.organization}\n onChange={(choice: Organization) => {\n updateViewModelOrganization(choice, verificationService);\n updateFieldValidationErrorsByFieldId(\"organization\", choice, verificationService);\n }}\n value={(verificationService.viewModel as CollectPersonalInfoViewModel).organization}\n verificationService={verificationService}\n disabled={getFieldConfigByFieldId(\"organization\")?.disabled}\n />\n );\n case SegmentEnum.LICENSED_PROFESSIONAL:\n return (\n <LicensedProfessionalOrganization\n isErrored={!!fieldValidationErrors.organization}\n onChange={(choice: Organization) => {\n updateViewModelOrganization(choice, verificationService);\n updateFieldValidationErrorsByFieldId(\"organization\", choice, verificationService);\n }}\n value={(verificationService.viewModel as CollectPersonalInfoViewModel).organization}\n verificationService={verificationService}\n disabled={getFieldConfigByFieldId(\"organization\")?.disabled}\n />\n );\n case SegmentEnum.LOW_INCOME:\n return (\n <LowIncomeOrganization\n isErrored={!!fieldValidationErrors.organization}\n onChange={(choice: Organization) => {\n updateViewModelOrganization(choice, verificationService);\n updateFieldValidationErrorsByFieldId(\"organization\", choice, verificationService);\n }}\n value={orgToOption(\n (verificationService.viewModel as CollectPersonalInfoViewModel).organization,\n )}\n verificationService={verificationService}\n isRequired\n disabled={getFieldConfigByFieldId(\"organization\")?.disabled}\n />\n );\n default:\n return null;\n }\n };\n\n React.useEffect(() => {\n if (availableStatuses && segment === SegmentEnum.MILITARY) {\n // display all required military fields by setting an initial default status\n getAndSetRequiredFields({ statuses: [] });\n } else {\n // fetch initial list of required input fields\n getAndSetRequiredFields({});\n }\n }, []);\n\n React.useEffect(() => {\n if (!getMarketConsent(programTheme).enabled && requiredFields && requiredFields.length === 0) {\n // skip this step if there are no required fields, and marketConsent is not enabled\n submitForm(viewModel, verificationService, VerificationStepsEnum.collectPersonalInfo);\n }\n }, [requiredFields]);\n\n React.useEffect(() => {\n if (viewModel.status) {\n // if status changes, re-fetch required fields because they may have changed based on selected status\n getAndSetRequiredFields({ statuses: [viewModel.status] });\n }\n }, [viewModel.status]);\n\n return (\n <div\n id=\"sid-step-personal-info-personal-info\"\n className=\"sid-personal-info-container sid-l-container\"\n >\n <div role=\"main\">\n <PersonalInfoHeader\n verificationService={verificationService}\n classNameIdentifier=\"personal-info\"\n />\n\n <CountryComponentWrapper\n verificationService={verificationService}\n disabled={getFieldConfigByFieldId(\"country\")?.disabled}\n />\n\n {isStatusRequired() && (\n <Status\n segmentId={segment}\n value={{\n value: viewModel.status,\n label: getStatusLabel(intl, viewModel.status, null),\n }}\n isErrored={!!fieldValidationErrors.status}\n errorId={`invalid${pascalCaseSegment}Status`}\n options={getAvailableStatuses(intl, availableStatuses)}\n disabled={getFieldConfigByFieldId(\"status\")?.disabled}\n onChange={(status: FormSelectChoice) => {\n updatePersonalInfoViewModel(\"status\", status ? (status.value as string) : \"\");\n updateFieldValidationErrorsByFieldId(\n \"status\",\n status ? (status.value as string) : \"\",\n verificationService,\n );\n }}\n />\n )}\n\n {isFieldRequired(\"organization\") && getOrganizationField()}\n\n <div className=\"sid-names\">\n {isFieldRequired(\"firstName\") && (\n <FirstName\n value={viewModel.firstName}\n isErrored={!!fieldValidationErrors.firstName}\n disabled={getFieldConfigByFieldId(\"firstName\")?.disabled}\n onChange={(newValue) => {\n updatePersonalInfoViewModel(\"firstName\", newValue);\n updateFieldValidationErrorsByFieldId(\"firstName\", newValue, verificationService);\n }}\n />\n )}\n\n {isFieldRequired(\"lastName\") && (\n <LastName\n value={viewModel.lastName}\n isErrored={!!fieldValidationErrors.lastName}\n disabled={getFieldConfigByFieldId(\"lastName\")?.disabled}\n onChange={(newValue) => {\n updatePersonalInfoViewModel(\"lastName\", newValue);\n updateFieldValidationErrorsByFieldId(\"lastName\", newValue, verificationService);\n }}\n />\n )}\n </div>\n\n {isFieldRequired(\"birthDate\") && (\n <BirthDate\n value={viewModel.birthDate}\n errorId={fieldValidationErrors.birthDate}\n locale={locale}\n isRequired\n disabled={getFieldConfigByFieldId(\"birthDate\")?.disabled}\n onChange={(newValue) => {\n updatePersonalInfoViewModel(\"birthDate\", newValue);\n updateFieldValidationErrorsByFieldId(\"birthDate\", newValue, verificationService);\n }}\n />\n )}\n\n {isFieldRequired(\"email\") && (\n <Email\n value={viewModel.email}\n isErrored={!!fieldValidationErrors.email}\n explanation=\" \"\n onChange={(newValue) => {\n updatePersonalInfoViewModel(\"email\", newValue);\n updateFieldValidationErrorsByFieldId(\"email\", newValue, verificationService);\n }}\n onKeyDown={(event) => handleEmailOnKeyDown(event)}\n disabled={getFieldConfigByFieldId(\"email\")?.disabled}\n />\n )}\n\n {isFieldRequired(\"phoneNumber\") && (\n <PhoneNumber\n isRequired={!!verificationService.programTheme.smsLoopEnabled}\n value={viewModel.phoneNumber}\n isErrored={!!fieldValidationErrors.phoneNumber}\n onChange={(newValue) => {\n updatePersonalInfoViewModel(\"phoneNumber\", newValue);\n updateFieldValidationErrorsByFieldId(\"phoneNumber\", newValue, verificationService);\n }}\n selectedCountryCode={viewModel.countryChoice && viewModel.countryChoice.value}\n disabled={getFieldConfigByFieldId(\"phoneNumber\")?.disabled}\n />\n )}\n\n {isFieldRequired(\"address1\") && (\n <AddressComponent\n value={viewModel.address1}\n isRequired\n isErrored={!!fieldValidationErrors.address1}\n errorId={fieldValidationErrors.address1}\n disabled={getFieldConfigByFieldId(\"address1\")?.disabled}\n onChange={(value) => {\n updatePersonalInfoViewModel(\"address1\", value);\n updateFieldValidationErrorsByFieldId(\"address1\", value, verificationService);\n }}\n />\n )}\n\n {isFieldRequired(\"city\") && (\n <CityComponent\n value={viewModel.city}\n isRequired\n isErrored={!!fieldValidationErrors.city}\n errorId={fieldValidationErrors.city}\n disabled={getFieldConfigByFieldId(\"city\")?.disabled}\n onChange={(newValue) => {\n updatePersonalInfoViewModel(\"city\", newValue);\n updateFieldValidationErrorsByFieldId(\"city\", newValue, verificationService);\n }}\n />\n )}\n\n {isFieldRequired(\"dischargeDate\") && (\n <DischargeDateComponent\n errorId={fieldValidationErrors.dischargeDate}\n locale={locale}\n onChange={(newValue) => {\n updatePersonalInfoViewModel(\"dischargeDate\", newValue);\n updateFieldValidationErrorsByFieldId(\"dischargeDate\", newValue, verificationService);\n }}\n value={viewModel.dischargeDate}\n disabled={getFieldConfigByFieldId(\"dischargeDate\")?.disabled}\n />\n )}\n\n {isFieldRequired(\"driverLicenseNumber\") && (\n <DriverLicenseNumber\n value={viewModel.driverLicenseNumber}\n isErrored={!!fieldValidationErrors.driverLicenseNumber}\n isRequired\n disabled={getFieldConfigByFieldId(\"driverLicenseNumber\")?.disabled}\n onChange={(newValue) => {\n updatePersonalInfoViewModel(\"driverLicenseNumber\", newValue);\n updateFieldValidationErrorsByFieldId(\n \"driverLicenseNumber\",\n newValue,\n verificationService,\n );\n }}\n />\n )}\n\n {isFieldRequired(\"ebtCardNumber\") && (\n <EBTCardNumberComponent\n value={viewModel.ebtCardNumber}\n isErrored={!!fieldValidationErrors.ebtCardNumber}\n disabled={getFieldConfigByFieldId(\"ebtCardNumber\")?.disabled}\n onChange={(newValue) => {\n updatePersonalInfoViewModel(\"ebtCardNumber\", newValue);\n updateFieldValidationErrorsByFieldId(\"ebtCardNumber\", newValue, verificationService);\n }}\n />\n )}\n\n {isFieldRequired(\"memberId\") && (\n <MemberId\n value={viewModel.memberId}\n isErrored={!!fieldValidationErrors.memberId}\n isRequired={getFieldConfigByFieldId(\"memberId\")?.requireIfOptional}\n disabled={getFieldConfigByFieldId(\"memberId\")?.disabled}\n onChange={(newValue) => {\n updatePersonalInfoViewModel(\"memberId\", newValue);\n updateFieldValidationErrorsByFieldId(\"memberId\", newValue, verificationService);\n }}\n label={\n <FormattedHTMLMessage\n id=\"step.collectMedicalPersonalInfo.registrationNumberLabel\"\n defaultMessage=\"Registration Number\"\n />\n }\n />\n )}\n\n {isFieldRequired(\"postalCode\") && (\n <PostalCodeComponent\n isErrored={!!fieldValidationErrors.postalCode}\n onChange={(newValue) => {\n updatePersonalInfoViewModel(\"postalCode\", newValue);\n updateFieldValidationErrorsByFieldId(\"postalCode\", newValue, verificationService);\n }}\n value={viewModel.postalCode}\n disabled={getFieldConfigByFieldId(\"postalCode\")?.disabled}\n />\n )}\n\n {isFieldRequired(\"socialSecurityNumber\") && (\n <div className=\"sid-ssn-wrapper\">\n <SocialSecurityNumber\n value={viewModel.socialSecurityNumber}\n onChange={(value: string) => {\n updatePersonalInfoViewModel(\"socialSecurityNumber\", value);\n updateFieldValidationErrorsByFieldId(\n \"socialSecurityNumber\",\n value,\n verificationService,\n );\n }}\n isErrored={!!fieldValidationErrors[FieldIdEnum.socialSecurityNumber]}\n placeholder=\"000-00-0000\"\n disabled={getFieldConfigByFieldId(\"socialSecurityNumber\")?.disabled}\n />\n </div>\n )}\n\n {isFieldRequired(\"state\") && (\n <StateSelectComponent\n isRequired\n options={getAvailableStateChoices(verificationService.programTheme, intl)}\n value={viewModel.state || undefined}\n isErrored={Boolean(fieldValidationErrors.state)}\n onChange={async (stateChoice: FormSelectChoice<State, string>) => {\n const stateValue = stateChoice ? stateChoice.value : undefined;\n updatePersonalInfoViewModel(\"state\", stateValue);\n updateFieldValidationErrorsByFieldId(\"state\", stateValue, verificationService);\n }}\n label={<FormattedHTMLMessage id=\"state\" defaultMessage=\"State\" />}\n disabled={getFieldConfigByFieldId(\"state\")?.disabled}\n />\n )}\n\n {isFieldRequired(\"activeDutyStartDate\") &&\n verificationService.programTheme.strictMilitaryValidationEnabled && (\n <ActiveDutyStartDateComponent\n errorId={fieldValidationErrors.activeDutyStartDate}\n locale={locale}\n onChange={(newValue) => {\n updatePersonalInfoViewModel(\"activeDutyStartDate\", newValue);\n updateFieldValidationErrorsByFieldId(\n \"activeDutyStartDate\",\n newValue,\n verificationService,\n );\n }}\n value={viewModel.activeDutyStartDate}\n disabled={getFieldConfigByFieldId(\"activeDutyStartDate\")?.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 updatePersonalInfoViewModel(\"metadata\", {\n ...verificationService.viewModel.metadata,\n marketConsentValue: newValue,\n });\n updateFieldValidationErrorsByFieldId(\n \"marketConsentValue\",\n newValue,\n verificationService,\n );\n }}\n viewModel={viewModel}\n disabled={getFieldConfigByFieldId(\"marketConsentValue\")?.disabled}\n />\n\n <ExtraMessage verificationService={verificationService} suffix=\"CollectAboveSubmit\" />\n\n <CaptchaComponent\n verificationService={verificationService}\n isErrored={!!fieldValidationErrors.captchaToken}\n />\n\n <PersonalInfoStepSubmitButton\n step={VerificationStepsEnum.collectPersonalInfo}\n verificationService={verificationService}\n viewModel={viewModel}\n failedInstantMatch={failedInstantMatch}\n buttonText={\n <FormattedHTMLMessage\n id=\"step.personalInfo.submitButtonText\"\n defaultMessage=\"Verify and continue\"\n />\n }\n />\n </div>\n <FormFooter verificationService={verificationService} />\n </div>\n );\n};\n\nexport const StepCollectPersonalInfoComponent = injectIntl(StepCollectPersonalInfo);\n"],"names":["StepCollectPersonalInfo","intl","verificationService","viewModel","updateViewModel","programTheme","requiredFields","setRequiredFields","React","isFieldRequired","key","field","fieldValidationErrors","verificationResponse","failedInstantMatch","hasFailedInstantMatch","updatePersonalInfoViewModel","value","nextState","produce","draft","updateViewModelWithRequiredFields","newRequiredFields","produceDraftViewModelWithAllRequiredFields","locale","options","getOptions","segment","availableStatuses","pascalCaseSegment","isStatusRequired","SegmentEnum","getAndSetRequiredFields","requestBody","collectFieldsResponse","getAllFieldsToCollect","getSafe","error","logger","getOrganizationField","jsx","CollegeName","getFieldConfigByFieldId","choice","updateViewModelOrganization","updateFieldValidationErrorsByFieldId","TeacherSchool","MembershipOrganization","BranchOfService","FirstResponderOrganization","MedicalProfessionalOrganization","LicensedProfessionalOrganization","LowIncomeOrganization","orgToOption","getMarketConsent","submitForm","VerificationStepsEnum","jsxs","PersonalInfoHeader","CountryComponentWrapper","Status","getStatusLabel","getAvailableStatuses","status","FirstName","newValue","LastName","BirthDate","Email","event","handleEmailOnKeyDown","PhoneNumber","AddressComponent","CityComponent","DischargeDateComponent","DriverLicenseNumber","EBTCardNumberComponent","MemberId","FormattedHTMLMessage","PostalCodeComponent","SocialSecurityNumber","FieldIdEnum","StateSelectComponent","getAvailableStateChoices","stateChoice","stateValue","ActiveDutyStartDateComponent","config","FormFieldCustom","MarketConsentWrapper","ExtraMessage","CaptchaComponent","PersonalInfoStepSubmitButton","FormFooter","StepCollectPersonalInfoComponent","injectIntl"],"mappings":";;;;;;;;;;;;;;;;;;;;;AA0EO,MAAMA,KAA0B,CAAC;AAAA,EACtC,MAAAC;AAAA,EACA,qBAAAC;AACF,MAAoC;AAClC,QAAMC,IAAYD,EAAoB,WAChC,EAAE,iBAAAE,GAAiB,cAAAC,EAAA,IAAiBH,GAEpC,CAACI,GAAgBC,CAAiB,IAAIC,EAAM,SAA6B,MAAS,GAElFC,IAAkB,CAACC,MACvBJ,KAAkBA,EAAe,KAAK,CAACK,MAAUA,EAAM,QAAQD,CAAG,GAE9D,EAAE,uBAAAE,MAA0BV,GAC5BW,IACJX,EAAoB,sBAChBY,IAAqBC,EAAsBF,CAAoB,GAE/DG,IAA8B,CAACN,GAAyCO,MAAe;AAC3F,UAAMC,IAA0CC;AAAAA,MAC9ChB;AAAA,MACA,CAACiB,MAAw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AAAA,YAAA;AAAA,cACC,MAAMpC,EAAsB;AAAA,cAC5B,qBAAAtD;AAAA,cACA,WAAAC;AAAA,cACA,oBAAAW;AAAA,cACA,YACE0B,gBAAAA,EAAAA;AAAAA,gBAACsC;AAAA,gBAAA;AAAA,kBACC,IAAG;AAAA,kBACH,gBAAe;AAAA,gBAAA;AAAA,cAAA;AAAA,YACjB;AAAA,UAAA;AAAA,QAEJ,GACF;AAAA,QACAtC,gBAAAA,MAACqD,KAAW,qBAAA3F,EAAA,CAA0C;AAAA,MAAA;AAAA,IAAA;AAAA,EAAA;AAG5D,GAEa4F,KAAmCC,EAAW/F,EAAuB;"}
@@ -1,9 +1,9 @@
1
1
 
2
2
  /**
3
- * VERSION: 2.215.0
4
- * BUILD_TIMESTAMP: 1776270535890
5
- * BUILD_DATE: Wed Apr 15 2026 16:28:55 GMT+0000 (Coordinated Universal Time)
6
- * BUILD_COMMIT: f61301e8130f45d5b0f3289e9af975fd53310faa
3
+ * VERSION: 2.216.0
4
+ * BUILD_TIMESTAMP: 1776381497820
5
+ * BUILD_DATE: Thu Apr 16 2026 23:18:17 GMT+0000 (Coordinated Universal Time)
6
+ * BUILD_COMMIT: 50ddc20fa37c7ed5a295ebe023a56c87f1a977b4
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.215.0
8
- * BUILD_TIMESTAMP: 1776270550420
9
- * BUILD_DATE: Wed Apr 15 2026 16:29:10 GMT+0000 (Coordinated Universal Time)
10
- * BUILD_COMMIT: f61301e8130f45d5b0f3289e9af975fd53310faa
7
+ * VERSION: 2.216.0
8
+ * BUILD_TIMESTAMP: 1776381511730
9
+ * BUILD_DATE: Thu Apr 16 2026 23:18:31 GMT+0000 (Coordinated Universal Time)
10
+ * BUILD_COMMIT: 50ddc20fa37c7ed5a295ebe023a56c87f1a977b4
11
11
  */
12
12
  import { i as x, g as n, j as a, c as b, F as p, P as j, a8 as h, _ as E, o as r, Y as M, n as f, U as N, V as F, p as T, e as I } from "../_mysheerid-preview.js";
13
13
  import { F as P, L as k, P as V, a as z, M as A, C as L } from "./CaptchaComponent-CSCvSY8Y.js";
@@ -15,7 +15,7 @@ import { E as w, P as H } from "./PersonalInfoStepSubmitButton-v_kWLmEw.js";
15
15
  import { A as R } from "./AddressComponent-DV2Wsw6k.js";
16
16
  import { C as B } from "./City-BmrJpnS6.js";
17
17
  import { S as O } from "./StateSelectComponent-CIpB-Rh1.js";
18
- import { F as U } from "./FormFieldTypeahead-vwV0QGbl.js";
18
+ import { F as U } from "./FormFieldTypeahead-CyKKVK89.js";
19
19
  import { P as q } from "./PostalCodeComponent-KXVfZkLx.js";
20
20
  import { C as D } from "./CountryComponentWrapper--2UQ7mXP.js";
21
21
  import { C as W } from "./ChangeLocaleComponent-Cu2DR-Q3.js";
@@ -1 +1 @@
1
- {"version":3,"file":"index-JJtRAk_6.js","sources":["../../src/components/FormFields/Company/CompanyComponent.tsx","../../src/components/StepEmploymentPersonalInfo/StepEmploymentPersonalInfoComponent.tsx"],"sourcesContent":["import { FormattedHTMLMessage, injectIntl } from \"react-intl\";\n\nimport { getFieldConfigByFieldId } from \"@/lib/utils/stepComponentHelpers/stepComponentHelpers\";\n\nimport {\n type FormFieldComponentProps,\n type VerificationServiceProps,\n type Organization,\n} from \"../../../lib/types/types\";\nimport { FormFieldTypeahead } from \"../FormFieldTypeahead/FormFieldTypeahead\";\nimport { getOrgSearchUrl } from \"../../../lib/ProgramTheme/programThemeGetters\";\n\nexport const Company = ({\n value,\n isErrored,\n onChange,\n verificationService,\n intl,\n placeholder = \"\",\n disabled = false,\n}: FormFieldComponentProps & VerificationServiceProps) => {\n const isFieldHidden = getFieldConfigByFieldId(\"organization\")?.hidden;\n\n if (isFieldHidden) {\n return null;\n }\n\n return (\n <FormFieldTypeahead\n fieldId=\"company\"\n value={value}\n verificationService={verificationService}\n onChange={(choice: Organization) => onChange(choice)}\n placeholder={\n placeholder ||\n intl.formatHTMLMessage({ id: \"companyPlaceholder\", defaultMessage: \"Company\" })\n }\n label={<FormattedHTMLMessage id=\"company\" defaultMessage=\"Company\" />}\n errorMessage={\n isErrored && (\n <FormattedHTMLMessage\n id=\"errorId.invalidOrganization\"\n defaultMessage=\"You must select an organization from the list\"\n />\n )\n }\n orgSearchUrl={getOrgSearchUrl(\n verificationService.viewModel,\n verificationService.programTheme,\n )}\n showPlaceholderAndHideLabel={!!placeholder}\n disabled={disabled}\n />\n );\n};\n\nexport const CompanyComponent = injectIntl(Company);\n","/**\n * TODO - preamble\n */\nimport { FormattedHTMLMessage, injectIntl } from \"react-intl\";\nimport { produce } from \"immer\";\n\nimport { VerificationStepsEnum } from \"../../lib/types/runtimeTypes\";\nimport {\n type VerificationService,\n type Organization,\n type EmploymentPersonalInfoViewModel,\n type CustomFormFieldConfig,\n type FormSelectChoice,\n type State,\n type FieldId,\n} from \"../../lib/types/types\";\nimport {\n handleEmailOnKeyDown,\n updateFieldValidationErrorsByFieldId,\n updateViewModelOrganization,\n shouldCollectAddressFields,\n getAvailableStateChoices,\n getFieldConfigByFieldId,\n} from \"../../lib/utils/stepComponentHelpers/stepComponentHelpers\";\nimport { PhoneNumberComponent as PhoneNumber } from \"../FormFields/PhoneNumber/PhoneNumberComponent\";\nimport { FirstNameComponent as FirstName } from \"../FormFields/FirstName/FirstNameComponent\";\nimport { LastNameComponent as LastName } from \"../FormFields/LastName/LastNameComponent\";\nimport { EmailComponent as Email } from \"../FormFields/Email/EmailComponent\";\nimport { MarketConsentWrapperComponent as MarketConsentWrapper } from \"../FormFields/MarketConsentWrapper/MarketConsentWrapperComponent\";\nimport { AddressComponent } from \"../FormFields/Address/AddressComponent\";\nimport { CityComponent } from \"../FormFields/City/City\";\nimport { StateSelectComponent } from \"../FormFields/State/StateSelectComponent\";\nimport { CompanyComponent } from \"../FormFields/Company/CompanyComponent\";\nimport { PostalCodeComponent } from \"../FormFields/PostalCode/PostalCodeComponent\";\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\";\n\ninterface StepEmploymentPersonalInfoComponentProps {\n intl: any;\n verificationService: VerificationService;\n}\n\nconst StepEmploymentPersonalInfo = ({\n intl,\n verificationService,\n}: StepEmploymentPersonalInfoComponentProps) => {\n const viewModel = verificationService.viewModel as EmploymentPersonalInfoViewModel;\n const { fieldValidationErrors } = verificationService;\n const options = getOptions();\n\n const updateEmploymentViewModel = (key: keyof EmploymentPersonalInfoViewModel, value: any) => {\n const nextState: EmploymentPersonalInfoViewModel = produce(\n viewModel,\n (draft: EmploymentPersonalInfoViewModel) => {\n (draft[key] as any) = value;\n },\n );\n verificationService.updateViewModel(nextState);\n };\n\n return (\n <PersonalInfoWrapper\n verificationService={verificationService}\n step={verificationService.verificationResponse.currentStep}\n >\n <PersonalInfoHeader\n verificationService={verificationService}\n classNameIdentifier=\"employment\"\n />\n\n <ChangeLocaleV2Component verificationService={verificationService} />\n <CountryComponentWrapper\n verificationService={verificationService}\n disabled={getFieldConfigByFieldId(\"country\")?.disabled}\n viewModelDraftDecorator={(draft, countryChoice) => {\n const viewModel = draft as EmploymentPersonalInfoViewModel;\n\n viewModel.shouldCollectAddress = shouldCollectAddressFields(\n countryChoice,\n verificationService.programTheme.config.countries,\n );\n const addressFields: FieldId[] = [\"address1\", \"city\", \"state\", \"postalCode\"];\n const existing = (viewModel.fieldsToSkipValidation || []).filter(\n (id) => !addressFields.includes(id),\n );\n if (!viewModel.shouldCollectAddress) {\n viewModel.address1 = \"\";\n viewModel.city = \"\";\n viewModel.state = \"\";\n viewModel.postalCode = \"\";\n viewModel.fieldsToSkipValidation = [...existing, ...addressFields];\n } else {\n viewModel.fieldsToSkipValidation = existing.length ? existing : undefined;\n }\n }}\n />\n\n <CompanyComponent\n value={(verificationService.viewModel as EmploymentPersonalInfoViewModel).organization}\n verificationService={verificationService}\n isErrored={!!fieldValidationErrors.organization}\n disabled={getFieldConfigByFieldId(\"organization\")?.disabled}\n onChange={(choice: Organization) => {\n updateViewModelOrganization(choice, verificationService);\n updateFieldValidationErrorsByFieldId(\"organization\", choice, verificationService);\n }}\n />\n\n <div className=\"sid-names\">\n <FirstName\n value={viewModel.firstName}\n isErrored={!!fieldValidationErrors.firstName}\n disabled={getFieldConfigByFieldId(\"firstName\")?.disabled}\n onChange={(newValue) => {\n updateEmploymentViewModel(\"firstName\", newValue);\n updateFieldValidationErrorsByFieldId(\"firstName\", newValue, verificationService);\n }}\n />\n\n <LastName\n value={viewModel.lastName}\n isErrored={!!fieldValidationErrors.lastName}\n disabled={getFieldConfigByFieldId(\"lastName\")?.disabled}\n onChange={(newValue) => {\n updateEmploymentViewModel(\"lastName\", newValue);\n updateFieldValidationErrorsByFieldId(\"lastName\", newValue, verificationService);\n }}\n />\n </div>\n\n {shouldCollectAddressFields(\n viewModel.countryChoice,\n verificationService.programTheme.config.countries,\n ) ? (\n <AddressComponent\n isErrored={!!fieldValidationErrors.address1}\n errorId={fieldValidationErrors.address1}\n onChange={(newValue) => {\n updateEmploymentViewModel(\"address1\", newValue);\n updateFieldValidationErrorsByFieldId(\"address1\", newValue, verificationService);\n }}\n isRequired\n value={viewModel.address1}\n disabled={getFieldConfigByFieldId(\"address1\")?.disabled}\n explanation={\n <FormattedHTMLMessage id=\"addressExplanation\" defaultMessage=\"Use your home address\" />\n }\n />\n ) : null}\n\n {shouldCollectAddressFields(\n viewModel.countryChoice,\n verificationService.programTheme.config.countries,\n ) ? (\n <div className=\"sid-thirds\">\n <CityComponent\n isErrored={!!fieldValidationErrors.city}\n errorId={fieldValidationErrors.city}\n onChange={(newValue) => {\n updateEmploymentViewModel(\"city\", newValue);\n updateFieldValidationErrorsByFieldId(\"city\", newValue, verificationService);\n }}\n value={viewModel.city}\n isRequired\n disabled={getFieldConfigByFieldId(\"city\")?.disabled}\n />\n <StateSelectComponent\n isRequired\n options={getAvailableStateChoices(verificationService.programTheme, intl)}\n value={viewModel.state || undefined}\n isErrored={Boolean(fieldValidationErrors.state)}\n onChange={async (stateChoice: FormSelectChoice<State, string>) => {\n const stateValue = stateChoice ? stateChoice.value : undefined;\n updateEmploymentViewModel(\"state\", stateValue);\n updateFieldValidationErrorsByFieldId(\"state\", stateValue, verificationService);\n }}\n label={<FormattedHTMLMessage id=\"state\" defaultMessage=\"State\" />}\n disabled={getFieldConfigByFieldId(\"state\")?.disabled}\n />\n <PostalCodeComponent\n isErrored={!!fieldValidationErrors.postalCode}\n onChange={(newValue) => {\n updateEmploymentViewModel(\"postalCode\", newValue);\n updateFieldValidationErrorsByFieldId(\"postalCode\", newValue, verificationService);\n }}\n value={viewModel.postalCode}\n disabled={getFieldConfigByFieldId(\"postalCode\")?.disabled}\n />\n </div>\n ) : null}\n\n <Email\n value={viewModel.email}\n isErrored={!!fieldValidationErrors.email}\n explanation={\n <FormattedHTMLMessage\n id=\"emailExplanation\"\n defaultMessage=\"Use your work email if you have one\"\n />\n }\n onChange={(newValue) => {\n updateEmploymentViewModel(\"email\", newValue);\n updateFieldValidationErrorsByFieldId(\"email\", newValue, verificationService);\n }}\n onKeyDown={(event) => handleEmailOnKeyDown(event)}\n disabled={getFieldConfigByFieldId(\"email\")?.disabled}\n />\n {verificationService.programTheme.isSmsNotifierConfigured ||\n verificationService.programTheme.smsLoopEnabled ? (\n <PhoneNumber\n isRequired={!!verificationService.programTheme.smsLoopEnabled}\n value={viewModel.phoneNumber}\n isErrored={!!fieldValidationErrors.phoneNumber}\n onChange={(newValue) => {\n updateEmploymentViewModel(\"phoneNumber\", newValue);\n updateFieldValidationErrorsByFieldId(\"phoneNumber\", newValue, verificationService);\n }}\n selectedCountryCode={viewModel.countryChoice && viewModel.countryChoice.value}\n disabled={getFieldConfigByFieldId(\"phoneNumber\")?.disabled}\n />\n ) : null}\n\n {options.customFormFields.map((config: CustomFormFieldConfig) => (\n <FormFieldCustom config={config} verificationService={verificationService} />\n ))}\n\n <MarketConsentWrapper\n verificationService={verificationService}\n isErrored={!!fieldValidationErrors.marketConsentValue}\n onChange={(newValue) => {\n updateEmploymentViewModel(\"metadata\", {\n ...verificationService.viewModel.metadata,\n marketConsentValue: newValue,\n });\n updateFieldValidationErrorsByFieldId(\"marketConsentValue\", newValue, verificationService);\n }}\n viewModel={viewModel}\n disabled={getFieldConfigByFieldId(\"marketConsentValue\")?.disabled}\n />\n\n <ExtraMessage verificationService={verificationService} suffix=\"CollectAboveSubmit\" />\n\n <CaptchaComponent\n verificationService={verificationService}\n isErrored={!!fieldValidationErrors.captchaToken}\n />\n\n <PersonalInfoStepSubmitButton\n step={VerificationStepsEnum.collectEmployeePersonalInfo}\n verificationService={verificationService}\n viewModel={viewModel}\n buttonText={\n <FormattedHTMLMessage\n id=\"step.personalInfo.submitButtonText\"\n defaultMessage=\"Verify My Employment Status\"\n />\n }\n />\n </PersonalInfoWrapper>\n );\n};\n\n// TODO remove injectIntl, unused\nexport const StepEmploymentPersonalInfoComponent = injectIntl(StepEmploymentPersonalInfo);\n"],"names":["Company","value","isErrored","onChange","verificationService","intl","placeholder","disabled","getFieldConfigByFieldId","jsx","FormFieldTypeahead","choice","FormattedHTMLMessage","getOrgSearchUrl","CompanyComponent","injectIntl","StepEmploymentPersonalInfo","viewModel","fieldValidationErrors","options","getOptions","updateEmploymentViewModel","key","nextState","produce","draft","jsxs","PersonalInfoWrapper","PersonalInfoHeader","ChangeLocaleV2Component","CountryComponentWrapper","countryChoice","shouldCollectAddressFields","addressFields","existing","id","updateViewModelOrganization","updateFieldValidationErrorsByFieldId","FirstName","newValue","LastName","AddressComponent","CityComponent","StateSelectComponent","getAvailableStateChoices","stateChoice","stateValue","PostalCodeComponent","Email","event","handleEmailOnKeyDown","PhoneNumber","config","FormFieldCustom","MarketConsentWrapper","ExtraMessage","CaptchaComponent","PersonalInfoStepSubmitButton","VerificationStepsEnum","StepEmploymentPersonalInfoComponent"],"mappings":";;;;;;;;;;;AAYO,MAAMA,IAAU,CAAC;AAAA,EACtB,OAAAC;AAAA,EACA,WAAAC;AAAA,EACA,UAAAC;AAAA,EACA,qBAAAC;AAAA,EACA,MAAAC;AAAA,EACA,aAAAC,IAAc;AAAA,EACd,UAAAC,IAAW;AACb,MACwBC,EAAwB,cAAc,GAAG,SAGtD,OAIPC,gBAAAA,EAAAA;AAAAA,EAACC;AAAA,EAAA;AAAA,IACC,SAAQ;AAAA,IACR,OAAAT;AAAA,IACA,qBAAAG;AAAA,IACA,UAAU,CAACO,MAAyBR,EAASQ,CAAM;AAAA,IACnD,aACEL,KACAD,EAAK,kBAAkB,EAAE,IAAI,sBAAsB,gBAAgB,WAAW;AAAA,IAEhF,OAAOI,gBAAAA,EAAAA,IAACG,GAAA,EAAqB,IAAG,WAAU,gBAAe,WAAU;AAAA,IACnE,cACEV,KACEO,gBAAAA,EAAAA;AAAAA,MAACG;AAAA,MAAA;AAAA,QACC,IAAG;AAAA,QACH,gBAAe;AAAA,MAAA;AAAA,IAAA;AAAA,IAIrB,cAAcC;AAAA,MACZT,EAAoB;AAAA,MACpBA,EAAoB;AAAA,IAAA;AAAA,IAEtB,6BAA6B,CAAC,CAACE;AAAA,IAC/B,UAAAC;AAAA,EAAA;AAAA,GAKOO,IAAmBC,EAAWf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}
1
+ {"version":3,"file":"index-CzRLvvKQ.js","sources":["../../src/components/FormFields/Company/CompanyComponent.tsx","../../src/components/StepEmploymentPersonalInfo/StepEmploymentPersonalInfoComponent.tsx"],"sourcesContent":["import { FormattedHTMLMessage, injectIntl } from \"react-intl\";\n\nimport { getFieldConfigByFieldId } from \"@/lib/utils/stepComponentHelpers/stepComponentHelpers\";\n\nimport {\n type FormFieldComponentProps,\n type VerificationServiceProps,\n type Organization,\n} from \"../../../lib/types/types\";\nimport { FormFieldTypeahead } from \"../FormFieldTypeahead/FormFieldTypeahead\";\nimport { getOrgSearchUrl } from \"../../../lib/ProgramTheme/programThemeGetters\";\n\nexport const Company = ({\n value,\n isErrored,\n onChange,\n verificationService,\n intl,\n placeholder = \"\",\n disabled = false,\n}: FormFieldComponentProps & VerificationServiceProps) => {\n const isFieldHidden = getFieldConfigByFieldId(\"organization\")?.hidden;\n\n if (isFieldHidden) {\n return null;\n }\n\n return (\n <FormFieldTypeahead\n fieldId=\"company\"\n value={value}\n verificationService={verificationService}\n onChange={(choice: Organization) => onChange(choice)}\n placeholder={\n placeholder ||\n intl.formatHTMLMessage({ id: \"companyPlaceholder\", defaultMessage: \"Company\" })\n }\n label={<FormattedHTMLMessage id=\"company\" defaultMessage=\"Company\" />}\n errorMessage={\n isErrored && (\n <FormattedHTMLMessage\n id=\"errorId.invalidOrganization\"\n defaultMessage=\"You must select an organization from the list\"\n />\n )\n }\n orgSearchUrl={getOrgSearchUrl(\n verificationService.viewModel,\n verificationService.programTheme,\n )}\n showPlaceholderAndHideLabel={!!placeholder}\n disabled={disabled}\n />\n );\n};\n\nexport const CompanyComponent = injectIntl(Company);\n","/**\n * TODO - preamble\n */\nimport { FormattedHTMLMessage, injectIntl } from \"react-intl\";\nimport { produce } from \"immer\";\n\nimport { VerificationStepsEnum } from \"../../lib/types/runtimeTypes\";\nimport {\n type VerificationService,\n type Organization,\n type EmploymentPersonalInfoViewModel,\n type CustomFormFieldConfig,\n type FormSelectChoice,\n type State,\n type FieldId,\n} from \"../../lib/types/types\";\nimport {\n handleEmailOnKeyDown,\n updateFieldValidationErrorsByFieldId,\n updateViewModelOrganization,\n shouldCollectAddressFields,\n getAvailableStateChoices,\n getFieldConfigByFieldId,\n} from \"../../lib/utils/stepComponentHelpers/stepComponentHelpers\";\nimport { PhoneNumberComponent as PhoneNumber } from \"../FormFields/PhoneNumber/PhoneNumberComponent\";\nimport { FirstNameComponent as FirstName } from \"../FormFields/FirstName/FirstNameComponent\";\nimport { LastNameComponent as LastName } from \"../FormFields/LastName/LastNameComponent\";\nimport { EmailComponent as Email } from \"../FormFields/Email/EmailComponent\";\nimport { MarketConsentWrapperComponent as MarketConsentWrapper } from \"../FormFields/MarketConsentWrapper/MarketConsentWrapperComponent\";\nimport { AddressComponent } from \"../FormFields/Address/AddressComponent\";\nimport { CityComponent } from \"../FormFields/City/City\";\nimport { StateSelectComponent } from \"../FormFields/State/StateSelectComponent\";\nimport { CompanyComponent } from \"../FormFields/Company/CompanyComponent\";\nimport { PostalCodeComponent } from \"../FormFields/PostalCode/PostalCodeComponent\";\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\";\n\ninterface StepEmploymentPersonalInfoComponentProps {\n intl: any;\n verificationService: VerificationService;\n}\n\nconst StepEmploymentPersonalInfo = ({\n intl,\n verificationService,\n}: StepEmploymentPersonalInfoComponentProps) => {\n const viewModel = verificationService.viewModel as EmploymentPersonalInfoViewModel;\n const { fieldValidationErrors } = verificationService;\n const options = getOptions();\n\n const updateEmploymentViewModel = (key: keyof EmploymentPersonalInfoViewModel, value: any) => {\n const nextState: EmploymentPersonalInfoViewModel = produce(\n viewModel,\n (draft: EmploymentPersonalInfoViewModel) => {\n (draft[key] as any) = value;\n },\n );\n verificationService.updateViewModel(nextState);\n };\n\n return (\n <PersonalInfoWrapper\n verificationService={verificationService}\n step={verificationService.verificationResponse.currentStep}\n >\n <PersonalInfoHeader\n verificationService={verificationService}\n classNameIdentifier=\"employment\"\n />\n\n <ChangeLocaleV2Component verificationService={verificationService} />\n <CountryComponentWrapper\n verificationService={verificationService}\n disabled={getFieldConfigByFieldId(\"country\")?.disabled}\n viewModelDraftDecorator={(draft, countryChoice) => {\n const viewModel = draft as EmploymentPersonalInfoViewModel;\n\n viewModel.shouldCollectAddress = shouldCollectAddressFields(\n countryChoice,\n verificationService.programTheme.config.countries,\n );\n const addressFields: FieldId[] = [\"address1\", \"city\", \"state\", \"postalCode\"];\n const existing = (viewModel.fieldsToSkipValidation || []).filter(\n (id) => !addressFields.includes(id),\n );\n if (!viewModel.shouldCollectAddress) {\n viewModel.address1 = \"\";\n viewModel.city = \"\";\n viewModel.state = \"\";\n viewModel.postalCode = \"\";\n viewModel.fieldsToSkipValidation = [...existing, ...addressFields];\n } else {\n viewModel.fieldsToSkipValidation = existing.length ? existing : undefined;\n }\n }}\n />\n\n <CompanyComponent\n value={(verificationService.viewModel as EmploymentPersonalInfoViewModel).organization}\n verificationService={verificationService}\n isErrored={!!fieldValidationErrors.organization}\n disabled={getFieldConfigByFieldId(\"organization\")?.disabled}\n onChange={(choice: Organization) => {\n updateViewModelOrganization(choice, verificationService);\n updateFieldValidationErrorsByFieldId(\"organization\", choice, verificationService);\n }}\n />\n\n <div className=\"sid-names\">\n <FirstName\n value={viewModel.firstName}\n isErrored={!!fieldValidationErrors.firstName}\n disabled={getFieldConfigByFieldId(\"firstName\")?.disabled}\n onChange={(newValue) => {\n updateEmploymentViewModel(\"firstName\", newValue);\n updateFieldValidationErrorsByFieldId(\"firstName\", newValue, verificationService);\n }}\n />\n\n <LastName\n value={viewModel.lastName}\n isErrored={!!fieldValidationErrors.lastName}\n disabled={getFieldConfigByFieldId(\"lastName\")?.disabled}\n onChange={(newValue) => {\n updateEmploymentViewModel(\"lastName\", newValue);\n updateFieldValidationErrorsByFieldId(\"lastName\", newValue, verificationService);\n }}\n />\n </div>\n\n {shouldCollectAddressFields(\n viewModel.countryChoice,\n verificationService.programTheme.config.countries,\n ) ? (\n <AddressComponent\n isErrored={!!fieldValidationErrors.address1}\n errorId={fieldValidationErrors.address1}\n onChange={(newValue) => {\n updateEmploymentViewModel(\"address1\", newValue);\n updateFieldValidationErrorsByFieldId(\"address1\", newValue, verificationService);\n }}\n isRequired\n value={viewModel.address1}\n disabled={getFieldConfigByFieldId(\"address1\")?.disabled}\n explanation={\n <FormattedHTMLMessage id=\"addressExplanation\" defaultMessage=\"Use your home address\" />\n }\n />\n ) : null}\n\n {shouldCollectAddressFields(\n viewModel.countryChoice,\n verificationService.programTheme.config.countries,\n ) ? (\n <div className=\"sid-thirds\">\n <CityComponent\n isErrored={!!fieldValidationErrors.city}\n errorId={fieldValidationErrors.city}\n onChange={(newValue) => {\n updateEmploymentViewModel(\"city\", newValue);\n updateFieldValidationErrorsByFieldId(\"city\", newValue, verificationService);\n }}\n value={viewModel.city}\n isRequired\n disabled={getFieldConfigByFieldId(\"city\")?.disabled}\n />\n <StateSelectComponent\n isRequired\n options={getAvailableStateChoices(verificationService.programTheme, intl)}\n value={viewModel.state || undefined}\n isErrored={Boolean(fieldValidationErrors.state)}\n onChange={async (stateChoice: FormSelectChoice<State, string>) => {\n const stateValue = stateChoice ? stateChoice.value : undefined;\n updateEmploymentViewModel(\"state\", stateValue);\n updateFieldValidationErrorsByFieldId(\"state\", stateValue, verificationService);\n }}\n label={<FormattedHTMLMessage id=\"state\" defaultMessage=\"State\" />}\n disabled={getFieldConfigByFieldId(\"state\")?.disabled}\n />\n <PostalCodeComponent\n isErrored={!!fieldValidationErrors.postalCode}\n onChange={(newValue) => {\n updateEmploymentViewModel(\"postalCode\", newValue);\n updateFieldValidationErrorsByFieldId(\"postalCode\", newValue, verificationService);\n }}\n value={viewModel.postalCode}\n disabled={getFieldConfigByFieldId(\"postalCode\")?.disabled}\n />\n </div>\n ) : null}\n\n <Email\n value={viewModel.email}\n isErrored={!!fieldValidationErrors.email}\n explanation={\n <FormattedHTMLMessage\n id=\"emailExplanation\"\n defaultMessage=\"Use your work email if you have one\"\n />\n }\n onChange={(newValue) => {\n updateEmploymentViewModel(\"email\", newValue);\n updateFieldValidationErrorsByFieldId(\"email\", newValue, verificationService);\n }}\n onKeyDown={(event) => handleEmailOnKeyDown(event)}\n disabled={getFieldConfigByFieldId(\"email\")?.disabled}\n />\n {verificationService.programTheme.isSmsNotifierConfigured ||\n verificationService.programTheme.smsLoopEnabled ? (\n <PhoneNumber\n isRequired={!!verificationService.programTheme.smsLoopEnabled}\n value={viewModel.phoneNumber}\n isErrored={!!fieldValidationErrors.phoneNumber}\n onChange={(newValue) => {\n updateEmploymentViewModel(\"phoneNumber\", newValue);\n updateFieldValidationErrorsByFieldId(\"phoneNumber\", newValue, verificationService);\n }}\n selectedCountryCode={viewModel.countryChoice && viewModel.countryChoice.value}\n disabled={getFieldConfigByFieldId(\"phoneNumber\")?.disabled}\n />\n ) : null}\n\n {options.customFormFields.map((config: CustomFormFieldConfig) => (\n <FormFieldCustom config={config} verificationService={verificationService} />\n ))}\n\n <MarketConsentWrapper\n verificationService={verificationService}\n isErrored={!!fieldValidationErrors.marketConsentValue}\n onChange={(newValue) => {\n updateEmploymentViewModel(\"metadata\", {\n ...verificationService.viewModel.metadata,\n marketConsentValue: newValue,\n });\n updateFieldValidationErrorsByFieldId(\"marketConsentValue\", newValue, verificationService);\n }}\n viewModel={viewModel}\n disabled={getFieldConfigByFieldId(\"marketConsentValue\")?.disabled}\n />\n\n <ExtraMessage verificationService={verificationService} suffix=\"CollectAboveSubmit\" />\n\n <CaptchaComponent\n verificationService={verificationService}\n isErrored={!!fieldValidationErrors.captchaToken}\n />\n\n <PersonalInfoStepSubmitButton\n step={VerificationStepsEnum.collectEmployeePersonalInfo}\n verificationService={verificationService}\n viewModel={viewModel}\n buttonText={\n <FormattedHTMLMessage\n id=\"step.personalInfo.submitButtonText\"\n defaultMessage=\"Verify My Employment Status\"\n />\n }\n />\n </PersonalInfoWrapper>\n );\n};\n\n// TODO remove injectIntl, unused\nexport const StepEmploymentPersonalInfoComponent = injectIntl(StepEmploymentPersonalInfo);\n"],"names":["Company","value","isErrored","onChange","verificationService","intl","placeholder","disabled","getFieldConfigByFieldId","jsx","FormFieldTypeahead","choice","FormattedHTMLMessage","getOrgSearchUrl","CompanyComponent","injectIntl","StepEmploymentPersonalInfo","viewModel","fieldValidationErrors","options","getOptions","updateEmploymentViewModel","key","nextState","produce","draft","jsxs","PersonalInfoWrapper","PersonalInfoHeader","ChangeLocaleV2Component","CountryComponentWrapper","countryChoice","shouldCollectAddressFields","addressFields","existing","id","updateViewModelOrganization","updateFieldValidationErrorsByFieldId","FirstName","newValue","LastName","AddressComponent","CityComponent","StateSelectComponent","getAvailableStateChoices","stateChoice","stateValue","PostalCodeComponent","Email","event","handleEmailOnKeyDown","PhoneNumber","config","FormFieldCustom","MarketConsentWrapper","ExtraMessage","CaptchaComponent","PersonalInfoStepSubmitButton","VerificationStepsEnum","StepEmploymentPersonalInfoComponent"],"mappings":";;;;;;;;;;;AAYO,MAAMA,IAAU,CAAC;AAAA,EACtB,OAAAC;AAAA,EACA,WAAAC;AAAA,EACA,UAAAC;AAAA,EACA,qBAAAC;AAAA,EACA,MAAAC;AAAA,EACA,aAAAC,IAAc;AAAA,EACd,UAAAC,IAAW;AACb,MACwBC,EAAwB,cAAc,GAAG,SAGtD,OAIPC,gBAAAA,EAAAA;AAAAA,EAACC;AAAA,E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AAA,EAAAA,IAAC8C,GAAA,EAAa,qBAAAnD,GAA0C,QAAO,qBAAA,CAAqB;AAAA,QAEpFK,gBAAAA,EAAAA;AAAAA,UAAC+C;AAAA,UAAA;AAAA,YACC,qBAAApD;AAAA,YACA,WAAW,CAAC,CAACc,EAAsB;AAAA,UAAA;AAAA,QAAA;AAAA,QAGrCT,gBAAAA,EAAAA;AAAAA,UAACgD;AAAA,UAAA;AAAA,YACC,MAAMC,EAAsB;AAAA,YAC5B,qBAAAtD;AAAA,YACA,WAAAa;AAAA,YACA,YACER,gBAAAA,EAAAA;AAAAA,cAACG;AAAA,cAAA;AAAA,gBACC,IAAG;AAAA,gBACH,gBAAe;AAAA,cAAA;AAAA,YAAA;AAAA,UACjB;AAAA,QAAA;AAAA,MAEJ;AAAA,IAAA;AAAA,EAAA;AAGN,GAGa+C,KAAsC5C,EAAWC,CAA0B;"}
@@ -1,9 +1,9 @@
1
1
 
2
2
  /**
3
- * VERSION: 2.215.0
4
- * BUILD_TIMESTAMP: 1776270535890
5
- * BUILD_DATE: Wed Apr 15 2026 16:28:55 GMT+0000 (Coordinated Universal Time)
6
- * BUILD_COMMIT: f61301e8130f45d5b0f3289e9af975fd53310faa
3
+ * VERSION: 2.216.0
4
+ * BUILD_TIMESTAMP: 1776381497820
5
+ * BUILD_DATE: Thu Apr 16 2026 23:18:17 GMT+0000 (Coordinated Universal Time)
6
+ * BUILD_COMMIT: 50ddc20fa37c7ed5a295ebe023a56c87f1a977b4
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,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.215.0
8
- * BUILD_TIMESTAMP: 1776270550420
9
- * BUILD_DATE: Wed Apr 15 2026 16:29:10 GMT+0000 (Coordinated Universal Time)
10
- * BUILD_COMMIT: f61301e8130f45d5b0f3289e9af975fd53310faa
7
+ * VERSION: 2.216.0
8
+ * BUILD_TIMESTAMP: 1776381511730
9
+ * BUILD_DATE: Thu Apr 16 2026 23:18:31 GMT+0000 (Coordinated Universal Time)
10
+ * BUILD_COMMIT: 50ddc20fa37c7ed5a295ebe023a56c87f1a977b4
11
11
  */
12
12
  import { af as b, l as v, ag as y, 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";
@@ -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.215.0
8
- * BUILD_TIMESTAMP: 1776270550420
9
- * BUILD_DATE: Wed Apr 15 2026 16:29:10 GMT+0000 (Coordinated Universal Time)
10
- * BUILD_COMMIT: f61301e8130f45d5b0f3289e9af975fd53310faa
7
+ * VERSION: 2.216.0
8
+ * BUILD_TIMESTAMP: 1776381511730
9
+ * BUILD_DATE: Thu Apr 16 2026 23:18:31 GMT+0000 (Coordinated Universal Time)
10
+ * BUILD_COMMIT: 50ddc20fa37c7ed5a295ebe023a56c87f1a977b4
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,14 +1,14 @@
1
1
 
2
2
  /**
3
- * VERSION: 2.215.0
4
- * BUILD_TIMESTAMP: 1776270535890
5
- * BUILD_DATE: Wed Apr 15 2026 16:28:55 GMT+0000 (Coordinated Universal Time)
6
- * BUILD_COMMIT: f61301e8130f45d5b0f3289e9af975fd53310faa
3
+ * VERSION: 2.216.0
4
+ * BUILD_TIMESTAMP: 1776381497820
5
+ * BUILD_DATE: Thu Apr 16 2026 23:18:17 GMT+0000 (Coordinated Universal Time)
6
+ * BUILD_COMMIT: 50ddc20fa37c7ed5a295ebe023a56c87f1a977b4
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
10
  import { F as R, L as k, P as D, a as L, M as w, C as q } from "./CaptchaComponent-DcxyBvrf.js";
11
- import { C as B } from "./CollegeNameComponent-OwbvKomU.js";
11
+ import { C as B } from "./CollegeNameComponent-DtKPZHb-.js";
12
12
  import { E as H, P as z } from "./PersonalInfoStepSubmitButton-j44RdZDq.js";
13
13
  import { B as A } from "./militaryStepHelpers-BBHrfNCB.js";
14
14
  import { C as O } from "./CountryComponentWrapper-Ceq-eink.js";
@@ -1 +1 @@
1
- {"version":3,"file":"index-D3EKpvm9.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,KAAe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A,YAAA;AAAA,UACjB;AAAA,QAAA;AAAA,MAEJ;AAAA,IAAA;AAAA,EAAA;AAGN,GAEagD,KAAmC3C;"}
1
+ {"version":3,"file":"index-DD5n87cJ.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;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C,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;"}
@@ -1,9 +1,9 @@
1
1
 
2
2
  /**
3
- * VERSION: 2.215.0
4
- * BUILD_TIMESTAMP: 1776270535890
5
- * BUILD_DATE: Wed Apr 15 2026 16:28:55 GMT+0000 (Coordinated Universal Time)
6
- * BUILD_COMMIT: f61301e8130f45d5b0f3289e9af975fd53310faa
3
+ * VERSION: 2.216.0
4
+ * BUILD_TIMESTAMP: 1776381497820
5
+ * BUILD_DATE: Thu Apr 16 2026 23:18:17 GMT+0000 (Coordinated Universal Time)
6
+ * BUILD_COMMIT: 50ddc20fa37c7ed5a295ebe023a56c87f1a977b4
7
7
  */
8
8
  import { m as M, g as t, R as g, j as a, P as I, _ as j, o as n, n as N, F as b, U as E, V as f, p as F, e as y } from "../sheerid.js";
9
9
  import { F as P, L as V, P as T, a as k, M as D, C as R } from "./CaptchaComponent-DcxyBvrf.js";
@@ -11,7 +11,7 @@ import { E as q, P as z } from "./PersonalInfoStepSubmitButton-j44RdZDq.js";
11
11
  import { B } from "./militaryStepHelpers-BBHrfNCB.js";
12
12
  import { M as L } from "./MemberIdComponent-C8mVSo9m.js";
13
13
  import { C as O } from "./ChangeLocaleComponent-DUnfgQuX.js";
14
- import { M as w } from "./MembershipOrganizationComponent-B4bYo0LI.js";
14
+ import { M as w } from "./MembershipOrganizationComponent-CN6_d_Fk.js";
15
15
  import { C as W } from "./CountryComponentWrapper-Ceq-eink.js";
16
16
  import { P as H } from "./PersonalInfoStepWrapper-PV06WMKL.js";
17
17
  const K = ({ verificationService: s }) => {