@sheerid/jslib 2.303.0 → 2.304.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 (354) hide show
  1. package/_mysheerid-preview.css +4 -4
  2. package/_mysheerid-preview.js +39 -39
  3. package/chunk/{AddressComponent-Iqr2nkzk.js → AddressComponent-DIp4rtF_.js} +6 -6
  4. package/chunk/{AddressComponent-C0MNLqbV.js.map → AddressComponent-DIp4rtF_.js.map} +1 -1
  5. package/chunk/{AddressComponent-C0MNLqbV.js → AddressComponent-OHgf-_sl.js} +6 -6
  6. package/chunk/{AddressComponent-Iqr2nkzk.js.map → AddressComponent-OHgf-_sl.js.map} +1 -1
  7. package/chunk/AnnouncingHeader-CnV2m0Ak.js +4 -4
  8. package/chunk/AnnouncingHeader-zH7WLU2-.js +4 -4
  9. package/chunk/{BirthDateComponent-DX43xuNP.js → BirthDateComponent-CucjHQqp.js} +6 -6
  10. package/chunk/{BirthDateComponent-CCVzkOMc.js.map → BirthDateComponent-CucjHQqp.js.map} +1 -1
  11. package/chunk/{BirthDateComponent-CCVzkOMc.js → BirthDateComponent-oQPnVqSa.js} +6 -6
  12. package/chunk/{BirthDateComponent-DX43xuNP.js.map → BirthDateComponent-oQPnVqSa.js.map} +1 -1
  13. package/chunk/{CaptchaComponent-CZCwnbD5.js → CaptchaComponent-D98si3Jy.js} +9 -9
  14. package/chunk/{CaptchaComponent-BeK_U23J.js.map → CaptchaComponent-D98si3Jy.js.map} +1 -1
  15. package/chunk/{CaptchaComponent-BeK_U23J.js → CaptchaComponent-DqGHJA-M.js} +9 -9
  16. package/chunk/{CaptchaComponent-CZCwnbD5.js.map → CaptchaComponent-DqGHJA-M.js.map} +1 -1
  17. package/chunk/{ChangeLocaleComponent-DwBHbLKW.js → ChangeLocaleComponent-C8snL44m.js} +7 -7
  18. package/chunk/{ChangeLocaleComponent-DwBHbLKW.js.map → ChangeLocaleComponent-C8snL44m.js.map} +1 -1
  19. package/chunk/{ChangeLocaleComponent-l2sunrPk.js → ChangeLocaleComponent-CeHqgN6J.js} +7 -7
  20. package/chunk/{ChangeLocaleComponent-l2sunrPk.js.map → ChangeLocaleComponent-CeHqgN6J.js.map} +1 -1
  21. package/chunk/{City-D0Jiq-D2.js → City-7bUXB6DM.js} +6 -6
  22. package/chunk/{City-BwQWs5re.js.map → City-7bUXB6DM.js.map} +1 -1
  23. package/chunk/{City-BwQWs5re.js → City-aUxxLZ7_.js} +6 -6
  24. package/chunk/{City-D0Jiq-D2.js.map → City-aUxxLZ7_.js.map} +1 -1
  25. package/chunk/{CollegeNameComponent-DlDNav1B.js → CollegeNameComponent-B5as2wyn.js} +8 -8
  26. package/chunk/{CollegeNameComponent-BqJGJY5H.js.map → CollegeNameComponent-B5as2wyn.js.map} +1 -1
  27. package/chunk/{CollegeNameComponent-BqJGJY5H.js → CollegeNameComponent-YAs8pRV4.js} +8 -8
  28. package/chunk/{CollegeNameComponent-DlDNav1B.js.map → CollegeNameComponent-YAs8pRV4.js.map} +1 -1
  29. package/chunk/CopyToClipboardComponent-BdrpxpHJ.js +4 -4
  30. package/chunk/CopyToClipboardComponent-Dm3-3x4b.js +4 -4
  31. package/chunk/{CountryComponentWrapper-BRjVzl-k.js → CountryComponentWrapper-BTUytS2o.js} +9 -9
  32. package/chunk/{CountryComponentWrapper-BRjVzl-k.js.map → CountryComponentWrapper-BTUytS2o.js.map} +1 -1
  33. package/chunk/{CountryComponentWrapper-FbE1YIcg.js → CountryComponentWrapper-IoxuPmMC.js} +9 -9
  34. package/chunk/{CountryComponentWrapper-FbE1YIcg.js.map → CountryComponentWrapper-IoxuPmMC.js.map} +1 -1
  35. package/chunk/{DischargeDateComponent-2hFDESgo.js → DischargeDateComponent-CTZiOL4E.js} +9 -9
  36. package/chunk/{DischargeDateComponent-2hFDESgo.js.map → DischargeDateComponent-CTZiOL4E.js.map} +1 -1
  37. package/chunk/{DischargeDateComponent-DeDq2Wj7.js → DischargeDateComponent-Cy1_zOya.js} +9 -9
  38. package/chunk/{DischargeDateComponent-DeDq2Wj7.js.map → DischargeDateComponent-Cy1_zOya.js.map} +1 -1
  39. package/chunk/{DriverLicenseNumberComponent-D7VZTYj8.js → DriverLicenseNumberComponent-CxSJbkjt.js} +6 -6
  40. package/chunk/{DriverLicenseNumberComponent-BsVBlhfi.js.map → DriverLicenseNumberComponent-CxSJbkjt.js.map} +1 -1
  41. package/chunk/{DriverLicenseNumberComponent-BsVBlhfi.js → DriverLicenseNumberComponent-Rky9SG-A.js} +6 -6
  42. package/chunk/{DriverLicenseNumberComponent-D7VZTYj8.js.map → DriverLicenseNumberComponent-Rky9SG-A.js.map} +1 -1
  43. package/chunk/{EmailLoopPending-BKSSa9G1.js → EmailLoopPending-BZWT0n5I.js} +8 -8
  44. package/chunk/{EmailLoopPending-BKSSa9G1.js.map → EmailLoopPending-BZWT0n5I.js.map} +1 -1
  45. package/chunk/{EmailLoopPending-LfnqoPt_.js → EmailLoopPending-C319a8WP.js} +8 -8
  46. package/chunk/{EmailLoopPending-LfnqoPt_.js.map → EmailLoopPending-C319a8WP.js.map} +1 -1
  47. package/chunk/{ExtraMessage-DQ-khyDG.js → ExtraMessage-B58a-KYp.js} +5 -5
  48. package/chunk/{ExtraMessage-DQ-khyDG.js.map → ExtraMessage-B58a-KYp.js.map} +1 -1
  49. package/chunk/{ExtraMessage-SUFzlSCv.js → ExtraMessage-C1LGtDyk.js} +5 -5
  50. package/chunk/{ExtraMessage-SUFzlSCv.js.map → ExtraMessage-C1LGtDyk.js.map} +1 -1
  51. package/chunk/{FirstResponderOrganizationComponent-2czrRImt.js → FirstResponderOrganizationComponent-D6M_yo4M.js} +8 -8
  52. package/chunk/{FirstResponderOrganizationComponent-zwpAWGKM.js.map → FirstResponderOrganizationComponent-D6M_yo4M.js.map} +1 -1
  53. package/chunk/{FirstResponderOrganizationComponent-zwpAWGKM.js → FirstResponderOrganizationComponent-HTKkHwO4.js} +8 -8
  54. package/chunk/{FirstResponderOrganizationComponent-2czrRImt.js.map → FirstResponderOrganizationComponent-HTKkHwO4.js.map} +1 -1
  55. package/chunk/{FormFieldInputSelect-DsLOV8wM.js → FormFieldInputSelect-Cb6lHKHg.js} +5 -5
  56. package/chunk/{FormFieldInputSelect-CFnN3-Xc.js.map → FormFieldInputSelect-Cb6lHKHg.js.map} +1 -1
  57. package/chunk/{FormFieldInputSelect-CFnN3-Xc.js → FormFieldInputSelect-e0N6kc8Y.js} +5 -5
  58. package/chunk/{FormFieldInputSelect-DsLOV8wM.js.map → FormFieldInputSelect-e0N6kc8Y.js.map} +1 -1
  59. package/chunk/FormFieldLayout-D1tb5nAu.js +4 -4
  60. package/chunk/FormFieldLayout-Dt_dMiDh.js +4 -4
  61. package/chunk/FormFieldText-BU2NBm1H.js +4 -4
  62. package/chunk/FormFieldText-CsFISbyw.js +4 -4
  63. package/chunk/{FormFieldTypeahead-CX5FfZx7.js → FormFieldTypeahead-BsM6Ruie.js} +10 -10
  64. package/chunk/{FormFieldTypeahead-CX5FfZx7.js.map → FormFieldTypeahead-BsM6Ruie.js.map} +1 -1
  65. package/chunk/{FormFieldTypeahead-BqHhdA5h.js → FormFieldTypeahead-QR_lJrFB.js} +10 -10
  66. package/chunk/{FormFieldTypeahead-BqHhdA5h.js.map → FormFieldTypeahead-QR_lJrFB.js.map} +1 -1
  67. package/chunk/{FormFooterComponent-CSs6B6_O.js → FormFooterComponent-DGcfJdwH.js} +9 -9
  68. package/chunk/{FormFooterComponent-CSs6B6_O.js.map → FormFooterComponent-DGcfJdwH.js.map} +1 -1
  69. package/chunk/{FormFooterComponent-Cgq5-kvO.js → FormFooterComponent-DmKzIyrc.js} +9 -9
  70. package/chunk/{FormFooterComponent-Cgq5-kvO.js.map → FormFooterComponent-DmKzIyrc.js.map} +1 -1
  71. package/chunk/{FormSelectChoice-BM2vOG_C.js → FormSelectChoice-Bv5aMXMd.js} +6 -6
  72. package/chunk/{FormSelectChoice-BM2vOG_C.js.map → FormSelectChoice-Bv5aMXMd.js.map} +1 -1
  73. package/chunk/{FormSelectChoice-kbIiwSO2.js → FormSelectChoice-CE1QacNH.js} +6 -6
  74. package/chunk/{FormSelectChoice-kbIiwSO2.js.map → FormSelectChoice-CE1QacNH.js.map} +1 -1
  75. package/chunk/InputText-CuBi-ytU.js +4 -4
  76. package/chunk/InputText-DMztCQmi.js +4 -4
  77. package/chunk/{LicensedProfessionalOrganizationComponent-CSKSVIey.js → LicensedProfessionalOrganizationComponent-BzyJSQrq.js} +8 -8
  78. package/chunk/{LicensedProfessionalOrganizationComponent-B72AjsZA.js.map → LicensedProfessionalOrganizationComponent-BzyJSQrq.js.map} +1 -1
  79. package/chunk/{LicensedProfessionalOrganizationComponent-B72AjsZA.js → LicensedProfessionalOrganizationComponent-JXLsT4Ua.js} +8 -8
  80. package/chunk/{LicensedProfessionalOrganizationComponent-CSKSVIey.js.map → LicensedProfessionalOrganizationComponent-JXLsT4Ua.js.map} +1 -1
  81. package/chunk/{LogoComponent-DStOPcJ4.js → LogoComponent-B9xpaOmb.js} +5 -5
  82. package/chunk/{LogoComponent-BhyH_xRq.js.map → LogoComponent-B9xpaOmb.js.map} +1 -1
  83. package/chunk/{LogoComponent-BhyH_xRq.js → LogoComponent-CcqFEsge.js} +5 -5
  84. package/chunk/{LogoComponent-DStOPcJ4.js.map → LogoComponent-CcqFEsge.js.map} +1 -1
  85. package/chunk/{LowIncomeOrganizationComponent-BDrMa0E2.js → LowIncomeOrganizationComponent-DlRk_SSB.js} +9 -9
  86. package/chunk/{LowIncomeOrganizationComponent-BgOWD-ZC.js.map → LowIncomeOrganizationComponent-DlRk_SSB.js.map} +1 -1
  87. package/chunk/{LowIncomeOrganizationComponent-BgOWD-ZC.js → LowIncomeOrganizationComponent-FQA-80EB.js} +9 -9
  88. package/chunk/{LowIncomeOrganizationComponent-BDrMa0E2.js.map → LowIncomeOrganizationComponent-FQA-80EB.js.map} +1 -1
  89. package/chunk/{MedicalProfessionalOrganizationComponent-DPJg8iU1.js → MedicalProfessionalOrganizationComponent-B52FvTE1.js} +8 -8
  90. package/chunk/{MedicalProfessionalOrganizationComponent-BxH3qrmJ.js.map → MedicalProfessionalOrganizationComponent-B52FvTE1.js.map} +1 -1
  91. package/chunk/{MedicalProfessionalOrganizationComponent-BxH3qrmJ.js → MedicalProfessionalOrganizationComponent-GUaeaxBA.js} +8 -8
  92. package/chunk/{MedicalProfessionalOrganizationComponent-DPJg8iU1.js.map → MedicalProfessionalOrganizationComponent-GUaeaxBA.js.map} +1 -1
  93. package/chunk/{MemberIdComponent-OOPddp4y.js → MemberIdComponent-CKOJTsUZ.js} +6 -6
  94. package/chunk/{MemberIdComponent-OOPddp4y.js.map → MemberIdComponent-CKOJTsUZ.js.map} +1 -1
  95. package/chunk/{MemberIdComponent-oL_pc9Fd.js → MemberIdComponent-DKvGJ5w8.js} +6 -6
  96. package/chunk/{MemberIdComponent-oL_pc9Fd.js.map → MemberIdComponent-DKvGJ5w8.js.map} +1 -1
  97. package/chunk/{MembershipOrganizationComponent-BtHBKZS0.js → MembershipOrganizationComponent-BsP0oS9k.js} +8 -8
  98. package/chunk/{MembershipOrganizationComponent-BtHBKZS0.js.map → MembershipOrganizationComponent-BsP0oS9k.js.map} +1 -1
  99. package/chunk/{MembershipOrganizationComponent-DKvB2ONr.js → MembershipOrganizationComponent-DlERUS3X.js} +8 -8
  100. package/chunk/{MembershipOrganizationComponent-DKvB2ONr.js.map → MembershipOrganizationComponent-DlERUS3X.js.map} +1 -1
  101. package/chunk/{Message-CpaZwHl9.js → Message-BToMuDnF.js} +5 -5
  102. package/chunk/{Message-CpaZwHl9.js.map → Message-BToMuDnF.js.map} +1 -1
  103. package/chunk/{Message-COzkFETu.js → Message-BcRlg1D8.js} +5 -5
  104. package/chunk/{Message-COzkFETu.js.map → Message-BcRlg1D8.js.map} +1 -1
  105. package/chunk/Onfido-CTCgAwnB.js +4 -4
  106. package/chunk/{PersonalInfoStepSubmitButton-B4xXqxuH.js → PersonalInfoStepSubmitButton-B3cCavK_.js} +8 -8
  107. package/chunk/{PersonalInfoStepSubmitButton-B4xXqxuH.js.map → PersonalInfoStepSubmitButton-B3cCavK_.js.map} +1 -1
  108. package/chunk/{PersonalInfoStepSubmitButton-DdY477K7.js → PersonalInfoStepSubmitButton-DvsmVrOf.js} +8 -8
  109. package/chunk/{PersonalInfoStepSubmitButton-DdY477K7.js.map → PersonalInfoStepSubmitButton-DvsmVrOf.js.map} +1 -1
  110. package/chunk/{PersonalInfoStepWrapper-ZSbYW8X3.js → PersonalInfoStepWrapper-B58Hl9Sp.js} +5 -5
  111. package/chunk/{PersonalInfoStepWrapper-ZSbYW8X3.js.map → PersonalInfoStepWrapper-B58Hl9Sp.js.map} +1 -1
  112. package/chunk/{PersonalInfoStepWrapper-I5LL6qWv.js → PersonalInfoStepWrapper-BvUX_IV3.js} +6 -6
  113. package/chunk/{PersonalInfoStepWrapper-I5LL6qWv.js.map → PersonalInfoStepWrapper-BvUX_IV3.js.map} +1 -1
  114. package/chunk/{PostalCodeComponent-D78vjcv_.js → PostalCodeComponent-CrWWddQS.js} +6 -6
  115. package/chunk/{PostalCodeComponent-CzSv-hLR.js.map → PostalCodeComponent-CrWWddQS.js.map} +1 -1
  116. package/chunk/{PostalCodeComponent-CzSv-hLR.js → PostalCodeComponent-FVc2Nso4.js} +6 -6
  117. package/chunk/{PostalCodeComponent-D78vjcv_.js.map → PostalCodeComponent-FVc2Nso4.js.map} +1 -1
  118. package/chunk/{SSN-BVqvyxxj.js → SSN-5QKevvwg.js} +6 -6
  119. package/chunk/{SSN-BEYbIs4i.js.map → SSN-5QKevvwg.js.map} +1 -1
  120. package/chunk/{SSN-BEYbIs4i.js → SSN-rfoKEogO.js} +6 -6
  121. package/chunk/{SSN-BVqvyxxj.js.map → SSN-rfoKEogO.js.map} +1 -1
  122. package/chunk/{StateSelectComponent-jAsysEGR.js → StateSelectComponent-BaUHQef8.js} +7 -7
  123. package/chunk/{StateSelectComponent-Dnqp7nL4.js.map → StateSelectComponent-BaUHQef8.js.map} +1 -1
  124. package/chunk/{StateSelectComponent-Dnqp7nL4.js → StateSelectComponent-Bl0sEDiJ.js} +7 -7
  125. package/chunk/{StateSelectComponent-jAsysEGR.js.map → StateSelectComponent-Bl0sEDiJ.js.map} +1 -1
  126. package/chunk/{StatusComponent-B4IbsfFv.js → StatusComponent-CXUgeCAX.js} +7 -7
  127. package/chunk/{StatusComponent-B4IbsfFv.js.map → StatusComponent-CXUgeCAX.js.map} +1 -1
  128. package/chunk/{StatusComponent-BtzBYIzi.js → StatusComponent-DoH2jBJe.js} +7 -7
  129. package/chunk/{StatusComponent-BtzBYIzi.js.map → StatusComponent-DoH2jBJe.js.map} +1 -1
  130. package/chunk/{StepAgePersonalInfo-SUYKCYCd.js → StepAgePersonalInfo-CjTZNsVe.js} +18 -18
  131. package/chunk/{StepAgePersonalInfo-Ds6b-w3n.js.map → StepAgePersonalInfo-CjTZNsVe.js.map} +1 -1
  132. package/chunk/{StepAgePersonalInfo-Ds6b-w3n.js → StepAgePersonalInfo-DYHJqeaB.js} +18 -18
  133. package/chunk/{StepAgePersonalInfo-SUYKCYCd.js.map → StepAgePersonalInfo-DYHJqeaB.js.map} +1 -1
  134. package/chunk/StepCard-DJR-l3sW.js +4 -4
  135. package/chunk/StepCard-wwTRGIhn.js +4 -4
  136. package/chunk/{StepCollectIdentifier-DPnf9Cmy.js → StepCollectIdentifier-BxkG6FC9.js} +7 -7
  137. package/chunk/{StepCollectIdentifier-DPnf9Cmy.js.map → StepCollectIdentifier-BxkG6FC9.js.map} +1 -1
  138. package/chunk/{StepCollectIdentifier-BLbccnb2.js → StepCollectIdentifier-DE0gBqAY.js} +7 -7
  139. package/chunk/{StepCollectIdentifier-BLbccnb2.js.map → StepCollectIdentifier-DE0gBqAY.js.map} +1 -1
  140. package/chunk/{StepCollectMilitaryPersonalInfoComponent-Bwg-sSDu.js → StepCollectMilitaryPersonalInfoComponent--Ie4B0yl.js} +22 -22
  141. package/chunk/{StepCollectMilitaryPersonalInfoComponent-Bwg-sSDu.js.map → StepCollectMilitaryPersonalInfoComponent--Ie4B0yl.js.map} +1 -1
  142. package/chunk/{StepCollectMilitaryPersonalInfoComponent-DHB17n2V.js → StepCollectMilitaryPersonalInfoComponent-DfiGcf5I.js} +22 -22
  143. package/chunk/{StepCollectMilitaryPersonalInfoComponent-DHB17n2V.js.map → StepCollectMilitaryPersonalInfoComponent-DfiGcf5I.js.map} +1 -1
  144. package/chunk/{StepCollectPersonalInfo-D8gZT28k.js → StepCollectPersonalInfo-lnriADQY.js} +32 -32
  145. package/chunk/{StepCollectPersonalInfo-D8gZT28k.js.map → StepCollectPersonalInfo-lnriADQY.js.map} +1 -1
  146. package/chunk/{StepCollectPersonalInfo-DgsHZW8E.js → StepCollectPersonalInfo-vwWUcMyH.js} +32 -32
  147. package/chunk/{StepCollectPersonalInfo-DgsHZW8E.js.map → StepCollectPersonalInfo-vwWUcMyH.js.map} +1 -1
  148. package/chunk/{StepCompleteAuthentication-DOywOfPZ.js → StepCompleteAuthentication-BJTAm52g.js} +6 -6
  149. package/chunk/{StepCompleteAuthentication-DOywOfPZ.js.map → StepCompleteAuthentication-BJTAm52g.js.map} +1 -1
  150. package/chunk/{StepCompleteAuthentication-DWg90te_.js → StepCompleteAuthentication-BUA2xrtE.js} +6 -6
  151. package/chunk/{StepCompleteAuthentication-DWg90te_.js.map → StepCompleteAuthentication-BUA2xrtE.js.map} +1 -1
  152. package/chunk/{StepConsolation-DPrOL4xP.js → StepConsolation-CRoBFGTd.js} +6 -6
  153. package/chunk/{StepConsolation-DPrOL4xP.js.map → StepConsolation-CRoBFGTd.js.map} +1 -1
  154. package/chunk/{StepConsolation-D_32ygMO.js → StepConsolation-Dw4IOp9l.js} +6 -6
  155. package/chunk/{StepConsolation-D_32ygMO.js.map → StepConsolation-Dw4IOp9l.js.map} +1 -1
  156. package/chunk/{StepDocUpload-DYPWRKrn.js → StepDocUpload-BUzQ9g81.js} +492 -1110
  157. package/chunk/StepDocUpload-BUzQ9g81.js.map +1 -0
  158. package/chunk/StepDocUpload-xEtdWGcK.js +1674 -0
  159. package/chunk/StepDocUpload-xEtdWGcK.js.map +1 -0
  160. package/chunk/{StepDriverLicensePersonalInfoComponent-Dh_l_qlV.js → StepDriverLicensePersonalInfoComponent-BxUpMImU.js} +13 -13
  161. package/chunk/{StepDriverLicensePersonalInfoComponent-Dh_l_qlV.js.map → StepDriverLicensePersonalInfoComponent-BxUpMImU.js.map} +1 -1
  162. package/chunk/{StepDriverLicensePersonalInfoComponent-gri_r5_Z.js → StepDriverLicensePersonalInfoComponent-Dx_8OM3-.js} +13 -13
  163. package/chunk/{StepDriverLicensePersonalInfoComponent-gri_r5_Z.js.map → StepDriverLicensePersonalInfoComponent-Dx_8OM3-.js.map} +1 -1
  164. package/chunk/{StepEmailLoop-B0u3Krt9.js → StepEmailLoop-Nw-rJgsm.js} +9 -9
  165. package/chunk/{StepEmailLoop-B0u3Krt9.js.map → StepEmailLoop-Nw-rJgsm.js.map} +1 -1
  166. package/chunk/{StepEmailLoop-BBG2gPCO.js → StepEmailLoop-mfub_mok.js} +9 -9
  167. package/chunk/{StepEmailLoop-BBG2gPCO.js.map → StepEmailLoop-mfub_mok.js.map} +1 -1
  168. package/chunk/{StepEmploymentPersonalInfo-DKt3-HYk.js → StepEmploymentPersonalInfo-DMkrJYj7.js} +18 -18
  169. package/chunk/{StepEmploymentPersonalInfo-BQJx3bBq.js.map → StepEmploymentPersonalInfo-DMkrJYj7.js.map} +1 -1
  170. package/chunk/{StepEmploymentPersonalInfo-BQJx3bBq.js → StepEmploymentPersonalInfo-jfNudNTZ.js} +18 -18
  171. package/chunk/{StepEmploymentPersonalInfo-DKt3-HYk.js.map → StepEmploymentPersonalInfo-jfNudNTZ.js.map} +1 -1
  172. package/chunk/{StepFirstResponderPersonalInfo-B9oRZLtk.js → StepFirstResponderPersonalInfo-CFqJv92p.js} +19 -19
  173. package/chunk/{StepFirstResponderPersonalInfo-B9oRZLtk.js.map → StepFirstResponderPersonalInfo-CFqJv92p.js.map} +1 -1
  174. package/chunk/{StepFirstResponderPersonalInfo-Dbf4-HTh.js → StepFirstResponderPersonalInfo-CYFtsRm-.js} +19 -19
  175. package/chunk/{StepFirstResponderPersonalInfo-Dbf4-HTh.js.map → StepFirstResponderPersonalInfo-CYFtsRm-.js.map} +1 -1
  176. package/chunk/{StepGeneralIdentityPersonalInfoComponent-D6gpx-Sa.js → StepGeneralIdentityPersonalInfoComponent-BaVIwPSY.js} +16 -16
  177. package/chunk/{StepGeneralIdentityPersonalInfoComponent-D6gpx-Sa.js.map → StepGeneralIdentityPersonalInfoComponent-BaVIwPSY.js.map} +1 -1
  178. package/chunk/{StepGeneralIdentityPersonalInfoComponent-DVzFhAXs.js → StepGeneralIdentityPersonalInfoComponent-k27Awiqm.js} +16 -16
  179. package/chunk/{StepGeneralIdentityPersonalInfoComponent-DVzFhAXs.js.map → StepGeneralIdentityPersonalInfoComponent-k27Awiqm.js.map} +1 -1
  180. package/chunk/{StepHybridIdentityPersonalInfoComponent-CI8UE5-z.js → StepHybridIdentityPersonalInfoComponent-D0luWaZH.js} +17 -17
  181. package/chunk/{StepHybridIdentityPersonalInfoComponent-CI8UE5-z.js.map → StepHybridIdentityPersonalInfoComponent-D0luWaZH.js.map} +1 -1
  182. package/chunk/{StepHybridIdentityPersonalInfoComponent-Dkv3zrty.js → StepHybridIdentityPersonalInfoComponent-k2Y3yuVP.js} +17 -17
  183. package/chunk/{StepHybridIdentityPersonalInfoComponent-Dkv3zrty.js.map → StepHybridIdentityPersonalInfoComponent-k2Y3yuVP.js.map} +1 -1
  184. package/chunk/{StepIDCheckLoop-D6bvCc5J.js → StepIDCheckLoop-BtLu63gH.js} +5 -5
  185. package/chunk/{StepIDCheckLoop-D6bvCc5J.js.map → StepIDCheckLoop-BtLu63gH.js.map} +1 -1
  186. package/chunk/{StepIDCheckLoop-YepJTceW.js → StepIDCheckLoop-qMDVYGF6.js} +5 -5
  187. package/chunk/{StepIDCheckLoop-YepJTceW.js.map → StepIDCheckLoop-qMDVYGF6.js.map} +1 -1
  188. package/chunk/{StepIDCheckLoopOnfido-BwhrprLa.js → StepIDCheckLoopOnfido-Cn2taSRq.js} +7 -7
  189. package/chunk/{StepIDCheckLoopOnfido-BwhrprLa.js.map → StepIDCheckLoopOnfido-Cn2taSRq.js.map} +1 -1
  190. package/chunk/{StepIDCheckLoopOnfido-BEM2_gQK.js → StepIDCheckLoopOnfido-D9hJvwHI.js} +7 -7
  191. package/chunk/{StepIDCheckLoopOnfido-BEM2_gQK.js.map → StepIDCheckLoopOnfido-D9hJvwHI.js.map} +1 -1
  192. package/chunk/{StepIDCheckLoopRegula-CtmJVnya.js → StepIDCheckLoopRegula-B0gSu2f2.js} +7 -7
  193. package/chunk/{StepIDCheckLoopRegula-CtmJVnya.js.map → StepIDCheckLoopRegula-B0gSu2f2.js.map} +1 -1
  194. package/chunk/{StepIDCheckLoopRegula-iHvaRIvX.js → StepIDCheckLoopRegula-C5taOj9i.js} +7 -7
  195. package/chunk/{StepIDCheckLoopRegula-iHvaRIvX.js.map → StepIDCheckLoopRegula-C5taOj9i.js.map} +1 -1
  196. package/chunk/{StepLicensedProfessionalPersonalInfo-CEKAzprw.js → StepLicensedProfessionalPersonalInfo-Db4rc2F6.js} +19 -19
  197. package/chunk/{StepLicensedProfessionalPersonalInfo-CEKAzprw.js.map → StepLicensedProfessionalPersonalInfo-Db4rc2F6.js.map} +1 -1
  198. package/chunk/{StepLicensedProfessionalPersonalInfo-DA8b1HU5.js → StepLicensedProfessionalPersonalInfo-tWD68oFU.js} +19 -19
  199. package/chunk/{StepLicensedProfessionalPersonalInfo-DA8b1HU5.js.map → StepLicensedProfessionalPersonalInfo-tWD68oFU.js.map} +1 -1
  200. package/chunk/{StepLowIncomePersonalInfo-BsUMysBy.js → StepLowIncomePersonalInfo-C8ZXtF9i.js} +22 -22
  201. package/chunk/{StepLowIncomePersonalInfo-BsUMysBy.js.map → StepLowIncomePersonalInfo-C8ZXtF9i.js.map} +1 -1
  202. package/chunk/{StepLowIncomePersonalInfo-DopFBW6a.js → StepLowIncomePersonalInfo-DTQzLFYh.js} +22 -22
  203. package/chunk/{StepLowIncomePersonalInfo-DopFBW6a.js.map → StepLowIncomePersonalInfo-DTQzLFYh.js.map} +1 -1
  204. package/chunk/{StepMedicalProfessionalPersonalInfo-D1c9fEPF.js → StepMedicalProfessionalPersonalInfo-CEWvfZIo.js} +20 -20
  205. package/chunk/{StepMedicalProfessionalPersonalInfo-D1c9fEPF.js.map → StepMedicalProfessionalPersonalInfo-CEWvfZIo.js.map} +1 -1
  206. package/chunk/{StepMedicalProfessionalPersonalInfo-DOEa4g_4.js → StepMedicalProfessionalPersonalInfo-D81j6Sg7.js} +20 -20
  207. package/chunk/{StepMedicalProfessionalPersonalInfo-DOEa4g_4.js.map → StepMedicalProfessionalPersonalInfo-D81j6Sg7.js.map} +1 -1
  208. package/chunk/{StepMemberPersonalInfo-C8bIy47a.js → StepMemberPersonalInfo-B__oOkWE.js} +15 -15
  209. package/chunk/{StepMemberPersonalInfo-C8bIy47a.js.map → StepMemberPersonalInfo-B__oOkWE.js.map} +1 -1
  210. package/chunk/{StepMemberPersonalInfo-Ci5ArejV.js → StepMemberPersonalInfo-Idz-W2bu.js} +15 -15
  211. package/chunk/{StepMemberPersonalInfo-Ci5ArejV.js.map → StepMemberPersonalInfo-Idz-W2bu.js.map} +1 -1
  212. package/chunk/{StepMoverPersonalInfo-CbUoVcqf.js → StepMoverPersonalInfo-BItSb2hF.js} +13 -13
  213. package/chunk/{StepMoverPersonalInfo-CbUoVcqf.js.map → StepMoverPersonalInfo-BItSb2hF.js.map} +1 -1
  214. package/chunk/{StepMoverPersonalInfo-DfmFX6fV.js → StepMoverPersonalInfo-EJ5M2CDv.js} +13 -13
  215. package/chunk/{StepMoverPersonalInfo-DfmFX6fV.js.map → StepMoverPersonalInfo-EJ5M2CDv.js.map} +1 -1
  216. package/chunk/{StepOverrideComponent-DcQqNZWk.js → StepOverrideComponent-BABa7V4t.js} +8 -8
  217. package/chunk/{StepOverrideComponent-DcQqNZWk.js.map → StepOverrideComponent-BABa7V4t.js.map} +1 -1
  218. package/chunk/{StepOverrideComponent-C17BBaf_.js → StepOverrideComponent-Cfltty36.js} +8 -8
  219. package/chunk/{StepOverrideComponent-C17BBaf_.js.map → StepOverrideComponent-Cfltty36.js.map} +1 -1
  220. package/chunk/{StepSMSLoop-QGqN6LkJ.js → StepSMSLoop-DfGhOhOr.js} +5 -5
  221. package/chunk/{StepSMSLoop-D7okg8tL.js.map → StepSMSLoop-DfGhOhOr.js.map} +1 -1
  222. package/chunk/{StepSMSLoop-D7okg8tL.js → StepSMSLoop-vn3IgTp0.js} +5 -5
  223. package/chunk/{StepSMSLoop-QGqN6LkJ.js.map → StepSMSLoop-vn3IgTp0.js.map} +1 -1
  224. package/chunk/StepSSO-BGHCbduX.js +4 -4
  225. package/chunk/StepSSO-ZHByQpHa.js +4 -4
  226. package/chunk/{StepSocialSecurityNumber-BkjNMHHH.js → StepSocialSecurityNumber-BEhNPFMA.js} +9 -9
  227. package/chunk/{StepSocialSecurityNumber-BkjNMHHH.js.map → StepSocialSecurityNumber-BEhNPFMA.js.map} +1 -1
  228. package/chunk/{StepSocialSecurityNumber-DWvUkbqi.js → StepSocialSecurityNumber-CjG9oKtT.js} +9 -9
  229. package/chunk/{StepSocialSecurityNumber-DWvUkbqi.js.map → StepSocialSecurityNumber-CjG9oKtT.js.map} +1 -1
  230. package/chunk/{StepStudentPersonalInfo-yy8Rhhg_.js → StepStudentPersonalInfo-6sEXvlbs.js} +19 -19
  231. package/chunk/{StepStudentPersonalInfo-DNRFiafL.js.map → StepStudentPersonalInfo-6sEXvlbs.js.map} +1 -1
  232. package/chunk/{StepStudentPersonalInfo-DNRFiafL.js → StepStudentPersonalInfo-NYJN6QM4.js} +19 -19
  233. package/chunk/{StepStudentPersonalInfo-yy8Rhhg_.js.map → StepStudentPersonalInfo-NYJN6QM4.js.map} +1 -1
  234. package/chunk/{StepSuccess-CXAweBRH.js → StepSuccess-BSGiXxfN.js} +8 -8
  235. package/chunk/{StepSuccess-CO8w4TsU.js.map → StepSuccess-BSGiXxfN.js.map} +1 -1
  236. package/chunk/{StepSuccess-CO8w4TsU.js → StepSuccess-DXYPrAoS.js} +8 -8
  237. package/chunk/{StepSuccess-CXAweBRH.js.map → StepSuccess-DXYPrAoS.js.map} +1 -1
  238. package/chunk/{StepTeacherPersonalInfo-CPkBbnDT.js → StepTeacherPersonalInfo-BnUPd7A_.js} +16 -16
  239. package/chunk/{StepTeacherPersonalInfo-CPkBbnDT.js.map → StepTeacherPersonalInfo-BnUPd7A_.js.map} +1 -1
  240. package/chunk/{StepTeacherPersonalInfo-DRmmTTUZ.js → StepTeacherPersonalInfo-DH19GPsU.js} +16 -16
  241. package/chunk/{StepTeacherPersonalInfo-DRmmTTUZ.js.map → StepTeacherPersonalInfo-DH19GPsU.js.map} +1 -1
  242. package/chunk/StepThirdPartyLoop-BrKuZcYb.js +4 -4
  243. package/chunk/StepThirdPartyLoop-CbFTIlwP.js +4 -4
  244. package/chunk/{TeacherSchoolComponent-DF0D6H7e.js → TeacherSchoolComponent-I15vrTCE.js} +8 -8
  245. package/chunk/{TeacherSchoolComponent-BE0hBAdX.js.map → TeacherSchoolComponent-I15vrTCE.js.map} +1 -1
  246. package/chunk/{TeacherSchoolComponent-BE0hBAdX.js → TeacherSchoolComponent-pnmySE96.js} +8 -8
  247. package/chunk/{TeacherSchoolComponent-DF0D6H7e.js.map → TeacherSchoolComponent-pnmySE96.js.map} +1 -1
  248. package/chunk/TestingRouteOverrides-Bx1n-xCR.js +4 -4
  249. package/chunk/TestingRouteOverrides-DHe5BulD.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 +4 -4
  255. package/chunk/{countryUtils-DSXgtztB.js → countryUtils-CdNf-73_.js} +5 -5
  256. package/chunk/{countryUtils-BRnNbiyi.js.map → countryUtils-CdNf-73_.js.map} +1 -1
  257. package/chunk/countryUtils-CniUDXes.js +12 -0
  258. package/chunk/{countryUtils-DSXgtztB.js.map → countryUtils-CniUDXes.js.map} +1 -1
  259. package/chunk/cs-Chh7FAGt.js +4 -4
  260. package/chunk/da-DwrVoxto.js +4 -4
  261. package/chunk/de-IWGZLhgY.js +4 -4
  262. package/chunk/{downshift.esm-C3kjgXh1.js → downshift.esm-D0Q-rG8L.js} +5 -5
  263. package/chunk/{downshift.esm-C3kjgXh1.js.map → downshift.esm-D0Q-rG8L.js.map} +1 -1
  264. package/chunk/{downshift.esm-69QM26L8.js → downshift.esm-DUM3sJ7L.js} +5 -5
  265. package/chunk/{downshift.esm-69QM26L8.js.map → downshift.esm-DUM3sJ7L.js.map} +1 -1
  266. package/chunk/el-DbDcvSPJ.js +4 -4
  267. package/chunk/empties-C5H0EoXJ.js +4 -4
  268. package/chunk/empties-DaNcqYFb.js +4 -4
  269. package/chunk/en-GB-CNQ8Ww2j.js +4 -4
  270. package/chunk/es-ES-DWimqEZ_.js +4 -4
  271. package/chunk/es-qhC-seq5.js +4 -4
  272. package/chunk/et-yF9G-Mym.js +4 -4
  273. package/chunk/eventEmitter-CSG6jR7V.js +4 -4
  274. package/chunk/fa-BcdSf7og.js +4 -4
  275. package/chunk/fi-D-IP_KHm.js +4 -4
  276. package/chunk/fr-BmUuYxk0.js +4 -4
  277. package/chunk/fr-CA-DVQ4xmzZ.js +4 -4
  278. package/chunk/ga-DuZycND3.js +4 -4
  279. package/chunk/hi-IN-l6Rn5Ewm.js +4 -4
  280. package/chunk/{hooks-B4mmDpuv.js → hooks-BF7oPgCe.js} +4 -5
  281. package/chunk/{hooks-B4mmDpuv.js.map → hooks-BF7oPgCe.js.map} +1 -1
  282. package/chunk/{hooks-CMAl6OEH.js → hooks-Bqhz6E9V.js} +4 -5
  283. package/chunk/{hooks-CMAl6OEH.js.map → hooks-Bqhz6E9V.js.map} +1 -1
  284. package/chunk/hr-BtqyDzDB.js +4 -4
  285. package/chunk/hu-C6syKJfb.js +4 -4
  286. package/chunk/id-GgI-Z2a5.js +4 -4
  287. package/chunk/intl-DYOqmiaL.js +4 -4
  288. package/chunk/is-CvmKEON9.js +4 -4
  289. package/chunk/it-CnmveGgC.js +4 -4
  290. package/chunk/iw-DFUYHkxF.js +4 -4
  291. package/chunk/ja-CjVb2tWW.js +4 -4
  292. package/chunk/jsx-runtime-DQO6A867.js +4 -4
  293. package/chunk/jsx-runtime-DtApx7WX.js +4 -4
  294. package/chunk/kk-Dvz4nK6K.js +4 -4
  295. package/chunk/ko-DzOqBMGC.js +4 -4
  296. package/chunk/lo-C2WPq55d.js +4 -4
  297. package/chunk/lt-BSDYvjTF.js +4 -4
  298. package/chunk/lv-CefDPT-M.js +4 -4
  299. package/chunk/mockProgramTheme-CBqgtg7A.js +4 -4
  300. package/chunk/mocks-D8UIPfvt.js +4 -4
  301. package/chunk/mocks-denu632X.js +4 -4
  302. package/chunk/ms-BjestZxy.js +4 -4
  303. package/chunk/nl-B1FyUfCT.js +4 -4
  304. package/chunk/nl-BE-CbeAd3nq.js +4 -4
  305. package/chunk/no-Dr633Ddi.js +4 -4
  306. package/chunk/options-DsRV5fwh.js +4 -4
  307. package/chunk/pl-UYTjMIq_.js +4 -4
  308. package/chunk/{programThemeGetters-DFcbGSAA.js → programThemeGetters-BD2PXz0k.js} +5 -5
  309. package/chunk/{programThemeGetters-DFcbGSAA.js.map → programThemeGetters-BD2PXz0k.js.map} +1 -1
  310. package/chunk/{programThemeGetters-DJcD6MLy.js → programThemeGetters-DTXDRpA2.js} +5 -5
  311. package/chunk/{programThemeGetters-DJcD6MLy.js.map → programThemeGetters-DTXDRpA2.js.map} +1 -1
  312. package/chunk/pt-BR-C8SYMT-J.js +4 -4
  313. package/chunk/pt-uH-M3GdN.js +4 -4
  314. package/chunk/refs-Mq0rtW9K.js +4 -4
  315. package/chunk/ro-CAOSXZ7h.js +4 -4
  316. package/chunk/ru-iwYoEydL.js +4 -4
  317. package/chunk/runtimeTypes-B2AGNJMT.js +4 -4
  318. package/chunk/sk-DYYNV3zw.js +4 -4
  319. package/chunk/sl-D_-eeM5N.js +4 -4
  320. package/chunk/sr-BTi9_anL.js +4 -4
  321. package/chunk/{stepComponentHelpers-D_F4GOcs.js → stepComponentHelpers-BElircEH.js} +5 -5
  322. package/chunk/{stepComponentHelpers-Bo_ASl0b.js.map → stepComponentHelpers-BElircEH.js.map} +1 -1
  323. package/chunk/{stepComponentHelpers-Bo_ASl0b.js → stepComponentHelpers-DOISo3yJ.js} +5 -5
  324. package/chunk/{stepComponentHelpers-D_F4GOcs.js.map → stepComponentHelpers-DOISo3yJ.js.map} +1 -1
  325. package/chunk/strings-DWLVdUcm.js +4 -4
  326. package/chunk/sv-DRwY4shG.js +4 -4
  327. package/chunk/sw-Bvj2mYmM.js +4 -4
  328. package/chunk/ta-CmtaYoNe.js +4 -4
  329. package/chunk/th-12r2yKkJ.js +4 -4
  330. package/chunk/tl-BGNfO7md.js +4 -4
  331. package/chunk/tr-DH2ZSJhs.js +4 -4
  332. package/chunk/uk-CELBZlTd.js +4 -4
  333. package/chunk/ur-MR8DTbmd.js +4 -4
  334. package/chunk/{useCollectFieldsEndpoint-Cqk7nVm8.js → useCollectFieldsEndpoint-DODNTDbS.js} +6 -6
  335. package/chunk/{useCollectFieldsEndpoint-Cqk7nVm8.js.map → useCollectFieldsEndpoint-DODNTDbS.js.map} +1 -1
  336. package/chunk/{useCollectFieldsEndpoint-moJiW3Nn.js → useCollectFieldsEndpoint-DbalWE2_.js} +6 -6
  337. package/chunk/{useCollectFieldsEndpoint-moJiW3Nn.js.map → useCollectFieldsEndpoint-DbalWE2_.js.map} +1 -1
  338. package/chunk/{useMetrics-CrpCzbvt.js → useMetrics-XHSibxjX.js} +5 -5
  339. package/chunk/{useMetrics-CrpCzbvt.js.map → useMetrics-XHSibxjX.js.map} +1 -1
  340. package/chunk/{useMetrics-kG8AjSPf.js → useMetrics-f-F1IOc3.js} +5 -5
  341. package/chunk/{useMetrics-kG8AjSPf.js.map → useMetrics-f-F1IOc3.js.map} +1 -1
  342. package/chunk/vi-DtZ-SqD5.js +4 -4
  343. package/chunk/zh-DjyVyYac.js +4 -4
  344. package/chunk/zh-HK-CN1HarHq.js +4 -4
  345. package/chunk/zu-DPhgIh1z.js +4 -4
  346. package/package.json +1 -1
  347. package/sheerid-install.css +4 -4
  348. package/sheerid-install.js +4 -4
  349. package/sheerid.css +5 -5
  350. package/sheerid.js +39 -39
  351. package/chunk/StepDocUpload-BvamM1Dm.js +0 -2292
  352. package/chunk/StepDocUpload-BvamM1Dm.js.map +0 -1
  353. package/chunk/StepDocUpload-DYPWRKrn.js.map +0 -1
  354. package/chunk/countryUtils-BRnNbiyi.js +0 -12
