@sheerid/jslib-nightly 2.284.0-alpha.0 → 2.286.0-alpha.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 (377) hide show
  1. package/_mysheerid-preview.css +4 -4
  2. package/_mysheerid-preview.js +44 -44
  3. package/chunk/{AddressComponent-DoLQOH_G.js → AddressComponent-BO-P8AD4.js} +8 -8
  4. package/chunk/{AddressComponent-DoLQOH_G.js.map → AddressComponent-BO-P8AD4.js.map} +1 -1
  5. package/chunk/{AddressComponent-OXU_ng7u.js → AddressComponent-BveXbyGs.js} +8 -8
  6. package/chunk/{AddressComponent-OXU_ng7u.js.map → AddressComponent-BveXbyGs.js.map} +1 -1
  7. package/chunk/{AnnouncingHeader-Cm6ysN0V.js → AnnouncingHeader-B0Ku-xl_.js} +6 -6
  8. package/chunk/{AnnouncingHeader-Cm6ysN0V.js.map → AnnouncingHeader-B0Ku-xl_.js.map} +1 -1
  9. package/chunk/{AnnouncingHeader-yslSIrZR.js → AnnouncingHeader-CXTQdbKG.js} +6 -6
  10. package/chunk/{AnnouncingHeader-yslSIrZR.js.map → AnnouncingHeader-CXTQdbKG.js.map} +1 -1
  11. package/chunk/{ApiUrls-DVCBrjRr.js → ApiUrls-CgRqi14a.js} +6 -6
  12. package/chunk/{ApiUrls-DVCBrjRr.js.map → ApiUrls-CgRqi14a.js.map} +1 -1
  13. package/chunk/{ApiUrls-BXZh-jQS.js → ApiUrls-UkSOgB9C.js} +6 -6
  14. package/chunk/{ApiUrls-BXZh-jQS.js.map → ApiUrls-UkSOgB9C.js.map} +1 -1
  15. package/chunk/{BirthDateComponent-CMEII4Oo.js → BirthDateComponent-BivtQl-V.js} +8 -8
  16. package/chunk/{BirthDateComponent-BFahDZKp.js.map → BirthDateComponent-BivtQl-V.js.map} +1 -1
  17. package/chunk/{BirthDateComponent-BFahDZKp.js → BirthDateComponent-DuD9ADP1.js} +8 -8
  18. package/chunk/{BirthDateComponent-CMEII4Oo.js.map → BirthDateComponent-DuD9ADP1.js.map} +1 -1
  19. package/chunk/{CaptchaComponent-u-GQEZQb.js → CaptchaComponent-CcBWvyd6.js} +15 -15
  20. package/chunk/{CaptchaComponent-C5v0udUA.js.map → CaptchaComponent-CcBWvyd6.js.map} +1 -1
  21. package/chunk/{CaptchaComponent-C5v0udUA.js → CaptchaComponent-IxkyY0tK.js} +15 -15
  22. package/chunk/{CaptchaComponent-u-GQEZQb.js.map → CaptchaComponent-IxkyY0tK.js.map} +1 -1
  23. package/chunk/{ChangeLocaleComponent-DeCgHor1.js → ChangeLocaleComponent-DTp8j-wE.js} +9 -9
  24. package/chunk/{ChangeLocaleComponent-DUc3HzJD.js.map → ChangeLocaleComponent-DTp8j-wE.js.map} +1 -1
  25. package/chunk/{ChangeLocaleComponent-DUc3HzJD.js → ChangeLocaleComponent-DbBz1tUB.js} +9 -9
  26. package/chunk/{ChangeLocaleComponent-DeCgHor1.js.map → ChangeLocaleComponent-DbBz1tUB.js.map} +1 -1
  27. package/chunk/{City-CH07gi_c.js → City-B31l6VTD.js} +8 -8
  28. package/chunk/{City-CBwes2ju.js.map → City-B31l6VTD.js.map} +1 -1
  29. package/chunk/{City-CBwes2ju.js → City-Drv6dzVo.js} +8 -8
  30. package/chunk/{City-CH07gi_c.js.map → City-Drv6dzVo.js.map} +1 -1
  31. package/chunk/{CollegeNameComponent-Bh-JlL1l.js → CollegeNameComponent-BI5ZRKh5.js} +10 -10
  32. package/chunk/{CollegeNameComponent-Bh-JlL1l.js.map → CollegeNameComponent-BI5ZRKh5.js.map} +1 -1
  33. package/chunk/{CollegeNameComponent-Csn5y3Ua.js → CollegeNameComponent-BXe6YEtp.js} +10 -10
  34. package/chunk/{CollegeNameComponent-Csn5y3Ua.js.map → CollegeNameComponent-BXe6YEtp.js.map} +1 -1
  35. package/chunk/{CopyToClipboardComponent-BvzDoXkd.js → CopyToClipboardComponent-3wpB0lTx.js} +6 -6
  36. package/chunk/{CopyToClipboardComponent-BvzDoXkd.js.map → CopyToClipboardComponent-3wpB0lTx.js.map} +1 -1
  37. package/chunk/{CopyToClipboardComponent-CHdDPJEa.js → CopyToClipboardComponent-BXe124AZ.js} +6 -6
  38. package/chunk/{CopyToClipboardComponent-CHdDPJEa.js.map → CopyToClipboardComponent-BXe124AZ.js.map} +1 -1
  39. package/chunk/{CountryComponentWrapper-CLr7P-na.js → CountryComponentWrapper-BvRfYYfs.js} +12 -12
  40. package/chunk/{CountryComponentWrapper-CLr7P-na.js.map → CountryComponentWrapper-BvRfYYfs.js.map} +1 -1
  41. package/chunk/{CountryComponentWrapper-DaxUGdP6.js → CountryComponentWrapper-CTwfjZcm.js} +12 -12
  42. package/chunk/{CountryComponentWrapper-DaxUGdP6.js.map → CountryComponentWrapper-CTwfjZcm.js.map} +1 -1
  43. package/chunk/{DischargeDateComponent-CT3OD_r-.js → DischargeDateComponent-C6H7bgg0.js} +11 -11
  44. package/chunk/{DischargeDateComponent-CT3OD_r-.js.map → DischargeDateComponent-C6H7bgg0.js.map} +1 -1
  45. package/chunk/{DischargeDateComponent-CrZnkWYD.js → DischargeDateComponent-Dca4kend.js} +11 -11
  46. package/chunk/{DischargeDateComponent-CrZnkWYD.js.map → DischargeDateComponent-Dca4kend.js.map} +1 -1
  47. package/chunk/{DriverLicenseNumberComponent-cjdFHbhz.js → DriverLicenseNumberComponent-D8GxRcFv.js} +8 -8
  48. package/chunk/{DriverLicenseNumberComponent-R1Zp4ecL.js.map → DriverLicenseNumberComponent-D8GxRcFv.js.map} +1 -1
  49. package/chunk/{DriverLicenseNumberComponent-R1Zp4ecL.js → DriverLicenseNumberComponent-DER7haaJ.js} +8 -8
  50. package/chunk/{DriverLicenseNumberComponent-cjdFHbhz.js.map → DriverLicenseNumberComponent-DER7haaJ.js.map} +1 -1
  51. package/chunk/{EmailLoopPending-D3-TrrMZ.js → EmailLoopPending-CdcMaaA_.js} +11 -11
  52. package/chunk/{EmailLoopPending-CMxe8xrm.js.map → EmailLoopPending-CdcMaaA_.js.map} +1 -1
  53. package/chunk/{EmailLoopPending-CMxe8xrm.js → EmailLoopPending-CpDXySoK.js} +11 -11
  54. package/chunk/{EmailLoopPending-D3-TrrMZ.js.map → EmailLoopPending-CpDXySoK.js.map} +1 -1
  55. package/chunk/{ExtraMessage-DsQqrSBk.js → ExtraMessage-BhQr2pj7.js} +7 -7
  56. package/chunk/{ExtraMessage-CnFLUWIp.js.map → ExtraMessage-BhQr2pj7.js.map} +1 -1
  57. package/chunk/{ExtraMessage-CnFLUWIp.js → ExtraMessage-psH__L4H.js} +7 -7
  58. package/chunk/{ExtraMessage-DsQqrSBk.js.map → ExtraMessage-psH__L4H.js.map} +1 -1
  59. package/chunk/{FirstResponderOrganizationComponent-NLju5oet.js → FirstResponderOrganizationComponent-CRAxX00a.js} +9 -9
  60. package/chunk/{FirstResponderOrganizationComponent-BdiCq8nc.js.map → FirstResponderOrganizationComponent-CRAxX00a.js.map} +1 -1
  61. package/chunk/{FirstResponderOrganizationComponent-BdiCq8nc.js → FirstResponderOrganizationComponent-v2Qu8r16.js} +9 -9
  62. package/chunk/{FirstResponderOrganizationComponent-NLju5oet.js.map → FirstResponderOrganizationComponent-v2Qu8r16.js.map} +1 -1
  63. package/chunk/{FormFieldInputSelect-BXrX7rQ7.js → FormFieldInputSelect-Bmrn_n9h.js} +7 -7
  64. package/chunk/{FormFieldInputSelect-BXrX7rQ7.js.map → FormFieldInputSelect-Bmrn_n9h.js.map} +1 -1
  65. package/chunk/{FormFieldInputSelect-CYS7DN5W.js → FormFieldInputSelect-D5WLRDU3.js} +7 -7
  66. package/chunk/{FormFieldInputSelect-CYS7DN5W.js.map → FormFieldInputSelect-D5WLRDU3.js.map} +1 -1
  67. package/chunk/{FormFieldLayout-Ci7MzpgW.js → FormFieldLayout-DEKIQK2R.js} +6 -6
  68. package/chunk/{FormFieldLayout-C6rbRhh0.js.map → FormFieldLayout-DEKIQK2R.js.map} +1 -1
  69. package/chunk/{FormFieldLayout-C6rbRhh0.js → FormFieldLayout-NkmhFC9B.js} +6 -6
  70. package/chunk/{FormFieldLayout-Ci7MzpgW.js.map → FormFieldLayout-NkmhFC9B.js.map} +1 -1
  71. package/chunk/{FormFieldText-blykeSRX.js → FormFieldText-Bn9WIKiI.js} +7 -7
  72. package/chunk/{FormFieldText-Dx92JsxR.js.map → FormFieldText-Bn9WIKiI.js.map} +1 -1
  73. package/chunk/{FormFieldText-Dx92JsxR.js → FormFieldText-Py7x4EZ6.js} +7 -7
  74. package/chunk/{FormFieldText-blykeSRX.js.map → FormFieldText-Py7x4EZ6.js.map} +1 -1
  75. package/chunk/{FormFieldTypeahead-CWSGfy_T.js → FormFieldTypeahead-D0UbcCmJ.js} +13 -13
  76. package/chunk/{FormFieldTypeahead-CWSGfy_T.js.map → FormFieldTypeahead-D0UbcCmJ.js.map} +1 -1
  77. package/chunk/{FormFieldTypeahead-D3Lrjl8J.js → FormFieldTypeahead-DsjvOSw-.js} +13 -13
  78. package/chunk/{FormFieldTypeahead-D3Lrjl8J.js.map → FormFieldTypeahead-DsjvOSw-.js.map} +1 -1
  79. package/chunk/{FormFooterComponent-BG9d29yE.js → FormFooterComponent-C8d0QlMJ.js} +13 -13
  80. package/chunk/{FormFooterComponent-BG9d29yE.js.map → FormFooterComponent-C8d0QlMJ.js.map} +1 -1
  81. package/chunk/{FormFooterComponent-Kj-yjFXf.js → FormFooterComponent-DZsj4_dA.js} +13 -13
  82. package/chunk/{FormFooterComponent-Kj-yjFXf.js.map → FormFooterComponent-DZsj4_dA.js.map} +1 -1
  83. package/chunk/{FormSelectChoice-B6qzQkRB.js → FormSelectChoice-BrKQZKi3.js} +8 -8
  84. package/chunk/{FormSelectChoice-B6qzQkRB.js.map → FormSelectChoice-BrKQZKi3.js.map} +1 -1
  85. package/chunk/{FormSelectChoice-BXBTxqI1.js → FormSelectChoice-Cnr_Pmmc.js} +8 -8
  86. package/chunk/{FormSelectChoice-BXBTxqI1.js.map → FormSelectChoice-Cnr_Pmmc.js.map} +1 -1
  87. package/chunk/{InputText-C79edroa.js → InputText-CMu4ei8e.js} +6 -6
  88. package/chunk/{InputText-C79edroa.js.map → InputText-CMu4ei8e.js.map} +1 -1
  89. package/chunk/{InputText-GzAnMGCC.js → InputText-dflyPe3J.js} +6 -6
  90. package/chunk/{InputText-GzAnMGCC.js.map → InputText-dflyPe3J.js.map} +1 -1
  91. package/chunk/{LicensedProfessionalOrganizationComponent-BS0-OjW0.js → LicensedProfessionalOrganizationComponent-BvQ2v-yS.js} +9 -9
  92. package/chunk/{LicensedProfessionalOrganizationComponent-BS0-OjW0.js.map → LicensedProfessionalOrganizationComponent-BvQ2v-yS.js.map} +1 -1
  93. package/chunk/{LicensedProfessionalOrganizationComponent-Cf8zdOfP.js → LicensedProfessionalOrganizationComponent-MU0Trmun.js} +9 -9
  94. package/chunk/{LicensedProfessionalOrganizationComponent-Cf8zdOfP.js.map → LicensedProfessionalOrganizationComponent-MU0Trmun.js.map} +1 -1
  95. package/chunk/{LogoComponent-EBhWWnBF.js → LogoComponent-BDhMcJvy.js} +6 -6
  96. package/chunk/{LogoComponent-88BDkLwD.js.map → LogoComponent-BDhMcJvy.js.map} +1 -1
  97. package/chunk/{LogoComponent-88BDkLwD.js → LogoComponent-DASXTR4v.js} +6 -6
  98. package/chunk/{LogoComponent-EBhWWnBF.js.map → LogoComponent-DASXTR4v.js.map} +1 -1
  99. package/chunk/{LowIncomeOrganizationComponent-CTzn5yqn.js → LowIncomeOrganizationComponent-Bw9YwDiJ.js} +12 -12
  100. package/chunk/{LowIncomeOrganizationComponent-CTzn5yqn.js.map → LowIncomeOrganizationComponent-Bw9YwDiJ.js.map} +1 -1
  101. package/chunk/{LowIncomeOrganizationComponent-CVG_eXvy.js → LowIncomeOrganizationComponent-WXPCDMfZ.js} +12 -12
  102. package/chunk/{LowIncomeOrganizationComponent-CVG_eXvy.js.map → LowIncomeOrganizationComponent-WXPCDMfZ.js.map} +1 -1
  103. package/chunk/{MedicalProfessionalOrganizationComponent-C-r7qNIP.js → MedicalProfessionalOrganizationComponent-8sU5904Y.js} +9 -9
  104. package/chunk/{MedicalProfessionalOrganizationComponent-COSWLfXk.js.map → MedicalProfessionalOrganizationComponent-8sU5904Y.js.map} +1 -1
  105. package/chunk/{MedicalProfessionalOrganizationComponent-COSWLfXk.js → MedicalProfessionalOrganizationComponent-CU-9LQeS.js} +9 -9
  106. package/chunk/{MedicalProfessionalOrganizationComponent-C-r7qNIP.js.map → MedicalProfessionalOrganizationComponent-CU-9LQeS.js.map} +1 -1
  107. package/chunk/{MemberIdComponent-Dg3NCiti.js → MemberIdComponent-D8Ca87Wb.js} +8 -8
  108. package/chunk/{MemberIdComponent-DH1c4fn5.js.map → MemberIdComponent-D8Ca87Wb.js.map} +1 -1
  109. package/chunk/{MemberIdComponent-DH1c4fn5.js → MemberIdComponent-mi1g1xXL.js} +8 -8
  110. package/chunk/{MemberIdComponent-Dg3NCiti.js.map → MemberIdComponent-mi1g1xXL.js.map} +1 -1
  111. package/chunk/{MembershipOrganizationComponent-r2wTOcyR.js → MembershipOrganizationComponent-B8uTiOjz.js} +9 -9
  112. package/chunk/{MembershipOrganizationComponent-BkbYEGi9.js.map → MembershipOrganizationComponent-B8uTiOjz.js.map} +1 -1
  113. package/chunk/{MembershipOrganizationComponent-BkbYEGi9.js → MembershipOrganizationComponent-qZGu9kN7.js} +9 -9
  114. package/chunk/{MembershipOrganizationComponent-r2wTOcyR.js.map → MembershipOrganizationComponent-qZGu9kN7.js.map} +1 -1
  115. package/chunk/{Message-DGhZgZDq.js → Message-BzQvlehO.js} +10 -10
  116. package/chunk/{Message-DGhZgZDq.js.map → Message-BzQvlehO.js.map} +1 -1
  117. package/chunk/{Message-COvAYKkG.js → Message-DTjPO81C.js} +10 -10
  118. package/chunk/{Message-COvAYKkG.js.map → Message-DTjPO81C.js.map} +1 -1
  119. package/chunk/Onfido-CTCgAwnB.js +4 -4
  120. package/chunk/{PersonalInfoStepSubmitButton-DJbixgFz.js → PersonalInfoStepSubmitButton-CJBqRRwZ.js} +11 -11
  121. package/chunk/{PersonalInfoStepSubmitButton-2GTQvj52.js.map → PersonalInfoStepSubmitButton-CJBqRRwZ.js.map} +1 -1
  122. package/chunk/{PersonalInfoStepSubmitButton-2GTQvj52.js → PersonalInfoStepSubmitButton-DYLShYmQ.js} +11 -11
  123. package/chunk/{PersonalInfoStepSubmitButton-DJbixgFz.js.map → PersonalInfoStepSubmitButton-DYLShYmQ.js.map} +1 -1
  124. package/chunk/{PersonalInfoStepWrapper-B2lVjL_T.js → PersonalInfoStepWrapper-7CjWrsq-.js} +8 -8
  125. package/chunk/{PersonalInfoStepWrapper-B2lVjL_T.js.map → PersonalInfoStepWrapper-7CjWrsq-.js.map} +1 -1
  126. package/chunk/{PersonalInfoStepWrapper-B04GqKjN.js → PersonalInfoStepWrapper-C4Yji-mo.js} +7 -7
  127. package/chunk/{PersonalInfoStepWrapper-B04GqKjN.js.map → PersonalInfoStepWrapper-C4Yji-mo.js.map} +1 -1
  128. package/chunk/{PostalCodeComponent-Bg-Uba-P.js → PostalCodeComponent-BaAxTpyL.js} +8 -8
  129. package/chunk/{PostalCodeComponent-Bg-Uba-P.js.map → PostalCodeComponent-BaAxTpyL.js.map} +1 -1
  130. package/chunk/{PostalCodeComponent-CjSyQkIE.js → PostalCodeComponent-WM_PVYan.js} +8 -8
  131. package/chunk/{PostalCodeComponent-CjSyQkIE.js.map → PostalCodeComponent-WM_PVYan.js.map} +1 -1
  132. package/chunk/{SSN-B7x3PbX1.js → SSN-BKgXJ_Y3.js} +8 -8
  133. package/chunk/{SSN-B7x3PbX1.js.map → SSN-BKgXJ_Y3.js.map} +1 -1
  134. package/chunk/{SSN-DGDYJXt4.js → SSN-TjcjMzV_.js} +8 -8
  135. package/chunk/{SSN-DGDYJXt4.js.map → SSN-TjcjMzV_.js.map} +1 -1
  136. package/chunk/{StateSelectComponent-D_VVlHut.js → StateSelectComponent-BwRWKvU0.js} +7 -7
  137. package/chunk/{StateSelectComponent-D_VVlHut.js.map → StateSelectComponent-BwRWKvU0.js.map} +1 -1
  138. package/chunk/{StateSelectComponent-BRqfOFJB.js → StateSelectComponent-DYLIANk8.js} +7 -7
  139. package/chunk/{StateSelectComponent-BRqfOFJB.js.map → StateSelectComponent-DYLIANk8.js.map} +1 -1
  140. package/chunk/{StatusComponent-BT29WKky.js → StatusComponent-B23ZumSo.js} +9 -9
  141. package/chunk/{StatusComponent-BT29WKky.js.map → StatusComponent-B23ZumSo.js.map} +1 -1
  142. package/chunk/{StatusComponent-Ca3DHU_S.js → StatusComponent-D9SP6f7s.js} +9 -9
  143. package/chunk/{StatusComponent-Ca3DHU_S.js.map → StatusComponent-D9SP6f7s.js.map} +1 -1
  144. package/chunk/{StepAgePersonalInfo-Bo_bSvaH.js → StepAgePersonalInfo-CY8RXjRs.js} +19 -19
  145. package/chunk/{StepAgePersonalInfo-BT9VdQIY.js.map → StepAgePersonalInfo-CY8RXjRs.js.map} +1 -1
  146. package/chunk/{StepAgePersonalInfo-BT9VdQIY.js → StepAgePersonalInfo-Ce2Rjk-T.js} +19 -19
  147. package/chunk/{StepAgePersonalInfo-Bo_bSvaH.js.map → StepAgePersonalInfo-Ce2Rjk-T.js.map} +1 -1
  148. package/chunk/{StepCard-DXc8h6Xb.js → StepCard-DQ9JkAjb.js} +5 -5
  149. package/chunk/{StepCard-D3V6UR1D.js.map → StepCard-DQ9JkAjb.js.map} +1 -1
  150. package/chunk/{StepCard-D3V6UR1D.js → StepCard-EHeqFY3Y.js} +5 -5
  151. package/chunk/{StepCard-DXc8h6Xb.js.map → StepCard-EHeqFY3Y.js.map} +1 -1
  152. package/chunk/{StepCollectIdentifier-Be8JXgsZ.js → StepCollectIdentifier-C5kXQDZS.js} +9 -9
  153. package/chunk/{StepCollectIdentifier-ZYMrDtI5.js.map → StepCollectIdentifier-C5kXQDZS.js.map} +1 -1
  154. package/chunk/{StepCollectIdentifier-ZYMrDtI5.js → StepCollectIdentifier-D2J7Zz4p.js} +9 -9
  155. package/chunk/{StepCollectIdentifier-Be8JXgsZ.js.map → StepCollectIdentifier-D2J7Zz4p.js.map} +1 -1
  156. package/chunk/{StepCollectMilitaryPersonalInfoComponent-DgAhHND2.js → StepCollectMilitaryPersonalInfoComponent-Bf6RUl4N.js} +23 -23
  157. package/chunk/{StepCollectMilitaryPersonalInfoComponent-DgAhHND2.js.map → StepCollectMilitaryPersonalInfoComponent-Bf6RUl4N.js.map} +1 -1
  158. package/chunk/{StepCollectMilitaryPersonalInfoComponent-DubH-Em8.js → StepCollectMilitaryPersonalInfoComponent-Cg2JeswT.js} +23 -23
  159. package/chunk/{StepCollectMilitaryPersonalInfoComponent-DubH-Em8.js.map → StepCollectMilitaryPersonalInfoComponent-Cg2JeswT.js.map} +1 -1
  160. package/chunk/{StepCollectPersonalInfo-BcGjR1wS.js → StepCollectPersonalInfo-DQ-E_qDl.js} +33 -33
  161. package/chunk/{StepCollectPersonalInfo-HKKol1iH.js.map → StepCollectPersonalInfo-DQ-E_qDl.js.map} +1 -1
  162. package/chunk/{StepCollectPersonalInfo-HKKol1iH.js → StepCollectPersonalInfo-OYDCEhYc.js} +33 -33
  163. package/chunk/{StepCollectPersonalInfo-BcGjR1wS.js.map → StepCollectPersonalInfo-OYDCEhYc.js.map} +1 -1
  164. package/chunk/{StepCompleteAuthentication-D1IWfsjs.js → StepCompleteAuthentication-D7GOINsk.js} +9 -9
  165. package/chunk/{StepCompleteAuthentication-DBHCZhGq.js.map → StepCompleteAuthentication-D7GOINsk.js.map} +1 -1
  166. package/chunk/{StepCompleteAuthentication-DBHCZhGq.js → StepCompleteAuthentication-W7k49rug.js} +9 -9
  167. package/chunk/{StepCompleteAuthentication-D1IWfsjs.js.map → StepCompleteAuthentication-W7k49rug.js.map} +1 -1
  168. package/chunk/{StepConsolation-DAqxELjq.js → StepConsolation-BploicTZ.js} +8 -8
  169. package/chunk/{StepConsolation-DAqxELjq.js.map → StepConsolation-BploicTZ.js.map} +1 -1
  170. package/chunk/{StepConsolation-DY_OWu-M.js → StepConsolation-C0ZFoRhl.js} +8 -8
  171. package/chunk/{StepConsolation-DY_OWu-M.js.map → StepConsolation-C0ZFoRhl.js.map} +1 -1
  172. package/chunk/{StepDocUpload-rm-z1PXu.js → StepDocUpload-Fg28EFnj.js} +13 -13
  173. package/chunk/{StepDocUpload-rm-z1PXu.js.map → StepDocUpload-Fg28EFnj.js.map} +1 -1
  174. package/chunk/{StepDocUpload-Bd5zJ4DR.js → StepDocUpload-XIwdgMLE.js} +13 -13
  175. package/chunk/{StepDocUpload-Bd5zJ4DR.js.map → StepDocUpload-XIwdgMLE.js.map} +1 -1
  176. package/chunk/{StepDriverLicensePersonalInfoComponent-D95mpefN.js → StepDriverLicensePersonalInfoComponent-CA7UDvwn.js} +15 -15
  177. package/chunk/{StepDriverLicensePersonalInfoComponent-BLsYD-HF.js.map → StepDriverLicensePersonalInfoComponent-CA7UDvwn.js.map} +1 -1
  178. package/chunk/{StepDriverLicensePersonalInfoComponent-BLsYD-HF.js → StepDriverLicensePersonalInfoComponent-CHc8Dsg1.js} +15 -15
  179. package/chunk/{StepDriverLicensePersonalInfoComponent-D95mpefN.js.map → StepDriverLicensePersonalInfoComponent-CHc8Dsg1.js.map} +1 -1
  180. package/chunk/{StepEmailLoop-DRCFfhHA.js → StepEmailLoop-BCXGSf_A.js} +13 -13
  181. package/chunk/{StepEmailLoop-Bd0tnBLI.js.map → StepEmailLoop-BCXGSf_A.js.map} +1 -1
  182. package/chunk/{StepEmailLoop-Bd0tnBLI.js → StepEmailLoop-CQdaX7qR.js} +13 -13
  183. package/chunk/{StepEmailLoop-DRCFfhHA.js.map → StepEmailLoop-CQdaX7qR.js.map} +1 -1
  184. package/chunk/{StepEmploymentPersonalInfo-0LORWtoL.js → StepEmploymentPersonalInfo-BNpvALkR.js} +20 -20
  185. package/chunk/{StepEmploymentPersonalInfo-0LORWtoL.js.map → StepEmploymentPersonalInfo-BNpvALkR.js.map} +1 -1
  186. package/chunk/{StepEmploymentPersonalInfo-BNL-gCS8.js → StepEmploymentPersonalInfo-BVCNxtzc.js} +20 -20
  187. package/chunk/{StepEmploymentPersonalInfo-BNL-gCS8.js.map → StepEmploymentPersonalInfo-BVCNxtzc.js.map} +1 -1
  188. package/chunk/{StepFirstResponderPersonalInfo-DZvhQ2aY.js → StepFirstResponderPersonalInfo-Bw1j5rbb.js} +21 -21
  189. package/chunk/{StepFirstResponderPersonalInfo-Ck89vUif.js.map → StepFirstResponderPersonalInfo-Bw1j5rbb.js.map} +1 -1
  190. package/chunk/{StepFirstResponderPersonalInfo-Ck89vUif.js → StepFirstResponderPersonalInfo-MuQvmYpR.js} +21 -21
  191. package/chunk/{StepFirstResponderPersonalInfo-DZvhQ2aY.js.map → StepFirstResponderPersonalInfo-MuQvmYpR.js.map} +1 -1
  192. package/chunk/{StepGeneralIdentityPersonalInfoComponent-kMww5xaN.js → StepGeneralIdentityPersonalInfoComponent-QSa52ZsF.js} +18 -18
  193. package/chunk/{StepGeneralIdentityPersonalInfoComponent-BOi9Dw5j.js.map → StepGeneralIdentityPersonalInfoComponent-QSa52ZsF.js.map} +1 -1
  194. package/chunk/{StepGeneralIdentityPersonalInfoComponent-BOi9Dw5j.js → StepGeneralIdentityPersonalInfoComponent-ZVgx3K2e.js} +18 -18
  195. package/chunk/{StepGeneralIdentityPersonalInfoComponent-kMww5xaN.js.map → StepGeneralIdentityPersonalInfoComponent-ZVgx3K2e.js.map} +1 -1
  196. package/chunk/{StepHybridIdentityPersonalInfoComponent-29oVZEg4.js → StepHybridIdentityPersonalInfoComponent-C1qSLXFj.js} +19 -19
  197. package/chunk/{StepHybridIdentityPersonalInfoComponent-29oVZEg4.js.map → StepHybridIdentityPersonalInfoComponent-C1qSLXFj.js.map} +1 -1
  198. package/chunk/{StepHybridIdentityPersonalInfoComponent-BTqCjGs4.js → StepHybridIdentityPersonalInfoComponent-CCjtODab.js} +19 -19
  199. package/chunk/{StepHybridIdentityPersonalInfoComponent-BTqCjGs4.js.map → StepHybridIdentityPersonalInfoComponent-CCjtODab.js.map} +1 -1
  200. package/chunk/{StepIDCheckLoop-Cl9nUgx1.js → StepIDCheckLoop-9vSZxmm9.js} +8 -8
  201. package/chunk/{StepIDCheckLoop-Bjqmk_Fa.js.map → StepIDCheckLoop-9vSZxmm9.js.map} +1 -1
  202. package/chunk/{StepIDCheckLoop-Bjqmk_Fa.js → StepIDCheckLoop-DegU62q3.js} +8 -8
  203. package/chunk/{StepIDCheckLoop-Cl9nUgx1.js.map → StepIDCheckLoop-DegU62q3.js.map} +1 -1
  204. package/chunk/{StepIDCheckLoopOnfido-BjxqzZcU.js → StepIDCheckLoopOnfido-C7OhbiGE.js} +11 -11
  205. package/chunk/{StepIDCheckLoopOnfido-BjxqzZcU.js.map → StepIDCheckLoopOnfido-C7OhbiGE.js.map} +1 -1
  206. package/chunk/{StepIDCheckLoopOnfido-B35sNa4H.js → StepIDCheckLoopOnfido-Cf5jCl51.js} +11 -11
  207. package/chunk/{StepIDCheckLoopOnfido-B35sNa4H.js.map → StepIDCheckLoopOnfido-Cf5jCl51.js.map} +1 -1
  208. package/chunk/{StepIDCheckLoopRegula-CR1kJL_J.js → StepIDCheckLoopRegula-BGOGfzTM.js} +11 -11
  209. package/chunk/{StepIDCheckLoopRegula-CR1kJL_J.js.map → StepIDCheckLoopRegula-BGOGfzTM.js.map} +1 -1
  210. package/chunk/{StepIDCheckLoopRegula-CoKi8uOs.js → StepIDCheckLoopRegula-DHL165Fq.js} +11 -11
  211. package/chunk/{StepIDCheckLoopRegula-CoKi8uOs.js.map → StepIDCheckLoopRegula-DHL165Fq.js.map} +1 -1
  212. package/chunk/{StepLicensedProfessionalPersonalInfo-BmE-fG_s.js → StepLicensedProfessionalPersonalInfo-C9u_VLy4.js} +20 -20
  213. package/chunk/{StepLicensedProfessionalPersonalInfo-BltrpKZ-.js.map → StepLicensedProfessionalPersonalInfo-C9u_VLy4.js.map} +1 -1
  214. package/chunk/{StepLicensedProfessionalPersonalInfo-BltrpKZ-.js → StepLicensedProfessionalPersonalInfo-Ci3GtjsS.js} +20 -20
  215. package/chunk/{StepLicensedProfessionalPersonalInfo-BmE-fG_s.js.map → StepLicensedProfessionalPersonalInfo-Ci3GtjsS.js.map} +1 -1
  216. package/chunk/{StepLowIncomePersonalInfo-Ci_ACd9R.js → StepLowIncomePersonalInfo-6psOksgp.js} +24 -24
  217. package/chunk/{StepLowIncomePersonalInfo-Ci_ACd9R.js.map → StepLowIncomePersonalInfo-6psOksgp.js.map} +1 -1
  218. package/chunk/{StepLowIncomePersonalInfo-Dg0a-DnQ.js → StepLowIncomePersonalInfo-BNCP_2nd.js} +24 -24
  219. package/chunk/{StepLowIncomePersonalInfo-Dg0a-DnQ.js.map → StepLowIncomePersonalInfo-BNCP_2nd.js.map} +1 -1
  220. package/chunk/{StepMedicalProfessionalPersonalInfo-wy_HB8GK.js → StepMedicalProfessionalPersonalInfo-BZPO6ySB.js} +21 -21
  221. package/chunk/{StepMedicalProfessionalPersonalInfo-D3-svkw5.js.map → StepMedicalProfessionalPersonalInfo-BZPO6ySB.js.map} +1 -1
  222. package/chunk/{StepMedicalProfessionalPersonalInfo-D3-svkw5.js → StepMedicalProfessionalPersonalInfo-Cfbyvm5-.js} +21 -21
  223. package/chunk/{StepMedicalProfessionalPersonalInfo-wy_HB8GK.js.map → StepMedicalProfessionalPersonalInfo-Cfbyvm5-.js.map} +1 -1
  224. package/chunk/{StepMemberPersonalInfo-B8NySl4Y.js → StepMemberPersonalInfo-CJGm1yf-.js} +17 -17
  225. package/chunk/{StepMemberPersonalInfo-B8NySl4Y.js.map → StepMemberPersonalInfo-CJGm1yf-.js.map} +1 -1
  226. package/chunk/{StepMemberPersonalInfo-peOIyll_.js → StepMemberPersonalInfo-DS-JEfy0.js} +17 -17
  227. package/chunk/{StepMemberPersonalInfo-peOIyll_.js.map → StepMemberPersonalInfo-DS-JEfy0.js.map} +1 -1
  228. package/chunk/{StepMoverPersonalInfo-BrPFsQ6f.js → StepMoverPersonalInfo-Csa8lKN8.js} +15 -15
  229. package/chunk/{StepMoverPersonalInfo-BBpTCDIA.js.map → StepMoverPersonalInfo-Csa8lKN8.js.map} +1 -1
  230. package/chunk/{StepMoverPersonalInfo-BBpTCDIA.js → StepMoverPersonalInfo-DxcQ34_S.js} +15 -15
  231. package/chunk/{StepMoverPersonalInfo-BrPFsQ6f.js.map → StepMoverPersonalInfo-DxcQ34_S.js.map} +1 -1
  232. package/chunk/{StepOverrideComponent-oFXYgAgi.js → StepOverrideComponent-CvP3aJ5s.js} +12 -12
  233. package/chunk/{StepOverrideComponent-oFXYgAgi.js.map → StepOverrideComponent-CvP3aJ5s.js.map} +1 -1
  234. package/chunk/{StepOverrideComponent-Br-JhmOt.js → StepOverrideComponent-DFFHorkG.js} +12 -12
  235. package/chunk/{StepOverrideComponent-Br-JhmOt.js.map → StepOverrideComponent-DFFHorkG.js.map} +1 -1
  236. package/chunk/{StepSMSLoop-CVAeuUok.js → StepSMSLoop-BrA59sed.js} +9 -9
  237. package/chunk/{StepSMSLoop-CVAeuUok.js.map → StepSMSLoop-BrA59sed.js.map} +1 -1
  238. package/chunk/{StepSMSLoop-CG9CwaLS.js → StepSMSLoop-C_ZkX3V6.js} +9 -9
  239. package/chunk/{StepSMSLoop-CG9CwaLS.js.map → StepSMSLoop-C_ZkX3V6.js.map} +1 -1
  240. package/chunk/StepSSO-BGHCbduX.js +4 -4
  241. package/chunk/StepSSO-ZHByQpHa.js +4 -4
  242. package/chunk/{StepSocialSecurityNumber-8JoH8KL7.js → StepSocialSecurityNumber-CyUZZC4N.js} +12 -12
  243. package/chunk/{StepSocialSecurityNumber-8JoH8KL7.js.map → StepSocialSecurityNumber-CyUZZC4N.js.map} +1 -1
  244. package/chunk/{StepSocialSecurityNumber-CPgBn2ec.js → StepSocialSecurityNumber-J3hOG61Y.js} +12 -12
  245. package/chunk/{StepSocialSecurityNumber-CPgBn2ec.js.map → StepSocialSecurityNumber-J3hOG61Y.js.map} +1 -1
  246. package/chunk/{StepStudentPersonalInfo-adszncNc.js → StepStudentPersonalInfo-BCTGZupB.js} +20 -20
  247. package/chunk/{StepStudentPersonalInfo-WXtFPQa0.js.map → StepStudentPersonalInfo-BCTGZupB.js.map} +1 -1
  248. package/chunk/{StepStudentPersonalInfo-WXtFPQa0.js → StepStudentPersonalInfo-CDYBQDUD.js} +20 -20
  249. package/chunk/{StepStudentPersonalInfo-adszncNc.js.map → StepStudentPersonalInfo-CDYBQDUD.js.map} +1 -1
  250. package/chunk/{StepSuccess-CODrneVB.js → StepSuccess-C0CJ71py.js} +13 -13
  251. package/chunk/{StepSuccess-CODrneVB.js.map → StepSuccess-C0CJ71py.js.map} +1 -1
  252. package/chunk/{StepSuccess-qasBPbP-.js → StepSuccess-DG0gzN_H.js} +13 -13
  253. package/chunk/{StepSuccess-qasBPbP-.js.map → StepSuccess-DG0gzN_H.js.map} +1 -1
  254. package/chunk/{StepTeacherPersonalInfo-DpBK6-DZ.js → StepTeacherPersonalInfo-B9e_tX1X.js} +18 -18
  255. package/chunk/{StepTeacherPersonalInfo-ABdLrMoc.js.map → StepTeacherPersonalInfo-B9e_tX1X.js.map} +1 -1
  256. package/chunk/{StepTeacherPersonalInfo-ABdLrMoc.js → StepTeacherPersonalInfo-tjOfVXdN.js} +18 -18
  257. package/chunk/{StepTeacherPersonalInfo-DpBK6-DZ.js.map → StepTeacherPersonalInfo-tjOfVXdN.js.map} +1 -1
  258. package/chunk/StepThirdPartyLoop-BrKuZcYb.js +4 -4
  259. package/chunk/StepThirdPartyLoop-CbFTIlwP.js +4 -4
  260. package/chunk/{TeacherSchoolComponent-ZyGFZ0P6.js → TeacherSchoolComponent-DLvzlcwS.js} +10 -10
  261. package/chunk/{TeacherSchoolComponent-DHbw7WeF.js.map → TeacherSchoolComponent-DLvzlcwS.js.map} +1 -1
  262. package/chunk/{TeacherSchoolComponent-DHbw7WeF.js → TeacherSchoolComponent-DqHut9DM.js} +10 -10
  263. package/chunk/{TeacherSchoolComponent-ZyGFZ0P6.js.map → TeacherSchoolComponent-DqHut9DM.js.map} +1 -1
  264. package/chunk/{TestingRouteOverrides-g0sNWumM.js → TestingRouteOverrides-EggQSvgh.js} +6 -6
  265. package/chunk/{TestingRouteOverrides-g0sNWumM.js.map → TestingRouteOverrides-EggQSvgh.js.map} +1 -1
  266. package/chunk/{TestingRouteOverrides-BJ6TzzV2.js → TestingRouteOverrides-ipf_F-iY.js} +6 -6
  267. package/chunk/{TestingRouteOverrides-BJ6TzzV2.js.map → TestingRouteOverrides-ipf_F-iY.js.map} +1 -1
  268. package/chunk/ThreatMetrix-D_TbL50B.js +4 -4
  269. package/chunk/ar-D5CO913q.js +4 -4
  270. package/chunk/bg-1mhA5kYF.js +4 -4
  271. package/chunk/bn-IN-CpDqyRb_.js +4 -4
  272. package/chunk/clsx-CB5rauS5.js +4 -4
  273. package/chunk/{countryUtils-2xROZ0HR.js → countryUtils-BBN8jYxF.js} +5 -5
  274. package/chunk/{countryUtils-2xROZ0HR.js.map → countryUtils-BBN8jYxF.js.map} +1 -1
  275. package/chunk/countryUtils-n_5QoHGV.js +12 -0
  276. package/chunk/{countryUtils-BrbLtF3F.js.map → countryUtils-n_5QoHGV.js.map} +1 -1
  277. package/chunk/cs-Chh7FAGt.js +4 -4
  278. package/chunk/da-DwrVoxto.js +4 -4
  279. package/chunk/de-IWGZLhgY.js +4 -4
  280. package/chunk/{downshift.esm-ChdSY3iz.js → downshift.esm-C3VmEjPJ.js} +7 -7
  281. package/chunk/{downshift.esm-ChdSY3iz.js.map → downshift.esm-C3VmEjPJ.js.map} +1 -1
  282. package/chunk/{downshift.esm-DOqSxIK4.js → downshift.esm-CQQa_wPA.js} +7 -7
  283. package/chunk/{downshift.esm-DOqSxIK4.js.map → downshift.esm-CQQa_wPA.js.map} +1 -1
  284. package/chunk/el-DbDcvSPJ.js +4 -4
  285. package/chunk/{empties-DVYWFiU4.js → empties-DHI3R7ys.js} +5 -5
  286. package/chunk/{empties-CrGLsC5v.js.map → empties-DHI3R7ys.js.map} +1 -1
  287. package/chunk/{empties-CrGLsC5v.js → empties-Dhc64eA5.js} +5 -5
  288. package/chunk/{empties-DVYWFiU4.js.map → empties-Dhc64eA5.js.map} +1 -1
  289. package/chunk/en-GB-BBkjjtqq.js +4 -4
  290. package/chunk/es-ES-DWimqEZ_.js +4 -4
  291. package/chunk/es-qhC-seq5.js +4 -4
  292. package/chunk/et-yF9G-Mym.js +4 -4
  293. package/chunk/eventEmitter-CSG6jR7V.js +4 -4
  294. package/chunk/fa-BcdSf7og.js +4 -4
  295. package/chunk/fi-D-IP_KHm.js +4 -4
  296. package/chunk/fr-BmUuYxk0.js +4 -4
  297. package/chunk/fr-CA-DVQ4xmzZ.js +4 -4
  298. package/chunk/ga-DuZycND3.js +4 -4
  299. package/chunk/hi-IN-l6Rn5Ewm.js +4 -4
  300. package/chunk/{hooks-j2dPIOl1.js → hooks-B8Gr4Mtw.js} +7 -7
  301. package/chunk/{hooks-Bl6VU6hP.js.map → hooks-B8Gr4Mtw.js.map} +1 -1
  302. package/chunk/{hooks-Bl6VU6hP.js → hooks-Cl3P7QIh.js} +7 -7
  303. package/chunk/{hooks-j2dPIOl1.js.map → hooks-Cl3P7QIh.js.map} +1 -1
  304. package/chunk/hr-BtqyDzDB.js +4 -4
  305. package/chunk/hu-C6syKJfb.js +4 -4
  306. package/chunk/id-GgI-Z2a5.js +4 -4
  307. package/chunk/{intl-D0f52P7V.js → intl-CvSmE54g.js} +6 -6
  308. package/chunk/{intl-D0f52P7V.js.map → intl-CvSmE54g.js.map} +1 -1
  309. package/chunk/is-CvmKEON9.js +4 -4
  310. package/chunk/it-CnmveGgC.js +4 -4
  311. package/chunk/iw-DFUYHkxF.js +4 -4
  312. package/chunk/ja-CjVb2tWW.js +4 -4
  313. package/chunk/{jsx-runtime-ClghfwTa.js → jsx-runtime-CyXcV_93.js} +5 -5
  314. package/chunk/{jsx-runtime-ClghfwTa.js.map → jsx-runtime-CyXcV_93.js.map} +1 -1
  315. package/chunk/{jsx-runtime-FfARtXk2.js → jsx-runtime-JSlXFmKD.js} +5 -5
  316. package/chunk/{jsx-runtime-FfARtXk2.js.map → jsx-runtime-JSlXFmKD.js.map} +1 -1
  317. package/chunk/kk-Dvz4nK6K.js +4 -4
  318. package/chunk/ko-DzOqBMGC.js +4 -4
  319. package/chunk/lo-C2WPq55d.js +4 -4
  320. package/chunk/lt-BSDYvjTF.js +4 -4
  321. package/chunk/lv-CefDPT-M.js +4 -4
  322. package/chunk/mockProgramTheme-CBqgtg7A.js +4 -4
  323. package/chunk/{mocks-Baq-FHji.js → mocks-Dpf6dNc6.js} +5 -5
  324. package/chunk/{mocks-DLTwXwzM.js.map → mocks-Dpf6dNc6.js.map} +1 -1
  325. package/chunk/{mocks-DLTwXwzM.js → mocks-DrV8NINc.js} +5 -5
  326. package/chunk/{mocks-Baq-FHji.js.map → mocks-DrV8NINc.js.map} +1 -1
  327. package/chunk/ms-BjestZxy.js +4 -4
  328. package/chunk/nl-B1FyUfCT.js +4 -4
  329. package/chunk/nl-BE-CbeAd3nq.js +4 -4
  330. package/chunk/no-Dr633Ddi.js +4 -4
  331. package/chunk/{options-CvRaXPRs.js → options-CRzdSTAR.js} +6 -6
  332. package/chunk/{options-CvRaXPRs.js.map → options-CRzdSTAR.js.map} +1 -1
  333. package/chunk/pl-UYTjMIq_.js +4 -4
  334. package/chunk/{programThemeGetters-CQmR9Vit.js → programThemeGetters-DYWYXv-a.js} +5 -5
  335. package/chunk/{programThemeGetters-CQmR9Vit.js.map → programThemeGetters-DYWYXv-a.js.map} +1 -1
  336. package/chunk/{programThemeGetters-Bhp4oSEn.js → programThemeGetters-VBnkSxuj.js} +5 -5
  337. package/chunk/{programThemeGetters-Bhp4oSEn.js.map → programThemeGetters-VBnkSxuj.js.map} +1 -1
  338. package/chunk/pt-BR-C8SYMT-J.js +4 -4
  339. package/chunk/pt-uH-M3GdN.js +4 -4
  340. package/chunk/refs-Mq0rtW9K.js +4 -4
  341. package/chunk/ro-CAOSXZ7h.js +4 -4
  342. package/chunk/ru-iwYoEydL.js +4 -4
  343. package/chunk/runtimeTypes-B2AGNJMT.js +4 -4
  344. package/chunk/sk-DYYNV3zw.js +4 -4
  345. package/chunk/sl-D_-eeM5N.js +4 -4
  346. package/chunk/sr-BTi9_anL.js +4 -4
  347. package/chunk/{stepComponentHelpers-MbfsqlvF.js → stepComponentHelpers-DKGaTSta.js} +8 -8
  348. package/chunk/{stepComponentHelpers-BaQqHci7.js.map → stepComponentHelpers-DKGaTSta.js.map} +1 -1
  349. package/chunk/{stepComponentHelpers-BaQqHci7.js → stepComponentHelpers-DXPc6DBY.js} +8 -8
  350. package/chunk/{stepComponentHelpers-MbfsqlvF.js.map → stepComponentHelpers-DXPc6DBY.js.map} +1 -1
  351. package/chunk/strings-DWLVdUcm.js +4 -4
  352. package/chunk/sv-DRwY4shG.js +4 -4
  353. package/chunk/sw-Bvj2mYmM.js +4 -4
  354. package/chunk/ta-CmtaYoNe.js +4 -4
  355. package/chunk/th-12r2yKkJ.js +4 -4
  356. package/chunk/tl-BGNfO7md.js +4 -4
  357. package/chunk/tr-DH2ZSJhs.js +4 -4
  358. package/chunk/uk-CELBZlTd.js +4 -4
  359. package/chunk/ur-MR8DTbmd.js +4 -4
  360. package/chunk/{useCollectFieldsEndpoint-CzGkTNnS.js → useCollectFieldsEndpoint-5ld0_w6u.js} +8 -8
  361. package/chunk/{useCollectFieldsEndpoint-B7KcJqmI.js.map → useCollectFieldsEndpoint-5ld0_w6u.js.map} +1 -1
  362. package/chunk/{useCollectFieldsEndpoint-B7KcJqmI.js → useCollectFieldsEndpoint-DHnHpCRC.js} +8 -8
  363. package/chunk/{useCollectFieldsEndpoint-CzGkTNnS.js.map → useCollectFieldsEndpoint-DHnHpCRC.js.map} +1 -1
  364. package/chunk/{useMetrics-BEoV8Edp.js → useMetrics-BBypvN8X.js} +7 -7
  365. package/chunk/{useMetrics-CRK2aOGa.js.map → useMetrics-BBypvN8X.js.map} +1 -1
  366. package/chunk/{useMetrics-CRK2aOGa.js → useMetrics-Grd89oUa.js} +7 -7
  367. package/chunk/{useMetrics-BEoV8Edp.js.map → useMetrics-Grd89oUa.js.map} +1 -1
  368. package/chunk/vi-DtZ-SqD5.js +4 -4
  369. package/chunk/zh-DjyVyYac.js +4 -4
  370. package/chunk/zh-HK-CN1HarHq.js +4 -4
  371. package/chunk/zu-DPhgIh1z.js +4 -4
  372. package/package.json +1 -1
  373. package/sheerid-install.css +4 -4
  374. package/sheerid-install.js +4 -4
  375. package/sheerid.css +4 -4
  376. package/sheerid.js +44 -44
  377. package/chunk/countryUtils-BrbLtF3F.js +0 -12
