@sheerid/jslib 2.300.0 → 2.301.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 (343) hide show
  1. package/_mysheerid-preview.css +4 -4
  2. package/_mysheerid-preview.js +37 -37
  3. package/chunk/{AddressComponent-x6BuM8au.js → AddressComponent-BEWbgyyU.js} +5 -5
  4. package/chunk/{AddressComponent-DlI35H_a.js.map → AddressComponent-BEWbgyyU.js.map} +1 -1
  5. package/chunk/{AddressComponent-DlI35H_a.js → AddressComponent-BPwj5Sil.js} +5 -5
  6. package/chunk/{AddressComponent-x6BuM8au.js.map → AddressComponent-BPwj5Sil.js.map} +1 -1
  7. package/chunk/AnnouncingHeader-CnV2m0Ak.js +4 -4
  8. package/chunk/AnnouncingHeader-zH7WLU2-.js +4 -4
  9. package/chunk/{BirthDateComponent-I3fR6ykN.js → BirthDateComponent-BNfg7_US.js} +5 -5
  10. package/chunk/{BirthDateComponent-Bf_ESBId.js.map → BirthDateComponent-BNfg7_US.js.map} +1 -1
  11. package/chunk/{BirthDateComponent-Bf_ESBId.js → BirthDateComponent-DObuxy1i.js} +5 -5
  12. package/chunk/{BirthDateComponent-I3fR6ykN.js.map → BirthDateComponent-DObuxy1i.js.map} +1 -1
  13. package/chunk/{CaptchaComponent-CPy68xDd.js → CaptchaComponent-Bph-Hx_P.js} +8 -8
  14. package/chunk/{CaptchaComponent-CPy68xDd.js.map → CaptchaComponent-Bph-Hx_P.js.map} +1 -1
  15. package/chunk/{CaptchaComponent-D38WQwmT.js → CaptchaComponent-Ck6KIKN2.js} +8 -8
  16. package/chunk/{CaptchaComponent-D38WQwmT.js.map → CaptchaComponent-Ck6KIKN2.js.map} +1 -1
  17. package/chunk/{ChangeLocaleComponent-CSVg0Nnn.js → ChangeLocaleComponent-CALJO1x8.js} +7 -7
  18. package/chunk/{ChangeLocaleComponent-CSVg0Nnn.js.map → ChangeLocaleComponent-CALJO1x8.js.map} +1 -1
  19. package/chunk/{ChangeLocaleComponent-D9w_5kKC.js → ChangeLocaleComponent-D7_OjTLl.js} +7 -7
  20. package/chunk/{ChangeLocaleComponent-D9w_5kKC.js.map → ChangeLocaleComponent-D7_OjTLl.js.map} +1 -1
  21. package/chunk/{City-CyA91uLw.js → City-CiwdPtNB.js} +5 -5
  22. package/chunk/{City-ClQzhgTi.js.map → City-CiwdPtNB.js.map} +1 -1
  23. package/chunk/{City-ClQzhgTi.js → City-DJsn305o.js} +5 -5
  24. package/chunk/{City-CyA91uLw.js.map → City-DJsn305o.js.map} +1 -1
  25. package/chunk/{CollegeNameComponent-fIb0PEkZ.js → CollegeNameComponent-5EclWuRd.js} +7 -7
  26. package/chunk/{CollegeNameComponent-BfS1tezJ.js.map → CollegeNameComponent-5EclWuRd.js.map} +1 -1
  27. package/chunk/{CollegeNameComponent-BfS1tezJ.js → CollegeNameComponent-KJePycZo.js} +7 -7
  28. package/chunk/{CollegeNameComponent-fIb0PEkZ.js.map → CollegeNameComponent-KJePycZo.js.map} +1 -1
  29. package/chunk/CopyToClipboardComponent-BdrpxpHJ.js +4 -4
  30. package/chunk/CopyToClipboardComponent-Dm3-3x4b.js +4 -4
  31. package/chunk/{CountryComponentWrapper-gz_CoCUW.js → CountryComponentWrapper-BNw5A52k.js} +7 -7
  32. package/chunk/{CountryComponentWrapper-DC_jx0yQ.js.map → CountryComponentWrapper-BNw5A52k.js.map} +1 -1
  33. package/chunk/{CountryComponentWrapper-DC_jx0yQ.js → CountryComponentWrapper-BnK7IyJk.js} +7 -7
  34. package/chunk/{CountryComponentWrapper-gz_CoCUW.js.map → CountryComponentWrapper-BnK7IyJk.js.map} +1 -1
  35. package/chunk/{DischargeDateComponent-Dyil9dAb.js → DischargeDateComponent-Vf4nB0iJ.js} +8 -8
  36. package/chunk/{DischargeDateComponent-CkQKujQv.js.map → DischargeDateComponent-Vf4nB0iJ.js.map} +1 -1
  37. package/chunk/{DischargeDateComponent-CkQKujQv.js → DischargeDateComponent-_xLzJ8wX.js} +8 -8
  38. package/chunk/{DischargeDateComponent-Dyil9dAb.js.map → DischargeDateComponent-_xLzJ8wX.js.map} +1 -1
  39. package/chunk/{DriverLicenseNumberComponent-DRG-AC8J.js → DriverLicenseNumberComponent-C1BLt82I.js} +5 -5
  40. package/chunk/{DriverLicenseNumberComponent-D9nn2MkE.js.map → DriverLicenseNumberComponent-C1BLt82I.js.map} +1 -1
  41. package/chunk/{DriverLicenseNumberComponent-D9nn2MkE.js → DriverLicenseNumberComponent-Dbjso2Dz.js} +5 -5
  42. package/chunk/{DriverLicenseNumberComponent-DRG-AC8J.js.map → DriverLicenseNumberComponent-Dbjso2Dz.js.map} +1 -1
  43. package/chunk/{EmailLoopPending-H8H6yIsz.js → EmailLoopPending-BNl95PRR.js} +6 -6
  44. package/chunk/{EmailLoopPending-DYroEaXX.js.map → EmailLoopPending-BNl95PRR.js.map} +1 -1
  45. package/chunk/{EmailLoopPending-DYroEaXX.js → EmailLoopPending-Ds2qvvmE.js} +6 -6
  46. package/chunk/{EmailLoopPending-H8H6yIsz.js.map → EmailLoopPending-Ds2qvvmE.js.map} +1 -1
  47. package/chunk/{ExtraMessage-CZH3rwtd.js → ExtraMessage-AR2qmGJj.js} +5 -5
  48. package/chunk/{ExtraMessage-CCKKmRh-.js.map → ExtraMessage-AR2qmGJj.js.map} +1 -1
  49. package/chunk/{ExtraMessage-CCKKmRh-.js → ExtraMessage-CfJZz8mR.js} +5 -5
  50. package/chunk/{ExtraMessage-CZH3rwtd.js.map → ExtraMessage-CfJZz8mR.js.map} +1 -1
  51. package/chunk/{FirstResponderOrganizationComponent-DQYDzThA.js → FirstResponderOrganizationComponent-CCc9dchN.js} +7 -7
  52. package/chunk/{FirstResponderOrganizationComponent-CtJ-ye0M.js.map → FirstResponderOrganizationComponent-CCc9dchN.js.map} +1 -1
  53. package/chunk/{FirstResponderOrganizationComponent-CtJ-ye0M.js → FirstResponderOrganizationComponent-GUaaXkDp.js} +7 -7
  54. package/chunk/{FirstResponderOrganizationComponent-DQYDzThA.js.map → FirstResponderOrganizationComponent-GUaaXkDp.js.map} +1 -1
  55. package/chunk/{FormFieldInputSelect-DxqQuYZ9.js → FormFieldInputSelect-BH3T9P7y.js} +5 -5
  56. package/chunk/{FormFieldInputSelect-CR7qimq6.js.map → FormFieldInputSelect-BH3T9P7y.js.map} +1 -1
  57. package/chunk/{FormFieldInputSelect-CR7qimq6.js → FormFieldInputSelect-CciL8giC.js} +5 -5
  58. package/chunk/{FormFieldInputSelect-DxqQuYZ9.js.map → FormFieldInputSelect-CciL8giC.js.map} +1 -1
  59. package/chunk/FormFieldLayout-D1tb5nAu.js +4 -4
  60. package/chunk/FormFieldLayout-Dt_dMiDh.js +4 -4
  61. package/chunk/FormFieldText-BU2NBm1H.js +4 -4
  62. package/chunk/FormFieldText-CsFISbyw.js +4 -4
  63. package/chunk/{FormFieldTypeahead-BesC5zby.js → FormFieldTypeahead-BkSBFcxB.js} +7 -7
  64. package/chunk/{FormFieldTypeahead-BesC5zby.js.map → FormFieldTypeahead-BkSBFcxB.js.map} +1 -1
  65. package/chunk/{FormFieldTypeahead-BKrucHBk.js → FormFieldTypeahead-tWrDIZmx.js} +7 -7
  66. package/chunk/{FormFieldTypeahead-BKrucHBk.js.map → FormFieldTypeahead-tWrDIZmx.js.map} +1 -1
  67. package/chunk/{FormFooterComponent-BrYSzs1B.js → FormFooterComponent-CUDMJyyc.js} +8 -8
  68. package/chunk/{FormFooterComponent-BrYSzs1B.js.map → FormFooterComponent-CUDMJyyc.js.map} +1 -1
  69. package/chunk/{FormFooterComponent-DEps7Imq.js → FormFooterComponent-CfWYgtl_.js} +8 -8
  70. package/chunk/{FormFooterComponent-DEps7Imq.js.map → FormFooterComponent-CfWYgtl_.js.map} +1 -1
  71. package/chunk/{FormSelectChoice-BXvuPodN.js → FormSelectChoice-BnA3ckgQ.js} +6 -6
  72. package/chunk/{FormSelectChoice-BXvuPodN.js.map → FormSelectChoice-BnA3ckgQ.js.map} +1 -1
  73. package/chunk/{FormSelectChoice-C2S8cVWC.js → FormSelectChoice-S-YrbLkq.js} +6 -6
  74. package/chunk/{FormSelectChoice-C2S8cVWC.js.map → FormSelectChoice-S-YrbLkq.js.map} +1 -1
  75. package/chunk/InputText-CuBi-ytU.js +4 -4
  76. package/chunk/InputText-DMztCQmi.js +4 -4
  77. package/chunk/{LicensedProfessionalOrganizationComponent-B9yBMLMW.js → LicensedProfessionalOrganizationComponent-BP89Nm3A.js} +7 -7
  78. package/chunk/{LicensedProfessionalOrganizationComponent-B9yBMLMW.js.map → LicensedProfessionalOrganizationComponent-BP89Nm3A.js.map} +1 -1
  79. package/chunk/{LicensedProfessionalOrganizationComponent-CueqEFzp.js → LicensedProfessionalOrganizationComponent-DHmw8jWm.js} +7 -7
  80. package/chunk/{LicensedProfessionalOrganizationComponent-CueqEFzp.js.map → LicensedProfessionalOrganizationComponent-DHmw8jWm.js.map} +1 -1
  81. package/chunk/{LogoComponent-CrQYqv08.js → LogoComponent-BqLuh4fi.js} +5 -5
  82. package/chunk/{LogoComponent-BFselU-U.js.map → LogoComponent-BqLuh4fi.js.map} +1 -1
  83. package/chunk/{LogoComponent-BFselU-U.js → LogoComponent-vyS7eYVw.js} +5 -5
  84. package/chunk/{LogoComponent-CrQYqv08.js.map → LogoComponent-vyS7eYVw.js.map} +1 -1
  85. package/chunk/{LowIncomeOrganizationComponent-BUzo5wLL.js → LowIncomeOrganizationComponent-BM_yqXAQ.js} +8 -8
  86. package/chunk/{LowIncomeOrganizationComponent-CnNDzm_h.js.map → LowIncomeOrganizationComponent-BM_yqXAQ.js.map} +1 -1
  87. package/chunk/{LowIncomeOrganizationComponent-CnNDzm_h.js → LowIncomeOrganizationComponent-e_RL80P8.js} +8 -8
  88. package/chunk/{LowIncomeOrganizationComponent-BUzo5wLL.js.map → LowIncomeOrganizationComponent-e_RL80P8.js.map} +1 -1
  89. package/chunk/{MedicalProfessionalOrganizationComponent-DTFkFHzz.js → MedicalProfessionalOrganizationComponent-CmmAZzPN.js} +7 -7
  90. package/chunk/{MedicalProfessionalOrganizationComponent-C6416Fsk.js.map → MedicalProfessionalOrganizationComponent-CmmAZzPN.js.map} +1 -1
  91. package/chunk/{MedicalProfessionalOrganizationComponent-C6416Fsk.js → MedicalProfessionalOrganizationComponent-Dy2GaHE_.js} +7 -7
  92. package/chunk/{MedicalProfessionalOrganizationComponent-DTFkFHzz.js.map → MedicalProfessionalOrganizationComponent-Dy2GaHE_.js.map} +1 -1
  93. package/chunk/{MemberIdComponent-DQcsjRny.js → MemberIdComponent-CCdfCvZ0.js} +5 -5
  94. package/chunk/{MemberIdComponent-CPDoe1HL.js.map → MemberIdComponent-CCdfCvZ0.js.map} +1 -1
  95. package/chunk/{MemberIdComponent-CPDoe1HL.js → MemberIdComponent-DNv9n8Hb.js} +5 -5
  96. package/chunk/{MemberIdComponent-DQcsjRny.js.map → MemberIdComponent-DNv9n8Hb.js.map} +1 -1
  97. package/chunk/{MembershipOrganizationComponent-P_JrQVHd.js → MembershipOrganizationComponent-6cGIm01y.js} +7 -7
  98. package/chunk/{MembershipOrganizationComponent-60ZGDL6P.js.map → MembershipOrganizationComponent-6cGIm01y.js.map} +1 -1
  99. package/chunk/{MembershipOrganizationComponent-60ZGDL6P.js → MembershipOrganizationComponent-BQz6Evf7.js} +7 -7
  100. package/chunk/{MembershipOrganizationComponent-P_JrQVHd.js.map → MembershipOrganizationComponent-BQz6Evf7.js.map} +1 -1
  101. package/chunk/{Message-D-ID3nyt.js → Message-BhR899qn.js} +5 -5
  102. package/chunk/{Message-D-ID3nyt.js.map → Message-BhR899qn.js.map} +1 -1
  103. package/chunk/{Message-B9El0eKQ.js → Message-DQ6jJtVh.js} +5 -5
  104. package/chunk/{Message-B9El0eKQ.js.map → Message-DQ6jJtVh.js.map} +1 -1
  105. package/chunk/Onfido-CTCgAwnB.js +4 -4
  106. package/chunk/{PersonalInfoStepSubmitButton-CyIbpdpL.js → PersonalInfoStepSubmitButton-84FEQ5RF.js} +5 -5
  107. package/chunk/{PersonalInfoStepSubmitButton-CyIbpdpL.js.map → PersonalInfoStepSubmitButton-84FEQ5RF.js.map} +1 -1
  108. package/chunk/{PersonalInfoStepSubmitButton-DpNy1B1C.js → PersonalInfoStepSubmitButton-BSWQ9V8r.js} +5 -5
  109. package/chunk/{PersonalInfoStepSubmitButton-DpNy1B1C.js.map → PersonalInfoStepSubmitButton-BSWQ9V8r.js.map} +1 -1
  110. package/chunk/{PersonalInfoStepWrapper-fphBx-Va.js → PersonalInfoStepWrapper-DPH_RA63.js} +6 -6
  111. package/chunk/{PersonalInfoStepWrapper-fphBx-Va.js.map → PersonalInfoStepWrapper-DPH_RA63.js.map} +1 -1
  112. package/chunk/{PersonalInfoStepWrapper-IoWfgPTg.js → PersonalInfoStepWrapper-DR_Aiqs5.js} +5 -5
  113. package/chunk/{PersonalInfoStepWrapper-IoWfgPTg.js.map → PersonalInfoStepWrapper-DR_Aiqs5.js.map} +1 -1
  114. package/chunk/{PostalCodeComponent-BxtOJQ92.js → PostalCodeComponent-Cehw9Ixk.js} +5 -5
  115. package/chunk/{PostalCodeComponent-BxtOJQ92.js.map → PostalCodeComponent-Cehw9Ixk.js.map} +1 -1
  116. package/chunk/{PostalCodeComponent-CBNDz5cX.js → PostalCodeComponent-DS7sq5Fu.js} +5 -5
  117. package/chunk/{PostalCodeComponent-CBNDz5cX.js.map → PostalCodeComponent-DS7sq5Fu.js.map} +1 -1
  118. package/chunk/{SSN-Cs3P5A40.js → SSN-B-fVx0mH.js} +5 -5
  119. package/chunk/{SSN-Cs3P5A40.js.map → SSN-B-fVx0mH.js.map} +1 -1
  120. package/chunk/{SSN-2_hOM_R3.js → SSN-CEtUaJIx.js} +5 -5
  121. package/chunk/{SSN-2_hOM_R3.js.map → SSN-CEtUaJIx.js.map} +1 -1
  122. package/chunk/{StateSelectComponent-BL-Ub3W8.js → StateSelectComponent-Cb-vaXK4.js} +7 -7
  123. package/chunk/{StateSelectComponent-VTkNvr9b.js.map → StateSelectComponent-Cb-vaXK4.js.map} +1 -1
  124. package/chunk/{StateSelectComponent-VTkNvr9b.js → StateSelectComponent-m6gRTPzD.js} +7 -7
  125. package/chunk/{StateSelectComponent-BL-Ub3W8.js.map → StateSelectComponent-m6gRTPzD.js.map} +1 -1
  126. package/chunk/{StatusComponent-CBgImupN.js → StatusComponent-BpHODprb.js} +6 -6
  127. package/chunk/{StatusComponent-CBgImupN.js.map → StatusComponent-BpHODprb.js.map} +1 -1
  128. package/chunk/{StatusComponent-C1rPwGLo.js → StatusComponent-DxyUt9Qq.js} +6 -6
  129. package/chunk/{StatusComponent-C1rPwGLo.js.map → StatusComponent-DxyUt9Qq.js.map} +1 -1
  130. package/chunk/{StepAgePersonalInfo-CphLBaA8.js → StepAgePersonalInfo-CGje8ZhE.js} +17 -17
  131. package/chunk/{StepAgePersonalInfo-CphLBaA8.js.map → StepAgePersonalInfo-CGje8ZhE.js.map} +1 -1
  132. package/chunk/{StepAgePersonalInfo-NztHW1k6.js → StepAgePersonalInfo-CJRpFE9T.js} +17 -17
  133. package/chunk/{StepAgePersonalInfo-NztHW1k6.js.map → StepAgePersonalInfo-CJRpFE9T.js.map} +1 -1
  134. package/chunk/StepCard-DJR-l3sW.js +4 -4
  135. package/chunk/StepCard-wwTRGIhn.js +4 -4
  136. package/chunk/{StepCollectIdentifier-B1_ycDfw.js → StepCollectIdentifier-3g3B0kpM.js} +6 -6
  137. package/chunk/{StepCollectIdentifier-g9ryUUeH.js.map → StepCollectIdentifier-3g3B0kpM.js.map} +1 -1
  138. package/chunk/{StepCollectIdentifier-g9ryUUeH.js → StepCollectIdentifier-DfMHAYtu.js} +6 -6
  139. package/chunk/{StepCollectIdentifier-B1_ycDfw.js.map → StepCollectIdentifier-DfMHAYtu.js.map} +1 -1
  140. package/chunk/{StepCollectMilitaryPersonalInfoComponent-DnrIHNFP.js → StepCollectMilitaryPersonalInfoComponent-BTE4o83C.js} +21 -21
  141. package/chunk/{StepCollectMilitaryPersonalInfoComponent-CXNKuaYi.js.map → StepCollectMilitaryPersonalInfoComponent-BTE4o83C.js.map} +1 -1
  142. package/chunk/{StepCollectMilitaryPersonalInfoComponent-CXNKuaYi.js → StepCollectMilitaryPersonalInfoComponent-lBsFco-g.js} +21 -21
  143. package/chunk/{StepCollectMilitaryPersonalInfoComponent-DnrIHNFP.js.map → StepCollectMilitaryPersonalInfoComponent-lBsFco-g.js.map} +1 -1
  144. package/chunk/{StepCollectPersonalInfo-BE1_LVLL.js → StepCollectPersonalInfo-D7tF7Icl.js} +31 -31
  145. package/chunk/{StepCollectPersonalInfo-BE1_LVLL.js.map → StepCollectPersonalInfo-D7tF7Icl.js.map} +1 -1
  146. package/chunk/{StepCollectPersonalInfo-DqiXiynI.js → StepCollectPersonalInfo-Qmt3szQe.js} +31 -31
  147. package/chunk/{StepCollectPersonalInfo-DqiXiynI.js.map → StepCollectPersonalInfo-Qmt3szQe.js.map} +1 -1
  148. package/chunk/StepCompleteAuthentication-BawnNriI.js +4 -4
  149. package/chunk/StepCompleteAuthentication-VpE4-5vs.js +4 -4
  150. package/chunk/{StepConsolation-B-6ugg91.js → StepConsolation-CQAMlrAM.js} +6 -6
  151. package/chunk/{StepConsolation-5vihi-JE.js.map → StepConsolation-CQAMlrAM.js.map} +1 -1
  152. package/chunk/{StepConsolation-5vihi-JE.js → StepConsolation-obGdRkBU.js} +6 -6
  153. package/chunk/{StepConsolation-B-6ugg91.js.map → StepConsolation-obGdRkBU.js.map} +1 -1
  154. package/chunk/{StepDocUpload-kH_2yW4i.js → StepDocUpload-BfChuBP1.js} +7 -7
  155. package/chunk/{StepDocUpload-kH_2yW4i.js.map → StepDocUpload-BfChuBP1.js.map} +1 -1
  156. package/chunk/{StepDocUpload-Bu25hr7V.js → StepDocUpload-CctG1FtI.js} +7 -7
  157. package/chunk/{StepDocUpload-Bu25hr7V.js.map → StepDocUpload-CctG1FtI.js.map} +1 -1
  158. package/chunk/{StepDriverLicensePersonalInfoComponent-Er2dJmuT.js → StepDriverLicensePersonalInfoComponent-CXr079wT.js} +12 -12
  159. package/chunk/{StepDriverLicensePersonalInfoComponent-CGa6kAij.js.map → StepDriverLicensePersonalInfoComponent-CXr079wT.js.map} +1 -1
  160. package/chunk/{StepDriverLicensePersonalInfoComponent-CGa6kAij.js → StepDriverLicensePersonalInfoComponent-RXVtZ0l5.js} +12 -12
  161. package/chunk/{StepDriverLicensePersonalInfoComponent-Er2dJmuT.js.map → StepDriverLicensePersonalInfoComponent-RXVtZ0l5.js.map} +1 -1
  162. package/chunk/{StepEmailLoop-CIxOuoP9.js → StepEmailLoop-CRezfb91.js} +7 -7
  163. package/chunk/{StepEmailLoop-CIxOuoP9.js.map → StepEmailLoop-CRezfb91.js.map} +1 -1
  164. package/chunk/{StepEmailLoop-E2eKRjqx.js → StepEmailLoop-ttOkWzLy.js} +7 -7
  165. package/chunk/{StepEmailLoop-E2eKRjqx.js.map → StepEmailLoop-ttOkWzLy.js.map} +1 -1
  166. package/chunk/{StepEmploymentPersonalInfo-CsH7NDu5.js → StepEmploymentPersonalInfo-8DEWLkgj.js} +17 -17
  167. package/chunk/{StepEmploymentPersonalInfo-Bu4X5QMt.js.map → StepEmploymentPersonalInfo-8DEWLkgj.js.map} +1 -1
  168. package/chunk/{StepEmploymentPersonalInfo-Bu4X5QMt.js → StepEmploymentPersonalInfo-CB32xHwu.js} +17 -17
  169. package/chunk/{StepEmploymentPersonalInfo-CsH7NDu5.js.map → StepEmploymentPersonalInfo-CB32xHwu.js.map} +1 -1
  170. package/chunk/{StepFirstResponderPersonalInfo-B5XBr0pf.js → StepFirstResponderPersonalInfo-BHkVD6pF.js} +18 -18
  171. package/chunk/{StepFirstResponderPersonalInfo-B5XBr0pf.js.map → StepFirstResponderPersonalInfo-BHkVD6pF.js.map} +1 -1
  172. package/chunk/{StepFirstResponderPersonalInfo-DP243kjs.js → StepFirstResponderPersonalInfo-CHG-u247.js} +18 -18
  173. package/chunk/{StepFirstResponderPersonalInfo-DP243kjs.js.map → StepFirstResponderPersonalInfo-CHG-u247.js.map} +1 -1
  174. package/chunk/{StepGeneralIdentityPersonalInfoComponent-D6GrymW_.js → StepGeneralIdentityPersonalInfoComponent-BcNLtTjR.js} +15 -15
  175. package/chunk/{StepGeneralIdentityPersonalInfoComponent-D6GrymW_.js.map → StepGeneralIdentityPersonalInfoComponent-BcNLtTjR.js.map} +1 -1
  176. package/chunk/{StepGeneralIdentityPersonalInfoComponent-QJcCs6V_.js → StepGeneralIdentityPersonalInfoComponent-DtIQyBPC.js} +15 -15
  177. package/chunk/{StepGeneralIdentityPersonalInfoComponent-QJcCs6V_.js.map → StepGeneralIdentityPersonalInfoComponent-DtIQyBPC.js.map} +1 -1
  178. package/chunk/{StepHybridIdentityPersonalInfoComponent-zwYuMM7f.js → StepHybridIdentityPersonalInfoComponent-DAlyAe1R.js} +16 -16
  179. package/chunk/{StepHybridIdentityPersonalInfoComponent-oc1_nwDA.js.map → StepHybridIdentityPersonalInfoComponent-DAlyAe1R.js.map} +1 -1
  180. package/chunk/{StepHybridIdentityPersonalInfoComponent-oc1_nwDA.js → StepHybridIdentityPersonalInfoComponent-pZnqtdgc.js} +16 -16
  181. package/chunk/{StepHybridIdentityPersonalInfoComponent-zwYuMM7f.js.map → StepHybridIdentityPersonalInfoComponent-pZnqtdgc.js.map} +1 -1
  182. package/chunk/{StepIDCheckLoop-CdhWplrP.js → StepIDCheckLoop-DPWGtqCO.js} +5 -5
  183. package/chunk/{StepIDCheckLoop-CdhWplrP.js.map → StepIDCheckLoop-DPWGtqCO.js.map} +1 -1
  184. package/chunk/{StepIDCheckLoop-B7WczXPe.js → StepIDCheckLoop-p6n8lcQd.js} +5 -5
  185. package/chunk/{StepIDCheckLoop-B7WczXPe.js.map → StepIDCheckLoop-p6n8lcQd.js.map} +1 -1
  186. package/chunk/{StepIDCheckLoopOnfido-BfeiYCBR.js → StepIDCheckLoopOnfido-D9Y05v4C.js} +7 -7
  187. package/chunk/{StepIDCheckLoopOnfido-_V3Z1idA.js.map → StepIDCheckLoopOnfido-D9Y05v4C.js.map} +1 -1
  188. package/chunk/{StepIDCheckLoopOnfido-_V3Z1idA.js → StepIDCheckLoopOnfido-DHaIUAos.js} +7 -7
  189. package/chunk/{StepIDCheckLoopOnfido-BfeiYCBR.js.map → StepIDCheckLoopOnfido-DHaIUAos.js.map} +1 -1
  190. package/chunk/{StepIDCheckLoopRegula-FOF3-5OW.js → StepIDCheckLoopRegula-Bu2I4xdz.js} +7 -7
  191. package/chunk/{StepIDCheckLoopRegula-D2w6IBm-.js.map → StepIDCheckLoopRegula-Bu2I4xdz.js.map} +1 -1
  192. package/chunk/{StepIDCheckLoopRegula-D2w6IBm-.js → StepIDCheckLoopRegula-DEPpvRuh.js} +7 -7
  193. package/chunk/{StepIDCheckLoopRegula-FOF3-5OW.js.map → StepIDCheckLoopRegula-DEPpvRuh.js.map} +1 -1
  194. package/chunk/{StepLicensedProfessionalPersonalInfo-fWYZu_jV.js → StepLicensedProfessionalPersonalInfo-BBBGgAoH.js} +18 -18
  195. package/chunk/{StepLicensedProfessionalPersonalInfo-DYJEn7L_.js.map → StepLicensedProfessionalPersonalInfo-BBBGgAoH.js.map} +1 -1
  196. package/chunk/{StepLicensedProfessionalPersonalInfo-DYJEn7L_.js → StepLicensedProfessionalPersonalInfo-DZBz6N2W.js} +18 -18
  197. package/chunk/{StepLicensedProfessionalPersonalInfo-fWYZu_jV.js.map → StepLicensedProfessionalPersonalInfo-DZBz6N2W.js.map} +1 -1
  198. package/chunk/{StepLowIncomePersonalInfo-CzNnZ7bw.js → StepLowIncomePersonalInfo-BW8oZ3rM.js} +21 -21
  199. package/chunk/{StepLowIncomePersonalInfo-CzNnZ7bw.js.map → StepLowIncomePersonalInfo-BW8oZ3rM.js.map} +1 -1
  200. package/chunk/{StepLowIncomePersonalInfo-DxOTvWl7.js → StepLowIncomePersonalInfo-G-xwYWJR.js} +21 -21
  201. package/chunk/{StepLowIncomePersonalInfo-DxOTvWl7.js.map → StepLowIncomePersonalInfo-G-xwYWJR.js.map} +1 -1
  202. package/chunk/{StepMedicalProfessionalPersonalInfo-BxwC9WRG.js → StepMedicalProfessionalPersonalInfo-J-8Z4ICP.js} +19 -19
  203. package/chunk/{StepMedicalProfessionalPersonalInfo-BxwC9WRG.js.map → StepMedicalProfessionalPersonalInfo-J-8Z4ICP.js.map} +1 -1
  204. package/chunk/{StepMedicalProfessionalPersonalInfo-ClhrR715.js → StepMedicalProfessionalPersonalInfo-X1mHHs_B.js} +19 -19
  205. package/chunk/{StepMedicalProfessionalPersonalInfo-ClhrR715.js.map → StepMedicalProfessionalPersonalInfo-X1mHHs_B.js.map} +1 -1
  206. package/chunk/{StepMemberPersonalInfo-DwnSwugb.js → StepMemberPersonalInfo-Bx_3dKls.js} +14 -14
  207. package/chunk/{StepMemberPersonalInfo-C8TLNBRo.js.map → StepMemberPersonalInfo-Bx_3dKls.js.map} +1 -1
  208. package/chunk/{StepMemberPersonalInfo-C8TLNBRo.js → StepMemberPersonalInfo-DSt5OttB.js} +14 -14
  209. package/chunk/{StepMemberPersonalInfo-DwnSwugb.js.map → StepMemberPersonalInfo-DSt5OttB.js.map} +1 -1
  210. package/chunk/{StepMoverPersonalInfo-C9nOwwEs.js → StepMoverPersonalInfo-CJZK05Is.js} +12 -12
  211. package/chunk/{StepMoverPersonalInfo-C9nOwwEs.js.map → StepMoverPersonalInfo-CJZK05Is.js.map} +1 -1
  212. package/chunk/{StepMoverPersonalInfo-raBemDeE.js → StepMoverPersonalInfo-DT7R7gmg.js} +12 -12
  213. package/chunk/{StepMoverPersonalInfo-raBemDeE.js.map → StepMoverPersonalInfo-DT7R7gmg.js.map} +1 -1
  214. package/chunk/{StepOverrideComponent-CsBoIW58.js → StepOverrideComponent-CcrXFWE9.js} +7 -7
  215. package/chunk/{StepOverrideComponent-CsBoIW58.js.map → StepOverrideComponent-CcrXFWE9.js.map} +1 -1
  216. package/chunk/{StepOverrideComponent-hXEUikIp.js → StepOverrideComponent-Cvdi7k8S.js} +7 -7
  217. package/chunk/{StepOverrideComponent-hXEUikIp.js.map → StepOverrideComponent-Cvdi7k8S.js.map} +1 -1
  218. package/chunk/{StepSMSLoop-DhQDGt-C.js → StepSMSLoop-DbJeZm_u.js} +5 -5
  219. package/chunk/{StepSMSLoop-DhQDGt-C.js.map → StepSMSLoop-DbJeZm_u.js.map} +1 -1
  220. package/chunk/{StepSMSLoop-RR4NAEv3.js → StepSMSLoop-LeMrNbuV.js} +5 -5
  221. package/chunk/{StepSMSLoop-RR4NAEv3.js.map → StepSMSLoop-LeMrNbuV.js.map} +1 -1
  222. package/chunk/StepSSO-BGHCbduX.js +4 -4
  223. package/chunk/StepSSO-ZHByQpHa.js +4 -4
  224. package/chunk/{StepSocialSecurityNumber-CDmrKavT.js → StepSocialSecurityNumber-Bkdd03cD.js} +8 -8
  225. package/chunk/{StepSocialSecurityNumber-CDmrKavT.js.map → StepSocialSecurityNumber-Bkdd03cD.js.map} +1 -1
  226. package/chunk/{StepSocialSecurityNumber-_ZgW1bFX.js → StepSocialSecurityNumber-D8g9uAwu.js} +8 -8
  227. package/chunk/{StepSocialSecurityNumber-_ZgW1bFX.js.map → StepSocialSecurityNumber-D8g9uAwu.js.map} +1 -1
  228. package/chunk/{StepStudentPersonalInfo-C1dtOD08.js → StepStudentPersonalInfo-BT1PyRoj.js} +16 -16
  229. package/chunk/{StepStudentPersonalInfo-C1dtOD08.js.map → StepStudentPersonalInfo-BT1PyRoj.js.map} +1 -1
  230. package/chunk/{StepStudentPersonalInfo-Cx0tZnpd.js → StepStudentPersonalInfo-DU9ljdbc.js} +16 -16
  231. package/chunk/{StepStudentPersonalInfo-Cx0tZnpd.js.map → StepStudentPersonalInfo-DU9ljdbc.js.map} +1 -1
  232. package/chunk/{StepSuccess-qRfhpHM1.js → StepSuccess-B71EWZ-Z.js} +6 -6
  233. package/chunk/{StepSuccess-qRfhpHM1.js.map → StepSuccess-B71EWZ-Z.js.map} +1 -1
  234. package/chunk/{StepSuccess-DynHfeVg.js → StepSuccess-DLAsamcH.js} +6 -6
  235. package/chunk/{StepSuccess-DynHfeVg.js.map → StepSuccess-DLAsamcH.js.map} +1 -1
  236. package/chunk/{StepTeacherPersonalInfo-BGkefNw4.js → StepTeacherPersonalInfo-Cxi2USWi.js} +15 -15
  237. package/chunk/{StepTeacherPersonalInfo-BGkefNw4.js.map → StepTeacherPersonalInfo-Cxi2USWi.js.map} +1 -1
  238. package/chunk/{StepTeacherPersonalInfo-DbAoE4kA.js → StepTeacherPersonalInfo-DyJxPpfk.js} +15 -15
  239. package/chunk/{StepTeacherPersonalInfo-DbAoE4kA.js.map → StepTeacherPersonalInfo-DyJxPpfk.js.map} +1 -1
  240. package/chunk/StepThirdPartyLoop-BrKuZcYb.js +4 -4
  241. package/chunk/StepThirdPartyLoop-CbFTIlwP.js +4 -4
  242. package/chunk/{TeacherSchoolComponent-Da9QU8fR.js → TeacherSchoolComponent-DO6iQ8iK.js} +7 -7
  243. package/chunk/{TeacherSchoolComponent-Da9QU8fR.js.map → TeacherSchoolComponent-DO6iQ8iK.js.map} +1 -1
  244. package/chunk/{TeacherSchoolComponent-Dq-UZXkM.js → TeacherSchoolComponent-SYKzsbk5.js} +7 -7
  245. package/chunk/{TeacherSchoolComponent-Dq-UZXkM.js.map → TeacherSchoolComponent-SYKzsbk5.js.map} +1 -1
  246. package/chunk/TestingRouteOverrides-BbCY31VT.js +4 -4
  247. package/chunk/TestingRouteOverrides-DEu_4afz.js +4 -4
  248. package/chunk/ThreatMetrix-D_TbL50B.js +4 -4
  249. package/chunk/ar-D5CO913q.js +4 -4
  250. package/chunk/bg-1mhA5kYF.js +4 -4
  251. package/chunk/bn-IN-CpDqyRb_.js +4 -4
  252. package/chunk/clsx-CB5rauS5.js +4 -4
  253. package/chunk/{countryUtils-DE4eQAAo.js → countryUtils-BXKSL95G.js} +5 -5
  254. package/chunk/{countryUtils-D50KRNPY.js.map → countryUtils-BXKSL95G.js.map} +1 -1
  255. package/chunk/countryUtils-BqrT9eSz.js +12 -0
  256. package/chunk/{countryUtils-DE4eQAAo.js.map → countryUtils-BqrT9eSz.js.map} +1 -1
  257. package/chunk/cs-Chh7FAGt.js +4 -4
  258. package/chunk/da-DwrVoxto.js +4 -4
  259. package/chunk/de-IWGZLhgY.js +4 -4
  260. package/chunk/{downshift.esm-VXeyIisf.js → downshift.esm-AyQ9NowL.js} +5 -5
  261. package/chunk/{downshift.esm-U13Mcse5.js.map → downshift.esm-AyQ9NowL.js.map} +1 -1
  262. package/chunk/{downshift.esm-U13Mcse5.js → downshift.esm-DuoAt8eK.js} +5 -5
  263. package/chunk/{downshift.esm-VXeyIisf.js.map → downshift.esm-DuoAt8eK.js.map} +1 -1
  264. package/chunk/el-DbDcvSPJ.js +4 -4
  265. package/chunk/empties-B034wwK_.js +4 -4
  266. package/chunk/empties-lrCPA-9V.js +4 -4
  267. package/chunk/en-GB-CNQ8Ww2j.js +4 -4
  268. package/chunk/es-ES-DWimqEZ_.js +4 -4
  269. package/chunk/es-qhC-seq5.js +4 -4
  270. package/chunk/et-yF9G-Mym.js +4 -4
  271. package/chunk/eventEmitter-CSG6jR7V.js +4 -4
  272. package/chunk/fa-BcdSf7og.js +4 -4
  273. package/chunk/fi-D-IP_KHm.js +4 -4
  274. package/chunk/fr-BmUuYxk0.js +4 -4
  275. package/chunk/fr-CA-DVQ4xmzZ.js +4 -4
  276. package/chunk/ga-DuZycND3.js +4 -4
  277. package/chunk/hi-IN-l6Rn5Ewm.js +4 -4
  278. package/chunk/hooks-DtYEjP2m.js +4 -4
  279. package/chunk/hooks-QCx6OZlb.js +4 -4
  280. package/chunk/hr-BtqyDzDB.js +4 -4
  281. package/chunk/hu-C6syKJfb.js +4 -4
  282. package/chunk/id-GgI-Z2a5.js +4 -4
  283. package/chunk/intl-DYOqmiaL.js +4 -4
  284. package/chunk/is-CvmKEON9.js +4 -4
  285. package/chunk/it-CnmveGgC.js +4 -4
  286. package/chunk/iw-DFUYHkxF.js +4 -4
  287. package/chunk/ja-CjVb2tWW.js +4 -4
  288. package/chunk/jsx-runtime-DQO6A867.js +4 -4
  289. package/chunk/jsx-runtime-DtApx7WX.js +4 -4
  290. package/chunk/kk-Dvz4nK6K.js +4 -4
  291. package/chunk/ko-DzOqBMGC.js +4 -4
  292. package/chunk/lo-C2WPq55d.js +4 -4
  293. package/chunk/lt-BSDYvjTF.js +4 -4
  294. package/chunk/lv-CefDPT-M.js +4 -4
  295. package/chunk/mockProgramTheme-CBqgtg7A.js +4 -4
  296. package/chunk/mocks-BQNtP7qW.js +4 -4
  297. package/chunk/mocks-DC7WJf5c.js +4 -4
  298. package/chunk/ms-BjestZxy.js +4 -4
  299. package/chunk/nl-B1FyUfCT.js +4 -4
  300. package/chunk/nl-BE-CbeAd3nq.js +4 -4
  301. package/chunk/no-Dr633Ddi.js +4 -4
  302. package/chunk/options-DsRV5fwh.js +4 -4
  303. package/chunk/pl-UYTjMIq_.js +4 -4
  304. package/chunk/{programThemeGetters-D_uvjOIR.js → programThemeGetters-CwU8toEg.js} +5 -5
  305. package/chunk/{programThemeGetters-D_uvjOIR.js.map → programThemeGetters-CwU8toEg.js.map} +1 -1
  306. package/chunk/{programThemeGetters-DoycjUp1.js → programThemeGetters-Tq6dpa3Q.js} +5 -5
  307. package/chunk/{programThemeGetters-DoycjUp1.js.map → programThemeGetters-Tq6dpa3Q.js.map} +1 -1
  308. package/chunk/pt-BR-C8SYMT-J.js +4 -4
  309. package/chunk/pt-uH-M3GdN.js +4 -4
  310. package/chunk/refs-Mq0rtW9K.js +4 -4
  311. package/chunk/ro-CAOSXZ7h.js +4 -4
  312. package/chunk/ru-iwYoEydL.js +4 -4
  313. package/chunk/runtimeTypes-B2AGNJMT.js +4 -4
  314. package/chunk/sk-DYYNV3zw.js +4 -4
  315. package/chunk/sl-D_-eeM5N.js +4 -4
  316. package/chunk/sr-BTi9_anL.js +4 -4
  317. package/chunk/stepComponentHelpers-C-r8qzyD.js +4 -4
  318. package/chunk/stepComponentHelpers-CDj3don1.js +4 -4
  319. package/chunk/strings-DWLVdUcm.js +4 -4
  320. package/chunk/sv-DRwY4shG.js +4 -4
  321. package/chunk/sw-Bvj2mYmM.js +4 -4
  322. package/chunk/ta-CmtaYoNe.js +4 -4
  323. package/chunk/th-12r2yKkJ.js +4 -4
  324. package/chunk/tl-BGNfO7md.js +4 -4
  325. package/chunk/tr-DH2ZSJhs.js +4 -4
  326. package/chunk/uk-CELBZlTd.js +4 -4
  327. package/chunk/ur-MR8DTbmd.js +4 -4
  328. package/chunk/{useCollectFieldsEndpoint-CpB9ajYT.js → useCollectFieldsEndpoint-BjFKvu3Z.js} +6 -6
  329. package/chunk/{useCollectFieldsEndpoint-CpB9ajYT.js.map → useCollectFieldsEndpoint-BjFKvu3Z.js.map} +1 -1
  330. package/chunk/{useCollectFieldsEndpoint-DgCa9fme.js → useCollectFieldsEndpoint-CoME5Eii.js} +6 -6
  331. package/chunk/{useCollectFieldsEndpoint-DgCa9fme.js.map → useCollectFieldsEndpoint-CoME5Eii.js.map} +1 -1
  332. package/chunk/useMetrics-D6LU4c5p.js +4 -4
  333. package/chunk/useMetrics-DGl7Sxfe.js +4 -4
  334. package/chunk/vi-DtZ-SqD5.js +4 -4
  335. package/chunk/zh-DjyVyYac.js +4 -4
  336. package/chunk/zh-HK-CN1HarHq.js +4 -4
  337. package/chunk/zu-DPhgIh1z.js +4 -4
  338. package/package.json +1 -3
  339. package/sheerid-install.css +4 -4
  340. package/sheerid-install.js +4 -4
  341. package/sheerid.css +4 -4
  342. package/sheerid.js +37 -37
  343. package/chunk/countryUtils-D50KRNPY.js +0 -12
