@sheerid/jslib 2.275.0 → 2.276.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (408) hide show
  1. package/_mysheerid-preview.css +4 -4
  2. package/_mysheerid-preview.js +44 -44
  3. package/chunk/{AddressComponent-BGFbAsvK.js → AddressComponent-C89pD6Mq.js} +7 -7
  4. package/chunk/{AddressComponent-BGFbAsvK.js.map → AddressComponent-C89pD6Mq.js.map} +1 -1
  5. package/chunk/{AddressComponent-DeQlodxe.js → AddressComponent-DeNJR0XJ.js} +7 -7
  6. package/chunk/{AddressComponent-DeQlodxe.js.map → AddressComponent-DeNJR0XJ.js.map} +1 -1
  7. package/chunk/{AnnouncingHeader-D01_AW-Z.js → AnnouncingHeader-BlnfAnLI.js} +6 -6
  8. package/chunk/{AnnouncingHeader-Ces-_Aei.js.map → AnnouncingHeader-BlnfAnLI.js.map} +1 -1
  9. package/chunk/{AnnouncingHeader-Ces-_Aei.js → AnnouncingHeader-CegZwDFd.js} +6 -6
  10. package/chunk/{AnnouncingHeader-D01_AW-Z.js.map → AnnouncingHeader-CegZwDFd.js.map} +1 -1
  11. package/chunk/{ApiUrls-bBmJ3tKE.js → ApiUrls-Cn6zYY4_.js} +6 -6
  12. package/chunk/{ApiUrls-bBmJ3tKE.js.map → ApiUrls-Cn6zYY4_.js.map} +1 -1
  13. package/chunk/{ApiUrls-CHE6ck1K.js → ApiUrls-DtgMSGlO.js} +6 -6
  14. package/chunk/{ApiUrls-CHE6ck1K.js.map → ApiUrls-DtgMSGlO.js.map} +1 -1
  15. package/chunk/{BirthDateComponent-BzelVdwE.js → BirthDateComponent-2CJqlbNU.js} +8 -8
  16. package/chunk/{BirthDateComponent-BzelVdwE.js.map → BirthDateComponent-2CJqlbNU.js.map} +1 -1
  17. package/chunk/{BirthDateComponent-DA7yEebd.js → BirthDateComponent-BYO6Kfgc.js} +8 -8
  18. package/chunk/{BirthDateComponent-DA7yEebd.js.map → BirthDateComponent-BYO6Kfgc.js.map} +1 -1
  19. package/chunk/{CaptchaComponent-CaHSH2GC.js → CaptchaComponent-CoajXhka.js} +17 -16
  20. package/chunk/CaptchaComponent-CoajXhka.js.map +1 -0
  21. package/chunk/{CaptchaComponent-DD6kFSw9.js → CaptchaComponent-DnyafWoN.js} +17 -16
  22. package/chunk/CaptchaComponent-DnyafWoN.js.map +1 -0
  23. package/chunk/{ChangeLocaleComponent-l5uhn4km.js → ChangeLocaleComponent-C4jVlT7w.js} +8 -8
  24. package/chunk/{ChangeLocaleComponent-BcCMSbju.js.map → ChangeLocaleComponent-C4jVlT7w.js.map} +1 -1
  25. package/chunk/{ChangeLocaleComponent-BcCMSbju.js → ChangeLocaleComponent-Z-taCJ6R.js} +8 -8
  26. package/chunk/{ChangeLocaleComponent-l5uhn4km.js.map → ChangeLocaleComponent-Z-taCJ6R.js.map} +1 -1
  27. package/chunk/{City-C1CWD14n.js → City-CEOnA40d.js} +7 -7
  28. package/chunk/{City-BJB8URp9.js.map → City-CEOnA40d.js.map} +1 -1
  29. package/chunk/{City-BJB8URp9.js → City-CHFvccq5.js} +7 -7
  30. package/chunk/{City-C1CWD14n.js.map → City-CHFvccq5.js.map} +1 -1
  31. package/chunk/{CollegeNameComponent-CBZS1qbH.js → CollegeNameComponent-C-Vq-0f_.js} +9 -9
  32. package/chunk/{CollegeNameComponent-CBZS1qbH.js.map → CollegeNameComponent-C-Vq-0f_.js.map} +1 -1
  33. package/chunk/{CollegeNameComponent-CN-yzFPS.js → CollegeNameComponent-TPDjSelK.js} +9 -9
  34. package/chunk/{CollegeNameComponent-CN-yzFPS.js.map → CollegeNameComponent-TPDjSelK.js.map} +1 -1
  35. package/chunk/{CopyToClipboardComponent-CWCaNcMS.js → CopyToClipboardComponent-BdTGehGx.js} +6 -6
  36. package/chunk/{CopyToClipboardComponent-C4DDGwe8.js.map → CopyToClipboardComponent-BdTGehGx.js.map} +1 -1
  37. package/chunk/{CopyToClipboardComponent-C4DDGwe8.js → CopyToClipboardComponent-DkrM2SFa.js} +6 -6
  38. package/chunk/{CopyToClipboardComponent-CWCaNcMS.js.map → CopyToClipboardComponent-DkrM2SFa.js.map} +1 -1
  39. package/chunk/CountryComponentWrapper-C45AFJGi.js +82 -0
  40. package/chunk/CountryComponentWrapper-C45AFJGi.js.map +1 -0
  41. package/chunk/CountryComponentWrapper-CsMhIsMa.js +78 -0
  42. package/chunk/CountryComponentWrapper-CsMhIsMa.js.map +1 -0
  43. package/chunk/{DischargeDateComponent-NhaY0FfR.js → DischargeDateComponent-W6LVGtRA.js} +11 -11
  44. package/chunk/{DischargeDateComponent-BWErN092.js.map → DischargeDateComponent-W6LVGtRA.js.map} +1 -1
  45. package/chunk/{DischargeDateComponent-BWErN092.js → DischargeDateComponent-YwN1LS7c.js} +11 -11
  46. package/chunk/{DischargeDateComponent-NhaY0FfR.js.map → DischargeDateComponent-YwN1LS7c.js.map} +1 -1
  47. package/chunk/{DriverLicenseNumberComponent-Cfjxx2ik.js → DriverLicenseNumberComponent-BgyfMAeh.js} +7 -7
  48. package/chunk/{DriverLicenseNumberComponent-CFbngokf.js.map → DriverLicenseNumberComponent-BgyfMAeh.js.map} +1 -1
  49. package/chunk/{DriverLicenseNumberComponent-CFbngokf.js → DriverLicenseNumberComponent-DWRBwzc1.js} +7 -7
  50. package/chunk/{DriverLicenseNumberComponent-Cfjxx2ik.js.map → DriverLicenseNumberComponent-DWRBwzc1.js.map} +1 -1
  51. package/chunk/{EmailLoopPending-CKVWdwQ0.js → EmailLoopPending-C7SKw1We.js} +11 -11
  52. package/chunk/{EmailLoopPending-CKVWdwQ0.js.map → EmailLoopPending-C7SKw1We.js.map} +1 -1
  53. package/chunk/{EmailLoopPending-DsovStZB.js → EmailLoopPending-DbehVow3.js} +11 -11
  54. package/chunk/{EmailLoopPending-DsovStZB.js.map → EmailLoopPending-DbehVow3.js.map} +1 -1
  55. package/chunk/{ExtraMessage-DNuEH_rP.js → ExtraMessage-CIU0SFFU.js} +7 -7
  56. package/chunk/{ExtraMessage-CpDDdKiN.js.map → ExtraMessage-CIU0SFFU.js.map} +1 -1
  57. package/chunk/{ExtraMessage-CpDDdKiN.js → ExtraMessage-f9Om84tg.js} +7 -7
  58. package/chunk/{ExtraMessage-DNuEH_rP.js.map → ExtraMessage-f9Om84tg.js.map} +1 -1
  59. package/chunk/{FirstResponderOrganizationComponent-NdnMGarL.js → FirstResponderOrganizationComponent-CCzd7O89.js} +8 -8
  60. package/chunk/{FirstResponderOrganizationComponent-BwVToZUo.js.map → FirstResponderOrganizationComponent-CCzd7O89.js.map} +1 -1
  61. package/chunk/{FirstResponderOrganizationComponent-BwVToZUo.js → FirstResponderOrganizationComponent-D3iJl4at.js} +8 -8
  62. package/chunk/{FirstResponderOrganizationComponent-NdnMGarL.js.map → FirstResponderOrganizationComponent-D3iJl4at.js.map} +1 -1
  63. package/chunk/{FormFieldInputSelect-ChTWVZ0h.js → FormFieldInputSelect-BAVhOrsd.js} +7 -7
  64. package/chunk/{FormFieldInputSelect-C81cxxxF.js.map → FormFieldInputSelect-BAVhOrsd.js.map} +1 -1
  65. package/chunk/{FormFieldInputSelect-C81cxxxF.js → FormFieldInputSelect-BioVB7zS.js} +7 -7
  66. package/chunk/{FormFieldInputSelect-ChTWVZ0h.js.map → FormFieldInputSelect-BioVB7zS.js.map} +1 -1
  67. package/chunk/{FormFieldLayout-CuxYu2-h.js → FormFieldLayout-Bav93prH.js} +8 -17
  68. package/chunk/FormFieldLayout-Bav93prH.js.map +1 -0
  69. package/chunk/{FormFieldLayout-BPBIL09f.js → FormFieldLayout-C-P2QCto.js} +8 -17
  70. package/chunk/FormFieldLayout-C-P2QCto.js.map +1 -0
  71. package/chunk/{FormFieldText-BTWjkwwz.js → FormFieldText-BPefsplc.js} +7 -7
  72. package/chunk/{FormFieldText-BTWjkwwz.js.map → FormFieldText-BPefsplc.js.map} +1 -1
  73. package/chunk/{FormFieldText-Qen7EAhG.js → FormFieldText-mvPCLbUG.js} +7 -7
  74. package/chunk/{FormFieldText-Qen7EAhG.js.map → FormFieldText-mvPCLbUG.js.map} +1 -1
  75. package/chunk/{FormFieldTypeahead-C8HgVKr6.js → FormFieldTypeahead-Cd4-ak1z.js} +15 -15
  76. package/chunk/{FormFieldTypeahead-C8HgVKr6.js.map → FormFieldTypeahead-Cd4-ak1z.js.map} +1 -1
  77. package/chunk/{FormFieldTypeahead-CAjM5rBm.js → FormFieldTypeahead-D5lcrGM-.js} +15 -15
  78. package/chunk/{FormFieldTypeahead-CAjM5rBm.js.map → FormFieldTypeahead-D5lcrGM-.js.map} +1 -1
  79. package/chunk/{FormFooterComponent-BdT7rv1y.js → FormFooterComponent-BEDJQK_Z.js} +14 -14
  80. package/chunk/{FormFooterComponent-BdT7rv1y.js.map → FormFooterComponent-BEDJQK_Z.js.map} +1 -1
  81. package/chunk/{FormFooterComponent-B_Wh4HXO.js → FormFooterComponent-BuRQRQFI.js} +14 -14
  82. package/chunk/{FormFooterComponent-B_Wh4HXO.js.map → FormFooterComponent-BuRQRQFI.js.map} +1 -1
  83. package/chunk/{FormSelectChoice-qC0WYy1y.js → FormSelectChoice-BMOCwG1_.js} +12 -23
  84. package/chunk/FormSelectChoice-BMOCwG1_.js.map +1 -0
  85. package/chunk/{FormSelectChoice-cr9QsYX9.js → FormSelectChoice-xPF_7dfg.js} +12 -23
  86. package/chunk/FormSelectChoice-xPF_7dfg.js.map +1 -0
  87. package/chunk/{InputText-C8Mt-ybW.js → InputText-B4CjWTez.js} +7 -7
  88. package/chunk/{InputText-Bw9hR6-E.js.map → InputText-B4CjWTez.js.map} +1 -1
  89. package/chunk/{InputText-Bw9hR6-E.js → InputText-Dc_DjXbQ.js} +7 -7
  90. package/chunk/{InputText-C8Mt-ybW.js.map → InputText-Dc_DjXbQ.js.map} +1 -1
  91. package/chunk/{LicensedProfessionalOrganizationComponent-Qr_OcT4S.js → LicensedProfessionalOrganizationComponent-CP_MLvtk.js} +8 -8
  92. package/chunk/{LicensedProfessionalOrganizationComponent-Qr_OcT4S.js.map → LicensedProfessionalOrganizationComponent-CP_MLvtk.js.map} +1 -1
  93. package/chunk/{LicensedProfessionalOrganizationComponent-DD5D6T1j.js → LicensedProfessionalOrganizationComponent-Dwbseq8o.js} +8 -8
  94. package/chunk/{LicensedProfessionalOrganizationComponent-DD5D6T1j.js.map → LicensedProfessionalOrganizationComponent-Dwbseq8o.js.map} +1 -1
  95. package/chunk/{LogoComponent-BbW4WS1K.js → LogoComponent-BaBfWuKr.js} +6 -6
  96. package/chunk/{LogoComponent-BbW4WS1K.js.map → LogoComponent-BaBfWuKr.js.map} +1 -1
  97. package/chunk/{LogoComponent-CRfZyj0K.js → LogoComponent-DSoOQ1Uz.js} +6 -6
  98. package/chunk/{LogoComponent-CRfZyj0K.js.map → LogoComponent-DSoOQ1Uz.js.map} +1 -1
  99. package/chunk/{LowIncomeOrganizationComponent-C-ILtROJ.js → LowIncomeOrganizationComponent-BXmap6Rx.js} +12 -12
  100. package/chunk/{LowIncomeOrganizationComponent-C-ILtROJ.js.map → LowIncomeOrganizationComponent-BXmap6Rx.js.map} +1 -1
  101. package/chunk/{LowIncomeOrganizationComponent-ChuZO5oy.js → LowIncomeOrganizationComponent-D8CNP5HY.js} +12 -12
  102. package/chunk/{LowIncomeOrganizationComponent-ChuZO5oy.js.map → LowIncomeOrganizationComponent-D8CNP5HY.js.map} +1 -1
  103. package/chunk/{MedicalProfessionalOrganizationComponent-QlMPcO92.js → MedicalProfessionalOrganizationComponent-BbYalsLY.js} +8 -8
  104. package/chunk/{MedicalProfessionalOrganizationComponent-QlMPcO92.js.map → MedicalProfessionalOrganizationComponent-BbYalsLY.js.map} +1 -1
  105. package/chunk/{MedicalProfessionalOrganizationComponent-wF2iUUU3.js → MedicalProfessionalOrganizationComponent-KmjANRJ9.js} +8 -8
  106. package/chunk/{MedicalProfessionalOrganizationComponent-wF2iUUU3.js.map → MedicalProfessionalOrganizationComponent-KmjANRJ9.js.map} +1 -1
  107. package/chunk/{MemberIdComponent-DbvTJcos.js → MemberIdComponent-TNTlU0wZ.js} +7 -7
  108. package/chunk/{MemberIdComponent-CuflPh6q.js.map → MemberIdComponent-TNTlU0wZ.js.map} +1 -1
  109. package/chunk/{MemberIdComponent-CuflPh6q.js → MemberIdComponent-ubWwGiAG.js} +7 -7
  110. package/chunk/{MemberIdComponent-DbvTJcos.js.map → MemberIdComponent-ubWwGiAG.js.map} +1 -1
  111. package/chunk/{MembershipOrganizationComponent-rAlof4zj.js → MembershipOrganizationComponent-BlYWLmzA.js} +8 -8
  112. package/chunk/{MembershipOrganizationComponent-CvpHrQlx.js.map → MembershipOrganizationComponent-BlYWLmzA.js.map} +1 -1
  113. package/chunk/{MembershipOrganizationComponent-CvpHrQlx.js → MembershipOrganizationComponent-QqiCbPz3.js} +8 -8
  114. package/chunk/{MembershipOrganizationComponent-rAlof4zj.js.map → MembershipOrganizationComponent-QqiCbPz3.js.map} +1 -1
  115. package/chunk/Onfido-CTCgAwnB.js +4 -4
  116. package/chunk/{PersonalInfoStepSubmitButton-C7QmpcVd.js → PersonalInfoStepSubmitButton-DvMU95pj.js} +15 -15
  117. package/chunk/{PersonalInfoStepSubmitButton-C7QmpcVd.js.map → PersonalInfoStepSubmitButton-DvMU95pj.js.map} +1 -1
  118. package/chunk/{PersonalInfoStepSubmitButton-D55ut5Yp.js → PersonalInfoStepSubmitButton-_wFfZCyV.js} +15 -15
  119. package/chunk/{PersonalInfoStepSubmitButton-D55ut5Yp.js.map → PersonalInfoStepSubmitButton-_wFfZCyV.js.map} +1 -1
  120. package/chunk/{PersonalInfoStepWrapper-CQ-P1pon.js → PersonalInfoStepWrapper-BCe97Fbw.js} +7 -7
  121. package/chunk/{PersonalInfoStepWrapper-CQ-P1pon.js.map → PersonalInfoStepWrapper-BCe97Fbw.js.map} +1 -1
  122. package/chunk/{PersonalInfoStepWrapper-C3OKK8Mh.js → PersonalInfoStepWrapper-C-DG20qY.js} +8 -8
  123. package/chunk/{PersonalInfoStepWrapper-C3OKK8Mh.js.map → PersonalInfoStepWrapper-C-DG20qY.js.map} +1 -1
  124. package/chunk/{PostalCodeComponent-Cd3MQUvZ.js → PostalCodeComponent-BF8Fplpm.js} +7 -7
  125. package/chunk/{PostalCodeComponent-Bs9KyOzc.js.map → PostalCodeComponent-BF8Fplpm.js.map} +1 -1
  126. package/chunk/{PostalCodeComponent-Bs9KyOzc.js → PostalCodeComponent-Cn7FPVh2.js} +7 -7
  127. package/chunk/{PostalCodeComponent-Cd3MQUvZ.js.map → PostalCodeComponent-Cn7FPVh2.js.map} +1 -1
  128. package/chunk/{SSN-xvlX6KT5.js → SSN-CbSneflU.js} +8 -8
  129. package/chunk/{SSN-Bj9BhqVP.js.map → SSN-CbSneflU.js.map} +1 -1
  130. package/chunk/{SSN-Bj9BhqVP.js → SSN-DPn5f0xr.js} +8 -8
  131. package/chunk/{SSN-xvlX6KT5.js.map → SSN-DPn5f0xr.js.map} +1 -1
  132. package/chunk/{StateSelectComponent-B2sfW_tb.js → StateSelectComponent-BMxcczlp.js} +6 -6
  133. package/chunk/{StateSelectComponent-B2sfW_tb.js.map → StateSelectComponent-BMxcczlp.js.map} +1 -1
  134. package/chunk/{StateSelectComponent-CCIlFilV.js → StateSelectComponent-Fwkoplfb.js} +6 -6
  135. package/chunk/{StateSelectComponent-CCIlFilV.js.map → StateSelectComponent-Fwkoplfb.js.map} +1 -1
  136. package/chunk/{StatusComponent-AEKNerJR.js → StatusComponent-C--lHDG1.js} +8 -8
  137. package/chunk/{StatusComponent-AEKNerJR.js.map → StatusComponent-C--lHDG1.js.map} +1 -1
  138. package/chunk/{StatusComponent-DFtcHMpS.js → StatusComponent-DUPrDBFL.js} +8 -8
  139. package/chunk/{StatusComponent-DFtcHMpS.js.map → StatusComponent-DUPrDBFL.js.map} +1 -1
  140. package/chunk/{StepActiveMilitaryPersonalInfoComponent-AJL4fROB.js → StepActiveMilitaryPersonalInfoComponent-BQ1iNc2_.js} +43 -43
  141. package/chunk/{StepActiveMilitaryPersonalInfoComponent-AJL4fROB.js.map → StepActiveMilitaryPersonalInfoComponent-BQ1iNc2_.js.map} +1 -1
  142. package/chunk/{StepActiveMilitaryPersonalInfoComponent-Blc8C61_.js → StepActiveMilitaryPersonalInfoComponent-KweeN4OQ.js} +43 -43
  143. package/chunk/{StepActiveMilitaryPersonalInfoComponent-Blc8C61_.js.map → StepActiveMilitaryPersonalInfoComponent-KweeN4OQ.js.map} +1 -1
  144. package/chunk/{StepAgePersonalInfo-CH3r6vpW.js → StepAgePersonalInfo-B3prBGtM.js} +31 -31
  145. package/chunk/{StepAgePersonalInfo-BHWaDlVH.js.map → StepAgePersonalInfo-B3prBGtM.js.map} +1 -1
  146. package/chunk/{StepAgePersonalInfo-BHWaDlVH.js → StepAgePersonalInfo-Bqy4A9R_.js} +31 -31
  147. package/chunk/{StepAgePersonalInfo-CH3r6vpW.js.map → StepAgePersonalInfo-Bqy4A9R_.js.map} +1 -1
  148. package/chunk/{StepCard-CPjUPPj0.js → StepCard-DOhBSDPW.js} +5 -5
  149. package/chunk/{StepCard-CbZaVC-t.js.map → StepCard-DOhBSDPW.js.map} +1 -1
  150. package/chunk/{StepCard-CbZaVC-t.js → StepCard-Ym7mbGWv.js} +5 -5
  151. package/chunk/{StepCard-CPjUPPj0.js.map → StepCard-Ym7mbGWv.js.map} +1 -1
  152. package/chunk/{StepCollectIdentifier-BcbSXA5J.js → StepCollectIdentifier-BPVZi_2Z.js} +9 -9
  153. package/chunk/{StepCollectIdentifier-BcbSXA5J.js.map → StepCollectIdentifier-BPVZi_2Z.js.map} +1 -1
  154. package/chunk/{StepCollectIdentifier-lhrdWP-H.js → StepCollectIdentifier-DIYCPon1.js} +9 -9
  155. package/chunk/{StepCollectIdentifier-lhrdWP-H.js.map → StepCollectIdentifier-DIYCPon1.js.map} +1 -1
  156. package/chunk/{StepCollectMilitaryStatusComponent-CYQ-3N3X.js → StepCollectMilitaryStatusComponent-CNctoDoi.js} +5 -5
  157. package/chunk/StepCollectMilitaryStatusComponent-DCVnycL7.js +9 -0
  158. package/chunk/{StepCollectPersonalInfo-CdkTtRFu.js → StepCollectPersonalInfo-BOCmDplo.js} +112 -116
  159. package/chunk/{StepCollectPersonalInfo-CdPFtWnn.js.map → StepCollectPersonalInfo-BOCmDplo.js.map} +1 -1
  160. package/chunk/StepCollectPersonalInfo-R9fs-nQd.js +362 -0
  161. package/chunk/{StepCollectPersonalInfo-CdkTtRFu.js.map → StepCollectPersonalInfo-R9fs-nQd.js.map} +1 -1
  162. package/chunk/{StepCompleteAuthentication-DytIfFlB.js → StepCompleteAuthentication-BmYjAKgP.js} +9 -9
  163. package/chunk/{StepCompleteAuthentication-AKjdo3J9.js.map → StepCompleteAuthentication-BmYjAKgP.js.map} +1 -1
  164. package/chunk/{StepCompleteAuthentication-AKjdo3J9.js → StepCompleteAuthentication-Yz3dPahs.js} +9 -9
  165. package/chunk/{StepCompleteAuthentication-DytIfFlB.js.map → StepCompleteAuthentication-Yz3dPahs.js.map} +1 -1
  166. package/chunk/{StepConsolation-CExfIb_j.js → StepConsolation-CuDYCCAE.js} +9 -9
  167. package/chunk/{StepConsolation-CExfIb_j.js.map → StepConsolation-CuDYCCAE.js.map} +1 -1
  168. package/chunk/{StepConsolation-DO8Lm9dv.js → StepConsolation-DPjGqB9c.js} +9 -9
  169. package/chunk/{StepConsolation-DO8Lm9dv.js.map → StepConsolation-DPjGqB9c.js.map} +1 -1
  170. package/chunk/{StepDocUpload--1-U-569.js → StepDocUpload-DXh4w_Gy.js} +13 -13
  171. package/chunk/{StepDocUpload--1-U-569.js.map → StepDocUpload-DXh4w_Gy.js.map} +1 -1
  172. package/chunk/{StepDocUpload-CYElBSeV.js → StepDocUpload-wmENbcHT.js} +13 -13
  173. package/chunk/{StepDocUpload-CYElBSeV.js.map → StepDocUpload-wmENbcHT.js.map} +1 -1
  174. package/chunk/{StepDriverLicensePersonalInfoComponent-CpfSPJBD.js → StepDriverLicensePersonalInfoComponent-C89uw9hB.js} +16 -16
  175. package/chunk/{StepDriverLicensePersonalInfoComponent-ByLP9CLy.js.map → StepDriverLicensePersonalInfoComponent-C89uw9hB.js.map} +1 -1
  176. package/chunk/{StepDriverLicensePersonalInfoComponent-ByLP9CLy.js → StepDriverLicensePersonalInfoComponent-DsWHV5ef.js} +16 -16
  177. package/chunk/{StepDriverLicensePersonalInfoComponent-CpfSPJBD.js.map → StepDriverLicensePersonalInfoComponent-DsWHV5ef.js.map} +1 -1
  178. package/chunk/{StepEmailLoop-CdREX-4w.js → StepEmailLoop-CgImGOHm.js} +13 -13
  179. package/chunk/{StepEmailLoop-Bok5TmMG.js.map → StepEmailLoop-CgImGOHm.js.map} +1 -1
  180. package/chunk/{StepEmailLoop-Bok5TmMG.js → StepEmailLoop-qLTbVSgG.js} +13 -13
  181. package/chunk/{StepEmailLoop-CdREX-4w.js.map → StepEmailLoop-qLTbVSgG.js.map} +1 -1
  182. package/chunk/{StepEmploymentPersonalInfo-DqFNiu3C.js → StepEmploymentPersonalInfo-BokWlHYE.js} +32 -32
  183. package/chunk/{StepEmploymentPersonalInfo-DqFNiu3C.js.map → StepEmploymentPersonalInfo-BokWlHYE.js.map} +1 -1
  184. package/chunk/{StepEmploymentPersonalInfo-XVAvZ0te.js → StepEmploymentPersonalInfo-DmWrWi0w.js} +32 -32
  185. package/chunk/{StepEmploymentPersonalInfo-XVAvZ0te.js.map → StepEmploymentPersonalInfo-DmWrWi0w.js.map} +1 -1
  186. package/chunk/{StepFirstResponderPersonalInfo-C9AchvP4.js → StepFirstResponderPersonalInfo--u-ggEEq.js} +21 -21
  187. package/chunk/{StepFirstResponderPersonalInfo-C9AchvP4.js.map → StepFirstResponderPersonalInfo--u-ggEEq.js.map} +1 -1
  188. package/chunk/{StepFirstResponderPersonalInfo-CR6tqqbj.js → StepFirstResponderPersonalInfo-Cs4BiLuq.js} +21 -21
  189. package/chunk/{StepFirstResponderPersonalInfo-CR6tqqbj.js.map → StepFirstResponderPersonalInfo-Cs4BiLuq.js.map} +1 -1
  190. package/chunk/{StepGeneralIdentityPersonalInfoComponent-BfYxugan.js → StepGeneralIdentityPersonalInfoComponent-C0xjZ49y.js} +19 -19
  191. package/chunk/{StepGeneralIdentityPersonalInfoComponent-BfYxugan.js.map → StepGeneralIdentityPersonalInfoComponent-C0xjZ49y.js.map} +1 -1
  192. package/chunk/{StepGeneralIdentityPersonalInfoComponent-BqHvbrkO.js → StepGeneralIdentityPersonalInfoComponent-DtnhsOS8.js} +19 -19
  193. package/chunk/{StepGeneralIdentityPersonalInfoComponent-BqHvbrkO.js.map → StepGeneralIdentityPersonalInfoComponent-DtnhsOS8.js.map} +1 -1
  194. package/chunk/{StepHybridIdentityPersonalInfoComponent-C4SFltJf.js → StepHybridIdentityPersonalInfoComponent-BrfsVxoL.js} +20 -20
  195. package/chunk/{StepHybridIdentityPersonalInfoComponent-C4SFltJf.js.map → StepHybridIdentityPersonalInfoComponent-BrfsVxoL.js.map} +1 -1
  196. package/chunk/{StepHybridIdentityPersonalInfoComponent-D2bEcQKw.js → StepHybridIdentityPersonalInfoComponent-DtWwTb-w.js} +20 -20
  197. package/chunk/{StepHybridIdentityPersonalInfoComponent-D2bEcQKw.js.map → StepHybridIdentityPersonalInfoComponent-DtWwTb-w.js.map} +1 -1
  198. package/chunk/{StepIDCheckLoop-C0g-rLtR.js → StepIDCheckLoop-CqMy-kih.js} +8 -8
  199. package/chunk/{StepIDCheckLoop-BDark2Di.js.map → StepIDCheckLoop-CqMy-kih.js.map} +1 -1
  200. package/chunk/{StepIDCheckLoop-BDark2Di.js → StepIDCheckLoop-D3fkw6rR.js} +8 -8
  201. package/chunk/{StepIDCheckLoop-C0g-rLtR.js.map → StepIDCheckLoop-D3fkw6rR.js.map} +1 -1
  202. package/chunk/{StepIDCheckLoopOnfido-BzrLqUIy.js → StepIDCheckLoopOnfido-CPqxoGK2.js} +12 -12
  203. package/chunk/{StepIDCheckLoopOnfido-CpsFKeIS.js.map → StepIDCheckLoopOnfido-CPqxoGK2.js.map} +1 -1
  204. package/chunk/{StepIDCheckLoopOnfido-CpsFKeIS.js → StepIDCheckLoopOnfido-CuHGDZD7.js} +12 -12
  205. package/chunk/{StepIDCheckLoopOnfido-BzrLqUIy.js.map → StepIDCheckLoopOnfido-CuHGDZD7.js.map} +1 -1
  206. package/chunk/{StepIDCheckLoopRegula-DBaRIxgp.js → StepIDCheckLoopRegula-B0OCBK0E.js} +10 -10
  207. package/chunk/{StepIDCheckLoopRegula-DBaRIxgp.js.map → StepIDCheckLoopRegula-B0OCBK0E.js.map} +1 -1
  208. package/chunk/{StepIDCheckLoopRegula-nvw5YyKo.js → StepIDCheckLoopRegula-DgO-1qZp.js} +10 -10
  209. package/chunk/{StepIDCheckLoopRegula-nvw5YyKo.js.map → StepIDCheckLoopRegula-DgO-1qZp.js.map} +1 -1
  210. package/chunk/{StepInactiveMilitaryPersonalInfoComponent-CEAoUlPI.js → StepInactiveMilitaryPersonalInfoComponent-BUL3KyDd.js} +60 -60
  211. package/chunk/{StepInactiveMilitaryPersonalInfoComponent-BA-Z6yOh.js.map → StepInactiveMilitaryPersonalInfoComponent-BUL3KyDd.js.map} +1 -1
  212. package/chunk/{StepInactiveMilitaryPersonalInfoComponent-BA-Z6yOh.js → StepInactiveMilitaryPersonalInfoComponent-DD3ijaER.js} +60 -60
  213. package/chunk/{StepInactiveMilitaryPersonalInfoComponent-CEAoUlPI.js.map → StepInactiveMilitaryPersonalInfoComponent-DD3ijaER.js.map} +1 -1
  214. package/chunk/{StepLicensedProfessionalPersonalInfo-BDOe8tXK.js → StepLicensedProfessionalPersonalInfo-BoMh77dS.js} +38 -38
  215. package/chunk/{StepLicensedProfessionalPersonalInfo-BDOe8tXK.js.map → StepLicensedProfessionalPersonalInfo-BoMh77dS.js.map} +1 -1
  216. package/chunk/{StepLicensedProfessionalPersonalInfo-CvHsH0eA.js → StepLicensedProfessionalPersonalInfo-CJUnLQJn.js} +38 -38
  217. package/chunk/{StepLicensedProfessionalPersonalInfo-CvHsH0eA.js.map → StepLicensedProfessionalPersonalInfo-CJUnLQJn.js.map} +1 -1
  218. package/chunk/{StepLowIncomePersonalInfo-Dy3cf7Vq.js → StepLowIncomePersonalInfo-KsWVTeO_.js} +53 -53
  219. package/chunk/{StepLowIncomePersonalInfo-Dy3cf7Vq.js.map → StepLowIncomePersonalInfo-KsWVTeO_.js.map} +1 -1
  220. package/chunk/{StepLowIncomePersonalInfo-Xn7Si16w.js → StepLowIncomePersonalInfo-WixW7jSE.js} +53 -53
  221. package/chunk/{StepLowIncomePersonalInfo-Xn7Si16w.js.map → StepLowIncomePersonalInfo-WixW7jSE.js.map} +1 -1
  222. package/chunk/{StepMedicalProfessionalPersonalInfo-Cdjst53o.js → StepMedicalProfessionalPersonalInfo-CkP3ijlv.js} +46 -46
  223. package/chunk/{StepMedicalProfessionalPersonalInfo-C4RpaXrw.js.map → StepMedicalProfessionalPersonalInfo-CkP3ijlv.js.map} +1 -1
  224. package/chunk/{StepMedicalProfessionalPersonalInfo-C4RpaXrw.js → StepMedicalProfessionalPersonalInfo-ZWnPprFj.js} +46 -46
  225. package/chunk/{StepMedicalProfessionalPersonalInfo-Cdjst53o.js.map → StepMedicalProfessionalPersonalInfo-ZWnPprFj.js.map} +1 -1
  226. package/chunk/{StepMemberPersonalInfo-JVdhDDsO.js → StepMemberPersonalInfo-BkdO0M03.js} +37 -37
  227. package/chunk/{StepMemberPersonalInfo-JVdhDDsO.js.map → StepMemberPersonalInfo-BkdO0M03.js.map} +1 -1
  228. package/chunk/{StepMemberPersonalInfo-oxD7cpuH.js → StepMemberPersonalInfo-iiEeEHMd.js} +37 -37
  229. package/chunk/{StepMemberPersonalInfo-oxD7cpuH.js.map → StepMemberPersonalInfo-iiEeEHMd.js.map} +1 -1
  230. package/chunk/{StepMoverPersonalInfo-DoRQ7YwV.js → StepMoverPersonalInfo-B8ulp8r4.js} +15 -15
  231. package/chunk/{StepMoverPersonalInfo-DQ6omvFs.js.map → StepMoverPersonalInfo-B8ulp8r4.js.map} +1 -1
  232. package/chunk/{StepMoverPersonalInfo-DQ6omvFs.js → StepMoverPersonalInfo-ddojJbVP.js} +15 -15
  233. package/chunk/{StepMoverPersonalInfo-DoRQ7YwV.js.map → StepMoverPersonalInfo-ddojJbVP.js.map} +1 -1
  234. package/chunk/{StepOverrideComponent-Bk4iLCjb.js → StepOverrideComponent-1C4izDUn.js} +13 -13
  235. package/chunk/StepOverrideComponent-1C4izDUn.js.map +1 -0
  236. package/chunk/{StepOverrideComponent-BScdpQsD.js → StepOverrideComponent-CW4AqS1W.js} +13 -13
  237. package/chunk/StepOverrideComponent-CW4AqS1W.js.map +1 -0
  238. package/chunk/{StepSMSLoop-Qhui36Ad.js → StepSMSLoop-CYsBZ7tK.js} +9 -9
  239. package/chunk/{StepSMSLoop-CKgyKNf3.js.map → StepSMSLoop-CYsBZ7tK.js.map} +1 -1
  240. package/chunk/{StepSMSLoop-CKgyKNf3.js → StepSMSLoop-ZFEdfzI7.js} +9 -9
  241. package/chunk/{StepSMSLoop-Qhui36Ad.js.map → StepSMSLoop-ZFEdfzI7.js.map} +1 -1
  242. package/chunk/StepSSO-BGHCbduX.js +4 -4
  243. package/chunk/StepSSO-ZHByQpHa.js +4 -4
  244. package/chunk/{StepSocialSecurityNumber-CxzmRJyj.js → StepSocialSecurityNumber-2cDHkFtc.js} +13 -13
  245. package/chunk/{StepSocialSecurityNumber-B73JU0Vm.js.map → StepSocialSecurityNumber-2cDHkFtc.js.map} +1 -1
  246. package/chunk/{StepSocialSecurityNumber-B73JU0Vm.js → StepSocialSecurityNumber-S4ajjj2k.js} +13 -13
  247. package/chunk/{StepSocialSecurityNumber-CxzmRJyj.js.map → StepSocialSecurityNumber-S4ajjj2k.js.map} +1 -1
  248. package/chunk/{StepStudentPersonalInfo-DSlm69iu.js → StepStudentPersonalInfo-CPEy1x3k.js} +41 -41
  249. package/chunk/{StepStudentPersonalInfo-DSlm69iu.js.map → StepStudentPersonalInfo-CPEy1x3k.js.map} +1 -1
  250. package/chunk/{StepStudentPersonalInfo-qiawIhbf.js → StepStudentPersonalInfo-DNqHAtn-.js} +41 -41
  251. package/chunk/{StepStudentPersonalInfo-qiawIhbf.js.map → StepStudentPersonalInfo-DNqHAtn-.js.map} +1 -1
  252. package/chunk/{StepSuccess-CY6HRbL0.js → StepSuccess-CAGzawu7.js} +13 -13
  253. package/chunk/{StepSuccess-BFHXLjzL.js.map → StepSuccess-CAGzawu7.js.map} +1 -1
  254. package/chunk/{StepSuccess-BFHXLjzL.js → StepSuccess-D_IWaCdF.js} +13 -13
  255. package/chunk/{StepSuccess-CY6HRbL0.js.map → StepSuccess-D_IWaCdF.js.map} +1 -1
  256. package/chunk/{StepTeacherPersonalInfo-BzO0_kSV.js → StepTeacherPersonalInfo-CJXMX4i-.js} +36 -36
  257. package/chunk/{StepTeacherPersonalInfo-BzO0_kSV.js.map → StepTeacherPersonalInfo-CJXMX4i-.js.map} +1 -1
  258. package/chunk/{StepTeacherPersonalInfo-D5JC_By3.js → StepTeacherPersonalInfo-DuQ_2jzT.js} +36 -36
  259. package/chunk/{StepTeacherPersonalInfo-D5JC_By3.js.map → StepTeacherPersonalInfo-DuQ_2jzT.js.map} +1 -1
  260. package/chunk/StepThirdPartyLoop-BrKuZcYb.js +4 -4
  261. package/chunk/StepThirdPartyLoop-CbFTIlwP.js +4 -4
  262. package/chunk/{TeacherSchoolComponent-DSr16b-J.js → TeacherSchoolComponent-3hHaynGt.js} +9 -9
  263. package/chunk/{TeacherSchoolComponent-DSr16b-J.js.map → TeacherSchoolComponent-3hHaynGt.js.map} +1 -1
  264. package/chunk/{TeacherSchoolComponent-DUAkXH8Y.js → TeacherSchoolComponent-CTUcGZBk.js} +9 -9
  265. package/chunk/{TeacherSchoolComponent-DUAkXH8Y.js.map → TeacherSchoolComponent-CTUcGZBk.js.map} +1 -1
  266. package/chunk/{TestingRouteOverrides-BeBP6XXB.js → TestingRouteOverrides-B51tlkPN.js} +6 -6
  267. package/chunk/{TestingRouteOverrides-BeBP6XXB.js.map → TestingRouteOverrides-B51tlkPN.js.map} +1 -1
  268. package/chunk/{TestingRouteOverrides-Bt8QuyMY.js → TestingRouteOverrides-MQkB4gbS.js} +6 -6
  269. package/chunk/{TestingRouteOverrides-Bt8QuyMY.js.map → TestingRouteOverrides-MQkB4gbS.js.map} +1 -1
  270. package/chunk/ThreatMetrix-D_TbL50B.js +4 -4
  271. package/chunk/{VerificationApiClient-xKQFqber.js → VerificationApiClient-BuZNO3k4.js} +8 -8
  272. package/chunk/{VerificationApiClient-xKQFqber.js.map → VerificationApiClient-BuZNO3k4.js.map} +1 -1
  273. package/chunk/{VerificationApiClient-CNCGYJN0.js → VerificationApiClient-CSmDqqJd.js} +8 -8
  274. package/chunk/{VerificationApiClient-CNCGYJN0.js.map → VerificationApiClient-CSmDqqJd.js.map} +1 -1
  275. package/chunk/{VerificationApiUtils-EYLI_y22.js → VerificationApiUtils-BBxvDM3j.js} +7 -7
  276. package/chunk/{VerificationApiUtils-EYLI_y22.js.map → VerificationApiUtils-BBxvDM3j.js.map} +1 -1
  277. package/chunk/{VerificationApiUtils-PcnM2IQD.js → VerificationApiUtils-CFvFUGWV.js} +7 -7
  278. package/chunk/{VerificationApiUtils-PcnM2IQD.js.map → VerificationApiUtils-CFvFUGWV.js.map} +1 -1
  279. package/chunk/ar-Dh-2G5c3.js +4 -4
  280. package/chunk/bg-BbAhdJRh.js +4 -4
  281. package/chunk/bn-IN-Cx3Q5Utp.js +4 -4
  282. package/chunk/{countryUtils-QLzXPJsg.js → countryUtils-AmQexyFX.js} +5 -5
  283. package/chunk/{countryUtils-Bg9KdIbF.js.map → countryUtils-AmQexyFX.js.map} +1 -1
  284. package/chunk/countryUtils-_b1AEFmu.js +12 -0
  285. package/chunk/{countryUtils-QLzXPJsg.js.map → countryUtils-_b1AEFmu.js.map} +1 -1
  286. package/chunk/cs-CYGsmvju.js +4 -4
  287. package/chunk/da-COZWvvUD.js +4 -4
  288. package/chunk/de-BHclNQGr.js +4 -4
  289. package/chunk/{downshift.esm-BLpaOzFc.js → downshift.esm-TD1ZHIGw.js} +7 -7
  290. package/chunk/{downshift.esm-lpoogWsV.js.map → downshift.esm-TD1ZHIGw.js.map} +1 -1
  291. package/chunk/{downshift.esm-lpoogWsV.js → downshift.esm-a6BpIuFH.js} +7 -7
  292. package/chunk/{downshift.esm-BLpaOzFc.js.map → downshift.esm-a6BpIuFH.js.map} +1 -1
  293. package/chunk/el-Bv_XQ0FX.js +4 -4
  294. package/chunk/{empties-COfIPxJ5.js → empties-B6yh07nS.js} +5 -5
  295. package/chunk/{empties-COfIPxJ5.js.map → empties-B6yh07nS.js.map} +1 -1
  296. package/chunk/{empties-DctbDY5s.js → empties-Cng4q8t3.js} +5 -5
  297. package/chunk/{empties-DctbDY5s.js.map → empties-Cng4q8t3.js.map} +1 -1
  298. package/chunk/en-GB-CkENrh2I.js +4 -4
  299. package/chunk/es-BRKAFTKN.js +4 -4
  300. package/chunk/es-ES-BWfAbWbQ.js +4 -4
  301. package/chunk/et-CxMgVbW2.js +4 -4
  302. package/chunk/eventEmitter-CSG6jR7V.js +4 -4
  303. package/chunk/fa-BEC3aNBF.js +4 -4
  304. package/chunk/fi-BaP3FR15.js +4 -4
  305. package/chunk/fr-CA-CS4SuM-m.js +4 -4
  306. package/chunk/fr-DSU2B7p2.js +4 -4
  307. package/chunk/ga-DZEr9X_A.js +4 -4
  308. package/chunk/hi-IN-DvBVpWNQ.js +4 -4
  309. package/chunk/{hooks-PN48cX8E.js → hooks-B179G474.js} +7 -7
  310. package/chunk/{hooks-DLtMDttz.js.map → hooks-B179G474.js.map} +1 -1
  311. package/chunk/{hooks-DLtMDttz.js → hooks-D2tFSceS.js} +7 -7
  312. package/chunk/{hooks-PN48cX8E.js.map → hooks-D2tFSceS.js.map} +1 -1
  313. package/chunk/hr-CL1lHDbu.js +4 -4
  314. package/chunk/hu-Cf5Uq9R_.js +4 -4
  315. package/chunk/id-ay9yilKx.js +4 -4
  316. package/chunk/{intl-TN1Dianl.js → intl-Ft_65Lzo.js} +5 -5
  317. package/chunk/intl-Ft_65Lzo.js.map +1 -0
  318. package/chunk/is-tpzRyIZi.js +4 -4
  319. package/chunk/it-C3-BupR4.js +4 -4
  320. package/chunk/iw-CBna3XPT.js +4 -4
  321. package/chunk/ja-DvXOkZRn.js +4 -4
  322. package/chunk/{jsx-runtime-QRCZ6ZTK.js → jsx-runtime-Bq9F3xvK.js} +5 -5
  323. package/chunk/{jsx-runtime-QRCZ6ZTK.js.map → jsx-runtime-Bq9F3xvK.js.map} +1 -1
  324. package/chunk/{jsx-runtime-lVLuHIkM.js → jsx-runtime-DOqJBLjd.js} +5 -5
  325. package/chunk/{jsx-runtime-lVLuHIkM.js.map → jsx-runtime-DOqJBLjd.js.map} +1 -1
  326. package/chunk/kk-DGXgY6Uw.js +4 -4
  327. package/chunk/ko-BlUGwGxN.js +4 -4
  328. package/chunk/lo-DT6wxwS1.js +4 -4
  329. package/chunk/lt-CT5-H4ci.js +4 -4
  330. package/chunk/lv-CBMD1XRp.js +4 -4
  331. package/chunk/{militaryStepHelpers-W31scSUE.js → militaryStepHelpers-CJ4smMQ2.js} +5 -5
  332. package/chunk/{militaryStepHelpers-CF0fNRKQ.js.map → militaryStepHelpers-CJ4smMQ2.js.map} +1 -1
  333. package/chunk/{militaryStepHelpers-CF0fNRKQ.js → militaryStepHelpers-tnlMV7Ug.js} +5 -5
  334. package/chunk/{militaryStepHelpers-W31scSUE.js.map → militaryStepHelpers-tnlMV7Ug.js.map} +1 -1
  335. package/chunk/{mocks-l2e0aaeT.js → mocks-C1va3xs9.js} +6 -6
  336. package/chunk/{mocks-BN2OnOjp.js.map → mocks-C1va3xs9.js.map} +1 -1
  337. package/chunk/{mocks-BN2OnOjp.js → mocks-CoMRz_O2.js} +6 -6
  338. package/chunk/{mocks-l2e0aaeT.js.map → mocks-CoMRz_O2.js.map} +1 -1
  339. package/chunk/ms-DuxNeOgk.js +4 -4
  340. package/chunk/nl-BE-D028qM7-.js +4 -4
  341. package/chunk/nl-DEuaat_s.js +4 -4
  342. package/chunk/no-CjeRjD1D.js +4 -4
  343. package/chunk/{options-BK6Zk2Oe.js → options-Co1RW3vc.js} +5 -5
  344. package/chunk/options-Co1RW3vc.js.map +1 -0
  345. package/chunk/pl-X0qJw7IS.js +4 -4
  346. package/chunk/{programThemeGetters-DECHMs91.js → programThemeGetters-D2JwF5p-.js} +5 -5
  347. package/chunk/{programThemeGetters-4Wf-YSPx.js.map → programThemeGetters-D2JwF5p-.js.map} +1 -1
  348. package/chunk/{programThemeGetters-4Wf-YSPx.js → programThemeGetters-De_Bowzi.js} +5 -5
  349. package/chunk/{programThemeGetters-DECHMs91.js.map → programThemeGetters-De_Bowzi.js.map} +1 -1
  350. package/chunk/pt-BR-C6XmLn3o.js +4 -4
  351. package/chunk/pt-o7v4iOVx.js +4 -4
  352. package/chunk/{refs-6KTRrw-F.js → refs-BgqdAkVI.js} +5 -5
  353. package/chunk/{refs-6KTRrw-F.js.map → refs-BgqdAkVI.js.map} +1 -1
  354. package/chunk/{refs-B8CaE8yL.js → refs-Cz53Qfgi.js} +5 -5
  355. package/chunk/{refs-B8CaE8yL.js.map → refs-Cz53Qfgi.js.map} +1 -1
  356. package/chunk/ro-C74ZR3HS.js +4 -4
  357. package/chunk/ru-BA9P3RVu.js +4 -4
  358. package/chunk/sk-DmyizV49.js +4 -4
  359. package/chunk/sl-Cxm3YoWE.js +4 -4
  360. package/chunk/sr-gOtgEOlP.js +4 -4
  361. package/chunk/{stepComponentHelpers-DeWac6nj.js → stepComponentHelpers-2Sq02uha.js} +18 -18
  362. package/chunk/{stepComponentHelpers-Darhp1Nn.js.map → stepComponentHelpers-2Sq02uha.js.map} +1 -1
  363. package/chunk/{stepComponentHelpers-Darhp1Nn.js → stepComponentHelpers-uJDQGcgs.js} +18 -18
  364. package/chunk/{stepComponentHelpers-DeWac6nj.js.map → stepComponentHelpers-uJDQGcgs.js.map} +1 -1
  365. package/chunk/strings-DWLVdUcm.js +4 -4
  366. package/chunk/sv-DnCUWo1-.js +4 -4
  367. package/chunk/sw-BY7XXvUU.js +4 -4
  368. package/chunk/ta-CVL0b6Hh.js +4 -4
  369. package/chunk/th-CyU0RW3x.js +4 -4
  370. package/chunk/tl-BfgQ0irB.js +4 -4
  371. package/chunk/tr-BPg_L4bY.js +4 -4
  372. package/chunk/uk-CNaioa7V.js +4 -4
  373. package/chunk/ur-Ht1Mcpm0.js +4 -4
  374. package/chunk/{useCollectFieldsEndpoint-BToJZbHd.js → useCollectFieldsEndpoint-BU9xoRkC.js} +8 -8
  375. package/chunk/{useCollectFieldsEndpoint-BToJZbHd.js.map → useCollectFieldsEndpoint-BU9xoRkC.js.map} +1 -1
  376. package/chunk/{useCollectFieldsEndpoint-CqUxwQWc.js → useCollectFieldsEndpoint-EgQ_hVpj.js} +8 -8
  377. package/chunk/{useCollectFieldsEndpoint-CqUxwQWc.js.map → useCollectFieldsEndpoint-EgQ_hVpj.js.map} +1 -1
  378. package/chunk/{useMetrics-CiB8jnkE.js → useMetrics-DBzqwN2m.js} +7 -7
  379. package/chunk/{useMetrics-iqbs0R1u.js.map → useMetrics-DBzqwN2m.js.map} +1 -1
  380. package/chunk/{useMetrics-iqbs0R1u.js → useMetrics-saY5Oa2a.js} +7 -7
  381. package/chunk/{useMetrics-CiB8jnkE.js.map → useMetrics-saY5Oa2a.js.map} +1 -1
  382. package/chunk/vi-sI1BYLXG.js +4 -4
  383. package/chunk/zh-DNG4VB8r.js +4 -4
  384. package/chunk/zh-HK-5Y3ROXEm.js +4 -4
  385. package/chunk/zu-DNMG8Idu.js +4 -4
  386. package/package.json +1 -1
  387. package/sheerid-install.css +4 -4
  388. package/sheerid-install.js +5 -5
  389. package/sheerid-install.js.map +1 -1
  390. package/sheerid.css +4 -4
  391. package/sheerid.js +44 -44
  392. package/chunk/CaptchaComponent-CaHSH2GC.js.map +0 -1
  393. package/chunk/CaptchaComponent-DD6kFSw9.js.map +0 -1
  394. package/chunk/CountryComponentWrapper-CEbjr-D-.js +0 -78
  395. package/chunk/CountryComponentWrapper-CEbjr-D-.js.map +0 -1
  396. package/chunk/CountryComponentWrapper-Df9x54iO.js +0 -74
  397. package/chunk/CountryComponentWrapper-Df9x54iO.js.map +0 -1
  398. package/chunk/FormFieldLayout-BPBIL09f.js.map +0 -1
  399. package/chunk/FormFieldLayout-CuxYu2-h.js.map +0 -1
  400. package/chunk/FormSelectChoice-cr9QsYX9.js.map +0 -1
  401. package/chunk/FormSelectChoice-qC0WYy1y.js.map +0 -1
  402. package/chunk/StepCollectMilitaryStatusComponent-DxU3lmaC.js +0 -9
  403. package/chunk/StepCollectPersonalInfo-CdPFtWnn.js +0 -358
  404. package/chunk/StepOverrideComponent-BScdpQsD.js.map +0 -1
  405. package/chunk/StepOverrideComponent-Bk4iLCjb.js.map +0 -1
  406. package/chunk/countryUtils-Bg9KdIbF.js +0 -12
  407. package/chunk/intl-TN1Dianl.js.map +0 -1
  408. package/chunk/options-BK6Zk2Oe.js.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"StepActiveMilitaryPersonalInfoComponent-AJL4fROB.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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;AAEzB,GAEa,IAA0C,EAAW,CAA8B"}
