@sheerid/jslib 2.281.0 → 2.283.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 (358) hide show
  1. package/_mysheerid-preview.css +4 -4
  2. package/_mysheerid-preview.js +36 -36
  3. package/chunk/{AddressComponent-R2Fd0cek.js → AddressComponent-Bo0ARZTC.js} +5 -5
  4. package/chunk/{AddressComponent-DOjNxl_I.js.map → AddressComponent-Bo0ARZTC.js.map} +1 -1
  5. package/chunk/{AddressComponent-DOjNxl_I.js → AddressComponent-DjdU1avW.js} +5 -5
  6. package/chunk/{AddressComponent-R2Fd0cek.js.map → AddressComponent-DjdU1avW.js.map} +1 -1
  7. package/chunk/AnnouncingHeader-B84Vw5oF.js +4 -4
  8. package/chunk/AnnouncingHeader-BJHHK6ve.js +4 -4
  9. package/chunk/{ApiUrls-DBvP6NVV.js → ApiUrls-MtK1lfo-.js} +5 -5
  10. package/chunk/{ApiUrls-DBvP6NVV.js.map → ApiUrls-MtK1lfo-.js.map} +1 -1
  11. package/chunk/{ApiUrls-D99-cRdt.js → ApiUrls-XBNB9DI6.js} +5 -5
  12. package/chunk/{ApiUrls-D99-cRdt.js.map → ApiUrls-XBNB9DI6.js.map} +1 -1
  13. package/chunk/{BirthDateComponent-DukbTLfA.js → BirthDateComponent-Bc9jwV4J.js} +5 -5
  14. package/chunk/{BirthDateComponent-DukbTLfA.js.map → BirthDateComponent-Bc9jwV4J.js.map} +1 -1
  15. package/chunk/{BirthDateComponent-Q9xk2WkY.js → BirthDateComponent-DhSXxwAN.js} +5 -5
  16. package/chunk/{BirthDateComponent-Q9xk2WkY.js.map → BirthDateComponent-DhSXxwAN.js.map} +1 -1
  17. package/chunk/{CaptchaComponent-CU_cl3Zk.js → CaptchaComponent-BFnSDutX.js} +7 -7
  18. package/chunk/{CaptchaComponent-CU_cl3Zk.js.map → CaptchaComponent-BFnSDutX.js.map} +1 -1
  19. package/chunk/{CaptchaComponent-rK7DJuE_.js → CaptchaComponent-f5RlyrJ_.js} +7 -7
  20. package/chunk/{CaptchaComponent-rK7DJuE_.js.map → CaptchaComponent-f5RlyrJ_.js.map} +1 -1
  21. package/chunk/{ChangeLocaleComponent-vn8OTAQI.js → ChangeLocaleComponent-BfLianBY.js} +54 -53
  22. package/chunk/ChangeLocaleComponent-BfLianBY.js.map +1 -0
  23. package/chunk/{ChangeLocaleComponent-C7qA4aQm.js → ChangeLocaleComponent-DRzH3cx2.js} +54 -53
  24. package/chunk/ChangeLocaleComponent-DRzH3cx2.js.map +1 -0
  25. package/chunk/{City-B7F48BA8.js → City-CfHBaCRV.js} +5 -5
  26. package/chunk/{City-B7F48BA8.js.map → City-CfHBaCRV.js.map} +1 -1
  27. package/chunk/{City-Df61wEEc.js → City-Cua_6h5H.js} +5 -5
  28. package/chunk/{City-Df61wEEc.js.map → City-Cua_6h5H.js.map} +1 -1
  29. package/chunk/CollegeNameComponent-B8zeKprU.js +46 -0
  30. package/chunk/CollegeNameComponent-B8zeKprU.js.map +1 -0
  31. package/chunk/CollegeNameComponent-hl37XhAk.js +42 -0
  32. package/chunk/CollegeNameComponent-hl37XhAk.js.map +1 -0
  33. package/chunk/CopyToClipboardComponent-Cx3fFPKm.js +4 -4
  34. package/chunk/CopyToClipboardComponent-Hd6_alz8.js +4 -4
  35. package/chunk/{CountryComponentWrapper-9gOmQZX7.js → CountryComponentWrapper-CbB9XMJq.js} +6 -6
  36. package/chunk/{CountryComponentWrapper-9gOmQZX7.js.map → CountryComponentWrapper-CbB9XMJq.js.map} +1 -1
  37. package/chunk/{CountryComponentWrapper-CWpapFYW.js → CountryComponentWrapper-cqOW7qGW.js} +6 -6
  38. package/chunk/{CountryComponentWrapper-CWpapFYW.js.map → CountryComponentWrapper-cqOW7qGW.js.map} +1 -1
  39. package/chunk/{DischargeDateComponent-DbEbuZ45.js → DischargeDateComponent-ChQ9YmFw.js} +7 -7
  40. package/chunk/{DischargeDateComponent-BMFvqjcA.js.map → DischargeDateComponent-ChQ9YmFw.js.map} +1 -1
  41. package/chunk/{DischargeDateComponent-BMFvqjcA.js → DischargeDateComponent-D5nNSGFi.js} +7 -7
  42. package/chunk/{DischargeDateComponent-DbEbuZ45.js.map → DischargeDateComponent-D5nNSGFi.js.map} +1 -1
  43. package/chunk/{DriverLicenseNumberComponent-DeiMToPT.js → DriverLicenseNumberComponent-Bio6Kdhd.js} +5 -5
  44. package/chunk/{DriverLicenseNumberComponent-DBYCqtfS.js.map → DriverLicenseNumberComponent-Bio6Kdhd.js.map} +1 -1
  45. package/chunk/{DriverLicenseNumberComponent-DBYCqtfS.js → DriverLicenseNumberComponent-DYuTSEww.js} +5 -5
  46. package/chunk/{DriverLicenseNumberComponent-DeiMToPT.js.map → DriverLicenseNumberComponent-DYuTSEww.js.map} +1 -1
  47. package/chunk/{EmailLoopPending-BszV-Eqm.js → EmailLoopPending-BkFpbhow.js} +5 -5
  48. package/chunk/{EmailLoopPending-BszV-Eqm.js.map → EmailLoopPending-BkFpbhow.js.map} +1 -1
  49. package/chunk/{EmailLoopPending-Y7940Ad9.js → EmailLoopPending-ec5_gIpD.js} +5 -5
  50. package/chunk/{EmailLoopPending-Y7940Ad9.js.map → EmailLoopPending-ec5_gIpD.js.map} +1 -1
  51. package/chunk/{ExtraMessage-pgwmr9t-.js → ExtraMessage--Hy3tDVD.js} +5 -5
  52. package/chunk/{ExtraMessage-C6dtskrX.js.map → ExtraMessage--Hy3tDVD.js.map} +1 -1
  53. package/chunk/{ExtraMessage-C6dtskrX.js → ExtraMessage-BYCsMo2w.js} +5 -5
  54. package/chunk/{ExtraMessage-pgwmr9t-.js.map → ExtraMessage-BYCsMo2w.js.map} +1 -1
  55. package/chunk/{FirstResponderOrganizationComponent-B0auGdUs.js → FirstResponderOrganizationComponent-DqK6E_Dy.js} +6 -6
  56. package/chunk/{FirstResponderOrganizationComponent-B0auGdUs.js.map → FirstResponderOrganizationComponent-DqK6E_Dy.js.map} +1 -1
  57. package/chunk/{FirstResponderOrganizationComponent-DP1Y5xeF.js → FirstResponderOrganizationComponent-c-CvVWYr.js} +6 -6
  58. package/chunk/{FirstResponderOrganizationComponent-DP1Y5xeF.js.map → FirstResponderOrganizationComponent-c-CvVWYr.js.map} +1 -1
  59. package/chunk/{FormFieldInputSelect-CP6pqcXl.js → FormFieldInputSelect-Ct5xyQT1.js} +5 -5
  60. package/chunk/{FormFieldInputSelect-CP6pqcXl.js.map → FormFieldInputSelect-Ct5xyQT1.js.map} +1 -1
  61. package/chunk/{FormFieldInputSelect-Capd4jtU.js → FormFieldInputSelect-D7Iqh5xe.js} +5 -5
  62. package/chunk/{FormFieldInputSelect-Capd4jtU.js.map → FormFieldInputSelect-D7Iqh5xe.js.map} +1 -1
  63. package/chunk/FormFieldLayout-CfcTWF4b.js +4 -4
  64. package/chunk/FormFieldLayout-CsDsfcRv.js +4 -4
  65. package/chunk/FormFieldText-Cba-r9FE.js +4 -4
  66. package/chunk/FormFieldText-CoWhLvws.js +4 -4
  67. package/chunk/{FormFieldTypeahead-DAIaT5Z1.js → FormFieldTypeahead-BOhc30Sb.js} +445 -453
  68. package/chunk/{FormFieldTypeahead-75t6QL4a.js.map → FormFieldTypeahead-BOhc30Sb.js.map} +1 -1
  69. package/chunk/{FormFieldTypeahead-75t6QL4a.js → FormFieldTypeahead-Ld5ptYlw.js} +446 -454
  70. package/chunk/{FormFieldTypeahead-DAIaT5Z1.js.map → FormFieldTypeahead-Ld5ptYlw.js.map} +1 -1
  71. package/chunk/{FormFooterComponent-B4S5kWBq.js → FormFooterComponent-DABEABHp.js} +7 -7
  72. package/chunk/{FormFooterComponent-B4S5kWBq.js.map → FormFooterComponent-DABEABHp.js.map} +1 -1
  73. package/chunk/{FormFooterComponent-DWVAwUIg.js → FormFooterComponent-ijH3vfAe.js} +7 -7
  74. package/chunk/{FormFooterComponent-DWVAwUIg.js.map → FormFooterComponent-ijH3vfAe.js.map} +1 -1
  75. package/chunk/{FormSelectChoice-D30xoQCr.js → FormSelectChoice-BDUwdX08.js} +24 -29
  76. package/chunk/FormSelectChoice-BDUwdX08.js.map +1 -0
  77. package/chunk/{FormSelectChoice-tJYHTT-k.js → FormSelectChoice-C0Gq1MNt.js} +24 -29
  78. package/chunk/FormSelectChoice-C0Gq1MNt.js.map +1 -0
  79. package/chunk/InputText-C4PEMeZJ.js +4 -4
  80. package/chunk/InputText-CQYoeUfw.js +4 -4
  81. package/chunk/{LicensedProfessionalOrganizationComponent-77hAvvk6.js → LicensedProfessionalOrganizationComponent-BNX5v_8u.js} +6 -6
  82. package/chunk/{LicensedProfessionalOrganizationComponent-BSbFt9tS.js.map → LicensedProfessionalOrganizationComponent-BNX5v_8u.js.map} +1 -1
  83. package/chunk/{LicensedProfessionalOrganizationComponent-BSbFt9tS.js → LicensedProfessionalOrganizationComponent-Cnl2Kcme.js} +6 -6
  84. package/chunk/{LicensedProfessionalOrganizationComponent-77hAvvk6.js.map → LicensedProfessionalOrganizationComponent-Cnl2Kcme.js.map} +1 -1
  85. package/chunk/LogoComponent-Cq0AZvcg.js +4 -4
  86. package/chunk/LogoComponent-DKi0XFRw.js +4 -4
  87. package/chunk/{LowIncomeOrganizationComponent-DKV_n-mW.js → LowIncomeOrganizationComponent-BCYDmHXb.js} +7 -7
  88. package/chunk/{LowIncomeOrganizationComponent-ANQKRgTQ.js.map → LowIncomeOrganizationComponent-BCYDmHXb.js.map} +1 -1
  89. package/chunk/{LowIncomeOrganizationComponent-ANQKRgTQ.js → LowIncomeOrganizationComponent-To36ITLd.js} +7 -7
  90. package/chunk/{LowIncomeOrganizationComponent-DKV_n-mW.js.map → LowIncomeOrganizationComponent-To36ITLd.js.map} +1 -1
  91. package/chunk/{MedicalProfessionalOrganizationComponent-CyyUc5rG.js → MedicalProfessionalOrganizationComponent-D0rex1Cj.js} +6 -6
  92. package/chunk/{MedicalProfessionalOrganizationComponent-C4GcG0lw.js.map → MedicalProfessionalOrganizationComponent-D0rex1Cj.js.map} +1 -1
  93. package/chunk/{MedicalProfessionalOrganizationComponent-C4GcG0lw.js → MedicalProfessionalOrganizationComponent-kRth84cD.js} +6 -6
  94. package/chunk/{MedicalProfessionalOrganizationComponent-CyyUc5rG.js.map → MedicalProfessionalOrganizationComponent-kRth84cD.js.map} +1 -1
  95. package/chunk/{MemberIdComponent-DGyeXc9g.js → MemberIdComponent-0zKmOZHd.js} +5 -5
  96. package/chunk/{MemberIdComponent-BPywrZgT.js.map → MemberIdComponent-0zKmOZHd.js.map} +1 -1
  97. package/chunk/{MemberIdComponent-BPywrZgT.js → MemberIdComponent-DGbmoRTz.js} +5 -5
  98. package/chunk/{MemberIdComponent-DGyeXc9g.js.map → MemberIdComponent-DGbmoRTz.js.map} +1 -1
  99. package/chunk/{MembershipOrganizationComponent-Buw3TP1R.js → MembershipOrganizationComponent-3xdgFJrW.js} +6 -6
  100. package/chunk/{MembershipOrganizationComponent-Buw3TP1R.js.map → MembershipOrganizationComponent-3xdgFJrW.js.map} +1 -1
  101. package/chunk/{MembershipOrganizationComponent-BwT7YtxX.js → MembershipOrganizationComponent-s9OK5To3.js} +6 -6
  102. package/chunk/{MembershipOrganizationComponent-BwT7YtxX.js.map → MembershipOrganizationComponent-s9OK5To3.js.map} +1 -1
  103. package/chunk/{Message-TatPfUqp.js → Message-Co4QmwXx.js} +5 -5
  104. package/chunk/{Message-TatPfUqp.js.map → Message-Co4QmwXx.js.map} +1 -1
  105. package/chunk/{Message-CbG9lPM7.js → Message-EAQGVvfk.js} +5 -5
  106. package/chunk/{Message-CbG9lPM7.js.map → Message-EAQGVvfk.js.map} +1 -1
  107. package/chunk/Onfido-CTCgAwnB.js +4 -4
  108. package/chunk/{PersonalInfoStepSubmitButton-DdFdqJ5y.js → PersonalInfoStepSubmitButton-CmRtqNBy.js} +5 -5
  109. package/chunk/{PersonalInfoStepSubmitButton-BKxf5uQd.js.map → PersonalInfoStepSubmitButton-CmRtqNBy.js.map} +1 -1
  110. package/chunk/{PersonalInfoStepSubmitButton-BKxf5uQd.js → PersonalInfoStepSubmitButton-DkAmox9o.js} +5 -5
  111. package/chunk/{PersonalInfoStepSubmitButton-DdFdqJ5y.js.map → PersonalInfoStepSubmitButton-DkAmox9o.js.map} +1 -1
  112. package/chunk/{PersonalInfoStepWrapper-CWvPd9SY.js → PersonalInfoStepWrapper-IBhUSq4D.js} +5 -5
  113. package/chunk/{PersonalInfoStepWrapper-CWvPd9SY.js.map → PersonalInfoStepWrapper-IBhUSq4D.js.map} +1 -1
  114. package/chunk/{PersonalInfoStepWrapper--Ec0lakB.js → PersonalInfoStepWrapper-tb87u2Px.js} +6 -6
  115. package/chunk/{PersonalInfoStepWrapper--Ec0lakB.js.map → PersonalInfoStepWrapper-tb87u2Px.js.map} +1 -1
  116. package/chunk/{PostalCodeComponent-BHfIKDK0.js → PostalCodeComponent-Bl4nrcsZ.js} +5 -5
  117. package/chunk/{PostalCodeComponent-BHfIKDK0.js.map → PostalCodeComponent-Bl4nrcsZ.js.map} +1 -1
  118. package/chunk/{PostalCodeComponent-N8M35852.js → PostalCodeComponent-Q9b6xN4f.js} +5 -5
  119. package/chunk/{PostalCodeComponent-N8M35852.js.map → PostalCodeComponent-Q9b6xN4f.js.map} +1 -1
  120. package/chunk/{SSN-Dz_VqcHm.js → SSN-BNFXeqIA.js} +5 -5
  121. package/chunk/{SSN-51zLp7e3.js.map → SSN-BNFXeqIA.js.map} +1 -1
  122. package/chunk/{SSN-51zLp7e3.js → SSN-CfhYWsyu.js} +5 -5
  123. package/chunk/{SSN-Dz_VqcHm.js.map → SSN-CfhYWsyu.js.map} +1 -1
  124. package/chunk/{StateSelectComponent-CCjM1V8L.js → StateSelectComponent-6gMrhpQH.js} +6 -6
  125. package/chunk/{StateSelectComponent-CCjM1V8L.js.map → StateSelectComponent-6gMrhpQH.js.map} +1 -1
  126. package/chunk/{StateSelectComponent-Dptuxnno.js → StateSelectComponent-BfEcXNlZ.js} +6 -6
  127. package/chunk/{StateSelectComponent-Dptuxnno.js.map → StateSelectComponent-BfEcXNlZ.js.map} +1 -1
  128. package/chunk/StatusComponent-1cKx-egQ.js +44 -0
  129. package/chunk/StatusComponent-1cKx-egQ.js.map +1 -0
  130. package/chunk/StatusComponent-BqF3LPIF.js +48 -0
  131. package/chunk/StatusComponent-BqF3LPIF.js.map +1 -0
  132. package/chunk/{StepAgePersonalInfo-CjyqTBag.js → StepAgePersonalInfo-DSLcdxcb.js} +16 -16
  133. package/chunk/{StepAgePersonalInfo-BNjG41EO.js.map → StepAgePersonalInfo-DSLcdxcb.js.map} +1 -1
  134. package/chunk/{StepAgePersonalInfo-BNjG41EO.js → StepAgePersonalInfo-ZFHSY4Fe.js} +16 -16
  135. package/chunk/{StepAgePersonalInfo-CjyqTBag.js.map → StepAgePersonalInfo-ZFHSY4Fe.js.map} +1 -1
  136. package/chunk/StepCard-5V1_mxeM.js +4 -4
  137. package/chunk/StepCard-BPyR9qva.js +4 -4
  138. package/chunk/{StepCollectIdentifier-NL5LsumT.js → StepCollectIdentifier-CLtTpkgH.js} +6 -6
  139. package/chunk/{StepCollectIdentifier-NL5LsumT.js.map → StepCollectIdentifier-CLtTpkgH.js.map} +1 -1
  140. package/chunk/{StepCollectIdentifier-CeqSMXe_.js → StepCollectIdentifier-CnT0J7Aj.js} +6 -6
  141. package/chunk/{StepCollectIdentifier-CeqSMXe_.js.map → StepCollectIdentifier-CnT0J7Aj.js.map} +1 -1
  142. package/chunk/{StepCollectMilitaryPersonalInfoComponent-W0fQbfW7.js → StepCollectMilitaryPersonalInfoComponent-DFcB0eRp.js} +19 -19
  143. package/chunk/{StepCollectMilitaryPersonalInfoComponent-W0fQbfW7.js.map → StepCollectMilitaryPersonalInfoComponent-DFcB0eRp.js.map} +1 -1
  144. package/chunk/{StepCollectMilitaryPersonalInfoComponent-ih03EaV8.js → StepCollectMilitaryPersonalInfoComponent-DZEJALRJ.js} +19 -19
  145. package/chunk/{StepCollectMilitaryPersonalInfoComponent-ih03EaV8.js.map → StepCollectMilitaryPersonalInfoComponent-DZEJALRJ.js.map} +1 -1
  146. package/chunk/{StepCollectPersonalInfo-Dc5xPzT9.js → StepCollectPersonalInfo-BZNpqvPl.js} +28 -28
  147. package/chunk/{StepCollectPersonalInfo-Dc5xPzT9.js.map → StepCollectPersonalInfo-BZNpqvPl.js.map} +1 -1
  148. package/chunk/{StepCollectPersonalInfo-CmrhGQaF.js → StepCollectPersonalInfo-Do2Oo3al.js} +28 -28
  149. package/chunk/{StepCollectPersonalInfo-CmrhGQaF.js.map → StepCollectPersonalInfo-Do2Oo3al.js.map} +1 -1
  150. package/chunk/StepCompleteAuthentication-CAXDVjfM.js +4 -4
  151. package/chunk/StepCompleteAuthentication-fSePWmI2.js +4 -4
  152. package/chunk/{StepConsolation-DenbkgtW.js → StepConsolation-C0CDNg9g.js} +5 -5
  153. package/chunk/{StepConsolation-DWZ_bv3Y.js.map → StepConsolation-C0CDNg9g.js.map} +1 -1
  154. package/chunk/{StepConsolation-DWZ_bv3Y.js → StepConsolation-CW3bbf0v.js} +5 -5
  155. package/chunk/{StepConsolation-DenbkgtW.js.map → StepConsolation-CW3bbf0v.js.map} +1 -1
  156. package/chunk/{StepDocUpload-CbFcIW6E.js → StepDocUpload-B8UhnURU.js} +6 -6
  157. package/chunk/{StepDocUpload-CbFcIW6E.js.map → StepDocUpload-B8UhnURU.js.map} +1 -1
  158. package/chunk/{StepDocUpload-DMrtZeQ2.js → StepDocUpload-BUA9g9FU.js} +6 -6
  159. package/chunk/{StepDocUpload-DMrtZeQ2.js.map → StepDocUpload-BUA9g9FU.js.map} +1 -1
  160. package/chunk/{StepDriverLicensePersonalInfoComponent-BVTSfV1S.js → StepDriverLicensePersonalInfoComponent-QHUPNwTm.js} +12 -12
  161. package/chunk/{StepDriverLicensePersonalInfoComponent-BVTSfV1S.js.map → StepDriverLicensePersonalInfoComponent-QHUPNwTm.js.map} +1 -1
  162. package/chunk/{StepDriverLicensePersonalInfoComponent-CnsoAa9M.js → StepDriverLicensePersonalInfoComponent-xbgdkdJ9.js} +12 -12
  163. package/chunk/{StepDriverLicensePersonalInfoComponent-CnsoAa9M.js.map → StepDriverLicensePersonalInfoComponent-xbgdkdJ9.js.map} +1 -1
  164. package/chunk/{StepEmailLoop-CpAdAbQ9.js → StepEmailLoop-CYEaZvkL.js} +6 -6
  165. package/chunk/{StepEmailLoop-aZKKhy9x.js.map → StepEmailLoop-CYEaZvkL.js.map} +1 -1
  166. package/chunk/{StepEmailLoop-aZKKhy9x.js → StepEmailLoop-DBvLdmaS.js} +6 -6
  167. package/chunk/{StepEmailLoop-CpAdAbQ9.js.map → StepEmailLoop-DBvLdmaS.js.map} +1 -1
  168. package/chunk/{StepEmploymentPersonalInfo-CqikMxA6.js → StepEmploymentPersonalInfo-CHxuA3-F.js} +16 -16
  169. package/chunk/{StepEmploymentPersonalInfo-CJblDaZf.js.map → StepEmploymentPersonalInfo-CHxuA3-F.js.map} +1 -1
  170. package/chunk/{StepEmploymentPersonalInfo-CJblDaZf.js → StepEmploymentPersonalInfo-DBPw56cH.js} +16 -16
  171. package/chunk/{StepEmploymentPersonalInfo-CqikMxA6.js.map → StepEmploymentPersonalInfo-DBPw56cH.js.map} +1 -1
  172. package/chunk/{StepFirstResponderPersonalInfo-RmY3B7uh.js → StepFirstResponderPersonalInfo-CXAzena6.js} +16 -16
  173. package/chunk/{StepFirstResponderPersonalInfo-NpTQKoIE.js.map → StepFirstResponderPersonalInfo-CXAzena6.js.map} +1 -1
  174. package/chunk/{StepFirstResponderPersonalInfo-NpTQKoIE.js → StepFirstResponderPersonalInfo-CgdMFdXw.js} +16 -16
  175. package/chunk/{StepFirstResponderPersonalInfo-RmY3B7uh.js.map → StepFirstResponderPersonalInfo-CgdMFdXw.js.map} +1 -1
  176. package/chunk/{StepGeneralIdentityPersonalInfoComponent-CHXFIp7C.js → StepGeneralIdentityPersonalInfoComponent-BmQhE_2E.js} +15 -15
  177. package/chunk/{StepGeneralIdentityPersonalInfoComponent-CHXFIp7C.js.map → StepGeneralIdentityPersonalInfoComponent-BmQhE_2E.js.map} +1 -1
  178. package/chunk/{StepGeneralIdentityPersonalInfoComponent-Fw2EkdOF.js → StepGeneralIdentityPersonalInfoComponent-OPtG-bjj.js} +15 -15
  179. package/chunk/{StepGeneralIdentityPersonalInfoComponent-Fw2EkdOF.js.map → StepGeneralIdentityPersonalInfoComponent-OPtG-bjj.js.map} +1 -1
  180. package/chunk/{StepHybridIdentityPersonalInfoComponent-DoQRyBPX.js → StepHybridIdentityPersonalInfoComponent-B-lMMGHk.js} +16 -16
  181. package/chunk/{StepHybridIdentityPersonalInfoComponent-BmLwaZSk.js.map → StepHybridIdentityPersonalInfoComponent-B-lMMGHk.js.map} +1 -1
  182. package/chunk/{StepHybridIdentityPersonalInfoComponent-BmLwaZSk.js → StepHybridIdentityPersonalInfoComponent-C3dF2yNR.js} +16 -16
  183. package/chunk/{StepHybridIdentityPersonalInfoComponent-DoQRyBPX.js.map → StepHybridIdentityPersonalInfoComponent-C3dF2yNR.js.map} +1 -1
  184. package/chunk/{StepIDCheckLoop-7SOXbcbW.js → StepIDCheckLoop-BgH_F8HE.js} +5 -5
  185. package/chunk/{StepIDCheckLoop-DCiml5g_.js.map → StepIDCheckLoop-BgH_F8HE.js.map} +1 -1
  186. package/chunk/{StepIDCheckLoop-DCiml5g_.js → StepIDCheckLoop-CO3AmYRx.js} +5 -5
  187. package/chunk/{StepIDCheckLoop-7SOXbcbW.js.map → StepIDCheckLoop-CO3AmYRx.js.map} +1 -1
  188. package/chunk/{StepIDCheckLoopOnfido-BxnIWW-Z.js → StepIDCheckLoopOnfido-BA0RF4kB.js} +7 -7
  189. package/chunk/{StepIDCheckLoopOnfido-BxnIWW-Z.js.map → StepIDCheckLoopOnfido-BA0RF4kB.js.map} +1 -1
  190. package/chunk/{StepIDCheckLoopOnfido-CWWXFEzE.js → StepIDCheckLoopOnfido-BB6qeJxs.js} +7 -7
  191. package/chunk/{StepIDCheckLoopOnfido-CWWXFEzE.js.map → StepIDCheckLoopOnfido-BB6qeJxs.js.map} +1 -1
  192. package/chunk/{StepIDCheckLoopRegula-DVwFHArH.js → StepIDCheckLoopRegula-CP4kyaPE.js} +6 -6
  193. package/chunk/{StepIDCheckLoopRegula-DVwFHArH.js.map → StepIDCheckLoopRegula-CP4kyaPE.js.map} +1 -1
  194. package/chunk/{StepIDCheckLoopRegula-zXblhjpD.js → StepIDCheckLoopRegula-gCWjFZ1c.js} +6 -6
  195. package/chunk/{StepIDCheckLoopRegula-zXblhjpD.js.map → StepIDCheckLoopRegula-gCWjFZ1c.js.map} +1 -1
  196. package/chunk/{StepLicensedProfessionalPersonalInfo-CITUr89H.js → StepLicensedProfessionalPersonalInfo-CtiRAu5Q.js} +16 -16
  197. package/chunk/{StepLicensedProfessionalPersonalInfo-CITUr89H.js.map → StepLicensedProfessionalPersonalInfo-CtiRAu5Q.js.map} +1 -1
  198. package/chunk/{StepLicensedProfessionalPersonalInfo-Cr9_hRRC.js → StepLicensedProfessionalPersonalInfo-D5w28Ml7.js} +16 -16
  199. package/chunk/{StepLicensedProfessionalPersonalInfo-Cr9_hRRC.js.map → StepLicensedProfessionalPersonalInfo-D5w28Ml7.js.map} +1 -1
  200. package/chunk/{StepLowIncomePersonalInfo-swAOi1LD.js → StepLowIncomePersonalInfo-B_ICi1vE.js} +18 -18
  201. package/chunk/{StepLowIncomePersonalInfo-DrqW_Vf0.js.map → StepLowIncomePersonalInfo-B_ICi1vE.js.map} +1 -1
  202. package/chunk/{StepLowIncomePersonalInfo-DrqW_Vf0.js → StepLowIncomePersonalInfo-CxLlkaQI.js} +18 -18
  203. package/chunk/{StepLowIncomePersonalInfo-swAOi1LD.js.map → StepLowIncomePersonalInfo-CxLlkaQI.js.map} +1 -1
  204. package/chunk/{StepMedicalProfessionalPersonalInfo-B28vTgNn.js → StepMedicalProfessionalPersonalInfo-DI80bZwP.js} +17 -17
  205. package/chunk/{StepMedicalProfessionalPersonalInfo-B28vTgNn.js.map → StepMedicalProfessionalPersonalInfo-DI80bZwP.js.map} +1 -1
  206. package/chunk/{StepMedicalProfessionalPersonalInfo-Bd8iTMrj.js → StepMedicalProfessionalPersonalInfo-DyruYiy2.js} +17 -17
  207. package/chunk/{StepMedicalProfessionalPersonalInfo-Bd8iTMrj.js.map → StepMedicalProfessionalPersonalInfo-DyruYiy2.js.map} +1 -1
  208. package/chunk/{StepMemberPersonalInfo-CjQyv4AI.js → StepMemberPersonalInfo-6gRdCmdv.js} +14 -14
  209. package/chunk/{StepMemberPersonalInfo-CJ9-axCF.js.map → StepMemberPersonalInfo-6gRdCmdv.js.map} +1 -1
  210. package/chunk/{StepMemberPersonalInfo-CJ9-axCF.js → StepMemberPersonalInfo-D4RikSDS.js} +14 -14
  211. package/chunk/{StepMemberPersonalInfo-CjQyv4AI.js.map → StepMemberPersonalInfo-D4RikSDS.js.map} +1 -1
  212. package/chunk/{StepMoverPersonalInfo-Cg9vtqPw.js → StepMoverPersonalInfo-C_lyCZpB.js} +12 -12
  213. package/chunk/{StepMoverPersonalInfo-8HAYnhL2.js.map → StepMoverPersonalInfo-C_lyCZpB.js.map} +1 -1
  214. package/chunk/{StepMoverPersonalInfo-8HAYnhL2.js → StepMoverPersonalInfo-DmXIiQlP.js} +12 -12
  215. package/chunk/{StepMoverPersonalInfo-Cg9vtqPw.js.map → StepMoverPersonalInfo-DmXIiQlP.js.map} +1 -1
  216. package/chunk/{StepOverrideComponent-B4szR2Lw.js → StepOverrideComponent-Cp4RzSKA.js} +6 -6
  217. package/chunk/{StepOverrideComponent-B4szR2Lw.js.map → StepOverrideComponent-Cp4RzSKA.js.map} +1 -1
  218. package/chunk/{StepOverrideComponent-W1fVPjUP.js → StepOverrideComponent-D5izbAc2.js} +6 -6
  219. package/chunk/{StepOverrideComponent-W1fVPjUP.js.map → StepOverrideComponent-D5izbAc2.js.map} +1 -1
  220. package/chunk/{StepSMSLoop-CHMf7nfe.js → StepSMSLoop-B5BkTp8F.js} +5 -5
  221. package/chunk/{StepSMSLoop-CHMf7nfe.js.map → StepSMSLoop-B5BkTp8F.js.map} +1 -1
  222. package/chunk/{StepSMSLoop-D6aE63wz.js → StepSMSLoop-CKMnnm4p.js} +5 -5
  223. package/chunk/{StepSMSLoop-D6aE63wz.js.map → StepSMSLoop-CKMnnm4p.js.map} +1 -1
  224. package/chunk/StepSSO-BGHCbduX.js +4 -4
  225. package/chunk/StepSSO-ZHByQpHa.js +4 -4
  226. package/chunk/{StepSocialSecurityNumber-e_QuTG1Q.js → StepSocialSecurityNumber-CGXxgJoR.js} +7 -7
  227. package/chunk/{StepSocialSecurityNumber-BqckctYQ.js.map → StepSocialSecurityNumber-CGXxgJoR.js.map} +1 -1
  228. package/chunk/{StepSocialSecurityNumber-BqckctYQ.js → StepSocialSecurityNumber-CW4kSRvC.js} +7 -7
  229. package/chunk/{StepSocialSecurityNumber-e_QuTG1Q.js.map → StepSocialSecurityNumber-CW4kSRvC.js.map} +1 -1
  230. package/chunk/{StepStudentPersonalInfo-DhpO-7Ji.js → StepStudentPersonalInfo-Cw1sTkMu.js} +15 -15
  231. package/chunk/{StepStudentPersonalInfo-DhpO-7Ji.js.map → StepStudentPersonalInfo-Cw1sTkMu.js.map} +1 -1
  232. package/chunk/{StepStudentPersonalInfo-r3d7JSRc.js → StepStudentPersonalInfo-DCa9wle2.js} +15 -15
  233. package/chunk/{StepStudentPersonalInfo-r3d7JSRc.js.map → StepStudentPersonalInfo-DCa9wle2.js.map} +1 -1
  234. package/chunk/{StepSuccess-BnJiYKNX.js → StepSuccess-BxjVpHbu.js} +5 -5
  235. package/chunk/{StepSuccess-BCaAr2_d.js.map → StepSuccess-BxjVpHbu.js.map} +1 -1
  236. package/chunk/{StepSuccess-BCaAr2_d.js → StepSuccess-DBgN-lHs.js} +5 -5
  237. package/chunk/{StepSuccess-BnJiYKNX.js.map → StepSuccess-DBgN-lHs.js.map} +1 -1
  238. package/chunk/{StepTeacherPersonalInfo-BtV7lpDW.js → StepTeacherPersonalInfo-BUuP8L15.js} +15 -15
  239. package/chunk/{StepTeacherPersonalInfo-BtV7lpDW.js.map → StepTeacherPersonalInfo-BUuP8L15.js.map} +1 -1
  240. package/chunk/{StepTeacherPersonalInfo-CGP2tq1G.js → StepTeacherPersonalInfo-CHdZA3pG.js} +15 -15
  241. package/chunk/{StepTeacherPersonalInfo-CGP2tq1G.js.map → StepTeacherPersonalInfo-CHdZA3pG.js.map} +1 -1
  242. package/chunk/StepThirdPartyLoop-BrKuZcYb.js +4 -4
  243. package/chunk/StepThirdPartyLoop-CbFTIlwP.js +4 -4
  244. package/chunk/TeacherSchoolComponent-DI51ulSO.js +42 -0
  245. package/chunk/TeacherSchoolComponent-DI51ulSO.js.map +1 -0
  246. package/chunk/TeacherSchoolComponent-DdqM9CAG.js +46 -0
  247. package/chunk/TeacherSchoolComponent-DdqM9CAG.js.map +1 -0
  248. package/chunk/TestingRouteOverrides-D4n0RZk2.js +4 -4
  249. package/chunk/TestingRouteOverrides-uUJqRbL9.js +4 -4
  250. package/chunk/ThreatMetrix-D_TbL50B.js +4 -4
  251. package/chunk/ar-D5CO913q.js +4 -4
  252. package/chunk/bg-1mhA5kYF.js +4 -4
  253. package/chunk/bn-IN-CpDqyRb_.js +4 -4
  254. package/chunk/clsx-CB5rauS5.js +27 -0
  255. package/chunk/clsx-CB5rauS5.js.map +1 -0
  256. package/chunk/countryUtils-D0YJQD1a.js +4 -4
  257. package/chunk/countryUtils-_E2yHebn.js +4 -4
  258. package/chunk/cs-Chh7FAGt.js +4 -4
  259. package/chunk/da-DwrVoxto.js +4 -4
  260. package/chunk/de-IWGZLhgY.js +4 -4
  261. package/chunk/{downshift.esm-CGWEmbW4.js → downshift.esm--vh-uk_K.js} +5 -5
  262. package/chunk/{downshift.esm-CGWEmbW4.js.map → downshift.esm--vh-uk_K.js.map} +1 -1
  263. package/chunk/{downshift.esm-BX3GQX6Q.js → downshift.esm-ykrV7LvO.js} +5 -5
  264. package/chunk/{downshift.esm-BX3GQX6Q.js.map → downshift.esm-ykrV7LvO.js.map} +1 -1
  265. package/chunk/el-DbDcvSPJ.js +4 -4
  266. package/chunk/empties-BOZDJKb1.js +4 -4
  267. package/chunk/empties-zYUS2tEa.js +4 -4
  268. package/chunk/en-GB-BBkjjtqq.js +4 -4
  269. package/chunk/es-ES-DWimqEZ_.js +4 -4
  270. package/chunk/es-qhC-seq5.js +4 -4
  271. package/chunk/et-yF9G-Mym.js +4 -4
  272. package/chunk/eventEmitter-CSG6jR7V.js +4 -4
  273. package/chunk/fa-BcdSf7og.js +4 -4
  274. package/chunk/fi-D-IP_KHm.js +4 -4
  275. package/chunk/fr-BmUuYxk0.js +4 -4
  276. package/chunk/fr-CA-DVQ4xmzZ.js +4 -4
  277. package/chunk/ga-DuZycND3.js +4 -4
  278. package/chunk/hi-IN-l6Rn5Ewm.js +4 -4
  279. package/chunk/hooks-DPmC5aMQ.js +4 -4
  280. package/chunk/hooks-DPmC5aMQ.js.map +1 -1
  281. package/chunk/hooks-DY9jekmV.js +4 -4
  282. package/chunk/hooks-DY9jekmV.js.map +1 -1
  283. package/chunk/hr-BtqyDzDB.js +4 -4
  284. package/chunk/hu-C6syKJfb.js +4 -4
  285. package/chunk/id-GgI-Z2a5.js +4 -4
  286. package/chunk/intl-DwZU2l1o.js +4 -4
  287. package/chunk/is-CvmKEON9.js +4 -4
  288. package/chunk/it-CnmveGgC.js +4 -4
  289. package/chunk/iw-DFUYHkxF.js +4 -4
  290. package/chunk/ja-CjVb2tWW.js +4 -4
  291. package/chunk/jsx-runtime-DmTh-fvV.js +4 -4
  292. package/chunk/jsx-runtime-n0jD1uEy.js +4 -4
  293. package/chunk/kk-Dvz4nK6K.js +4 -4
  294. package/chunk/ko-DzOqBMGC.js +4 -4
  295. package/chunk/lo-C2WPq55d.js +4 -4
  296. package/chunk/lt-BSDYvjTF.js +4 -4
  297. package/chunk/lv-CefDPT-M.js +4 -4
  298. package/chunk/mocks-C69Rqq8D.js +4 -4
  299. package/chunk/mocks-CvUvRHV_.js +4 -4
  300. package/chunk/ms-BjestZxy.js +4 -4
  301. package/chunk/nl-B1FyUfCT.js +4 -4
  302. package/chunk/nl-BE-CbeAd3nq.js +4 -4
  303. package/chunk/no-Dr633Ddi.js +4 -4
  304. package/chunk/options-kkjACM14.js +4 -4
  305. package/chunk/pl-UYTjMIq_.js +4 -4
  306. package/chunk/programThemeGetters-CZMLVLDB.js +4 -4
  307. package/chunk/programThemeGetters-rty9XxxN.js +4 -4
  308. package/chunk/pt-BR-C8SYMT-J.js +4 -4
  309. package/chunk/pt-uH-M3GdN.js +4 -4
  310. package/chunk/refs-D3MifwJO.js +4 -4
  311. package/chunk/refs-DC2-V94e.js +4 -4
  312. package/chunk/ro-CAOSXZ7h.js +4 -4
  313. package/chunk/ru-iwYoEydL.js +4 -4
  314. package/chunk/sk-DYYNV3zw.js +4 -4
  315. package/chunk/sl-D_-eeM5N.js +4 -4
  316. package/chunk/sr-BTi9_anL.js +4 -4
  317. package/chunk/stepComponentHelpers-BhSQbOUm.js +4 -4
  318. package/chunk/stepComponentHelpers-DN6dYb4A.js +4 -4
  319. package/chunk/strings-DWLVdUcm.js +4 -4
  320. package/chunk/sv-DRwY4shG.js +4 -4
  321. package/chunk/sw-Bvj2mYmM.js +4 -4
  322. package/chunk/ta-CmtaYoNe.js +4 -4
  323. package/chunk/th-12r2yKkJ.js +4 -4
  324. package/chunk/tl-BGNfO7md.js +4 -4
  325. package/chunk/tr-DH2ZSJhs.js +4 -4
  326. package/chunk/uk-CELBZlTd.js +4 -4
  327. package/chunk/ur-MR8DTbmd.js +4 -4
  328. package/chunk/{useCollectFieldsEndpoint-BvietL7q.js → useCollectFieldsEndpoint-CN2icks6.js} +6 -6
  329. package/chunk/{useCollectFieldsEndpoint-BvietL7q.js.map → useCollectFieldsEndpoint-CN2icks6.js.map} +1 -1
  330. package/chunk/{useCollectFieldsEndpoint-DIGdzl-9.js → useCollectFieldsEndpoint-CkXsQoYj.js} +6 -6
  331. package/chunk/{useCollectFieldsEndpoint-DIGdzl-9.js.map → useCollectFieldsEndpoint-CkXsQoYj.js.map} +1 -1
  332. package/chunk/useMetrics-Bd0EhnNL.js +4 -4
  333. package/chunk/useMetrics-h8PVjepD.js +4 -4
  334. package/chunk/vi-DtZ-SqD5.js +4 -4
  335. package/chunk/zh-DjyVyYac.js +4 -4
  336. package/chunk/zh-HK-CN1HarHq.js +4 -4
  337. package/chunk/zu-DPhgIh1z.js +4 -4
  338. package/package.json +1 -1
  339. package/sheerid-install.css +4 -4
  340. package/sheerid-install.js +4 -4
  341. package/sheerid.css +4 -4
  342. package/sheerid.js +36 -36
  343. package/chunk/ChangeLocaleComponent-C7qA4aQm.js.map +0 -1
  344. package/chunk/ChangeLocaleComponent-vn8OTAQI.js.map +0 -1
  345. package/chunk/CollegeNameComponent--UPE599s.js +0 -41
  346. package/chunk/CollegeNameComponent--UPE599s.js.map +0 -1
  347. package/chunk/CollegeNameComponent-DmVSMsb9.js +0 -45
  348. package/chunk/CollegeNameComponent-DmVSMsb9.js.map +0 -1
  349. package/chunk/FormSelectChoice-D30xoQCr.js.map +0 -1
  350. package/chunk/FormSelectChoice-tJYHTT-k.js.map +0 -1
  351. package/chunk/StatusComponent-BxEwHBZr.js +0 -47
  352. package/chunk/StatusComponent-BxEwHBZr.js.map +0 -1
  353. package/chunk/StatusComponent-DUhj21lS.js +0 -43
  354. package/chunk/StatusComponent-DUhj21lS.js.map +0 -1
  355. package/chunk/TeacherSchoolComponent-BH8P75Dt.js +0 -41
  356. package/chunk/TeacherSchoolComponent-BH8P75Dt.js.map +0 -1
  357. package/chunk/TeacherSchoolComponent-BNQWnWvx.js +0 -45
  358. package/chunk/TeacherSchoolComponent-BNQWnWvx.js.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"StepCollectMilitaryPersonalInfoComponent-W0fQbfW7.js","names":[],"sources":["../../src/components/StepMilitaryPersonalInfo/militaryStepHelpers.ts","../../src/components/StepMilitaryPersonalInfo/StepCollectMilitaryPersonalInfoComponent.tsx"],"sourcesContent":["import produce from \"immer\";\n\nimport {\n type VerificationService,\n type FormSelectChoice,\n type MilitaryPersonalInfoViewModel,\n} from \"../../lib/types/types\";\n\nexport const updateMilitaryViewModel = (\n key: keyof MilitaryPersonalInfoViewModel,\n value: any,\n verificationService: VerificationService,\n availableStatuses: FormSelectChoice[],\n): MilitaryPersonalInfoViewModel => {\n const viewModel = verificationService.viewModel as MilitaryPersonalInfoViewModel;\n return produce(viewModel, (draft: MilitaryPersonalInfoViewModel) => {\n (draft[key] as any) = value;\n\n // Reset military-managed skip flags before reapplying.\n const militaryManagedFields = [\"status\"];\n draft.fieldsToSkipValidation = (draft.fieldsToSkipValidation || []).filter(\n (id) => !militaryManagedFields.includes(id),\n );\n\n if (!availableStatuses || availableStatuses.length === 0) {\n draft.fieldsToSkipValidation.push(\"status\");\n }\n\n if (key === \"status\") {\n draft.organization = { id: 0, name: \"\" };\n }\n });\n};\n","/* eslint-disable */\nimport React from \"react\";\nimport { FormattedHTMLMessage, injectIntl } from \"react-intl\";\n\nimport { type CollectInfoSteps, VerificationStepsEnum } from \"../../lib/types/runtimeTypes\";\nimport { hasFailedInstantMatch } from \"../../lib/VerificationService/VerificationServiceHelpers\";\nimport { resetRefs } from \"../../lib/refs/refs\";\nimport {\n VerificationService,\n FormSelectChoice,\n Organization,\n MilitaryPersonalInfoViewModel,\n ActiveMilitaryPersonalInfoResponse,\n InactiveMilitaryPersonalInfoResponse,\n MilitaryStatusResponse,\n CustomFormFieldConfig,\n FieldDescription,\n State,\n} from \"../../lib/types/types\";\nimport { useCollectFieldsEndpoint } from \"../../lib/ServerApi/useCollectFieldsEndpoint\";\nimport { isCountrySelectionNeeded } from \"../FormFields/Country/countryUtils\";\nimport {\n handleEmailOnKeyDown,\n updateFieldValidationErrorsByFieldId,\n updateViewModelOrganization,\n getStatusLabel,\n getStatusOptions,\n getAvailableStateChoices,\n getFieldConfigByFieldId,\n} from \"../../lib/utils/stepComponentHelpers/stepComponentHelpers\";\n\nimport { CountryComponentWrapper } from \"../FormFields/Country/CountryComponentWrapper\";\nimport { PhoneNumberComponent as PhoneNumber } from \"../FormFields/PhoneNumber/PhoneNumberComponent\";\nimport { FirstNameComponent as FirstName } from \"../FormFields/FirstName/FirstNameComponent\";\nimport { LastNameComponent as LastName } from \"../FormFields/LastName/LastNameComponent\";\nimport { EmailComponent as Email } from \"../FormFields/Email/EmailComponent\";\nimport { BirthDateComponent as BirthDate } from \"../FormFields/BirthDate/BirthDateComponent\";\nimport { StatusComponent as MilitaryStatusComponent } from \"../FormFields/Status/StatusComponent\";\nimport { BranchOfServiceComponent as BranchOfService } from \"../FormFields/BranchOfService/BranchOfServiceComponent\";\nimport { DischargeDateComponent as DischargeDate } from \"../FormFields/DischargeDate/DischargeDateComponent\";\nimport { MarketConsentWrapperComponent as MarketConsentWrapper } from \"../FormFields/MarketConsentWrapper/MarketConsentWrapperComponent\";\nimport { ActiveDutyStartDateComponent } from \"../FormFields/ActiveDutyStartDate/ActiveDutyStartDateComponent\";\nimport { AddressComponent } from \"../FormFields/Address/AddressComponent\";\nimport { CityComponent } from \"../FormFields/City/City\";\nimport { StateSelectComponent } from \"../FormFields/State/StateSelectComponent\";\nimport { PostalCodeComponent } from \"../FormFields/PostalCode/PostalCodeComponent\";\nimport { ChangeLocaleV2Component } from \"../FormFields/ChangeLocale/ChangeLocaleComponent\";\nimport { CaptchaComponent } from \"../FormFields/Captcha/CaptchaComponent\";\nimport { PersonalInfoWrapper } from \"../PersonalInfoStepWrapper/PersonalInfoStepWrapper\";\nimport { PersonalInfoStepSubmitButton } from \"../PersonalInfoStepSubmitButton/PersonalInfoStepSubmitButton\";\nimport { PersonalInfoHeader } from \"../FormHeader/StepHeaders/PersonalInfoHeaderComponent\";\nimport { FormFieldCustom } from \"../FormFields/FormFieldCustom/FormFieldCustom\";\nimport { ExtraMessage } from \"../ExtraMessage\";\nimport { getOptions } from \"../../options/options\";\n\nimport { updateMilitaryViewModel } from \"./militaryStepHelpers\";\n\ninterface Props {\n intl: any;\n verificationService: VerificationService;\n}\n\nexport const StepCollectMilitaryPersonalInfo = ({ intl, verificationService }: Props) => {\n const viewModel = verificationService.viewModel as MilitaryPersonalInfoViewModel;\n const { fieldValidationErrors } = verificationService;\n const verificationResponse = verificationService.verificationResponse as\n | ActiveMilitaryPersonalInfoResponse\n | InactiveMilitaryPersonalInfoResponse;\n const failedInstantMatch = hasFailedInstantMatch(verificationResponse);\n\n // Seed: show dischargeDate on first paint when the response indicates an\n // inactive flow, or when the program's transitional validity window applies.\n // The /fields response replaces this once it resolves.\n const showDischargeDateInitially =\n verificationResponse.currentStep ===\n VerificationStepsEnum.collectInactiveMilitaryPersonalInfo ||\n !!verificationService.programTheme.transitionalMilitaryValidityDays;\n const initialRequiredFields: FieldDescription[] = showDischargeDateInitially\n ? [{ key: \"dischargeDate\" }]\n : [];\n\n const {\n availableStatuses: dynamicStatuses,\n isFieldRequired,\n isFieldOptional,\n } = useCollectFieldsEndpoint({\n verificationId: verificationResponse.verificationId,\n currentStep: VerificationStepsEnum.collectMilitaryPersonalInfo,\n viewModel,\n defaultRequiredFields: initialRequiredFields,\n });\n\n const countryChoiceValue = viewModel.countryChoice?.value;\n const needToPickCountry = isCountrySelectionNeeded(\n verificationService.programTheme,\n countryChoiceValue,\n );\n\n const statusOptions = getStatusOptions(\n intl,\n dynamicStatuses ??\n (verificationResponse as unknown as MilitaryStatusResponse).availableStatuses ??\n (verificationService.previousVerificationResponse as MilitaryStatusResponse)\n ?.availableStatuses,\n );\n\n const locale = viewModel.localeChoice.value;\n const options = getOptions();\n\n const showDischargeDate = isFieldRequired(\"dischargeDate\") || isFieldOptional(\"dischargeDate\");\n\n const updateMilitary = (key: keyof MilitaryPersonalInfoViewModel, value: any) => {\n verificationService.updateViewModel(\n updateMilitaryViewModel(key, value, verificationService, statusOptions),\n );\n };\n\n resetRefs();\n\n return (\n <PersonalInfoWrapper\n verificationService={verificationService}\n step={verificationResponse.currentStep}\n className=\"sid-military-personal-info-container\"\n >\n <PersonalInfoHeader\n verificationService={verificationService}\n classNameIdentifier=\"active-military-personal-info\"\n />\n <>\n <ChangeLocaleV2Component verificationService={verificationService} />\n <CountryComponentWrapper\n verificationService={verificationService}\n disabled={getFieldConfigByFieldId(\"country\")?.disabled}\n />\n {statusOptions.length > 0 ? (\n <MilitaryStatusComponent\n segmentId=\"military\"\n value={{\n value: viewModel.status,\n label: getStatusLabel(intl, viewModel.status),\n }}\n isErrored={!!fieldValidationErrors.status}\n errorId=\"invalidMilitaryStatus\"\n options={statusOptions}\n disabled={needToPickCountry || getFieldConfigByFieldId(\"status\")?.disabled}\n explanation={\n needToPickCountry ? (\n <FormattedHTMLMessage id=\"chooseCountry\" defaultMessage=\"Choose a country first\" />\n ) : undefined\n }\n onChange={(status: FormSelectChoice) => {\n updateMilitary(\"status\", status ? (status.value as string) : \"\");\n updateFieldValidationErrorsByFieldId(\n \"status\",\n status ? (status.value as string) : \"\",\n verificationService,\n );\n }}\n />\n ) : null}\n <BranchOfService\n isErrored={!!fieldValidationErrors.organization}\n onChange={(choice: Organization) => {\n updateViewModelOrganization(choice, verificationService);\n updateFieldValidationErrorsByFieldId(\"organization\", choice, verificationService);\n }}\n value={{\n value: viewModel.organization.id,\n label: viewModel.organization.name,\n }}\n verificationService={verificationService}\n disabled={getFieldConfigByFieldId(\"organization\")?.disabled}\n />\n\n <div className=\"sid-names\">\n <FirstName\n value={viewModel.firstName}\n isErrored={!!fieldValidationErrors.firstName}\n disabled={getFieldConfigByFieldId(\"firstName\")?.disabled}\n onChange={(newValue) => {\n updateMilitary(\"firstName\", newValue);\n updateFieldValidationErrorsByFieldId(\"firstName\", newValue, verificationService);\n }}\n />\n <LastName\n value={viewModel.lastName}\n isErrored={!!fieldValidationErrors.lastName}\n disabled={getFieldConfigByFieldId(\"lastName\")?.disabled}\n onChange={(newValue) => {\n updateMilitary(\"lastName\", newValue);\n updateFieldValidationErrorsByFieldId(\"lastName\", newValue, verificationService);\n }}\n />\n </div>\n\n <BirthDate\n errorId={fieldValidationErrors.birthDate}\n locale={locale}\n onChange={(newValue) => {\n updateMilitary(\"birthDate\", newValue);\n updateFieldValidationErrorsByFieldId(\"birthDate\", newValue, verificationService);\n }}\n value={viewModel.birthDate}\n disabled={getFieldConfigByFieldId(\"birthDate\")?.disabled}\n />\n\n {showDischargeDate && (\n <DischargeDate\n mode={\n !!verificationService.programTheme.transitionalMilitaryValidityDays ? \"date\" : \"month\"\n }\n errorId={fieldValidationErrors.dischargeDate}\n onChange={(newValue) => {\n updateMilitary(\"dischargeDate\", newValue);\n updateFieldValidationErrorsByFieldId(\"dischargeDate\", newValue, verificationService);\n }}\n value={viewModel.dischargeDate}\n locale={locale}\n disabled={getFieldConfigByFieldId(\"dischargeDate\")?.disabled}\n isRequired={isFieldRequired(\"dischargeDate\")}\n />\n )}\n\n {verificationService.programTheme.strictMilitaryValidationEnabled && (\n <ActiveDutyStartDateComponent\n errorId={fieldValidationErrors.activeDutyStartDate}\n locale={locale}\n onChange={(newValue) => {\n updateMilitary(\"activeDutyStartDate\", newValue);\n updateFieldValidationErrorsByFieldId(\n \"activeDutyStartDate\",\n newValue,\n verificationService,\n );\n }}\n value={viewModel.activeDutyStartDate}\n disabled={getFieldConfigByFieldId(\"activeDutyStartDate\")?.disabled}\n isRequired={getFieldConfigByFieldId(\"activeDutyStartDate\")?.requireIfOptional}\n />\n )}\n\n <Email\n value={viewModel.email}\n isErrored={!!fieldValidationErrors.email}\n explanation={\n <FormattedHTMLMessage\n id=\"emailExplanation\"\n defaultMessage=\"Personal email address is recommended\"\n />\n }\n onChange={(newValue) => {\n updateMilitary(\"email\", newValue);\n updateFieldValidationErrorsByFieldId(\"email\", newValue, verificationService);\n }}\n onKeyDown={(event) => handleEmailOnKeyDown(event)}\n disabled={getFieldConfigByFieldId(\"email\")?.disabled}\n />\n\n {verificationService.programTheme.isSmsNotifierConfigured ||\n verificationService.programTheme.smsLoopEnabled ? (\n <PhoneNumber\n isRequired={!!verificationService.programTheme.smsLoopEnabled}\n value={viewModel.phoneNumber}\n isErrored={!!fieldValidationErrors.phoneNumber}\n onChange={(newValue) => {\n updateMilitary(\"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 {isFieldOptional(\"address1\") && (\n <AddressComponent\n value={viewModel.address1}\n isErrored={!!fieldValidationErrors.address1}\n errorId={fieldValidationErrors.address1}\n disabled={getFieldConfigByFieldId(\"address1\")?.disabled}\n onChange={(value) => {\n updateMilitary(\"address1\", value);\n updateFieldValidationErrorsByFieldId(\"address1\", value, verificationService);\n }}\n isRequired={getFieldConfigByFieldId(\"address1\")?.requireIfOptional}\n />\n )}\n {isFieldOptional(\"city\") && (\n <CityComponent\n value={viewModel.city}\n isErrored={!!fieldValidationErrors.city}\n errorId={fieldValidationErrors.city}\n disabled={getFieldConfigByFieldId(\"city\")?.disabled}\n onChange={(value) => {\n updateMilitary(\"city\", value);\n updateFieldValidationErrorsByFieldId(\"city\", value, verificationService);\n }}\n isRequired={getFieldConfigByFieldId(\"city\")?.requireIfOptional}\n />\n )}\n {isFieldOptional(\"state\") && (\n <StateSelectComponent\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 updateMilitary(\"state\", stateValue);\n updateFieldValidationErrorsByFieldId(\"state\", stateValue, verificationService);\n }}\n label={<FormattedHTMLMessage id=\"state\" defaultMessage=\"State\" />}\n disabled={getFieldConfigByFieldId(\"state\")?.disabled}\n isRequired={getFieldConfigByFieldId(\"state\")?.requireIfOptional}\n />\n )}\n {isFieldOptional(\"postalCode\") && (\n <PostalCodeComponent\n required={getFieldConfigByFieldId(\"postalCode\")?.requireIfOptional}\n isErrored={!!fieldValidationErrors.postalCode}\n onChange={(newValue) => {\n updateMilitary(\"postalCode\", newValue);\n updateFieldValidationErrorsByFieldId(\"postalCode\", newValue, verificationService);\n }}\n value={viewModel.postalCode}\n disabled={getFieldConfigByFieldId(\"postalCode\")?.disabled}\n />\n )}\n\n {options.customFormFields.map((config: CustomFormFieldConfig) => (\n <FormFieldCustom config={config} verificationService={verificationService} />\n ))}\n\n <MarketConsentWrapper\n verificationService={verificationService}\n isErrored={!!fieldValidationErrors.marketConsentValue}\n onChange={(newValue) => {\n updateMilitary(\"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={verificationResponse.currentStep as CollectInfoSteps}\n verificationService={verificationService}\n viewModel={viewModel}\n failedInstantMatch={failedInstantMatch}\n buttonText={\n <FormattedHTMLMessage\n id=\"step.personalInfo.submitButtonText\"\n defaultMessage=\"Verify My Military Status\"\n />\n }\n />\n </>\n </PersonalInfoWrapper>\n );\n};\n\nexport const StepCollectMilitaryPersonalInfoComponent = injectIntl(StepCollectMilitaryPersonalInfo);\nexport default StepCollectMilitaryPersonalInfoComponent;\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAQA,IAAA,KAAA,GAAA,GAAA,GAAA,MAAA;;;;;;;;;;AAwBA,YC8Ba,KAAmC,EAAE,SAAM,6BAAiC;CACvF,IAAM,IAAY,EAAoB,WAChC,EAAE,6BAA0B,GAC5B,IAAuB,EAAoB,sBAG3C,IAAqB,EAAsB,CAAoB,GAS/D,IAHJ,EAAqB,gBACnB,EAAsB,uCACtB,EAAoB,aAAa,mCAEjC,CAAC,EAAE,KAAK,gBAAgB,CAAC,IACzB,CA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,WAAW,MAAa;KAKtB,AAJA,EAAe,YAAY;MACzB,GAAG,EAAoB,UAAU;MACjC,oBAAoB;KACtB,CAAC,GACD,EACE,sBACA,GACA,CACF;IACF;IACW;IACX,UAAU,EAAwB,oBAAoB,GAAG;GAC1D,CAAA;GAED,iBAAA,GAAA,EAAA,KAAC,GAAD;IAAmC;IAAqB,QAAO;GAAsB,CAAA;GAErF,iBAAA,GAAA,EAAA,KAAC,GAAD;IACuB;IACrB,WAAW,CAAC,CAAC,EAAsB;GACpC,CAAA;GAED,iBAAA,GAAA,EAAA,KAAC,GAAD;IACE,MAAM,EAAqB;IACN;IACV;IACS;IACpB,YACE,iBAAA,GAAA,EAAA,KAAC,GAAD;KACE,IAAG;KACH,gBAAe;IAChB,CAAA;GAEJ,CAAA;EACD,EAAA,CAAA,CACiB;;AAEzB,GAEa,IAA2C,EAAW,CAA+B"}