@@ -1 +1 @@
1
- {"version":3,"file":"StatusComponent-C1rPwGLo.js","names":[],"sources":["../../src/components/FormFields/Status/StatusComponent.tsx"],"sourcesContent":["import React from \"react\";\nimport { FormattedHTMLMessage } from \"react-intl\";\n\nimport { useMessage } from \"@/components/Message\";\nimport { useSegment } from \"@/lib/state/contextHooks\";\nimport { getFieldConfigByFieldId } from \"@/lib/utils/stepComponentHelpers/stepComponentHelpers\";\n\nimport { type FormSelectChoice, type InputSelectComponentProps } from \"../../../lib/types/types\";\nimport { FormFieldInputSelect } from \"../FormFieldInputSelect/FormFieldInputSelect\";\n\ninterface StatusComponentProps<T = FormSelectChoice> extends InputSelectComponentProps<T> {\n segmentId: string;\n errorId?: string;\n explanation?: string | JSX.Element;\n}\n\nexport const StatusComponent = ({\n value,\n isErrored,\n errorId = \"invalidStatus\",\n options,\n onChange,\n placeholder = \"\",\n onKeyDown = undefined,\n segmentId,\n disabled = false,\n label = <FormattedHTMLMessage id=\"status\" defaultMessage=\"Status\" />,\n explanation = undefined,\n}: StatusComponentProps) => {\n const { msg } = useMessage();\n const segment = useSegment();\n const inputId = `${segmentId}-status`;\n const hasOnlyOneOption = options.length === 1;\n const isFieldHidden =\n getFieldConfigByFieldId(\"status\")?.hidden || getFieldConfigByFieldId(\"statuses\")?.hidden;\n\n // Auto select a status if there is only one option. Available statuses can\n // change after initial render.\n // Uses values instead of arrays for stable identities.\n const onlyOption = hasOnlyOneOption ? options[0] : undefined;\n const selectedValue = value?.value;\n React.useEffect(() => {\n if (onlyOption && selectedValue !== onlyOption.value) {\n onChange(onlyOption);\n }\n }, [onlyOption?.value, selectedValue]);\n\n if (hasOnlyOneOption || isFieldHidden) {\n return null;\n }\n\n return (\n <FormFieldInputSelect\n fieldId={inputId}\n options={options}\n onChange={(status: FormSelectChoice) => onChange(status)}\n onKeyDown={onKeyDown}\n value={options.find((option) => option.value === (value && value.value))}\n placeholder={placeholder || msg({ id: \"statusPlaceholder\", context: segment })}\n showPlaceholderAndHideLabel={!!placeholder}\n isRequired\n containerId={`sid-${inputId}`}\n label={label}\n disabled={disabled}\n explanation={explanation}\n errorMessage={\n isErrored && (\n <FormattedHTMLMessage\n id={`errorId.${errorId}`}\n defaultMessage={`Invalid ${segmentId} status`}\n />\n )\n }\n />\n );\n};\n"],"mappings":";;;;;;4CAgBa,KAAmB,EAC9B,UACA,cACA,aAAU,iBACV,YACA,aACA,iBAAc,IACd,eAAY,KAAA,GACZ,cACA,cAAW,IACX,WAAQ,iBAAA,GAAA,EAAA,KAAC,GAAD;CAAsB,IAAG;CAAS,gBAAe;AAAU,CAAA,GACnE,iBAAc,KAAA,QACY;CAC1B,IAAM,EAAE,WAAQ,EAAW,GACrB,IAAU,EAAW,GACrB,IAAU,GAAG,EAAU,UACvB,IAAmB,EAAQ,WAAW,GACtC,IACJ,EAAwB,QAAQ,GAAG,UAAU,EAAwB,UAAU,GAAG,QAK9E,IAAa,IAAmB,EAAQ,KAAK,KAAA,GAC7C,IAAgB,GAAO;CAW7B,OAVA,EAAM,gBAAgB;EACpB,AAAI,KAAc,MAAkB,EAAW,SAC7C,EAAS,CAAU;CAEvB,GAAG,CAAC,GAAY,OAAO,CAAa,CAAC,GAEjC,KAAoB,IACf,OAIP,iBAAA,GAAA,EAAA,KAAC,GAAD;EACE,SAAS;EACA;EACT,WAAW,MAA6B,EAAS,CAAM;EAC5C;EACX,OAAO,EAAQ,MAAM,MAAW,EAAO,WAAW,KAAS,EAAM,MAAM;EACvE,aAAa,KAAe,EAAI;GAAE,IAAI;GAAqB,SAAS;EAAQ,CAAC;EAC7E,6BAA6B,CAAC,CAAC;EAC/B,YAAA;EACA,aAAa,OAAO;EACb;EACG;EACG;EACb,cACE,KACE,iBAAA,GAAA,EAAA,KAAC,GAAD;GACE,IAAI,WAAW;GACf,gBAAgB,WAAW,EAAU;EACtC,CAAA;CAGN,CAAA;AAEL"}
1
+ {"version":3,"file":"StatusComponent-DxyUt9Qq.js","names":[],"sources":["../../src/components/FormFields/Status/StatusComponent.tsx"],"sourcesContent":["import React from \"react\";\nimport { FormattedHTMLMessage } from \"react-intl\";\n\nimport { useMessage } from \"@/components/Message\";\nimport { useSegment } from \"@/lib/state/contextHooks\";\nimport { getFieldConfigByFieldId } from \"@/lib/utils/stepComponentHelpers/stepComponentHelpers\";\n\nimport { type FormSelectChoice, type InputSelectComponentProps } from \"../../../lib/types/types\";\nimport { FormFieldInputSelect } from \"../FormFieldInputSelect/FormFieldInputSelect\";\n\ninterface StatusComponentProps<T = FormSelectChoice> extends InputSelectComponentProps<T> {\n segmentId: string;\n errorId?: string;\n explanation?: string | JSX.Element;\n}\n\nexport const StatusComponent = ({\n value,\n isErrored,\n errorId = \"invalidStatus\",\n options,\n onChange,\n placeholder = \"\",\n onKeyDown = undefined,\n segmentId,\n disabled = false,\n label = <FormattedHTMLMessage id=\"status\" defaultMessage=\"Status\" />,\n explanation = undefined,\n}: StatusComponentProps) => {\n const { msg } = useMessage();\n const segment = useSegment();\n const inputId = `${segmentId}-status`;\n const hasOnlyOneOption = options.length === 1;\n const isFieldHidden =\n getFieldConfigByFieldId(\"status\")?.hidden || getFieldConfigByFieldId(\"statuses\")?.hidden;\n\n // Auto select a status if there is only one option. Available statuses can\n // change after initial render.\n // Uses values instead of arrays for stable identities.\n const onlyOption = hasOnlyOneOption ? options[0] : undefined;\n const selectedValue = value?.value;\n React.useEffect(() => {\n if (onlyOption && selectedValue !== onlyOption.value) {\n onChange(onlyOption);\n }\n }, [onlyOption?.value, selectedValue]);\n\n if (hasOnlyOneOption || isFieldHidden) {\n return null;\n }\n\n return (\n <FormFieldInputSelect\n fieldId={inputId}\n options={options}\n onChange={(status: FormSelectChoice) => onChange(status)}\n onKeyDown={onKeyDown}\n value={options.find((option) => option.value === (value && value.value))}\n placeholder={placeholder || msg({ id: \"statusPlaceholder\", context: segment })}\n showPlaceholderAndHideLabel={!!placeholder}\n isRequired\n containerId={`sid-${inputId}`}\n label={label}\n disabled={disabled}\n explanation={explanation}\n errorMessage={\n isErrored && (\n <FormattedHTMLMessage\n id={`errorId.${errorId}`}\n defaultMessage={`Invalid ${segmentId} status`}\n />\n )\n }\n />\n );\n};\n"],"mappings":";;;;;;4CAgBa,KAAmB,EAC9B,UACA,cACA,aAAU,iBACV,YACA,aACA,iBAAc,IACd,eAAY,KAAA,GACZ,cACA,cAAW,IACX,WAAQ,iBAAA,GAAA,EAAA,KAAC,GAAD;CAAsB,IAAG;CAAS,gBAAe;AAAU,CAAA,GACnE,iBAAc,KAAA,QACY;CAC1B,IAAM,EAAE,WAAQ,EAAW,GACrB,IAAU,EAAW,GACrB,IAAU,GAAG,EAAU,UACvB,IAAmB,EAAQ,WAAW,GACtC,IACJ,EAAwB,QAAQ,GAAG,UAAU,EAAwB,UAAU,GAAG,QAK9E,IAAa,IAAmB,EAAQ,KAAK,KAAA,GAC7C,IAAgB,GAAO;CAW7B,OAVA,EAAM,gBAAgB;EACpB,AAAI,KAAc,MAAkB,EAAW,SAC7C,EAAS,CAAU;CAEvB,GAAG,CAAC,GAAY,OAAO,CAAa,CAAC,GAEjC,KAAoB,IACf,OAIP,iBAAA,GAAA,EAAA,KAAC,GAAD;EACE,SAAS;EACA;EACT,WAAW,MAA6B,EAAS,CAAM;EAC5C;EACX,OAAO,EAAQ,MAAM,MAAW,EAAO,WAAW,KAAS,EAAM,MAAM;EACvE,aAAa,KAAe,EAAI;GAAE,IAAI;GAAqB,SAAS;EAAQ,CAAC;EAC7E,6BAA6B,CAAC,CAAC;EAC/B,YAAA;EACA,aAAa,OAAO;EACb;EACG;EACG;EACb,cACE,KACE,iBAAA,GAAA,EAAA,KAAC,GAAD;GACE,IAAI,WAAW;GACf,gBAAgB,WAAW,EAAU;EACtC,CAAA;CAGN,CAAA;AAEL"}
@@ -1,28 +1,28 @@
1
1
 
