@sheerid/jslib 2.301.0 → 2.303.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 (373) hide show
  1. package/_mysheerid-preview.css +4 -4
  2. package/_mysheerid-preview.js +43 -43
  3. package/chunk/{AddressComponent-BPwj5Sil.js → AddressComponent-C0MNLqbV.js} +6 -6
  4. package/chunk/{AddressComponent-BEWbgyyU.js.map → AddressComponent-C0MNLqbV.js.map} +1 -1
  5. package/chunk/{AddressComponent-BEWbgyyU.js → AddressComponent-Iqr2nkzk.js} +6 -6
  6. package/chunk/{AddressComponent-BPwj5Sil.js.map → AddressComponent-Iqr2nkzk.js.map} +1 -1
  7. package/chunk/AnnouncingHeader-CnV2m0Ak.js +4 -4
  8. package/chunk/AnnouncingHeader-zH7WLU2-.js +4 -4
  9. package/chunk/{BirthDateComponent-DObuxy1i.js → BirthDateComponent-CCVzkOMc.js} +6 -6
  10. package/chunk/{BirthDateComponent-BNfg7_US.js.map → BirthDateComponent-CCVzkOMc.js.map} +1 -1
  11. package/chunk/{BirthDateComponent-BNfg7_US.js → BirthDateComponent-DX43xuNP.js} +6 -6
  12. package/chunk/{BirthDateComponent-DObuxy1i.js.map → BirthDateComponent-DX43xuNP.js.map} +1 -1
  13. package/chunk/{CaptchaComponent-Bph-Hx_P.js → CaptchaComponent-BeK_U23J.js} +10 -10
  14. package/chunk/{CaptchaComponent-Bph-Hx_P.js.map → CaptchaComponent-BeK_U23J.js.map} +1 -1
  15. package/chunk/{CaptchaComponent-Ck6KIKN2.js → CaptchaComponent-CZCwnbD5.js} +10 -10
  16. package/chunk/{CaptchaComponent-Ck6KIKN2.js.map → CaptchaComponent-CZCwnbD5.js.map} +1 -1
  17. package/chunk/{ChangeLocaleComponent-D7_OjTLl.js → ChangeLocaleComponent-DwBHbLKW.js} +7 -7
  18. package/chunk/{ChangeLocaleComponent-CALJO1x8.js.map → ChangeLocaleComponent-DwBHbLKW.js.map} +1 -1
  19. package/chunk/{ChangeLocaleComponent-CALJO1x8.js → ChangeLocaleComponent-l2sunrPk.js} +7 -7
  20. package/chunk/{ChangeLocaleComponent-D7_OjTLl.js.map → ChangeLocaleComponent-l2sunrPk.js.map} +1 -1
  21. package/chunk/{City-CiwdPtNB.js → City-BwQWs5re.js} +6 -6
  22. package/chunk/{City-CiwdPtNB.js.map → City-BwQWs5re.js.map} +1 -1
  23. package/chunk/{City-DJsn305o.js → City-D0Jiq-D2.js} +6 -6
  24. package/chunk/{City-DJsn305o.js.map → City-D0Jiq-D2.js.map} +1 -1
  25. package/chunk/{CollegeNameComponent-5EclWuRd.js → CollegeNameComponent-BqJGJY5H.js} +8 -8
  26. package/chunk/{CollegeNameComponent-5EclWuRd.js.map → CollegeNameComponent-BqJGJY5H.js.map} +1 -1
  27. package/chunk/{CollegeNameComponent-KJePycZo.js → CollegeNameComponent-DlDNav1B.js} +8 -8
  28. package/chunk/{CollegeNameComponent-KJePycZo.js.map → CollegeNameComponent-DlDNav1B.js.map} +1 -1
  29. package/chunk/CopyToClipboardComponent-BdrpxpHJ.js +4 -4
  30. package/chunk/CopyToClipboardComponent-Dm3-3x4b.js +4 -4
  31. package/chunk/{CountryComponentWrapper-BNw5A52k.js → CountryComponentWrapper-BRjVzl-k.js} +10 -10
  32. package/chunk/{CountryComponentWrapper-BNw5A52k.js.map → CountryComponentWrapper-BRjVzl-k.js.map} +1 -1
  33. package/chunk/{CountryComponentWrapper-BnK7IyJk.js → CountryComponentWrapper-FbE1YIcg.js} +10 -10
  34. package/chunk/{CountryComponentWrapper-BnK7IyJk.js.map → CountryComponentWrapper-FbE1YIcg.js.map} +1 -1
  35. package/chunk/{DischargeDateComponent-_xLzJ8wX.js → DischargeDateComponent-2hFDESgo.js} +9 -9
  36. package/chunk/{DischargeDateComponent-Vf4nB0iJ.js.map → DischargeDateComponent-2hFDESgo.js.map} +1 -1
  37. package/chunk/{DischargeDateComponent-Vf4nB0iJ.js → DischargeDateComponent-DeDq2Wj7.js} +9 -9
  38. package/chunk/{DischargeDateComponent-_xLzJ8wX.js.map → DischargeDateComponent-DeDq2Wj7.js.map} +1 -1
  39. package/chunk/{DriverLicenseNumberComponent-C1BLt82I.js → DriverLicenseNumberComponent-BsVBlhfi.js} +6 -6
  40. package/chunk/{DriverLicenseNumberComponent-C1BLt82I.js.map → DriverLicenseNumberComponent-BsVBlhfi.js.map} +1 -1
  41. package/chunk/{DriverLicenseNumberComponent-Dbjso2Dz.js → DriverLicenseNumberComponent-D7VZTYj8.js} +6 -6
  42. package/chunk/{DriverLicenseNumberComponent-Dbjso2Dz.js.map → DriverLicenseNumberComponent-D7VZTYj8.js.map} +1 -1
  43. package/chunk/{EmailLoopPending-Ds2qvvmE.js → EmailLoopPending-BKSSa9G1.js} +8 -8
  44. package/chunk/{EmailLoopPending-BNl95PRR.js.map → EmailLoopPending-BKSSa9G1.js.map} +1 -1
  45. package/chunk/{EmailLoopPending-BNl95PRR.js → EmailLoopPending-LfnqoPt_.js} +8 -8
  46. package/chunk/{EmailLoopPending-Ds2qvvmE.js.map → EmailLoopPending-LfnqoPt_.js.map} +1 -1
  47. package/chunk/{ExtraMessage-AR2qmGJj.js → ExtraMessage-DQ-khyDG.js} +5 -5
  48. package/chunk/{ExtraMessage-AR2qmGJj.js.map → ExtraMessage-DQ-khyDG.js.map} +1 -1
  49. package/chunk/{ExtraMessage-CfJZz8mR.js → ExtraMessage-SUFzlSCv.js} +5 -5
  50. package/chunk/{ExtraMessage-CfJZz8mR.js.map → ExtraMessage-SUFzlSCv.js.map} +1 -1
  51. package/chunk/{FirstResponderOrganizationComponent-GUaaXkDp.js → FirstResponderOrganizationComponent-2czrRImt.js} +8 -8
  52. package/chunk/{FirstResponderOrganizationComponent-CCc9dchN.js.map → FirstResponderOrganizationComponent-2czrRImt.js.map} +1 -1
  53. package/chunk/{FirstResponderOrganizationComponent-CCc9dchN.js → FirstResponderOrganizationComponent-zwpAWGKM.js} +8 -8
  54. package/chunk/{FirstResponderOrganizationComponent-GUaaXkDp.js.map → FirstResponderOrganizationComponent-zwpAWGKM.js.map} +1 -1
  55. package/chunk/{FormFieldInputSelect-BH3T9P7y.js → FormFieldInputSelect-CFnN3-Xc.js} +5 -5
  56. package/chunk/{FormFieldInputSelect-BH3T9P7y.js.map → FormFieldInputSelect-CFnN3-Xc.js.map} +1 -1
  57. package/chunk/{FormFieldInputSelect-CciL8giC.js → FormFieldInputSelect-DsLOV8wM.js} +5 -5
  58. package/chunk/{FormFieldInputSelect-CciL8giC.js.map → FormFieldInputSelect-DsLOV8wM.js.map} +1 -1
  59. package/chunk/FormFieldLayout-D1tb5nAu.js +4 -4
  60. package/chunk/FormFieldLayout-Dt_dMiDh.js +4 -4
  61. package/chunk/FormFieldText-BU2NBm1H.js +4 -4
  62. package/chunk/FormFieldText-CsFISbyw.js +4 -4
  63. package/chunk/{FormFieldTypeahead-BkSBFcxB.js → FormFieldTypeahead-BqHhdA5h.js} +10 -10
  64. package/chunk/{FormFieldTypeahead-BkSBFcxB.js.map → FormFieldTypeahead-BqHhdA5h.js.map} +1 -1
  65. package/chunk/{FormFieldTypeahead-tWrDIZmx.js → FormFieldTypeahead-CX5FfZx7.js} +10 -10
  66. package/chunk/{FormFieldTypeahead-tWrDIZmx.js.map → FormFieldTypeahead-CX5FfZx7.js.map} +1 -1
  67. package/chunk/{FormFooterComponent-CUDMJyyc.js → FormFooterComponent-CSs6B6_O.js} +372 -368
  68. package/chunk/FormFooterComponent-CSs6B6_O.js.map +1 -0
  69. package/chunk/{FormFooterComponent-CfWYgtl_.js → FormFooterComponent-Cgq5-kvO.js} +171 -167
  70. package/chunk/FormFooterComponent-Cgq5-kvO.js.map +1 -0
  71. package/chunk/{FormSelectChoice-S-YrbLkq.js → FormSelectChoice-BM2vOG_C.js} +6 -6
  72. package/chunk/{FormSelectChoice-BnA3ckgQ.js.map → FormSelectChoice-BM2vOG_C.js.map} +1 -1
  73. package/chunk/{FormSelectChoice-BnA3ckgQ.js → FormSelectChoice-kbIiwSO2.js} +6 -6
  74. package/chunk/{FormSelectChoice-S-YrbLkq.js.map → FormSelectChoice-kbIiwSO2.js.map} +1 -1
  75. package/chunk/InputText-CuBi-ytU.js +4 -4
  76. package/chunk/InputText-DMztCQmi.js +4 -4
  77. package/chunk/{LicensedProfessionalOrganizationComponent-DHmw8jWm.js → LicensedProfessionalOrganizationComponent-B72AjsZA.js} +8 -8
  78. package/chunk/{LicensedProfessionalOrganizationComponent-BP89Nm3A.js.map → LicensedProfessionalOrganizationComponent-B72AjsZA.js.map} +1 -1
  79. package/chunk/{LicensedProfessionalOrganizationComponent-BP89Nm3A.js → LicensedProfessionalOrganizationComponent-CSKSVIey.js} +8 -8
  80. package/chunk/{LicensedProfessionalOrganizationComponent-DHmw8jWm.js.map → LicensedProfessionalOrganizationComponent-CSKSVIey.js.map} +1 -1
  81. package/chunk/{LogoComponent-BqLuh4fi.js → LogoComponent-BhyH_xRq.js} +5 -5
  82. package/chunk/{LogoComponent-BqLuh4fi.js.map → LogoComponent-BhyH_xRq.js.map} +1 -1
  83. package/chunk/{LogoComponent-vyS7eYVw.js → LogoComponent-DStOPcJ4.js} +5 -5
  84. package/chunk/{LogoComponent-vyS7eYVw.js.map → LogoComponent-DStOPcJ4.js.map} +1 -1
  85. package/chunk/{LowIncomeOrganizationComponent-BM_yqXAQ.js → LowIncomeOrganizationComponent-BDrMa0E2.js} +9 -9
  86. package/chunk/{LowIncomeOrganizationComponent-e_RL80P8.js.map → LowIncomeOrganizationComponent-BDrMa0E2.js.map} +1 -1
  87. package/chunk/{LowIncomeOrganizationComponent-e_RL80P8.js → LowIncomeOrganizationComponent-BgOWD-ZC.js} +9 -9
  88. package/chunk/{LowIncomeOrganizationComponent-BM_yqXAQ.js.map → LowIncomeOrganizationComponent-BgOWD-ZC.js.map} +1 -1
  89. package/chunk/{MedicalProfessionalOrganizationComponent-Dy2GaHE_.js → MedicalProfessionalOrganizationComponent-BxH3qrmJ.js} +8 -8
  90. package/chunk/{MedicalProfessionalOrganizationComponent-CmmAZzPN.js.map → MedicalProfessionalOrganizationComponent-BxH3qrmJ.js.map} +1 -1
  91. package/chunk/{MedicalProfessionalOrganizationComponent-CmmAZzPN.js → MedicalProfessionalOrganizationComponent-DPJg8iU1.js} +8 -8
  92. package/chunk/{MedicalProfessionalOrganizationComponent-Dy2GaHE_.js.map → MedicalProfessionalOrganizationComponent-DPJg8iU1.js.map} +1 -1
  93. package/chunk/{MemberIdComponent-DNv9n8Hb.js → MemberIdComponent-OOPddp4y.js} +6 -6
  94. package/chunk/{MemberIdComponent-CCdfCvZ0.js.map → MemberIdComponent-OOPddp4y.js.map} +1 -1
  95. package/chunk/{MemberIdComponent-CCdfCvZ0.js → MemberIdComponent-oL_pc9Fd.js} +6 -6
  96. package/chunk/{MemberIdComponent-DNv9n8Hb.js.map → MemberIdComponent-oL_pc9Fd.js.map} +1 -1
  97. package/chunk/{MembershipOrganizationComponent-BQz6Evf7.js → MembershipOrganizationComponent-BtHBKZS0.js} +8 -8
  98. package/chunk/{MembershipOrganizationComponent-6cGIm01y.js.map → MembershipOrganizationComponent-BtHBKZS0.js.map} +1 -1
  99. package/chunk/{MembershipOrganizationComponent-6cGIm01y.js → MembershipOrganizationComponent-DKvB2ONr.js} +8 -8
  100. package/chunk/{MembershipOrganizationComponent-BQz6Evf7.js.map → MembershipOrganizationComponent-DKvB2ONr.js.map} +1 -1
  101. package/chunk/{Message-DQ6jJtVh.js → Message-COzkFETu.js} +1896 -1902
  102. package/chunk/{Message-DQ6jJtVh.js.map → Message-COzkFETu.js.map} +1 -1
  103. package/chunk/{Message-BhR899qn.js → Message-CpaZwHl9.js} +227 -233
  104. package/chunk/Message-CpaZwHl9.js.map +1 -0
  105. package/chunk/Onfido-CTCgAwnB.js +4 -4
  106. package/chunk/{PersonalInfoStepSubmitButton-84FEQ5RF.js → PersonalInfoStepSubmitButton-B4xXqxuH.js} +8 -8
  107. package/chunk/{PersonalInfoStepSubmitButton-84FEQ5RF.js.map → PersonalInfoStepSubmitButton-B4xXqxuH.js.map} +1 -1
  108. package/chunk/{PersonalInfoStepSubmitButton-BSWQ9V8r.js → PersonalInfoStepSubmitButton-DdY477K7.js} +8 -8
  109. package/chunk/{PersonalInfoStepSubmitButton-BSWQ9V8r.js.map → PersonalInfoStepSubmitButton-DdY477K7.js.map} +1 -1
  110. package/chunk/{PersonalInfoStepWrapper-DPH_RA63.js → PersonalInfoStepWrapper-I5LL6qWv.js} +6 -6
  111. package/chunk/{PersonalInfoStepWrapper-DPH_RA63.js.map → PersonalInfoStepWrapper-I5LL6qWv.js.map} +1 -1
  112. package/chunk/{PersonalInfoStepWrapper-DR_Aiqs5.js → PersonalInfoStepWrapper-ZSbYW8X3.js} +5 -5
  113. package/chunk/{PersonalInfoStepWrapper-DR_Aiqs5.js.map → PersonalInfoStepWrapper-ZSbYW8X3.js.map} +1 -1
  114. package/chunk/{PostalCodeComponent-Cehw9Ixk.js → PostalCodeComponent-CzSv-hLR.js} +6 -6
  115. package/chunk/{PostalCodeComponent-Cehw9Ixk.js.map → PostalCodeComponent-CzSv-hLR.js.map} +1 -1
  116. package/chunk/{PostalCodeComponent-DS7sq5Fu.js → PostalCodeComponent-D78vjcv_.js} +6 -6
  117. package/chunk/{PostalCodeComponent-DS7sq5Fu.js.map → PostalCodeComponent-D78vjcv_.js.map} +1 -1
  118. package/chunk/{SSN-B-fVx0mH.js → SSN-BEYbIs4i.js} +6 -6
  119. package/chunk/{SSN-B-fVx0mH.js.map → SSN-BEYbIs4i.js.map} +1 -1
  120. package/chunk/{SSN-CEtUaJIx.js → SSN-BVqvyxxj.js} +6 -6
  121. package/chunk/{SSN-CEtUaJIx.js.map → SSN-BVqvyxxj.js.map} +1 -1
  122. package/chunk/{StateSelectComponent-Cb-vaXK4.js → StateSelectComponent-Dnqp7nL4.js} +7 -7
  123. package/chunk/{StateSelectComponent-Cb-vaXK4.js.map → StateSelectComponent-Dnqp7nL4.js.map} +1 -1
  124. package/chunk/{StateSelectComponent-m6gRTPzD.js → StateSelectComponent-jAsysEGR.js} +7 -7
  125. package/chunk/{StateSelectComponent-m6gRTPzD.js.map → StateSelectComponent-jAsysEGR.js.map} +1 -1
  126. package/chunk/{StatusComponent-DxyUt9Qq.js → StatusComponent-B4IbsfFv.js} +7 -7
  127. package/chunk/{StatusComponent-BpHODprb.js.map → StatusComponent-B4IbsfFv.js.map} +1 -1
  128. package/chunk/{StatusComponent-BpHODprb.js → StatusComponent-BtzBYIzi.js} +7 -7
  129. package/chunk/{StatusComponent-DxyUt9Qq.js.map → StatusComponent-BtzBYIzi.js.map} +1 -1
  130. package/chunk/{StepAgePersonalInfo-CJRpFE9T.js → StepAgePersonalInfo-Ds6b-w3n.js} +18 -18
  131. package/chunk/{StepAgePersonalInfo-CGje8ZhE.js.map → StepAgePersonalInfo-Ds6b-w3n.js.map} +1 -1
  132. package/chunk/{StepAgePersonalInfo-CGje8ZhE.js → StepAgePersonalInfo-SUYKCYCd.js} +18 -18
  133. package/chunk/{StepAgePersonalInfo-CJRpFE9T.js.map → StepAgePersonalInfo-SUYKCYCd.js.map} +1 -1
  134. package/chunk/StepCard-DJR-l3sW.js +4 -4
  135. package/chunk/StepCard-wwTRGIhn.js +4 -4
  136. package/chunk/{StepCollectIdentifier-DfMHAYtu.js → StepCollectIdentifier-BLbccnb2.js} +7 -7
  137. package/chunk/{StepCollectIdentifier-DfMHAYtu.js.map → StepCollectIdentifier-BLbccnb2.js.map} +1 -1
  138. package/chunk/{StepCollectIdentifier-3g3B0kpM.js → StepCollectIdentifier-DPnf9Cmy.js} +7 -7
  139. package/chunk/{StepCollectIdentifier-3g3B0kpM.js.map → StepCollectIdentifier-DPnf9Cmy.js.map} +1 -1
  140. package/chunk/{StepCollectMilitaryPersonalInfoComponent-lBsFco-g.js → StepCollectMilitaryPersonalInfoComponent-Bwg-sSDu.js} +22 -22
  141. package/chunk/{StepCollectMilitaryPersonalInfoComponent-BTE4o83C.js.map → StepCollectMilitaryPersonalInfoComponent-Bwg-sSDu.js.map} +1 -1
  142. package/chunk/{StepCollectMilitaryPersonalInfoComponent-BTE4o83C.js → StepCollectMilitaryPersonalInfoComponent-DHB17n2V.js} +22 -22
  143. package/chunk/{StepCollectMilitaryPersonalInfoComponent-lBsFco-g.js.map → StepCollectMilitaryPersonalInfoComponent-DHB17n2V.js.map} +1 -1
  144. package/chunk/{StepCollectPersonalInfo-Qmt3szQe.js → StepCollectPersonalInfo-D8gZT28k.js} +32 -32
  145. package/chunk/{StepCollectPersonalInfo-D7tF7Icl.js.map → StepCollectPersonalInfo-D8gZT28k.js.map} +1 -1
  146. package/chunk/{StepCollectPersonalInfo-D7tF7Icl.js → StepCollectPersonalInfo-DgsHZW8E.js} +32 -32
  147. package/chunk/{StepCollectPersonalInfo-Qmt3szQe.js.map → StepCollectPersonalInfo-DgsHZW8E.js.map} +1 -1
  148. package/chunk/{StepCompleteAuthentication-VpE4-5vs.js → StepCompleteAuthentication-DOywOfPZ.js} +6 -6
  149. package/chunk/{StepCompleteAuthentication-BawnNriI.js.map → StepCompleteAuthentication-DOywOfPZ.js.map} +1 -1
  150. package/chunk/{StepCompleteAuthentication-BawnNriI.js → StepCompleteAuthentication-DWg90te_.js} +6 -6
  151. package/chunk/{StepCompleteAuthentication-VpE4-5vs.js.map → StepCompleteAuthentication-DWg90te_.js.map} +1 -1
  152. package/chunk/{StepConsolation-CQAMlrAM.js → StepConsolation-DPrOL4xP.js} +6 -6
  153. package/chunk/{StepConsolation-CQAMlrAM.js.map → StepConsolation-DPrOL4xP.js.map} +1 -1
  154. package/chunk/{StepConsolation-obGdRkBU.js → StepConsolation-D_32ygMO.js} +6 -6
  155. package/chunk/{StepConsolation-obGdRkBU.js.map → StepConsolation-D_32ygMO.js.map} +1 -1
  156. package/chunk/{StepDocUpload-CctG1FtI.js → StepDocUpload-BvamM1Dm.js} +10 -10
  157. package/chunk/{StepDocUpload-CctG1FtI.js.map → StepDocUpload-BvamM1Dm.js.map} +1 -1
  158. package/chunk/{StepDocUpload-BfChuBP1.js → StepDocUpload-DYPWRKrn.js} +10 -10
  159. package/chunk/{StepDocUpload-BfChuBP1.js.map → StepDocUpload-DYPWRKrn.js.map} +1 -1
  160. package/chunk/{StepDriverLicensePersonalInfoComponent-RXVtZ0l5.js → StepDriverLicensePersonalInfoComponent-Dh_l_qlV.js} +13 -13
  161. package/chunk/{StepDriverLicensePersonalInfoComponent-CXr079wT.js.map → StepDriverLicensePersonalInfoComponent-Dh_l_qlV.js.map} +1 -1
  162. package/chunk/{StepDriverLicensePersonalInfoComponent-CXr079wT.js → StepDriverLicensePersonalInfoComponent-gri_r5_Z.js} +13 -13
  163. package/chunk/{StepDriverLicensePersonalInfoComponent-RXVtZ0l5.js.map → StepDriverLicensePersonalInfoComponent-gri_r5_Z.js.map} +1 -1
  164. package/chunk/{StepEmailLoop-CRezfb91.js → StepEmailLoop-B0u3Krt9.js} +9 -9
  165. package/chunk/{StepEmailLoop-CRezfb91.js.map → StepEmailLoop-B0u3Krt9.js.map} +1 -1
  166. package/chunk/{StepEmailLoop-ttOkWzLy.js → StepEmailLoop-BBG2gPCO.js} +9 -9
  167. package/chunk/{StepEmailLoop-ttOkWzLy.js.map → StepEmailLoop-BBG2gPCO.js.map} +1 -1
  168. package/chunk/{StepEmploymentPersonalInfo-CB32xHwu.js → StepEmploymentPersonalInfo-BQJx3bBq.js} +18 -18
  169. package/chunk/{StepEmploymentPersonalInfo-8DEWLkgj.js.map → StepEmploymentPersonalInfo-BQJx3bBq.js.map} +1 -1
  170. package/chunk/{StepEmploymentPersonalInfo-8DEWLkgj.js → StepEmploymentPersonalInfo-DKt3-HYk.js} +18 -18
  171. package/chunk/{StepEmploymentPersonalInfo-CB32xHwu.js.map → StepEmploymentPersonalInfo-DKt3-HYk.js.map} +1 -1
  172. package/chunk/{StepFirstResponderPersonalInfo-BHkVD6pF.js → StepFirstResponderPersonalInfo-B9oRZLtk.js} +20 -20
  173. package/chunk/{StepFirstResponderPersonalInfo-BHkVD6pF.js.map → StepFirstResponderPersonalInfo-B9oRZLtk.js.map} +1 -1
  174. package/chunk/{StepFirstResponderPersonalInfo-CHG-u247.js → StepFirstResponderPersonalInfo-Dbf4-HTh.js} +20 -20
  175. package/chunk/{StepFirstResponderPersonalInfo-CHG-u247.js.map → StepFirstResponderPersonalInfo-Dbf4-HTh.js.map} +1 -1
  176. package/chunk/{StepGeneralIdentityPersonalInfoComponent-BcNLtTjR.js → StepGeneralIdentityPersonalInfoComponent-D6gpx-Sa.js} +16 -16
  177. package/chunk/{StepGeneralIdentityPersonalInfoComponent-BcNLtTjR.js.map → StepGeneralIdentityPersonalInfoComponent-D6gpx-Sa.js.map} +1 -1
  178. package/chunk/{StepGeneralIdentityPersonalInfoComponent-DtIQyBPC.js → StepGeneralIdentityPersonalInfoComponent-DVzFhAXs.js} +16 -16
  179. package/chunk/{StepGeneralIdentityPersonalInfoComponent-DtIQyBPC.js.map → StepGeneralIdentityPersonalInfoComponent-DVzFhAXs.js.map} +1 -1
  180. package/chunk/{StepHybridIdentityPersonalInfoComponent-pZnqtdgc.js → StepHybridIdentityPersonalInfoComponent-CI8UE5-z.js} +17 -17
  181. package/chunk/{StepHybridIdentityPersonalInfoComponent-DAlyAe1R.js.map → StepHybridIdentityPersonalInfoComponent-CI8UE5-z.js.map} +1 -1
  182. package/chunk/{StepHybridIdentityPersonalInfoComponent-DAlyAe1R.js → StepHybridIdentityPersonalInfoComponent-Dkv3zrty.js} +17 -17
  183. package/chunk/{StepHybridIdentityPersonalInfoComponent-pZnqtdgc.js.map → StepHybridIdentityPersonalInfoComponent-Dkv3zrty.js.map} +1 -1
  184. package/chunk/{StepIDCheckLoop-p6n8lcQd.js → StepIDCheckLoop-D6bvCc5J.js} +6 -6
  185. package/chunk/{StepIDCheckLoop-DPWGtqCO.js.map → StepIDCheckLoop-D6bvCc5J.js.map} +1 -1
  186. package/chunk/{StepIDCheckLoop-DPWGtqCO.js → StepIDCheckLoop-YepJTceW.js} +6 -6
  187. package/chunk/{StepIDCheckLoop-p6n8lcQd.js.map → StepIDCheckLoop-YepJTceW.js.map} +1 -1
  188. package/chunk/{StepIDCheckLoopOnfido-D9Y05v4C.js → StepIDCheckLoopOnfido-BEM2_gQK.js} +7 -7
  189. package/chunk/{StepIDCheckLoopOnfido-DHaIUAos.js.map → StepIDCheckLoopOnfido-BEM2_gQK.js.map} +1 -1
  190. package/chunk/{StepIDCheckLoopOnfido-DHaIUAos.js → StepIDCheckLoopOnfido-BwhrprLa.js} +7 -7
  191. package/chunk/{StepIDCheckLoopOnfido-D9Y05v4C.js.map → StepIDCheckLoopOnfido-BwhrprLa.js.map} +1 -1
  192. package/chunk/{StepIDCheckLoopRegula-DEPpvRuh.js → StepIDCheckLoopRegula-CtmJVnya.js} +7 -7
  193. package/chunk/{StepIDCheckLoopRegula-Bu2I4xdz.js.map → StepIDCheckLoopRegula-CtmJVnya.js.map} +1 -1
  194. package/chunk/{StepIDCheckLoopRegula-Bu2I4xdz.js → StepIDCheckLoopRegula-iHvaRIvX.js} +7 -7
  195. package/chunk/{StepIDCheckLoopRegula-DEPpvRuh.js.map → StepIDCheckLoopRegula-iHvaRIvX.js.map} +1 -1
  196. package/chunk/{StepLicensedProfessionalPersonalInfo-BBBGgAoH.js → StepLicensedProfessionalPersonalInfo-CEKAzprw.js} +19 -19
  197. package/chunk/{StepLicensedProfessionalPersonalInfo-BBBGgAoH.js.map → StepLicensedProfessionalPersonalInfo-CEKAzprw.js.map} +1 -1
  198. package/chunk/{StepLicensedProfessionalPersonalInfo-DZBz6N2W.js → StepLicensedProfessionalPersonalInfo-DA8b1HU5.js} +19 -19
  199. package/chunk/{StepLicensedProfessionalPersonalInfo-DZBz6N2W.js.map → StepLicensedProfessionalPersonalInfo-DA8b1HU5.js.map} +1 -1
  200. package/chunk/{StepLowIncomePersonalInfo-BW8oZ3rM.js → StepLowIncomePersonalInfo-BsUMysBy.js} +23 -23
  201. package/chunk/{StepLowIncomePersonalInfo-BW8oZ3rM.js.map → StepLowIncomePersonalInfo-BsUMysBy.js.map} +1 -1
  202. package/chunk/{StepLowIncomePersonalInfo-G-xwYWJR.js → StepLowIncomePersonalInfo-DopFBW6a.js} +23 -23
  203. package/chunk/{StepLowIncomePersonalInfo-G-xwYWJR.js.map → StepLowIncomePersonalInfo-DopFBW6a.js.map} +1 -1
  204. package/chunk/{StepMedicalProfessionalPersonalInfo-J-8Z4ICP.js → StepMedicalProfessionalPersonalInfo-D1c9fEPF.js} +20 -20
  205. package/chunk/{StepMedicalProfessionalPersonalInfo-J-8Z4ICP.js.map → StepMedicalProfessionalPersonalInfo-D1c9fEPF.js.map} +1 -1
  206. package/chunk/{StepMedicalProfessionalPersonalInfo-X1mHHs_B.js → StepMedicalProfessionalPersonalInfo-DOEa4g_4.js} +20 -20
  207. package/chunk/{StepMedicalProfessionalPersonalInfo-X1mHHs_B.js.map → StepMedicalProfessionalPersonalInfo-DOEa4g_4.js.map} +1 -1
  208. package/chunk/{StepMemberPersonalInfo-DSt5OttB.js → StepMemberPersonalInfo-C8bIy47a.js} +15 -15
  209. package/chunk/{StepMemberPersonalInfo-Bx_3dKls.js.map → StepMemberPersonalInfo-C8bIy47a.js.map} +1 -1
  210. package/chunk/{StepMemberPersonalInfo-Bx_3dKls.js → StepMemberPersonalInfo-Ci5ArejV.js} +15 -15
  211. package/chunk/{StepMemberPersonalInfo-DSt5OttB.js.map → StepMemberPersonalInfo-Ci5ArejV.js.map} +1 -1
  212. package/chunk/{StepMoverPersonalInfo-CJZK05Is.js → StepMoverPersonalInfo-CbUoVcqf.js} +13 -13
  213. package/chunk/{StepMoverPersonalInfo-CJZK05Is.js.map → StepMoverPersonalInfo-CbUoVcqf.js.map} +1 -1
  214. package/chunk/{StepMoverPersonalInfo-DT7R7gmg.js → StepMoverPersonalInfo-DfmFX6fV.js} +13 -13
  215. package/chunk/{StepMoverPersonalInfo-DT7R7gmg.js.map → StepMoverPersonalInfo-DfmFX6fV.js.map} +1 -1
  216. package/chunk/{StepOverrideComponent-Cvdi7k8S.js → StepOverrideComponent-C17BBaf_.js} +8 -8
  217. package/chunk/{StepOverrideComponent-Cvdi7k8S.js.map → StepOverrideComponent-C17BBaf_.js.map} +1 -1
  218. package/chunk/{StepOverrideComponent-CcrXFWE9.js → StepOverrideComponent-DcQqNZWk.js} +8 -8
  219. package/chunk/{StepOverrideComponent-CcrXFWE9.js.map → StepOverrideComponent-DcQqNZWk.js.map} +1 -1
  220. package/chunk/{StepSMSLoop-DbJeZm_u.js → StepSMSLoop-D7okg8tL.js} +5 -5
  221. package/chunk/{StepSMSLoop-DbJeZm_u.js.map → StepSMSLoop-D7okg8tL.js.map} +1 -1
  222. package/chunk/{StepSMSLoop-LeMrNbuV.js → StepSMSLoop-QGqN6LkJ.js} +5 -5
  223. package/chunk/{StepSMSLoop-LeMrNbuV.js.map → StepSMSLoop-QGqN6LkJ.js.map} +1 -1
  224. package/chunk/StepSSO-BGHCbduX.js +4 -4
  225. package/chunk/StepSSO-ZHByQpHa.js +4 -4
  226. package/chunk/{StepSocialSecurityNumber-D8g9uAwu.js → StepSocialSecurityNumber-BkjNMHHH.js} +9 -9
  227. package/chunk/{StepSocialSecurityNumber-Bkdd03cD.js.map → StepSocialSecurityNumber-BkjNMHHH.js.map} +1 -1
  228. package/chunk/{StepSocialSecurityNumber-Bkdd03cD.js → StepSocialSecurityNumber-DWvUkbqi.js} +9 -9
  229. package/chunk/{StepSocialSecurityNumber-D8g9uAwu.js.map → StepSocialSecurityNumber-DWvUkbqi.js.map} +1 -1
  230. package/chunk/StepStudentPersonalInfo-DNRFiafL.js +235 -0
  231. package/chunk/StepStudentPersonalInfo-DNRFiafL.js.map +1 -0
  232. package/chunk/StepStudentPersonalInfo-yy8Rhhg_.js +231 -0
  233. package/chunk/StepStudentPersonalInfo-yy8Rhhg_.js.map +1 -0
  234. package/chunk/{StepSuccess-DLAsamcH.js → StepSuccess-CO8w4TsU.js} +9 -9
  235. package/chunk/{StepSuccess-B71EWZ-Z.js.map → StepSuccess-CO8w4TsU.js.map} +1 -1
  236. package/chunk/{StepSuccess-B71EWZ-Z.js → StepSuccess-CXAweBRH.js} +9 -9
  237. package/chunk/{StepSuccess-DLAsamcH.js.map → StepSuccess-CXAweBRH.js.map} +1 -1
  238. package/chunk/{StepTeacherPersonalInfo-DyJxPpfk.js → StepTeacherPersonalInfo-CPkBbnDT.js} +16 -16
  239. package/chunk/{StepTeacherPersonalInfo-Cxi2USWi.js.map → StepTeacherPersonalInfo-CPkBbnDT.js.map} +1 -1
  240. package/chunk/{StepTeacherPersonalInfo-Cxi2USWi.js → StepTeacherPersonalInfo-DRmmTTUZ.js} +16 -16
  241. package/chunk/{StepTeacherPersonalInfo-DyJxPpfk.js.map → StepTeacherPersonalInfo-DRmmTTUZ.js.map} +1 -1
  242. package/chunk/StepThirdPartyLoop-BrKuZcYb.js +4 -4
  243. package/chunk/StepThirdPartyLoop-CbFTIlwP.js +4 -4
  244. package/chunk/{TeacherSchoolComponent-SYKzsbk5.js → TeacherSchoolComponent-BE0hBAdX.js} +8 -8
  245. package/chunk/{TeacherSchoolComponent-DO6iQ8iK.js.map → TeacherSchoolComponent-BE0hBAdX.js.map} +1 -1
  246. package/chunk/{TeacherSchoolComponent-DO6iQ8iK.js → TeacherSchoolComponent-DF0D6H7e.js} +8 -8
  247. package/chunk/{TeacherSchoolComponent-SYKzsbk5.js.map → TeacherSchoolComponent-DF0D6H7e.js.map} +1 -1
  248. package/chunk/{TestingRouteOverrides-BbCY31VT.js → TestingRouteOverrides-Bx1n-xCR.js} +5 -5
  249. package/chunk/{TestingRouteOverrides-BbCY31VT.js.map → TestingRouteOverrides-Bx1n-xCR.js.map} +1 -1
  250. package/chunk/{TestingRouteOverrides-DEu_4afz.js → TestingRouteOverrides-DHe5BulD.js} +5 -5
  251. package/chunk/{TestingRouteOverrides-DEu_4afz.js.map → TestingRouteOverrides-DHe5BulD.js.map} +1 -1
  252. package/chunk/ThreatMetrix-D_TbL50B.js +4 -4
  253. package/chunk/ar-D5CO913q.js +4 -4
  254. package/chunk/bg-1mhA5kYF.js +4 -4
  255. package/chunk/bn-IN-CpDqyRb_.js +4 -4
  256. package/chunk/clsx-CB5rauS5.js +4 -4
  257. package/chunk/countryUtils-BRnNbiyi.js +12 -0
  258. package/chunk/{countryUtils-BXKSL95G.js.map → countryUtils-BRnNbiyi.js.map} +1 -1
  259. package/chunk/{countryUtils-BXKSL95G.js → countryUtils-DSXgtztB.js} +5 -5
  260. package/chunk/{countryUtils-BqrT9eSz.js.map → countryUtils-DSXgtztB.js.map} +1 -1
  261. package/chunk/cs-Chh7FAGt.js +4 -4
  262. package/chunk/da-DwrVoxto.js +4 -4
  263. package/chunk/de-IWGZLhgY.js +4 -4
  264. package/chunk/{downshift.esm-DuoAt8eK.js → downshift.esm-69QM26L8.js} +5 -5
  265. package/chunk/{downshift.esm-AyQ9NowL.js.map → downshift.esm-69QM26L8.js.map} +1 -1
  266. package/chunk/{downshift.esm-AyQ9NowL.js → downshift.esm-C3kjgXh1.js} +103 -103
  267. package/chunk/{downshift.esm-DuoAt8eK.js.map → downshift.esm-C3kjgXh1.js.map} +1 -1
  268. package/chunk/el-DbDcvSPJ.js +4 -4
  269. package/chunk/{empties-B034wwK_.js → empties-C5H0EoXJ.js} +5 -5
  270. package/chunk/empties-C5H0EoXJ.js.map +1 -0
  271. package/chunk/{empties-lrCPA-9V.js → empties-DaNcqYFb.js} +5 -5
  272. package/chunk/empties-DaNcqYFb.js.map +1 -0
  273. package/chunk/en-GB-CNQ8Ww2j.js +4 -4
  274. package/chunk/es-ES-DWimqEZ_.js +4 -4
  275. package/chunk/es-qhC-seq5.js +4 -4
  276. package/chunk/et-yF9G-Mym.js +4 -4
  277. package/chunk/eventEmitter-CSG6jR7V.js +4 -4
  278. package/chunk/fa-BcdSf7og.js +4 -4
  279. package/chunk/fi-D-IP_KHm.js +4 -4
  280. package/chunk/fr-BmUuYxk0.js +4 -4
  281. package/chunk/fr-CA-DVQ4xmzZ.js +4 -4
  282. package/chunk/ga-DuZycND3.js +4 -4
  283. package/chunk/hi-IN-l6Rn5Ewm.js +4 -4
  284. package/chunk/{hooks-DtYEjP2m.js → hooks-B4mmDpuv.js} +324 -324
  285. package/chunk/hooks-B4mmDpuv.js.map +1 -0
  286. package/chunk/{hooks-QCx6OZlb.js → hooks-CMAl6OEH.js} +324 -324
  287. package/chunk/hooks-CMAl6OEH.js.map +1 -0
  288. package/chunk/hr-BtqyDzDB.js +4 -4
  289. package/chunk/hu-C6syKJfb.js +4 -4
  290. package/chunk/id-GgI-Z2a5.js +4 -4
  291. package/chunk/intl-DYOqmiaL.js +4 -4
  292. package/chunk/is-CvmKEON9.js +4 -4
  293. package/chunk/it-CnmveGgC.js +4 -4
  294. package/chunk/iw-DFUYHkxF.js +4 -4
  295. package/chunk/ja-CjVb2tWW.js +4 -4
  296. package/chunk/jsx-runtime-DQO6A867.js +4 -4
  297. package/chunk/jsx-runtime-DtApx7WX.js +4 -4
  298. package/chunk/kk-Dvz4nK6K.js +4 -4
  299. package/chunk/ko-DzOqBMGC.js +4 -4
  300. package/chunk/lo-C2WPq55d.js +4 -4
  301. package/chunk/lt-BSDYvjTF.js +4 -4
  302. package/chunk/lv-CefDPT-M.js +4 -4
  303. package/chunk/mockProgramTheme-CBqgtg7A.js +4 -4
  304. package/chunk/{mocks-BQNtP7qW.js → mocks-D8UIPfvt.js} +5 -5
  305. package/chunk/{mocks-BQNtP7qW.js.map → mocks-D8UIPfvt.js.map} +1 -1
  306. package/chunk/{mocks-DC7WJf5c.js → mocks-denu632X.js} +5 -5
  307. package/chunk/{mocks-DC7WJf5c.js.map → mocks-denu632X.js.map} +1 -1
  308. package/chunk/ms-BjestZxy.js +4 -4
  309. package/chunk/nl-B1FyUfCT.js +4 -4
  310. package/chunk/nl-BE-CbeAd3nq.js +4 -4
  311. package/chunk/no-Dr633Ddi.js +4 -4
  312. package/chunk/options-DsRV5fwh.js +4 -4
  313. package/chunk/pl-UYTjMIq_.js +4 -4
  314. package/chunk/{programThemeGetters-Tq6dpa3Q.js → programThemeGetters-DFcbGSAA.js} +5 -5
  315. package/chunk/{programThemeGetters-Tq6dpa3Q.js.map → programThemeGetters-DFcbGSAA.js.map} +1 -1
  316. package/chunk/{programThemeGetters-CwU8toEg.js → programThemeGetters-DJcD6MLy.js} +5 -5
  317. package/chunk/{programThemeGetters-CwU8toEg.js.map → programThemeGetters-DJcD6MLy.js.map} +1 -1
  318. package/chunk/pt-BR-C8SYMT-J.js +4 -4
  319. package/chunk/pt-uH-M3GdN.js +4 -4
  320. package/chunk/refs-Mq0rtW9K.js +4 -4
  321. package/chunk/ro-CAOSXZ7h.js +4 -4
  322. package/chunk/ru-iwYoEydL.js +4 -4
  323. package/chunk/runtimeTypes-B2AGNJMT.js +4 -4
  324. package/chunk/sk-DYYNV3zw.js +4 -4
  325. package/chunk/sl-D_-eeM5N.js +4 -4
  326. package/chunk/sr-BTi9_anL.js +4 -4
  327. package/chunk/{stepComponentHelpers-C-r8qzyD.js → stepComponentHelpers-Bo_ASl0b.js} +6 -6
  328. package/chunk/{stepComponentHelpers-C-r8qzyD.js.map → stepComponentHelpers-Bo_ASl0b.js.map} +1 -1
  329. package/chunk/{stepComponentHelpers-CDj3don1.js → stepComponentHelpers-D_F4GOcs.js} +6 -6
  330. package/chunk/{stepComponentHelpers-CDj3don1.js.map → stepComponentHelpers-D_F4GOcs.js.map} +1 -1
  331. package/chunk/strings-DWLVdUcm.js +4 -4
  332. package/chunk/sv-DRwY4shG.js +4 -4
  333. package/chunk/sw-Bvj2mYmM.js +4 -4
  334. package/chunk/ta-CmtaYoNe.js +4 -4
  335. package/chunk/th-12r2yKkJ.js +4 -4
  336. package/chunk/tl-BGNfO7md.js +4 -4
  337. package/chunk/tr-DH2ZSJhs.js +4 -4
  338. package/chunk/uk-CELBZlTd.js +4 -4
  339. package/chunk/ur-MR8DTbmd.js +4 -4
  340. package/chunk/useCollectFieldsEndpoint-Cqk7nVm8.js +63 -0
  341. package/chunk/useCollectFieldsEndpoint-Cqk7nVm8.js.map +1 -0
  342. package/chunk/useCollectFieldsEndpoint-moJiW3Nn.js +67 -0
  343. package/chunk/useCollectFieldsEndpoint-moJiW3Nn.js.map +1 -0
  344. package/chunk/{useMetrics-DGl7Sxfe.js → useMetrics-CrpCzbvt.js} +5 -5
  345. package/chunk/{useMetrics-D6LU4c5p.js.map → useMetrics-CrpCzbvt.js.map} +1 -1
  346. package/chunk/{useMetrics-D6LU4c5p.js → useMetrics-kG8AjSPf.js} +5 -5
  347. package/chunk/{useMetrics-DGl7Sxfe.js.map → useMetrics-kG8AjSPf.js.map} +1 -1
  348. package/chunk/vi-DtZ-SqD5.js +4 -4
  349. package/chunk/zh-DjyVyYac.js +4 -4
  350. package/chunk/zh-HK-CN1HarHq.js +4 -4
  351. package/chunk/zu-DPhgIh1z.js +4 -4
  352. package/package.json +1 -1
  353. package/sheerid-install.css +4 -4
  354. package/sheerid-install.js +4 -4
  355. package/sheerid.css +4 -4
  356. package/sheerid.js +51 -51
  357. package/sheerid.js.map +1 -1
  358. package/chunk/FormFooterComponent-CUDMJyyc.js.map +0 -1
  359. package/chunk/FormFooterComponent-CfWYgtl_.js.map +0 -1
  360. package/chunk/Message-BhR899qn.js.map +0 -1
  361. package/chunk/StepStudentPersonalInfo-BT1PyRoj.js +0 -213
  362. package/chunk/StepStudentPersonalInfo-BT1PyRoj.js.map +0 -1
  363. package/chunk/StepStudentPersonalInfo-DU9ljdbc.js +0 -209
  364. package/chunk/StepStudentPersonalInfo-DU9ljdbc.js.map +0 -1
  365. package/chunk/countryUtils-BqrT9eSz.js +0 -12
  366. package/chunk/empties-B034wwK_.js.map +0 -1
  367. package/chunk/empties-lrCPA-9V.js.map +0 -1
  368. package/chunk/hooks-DtYEjP2m.js.map +0 -1
  369. package/chunk/hooks-QCx6OZlb.js.map +0 -1
  370. package/chunk/useCollectFieldsEndpoint-BjFKvu3Z.js +0 -66
  371. package/chunk/useCollectFieldsEndpoint-BjFKvu3Z.js.map +0 -1
  372. package/chunk/useCollectFieldsEndpoint-CoME5Eii.js +0 -62
  373. package/chunk/useCollectFieldsEndpoint-CoME5Eii.js.map +0 -1
