@sheerid/jslib 2.304.0 → 2.306.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 (401) hide show
  1. package/_mysheerid-preview.css +4 -4
  2. package/_mysheerid-preview.js +1096 -1103
  3. package/_mysheerid-preview.js.map +1 -1
  4. package/chunk/{AddressComponent-OHgf-_sl.js → AddressComponent-CcEzpDGt.js} +8 -8
  5. package/chunk/{AddressComponent-DIp4rtF_.js.map → AddressComponent-CcEzpDGt.js.map} +1 -1
  6. package/chunk/{AddressComponent-DIp4rtF_.js → AddressComponent-uJCuo22u.js} +8 -8
  7. package/chunk/{AddressComponent-OHgf-_sl.js.map → AddressComponent-uJCuo22u.js.map} +1 -1
  8. package/chunk/{AnnouncingHeader-zH7WLU2-.js → AnnouncingHeader-DKOYC3b9.js} +6 -6
  9. package/chunk/{AnnouncingHeader-CnV2m0Ak.js.map → AnnouncingHeader-DKOYC3b9.js.map} +1 -1
  10. package/chunk/{AnnouncingHeader-CnV2m0Ak.js → AnnouncingHeader-gJrk6VDV.js} +6 -6
  11. package/chunk/{AnnouncingHeader-zH7WLU2-.js.map → AnnouncingHeader-gJrk6VDV.js.map} +1 -1
  12. package/chunk/{BirthDateComponent-oQPnVqSa.js → BirthDateComponent-DPwL_esM.js} +8 -8
  13. package/chunk/{BirthDateComponent-CucjHQqp.js.map → BirthDateComponent-DPwL_esM.js.map} +1 -1
  14. package/chunk/{BirthDateComponent-CucjHQqp.js → BirthDateComponent-c3-VfXxt.js} +8 -8
  15. package/chunk/{BirthDateComponent-oQPnVqSa.js.map → BirthDateComponent-c3-VfXxt.js.map} +1 -1
  16. package/chunk/{CaptchaComponent-D98si3Jy.js → CaptchaComponent-3YIkG9Wr.js} +54 -54
  17. package/chunk/{CaptchaComponent-D98si3Jy.js.map → CaptchaComponent-3YIkG9Wr.js.map} +1 -1
  18. package/chunk/{CaptchaComponent-DqGHJA-M.js → CaptchaComponent-B9U-3SMZ.js} +88 -88
  19. package/chunk/{CaptchaComponent-DqGHJA-M.js.map → CaptchaComponent-B9U-3SMZ.js.map} +1 -1
  20. package/chunk/{ChangeLocaleComponent-C8snL44m.js → ChangeLocaleComponent-FiBBf-GR.js} +9 -9
  21. package/chunk/{ChangeLocaleComponent-C8snL44m.js.map → ChangeLocaleComponent-FiBBf-GR.js.map} +1 -1
  22. package/chunk/{ChangeLocaleComponent-CeHqgN6J.js → ChangeLocaleComponent-k7OjzNbY.js} +9 -9
  23. package/chunk/{ChangeLocaleComponent-CeHqgN6J.js.map → ChangeLocaleComponent-k7OjzNbY.js.map} +1 -1
  24. package/chunk/{City-7bUXB6DM.js → City-DWGcObHo.js} +8 -8
  25. package/chunk/{City-7bUXB6DM.js.map → City-DWGcObHo.js.map} +1 -1
  26. package/chunk/{City-aUxxLZ7_.js → City-PTqumFny.js} +8 -8
  27. package/chunk/{City-aUxxLZ7_.js.map → City-PTqumFny.js.map} +1 -1
  28. package/chunk/{CollegeNameComponent-YAs8pRV4.js → CollegeNameComponent-CxOhMPuq.js} +11 -11
  29. package/chunk/{CollegeNameComponent-B5as2wyn.js.map → CollegeNameComponent-CxOhMPuq.js.map} +1 -1
  30. package/chunk/{CollegeNameComponent-B5as2wyn.js → CollegeNameComponent-O9Aa01US.js} +11 -11
  31. package/chunk/{CollegeNameComponent-YAs8pRV4.js.map → CollegeNameComponent-O9Aa01US.js.map} +1 -1
  32. package/chunk/{CopyToClipboardComponent-BdrpxpHJ.js → CopyToClipboardComponent-BorxChs8.js} +9 -9
  33. package/chunk/{CopyToClipboardComponent-BdrpxpHJ.js.map → CopyToClipboardComponent-BorxChs8.js.map} +1 -1
  34. package/chunk/{CopyToClipboardComponent-Dm3-3x4b.js → CopyToClipboardComponent-ystjPwTW.js} +9 -9
  35. package/chunk/{CopyToClipboardComponent-Dm3-3x4b.js.map → CopyToClipboardComponent-ystjPwTW.js.map} +1 -1
  36. package/chunk/{CountryComponentWrapper-IoxuPmMC.js → CountryComponentWrapper-CZK3RrMe.js} +12 -12
  37. package/chunk/{CountryComponentWrapper-BTUytS2o.js.map → CountryComponentWrapper-CZK3RrMe.js.map} +1 -1
  38. package/chunk/{CountryComponentWrapper-BTUytS2o.js → CountryComponentWrapper-DangmyAi.js} +29 -29
  39. package/chunk/{CountryComponentWrapper-IoxuPmMC.js.map → CountryComponentWrapper-DangmyAi.js.map} +1 -1
  40. package/chunk/{DischargeDateComponent-Cy1_zOya.js → DischargeDateComponent-CS7xH5hw.js} +16 -16
  41. package/chunk/{DischargeDateComponent-CTZiOL4E.js.map → DischargeDateComponent-CS7xH5hw.js.map} +1 -1
  42. package/chunk/{DischargeDateComponent-CTZiOL4E.js → DischargeDateComponent-D7ahRNvU.js} +17 -17
  43. package/chunk/{DischargeDateComponent-Cy1_zOya.js.map → DischargeDateComponent-D7ahRNvU.js.map} +1 -1
  44. package/chunk/{DriverLicenseNumberComponent-CxSJbkjt.js → DriverLicenseNumberComponent-CIqKv5_E.js} +8 -8
  45. package/chunk/{DriverLicenseNumberComponent-CxSJbkjt.js.map → DriverLicenseNumberComponent-CIqKv5_E.js.map} +1 -1
  46. package/chunk/{DriverLicenseNumberComponent-Rky9SG-A.js → DriverLicenseNumberComponent-riQXCF7X.js} +8 -8
  47. package/chunk/{DriverLicenseNumberComponent-Rky9SG-A.js.map → DriverLicenseNumberComponent-riQXCF7X.js.map} +1 -1
  48. package/chunk/{EmailLoopPending-BZWT0n5I.js → EmailLoopPending-BvvnCpWf.js} +12 -12
  49. package/chunk/{EmailLoopPending-BZWT0n5I.js.map → EmailLoopPending-BvvnCpWf.js.map} +1 -1
  50. package/chunk/{EmailLoopPending-C319a8WP.js → EmailLoopPending-CfFPbM5A.js} +14 -14
  51. package/chunk/{EmailLoopPending-C319a8WP.js.map → EmailLoopPending-CfFPbM5A.js.map} +1 -1
  52. package/chunk/{ExtraMessage-B58a-KYp.js → ExtraMessage-B0Pl1Fx3.js} +7 -7
  53. package/chunk/{ExtraMessage-B58a-KYp.js.map → ExtraMessage-B0Pl1Fx3.js.map} +1 -1
  54. package/chunk/{ExtraMessage-C1LGtDyk.js → ExtraMessage-BtQiKR6F.js} +7 -7
  55. package/chunk/{ExtraMessage-C1LGtDyk.js.map → ExtraMessage-BtQiKR6F.js.map} +1 -1
  56. package/chunk/{FirstResponderOrganizationComponent-HTKkHwO4.js → FirstResponderOrganizationComponent-3LHhZthH.js} +9 -9
  57. package/chunk/{FirstResponderOrganizationComponent-D6M_yo4M.js.map → FirstResponderOrganizationComponent-3LHhZthH.js.map} +1 -1
  58. package/chunk/{FirstResponderOrganizationComponent-D6M_yo4M.js → FirstResponderOrganizationComponent-Cn3DJnck.js} +9 -9
  59. package/chunk/{FirstResponderOrganizationComponent-HTKkHwO4.js.map → FirstResponderOrganizationComponent-Cn3DJnck.js.map} +1 -1
  60. package/chunk/{FormFieldInputSelect-Cb6lHKHg.js → FormFieldInputSelect-BHFYCp09.js} +7 -7
  61. package/chunk/{FormFieldInputSelect-Cb6lHKHg.js.map → FormFieldInputSelect-BHFYCp09.js.map} +1 -1
  62. package/chunk/{FormFieldInputSelect-e0N6kc8Y.js → FormFieldInputSelect-CWAKAPf9.js} +7 -7
  63. package/chunk/{FormFieldInputSelect-e0N6kc8Y.js.map → FormFieldInputSelect-CWAKAPf9.js.map} +1 -1
  64. package/chunk/{FormFieldLayout-D1tb5nAu.js → FormFieldLayout-B5_PsKrR.js} +6 -6
  65. package/chunk/{FormFieldLayout-D1tb5nAu.js.map → FormFieldLayout-B5_PsKrR.js.map} +1 -1
  66. package/chunk/{FormFieldLayout-Dt_dMiDh.js → FormFieldLayout-CRgEwTkx.js} +6 -6
  67. package/chunk/{FormFieldLayout-Dt_dMiDh.js.map → FormFieldLayout-CRgEwTkx.js.map} +1 -1
  68. package/chunk/{FormFieldText-CsFISbyw.js → FormFieldText-BWImUS8U.js} +7 -7
  69. package/chunk/{FormFieldText-BU2NBm1H.js.map → FormFieldText-BWImUS8U.js.map} +1 -1
  70. package/chunk/{FormFieldText-BU2NBm1H.js → FormFieldText-D4SW8w-w.js} +7 -7
  71. package/chunk/{FormFieldText-CsFISbyw.js.map → FormFieldText-D4SW8w-w.js.map} +1 -1
  72. package/chunk/{FormFieldTypeahead-BsM6Ruie.js → FormFieldTypeahead-C27MDdwq.js} +85 -85
  73. package/chunk/{FormFieldTypeahead-BsM6Ruie.js.map → FormFieldTypeahead-C27MDdwq.js.map} +1 -1
  74. package/chunk/{FormFieldTypeahead-QR_lJrFB.js → FormFieldTypeahead-DLN-DRL3.js} +42 -42
  75. package/chunk/{FormFieldTypeahead-QR_lJrFB.js.map → FormFieldTypeahead-DLN-DRL3.js.map} +1 -1
  76. package/chunk/{FormFooterComponent-DGcfJdwH.js → FormFooterComponent-D0U-oYDf.js} +520 -520
  77. package/chunk/FormFooterComponent-D0U-oYDf.js.map +1 -0
  78. package/chunk/{FormFooterComponent-DmKzIyrc.js → FormFooterComponent-DzG4p93f.js} +466 -466
  79. package/chunk/FormFooterComponent-DzG4p93f.js.map +1 -0
  80. package/chunk/{FormSelectChoice-Bv5aMXMd.js → FormSelectChoice-2j71fL0j.js} +8 -8
  81. package/chunk/{FormSelectChoice-Bv5aMXMd.js.map → FormSelectChoice-2j71fL0j.js.map} +1 -1
  82. package/chunk/{FormSelectChoice-CE1QacNH.js → FormSelectChoice-BGa9KqEI.js} +8 -8
  83. package/chunk/{FormSelectChoice-CE1QacNH.js.map → FormSelectChoice-BGa9KqEI.js.map} +1 -1
  84. package/chunk/{InputText-DMztCQmi.js → InputText-CS8Q8oNz.js} +6 -6
  85. package/chunk/{InputText-CuBi-ytU.js.map → InputText-CS8Q8oNz.js.map} +1 -1
  86. package/chunk/{InputText-CuBi-ytU.js → InputText-D__c437o.js} +6 -6
  87. package/chunk/{InputText-DMztCQmi.js.map → InputText-D__c437o.js.map} +1 -1
  88. package/chunk/{LicensedProfessionalOrganizationComponent-BzyJSQrq.js → LicensedProfessionalOrganizationComponent-BFocaYeI.js} +9 -9
  89. package/chunk/{LicensedProfessionalOrganizationComponent-BzyJSQrq.js.map → LicensedProfessionalOrganizationComponent-BFocaYeI.js.map} +1 -1
  90. package/chunk/{LicensedProfessionalOrganizationComponent-JXLsT4Ua.js → LicensedProfessionalOrganizationComponent-TdpFCMlR.js} +9 -9
  91. package/chunk/{LicensedProfessionalOrganizationComponent-JXLsT4Ua.js.map → LicensedProfessionalOrganizationComponent-TdpFCMlR.js.map} +1 -1
  92. package/chunk/{LogoComponent-B9xpaOmb.js → LogoComponent-BcMnrRvP.js} +6 -6
  93. package/chunk/{LogoComponent-B9xpaOmb.js.map → LogoComponent-BcMnrRvP.js.map} +1 -1
  94. package/chunk/{LogoComponent-CcqFEsge.js → LogoComponent-Dygket6f.js} +6 -6
  95. package/chunk/{LogoComponent-CcqFEsge.js.map → LogoComponent-Dygket6f.js.map} +1 -1
  96. package/chunk/{LowIncomeOrganizationComponent-FQA-80EB.js → LowIncomeOrganizationComponent-BrsVGnzb.js} +15 -15
  97. package/chunk/{LowIncomeOrganizationComponent-FQA-80EB.js.map → LowIncomeOrganizationComponent-BrsVGnzb.js.map} +1 -1
  98. package/chunk/{LowIncomeOrganizationComponent-DlRk_SSB.js → LowIncomeOrganizationComponent-DEwaJ0BF.js} +12 -12
  99. package/chunk/{LowIncomeOrganizationComponent-DlRk_SSB.js.map → LowIncomeOrganizationComponent-DEwaJ0BF.js.map} +1 -1
  100. package/chunk/{MedicalProfessionalOrganizationComponent-GUaeaxBA.js → MedicalProfessionalOrganizationComponent-BY2Hq4h6.js} +9 -9
  101. package/chunk/{MedicalProfessionalOrganizationComponent-GUaeaxBA.js.map → MedicalProfessionalOrganizationComponent-BY2Hq4h6.js.map} +1 -1
  102. package/chunk/{MedicalProfessionalOrganizationComponent-B52FvTE1.js → MedicalProfessionalOrganizationComponent-BdBFSzZK.js} +9 -9
  103. package/chunk/{MedicalProfessionalOrganizationComponent-B52FvTE1.js.map → MedicalProfessionalOrganizationComponent-BdBFSzZK.js.map} +1 -1
  104. package/chunk/{MemberIdComponent-CKOJTsUZ.js → MemberIdComponent-CK7-5MwH.js} +8 -8
  105. package/chunk/{MemberIdComponent-CKOJTsUZ.js.map → MemberIdComponent-CK7-5MwH.js.map} +1 -1
  106. package/chunk/{MemberIdComponent-DKvGJ5w8.js → MemberIdComponent-KkHtb-GL.js} +8 -8
  107. package/chunk/{MemberIdComponent-DKvGJ5w8.js.map → MemberIdComponent-KkHtb-GL.js.map} +1 -1
  108. package/chunk/{MembershipOrganizationComponent-BsP0oS9k.js → MembershipOrganizationComponent-fWo6qweD.js} +9 -9
  109. package/chunk/{MembershipOrganizationComponent-BsP0oS9k.js.map → MembershipOrganizationComponent-fWo6qweD.js.map} +1 -1
  110. package/chunk/{MembershipOrganizationComponent-DlERUS3X.js → MembershipOrganizationComponent-z2gRbxPZ.js} +9 -9
  111. package/chunk/{MembershipOrganizationComponent-DlERUS3X.js.map → MembershipOrganizationComponent-z2gRbxPZ.js.map} +1 -1
  112. package/chunk/{Message-BToMuDnF.js → Message-D1m8rtsf.js} +7375 -7325
  113. package/chunk/Message-D1m8rtsf.js.map +1 -0
  114. package/chunk/{Message-BcRlg1D8.js → Message-bCY_JxvZ.js} +7861 -7811
  115. package/chunk/Message-bCY_JxvZ.js.map +1 -0
  116. package/chunk/Onfido-CTCgAwnB.js +4 -4
  117. package/chunk/{PersonalInfoStepSubmitButton-B3cCavK_.js → PersonalInfoStepSubmitButton-6Kg-pZ_I.js} +20 -20
  118. package/chunk/{PersonalInfoStepSubmitButton-B3cCavK_.js.map → PersonalInfoStepSubmitButton-6Kg-pZ_I.js.map} +1 -1
  119. package/chunk/{PersonalInfoStepSubmitButton-DvsmVrOf.js → PersonalInfoStepSubmitButton-DF3V6hJY.js} +19 -19
  120. package/chunk/{PersonalInfoStepSubmitButton-DvsmVrOf.js.map → PersonalInfoStepSubmitButton-DF3V6hJY.js.map} +1 -1
  121. package/chunk/{PersonalInfoStepWrapper-BvUX_IV3.js → PersonalInfoStepWrapper-BHXuN88z.js} +8 -8
  122. package/chunk/{PersonalInfoStepWrapper-BvUX_IV3.js.map → PersonalInfoStepWrapper-BHXuN88z.js.map} +1 -1
  123. package/chunk/{PersonalInfoStepWrapper-B58Hl9Sp.js → PersonalInfoStepWrapper-DuKZA7Bm.js} +7 -7
  124. package/chunk/{PersonalInfoStepWrapper-B58Hl9Sp.js.map → PersonalInfoStepWrapper-DuKZA7Bm.js.map} +1 -1
  125. package/chunk/{PostalCodeComponent-FVc2Nso4.js → PostalCodeComponent-BDLw-xEX.js} +8 -8
  126. package/chunk/{PostalCodeComponent-CrWWddQS.js.map → PostalCodeComponent-BDLw-xEX.js.map} +1 -1
  127. package/chunk/{PostalCodeComponent-CrWWddQS.js → PostalCodeComponent-BDVa1QY7.js} +8 -8
  128. package/chunk/{PostalCodeComponent-FVc2Nso4.js.map → PostalCodeComponent-BDVa1QY7.js.map} +1 -1
  129. package/chunk/{SSN-5QKevvwg.js → SSN-C4RsyvaG.js} +8 -8
  130. package/chunk/{SSN-5QKevvwg.js.map → SSN-C4RsyvaG.js.map} +1 -1
  131. package/chunk/{SSN-rfoKEogO.js → SSN-Dn0TLNb9.js} +8 -8
  132. package/chunk/{SSN-rfoKEogO.js.map → SSN-Dn0TLNb9.js.map} +1 -1
  133. package/chunk/StateSelectComponent-BuF9uoFe.js +46 -0
  134. package/chunk/StateSelectComponent-BuF9uoFe.js.map +1 -0
  135. package/chunk/StateSelectComponent-OMXNQVGE.js +42 -0
  136. package/chunk/StateSelectComponent-OMXNQVGE.js.map +1 -0
  137. package/chunk/{StatusComponent-DoH2jBJe.js → StatusComponent-B-1gIOek.js} +10 -10
  138. package/chunk/{StatusComponent-DoH2jBJe.js.map → StatusComponent-B-1gIOek.js.map} +1 -1
  139. package/chunk/{StatusComponent-CXUgeCAX.js → StatusComponent-U699Nzbq.js} +10 -10
  140. package/chunk/{StatusComponent-CXUgeCAX.js.map → StatusComponent-U699Nzbq.js.map} +1 -1
  141. package/chunk/{StepAgePersonalInfo-CjTZNsVe.js → StepAgePersonalInfo-C8-SdaGI.js} +58 -58
  142. package/chunk/{StepAgePersonalInfo-CjTZNsVe.js.map → StepAgePersonalInfo-C8-SdaGI.js.map} +1 -1
  143. package/chunk/{StepAgePersonalInfo-DYHJqeaB.js → StepAgePersonalInfo-DMMuSV6H.js} +58 -58
  144. package/chunk/{StepAgePersonalInfo-DYHJqeaB.js.map → StepAgePersonalInfo-DMMuSV6H.js.map} +1 -1
  145. package/chunk/{StepCard-DJR-l3sW.js → StepCard-B72CFYHs.js} +5 -5
  146. package/chunk/{StepCard-DJR-l3sW.js.map → StepCard-B72CFYHs.js.map} +1 -1
  147. package/chunk/{StepCard-wwTRGIhn.js → StepCard-Bvt7Kykz.js} +5 -5
  148. package/chunk/{StepCard-wwTRGIhn.js.map → StepCard-Bvt7Kykz.js.map} +1 -1
  149. package/chunk/{StepCollectIdentifier-DE0gBqAY.js → StepCollectIdentifier-Cf_OO2eb.js} +9 -9
  150. package/chunk/{StepCollectIdentifier-DE0gBqAY.js.map → StepCollectIdentifier-Cf_OO2eb.js.map} +1 -1
  151. package/chunk/{StepCollectIdentifier-BxkG6FC9.js → StepCollectIdentifier-D8BXMPSm.js} +9 -9
  152. package/chunk/{StepCollectIdentifier-BxkG6FC9.js.map → StepCollectIdentifier-D8BXMPSm.js.map} +1 -1
  153. package/chunk/{StepCollectMilitaryPersonalInfoComponent-DfiGcf5I.js → StepCollectMilitaryPersonalInfoComponent--ylC8N5Z.js} +24 -24
  154. package/chunk/{StepCollectMilitaryPersonalInfoComponent--Ie4B0yl.js.map → StepCollectMilitaryPersonalInfoComponent--ylC8N5Z.js.map} +1 -1
  155. package/chunk/{StepCollectMilitaryPersonalInfoComponent--Ie4B0yl.js → StepCollectMilitaryPersonalInfoComponent-D-xxPyNf.js} +24 -24
  156. package/chunk/{StepCollectMilitaryPersonalInfoComponent-DfiGcf5I.js.map → StepCollectMilitaryPersonalInfoComponent-D-xxPyNf.js.map} +1 -1
  157. package/chunk/{StepCollectPersonalInfo-lnriADQY.js → StepCollectPersonalInfo-CIskNcb_.js} +121 -121
  158. package/chunk/{StepCollectPersonalInfo-lnriADQY.js.map → StepCollectPersonalInfo-CIskNcb_.js.map} +1 -1
  159. package/chunk/{StepCollectPersonalInfo-vwWUcMyH.js → StepCollectPersonalInfo-CaVYVLpx.js} +122 -122
  160. package/chunk/{StepCollectPersonalInfo-vwWUcMyH.js.map → StepCollectPersonalInfo-CaVYVLpx.js.map} +1 -1
  161. package/chunk/{StepCompleteAuthentication-BJTAm52g.js → StepCompleteAuthentication-BrdV0iN-.js} +9 -9
  162. package/chunk/{StepCompleteAuthentication-BJTAm52g.js.map → StepCompleteAuthentication-BrdV0iN-.js.map} +1 -1
  163. package/chunk/{StepCompleteAuthentication-BUA2xrtE.js → StepCompleteAuthentication-DLwlKmBO.js} +20 -20
  164. package/chunk/{StepCompleteAuthentication-BUA2xrtE.js.map → StepCompleteAuthentication-DLwlKmBO.js.map} +1 -1
  165. package/chunk/{StepConsolation-CRoBFGTd.js → StepConsolation-BzbijBhL.js} +8 -8
  166. package/chunk/{StepConsolation-Dw4IOp9l.js.map → StepConsolation-BzbijBhL.js.map} +1 -1
  167. package/chunk/{StepConsolation-Dw4IOp9l.js → StepConsolation-DFQwmpUe.js} +8 -8
  168. package/chunk/{StepConsolation-CRoBFGTd.js.map → StepConsolation-DFQwmpUe.js.map} +1 -1
  169. package/chunk/{StepDocUpload-xEtdWGcK.js → StepDocUpload-CFcyuvS6.js} +30 -30
  170. package/chunk/{StepDocUpload-xEtdWGcK.js.map → StepDocUpload-CFcyuvS6.js.map} +1 -1
  171. package/chunk/{StepDocUpload-BUzQ9g81.js → StepDocUpload-h1JWZUZC.js} +23 -23
  172. package/chunk/{StepDocUpload-BUzQ9g81.js.map → StepDocUpload-h1JWZUZC.js.map} +1 -1
  173. package/chunk/{StepDriverLicensePersonalInfoComponent-Dx_8OM3-.js → StepDriverLicensePersonalInfoComponent-DFc0FiIt.js} +15 -15
  174. package/chunk/{StepDriverLicensePersonalInfoComponent-BxUpMImU.js.map → StepDriverLicensePersonalInfoComponent-DFc0FiIt.js.map} +1 -1
  175. package/chunk/{StepDriverLicensePersonalInfoComponent-BxUpMImU.js → StepDriverLicensePersonalInfoComponent-s_PvlzNE.js} +15 -15
  176. package/chunk/{StepDriverLicensePersonalInfoComponent-Dx_8OM3-.js.map → StepDriverLicensePersonalInfoComponent-s_PvlzNE.js.map} +1 -1
  177. package/chunk/{StepEmailLoop-mfub_mok.js → StepEmailLoop-D5T68VTx.js} +13 -13
  178. package/chunk/{StepEmailLoop-Nw-rJgsm.js.map → StepEmailLoop-D5T68VTx.js.map} +1 -1
  179. package/chunk/{StepEmailLoop-Nw-rJgsm.js → StepEmailLoop-DLoLfr39.js} +13 -13
  180. package/chunk/{StepEmailLoop-mfub_mok.js.map → StepEmailLoop-DLoLfr39.js.map} +1 -1
  181. package/chunk/{StepEmploymentPersonalInfo-jfNudNTZ.js → StepEmploymentPersonalInfo-BiXV9zG6.js} +20 -20
  182. package/chunk/{StepEmploymentPersonalInfo-DMkrJYj7.js.map → StepEmploymentPersonalInfo-BiXV9zG6.js.map} +1 -1
  183. package/chunk/{StepEmploymentPersonalInfo-DMkrJYj7.js → StepEmploymentPersonalInfo-ByAaA9uJ.js} +20 -20
  184. package/chunk/{StepEmploymentPersonalInfo-jfNudNTZ.js.map → StepEmploymentPersonalInfo-ByAaA9uJ.js.map} +1 -1
  185. package/chunk/{StepFirstResponderPersonalInfo-CYFtsRm-.js → StepFirstResponderPersonalInfo-BqS568ZP.js} +22 -22
  186. package/chunk/{StepFirstResponderPersonalInfo-CFqJv92p.js.map → StepFirstResponderPersonalInfo-BqS568ZP.js.map} +1 -1
  187. package/chunk/{StepFirstResponderPersonalInfo-CFqJv92p.js → StepFirstResponderPersonalInfo-DEc90JZ2.js} +22 -22
  188. package/chunk/{StepFirstResponderPersonalInfo-CYFtsRm-.js.map → StepFirstResponderPersonalInfo-DEc90JZ2.js.map} +1 -1
  189. package/chunk/{StepGeneralIdentityPersonalInfoComponent-k27Awiqm.js → StepGeneralIdentityPersonalInfoComponent-2_g0jDtn.js} +18 -18
  190. package/chunk/{StepGeneralIdentityPersonalInfoComponent-BaVIwPSY.js.map → StepGeneralIdentityPersonalInfoComponent-2_g0jDtn.js.map} +1 -1
  191. package/chunk/{StepGeneralIdentityPersonalInfoComponent-BaVIwPSY.js → StepGeneralIdentityPersonalInfoComponent-B3_zfixj.js} +18 -18
  192. package/chunk/{StepGeneralIdentityPersonalInfoComponent-k27Awiqm.js.map → StepGeneralIdentityPersonalInfoComponent-B3_zfixj.js.map} +1 -1
  193. package/chunk/{StepHybridIdentityPersonalInfoComponent-D0luWaZH.js → StepHybridIdentityPersonalInfoComponent-BFhxyJWJ.js} +19 -19
  194. package/chunk/{StepHybridIdentityPersonalInfoComponent-D0luWaZH.js.map → StepHybridIdentityPersonalInfoComponent-BFhxyJWJ.js.map} +1 -1
  195. package/chunk/{StepHybridIdentityPersonalInfoComponent-k2Y3yuVP.js → StepHybridIdentityPersonalInfoComponent-DzYYUzME.js} +19 -19
  196. package/chunk/{StepHybridIdentityPersonalInfoComponent-k2Y3yuVP.js.map → StepHybridIdentityPersonalInfoComponent-DzYYUzME.js.map} +1 -1
  197. package/chunk/{StepIDCheckLoop-BtLu63gH.js → StepIDCheckLoop-8HP5_FVH.js} +8 -8
  198. package/chunk/{StepIDCheckLoop-BtLu63gH.js.map → StepIDCheckLoop-8HP5_FVH.js.map} +1 -1
  199. package/chunk/{StepIDCheckLoop-qMDVYGF6.js → StepIDCheckLoop-D-Y9rKsk.js} +8 -8
  200. package/chunk/{StepIDCheckLoop-qMDVYGF6.js.map → StepIDCheckLoop-D-Y9rKsk.js.map} +1 -1
  201. package/chunk/{StepIDCheckLoopOnfido-Cn2taSRq.js → StepIDCheckLoopOnfido-C_EEaIvS.js} +27 -27
  202. package/chunk/{StepIDCheckLoopOnfido-D9hJvwHI.js.map → StepIDCheckLoopOnfido-C_EEaIvS.js.map} +1 -1
  203. package/chunk/{StepIDCheckLoopOnfido-D9hJvwHI.js → StepIDCheckLoopOnfido-DQacZCgs.js} +16 -16
  204. package/chunk/{StepIDCheckLoopOnfido-Cn2taSRq.js.map → StepIDCheckLoopOnfido-DQacZCgs.js.map} +1 -1
  205. package/chunk/{StepIDCheckLoopRegula-B0gSu2f2.js → StepIDCheckLoopRegula-DEiy_meG.js} +11 -11
  206. package/chunk/{StepIDCheckLoopRegula-B0gSu2f2.js.map → StepIDCheckLoopRegula-DEiy_meG.js.map} +1 -1
  207. package/chunk/{StepIDCheckLoopRegula-C5taOj9i.js → StepIDCheckLoopRegula-FMQtQ00c.js} +11 -11
  208. package/chunk/{StepIDCheckLoopRegula-C5taOj9i.js.map → StepIDCheckLoopRegula-FMQtQ00c.js.map} +1 -1
  209. package/chunk/{StepLicensedProfessionalPersonalInfo-tWD68oFU.js → StepLicensedProfessionalPersonalInfo-B6qktzsF.js} +21 -21
  210. package/chunk/{StepLicensedProfessionalPersonalInfo-Db4rc2F6.js.map → StepLicensedProfessionalPersonalInfo-B6qktzsF.js.map} +1 -1
  211. package/chunk/{StepLicensedProfessionalPersonalInfo-Db4rc2F6.js → StepLicensedProfessionalPersonalInfo-f6waS68x.js} +21 -21
  212. package/chunk/{StepLicensedProfessionalPersonalInfo-tWD68oFU.js.map → StepLicensedProfessionalPersonalInfo-f6waS68x.js.map} +1 -1
  213. package/chunk/{StepLowIncomePersonalInfo-C8ZXtF9i.js → StepLowIncomePersonalInfo-CVrkhAxr.js} +25 -25
  214. package/chunk/{StepLowIncomePersonalInfo-C8ZXtF9i.js.map → StepLowIncomePersonalInfo-CVrkhAxr.js.map} +1 -1
  215. package/chunk/{StepLowIncomePersonalInfo-DTQzLFYh.js → StepLowIncomePersonalInfo-Cpr_D1eF.js} +74 -74
  216. package/chunk/{StepLowIncomePersonalInfo-DTQzLFYh.js.map → StepLowIncomePersonalInfo-Cpr_D1eF.js.map} +1 -1
  217. package/chunk/{StepMedicalProfessionalPersonalInfo-CEWvfZIo.js → StepMedicalProfessionalPersonalInfo-BMdmppPh.js} +22 -22
  218. package/chunk/{StepMedicalProfessionalPersonalInfo-CEWvfZIo.js.map → StepMedicalProfessionalPersonalInfo-BMdmppPh.js.map} +1 -1
  219. package/chunk/{StepMedicalProfessionalPersonalInfo-D81j6Sg7.js → StepMedicalProfessionalPersonalInfo-CR_cOA88.js} +22 -22
  220. package/chunk/{StepMedicalProfessionalPersonalInfo-D81j6Sg7.js.map → StepMedicalProfessionalPersonalInfo-CR_cOA88.js.map} +1 -1
  221. package/chunk/{StepMemberPersonalInfo-Idz-W2bu.js → StepMemberPersonalInfo-3ycGLGMb.js} +17 -17
  222. package/chunk/{StepMemberPersonalInfo-B__oOkWE.js.map → StepMemberPersonalInfo-3ycGLGMb.js.map} +1 -1
  223. package/chunk/{StepMemberPersonalInfo-B__oOkWE.js → StepMemberPersonalInfo-BTBjBkLR.js} +57 -57
  224. package/chunk/{StepMemberPersonalInfo-Idz-W2bu.js.map → StepMemberPersonalInfo-BTBjBkLR.js.map} +1 -1
  225. package/chunk/{StepMoverPersonalInfo-BItSb2hF.js → StepMoverPersonalInfo-CHmJAEta.js} +47 -47
  226. package/chunk/{StepMoverPersonalInfo-BItSb2hF.js.map → StepMoverPersonalInfo-CHmJAEta.js.map} +1 -1
  227. package/chunk/{StepMoverPersonalInfo-EJ5M2CDv.js → StepMoverPersonalInfo-CJEvhUg5.js} +15 -15
  228. package/chunk/{StepMoverPersonalInfo-EJ5M2CDv.js.map → StepMoverPersonalInfo-CJEvhUg5.js.map} +1 -1
  229. package/chunk/{StepOverrideComponent-BABa7V4t.js → StepOverrideComponent-B9fvWbBC.js} +21 -21
  230. package/chunk/{StepOverrideComponent-Cfltty36.js.map → StepOverrideComponent-B9fvWbBC.js.map} +1 -1
  231. package/chunk/{StepOverrideComponent-Cfltty36.js → StepOverrideComponent-BYUbyZkl.js} +21 -21
  232. package/chunk/{StepOverrideComponent-BABa7V4t.js.map → StepOverrideComponent-BYUbyZkl.js.map} +1 -1
  233. package/chunk/{StepSMSLoop-DfGhOhOr.js → StepSMSLoop-BR4v_UvU.js} +22 -22
  234. package/chunk/{StepSMSLoop-DfGhOhOr.js.map → StepSMSLoop-BR4v_UvU.js.map} +1 -1
  235. package/chunk/{StepSMSLoop-vn3IgTp0.js → StepSMSLoop-Dp77AMrb.js} +24 -24
  236. package/chunk/{StepSMSLoop-vn3IgTp0.js.map → StepSMSLoop-Dp77AMrb.js.map} +1 -1
  237. package/chunk/StepSSO-BGHCbduX.js +4 -4
  238. package/chunk/StepSSO-ZHByQpHa.js +4 -4
  239. package/chunk/{StepSocialSecurityNumber-CjG9oKtT.js → StepSocialSecurityNumber-A2Q_UluD.js} +12 -12
  240. package/chunk/{StepSocialSecurityNumber-BEhNPFMA.js.map → StepSocialSecurityNumber-A2Q_UluD.js.map} +1 -1
  241. package/chunk/{StepSocialSecurityNumber-BEhNPFMA.js → StepSocialSecurityNumber-BO5uts-s.js} +24 -24
  242. package/chunk/{StepSocialSecurityNumber-CjG9oKtT.js.map → StepSocialSecurityNumber-BO5uts-s.js.map} +1 -1
  243. package/chunk/{StepStudentPersonalInfo-6sEXvlbs.js → StepStudentPersonalInfo-CLchkf6y.js} +64 -64
  244. package/chunk/{StepStudentPersonalInfo-6sEXvlbs.js.map → StepStudentPersonalInfo-CLchkf6y.js.map} +1 -1
  245. package/chunk/{StepStudentPersonalInfo-NYJN6QM4.js → StepStudentPersonalInfo-oc0V1SEn.js} +22 -22
  246. package/chunk/{StepStudentPersonalInfo-NYJN6QM4.js.map → StepStudentPersonalInfo-oc0V1SEn.js.map} +1 -1
  247. package/chunk/{StepSuccess-DXYPrAoS.js → StepSuccess-DYAR3u5v.js} +25 -25
  248. package/chunk/{StepSuccess-BSGiXxfN.js.map → StepSuccess-DYAR3u5v.js.map} +1 -1
  249. package/chunk/{StepSuccess-BSGiXxfN.js → StepSuccess-z93uD3YR.js} +26 -26
  250. package/chunk/{StepSuccess-DXYPrAoS.js.map → StepSuccess-z93uD3YR.js.map} +1 -1
  251. package/chunk/{StepTeacherPersonalInfo-DH19GPsU.js → StepTeacherPersonalInfo-Bm4zMphQ.js} +18 -18
  252. package/chunk/{StepTeacherPersonalInfo-BnUPd7A_.js.map → StepTeacherPersonalInfo-Bm4zMphQ.js.map} +1 -1
  253. package/chunk/{StepTeacherPersonalInfo-BnUPd7A_.js → StepTeacherPersonalInfo-UxRien1W.js} +18 -18
  254. package/chunk/{StepTeacherPersonalInfo-DH19GPsU.js.map → StepTeacherPersonalInfo-UxRien1W.js.map} +1 -1
  255. package/chunk/StepThirdPartyLoop-BrKuZcYb.js +4 -4
  256. package/chunk/StepThirdPartyLoop-CbFTIlwP.js +4 -4
  257. package/chunk/{TeacherSchoolComponent-I15vrTCE.js → TeacherSchoolComponent-B-8Zac1k.js} +11 -11
  258. package/chunk/{TeacherSchoolComponent-I15vrTCE.js.map → TeacherSchoolComponent-B-8Zac1k.js.map} +1 -1
  259. package/chunk/{TeacherSchoolComponent-pnmySE96.js → TeacherSchoolComponent-Bnurez7X.js} +11 -11
  260. package/chunk/{TeacherSchoolComponent-pnmySE96.js.map → TeacherSchoolComponent-Bnurez7X.js.map} +1 -1
  261. package/chunk/{TestingRouteOverrides-Bx1n-xCR.js → TestingRouteOverrides-CqkLaStu.js} +26 -26
  262. package/chunk/{TestingRouteOverrides-Bx1n-xCR.js.map → TestingRouteOverrides-CqkLaStu.js.map} +1 -1
  263. package/chunk/{TestingRouteOverrides-DHe5BulD.js → TestingRouteOverrides-DUx5spVA.js} +24 -24
  264. package/chunk/{TestingRouteOverrides-DHe5BulD.js.map → TestingRouteOverrides-DUx5spVA.js.map} +1 -1
  265. package/chunk/ThreatMetrix-D_TbL50B.js +4 -4
  266. package/chunk/ar-D5CO913q.js +4 -4
  267. package/chunk/bg-1mhA5kYF.js +4 -4
  268. package/chunk/bn-IN-CpDqyRb_.js +4 -4
  269. package/chunk/clsx-CB5rauS5.js +4 -4
  270. package/chunk/{countryUtils-CdNf-73_.js → countryUtils-CSpfIQmr.js} +5 -5
  271. package/chunk/{countryUtils-CdNf-73_.js.map → countryUtils-CSpfIQmr.js.map} +1 -1
  272. package/chunk/countryUtils-ROgCMKtt.js +12 -0
  273. package/chunk/{countryUtils-CniUDXes.js.map → countryUtils-ROgCMKtt.js.map} +1 -1
  274. package/chunk/cs-Chh7FAGt.js +4 -4
  275. package/chunk/da-DwrVoxto.js +4 -4
  276. package/chunk/de-IWGZLhgY.js +4 -4
  277. package/chunk/{downshift.esm-D0Q-rG8L.js → downshift.esm-B_3QLNGg.js} +124 -124
  278. package/chunk/{downshift.esm-DUM3sJ7L.js.map → downshift.esm-B_3QLNGg.js.map} +1 -1
  279. package/chunk/{downshift.esm-DUM3sJ7L.js → downshift.esm-dTKHfRuW.js} +7 -7
  280. package/chunk/{downshift.esm-D0Q-rG8L.js.map → downshift.esm-dTKHfRuW.js.map} +1 -1
  281. package/chunk/el-DbDcvSPJ.js +4 -4
  282. package/chunk/{empties-C5H0EoXJ.js → empties-C1INRgC4.js} +53 -56
  283. package/chunk/empties-C1INRgC4.js.map +1 -0
  284. package/chunk/{empties-DaNcqYFb.js → empties-C38lUQIl.js} +9 -12
  285. package/chunk/empties-C38lUQIl.js.map +1 -0
  286. package/chunk/en-GB-CNQ8Ww2j.js +4 -4
  287. package/chunk/es-ES-DWimqEZ_.js +4 -4
  288. package/chunk/es-qhC-seq5.js +4 -4
  289. package/chunk/et-yF9G-Mym.js +4 -4
  290. package/chunk/eventEmitter-CSG6jR7V.js +4 -4
  291. package/chunk/fa-BcdSf7og.js +4 -4
  292. package/chunk/fi-D-IP_KHm.js +4 -4
  293. package/chunk/fr-BmUuYxk0.js +4 -4
  294. package/chunk/fr-CA-DVQ4xmzZ.js +4 -4
  295. package/chunk/ga-DuZycND3.js +4 -4
  296. package/chunk/hi-IN-l6Rn5Ewm.js +4 -4
  297. package/chunk/{hooks-BF7oPgCe.js → hooks-DFk9wlFh.js} +52 -52
  298. package/chunk/hooks-DFk9wlFh.js.map +1 -0
  299. package/chunk/{hooks-Bqhz6E9V.js → hooks-Y72jcEAM.js} +48 -48
  300. package/chunk/hooks-Y72jcEAM.js.map +1 -0
  301. package/chunk/hr-BtqyDzDB.js +4 -4
  302. package/chunk/hu-C6syKJfb.js +4 -4
  303. package/chunk/id-GgI-Z2a5.js +4 -4
  304. package/chunk/{intl-DYOqmiaL.js → intl-D5sUivUy.js} +285 -273
  305. package/chunk/intl-D5sUivUy.js.map +1 -0
  306. package/chunk/is-CvmKEON9.js +4 -4
  307. package/chunk/it-CnmveGgC.js +4 -4
  308. package/chunk/iw-DFUYHkxF.js +4 -4
  309. package/chunk/ja-CjVb2tWW.js +4 -4
  310. package/chunk/{jsx-runtime-DQO6A867.js → jsx-runtime-BfITI5pK.js} +19 -19
  311. package/chunk/{jsx-runtime-DtApx7WX.js.map → jsx-runtime-BfITI5pK.js.map} +1 -1
  312. package/chunk/{jsx-runtime-DtApx7WX.js → jsx-runtime-CB6nLaN6.js} +19 -19
  313. package/chunk/{jsx-runtime-DQO6A867.js.map → jsx-runtime-CB6nLaN6.js.map} +1 -1
  314. package/chunk/kk-Dvz4nK6K.js +4 -4
  315. package/chunk/ko-DzOqBMGC.js +4 -4
  316. package/chunk/lo-C2WPq55d.js +4 -4
  317. package/chunk/lt-BSDYvjTF.js +4 -4
  318. package/chunk/lv-CefDPT-M.js +4 -4
  319. package/chunk/mockProgramConfiguration-YBQMVL51.js +49 -0
  320. package/chunk/mockProgramConfiguration-YBQMVL51.js.map +1 -0
  321. package/chunk/mockProgramI18n-CgYx_1_a.js +18 -0
  322. package/chunk/mockProgramI18n-CgYx_1_a.js.map +1 -0
  323. package/chunk/{mockProgramTheme-CBqgtg7A.js → mockProgramTheme-CPG4vkJd.js} +4 -8
  324. package/chunk/mockProgramTheme-CPG4vkJd.js.map +1 -0
  325. package/chunk/{mocks-D8UIPfvt.js → mocks-BJWOJTTC.js} +73 -74
  326. package/chunk/mocks-BJWOJTTC.js.map +1 -0
  327. package/chunk/{mocks-denu632X.js → mocks-BtNIwVeT.js} +73 -74
  328. package/chunk/mocks-BtNIwVeT.js.map +1 -0
  329. package/chunk/ms-BjestZxy.js +4 -4
  330. package/chunk/nl-B1FyUfCT.js +4 -4
  331. package/chunk/nl-BE-CbeAd3nq.js +4 -4
  332. package/chunk/no-Dr633Ddi.js +4 -4
  333. package/chunk/{options-DsRV5fwh.js → options-BCFIfBTZ.js} +356 -344
  334. package/chunk/options-BCFIfBTZ.js.map +1 -0
  335. package/chunk/pl-UYTjMIq_.js +4 -4
  336. package/chunk/programThemeGetters-CKWD2Nuw.js +164 -0
  337. package/chunk/programThemeGetters-CKWD2Nuw.js.map +1 -0
  338. package/chunk/programThemeGetters-DKJV4UNP.js +158 -0
  339. package/chunk/programThemeGetters-DKJV4UNP.js.map +1 -0
  340. package/chunk/pt-BR-C8SYMT-J.js +4 -4
  341. package/chunk/pt-uH-M3GdN.js +4 -4
  342. package/chunk/refs-Mq0rtW9K.js +4 -4
  343. package/chunk/ro-CAOSXZ7h.js +4 -4
  344. package/chunk/ru-iwYoEydL.js +4 -4
  345. package/chunk/runtimeTypes-B2AGNJMT.js +4 -4
  346. package/chunk/sk-DYYNV3zw.js +4 -4
  347. package/chunk/sl-D_-eeM5N.js +4 -4
  348. package/chunk/sr-BTi9_anL.js +4 -4
  349. package/chunk/{stepComponentHelpers-DOISo3yJ.js → stepComponentHelpers--E4kvS6y.js} +14 -14
  350. package/chunk/{stepComponentHelpers-BElircEH.js.map → stepComponentHelpers--E4kvS6y.js.map} +1 -1
  351. package/chunk/{stepComponentHelpers-BElircEH.js → stepComponentHelpers-CD1Gfspm.js} +34 -34
  352. package/chunk/{stepComponentHelpers-DOISo3yJ.js.map → stepComponentHelpers-CD1Gfspm.js.map} +1 -1
  353. package/chunk/strings-DWLVdUcm.js +4 -4
  354. package/chunk/sv-DRwY4shG.js +4 -4
  355. package/chunk/sw-Bvj2mYmM.js +4 -4
  356. package/chunk/ta-CmtaYoNe.js +4 -4
  357. package/chunk/th-12r2yKkJ.js +4 -4
  358. package/chunk/tl-BGNfO7md.js +4 -4
  359. package/chunk/tr-DH2ZSJhs.js +4 -4
  360. package/chunk/uk-CELBZlTd.js +4 -4
  361. package/chunk/ur-MR8DTbmd.js +4 -4
  362. package/chunk/{useCollectFieldsEndpoint-DbalWE2_.js → useCollectFieldsEndpoint-BFxNI9mD.js} +19 -19
  363. package/chunk/{useCollectFieldsEndpoint-DbalWE2_.js.map → useCollectFieldsEndpoint-BFxNI9mD.js.map} +1 -1
  364. package/chunk/{useCollectFieldsEndpoint-DODNTDbS.js → useCollectFieldsEndpoint-Dy61hji9.js} +16 -16
  365. package/chunk/{useCollectFieldsEndpoint-DODNTDbS.js.map → useCollectFieldsEndpoint-Dy61hji9.js.map} +1 -1
  366. package/chunk/{useMetrics-f-F1IOc3.js → useMetrics-CtsRRjGJ.js} +7 -7
  367. package/chunk/{useMetrics-XHSibxjX.js.map → useMetrics-CtsRRjGJ.js.map} +1 -1
  368. package/chunk/{useMetrics-XHSibxjX.js → useMetrics-jabV9gsZ.js} +7 -7
  369. package/chunk/{useMetrics-f-F1IOc3.js.map → useMetrics-jabV9gsZ.js.map} +1 -1
  370. package/chunk/vi-DtZ-SqD5.js +4 -4
  371. package/chunk/zh-DjyVyYac.js +4 -4
  372. package/chunk/zh-HK-CN1HarHq.js +4 -4
  373. package/chunk/zu-DPhgIh1z.js +4 -4
  374. package/package.json +1 -1
  375. package/sheerid-install.css +4 -4
  376. package/sheerid-install.js +4 -4
  377. package/sheerid.css +4 -4
  378. package/sheerid.js +1356 -1363
  379. package/sheerid.js.map +1 -1
  380. package/chunk/FormFooterComponent-DGcfJdwH.js.map +0 -1
  381. package/chunk/FormFooterComponent-DmKzIyrc.js.map +0 -1
  382. package/chunk/Message-BToMuDnF.js.map +0 -1
  383. package/chunk/Message-BcRlg1D8.js.map +0 -1
  384. package/chunk/StateSelectComponent-BaUHQef8.js +0 -46
  385. package/chunk/StateSelectComponent-BaUHQef8.js.map +0 -1
  386. package/chunk/StateSelectComponent-Bl0sEDiJ.js +0 -42
  387. package/chunk/StateSelectComponent-Bl0sEDiJ.js.map +0 -1
  388. package/chunk/countryUtils-CniUDXes.js +0 -12
  389. package/chunk/empties-C5H0EoXJ.js.map +0 -1
  390. package/chunk/empties-DaNcqYFb.js.map +0 -1
  391. package/chunk/hooks-BF7oPgCe.js.map +0 -1
  392. package/chunk/hooks-Bqhz6E9V.js.map +0 -1
  393. package/chunk/intl-DYOqmiaL.js.map +0 -1
  394. package/chunk/mockProgramTheme-CBqgtg7A.js.map +0 -1
  395. package/chunk/mocks-D8UIPfvt.js.map +0 -1
  396. package/chunk/mocks-denu632X.js.map +0 -1
  397. package/chunk/options-DsRV5fwh.js.map +0 -1
  398. package/chunk/programThemeGetters-BD2PXz0k.js +0 -182
  399. package/chunk/programThemeGetters-BD2PXz0k.js.map +0 -1
  400. package/chunk/programThemeGetters-DTXDRpA2.js +0 -188
  401. package/chunk/programThemeGetters-DTXDRpA2.js.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"StepCollectMilitaryPersonalInfoComponent--Ie4B0yl.js","names":[],"sources":["../../src/components/StepMilitaryPersonalInfo/militaryStepHelpers.ts","../../src/components/StepMilitaryPersonalInfo/StepCollectMilitaryPersonalInfoComponent.tsx"],"sourcesContent":["import produce from \"immer\";\n\nimport {\n type VerificationService,\n type FormSelectChoice,\n type MilitaryPersonalInfoViewModel,\n} from \"../../lib/types/types\";\n\nexport const updateMilitaryViewModel = (\n key: keyof MilitaryPersonalInfoViewModel,\n value: any,\n verificationService: VerificationService,\n availableStatuses: FormSelectChoice[],\n): MilitaryPersonalInfoViewModel => {\n const viewModel = verificationService.viewModel as MilitaryPersonalInfoViewModel;\n return produce(viewModel, (draft: MilitaryPersonalInfoViewModel) => {\n (draft[key] as any) = value;\n\n // Reset military-managed skip flags before reapplying.\n const militaryManagedFields = [\"status\"];\n draft.fieldsToSkipValidation = (draft.fieldsToSkipValidation || []).filter(\n (id) => !militaryManagedFields.includes(id),\n );\n\n if (!availableStatuses || availableStatuses.length === 0) {\n draft.fieldsToSkipValidation.push(\"status\");\n }\n\n if (key === \"status\") {\n draft.organization = { id: 0, name: \"\" };\n }\n });\n};\n","import { FormattedHTMLMessage } from \"react-intl\";\n\nimport { useFormSelectChoice } from \"@/components/FormInputs/InputSelect/InputSelectComponent\";\n\nimport { type CollectInfoSteps, VerificationStepsEnum } from \"../../lib/types/runtimeTypes\";\nimport { hasFailedInstantMatch } from \"../../lib/VerificationService/VerificationServiceHelpers\";\nimport { resetRefs } from \"../../lib/refs/refs\";\nimport {\n type VerificationService,\n type FormSelectChoice,\n type Organization,\n type MilitaryPersonalInfoViewModel,\n type ActiveMilitaryPersonalInfoResponse,\n type InactiveMilitaryPersonalInfoResponse,\n type MilitaryStatusResponse,\n type CustomFormFieldConfig,\n type FieldDescription,\n type State,\n type MilitaryStatus,\n} from \"../../lib/types/types\";\nimport { useCollectFieldsEndpoint } from \"../../lib/ServerApi/useCollectFieldsEndpoint\";\nimport { isCountrySelectionNeeded } from \"../FormFields/Country/countryUtils\";\nimport {\n handleEmailOnKeyDown,\n updateFieldValidationErrorsByFieldId,\n updateViewModelOrganization,\n getFieldConfigByFieldId,\n} from \"../../lib/utils/stepComponentHelpers/stepComponentHelpers\";\n\nimport { CountryComponentWrapper } from \"../FormFields/Country/CountryComponentWrapper\";\nimport { PhoneNumberComponent as PhoneNumber } from \"../FormFields/PhoneNumber/PhoneNumberComponent\";\nimport { FirstNameComponent as FirstName } from \"../FormFields/FirstName/FirstNameComponent\";\nimport { LastNameComponent as LastName } from \"../FormFields/LastName/LastNameComponent\";\nimport { EmailComponent as Email } from \"../FormFields/Email/EmailComponent\";\nimport { BirthDateComponent as BirthDate } from \"../FormFields/BirthDate/BirthDateComponent\";\nimport { StatusComponent as MilitaryStatusComponent } from \"../FormFields/Status/StatusComponent\";\nimport { BranchOfServiceComponent as BranchOfService } from \"../FormFields/BranchOfService/BranchOfServiceComponent\";\nimport { DischargeDateComponent as DischargeDate } from \"../FormFields/DischargeDate/DischargeDateComponent\";\nimport { MarketConsentWrapperComponent as MarketConsentWrapper } from \"../FormFields/MarketConsentWrapper/MarketConsentWrapperComponent\";\nimport { ActiveDutyStartDateComponent } from \"../FormFields/ActiveDutyStartDate/ActiveDutyStartDateComponent\";\nimport { AddressComponent } from \"../FormFields/Address/AddressComponent\";\nimport { CityComponent } from \"../FormFields/City/City\";\nimport { StateSelectComponent } from \"../FormFields/State/StateSelectComponent\";\nimport { PostalCodeComponent } from \"../FormFields/PostalCode/PostalCodeComponent\";\nimport { ChangeLocaleV2Component } from \"../FormFields/ChangeLocale/ChangeLocaleComponent\";\nimport { CaptchaComponent } from \"../FormFields/Captcha/CaptchaComponent\";\nimport { PersonalInfoWrapper } from \"../PersonalInfoStepWrapper/PersonalInfoStepWrapper\";\nimport { PersonalInfoStepSubmitButton } from \"../PersonalInfoStepSubmitButton/PersonalInfoStepSubmitButton\";\nimport { PersonalInfoHeader } from \"../FormHeader/StepHeaders/PersonalInfoHeaderComponent\";\nimport { FormFieldCustom } from \"../FormFields/FormFieldCustom/FormFieldCustom\";\nimport { ExtraMessage } from \"../ExtraMessage\";\nimport { getOptions } from \"../../options/options\";\n\nimport { updateMilitaryViewModel } from \"./militaryStepHelpers\";\n\ninterface Props {\n verificationService: VerificationService;\n}\n\nexport default function StepCollectMilitaryPersonalInfoComponent({ verificationService }: Props) {\n const viewModel = verificationService.viewModel as MilitaryPersonalInfoViewModel;\n const { fieldValidationErrors } = verificationService;\n const verificationResponse = verificationService.verificationResponse as\n | ActiveMilitaryPersonalInfoResponse\n | InactiveMilitaryPersonalInfoResponse;\n const failedInstantMatch = hasFailedInstantMatch(verificationResponse);\n\n // Seed: show dischargeDate on first paint when the response indicates an\n // inactive flow, or when the program's transitional validity window applies.\n // The /fields response replaces this once it resolves.\n const showDischargeDateInitially =\n verificationResponse.currentStep ===\n VerificationStepsEnum.collectInactiveMilitaryPersonalInfo ||\n !!verificationService.programTheme.transitionalMilitaryValidityDays;\n const initialRequiredFields: FieldDescription[] = showDischargeDateInitially\n ? [{ key: \"dischargeDate\" }]\n : [];\n\n const {\n availableStatuses: dynamicStatuses,\n isFieldRequired,\n isFieldOptional,\n } = useCollectFieldsEndpoint({\n verificationId: verificationResponse.verificationId,\n currentStep: VerificationStepsEnum.collectMilitaryPersonalInfo,\n viewModel,\n defaultRequiredFields: initialRequiredFields,\n });\n\n const countryChoiceValue = viewModel.countryChoice?.value;\n const needToPickCountry = isCountrySelectionNeeded(\n verificationService.programTheme,\n countryChoiceValue,\n );\n\n const statusOptions = useFormSelectChoice(\n (dynamicStatuses ??\n (verificationResponse as unknown as MilitaryStatusResponse).availableStatuses ??\n (verificationService.previousVerificationResponse as MilitaryStatusResponse)\n ?.availableStatuses) as MilitaryStatus[],\n );\n\n const locale = viewModel.localeChoice.value;\n const options = getOptions();\n\n const showDischargeDate = isFieldRequired(\"dischargeDate\") || isFieldOptional(\"dischargeDate\");\n\n const updateMilitary = (key: keyof MilitaryPersonalInfoViewModel, value: any) => {\n verificationService.updateViewModel(\n updateMilitaryViewModel(key, value, verificationService, statusOptions),\n );\n };\n\n resetRefs();\n\n return (\n <PersonalInfoWrapper\n verificationService={verificationService}\n step={verificationResponse.currentStep}\n className=\"sid-military-personal-info-container\"\n >\n <PersonalInfoHeader\n verificationService={verificationService}\n classNameIdentifier=\"active-military-personal-info\"\n />\n <>\n <ChangeLocaleV2Component verificationService={verificationService} />\n <CountryComponentWrapper\n verificationService={verificationService}\n disabled={getFieldConfigByFieldId(\"country\")?.disabled}\n />\n {statusOptions.length > 0 ? (\n <MilitaryStatusComponent\n segmentId=\"military\"\n value={statusOptions.find((option) => option.value === viewModel.status)}\n isErrored={!!fieldValidationErrors.status}\n errorId=\"invalidMilitaryStatus\"\n options={statusOptions}\n disabled={needToPickCountry || getFieldConfigByFieldId(\"status\")?.disabled}\n explanation={\n needToPickCountry ? (\n <FormattedHTMLMessage id=\"chooseCountry\" defaultMessage=\"Choose a country first\" />\n ) : undefined\n }\n onChange={(status: FormSelectChoice) => {\n updateMilitary(\"status\", status ? (status.value as string) : \"\");\n updateFieldValidationErrorsByFieldId(\n \"status\",\n status ? (status.value as string) : \"\",\n verificationService,\n );\n }}\n />\n ) : null}\n <BranchOfService\n isErrored={!!fieldValidationErrors.organization}\n onChange={(choice: Organization) => {\n updateViewModelOrganization(choice, verificationService);\n updateFieldValidationErrorsByFieldId(\"organization\", choice, verificationService);\n }}\n value={{\n value: viewModel.organization.id,\n label: viewModel.organization.name,\n }}\n verificationService={verificationService}\n disabled={getFieldConfigByFieldId(\"organization\")?.disabled}\n />\n\n <div className=\"sid-names\">\n <FirstName\n value={viewModel.firstName}\n isErrored={!!fieldValidationErrors.firstName}\n disabled={getFieldConfigByFieldId(\"firstName\")?.disabled}\n onChange={(newValue) => {\n updateMilitary(\"firstName\", newValue);\n updateFieldValidationErrorsByFieldId(\"firstName\", newValue, verificationService);\n }}\n />\n <LastName\n value={viewModel.lastName}\n isErrored={!!fieldValidationErrors.lastName}\n disabled={getFieldConfigByFieldId(\"lastName\")?.disabled}\n onChange={(newValue) => {\n updateMilitary(\"lastName\", newValue);\n updateFieldValidationErrorsByFieldId(\"lastName\", newValue, verificationService);\n }}\n />\n </div>\n\n <BirthDate\n errorId={fieldValidationErrors.birthDate}\n locale={locale}\n onChange={(newValue) => {\n updateMilitary(\"birthDate\", newValue);\n updateFieldValidationErrorsByFieldId(\"birthDate\", newValue, verificationService);\n }}\n value={viewModel.birthDate}\n disabled={getFieldConfigByFieldId(\"birthDate\")?.disabled}\n />\n\n {showDischargeDate && (\n <DischargeDate\n mode={\n verificationService.programTheme.transitionalMilitaryValidityDays ? \"date\" : \"month\"\n }\n errorId={fieldValidationErrors.dischargeDate}\n onChange={(newValue) => {\n updateMilitary(\"dischargeDate\", newValue);\n updateFieldValidationErrorsByFieldId(\"dischargeDate\", newValue, verificationService);\n }}\n value={viewModel.dischargeDate}\n locale={locale}\n disabled={getFieldConfigByFieldId(\"dischargeDate\")?.disabled}\n isRequired={isFieldRequired(\"dischargeDate\")}\n />\n )}\n\n {verificationService.programTheme.strictMilitaryValidationEnabled && (\n <ActiveDutyStartDateComponent\n errorId={fieldValidationErrors.activeDutyStartDate}\n locale={locale}\n onChange={(newValue) => {\n updateMilitary(\"activeDutyStartDate\", newValue);\n updateFieldValidationErrorsByFieldId(\n \"activeDutyStartDate\",\n newValue,\n verificationService,\n );\n }}\n value={viewModel.activeDutyStartDate}\n disabled={getFieldConfigByFieldId(\"activeDutyStartDate\")?.disabled}\n isRequired={getFieldConfigByFieldId(\"activeDutyStartDate\")?.requireIfOptional}\n />\n )}\n\n <Email\n value={viewModel.email}\n isErrored={!!fieldValidationErrors.email}\n explanation={\n <FormattedHTMLMessage\n id=\"emailExplanation\"\n defaultMessage=\"Personal email address is recommended\"\n />\n }\n onChange={(newValue) => {\n updateMilitary(\"email\", newValue);\n updateFieldValidationErrorsByFieldId(\"email\", newValue, verificationService);\n }}\n onKeyDown={(event) => handleEmailOnKeyDown(event)}\n disabled={getFieldConfigByFieldId(\"email\")?.disabled}\n />\n\n {verificationService.programTheme.isSmsNotifierConfigured ||\n verificationService.programTheme.smsLoopEnabled ? (\n <PhoneNumber\n isRequired={!!verificationService.programTheme.smsLoopEnabled}\n value={viewModel.phoneNumber}\n isErrored={!!fieldValidationErrors.phoneNumber}\n onChange={(newValue) => {\n updateMilitary(\"phoneNumber\", newValue);\n updateFieldValidationErrorsByFieldId(\"phoneNumber\", newValue, verificationService);\n }}\n selectedCountryCode={viewModel.countryChoice && viewModel.countryChoice.value}\n disabled={getFieldConfigByFieldId(\"phoneNumber\")?.disabled}\n />\n ) : null}\n\n {isFieldOptional(\"address1\") && (\n <AddressComponent\n value={viewModel.address1}\n isErrored={!!fieldValidationErrors.address1}\n errorId={fieldValidationErrors.address1}\n disabled={getFieldConfigByFieldId(\"address1\")?.disabled}\n onChange={(value) => {\n updateMilitary(\"address1\", value);\n updateFieldValidationErrorsByFieldId(\"address1\", value, verificationService);\n }}\n isRequired={getFieldConfigByFieldId(\"address1\")?.requireIfOptional}\n />\n )}\n {isFieldOptional(\"city\") && (\n <CityComponent\n value={viewModel.city}\n isErrored={!!fieldValidationErrors.city}\n errorId={fieldValidationErrors.city}\n disabled={getFieldConfigByFieldId(\"city\")?.disabled}\n onChange={(value) => {\n updateMilitary(\"city\", value);\n updateFieldValidationErrorsByFieldId(\"city\", value, verificationService);\n }}\n isRequired={getFieldConfigByFieldId(\"city\")?.requireIfOptional}\n />\n )}\n {isFieldOptional(\"state\") && (\n <StateSelectComponent\n value={viewModel.state || undefined}\n isErrored={Boolean(fieldValidationErrors.state)}\n onChange={async (stateChoice: FormSelectChoice<State, string>) => {\n const stateValue = stateChoice ? stateChoice.value : undefined;\n updateMilitary(\"state\", stateValue);\n updateFieldValidationErrorsByFieldId(\"state\", stateValue, verificationService);\n }}\n label={<FormattedHTMLMessage id=\"state\" defaultMessage=\"State\" />}\n disabled={getFieldConfigByFieldId(\"state\")?.disabled}\n isRequired={getFieldConfigByFieldId(\"state\")?.requireIfOptional}\n />\n )}\n {isFieldOptional(\"postalCode\") && (\n <PostalCodeComponent\n required={getFieldConfigByFieldId(\"postalCode\")?.requireIfOptional}\n isErrored={!!fieldValidationErrors.postalCode}\n onChange={(newValue) => {\n updateMilitary(\"postalCode\", newValue);\n updateFieldValidationErrorsByFieldId(\"postalCode\", newValue, verificationService);\n }}\n value={viewModel.postalCode}\n disabled={getFieldConfigByFieldId(\"postalCode\")?.disabled}\n />\n )}\n\n {options.customFormFields.map((config: CustomFormFieldConfig) => (\n <FormFieldCustom config={config} verificationService={verificationService} />\n ))}\n\n <MarketConsentWrapper\n verificationService={verificationService}\n isErrored={!!fieldValidationErrors.marketConsentValue}\n onChange={(newValue) => {\n updateMilitary(\"metadata\", {\n ...verificationService.viewModel.metadata,\n marketConsentValue: newValue,\n });\n updateFieldValidationErrorsByFieldId(\n \"marketConsentValue\",\n newValue,\n verificationService,\n );\n }}\n viewModel={viewModel}\n disabled={getFieldConfigByFieldId(\"marketConsentValue\")?.disabled}\n />\n\n <ExtraMessage verificationService={verificationService} suffix=\"CollectAboveSubmit\" />\n\n <CaptchaComponent\n verificationService={verificationService}\n isErrored={!!fieldValidationErrors.captchaToken}\n />\n\n <PersonalInfoStepSubmitButton\n step={verificationResponse.currentStep as CollectInfoSteps}\n verificationService={verificationService}\n viewModel={viewModel}\n failedInstantMatch={failedInstantMatch}\n buttonText={\n <FormattedHTMLMessage\n id=\"step.personalInfo.submitButtonText\"\n defaultMessage=\"Verify My Military Status\"\n />\n }\n />\n </>\n </PersonalInfoWrapper>\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AAQA,IAAa,KACX,GACA,GACA,GACA,MACkC;CAClC,IAAM,IAAY,EAAoB;CACtC,OAAO,EAAQ,IAAY,MAAyC;EAClE,EAAO,KAAe;EAGtB,IAAM,IAAwB,CAAC,QAAQ;EASvC,AARA,EAAM,0BAA0B,EAAM,0BAA0B,CAAC,GAAG,QACjE,MAAO,CAAC,EAAsB,SAAS,CAAE,CAC5C,IAEI,CAAC,KAAqB,EAAkB,WAAW,MACrD,EAAM,uBAAuB,KAAK,QAAQ,GAGxC,MAAQ,aACV,EAAM,eAAe;GAAE,IAAI;GAAG,MAAM;EAAG;CAE3C,CAAC;AACH;AC2BA,SAAwB,EAAyC,EAAE,0BAA8B;CAC/F,IAAM,IAAY,EAAoB,WAChC,EAAE,6BAA0B,GAC5B,IAAuB,EAAoB,sBAG3C,IAAqB,EAAsB,CAAoB,GAS/D,IAHJ,EAAqB,gBACnB,EAAsB,uCACtB,EAAoB,aAAa,mCAEjC,CAAC,EAAE,KAAK,gBAAgB,CAAC,IACzB,CAAC,GAEC,EACJ,mBAAmB,GACnB,oBACA,uBACE,EAAyB;EAC3B,gBAAgB,EAAqB;EACrC,aAAa,EAAsB;EACnC;EACA,uBAAuB;CACzB,CAAC,GAEK,IAAqB,EAAU,eAAe,OAC9C,IAAoB,EACxB,EAAoB,cACpB,CACF,G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BAAA,GAAA,EAAA,KAAC,GAAD;IACuB;IACrB,WAAW,CAAC,CAAC,EAAsB;GACpC,CAAA;GAED,iBAAA,GAAA,EAAA,KAAC,GAAD;IACE,MAAM,EAAqB;IACN;IACV;IACS;IACpB,YACE,iBAAA,GAAA,EAAA,KAAC,GAAD;KACE,IAAG;KACH,gBAAe;IAChB,CAAA;GAEJ,CAAA;EACD,EAAA,CAAA,CACiB;;AAEzB"}