2
2
  /**
3
- * VERSION: 2.300.0
4
- * BUILD_TIMESTAMP: 1791404643634
5
- * BUILD_DATE: Wed Oct 07 2026 20:24:03 GMT+0000 (Coordinated Universal Time)
6
- * BUILD_COMMIT: 956ad24e05dc9f1fd176abe35ee4f07339d5af3c
3
+ * VERSION: 2.301.0
4
+ * BUILD_TIMESTAMP: 1791996177955
5
+ * BUILD_DATE: Wed Oct 14 2026 16:42:57 GMT+0000 (Coordinated Universal Time)
6
+ * BUILD_COMMIT: 1f84255f75fc7d5dfe2de2662a793668672c8d27
7
7
  */
8
8
  import { dt as e, kt as t, n } from "./options-DsRV5fwh.js";
9
9
  import { n as r, s as i, t as a } from "./jsx-runtime-DQO6A867.js";
10
10
  import { b as o } from "./runtimeTypes-B2AGNJMT.js";
11
- import { n as s } from "./programThemeGetters-DoycjUp1.js";
12
- import { h as c } from "./FormFooterComponent-BrYSzs1B.js";
11
+ import { n as s } from "./programThemeGetters-Tq6dpa3Q.js";
12
+ import { h as c } from "./FormFooterComponent-CUDMJyyc.js";
13
13
  import { n as l } from "../sheerid.js";
