@sheerid/jslib-nightly 2.259.0-alpha.1 → 2.259.0-alpha.3

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 (399) hide show
  1. package/_mysheerid-preview.css +3 -3
  2. package/_mysheerid-preview.js +3931 -1402
  3. package/_mysheerid-preview.js.map +1 -1
  4. package/chunk/{AddressComponent-RKH3wkuU.js → AddressComponent-CJV3vrMt.js} +6 -6
  5. package/chunk/{AddressComponent-CN9VzjhI.js.map → AddressComponent-CJV3vrMt.js.map} +1 -1
  6. package/chunk/{AddressComponent-CN9VzjhI.js → AddressComponent-DMwOmjiG.js} +4 -4
  7. package/chunk/{AddressComponent-RKH3wkuU.js.map → AddressComponent-DMwOmjiG.js.map} +1 -1
  8. package/chunk/{AnnouncingHeader-BZreAj2L.js → AnnouncingHeader-BF69hVVm.js} +5 -5
  9. package/chunk/{AnnouncingHeader-BZreAj2L.js.map → AnnouncingHeader-BF69hVVm.js.map} +1 -1
  10. package/chunk/AnnouncingHeader-DjgtqEeX.js +3 -3
  11. package/chunk/{ApiUrls-DNPrws1D.js → ApiUrls-D95iKOSI.js} +12 -12
  12. package/chunk/{ApiUrls-DNPrws1D.js.map → ApiUrls-D95iKOSI.js.map} +1 -1
  13. package/chunk/{ApiUrls-MjYrUy5O.js → ApiUrls-jsXRjACf.js} +4 -4
  14. package/chunk/{ApiUrls-MjYrUy5O.js.map → ApiUrls-jsXRjACf.js.map} +1 -1
  15. package/chunk/{BirthDateComponent-Dx9Zgnrr.js → BirthDateComponent-BHSI0CUp.js} +5 -5
  16. package/chunk/{BirthDateComponent-25k9Dw8L.js.map → BirthDateComponent-BHSI0CUp.js.map} +1 -1
  17. package/chunk/{BirthDateComponent-25k9Dw8L.js → BirthDateComponent-DqkkSB42.js} +7 -7
  18. package/chunk/{BirthDateComponent-Dx9Zgnrr.js.map → BirthDateComponent-DqkkSB42.js.map} +1 -1
  19. package/chunk/{CaptchaComponent-DA4ytPM2.js → CaptchaComponent-B2bCn0HL.js} +14 -14
  20. package/chunk/{CaptchaComponent-DA4ytPM2.js.map → CaptchaComponent-B2bCn0HL.js.map} +1 -1
  21. package/chunk/{CaptchaComponent-DZNI_Mdp.js → CaptchaComponent-pa2v-Kv1.js} +94 -94
  22. package/chunk/{CaptchaComponent-DZNI_Mdp.js.map → CaptchaComponent-pa2v-Kv1.js.map} +1 -1
  23. package/chunk/{ChangeLocaleComponent-COGR4N31.js → ChangeLocaleComponent-CP_kEafQ.js} +7 -7
  24. package/chunk/{ChangeLocaleComponent-COGR4N31.js.map → ChangeLocaleComponent-CP_kEafQ.js.map} +1 -1
  25. package/chunk/{ChangeLocaleComponent-DPIcEDOe.js → ChangeLocaleComponent-Cy07cdJk.js} +5 -5
  26. package/chunk/{ChangeLocaleComponent-DPIcEDOe.js.map → ChangeLocaleComponent-Cy07cdJk.js.map} +1 -1
  27. package/chunk/{City-BHrlkpMX.js → City-CmO85Z9x.js} +4 -4
  28. package/chunk/{City-BHrlkpMX.js.map → City-CmO85Z9x.js.map} +1 -1
  29. package/chunk/{City-BbRIAxOR.js → City-DlWin4GX.js} +6 -6
  30. package/chunk/{City-BbRIAxOR.js.map → City-DlWin4GX.js.map} +1 -1
  31. package/chunk/{CollegeNameComponent-DXmseJtL.js → CollegeNameComponent-Cz9Us9RM.js} +8 -8
  32. package/chunk/{CollegeNameComponent-Bu2ei2eB.js.map → CollegeNameComponent-Cz9Us9RM.js.map} +1 -1
  33. package/chunk/{CollegeNameComponent-Bu2ei2eB.js → CollegeNameComponent-wdFkAFsj.js} +5 -5
  34. package/chunk/{CollegeNameComponent-DXmseJtL.js.map → CollegeNameComponent-wdFkAFsj.js.map} +1 -1
  35. package/chunk/CopyToClipboardComponent-1BeB_oX_.js +3 -3
  36. package/chunk/{CopyToClipboardComponent-6MY3v7_-.js → CopyToClipboardComponent-C1BnmvlK.js} +8 -8
  37. package/chunk/{CopyToClipboardComponent-6MY3v7_-.js.map → CopyToClipboardComponent-C1BnmvlK.js.map} +1 -1
  38. package/chunk/CountryComponentWrapper-AaraHOGX.js +78 -0
  39. package/chunk/{CountryComponentWrapper-CQ6ZT9lg.js.map → CountryComponentWrapper-AaraHOGX.js.map} +1 -1
  40. package/chunk/{CountryComponentWrapper-CQ6ZT9lg.js → CountryComponentWrapper-BHYHjLHh.js} +9 -9
  41. package/chunk/{CountryComponentWrapper-CRF7oKmW.js.map → CountryComponentWrapper-BHYHjLHh.js.map} +1 -1
  42. package/chunk/{DischargeDateComponent-Dylz_5IN.js → DischargeDateComponent-BrziTMXL.js} +18 -18
  43. package/chunk/{DischargeDateComponent-dn8Ym3Oc.js.map → DischargeDateComponent-BrziTMXL.js.map} +1 -1
  44. package/chunk/{DischargeDateComponent-dn8Ym3Oc.js → DischargeDateComponent-d85FApuP.js} +7 -7
  45. package/chunk/{DischargeDateComponent-Dylz_5IN.js.map → DischargeDateComponent-d85FApuP.js.map} +1 -1
  46. package/chunk/{DriverLicenseNumberComponent-LxBCJTvz.js → DriverLicenseNumberComponent-D8q18o2M.js} +6 -6
  47. package/chunk/{DriverLicenseNumberComponent-1Nm_kmd6.js.map → DriverLicenseNumberComponent-D8q18o2M.js.map} +1 -1
  48. package/chunk/{DriverLicenseNumberComponent-1Nm_kmd6.js → DriverLicenseNumberComponent-DgXMM-Pt.js} +4 -4
  49. package/chunk/{DriverLicenseNumberComponent-LxBCJTvz.js.map → DriverLicenseNumberComponent-DgXMM-Pt.js.map} +1 -1
  50. package/chunk/EmailLoopPending-BBrkjClD.js +136 -0
  51. package/chunk/EmailLoopPending-BBrkjClD.js.map +1 -0
  52. package/chunk/{EmailLoopPending-MXkvNNP8.js → EmailLoopPending-CFh6KYhR.js} +53 -54
  53. package/chunk/EmailLoopPending-CFh6KYhR.js.map +1 -0
  54. package/chunk/{ExtraMessage-Roxhs2rt.js → ExtraMessage-BYLbcc4O.js} +6 -6
  55. package/chunk/{ExtraMessage-DeL_Wn33.js.map → ExtraMessage-BYLbcc4O.js.map} +1 -1
  56. package/chunk/{ExtraMessage-DeL_Wn33.js → ExtraMessage-DuEKh0WN.js} +4 -4
  57. package/chunk/{ExtraMessage-Roxhs2rt.js.map → ExtraMessage-DuEKh0WN.js.map} +1 -1
  58. package/chunk/{FirstResponderOrganizationComponent-DFJEAN8k.js → FirstResponderOrganizationComponent-Bm-LyjdU.js} +5 -5
  59. package/chunk/{FirstResponderOrganizationComponent-CaU7VuhG.js.map → FirstResponderOrganizationComponent-Bm-LyjdU.js.map} +1 -1
  60. package/chunk/{FirstResponderOrganizationComponent-CaU7VuhG.js → FirstResponderOrganizationComponent-DlrpOY2c.js} +7 -7
  61. package/chunk/{FirstResponderOrganizationComponent-DFJEAN8k.js.map → FirstResponderOrganizationComponent-DlrpOY2c.js.map} +1 -1
  62. package/chunk/{FormFieldInputSelect-BaD_qpOw.js → FormFieldInputSelect-CcSfBZU4.js} +4 -4
  63. package/chunk/{FormFieldInputSelect-BaD_qpOw.js.map → FormFieldInputSelect-CcSfBZU4.js.map} +1 -1
  64. package/chunk/{FormFieldInputSelect-CSqp8aHf.js → FormFieldInputSelect-DFoefspo.js} +6 -6
  65. package/chunk/{FormFieldInputSelect-CSqp8aHf.js.map → FormFieldInputSelect-DFoefspo.js.map} +1 -1
  66. package/chunk/{FormFieldLayout-CUA-PItd.js → FormFieldLayout-BpmeMD4X.js} +5 -5
  67. package/chunk/{FormFieldLayout-CUA-PItd.js.map → FormFieldLayout-BpmeMD4X.js.map} +1 -1
  68. package/chunk/FormFieldLayout-DIcCOsGu.js +3 -3
  69. package/chunk/FormFieldText-zjWk7Cyc.js +3 -3
  70. package/chunk/{FormFieldText-BeEhq8Kc.js → FormFieldText-zuTjfmLt.js} +6 -6
  71. package/chunk/{FormFieldText-BeEhq8Kc.js.map → FormFieldText-zuTjfmLt.js.map} +1 -1
  72. package/chunk/{FormFieldTypeahead-C3gO98J5.js → FormFieldTypeahead-C6c2tZjB.js} +455 -456
  73. package/chunk/{FormFieldTypeahead-C3gO98J5.js.map → FormFieldTypeahead-C6c2tZjB.js.map} +1 -1
  74. package/chunk/{FormFieldTypeahead-BvcKAdzA.js → FormFieldTypeahead-CWBTzGT7.js} +498 -499
  75. package/chunk/{FormFieldTypeahead-BvcKAdzA.js.map → FormFieldTypeahead-CWBTzGT7.js.map} +1 -1
  76. package/chunk/{FormFooterComponent-DcilxYfs.js → FormFooterComponent-BvXzhu3G.js} +2114 -2045
  77. package/chunk/FormFooterComponent-BvXzhu3G.js.map +1 -0
  78. package/chunk/{FormFooterComponent-Cobuya5J.js → FormFooterComponent-CU9v96Pk.js} +1333 -1252
  79. package/chunk/FormFooterComponent-CU9v96Pk.js.map +1 -0
  80. package/chunk/{FormSelectChoice-Dz_8_0v1.js → FormSelectChoice-C1rXawoW.js} +5 -5
  81. package/chunk/{FormSelectChoice-DjQUf_kR.js.map → FormSelectChoice-C1rXawoW.js.map} +1 -1
  82. package/chunk/{FormSelectChoice-DjQUf_kR.js → FormSelectChoice-De4VW65J.js} +17 -17
  83. package/chunk/{FormSelectChoice-Dz_8_0v1.js.map → FormSelectChoice-De4VW65J.js.map} +1 -1
  84. package/chunk/InputText-Bzkl8mKj.js +3 -3
  85. package/chunk/{InputText-CkDvaW9P.js → InputText-DA8wfbQM.js} +6 -6
  86. package/chunk/{InputText-CkDvaW9P.js.map → InputText-DA8wfbQM.js.map} +1 -1
  87. package/chunk/{LicensedProfessionalOrganizationComponent-D40O0mHv.js → LicensedProfessionalOrganizationComponent-DDLl3nm2.js} +7 -7
  88. package/chunk/{LicensedProfessionalOrganizationComponent-D40O0mHv.js.map → LicensedProfessionalOrganizationComponent-DDLl3nm2.js.map} +1 -1
  89. package/chunk/{LicensedProfessionalOrganizationComponent-BFIo2AVu.js → LicensedProfessionalOrganizationComponent-DWw7sAA_.js} +5 -5
  90. package/chunk/{LicensedProfessionalOrganizationComponent-BFIo2AVu.js.map → LicensedProfessionalOrganizationComponent-DWw7sAA_.js.map} +1 -1
  91. package/chunk/LogoComponent-BMeuu-aK.js +3 -3
  92. package/chunk/{LogoComponent-CFPoRk_q.js → LogoComponent-BxIXOXCM.js} +5 -5
  93. package/chunk/{LogoComponent-CFPoRk_q.js.map → LogoComponent-BxIXOXCM.js.map} +1 -1
  94. package/chunk/{LowIncomeOrganizationComponent-M-jIQ5Gq.js → LowIncomeOrganizationComponent-Js2hdcpd.js} +20 -20
  95. package/chunk/{LowIncomeOrganizationComponent-M-jIQ5Gq.js.map → LowIncomeOrganizationComponent-Js2hdcpd.js.map} +1 -1
  96. package/chunk/{LowIncomeOrganizationComponent-RtTN7yos.js → LowIncomeOrganizationComponent-pg41N7jZ.js} +9 -9
  97. package/chunk/{LowIncomeOrganizationComponent-RtTN7yos.js.map → LowIncomeOrganizationComponent-pg41N7jZ.js.map} +1 -1
  98. package/chunk/{MedicalProfessionalOrganizationComponent-BRXUpSBl.js → MedicalProfessionalOrganizationComponent-BiAMjeYg.js} +5 -5
  99. package/chunk/{MedicalProfessionalOrganizationComponent-BRXUpSBl.js.map → MedicalProfessionalOrganizationComponent-BiAMjeYg.js.map} +1 -1
  100. package/chunk/{MedicalProfessionalOrganizationComponent-QOUo82Ey.js → MedicalProfessionalOrganizationComponent-CG94dxGF.js} +7 -7
  101. package/chunk/{MedicalProfessionalOrganizationComponent-QOUo82Ey.js.map → MedicalProfessionalOrganizationComponent-CG94dxGF.js.map} +1 -1
  102. package/chunk/{MemberIdComponent-D4U9CjTr.js → MemberIdComponent-DMGaNM9l.js} +6 -6
  103. package/chunk/{MemberIdComponent-D4U9CjTr.js.map → MemberIdComponent-DMGaNM9l.js.map} +1 -1
  104. package/chunk/{MemberIdComponent-DOikwfIV.js → MemberIdComponent-Dva2Xx7J.js} +4 -4
  105. package/chunk/{MemberIdComponent-DOikwfIV.js.map → MemberIdComponent-Dva2Xx7J.js.map} +1 -1
  106. package/chunk/{MembershipOrganizationComponent-CisdewfJ.js → MembershipOrganizationComponent-B4sltAFs.js} +5 -5
  107. package/chunk/{MembershipOrganizationComponent-CisdewfJ.js.map → MembershipOrganizationComponent-B4sltAFs.js.map} +1 -1
  108. package/chunk/{MembershipOrganizationComponent-D02G3scF.js → MembershipOrganizationComponent-DqdtAn4g.js} +7 -7
  109. package/chunk/{MembershipOrganizationComponent-D02G3scF.js.map → MembershipOrganizationComponent-DqdtAn4g.js.map} +1 -1
  110. package/chunk/Onfido-CTCgAwnB.js +3 -3
  111. package/chunk/{PersonalInfoStepSubmitButton-i0P1DpyZ.js → PersonalInfoStepSubmitButton-D3lzSm2E.js} +22 -22
  112. package/chunk/{PersonalInfoStepSubmitButton-i0P1DpyZ.js.map → PersonalInfoStepSubmitButton-D3lzSm2E.js.map} +1 -1
  113. package/chunk/{PersonalInfoStepSubmitButton-Byqc8ilE.js → PersonalInfoStepSubmitButton-Ywai8bYu.js} +10 -10
  114. package/chunk/{PersonalInfoStepSubmitButton-Byqc8ilE.js.map → PersonalInfoStepSubmitButton-Ywai8bYu.js.map} +1 -1
  115. package/chunk/{PersonalInfoStepWrapper-BpxtlGxV.js → PersonalInfoStepWrapper-CfEXVPIa.js} +7 -7
  116. package/chunk/{PersonalInfoStepWrapper-BpxtlGxV.js.map → PersonalInfoStepWrapper-CfEXVPIa.js.map} +1 -1
  117. package/chunk/{PersonalInfoStepWrapper-VYXPs068.js → PersonalInfoStepWrapper-lbTtms4r.js} +4 -4
  118. package/chunk/{PersonalInfoStepWrapper-VYXPs068.js.map → PersonalInfoStepWrapper-lbTtms4r.js.map} +1 -1
  119. package/chunk/{PostalCodeComponent-DwnHo2aW.js → PostalCodeComponent-BGzBByZd.js} +6 -6
  120. package/chunk/{PostalCodeComponent-DwnHo2aW.js.map → PostalCodeComponent-BGzBByZd.js.map} +1 -1
  121. package/chunk/{PostalCodeComponent-hDSZecsX.js → PostalCodeComponent-C97fgZFI.js} +4 -4
  122. package/chunk/{PostalCodeComponent-hDSZecsX.js.map → PostalCodeComponent-C97fgZFI.js.map} +1 -1
  123. package/chunk/{SSN-_mJmp2Gg.js → SSN-CNzKgddw.js} +7 -7
  124. package/chunk/{SSN-B9b4KlAr.js.map → SSN-CNzKgddw.js.map} +1 -1
  125. package/chunk/{SSN-B9b4KlAr.js → SSN-mk_cMbDH.js} +4 -4
  126. package/chunk/{SSN-_mJmp2Gg.js.map → SSN-mk_cMbDH.js.map} +1 -1
  127. package/chunk/{StateSelectComponent-D26TjOAn.js → StateSelectComponent-C6R9Cjgi.js} +5 -5
  128. package/chunk/{StateSelectComponent-D26TjOAn.js.map → StateSelectComponent-C6R9Cjgi.js.map} +1 -1
  129. package/chunk/{StateSelectComponent-DGQL388D.js → StateSelectComponent-DVR-oYsL.js} +4 -4
  130. package/chunk/{StateSelectComponent-DGQL388D.js.map → StateSelectComponent-DVR-oYsL.js.map} +1 -1
  131. package/chunk/{StatusComponent-XLL7x50K.js → StatusComponent-DS5eysat.js} +5 -5
  132. package/chunk/{StatusComponent-Dv3frckJ.js.map → StatusComponent-DS5eysat.js.map} +1 -1
  133. package/chunk/{StatusComponent-Dv3frckJ.js → StatusComponent-VG5PRT7W.js} +7 -7
  134. package/chunk/{StatusComponent-XLL7x50K.js.map → StatusComponent-VG5PRT7W.js.map} +1 -1
  135. package/chunk/{StepActiveMilitaryPersonalInfoComponent-B-obfX5s.js → StepActiveMilitaryPersonalInfoComponent-CLHSV6aV.js} +47 -51
  136. package/chunk/{StepActiveMilitaryPersonalInfoComponent-B-obfX5s.js.map → StepActiveMilitaryPersonalInfoComponent-CLHSV6aV.js.map} +1 -1
  137. package/chunk/{StepActiveMilitaryPersonalInfoComponent-CoGJXuid.js → StepActiveMilitaryPersonalInfoComponent-CsydoggY.js} +25 -21
  138. package/chunk/{StepActiveMilitaryPersonalInfoComponent-CoGJXuid.js.map → StepActiveMilitaryPersonalInfoComponent-CsydoggY.js.map} +1 -1
  139. package/chunk/{StepAgePersonalInfo-BTdUm8M1.js → StepAgePersonalInfo-DW1ElYsy.js} +39 -39
  140. package/chunk/{StepAgePersonalInfo-BTdUm8M1.js.map → StepAgePersonalInfo-DW1ElYsy.js.map} +1 -1
  141. package/chunk/StepAgePersonalInfo-DlOA9WFp.js +173 -0
  142. package/chunk/{StepAgePersonalInfo-KeuFdZua.js.map → StepAgePersonalInfo-DlOA9WFp.js.map} +1 -1
  143. package/chunk/StepCard-7t2vkHqM.js +3 -3
  144. package/chunk/{StepCard-BF_RD7Rd.js → StepCard-BtvCt-ND.js} +4 -4
  145. package/chunk/{StepCard-BF_RD7Rd.js.map → StepCard-BtvCt-ND.js.map} +1 -1
  146. package/chunk/{StepCollectIdentifier-aSTN2D3f.js → StepCollectIdentifier-BitqCn5S.js} +8 -8
  147. package/chunk/{StepCollectIdentifier-Cr5cRjes.js.map → StepCollectIdentifier-BitqCn5S.js.map} +1 -1
  148. package/chunk/{StepCollectIdentifier-Cr5cRjes.js → StepCollectIdentifier-iokOENmH.js} +10 -10
  149. package/chunk/{StepCollectIdentifier-aSTN2D3f.js.map → StepCollectIdentifier-iokOENmH.js.map} +1 -1
  150. package/chunk/{StepCollectMilitaryStatusComponent-5RzFVxA_.js → StepCollectMilitaryStatusComponent-DSl_NI5F.js} +4 -4
  151. package/chunk/StepCollectMilitaryStatusComponent-FkrZTfgt.js +9 -0
  152. package/chunk/StepCollectPersonalInfo-BsRPrpbi.js +361 -0
  153. package/chunk/{StepCollectPersonalInfo-BVd72Idl.js.map → StepCollectPersonalInfo-BsRPrpbi.js.map} +1 -1
  154. package/chunk/{StepCollectPersonalInfo-D75Yctan.js → StepCollectPersonalInfo-D_E9jueP.js} +87 -87
  155. package/chunk/{StepCollectPersonalInfo-D75Yctan.js.map → StepCollectPersonalInfo-D_E9jueP.js.map} +1 -1
  156. package/chunk/{StepCompleteAuthentication-CYsu3UXL.js → StepCompleteAuthentication-C2HoMZzF.js} +50 -51
  157. package/chunk/StepCompleteAuthentication-C2HoMZzF.js.map +1 -0
  158. package/chunk/{StepCompleteAuthentication-CmOEE_s5.js → StepCompleteAuthentication-Cs4zhI-D.js} +42 -43
  159. package/chunk/StepCompleteAuthentication-Cs4zhI-D.js.map +1 -0
  160. package/chunk/{StepConsolation-Bm7fMyFo.js → StepConsolation-C4z3-RUr.js} +4 -4
  161. package/chunk/{StepConsolation-Bm7fMyFo.js.map → StepConsolation-C4z3-RUr.js.map} +1 -1
  162. package/chunk/{StepConsolation-euaYpjbw.js → StepConsolation-CIsDgtMF.js} +8 -8
  163. package/chunk/{StepConsolation-euaYpjbw.js.map → StepConsolation-CIsDgtMF.js.map} +1 -1
  164. package/chunk/{StepDocUpload-Fi16blpY.js → StepDocUpload-DB-j-bu5.js} +40 -40
  165. package/chunk/{StepDocUpload-Dc986T4y.js.map → StepDocUpload-DB-j-bu5.js.map} +1 -1
  166. package/chunk/{StepDocUpload-Dc986T4y.js → StepDocUpload-QrHXh8mp.js} +242 -242
  167. package/chunk/{StepDocUpload-Fi16blpY.js.map → StepDocUpload-QrHXh8mp.js.map} +1 -1
  168. package/chunk/{StepDriverLicensePersonalInfoComponent-DnbKIy4f.js → StepDriverLicensePersonalInfoComponent-bh1_IVPF.js} +19 -15
  169. package/chunk/{StepDriverLicensePersonalInfoComponent-DnbKIy4f.js.map → StepDriverLicensePersonalInfoComponent-bh1_IVPF.js.map} +1 -1
  170. package/chunk/{StepDriverLicensePersonalInfoComponent-AvcQyGDT.js → StepDriverLicensePersonalInfoComponent-siLTyqlG.js} +32 -36
  171. package/chunk/{StepDriverLicensePersonalInfoComponent-AvcQyGDT.js.map → StepDriverLicensePersonalInfoComponent-siLTyqlG.js.map} +1 -1
  172. package/chunk/{StepEmailLoop-7EwsfbG2.js → StepEmailLoop-BPyFeeyk.js} +46 -47
  173. package/chunk/StepEmailLoop-BPyFeeyk.js.map +1 -0
  174. package/chunk/{StepEmailLoop-CLIGNsCO.js → StepEmailLoop-CLgXP9PF.js} +51 -52
  175. package/chunk/StepEmailLoop-CLgXP9PF.js.map +1 -0
  176. package/chunk/{StepEmploymentPersonalInfo-sQLnckQP.js → StepEmploymentPersonalInfo-BhfN1Swc.js} +22 -18
  177. package/chunk/{StepEmploymentPersonalInfo-CMJwlqZ5.js.map → StepEmploymentPersonalInfo-BhfN1Swc.js.map} +1 -1
  178. package/chunk/{StepEmploymentPersonalInfo-CMJwlqZ5.js → StepEmploymentPersonalInfo-D3OVzQfH.js} +44 -48
  179. package/chunk/{StepEmploymentPersonalInfo-sQLnckQP.js.map → StepEmploymentPersonalInfo-D3OVzQfH.js.map} +1 -1
  180. package/chunk/{StepFirstResponderPersonalInfo-BZVQnECv.js → StepFirstResponderPersonalInfo-CJ_OFUC1.js} +37 -37
  181. package/chunk/{StepFirstResponderPersonalInfo-BZVQnECv.js.map → StepFirstResponderPersonalInfo-CJ_OFUC1.js.map} +1 -1
  182. package/chunk/{StepFirstResponderPersonalInfo-De-yFa-l.js → StepFirstResponderPersonalInfo-Uj_HyOUK.js} +42 -42
  183. package/chunk/{StepFirstResponderPersonalInfo-De-yFa-l.js.map → StepFirstResponderPersonalInfo-Uj_HyOUK.js.map} +1 -1
  184. package/chunk/{StepGeneralIdentityPersonalInfoComponent-D2xY36MO.js → StepGeneralIdentityPersonalInfoComponent-BA1NUm7h.js} +22 -18
  185. package/chunk/{StepGeneralIdentityPersonalInfoComponent-D2xY36MO.js.map → StepGeneralIdentityPersonalInfoComponent-BA1NUm7h.js.map} +1 -1
  186. package/chunk/{StepGeneralIdentityPersonalInfoComponent-mSxJaDUA.js → StepGeneralIdentityPersonalInfoComponent-DhXG5JLx.js} +41 -45
  187. package/chunk/{StepGeneralIdentityPersonalInfoComponent-mSxJaDUA.js.map → StepGeneralIdentityPersonalInfoComponent-DhXG5JLx.js.map} +1 -1
  188. package/chunk/{StepHybridIdentityPersonalInfoComponent-CPPuZYu5.js → StepHybridIdentityPersonalInfoComponent-BGO0rNuA.js} +23 -19
  189. package/chunk/{StepHybridIdentityPersonalInfoComponent-CPPuZYu5.js.map → StepHybridIdentityPersonalInfoComponent-BGO0rNuA.js.map} +1 -1
  190. package/chunk/{StepHybridIdentityPersonalInfoComponent-pmo1wXVQ.js → StepHybridIdentityPersonalInfoComponent-DL_yTP9w.js} +44 -48
  191. package/chunk/{StepHybridIdentityPersonalInfoComponent-pmo1wXVQ.js.map → StepHybridIdentityPersonalInfoComponent-DL_yTP9w.js.map} +1 -1
  192. package/chunk/{StepIDCheckLoop-C7UAES2n.js → StepIDCheckLoop-1S7sp1g_.js} +8 -8
  193. package/chunk/{StepIDCheckLoop-C7UAES2n.js.map → StepIDCheckLoop-1S7sp1g_.js.map} +1 -1
  194. package/chunk/{StepIDCheckLoop-DPbA9LaQ.js → StepIDCheckLoop-D6leD-oX.js} +5 -5
  195. package/chunk/{StepIDCheckLoop-DPbA9LaQ.js.map → StepIDCheckLoop-D6leD-oX.js.map} +1 -1
  196. package/chunk/{StepIDCheckLoopOnfido-CfscUwrA.js → StepIDCheckLoopOnfido-DS62i7yb.js} +40 -40
  197. package/chunk/{StepIDCheckLoopOnfido-CGFbgPNl.js.map → StepIDCheckLoopOnfido-DS62i7yb.js.map} +1 -1
  198. package/chunk/{StepIDCheckLoopOnfido-CGFbgPNl.js → StepIDCheckLoopOnfido-NLKVzJV1.js} +7 -7
  199. package/chunk/{StepIDCheckLoopOnfido-CfscUwrA.js.map → StepIDCheckLoopOnfido-NLKVzJV1.js.map} +1 -1
  200. package/chunk/{StepIDCheckLoopRegula-24zsl9hT.js → StepIDCheckLoopRegula-DeLb4d-j.js} +5 -5
  201. package/chunk/{StepIDCheckLoopRegula-24zsl9hT.js.map → StepIDCheckLoopRegula-DeLb4d-j.js.map} +1 -1
  202. package/chunk/{StepIDCheckLoopRegula-p9GQ7-mM.js → StepIDCheckLoopRegula-DpsuIVdU.js} +18 -18
  203. package/chunk/{StepIDCheckLoopRegula-p9GQ7-mM.js.map → StepIDCheckLoopRegula-DpsuIVdU.js.map} +1 -1
  204. package/chunk/{StepInactiveMilitaryPersonalInfoComponent-BCcxwwPz.js → StepInactiveMilitaryPersonalInfoComponent-BJg7kmzL.js} +33 -29
  205. package/chunk/{StepInactiveMilitaryPersonalInfoComponent-BCcxwwPz.js.map → StepInactiveMilitaryPersonalInfoComponent-BJg7kmzL.js.map} +1 -1
  206. package/chunk/{StepInactiveMilitaryPersonalInfoComponent-MKHFys80.js → StepInactiveMilitaryPersonalInfoComponent-ag9fYZ8M.js} +69 -73
  207. package/chunk/{StepInactiveMilitaryPersonalInfoComponent-MKHFys80.js.map → StepInactiveMilitaryPersonalInfoComponent-ag9fYZ8M.js.map} +1 -1
  208. package/chunk/{StepLicensedProfessionalPersonalInfo-Ba_hfFwF.js → StepLicensedProfessionalPersonalInfo-6e-HsF9r.js} +21 -17
  209. package/chunk/{StepLicensedProfessionalPersonalInfo-Ba_hfFwF.js.map → StepLicensedProfessionalPersonalInfo-6e-HsF9r.js.map} +1 -1
  210. package/chunk/{StepLicensedProfessionalPersonalInfo-DlJxyXZN.js → StepLicensedProfessionalPersonalInfo-CqCGJBV_.js} +37 -41
  211. package/chunk/{StepLicensedProfessionalPersonalInfo-DlJxyXZN.js.map → StepLicensedProfessionalPersonalInfo-CqCGJBV_.js.map} +1 -1
  212. package/chunk/{StepLowIncomePersonalInfo-Bh3kT1GO.js → StepLowIncomePersonalInfo-Vy6xgq87.js} +39 -35
  213. package/chunk/{StepLowIncomePersonalInfo-Bh3kT1GO.js.map → StepLowIncomePersonalInfo-Vy6xgq87.js.map} +1 -1
  214. package/chunk/{StepLowIncomePersonalInfo-hmb9pC8H.js → StepLowIncomePersonalInfo-nHj8RV6k.js} +63 -67
  215. package/chunk/{StepLowIncomePersonalInfo-hmb9pC8H.js.map → StepLowIncomePersonalInfo-nHj8RV6k.js.map} +1 -1
  216. package/chunk/{StepMedicalProfessionalPersonalInfo-BBQdw_WF.js → StepMedicalProfessionalPersonalInfo-BbkO8cmo.js} +48 -52
  217. package/chunk/{StepMedicalProfessionalPersonalInfo-BBQdw_WF.js.map → StepMedicalProfessionalPersonalInfo-BbkO8cmo.js.map} +1 -1
  218. package/chunk/{StepMedicalProfessionalPersonalInfo-CAViUdYI.js → StepMedicalProfessionalPersonalInfo-wrrupNWv.js} +28 -24
  219. package/chunk/{StepMedicalProfessionalPersonalInfo-CAViUdYI.js.map → StepMedicalProfessionalPersonalInfo-wrrupNWv.js.map} +1 -1
  220. package/chunk/{StepMemberPersonalInfo-CPcTjVm4.js → StepMemberPersonalInfo-Df9tiNq4.js} +20 -16
  221. package/chunk/{StepMemberPersonalInfo-CPcTjVm4.js.map → StepMemberPersonalInfo-Df9tiNq4.js.map} +1 -1
  222. package/chunk/StepMemberPersonalInfo-DzmzUubV.js +152 -0
  223. package/chunk/{StepMemberPersonalInfo-DzKpsoK8.js.map → StepMemberPersonalInfo-DzmzUubV.js.map} +1 -1
  224. package/chunk/StepMoverPersonalInfo-DtYxf5Tv.js +139 -0
  225. package/chunk/{StepMoverPersonalInfo-CLcsD8p7.js.map → StepMoverPersonalInfo-DtYxf5Tv.js.map} +1 -1
  226. package/chunk/{StepMoverPersonalInfo-CLcsD8p7.js → StepMoverPersonalInfo-QpfjD_c6.js} +18 -14
  227. package/chunk/{StepMoverPersonalInfo-DIspTifw.js.map → StepMoverPersonalInfo-QpfjD_c6.js.map} +1 -1
  228. package/chunk/{StepOverrideComponent-DbbQq6nF.js → StepOverrideComponent-CD6SjHRm.js} +41 -41
  229. package/chunk/StepOverrideComponent-CD6SjHRm.js.map +1 -0
  230. package/chunk/{StepOverrideComponent-67Wl2Ic3.js → StepOverrideComponent-D4YkXhso.js} +37 -37
  231. package/chunk/StepOverrideComponent-D4YkXhso.js.map +1 -0
  232. package/chunk/{StepSMSLoop-DbvJTafU.js → StepSMSLoop-DPthV2Lc.js} +18 -18
  233. package/chunk/{StepSMSLoop-DU91kmZw.js.map → StepSMSLoop-DPthV2Lc.js.map} +1 -1
  234. package/chunk/{StepSMSLoop-DU91kmZw.js → StepSMSLoop-DfmUZBbW.js} +4 -4
  235. package/chunk/{StepSMSLoop-DbvJTafU.js.map → StepSMSLoop-DfmUZBbW.js.map} +1 -1
  236. package/chunk/StepSSO-BRFhNvkp.js +9 -0
  237. package/chunk/{StepSSO-Bp-M6Mod.js → StepSSO-BaFk7RFJ.js} +4 -4
  238. package/chunk/{StepSocialSecurityNumber-DK4msVLI.js → StepSocialSecurityNumber-CGpWJ3oN.js} +9 -9
  239. package/chunk/{StepSocialSecurityNumber-CbSszHk8.js.map → StepSocialSecurityNumber-CGpWJ3oN.js.map} +1 -1
  240. package/chunk/{StepSocialSecurityNumber-CbSszHk8.js → StepSocialSecurityNumber-DxFxaZ2R.js} +26 -26
  241. package/chunk/{StepSocialSecurityNumber-DK4msVLI.js.map → StepSocialSecurityNumber-DxFxaZ2R.js.map} +1 -1
  242. package/chunk/{StepStudentPersonalInfo-CCxT9FDI.js → StepStudentPersonalInfo-DFTqKs_m.js} +36 -37
  243. package/chunk/{StepStudentPersonalInfo-BJlc0JF0.js.map → StepStudentPersonalInfo-DFTqKs_m.js.map} +1 -1
  244. package/chunk/{StepStudentPersonalInfo-BJlc0JF0.js → StepStudentPersonalInfo-DgYva1Rh.js} +72 -73
  245. package/chunk/{StepStudentPersonalInfo-CCxT9FDI.js.map → StepStudentPersonalInfo-DgYva1Rh.js.map} +1 -1
  246. package/chunk/{StepSuccess-DOWQrS9p.js → StepSuccess-BHqTjF_1.js} +71 -72
  247. package/chunk/StepSuccess-BHqTjF_1.js.map +1 -0
  248. package/chunk/{StepSuccess-DkoWskiv.js → StepSuccess-C6kBfGWn.js} +82 -83
  249. package/chunk/StepSuccess-C6kBfGWn.js.map +1 -0
  250. package/chunk/{StepTeacherPersonalInfo-CPk_P26g.js → StepTeacherPersonalInfo-BxaaxkGP.js} +21 -17
  251. package/chunk/{StepTeacherPersonalInfo-CPk_P26g.js.map → StepTeacherPersonalInfo-BxaaxkGP.js.map} +1 -1
  252. package/chunk/StepTeacherPersonalInfo-a_hD0tId.js +149 -0
  253. package/chunk/{StepTeacherPersonalInfo-CW71f8l7.js.map → StepTeacherPersonalInfo-a_hD0tId.js.map} +1 -1
  254. package/chunk/{StepThirdPartyLoop-CbFTIlwP.js → StepThirdPartyLoop-BGHCbduX.js} +4 -4
  255. package/chunk/StepThirdPartyLoop-ZHByQpHa.js +9 -0
  256. package/chunk/{TeacherSchoolComponent-DrN1Py8h.js → TeacherSchoolComponent-DSNAhVx8.js} +8 -8
  257. package/chunk/{TeacherSchoolComponent-DrN1Py8h.js.map → TeacherSchoolComponent-DSNAhVx8.js.map} +1 -1
  258. package/chunk/{TeacherSchoolComponent-BkMlrpPJ.js → TeacherSchoolComponent-d1XeOQ1I.js} +5 -5
  259. package/chunk/{TeacherSchoolComponent-BkMlrpPJ.js.map → TeacherSchoolComponent-d1XeOQ1I.js.map} +1 -1
  260. package/chunk/TestingRouteOverrides-B-zcTBa_.js +3 -3
  261. package/chunk/TestingRouteOverrides-BDCygTLC.js +81 -0
  262. package/chunk/{TestingRouteOverrides-DCR0qXVH.js.map → TestingRouteOverrides-BDCygTLC.js.map} +1 -1
  263. package/chunk/ThreatMetrix-D_TbL50B.js +3 -3
  264. package/chunk/{VerificationApiClient-xgUCQ1gs.js → VerificationApiClient-Cx1SikK8.js} +140 -140
  265. package/chunk/{VerificationApiClient-xgUCQ1gs.js.map → VerificationApiClient-Cx1SikK8.js.map} +1 -1
  266. package/chunk/{VerificationApiClient-CVR-bKWg.js → VerificationApiClient-Dbi5PEQ8.js} +4 -4
  267. package/chunk/{VerificationApiClient-CVR-bKWg.js.map → VerificationApiClient-Dbi5PEQ8.js.map} +1 -1
  268. package/chunk/{VerificationApiUtils-COM2VOcB.js → VerificationApiUtils-CtfMQ7a_.js} +6 -6
  269. package/chunk/{VerificationApiUtils-COM2VOcB.js.map → VerificationApiUtils-CtfMQ7a_.js.map} +1 -1
  270. package/chunk/{VerificationApiUtils-OKRnuWj4.js → VerificationApiUtils-y5gjtrYk.js} +5 -5
  271. package/chunk/{VerificationApiUtils-OKRnuWj4.js.map → VerificationApiUtils-y5gjtrYk.js.map} +1 -1
  272. package/chunk/ar-wkBEXxD9.js +3 -3
  273. package/chunk/bg-D2-seofX.js +3 -3
  274. package/chunk/bn-IN-B5PyYaJU.js +3 -3
  275. package/chunk/{countryUtils-BAFwHnuu.js → countryUtils-D2UBy7Uo.js} +4 -4
  276. package/chunk/{countryUtils-BAFwHnuu.js.map → countryUtils-D2UBy7Uo.js.map} +1 -1
  277. package/chunk/countryUtils-QSjR1rBI.js +3 -3
  278. package/chunk/cs-CsEnIopo.js +3 -3
  279. package/chunk/da-Da-m3VU_.js +3 -3
  280. package/chunk/de-BSoD5U3-.js +3 -3
  281. package/chunk/{downshift.esm-D4-Qs4ci.js → downshift.esm-ChSUVkrQ.js} +40 -40
  282. package/chunk/{downshift.esm-Cy12VCIv.js.map → downshift.esm-ChSUVkrQ.js.map} +1 -1
  283. package/chunk/{downshift.esm-Cy12VCIv.js → downshift.esm-DVcQrgG5.js} +121 -121
  284. package/chunk/{downshift.esm-D4-Qs4ci.js.map → downshift.esm-DVcQrgG5.js.map} +1 -1
  285. package/chunk/el-CFa6y9Ri.js +3 -3
  286. package/chunk/empties-BIoZK05_.js +3 -3
  287. package/chunk/{empties-Ck9OJXHG.js → empties-DHvaWflk.js} +4 -4
  288. package/chunk/{empties-Ck9OJXHG.js.map → empties-DHvaWflk.js.map} +1 -1
  289. package/chunk/en-GB-V8XaGkaI.js +3 -3
  290. package/chunk/es-D18tLxcT.js +3 -3
  291. package/chunk/es-ES-7x2bVUQr.js +3 -3
  292. package/chunk/et-udrWMVlD.js +3 -3
  293. package/chunk/eventEmitter-CSG6jR7V.js +3 -3
  294. package/chunk/fa-DgwYULMs.js +3 -3
  295. package/chunk/fi-CkCWFGDC.js +3 -3
  296. package/chunk/fr-BprIFEa8.js +3 -3
  297. package/chunk/fr-CA-DrjICejr.js +3 -3
  298. package/chunk/ga-LaV5ZJgg.js +3 -3
  299. package/chunk/hi-IN-7dtEICYI.js +3 -3
  300. package/chunk/hr-2Bctl997.js +3 -3
  301. package/chunk/hu-BT0z6TPZ.js +3 -3
  302. package/chunk/id-BvyYep3X.js +3 -3
  303. package/chunk/{intl-aUfdCP8t.js → intl-Yr2cw5px.js} +4 -4
  304. package/chunk/{intl-aUfdCP8t.js.map → intl-Yr2cw5px.js.map} +1 -1
  305. package/chunk/is-DOsKfa80.js +3 -3
  306. package/chunk/it-3dX9AQk7.js +3 -3
  307. package/chunk/iw-5I90wqQ8.js +3 -3
  308. package/chunk/ja-CHdgbMgX.js +3 -3
  309. package/chunk/jsx-runtime-BknAqbDq.js +3 -3
  310. package/chunk/{jsx-runtime-XNwIsY_N.js → jsx-runtime-D_-z-h6n.js} +17 -17
  311. package/chunk/{jsx-runtime-XNwIsY_N.js.map → jsx-runtime-D_-z-h6n.js.map} +1 -1
  312. package/chunk/kk-BriyNfHL.js +3 -3
  313. package/chunk/ko-DsMaax3V.js +3 -3
  314. package/chunk/lo-CjASRmNr.js +3 -3
  315. package/chunk/lt-DF29E1de.js +3 -3
  316. package/chunk/lv-DlHBZyt-.js +3 -3
  317. package/chunk/{militaryStepHelpers-qMYyQgVn.js → militaryStepHelpers-DSh6iat_.js} +4 -4
  318. package/chunk/{militaryStepHelpers-qMYyQgVn.js.map → militaryStepHelpers-DSh6iat_.js.map} +1 -1
  319. package/chunk/militaryStepHelpers-UF-7lF1f.js +3 -3
  320. package/chunk/mocks-1r84in2Q.js +3 -3
  321. package/chunk/{mocks-fUTXc8-e.js → mocks-CKXq8CZk.js} +8 -8
  322. package/chunk/{mocks-fUTXc8-e.js.map → mocks-CKXq8CZk.js.map} +1 -1
  323. package/chunk/ms-B3vDtlFh.js +3 -3
  324. package/chunk/nl-BE-Dw1IGXuF.js +3 -3
  325. package/chunk/nl-Cqkrr5-r.js +3 -3
  326. package/chunk/no-876EdwkX.js +3 -3
  327. package/chunk/options-D19mRw5a.js +3 -3
  328. package/chunk/pl-B_G8s05-.js +3 -3
  329. package/chunk/programThemeGetters-Lz3L0Vh7.js +3 -3
  330. package/chunk/{programThemeGetters-CyMKyJao.js → programThemeGetters-iBty-gXI.js} +35 -35
  331. package/chunk/{programThemeGetters-CyMKyJao.js.map → programThemeGetters-iBty-gXI.js.map} +1 -1
  332. package/chunk/pt-BR-DWj043qk.js +3 -3
  333. package/chunk/pt-DckA3Jnn.js +3 -3
  334. package/chunk/refs-Bbe0gnJ3.js +3 -3
  335. package/chunk/{refs--ECXpllB.js → refs-C_tB1qMA.js} +4 -4
  336. package/chunk/{refs--ECXpllB.js.map → refs-C_tB1qMA.js.map} +1 -1
  337. package/chunk/ro-DukNcWCM.js +3 -3
  338. package/chunk/ru-RkdRQ7qb.js +3 -3
  339. package/chunk/sk-CPBgBtC5.js +3 -3
  340. package/chunk/sl-Cyj9PWmN.js +3 -3
  341. package/chunk/sr-Bm1GVW8m.js +3 -3
  342. package/chunk/strings-DWLVdUcm.js +3 -3
  343. package/chunk/sv-CcMmeZrG.js +3 -3
  344. package/chunk/sw-BPvl1ou6.js +3 -3
  345. package/chunk/ta-BPEH7IlE.js +3 -3
  346. package/chunk/th-Dd912RL5.js +3 -3
  347. package/chunk/tl-J_TdpjQz.js +3 -3
  348. package/chunk/tr-B-GrrJj0.js +3 -3
  349. package/chunk/uk-MohyvT_n.js +3 -3
  350. package/chunk/ur-CDYGpWMm.js +3 -3
  351. package/chunk/{useCollectFieldsEndpoint-Bn7ZjdXx.js → useCollectFieldsEndpoint-3Y1ZabGh.js} +10 -10
  352. package/chunk/{useCollectFieldsEndpoint-Bn7ZjdXx.js.map → useCollectFieldsEndpoint-3Y1ZabGh.js.map} +1 -1
  353. package/chunk/{useCollectFieldsEndpoint-DHNko4IC.js → useCollectFieldsEndpoint-DbKsNLEw.js} +5 -5
  354. package/chunk/{useCollectFieldsEndpoint-DHNko4IC.js.map → useCollectFieldsEndpoint-DbKsNLEw.js.map} +1 -1
  355. package/chunk/{useMetrics-AzdlM_Kg.js → useMetrics-BdMoL7SD.js} +18 -18
  356. package/chunk/{useMetrics-DKs1RHom.js.map → useMetrics-BdMoL7SD.js.map} +1 -1
  357. package/chunk/{useMetrics-DKs1RHom.js → useMetrics-D_8asKZL.js} +4 -4
  358. package/chunk/{useMetrics-AzdlM_Kg.js.map → useMetrics-D_8asKZL.js.map} +1 -1
  359. package/chunk/validators-DTjHYDSK.js +474 -0
  360. package/chunk/validators-DTjHYDSK.js.map +1 -0
  361. package/chunk/validators-Do9xo2t_.js +470 -0
  362. package/chunk/validators-Do9xo2t_.js.map +1 -0
  363. package/chunk/vi-CdPTWSev.js +3 -3
  364. package/chunk/zh-DhnjKBoc.js +3 -3
  365. package/chunk/zh-HK-CWKNP_HX.js +3 -3
  366. package/chunk/zu-BpMHS0oR.js +3 -3
  367. package/package.json +3 -2
  368. package/sheerid-install.css +3 -3
  369. package/sheerid-install.js +3 -3
  370. package/sheerid.css +3 -3
  371. package/sheerid.js +3812 -1369
  372. package/sheerid.js.map +1 -1
  373. package/chunk/CountryComponentWrapper-CRF7oKmW.js +0 -78
  374. package/chunk/EmailLoopPending-MXkvNNP8.js.map +0 -1
  375. package/chunk/EmailLoopPending-anok50US.js +0 -137
  376. package/chunk/EmailLoopPending-anok50US.js.map +0 -1
  377. package/chunk/FormFooterComponent-Cobuya5J.js.map +0 -1
  378. package/chunk/FormFooterComponent-DcilxYfs.js.map +0 -1
  379. package/chunk/StepAgePersonalInfo-KeuFdZua.js +0 -173
  380. package/chunk/StepCollectMilitaryStatusComponent-CHOxuZnI.js +0 -9
  381. package/chunk/StepCollectPersonalInfo-BVd72Idl.js +0 -361
  382. package/chunk/StepCompleteAuthentication-CYsu3UXL.js.map +0 -1
  383. package/chunk/StepCompleteAuthentication-CmOEE_s5.js.map +0 -1
  384. package/chunk/StepEmailLoop-7EwsfbG2.js.map +0 -1
  385. package/chunk/StepEmailLoop-CLIGNsCO.js.map +0 -1
  386. package/chunk/StepMemberPersonalInfo-DzKpsoK8.js +0 -156
  387. package/chunk/StepMoverPersonalInfo-DIspTifw.js +0 -143
  388. package/chunk/StepOverrideComponent-67Wl2Ic3.js.map +0 -1
  389. package/chunk/StepOverrideComponent-DbbQq6nF.js.map +0 -1
  390. package/chunk/StepSSO-DfPU73JX.js +0 -9
  391. package/chunk/StepSuccess-DOWQrS9p.js.map +0 -1
  392. package/chunk/StepSuccess-DkoWskiv.js.map +0 -1
  393. package/chunk/StepTeacherPersonalInfo-CW71f8l7.js +0 -153
  394. package/chunk/StepThirdPartyLoop-BrKuZcYb.js +0 -9
  395. package/chunk/TestingRouteOverrides-DCR0qXVH.js +0 -81
  396. package/chunk/hooks--D4yPhcg.js +0 -2893
  397. package/chunk/hooks--D4yPhcg.js.map +0 -1
  398. package/chunk/hooks-Bn35OzEf.js +0 -2889
  399. package/chunk/hooks-Bn35OzEf.js.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"StepActiveMilitaryPersonalInfoComponent-B-obfX5s.js","names":[],"sources":["../../src/components/StepMilitaryPersonalInfo/StepActiveMilitaryPersonalInfoComponent.tsx"],"sourcesContent":["/* eslint-disable */\n/**\n * TODO - preamble\n */\nimport React from \"react\";\nimport { FormattedHTMLMessage, injectIntl } from \"react-intl\";\nimport { produce } from \"immer\";\n\nimport {\n VerificationStepsEnum,\n MilitaryStatusDefaultMessagesEnum,\n} from \"../../lib/types/runtimeTypes\";\nimport { hasFailedInstantMatch } from \"../../lib/VerificationService/VerificationServiceHelpers\";\nimport { resetRefs } from \"../../lib/refs/refs\";\nimport { logger } from \"@jslib/shared/utils/logger\";\nimport {\n VerificationService,\n FormSelectChoice,\n Organization,\n ActiveMilitaryPersonalInfoViewModel,\n ActiveMilitaryPersonalInfoResponse,\n CustomFormFieldConfig,\n} from \"../../lib/types/types\";\nimport {\n handleEmailOnKeyDown,\n updateFieldValidationErrorsByFieldId,\n updateViewModelOrganization,\n getAvailableMilitaryStatuses,\n getStatusLabel,\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 MilitaryStatus } 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 { updateMilitaryViewModel } from \"./militaryStepHelpers\";\nimport { getOptions } from \"../../options/options\";\nimport { FormFieldCustom } from \"../FormFields/FormFieldCustom/FormFieldCustom\";\nimport { ExtraMessage } from \"../ExtraMessage\";\nimport { ChangeLocaleV2Component } from \"../FormFields/ChangeLocale/ChangeLocaleComponent\";\nimport { ActiveDutyStartDateComponent } from \"../FormFields/ActiveDutyStartDate/ActiveDutyStartDateComponent\";\nimport { PersonalInfoWrapper } from \"../PersonalInfoStepWrapper/PersonalInfoStepWrapper\";\nimport { PersonalInfoStepSubmitButton } from \"../PersonalInfoStepSubmitButton/PersonalInfoStepSubmitButton\";\nimport { PersonalInfoHeader } from \"../FormHeader/StepHeaders/PersonalInfoHeaderComponent\";\nimport { CaptchaComponent } from \"../FormFields/Captcha/CaptchaComponent\";\n\ninterface StepActiveMilitaryPersonalInfoComponentProps {\n intl: any;\n verificationService: VerificationService;\n}\n\nexport const StepActiveMilitaryPersonalInfo = ({\n intl,\n verificationService,\n}: StepActiveMilitaryPersonalInfoComponentProps) => {\n const viewModel = verificationService.viewModel as ActiveMilitaryPersonalInfoViewModel;\n const previousViewModel =\n verificationService.previousViewModel as ActiveMilitaryPersonalInfoViewModel;\n const { fieldValidationErrors } = verificationService;\n const verificationResponse =\n verificationService.verificationResponse as ActiveMilitaryPersonalInfoResponse;\n const failedInstantMatch = hasFailedInstantMatch(verificationResponse);\n const availableStatuses = getAvailableMilitaryStatuses(verificationService, intl);\n const locale = viewModel.localeChoice.value;\n const options = getOptions();\n\n const updateActiveMilitaryViewModel = (\n key: keyof ActiveMilitaryPersonalInfoViewModel,\n value: any,\n ) => {\n verificationService.updateViewModel(\n updateMilitaryViewModel(key, value, verificationService, availableStatuses),\n );\n };\n\n const submitStep = () => {\n const nextState = produce(viewModel, () => {});\n logger.info(\"StepMilitaryStatusComponent submitting form\");\n verificationService.submitStep(\n VerificationStepsEnum.collectMilitaryStatus,\n nextState,\n verificationService.previousVerificationResponse || verificationService.verificationResponse,\n );\n };\n\n if (\n (viewModel.status && previousViewModel && previousViewModel.status !== viewModel.status) ||\n (viewModel.status &&\n verificationService.verificationResponse.currentStep ===\n VerificationStepsEnum.collectMilitaryStatus)\n ) {\n submitStep();\n }\n\n // Refs should be reset to ensure the field order isn't affected by the previous step\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 <>\n <ChangeLocaleV2Component verificationService={verificationService} />\n <CountryComponentWrapper\n verificationService={verificationService}\n disabled={getFieldConfigByFieldId(\"country\")?.disabled}\n />\n {availableStatuses ? (\n <MilitaryStatus\n segmentId=\"military\"\n value={{\n value: viewModel.status,\n label: getStatusLabel(intl, viewModel.status, MilitaryStatusDefaultMessagesEnum),\n }}\n isErrored={!!fieldValidationErrors.status}\n errorId=\"invalidMilitaryStatus\"\n options={availableStatuses}\n disabled={getFieldConfigByFieldId(\"status\")?.disabled}\n onChange={(status: FormSelectChoice) => {\n updateActiveMilitaryViewModel(\"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: (verificationService.viewModel as ActiveMilitaryPersonalInfoViewModel)\n .organization.id,\n label: (verificationService.viewModel as ActiveMilitaryPersonalInfoViewModel)\n .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 updateActiveMilitaryViewModel(\"firstName\", newValue);\n updateFieldValidationErrorsByFieldId(\"firstName\", newValue, verificationService);\n }}\n />\n\n <LastName\n value={viewModel.lastName}\n isErrored={!!fieldValidationErrors.lastName}\n disabled={getFieldConfigByFieldId(\"lastName\")?.disabled}\n onChange={(newValue) => {\n updateActiveMilitaryViewModel(\"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 updateActiveMilitaryViewModel(\"birthDate\", newValue);\n updateFieldValidationErrorsByFieldId(\"birthDate\", newValue, verificationService);\n }}\n value={viewModel.birthDate}\n disabled={getFieldConfigByFieldId(\"birthDate\")?.disabled}\n />\n\n {!!verificationService.programTheme.transitionalMilitaryValidityDays && (\n <DischargeDate\n mode={\"date\"}\n errorId={fieldValidationErrors.dischargeDate}\n onChange={(newValue) => {\n updateActiveMilitaryViewModel(\"dischargeDate\", newValue);\n updateFieldValidationErrorsByFieldId(\"dischargeDate\", newValue, verificationService);\n }}\n value={viewModel.dischargeDate}\n locale={locale}\n disabled={getFieldConfigByFieldId(\"dischargeDate\")?.disabled}\n />\n )}\n\n {verificationService.programTheme.strictMilitaryValidationEnabled && (\n <ActiveDutyStartDateComponent\n errorId={fieldValidationErrors.activeDutyStartDate}\n locale={locale}\n onChange={(newValue) => {\n updateActiveMilitaryViewModel(\"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 updateActiveMilitaryViewModel(\"email\", newValue);\n updateFieldValidationErrorsByFieldId(\"email\", newValue, verificationService);\n }}\n onKeyDown={(event) => handleEmailOnKeyDown(event)}\n disabled={getFieldConfigByFieldId(\"email\")?.disabled}\n />\n\n {verificationService.programTheme.isSmsNotifierConfigured ||\n verificationService.programTheme.smsLoopEnabled ? (\n <PhoneNumber\n isRequired={!!verificationService.programTheme.smsLoopEnabled}\n value={viewModel.phoneNumber}\n isErrored={!!fieldValidationErrors.phoneNumber}\n onChange={(newValue) => {\n updateActiveMilitaryViewModel(\"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 {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 updateActiveMilitaryViewModel(\"metadata\", {\n ...verificationService.viewModel.metadata,\n marketConsentValue: newValue,\n });\n updateFieldValidationErrorsByFieldId(\n \"marketConsentValue\",\n newValue,\n verificationService,\n );\n }}\n viewModel={viewModel}\n disabled={getFieldConfigByFieldId(\"marketConsentValue\")?.disabled}\n />\n\n <ExtraMessage verificationService={verificationService} suffix=\"CollectAboveSubmit\" />\n\n <CaptchaComponent\n verificationService={verificationService}\n isErrored={!!fieldValidationErrors.captchaToken}\n />\n\n <PersonalInfoStepSubmitButton\n step={VerificationStepsEnum.collectActiveMilitaryPersonalInfo}\n verificationService={verificationService}\n viewModel={viewModel}\n failedInstantMatch={failedInstantMatch}\n buttonText={\n <FormattedHTMLMessage\n id=\"step.personalInfo.submitButtonText\"\n defaultMessage=\"Verify My Military Status\"\n />\n }\n />\n </>\n </PersonalInfoWrapper>\n );\n};\n\nexport const StepActiveMilitaryPersonalInfoComponent = injectIntl(StepActiveMilitaryPersonalInfo);\nexport default StepActiveMilitaryPersonalInfoComponent;\n"],"mappings":";;;;;;;;;;;;;;;;aA0Da,KAAkC,EAC7C,SACA,6BACkD;CAClD,IAAM,IAAY,EAAoB,WAChC,IACJ,EAAoB,mBAChB,EAAE,6BAA0B,GAC5B,IACJ,EAAoB,sBAChB,IAAqB,EAAsB,CAAoB,GAC/D,IAAoB,EAA6B,GAAqB,CAAI,GAC1E,IAAS,EAAU,aAAa,OAChC,IAAU,EAAW,GAErB,KACJ,GACA,MACG;EACH,EAAoB,gBAClB,EAAwB,GAAK,GAAO,GAAqB,CAAiB,CAC5E;CACF;CAwBA,QAXG,EAAU,UAAU,KAAqB,EAAkB,WAAW,EAAU,UAChF,EAAU,UACT,EAAoB,qBAAqB,gBACvC,EAAsB,iCAdH;EACvB,IAAM,IAAY,EAAQ,SAAiB,CAAC,CAAC;EAE7C,AADA,EAAO,KAAK,6CAA6C,GACzD,EAAoB,WAClB,EAAsB,uBACtB,GACA,EAAoB,gCAAgC,EAAoB,oBAC1E;CACF,GAQa,GAIb,EAAU,GAGR,iBAAA,GAAA,EAAA,MAAC,GAAD;EACuB;EACrB,MAAM,EAAqB;EAC3B,WAAU;YAHZ,CAKE,iBAA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AoB,aAAa,2BAClC,EAAoB,aAAa,iBAC/B,iBAAA,GAAA,EAAA,KAAC,GAAD;IACE,YAAY,CAAC,CAAC,EAAoB,aAAa;IAC/C,OAAO,EAAU;IACjB,WAAW,CAAC,CAAC,EAAsB;IACnC,WAAW,MAAa;KAEtB,AADA,EAA8B,eAAe,CAAQ,GACrD,EAAqC,eAAe,GAAU,CAAmB;IACnF;IACA,qBAAqB,EAAU,iBAAiB,EAAU,cAAc;IACxE,UAAU,EAAwB,aAAa,GAAG;GACnD,CAAA,IACC;GAEH,EAAQ,iBAAiB,KAAK,MAC7B,iBAAA,GAAA,EAAA,KAAC,GAAD;IAAyB;IAA6B;GAAsB,CAAA,CAC7E;GAED,iBAAA,GAAA,EAAA,KAAC,GAAD;IACuB;IACrB,WAAW,CAAC,CAAC,EAAsB;IACnC,WAAW,MAAa;KAKtB,AAJA,EAA8B,YAAY;MACxC,GAAG,EAAoB,UAAU;MACjC,oBAAoB;KACtB,CAAC,GACD,EACE,sBACA,GACA,CACF;IACF;IACW;IACX,UAAU,EAAwB,oBAAoB,GAAG;GAC1D,CAAA;GAED,iBAAA,GAAA,EAAA,KAAC,GAAD;IAAmC;IAAqB,QAAO;GAAsB,CAAA;GAErF,iBAAA,GAAA,EAAA,KAAC,GAAD;IACuB;IACrB,WAAW,CAAC,CAAC,EAAsB;GACpC,CAAA;GAED,iBAAA,GAAA,EAAA,KAAC,GAAD;IACE,MAAM,EAAsB;IACP;IACV;IACS;IACpB,YACE,iBAAA,GAAA,EAAA,KAAC,GAAD;KACE,IAAG;KACH,gBAAe;IAChB,CAAA;GAEJ,CAAA;EACD,EAAA,CAAA,CACiB;;AAEzB,GAEa,IAA0C,EAAW,CAA8B"}
