@sheerid/jslib 2.276.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 (448) 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-DeNJR0XJ.js → AddressComponent-C3iwf09x.js} +7 -7
  5. package/chunk/{AddressComponent-C89pD6Mq.js.map → AddressComponent-C3iwf09x.js.map} +1 -1
  6. package/chunk/{AddressComponent-C89pD6Mq.js → AddressComponent-oDHvr6bn.js} +7 -7
  7. package/chunk/{AddressComponent-DeNJR0XJ.js.map → AddressComponent-oDHvr6bn.js.map} +1 -1
  8. package/chunk/{AnnouncingHeader-BlnfAnLI.js → AnnouncingHeader-CCVSQeQR.js} +6 -6
  9. package/chunk/{AnnouncingHeader-BlnfAnLI.js.map → AnnouncingHeader-CCVSQeQR.js.map} +1 -1
  10. package/chunk/{AnnouncingHeader-CegZwDFd.js → AnnouncingHeader-YPjBYzsZ.js} +6 -6
  11. package/chunk/{AnnouncingHeader-CegZwDFd.js.map → AnnouncingHeader-YPjBYzsZ.js.map} +1 -1
  12. package/chunk/{ApiUrls-DtgMSGlO.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-BYO6Kfgc.js → BirthDateComponent-MZDnneXy.js} +8 -8
  17. package/chunk/{BirthDateComponent-2CJqlbNU.js.map → BirthDateComponent-MZDnneXy.js.map} +1 -1
  18. package/chunk/{BirthDateComponent-2CJqlbNU.js → BirthDateComponent-f9e4it7x.js} +8 -8
  19. package/chunk/{BirthDateComponent-BYO6Kfgc.js.map → BirthDateComponent-f9e4it7x.js.map} +1 -1
  20. package/chunk/{CaptchaComponent-CoajXhka.js → CaptchaComponent-CCq7YSum.js} +135 -135
  21. package/chunk/{CaptchaComponent-CoajXhka.js.map → CaptchaComponent-CCq7YSum.js.map} +1 -1
  22. package/chunk/{CaptchaComponent-DnyafWoN.js → CaptchaComponent-hqx9tSkk.js} +134 -134
  23. package/chunk/{CaptchaComponent-DnyafWoN.js.map → CaptchaComponent-hqx9tSkk.js.map} +1 -1
  24. package/chunk/{ChangeLocaleComponent-Z-taCJ6R.js → ChangeLocaleComponent-CKKK4OcA.js} +8 -8
  25. package/chunk/{ChangeLocaleComponent-C4jVlT7w.js.map → ChangeLocaleComponent-CKKK4OcA.js.map} +1 -1
  26. package/chunk/{ChangeLocaleComponent-C4jVlT7w.js → ChangeLocaleComponent-DtJjnuBc.js} +8 -8
  27. package/chunk/{ChangeLocaleComponent-Z-taCJ6R.js.map → ChangeLocaleComponent-DtJjnuBc.js.map} +1 -1
  28. package/chunk/{City-CEOnA40d.js → City-CUVEjTrI.js} +7 -7
  29. package/chunk/{City-CEOnA40d.js.map → City-CUVEjTrI.js.map} +1 -1
  30. package/chunk/{City-CHFvccq5.js → City-Drub1WX8.js} +7 -7
  31. package/chunk/{City-CHFvccq5.js.map → City-Drub1WX8.js.map} +1 -1
  32. package/chunk/{CollegeNameComponent-TPDjSelK.js → CollegeNameComponent-4QYMIIcd.js} +9 -9
  33. package/chunk/{CollegeNameComponent-C-Vq-0f_.js.map → CollegeNameComponent-4QYMIIcd.js.map} +1 -1
  34. package/chunk/{CollegeNameComponent-C-Vq-0f_.js → CollegeNameComponent-C47D3rO4.js} +9 -9
  35. package/chunk/{CollegeNameComponent-TPDjSelK.js.map → CollegeNameComponent-C47D3rO4.js.map} +1 -1
  36. package/chunk/{CopyToClipboardComponent-BdTGehGx.js → CopyToClipboardComponent-DGi3bxV2.js} +9 -9
  37. package/chunk/{CopyToClipboardComponent-BdTGehGx.js.map → CopyToClipboardComponent-DGi3bxV2.js.map} +1 -1
  38. package/chunk/{CopyToClipboardComponent-DkrM2SFa.js → CopyToClipboardComponent-cLuyXFes.js} +9 -9
  39. package/chunk/{CopyToClipboardComponent-DkrM2SFa.js.map → CopyToClipboardComponent-cLuyXFes.js.map} +1 -1
  40. package/chunk/{CountryComponentWrapper-CsMhIsMa.js → CountryComponentWrapper-B3Ki9bAz.js} +16 -16
  41. package/chunk/{CountryComponentWrapper-C45AFJGi.js.map → CountryComponentWrapper-B3Ki9bAz.js.map} +1 -1
  42. package/chunk/{CountryComponentWrapper-C45AFJGi.js → CountryComponentWrapper-DeR9PrA2.js} +16 -16
  43. package/chunk/{CountryComponentWrapper-CsMhIsMa.js.map → CountryComponentWrapper-DeR9PrA2.js.map} +1 -1
  44. package/chunk/{DischargeDateComponent-W6LVGtRA.js → DischargeDateComponent-Btg3v71t.js} +21 -21
  45. package/chunk/{DischargeDateComponent-W6LVGtRA.js.map → DischargeDateComponent-Btg3v71t.js.map} +1 -1
  46. package/chunk/{DischargeDateComponent-YwN1LS7c.js → DischargeDateComponent-CqKUrGE0.js} +21 -21
  47. package/chunk/{DischargeDateComponent-YwN1LS7c.js.map → DischargeDateComponent-CqKUrGE0.js.map} +1 -1
  48. package/chunk/{DriverLicenseNumberComponent-DWRBwzc1.js → DriverLicenseNumberComponent-B2arYwHU.js} +7 -7
  49. package/chunk/{DriverLicenseNumberComponent-BgyfMAeh.js.map → DriverLicenseNumberComponent-B2arYwHU.js.map} +1 -1
  50. package/chunk/{DriverLicenseNumberComponent-BgyfMAeh.js → DriverLicenseNumberComponent-ByNoEq6v.js} +7 -7
  51. package/chunk/{DriverLicenseNumberComponent-DWRBwzc1.js.map → DriverLicenseNumberComponent-ByNoEq6v.js.map} +1 -1
  52. package/chunk/{EmailLoopPending-DbehVow3.js → EmailLoopPending-HyZBgisU.js} +25 -25
  53. package/chunk/{EmailLoopPending-C7SKw1We.js.map → EmailLoopPending-HyZBgisU.js.map} +1 -1
  54. package/chunk/{EmailLoopPending-C7SKw1We.js → EmailLoopPending-ojWCBFjq.js} +24 -24
  55. package/chunk/{EmailLoopPending-DbehVow3.js.map → EmailLoopPending-ojWCBFjq.js.map} +1 -1
  56. package/chunk/{ExtraMessage-f9Om84tg.js → ExtraMessage-BXxlQROb.js} +7 -7
  57. package/chunk/{ExtraMessage-CIU0SFFU.js.map → ExtraMessage-BXxlQROb.js.map} +1 -1
  58. package/chunk/{ExtraMessage-CIU0SFFU.js → ExtraMessage-PLTUBdhw.js} +7 -7
  59. package/chunk/{ExtraMessage-f9Om84tg.js.map → ExtraMessage-PLTUBdhw.js.map} +1 -1
  60. package/chunk/{FirstResponderOrganizationComponent-D3iJl4at.js → FirstResponderOrganizationComponent-BiI8JG49.js} +8 -8
  61. package/chunk/{FirstResponderOrganizationComponent-CCzd7O89.js.map → FirstResponderOrganizationComponent-BiI8JG49.js.map} +1 -1
  62. package/chunk/{FirstResponderOrganizationComponent-CCzd7O89.js → FirstResponderOrganizationComponent-BwzXdBV-.js} +8 -8
  63. package/chunk/{FirstResponderOrganizationComponent-D3iJl4at.js.map → FirstResponderOrganizationComponent-BwzXdBV-.js.map} +1 -1
  64. package/chunk/{FormFieldInputSelect-BioVB7zS.js → FormFieldInputSelect-C6OyLsWL.js} +7 -7
  65. package/chunk/{FormFieldInputSelect-BAVhOrsd.js.map → FormFieldInputSelect-C6OyLsWL.js.map} +1 -1
  66. package/chunk/{FormFieldInputSelect-BAVhOrsd.js → FormFieldInputSelect-Cl4QZ12h.js} +7 -7
  67. package/chunk/{FormFieldInputSelect-BioVB7zS.js.map → FormFieldInputSelect-Cl4QZ12h.js.map} +1 -1
  68. package/chunk/{FormFieldLayout-Bav93prH.js → FormFieldLayout-C4SCdGBC.js} +6 -6
  69. package/chunk/{FormFieldLayout-Bav93prH.js.map → FormFieldLayout-C4SCdGBC.js.map} +1 -1
  70. package/chunk/{FormFieldLayout-C-P2QCto.js → FormFieldLayout-Cj_v9kYa.js} +6 -6
  71. package/chunk/{FormFieldLayout-C-P2QCto.js.map → FormFieldLayout-Cj_v9kYa.js.map} +1 -1
  72. package/chunk/{FormFieldText-mvPCLbUG.js → FormFieldText-BbdrtNh_.js} +7 -7
  73. package/chunk/{FormFieldText-BPefsplc.js.map → FormFieldText-BbdrtNh_.js.map} +1 -1
  74. package/chunk/{FormFieldText-BPefsplc.js → FormFieldText-Gf13Luq7.js} +7 -7
  75. package/chunk/{FormFieldText-mvPCLbUG.js.map → FormFieldText-Gf13Luq7.js.map} +1 -1
  76. package/chunk/{FormFieldTypeahead-Cd4-ak1z.js → FormFieldTypeahead-DTFxOQnf.js} +70 -70
  77. package/chunk/{FormFieldTypeahead-Cd4-ak1z.js.map → FormFieldTypeahead-DTFxOQnf.js.map} +1 -1
  78. package/chunk/{FormFieldTypeahead-D5lcrGM-.js → FormFieldTypeahead-DbrQgvbJ.js} +85 -85
  79. package/chunk/{FormFieldTypeahead-D5lcrGM-.js.map → FormFieldTypeahead-DbrQgvbJ.js.map} +1 -1
  80. package/chunk/{FormFooterComponent-BEDJQK_Z.js → FormFooterComponent-B2W5vjOS.js} +1949 -1942
  81. package/chunk/{FormFooterComponent-BEDJQK_Z.js.map → FormFooterComponent-B2W5vjOS.js.map} +1 -1
  82. package/chunk/{FormFooterComponent-BuRQRQFI.js → FormFooterComponent-CaOt9TQw.js} +196 -189
  83. package/chunk/FormFooterComponent-CaOt9TQw.js.map +1 -0
  84. package/chunk/{FormSelectChoice-BMOCwG1_.js → FormSelectChoice-C4LlT7fR.js} +16 -16
  85. package/chunk/{FormSelectChoice-BMOCwG1_.js.map → FormSelectChoice-C4LlT7fR.js.map} +1 -1
  86. package/chunk/{FormSelectChoice-xPF_7dfg.js → FormSelectChoice-CClt04rV.js} +16 -16
  87. package/chunk/{FormSelectChoice-xPF_7dfg.js.map → FormSelectChoice-CClt04rV.js.map} +1 -1
  88. package/chunk/{InputText-B4CjWTez.js → InputText-BXPuBlPq.js} +7 -7
  89. package/chunk/{InputText-B4CjWTez.js.map → InputText-BXPuBlPq.js.map} +1 -1
  90. package/chunk/{InputText-Dc_DjXbQ.js → InputText-h_myNeHr.js} +7 -7
  91. package/chunk/{InputText-Dc_DjXbQ.js.map → InputText-h_myNeHr.js.map} +1 -1
  92. package/chunk/{LicensedProfessionalOrganizationComponent-CP_MLvtk.js → LicensedProfessionalOrganizationComponent-wJSn67h6.js} +8 -8
  93. package/chunk/{LicensedProfessionalOrganizationComponent-Dwbseq8o.js.map → LicensedProfessionalOrganizationComponent-wJSn67h6.js.map} +1 -1
  94. package/chunk/{LicensedProfessionalOrganizationComponent-Dwbseq8o.js → LicensedProfessionalOrganizationComponent-wfXwXvVc.js} +8 -8
  95. package/chunk/{LicensedProfessionalOrganizationComponent-CP_MLvtk.js.map → LicensedProfessionalOrganizationComponent-wfXwXvVc.js.map} +1 -1
  96. package/chunk/{LogoComponent-BaBfWuKr.js → LogoComponent-Do8K5ydz.js} +6 -6
  97. package/chunk/{LogoComponent-BaBfWuKr.js.map → LogoComponent-Do8K5ydz.js.map} +1 -1
  98. package/chunk/{LogoComponent-DSoOQ1Uz.js → LogoComponent-Dx1G-rzE.js} +6 -6
  99. package/chunk/{LogoComponent-DSoOQ1Uz.js.map → LogoComponent-Dx1G-rzE.js.map} +1 -1
  100. package/chunk/{LowIncomeOrganizationComponent-BXmap6Rx.js → LowIncomeOrganizationComponent-C3Dc7HeO.js} +20 -20
  101. package/chunk/{LowIncomeOrganizationComponent-BXmap6Rx.js.map → LowIncomeOrganizationComponent-C3Dc7HeO.js.map} +1 -1
  102. package/chunk/{LowIncomeOrganizationComponent-D8CNP5HY.js → LowIncomeOrganizationComponent-D8RlrBXa.js} +20 -20
  103. package/chunk/{LowIncomeOrganizationComponent-D8CNP5HY.js.map → LowIncomeOrganizationComponent-D8RlrBXa.js.map} +1 -1
  104. package/chunk/{MedicalProfessionalOrganizationComponent-KmjANRJ9.js → MedicalProfessionalOrganizationComponent-BlEmZTpI.js} +8 -8
  105. package/chunk/{MedicalProfessionalOrganizationComponent-BbYalsLY.js.map → MedicalProfessionalOrganizationComponent-BlEmZTpI.js.map} +1 -1
  106. package/chunk/{MedicalProfessionalOrganizationComponent-BbYalsLY.js → MedicalProfessionalOrganizationComponent-DS1iVIfQ.js} +8 -8
  107. package/chunk/{MedicalProfessionalOrganizationComponent-KmjANRJ9.js.map → MedicalProfessionalOrganizationComponent-DS1iVIfQ.js.map} +1 -1
  108. package/chunk/{MemberIdComponent-TNTlU0wZ.js → MemberIdComponent-5OnkQeLm.js} +7 -7
  109. package/chunk/{MemberIdComponent-TNTlU0wZ.js.map → MemberIdComponent-5OnkQeLm.js.map} +1 -1
  110. package/chunk/{MemberIdComponent-ubWwGiAG.js → MemberIdComponent-sR9aGDN4.js} +7 -7
  111. package/chunk/{MemberIdComponent-ubWwGiAG.js.map → MemberIdComponent-sR9aGDN4.js.map} +1 -1
  112. package/chunk/{MembershipOrganizationComponent-QqiCbPz3.js → MembershipOrganizationComponent-BrbunU1_.js} +8 -8
  113. package/chunk/{MembershipOrganizationComponent-BlYWLmzA.js.map → MembershipOrganizationComponent-BrbunU1_.js.map} +1 -1
  114. package/chunk/{MembershipOrganizationComponent-BlYWLmzA.js → MembershipOrganizationComponent-UqzaA4bV.js} +8 -8
  115. package/chunk/{MembershipOrganizationComponent-QqiCbPz3.js.map → MembershipOrganizationComponent-UqzaA4bV.js.map} +1 -1
  116. package/chunk/Onfido-CTCgAwnB.js +4 -4
  117. package/chunk/{PersonalInfoStepSubmitButton-_wFfZCyV.js → PersonalInfoStepSubmitButton-DA3ceOLw.js} +28 -26
  118. package/chunk/PersonalInfoStepSubmitButton-DA3ceOLw.js.map +1 -0
  119. package/chunk/{PersonalInfoStepSubmitButton-DvMU95pj.js → PersonalInfoStepSubmitButton-D_Y9q0Iy.js} +20 -18
  120. package/chunk/PersonalInfoStepSubmitButton-D_Y9q0Iy.js.map +1 -0
  121. package/chunk/{PersonalInfoStepWrapper-BCe97Fbw.js → PersonalInfoStepWrapper-6neTJTQD.js} +7 -7
  122. package/chunk/{PersonalInfoStepWrapper-BCe97Fbw.js.map → PersonalInfoStepWrapper-6neTJTQD.js.map} +1 -1
  123. package/chunk/{PersonalInfoStepWrapper-C-DG20qY.js → PersonalInfoStepWrapper-Dsb0Qcv5.js} +21 -21
  124. package/chunk/{PersonalInfoStepWrapper-C-DG20qY.js.map → PersonalInfoStepWrapper-Dsb0Qcv5.js.map} +1 -1
  125. package/chunk/{PostalCodeComponent-BF8Fplpm.js → PostalCodeComponent-BhBBSAL-.js} +7 -7
  126. package/chunk/{PostalCodeComponent-BF8Fplpm.js.map → PostalCodeComponent-BhBBSAL-.js.map} +1 -1
  127. package/chunk/{PostalCodeComponent-Cn7FPVh2.js → PostalCodeComponent-DKC3DspF.js} +7 -7
  128. package/chunk/{PostalCodeComponent-Cn7FPVh2.js.map → PostalCodeComponent-DKC3DspF.js.map} +1 -1
  129. package/chunk/{SSN-DPn5f0xr.js → SSN-7DHOlAAq.js} +8 -8
  130. package/chunk/{SSN-CbSneflU.js.map → SSN-7DHOlAAq.js.map} +1 -1
  131. package/chunk/{SSN-CbSneflU.js → SSN-DlBvRiaZ.js} +8 -8
  132. package/chunk/{SSN-DPn5f0xr.js.map → SSN-DlBvRiaZ.js.map} +1 -1
  133. package/chunk/{StateSelectComponent-BMxcczlp.js → StateSelectComponent-BXHXB6Kn.js} +6 -6
  134. package/chunk/{StateSelectComponent-BMxcczlp.js.map → StateSelectComponent-BXHXB6Kn.js.map} +1 -1
  135. package/chunk/{StateSelectComponent-Fwkoplfb.js → StateSelectComponent-lM5e-_1v.js} +6 -6
  136. package/chunk/{StateSelectComponent-Fwkoplfb.js.map → StateSelectComponent-lM5e-_1v.js.map} +1 -1
  137. package/chunk/{StatusComponent-C--lHDG1.js → StatusComponent-BTvs1WVn.js} +15 -14
  138. package/chunk/StatusComponent-BTvs1WVn.js.map +1 -0
  139. package/chunk/{StatusComponent-DUPrDBFL.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-B3prBGtM.js.map → StepAgePersonalInfo-BOnOqXxm.js.map} +1 -1
  143. package/chunk/{StepAgePersonalInfo-B3prBGtM.js → StepAgePersonalInfo-UWfkIpnn.js} +43 -47
  144. package/chunk/{StepAgePersonalInfo-Bqy4A9R_.js.map → StepAgePersonalInfo-UWfkIpnn.js.map} +1 -1
  145. package/chunk/{StepCard-DOhBSDPW.js → StepCard-B0o7IN6g.js} +5 -5
  146. package/chunk/{StepCard-DOhBSDPW.js.map → StepCard-B0o7IN6g.js.map} +1 -1
  147. package/chunk/{StepCard-Ym7mbGWv.js → StepCard-CWT2BiAH.js} +5 -5
  148. package/chunk/{StepCard-Ym7mbGWv.js.map → StepCard-CWT2BiAH.js.map} +1 -1
  149. package/chunk/{StepCollectIdentifier-BPVZi_2Z.js → StepCollectIdentifier-CtpUvhZs.js} +11 -11
  150. package/chunk/{StepCollectIdentifier-BPVZi_2Z.js.map → StepCollectIdentifier-CtpUvhZs.js.map} +1 -1
  151. package/chunk/{StepCollectIdentifier-DIYCPon1.js → StepCollectIdentifier-D7bSwvYI.js} +15 -15
  152. package/chunk/{StepCollectIdentifier-DIYCPon1.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-Yz3dPahs.js → StepCompleteAuthentication-Cnv_QzG7.js} +21 -21
  162. package/chunk/{StepCompleteAuthentication-BmYjAKgP.js.map → StepCompleteAuthentication-Cnv_QzG7.js.map} +1 -1
  163. package/chunk/{StepCompleteAuthentication-BmYjAKgP.js → StepCompleteAuthentication-D7NH3MFa.js} +21 -21
  164. package/chunk/{StepCompleteAuthentication-Yz3dPahs.js.map → StepCompleteAuthentication-D7NH3MFa.js.map} +1 -1
  165. package/chunk/{StepConsolation-DPjGqB9c.js → StepConsolation-BrzJnbYN.js} +9 -9
  166. package/chunk/{StepConsolation-DPjGqB9c.js.map → StepConsolation-BrzJnbYN.js.map} +1 -1
  167. package/chunk/{StepConsolation-CuDYCCAE.js → StepConsolation-C5ZHdmQ6.js} +9 -9
  168. package/chunk/{StepConsolation-CuDYCCAE.js.map → StepConsolation-C5ZHdmQ6.js.map} +1 -1
  169. package/chunk/{StepDocUpload-wmENbcHT.js → StepDocUpload-BuH-EW5U.js} +214 -214
  170. package/chunk/{StepDocUpload-wmENbcHT.js.map → StepDocUpload-BuH-EW5U.js.map} +1 -1
  171. package/chunk/{StepDocUpload-DXh4w_Gy.js → StepDocUpload-D2_e55pR.js} +221 -221
  172. package/chunk/{StepDocUpload-DXh4w_Gy.js.map → StepDocUpload-D2_e55pR.js.map} +1 -1
  173. package/chunk/{StepDriverLicensePersonalInfoComponent-DsWHV5ef.js → StepDriverLicensePersonalInfoComponent-DcVZb5ke.js} +32 -32
  174. package/chunk/{StepDriverLicensePersonalInfoComponent-C89uw9hB.js.map → StepDriverLicensePersonalInfoComponent-DcVZb5ke.js.map} +1 -1
  175. package/chunk/{StepDriverLicensePersonalInfoComponent-C89uw9hB.js → StepDriverLicensePersonalInfoComponent-UZoq9OhC.js} +36 -36
  176. package/chunk/{StepDriverLicensePersonalInfoComponent-DsWHV5ef.js.map → StepDriverLicensePersonalInfoComponent-UZoq9OhC.js.map} +1 -1
  177. package/chunk/{StepEmailLoop-qLTbVSgG.js → StepEmailLoop-138hnevc.js} +17 -17
  178. package/chunk/{StepEmailLoop-CgImGOHm.js.map → StepEmailLoop-138hnevc.js.map} +1 -1
  179. package/chunk/{StepEmailLoop-CgImGOHm.js → StepEmailLoop-p3PjfBvc.js} +17 -17
  180. package/chunk/{StepEmailLoop-qLTbVSgG.js.map → StepEmailLoop-p3PjfBvc.js.map} +1 -1
  181. package/chunk/{StepEmploymentPersonalInfo-DmWrWi0w.js → StepEmploymentPersonalInfo-CIb2V_Aj.js} +47 -47
  182. package/chunk/{StepEmploymentPersonalInfo-BokWlHYE.js.map → StepEmploymentPersonalInfo-CIb2V_Aj.js.map} +1 -1
  183. package/chunk/{StepEmploymentPersonalInfo-BokWlHYE.js → StepEmploymentPersonalInfo-txyihsja.js} +51 -51
  184. package/chunk/{StepEmploymentPersonalInfo-DmWrWi0w.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-C0xjZ49y.js → StepGeneralIdentityPersonalInfoComponent-Cgp_PX5L.js} +45 -45
  190. package/chunk/{StepGeneralIdentityPersonalInfoComponent-DtnhsOS8.js.map → StepGeneralIdentityPersonalInfoComponent-Cgp_PX5L.js.map} +1 -1
  191. package/chunk/{StepGeneralIdentityPersonalInfoComponent-DtnhsOS8.js → StepGeneralIdentityPersonalInfoComponent-D4wP5D1G.js} +41 -41
  192. package/chunk/{StepGeneralIdentityPersonalInfoComponent-C0xjZ49y.js.map → StepGeneralIdentityPersonalInfoComponent-D4wP5D1G.js.map} +1 -1
  193. package/chunk/{StepHybridIdentityPersonalInfoComponent-BrfsVxoL.js → StepHybridIdentityPersonalInfoComponent-Cez-TR1Z.js} +44 -44
  194. package/chunk/{StepHybridIdentityPersonalInfoComponent-BrfsVxoL.js.map → StepHybridIdentityPersonalInfoComponent-Cez-TR1Z.js.map} +1 -1
  195. package/chunk/{StepHybridIdentityPersonalInfoComponent-DtWwTb-w.js → StepHybridIdentityPersonalInfoComponent-ChtlT4nZ.js} +48 -48
  196. package/chunk/{StepHybridIdentityPersonalInfoComponent-DtWwTb-w.js.map → StepHybridIdentityPersonalInfoComponent-ChtlT4nZ.js.map} +1 -1
  197. package/chunk/StepIDCheckLoop-CX6VsvAJ.js +24 -0
  198. package/chunk/{StepIDCheckLoop-CqMy-kih.js.map → StepIDCheckLoop-CX6VsvAJ.js.map} +1 -1
  199. package/chunk/{StepIDCheckLoop-D3fkw6rR.js → StepIDCheckLoop-DFhu-v9n.js} +8 -8
  200. package/chunk/{StepIDCheckLoop-D3fkw6rR.js.map → StepIDCheckLoop-DFhu-v9n.js.map} +1 -1
  201. package/chunk/{StepIDCheckLoopOnfido-CPqxoGK2.js → StepIDCheckLoopOnfido-0o-ZdynC.js} +48 -48
  202. package/chunk/{StepIDCheckLoopOnfido-CuHGDZD7.js.map → StepIDCheckLoopOnfido-0o-ZdynC.js.map} +1 -1
  203. package/chunk/{StepIDCheckLoopOnfido-CuHGDZD7.js → StepIDCheckLoopOnfido-CiuUU7f9.js} +53 -53
  204. package/chunk/{StepIDCheckLoopOnfido-CPqxoGK2.js.map → StepIDCheckLoopOnfido-CiuUU7f9.js.map} +1 -1
  205. package/chunk/{StepIDCheckLoopRegula-DgO-1qZp.js → StepIDCheckLoopRegula-D5Ln2I62.js} +21 -21
  206. package/chunk/{StepIDCheckLoopRegula-B0OCBK0E.js.map → StepIDCheckLoopRegula-D5Ln2I62.js.map} +1 -1
  207. package/chunk/{StepIDCheckLoopRegula-B0OCBK0E.js → StepIDCheckLoopRegula-D94f7Ccr.js} +21 -21
  208. package/chunk/{StepIDCheckLoopRegula-DgO-1qZp.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-BkdO0M03.js.map → StepMemberPersonalInfo-BAjKLJCl.js.map} +1 -1
  223. package/chunk/StepMemberPersonalInfo-CI9Q06Ic.js +157 -0
  224. package/chunk/{StepMemberPersonalInfo-iiEeEHMd.js.map → StepMemberPersonalInfo-CI9Q06Ic.js.map} +1 -1
  225. package/chunk/{StepMoverPersonalInfo-B8ulp8r4.js → StepMoverPersonalInfo-CVT4pPa6.js} +56 -56
  226. package/chunk/{StepMoverPersonalInfo-B8ulp8r4.js.map → StepMoverPersonalInfo-CVT4pPa6.js.map} +1 -1
  227. package/chunk/StepMoverPersonalInfo-DIkMi5zU.js +140 -0
  228. package/chunk/{StepMoverPersonalInfo-ddojJbVP.js.map → StepMoverPersonalInfo-DIkMi5zU.js.map} +1 -1
  229. package/chunk/{StepOverrideComponent-1C4izDUn.js → StepOverrideComponent-B9HVSPlq.js} +16 -16
  230. package/chunk/{StepOverrideComponent-1C4izDUn.js.map → StepOverrideComponent-B9HVSPlq.js.map} +1 -1
  231. package/chunk/{StepOverrideComponent-CW4AqS1W.js → StepOverrideComponent-DOBT7C22.js} +16 -16
  232. package/chunk/{StepOverrideComponent-CW4AqS1W.js.map → StepOverrideComponent-DOBT7C22.js.map} +1 -1
  233. package/chunk/{StepSMSLoop-CYsBZ7tK.js → StepSMSLoop-BM7UE2tP.js} +20 -20
  234. package/chunk/{StepSMSLoop-ZFEdfzI7.js.map → StepSMSLoop-BM7UE2tP.js.map} +1 -1
  235. package/chunk/{StepSMSLoop-ZFEdfzI7.js → StepSMSLoop-Wr-MrFaf.js} +19 -19
  236. package/chunk/{StepSMSLoop-CYsBZ7tK.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-S4ajjj2k.js → StepSocialSecurityNumber-DepVz3V7.js} +26 -26
  240. package/chunk/{StepSocialSecurityNumber-S4ajjj2k.js.map → StepSocialSecurityNumber-DepVz3V7.js.map} +1 -1
  241. package/chunk/{StepSocialSecurityNumber-2cDHkFtc.js → StepSocialSecurityNumber-LcWg-zo5.js} +26 -26
  242. package/chunk/{StepSocialSecurityNumber-2cDHkFtc.js.map → StepSocialSecurityNumber-LcWg-zo5.js.map} +1 -1
  243. package/chunk/{StepStudentPersonalInfo-DNqHAtn-.js → StepStudentPersonalInfo-CxPq9ICS.js} +48 -48
  244. package/chunk/{StepStudentPersonalInfo-CPEy1x3k.js.map → StepStudentPersonalInfo-CxPq9ICS.js.map} +1 -1
  245. package/chunk/{StepStudentPersonalInfo-CPEy1x3k.js → StepStudentPersonalInfo-DQMWaRSa.js} +78 -78
  246. package/chunk/{StepStudentPersonalInfo-DNqHAtn-.js.map → StepStudentPersonalInfo-DQMWaRSa.js.map} +1 -1
  247. package/chunk/{StepSuccess-CAGzawu7.js → StepSuccess-C3a0CPsE.js} +30 -30
  248. package/chunk/{StepSuccess-CAGzawu7.js.map → StepSuccess-C3a0CPsE.js.map} +1 -1
  249. package/chunk/{StepSuccess-D_IWaCdF.js → StepSuccess-CvK7t1zN.js} +29 -29
  250. package/chunk/{StepSuccess-D_IWaCdF.js.map → StepSuccess-CvK7t1zN.js.map} +1 -1
  251. package/chunk/StepTeacherPersonalInfo-DhOL3_0H.js +154 -0
  252. package/chunk/{StepTeacherPersonalInfo-CJXMX4i-.js.map → StepTeacherPersonalInfo-DhOL3_0H.js.map} +1 -1
  253. package/chunk/StepTeacherPersonalInfo-_Wwkq-dn.js +150 -0
  254. package/chunk/{StepTeacherPersonalInfo-DuQ_2jzT.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-CTUcGZBk.js → TeacherSchoolComponent-3HVz97q_.js} +9 -9
  258. package/chunk/{TeacherSchoolComponent-3hHaynGt.js.map → TeacherSchoolComponent-3HVz97q_.js.map} +1 -1
  259. package/chunk/{TeacherSchoolComponent-3hHaynGt.js → TeacherSchoolComponent-BwLUGmNi.js} +9 -9
  260. package/chunk/{TeacherSchoolComponent-CTUcGZBk.js.map → TeacherSchoolComponent-BwLUGmNi.js.map} +1 -1
  261. package/chunk/{TestingRouteOverrides-MQkB4gbS.js → TestingRouteOverrides-CAGESMw9.js} +26 -26
  262. package/chunk/{TestingRouteOverrides-B51tlkPN.js.map → TestingRouteOverrides-CAGESMw9.js.map} +1 -1
  263. package/chunk/TestingRouteOverrides-CrhfSmLr.js +77 -0
  264. package/chunk/{TestingRouteOverrides-MQkB4gbS.js.map → TestingRouteOverrides-CrhfSmLr.js.map} +1 -1
  265. package/chunk/ThreatMetrix-D_TbL50B.js +4 -4
  266. package/chunk/{VerificationApiClient-BuZNO3k4.js → VerificationApiClient-BcE3SjuJ.js} +377 -414
  267. package/chunk/{VerificationApiClient-CSmDqqJd.js.map → VerificationApiClient-BcE3SjuJ.js.map} +1 -1
  268. package/chunk/{VerificationApiClient-CSmDqqJd.js → VerificationApiClient-fJ7P4ejD.js} +424 -421
  269. package/chunk/{VerificationApiClient-BuZNO3k4.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-AmQexyFX.js → countryUtils-AR9k3KRg.js} +5 -5
  274. package/chunk/{countryUtils-AmQexyFX.js.map → countryUtils-AR9k3KRg.js.map} +1 -1
  275. package/chunk/countryUtils-DWqId-zY.js +12 -0
  276. package/chunk/{countryUtils-_b1AEFmu.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-a6BpIuFH.js → downshift.esm-BKI3sFd7.js} +7 -7
  281. package/chunk/{downshift.esm-a6BpIuFH.js.map → downshift.esm-BKI3sFd7.js.map} +1 -1
  282. package/chunk/{downshift.esm-TD1ZHIGw.js → downshift.esm-DryiNDJI.js} +7 -7
  283. package/chunk/{downshift.esm-TD1ZHIGw.js.map → downshift.esm-DryiNDJI.js.map} +1 -1
  284. package/chunk/el-Bv_XQ0FX.js +4 -4
  285. package/chunk/{empties-Cng4q8t3.js → empties-B6naRhes.js} +64 -73
  286. package/chunk/empties-B6naRhes.js.map +1 -0
  287. package/chunk/{empties-B6yh07nS.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-D2tFSceS.js → hooks-C15H5pD-.js} +481 -481
  301. package/chunk/hooks-C15H5pD-.js.map +1 -0
  302. package/chunk/{hooks-B179G474.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-Ft_65Lzo.js → intl-e5WHiYfA.js} +7 -6
  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-DOqJBLjd.js → jsx-runtime-Ini3eO9_.js} +18 -18
  314. package/chunk/{jsx-runtime-DOqJBLjd.js.map → jsx-runtime-Ini3eO9_.js.map} +1 -1
  315. package/chunk/{jsx-runtime-Bq9F3xvK.js → jsx-runtime-LqzCS-0D.js} +18 -18
  316. package/chunk/{jsx-runtime-Bq9F3xvK.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-CoMRz_O2.js → mocks-DGc1byho.js} +10 -9
  323. package/chunk/{mocks-CoMRz_O2.js.map → mocks-DGc1byho.js.map} +1 -1
  324. package/chunk/{mocks-C1va3xs9.js → mocks-RU9BGNOn.js} +9 -8
  325. package/chunk/{mocks-C1va3xs9.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-Co1RW3vc.js → options-pBCAJBwS.js} +7 -6
  331. package/chunk/options-pBCAJBwS.js.map +1 -0
  332. package/chunk/pl-X0qJw7IS.js +4 -4
  333. package/chunk/{programThemeGetters-De_Bowzi.js → programThemeGetters-C9Sw0RZq.js} +45 -45
  334. package/chunk/{programThemeGetters-D2JwF5p-.js.map → programThemeGetters-C9Sw0RZq.js.map} +1 -1
  335. package/chunk/programThemeGetters-uLsgGat1.js +153 -0
  336. package/chunk/{programThemeGetters-De_Bowzi.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-Cz53Qfgi.js → refs-CGvEbCaw.js} +5 -5
  340. package/chunk/{refs-BgqdAkVI.js.map → refs-CGvEbCaw.js.map} +1 -1
  341. package/chunk/{refs-BgqdAkVI.js → refs-CI3K5ndt.js} +5 -5
  342. package/chunk/{refs-Cz53Qfgi.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-DBzqwN2m.js → useMetrics-BrHWTzbP.js} +19 -19
  366. package/chunk/{useMetrics-saY5Oa2a.js.map → useMetrics-BrHWTzbP.js.map} +1 -1
  367. package/chunk/{useMetrics-saY5Oa2a.js → useMetrics-O5xTFm6y.js} +19 -19
  368. package/chunk/{useMetrics-DBzqwN2m.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 +4 -4
  376. package/sheerid.css +4 -4
  377. package/sheerid.js +284 -280
  378. package/sheerid.js.map +1 -1
  379. package/chunk/ApiUrls-Cn6zYY4_.js +0 -40
  380. package/chunk/ApiUrls-Cn6zYY4_.js.map +0 -1
  381. package/chunk/ApiUrls-DtgMSGlO.js.map +0 -1
  382. package/chunk/FormFooterComponent-BuRQRQFI.js.map +0 -1
  383. package/chunk/PersonalInfoStepSubmitButton-DvMU95pj.js.map +0 -1
  384. package/chunk/PersonalInfoStepSubmitButton-_wFfZCyV.js.map +0 -1
  385. package/chunk/StatusComponent-C--lHDG1.js.map +0 -1
  386. package/chunk/StatusComponent-DUPrDBFL.js.map +0 -1
  387. package/chunk/StepActiveMilitaryPersonalInfoComponent-BQ1iNc2_.js +0 -179
  388. package/chunk/StepActiveMilitaryPersonalInfoComponent-BQ1iNc2_.js.map +0 -1
  389. package/chunk/StepActiveMilitaryPersonalInfoComponent-KweeN4OQ.js +0 -183
  390. package/chunk/StepActiveMilitaryPersonalInfoComponent-KweeN4OQ.js.map +0 -1
  391. package/chunk/StepAgePersonalInfo-Bqy4A9R_.js +0 -170
  392. package/chunk/StepCollectMilitaryStatusComponent-CNctoDoi.js +0 -13
  393. package/chunk/StepCollectMilitaryStatusComponent-DCVnycL7.js +0 -9
  394. package/chunk/StepCollectPersonalInfo-BOCmDplo.js +0 -358
  395. package/chunk/StepCollectPersonalInfo-BOCmDplo.js.map +0 -1
  396. package/chunk/StepCollectPersonalInfo-R9fs-nQd.js +0 -362
  397. package/chunk/StepCollectPersonalInfo-R9fs-nQd.js.map +0 -1
  398. package/chunk/StepFirstResponderPersonalInfo--u-ggEEq.js +0 -172
  399. package/chunk/StepFirstResponderPersonalInfo--u-ggEEq.js.map +0 -1
  400. package/chunk/StepFirstResponderPersonalInfo-Cs4BiLuq.js +0 -176
  401. package/chunk/StepFirstResponderPersonalInfo-Cs4BiLuq.js.map +0 -1
  402. package/chunk/StepIDCheckLoop-CqMy-kih.js +0 -24
  403. package/chunk/StepInactiveMilitaryPersonalInfoComponent-BUL3KyDd.js +0 -237
  404. package/chunk/StepInactiveMilitaryPersonalInfoComponent-BUL3KyDd.js.map +0 -1
  405. package/chunk/StepInactiveMilitaryPersonalInfoComponent-DD3ijaER.js +0 -241
  406. package/chunk/StepInactiveMilitaryPersonalInfoComponent-DD3ijaER.js.map +0 -1
  407. package/chunk/StepLicensedProfessionalPersonalInfo-BoMh77dS.js +0 -190
  408. package/chunk/StepLicensedProfessionalPersonalInfo-BoMh77dS.js.map +0 -1
  409. package/chunk/StepLicensedProfessionalPersonalInfo-CJUnLQJn.js +0 -186
  410. package/chunk/StepLicensedProfessionalPersonalInfo-CJUnLQJn.js.map +0 -1
  411. package/chunk/StepLowIncomePersonalInfo-KsWVTeO_.js +0 -223
  412. package/chunk/StepLowIncomePersonalInfo-KsWVTeO_.js.map +0 -1
  413. package/chunk/StepLowIncomePersonalInfo-WixW7jSE.js +0 -227
  414. package/chunk/StepLowIncomePersonalInfo-WixW7jSE.js.map +0 -1
  415. package/chunk/StepMedicalProfessionalPersonalInfo-CkP3ijlv.js +0 -203
  416. package/chunk/StepMedicalProfessionalPersonalInfo-CkP3ijlv.js.map +0 -1
  417. package/chunk/StepMedicalProfessionalPersonalInfo-ZWnPprFj.js +0 -207
  418. package/chunk/StepMedicalProfessionalPersonalInfo-ZWnPprFj.js.map +0 -1
  419. package/chunk/StepMemberPersonalInfo-BkdO0M03.js +0 -157
  420. package/chunk/StepMemberPersonalInfo-iiEeEHMd.js +0 -153
  421. package/chunk/StepMoverPersonalInfo-ddojJbVP.js +0 -140
  422. package/chunk/StepTeacherPersonalInfo-CJXMX4i-.js +0 -150
  423. package/chunk/StepTeacherPersonalInfo-DuQ_2jzT.js +0 -154
  424. package/chunk/TestingRouteOverrides-B51tlkPN.js +0 -77
  425. package/chunk/VerificationApiUtils-BBxvDM3j.js +0 -25
  426. package/chunk/VerificationApiUtils-BBxvDM3j.js.map +0 -1
  427. package/chunk/VerificationApiUtils-CFvFUGWV.js +0 -21
  428. package/chunk/VerificationApiUtils-CFvFUGWV.js.map +0 -1
  429. package/chunk/countryUtils-_b1AEFmu.js +0 -12
  430. package/chunk/empties-B6yh07nS.js.map +0 -1
  431. package/chunk/empties-Cng4q8t3.js.map +0 -1
  432. package/chunk/hooks-B179G474.js.map +0 -1
  433. package/chunk/hooks-D2tFSceS.js.map +0 -1
  434. package/chunk/intl-Ft_65Lzo.js.map +0 -1
  435. package/chunk/militaryStepHelpers-CJ4smMQ2.js +0 -22
  436. package/chunk/militaryStepHelpers-CJ4smMQ2.js.map +0 -1
  437. package/chunk/militaryStepHelpers-tnlMV7Ug.js +0 -26
  438. package/chunk/militaryStepHelpers-tnlMV7Ug.js.map +0 -1
  439. package/chunk/options-Co1RW3vc.js.map +0 -1
  440. package/chunk/programThemeGetters-D2JwF5p-.js +0 -153
  441. package/chunk/stepComponentHelpers-2Sq02uha.js +0 -174
  442. package/chunk/stepComponentHelpers-2Sq02uha.js.map +0 -1
  443. package/chunk/stepComponentHelpers-uJDQGcgs.js +0 -170
  444. package/chunk/stepComponentHelpers-uJDQGcgs.js.map +0 -1
  445. package/chunk/useCollectFieldsEndpoint-BU9xoRkC.js +0 -37
  446. package/chunk/useCollectFieldsEndpoint-BU9xoRkC.js.map +0 -1
  447. package/chunk/useCollectFieldsEndpoint-EgQ_hVpj.js +0 -41
  448. package/chunk/useCollectFieldsEndpoint-EgQ_hVpj.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.276.0
8
- * BUILD_TIMESTAMP: 1787688588835
9
- * BUILD_DATE: Tue Aug 25 2026 20:09:48 GMT+0000 (Coordinated Universal Time)
10
- * BUILD_COMMIT: 2d25c43e9725e6fd856b82b1bdf08408dfb6a86b
11
- */
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-Ft_65Lzo.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,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.276.0
8
- * BUILD_TIMESTAMP: 1787688588835
9
- * BUILD_DATE: Tue Aug 25 2026 20:09:48 GMT+0000 (Coordinated Universal Time)
10
- * BUILD_COMMIT: 2d25c43e9725e6fd856b82b1bdf08408dfb6a86b
11
- */
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-Ft_65Lzo.js";
13
- import { n as d } from "./empties-Cng4q8t3.js";
14
- import { n as f, r as p, t as m } from "./programThemeGetters-D2JwF5p-.js";
15
- import { c as h, s as g, u as _ } from "./hooks-D2tFSceS.js";
16
- import { n as v, r as y } from "./refs-BgqdAkVI.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) => 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)), H = (e, t) => p(e).map((e) => ({
149
- value: e,
150
- label: t.formatHTMLMessage({
151
- id: `states.${e}`,
152
- defaultMessage: e
153
- })
154
- })), U = (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
- }), W = (e, t) => m(e).map((e) => ({
159
- value: e,
160
- label: t.formatHTMLMessage({
161
- id: `locales.${e}`,
162
- defaultMessage: e
163
- })
164
- })), G = (e) => e.length > 0 ? e[0] : {
165
- value: "US",
166
- label: "United States"
167
- }, K = (e, t, n) => a(e, (e) => {
168
- e[t] = n;
169
- }), q = (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
- }, J = (e, t = o()) => t.formFieldConfig.find((t) => t.fieldId === e);
173
- //#endregion
174
- export { S as C, T as S, K as _, k as a, z as b, j as c, q as d, V as f, C as g, M as h, O as i, G as l, R as m, A as n, P as o, D as p, W as r, H as s, B as t, J as u, U as v, x as w, w as x, E as y };
@@ -1 +0,0 @@
1
- {"version":3,"file":"stepComponentHelpers-2Sq02uha.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 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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b1bdf08408dfb6a86b
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-Co1RW3vc.js";
9
- import { n as d } from "./empties-B6yh07nS.js";
10
- import { n as f, r as p, t as m } from "./programThemeGetters-De_Bowzi.js";
11
- import { c as h, s as g, u as _ } from "./hooks-B179G474.js";
12
- import { n as v, r as y } from "./refs-Cz53Qfgi.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) => 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)), H = (e, t) => p(e).map((e) => ({
145
- value: e,
146
- label: t.formatHTMLMessage({
147
- id: `states.${e}`,
148
- defaultMessage: e
149
- })
150
- })), U = (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
- }), W = (e, t) => m(e).map((e) => ({
155
- value: e,
156
- label: t.formatHTMLMessage({
157
- id: `locales.${e}`,
158
- defaultMessage: e
159
- })
160
- })), G = (e) => e.length > 0 ? e[0] : {
161
- value: "US",
162
- label: "United States"
163
- }, K = (e, t, n) => s(e, (e) => {
164
- e[t] = n;
165
- }), q = (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
- }, J = (e, t = u()) => t.formFieldConfig.find((t) => t.fieldId === e);
169
- //#endregion
170
- export { S as C, T as S, K as _, k as a, z as b, j as c, q as d, V as f, C as g, M as h, O as i, G as l, R as m, A as n, P as o, D as p, W as r, H as s, B as t, J as u, U as v, x as w, w as x, E as y };
@@ -1 +0,0 @@
1
- {"version":3,"file":"stepComponentHelpers-uJDQGcgs.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 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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K,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,37 +0,0 @@
1
-
2
- /**
3
- * VERSION: 2.276.0
4
- * BUILD_TIMESTAMP: 1787688581348
5
- * BUILD_DATE: Tue Aug 25 2026 20:09:41 GMT+0000 (Coordinated Universal Time)
6
- * BUILD_COMMIT: 2d25c43e9725e6fd856b82b1bdf08408dfb6a86b
7
- */
8
- import { Jt as e, Wt as t, lt as n } from "./options-Co1RW3vc.js";
9
- import { c as r } from "./jsx-runtime-DOqJBLjd.js";
10
- import { u as i } from "./FormFooterComponent-BEDJQK_Z.js";
11
- import { t as a } from "./VerificationApiUtils-CFvFUGWV.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-BU9xoRkC.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"}