14
- import { t as u } from "./useCollectFieldsEndpoint-DgCa9fme.js";
14
+ import { t as u } from "./useCollectFieldsEndpoint-CoME5Eii.js";
15
15
  import { d, o as f, r as p, t as m } from "./stepComponentHelpers-CDj3don1.js";
16
- import { a as h, i as g, n as _, o as v, s as y, t as b } from "./CaptchaComponent-D38WQwmT.js";
17
- import { n as x, t as S } from "./PersonalInfoStepSubmitButton-CyIbpdpL.js";
18
- import { t as C } from "./BirthDateComponent-Bf_ESBId.js";
19
- import { t as w } from "./PostalCodeComponent-BxtOJQ92.js";
20
- import { t as T } from "./CountryComponentWrapper-gz_CoCUW.js";
21
- import { t as E } from "./City-ClQzhgTi.js";
22
- import { t as D } from "./AddressComponent-DlI35H_a.js";
23
- import { t as O } from "./ExtraMessage-CCKKmRh-.js";
24
- import { t as k } from "./ChangeLocaleComponent-CSVg0Nnn.js";
25
- import { t as A } from "./PersonalInfoStepWrapper-IoWfgPTg.js";
16
+ import { a as h, i as g, n as _, o as v, s as y, t as b } from "./CaptchaComponent-Ck6KIKN2.js";
17
+ import { n as x, t as S } from "./PersonalInfoStepSubmitButton-84FEQ5RF.js";
18
+ import { t as C } from "./BirthDateComponent-DObuxy1i.js";
19
+ import { t as w } from "./PostalCodeComponent-Cehw9Ixk.js";
20
+ import { t as T } from "./CountryComponentWrapper-BNw5A52k.js";
21
+ import { t as E } from "./City-DJsn305o.js";
22
+ import { t as D } from "./AddressComponent-BPwj5Sil.js";
23
+ import { t as O } from "./ExtraMessage-CfJZz8mR.js";
24
+ import { t as k } from "./ChangeLocaleComponent-CALJO1x8.js";
25
+ import { t as A } from "./PersonalInfoStepWrapper-DR_Aiqs5.js";
26
26
  //#region src/components/StepAgePersonalInfo/StepAgePersonalInfoComponent.tsx
27
27
  var j = /* @__PURE__ */ t(i(), 1), M = a(), N = ({ verificationService: t }) => {
28
28
  let i = t.viewModel, { fieldValidationErrors: a } = t, N = t.verificationResponse, P = c(N), F = s(t.programTheme), I = e(() => i.countryChoice.value, F.length > 0 ? F[0] : "US"), L = I === "US" ? [{ key: "postalCode" }] : [], R = I !== "US" || t.programTheme.isSmsNotifierConfigured || t.programTheme.smsLoopEnabled, z = I !== "US" || t.programTheme.smsLoopEnabled, B = i.localeChoice.value, V = n();
@@ -1 +1 @@
1
- {"version":3,"file":"StepAgePersonalInfo-CphLBaA8.js","names":[],"sources":["../../src/components/StepAgePersonalInfo/StepAgePersonalInfoComponent.tsx"],"sourcesContent":["import React from \"react\";\nimport { FormattedHTMLMessage } from \"react-intl\";\n\nimport { getSafe } from \"@jslib/shared/utils/getSafe\";\n\nimport { getConfiguredCountries } from \"@/lib/ProgramTheme/programThemeGetters\";\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 FieldDescription,\n type CustomFormFieldConfig,\n} from \"../../lib/types/types\";\nimport {\n handleEmailOnKeyDown,\n updateFieldValidationErrorsByFieldId,\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 verificationService: VerificationService;\n}\n\nexport const StepAgePersonalInfoComponent = ({\n verificationService,\n}: 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 = getConfiguredCountries(verificationService.programTheme);\n const defaultCountryChoice = countryChoices.length > 0 ? countryChoices[0] : \"US\";\n const safeCountryValue = getSafe(() => viewModel.countryChoice.value, defaultCountryChoice);\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"],"mappings":";;;;;;;;;;;;;;;;;;;4CA8Ca,KAAgC,EAC3C,6BACuC;CACvC,IAAM,IAAY,EAAoB,WAChC,EAAE,6BAA0B,GAC5B,IAAuB,EAAoB,sBAC3C,IAAqB,EAAsB,CAAoB,GAC/D,IAAiB,EAAuB,EAAoB,YAAY,GAExE,IAAmB,QAAc,EAAU,cAAc,OADlC,EAAe,SAAS,IAAI,EAAe,KAAK,IACa,GACpF,IACJ,MAAqB,OAAO,CAAC,EAAE,KAAK,aAAa,CAAC,IAAI,CAAC,GAGnD,IAC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ePersonalInfoComponent.tsx"],"sourcesContent":["import React from \"react\";\nimport { FormattedHTMLMessage } from \"react-intl\";\n\nimport { getSafe } from \"@jslib/shared/utils/getSafe\";\n\nimport { getConfiguredCountries } from \"@/lib/ProgramTheme/programThemeGetters\";\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 FieldDescription,\n type CustomFormFieldConfig,\n} from \"../../lib/types/types\";\nimport {\n handleEmailOnKeyDown,\n updateFieldValidationErrorsByFieldId,\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 verificationService: VerificationService;\n}\n\nexport const StepAgePersonalInfoComponent = ({\n verificationService,\n}: 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 = getConfiguredCountries(verificationService.programTheme);\n const defaultCountryChoice = countryChoices.length > 0 ? countryChoices[0] : \"US\";\n const safeCountryValue = getSafe(() => viewModel.countryChoice.value, defaultCountryChoice);\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"],"mappings":";;;;;;;;;;;;;;;;;;;4CA8Ca,KAAgC,EAC3C,6BACuC;CACvC,IAAM,IAAY,EAAoB,WAChC,EAAE,6BAA0B,GAC5B,IAAuB,EAAoB,sBAC3C,IAAqB,EAAsB,CAAoB,GAC/D,IAAiB,EAAuB,EAAoB,YAAY,GAExE,IAAmB,QAAc,EAAU,cAAc,OADlC,EAAe,SAAS,IAAI,EAAe,KAAK,IACa,GACpF,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;EAE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AA,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"}
@@ -4,29 +4,29 @@
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.300.0
8
- * BUILD_TIMESTAMP: 1791404647938
9
- * BUILD_DATE: Wed Oct 07 2026 20:24:07 GMT+0000 (Coordinated Universal Time)
10
- * BUILD_COMMIT: 956ad24e05dc9f1fd176abe35ee4f07339d5af3c
7
+ * VERSION: 2.301.0
8
+ * BUILD_TIMESTAMP: 1791996181846
9
+ * BUILD_DATE: Wed Oct 14 2026 16:43:01 GMT+0000 (Coordinated Universal Time)
10
+ * BUILD_COMMIT: 1f84255f75fc7d5dfe2de2662a793668672c8d27
11
11
  */
12
12
  import { Tt as e, kt as t, s as n } from "./intl-DYOqmiaL.js";
13
13
  import { b as r } from "./runtimeTypes-B2AGNJMT.js";
14
- import { n as i } from "./programThemeGetters-D_uvjOIR.js";
14
+ import { n as i } from "./programThemeGetters-CwU8toEg.js";
15
15
  import { n as a, s as o, t as s } from "./jsx-runtime-DtApx7WX.js";
16
- import { p as c } from "./FormFooterComponent-DEps7Imq.js";
16
+ import { p as c } from "./FormFooterComponent-CfWYgtl_.js";
17
17
  import { t as l } from "../_mysheerid-preview.js";
18
- import { t as u } from "./useCollectFieldsEndpoint-CpB9ajYT.js";
18
+ import { t as u } from "./useCollectFieldsEndpoint-BjFKvu3Z.js";
19
19
  import { d, o as f, r as p, t as m } from "./stepComponentHelpers-C-r8qzyD.js";
20
- import { a as h, i as g, n as _, o as v, s as y, t as b } from "./CaptchaComponent-CPy68xDd.js";
21
- import { n as x, t as S } from "./PersonalInfoStepSubmitButton-DpNy1B1C.js";
22
- import { t as C } from "./BirthDateComponent-I3fR6ykN.js";
23
- import { t as w } from "./PostalCodeComponent-CBNDz5cX.js";
24
- import { t as T } from "./CountryComponentWrapper-DC_jx0yQ.js";
25
- import { t as E } from "./City-CyA91uLw.js";
26
- import { t as D } from "./AddressComponent-x6BuM8au.js";
27
- import { t as O } from "./ExtraMessage-CZH3rwtd.js";
28
- import { t as k } from "./ChangeLocaleComponent-D9w_5kKC.js";
29
- import { t as A } from "./PersonalInfoStepWrapper-fphBx-Va.js";
20
+ import { a as h, i as g, n as _, o as v, s as y, t as b } from "./CaptchaComponent-Bph-Hx_P.js";
21
+ import { n as x, t as S } from "./PersonalInfoStepSubmitButton-BSWQ9V8r.js";
22
+ import { t as C } from "./BirthDateComponent-BNfg7_US.js";
23
+ import { t as w } from "./PostalCodeComponent-DS7sq5Fu.js";
24
+ import { t as T } from "./CountryComponentWrapper-BnK7IyJk.js";
25
+ import { t as E } from "./City-CiwdPtNB.js";
26
+ import { t as D } from "./AddressComponent-BEWbgyyU.js";
27
+ import { t as O } from "./ExtraMessage-AR2qmGJj.js";
28
+ import { t as k } from "./ChangeLocaleComponent-D7_OjTLl.js";
29
+ import { t as A } from "./PersonalInfoStepWrapper-DPH_RA63.js";
30
30
  //#region src/components/StepAgePersonalInfo/StepAgePersonalInfoComponent.tsx
