@sheerid/jslib 2.303.0 → 2.304.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 (354) hide show
  1. package/_mysheerid-preview.css +4 -4
  2. package/_mysheerid-preview.js +39 -39
  3. package/chunk/{AddressComponent-Iqr2nkzk.js → AddressComponent-DIp4rtF_.js} +6 -6
  4. package/chunk/{AddressComponent-C0MNLqbV.js.map → AddressComponent-DIp4rtF_.js.map} +1 -1
  5. package/chunk/{AddressComponent-C0MNLqbV.js → AddressComponent-OHgf-_sl.js} +6 -6
  6. package/chunk/{AddressComponent-Iqr2nkzk.js.map → AddressComponent-OHgf-_sl.js.map} +1 -1
  7. package/chunk/AnnouncingHeader-CnV2m0Ak.js +4 -4
  8. package/chunk/AnnouncingHeader-zH7WLU2-.js +4 -4
  9. package/chunk/{BirthDateComponent-DX43xuNP.js → BirthDateComponent-CucjHQqp.js} +6 -6
  10. package/chunk/{BirthDateComponent-CCVzkOMc.js.map → BirthDateComponent-CucjHQqp.js.map} +1 -1
  11. package/chunk/{BirthDateComponent-CCVzkOMc.js → BirthDateComponent-oQPnVqSa.js} +6 -6
  12. package/chunk/{BirthDateComponent-DX43xuNP.js.map → BirthDateComponent-oQPnVqSa.js.map} +1 -1
  13. package/chunk/{CaptchaComponent-CZCwnbD5.js → CaptchaComponent-D98si3Jy.js} +9 -9
  14. package/chunk/{CaptchaComponent-BeK_U23J.js.map → CaptchaComponent-D98si3Jy.js.map} +1 -1
  15. package/chunk/{CaptchaComponent-BeK_U23J.js → CaptchaComponent-DqGHJA-M.js} +9 -9
  16. package/chunk/{CaptchaComponent-CZCwnbD5.js.map → CaptchaComponent-DqGHJA-M.js.map} +1 -1
  17. package/chunk/{ChangeLocaleComponent-DwBHbLKW.js → ChangeLocaleComponent-C8snL44m.js} +7 -7
  18. package/chunk/{ChangeLocaleComponent-DwBHbLKW.js.map → ChangeLocaleComponent-C8snL44m.js.map} +1 -1
  19. package/chunk/{ChangeLocaleComponent-l2sunrPk.js → ChangeLocaleComponent-CeHqgN6J.js} +7 -7
  20. package/chunk/{ChangeLocaleComponent-l2sunrPk.js.map → ChangeLocaleComponent-CeHqgN6J.js.map} +1 -1
  21. package/chunk/{City-D0Jiq-D2.js → City-7bUXB6DM.js} +6 -6
  22. package/chunk/{City-BwQWs5re.js.map → City-7bUXB6DM.js.map} +1 -1
  23. package/chunk/{City-BwQWs5re.js → City-aUxxLZ7_.js} +6 -6
  24. package/chunk/{City-D0Jiq-D2.js.map → City-aUxxLZ7_.js.map} +1 -1
  25. package/chunk/{CollegeNameComponent-DlDNav1B.js → CollegeNameComponent-B5as2wyn.js} +8 -8
  26. package/chunk/{CollegeNameComponent-BqJGJY5H.js.map → CollegeNameComponent-B5as2wyn.js.map} +1 -1
  27. package/chunk/{CollegeNameComponent-BqJGJY5H.js → CollegeNameComponent-YAs8pRV4.js} +8 -8
  28. package/chunk/{CollegeNameComponent-DlDNav1B.js.map → CollegeNameComponent-YAs8pRV4.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-BRjVzl-k.js → CountryComponentWrapper-BTUytS2o.js} +9 -9
  32. package/chunk/{CountryComponentWrapper-BRjVzl-k.js.map → CountryComponentWrapper-BTUytS2o.js.map} +1 -1
  33. package/chunk/{CountryComponentWrapper-FbE1YIcg.js → CountryComponentWrapper-IoxuPmMC.js} +9 -9
  34. package/chunk/{CountryComponentWrapper-FbE1YIcg.js.map → CountryComponentWrapper-IoxuPmMC.js.map} +1 -1
  35. package/chunk/{DischargeDateComponent-2hFDESgo.js → DischargeDateComponent-CTZiOL4E.js} +9 -9
  36. package/chunk/{DischargeDateComponent-2hFDESgo.js.map → DischargeDateComponent-CTZiOL4E.js.map} +1 -1
  37. package/chunk/{DischargeDateComponent-DeDq2Wj7.js → DischargeDateComponent-Cy1_zOya.js} +9 -9
  38. package/chunk/{DischargeDateComponent-DeDq2Wj7.js.map → DischargeDateComponent-Cy1_zOya.js.map} +1 -1
  39. package/chunk/{DriverLicenseNumberComponent-D7VZTYj8.js → DriverLicenseNumberComponent-CxSJbkjt.js} +6 -6
  40. package/chunk/{DriverLicenseNumberComponent-BsVBlhfi.js.map → DriverLicenseNumberComponent-CxSJbkjt.js.map} +1 -1
  41. package/chunk/{DriverLicenseNumberComponent-BsVBlhfi.js → DriverLicenseNumberComponent-Rky9SG-A.js} +6 -6
  42. package/chunk/{DriverLicenseNumberComponent-D7VZTYj8.js.map → DriverLicenseNumberComponent-Rky9SG-A.js.map} +1 -1
  43. package/chunk/{EmailLoopPending-BKSSa9G1.js → EmailLoopPending-BZWT0n5I.js} +8 -8
  44. package/chunk/{EmailLoopPending-BKSSa9G1.js.map → EmailLoopPending-BZWT0n5I.js.map} +1 -1
  45. package/chunk/{EmailLoopPending-LfnqoPt_.js → EmailLoopPending-C319a8WP.js} +8 -8
  46. package/chunk/{EmailLoopPending-LfnqoPt_.js.map → EmailLoopPending-C319a8WP.js.map} +1 -1
  47. package/chunk/{ExtraMessage-DQ-khyDG.js → ExtraMessage-B58a-KYp.js} +5 -5
  48. package/chunk/{ExtraMessage-DQ-khyDG.js.map → ExtraMessage-B58a-KYp.js.map} +1 -1
  49. package/chunk/{ExtraMessage-SUFzlSCv.js → ExtraMessage-C1LGtDyk.js} +5 -5
  50. package/chunk/{ExtraMessage-SUFzlSCv.js.map → ExtraMessage-C1LGtDyk.js.map} +1 -1
  51. package/chunk/{FirstResponderOrganizationComponent-2czrRImt.js → FirstResponderOrganizationComponent-D6M_yo4M.js} +8 -8
  52. package/chunk/{FirstResponderOrganizationComponent-zwpAWGKM.js.map → FirstResponderOrganizationComponent-D6M_yo4M.js.map} +1 -1
  53. package/chunk/{FirstResponderOrganizationComponent-zwpAWGKM.js → FirstResponderOrganizationComponent-HTKkHwO4.js} +8 -8
  54. package/chunk/{FirstResponderOrganizationComponent-2czrRImt.js.map → FirstResponderOrganizationComponent-HTKkHwO4.js.map} +1 -1
  55. package/chunk/{FormFieldInputSelect-DsLOV8wM.js → FormFieldInputSelect-Cb6lHKHg.js} +5 -5
  56. package/chunk/{FormFieldInputSelect-CFnN3-Xc.js.map → FormFieldInputSelect-Cb6lHKHg.js.map} +1 -1
  57. package/chunk/{FormFieldInputSelect-CFnN3-Xc.js → FormFieldInputSelect-e0N6kc8Y.js} +5 -5
  58. package/chunk/{FormFieldInputSelect-DsLOV8wM.js.map → FormFieldInputSelect-e0N6kc8Y.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-CX5FfZx7.js → FormFieldTypeahead-BsM6Ruie.js} +10 -10
  64. package/chunk/{FormFieldTypeahead-CX5FfZx7.js.map → FormFieldTypeahead-BsM6Ruie.js.map} +1 -1
  65. package/chunk/{FormFieldTypeahead-BqHhdA5h.js → FormFieldTypeahead-QR_lJrFB.js} +10 -10
  66. package/chunk/{FormFieldTypeahead-BqHhdA5h.js.map → FormFieldTypeahead-QR_lJrFB.js.map} +1 -1
  67. package/chunk/{FormFooterComponent-CSs6B6_O.js → FormFooterComponent-DGcfJdwH.js} +9 -9
  68. package/chunk/{FormFooterComponent-CSs6B6_O.js.map → FormFooterComponent-DGcfJdwH.js.map} +1 -1
  69. package/chunk/{FormFooterComponent-Cgq5-kvO.js → FormFooterComponent-DmKzIyrc.js} +9 -9
  70. package/chunk/{FormFooterComponent-Cgq5-kvO.js.map → FormFooterComponent-DmKzIyrc.js.map} +1 -1
  71. package/chunk/{FormSelectChoice-BM2vOG_C.js → FormSelectChoice-Bv5aMXMd.js} +6 -6
  72. package/chunk/{FormSelectChoice-BM2vOG_C.js.map → FormSelectChoice-Bv5aMXMd.js.map} +1 -1
  73. package/chunk/{FormSelectChoice-kbIiwSO2.js → FormSelectChoice-CE1QacNH.js} +6 -6
  74. package/chunk/{FormSelectChoice-kbIiwSO2.js.map → FormSelectChoice-CE1QacNH.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-CSKSVIey.js → LicensedProfessionalOrganizationComponent-BzyJSQrq.js} +8 -8
  78. package/chunk/{LicensedProfessionalOrganizationComponent-B72AjsZA.js.map → LicensedProfessionalOrganizationComponent-BzyJSQrq.js.map} +1 -1
  79. package/chunk/{LicensedProfessionalOrganizationComponent-B72AjsZA.js → LicensedProfessionalOrganizationComponent-JXLsT4Ua.js} +8 -8
  80. package/chunk/{LicensedProfessionalOrganizationComponent-CSKSVIey.js.map → LicensedProfessionalOrganizationComponent-JXLsT4Ua.js.map} +1 -1
  81. package/chunk/{LogoComponent-DStOPcJ4.js → LogoComponent-B9xpaOmb.js} +5 -5
  82. package/chunk/{LogoComponent-BhyH_xRq.js.map → LogoComponent-B9xpaOmb.js.map} +1 -1
  83. package/chunk/{LogoComponent-BhyH_xRq.js → LogoComponent-CcqFEsge.js} +5 -5
  84. package/chunk/{LogoComponent-DStOPcJ4.js.map → LogoComponent-CcqFEsge.js.map} +1 -1
  85. package/chunk/{LowIncomeOrganizationComponent-BDrMa0E2.js → LowIncomeOrganizationComponent-DlRk_SSB.js} +9 -9
  86. package/chunk/{LowIncomeOrganizationComponent-BgOWD-ZC.js.map → LowIncomeOrganizationComponent-DlRk_SSB.js.map} +1 -1
  87. package/chunk/{LowIncomeOrganizationComponent-BgOWD-ZC.js → LowIncomeOrganizationComponent-FQA-80EB.js} +9 -9
  88. package/chunk/{LowIncomeOrganizationComponent-BDrMa0E2.js.map → LowIncomeOrganizationComponent-FQA-80EB.js.map} +1 -1
  89. package/chunk/{MedicalProfessionalOrganizationComponent-DPJg8iU1.js → MedicalProfessionalOrganizationComponent-B52FvTE1.js} +8 -8
  90. package/chunk/{MedicalProfessionalOrganizationComponent-BxH3qrmJ.js.map → MedicalProfessionalOrganizationComponent-B52FvTE1.js.map} +1 -1
  91. package/chunk/{MedicalProfessionalOrganizationComponent-BxH3qrmJ.js → MedicalProfessionalOrganizationComponent-GUaeaxBA.js} +8 -8
  92. package/chunk/{MedicalProfessionalOrganizationComponent-DPJg8iU1.js.map → MedicalProfessionalOrganizationComponent-GUaeaxBA.js.map} +1 -1
  93. package/chunk/{MemberIdComponent-OOPddp4y.js → MemberIdComponent-CKOJTsUZ.js} +6 -6
  94. package/chunk/{MemberIdComponent-OOPddp4y.js.map → MemberIdComponent-CKOJTsUZ.js.map} +1 -1
  95. package/chunk/{MemberIdComponent-oL_pc9Fd.js → MemberIdComponent-DKvGJ5w8.js} +6 -6
  96. package/chunk/{MemberIdComponent-oL_pc9Fd.js.map → MemberIdComponent-DKvGJ5w8.js.map} +1 -1
  97. package/chunk/{MembershipOrganizationComponent-BtHBKZS0.js → MembershipOrganizationComponent-BsP0oS9k.js} +8 -8
  98. package/chunk/{MembershipOrganizationComponent-BtHBKZS0.js.map → MembershipOrganizationComponent-BsP0oS9k.js.map} +1 -1
  99. package/chunk/{MembershipOrganizationComponent-DKvB2ONr.js → MembershipOrganizationComponent-DlERUS3X.js} +8 -8
  100. package/chunk/{MembershipOrganizationComponent-DKvB2ONr.js.map → MembershipOrganizationComponent-DlERUS3X.js.map} +1 -1
  101. package/chunk/{Message-CpaZwHl9.js → Message-BToMuDnF.js} +5 -5
  102. package/chunk/{Message-CpaZwHl9.js.map → Message-BToMuDnF.js.map} +1 -1
  103. package/chunk/{Message-COzkFETu.js → Message-BcRlg1D8.js} +5 -5
  104. package/chunk/{Message-COzkFETu.js.map → Message-BcRlg1D8.js.map} +1 -1
  105. package/chunk/Onfido-CTCgAwnB.js +4 -4
  106. package/chunk/{PersonalInfoStepSubmitButton-B4xXqxuH.js → PersonalInfoStepSubmitButton-B3cCavK_.js} +8 -8
  107. package/chunk/{PersonalInfoStepSubmitButton-B4xXqxuH.js.map → PersonalInfoStepSubmitButton-B3cCavK_.js.map} +1 -1
  108. package/chunk/{PersonalInfoStepSubmitButton-DdY477K7.js → PersonalInfoStepSubmitButton-DvsmVrOf.js} +8 -8
  109. package/chunk/{PersonalInfoStepSubmitButton-DdY477K7.js.map → PersonalInfoStepSubmitButton-DvsmVrOf.js.map} +1 -1
  110. package/chunk/{PersonalInfoStepWrapper-ZSbYW8X3.js → PersonalInfoStepWrapper-B58Hl9Sp.js} +5 -5
  111. package/chunk/{PersonalInfoStepWrapper-ZSbYW8X3.js.map → PersonalInfoStepWrapper-B58Hl9Sp.js.map} +1 -1
  112. package/chunk/{PersonalInfoStepWrapper-I5LL6qWv.js → PersonalInfoStepWrapper-BvUX_IV3.js} +6 -6
  113. package/chunk/{PersonalInfoStepWrapper-I5LL6qWv.js.map → PersonalInfoStepWrapper-BvUX_IV3.js.map} +1 -1
  114. package/chunk/{PostalCodeComponent-D78vjcv_.js → PostalCodeComponent-CrWWddQS.js} +6 -6
  115. package/chunk/{PostalCodeComponent-CzSv-hLR.js.map → PostalCodeComponent-CrWWddQS.js.map} +1 -1
  116. package/chunk/{PostalCodeComponent-CzSv-hLR.js → PostalCodeComponent-FVc2Nso4.js} +6 -6
  117. package/chunk/{PostalCodeComponent-D78vjcv_.js.map → PostalCodeComponent-FVc2Nso4.js.map} +1 -1
  118. package/chunk/{SSN-BVqvyxxj.js → SSN-5QKevvwg.js} +6 -6
  119. package/chunk/{SSN-BEYbIs4i.js.map → SSN-5QKevvwg.js.map} +1 -1
  120. package/chunk/{SSN-BEYbIs4i.js → SSN-rfoKEogO.js} +6 -6
  121. package/chunk/{SSN-BVqvyxxj.js.map → SSN-rfoKEogO.js.map} +1 -1
  122. package/chunk/{StateSelectComponent-jAsysEGR.js → StateSelectComponent-BaUHQef8.js} +7 -7
  123. package/chunk/{StateSelectComponent-Dnqp7nL4.js.map → StateSelectComponent-BaUHQef8.js.map} +1 -1
  124. package/chunk/{StateSelectComponent-Dnqp7nL4.js → StateSelectComponent-Bl0sEDiJ.js} +7 -7
  125. package/chunk/{StateSelectComponent-jAsysEGR.js.map → StateSelectComponent-Bl0sEDiJ.js.map} +1 -1
  126. package/chunk/{StatusComponent-B4IbsfFv.js → StatusComponent-CXUgeCAX.js} +7 -7
  127. package/chunk/{StatusComponent-B4IbsfFv.js.map → StatusComponent-CXUgeCAX.js.map} +1 -1
  128. package/chunk/{StatusComponent-BtzBYIzi.js → StatusComponent-DoH2jBJe.js} +7 -7
  129. package/chunk/{StatusComponent-BtzBYIzi.js.map → StatusComponent-DoH2jBJe.js.map} +1 -1
  130. package/chunk/{StepAgePersonalInfo-SUYKCYCd.js → StepAgePersonalInfo-CjTZNsVe.js} +18 -18
  131. package/chunk/{StepAgePersonalInfo-Ds6b-w3n.js.map → StepAgePersonalInfo-CjTZNsVe.js.map} +1 -1
  132. package/chunk/{StepAgePersonalInfo-Ds6b-w3n.js → StepAgePersonalInfo-DYHJqeaB.js} +18 -18
  133. package/chunk/{StepAgePersonalInfo-SUYKCYCd.js.map → StepAgePersonalInfo-DYHJqeaB.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-DPnf9Cmy.js → StepCollectIdentifier-BxkG6FC9.js} +7 -7
  137. package/chunk/{StepCollectIdentifier-DPnf9Cmy.js.map → StepCollectIdentifier-BxkG6FC9.js.map} +1 -1
  138. package/chunk/{StepCollectIdentifier-BLbccnb2.js → StepCollectIdentifier-DE0gBqAY.js} +7 -7
  139. package/chunk/{StepCollectIdentifier-BLbccnb2.js.map → StepCollectIdentifier-DE0gBqAY.js.map} +1 -1
  140. package/chunk/{StepCollectMilitaryPersonalInfoComponent-Bwg-sSDu.js → StepCollectMilitaryPersonalInfoComponent--Ie4B0yl.js} +22 -22
  141. package/chunk/{StepCollectMilitaryPersonalInfoComponent-Bwg-sSDu.js.map → StepCollectMilitaryPersonalInfoComponent--Ie4B0yl.js.map} +1 -1
  142. package/chunk/{StepCollectMilitaryPersonalInfoComponent-DHB17n2V.js → StepCollectMilitaryPersonalInfoComponent-DfiGcf5I.js} +22 -22
  143. package/chunk/{StepCollectMilitaryPersonalInfoComponent-DHB17n2V.js.map → StepCollectMilitaryPersonalInfoComponent-DfiGcf5I.js.map} +1 -1
  144. package/chunk/{StepCollectPersonalInfo-D8gZT28k.js → StepCollectPersonalInfo-lnriADQY.js} +32 -32
  145. package/chunk/{StepCollectPersonalInfo-D8gZT28k.js.map → StepCollectPersonalInfo-lnriADQY.js.map} +1 -1
  146. package/chunk/{StepCollectPersonalInfo-DgsHZW8E.js → StepCollectPersonalInfo-vwWUcMyH.js} +32 -32
  147. package/chunk/{StepCollectPersonalInfo-DgsHZW8E.js.map → StepCollectPersonalInfo-vwWUcMyH.js.map} +1 -1
  148. package/chunk/{StepCompleteAuthentication-DOywOfPZ.js → StepCompleteAuthentication-BJTAm52g.js} +6 -6
  149. package/chunk/{StepCompleteAuthentication-DOywOfPZ.js.map → StepCompleteAuthentication-BJTAm52g.js.map} +1 -1
  150. package/chunk/{StepCompleteAuthentication-DWg90te_.js → StepCompleteAuthentication-BUA2xrtE.js} +6 -6
  151. package/chunk/{StepCompleteAuthentication-DWg90te_.js.map → StepCompleteAuthentication-BUA2xrtE.js.map} +1 -1
  152. package/chunk/{StepConsolation-DPrOL4xP.js → StepConsolation-CRoBFGTd.js} +6 -6
  153. package/chunk/{StepConsolation-DPrOL4xP.js.map → StepConsolation-CRoBFGTd.js.map} +1 -1
  154. package/chunk/{StepConsolation-D_32ygMO.js → StepConsolation-Dw4IOp9l.js} +6 -6
  155. package/chunk/{StepConsolation-D_32ygMO.js.map → StepConsolation-Dw4IOp9l.js.map} +1 -1
  156. package/chunk/{StepDocUpload-DYPWRKrn.js → StepDocUpload-BUzQ9g81.js} +492 -1110
  157. package/chunk/StepDocUpload-BUzQ9g81.js.map +1 -0
  158. package/chunk/StepDocUpload-xEtdWGcK.js +1674 -0
  159. package/chunk/StepDocUpload-xEtdWGcK.js.map +1 -0
  160. package/chunk/{StepDriverLicensePersonalInfoComponent-Dh_l_qlV.js → StepDriverLicensePersonalInfoComponent-BxUpMImU.js} +13 -13
  161. package/chunk/{StepDriverLicensePersonalInfoComponent-Dh_l_qlV.js.map → StepDriverLicensePersonalInfoComponent-BxUpMImU.js.map} +1 -1
  162. package/chunk/{StepDriverLicensePersonalInfoComponent-gri_r5_Z.js → StepDriverLicensePersonalInfoComponent-Dx_8OM3-.js} +13 -13
  163. package/chunk/{StepDriverLicensePersonalInfoComponent-gri_r5_Z.js.map → StepDriverLicensePersonalInfoComponent-Dx_8OM3-.js.map} +1 -1
  164. package/chunk/{StepEmailLoop-B0u3Krt9.js → StepEmailLoop-Nw-rJgsm.js} +9 -9
  165. package/chunk/{StepEmailLoop-B0u3Krt9.js.map → StepEmailLoop-Nw-rJgsm.js.map} +1 -1
  166. package/chunk/{StepEmailLoop-BBG2gPCO.js → StepEmailLoop-mfub_mok.js} +9 -9
  167. package/chunk/{StepEmailLoop-BBG2gPCO.js.map → StepEmailLoop-mfub_mok.js.map} +1 -1
  168. package/chunk/{StepEmploymentPersonalInfo-DKt3-HYk.js → StepEmploymentPersonalInfo-DMkrJYj7.js} +18 -18
  169. package/chunk/{StepEmploymentPersonalInfo-BQJx3bBq.js.map → StepEmploymentPersonalInfo-DMkrJYj7.js.map} +1 -1
  170. package/chunk/{StepEmploymentPersonalInfo-BQJx3bBq.js → StepEmploymentPersonalInfo-jfNudNTZ.js} +18 -18
  171. package/chunk/{StepEmploymentPersonalInfo-DKt3-HYk.js.map → StepEmploymentPersonalInfo-jfNudNTZ.js.map} +1 -1
  172. package/chunk/{StepFirstResponderPersonalInfo-B9oRZLtk.js → StepFirstResponderPersonalInfo-CFqJv92p.js} +19 -19
  173. package/chunk/{StepFirstResponderPersonalInfo-B9oRZLtk.js.map → StepFirstResponderPersonalInfo-CFqJv92p.js.map} +1 -1
  174. package/chunk/{StepFirstResponderPersonalInfo-Dbf4-HTh.js → StepFirstResponderPersonalInfo-CYFtsRm-.js} +19 -19
  175. package/chunk/{StepFirstResponderPersonalInfo-Dbf4-HTh.js.map → StepFirstResponderPersonalInfo-CYFtsRm-.js.map} +1 -1
  176. package/chunk/{StepGeneralIdentityPersonalInfoComponent-D6gpx-Sa.js → StepGeneralIdentityPersonalInfoComponent-BaVIwPSY.js} +16 -16
  177. package/chunk/{StepGeneralIdentityPersonalInfoComponent-D6gpx-Sa.js.map → StepGeneralIdentityPersonalInfoComponent-BaVIwPSY.js.map} +1 -1
  178. package/chunk/{StepGeneralIdentityPersonalInfoComponent-DVzFhAXs.js → StepGeneralIdentityPersonalInfoComponent-k27Awiqm.js} +16 -16
  179. package/chunk/{StepGeneralIdentityPersonalInfoComponent-DVzFhAXs.js.map → StepGeneralIdentityPersonalInfoComponent-k27Awiqm.js.map} +1 -1
  180. package/chunk/{StepHybridIdentityPersonalInfoComponent-CI8UE5-z.js → StepHybridIdentityPersonalInfoComponent-D0luWaZH.js} +17 -17
  181. package/chunk/{StepHybridIdentityPersonalInfoComponent-CI8UE5-z.js.map → StepHybridIdentityPersonalInfoComponent-D0luWaZH.js.map} +1 -1
  182. package/chunk/{StepHybridIdentityPersonalInfoComponent-Dkv3zrty.js → StepHybridIdentityPersonalInfoComponent-k2Y3yuVP.js} +17 -17
  183. package/chunk/{StepHybridIdentityPersonalInfoComponent-Dkv3zrty.js.map → StepHybridIdentityPersonalInfoComponent-k2Y3yuVP.js.map} +1 -1
  184. package/chunk/{StepIDCheckLoop-D6bvCc5J.js → StepIDCheckLoop-BtLu63gH.js} +5 -5
  185. package/chunk/{StepIDCheckLoop-D6bvCc5J.js.map → StepIDCheckLoop-BtLu63gH.js.map} +1 -1
  186. package/chunk/{StepIDCheckLoop-YepJTceW.js → StepIDCheckLoop-qMDVYGF6.js} +5 -5
  187. package/chunk/{StepIDCheckLoop-YepJTceW.js.map → StepIDCheckLoop-qMDVYGF6.js.map} +1 -1
  188. package/chunk/{StepIDCheckLoopOnfido-BwhrprLa.js → StepIDCheckLoopOnfido-Cn2taSRq.js} +7 -7
  189. package/chunk/{StepIDCheckLoopOnfido-BwhrprLa.js.map → StepIDCheckLoopOnfido-Cn2taSRq.js.map} +1 -1
  190. package/chunk/{StepIDCheckLoopOnfido-BEM2_gQK.js → StepIDCheckLoopOnfido-D9hJvwHI.js} +7 -7
  191. package/chunk/{StepIDCheckLoopOnfido-BEM2_gQK.js.map → StepIDCheckLoopOnfido-D9hJvwHI.js.map} +1 -1
  192. package/chunk/{StepIDCheckLoopRegula-CtmJVnya.js → StepIDCheckLoopRegula-B0gSu2f2.js} +7 -7
  193. package/chunk/{StepIDCheckLoopRegula-CtmJVnya.js.map → StepIDCheckLoopRegula-B0gSu2f2.js.map} +1 -1
  194. package/chunk/{StepIDCheckLoopRegula-iHvaRIvX.js → StepIDCheckLoopRegula-C5taOj9i.js} +7 -7
  195. package/chunk/{StepIDCheckLoopRegula-iHvaRIvX.js.map → StepIDCheckLoopRegula-C5taOj9i.js.map} +1 -1
  196. package/chunk/{StepLicensedProfessionalPersonalInfo-CEKAzprw.js → StepLicensedProfessionalPersonalInfo-Db4rc2F6.js} +19 -19
  197. package/chunk/{StepLicensedProfessionalPersonalInfo-CEKAzprw.js.map → StepLicensedProfessionalPersonalInfo-Db4rc2F6.js.map} +1 -1
  198. package/chunk/{StepLicensedProfessionalPersonalInfo-DA8b1HU5.js → StepLicensedProfessionalPersonalInfo-tWD68oFU.js} +19 -19
  199. package/chunk/{StepLicensedProfessionalPersonalInfo-DA8b1HU5.js.map → StepLicensedProfessionalPersonalInfo-tWD68oFU.js.map} +1 -1
  200. package/chunk/{StepLowIncomePersonalInfo-BsUMysBy.js → StepLowIncomePersonalInfo-C8ZXtF9i.js} +22 -22
  201. package/chunk/{StepLowIncomePersonalInfo-BsUMysBy.js.map → StepLowIncomePersonalInfo-C8ZXtF9i.js.map} +1 -1
  202. package/chunk/{StepLowIncomePersonalInfo-DopFBW6a.js → StepLowIncomePersonalInfo-DTQzLFYh.js} +22 -22
  203. package/chunk/{StepLowIncomePersonalInfo-DopFBW6a.js.map → StepLowIncomePersonalInfo-DTQzLFYh.js.map} +1 -1
  204. package/chunk/{StepMedicalProfessionalPersonalInfo-D1c9fEPF.js → StepMedicalProfessionalPersonalInfo-CEWvfZIo.js} +20 -20
  205. package/chunk/{StepMedicalProfessionalPersonalInfo-D1c9fEPF.js.map → StepMedicalProfessionalPersonalInfo-CEWvfZIo.js.map} +1 -1
  206. package/chunk/{StepMedicalProfessionalPersonalInfo-DOEa4g_4.js → StepMedicalProfessionalPersonalInfo-D81j6Sg7.js} +20 -20
  207. package/chunk/{StepMedicalProfessionalPersonalInfo-DOEa4g_4.js.map → StepMedicalProfessionalPersonalInfo-D81j6Sg7.js.map} +1 -1
  208. package/chunk/{StepMemberPersonalInfo-C8bIy47a.js → StepMemberPersonalInfo-B__oOkWE.js} +15 -15
  209. package/chunk/{StepMemberPersonalInfo-C8bIy47a.js.map → StepMemberPersonalInfo-B__oOkWE.js.map} +1 -1
  210. package/chunk/{StepMemberPersonalInfo-Ci5ArejV.js → StepMemberPersonalInfo-Idz-W2bu.js} +15 -15
  211. package/chunk/{StepMemberPersonalInfo-Ci5ArejV.js.map → StepMemberPersonalInfo-Idz-W2bu.js.map} +1 -1
  212. package/chunk/{StepMoverPersonalInfo-CbUoVcqf.js → StepMoverPersonalInfo-BItSb2hF.js} +13 -13
  213. package/chunk/{StepMoverPersonalInfo-CbUoVcqf.js.map → StepMoverPersonalInfo-BItSb2hF.js.map} +1 -1
  214. package/chunk/{StepMoverPersonalInfo-DfmFX6fV.js → StepMoverPersonalInfo-EJ5M2CDv.js} +13 -13
  215. package/chunk/{StepMoverPersonalInfo-DfmFX6fV.js.map → StepMoverPersonalInfo-EJ5M2CDv.js.map} +1 -1
  216. package/chunk/{StepOverrideComponent-DcQqNZWk.js → StepOverrideComponent-BABa7V4t.js} +8 -8
  217. package/chunk/{StepOverrideComponent-DcQqNZWk.js.map → StepOverrideComponent-BABa7V4t.js.map} +1 -1
  218. package/chunk/{StepOverrideComponent-C17BBaf_.js → StepOverrideComponent-Cfltty36.js} +8 -8
  219. package/chunk/{StepOverrideComponent-C17BBaf_.js.map → StepOverrideComponent-Cfltty36.js.map} +1 -1
  220. package/chunk/{StepSMSLoop-QGqN6LkJ.js → StepSMSLoop-DfGhOhOr.js} +5 -5
  221. package/chunk/{StepSMSLoop-D7okg8tL.js.map → StepSMSLoop-DfGhOhOr.js.map} +1 -1
  222. package/chunk/{StepSMSLoop-D7okg8tL.js → StepSMSLoop-vn3IgTp0.js} +5 -5
  223. package/chunk/{StepSMSLoop-QGqN6LkJ.js.map → StepSMSLoop-vn3IgTp0.js.map} +1 -1
  224. package/chunk/StepSSO-BGHCbduX.js +4 -4
  225. package/chunk/StepSSO-ZHByQpHa.js +4 -4
  226. package/chunk/{StepSocialSecurityNumber-BkjNMHHH.js → StepSocialSecurityNumber-BEhNPFMA.js} +9 -9
  227. package/chunk/{StepSocialSecurityNumber-BkjNMHHH.js.map → StepSocialSecurityNumber-BEhNPFMA.js.map} +1 -1
  228. package/chunk/{StepSocialSecurityNumber-DWvUkbqi.js → StepSocialSecurityNumber-CjG9oKtT.js} +9 -9
  229. package/chunk/{StepSocialSecurityNumber-DWvUkbqi.js.map → StepSocialSecurityNumber-CjG9oKtT.js.map} +1 -1
  230. package/chunk/{StepStudentPersonalInfo-yy8Rhhg_.js → StepStudentPersonalInfo-6sEXvlbs.js} +19 -19
  231. package/chunk/{StepStudentPersonalInfo-DNRFiafL.js.map → StepStudentPersonalInfo-6sEXvlbs.js.map} +1 -1
  232. package/chunk/{StepStudentPersonalInfo-DNRFiafL.js → StepStudentPersonalInfo-NYJN6QM4.js} +19 -19
  233. package/chunk/{StepStudentPersonalInfo-yy8Rhhg_.js.map → StepStudentPersonalInfo-NYJN6QM4.js.map} +1 -1
  234. package/chunk/{StepSuccess-CXAweBRH.js → StepSuccess-BSGiXxfN.js} +8 -8
  235. package/chunk/{StepSuccess-CO8w4TsU.js.map → StepSuccess-BSGiXxfN.js.map} +1 -1
  236. package/chunk/{StepSuccess-CO8w4TsU.js → StepSuccess-DXYPrAoS.js} +8 -8
  237. package/chunk/{StepSuccess-CXAweBRH.js.map → StepSuccess-DXYPrAoS.js.map} +1 -1
  238. package/chunk/{StepTeacherPersonalInfo-CPkBbnDT.js → StepTeacherPersonalInfo-BnUPd7A_.js} +16 -16
  239. package/chunk/{StepTeacherPersonalInfo-CPkBbnDT.js.map → StepTeacherPersonalInfo-BnUPd7A_.js.map} +1 -1
  240. package/chunk/{StepTeacherPersonalInfo-DRmmTTUZ.js → StepTeacherPersonalInfo-DH19GPsU.js} +16 -16
  241. package/chunk/{StepTeacherPersonalInfo-DRmmTTUZ.js.map → StepTeacherPersonalInfo-DH19GPsU.js.map} +1 -1
  242. package/chunk/StepThirdPartyLoop-BrKuZcYb.js +4 -4
  243. package/chunk/StepThirdPartyLoop-CbFTIlwP.js +4 -4
  244. package/chunk/{TeacherSchoolComponent-DF0D6H7e.js → TeacherSchoolComponent-I15vrTCE.js} +8 -8
  245. package/chunk/{TeacherSchoolComponent-BE0hBAdX.js.map → TeacherSchoolComponent-I15vrTCE.js.map} +1 -1
  246. package/chunk/{TeacherSchoolComponent-BE0hBAdX.js → TeacherSchoolComponent-pnmySE96.js} +8 -8
  247. package/chunk/{TeacherSchoolComponent-DF0D6H7e.js.map → TeacherSchoolComponent-pnmySE96.js.map} +1 -1
  248. package/chunk/TestingRouteOverrides-Bx1n-xCR.js +4 -4
  249. package/chunk/TestingRouteOverrides-DHe5BulD.js +4 -4
  250. package/chunk/ThreatMetrix-D_TbL50B.js +4 -4
  251. package/chunk/ar-D5CO913q.js +4 -4
  252. package/chunk/bg-1mhA5kYF.js +4 -4
  253. package/chunk/bn-IN-CpDqyRb_.js +4 -4
  254. package/chunk/clsx-CB5rauS5.js +4 -4
  255. package/chunk/{countryUtils-DSXgtztB.js → countryUtils-CdNf-73_.js} +5 -5
  256. package/chunk/{countryUtils-BRnNbiyi.js.map → countryUtils-CdNf-73_.js.map} +1 -1
  257. package/chunk/countryUtils-CniUDXes.js +12 -0
  258. package/chunk/{countryUtils-DSXgtztB.js.map → countryUtils-CniUDXes.js.map} +1 -1
  259. package/chunk/cs-Chh7FAGt.js +4 -4
  260. package/chunk/da-DwrVoxto.js +4 -4
  261. package/chunk/de-IWGZLhgY.js +4 -4
  262. package/chunk/{downshift.esm-C3kjgXh1.js → downshift.esm-D0Q-rG8L.js} +5 -5
  263. package/chunk/{downshift.esm-C3kjgXh1.js.map → downshift.esm-D0Q-rG8L.js.map} +1 -1
  264. package/chunk/{downshift.esm-69QM26L8.js → downshift.esm-DUM3sJ7L.js} +5 -5
  265. package/chunk/{downshift.esm-69QM26L8.js.map → downshift.esm-DUM3sJ7L.js.map} +1 -1
  266. package/chunk/el-DbDcvSPJ.js +4 -4
  267. package/chunk/empties-C5H0EoXJ.js +4 -4
  268. package/chunk/empties-DaNcqYFb.js +4 -4
  269. package/chunk/en-GB-CNQ8Ww2j.js +4 -4
  270. package/chunk/es-ES-DWimqEZ_.js +4 -4
  271. package/chunk/es-qhC-seq5.js +4 -4
  272. package/chunk/et-yF9G-Mym.js +4 -4
  273. package/chunk/eventEmitter-CSG6jR7V.js +4 -4
  274. package/chunk/fa-BcdSf7og.js +4 -4
  275. package/chunk/fi-D-IP_KHm.js +4 -4
  276. package/chunk/fr-BmUuYxk0.js +4 -4
  277. package/chunk/fr-CA-DVQ4xmzZ.js +4 -4
  278. package/chunk/ga-DuZycND3.js +4 -4
  279. package/chunk/hi-IN-l6Rn5Ewm.js +4 -4
  280. package/chunk/{hooks-B4mmDpuv.js → hooks-BF7oPgCe.js} +4 -5
  281. package/chunk/{hooks-B4mmDpuv.js.map → hooks-BF7oPgCe.js.map} +1 -1
  282. package/chunk/{hooks-CMAl6OEH.js → hooks-Bqhz6E9V.js} +4 -5
  283. package/chunk/{hooks-CMAl6OEH.js.map → hooks-Bqhz6E9V.js.map} +1 -1
  284. package/chunk/hr-BtqyDzDB.js +4 -4
  285. package/chunk/hu-C6syKJfb.js +4 -4
  286. package/chunk/id-GgI-Z2a5.js +4 -4
  287. package/chunk/intl-DYOqmiaL.js +4 -4
  288. package/chunk/is-CvmKEON9.js +4 -4
  289. package/chunk/it-CnmveGgC.js +4 -4
  290. package/chunk/iw-DFUYHkxF.js +4 -4
  291. package/chunk/ja-CjVb2tWW.js +4 -4
  292. package/chunk/jsx-runtime-DQO6A867.js +4 -4
  293. package/chunk/jsx-runtime-DtApx7WX.js +4 -4
  294. package/chunk/kk-Dvz4nK6K.js +4 -4
  295. package/chunk/ko-DzOqBMGC.js +4 -4
  296. package/chunk/lo-C2WPq55d.js +4 -4
  297. package/chunk/lt-BSDYvjTF.js +4 -4
  298. package/chunk/lv-CefDPT-M.js +4 -4
  299. package/chunk/mockProgramTheme-CBqgtg7A.js +4 -4
  300. package/chunk/mocks-D8UIPfvt.js +4 -4
  301. package/chunk/mocks-denu632X.js +4 -4
  302. package/chunk/ms-BjestZxy.js +4 -4
  303. package/chunk/nl-B1FyUfCT.js +4 -4
  304. package/chunk/nl-BE-CbeAd3nq.js +4 -4
  305. package/chunk/no-Dr633Ddi.js +4 -4
  306. package/chunk/options-DsRV5fwh.js +4 -4
  307. package/chunk/pl-UYTjMIq_.js +4 -4
  308. package/chunk/{programThemeGetters-DFcbGSAA.js → programThemeGetters-BD2PXz0k.js} +5 -5
  309. package/chunk/{programThemeGetters-DFcbGSAA.js.map → programThemeGetters-BD2PXz0k.js.map} +1 -1
  310. package/chunk/{programThemeGetters-DJcD6MLy.js → programThemeGetters-DTXDRpA2.js} +5 -5
  311. package/chunk/{programThemeGetters-DJcD6MLy.js.map → programThemeGetters-DTXDRpA2.js.map} +1 -1
  312. package/chunk/pt-BR-C8SYMT-J.js +4 -4
  313. package/chunk/pt-uH-M3GdN.js +4 -4
  314. package/chunk/refs-Mq0rtW9K.js +4 -4
  315. package/chunk/ro-CAOSXZ7h.js +4 -4
  316. package/chunk/ru-iwYoEydL.js +4 -4
  317. package/chunk/runtimeTypes-B2AGNJMT.js +4 -4
  318. package/chunk/sk-DYYNV3zw.js +4 -4
  319. package/chunk/sl-D_-eeM5N.js +4 -4
  320. package/chunk/sr-BTi9_anL.js +4 -4
  321. package/chunk/{stepComponentHelpers-D_F4GOcs.js → stepComponentHelpers-BElircEH.js} +5 -5
  322. package/chunk/{stepComponentHelpers-Bo_ASl0b.js.map → stepComponentHelpers-BElircEH.js.map} +1 -1
  323. package/chunk/{stepComponentHelpers-Bo_ASl0b.js → stepComponentHelpers-DOISo3yJ.js} +5 -5
  324. package/chunk/{stepComponentHelpers-D_F4GOcs.js.map → stepComponentHelpers-DOISo3yJ.js.map} +1 -1
  325. package/chunk/strings-DWLVdUcm.js +4 -4
  326. package/chunk/sv-DRwY4shG.js +4 -4
  327. package/chunk/sw-Bvj2mYmM.js +4 -4
  328. package/chunk/ta-CmtaYoNe.js +4 -4
  329. package/chunk/th-12r2yKkJ.js +4 -4
  330. package/chunk/tl-BGNfO7md.js +4 -4
  331. package/chunk/tr-DH2ZSJhs.js +4 -4
  332. package/chunk/uk-CELBZlTd.js +4 -4
  333. package/chunk/ur-MR8DTbmd.js +4 -4
  334. package/chunk/{useCollectFieldsEndpoint-Cqk7nVm8.js → useCollectFieldsEndpoint-DODNTDbS.js} +6 -6
  335. package/chunk/{useCollectFieldsEndpoint-Cqk7nVm8.js.map → useCollectFieldsEndpoint-DODNTDbS.js.map} +1 -1
  336. package/chunk/{useCollectFieldsEndpoint-moJiW3Nn.js → useCollectFieldsEndpoint-DbalWE2_.js} +6 -6
  337. package/chunk/{useCollectFieldsEndpoint-moJiW3Nn.js.map → useCollectFieldsEndpoint-DbalWE2_.js.map} +1 -1
  338. package/chunk/{useMetrics-CrpCzbvt.js → useMetrics-XHSibxjX.js} +5 -5
  339. package/chunk/{useMetrics-CrpCzbvt.js.map → useMetrics-XHSibxjX.js.map} +1 -1
  340. package/chunk/{useMetrics-kG8AjSPf.js → useMetrics-f-F1IOc3.js} +5 -5
  341. package/chunk/{useMetrics-kG8AjSPf.js.map → useMetrics-f-F1IOc3.js.map} +1 -1
  342. package/chunk/vi-DtZ-SqD5.js +4 -4
  343. package/chunk/zh-DjyVyYac.js +4 -4
  344. package/chunk/zh-HK-CN1HarHq.js +4 -4
  345. package/chunk/zu-DPhgIh1z.js +4 -4
  346. package/package.json +1 -1
  347. package/sheerid-install.css +4 -4
  348. package/sheerid-install.js +4 -4
  349. package/sheerid.css +5 -5
  350. package/sheerid.js +39 -39
  351. package/chunk/StepDocUpload-BvamM1Dm.js +0 -2292
  352. package/chunk/StepDocUpload-BvamM1Dm.js.map +0 -1
  353. package/chunk/StepDocUpload-DYPWRKrn.js.map +0 -1
  354. package/chunk/countryUtils-BRnNbiyi.js +0 -12