1
+ {"version":3,"file":"StepActiveMilitaryPersonalInfoComponent-BQ1iNc2_.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;IACuB;IACrB,UAAU,EAAwB,SAAS,GAAG;GAC/C,CAAA;GACA,IACC,iBAAA,GAAA,EAAA,KAAC,GAAD;IACE,WAAU;IACV,OAAO;KACL,OAAO,EAAU;KACjB,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Q,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"}
@@ -4,27 +4,27 @@
4
4
  * This file is not intended for use in other contexts and there are no guarantees about its behavior outside of MySheerID.
5
5
  */
6
6
  /**
7
- * VERSION: 2.275.0
8
- * BUILD_TIMESTAMP: 1787352276442
9
- * BUILD_DATE: Fri Aug 21 2026 22:44:36 GMT+0000 (Coordinated Universal Time)
10
- * BUILD_COMMIT: 30913cd7a2f4f6324e4692d7ed7cde8020560774
7
+ * VERSION: 2.276.0
8
+ * BUILD_TIMESTAMP: 1787688588835
9
+ * BUILD_DATE: Tue Aug 25 2026 20:09:48 GMT+0000 (Coordinated Universal Time)
10
+ * BUILD_COMMIT: 2d25c43e9725e6fd856b82b1bdf08408dfb6a86b
11
11
  */
