@sheerid/jslib 2.275.0 → 2.277.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 (462) hide show
  1. package/_mysheerid-preview.css +4 -4
  2. package/_mysheerid-preview.js +873 -869
  3. package/_mysheerid-preview.js.map +1 -1
  4. package/chunk/{AddressComponent-DeQlodxe.js → AddressComponent-C3iwf09x.js} +7 -7
  5. package/chunk/{AddressComponent-BGFbAsvK.js.map → AddressComponent-C3iwf09x.js.map} +1 -1
  6. package/chunk/{AddressComponent-BGFbAsvK.js → AddressComponent-oDHvr6bn.js} +7 -7
  7. package/chunk/{AddressComponent-DeQlodxe.js.map → AddressComponent-oDHvr6bn.js.map} +1 -1
  8. package/chunk/{AnnouncingHeader-D01_AW-Z.js → AnnouncingHeader-CCVSQeQR.js} +6 -6
  9. package/chunk/{AnnouncingHeader-Ces-_Aei.js.map → AnnouncingHeader-CCVSQeQR.js.map} +1 -1
  10. package/chunk/{AnnouncingHeader-Ces-_Aei.js → AnnouncingHeader-YPjBYzsZ.js} +6 -6
  11. package/chunk/{AnnouncingHeader-D01_AW-Z.js.map → AnnouncingHeader-YPjBYzsZ.js.map} +1 -1
  12. package/chunk/{ApiUrls-CHE6ck1K.js → ApiUrls-BEuqNxHS.js} +12 -8
  13. package/chunk/ApiUrls-BEuqNxHS.js.map +1 -0
  14. package/chunk/ApiUrls-C93kMsSC.js +44 -0
  15. package/chunk/ApiUrls-C93kMsSC.js.map +1 -0
  16. package/chunk/{BirthDateComponent-DA7yEebd.js → BirthDateComponent-MZDnneXy.js} +8 -8
  17. package/chunk/{BirthDateComponent-BzelVdwE.js.map → BirthDateComponent-MZDnneXy.js.map} +1 -1
  18. package/chunk/{BirthDateComponent-BzelVdwE.js → BirthDateComponent-f9e4it7x.js} +8 -8
  19. package/chunk/{BirthDateComponent-DA7yEebd.js.map → BirthDateComponent-f9e4it7x.js.map} +1 -1
  20. package/chunk/{CaptchaComponent-CaHSH2GC.js → CaptchaComponent-CCq7YSum.js} +137 -136
  21. package/chunk/CaptchaComponent-CCq7YSum.js.map +1 -0
  22. package/chunk/{CaptchaComponent-DD6kFSw9.js → CaptchaComponent-hqx9tSkk.js} +136 -135
  23. package/chunk/CaptchaComponent-hqx9tSkk.js.map +1 -0
  24. package/chunk/{ChangeLocaleComponent-BcCMSbju.js → ChangeLocaleComponent-CKKK4OcA.js} +8 -8
  25. package/chunk/{ChangeLocaleComponent-BcCMSbju.js.map → ChangeLocaleComponent-CKKK4OcA.js.map} +1 -1
  26. package/chunk/{ChangeLocaleComponent-l5uhn4km.js → ChangeLocaleComponent-DtJjnuBc.js} +8 -8
  27. package/chunk/{ChangeLocaleComponent-l5uhn4km.js.map → ChangeLocaleComponent-DtJjnuBc.js.map} +1 -1
  28. package/chunk/{City-C1CWD14n.js → City-CUVEjTrI.js} +7 -7
  29. package/chunk/{City-BJB8URp9.js.map → City-CUVEjTrI.js.map} +1 -1
  30. package/chunk/{City-BJB8URp9.js → City-Drub1WX8.js} +7 -7
  31. package/chunk/{City-C1CWD14n.js.map → City-Drub1WX8.js.map} +1 -1
  32. package/chunk/{CollegeNameComponent-CN-yzFPS.js → CollegeNameComponent-4QYMIIcd.js} +9 -9
  33. package/chunk/{CollegeNameComponent-CBZS1qbH.js.map → CollegeNameComponent-4QYMIIcd.js.map} +1 -1
  34. package/chunk/{CollegeNameComponent-CBZS1qbH.js → CollegeNameComponent-C47D3rO4.js} +9 -9
  35. package/chunk/{CollegeNameComponent-CN-yzFPS.js.map → CollegeNameComponent-C47D3rO4.js.map} +1 -1
  36. package/chunk/{CopyToClipboardComponent-CWCaNcMS.js → CopyToClipboardComponent-DGi3bxV2.js} +9 -9
  37. package/chunk/{CopyToClipboardComponent-C4DDGwe8.js.map → CopyToClipboardComponent-DGi3bxV2.js.map} +1 -1
  38. package/chunk/{CopyToClipboardComponent-C4DDGwe8.js → CopyToClipboardComponent-cLuyXFes.js} +9 -9
  39. package/chunk/{CopyToClipboardComponent-CWCaNcMS.js.map → CopyToClipboardComponent-cLuyXFes.js.map} +1 -1
  40. package/chunk/CountryComponentWrapper-B3Ki9bAz.js +78 -0
  41. package/chunk/CountryComponentWrapper-B3Ki9bAz.js.map +1 -0
  42. package/chunk/CountryComponentWrapper-DeR9PrA2.js +82 -0
  43. package/chunk/CountryComponentWrapper-DeR9PrA2.js.map +1 -0
  44. package/chunk/{DischargeDateComponent-NhaY0FfR.js → DischargeDateComponent-Btg3v71t.js} +21 -21
  45. package/chunk/{DischargeDateComponent-NhaY0FfR.js.map → DischargeDateComponent-Btg3v71t.js.map} +1 -1
  46. package/chunk/{DischargeDateComponent-BWErN092.js → DischargeDateComponent-CqKUrGE0.js} +21 -21
  47. package/chunk/{DischargeDateComponent-BWErN092.js.map → DischargeDateComponent-CqKUrGE0.js.map} +1 -1
  48. package/chunk/{DriverLicenseNumberComponent-CFbngokf.js → DriverLicenseNumberComponent-B2arYwHU.js} +7 -7
  49. package/chunk/{DriverLicenseNumberComponent-CFbngokf.js.map → DriverLicenseNumberComponent-B2arYwHU.js.map} +1 -1
  50. package/chunk/{DriverLicenseNumberComponent-Cfjxx2ik.js → DriverLicenseNumberComponent-ByNoEq6v.js} +7 -7
  51. package/chunk/{DriverLicenseNumberComponent-Cfjxx2ik.js.map → DriverLicenseNumberComponent-ByNoEq6v.js.map} +1 -1
  52. package/chunk/{EmailLoopPending-DsovStZB.js → EmailLoopPending-HyZBgisU.js} +25 -25
  53. package/chunk/{EmailLoopPending-CKVWdwQ0.js.map → EmailLoopPending-HyZBgisU.js.map} +1 -1
  54. package/chunk/{EmailLoopPending-CKVWdwQ0.js → EmailLoopPending-ojWCBFjq.js} +24 -24
  55. package/chunk/{EmailLoopPending-DsovStZB.js.map → EmailLoopPending-ojWCBFjq.js.map} +1 -1
  56. package/chunk/{ExtraMessage-CpDDdKiN.js → ExtraMessage-BXxlQROb.js} +7 -7
  57. package/chunk/{ExtraMessage-CpDDdKiN.js.map → ExtraMessage-BXxlQROb.js.map} +1 -1
  58. package/chunk/{ExtraMessage-DNuEH_rP.js → ExtraMessage-PLTUBdhw.js} +7 -7
  59. package/chunk/{ExtraMessage-DNuEH_rP.js.map → ExtraMessage-PLTUBdhw.js.map} +1 -1
  60. package/chunk/{FirstResponderOrganizationComponent-BwVToZUo.js → FirstResponderOrganizationComponent-BiI8JG49.js} +8 -8
  61. package/chunk/{FirstResponderOrganizationComponent-BwVToZUo.js.map → FirstResponderOrganizationComponent-BiI8JG49.js.map} +1 -1
  62. package/chunk/{FirstResponderOrganizationComponent-NdnMGarL.js → FirstResponderOrganizationComponent-BwzXdBV-.js} +8 -8
  63. package/chunk/{FirstResponderOrganizationComponent-NdnMGarL.js.map → FirstResponderOrganizationComponent-BwzXdBV-.js.map} +1 -1
  64. package/chunk/{FormFieldInputSelect-C81cxxxF.js → FormFieldInputSelect-C6OyLsWL.js} +7 -7
  65. package/chunk/{FormFieldInputSelect-C81cxxxF.js.map → FormFieldInputSelect-C6OyLsWL.js.map} +1 -1
  66. package/chunk/{FormFieldInputSelect-ChTWVZ0h.js → FormFieldInputSelect-Cl4QZ12h.js} +7 -7
  67. package/chunk/{FormFieldInputSelect-ChTWVZ0h.js.map → FormFieldInputSelect-Cl4QZ12h.js.map} +1 -1
  68. package/chunk/{FormFieldLayout-CuxYu2-h.js → FormFieldLayout-C4SCdGBC.js} +8 -17
  69. package/chunk/FormFieldLayout-C4SCdGBC.js.map +1 -0
  70. package/chunk/{FormFieldLayout-BPBIL09f.js → FormFieldLayout-Cj_v9kYa.js} +8 -17
  71. package/chunk/FormFieldLayout-Cj_v9kYa.js.map +1 -0
  72. package/chunk/{FormFieldText-Qen7EAhG.js → FormFieldText-BbdrtNh_.js} +7 -7
  73. package/chunk/{FormFieldText-BTWjkwwz.js.map → FormFieldText-BbdrtNh_.js.map} +1 -1
  74. package/chunk/{FormFieldText-BTWjkwwz.js → FormFieldText-Gf13Luq7.js} +7 -7
  75. package/chunk/{FormFieldText-Qen7EAhG.js.map → FormFieldText-Gf13Luq7.js.map} +1 -1
  76. package/chunk/{FormFieldTypeahead-C8HgVKr6.js → FormFieldTypeahead-DTFxOQnf.js} +70 -70
  77. package/chunk/{FormFieldTypeahead-C8HgVKr6.js.map → FormFieldTypeahead-DTFxOQnf.js.map} +1 -1
  78. package/chunk/{FormFieldTypeahead-CAjM5rBm.js → FormFieldTypeahead-DbrQgvbJ.js} +85 -85
  79. package/chunk/{FormFieldTypeahead-CAjM5rBm.js.map → FormFieldTypeahead-DbrQgvbJ.js.map} +1 -1
  80. package/chunk/{FormFooterComponent-BdT7rv1y.js → FormFooterComponent-B2W5vjOS.js} +1949 -1942
  81. package/chunk/{FormFooterComponent-BdT7rv1y.js.map → FormFooterComponent-B2W5vjOS.js.map} +1 -1
  82. package/chunk/{FormFooterComponent-B_Wh4HXO.js → FormFooterComponent-CaOt9TQw.js} +196 -189
  83. package/chunk/FormFooterComponent-CaOt9TQw.js.map +1 -0
  84. package/chunk/{FormSelectChoice-qC0WYy1y.js → FormSelectChoice-C4LlT7fR.js} +19 -30
  85. package/chunk/FormSelectChoice-C4LlT7fR.js.map +1 -0
  86. package/chunk/{FormSelectChoice-cr9QsYX9.js → FormSelectChoice-CClt04rV.js} +19 -30
  87. package/chunk/FormSelectChoice-CClt04rV.js.map +1 -0
  88. package/chunk/{InputText-C8Mt-ybW.js → InputText-BXPuBlPq.js} +7 -7
  89. package/chunk/{InputText-Bw9hR6-E.js.map → InputText-BXPuBlPq.js.map} +1 -1
  90. package/chunk/{InputText-Bw9hR6-E.js → InputText-h_myNeHr.js} +7 -7
  91. package/chunk/{InputText-C8Mt-ybW.js.map → InputText-h_myNeHr.js.map} +1 -1
  92. package/chunk/{LicensedProfessionalOrganizationComponent-Qr_OcT4S.js → LicensedProfessionalOrganizationComponent-wJSn67h6.js} +8 -8
  93. package/chunk/{LicensedProfessionalOrganizationComponent-DD5D6T1j.js.map → LicensedProfessionalOrganizationComponent-wJSn67h6.js.map} +1 -1
  94. package/chunk/{LicensedProfessionalOrganizationComponent-DD5D6T1j.js → LicensedProfessionalOrganizationComponent-wfXwXvVc.js} +8 -8
  95. package/chunk/{LicensedProfessionalOrganizationComponent-Qr_OcT4S.js.map → LicensedProfessionalOrganizationComponent-wfXwXvVc.js.map} +1 -1
  96. package/chunk/{LogoComponent-BbW4WS1K.js → LogoComponent-Do8K5ydz.js} +6 -6
  97. package/chunk/{LogoComponent-BbW4WS1K.js.map → LogoComponent-Do8K5ydz.js.map} +1 -1
  98. package/chunk/{LogoComponent-CRfZyj0K.js → LogoComponent-Dx1G-rzE.js} +6 -6
  99. package/chunk/{LogoComponent-CRfZyj0K.js.map → LogoComponent-Dx1G-rzE.js.map} +1 -1
  100. package/chunk/{LowIncomeOrganizationComponent-C-ILtROJ.js → LowIncomeOrganizationComponent-C3Dc7HeO.js} +20 -20
  101. package/chunk/{LowIncomeOrganizationComponent-C-ILtROJ.js.map → LowIncomeOrganizationComponent-C3Dc7HeO.js.map} +1 -1
  102. package/chunk/{LowIncomeOrganizationComponent-ChuZO5oy.js → LowIncomeOrganizationComponent-D8RlrBXa.js} +20 -20
  103. package/chunk/{LowIncomeOrganizationComponent-ChuZO5oy.js.map → LowIncomeOrganizationComponent-D8RlrBXa.js.map} +1 -1
  104. package/chunk/{MedicalProfessionalOrganizationComponent-wF2iUUU3.js → MedicalProfessionalOrganizationComponent-BlEmZTpI.js} +8 -8
  105. package/chunk/{MedicalProfessionalOrganizationComponent-QlMPcO92.js.map → MedicalProfessionalOrganizationComponent-BlEmZTpI.js.map} +1 -1
  106. package/chunk/{MedicalProfessionalOrganizationComponent-QlMPcO92.js → MedicalProfessionalOrganizationComponent-DS1iVIfQ.js} +8 -8
  107. package/chunk/{MedicalProfessionalOrganizationComponent-wF2iUUU3.js.map → MedicalProfessionalOrganizationComponent-DS1iVIfQ.js.map} +1 -1
  108. package/chunk/{MemberIdComponent-DbvTJcos.js → MemberIdComponent-5OnkQeLm.js} +7 -7
  109. package/chunk/{MemberIdComponent-CuflPh6q.js.map → MemberIdComponent-5OnkQeLm.js.map} +1 -1
  110. package/chunk/{MemberIdComponent-CuflPh6q.js → MemberIdComponent-sR9aGDN4.js} +7 -7
  111. package/chunk/{MemberIdComponent-DbvTJcos.js.map → MemberIdComponent-sR9aGDN4.js.map} +1 -1
  112. package/chunk/{MembershipOrganizationComponent-CvpHrQlx.js → MembershipOrganizationComponent-BrbunU1_.js} +8 -8
  113. package/chunk/{MembershipOrganizationComponent-CvpHrQlx.js.map → MembershipOrganizationComponent-BrbunU1_.js.map} +1 -1
  114. package/chunk/{MembershipOrganizationComponent-rAlof4zj.js → MembershipOrganizationComponent-UqzaA4bV.js} +8 -8
  115. package/chunk/{MembershipOrganizationComponent-rAlof4zj.js.map → MembershipOrganizationComponent-UqzaA4bV.js.map} +1 -1
  116. package/chunk/Onfido-CTCgAwnB.js +4 -4
  117. package/chunk/{PersonalInfoStepSubmitButton-D55ut5Yp.js → PersonalInfoStepSubmitButton-DA3ceOLw.js} +27 -25
  118. package/chunk/PersonalInfoStepSubmitButton-DA3ceOLw.js.map +1 -0
  119. package/chunk/{PersonalInfoStepSubmitButton-C7QmpcVd.js → PersonalInfoStepSubmitButton-D_Y9q0Iy.js} +19 -17
  120. package/chunk/PersonalInfoStepSubmitButton-D_Y9q0Iy.js.map +1 -0
  121. package/chunk/{PersonalInfoStepWrapper-CQ-P1pon.js → PersonalInfoStepWrapper-6neTJTQD.js} +7 -7
  122. package/chunk/{PersonalInfoStepWrapper-CQ-P1pon.js.map → PersonalInfoStepWrapper-6neTJTQD.js.map} +1 -1
  123. package/chunk/{PersonalInfoStepWrapper-C3OKK8Mh.js → PersonalInfoStepWrapper-Dsb0Qcv5.js} +21 -21
  124. package/chunk/{PersonalInfoStepWrapper-C3OKK8Mh.js.map → PersonalInfoStepWrapper-Dsb0Qcv5.js.map} +1 -1
  125. package/chunk/{PostalCodeComponent-Cd3MQUvZ.js → PostalCodeComponent-BhBBSAL-.js} +7 -7
  126. package/chunk/{PostalCodeComponent-Bs9KyOzc.js.map → PostalCodeComponent-BhBBSAL-.js.map} +1 -1
  127. package/chunk/{PostalCodeComponent-Bs9KyOzc.js → PostalCodeComponent-DKC3DspF.js} +7 -7
  128. package/chunk/{PostalCodeComponent-Cd3MQUvZ.js.map → PostalCodeComponent-DKC3DspF.js.map} +1 -1
  129. package/chunk/{SSN-Bj9BhqVP.js → SSN-7DHOlAAq.js} +8 -8
  130. package/chunk/{SSN-Bj9BhqVP.js.map → SSN-7DHOlAAq.js.map} +1 -1
  131. package/chunk/{SSN-xvlX6KT5.js → SSN-DlBvRiaZ.js} +8 -8
  132. package/chunk/{SSN-xvlX6KT5.js.map → SSN-DlBvRiaZ.js.map} +1 -1
  133. package/chunk/{StateSelectComponent-B2sfW_tb.js → StateSelectComponent-BXHXB6Kn.js} +6 -6
  134. package/chunk/{StateSelectComponent-B2sfW_tb.js.map → StateSelectComponent-BXHXB6Kn.js.map} +1 -1
  135. package/chunk/{StateSelectComponent-CCIlFilV.js → StateSelectComponent-lM5e-_1v.js} +6 -6
  136. package/chunk/{StateSelectComponent-CCIlFilV.js.map → StateSelectComponent-lM5e-_1v.js.map} +1 -1
  137. package/chunk/{StatusComponent-AEKNerJR.js → StatusComponent-BTvs1WVn.js} +15 -14
  138. package/chunk/StatusComponent-BTvs1WVn.js.map +1 -0
  139. package/chunk/{StatusComponent-DFtcHMpS.js → StatusComponent-BxQNsHYs.js} +15 -14
  140. package/chunk/StatusComponent-BxQNsHYs.js.map +1 -0
  141. package/chunk/StepAgePersonalInfo-BOnOqXxm.js +174 -0
  142. package/chunk/{StepAgePersonalInfo-BHWaDlVH.js.map → StepAgePersonalInfo-BOnOqXxm.js.map} +1 -1
  143. package/chunk/{StepAgePersonalInfo-CH3r6vpW.js → StepAgePersonalInfo-UWfkIpnn.js} +43 -47
  144. package/chunk/{StepAgePersonalInfo-CH3r6vpW.js.map → StepAgePersonalInfo-UWfkIpnn.js.map} +1 -1
  145. package/chunk/{StepCard-CPjUPPj0.js → StepCard-B0o7IN6g.js} +5 -5
  146. package/chunk/{StepCard-CPjUPPj0.js.map → StepCard-B0o7IN6g.js.map} +1 -1
  147. package/chunk/{StepCard-CbZaVC-t.js → StepCard-CWT2BiAH.js} +5 -5
  148. package/chunk/{StepCard-CbZaVC-t.js.map → StepCard-CWT2BiAH.js.map} +1 -1
  149. package/chunk/{StepCollectIdentifier-BcbSXA5J.js → StepCollectIdentifier-CtpUvhZs.js} +11 -11
  150. package/chunk/{StepCollectIdentifier-BcbSXA5J.js.map → StepCollectIdentifier-CtpUvhZs.js.map} +1 -1
  151. package/chunk/{StepCollectIdentifier-lhrdWP-H.js → StepCollectIdentifier-D7bSwvYI.js} +15 -15
  152. package/chunk/{StepCollectIdentifier-lhrdWP-H.js.map → StepCollectIdentifier-D7bSwvYI.js.map} +1 -1
  153. package/chunk/StepCollectMilitaryPersonalInfoComponent-BcmZhgl3.js +245 -0
  154. package/chunk/StepCollectMilitaryPersonalInfoComponent-BcmZhgl3.js.map +1 -0
  155. package/chunk/StepCollectMilitaryPersonalInfoComponent-CHxXr8xM.js +249 -0
  156. package/chunk/StepCollectMilitaryPersonalInfoComponent-CHxXr8xM.js.map +1 -0
  157. package/chunk/StepCollectPersonalInfo-BlAJbqgb.js +372 -0
  158. package/chunk/StepCollectPersonalInfo-BlAJbqgb.js.map +1 -0
  159. package/chunk/StepCollectPersonalInfo-CzLVKlZ3.js +368 -0
  160. package/chunk/StepCollectPersonalInfo-CzLVKlZ3.js.map +1 -0
  161. package/chunk/{StepCompleteAuthentication-AKjdo3J9.js → StepCompleteAuthentication-Cnv_QzG7.js} +21 -21
  162. package/chunk/{StepCompleteAuthentication-AKjdo3J9.js.map → StepCompleteAuthentication-Cnv_QzG7.js.map} +1 -1
  163. package/chunk/{StepCompleteAuthentication-DytIfFlB.js → StepCompleteAuthentication-D7NH3MFa.js} +21 -21
  164. package/chunk/{StepCompleteAuthentication-DytIfFlB.js.map → StepCompleteAuthentication-D7NH3MFa.js.map} +1 -1
  165. package/chunk/{StepConsolation-DO8Lm9dv.js → StepConsolation-BrzJnbYN.js} +9 -9
  166. package/chunk/{StepConsolation-CExfIb_j.js.map → StepConsolation-BrzJnbYN.js.map} +1 -1
  167. package/chunk/{StepConsolation-CExfIb_j.js → StepConsolation-C5ZHdmQ6.js} +9 -9
  168. package/chunk/{StepConsolation-DO8Lm9dv.js.map → StepConsolation-C5ZHdmQ6.js.map} +1 -1
  169. package/chunk/{StepDocUpload-CYElBSeV.js → StepDocUpload-BuH-EW5U.js} +214 -214
  170. package/chunk/{StepDocUpload-CYElBSeV.js.map → StepDocUpload-BuH-EW5U.js.map} +1 -1
  171. package/chunk/{StepDocUpload--1-U-569.js → StepDocUpload-D2_e55pR.js} +221 -221
  172. package/chunk/{StepDocUpload--1-U-569.js.map → StepDocUpload-D2_e55pR.js.map} +1 -1
  173. package/chunk/{StepDriverLicensePersonalInfoComponent-ByLP9CLy.js → StepDriverLicensePersonalInfoComponent-DcVZb5ke.js} +32 -32
  174. package/chunk/{StepDriverLicensePersonalInfoComponent-ByLP9CLy.js.map → StepDriverLicensePersonalInfoComponent-DcVZb5ke.js.map} +1 -1
  175. package/chunk/{StepDriverLicensePersonalInfoComponent-CpfSPJBD.js → StepDriverLicensePersonalInfoComponent-UZoq9OhC.js} +36 -36
  176. package/chunk/{StepDriverLicensePersonalInfoComponent-CpfSPJBD.js.map → StepDriverLicensePersonalInfoComponent-UZoq9OhC.js.map} +1 -1
  177. package/chunk/{StepEmailLoop-Bok5TmMG.js → StepEmailLoop-138hnevc.js} +17 -17
  178. package/chunk/{StepEmailLoop-Bok5TmMG.js.map → StepEmailLoop-138hnevc.js.map} +1 -1
  179. package/chunk/{StepEmailLoop-CdREX-4w.js → StepEmailLoop-p3PjfBvc.js} +17 -17
  180. package/chunk/{StepEmailLoop-CdREX-4w.js.map → StepEmailLoop-p3PjfBvc.js.map} +1 -1
  181. package/chunk/{StepEmploymentPersonalInfo-XVAvZ0te.js → StepEmploymentPersonalInfo-CIb2V_Aj.js} +44 -44
  182. package/chunk/{StepEmploymentPersonalInfo-DqFNiu3C.js.map → StepEmploymentPersonalInfo-CIb2V_Aj.js.map} +1 -1
  183. package/chunk/{StepEmploymentPersonalInfo-DqFNiu3C.js → StepEmploymentPersonalInfo-txyihsja.js} +48 -48
  184. package/chunk/{StepEmploymentPersonalInfo-XVAvZ0te.js.map → StepEmploymentPersonalInfo-txyihsja.js.map} +1 -1
  185. package/chunk/StepFirstResponderPersonalInfo-CSGMgT02.js +186 -0
  186. package/chunk/StepFirstResponderPersonalInfo-CSGMgT02.js.map +1 -0
  187. package/chunk/StepFirstResponderPersonalInfo-gF_5zHxj.js +182 -0
  188. package/chunk/StepFirstResponderPersonalInfo-gF_5zHxj.js.map +1 -0
  189. package/chunk/{StepGeneralIdentityPersonalInfoComponent-BfYxugan.js → StepGeneralIdentityPersonalInfoComponent-Cgp_PX5L.js} +45 -45
  190. package/chunk/{StepGeneralIdentityPersonalInfoComponent-BfYxugan.js.map → StepGeneralIdentityPersonalInfoComponent-Cgp_PX5L.js.map} +1 -1
  191. package/chunk/{StepGeneralIdentityPersonalInfoComponent-BqHvbrkO.js → StepGeneralIdentityPersonalInfoComponent-D4wP5D1G.js} +41 -41
  192. package/chunk/{StepGeneralIdentityPersonalInfoComponent-BqHvbrkO.js.map → StepGeneralIdentityPersonalInfoComponent-D4wP5D1G.js.map} +1 -1
  193. package/chunk/{StepHybridIdentityPersonalInfoComponent-C4SFltJf.js → StepHybridIdentityPersonalInfoComponent-Cez-TR1Z.js} +44 -44
  194. package/chunk/{StepHybridIdentityPersonalInfoComponent-C4SFltJf.js.map → StepHybridIdentityPersonalInfoComponent-Cez-TR1Z.js.map} +1 -1
  195. package/chunk/{StepHybridIdentityPersonalInfoComponent-D2bEcQKw.js → StepHybridIdentityPersonalInfoComponent-ChtlT4nZ.js} +48 -48
  196. package/chunk/{StepHybridIdentityPersonalInfoComponent-D2bEcQKw.js.map → StepHybridIdentityPersonalInfoComponent-ChtlT4nZ.js.map} +1 -1
  197. package/chunk/StepIDCheckLoop-CX6VsvAJ.js +24 -0
  198. package/chunk/{StepIDCheckLoop-BDark2Di.js.map → StepIDCheckLoop-CX6VsvAJ.js.map} +1 -1
  199. package/chunk/{StepIDCheckLoop-BDark2Di.js → StepIDCheckLoop-DFhu-v9n.js} +8 -8
  200. package/chunk/{StepIDCheckLoop-C0g-rLtR.js.map → StepIDCheckLoop-DFhu-v9n.js.map} +1 -1
  201. package/chunk/{StepIDCheckLoopOnfido-BzrLqUIy.js → StepIDCheckLoopOnfido-0o-ZdynC.js} +48 -48
  202. package/chunk/{StepIDCheckLoopOnfido-CpsFKeIS.js.map → StepIDCheckLoopOnfido-0o-ZdynC.js.map} +1 -1
  203. package/chunk/{StepIDCheckLoopOnfido-CpsFKeIS.js → StepIDCheckLoopOnfido-CiuUU7f9.js} +53 -53
  204. package/chunk/{StepIDCheckLoopOnfido-BzrLqUIy.js.map → StepIDCheckLoopOnfido-CiuUU7f9.js.map} +1 -1
  205. package/chunk/{StepIDCheckLoopRegula-nvw5YyKo.js → StepIDCheckLoopRegula-D5Ln2I62.js} +21 -21
  206. package/chunk/{StepIDCheckLoopRegula-DBaRIxgp.js.map → StepIDCheckLoopRegula-D5Ln2I62.js.map} +1 -1
  207. package/chunk/{StepIDCheckLoopRegula-DBaRIxgp.js → StepIDCheckLoopRegula-D94f7Ccr.js} +21 -21
  208. package/chunk/{StepIDCheckLoopRegula-nvw5YyKo.js.map → StepIDCheckLoopRegula-D94f7Ccr.js.map} +1 -1
  209. package/chunk/StepLicensedProfessionalPersonalInfo-BHInsLPJ.js +180 -0
  210. package/chunk/StepLicensedProfessionalPersonalInfo-BHInsLPJ.js.map +1 -0
  211. package/chunk/StepLicensedProfessionalPersonalInfo-CHQbAgsG.js +176 -0
  212. package/chunk/StepLicensedProfessionalPersonalInfo-CHQbAgsG.js.map +1 -0
  213. package/chunk/StepLowIncomePersonalInfo-DVDI4DRm.js +234 -0
  214. package/chunk/StepLowIncomePersonalInfo-DVDI4DRm.js.map +1 -0
  215. package/chunk/StepLowIncomePersonalInfo-oBDI4ML2.js +238 -0
  216. package/chunk/StepLowIncomePersonalInfo-oBDI4ML2.js.map +1 -0
  217. package/chunk/StepMedicalProfessionalPersonalInfo-DmoUExs9.js +208 -0
  218. package/chunk/StepMedicalProfessionalPersonalInfo-DmoUExs9.js.map +1 -0
  219. package/chunk/StepMedicalProfessionalPersonalInfo-_x2wcVNS.js +212 -0
  220. package/chunk/StepMedicalProfessionalPersonalInfo-_x2wcVNS.js.map +1 -0
  221. package/chunk/StepMemberPersonalInfo-BAjKLJCl.js +153 -0
  222. package/chunk/{StepMemberPersonalInfo-JVdhDDsO.js.map → StepMemberPersonalInfo-BAjKLJCl.js.map} +1 -1
  223. package/chunk/StepMemberPersonalInfo-CI9Q06Ic.js +157 -0
  224. package/chunk/{StepMemberPersonalInfo-oxD7cpuH.js.map → StepMemberPersonalInfo-CI9Q06Ic.js.map} +1 -1
  225. package/chunk/StepMoverPersonalInfo-CVT4pPa6.js +144 -0
  226. package/chunk/{StepMoverPersonalInfo-DQ6omvFs.js.map → StepMoverPersonalInfo-CVT4pPa6.js.map} +1 -1
  227. package/chunk/StepMoverPersonalInfo-DIkMi5zU.js +140 -0
  228. package/chunk/{StepMoverPersonalInfo-DoRQ7YwV.js.map → StepMoverPersonalInfo-DIkMi5zU.js.map} +1 -1
  229. package/chunk/{StepOverrideComponent-Bk4iLCjb.js → StepOverrideComponent-B9HVSPlq.js} +16 -16
  230. package/chunk/StepOverrideComponent-B9HVSPlq.js.map +1 -0
  231. package/chunk/{StepOverrideComponent-BScdpQsD.js → StepOverrideComponent-DOBT7C22.js} +16 -16
  232. package/chunk/StepOverrideComponent-DOBT7C22.js.map +1 -0
  233. package/chunk/{StepSMSLoop-Qhui36Ad.js → StepSMSLoop-BM7UE2tP.js} +20 -20
  234. package/chunk/{StepSMSLoop-CKgyKNf3.js.map → StepSMSLoop-BM7UE2tP.js.map} +1 -1
  235. package/chunk/{StepSMSLoop-CKgyKNf3.js → StepSMSLoop-Wr-MrFaf.js} +19 -19
  236. package/chunk/{StepSMSLoop-Qhui36Ad.js.map → StepSMSLoop-Wr-MrFaf.js.map} +1 -1
  237. package/chunk/StepSSO-BGHCbduX.js +4 -4
  238. package/chunk/StepSSO-ZHByQpHa.js +4 -4
  239. package/chunk/{StepSocialSecurityNumber-B73JU0Vm.js → StepSocialSecurityNumber-DepVz3V7.js} +26 -26
  240. package/chunk/{StepSocialSecurityNumber-B73JU0Vm.js.map → StepSocialSecurityNumber-DepVz3V7.js.map} +1 -1
  241. package/chunk/{StepSocialSecurityNumber-CxzmRJyj.js → StepSocialSecurityNumber-LcWg-zo5.js} +26 -26
  242. package/chunk/{StepSocialSecurityNumber-CxzmRJyj.js.map → StepSocialSecurityNumber-LcWg-zo5.js.map} +1 -1
  243. package/chunk/{StepStudentPersonalInfo-qiawIhbf.js → StepStudentPersonalInfo-CxPq9ICS.js} +47 -47
  244. package/chunk/{StepStudentPersonalInfo-DSlm69iu.js.map → StepStudentPersonalInfo-CxPq9ICS.js.map} +1 -1
  245. package/chunk/{StepStudentPersonalInfo-DSlm69iu.js → StepStudentPersonalInfo-DQMWaRSa.js} +77 -77
  246. package/chunk/{StepStudentPersonalInfo-qiawIhbf.js.map → StepStudentPersonalInfo-DQMWaRSa.js.map} +1 -1
  247. package/chunk/{StepSuccess-CY6HRbL0.js → StepSuccess-C3a0CPsE.js} +30 -30
  248. package/chunk/{StepSuccess-BFHXLjzL.js.map → StepSuccess-C3a0CPsE.js.map} +1 -1
  249. package/chunk/{StepSuccess-BFHXLjzL.js → StepSuccess-CvK7t1zN.js} +29 -29
  250. package/chunk/{StepSuccess-CY6HRbL0.js.map → StepSuccess-CvK7t1zN.js.map} +1 -1
  251. package/chunk/StepTeacherPersonalInfo-DhOL3_0H.js +154 -0
  252. package/chunk/{StepTeacherPersonalInfo-BzO0_kSV.js.map → StepTeacherPersonalInfo-DhOL3_0H.js.map} +1 -1
  253. package/chunk/StepTeacherPersonalInfo-_Wwkq-dn.js +150 -0
  254. package/chunk/{StepTeacherPersonalInfo-D5JC_By3.js.map → StepTeacherPersonalInfo-_Wwkq-dn.js.map} +1 -1
  255. package/chunk/StepThirdPartyLoop-BrKuZcYb.js +4 -4
  256. package/chunk/StepThirdPartyLoop-CbFTIlwP.js +4 -4
  257. package/chunk/{TeacherSchoolComponent-DUAkXH8Y.js → TeacherSchoolComponent-3HVz97q_.js} +9 -9
  258. package/chunk/{TeacherSchoolComponent-DSr16b-J.js.map → TeacherSchoolComponent-3HVz97q_.js.map} +1 -1
  259. package/chunk/{TeacherSchoolComponent-DSr16b-J.js → TeacherSchoolComponent-BwLUGmNi.js} +9 -9
  260. package/chunk/{TeacherSchoolComponent-DUAkXH8Y.js.map → TeacherSchoolComponent-BwLUGmNi.js.map} +1 -1
  261. package/chunk/{TestingRouteOverrides-Bt8QuyMY.js → TestingRouteOverrides-CAGESMw9.js} +26 -26
  262. package/chunk/{TestingRouteOverrides-BeBP6XXB.js.map → TestingRouteOverrides-CAGESMw9.js.map} +1 -1
  263. package/chunk/TestingRouteOverrides-CrhfSmLr.js +77 -0
  264. package/chunk/{TestingRouteOverrides-Bt8QuyMY.js.map → TestingRouteOverrides-CrhfSmLr.js.map} +1 -1
  265. package/chunk/ThreatMetrix-D_TbL50B.js +4 -4
  266. package/chunk/{VerificationApiClient-xKQFqber.js → VerificationApiClient-BcE3SjuJ.js} +377 -414
  267. package/chunk/{VerificationApiClient-CNCGYJN0.js.map → VerificationApiClient-BcE3SjuJ.js.map} +1 -1
  268. package/chunk/{VerificationApiClient-CNCGYJN0.js → VerificationApiClient-fJ7P4ejD.js} +424 -421
  269. package/chunk/{VerificationApiClient-xKQFqber.js.map → VerificationApiClient-fJ7P4ejD.js.map} +1 -1
  270. package/chunk/ar-Dh-2G5c3.js +4 -4
  271. package/chunk/bg-BbAhdJRh.js +4 -4
  272. package/chunk/bn-IN-Cx3Q5Utp.js +4 -4
  273. package/chunk/{countryUtils-QLzXPJsg.js → countryUtils-AR9k3KRg.js} +5 -5
  274. package/chunk/{countryUtils-Bg9KdIbF.js.map → countryUtils-AR9k3KRg.js.map} +1 -1
  275. package/chunk/countryUtils-DWqId-zY.js +12 -0
  276. package/chunk/{countryUtils-QLzXPJsg.js.map → countryUtils-DWqId-zY.js.map} +1 -1
  277. package/chunk/cs-CYGsmvju.js +4 -4
  278. package/chunk/da-COZWvvUD.js +4 -4
  279. package/chunk/de-BHclNQGr.js +4 -4
  280. package/chunk/{downshift.esm-lpoogWsV.js → downshift.esm-BKI3sFd7.js} +7 -7
  281. package/chunk/{downshift.esm-lpoogWsV.js.map → downshift.esm-BKI3sFd7.js.map} +1 -1
  282. package/chunk/{downshift.esm-BLpaOzFc.js → downshift.esm-DryiNDJI.js} +7 -7
  283. package/chunk/{downshift.esm-BLpaOzFc.js.map → downshift.esm-DryiNDJI.js.map} +1 -1
  284. package/chunk/el-Bv_XQ0FX.js +4 -4
  285. package/chunk/{empties-DctbDY5s.js → empties-B6naRhes.js} +64 -73
  286. package/chunk/empties-B6naRhes.js.map +1 -0
  287. package/chunk/{empties-COfIPxJ5.js → empties-Crmkxudi.js} +64 -73
  288. package/chunk/empties-Crmkxudi.js.map +1 -0
  289. package/chunk/en-GB-CkENrh2I.js +4 -4
  290. package/chunk/es-BRKAFTKN.js +4 -4
  291. package/chunk/es-ES-BWfAbWbQ.js +4 -4
  292. package/chunk/et-CxMgVbW2.js +4 -4
  293. package/chunk/eventEmitter-CSG6jR7V.js +4 -4
  294. package/chunk/fa-BEC3aNBF.js +4 -4
  295. package/chunk/fi-BaP3FR15.js +4 -4
  296. package/chunk/fr-CA-CS4SuM-m.js +4 -4
  297. package/chunk/fr-DSU2B7p2.js +4 -4
  298. package/chunk/ga-DZEr9X_A.js +4 -4
  299. package/chunk/hi-IN-DvBVpWNQ.js +4 -4
  300. package/chunk/{hooks-DLtMDttz.js → hooks-C15H5pD-.js} +481 -481
  301. package/chunk/hooks-C15H5pD-.js.map +1 -0
  302. package/chunk/{hooks-PN48cX8E.js → hooks-ChQrxN58.js} +480 -480
  303. package/chunk/hooks-ChQrxN58.js.map +1 -0
  304. package/chunk/hr-CL1lHDbu.js +4 -4
  305. package/chunk/hu-Cf5Uq9R_.js +4 -4
  306. package/chunk/id-ay9yilKx.js +4 -4
  307. package/chunk/{intl-TN1Dianl.js → intl-e5WHiYfA.js} +8 -7
  308. package/chunk/intl-e5WHiYfA.js.map +1 -0
  309. package/chunk/is-tpzRyIZi.js +4 -4
  310. package/chunk/it-C3-BupR4.js +4 -4
  311. package/chunk/iw-CBna3XPT.js +4 -4
  312. package/chunk/ja-DvXOkZRn.js +4 -4
  313. package/chunk/{jsx-runtime-lVLuHIkM.js → jsx-runtime-Ini3eO9_.js} +18 -18
  314. package/chunk/{jsx-runtime-QRCZ6ZTK.js.map → jsx-runtime-Ini3eO9_.js.map} +1 -1
  315. package/chunk/{jsx-runtime-QRCZ6ZTK.js → jsx-runtime-LqzCS-0D.js} +18 -18
  316. package/chunk/{jsx-runtime-lVLuHIkM.js.map → jsx-runtime-LqzCS-0D.js.map} +1 -1
  317. package/chunk/kk-DGXgY6Uw.js +4 -4
  318. package/chunk/ko-BlUGwGxN.js +4 -4
  319. package/chunk/lo-DT6wxwS1.js +4 -4
  320. package/chunk/lt-CT5-H4ci.js +4 -4
  321. package/chunk/lv-CBMD1XRp.js +4 -4
  322. package/chunk/{mocks-BN2OnOjp.js → mocks-DGc1byho.js} +10 -9
  323. package/chunk/{mocks-l2e0aaeT.js.map → mocks-DGc1byho.js.map} +1 -1
  324. package/chunk/{mocks-l2e0aaeT.js → mocks-RU9BGNOn.js} +9 -8
  325. package/chunk/{mocks-BN2OnOjp.js.map → mocks-RU9BGNOn.js.map} +1 -1
  326. package/chunk/ms-DuxNeOgk.js +4 -4
  327. package/chunk/nl-BE-D028qM7-.js +4 -4
  328. package/chunk/nl-DEuaat_s.js +4 -4
  329. package/chunk/no-CjeRjD1D.js +4 -4
  330. package/chunk/{options-BK6Zk2Oe.js → options-pBCAJBwS.js} +8 -7
  331. package/chunk/options-pBCAJBwS.js.map +1 -0
  332. package/chunk/pl-X0qJw7IS.js +4 -4
  333. package/chunk/{programThemeGetters-4Wf-YSPx.js → programThemeGetters-C9Sw0RZq.js} +45 -45
  334. package/chunk/{programThemeGetters-4Wf-YSPx.js.map → programThemeGetters-C9Sw0RZq.js.map} +1 -1
  335. package/chunk/programThemeGetters-uLsgGat1.js +153 -0
  336. package/chunk/{programThemeGetters-DECHMs91.js.map → programThemeGetters-uLsgGat1.js.map} +1 -1
  337. package/chunk/pt-BR-C6XmLn3o.js +4 -4
  338. package/chunk/pt-o7v4iOVx.js +4 -4
  339. package/chunk/{refs-B8CaE8yL.js → refs-CGvEbCaw.js} +5 -5
  340. package/chunk/{refs-6KTRrw-F.js.map → refs-CGvEbCaw.js.map} +1 -1
  341. package/chunk/{refs-6KTRrw-F.js → refs-CI3K5ndt.js} +5 -5
  342. package/chunk/{refs-B8CaE8yL.js.map → refs-CI3K5ndt.js.map} +1 -1
  343. package/chunk/ro-C74ZR3HS.js +4 -4
  344. package/chunk/ru-BA9P3RVu.js +4 -4
  345. package/chunk/sk-DmyizV49.js +4 -4
  346. package/chunk/sl-Cxm3YoWE.js +4 -4
  347. package/chunk/sr-gOtgEOlP.js +4 -4
  348. package/chunk/stepComponentHelpers-BdqtwfRd.js +133 -0
  349. package/chunk/stepComponentHelpers-BdqtwfRd.js.map +1 -0
  350. package/chunk/stepComponentHelpers-DIHMDrmF.js +129 -0
  351. package/chunk/stepComponentHelpers-DIHMDrmF.js.map +1 -0
  352. package/chunk/strings-DWLVdUcm.js +4 -4
  353. package/chunk/sv-DnCUWo1-.js +4 -4
  354. package/chunk/sw-BY7XXvUU.js +4 -4
  355. package/chunk/ta-CVL0b6Hh.js +4 -4
  356. package/chunk/th-CyU0RW3x.js +4 -4
  357. package/chunk/tl-BfgQ0irB.js +4 -4
  358. package/chunk/tr-BPg_L4bY.js +4 -4
  359. package/chunk/uk-CNaioa7V.js +4 -4
  360. package/chunk/ur-Ht1Mcpm0.js +4 -4
  361. package/chunk/useCollectFieldsEndpoint-BsX_IHLN.js +62 -0
  362. package/chunk/useCollectFieldsEndpoint-BsX_IHLN.js.map +1 -0
  363. package/chunk/useCollectFieldsEndpoint-D7OQBDpX.js +66 -0
  364. package/chunk/useCollectFieldsEndpoint-D7OQBDpX.js.map +1 -0
  365. package/chunk/{useMetrics-CiB8jnkE.js → useMetrics-BrHWTzbP.js} +19 -19
  366. package/chunk/{useMetrics-iqbs0R1u.js.map → useMetrics-BrHWTzbP.js.map} +1 -1
  367. package/chunk/{useMetrics-iqbs0R1u.js → useMetrics-O5xTFm6y.js} +19 -19
  368. package/chunk/{useMetrics-CiB8jnkE.js.map → useMetrics-O5xTFm6y.js.map} +1 -1
  369. package/chunk/vi-sI1BYLXG.js +4 -4
  370. package/chunk/zh-DNG4VB8r.js +4 -4
  371. package/chunk/zh-HK-5Y3ROXEm.js +4 -4
  372. package/chunk/zu-DNMG8Idu.js +4 -4
  373. package/package.json +1 -1
  374. package/sheerid-install.css +4 -4
  375. package/sheerid-install.js +5 -5
  376. package/sheerid-install.js.map +1 -1
  377. package/sheerid.css +4 -4
  378. package/sheerid.js +284 -280
  379. package/sheerid.js.map +1 -1
  380. package/chunk/ApiUrls-CHE6ck1K.js.map +0 -1
  381. package/chunk/ApiUrls-bBmJ3tKE.js +0 -40
  382. package/chunk/ApiUrls-bBmJ3tKE.js.map +0 -1
  383. package/chunk/CaptchaComponent-CaHSH2GC.js.map +0 -1
  384. package/chunk/CaptchaComponent-DD6kFSw9.js.map +0 -1
  385. package/chunk/CountryComponentWrapper-CEbjr-D-.js +0 -78
  386. package/chunk/CountryComponentWrapper-CEbjr-D-.js.map +0 -1
  387. package/chunk/CountryComponentWrapper-Df9x54iO.js +0 -74
  388. package/chunk/CountryComponentWrapper-Df9x54iO.js.map +0 -1
  389. package/chunk/FormFieldLayout-BPBIL09f.js.map +0 -1
  390. package/chunk/FormFieldLayout-CuxYu2-h.js.map +0 -1
  391. package/chunk/FormFooterComponent-B_Wh4HXO.js.map +0 -1
  392. package/chunk/FormSelectChoice-cr9QsYX9.js.map +0 -1
  393. package/chunk/FormSelectChoice-qC0WYy1y.js.map +0 -1
  394. package/chunk/PersonalInfoStepSubmitButton-C7QmpcVd.js.map +0 -1
  395. package/chunk/PersonalInfoStepSubmitButton-D55ut5Yp.js.map +0 -1
  396. package/chunk/StatusComponent-AEKNerJR.js.map +0 -1
  397. package/chunk/StatusComponent-DFtcHMpS.js.map +0 -1
  398. package/chunk/StepActiveMilitaryPersonalInfoComponent-AJL4fROB.js +0 -179
  399. package/chunk/StepActiveMilitaryPersonalInfoComponent-AJL4fROB.js.map +0 -1
  400. package/chunk/StepActiveMilitaryPersonalInfoComponent-Blc8C61_.js +0 -183
  401. package/chunk/StepActiveMilitaryPersonalInfoComponent-Blc8C61_.js.map +0 -1
  402. package/chunk/StepAgePersonalInfo-BHWaDlVH.js +0 -170
  403. package/chunk/StepCollectMilitaryStatusComponent-CYQ-3N3X.js +0 -13
  404. package/chunk/StepCollectMilitaryStatusComponent-DxU3lmaC.js +0 -9
  405. package/chunk/StepCollectPersonalInfo-CdPFtWnn.js +0 -358
  406. package/chunk/StepCollectPersonalInfo-CdPFtWnn.js.map +0 -1
  407. package/chunk/StepCollectPersonalInfo-CdkTtRFu.js +0 -362
  408. package/chunk/StepCollectPersonalInfo-CdkTtRFu.js.map +0 -1
  409. package/chunk/StepFirstResponderPersonalInfo-C9AchvP4.js +0 -172
  410. package/chunk/StepFirstResponderPersonalInfo-C9AchvP4.js.map +0 -1
  411. package/chunk/StepFirstResponderPersonalInfo-CR6tqqbj.js +0 -176
  412. package/chunk/StepFirstResponderPersonalInfo-CR6tqqbj.js.map +0 -1
  413. package/chunk/StepIDCheckLoop-C0g-rLtR.js +0 -24
  414. package/chunk/StepInactiveMilitaryPersonalInfoComponent-BA-Z6yOh.js +0 -241
  415. package/chunk/StepInactiveMilitaryPersonalInfoComponent-BA-Z6yOh.js.map +0 -1
  416. package/chunk/StepInactiveMilitaryPersonalInfoComponent-CEAoUlPI.js +0 -237
  417. package/chunk/StepInactiveMilitaryPersonalInfoComponent-CEAoUlPI.js.map +0 -1
  418. package/chunk/StepLicensedProfessionalPersonalInfo-BDOe8tXK.js +0 -190
  419. package/chunk/StepLicensedProfessionalPersonalInfo-BDOe8tXK.js.map +0 -1
  420. package/chunk/StepLicensedProfessionalPersonalInfo-CvHsH0eA.js +0 -186
  421. package/chunk/StepLicensedProfessionalPersonalInfo-CvHsH0eA.js.map +0 -1
  422. package/chunk/StepLowIncomePersonalInfo-Dy3cf7Vq.js +0 -223
  423. package/chunk/StepLowIncomePersonalInfo-Dy3cf7Vq.js.map +0 -1
  424. package/chunk/StepLowIncomePersonalInfo-Xn7Si16w.js +0 -227
  425. package/chunk/StepLowIncomePersonalInfo-Xn7Si16w.js.map +0 -1
  426. package/chunk/StepMedicalProfessionalPersonalInfo-C4RpaXrw.js +0 -207
  427. package/chunk/StepMedicalProfessionalPersonalInfo-C4RpaXrw.js.map +0 -1
  428. package/chunk/StepMedicalProfessionalPersonalInfo-Cdjst53o.js +0 -203
  429. package/chunk/StepMedicalProfessionalPersonalInfo-Cdjst53o.js.map +0 -1
  430. package/chunk/StepMemberPersonalInfo-JVdhDDsO.js +0 -157
  431. package/chunk/StepMemberPersonalInfo-oxD7cpuH.js +0 -153
  432. package/chunk/StepMoverPersonalInfo-DQ6omvFs.js +0 -140
  433. package/chunk/StepMoverPersonalInfo-DoRQ7YwV.js +0 -144
  434. package/chunk/StepOverrideComponent-BScdpQsD.js.map +0 -1
  435. package/chunk/StepOverrideComponent-Bk4iLCjb.js.map +0 -1
  436. package/chunk/StepTeacherPersonalInfo-BzO0_kSV.js +0 -150
  437. package/chunk/StepTeacherPersonalInfo-D5JC_By3.js +0 -154
  438. package/chunk/TestingRouteOverrides-BeBP6XXB.js +0 -77
  439. package/chunk/VerificationApiUtils-EYLI_y22.js +0 -25
  440. package/chunk/VerificationApiUtils-EYLI_y22.js.map +0 -1
  441. package/chunk/VerificationApiUtils-PcnM2IQD.js +0 -21
  442. package/chunk/VerificationApiUtils-PcnM2IQD.js.map +0 -1
  443. package/chunk/countryUtils-Bg9KdIbF.js +0 -12
  444. package/chunk/empties-COfIPxJ5.js.map +0 -1
  445. package/chunk/empties-DctbDY5s.js.map +0 -1
  446. package/chunk/hooks-DLtMDttz.js.map +0 -1
  447. package/chunk/hooks-PN48cX8E.js.map +0 -1
  448. package/chunk/intl-TN1Dianl.js.map +0 -1
  449. package/chunk/militaryStepHelpers-CF0fNRKQ.js +0 -26
  450. package/chunk/militaryStepHelpers-CF0fNRKQ.js.map +0 -1
  451. package/chunk/militaryStepHelpers-W31scSUE.js +0 -22
  452. package/chunk/militaryStepHelpers-W31scSUE.js.map +0 -1
  453. package/chunk/options-BK6Zk2Oe.js.map +0 -1
  454. package/chunk/programThemeGetters-DECHMs91.js +0 -153
  455. package/chunk/stepComponentHelpers-Darhp1Nn.js +0 -170
  456. package/chunk/stepComponentHelpers-Darhp1Nn.js.map +0 -1
  457. package/chunk/stepComponentHelpers-DeWac6nj.js +0 -174
  458. package/chunk/stepComponentHelpers-DeWac6nj.js.map +0 -1
  459. package/chunk/useCollectFieldsEndpoint-BToJZbHd.js +0 -37
  460. package/chunk/useCollectFieldsEndpoint-BToJZbHd.js.map +0 -1
  461. package/chunk/useCollectFieldsEndpoint-CqUxwQWc.js +0 -41
  462. package/chunk/useCollectFieldsEndpoint-CqUxwQWc.js.map +0 -1