31
31
  var j = /* @__PURE__ */ t(o(), 1), M = s(), N = ({ verificationService: t }) => {
32
32
  let o = t.viewModel, { fieldValidationErrors: s } = t, N = t.verificationResponse, P = c(N), F = i(t.programTheme), I = e(() => o.countryChoice.value, F.length > 0 ? F[0] : "US"), L = I === "US" ? [{ key: "postalCode" }] : [], R = I !== "US" || t.programTheme.isSmsNotifierConfigured || t.programTheme.smsLoopEnabled, z = I !== "US" || t.programTheme.smsLoopEnabled, B = o.localeChoice.value, V = n();
@@ -1 +1 @@
1
- {"version":3,"file":"StepAgePersonalInfo-NztHW1k6.js","names":[],"sources":["../../src/components/StepAgePersonalInfo/StepAgePersonalInfoComponent.tsx"],"sourcesContent":["import React from \"react\";\nimport { FormattedHTMLMessage } from \"react-intl\";\n\nimport { getSafe } from \"@jslib/shared/utils/getSafe\";\n\nimport { getConfiguredCountries } from \"@/lib/ProgramTheme/programThemeGetters\";\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 FieldDescription,\n type CustomFormFieldConfig,\n} from \"../../lib/types/types\";\nimport {\n handleEmailOnKeyDown,\n updateFieldValidationErrorsByFieldId,\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 verificationService: VerificationService;\n}\n\nexport const StepAgePersonalInfoComponent = ({\n verificationService,\n}: 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 = getConfiguredCountries(verificationService.programTheme);\n const defaultCountryChoice = countryChoices.length > 0 ? countryChoices[0] : \"US\";\n const safeCountryValue = getSafe(() => viewModel.countryChoice.value, defaultCountryChoice);\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"],"mappings":";;;;;;;;;;;;;;;;;;;4CA8Ca,KAAgC,EAC3C,6BACuC;CACvC,IAAM,IAAY,EAAoB,WAChC,EAAE,6BAA0B,GAC5B,IAAuB,EAAoB,sBAC3C,IAAqB,EAAsB,CAAoB,GAC/D,IAAiB,EAAuB,EAAoB,YAAY,GAExE,IAAmB,QAAc,EAAU,cAAc,OADlC,EAAe,SAAS,IAAI,EAAe,KAAK,IACa,GACpF,IACJ,MAAqB,OAAO,CAAC,EAAE,KAAK,aAAa,CAAC,IAAI,CAAC,GAGnD,IACJ,MAAqB,QACrB,EAAoB,aAAa,2BACjC,EAAoB,aAAa,gBAC7B,IACJ,MAAqB,QA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AAS,GAAU,CAAmB;IAC7E;IACA,YAAY,MAAU,EAAqB,CAAK;IAChD,UAAU,EAAwB,OAAO,GAAG;GAC7C,CAAA;GAEA,IACC,iBAAA,GAAA,EAAA,KAAC,GAAD;IACE,YAAY;IACZ,OAAO,EAAU;IACjB,WAAW,CAAC,CAAC,EAAsB;IACnC,WAAW,MAAa;KAEtB,AADA,EAAmB,eAAe,CAAQ,GAC1C,EAAqC,eAAe,GAAU,CAAmB;IACnF;IACA,qBAAqB,EAAU,iBAAiB,EAAU,cAAc;IACxE,UAAU,EAAwB,aAAa,GAAG;GACnD,CAAA,IACC;GAEH,EAAQ,iBAAiB,KAAK,MAC7B,iBAAA,GAAA,EAAA,KAAC,GAAD;IAAyB;IAA6B;GAAsB,CAAA,CAC7E;GAED,iBAAA,GAAA,EAAA,KAAC,GAAD;IACuB;IACrB,WAAW,CAAC,CAAC,EAAsB;IACnC,WAAW,MAAa;KAKtB,AAJA,EAAmB,YAAY;MAC7B,GAAG,EAAoB,UAAU;MACjC,oBAAoB;KACtB,CAAC,GACD,EAAqC,sBAAsB,GAAU,CAAmB;IAC1F;IACW;IACX,UAAU,EAAwB,oBAAoB,GAAG;GAC1D,CAAA;GAED,iBAAA,GAAA,EAAA,KAAC,GAAD;IAAmC;IAAqB,QAAO;GAAsB,CAAA;GAErF,iBAAA,GAAA,EAAA,KAAC,GAAD;IACuB;IACrB,WAAW,CAAC,CAAC,EAAsB;GACpC,CAAA;GACD,iBAAA,GAAA,EAAA,KAAC,GAAD;IACE,MAAM,EAAsB;IACP;IACV;IACS;IACpB,YACE,iBAAA,GAAA,EAAA,KAAC,GAAD;KACE,IAAG;KACH,gBAAe;IAChB,CAAA;GAEJ,CAAA;EACkB;;AAEzB"}
1
+ {"version":3,"file":"StepAgePersonalInfo-CJRpFE9T.js","names":[],"sources":["../../src/components/StepAgePersonalInfo/StepAgePersonalInfoComponent.tsx"],"sourcesContent":["import React from \"react\";\nimport { FormattedHTMLMessage } from \"react-intl\";\n\nimport { getSafe } from \"@jslib/shared/utils/getSafe\";\n\nimport { getConfiguredCountries } from \"@/lib/ProgramTheme/programThemeGetters\";\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 FieldDescription,\n type CustomFormFieldConfig,\n} from \"../../lib/types/types\";\nimport {\n handleEmailOnKeyDown,\n updateFieldValidationErrorsByFieldId,\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 verificationService: VerificationService;\n}\n\nexport const StepAgePersonalInfoComponent = ({\n verificationService,\n}: 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 = getConfiguredCountries(verificationService.programTheme);\n const defaultCountryChoice = countryChoices.length > 0 ? countryChoices[0] : \"US\";\n const safeCountryValue = getSafe(() => viewModel.countryChoice.value, defaultCountryChoice);\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"],"mappings":";;;;;;;;;;;;;;;;;;;4CA8Ca,KAAgC,EAC3C,6BACuC;CACvC,IAAM,IAAY,EAAoB,WAChC,EAAE,6BAA0B,GAC5B,IAAuB,EAAoB,sBAC3C,IAAqB,EAAsB,CAAoB,GAC/D,IAAiB,EAAuB,EAAoB,YAAY,GAExE,IAAmB,QAAc,EAAU,cAAc,OADlC,EAAe,SAAS,IAAI,EAAe,KAAK,IACa,GACpF,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,GA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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"}
@@ -4,10 +4,10 @@
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.300.0
8
- * BUILD_TIMESTAMP: 1791404647938
9
- * BUILD_DATE: Wed Oct 07 2026 20:24:07 GMT+0000 (Coordinated Universal Time)
10
- * BUILD_COMMIT: 956ad24e05dc9f1fd176abe35ee4f07339d5af3c
7
+ * VERSION: 2.301.0
8
+ * BUILD_TIMESTAMP: 1791996181846
9
+ * BUILD_DATE: Wed Oct 14 2026 16:43:01 GMT+0000 (Coordinated Universal Time)
10
+ * BUILD_COMMIT: 1f84255f75fc7d5dfe2de2662a793668672c8d27
11
11
  */
12
12
  import { t as e } from "./jsx-runtime-DtApx7WX.js";
13
13
  //#region src/components/StepIDCheckLoop/StepCard/StepCard.tsx
@@ -1,9 +1,9 @@
1
1
 
2
2
  /**
3
- * VERSION: 2.300.0
4
- * BUILD_TIMESTAMP: 1791404643634
5
- * BUILD_DATE: Wed Oct 07 2026 20:24:03 GMT+0000 (Coordinated Universal Time)
6
- * BUILD_COMMIT: 956ad24e05dc9f1fd176abe35ee4f07339d5af3c
3
+ * VERSION: 2.301.0
4
+ * BUILD_TIMESTAMP: 1791996177955
5
+ * BUILD_DATE: Wed Oct 14 2026 16:42:57 GMT+0000 (Coordinated Universal Time)
6
+ * BUILD_COMMIT: 1f84255f75fc7d5dfe2de2662a793668672c8d27
7
7
  */
8
8
  import { t as e } from "./jsx-runtime-DQO6A867.js";
9
9
  //#region src/components/StepIDCheckLoop/StepCard/StepCard.tsx
@@ -1,17 +1,17 @@
1
1
 
2
2
  /**
3
- * VERSION: 2.300.0
4
- * BUILD_TIMESTAMP: 1791404643634
5
- * BUILD_DATE: Wed Oct 07 2026 20:24:03 GMT+0000 (Coordinated Universal Time)
6
- * BUILD_COMMIT: 956ad24e05dc9f1fd176abe35ee4f07339d5af3c
3
+ * VERSION: 2.301.0
4
+ * BUILD_TIMESTAMP: 1791996177955
5
+ * BUILD_DATE: Wed Oct 14 2026 16:42:57 GMT+0000 (Coordinated Universal Time)
6
+ * BUILD_COMMIT: 1f84255f75fc7d5dfe2de2662a793668672c8d27
7
7
  */
8
8
  import { c as e } from "./options-DsRV5fwh.js";
9
9
  import { n as t, t as n } from "./jsx-runtime-DQO6A867.js";
10
10
  import { b as r } from "./runtimeTypes-B2AGNJMT.js";
11
- import { h as i, t as a } from "./FormFooterComponent-BrYSzs1B.js";
11
+ import { h as i, t as a } from "./FormFooterComponent-CUDMJyyc.js";
12
12
  import { n as o } from "../sheerid.js";
13
13
  import { d as s, r as c } from "./stepComponentHelpers-CDj3don1.js";
14
- import { n as l, t as u } from "./PersonalInfoStepSubmitButton-CyIbpdpL.js";
14
+ import { n as l, t as u } from "./PersonalInfoStepSubmitButton-84FEQ5RF.js";
15
15
  //#region src/components/StepCollectIdentifier/StepCollectIdentifierComponent.tsx
16
16
  var d = n(), f = ({ verificationService: n }) => {
17
17
  let f = n.viewModel, { fieldValidationErrors: p } = n, m = n.verificationResponse, h = i(m), g = (t, r) => {
@@ -1 +1 @@
1
- {"version":3,"file":"StepCollectIdentifier-g9ryUUeH.js","names":[],"sources":["../../src/components/StepCollectIdentifier/StepCollectIdentifierComponent.tsx"],"sourcesContent":["import type React from \"react\";\nimport { FormattedHTMLMessage } from \"react-intl\";\nimport { produce } from \"immer\";\n\nimport { hasFailedInstantMatch } from \"../../lib/VerificationService/VerificationServiceHelpers\";\nimport {\n type VerificationService,\n type CollectIdentifierViewModel,\n type PersonalInfoResponse,\n} from \"../../lib/types/types\";\nimport {\n handleEmailOnKeyDown,\n updateFieldValidationErrorsByFieldId,\n} from \"../../lib/utils/stepComponentHelpers/stepComponentHelpers\";\nimport { FormFooterComponent as FormFooter } from \"../FormFooter/FormFooterComponent\";\nimport { EmailComponent as Email } from \"../FormFields/Email/EmailComponent\";\nimport { VerificationStepsEnum } from \"../../lib/types/runtimeTypes\";\nimport { PersonalInfoHeader } from \"../FormHeader/StepHeaders/PersonalInfoHeaderComponent\";\nimport { PersonalInfoStepSubmitButton } from \"../PersonalInfoStepSubmitButton/PersonalInfoStepSubmitButton\";\n\ninterface StepCollectIdentifierProps {\n verificationService: VerificationService;\n}\n\nconst StepCollectIdentifier = ({ verificationService }: StepCollectIdentifierProps) => {\n const viewModel = verificationService.viewModel as CollectIdentifierViewModel;\n const { fieldValidationErrors } = verificationService;\n const verificationResponse = verificationService.verificationResponse as PersonalInfoResponse;\n const failedInstantMatch = hasFailedInstantMatch(verificationResponse);\n\n const updateCollectIdentifierViewmodel = (key: keyof CollectIdentifierViewModel, value: any) => {\n const nextState: CollectIdentifierViewModel = produce(\n viewModel,\n (draft: CollectIdentifierViewModel) => {\n (draft[key] as any) = value;\n },\n );\n verificationService.updateViewModel(nextState);\n };\n\n return (\n <div\n id=\"sid-step-collect-transaction-id\"\n className=\"sid-step-collect-transaction-id-container sid-l-container\"\n >\n <div role=\"main\">\n <PersonalInfoHeader\n verificationService={verificationService}\n classNameIdentifier=\"step-collect-transaction-id\"\n />\n\n <Email\n value={viewModel.email}\n isErrored={!!fieldValidationErrors.email}\n explanation={\n <FormattedHTMLMessage\n id=\"step.collectIdentifier.inputExplanation\"\n defaultMessage=\"Needed to send authentication code\"\n />\n }\n onChange={(newValue) => {\n updateCollectIdentifierViewmodel(\"email\", newValue);\n updateFieldValidationErrorsByFieldId(\"email\", newValue, verificationService);\n }}\n onKeyDown={(event: React.KeyboardEvent<HTMLInputElement>) => handleEmailOnKeyDown(event)}\n />\n\n <PersonalInfoStepSubmitButton\n step={VerificationStepsEnum.collectIdentifier}\n verificationService={verificationService}\n viewModel={viewModel}\n failedInstantMatch={failedInstantMatch}\n buttonText={\n <FormattedHTMLMessage\n id=\"step.personalInfo.submitButtonText\"\n defaultMessage=\"Verify and continue\"\n />\n }\n />\n </div>\n <FormFooter verificationService={verificationService} />\n </div>\n );\n};\n\nexport const StepCollectIdentifierComponent = StepCollectIdentifier;\n"],"mappings":";;;;;;;;aAqFa,KA7DkB,EAAE,6BAAsD;CACrF,IAAM,IAAY,EAAoB,WAChC,EAAE,6BAA0B,GAC5B,IAAuB,EAAoB,sBAC3C,IAAqB,EAAsB,CAAoB,GAE/D,KAAoC,GAAuC,MAAe;EAC9F,IAAM,IAAwC,EAC5C,IACC,MAAsC;GACrC,EAAO,KAAe;EACxB,CACF;EACA,EAAoB,gBAAgB,CAAS;CAC/C;CAEA,OACE,iBAAA,GAAA,EAAA,MAAC,OAAD;EACE,IAAG;EACH,WAAU;YAFZ,CAIE,iBAAA,GAAA,EAAA,MAAC,OAAD;GAAK,MAAK;aAAV;IACE,iBAAA,GAAA,EAAA,KAAC,GAAD;KACuB;KACrB,qBAAoB;IACrB,CAAA;IAED,iBAAA,GAAA,EAAA,KAAC,GAAD;KACE,OAAO,EAAU;KACjB,WAAW,CAAC,CAAC,EAAsB;KACnC,aACE,iBAAA,GAAA,EAAA,KAAC,GAAD;MACE,IAAG;MACH,gBAAe;KAChB,CAAA;KAEH,WAAW,MAAa;MAEtB,AADA,EAAiC,SAAS,CAAQ,GAClD,EAAqC,SAAS,GAAU,CAAmB;KAC7E;KACA,YAAY,MAAiD,EAAqB,CAAK;IACxF,CAAA;IAED,iBAAA,GAAA,EAAA,KAAC,GAAD;KACE,MAAM,EAAsB;KACP;KACV;KACS;KACpB,YACE,iBAAA,GAAA,EAAA,KAAC,GAAD;MACE,IAAG;MACH,gBAAe;KAChB,CAAA;IAEJ,CAAA;GACE;MACL,iBAAA,GAAA,EAAA,KAAC,GAAD,EAAiC,uBAAsB,CAAA,CACpD;;AAET"}
1
+ {"version":3,"file":"StepCollectIdentifier-3g3B0kpM.js","names":[],"sources":["../../src/components/StepCollectIdentifier/StepCollectIdentifierComponent.tsx"],"sourcesContent":["import type React from \"react\";\nimport { FormattedHTMLMessage } from \"react-intl\";\nimport { produce } from \"immer\";\n\nimport { hasFailedInstantMatch } from \"../../lib/VerificationService/VerificationServiceHelpers\";\nimport {\n type VerificationService,\n type CollectIdentifierViewModel,\n type PersonalInfoResponse,\n} from \"../../lib/types/types\";\nimport {\n handleEmailOnKeyDown,\n updateFieldValidationErrorsByFieldId,\n} from \"../../lib/utils/stepComponentHelpers/stepComponentHelpers\";\nimport { FormFooterComponent as FormFooter } from \"../FormFooter/FormFooterComponent\";\nimport { EmailComponent as Email } from \"../FormFields/Email/EmailComponent\";\nimport { VerificationStepsEnum } from \"../../lib/types/runtimeTypes\";\nimport { PersonalInfoHeader } from \"../FormHeader/StepHeaders/PersonalInfoHeaderComponent\";\nimport { PersonalInfoStepSubmitButton } from \"../PersonalInfoStepSubmitButton/PersonalInfoStepSubmitButton\";\n\ninterface StepCollectIdentifierProps {\n verificationService: VerificationService;\n}\n\nconst StepCollectIdentifier = ({ verificationService }: StepCollectIdentifierProps) => {\n const viewModel = verificationService.viewModel as CollectIdentifierViewModel;\n const { fieldValidationErrors } = verificationService;\n const verificationResponse = verificationService.verificationResponse as PersonalInfoResponse;\n const failedInstantMatch = hasFailedInstantMatch(verificationResponse);\n\n const updateCollectIdentifierViewmodel = (key: keyof CollectIdentifierViewModel, value: any) => {\n const nextState: CollectIdentifierViewModel = produce(\n viewModel,\n (draft: CollectIdentifierViewModel) => {\n (draft[key] as any) = value;\n },\n );\n verificationService.updateViewModel(nextState);\n };\n\n return (\n <div\n id=\"sid-step-collect-transaction-id\"\n className=\"sid-step-collect-transaction-id-container sid-l-container\"\n >\n <div role=\"main\">\n <PersonalInfoHeader\n verificationService={verificationService}\n classNameIdentifier=\"step-collect-transaction-id\"\n />\n\n <Email\n value={viewModel.email}\n isErrored={!!fieldValidationErrors.email}\n explanation={\n <FormattedHTMLMessage\n id=\"step.collectIdentifier.inputExplanation\"\n defaultMessage=\"Needed to send authentication code\"\n />\n }\n onChange={(newValue) => {\n updateCollectIdentifierViewmodel(\"email\", newValue);\n updateFieldValidationErrorsByFieldId(\"email\", newValue, verificationService);\n }}\n onKeyDown={(event: React.KeyboardEvent<HTMLInputElement>) => handleEmailOnKeyDown(event)}\n />\n\n <PersonalInfoStepSubmitButton\n step={VerificationStepsEnum.collectIdentifier}\n verificationService={verificationService}\n viewModel={viewModel}\n failedInstantMatch={failedInstantMatch}\n buttonText={\n <FormattedHTMLMessage\n id=\"step.personalInfo.submitButtonText\"\n defaultMessage=\"Verify and continue\"\n />\n }\n />\n </div>\n <FormFooter verificationService={verificationService} />\n </div>\n );\n};\n\nexport const StepCollectIdentifierComponent = StepCollectIdentifier;\n"],"mappings":";;;;;;;;aAqFa,KA7DkB,EAAE,6BAAsD;CACrF,IAAM,IAAY,EAAoB,WAChC,EAAE,6BAA0B,GAC5B,IAAuB,EAAoB,sBAC3C,IAAqB,EAAsB,CAAoB,GAE/D,KAAoC,GAAuC,MAAe;EAC9F,IAAM,IAAwC,EAC5C,IACC,MAAsC;GACrC,EAAO,KAAe;EACxB,CACF;EACA,EAAoB,gBAAgB,CAAS;CAC/C;CAEA,OACE,iBAAA,GAAA,EAAA,MAAC,OAAD;EACE,IAAG;EACH,WAAU;YAFZ,CAIE,iBAAA,GAAA,EAAA,MAAC,OAAD;GAAK,MAAK;aAAV;IACE,iBAAA,GAAA,EAAA,KAAC,GAAD;KACuB;KACrB,qBAAoB;IACrB,CAAA;IAED,iBAAA,GAAA,EAAA,KAAC,GAAD;KACE,OAAO,EAAU;KACjB,WAAW,CAAC,CAAC,EAAsB;KACnC,aACE,iBAAA,GAAA,EAAA,KAAC,GAAD;MACE,IAAG;MACH,gBAAe;KAChB,CAAA;KAEH,WAAW,MAAa;MAEtB,AADA,EAAiC,SAAS,CAAQ,GAClD,EAAqC,SAAS,GAAU,CAAmB;KAC7E;KACA,YAAY,MAAiD,EAAqB,CAAK;IACxF,CAAA;IAED,iBAAA,GAAA,EAAA,KAAC,GAAD;KACE,MAAM,EAAsB;KACP;KACV;KACS;KACpB,YACE,iBAAA,GAAA,EAAA,KAAC,GAAD;MACE,IAAG;MACH,gBAAe;KAChB,CAAA;IAEJ,CAAA;GACE;MACL,iBAAA,GAAA,EAAA,KAAC,GAAD,EAAiC,uBAAsB,CAAA,CACpD;;AAET"}
@@ -4,18 +4,18 @@
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.300.0
8
- * BUILD_TIMESTAMP: 1791404647938
9
- * BUILD_DATE: Wed Oct 07 2026 20:24:07 GMT+0000 (Coordinated Universal Time)
10
- * BUILD_COMMIT: 956ad24e05dc9f1fd176abe35ee4f07339d5af3c
7
+ * VERSION: 2.301.0
8
+ * BUILD_TIMESTAMP: 1791996181846
9
+ * BUILD_DATE: Wed Oct 14 2026 16:43:01 GMT+0000 (Coordinated Universal Time)
10
+ * BUILD_COMMIT: 1f84255f75fc7d5dfe2de2662a793668672c8d27
11
11
  */
12
12
  import { p as e } from "./intl-DYOqmiaL.js";
13
13
  import { b as t } from "./runtimeTypes-B2AGNJMT.js";
14
14
  import { n, t as r } from "./jsx-runtime-DtApx7WX.js";
15
- import { p as i, t as a } from "./FormFooterComponent-DEps7Imq.js";
15
+ import { p as i, t as a } from "./FormFooterComponent-CfWYgtl_.js";
16
16
  import { t as o } from "../_mysheerid-preview.js";
17
17
  import { d as s, r as c } from "./stepComponentHelpers-C-r8qzyD.js";
18
- import { n as l, t as u } from "./PersonalInfoStepSubmitButton-DpNy1B1C.js";
18
+ import { n as l, t as u } from "./PersonalInfoStepSubmitButton-BSWQ9V8r.js";
19
19
  //#region src/components/StepCollectIdentifier/StepCollectIdentifierComponent.tsx
20
20
  var d = r(), f = ({ verificationService: r }) => {
21
21
  let f = r.viewModel, { fieldValidationErrors: p } = r, m = r.verificationResponse, h = i(m), g = (t, n) => {
@@ -1 +1 @@
1
- {"version":3,"file":"StepCollectIdentifier-B1_ycDfw.js","names":[],"sources":["../../src/components/StepCollectIdentifier/StepCollectIdentifierComponent.tsx"],"sourcesContent":["import type React from \"react\";\nimport { FormattedHTMLMessage } from \"react-intl\";\nimport { produce } from \"immer\";\n\nimport { hasFailedInstantMatch } from \"../../lib/VerificationService/VerificationServiceHelpers\";\nimport {\n type VerificationService,\n type CollectIdentifierViewModel,\n type PersonalInfoResponse,\n} from \"../../lib/types/types\";\nimport {\n handleEmailOnKeyDown,\n updateFieldValidationErrorsByFieldId,\n} from \"../../lib/utils/stepComponentHelpers/stepComponentHelpers\";\nimport { FormFooterComponent as FormFooter } from \"../FormFooter/FormFooterComponent\";\nimport { EmailComponent as Email } from \"../FormFields/Email/EmailComponent\";\nimport { VerificationStepsEnum } from \"../../lib/types/runtimeTypes\";\nimport { PersonalInfoHeader } from \"../FormHeader/StepHeaders/PersonalInfoHeaderComponent\";\nimport { PersonalInfoStepSubmitButton } from \"../PersonalInfoStepSubmitButton/PersonalInfoStepSubmitButton\";\n\ninterface StepCollectIdentifierProps {\n verificationService: VerificationService;\n}\n\nconst StepCollectIdentifier = ({ verificationService }: StepCollectIdentifierProps) => {\n const viewModel = verificationService.viewModel as CollectIdentifierViewModel;\n const { fieldValidationErrors } = verificationService;\n const verificationResponse = verificationService.verificationResponse as PersonalInfoResponse;\n const failedInstantMatch = hasFailedInstantMatch(verificationResponse);\n\n const updateCollectIdentifierViewmodel = (key: keyof CollectIdentifierViewModel, value: any) => {\n const nextState: CollectIdentifierViewModel = produce(\n viewModel,\n (draft: CollectIdentifierViewModel) => {\n (draft[key] as any) = value;\n },\n );\n verificationService.updateViewModel(nextState);\n };\n\n return (\n <div\n id=\"sid-step-collect-transaction-id\"\n className=\"sid-step-collect-transaction-id-container sid-l-container\"\n >\n <div role=\"main\">\n <PersonalInfoHeader\n verificationService={verificationService}\n classNameIdentifier=\"step-collect-transaction-id\"\n />\n\n <Email\n value={viewModel.email}\n isErrored={!!fieldValidationErrors.email}\n explanation={\n <FormattedHTMLMessage\n id=\"step.collectIdentifier.inputExplanation\"\n defaultMessage=\"Needed to send authentication code\"\n />\n }\n onChange={(newValue) => {\n updateCollectIdentifierViewmodel(\"email\", newValue);\n updateFieldValidationErrorsByFieldId(\"email\", newValue, verificationService);\n }}\n onKeyDown={(event: React.KeyboardEvent<HTMLInputElement>) => handleEmailOnKeyDown(event)}\n />\n\n <PersonalInfoStepSubmitButton\n step={VerificationStepsEnum.collectIdentifier}\n verificationService={verificationService}\n viewModel={viewModel}\n failedInstantMatch={failedInstantMatch}\n buttonText={\n <FormattedHTMLMessage\n id=\"step.personalInfo.submitButtonText\"\n defaultMessage=\"Verify and continue\"\n />\n }\n />\n </div>\n <FormFooter verificationService={verificationService} />\n </div>\n );\n};\n\nexport const StepCollectIdentifierComponent = StepCollectIdentifier;\n"],"mappings":";;;;;;;;aAqFa,KA7DkB,EAAE,6BAAsD;CACrF,IAAM,IAAY,EAAoB,WAChC,EAAE,6BAA0B,GAC5B,IAAuB,EAAoB,sBAC3C,IAAqB,EAAsB,CAAoB,GAE/D,KAAoC,GAAuC,MAAe;EAC9F,IAAM,IAAwC,EAC5C,IACC,MAAsC;GACrC,EAAO,KAAe;EACxB,CACF;EACA,EAAoB,gBAAgB,CAAS;CAC/C;CAEA,OACE,iBAAA,GAAA,EAAA,MAAC,OAAD;EACE,IAAG;EACH,WAAU;YAFZ,CAIE,iBAAA,GAAA,EAAA,MAAC,OAAD;GAAK,MAAK;aAAV;IACE,iBAAA,GAAA,EAAA,KAAC,GAAD;KACuB;KACrB,qBAAoB;IACrB,CAAA;IAED,iBAAA,GAAA,EAAA,KAAC,GAAD;KACE,OAAO,EAAU;KACjB,WAAW,CAAC,CAAC,EAAsB;KACnC,aACE,iBAAA,GAAA,EAAA,KAAC,GAAD;MACE,IAAG;MACH,gBAAe;KAChB,CAAA;KAEH,WAAW,MAAa;MAEtB,AADA,EAAiC,SAAS,CAAQ,GAClD,EAAqC,SAAS,GAAU,CAAmB;KAC7E;KACA,YAAY,MAAiD,EAAqB,CAAK;IACxF,CAAA;IAED,iBAAA,GAAA,EAAA,KAAC,GAAD;KACE,MAAM,EAAsB;KACP;KACV;KACS;KACpB,YACE,iBAAA,GAAA,EAAA,KAAC,GAAD;MACE,IAAG;MACH,gBAAe;KAChB,CAAA;IAEJ,CAAA;GACE;MACL,iBAAA,GAAA,EAAA,KAAC,GAAD,EAAiC,uBAAsB,CAAA,CACpD;;AAET"}
1
+ {"version":3,"file":"StepCollectIdentifier-DfMHAYtu.js","names":[],"sources":["../../src/components/StepCollectIdentifier/StepCollectIdentifierComponent.tsx"],"sourcesContent":["import type React from \"react\";\nimport { FormattedHTMLMessage } from \"react-intl\";\nimport { produce } from \"immer\";\n\nimport { hasFailedInstantMatch } from \"../../lib/VerificationService/VerificationServiceHelpers\";\nimport {\n type VerificationService,\n type CollectIdentifierViewModel,\n type PersonalInfoResponse,\n} from \"../../lib/types/types\";\nimport {\n handleEmailOnKeyDown,\n updateFieldValidationErrorsByFieldId,\n} from \"../../lib/utils/stepComponentHelpers/stepComponentHelpers\";\nimport { FormFooterComponent as FormFooter } from \"../FormFooter/FormFooterComponent\";\nimport { EmailComponent as Email } from \"../FormFields/Email/EmailComponent\";\nimport { VerificationStepsEnum } from \"../../lib/types/runtimeTypes\";\nimport { PersonalInfoHeader } from \"../FormHeader/StepHeaders/PersonalInfoHeaderComponent\";\nimport { PersonalInfoStepSubmitButton } from \"../PersonalInfoStepSubmitButton/PersonalInfoStepSubmitButton\";\n\ninterface StepCollectIdentifierProps {\n verificationService: VerificationService;\n}\n\nconst StepCollectIdentifier = ({ verificationService }: StepCollectIdentifierProps) => {\n const viewModel = verificationService.viewModel as CollectIdentifierViewModel;\n const { fieldValidationErrors } = verificationService;\n const verificationResponse = verificationService.verificationResponse as PersonalInfoResponse;\n const failedInstantMatch = hasFailedInstantMatch(verificationResponse);\n\n const updateCollectIdentifierViewmodel = (key: keyof CollectIdentifierViewModel, value: any) => {\n const nextState: CollectIdentifierViewModel = produce(\n viewModel,\n (draft: CollectIdentifierViewModel) => {\n (draft[key] as any) = value;\n },\n );\n verificationService.updateViewModel(nextState);\n };\n\n return (\n <div\n id=\"sid-step-collect-transaction-id\"\n className=\"sid-step-collect-transaction-id-container sid-l-container\"\n >\n <div role=\"main\">\n <PersonalInfoHeader\n verificationService={verificationService}\n classNameIdentifier=\"step-collect-transaction-id\"\n />\n\n <Email\n value={viewModel.email}\n isErrored={!!fieldValidationErrors.email}\n explanation={\n <FormattedHTMLMessage\n id=\"step.collectIdentifier.inputExplanation\"\n defaultMessage=\"Needed to send authentication code\"\n />\n }\n onChange={(newValue) => {\n updateCollectIdentifierViewmodel(\"email\", newValue);\n updateFieldValidationErrorsByFieldId(\"email\", newValue, verificationService);\n }}\n onKeyDown={(event: React.KeyboardEvent<HTMLInputElement>) => handleEmailOnKeyDown(event)}\n />\n\n <PersonalInfoStepSubmitButton\n step={VerificationStepsEnum.collectIdentifier}\n verificationService={verificationService}\n viewModel={viewModel}\n failedInstantMatch={failedInstantMatch}\n buttonText={\n <FormattedHTMLMessage\n id=\"step.personalInfo.submitButtonText\"\n defaultMessage=\"Verify and continue\"\n />\n }\n />\n </div>\n <FormFooter verificationService={verificationService} />\n </div>\n );\n};\n\nexport const StepCollectIdentifierComponent = StepCollectIdentifier;\n"],"mappings":";;;;;;;;aAqFa,KA7DkB,EAAE,6BAAsD;CACrF,IAAM,IAAY,EAAoB,WAChC,EAAE,6BAA0B,GAC5B,IAAuB,EAAoB,sBAC3C,IAAqB,EAAsB,CAAoB,GAE/D,KAAoC,GAAuC,MAAe;EAC9F,IAAM,IAAwC,EAC5C,IACC,MAAsC;GACrC,EAAO,KAAe;EACxB,CACF;EACA,EAAoB,gBAAgB,CAAS;CAC/C;CAEA,OACE,iBAAA,GAAA,EAAA,MAAC,OAAD;EACE,IAAG;EACH,WAAU;YAFZ,CAIE,iBAAA,GAAA,EAAA,MAAC,OAAD;GAAK,MAAK;aAAV;IACE,iBAAA,GAAA,EAAA,KAAC,GAAD;KACuB;KACrB,qBAAoB;IACrB,CAAA;IAED,iBAAA,GAAA,EAAA,KAAC,GAAD;KACE,OAAO,EAAU;KACjB,WAAW,CAAC,CAAC,EAAsB;KACnC,aACE,iBAAA,GAAA,EAAA,KAAC,GAAD;MACE,IAAG;MACH,gBAAe;KAChB,CAAA;KAEH,WAAW,MAAa;MAEtB,AADA,EAAiC,SAAS,CAAQ,GAClD,EAAqC,SAAS,GAAU,CAAmB;KAC7E;KACA,YAAY,MAAiD,EAAqB,CAAK;IACxF,CAAA;IAED,iBAAA,GAAA,EAAA,KAAC,GAAD;KACE,MAAM,EAAsB;KACP;KACV;KACS;KACpB,YACE,iBAAA,GAAA,EAAA,KAAC,GAAD;MACE,IAAG;MACH,gBAAe;KAChB,CAAA;IAEJ,CAAA;GACE;MACL,iBAAA,GAAA,EAAA,KAAC,GAAD,EAAiC,uBAAsB,CAAA,CACpD;;AAET"}
@@ -4,34 +4,34 @@
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.300.0
8
- * BUILD_TIMESTAMP: 1791404647938
9
- * BUILD_DATE: Wed Oct 07 2026 20:24:07 GMT+0000 (Coordinated Universal Time)
10
- * BUILD_COMMIT: 956ad24e05dc9f1fd176abe35ee4f07339d5af3c
7
+ * VERSION: 2.301.0
8
+ * BUILD_TIMESTAMP: 1791996181846
9
+ * BUILD_DATE: Wed Oct 14 2026 16:43:01 GMT+0000 (Coordinated Universal Time)
10
+ * BUILD_COMMIT: 1f84255f75fc7d5dfe2de2662a793668672c8d27
11
11
  */
12
12
  import { p as e, s as t } from "./intl-DYOqmiaL.js";
13
13
  import { b as n } from "./runtimeTypes-B2AGNJMT.js";
14
14
  import { n as r, t as i } from "./jsx-runtime-DtApx7WX.js";
15
- import { p as a } from "./FormFooterComponent-DEps7Imq.js";
15
+ import { p as a } from "./FormFooterComponent-CfWYgtl_.js";
16
16
  import { a as o } from "./refs-Mq0rtW9K.js";
17
17
  import { t as s } from "../_mysheerid-preview.js";
18
- import { t as c } from "./useCollectFieldsEndpoint-CpB9ajYT.js";
18
+ import { t as c } from "./useCollectFieldsEndpoint-BjFKvu3Z.js";
19
19
  import { d as l, f as u, r as d, t as f } from "./stepComponentHelpers-C-r8qzyD.js";
20
- import { a as p, i as m, n as h, o as g, s as _, t as v } from "./CaptchaComponent-CPy68xDd.js";
21
- import { n as y, t as b } from "./PersonalInfoStepSubmitButton-DpNy1B1C.js";
22
- import { i as x } from "./FormSelectChoice-BXvuPodN.js";
23
- import { t as S } from "./BirthDateComponent-I3fR6ykN.js";
24
- import { t as C } from "./PostalCodeComponent-CBNDz5cX.js";
25
- import { t as w } from "./CountryComponentWrapper-DC_jx0yQ.js";
26
- import { t as T } from "./City-CyA91uLw.js";
27
- import { t as E } from "./AddressComponent-x6BuM8au.js";
28
- import { t as D } from "./ExtraMessage-CZH3rwtd.js";
29
- import { t as O } from "./ChangeLocaleComponent-D9w_5kKC.js";
30
- import { t as k } from "./PersonalInfoStepWrapper-fphBx-Va.js";
31
- import { t as A } from "./countryUtils-DE4eQAAo.js";
32
- import { t as j } from "./StateSelectComponent-VTkNvr9b.js";
33
- import { n as M, r as N, t as P } from "./DischargeDateComponent-CkQKujQv.js";
34
- import { t as F } from "./StatusComponent-CBgImupN.js";
20
+ import { a as p, i as m, n as h, o as g, s as _, t as v } from "./CaptchaComponent-Bph-Hx_P.js";
21
+ import { n as y, t as b } from "./PersonalInfoStepSubmitButton-BSWQ9V8r.js";
22
+ import { i as x } from "./FormSelectChoice-BnA3ckgQ.js";
23
+ import { t as S } from "./BirthDateComponent-BNfg7_US.js";
24
+ import { t as C } from "./PostalCodeComponent-DS7sq5Fu.js";
25
+ import { t as w } from "./CountryComponentWrapper-BnK7IyJk.js";
26
+ import { t as T } from "./City-CiwdPtNB.js";
27
+ import { t as E } from "./AddressComponent-BEWbgyyU.js";
28
+ import { t as D } from "./ExtraMessage-AR2qmGJj.js";
29
+ import { t as O } from "./ChangeLocaleComponent-D7_OjTLl.js";
30
+ import { t as k } from "./PersonalInfoStepWrapper-DPH_RA63.js";
31
+ import { t as A } from "./countryUtils-BXKSL95G.js";
32
+ import { t as j } from "./StateSelectComponent-m6gRTPzD.js";
33
+ import { n as M, r as N, t as P } from "./DischargeDateComponent-_xLzJ8wX.js";
34
+ import { t as F } from "./StatusComponent-BpHODprb.js";
35
35
  //#region src/components/StepMilitaryPersonalInfo/militaryStepHelpers.ts
36
36
  var I = (t, n, r, i) => {
37
37
  let a = r.viewModel;
@@ -1 +1 @@
1
- {"version":3,"file":"StepCollectMilitaryPersonalInfoComponent-CXNKuaYi.js","names":[],"sources":["../../src/components/StepMilitaryPersonalInfo/militaryStepHelpers.ts","../../src/components/StepMilitaryPersonalInfo/StepCollectMilitaryPersonalInfoComponent.tsx"],"sourcesContent":["import produce from \"immer\";\n\nimport {\n type VerificationService,\n type FormSelectChoice,\n type MilitaryPersonalInfoViewModel,\n} from \"../../lib/types/types\";\n\nexport const updateMilitaryViewModel = (\n key: keyof MilitaryPersonalInfoViewModel,\n value: any,\n verificationService: VerificationService,\n availableStatuses: FormSelectChoice[],\n): MilitaryPersonalInfoViewModel => {\n const viewModel = verificationService.viewModel as MilitaryPersonalInfoViewModel;\n return produce(viewModel, (draft: MilitaryPersonalInfoViewModel) => {\n (draft[key] as any) = value;\n\n // Reset military-managed skip flags before reapplying.\n const militaryManagedFields = [\"status\"];\n draft.fieldsToSkipValidation = (draft.fieldsToSkipValidation || []).filter(\n (id) => !militaryManagedFields.includes(id),\n );\n\n if (!availableStatuses || availableStatuses.length === 0) {\n draft.fieldsToSkipValidation.push(\"status\");\n }\n\n if (key === \"status\") {\n draft.organization = { id: 0, name: \"\" };\n }\n });\n};\n","import { FormattedHTMLMessage } from \"react-intl\";\n\nimport { useFormSelectChoice } from \"@/components/FormInputs/InputSelect/InputSelectComponent\";\n\nimport { type CollectInfoSteps, VerificationStepsEnum } from \"../../lib/types/runtimeTypes\";\nimport { hasFailedInstantMatch } from \"../../lib/VerificationService/VerificationServiceHelpers\";\nimport { resetRefs } from \"../../lib/refs/refs\";\nimport {\n type VerificationService,\n type FormSelectChoice,\n type Organization,\n type MilitaryPersonalInfoViewModel,\n type ActiveMilitaryPersonalInfoResponse,\n type InactiveMilitaryPersonalInfoResponse,\n type MilitaryStatusResponse,\n type CustomFormFieldConfig,\n type FieldDescription,\n type State,\n type MilitaryStatus,\n} from \"../../lib/types/types\";\nimport { useCollectFieldsEndpoint } from \"../../lib/ServerApi/useCollectFieldsEndpoint\";\nimport { isCountrySelectionNeeded } from \"../FormFields/Country/countryUtils\";\nimport {\n handleEmailOnKeyDown,\n updateFieldValidationErrorsByFieldId,\n updateViewModelOrganization,\n getFieldConfigByFieldId,\n} from \"../../lib/utils/stepComponentHelpers/stepComponentHelpers\";\n\nimport { CountryComponentWrapper } from \"../FormFields/Country/CountryComponentWrapper\";\nimport { PhoneNumberComponent as PhoneNumber } from \"../FormFields/PhoneNumber/PhoneNumberComponent\";\nimport { FirstNameComponent as FirstName } from \"../FormFields/FirstName/FirstNameComponent\";\nimport { LastNameComponent as LastName } from \"../FormFields/LastName/LastNameComponent\";\nimport { EmailComponent as Email } from \"../FormFields/Email/EmailComponent\";\nimport { BirthDateComponent as BirthDate } from \"../FormFields/BirthDate/BirthDateComponent\";\nimport { StatusComponent as MilitaryStatusComponent } from \"../FormFields/Status/StatusComponent\";\nimport { BranchOfServiceComponent as BranchOfService } from \"../FormFields/BranchOfService/BranchOfServiceComponent\";\nimport { DischargeDateComponent as DischargeDate } from \"../FormFields/DischargeDate/DischargeDateComponent\";\nimport { MarketConsentWrapperComponent as MarketConsentWrapper } from \"../FormFields/MarketConsentWrapper/MarketConsentWrapperComponent\";\nimport { ActiveDutyStartDateComponent } from \"../FormFields/ActiveDutyStartDate/ActiveDutyStartDateComponent\";\nimport { AddressComponent } from \"../FormFields/Address/AddressComponent\";\nimport { CityComponent } from \"../FormFields/City/City\";\nimport { StateSelectComponent } from \"../FormFields/State/StateSelectComponent\";\nimport { PostalCodeComponent } from \"../FormFields/PostalCode/PostalCodeComponent\";\nimport { ChangeLocaleV2Component } from \"../FormFields/ChangeLocale/ChangeLocaleComponent\";\nimport { CaptchaComponent } from \"../FormFields/Captcha/CaptchaComponent\";\nimport { PersonalInfoWrapper } from \"../PersonalInfoStepWrapper/PersonalInfoStepWrapper\";\nimport { PersonalInfoStepSubmitButton } from \"../PersonalInfoStepSubmitButton/PersonalInfoStepSubmitButton\";\nimport { PersonalInfoHeader } from \"../FormHeader/StepHeaders/PersonalInfoHeaderComponent\";\nimport { FormFieldCustom } from \"../FormFields/FormFieldCustom/FormFieldCustom\";\nimport { ExtraMessage } from \"../ExtraMessage\";\nimport { getOptions } from \"../../options/options\";\n\nimport { updateMilitaryViewModel } from \"./militaryStepHelpers\";\n\ninterface Props {\n verificationService: VerificationService;\n}\n\nexport default function StepCollectMilitaryPersonalInfoComponent({ verificationService }: Props) {\n const viewModel = verificationService.viewModel as MilitaryPersonalInfoViewModel;\n const { fieldValidationErrors } = verificationService;\n const verificationResponse = verificationService.verificationResponse as\n | ActiveMilitaryPersonalInfoResponse\n | InactiveMilitaryPersonalInfoResponse;\n const failedInstantMatch = hasFailedInstantMatch(verificationResponse);\n\n // Seed: show dischargeDate on first paint when the response indicates an\n // inactive flow, or when the program's transitional validity window applies.\n // The /fields response replaces this once it resolves.\n const showDischargeDateInitially =\n verificationResponse.currentStep ===\n VerificationStepsEnum.collectInactiveMilitaryPersonalInfo ||\n !!verificationService.programTheme.transitionalMilitaryValidityDays;\n const initialRequiredFields: FieldDescription[] = showDischargeDateInitially\n ? [{ key: \"dischargeDate\" }]\n : [];\n\n const {\n availableStatuses: dynamicStatuses,\n isFieldRequired,\n isFieldOptional,\n } = useCollectFieldsEndpoint({\n verificationId: verificationResponse.verificationId,\n currentStep: VerificationStepsEnum.collectMilitaryPersonalInfo,\n viewModel,\n defaultRequiredFields: initialRequiredFields,\n });\n\n const countryChoiceValue = viewModel.countryChoice?.value;\n const needToPickCountry = isCountrySelectionNeeded(\n verificationService.programTheme,\n countryChoiceValue,\n );\n\n const statusOptions = useFormSelectChoice(\n (dynamicStatuses ??\n (verificationResponse as unknown as MilitaryStatusResponse).availableStatuses ??\n (verificationService.previousVerificationResponse as MilitaryStatusResponse)\n ?.availableStatuses) as MilitaryStatus[],\n );\n\n const locale = viewModel.localeChoice.value;\n const options = getOptions();\n\n const showDischargeDate = isFieldRequired(\"dischargeDate\") || isFieldOptional(\"dischargeDate\");\n\n const updateMilitary = (key: keyof MilitaryPersonalInfoViewModel, value: any) => {\n verificationService.updateViewModel(\n updateMilitaryViewModel(key, value, verificationService, statusOptions),\n );\n };\n\n resetRefs();\n\n return (\n <PersonalInfoWrapper\n verificationService={verificationService}\n step={verificationResponse.currentStep}\n className=\"sid-military-personal-info-container\"\n >\n <PersonalInfoHeader\n verificationService={verificationService}\n classNameIdentifier=\"active-military-personal-info\"\n />\n <>\n <ChangeLocaleV2Component verificationService={verificationService} />\n <CountryComponentWrapper\n verificationService={verificationService}\n disabled={getFieldConfigByFieldId(\"country\")?.disabled}\n />\n {statusOptions.length > 0 ? (\n <MilitaryStatusComponent\n segmentId=\"military\"\n value={statusOptions.find((option) => option.value === viewModel.status)}\n isErrored={!!fieldValidationErrors.status}\n errorId=\"invalidMilitaryStatus\"\n options={statusOptions}\n disabled={needToPickCountry || getFieldConfigByFieldId(\"status\")?.disabled}\n explanation={\n needToPickCountry ? (\n <FormattedHTMLMessage id=\"chooseCountry\" defaultMessage=\"Choose a country first\" />\n ) : undefined\n }\n onChange={(status: FormSelectChoice) => {\n updateMilitary(\"status\", status ? (status.value as string) : \"\");\n updateFieldValidationErrorsByFieldId(\n \"status\",\n status ? (status.value as string) : \"\",\n verificationService,\n );\n }}\n />\n ) : null}\n <BranchOfService\n isErrored={!!fieldValidationErrors.organization}\n onChange={(choice: Organization) => {\n updateViewModelOrganization(choice, verificationService);\n updateFieldValidationErrorsByFieldId(\"organization\", choice, verificationService);\n }}\n value={{\n value: viewModel.organization.id,\n label: viewModel.organization.name,\n }}\n verificationService={verificationService}\n disabled={getFieldConfigByFieldId(\"organization\")?.disabled}\n />\n\n <div className=\"sid-names\">\n <FirstName\n value={viewModel.firstName}\n isErrored={!!fieldValidationErrors.firstName}\n disabled={getFieldConfigByFieldId(\"firstName\")?.disabled}\n onChange={(newValue) => {\n updateMilitary(\"firstName\", newValue);\n updateFieldValidationErrorsByFieldId(\"firstName\", newValue, verificationService);\n }}\n />\n <LastName\n value={viewModel.lastName}\n isErrored={!!fieldValidationErrors.lastName}\n disabled={getFieldConfigByFieldId(\"lastName\")?.disabled}\n onChange={(newValue) => {\n updateMilitary(\"lastName\", newValue);\n updateFieldValidationErrorsByFieldId(\"lastName\", newValue, verificationService);\n }}\n />\n </div>\n\n <BirthDate\n errorId={fieldValidationErrors.birthDate}\n locale={locale}\n onChange={(newValue) => {\n updateMilitary(\"birthDate\", newValue);\n updateFieldValidationErrorsByFieldId(\"birthDate\", newValue, verificationService);\n }}\n value={viewModel.birthDate}\n disabled={getFieldConfigByFieldId(\"birthDate\")?.disabled}\n />\n\n {showDischargeDate && (\n <DischargeDate\n mode={\n verificationService.programTheme.transitionalMilitaryValidityDays ? \"date\" : \"month\"\n }\n errorId={fieldValidationErrors.dischargeDate}\n onChange={(newValue) => {\n updateMilitary(\"dischargeDate\", newValue);\n updateFieldValidationErrorsByFieldId(\"dischargeDate\", newValue, verificationService);\n }}\n value={viewModel.dischargeDate}\n locale={locale}\n disabled={getFieldConfigByFieldId(\"dischargeDate\")?.disabled}\n isRequired={isFieldRequired(\"dischargeDate\")}\n />\n )}\n\n {verificationService.programTheme.strictMilitaryValidationEnabled && (\n <ActiveDutyStartDateComponent\n errorId={fieldValidationErrors.activeDutyStartDate}\n locale={locale}\n onChange={(newValue) => {\n updateMilitary(\"activeDutyStartDate\", newValue);\n updateFieldValidationErrorsByFieldId(\n \"activeDutyStartDate\",\n newValue,\n verificationService,\n );\n }}\n value={viewModel.activeDutyStartDate}\n disabled={getFieldConfigByFieldId(\"activeDutyStartDate\")?.disabled}\n isRequired={getFieldConfigByFieldId(\"activeDutyStartDate\")?.requireIfOptional}\n />\n )}\n\n <Email\n value={viewModel.email}\n isErrored={!!fieldValidationErrors.email}\n explanation={\n <FormattedHTMLMessage\n id=\"emailExplanation\"\n defaultMessage=\"Personal email address is recommended\"\n />\n }\n onChange={(newValue) => {\n updateMilitary(\"email\", newValue);\n updateFieldValidationErrorsByFieldId(\"email\", newValue, verificationService);\n }}\n onKeyDown={(event) => handleEmailOnKeyDown(event)}\n disabled={getFieldConfigByFieldId(\"email\")?.disabled}\n />\n\n {verificationService.programTheme.isSmsNotifierConfigured ||\n verificationService.programTheme.smsLoopEnabled ? (\n <PhoneNumber\n isRequired={!!verificationService.programTheme.smsLoopEnabled}\n value={viewModel.phoneNumber}\n isErrored={!!fieldValidationErrors.phoneNumber}\n onChange={(newValue) => {\n updateMilitary(\"phoneNumber\", newValue);\n updateFieldValidationErrorsByFieldId(\"phoneNumber\", newValue, verificationService);\n }}\n selectedCountryCode={viewModel.countryChoice && viewModel.countryChoice.value}\n disabled={getFieldConfigByFieldId(\"phoneNumber\")?.disabled}\n />\n ) : null}\n\n {isFieldOptional(\"address1\") && (\n <AddressComponent\n value={viewModel.address1}\n isErrored={!!fieldValidationErrors.address1}\n errorId={fieldValidationErrors.address1}\n disabled={getFieldConfigByFieldId(\"address1\")?.disabled}\n onChange={(value) => {\n updateMilitary(\"address1\", value);\n updateFieldValidationErrorsByFieldId(\"address1\", value, verificationService);\n }}\n isRequired={getFieldConfigByFieldId(\"address1\")?.requireIfOptional}\n />\n )}\n {isFieldOptional(\"city\") && (\n <CityComponent\n value={viewModel.city}\n isErrored={!!fieldValidationErrors.city}\n errorId={fieldValidationErrors.city}\n disabled={getFieldConfigByFieldId(\"city\")?.disabled}\n onChange={(value) => {\n updateMilitary(\"city\", value);\n updateFieldValidationErrorsByFieldId(\"city\", value, verificationService);\n }}\n isRequired={getFieldConfigByFieldId(\"city\")?.requireIfOptional}\n />\n )}\n {isFieldOptional(\"state\") && (\n <StateSelectComponent\n value={viewModel.state || undefined}\n isErrored={Boolean(fieldValidationErrors.state)}\n onChange={async (stateChoice: FormSelectChoice<State, string>) => {\n const stateValue = stateChoice ? stateChoice.value : undefined;\n updateMilitary(\"state\", stateValue);\n updateFieldValidationErrorsByFieldId(\"state\", stateValue, verificationService);\n }}\n label={<FormattedHTMLMessage id=\"state\" defaultMessage=\"State\" />}\n disabled={getFieldConfigByFieldId(\"state\")?.disabled}\n isRequired={getFieldConfigByFieldId(\"state\")?.requireIfOptional}\n />\n )}\n {isFieldOptional(\"postalCode\") && (\n <PostalCodeComponent\n required={getFieldConfigByFieldId(\"postalCode\")?.requireIfOptional}\n isErrored={!!fieldValidationErrors.postalCode}\n onChange={(newValue) => {\n updateMilitary(\"postalCode\", newValue);\n updateFieldValidationErrorsByFieldId(\"postalCode\", newValue, verificationService);\n }}\n value={viewModel.postalCode}\n disabled={getFieldConfigByFieldId(\"postalCode\")?.disabled}\n />\n )}\n\n {options.customFormFields.map((config: CustomFormFieldConfig) => (\n <FormFieldCustom config={config} verificationService={verificationService} />\n ))}\n\n <MarketConsentWrapper\n verificationService={verificationService}\n isErrored={!!fieldValidationErrors.marketConsentValue}\n onChange={(newValue) => {\n updateMilitary(\"metadata\", {\n ...verificationService.viewModel.metadata,\n marketConsentValue: newValue,\n });\n updateFieldValidationErrorsByFieldId(\n \"marketConsentValue\",\n newValue,\n verificationService,\n );\n }}\n viewModel={viewModel}\n disabled={getFieldConfigByFieldId(\"marketConsentValue\")?.disabled}\n />\n\n <ExtraMessage verificationService={verificationService} suffix=\"CollectAboveSubmit\" />\n\n <CaptchaComponent\n verificationService={verificationService}\n isErrored={!!fieldValidationErrors.captchaToken}\n />\n\n <PersonalInfoStepSubmitButton\n step={verificationResponse.currentStep as CollectInfoSteps}\n verificationService={verificationService}\n viewModel={viewModel}\n failedInstantMatch={failedInstantMatch}\n buttonText={\n <FormattedHTMLMessage\n id=\"step.personalInfo.submitButtonText\"\n defaultMessage=\"Verify My Military Status\"\n />\n }\n />\n </>\n </PersonalInfoWrapper>\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AAQA,IAAa,KACX,GACA,GACA,GACA,MACkC;CAClC,IAAM,IAAY,EAAoB;CACtC,OAAO,EAAQ,IAAY,MAAyC;EAClE,EAAO,KAAe;EAGtB,IAAM,IAAwB,CAAC,QAAQ;EASvC,AARA,EAAM,0BAA0B,EAAM,0BAA0B,CAAC,GAAG,QACjE,MAAO,CAAC,EAAsB,SAAS,CAAE,CAC5C,IAEI,CAAC,KAAqB,EAAkB,WAAW,MACrD,EAAM,uBAAuB,KAAK,QAAQ,GAGxC,MAAQ,aACV,EAAM,eAAe;GAAE,IAAI;GAAG,MAAM;EAAG;CAE3C,CAAC;AACH;AC2BA,SAAwB,EAAyC,EAAE,0BAA8B;CAC/F,IAAM,IAAY,EAAoB,WAChC,EAAE,6BAA0B,GAC5B,IAAuB,EAAoB,sBAG3C,IAAqB,EAAsB,CAAoB,GAS/D,IAHJ,EAAqB,gBACnB,EAAsB,uCACtB,EAAoB,aAAa,mCAEjC,CAAC,EAAE,KAAK,gBAAgB,CAAC,IACzB,CAAC,GAEC,EACJ,mBAAmB,GACnB,oBACA,uBACE,EAAyB;EAC3B,gBAAgB,E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ACX,UAAU,EAAwB,oBAAoB,GAAG;GAC1D,CAAA;GAED,iBAAA,GAAA,EAAA,KAAC,GAAD;IAAmC;IAAqB,QAAO;GAAsB,CAAA;GAErF,iBAAA,GAAA,EAAA,KAAC,GAAD;IACuB;IACrB,WAAW,CAAC,CAAC,EAAsB;GACpC,CAAA;GAED,iBAAA,GAAA,EAAA,KAAC,GAAD;IACE,MAAM,EAAqB;IACN;IACV;IACS;IACpB,YACE,iBAAA,GAAA,EAAA,KAAC,GAAD;KACE,IAAG;KACH,gBAAe;IAChB,CAAA;GAEJ,CAAA;EACD,EAAA,CAAA,CACiB;;AAEzB"}
1
+ {"version":3,"file":"StepCollectMilitaryPersonalInfoComponent-BTE4o83C.js","names":[],"sources":["../../src/components/StepMilitaryPersonalInfo/militaryStepHelpers.ts","../../src/components/StepMilitaryPersonalInfo/StepCollectMilitaryPersonalInfoComponent.tsx"],"sourcesContent":["import produce from \"immer\";\n\nimport {\n type VerificationService,\n type FormSelectChoice,\n type MilitaryPersonalInfoViewModel,\n} from \"../../lib/types/types\";\n\nexport const updateMilitaryViewModel = (\n key: keyof MilitaryPersonalInfoViewModel,\n value: any,\n verificationService: VerificationService,\n availableStatuses: FormSelectChoice[],\n): MilitaryPersonalInfoViewModel => {\n const viewModel = verificationService.viewModel as MilitaryPersonalInfoViewModel;\n return produce(viewModel, (draft: MilitaryPersonalInfoViewModel) => {\n (draft[key] as any) = value;\n\n // Reset military-managed skip flags before reapplying.\n const militaryManagedFields = [\"status\"];\n draft.fieldsToSkipValidation = (draft.fieldsToSkipValidation || []).filter(\n (id) => !militaryManagedFields.includes(id),\n );\n\n if (!availableStatuses || availableStatuses.length === 0) {\n draft.fieldsToSkipValidation.push(\"status\");\n }\n\n if (key === \"status\") {\n draft.organization = { id: 0, name: \"\" };\n }\n });\n};\n","import { FormattedHTMLMessage } from \"react-intl\";\n\nimport { useFormSelectChoice } from \"@/components/FormInputs/InputSelect/InputSelectComponent\";\n\nimport { type CollectInfoSteps, VerificationStepsEnum } from \"../../lib/types/runtimeTypes\";\nimport { hasFailedInstantMatch } from \"../../lib/VerificationService/VerificationServiceHelpers\";\nimport { resetRefs } from \"../../lib/refs/refs\";\nimport {\n type VerificationService,\n type FormSelectChoice,\n type Organization,\n type MilitaryPersonalInfoViewModel,\n type ActiveMilitaryPersonalInfoResponse,\n type InactiveMilitaryPersonalInfoResponse,\n type MilitaryStatusResponse,\n type CustomFormFieldConfig,\n type FieldDescription,\n type State,\n type MilitaryStatus,\n} from \"../../lib/types/types\";\nimport { useCollectFieldsEndpoint } from \"../../lib/ServerApi/useCollectFieldsEndpoint\";\nimport { isCountrySelectionNeeded } from \"../FormFields/Country/countryUtils\";\nimport {\n handleEmailOnKeyDown,\n updateFieldValidationErrorsByFieldId,\n updateViewModelOrganization,\n getFieldConfigByFieldId,\n} from \"../../lib/utils/stepComponentHelpers/stepComponentHelpers\";\n\nimport { CountryComponentWrapper } from \"../FormFields/Country/CountryComponentWrapper\";\nimport { PhoneNumberComponent as PhoneNumber } from \"../FormFields/PhoneNumber/PhoneNumberComponent\";\nimport { FirstNameComponent as FirstName } from \"../FormFields/FirstName/FirstNameComponent\";\nimport { LastNameComponent as LastName } from \"../FormFields/LastName/LastNameComponent\";\nimport { EmailComponent as Email } from \"../FormFields/Email/EmailComponent\";\nimport { BirthDateComponent as BirthDate } from \"../FormFields/BirthDate/BirthDateComponent\";\nimport { StatusComponent as MilitaryStatusComponent } from \"../FormFields/Status/StatusComponent\";\nimport { BranchOfServiceComponent as BranchOfService } from \"../FormFields/BranchOfService/BranchOfServiceComponent\";\nimport { DischargeDateComponent as DischargeDate } from \"../FormFields/DischargeDate/DischargeDateComponent\";\nimport { MarketConsentWrapperComponent as MarketConsentWrapper } from \"../FormFields/MarketConsentWrapper/MarketConsentWrapperComponent\";\nimport { ActiveDutyStartDateComponent } from \"../FormFields/ActiveDutyStartDate/ActiveDutyStartDateComponent\";\nimport { AddressComponent } from \"../FormFields/Address/AddressComponent\";\nimport { CityComponent } from \"../FormFields/City/City\";\nimport { StateSelectComponent } from \"../FormFields/State/StateSelectComponent\";\nimport { PostalCodeComponent } from \"../FormFields/PostalCode/PostalCodeComponent\";\nimport { ChangeLocaleV2Component } from \"../FormFields/ChangeLocale/ChangeLocaleComponent\";\nimport { CaptchaComponent } from \"../FormFields/Captcha/CaptchaComponent\";\nimport { PersonalInfoWrapper } from \"../PersonalInfoStepWrapper/PersonalInfoStepWrapper\";\nimport { PersonalInfoStepSubmitButton } from \"../PersonalInfoStepSubmitButton/PersonalInfoStepSubmitButton\";\nimport { PersonalInfoHeader } from \"../FormHeader/StepHeaders/PersonalInfoHeaderComponent\";\nimport { FormFieldCustom } from \"../FormFields/FormFieldCustom/FormFieldCustom\";\nimport { ExtraMessage } from \"../ExtraMessage\";\nimport { getOptions } from \"../../options/options\";\n\nimport { updateMilitaryViewModel } from \"./militaryStepHelpers\";\n\ninterface Props {\n verificationService: VerificationService;\n}\n\nexport default function StepCollectMilitaryPersonalInfoComponent({ verificationService }: Props) {\n const viewModel = verificationService.viewModel as MilitaryPersonalInfoViewModel;\n const { fieldValidationErrors } = verificationService;\n const verificationResponse = verificationService.verificationResponse as\n | ActiveMilitaryPersonalInfoResponse\n | InactiveMilitaryPersonalInfoResponse;\n const failedInstantMatch = hasFailedInstantMatch(verificationResponse);\n\n // Seed: show dischargeDate on first paint when the response indicates an\n // inactive flow, or when the program's transitional validity window applies.\n // The /fields response replaces this once it resolves.\n const showDischargeDateInitially =\n verificationResponse.currentStep ===\n VerificationStepsEnum.collectInactiveMilitaryPersonalInfo ||\n !!verificationService.programTheme.transitionalMilitaryValidityDays;\n const initialRequiredFields: FieldDescription[] = showDischargeDateInitially\n ? [{ key: \"dischargeDate\" }]\n : [];\n\n const {\n availableStatuses: dynamicStatuses,\n isFieldRequired,\n isFieldOptional,\n } = useCollectFieldsEndpoint({\n verificationId: verificationResponse.verificationId,\n currentStep: VerificationStepsEnum.collectMilitaryPersonalInfo,\n viewModel,\n defaultRequiredFields: initialRequiredFields,\n });\n\n const countryChoiceValue = viewModel.countryChoice?.value;\n const needToPickCountry = isCountrySelectionNeeded(\n verificationService.programTheme,\n countryChoiceValue,\n );\n\n const statusOptions = useFormSelectChoice(\n (dynamicStatuses ??\n (verificationResponse as unknown as MilitaryStatusResponse).availableStatuses ??\n (verificationService.previousVerificationResponse as MilitaryStatusResponse)\n ?.availableStatuses) as MilitaryStatus[],\n );\n\n const locale = viewModel.localeChoice.value;\n const options = getOptions();\n\n const showDischargeDate = isFieldRequired(\"dischargeDate\") || isFieldOptional(\"dischargeDate\");\n\n const updateMilitary = (key: keyof MilitaryPersonalInfoViewModel, value: any) => {\n verificationService.updateViewModel(\n updateMilitaryViewModel(key, value, verificationService, statusOptions),\n );\n };\n\n resetRefs();\n\n return (\n <PersonalInfoWrapper\n verificationService={verificationService}\n step={verificationResponse.currentStep}\n className=\"sid-military-personal-info-container\"\n >\n <PersonalInfoHeader\n verificationService={verificationService}\n classNameIdentifier=\"active-military-personal-info\"\n />\n <>\n <ChangeLocaleV2Component verificationService={verificationService} />\n <CountryComponentWrapper\n verificationService={verificationService}\n disabled={getFieldConfigByFieldId(\"country\")?.disabled}\n />\n {statusOptions.length > 0 ? (\n <MilitaryStatusComponent\n segmentId=\"military\"\n value={statusOptions.find((option) => option.value === viewModel.status)}\n isErrored={!!fieldValidationErrors.status}\n errorId=\"invalidMilitaryStatus\"\n options={statusOptions}\n disabled={needToPickCountry || getFieldConfigByFieldId(\"status\")?.disabled}\n explanation={\n needToPickCountry ? (\n <FormattedHTMLMessage id=\"chooseCountry\" defaultMessage=\"Choose a country first\" />\n ) : undefined\n }\n onChange={(status: FormSelectChoice) => {\n updateMilitary(\"status\", status ? (status.value as string) : \"\");\n updateFieldValidationErrorsByFieldId(\n \"status\",\n status ? (status.value as string) : \"\",\n verificationService,\n );\n }}\n />\n ) : null}\n <BranchOfService\n isErrored={!!fieldValidationErrors.organization}\n onChange={(choice: Organization) => {\n updateViewModelOrganization(choice, verificationService);\n updateFieldValidationErrorsByFieldId(\"organization\", choice, verificationService);\n }}\n value={{\n value: viewModel.organization.id,\n label: viewModel.organization.name,\n }}\n verificationService={verificationService}\n disabled={getFieldConfigByFieldId(\"organization\")?.disabled}\n />\n\n <div className=\"sid-names\">\n <FirstName\n value={viewModel.firstName}\n isErrored={!!fieldValidationErrors.firstName}\n disabled={getFieldConfigByFieldId(\"firstName\")?.disabled}\n onChange={(newValue) => {\n updateMilitary(\"firstName\", newValue);\n updateFieldValidationErrorsByFieldId(\"firstName\", newValue, verificationService);\n }}\n />\n <LastName\n value={viewModel.lastName}\n isErrored={!!fieldValidationErrors.lastName}\n disabled={getFieldConfigByFieldId(\"lastName\")?.disabled}\n onChange={(newValue) => {\n updateMilitary(\"lastName\", newValue);\n updateFieldValidationErrorsByFieldId(\"lastName\", newValue, verificationService);\n }}\n />\n </div>\n\n <BirthDate\n errorId={fieldValidationErrors.birthDate}\n locale={locale}\n onChange={(newValue) => {\n updateMilitary(\"birthDate\", newValue);\n updateFieldValidationErrorsByFieldId(\"birthDate\", newValue, verificationService);\n }}\n value={viewModel.birthDate}\n disabled={getFieldConfigByFieldId(\"birthDate\")?.disabled}\n />\n\n {showDischargeDate && (\n <DischargeDate\n mode={\n verificationService.programTheme.transitionalMilitaryValidityDays ? \"date\" : \"month\"\n }\n errorId={fieldValidationErrors.dischargeDate}\n onChange={(newValue) => {\n updateMilitary(\"dischargeDate\", newValue);\n updateFieldValidationErrorsByFieldId(\"dischargeDate\", newValue, verificationService);\n }}\n value={viewModel.dischargeDate}\n locale={locale}\n disabled={getFieldConfigByFieldId(\"dischargeDate\")?.disabled}\n isRequired={isFieldRequired(\"dischargeDate\")}\n />\n )}\n\n {verificationService.programTheme.strictMilitaryValidationEnabled && (\n <ActiveDutyStartDateComponent\n errorId={fieldValidationErrors.activeDutyStartDate}\n locale={locale}\n onChange={(newValue) => {\n updateMilitary(\"activeDutyStartDate\", newValue);\n updateFieldValidationErrorsByFieldId(\n \"activeDutyStartDate\",\n newValue,\n verificationService,\n );\n }}\n value={viewModel.activeDutyStartDate}\n disabled={getFieldConfigByFieldId(\"activeDutyStartDate\")?.disabled}\n isRequired={getFieldConfigByFieldId(\"activeDutyStartDate\")?.requireIfOptional}\n />\n )}\n\n <Email\n value={viewModel.email}\n isErrored={!!fieldValidationErrors.email}\n explanation={\n <FormattedHTMLMessage\n id=\"emailExplanation\"\n defaultMessage=\"Personal email address is recommended\"\n />\n }\n onChange={(newValue) => {\n updateMilitary(\"email\", newValue);\n updateFieldValidationErrorsByFieldId(\"email\", newValue, verificationService);\n }}\n onKeyDown={(event) => handleEmailOnKeyDown(event)}\n disabled={getFieldConfigByFieldId(\"email\")?.disabled}\n />\n\n {verificationService.programTheme.isSmsNotifierConfigured ||\n verificationService.programTheme.smsLoopEnabled ? (\n <PhoneNumber\n isRequired={!!verificationService.programTheme.smsLoopEnabled}\n value={viewModel.phoneNumber}\n isErrored={!!fieldValidationErrors.phoneNumber}\n onChange={(newValue) => {\n updateMilitary(\"phoneNumber\", newValue);\n updateFieldValidationErrorsByFieldId(\"phoneNumber\", newValue, verificationService);\n }}\n selectedCountryCode={viewModel.countryChoice && viewModel.countryChoice.value}\n disabled={getFieldConfigByFieldId(\"phoneNumber\")?.disabled}\n />\n ) : null}\n\n {isFieldOptional(\"address1\") && (\n <AddressComponent\n value={viewModel.address1}\n isErrored={!!fieldValidationErrors.address1}\n errorId={fieldValidationErrors.address1}\n disabled={getFieldConfigByFieldId(\"address1\")?.disabled}\n onChange={(value) => {\n updateMilitary(\"address1\", value);\n updateFieldValidationErrorsByFieldId(\"address1\", value, verificationService);\n }}\n isRequired={getFieldConfigByFieldId(\"address1\")?.requireIfOptional}\n />\n )}\n {isFieldOptional(\"city\") && (\n <CityComponent\n value={viewModel.city}\n isErrored={!!fieldValidationErrors.city}\n errorId={fieldValidationErrors.city}\n disabled={getFieldConfigByFieldId(\"city\")?.disabled}\n onChange={(value) => {\n updateMilitary(\"city\", value);\n updateFieldValidationErrorsByFieldId(\"city\", value, verificationService);\n }}\n isRequired={getFieldConfigByFieldId(\"city\")?.requireIfOptional}\n />\n )}\n {isFieldOptional(\"state\") && (\n <StateSelectComponent\n value={viewModel.state || undefined}\n isErrored={Boolean(fieldValidationErrors.state)}\n onChange={async (stateChoice: FormSelectChoice<State, string>) => {\n const stateValue = stateChoice ? stateChoice.value : undefined;\n updateMilitary(\"state\", stateValue);\n updateFieldValidationErrorsByFieldId(\"state\", stateValue, verificationService);\n }}\n label={<FormattedHTMLMessage id=\"state\" defaultMessage=\"State\" />}\n disabled={getFieldConfigByFieldId(\"state\")?.disabled}\n isRequired={getFieldConfigByFieldId(\"state\")?.requireIfOptional}\n />\n )}\n {isFieldOptional(\"postalCode\") && (\n <PostalCodeComponent\n required={getFieldConfigByFieldId(\"postalCode\")?.requireIfOptional}\n isErrored={!!fieldValidationErrors.postalCode}\n onChange={(newValue) => {\n updateMilitary(\"postalCode\", newValue);\n updateFieldValidationErrorsByFieldId(\"postalCode\", newValue, verificationService);\n }}\n value={viewModel.postalCode}\n disabled={getFieldConfigByFieldId(\"postalCode\")?.disabled}\n />\n )}\n\n {options.customFormFields.map((config: CustomFormFieldConfig) => (\n <FormFieldCustom config={config} verificationService={verificationService} />\n ))}\n\n <MarketConsentWrapper\n verificationService={verificationService}\n isErrored={!!fieldValidationErrors.marketConsentValue}\n onChange={(newValue) => {\n updateMilitary(\"metadata\", {\n ...verificationService.viewModel.metadata,\n marketConsentValue: newValue,\n });\n updateFieldValidationErrorsByFieldId(\n \"marketConsentValue\",\n newValue,\n verificationService,\n );\n }}\n viewModel={viewModel}\n disabled={getFieldConfigByFieldId(\"marketConsentValue\")?.disabled}\n />\n\n <ExtraMessage verificationService={verificationService} suffix=\"CollectAboveSubmit\" />\n\n <CaptchaComponent\n verificationService={verificationService}\n isErrored={!!fieldValidationErrors.captchaToken}\n />\n\n <PersonalInfoStepSubmitButton\n step={verificationResponse.currentStep as CollectInfoSteps}\n verificationService={verificationService}\n viewModel={viewModel}\n failedInstantMatch={failedInstantMatch}\n buttonText={\n <FormattedHTMLMessage\n id=\"step.personalInfo.submitButtonText\"\n defaultMessage=\"Verify My Military Status\"\n />\n }\n />\n </>\n </PersonalInfoWrapper>\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AAQA,IAAa,KACX,GACA,GACA,GACA,MACkC;CAClC,IAAM,IAAY,EAAoB;CACtC,OAAO,EAAQ,IAAY,MAAyC;EAClE,EAAO,KAAe;EAGtB,IAAM,IAAwB,CAAC,QAAQ;EASvC,AARA,EAAM,0BAA0B,EAAM,0BAA0B,CAAC,GAAG,QACjE,MAAO,CAAC,EAAsB,SAAS,CAAE,CAC5C,IAEI,CAAC,KAAqB,EAAkB,WAAW,MACrD,EAAM,uBAAuB,KAAK,QAAQ,GAGxC,MAAQ,aACV,EAAM,eAAe;GAAE,IAAI;GAAG,MAAM;EAAG;CAE3C,CAAC;AACH;AC2BA,SAAwB,EAAyC,EAAE,0BAA8B;CAC/F,IAAM,IAAY,EAAoB,WAChC,EAAE,6BAA0B,GAC5B,IAAuB,EAAoB,sBAG3C,IAAqB,EAAsB,CAAoB,GAS/D,IAHJ,EAAqB,gBACnB,EAAsB,uCACtB,EAAoB,aAAa,mCAEjC,CAAC,EAAE,KAAK,gBAAgB,CAAC,IACzB,CAAC,GAEC,EACJ,mBAAmB,GACnB,oBACA,uBACE,EAAyB;EAC3B,gBAAgB,EAAqB;EACrC,aAAa,EAAsB;EACnC;EACA,uBAAuB;CACzB,CAAC,GAEK,IAAqB,EAAU,eAAe,OAC9C,IAAoB,EACxB,EAAoB,cACpB,CACF,GAEM,IAAgB,EACnB,KACE,EAA2D,qBAC3D,EAAoB,8BACjB,iBACR,GAEM,IAAS,EAAU,aAAa,OAChC,IAAU,EAAW,GAErB,IAAoB,EAAgB,eAAe,KAAK,EAAgB,eAAe,GAEvF,KAAkB,GAA0C,MAAe;EAC/E,EAAoB,gBAClB,EAAwB,GAAK,GAAO,GAAqB,CAAa,CAC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