@sheerid/jslib 2.314.0 → 2.315.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 (347) hide show
  1. package/_mysheerid-preview.css +3 -3
  2. package/_mysheerid-preview.js +36 -36
  3. package/chunk/{AddressComponent-BhsB0ubP.js → AddressComponent-BUOibRxr.js} +4 -4
  4. package/chunk/{AddressComponent-BhsB0ubP.js.map → AddressComponent-BUOibRxr.js.map} +1 -1
  5. package/chunk/{AddressComponent-DT1QSw8o.js → AddressComponent-uhBMgV3q.js} +4 -4
  6. package/chunk/{AddressComponent-DT1QSw8o.js.map → AddressComponent-uhBMgV3q.js.map} +1 -1
  7. package/chunk/AnnouncingHeader-CM01vEpF.js +3 -3
  8. package/chunk/AnnouncingHeader-CSh0UW8I.js +3 -3
  9. package/chunk/{BirthDateComponent-BPaAXZlv.js → BirthDateComponent-DEm62ubJ.js} +4 -4
  10. package/chunk/{BirthDateComponent-B3mQalKa.js.map → BirthDateComponent-DEm62ubJ.js.map} +1 -1
  11. package/chunk/{BirthDateComponent-B3mQalKa.js → BirthDateComponent-i59ScGu6.js} +4 -4
  12. package/chunk/{BirthDateComponent-BPaAXZlv.js.map → BirthDateComponent-i59ScGu6.js.map} +1 -1
  13. package/chunk/{CaptchaComponent-Nm59DuJO.js → CaptchaComponent-BD4yKfJR.js} +7 -7
  14. package/chunk/{CaptchaComponent-Nm59DuJO.js.map → CaptchaComponent-BD4yKfJR.js.map} +1 -1
  15. package/chunk/{CaptchaComponent-B-0n8Sgc.js → CaptchaComponent-g9Ye-t7Z.js} +7 -7
  16. package/chunk/{CaptchaComponent-B-0n8Sgc.js.map → CaptchaComponent-g9Ye-t7Z.js.map} +1 -1
  17. package/chunk/{ChangeLocaleComponent-2ItMdEpd.js → ChangeLocaleComponent-DBoMb2NA.js} +7 -7
  18. package/chunk/{ChangeLocaleComponent-2ItMdEpd.js.map → ChangeLocaleComponent-DBoMb2NA.js.map} +1 -1
  19. package/chunk/{ChangeLocaleComponent-B47RYyd8.js → ChangeLocaleComponent-Drpt_vzW.js} +7 -7
  20. package/chunk/{ChangeLocaleComponent-B47RYyd8.js.map → ChangeLocaleComponent-Drpt_vzW.js.map} +1 -1
  21. package/chunk/{City-Dx5l48so.js → City-IKHXV6fA.js} +4 -4
  22. package/chunk/{City-BZP2jWJC.js.map → City-IKHXV6fA.js.map} +1 -1
  23. package/chunk/{City-BZP2jWJC.js → City-gBRdOIsP.js} +4 -4
  24. package/chunk/{City-Dx5l48so.js.map → City-gBRdOIsP.js.map} +1 -1
  25. package/chunk/{CollegeNameComponent-DF_dcHnu.js → CollegeNameComponent-CQvKnECH.js} +7 -7
  26. package/chunk/{CollegeNameComponent-DF_dcHnu.js.map → CollegeNameComponent-CQvKnECH.js.map} +1 -1
  27. package/chunk/{CollegeNameComponent-f6_gBtpS.js → CollegeNameComponent-DpMt-iEi.js} +7 -7
  28. package/chunk/{CollegeNameComponent-f6_gBtpS.js.map → CollegeNameComponent-DpMt-iEi.js.map} +1 -1
  29. package/chunk/CopyToClipboardComponent-BN9qCovT.js +3 -3
  30. package/chunk/CopyToClipboardComponent-Dag4rxf8.js +3 -3
  31. package/chunk/{CountryComponentWrapper-CDJl-HHu.js → CountryComponentWrapper-A-NCx760.js} +7 -7
  32. package/chunk/{CountryComponentWrapper-CDJl-HHu.js.map → CountryComponentWrapper-A-NCx760.js.map} +1 -1
  33. package/chunk/{CountryComponentWrapper-CPH7Q2C9.js → CountryComponentWrapper-DHUcGCUF.js} +7 -7
  34. package/chunk/{CountryComponentWrapper-CPH7Q2C9.js.map → CountryComponentWrapper-DHUcGCUF.js.map} +1 -1
  35. package/chunk/{DischargeDateComponent-DfiBSI4n.js → DischargeDateComponent-CifKJfBT.js} +8 -8
  36. package/chunk/{DischargeDateComponent-DfiBSI4n.js.map → DischargeDateComponent-CifKJfBT.js.map} +1 -1
  37. package/chunk/{DischargeDateComponent-Cx5GtJC0.js → DischargeDateComponent-DAeyxPdd.js} +8 -8
  38. package/chunk/{DischargeDateComponent-Cx5GtJC0.js.map → DischargeDateComponent-DAeyxPdd.js.map} +1 -1
  39. package/chunk/{DriverLicenseNumberComponent-D9eHyRtn.js → DriverLicenseNumberComponent-4I1cN8DR.js} +4 -4
  40. package/chunk/{DriverLicenseNumberComponent-D9eHyRtn.js.map → DriverLicenseNumberComponent-4I1cN8DR.js.map} +1 -1
  41. package/chunk/{DriverLicenseNumberComponent-DqGt7_Ww.js → DriverLicenseNumberComponent-ej0LVqRI.js} +4 -4
  42. package/chunk/{DriverLicenseNumberComponent-DqGt7_Ww.js.map → DriverLicenseNumberComponent-ej0LVqRI.js.map} +1 -1
  43. package/chunk/{EmailLoopPending-mlaNRUD9.js → EmailLoopPending-DQ4KVVzP.js} +5 -5
  44. package/chunk/{EmailLoopPending-mlaNRUD9.js.map → EmailLoopPending-DQ4KVVzP.js.map} +1 -1
  45. package/chunk/{EmailLoopPending-D67NiV5x.js → EmailLoopPending-DnPlbLqA.js} +5 -5
  46. package/chunk/{EmailLoopPending-D67NiV5x.js.map → EmailLoopPending-DnPlbLqA.js.map} +1 -1
  47. package/chunk/{ExtraMessage-DpGDn2nE.js → ExtraMessage-CzchllLx.js} +4 -4
  48. package/chunk/{ExtraMessage-DpGDn2nE.js.map → ExtraMessage-CzchllLx.js.map} +1 -1
  49. package/chunk/{ExtraMessage-G5N0ZMea.js → ExtraMessage-v4rZ0l8r.js} +4 -4
  50. package/chunk/{ExtraMessage-G5N0ZMea.js.map → ExtraMessage-v4rZ0l8r.js.map} +1 -1
  51. package/chunk/{FirstResponderOrganizationComponent-BLgIjTUq.js → FirstResponderOrganizationComponent-DUn8PxZo.js} +7 -7
  52. package/chunk/{FirstResponderOrganizationComponent-BLgIjTUq.js.map → FirstResponderOrganizationComponent-DUn8PxZo.js.map} +1 -1
  53. package/chunk/{FirstResponderOrganizationComponent-exaiDKTT.js → FirstResponderOrganizationComponent-JsNBGiPH.js} +7 -7
  54. package/chunk/{FirstResponderOrganizationComponent-exaiDKTT.js.map → FirstResponderOrganizationComponent-JsNBGiPH.js.map} +1 -1
  55. package/chunk/{FormFieldInputSelect-D6tAkFNC.js → FormFieldInputSelect-CtLIp6NY.js} +4 -4
  56. package/chunk/{FormFieldInputSelect-BSKPqpm_.js.map → FormFieldInputSelect-CtLIp6NY.js.map} +1 -1
  57. package/chunk/{FormFieldInputSelect-BSKPqpm_.js → FormFieldInputSelect-DzfYVFe2.js} +4 -4
  58. package/chunk/{FormFieldInputSelect-D6tAkFNC.js.map → FormFieldInputSelect-DzfYVFe2.js.map} +1 -1
  59. package/chunk/FormFieldLayout-KJilu-sR.js +3 -3
  60. package/chunk/FormFieldLayout-UCIBwDRH.js +3 -3
  61. package/chunk/FormFieldText-B_2IOFED.js +3 -3
  62. package/chunk/FormFieldText-CkPmuIPf.js +3 -3
  63. package/chunk/{FormFieldTypeahead-Bz3TMnYw.js → FormFieldTypeahead-BQGJX1il.js} +7 -7
  64. package/chunk/{FormFieldTypeahead-Bz3TMnYw.js.map → FormFieldTypeahead-BQGJX1il.js.map} +1 -1
  65. package/chunk/{FormFieldTypeahead-BRaA3hcO.js → FormFieldTypeahead-BjsW2DUM.js} +7 -7
  66. package/chunk/{FormFieldTypeahead-BRaA3hcO.js.map → FormFieldTypeahead-BjsW2DUM.js.map} +1 -1
  67. package/chunk/{FormFooterComponent-CVXgmWQR.js → FormFooterComponent-B7fUP0wx.js} +7 -7
  68. package/chunk/{FormFooterComponent-CVXgmWQR.js.map → FormFooterComponent-B7fUP0wx.js.map} +1 -1
  69. package/chunk/{FormFooterComponent-B4IrNZhK.js → FormFooterComponent-BTfz7YAX.js} +7 -7
  70. package/chunk/{FormFooterComponent-B4IrNZhK.js.map → FormFooterComponent-BTfz7YAX.js.map} +1 -1
  71. package/chunk/{FormSelectChoice-CIB7HacQ.js → FormSelectChoice-DGDSioEg.js} +5 -5
  72. package/chunk/{FormSelectChoice-CIB7HacQ.js.map → FormSelectChoice-DGDSioEg.js.map} +1 -1
  73. package/chunk/{FormSelectChoice-CbcfEHuQ.js → FormSelectChoice-DN3XV8go.js} +5 -5
  74. package/chunk/{FormSelectChoice-CbcfEHuQ.js.map → FormSelectChoice-DN3XV8go.js.map} +1 -1
  75. package/chunk/InputText-Bvj815Th.js +3 -3
  76. package/chunk/InputText-C2qEtF0t.js +3 -3
  77. package/chunk/{LicensedProfessionalOrganizationComponent-Dmo9gg0v.js → LicensedProfessionalOrganizationComponent-C43VAUdy.js} +7 -7
  78. package/chunk/{LicensedProfessionalOrganizationComponent-Dmo9gg0v.js.map → LicensedProfessionalOrganizationComponent-C43VAUdy.js.map} +1 -1
  79. package/chunk/{LicensedProfessionalOrganizationComponent-3wnxm1gl.js → LicensedProfessionalOrganizationComponent-DEwASktt.js} +7 -7
  80. package/chunk/{LicensedProfessionalOrganizationComponent-3wnxm1gl.js.map → LicensedProfessionalOrganizationComponent-DEwASktt.js.map} +1 -1
  81. package/chunk/{LogoComponent-B4tFzxvs.js → LogoComponent-BoEYsksW.js} +4 -4
  82. package/chunk/{LogoComponent-B4tFzxvs.js.map → LogoComponent-BoEYsksW.js.map} +1 -1
  83. package/chunk/{LogoComponent-CNTRIZ82.js → LogoComponent-C2diSRfu.js} +4 -4
  84. package/chunk/{LogoComponent-CNTRIZ82.js.map → LogoComponent-C2diSRfu.js.map} +1 -1
  85. package/chunk/{LowIncomeOrganizationComponent-Boc4boNa.js → LowIncomeOrganizationComponent-D9qAHj0m.js} +8 -8
  86. package/chunk/{LowIncomeOrganizationComponent-Boc4boNa.js.map → LowIncomeOrganizationComponent-D9qAHj0m.js.map} +1 -1
  87. package/chunk/{LowIncomeOrganizationComponent-BiLH2c8H.js → LowIncomeOrganizationComponent-bijYf_Ae.js} +8 -8
  88. package/chunk/{LowIncomeOrganizationComponent-BiLH2c8H.js.map → LowIncomeOrganizationComponent-bijYf_Ae.js.map} +1 -1
  89. package/chunk/{MedicalProfessionalOrganizationComponent-CkLCcGTL.js → MedicalProfessionalOrganizationComponent-CMDxCj_U.js} +7 -7
  90. package/chunk/{MedicalProfessionalOrganizationComponent-CkLCcGTL.js.map → MedicalProfessionalOrganizationComponent-CMDxCj_U.js.map} +1 -1
  91. package/chunk/{MedicalProfessionalOrganizationComponent-DM-H8kwu.js → MedicalProfessionalOrganizationComponent-CsZ0PEb5.js} +7 -7
  92. package/chunk/{MedicalProfessionalOrganizationComponent-DM-H8kwu.js.map → MedicalProfessionalOrganizationComponent-CsZ0PEb5.js.map} +1 -1
  93. package/chunk/{MemberIdComponent-DH_i2bP8.js → MemberIdComponent-B9vrsE-q.js} +4 -4
  94. package/chunk/{MemberIdComponent-BviEO2xf.js.map → MemberIdComponent-B9vrsE-q.js.map} +1 -1
  95. package/chunk/{MemberIdComponent-BviEO2xf.js → MemberIdComponent-JTyvLPTU.js} +4 -4
  96. package/chunk/{MemberIdComponent-DH_i2bP8.js.map → MemberIdComponent-JTyvLPTU.js.map} +1 -1
  97. package/chunk/{MembershipOrganizationComponent-CkdcFB5m.js → MembershipOrganizationComponent-C5dWGUPp.js} +7 -7
  98. package/chunk/{MembershipOrganizationComponent-CkdcFB5m.js.map → MembershipOrganizationComponent-C5dWGUPp.js.map} +1 -1
  99. package/chunk/{MembershipOrganizationComponent-Dzoxr8Ix.js → MembershipOrganizationComponent-Dwnrko48.js} +7 -7
  100. package/chunk/{MembershipOrganizationComponent-Dzoxr8Ix.js.map → MembershipOrganizationComponent-Dwnrko48.js.map} +1 -1
  101. package/chunk/{Message-DcW8EpbY.js → Message-CexO4eZq.js} +4 -4
  102. package/chunk/{Message-DcW8EpbY.js.map → Message-CexO4eZq.js.map} +1 -1
  103. package/chunk/{Message-BJIH7xEA.js → Message-YS1p6ov3.js} +4 -4
  104. package/chunk/{Message-BJIH7xEA.js.map → Message-YS1p6ov3.js.map} +1 -1
  105. package/chunk/Onfido-CTCgAwnB.js +3 -3
  106. package/chunk/{PersonalInfoStepSubmitButton-9dP-dawT.js → PersonalInfoStepSubmitButton-Ds_-FUfA.js} +4 -4
  107. package/chunk/{PersonalInfoStepSubmitButton-9dP-dawT.js.map → PersonalInfoStepSubmitButton-Ds_-FUfA.js.map} +1 -1
  108. package/chunk/{PersonalInfoStepSubmitButton-57KCa-Wu.js → PersonalInfoStepSubmitButton-vpNt-1XI.js} +4 -4
  109. package/chunk/{PersonalInfoStepSubmitButton-57KCa-Wu.js.map → PersonalInfoStepSubmitButton-vpNt-1XI.js.map} +1 -1
  110. package/chunk/{PersonalInfoStepWrapper-Xz-23FXk.js → PersonalInfoStepWrapper-CJzVOQ_x.js} +6 -6
  111. package/chunk/{PersonalInfoStepWrapper-Xz-23FXk.js.map → PersonalInfoStepWrapper-CJzVOQ_x.js.map} +1 -1
  112. package/chunk/{PersonalInfoStepWrapper-DM-VDAwi.js → PersonalInfoStepWrapper-CyCuyImb.js} +5 -5
  113. package/chunk/{PersonalInfoStepWrapper-DM-VDAwi.js.map → PersonalInfoStepWrapper-CyCuyImb.js.map} +1 -1
  114. package/chunk/{PostalCodeComponent-B1YC9e96.js → PostalCodeComponent-B25YSrIO.js} +4 -4
  115. package/chunk/{PostalCodeComponent-B1YC9e96.js.map → PostalCodeComponent-B25YSrIO.js.map} +1 -1
  116. package/chunk/{PostalCodeComponent-Mn1fl8iu.js → PostalCodeComponent-IMgjUHRf.js} +4 -4
  117. package/chunk/{PostalCodeComponent-Mn1fl8iu.js.map → PostalCodeComponent-IMgjUHRf.js.map} +1 -1
  118. package/chunk/{SSN-B1VwdvmE.js → SSN-0xlUI5ik.js} +4 -4
  119. package/chunk/{SSN-B1VwdvmE.js.map → SSN-0xlUI5ik.js.map} +1 -1
  120. package/chunk/{SSN-sfKSdRmS.js → SSN-BjBIZSyh.js} +4 -4
  121. package/chunk/{SSN-sfKSdRmS.js.map → SSN-BjBIZSyh.js.map} +1 -1
  122. package/chunk/{StateSelectComponent-B7eQinP3.js → StateSelectComponent-aAvCOLUg.js} +5 -5
  123. package/chunk/{StateSelectComponent-B7eQinP3.js.map → StateSelectComponent-aAvCOLUg.js.map} +1 -1
  124. package/chunk/{StateSelectComponent-DhkRqivG.js → StateSelectComponent-uKT0CUkG.js} +5 -5
  125. package/chunk/{StateSelectComponent-DhkRqivG.js.map → StateSelectComponent-uKT0CUkG.js.map} +1 -1
  126. package/chunk/{StatusComponent-DJMknEBZ.js → StatusComponent-CmqMjhRY.js} +5 -5
  127. package/chunk/{StatusComponent-DHvMI6LS.js.map → StatusComponent-CmqMjhRY.js.map} +1 -1
  128. package/chunk/{StatusComponent-DHvMI6LS.js → StatusComponent-DqlhdO7Q.js} +5 -5
  129. package/chunk/{StatusComponent-DJMknEBZ.js.map → StatusComponent-DqlhdO7Q.js.map} +1 -1
  130. package/chunk/{StepAgePersonalInfo-15a4u8lW.js → StepAgePersonalInfo-BMB7unTI.js} +16 -16
  131. package/chunk/{StepAgePersonalInfo-15a4u8lW.js.map → StepAgePersonalInfo-BMB7unTI.js.map} +1 -1
  132. package/chunk/{StepAgePersonalInfo-D2ax7PaI.js → StepAgePersonalInfo-D0vIoD_n.js} +16 -16
  133. package/chunk/{StepAgePersonalInfo-D2ax7PaI.js.map → StepAgePersonalInfo-D0vIoD_n.js.map} +1 -1
  134. package/chunk/StepCard-BEucy3JJ.js +3 -3
  135. package/chunk/StepCard-Blp7ZcI-.js +3 -3
  136. package/chunk/{StepCollectIdentifier-8Wsj7KLS.js → StepCollectIdentifier-B_IWZFnm.js} +5 -5
  137. package/chunk/{StepCollectIdentifier-8Wsj7KLS.js.map → StepCollectIdentifier-B_IWZFnm.js.map} +1 -1
  138. package/chunk/{StepCollectIdentifier-_kan_kzu.js → StepCollectIdentifier-RF_12KR0.js} +5 -5
  139. package/chunk/{StepCollectIdentifier-_kan_kzu.js.map → StepCollectIdentifier-RF_12KR0.js.map} +1 -1
  140. package/chunk/{StepCollectMilitaryPersonalInfoComponent-CrmPn11A.js → StepCollectMilitaryPersonalInfoComponent-CTniITbD.js} +21 -21
  141. package/chunk/{StepCollectMilitaryPersonalInfoComponent-CrmPn11A.js.map → StepCollectMilitaryPersonalInfoComponent-CTniITbD.js.map} +1 -1
  142. package/chunk/{StepCollectMilitaryPersonalInfoComponent-AUHqzV1P.js → StepCollectMilitaryPersonalInfoComponent-D9Z8yHB3.js} +21 -21
  143. package/chunk/{StepCollectMilitaryPersonalInfoComponent-AUHqzV1P.js.map → StepCollectMilitaryPersonalInfoComponent-D9Z8yHB3.js.map} +1 -1
  144. package/chunk/{StepCollectPersonalInfo-DWygvbfF.js → StepCollectPersonalInfo-Bmu7n4bc.js} +30 -30
  145. package/chunk/{StepCollectPersonalInfo-DWygvbfF.js.map → StepCollectPersonalInfo-Bmu7n4bc.js.map} +1 -1
  146. package/chunk/{StepCollectPersonalInfo-PuREf52a.js → StepCollectPersonalInfo-CYAL3QrN.js} +30 -30
  147. package/chunk/{StepCollectPersonalInfo-PuREf52a.js.map → StepCollectPersonalInfo-CYAL3QrN.js.map} +1 -1
  148. package/chunk/StepCompleteAuthentication-B_0EZ3mH.js +3 -3
  149. package/chunk/StepCompleteAuthentication-Ds3ieihr.js +3 -3
  150. package/chunk/{StepConsolation-BFfTMQZf.js → StepConsolation-D12aSsuO.js} +5 -5
  151. package/chunk/{StepConsolation-BFfTMQZf.js.map → StepConsolation-D12aSsuO.js.map} +1 -1
  152. package/chunk/{StepConsolation-C5SL95Kz.js → StepConsolation-mzf-Xvuk.js} +5 -5
  153. package/chunk/{StepConsolation-C5SL95Kz.js.map → StepConsolation-mzf-Xvuk.js.map} +1 -1
  154. package/chunk/{StepDocUpload-Cfe9u-Yg.js → StepDocUpload-BZ1I9-VI.js} +7 -7
  155. package/chunk/{StepDocUpload-Cfe9u-Yg.js.map → StepDocUpload-BZ1I9-VI.js.map} +1 -1
  156. package/chunk/{StepDocUpload-DFGy-RZb.js → StepDocUpload-_qGcWolC.js} +7 -7
  157. package/chunk/{StepDocUpload-DFGy-RZb.js.map → StepDocUpload-_qGcWolC.js.map} +1 -1
  158. package/chunk/{StepDriverLicensePersonalInfoComponent-DdmoAJlX.js → StepDriverLicensePersonalInfoComponent-BRLFwKvG.js} +12 -12
  159. package/chunk/{StepDriverLicensePersonalInfoComponent-DdmoAJlX.js.map → StepDriverLicensePersonalInfoComponent-BRLFwKvG.js.map} +1 -1
  160. package/chunk/{StepDriverLicensePersonalInfoComponent-BZ3KgdE7.js → StepDriverLicensePersonalInfoComponent-DTjd9EPj.js} +12 -12
  161. package/chunk/{StepDriverLicensePersonalInfoComponent-BZ3KgdE7.js.map → StepDriverLicensePersonalInfoComponent-DTjd9EPj.js.map} +1 -1
  162. package/chunk/{StepEmailLoop-eZzSYgjK.js → StepEmailLoop-2ftuvoPd.js} +6 -6
  163. package/chunk/{StepEmailLoop-eZzSYgjK.js.map → StepEmailLoop-2ftuvoPd.js.map} +1 -1
  164. package/chunk/{StepEmailLoop-BvbQpNhg.js → StepEmailLoop-CqjFTe3c.js} +6 -6
  165. package/chunk/{StepEmailLoop-BvbQpNhg.js.map → StepEmailLoop-CqjFTe3c.js.map} +1 -1
  166. package/chunk/{StepEmploymentPersonalInfo-COOXEbpc.js → StepEmploymentPersonalInfo-B-iW-S7t.js} +17 -17
  167. package/chunk/{StepEmploymentPersonalInfo-COOXEbpc.js.map → StepEmploymentPersonalInfo-B-iW-S7t.js.map} +1 -1
  168. package/chunk/{StepEmploymentPersonalInfo-KDfQnTyn.js → StepEmploymentPersonalInfo-D7Dp0Cg4.js} +17 -17
  169. package/chunk/{StepEmploymentPersonalInfo-KDfQnTyn.js.map → StepEmploymentPersonalInfo-D7Dp0Cg4.js.map} +1 -1
  170. package/chunk/{StepFirstResponderPersonalInfo-BTcRuxq9.js → StepFirstResponderPersonalInfo-CPSAt1KD.js} +18 -18
  171. package/chunk/{StepFirstResponderPersonalInfo-BTcRuxq9.js.map → StepFirstResponderPersonalInfo-CPSAt1KD.js.map} +1 -1
  172. package/chunk/{StepFirstResponderPersonalInfo-uB0fD2gT.js → StepFirstResponderPersonalInfo-LhAbOSlA.js} +18 -18
  173. package/chunk/{StepFirstResponderPersonalInfo-uB0fD2gT.js.map → StepFirstResponderPersonalInfo-LhAbOSlA.js.map} +1 -1
  174. package/chunk/{StepGeneralIdentityPersonalInfoComponent-Dkk-V7VL.js → StepGeneralIdentityPersonalInfoComponent-CgtkLEB0.js} +15 -15
  175. package/chunk/{StepGeneralIdentityPersonalInfoComponent-Dkk-V7VL.js.map → StepGeneralIdentityPersonalInfoComponent-CgtkLEB0.js.map} +1 -1
  176. package/chunk/{StepGeneralIdentityPersonalInfoComponent-CjJIJNeD.js → StepGeneralIdentityPersonalInfoComponent-t9Kkem2-.js} +15 -15
  177. package/chunk/{StepGeneralIdentityPersonalInfoComponent-CjJIJNeD.js.map → StepGeneralIdentityPersonalInfoComponent-t9Kkem2-.js.map} +1 -1
  178. package/chunk/{StepHybridIdentityPersonalInfoComponent-d8gd6eV_.js → StepHybridIdentityPersonalInfoComponent-BUMAYXNM.js} +16 -16
  179. package/chunk/{StepHybridIdentityPersonalInfoComponent-d8gd6eV_.js.map → StepHybridIdentityPersonalInfoComponent-BUMAYXNM.js.map} +1 -1
  180. package/chunk/{StepHybridIdentityPersonalInfoComponent-iJy6_0b0.js → StepHybridIdentityPersonalInfoComponent-iHwo3WsG.js} +16 -16
  181. package/chunk/{StepHybridIdentityPersonalInfoComponent-iJy6_0b0.js.map → StepHybridIdentityPersonalInfoComponent-iHwo3WsG.js.map} +1 -1
  182. package/chunk/{StepIDCheckLoop-BRlf5SAt.js → StepIDCheckLoop-CHAvBy1v.js} +4 -4
  183. package/chunk/{StepIDCheckLoop-BRlf5SAt.js.map → StepIDCheckLoop-CHAvBy1v.js.map} +1 -1
  184. package/chunk/{StepIDCheckLoop-CWyxFjNe.js → StepIDCheckLoop-CLclpa5W.js} +4 -4
  185. package/chunk/{StepIDCheckLoop-CWyxFjNe.js.map → StepIDCheckLoop-CLclpa5W.js.map} +1 -1
  186. package/chunk/{StepIDCheckLoopOnfido-DY5Q80N_.js → StepIDCheckLoopOnfido-BvBFfhtv.js} +7 -7
  187. package/chunk/{StepIDCheckLoopOnfido-DY5Q80N_.js.map → StepIDCheckLoopOnfido-BvBFfhtv.js.map} +1 -1
  188. package/chunk/{StepIDCheckLoopOnfido-3blrUlBA.js → StepIDCheckLoopOnfido-DSXpRkVG.js} +7 -7
  189. package/chunk/{StepIDCheckLoopOnfido-3blrUlBA.js.map → StepIDCheckLoopOnfido-DSXpRkVG.js.map} +1 -1
  190. package/chunk/{StepIDCheckLoopRegula-CN-KQjeA.js → StepIDCheckLoopRegula-B1ScLVSh.js} +6 -6
  191. package/chunk/{StepIDCheckLoopRegula-CN-KQjeA.js.map → StepIDCheckLoopRegula-B1ScLVSh.js.map} +1 -1
  192. package/chunk/{StepIDCheckLoopRegula-DF-YhjX1.js → StepIDCheckLoopRegula-BX_r_E4L.js} +6 -6
  193. package/chunk/{StepIDCheckLoopRegula-DF-YhjX1.js.map → StepIDCheckLoopRegula-BX_r_E4L.js.map} +1 -1
  194. package/chunk/{StepLicensedProfessionalPersonalInfo-CZKyEpkF.js → StepLicensedProfessionalPersonalInfo-D6e0aKcx.js} +18 -18
  195. package/chunk/{StepLicensedProfessionalPersonalInfo-CZKyEpkF.js.map → StepLicensedProfessionalPersonalInfo-D6e0aKcx.js.map} +1 -1
  196. package/chunk/{StepLicensedProfessionalPersonalInfo-DwNkTHc0.js → StepLicensedProfessionalPersonalInfo-PDja7OV9.js} +18 -18
  197. package/chunk/{StepLicensedProfessionalPersonalInfo-DwNkTHc0.js.map → StepLicensedProfessionalPersonalInfo-PDja7OV9.js.map} +1 -1
  198. package/chunk/{StepLowIncomePersonalInfo-Bm4zhlQi.js → StepLowIncomePersonalInfo-BDgG3QSv.js} +20 -20
  199. package/chunk/{StepLowIncomePersonalInfo-Bm4zhlQi.js.map → StepLowIncomePersonalInfo-BDgG3QSv.js.map} +1 -1
  200. package/chunk/{StepLowIncomePersonalInfo-BqQgGi0u.js → StepLowIncomePersonalInfo-D2qFMg0V.js} +20 -20
  201. package/chunk/{StepLowIncomePersonalInfo-BqQgGi0u.js.map → StepLowIncomePersonalInfo-D2qFMg0V.js.map} +1 -1
  202. package/chunk/{StepMedicalProfessionalPersonalInfo-BM1Innu0.js → StepMedicalProfessionalPersonalInfo-1XPLI2W3.js} +19 -19
  203. package/chunk/{StepMedicalProfessionalPersonalInfo-BM1Innu0.js.map → StepMedicalProfessionalPersonalInfo-1XPLI2W3.js.map} +1 -1
  204. package/chunk/{StepMedicalProfessionalPersonalInfo-8vP1rQax.js → StepMedicalProfessionalPersonalInfo-BC0lr1WI.js} +19 -19
  205. package/chunk/{StepMedicalProfessionalPersonalInfo-8vP1rQax.js.map → StepMedicalProfessionalPersonalInfo-BC0lr1WI.js.map} +1 -1
  206. package/chunk/{StepMemberPersonalInfo-JPen0Cdx.js → StepMemberPersonalInfo-BFKv1wPh.js} +14 -14
  207. package/chunk/{StepMemberPersonalInfo-JPen0Cdx.js.map → StepMemberPersonalInfo-BFKv1wPh.js.map} +1 -1
  208. package/chunk/{StepMemberPersonalInfo-6-8V13Wd.js → StepMemberPersonalInfo-RyxtQuwt.js} +14 -14
  209. package/chunk/{StepMemberPersonalInfo-6-8V13Wd.js.map → StepMemberPersonalInfo-RyxtQuwt.js.map} +1 -1
  210. package/chunk/{StepMoverPersonalInfo-8W0j39Gd.js → StepMoverPersonalInfo-BX_5wilp.js} +12 -12
  211. package/chunk/{StepMoverPersonalInfo-8W0j39Gd.js.map → StepMoverPersonalInfo-BX_5wilp.js.map} +1 -1
  212. package/chunk/{StepMoverPersonalInfo-BiHRl_6u.js → StepMoverPersonalInfo-Cl4UiqSf.js} +12 -12
  213. package/chunk/{StepMoverPersonalInfo-BiHRl_6u.js.map → StepMoverPersonalInfo-Cl4UiqSf.js.map} +1 -1
  214. package/chunk/{StepOverrideComponent-BjEUdOOY.js → StepOverrideComponent-CPCNavii.js} +6 -6
  215. package/chunk/{StepOverrideComponent-BjEUdOOY.js.map → StepOverrideComponent-CPCNavii.js.map} +1 -1
  216. package/chunk/{StepOverrideComponent-CpFR0L_g.js → StepOverrideComponent-mD4Wijhb.js} +6 -6
  217. package/chunk/{StepOverrideComponent-CpFR0L_g.js.map → StepOverrideComponent-mD4Wijhb.js.map} +1 -1
  218. package/chunk/{StepSMSLoop-D7PRpbEu.js → StepSMSLoop-DE9FVO3o.js} +4 -4
  219. package/chunk/{StepSMSLoop-D7PRpbEu.js.map → StepSMSLoop-DE9FVO3o.js.map} +1 -1
  220. package/chunk/{StepSMSLoop-B8V9weE6.js → StepSMSLoop-l4LDphcg.js} +4 -4
  221. package/chunk/{StepSMSLoop-B8V9weE6.js.map → StepSMSLoop-l4LDphcg.js.map} +1 -1
  222. package/chunk/StepSSO-Bx1gQq5b.js +3 -3
  223. package/chunk/StepSSO-Cy9ViRyN.js +3 -3
  224. package/chunk/{StepSocialSecurityNumber-CqjBuMQi.js → StepSocialSecurityNumber-Bjru8M0j.js} +7 -7
  225. package/chunk/{StepSocialSecurityNumber-CqjBuMQi.js.map → StepSocialSecurityNumber-Bjru8M0j.js.map} +1 -1
  226. package/chunk/{StepSocialSecurityNumber-DLpCIKZ-.js → StepSocialSecurityNumber-DPstxLu3.js} +7 -7
  227. package/chunk/{StepSocialSecurityNumber-DLpCIKZ-.js.map → StepSocialSecurityNumber-DPstxLu3.js.map} +1 -1
  228. package/chunk/{StepStudentPersonalInfo-Dvtm83FY.js → StepStudentPersonalInfo-BIewd34q.js} +17 -17
  229. package/chunk/{StepStudentPersonalInfo-Dvtm83FY.js.map → StepStudentPersonalInfo-BIewd34q.js.map} +1 -1
  230. package/chunk/{StepStudentPersonalInfo-ChDYBAZG.js → StepStudentPersonalInfo-DRvZ3Vtb.js} +17 -17
  231. package/chunk/{StepStudentPersonalInfo-ChDYBAZG.js.map → StepStudentPersonalInfo-DRvZ3Vtb.js.map} +1 -1
  232. package/chunk/{StepSuccess-D7nS4d-g.js → StepSuccess-Dh1ycMJX.js} +5 -5
  233. package/chunk/{StepSuccess-D7nS4d-g.js.map → StepSuccess-Dh1ycMJX.js.map} +1 -1
  234. package/chunk/{StepSuccess-BixNUZ52.js → StepSuccess-XOl1mdFQ.js} +5 -5
  235. package/chunk/{StepSuccess-BixNUZ52.js.map → StepSuccess-XOl1mdFQ.js.map} +1 -1
  236. package/chunk/{StepTeacherPersonalInfo-BuoLWqai.js → StepTeacherPersonalInfo-B8foLmZZ.js} +15 -15
  237. package/chunk/{StepTeacherPersonalInfo-BuoLWqai.js.map → StepTeacherPersonalInfo-B8foLmZZ.js.map} +1 -1
  238. package/chunk/{StepTeacherPersonalInfo-DF0rT1j8.js → StepTeacherPersonalInfo-ip_pVe12.js} +15 -15
  239. package/chunk/{StepTeacherPersonalInfo-DF0rT1j8.js.map → StepTeacherPersonalInfo-ip_pVe12.js.map} +1 -1
  240. package/chunk/StepThirdPartyLoop-BFizJiyZ.js +3 -3
  241. package/chunk/StepThirdPartyLoop-C9d7QWS3.js +3 -3
  242. package/chunk/{TeacherSchoolComponent-C1Wugzcm.js → TeacherSchoolComponent-kPobTv7N.js} +7 -7
  243. package/chunk/{TeacherSchoolComponent-C1Wugzcm.js.map → TeacherSchoolComponent-kPobTv7N.js.map} +1 -1
  244. package/chunk/{TeacherSchoolComponent-C6Rn4C5t.js → TeacherSchoolComponent-nB-dP00I.js} +7 -7
  245. package/chunk/{TeacherSchoolComponent-C6Rn4C5t.js.map → TeacherSchoolComponent-nB-dP00I.js.map} +1 -1
  246. package/chunk/TestingRouteOverrides-DXjtFZZd.js +3 -3
  247. package/chunk/TestingRouteOverrides-fnlJLg1Z.js +3 -3
  248. package/chunk/ThreatMetrix-D_TbL50B.js +3 -3
  249. package/chunk/ar-D5CO913q.js +3 -3
  250. package/chunk/bg-1mhA5kYF.js +3 -3
  251. package/chunk/bn-IN-CpDqyRb_.js +3 -3
  252. package/chunk/clsx-DC8twM4t.js +3 -3
  253. package/chunk/{countryUtils-CsytXtrZ.js → countryUtils-DqbdyVbZ.js} +4 -4
  254. package/chunk/{countryUtils-BsXU1kSm.js.map → countryUtils-DqbdyVbZ.js.map} +1 -1
  255. package/chunk/{countryUtils-BsXU1kSm.js → countryUtils-R4Q_aquD.js} +4 -4
  256. package/chunk/{countryUtils-CsytXtrZ.js.map → countryUtils-R4Q_aquD.js.map} +1 -1
  257. package/chunk/cs-Chh7FAGt.js +3 -3
  258. package/chunk/da-DwrVoxto.js +3 -3
  259. package/chunk/de-IWGZLhgY.js +3 -3
  260. package/chunk/{downshift.esm-CrOf4z_h.js → downshift.esm-D2aHUCbq.js} +4 -4
  261. package/chunk/{downshift.esm-CrOf4z_h.js.map → downshift.esm-D2aHUCbq.js.map} +1 -1
  262. package/chunk/{downshift.esm-pUcOp4cT.js → downshift.esm-DQMomT6K.js} +4 -4
  263. package/chunk/{downshift.esm-pUcOp4cT.js.map → downshift.esm-DQMomT6K.js.map} +1 -1
  264. package/chunk/el-DbDcvSPJ.js +3 -3
  265. package/chunk/empties-BBKd53_B.js +3 -3
  266. package/chunk/empties-DcQjcgEV.js +3 -3
  267. package/chunk/en-GB-CNQ8Ww2j.js +3 -3
  268. package/chunk/es-ES-DWimqEZ_.js +3 -3
  269. package/chunk/es-qhC-seq5.js +3 -3
  270. package/chunk/et-yF9G-Mym.js +3 -3
  271. package/chunk/eventEmitter-CSG6jR7V.js +3 -3
  272. package/chunk/fa-BcdSf7og.js +3 -3
  273. package/chunk/fi-D-IP_KHm.js +3 -3
  274. package/chunk/fr-BmUuYxk0.js +3 -3
  275. package/chunk/fr-CA-DVQ4xmzZ.js +3 -3
  276. package/chunk/ga-DuZycND3.js +3 -3
  277. package/chunk/getInstallType-BRxisNNY.js +3 -3
  278. package/chunk/getInstallType-DlS_DNKt.js +3 -3
  279. package/chunk/hi-IN-l6Rn5Ewm.js +3 -3
  280. package/chunk/hooks-B7aeAwHn.js +3 -3
  281. package/chunk/hooks-D0X_qdc-.js +3 -3
  282. package/chunk/hr-BtqyDzDB.js +3 -3
  283. package/chunk/hu-C6syKJfb.js +3 -3
  284. package/chunk/i18next-iyVj5hRL.js +3 -3
  285. package/chunk/id-GgI-Z2a5.js +3 -3
  286. package/chunk/intl-BK4prEGw.js +3 -3
  287. package/chunk/is-CvmKEON9.js +3 -3
  288. package/chunk/it-CnmveGgC.js +3 -3
  289. package/chunk/iw-DFUYHkxF.js +3 -3
  290. package/chunk/ja-CjVb2tWW.js +3 -3
  291. package/chunk/jsx-runtime-BUMIo32n.js +3 -3
  292. package/chunk/jsx-runtime-DwmrsRqi.js +3 -3
  293. package/chunk/kk-Dvz4nK6K.js +3 -3
  294. package/chunk/ko-DzOqBMGC.js +3 -3
  295. package/chunk/lo-C2WPq55d.js +3 -3
  296. package/chunk/lt-BSDYvjTF.js +3 -3
  297. package/chunk/lv-CefDPT-M.js +3 -3
  298. package/chunk/mockProgramBranding-C9Ysu3Mp.js +3 -3
  299. package/chunk/mockProgramConfiguration-BNqSCrMG.js +3 -3
  300. package/chunk/mockProgramI18n-CgYx_1_a.js +3 -3
  301. package/chunk/mockProgramTheme-Cfk2dzF3.js +3 -3
  302. package/chunk/mocks-DV23paUj.js +3 -3
  303. package/chunk/mocks-R-p7VtJz.js +3 -3
  304. package/chunk/ms-BjestZxy.js +3 -3
  305. package/chunk/nl-B1FyUfCT.js +3 -3
  306. package/chunk/nl-BE-CbeAd3nq.js +3 -3
  307. package/chunk/no-Dr633Ddi.js +3 -3
  308. package/chunk/pl-UYTjMIq_.js +3 -3
  309. package/chunk/{programThemeGetters-DxY7DDdO.js → programThemeGetters-0iwXNOx6.js} +4 -4
  310. package/chunk/{programThemeGetters-DxY7DDdO.js.map → programThemeGetters-0iwXNOx6.js.map} +1 -1
  311. package/chunk/{programThemeGetters-DlZHVdvX.js → programThemeGetters-BEzpDnQy.js} +4 -4
  312. package/chunk/{programThemeGetters-DlZHVdvX.js.map → programThemeGetters-BEzpDnQy.js.map} +1 -1
  313. package/chunk/pt-BR-C8SYMT-J.js +3 -3
  314. package/chunk/pt-uH-M3GdN.js +3 -3
  315. package/chunk/refs-Mq0rtW9K.js +3 -3
  316. package/chunk/ro-CAOSXZ7h.js +3 -3
  317. package/chunk/ru-iwYoEydL.js +3 -3
  318. package/chunk/runtimeTypes-B2AGNJMT.js +3 -3
  319. package/chunk/sk-DYYNV3zw.js +3 -3
  320. package/chunk/sl-D_-eeM5N.js +3 -3
  321. package/chunk/sr-BTi9_anL.js +3 -3
  322. package/chunk/stepComponentHelpers-CyqXTDdj.js +3 -3
  323. package/chunk/stepComponentHelpers-Dztw-HNP.js +3 -3
  324. package/chunk/strings-DWLVdUcm.js +3 -3
  325. package/chunk/sv-DRwY4shG.js +3 -3
  326. package/chunk/sw-Bvj2mYmM.js +3 -3
  327. package/chunk/ta-CmtaYoNe.js +3 -3
  328. package/chunk/th-12r2yKkJ.js +3 -3
  329. package/chunk/tl-BGNfO7md.js +3 -3
  330. package/chunk/tr-DH2ZSJhs.js +3 -3
  331. package/chunk/uk-CELBZlTd.js +3 -3
  332. package/chunk/ur-MR8DTbmd.js +3 -3
  333. package/chunk/{useCollectFieldsEndpoint-Drk4Ums0.js → useCollectFieldsEndpoint-BbzTOhC3.js} +5 -5
  334. package/chunk/{useCollectFieldsEndpoint-Drk4Ums0.js.map → useCollectFieldsEndpoint-BbzTOhC3.js.map} +1 -1
  335. package/chunk/{useCollectFieldsEndpoint-Cu69CIHE.js → useCollectFieldsEndpoint-CKn8va6d.js} +5 -5
  336. package/chunk/{useCollectFieldsEndpoint-Cu69CIHE.js.map → useCollectFieldsEndpoint-CKn8va6d.js.map} +1 -1
  337. package/chunk/useMetrics-C13Ap129.js +3 -3
  338. package/chunk/useMetrics-O66_lNx5.js +3 -3
  339. package/chunk/vi-DtZ-SqD5.js +3 -3
  340. package/chunk/zh-DjyVyYac.js +3 -3
  341. package/chunk/zh-HK-CN1HarHq.js +3 -3
  342. package/chunk/zu-DPhgIh1z.js +3 -3
  343. package/package.json +1 -1
  344. package/sheerid-install.css +3 -3
  345. package/sheerid-install.js +3 -3
  346. package/sheerid.css +3 -3
  347. package/sheerid.js +36 -36