12
- import { Lt as e, Tt as t, Wt as n, p as r, s as i } from "./intl-TN1Dianl.js";
13
- import { a, c as o, n as s, t as c } from "./jsx-runtime-QRCZ6ZTK.js";
14
- import { O as l } from "./FormFooterComponent-B_Wh4HXO.js";
15
- import { a as u } from "./refs-6KTRrw-F.js";
12
+ import { Lt as e, Tt as t, Wt as n, p as r, s as i } from "./intl-Ft_65Lzo.js";
13
+ import { a, c as o, n as s, t as c } from "./jsx-runtime-Bq9F3xvK.js";
14
+ import { O as l } from "./FormFooterComponent-BuRQRQFI.js";
15
+ import { a as u } from "./refs-BgqdAkVI.js";
16
16
  import { t as d } from "../_mysheerid-preview.js";
17
- import { C as f, h as p, m, o as h, u as g, w as _ } from "./stepComponentHelpers-DeWac6nj.js";
18
- import { a as v, i as y, n as b, o as x, s as S, t as C } from "./CaptchaComponent-CaHSH2GC.js";
19
- import { n as w, t as T } from "./PersonalInfoStepSubmitButton-C7QmpcVd.js";
20
- import { t as E } from "./BirthDateComponent-DA7yEebd.js";
21
- import { t as D } from "./CountryComponentWrapper-CEbjr-D-.js";
22
- import { t as O } from "./ExtraMessage-DNuEH_rP.js";
23
- import { t as k } from "./ChangeLocaleComponent-BcCMSbju.js";
24
- import { t as A } from "./PersonalInfoStepWrapper-C3OKK8Mh.js";
25
- import { n as j, r as M, t as N } from "./DischargeDateComponent-BWErN092.js";
26
- import { t as P } from "./StatusComponent-DFtcHMpS.js";
27
- import { t as F } from "./militaryStepHelpers-CF0fNRKQ.js";
17
+ import { C as f, S as p, m, o as h, p as g, u as _ } from "./stepComponentHelpers-2Sq02uha.js";
18
+ import { a as v, i as y, n as b, o as x, s as S, t as C } from "./CaptchaComponent-CoajXhka.js";
19
+ import { n as w, t as T } from "./PersonalInfoStepSubmitButton-DvMU95pj.js";
20
+ import { t as E } from "./BirthDateComponent-BYO6Kfgc.js";
21
+ import { t as D } from "./CountryComponentWrapper-C45AFJGi.js";
22
+ import { t as O } from "./ExtraMessage-CIU0SFFU.js";
23
+ import { t as k } from "./ChangeLocaleComponent-Z-taCJ6R.js";
24
+ import { t as A } from "./PersonalInfoStepWrapper-C-DG20qY.js";
25
+ import { n as j, r as M, t as N } from "./DischargeDateComponent-YwN1LS7c.js";
26
+ import { t as P } from "./StatusComponent-DUPrDBFL.js";
27
+ import { t as F } from "./militaryStepHelpers-tnlMV7Ug.js";
28
28
  o();