@@ -1,42 +1,42 @@
1
1
 
2
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
3
+ * VERSION: 2.304.0
4
+ * BUILD_TIMESTAMP: 1792172949182
5
+ * BUILD_DATE: Fri Oct 16 2026 17:49:09 GMT+0000 (Coordinated Universal Time)
6
+ * BUILD_COMMIT: 14bb12a3aac5dfbe3f216ca64aa66bee70d284c3
7
7
  */
8
8
  import { c as e, dt as t, kt as n, n as r } from "./options-DsRV5fwh.js";
9
9
  import { n as i, s as a, t as o } from "./jsx-runtime-DQO6A867.js";
10
- import { _ as ee } from "./Message-COzkFETu.js";
10
+ import { _ as ee } from "./Message-BcRlg1D8.js";
11
11
  import { S as te, b as s, t as ne, u as c } from "./runtimeTypes-B2AGNJMT.js";
12
- import { o as re } from "./programThemeGetters-DFcbGSAA.js";
13
- import { h as ie, t as ae } from "./FormFooterComponent-CSs6B6_O.js";
12
+ import { o as re } from "./programThemeGetters-BD2PXz0k.js";
13
+ import { h as ie, t as ae } from "./FormFooterComponent-DGcfJdwH.js";
14
14
  import { n as oe } from "../sheerid.js";