@@ -1 +1 @@
1
- {"version":3,"file":"StepCollectMilitaryPersonalInfoComponent-CrmPn11A.js","names":["produce","_Fragment","MilitaryStatusComponent","BranchOfService","FirstName","LastName","BirthDate","DischargeDate","Email","PhoneNumber","MarketConsentWrapper","fn","getOptions","require_jsx_runtime","useProgramConfiguration","VerificationStepsEnum","hasFailedInstantMatch","resetRefs","PersonalInfoHeader","useCollectFieldsEndpoint","updateFieldValidationErrorsByFieldId","updateViewModelOrganization","handleEmailOnKeyDown","getFieldConfigByFieldId","FirstNameComponent","LastNameComponent","FormFieldCustom","PhoneNumberComponent","MarketConsentWrapperComponent","CaptchaComponent","EmailComponent","PersonalInfoStepSubmitButton","useFormSelectChoice","BirthDateComponent","PostalCodeComponent","CountryComponentWrapper","CityComponent","AddressComponent","ExtraMessage","ChangeLocaleV2Component","PersonalInfoWrapper","isCountrySelectionNeeded","StateSelectComponent","BranchOfServiceComponent","ActiveDutyStartDateComponent","DischargeDateComponent","StatusComponent","updateMilitaryViewModel","viewModel","verificationService","key","value","militaryManagedFields","draft","id","availableStatuses","import_jsx_runtime","StepCollectMilitaryPersonalInfoComponent","programConfiguration","verificationResponse","failedInstantMatch","initialRequiredFields","dynamicStatuses","countryChoiceValue","needToPickCountry","statusOptions","locale","options","showDischargeDate","isFieldRequired","isFieldOptional","updateMilitary","option","fieldValidationErrors","FormattedHTMLMessage","status","choice","newValue","event","stateValue","stateChoice"],"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\";\nimport { useProgramConfiguration } from \"@/lib/state/contextHooks\";\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 programConfiguration = useProgramConfiguration();\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 !!programConfiguration.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(programConfiguration, countryChoiceValue);\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={programConfiguration.transitionalMilitaryValidityDays ? \"date\" : \"month\"}\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 {programConfiguration.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 {programConfiguration.isSmsNotifierConfigured || programConfiguration.smsLoopEnabled ? (\n <PhoneNumber\n isRequired={!!programConfiguration.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+C,KACX,GACA,GACA,GACA,MACkC;CAClC,IAAMC,IAAYC,EAAoB;CACtC,OAAOjD,EAAQgD,IAAY,MAAyC;EAClE,EAAOE,KAAeC;EAGtB,IAAMC,IAAwB,CAAC,QAAQ;EASvC,AARA,EAAM,0BAA0BC,EAAM,0BAA0B,CAAC,EAAA,CAAG,QACjE,MAAO,CAACD,EAAsB,SAASE,CAAE,CAC5C,IAEI,CAACC,KAAqBA,EAAkB,WAAW,MACrDF,EAAM,uBAAuB,KAAK,QAAQ,GAGxCH,MAAQ,aACV,EAAM,eAAe;GAAE,IAAI;GAAG,MAAM;EAAG;CAE3C,CAAC;AACH,G;AC4BA,SAAwBO,EAAyC,EAAE,0BAA8B;CAC/F,IAAMC,IAAuB5C,EAAwB,GAC/CkC,IAAYC,EAAoB,WAChC,EAAE,6BAA0BA,GAC5BU,IAAuBV,EAAoB,sBAG3CW,IAAqB5C,EAAsB2C,CAAoB,GAS/DE,IAHJF,EAAqB,gBACnB5C,EAAsB,uCACtB2C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ryPersonalInfoComponent-CTniITbD.js","names":["produce","_Fragment","MilitaryStatusComponent","BranchOfService","FirstName","LastName","BirthDate","DischargeDate","Email","PhoneNumber","MarketConsentWrapper","fn","getOptions","require_jsx_runtime","useProgramConfiguration","VerificationStepsEnum","hasFailedInstantMatch","resetRefs","PersonalInfoHeader","useCollectFieldsEndpoint","updateFieldValidationErrorsByFieldId","updateViewModelOrganization","handleEmailOnKeyDown","getFieldConfigByFieldId","FirstNameComponent","LastNameComponent","FormFieldCustom","PhoneNumberComponent","MarketConsentWrapperComponent","CaptchaComponent","EmailComponent","PersonalInfoStepSubmitButton","useFormSelectChoice","BirthDateComponent","PostalCodeComponent","CountryComponentWrapper","CityComponent","AddressComponent","ExtraMessage","ChangeLocaleV2Component","PersonalInfoWrapper","isCountrySelectionNeeded","StateSelectComponent","BranchOfServiceComponent","ActiveDutyStartDateComponent","DischargeDateComponent","StatusComponent","updateMilitaryViewModel","viewModel","verificationService","key","value","militaryManagedFields","draft","id","availableStatuses","import_jsx_runtime","StepCollectMilitaryPersonalInfoComponent","programConfiguration","verificationResponse","failedInstantMatch","initialRequiredFields","dynamicStatuses","countryChoiceValue","needToPickCountry","statusOptions","locale","options","showDischargeDate","isFieldRequired","isFieldOptional","updateMilitary","option","fieldValidationErrors","FormattedHTMLMessage","status","choice","newValue","event","stateValue","stateChoice"],"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\";\nimport { useProgramConfiguration } from \"@/lib/state/contextHooks\";\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 programConfiguration = useProgramConfiguration();\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 !!programConfiguration.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(programConfiguration, countryChoiceValue);\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={programConfiguration.transitionalMilitaryValidityDays ? \"date\" : \"month\"}\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 {programConfiguration.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 {programConfiguration.isSmsNotifierConfigured || programConfiguration.smsLoopEnabled ? (\n <PhoneNumber\n isRequired={!!programConfiguration.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+C,KACX,GACA,GACA,GACA,MACkC;CAClC,IAAMC,IAAYC,EAAoB;CACtC,OAAOjD,EAAQgD,IAAY,MAAyC;EAClE,EAAOE,KAAeC;EAGtB,IAAMC,IAAwB,CAAC,QAAQ;EASvC,AARA,EAAM,0BAA0BC,EAAM,0BAA0B,CAAC,EAAA,CAAG,QACjE,MAAO,CAACD,EAAsB,SAASE,CAAE,CAC5C,IAEI,CAACC,KAAqBA,EAAkB,WAAW,MACrDF,EAAM,uBAAuB,KAAK,QAAQ,GAGxCH,MAAQ,aACV,EAAM,eAAe;GAAE,IAAI;GAAG,MAAM;EAAG;CAE3C,CAAC;AACH,G;AC4BA,SAAwBO,EAAyC,EAAE,0BAA8B;CAC/F,IAAMC,IAAuB5C,EAAwB,GAC/CkC,IAAYC,EAAoB,WAChC,EAAE,6BAA0BA,GAC5BU,IAAuBV,EAAoB,sBAG3CW,IAAqB5C,EAAsB2C,CAAoB,GAS/DE,IAHJF,EAAqB,gBACnB5C,EAAsB,uCACtB2C,EAAqB,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in other contexts and there are no guarantees about its behavior outside of MySheerID.
5
5
  */
6
6
  /**
7
- * VERSION: 2.314.0
8
- * BUILD_TIMESTAMP: 1793754658252
9
- * BUILD_DATE: Wed Nov 04 2026 01:10:58 GMT+0000 (Coordinated Universal Time)
7
+ * VERSION: 2.315.0
8
+ * BUILD_TIMESTAMP: 1793755578665
9
+ * BUILD_DATE: Wed Nov 04 2026 01:26:18 GMT+0000 (Coordinated Universal Time)
10
10
  * BUILD_COMMIT: 22244e83657b6c12023c5aac9710b7924aab6459
11
11
  */
12
12
  import { p as e, s as t } from "./intl-BK4prEGw.js";
13
13
  import { b as n } from "./runtimeTypes-B2AGNJMT.js";
14
14
  import { n as r, t as i } from "./jsx-runtime-BUMIo32n.js";
15
- import { o as a } from "./programThemeGetters-DlZHVdvX.js";
16
- import { m as o } from "./FormFooterComponent-CVXgmWQR.js";
15
+ import { o as a } from "./programThemeGetters-BEzpDnQy.js";
16
+ import { m as o } from "./FormFooterComponent-B7fUP0wx.js";
17
17
  import { a as s } from "./refs-Mq0rtW9K.js";
18
18
  import { t as c } from "../_mysheerid-preview.js";
19
- import { t as l } from "./useCollectFieldsEndpoint-Drk4Ums0.js";
19
+ import { t as l } from "./useCollectFieldsEndpoint-BbzTOhC3.js";
20
20
  import { d as u, f as d, r as f, t as p } from "./stepComponentHelpers-Dztw-HNP.js";
21
- import { a as m, i as h, n as g, o as _, s as v, t as y } from "./CaptchaComponent-Nm59DuJO.js";
22
- import { n as b, t as x } from "./PersonalInfoStepSubmitButton-9dP-dawT.js";
23
- import { i as S } from "./FormSelectChoice-CbcfEHuQ.js";
24
- import { t as C } from "./BirthDateComponent-BPaAXZlv.js";
25
- import { t as w } from "./PostalCodeComponent-Mn1fl8iu.js";
26
- import { t as T } from "./CountryComponentWrapper-CDJl-HHu.js";
27
- import { t as E } from "./City-Dx5l48so.js";
28
- import { t as D } from "./AddressComponent-BhsB0ubP.js";
29
- import { t as O } from "./ExtraMessage-DpGDn2nE.js";
30
- import { t as k } from "./ChangeLocaleComponent-B47RYyd8.js";
31
- import { t as A } from "./PersonalInfoStepWrapper-Xz-23FXk.js";
32
- import { t as j } from "./countryUtils-BsXU1kSm.js";
33
- import { t as M } from "./StateSelectComponent-B7eQinP3.js";
34
- import { n as N, r as P, t as F } from "./DischargeDateComponent-DfiBSI4n.js";
35
- import { t as I } from "./StatusComponent-DJMknEBZ.js";
21
+ import { a as m, i as h, n as g, o as _, s as v, t as y } from "./CaptchaComponent-BD4yKfJR.js";
22
+ import { n as b, t as x } from "./PersonalInfoStepSubmitButton-Ds_-FUfA.js";
23
+ import { i as S } from "./FormSelectChoice-DN3XV8go.js";
24
+ import { t as C } from "./BirthDateComponent-DEm62ubJ.js";
25
+ import { t as w } from "./PostalCodeComponent-IMgjUHRf.js";
26
+ import { t as T } from "./CountryComponentWrapper-A-NCx760.js";
27
+ import { t as E } from "./City-IKHXV6fA.js";
28
+ import { t as D } from "./AddressComponent-BUOibRxr.js";
29
+ import { t as O } from "./ExtraMessage-CzchllLx.js";
30
+ import { t as k } from "./ChangeLocaleComponent-Drpt_vzW.js";
31
+ import { t as A } from "./PersonalInfoStepWrapper-CJzVOQ_x.js";
32
+ import { t as j } from "./countryUtils-R4Q_aquD.js";
33
+ import { t as M } from "./StateSelectComponent-aAvCOLUg.js";
34
+ import { n as N, r as P, t as F } from "./DischargeDateComponent-CifKJfBT.js";
35
+ import { t as I } from "./StatusComponent-CmqMjhRY.js";
36
36
  //#region src/components/StepMilitaryPersonalInfo/militaryStepHelpers.ts
37
37
  var L = (t, n, r, i) => {
38
38
  let a = r.viewModel;
@@ -1 +1 @@
1
- {"version":3,"file":"StepCollectMilitaryPersonalInfoComponent-AUHqzV1P.js","names":["produce","_Fragment","MilitaryStatusComponent","BranchOfService","FirstName","LastName","BirthDate","DischargeDate","Email","PhoneNumber","MarketConsentWrapper","fn","getOptions","VerificationStepsEnum","FormattedHTMLMessage","require_jsx_runtime","useProgramConfiguration","hasFailedInstantMatch","resetRefs","PersonalInfoHeader","useCollectFieldsEndpoint","updateFieldValidationErrorsByFieldId","updateViewModelOrganization","handleEmailOnKeyDown","getFieldConfigByFieldId","FirstNameComponent","LastNameComponent","FormFieldCustom","PhoneNumberComponent","MarketConsentWrapperComponent","CaptchaComponent","EmailComponent","PersonalInfoStepSubmitButton","useFormSelectChoice","BirthDateComponent","PostalCodeComponent","CountryComponentWrapper","CityComponent","AddressComponent","ExtraMessage","ChangeLocaleV2Component","PersonalInfoWrapper","isCountrySelectionNeeded","StateSelectComponent","BranchOfServiceComponent","ActiveDutyStartDateComponent","DischargeDateComponent","StatusComponent","updateMilitaryViewModel","viewModel","verificationService","key","value","militaryManagedFields","draft","id","availableStatuses","import_jsx_runtime","StepCollectMilitaryPersonalInfoComponent","programConfiguration","verificationResponse","failedInstantMatch","initialRequiredFields","dynamicStatuses","countryChoiceValue","needToPickCountry","statusOptions","locale","options","showDischargeDate","isFieldRequired","isFieldOptional","updateMilitary","option","fieldValidationErrors","status","choice","newValue","event","stateValue","stateChoice"],"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\";\nimport { useProgramConfiguration } from \"@/lib/state/contextHooks\";\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 programConfiguration = useProgramConfiguration();\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 !!programConfiguration.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(programConfiguration, countryChoiceValue);\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={programConfiguration.transitionalMilitaryValidityDays ? \"date\" : \"month\"}\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 {programConfiguration.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 {programConfiguration.isSmsNotifierConfigured || programConfiguration.smsLoopEnabled ? (\n <PhoneNumber\n isRequired={!!programConfiguration.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,IAAagD,KACX,GACA,GACA,GACA,MACkC;CAClC,IAAMC,IAAYC,EAAoB;CACtC,OAAOlD,EAAQiD,IAAY,MAAyC;EAClE,EAAOE,KAAeC;EAGtB,IAAMC,IAAwB,CAAC,QAAQ;EASvC,AARA,EAAM,0BAA0BC,EAAM,0BAA0B,CAAC,EAAA,CAAG,QACjE,MAAO,CAACD,EAAsB,SAASE,CAAE,CAC5C,IAEI,CAACC,KAAqBA,EAAkB,WAAW,MACrDF,EAAM,uBAAuB,KAAK,QAAQ,GAGxCH,MAAQ,aACV,EAAM,eAAe;GAAE,IAAI;GAAG,MAAM;EAAG;CAE3C,CAAC;AACH,G;AC4BA,SAAwBO,EAAyC,EAAE,0BAA8B;CAC/F,IAAMC,IAAuB3C,EAAwB,GAC/CiC,IAAYC,EAAoB,WAChC,EAAE,6BAA0BA,GAC5BU,IAAuBV,EAAoB,sBAG3CW,IAAqB5C,EAAsB2C,CAAoB,GAS/DE,IAHJF,EAAqB,gBACnB/C,EAAsB,uCACtB8C,EAAqB,mCAErB,CAAC,EAAE,KAAK,gBAAgB,CAAC,IACzB,CAAC,GAEC,EACJ,mBAAmBI,GACnB,oBACA,uBACE3C,EAAyB;EAC3B,gBAAgBwC,EAAqB;EACrC,aAAa/C,EAAsB;EACnC;EACA,uBAAuBiD;CACzB,CAAC,GAEKE,IAAqBf,EAAU,eA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E;IACjD,WAAW,CAAC,CAACkD,EAAsB;IACnC,WAAW,MAAa;KAEtB,AADAF,EAAe,cAAcK,CAAQ,GACrCxD,EAAqC,cAAcwD,GAAU3B,CAAmB;IAClF;IACA,OAAOD,EAAU;IACjB,UAAUzB,EAAwB,YAAY,CAAC,EAAE;GAClD,CAAA;GAGF4C,EAAQ,iBAAiB,KAAK,MAC7B,iBAAA,GAAAX,EAAA,IAAA,CAAC9B,GAAD;IAAyB;IAA6B;GAAsB,CAAA,CAC7E;GAED,iBAAA,GAAA8B,EAAA,IAAA,CAAC/C,GAAD;IACuB;IACrB,WAAW,CAAC,CAACgE,EAAsB;IACnC,WAAW,MAAa;KAKtB,AAJAF,EAAe,YAAY;MACzB,GAAGtB,EAAoB,UAAU;MACjC,oBAAoB2B;KACtB,CAAC,GACDxD,EACE,sBACAwD,GACA3B,CACF;IACF;IACW;IACX,UAAU1B,EAAwB,oBAAoB,CAAC,EAAE;GAC1D,CAAA;GAED,iBAAA,GAAAiC,EAAA,IAAA,CAAClB,GAAD;IAAmC;IAAqB,QAAO;GAAsB,CAAA;GAErF,iBAAA,GAAAkB,EAAA,IAAA,CAAC3B,GAAD;IACuB;IACrB,WAAW,CAAC,CAAC4C,EAAsB;GACpC,CAAA;GAED,iBAAA,GAAAjB,EAAA,IAAA,CAACzB,GAAD;IACE,MAAM4B,EAAqB;IACN;IACV;IACS;IACpB,YACE,iBAAA,GAAAH,EAAA,IAAA,CAAC3C,GAAD;KACE,IAAG;KACH,gBAAe;IAChB,CAAA;GAEJ,CAAA;EACD,EAAA,CAAA,CACiB;;AAEzB"}
1
+ {"version":3,"file":"StepCollectMilitaryPersonalInfoComponent-D9Z8yHB3.js","names":["produce","_Fragment","MilitaryStatusComponent","BranchOfService","FirstName","LastName","BirthDate","DischargeDate","Email","PhoneNumber","MarketConsentWrapper","fn","getOptions","VerificationStepsEnum","FormattedHTMLMessage","require_jsx_runtime","useProgramConfiguration","hasFailedInstantMatch","resetRefs","PersonalInfoHeader","useCollectFieldsEndpoint","updateFieldValidationErrorsByFieldId","updateViewModelOrganization","handleEmailOnKeyDown","getFieldConfigByFieldId","FirstNameComponent","LastNameComponent","FormFieldCustom","PhoneNumberComponent","MarketConsentWrapperComponent","CaptchaComponent","EmailComponent","PersonalInfoStepSubmitButton","useFormSelectChoice","BirthDateComponent","PostalCodeComponent","CountryComponentWrapper","CityComponent","AddressComponent","ExtraMessage","ChangeLocaleV2Component","PersonalInfoWrapper","isCountrySelectionNeeded","StateSelectComponent","BranchOfServiceComponent","ActiveDutyStartDateComponent","DischargeDateComponent","StatusComponent","updateMilitaryViewModel","viewModel","verificationService","key","value","militaryManagedFields","draft","id","availableStatuses","import_jsx_runtime","StepCollectMilitaryPersonalInfoComponent","programConfiguration","verificationResponse","failedInstantMatch","initialRequiredFields","dynamicStatuses","countryChoiceValue","needToPickCountry","statusOptions","locale","options","showDischargeDate","isFieldRequired","isFieldOptional","updateMilitary","option","fieldValidationErrors","status","choice","newValue","event","stateValue","stateChoice"],"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\";\nimport { useProgramConfiguration } from \"@/lib/state/contextHooks\";\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 programConfiguration = useProgramConfiguration();\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 !!programConfiguration.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(programConfiguration, countryChoiceValue);\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={programConfiguration.transitionalMilitaryValidityDays ? \"date\" : \"month\"}\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 {programConfiguration.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 {programConfiguration.isSmsNotifierConfigured || programConfiguration.smsLoopEnabled ? (\n <PhoneNumber\n isRequired={!!programConfiguration.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,IAAagD,KACX,GACA,GACA,GACA,MACkC;CAClC,IAAMC,IAAYC,EAAoB;CACtC,OAAOlD,EAAQiD,IAAY,MAAyC;EAClE,EAAOE,KAAeC;EAGtB,IAAMC,IAAwB,CAAC,QAAQ;EASvC,AARA,EAAM,0BAA0BC,EAAM,0BAA0B,CAAC,EAAA,CAAG,QACjE,MAAO,CAACD,EAAsB,SAASE,CAAE,CAC5C,IAEI,CAACC,KAAqBA,EAAkB,WAAW,MACrDF,EAAM,uBAAuB,KAAK,QAAQ,GAGxCH,MAAQ,aACV,EAAM,eAAe;GAAE,IAAI;GAAG,MAAM;EAAG;CAE3C,CAAC;AACH,G;AC4BA,SAAwBO,EAAyC,EAAE,0BAA8B;CAC/F,IAAMC,IAAuB3C,EAAwB,GAC/CiC,IAAYC,EAAoB,WAChC,EAAE,6BAA0BA,GAC5BU,IAAuBV,EAAoB,sBAG3CW,IAAqB5C,EAAsB2C,CAAoB,GAS/DE,IAHJF,EAAqB,gBACnB/C,EAAsB,uCACtB8C,EAAqB,mCAErB,CAAC,EAAE,KAAK,gBAAgB,CAAC,IACzB,CAAC,GAEC,EACJ,mBAAmBI,GACnB,oBACA,uBACE3C,EAAyB;EAC3B,gBAAgBwC,EAAqB;EACrC,aAAa/C,EAAsB;EACnC;EACA,uBAAuBiD;CACzB,CAAC,GAEKE,IAAqBf,EAAU,eAAe,O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jD,WAAW,CAAC,CAACkD,EAAsB;IACnC,WAAW,MAAa;KAEtB,AADAF,EAAe,cAAcK,CAAQ,GACrCxD,EAAqC,cAAcwD,GAAU3B,CAAmB;IAClF;IACA,OAAOD,EAAU;IACjB,UAAUzB,EAAwB,YAAY,CAAC,EAAE;GAClD,CAAA;GAGF4C,EAAQ,iBAAiB,KAAK,MAC7B,iBAAA,GAAAX,EAAA,IAAA,CAAC9B,GAAD;IAAyB;IAA6B;GAAsB,CAAA,CAC7E;GAED,iBAAA,GAAA8B,EAAA,IAAA,CAAC/C,GAAD;IACuB;IACrB,WAAW,CAAC,CAACgE,EAAsB;IACnC,WAAW,MAAa;KAKtB,AAJAF,EAAe,YAAY;MACzB,GAAGtB,EAAoB,UAAU;MACjC,oBAAoB2B;KACtB,CAAC,GACDxD,EACE,sBACAwD,GACA3B,CACF;IACF;IACW;IACX,UAAU1B,EAAwB,oBAAoB,CAAC,EAAE;GAC1D,CAAA;GAED,iBAAA,GAAAiC,EAAA,IAAA,CAAClB,GAAD;IAAmC;IAAqB,QAAO;GAAsB,CAAA;GAErF,iBAAA,GAAAkB,EAAA,IAAA,CAAC3B,GAAD;IACuB;IACrB,WAAW,CAAC,CAAC4C,EAAsB;GACpC,CAAA;GAED,iBAAA,GAAAjB,EAAA,IAAA,CAACzB,GAAD;IACE,MAAM4B,EAAqB;IACN;IACV;IACS;IACpB,YACE,iBAAA,GAAAH,EAAA,IAAA,CAAC3C,GAAD;KACE,IAAG;KACH,gBAAe;IAChB,CAAA;GAEJ,CAAA;EACD,EAAA,CAAA,CACiB;;AAEzB"}
@@ -4,43 +4,43 @@
4
4
  * This file is not intended for use in other contexts and there are no guarantees about its behavior outside of MySheerID.
5
5
  */
6
6
  /**
7
- * VERSION: 2.314.0
8
- * BUILD_TIMESTAMP: 1793754658252
9
- * BUILD_DATE: Wed Nov 04 2026 01:10:58 GMT+0000 (Coordinated Universal Time)
7
+ * VERSION: 2.315.0
8
+ * BUILD_TIMESTAMP: 1793755578665
9
+ * BUILD_DATE: Wed Nov 04 2026 01:26:18 GMT+0000 (Coordinated Universal Time)
10
10
  * BUILD_COMMIT: 22244e83657b6c12023c5aac9710b7924aab6459
11
11
  */
12
12
  import { At as e, Et as t, p as n, s as r } from "./intl-BK4prEGw.js";
13
13
  import { S as ee, b as i, t as te, u as a } from "./runtimeTypes-B2AGNJMT.js";
14
14
  import { n as o, s, t as c } from "./jsx-runtime-BUMIo32n.js";
15
- import { a as l } from "./Message-BJIH7xEA.js";
16
- import { o as u } from "./programThemeGetters-DlZHVdvX.js";
17
- import { b as ne, m as re, t as ie } from "./FormFooterComponent-CVXgmWQR.js";
15
+ import { a as l } from "./Message-YS1p6ov3.js";
16
+ import { o as u } from "./programThemeGetters-BEzpDnQy.js";
17
+ import { b as ne, m as re, t as ie } from "./FormFooterComponent-B7fUP0wx.js";
18
18
  import { t as ae } from "../_mysheerid-preview.js";
19
- import { t as oe } from "./useCollectFieldsEndpoint-Drk4Ums0.js";
19
+ import { t as oe } from "./useCollectFieldsEndpoint-BbzTOhC3.js";
20
20
  import { d, f, i as se, l as ce, r as le, s as ue, t as p } from "./stepComponentHelpers-Dztw-HNP.js";
21
- import { a as de, i as fe, n as pe, o as me, s as m, t as h } from "./CaptchaComponent-Nm59DuJO.js";
22
- import { n as g, t as _ } from "./PersonalInfoStepSubmitButton-9dP-dawT.js";
23
- import { i as v } from "./FormSelectChoice-CbcfEHuQ.js";
24
- import { t as y } from "./BirthDateComponent-BPaAXZlv.js";
25
- import { t as b } from "./PostalCodeComponent-Mn1fl8iu.js";
26
- import { t as x } from "./CountryComponentWrapper-CDJl-HHu.js";
27
- import { t as S } from "./City-Dx5l48so.js";
28
- import { t as C } from "./AddressComponent-BhsB0ubP.js";
29
- import { t as w } from "./ExtraMessage-DpGDn2nE.js";
30
- import { t as T } from "./countryUtils-BsXU1kSm.js";
31
- import { t as E } from "./CollegeNameComponent-f6_gBtpS.js";
32
- import { t as D } from "./StateSelectComponent-B7eQinP3.js";
33
- import { n as O, r as k, t as A } from "./DischargeDateComponent-DfiBSI4n.js";
34
- import { t as j } from "./DriverLicenseNumberComponent-D9eHyRtn.js";
35
- import { n as M, t as N } from "./LowIncomeOrganizationComponent-BiLH2c8H.js";
36
- import { t as P } from "./StatusComponent-DJMknEBZ.js";
37
- import { t as F } from "./FirstResponderOrganizationComponent-BLgIjTUq.js";
38
- import { t as I } from "./LicensedProfessionalOrganizationComponent-Dmo9gg0v.js";
39
- import { t as he } from "./MedicalProfessionalOrganizationComponent-CkLCcGTL.js";
40
- import { t as L } from "./MemberIdComponent-DH_i2bP8.js";
41
- import { t as R } from "./MembershipOrganizationComponent-CkdcFB5m.js";
42
- import { t as ge } from "./TeacherSchoolComponent-C6Rn4C5t.js";
43
- import { t as _e } from "./SSN-B1VwdvmE.js";
21
+ import { a as de, i as fe, n as pe, o as me, s as m, t as h } from "./CaptchaComponent-BD4yKfJR.js";
22
+ import { n as g, t as _ } from "./PersonalInfoStepSubmitButton-Ds_-FUfA.js";
23
+ import { i as v } from "./FormSelectChoice-DN3XV8go.js";
24
+ import { t as y } from "./BirthDateComponent-DEm62ubJ.js";
25
+ import { t as b } from "./PostalCodeComponent-IMgjUHRf.js";
26
+ import { t as x } from "./CountryComponentWrapper-A-NCx760.js";
27
+ import { t as S } from "./City-IKHXV6fA.js";
28
+ import { t as C } from "./AddressComponent-BUOibRxr.js";
29
+ import { t as w } from "./ExtraMessage-CzchllLx.js";
30
+ import { t as T } from "./countryUtils-R4Q_aquD.js";
31
+ import { t as E } from "./CollegeNameComponent-DpMt-iEi.js";
32
+ import { t as D } from "./StateSelectComponent-aAvCOLUg.js";
33
+ import { n as O, r as k, t as A } from "./DischargeDateComponent-CifKJfBT.js";
34
+ import { t as j } from "./DriverLicenseNumberComponent-4I1cN8DR.js";
35
+ import { n as M, t as N } from "./LowIncomeOrganizationComponent-bijYf_Ae.js";
36
+ import { t as P } from "./StatusComponent-CmqMjhRY.js";
37
+ import { t as F } from "./FirstResponderOrganizationComponent-DUn8PxZo.js";
38
+ import { t as I } from "./LicensedProfessionalOrganizationComponent-C43VAUdy.js";
39
+ import { t as he } from "./MedicalProfessionalOrganizationComponent-CMDxCj_U.js";
40
+ import { t as L } from "./MemberIdComponent-B9vrsE-q.js";
41
+ import { t as R } from "./MembershipOrganizationComponent-C5dWGUPp.js";
42
+ import { t as ge } from "./TeacherSchoolComponent-nB-dP00I.js";
43
+ import { t as _e } from "./SSN-0xlUI5ik.js";
44
44
  //#region src/components/StepCollectPersonalInfo/StepCollectPersonalInfoComponent.tsx
45
45
  var z = /* @__PURE__ */ e(s(), 1), B = c(), V = ({ verificationService: e }) => {
46
46
  let s = u(), c = e.viewModel, { updateViewModel: V } = e, [H, ve] = z.useState(void 0), U = (e) => H && H.some((t) => t.key === e), { fieldValidationErrors: W } = e, G = e.verificationResponse, ye = re(G), K = (e, t) => {