29
29
  var I = c(), L = ({ intl: a, verificationService: o }) => {
30
30
  let c = o.viewModel, L = o.previousViewModel, { fieldValidationErrors: R } = o, z = o.verificationResponse, B = l(z), V = h(o, a), H = c.localeChoice.value, U = i(), W = (e, t) => {
@@ -44,49 +44,49 @@ var I = c(), L = ({ intl: a, verificationService: o }) => {
44
44
  /* @__PURE__ */ (0, I.jsx)(k, { verificationService: o }),
45
45
  /* @__PURE__ */ (0, I.jsx)(D, {
46
46
  verificationService: o,
47
- disabled: g("country")?.disabled
47
+ disabled: _("country")?.disabled
48
48
  }),
49
49
  V ? /* @__PURE__ */ (0, I.jsx)(P, {
50
50
  segmentId: "military",
51
51
  value: {
52
52
  value: c.status,
53
- label: m(a, c.status, t)
53
+ label: g(a, c.status, t)
54
54
  },
55
55
  isErrored: !!R.status,
56
56
  errorId: "invalidMilitaryStatus",
57
57
  options: V,
58
- disabled: g("status")?.disabled,
58
+ disabled: _("status")?.disabled,
59
59
  onChange: (e) => {
60
- W("status", e ? e.value : ""), f("status", e ? e.value : "", o);
60
+ W("status", e ? e.value : ""), p("status", e ? e.value : "", o);
61
61
  }
62
62
  }) : null,
63
63
  /* @__PURE__ */ (0, I.jsx)(j, {
64
64
  isErrored: !!R.organization,
65
65
  onChange: (e) => {
66
- _(e, o), f("organization", e, o);
66
+ f(e, o), p("organization", e, o);
67
67
  },
68
68
  value: {
69
69
  value: o.viewModel.organization.id,
70
70
  label: o.viewModel.organization.name
71
71
  },
72
72
  verificationService: o,
73
- disabled: g("organization")?.disabled
73
+ disabled: _("organization")?.disabled
74
74
  }),
75
75
  /* @__PURE__ */ (0, I.jsxs)("div", {
76
76
  className: "sid-names",
77
77
  children: [/* @__PURE__ */ (0, I.jsx)(v, {
78
78
  value: c.firstName,
79
79
  isErrored: !!R.firstName,
80
- disabled: g("firstName")?.disabled,
80
+ disabled: _("firstName")?.disabled,
81
81
  onChange: (e) => {
82
- W("firstName", e), f("firstName", e, o);
82
+ W("firstName", e), p("firstName", e, o);
83
83
  }
84
84
  }), /* @__PURE__ */ (0, I.jsx)(y, {
85
85
  value: c.lastName,
86
86
  isErrored: !!R.lastName,
87
- disabled: g("lastName")?.disabled,
87
+ disabled: _("lastName")?.disabled,
88
88
  onChange: (e) => {
89
- W("lastName", e), f("lastName", e, o);
89
+ W("lastName", e), p("lastName", e, o);
90
90
  }
91
91
  })]
92
92
  }),
@@ -94,30 +94,30 @@ var I = c(), L = ({ intl: a, verificationService: o }) => {
94
94
  errorId: R.birthDate,
95
95
  locale: H,
96
96
  onChange: (e) => {
97
- W("birthDate", e), f("birthDate", e, o);
97
+ W("birthDate", e), p("birthDate", e, o);
98
98
  },
99
99
  value: c.birthDate,
100
- disabled: g("birthDate")?.disabled
100
+ disabled: _("birthDate")?.disabled
101
101
  }),
102
102
  !!o.programTheme.transitionalMilitaryValidityDays && /* @__PURE__ */ (0, I.jsx)(N, {
103
103
  mode: "date",
104
104
  errorId: R.dischargeDate,
105
105
  onChange: (e) => {
106
- W("dischargeDate", e), f("dischargeDate", e, o);
106
+ W("dischargeDate", e), p("dischargeDate", e, o);
107
107
  },
108
108
  value: c.dischargeDate,
109
109
  locale: H,
110
- disabled: g("dischargeDate")?.disabled
110
+ disabled: _("dischargeDate")?.disabled
111
111
  }),
112
112
  o.programTheme.strictMilitaryValidationEnabled && /* @__PURE__ */ (0, I.jsx)(M, {
113
113
  errorId: R.activeDutyStartDate,
114
114
  locale: H,
115
115
  onChange: (e) => {
116
- W("activeDutyStartDate", e), f("activeDutyStartDate", e, o);
116
+ W("activeDutyStartDate", e), p("activeDutyStartDate", e, o);
117
117
  },
118
118
  value: c.activeDutyStartDate,
119
- disabled: g("activeDutyStartDate")?.disabled,
120
- isRequired: g("activeDutyStartDate")?.requireIfOptional
119
+ disabled: _("activeDutyStartDate")?.disabled,
120
+ isRequired: _("activeDutyStartDate")?.requireIfOptional
121
121
  }),
122
122
  /* @__PURE__ */ (0, I.jsx)(w, {
123
123
  value: c.email,
@@ -127,20 +127,20 @@ var I = c(), L = ({ intl: a, verificationService: o }) => {
127
127
  defaultMessage: "Personal email address is recommended"
128
128
  }),
129
129
  onChange: (e) => {
130
- W("email", e), f("email", e, o);
130
+ W("email", e), p("email", e, o);
131
131
  },
132
- onKeyDown: (e) => p(e),
133
- disabled: g("email")?.disabled
132
+ onKeyDown: (e) => m(e),
133
+ disabled: _("email")?.disabled
134
134
  }),
135
135
  o.programTheme.isSmsNotifierConfigured || o.programTheme.smsLoopEnabled ? /* @__PURE__ */ (0, I.jsx)(x, {
136
136
  isRequired: !!o.programTheme.smsLoopEnabled,
137
137
  value: c.phoneNumber,
138
138
  isErrored: !!R.phoneNumber,
139
139
  onChange: (e) => {
140
- W("phoneNumber", e), f("phoneNumber", e, o);
140
+ W("phoneNumber", e), p("phoneNumber", e, o);
141
141
  },
142
142
  selectedCountryCode: c.countryChoice && c.countryChoice.value,
143
- disabled: g("phoneNumber")?.disabled
143
+ disabled: _("phoneNumber")?.disabled
144
144
  }) : null,
145
145
  U.customFormFields.map((e) => /* @__PURE__ */ (0, I.jsx)(b, {
146
146
  config: e,
@@ -153,10 +153,10 @@ var I = c(), L = ({ intl: a, verificationService: o }) => {
153
153
  W("metadata", {
154
154
  ...o.viewModel.metadata,
155
155
  marketConsentValue: e
156
- }), f("marketConsentValue", e, o);
156
+ }), p("marketConsentValue", e, o);
157
157
  },
158
158
  viewModel: c,
159
- disabled: g("marketConsentValue")?.disabled
159
+ disabled: _("marketConsentValue")?.disabled
160
160
  }),