15
- import { t as se } from "./useCollectFieldsEndpoint-Cqk7nVm8.js";
16
- import { d as l, f as u, i as d, l as f, r as ce, s as le, t as p } from "./stepComponentHelpers-D_F4GOcs.js";
17
- import { a as ue, i as de, n as fe, o as pe, s as me, t as m } from "./CaptchaComponent-CZCwnbD5.js";
18
- import { n as h, t as g } from "./PersonalInfoStepSubmitButton-B4xXqxuH.js";
19
- import { i as _ } from "./FormSelectChoice-BM2vOG_C.js";
20
- import { t as v } from "./BirthDateComponent-CCVzkOMc.js";
21
- import { t as y } from "./PostalCodeComponent-CzSv-hLR.js";
22
- import { t as b } from "./CountryComponentWrapper-BRjVzl-k.js";
23
- import { t as x } from "./City-D0Jiq-D2.js";
24
- import { t as S } from "./AddressComponent-C0MNLqbV.js";
25
- import { t as C } from "./ExtraMessage-SUFzlSCv.js";
26
- import { t as w } from "./countryUtils-BRnNbiyi.js";
27
- import { t as T } from "./CollegeNameComponent-DlDNav1B.js";
28
- import { t as E } from "./StateSelectComponent-Dnqp7nL4.js";
29
- import { n as D, r as O, t as k } from "./DischargeDateComponent-DeDq2Wj7.js";
30
- import { t as A } from "./DriverLicenseNumberComponent-BsVBlhfi.js";
31
- import { n as j, t as M } from "./LowIncomeOrganizationComponent-BgOWD-ZC.js";
32
- import { t as N } from "./StatusComponent-B4IbsfFv.js";
33
- import { t as P } from "./FirstResponderOrganizationComponent-2czrRImt.js";
34
- import { t as F } from "./LicensedProfessionalOrganizationComponent-B72AjsZA.js";
35
- import { t as I } from "./MedicalProfessionalOrganizationComponent-BxH3qrmJ.js";
36
- import { t as he } from "./MemberIdComponent-oL_pc9Fd.js";
37
- import { t as L } from "./MembershipOrganizationComponent-BtHBKZS0.js";
38
- import { t as R } from "./TeacherSchoolComponent-BE0hBAdX.js";
39
- import { t as ge } from "./SSN-BVqvyxxj.js";
15
+ import { t as se } from "./useCollectFieldsEndpoint-DODNTDbS.js";
16
+ import { d as l, f as u, i as d, l as f, r as ce, s as le, t as p } from "./stepComponentHelpers-BElircEH.js";
17
+ import { a as ue, i as de, n as fe, o as pe, s as me, t as m } from "./CaptchaComponent-D98si3Jy.js";
18
+ import { n as h, t as g } from "./PersonalInfoStepSubmitButton-B3cCavK_.js";
19
+ import { i as _ } from "./FormSelectChoice-Bv5aMXMd.js";
20
+ import { t as v } from "./BirthDateComponent-oQPnVqSa.js";
21
+ import { t as y } from "./PostalCodeComponent-FVc2Nso4.js";
22
+ import { t as b } from "./CountryComponentWrapper-BTUytS2o.js";
23
+ import { t as x } from "./City-7bUXB6DM.js";
24
+ import { t as S } from "./AddressComponent-OHgf-_sl.js";
25
+ import { t as C } from "./ExtraMessage-C1LGtDyk.js";
26
+ import { t as w } from "./countryUtils-CniUDXes.js";
27
+ import { t as T } from "./CollegeNameComponent-B5as2wyn.js";
28
+ import { t as E } from "./StateSelectComponent-Bl0sEDiJ.js";
29
+ import { n as D, r as O, t as k } from "./DischargeDateComponent-Cy1_zOya.js";
30
+ import { t as A } from "./DriverLicenseNumberComponent-Rky9SG-A.js";
31
+ import { n as j, t as M } from "./LowIncomeOrganizationComponent-FQA-80EB.js";
32
+ import { t as N } from "./StatusComponent-CXUgeCAX.js";
33
+ import { t as P } from "./FirstResponderOrganizationComponent-D6M_yo4M.js";
34
+ import { t as F } from "./LicensedProfessionalOrganizationComponent-JXLsT4Ua.js";
35
+ import { t as I } from "./MedicalProfessionalOrganizationComponent-GUaeaxBA.js";
36
+ import { t as he } from "./MemberIdComponent-DKvGJ5w8.js";
37
+ import { t as L } from "./MembershipOrganizationComponent-BsP0oS9k.js";
38
+ import { t as R } from "./TeacherSchoolComponent-pnmySE96.js";
39
+ import { t as ge } from "./SSN-5QKevvwg.js";
40
40
  //#region src/components/StepCollectPersonalInfo/StepCollectPersonalInfoComponent.tsx