1
+ {"version":3,"file":"StepCollectMilitaryPersonalInfoComponent-DFcB0eRp.js","names":[],"sources":["../../src/components/StepMilitaryPersonalInfo/militaryStepHelpers.ts","../../src/components/StepMilitaryPersonalInfo/StepCollectMilitaryPersonalInfoComponent.tsx"],"sourcesContent":["import produce from \"immer\";\n\nimport {\n type VerificationService,\n type FormSelectChoice,\n type MilitaryPersonalInfoViewModel,\n} from \"../../lib/types/types\";\n\nexport const updateMilitaryViewModel = (\n key: keyof MilitaryPersonalInfoViewModel,\n value: any,\n verificationService: VerificationService,\n availableStatuses: FormSelectChoice[],\n): MilitaryPersonalInfoViewModel => {\n const viewModel = verificationService.viewModel as MilitaryPersonalInfoViewModel;\n return produce(viewModel, (draft: MilitaryPersonalInfoViewModel) => {\n (draft[key] as any) = value;\n\n // Reset military-managed skip flags before reapplying.\n const militaryManagedFields = [\"status\"];\n draft.fieldsToSkipValidation = (draft.fieldsToSkipValidation || []).filter(\n (id) => !militaryManagedFields.includes(id),\n );\n\n if (!availableStatuses || availableStatuses.length === 0) {\n draft.fieldsToSkipValidation.push(\"status\");\n }\n\n if (key === \"status\") {\n draft.organization = { id: 0, name: \"\" };\n }\n });\n};\n","/* eslint-disable */\nimport React from \"react\";\nimport { FormattedHTMLMessage, injectIntl } from \"react-intl\";\n\nimport { type CollectInfoSteps, VerificationStepsEnum } from \"../../lib/types/runtimeTypes\";\nimport { hasFailedInstantMatch } from \"../../lib/VerificationService/VerificationServiceHelpers\";\nimport { resetRefs } from \"../../lib/refs/refs\";\nimport {\n VerificationService,\n FormSelectChoice,\n Organization,\n MilitaryPersonalInfoViewModel,\n ActiveMilitaryPersonalInfoResponse,\n InactiveMilitaryPersonalInfoResponse,\n MilitaryStatusResponse,\n CustomFormFieldConfig,\n FieldDescription,\n State,\n} from \"../../lib/types/types\";\nimport { useCollectFieldsEndpoint } from \"../../lib/ServerApi/useCollectFieldsEndpoint\";\nimport { isCountrySelectionNeeded } from \"../FormFields/Country/countryUtils\";\nimport {\n handleEmailOnKeyDown,\n updateFieldValidationErrorsByFieldId,\n updateViewModelOrganization,\n getStatusLabel,\n getStatusOptions,\n getAvailableStateChoices,\n getFieldConfigByFieldId,\n} from \"../../lib/utils/stepComponentHelpers/stepComponentHelpers\";\n\nimport { CountryComponentWrapper } from \"../FormFields/Country/CountryComponentWrapper\";\nimport { PhoneNumberComponent as PhoneNumber } from \"../FormFields/PhoneNumber/PhoneNumberComponent\";\nimport { FirstNameComponent as FirstName } from \"../FormFields/FirstName/FirstNameComponent\";\nimport { LastNameComponent as LastName } from \"../FormFields/LastName/LastNameComponent\";\nimport { EmailComponent as Email } from \"../FormFields/Email/EmailComponent\";\nimport { BirthDateComponent as BirthDate } from \"../FormFields/BirthDate/BirthDateComponent\";\nimport { StatusComponent as MilitaryStatusComponent } from \"../FormFields/Status/StatusComponent\";\nimport { BranchOfServiceComponent as BranchOfService } from \"../FormFields/BranchOfService/BranchOfServiceComponent\";\nimport { DischargeDateComponent as DischargeDate } from \"../FormFields/DischargeDate/DischargeDateComponent\";\nimport { MarketConsentWrapperComponent as MarketConsentWrapper } from \"../FormFields/MarketConsentWrapper/MarketConsentWrapperComponent\";\nimport { ActiveDutyStartDateComponent } from \"../FormFields/ActiveDutyStartDate/ActiveDutyStartDateComponent\";\nimport { AddressComponent } from \"../FormFields/Address/AddressComponent\";\nimport { CityComponent } from \"../FormFields/City/City\";\nimport { StateSelectComponent } from \"../FormFields/State/StateSelectComponent\";\nimport { PostalCodeComponent } from \"../FormFields/PostalCode/PostalCodeComponent\";\nimport { ChangeLocaleV2Component } from \"../FormFields/ChangeLocale/ChangeLocaleComponent\";\nimport { CaptchaComponent } from \"../FormFields/Captcha/CaptchaComponent\";\nimport { PersonalInfoWrapper } from \"../PersonalInfoStepWrapper/PersonalInfoStepWrapper\";\nimport { PersonalInfoStepSubmitButton } from \"../PersonalInfoStepSubmitButton/PersonalInfoStepSubmitButton\";\nimport { PersonalInfoHeader } from \"../FormHeader/StepHeaders/PersonalInfoHeaderComponent\";\nimport { FormFieldCustom } from \"../FormFields/FormFieldCustom/FormFieldCustom\";\nimport { ExtraMessage } from \"../ExtraMessage\";\nimport { getOptions } from \"../../options/options\";\n\nimport { updateMilitaryViewModel } from \"./militaryStepHelpers\";\n\ninterface Props {\n intl: any;\n verificationService: VerificationService;\n}\n\nexport const StepCollectMilitaryPersonalInfo = ({ intl, verificationService }: Props) => {\n const viewModel = verificationService.viewModel as MilitaryPersonalInfoViewModel;\n const { fieldValidationErrors } = verificationService;\n const verificationResponse = verificationService.verificationResponse as\n | ActiveMilitaryPersonalInfoResponse\n | InactiveMilitaryPersonalInfoResponse;\n const failedInstantMatch = hasFailedInstantMatch(verificationResponse);\n\n // Seed: show dischargeDate on first paint when the response indicates an\n // inactive flow, or when the program's transitional validity window applies.\n // The /fields response replaces this once it resolves.\n const showDischargeDateInitially =\n verificationResponse.currentStep ===\n VerificationStepsEnum.collectInactiveMilitaryPersonalInfo ||\n !!verificationService.programTheme.transitionalMilitaryValidityDays;\n const initialRequiredFields: FieldDescription[] = showDischargeDateInitially\n ? [{ key: \"dischargeDate\" }]\n : [];\n\n const {\n availableStatuses: dynamicStatuses,\n isFieldRequired,\n isFieldOptional,\n } = useCollectFieldsEndpoint({\n verificationId: verificationResponse.verificationId,\n currentStep: VerificationStepsEnum.collectMilitaryPersonalInfo,\n viewModel,\n defaultRequiredFields: initialRequiredFields,\n });\n\n const countryChoiceValue = viewModel.countryChoice?.value;\n const needToPickCountry = isCountrySelectionNeeded(\n verificationService.programTheme,\n countryChoiceValue,\n );\n\n const statusOptions = getStatusOptions(\n intl,\n dynamicStatuses ??\n (verificationResponse as unknown as MilitaryStatusResponse).availableStatuses ??\n (verificationService.previousVerificationResponse as MilitaryStatusResponse)\n ?.availableStatuses,\n );\n\n const locale = viewModel.localeChoice.value;\n const options = getOptions();\n\n const showDischargeDate = isFieldRequired(\"dischargeDate\") || isFieldOptional(\"dischargeDate\");\n\n const updateMilitary = (key: keyof MilitaryPersonalInfoViewModel, value: any) => {\n verificationService.updateViewModel(\n updateMilitaryViewModel(key, value, verificationService, statusOptions),\n );\n };\n\n resetRefs();\n\n return (\n <PersonalInfoWrapper\n verificationService={verificationService}\n step={verificationResponse.currentStep}\n className=\"sid-military-personal-info-container\"\n >\n <PersonalInfoHeader\n verificationService={verificationService}\n classNameIdentifier=\"active-military-personal-info\"\n />\n <>\n <ChangeLocaleV2Component verificationService={verificationService} />\n <CountryComponentWrapper\n verificationService={verificationService}\n disabled={getFieldConfigByFieldId(\"country\")?.disabled}\n />\n {statusOptions.length > 0 ? (\n <MilitaryStatusComponent\n segmentId=\"military\"\n value={{\n value: viewModel.status,\n label: getStatusLabel(intl, viewModel.status),\n }}\n isErrored={!!fieldValidationErrors.status}\n errorId=\"invalidMilitaryStatus\"\n options={statusOptions}\n disabled={needToPickCountry || getFieldConfigByFieldId(\"status\")?.disabled}\n explanation={\n needToPickCountry ? (\n <FormattedHTMLMessage id=\"chooseCountry\" defaultMessage=\"Choose a country first\" />\n ) : undefined\n }\n onChange={(status: FormSelectChoice) => {\n updateMilitary(\"status\", status ? (status.value as string) : \"\");\n updateFieldValidationErrorsByFieldId(\n \"status\",\n status ? (status.value as string) : \"\",\n verificationService,\n );\n }}\n />\n ) : null}\n <BranchOfService\n isErrored={!!fieldValidationErrors.organization}\n onChange={(choice: Organization) => {\n updateViewModelOrganization(choice, verificationService);\n updateFieldValidationErrorsByFieldId(\"organization\", choice, verificationService);\n }}\n value={{\n value: viewModel.organization.id,\n label: viewModel.organization.name,\n }}\n verificationService={verificationService}\n disabled={getFieldConfigByFieldId(\"organization\")?.disabled}\n />\n\n <div className=\"sid-names\">\n <FirstName\n value={viewModel.firstName}\n isErrored={!!fieldValidationErrors.firstName}\n disabled={getFieldConfigByFieldId(\"firstName\")?.disabled}\n onChange={(newValue) => {\n updateMilitary(\"firstName\", newValue);\n updateFieldValidationErrorsByFieldId(\"firstName\", newValue, verificationService);\n }}\n />\n <LastName\n value={viewModel.lastName}\n isErrored={!!fieldValidationErrors.lastName}\n disabled={getFieldConfigByFieldId(\"lastName\")?.disabled}\n onChange={(newValue) => {\n updateMilitary(\"lastName\", newValue);\n updateFieldValidationErrorsByFieldId(\"lastName\", newValue, verificationService);\n }}\n />\n </div>\n\n <BirthDate\n errorId={fieldValidationErrors.birthDate}\n locale={locale}\n onChange={(newValue) => {\n updateMilitary(\"birthDate\", newValue);\n updateFieldValidationErrorsByFieldId(\"birthDate\", newValue, verificationService);\n }}\n value={viewModel.birthDate}\n disabled={getFieldConfigByFieldId(\"birthDate\")?.disabled}\n />\n\n {showDischargeDate && (\n <DischargeDate\n mode={\n !!verificationService.programTheme.transitionalMilitaryValidityDays ? \"date\" : \"month\"\n }\n errorId={fieldValidationErrors.dischargeDate}\n onChange={(newValue) => {\n updateMilitary(\"dischargeDate\", newValue);\n updateFieldValidationErrorsByFieldId(\"dischargeDate\", newValue, verificationService);\n }}\n value={viewModel.dischargeDate}\n locale={locale}\n disabled={getFieldConfigByFieldId(\"dischargeDate\")?.disabled}\n isRequired={isFieldRequired(\"dischargeDate\")}\n />\n )}\n\n {verificationService.programTheme.strictMilitaryValidationEnabled && (\n <ActiveDutyStartDateComponent\n errorId={fieldValidationErrors.activeDutyStartDate}\n locale={locale}\n onChange={(newValue) => {\n updateMilitary(\"activeDutyStartDate\", newValue);\n updateFieldValidationErrorsByFieldId(\n \"activeDutyStartDate\",\n newValue,\n verificationService,\n );\n }}\n value={viewModel.activeDutyStartDate}\n disabled={getFieldConfigByFieldId(\"activeDutyStartDate\")?.disabled}\n isRequired={getFieldConfigByFieldId(\"activeDutyStartDate\")?.requireIfOptional}\n />\n )}\n\n <Email\n value={viewModel.email}\n isErrored={!!fieldValidationErrors.email}\n explanation={\n <FormattedHTMLMessage\n id=\"emailExplanation\"\n defaultMessage=\"Personal email address is recommended\"\n />\n }\n onChange={(newValue) => {\n updateMilitary(\"email\", newValue);\n updateFieldValidationErrorsByFieldId(\"email\", newValue, verificationService);\n }}\n onKeyDown={(event) => handleEmailOnKeyDown(event)}\n disabled={getFieldConfigByFieldId(\"email\")?.disabled}\n />\n\n {verificationService.programTheme.isSmsNotifierConfigured ||\n verificationService.programTheme.smsLoopEnabled ? (\n <PhoneNumber\n isRequired={!!verificationService.programTheme.smsLoopEnabled}\n value={viewModel.phoneNumber}\n isErrored={!!fieldValidationErrors.phoneNumber}\n onChange={(newValue) => {\n updateMilitary(\"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 {isFieldOptional(\"address1\") && (\n <AddressComponent\n value={viewModel.address1}\n isErrored={!!fieldValidationErrors.address1}\n errorId={fieldValidationErrors.address1}\n disabled={getFieldConfigByFieldId(\"address1\")?.disabled}\n onChange={(value) => {\n updateMilitary(\"address1\", value);\n updateFieldValidationErrorsByFieldId(\"address1\", value, verificationService);\n }}\n isRequired={getFieldConfigByFieldId(\"address1\")?.requireIfOptional}\n />\n )}\n {isFieldOptional(\"city\") && (\n <CityComponent\n value={viewModel.city}\n isErrored={!!fieldValidationErrors.city}\n errorId={fieldValidationErrors.city}\n disabled={getFieldConfigByFieldId(\"city\")?.disabled}\n onChange={(value) => {\n updateMilitary(\"city\", value);\n updateFieldValidationErrorsByFieldId(\"city\", value, verificationService);\n }}\n isRequired={getFieldConfigByFieldId(\"city\")?.requireIfOptional}\n />\n )}\n {isFieldOptional(\"state\") && (\n <StateSelectComponent\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 updateMilitary(\"state\", stateValue);\n updateFieldValidationErrorsByFieldId(\"state\", stateValue, verificationService);\n }}\n label={<FormattedHTMLMessage id=\"state\" defaultMessage=\"State\" />}\n disabled={getFieldConfigByFieldId(\"state\")?.disabled}\n isRequired={getFieldConfigByFieldId(\"state\")?.requireIfOptional}\n />\n )}\n {isFieldOptional(\"postalCode\") && (\n <PostalCodeComponent\n required={getFieldConfigByFieldId(\"postalCode\")?.requireIfOptional}\n isErrored={!!fieldValidationErrors.postalCode}\n onChange={(newValue) => {\n updateMilitary(\"postalCode\", newValue);\n updateFieldValidationErrorsByFieldId(\"postalCode\", newValue, verificationService);\n }}\n value={viewModel.postalCode}\n disabled={getFieldConfigByFieldId(\"postalCode\")?.disabled}\n />\n )}\n\n {options.customFormFields.map((config: CustomFormFieldConfig) => (\n <FormFieldCustom config={config} verificationService={verificationService} />\n ))}\n\n <MarketConsentWrapper\n verificationService={verificationService}\n isErrored={!!fieldValidationErrors.marketConsentValue}\n onChange={(newValue) => {\n updateMilitary(\"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={verificationResponse.currentStep as CollectInfoSteps}\n verificationService={verificationService}\n viewModel={viewModel}\n failedInstantMatch={failedInstantMatch}\n buttonText={\n <FormattedHTMLMessage\n id=\"step.personalInfo.submitButtonText\"\n defaultMessage=\"Verify My Military Status\"\n />\n }\n />\n </>\n </PersonalInfoWrapper>\n );\n};\n\nexport const StepCollectMilitaryPersonalInfoComponent = injectIntl(StepCollectMilitaryPersonalInfo);\nexport default StepCollectMilitaryPersonalInfoComponent;\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAQA,IAAA,KAAA,GAAA,GAAA,GAAA,MAAA;;;;;;;;;;AAwBA,YC8Ba,KAAmC,EAAE,SAAM,6BAAiC;CACvF,IAAM,IAAY,EAAoB,WAChC,EAAE,6BAA0B,GAC5B,IAAuB,EAAoB,sBAG3C,IAAqB,EAAsB,CAAoB,GAS/D,IAHJ,EAAqB,gBACnB,EAAsB,uCACtB,EAAoB,aAAa,mCAEjC,CAAC,EAAE,KAAK,gBAAgB,CAAC,IACzB,CAAC,GAEC,EACJ,mBAAmB,GACnB,oBACA,uBACE,EAAyB;EAC3B,gBAAgB,EAAqB;EACrC,aAAa,EAAsB;EACnC;EACA,uBAAuB;CACzB,CAAC,GAEK,IAAqB,EAAU,eAAe,OAC9C,IAAoB,EACxB,EAAoB,cACpB,CACF,GAEM,IAAgB,EACpB,GACA,KACG,EAA2D,qBAC3D,EAAoB,8BACjB,iBACR,GAEM,IAAS,EAAU,aAAa,OAChC,IAAU,EAAW,GAErB,IAAoB,EAAgB,eAAe,KAAK,EAAgB,eAAe,GAEvF,KAAkB,GAA0C,MAAe;EAC/E,EAAoB,gBAClB,EAAwB,GAAK,GAAO,GAAqB,CAAa,CACxE;CACF;CAIA,OAFA,EAAU,GAGR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BAAe;IAChB,CAAA;GAEJ,CAAA;EACD,EAAA,CAAA,CACiB;;AAEzB,GAEa,IAA2C,EAAW,CAA+B"}
@@ -1,31 +1,31 @@
1
1
 
2
2
  /**
3
- * VERSION: 2.281.0
4
- * BUILD_TIMESTAMP: 1789081110815
5
- * BUILD_DATE: Thu Sep 10 2026 22:58:30 GMT+0000 (Coordinated Universal Time)
6
- * BUILD_COMMIT: 203c719462907e33a934929812f4c4a5a9ebdadb
3
+ * VERSION: 2.283.0
4
+ * BUILD_TIMESTAMP: 1789491612243
5
+ * BUILD_DATE: Tue Sep 15 2026 17:00:12 GMT+0000 (Coordinated Universal Time)
6
+ * BUILD_COMMIT: 3d15a02db4caf4d52123bea847235a8fe8f053dd
7
7
  */
8
8
  import { It as e, c as t, n } from "./options-kkjACM14.js";
9
9
  import { a as r, c as i, n as a, t as o } from "./jsx-runtime-n0jD1uEy.js";
10
- import { h as s } from "./FormFooterComponent-DWVAwUIg.js";
10
+ import { h as s } from "./FormFooterComponent-ijH3vfAe.js";
11
11
  import { a as c } from "./refs-D3MifwJO.js";
12
12
  import { n as l } from "../sheerid.js";
13
- import { t as u } from "./useCollectFieldsEndpoint-BvietL7q.js";
13
+ import { t as u } from "./useCollectFieldsEndpoint-CN2icks6.js";
14
14
  import { _ as d, c as f, g as p, i as m, n as h, o as g, s as _ } from "./stepComponentHelpers-BhSQbOUm.js";
15
- import { a as v, i as y, n as b, o as x, s as S, t as C } from "./CaptchaComponent-CU_cl3Zk.js";
16
- import { n as w, t as T } from "./PersonalInfoStepSubmitButton-BKxf5uQd.js";
17
- import { t as E } from "./BirthDateComponent-Q9xk2WkY.js";
18
- import { t as D } from "./PostalCodeComponent-BHfIKDK0.js";
19
- import { t as O } from "./CountryComponentWrapper-9gOmQZX7.js";
20
- import { t as k } from "./City-Df61wEEc.js";
21
- import { t as A } from "./AddressComponent-DOjNxl_I.js";
22
- import { t as j } from "./ExtraMessage-pgwmr9t-.js";
23
- import { t as M } from "./ChangeLocaleComponent-vn8OTAQI.js";
24
- import { t as N } from "./PersonalInfoStepWrapper-CWvPd9SY.js";
15
+ import { a as v, i as y, n as b, o as x, s as S, t as C } from "./CaptchaComponent-BFnSDutX.js";
16
+ import { n as w, t as T } from "./PersonalInfoStepSubmitButton-DkAmox9o.js";
17
+ import { t as E } from "./BirthDateComponent-DhSXxwAN.js";
18
+ import { t as D } from "./PostalCodeComponent-Bl4nrcsZ.js";
19
+ import { t as O } from "./CountryComponentWrapper-CbB9XMJq.js";
20
+ import { t as k } from "./City-Cua_6h5H.js";
21
+ import { t as A } from "./AddressComponent-DjdU1avW.js";
22
+ import { t as j } from "./ExtraMessage--Hy3tDVD.js";
23
+ import { t as M } from "./ChangeLocaleComponent-BfLianBY.js";
24
+ import { t as N } from "./PersonalInfoStepWrapper-IBhUSq4D.js";
25
25
  import { t as P } from "./countryUtils-D0YJQD1a.js";
26
- import { t as ee } from "./StateSelectComponent-Dptuxnno.js";
27
- import { n as F, r as I, t as L } from "./DischargeDateComponent-BMFvqjcA.js";
28
- import { t as R } from "./StatusComponent-DUhj21lS.js";
26
+ import { t as ee } from "./StateSelectComponent-BfEcXNlZ.js";
27
+ import { n as F, r as I, t as L } from "./DischargeDateComponent-D5nNSGFi.js";
28
+ import { t as R } from "./StatusComponent-1cKx-egQ.js";
29
29
  i();
30
30
  var z = (e, n, r, i) => {
31
31
  let a = r.viewModel;
@@ -1 +1 @@
1
- {"version":3,"file":"StepCollectMilitaryPersonalInfoComponent-ih03EaV8.js","names":[],"sources":["../../src/components/StepMilitaryPersonalInfo/militaryStepHelpers.ts","../../src/components/StepMilitaryPersonalInfo/StepCollectMilitaryPersonalInfoComponent.tsx"],"sourcesContent":["import produce from \"immer\";\n\nimport {\n type VerificationService,\n type FormSelectChoice,\n type MilitaryPersonalInfoViewModel,\n} from \"../../lib/types/types\";\n\nexport const updateMilitaryViewModel = (\n key: keyof MilitaryPersonalInfoViewModel,\n value: any,\n verificationService: VerificationService,\n availableStatuses: FormSelectChoice[],\n): MilitaryPersonalInfoViewModel => {\n const viewModel = verificationService.viewModel as MilitaryPersonalInfoViewModel;\n return produce(viewModel, (draft: MilitaryPersonalInfoViewModel) => {\n (draft[key] as any) = value;\n\n // Reset military-managed skip flags before reapplying.\n const militaryManagedFields = [\"status\"];\n draft.fieldsToSkipValidation = (draft.fieldsToSkipValidation || []).filter(\n (id) => !militaryManagedFields.includes(id),\n );\n\n if (!availableStatuses || availableStatuses.length === 0) {\n draft.fieldsToSkipValidation.push(\"status\");\n }\n\n if (key === \"status\") {\n draft.organization = { id: 0, name: \"\" };\n }\n });\n};\n","/* eslint-disable */\nimport React from \"react\";\nimport { FormattedHTMLMessage, injectIntl } from \"react-intl\";\n\nimport { type CollectInfoSteps, VerificationStepsEnum } from \"../../lib/types/runtimeTypes\";\nimport { hasFailedInstantMatch } from \"../../lib/VerificationService/VerificationServiceHelpers\";\nimport { resetRefs } from \"../../lib/refs/refs\";\nimport {\n VerificationService,\n FormSelectChoice,\n Organization,\n MilitaryPersonalInfoViewModel,\n ActiveMilitaryPersonalInfoResponse,\n InactiveMilitaryPersonalInfoResponse,\n MilitaryStatusResponse,\n CustomFormFieldConfig,\n FieldDescription,\n State,\n} from \"../../lib/types/types\";\nimport { useCollectFieldsEndpoint } from \"../../lib/ServerApi/useCollectFieldsEndpoint\";\nimport { isCountrySelectionNeeded } from \"../FormFields/Country/countryUtils\";\nimport {\n handleEmailOnKeyDown,\n updateFieldValidationErrorsByFieldId,\n updateViewModelOrganization,\n getStatusLabel,\n getStatusOptions,\n getAvailableStateChoices,\n getFieldConfigByFieldId,\n} from \"../../lib/utils/stepComponentHelpers/stepComponentHelpers\";\n\nimport { CountryComponentWrapper } from \"../FormFields/Country/CountryComponentWrapper\";\nimport { PhoneNumberComponent as PhoneNumber } from \"../FormFields/PhoneNumber/PhoneNumberComponent\";\nimport { FirstNameComponent as FirstName } from \"../FormFields/FirstName/FirstNameComponent\";\nimport { LastNameComponent as LastName } from \"../FormFields/LastName/LastNameComponent\";\nimport { EmailComponent as Email } from \"../FormFields/Email/EmailComponent\";\nimport { BirthDateComponent as BirthDate } from \"../FormFields/BirthDate/BirthDateComponent\";\nimport { StatusComponent as MilitaryStatusComponent } from \"../FormFields/Status/StatusComponent\";\nimport { BranchOfServiceComponent as BranchOfService } from \"../FormFields/BranchOfService/BranchOfServiceComponent\";\nimport { DischargeDateComponent as DischargeDate } from \"../FormFields/DischargeDate/DischargeDateComponent\";\nimport { MarketConsentWrapperComponent as MarketConsentWrapper } from \"../FormFields/MarketConsentWrapper/MarketConsentWrapperComponent\";\nimport { ActiveDutyStartDateComponent } from \"../FormFields/ActiveDutyStartDate/ActiveDutyStartDateComponent\";\nimport { AddressComponent } from \"../FormFields/Address/AddressComponent\";\nimport { CityComponent } from \"../FormFields/City/City\";\nimport { StateSelectComponent } from \"../FormFields/State/StateSelectComponent\";\nimport { PostalCodeComponent } from \"../FormFields/PostalCode/PostalCodeComponent\";\nimport { ChangeLocaleV2Component } from \"../FormFields/ChangeLocale/ChangeLocaleComponent\";\nimport { CaptchaComponent } from \"../FormFields/Captcha/CaptchaComponent\";\nimport { PersonalInfoWrapper } from \"../PersonalInfoStepWrapper/PersonalInfoStepWrapper\";\nimport { PersonalInfoStepSubmitButton } from \"../PersonalInfoStepSubmitButton/PersonalInfoStepSubmitButton\";\nimport { PersonalInfoHeader } from \"../FormHeader/StepHeaders/PersonalInfoHeaderComponent\";\nimport { FormFieldCustom } from \"../FormFields/FormFieldCustom/FormFieldCustom\";\nimport { ExtraMessage } from \"../ExtraMessage\";\nimport { getOptions } from \"../../options/options\";\n\nimport { updateMilitaryViewModel } from \"./militaryStepHelpers\";\n\ninterface Props {\n intl: any;\n verificationService: VerificationService;\n}\n\nexport const StepCollectMilitaryPersonalInfo = ({ intl, verificationService }: Props) => {\n const viewModel = verificationService.viewModel as MilitaryPersonalInfoViewModel;\n const { fieldValidationErrors } = verificationService;\n const verificationResponse = verificationService.verificationResponse as\n | ActiveMilitaryPersonalInfoResponse\n | InactiveMilitaryPersonalInfoResponse;\n const failedInstantMatch = hasFailedInstantMatch(verificationResponse);\n\n // Seed: show dischargeDate on first paint when the response indicates an\n // inactive flow, or when the program's transitional validity window applies.\n // The /fields response replaces this once it resolves.\n const showDischargeDateInitially =\n verificationResponse.currentStep ===\n VerificationStepsEnum.collectInactiveMilitaryPersonalInfo ||\n !!verificationService.programTheme.transitionalMilitaryValidityDays;\n const initialRequiredFields: FieldDescription[] = showDischargeDateInitially\n ? [{ key: \"dischargeDate\" }]\n : [];\n\n const {\n availableStatuses: dynamicStatuses,\n isFieldRequired,\n isFieldOptional,\n } = useCollectFieldsEndpoint({\n verificationId: verificationResponse.verificationId,\n currentStep: VerificationStepsEnum.collectMilitaryPersonalInfo,\n viewModel,\n defaultRequiredFields: initialRequiredFields,\n });\n\n const countryChoiceValue = viewModel.countryChoice?.value;\n const needToPickCountry = isCountrySelectionNeeded(\n verificationService.programTheme,\n countryChoiceValue,\n );\n\n const statusOptions = getStatusOptions(\n intl,\n dynamicStatuses ??\n (verificationResponse as unknown as MilitaryStatusResponse).availableStatuses ??\n (verificationService.previousVerificationResponse as MilitaryStatusResponse)\n ?.availableStatuses,\n );\n\n const locale = viewModel.localeChoice.value;\n const options = getOptions();\n\n const showDischargeDate = isFieldRequired(\"dischargeDate\") || isFieldOptional(\"dischargeDate\");\n\n const updateMilitary = (key: keyof MilitaryPersonalInfoViewModel, value: any) => {\n verificationService.updateViewModel(\n updateMilitaryViewModel(key, value, verificationService, statusOptions),\n );\n };\n\n resetRefs();\n\n return (\n <PersonalInfoWrapper\n verificationService={verificationService}\n step={verificationResponse.currentStep}\n className=\"sid-military-personal-info-container\"\n >\n <PersonalInfoHeader\n verificationService={verificationService}\n classNameIdentifier=\"active-military-personal-info\"\n />\n <>\n <ChangeLocaleV2Component verificationService={verificationService} />\n <CountryComponentWrapper\n verificationService={verificationService}\n disabled={getFieldConfigByFieldId(\"country\")?.disabled}\n />\n {statusOptions.length > 0 ? (\n <MilitaryStatusComponent\n segmentId=\"military\"\n value={{\n value: viewModel.status,\n label: getStatusLabel(intl, viewModel.status),\n }}\n isErrored={!!fieldValidationErrors.status}\n errorId=\"invalidMilitaryStatus\"\n options={statusOptions}\n disabled={needToPickCountry || getFieldConfigByFieldId(\"status\")?.disabled}\n explanation={\n needToPickCountry ? (\n <FormattedHTMLMessage id=\"chooseCountry\" defaultMessage=\"Choose a country first\" />\n ) : undefined\n }\n onChange={(status: FormSelectChoice) => {\n updateMilitary(\"status\", status ? (status.value as string) : \"\");\n updateFieldValidationErrorsByFieldId(\n \"status\",\n status ? (status.value as string) : \"\",\n verificationService,\n );\n }}\n />\n ) : null}\n <BranchOfService\n isErrored={!!fieldValidationErrors.organization}\n onChange={(choice: Organization) => {\n updateViewModelOrganization(choice, verificationService);\n updateFieldValidationErrorsByFieldId(\"organization\", choice, verificationService);\n }}\n value={{\n value: viewModel.organization.id,\n label: viewModel.organization.name,\n }}\n verificationService={verificationService}\n disabled={getFieldConfigByFieldId(\"organization\")?.disabled}\n />\n\n <div className=\"sid-names\">\n <FirstName\n value={viewModel.firstName}\n isErrored={!!fieldValidationErrors.firstName}\n disabled={getFieldConfigByFieldId(\"firstName\")?.disabled}\n onChange={(newValue) => {\n updateMilitary(\"firstName\", newValue);\n updateFieldValidationErrorsByFieldId(\"firstName\", newValue, verificationService);\n }}\n />\n <LastName\n value={viewModel.lastName}\n isErrored={!!fieldValidationErrors.lastName}\n disabled={getFieldConfigByFieldId(\"lastName\")?.disabled}\n onChange={(newValue) => {\n updateMilitary(\"lastName\", newValue);\n updateFieldValidationErrorsByFieldId(\"lastName\", newValue, verificationService);\n }}\n />\n </div>\n\n <BirthDate\n errorId={fieldValidationErrors.birthDate}\n locale={locale}\n onChange={(newValue) => {\n updateMilitary(\"birthDate\", newValue);\n updateFieldValidationErrorsByFieldId(\"birthDate\", newValue, verificationService);\n }}\n value={viewModel.birthDate}\n disabled={getFieldConfigByFieldId(\"birthDate\")?.disabled}\n />\n\n {showDischargeDate && (\n <DischargeDate\n mode={\n !!verificationService.programTheme.transitionalMilitaryValidityDays ? \"date\" : \"month\"\n }\n errorId={fieldValidationErrors.dischargeDate}\n onChange={(newValue) => {\n updateMilitary(\"dischargeDate\", newValue);\n updateFieldValidationErrorsByFieldId(\"dischargeDate\", newValue, verificationService);\n }}\n value={viewModel.dischargeDate}\n locale={locale}\n disabled={getFieldConfigByFieldId(\"dischargeDate\")?.disabled}\n isRequired={isFieldRequired(\"dischargeDate\")}\n />\n )}\n\n {verificationService.programTheme.strictMilitaryValidationEnabled && (\n <ActiveDutyStartDateComponent\n errorId={fieldValidationErrors.activeDutyStartDate}\n locale={locale}\n onChange={(newValue) => {\n updateMilitary(\"activeDutyStartDate\", newValue);\n updateFieldValidationErrorsByFieldId(\n \"activeDutyStartDate\",\n newValue,\n verificationService,\n );\n }}\n value={viewModel.activeDutyStartDate}\n disabled={getFieldConfigByFieldId(\"activeDutyStartDate\")?.disabled}\n isRequired={getFieldConfigByFieldId(\"activeDutyStartDate\")?.requireIfOptional}\n />\n )}\n\n <Email\n value={viewModel.email}\n isErrored={!!fieldValidationErrors.email}\n explanation={\n <FormattedHTMLMessage\n id=\"emailExplanation\"\n defaultMessage=\"Personal email address is recommended\"\n />\n }\n onChange={(newValue) => {\n updateMilitary(\"email\", newValue);\n updateFieldValidationErrorsByFieldId(\"email\", newValue, verificationService);\n }}\n onKeyDown={(event) => handleEmailOnKeyDown(event)}\n disabled={getFieldConfigByFieldId(\"email\")?.disabled}\n />\n\n {verificationService.programTheme.isSmsNotifierConfigured ||\n verificationService.programTheme.smsLoopEnabled ? (\n <PhoneNumber\n isRequired={!!verificationService.programTheme.smsLoopEnabled}\n value={viewModel.phoneNumber}\n isErrored={!!fieldValidationErrors.phoneNumber}\n onChange={(newValue) => {\n updateMilitary(\"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 {isFieldOptional(\"address1\") && (\n <AddressComponent\n value={viewModel.address1}\n isErrored={!!fieldValidationErrors.address1}\n errorId={fieldValidationErrors.address1}\n disabled={getFieldConfigByFieldId(\"address1\")?.disabled}\n onChange={(value) => {\n updateMilitary(\"address1\", value);\n updateFieldValidationErrorsByFieldId(\"address1\", value, verificationService);\n }}\n isRequired={getFieldConfigByFieldId(\"address1\")?.requireIfOptional}\n />\n )}\n {isFieldOptional(\"city\") && (\n <CityComponent\n value={viewModel.city}\n isErrored={!!fieldValidationErrors.city}\n errorId={fieldValidationErrors.city}\n disabled={getFieldConfigByFieldId(\"city\")?.disabled}\n onChange={(value) => {\n updateMilitary(\"city\", value);\n updateFieldValidationErrorsByFieldId(\"city\", value, verificationService);\n }}\n isRequired={getFieldConfigByFieldId(\"city\")?.requireIfOptional}\n />\n )}\n {isFieldOptional(\"state\") && (\n <StateSelectComponent\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 updateMilitary(\"state\", stateValue);\n updateFieldValidationErrorsByFieldId(\"state\", stateValue, verificationService);\n }}\n label={<FormattedHTMLMessage id=\"state\" defaultMessage=\"State\" />}\n disabled={getFieldConfigByFieldId(\"state\")?.disabled}\n isRequired={getFieldConfigByFieldId(\"state\")?.requireIfOptional}\n />\n )}\n {isFieldOptional(\"postalCode\") && (\n <PostalCodeComponent\n required={getFieldConfigByFieldId(\"postalCode\")?.requireIfOptional}\n isErrored={!!fieldValidationErrors.postalCode}\n onChange={(newValue) => {\n updateMilitary(\"postalCode\", newValue);\n updateFieldValidationErrorsByFieldId(\"postalCode\", newValue, verificationService);\n }}\n value={viewModel.postalCode}\n disabled={getFieldConfigByFieldId(\"postalCode\")?.disabled}\n />\n )}\n\n {options.customFormFields.map((config: CustomFormFieldConfig) => (\n <FormFieldCustom config={config} verificationService={verificationService} />\n ))}\n\n <MarketConsentWrapper\n verificationService={verificationService}\n isErrored={!!fieldValidationErrors.marketConsentValue}\n onChange={(newValue) => {\n updateMilitary(\"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={verificationResponse.currentStep as CollectInfoSteps}\n verificationService={verificationService}\n viewModel={viewModel}\n failedInstantMatch={failedInstantMatch}\n buttonText={\n <FormattedHTMLMessage\n id=\"step.personalInfo.submitButtonText\"\n defaultMessage=\"Verify My Military Status\"\n />\n }\n />\n </>\n </PersonalInfoWrapper>\n );\n};\n\nexport const StepCollectMilitaryPersonalInfoComponent = injectIntl(StepCollectMilitaryPersonalInfo);\nexport default StepCollectMilitaryPersonalInfoComponent;\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAQA,IAAA,KAAA,GAAA,GAAA,GAAA,MAAA;;;;;;;;;;AAwBA,YC8Ba,KAAmC,EAAE,SAAM,6BAAiC;CACvF,IAAM,IAAY,EAAoB,WAChC,EAAE,6BAA0B,GAC5B,IAAuB,EAAoB,sBAG3C,IAAqB,EAAsB,CAAoB,GAS/D,IAHJ,EAAqB,gBACnB,EAAsB,uCACtB,EAAoB,aAAa,mCAEjC,CAAC,EAAE,KAAK,gBAAgB,CAAC,IACzB,CAAC,GAEC,EACJ,mBAAmB,GACnB,oBACA,uBACE,EAAyB;EAC3B,gBAAgB,EAAqB;EACrC,aAAa,EAAsB;EACnC;EACA,uBAAuB;CACzB,CAAC,GAEK,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,UAAU,EAAwB,oBAAoB,GAAG;GAC1D,CAAA;GAED,iBAAA,GAAA,EAAA,KAAC,GAAD;IAAmC;IAAqB,QAAO;GAAsB,CAAA;GAErF,iBAAA,GAAA,EAAA,KAAC,GAAD;IACuB;IACrB,WAAW,CAAC,CAAC,EAAsB;GACpC,CAAA;GAED,iBAAA,GAAA,EAAA,KAAC,GAAD;IACE,MAAM,EAAqB;IACN;IACV;IACS;IACpB,YACE,iBAAA,GAAA,EAAA,KAAC,GAAD;KACE,IAAG;KACH,gBAAe;IAChB,CAAA;GAEJ,CAAA;EACD,EAAA,CAAA,CACiB;;AAEzB,GAEa,IAA2C,EAAW,CAA+B"}
1
+ {"version":3,"file":"StepCollectMilitaryPersonalInfoComponent-DZEJALRJ.js","names":[],"sources":["../../src/components/StepMilitaryPersonalInfo/militaryStepHelpers.ts","../../src/components/StepMilitaryPersonalInfo/StepCollectMilitaryPersonalInfoComponent.tsx"],"sourcesContent":["import produce from \"immer\";\n\nimport {\n type VerificationService,\n type FormSelectChoice,\n type MilitaryPersonalInfoViewModel,\n} from \"../../lib/types/types\";\n\nexport const updateMilitaryViewModel = (\n key: keyof MilitaryPersonalInfoViewModel,\n value: any,\n verificationService: VerificationService,\n availableStatuses: FormSelectChoice[],\n): MilitaryPersonalInfoViewModel => {\n const viewModel = verificationService.viewModel as MilitaryPersonalInfoViewModel;\n return produce(viewModel, (draft: MilitaryPersonalInfoViewModel) => {\n (draft[key] as any) = value;\n\n // Reset military-managed skip flags before reapplying.\n const militaryManagedFields = [\"status\"];\n draft.fieldsToSkipValidation = (draft.fieldsToSkipValidation || []).filter(\n (id) => !militaryManagedFields.includes(id),\n );\n\n if (!availableStatuses || availableStatuses.length === 0) {\n draft.fieldsToSkipValidation.push(\"status\");\n }\n\n if (key === \"status\") {\n draft.organization = { id: 0, name: \"\" };\n }\n });\n};\n","/* eslint-disable */\nimport React from \"react\";\nimport { FormattedHTMLMessage, injectIntl } from \"react-intl\";\n\nimport { type CollectInfoSteps, VerificationStepsEnum } from \"../../lib/types/runtimeTypes\";\nimport { hasFailedInstantMatch } from \"../../lib/VerificationService/VerificationServiceHelpers\";\nimport { resetRefs } from \"../../lib/refs/refs\";\nimport {\n VerificationService,\n FormSelectChoice,\n Organization,\n MilitaryPersonalInfoViewModel,\n ActiveMilitaryPersonalInfoResponse,\n InactiveMilitaryPersonalInfoResponse,\n MilitaryStatusResponse,\n CustomFormFieldConfig,\n FieldDescription,\n State,\n} from \"../../lib/types/types\";\nimport { useCollectFieldsEndpoint } from \"../../lib/ServerApi/useCollectFieldsEndpoint\";\nimport { isCountrySelectionNeeded } from \"../FormFields/Country/countryUtils\";\nimport {\n handleEmailOnKeyDown,\n updateFieldValidationErrorsByFieldId,\n updateViewModelOrganization,\n getStatusLabel,\n getStatusOptions,\n getAvailableStateChoices,\n getFieldConfigByFieldId,\n} from \"../../lib/utils/stepComponentHelpers/stepComponentHelpers\";\n\nimport { CountryComponentWrapper } from \"../FormFields/Country/CountryComponentWrapper\";\nimport { PhoneNumberComponent as PhoneNumber } from \"../FormFields/PhoneNumber/PhoneNumberComponent\";\nimport { FirstNameComponent as FirstName } from \"../FormFields/FirstName/FirstNameComponent\";\nimport { LastNameComponent as LastName } from \"../FormFields/LastName/LastNameComponent\";\nimport { EmailComponent as Email } from \"../FormFields/Email/EmailComponent\";\nimport { BirthDateComponent as BirthDate } from \"../FormFields/BirthDate/BirthDateComponent\";\nimport { StatusComponent as MilitaryStatusComponent } from \"../FormFields/Status/StatusComponent\";\nimport { BranchOfServiceComponent as BranchOfService } from \"../FormFields/BranchOfService/BranchOfServiceComponent\";\nimport { DischargeDateComponent as DischargeDate } from \"../FormFields/DischargeDate/DischargeDateComponent\";\nimport { MarketConsentWrapperComponent as MarketConsentWrapper } from \"../FormFields/MarketConsentWrapper/MarketConsentWrapperComponent\";\nimport { ActiveDutyStartDateComponent } from \"../FormFields/ActiveDutyStartDate/ActiveDutyStartDateComponent\";\nimport { AddressComponent } from \"../FormFields/Address/AddressComponent\";\nimport { CityComponent } from \"../FormFields/City/City\";\nimport { StateSelectComponent } from \"../FormFields/State/StateSelectComponent\";\nimport { PostalCodeComponent } from \"../FormFields/PostalCode/PostalCodeComponent\";\nimport { ChangeLocaleV2Component } from \"../FormFields/ChangeLocale/ChangeLocaleComponent\";\nimport { CaptchaComponent } from \"../FormFields/Captcha/CaptchaComponent\";\nimport { PersonalInfoWrapper } from \"../PersonalInfoStepWrapper/PersonalInfoStepWrapper\";\nimport { PersonalInfoStepSubmitButton } from \"../PersonalInfoStepSubmitButton/PersonalInfoStepSubmitButton\";\nimport { PersonalInfoHeader } from \"../FormHeader/StepHeaders/PersonalInfoHeaderComponent\";\nimport { FormFieldCustom } from \"../FormFields/FormFieldCustom/FormFieldCustom\";\nimport { ExtraMessage } from \"../ExtraMessage\";\nimport { getOptions } from \"../../options/options\";\n\nimport { updateMilitaryViewModel } from \"./militaryStepHelpers\";\n\ninterface Props {\n intl: any;\n verificationService: VerificationService;\n}\n\nexport const StepCollectMilitaryPersonalInfo = ({ intl, verificationService }: Props) => {\n const viewModel = verificationService.viewModel as MilitaryPersonalInfoViewModel;\n const { fieldValidationErrors } = verificationService;\n const verificationResponse = verificationService.verificationResponse as\n | ActiveMilitaryPersonalInfoResponse\n | InactiveMilitaryPersonalInfoResponse;\n const failedInstantMatch = hasFailedInstantMatch(verificationResponse);\n\n // Seed: show dischargeDate on first paint when the response indicates an\n // inactive flow, or when the program's transitional validity window applies.\n // The /fields response replaces this once it resolves.\n const showDischargeDateInitially =\n verificationResponse.currentStep ===\n VerificationStepsEnum.collectInactiveMilitaryPersonalInfo ||\n !!verificationService.programTheme.transitionalMilitaryValidityDays;\n const initialRequiredFields: FieldDescription[] = showDischargeDateInitially\n ? [{ key: \"dischargeDate\" }]\n : [];\n\n const {\n availableStatuses: dynamicStatuses,\n isFieldRequired,\n isFieldOptional,\n } = useCollectFieldsEndpoint({\n verificationId: verificationResponse.verificationId,\n currentStep: VerificationStepsEnum.collectMilitaryPersonalInfo,\n viewModel,\n defaultRequiredFields: initialRequiredFields,\n });\n\n const countryChoiceValue = viewModel.countryChoice?.value;\n const needToPickCountry = isCountrySelectionNeeded(\n verificationService.programTheme,\n countryChoiceValue,\n );\n\n const statusOptions = getStatusOptions(\n intl,\n dynamicStatuses ??\n (verificationResponse as unknown as MilitaryStatusResponse).availableStatuses ??\n (verificationService.previousVerificationResponse as MilitaryStatusResponse)\n ?.availableStatuses,\n );\n\n const locale = viewModel.localeChoice.value;\n const options = getOptions();\n\n const showDischargeDate = isFieldRequired(\"dischargeDate\") || isFieldOptional(\"dischargeDate\");\n\n const updateMilitary = (key: keyof MilitaryPersonalInfoViewModel, value: any) => {\n verificationService.updateViewModel(\n updateMilitaryViewModel(key, value, verificationService, statusOptions),\n );\n };\n\n resetRefs();\n\n return (\n <PersonalInfoWrapper\n verificationService={verificationService}\n step={verificationResponse.currentStep}\n className=\"sid-military-personal-info-container\"\n >\n <PersonalInfoHeader\n verificationService={verificationService}\n classNameIdentifier=\"active-military-personal-info\"\n />\n <>\n <ChangeLocaleV2Component verificationService={verificationService} />\n <CountryComponentWrapper\n verificationService={verificationService}\n disabled={getFieldConfigByFieldId(\"country\")?.disabled}\n />\n {statusOptions.length > 0 ? (\n <MilitaryStatusComponent\n segmentId=\"military\"\n value={{\n value: viewModel.status,\n label: getStatusLabel(intl, viewModel.status),\n }}\n isErrored={!!fieldValidationErrors.status}\n errorId=\"invalidMilitaryStatus\"\n options={statusOptions}\n disabled={needToPickCountry || getFieldConfigByFieldId(\"status\")?.disabled}\n explanation={\n needToPickCountry ? (\n <FormattedHTMLMessage id=\"chooseCountry\" defaultMessage=\"Choose a country first\" />\n ) : undefined\n }\n onChange={(status: FormSelectChoice) => {\n updateMilitary(\"status\", status ? (status.value as string) : \"\");\n updateFieldValidationErrorsByFieldId(\n \"status\",\n status ? (status.value as string) : \"\",\n verificationService,\n );\n }}\n />\n ) : null}\n <BranchOfService\n isErrored={!!fieldValidationErrors.organization}\n onChange={(choice: Organization) => {\n updateViewModelOrganization(choice, verificationService);\n updateFieldValidationErrorsByFieldId(\"organization\", choice, verificationService);\n }}\n value={{\n value: viewModel.organization.id,\n label: viewModel.organization.name,\n }}\n verificationService={verificationService}\n disabled={getFieldConfigByFieldId(\"organization\")?.disabled}\n />\n\n <div className=\"sid-names\">\n <FirstName\n value={viewModel.firstName}\n isErrored={!!fieldValidationErrors.firstName}\n disabled={getFieldConfigByFieldId(\"firstName\")?.disabled}\n onChange={(newValue) => {\n updateMilitary(\"firstName\", newValue);\n updateFieldValidationErrorsByFieldId(\"firstName\", newValue, verificationService);\n }}\n />\n <LastName\n value={viewModel.lastName}\n isErrored={!!fieldValidationErrors.lastName}\n disabled={getFieldConfigByFieldId(\"lastName\")?.disabled}\n onChange={(newValue) => {\n updateMilitary(\"lastName\", newValue);\n updateFieldValidationErrorsByFieldId(\"lastName\", newValue, verificationService);\n }}\n />\n </div>\n\n <BirthDate\n errorId={fieldValidationErrors.birthDate}\n locale={locale}\n onChange={(newValue) => {\n updateMilitary(\"birthDate\", newValue);\n updateFieldValidationErrorsByFieldId(\"birthDate\", newValue, verificationService);\n }}\n value={viewModel.birthDate}\n disabled={getFieldConfigByFieldId(\"birthDate\")?.disabled}\n />\n\n {showDischargeDate && (\n <DischargeDate\n mode={\n !!verificationService.programTheme.transitionalMilitaryValidityDays ? \"date\" : \"month\"\n }\n errorId={fieldValidationErrors.dischargeDate}\n onChange={(newValue) => {\n updateMilitary(\"dischargeDate\", newValue);\n updateFieldValidationErrorsByFieldId(\"dischargeDate\", newValue, verificationService);\n }}\n value={viewModel.dischargeDate}\n locale={locale}\n disabled={getFieldConfigByFieldId(\"dischargeDate\")?.disabled}\n isRequired={isFieldRequired(\"dischargeDate\")}\n />\n )}\n\n {verificationService.programTheme.strictMilitaryValidationEnabled && (\n <ActiveDutyStartDateComponent\n errorId={fieldValidationErrors.activeDutyStartDate}\n locale={locale}\n onChange={(newValue) => {\n updateMilitary(\"activeDutyStartDate\", newValue);\n updateFieldValidationErrorsByFieldId(\n \"activeDutyStartDate\",\n newValue,\n verificationService,\n );\n }}\n value={viewModel.activeDutyStartDate}\n disabled={getFieldConfigByFieldId(\"activeDutyStartDate\")?.disabled}\n isRequired={getFieldConfigByFieldId(\"activeDutyStartDate\")?.requireIfOptional}\n />\n )}\n\n <Email\n value={viewModel.email}\n isErrored={!!fieldValidationErrors.email}\n explanation={\n <FormattedHTMLMessage\n id=\"emailExplanation\"\n defaultMessage=\"Personal email address is recommended\"\n />\n }\n onChange={(newValue) => {\n updateMilitary(\"email\", newValue);\n updateFieldValidationErrorsByFieldId(\"email\", newValue, verificationService);\n }}\n onKeyDown={(event) => handleEmailOnKeyDown(event)}\n disabled={getFieldConfigByFieldId(\"email\")?.disabled}\n />\n\n {verificationService.programTheme.isSmsNotifierConfigured ||\n verificationService.programTheme.smsLoopEnabled ? (\n <PhoneNumber\n isRequired={!!verificationService.programTheme.smsLoopEnabled}\n value={viewModel.phoneNumber}\n isErrored={!!fieldValidationErrors.phoneNumber}\n onChange={(newValue) => {\n updateMilitary(\"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 {isFieldOptional(\"address1\") && (\n <AddressComponent\n value={viewModel.address1}\n isErrored={!!fieldValidationErrors.address1}\n errorId={fieldValidationErrors.address1}\n disabled={getFieldConfigByFieldId(\"address1\")?.disabled}\n onChange={(value) => {\n updateMilitary(\"address1\", value);\n updateFieldValidationErrorsByFieldId(\"address1\", value, verificationService);\n }}\n isRequired={getFieldConfigByFieldId(\"address1\")?.requireIfOptional}\n />\n )}\n {isFieldOptional(\"city\") && (\n <CityComponent\n value={viewModel.city}\n isErrored={!!fieldValidationErrors.city}\n errorId={fieldValidationErrors.city}\n disabled={getFieldConfigByFieldId(\"city\")?.disabled}\n onChange={(value) => {\n updateMilitary(\"city\", value);\n updateFieldValidationErrorsByFieldId(\"city\", value, verificationService);\n }}\n isRequired={getFieldConfigByFieldId(\"city\")?.requireIfOptional}\n />\n )}\n {isFieldOptional(\"state\") && (\n <StateSelectComponent\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 updateMilitary(\"state\", stateValue);\n updateFieldValidationErrorsByFieldId(\"state\", stateValue, verificationService);\n }}\n label={<FormattedHTMLMessage id=\"state\" defaultMessage=\"State\" />}\n disabled={getFieldConfigByFieldId(\"state\")?.disabled}\n isRequired={getFieldConfigByFieldId(\"state\")?.requireIfOptional}\n />\n )}\n {isFieldOptional(\"postalCode\") && (\n <PostalCodeComponent\n required={getFieldConfigByFieldId(\"postalCode\")?.requireIfOptional}\n isErrored={!!fieldValidationErrors.postalCode}\n onChange={(newValue) => {\n updateMilitary(\"postalCode\", newValue);\n updateFieldValidationErrorsByFieldId(\"postalCode\", newValue, verificationService);\n }}\n value={viewModel.postalCode}\n disabled={getFieldConfigByFieldId(\"postalCode\")?.disabled}\n />\n )}\n\n {options.customFormFields.map((config: CustomFormFieldConfig) => (\n <FormFieldCustom config={config} verificationService={verificationService} />\n ))}\n\n <MarketConsentWrapper\n verificationService={verificationService}\n isErrored={!!fieldValidationErrors.marketConsentValue}\n onChange={(newValue) => {\n updateMilitary(\"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={verificationResponse.currentStep as CollectInfoSteps}\n verificationService={verificationService}\n viewModel={viewModel}\n failedInstantMatch={failedInstantMatch}\n buttonText={\n <FormattedHTMLMessage\n id=\"step.personalInfo.submitButtonText\"\n defaultMessage=\"Verify My Military Status\"\n />\n }\n />\n </>\n </PersonalInfoWrapper>\n );\n};\n\nexport const StepCollectMilitaryPersonalInfoComponent = injectIntl(StepCollectMilitaryPersonalInfo);\nexport default StepCollectMilitaryPersonalInfoComponent;\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAQA,IAAA,KAAA,GAAA,GAAA,GAAA,MAAA;;;;;;;;;;AAwBA,YC8Ba,KAAmC,EAAE,SAAM,6BAAiC;CACvF,IAAM,IAAY,EAAoB,WAChC,EAAE,6BAA0B,GAC5B,IAAuB,EAAoB,sBAG3C,IAAqB,EAAsB,CAAoB,GAS/D,IAHJ,EAAqB,gBACnB,EAAsB,uCACtB,EAAoB,aAAa,mCAEjC,CAAC,EAAE,KAAK,gBAAgB,CAAC,IACzB,CAAC,GAEC,EACJ,mBAAmB,GACnB,oBACA,uBACE,EAAyB;EAC3B,gBAAgB,EAAqB;EACrC,aAAa,EAAsB;EACnC;EACA,uBAAuB;CACzB,CAAC,GAEK,IAAqB,EAAU,eAAe,OAC9C,IAAoB,EACxB,EAAoB,cACpB,CACF,GAEM,IAAgB,EACpB,GACA,KACG,EAA2D,qBAC3D,EAAoB,8BACjB,iBACR,GAEM,IAAS,EAAU,aAAa,OAChC,IAAU,EAAW,GAErB,IAAoB,EAAgB,eAAe,KAAK,EAAgB,eAAe,GAEvF,KAAkB,GAA0C,MAAe;EAC/E,EAAoB,gBAClB,EAAwB,GAAK,GAAO,GAAqB,CAAa,CACxE;CACF;CAIA,OAFA,EAAU,GAGR,iBAAA,GAAA,EAAA,MAAC,GAAD;EACuB;EACrB,MAAM,EAAqB;EAC3B,WAAU;YAHZ,CAKE,iBAAA,GAAA,EAAA,KAAC,GAAD;GACuB;GACrB,q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other contexts and there are no guarantees about its behavior outside of MySheerID.
5
5
  */
6
6
  /**
7
- * VERSION: 2.281.0
8
- * BUILD_TIMESTAMP: 1789081115865
9
- * BUILD_DATE: Thu Sep 10 2026 22:58:35 GMT+0000 (Coordinated Universal Time)
10
- * BUILD_COMMIT: 203c719462907e33a934929812f4c4a5a9ebdadb
7
+ * VERSION: 2.283.0
8
+ * BUILD_TIMESTAMP: 1789491616257
9
+ * BUILD_DATE: Tue Sep 15 2026 17:00:16 GMT+0000 (Coordinated Universal Time)
10
+ * BUILD_COMMIT: 3d15a02db4caf4d52123bea847235a8fe8f053dd
11
11
  */
12
12
  import { Dt as e, Gt as t, Pt as n, Vt as ee, p as te, s as ne, xt as re, zt as r } from "./intl-DwZU2l1o.js";
13
13
  import { a as i, c as a, n as o, t as s } from "./jsx-runtime-DmTh-fvV.js";
14
- import { T as ie } from "./Message-TatPfUqp.js";
15
- import { p as ae, t as oe } from "./FormFooterComponent-B4S5kWBq.js";
14
+ import { T as ie } from "./Message-Co4QmwXx.js";
15
+ import { p as ae, t as oe } from "./FormFooterComponent-DABEABHp.js";
16
16
  import { o as se } from "./programThemeGetters-CZMLVLDB.js";
17
17
  import { t as ce } from "../_mysheerid-preview.js";
18
- import { t as le } from "./useCollectFieldsEndpoint-DIGdzl-9.js";
18
+ import { t as le } from "./useCollectFieldsEndpoint-CkXsQoYj.js";
19
19
  import { _ as c, c as ue, f as de, g as l, i as u, l as fe, m as pe, n as me, o as d, s as f } from "./stepComponentHelpers-DN6dYb4A.js";
20
- import { a as p, i as m, n as h, o as g, s as _, t as v } from "./CaptchaComponent-rK7DJuE_.js";
21
- import { n as y, t as b } from "./PersonalInfoStepSubmitButton-DdFdqJ5y.js";
22
- import { t as x } from "./BirthDateComponent-DukbTLfA.js";
23
- import { t as S } from "./PostalCodeComponent-N8M35852.js";
24
- import { t as C } from "./CountryComponentWrapper-CWpapFYW.js";
25
- import { t as w } from "./City-B7F48BA8.js";
26
- import { t as T } from "./AddressComponent-R2Fd0cek.js";
27
- import { t as E } from "./ExtraMessage-C6dtskrX.js";
20
+ import { a as p, i as m, n as h, o as g, s as _, t as v } from "./CaptchaComponent-f5RlyrJ_.js";
21
+ import { n as y, t as b } from "./PersonalInfoStepSubmitButton-CmRtqNBy.js";
22
+ import { t as x } from "./BirthDateComponent-Bc9jwV4J.js";
23
+ import { t as S } from "./PostalCodeComponent-Q9b6xN4f.js";
24
+ import { t as C } from "./CountryComponentWrapper-cqOW7qGW.js";
25
+ import { t as w } from "./City-CfHBaCRV.js";
26
+ import { t as T } from "./AddressComponent-Bo0ARZTC.js";
27
+ import { t as E } from "./ExtraMessage-BYCsMo2w.js";
28
28
  import { t as D } from "./countryUtils-_E2yHebn.js";
29
- import { t as O } from "./CollegeNameComponent-DmVSMsb9.js";
30
- import { t as k } from "./StateSelectComponent-CCjM1V8L.js";
31
- import { n as A, r as j, t as M } from "./DischargeDateComponent-DbEbuZ45.js";
32
- import { t as N } from "./DriverLicenseNumberComponent-DBYCqtfS.js";
33
- import { n as P, t as he } from "./LowIncomeOrganizationComponent-DKV_n-mW.js";
34
- import { t as F } from "./StatusComponent-BxEwHBZr.js";
35
- import { t as I } from "./FirstResponderOrganizationComponent-B0auGdUs.js";
36
- import { t as L } from "./LicensedProfessionalOrganizationComponent-77hAvvk6.js";
37
- import { t as R } from "./MedicalProfessionalOrganizationComponent-C4GcG0lw.js";
38
- import { t as ge } from "./MemberIdComponent-BPywrZgT.js";
39
- import { t as _e } from "./MembershipOrganizationComponent-Buw3TP1R.js";
40
- import { t as ve } from "./TeacherSchoolComponent-BNQWnWvx.js";
41
- import { t as ye } from "./SSN-51zLp7e3.js";
29
+ import { t as O } from "./CollegeNameComponent-B8zeKprU.js";
30
+ import { t as k } from "./StateSelectComponent-6gMrhpQH.js";
31
+ import { n as A, r as j, t as M } from "./DischargeDateComponent-ChQ9YmFw.js";
32
+ import { t as N } from "./DriverLicenseNumberComponent-DYuTSEww.js";
33
+ import { n as P, t as he } from "./LowIncomeOrganizationComponent-BCYDmHXb.js";
34
+ import { t as F } from "./StatusComponent-BqF3LPIF.js";
35
+ import { t as I } from "./FirstResponderOrganizationComponent-DqK6E_Dy.js";
36
+ import { t as L } from "./LicensedProfessionalOrganizationComponent-BNX5v_8u.js";
37
+ import { t as R } from "./MedicalProfessionalOrganizationComponent-kRth84cD.js";
38
+ import { t as ge } from "./MemberIdComponent-DGbmoRTz.js";
39
+ import { t as _e } from "./MembershipOrganizationComponent-3xdgFJrW.js";
40
+ import { t as ve } from "./TeacherSchoolComponent-DdqM9CAG.js";
41
+ import { t as ye } from "./SSN-CfhYWsyu.js";
42
42
  //#region src/components/StepCollectPersonalInfo/StepCollectPersonalInfoComponent.tsx
43
43
  var z = /* @__PURE__ */ t(a(), 1), B = s(), V = i(({ intl: t, verificationService: i }) => {
44
44
  let a = i.viewModel, { updateViewModel: s, programTheme: V } = i, [H, be] = z.useState(void 0), U = (e) => H && H.some((t) => t.key === e), { fieldValidationErrors: W } = i, G = i.verificationResponse, xe = ae(G), K = (e, t) => {
@@ -1 +1 @@
1
- {"version":3,"file":"StepCollectPersonalInfo-Dc5xPzT9.js","names":[],"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 getStatusOptions,\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 { useCollectFieldsEndpoint } from \"../../lib/ServerApi/useCollectFieldsEndpoint\";\nimport { getMarketConsent } from \"../../lib/ProgramTheme/programThemeGetters\";\nimport { isCountrySelectionNeeded } from \"../FormFields/Country/countryUtils\";\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 { availableStatuses: dynamicStatuses } = useCollectFieldsEndpoint({\n verificationId: verificationResponse.verificationId,\n currentStep: verificationResponse.currentStep,\n viewModel,\n });\n\n const countryChoiceValue = viewModel.countryChoice?.value;\n const needToPickCountry = isCountrySelectionNeeded(programTheme, countryChoiceValue);\n const statusOptions = getStatusOptions(intl, dynamicStatuses ?? availableStatuses);\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),\n }}\n isErrored={!!fieldValidationErrors.status}\n errorId={`invalid${pascalCaseSegment}Status`}\n options={statusOptions}\n disabled={needToPickCountry || getFieldConfigByFieldId(\"status\")?.disabled}\n explanation={\n needToPickCountry ? (\n <FormattedHTMLMessage id=\"chooseCountry\" defaultMessage=\"Choose a country first\" />\n ) : undefined\n }\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"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4CA8mBa,IAAmC,GAliBR,EACt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wB,OAAO,GAAG;IAC7C,CAAA;IAGF,EAAgB,qBAAqB,KACpC,EAAoB,aAAa,mCAC/B,iBAAA,GAAA,EAAA,KAAC,GAAD;KACE,SAAS,EAAsB;KACvB;KACR,WAAW,MAAa;MAEtB,AADA,EAA4B,uBAAuB,CAAQ,GAC3D,EACE,uBACA,GACA,CACF;KACF;KACA,OAAO,EAAU;KACjB,UAAU,EAAwB,qBAAqB,GAAG;IAC3D,CAAA;IAGJ,GAAQ,kBAAkB,KAAK,MAC9B,iBAAA,GAAA,EAAA,KAAC,GAAD;KAAyB;KAA6B;IAAsB,CAAA,CAC7E;IAED,iBAAA,GAAA,EAAA,KAAC,GAAD;KACuB;KACrB,WAAW,CAAC,CAAC,EAAsB;KACnC,WAAW,MAAa;MAKtB,AAJA,EAA4B,YAAY;OACtC,GAAG,EAAoB,UAAU;OACjC,oBAAoB;MACtB,CAAC,GACD,EACE,sBACA,GACA,CACF;KACF;KACW;KACX,UAAU,EAAwB,oBAAoB,GAAG;IAC1D,CAAA;IAED,iBAAA,GAAA,EAAA,KAAC,GAAD;KAAmC;KAAqB,QAAO;IAAsB,CAAA;IAErF,iBAAA,GAAA,EAAA,KAAC,GAAD;KACuB;KACrB,WAAW,CAAC,CAAC,EAAsB;IACpC,CAAA;IAED,iBAAA,GAAA,EAAA,KAAC,GAAD;KACE,MAAM,EAAsB;KACP;KACV;KACS;KACpB,YACE,iBAAA,GAAA,EAAA,KAAC,GAAD;MACE,IAAG;MACH,gBAAe;KAChB,CAAA;IAEJ,CAAA;GACE;MACL,iBAAA,GAAA,EAAA,KAAC,IAAD,EAAiC,uBAAsB,CAAA,CACpD;;AAET,CAEkF"}
1
+ {"version":3,"file":"StepCollectPersonalInfo-BZNpqvPl.js","names":[],"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 getStatusOptions,\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 { useCollectFieldsEndpoint } from \"../../lib/ServerApi/useCollectFieldsEndpoint\";\nimport { getMarketConsent } from \"../../lib/ProgramTheme/programThemeGetters\";\nimport { isCountrySelectionNeeded } from \"../FormFields/Country/countryUtils\";\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 { availableStatuses: dynamicStatuses } = useCollectFieldsEndpoint({\n verificationId: verificationResponse.verificationId,\n currentStep: verificationResponse.currentStep,\n viewModel,\n });\n\n const countryChoiceValue = viewModel.countryChoice?.value;\n const needToPickCountry = isCountrySelectionNeeded(programTheme, countryChoiceValue);\n const statusOptions = getStatusOptions(intl, dynamicStatuses ?? availableStatuses);\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),\n }}\n isErrored={!!fieldValidationErrors.status}\n errorId={`invalid${pascalCaseSegment}Status`}\n options={statusOptions}\n disabled={needToPickCountry || getFieldConfigByFieldId(\"status\")?.disabled}\n explanation={\n needToPickCountry ? (\n <FormattedHTMLMessage id=\"chooseCountry\" defaultMessage=\"Choose a country first\" />\n ) : undefined\n }\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"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4CA8mBa,IAAmC,GAliBR,EACtC,SACA,6BACkC;CAClC,IAAM,IAAY,EAAoB,WAChC,EAAE,oBAAiB,oBAAiB,GAEpC,CAAC,GAAgB,MAAA,EAA2B,SAA6B,KAAA,CAAS,GAElF,KAAmB,MACvB,KAAkB,EAAe,MAAM,MAAU,EAAM,QAAQ,CAAG,GAE9D,EAAE,6BAA0B,GAC5B,IACJ,EAAoB,sBAChB,KAAqB,GAAsB,CAAoB,GAE/D,KAA+B,GAAyC,MAAe;EAO3F,EANgD,GAC9C,IACC,MAAwC;GACvC,EAAO,KAAe;EACxB,CAEc,CAAS;CAC3B,GAEM,MAAqC,MAA0C;EAKnF,EAJgD,GAC9C,GACA,CAEc,CAAS;CAC3B,GAEM,IAAS,EAAU,aAAa,OAChC,KAAU,GAAW,GAErB,EAAE,YAAS,yBAAsB,GACjC,KAAoB,EAAQ,OAAO,CAAC,EAAE,YAAY,IAAI,EAAQ,MAAM,CAAC,GAErE,UACJ,MACC,MAAY,EAAY,mBACvB,MAAY,EAAY,WACxB,MAAY,EAAY,cACxB,MAAY,EAAY,yBACxB,MAAY,EAAY,cACxB,MAAY,EAAY,gBACxB,MAAY,EAAY,WAEtB,EAAE,mBAAmB,OAAoB,GAAyB;EACtE,gBAAgB,EAAqB;EACrC,aAAa,EAAqB;EAClC;CACF,CAAC,GAEK,IAAqB,EAAU,eAAe,OAC9C,IAAoB,EAAyB,GAAc,CAAk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