161
161
  /* @__PURE__ */ (0, I.jsx)(O, {
162
162
  verificationService: o,
@@ -1 +1 @@
1
- {"version":3,"file":"StepActiveMilitaryPersonalInfoComponent-Blc8C61_.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 StepAct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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-KweeN4OQ.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,GACz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W,CAA8B"}
@@ -4,36 +4,36 @@
4
4
  * This file is not intended for use in other contexts and there are no guarantees about its behavior outside of MySheerID.
5
5
  */
6
6
  /**
7
- * VERSION: 2.275.0
8
- * BUILD_TIMESTAMP: 1787352276442
9
- * BUILD_DATE: Fri Aug 21 2026 22:44:36 GMT+0000 (Coordinated Universal Time)
10
- * BUILD_COMMIT: 30913cd7a2f4f6324e4692d7ed7cde8020560774
7
+ * VERSION: 2.276.0
8
+ * BUILD_TIMESTAMP: 1787688588835
9
+ * BUILD_DATE: Tue Aug 25 2026 20:09:48 GMT+0000 (Coordinated Universal Time)
10
+ * BUILD_COMMIT: 2d25c43e9725e6fd856b82b1bdf08408dfb6a86b
11
11
  */
12
- import { Ht as e, Jt as t, Lt as n, s as r } from "./intl-TN1Dianl.js";
13
- import { a as i, c as a, n as o, t as s } from "./jsx-runtime-QRCZ6ZTK.js";
14
- import { O as c } from "./FormFooterComponent-B_Wh4HXO.js";
12
+ import { Ht as e, Jt as t, Lt as n, s as r } from "./intl-Ft_65Lzo.js";
13
+ import { a as i, c as a, n as o, t as s } from "./jsx-runtime-Bq9F3xvK.js";
14
+ import { O as c } from "./FormFooterComponent-BuRQRQFI.js";
15
15
  import { t as l } from "../_mysheerid-preview.js";
16
- import { t as u } from "./useCollectFieldsEndpoint-CqUxwQWc.js";
17
- import { C as d, h as f, l as p, t as m, u as h, v as g } from "./stepComponentHelpers-DeWac6nj.js";
18
- import { a as _, i as v, n as y, o as b, s as x, t as S } from "./CaptchaComponent-CaHSH2GC.js";
19
- import { n as C, t as w } from "./PersonalInfoStepSubmitButton-C7QmpcVd.js";
20
- import { t as T } from "./BirthDateComponent-DA7yEebd.js";
21
- import { t as E } from "./PostalCodeComponent-Cd3MQUvZ.js";
22
- import { t as D } from "./CountryComponentWrapper-CEbjr-D-.js";
23
- import { t as O } from "./City-C1CWD14n.js";
24
- import { t as k } from "./AddressComponent-DeQlodxe.js";
25
- import { t as A } from "./ExtraMessage-DNuEH_rP.js";
26
- import { t as j } from "./ChangeLocaleComponent-BcCMSbju.js";
27
- import { t as M } from "./PersonalInfoStepWrapper-C3OKK8Mh.js";
16
+ import { t as u } from "./useCollectFieldsEndpoint-EgQ_hVpj.js";
17
+ import { S as d, _ as f, l as p, m, t as h, u as g } from "./stepComponentHelpers-2Sq02uha.js";
18
+ import { a as _, i as v, n as y, o as b, s as x, t as S } from "./CaptchaComponent-CoajXhka.js";
19
+ import { n as C, t as w } from "./PersonalInfoStepSubmitButton-DvMU95pj.js";
20
+ import { t as T } from "./BirthDateComponent-BYO6Kfgc.js";
21
+ import { t as E } from "./PostalCodeComponent-BF8Fplpm.js";
22
+ import { t as D } from "./CountryComponentWrapper-C45AFJGi.js";
23
+ import { t as O } from "./City-CEOnA40d.js";
24
+ import { t as k } from "./AddressComponent-DeNJR0XJ.js";
25
+ import { t as A } from "./ExtraMessage-CIU0SFFU.js";
26
+ import { t as j } from "./ChangeLocaleComponent-Z-taCJ6R.js";
27
+ import { t as M } from "./PersonalInfoStepWrapper-C-DG20qY.js";
28
28
  //#region src/components/StepAgePersonalInfo/StepAgePersonalInfoComponent.tsx
29
29
  var N = /* @__PURE__ */ t(a(), 1), P = s(), F = i(({ verificationService: t, intl: i }) => {
30
- let a = t.viewModel, { fieldValidationErrors: s } = t, F = t.verificationResponse, I = c(F), L = e(() => a.countryChoice.value, p(m(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();
30
+ let a = t.viewModel, { fieldValidationErrors: s } = t, F = t.verificationResponse, I = c(F), L = e(() => a.countryChoice.value, p(h(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();
31
31
  !s.phoneNumber && F.errorIds && F.errorIds.includes("invalidPhoneNumber") && t.updateFieldValidationErrors({
32
32
  ...s,
33
33
  phoneNumber: "invalidPhoneNumber"
34
34
  });
35
35
  let U = (e, n) => {
36
- let r = g(a, e, n);
36
+ let r = f(a, e, n);
37
37
  t.updateViewModel(r);
38
38
  }, { isFieldRequired: W } = u({
39
39
  verificationId: F.verificationId,
@@ -54,21 +54,21 @@ var N = /* @__PURE__ */ t(a(), 1), P = s(), F = i(({ verificationService: t, int
54
54
  /* @__PURE__ */ (0, P.jsx)(j, { verificationService: t }),
55
55
  /* @__PURE__ */ (0, P.jsx)(D, {
56
56
  verificationService: t,
57
- disabled: h("country")?.disabled
57
+ disabled: g("country")?.disabled
58
58
  }),
59
59
  /* @__PURE__ */ (0, P.jsxs)("div", {
60
60
  className: "sid-names",
61
61
  children: [/* @__PURE__ */ (0, P.jsx)(_, {
62
62
  value: a.firstName,
63
63
  isErrored: !!s.firstName,
64
- disabled: h("firstName")?.disabled,
64
+ disabled: g("firstName")?.disabled,
65
65
  onChange: (e) => {
66
66
  U("firstName", e), d("firstName", e, t);
67
67
  }
68
68
  }), /* @__PURE__ */ (0, P.jsx)(v, {
69
69
  value: a.lastName,
70
70
  isErrored: !!s.lastName,
71
- disabled: h("lastName")?.disabled,
71
+ disabled: g("lastName")?.disabled,
72
72
  onChange: (e) => {
73
73
  U("lastName", e), d("lastName", e, t);
74
74
  }
@@ -81,14 +81,14 @@ var N = /* @__PURE__ */ t(a(), 1), P = s(), F = i(({ verificationService: t, int
81
81
  U("birthDate", e), d("birthDate", e, t);
82
82
  },
83
83
  value: a.birthDate,
84
- disabled: h("birthDate")?.disabled
84
+ disabled: g("birthDate")?.disabled
85
85
  }),
86
86
  W("city") && /* @__PURE__ */ (0, P.jsx)(O, {
87
87
  value: a.city,
88
88
  isRequired: !0,
89
89
  isErrored: !!s.city,
90
90
  errorId: s.city,
91
- disabled: h("city")?.disabled,
91
+ disabled: g("city")?.disabled,
92
92
  onChange: (e) => {
93
93
  U("city", e), d("city", e, t);
94
94
  }
@@ -108,7 +108,7 @@ var N = /* @__PURE__ */ t(a(), 1), P = s(), F = i(({ verificationService: t, int
108
108
  U("postalCode", e), d("postalCode", e, t);
109
109
  },
110
110
  value: a.postalCode,
111
- disabled: h("postalCode")?.disabled
111
+ disabled: g("postalCode")?.disabled
112
112
  }),
113
113
  /* @__PURE__ */ (0, P.jsx)(C, {
114
114
  value: a.email,
@@ -120,8 +120,8 @@ var N = /* @__PURE__ */ t(a(), 1), P = s(), F = i(({ verificationService: t, int
120
120
  onChange: (e) => {
121
121
  U("email", e), d("email", e, t);
122
122
  },
123
- onKeyDown: (e) => f(e),
124
- disabled: h("email")?.disabled
123
+ onKeyDown: (e) => m(e),
124
+ disabled: g("email")?.disabled
125
125
  }),
126
126
  z ? /* @__PURE__ */ (0, P.jsx)(b, {
127
127
  isRequired: B,
@@ -131,7 +131,7 @@ var N = /* @__PURE__ */ t(a(), 1), P = s(), F = i(({ verificationService: t, int
131
131
  U("phoneNumber", e), d("phoneNumber", e, t);
132
132
  },
133
133
  selectedCountryCode: a.countryChoice && a.countryChoice.value,
134
- disabled: h("phoneNumber")?.disabled
134
+ disabled: g("phoneNumber")?.disabled
135
135
  }) : null,
136
136
  H.customFormFields.map((e) => /* @__PURE__ */ (0, P.jsx)(y, {
137
137
  config: e,
@@ -147,7 +147,7 @@ var N = /* @__PURE__ */ t(a(), 1), P = s(), F = i(({ verificationService: t, int
147
147
  }), d("marketConsentValue", e, t);
148
148
  },
149
149
  viewModel: a,
150
- disabled: h("marketConsentValue")?.disabled
150
+ disabled: g("marketConsentValue")?.disabled
151
151
  }),
152
152
  /* @__PURE__ */ (0, P.jsx)(A, {
153
153
  verificationService: t,
@@ -1 +1 @@
1
- {"version":3,"file":"StepAgePersonalInfo-BHWaDlVH.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;EAC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E,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-B3prBGtM.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,CAAC;CAOD,OALA,EAAM,gBAAgB;EAEpB,EAAqC,eAAe,EAAU,aAAa,CAAmB;CAChG,GAAG,CAAC,EAAU,OAAO,CAAC,GAGpB,iBAAA,GAAA,EAAA,MAAC,GAAD;EACuB;EACrB,MAAM,EAAqB;YAF7B;GAIE,iBAAA,GAAA,EAAA,KAAC,GAAD;IAAyC;IAAqB,qBAAoB;GAAO,CAAA;GAEzF,iBAAA,GAAA,EAAA,KAAC,GAA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