1
+ {"version":3,"file":"StepActiveMilitaryPersonalInfoComponent-CLHSV6aV.js","names":[],"sources":["../../src/components/StepMilitaryPersonalInfo/StepActiveMilitaryPersonalInfoComponent.tsx"],"sourcesContent":["/* eslint-disable */\n/**\n * TODO - preamble\n */\nimport React from \"react\";\nimport { FormattedHTMLMessage, injectIntl } from \"react-intl\";\nimport { produce } from \"immer\";\n\nimport {\n VerificationStepsEnum,\n MilitaryStatusDefaultMessagesEnum,\n} from \"../../lib/types/runtimeTypes\";\nimport { hasFailedInstantMatch } from \"../../lib/VerificationService/VerificationServiceHelpers\";\nimport { resetRefs } from \"../../lib/refs/refs\";\nimport { logger } from \"@jslib/shared/utils/logger\";\nimport {\n VerificationService,\n FormSelectChoice,\n Organization,\n ActiveMilitaryPersonalInfoViewModel,\n ActiveMilitaryPersonalInfoResponse,\n CustomFormFieldConfig,\n} from \"../../lib/types/types\";\nimport {\n handleEmailOnKeyDown,\n updateFieldValidationErrorsByFieldId,\n updateViewModelOrganization,\n getAvailableMilitaryStatuses,\n getStatusLabel,\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 MilitaryStatus } 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 { updateMilitaryViewModel } from \"./militaryStepHelpers\";\nimport { getOptions } from \"../../options/options\";\nimport { FormFieldCustom } from \"../FormFields/FormFieldCustom/FormFieldCustom\";\nimport { ExtraMessage } from \"../ExtraMessage\";\nimport { ChangeLocaleV2Component } from \"../FormFields/ChangeLocale/ChangeLocaleComponent\";\nimport { ActiveDutyStartDateComponent } from \"../FormFields/ActiveDutyStartDate/ActiveDutyStartDateComponent\";\nimport { PersonalInfoWrapper } from \"../PersonalInfoStepWrapper/PersonalInfoStepWrapper\";\nimport { PersonalInfoStepSubmitButton } from \"../PersonalInfoStepSubmitButton/PersonalInfoStepSubmitButton\";\nimport { PersonalInfoHeader } from \"../FormHeader/StepHeaders/PersonalInfoHeaderComponent\";\nimport { CaptchaComponent } from \"../FormFields/Captcha/CaptchaComponent\";\n\ninterface StepActiveMilitaryPersonalInfoComponentProps {\n intl: any;\n verificationService: VerificationService;\n}\n\nexport const StepActiveMilitaryPersonalInfo = ({\n intl,\n verificationService,\n}: StepActiveMilitaryPersonalInfoComponentProps) => {\n const viewModel = verificationService.viewModel as ActiveMilitaryPersonalInfoViewModel;\n const previousViewModel =\n verificationService.previousViewModel as ActiveMilitaryPersonalInfoViewModel;\n const { fieldValidationErrors } = verificationService;\n const verificationResponse =\n verificationService.verificationResponse as ActiveMilitaryPersonalInfoResponse;\n const failedInstantMatch = hasFailedInstantMatch(verificationResponse);\n const availableStatuses = getAvailableMilitaryStatuses(verificationService, intl);\n const locale = viewModel.localeChoice.value;\n const options = getOptions();\n\n const updateActiveMilitaryViewModel = (\n key: keyof ActiveMilitaryPersonalInfoViewModel,\n value: any,\n ) => {\n verificationService.updateViewModel(\n updateMilitaryViewModel(key, value, verificationService, availableStatuses),\n );\n };\n\n const submitStep = () => {\n const nextState = produce(viewModel, () => {});\n logger.info(\"StepMilitaryStatusComponent submitting form\");\n verificationService.submitStep(\n VerificationStepsEnum.collectMilitaryStatus,\n nextState,\n verificationService.previousVerificationResponse || verificationService.verificationResponse,\n );\n };\n\n if (\n (viewModel.status && previousViewModel && previousViewModel.status !== viewModel.status) ||\n (viewModel.status &&\n verificationService.verificationResponse.currentStep ===\n VerificationStepsEnum.collectMilitaryStatus)\n ) {\n submitStep();\n }\n\n // Refs should be reset to ensure the field order isn't affected by the previous step\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 <>\n <ChangeLocaleV2Component verificationService={verificationService} />\n <CountryComponentWrapper\n verificationService={verificationService}\n disabled={getFieldConfigByFieldId(\"country\")?.disabled}\n />\n {availableStatuses ? (\n <MilitaryStatus\n segmentId=\"military\"\n value={{\n value: viewModel.status,\n label: getStatusLabel(intl, viewModel.status, MilitaryStatusDefaultMessagesEnum),\n }}\n isErrored={!!fieldValidationErrors.status}\n errorId=\"invalidMilitaryStatus\"\n options={availableStatuses}\n disabled={getFieldConfigByFieldId(\"status\")?.disabled}\n onChange={(status: FormSelectChoice) => {\n updateActiveMilitaryViewModel(\"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: (verificationService.viewModel as ActiveMilitaryPersonalInfoViewModel)\n .organization.id,\n label: (verificationService.viewModel as ActiveMilitaryPersonalInfoViewModel)\n .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 updateActiveMilitaryViewModel(\"firstName\", newValue);\n updateFieldValidationErrorsByFieldId(\"firstName\", newValue, verificationService);\n }}\n />\n\n <LastName\n value={viewModel.lastName}\n isErrored={!!fieldValidationErrors.lastName}\n disabled={getFieldConfigByFieldId(\"lastName\")?.disabled}\n onChange={(newValue) => {\n updateActiveMilitaryViewModel(\"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 updateActiveMilitaryViewModel(\"birthDate\", newValue);\n updateFieldValidationErrorsByFieldId(\"birthDate\", newValue, verificationService);\n }}\n value={viewModel.birthDate}\n disabled={getFieldConfigByFieldId(\"birthDate\")?.disabled}\n />\n\n {!!verificationService.programTheme.transitionalMilitaryValidityDays && (\n <DischargeDate\n mode={\"date\"}\n errorId={fieldValidationErrors.dischargeDate}\n onChange={(newValue) => {\n updateActiveMilitaryViewModel(\"dischargeDate\", newValue);\n updateFieldValidationErrorsByFieldId(\"dischargeDate\", newValue, verificationService);\n }}\n value={viewModel.dischargeDate}\n locale={locale}\n disabled={getFieldConfigByFieldId(\"dischargeDate\")?.disabled}\n />\n )}\n\n {verificationService.programTheme.strictMilitaryValidationEnabled && (\n <ActiveDutyStartDateComponent\n errorId={fieldValidationErrors.activeDutyStartDate}\n locale={locale}\n onChange={(newValue) => {\n updateActiveMilitaryViewModel(\"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 updateActiveMilitaryViewModel(\"email\", newValue);\n updateFieldValidationErrorsByFieldId(\"email\", newValue, verificationService);\n }}\n onKeyDown={(event) => handleEmailOnKeyDown(event)}\n disabled={getFieldConfigByFieldId(\"email\")?.disabled}\n />\n\n {verificationService.programTheme.isSmsNotifierConfigured ||\n verificationService.programTheme.smsLoopEnabled ? (\n <PhoneNumber\n isRequired={!!verificationService.programTheme.smsLoopEnabled}\n value={viewModel.phoneNumber}\n isErrored={!!fieldValidationErrors.phoneNumber}\n onChange={(newValue) => {\n updateActiveMilitaryViewModel(\"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 {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 updateActiveMilitaryViewModel(\"metadata\", {\n ...verificationService.viewModel.metadata,\n marketConsentValue: newValue,\n });\n updateFieldValidationErrorsByFieldId(\n \"marketConsentValue\",\n newValue,\n verificationService,\n );\n }}\n viewModel={viewModel}\n disabled={getFieldConfigByFieldId(\"marketConsentValue\")?.disabled}\n />\n\n <ExtraMessage verificationService={verificationService} suffix=\"CollectAboveSubmit\" />\n\n <CaptchaComponent\n verificationService={verificationService}\n isErrored={!!fieldValidationErrors.captchaToken}\n />\n\n <PersonalInfoStepSubmitButton\n step={VerificationStepsEnum.collectActiveMilitaryPersonalInfo}\n verificationService={verificationService}\n viewModel={viewModel}\n failedInstantMatch={failedInstantMatch}\n buttonText={\n <FormattedHTMLMessage\n id=\"step.personalInfo.submitButtonText\"\n defaultMessage=\"Verify My Military Status\"\n />\n }\n />\n </>\n </PersonalInfoWrapper>\n );\n};\n\nexport const StepActiveMilitaryPersonalInfoComponent = injectIntl(StepActiveMilitaryPersonalInfo);\nexport default StepActiveMilitaryPersonalInfoComponent;\n"],"mappings":";;;;;;;;;;;;;;;;aA0Da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ACxC,GAAG,EAAoB,UAAU;MACjC,oBAAoB;KACtB,CAAC,GACD,EACE,sBACA,GACA,CACF;IACF;IACW;IACX,UAAU,EAAwB,oBAAoB,GAAG;GAC1D,CAAA;GAED,iBAAA,GAAA,EAAA,KAAC,GAAD;IAAmC;IAAqB,QAAO;GAAsB,CAAA;GAErF,iBAAA,GAAA,EAAA,KAAC,GAAD;IACuB;IACrB,WAAW,CAAC,CAAC,EAAsB;GACpC,CAAA;GAED,iBAAA,GAAA,EAAA,KAAC,GAAD;IACE,MAAM,EAAsB;IACP;IACV;IACS;IACpB,YACE,iBAAA,GAAA,EAAA,KAAC,GAAD;KACE,IAAG;KACH,gBAAe;IAChB,CAAA;GAEJ,CAAA;EACD,EAAA,CAAA,CACiB;;AAEzB,GAEa,IAA0C,EAAW,CAA8B"}
@@ -1,33 +1,37 @@
1
1
 