@@ -4,10 +4,10 @@
4
4
  * This file is not intended for use in other contexts and there are no guarantees about its behavior outside of MySheerID.
5
5
  */
6
6
  /**
7
- * VERSION: 2.301.0
8
- * BUILD_TIMESTAMP: 1791996181846
9
- * BUILD_DATE: Wed Oct 14 2026 16:43:01 GMT+0000 (Coordinated Universal Time)
10
- * BUILD_COMMIT: 1f84255f75fc7d5dfe2de2662a793668672c8d27
7
+ * VERSION: 2.303.0
8
+ * BUILD_TIMESTAMP: 1792102148037
9
+ * BUILD_DATE: Thu Oct 15 2026 22:09:08 GMT+0000 (Coordinated Universal Time)
10
+ * BUILD_COMMIT: ed4ed11fb402dec1e4d8db41deabb715484897e8
11
11
  */
12
12
  import { S as e } from "./runtimeTypes-B2AGNJMT.js";
13
13
  //#region src/lib/refs/refs.ts
@@ -4,10 +4,10 @@
4
4
  * This file is not intended for use in other contexts and there are no guarantees about its behavior outside of MySheerID.
5
5
  */
6
6
  /**
7
- * VERSION: 2.301.0
8
- * BUILD_TIMESTAMP: 1791996181846
9
- * BUILD_DATE: Wed Oct 14 2026 16:43:01 GMT+0000 (Coordinated Universal Time)
10
- * BUILD_COMMIT: 1f84255f75fc7d5dfe2de2662a793668672c8d27
7
+ * VERSION: 2.303.0
8
+ * BUILD_TIMESTAMP: 1792102148037
9
+ * BUILD_DATE: Thu Oct 15 2026 22:09:08 GMT+0000 (Coordinated Universal Time)
10
+ * BUILD_COMMIT: ed4ed11fb402dec1e4d8db41deabb715484897e8
11
11
  */