@@ -1 +1 @@
1
- {"version":3,"file":"StepCollectMilitaryPersonalInfoComponent-Bwg-sSDu.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","import { FormattedHTMLMessage } from \"react-intl\";\n\nimport { useFormSelectChoice } from \"@/components/FormInputs/InputSelect/InputSelectComponent\";\n\nimport { type CollectInfoSteps, VerificationStepsEnum } from \"../../lib/types/runtimeTypes\";\nimport { hasFailedInstantMatch } from \"../../lib/VerificationService/VerificationServiceHelpers\";\nimport { resetRefs } from \"../../lib/refs/refs\";\nimport {\n type VerificationService,\n type FormSelectChoice,\n type Organization,\n type MilitaryPersonalInfoViewModel,\n type ActiveMilitaryPersonalInfoResponse,\n type InactiveMilitaryPersonalInfoResponse,\n type MilitaryStatusResponse,\n type CustomFormFieldConfig,\n type FieldDescription,\n type State,\n type MilitaryStatus,\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 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 verificationService: VerificationService;\n}\n\nexport default function StepCollectMilitaryPersonalInfoComponent({ 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 = useFormSelectChoice(\n (dynamicStatuses ??\n (verificationResponse as unknown as MilitaryStatusResponse).availableStatuses ??\n (verificationService.previousVerificationResponse as MilitaryStatusResponse)\n ?.availableStatuses) as MilitaryStatus[],\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={statusOptions.find((option) => option.value === viewModel.status)}\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 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"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AAQA,IAAa,KACX,GACA,GACA,GACA,MACkC;CAClC,IAAM,IAAY,EAAoB;CACtC,OAAO,EAAQ,IAAY,MAAyC;EAClE,EAAO,KAAe;EAGtB,IAAM,IAAwB,CAAC,QAAQ;EASvC,AARA,EAAM,0BAA0B,EAAM,0BAA0B,CAAC,GAAG,QACjE,MAAO,CAAC,EAAsB,SAAS,CAAE,CAC5C,IAEI,CAAC,KAAqB,EAAkB,WAAW,MACrD,EAAM,uBAAuB,KAAK,QAAQ,GAGxC,MAAQ,aACV,EAAM,eAAe;GAAE,IAAI;GAAG,MAAM;EAAG;CAE3C,CAAC;AACH;AC2BA,SAAwB,EAAyC,EAAE,0BAA8B;CAC/F,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,EACnB,KACE,EAA2D,qBAC3D,EAAoB,8BACjB,iBACR,GAEM,IAAS,EAA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AAA;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"}
1
+ {"version":3,"file":"StepCollectMilitaryPersonalInfoComponent--Ie4B0yl.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","import { FormattedHTMLMessage } from \"react-intl\";\n\nimport { useFormSelectChoice } from \"@/components/FormInputs/InputSelect/InputSelectComponent\";\n\nimport { type CollectInfoSteps, VerificationStepsEnum } from \"../../lib/types/runtimeTypes\";\nimport { hasFailedInstantMatch } from \"../../lib/VerificationService/VerificationServiceHelpers\";\nimport { resetRefs } from \"../../lib/refs/refs\";\nimport {\n type VerificationService,\n type FormSelectChoice,\n type Organization,\n type MilitaryPersonalInfoViewModel,\n type ActiveMilitaryPersonalInfoResponse,\n type InactiveMilitaryPersonalInfoResponse,\n type MilitaryStatusResponse,\n type CustomFormFieldConfig,\n type FieldDescription,\n type State,\n type MilitaryStatus,\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 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 verificationService: VerificationService;\n}\n\nexport default function StepCollectMilitaryPersonalInfoComponent({ 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 = useFormSelectChoice(\n (dynamicStatuses ??\n (verificationResponse as unknown as MilitaryStatusResponse).availableStatuses ??\n (verificationService.previousVerificationResponse as MilitaryStatusResponse)\n ?.availableStatuses) as MilitaryStatus[],\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={statusOptions.find((option) => option.value === viewModel.status)}\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 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"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AAQA,IAAa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B,IAAG;KAAQ,gBAAe;IAAS,CAAA;IAChE,UAAU,EAAwB,OAAO,GAAG;IAC5C,YAAY,EAAwB,OAAO,GAAG;GAC/C,CAAA;GAEF,EAAgB,YAAY,KAC3B,iBAAA,GAAA,EAAA,KAAC,GAAD;IACE,UAAU,EAAwB,YAAY,GAAG;IACjD,WAAW,CAAC,CAAC,EAAsB;IACnC,WAAW,MAAa;KAEtB,AADA,EAAe,cAAc,CAAQ,GACrC,EAAqC,cAAc,GAAU,CAAmB;IAClF;IACA,OAAO,EAAU;IACjB,UAAU,EAAwB,YAAY,GAAG;GAClD,CAAA;GAGF,EAAQ,iBAAiB,KAAK,MAC7B,iBAAA,GAAA,EAAA,KAAC,GAAD;IAAyB;IAA6B;GAAsB,CAAA,CAC7E;GAED,iBAAA,GAAA,EAAA,KAAC,GAAD;IACuB;IACrB,WAAW,CAAC,CAAC,EAAsB;IACnC,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"}
@@ -4,34 +4,34 @@
4
4
  * This file is not intended for use in other contexts and there are no guarantees about its behavior outside of MySheerID.
5
5
  */
6
6
  /**
7
- * VERSION: 2.303.0
8
- * BUILD_TIMESTAMP: 1792102148037
9
- * BUILD_DATE: Thu Oct 15 2026 22:09:08 GMT+0000 (Coordinated Universal Time)
10
- * BUILD_COMMIT: ed4ed11fb402dec1e4d8db41deabb715484897e8
7
+ * VERSION: 2.304.0
8
+ * BUILD_TIMESTAMP: 1792172954317
9
+ * BUILD_DATE: Fri Oct 16 2026 17:49:14 GMT+0000 (Coordinated Universal Time)
10
+ * BUILD_COMMIT: 14bb12a3aac5dfbe3f216ca64aa66bee70d284c3
11
11
  */
12
12
  import { p as e, s as t } from "./intl-DYOqmiaL.js";
13
13
  import { b as n } from "./runtimeTypes-B2AGNJMT.js";
14
14
  import { n as r, t as i } from "./jsx-runtime-DtApx7WX.js";
15
- import { p as a } from "./FormFooterComponent-Cgq5-kvO.js";
15
+ import { p as a } from "./FormFooterComponent-DmKzIyrc.js";
16
16
  import { a as o } from "./refs-Mq0rtW9K.js";
17
17
  import { t as s } from "../_mysheerid-preview.js";
18
- import { t as c } from "./useCollectFieldsEndpoint-moJiW3Nn.js";
19
- import { d as l, f as u, r as d, t as f } from "./stepComponentHelpers-Bo_ASl0b.js";
20
- import { a as p, i as m, n as h, o as g, s as _, t as v } from "./CaptchaComponent-BeK_U23J.js";
21
- import { n as y, t as b } from "./PersonalInfoStepSubmitButton-DdY477K7.js";
22
- import { i as x } from "./FormSelectChoice-kbIiwSO2.js";
23
- import { t as S } from "./BirthDateComponent-DX43xuNP.js";
24
- import { t as C } from "./PostalCodeComponent-D78vjcv_.js";
25
- import { t as w } from "./CountryComponentWrapper-FbE1YIcg.js";
26
- import { t as T } from "./City-BwQWs5re.js";
27
- import { t as E } from "./AddressComponent-Iqr2nkzk.js";
28
- import { t as D } from "./ExtraMessage-DQ-khyDG.js";
29
- import { t as O } from "./ChangeLocaleComponent-DwBHbLKW.js";
30
- import { t as k } from "./PersonalInfoStepWrapper-I5LL6qWv.js";
31
- import { t as A } from "./countryUtils-DSXgtztB.js";
32
- import { t as j } from "./StateSelectComponent-jAsysEGR.js";
33
- import { n as M, r as N, t as P } from "./DischargeDateComponent-2hFDESgo.js";
34
- import { t as F } from "./StatusComponent-BtzBYIzi.js";
18
+ import { t as c } from "./useCollectFieldsEndpoint-DbalWE2_.js";
19
+ import { d as l, f as u, r as d, t as f } from "./stepComponentHelpers-DOISo3yJ.js";
20
+ import { a as p, i as m, n as h, o as g, s as _, t as v } from "./CaptchaComponent-DqGHJA-M.js";
21
+ import { n as y, t as b } from "./PersonalInfoStepSubmitButton-DvsmVrOf.js";
22
+ import { i as x } from "./FormSelectChoice-CE1QacNH.js";
23
+ import { t as S } from "./BirthDateComponent-CucjHQqp.js";
24
+ import { t as C } from "./PostalCodeComponent-CrWWddQS.js";
25
+ import { t as w } from "./CountryComponentWrapper-IoxuPmMC.js";
26
+ import { t as T } from "./City-aUxxLZ7_.js";
27
+ import { t as E } from "./AddressComponent-DIp4rtF_.js";
28
+ import { t as D } from "./ExtraMessage-B58a-KYp.js";
29
+ import { t as O } from "./ChangeLocaleComponent-C8snL44m.js";
30
+ import { t as k } from "./PersonalInfoStepWrapper-BvUX_IV3.js";
31
+ import { t as A } from "./countryUtils-CdNf-73_.js";
32
+ import { t as j } from "./StateSelectComponent-BaUHQef8.js";
33
+ import { n as M, r as N, t as P } from "./DischargeDateComponent-CTZiOL4E.js";
34
+ import { t as F } from "./StatusComponent-DoH2jBJe.js";
35
35
  //#region src/components/StepMilitaryPersonalInfo/militaryStepHelpers.ts
36
36
  var I = (t, n, r, i) => {
37
37
  let a = r.viewModel;
@@ -1 +1 @@
1
- {"version":3,"file":"StepCollectMilitaryPersonalInfoComponent-DHB17n2V.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","import { FormattedHTMLMessage } from \"react-intl\";\n\nimport { useFormSelectChoice } from \"@/components/FormInputs/InputSelect/InputSelectComponent\";\n\nimport { type CollectInfoSteps, VerificationStepsEnum } from \"../../lib/types/runtimeTypes\";\nimport { hasFailedInstantMatch } from \"../../lib/VerificationService/VerificationServiceHelpers\";\nimport { resetRefs } from \"../../lib/refs/refs\";\nimport {\n type VerificationService,\n type FormSelectChoice,\n type Organization,\n type MilitaryPersonalInfoViewModel,\n type ActiveMilitaryPersonalInfoResponse,\n type InactiveMilitaryPersonalInfoResponse,\n type MilitaryStatusResponse,\n type CustomFormFieldConfig,\n type FieldDescription,\n type State,\n type MilitaryStatus,\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 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 verificationService: VerificationService;\n}\n\nexport default function StepCollectMilitaryPersonalInfoComponent({ 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 = useFormSelectChoice(\n (dynamicStatuses ??\n (verificationResponse as unknown as MilitaryStatusResponse).availableStatuses ??\n (verificationService.previousVerificationResponse as MilitaryStatusResponse)\n ?.availableStatuses) as MilitaryStatus[],\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={statusOptions.find((option) => option.value === viewModel.status)}\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 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"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AAQA,IAAa,KACX,GACA,GACA,GACA,MACkC;CAClC,IAAM,IAAY,EAAoB;CACtC,OAAO,EAAQ,IAAY,MAAyC;EAClE,EAAO,KAAe;EAGtB,IAAM,IAAwB,CAAC,QAAQ;EASvC,AARA,EAAM,0BAA0B,EAAM,0BAA0B,CAAC,GAAG,QACjE,MAAO,CAAC,EAAsB,SAAS,CAAE,CAC5C,IAEI,CAAC,KAAqB,EAAkB,WAAW,MACrD,EAAM,uBAAuB,KAAK,QAAQ,GAGxC,MAAQ,aACV,EAAM,eAAe;GAAE,IAAI;GAAG,MAAM;EAAG;CAE3C,CAAC;AACH;AC2BA,SAAwB,EAAyC,EAAE,0BAA8B;CAC/F,IAAM,IAAY,EAAoB,WAChC,EAAE,6BAA0B,GAC5B,IAAuB,EAAoB,sBAG3C,IAAqB,EAAsB,CAAoB,GAS/D,IAHJ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B,WAAW,CAAC,CAAC,EAAsB;IACnC,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"}
1
+ {"version":3,"file":"StepCollectMilitaryPersonalInfoComponent-DfiGcf5I.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","import { FormattedHTMLMessage } from \"react-intl\";\n\nimport { useFormSelectChoice } from \"@/components/FormInputs/InputSelect/InputSelectComponent\";\n\nimport { type CollectInfoSteps, VerificationStepsEnum } from \"../../lib/types/runtimeTypes\";\nimport { hasFailedInstantMatch } from \"../../lib/VerificationService/VerificationServiceHelpers\";\nimport { resetRefs } from \"../../lib/refs/refs\";\nimport {\n type VerificationService,\n type FormSelectChoice,\n type Organization,\n type MilitaryPersonalInfoViewModel,\n type ActiveMilitaryPersonalInfoResponse,\n type InactiveMilitaryPersonalInfoResponse,\n type MilitaryStatusResponse,\n type CustomFormFieldConfig,\n type FieldDescription,\n type State,\n type MilitaryStatus,\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 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 verificationService: VerificationService;\n}\n\nexport default function StepCollectMilitaryPersonalInfoComponent({ 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 = useFormSelectChoice(\n (dynamicStatuses ??\n (verificationResponse as unknown as MilitaryStatusResponse).availableStatuses ??\n (verificationService.previousVerificationResponse as MilitaryStatusResponse)\n ?.availableStatuses) as MilitaryStatus[],\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={statusOptions.find((option) => option.value === viewModel.status)}\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 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"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AAQA,IAAa,KACX,GACA,GACA,GACA,MACkC;CAClC,IAAM,IAAY,EAAoB;CACtC,OAAO,EAAQ,IAAY,MAAyC;EAClE,EAAO,KAAe;EAGtB,IAAM,IAAwB,CAAC,QAAQ;EASvC,AARA,EAAM,0BAA0B,EAAM,0BAA0B,CAAC,GAAG,QACjE,MAAO,CAAC,EAAsB,SAAS,CAAE,CAC5C,IAEI,CAAC,KAAqB,EAAkB,WAAW,MACrD,EAAM,uBAAuB,KAAK,QAAQ,GAGxC,MAAQ,aACV,EAAM,eAAe;GAAE,IAAI;GAAG,MAAM;EAAG;CAE3C,CAAC;AACH;AC2BA,SAAwB,EAAyC,EAAE,0BAA8B;CAC/F,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,EACnB,KACE,EAA2D,qBAC3D,EAAoB,8BACjB,iBACR,GAEM,IAAS,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C,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"}
@@ -4,43 +4,43 @@
4
4
  * This file is not intended for use in other contexts and there are no guarantees about its behavior outside of MySheerID.
5
5
  */
6
6
  /**
7
- * VERSION: 2.303.0
8
- * BUILD_TIMESTAMP: 1792102148037
9
- * BUILD_DATE: Thu Oct 15 2026 22:09:08 GMT+0000 (Coordinated Universal Time)
10
- * BUILD_COMMIT: ed4ed11fb402dec1e4d8db41deabb715484897e8
7
+ * VERSION: 2.304.0
8
+ * BUILD_TIMESTAMP: 1792172954317
9
+ * BUILD_DATE: Fri Oct 16 2026 17:49:14 GMT+0000 (Coordinated Universal Time)
10
+ * BUILD_COMMIT: 14bb12a3aac5dfbe3f216ca64aa66bee70d284c3
11
11
  */
12
12
  import { Tt as e, kt as t, p as n, s as r } from "./intl-DYOqmiaL.js";
13
13
  import { S as ee, b as i, t as te, u as a } from "./runtimeTypes-B2AGNJMT.js";
14
- import { o as ne } from "./programThemeGetters-DJcD6MLy.js";
14
+ import { o as ne } from "./programThemeGetters-DTXDRpA2.js";
15
15
  import { n as o, s, t as c } from "./jsx-runtime-DtApx7WX.js";
16
- import { T as re } from "./Message-CpaZwHl9.js";
17
- import { p as ie, t as ae } from "./FormFooterComponent-Cgq5-kvO.js";
16
+ import { T as re } from "./Message-BToMuDnF.js";
17
+ import { p as ie, t as ae } from "./FormFooterComponent-DmKzIyrc.js";
18
18
  import { t as oe } from "../_mysheerid-preview.js";
19
- import { t as se } from "./useCollectFieldsEndpoint-moJiW3Nn.js";
20
- import { d as l, f as u, i as d, l as f, r as ce, s as le, t as p } from "./stepComponentHelpers-Bo_ASl0b.js";
21
- import { a as ue, i as de, n as fe, o as pe, s as me, t as m } from "./CaptchaComponent-BeK_U23J.js";
22
- import { n as h, t as g } from "./PersonalInfoStepSubmitButton-DdY477K7.js";
23
- import { i as _ } from "./FormSelectChoice-kbIiwSO2.js";
24
- import { t as v } from "./BirthDateComponent-DX43xuNP.js";
25
- import { t as y } from "./PostalCodeComponent-D78vjcv_.js";
26
- import { t as b } from "./CountryComponentWrapper-FbE1YIcg.js";
27
- import { t as x } from "./City-BwQWs5re.js";
28
- import { t as S } from "./AddressComponent-Iqr2nkzk.js";
29
- import { t as C } from "./ExtraMessage-DQ-khyDG.js";
30
- import { t as w } from "./countryUtils-DSXgtztB.js";
31
- import { t as T } from "./CollegeNameComponent-BqJGJY5H.js";
32
- import { t as E } from "./StateSelectComponent-jAsysEGR.js";
33
- import { n as D, r as O, t as k } from "./DischargeDateComponent-2hFDESgo.js";
34
- import { t as A } from "./DriverLicenseNumberComponent-D7VZTYj8.js";
35
- import { n as j, t as M } from "./LowIncomeOrganizationComponent-BDrMa0E2.js";
36
- import { t as N } from "./StatusComponent-BtzBYIzi.js";
37
- import { t as P } from "./FirstResponderOrganizationComponent-zwpAWGKM.js";
38
- import { t as F } from "./LicensedProfessionalOrganizationComponent-CSKSVIey.js";
39
- import { t as I } from "./MedicalProfessionalOrganizationComponent-DPJg8iU1.js";
40
- import { t as he } from "./MemberIdComponent-OOPddp4y.js";
41
- import { t as L } from "./MembershipOrganizationComponent-DKvB2ONr.js";
42
- import { t as R } from "./TeacherSchoolComponent-DF0D6H7e.js";
43
- import { t as ge } from "./SSN-BEYbIs4i.js";
19
+ import { t as se } from "./useCollectFieldsEndpoint-DbalWE2_.js";
20
+ import { d as l, f as u, i as d, l as f, r as ce, s as le, t as p } from "./stepComponentHelpers-DOISo3yJ.js";
21
+ import { a as ue, i as de, n as fe, o as pe, s as me, t as m } from "./CaptchaComponent-DqGHJA-M.js";
22
+ import { n as h, t as g } from "./PersonalInfoStepSubmitButton-DvsmVrOf.js";
23
+ import { i as _ } from "./FormSelectChoice-CE1QacNH.js";
24
+ import { t as v } from "./BirthDateComponent-CucjHQqp.js";
25
+ import { t as y } from "./PostalCodeComponent-CrWWddQS.js";
26
+ import { t as b } from "./CountryComponentWrapper-IoxuPmMC.js";
27
+ import { t as x } from "./City-aUxxLZ7_.js";
28
+ import { t as S } from "./AddressComponent-DIp4rtF_.js";
29
+ import { t as C } from "./ExtraMessage-B58a-KYp.js";
30
+ import { t as w } from "./countryUtils-CdNf-73_.js";
31
+ import { t as T } from "./CollegeNameComponent-YAs8pRV4.js";
32
+ import { t as E } from "./StateSelectComponent-BaUHQef8.js";
33
+ import { n as D, r as O, t as k } from "./DischargeDateComponent-CTZiOL4E.js";
34
+ import { t as A } from "./DriverLicenseNumberComponent-CxSJbkjt.js";
35
+ import { n as j, t as M } from "./LowIncomeOrganizationComponent-DlRk_SSB.js";
36
+ import { t as N } from "./StatusComponent-DoH2jBJe.js";
37
+ import { t as P } from "./FirstResponderOrganizationComponent-HTKkHwO4.js";
38
+ import { t as F } from "./LicensedProfessionalOrganizationComponent-BzyJSQrq.js";
39
+ import { t as I } from "./MedicalProfessionalOrganizationComponent-B52FvTE1.js";
40
+ import { t as he } from "./MemberIdComponent-CKOJTsUZ.js";
41
+ import { t as L } from "./MembershipOrganizationComponent-DlERUS3X.js";
42
+ import { t as R } from "./TeacherSchoolComponent-I15vrTCE.js";
43
+ import { t as ge } from "./SSN-rfoKEogO.js";
44
44
  //#region src/components/StepCollectPersonalInfo/StepCollectPersonalInfoComponent.tsx
45
45
  var z = /* @__PURE__ */ t(s(), 1), B = c(), V = ({ verificationService: t }) => {
46
46
  let s = t.viewModel, { updateViewModel: c, programTheme: V } = t, [H, _e] = z.useState(void 0), U = (e) => H && H.some((t) => t.key === e), { fieldValidationErrors: W } = t, G = t.verificationResponse, ve = ie(G), K = (e, t) => {
@@ -1 +1 @@
1
- {"version":3,"file":"StepCollectPersonalInfo-D8gZT28k.js","names":[],"sources":["../../src/components/StepCollectPersonalInfo/StepCollectPersonalInfoComponent.tsx"],"sourcesContent":["import React from \"react\";\nimport produce from \"immer\";\nimport { FormattedHTMLMessage } from \"react-intl\";\n\nimport { getSafe } from \"@jslib/shared/utils/getSafe\";\nimport { logger } from \"@jslib/shared/utils/logger\";\n\nimport { useFormSelectChoice } from \"@/components/FormInputs/InputSelect/InputSelectComponent\";\nimport { type MessageId } from \"@/lib/intl/types\";\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 orgToOption,\n handleEmailOnKeyDown,\n submitForm,\n updateFieldValidationErrorsByFieldId,\n updateViewModelOrganization,\n produceDraftViewModelWithAllRequiredFields,\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 verificationService: VerificationService;\n}\n\nexport const StepCollectPersonalInfoComponent = ({\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 = useFormSelectChoice((dynamicStatuses ?? availableStatuses) as MessageId[]);\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={statusOptions.find((option) => option.value === viewModel.status)}\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 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"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4CA2Ea,KAAoC,EAC/C,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,EAC9C,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,EAAW,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,KAAqB,EAAU,eAAe,OAC9C,IAAoB,EAAyB,GAAc,EAAkB,GAC7E,IAAgB,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;IAEJ,CAAA;GACE;MACL,iBAAA,GAAA,EAAA,KAAC,IAAD,EAAiC,uBAAsB,CAAA,CACpD;;AAET"}
1
+ {"version":3,"file":"StepCollectPersonalInfo-lnriADQY.js","names":[],"sources":["../../src/components/StepCollectPersonalInfo/StepCollectPersonalInfoComponent.tsx"],"sourcesContent":["import React from \"react\";\nimport produce from \"immer\";\nimport { FormattedHTMLMessage } from \"react-intl\";\n\nimport { getSafe } from \"@jslib/shared/utils/getSafe\";\nimport { logger } from \"@jslib/shared/utils/logger\";\n\nimport { useFormSelectChoice } from \"@/components/FormInputs/InputSelect/InputSelectComponent\";\nimport { type MessageId } from \"@/lib/intl/types\";\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 orgToOption,\n handleEmailOnKeyDown,\n submitForm,\n updateFieldValidationErrorsByFieldId,\n updateViewModelOrganization,\n produceDraftViewModelWithAllRequiredFields,\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 verificationService: VerificationService;\n}\n\nexport const StepCollectPersonalInfoComponent = ({\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 = useFormSelectChoice((dynamicStatuses ?? availableStatuses) as MessageId[]);\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={statusOptions.find((option) => option.value === viewModel.status)}\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 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"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4CA2Ea,KAAoC,EAC/C,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,EAC9C,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,EAAW,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,E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