2
2
  /**
3
- * VERSION: 2.259.0-alpha.1
4
- * BUILD_TIMESTAMP: 1784754660626
5
- * BUILD_DATE: Wed Jul 22 2026 21:11:00 GMT+0000 (Coordinated Universal Time)
3
+ * WARNING: This file is intended to be used within MySheerID.
4
+ * This file is not intended for use in other contexts and there are no guarantees about its behavior outside of MySheerID.
5
+ */
6
+ /**
7
+ * VERSION: 2.259.0-alpha.3
8
+ * BUILD_TIMESTAMP: 1784836485051
9
+ * BUILD_DATE: Thu Jul 23 2026 19:54:45 GMT+0000 (Coordinated Universal Time)
6
10
  * BUILD_COMMIT: 723cd7cf079ebfd281e0288836276bf33ce7607f
7
11
  */
8
- import { Bt as e, Ft as t, c as n, n as r, wt as i } from "./options-D19mRw5a.js";
9
- import { a, c as o, n as s, t as c } from "./jsx-runtime-BknAqbDq.js";
10
- import { x as l } from "./FormFooterComponent-DcilxYfs.js";
11
- import { a as u } from "./refs-Bbe0gnJ3.js";
12
- import { $ as d, B as f, F as p, G as m, W as h, et as g, n as _ } from "../sheerid.js";
13
- import { a as v, i as y, n as b, o as x, s as S, t as C } from "./CaptchaComponent-DA4ytPM2.js";
14
- import { n as w, t as T } from "./PersonalInfoStepSubmitButton-Byqc8ilE.js";
15
- import { t as E } from "./BirthDateComponent-Dx9Zgnrr.js";
16
- import { t as D } from "./CountryComponentWrapper-CQ6ZT9lg.js";
17
- import { t as O } from "./ExtraMessage-DeL_Wn33.js";
18
- import { t as k } from "./ChangeLocaleComponent-DPIcEDOe.js";
19
- import { t as A } from "./PersonalInfoStepWrapper-VYXPs068.js";
20
- import { n as j, r as M, t as N } from "./DischargeDateComponent-dn8Ym3Oc.js";
21
- import { t as P } from "./StatusComponent-XLL7x50K.js";
22
- import { t as F } from "./militaryStepHelpers-UF-7lF1f.js";
12
+ import { Mt as e, Rt as t, p as n, s as r, xt as i } from "./intl-Yr2cw5px.js";
13
+ import { a, c as o, n as s, t as c } from "./jsx-runtime-D_-z-h6n.js";
14
+ import { D as l } from "./FormFooterComponent-CU9v96Pk.js";
15
+ import { a as u } from "./refs-C_tB1qMA.js";
16
+ import { $ as d, B as f, F as p, G as m, W as h, et as g, n as _ } from "../_mysheerid-preview.js";
17
+ import { a as v, i as y, n as b, o as x, s as S, t as C } from "./CaptchaComponent-pa2v-Kv1.js";
18
+ import { n as w, t as T } from "./PersonalInfoStepSubmitButton-D3lzSm2E.js";
19
+ import { t as E } from "./BirthDateComponent-DqkkSB42.js";
20
+ import { t as D } from "./CountryComponentWrapper-AaraHOGX.js";
21
+ import { t as O } from "./ExtraMessage-BYLbcc4O.js";
22
+ import { t as k } from "./ChangeLocaleComponent-CP_kEafQ.js";
23
+ import { t as A } from "./PersonalInfoStepWrapper-CfEXVPIa.js";
24
+ import { n as j, r as M, t as N } from "./DischargeDateComponent-BrziTMXL.js";
25
+ import { t as P } from "./StatusComponent-VG5PRT7W.js";
26
+ import { t as F } from "./militaryStepHelpers-DSh6iat_.js";
23
27
  o();