12
12
  //#region src/lib/intl/localized-messages/ro.json
13
13
  var e = {
@@ -4,10 +4,10 @@
4
4
  * This file is not intended for use in other contexts and there are no guarantees about its behavior outside of MySheerID.
5
5
  */
6
6
  /**
7
- * VERSION: 2.301.0
8
- * BUILD_TIMESTAMP: 1791996181846
9
- * BUILD_DATE: Wed Oct 14 2026 16:43:01 GMT+0000 (Coordinated Universal Time)
10
- * BUILD_COMMIT: 1f84255f75fc7d5dfe2de2662a793668672c8d27
7
+ * VERSION: 2.303.0
8
+ * BUILD_TIMESTAMP: 1792102148037
9
+ * BUILD_DATE: Thu Oct 15 2026 22:09:08 GMT+0000 (Coordinated Universal Time)
10
+ * BUILD_COMMIT: ed4ed11fb402dec1e4d8db41deabb715484897e8
11
11
  */
12
12
  //#region src/lib/intl/localized-messages/ru.json
13
13
  var e = {
@@ -4,10 +4,10 @@
4
4
  * This file is not intended for use in other contexts and there are no guarantees about its behavior outside of MySheerID.
5
5
  */
6
6
  /**
7
- * VERSION: 2.301.0
8
- * BUILD_TIMESTAMP: 1791996181846
9
- * BUILD_DATE: Wed Oct 14 2026 16:43:01 GMT+0000 (Coordinated Universal Time)
10
- * BUILD_COMMIT: 1f84255f75fc7d5dfe2de2662a793668672c8d27
7
+ * VERSION: 2.303.0
8
+ * BUILD_TIMESTAMP: 1792102148037
9
+ * BUILD_DATE: Thu Oct 15 2026 22:09:08 GMT+0000 (Coordinated Universal Time)
10
+ * BUILD_COMMIT: ed4ed11fb402dec1e4d8db41deabb715484897e8
11
11
  */
12
12
  //#region ../packages/shared/src/utils/gaHelpers.ts
13
13
  var e = {}, t = (t) => Object.entries(t).forEach(([t, n]) => {
@@ -4,10 +4,10 @@
4
4
  * This file is not intended for use in other contexts and there are no guarantees about its behavior outside of MySheerID.
5
5
  */
6
6
  /**
7
- * VERSION: 2.301.0
8
- * BUILD_TIMESTAMP: 1791996181846
9
- * BUILD_DATE: Wed Oct 14 2026 16:43:01 GMT+0000 (Coordinated Universal Time)
10
- * BUILD_COMMIT: 1f84255f75fc7d5dfe2de2662a793668672c8d27
7
+ * VERSION: 2.303.0
8
+ * BUILD_TIMESTAMP: 1792102148037
9
+ * BUILD_DATE: Thu Oct 15 2026 22:09:08 GMT+0000 (Coordinated Universal Time)
10
+ * BUILD_COMMIT: ed4ed11fb402dec1e4d8db41deabb715484897e8
11
11
  */
12
12
  //#region src/lib/intl/localized-messages/sk.json
13
13
  var e = {
@@ -4,10 +4,10 @@
4
4
  * This file is not intended for use in other contexts and there are no guarantees about its behavior outside of MySheerID.
5
5
  */
6
6
  /**
7
- * VERSION: 2.301.0
8
- * BUILD_TIMESTAMP: 1791996181846
9
- * BUILD_DATE: Wed Oct 14 2026 16:43:01 GMT+0000 (Coordinated Universal Time)
10
- * BUILD_COMMIT: 1f84255f75fc7d5dfe2de2662a793668672c8d27
7
+ * VERSION: 2.303.0
8
+ * BUILD_TIMESTAMP: 1792102148037
9
+ * BUILD_DATE: Thu Oct 15 2026 22:09:08 GMT+0000 (Coordinated Universal Time)
10
+ * BUILD_COMMIT: ed4ed11fb402dec1e4d8db41deabb715484897e8
11
11
  */
12
12
  //#region src/lib/intl/localized-messages/sl.json
13
13
  var e = {
@@ -4,10 +4,10 @@
4
4
  * This file is not intended for use in other contexts and there are no guarantees about its behavior outside of MySheerID.
5
5
  */
6
6
  /**
7
- * VERSION: 2.301.0
8
- * BUILD_TIMESTAMP: 1791996181846
9
- * BUILD_DATE: Wed Oct 14 2026 16:43:01 GMT+0000 (Coordinated Universal Time)
10
- * BUILD_COMMIT: 1f84255f75fc7d5dfe2de2662a793668672c8d27
7
+ * VERSION: 2.303.0
8
+ * BUILD_TIMESTAMP: 1792102148037
9
+ * BUILD_DATE: Thu Oct 15 2026 22:09:08 GMT+0000 (Coordinated Universal Time)
10
+ * BUILD_COMMIT: ed4ed11fb402dec1e4d8db41deabb715484897e8
11
11
  */
12
12
  //#region src/lib/intl/localized-messages/sr.json
13
13
  var e = {
@@ -4,15 +4,15 @@
4
4
  * This file is not intended for use in other contexts and there are no guarantees about its behavior outside of MySheerID.
5
5
  */
6
6
  /**
7
- * VERSION: 2.301.0
8
- * BUILD_TIMESTAMP: 1791996181846
9
- * BUILD_DATE: Wed Oct 14 2026 16:43:01 GMT+0000 (Coordinated Universal Time)
10
- * BUILD_COMMIT: 1f84255f75fc7d5dfe2de2662a793668672c8d27
7
+ * VERSION: 2.303.0
8
+ * BUILD_TIMESTAMP: 1792102148037
9
+ * BUILD_DATE: Thu Oct 15 2026 22:09:08 GMT+0000 (Coordinated Universal Time)
10
+ * BUILD_COMMIT: ed4ed11fb402dec1e4d8db41deabb715484897e8
11
11
  */
12
12
  import { V as e, ct as t, g as n, p as r, s as i, x as a } from "./intl-DYOqmiaL.js";
13
13
  import { S as o } from "./runtimeTypes-B2AGNJMT.js";
14
- import { n as s } from "./empties-B034wwK_.js";
15
- import { c, s as l, u } from "./hooks-DtYEjP2m.js";
14
+ import { n as s } from "./empties-C5H0EoXJ.js";
15
+ import { c, s as l, u } from "./hooks-B4mmDpuv.js";
16
16
  import { n as d, r as f } from "./refs-Mq0rtW9K.js";
17
17
  //#region src/lib/utils/browser/inputHelpers.ts
18
18
  var p = (e) => {
@@ -1 +1 @@
1
- {"version":3,"file":"stepComponentHelpers-C-r8qzyD.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\";\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 Locale,\n type ViewModel,\n type FieldDescription,\n type PersonalInfoFieldId,\n type Options,\n} from \"../../types/types\";\nimport { type VerificationStepsEnum } 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 { 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 orgToOption = (org: Organization) => ({\n value: org.id,\n label: org.name,\n country: org.country,\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 * @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 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;;;AC0BA,IAAa,KACX,GACA,MACG;CACH,IAAM,IAAY,EAAoB,WAChC,IAAY,EA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AEV,EAAQ,gBACT,MAAM,MAAW,EAAO,YAAY,CAAO"}
1
+ {"version":3,"file":"stepComponentHelpers-Bo_ASl0b.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\";\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 Locale,\n type ViewModel,\n type FieldDescription,\n type PersonalInfoFieldId,\n type Options,\n} from \"../../types/types\";\nimport { type VerificationStepsEnum } 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 { 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 orgToOption = (org: Organization) => ({\n value: org.id,\n label: org.name,\n country: org.country,\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 * @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 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;;;AC0BA,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,CA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oB,WAAW,GAAM,GAAW,EAAoB,oBAAoB,GACpF,KACF,EAAgB;MAEb;EAEL,IAAM,IAAiD,EADE,EAEvD,GACA,CACF;EAQA,AAPA,EAAc;GACZ,WAAW,EAAU;GACrB,QAAQ,EACN,uBAAuB,KAAK,UAAU,CAA4B,EACpE;EACF,CAAC,GACD,EAA4B,GAA8B,CAAmB,GAC7E,EAAS,CAAmB;CAC9B;AACF,GAsBa,KACX,GACA,MAEA,EAAQ,IAAY,MAAa;CAC/B,EAAU,SAAS,MAAqB;EACtC,AAAI,EAAkB,MAAM,MAAU,EAAM,QAAQ,CAAgB,IAClE,EAAO,KACL,EAAU,OAAsB,KAAA,IAA0C,KAA9B,EAAU,KAExD,OAAO,EAAM;CAEjB,CAAC;AACH,CAAC,GAKU,KACX,GACA,GACA,MAEA,EAAQ,IAAgB,MAAa;CACnC,EAAO,KAAe;AACxB,CAAC,GAKU,KACX,GACA,GACA,MACW;CACX,IAEI,IAAU,+BACR,EAAE,YAAS,IAAI,IAAI,OAAO,SAAS,IAAI;CAM7C,QAJI,EAAK,SAAS,SAAS,KAAK,EAAK,SAAS,WAAW,OACvD,IAAU,wCAGL,GAAG,EAAQ,GAAG,EAAO,GAAG,EAAU,GAAG,EAAe;AAC7D,GAEa,KACX,GACA,IAAmB,EAAW,MAEV,EAAQ,gBACT,MAAM,MAAW,EAAO,YAAY,CAAO"}
@@ -1,14 +1,14 @@
1
1
 
2
2
  /**
3
- * VERSION: 2.301.0
4
- * BUILD_TIMESTAMP: 1791996177955
5
- * BUILD_DATE: Wed Oct 14 2026 16:42:57 GMT+0000 (Coordinated Universal Time)
6
- * BUILD_COMMIT: 1f84255f75fc7d5dfe2de2662a793668672c8d27
3
+ * VERSION: 2.303.0
4
+ * BUILD_TIMESTAMP: 1792102143487
5
+ * BUILD_DATE: Thu Oct 15 2026 22:09:03 GMT+0000 (Coordinated Universal Time)
6
+ * BUILD_COMMIT: ed4ed11fb402dec1e4d8db41deabb715484897e8
7
7
  */
8
8
  import { c as e, d as t, g as n, n as r, ot as i, z as a } from "./options-DsRV5fwh.js";
9
9
  import { S as o } from "./runtimeTypes-B2AGNJMT.js";
10
- import { n as s } from "./empties-lrCPA-9V.js";
11
- import { c, s as l, u } from "./hooks-QCx6OZlb.js";
10
+ import { n as s } from "./empties-DaNcqYFb.js";
11
+ import { c, s as l, u } from "./hooks-CMAl6OEH.js";
12
12
  import { n as d, r as f } from "./refs-Mq0rtW9K.js";
13
13
  //#region src/lib/utils/browser/inputHelpers.ts
14
14
  var p = (e) => {
@@ -1 +1 @@
1
- {"version":3,"file":"stepComponentHelpers-CDj3don1.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\";\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 Locale,\n type ViewModel,\n type FieldDescription,\n type PersonalInfoFieldId,\n type Options,\n} from \"../../types/types\";\nimport { type VerificationStepsEnum } 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 { 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 orgToOption = (org: Organization) => ({\n value: org.id,\n label: org.name,\n country: org.country,\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 * @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 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;;;AC0BA,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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","../../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\";\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 Locale,\n type ViewModel,\n type FieldDescription,\n type PersonalInfoFieldId,\n type Options,\n} from \"../../types/types\";\nimport { type VerificationStepsEnum } 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 { 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 orgToOption = (org: Organization) => ({\n value: org.id,\n label: org.name,\n country: org.country,\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 * @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 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;;;AC0BA,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,gBAAg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,EAAU;GACrB,QAAQ,EACN,uBAAuB,KAAK,UAAU,CAA4B,EACpE;EACF,CAAC,GACD,EAA4B,GAA8B,CAAmB,GAC7E,EAAS,CAAmB;CAC9B;AACF,GAsBa,KACX,GACA,MAEA,EAAQ,IAAY,MAAa;CAC/B,EAAU,SAAS,MAAqB;EACtC,AAAI,EAAkB,MAAM,MAAU,EAAM,QAAQ,CAAgB,IAClE,EAAO,KACL,EAAU,OAAsB,KAAA,IAA0C,KAA9B,EAAU,KAExD,OAAO,EAAM;CAEjB,CAAC;AACH,CAAC,GAKU,KACX,GACA,GACA,MAEA,EAAQ,IAAgB,MAAa;CACnC,EAAO,KAAe;AACxB,CAAC,GAKU,KACX,GACA,GACA,MACW;CACX,IAEI,IAAU,+BACR,EAAE,YAAS,IAAI,IAAI,OAAO,SAAS,IAAI;CAM7C,QAJI,EAAK,SAAS,SAAS,KAAK,EAAK,SAAS,WAAW,OACvD,IAAU,wCAGL,GAAG,EAAQ,GAAG,EAAO,GAAG,EAAU,GAAG,EAAe;AAC7D,GAEa,KACX,GACA,IAAmB,EAAW,MAEV,EAAQ,gBACT,MAAM,MAAW,EAAO,YAAY,CAAO"}
@@ -4,10 +4,10 @@
4
4
  * This file is not intended for use in other contexts and there are no guarantees about its behavior outside of MySheerID.
5
5
  */
6
6
  /**
7
- * VERSION: 2.301.0
8
- * BUILD_TIMESTAMP: 1791996181846
9
- * BUILD_DATE: Wed Oct 14 2026 16:43:01 GMT+0000 (Coordinated Universal Time)
10
- * BUILD_COMMIT: 1f84255f75fc7d5dfe2de2662a793668672c8d27
7
+ * VERSION: 2.303.0
8
+ * BUILD_TIMESTAMP: 1792102148037
9
+ * BUILD_DATE: Thu Oct 15 2026 22:09:08 GMT+0000 (Coordinated Universal Time)
10
+ * BUILD_COMMIT: ed4ed11fb402dec1e4d8db41deabb715484897e8
11
11
  */
12
12
  //#region src/lib/utils/strings.ts
13
13
  var e = (e) => e.replace(/[A-Z]/g, (e) => `-${e.toLowerCase()}`);
@@ -4,10 +4,10 @@
4
4
  * This file is not intended for use in other contexts and there are no guarantees about its behavior outside of MySheerID.
5
5
  */
6
6
  /**
7
- * VERSION: 2.301.0
8
- * BUILD_TIMESTAMP: 1791996181846
9
- * BUILD_DATE: Wed Oct 14 2026 16:43:01 GMT+0000 (Coordinated Universal Time)
10
- * BUILD_COMMIT: 1f84255f75fc7d5dfe2de2662a793668672c8d27
7
+ * VERSION: 2.303.0
8
+ * BUILD_TIMESTAMP: 1792102148037
9
+ * BUILD_DATE: Thu Oct 15 2026 22:09:08 GMT+0000 (Coordinated Universal Time)
10
+ * BUILD_COMMIT: ed4ed11fb402dec1e4d8db41deabb715484897e8
11
11
  */
12
12
  //#region src/lib/intl/localized-messages/sv.json
13
13
  var e = {
@@ -4,10 +4,10 @@
4
4
  * This file is not intended for use in other contexts and there are no guarantees about its behavior outside of MySheerID.
5
5
  */
6
6
  /**
7
- * VERSION: 2.301.0
8
- * BUILD_TIMESTAMP: 1791996181846
9
- * BUILD_DATE: Wed Oct 14 2026 16:43:01 GMT+0000 (Coordinated Universal Time)
10
- * BUILD_COMMIT: 1f84255f75fc7d5dfe2de2662a793668672c8d27
7
+ * VERSION: 2.303.0
8
+ * BUILD_TIMESTAMP: 1792102148037
9
+ * BUILD_DATE: Thu Oct 15 2026 22:09:08 GMT+0000 (Coordinated Universal Time)
10
+ * BUILD_COMMIT: ed4ed11fb402dec1e4d8db41deabb715484897e8
11
11
  */
12
12
  //#region src/lib/intl/localized-messages/sw.json
13
13
  var e = {
@@ -4,10 +4,10 @@
4
4
  * This file is not intended for use in other contexts and there are no guarantees about its behavior outside of MySheerID.
5
5
  */
6
6
  /**
7
- * VERSION: 2.301.0
8
- * BUILD_TIMESTAMP: 1791996181846
9
- * BUILD_DATE: Wed Oct 14 2026 16:43:01 GMT+0000 (Coordinated Universal Time)
10
- * BUILD_COMMIT: 1f84255f75fc7d5dfe2de2662a793668672c8d27
7
+ * VERSION: 2.303.0
8
+ * BUILD_TIMESTAMP: 1792102148037
9
+ * BUILD_DATE: Thu Oct 15 2026 22:09:08 GMT+0000 (Coordinated Universal Time)
10
+ * BUILD_COMMIT: ed4ed11fb402dec1e4d8db41deabb715484897e8
11
11
  */
12
12
  //#region src/lib/intl/localized-messages/ta.json
13
13
  var e = {
@@ -4,10 +4,10 @@
4
4
  * This file is not intended for use in other contexts and there are no guarantees about its behavior outside of MySheerID.
5
5
  */
6
6
  /**
7
- * VERSION: 2.301.0
8
- * BUILD_TIMESTAMP: 1791996181846
9
- * BUILD_DATE: Wed Oct 14 2026 16:43:01 GMT+0000 (Coordinated Universal Time)
10
- * BUILD_COMMIT: 1f84255f75fc7d5dfe2de2662a793668672c8d27
7
+ * VERSION: 2.303.0
8
+ * BUILD_TIMESTAMP: 1792102148037
9
+ * BUILD_DATE: Thu Oct 15 2026 22:09:08 GMT+0000 (Coordinated Universal Time)
10
+ * BUILD_COMMIT: ed4ed11fb402dec1e4d8db41deabb715484897e8
11
11
  */
12
12
  //#region src/lib/intl/localized-messages/th.json
13
13
  var e = {
@@ -4,10 +4,10 @@
4
4
  * This file is not intended for use in other contexts and there are no guarantees about its behavior outside of MySheerID.
5
5
  */
6
6
  /**
7
- * VERSION: 2.301.0
8
- * BUILD_TIMESTAMP: 1791996181846
9
- * BUILD_DATE: Wed Oct 14 2026 16:43:01 GMT+0000 (Coordinated Universal Time)
10
- * BUILD_COMMIT: 1f84255f75fc7d5dfe2de2662a793668672c8d27
7
+ * VERSION: 2.303.0
8
+ * BUILD_TIMESTAMP: 1792102148037
9
+ * BUILD_DATE: Thu Oct 15 2026 22:09:08 GMT+0000 (Coordinated Universal Time)
10
+ * BUILD_COMMIT: ed4ed11fb402dec1e4d8db41deabb715484897e8
11
11
  */
12
12
  //#region src/lib/intl/localized-messages/tl.json
13
13
  var e = {
@@ -4,10 +4,10 @@
4
4
  * This file is not intended for use in other contexts and there are no guarantees about its behavior outside of MySheerID.
5
5
  */
6
6
  /**
7
- * VERSION: 2.301.0
8
- * BUILD_TIMESTAMP: 1791996181846
9
- * BUILD_DATE: Wed Oct 14 2026 16:43:01 GMT+0000 (Coordinated Universal Time)
10
- * BUILD_COMMIT: 1f84255f75fc7d5dfe2de2662a793668672c8d27
7
+ * VERSION: 2.303.0
8
+ * BUILD_TIMESTAMP: 1792102148037
9
+ * BUILD_DATE: Thu Oct 15 2026 22:09:08 GMT+0000 (Coordinated Universal Time)
10
+ * BUILD_COMMIT: ed4ed11fb402dec1e4d8db41deabb715484897e8
11
11
  */
12
12
  //#region src/lib/intl/localized-messages/tr.json
13
13
  var e = {
@@ -4,10 +4,10 @@
4
4
  * This file is not intended for use in other contexts and there are no guarantees about its behavior outside of MySheerID.
5
5
  */
6
6
  /**
7
- * VERSION: 2.301.0
8
- * BUILD_TIMESTAMP: 1791996181846
9
- * BUILD_DATE: Wed Oct 14 2026 16:43:01 GMT+0000 (Coordinated Universal Time)
10
- * BUILD_COMMIT: 1f84255f75fc7d5dfe2de2662a793668672c8d27
7
+ * VERSION: 2.303.0
8
+ * BUILD_TIMESTAMP: 1792102148037
9
+ * BUILD_DATE: Thu Oct 15 2026 22:09:08 GMT+0000 (Coordinated Universal Time)
10
+ * BUILD_COMMIT: ed4ed11fb402dec1e4d8db41deabb715484897e8
11
11
  */
12
12
  //#region src/lib/intl/localized-messages/uk.json
13
13
  var e = {
@@ -4,10 +4,10 @@
4
4
  * This file is not intended for use in other contexts and there are no guarantees about its behavior outside of MySheerID.
5
5
  */
6
6
  /**
7
- * VERSION: 2.301.0
8
- * BUILD_TIMESTAMP: 1791996181846
9
- * BUILD_DATE: Wed Oct 14 2026 16:43:01 GMT+0000 (Coordinated Universal Time)
10
- * BUILD_COMMIT: 1f84255f75fc7d5dfe2de2662a793668672c8d27
7
+ * VERSION: 2.303.0
8
+ * BUILD_TIMESTAMP: 1792102148037
9
+ * BUILD_DATE: Thu Oct 15 2026 22:09:08 GMT+0000 (Coordinated Universal Time)
10
+ * BUILD_COMMIT: ed4ed11fb402dec1e4d8db41deabb715484897e8
11
11
  */
12
12
  //#region src/lib/intl/localized-messages/ur.json
13
13
  var e = {
@@ -0,0 +1,63 @@
1
+
2
+ /**
3
+ * VERSION: 2.303.0
4
+ * BUILD_TIMESTAMP: 1792102143487
5
+ * BUILD_DATE: Thu Oct 15 2026 22:09:03 GMT+0000 (Coordinated Universal Time)
6
+ * BUILD_COMMIT: ed4ed11fb402dec1e4d8db41deabb715484897e8
7
+ */
8
+ import { dt as e, kt as t } from "./options-DsRV5fwh.js";
9
+ import { s as n } from "./jsx-runtime-DQO6A867.js";
10
+ import { E as r, O as i, i as a, y as o } from "./Message-COzkFETu.js";
11
+ import { S as s, b as c } from "./runtimeTypes-B2AGNJMT.js";
12
+ import { g as l } from "./programThemeGetters-DFcbGSAA.js";
13
+ //#region src/lib/ServerApi/VerificationApiUtils.ts
14
+ var u = /* @__PURE__ */ t(n(), 1);
15
+ async function d(e, t, n) {
16
+ if (c[t]) {
17
+ let i = o[t](n), a = await r(l(e, t), i);
18
+ if (a.currentStep === "error") throw Error(`Failed to determine fields to collect: ${a}`);
19
+ return a;
20
+ }
21
+ throw Error(`Unknown step ${t}`);
22
+ }
23
+ //#endregion
24
+ //#region src/lib/ServerApi/useCollectFieldsEndpoint.ts
25
+ var f = (e, t) => e.length === t.length && e.every((e, n) => e.key === t[n].key), p = ({ verificationId: t, currentStep: n, viewModel: r, defaultRequiredFields: o = [], dispatchFieldRequirements: c = !0 }) => {
26
+ let l = a(), p = r.statuses, m = r.status, h = Array.isArray(p) && p.length > 0 ? p[0] : m, [g, _] = u.useState(o), [v, y] = u.useState([]), [b, x] = u.useState(void 0);
27
+ return u.useEffect(() => {
28
+ if (i()) return;
29
+ let a = new AbortController();
30
+ return (async () => {
31
+ try {
32
+ let i = await d(t, n, r), o = e(() => i.fieldsToCollect.required, []), s = e(() => i.fieldsToCollect.optional, []);
33
+ if (!a.signal.aborted) {
34
+ _((e) => f(e, o) ? e : o), y((e) => f(e, s) ? e : s), x((e) => {
35
+ let t = i.availableStatuses;
36
+ return e && t && e.length === t.length && e.every((e, n) => e === t[n]) ? e : t;
37
+ }), c && l({
38
+ type: "COLLECT_FIELDS",
39
+ requiredFields: o,
40
+ optionalFields: s
41
+ });
42
+ let e = i.availableStatuses;
43
+ h && e && e.length > 0 && !e.includes(h) && l({ type: "STATUS_INVALIDATED" });
44
+ }
45
+ } catch (e) {
46
+ s.error(`Failed to determine fields to collect: ${e}`, n);
47
+ }
48
+ })(), () => {
49
+ a.abort();
50
+ };
51
+ }, [
52
+ t,
53
+ n,
54
+ r.countryChoice?.value,
55
+ h
56
+ ]), {
57
+ isFieldRequired: (e) => g.some((t) => t.key === e),
58
+ isFieldOptional: (e) => v.some((t) => t.key === e),
59
+ availableStatuses: b
60
+ };
61
+ };
62
+ //#endregion
63
+ export { p as t };
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useCollectFieldsEndpoint-Cqk7nVm8.js","names":[],"sources":["../../src/lib/ServerApi/VerificationApiUtils.ts","../../src/lib/ServerApi/useCollectFieldsEndpoint.ts"],"sourcesContent":["import { VerificationStepsEnum } from \"../types/runtimeTypes\";\nimport {\n type CollectFieldsResponse,\n type DatabaseId,\n type VerificationStep,\n type ViewModel,\n} from \"../types/types\";\n\nimport { getFieldsToCollectUrl } from \"./ApiUrls\";\nimport * as Network from \"./Network\";\nimport { stepToRequest } from \"./StepToRequest\";\n\n/**\n * EXPERIMENTAL - Check which fields are required and optional for a given view model\n */\nexport async function getFieldsToCollect(\n verificationId: DatabaseId,\n step: VerificationStep,\n viewModel: ViewModel,\n): Promise<CollectFieldsResponse> {\n if (VerificationStepsEnum[step]) {\n const requestBody = stepToRequest[step](viewModel);\n const response = (await Network.PostJson(\n getFieldsToCollectUrl(verificationId, step),\n requestBody,\n )) as CollectFieldsResponse;\n if (response.currentStep === \"error\") {\n throw new Error(`Failed to determine fields to collect: ${response}`);\n }\n return response as CollectFieldsResponse;\n }\n throw new Error(`Unknown step ${step}`);\n}\n","import React from \"react\";\n\nimport { getSafe } from \"@jslib/shared/utils/getSafe\";\nimport { logger } from \"@jslib/shared/utils/logger\";\n\nimport {\n type AllStatuses,\n type CollectFieldsResponse,\n type FieldDescription,\n type VerificationStep,\n type ViewModel,\n type CollectFieldsAction,\n} from \"../types/types\";\nimport { useAppDispatch } from \"../state/contextHooks\";\nimport { isMockProgram } from \"../state/mockProgram\";\n\nimport { getFieldsToCollect } from \"./VerificationApiUtils\";\n\nconst sameFieldList = (a: FieldDescription[], b: FieldDescription[]): boolean =>\n a.length === b.length && a.every((field, i) => field.key === b[i].key);\n\nexport const useCollectFieldsEndpoint = <VM extends ViewModel = ViewModel>({\n verificationId,\n currentStep,\n viewModel,\n defaultRequiredFields = [],\n dispatchFieldRequirements = true,\n}: {\n verificationId: string;\n currentStep: VerificationStep;\n viewModel: VM;\n defaultRequiredFields?: FieldDescription[];\n // When false, the required/optional fields from the endpoint don't affect validation\n // Cleanup: DATA-5704\n dispatchFieldRequirements?: boolean;\n}) => {\n const dispatch = useAppDispatch();\n\n // The selected status drives both the re-fetch dependency and the\n // invalidation check below. Some flows store it as a singular `status`,\n // others as a `statuses` array, so normalize to whichever is present.\n const viewModelStatuses = (viewModel as { statuses?: AllStatuses[] }).statuses;\n const viewModelStatus = (viewModel as { status?: AllStatuses }).status;\n const selectedStatus =\n Array.isArray(viewModelStatuses) && viewModelStatuses.length > 0\n ? viewModelStatuses[0]\n : viewModelStatus;\n\n const [requiredFields, setRequiredFields] =\n React.useState<FieldDescription[]>(defaultRequiredFields);\n const [optionalFields, setOptionalFields] = React.useState<FieldDescription[]>([]);\n const [availableStatuses, setAvailableStatuses] = React.useState<AllStatuses[] | undefined>(\n undefined,\n );\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 // Mock programs make no calls to the verification service; keep each step's defaults\n if (isMockProgram()) {\n return;\n }\n\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 if (!abortController.signal.aborted) {\n // Preserve reference identity when content hasn't changed to avoid\n // unnecessary re-renders in consuming components.\n setRequiredFields((prev) =>\n sameFieldList(prev, newRequiredFields) ? prev : newRequiredFields,\n );\n setOptionalFields((prev) =>\n sameFieldList(prev, newOptionalFields) ? prev : newOptionalFields,\n );\n setAvailableStatuses((prev) => {\n const next = collectFieldsResponse.availableStatuses;\n if (\n prev &&\n next &&\n prev.length === next.length &&\n prev.every((s, i) => s === next[i])\n ) {\n return prev;\n }\n return next;\n });\n\n // Dispatch the field requirements to the reducer\n if (dispatchFieldRequirements) {\n const collectFieldsAction: CollectFieldsAction = {\n type: \"COLLECT_FIELDS\",\n requiredFields: newRequiredFields,\n optionalFields: newOptionalFields,\n };\n dispatch(collectFieldsAction);\n }\n\n // If the user's currently-selected status is no longer in the\n // available list, clear it from the viewModel. Guarded by length>0\n // because empty availableStatuses is owned by the existing\n // fieldsToSkipValidation pathway in updateMilitaryViewModel et al.\n const nextStatuses = collectFieldsResponse.availableStatuses;\n if (\n selectedStatus &&\n nextStatuses &&\n nextStatuses.length > 0 &&\n !nextStatuses.includes(selectedStatus)\n ) {\n dispatch({ type: \"STATUS_INVALIDATED\" });\n }\n }\n } catch (error) {\n logger.error(`Failed to determine fields to collect: ${error}`, currentStep);\n }\n })();\n\n return () => {\n abortController.abort();\n };\n }, [verificationId, currentStep, viewModel.countryChoice?.value, selectedStatus]);\n\n return { isFieldRequired, isFieldOptional, availableStatuses };\n};\n"],"mappings":";;;;;;;AAeA,eAAA,EAAA,GAAA,GAAA,GAAA;;;;;;;AAiBA;;;ACdA,IAAM,KAAiB,GAAuB,MAC5C,EAAE,WAAW,EAAE,UAAU,EAAE,OAAO,GAAO,MAAM,E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;GAC7E;EACF,GAAG,SAEU;GACX,EAAgB,MAAM;EACxB;CACF,GAAG;EAAC;EAAgB;EAAa,EAAU,eAAe;EAAO;CAAc,CAAC,GAEzE;EAAE,kBA5EgB,MAAkB,EAAe,MAAM,MAAU,EAAM,QAAQ,CAAG;EA4EjE,kBA3ED,MAAkB,EAAe,MAAM,MAAU,EAAM,QAAQ,CAAG;EA2EhD;CAAkB;AAC/D"}
@@ -0,0 +1,67 @@
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.303.0
8
+ * BUILD_TIMESTAMP: 1792102148037
9
+ * BUILD_DATE: Thu Oct 15 2026 22:09:08 GMT+0000 (Coordinated Universal Time)
10
+ * BUILD_COMMIT: ed4ed11fb402dec1e4d8db41deabb715484897e8
11
+ */
12
+ import { Tt as e, kt as t } from "./intl-DYOqmiaL.js";
13
+ import { S as n, b as r } from "./runtimeTypes-B2AGNJMT.js";
14
+ import { g as i } from "./programThemeGetters-DJcD6MLy.js";
15
+ import { s as a } from "./jsx-runtime-DtApx7WX.js";
16
+ import { D as o, L as s, N as c, i as l } from "./Message-CpaZwHl9.js";
17
+ //#region src/lib/ServerApi/VerificationApiUtils.ts
18
+ var u = /* @__PURE__ */ t(a(), 1);
19
+ async function d(e, t, n) {
20
+ if (r[t]) {
21
+ let r = o[t](n), a = await c(i(e, t), r);
22
+ if (a.currentStep === "error") throw Error(`Failed to determine fields to collect: ${a}`);
23
+ return a;
24
+ }
25
+ throw Error(`Unknown step ${t}`);
26
+ }
27
+ //#endregion
28
+ //#region src/lib/ServerApi/useCollectFieldsEndpoint.ts
29
+ var f = (e, t) => e.length === t.length && e.every((e, n) => e.key === t[n].key), p = ({ verificationId: t, currentStep: r, viewModel: i, defaultRequiredFields: a = [], dispatchFieldRequirements: o = !0 }) => {
30
+ let c = l(), p = i.statuses, m = i.status, h = Array.isArray(p) && p.length > 0 ? p[0] : m, [g, _] = u.useState(a), [v, y] = u.useState([]), [b, x] = u.useState(void 0);
31
+ return u.useEffect(() => {
32
+ if (s()) return;
33
+ let a = new AbortController();
34
+ return (async () => {
35
+ try {
36
+ let n = await d(t, r, i), s = e(() => n.fieldsToCollect.required, []), l = e(() => n.fieldsToCollect.optional, []);
37
+ if (!a.signal.aborted) {
38
+ _((e) => f(e, s) ? e : s), y((e) => f(e, l) ? e : l), x((e) => {
39
+ let t = n.availableStatuses;
40
+ return e && t && e.length === t.length && e.every((e, n) => e === t[n]) ? e : t;
41
+ }), o && c({
42
+ type: "COLLECT_FIELDS",
43
+ requiredFields: s,
44
+ optionalFields: l
45
+ });
46
+ let e = n.availableStatuses;
47
+ h && e && e.length > 0 && !e.includes(h) && c({ type: "STATUS_INVALIDATED" });
48
+ }
49
+ } catch (e) {
50
+ n.error(`Failed to determine fields to collect: ${e}`, r);
51
+ }
52
+ })(), () => {
53
+ a.abort();
54
+ };
55
+ }, [
56
+ t,
57
+ r,
58
+ i.countryChoice?.value,
59
+ h
60
+ ]), {
61
+ isFieldRequired: (e) => g.some((t) => t.key === e),
62
+ isFieldOptional: (e) => v.some((t) => t.key === e),
63
+ availableStatuses: b
64
+ };
65
+ };
66
+ //#endregion
67
+ export { p as t };
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useCollectFieldsEndpoint-moJiW3Nn.js","names":[],"sources":["../../src/lib/ServerApi/VerificationApiUtils.ts","../../src/lib/ServerApi/useCollectFieldsEndpoint.ts"],"sourcesContent":["import { VerificationStepsEnum } from \"../types/runtimeTypes\";\nimport {\n type CollectFieldsResponse,\n type DatabaseId,\n type VerificationStep,\n type ViewModel,\n} from \"../types/types\";\n\nimport { getFieldsToCollectUrl } from \"./ApiUrls\";\nimport * as Network from \"./Network\";\nimport { stepToRequest } from \"./StepToRequest\";\n\n/**\n * EXPERIMENTAL - Check which fields are required and optional for a given view model\n */\nexport async function getFieldsToCollect(\n verificationId: DatabaseId,\n step: VerificationStep,\n viewModel: ViewModel,\n): Promise<CollectFieldsResponse> {\n if (VerificationStepsEnum[step]) {\n const requestBody = stepToRequest[step](viewModel);\n const response = (await Network.PostJson(\n getFieldsToCollectUrl(verificationId, step),\n requestBody,\n )) as CollectFieldsResponse;\n if (response.currentStep === \"error\") {\n throw new Error(`Failed to determine fields to collect: ${response}`);\n }\n return response as CollectFieldsResponse;\n }\n throw new Error(`Unknown step ${step}`);\n}\n","import React from \"react\";\n\nimport { getSafe } from \"@jslib/shared/utils/getSafe\";\nimport { logger } from \"@jslib/shared/utils/logger\";\n\nimport {\n type AllStatuses,\n type CollectFieldsResponse,\n type FieldDescription,\n type VerificationStep,\n type ViewModel,\n type CollectFieldsAction,\n} from \"../types/types\";\nimport { useAppDispatch } from \"../state/contextHooks\";\nimport { isMockProgram } from \"../state/mockProgram\";\n\nimport { getFieldsToCollect } from \"./VerificationApiUtils\";\n\nconst sameFieldList = (a: FieldDescription[], b: FieldDescription[]): boolean =>\n a.length === b.length && a.every((field, i) => field.key === b[i].key);\n\nexport const useCollectFieldsEndpoint = <VM extends ViewModel = ViewModel>({\n verificationId,\n currentStep,\n viewModel,\n defaultRequiredFields = [],\n dispatchFieldRequirements = true,\n}: {\n verificationId: string;\n currentStep: VerificationStep;\n viewModel: VM;\n defaultRequiredFields?: FieldDescription[];\n // When false, the required/optional fields from the endpoint don't affect validation\n // Cleanup: DATA-5704\n dispatchFieldRequirements?: boolean;\n}) => {\n const dispatch = useAppDispatch();\n\n // The selected status drives both the re-fetch dependency and the\n // invalidation check below. Some flows store it as a singular `status`,\n // others as a `statuses` array, so normalize to whichever is present.\n const viewModelStatuses = (viewModel as { statuses?: AllStatuses[] }).statuses;\n const viewModelStatus = (viewModel as { status?: AllStatuses }).status;\n const selectedStatus =\n Array.isArray(viewModelStatuses) && viewModelStatuses.length > 0\n ? viewModelStatuses[0]\n : viewModelStatus;\n\n const [requiredFields, setRequiredFields] =\n React.useState<FieldDescription[]>(defaultRequiredFields);\n const [optionalFields, setOptionalFields] = React.useState<FieldDescription[]>([]);\n const [availableStatuses, setAvailableStatuses] = React.useState<AllStatuses[] | undefined>(\n undefined,\n );\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 // Mock programs make no calls to the verification service; keep each step's defaults\n if (isMockProgram()) {\n return;\n }\n\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 if (!abortController.signal.aborted) {\n // Preserve reference identity when content hasn't changed to avoid\n // unnecessary re-renders in consuming components.\n setRequiredFields((prev) =>\n sameFieldList(prev, newRequiredFields) ? prev : newRequiredFields,\n );\n setOptionalFields((prev) =>\n sameFieldList(prev, newOptionalFields) ? prev : newOptionalFields,\n );\n setAvailableStatuses((prev) => {\n const next = collectFieldsResponse.availableStatuses;\n if (\n prev &&\n next &&\n prev.length === next.length &&\n prev.every((s, i) => s === next[i])\n ) {\n return prev;\n }\n return next;\n });\n\n // Dispatch the field requirements to the reducer\n if (dispatchFieldRequirements) {\n const collectFieldsAction: CollectFieldsAction = {\n type: \"COLLECT_FIELDS\",\n requiredFields: newRequiredFields,\n optionalFields: newOptionalFields,\n };\n dispatch(collectFieldsAction);\n }\n\n // If the user's currently-selected status is no longer in the\n // available list, clear it from the viewModel. Guarded by length>0\n // because empty availableStatuses is owned by the existing\n // fieldsToSkipValidation pathway in updateMilitaryViewModel et al.\n const nextStatuses = collectFieldsResponse.availableStatuses;\n if (\n selectedStatus &&\n nextStatuses &&\n nextStatuses.length > 0 &&\n !nextStatuses.includes(selectedStatus)\n ) {\n dispatch({ type: \"STATUS_INVALIDATED\" });\n }\n }\n } catch (error) {\n logger.error(`Failed to determine fields to collect: ${error}`, currentStep);\n }\n })();\n\n return () => {\n abortController.abort();\n };\n }, [verificationId, currentStep, viewModel.countryChoice?.value, selectedStatus]);\n\n return { isFieldRequired, isFieldOptional, availableStatuses };\n};\n"],"mappings":";;;;;;;AAeA,eAAA,EAAA,GAAA,GAAA,GAAA;;;;;;;AAiBA;;;ACdA,IAAM,KAAiB,GAAuB,MAC5C,EAAE,WAAW,EAAE,UAAU,EAAE,OAAO,GAAO,MAAM,EAAM,QAAQ,EAAE,GAAG,GAAG,GAE1D,KAA8D,EACzE,mBACA,gBACA,cACA,2BAAwB,CAAC,GACzB,+BAA4B,SASxB;CACJ,IAAM,IAAW,EAAe,GAK1B,IAAqB,EAA2C,UAChE,IAAmB,EAAuC,QAC1D,IACJ,MAAM,QAAQ,CAAiB,KAAK,EAAkB,SAAS,IAC3D,EAAkB,KAClB,GAEA,CAAC,GAAgB,KAAA,EACf,SAA6B,CAAqB,GACpD,CAAC,GAAgB,KAAA,EAA2B,SAA6B,CAAC,CAAC,GAC3E,CAAC,GAAmB,KAAA,EAA8B,SACtD,KAAA,CACF;CA8EA,OAzEA,EAAM,gBAAgB;EAEpB,IAAI,EAAc,GAChB;EAGF,IAAM,IAAkB,IAAI,gBAAgB;EA8D5C,QA5DC,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;IAC1F,IAAI,CAAC,EAAgB,OAAO,SAAS;KAuBnC,AApBA,GAAmB,MACjB,EAAc,GAAM,CAAiB,IAAI,IAAO,CAClD,GACA,GAAmB,MACjB,EAAc,GAAM,CAAiB,IAAI,IAAO,CAClD,GACA,GAAsB,MAAS;MAC7B,IAAM,IAAO,EAAsB;MASnC,OAPE,KACA,KACA,EAAK,WAAW,EAAK,UACrB,EAAK,OAAO,GAAG,M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