1
+ {"version":3,"file":"StepCollectMilitaryPersonalInfoComponent--ylC8N5Z.js","names":[],"sources":["../../src/components/StepMilitaryPersonalInfo/militaryStepHelpers.ts","../../src/components/StepMilitaryPersonalInfo/StepCollectMilitaryPersonalInfoComponent.tsx"],"sourcesContent":["import produce from \"immer\";\n\nimport {\n type VerificationService,\n type FormSelectChoice,\n type MilitaryPersonalInfoViewModel,\n} from \"../../lib/types/types\";\n\nexport const updateMilitaryViewModel = (\n key: keyof MilitaryPersonalInfoViewModel,\n value: any,\n verificationService: VerificationService,\n availableStatuses: FormSelectChoice[],\n): MilitaryPersonalInfoViewModel => {\n const viewModel = verificationService.viewModel as MilitaryPersonalInfoViewModel;\n return produce(viewModel, (draft: MilitaryPersonalInfoViewModel) => {\n (draft[key] as any) = value;\n\n // Reset military-managed skip flags before reapplying.\n const militaryManagedFields = [\"status\"];\n draft.fieldsToSkipValidation = (draft.fieldsToSkipValidation || []).filter(\n (id) => !militaryManagedFields.includes(id),\n );\n\n if (!availableStatuses || availableStatuses.length === 0) {\n draft.fieldsToSkipValidation.push(\"status\");\n }\n\n if (key === \"status\") {\n draft.organization = { id: 0, name: \"\" };\n }\n });\n};\n","import { FormattedHTMLMessage } from \"react-intl\";\n\nimport { useFormSelectChoice } from \"@/components/FormInputs/InputSelect/InputSelectComponent\";\n\nimport { type CollectInfoSteps, VerificationStepsEnum } from \"../../lib/types/runtimeTypes\";\nimport { hasFailedInstantMatch } from \"../../lib/VerificationService/VerificationServiceHelpers\";\nimport { resetRefs } from \"../../lib/refs/refs\";\nimport {\n type VerificationService,\n type FormSelectChoice,\n type Organization,\n type MilitaryPersonalInfoViewModel,\n type ActiveMilitaryPersonalInfoResponse,\n type InactiveMilitaryPersonalInfoResponse,\n type MilitaryStatusResponse,\n type CustomFormFieldConfig,\n type FieldDescription,\n type State,\n type MilitaryStatus,\n} from \"../../lib/types/types\";\nimport { useCollectFieldsEndpoint } from \"../../lib/ServerApi/useCollectFieldsEndpoint\";\nimport { isCountrySelectionNeeded } from \"../FormFields/Country/countryUtils\";\nimport {\n handleEmailOnKeyDown,\n updateFieldValidationErrorsByFieldId,\n updateViewModelOrganization,\n getFieldConfigByFieldId,\n} from \"../../lib/utils/stepComponentHelpers/stepComponentHelpers\";\n\nimport { CountryComponentWrapper } from \"../FormFields/Country/CountryComponentWrapper\";\nimport { PhoneNumberComponent as PhoneNumber } from \"../FormFields/PhoneNumber/PhoneNumberComponent\";\nimport { FirstNameComponent as FirstName } from \"../FormFields/FirstName/FirstNameComponent\";\nimport { LastNameComponent as LastName } from \"../FormFields/LastName/LastNameComponent\";\nimport { EmailComponent as Email } from \"../FormFields/Email/EmailComponent\";\nimport { BirthDateComponent as BirthDate } from \"../FormFields/BirthDate/BirthDateComponent\";\nimport { StatusComponent as MilitaryStatusComponent } from \"../FormFields/Status/StatusComponent\";\nimport { BranchOfServiceComponent as BranchOfService } from \"../FormFields/BranchOfService/BranchOfServiceComponent\";\nimport { DischargeDateComponent as DischargeDate } from \"../FormFields/DischargeDate/DischargeDateComponent\";\nimport { MarketConsentWrapperComponent as MarketConsentWrapper } from \"../FormFields/MarketConsentWrapper/MarketConsentWrapperComponent\";\nimport { ActiveDutyStartDateComponent } from \"../FormFields/ActiveDutyStartDate/ActiveDutyStartDateComponent\";\nimport { AddressComponent } from \"../FormFields/Address/AddressComponent\";\nimport { CityComponent } from \"../FormFields/City/City\";\nimport { StateSelectComponent } from \"../FormFields/State/StateSelectComponent\";\nimport { PostalCodeComponent } from \"../FormFields/PostalCode/PostalCodeComponent\";\nimport { ChangeLocaleV2Component } from \"../FormFields/ChangeLocale/ChangeLocaleComponent\";\nimport { CaptchaComponent } from \"../FormFields/Captcha/CaptchaComponent\";\nimport { PersonalInfoWrapper } from \"../PersonalInfoStepWrapper/PersonalInfoStepWrapper\";\nimport { PersonalInfoStepSubmitButton } from \"../PersonalInfoStepSubmitButton/PersonalInfoStepSubmitButton\";\nimport { PersonalInfoHeader } from \"../FormHeader/StepHeaders/PersonalInfoHeaderComponent\";\nimport { FormFieldCustom } from \"../FormFields/FormFieldCustom/FormFieldCustom\";\nimport { ExtraMessage } from \"../ExtraMessage\";\nimport { getOptions } from \"../../options/options\";\n\nimport { updateMilitaryViewModel } from \"./militaryStepHelpers\";\n\ninterface Props {\n verificationService: VerificationService;\n}\n\nexport default function StepCollectMilitaryPersonalInfoComponent({ verificationService }: Props) {\n const viewModel = verificationService.viewModel as MilitaryPersonalInfoViewModel;\n const { fieldValidationErrors } = verificationService;\n const verificationResponse = verificationService.verificationResponse as\n | ActiveMilitaryPersonalInfoResponse\n | InactiveMilitaryPersonalInfoResponse;\n const failedInstantMatch = hasFailedInstantMatch(verificationResponse);\n\n // Seed: show dischargeDate on first paint when the response indicates an\n // inactive flow, or when the program's transitional validity window applies.\n // The /fields response replaces this once it resolves.\n const showDischargeDateInitially =\n verificationResponse.currentStep ===\n VerificationStepsEnum.collectInactiveMilitaryPersonalInfo ||\n !!verificationService.programTheme.transitionalMilitaryValidityDays;\n const initialRequiredFields: FieldDescription[] = showDischargeDateInitially\n ? [{ key: \"dischargeDate\" }]\n : [];\n\n const {\n availableStatuses: dynamicStatuses,\n isFieldRequired,\n isFieldOptional,\n } = useCollectFieldsEndpoint({\n verificationId: verificationResponse.verificationId,\n currentStep: VerificationStepsEnum.collectMilitaryPersonalInfo,\n viewModel,\n defaultRequiredFields: initialRequiredFields,\n });\n\n const countryChoiceValue = viewModel.countryChoice?.value;\n const needToPickCountry = isCountrySelectionNeeded(\n verificationService.programTheme,\n countryChoiceValue,\n );\n\n const statusOptions = useFormSelectChoice(\n (dynamicStatuses ??\n (verificationResponse as unknown as MilitaryStatusResponse).availableStatuses ??\n (verificationService.previousVerificationResponse as MilitaryStatusResponse)\n ?.availableStatuses) as MilitaryStatus[],\n );\n\n const locale = viewModel.localeChoice.value;\n const options = getOptions();\n\n const showDischargeDate = isFieldRequired(\"dischargeDate\") || isFieldOptional(\"dischargeDate\");\n\n const updateMilitary = (key: keyof MilitaryPersonalInfoViewModel, value: any) => {\n verificationService.updateViewModel(\n updateMilitaryViewModel(key, value, verificationService, statusOptions),\n );\n };\n\n resetRefs();\n\n return (\n <PersonalInfoWrapper\n verificationService={verificationService}\n step={verificationResponse.currentStep}\n className=\"sid-military-personal-info-container\"\n >\n <PersonalInfoHeader\n verificationService={verificationService}\n classNameIdentifier=\"active-military-personal-info\"\n />\n <>\n <ChangeLocaleV2Component verificationService={verificationService} />\n <CountryComponentWrapper\n verificationService={verificationService}\n disabled={getFieldConfigByFieldId(\"country\")?.disabled}\n />\n {statusOptions.length > 0 ? (\n <MilitaryStatusComponent\n segmentId=\"military\"\n value={statusOptions.find((option) => option.value === viewModel.status)}\n isErrored={!!fieldValidationErrors.status}\n errorId=\"invalidMilitaryStatus\"\n options={statusOptions}\n disabled={needToPickCountry || getFieldConfigByFieldId(\"status\")?.disabled}\n explanation={\n needToPickCountry ? (\n <FormattedHTMLMessage id=\"chooseCountry\" defaultMessage=\"Choose a country first\" />\n ) : undefined\n }\n onChange={(status: FormSelectChoice) => {\n updateMilitary(\"status\", status ? (status.value as string) : \"\");\n updateFieldValidationErrorsByFieldId(\n \"status\",\n status ? (status.value as string) : \"\",\n verificationService,\n );\n }}\n />\n ) : null}\n <BranchOfService\n isErrored={!!fieldValidationErrors.organization}\n onChange={(choice: Organization) => {\n updateViewModelOrganization(choice, verificationService);\n updateFieldValidationErrorsByFieldId(\"organization\", choice, verificationService);\n }}\n value={{\n value: viewModel.organization.id,\n label: viewModel.organization.name,\n }}\n verificationService={verificationService}\n disabled={getFieldConfigByFieldId(\"organization\")?.disabled}\n />\n\n <div className=\"sid-names\">\n <FirstName\n value={viewModel.firstName}\n isErrored={!!fieldValidationErrors.firstName}\n disabled={getFieldConfigByFieldId(\"firstName\")?.disabled}\n onChange={(newValue) => {\n updateMilitary(\"firstName\", newValue);\n updateFieldValidationErrorsByFieldId(\"firstName\", newValue, verificationService);\n }}\n />\n <LastName\n value={viewModel.lastName}\n isErrored={!!fieldValidationErrors.lastName}\n disabled={getFieldConfigByFieldId(\"lastName\")?.disabled}\n onChange={(newValue) => {\n updateMilitary(\"lastName\", newValue);\n updateFieldValidationErrorsByFieldId(\"lastName\", newValue, verificationService);\n }}\n />\n </div>\n\n <BirthDate\n errorId={fieldValidationErrors.birthDate}\n locale={locale}\n onChange={(newValue) => {\n updateMilitary(\"birthDate\", newValue);\n updateFieldValidationErrorsByFieldId(\"birthDate\", newValue, verificationService);\n }}\n value={viewModel.birthDate}\n disabled={getFieldConfigByFieldId(\"birthDate\")?.disabled}\n />\n\n {showDischargeDate && (\n <DischargeDate\n mode={\n verificationService.programTheme.transitionalMilitaryValidityDays ? \"date\" : \"month\"\n }\n errorId={fieldValidationErrors.dischargeDate}\n onChange={(newValue) => {\n updateMilitary(\"dischargeDate\", newValue);\n updateFieldValidationErrorsByFieldId(\"dischargeDate\", newValue, verificationService);\n }}\n value={viewModel.dischargeDate}\n locale={locale}\n disabled={getFieldConfigByFieldId(\"dischargeDate\")?.disabled}\n isRequired={isFieldRequired(\"dischargeDate\")}\n />\n )}\n\n {verificationService.programTheme.strictMilitaryValidationEnabled && (\n <ActiveDutyStartDateComponent\n errorId={fieldValidationErrors.activeDutyStartDate}\n locale={locale}\n onChange={(newValue) => {\n updateMilitary(\"activeDutyStartDate\", newValue);\n updateFieldValidationErrorsByFieldId(\n \"activeDutyStartDate\",\n newValue,\n verificationService,\n );\n }}\n value={viewModel.activeDutyStartDate}\n disabled={getFieldConfigByFieldId(\"activeDutyStartDate\")?.disabled}\n isRequired={getFieldConfigByFieldId(\"activeDutyStartDate\")?.requireIfOptional}\n />\n )}\n\n <Email\n value={viewModel.email}\n isErrored={!!fieldValidationErrors.email}\n explanation={\n <FormattedHTMLMessage\n id=\"emailExplanation\"\n defaultMessage=\"Personal email address is recommended\"\n />\n }\n onChange={(newValue) => {\n updateMilitary(\"email\", newValue);\n updateFieldValidationErrorsByFieldId(\"email\", newValue, verificationService);\n }}\n onKeyDown={(event) => handleEmailOnKeyDown(event)}\n disabled={getFieldConfigByFieldId(\"email\")?.disabled}\n />\n\n {verificationService.programTheme.isSmsNotifierConfigured ||\n verificationService.programTheme.smsLoopEnabled ? (\n <PhoneNumber\n isRequired={!!verificationService.programTheme.smsLoopEnabled}\n value={viewModel.phoneNumber}\n isErrored={!!fieldValidationErrors.phoneNumber}\n onChange={(newValue) => {\n updateMilitary(\"phoneNumber\", newValue);\n updateFieldValidationErrorsByFieldId(\"phoneNumber\", newValue, verificationService);\n }}\n selectedCountryCode={viewModel.countryChoice && viewModel.countryChoice.value}\n disabled={getFieldConfigByFieldId(\"phoneNumber\")?.disabled}\n />\n ) : null}\n\n {isFieldOptional(\"address1\") && (\n <AddressComponent\n value={viewModel.address1}\n isErrored={!!fieldValidationErrors.address1}\n errorId={fieldValidationErrors.address1}\n disabled={getFieldConfigByFieldId(\"address1\")?.disabled}\n onChange={(value) => {\n updateMilitary(\"address1\", value);\n updateFieldValidationErrorsByFieldId(\"address1\", value, verificationService);\n }}\n isRequired={getFieldConfigByFieldId(\"address1\")?.requireIfOptional}\n />\n )}\n {isFieldOptional(\"city\") && (\n <CityComponent\n value={viewModel.city}\n isErrored={!!fieldValidationErrors.city}\n errorId={fieldValidationErrors.city}\n disabled={getFieldConfigByFieldId(\"city\")?.disabled}\n onChange={(value) => {\n updateMilitary(\"city\", value);\n updateFieldValidationErrorsByFieldId(\"city\", value, verificationService);\n }}\n isRequired={getFieldConfigByFieldId(\"city\")?.requireIfOptional}\n />\n )}\n {isFieldOptional(\"state\") && (\n <StateSelectComponent\n value={viewModel.state || undefined}\n isErrored={Boolean(fieldValidationErrors.state)}\n onChange={async (stateChoice: FormSelectChoice<State, string>) => {\n const stateValue = stateChoice ? stateChoice.value : undefined;\n updateMilitary(\"state\", stateValue);\n updateFieldValidationErrorsByFieldId(\"state\", stateValue, verificationService);\n }}\n label={<FormattedHTMLMessage id=\"state\" defaultMessage=\"State\" />}\n disabled={getFieldConfigByFieldId(\"state\")?.disabled}\n isRequired={getFieldConfigByFieldId(\"state\")?.requireIfOptional}\n />\n )}\n {isFieldOptional(\"postalCode\") && (\n <PostalCodeComponent\n required={getFieldConfigByFieldId(\"postalCode\")?.requireIfOptional}\n isErrored={!!fieldValidationErrors.postalCode}\n onChange={(newValue) => {\n updateMilitary(\"postalCode\", newValue);\n updateFieldValidationErrorsByFieldId(\"postalCode\", newValue, verificationService);\n }}\n value={viewModel.postalCode}\n disabled={getFieldConfigByFieldId(\"postalCode\")?.disabled}\n />\n )}\n\n {options.customFormFields.map((config: CustomFormFieldConfig) => (\n <FormFieldCustom config={config} verificationService={verificationService} />\n ))}\n\n <MarketConsentWrapper\n verificationService={verificationService}\n isErrored={!!fieldValidationErrors.marketConsentValue}\n onChange={(newValue) => {\n updateMilitary(\"metadata\", {\n ...verificationService.viewModel.metadata,\n marketConsentValue: newValue,\n });\n updateFieldValidationErrorsByFieldId(\n \"marketConsentValue\",\n newValue,\n verificationService,\n );\n }}\n viewModel={viewModel}\n disabled={getFieldConfigByFieldId(\"marketConsentValue\")?.disabled}\n />\n\n <ExtraMessage verificationService={verificationService} suffix=\"CollectAboveSubmit\" />\n\n <CaptchaComponent\n verificationService={verificationService}\n isErrored={!!fieldValidationErrors.captchaToken}\n />\n\n <PersonalInfoStepSubmitButton\n step={verificationResponse.currentStep as CollectInfoSteps}\n verificationService={verificationService}\n viewModel={viewModel}\n failedInstantMatch={failedInstantMatch}\n buttonText={\n <FormattedHTMLMessage\n id=\"step.personalInfo.submitButtonText\"\n defaultMessage=\"Verify My Military Status\"\n />\n }\n />\n </>\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792172949182
5
- * BUILD_DATE: Fri Oct 16 2026 17:49:09 GMT+0000 (Coordinated Universal Time)
6
- * BUILD_COMMIT: 14bb12a3aac5dfbe3f216ca64aa66bee70d284c3
3
+ * VERSION: 2.306.0
4
+ * BUILD_TIMESTAMP: 1792784358815
5
+ * BUILD_DATE: Fri Oct 23 2026 19:39:18 GMT+0000 (Coordinated Universal Time)
6
+ * BUILD_COMMIT: 051dca165a15b769b71940fd854aaa10b824ca55
7
7
  */
8
- import { c as e, n as t } from "./options-DsRV5fwh.js";
9
- import { n, t as r } from "./jsx-runtime-DQO6A867.js";
8
+ import { c as e, n as t } from "./options-BCFIfBTZ.js";
9
+ import { n, t as r } from "./jsx-runtime-BfITI5pK.js";
10
10
  import { b as i } from "./runtimeTypes-B2AGNJMT.js";
11
- import { h as a } from "./FormFooterComponent-DGcfJdwH.js";
11
+ import { h as a } from "./FormFooterComponent-D0U-oYDf.js";
12
12
  import { a as o } from "./refs-Mq0rtW9K.js";
13
13
  import { n as s } from "../sheerid.js";
14
- import { t as c } from "./useCollectFieldsEndpoint-DODNTDbS.js";
15
- import { d as l, f as u, r as d, t as f } from "./stepComponentHelpers-BElircEH.js";
16
- import { a as p, i as m, n as h, o as g, s as _, t as v } from "./CaptchaComponent-D98si3Jy.js";
17
- import { n as y, t as b } from "./PersonalInfoStepSubmitButton-B3cCavK_.js";
18
- import { i as x } from "./FormSelectChoice-Bv5aMXMd.js";
19
- import { t as S } from "./BirthDateComponent-oQPnVqSa.js";
20
- import { t as C } from "./PostalCodeComponent-FVc2Nso4.js";
21
- import { t as w } from "./CountryComponentWrapper-BTUytS2o.js";
22
- import { t as T } from "./City-7bUXB6DM.js";
23
- import { t as E } from "./AddressComponent-OHgf-_sl.js";
24
- import { t as D } from "./ExtraMessage-C1LGtDyk.js";
25
- import { t as O } from "./ChangeLocaleComponent-CeHqgN6J.js";
26
- import { t as k } from "./PersonalInfoStepWrapper-B58Hl9Sp.js";
27
- import { t as A } from "./countryUtils-CniUDXes.js";
28
- import { t as j } from "./StateSelectComponent-Bl0sEDiJ.js";
29
- import { n as M, r as N, t as P } from "./DischargeDateComponent-Cy1_zOya.js";
30
- import { t as F } from "./StatusComponent-CXUgeCAX.js";
14
+ import { t as c } from "./useCollectFieldsEndpoint-Dy61hji9.js";
15
+ import { d as l, f as u, r as d, t as f } from "./stepComponentHelpers-CD1Gfspm.js";
16
+ import { a as p, i as m, n as h, o as g, s as _, t as v } from "./CaptchaComponent-3YIkG9Wr.js";
17
+ import { n as y, t as b } from "./PersonalInfoStepSubmitButton-6Kg-pZ_I.js";
18
+ import { i as x } from "./FormSelectChoice-2j71fL0j.js";
19
+ import { t as S } from "./BirthDateComponent-DPwL_esM.js";
20
+ import { t as C } from "./PostalCodeComponent-BDLw-xEX.js";
21
+ import { t as w } from "./CountryComponentWrapper-DangmyAi.js";
22
+ import { t as T } from "./City-DWGcObHo.js";
23
+ import { t as E } from "./AddressComponent-CcEzpDGt.js";
24
+ import { t as D } from "./ExtraMessage-BtQiKR6F.js";
25
+ import { t as O } from "./ChangeLocaleComponent-k7OjzNbY.js";
26
+ import { t as k } from "./PersonalInfoStepWrapper-DuKZA7Bm.js";
27
+ import { t as A } from "./countryUtils-ROgCMKtt.js";
28
+ import { t as j } from "./StateSelectComponent-OMXNQVGE.js";
29
+ import { n as M, r as N, t as P } from "./DischargeDateComponent-CS7xH5hw.js";
30
+ import { t as F } from "./StatusComponent-U699Nzbq.js";
31
31
  //#region src/components/StepMilitaryPersonalInfo/militaryStepHelpers.ts
32
32
  var I = (t, n, r, i) => {
33
33
  let a = r.viewModel;
@@ -1 +1 @@
1
- {"version":3,"file":"StepCollectMilitaryPersonalInfoComponent-DfiGcf5I.js","names":[],"sources":["../../src/components/StepMilitaryPersonalInfo/militaryStepHelpers.ts","../../src/components/StepMilitaryPersonalInfo/StepCollectMilitaryPersonalInfoComponent.tsx"],"sourcesContent":["import produce from \"immer\";\n\nimport {\n type VerificationService,\n type FormSelectChoice,\n type MilitaryPersonalInfoViewModel,\n} from \"../../lib/types/types\";\n\nexport const updateMilitaryViewModel = (\n key: keyof MilitaryPersonalInfoViewModel,\n value: any,\n verificationService: VerificationService,\n availableStatuses: FormSelectChoice[],\n): MilitaryPersonalInfoViewModel => {\n const viewModel = verificationService.viewModel as MilitaryPersonalInfoViewModel;\n return produce(viewModel, (draft: MilitaryPersonalInfoViewModel) => {\n (draft[key] as any) = value;\n\n // Reset military-managed skip flags before reapplying.\n const militaryManagedFields = [\"status\"];\n draft.fieldsToSkipValidation = (draft.fieldsToSkipValidation || []).filter(\n (id) => !militaryManagedFields.includes(id),\n );\n\n if (!availableStatuses || availableStatuses.length === 0) {\n draft.fieldsToSkipValidation.push(\"status\");\n }\n\n if (key === \"status\") {\n draft.organization = { id: 0, name: \"\" };\n }\n });\n};\n","import { FormattedHTMLMessage } from \"react-intl\";\n\nimport { useFormSelectChoice } from \"@/components/FormInputs/InputSelect/InputSelectComponent\";\n\nimport { type CollectInfoSteps, VerificationStepsEnum } from \"../../lib/types/runtimeTypes\";\nimport { hasFailedInstantMatch } from \"../../lib/VerificationService/VerificationServiceHelpers\";\nimport { resetRefs } from \"../../lib/refs/refs\";\nimport {\n type VerificationService,\n type FormSelectChoice,\n type Organization,\n type MilitaryPersonalInfoViewModel,\n type ActiveMilitaryPersonalInfoResponse,\n type InactiveMilitaryPersonalInfoResponse,\n type MilitaryStatusResponse,\n type CustomFormFieldConfig,\n type FieldDescription,\n type State,\n type MilitaryStatus,\n} from \"../../lib/types/types\";\nimport { useCollectFieldsEndpoint } from \"../../lib/ServerApi/useCollectFieldsEndpoint\";\nimport { isCountrySelectionNeeded } from \"../FormFields/Country/countryUtils\";\nimport {\n handleEmailOnKeyDown,\n updateFieldValidationErrorsByFieldId,\n updateViewModelOrganization,\n getFieldConfigByFieldId,\n} from \"../../lib/utils/stepComponentHelpers/stepComponentHelpers\";\n\nimport { CountryComponentWrapper } from \"../FormFields/Country/CountryComponentWrapper\";\nimport { PhoneNumberComponent as PhoneNumber } from \"../FormFields/PhoneNumber/PhoneNumberComponent\";\nimport { FirstNameComponent as FirstName } from \"../FormFields/FirstName/FirstNameComponent\";\nimport { LastNameComponent as LastName } from \"../FormFields/LastName/LastNameComponent\";\nimport { EmailComponent as Email } from \"../FormFields/Email/EmailComponent\";\nimport { BirthDateComponent as BirthDate } from \"../FormFields/BirthDate/BirthDateComponent\";\nimport { StatusComponent as MilitaryStatusComponent } from \"../FormFields/Status/StatusComponent\";\nimport { BranchOfServiceComponent as BranchOfService } from \"../FormFields/BranchOfService/BranchOfServiceComponent\";\nimport { DischargeDateComponent as DischargeDate } from \"../FormFields/DischargeDate/DischargeDateComponent\";\nimport { MarketConsentWrapperComponent as MarketConsentWrapper } from \"../FormFields/MarketConsentWrapper/MarketConsentWrapperComponent\";\nimport { ActiveDutyStartDateComponent } from \"../FormFields/ActiveDutyStartDate/ActiveDutyStartDateComponent\";\nimport { AddressComponent } from \"../FormFields/Address/AddressComponent\";\nimport { CityComponent } from \"../FormFields/City/City\";\nimport { StateSelectComponent } from \"../FormFields/State/StateSelectComponent\";\nimport { PostalCodeComponent } from \"../FormFields/PostalCode/PostalCodeComponent\";\nimport { ChangeLocaleV2Component } from \"../FormFields/ChangeLocale/ChangeLocaleComponent\";\nimport { CaptchaComponent } from \"../FormFields/Captcha/CaptchaComponent\";\nimport { PersonalInfoWrapper } from \"../PersonalInfoStepWrapper/PersonalInfoStepWrapper\";\nimport { PersonalInfoStepSubmitButton } from \"../PersonalInfoStepSubmitButton/PersonalInfoStepSubmitButton\";\nimport { PersonalInfoHeader } from \"../FormHeader/StepHeaders/PersonalInfoHeaderComponent\";\nimport { FormFieldCustom } from \"../FormFields/FormFieldCustom/FormFieldCustom\";\nimport { ExtraMessage } from \"../ExtraMessage\";\nimport { getOptions } from \"../../options/options\";\n\nimport { updateMilitaryViewModel } from \"./militaryStepHelpers\";\n\ninterface Props {\n verificationService: VerificationService;\n}\n\nexport default function StepCollectMilitaryPersonalInfoComponent({ verificationService }: Props) {\n const viewModel = verificationService.viewModel as MilitaryPersonalInfoViewModel;\n const { fieldValidationErrors } = verificationService;\n const verificationResponse = verificationService.verificationResponse as\n | ActiveMilitaryPersonalInfoResponse\n | InactiveMilitaryPersonalInfoResponse;\n const failedInstantMatch = hasFailedInstantMatch(verificationResponse);\n\n // Seed: show dischargeDate on first paint when the response indicates an\n // inactive flow, or when the program's transitional validity window applies.\n // The /fields response replaces this once it resolves.\n const showDischargeDateInitially =\n verificationResponse.currentStep ===\n VerificationStepsEnum.collectInactiveMilitaryPersonalInfo ||\n !!verificationService.programTheme.transitionalMilitaryValidityDays;\n const initialRequiredFields: FieldDescription[] = showDischargeDateInitially\n ? [{ key: \"dischargeDate\" }]\n : [];\n\n const {\n availableStatuses: dynamicStatuses,\n isFieldRequired,\n isFieldOptional,\n } = useCollectFieldsEndpoint({\n verificationId: verificationResponse.verificationId,\n currentStep: VerificationStepsEnum.collectMilitaryPersonalInfo,\n viewModel,\n defaultRequiredFields: initialRequiredFields,\n });\n\n const countryChoiceValue = viewModel.countryChoice?.value;\n const needToPickCountry = isCountrySelectionNeeded(\n verificationService.programTheme,\n countryChoiceValue,\n );\n\n const statusOptions = useFormSelectChoice(\n (dynamicStatuses ??\n (verificationResponse as unknown as MilitaryStatusResponse).availableStatuses ??\n (verificationService.previousVerificationResponse as MilitaryStatusResponse)\n ?.availableStatuses) as MilitaryStatus[],\n );\n\n const locale = viewModel.localeChoice.value;\n const options = getOptions();\n\n const showDischargeDate = isFieldRequired(\"dischargeDate\") || isFieldOptional(\"dischargeDate\");\n\n const updateMilitary = (key: keyof MilitaryPersonalInfoViewModel, value: any) => {\n verificationService.updateViewModel(\n updateMilitaryViewModel(key, value, verificationService, statusOptions),\n );\n };\n\n resetRefs();\n\n return (\n <PersonalInfoWrapper\n verificationService={verificationService}\n step={verificationResponse.currentStep}\n className=\"sid-military-personal-info-container\"\n >\n <PersonalInfoHeader\n verificationService={verificationService}\n classNameIdentifier=\"active-military-personal-info\"\n />\n <>\n <ChangeLocaleV2Component verificationService={verificationService} />\n <CountryComponentWrapper\n verificationService={verificationService}\n disabled={getFieldConfigByFieldId(\"country\")?.disabled}\n />\n {statusOptions.length > 0 ? (\n <MilitaryStatusComponent\n segmentId=\"military\"\n value={statusOptions.find((option) => option.value === viewModel.status)}\n isErrored={!!fieldValidationErrors.status}\n errorId=\"invalidMilitaryStatus\"\n options={statusOptions}\n disabled={needToPickCountry || getFieldConfigByFieldId(\"status\")?.disabled}\n explanation={\n needToPickCountry ? (\n <FormattedHTMLMessage id=\"chooseCountry\" defaultMessage=\"Choose a country first\" />\n ) : undefined\n }\n onChange={(status: FormSelectChoice) => {\n updateMilitary(\"status\", status ? (status.value as string) : \"\");\n updateFieldValidationErrorsByFieldId(\n \"status\",\n status ? (status.value as string) : \"\",\n verificationService,\n );\n }}\n />\n ) : null}\n <BranchOfService\n isErrored={!!fieldValidationErrors.organization}\n onChange={(choice: Organization) => {\n updateViewModelOrganization(choice, verificationService);\n updateFieldValidationErrorsByFieldId(\"organization\", choice, verificationService);\n }}\n value={{\n value: viewModel.organization.id,\n label: viewModel.organization.name,\n }}\n verificationService={verificationService}\n disabled={getFieldConfigByFieldId(\"organization\")?.disabled}\n />\n\n <div className=\"sid-names\">\n <FirstName\n value={viewModel.firstName}\n isErrored={!!fieldValidationErrors.firstName}\n disabled={getFieldConfigByFieldId(\"firstName\")?.disabled}\n onChange={(newValue) => {\n updateMilitary(\"firstName\", newValue);\n updateFieldValidationErrorsByFieldId(\"firstName\", newValue, verificationService);\n }}\n />\n <LastName\n value={viewModel.lastName}\n isErrored={!!fieldValidationErrors.lastName}\n disabled={getFieldConfigByFieldId(\"lastName\")?.disabled}\n onChange={(newValue) => {\n updateMilitary(\"lastName\", newValue);\n updateFieldValidationErrorsByFieldId(\"lastName\", newValue, verificationService);\n }}\n />\n </div>\n\n <BirthDate\n errorId={fieldValidationErrors.birthDate}\n locale={locale}\n onChange={(newValue) => {\n updateMilitary(\"birthDate\", newValue);\n updateFieldValidationErrorsByFieldId(\"birthDate\", newValue, verificationService);\n }}\n value={viewModel.birthDate}\n disabled={getFieldConfigByFieldId(\"birthDate\")?.disabled}\n />\n\n {showDischargeDate && (\n <DischargeDate\n mode={\n verificationService.programTheme.transitionalMilitaryValidityDays ? \"date\" : \"month\"\n }\n errorId={fieldValidationErrors.dischargeDate}\n onChange={(newValue) => {\n updateMilitary(\"dischargeDate\", newValue);\n updateFieldValidationErrorsByFieldId(\"dischargeDate\", newValue, verificationService);\n }}\n value={viewModel.dischargeDate}\n locale={locale}\n disabled={getFieldConfigByFieldId(\"dischargeDate\")?.disabled}\n isRequired={isFieldRequired(\"dischargeDate\")}\n />\n )}\n\n {verificationService.programTheme.strictMilitaryValidationEnabled && (\n <ActiveDutyStartDateComponent\n errorId={fieldValidationErrors.activeDutyStartDate}\n locale={locale}\n onChange={(newValue) => {\n updateMilitary(\"activeDutyStartDate\", newValue);\n updateFieldValidationErrorsByFieldId(\n \"activeDutyStartDate\",\n newValue,\n verificationService,\n );\n }}\n value={viewModel.activeDutyStartDate}\n disabled={getFieldConfigByFieldId(\"activeDutyStartDate\")?.disabled}\n isRequired={getFieldConfigByFieldId(\"activeDutyStartDate\")?.requireIfOptional}\n />\n )}\n\n <Email\n value={viewModel.email}\n isErrored={!!fieldValidationErrors.email}\n explanation={\n <FormattedHTMLMessage\n id=\"emailExplanation\"\n defaultMessage=\"Personal email address is recommended\"\n />\n }\n onChange={(newValue) => {\n updateMilitary(\"email\", newValue);\n updateFieldValidationErrorsByFieldId(\"email\", newValue, verificationService);\n }}\n onKeyDown={(event) => handleEmailOnKeyDown(event)}\n disabled={getFieldConfigByFieldId(\"email\")?.disabled}\n />\n\n {verificationService.programTheme.isSmsNotifierConfigured ||\n verificationService.programTheme.smsLoopEnabled ? (\n <PhoneNumber\n isRequired={!!verificationService.programTheme.smsLoopEnabled}\n value={viewModel.phoneNumber}\n isErrored={!!fieldValidationErrors.phoneNumber}\n onChange={(newValue) => {\n updateMilitary(\"phoneNumber\", newValue);\n updateFieldValidationErrorsByFieldId(\"phoneNumber\", newValue, verificationService);\n }}\n selectedCountryCode={viewModel.countryChoice && viewModel.countryChoice.value}\n disabled={getFieldConfigByFieldId(\"phoneNumber\")?.disabled}\n />\n ) : null}\n\n {isFieldOptional(\"address1\") && (\n <AddressComponent\n value={viewModel.address1}\n isErrored={!!fieldValidationErrors.address1}\n errorId={fieldValidationErrors.address1}\n disabled={getFieldConfigByFieldId(\"address1\")?.disabled}\n onChange={(value) => {\n updateMilitary(\"address1\", value);\n updateFieldValidationErrorsByFieldId(\"address1\", value, verificationService);\n }}\n isRequired={getFieldConfigByFieldId(\"address1\")?.requireIfOptional}\n />\n )}\n {isFieldOptional(\"city\") && (\n <CityComponent\n value={viewModel.city}\n isErrored={!!fieldValidationErrors.city}\n errorId={fieldValidationErrors.city}\n disabled={getFieldConfigByFieldId(\"city\")?.disabled}\n onChange={(value) => {\n updateMilitary(\"city\", value);\n updateFieldValidationErrorsByFieldId(\"city\", value, verificationService);\n }}\n isRequired={getFieldConfigByFieldId(\"city\")?.requireIfOptional}\n />\n )}\n {isFieldOptional(\"state\") && (\n <StateSelectComponent\n value={viewModel.state || undefined}\n isErrored={Boolean(fieldValidationErrors.state)}\n onChange={async (stateChoice: FormSelectChoice<State, string>) => {\n const stateValue = stateChoice ? stateChoice.value : undefined;\n updateMilitary(\"state\", stateValue);\n updateFieldValidationErrorsByFieldId(\"state\", stateValue, verificationService);\n }}\n label={<FormattedHTMLMessage id=\"state\" defaultMessage=\"State\" />}\n disabled={getFieldConfigByFieldId(\"state\")?.disabled}\n isRequired={getFieldConfigByFieldId(\"state\")?.requireIfOptional}\n />\n )}\n {isFieldOptional(\"postalCode\") && (\n <PostalCodeComponent\n required={getFieldConfigByFieldId(\"postalCode\")?.requireIfOptional}\n isErrored={!!fieldValidationErrors.postalCode}\n onChange={(newValue) => {\n updateMilitary(\"postalCode\", newValue);\n updateFieldValidationErrorsByFieldId(\"postalCode\", newValue, verificationService);\n }}\n value={viewModel.postalCode}\n disabled={getFieldConfigByFieldId(\"postalCode\")?.disabled}\n />\n )}\n\n {options.customFormFields.map((config: CustomFormFieldConfig) => (\n <FormFieldCustom config={config} verificationService={verificationService} />\n ))}\n\n <MarketConsentWrapper\n verificationService={verificationService}\n isErrored={!!fieldValidationErrors.marketConsentValue}\n onChange={(newValue) => {\n updateMilitary(\"metadata\", {\n ...verificationService.viewModel.metadata,\n marketConsentValue: newValue,\n });\n updateFieldValidationErrorsByFieldId(\n \"marketConsentValue\",\n newValue,\n verificationService,\n );\n }}\n viewModel={viewModel}\n disabled={getFieldConfigByFieldId(\"marketConsentValue\")?.disabled}\n />\n\n <ExtraMessage verificationService={verificationService} suffix=\"CollectAboveSubmit\" />\n\n <CaptchaComponent\n verificationService={verificationService}\n isErrored={!!fieldValidationErrors.captchaToken}\n />\n\n <PersonalInfoStepSubmitButton\n step={verificationResponse.currentStep as CollectInfoSteps}\n verificationService={verificationService}\n viewModel={viewModel}\n failedInstantMatch={failedInstantMatch}\n buttonText={\n <FormattedHTMLMessage\n id=\"step.personalInfo.submitButtonText\"\n defaultMessage=\"Verify My Military Status\"\n />\n }\n />\n </>\n </PersonalInfoWrapper>\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AAQA,IAAa,KACX,GACA,GACA,GACA,MACkC;CAClC,IAAM,IAAY,EAAoB;CACtC,OAAO,EAAQ,IAAY,MAAyC;EAClE,EAAO,KAAe;EAGtB,IAAM,IAAwB,CAAC,QAAQ;EASvC,AARA,EAAM,0BAA0B,EAAM,0BAA0B,CAAC,GAAG,QACjE,MAAO,CAAC,EAAsB,SAAS,CAAE,CAC5C,IAEI,CAAC,KAAqB,EAAkB,WAAW,MACrD,EAAM,uBAAuB,KAAK,QAAQ,GAGxC,MAAQ,aACV,EAAM,eAAe;GAAE,IAAI;GAAG,MAAM;EAAG;CAE3C,CAAC;AACH;AC2BA,SAAwB,EAAyC,EAAE,0BAA8B;CAC/F,IAAM,IAAY,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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"}
1
+ {"version":3,"file":"StepCollectMilitaryPersonalInfoComponent-D-xxPyNf.js","names":[],"sources":["../../src/components/StepMilitaryPersonalInfo/militaryStepHelpers.ts","../../src/components/StepMilitaryPersonalInfo/StepCollectMilitaryPersonalInfoComponent.tsx"],"sourcesContent":["import produce from \"immer\";\n\nimport {\n type VerificationService,\n type FormSelectChoice,\n type MilitaryPersonalInfoViewModel,\n} from \"../../lib/types/types\";\n\nexport const updateMilitaryViewModel = (\n key: keyof MilitaryPersonalInfoViewModel,\n value: any,\n verificationService: VerificationService,\n availableStatuses: FormSelectChoice[],\n): MilitaryPersonalInfoViewModel => {\n const viewModel = verificationService.viewModel as MilitaryPersonalInfoViewModel;\n return produce(viewModel, (draft: MilitaryPersonalInfoViewModel) => {\n (draft[key] as any) = value;\n\n // Reset military-managed skip flags before reapplying.\n const militaryManagedFields = [\"status\"];\n draft.fieldsToSkipValidation = (draft.fieldsToSkipValidation || []).filter(\n (id) => !militaryManagedFields.includes(id),\n );\n\n if (!availableStatuses || availableStatuses.length === 0) {\n draft.fieldsToSkipValidation.push(\"status\");\n }\n\n if (key === \"status\") {\n draft.organization = { id: 0, name: \"\" };\n }\n });\n};\n","import { FormattedHTMLMessage } from \"react-intl\";\n\nimport { useFormSelectChoice } from \"@/components/FormInputs/InputSelect/InputSelectComponent\";\n\nimport { type CollectInfoSteps, VerificationStepsEnum } from \"../../lib/types/runtimeTypes\";\nimport { hasFailedInstantMatch } from \"../../lib/VerificationService/VerificationServiceHelpers\";\nimport { resetRefs } from \"../../lib/refs/refs\";\nimport {\n type VerificationService,\n type FormSelectChoice,\n type Organization,\n type MilitaryPersonalInfoViewModel,\n type ActiveMilitaryPersonalInfoResponse,\n type InactiveMilitaryPersonalInfoResponse,\n type MilitaryStatusResponse,\n type CustomFormFieldConfig,\n type FieldDescription,\n type State,\n type MilitaryStatus,\n} from \"../../lib/types/types\";\nimport { useCollectFieldsEndpoint } from \"../../lib/ServerApi/useCollectFieldsEndpoint\";\nimport { isCountrySelectionNeeded } from \"../FormFields/Country/countryUtils\";\nimport {\n handleEmailOnKeyDown,\n updateFieldValidationErrorsByFieldId,\n updateViewModelOrganization,\n getFieldConfigByFieldId,\n} from \"../../lib/utils/stepComponentHelpers/stepComponentHelpers\";\n\nimport { CountryComponentWrapper } from \"../FormFields/Country/CountryComponentWrapper\";\nimport { PhoneNumberComponent as PhoneNumber } from \"../FormFields/PhoneNumber/PhoneNumberComponent\";\nimport { FirstNameComponent as FirstName } from \"../FormFields/FirstName/FirstNameComponent\";\nimport { LastNameComponent as LastName } from \"../FormFields/LastName/LastNameComponent\";\nimport { EmailComponent as Email } from \"../FormFields/Email/EmailComponent\";\nimport { BirthDateComponent as BirthDate } from \"../FormFields/BirthDate/BirthDateComponent\";\nimport { StatusComponent as MilitaryStatusComponent } from \"../FormFields/Status/StatusComponent\";\nimport { BranchOfServiceComponent as BranchOfService } from \"../FormFields/BranchOfService/BranchOfServiceComponent\";\nimport { DischargeDateComponent as DischargeDate } from \"../FormFields/DischargeDate/DischargeDateComponent\";\nimport { MarketConsentWrapperComponent as MarketConsentWrapper } from \"../FormFields/MarketConsentWrapper/MarketConsentWrapperComponent\";\nimport { ActiveDutyStartDateComponent } from \"../FormFields/ActiveDutyStartDate/ActiveDutyStartDateComponent\";\nimport { AddressComponent } from \"../FormFields/Address/AddressComponent\";\nimport { CityComponent } from \"../FormFields/City/City\";\nimport { StateSelectComponent } from \"../FormFields/State/StateSelectComponent\";\nimport { PostalCodeComponent } from \"../FormFields/PostalCode/PostalCodeComponent\";\nimport { ChangeLocaleV2Component } from \"../FormFields/ChangeLocale/ChangeLocaleComponent\";\nimport { CaptchaComponent } from \"../FormFields/Captcha/CaptchaComponent\";\nimport { PersonalInfoWrapper } from \"../PersonalInfoStepWrapper/PersonalInfoStepWrapper\";\nimport { PersonalInfoStepSubmitButton } from \"../PersonalInfoStepSubmitButton/PersonalInfoStepSubmitButton\";\nimport { PersonalInfoHeader } from \"../FormHeader/StepHeaders/PersonalInfoHeaderComponent\";\nimport { FormFieldCustom } from \"../FormFields/FormFieldCustom/FormFieldCustom\";\nimport { ExtraMessage } from \"../ExtraMessage\";\nimport { getOptions } from \"../../options/options\";\n\nimport { updateMilitaryViewModel } from \"./militaryStepHelpers\";\n\ninterface Props {\n verificationService: VerificationService;\n}\n\nexport default function StepCollectMilitaryPersonalInfoComponent({ verificationService }: Props) {\n const viewModel = verificationService.viewModel as MilitaryPersonalInfoViewModel;\n const { fieldValidationErrors } = verificationService;\n const verificationResponse = verificationService.verificationResponse as\n | ActiveMilitaryPersonalInfoResponse\n | InactiveMilitaryPersonalInfoResponse;\n const failedInstantMatch = hasFailedInstantMatch(verificationResponse);\n\n // Seed: show dischargeDate on first paint when the response indicates an\n // inactive flow, or when the program's transitional validity window applies.\n // The /fields response replaces this once it resolves.\n const showDischargeDateInitially =\n verificationResponse.currentStep ===\n VerificationStepsEnum.collectInactiveMilitaryPersonalInfo ||\n !!verificationService.programTheme.transitionalMilitaryValidityDays;\n const initialRequiredFields: FieldDescription[] = showDischargeDateInitially\n ? [{ key: \"dischargeDate\" }]\n : [];\n\n const {\n availableStatuses: dynamicStatuses,\n isFieldRequired,\n isFieldOptional,\n } = useCollectFieldsEndpoint({\n verificationId: verificationResponse.verificationId,\n currentStep: VerificationStepsEnum.collectMilitaryPersonalInfo,\n viewModel,\n defaultRequiredFields: initialRequiredFields,\n });\n\n const countryChoiceValue = viewModel.countryChoice?.value;\n const needToPickCountry = isCountrySelectionNeeded(\n verificationService.programTheme,\n countryChoiceValue,\n );\n\n const statusOptions = useFormSelectChoice(\n (dynamicStatuses ??\n (verificationResponse as unknown as MilitaryStatusResponse).availableStatuses ??\n (verificationService.previousVerificationResponse as MilitaryStatusResponse)\n ?.availableStatuses) as MilitaryStatus[],\n );\n\n const locale = viewModel.localeChoice.value;\n const options = getOptions();\n\n const showDischargeDate = isFieldRequired(\"dischargeDate\") || isFieldOptional(\"dischargeDate\");\n\n const updateMilitary = (key: keyof MilitaryPersonalInfoViewModel, value: any) => {\n verificationService.updateViewModel(\n updateMilitaryViewModel(key, value, verificationService, statusOptions),\n );\n };\n\n resetRefs();\n\n return (\n <PersonalInfoWrapper\n verificationService={verificationService}\n step={verificationResponse.currentStep}\n className=\"sid-military-personal-info-container\"\n >\n <PersonalInfoHeader\n verificationService={verificationService}\n classNameIdentifier=\"active-military-personal-info\"\n />\n <>\n <ChangeLocaleV2Component verificationService={verificationService} />\n <CountryComponentWrapper\n verificationService={verificationService}\n disabled={getFieldConfigByFieldId(\"country\")?.disabled}\n />\n {statusOptions.length > 0 ? (\n <MilitaryStatusComponent\n segmentId=\"military\"\n value={statusOptions.find((option) => option.value === viewModel.status)}\n isErrored={!!fieldValidationErrors.status}\n errorId=\"invalidMilitaryStatus\"\n options={statusOptions}\n disabled={needToPickCountry || getFieldConfigByFieldId(\"status\")?.disabled}\n explanation={\n needToPickCountry ? (\n <FormattedHTMLMessage id=\"chooseCountry\" defaultMessage=\"Choose a country first\" />\n ) : undefined\n }\n onChange={(status: FormSelectChoice) => {\n updateMilitary(\"status\", status ? (status.value as string) : \"\");\n updateFieldValidationErrorsByFieldId(\n \"status\",\n status ? (status.value as string) : \"\",\n verificationService,\n );\n }}\n />\n ) : null}\n <BranchOfService\n isErrored={!!fieldValidationErrors.organization}\n onChange={(choice: Organization) => {\n updateViewModelOrganization(choice, verificationService);\n updateFieldValidationErrorsByFieldId(\"organization\", choice, verificationService);\n }}\n value={{\n value: viewModel.organization.id,\n label: viewModel.organization.name,\n }}\n verificationService={verificationService}\n disabled={getFieldConfigByFieldId(\"organization\")?.disabled}\n />\n\n <div className=\"sid-names\">\n <FirstName\n value={viewModel.firstName}\n isErrored={!!fieldValidationErrors.firstName}\n disabled={getFieldConfigByFieldId(\"firstName\")?.disabled}\n onChange={(newValue) => {\n updateMilitary(\"firstName\", newValue);\n updateFieldValidationErrorsByFieldId(\"firstName\", newValue, verificationService);\n }}\n />\n <LastName\n value={viewModel.lastName}\n isErrored={!!fieldValidationErrors.lastName}\n disabled={getFieldConfigByFieldId(\"lastName\")?.disabled}\n onChange={(newValue) => {\n updateMilitary(\"lastName\", newValue);\n updateFieldValidationErrorsByFieldId(\"lastName\", newValue, verificationService);\n }}\n />\n </div>\n\n <BirthDate\n errorId={fieldValidationErrors.birthDate}\n locale={locale}\n onChange={(newValue) => {\n updateMilitary(\"birthDate\", newValue);\n updateFieldValidationErrorsByFieldId(\"birthDate\", newValue, verificationService);\n }}\n value={viewModel.birthDate}\n disabled={getFieldConfigByFieldId(\"birthDate\")?.disabled}\n />\n\n {showDischargeDate && (\n <DischargeDate\n mode={\n verificationService.programTheme.transitionalMilitaryValidityDays ? \"date\" : \"month\"\n }\n errorId={fieldValidationErrors.dischargeDate}\n onChange={(newValue) => {\n updateMilitary(\"dischargeDate\", newValue);\n updateFieldValidationErrorsByFieldId(\"dischargeDate\", newValue, verificationService);\n }}\n value={viewModel.dischargeDate}\n locale={locale}\n disabled={getFieldConfigByFieldId(\"dischargeDate\")?.disabled}\n isRequired={isFieldRequired(\"dischargeDate\")}\n />\n )}\n\n {verificationService.programTheme.strictMilitaryValidationEnabled && (\n <ActiveDutyStartDateComponent\n errorId={fieldValidationErrors.activeDutyStartDate}\n locale={locale}\n onChange={(newValue) => {\n updateMilitary(\"activeDutyStartDate\", newValue);\n updateFieldValidationErrorsByFieldId(\n \"activeDutyStartDate\",\n newValue,\n verificationService,\n );\n }}\n value={viewModel.activeDutyStartDate}\n disabled={getFieldConfigByFieldId(\"activeDutyStartDate\")?.disabled}\n isRequired={getFieldConfigByFieldId(\"activeDutyStartDate\")?.requireIfOptional}\n />\n )}\n\n <Email\n value={viewModel.email}\n isErrored={!!fieldValidationErrors.email}\n explanation={\n <FormattedHTMLMessage\n id=\"emailExplanation\"\n defaultMessage=\"Personal email address is recommended\"\n />\n }\n onChange={(newValue) => {\n updateMilitary(\"email\", newValue);\n updateFieldValidationErrorsByFieldId(\"email\", newValue, verificationService);\n }}\n onKeyDown={(event) => handleEmailOnKeyDown(event)}\n disabled={getFieldConfigByFieldId(\"email\")?.disabled}\n />\n\n {verificationService.programTheme.isSmsNotifierConfigured ||\n verificationService.programTheme.smsLoopEnabled ? (\n <PhoneNumber\n isRequired={!!verificationService.programTheme.smsLoopEnabled}\n value={viewModel.phoneNumber}\n isErrored={!!fieldValidationErrors.phoneNumber}\n onChange={(newValue) => {\n updateMilitary(\"phoneNumber\", newValue);\n updateFieldValidationErrorsByFieldId(\"phoneNumber\", newValue, verificationService);\n }}\n selectedCountryCode={viewModel.countryChoice && viewModel.countryChoice.value}\n disabled={getFieldConfigByFieldId(\"phoneNumber\")?.disabled}\n />\n ) : null}\n\n {isFieldOptional(\"address1\") && (\n <AddressComponent\n value={viewModel.address1}\n isErrored={!!fieldValidationErrors.address1}\n errorId={fieldValidationErrors.address1}\n disabled={getFieldConfigByFieldId(\"address1\")?.disabled}\n onChange={(value) => {\n updateMilitary(\"address1\", value);\n updateFieldValidationErrorsByFieldId(\"address1\", value, verificationService);\n }}\n isRequired={getFieldConfigByFieldId(\"address1\")?.requireIfOptional}\n />\n )}\n {isFieldOptional(\"city\") && (\n <CityComponent\n value={viewModel.city}\n isErrored={!!fieldValidationErrors.city}\n errorId={fieldValidationErrors.city}\n disabled={getFieldConfigByFieldId(\"city\")?.disabled}\n onChange={(value) => {\n updateMilitary(\"city\", value);\n updateFieldValidationErrorsByFieldId(\"city\", value, verificationService);\n }}\n isRequired={getFieldConfigByFieldId(\"city\")?.requireIfOptional}\n />\n )}\n {isFieldOptional(\"state\") && (\n <StateSelectComponent\n value={viewModel.state || undefined}\n isErrored={Boolean(fieldValidationErrors.state)}\n onChange={async (stateChoice: FormSelectChoice<State, string>) => {\n const stateValue = stateChoice ? stateChoice.value : undefined;\n updateMilitary(\"state\", stateValue);\n updateFieldValidationErrorsByFieldId(\"state\", stateValue, verificationService);\n }}\n label={<FormattedHTMLMessage id=\"state\" defaultMessage=\"State\" />}\n disabled={getFieldConfigByFieldId(\"state\")?.disabled}\n isRequired={getFieldConfigByFieldId(\"state\")?.requireIfOptional}\n />\n )}\n {isFieldOptional(\"postalCode\") && (\n <PostalCodeComponent\n required={getFieldConfigByFieldId(\"postalCode\")?.requireIfOptional}\n isErrored={!!fieldValidationErrors.postalCode}\n onChange={(newValue) => {\n updateMilitary(\"postalCode\", newValue);\n updateFieldValidationErrorsByFieldId(\"postalCode\", newValue, verificationService);\n }}\n value={viewModel.postalCode}\n disabled={getFieldConfigByFieldId(\"postalCode\")?.disabled}\n />\n )}\n\n {options.customFormFields.map((config: CustomFormFieldConfig) => (\n <FormFieldCustom config={config} verificationService={verificationService} />\n ))}\n\n <MarketConsentWrapper\n verificationService={verificationService}\n isErrored={!!fieldValidationErrors.marketConsentValue}\n onChange={(newValue) => {\n updateMilitary(\"metadata\", {\n ...verificationService.viewModel.metadata,\n marketConsentValue: newValue,\n });\n updateFieldValidationErrorsByFieldId(\n \"marketConsentValue\",\n newValue,\n verificationService,\n );\n }}\n viewModel={viewModel}\n disabled={getFieldConfigByFieldId(\"marketConsentValue\")?.disabled}\n />\n\n <ExtraMessage verificationService={verificationService} suffix=\"CollectAboveSubmit\" />\n\n <CaptchaComponent\n verificationService={verificationService}\n isErrored={!!fieldValidationErrors.captchaToken}\n />\n\n <PersonalInfoStepSubmitButton\n step={verificationResponse.currentStep as CollectInfoSteps}\n verificationService={verificationService}\n viewModel={viewModel}\n failedInstantMatch={failedInstantMatch}\n buttonText={\n <FormattedHTMLMessage\n id=\"step.personalInfo.submitButtonText\"\n defaultMessage=\"Verify My Military Status\"\n />\n }\n />\n </>\n </PersonalInfoWrapper>\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AAQA,IAAa,KACX,GACA,GACA,GACA,MACkC;CAClC,IAAM,IAAY,EAAoB;CACtC,OAAO,EAAQ,IAAY,MAAyC;EAClE,EAAO,KAAe;EAGtB,IAAM,IAAwB,CAAC,QAAQ;EASvC,AARA,EAAM,0BAA0B,EAAM,0BAA0B,CAAC,GAAG,QACjE,MAAO,CAAC,EAAsB,SAAS,CAAE,CAC5C,IAEI,CAAC,KAAqB,EAAkB,WAAW,MACrD,EAAM,uBAAuB,KAAK,QAAQ,GAGxC,MAAQ,aACV,EAAM,eAAe;GAAE,IAAI;GAAG,MAAM;EAAG;CAE3C,CAAC;AACH;AC2BA,SAAwB,EAAyC,EAAE,0BAA8B;CAC/F,IAAM,IAAY,EAAoB,WAChC,EAAE,6BAA0B,GAC5B,IAAuB,EAAoB,sBAG3C,IAAqB,EAAsB,CAAoB,GAS/D,IAHJ,EAAqB,gBACnB,EAAsB,uCACtB,EAAoB,aAAa,mCAEjC,CAAC,EAAE,KAAK,gBAAgB,CAAC,IACzB,CAAC,GAEC,EACJ,mBAAmB,GACnB,oBACA,uBACE,EAAyB;EAC3B,gBAAgB,EAAqB;EACrC,aAAa,EAAsB;EACnC;EACA,uBAAuB;CACzB,CAAC,GAEK,IAAqB,EAAU,eAAe,OAC9C,IAAoB,EACx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