24
28
  var I = c(), L = ({ intl: a, verificationService: o }) => {
25
29
  let c = o.viewModel, L = o.previousViewModel, { fieldValidationErrors: R } = o, z = o.verificationResponse, B = l(z), V = p(o, a), H = c.localeChoice.value, U = r(), W = (e, t) => {
26
30
  o.updateViewModel(F(e, t, o, V));
27
31
  };
28
- return (c.status && L && L.status !== c.status || c.status && o.verificationResponse.currentStep === t.collectMilitaryStatus) && (() => {
32
+ return (c.status && L && L.status !== c.status || c.status && o.verificationResponse.currentStep === e.collectMilitaryStatus) && (() => {
29
33
  let r = n(c, () => {});
30
- e.info("StepMilitaryStatusComponent submitting form"), o.submitStep(t.collectMilitaryStatus, r, o.previousVerificationResponse || o.verificationResponse);
34
+ t.info("StepMilitaryStatusComponent submitting form"), o.submitStep(e.collectMilitaryStatus, r, o.previousVerificationResponse || o.verificationResponse);
31
35
  })(), u(), /* @__PURE__ */ (0, I.jsxs)(A, {
32
36
  verificationService: o,
33
37
  step: z.currentStep,
@@ -162,7 +166,7 @@ var I = c(), L = ({ intl: a, verificationService: o }) => {
162
166
  isErrored: !!R.captchaToken
163
167
  }),
164
168
  /* @__PURE__ */ (0, I.jsx)(T, {
165
- step: t.collectActiveMilitaryPersonalInfo,
169
+ step: e.collectActiveMilitaryPersonalInfo,
166
170
  verificationService: o,
167
171
  viewModel: c,
168
172
  failedInstantMatch: B,
@@ -1 +1 @@
1
- {"version":3,"file":"StepActiveMilitaryPersonalInfoComponent-CoGJXuid.js","names":[],"sources":["../../src/components/StepMilitaryPersonalInfo/StepActiveMilitaryPersonalInfoComponent.tsx"],"sourcesContent":["/* eslint-disable */\n/**\n * TODO - preamble\n */\nimport React from \"react\";\nimport { FormattedHTMLMessage, injectIntl } from \"react-intl\";\nimport { produce } from \"immer\";\n\nimport {\n VerificationStepsEnum,\n MilitaryStatusDefaultMessagesEnum,\n} from \"../../lib/types/runtimeTypes\";\nimport { hasFailedInstantMatch } from \"../../lib/VerificationService/VerificationServiceHelpers\";\nimport { resetRefs } from \"../../lib/refs/refs\";\nimport { logger } from \"@jslib/shared/utils/logger\";\nimport {\n VerificationService,\n FormSelectChoice,\n Organization,\n ActiveMilitaryPersonalInfoViewModel,\n ActiveMilitaryPersonalInfoResponse,\n CustomFormFieldConfig,\n} from \"../../lib/types/types\";\nimport {\n handleEmailOnKeyDown,\n updateFieldValidationErrorsByFieldId,\n updateViewModelOrganization,\n getAvailableMilitaryStatuses,\n getStatusLabel,\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 MilitaryStatus } 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 { updateMilitaryViewModel } from \"./militaryStepHelpers\";\nimport { getOptions } from \"../../options/options\";\nimport { FormFieldCustom } from \"../FormFields/FormFieldCustom/FormFieldCustom\";\nimport { ExtraMessage } from \"../ExtraMessage\";\nimport { ChangeLocaleV2Component } from \"../FormFields/ChangeLocale/ChangeLocaleComponent\";\nimport { ActiveDutyStartDateComponent } from \"../FormFields/ActiveDutyStartDate/ActiveDutyStartDateComponent\";\nimport { PersonalInfoWrapper } from \"../PersonalInfoStepWrapper/PersonalInfoStepWrapper\";\nimport { PersonalInfoStepSubmitButton } from \"../PersonalInfoStepSubmitButton/PersonalInfoStepSubmitButton\";\nimport { PersonalInfoHeader } from \"../FormHeader/StepHeaders/PersonalInfoHeaderComponent\";\nimport { CaptchaComponent } from \"../FormFields/Captcha/CaptchaComponent\";\n\ninterface StepActiveMilitaryPersonalInfoComponentProps {\n intl: any;\n verificationService: VerificationService;\n}\n\nexport const StepActiveMilitaryPersonalInfo = ({\n intl,\n verificationService,\n}: StepActiveMilitaryPersonalInfoComponentProps) => {\n const viewModel = verificationService.viewModel as ActiveMilitaryPersonalInfoViewModel;\n const previousViewModel =\n verificationService.previousViewModel as ActiveMilitaryPersonalInfoViewModel;\n const { fieldValidationErrors } = verificationService;\n const verificationResponse =\n verificationService.verificationResponse as ActiveMilitaryPersonalInfoResponse;\n const failedInstantMatch = hasFailedInstantMatch(verificationResponse);\n const availableStatuses = getAvailableMilitaryStatuses(verificationService, intl);\n const locale = viewModel.localeChoice.value;\n const options = getOptions();\n\n const updateActiveMilitaryViewModel = (\n key: keyof ActiveMilitaryPersonalInfoViewModel,\n value: any,\n ) => {\n verificationService.updateViewModel(\n updateMilitaryViewModel(key, value, verificationService, availableStatuses),\n );\n };\n\n const submitStep = () => {\n const nextState = produce(viewModel, () => {});\n logger.info(\"StepMilitaryStatusComponent submitting form\");\n verificationService.submitStep(\n VerificationStepsEnum.collectMilitaryStatus,\n nextState,\n verificationService.previousVerificationResponse || verificationService.verificationResponse,\n );\n };\n\n if (\n (viewModel.status && previousViewModel && previousViewModel.status !== viewModel.status) ||\n (viewModel.status &&\n verificationService.verificationResponse.currentStep ===\n VerificationStepsEnum.collectMilitaryStatus)\n ) {\n submitStep();\n }\n\n // Refs should be reset to ensure the field order isn't affected by the previous step\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 <>\n <ChangeLocaleV2Component verificationService={verificationService} />\n <CountryComponentWrapper\n verificationService={verificationService}\n disabled={getFieldConfigByFieldId(\"country\")?.disabled}\n />\n {availableStatuses ? (\n <MilitaryStatus\n segmentId=\"military\"\n value={{\n value: viewModel.status,\n label: getStatusLabel(intl, viewModel.status, MilitaryStatusDefaultMessagesEnum),\n }}\n isErrored={!!fieldValidationErrors.status}\n errorId=\"invalidMilitaryStatus\"\n options={availableStatuses}\n disabled={getFieldConfigByFieldId(\"status\")?.disabled}\n onChange={(status: FormSelectChoice) => {\n updateActiveMilitaryViewModel(\"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: (verificationService.viewModel as ActiveMilitaryPersonalInfoViewModel)\n .organization.id,\n label: (verificationService.viewModel as ActiveMilitaryPersonalInfoViewModel)\n .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 updateActiveMilitaryViewModel(\"firstName\", newValue);\n updateFieldValidationErrorsByFieldId(\"firstName\", newValue, verificationService);\n }}\n />\n\n <LastName\n value={viewModel.lastName}\n isErrored={!!fieldValidationErrors.lastName}\n disabled={getFieldConfigByFieldId(\"lastName\")?.disabled}\n onChange={(newValue) => {\n updateActiveMilitaryViewModel(\"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 updateActiveMilitaryViewModel(\"birthDate\", newValue);\n updateFieldValidationErrorsByFieldId(\"birthDate\", newValue, verificationService);\n }}\n value={viewModel.birthDate}\n disabled={getFieldConfigByFieldId(\"birthDate\")?.disabled}\n />\n\n {!!verificationService.programTheme.transitionalMilitaryValidityDays && (\n <DischargeDate\n mode={\"date\"}\n errorId={fieldValidationErrors.dischargeDate}\n onChange={(newValue) => {\n updateActiveMilitaryViewModel(\"dischargeDate\", newValue);\n updateFieldValidationErrorsByFieldId(\"dischargeDate\", newValue, verificationService);\n }}\n value={viewModel.dischargeDate}\n locale={locale}\n disabled={getFieldConfigByFieldId(\"dischargeDate\")?.disabled}\n />\n )}\n\n {verificationService.programTheme.strictMilitaryValidationEnabled && (\n <ActiveDutyStartDateComponent\n errorId={fieldValidationErrors.activeDutyStartDate}\n locale={locale}\n onChange={(newValue) => {\n updateActiveMilitaryViewModel(\"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 updateActiveMilitaryViewModel(\"email\", newValue);\n updateFieldValidationErrorsByFieldId(\"email\", newValue, verificationService);\n }}\n onKeyDown={(event) => handleEmailOnKeyDown(event)}\n disabled={getFieldConfigByFieldId(\"email\")?.disabled}\n />\n\n {verificationService.programTheme.isSmsNotifierConfigured ||\n verificationService.programTheme.smsLoopEnabled ? (\n <PhoneNumber\n isRequired={!!verificationService.programTheme.smsLoopEnabled}\n value={viewModel.phoneNumber}\n isErrored={!!fieldValidationErrors.phoneNumber}\n onChange={(newValue) => {\n updateActiveMilitaryViewModel(\"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 {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 updateActiveMilitaryViewModel(\"metadata\", {\n ...verificationService.viewModel.metadata,\n marketConsentValue: newValue,\n });\n updateFieldValidationErrorsByFieldId(\n \"marketConsentValue\",\n newValue,\n verificationService,\n );\n }}\n viewModel={viewModel}\n disabled={getFieldConfigByFieldId(\"marketConsentValue\")?.disabled}\n />\n\n <ExtraMessage verificationService={verificationService} suffix=\"CollectAboveSubmit\" />\n\n <CaptchaComponent\n verificationService={verificationService}\n isErrored={!!fieldValidationErrors.captchaToken}\n />\n\n <PersonalInfoStepSubmitButton\n step={VerificationStepsEnum.collectActiveMilitaryPersonalInfo}\n verificationService={verificationService}\n viewModel={viewModel}\n failedInstantMatch={failedInstantMatch}\n buttonText={\n <FormattedHTMLMessage\n id=\"step.personalInfo.submitButtonText\"\n defaultMessage=\"Verify My Military Status\"\n />\n }\n />\n </>\n </PersonalInfoWrapper>\n );\n};\n\nexport const StepActiveMilitaryPersonalInfoComponent = injectIntl(StepActiveMilitaryPersonalInfo);\nexport default StepActiveMilitaryPersonalInfoComponent;\n"],"mappings":";;;;;;;;;;;;;;;;aA0Da,KAAkC,EAC7C,SACA,6BACkD;CAClD,IAAM,IAAY,EAAoB,WAChC,IACJ,EAAoB,mBAChB,EAAE,6BAA0B,GAC5B,IACJ,EAAoB,sBAChB,IAAqB,EAAsB,CAAoB,GAC/D,IAAoB,EAA6B,GAAqB,CAAI,GAC1E,IAAS,EAAU,aAAa,OAChC,IAAU,EAAW,GAErB,KACJ,GACA,MACG;EACH,EAAoB,gBAClB,EAAwB,GAAK,GAAO,GAAqB,CAAiB,CAC5E;CACF;CAwBA,QAXG,EAAU,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,MAAM,EAAsB;IACP;IACV;IACS;IACpB,YACE,iBAAA,GAAA,EAAA,KAAC,GAAD;KACE,IAAG;KACH,gBAAe;IAChB,CAAA;GAEJ,CAAA;EACD,EAAA,CAAA,CACiB;;AAEzB,GAEa,IAA0C,EAAW,CAA8B"}
1
+ {"version":3,"file":"StepActiveMilitaryPersonalInfoComponent-CsydoggY.js","names":[],"sources":["../../src/components/StepMilitaryPersonalInfo/StepActiveMilitaryPersonalInfoComponent.tsx"],"sourcesContent":["/* eslint-disable */\n/**\n * TODO - preamble\n */\nimport React from \"react\";\nimport { FormattedHTMLMessage, injectIntl } from \"react-intl\";\nimport { produce } from \"immer\";\n\nimport {\n VerificationStepsEnum,\n MilitaryStatusDefaultMessagesEnum,\n} from \"../../lib/types/runtimeTypes\";\nimport { hasFailedInstantMatch } from \"../../lib/VerificationService/VerificationServiceHelpers\";\nimport { resetRefs } from \"../../lib/refs/refs\";\nimport { logger } from \"@jslib/shared/utils/logger\";\nimport {\n VerificationService,\n FormSelectChoice,\n Organization,\n ActiveMilitaryPersonalInfoViewModel,\n ActiveMilitaryPersonalInfoResponse,\n CustomFormFieldConfig,\n} from \"../../lib/types/types\";\nimport {\n handleEmailOnKeyDown,\n updateFieldValidationErrorsByFieldId,\n updateViewModelOrganization,\n getAvailableMilitaryStatuses,\n getStatusLabel,\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 MilitaryStatus } 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 { updateMilitaryViewModel } from \"./militaryStepHelpers\";\nimport { getOptions } from \"../../options/options\";\nimport { FormFieldCustom } from \"../FormFields/FormFieldCustom/FormFieldCustom\";\nimport { ExtraMessage } from \"../ExtraMessage\";\nimport { ChangeLocaleV2Component } from \"../FormFields/ChangeLocale/ChangeLocaleComponent\";\nimport { ActiveDutyStartDateComponent } from \"../FormFields/ActiveDutyStartDate/ActiveDutyStartDateComponent\";\nimport { PersonalInfoWrapper } from \"../PersonalInfoStepWrapper/PersonalInfoStepWrapper\";\nimport { PersonalInfoStepSubmitButton } from \"../PersonalInfoStepSubmitButton/PersonalInfoStepSubmitButton\";\nimport { PersonalInfoHeader } from \"../FormHeader/StepHeaders/PersonalInfoHeaderComponent\";\nimport { CaptchaComponent } from \"../FormFields/Captcha/CaptchaComponent\";\n\ninterface StepActiveMilitaryPersonalInfoComponentProps {\n intl: any;\n verificationService: VerificationService;\n}\n\nexport const StepActiveMilitaryPersonalInfo = ({\n intl,\n verificationService,\n}: StepActiveMilitaryPersonalInfoComponentProps) => {\n const viewModel = verificationService.viewModel as ActiveMilitaryPersonalInfoViewModel;\n const previousViewModel =\n verificationService.previousViewModel as ActiveMilitaryPersonalInfoViewModel;\n const { fieldValidationErrors } = verificationService;\n const verificationResponse =\n verificationService.verificationResponse as ActiveMilitaryPersonalInfoResponse;\n const failedInstantMatch = hasFailedInstantMatch(verificationResponse);\n const availableStatuses = getAvailableMilitaryStatuses(verificationService, intl);\n const locale = viewModel.localeChoice.value;\n const options = getOptions();\n\n const updateActiveMilitaryViewModel = (\n key: keyof ActiveMilitaryPersonalInfoViewModel,\n value: any,\n ) => {\n verificationService.updateViewModel(\n updateMilitaryViewModel(key, value, verificationService, availableStatuses),\n );\n };\n\n const submitStep = () => {\n const nextState = produce(viewModel, () => {});\n logger.info(\"StepMilitaryStatusComponent submitting form\");\n verificationService.submitStep(\n VerificationStepsEnum.collectMilitaryStatus,\n nextState,\n verificationService.previousVerificationResponse || verificationService.verificationResponse,\n );\n };\n\n if (\n (viewModel.status && previousViewModel && previousViewModel.status !== viewModel.status) ||\n (viewModel.status &&\n verificationService.verificationResponse.currentStep ===\n VerificationStepsEnum.collectMilitaryStatus)\n ) {\n submitStep();\n }\n\n // Refs should be reset to ensure the field order isn't affected by the previous step\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 <>\n <ChangeLocaleV2Component verificationService={verificationService} />\n <CountryComponentWrapper\n verificationService={verificationService}\n disabled={getFieldConfigByFieldId(\"country\")?.disabled}\n />\n {availableStatuses ? (\n <MilitaryStatus\n segmentId=\"military\"\n value={{\n value: viewModel.status,\n label: getStatusLabel(intl, viewModel.status, MilitaryStatusDefaultMessagesEnum),\n }}\n isErrored={!!fieldValidationErrors.status}\n errorId=\"invalidMilitaryStatus\"\n options={availableStatuses}\n disabled={getFieldConfigByFieldId(\"status\")?.disabled}\n onChange={(status: FormSelectChoice) => {\n updateActiveMilitaryViewModel(\"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: (verificationService.viewModel as ActiveMilitaryPersonalInfoViewModel)\n .organization.id,\n label: (verificationService.viewModel as ActiveMilitaryPersonalInfoViewModel)\n .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 updateActiveMilitaryViewModel(\"firstName\", newValue);\n updateFieldValidationErrorsByFieldId(\"firstName\", newValue, verificationService);\n }}\n />\n\n <LastName\n value={viewModel.lastName}\n isErrored={!!fieldValidationErrors.lastName}\n disabled={getFieldConfigByFieldId(\"lastName\")?.disabled}\n onChange={(newValue) => {\n updateActiveMilitaryViewModel(\"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 updateActiveMilitaryViewModel(\"birthDate\", newValue);\n updateFieldValidationErrorsByFieldId(\"birthDate\", newValue, verificationService);\n }}\n value={viewModel.birthDate}\n disabled={getFieldConfigByFieldId(\"birthDate\")?.disabled}\n />\n\n {!!verificationService.programTheme.transitionalMilitaryValidityDays && (\n <DischargeDate\n mode={\"date\"}\n errorId={fieldValidationErrors.dischargeDate}\n onChange={(newValue) => {\n updateActiveMilitaryViewModel(\"dischargeDate\", newValue);\n updateFieldValidationErrorsByFieldId(\"dischargeDate\", newValue, verificationService);\n }}\n value={viewModel.dischargeDate}\n locale={locale}\n disabled={getFieldConfigByFieldId(\"dischargeDate\")?.disabled}\n />\n )}\n\n {verificationService.programTheme.strictMilitaryValidationEnabled && (\n <ActiveDutyStartDateComponent\n errorId={fieldValidationErrors.activeDutyStartDate}\n locale={locale}\n onChange={(newValue) => {\n updateActiveMilitaryViewModel(\"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 updateActiveMilitaryViewModel(\"email\", newValue);\n updateFieldValidationErrorsByFieldId(\"email\", newValue, verificationService);\n }}\n onKeyDown={(event) => handleEmailOnKeyDown(event)}\n disabled={getFieldConfigByFieldId(\"email\")?.disabled}\n />\n\n {verificationService.programTheme.isSmsNotifierConfigured ||\n verificationService.programTheme.smsLoopEnabled ? (\n <PhoneNumber\n isRequired={!!verificationService.programTheme.smsLoopEnabled}\n value={viewModel.phoneNumber}\n isErrored={!!fieldValidationErrors.phoneNumber}\n onChange={(newValue) => {\n updateActiveMilitaryViewModel(\"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 {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 updateActiveMilitaryViewModel(\"metadata\", {\n ...verificationService.viewModel.metadata,\n marketConsentValue: newValue,\n });\n updateFieldValidationErrorsByFieldId(\n \"marketConsentValue\",\n newValue,\n verificationService,\n );\n }}\n viewModel={viewModel}\n disabled={getFieldConfigByFieldId(\"marketConsentValue\")?.disabled}\n />\n\n <ExtraMessage verificationService={verificationService} suffix=\"CollectAboveSubmit\" />\n\n <CaptchaComponent\n verificationService={verificationService}\n isErrored={!!fieldValidationErrors.captchaToken}\n />\n\n <PersonalInfoStepSubmitButton\n step={VerificationStepsEnum.collectActiveMilitaryPersonalInfo}\n verificationService={verificationService}\n viewModel={viewModel}\n failedInstantMatch={failedInstantMatch}\n buttonText={\n <FormattedHTMLMessage\n id=\"step.personalInfo.submitButtonText\"\n defaultMessage=\"Verify My Military Status\"\n />\n }\n />\n </>\n </PersonalInfoWrapper>\n );\n};\n\nexport const StepActiveMilitaryPersonalInfoComponent = injectIntl(StepActiveMilitaryPersonalInfo);\nexport default StepActiveMilitaryPersonalInfoComponent;\n"],"mappings":";;;;;;;;;;;;;;;;aA0Da,KAAkC,EAC7C,SACA,6BACkD;CAClD,IAAM,IAAY,EAAoB,WAChC,IACJ,EAAoB,mBAChB,EAAE,6BAA0B,GAC5B,IACJ,EAAoB,sBAChB,IAAqB,EAAsB,CAAoB,GAC/D,IAAoB,EAA6B,GAAqB,CAAI,GAC1E,IAAS,EAAU,aAAa,OAChC,IAAU,EAAW,GAErB,KACJ,GACA,MACG;EACH,EAAoB,gBAClB,EAAwB,GAAK,GAAO,GAAqB,CAAiB,CAC5E;CACF;CAwBA,QAXG,EAAU,UAAU,KAAqB,EAAkB,WAAW,EAAU,UAChF,EAAU,UACT,EAAoB,qBAAqB,gBACvC,EAAsB,iCAdH;EACvB,IAAM,IAAY,EAAQ,SAAiB,CAAC,CAAC;EAE7C,AADA,EAAO,KAAK,6CAA6C,GACzD,EAAoB,WAClB,EAAsB,uBACtB,GACA,EAAoB,gCAAgC,EAAoB,oBAC1E;CACF,GAQa,GAIb,EAAU,GAGR,iBAAA,GAAA,EAAA,MAAC,GAAD;EACuB;EACrB,MAAM,EAAqB;EAC3B,WAAU;YAHZ,CAKE,iBAAA,GAAA,EAAA,KAAC,GAAD;GACuB;GACrB,qBAAoB;EACrB,CAAA,GAED,iBAAA,GAAA,EAAA,MAAA,EAAA,UAAA,EAAA,UAAA;GACE,iBAAA,GAAA,EAAA,KAAC,GAAD,EAA8C,uBAAsB,CAAA;GACpE,iBAAA,GAAA,EAAA,KAAC,GAAD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,GACrD,EAAqC,eAAe,GAAU,CAAmB;IACnF;IACA,qBAAqB,EAAU,iBAAiB,EAAU,cAAc;IACxE,UAAU,EAAwB,aAAa,GAAG;GACnD,CAAA,IACC;GAEH,EAAQ,iBAAiB,KAAK,MAC7B,iBAAA,GAAA,EAAA,KAAC,GAAD;IAAyB;IAA6B;GAAsB,CAAA,CAC7E;GAED,iBAAA,GAAA,EAAA,KAAC,GAAD;IACuB;IACrB,WAAW,CAAC,CAAC,EAAsB;IACnC,WAAW,MAAa;KAKtB,AAJA,EAA8B,YAAY;MACxC,GAAG,EAAoB,UAAU;MACjC,oBAAoB;KACtB,CAAC,GACD,EACE,sBACA,GACA,CACF;IACF;IACW;IACX,UAAU,EAAwB,oBAAoB,GAAG;GAC1D,CAAA;GAED,iBAAA,GAAA,EAAA,KAAC,GAAD;IAAmC;IAAqB,QAAO;GAAsB,CAAA;GAErF,iBAAA,GAAA,EAAA,KAAC,GAAD;IACuB;IACrB,WAAW,CAAC,CAAC,EAAsB;GACpC,CAAA;GAED,iBAAA,GAAA,EAAA,KAAC,GAAD;IACE,MAAM,EAAsB;IACP;IACV;IACS;IACpB,YACE,iBAAA,GAAA,EAAA,KAAC,GAAD;KACE,IAAG;KACH,gBAAe;IAChB,CAAA;GAEJ,CAAA;EACD,EAAA,CAAA,CACiB;;AAEzB,GAEa,IAA0C,EAAW,CAA8B"}
@@ -1,34 +1,34 @@
1
1
 
2
2
  /**
3
- * VERSION: 2.259.0-alpha.1
4
- * BUILD_TIMESTAMP: 1784754660626
5
- * BUILD_DATE: Wed Jul 22 2026 21:11:00 GMT+0000 (Coordinated Universal Time)
3
+ * VERSION: 2.259.0-alpha.3
4
+ * BUILD_TIMESTAMP: 1784836480727
5
+ * BUILD_DATE: Thu Jul 23 2026 19:54:40 GMT+0000 (Coordinated Universal Time)
6
6
  * BUILD_COMMIT: 723cd7cf079ebfd281e0288836276bf33ce7607f
7
7
  */
8
8
  import { Ft as e, Wt as t, ct as n, n as r } from "./options-D19mRw5a.js";
9
9
  import { a as i, c as a, n as o, t as s } from "./jsx-runtime-BknAqbDq.js";
10
- import { x as c } from "./FormFooterComponent-DcilxYfs.js";
11
- import { $ as l, A as u, B as d, G as f, J as p, R as m, n as h } from "../sheerid.js";
12
- import { t as g } from "./useCollectFieldsEndpoint-DHNko4IC.js";
13
- import { a as _, i as v, n as y, o as b, s as x, t as S } from "./CaptchaComponent-DA4ytPM2.js";
14
- import { n as C, t as w } from "./PersonalInfoStepSubmitButton-Byqc8ilE.js";
15
- import { t as T } from "./BirthDateComponent-Dx9Zgnrr.js";
16
- import { t as E } from "./PostalCodeComponent-hDSZecsX.js";
17
- import { t as D } from "./CountryComponentWrapper-CQ6ZT9lg.js";
18
- import { t as O } from "./City-BHrlkpMX.js";
19
- import { t as k } from "./AddressComponent-CN9VzjhI.js";
20
- import { t as A } from "./ExtraMessage-DeL_Wn33.js";
21
- import { t as j } from "./ChangeLocaleComponent-DPIcEDOe.js";
22
- import { t as M } from "./PersonalInfoStepWrapper-VYXPs068.js";
10
+ import { C as c } from "./FormFooterComponent-BvXzhu3G.js";
11
+ import { K as l, V as u, Y as d, et as f, j as p, r as m, z as h } from "../sheerid.js";
12
+ import { t as g } from "./useCollectFieldsEndpoint-DbKsNLEw.js";
13
+ import { a as _, i as v, n as y, o as b, s as x, t as S } from "./CaptchaComponent-B2bCn0HL.js";
14
+ import { n as C, t as w } from "./PersonalInfoStepSubmitButton-Ywai8bYu.js";
15
+ import { t as T } from "./BirthDateComponent-BHSI0CUp.js";
16
+ import { t as E } from "./PostalCodeComponent-C97fgZFI.js";
17
+ import { t as D } from "./CountryComponentWrapper-BHYHjLHh.js";
18
+ import { t as O } from "./City-CmO85Z9x.js";
19
+ import { t as k } from "./AddressComponent-DMwOmjiG.js";
20
+ import { t as A } from "./ExtraMessage-DuEKh0WN.js";
21
+ import { t as j } from "./ChangeLocaleComponent-Cy07cdJk.js";
22
+ import { t as M } from "./PersonalInfoStepWrapper-lbTtms4r.js";
23
23
  //#region src/components/StepAgePersonalInfo/StepAgePersonalInfoComponent.tsx
24
24
  var N = /* @__PURE__ */ t(a(), 1), P = s(), F = i(({ verificationService: t, intl: i }) => {
25
- let a = t.viewModel, { fieldValidationErrors: s } = t, F = t.verificationResponse, I = c(F), L = n(() => a.countryChoice.value, m(u(t.programTheme, i)).value), R = L === "US" ? [{ key: "postalCode" }] : [], z = L !== "US" || t.programTheme.isSmsNotifierConfigured || t.programTheme.smsLoopEnabled, B = L !== "US" || t.programTheme.smsLoopEnabled, V = a.localeChoice.value, H = r();
25
+ let a = t.viewModel, { fieldValidationErrors: s } = t, F = t.verificationResponse, I = c(F), L = n(() => a.countryChoice.value, h(p(t.programTheme, i)).value), R = L === "US" ? [{ key: "postalCode" }] : [], z = L !== "US" || t.programTheme.isSmsNotifierConfigured || t.programTheme.smsLoopEnabled, B = L !== "US" || t.programTheme.smsLoopEnabled, V = a.localeChoice.value, H = r();
26
26
  !s.phoneNumber && F.errorIds && F.errorIds.includes("invalidPhoneNumber") && t.updateFieldValidationErrors({
27
27
  ...s,
28
28
  phoneNumber: "invalidPhoneNumber"
29
29
  });
30
30
  let U = (e, n) => {
31
- let r = p(a, e, n);
31
+ let r = d(a, e, n);
32
32
  t.updateViewModel(r);
33
33
  }, { isFieldRequired: W } = g({
34
34
  verificationId: F.verificationId,
@@ -37,35 +37,35 @@ var N = /* @__PURE__ */ t(a(), 1), P = s(), F = i(({ verificationService: t, int
37
37
  defaultRequiredFields: R
38
38
  });
39
39
  return N.useEffect(() => {
40
- l("phoneNumber", a.phoneNumber, t);
40
+ f("phoneNumber", a.phoneNumber, t);
41
41
  }, [a.country]), /* @__PURE__ */ (0, P.jsxs)(M, {
42
42
  verificationService: t,
43
43
  step: F.currentStep,
44
44
  children: [
45
- /* @__PURE__ */ (0, P.jsx)(h, {
45
+ /* @__PURE__ */ (0, P.jsx)(m, {
46
46
  verificationService: t,
47
47
  classNameIdentifier: "age"
48
48
  }),
49
49
  /* @__PURE__ */ (0, P.jsx)(j, { verificationService: t }),
50
50
  /* @__PURE__ */ (0, P.jsx)(D, {
51
51
  verificationService: t,
52
- disabled: d("country")?.disabled
52
+ disabled: u("country")?.disabled
53
53
  }),
54
54
  /* @__PURE__ */ (0, P.jsxs)("div", {
55
55
  className: "sid-names",
56
56
  children: [/* @__PURE__ */ (0, P.jsx)(_, {
57
57
  value: a.firstName,
58
58
  isErrored: !!s.firstName,
59
- disabled: d("firstName")?.disabled,
59
+ disabled: u("firstName")?.disabled,
60
60
  onChange: (e) => {
61
- U("firstName", e), l("firstName", e, t);
61
+ U("firstName", e), f("firstName", e, t);
62
62
  }
63
63
  }), /* @__PURE__ */ (0, P.jsx)(v, {
64
64
  value: a.lastName,
65
65
  isErrored: !!s.lastName,
66
- disabled: d("lastName")?.disabled,
66
+ disabled: u("lastName")?.disabled,
67
67
  onChange: (e) => {
68
- U("lastName", e), l("lastName", e, t);
68
+ U("lastName", e), f("lastName", e, t);
69
69
  }
70
70
  })]
71
71
  }),
@@ -73,19 +73,19 @@ var N = /* @__PURE__ */ t(a(), 1), P = s(), F = i(({ verificationService: t, int
73
73
  errorId: s.birthDate,
74
74
  locale: V,
75
75
  onChange: (e) => {
76
- U("birthDate", e), l("birthDate", e, t);
76
+ U("birthDate", e), f("birthDate", e, t);
77
77
  },
78
78
  value: a.birthDate,
79
- disabled: d("birthDate")?.disabled
79
+ disabled: u("birthDate")?.disabled
80
80
  }),
81
81
  W("city") && /* @__PURE__ */ (0, P.jsx)(O, {
82
82
  value: a.city,
83
83
  isRequired: !0,
84
84
  isErrored: !!s.city,
85
85
  errorId: s.city,
86
- disabled: d("city")?.disabled,
86
+ disabled: u("city")?.disabled,
87
87
  onChange: (e) => {
88
- U("city", e), l("city", e, t);
88
+ U("city", e), f("city", e, t);
89
89
  }
90
90
  }),
91
91
  W("address1") && /* @__PURE__ */ (0, P.jsx)(k, {
@@ -94,16 +94,16 @@ var N = /* @__PURE__ */ t(a(), 1), P = s(), F = i(({ verificationService: t, int
94
94
  isErrored: !!s.address1,
95
95
  errorId: s.address1,
96
96
  onChange: (e) => {
97
- U("address1", e), l("address1", e, t);
97
+ U("address1", e), f("address1", e, t);
98
98
  }
99
99
  }),
100
100
  W("postalCode") && /* @__PURE__ */ (0, P.jsx)(E, {
101
101
  isErrored: !!s.postalCode,
102
102
  onChange: (e) => {
103
- U("postalCode", e), l("postalCode", e, t);
103
+ U("postalCode", e), f("postalCode", e, t);
104
104
  },
105
105
  value: a.postalCode,
106
- disabled: d("postalCode")?.disabled
106
+ disabled: u("postalCode")?.disabled
107
107
  }),
108
108
  /* @__PURE__ */ (0, P.jsx)(C, {
109
109
  value: a.email,
@@ -113,20 +113,20 @@ var N = /* @__PURE__ */ t(a(), 1), P = s(), F = i(({ verificationService: t, int
113
113
  defaultMessage: " "
114
114
  }),
115
115
  onChange: (e) => {
116
- U("email", e), l("email", e, t);
116
+ U("email", e), f("email", e, t);
117
117
  },
118
- onKeyDown: (e) => f(e),
119
- disabled: d("email")?.disabled
118
+ onKeyDown: (e) => l(e),
119
+ disabled: u("email")?.disabled
120
120
  }),
121
121
  z ? /* @__PURE__ */ (0, P.jsx)(b, {
122
122
  isRequired: B,
123
123
  value: a.phoneNumber,
124
124
  isErrored: !!s.phoneNumber,
125
125
  onChange: (e) => {
126
- U("phoneNumber", e), l("phoneNumber", e, t);
126
+ U("phoneNumber", e), f("phoneNumber", e, t);
127
127
  },
128
128
  selectedCountryCode: a.countryChoice && a.countryChoice.value,
129
- disabled: d("phoneNumber")?.disabled
129
+ disabled: u("phoneNumber")?.disabled
130
130
  }) : null,
131
131
  H.customFormFields.map((e) => /* @__PURE__ */ (0, P.jsx)(y, {
132
132
  config: e,
@@ -139,10 +139,10 @@ var N = /* @__PURE__ */ t(a(), 1), P = s(), F = i(({ verificationService: t, int
139
139
  U("metadata", {
140
140
  ...t.viewModel.metadata,
141
141
  marketConsentValue: e
142
- }), l("marketConsentValue", e, t);
142
+ }), f("marketConsentValue", e, t);
143
143
  },
144
144
  viewModel: a,
145
- disabled: d("marketConsentValue")?.disabled
145
+ disabled: u("marketConsentValue")?.disabled
146
146
  }),
147
147
  /* @__PURE__ */ (0, P.jsx)(A, {
148
148
  verificationService: t,
@@ -1 +1 @@
1
- {"version":3,"file":"StepAgePersonalInfo-BTdUm8M1.js","names":[],"sources":["../../src/components/StepAgePersonalInfo/StepAgePersonalInfoComponent.tsx"],"sourcesContent":["/**\n * TODO - preamble\n */\nimport React from \"react\";\nimport { FormattedHTMLMessage, type InjectedIntl, injectIntl } from \"react-intl\";\n\nimport { getSafe } from \"@jslib/shared/utils/getSafe\";\n\nimport { useCollectFieldsEndpoint } from \"@/lib/ServerApi/useCollectFieldsEndpoint\";\n\nimport { VerificationStepsEnum } from \"../../lib/types/runtimeTypes\";\nimport { hasFailedInstantMatch } from \"../../lib/VerificationService/VerificationServiceHelpers\";\nimport {\n type VerificationService,\n type AgePersonalInfoViewModel,\n type AgePersonalInfoResponse,\n type FormSelectChoice,\n type Country,\n type FieldDescription,\n type CustomFormFieldConfig,\n} from \"../../lib/types/types\";\nimport {\n handleEmailOnKeyDown,\n updateFieldValidationErrorsByFieldId,\n getAvailableCountryChoices,\n getDefaultCountryChoice,\n produceDraftViewModel,\n getFieldConfigByFieldId,\n} from \"../../lib/utils/stepComponentHelpers/stepComponentHelpers\";\nimport { MarketConsentWrapperComponent as MarketConsentWrapper } from \"../FormFields/MarketConsentWrapper/MarketConsentWrapperComponent\";\nimport { PhoneNumberComponent as PhoneNumber } from \"../FormFields/PhoneNumber/PhoneNumberComponent\";\nimport { 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 { PostalCodeComponent as PostalCode } from \"../FormFields/PostalCode/PostalCodeComponent\";\nimport { CountryComponentWrapper } from \"../FormFields/Country/CountryComponentWrapper\";\nimport { CityComponent } from \"../FormFields/City/City\";\nimport { AddressComponent } from \"../FormFields/Address/AddressComponent\";\nimport { getOptions } from \"../../options/options\";\nimport { FormFieldCustom } from \"../FormFields/FormFieldCustom/FormFieldCustom\";\nimport { ExtraMessage } from \"../ExtraMessage\";\nimport { ChangeLocaleV2Component } from \"../FormFields/ChangeLocale/ChangeLocaleComponent\";\nimport { PersonalInfoWrapper } from \"../PersonalInfoStepWrapper/PersonalInfoStepWrapper\";\nimport { PersonalInfoStepSubmitButton } from \"../PersonalInfoStepSubmitButton/PersonalInfoStepSubmitButton\";\nimport { PersonalInfoHeader } from \"../FormHeader/StepHeaders/PersonalInfoHeaderComponent\";\nimport { CaptchaComponent } from \"../FormFields/Captcha/CaptchaComponent\";\n\ninterface StepAgePersonalInfoComponentProps {\n intl: InjectedIntl;\n verificationService: VerificationService;\n}\n\nconst StepAgePersonalInfo = ({ verificationService, intl }: StepAgePersonalInfoComponentProps) => {\n const viewModel = verificationService.viewModel as AgePersonalInfoViewModel;\n const { fieldValidationErrors } = verificationService;\n const verificationResponse = verificationService.verificationResponse as AgePersonalInfoResponse;\n const failedInstantMatch = hasFailedInstantMatch(verificationResponse);\n const countryChoices: FormSelectChoice<Country, string>[] = getAvailableCountryChoices(\n verificationService.programTheme,\n intl,\n );\n const defaultCountryChoice: FormSelectChoice<Country, string> =\n getDefaultCountryChoice(countryChoices);\n const safeCountryValue = getSafe(() => viewModel.countryChoice.value, defaultCountryChoice.value);\n const defaultRequiredFields: FieldDescription[] =\n safeCountryValue === \"US\" ? [{ key: \"postalCode\" }] : [];\n\n // PhoneNumber is required for all non-US age programs and if smsLoop is enabled.\n const showPhoneNumber =\n safeCountryValue !== \"US\" ||\n verificationService.programTheme.isSmsNotifierConfigured ||\n verificationService.programTheme.smsLoopEnabled;\n const phoneNumberRequired =\n safeCountryValue !== \"US\" || verificationService.programTheme.smsLoopEnabled;\n\n const locale = viewModel.localeChoice.value;\n const options = getOptions();\n\n if (\n !fieldValidationErrors.phoneNumber &&\n verificationResponse.errorIds &&\n verificationResponse.errorIds.includes(\"invalidPhoneNumber\")\n ) {\n verificationService.updateFieldValidationErrors({\n ...fieldValidationErrors,\n phoneNumber: \"invalidPhoneNumber\",\n });\n }\n\n const updateAgeViewModel = (key: keyof AgePersonalInfoViewModel, value: any) => {\n const nextState: AgePersonalInfoViewModel = produceDraftViewModel(viewModel, key, value);\n verificationService.updateViewModel(nextState);\n };\n\n const { isFieldRequired } = useCollectFieldsEndpoint({\n verificationId: verificationResponse.verificationId,\n currentStep: verificationResponse.currentStep,\n viewModel,\n defaultRequiredFields,\n });\n\n React.useEffect(() => {\n // When country changes re-check the phone number validation\n updateFieldValidationErrorsByFieldId(\"phoneNumber\", viewModel.phoneNumber, verificationService);\n }, [viewModel.country]);\n\n return (\n <PersonalInfoWrapper\n verificationService={verificationService}\n step={verificationResponse.currentStep}\n >\n <PersonalInfoHeader verificationService={verificationService} classNameIdentifier=\"age\" />\n\n <ChangeLocaleV2Component verificationService={verificationService} />\n <CountryComponentWrapper\n verificationService={verificationService}\n disabled={getFieldConfigByFieldId(\"country\")?.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 updateAgeViewModel(\"firstName\", newValue);\n updateFieldValidationErrorsByFieldId(\"firstName\", newValue, verificationService);\n }}\n />\n\n <LastName\n value={viewModel.lastName}\n isErrored={!!fieldValidationErrors.lastName}\n disabled={getFieldConfigByFieldId(\"lastName\")?.disabled}\n onChange={(newValue) => {\n updateAgeViewModel(\"lastName\", newValue);\n updateFieldValidationErrorsByFieldId(\"lastName\", newValue, verificationService);\n }}\n />\n </div>\n <BirthDate\n errorId={fieldValidationErrors.birthDate}\n locale={locale}\n onChange={(newValue) => {\n updateAgeViewModel(\"birthDate\", newValue);\n updateFieldValidationErrorsByFieldId(\"birthDate\", newValue, verificationService);\n }}\n value={viewModel.birthDate}\n disabled={getFieldConfigByFieldId(\"birthDate\")?.disabled}\n />\n {isFieldRequired(\"city\") && (\n <CityComponent\n value={viewModel.city}\n isRequired\n isErrored={!!fieldValidationErrors.city}\n errorId={fieldValidationErrors.city}\n disabled={getFieldConfigByFieldId(\"city\")?.disabled}\n onChange={(value) => {\n updateAgeViewModel(\"city\", value);\n updateFieldValidationErrorsByFieldId(\"city\", value, verificationService);\n }}\n />\n )}\n {isFieldRequired(\"address1\") && (\n <AddressComponent\n value={viewModel.address1}\n isRequired\n isErrored={!!fieldValidationErrors.address1}\n errorId={fieldValidationErrors.address1}\n onChange={(value) => {\n updateAgeViewModel(\"address1\", value);\n updateFieldValidationErrorsByFieldId(\"address1\", value, verificationService);\n }}\n />\n )}\n {isFieldRequired(\"postalCode\") && (\n <PostalCode\n isErrored={!!fieldValidationErrors.postalCode}\n onChange={(newValue) => {\n updateAgeViewModel(\"postalCode\", newValue);\n updateFieldValidationErrorsByFieldId(\"postalCode\", newValue, verificationService);\n }}\n value={viewModel.postalCode}\n disabled={getFieldConfigByFieldId(\"postalCode\")?.disabled}\n />\n )}\n <Email\n value={viewModel.email}\n isErrored={!!fieldValidationErrors.email}\n explanation={<FormattedHTMLMessage id=\"emailExplanation\" defaultMessage=\" \" />}\n onChange={(newValue) => {\n updateAgeViewModel(\"email\", newValue);\n updateFieldValidationErrorsByFieldId(\"email\", newValue, verificationService);\n }}\n onKeyDown={(event) => handleEmailOnKeyDown(event)}\n disabled={getFieldConfigByFieldId(\"email\")?.disabled}\n />\n\n {showPhoneNumber ? (\n <PhoneNumber\n isRequired={phoneNumberRequired}\n value={viewModel.phoneNumber}\n isErrored={!!fieldValidationErrors.phoneNumber}\n onChange={(newValue) => {\n updateAgeViewModel(\"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 {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 updateAgeViewModel(\"metadata\", {\n ...verificationService.viewModel.metadata,\n marketConsentValue: newValue,\n });\n updateFieldValidationErrorsByFieldId(\"marketConsentValue\", newValue, verificationService);\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 <PersonalInfoStepSubmitButton\n step={VerificationStepsEnum.collectAgePersonalInfo}\n verificationService={verificationService}\n viewModel={viewModel}\n failedInstantMatch={failedInstantMatch}\n buttonText={\n <FormattedHTMLMessage\n id=\"step.personalInfo.submitButtonText\"\n defaultMessage=\"Verify and continue\"\n />\n }\n />\n </PersonalInfoWrapper>\n );\n};\n\nexport const StepAgePersonalInfoComponent = injectIntl(StepAgePersonalInfo);\n"],"mappings":";;;;;;;;;;;;;;;;4CA6Pa,IAA+B,GAxMf,EAAE,wBAAqB,cAA8C;CAChG,IAAM,IAAY,EAAoB,WAChC,EAAE,6BAA0B,GAC5B,IAAuB,EAAoB,sBAC3C,IAAqB,EAAsB,CAAoB,GAO/D,IAAmB,QAAc,EAAU,cAAc,OAD7D,EAL0D,EAC1D,EAAoB,cACpB,CAGwB,CAC4C,EAAqB,KAAK,GAC1F,IACJ,MAAqB,OAAO,CAAC,EAAE,KAAK,aAAa,CAAC,IAAI,CAAC,GAGnD,IACJ,MAAqB,QACrB,EAAoB,aAAa,2BACjC,EAAoB,aAAa,gBAC7B,IACJ,MAAqB,QAAQ,EAAoB,aAAa,gBAE1D,IAAS,EAAU,aAAa,OAChC,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AAK;IAChD,UAAU,EAAwB,OAAO,GAAG;GAC7C,CAAA;GAEA,IACC,iBAAA,GAAA,EAAA,KAAC,GAAD;IACE,YAAY;IACZ,OAAO,EAAU;IACjB,WAAW,CAAC,CAAC,EAAsB;IACnC,WAAW,MAAa;KAEtB,AADA,EAAmB,eAAe,CAAQ,GAC1C,EAAqC,eAAe,GAAU,CAAmB;IACnF;IACA,qBAAqB,EAAU,iBAAiB,EAAU,cAAc;IACxE,UAAU,EAAwB,aAAa,GAAG;GACnD,CAAA,IACC;GAEH,EAAQ,iBAAiB,KAAK,MAC7B,iBAAA,GAAA,EAAA,KAAC,GAAD;IAAyB;IAA6B;GAAsB,CAAA,CAC7E;GAED,iBAAA,GAAA,EAAA,KAAC,GAAD;IACuB;IACrB,WAAW,CAAC,CAAC,EAAsB;IACnC,WAAW,MAAa;KAKtB,AAJA,EAAmB,YAAY;MAC7B,GAAG,EAAoB,UAAU;MACjC,oBAAoB;KACtB,CAAC,GACD,EAAqC,sBAAsB,GAAU,CAAmB;IAC1F;IACW;IACX,UAAU,EAAwB,oBAAoB,GAAG;GAC1D,CAAA;GAED,iBAAA,GAAA,EAAA,KAAC,GAAD;IAAmC;IAAqB,QAAO;GAAsB,CAAA;GAErF,iBAAA,GAAA,EAAA,KAAC,GAAD;IACuB;IACrB,WAAW,CAAC,CAAC,EAAsB;GACpC,CAAA;GACD,iBAAA,GAAA,EAAA,KAAC,GAAD;IACE,MAAM,EAAsB;IACP;IACV;IACS;IACpB,YACE,iBAAA,GAAA,EAAA,KAAC,GAAD;KACE,IAAG;KACH,gBAAe;IAChB,CAAA;GAEJ,CAAA;EACkB;;AAEzB,CAE0E"}
1
+ {"version":3,"file":"StepAgePersonalInfo-DW1ElYsy.js","names":[],"sources":["../../src/components/StepAgePersonalInfo/StepAgePersonalInfoComponent.tsx"],"sourcesContent":["/**\n * TODO - preamble\n */\nimport React from \"react\";\nimport { FormattedHTMLMessage, type InjectedIntl, injectIntl } from \"react-intl\";\n\nimport { getSafe } from \"@jslib/shared/utils/getSafe\";\n\nimport { useCollectFieldsEndpoint } from \"@/lib/ServerApi/useCollectFieldsEndpoint\";\n\nimport { VerificationStepsEnum } from \"../../lib/types/runtimeTypes\";\nimport { hasFailedInstantMatch } from \"../../lib/VerificationService/VerificationServiceHelpers\";\nimport {\n type VerificationService,\n type AgePersonalInfoViewModel,\n type AgePersonalInfoResponse,\n type FormSelectChoice,\n type Country,\n type FieldDescription,\n type CustomFormFieldConfig,\n} from \"../../lib/types/types\";\nimport {\n handleEmailOnKeyDown,\n updateFieldValidationErrorsByFieldId,\n getAvailableCountryChoices,\n getDefaultCountryChoice,\n produceDraftViewModel,\n getFieldConfigByFieldId,\n} from \"../../lib/utils/stepComponentHelpers/stepComponentHelpers\";\nimport { MarketConsentWrapperComponent as MarketConsentWrapper } from \"../FormFields/MarketConsentWrapper/MarketConsentWrapperComponent\";\nimport { PhoneNumberComponent as PhoneNumber } from \"../FormFields/PhoneNumber/PhoneNumberComponent\";\nimport { 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 { PostalCodeComponent as PostalCode } from \"../FormFields/PostalCode/PostalCodeComponent\";\nimport { CountryComponentWrapper } from \"../FormFields/Country/CountryComponentWrapper\";\nimport { CityComponent } from \"../FormFields/City/City\";\nimport { AddressComponent } from \"../FormFields/Address/AddressComponent\";\nimport { getOptions } from \"../../options/options\";\nimport { FormFieldCustom } from \"../FormFields/FormFieldCustom/FormFieldCustom\";\nimport { ExtraMessage } from \"../ExtraMessage\";\nimport { ChangeLocaleV2Component } from \"../FormFields/ChangeLocale/ChangeLocaleComponent\";\nimport { PersonalInfoWrapper } from \"../PersonalInfoStepWrapper/PersonalInfoStepWrapper\";\nimport { PersonalInfoStepSubmitButton } from \"../PersonalInfoStepSubmitButton/PersonalInfoStepSubmitButton\";\nimport { PersonalInfoHeader } from \"../FormHeader/StepHeaders/PersonalInfoHeaderComponent\";\nimport { CaptchaComponent } from \"../FormFields/Captcha/CaptchaComponent\";\n\ninterface StepAgePersonalInfoComponentProps {\n intl: InjectedIntl;\n verificationService: VerificationService;\n}\n\nconst StepAgePersonalInfo = ({ verificationService, intl }: StepAgePersonalInfoComponentProps) => {\n const viewModel = verificationService.viewModel as AgePersonalInfoViewModel;\n const { fieldValidationErrors } = verificationService;\n const verificationResponse = verificationService.verificationResponse as AgePersonalInfoResponse;\n const failedInstantMatch = hasFailedInstantMatch(verificationResponse);\n const countryChoices: FormSelectChoice<Country, string>[] = getAvailableCountryChoices(\n verificationService.programTheme,\n intl,\n );\n const defaultCountryChoice: FormSelectChoice<Country, string> =\n getDefaultCountryChoice(countryChoices);\n const safeCountryValue = getSafe(() => viewModel.countryChoice.value, defaultCountryChoice.value);\n const defaultRequiredFields: FieldDescription[] =\n safeCountryValue === \"US\" ? [{ key: \"postalCode\" }] : [];\n\n // PhoneNumber is required for all non-US age programs and if smsLoop is enabled.\n const showPhoneNumber =\n safeCountryValue !== \"US\" ||\n verificationService.programTheme.isSmsNotifierConfigured ||\n verificationService.programTheme.smsLoopEnabled;\n const phoneNumberRequired =\n safeCountryValue !== \"US\" || verificationService.programTheme.smsLoopEnabled;\n\n const locale = viewModel.localeChoice.value;\n const options = getOptions();\n\n if (\n !fieldValidationErrors.phoneNumber &&\n verificationResponse.errorIds &&\n verificationResponse.errorIds.includes(\"invalidPhoneNumber\")\n ) {\n verificationService.updateFieldValidationErrors({\n ...fieldValidationErrors,\n phoneNumber: \"invalidPhoneNumber\",\n });\n }\n\n const updateAgeViewModel = (key: keyof AgePersonalInfoViewModel, value: any) => {\n const nextState: AgePersonalInfoViewModel = produceDraftViewModel(viewModel, key, value);\n verificationService.updateViewModel(nextState);\n };\n\n const { isFieldRequired } = useCollectFieldsEndpoint({\n verificationId: verificationResponse.verificationId,\n currentStep: verificationResponse.currentStep,\n viewModel,\n defaultRequiredFields,\n });\n\n React.useEffect(() => {\n // When country changes re-check the phone number validation\n updateFieldValidationErrorsByFieldId(\"phoneNumber\", viewModel.phoneNumber, verificationService);\n }, [viewModel.country]);\n\n return (\n <PersonalInfoWrapper\n verificationService={verificationService}\n step={verificationResponse.currentStep}\n >\n <PersonalInfoHeader verificationService={verificationService} classNameIdentifier=\"age\" />\n\n <ChangeLocaleV2Component verificationService={verificationService} />\n <CountryComponentWrapper\n verificationService={verificationService}\n disabled={getFieldConfigByFieldId(\"country\")?.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 updateAgeViewModel(\"firstName\", newValue);\n updateFieldValidationErrorsByFieldId(\"firstName\", newValue, verificationService);\n }}\n />\n\n <LastName\n value={viewModel.lastName}\n isErrored={!!fieldValidationErrors.lastName}\n disabled={getFieldConfigByFieldId(\"lastName\")?.disabled}\n onChange={(newValue) => {\n updateAgeViewModel(\"lastName\", newValue);\n updateFieldValidationErrorsByFieldId(\"lastName\", newValue, verificationService);\n }}\n />\n </div>\n <BirthDate\n errorId={fieldValidationErrors.birthDate}\n locale={locale}\n onChange={(newValue) => {\n updateAgeViewModel(\"birthDate\", newValue);\n updateFieldValidationErrorsByFieldId(\"birthDate\", newValue, verificationService);\n }}\n value={viewModel.birthDate}\n disabled={getFieldConfigByFieldId(\"birthDate\")?.disabled}\n />\n {isFieldRequired(\"city\") && (\n <CityComponent\n value={viewModel.city}\n isRequired\n isErrored={!!fieldValidationErrors.city}\n errorId={fieldValidationErrors.city}\n disabled={getFieldConfigByFieldId(\"city\")?.disabled}\n onChange={(value) => {\n updateAgeViewModel(\"city\", value);\n updateFieldValidationErrorsByFieldId(\"city\", value, verificationService);\n }}\n />\n )}\n {isFieldRequired(\"address1\") && (\n <AddressComponent\n value={viewModel.address1}\n isRequired\n isErrored={!!fieldValidationErrors.address1}\n errorId={fieldValidationErrors.address1}\n onChange={(value) => {\n updateAgeViewModel(\"address1\", value);\n updateFieldValidationErrorsByFieldId(\"address1\", value, verificationService);\n }}\n />\n )}\n {isFieldRequired(\"postalCode\") && (\n <PostalCode\n isErrored={!!fieldValidationErrors.postalCode}\n onChange={(newValue) => {\n updateAgeViewModel(\"postalCode\", newValue);\n updateFieldValidationErrorsByFieldId(\"postalCode\", newValue, verificationService);\n }}\n value={viewModel.postalCode}\n disabled={getFieldConfigByFieldId(\"postalCode\")?.disabled}\n />\n )}\n <Email\n value={viewModel.email}\n isErrored={!!fieldValidationErrors.email}\n explanation={<FormattedHTMLMessage id=\"emailExplanation\" defaultMessage=\" \" />}\n onChange={(newValue) => {\n updateAgeViewModel(\"email\", newValue);\n updateFieldValidationErrorsByFieldId(\"email\", newValue, verificationService);\n }}\n onKeyDown={(event) => handleEmailOnKeyDown(event)}\n disabled={getFieldConfigByFieldId(\"email\")?.disabled}\n />\n\n {showPhoneNumber ? (\n <PhoneNumber\n isRequired={phoneNumberRequired}\n value={viewModel.phoneNumber}\n isErrored={!!fieldValidationErrors.phoneNumber}\n onChange={(newValue) => {\n updateAgeViewModel(\"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 {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 updateAgeViewModel(\"metadata\", {\n ...verificationService.viewModel.metadata,\n marketConsentValue: newValue,\n });\n updateFieldValidationErrorsByFieldId(\"marketConsentValue\", newValue, verificationService);\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 <PersonalInfoStepSubmitButton\n step={VerificationStepsEnum.collectAgePersonalInfo}\n verificationService={verificationService}\n viewModel={viewModel}\n failedInstantMatch={failedInstantMatch}\n buttonText={\n <FormattedHTMLMessage\n id=\"step.personalInfo.submitButtonText\"\n defaultMessage=\"Verify and continue\"\n />\n }\n />\n </PersonalInfoWrapper>\n );\n};\n\nexport const StepAgePersonalInfoComponent = injectIntl(StepAgePersonalInfo);\n"],"mappings":";;;;;;;;;;;;;;;;4CA6Pa,IAA+B,GAxMf,EAAE,wBAAqB,cAA8C;CAChG,IAAM,IAAY,EAAoB,WAChC,EAAE,6BAA0B,GAC5B,IAAuB,EAAoB,sBAC3C,IAAqB,EAAsB,CAAoB,GAO/D,IAAmB,QAAc,EAAU,cAAc,OAD7D,EAL0D,EAC1D,EAAoB,cACpB,CAGwB,CAC4C,EAAqB,KAAK,GAC1F,IACJ,MAAqB,OAAO,CAAC,EAAE,KAAK,aAAa,CAAC,IAAI,CAAC,GAGnD,IACJ,MAAqB,QACrB,EAAoB,aAAa,2BACjC,EAAoB,aAAa,gBAC7B,IACJ,MAAqB,QAAQ,EAAoB,aAAa,gBAE1D,IAAS,EAAU,aAAa,OAChC,IAAU,EAAW;CAE3B,AACE,CAAC,EAAsB,eACvB,EAAqB,YACrB,EAAqB,SAAS,SAAS,oBAAoB,KAE3D,EAAoB,4BAA4B;EAC9C,GAAG;EACH,aAAa;CACf,CAAC;CAGH,IAAM,KAAsB,GAAqC,MAAe;EAC9E,IAAM,IAAsC,EAAsB,GAAW,GAAK,CAAK;EACvF,EAAoB,gBAAgB,CAAS;CAC/C,GAEM,EAAE,uBAAoB,EAAyB;EACnD,gBAAgB,EAAqB;EACrC,aAAa,EAAqB;EAClC;EACA;CACF,C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