41
41
  var z = /* @__PURE__ */ n(a(), 1), B = o(), V = ({ verificationService: n }) => {
42
42
  let a = n.viewModel, { updateViewModel: o, programTheme: V } = n, [H, _e] = z.useState(void 0), U = (e) => H && H.some((t) => t.key === e), { fieldValidationErrors: W } = n, G = n.verificationResponse, ve = ie(G), K = (t, n) => {
@@ -1 +1 @@
1
- {"version":3,"file":"StepCollectPersonalInfo-DgsHZW8E.js","names":[],"sources":["../../src/components/StepCollectPersonalInfo/StepCollectPersonalInfoComponent.tsx"],"sourcesContent":["import React from \"react\";\nimport produce from \"immer\";\nimport { FormattedHTMLMessage } from \"react-intl\";\n\nimport { getSafe } from \"@jslib/shared/utils/getSafe\";\nimport { logger } from \"@jslib/shared/utils/logger\";\n\nimport { useFormSelectChoice } from \"@/components/FormInputs/InputSelect/InputSelectComponent\";\nimport { type MessageId } from \"@/lib/intl/types\";\n\nimport { hasFailedInstantMatch } from \"../../lib/VerificationService/VerificationServiceHelpers\";\nimport {\n type VerificationService,\n type CollectPersonalInfoViewModel,\n type CustomFormFieldConfig,\n type Organization,\n type FormSelectChoice,\n type State,\n type CollectFieldsResponse,\n type CollectPersonalInfoResponse,\n type FieldDescription,\n type AllStatuses,\n} from \"../../lib/types/types\";\nimport {\n orgToOption,\n handleEmailOnKeyDown,\n submitForm,\n updateFieldValidationErrorsByFieldId,\n updateViewModelOrganization,\n produceDraftViewModelWithAllRequiredFields,\n getFieldConfigByFieldId,\n} from \"../../lib/utils/stepComponentHelpers/stepComponentHelpers\";\nimport { MarketConsentWrapperComponent as MarketConsentWrapper } from \"../FormFields/MarketConsentWrapper/MarketConsentWrapperComponent\";\nimport { PhoneNumberComponent as PhoneNumber } from \"../FormFields/PhoneNumber/PhoneNumberComponent\";\nimport { CollegeNameComponent as CollegeName } from \"../FormFields/CollegeName/CollegeNameComponent\";\nimport { FirstNameComponent as FirstName } from \"../FormFields/FirstName/FirstNameComponent\";\nimport { LastNameComponent as LastName } from \"../FormFields/LastName/LastNameComponent\";\nimport { EmailComponent as Email } from \"../FormFields/Email/EmailComponent\";\nimport { BirthDateComponent as BirthDate } from \"../FormFields/BirthDate/BirthDateComponent\";\nimport { FormFooterComponent as FormFooter } from \"../FormFooter/FormFooterComponent\";\nimport { CountryComponentWrapper } from \"../FormFields/Country/CountryComponentWrapper\";\nimport { getOptions } from \"../../options/options\";\nimport { FormFieldCustom } from \"../FormFields/FormFieldCustom/FormFieldCustom\";\nimport { ExtraMessage } from \"../ExtraMessage\";\nimport { FieldIdEnum, SegmentEnum, VerificationStepsEnum } from \"../../lib/types/runtimeTypes\";\nimport { CityComponent } from \"../FormFields/City/City\";\nimport { StateSelectComponent } from \"../FormFields/State/StateSelectComponent\";\nimport { PostalCodeComponent } from \"../FormFields/PostalCode/PostalCodeComponent\";\nimport { AddressComponent } from \"../FormFields/Address/AddressComponent\";\nimport { ActiveDutyStartDateComponent } from \"../FormFields/ActiveDutyStartDate/ActiveDutyStartDateComponent\";\nimport { BranchOfServiceComponent as BranchOfService } from \"../FormFields/BranchOfService/BranchOfServiceComponent\";\nimport { DriverLicenseNumberComponent as DriverLicenseNumber } from \"../FormFields/DriverLicenseNumber/DriverLicenseNumberComponent\";\nimport { EBTCardNumberComponent } from \"../FormFields/EBTCardNumber/EBTCardNumberComponent\";\nimport { StatusComponent as Status } from \"../FormFields/Status/StatusComponent\";\nimport { LowIncomeOrganizationComponent as LowIncomeOrganization } from \"../FormFields/LowIncomeOrganization/LowIncomeOrganizationComponent\";\nimport { FirstResponderOrganizationComponent as FirstResponderOrganization } from \"../FormFields/FirstResponderOrganization/FirstResponderOrganizationComponent\";\nimport { LicensedProfessionalOrganizationComponent as LicensedProfessionalOrganization } from \"../FormFields/LicensedProfessionalOrganization/LicensedProfessionalOrganizationComponent\";\nimport { MedicalProfessionalOrganizationComponent as MedicalProfessionalOrganization } from \"../FormFields/MedicalProfessionalOrganization/MedicalProfessionalOrganizationComponent\";\nimport { MemberIdComponent as MemberId } from \"../FormFields/MemberId/MemberIdComponent\";\nimport { MembershipOrganizationComponent as MembershipOrganization } from \"../FormFields/MembershipOrganization/MembershipOrganizationComponent\";\nimport { TeacherSchoolComponent as TeacherSchool } from \"../FormFields/TeacherSchool/TeacherSchoolComponent\";\nimport { SocialSecurityNumber } from \"../FormFields/SSN/SSN\";\nimport { DischargeDateComponent } from \"../FormFields/DischargeDate/DischargeDateComponent\";\nimport { getAllFieldsToCollect } from \"../../lib/ServerApi/VerificationApiClient\";\nimport { useCollectFieldsEndpoint } from \"../../lib/ServerApi/useCollectFieldsEndpoint\";\nimport { getMarketConsent } from \"../../lib/ProgramTheme/programThemeGetters\";\nimport { isCountrySelectionNeeded } from \"../FormFields/Country/countryUtils\";\nimport { PersonalInfoHeader } from \"../FormHeader/StepHeaders/PersonalInfoHeaderComponent\";\nimport { PersonalInfoStepSubmitButton } from \"../PersonalInfoStepSubmitButton/PersonalInfoStepSubmitButton\";\nimport { CaptchaComponent } from \"../FormFields/Captcha/CaptchaComponent\";\n\ninterface StepCollectPersonalInfoProps {\n verificationService: VerificationService;\n}\n\nexport const StepCollectPersonalInfoComponent = ({\n verificationService,\n}: StepCollectPersonalInfoProps) => {\n const viewModel = verificationService.viewModel as CollectPersonalInfoViewModel;\n const { updateViewModel, programTheme } = verificationService;\n\n const [requiredFields, setRequiredFields] = React.useState<FieldDescription[]>(undefined);\n\n const isFieldRequired = (key: keyof CollectPersonalInfoViewModel) =>\n requiredFields && requiredFields.some((field) => field.key === key);\n\n const { fieldValidationErrors } = verificationService;\n const verificationResponse =\n verificationService.verificationResponse as CollectPersonalInfoResponse;\n const failedInstantMatch = hasFailedInstantMatch(verificationResponse);\n\n const updatePersonalInfoViewModel = (key: keyof CollectPersonalInfoViewModel, value: any) => {\n const nextState: CollectPersonalInfoViewModel = produce(\n viewModel,\n (draft: CollectPersonalInfoViewModel) => {\n (draft[key] as any) = value;\n },\n );\n updateViewModel(nextState);\n };\n\n const updateViewModelWithRequiredFields = (newRequiredFields: FieldDescription[]) => {\n const nextState: CollectPersonalInfoViewModel = produceDraftViewModelWithAllRequiredFields(\n viewModel,\n newRequiredFields,\n );\n updateViewModel(nextState);\n };\n\n const locale = viewModel.localeChoice.value;\n const options = getOptions();\n\n const { segment, availableStatuses } = verificationResponse;\n const pascalCaseSegment = segment.charAt(0).toUpperCase() + segment.slice(1);\n\n const isStatusRequired = (): boolean =>\n availableStatuses &&\n (segment === SegmentEnum.FIRST_RESPONDER ||\n segment === SegmentEnum.MEDICAL ||\n segment === SegmentEnum.LOW_INCOME ||\n segment === SegmentEnum.LICENSED_PROFESSIONAL ||\n segment === SegmentEnum.EMPLOYMENT ||\n segment === SegmentEnum.RECENT_MOVER ||\n segment === SegmentEnum.MILITARY);\n\n const { availableStatuses: dynamicStatuses } = useCollectFieldsEndpoint({\n verificationId: verificationResponse.verificationId,\n currentStep: verificationResponse.currentStep,\n viewModel,\n });\n\n const countryChoiceValue = viewModel.countryChoice?.value;\n const needToPickCountry = isCountrySelectionNeeded(programTheme, countryChoiceValue);\n const statusOptions = useFormSelectChoice((dynamicStatuses ?? availableStatuses) as MessageId[]);\n\n const getAndSetRequiredFields = (requestBody: { statuses?: AllStatuses[] }) =>\n (async () => {\n try {\n const collectFieldsResponse: CollectFieldsResponse = await getAllFieldsToCollect(\n verificationResponse.verificationId,\n verificationResponse.currentStep,\n requestBody,\n );\n const newRequiredFields = getSafe(() => collectFieldsResponse.fieldsToCollect.required, []);\n\n if (isStatusRequired()) {\n // Adding `status` as a required input field if it's been removed by getting\n // all fields to collect with a statuses req body\n newRequiredFields.push({ key: \"status\" });\n }\n\n updateViewModelWithRequiredFields(newRequiredFields);\n setRequiredFields(newRequiredFields);\n } catch (error) {\n logger.error(`Failed to determine fields to collect: ${error}`);\n }\n })();\n\n const getOrganizationField = () => {\n switch (segment) {\n case SegmentEnum.STUDENT:\n return (\n <CollegeName\n value={(verificationService.viewModel as CollectPersonalInfoViewModel).organization}\n verificationService={verificationService}\n isErrored={!!fieldValidationErrors.organization}\n isRequired\n disabled={getFieldConfigByFieldId(\"organization\")?.disabled}\n onChange={(choice: Organization) => {\n updateViewModelOrganization(choice, verificationService);\n updateFieldValidationErrorsByFieldId(\"organization\", choice, verificationService);\n }}\n />\n );\n case SegmentEnum.TEACHER:\n return (\n <TeacherSchool\n value={(verificationService.viewModel as CollectPersonalInfoViewModel).organization}\n verificationService={verificationService}\n isErrored={!!fieldValidationErrors.organization}\n disabled={getFieldConfigByFieldId(\"organization\")?.disabled}\n onChange={(choice: Organization) => {\n updateViewModelOrganization(choice, verificationService);\n updateFieldValidationErrorsByFieldId(\"organization\", choice, verificationService);\n }}\n />\n );\n case SegmentEnum.MEMBER:\n return (\n <MembershipOrganization\n value={(verificationService.viewModel as CollectPersonalInfoViewModel).organization}\n verificationService={verificationService}\n isErrored={!!fieldValidationErrors.organization}\n disabled={getFieldConfigByFieldId(\"organization\")?.disabled}\n onChange={(choice: Organization) => {\n updateViewModelOrganization(choice, verificationService);\n updateFieldValidationErrorsByFieldId(\"organization\", choice, verificationService);\n }}\n />\n );\n case SegmentEnum.MILITARY:\n return (\n <BranchOfService\n isErrored={!!fieldValidationErrors.organization}\n onChange={(choice: Organization) => {\n updateViewModelOrganization(choice, verificationService);\n updateFieldValidationErrorsByFieldId(\"organization\", choice, verificationService);\n }}\n value={{\n value: getSafe(\n () =>\n (verificationService.viewModel as CollectPersonalInfoViewModel).organization.id,\n ),\n label: getSafe(\n () =>\n (verificationService.viewModel as CollectPersonalInfoViewModel).organization.name,\n ),\n }}\n verificationService={verificationService}\n disabled={getFieldConfigByFieldId(\"organization\")?.disabled}\n />\n );\n case SegmentEnum.FIRST_RESPONDER:\n return (\n <FirstResponderOrganization\n isErrored={!!fieldValidationErrors.organization}\n onChange={(choice: Organization) => {\n updateViewModelOrganization(choice, verificationService);\n updateFieldValidationErrorsByFieldId(\"organization\", choice, verificationService);\n }}\n value={(verificationService.viewModel as CollectPersonalInfoViewModel).organization}\n verificationService={verificationService}\n disabled={getFieldConfigByFieldId(\"organization\")?.disabled}\n />\n );\n case SegmentEnum.MEDICAL:\n return (\n <MedicalProfessionalOrganization\n isErrored={!!fieldValidationErrors.organization}\n onChange={(choice: Organization) => {\n updateViewModelOrganization(choice, verificationService);\n updateFieldValidationErrorsByFieldId(\"organization\", choice, verificationService);\n }}\n value={(verificationService.viewModel as CollectPersonalInfoViewModel).organization}\n verificationService={verificationService}\n disabled={getFieldConfigByFieldId(\"organization\")?.disabled}\n />\n );\n case SegmentEnum.LICENSED_PROFESSIONAL:\n return (\n <LicensedProfessionalOrganization\n isErrored={!!fieldValidationErrors.organization}\n onChange={(choice: Organization) => {\n updateViewModelOrganization(choice, verificationService);\n updateFieldValidationErrorsByFieldId(\"organization\", choice, verificationService);\n }}\n value={(verificationService.viewModel as CollectPersonalInfoViewModel).organization}\n verificationService={verificationService}\n disabled={getFieldConfigByFieldId(\"organization\")?.disabled}\n />\n );\n case SegmentEnum.LOW_INCOME:\n return (\n <LowIncomeOrganization\n isErrored={!!fieldValidationErrors.organization}\n onChange={(choice: Organization) => {\n updateViewModelOrganization(choice, verificationService);\n updateFieldValidationErrorsByFieldId(\"organization\", choice, verificationService);\n }}\n value={orgToOption(\n (verificationService.viewModel as CollectPersonalInfoViewModel).organization,\n )}\n verificationService={verificationService}\n isRequired\n disabled={getFieldConfigByFieldId(\"organization\")?.disabled}\n />\n );\n default:\n return null;\n }\n };\n\n React.useEffect(() => {\n if (availableStatuses && segment === SegmentEnum.MILITARY) {\n // display all required military fields by setting an initial default status\n getAndSetRequiredFields({ statuses: [] });\n } else {\n // fetch initial list of required input fields\n getAndSetRequiredFields({});\n }\n }, []);\n\n React.useEffect(() => {\n if (!getMarketConsent(programTheme).enabled && requiredFields && requiredFields.length === 0) {\n // skip this step if there are no required fields, and marketConsent is not enabled\n submitForm(viewModel, verificationService, VerificationStepsEnum.collectPersonalInfo);\n }\n }, [requiredFields]);\n\n React.useEffect(() => {\n if (viewModel.status) {\n // if status changes, re-fetch required fields because they may have changed based on selected status\n getAndSetRequiredFields({ statuses: [viewModel.status] });\n }\n }, [viewModel.status]);\n\n return (\n <div\n id=\"sid-step-personal-info-personal-info\"\n className=\"sid-personal-info-container sid-l-container\"\n >\n <div role=\"main\">\n <PersonalInfoHeader\n verificationService={verificationService}\n classNameIdentifier=\"personal-info\"\n />\n\n <CountryComponentWrapper\n verificationService={verificationService}\n disabled={getFieldConfigByFieldId(\"country\")?.disabled}\n />\n\n {isStatusRequired() && (\n <Status\n segmentId={segment}\n value={statusOptions.find((option) => option.value === viewModel.status)}\n isErrored={!!fieldValidationErrors.status}\n errorId={`invalid${pascalCaseSegment}Status`}\n options={statusOptions}\n disabled={needToPickCountry || getFieldConfigByFieldId(\"status\")?.disabled}\n explanation={\n needToPickCountry ? (\n <FormattedHTMLMessage id=\"chooseCountry\" defaultMessage=\"Choose a country first\" />\n ) : undefined\n }\n onChange={(status: FormSelectChoice) => {\n updatePersonalInfoViewModel(\"status\", status ? (status.value as string) : \"\");\n updateFieldValidationErrorsByFieldId(\n \"status\",\n status ? (status.value as string) : \"\",\n verificationService,\n );\n }}\n />\n )}\n\n {isFieldRequired(\"organization\") && getOrganizationField()}\n\n <div className=\"sid-names\">\n {isFieldRequired(\"firstName\") && (\n <FirstName\n value={viewModel.firstName}\n isErrored={!!fieldValidationErrors.firstName}\n disabled={getFieldConfigByFieldId(\"firstName\")?.disabled}\n onChange={(newValue) => {\n updatePersonalInfoViewModel(\"firstName\", newValue);\n updateFieldValidationErrorsByFieldId(\"firstName\", newValue, verificationService);\n }}\n />\n )}\n\n {isFieldRequired(\"lastName\") && (\n <LastName\n value={viewModel.lastName}\n isErrored={!!fieldValidationErrors.lastName}\n disabled={getFieldConfigByFieldId(\"lastName\")?.disabled}\n onChange={(newValue) => {\n updatePersonalInfoViewModel(\"lastName\", newValue);\n updateFieldValidationErrorsByFieldId(\"lastName\", newValue, verificationService);\n }}\n />\n )}\n </div>\n\n {isFieldRequired(\"birthDate\") && (\n <BirthDate\n value={viewModel.birthDate}\n errorId={fieldValidationErrors.birthDate}\n locale={locale}\n isRequired\n disabled={getFieldConfigByFieldId(\"birthDate\")?.disabled}\n onChange={(newValue) => {\n updatePersonalInfoViewModel(\"birthDate\", newValue);\n updateFieldValidationErrorsByFieldId(\"birthDate\", newValue, verificationService);\n }}\n />\n )}\n\n {isFieldRequired(\"email\") && (\n <Email\n value={viewModel.email}\n isErrored={!!fieldValidationErrors.email}\n explanation=\" \"\n onChange={(newValue) => {\n updatePersonalInfoViewModel(\"email\", newValue);\n updateFieldValidationErrorsByFieldId(\"email\", newValue, verificationService);\n }}\n onKeyDown={(event) => handleEmailOnKeyDown(event)}\n disabled={getFieldConfigByFieldId(\"email\")?.disabled}\n />\n )}\n\n {isFieldRequired(\"phoneNumber\") && (\n <PhoneNumber\n isRequired={!!verificationService.programTheme.smsLoopEnabled}\n value={viewModel.phoneNumber}\n isErrored={!!fieldValidationErrors.phoneNumber}\n onChange={(newValue) => {\n updatePersonalInfoViewModel(\"phoneNumber\", newValue);\n updateFieldValidationErrorsByFieldId(\"phoneNumber\", newValue, verificationService);\n }}\n selectedCountryCode={viewModel.countryChoice && viewModel.countryChoice.value}\n disabled={getFieldConfigByFieldId(\"phoneNumber\")?.disabled}\n />\n )}\n\n {isFieldRequired(\"address1\") && (\n <AddressComponent\n value={viewModel.address1}\n isRequired\n isErrored={!!fieldValidationErrors.address1}\n errorId={fieldValidationErrors.address1}\n disabled={getFieldConfigByFieldId(\"address1\")?.disabled}\n onChange={(value) => {\n updatePersonalInfoViewModel(\"address1\", value);\n updateFieldValidationErrorsByFieldId(\"address1\", value, verificationService);\n }}\n />\n )}\n\n {isFieldRequired(\"city\") && (\n <CityComponent\n value={viewModel.city}\n isRequired\n isErrored={!!fieldValidationErrors.city}\n errorId={fieldValidationErrors.city}\n disabled={getFieldConfigByFieldId(\"city\")?.disabled}\n onChange={(newValue) => {\n updatePersonalInfoViewModel(\"city\", newValue);\n updateFieldValidationErrorsByFieldId(\"city\", newValue, verificationService);\n }}\n />\n )}\n\n {isFieldRequired(\"dischargeDate\") && (\n <DischargeDateComponent\n errorId={fieldValidationErrors.dischargeDate}\n locale={locale}\n onChange={(newValue) => {\n updatePersonalInfoViewModel(\"dischargeDate\", newValue);\n updateFieldValidationErrorsByFieldId(\"dischargeDate\", newValue, verificationService);\n }}\n value={viewModel.dischargeDate}\n disabled={getFieldConfigByFieldId(\"dischargeDate\")?.disabled}\n />\n )}\n\n {isFieldRequired(\"driverLicenseNumber\") && (\n <DriverLicenseNumber\n value={viewModel.driverLicenseNumber}\n isErrored={!!fieldValidationErrors.driverLicenseNumber}\n isRequired\n disabled={getFieldConfigByFieldId(\"driverLicenseNumber\")?.disabled}\n onChange={(newValue) => {\n updatePersonalInfoViewModel(\"driverLicenseNumber\", newValue);\n updateFieldValidationErrorsByFieldId(\n \"driverLicenseNumber\",\n newValue,\n verificationService,\n );\n }}\n />\n )}\n\n {isFieldRequired(\"ebtCardNumber\") && (\n <EBTCardNumberComponent\n value={viewModel.ebtCardNumber}\n isErrored={!!fieldValidationErrors.ebtCardNumber}\n disabled={getFieldConfigByFieldId(\"ebtCardNumber\")?.disabled}\n onChange={(newValue) => {\n updatePersonalInfoViewModel(\"ebtCardNumber\", newValue);\n updateFieldValidationErrorsByFieldId(\"ebtCardNumber\", newValue, verificationService);\n }}\n />\n )}\n\n {isFieldRequired(\"memberId\") && (\n <MemberId\n value={viewModel.memberId}\n isErrored={!!fieldValidationErrors.memberId}\n isRequired={getFieldConfigByFieldId(\"memberId\")?.requireIfOptional}\n disabled={getFieldConfigByFieldId(\"memberId\")?.disabled}\n onChange={(newValue) => {\n updatePersonalInfoViewModel(\"memberId\", newValue);\n updateFieldValidationErrorsByFieldId(\"memberId\", newValue, verificationService);\n }}\n label={\n <FormattedHTMLMessage\n id=\"step.collectMedicalPersonalInfo.registrationNumberLabel\"\n defaultMessage=\"Registration Number\"\n />\n }\n />\n )}\n\n {isFieldRequired(\"postalCode\") && (\n <PostalCodeComponent\n isErrored={!!fieldValidationErrors.postalCode}\n onChange={(newValue) => {\n updatePersonalInfoViewModel(\"postalCode\", newValue);\n updateFieldValidationErrorsByFieldId(\"postalCode\", newValue, verificationService);\n }}\n value={viewModel.postalCode}\n disabled={getFieldConfigByFieldId(\"postalCode\")?.disabled}\n />\n )}\n\n {isFieldRequired(\"socialSecurityNumber\") && (\n <div className=\"sid-ssn-wrapper\">\n <SocialSecurityNumber\n value={viewModel.socialSecurityNumber}\n onChange={(value: string) => {\n updatePersonalInfoViewModel(\"socialSecurityNumber\", value);\n updateFieldValidationErrorsByFieldId(\n \"socialSecurityNumber\",\n value,\n verificationService,\n );\n }}\n isErrored={!!fieldValidationErrors[FieldIdEnum.socialSecurityNumber]}\n placeholder=\"000-00-0000\"\n disabled={getFieldConfigByFieldId(\"socialSecurityNumber\")?.disabled}\n />\n </div>\n )}\n\n {isFieldRequired(\"state\") && (\n <StateSelectComponent\n isRequired\n value={viewModel.state || undefined}\n isErrored={Boolean(fieldValidationErrors.state)}\n onChange={async (stateChoice: FormSelectChoice<State, string>) => {\n const stateValue = stateChoice ? stateChoice.value : undefined;\n updatePersonalInfoViewModel(\"state\", stateValue);\n updateFieldValidationErrorsByFieldId(\"state\", stateValue, verificationService);\n }}\n label={<FormattedHTMLMessage id=\"state\" defaultMessage=\"State\" />}\n disabled={getFieldConfigByFieldId(\"state\")?.disabled}\n />\n )}\n\n {isFieldRequired(\"activeDutyStartDate\") &&\n verificationService.programTheme.strictMilitaryValidationEnabled && (\n <ActiveDutyStartDateComponent\n errorId={fieldValidationErrors.activeDutyStartDate}\n locale={locale}\n onChange={(newValue) => {\n updatePersonalInfoViewModel(\"activeDutyStartDate\", newValue);\n updateFieldValidationErrorsByFieldId(\n \"activeDutyStartDate\",\n newValue,\n verificationService,\n );\n }}\n value={viewModel.activeDutyStartDate}\n disabled={getFieldConfigByFieldId(\"activeDutyStartDate\")?.disabled}\n />\n )}\n\n {options.customFormFields?.map((config: CustomFormFieldConfig) => (\n <FormFieldCustom config={config} verificationService={verificationService} />\n ))}\n\n <MarketConsentWrapper\n verificationService={verificationService}\n isErrored={!!fieldValidationErrors.marketConsentValue}\n onChange={(newValue) => {\n updatePersonalInfoViewModel(\"metadata\", {\n ...verificationService.viewModel.metadata,\n marketConsentValue: newValue,\n });\n updateFieldValidationErrorsByFieldId(\n \"marketConsentValue\",\n newValue,\n verificationService,\n );\n }}\n viewModel={viewModel}\n disabled={getFieldConfigByFieldId(\"marketConsentValue\")?.disabled}\n />\n\n <ExtraMessage verificationService={verificationService} suffix=\"CollectAboveSubmit\" />\n\n <CaptchaComponent\n verificationService={verificationService}\n isErrored={!!fieldValidationErrors.captchaToken}\n />\n\n <PersonalInfoStepSubmitButton\n step={VerificationStepsEnum.collectPersonalInfo}\n verificationService={verificationService}\n viewModel={viewModel}\n failedInstantMatch={failedInstantMatch}\n buttonText={\n <FormattedHTMLMessage\n id=\"step.personalInfo.submitButtonText\"\n defaultMessage=\"Verify and continue\"\n />\n }\n />\n </div>\n <FormFooter verificationService={verificationService} />\n </div>\n );\n};\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4CA2Ea,KAAoC,EAC/C,6BACkC;CAClC,IAAM,IAAY,EAAoB,WAChC,EAAE,oBAAiB,oBAAiB,GAEpC,CAAC,GAAgB,MAAA,EAA2B,SAA6B,KAAA,CAAS,GAElF,KAAmB,MACvB,KAAkB,EAAe,MAAM,MAAU,EAAM,QAAQ,CAAG,GAE9D,EAAE,6BAA0B,GAC5B,IACJ,EAAoB,sBAChB,KAAqB,GAAsB,CAAoB,GAE/D,KAA+B,GAAyC,MAAe;EAO3F,EANgD,EAC9C,IACC,MAAwC;GACvC,EAAO,KAAe;EACxB,CAEc,CAAS;CAC3B,GAEM,MAAqC,MAA0C;EAKnF,EAJgD,GAC9C,GACA,CAEc,CAAS;CAC3B,GAEM,IAAS,EAAU,aAAa,OAChC,KAAU,EAAW,GAErB,EAAE,YAAS,yBAAsB,GACjC,KAAoB,EAAQ,OAAO,CAAC,EAAE,YAAY,IAAI,EAAQ,MAAM,CAAC,GAErE,UACJ,MACC,MA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,GAAA,EAAA,KAAC,GAAD;KAAmC;KAAqB,QAAO;IAAsB,CAAA;IAErF,iBAAA,GAAA,EAAA,KAAC,GAAD;KACuB;KACrB,WAAW,CAAC,CAAC,EAAsB;IACpC,CAAA;IAED,iBAAA,GAAA,EAAA,KAAC,GAAD;KACE,MAAM,EAAsB;KACP;KACV;KACS;KACpB,YACE,iBAAA,GAAA,EAAA,KAAC,GAAD;MACE,IAAG;MACH,gBAAe;KAChB,CAAA;IAEJ,CAAA;GACE;MACL,iBAAA,GAAA,EAAA,KAAC,IAAD,EAAiC,uBAAsB,CAAA,CACpD;;AAET"}
1
+ {"version":3,"file":"StepCollectPersonalInfo-vwWUcMyH.js","names":[],"sources":["../../src/components/StepCollectPersonalInfo/StepCollectPersonalInfoComponent.tsx"],"sourcesContent":["import React from \"react\";\nimport produce from \"immer\";\nimport { FormattedHTMLMessage } from \"react-intl\";\n\nimport { getSafe } from \"@jslib/shared/utils/getSafe\";\nimport { logger } from \"@jslib/shared/utils/logger\";\n\nimport { useFormSelectChoice } from \"@/components/FormInputs/InputSelect/InputSelectComponent\";\nimport { type MessageId } from \"@/lib/intl/types\";\n\nimport { hasFailedInstantMatch } from \"../../lib/VerificationService/VerificationServiceHelpers\";\nimport {\n type VerificationService,\n type CollectPersonalInfoViewModel,\n type CustomFormFieldConfig,\n type Organization,\n type FormSelectChoice,\n type State,\n type CollectFieldsResponse,\n type CollectPersonalInfoResponse,\n type FieldDescription,\n type AllStatuses,\n} from \"../../lib/types/types\";\nimport {\n orgToOption,\n handleEmailOnKeyDown,\n submitForm,\n updateFieldValidationErrorsByFieldId,\n updateViewModelOrganization,\n produceDraftViewModelWithAllRequiredFields,\n getFieldConfigByFieldId,\n} from \"../../lib/utils/stepComponentHelpers/stepComponentHelpers\";\nimport { MarketConsentWrapperComponent as MarketConsentWrapper } from \"../FormFields/MarketConsentWrapper/MarketConsentWrapperComponent\";\nimport { PhoneNumberComponent as PhoneNumber } from \"../FormFields/PhoneNumber/PhoneNumberComponent\";\nimport { CollegeNameComponent as CollegeName } from \"../FormFields/CollegeName/CollegeNameComponent\";\nimport { FirstNameComponent as FirstName } from \"../FormFields/FirstName/FirstNameComponent\";\nimport { LastNameComponent as LastName } from \"../FormFields/LastName/LastNameComponent\";\nimport { EmailComponent as Email } from \"../FormFields/Email/EmailComponent\";\nimport { BirthDateComponent as BirthDate } from \"../FormFields/BirthDate/BirthDateComponent\";\nimport { FormFooterComponent as FormFooter } from \"../FormFooter/FormFooterComponent\";\nimport { CountryComponentWrapper } from \"../FormFields/Country/CountryComponentWrapper\";\nimport { getOptions } from \"../../options/options\";\nimport { FormFieldCustom } from \"../FormFields/FormFieldCustom/FormFieldCustom\";\nimport { ExtraMessage } from \"../ExtraMessage\";\nimport { FieldIdEnum, SegmentEnum, VerificationStepsEnum } from \"../../lib/types/runtimeTypes\";\nimport { CityComponent } from \"../FormFields/City/City\";\nimport { StateSelectComponent } from \"../FormFields/State/StateSelectComponent\";\nimport { PostalCodeComponent } from \"../FormFields/PostalCode/PostalCodeComponent\";\nimport { AddressComponent } from \"../FormFields/Address/AddressComponent\";\nimport { ActiveDutyStartDateComponent } from \"../FormFields/ActiveDutyStartDate/ActiveDutyStartDateComponent\";\nimport { BranchOfServiceComponent as BranchOfService } from \"../FormFields/BranchOfService/BranchOfServiceComponent\";\nimport { DriverLicenseNumberComponent as DriverLicenseNumber } from \"../FormFields/DriverLicenseNumber/DriverLicenseNumberComponent\";\nimport { EBTCardNumberComponent } from \"../FormFields/EBTCardNumber/EBTCardNumberComponent\";\nimport { StatusComponent as Status } from \"../FormFields/Status/StatusComponent\";\nimport { LowIncomeOrganizationComponent as LowIncomeOrganization } from \"../FormFields/LowIncomeOrganization/LowIncomeOrganizationComponent\";\nimport { FirstResponderOrganizationComponent as FirstResponderOrganization } from \"../FormFields/FirstResponderOrganization/FirstResponderOrganizationComponent\";\nimport { LicensedProfessionalOrganizationComponent as LicensedProfessionalOrganization } from \"../FormFields/LicensedProfessionalOrganization/LicensedProfessionalOrganizationComponent\";\nimport { MedicalProfessionalOrganizationComponent as MedicalProfessionalOrganization } from \"../FormFields/MedicalProfessionalOrganization/MedicalProfessionalOrganizationComponent\";\nimport { MemberIdComponent as MemberId } from \"../FormFields/MemberId/MemberIdComponent\";\nimport { MembershipOrganizationComponent as MembershipOrganization } from \"../FormFields/MembershipOrganization/MembershipOrganizationComponent\";\nimport { TeacherSchoolComponent as TeacherSchool } from \"../FormFields/TeacherSchool/TeacherSchoolComponent\";\nimport { SocialSecurityNumber } from \"../FormFields/SSN/SSN\";\nimport { DischargeDateComponent } from \"../FormFields/DischargeDate/DischargeDateComponent\";\nimport { getAllFieldsToCollect } from \"../../lib/ServerApi/VerificationApiClient\";\nimport { useCollectFieldsEndpoint } from \"../../lib/ServerApi/useCollectFieldsEndpoint\";\nimport { getMarketConsent } from \"../../lib/ProgramTheme/programThemeGetters\";\nimport { isCountrySelectionNeeded } from \"../FormFields/Country/countryUtils\";\nimport { PersonalInfoHeader } from \"../FormHeader/StepHeaders/PersonalInfoHeaderComponent\";\nimport { PersonalInfoStepSubmitButton } from \"../PersonalInfoStepSubmitButton/PersonalInfoStepSubmitButton\";\nimport { CaptchaComponent } from \"../FormFields/Captcha/CaptchaComponent\";\n\ninterface StepCollectPersonalInfoProps {\n verificationService: VerificationService;\n}\n\nexport const StepCollectPersonalInfoComponent = ({\n verificationService,\n}: StepCollectPersonalInfoProps) => {\n const viewModel = verificationService.viewModel as CollectPersonalInfoViewModel;\n const { updateViewModel, programTheme } = verificationService;\n\n const [requiredFields, setRequiredFields] = React.useState<FieldDescription[]>(undefined);\n\n const isFieldRequired = (key: keyof CollectPersonalInfoViewModel) =>\n requiredFields && requiredFields.some((field) => field.key === key);\n\n const { fieldValidationErrors } = verificationService;\n const verificationResponse =\n verificationService.verificationResponse as CollectPersonalInfoResponse;\n const failedInstantMatch = hasFailedInstantMatch(verificationResponse);\n\n const updatePersonalInfoViewModel = (key: keyof CollectPersonalInfoViewModel, value: any) => {\n const nextState: CollectPersonalInfoViewModel = produce(\n viewModel,\n (draft: CollectPersonalInfoViewModel) => {\n (draft[key] as any) = value;\n },\n );\n updateViewModel(nextState);\n };\n\n const updateViewModelWithRequiredFields = (newRequiredFields: FieldDescription[]) => {\n const nextState: CollectPersonalInfoViewModel = produceDraftViewModelWithAllRequiredFields(\n viewModel,\n newRequiredFields,\n );\n updateViewModel(nextState);\n };\n\n const locale = viewModel.localeChoice.value;\n const options = getOptions();\n\n const { segment, availableStatuses } = verificationResponse;\n const pascalCaseSegment = segment.charAt(0).toUpperCase() + segment.slice(1);\n\n const isStatusRequired = (): boolean =>\n availableStatuses &&\n (segment === SegmentEnum.FIRST_RESPONDER ||\n segment === SegmentEnum.MEDICAL ||\n segment === SegmentEnum.LOW_INCOME ||\n segment === SegmentEnum.LICENSED_PROFESSIONAL ||\n segment === SegmentEnum.EMPLOYMENT ||\n segment === SegmentEnum.RECENT_MOVER ||\n segment === SegmentEnum.MILITARY);\n\n const { availableStatuses: dynamicStatuses } = useCollectFieldsEndpoint({\n verificationId: verificationResponse.verificationId,\n currentStep: verificationResponse.currentStep,\n viewModel,\n });\n\n const countryChoiceValue = viewModel.countryChoice?.value;\n const needToPickCountry = isCountrySelectionNeeded(programTheme, countryChoiceValue);\n const statusOptions = useFormSelectChoice((dynamicStatuses ?? availableStatuses) as MessageId[]);\n\n const getAndSetRequiredFields = (requestBody: { statuses?: AllStatuses[] }) =>\n (async () => {\n try {\n const collectFieldsResponse: CollectFieldsResponse = await getAllFieldsToCollect(\n verificationResponse.verificationId,\n verificationResponse.currentStep,\n requestBody,\n );\n const newRequiredFields = getSafe(() => collectFieldsResponse.fieldsToCollect.required, []);\n\n if (isStatusRequired()) {\n // Adding `status` as a required input field if it's been removed by getting\n // all fields to collect with a statuses req body\n newRequiredFields.push({ key: \"status\" });\n }\n\n updateViewModelWithRequiredFields(newRequiredFields);\n setRequiredFields(newRequiredFields);\n } catch (error) {\n logger.error(`Failed to determine fields to collect: ${error}`);\n }\n })();\n\n const getOrganizationField = () => {\n switch (segment) {\n case SegmentEnum.STUDENT:\n return (\n <CollegeName\n value={(verificationService.viewModel as CollectPersonalInfoViewModel).organization}\n verificationService={verificationService}\n isErrored={!!fieldValidationErrors.organization}\n isRequired\n disabled={getFieldConfigByFieldId(\"organization\")?.disabled}\n onChange={(choice: Organization) => {\n updateViewModelOrganization(choice, verificationService);\n updateFieldValidationErrorsByFieldId(\"organization\", choice, verificationService);\n }}\n />\n );\n case SegmentEnum.TEACHER:\n return (\n <TeacherSchool\n value={(verificationService.viewModel as CollectPersonalInfoViewModel).organization}\n verificationService={verificationService}\n isErrored={!!fieldValidationErrors.organization}\n disabled={getFieldConfigByFieldId(\"organization\")?.disabled}\n onChange={(choice: Organization) => {\n updateViewModelOrganization(choice, verificationService);\n updateFieldValidationErrorsByFieldId(\"organization\", choice, verificationService);\n }}\n />\n );\n case SegmentEnum.MEMBER:\n return (\n <MembershipOrganization\n value={(verificationService.viewModel as CollectPersonalInfoViewModel).organization}\n verificationService={verificationService}\n isErrored={!!fieldValidationErrors.organization}\n disabled={getFieldConfigByFieldId(\"organization\")?.disabled}\n onChange={(choice: Organization) => {\n updateViewModelOrganization(choice, verificationService);\n updateFieldValidationErrorsByFieldId(\"organization\", choice, verificationService);\n }}\n />\n );\n case SegmentEnum.MILITARY:\n return (\n <BranchOfService\n isErrored={!!fieldValidationErrors.organization}\n onChange={(choice: Organization) => {\n updateViewModelOrganization(choice, verificationService);\n updateFieldValidationErrorsByFieldId(\"organization\", choice, verificationService);\n }}\n value={{\n value: getSafe(\n () =>\n (verificationService.viewModel as CollectPersonalInfoViewModel).organization.id,\n ),\n label: getSafe(\n () =>\n (verificationService.viewModel as CollectPersonalInfoViewModel).organization.name,\n ),\n }}\n verificationService={verificationService}\n disabled={getFieldConfigByFieldId(\"organization\")?.disabled}\n />\n );\n case SegmentEnum.FIRST_RESPONDER:\n return (\n <FirstResponderOrganization\n isErrored={!!fieldValidationErrors.organization}\n onChange={(choice: Organization) => {\n updateViewModelOrganization(choice, verificationService);\n updateFieldValidationErrorsByFieldId(\"organization\", choice, verificationService);\n }}\n value={(verificationService.viewModel as CollectPersonalInfoViewModel).organization}\n verificationService={verificationService}\n disabled={getFieldConfigByFieldId(\"organization\")?.disabled}\n />\n );\n case SegmentEnum.MEDICAL:\n return (\n <MedicalProfessionalOrganization\n isErrored={!!fieldValidationErrors.organization}\n onChange={(choice: Organization) => {\n updateViewModelOrganization(choice, verificationService);\n updateFieldValidationErrorsByFieldId(\"organization\", choice, verificationService);\n }}\n value={(verificationService.viewModel as CollectPersonalInfoViewModel).organization}\n verificationService={verificationService}\n disabled={getFieldConfigByFieldId(\"organization\")?.disabled}\n />\n );\n case SegmentEnum.LICENSED_PROFESSIONAL:\n return (\n <LicensedProfessionalOrganization\n isErrored={!!fieldValidationErrors.organization}\n onChange={(choice: Organization) => {\n updateViewModelOrganization(choice, verificationService);\n updateFieldValidationErrorsByFieldId(\"organization\", choice, verificationService);\n }}\n value={(verificationService.viewModel as CollectPersonalInfoViewModel).organization}\n verificationService={verificationService}\n disabled={getFieldConfigByFieldId(\"organization\")?.disabled}\n />\n );\n case SegmentEnum.LOW_INCOME:\n return (\n <LowIncomeOrganization\n isErrored={!!fieldValidationErrors.organization}\n onChange={(choice: Organization) => {\n updateViewModelOrganization(choice, verificationService);\n updateFieldValidationErrorsByFieldId(\"organization\", choice, verificationService);\n }}\n value={orgToOption(\n (verificationService.viewModel as CollectPersonalInfoViewModel).organization,\n )}\n verificationService={verificationService}\n isRequired\n disabled={getFieldConfigByFieldId(\"organization\")?.disabled}\n />\n );\n default:\n return null;\n }\n };\n\n React.useEffect(() => {\n if (availableStatuses && segment === SegmentEnum.MILITARY) {\n // display all required military fields by setting an initial default status\n getAndSetRequiredFields({ statuses: [] });\n } else {\n // fetch initial list of required input fields\n getAndSetRequiredFields({});\n }\n }, []);\n\n React.useEffect(() => {\n if (!getMarketConsent(programTheme).enabled && requiredFields && requiredFields.length === 0) {\n // skip this step if there are no required fields, and marketConsent is not enabled\n submitForm(viewModel, verificationService, VerificationStepsEnum.collectPersonalInfo);\n }\n }, [requiredFields]);\n\n React.useEffect(() => {\n if (viewModel.status) {\n // if status changes, re-fetch required fields because they may have changed based on selected status\n getAndSetRequiredFields({ statuses: [viewModel.status] });\n }\n }, [viewModel.status]);\n\n return (\n <div\n id=\"sid-step-personal-info-personal-info\"\n className=\"sid-personal-info-container sid-l-container\"\n >\n <div role=\"main\">\n <PersonalInfoHeader\n verificationService={verificationService}\n classNameIdentifier=\"personal-info\"\n />\n\n <CountryComponentWrapper\n verificationService={verificationService}\n disabled={getFieldConfigByFieldId(\"country\")?.disabled}\n />\n\n {isStatusRequired() && (\n <Status\n segmentId={segment}\n value={statusOptions.find((option) => option.value === viewModel.status)}\n isErrored={!!fieldValidationErrors.status}\n errorId={`invalid${pascalCaseSegment}Status`}\n options={statusOptions}\n disabled={needToPickCountry || getFieldConfigByFieldId(\"status\")?.disabled}\n explanation={\n needToPickCountry ? (\n <FormattedHTMLMessage id=\"chooseCountry\" defaultMessage=\"Choose a country first\" />\n ) : undefined\n }\n onChange={(status: FormSelectChoice) => {\n updatePersonalInfoViewModel(\"status\", status ? (status.value as string) : \"\");\n updateFieldValidationErrorsByFieldId(\n \"status\",\n status ? (status.value as string) : \"\",\n verificationService,\n );\n }}\n />\n )}\n\n {isFieldRequired(\"organization\") && getOrganizationField()}\n\n <div className=\"sid-names\">\n {isFieldRequired(\"firstName\") && (\n <FirstName\n value={viewModel.firstName}\n isErrored={!!fieldValidationErrors.firstName}\n disabled={getFieldConfigByFieldId(\"firstName\")?.disabled}\n onChange={(newValue) => {\n updatePersonalInfoViewModel(\"firstName\", newValue);\n updateFieldValidationErrorsByFieldId(\"firstName\", newValue, verificationService);\n }}\n />\n )}\n\n {isFieldRequired(\"lastName\") && (\n <LastName\n value={viewModel.lastName}\n isErrored={!!fieldValidationErrors.lastName}\n disabled={getFieldConfigByFieldId(\"lastName\")?.disabled}\n onChange={(newValue) => {\n updatePersonalInfoViewModel(\"lastName\", newValue);\n updateFieldValidationErrorsByFieldId(\"lastName\", newValue, verificationService);\n }}\n />\n )}\n </div>\n\n {isFieldRequired(\"birthDate\") && (\n <BirthDate\n value={viewModel.birthDate}\n errorId={fieldValidationErrors.birthDate}\n locale={locale}\n isRequired\n disabled={getFieldConfigByFieldId(\"birthDate\")?.disabled}\n onChange={(newValue) => {\n updatePersonalInfoViewModel(\"birthDate\", newValue);\n updateFieldValidationErrorsByFieldId(\"birthDate\", newValue, verificationService);\n }}\n />\n )}\n\n {isFieldRequired(\"email\") && (\n <Email\n value={viewModel.email}\n isErrored={!!fieldValidationErrors.email}\n explanation=\" \"\n onChange={(newValue) => {\n updatePersonalInfoViewModel(\"email\", newValue);\n updateFieldValidationErrorsByFieldId(\"email\", newValue, verificationService);\n }}\n onKeyDown={(event) => handleEmailOnKeyDown(event)}\n disabled={getFieldConfigByFieldId(\"email\")?.disabled}\n />\n )}\n\n {isFieldRequired(\"phoneNumber\") && (\n <PhoneNumber\n isRequired={!!verificationService.programTheme.smsLoopEnabled}\n value={viewModel.phoneNumber}\n isErrored={!!fieldValidationErrors.phoneNumber}\n onChange={(newValue) => {\n updatePersonalInfoViewModel(\"phoneNumber\", newValue);\n updateFieldValidationErrorsByFieldId(\"phoneNumber\", newValue, verificationService);\n }}\n selectedCountryCode={viewModel.countryChoice && viewModel.countryChoice.value}\n disabled={getFieldConfigByFieldId(\"phoneNumber\")?.disabled}\n />\n )}\n\n {isFieldRequired(\"address1\") && (\n <AddressComponent\n value={viewModel.address1}\n isRequired\n isErrored={!!fieldValidationErrors.address1}\n errorId={fieldValidationErrors.address1}\n disabled={getFieldConfigByFieldId(\"address1\")?.disabled}\n onChange={(value) => {\n updatePersonalInfoViewModel(\"address1\", value);\n updateFieldValidationErrorsByFieldId(\"address1\", value, verificationService);\n }}\n />\n )}\n\n {isFieldRequired(\"city\") && (\n <CityComponent\n value={viewModel.city}\n isRequired\n isErrored={!!fieldValidationErrors.city}\n errorId={fieldValidationErrors.city}\n disabled={getFieldConfigByFieldId(\"city\")?.disabled}\n onChange={(newValue) => {\n updatePersonalInfoViewModel(\"city\", newValue);\n updateFieldValidationErrorsByFieldId(\"city\", newValue, verificationService);\n }}\n />\n )}\n\n {isFieldRequired(\"dischargeDate\") && (\n <DischargeDateComponent\n errorId={fieldValidationErrors.dischargeDate}\n locale={locale}\n onChange={(newValue) => {\n updatePersonalInfoViewModel(\"dischargeDate\", newValue);\n updateFieldValidationErrorsByFieldId(\"dischargeDate\", newValue, verificationService);\n }}\n value={viewModel.dischargeDate}\n disabled={getFieldConfigByFieldId(\"dischargeDate\")?.disabled}\n />\n )}\n\n {isFieldRequired(\"driverLicenseNumber\") && (\n <DriverLicenseNumber\n value={viewModel.driverLicenseNumber}\n isErrored={!!fieldValidationErrors.driverLicenseNumber}\n isRequired\n disabled={getFieldConfigByFieldId(\"driverLicenseNumber\")?.disabled}\n onChange={(newValue) => {\n updatePersonalInfoViewModel(\"driverLicenseNumber\", newValue);\n updateFieldValidationErrorsByFieldId(\n \"driverLicenseNumber\",\n newValue,\n verificationService,\n );\n }}\n />\n )}\n\n {isFieldRequired(\"ebtCardNumber\") && (\n <EBTCardNumberComponent\n value={viewModel.ebtCardNumber}\n isErrored={!!fieldValidationErrors.ebtCardNumber}\n disabled={getFieldConfigByFieldId(\"ebtCardNumber\")?.disabled}\n onChange={(newValue) => {\n updatePersonalInfoViewModel(\"ebtCardNumber\", newValue);\n updateFieldValidationErrorsByFieldId(\"ebtCardNumber\", newValue, verificationService);\n }}\n />\n )}\n\n {isFieldRequired(\"memberId\") && (\n <MemberId\n value={viewModel.memberId}\n isErrored={!!fieldValidationErrors.memberId}\n isRequired={getFieldConfigByFieldId(\"memberId\")?.requireIfOptional}\n disabled={getFieldConfigByFieldId(\"memberId\")?.disabled}\n onChange={(newValue) => {\n updatePersonalInfoViewModel(\"memberId\", newValue);\n updateFieldValidationErrorsByFieldId(\"memberId\", newValue, verificationService);\n }}\n label={\n <FormattedHTMLMessage\n id=\"step.collectMedicalPersonalInfo.registrationNumberLabel\"\n defaultMessage=\"Registration Number\"\n />\n }\n />\n )}\n\n {isFieldRequired(\"postalCode\") && (\n <PostalCodeComponent\n isErrored={!!fieldValidationErrors.postalCode}\n onChange={(newValue) => {\n updatePersonalInfoViewModel(\"postalCode\", newValue);\n updateFieldValidationErrorsByFieldId(\"postalCode\", newValue, verificationService);\n }}\n value={viewModel.postalCode}\n disabled={getFieldConfigByFieldId(\"postalCode\")?.disabled}\n />\n )}\n\n {isFieldRequired(\"socialSecurityNumber\") && (\n <div className=\"sid-ssn-wrapper\">\n <SocialSecurityNumber\n value={viewModel.socialSecurityNumber}\n onChange={(value: string) => {\n updatePersonalInfoViewModel(\"socialSecurityNumber\", value);\n updateFieldValidationErrorsByFieldId(\n \"socialSecurityNumber\",\n value,\n verificationService,\n );\n }}\n isErrored={!!fieldValidationErrors[FieldIdEnum.socialSecurityNumber]}\n placeholder=\"000-00-0000\"\n disabled={getFieldConfigByFieldId(\"socialSecurityNumber\")?.disabled}\n />\n </div>\n )}\n\n {isFieldRequired(\"state\") && (\n <StateSelectComponent\n isRequired\n value={viewModel.state || undefined}\n isErrored={Boolean(fieldValidationErrors.state)}\n onChange={async (stateChoice: FormSelectChoice<State, string>) => {\n const stateValue = stateChoice ? stateChoice.value : undefined;\n updatePersonalInfoViewModel(\"state\", stateValue);\n updateFieldValidationErrorsByFieldId(\"state\", stateValue, verificationService);\n }}\n label={<FormattedHTMLMessage id=\"state\" defaultMessage=\"State\" />}\n disabled={getFieldConfigByFieldId(\"state\")?.disabled}\n />\n )}\n\n {isFieldRequired(\"activeDutyStartDate\") &&\n verificationService.programTheme.strictMilitaryValidationEnabled && (\n <ActiveDutyStartDateComponent\n errorId={fieldValidationErrors.activeDutyStartDate}\n locale={locale}\n onChange={(newValue) => {\n updatePersonalInfoViewModel(\"activeDutyStartDate\", newValue);\n updateFieldValidationErrorsByFieldId(\n \"activeDutyStartDate\",\n newValue,\n verificationService,\n );\n }}\n value={viewModel.activeDutyStartDate}\n disabled={getFieldConfigByFieldId(\"activeDutyStartDate\")?.disabled}\n />\n )}\n\n {options.customFormFields?.map((config: CustomFormFieldConfig) => (\n <FormFieldCustom config={config} verificationService={verificationService} />\n ))}\n\n <MarketConsentWrapper\n verificationService={verificationService}\n isErrored={!!fieldValidationErrors.marketConsentValue}\n onChange={(newValue) => {\n updatePersonalInfoViewModel(\"metadata\", {\n ...verificationService.viewModel.metadata,\n marketConsentValue: newValue,\n });\n updateFieldValidationErrorsByFieldId(\n \"marketConsentValue\",\n newValue,\n verificationService,\n );\n }}\n viewModel={viewModel}\n disabled={getFieldConfigByFieldId(\"marketConsentValue\")?.disabled}\n />\n\n <ExtraMessage verificationService={verificationService} suffix=\"CollectAboveSubmit\" />\n\n <CaptchaComponent\n verificationService={verificationService}\n isErrored={!!fieldValidationErrors.captchaToken}\n />\n\n <PersonalInfoStepSubmitButton\n step={VerificationStepsEnum.collectPersonalInfo}\n verificationService={verificationService}\n viewModel={viewModel}\n failedInstantMatch={failedInstantMatch}\n buttonText={\n <FormattedHTMLMessage\n id=\"step.personalInfo.submitButtonText\"\n defaultMessage=\"Verify and continue\"\n />\n }\n />\n </div>\n <FormFooter verificationService={verificationService} />\n </div>\n );\n};\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4CA2Ea,KAAoC,EAC/C,6BACkC;CAClC,IAAM,IAAY,EAAoB,WAChC,EAAE,oBAAiB,oBAAiB,GAEpC,CAAC,GAAgB,MAAA,EAA2B,SAA6B,KAAA,CAAS,GAElF,KAAmB,MACvB,KAAkB,EAAe,MAAM,MAAU,EAAM,QAAQ,CAAG,GAE9D,EAAE,6BAA0B,GAC5B,IACJ,EAAoB,sBAChB,KAAqB,GAAsB,CAAoB,GAE/D,KAA+B,GAAyC,MAAe;EAO3F,EANgD,EAC9C,IACC,MAAwC;GACvC,EAAO,KAAe;EACxB,CAEc,CAAS;CAC3B,GAEM,MAAq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WAAW,CAAC,CAAC,EAAsB;KACnC,WAAW,MAAa;MAKtB,AAJA,EAA4B,YAAY;OACtC,GAAG,EAAoB,UAAU;OACjC,oBAAoB;MACtB,CAAC,GACD,EACE,sBACA,GACA,CACF;KACF;KACW;KACX,UAAU,EAAwB,oBAAoB,GAAG;IAC1D,CAAA;IAED,iBAAA,GAAA,EAAA,KAAC,GAAD;KAAmC;KAAqB,QAAO;IAAsB,CAAA;IAErF,iBAAA,GAAA,EAAA,KAAC,GAAD;KACuB;KACrB,WAAW,CAAC,CAAC,EAAsB;IACpC,CAAA;IAED,iBAAA,GAAA,EAAA,KAAC,GAAD;KACE,MAAM,EAAsB;KACP;KACV;KACS;KACpB,YACE,iBAAA,GAAA,EAAA,KAAC,GAAD;MACE,IAAG;MACH,gBAAe;KAChB,CAAA;IAEJ,CAAA;GACE;MACL,iBAAA,GAAA,EAAA,KAAC,IAAD,EAAiC,uBAAsB,CAAA,CACpD;;AAET"}
@@ -4,17 +4,17 @@
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.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
7
+ * VERSION: 2.304.0
8
+ * BUILD_TIMESTAMP: 1792172954317
9
+ * BUILD_DATE: Fri Oct 16 2026 17:49:14 GMT+0000 (Coordinated Universal Time)
10
+ * BUILD_COMMIT: 14bb12a3aac5dfbe3f216ca64aa66bee70d284c3
11
11
  */
12
12
  import { kt as e, p as t } from "./intl-DYOqmiaL.js";
13
13
  import { b as n } from "./runtimeTypes-B2AGNJMT.js";
14
14
  import { n as r, s as i, t as a } from "./jsx-runtime-DtApx7WX.js";
15
- import { t as o } from "./hooks-B4mmDpuv.js";
15
+ import { t as o } from "./hooks-BF7oPgCe.js";
16
16
  import { t as s } from "./AnnouncingHeader-CnV2m0Ak.js";
17
- import { d as c, l } from "./stepComponentHelpers-Bo_ASl0b.js";
17
+ import { d as c, l } from "./stepComponentHelpers-DOISo3yJ.js";
18
18
  //#region ../node_modules/react-auth-code-input/dist/index.modern.js
19
19
  var u = /* @__PURE__ */ e(i()), d = [
20
20
  "alpha",
@@ -1 +1 @@
1
- {"version":3,"file":"StepCompleteAuthentication-DOywOfPZ.js","names":[],"sources":["../../../node_modules/react-auth-code-input/dist/index.modern.js","../../src/components/StepCompleteAuthentication/StepCompleteAuthenticationComponent.tsx"],"sourcesContent":["import React, { forwardRef, useRef, useImperativeHandle, useEffect } from 'react';\n\nvar allowedCharactersValues = ['alpha', 'numeric', 'alphanumeric'];\nvar propsMap = {\n alpha: {\n type: 'text',\n inputMode: 'text',\n pattern: '[a-zA-Z]{1}'\n },\n alphanumeric: {\n type: 'text',\n inputMode: 'text',\n pattern: '[a-zA-Z0-9]{1}'\n },\n numeric: {\n type: 'tel',\n inputMode: 'numeric',\n pattern: '[0-9]{1}',\n min: '0',\n max: '9'\n }\n};\nvar AuthCode = forwardRef(function (_ref, ref) {\n var _ref$allowedCharacter = _ref.allowedCharacters,\n allowedCharacters = _ref$allowedCharacter === void 0 ? 'alphanumeric' : _ref$allowedCharacter,\n ariaLabel = _ref.ariaLabel,\n _ref$autoFocus = _ref.autoFocus,\n autoFocus = _ref$autoFocus === void 0 ? true : _ref$autoFocus,\n containerClassName = _ref.containerClassName,\n disabled = _ref.disabled,\n inputClassName = _ref.inputClassName,\n _ref$isPassword = _ref.isPassword,\n isPassword = _ref$isPassword === void 0 ? false : _ref$isPassword,\n _ref$length = _ref.length,\n length = _ref$length === void 0 ? 6 : _ref$length,\n placeholder = _ref.placeholder,\n onChange = _ref.onChange;\n\n if (isNaN(length) || length < 1) {\n throw new Error('Length should be a number and greater than 0');\n }\n\n if (!allowedCharactersValues.some(function (value) {\n return value === allowedCharacters;\n })) {\n throw new Error('Invalid value for allowedCharacters. Use alpha, numeric, or alphanumeric');\n }\n\n var inputsRef = useRef([]);\n var inputProps = propsMap[allowedCharacters];\n useImperativeHandle(ref, function () {\n return {\n focus: function focus() {\n if (inputsRef.current) {\n inputsRef.current[0].focus();\n }\n },\n clear: function clear() {\n if (inputsRef.current) {\n for (var i = 0; i < inputsRef.current.length; i++) {\n inputsRef.current[i].value = '';\n }\n\n inputsRef.current[0].focus();\n }\n\n sendResult();\n }\n };\n });\n useEffect(function () {\n if (autoFocus) {\n inputsRef.current[0].focus();\n }\n }, []);\n\n var sendResult = function sendResult() {\n var res = inputsRef.current.map(function (input) {\n return input.value;\n }).join('');\n onChange && onChange(res);\n };\n\n var handleOnChange = function handleOnChange(e) {\n var _e$target = e.target,\n value = _e$target.value,\n nextElementSibling = _e$target.nextElementSibling;\n\n if (value.length > 1) {\n e.target.value = value.charAt(0);\n\n if (nextElementSibling !== null) {\n nextElementSibling.focus();\n }\n } else {\n if (value.match(inputProps.pattern)) {\n if (nextElementSibling !== null) {\n nextElementSibling.focus();\n }\n } else {\n e.target.value = '';\n }\n }\n\n sendResult();\n };\n\n var handleOnKeyDown = function handleOnKeyDown(e) {\n var key = e.key;\n var target = e.target;\n\n if (key === 'Backspace') {\n if (target.value === '') {\n if (target.previousElementSibling !== null) {\n var t = target.previousElementSibling;\n t.value = '';\n t.focus();\n e.preventDefault();\n }\n } else {\n target.value = '';\n }\n\n sendResult();\n }\n };\n\n var handleOnFocus = function handleOnFocus(e) {\n e.target.select();\n };\n\n var handleOnPaste = function handleOnPaste(e) {\n var pastedValue = e.clipboardData.getData('Text');\n var currentInput = 0;\n\n for (var i = 0; i < pastedValue.length; i++) {\n var pastedCharacter = pastedValue.charAt(i);\n var currentValue = inputsRef.current[currentInput].value;\n\n if (pastedCharacter.match(inputProps.pattern)) {\n if (!currentValue) {\n inputsRef.current[currentInput].value = pastedCharacter;\n\n if (inputsRef.current[currentInput].nextElementSibling !== null) {\n inputsRef.current[currentInput].nextElementSibling.focus();\n currentInput++;\n }\n }\n }\n }\n\n sendResult();\n e.preventDefault();\n };\n\n var inputs = [];\n\n var _loop = function _loop(i) {\n inputs.push(React.createElement(\"input\", Object.assign({\n key: i,\n onChange: handleOnChange,\n onKeyDown: handleOnKeyDown,\n onFocus: handleOnFocus,\n onPaste: handleOnPaste\n }, inputProps, {\n type: isPassword ? 'password' : inputProps.type,\n ref: function ref(el) {\n inputsRef.current[i] = el;\n },\n maxLength: 1,\n className: inputClassName,\n autoComplete: i === 0 ? 'one-time-code' : 'off',\n \"aria-label\": ariaLabel ? ariaLabel + \". Character \" + (i + 1) + \".\" : \"Character \" + (i + 1) + \".\",\n disabled: disabled,\n placeholder: placeholder\n })));\n };\n\n for (var i = 0; i < length; i++) {\n _loop(i);\n }\n\n return React.createElement(\"div\", {\n className: containerClassName\n }, inputs);\n});\n\nexport default AuthCode;\n//# sourceMappingURL=index.modern.js.map\n","import * as React from \"react\";\nimport { FormattedHTMLMessage } from \"react-intl\";\nimport AuthCode from \"react-auth-code-input\";\nimport produce from \"immer\";\n\nimport {\n type CompleteAuthenticationViewModel,\n type VerificationService,\n} from \"../../lib/types/types\";\nimport {\n submitForm,\n updateFieldValidationErrorsByFieldId,\n} from \"../../lib/utils/stepComponentHelpers/stepComponentHelpers\";\nimport { AUTH_TOKEN_LENGTH } from \"../../constants\";\nimport { VerificationStepsEnum } from \"../../lib/types/runtimeTypes\";\nimport { AnnouncingHeader } from \"../AnnouncingHeader/AnnouncingHeader\";\nimport { useFlag } from \"../FeatureFlags/hooks\";\n\ninterface StepCompleteAuthenticationProps {\n verificationService: VerificationService;\n}\n\nexport const StepCompleteAuthenticationComponent = ({\n verificationService,\n}: StepCompleteAuthenticationProps) => {\n const viewModel = verificationService.viewModel as CompleteAuthenticationViewModel;\n const { fieldValidationErrors, verificationResponse } = verificationService;\n const { errorIds } = verificationResponse;\n const shouldHideIcon = useFlag(\"hc-my-sheer-id-theme-builder\");\n\n const authInputRef = React.useRef(null);\n\n const updateCompleteAuthenticationViewmodel = (\n key: keyof CompleteAuthenticationViewModel,\n value: any,\n ) => {\n const nextState: CompleteAuthenticationViewModel = produce(\n viewModel,\n (draft: CompleteAuthenticationViewModel) => {\n (draft[key] as any) = value;\n },\n );\n verificationService.updateViewModel(nextState);\n };\n\n const manuallyVerifyViewModel = (): CompleteAuthenticationViewModel => {\n const nextState: CompleteAuthenticationViewModel = produce(\n viewModel,\n (draft: CompleteAuthenticationViewModel) => {\n draft.didManuallyVerify = true;\n delete draft.authenticationCode;\n },\n );\n verificationService.updateViewModel(nextState);\n\n return nextState;\n };\n\n React.useEffect(() => {\n if (viewModel.authenticationCode) {\n // reset local viewModel's authenticationCode to prevent form from submitting\n // prematurely when provided with an incorrect auth code.\n viewModel.authenticationCode = \"\";\n }\n }, []);\n\n React.useEffect(() => {\n if (viewModel.authenticationCode.length >= AUTH_TOKEN_LENGTH) {\n submitForm(viewModel, verificationService, VerificationStepsEnum.completeAuthentication);\n }\n }, [viewModel.authenticationCode]);\n\n return (\n <div\n id=\"sid-step-complete-authentication\"\n className=\"sid-step-complete-authentication-container sid-l-container\"\n >\n <div role=\"main\">\n <div className=\"sid-header\">\n <AnnouncingHeader align=\"center\">\n <FormattedHTMLMessage\n id=\"step.completeAuthentication.title\"\n defaultMessage=\"Verify with Remember Me\"\n />\n </AnnouncingHeader>\n <div className=\"sid-header__subtitle sid-l-horz-center\">\n <FormattedHTMLMessage\n id=\"step.completeAuthentication.subtitle\"\n defaultMessage=\"Enter the code sent to your email.\"\n />\n </div>\n </div>\n <div className=\"sid-l-space-top-md\" />\n <div className=\"auth-code\">\n <AuthCode\n onChange={(token) => {\n updateCompleteAuthenticationViewmodel(\"authenticationCode\", token);\n updateFieldValidationErrorsByFieldId(\n \"authenticationCode\",\n token,\n verificationService,\n );\n }}\n ref={authInputRef}\n allowedCharacters=\"numeric\"\n length={AUTH_TOKEN_LENGTH}\n isPassword\n containerClassName=\"auth-code__container\"\n inputClassName={`auth-code__input${\n fieldValidationErrors.authenticationCode ? \" auth-code__input-error\" : \"\"\n }`}\n />\n {fieldValidationErrors.authenticationCode ||\n (errorIds?.length > 0 && (\n <div className=\"auth-code__error-container\">\n {!shouldHideIcon && (\n <div>\n <img\n alt=\"red-exclaimation-circle\"\n src=\"https://assets-resources.sheerid.com/common/images/2018/icons/red-exclaimation-circle.svg\"\n />\n </div>\n )}\n <div className=\"auth-code__error-text\">\n <FormattedHTMLMessage\n id=\"errorId.invalidAuthenticationLoopToken\"\n defaultMessage=\"The code provided is invalid\"\n />\n </div>\n </div>\n ))}\n </div>\n <div className=\"sid-complete-auth__manually-verify-button-continer\">\n <button\n type=\"button\"\n className=\"sid-btn sid-btn-light sid-complete-auth__manually-verify-button\"\n aria-label=\"submit\"\n onClick={() => {\n submitForm(\n manuallyVerifyViewModel(),\n verificationService,\n VerificationStepsEnum.completeAuthentication,\n );\n }}\n >\n <FormattedHTMLMessage\n id=\"step.completeAuthentication.manuallyVerifyButton\"\n defaultMessage=\"Manually verify\"\n />\n </button>\n </div>\n </div>\n </div>\n );\n};\n"],"x_google_ignoreList":[0],"mappings":";;;;;;;gCAEI,IAA0B;CAAC;CAAS;CAAW;AAAc,GAC7D,IAAW;CACb,OAAO;EACL,MAAM;EACN,WAAW;EACX,SAAS;CACX;CACA,cAAc;EACZ,MAAM;EACN,WAAW;EACX,SAAS;CACX;CACA,SAAS;EACP,MAAM;EACN,WAAW;EACX,SAAS;EACT,KAAK;EACL,KAAK;CACP;AACF,GACI,KAAA,GAAA,EAAA,YAAsB,SAAU,GAAM,GAAK;CAC7C,IAAI,IAAwB,EAAK,mBAC7B,IAAoB,MAA0B,KAAK,IAAI,iBAAiB,GACxE,IAAY,EAAK,WACjB,IAAiB,EAAK,WACtB,IAAY,MAAmB,KAAK,IAAI,KAAO,GAC/C,IAAqB,EAAK,oBAC1B,IAAW,EAAK,UAChB,IAAiB,EAAK,gBACtB,IAAkB,EAAK,YACvB,IAAa,MAAoB,KAAK,IAAI,KAAQ,GAClD,IAAc,EAAK,QACnB,IA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AAA,KAAC,GAAD;MACE,WAAW,MAAU;OAEnB,AADA,EAAsC,sBAAsB,CAAK,GACjE,EACE,sBACA,GACA,CACF;MACF;MACA,KAAK;MACL,mBAAkB;MAClB,QAAA;MACA,YAAA;MACA,oBAAmB;MACnB,gBAAgB,mBACd,EAAsB,qBAAqB,4BAA4B;KAE1E,CAAA,GACA,EAAsB,sBACpB,GAAU,SAAS,KAClB,iBAAA,GAAA,EAAA,MAAC,OAAD;MAAK,WAAU;gBAAf,CACG,CAAC,KACA,iBAAA,GAAA,EAAA,KAAC,OAAD,EAAA,UACE,iBAAA,GAAA,EAAA,KAAC,OAAD;OACE,KAAI;OACJ,KAAI;MACL,CAAA,EACE,CAAA,GAEP,iBAAA,GAAA,EAAA,KAAC,OAAD;OAAK,WAAU;iBACb,iBAAA,GAAA,EAAA,KAAC,GAAD;QACE,IAAG;QACH,gBAAe;OAChB,CAAA;MACE,CAAA,CACF;OAEN;;IACL,iBAAA,GAAA,EAAA,KAAC,OAAD;KAAK,WAAU;eACb,iBAAA,GAAA,EAAA,KAAC,UAAD;MACE,MAAK;MACL,WAAU;MACV,cAAW;MACX,eAAe;OACb,EACE,EAAwB,GACxB,GACA,EAAsB,sBACxB;MACF;gBAEA,iBAAA,GAAA,EAAA,KAAC,GAAD;OACE,IAAG;OACH,gBAAe;MAChB,CAAA;KACK,CAAA;IACL,CAAA;GACF;;CACF,CAAA;AAET"}
1
+ {"version":3,"file":"StepCompleteAuthentication-BJTAm52g.js","names":[],"sources":["../../../node_modules/react-auth-code-input/dist/index.modern.js","../../src/components/StepCompleteAuthentication/StepCompleteAuthenticationComponent.tsx"],"sourcesContent":["import React, { forwardRef, useRef, useImperativeHandle, useEffect } from 'react';\n\nvar allowedCharactersValues = ['alpha', 'numeric', 'alphanumeric'];\nvar propsMap = {\n alpha: {\n type: 'text',\n inputMode: 'text',\n pattern: '[a-zA-Z]{1}'\n },\n alphanumeric: {\n type: 'text',\n inputMode: 'text',\n pattern: '[a-zA-Z0-9]{1}'\n },\n numeric: {\n type: 'tel',\n inputMode: 'numeric',\n pattern: '[0-9]{1}',\n min: '0',\n max: '9'\n }\n};\nvar AuthCode = forwardRef(function (_ref, ref) {\n var _ref$allowedCharacter = _ref.allowedCharacters,\n allowedCharacters = _ref$allowedCharacter === void 0 ? 'alphanumeric' : _ref$allowedCharacter,\n ariaLabel = _ref.ariaLabel,\n _ref$autoFocus = _ref.autoFocus,\n autoFocus = _ref$autoFocus === void 0 ? true : _ref$autoFocus,\n containerClassName = _ref.containerClassName,\n disabled = _ref.disabled,\n inputClassName = _ref.inputClassName,\n _ref$isPassword = _ref.isPassword,\n isPassword = _ref$isPassword === void 0 ? false : _ref$isPassword,\n _ref$length = _ref.length,\n length = _ref$length === void 0 ? 6 : _ref$length,\n placeholder = _ref.placeholder,\n onChange = _ref.onChange;\n\n if (isNaN(length) || length < 1) {\n throw new Error('Length should be a number and greater than 0');\n }\n\n if (!allowedCharactersValues.some(function (value) {\n return value === allowedCharacters;\n })) {\n throw new Error('Invalid value for allowedCharacters. Use alpha, numeric, or alphanumeric');\n }\n\n var inputsRef = useRef([]);\n var inputProps = propsMap[allowedCharacters];\n useImperativeHandle(ref, function () {\n return {\n focus: function focus() {\n if (inputsRef.current) {\n inputsRef.current[0].focus();\n }\n },\n clear: function clear() {\n if (inputsRef.current) {\n for (var i = 0; i < inputsRef.current.length; i++) {\n inputsRef.current[i].value = '';\n }\n\n inputsRef.current[0].focus();\n }\n\n sendResult();\n }\n };\n });\n useEffect(function () {\n if (autoFocus) {\n inputsRef.current[0].focus();\n }\n }, []);\n\n var sendResult = function sendResult() {\n var res = inputsRef.current.map(function (input) {\n return input.value;\n }).join('');\n onChange && onChange(res);\n };\n\n var handleOnChange = function handleOnChange(e) {\n var _e$target = e.target,\n value = _e$target.value,\n nextElementSibling = _e$target.nextElementSibling;\n\n if (value.length > 1) {\n e.target.value = value.charAt(0);\n\n if (nextElementSibling !== null) {\n nextElementSibling.focus();\n }\n } else {\n if (value.match(inputProps.pattern)) {\n if (nextElementSibling !== null) {\n nextElementSibling.focus();\n }\n } else {\n e.target.value = '';\n }\n }\n\n sendResult();\n };\n\n var handleOnKeyDown = function handleOnKeyDown(e) {\n var key = e.key;\n var target = e.target;\n\n if (key === 'Backspace') {\n if (target.value === '') {\n if (target.previousElementSibling !== null) {\n var t = target.previousElementSibling;\n t.value = '';\n t.focus();\n e.preventDefault();\n }\n } else {\n target.value = '';\n }\n\n sendResult();\n }\n };\n\n var handleOnFocus = function handleOnFocus(e) {\n e.target.select();\n };\n\n var handleOnPaste = function handleOnPaste(e) {\n var pastedValue = e.clipboardData.getData('Text');\n var currentInput = 0;\n\n for (var i = 0; i < pastedValue.length; i++) {\n var pastedCharacter = pastedValue.charAt(i);\n var currentValue = inputsRef.current[currentInput].value;\n\n if (pastedCharacter.match(inputProps.pattern)) {\n if (!currentValue) {\n inputsRef.current[currentInput].value = pastedCharacter;\n\n if (inputsRef.current[currentInput].nextElementSibling !== null) {\n inputsRef.current[currentInput].nextElementSibling.focus();\n currentInput++;\n }\n }\n }\n }\n\n sendResult();\n e.preventDefault();\n };\n\n var inputs = [];\n\n var _loop = function _loop(i) {\n inputs.push(React.createElement(\"input\", Object.assign({\n key: i,\n onChange: handleOnChange,\n onKeyDown: handleOnKeyDown,\n onFocus: handleOnFocus,\n onPaste: handleOnPaste\n }, inputProps, {\n type: isPassword ? 'password' : inputProps.type,\n ref: function ref(el) {\n inputsRef.current[i] = el;\n },\n maxLength: 1,\n className: inputClassName,\n autoComplete: i === 0 ? 'one-time-code' : 'off',\n \"aria-label\": ariaLabel ? ariaLabel + \". Character \" + (i + 1) + \".\" : \"Character \" + (i + 1) + \".\",\n disabled: disabled,\n placeholder: placeholder\n })));\n };\n\n for (var i = 0; i < length; i++) {\n _loop(i);\n }\n\n return React.createElement(\"div\", {\n className: containerClassName\n }, inputs);\n});\n\nexport default AuthCode;\n//# sourceMappingURL=index.modern.js.map\n","import * as React from \"react\";\nimport { FormattedHTMLMessage } from \"react-intl\";\nimport AuthCode from \"react-auth-code-input\";\nimport produce from \"immer\";\n\nimport {\n type CompleteAuthenticationViewModel,\n type VerificationService,\n} from \"../../lib/types/types\";\nimport {\n submitForm,\n updateFieldValidationErrorsByFieldId,\n} from \"../../lib/utils/stepComponentHelpers/stepComponentHelpers\";\nimport { AUTH_TOKEN_LENGTH } from \"../../constants\";\nimport { VerificationStepsEnum } from \"../../lib/types/runtimeTypes\";\nimport { AnnouncingHeader } from \"../AnnouncingHeader/AnnouncingHeader\";\nimport { useFlag } from \"../FeatureFlags/hooks\";\n\ninterface StepCompleteAuthenticationProps {\n verificationService: VerificationService;\n}\n\nexport const StepCompleteAuthenticationComponent = ({\n verificationService,\n}: StepCompleteAuthenticationProps) => {\n const viewModel = verificationService.viewModel as CompleteAuthenticationViewModel;\n const { fieldValidationErrors, verificationResponse } = verificationService;\n const { errorIds } = verificationResponse;\n const shouldHideIcon = useFlag(\"hc-my-sheer-id-theme-builder\");\n\n const authInputRef = React.useRef(null);\n\n const updateCompleteAuthenticationViewmodel = (\n key: keyof CompleteAuthenticationViewModel,\n value: any,\n ) => {\n const nextState: CompleteAuthenticationViewModel = produce(\n viewModel,\n (draft: CompleteAuthenticationViewModel) => {\n (draft[key] as any) = value;\n },\n );\n verificationService.updateViewModel(nextState);\n };\n\n const manuallyVerifyViewModel = (): CompleteAuthenticationViewModel => {\n const nextState: CompleteAuthenticationViewModel = produce(\n viewModel,\n (draft: CompleteAuthenticationViewModel) => {\n draft.didManuallyVerify = true;\n delete draft.authenticationCode;\n },\n );\n verificationService.updateViewModel(nextState);\n\n return nextState;\n };\n\n React.useEffect(() => {\n if (viewModel.authenticationCode) {\n // reset local viewModel's authenticationCode to prevent form from submitting\n // prematurely when provided with an incorrect auth code.\n viewModel.authenticationCode = \"\";\n }\n }, []);\n\n React.useEffect(() => {\n if (viewModel.authenticationCode.length >= AUTH_TOKEN_LENGTH) {\n submitForm(viewModel, verificationService, VerificationStepsEnum.completeAuthentication);\n }\n }, [viewModel.authenticationCode]);\n\n return (\n <div\n id=\"sid-step-complete-authentication\"\n className=\"sid-step-complete-authentication-container sid-l-container\"\n >\n <div role=\"main\">\n <div className=\"sid-header\">\n <AnnouncingHeader align=\"center\">\n <FormattedHTMLMessage\n id=\"step.completeAuthentication.title\"\n defaultMessage=\"Verify with Remember Me\"\n />\n </AnnouncingHeader>\n <div className=\"sid-header__subtitle sid-l-horz-center\">\n <FormattedHTMLMessage\n id=\"step.completeAuthentication.subtitle\"\n defaultMessage=\"Enter the code sent to your email.\"\n />\n </div>\n </div>\n <div className=\"sid-l-space-top-md\" />\n <div className=\"auth-code\">\n <AuthCode\n onChange={(token) => {\n updateCompleteAuthenticationViewmodel(\"authenticationCode\", token);\n updateFieldValidationErrorsByFieldId(\n \"authenticationCode\",\n token,\n verificationService,\n );\n }}\n ref={authInputRef}\n allowedCharacters=\"numeric\"\n length={AUTH_TOKEN_LENGTH}\n isPassword\n containerClassName=\"auth-code__container\"\n inputClassName={`auth-code__input${\n fieldValidationErrors.authenticationCode ? \" auth-code__input-error\" : \"\"\n }`}\n />\n {fieldValidationErrors.authenticationCode ||\n (errorIds?.length > 0 && (\n <div className=\"auth-code__error-container\">\n {!shouldHideIcon && (\n <div>\n <img\n alt=\"red-exclaimation-circle\"\n src=\"https://assets-resources.sheerid.com/common/images/2018/icons/red-exclaimation-circle.svg\"\n />\n </div>\n )}\n <div className=\"auth-code__error-text\">\n <FormattedHTMLMessage\n id=\"errorId.invalidAuthenticationLoopToken\"\n defaultMessage=\"The code provided is invalid\"\n />\n </div>\n </div>\n ))}\n </div>\n <div className=\"sid-complete-auth__manually-verify-button-continer\">\n <button\n type=\"button\"\n className=\"sid-btn sid-btn-light sid-complete-auth__manually-verify-button\"\n aria-label=\"submit\"\n onClick={() => {\n submitForm(\n manuallyVerifyViewModel(),\n verificationService,\n VerificationStepsEnum.completeAuthentication,\n );\n }}\n >\n <FormattedHTMLMessage\n id=\"step.completeAuthentication.manuallyVerifyButton\"\n defa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IACL,iBAAA,GAAA,EAAA,KAAC,OAAD;KAAK,WAAU;eACb,iBAAA,GAAA,EAAA,KAAC,UAAD;MACE,MAAK;MACL,WAAU;MACV,cAAW;MACX,eAAe;OACb,EACE,EAAwB,GACxB,GACA,EAAsB,sBACxB;MACF;gBAEA,iBAAA,GAAA,EAAA,KAAC,GAAD;OACE,IAAG;OACH,gBAAe;MAChB,CAAA;KACK,CAAA;IACL,CAAA;GACF;;CACF,CAAA;AAET"}
@@ -1,16 +1,16 @@
1
1
 
2
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
3
+ * VERSION: 2.304.0
4
+ * BUILD_TIMESTAMP: 1792172949182
5
+ * BUILD_DATE: Fri Oct 16 2026 17:49:09 GMT+0000 (Coordinated Universal Time)
6
+ * BUILD_COMMIT: 14bb12a3aac5dfbe3f216ca64aa66bee70d284c3
7
7
  */
8
8
  import { c as e, kt as t } from "./options-DsRV5fwh.js";
9
9
  import { n, s as r, t as i } from "./jsx-runtime-DQO6A867.js";
10
10
  import { b as a } from "./runtimeTypes-B2AGNJMT.js";
11
- import { t as o } from "./hooks-CMAl6OEH.js";
11
+ import { t as o } from "./hooks-Bqhz6E9V.js";
12
12
  import { t as s } from "./AnnouncingHeader-zH7WLU2-.js";
13
- import { d as c, l } from "./stepComponentHelpers-D_F4GOcs.js";
13
+ import { d as c, l } from "./stepComponentHelpers-BElircEH.js";
14
14
  //#region ../node_modules/react-auth-code-input/dist/index.modern.js
15
15
  var u = /* @__PURE__ */ t(r()), d = [
16
16
  "alpha",
@@ -1 +1 @@
1
- {"version":3,"file":"StepCompleteAuthentication-DWg90te_.js","names":[],"sources":["../../../node_modules/react-auth-code-input/dist/index.modern.js","../../src/components/StepCompleteAuthentication/StepCompleteAuthenticationComponent.tsx"],"sourcesContent":["import React, { forwardRef, useRef, useImperativeHandle, useEffect } from 'react';\n\nvar allowedCharactersValues = ['alpha', 'numeric', 'alphanumeric'];\nvar propsMap = {\n alpha: {\n type: 'text',\n inputMode: 'text',\n pattern: '[a-zA-Z]{1}'\n },\n alphanumeric: {\n type: 'text',\n inputMode: 'text',\n pattern: '[a-zA-Z0-9]{1}'\n },\n numeric: {\n type: 'tel',\n inputMode: 'numeric',\n pattern: '[0-9]{1}',\n min: '0',\n max: '9'\n }\n};\nvar AuthCode = forwardRef(function (_ref, ref) {\n var _ref$allowedCharacter = _ref.allowedCharacters,\n allowedCharacters = _ref$allowedCharacter === void 0 ? 'alphanumeric' : _ref$allowedCharacter,\n ariaLabel = _ref.ariaLabel,\n _ref$autoFocus = _ref.autoFocus,\n autoFocus = _ref$autoFocus === void 0 ? true : _ref$autoFocus,\n containerClassName = _ref.containerClassName,\n disabled = _ref.disabled,\n inputClassName = _ref.inputClassName,\n _ref$isPassword = _ref.isPassword,\n isPassword = _ref$isPassword === void 0 ? false : _ref$isPassword,\n _ref$length = _ref.length,\n length = _ref$length === void 0 ? 6 : _ref$length,\n placeholder = _ref.placeholder,\n onChange = _ref.onChange;\n\n if (isNaN(length) || length < 1) {\n throw new Error('Length should be a number and greater than 0');\n }\n\n if (!allowedCharactersValues.some(function (value) {\n return value === allowedCharacters;\n })) {\n throw new Error('Invalid value for allowedCharacters. Use alpha, numeric, or alphanumeric');\n }\n\n var inputsRef = useRef([]);\n var inputProps = propsMap[allowedCharacters];\n useImperativeHandle(ref, function () {\n return {\n focus: function focus() {\n if (inputsRef.current) {\n inputsRef.current[0].focus();\n }\n },\n clear: function clear() {\n if (inputsRef.current) {\n for (var i = 0; i < inputsRef.current.length; i++) {\n inputsRef.current[i].value = '';\n }\n\n inputsRef.current[0].focus();\n }\n\n sendResult();\n }\n };\n });\n useEffect(function () {\n if (autoFocus) {\n inputsRef.current[0].focus();\n }\n }, []);\n\n var sendResult = function sendResult() {\n var res = inputsRef.current.map(function (input) {\n return input.value;\n }).join('');\n onChange && onChange(res);\n };\n\n var handleOnChange = function handleOnChange(e) {\n var _e$target = e.target,\n value = _e$target.value,\n nextElementSibling = _e$target.nextElementSibling;\n\n if (value.length > 1) {\n e.target.value = value.charAt(0);\n\n if (nextElementSibling !== null) {\n nextElementSibling.focus();\n }\n } else {\n if (value.match(inputProps.pattern)) {\n if (nextElementSibling !== null) {\n nextElementSibling.focus();\n }\n } else {\n e.target.value = '';\n }\n }\n\n sendResult();\n };\n\n var handleOnKeyDown = function handleOnKeyDown(e) {\n var key = e.key;\n var target = e.target;\n\n if (key === 'Backspace') {\n if (target.value === '') {\n if (target.previousElementSibling !== null) {\n var t = target.previousElementSibling;\n t.value = '';\n t.focus();\n e.preventDefault();\n }\n } else {\n target.value = '';\n }\n\n sendResult();\n }\n };\n\n var handleOnFocus = function handleOnFocus(e) {\n e.target.select();\n };\n\n var handleOnPaste = function handleOnPaste(e) {\n var pastedValue = e.clipboardData.getData('Text');\n var currentInput = 0;\n\n for (var i = 0; i < pastedValue.length; i++) {\n var pastedCharacter = pastedValue.charAt(i);\n var currentValue = inputsRef.current[currentInput].value;\n\n if (pastedCharacter.match(inputProps.pattern)) {\n if (!currentValue) {\n inputsRef.current[currentInput].value = pastedCharacter;\n\n if (inputsRef.current[currentInput].nextElementSibling !== null) {\n inputsRef.current[currentInput].nextElementSibling.focus();\n currentInput++;\n }\n }\n }\n }\n\n sendResult();\n e.preventDefault();\n };\n\n var inputs = [];\n\n var _loop = function _loop(i) {\n inputs.push(React.createElement(\"input\", Object.assign({\n key: i,\n onChange: handleOnChange,\n onKeyDown: handleOnKeyDown,\n onFocus: handleOnFocus,\n onPaste: handleOnPaste\n }, inputProps, {\n type: isPassword ? 'password' : inputProps.type,\n ref: function ref(el) {\n inputsRef.current[i] = el;\n },\n maxLength: 1,\n className: inputClassName,\n autoComplete: i === 0 ? 'one-time-code' : 'off',\n \"aria-label\": ariaLabel ? ariaLabel + \". Character \" + (i + 1) + \".\" : \"Character \" + (i + 1) + \".\",\n disabled: disabled,\n placeholder: placeholder\n })));\n };\n\n for (var i = 0; i < length; i++) {\n _loop(i);\n }\n\n return React.createElement(\"div\", {\n className: containerClassName\n }, inputs);\n});\n\nexport default AuthCode;\n//# sourceMappingURL=index.modern.js.map\n","import * as React from \"react\";\nimport { FormattedHTMLMessage } from \"react-intl\";\nimport AuthCode from \"react-auth-code-input\";\nimport produce from \"immer\";\n\nimport {\n type CompleteAuthenticationViewModel,\n type VerificationService,\n} from \"../../lib/types/types\";\nimport {\n submitForm,\n updateFieldValidationErrorsByFieldId,\n} from \"../../lib/utils/stepComponentHelpers/stepComponentHelpers\";\nimport { AUTH_TOKEN_LENGTH } from \"../../constants\";\nimport { VerificationStepsEnum } from \"../../lib/types/runtimeTypes\";\nimport { AnnouncingHeader } from \"../AnnouncingHeader/AnnouncingHeader\";\nimport { useFlag } from \"../FeatureFlags/hooks\";\n\ninterface StepCompleteAuthenticationProps {\n verificationService: VerificationService;\n}\n\nexport const StepCompleteAuthenticationComponent = ({\n verificationService,\n}: StepCompleteAuthenticationProps) => {\n const viewModel = verificationService.viewModel as CompleteAuthenticationViewModel;\n const { fieldValidationErrors, verificationResponse } = verificationService;\n const { errorIds } = verificationResponse;\n const shouldHideIcon = useFlag(\"hc-my-sheer-id-theme-builder\");\n\n const authInputRef = React.useRef(null);\n\n const updateCompleteAuthenticationViewmodel = (\n key: keyof CompleteAuthenticationViewModel,\n value: any,\n ) => {\n const nextState: CompleteAuthenticationViewModel = produce(\n viewModel,\n (draft: CompleteAuthenticationViewModel) => {\n (draft[key] as any) = value;\n },\n );\n verificationService.updateViewModel(nextState);\n };\n\n const manuallyVerifyViewModel = (): CompleteAuthenticationViewModel => {\n const nextState: CompleteAuthenticationViewModel = produce(\n viewModel,\n (draft: CompleteAuthenticationViewModel) => {\n draft.didManuallyVerify = true;\n delete draft.authenticationCode;\n },\n );\n verificationService.updateViewModel(nextState);\n\n return nextState;\n };\n\n React.useEffect(() => {\n if (viewModel.authenticationCode) {\n // reset local viewModel's authenticationCode to prevent form from submitting\n // prematurely when provided with an incorrect auth code.\n viewModel.authenticationCode = \"\";\n }\n }, []);\n\n React.useEffect(() => {\n if (viewModel.authenticationCode.length >= AUTH_TOKEN_LENGTH) {\n submitForm(viewModel, verificationService, VerificationStepsEnum.completeAuthentication);\n }\n }, [viewModel.authenticationCode]);\n\n return (\n <div\n id=\"sid-step-complete-authentication\"\n className=\"sid-step-complete-authentication-container sid-l-container\"\n >\n <div role=\"main\">\n <div className=\"sid-header\">\n <AnnouncingHeader align=\"center\">\n <FormattedHTMLMessage\n id=\"step.completeAuthentication.title\"\n defaultMessage=\"Verify with Remember Me\"\n />\n </AnnouncingHeader>\n <div className=\"sid-header__subtitle sid-l-horz-center\">\n <FormattedHTMLMessage\n id=\"step.completeAuthentication.subtitle\"\n defaultMessage=\"Enter the code sent to your email.\"\n />\n </div>\n </div>\n <div className=\"sid-l-space-top-md\" />\n <div className=\"auth-code\">\n <AuthCode\n onChange={(token) => {\n updateCompleteAuthenticationViewmodel(\"authenticationCode\", token);\n updateFieldValidationErrorsByFieldId(\n \"authenticationCode\",\n token,\n verificationService,\n );\n }}\n ref={authInputRef}\n allowedCharacters=\"numeric\"\n length={AUTH_TOKEN_LENGTH}\n isPassword\n containerClassName=\"auth-code__container\"\n inputClassName={`auth-code__input${\n fieldValidationErrors.authenticationCode ? \" auth-code__input-error\" : \"\"\n }`}\n />\n {fieldValidationErrors.authenticationCode ||\n (errorIds?.length > 0 && (\n <div className=\"auth-code__error-container\">\n {!shouldHideIcon && (\n <div>\n <img\n alt=\"red-exclaimation-circle\"\n src=\"https://assets-resources.sheerid.com/common/images/2018/icons/red-exclaimation-circle.svg\"\n />\n </div>\n )}\n <div className=\"auth-code__error-text\">\n <FormattedHTMLMessage\n id=\"errorId.invalidAuthenticationLoopToken\"\n defaultMessage=\"The code provided is invalid\"\n />\n </div>\n </div>\n ))}\n </div>\n <div className=\"sid-complete-auth__manually-verify-button-continer\">\n <button\n type=\"button\"\n className=\"sid-btn sid-btn-light sid-complete-auth__manually-verify-button\"\n aria-label=\"submit\"\n onClick={() => {\n submitForm(\n manuallyVerifyViewModel(),\n verificationService,\n VerificationStepsEnum.completeAuthentication,\n );\n }}\n >\n <FormattedHTMLMessage\n id=\"step.completeAuthentication.manuallyVerifyButton\"\n defaultMessage=\"Manually verify\"\n />\n </button>\n </div>\n </div>\n </div>\n );\n};\n"],"x_google_ignoreList":[0],"mappings":";;;;;;;gCAEI,IAA0B;CAAC;CAAS;CAAW;AAAc,GAC7D,IAAW;CACb,OAAO;EACL,MAAM;EACN,WAAW;EACX,SAAS;CACX;CACA,cAAc;EACZ,MAAM;EACN,WAAW;EACX,SAAS;CACX;CACA,SAAS;EACP,MAAM;EACN,WAAW;EACX,SAAS;EACT,KAAK;EACL,KAAK;CACP;AACF,GACI,KAAA,GAAA,EAAA,YAAsB,SAAU,GAAM,GAAK;CAC7C,IAAI,IAAwB,EAAK,mBAC7B,IAAoB,MAA0B,KAAK,IAAI,iBAAiB,GACxE,IAAY,EAAK,WACjB,IAAiB,EAAK,WACtB,IAAY,MAAmB,KAAK,IAAI,KAAO,GAC/C,IAAqB,EAAK,oBAC1B,IAAW,EAAK,UAChB,IAAiB,EAAK,gBACtB,IAAkB,EAAK,YACvB,IAAa,MAAoB,KAAK,IAAI,KAAQ,GAClD,IAAc,EAAK,QACnB,IAAS,MAAgB,KAAK,IAAI,IAAI,GACtC,IAAc,EAAK,aACnB,IAAW,EAAK;CAEpB,IAAI,MAAM,CAAM,KAAK,IAAS,GAC5B,MAAU,MAAM,8CAA8C;CAGhE,IAAI,CAAC,EAAwB,KAAK,SAAU,GAAO;EACjD,OAAO,MAAU;CACnB,CAAC,GACC,MAAU,MAAM,0EAA0E;CAG5F,IAAI,KAAA,GAAA,EAAA,QAAmB,CAAC,CAAC,GACrB,IAAa,EAAS;CAqB1B,CApBA,GAAA,EAAA,qBAAoB,GAAK,WAAY;EACnC,OAAO;GACL,OA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AAA,GAAA,EAAA,KAAC,OAAD;OACE,KAAI;OACJ,KAAI;MACL,CAAA,EACE,CAAA,GAEP,iBAAA,GAAA,EAAA,KAAC,OAAD;OAAK,WAAU;iBACb,iBAAA,GAAA,EAAA,KAAC,GAAD;QACE,IAAG;QACH,gBAAe;OAChB,CAAA;MACE,CAAA,CACF;OAEN;;IACL,iBAAA,GAAA,EAAA,KAAC,OAAD;KAAK,WAAU;eACb,iBAAA,GAAA,EAAA,KAAC,UAAD;MACE,MAAK;MACL,WAAU;MACV,cAAW;MACX,eAAe;OACb,EACE,EAAwB,GACxB,GACA,EAAsB,sBACxB;MACF;gBAEA,iBAAA,GAAA,EAAA,KAAC,GAAD;OACE,IAAG;OACH,gBAAe;MAChB,CAAA;KACK,CAAA;IACL,CAAA;GACF;;CACF,CAAA;AAET"}
1
+ {"version":3,"file":"StepCompleteAuthentication-BUA2xrtE.js","names":[],"sources":["../../../node_modules/react-auth-code-input/dist/index.modern.js","../../src/components/StepCompleteAuthentication/StepCompleteAuthenticationComponent.tsx"],"sourcesContent":["import React, { forwardRef, useRef, useImperativeHandle, useEffect } from 'react';\n\nvar allowedCharactersValues = ['alpha', 'numeric', 'alphanumeric'];\nvar propsMap = {\n alpha: {\n type: 'text',\n inputMode: 'text',\n pattern: '[a-zA-Z]{1}'\n },\n alphanumeric: {\n type: 'text',\n inputMode: 'text',\n pattern: '[a-zA-Z0-9]{1}'\n },\n numeric: {\n type: 'tel',\n inputMode: 'numeric',\n pattern: '[0-9]{1}',\n min: '0',\n max: '9'\n }\n};\nvar AuthCode = forwardRef(function (_ref, ref) {\n var _ref$allowedCharacter = _ref.allowedCharacters,\n allowedCharacters = _ref$allowedCharacter === void 0 ? 'alphanumeric' : _ref$allowedCharacter,\n ariaLabel = _ref.ariaLabel,\n _ref$autoFocus = _ref.autoFocus,\n autoFocus = _ref$autoFocus === void 0 ? true : _ref$autoFocus,\n containerClassName = _ref.containerClassName,\n disabled = _ref.disabled,\n inputClassName = _ref.inputClassName,\n _ref$isPassword = _ref.isPassword,\n isPassword = _ref$isPassword === void 0 ? false : _ref$isPassword,\n _ref$length = _ref.length,\n length = _ref$length === void 0 ? 6 : _ref$length,\n placeholder = _ref.placeholder,\n onChange = _ref.onChange;\n\n if (isNaN(length) || length < 1) {\n throw new Error('Length should be a number and greater than 0');\n }\n\n if (!allowedCharactersValues.some(function (value) {\n return value === allowedCharacters;\n })) {\n throw new Error('Invalid value for allowedCharacters. Use alpha, numeric, or alphanumeric');\n }\n\n var inputsRef = useRef([]);\n var inputProps = propsMap[allowedCharacters];\n useImperativeHandle(ref, function () {\n return {\n focus: function focus() {\n if (inputsRef.current) {\n inputsRef.current[0].focus();\n }\n },\n clear: function clear() {\n if (inputsRef.current) {\n for (var i = 0; i < inputsRef.current.length; i++) {\n inputsRef.current[i].value = '';\n }\n\n inputsRef.current[0].focus();\n }\n\n sendResult();\n }\n };\n });\n useEffect(function () {\n if (autoFocus) {\n inputsRef.current[0].focus();\n }\n }, []);\n\n var sendResult = function sendResult() {\n var res = inputsRef.current.map(function (input) {\n return input.value;\n }).join('');\n onChange && onChange(res);\n };\n\n var handleOnChange = function handleOnChange(e) {\n var _e$target = e.target,\n value = _e$target.value,\n nextElementSibling = _e$target.nextElementSibling;\n\n if (value.length > 1) {\n e.target.value = value.charAt(0);\n\n if (nextElementSibling !== null) {\n nextElementSibling.focus();\n }\n } else {\n if (value.match(inputProps.pattern)) {\n if (nextElementSibling !== null) {\n nextElementSibling.focus();\n }\n } else {\n e.target.value = '';\n }\n }\n\n sendResult();\n };\n\n var handleOnKeyDown = function handleOnKeyDown(e) {\n var key = e.key;\n var target = e.target;\n\n if (key === 'Backspace') {\n if (target.value === '') {\n if (target.previousElementSibling !== null) {\n var t = target.previousElementSibling;\n t.value = '';\n t.focus();\n e.preventDefault();\n }\n } else {\n target.value = '';\n }\n\n sendResult();\n }\n };\n\n var handleOnFocus = function handleOnFocus(e) {\n e.target.select();\n };\n\n var handleOnPaste = function handleOnPaste(e) {\n var pastedValue = e.clipboardData.getData('Text');\n var currentInput = 0;\n\n for (var i = 0; i < pastedValue.length; i++) {\n var pastedCharacter = pastedValue.charAt(i);\n var currentValue = inputsRef.current[currentInput].value;\n\n if (pastedCharacter.match(inputProps.pattern)) {\n if (!currentValue) {\n inputsRef.current[currentInput].value = pastedCharacter;\n\n if (inputsRef.current[currentInput].nextElementSibling !== null) {\n inputsRef.current[currentInput].nextElementSibling.focus();\n currentInput++;\n }\n }\n }\n }\n\n sendResult();\n e.preventDefault();\n };\n\n var inputs = [];\n\n var _loop = function _loop(i) {\n inputs.push(React.createElement(\"input\", Object.assign({\n key: i,\n onChange: handleOnChange,\n onKeyDown: handleOnKeyDown,\n onFocus: handleOnFocus,\n onPaste: handleOnPaste\n }, inputProps, {\n type: isPassword ? 'password' : inputProps.type,\n ref: function ref(el) {\n inputsRef.current[i] = el;\n },\n maxLength: 1,\n className: inputClassName,\n autoComplete: i === 0 ? 'one-time-code' : 'off',\n \"aria-label\": ariaLabel ? ariaLabel + \". Character \" + (i + 1) + \".\" : \"Character \" + (i + 1) + \".\",\n disabled: disabled,\n placeholder: placeholder\n })));\n };\n\n for (var i = 0; i < length; i++) {\n _loop(i);\n }\n\n return React.createElement(\"div\", {\n className: containerClassName\n }, inputs);\n});\n\nexport default AuthCode;\n//# sourceMappingURL=index.modern.js.map\n","import * as React from \"react\";\nimport { FormattedHTMLMessage } from \"react-intl\";\nimport AuthCode from \"react-auth-code-input\";\nimport produce from \"immer\";\n\nimport {\n type CompleteAuthenticationViewModel,\n type VerificationService,\n} from \"../../lib/types/types\";\nimport {\n submitForm,\n updateFieldValidationErrorsByFieldId,\n} from \"../../lib/utils/stepComponentHelpers/stepComponentHelpers\";\nimport { AUTH_TOKEN_LENGTH } from \"../../constants\";\nimport { VerificationStepsEnum } from \"../../lib/types/runtimeTypes\";\nimport { AnnouncingHeader } from \"../AnnouncingHeader/AnnouncingHeader\";\nimport { useFlag } from \"../FeatureFlags/hooks\";\n\ninterface StepCompleteAuthenticationProps {\n verificationService: VerificationService;\n}\n\nexport const StepCompleteAuthenticationComponent = ({\n verificationService,\n}: StepCompleteAuthenticationProps) => {\n const viewModel = verificationService.viewModel as CompleteAuthenticationViewModel;\n const { fieldValidationErrors, verificationResponse } = verificationService;\n const { errorIds } = verificationResponse;\n const shouldHideIcon = useFlag(\"hc-my-sheer-id-theme-builder\");\n\n const authInputRef = React.useRef(null);\n\n const updateCompleteAuthenticationViewmodel = (\n key: keyof CompleteAuthenticationViewModel,\n value: any,\n ) => {\n const nextState: CompleteAuthenticationViewModel = produce(\n viewModel,\n (draft: CompleteAuthenticationViewModel) => {\n (draft[key] as any) = value;\n },\n );\n verificationService.updateViewModel(nextState);\n };\n\n const manuallyVerifyViewModel = (): CompleteAuthenticationViewModel => {\n const nextState: CompleteAuthenticationViewModel = produce(\n viewModel,\n (draft: CompleteAuthenticationViewModel) => {\n draft.didManuallyVerify = true;\n delete draft.authenticationCode;\n },\n );\n verificationService.updateViewModel(nextState);\n\n return nextState;\n };\n\n React.useEffect(() => {\n if (viewModel.authenticationCode) {\n // reset local viewModel's authenticationCode to prevent form from submitting\n // prematurely when provided with an incorrect auth code.\n viewModel.authenticationCode = \"\";\n }\n }, []);\n\n React.useEffect(() => {\n if (viewModel.authenticationCode.length >= AUTH_TOKEN_LENGTH) {\n submitForm(viewModel, verificationService, VerificationStepsEnum.completeAuthentication);\n }\n }, [viewModel.authenticationCode]);\n\n return (\n <div\n id=\"sid-step-complete-authentication\"\n className=\"sid-step-complete-authentication-container sid-l-container\"\n >\n <div role=\"main\">\n <div className=\"sid-header\">\n <AnnouncingHeader align=\"center\">\n <FormattedHTMLMessage\n id=\"step.completeAuthentication.title\"\n defaultMessage=\"Verify with Remember Me\"\n />\n </AnnouncingHeader>\n <div className=\"sid-header__subtitle sid-l-horz-center\">\n <FormattedHTMLMessage\n id=\"step.completeAuthentication.subtitle\"\n defaultMessage=\"Enter the code sent to your email.\"\n />\n </div>\n </div>\n <div className=\"sid-l-space-top-md\" />\n <div className=\"auth-code\">\n <AuthCode\n onChange={(token) => {\n updateCompleteAuthenticationViewmodel(\"authenticationCode\", token);\n updateFieldValidationErrorsByFieldId(\n \"authenticationCode\",\n token,\n verificationService,\n );\n }}\n ref={authInputRef}\n allowedCharacters=\"numeric\"\n length={AUTH_TOKEN_LENGTH}\n isPassword\n containerClassName=\"auth-code__container\"\n inputClassName={`auth-code__input${\n fieldValidationErrors.authenticationCode ? \" auth-code__input-error\" : \"\"\n }`}\n />\n {fieldValidationErrors.authenticationCode ||\n (errorIds?.length > 0 && (\n <div className=\"auth-code__error-container\">\n {!shouldHideIcon && (\n <div>\n <img\n alt=\"red-exclaimation-circle\"\n src=\"https://assets-resources.sheerid.com/common/images/2018/icons/red-exclaimation-circle.svg\"\n />\n </div>\n )}\n <div className=\"auth-code__error-text\">\n <FormattedHTMLMessage\n id=\"errorId.invalidAuthenticationLoopToken\"\n defaultMessage=\"The code provided is invalid\"\n />\n </div>\n </div>\n ))}\n </div>\n <div className=\"sid-complete-auth__manually-verify-button-continer\">\n <button\n type=\"button\"\n className=\"sid-btn sid-btn-light sid-complete-auth__manually-verify-button\"\n aria-label=\"submit\"\n onClick={() => {\n submitForm(\n manuallyVerifyViewModel(),\n verificationService,\n VerificationStepsEnum.completeAuthentication,\n );\n }}\n >\n <FormattedHTMLMessage\n id=\"step.completeAuthentication.manuallyVerifyButton\"\n defaultMessage=\"Manually verify\"\n />\n </button>\n </div>\n </div>\n </div>\n );\n};\n"],"x_google_ignoreList":[0],"mappings":";;;;;;;gCAEI,IAA0B;CAAC;CAAS;CAAW;AAAc,GAC7D,IAAW;CACb,OAAO;EACL,MAAM;EACN,WAAW;EACX,SAAS;CACX;CACA,cAAc;EACZ,MAAM;EACN,WAAW;EACX,SAAS;CACX;CACA,SAAS;EACP,MAAM;EACN,WAAW;EACX,SAAS;EACT,KAAK;EACL,KAAK;CACP;AACF,GACI,KAAA,GAAA,EAAA,YAAsB,SAAU,GAAM,GAAK;CAC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KACe,CAAA,GAClB,iBAAA,GAAA,EAAA,KAAC,OAAD;MAAK,WAAU;gBACb,iBAAA,GAAA,EAAA,KAAC,GAAD;OACE,IAAG;OACH,gBAAe;MAChB,CAAA;KACE,CAAA,CACF;;IACL,iBAAA,GAAA,EAAA,KAAC,OAAD,EAAK,WAAU,qBAAsB,CAAA;IACrC,iBAAA,GAAA,EAAA,MAAC,OAAD;KAAK,WAAU;eAAf,CACE,iBAAA,GAAA,EAAA,KAAC,GAAD;MACE,WAAW,MAAU;OAEnB,AADA,EAAsC,sBAAsB,CAAK,GACjE,EACE,sBACA,GACA,CACF;MACF;MACA,KAAK;MACL,mBAAkB;MAClB,QAAA;MACA,YAAA;MACA,oBAAmB;MACnB,gBAAgB,mBACd,EAAsB,qBAAqB,4BAA4B;KAE1E,CAAA,GACA,EAAsB,sBACpB,GAAU,SAAS,KAClB,iBAAA,GAAA,EAAA,MAAC,OAAD;MAAK,WAAU;gBAAf,CACG,CAAC,KACA,iBAAA,GAAA,EAAA,KAAC,OAAD,EAAA,UACE,iBAAA,GAAA,EAAA,KAAC,OAAD;OACE,KAAI;OACJ,KAAI;MACL,CAAA,EACE,CAAA,GAEP,iBAAA,GAAA,EAAA,KAAC,OAAD;OAAK,WAAU;iBACb,iBAAA,GAAA,EAAA,KAAC,GAAD;QACE,IAAG;QACH,gBAAe;OAChB,CAAA;MACE,CAAA,CACF;OAEN;;IACL,iBAAA,GAAA,EAAA,KAAC,OAAD;KAAK,WAAU;eACb,iBAAA,GAAA,EAAA,KAAC,UAAD;MACE,MAAK;MACL,WAAU;MACV,cAAW;MACX,eAAe;OACb,EACE,EAAwB,GACxB,GACA,EAAsB,sBACxB;MACF;gBAEA,iBAAA,GAAA,EAAA,KAAC,GAAD;OACE,IAAG;OACH,gBAAe;MAChB,CAAA;KACK,CAAA;IACL,CAAA;GACF;;CACF,CAAA;AAET"}
@@ -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.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
7
+ * VERSION: 2.304.0
8
+ * BUILD_TIMESTAMP: 1792172954317
9
+ * BUILD_DATE: Fri Oct 16 2026 17:49:14 GMT+0000 (Coordinated Universal Time)
10
+ * BUILD_COMMIT: 14bb12a3aac5dfbe3f216ca64aa66bee70d284c3
11
11
  */
12
12
  import { l as e } from "./runtimeTypes-B2AGNJMT.js";
13
- import { p as t } from "./programThemeGetters-DJcD6MLy.js";
13
+ import { p as t } from "./programThemeGetters-DTXDRpA2.js";
14
14
  import { n, t as r } from "./jsx-runtime-DtApx7WX.js";
15
- import { t as i } from "./LogoComponent-BhyH_xRq.js";
15
+ import { t as i } from "./LogoComponent-CcqFEsge.js";
16
16
  import { t as a } from "./CopyToClipboardComponent-Dm3-3x4b.js";
17
17
  //#region src/components/StepConsolation/StepConsolationComponent.tsx
18
18
  var o = r(), s = ({ verificationService: r }) => {
@@ -1 +1 @@
1
- {"version":3,"file":"StepConsolation-DPrOL4xP.js","names":[],"sources":["../../src/components/StepConsolation/StepConsolationComponent.tsx"],"sourcesContent":["import { FormattedHTMLMessage } from \"react-intl\";\n\nimport { type VerificationService, type ConsolationResponse } from \"../../lib/types/types\";\nimport { LogoComponent } from \"../LogoComponent/LogoComponent\";\nimport { CopyToClipboard } from \"../CopyToClipboard/CopyToClipboardComponent\";\nimport { RewardDisplayEnum } from \"../../lib/types/runtimeTypes\";\nimport { getBarcodeUrl } from \"../../lib/ServerApi/ApiUrls\";\n\ninterface StepConsolationProps {\n verificationService: VerificationService;\n}\n\nconst StepConsolation = ({ verificationService }: StepConsolationProps) => {\n const consolationRewardCode =\n (verificationService.verificationResponse as ConsolationResponse).consolationRewardCode ||\n \"${consolationRewardCode}\"; // eslint-disable-line no-template-curly-in-string\n\n const noCodeType = verificationService.programTheme.config.offerType === \"noCode\";\n const { verificationId } = verificationService.verificationResponse;\n\n const { rewardDisplay } = verificationService.programTheme.config;\n const showReward = !noCodeType && !!rewardDisplay.length;\n\n return (\n <div id=\"sid-step-consolation\" className=\"sid-l-container\">\n <div role=\"main\">\n <div className=\"sid-header sid-l-horz-center sid-l-space-top-md\">\n <div className=\"sid-l-horz-center\">\n <LogoComponent verificationService={verificationService} />\n </div>\n\n <div\n className=\"sid-header__title sid-l-horz-center sid-l-space-top-md\"\n id=\"consolation-status\"\n role=\"alertdialog\"\n >\n <FormattedHTMLMessage\n id=\"step.consolation.title\"\n defaultMessage=\"Claim your offer\"\n tagName=\"h1\"\n />\n </div>\n\n <div className=\"sid-l-horz-center\">\n <FormattedHTMLMessage id=\"companyName\" defaultMessage=\"{Company}\">\n {(companyName) => (\n <FormattedHTMLMessage\n id=\"step.consolation.subtitle\"\n defaultMessage=\"Although we couldn't verify you, {companyName} is providing you this code. It is unique to you and can be only used once.\"\n values={{ companyName }}\n />\n )}\n </FormattedHTMLMessage>\n </div>\n </div>\n\n {showReward && (\n <div className=\"sid-l-horz-center sid-reward-container sid-l-space-top-md\">\n {rewardDisplay.map((displayType) => {\n if (displayType !== RewardDisplayEnum.TEXT)\n return (\n <img\n key={displayType}\n className=\"sid-l-space-top-md sid-barcode\"\n alt={consolationRewardCode}\n src={getBarcodeUrl(verificationId, \"consolationRewardCode\", displayType)}\n />\n );\n return (\n <>\n <div\n className=\"sid-reward-code sid-l-space-top-lg sid-h-jumbo-text sid-l-horz-center\"\n role=\"region\"\n >\n {consolationRewardCode}\n </div>\n <CopyToClipboard\n className=\"sid-l-space-top-md sid-h-bold-text sid-l-horz-center\"\n textToCopy={consolationRewardCode}\n notificationText={<FormattedHTMLMessage id=\"copied\" defaultMessage=\"Copied\" />}\n >\n <FormattedHTMLMessage\n id=\"step.success.copyCouponCode\"\n defaultMessage=\"Copy Coupon code\"\n />\n </CopyToClipboard>\n </>\n );\n })}\n </div>\n )}\n\n <div className=\"sid-footer sid-l-horz-center sid-l-space-top-lg\">\n <FormattedHTMLMessage\n id=\"rewardCodeEmailNotification\"\n defaultMessage=\"We have emailed you a copy so you can use your new code now or later. Look for the email from verify@sheerid.com.\"\n />\n </div>\n </div>\n\n <div\n className=\"sid-footer sid-l-horz-center sid-l-space-top-lg sid-h-small-text\"\n role=\"contentinfo\"\n >\n <FormattedHTMLMessage id=\"companyName\" defaultMessage=\"{Company}\">\n {(companyName) => (\n <FormattedHTMLMessage\n id=\"step.consolation.verificationOnly\"\n defaultMessage=\"Please direct any and all questions about this offer to {companyName}.\"\n values={{ companyName }}\n />\n )}\n </FormattedHTMLMessage>\n </div>\n </div>\n );\n};\n\nexport const StepConsolationComponent = StepConsolation;\n"],"mappings":";;;;;;aAsHa,KA1GY,EAAE,6BAAgD;CACzE,IAAM,IACH,EAAoB,qBAA6C,yBAClE,4BAEI,IAAa,EAAoB,aAAa,OAAO,cAAc,UACnE,EAAE,sBAAmB,EAAoB,sBAEzC,EAAE,qBAAkB,EAAoB,aAAa,QACrD,IAAa,CAAC,KAAc,CAAC,CAAC,EAAc;CAElD,OACE,iBAAA,GAAA,EAAA,MAAC,OAAD;EAAK,IAAG;EAAuB,WAAU;YAAzC,CACE,iBAAA,GAAA,EAAA,MAAC,OAAD;GAAK,MAAK;aAAV;IACE,iBAAA,GAAA,EAAA,MAAC,OAAD;KAAK,WAAU;eAAf;MACE,iBAAA,GAAA,EAAA,KAAC,OAAD;OAAK,WAAU;iBACb,iBAAA,GAAA,EAAA,KAAC,GAAD,EAAoC,uBAAsB,CAAA;MACvD,CAAA;MAEL,iBAAA,GAAA,EAAA,KAAC,OAAD;OACE,WAAU;OACV,IAAG;OACH,MAAK;iBAEL,iBAAA,GAAA,EAAA,KAAC,GAAD;QACE,IAAG;QACH,gBAAe;QACf,SAAQ;OACT,CAAA;MACE,CAAA;MAEL,iBAAA,GAAA,EAAA,KAAC,OAAD;OAAK,WAAU;i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FGTd.js","names":[],"sources":["../../src/components/StepConsolation/StepConsolationComponent.tsx"],"sourcesContent":["import { FormattedHTMLMessage } from \"react-intl\";\n\nimport { type VerificationService, type ConsolationResponse } from \"../../lib/types/types\";\nimport { LogoComponent } from \"../LogoComponent/LogoComponent\";\nimport { CopyToClipboard } from \"../CopyToClipboard/CopyToClipboardComponent\";\nimport { RewardDisplayEnum } from \"../../lib/types/runtimeTypes\";\nimport { getBarcodeUrl } from \"../../lib/ServerApi/ApiUrls\";\n\ninterface StepConsolationProps {\n verificationService: VerificationService;\n}\n\nconst StepConsolation = ({ verificationService }: StepConsolationProps) => {\n const consolationRewardCode =\n (verificationService.verificationResponse as ConsolationResponse).consolationRewardCode ||\n \"${consolationRewardCode}\"; // eslint-disable-line no-template-curly-in-string\n\n const noCodeType = verificationService.programTheme.config.offerType === \"noCode\";\n const { verificationId } = verificationService.verificationResponse;\n\n const { rewardDisplay } = verificationService.programTheme.config;\n const showReward = !noCodeType && !!rewardDisplay.length;\n\n return (\n <div id=\"sid-step-consolation\" className=\"sid-l-container\">\n <div role=\"main\">\n <div className=\"sid-header sid-l-horz-center sid-l-space-top-md\">\n <div className=\"sid-l-horz-center\">\n <LogoComponent verificationService={verificationService} />\n </div>\n\n <div\n className=\"sid-header__title sid-l-horz-center sid-l-space-top-md\"\n id=\"consolation-status\"\n role=\"alertdialog\"\n >\n <FormattedHTMLMessage\n id=\"step.consolation.title\"\n defaultMessage=\"Claim your offer\"\n tagName=\"h1\"\n />\n </div>\n\n <div className=\"sid-l-horz-center\">\n <FormattedHTMLMessage id=\"companyName\" defaultMessage=\"{Company}\">\n {(companyName) => (\n <FormattedHTMLMessage\n id=\"step.consolation.subtitle\"\n defaultMessage=\"Although we couldn't verify you, {companyName} is providing you this code. It is unique to you and can be only used once.\"\n values={{ companyName }}\n />\n )}\n </FormattedHTMLMessage>\n </div>\n </div>\n\n {showReward && (\n <div className=\"sid-l-horz-center sid-reward-container sid-l-space-top-md\">\n {rewardDisplay.map((displayType) => {\n if (displayType !== RewardDisplayEnum.TEXT)\n return (\n <img\n key={displayType}\n className=\"sid-l-space-top-md sid-barcode\"\n alt={consolationRewardCode}\n src={getBarcodeUrl(verificationId, \"consolationRewardCode\", displayType)}\n />\n );\n return (\n <>\n <div\n className=\"sid-reward-code sid-l-space-top-lg sid-h-jumbo-text sid-l-horz-center\"\n role=\"region\"\n >\n {consolationRewardCode}\n </div>\n <CopyToClipboard\n className=\"sid-l-space-top-md sid-h-bold-text sid-l-horz-center\"\n textToCopy={consolationRewardCode}\n notificationText={<FormattedHTMLMessage id=\"copied\" defaultMessage=\"Copied\" />}\n >\n <FormattedHTMLMessage\n id=\"step.success.copyCouponCode\"\n defaultMessage=\"Copy Coupon code\"\n />\n </CopyToClipboard>\n </>\n );\n })}\n </div>\n )}\n\n <div className=\"sid-footer sid-l-horz-center sid-l-space-top-lg\">\n <FormattedHTMLMessage\n id=\"rewardCodeEmailNotification\"\n defaultMessage=\"We have emailed you a copy so you can use your new code now or later. Look for the email from verify@sheerid.com.\"\n />\n </div>\n </div>\n\n <div\n className=\"sid-footer sid-l-horz-center sid-l-space-top-lg sid-h-small-text\"\n role=\"contentinfo\"\n >\n <FormattedHTMLMessage id=\"companyName\" defaultMessage=\"{Company}\">\n {(companyName) => (\n <FormattedHTMLMessage\n id=\"step.consolation.verificationOnly\"\n defaultMessage=\"Please direct any and all questions about this offer to {companyName}.\"\n values={{ companyName }}\n />\n )}\n </FormattedHTMLMessage>\n </div>\n </div>\n );\n};\n\nexport const StepConsolationComponent = StepConsolation;\n"],"mappings":";;;;;;aAsHa,KA1GY,EAAE,6BAAgD;CACzE,IAAM,IACH,EAAoB,qBAA6C,yBAClE,4BAEI,IAAa,EAAoB,aAAa,OAAO,cAAc,UACnE,EAAE,sBAAmB,EAAoB,sBAEzC,EAAE,qBAAkB,EAAoB,aAAa,QACrD,IAAa,CAAC,KAAc,CAAC,CAAC,EAAc;CAElD,OACE,iBAAA,GAAA,EAAA,MAAC,OAAD;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AyB,CAAW;KACxE,GAJM,CAIN,CAsBN;IACE,CAAA;IAGP,iBAAA,GAAA,EAAA,KAAC,OAAD;KAAK,WAAU;eACb,iBAAA,GAAA,EAAA,KAAC,GAAD;MACE,IAAG;MACH,gBAAe;KAChB,CAAA;IACE,CAAA;GACF;MAEL,iBAAA,GAAA,EAAA,KAAC,OAAD;GACE,WAAU;GACV,MAAK;aAEL,iBAAA,GAAA,EAAA,KAAC,GAAD;IAAsB,IAAG;IAAc,gBAAe;eAClD,MACA,iBAAA,GAAA,EAAA,KAAC,GAAD;KACE,IAAG;KACH,gBAAe;KACf,QAAQ,EAAE,eAAY;IACvB,CAAA;GAEiB,CAAA;EACnB,CAAA,CACF;;AAET"}
@@ -1,14 +1,14 @@
1
1
 
2
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
3
+ * VERSION: 2.304.0
4
+ * BUILD_TIMESTAMP: 1792172949182
5
+ * BUILD_DATE: Fri Oct 16 2026 17:49:09 GMT+0000 (Coordinated Universal Time)
6
+ * BUILD_COMMIT: 14bb12a3aac5dfbe3f216ca64aa66bee70d284c3
7
7
  */
8
8
  import { n as e, t } from "./jsx-runtime-DQO6A867.js";
9
9
  import { l as n } from "./runtimeTypes-B2AGNJMT.js";
10
- import { p as r } from "./programThemeGetters-DFcbGSAA.js";
11
- import { t as i } from "./LogoComponent-DStOPcJ4.js";
10
+ import { p as r } from "./programThemeGetters-BD2PXz0k.js";
11
+ import { t as i } from "./LogoComponent-B9xpaOmb.js";
12
12
  import { t as a } from "./CopyToClipboardComponent-BdrpxpHJ.js";
13
13
  //#region src/components/StepConsolation/StepConsolationComponent.tsx
14
14
  var o = t(), s = ({ verificationService: t }) => {
@@ -1 +1 @@
1
- {"version":3,"file":"StepConsolation-D_32ygMO.js","names":[],"sources":["../../src/components/StepConsolation/StepConsolationComponent.tsx"],"sourcesContent":["import { FormattedHTMLMessage } from \"react-intl\";\n\nimport { type VerificationService, type ConsolationResponse } from \"../../lib/types/types\";\nimport { LogoComponent } from \"../LogoComponent/LogoComponent\";\nimport { CopyToClipboard } from \"../CopyToClipboard/CopyToClipboardComponent\";\nimport { RewardDisplayEnum } from \"../../lib/types/runtimeTypes\";\nimport { getBarcodeUrl } from \"../../lib/ServerApi/ApiUrls\";\n\ninterface StepConsolationProps {\n verificationService: VerificationService;\n}\n\nconst StepConsolation = ({ verificationService }: StepConsolationProps) => {\n const consolationRewardCode =\n (verificationService.verificationResponse as ConsolationResponse).consolationRewardCode ||\n \"${consolationRewardCode}\"; // eslint-disable-line no-template-curly-in-string\n\n const noCodeType = verificationService.programTheme.config.offerType === \"noCode\";\n const { verificationId } = verificationService.verificationResponse;\n\n const { rewardDisplay } = verificationService.programTheme.config;\n const showReward = !noCodeType && !!rewardDisplay.length;\n\n return (\n <div id=\"sid-step-consolation\" className=\"sid-l-container\">\n <div role=\"main\">\n <div className=\"sid-header sid-l-horz-center sid-l-space-top-md\">\n <div className=\"sid-l-horz-center\">\n <LogoComponent verificationService={verificationService} />\n </div>\n\n <div\n className=\"sid-header__title sid-l-horz-center sid-l-space-top-md\"\n id=\"consolation-status\"\n role=\"alertdialog\"\n >\n <FormattedHTMLMessage\n id=\"step.consolation.title\"\n defaultMessage=\"Claim your offer\"\n tagName=\"h1\"\n />\n </div>\n\n <div className=\"sid-l-horz-center\">\n <FormattedHTMLMessage id=\"companyName\" defaultMessage=\"{Company}\">\n {(companyName) => (\n <FormattedHTMLMessage\n id=\"step.consolation.subtitle\"\n defaultMessage=\"Although we couldn't verify you, {companyName} is providing you this code. It is unique to you and can be only used once.\"\n values={{ companyName }}\n />\n )}\n </FormattedHTMLMessage>\n </div>\n </div>\n\n {showReward && (\n <div className=\"sid-l-horz-center sid-reward-container sid-l-space-top-md\">\n {rewardDisplay.map((displayType) => {\n if (displayType !== RewardDisplayEnum.TEXT)\n return (\n <img\n key={displayType}\n className=\"sid-l-space-top-md sid-barcode\"\n alt={consolationRewardCode}\n src={getBarcodeUrl(verificationId, \"consolationRewardCode\", displayType)}\n />\n );\n return (\n <>\n <div\n className=\"sid-reward-code sid-l-space-top-lg sid-h-jumbo-text sid-l-horz-center\"\n role=\"region\"\n >\n {consolationRewardCode}\n </div>\n <CopyToClipboard\n className=\"sid-l-space-top-md sid-h-bold-text sid-l-horz-center\"\n textToCopy={consolationRewardCode}\n notificationText={<FormattedHTMLMessage id=\"copied\" defaultMessage=\"Copied\" />}\n >\n <FormattedHTMLMessage\n id=\"step.success.copyCouponCode\"\n defaultMessage=\"Copy Coupon code\"\n />\n </CopyToClipboard>\n </>\n );\n })}\n </div>\n )}\n\n <div className=\"sid-footer sid-l-horz-center sid-l-space-top-lg\">\n <FormattedHTMLMessage\n id=\"rewardCodeEmailNotification\"\n defaultMessage=\"We have emailed you a copy so you can use your new code now or later. Look for the email from verify@sheerid.com.\"\n />\n </div>\n </div>\n\n <div\n className=\"sid-footer sid-l-horz-center sid-l-space-top-lg sid-h-small-text\"\n role=\"contentinfo\"\n >\n <FormattedHTMLMessage id=\"companyName\" defaultMessage=\"{Company}\">\n {(companyName) => (\n <FormattedHTMLMessage\n id=\"step.consolation.verificationOnly\"\n defaultMessage=\"Please direct any and all questions about this offer to {companyName}.\"\n values={{ companyName }}\n />\n )}\n </FormattedHTMLMessage>\n </div>\n </div>\n );\n};\n\nexport const StepConsolationComponent = StepConsolation;\n"],"mappings":";;;;;;aAsHa,KA1GY,EAAE,6BAAgD;CACzE,IAAM,IACH,EAAoB,qBAA6C,yBAClE,4BAEI,IAAa,EAAoB,aAAa,OAAO,cAAc,UACnE,EAAE,sBAAmB,EAAoB,sBAEzC,EAAE,qBAAkB,EAAoB,aAAa,QACrD,IAAa,CAAC,KAAc,CAAC,CAAC,EAAc;CAElD,OACE,iBAAA,GAAA,EAAA,MAAC,OAAD;EAAK,IAAG;E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xE,GAJM,CAIN,CAsBN;IACE,CAAA;IAGP,iBAAA,GAAA,EAAA,KAAC,OAAD;KAAK,WAAU;eACb,iBAAA,GAAA,EAAA,KAAC,GAAD;MACE,IAAG;MACH,gBAAe;KAChB,CAAA;IACE,CAAA;GACF;MAEL,iBAAA,GAAA,EAAA,KAAC,OAAD;GACE,WAAU;GACV,MAAK;aAEL,iBAAA,GAAA,EAAA,KAAC,GAAD;IAAsB,IAAG;IAAc,gBAAe;eAClD,MACA,iBAAA,GAAA,EAAA,KAAC,GAAD;KACE,IAAG;KACH,gBAAe;KACf,QAAQ,EAAE,eAAY;IACvB,CAAA;GAEiB,CAAA;EACnB,CAAA,CACF;;AAET"}
1
+ {"version":3,"file":"StepConsolation-Dw4IOp9l.js","names":[],"sources":["../../src/components/StepConsolation/StepConsolationComponent.tsx"],"sourcesContent":["import { FormattedHTMLMessage } from \"react-intl\";\n\nimport { type VerificationService, type ConsolationResponse } from \"../../lib/types/types\";\nimport { LogoComponent } from \"../LogoComponent/LogoComponent\";\nimport { CopyToClipboard } from \"../CopyToClipboard/CopyToClipboardComponent\";\nimport { RewardDisplayEnum } from \"../../lib/types/runtimeTypes\";\nimport { getBarcodeUrl } from \"../../lib/ServerApi/ApiUrls\";\n\ninterface StepConsolationProps {\n verificationService: VerificationService;\n}\n\nconst StepConsolation = ({ verificationService }: StepConsolationProps) => {\n const consolationRewardCode =\n (verificationService.verificationResponse as ConsolationResponse).consolationRewardCode ||\n \"${consolationRewardCode}\"; // eslint-disable-line no-template-curly-in-string\n\n const noCodeType = verificationService.programTheme.config.offerType === \"noCode\";\n const { verificationId } = verificationService.verificationResponse;\n\n const { rewardDisplay } = verificationService.programTheme.config;\n const showReward = !noCodeType && !!rewardDisplay.length;\n\n return (\n <div id=\"sid-step-consolation\" className=\"sid-l-container\">\n <div role=\"main\">\n <div className=\"sid-header sid-l-horz-center sid-l-space-top-md\">\n <div className=\"sid-l-horz-center\">\n <LogoComponent verificationService={verificationService} />\n </div>\n\n <div\n className=\"sid-header__title sid-l-horz-center sid-l-space-top-md\"\n id=\"consolation-status\"\n role=\"alertdialog\"\n >\n <FormattedHTMLMessage\n id=\"step.consolation.title\"\n defaultMessage=\"Claim your offer\"\n tagName=\"h1\"\n />\n </div>\n\n <div className=\"sid-l-horz-center\">\n <FormattedHTMLMessage id=\"companyName\" defaultMessage=\"{Company}\">\n {(companyName) => (\n <FormattedHTMLMessage\n id=\"step.consolation.subtitle\"\n defaultMessage=\"Although we couldn't verify you, {companyName} is providing you this code. It is unique to you and can be only used once.\"\n values={{ companyName }}\n />\n )}\n </FormattedHTMLMessage>\n </div>\n </div>\n\n {showReward && (\n <div className=\"sid-l-horz-center sid-reward-container sid-l-space-top-md\">\n {rewardDisplay.map((displayType) => {\n if (displayType !== RewardDisplayEnum.TEXT)\n return (\n <img\n key={displayType}\n className=\"sid-l-space-top-md sid-barcode\"\n alt={consolationRewardCode}\n src={getBarcodeUrl(verificationId, \"consolationRewardCode\", displayType)}\n />\n );\n return (\n <>\n <div\n className=\"sid-reward-code sid-l-space-top-lg sid-h-jumbo-text sid-l-horz-center\"\n role=\"region\"\n >\n {consolationRewardCode}\n </div>\n <CopyToClipboard\n className=\"sid-l-space-top-md sid-h-bold-text sid-l-horz-center\"\n textToCopy={consolationRewardCode}\n notificationText={<FormattedHTMLMessage id=\"copied\" defaultMessage=\"Copied\" />}\n >\n <FormattedHTMLMessage\n id=\"step.success.copyCouponCode\"\n defaultMessage=\"Copy Coupon code\"\n />\n </CopyToClipboard>\n </>\n );\n })}\n </div>\n )}\n\n <div className=\"sid-footer sid-l-horz-center sid-l-space-top-lg\">\n <FormattedHTMLMessage\n id=\"rewardCodeEmailNotification\"\n defaultMessage=\"We have emailed you a copy so you can use your new code now or later. Look for the email from verify@sheerid.com.\"\n />\n </div>\n </div>\n\n <div\n className=\"sid-footer sid-l-horz-center sid-l-space-top-lg sid-h-small-text\"\n role=\"contentinfo\"\n >\n <FormattedHTMLMessage id=\"companyName\" defaultMessage=\"{Company}\">\n {(companyName) => (\n <FormattedHTMLMessage\n id=\"step.consolation.verificationOnly\"\n defaultMessage=\"Please direct any and all questions about this offer to {companyName}.\"\n values={{ companyName }}\n />\n )}\n </FormattedHTMLMessage>\n </div>\n </div>\n );\n};\n\nexport const StepConsolationComponent = StepConsolation;\n"],"mappings":";;;;;;aAsHa,KA1GY,EAAE,6BAAgD;CACzE,IAAM,IACH,EAAoB,qBAA6C,yBAClE,4BAEI,IAAa,EAAoB,aAAa,OAAO,cAAc,UACnE,EAAE,sBAAmB,EAAoB,sBAEzC,EAAE,qBAAkB,EAAoB,aAAa,QACrD,IAAa,CAAC,KAAc,CAAC,CAAC,EAAc;CAElD,OACE,iBAAA,GAAA,EAAA,MAAC,OAAD;EAAK,IAAG;EAAuB,WAAU;YAAzC,CACE,iBAAA,GAAA,EAAA,MAAC,OAAD;GAAK,MAAK;aAAV;IACE,iBAAA,GAAA,EAAA,MAAC,OAAD;KAAK,WAAU;eAAf;MACE,iBAAA,GAAA,EAAA,KAAC,OAAD;OAAK,WAAU;iBACb,iBAAA,GAAA,EAAA,KAAC,GAAD,EAAoC,uBAAsB,CAAA;MACvD,CAAA;MAEL,iBAAA,GAAA,EAAA,KAAC,OAAD;OACE,WAAU;OACV,IAAG;OACH,MAAK;iBAEL,iBAAA,GAAA,EAAA,KAAC,GAAD;QACE,IAAG;QACH,gBAAe;QACf,SAAQ;OACT,CAAA;MACE,CAAA;MAEL,iBAAA,GAAA,EAAA,KAAC,OAAD;OAAK,WAAU;iBACb,iBAAA,GAAA,EAAA,KAAC,GAAD;QAAsB,IAAG;QAAc,gBAAe;mBAClD,MACA,iBAAA,GAAA,EAAA,KAAC,GAAD;SACE,IAAG;SACH,gBAAe;SACf,QAAQ,EAAE,eAAY;QACvB,CAAA;OAEiB,CAAA;MACnB,CAAA;KACF;;IAEJ,KACC,iBAAA,GAAA,EAAA,KAAC,OAAD;KAAK,WAAU;eACZ,EAAc,KAAK,MACd,MAAgB,EAAkB,OAUp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