@@ -1 +1 @@
1
- {"version":3,"file":"StepCollectMilitaryPersonalInfoComponent-DgAhHND2.js","names":[],"sources":["../../src/components/StepMilitaryPersonalInfo/militaryStepHelpers.ts","../../src/components/StepMilitaryPersonalInfo/StepCollectMilitaryPersonalInfoComponent.tsx"],"sourcesContent":["import produce from \"immer\";\n\nimport {\n type VerificationService,\n type FormSelectChoice,\n type MilitaryPersonalInfoViewModel,\n} from \"../../lib/types/types\";\n\nexport const updateMilitaryViewModel = (\n key: keyof MilitaryPersonalInfoViewModel,\n value: any,\n verificationService: VerificationService,\n availableStatuses: FormSelectChoice[],\n): MilitaryPersonalInfoViewModel => {\n const viewModel = verificationService.viewModel as MilitaryPersonalInfoViewModel;\n return produce(viewModel, (draft: MilitaryPersonalInfoViewModel) => {\n (draft[key] as any) = value;\n\n // Reset military-managed skip flags before reapplying.\n const militaryManagedFields = [\"status\"];\n draft.fieldsToSkipValidation = (draft.fieldsToSkipValidation || []).filter(\n (id) => !militaryManagedFields.includes(id),\n );\n\n if (!availableStatuses || availableStatuses.length === 0) {\n draft.fieldsToSkipValidation.push(\"status\");\n }\n\n if (key === \"status\") {\n draft.organization = { id: 0, name: \"\" };\n }\n });\n};\n","/* eslint-disable */\nimport React from \"react\";\nimport { FormattedHTMLMessage, injectIntl } from \"react-intl\";\n\nimport { type CollectInfoSteps, VerificationStepsEnum } from \"../../lib/types/runtimeTypes\";\nimport { hasFailedInstantMatch } from \"../../lib/VerificationService/VerificationServiceHelpers\";\nimport { resetRefs } from \"../../lib/refs/refs\";\nimport {\n VerificationService,\n FormSelectChoice,\n Organization,\n MilitaryPersonalInfoViewModel,\n ActiveMilitaryPersonalInfoResponse,\n InactiveMilitaryPersonalInfoResponse,\n MilitaryStatusResponse,\n CustomFormFieldConfig,\n FieldDescription,\n State,\n} from \"../../lib/types/types\";\nimport { useCollectFieldsEndpoint } from \"../../lib/ServerApi/useCollectFieldsEndpoint\";\nimport { isCountrySelectionNeeded } from \"../FormFields/Country/countryUtils\";\nimport {\n handleEmailOnKeyDown,\n updateFieldValidationErrorsByFieldId,\n updateViewModelOrganization,\n getStatusLabel,\n getStatusOptions,\n getAvailableStateChoices,\n getFieldConfigByFieldId,\n} from \"../../lib/utils/stepComponentHelpers/stepComponentHelpers\";\n\nimport { CountryComponentWrapper } from \"../FormFields/Country/CountryComponentWrapper\";\nimport { PhoneNumberComponent as PhoneNumber } from \"../FormFields/PhoneNumber/PhoneNumberComponent\";\nimport { FirstNameComponent as FirstName } from \"../FormFields/FirstName/FirstNameComponent\";\nimport { LastNameComponent as LastName } from \"../FormFields/LastName/LastNameComponent\";\nimport { EmailComponent as Email } from \"../FormFields/Email/EmailComponent\";\nimport { BirthDateComponent as BirthDate } from \"../FormFields/BirthDate/BirthDateComponent\";\nimport { StatusComponent as MilitaryStatusComponent } from \"../FormFields/Status/StatusComponent\";\nimport { BranchOfServiceComponent as BranchOfService } from \"../FormFields/BranchOfService/BranchOfServiceComponent\";\nimport { DischargeDateComponent as DischargeDate } from \"../FormFields/DischargeDate/DischargeDateComponent\";\nimport { MarketConsentWrapperComponent as MarketConsentWrapper } from \"../FormFields/MarketConsentWrapper/MarketConsentWrapperComponent\";\nimport { ActiveDutyStartDateComponent } from \"../FormFields/ActiveDutyStartDate/ActiveDutyStartDateComponent\";\nimport { AddressComponent } from \"../FormFields/Address/AddressComponent\";\nimport { CityComponent } from \"../FormFields/City/City\";\nimport { StateSelectComponent } from \"../FormFields/State/StateSelectComponent\";\nimport { PostalCodeComponent } from \"../FormFields/PostalCode/PostalCodeComponent\";\nimport { ChangeLocaleV2Component } from \"../FormFields/ChangeLocale/ChangeLocaleComponent\";\nimport { CaptchaComponent } from \"../FormFields/Captcha/CaptchaComponent\";\nimport { PersonalInfoWrapper } from \"../PersonalInfoStepWrapper/PersonalInfoStepWrapper\";\nimport { PersonalInfoStepSubmitButton } from \"../PersonalInfoStepSubmitButton/PersonalInfoStepSubmitButton\";\nimport { PersonalInfoHeader } from \"../FormHeader/StepHeaders/PersonalInfoHeaderComponent\";\nimport { FormFieldCustom } from \"../FormFields/FormFieldCustom/FormFieldCustom\";\nimport { ExtraMessage } from \"../ExtraMessage\";\nimport { getOptions } from \"../../options/options\";\n\nimport { updateMilitaryViewModel } from \"./militaryStepHelpers\";\n\ninterface Props {\n intl: any;\n verificationService: VerificationService;\n}\n\nexport const StepCollectMilitaryPersonalInfo = ({ intl, verificationService }: Props) => {\n const viewModel = verificationService.viewModel as MilitaryPersonalInfoViewModel;\n const { fieldValidationErrors } = verificationService;\n const verificationResponse = verificationService.verificationResponse as\n | ActiveMilitaryPersonalInfoResponse\n | InactiveMilitaryPersonalInfoResponse;\n const failedInstantMatch = hasFailedInstantMatch(verificationResponse);\n\n // Seed: show dischargeDate on first paint when the response indicates an\n // inactive flow, or when the program's transitional validity window applies.\n // The /fields response replaces this once it resolves.\n const showDischargeDateInitially =\n verificationResponse.currentStep ===\n VerificationStepsEnum.collectInactiveMilitaryPersonalInfo ||\n !!verificationService.programTheme.transitionalMilitaryValidityDays;\n const initialRequiredFields: FieldDescription[] = showDischargeDateInitially\n ? [{ key: \"dischargeDate\" }]\n : [];\n\n const {\n availableStatuses: dynamicStatuses,\n isFieldRequired,\n isFieldOptional,\n } = useCollectFieldsEndpoint({\n verificationId: verificationResponse.verificationId,\n currentStep: VerificationStepsEnum.collectMilitaryPersonalInfo,\n viewModel,\n defaultRequiredFields: initialRequiredFields,\n });\n\n const countryChoiceValue = viewModel.countryChoice?.value;\n const needToPickCountry = isCountrySelectionNeeded(\n verificationService.programTheme,\n countryChoiceValue,\n );\n\n const statusOptions = getStatusOptions(\n intl,\n dynamicStatuses ??\n (verificationResponse as unknown as MilitaryStatusResponse).availableStatuses ??\n (verificationService.previousVerificationResponse as MilitaryStatusResponse)\n ?.availableStatuses,\n );\n\n const locale = viewModel.localeChoice.value;\n const options = getOptions();\n\n const showDischargeDate = isFieldRequired(\"dischargeDate\") || isFieldOptional(\"dischargeDate\");\n\n const updateMilitary = (key: keyof MilitaryPersonalInfoViewModel, value: any) => {\n verificationService.updateViewModel(\n updateMilitaryViewModel(key, value, verificationService, statusOptions),\n );\n };\n\n resetRefs();\n\n return (\n <PersonalInfoWrapper\n verificationService={verificationService}\n step={verificationResponse.currentStep}\n className=\"sid-military-personal-info-container\"\n >\n <PersonalInfoHeader\n verificationService={verificationService}\n classNameIdentifier=\"active-military-personal-info\"\n />\n <>\n <ChangeLocaleV2Component verificationService={verificationService} />\n <CountryComponentWrapper\n verificationService={verificationService}\n disabled={getFieldConfigByFieldId(\"country\")?.disabled}\n />\n {statusOptions.length > 0 ? (\n <MilitaryStatusComponent\n segmentId=\"military\"\n value={{\n value: viewModel.status,\n label: getStatusLabel(intl, viewModel.status),\n }}\n isErrored={!!fieldValidationErrors.status}\n errorId=\"invalidMilitaryStatus\"\n options={statusOptions}\n disabled={needToPickCountry || getFieldConfigByFieldId(\"status\")?.disabled}\n explanation={\n needToPickCountry ? (\n <FormattedHTMLMessage id=\"chooseCountry\" defaultMessage=\"Choose a country first\" />\n ) : undefined\n }\n onChange={(status: FormSelectChoice) => {\n updateMilitary(\"status\", status ? (status.value as string) : \"\");\n updateFieldValidationErrorsByFieldId(\n \"status\",\n status ? (status.value as string) : \"\",\n verificationService,\n );\n }}\n />\n ) : null}\n <BranchOfService\n isErrored={!!fieldValidationErrors.organization}\n onChange={(choice: Organization) => {\n updateViewModelOrganization(choice, verificationService);\n updateFieldValidationErrorsByFieldId(\"organization\", choice, verificationService);\n }}\n value={{\n value: viewModel.organization.id,\n label: viewModel.organization.name,\n }}\n verificationService={verificationService}\n disabled={getFieldConfigByFieldId(\"organization\")?.disabled}\n />\n\n <div className=\"sid-names\">\n <FirstName\n value={viewModel.firstName}\n isErrored={!!fieldValidationErrors.firstName}\n disabled={getFieldConfigByFieldId(\"firstName\")?.disabled}\n onChange={(newValue) => {\n updateMilitary(\"firstName\", newValue);\n updateFieldValidationErrorsByFieldId(\"firstName\", newValue, verificationService);\n }}\n />\n <LastName\n value={viewModel.lastName}\n isErrored={!!fieldValidationErrors.lastName}\n disabled={getFieldConfigByFieldId(\"lastName\")?.disabled}\n onChange={(newValue) => {\n updateMilitary(\"lastName\", newValue);\n updateFieldValidationErrorsByFieldId(\"lastName\", newValue, verificationService);\n }}\n />\n </div>\n\n <BirthDate\n errorId={fieldValidationErrors.birthDate}\n locale={locale}\n onChange={(newValue) => {\n updateMilitary(\"birthDate\", newValue);\n updateFieldValidationErrorsByFieldId(\"birthDate\", newValue, verificationService);\n }}\n value={viewModel.birthDate}\n disabled={getFieldConfigByFieldId(\"birthDate\")?.disabled}\n />\n\n {showDischargeDate && (\n <DischargeDate\n mode={\n !!verificationService.programTheme.transitionalMilitaryValidityDays ? \"date\" : \"month\"\n }\n errorId={fieldValidationErrors.dischargeDate}\n onChange={(newValue) => {\n updateMilitary(\"dischargeDate\", newValue);\n updateFieldValidationErrorsByFieldId(\"dischargeDate\", newValue, verificationService);\n }}\n value={viewModel.dischargeDate}\n locale={locale}\n disabled={getFieldConfigByFieldId(\"dischargeDate\")?.disabled}\n isRequired={isFieldRequired(\"dischargeDate\")}\n />\n )}\n\n {verificationService.programTheme.strictMilitaryValidationEnabled && (\n <ActiveDutyStartDateComponent\n errorId={fieldValidationErrors.activeDutyStartDate}\n locale={locale}\n onChange={(newValue) => {\n updateMilitary(\"activeDutyStartDate\", newValue);\n updateFieldValidationErrorsByFieldId(\n \"activeDutyStartDate\",\n newValue,\n verificationService,\n );\n }}\n value={viewModel.activeDutyStartDate}\n disabled={getFieldConfigByFieldId(\"activeDutyStartDate\")?.disabled}\n isRequired={getFieldConfigByFieldId(\"activeDutyStartDate\")?.requireIfOptional}\n />\n )}\n\n <Email\n value={viewModel.email}\n isErrored={!!fieldValidationErrors.email}\n explanation={\n <FormattedHTMLMessage\n id=\"emailExplanation\"\n defaultMessage=\"Personal email address is recommended\"\n />\n }\n onChange={(newValue) => {\n updateMilitary(\"email\", newValue);\n updateFieldValidationErrorsByFieldId(\"email\", newValue, verificationService);\n }}\n onKeyDown={(event) => handleEmailOnKeyDown(event)}\n disabled={getFieldConfigByFieldId(\"email\")?.disabled}\n />\n\n {verificationService.programTheme.isSmsNotifierConfigured ||\n verificationService.programTheme.smsLoopEnabled ? (\n <PhoneNumber\n isRequired={!!verificationService.programTheme.smsLoopEnabled}\n value={viewModel.phoneNumber}\n isErrored={!!fieldValidationErrors.phoneNumber}\n onChange={(newValue) => {\n updateMilitary(\"phoneNumber\", newValue);\n updateFieldValidationErrorsByFieldId(\"phoneNumber\", newValue, verificationService);\n }}\n selectedCountryCode={viewModel.countryChoice && viewModel.countryChoice.value}\n disabled={getFieldConfigByFieldId(\"phoneNumber\")?.disabled}\n />\n ) : null}\n\n {isFieldOptional(\"address1\") && (\n <AddressComponent\n value={viewModel.address1}\n isErrored={!!fieldValidationErrors.address1}\n errorId={fieldValidationErrors.address1}\n disabled={getFieldConfigByFieldId(\"address1\")?.disabled}\n onChange={(value) => {\n updateMilitary(\"address1\", value);\n updateFieldValidationErrorsByFieldId(\"address1\", value, verificationService);\n }}\n isRequired={getFieldConfigByFieldId(\"address1\")?.requireIfOptional}\n />\n )}\n {isFieldOptional(\"city\") && (\n <CityComponent\n value={viewModel.city}\n isErrored={!!fieldValidationErrors.city}\n errorId={fieldValidationErrors.city}\n disabled={getFieldConfigByFieldId(\"city\")?.disabled}\n onChange={(value) => {\n updateMilitary(\"city\", value);\n updateFieldValidationErrorsByFieldId(\"city\", value, verificationService);\n }}\n isRequired={getFieldConfigByFieldId(\"city\")?.requireIfOptional}\n />\n )}\n {isFieldOptional(\"state\") && (\n <StateSelectComponent\n options={getAvailableStateChoices(verificationService.programTheme, intl)}\n value={viewModel.state || undefined}\n isErrored={Boolean(fieldValidationErrors.state)}\n onChange={async (stateChoice: FormSelectChoice<State, string>) => {\n const stateValue = stateChoice ? stateChoice.value : undefined;\n updateMilitary(\"state\", stateValue);\n updateFieldValidationErrorsByFieldId(\"state\", stateValue, verificationService);\n }}\n label={<FormattedHTMLMessage id=\"state\" defaultMessage=\"State\" />}\n disabled={getFieldConfigByFieldId(\"state\")?.disabled}\n isRequired={getFieldConfigByFieldId(\"state\")?.requireIfOptional}\n />\n )}\n {isFieldOptional(\"postalCode\") && (\n <PostalCodeComponent\n required={getFieldConfigByFieldId(\"postalCode\")?.requireIfOptional}\n isErrored={!!fieldValidationErrors.postalCode}\n onChange={(newValue) => {\n updateMilitary(\"postalCode\", newValue);\n updateFieldValidationErrorsByFieldId(\"postalCode\", newValue, verificationService);\n }}\n value={viewModel.postalCode}\n disabled={getFieldConfigByFieldId(\"postalCode\")?.disabled}\n />\n )}\n\n {options.customFormFields.map((config: CustomFormFieldConfig) => (\n <FormFieldCustom config={config} verificationService={verificationService} />\n ))}\n\n <MarketConsentWrapper\n verificationService={verificationService}\n isErrored={!!fieldValidationErrors.marketConsentValue}\n onChange={(newValue) => {\n updateMilitary(\"metadata\", {\n ...verificationService.viewModel.metadata,\n marketConsentValue: newValue,\n });\n updateFieldValidationErrorsByFieldId(\n \"marketConsentValue\",\n newValue,\n verificationService,\n );\n }}\n viewModel={viewModel}\n disabled={getFieldConfigByFieldId(\"marketConsentValue\")?.disabled}\n />\n\n <ExtraMessage verificationService={verificationService} suffix=\"CollectAboveSubmit\" />\n\n <CaptchaComponent\n verificationService={verificationService}\n isErrored={!!fieldValidationErrors.captchaToken}\n />\n\n <PersonalInfoStepSubmitButton\n step={verificationResponse.currentStep as CollectInfoSteps}\n verificationService={verificationService}\n viewModel={viewModel}\n failedInstantMatch={failedInstantMatch}\n buttonText={\n <FormattedHTMLMessage\n id=\"step.personalInfo.submitButtonText\"\n defaultMessage=\"Verify My Military Status\"\n />\n }\n />\n </>\n </PersonalInfoWrapper>\n );\n};\n\nexport const StepCollectMilitaryPersonalInfoComponent = injectIntl(StepCollectMilitaryPersonalInfo);\nexport default StepCollectMilitaryPersonalInfoComponent;\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AAQA,IAAA,KAAA,GAAA,GAAA,GAAA,MAAA;;;;;;;;;;AAwBA,YC8Ba,KAAmC,EAAE,SAAM,6BAAiC;CACvF,IAAM,IAAY,EAAoB,WAChC,EAAE,6BAA0B,GAC5B,IAAuB,EAAoB,sBAG3C,IAAqB,EAAsB,CAAoB,GAS/D,IAHJ,EAAqB,gBACnB,EAAsB,uCACtB,EAAoB,aAAa,mCAEjC,CAAC,EAAE,KAAK,gBAAgB,CAAC,IACzB,CAAC,GAEC,EACJ,mBAAmB,GACnB,oBACA,uBACE,EAAyB;EAC3B,gBAAgB,EAAqB;EACrC,aAAa,EAAsB;EACnC;EACA,uBAAuB;CACzB,CAAC,GAEK,IAAqB,EAAU,eAAe,OAC9C,IAAoB,EACxB,EAAoB,cACpB,CACF,GAEM,IAAgB,EACpB,GACA,KACG,EAA2D,qBAC3D,EAAoB,8BACjB,iBACR,GAEM,IAAS,EAAU,aAAa,OAChC,IAAU,EAAW,GAErB,IAAoB,EAAgB,eAAe,KAAK,EAAgB,eAAe,GAEvF,KAAkB,GAA0C,MAAe;EAC/E,EAAoB,gBAClB,EAAwB,GAAK,GAAO,GAAqB,CAAa,CACxE;CACF;CAIA,OAFA,EAAU,GAGR,iBAAA,GAAA,EAAA,MAAC,GAAD;EACuB;EACrB,MAAM,EAAqB;EAC3B,WAAU;YAHZ,CAKE,iBAAA,GAAA,EAAA,KAAC,GAAD;GACuB;GACrB,qBAAoB;EACrB,CAAA,GACD,iBAAA,GAAA,EAAA,MAAA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OAAO,iBAAA,GAAA,EAAA,KAAC,GAAD;KAAsB,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,GAEa,IAA2C,EAAW,CAA+B"}
1
+ {"version":3,"file":"StepCollectMilitaryPersonalInfoComponent-Bf6RUl4N.js","names":[],"sources":["../../src/components/StepMilitaryPersonalInfo/militaryStepHelpers.ts","../../src/components/StepMilitaryPersonalInfo/StepCollectMilitaryPersonalInfoComponent.tsx"],"sourcesContent":["import produce from \"immer\";\n\nimport {\n type VerificationService,\n type FormSelectChoice,\n type MilitaryPersonalInfoViewModel,\n} from \"../../lib/types/types\";\n\nexport const updateMilitaryViewModel = (\n key: keyof MilitaryPersonalInfoViewModel,\n value: any,\n verificationService: VerificationService,\n availableStatuses: FormSelectChoice[],\n): MilitaryPersonalInfoViewModel => {\n const viewModel = verificationService.viewModel as MilitaryPersonalInfoViewModel;\n return produce(viewModel, (draft: MilitaryPersonalInfoViewModel) => {\n (draft[key] as any) = value;\n\n // Reset military-managed skip flags before reapplying.\n const militaryManagedFields = [\"status\"];\n draft.fieldsToSkipValidation = (draft.fieldsToSkipValidation || []).filter(\n (id) => !militaryManagedFields.includes(id),\n );\n\n if (!availableStatuses || availableStatuses.length === 0) {\n draft.fieldsToSkipValidation.push(\"status\");\n }\n\n if (key === \"status\") {\n draft.organization = { id: 0, name: \"\" };\n }\n });\n};\n","/* eslint-disable */\nimport React from \"react\";\nimport { FormattedHTMLMessage, injectIntl } from \"react-intl\";\n\nimport { type CollectInfoSteps, VerificationStepsEnum } from \"../../lib/types/runtimeTypes\";\nimport { hasFailedInstantMatch } from \"../../lib/VerificationService/VerificationServiceHelpers\";\nimport { resetRefs } from \"../../lib/refs/refs\";\nimport {\n VerificationService,\n FormSelectChoice,\n Organization,\n MilitaryPersonalInfoViewModel,\n ActiveMilitaryPersonalInfoResponse,\n InactiveMilitaryPersonalInfoResponse,\n MilitaryStatusResponse,\n CustomFormFieldConfig,\n FieldDescription,\n State,\n} from \"../../lib/types/types\";\nimport { useCollectFieldsEndpoint } from \"../../lib/ServerApi/useCollectFieldsEndpoint\";\nimport { isCountrySelectionNeeded } from \"../FormFields/Country/countryUtils\";\nimport {\n handleEmailOnKeyDown,\n updateFieldValidationErrorsByFieldId,\n updateViewModelOrganization,\n getStatusLabel,\n getStatusOptions,\n getAvailableStateChoices,\n getFieldConfigByFieldId,\n} from \"../../lib/utils/stepComponentHelpers/stepComponentHelpers\";\n\nimport { CountryComponentWrapper } from \"../FormFields/Country/CountryComponentWrapper\";\nimport { PhoneNumberComponent as PhoneNumber } from \"../FormFields/PhoneNumber/PhoneNumberComponent\";\nimport { FirstNameComponent as FirstName } from \"../FormFields/FirstName/FirstNameComponent\";\nimport { LastNameComponent as LastName } from \"../FormFields/LastName/LastNameComponent\";\nimport { EmailComponent as Email } from \"../FormFields/Email/EmailComponent\";\nimport { BirthDateComponent as BirthDate } from \"../FormFields/BirthDate/BirthDateComponent\";\nimport { StatusComponent as MilitaryStatusComponent } from \"../FormFields/Status/StatusComponent\";\nimport { BranchOfServiceComponent as BranchOfService } from \"../FormFields/BranchOfService/BranchOfServiceComponent\";\nimport { DischargeDateComponent as DischargeDate } from \"../FormFields/DischargeDate/DischargeDateComponent\";\nimport { MarketConsentWrapperComponent as MarketConsentWrapper } from \"../FormFields/MarketConsentWrapper/MarketConsentWrapperComponent\";\nimport { ActiveDutyStartDateComponent } from \"../FormFields/ActiveDutyStartDate/ActiveDutyStartDateComponent\";\nimport { AddressComponent } from \"../FormFields/Address/AddressComponent\";\nimport { CityComponent } from \"../FormFields/City/City\";\nimport { StateSelectComponent } from \"../FormFields/State/StateSelectComponent\";\nimport { PostalCodeComponent } from \"../FormFields/PostalCode/PostalCodeComponent\";\nimport { ChangeLocaleV2Component } from \"../FormFields/ChangeLocale/ChangeLocaleComponent\";\nimport { CaptchaComponent } from \"../FormFields/Captcha/CaptchaComponent\";\nimport { PersonalInfoWrapper } from \"../PersonalInfoStepWrapper/PersonalInfoStepWrapper\";\nimport { PersonalInfoStepSubmitButton } from \"../PersonalInfoStepSubmitButton/PersonalInfoStepSubmitButton\";\nimport { PersonalInfoHeader } from \"../FormHeader/StepHeaders/PersonalInfoHeaderComponent\";\nimport { FormFieldCustom } from \"../FormFields/FormFieldCustom/FormFieldCustom\";\nimport { ExtraMessage } from \"../ExtraMessage\";\nimport { getOptions } from \"../../options/options\";\n\nimport { updateMilitaryViewModel } from \"./militaryStepHelpers\";\n\ninterface Props {\n intl: any;\n verificationService: VerificationService;\n}\n\nexport const StepCollectMilitaryPersonalInfo = ({ intl, verificationService }: Props) => {\n const viewModel = verificationService.viewModel as MilitaryPersonalInfoViewModel;\n const { fieldValidationErrors } = verificationService;\n const verificationResponse = verificationService.verificationResponse as\n | ActiveMilitaryPersonalInfoResponse\n | InactiveMilitaryPersonalInfoResponse;\n const failedInstantMatch = hasFailedInstantMatch(verificationResponse);\n\n // Seed: show dischargeDate on first paint when the response indicates an\n // inactive flow, or when the program's transitional validity window applies.\n // The /fields response replaces this once it resolves.\n const showDischargeDateInitially =\n verificationResponse.currentStep ===\n VerificationStepsEnum.collectInactiveMilitaryPersonalInfo ||\n !!verificationService.programTheme.transitionalMilitaryValidityDays;\n const initialRequiredFields: FieldDescription[] = showDischargeDateInitially\n ? [{ key: \"dischargeDate\" }]\n : [];\n\n const {\n availableStatuses: dynamicStatuses,\n isFieldRequired,\n isFieldOptional,\n } = useCollectFieldsEndpoint({\n verificationId: verificationResponse.verificationId,\n currentStep: VerificationStepsEnum.collectMilitaryPersonalInfo,\n viewModel,\n defaultRequiredFields: initialRequiredFields,\n });\n\n const countryChoiceValue = viewModel.countryChoice?.value;\n const needToPickCountry = isCountrySelectionNeeded(\n verificationService.programTheme,\n countryChoiceValue,\n );\n\n const statusOptions = getStatusOptions(\n intl,\n dynamicStatuses ??\n (verificationResponse as unknown as MilitaryStatusResponse).availableStatuses ??\n (verificationService.previousVerificationResponse as MilitaryStatusResponse)\n ?.availableStatuses,\n );\n\n const locale = viewModel.localeChoice.value;\n const options = getOptions();\n\n const showDischargeDate = isFieldRequired(\"dischargeDate\") || isFieldOptional(\"dischargeDate\");\n\n const updateMilitary = (key: keyof MilitaryPersonalInfoViewModel, value: any) => {\n verificationService.updateViewModel(\n updateMilitaryViewModel(key, value, verificationService, statusOptions),\n );\n };\n\n resetRefs();\n\n return (\n <PersonalInfoWrapper\n verificationService={verificationService}\n step={verificationResponse.currentStep}\n className=\"sid-military-personal-info-container\"\n >\n <PersonalInfoHeader\n verificationService={verificationService}\n classNameIdentifier=\"active-military-personal-info\"\n />\n <>\n <ChangeLocaleV2Component verificationService={verificationService} />\n <CountryComponentWrapper\n verificationService={verificationService}\n disabled={getFieldConfigByFieldId(\"country\")?.disabled}\n />\n {statusOptions.length > 0 ? (\n <MilitaryStatusComponent\n segmentId=\"military\"\n value={{\n value: viewModel.status,\n label: getStatusLabel(intl, viewModel.status),\n }}\n isErrored={!!fieldValidationErrors.status}\n errorId=\"invalidMilitaryStatus\"\n options={statusOptions}\n disabled={needToPickCountry || getFieldConfigByFieldId(\"status\")?.disabled}\n explanation={\n needToPickCountry ? (\n <FormattedHTMLMessage id=\"chooseCountry\" defaultMessage=\"Choose a country first\" />\n ) : undefined\n }\n onChange={(status: FormSelectChoice) => {\n updateMilitary(\"status\", status ? (status.value as string) : \"\");\n updateFieldValidationErrorsByFieldId(\n \"status\",\n status ? (status.value as string) : \"\",\n verificationService,\n );\n }}\n />\n ) : null}\n <BranchOfService\n isErrored={!!fieldValidationErrors.organization}\n onChange={(choice: Organization) => {\n updateViewModelOrganization(choice, verificationService);\n updateFieldValidationErrorsByFieldId(\"organization\", choice, verificationService);\n }}\n value={{\n value: viewModel.organization.id,\n label: viewModel.organization.name,\n }}\n verificationService={verificationService}\n disabled={getFieldConfigByFieldId(\"organization\")?.disabled}\n />\n\n <div className=\"sid-names\">\n <FirstName\n value={viewModel.firstName}\n isErrored={!!fieldValidationErrors.firstName}\n disabled={getFieldConfigByFieldId(\"firstName\")?.disabled}\n onChange={(newValue) => {\n updateMilitary(\"firstName\", newValue);\n updateFieldValidationErrorsByFieldId(\"firstName\", newValue, verificationService);\n }}\n />\n <LastName\n value={viewModel.lastName}\n isErrored={!!fieldValidationErrors.lastName}\n disabled={getFieldConfigByFieldId(\"lastName\")?.disabled}\n onChange={(newValue) => {\n updateMilitary(\"lastName\", newValue);\n updateFieldValidationErrorsByFieldId(\"lastName\", newValue, verificationService);\n }}\n />\n </div>\n\n <BirthDate\n errorId={fieldValidationErrors.birthDate}\n locale={locale}\n onChange={(newValue) => {\n updateMilitary(\"birthDate\", newValue);\n updateFieldValidationErrorsByFieldId(\"birthDate\", newValue, verificationService);\n }}\n value={viewModel.birthDate}\n disabled={getFieldConfigByFieldId(\"birthDate\")?.disabled}\n />\n\n {showDischargeDate && (\n <DischargeDate\n mode={\n !!verificationService.programTheme.transitionalMilitaryValidityDays ? \"date\" : \"month\"\n }\n errorId={fieldValidationErrors.dischargeDate}\n onChange={(newValue) => {\n updateMilitary(\"dischargeDate\", newValue);\n updateFieldValidationErrorsByFieldId(\"dischargeDate\", newValue, verificationService);\n }}\n value={viewModel.dischargeDate}\n locale={locale}\n disabled={getFieldConfigByFieldId(\"dischargeDate\")?.disabled}\n isRequired={isFieldRequired(\"dischargeDate\")}\n />\n )}\n\n {verificationService.programTheme.strictMilitaryValidationEnabled && (\n <ActiveDutyStartDateComponent\n errorId={fieldValidationErrors.activeDutyStartDate}\n locale={locale}\n onChange={(newValue) => {\n updateMilitary(\"activeDutyStartDate\", newValue);\n updateFieldValidationErrorsByFieldId(\n \"activeDutyStartDate\",\n newValue,\n verificationService,\n );\n }}\n value={viewModel.activeDutyStartDate}\n disabled={getFieldConfigByFieldId(\"activeDutyStartDate\")?.disabled}\n isRequired={getFieldConfigByFieldId(\"activeDutyStartDate\")?.requireIfOptional}\n />\n )}\n\n <Email\n value={viewModel.email}\n isErrored={!!fieldValidationErrors.email}\n explanation={\n <FormattedHTMLMessage\n id=\"emailExplanation\"\n defaultMessage=\"Personal email address is recommended\"\n />\n }\n onChange={(newValue) => {\n updateMilitary(\"email\", newValue);\n updateFieldValidationErrorsByFieldId(\"email\", newValue, verificationService);\n }}\n onKeyDown={(event) => handleEmailOnKeyDown(event)}\n disabled={getFieldConfigByFieldId(\"email\")?.disabled}\n />\n\n {verificationService.programTheme.isSmsNotifierConfigured ||\n verificationService.programTheme.smsLoopEnabled ? (\n <PhoneNumber\n isRequired={!!verificationService.programTheme.smsLoopEnabled}\n value={viewModel.phoneNumber}\n isErrored={!!fieldValidationErrors.phoneNumber}\n onChange={(newValue) => {\n updateMilitary(\"phoneNumber\", newValue);\n updateFieldValidationErrorsByFieldId(\"phoneNumber\", newValue, verificationService);\n }}\n selectedCountryCode={viewModel.countryChoice && viewModel.countryChoice.value}\n disabled={getFieldConfigByFieldId(\"phoneNumber\")?.disabled}\n />\n ) : null}\n\n {isFieldOptional(\"address1\") && (\n <AddressComponent\n value={viewModel.address1}\n isErrored={!!fieldValidationErrors.address1}\n errorId={fieldValidationErrors.address1}\n disabled={getFieldConfigByFieldId(\"address1\")?.disabled}\n onChange={(value) => {\n updateMilitary(\"address1\", value);\n updateFieldValidationErrorsByFieldId(\"address1\", value, verificationService);\n }}\n isRequired={getFieldConfigByFieldId(\"address1\")?.requireIfOptional}\n />\n )}\n {isFieldOptional(\"city\") && (\n <CityComponent\n value={viewModel.city}\n isErrored={!!fieldValidationErrors.city}\n errorId={fieldValidationErrors.city}\n disabled={getFieldConfigByFieldId(\"city\")?.disabled}\n onChange={(value) => {\n updateMilitary(\"city\", value);\n updateFieldValidationErrorsByFieldId(\"city\", value, verificationService);\n }}\n isRequired={getFieldConfigByFieldId(\"city\")?.requireIfOptional}\n />\n )}\n {isFieldOptional(\"state\") && (\n <StateSelectComponent\n options={getAvailableStateChoices(verificationService.programTheme, intl)}\n value={viewModel.state || undefined}\n isErrored={Boolean(fieldValidationErrors.state)}\n onChange={async (stateChoice: FormSelectChoice<State, string>) => {\n const stateValue = stateChoice ? stateChoice.value : undefined;\n updateMilitary(\"state\", stateValue);\n updateFieldValidationErrorsByFieldId(\"state\", stateValue, verificationService);\n }}\n label={<FormattedHTMLMessage id=\"state\" defaultMessage=\"State\" />}\n disabled={getFieldConfigByFieldId(\"state\")?.disabled}\n isRequired={getFieldConfigByFieldId(\"state\")?.requireIfOptional}\n />\n )}\n {isFieldOptional(\"postalCode\") && (\n <PostalCodeComponent\n required={getFieldConfigByFieldId(\"postalCode\")?.requireIfOptional}\n isErrored={!!fieldValidationErrors.postalCode}\n onChange={(newValue) => {\n updateMilitary(\"postalCode\", newValue);\n updateFieldValidationErrorsByFieldId(\"postalCode\", newValue, verificationService);\n }}\n value={viewModel.postalCode}\n disabled={getFieldConfigByFieldId(\"postalCode\")?.disabled}\n />\n )}\n\n {options.customFormFields.map((config: CustomFormFieldConfig) => (\n <FormFieldCustom config={config} verificationService={verificationService} />\n ))}\n\n <MarketConsentWrapper\n verificationService={verificationService}\n isErrored={!!fieldValidationErrors.marketConsentValue}\n onChange={(newValue) => {\n updateMilitary(\"metadata\", {\n ...verificationService.viewModel.metadata,\n marketConsentValue: newValue,\n });\n updateFieldValidationErrorsByFieldId(\n \"marketConsentValue\",\n newValue,\n verificationService,\n );\n }}\n viewModel={viewModel}\n disabled={getFieldConfigByFieldId(\"marketConsentValue\")?.disabled}\n />\n\n <ExtraMessage verificationService={verificationService} suffix=\"CollectAboveSubmit\" />\n\n <CaptchaComponent\n verificationService={verificationService}\n isErrored={!!fieldValidationErrors.captchaToken}\n />\n\n <PersonalInfoStepSubmitButton\n step={verificationResponse.currentStep as CollectInfoSteps}\n verificationService={verificationService}\n viewModel={viewModel}\n failedInstantMatch={failedInstantMatch}\n buttonText={\n <FormattedHTMLMessage\n id=\"step.personalInfo.submitButtonText\"\n defaultMessage=\"Verify My Military Status\"\n />\n }\n />\n </>\n </PersonalInfoWrapper>\n );\n};\n\nexport const StepCollectMilitaryPersonalInfoComponent = injectIntl(StepCollectMilitaryPersonalInfo);\nexport default StepCollectMilitaryPersonalInfoComponent;\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AAQA,IAAA,KAAA,GAAA,GAAA,GAAA,MAAA;;;;;;;;;;AAwBA,YC8Ba,KAAmC,EAAE,SAAM,6BAAiC;CACvF,IAAM,IAAY,EAAoB,WAChC,EAAE,6BAA0B,GAC5B,IA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7B,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,GAEa,IAA2C,EAAW,CAA+B"}
@@ -1,32 +1,32 @@
1
1
 
2
2
  /**
3
- * VERSION: 2.284.0-alpha.0
4
- * BUILD_TIMESTAMP: 1789495598287
5
- * BUILD_DATE: Tue Sep 15 2026 18:06:38 GMT+0000 (Coordinated Universal Time)
6
- * BUILD_COMMIT: 1f15e88c77517e817b5e0876e256ba75f5914978
3
+ * VERSION: 2.286.0-alpha.0
4
+ * BUILD_TIMESTAMP: 1789576906490
5
+ * BUILD_DATE: Wed Sep 16 2026 16:41:46 GMT+0000 (Coordinated Universal Time)
6
+ * BUILD_COMMIT: 58cd071e490202b546ec8addac4434c422af952d
7
7
  */
8
- import { c as e, n as t } from "./options-CvRaXPRs.js";
9
- import { a as n, c as r, n as i, t as a } from "./jsx-runtime-ClghfwTa.js";
8
+ import { c as e, n as t } from "./options-CRzdSTAR.js";
9
+ import { a as n, c as r, n as i, t as a } from "./jsx-runtime-CyXcV_93.js";
10
10
  import { b as o } from "./runtimeTypes-B2AGNJMT.js";
11
- import { h as s } from "./FormFooterComponent-Kj-yjFXf.js";
11
+ import { h as s } from "./FormFooterComponent-DZsj4_dA.js";
12
12
  import { a as c } from "./refs-Mq0rtW9K.js";
13
13
  import { n as l } from "../sheerid.js";
14
- import { t as u } from "./useCollectFieldsEndpoint-CzGkTNnS.js";
15
- import { _ as d, c as f, g as p, i as m, n as h, o as g, s as _ } from "./stepComponentHelpers-BaQqHci7.js";
16
- import { a as v, i as y, n as b, o as x, s as S, t as C } from "./CaptchaComponent-u-GQEZQb.js";
17
- import { n as w, t as T } from "./PersonalInfoStepSubmitButton-DJbixgFz.js";
18
- import { t as E } from "./BirthDateComponent-BFahDZKp.js";
19
- import { t as D } from "./PostalCodeComponent-CjSyQkIE.js";
20
- import { t as O } from "./CountryComponentWrapper-CLr7P-na.js";
21
- import { t as k } from "./City-CBwes2ju.js";
22
- import { t as A } from "./AddressComponent-DoLQOH_G.js";
23
- import { t as j } from "./ExtraMessage-CnFLUWIp.js";
24
- import { t as M } from "./ChangeLocaleComponent-DeCgHor1.js";
25
- import { t as N } from "./PersonalInfoStepWrapper-B04GqKjN.js";
26
- import { t as P } from "./countryUtils-BrbLtF3F.js";
27
- import { t as ee } from "./StateSelectComponent-BRqfOFJB.js";
28
- import { n as F, r as I, t as L } from "./DischargeDateComponent-CrZnkWYD.js";
29
- import { t as R } from "./StatusComponent-BT29WKky.js";
14
+ import { t as u } from "./useCollectFieldsEndpoint-5ld0_w6u.js";
15
+ import { _ as d, c as f, g as p, i as m, n as h, o as g, s as _ } from "./stepComponentHelpers-DXPc6DBY.js";
16
+ import { a as v, i as y, n as b, o as x, s as S, t as C } from "./CaptchaComponent-CcBWvyd6.js";
17
+ import { n as w, t as T } from "./PersonalInfoStepSubmitButton-CJBqRRwZ.js";
18
+ import { t as E } from "./BirthDateComponent-DuD9ADP1.js";
19
+ import { t as D } from "./PostalCodeComponent-WM_PVYan.js";
20
+ import { t as O } from "./CountryComponentWrapper-BvRfYYfs.js";
21
+ import { t as k } from "./City-Drv6dzVo.js";
22
+ import { t as A } from "./AddressComponent-BO-P8AD4.js";
23
+ import { t as j } from "./ExtraMessage-psH__L4H.js";
24
+ import { t as M } from "./ChangeLocaleComponent-DTp8j-wE.js";
25
+ import { t as N } from "./PersonalInfoStepWrapper-C4Yji-mo.js";
26
+ import { t as P } from "./countryUtils-n_5QoHGV.js";
27
+ import { t as ee } from "./StateSelectComponent-DYLIANk8.js";
28
+ import { n as F, r as I, t as L } from "./DischargeDateComponent-Dca4kend.js";
29
+ import { t as R } from "./StatusComponent-B23ZumSo.js";
30
30
  r();
31
31
  var z = (t, n, r, i) => {
32
32
  let a = r.viewModel;
@@ -1 +1 @@
1
- {"version":3,"file":"StepCollectMilitaryPersonalInfoComponent-DubH-Em8.js","names":[],"sources":["../../src/components/StepMilitaryPersonalInfo/militaryStepHelpers.ts","../../src/components/StepMilitaryPersonalInfo/StepCollectMilitaryPersonalInfoComponent.tsx"],"sourcesContent":["import produce from \"immer\";\n\nimport {\n type VerificationService,\n type FormSelectChoice,\n type MilitaryPersonalInfoViewModel,\n} from \"../../lib/types/types\";\n\nexport const updateMilitaryViewModel = (\n key: keyof MilitaryPersonalInfoViewModel,\n value: any,\n verificationService: VerificationService,\n availableStatuses: FormSelectChoice[],\n): MilitaryPersonalInfoViewModel => {\n const viewModel = verificationService.viewModel as MilitaryPersonalInfoViewModel;\n return produce(viewModel, (draft: MilitaryPersonalInfoViewModel) => {\n (draft[key] as any) = value;\n\n // Reset military-managed skip flags before reapplying.\n const militaryManagedFields = [\"status\"];\n draft.fieldsToSkipValidation = (draft.fieldsToSkipValidation || []).filter(\n (id) => !militaryManagedFields.includes(id),\n );\n\n if (!availableStatuses || availableStatuses.length === 0) {\n draft.fieldsToSkipValidation.push(\"status\");\n }\n\n if (key === \"status\") {\n draft.organization = { id: 0, name: \"\" };\n }\n });\n};\n","/* eslint-disable */\nimport React from \"react\";\nimport { FormattedHTMLMessage, injectIntl } from \"react-intl\";\n\nimport { type CollectInfoSteps, VerificationStepsEnum } from \"../../lib/types/runtimeTypes\";\nimport { hasFailedInstantMatch } from \"../../lib/VerificationService/VerificationServiceHelpers\";\nimport { resetRefs } from \"../../lib/refs/refs\";\nimport {\n VerificationService,\n FormSelectChoice,\n Organization,\n MilitaryPersonalInfoViewModel,\n ActiveMilitaryPersonalInfoResponse,\n InactiveMilitaryPersonalInfoResponse,\n MilitaryStatusResponse,\n CustomFormFieldConfig,\n FieldDescription,\n State,\n} from \"../../lib/types/types\";\nimport { useCollectFieldsEndpoint } from \"../../lib/ServerApi/useCollectFieldsEndpoint\";\nimport { isCountrySelectionNeeded } from \"../FormFields/Country/countryUtils\";\nimport {\n handleEmailOnKeyDown,\n updateFieldValidationErrorsByFieldId,\n updateViewModelOrganization,\n getStatusLabel,\n getStatusOptions,\n getAvailableStateChoices,\n getFieldConfigByFieldId,\n} from \"../../lib/utils/stepComponentHelpers/stepComponentHelpers\";\n\nimport { CountryComponentWrapper } from \"../FormFields/Country/CountryComponentWrapper\";\nimport { PhoneNumberComponent as PhoneNumber } from \"../FormFields/PhoneNumber/PhoneNumberComponent\";\nimport { FirstNameComponent as FirstName } from \"../FormFields/FirstName/FirstNameComponent\";\nimport { LastNameComponent as LastName } from \"../FormFields/LastName/LastNameComponent\";\nimport { EmailComponent as Email } from \"../FormFields/Email/EmailComponent\";\nimport { BirthDateComponent as BirthDate } from \"../FormFields/BirthDate/BirthDateComponent\";\nimport { StatusComponent as MilitaryStatusComponent } from \"../FormFields/Status/StatusComponent\";\nimport { BranchOfServiceComponent as BranchOfService } from \"../FormFields/BranchOfService/BranchOfServiceComponent\";\nimport { DischargeDateComponent as DischargeDate } from \"../FormFields/DischargeDate/DischargeDateComponent\";\nimport { MarketConsentWrapperComponent as MarketConsentWrapper } from \"../FormFields/MarketConsentWrapper/MarketConsentWrapperComponent\";\nimport { ActiveDutyStartDateComponent } from \"../FormFields/ActiveDutyStartDate/ActiveDutyStartDateComponent\";\nimport { AddressComponent } from \"../FormFields/Address/AddressComponent\";\nimport { CityComponent } from \"../FormFields/City/City\";\nimport { StateSelectComponent } from \"../FormFields/State/StateSelectComponent\";\nimport { PostalCodeComponent } from \"../FormFields/PostalCode/PostalCodeComponent\";\nimport { ChangeLocaleV2Component } from \"../FormFields/ChangeLocale/ChangeLocaleComponent\";\nimport { CaptchaComponent } from \"../FormFields/Captcha/CaptchaComponent\";\nimport { PersonalInfoWrapper } from \"../PersonalInfoStepWrapper/PersonalInfoStepWrapper\";\nimport { PersonalInfoStepSubmitButton } from \"../PersonalInfoStepSubmitButton/PersonalInfoStepSubmitButton\";\nimport { PersonalInfoHeader } from \"../FormHeader/StepHeaders/PersonalInfoHeaderComponent\";\nimport { FormFieldCustom } from \"../FormFields/FormFieldCustom/FormFieldCustom\";\nimport { ExtraMessage } from \"../ExtraMessage\";\nimport { getOptions } from \"../../options/options\";\n\nimport { updateMilitaryViewModel } from \"./militaryStepHelpers\";\n\ninterface Props {\n intl: any;\n verificationService: VerificationService;\n}\n\nexport const StepCollectMilitaryPersonalInfo = ({ intl, verificationService }: Props) => {\n const viewModel = verificationService.viewModel as MilitaryPersonalInfoViewModel;\n const { fieldValidationErrors } = verificationService;\n const verificationResponse = verificationService.verificationResponse as\n | ActiveMilitaryPersonalInfoResponse\n | InactiveMilitaryPersonalInfoResponse;\n const failedInstantMatch = hasFailedInstantMatch(verificationResponse);\n\n // Seed: show dischargeDate on first paint when the response indicates an\n // inactive flow, or when the program's transitional validity window applies.\n // The /fields response replaces this once it resolves.\n const showDischargeDateInitially =\n verificationResponse.currentStep ===\n VerificationStepsEnum.collectInactiveMilitaryPersonalInfo ||\n !!verificationService.programTheme.transitionalMilitaryValidityDays;\n const initialRequiredFields: FieldDescription[] = showDischargeDateInitially\n ? [{ key: \"dischargeDate\" }]\n : [];\n\n const {\n availableStatuses: dynamicStatuses,\n isFieldRequired,\n isFieldOptional,\n } = useCollectFieldsEndpoint({\n verificationId: verificationResponse.verificationId,\n currentStep: VerificationStepsEnum.collectMilitaryPersonalInfo,\n viewModel,\n defaultRequiredFields: initialRequiredFields,\n });\n\n const countryChoiceValue = viewModel.countryChoice?.value;\n const needToPickCountry = isCountrySelectionNeeded(\n verificationService.programTheme,\n countryChoiceValue,\n );\n\n const statusOptions = getStatusOptions(\n intl,\n dynamicStatuses ??\n (verificationResponse as unknown as MilitaryStatusResponse).availableStatuses ??\n (verificationService.previousVerificationResponse as MilitaryStatusResponse)\n ?.availableStatuses,\n );\n\n const locale = viewModel.localeChoice.value;\n const options = getOptions();\n\n const showDischargeDate = isFieldRequired(\"dischargeDate\") || isFieldOptional(\"dischargeDate\");\n\n const updateMilitary = (key: keyof MilitaryPersonalInfoViewModel, value: any) => {\n verificationService.updateViewModel(\n updateMilitaryViewModel(key, value, verificationService, statusOptions),\n );\n };\n\n resetRefs();\n\n return (\n <PersonalInfoWrapper\n verificationService={verificationService}\n step={verificationResponse.currentStep}\n className=\"sid-military-personal-info-container\"\n >\n <PersonalInfoHeader\n verificationService={verificationService}\n classNameIdentifier=\"active-military-personal-info\"\n />\n <>\n <ChangeLocaleV2Component verificationService={verificationService} />\n <CountryComponentWrapper\n verificationService={verificationService}\n disabled={getFieldConfigByFieldId(\"country\")?.disabled}\n />\n {statusOptions.length > 0 ? (\n <MilitaryStatusComponent\n segmentId=\"military\"\n value={{\n value: viewModel.status,\n label: getStatusLabel(intl, viewModel.status),\n }}\n isErrored={!!fieldValidationErrors.status}\n errorId=\"invalidMilitaryStatus\"\n options={statusOptions}\n disabled={needToPickCountry || getFieldConfigByFieldId(\"status\")?.disabled}\n explanation={\n needToPickCountry ? (\n <FormattedHTMLMessage id=\"chooseCountry\" defaultMessage=\"Choose a country first\" />\n ) : undefined\n }\n onChange={(status: FormSelectChoice) => {\n updateMilitary(\"status\", status ? (status.value as string) : \"\");\n updateFieldValidationErrorsByFieldId(\n \"status\",\n status ? (status.value as string) : \"\",\n verificationService,\n );\n }}\n />\n ) : null}\n <BranchOfService\n isErrored={!!fieldValidationErrors.organization}\n onChange={(choice: Organization) => {\n updateViewModelOrganization(choice, verificationService);\n updateFieldValidationErrorsByFieldId(\"organization\", choice, verificationService);\n }}\n value={{\n value: viewModel.organization.id,\n label: viewModel.organization.name,\n }}\n verificationService={verificationService}\n disabled={getFieldConfigByFieldId(\"organization\")?.disabled}\n />\n\n <div className=\"sid-names\">\n <FirstName\n value={viewModel.firstName}\n isErrored={!!fieldValidationErrors.firstName}\n disabled={getFieldConfigByFieldId(\"firstName\")?.disabled}\n onChange={(newValue) => {\n updateMilitary(\"firstName\", newValue);\n updateFieldValidationErrorsByFieldId(\"firstName\", newValue, verificationService);\n }}\n />\n <LastName\n value={viewModel.lastName}\n isErrored={!!fieldValidationErrors.lastName}\n disabled={getFieldConfigByFieldId(\"lastName\")?.disabled}\n onChange={(newValue) => {\n updateMilitary(\"lastName\", newValue);\n updateFieldValidationErrorsByFieldId(\"lastName\", newValue, verificationService);\n }}\n />\n </div>\n\n <BirthDate\n errorId={fieldValidationErrors.birthDate}\n locale={locale}\n onChange={(newValue) => {\n updateMilitary(\"birthDate\", newValue);\n updateFieldValidationErrorsByFieldId(\"birthDate\", newValue, verificationService);\n }}\n value={viewModel.birthDate}\n disabled={getFieldConfigByFieldId(\"birthDate\")?.disabled}\n />\n\n {showDischargeDate && (\n <DischargeDate\n mode={\n !!verificationService.programTheme.transitionalMilitaryValidityDays ? \"date\" : \"month\"\n }\n errorId={fieldValidationErrors.dischargeDate}\n onChange={(newValue) => {\n updateMilitary(\"dischargeDate\", newValue);\n updateFieldValidationErrorsByFieldId(\"dischargeDate\", newValue, verificationService);\n }}\n value={viewModel.dischargeDate}\n locale={locale}\n disabled={getFieldConfigByFieldId(\"dischargeDate\")?.disabled}\n isRequired={isFieldRequired(\"dischargeDate\")}\n />\n )}\n\n {verificationService.programTheme.strictMilitaryValidationEnabled && (\n <ActiveDutyStartDateComponent\n errorId={fieldValidationErrors.activeDutyStartDate}\n locale={locale}\n onChange={(newValue) => {\n updateMilitary(\"activeDutyStartDate\", newValue);\n updateFieldValidationErrorsByFieldId(\n \"activeDutyStartDate\",\n newValue,\n verificationService,\n );\n }}\n value={viewModel.activeDutyStartDate}\n disabled={getFieldConfigByFieldId(\"activeDutyStartDate\")?.disabled}\n isRequired={getFieldConfigByFieldId(\"activeDutyStartDate\")?.requireIfOptional}\n />\n )}\n\n <Email\n value={viewModel.email}\n isErrored={!!fieldValidationErrors.email}\n explanation={\n <FormattedHTMLMessage\n id=\"emailExplanation\"\n defaultMessage=\"Personal email address is recommended\"\n />\n }\n onChange={(newValue) => {\n updateMilitary(\"email\", newValue);\n updateFieldValidationErrorsByFieldId(\"email\", newValue, verificationService);\n }}\n onKeyDown={(event) => handleEmailOnKeyDown(event)}\n disabled={getFieldConfigByFieldId(\"email\")?.disabled}\n />\n\n {verificationService.programTheme.isSmsNotifierConfigured ||\n verificationService.programTheme.smsLoopEnabled ? (\n <PhoneNumber\n isRequired={!!verificationService.programTheme.smsLoopEnabled}\n value={viewModel.phoneNumber}\n isErrored={!!fieldValidationErrors.phoneNumber}\n onChange={(newValue) => {\n updateMilitary(\"phoneNumber\", newValue);\n updateFieldValidationErrorsByFieldId(\"phoneNumber\", newValue, verificationService);\n }}\n selectedCountryCode={viewModel.countryChoice && viewModel.countryChoice.value}\n disabled={getFieldConfigByFieldId(\"phoneNumber\")?.disabled}\n />\n ) : null}\n\n {isFieldOptional(\"address1\") && (\n <AddressComponent\n value={viewModel.address1}\n isErrored={!!fieldValidationErrors.address1}\n errorId={fieldValidationErrors.address1}\n disabled={getFieldConfigByFieldId(\"address1\")?.disabled}\n onChange={(value) => {\n updateMilitary(\"address1\", value);\n updateFieldValidationErrorsByFieldId(\"address1\", value, verificationService);\n }}\n isRequired={getFieldConfigByFieldId(\"address1\")?.requireIfOptional}\n />\n )}\n {isFieldOptional(\"city\") && (\n <CityComponent\n value={viewModel.city}\n isErrored={!!fieldValidationErrors.city}\n errorId={fieldValidationErrors.city}\n disabled={getFieldConfigByFieldId(\"city\")?.disabled}\n onChange={(value) => {\n updateMilitary(\"city\", value);\n updateFieldValidationErrorsByFieldId(\"city\", value, verificationService);\n }}\n isRequired={getFieldConfigByFieldId(\"city\")?.requireIfOptional}\n />\n )}\n {isFieldOptional(\"state\") && (\n <StateSelectComponent\n options={getAvailableStateChoices(verificationService.programTheme, intl)}\n value={viewModel.state || undefined}\n isErrored={Boolean(fieldValidationErrors.state)}\n onChange={async (stateChoice: FormSelectChoice<State, string>) => {\n const stateValue = stateChoice ? stateChoice.value : undefined;\n updateMilitary(\"state\", stateValue);\n updateFieldValidationErrorsByFieldId(\"state\", stateValue, verificationService);\n }}\n label={<FormattedHTMLMessage id=\"state\" defaultMessage=\"State\" />}\n disabled={getFieldConfigByFieldId(\"state\")?.disabled}\n isRequired={getFieldConfigByFieldId(\"state\")?.requireIfOptional}\n />\n )}\n {isFieldOptional(\"postalCode\") && (\n <PostalCodeComponent\n required={getFieldConfigByFieldId(\"postalCode\")?.requireIfOptional}\n isErrored={!!fieldValidationErrors.postalCode}\n onChange={(newValue) => {\n updateMilitary(\"postalCode\", newValue);\n updateFieldValidationErrorsByFieldId(\"postalCode\", newValue, verificationService);\n }}\n value={viewModel.postalCode}\n disabled={getFieldConfigByFieldId(\"postalCode\")?.disabled}\n />\n )}\n\n {options.customFormFields.map((config: CustomFormFieldConfig) => (\n <FormFieldCustom config={config} verificationService={verificationService} />\n ))}\n\n <MarketConsentWrapper\n verificationService={verificationService}\n isErrored={!!fieldValidationErrors.marketConsentValue}\n onChange={(newValue) => {\n updateMilitary(\"metadata\", {\n ...verificationService.viewModel.metadata,\n marketConsentValue: newValue,\n });\n updateFieldValidationErrorsByFieldId(\n \"marketConsentValue\",\n newValue,\n verificationService,\n );\n }}\n viewModel={viewModel}\n disabled={getFieldConfigByFieldId(\"marketConsentValue\")?.disabled}\n />\n\n <ExtraMessage verificationService={verificationService} suffix=\"CollectAboveSubmit\" />\n\n <CaptchaComponent\n verificationService={verificationService}\n isErrored={!!fieldValidationErrors.captchaToken}\n />\n\n <PersonalInfoStepSubmitButton\n step={verificationResponse.currentStep as CollectInfoSteps}\n verificationService={verificationService}\n viewModel={viewModel}\n failedInstantMatch={failedInstantMatch}\n buttonText={\n <FormattedHTMLMessage\n id=\"step.personalInfo.submitButtonText\"\n defaultMessage=\"Verify My Military Status\"\n />\n }\n />\n </>\n </PersonalInfoWrapper>\n );\n};\n\nexport const StepCollectMilitaryPersonalInfoComponent = injectIntl(StepCollectMilitaryPersonalInfo);\nexport default StepCollectMilitaryPersonalInfoComponent;\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AAQA,IAAA,KAAA,GAAA,GAAA,GAAA,MAAA;;;;;;;;;;AAwBA,YC8Ba,KAAmC,EAAE,SAAM,6BAAiC;CACvF,IAAM,IAAY,EAAoB,WAChC,EAAE,6BAA0B,GAC5B,IAAuB,EAAoB,sBAG3C,IAAqB,EAAsB,CAAoB,GAS/D,IAHJ,EAAqB,gBACnB,EAAsB,uCACtB,EAAoB,aAAa,mCAEjC,CAAC,EAAE,KAAK,gBAAgB,CAAC,IACzB,CAAC,GAEC,EACJ,mBAAmB,GACnB,oBACA,uBACE,EAAyB;EAC3B,gBAAgB,EAAqB;EACrC,aAAa,EAAsB;EACnC;EACA,uBAAuB;CACzB,CAAC,GAEK,IAAqB,EAAU,eAAe,OAC9C,IAAoB,EACxB,EAAoB,cACpB,CACF,GAEM,IAAgB,EACpB,GACA,KACG,EAA2D,qBAC3D,EAAoB,8BACjB,iBACR,GAEM,IAAS,EAAU,aAAa,OAChC,IAAU,EAAW,GAErB,IAAoB,EAAgB,eAAe,KAAK,EAAgB,eAAe,GAEvF,KAAkB,GAA0C,MAAe;EAC/E,EAAoB,gBAClB,EAAwB,GAAK,GAAO,GAAqB,CAAa,CACxE;CACF;CAIA,OAFA,EAAU,GAGR,iBAAA,GAAA,EAAA,MAAC,GAAD;EACuB;EACrB,MAAM,EAAqB;EAC3B,WAA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IAA2C,EAAW,CAA+B"}
1
+ {"version":3,"file":"StepCollectMilitaryPersonalInfoComponent-Cg2JeswT.js","names":[],"sources":["../../src/components/StepMilitaryPersonalInfo/militaryStepHelpers.ts","../../src/components/StepMilitaryPersonalInfo/StepCollectMilitaryPersonalInfoComponent.tsx"],"sourcesContent":["import produce from \"immer\";\n\nimport {\n type VerificationService,\n type FormSelectChoice,\n type MilitaryPersonalInfoViewModel,\n} from \"../../lib/types/types\";\n\nexport const updateMilitaryViewModel = (\n key: keyof MilitaryPersonalInfoViewModel,\n value: any,\n verificationService: VerificationService,\n availableStatuses: FormSelectChoice[],\n): MilitaryPersonalInfoViewModel => {\n const viewModel = verificationService.viewModel as MilitaryPersonalInfoViewModel;\n return produce(viewModel, (draft: MilitaryPersonalInfoViewModel) => {\n (draft[key] as any) = value;\n\n // Reset military-managed skip flags before reapplying.\n const militaryManagedFields = [\"status\"];\n draft.fieldsToSkipValidation = (draft.fieldsToSkipValidation || []).filter(\n (id) => !militaryManagedFields.includes(id),\n );\n\n if (!availableStatuses || availableStatuses.length === 0) {\n draft.fieldsToSkipValidation.push(\"status\");\n }\n\n if (key === \"status\") {\n draft.organization = { id: 0, name: \"\" };\n }\n });\n};\n","/* eslint-disable */\nimport React from \"react\";\nimport { FormattedHTMLMessage, injectIntl } from \"react-intl\";\n\nimport { type CollectInfoSteps, VerificationStepsEnum } from \"../../lib/types/runtimeTypes\";\nimport { hasFailedInstantMatch } from \"../../lib/VerificationService/VerificationServiceHelpers\";\nimport { resetRefs } from \"../../lib/refs/refs\";\nimport {\n VerificationService,\n FormSelectChoice,\n Organization,\n MilitaryPersonalInfoViewModel,\n ActiveMilitaryPersonalInfoResponse,\n InactiveMilitaryPersonalInfoResponse,\n MilitaryStatusResponse,\n CustomFormFieldConfig,\n FieldDescription,\n State,\n} from \"../../lib/types/types\";\nimport { useCollectFieldsEndpoint } from \"../../lib/ServerApi/useCollectFieldsEndpoint\";\nimport { isCountrySelectionNeeded } from \"../FormFields/Country/countryUtils\";\nimport {\n handleEmailOnKeyDown,\n updateFieldValidationErrorsByFieldId,\n updateViewModelOrganization,\n getStatusLabel,\n getStatusOptions,\n getAvailableStateChoices,\n getFieldConfigByFieldId,\n} from \"../../lib/utils/stepComponentHelpers/stepComponentHelpers\";\n\nimport { CountryComponentWrapper } from \"../FormFields/Country/CountryComponentWrapper\";\nimport { PhoneNumberComponent as PhoneNumber } from \"../FormFields/PhoneNumber/PhoneNumberComponent\";\nimport { FirstNameComponent as FirstName } from \"../FormFields/FirstName/FirstNameComponent\";\nimport { LastNameComponent as LastName } from \"../FormFields/LastName/LastNameComponent\";\nimport { EmailComponent as Email } from \"../FormFields/Email/EmailComponent\";\nimport { BirthDateComponent as BirthDate } from \"../FormFields/BirthDate/BirthDateComponent\";\nimport { StatusComponent as MilitaryStatusComponent } from \"../FormFields/Status/StatusComponent\";\nimport { BranchOfServiceComponent as BranchOfService } from \"../FormFields/BranchOfService/BranchOfServiceComponent\";\nimport { DischargeDateComponent as DischargeDate } from \"../FormFields/DischargeDate/DischargeDateComponent\";\nimport { MarketConsentWrapperComponent as MarketConsentWrapper } from \"../FormFields/MarketConsentWrapper/MarketConsentWrapperComponent\";\nimport { ActiveDutyStartDateComponent } from \"../FormFields/ActiveDutyStartDate/ActiveDutyStartDateComponent\";\nimport { AddressComponent } from \"../FormFields/Address/AddressComponent\";\nimport { CityComponent } from \"../FormFields/City/City\";\nimport { StateSelectComponent } from \"../FormFields/State/StateSelectComponent\";\nimport { PostalCodeComponent } from \"../FormFields/PostalCode/PostalCodeComponent\";\nimport { ChangeLocaleV2Component } from \"../FormFields/ChangeLocale/ChangeLocaleComponent\";\nimport { CaptchaComponent } from \"../FormFields/Captcha/CaptchaComponent\";\nimport { PersonalInfoWrapper } from \"../PersonalInfoStepWrapper/PersonalInfoStepWrapper\";\nimport { PersonalInfoStepSubmitButton } from \"../PersonalInfoStepSubmitButton/PersonalInfoStepSubmitButton\";\nimport { PersonalInfoHeader } from \"../FormHeader/StepHeaders/PersonalInfoHeaderComponent\";\nimport { FormFieldCustom } from \"../FormFields/FormFieldCustom/FormFieldCustom\";\nimport { ExtraMessage } from \"../ExtraMessage\";\nimport { getOptions } from \"../../options/options\";\n\nimport { updateMilitaryViewModel } from \"./militaryStepHelpers\";\n\ninterface Props {\n intl: any;\n verificationService: VerificationService;\n}\n\nexport const StepCollectMilitaryPersonalInfo = ({ intl, verificationService }: Props) => {\n const viewModel = verificationService.viewModel as MilitaryPersonalInfoViewModel;\n const { fieldValidationErrors } = verificationService;\n const verificationResponse = verificationService.verificationResponse as\n | ActiveMilitaryPersonalInfoResponse\n | InactiveMilitaryPersonalInfoResponse;\n const failedInstantMatch = hasFailedInstantMatch(verificationResponse);\n\n // Seed: show dischargeDate on first paint when the response indicates an\n // inactive flow, or when the program's transitional validity window applies.\n // The /fields response replaces this once it resolves.\n const showDischargeDateInitially =\n verificationResponse.currentStep ===\n VerificationStepsEnum.collectInactiveMilitaryPersonalInfo ||\n !!verificationService.programTheme.transitionalMilitaryValidityDays;\n const initialRequiredFields: FieldDescription[] = showDischargeDateInitially\n ? [{ key: \"dischargeDate\" }]\n : [];\n\n const {\n availableStatuses: dynamicStatuses,\n isFieldRequired,\n isFieldOptional,\n } = useCollectFieldsEndpoint({\n verificationId: verificationResponse.verificationId,\n currentStep: VerificationStepsEnum.collectMilitaryPersonalInfo,\n viewModel,\n defaultRequiredFields: initialRequiredFields,\n });\n\n const countryChoiceValue = viewModel.countryChoice?.value;\n const needToPickCountry = isCountrySelectionNeeded(\n verificationService.programTheme,\n countryChoiceValue,\n );\n\n const statusOptions = getStatusOptions(\n intl,\n dynamicStatuses ??\n (verificationResponse as unknown as MilitaryStatusResponse).availableStatuses ??\n (verificationService.previousVerificationResponse as MilitaryStatusResponse)\n ?.availableStatuses,\n );\n\n const locale = viewModel.localeChoice.value;\n const options = getOptions();\n\n const showDischargeDate = isFieldRequired(\"dischargeDate\") || isFieldOptional(\"dischargeDate\");\n\n const updateMilitary = (key: keyof MilitaryPersonalInfoViewModel, value: any) => {\n verificationService.updateViewModel(\n updateMilitaryViewModel(key, value, verificationService, statusOptions),\n );\n };\n\n resetRefs();\n\n return (\n <PersonalInfoWrapper\n verificationService={verificationService}\n step={verificationResponse.currentStep}\n className=\"sid-military-personal-info-container\"\n >\n <PersonalInfoHeader\n verificationService={verificationService}\n classNameIdentifier=\"active-military-personal-info\"\n />\n <>\n <ChangeLocaleV2Component verificationService={verificationService} />\n <CountryComponentWrapper\n verificationService={verificationService}\n disabled={getFieldConfigByFieldId(\"country\")?.disabled}\n />\n {statusOptions.length > 0 ? (\n <MilitaryStatusComponent\n segmentId=\"military\"\n value={{\n value: viewModel.status,\n label: getStatusLabel(intl, viewModel.status),\n }}\n isErrored={!!fieldValidationErrors.status}\n errorId=\"invalidMilitaryStatus\"\n options={statusOptions}\n disabled={needToPickCountry || getFieldConfigByFieldId(\"status\")?.disabled}\n explanation={\n needToPickCountry ? (\n <FormattedHTMLMessage id=\"chooseCountry\" defaultMessage=\"Choose a country first\" />\n ) : undefined\n }\n onChange={(status: FormSelectChoice) => {\n updateMilitary(\"status\", status ? (status.value as string) : \"\");\n updateFieldValidationErrorsByFieldId(\n \"status\",\n status ? (status.value as string) : \"\",\n verificationService,\n );\n }}\n />\n ) : null}\n <BranchOfService\n isErrored={!!fieldValidationErrors.organization}\n onChange={(choice: Organization) => {\n updateViewModelOrganization(choice, verificationService);\n updateFieldValidationErrorsByFieldId(\"organization\", choice, verificationService);\n }}\n value={{\n value: viewModel.organization.id,\n label: viewModel.organization.name,\n }}\n verificationService={verificationService}\n disabled={getFieldConfigByFieldId(\"organization\")?.disabled}\n />\n\n <div className=\"sid-names\">\n <FirstName\n value={viewModel.firstName}\n isErrored={!!fieldValidationErrors.firstName}\n disabled={getFieldConfigByFieldId(\"firstName\")?.disabled}\n onChange={(newValue) => {\n updateMilitary(\"firstName\", newValue);\n updateFieldValidationErrorsByFieldId(\"firstName\", newValue, verificationService);\n }}\n />\n <LastName\n value={viewModel.lastName}\n isErrored={!!fieldValidationErrors.lastName}\n disabled={getFieldConfigByFieldId(\"lastName\")?.disabled}\n onChange={(newValue) => {\n updateMilitary(\"lastName\", newValue);\n updateFieldValidationErrorsByFieldId(\"lastName\", newValue, verificationService);\n }}\n />\n </div>\n\n <BirthDate\n errorId={fieldValidationErrors.birthDate}\n locale={locale}\n onChange={(newValue) => {\n updateMilitary(\"birthDate\", newValue);\n updateFieldValidationErrorsByFieldId(\"birthDate\", newValue, verificationService);\n }}\n value={viewModel.birthDate}\n disabled={getFieldConfigByFieldId(\"birthDate\")?.disabled}\n />\n\n {showDischargeDate && (\n <DischargeDate\n mode={\n !!verificationService.programTheme.transitionalMilitaryValidityDays ? \"date\" : \"month\"\n }\n errorId={fieldValidationErrors.dischargeDate}\n onChange={(newValue) => {\n updateMilitary(\"dischargeDate\", newValue);\n updateFieldValidationErrorsByFieldId(\"dischargeDate\", newValue, verificationService);\n }}\n value={viewModel.dischargeDate}\n locale={locale}\n disabled={getFieldConfigByFieldId(\"dischargeDate\")?.disabled}\n isRequired={isFieldRequired(\"dischargeDate\")}\n />\n )}\n\n {verificationService.programTheme.strictMilitaryValidationEnabled && (\n <ActiveDutyStartDateComponent\n errorId={fieldValidationErrors.activeDutyStartDate}\n locale={locale}\n onChange={(newValue) => {\n updateMilitary(\"activeDutyStartDate\", newValue);\n updateFieldValidationErrorsByFieldId(\n \"activeDutyStartDate\",\n newValue,\n verificationService,\n );\n }}\n value={viewModel.activeDutyStartDate}\n disabled={getFieldConfigByFieldId(\"activeDutyStartDate\")?.disabled}\n isRequired={getFieldConfigByFieldId(\"activeDutyStartDate\")?.requireIfOptional}\n />\n )}\n\n <Email\n value={viewModel.email}\n isErrored={!!fieldValidationErrors.email}\n explanation={\n <FormattedHTMLMessage\n id=\"emailExplanation\"\n defaultMessage=\"Personal email address is recommended\"\n />\n }\n onChange={(newValue) => {\n updateMilitary(\"email\", newValue);\n updateFieldValidationErrorsByFieldId(\"email\", newValue, verificationService);\n }}\n onKeyDown={(event) => handleEmailOnKeyDown(event)}\n disabled={getFieldConfigByFieldId(\"email\")?.disabled}\n />\n\n {verificationService.programTheme.isSmsNotifierConfigured ||\n verificationService.programTheme.smsLoopEnabled ? (\n <PhoneNumber\n isRequired={!!verificationService.programTheme.smsLoopEnabled}\n value={viewModel.phoneNumber}\n isErrored={!!fieldValidationErrors.phoneNumber}\n onChange={(newValue) => {\n updateMilitary(\"phoneNumber\", newValue);\n updateFieldValidationErrorsByFieldId(\"phoneNumber\", newValue, verificationService);\n }}\n selectedCountryCode={viewModel.countryChoice && viewModel.countryChoice.value}\n disabled={getFieldConfigByFieldId(\"phoneNumber\")?.disabled}\n />\n ) : null}\n\n {isFieldOptional(\"address1\") && (\n <AddressComponent\n value={viewModel.address1}\n isErrored={!!fieldValidationErrors.address1}\n errorId={fieldValidationErrors.address1}\n disabled={getFieldConfigByFieldId(\"address1\")?.disabled}\n onChange={(value) => {\n updateMilitary(\"address1\", value);\n updateFieldValidationErrorsByFieldId(\"address1\", value, verificationService);\n }}\n isRequired={getFieldConfigByFieldId(\"address1\")?.requireIfOptional}\n />\n )}\n {isFieldOptional(\"city\") && (\n <CityComponent\n value={viewModel.city}\n isErrored={!!fieldValidationErrors.city}\n errorId={fieldValidationErrors.city}\n disabled={getFieldConfigByFieldId(\"city\")?.disabled}\n onChange={(value) => {\n updateMilitary(\"city\", value);\n updateFieldValidationErrorsByFieldId(\"city\", value, verificationService);\n }}\n isRequired={getFieldConfigByFieldId(\"city\")?.requireIfOptional}\n />\n )}\n {isFieldOptional(\"state\") && (\n <StateSelectComponent\n options={getAvailableStateChoices(verificationService.programTheme, intl)}\n value={viewModel.state || undefined}\n isErrored={Boolean(fieldValidationErrors.state)}\n onChange={async (stateChoice: FormSelectChoice<State, string>) => {\n const stateValue = stateChoice ? stateChoice.value : undefined;\n updateMilitary(\"state\", stateValue);\n updateFieldValidationErrorsByFieldId(\"state\", stateValue, verificationService);\n }}\n label={<FormattedHTMLMessage id=\"state\" defaultMessage=\"State\" />}\n disabled={getFieldConfigByFieldId(\"state\")?.disabled}\n isRequired={getFieldConfigByFieldId(\"state\")?.requireIfOptional}\n />\n )}\n {isFieldOptional(\"postalCode\") && (\n <PostalCodeComponent\n required={getFieldConfigByFieldId(\"postalCode\")?.requireIfOptional}\n isErrored={!!fieldValidationErrors.postalCode}\n onChange={(newValue) => {\n updateMilitary(\"postalCode\", newValue);\n updateFieldValidationErrorsByFieldId(\"postalCode\", newValue, verificationService);\n }}\n value={viewModel.postalCode}\n disabled={getFieldConfigByFieldId(\"postalCode\")?.disabled}\n />\n )}\n\n {options.customFormFields.map((config: CustomFormFieldConfig) => (\n <FormFieldCustom config={config} verificationService={verificationService} />\n ))}\n\n <MarketConsentWrapper\n verificationService={verificationService}\n isErrored={!!fieldValidationErrors.marketConsentValue}\n onChange={(newValue) => {\n updateMilitary(\"metadata\", {\n ...verificationService.viewModel.metadata,\n marketConsentValue: newValue,\n });\n updateFieldValidationErrorsByFieldId(\n \"marketConsentValue\",\n newValue,\n verificationService,\n );\n }}\n viewModel={viewModel}\n disabled={getFieldConfigByFieldId(\"marketConsentValue\")?.disabled}\n />\n\n <ExtraMessage verificationService={verificationService} suffix=\"CollectAboveSubmit\" />\n\n <CaptchaComponent\n verificationService={verificationService}\n isErrored={!!fieldValidationErrors.captchaToken}\n />\n\n <PersonalInfoStepSubmitButton\n step={verificationResponse.currentStep as CollectInfoSteps}\n verificationService={verificationService}\n viewModel={viewModel}\n failedInstantMatch={failedInstantMatch}\n buttonText={\n <FormattedHTMLMessage\n id=\"step.personalInfo.submitButtonText\"\n defaultMessage=\"Verify My Military Status\"\n />\n }\n />\n </>\n </PersonalInfoWrapper>\n );\n};\n\nexport const StepCollectMilitaryPersonalInfoComponent = injectIntl(StepCollectMilitaryPersonalInfo);\nexport default StepCollectMilitaryPersonalInfoComponent;\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AAQA,IAAA,KAAA,GAAA,GAAA,GAAA,MAAA;;;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U,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,GAEa,IAA2C,EAAW,CAA+B"}
@@ -1,41 +1,41 @@
1
1
 
2
2
  /**
3
- * VERSION: 2.284.0-alpha.0
4
- * BUILD_TIMESTAMP: 1789495598287
5
- * BUILD_DATE: Tue Sep 15 2026 18:06:38 GMT+0000 (Coordinated Universal Time)
6
- * BUILD_COMMIT: 1f15e88c77517e817b5e0876e256ba75f5914978
3
+ * VERSION: 2.286.0-alpha.0
4
+ * BUILD_TIMESTAMP: 1789576906490
5
+ * BUILD_DATE: Wed Sep 16 2026 16:41:46 GMT+0000 (Coordinated Universal Time)
6
+ * BUILD_COMMIT: 58cd071e490202b546ec8addac4434c422af952d
7
7
  */
8
- import { Ot as e, c as t, n, ut as r } from "./options-CvRaXPRs.js";
9
- import { a as i, c as a, n as o, t as s } from "./jsx-runtime-ClghfwTa.js";
10
- import { _ as ee } from "./Message-COvAYKkG.js";
8
+ import { Ot as e, c as t, n, ut as r } from "./options-CRzdSTAR.js";
9
+ import { a as i, c as a, n as o, t as s } from "./jsx-runtime-CyXcV_93.js";
10
+ import { _ as ee } from "./Message-DTjPO81C.js";
11
11
  import { S as te, b as c, t as ne, u as l } from "./runtimeTypes-B2AGNJMT.js";
12
- import { h as re, t as ie } from "./FormFooterComponent-Kj-yjFXf.js";
13
- import { o as ae } from "./programThemeGetters-Bhp4oSEn.js";
12
+ import { h as re, t as ie } from "./FormFooterComponent-DZsj4_dA.js";
13
+ import { o as ae } from "./programThemeGetters-VBnkSxuj.js";
14
14
  import { n as oe } from "../sheerid.js";
15
- import { t as se } from "./useCollectFieldsEndpoint-CzGkTNnS.js";
16
- import { _ as u, c as ce, f as le, g as d, i as f, l as ue, m as de, n as fe, o as pe, s as me } from "./stepComponentHelpers-BaQqHci7.js";
17
- import { a as p, i as m, n as h, o as g, s as _, t as v } from "./CaptchaComponent-u-GQEZQb.js";
18
- import { n as y, t as b } from "./PersonalInfoStepSubmitButton-DJbixgFz.js";
19
- import { t as x } from "./BirthDateComponent-BFahDZKp.js";
20
- import { t as S } from "./PostalCodeComponent-CjSyQkIE.js";
21
- import { t as C } from "./CountryComponentWrapper-CLr7P-na.js";
22
- import { t as w } from "./City-CBwes2ju.js";
23
- import { t as T } from "./AddressComponent-DoLQOH_G.js";
24
- import { t as E } from "./ExtraMessage-CnFLUWIp.js";
25
- import { t as D } from "./countryUtils-BrbLtF3F.js";
26
- import { t as O } from "./CollegeNameComponent-Bh-JlL1l.js";
27
- import { t as k } from "./StateSelectComponent-BRqfOFJB.js";
28
- import { n as A, r as j, t as M } from "./DischargeDateComponent-CrZnkWYD.js";
29
- import { t as N } from "./DriverLicenseNumberComponent-R1Zp4ecL.js";
30
- import { n as P, t as F } from "./LowIncomeOrganizationComponent-CTzn5yqn.js";
31
- import { t as I } from "./StatusComponent-BT29WKky.js";
32
- import { t as he } from "./FirstResponderOrganizationComponent-BdiCq8nc.js";
33
- import { t as L } from "./LicensedProfessionalOrganizationComponent-Cf8zdOfP.js";
34
- import { t as R } from "./MedicalProfessionalOrganizationComponent-C-r7qNIP.js";
35
- import { t as ge } from "./MemberIdComponent-DH1c4fn5.js";
36
- import { t as _e } from "./MembershipOrganizationComponent-r2wTOcyR.js";
37
- import { t as ve } from "./TeacherSchoolComponent-DHbw7WeF.js";
38
- import { t as ye } from "./SSN-B7x3PbX1.js";
15
+ import { t as se } from "./useCollectFieldsEndpoint-5ld0_w6u.js";
16
+ import { _ as u, c as ce, f as le, g as d, i as f, l as ue, m as de, n as fe, o as pe, s as me } from "./stepComponentHelpers-DXPc6DBY.js";
17
+ import { a as p, i as m, n as h, o as g, s as _, t as v } from "./CaptchaComponent-CcBWvyd6.js";
18
+ import { n as y, t as b } from "./PersonalInfoStepSubmitButton-CJBqRRwZ.js";
19
+ import { t as x } from "./BirthDateComponent-DuD9ADP1.js";
20
+ import { t as S } from "./PostalCodeComponent-WM_PVYan.js";
21
+ import { t as C } from "./CountryComponentWrapper-BvRfYYfs.js";
22
+ import { t as w } from "./City-Drv6dzVo.js";
23
+ import { t as T } from "./AddressComponent-BO-P8AD4.js";
24
+ import { t as E } from "./ExtraMessage-psH__L4H.js";
25
+ import { t as D } from "./countryUtils-n_5QoHGV.js";
26
+ import { t as O } from "./CollegeNameComponent-BI5ZRKh5.js";
27
+ import { t as k } from "./StateSelectComponent-DYLIANk8.js";
28
+ import { n as A, r as j, t as M } from "./DischargeDateComponent-Dca4kend.js";
29
+ import { t as N } from "./DriverLicenseNumberComponent-DER7haaJ.js";
30
+ import { n as P, t as F } from "./LowIncomeOrganizationComponent-Bw9YwDiJ.js";
31
+ import { t as I } from "./StatusComponent-B23ZumSo.js";
32
+ import { t as he } from "./FirstResponderOrganizationComponent-v2Qu8r16.js";
33
+ import { t as L } from "./LicensedProfessionalOrganizationComponent-MU0Trmun.js";
34
+ import { t as R } from "./MedicalProfessionalOrganizationComponent-8sU5904Y.js";
35
+ import { t as ge } from "./MemberIdComponent-mi1g1xXL.js";
36
+ import { t as _e } from "./MembershipOrganizationComponent-B8uTiOjz.js";
37
+ import { t as ve } from "./TeacherSchoolComponent-DqHut9DM.js";
38
+ import { t as ye } from "./SSN-BKgXJ_Y3.js";
39
39
  //#region src/components/StepCollectPersonalInfo/StepCollectPersonalInfoComponent.tsx
40
40
  var z = /* @__PURE__ */ e(a(), 1), B = s(), V = i(({ intl: e, verificationService: i }) => {
41
41
  let a = i.viewModel, { updateViewModel: s, programTheme: V } = i, [H, be] = z.useState(void 0), U = (e) => H && H.some((t) => t.key === e), { fieldValidationErrors: W } = i, G = i.verificationResponse, xe = re(G), K = (e, n) => {
@@ -1 +1 @@
1
- {"version":3,"file":"StepCollectPersonalInfo-HKKol1iH.js","names":[],"sources":["../../src/components/StepCollectPersonalInfo/StepCollectPersonalInfoComponent.tsx"],"sourcesContent":["import React from \"react\";\nimport produce from \"immer\";\nimport { FormattedHTMLMessage, type InjectedIntl, injectIntl } from \"react-intl\";\n\nimport { getSafe } from \"@jslib/shared/utils/getSafe\";\nimport { logger } from \"@jslib/shared/utils/logger\";\n\nimport { hasFailedInstantMatch } from \"../../lib/VerificationService/VerificationServiceHelpers\";\nimport {\n type VerificationService,\n type CollectPersonalInfoViewModel,\n type CustomFormFieldConfig,\n type Organization,\n type FormSelectChoice,\n type State,\n type CollectFieldsResponse,\n type CollectPersonalInfoResponse,\n type FieldDescription,\n type AllStatuses,\n} from \"../../lib/types/types\";\nimport {\n getAvailableStateChoices,\n orgToOption,\n getStatusLabel,\n handleEmailOnKeyDown,\n submitForm,\n updateFieldValidationErrorsByFieldId,\n updateViewModelOrganization,\n produceDraftViewModelWithAllRequiredFields,\n getStatusOptions,\n getFieldConfigByFieldId,\n} from \"../../lib/utils/stepComponentHelpers/stepComponentHelpers\";\nimport { MarketConsentWrapperComponent as MarketConsentWrapper } from \"../FormFields/MarketConsentWrapper/MarketConsentWrapperComponent\";\nimport { PhoneNumberComponent as PhoneNumber } from \"../FormFields/PhoneNumber/PhoneNumberComponent\";\nimport { CollegeNameComponent as CollegeName } from \"../FormFields/CollegeName/CollegeNameComponent\";\nimport { FirstNameComponent as FirstName } from \"../FormFields/FirstName/FirstNameComponent\";\nimport { LastNameComponent as LastName } from \"../FormFields/LastName/LastNameComponent\";\nimport { EmailComponent as Email } from \"../FormFields/Email/EmailComponent\";\nimport { BirthDateComponent as BirthDate } from \"../FormFields/BirthDate/BirthDateComponent\";\nimport { FormFooterComponent as FormFooter } from \"../FormFooter/FormFooterComponent\";\nimport { CountryComponentWrapper } from \"../FormFields/Country/CountryComponentWrapper\";\nimport { getOptions } from \"../../options/options\";\nimport { FormFieldCustom } from \"../FormFields/FormFieldCustom/FormFieldCustom\";\nimport { ExtraMessage } from \"../ExtraMessage\";\nimport { FieldIdEnum, SegmentEnum, VerificationStepsEnum } from \"../../lib/types/runtimeTypes\";\nimport { CityComponent } from \"../FormFields/City/City\";\nimport { StateSelectComponent } from \"../FormFields/State/StateSelectComponent\";\nimport { PostalCodeComponent } from \"../FormFields/PostalCode/PostalCodeComponent\";\nimport { AddressComponent } from \"../FormFields/Address/AddressComponent\";\nimport { ActiveDutyStartDateComponent } from \"../FormFields/ActiveDutyStartDate/ActiveDutyStartDateComponent\";\nimport { BranchOfServiceComponent as BranchOfService } from \"../FormFields/BranchOfService/BranchOfServiceComponent\";\nimport { DriverLicenseNumberComponent as DriverLicenseNumber } from \"../FormFields/DriverLicenseNumber/DriverLicenseNumberComponent\";\nimport { EBTCardNumberComponent } from \"../FormFields/EBTCardNumber/EBTCardNumberComponent\";\nimport { StatusComponent as Status } from \"../FormFields/Status/StatusComponent\";\nimport { LowIncomeOrganizationComponent as LowIncomeOrganization } from \"../FormFields/LowIncomeOrganization/LowIncomeOrganizationComponent\";\nimport { FirstResponderOrganizationComponent as FirstResponderOrganization } from \"../FormFields/FirstResponderOrganization/FirstResponderOrganizationComponent\";\nimport { LicensedProfessionalOrganizationComponent as LicensedProfessionalOrganization } from \"../FormFields/LicensedProfessionalOrganization/LicensedProfessionalOrganizationComponent\";\nimport { MedicalProfessionalOrganizationComponent as MedicalProfessionalOrganization } from \"../FormFields/MedicalProfessionalOrganization/MedicalProfessionalOrganizationComponent\";\nimport { MemberIdComponent as MemberId } from \"../FormFields/MemberId/MemberIdComponent\";\nimport { MembershipOrganizationComponent as MembershipOrganization } from \"../FormFields/MembershipOrganization/MembershipOrganizationComponent\";\nimport { TeacherSchoolComponent as TeacherSchool } from \"../FormFields/TeacherSchool/TeacherSchoolComponent\";\nimport { SocialSecurityNumber } from \"../FormFields/SSN/SSN\";\nimport { DischargeDateComponent } from \"../FormFields/DischargeDate/DischargeDateComponent\";\nimport { getAllFieldsToCollect } from \"../../lib/ServerApi/VerificationApiClient\";\nimport { useCollectFieldsEndpoint } from \"../../lib/ServerApi/useCollectFieldsEndpoint\";\nimport { getMarketConsent } from \"../../lib/ProgramTheme/programThemeGetters\";\nimport { isCountrySelectionNeeded } from \"../FormFields/Country/countryUtils\";\nimport { PersonalInfoHeader } from \"../FormHeader/StepHeaders/PersonalInfoHeaderComponent\";\nimport { PersonalInfoStepSubmitButton } from \"../PersonalInfoStepSubmitButton/PersonalInfoStepSubmitButton\";\nimport { CaptchaComponent } from \"../FormFields/Captcha/CaptchaComponent\";\n\ninterface StepCollectPersonalInfoProps {\n intl: InjectedIntl;\n verificationService: VerificationService;\n}\n\nexport const StepCollectPersonalInfo = ({\n intl,\n verificationService,\n}: StepCollectPersonalInfoProps) => {\n const viewModel = verificationService.viewModel as CollectPersonalInfoViewModel;\n const { updateViewModel, programTheme } = verificationService;\n\n const [requiredFields, setRequiredFields] = React.useState<FieldDescription[]>(undefined);\n\n const isFieldRequired = (key: keyof CollectPersonalInfoViewModel) =>\n requiredFields && requiredFields.some((field) => field.key === key);\n\n const { fieldValidationErrors } = verificationService;\n const verificationResponse =\n verificationService.verificationResponse as CollectPersonalInfoResponse;\n const failedInstantMatch = hasFailedInstantMatch(verificationResponse);\n\n const updatePersonalInfoViewModel = (key: keyof CollectPersonalInfoViewModel, value: any) => {\n const nextState: CollectPersonalInfoViewModel = produce(\n viewModel,\n (draft: CollectPersonalInfoViewModel) => {\n (draft[key] as any) = value;\n },\n );\n updateViewModel(nextState);\n };\n\n const updateViewModelWithRequiredFields = (newRequiredFields: FieldDescription[]) => {\n const nextState: CollectPersonalInfoViewModel = produceDraftViewModelWithAllRequiredFields(\n viewModel,\n newRequiredFields,\n );\n updateViewModel(nextState);\n };\n\n const locale = viewModel.localeChoice.value;\n const options = getOptions();\n\n const { segment, availableStatuses } = verificationResponse;\n const pascalCaseSegment = segment.charAt(0).toUpperCase() + segment.slice(1);\n\n const isStatusRequired = (): boolean =>\n availableStatuses &&\n (segment === SegmentEnum.FIRST_RESPONDER ||\n segment === SegmentEnum.MEDICAL ||\n segment === SegmentEnum.LOW_INCOME ||\n segment === SegmentEnum.LICENSED_PROFESSIONAL ||\n segment === SegmentEnum.EMPLOYMENT ||\n segment === SegmentEnum.RECENT_MOVER ||\n segment === SegmentEnum.MILITARY);\n\n const { availableStatuses: dynamicStatuses } = useCollectFieldsEndpoint({\n verificationId: verificationResponse.verificationId,\n currentStep: verificationResponse.currentStep,\n viewModel,\n });\n\n const countryChoiceValue = viewModel.countryChoice?.value;\n const needToPickCountry = isCountrySelectionNeeded(programTheme, countryChoiceValue);\n const statusOptions = getStatusOptions(intl, dynamicStatuses ?? availableStatuses);\n\n const getAndSetRequiredFields = (requestBody: { statuses?: AllStatuses[] }) =>\n (async () => {\n try {\n const collectFieldsResponse: CollectFieldsResponse = await getAllFieldsToCollect(\n verificationResponse.verificationId,\n verificationResponse.currentStep,\n requestBody,\n );\n const newRequiredFields = getSafe(() => collectFieldsResponse.fieldsToCollect.required, []);\n\n if (isStatusRequired()) {\n // Adding `status` as a required input field if it's been removed by getting\n // all fields to collect with a statuses req body\n newRequiredFields.push({ key: \"status\" });\n }\n\n updateViewModelWithRequiredFields(newRequiredFields);\n setRequiredFields(newRequiredFields);\n } catch (error) {\n logger.error(`Failed to determine fields to collect: ${error}`);\n }\n })();\n\n const getOrganizationField = () => {\n switch (segment) {\n case SegmentEnum.STUDENT:\n return (\n <CollegeName\n value={(verificationService.viewModel as CollectPersonalInfoViewModel).organization}\n verificationService={verificationService}\n isErrored={!!fieldValidationErrors.organization}\n isRequired\n disabled={getFieldConfigByFieldId(\"organization\")?.disabled}\n onChange={(choice: Organization) => {\n updateViewModelOrganization(choice, verificationService);\n updateFieldValidationErrorsByFieldId(\"organization\", choice, verificationService);\n }}\n />\n );\n case SegmentEnum.TEACHER:\n return (\n <TeacherSchool\n value={(verificationService.viewModel as CollectPersonalInfoViewModel).organization}\n verificationService={verificationService}\n isErrored={!!fieldValidationErrors.organization}\n disabled={getFieldConfigByFieldId(\"organization\")?.disabled}\n onChange={(choice: Organization) => {\n updateViewModelOrganization(choice, verificationService);\n updateFieldValidationErrorsByFieldId(\"organization\", choice, verificationService);\n }}\n />\n );\n case SegmentEnum.MEMBER:\n return (\n <MembershipOrganization\n value={(verificationService.viewModel as CollectPersonalInfoViewModel).organization}\n verificationService={verificationService}\n isErrored={!!fieldValidationErrors.organization}\n disabled={getFieldConfigByFieldId(\"organization\")?.disabled}\n onChange={(choice: Organization) => {\n updateViewModelOrganization(choice, verificationService);\n updateFieldValidationErrorsByFieldId(\"organization\", choice, verificationService);\n }}\n />\n );\n case SegmentEnum.MILITARY:\n return (\n <BranchOfService\n isErrored={!!fieldValidationErrors.organization}\n onChange={(choice: Organization) => {\n updateViewModelOrganization(choice, verificationService);\n updateFieldValidationErrorsByFieldId(\"organization\", choice, verificationService);\n }}\n value={{\n value: getSafe(\n () =>\n (verificationService.viewModel as CollectPersonalInfoViewModel).organization.id,\n ),\n label: getSafe(\n () =>\n (verificationService.viewModel as CollectPersonalInfoViewModel).organization.name,\n ),\n }}\n verificationService={verificationService}\n disabled={getFieldConfigByFieldId(\"organization\")?.disabled}\n />\n );\n case SegmentEnum.FIRST_RESPONDER:\n return (\n <FirstResponderOrganization\n isErrored={!!fieldValidationErrors.organization}\n onChange={(choice: Organization) => {\n updateViewModelOrganization(choice, verificationService);\n updateFieldValidationErrorsByFieldId(\"organization\", choice, verificationService);\n }}\n value={(verificationService.viewModel as CollectPersonalInfoViewModel).organization}\n verificationService={verificationService}\n disabled={getFieldConfigByFieldId(\"organization\")?.disabled}\n />\n );\n case SegmentEnum.MEDICAL:\n return (\n <MedicalProfessionalOrganization\n isErrored={!!fieldValidationErrors.organization}\n onChange={(choice: Organization) => {\n updateViewModelOrganization(choice, verificationService);\n updateFieldValidationErrorsByFieldId(\"organization\", choice, verificationService);\n }}\n value={(verificationService.viewModel as CollectPersonalInfoViewModel).organization}\n verificationService={verificationService}\n disabled={getFieldConfigByFieldId(\"organization\")?.disabled}\n />\n );\n case SegmentEnum.LICENSED_PROFESSIONAL:\n return (\n <LicensedProfessionalOrganization\n isErrored={!!fieldValidationErrors.organization}\n onChange={(choice: Organization) => {\n updateViewModelOrganization(choice, verificationService);\n updateFieldValidationErrorsByFieldId(\"organization\", choice, verificationService);\n }}\n value={(verificationService.viewModel as CollectPersonalInfoViewModel).organization}\n verificationService={verificationService}\n disabled={getFieldConfigByFieldId(\"organization\")?.disabled}\n />\n );\n case SegmentEnum.LOW_INCOME:\n return (\n <LowIncomeOrganization\n isErrored={!!fieldValidationErrors.organization}\n onChange={(choice: Organization) => {\n updateViewModelOrganization(choice, verificationService);\n updateFieldValidationErrorsByFieldId(\"organization\", choice, verificationService);\n }}\n value={orgToOption(\n (verificationService.viewModel as CollectPersonalInfoViewModel).organization,\n )}\n verificationService={verificationService}\n isRequired\n disabled={getFieldConfigByFieldId(\"organization\")?.disabled}\n />\n );\n default:\n return null;\n }\n };\n\n React.useEffect(() => {\n if (availableStatuses && segment === SegmentEnum.MILITARY) {\n // display all required military fields by setting an initial default status\n getAndSetRequiredFields({ statuses: [] });\n } else {\n // fetch initial list of required input fields\n getAndSetRequiredFields({});\n }\n }, []);\n\n React.useEffect(() => {\n if (!getMarketConsent(programTheme).enabled && requiredFields && requiredFields.length === 0) {\n // skip this step if there are no required fields, and marketConsent is not enabled\n submitForm(viewModel, verificationService, VerificationStepsEnum.collectPersonalInfo);\n }\n }, [requiredFields]);\n\n React.useEffect(() => {\n if (viewModel.status) {\n // if status changes, re-fetch required fields because they may have changed based on selected status\n getAndSetRequiredFields({ statuses: [viewModel.status] });\n }\n }, [viewModel.status]);\n\n return (\n <div\n id=\"sid-step-personal-info-personal-info\"\n className=\"sid-personal-info-container sid-l-container\"\n >\n <div role=\"main\">\n <PersonalInfoHeader\n verificationService={verificationService}\n classNameIdentifier=\"personal-info\"\n />\n\n <CountryComponentWrapper\n verificationService={verificationService}\n disabled={getFieldConfigByFieldId(\"country\")?.disabled}\n />\n\n {isStatusRequired() && (\n <Status\n segmentId={segment}\n value={{\n value: viewModel.status,\n label: getStatusLabel(intl, viewModel.status),\n }}\n isErrored={!!fieldValidationErrors.status}\n errorId={`invalid${pascalCaseSegment}Status`}\n options={statusOptions}\n disabled={needToPickCountry || getFieldConfigByFieldId(\"status\")?.disabled}\n explanation={\n needToPickCountry ? (\n <FormattedHTMLMessage id=\"chooseCountry\" defaultMessage=\"Choose a country first\" />\n ) : undefined\n }\n onChange={(status: FormSelectChoice) => {\n updatePersonalInfoViewModel(\"status\", status ? (status.value as string) : \"\");\n updateFieldValidationErrorsByFieldId(\n \"status\",\n status ? (status.value as string) : \"\",\n verificationService,\n );\n }}\n />\n )}\n\n {isFieldRequired(\"organization\") && getOrganizationField()}\n\n <div className=\"sid-names\">\n {isFieldRequired(\"firstName\") && (\n <FirstName\n value={viewModel.firstName}\n isErrored={!!fieldValidationErrors.firstName}\n disabled={getFieldConfigByFieldId(\"firstName\")?.disabled}\n onChange={(newValue) => {\n updatePersonalInfoViewModel(\"firstName\", newValue);\n updateFieldValidationErrorsByFieldId(\"firstName\", newValue, verificationService);\n }}\n />\n )}\n\n {isFieldRequired(\"lastName\") && (\n <LastName\n value={viewModel.lastName}\n isErrored={!!fieldValidationErrors.lastName}\n disabled={getFieldConfigByFieldId(\"lastName\")?.disabled}\n onChange={(newValue) => {\n updatePersonalInfoViewModel(\"lastName\", newValue);\n updateFieldValidationErrorsByFieldId(\"lastName\", newValue, verificationService);\n }}\n />\n )}\n </div>\n\n {isFieldRequired(\"birthDate\") && (\n <BirthDate\n value={viewModel.birthDate}\n errorId={fieldValidationErrors.birthDate}\n locale={locale}\n isRequired\n disabled={getFieldConfigByFieldId(\"birthDate\")?.disabled}\n onChange={(newValue) => {\n updatePersonalInfoViewModel(\"birthDate\", newValue);\n updateFieldValidationErrorsByFieldId(\"birthDate\", newValue, verificationService);\n }}\n />\n )}\n\n {isFieldRequired(\"email\") && (\n <Email\n value={viewModel.email}\n isErrored={!!fieldValidationErrors.email}\n explanation=\" \"\n onChange={(newValue) => {\n updatePersonalInfoViewModel(\"email\", newValue);\n updateFieldValidationErrorsByFieldId(\"email\", newValue, verificationService);\n }}\n onKeyDown={(event) => handleEmailOnKeyDown(event)}\n disabled={getFieldConfigByFieldId(\"email\")?.disabled}\n />\n )}\n\n {isFieldRequired(\"phoneNumber\") && (\n <PhoneNumber\n isRequired={!!verificationService.programTheme.smsLoopEnabled}\n value={viewModel.phoneNumber}\n isErrored={!!fieldValidationErrors.phoneNumber}\n onChange={(newValue) => {\n updatePersonalInfoViewModel(\"phoneNumber\", newValue);\n updateFieldValidationErrorsByFieldId(\"phoneNumber\", newValue, verificationService);\n }}\n selectedCountryCode={viewModel.countryChoice && viewModel.countryChoice.value}\n disabled={getFieldConfigByFieldId(\"phoneNumber\")?.disabled}\n />\n )}\n\n {isFieldRequired(\"address1\") && (\n <AddressComponent\n value={viewModel.address1}\n isRequired\n isErrored={!!fieldValidationErrors.address1}\n errorId={fieldValidationErrors.address1}\n disabled={getFieldConfigByFieldId(\"address1\")?.disabled}\n onChange={(value) => {\n updatePersonalInfoViewModel(\"address1\", value);\n updateFieldValidationErrorsByFieldId(\"address1\", value, verificationService);\n }}\n />\n )}\n\n {isFieldRequired(\"city\") && (\n <CityComponent\n value={viewModel.city}\n isRequired\n isErrored={!!fieldValidationErrors.city}\n errorId={fieldValidationErrors.city}\n disabled={getFieldConfigByFieldId(\"city\")?.disabled}\n onChange={(newValue) => {\n updatePersonalInfoViewModel(\"city\", newValue);\n updateFieldValidationErrorsByFieldId(\"city\", newValue, verificationService);\n }}\n />\n )}\n\n {isFieldRequired(\"dischargeDate\") && (\n <DischargeDateComponent\n errorId={fieldValidationErrors.dischargeDate}\n locale={locale}\n onChange={(newValue) => {\n updatePersonalInfoViewModel(\"dischargeDate\", newValue);\n updateFieldValidationErrorsByFieldId(\"dischargeDate\", newValue, verificationService);\n }}\n value={viewModel.dischargeDate}\n disabled={getFieldConfigByFieldId(\"dischargeDate\")?.disabled}\n />\n )}\n\n {isFieldRequired(\"driverLicenseNumber\") && (\n <DriverLicenseNumber\n value={viewModel.driverLicenseNumber}\n isErrored={!!fieldValidationErrors.driverLicenseNumber}\n isRequired\n disabled={getFieldConfigByFieldId(\"driverLicenseNumber\")?.disabled}\n onChange={(newValue) => {\n updatePersonalInfoViewModel(\"driverLicenseNumber\", newValue);\n updateFieldValidationErrorsByFieldId(\n \"driverLicenseNumber\",\n newValue,\n verificationService,\n );\n }}\n />\n )}\n\n {isFieldRequired(\"ebtCardNumber\") && (\n <EBTCardNumberComponent\n value={viewModel.ebtCardNumber}\n isErrored={!!fieldValidationErrors.ebtCardNumber}\n disabled={getFieldConfigByFieldId(\"ebtCardNumber\")?.disabled}\n onChange={(newValue) => {\n updatePersonalInfoViewModel(\"ebtCardNumber\", newValue);\n updateFieldValidationErrorsByFieldId(\"ebtCardNumber\", newValue, verificationService);\n }}\n />\n )}\n\n {isFieldRequired(\"memberId\") && (\n <MemberId\n value={viewModel.memberId}\n isErrored={!!fieldValidationErrors.memberId}\n isRequired={getFieldConfigByFieldId(\"memberId\")?.requireIfOptional}\n disabled={getFieldConfigByFieldId(\"memberId\")?.disabled}\n onChange={(newValue) => {\n updatePersonalInfoViewModel(\"memberId\", newValue);\n updateFieldValidationErrorsByFieldId(\"memberId\", newValue, verificationService);\n }}\n label={\n <FormattedHTMLMessage\n id=\"step.collectMedicalPersonalInfo.registrationNumberLabel\"\n defaultMessage=\"Registration Number\"\n />\n }\n />\n )}\n\n {isFieldRequired(\"postalCode\") && (\n <PostalCodeComponent\n isErrored={!!fieldValidationErrors.postalCode}\n onChange={(newValue) => {\n updatePersonalInfoViewModel(\"postalCode\", newValue);\n updateFieldValidationErrorsByFieldId(\"postalCode\", newValue, verificationService);\n }}\n value={viewModel.postalCode}\n disabled={getFieldConfigByFieldId(\"postalCode\")?.disabled}\n />\n )}\n\n {isFieldRequired(\"socialSecurityNumber\") && (\n <div className=\"sid-ssn-wrapper\">\n <SocialSecurityNumber\n value={viewModel.socialSecurityNumber}\n onChange={(value: string) => {\n updatePersonalInfoViewModel(\"socialSecurityNumber\", value);\n updateFieldValidationErrorsByFieldId(\n \"socialSecurityNumber\",\n value,\n verificationService,\n );\n }}\n isErrored={!!fieldValidationErrors[FieldIdEnum.socialSecurityNumber]}\n placeholder=\"000-00-0000\"\n disabled={getFieldConfigByFieldId(\"socialSecurityNumber\")?.disabled}\n />\n </div>\n )}\n\n {isFieldRequired(\"state\") && (\n <StateSelectComponent\n isRequired\n options={getAvailableStateChoices(verificationService.programTheme, intl)}\n value={viewModel.state || undefined}\n isErrored={Boolean(fieldValidationErrors.state)}\n onChange={async (stateChoice: FormSelectChoice<State, string>) => {\n const stateValue = stateChoice ? stateChoice.value : undefined;\n updatePersonalInfoViewModel(\"state\", stateValue);\n updateFieldValidationErrorsByFieldId(\"state\", stateValue, verificationService);\n }}\n label={<FormattedHTMLMessage id=\"state\" defaultMessage=\"State\" />}\n disabled={getFieldConfigByFieldId(\"state\")?.disabled}\n />\n )}\n\n {isFieldRequired(\"activeDutyStartDate\") &&\n verificationService.programTheme.strictMilitaryValidationEnabled && (\n <ActiveDutyStartDateComponent\n errorId={fieldValidationErrors.activeDutyStartDate}\n locale={locale}\n onChange={(newValue) => {\n updatePersonalInfoViewModel(\"activeDutyStartDate\", newValue);\n updateFieldValidationErrorsByFieldId(\n \"activeDutyStartDate\",\n newValue,\n verificationService,\n );\n }}\n value={viewModel.activeDutyStartDate}\n disabled={getFieldConfigByFieldId(\"activeDutyStartDate\")?.disabled}\n />\n )}\n\n {options.customFormFields?.map((config: CustomFormFieldConfig) => (\n <FormFieldCustom config={config} verificationService={verificationService} />\n ))}\n\n <MarketConsentWrapper\n verificationService={verificationService}\n isErrored={!!fieldValidationErrors.marketConsentValue}\n onChange={(newValue) => {\n updatePersonalInfoViewModel(\"metadata\", {\n ...verificationService.viewModel.metadata,\n marketConsentValue: newValue,\n });\n updateFieldValidationErrorsByFieldId(\n \"marketConsentValue\",\n newValue,\n verificationService,\n );\n }}\n viewModel={viewModel}\n disabled={getFieldConfigByFieldId(\"marketConsentValue\")?.disabled}\n />\n\n <ExtraMessage verificationService={verificationService} suffix=\"CollectAboveSubmit\" />\n\n <CaptchaComponent\n verificationService={verificationService}\n isErrored={!!fieldValidationErrors.captchaToken}\n />\n\n <PersonalInfoStepSubmitButton\n step={VerificationStepsEnum.collectPersonalInfo}\n verificationService={verificationService}\n viewModel={viewModel}\n failedInstantMatch={failedInstantMatch}\n buttonText={\n <FormattedHTMLMessage\n id=\"step.personalInfo.submitButtonText\"\n defaultMessage=\"Verify and continue\"\n />\n }\n />\n </div>\n <FormFooter verificationService={verificationService} />\n </div>\n );\n};\n\nexport const StepCollectPersonalInfoComponent = injectIntl(StepCollectPersonalInfo);\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4CA8mBa,IAAmC,GAliBR,EACtC,SACA,6BACkC;CAClC,IAAM,IAAY,EAAoB,WAChC,EAAE,oBAAiB,oBAAiB,GAEpC,CAAC,GAAgB,MAAA,EAA2B,SAA6B,KAAA,CAAS,GAElF,KAAmB,MACvB,KAAkB,EAAe,MAAM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ADA,EAA4B,uBAAuB,CAAQ,GAC3D,EACE,uBACA,GACA,CACF;KACF;KACA,OAAO,EAAU;KACjB,UAAU,EAAwB,qBAAqB,GAAG;IAC3D,CAAA;IAGJ,GAAQ,kBAAkB,KAAK,MAC9B,iBAAA,GAAA,EAAA,KAAC,GAAD;KAAyB;KAA6B;IAAsB,CAAA,CAC7E;IAED,iBAAA,GAAA,EAAA,KAAC,GAAD;KACuB;KACrB,WAAW,CAAC,CAAC,EAAsB;KACnC,WAAW,MAAa;MAKtB,AAJA,EAA4B,YAAY;OACtC,GAAG,EAAoB,UAAU;OACjC,oBAAoB;MACtB,CAAC,GACD,EACE,sBACA,GACA,CACF;KACF;KACW;KACX,UAAU,EAAwB,oBAAoB,GAAG;IAC1D,CAAA;IAED,iBAAA,GAAA,EAAA,KAAC,GAAD;KAAmC;KAAqB,QAAO;IAAsB,CAAA;IAErF,iBAAA,GAAA,EAAA,KAAC,GAAD;KACuB;KACrB,WAAW,CAAC,CAAC,EAAsB;IACpC,CAAA;IAED,iBAAA,GAAA,EAAA,KAAC,GAAD;KACE,MAAM,EAAsB;KACP;KACV;KACS;KACpB,YACE,iBAAA,GAAA,EAAA,KAAC,GAAD;MACE,IAAG;MACH,gBAAe;KAChB,CAAA;IAEJ,CAAA;GACE;MACL,iBAAA,GAAA,EAAA,KAAC,IAAD,EAAiC,uBAAsB,CAAA,CACpD;;AAET,CAEkF"}
1
+ {"version":3,"file":"StepCollectPersonalInfo-DQ-E_qDl.js","names":[],"sources":["../../src/components/StepCollectPersonalInfo/StepCollectPersonalInfoComponent.tsx"],"sourcesContent":["import React from \"react\";\nimport produce from \"immer\";\nimport { FormattedHTMLMessage, type InjectedIntl, injectIntl } from \"react-intl\";\n\nimport { getSafe } from \"@jslib/shared/utils/getSafe\";\nimport { logger } from \"@jslib/shared/utils/logger\";\n\nimport { hasFailedInstantMatch } from \"../../lib/VerificationService/VerificationServiceHelpers\";\nimport {\n type VerificationService,\n type CollectPersonalInfoViewModel,\n type CustomFormFieldConfig,\n type Organization,\n type FormSelectChoice,\n type State,\n type CollectFieldsResponse,\n type CollectPersonalInfoResponse,\n type FieldDescription,\n type AllStatuses,\n} from \"../../lib/types/types\";\nimport {\n getAvailableStateChoices,\n orgToOption,\n getStatusLabel,\n handleEmailOnKeyDown,\n submitForm,\n updateFieldValidationErrorsByFieldId,\n updateViewModelOrganization,\n produceDraftViewModelWithAllRequiredFields,\n getStatusOptions,\n getFieldConfigByFieldId,\n} from \"../../lib/utils/stepComponentHelpers/stepComponentHelpers\";\nimport { MarketConsentWrapperComponent as MarketConsentWrapper } from \"../FormFields/MarketConsentWrapper/MarketConsentWrapperComponent\";\nimport { PhoneNumberComponent as PhoneNumber } from \"../FormFields/PhoneNumber/PhoneNumberComponent\";\nimport { CollegeNameComponent as CollegeName } from \"../FormFields/CollegeName/CollegeNameComponent\";\nimport { FirstNameComponent as FirstName } from \"../FormFields/FirstName/FirstNameComponent\";\nimport { LastNameComponent as LastName } from \"../FormFields/LastName/LastNameComponent\";\nimport { EmailComponent as Email } from \"../FormFields/Email/EmailComponent\";\nimport { BirthDateComponent as BirthDate } from \"../FormFields/BirthDate/BirthDateComponent\";\nimport { FormFooterComponent as FormFooter } from \"../FormFooter/FormFooterComponent\";\nimport { CountryComponentWrapper } from \"../FormFields/Country/CountryComponentWrapper\";\nimport { getOptions } from \"../../options/options\";\nimport { FormFieldCustom } from \"../FormFields/FormFieldCustom/FormFieldCustom\";\nimport { ExtraMessage } from \"../ExtraMessage\";\nimport { FieldIdEnum, SegmentEnum, VerificationStepsEnum } from \"../../lib/types/runtimeTypes\";\nimport { CityComponent } from \"../FormFields/City/City\";\nimport { StateSelectComponent } from \"../FormFields/State/StateSelectComponent\";\nimport { PostalCodeComponent } from \"../FormFields/PostalCode/PostalCodeComponent\";\nimport { AddressComponent } from \"../FormFields/Address/AddressComponent\";\nimport { ActiveDutyStartDateComponent } from \"../FormFields/ActiveDutyStartDate/ActiveDutyStartDateComponent\";\nimport { BranchOfServiceComponent as BranchOfService } from \"../FormFields/BranchOfService/BranchOfServiceComponent\";\nimport { DriverLicenseNumberComponent as DriverLicenseNumber } from \"../FormFields/DriverLicenseNumber/DriverLicenseNumberComponent\";\nimport { EBTCardNumberComponent } from \"../FormFields/EBTCardNumber/EBTCardNumberComponent\";\nimport { StatusComponent as Status } from \"../FormFields/Status/StatusComponent\";\nimport { LowIncomeOrganizationComponent as LowIncomeOrganization } from \"../FormFields/LowIncomeOrganization/LowIncomeOrganizationComponent\";\nimport { FirstResponderOrganizationComponent as FirstResponderOrganization } from \"../FormFields/FirstResponderOrganization/FirstResponderOrganizationComponent\";\nimport { LicensedProfessionalOrganizationComponent as LicensedProfessionalOrganization } from \"../FormFields/LicensedProfessionalOrganization/LicensedProfessionalOrganizationComponent\";\nimport { MedicalProfessionalOrganizationComponent as MedicalProfessionalOrganization } from \"../FormFields/MedicalProfessionalOrganization/MedicalProfessionalOrganizationComponent\";\nimport { MemberIdComponent as MemberId } from \"../FormFields/MemberId/MemberIdComponent\";\nimport { MembershipOrganizationComponent as MembershipOrganization } from \"../FormFields/MembershipOrganization/MembershipOrganizationComponent\";\nimport { TeacherSchoolComponent as TeacherSchool } from \"../FormFields/TeacherSchool/TeacherSchoolComponent\";\nimport { SocialSecurityNumber } from \"../FormFields/SSN/SSN\";\nimport { DischargeDateComponent } from \"../FormFields/DischargeDate/DischargeDateComponent\";\nimport { getAllFieldsToCollect } from \"../../lib/ServerApi/VerificationApiClient\";\nimport { useCollectFieldsEndpoint } from \"../../lib/ServerApi/useCollectFieldsEndpoint\";\nimport { getMarketConsent } from \"../../lib/ProgramTheme/programThemeGetters\";\nimport { isCountrySelectionNeeded } from \"../FormFields/Country/countryUtils\";\nimport { PersonalInfoHeader } from \"../FormHeader/StepHeaders/PersonalInfoHeaderComponent\";\nimport { PersonalInfoStepSubmitButton } from \"../PersonalInfoStepSubmitButton/PersonalInfoStepSubmitButton\";\nimport { CaptchaComponent } from \"../FormFields/Captcha/CaptchaComponent\";\n\ninterface StepCollectPersonalInfoProps {\n intl: InjectedIntl;\n verificationService: VerificationService;\n}\n\nexport const StepCollectPersonalInfo = ({\n intl,\n verificationService,\n}: StepCollectPersonalInfoProps) => {\n const viewModel = verificationService.viewModel as CollectPersonalInfoViewModel;\n const { updateViewModel, programTheme } = verificationService;\n\n const [requiredFields, setRequiredFields] = React.useState<FieldDescription[]>(undefined);\n\n const isFieldRequired = (key: keyof CollectPersonalInfoViewModel) =>\n requiredFields && requiredFields.some((field) => field.key === key);\n\n const { fieldValidationErrors } = verificationService;\n const verificationResponse =\n verificationService.verificationResponse as CollectPersonalInfoResponse;\n const failedInstantMatch = hasFailedInstantMatch(verificationResponse);\n\n const updatePersonalInfoViewModel = (key: keyof CollectPersonalInfoViewModel, value: any) => {\n const nextState: CollectPersonalInfoViewModel = produce(\n viewModel,\n (draft: CollectPersonalInfoViewModel) => {\n (draft[key] as any) = value;\n },\n );\n updateViewModel(nextState);\n };\n\n const updateViewModelWithRequiredFields = (newRequiredFields: FieldDescription[]) => {\n const nextState: CollectPersonalInfoViewModel = produceDraftViewModelWithAllRequiredFields(\n viewModel,\n newRequiredFields,\n );\n updateViewModel(nextState);\n };\n\n const locale = viewModel.localeChoice.value;\n const options = getOptions();\n\n const { segment, availableStatuses } = verificationResponse;\n const pascalCaseSegment = segment.charAt(0).toUpperCase() + segment.slice(1);\n\n const isStatusRequired = (): boolean =>\n availableStatuses &&\n (segment === SegmentEnum.FIRST_RESPONDER ||\n segment === SegmentEnum.MEDICAL ||\n segment === SegmentEnum.LOW_INCOME ||\n segment === SegmentEnum.LICENSED_PROFESSIONAL ||\n segment === SegmentEnum.EMPLOYMENT ||\n segment === SegmentEnum.RECENT_MOVER ||\n segment === SegmentEnum.MILITARY);\n\n const { availableStatuses: dynamicStatuses } = useCollectFieldsEndpoint({\n verificationId: verificationResponse.verificationId,\n currentStep: verificationResponse.currentStep,\n viewModel,\n });\n\n const countryChoiceValue = viewModel.countryChoice?.value;\n const needToPickCountry = isCountrySelectionNeeded(programTheme, countryChoiceValue);\n const statusOptions = getStatusOptions(intl, dynamicStatuses ?? availableStatuses);\n\n const getAndSetRequiredFields = (requestBody: { statuses?: AllStatuses[] }) =>\n (async () => {\n try {\n const collectFieldsResponse: CollectFieldsResponse = await getAllFieldsToCollect(\n verificationResponse.verificationId,\n verificationResponse.currentStep,\n requestBody,\n );\n const newRequiredFields = getSafe(() => collectFieldsResponse.fieldsToCollect.required, []);\n\n if (isStatusRequired()) {\n // Adding `status` as a required input field if it's been removed by getting\n // all fields to collect with a statuses req body\n newRequiredFields.push({ key: \"status\" });\n }\n\n updateViewModelWithRequiredFields(newRequiredFields);\n setRequiredFields(newRequiredFields);\n } catch (error) {\n logger.error(`Failed to determine fields to collect: ${error}`);\n }\n })();\n\n const getOrganizationField = () => {\n switch (segment) {\n case SegmentEnum.STUDENT:\n return (\n <CollegeName\n value={(verificationService.viewModel as CollectPersonalInfoViewModel).organization}\n verificationService={verificationService}\n isErrored={!!fieldValidationErrors.organization}\n isRequired\n disabled={getFieldConfigByFieldId(\"organization\")?.disabled}\n onChange={(choice: Organization) => {\n updateViewModelOrganization(choice, verificationService);\n updateFieldValidationErrorsByFieldId(\"organization\", choice, verificationService);\n }}\n />\n );\n case SegmentEnum.TEACHER:\n return (\n <TeacherSchool\n value={(verificationService.viewModel as CollectPersonalInfoViewModel).organization}\n verificationService={verificationService}\n isErrored={!!fieldValidationErrors.organization}\n disabled={getFieldConfigByFieldId(\"organization\")?.disabled}\n onChange={(choice: Organization) => {\n updateViewModelOrganization(choice, verificationService);\n updateFieldValidationErrorsByFieldId(\"organization\", choice, verificationService);\n }}\n />\n );\n case SegmentEnum.MEMBER:\n return (\n <MembershipOrganization\n value={(verificationService.viewModel as CollectPersonalInfoViewModel).organization}\n verificationService={verificationService}\n isErrored={!!fieldValidationErrors.organization}\n disabled={getFieldConfigByFieldId(\"organization\")?.disabled}\n onChange={(choice: Organization) => {\n updateViewModelOrganization(choice, verificationService);\n updateFieldValidationErrorsByFieldId(\"organization\", choice, verificationService);\n }}\n />\n );\n case SegmentEnum.MILITARY:\n return (\n <BranchOfService\n isErrored={!!fieldValidationErrors.organization}\n onChange={(choice: Organization) => {\n updateViewModelOrganization(choice, verificationService);\n updateFieldValidationErrorsByFieldId(\"organization\", choice, verificationService);\n }}\n value={{\n value: getSafe(\n () =>\n (verificationService.viewModel as CollectPersonalInfoViewModel).organization.id,\n ),\n label: getSafe(\n () =>\n (verificationService.viewModel as CollectPersonalInfoViewModel).organization.name,\n ),\n }}\n verificationService={verificationService}\n disabled={getFieldConfigByFieldId(\"organization\")?.disabled}\n />\n );\n case SegmentEnum.FIRST_RESPONDER:\n return (\n <FirstResponderOrganization\n isErrored={!!fieldValidationErrors.organization}\n onChange={(choice: Organization) => {\n updateViewModelOrganization(choice, verificationService);\n updateFieldValidationErrorsByFieldId(\"organization\", choice, verificationService);\n }}\n value={(verificationService.viewModel as CollectPersonalInfoViewModel).organization}\n verificationService={verificationService}\n disabled={getFieldConfigByFieldId(\"organization\")?.disabled}\n />\n );\n case SegmentEnum.MEDICAL:\n return (\n <MedicalProfessionalOrganization\n isErrored={!!fieldValidationErrors.organization}\n onChange={(choice: Organization) => {\n updateViewModelOrganization(choice, verificationService);\n updateFieldValidationErrorsByFieldId(\"organization\", choice, verificationService);\n }}\n value={(verificationService.viewModel as CollectPersonalInfoViewModel).organization}\n verificationService={verificationService}\n disabled={getFieldConfigByFieldId(\"organization\")?.disabled}\n />\n );\n case SegmentEnum.LICENSED_PROFESSIONAL:\n return (\n <LicensedProfessionalOrganization\n isErrored={!!fieldValidationErrors.organization}\n onChange={(choice: Organization) => {\n updateViewModelOrganization(choice, verificationService);\n updateFieldValidationErrorsByFieldId(\"organization\", choice, verificationService);\n }}\n value={(verificationService.viewModel as CollectPersonalInfoViewModel).organization}\n verificationService={verificationService}\n disabled={getFieldConfigByFieldId(\"organization\")?.disabled}\n />\n );\n case SegmentEnum.LOW_INCOME:\n return (\n <LowIncomeOrganization\n isErrored={!!fieldValidationErrors.organization}\n onChange={(choice: Organization) => {\n updateViewModelOrganization(choice, verificationService);\n updateFieldValidationErrorsByFieldId(\"organization\", choice, verificationService);\n }}\n value={orgToOption(\n (verificationService.viewModel as CollectPersonalInfoViewModel).organization,\n )}\n verificationService={verificationService}\n isRequired\n disabled={getFieldConfigByFieldId(\"organization\")?.disabled}\n />\n );\n default:\n return null;\n }\n };\n\n React.useEffect(() => {\n if (availableStatuses && segment === SegmentEnum.MILITARY) {\n // display all required military fields by setting an initial default status\n getAndSetRequiredFields({ statuses: [] });\n } else {\n // fetch initial list of required input fields\n getAndSetRequiredFields({});\n }\n }, []);\n\n React.useEffect(() => {\n if (!getMarketConsent(programTheme).enabled && requiredFields && requiredFields.length === 0) {\n // skip this step if there are no required fields, and marketConsent is not enabled\n submitForm(viewModel, verificationService, VerificationStepsEnum.collectPersonalInfo);\n }\n }, [requiredFields]);\n\n React.useEffect(() => {\n if (viewModel.status) {\n // if status changes, re-fetch required fields because they may have changed based on selected status\n getAndSetRequiredFields({ statuses: [viewModel.status] });\n }\n }, [viewModel.status]);\n\n return (\n <div\n id=\"sid-step-personal-info-personal-info\"\n className=\"sid-personal-info-container sid-l-container\"\n >\n <div role=\"main\">\n <PersonalInfoHeader\n verificationService={verificationService}\n classNameIdentifier=\"personal-info\"\n />\n\n <CountryComponentWrapper\n verificationService={verificationService}\n disabled={getFieldConfigByFieldId(\"country\")?.disabled}\n />\n\n {isStatusRequired() && (\n <Status\n segmentId={segment}\n value={{\n value: viewModel.status,\n label: getStatusLabel(intl, viewModel.status),\n }}\n isErrored={!!fieldValidationErrors.status}\n errorId={`invalid${pascalCaseSegment}Status`}\n options={statusOptions}\n disabled={needToPickCountry || getFieldConfigByFieldId(\"status\")?.disabled}\n explanation={\n needToPickCountry ? (\n <FormattedHTMLMessage id=\"chooseCountry\" defaultMessage=\"Choose a country first\" />\n ) : undefined\n }\n onChange={(status: FormSelectChoice) => {\n updatePersonalInfoViewModel(\"status\", status ? (status.value as string) : \"\");\n updateFieldValidationErrorsByFieldId(\n \"status\",\n status ? (status.value as string) : \"\",\n verificationService,\n );\n }}\n />\n )}\n\n {isFieldRequired(\"organization\") && getOrganizationField()}\n\n <div className=\"sid-names\">\n {isFieldRequired(\"firstName\") && (\n <FirstName\n value={viewModel.firstName}\n isErrored={!!fieldValidationErrors.firstName}\n disabled={getFieldConfigByFieldId(\"firstName\")?.disabled}\n onChange={(newValue) => {\n updatePersonalInfoViewModel(\"firstName\", newValue);\n updateFieldValidationErrorsByFieldId(\"firstName\", newValue, verificationService);\n }}\n />\n )}\n\n {isFieldRequired(\"lastName\") && (\n <LastName\n value={viewModel.lastName}\n isErrored={!!fieldValidationErrors.lastName}\n disabled={getFieldConfigByFieldId(\"lastName\")?.disabled}\n onChange={(newValue) => {\n updatePersonalInfoViewModel(\"lastName\", newValue);\n updateFieldValidationErrorsByFieldId(\"lastName\", newValue, verificationService);\n }}\n />\n )}\n </div>\n\n {isFieldRequired(\"birthDate\") && (\n <BirthDate\n value={viewModel.birthDate}\n errorId={fieldValidationErrors.birthDate}\n locale={locale}\n isRequired\n disabled={getFieldConfigByFieldId(\"birthDate\")?.disabled}\n onChange={(newValue) => {\n updatePersonalInfoViewModel(\"birthDate\", newValue);\n updateFieldValidationErrorsByFieldId(\"birthDate\", newValue, verificationService);\n }}\n />\n )}\n\n {isFieldRequired(\"email\") && (\n <Email\n value={viewModel.email}\n isErrored={!!fieldValidationErrors.email}\n explanation=\" \"\n onChange={(newValue) => {\n updatePersonalInfoViewModel(\"email\", newValue);\n updateFieldValidationErrorsByFieldId(\"email\", newValue, verificationService);\n }}\n onKeyDown={(event) => handleEmailOnKeyDown(event)}\n disabled={getFieldConfigByFieldId(\"email\")?.disabled}\n />\n )}\n\n {isFieldRequired(\"phoneNumber\") && (\n <PhoneNumber\n isRequired={!!verificationService.programTheme.smsLoopEnabled}\n value={viewModel.phoneNumber}\n isErrored={!!fieldValidationErrors.phoneNumber}\n onChange={(newValue) => {\n updatePersonalInfoViewModel(\"phoneNumber\", newValue);\n updateFieldValidationErrorsByFieldId(\"phoneNumber\", newValue, verificationService);\n }}\n selectedCountryCode={viewModel.countryChoice && viewModel.countryChoice.value}\n disabled={getFieldConfigByFieldId(\"phoneNumber\")?.disabled}\n />\n )}\n\n {isFieldRequired(\"address1\") && (\n <AddressComponent\n value={viewModel.address1}\n isRequired\n isErrored={!!fieldValidationErrors.address1}\n errorId={fieldValidationErrors.address1}\n disabled={getFieldConfigByFieldId(\"address1\")?.disabled}\n onChange={(value) => {\n updatePersonalInfoViewModel(\"address1\", value);\n updateFieldValidationErrorsByFieldId(\"address1\", value, verificationService);\n }}\n />\n )}\n\n {isFieldRequired(\"city\") && (\n <CityComponent\n value={viewModel.city}\n isRequired\n isErrored={!!fieldValidationErrors.city}\n errorId={fieldValidationErrors.city}\n disabled={getFieldConfigByFieldId(\"city\")?.disabled}\n onChange={(newValue) => {\n updatePersonalInfoViewModel(\"city\", newValue);\n updateFieldValidationErrorsByFieldId(\"city\", newValue, verificationService);\n }}\n />\n )}\n\n {isFieldRequired(\"dischargeDate\") && (\n <DischargeDateComponent\n errorId={fieldValidationErrors.dischargeDate}\n locale={locale}\n onChange={(newValue) => {\n updatePersonalInfoViewModel(\"dischargeDate\", newValue);\n updateFieldValidationErrorsByFieldId(\"dischargeDate\", newValue, verificationService);\n }}\n value={viewModel.dischargeDate}\n disabled={getFieldConfigByFieldId(\"dischargeDate\")?.disabled}\n />\n )}\n\n {isFieldRequired(\"driverLicenseNumber\") && (\n <DriverLicenseNumber\n value={viewModel.driverLicenseNumber}\n isErrored={!!fieldValidationErrors.driverLicenseNumber}\n isRequired\n disabled={getFieldConfigByFieldId(\"driverLicenseNumber\")?.disabled}\n onChange={(newValue) => {\n updatePersonalInfoViewModel(\"driverLicenseNumber\", newValue);\n updateFieldValidationErrorsByFieldId(\n \"driverLicenseNumber\",\n newValue,\n verificationService,\n );\n }}\n />\n )}\n\n {isFieldRequired(\"ebtCardNumber\") && (\n <EBTCardNumberComponent\n value={viewModel.ebtCardNumber}\n isErrored={!!fieldValidationErrors.ebtCardNumber}\n disabled={getFieldConfigByFieldId(\"ebtCardNumber\")?.disabled}\n onChange={(newValue) => {\n updatePersonalInfoViewModel(\"ebtCardNumber\", newValue);\n updateFieldValidationErrorsByFieldId(\"ebtCardNumber\", newValue, verificationService);\n }}\n />\n )}\n\n {isFieldRequired(\"memberId\") && (\n <MemberId\n value={viewModel.memberId}\n isErrored={!!fieldValidationErrors.memberId}\n isRequired={getFieldConfigByFieldId(\"memberId\")?.requireIfOptional}\n disabled={getFieldConfigByFieldId(\"memberId\")?.disabled}\n onChange={(newValue) => {\n updatePersonalInfoViewModel(\"memberId\", newValue);\n updateFieldValidationErrorsByFieldId(\"memberId\", newValue, verificationService);\n }}\n label={\n <FormattedHTMLMessage\n id=\"step.collectMedicalPersonalInfo.registrationNumberLabel\"\n defaultMessage=\"Registration Number\"\n />\n }\n />\n )}\n\n {isFieldRequired(\"postalCode\") && (\n <PostalCodeComponent\n isErrored={!!fieldValidationErrors.postalCode}\n onChange={(newValue) => {\n updatePersonalInfoViewModel(\"postalCode\", newValue);\n updateFieldValidationErrorsByFieldId(\"postalCode\", newValue, verificationService);\n }}\n value={viewModel.postalCode}\n disabled={getFieldConfigByFieldId(\"postalCode\")?.disabled}\n />\n )}\n\n {isFieldRequired(\"socialSecurityNumber\") && (\n <div className=\"sid-ssn-wrapper\">\n <SocialSecurityNumber\n value={viewModel.socialSecurityNumber}\n onChange={(value: string) => {\n updatePersonalInfoViewModel(\"socialSecurityNumber\", value);\n updateFieldValidationErrorsByFieldId(\n \"socialSecurityNumber\",\n value,\n verificationService,\n );\n }}\n isErrored={!!fieldValidationErrors[FieldIdEnum.socialSecurityNumber]}\n placeholder=\"000-00-0000\"\n disabled={getFieldConfigByFieldId(\"socialSecurityNumber\")?.disabled}\n />\n </div>\n )}\n\n {isFieldRequired(\"state\") && (\n <StateSelectComponent\n isRequired\n options={getAvailableStateChoices(verificationService.programTheme, intl)}\n value={viewModel.state || undefined}\n isErrored={Boolean(fieldValidationErrors.state)}\n onChange={async (stateChoice: FormSelectChoice<State, string>) => {\n const stateValue = stateChoice ? stateChoice.value : undefined;\n updatePersonalInfoViewModel(\"state\", stateValue);\n updateFieldValidationErrorsByFieldId(\"state\", stateValue, verificationService);\n }}\n label={<FormattedHTMLMessage id=\"state\" defaultMessage=\"State\" />}\n disabled={getFieldConfigByFieldId(\"state\")?.disabled}\n />\n )}\n\n {isFieldRequired(\"activeDutyStartDate\") &&\n verificationService.programTheme.strictMilitaryValidationEnabled && (\n <ActiveDutyStartDateComponent\n errorId={fieldValidationErrors.activeDutyStartDate}\n locale={locale}\n onChange={(newValue) => {\n updatePersonalInfoViewModel(\"activeDutyStartDate\", newValue);\n updateFieldValidationErrorsByFieldId(\n \"activeDutyStartDate\",\n newValue,\n verificationService,\n );\n }}\n value={viewModel.activeDutyStartDate}\n disabled={getFieldConfigByFieldId(\"activeDutyStartDate\")?.disabled}\n />\n )}\n\n {options.customFormFields?.map((config: CustomFormFieldConfig) => (\n <FormFieldCustom config={config} verificationService={verificationService} />\n ))}\n\n <MarketConsentWrapper\n verificationService={verificationService}\n isErrored={!!fieldValidationErrors.marketConsentValue}\n onChange={(newValue) => {\n updatePersonalInfoViewModel(\"metadata\", {\n ...verificationService.viewModel.metadata,\n marketConsentValue: newValue,\n });\n updateFieldValidationErrorsByFieldId(\n \"marketConsentValue\",\n newValue,\n verificationService,\n );\n }}\n viewModel={viewModel}\n disabled={getFieldConfigByFieldId(\"marketConsentValue\")?.disabled}\n />\n\n <ExtraMessage verificationService={verificationService} suffix=\"CollectAboveSubmit\" />\n\n <CaptchaComponent\n verificationService={verificationService}\n isErrored={!!fieldValidationErrors.captchaToken}\n />\n\n <PersonalInfoStepSubmitButton\n step={VerificationStepsEnum.collectPersonalInfo}\n verificationService={verificationService}\n viewModel={viewModel}\n failedInstantMatch={failedInstantMatch}\n buttonText={\n <FormattedHTMLMessage\n id=\"step.personalInfo.submitButtonText\"\n defaultMessage=\"Verify and continue\"\n />\n }\n />\n </div>\n <FormFooter verificationService={verificationService} />\n </div>\n );\n};\n\nexport const StepCollectPersonalInfoComponent = injectIntl(StepCollectPersonalInfo);\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4CA8mBa,IAAmC,GAliBR,EACtC,SACA,6BACkC;CAClC,IAAM,IAAY,EAAoB,WAChC,EAAE,oBAAiB,oBAAiB,GAEpC,CAAC,GAAgB,MAAA,EAA2B,SAA6B,KAAA,CAAS,GAElF,KAAmB,MACvB,KAAkB,EAAe,MAAM,MAAU,EAAM,QAAQ,CAAG,GAE9D,EAAE,6BAA0B,GAC5B,IACJ,EAAoB,sBAChB,KAAqB,GAAsB,CAAoB,GAE/D,KAA+B,GAAyC,MAAe;EAO3F,EANgD,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,IAAqB,EAAU,eAAe,OAC9C,IAAoB,EAAyB,GAAc,CAAkB,GAC7E,KAAgB,GAAiB,GAAM,MAAmB,CAAiB,GAE3E,KAA2B,OAC9B,YAAY;EACX,IAAI;GACF,IAAM,IAA+C,MAAM,GACzD,EAAqB,gBACrB,EAAqB,aACrB,CACF,GACM,IAAoB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