@@ -1,153 +0,0 @@
1
-
2
- /**
3
- * WARNING: This file is intended to be used within MySheerID.
4
- * This file is not intended for use in other contexts and there are no guarantees about its behavior outside of MySheerID.
5
- */
6
- /**
7
- * VERSION: 2.275.0
8
- * BUILD_TIMESTAMP: 1787352276442
9
- * BUILD_DATE: Fri Aug 21 2026 22:44:36 GMT+0000 (Coordinated Universal Time)
10
- * BUILD_COMMIT: 30913cd7a2f4f6324e4692d7ed7cde8020560774
11
- */
12
- import { Ht as e, Mt as t, O as n, Rt as r, Wt as i, d as a, s as o, u as s } from "./intl-TN1Dianl.js";
13
- //#region src/components/StepLowIncomePersonalInfo/lowIncomeTypes.ts
14
- var c = (e, t) => t.every((t) => Object.prototype.hasOwnProperty.call(e, t));
15
- function l(e) {
16
- return c(e, [
17
- "statuses",
18
- "birthDate",
19
- "postalCode",
20
- "firstName",
21
- "lastName",
22
- "countryChoice",
23
- "localeChoice",
24
- "email"
25
- ]);
26
- }
27
- //#endregion
28
- //#region src/lib/ProgramTheme/programThemeGetters.ts
29
- var u = {
30
- enabled: !1,
31
- required: !1,
32
- message: ""
33
- }, d = Object.freeze({
34
- enabled: !1,
35
- keys: [],
36
- requiredKeys: []
37
- }), f = (t) => {
38
- let r = n(d);
39
- try {
40
- e(() => t.config.customMetadata.enabled) && (r = {
41
- ...r,
42
- ...t.config.customMetadata
43
- });
44
- } catch {
45
- i.warn("No custom metadata provided by the server.");
46
- }
47
- return o().customMetadata && (r = {
48
- ...r,
49
- ...o().customMetadata
50
- }), r;
51
- }, p = (e) => {
52
- let t = { ...u };
53
- try {
54
- e.config.marketConsent && (t = e.config.marketConsent);
55
- } catch {
56
- i.warn("Server did not provided a market consent config. Default will be used");
57
- }
58
- return o().marketConsent && (t = o().marketConsent), t;
59
- }, m = (e) => !!e?.captchaEnabled, h = (e) => {
60
- let t;
61
- try {
62
- t = e.intl.messages, t.step?.personalInfo?.howDoesVerifyingWorkDetails && (t.step.personalInfo.howDoesVerifyingWorkDetails = t.step.personalInfo.howDoesVerifyingWorkDetails.replace(/(?<!\{)\{companyName\}(?!\})/g, "{{companyName}}")), t.step?.pending?.subtitle && (t.step.pending.subtitle = t.step.pending.subtitle.replace(/(?<!\{)\{maxReviewTime\}(?!\})/g, "{{maxReviewTime}}")), t.step?.pending?.turnaroundTime && (t.step.pending.turnaroundTime = t.step.pending.turnaroundTime.replace("{estReviewTime}", "{{estimatedReviewTime}}"), t.step.pending.turnaroundTime = t.step.pending.turnaroundTime.replace(/(?<!\{)\{maxReviewTime\}(?!\})/g, "{{maxReviewTime}}")), t.step?.docUpload?.reviewTime && (t.step.docUpload.reviewTime = t.step.docUpload.reviewTime.replace(/(?<!\{)\{estimatedWaitTime\}(?!\})/g, "{{estimatedReviewTime}}"));
63
- } catch {
64
- i.error("Unable to get theme messages");
65
- }
66
- return t;
67
- }, g = (e) => {
68
- let t = o();
69
- return t.hasOwnProperty("logoUrl") ? t.logoUrl : e?.themeChoices?.logoUrl;
70
- }, _ = (e) => o().privacyPolicyUrl || e?.privacyPolicyUrl, v = (e) => {
71
- let t = ["en-US"], n = [];
72
- try {
73
- n = e.config.locales;
74
- } catch {
75
- i.warn("Unable to get configured locales from programTheme");
76
- }
77
- let r = y(o());
78
- return t = [...n, ...r], a(t);
79
- }, y = (e) => e && e.messagesWithLocale ? Object.keys(e.messagesWithLocale) : [], b = (e) => {
80
- try {
81
- if (e && e.config && e.config.countries) return e.config.countries;
82
- if (e.intl.messages.step.personalInfo.countries) {
83
- let t = [];
84
- for (let n in e.intl.messages.step.personalInfo.countries) t.push(n);
85
- return t;
86
- }
87
- } catch {
88
- i.warn("Unable to get configured countries");
89
- }
90
- return ["US"];
91
- }, x = (e) => {
92
- try {
93
- if (e && e.config && e.config.states && e.config.states.length > 0) return e.config.states;
94
- } catch {
95
- i.warn("Unable to get configured states");
96
- }
97
- return Object.keys(t);
98
- }, S = o(), C = () => {
99
- let e = "urlFaq";
100
- return S.hasOwnProperty(e) || i.error(`Can't find an option for '${e}'`, "Option not found"), S[e];
101
- }, w = (e, t, n, i, a) => {
102
- let o;
103
- try {
104
- o = e.config.customFaqLink;
105
- } catch {
106
- o = "";
107
- }
108
- let s = a && !r(a.currentStep) ? new URLSearchParams({
109
- verificationId: a.verificationId,
110
- country: a.country
111
- }) : void 0, c = n ? `${C()}/${i}/${n}/help-center` : `${C()}/${i}/help-center`, l = s ? `${c}?${s}` : c;
112
- return !o || o === "" ? l : o;
113
- }, T = (e, t) => {
114
- let n = "";
115
- try {
116
- n = e.config?.orgSearchCountryTags?.[t]?.join(",") || "";
117
- } catch (e) {
118
- i.error(e);
119
- }
120
- return n;
121
- }, E = (e) => e ? e.name : "";
122
- function D(e) {
123
- return Object.prototype.hasOwnProperty.call(e, "organization");
124
- }
125
- var O = (e, t, n) => {
126
- try {
127
- if (l(t)) {
128
- let { statuses: r } = t, i = n?.config?.orgSearchAffiliationOverrides[r[0]];
129
- return Object.keys(i).sort(s).forEach((t) => {
130
- e.set(t, i[t]?.join(","));
131
- }), e;
132
- }
133
- } catch (e) {
134
- i.error(e);
135
- }
136
- }, k = (t, n) => {
137
- try {
138
- let r = n?.config?.orgSearchUrl, a = e(() => t?.countryChoice?.value);
139
- if (!r) return i.error("Expected an org search URL"), "";
140
- let o = T(n, a), { origin: s, pathname: c, search: l } = new URL(r), u = new URLSearchParams(l);
141
- if (D(t)) {
142
- let e = E(t.organization);
143
- e && u.set("name", e);
144
- }
145
- a && u.set("country", a), o && u.set("tags", o);
146
- let d = O(u, t, n) || u;
147
- return d.sort(), `${s}${c}?${d.toString()}`;
148
- } catch (e) {
149
- i.error(e);
150
- }
151
- };
152
- //#endregion
153
- export { g as a, k as c, m as d, l as f, w as i, _ as l, b as n, p as o, x as r, f as s, v as t, h as u };
@@ -1,170 +0,0 @@
1
-
2
- /**
3
- * VERSION: 2.275.0
4
- * BUILD_TIMESTAMP: 1787352272226
5
- * BUILD_DATE: Fri Aug 21 2026 22:44:32 GMT+0000 (Coordinated Universal Time)
6
- * BUILD_COMMIT: 30913cd7a2f4f6324e4692d7ed7cde8020560774
7
- */
8
- import { Ct as e, Dt as t, Et as n, R as r, Tt as i, Wt as a, at as o, c as s, d as c, g as l, n as u } from "./options-BK6Zk2Oe.js";
9
- import { n as d } from "./empties-COfIPxJ5.js";
10
- import { n as f, r as p, t as m } from "./programThemeGetters-4Wf-YSPx.js";
11
- import { c as h, s as g, u as _ } from "./hooks-PN48cX8E.js";
12
- import { n as v, r as y } from "./refs-B8CaE8yL.js";
13
- //#region src/lib/utils/browser/inputHelpers.ts
14
- var b = (e) => {
15
- let t = v(e);
16
- if (t) try {
17
- t.focus();
18
- } catch {
19
- a.error(`The ref '${t}' could not be focused. Is the ref an HTMLInputElement or HTMLButtonElement?`, "ref error");
20
- }
21
- else a.error(`A ref for fieldId '${e}' could not be found. Has the ref been registered using setRef()?`, "ref error");
22
- };
23
- //#endregion
24
- //#region src/lib/utils/getSafe.ts
25
- function x(e, t) {
26
- try {
27
- return e();
28
- } catch {
29
- return t;
30
- }
31
- }
32
- //#endregion
33
- //#region src/lib/utils/stepComponentHelpers/stepComponentHelpers.ts
34
- var S = (e, t) => {
35
- let n = t.viewModel, r = s(n, (t) => {
36
- t.organization = e ? {
37
- id: e.id,
38
- idExtended: e.idExtended,
39
- name: e.name,
40
- city: e.city,
41
- state: e.state,
42
- source: e.source
43
- } : d.organization, n.organization && n.organization.source !== void 0 && (t.organization.source = n.organization.source);
44
- });
45
- t.updateViewModel(r);
46
- }, C = (e) => {
47
- let t = e.viewModel, n = o(), r = s(t, (e) => {
48
- Object.keys(t).forEach((t) => {
49
- n.has(t) && (e[t] = n.get(t));
50
- });
51
- });
52
- e.updateViewModel(r);
53
- }, w = (e, t) => {
54
- t.updateFieldValidationErrors(e);
55
- }, T = (e, t, n) => {
56
- let { fieldValidationErrors: r } = n;
57
- w(s(r, (r) => {
58
- r[e] && (r[e] = _(e, t, n.formValidationOptions));
59
- }), n);
60
- }, E = (e, t) => x(() => t.length === 1) && x(() => t[0]) === "US" || x(() => e.value === "US") || x(() => e.value === void 0), D = (e, t, n) => t ? e.formatHTMLMessage({
61
- id: t,
62
- defaultMessage: n ? n[t] : "status"
63
- }) : "", O = (e, t = void 0) => {
64
- let n = [];
65
- return t && t.forEach((t) => {
66
- n.push({
67
- value: t,
68
- label: D(e, t, i)
69
- });
70
- }), n;
71
- }, k = (e, t) => {
72
- let r = [];
73
- return t.forEach((t) => {
74
- r.push({
75
- value: t,
76
- label: D(e, t, n)
77
- });
78
- }), r;
79
- }, A = (t, n) => {
80
- let r = [];
81
- return n.forEach((n) => {
82
- r.push({
83
- value: n,
84
- label: D(t, n, e)
85
- });
86
- }), r;
87
- }, j = (e, t) => {
88
- let n = [];
89
- return t.forEach((t) => {
90
- n.push({
91
- value: t,
92
- label: D(e, t, null)
93
- });
94
- }), n;
95
- }, M = (e) => ({
96
- value: e.id,
97
- label: e.name,
98
- country: e.country
99
- }), N = new Map([["GB", [
100
- "ACTIVE_DUTY",
101
- "VETERAN",
102
- "RESERVIST"
103
- ]]]), P = (e, n) => {
104
- let r = e.verificationResponse.availableStatuses || e.previousVerificationResponse && e.previousVerificationResponse.availableStatuses, i = [], a = e.viewModel && e.viewModel.countryChoice && e.viewModel.countryChoice.value, o = a && N.get(a), s = o ? r.filter((e) => o.includes(e)) : r;
105
- return s ? (s.forEach((e) => {
106
- i.push({
107
- value: e,
108
- label: D(n, e, t)
109
- });
110
- }), i) : null;
111
- }, F = () => {
112
- let e = y(), t = [];
113
- return e.map((e) => t.push(e.fieldId)), t;
114
- }, I = (e) => e === "birthDate" || e === "birthDateDay" ? "birthDateYear" : e, L = (e, t) => {
115
- let n;
116
- return e.reverse().forEach((e) => {
117
- t[e] && (n = e);
118
- }), I(n);
119
- }, R = (e) => {
120
- let t = v("submitButton");
121
- e.key === "Enter" && t && t.click();
122
- }, z = (e, t, n, r) => {
123
- let i = g(e, t.formValidationOptions);
124
- if (!h(i)) a.info(`${n} submitting form`), t.submitStep(n, e, t.verificationResponse), r && r();
125
- else {
126
- let e = L(F(), i);
127
- l({
128
- eventName: c.INVALID_FORM_SUBMIT,
129
- params: { fieldValidationErrors: JSON.stringify(i) }
130
- }), w(i, t), b(e);
131
- }
132
- }, B = (e, t) => f(e).map((e) => ({
133
- value: e,
134
- label: t.formatHTMLMessage({
135
- id: `countries.${e}`,
136
- defaultMessage: e
137
- })
138
- })), V = (e, t, n) => B(e, t).sort((e, t) => Intl.Collator(n).compare(e.label, t.label)), H = (e, t, n) => e.map((e) => ({
139
- value: e,
140
- label: t.formatHTMLMessage({
141
- id: `countries.${e}`,
142
- defaultMessage: e
143
- })
144
- })).sort((e, t) => Intl.Collator(n).compare(e.label, t.label)), U = (e, t) => p(e).map((e) => ({
145
- value: e,
146
- label: t.formatHTMLMessage({
147
- id: `states.${e}`,
148
- defaultMessage: e
149
- })
150
- })), W = (e, t) => s(e, (n) => {
151
- r.forEach((r) => {
152
- t.some((e) => e.key === r) ? n[r] = e[r] === void 0 ? "" : e[r] : delete n[r];
153
- });
154
- }), G = (e, t) => m(e).map((e) => ({
155
- value: e,
156
- label: t.formatHTMLMessage({
157
- id: `locales.${e}`,
158
- defaultMessage: e
159
- })
160
- })), K = (e) => e.length > 0 ? e[0] : {
161
- value: "US",
162
- label: "United States"
163
- }, q = (e, t, n) => s(e, (e) => {
164
- e[t] = n;
165
- }), J = (e, t, n) => {
166
- let r = "https://support.sheerid.com", { host: i } = new URL(window.location.href);
167
- return (i.includes("preview") || i.includes("localhost")) && (r = "https://support-preview.sheerid.net"), `${r}/${e}/${t}/${n}/remember-me/`;
168
- }, Y = (e, t = u()) => t.formFieldConfig.find((t) => t.fieldId === e);
169
- //#endregion
170
- export { T as C, w as S, x as T, C as _, k as a, E as b, j as c, J as d, V as f, M as g, R as h, O as i, K as l, D as m, A as n, P as o, H as p, G as r, U as s, B as t, Y as u, q as v, S as w, z as x, W as y };
@@ -1 +0,0 @@
1
- {"version":3,"file":"stepComponentHelpers-Darhp1Nn.js","names":[],"sources":["../../src/lib/utils/browser/inputHelpers.ts","../../src/lib/utils/getSafe.ts","../../src/lib/utils/stepComponentHelpers/stepComponentHelpers.ts"],"sourcesContent":["import { logger } from \"@jslib/shared/utils/logger\";\n\nimport { type ExtendedFieldId, type FieldId } from \"../../types/types\";\nimport { getRefByFieldId } from \"../../refs/refs\";\n\n/**\n * @private\n */\nexport const setFocus = (fieldId: FieldId | ExtendedFieldId) => {\n const fieldRef = getRefByFieldId(fieldId);\n\n if (fieldRef) {\n try {\n fieldRef.focus();\n } catch (e) {\n logger.error(\n `The ref '${fieldRef}' could not be focused. Is the ref an HTMLInputElement or HTMLButtonElement?`,\n \"ref error\",\n );\n }\n } else {\n logger.error(\n `A ref for fieldId '${fieldId}' could not be found. Has the ref been registered using setRef()?`,\n \"ref error\",\n );\n }\n};\n","/**\n * Avoid \"can't access property of undefined\" errors in a more readable way.\n * @param fn Function that wraps a nested property access\n * @param defaultVal Optional - the value to return if property access failed\n */\n\nexport function getSafe<T>(fn: () => T, defaultVal?: T): T | undefined {\n try {\n return fn();\n } catch (e) {\n return defaultVal;\n }\n}\n","import { produce } from \"immer\";\nimport { type InjectedIntl } from \"react-intl\";\n\nimport { logger } from \"@jslib/shared/utils/logger\";\n\nimport { EventName, recordGaEvent } from \"@/lib/GoogleAnalytics/ga\";\n\nimport {\n type FieldId,\n type FieldValidationErrors,\n type Organization,\n type VerificationService,\n type FieldContent,\n type FieldRef,\n type ExtendedFieldId,\n type WithOrganization,\n type InputSelectOnKeyDown,\n type FormSelectChoice,\n type Country,\n type ProgramTheme,\n type Locale,\n type ViewModel,\n type MilitaryStatusResponse,\n type State,\n type FieldDescription,\n type FirstResponderStatus,\n type MilitaryStatus,\n type MedicalProfessionalStatus,\n type LowIncomeStatus,\n type AllStatuses,\n type RecentMoverStatus,\n type PersonalInfoFieldId,\n type Options,\n} from \"../../types/types\";\nimport {\n type VerificationStepsEnum,\n MilitaryStatusDefaultMessagesEnum,\n FirstResponderStatusDefaultMessagesEnum,\n MedicalProfessionalStatusDefaultMessagesEnum,\n LowIncomeStatusDefaultMessagesEnum,\n type RecentMoverStatusDefaultMessagesEnum,\n} from \"../../types/runtimeTypes\";\nimport { blankOrganization } from \"../../types/empties\";\nimport {\n validateFieldById,\n getFieldValidationErrors,\n isFormErrored,\n} from \"../../validators/validators\";\nimport { setFocus } from \"../browser/inputHelpers\";\nimport { getRefByFieldId, getRefs } from \"../../refs/refs\";\nimport { getSafe } from \"../getSafe\";\nimport {\n getConfiguredCountries,\n getAvailableLocales,\n getConfiguredStates,\n} from \"../../ProgramTheme/programThemeGetters\";\nimport { getQueryParamsFromUrl } from \"../routing/Url\";\nimport { FIELD_IDS } from \"../../../constants\";\nimport { getOptions } from \"../../../options/options\";\n\nexport const updateViewModelOrganization = (\n organization: Organization,\n verificationService: VerificationService,\n) => {\n const viewModel = verificationService.viewModel as WithOrganization;\n const nextState = produce(viewModel, (draft) => {\n draft.organization = organization\n ? {\n id: organization.id,\n idExtended: organization.idExtended,\n name: organization.name,\n city: organization.city,\n state: organization.state,\n source: organization.source,\n }\n : blankOrganization.organization;\n if (viewModel.organization && viewModel.organization.source !== undefined) {\n draft.organization.source = viewModel.organization.source;\n }\n });\n verificationService.updateViewModel(nextState as ViewModel);\n};\n\nexport const populateViewModelFromQueryParams = (verificationService: VerificationService) => {\n const viewModel = verificationService.viewModel as WithOrganization;\n const queryParams = getQueryParamsFromUrl();\n\n const nextState = produce(viewModel, (draft) => {\n Object.keys(viewModel).forEach((key) => {\n if (queryParams.has(key)) {\n draft[key] = queryParams.get(key);\n }\n });\n });\n\n verificationService.updateViewModel(nextState as ViewModel);\n};\n\nexport const updateFieldValidationErrors = (\n fieldValidationErrors: FieldValidationErrors,\n verificationService: VerificationService,\n) => {\n verificationService.updateFieldValidationErrors(fieldValidationErrors);\n};\n\nexport const updateFieldValidationErrorsByFieldId = (\n fieldId: FieldId | ExtendedFieldId,\n value: FieldContent,\n verificationService: VerificationService,\n) => {\n const { fieldValidationErrors } = verificationService;\n const nextState = produce(fieldValidationErrors, (draft) => {\n if (draft[fieldId]) {\n draft[fieldId] = validateFieldById(fieldId, value, verificationService.formValidationOptions);\n }\n });\n updateFieldValidationErrors(nextState, verificationService);\n};\n\nexport const shouldCollectAddressFields = (\n countryChoice: FormSelectChoice<Country, string>,\n countries: Country[],\n): boolean =>\n (getSafe(() => countries.length === 1) && getSafe(() => countries[0]) === \"US\") ||\n getSafe(() => countryChoice.value === \"US\") ||\n getSafe(() => countryChoice.value === undefined);\n\nexport const getStatusLabel = (\n intl: InjectedIntl,\n status:\n | FirstResponderStatus\n | MilitaryStatus\n | MedicalProfessionalStatus\n | LowIncomeStatus\n | RecentMoverStatus\n | AllStatuses\n | undefined,\n defaultMessages:\n | typeof MilitaryStatusDefaultMessagesEnum\n | typeof FirstResponderStatusDefaultMessagesEnum\n | typeof MedicalProfessionalStatusDefaultMessagesEnum\n | typeof LowIncomeStatusDefaultMessagesEnum\n | typeof RecentMoverStatusDefaultMessagesEnum\n | undefined,\n): string => {\n if (!status) {\n return \"\";\n }\n return intl.formatHTMLMessage({\n id: status,\n defaultMessage: defaultMessages ? defaultMessages[status] : \"status\",\n });\n};\n\nexport const getAvailableLowIncomeStatuses = (\n intl: InjectedIntl,\n availableStatusesResponse: LowIncomeStatus[] = undefined,\n) => {\n const availableStatuses: FormSelectChoice[] = [];\n\n if (availableStatusesResponse) {\n availableStatusesResponse.forEach((status) => {\n availableStatuses.push({\n value: status,\n label: getStatusLabel(intl, status, LowIncomeStatusDefaultMessagesEnum),\n });\n });\n }\n return availableStatuses;\n};\n\nexport const getAvailableMedicalStatuses = (\n intl: InjectedIntl,\n availableStatusesResponse: MedicalProfessionalStatus[],\n) => {\n const availableStatuses: FormSelectChoice[] = [];\n\n availableStatusesResponse.forEach((status) => {\n availableStatuses.push({\n value: status,\n label: getStatusLabel(intl, status, MedicalProfessionalStatusDefaultMessagesEnum),\n });\n });\n return availableStatuses;\n};\n\nexport const getAvailableFirstResponderStatuses = (\n intl: InjectedIntl,\n availableStatusesResponse: FirstResponderStatus[],\n): FormSelectChoice[] => {\n const availableStatuses: FormSelectChoice[] = [];\n\n availableStatusesResponse.forEach((status) => {\n availableStatuses.push({\n value: status,\n label: getStatusLabel(intl, status, FirstResponderStatusDefaultMessagesEnum),\n });\n });\n\n return availableStatuses;\n};\n\nexport const getAvailableStatuses = (\n intl: InjectedIntl,\n availableStatusesResponse: AllStatuses[],\n): FormSelectChoice[] => {\n const availableStatuses: FormSelectChoice[] = [];\n\n availableStatusesResponse.forEach((status) => {\n availableStatuses.push({\n value: status,\n label: getStatusLabel(intl, status, null),\n });\n });\n\n return availableStatuses;\n};\n\nexport const orgToOption = (org: Organization) => ({\n value: org.id,\n label: org.name,\n country: org.country,\n});\n\n// The jslib should not be the owner of this mapping,\n// DATA-3164 exists to find another way.\nconst countryStatusAllowList = new Map<Country, MilitaryStatus[]>([\n [\"GB\", [\"ACTIVE_DUTY\", \"VETERAN\", \"RESERVIST\"]],\n]);\n\nexport const getAvailableMilitaryStatuses = (\n verificationService: VerificationService,\n intl: InjectedIntl,\n): FormSelectChoice[] => {\n const availableStatusesFromResponse =\n (verificationService.verificationResponse as MilitaryStatusResponse).availableStatuses ||\n (verificationService.previousVerificationResponse &&\n (verificationService.previousVerificationResponse as MilitaryStatusResponse)\n .availableStatuses);\n const availableStatuses: FormSelectChoice[] = [];\n\n // The country overrides in this function should be updated with DATA-3164\n const country =\n verificationService.viewModel &&\n verificationService.viewModel.countryChoice &&\n verificationService.viewModel.countryChoice.value;\n const countryAllowedStatuses = country && countryStatusAllowList.get(country);\n const availableStatusesForCountry = countryAllowedStatuses\n ? availableStatusesFromResponse.filter((status) => countryAllowedStatuses.includes(status))\n : availableStatusesFromResponse;\n\n if (!availableStatusesForCountry) {\n return null;\n }\n\n availableStatusesForCountry.forEach((status) => {\n availableStatuses.push({\n value: status,\n label: getStatusLabel(intl, status, MilitaryStatusDefaultMessagesEnum),\n });\n });\n return availableStatuses;\n};\n\n/**\n * @private\n */\nexport const getFieldDisplayOrderFromRefs = (): FieldId[] | ExtendedFieldId[] => {\n const refs: FieldRef[] = getRefs();\n const fieldDisplayOrder: FieldId | ExtendedFieldId[] = [];\n\n refs.map((refObject: FieldRef) => fieldDisplayOrder.push(refObject.fieldId));\n\n return fieldDisplayOrder;\n};\n\n/**\n * HD-638 - focus on year, rather than month (which is an open <select> that covers error msg)\n */\nexport const adjustFirstErroredFieldId = (\n firstErroredFieldId: FieldId | ExtendedFieldId,\n): FieldId | ExtendedFieldId => {\n if (firstErroredFieldId === \"birthDate\" || firstErroredFieldId === \"birthDateDay\") {\n return \"birthDateYear\";\n }\n return firstErroredFieldId;\n};\n\n/**\n * @private\n */\nexport const getFirstErroredFieldId = (\n fieldDisplayOrder: FieldId[] | ExtendedFieldId[],\n fieldValidationErrors: FieldValidationErrors,\n): FieldId | ExtendedFieldId => {\n let firstErroredFieldId: FieldId | ExtendedFieldId;\n\n fieldDisplayOrder.reverse().forEach((field) => {\n if (fieldValidationErrors[field]) {\n firstErroredFieldId = field;\n }\n });\n\n return adjustFirstErroredFieldId(firstErroredFieldId);\n};\n\n/**\n * @private\n */\nexport const handleEmailOnKeyDown = (event: React.KeyboardEvent<HTMLInputElement>) => {\n const submitButtonRef: HTMLElement = getRefByFieldId(\"submitButton\");\n if (event.key === \"Enter\" && submitButtonRef) {\n submitButtonRef.click();\n }\n};\n\n/**\n * @deprecated Accessibility standards prevent setting focus without user keyboard interaction\n */\nexport const handleCountryOnKeyDown: InputSelectOnKeyDown = (\n event: React.KeyboardEvent<HTMLInputElement>,\n) => {\n if (event.key === \"Tab\" && !event.shiftKey) {\n event.preventDefault();\n setFocus(\"organization\");\n }\n};\n\n/**\n * @public\n */\nexport const submitForm = (\n viewModel: ViewModel,\n verificationService: VerificationService,\n step: VerificationStepsEnum,\n successCallback?: () => void,\n) => {\n const currentFieldValidationErrors = getFieldValidationErrors(\n viewModel,\n verificationService.formValidationOptions,\n );\n const isFormValid = !isFormErrored(currentFieldValidationErrors);\n\n if (isFormValid) {\n logger.info(`${step} submitting form`);\n verificationService.submitStep(step, viewModel, verificationService.verificationResponse);\n if (successCallback) {\n successCallback();\n }\n } else {\n const fieldDisplayOrder: FieldId[] | ExtendedFieldId[] = getFieldDisplayOrderFromRefs();\n const firstErroredFieldId: FieldId | ExtendedFieldId = getFirstErroredFieldId(\n fieldDisplayOrder,\n currentFieldValidationErrors,\n );\n recordGaEvent({\n eventName: EventName.INVALID_FORM_SUBMIT,\n params: {\n fieldValidationErrors: JSON.stringify(currentFieldValidationErrors),\n },\n });\n updateFieldValidationErrors(currentFieldValidationErrors, verificationService);\n setFocus(firstErroredFieldId);\n }\n};\n\n/**\n * @private\n */\nexport const getAvailableCountryChoices = (\n programTheme: ProgramTheme,\n intl: InjectedIntl,\n): FormSelectChoice<Country, string>[] => {\n const availableCountries: Country[] = getConfiguredCountries(programTheme);\n return availableCountries.map((countryCode) => ({\n value: countryCode,\n label: intl.formatHTMLMessage({\n id: `countries.${countryCode}`,\n defaultMessage: countryCode,\n }),\n }));\n};\n\n/**\n * @private\n */\nexport const getSortedCountryChoices = (\n programTheme: ProgramTheme,\n intl: InjectedIntl,\n locale?: Locale,\n): FormSelectChoice<Country, string>[] => {\n const localeAwareSorter = (a, b) => Intl.Collator(locale).compare(a.label, b.label);\n return getAvailableCountryChoices(programTheme, intl).sort(localeAwareSorter);\n};\n\n/**\n * @private\n */\nexport const getSortedIdCheckCountryChoices = (\n countries: Country[],\n intl: InjectedIntl,\n locale?: Locale,\n): FormSelectChoice<Country, string>[] => {\n const localeAwareSorter = (a, b) => Intl.Collator(locale).compare(a.label, b.label);\n return countries\n .map((countryCode) => ({\n value: countryCode,\n label: intl.formatHTMLMessage({\n id: `countries.${countryCode}`,\n defaultMessage: countryCode,\n }),\n }))\n .sort(localeAwareSorter);\n};\n\nexport const getAvailableStateChoices = (\n programTheme: ProgramTheme,\n intl: InjectedIntl,\n): FormSelectChoice<State, string>[] => {\n const availableStates: State[] = getConfiguredStates(programTheme);\n return availableStates.map((stateCode) => ({\n value: stateCode,\n label: intl.formatHTMLMessage({\n id: `states.${stateCode}`,\n defaultMessage: stateCode,\n }),\n }));\n};\n\n/**\n * @deprecated Not used anywhere and performs a noop.\n */\nexport const produceDraftViewModelWithRequiredFields = <T extends ViewModel>(\n previousModel: T,\n newRequiredFields?: FieldDescription[],\n conditionalRequiredFieldKeys?: (keyof T)[],\n) => {\n logger.info(\n \"produceDraftViewModelWithRequiredFields received. This method is now deprecated and performs a noop, returning previousViewModel\",\n {\n previousModel,\n newRequiredFields,\n conditionalRequiredFieldKeys,\n },\n );\n\n return previousModel;\n};\n\nexport const produceDraftViewModelWithAllRequiredFields = <T extends ViewModel>(\n viewModel: T,\n newRequiredFields: FieldDescription[],\n) =>\n produce(viewModel, (draft: T) => {\n FIELD_IDS.forEach((requiredFieldKey) => {\n if (newRequiredFields.some((field) => field.key === requiredFieldKey)) {\n (draft[requiredFieldKey] as any) =\n viewModel[requiredFieldKey] !== undefined ? viewModel[requiredFieldKey] : \"\";\n } else {\n delete draft[requiredFieldKey];\n }\n });\n });\n\n/**\n * @private\n */\nexport const getAvailableLocaleChoices = (\n programTheme: ProgramTheme,\n intl: InjectedIntl,\n): FormSelectChoice<Locale, string>[] => {\n const availableLocales: Locale[] = getAvailableLocales(programTheme);\n return availableLocales.map((locale) => ({\n value: locale,\n label: intl.formatHTMLMessage({\n id: `locales.${locale}`,\n defaultMessage: locale,\n }),\n }));\n};\n\n/**\n * @private\n */\nexport const getDefaultCountryChoice = (\n countryChoices: FormSelectChoice<Country, string>[],\n): FormSelectChoice<Country, string> => {\n if (countryChoices.length > 0) {\n return countryChoices[0];\n }\n return { value: \"US\", label: \"United States\" };\n};\n\n/**\n * @private\n */\nexport const produceDraftViewModel = <T extends ViewModel>(\n previousModel: T,\n key: keyof T,\n value: any,\n) =>\n produce(previousModel, (draft: T) => {\n (draft[key] as any) = value;\n });\n\n/**\n * @private\n */\nexport const getRememberMeRedirectDestination = (\n locale: Locale,\n programId: string,\n verificationId: string,\n): string => {\n const supportBasePreviewUrl = \"https://support-preview.sheerid.net\";\n const supportBaseProdUrl = \"https://support.sheerid.com\";\n let baseUrl = supportBaseProdUrl;\n const { host } = new URL(window.location.href);\n\n if (host.includes(\"preview\") || host.includes(\"localhost\")) {\n baseUrl = supportBasePreviewUrl;\n }\n\n return `${baseUrl}/${locale}/${programId}/${verificationId}/remember-me/`;\n};\n\nexport const getFieldConfigByFieldId = (\n fieldId: PersonalInfoFieldId,\n options: Options = getOptions(),\n) => {\n const fieldConfig = options.formFieldConfig;\n return fieldConfig.find((option) => option.fieldId === fieldId);\n};\n"],"mappings":";;;;;;AAQA,IAAa,KAAY,MAAuC;CAC9D,IAAM,IAAW,EAAgB,CAAO;CAExC,IAAI,GACF,IAAI;EACF,EAAS,MAAM;CACjB,QAAY;EACV,EAAO,MACL,YAAY,EAAS,+EACrB,WACF;CACF;MAEA,EAAO,MACL,sBAAsB,EAAQ,oEAC9B,WACF;AAEJ;;;ACpBA,SAAgB,EAAW,GAAa,GAA+B;CACrE,IAAI;EACF,OAAO,EAAG;CACZ,QAAY;EACV,OAAO;CACT;AACF;;;ACgDA,IAAa,KACX,GACA,MACG;CACH,IAAM,IAAY,EAAoB,WAChC,IAAY,EAAQ,IAAY,MAAU;EAW9C,AAVA,EAAM,eAAe,IACjB;GACE,IAAI,EAAa;GACjB,YAAY,EAAa;GACzB,MAAM,EAAa;GACnB,MAAM,EAAa;GACnB,OAAO,EAAa;GACpB,QAAQ,EAAa;EACvB,IACA,EAAkB,cAClB,EAAU,gBAAgB,EAAU,aAAa,WAAW,KAAA,MAC9D,EAAM,aAAa,SAAS,EAAU,aAAa;CAEvD,CAAC;CACD,EAAoB,gBAAgB,CAAsB;AAC5D,GAEa,KAAoC,MAA6C;CAC5F,IAAM,IAAY,EAAoB,WAChC,IAAc,EAAsB,GAEpC,IAAY,EAAQ,IAAY,MAAU;EAC9C,OAAO,KAAK,CAAS,EAAE,SAAS,MAAQ;GACtC,AAAI,EAAY,IAAI,CAAG,MACrB,EAAM,KAAO,EAAY,IAAI,CAAG;EAEpC,CAAC;CACH,CAAC;CAED,EAAoB,gBAAgB,CAAsB;AAC5D,GAEa,KACX,GACA,MACG;CACH,EAAoB,4BAA4B,CAAqB;AACvE,GAEa,KACX,GACA,GACA,MACG;CACH,IAAM,EAAE,6BAA0B;CAMlC,EALkB,EAAQ,IAAwB,MAAU;EAC1D,AAAI,EAAM,OACR,EAAM,KAAW,EAAkB,GAA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,EAAO,KAAe;AACxB,CAAC,GAKU,KACX,GACA,GACA,MACW;CACX,IAEI,IAAU,+BACR,EAAE,YAAS,IAAI,IAAI,OAAO,SAAS,IAAI;CAM7C,QAJI,EAAK,SAAS,SAAS,KAAK,EAAK,SAAS,WAAW,OACvD,IAAU,wCAGL,GAAG,EAAQ,GAAG,EAAO,GAAG,EAAU,GAAG,EAAe;AAC7D,GAEa,KACX,GACA,IAAmB,EAAW,MAEV,EAAQ,gBACT,MAAM,MAAW,EAAO,YAAY,CAAO"}
@@ -1,174 +0,0 @@
1
-
2
- /**
3
- * WARNING: This file is intended to be used within MySheerID.
4
- * This file is not intended for use in other contexts and there are no guarantees about its behavior outside of MySheerID.
5
- */
6
- /**
7
- * VERSION: 2.275.0
8
- * BUILD_TIMESTAMP: 1787352276442
9
- * BUILD_DATE: Fri Aug 21 2026 22:44:36 GMT+0000 (Coordinated Universal Time)
10
- * BUILD_COMMIT: 30913cd7a2f4f6324e4692d7ed7cde8020560774
11
- */
12
- import { B as e, Ct as t, Tt as n, Wt as r, g as i, p as a, s as o, st as s, wt as c, x as l, xt as u } from "./intl-TN1Dianl.js";
13
- import { n as d } from "./empties-DctbDY5s.js";
14
- import { n as f, r as p, t as m } from "./programThemeGetters-DECHMs91.js";
15
- import { c as h, s as g, u as _ } from "./hooks-DLtMDttz.js";
16
- import { n as v, r as y } from "./refs-6KTRrw-F.js";
17
- //#region src/lib/utils/browser/inputHelpers.ts
18
- var b = (e) => {
19
- let t = v(e);
20
- if (t) try {
21
- t.focus();
22
- } catch {
23
- r.error(`The ref '${t}' could not be focused. Is the ref an HTMLInputElement or HTMLButtonElement?`, "ref error");
24
- }
25
- else r.error(`A ref for fieldId '${e}' could not be found. Has the ref been registered using setRef()?`, "ref error");
26
- };
27
- //#endregion
28
- //#region src/lib/utils/getSafe.ts
29
- function x(e, t) {
30
- try {
31
- return e();
32
- } catch {
33
- return t;
34
- }
35
- }
36
- //#endregion
37
- //#region src/lib/utils/stepComponentHelpers/stepComponentHelpers.ts
38
- var S = (e, t) => {
39
- let n = t.viewModel, r = a(n, (t) => {
40
- t.organization = e ? {
41
- id: e.id,
42
- idExtended: e.idExtended,
43
- name: e.name,
44
- city: e.city,
45
- state: e.state,
46
- source: e.source
47
- } : d.organization, n.organization && n.organization.source !== void 0 && (t.organization.source = n.organization.source);
48
- });
49
- t.updateViewModel(r);
50
- }, C = (e) => {
51
- let t = e.viewModel, n = s(), r = a(t, (e) => {
52
- Object.keys(t).forEach((t) => {
53
- n.has(t) && (e[t] = n.get(t));
54
- });
55
- });
56
- e.updateViewModel(r);
57
- }, w = (e, t) => {
58
- t.updateFieldValidationErrors(e);
59
- }, T = (e, t, n) => {
60
- let { fieldValidationErrors: r } = n;
61
- w(a(r, (r) => {
62
- r[e] && (r[e] = _(e, t, n.formValidationOptions));
63
- }), n);
64
- }, E = (e, t) => x(() => t.length === 1) && x(() => t[0]) === "US" || x(() => e.value === "US") || x(() => e.value === void 0), D = (e, t, n) => t ? e.formatHTMLMessage({
65
- id: t,
66
- defaultMessage: n ? n[t] : "status"
67
- }) : "", O = (e, n = void 0) => {
68
- let r = [];
69
- return n && n.forEach((n) => {
70
- r.push({
71
- value: n,
72
- label: D(e, n, t)
73
- });
74
- }), r;
75
- }, k = (e, t) => {
76
- let n = [];
77
- return t.forEach((t) => {
78
- n.push({
79
- value: t,
80
- label: D(e, t, c)
81
- });
82
- }), n;
83
- }, A = (e, t) => {
84
- let n = [];
85
- return t.forEach((t) => {
86
- n.push({
87
- value: t,
88
- label: D(e, t, u)
89
- });
90
- }), n;
91
- }, j = (e, t) => {
92
- let n = [];
93
- return t.forEach((t) => {
94
- n.push({
95
- value: t,
96
- label: D(e, t, null)
97
- });
98
- }), n;
99
- }, M = (e) => ({
100
- value: e.id,
101
- label: e.name,
102
- country: e.country
103
- }), N = new Map([["GB", [
104
- "ACTIVE_DUTY",
105
- "VETERAN",
106
- "RESERVIST"
107
- ]]]), P = (e, t) => {
108
- let r = e.verificationResponse.availableStatuses || e.previousVerificationResponse && e.previousVerificationResponse.availableStatuses, i = [], a = e.viewModel && e.viewModel.countryChoice && e.viewModel.countryChoice.value, o = a && N.get(a), s = o ? r.filter((e) => o.includes(e)) : r;
109
- return s ? (s.forEach((e) => {
110
- i.push({
111
- value: e,
112
- label: D(t, e, n)
113
- });
114
- }), i) : null;
115
- }, F = () => {
116
- let e = y(), t = [];
117
- return e.map((e) => t.push(e.fieldId)), t;
118
- }, I = (e) => e === "birthDate" || e === "birthDateDay" ? "birthDateYear" : e, L = (e, t) => {
119
- let n;
120
- return e.reverse().forEach((e) => {
121
- t[e] && (n = e);
122
- }), I(n);
123
- }, R = (e) => {
124
- let t = v("submitButton");
125
- e.key === "Enter" && t && t.click();
126
- }, z = (e, t, n, a) => {
127
- let o = g(e, t.formValidationOptions);
128
- if (!h(o)) r.info(`${n} submitting form`), t.submitStep(n, e, t.verificationResponse), a && a();
129
- else {
130
- let e = L(F(), o);
131
- l({
132
- eventName: i.INVALID_FORM_SUBMIT,
133
- params: { fieldValidationErrors: JSON.stringify(o) }
134
- }), w(o, t), b(e);
135
- }
136
- }, B = (e, t) => f(e).map((e) => ({
137
- value: e,
138
- label: t.formatHTMLMessage({
139
- id: `countries.${e}`,
140
- defaultMessage: e
141
- })
142
- })), V = (e, t, n) => B(e, t).sort((e, t) => Intl.Collator(n).compare(e.label, t.label)), H = (e, t, n) => e.map((e) => ({
143
- value: e,
144
- label: t.formatHTMLMessage({
145
- id: `countries.${e}`,
146
- defaultMessage: e
147
- })
148
- })).sort((e, t) => Intl.Collator(n).compare(e.label, t.label)), U = (e, t) => p(e).map((e) => ({
149
- value: e,
150
- label: t.formatHTMLMessage({
151
- id: `states.${e}`,
152
- defaultMessage: e
153
- })
154
- })), W = (t, n) => a(t, (r) => {
155
- e.forEach((e) => {
156
- n.some((t) => t.key === e) ? r[e] = t[e] === void 0 ? "" : t[e] : delete r[e];
157
- });
158
- }), G = (e, t) => m(e).map((e) => ({
159
- value: e,
160
- label: t.formatHTMLMessage({
161
- id: `locales.${e}`,
162
- defaultMessage: e
163
- })
164
- })), K = (e) => e.length > 0 ? e[0] : {
165
- value: "US",
166
- label: "United States"
167
- }, q = (e, t, n) => a(e, (e) => {
168
- e[t] = n;
169
- }), J = (e, t, n) => {
170
- let r = "https://support.sheerid.com", { host: i } = new URL(window.location.href);
171
- return (i.includes("preview") || i.includes("localhost")) && (r = "https://support-preview.sheerid.net"), `${r}/${e}/${t}/${n}/remember-me/`;
172
- }, Y = (e, t = o()) => t.formFieldConfig.find((t) => t.fieldId === e);
173
- //#endregion
174
- export { T as C, w as S, x as T, C as _, k as a, E as b, j as c, J as d, V as f, M as g, R as h, O as i, K as l, D as m, A as n, P as o, H as p, G as r, U as s, B as t, Y as u, q as v, S as w, z as x, W as y };
@@ -1 +0,0 @@
1
- {"version":3,"file":"stepComponentHelpers-DeWac6nj.js","names":[],"sources":["../../src/lib/utils/browser/inputHelpers.ts","../../src/lib/utils/getSafe.ts","../../src/lib/utils/stepComponentHelpers/stepComponentHelpers.ts"],"sourcesContent":["import { logger } from \"@jslib/shared/utils/logger\";\n\nimport { type ExtendedFieldId, type FieldId } from \"../../types/types\";\nimport { getRefByFieldId } from \"../../refs/refs\";\n\n/**\n * @private\n */\nexport const setFocus = (fieldId: FieldId | ExtendedFieldId) => {\n const fieldRef = getRefByFieldId(fieldId);\n\n if (fieldRef) {\n try {\n fieldRef.focus();\n } catch (e) {\n logger.error(\n `The ref '${fieldRef}' could not be focused. Is the ref an HTMLInputElement or HTMLButtonElement?`,\n \"ref error\",\n );\n }\n } else {\n logger.error(\n `A ref for fieldId '${fieldId}' could not be found. Has the ref been registered using setRef()?`,\n \"ref error\",\n );\n }\n};\n","/**\n * Avoid \"can't access property of undefined\" errors in a more readable way.\n * @param fn Function that wraps a nested property access\n * @param defaultVal Optional - the value to return if property access failed\n */\n\nexport function getSafe<T>(fn: () => T, defaultVal?: T): T | undefined {\n try {\n return fn();\n } catch (e) {\n return defaultVal;\n }\n}\n","import { produce } from \"immer\";\nimport { type InjectedIntl } from \"react-intl\";\n\nimport { logger } from \"@jslib/shared/utils/logger\";\n\nimport { EventName, recordGaEvent } from \"@/lib/GoogleAnalytics/ga\";\n\nimport {\n type FieldId,\n type FieldValidationErrors,\n type Organization,\n type VerificationService,\n type FieldContent,\n type FieldRef,\n type ExtendedFieldId,\n type WithOrganization,\n type InputSelectOnKeyDown,\n type FormSelectChoice,\n type Country,\n type ProgramTheme,\n type Locale,\n type ViewModel,\n type MilitaryStatusResponse,\n type State,\n type FieldDescription,\n type FirstResponderStatus,\n type MilitaryStatus,\n type MedicalProfessionalStatus,\n type LowIncomeStatus,\n type AllStatuses,\n type RecentMoverStatus,\n type PersonalInfoFieldId,\n type Options,\n} from \"../../types/types\";\nimport {\n type VerificationStepsEnum,\n MilitaryStatusDefaultMessagesEnum,\n FirstResponderStatusDefaultMessagesEnum,\n MedicalProfessionalStatusDefaultMessagesEnum,\n LowIncomeStatusDefaultMessagesEnum,\n type RecentMoverStatusDefaultMessagesEnum,\n} from \"../../types/runtimeTypes\";\nimport { blankOrganization } from \"../../types/empties\";\nimport {\n validateFieldById,\n getFieldValidationErrors,\n isFormErrored,\n} from \"../../validators/validators\";\nimport { setFocus } from \"../browser/inputHelpers\";\nimport { getRefByFieldId, getRefs } from \"../../refs/refs\";\nimport { getSafe } from \"../getSafe\";\nimport {\n getConfiguredCountries,\n getAvailableLocales,\n getConfiguredStates,\n} from \"../../ProgramTheme/programThemeGetters\";\nimport { getQueryParamsFromUrl } from \"../routing/Url\";\nimport { FIELD_IDS } from \"../../../constants\";\nimport { getOptions } from \"../../../options/options\";\n\nexport const updateViewModelOrganization = (\n organization: Organization,\n verificationService: VerificationService,\n) => {\n const viewModel = verificationService.viewModel as WithOrganization;\n const nextState = produce(viewModel, (draft) => {\n draft.organization = organization\n ? {\n id: organization.id,\n idExtended: organization.idExtended,\n name: organization.name,\n city: organization.city,\n state: organization.state,\n source: organization.source,\n }\n : blankOrganization.organization;\n if (viewModel.organization && viewModel.organization.source !== undefined) {\n draft.organization.source = viewModel.organization.source;\n }\n });\n verificationService.updateViewModel(nextState as ViewModel);\n};\n\nexport const populateViewModelFromQueryParams = (verificationService: VerificationService) => {\n const viewModel = verificationService.viewModel as WithOrganization;\n const queryParams = getQueryParamsFromUrl();\n\n const nextState = produce(viewModel, (draft) => {\n Object.keys(viewModel).forEach((key) => {\n if (queryParams.has(key)) {\n draft[key] = queryParams.get(key);\n }\n });\n });\n\n verificationService.updateViewModel(nextState as ViewModel);\n};\n\nexport const updateFieldValidationErrors = (\n fieldValidationErrors: FieldValidationErrors,\n verificationService: VerificationService,\n) => {\n verificationService.updateFieldValidationErrors(fieldValidationErrors);\n};\n\nexport const updateFieldValidationErrorsByFieldId = (\n fieldId: FieldId | ExtendedFieldId,\n value: FieldContent,\n verificationService: VerificationService,\n) => {\n const { fieldValidationErrors } = verificationService;\n const nextState = produce(fieldValidationErrors, (draft) => {\n if (draft[fieldId]) {\n draft[fieldId] = validateFieldById(fieldId, value, verificationService.formValidationOptions);\n }\n });\n updateFieldValidationErrors(nextState, verificationService);\n};\n\nexport const shouldCollectAddressFields = (\n countryChoice: FormSelectChoice<Country, string>,\n countries: Country[],\n): boolean =>\n (getSafe(() => countries.length === 1) && getSafe(() => countries[0]) === \"US\") ||\n getSafe(() => countryChoice.value === \"US\") ||\n getSafe(() => countryChoice.value === undefined);\n\nexport const getStatusLabel = (\n intl: InjectedIntl,\n status:\n | FirstResponderStatus\n | MilitaryStatus\n | MedicalProfessionalStatus\n | LowIncomeStatus\n | RecentMoverStatus\n | AllStatuses\n | undefined,\n defaultMessages:\n | typeof MilitaryStatusDefaultMessagesEnum\n | typeof FirstResponderStatusDefaultMessagesEnum\n | typeof MedicalProfessionalStatusDefaultMessagesEnum\n | typeof LowIncomeStatusDefaultMessagesEnum\n | typeof RecentMoverStatusDefaultMessagesEnum\n | undefined,\n): string => {\n if (!status) {\n return \"\";\n }\n return intl.formatHTMLMessage({\n id: status,\n defaultMessage: defaultMessages ? defaultMessages[status] : \"status\",\n });\n};\n\nexport const getAvailableLowIncomeStatuses = (\n intl: InjectedIntl,\n availableStatusesResponse: LowIncomeStatus[] = undefined,\n) => {\n const availableStatuses: FormSelectChoice[] = [];\n\n if (availableStatusesResponse) {\n availableStatusesResponse.forEach((status) => {\n availableStatuses.push({\n value: status,\n label: getStatusLabel(intl, status, LowIncomeStatusDefaultMessagesEnum),\n });\n });\n }\n return availableStatuses;\n};\n\nexport const getAvailableMedicalStatuses = (\n intl: InjectedIntl,\n availableStatusesResponse: MedicalProfessionalStatus[],\n) => {\n const availableStatuses: FormSelectChoice[] = [];\n\n availableStatusesResponse.forEach((status) => {\n availableStatuses.push({\n value: status,\n label: getStatusLabel(intl, status, MedicalProfessionalStatusDefaultMessagesEnum),\n });\n });\n return availableStatuses;\n};\n\nexport const getAvailableFirstResponderStatuses = (\n intl: InjectedIntl,\n availableStatusesResponse: FirstResponderStatus[],\n): FormSelectChoice[] => {\n const availableStatuses: FormSelectChoice[] = [];\n\n availableStatusesResponse.forEach((status) => {\n availableStatuses.push({\n value: status,\n label: getStatusLabel(intl, status, FirstResponderStatusDefaultMessagesEnum),\n });\n });\n\n return availableStatuses;\n};\n\nexport const getAvailableStatuses = (\n intl: InjectedIntl,\n availableStatusesResponse: AllStatuses[],\n): FormSelectChoice[] => {\n const availableStatuses: FormSelectChoice[] = [];\n\n availableStatusesResponse.forEach((status) => {\n availableStatuses.push({\n value: status,\n label: getStatusLabel(intl, status, null),\n });\n });\n\n return availableStatuses;\n};\n\nexport const orgToOption = (org: Organization) => ({\n value: org.id,\n label: org.name,\n country: org.country,\n});\n\n// The jslib should not be the owner of this mapping,\n// DATA-3164 exists to find another way.\nconst countryStatusAllowList = new Map<Country, MilitaryStatus[]>([\n [\"GB\", [\"ACTIVE_DUTY\", \"VETERAN\", \"RESERVIST\"]],\n]);\n\nexport const getAvailableMilitaryStatuses = (\n verificationService: VerificationService,\n intl: InjectedIntl,\n): FormSelectChoice[] => {\n const availableStatusesFromResponse =\n (verificationService.verificationResponse as MilitaryStatusResponse).availableStatuses ||\n (verificationService.previousVerificationResponse &&\n (verificationService.previousVerificationResponse as MilitaryStatusResponse)\n .availableStatuses);\n const availableStatuses: FormSelectChoice[] = [];\n\n // The country overrides in this function should be updated with DATA-3164\n const country =\n verificationService.viewModel &&\n verificationService.viewModel.countryChoice &&\n verificationService.viewModel.countryChoice.value;\n const countryAllowedStatuses = country && countryStatusAllowList.get(country);\n const availableStatusesForCountry = countryAllowedStatuses\n ? availableStatusesFromResponse.filter((status) => countryAllowedStatuses.includes(status))\n : availableStatusesFromResponse;\n\n if (!availableStatusesForCountry) {\n return null;\n }\n\n availableStatusesForCountry.forEach((status) => {\n availableStatuses.push({\n value: status,\n label: getStatusLabel(intl, status, MilitaryStatusDefaultMessagesEnum),\n });\n });\n return availableStatuses;\n};\n\n/**\n * @private\n */\nexport const getFieldDisplayOrderFromRefs = (): FieldId[] | ExtendedFieldId[] => {\n const refs: FieldRef[] = getRefs();\n const fieldDisplayOrder: FieldId | ExtendedFieldId[] = [];\n\n refs.map((refObject: FieldRef) => fieldDisplayOrder.push(refObject.fieldId));\n\n return fieldDisplayOrder;\n};\n\n/**\n * HD-638 - focus on year, rather than month (which is an open <select> that covers error msg)\n */\nexport const adjustFirstErroredFieldId = (\n firstErroredFieldId: FieldId | ExtendedFieldId,\n): FieldId | ExtendedFieldId => {\n if (firstErroredFieldId === \"birthDate\" || firstErroredFieldId === \"birthDateDay\") {\n return \"birthDateYear\";\n }\n return firstErroredFieldId;\n};\n\n/**\n * @private\n */\nexport const getFirstErroredFieldId = (\n fieldDisplayOrder: FieldId[] | ExtendedFieldId[],\n fieldValidationErrors: FieldValidationErrors,\n): FieldId | ExtendedFieldId => {\n let firstErroredFieldId: FieldId | ExtendedFieldId;\n\n fieldDisplayOrder.reverse().forEach((field) => {\n if (fieldValidationErrors[field]) {\n firstErroredFieldId = field;\n }\n });\n\n return adjustFirstErroredFieldId(firstErroredFieldId);\n};\n\n/**\n * @private\n */\nexport const handleEmailOnKeyDown = (event: React.KeyboardEvent<HTMLInputElement>) => {\n const submitButtonRef: HTMLElement = getRefByFieldId(\"submitButton\");\n if (event.key === \"Enter\" && submitButtonRef) {\n submitButtonRef.click();\n }\n};\n\n/**\n * @deprecated Accessibility standards prevent setting focus without user keyboard interaction\n */\nexport const handleCountryOnKeyDown: InputSelectOnKeyDown = (\n event: React.KeyboardEvent<HTMLInputElement>,\n) => {\n if (event.key === \"Tab\" && !event.shiftKey) {\n event.preventDefault();\n setFocus(\"organization\");\n }\n};\n\n/**\n * @public\n */\nexport const submitForm = (\n viewModel: ViewModel,\n verificationService: VerificationService,\n step: VerificationStepsEnum,\n successCallback?: () => void,\n) => {\n const currentFieldValidationErrors = getFieldValidationErrors(\n viewModel,\n verificationService.formValidationOptions,\n );\n const isFormValid = !isFormErrored(currentFieldValidationErrors);\n\n if (isFormValid) {\n logger.info(`${step} submitting form`);\n verificationService.submitStep(step, viewModel, verificationService.verificationResponse);\n if (successCallback) {\n successCallback();\n }\n } else {\n const fieldDisplayOrder: FieldId[] | ExtendedFieldId[] = getFieldDisplayOrderFromRefs();\n const firstErroredFieldId: FieldId | ExtendedFieldId = getFirstErroredFieldId(\n fieldDisplayOrder,\n currentFieldValidationErrors,\n );\n recordGaEvent({\n eventName: EventName.INVALID_FORM_SUBMIT,\n params: {\n fieldValidationErrors: JSON.stringify(currentFieldValidationErrors),\n },\n });\n updateFieldValidationErrors(currentFieldValidationErrors, verificationService);\n setFocus(firstErroredFieldId);\n }\n};\n\n/**\n * @private\n */\nexport const getAvailableCountryChoices = (\n programTheme: ProgramTheme,\n intl: InjectedIntl,\n): FormSelectChoice<Country, string>[] => {\n const availableCountries: Country[] = getConfiguredCountries(programTheme);\n return availableCountries.map((countryCode) => ({\n value: countryCode,\n label: intl.formatHTMLMessage({\n id: `countries.${countryCode}`,\n defaultMessage: countryCode,\n }),\n }));\n};\n\n/**\n * @private\n */\nexport const getSortedCountryChoices = (\n programTheme: ProgramTheme,\n intl: InjectedIntl,\n locale?: Locale,\n): FormSelectChoice<Country, string>[] => {\n const localeAwareSorter = (a, b) => Intl.Collator(locale).compare(a.label, b.label);\n return getAvailableCountryChoices(programTheme, intl).sort(localeAwareSorter);\n};\n\n/**\n * @private\n */\nexport const getSortedIdCheckCountryChoices = (\n countries: Country[],\n intl: InjectedIntl,\n locale?: Locale,\n): FormSelectChoice<Country, string>[] => {\n const localeAwareSorter = (a, b) => Intl.Collator(locale).compare(a.label, b.label);\n return countries\n .map((countryCode) => ({\n value: countryCode,\n label: intl.formatHTMLMessage({\n id: `countries.${countryCode}`,\n defaultMessage: countryCode,\n }),\n }))\n .sort(localeAwareSorter);\n};\n\nexport const getAvailableStateChoices = (\n programTheme: ProgramTheme,\n intl: InjectedIntl,\n): FormSelectChoice<State, string>[] => {\n const availableStates: State[] = getConfiguredStates(programTheme);\n return availableStates.map((stateCode) => ({\n value: stateCode,\n label: intl.formatHTMLMessage({\n id: `states.${stateCode}`,\n defaultMessage: stateCode,\n }),\n }));\n};\n\n/**\n * @deprecated Not used anywhere and performs a noop.\n */\nexport const produceDraftViewModelWithRequiredFields = <T extends ViewModel>(\n previousModel: T,\n newRequiredFields?: FieldDescription[],\n conditionalRequiredFieldKeys?: (keyof T)[],\n) => {\n logger.info(\n \"produceDraftViewModelWithRequiredFields received. This method is now deprecated and performs a noop, returning previousViewModel\",\n {\n previousModel,\n newRequiredFields,\n conditionalRequiredFieldKeys,\n },\n );\n\n return previousModel;\n};\n\nexport const produceDraftViewModelWithAllRequiredFields = <T extends ViewModel>(\n viewModel: T,\n newRequiredFields: FieldDescription[],\n) =>\n produce(viewModel, (draft: T) => {\n FIELD_IDS.forEach((requiredFieldKey) => {\n if (newRequiredFields.some((field) => field.key === requiredFieldKey)) {\n (draft[requiredFieldKey] as any) =\n viewModel[requiredFieldKey] !== undefined ? viewModel[requiredFieldKey] : \"\";\n } else {\n delete draft[requiredFieldKey];\n }\n });\n });\n\n/**\n * @private\n */\nexport const getAvailableLocaleChoices = (\n programTheme: ProgramTheme,\n intl: InjectedIntl,\n): FormSelectChoice<Locale, string>[] => {\n const availableLocales: Locale[] = getAvailableLocales(programTheme);\n return availableLocales.map((locale) => ({\n value: locale,\n label: intl.formatHTMLMessage({\n id: `locales.${locale}`,\n defaultMessage: locale,\n }),\n }));\n};\n\n/**\n * @private\n */\nexport const getDefaultCountryChoice = (\n countryChoices: FormSelectChoice<Country, string>[],\n): FormSelectChoice<Country, string> => {\n if (countryChoices.length > 0) {\n return countryChoices[0];\n }\n return { value: \"US\", label: \"United States\" };\n};\n\n/**\n * @private\n */\nexport const produceDraftViewModel = <T extends ViewModel>(\n previousModel: T,\n key: keyof T,\n value: any,\n) =>\n produce(previousModel, (draft: T) => {\n (draft[key] as any) = value;\n });\n\n/**\n * @private\n */\nexport const getRememberMeRedirectDestination = (\n locale: Locale,\n programId: string,\n verificationId: string,\n): string => {\n const supportBasePreviewUrl = \"https://support-preview.sheerid.net\";\n const supportBaseProdUrl = \"https://support.sheerid.com\";\n let baseUrl = supportBaseProdUrl;\n const { host } = new URL(window.location.href);\n\n if (host.includes(\"preview\") || host.includes(\"localhost\")) {\n baseUrl = supportBasePreviewUrl;\n }\n\n return `${baseUrl}/${locale}/${programId}/${verificationId}/remember-me/`;\n};\n\nexport const getFieldConfigByFieldId = (\n fieldId: PersonalInfoFieldId,\n options: Options = getOptions(),\n) => {\n const fieldConfig = options.formFieldConfig;\n return fieldConfig.find((option) => option.fieldId === fieldId);\n};\n"],"mappings":";;;;;;AAQA,IAAa,KAAY,MAAuC;CAC9D,IAAM,IAAW,EAAgB,CAAO;CAExC,IAAI,GACF,IAAI;EACF,EAAS,MAAM;CACjB,QAAY;EACV,EAAO,MACL,YAAY,EAAS,+EACrB,WACF;CACF;MAEA,EAAO,MACL,sBAAsB,EAAQ,oEAC9B,WACF;AAEJ;;;ACpBA,SAAgB,EAAW,GAAa,GAA+B;CACrE,IAAI;EACF,OAAO,EAAG;C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.0
4
- * BUILD_TIMESTAMP: 1787352272226
5
- * BUILD_DATE: Fri Aug 21 2026 22:44:32 GMT+0000 (Coordinated Universal Time)
6
- * BUILD_COMMIT: 30913cd7a2f4f6324e4692d7ed7cde8020560774
7
- */
8
- import { Jt as e, Wt as t, lt as n } from "./options-BK6Zk2Oe.js";
9
- import { c as r } from "./jsx-runtime-lVLuHIkM.js";
10
- import { u as i } from "./FormFooterComponent-BdT7rv1y.js";
11
- import { t as a } from "./VerificationApiUtils-PcnM2IQD.js";
12
- //#region src/lib/ServerApi/useCollectFieldsEndpoint.ts
13
- var o = /* @__PURE__ */ e(r(), 1), s = ({ verificationId: e, currentStep: r, viewModel: s, defaultRequiredFields: c = [] }) => {
14
- let l = i(), u = "status" in s ? s.status : void 0, [d, f] = o.useState(c), [p, m] = o.useState([]);
15
- return o.useEffect(() => {
16
- let i = new AbortController();
17
- return (async () => {
18
- try {
19
- let t = await a(e, r, s), o = n(() => t.fieldsToCollect.required, []), c = n(() => t.fieldsToCollect.optional, []);
20
- i.signal.aborted || (f(o), m(c), l({
21
- type: "COLLECT_FIELDS",
22
- requiredFields: o,
23
- optionalFields: c
24
- }));
25
- } catch (e) {
26
- t.error(`Failed to determine fields to collect: ${e}`, r);
27
- }
28
- })(), () => {
29
- i.abort();
30
- };
31
- }, [s.countryChoice?.value, u]), {
32
- isFieldRequired: (e) => d.some((t) => t.key === e),
33
- isFieldOptional: (e) => p.some((t) => t.key === e)
34
- };
35
- };
36
- //#endregion
37
- export { s as t };
@@ -1 +0,0 @@
1
- {"version":3,"file":"useCollectFieldsEndpoint-BToJZbHd.js","names":[],"sources":["../../src/lib/ServerApi/useCollectFieldsEndpoint.ts"],"sourcesContent":["import React from \"react\";\n\nimport { getSafe } from \"@jslib/shared/utils/getSafe\";\nimport { logger } from \"@jslib/shared/utils/logger\";\n\nimport {\n type CollectFieldsResponse,\n type FieldDescription,\n type VerificationStep,\n type PersonalInfoViewModel,\n type CollectFieldsAction,\n} from \"../types/types\";\nimport { useAppDispatch } from \"../state/contextHooks\";\n\nimport { getFieldsToCollect } from \"./VerificationApiUtils\";\n\nexport const useCollectFieldsEndpoint = <VM extends PersonalInfoViewModel = PersonalInfoViewModel>({\n verificationId,\n currentStep,\n viewModel,\n defaultRequiredFields = [],\n}: {\n verificationId: string;\n currentStep: VerificationStep;\n viewModel: VM;\n defaultRequiredFields?: FieldDescription[];\n}) => {\n const dispatch = useAppDispatch();\n const status = \"status\" in viewModel ? viewModel.status : undefined;\n\n const [requiredFields, setRequiredFields] =\n React.useState<FieldDescription[]>(defaultRequiredFields);\n const [optionalFields, setOptionalFields] = React.useState<FieldDescription[]>([]);\n\n const isFieldRequired = (key: keyof VM) => requiredFields.some((field) => field.key === key);\n const isFieldOptional = (key: keyof VM) => optionalFields.some((field) => field.key === key);\n\n React.useEffect(() => {\n const abortController = new AbortController();\n\n (async () => {\n try {\n const collectFieldsResponse: CollectFieldsResponse = await getFieldsToCollect(\n verificationId,\n currentStep,\n viewModel,\n );\n const newRequiredFields = getSafe(() => collectFieldsResponse.fieldsToCollect.required, []);\n const newOptionalFields = getSafe(() => collectFieldsResponse.fieldsToCollect.optional, []);\n\n if (!abortController.signal.aborted) {\n setRequiredFields(newRequiredFields);\n setOptionalFields(newOptionalFields);\n\n // Dispatch the field requirements to the reducer\n const collectFieldsAction: CollectFieldsAction = {\n type: \"COLLECT_FIELDS\",\n requiredFields: newRequiredFields,\n optionalFields: newOptionalFields,\n };\n dispatch(collectFieldsAction);\n }\n } catch (error) {\n logger.error(`Failed to determine fields to collect: ${error}`, currentStep);\n }\n })();\n\n // Cleanup function\n return () => {\n abortController.abort();\n };\n }, [viewModel.countryChoice?.value, status]);\n\n return { isFieldRequired, isFieldOptional };\n};\n"],"mappings":";;;;;mCAgBa,KAAsF,EACjG,mBACA,gBACA,cACA,2BAAwB,CAAC,QAMrB;CACJ,IAAM,IAAW,EAAe,GAC1B,IAAS,YAAY,IAAY,EAAU,SAAS,KAAA,GAEpD,CAAC,GAAgB,KAAA,EACf,SAA6B,CAAqB,GACpD,CAAC,GAAgB,KAAA,EAA2B,SAA6B,CAAC,CAAC;CAyCjF,OApCA,EAAM,gBAAgB;EACpB,IAAM,IAAkB,IAAI,gBAAgB;EA8B5C,QA5BC,YAAY;GACX,IAAI;IACF,IAAM,IAA+C,MAAM,EACzD,GACA,GACA,CACF,GACM,IAAoB,QAAc,EAAsB,gBAAgB,UAAU,CAAC,CAAC,GACpF,IAAoB,QAAc,EAAsB,gBAAgB,UAAU,CAAC,CAAC;IAE1F,AAAK,EAAgB,OAAO,YAC1B,EAAkB,CAAiB,GACnC,EAAkB,CAAiB,GAQnC,EAAS;KAJP,MAAM;KACN,gBAAgB;KAChB,gBAAgB;IAET,CAAmB;GAEhC,SAAS,GAAO;IACd,EAAO,MAAM,0CAA0C,KAAS,CAAW;GAC7E;EACF,GAAG,SAGU;GACX,EAAgB,MAAM;EACxB;CACF,GAAG,CAAC,EAAU,eAAe,OAAO,CAAM,CAAC,GAEpC;EAAE,kBAvCgB,MAAkB,EAAe,MAAM,MAAU,EAAM,QAAQ,CAAG;EAuCjE,kBAtCD,MAAkB,EAAe,MAAM,MAAU,EAAM,QAAQ,CAAG;CAsCjD;AAC5C"}