@sheerid/jslib 2.249.0 → 2.250.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 (361) hide show
  1. package/_mysheerid-preview.css +4 -4
  2. package/_mysheerid-preview.js +893 -894
  3. package/_mysheerid-preview.js.map +1 -1
  4. package/chunk/{AddressComponent-BlFms8RU.js → AddressComponent-CmVyKqXc.js} +10 -10
  5. package/chunk/{AddressComponent-BlFms8RU.js.map → AddressComponent-CmVyKqXc.js.map} +1 -1
  6. package/chunk/{AddressComponent-DnFQfTYR.js → AddressComponent-ZIF4nAg6.js} +10 -10
  7. package/chunk/{AddressComponent-DnFQfTYR.js.map → AddressComponent-ZIF4nAg6.js.map} +1 -1
  8. package/chunk/BirthDateComponent-CMfd5EBF.js +35 -0
  9. package/chunk/{BirthDateComponent-DBoGs0xO.js.map → BirthDateComponent-CMfd5EBF.js.map} +1 -1
  10. package/chunk/{BirthDateComponent-Dl0XGTEU.js → BirthDateComponent-qIJ6VyBN.js} +10 -6
  11. package/chunk/{BirthDateComponent-Dl0XGTEU.js.map → BirthDateComponent-qIJ6VyBN.js.map} +1 -1
  12. package/chunk/{CaptchaComponent-CpD7kabQ.js → CaptchaComponent-D9qU6ygz.js} +389 -351
  13. package/chunk/CaptchaComponent-D9qU6ygz.js.map +1 -0
  14. package/chunk/{CaptchaComponent-CX3VgnkO.js → CaptchaComponent-DtcFKhJ1.js} +416 -386
  15. package/chunk/CaptchaComponent-DtcFKhJ1.js.map +1 -0
  16. package/chunk/{ChangeLocaleComponent-CwUU2jUS.js → ChangeLocaleComponent-C506fsyP.js} +15 -15
  17. package/chunk/{ChangeLocaleComponent-CwUU2jUS.js.map → ChangeLocaleComponent-C506fsyP.js.map} +1 -1
  18. package/chunk/{ChangeLocaleComponent-Db5V1sYM.js → ChangeLocaleComponent-D56onLa2.js} +12 -12
  19. package/chunk/{ChangeLocaleComponent-Db5V1sYM.js.map → ChangeLocaleComponent-D56onLa2.js.map} +1 -1
  20. package/chunk/{City-Dkthk9oJ.js → City-Ci2TwR7A.js} +10 -10
  21. package/chunk/{City-COH8oAI6.js.map → City-Ci2TwR7A.js.map} +1 -1
  22. package/chunk/{City-COH8oAI6.js → City-DcsZCOpS.js} +10 -10
  23. package/chunk/{City-Dkthk9oJ.js.map → City-DcsZCOpS.js.map} +1 -1
  24. package/chunk/{CollegeNameComponent-CcQ9X9_B.js → CollegeNameComponent-BgqXaJxu.js} +12 -12
  25. package/chunk/{CollegeNameComponent-C-dy7DMD.js.map → CollegeNameComponent-BgqXaJxu.js.map} +1 -1
  26. package/chunk/{CollegeNameComponent-C-dy7DMD.js → CollegeNameComponent-CIzSgol6.js} +13 -13
  27. package/chunk/{CollegeNameComponent-CcQ9X9_B.js.map → CollegeNameComponent-CIzSgol6.js.map} +1 -1
  28. package/chunk/{CopyToClipboardComponent-DIjRs4qZ.js → CopyToClipboardComponent-BESIJEWv.js} +5 -5
  29. package/chunk/{CopyToClipboardComponent-DIjRs4qZ.js.map → CopyToClipboardComponent-BESIJEWv.js.map} +1 -1
  30. package/chunk/CopyToClipboardComponent-BkiBQWbH.js +4 -4
  31. package/chunk/CountryComponentWrapper-CASuw2te.js +70 -0
  32. package/chunk/{CountryComponentWrapper-BKmiop9j.js.map → CountryComponentWrapper-CASuw2te.js.map} +1 -1
  33. package/chunk/CountryComponentWrapper-hbHOWlgu.js +74 -0
  34. package/chunk/{CountryComponentWrapper-cR2hBUDi.js.map → CountryComponentWrapper-hbHOWlgu.js.map} +1 -1
  35. package/chunk/{DischargeDateComponent-CRwKMsjW.js → DischargeDateComponent-C6MdcBJl.js} +31 -35
  36. package/chunk/{DischargeDateComponent-CRwKMsjW.js.map → DischargeDateComponent-C6MdcBJl.js.map} +1 -1
  37. package/chunk/{DischargeDateComponent-DSOfwpfI.js → DischargeDateComponent-GAHaUq3j.js} +34 -30
  38. package/chunk/{DischargeDateComponent-DSOfwpfI.js.map → DischargeDateComponent-GAHaUq3j.js.map} +1 -1
  39. package/chunk/{DriverLicenseNumberComponent-akwgy_SO.js → DriverLicenseNumberComponent-Bcrs2J8F.js} +11 -11
  40. package/chunk/{DriverLicenseNumberComponent-BH6bl91g.js.map → DriverLicenseNumberComponent-Bcrs2J8F.js.map} +1 -1
  41. package/chunk/{DriverLicenseNumberComponent-BH6bl91g.js → DriverLicenseNumberComponent-DRqO_tKm.js} +11 -11
  42. package/chunk/{DriverLicenseNumberComponent-akwgy_SO.js.map → DriverLicenseNumberComponent-DRqO_tKm.js.map} +1 -1
  43. package/chunk/{EmailLoopPending-BchQNg80.js → EmailLoopPending-C2nD34JV.js} +29 -29
  44. package/chunk/{EmailLoopPending-BchQNg80.js.map → EmailLoopPending-C2nD34JV.js.map} +1 -1
  45. package/chunk/{EmailLoopPending-D7XGFrxz.js → EmailLoopPending-tGJf2KO-.js} +21 -21
  46. package/chunk/{EmailLoopPending-D7XGFrxz.js.map → EmailLoopPending-tGJf2KO-.js.map} +1 -1
  47. package/chunk/{ExtraMessage-BNODbSi-.js → ExtraMessage-BF7WCgKF.js} +5 -5
  48. package/chunk/{ExtraMessage-BNODbSi-.js.map → ExtraMessage-BF7WCgKF.js.map} +1 -1
  49. package/chunk/ExtraMessage-BKREmfl_.js +18 -0
  50. package/chunk/{ExtraMessage-D78-mbs6.js.map → ExtraMessage-BKREmfl_.js.map} +1 -1
  51. package/chunk/{FirstResponderOrganizationComponent-BEvHXfgc.js → FirstResponderOrganizationComponent-CDUd_3wQ.js} +11 -11
  52. package/chunk/{FirstResponderOrganizationComponent-BEvHXfgc.js.map → FirstResponderOrganizationComponent-CDUd_3wQ.js.map} +1 -1
  53. package/chunk/{FirstResponderOrganizationComponent-BLNdDDOa.js → FirstResponderOrganizationComponent-DjVlz-RC.js} +10 -10
  54. package/chunk/{FirstResponderOrganizationComponent-BLNdDDOa.js.map → FirstResponderOrganizationComponent-DjVlz-RC.js.map} +1 -1
  55. package/chunk/{FormFieldInputSelect-B8lVVG8B.js → FormFieldInputSelect-B9m2vcvX.js} +7 -7
  56. package/chunk/{FormFieldInputSelect-B8lVVG8B.js.map → FormFieldInputSelect-B9m2vcvX.js.map} +1 -1
  57. package/chunk/{FormFieldInputSelect-C8O7C4IK.js → FormFieldInputSelect-d_7zlfAb.js} +7 -7
  58. package/chunk/{FormFieldInputSelect-C8O7C4IK.js.map → FormFieldInputSelect-d_7zlfAb.js.map} +1 -1
  59. package/chunk/{FormFieldLayout-ZhDGr6rb.js → FormFieldLayout-26v_1nBx.js} +5 -5
  60. package/chunk/{FormFieldLayout-yzfzLAfZ.js.map → FormFieldLayout-26v_1nBx.js.map} +1 -1
  61. package/chunk/{FormFieldLayout-yzfzLAfZ.js → FormFieldLayout-DJMFhEbe.js} +13 -13
  62. package/chunk/{FormFieldLayout-ZhDGr6rb.js.map → FormFieldLayout-DJMFhEbe.js.map} +1 -1
  63. package/chunk/{FormFieldText-B9EYGm5E.js → FormFieldText-BMCOvY3k.js} +6 -6
  64. package/chunk/{FormFieldText-B9EYGm5E.js.map → FormFieldText-BMCOvY3k.js.map} +1 -1
  65. package/chunk/{FormFieldText-DIAcRrkr.js → FormFieldText-CK9dvuS4.js} +7 -7
  66. package/chunk/{FormFieldText-DIAcRrkr.js.map → FormFieldText-CK9dvuS4.js.map} +1 -1
  67. package/chunk/{FormFieldTypeahead-Y91SkMJD.js → FormFieldTypeahead-ir8rYkOD.js} +435 -439
  68. package/chunk/{FormFieldTypeahead-BhoK1wVB.js.map → FormFieldTypeahead-ir8rYkOD.js.map} +1 -1
  69. package/chunk/{FormFieldTypeahead-BhoK1wVB.js → FormFieldTypeahead-pZggFuzg.js} +280 -276
  70. package/chunk/{FormFieldTypeahead-Y91SkMJD.js.map → FormFieldTypeahead-pZggFuzg.js.map} +1 -1
  71. package/chunk/{FormSelectChoice-BLQgJEYO.js → FormSelectChoice-A_dweQ9k.js} +20 -20
  72. package/chunk/{FormSelectChoice-BLQgJEYO.js.map → FormSelectChoice-A_dweQ9k.js.map} +1 -1
  73. package/chunk/{FormSelectChoice-u5sO_GqU.js → FormSelectChoice-C0ZvRRU4.js} +11 -11
  74. package/chunk/{FormSelectChoice-u5sO_GqU.js.map → FormSelectChoice-C0ZvRRU4.js.map} +1 -1
  75. package/chunk/{InputText-Cc-nHAaa.js → InputText-CMlYmMPL.js} +5 -5
  76. package/chunk/{InputText-Cc-nHAaa.js.map → InputText-CMlYmMPL.js.map} +1 -1
  77. package/chunk/InputText-CtKHbFE7.js +4 -4
  78. package/chunk/{LicensedProfessionalOrganizationComponent-KmfBDjN9.js → LicensedProfessionalOrganizationComponent-C9z4nWyc.js} +10 -10
  79. package/chunk/{LicensedProfessionalOrganizationComponent-Bd32g18q.js.map → LicensedProfessionalOrganizationComponent-C9z4nWyc.js.map} +1 -1
  80. package/chunk/{LicensedProfessionalOrganizationComponent-Bd32g18q.js → LicensedProfessionalOrganizationComponent-CVmJ9eS_.js} +11 -11
  81. package/chunk/{LicensedProfessionalOrganizationComponent-KmfBDjN9.js.map → LicensedProfessionalOrganizationComponent-CVmJ9eS_.js.map} +1 -1
  82. package/chunk/{LowIncomeOrganizationComponent-DmPn8oNy.js → LowIncomeOrganizationComponent-CVYnXbo4.js} +24 -28
  83. package/chunk/{LowIncomeOrganizationComponent-BDCwBwqA.js.map → LowIncomeOrganizationComponent-CVYnXbo4.js.map} +1 -1
  84. package/chunk/{LowIncomeOrganizationComponent-BDCwBwqA.js → LowIncomeOrganizationComponent-CvMiwUmr.js} +27 -23
  85. package/chunk/{LowIncomeOrganizationComponent-DmPn8oNy.js.map → LowIncomeOrganizationComponent-CvMiwUmr.js.map} +1 -1
  86. package/chunk/{MedicalProfessionalOrganizationComponent-CqNumnEx.js → MedicalProfessionalOrganizationComponent-6CxBMyJW.js} +10 -10
  87. package/chunk/{MedicalProfessionalOrganizationComponent-BvZ5-GKO.js.map → MedicalProfessionalOrganizationComponent-6CxBMyJW.js.map} +1 -1
  88. package/chunk/{MedicalProfessionalOrganizationComponent-BvZ5-GKO.js → MedicalProfessionalOrganizationComponent-BAhuoYQR.js} +11 -11
  89. package/chunk/{MedicalProfessionalOrganizationComponent-CqNumnEx.js.map → MedicalProfessionalOrganizationComponent-BAhuoYQR.js.map} +1 -1
  90. package/chunk/{MemberIdComponent-CZ4ylsxJ.js → MemberIdComponent-Bc6-XSmk.js} +11 -11
  91. package/chunk/{MemberIdComponent-CZ4ylsxJ.js.map → MemberIdComponent-Bc6-XSmk.js.map} +1 -1
  92. package/chunk/{MemberIdComponent-ClhVOK0_.js → MemberIdComponent-D3r9Y4c3.js} +11 -11
  93. package/chunk/{MemberIdComponent-ClhVOK0_.js.map → MemberIdComponent-D3r9Y4c3.js.map} +1 -1
  94. package/chunk/{MembershipOrganizationComponent-Ds1UMq_P.js → MembershipOrganizationComponent-PJ1L85G4.js} +10 -10
  95. package/chunk/{MembershipOrganizationComponent-B2k3iMwP.js.map → MembershipOrganizationComponent-PJ1L85G4.js.map} +1 -1
  96. package/chunk/{MembershipOrganizationComponent-B2k3iMwP.js → MembershipOrganizationComponent-xgi0R8Qh.js} +11 -11
  97. package/chunk/{MembershipOrganizationComponent-Ds1UMq_P.js.map → MembershipOrganizationComponent-xgi0R8Qh.js.map} +1 -1
  98. package/chunk/Onfido-DX6DWIy6.js +4 -4
  99. package/chunk/{PersonalInfoStepSubmitButton-C2E_vI6h.js → PersonalInfoStepSubmitButton-COTSMNng.js} +29 -25
  100. package/chunk/{PersonalInfoStepSubmitButton-BEt7G8pL.js.map → PersonalInfoStepSubmitButton-COTSMNng.js.map} +1 -1
  101. package/chunk/{PersonalInfoStepSubmitButton-BEt7G8pL.js → PersonalInfoStepSubmitButton-DL0Qjm6T.js} +29 -33
  102. package/chunk/{PersonalInfoStepSubmitButton-C2E_vI6h.js.map → PersonalInfoStepSubmitButton-DL0Qjm6T.js.map} +1 -1
  103. package/chunk/{PersonalInfoStepWrapper-DIecrjL_.js → PersonalInfoStepWrapper-BoM-u8Vg.js} +5 -5
  104. package/chunk/{PersonalInfoStepWrapper-DIecrjL_.js.map → PersonalInfoStepWrapper-BoM-u8Vg.js.map} +1 -1
  105. package/chunk/{PersonalInfoStepWrapper-B7jyR5L2.js → PersonalInfoStepWrapper-DgxBk5YC.js} +27 -27
  106. package/chunk/{PersonalInfoStepWrapper-B7jyR5L2.js.map → PersonalInfoStepWrapper-DgxBk5YC.js.map} +1 -1
  107. package/chunk/{PostalCodeComponent-BRv1OY2E.js → PostalCodeComponent-BAMN5oNJ.js} +10 -10
  108. package/chunk/{PostalCodeComponent-C5geCnf3.js.map → PostalCodeComponent-BAMN5oNJ.js.map} +1 -1
  109. package/chunk/{PostalCodeComponent-C5geCnf3.js → PostalCodeComponent-BoviWgTs.js} +10 -10
  110. package/chunk/{PostalCodeComponent-BRv1OY2E.js.map → PostalCodeComponent-BoviWgTs.js.map} +1 -1
  111. package/chunk/{SSN-DbmDwC_V.js → SSN-C-tXgqEW.js} +11 -11
  112. package/chunk/{SSN-DEDbmtXI.js.map → SSN-C-tXgqEW.js.map} +1 -1
  113. package/chunk/{SSN-DEDbmtXI.js → SSN-Dm927vAY.js} +11 -11
  114. package/chunk/{SSN-DbmDwC_V.js.map → SSN-Dm927vAY.js.map} +1 -1
  115. package/chunk/{StateSelectComponent-BVUvB4i-.js → StateSelectComponent-DRh_P7z6.js} +5 -5
  116. package/chunk/{StateSelectComponent-BVUvB4i-.js.map → StateSelectComponent-DRh_P7z6.js.map} +1 -1
  117. package/chunk/{StateSelectComponent-ykysTrKn.js → StateSelectComponent-uvSd1iyo.js} +9 -9
  118. package/chunk/{StateSelectComponent-ykysTrKn.js.map → StateSelectComponent-uvSd1iyo.js.map} +1 -1
  119. package/chunk/StatusComponent-Bn_amGh4.js +40 -0
  120. package/chunk/{StatusComponent-C9qP2xkk.js.map → StatusComponent-Bn_amGh4.js.map} +1 -1
  121. package/chunk/{StatusComponent-C9qP2xkk.js → StatusComponent-DN4l8Npf.js} +14 -14
  122. package/chunk/{StatusComponent-K7sbnHoL.js.map → StatusComponent-DN4l8Npf.js.map} +1 -1
  123. package/chunk/{StepActiveMilitaryPersonalInfoComponent-OP3pj1nz.js → StepActiveMilitaryPersonalInfoComponent-C195u8WH.js} +59 -55
  124. package/chunk/{StepActiveMilitaryPersonalInfoComponent-B19DJheV.js.map → StepActiveMilitaryPersonalInfoComponent-C195u8WH.js.map} +1 -1
  125. package/chunk/StepActiveMilitaryPersonalInfoComponent-ZcCZn0os.js +174 -0
  126. package/chunk/{StepActiveMilitaryPersonalInfoComponent-OP3pj1nz.js.map → StepActiveMilitaryPersonalInfoComponent-ZcCZn0os.js.map} +1 -1
  127. package/chunk/StepAgePersonalInfo-BPeMAudS.js +166 -0
  128. package/chunk/{StepAgePersonalInfo-Bi-QeGX8.js.map → StepAgePersonalInfo-BPeMAudS.js.map} +1 -1
  129. package/chunk/StepAgePersonalInfo-ChwZMKcL.js +170 -0
  130. package/chunk/{StepAgePersonalInfo-CQBDmfRF.js.map → StepAgePersonalInfo-ChwZMKcL.js.map} +1 -1
  131. package/chunk/StepCard-B06reTxD.js +4 -4
  132. package/chunk/StepCard-Bypd7Dt8.js +4 -4
  133. package/chunk/{StepCollectIdentifier-BHAvn2O0.js → StepCollectIdentifier-DuKdS-j5.js} +19 -19
  134. package/chunk/{StepCollectIdentifier-BHAvn2O0.js.map → StepCollectIdentifier-DuKdS-j5.js.map} +1 -1
  135. package/chunk/{StepCollectIdentifier-CJWthRfj.js → StepCollectIdentifier-SFcn1Kr-.js} +12 -12
  136. package/chunk/{StepCollectIdentifier-CJWthRfj.js.map → StepCollectIdentifier-SFcn1Kr-.js.map} +1 -1
  137. package/chunk/StepCollectMilitaryStatusComponent-Bxu0tcW8.js +9 -0
  138. package/chunk/{StepCollectMilitaryStatusComponent-C4P5lSIX.js → StepCollectMilitaryStatusComponent-DKO_s_ta.js} +5 -5
  139. package/chunk/StepCollectPersonalInfo-H3GU_HNZ.js +352 -0
  140. package/chunk/{StepCollectPersonalInfo-B7--XzLY.js.map → StepCollectPersonalInfo-H3GU_HNZ.js.map} +1 -1
  141. package/chunk/{StepCollectPersonalInfo-DZpwrzjQ.js → StepCollectPersonalInfo-gDQydB_T.js} +124 -120
  142. package/chunk/{StepCollectPersonalInfo-DZpwrzjQ.js.map → StepCollectPersonalInfo-gDQydB_T.js.map} +1 -1
  143. package/chunk/{StepCompleteAuthentication-B66TaYiw.js → StepCompleteAuthentication-BjFkNxUn.js} +17 -17
  144. package/chunk/{StepCompleteAuthentication-B66TaYiw.js.map → StepCompleteAuthentication-BjFkNxUn.js.map} +1 -1
  145. package/chunk/{StepCompleteAuthentication-C0kcCUjP.js → StepCompleteAuthentication-DP1Q0Z7P.js} +24 -24
  146. package/chunk/{StepCompleteAuthentication-C0kcCUjP.js.map → StepCompleteAuthentication-DP1Q0Z7P.js.map} +1 -1
  147. package/chunk/{StepConsolation-BKobQblj.js → StepConsolation-C1iBEDx5.js} +13 -13
  148. package/chunk/{StepConsolation-BKobQblj.js.map → StepConsolation-C1iBEDx5.js.map} +1 -1
  149. package/chunk/{StepConsolation-CfpgPGx0.js → StepConsolation-DkIj9ddz.js} +19 -19
  150. package/chunk/{StepConsolation-CfpgPGx0.js.map → StepConsolation-DkIj9ddz.js.map} +1 -1
  151. package/chunk/{StepDocUpload-BM_hrO6C.js → StepDocUpload-CRn87Rqx.js} +249 -249
  152. package/chunk/{StepDocUpload-DkHcpKDh.js.map → StepDocUpload-CRn87Rqx.js.map} +1 -1
  153. package/chunk/{StepDocUpload-DkHcpKDh.js → StepDocUpload-D7O41B7o.js} +266 -266
  154. package/chunk/{StepDocUpload-BM_hrO6C.js.map → StepDocUpload-D7O41B7o.js.map} +1 -1
  155. package/chunk/StepDriverLicensePersonalInfoComponent-Bf27mPeI.js +136 -0
  156. package/chunk/{StepDriverLicensePersonalInfoComponent-DRAZbywp.js.map → StepDriverLicensePersonalInfoComponent-Bf27mPeI.js.map} +1 -1
  157. package/chunk/{StepDriverLicensePersonalInfoComponent-DRAZbywp.js → StepDriverLicensePersonalInfoComponent-BydWgQhM.js} +44 -40
  158. package/chunk/{StepDriverLicensePersonalInfoComponent-DvF6gQri.js.map → StepDriverLicensePersonalInfoComponent-BydWgQhM.js.map} +1 -1
  159. package/chunk/{StepEmailLoop-B2pJ6TII.js → StepEmailLoop-BwdA2js0.js} +31 -31
  160. package/chunk/{StepEmailLoop-B2pJ6TII.js.map → StepEmailLoop-BwdA2js0.js.map} +1 -1
  161. package/chunk/{StepEmailLoop-D82Ol-tF.js → StepEmailLoop-CaGMrw-M.js} +19 -19
  162. package/chunk/{StepEmailLoop-D82Ol-tF.js.map → StepEmailLoop-CaGMrw-M.js.map} +1 -1
  163. package/chunk/StepEmploymentPersonalInfo-BP0D_L-2.js +211 -0
  164. package/chunk/{StepEmploymentPersonalInfo-BIzLUyqF.js.map → StepEmploymentPersonalInfo-BP0D_L-2.js.map} +1 -1
  165. package/chunk/{StepEmploymentPersonalInfo-BIzLUyqF.js → StepEmploymentPersonalInfo-DokmufZm.js} +70 -70
  166. package/chunk/{StepEmploymentPersonalInfo-CfW1cRz5.js.map → StepEmploymentPersonalInfo-DokmufZm.js.map} +1 -1
  167. package/chunk/StepFirstResponderPersonalInfo-CFlC4kHJ.js +167 -0
  168. package/chunk/{StepFirstResponderPersonalInfo-CcKpt9P9.js.map → StepFirstResponderPersonalInfo-CFlC4kHJ.js.map} +1 -1
  169. package/chunk/StepFirstResponderPersonalInfo-DxaX2t3m.js +171 -0
  170. package/chunk/{StepFirstResponderPersonalInfo-fkmalnSR.js.map → StepFirstResponderPersonalInfo-DxaX2t3m.js.map} +1 -1
  171. package/chunk/StepGeneralIdentityPersonalInfoComponent-D7rWM-zc.js +169 -0
  172. package/chunk/{StepGeneralIdentityPersonalInfoComponent-D-g65U8N.js.map → StepGeneralIdentityPersonalInfoComponent-D7rWM-zc.js.map} +1 -1
  173. package/chunk/{StepGeneralIdentityPersonalInfoComponent-DCzOLLXt.js → StepGeneralIdentityPersonalInfoComponent-DjlrFqzf.js} +49 -45
  174. package/chunk/{StepGeneralIdentityPersonalInfoComponent-DCzOLLXt.js.map → StepGeneralIdentityPersonalInfoComponent-DjlrFqzf.js.map} +1 -1
  175. package/chunk/StepHybridIdentityPersonalInfoComponent-7Tl8uDuV.js +178 -0
  176. package/chunk/{StepHybridIdentityPersonalInfoComponent-B1U-D-Oa.js.map → StepHybridIdentityPersonalInfoComponent-7Tl8uDuV.js.map} +1 -1
  177. package/chunk/{StepHybridIdentityPersonalInfoComponent-B1U-D-Oa.js → StepHybridIdentityPersonalInfoComponent-QCqe5hPY.js} +51 -47
  178. package/chunk/{StepHybridIdentityPersonalInfoComponent-CKqXVn71.js.map → StepHybridIdentityPersonalInfoComponent-QCqe5hPY.js.map} +1 -1
  179. package/chunk/{StepIDCheckLoop-C55YxnHR.js → StepIDCheckLoop-BJgnlAgW.js} +6 -6
  180. package/chunk/{StepIDCheckLoop-qAopx3ex.js.map → StepIDCheckLoop-BJgnlAgW.js.map} +1 -1
  181. package/chunk/StepIDCheckLoop-DSWI3l3R.js +21 -0
  182. package/chunk/{StepIDCheckLoop-C55YxnHR.js.map → StepIDCheckLoop-DSWI3l3R.js.map} +1 -1
  183. package/chunk/{StepIDCheckLoopOnfido-CNjlvSWc.js → StepIDCheckLoopOnfido-BQFOVwjz.js} +49 -49
  184. package/chunk/{StepIDCheckLoopOnfido-CNjlvSWc.js.map → StepIDCheckLoopOnfido-BQFOVwjz.js.map} +1 -1
  185. package/chunk/{StepIDCheckLoopOnfido-DMT6NO1B.js → StepIDCheckLoopOnfido-Q2N4Nl-N.js} +50 -50
  186. package/chunk/{StepIDCheckLoopOnfido-DMT6NO1B.js.map → StepIDCheckLoopOnfido-Q2N4Nl-N.js.map} +1 -1
  187. package/chunk/{StepIDCheckLoopRegula-qC6UgIrq.js → StepIDCheckLoopRegula-CV50hZTK.js} +40 -40
  188. package/chunk/{StepIDCheckLoopRegula-CTSRHPQ4.js.map → StepIDCheckLoopRegula-CV50hZTK.js.map} +1 -1
  189. package/chunk/{StepIDCheckLoopRegula-CTSRHPQ4.js → StepIDCheckLoopRegula-G6YJq954.js} +26 -26
  190. package/chunk/{StepIDCheckLoopRegula-qC6UgIrq.js.map → StepIDCheckLoopRegula-G6YJq954.js.map} +1 -1
  191. package/chunk/{StepInactiveMilitaryPersonalInfoComponent-DVxON89y.js → StepInactiveMilitaryPersonalInfoComponent-BD5AYCGD.js} +89 -85
  192. package/chunk/{StepInactiveMilitaryPersonalInfoComponent-DVxON89y.js.map → StepInactiveMilitaryPersonalInfoComponent-BD5AYCGD.js.map} +1 -1
  193. package/chunk/StepInactiveMilitaryPersonalInfoComponent-CzS52K0a.js +232 -0
  194. package/chunk/{StepInactiveMilitaryPersonalInfoComponent-Sgb4Acqi.js.map → StepInactiveMilitaryPersonalInfoComponent-CzS52K0a.js.map} +1 -1
  195. package/chunk/{StepLicensedProfessionalPersonalInfo-DssaBYy5.js → StepLicensedProfessionalPersonalInfo-Co6ysIbQ.js} +49 -49
  196. package/chunk/{StepLicensedProfessionalPersonalInfo-COwznw-a.js.map → StepLicensedProfessionalPersonalInfo-Co6ysIbQ.js.map} +1 -1
  197. package/chunk/{StepLicensedProfessionalPersonalInfo-COwznw-a.js → StepLicensedProfessionalPersonalInfo-MyhaHS8O.js} +67 -67
  198. package/chunk/{StepLicensedProfessionalPersonalInfo-DssaBYy5.js.map → StepLicensedProfessionalPersonalInfo-MyhaHS8O.js.map} +1 -1
  199. package/chunk/{StepLowIncomePersonalInfo-C3U0bUtb.js → StepLowIncomePersonalInfo-DEvMpSOc.js} +76 -76
  200. package/chunk/{StepLowIncomePersonalInfo-X2S_WVZz.js.map → StepLowIncomePersonalInfo-DEvMpSOc.js.map} +1 -1
  201. package/chunk/StepLowIncomePersonalInfo-MwI07ZDr.js +217 -0
  202. package/chunk/{StepLowIncomePersonalInfo-C3U0bUtb.js.map → StepLowIncomePersonalInfo-MwI07ZDr.js.map} +1 -1
  203. package/chunk/StepMedicalProfessionalPersonalInfo-Br3HaEsM.js +199 -0
  204. package/chunk/{StepMedicalProfessionalPersonalInfo-bRiGlQYY.js.map → StepMedicalProfessionalPersonalInfo-Br3HaEsM.js.map} +1 -1
  205. package/chunk/StepMedicalProfessionalPersonalInfo-Cz4yih5L.js +203 -0
  206. package/chunk/{StepMedicalProfessionalPersonalInfo-k9qmhFHs.js.map → StepMedicalProfessionalPersonalInfo-Cz4yih5L.js.map} +1 -1
  207. package/chunk/StepMemberPersonalInfo-D3y5Orq9.js +149 -0
  208. package/chunk/{StepMemberPersonalInfo-AnJ_sPsq.js.map → StepMemberPersonalInfo-D3y5Orq9.js.map} +1 -1
  209. package/chunk/{StepMemberPersonalInfo-AnJ_sPsq.js → StepMemberPersonalInfo-DxET2t6t.js} +35 -31
  210. package/chunk/{StepMemberPersonalInfo-DJC6kzko.js.map → StepMemberPersonalInfo-DxET2t6t.js.map} +1 -1
  211. package/chunk/{StepMoverPersonalInfo-Bf95T7H2.js → StepMoverPersonalInfo-BJQcx0QE.js} +44 -40
  212. package/chunk/{StepMoverPersonalInfo-Bf95T7H2.js.map → StepMoverPersonalInfo-BJQcx0QE.js.map} +1 -1
  213. package/chunk/StepMoverPersonalInfo-ms_oSmJJ.js +136 -0
  214. package/chunk/{StepMoverPersonalInfo-R8lZHUqS.js.map → StepMoverPersonalInfo-ms_oSmJJ.js.map} +1 -1
  215. package/chunk/{StepOverrideComponent-C3Wt9p-Y.js → StepOverrideComponent-DR6qA-CV.js} +18 -18
  216. package/chunk/{StepOverrideComponent-DQ6KQfVX.js.map → StepOverrideComponent-DR6qA-CV.js.map} +1 -1
  217. package/chunk/{StepOverrideComponent-DQ6KQfVX.js → StepOverrideComponent-DUneGdaQ.js} +26 -26
  218. package/chunk/{StepOverrideComponent-C3Wt9p-Y.js.map → StepOverrideComponent-DUneGdaQ.js.map} +1 -1
  219. package/chunk/{StepSMSLoop-BrbJqPhN.js → StepSMSLoop-CmnU4foO.js} +29 -29
  220. package/chunk/{StepSMSLoop-BrbJqPhN.js.map → StepSMSLoop-CmnU4foO.js.map} +1 -1
  221. package/chunk/{StepSMSLoop-C48P-QXx.js → StepSMSLoop-D96_oeaY.js} +22 -22
  222. package/chunk/{StepSMSLoop-C48P-QXx.js.map → StepSMSLoop-D96_oeaY.js.map} +1 -1
  223. package/chunk/StepSSO-D2pCLSYD.js +9 -0
  224. package/chunk/{StepSSO-DlRartMb.js → StepSSO-y263jjm-.js} +5 -5
  225. package/chunk/{StepSocialSecurityNumber-DyiO7ggN.js → StepSocialSecurityNumber-Bv8OGQDM.js} +31 -31
  226. package/chunk/{StepSocialSecurityNumber-Bn9fK496.js.map → StepSocialSecurityNumber-Bv8OGQDM.js.map} +1 -1
  227. package/chunk/{StepSocialSecurityNumber-Bn9fK496.js → StepSocialSecurityNumber-C4iQRaSu.js} +25 -25
  228. package/chunk/{StepSocialSecurityNumber-DyiO7ggN.js.map → StepSocialSecurityNumber-C4iQRaSu.js.map} +1 -1
  229. package/chunk/{StepStudentPersonalInfo-BK34pk1g.js → StepStudentPersonalInfo-CStD7GTz.js} +52 -48
  230. package/chunk/{StepStudentPersonalInfo-BK34pk1g.js.map → StepStudentPersonalInfo-CStD7GTz.js.map} +1 -1
  231. package/chunk/StepStudentPersonalInfo-DC_LuVGO.js +181 -0
  232. package/chunk/{StepStudentPersonalInfo-Cpx5Y88n.js.map → StepStudentPersonalInfo-DC_LuVGO.js.map} +1 -1
  233. package/chunk/{StepSuccess-5zi6JPlJ.js → StepSuccess-D0zwNWtW.js} +47 -47
  234. package/chunk/{StepSuccess-5zi6JPlJ.js.map → StepSuccess-D0zwNWtW.js.map} +1 -1
  235. package/chunk/{StepSuccess-BEVsDxMB.js → StepSuccess-DH_SCQ3o.js} +43 -43
  236. package/chunk/{StepSuccess-BEVsDxMB.js.map → StepSuccess-DH_SCQ3o.js.map} +1 -1
  237. package/chunk/{StepTeacherPersonalInfo-kUTcaH1X.js → StepTeacherPersonalInfo-BD270H75.js} +36 -32
  238. package/chunk/{StepTeacherPersonalInfo-JFMv7J7a.js.map → StepTeacherPersonalInfo-BD270H75.js.map} +1 -1
  239. package/chunk/StepTeacherPersonalInfo-CdIYEUhN.js +146 -0
  240. package/chunk/{StepTeacherPersonalInfo-kUTcaH1X.js.map → StepTeacherPersonalInfo-CdIYEUhN.js.map} +1 -1
  241. package/chunk/StepThirdPartyLoop-C9irc_Or.js +9 -0
  242. package/chunk/{StepThirdPartyLoop-DgBM8Hjr.js → StepThirdPartyLoop-DfDkHKc3.js} +5 -5
  243. package/chunk/{TeacherSchoolComponent-BlXd_Ago.js → TeacherSchoolComponent-BVq4mqo8.js} +13 -13
  244. package/chunk/{TeacherSchoolComponent-lxPkOdX5.js.map → TeacherSchoolComponent-BVq4mqo8.js.map} +1 -1
  245. package/chunk/{TeacherSchoolComponent-lxPkOdX5.js → TeacherSchoolComponent-CBD2dQym.js} +12 -12
  246. package/chunk/{TeacherSchoolComponent-BlXd_Ago.js.map → TeacherSchoolComponent-CBD2dQym.js.map} +1 -1
  247. package/chunk/ThreatMetrix-DneXzgNV.js +4 -4
  248. package/chunk/{VerificationApiUtils-Ci3HFxmT.js → VerificationApiUtils-CuQ536DE.js} +5 -5
  249. package/chunk/{VerificationApiUtils-Ci3HFxmT.js.map → VerificationApiUtils-CuQ536DE.js.map} +1 -1
  250. package/chunk/{VerificationApiUtils-Cnf-uqtw.js → VerificationApiUtils-D715lDKh.js} +7 -7
  251. package/chunk/{VerificationApiUtils-Cnf-uqtw.js.map → VerificationApiUtils-D715lDKh.js.map} +1 -1
  252. package/chunk/ar-DY-xX8jm.js +4 -4
  253. package/chunk/bg-DtqxFXxf.js +4 -4
  254. package/chunk/bn-IN-CLQsDlLx.js +4 -4
  255. package/chunk/countryUtils-D5jLglud.js +4 -4
  256. package/chunk/countryUtils-ZO5utVC3.js +4 -4
  257. package/chunk/cs-zKYalrCx.js +4 -4
  258. package/chunk/da-B5mz--q8.js +4 -4
  259. package/chunk/de-C1u5bH-H.js +4 -4
  260. package/chunk/{downshift.esm-qbGlaZEh.js → downshift.esm-CmXev3Ne.js} +5 -5
  261. package/chunk/{downshift.esm-qbGlaZEh.js.map → downshift.esm-CmXev3Ne.js.map} +1 -1
  262. package/chunk/{downshift.esm-fwmIRsQT.js → downshift.esm-CtORkuQS.js} +228 -228
  263. package/chunk/{downshift.esm-fwmIRsQT.js.map → downshift.esm-CtORkuQS.js.map} +1 -1
  264. package/chunk/el-By0fu1Nj.js +4 -4
  265. package/chunk/en-GB-C2Ud3xXN.js +4 -4
  266. package/chunk/es-CNmoqMfp.js +4 -4
  267. package/chunk/es-ES-B7X6cedJ.js +4 -4
  268. package/chunk/et-DjJMLduk.js +4 -4
  269. package/chunk/fa-C9Wazqks.js +4 -4
  270. package/chunk/fi-Bt0kXgNy.js +4 -4
  271. package/chunk/fr-BvwOLEGk.js +4 -4
  272. package/chunk/fr-CA-DDN6X27Z.js +4 -4
  273. package/chunk/ga-DyaPZPE4.js +4 -4
  274. package/chunk/hi-IN-BsHMHntR.js +4 -4
  275. package/chunk/hr-BVl-px1q.js +4 -4
  276. package/chunk/hu-D4VjeLtb.js +4 -4
  277. package/chunk/id-B9cy0h8v.js +4 -4
  278. package/chunk/is-DFpeGHFj.js +4 -4
  279. package/chunk/it-DWz5-P-2.js +4 -4
  280. package/chunk/iw-DdKzE4KC.js +4 -4
  281. package/chunk/ja-BfUezqgt.js +4 -4
  282. package/chunk/kk-dxzPsna4.js +4 -4
  283. package/chunk/ko-BoAyzxes.js +4 -4
  284. package/chunk/lo-VdDzVd41.js +4 -4
  285. package/chunk/lt-CtEXkLkn.js +4 -4
  286. package/chunk/lv-SXvo6W1l.js +4 -4
  287. package/chunk/militaryStepHelpers--Wm0W_ag.js +4 -4
  288. package/chunk/militaryStepHelpers-BeuHYTWR.js +4 -4
  289. package/chunk/{mocks-Cgaq6lp9.js → mocks-DW4afxJL.js} +7 -7
  290. package/chunk/{mocks-BPyxndtc.js.map → mocks-DW4afxJL.js.map} +1 -1
  291. package/chunk/{mocks-BPyxndtc.js → mocks-WjVFEPXM.js} +8 -8
  292. package/chunk/{mocks-Cgaq6lp9.js.map → mocks-WjVFEPXM.js.map} +1 -1
  293. package/chunk/ms-CAQm5fnc.js +4 -4
  294. package/chunk/nl-BE-bh2asFFE.js +4 -4
  295. package/chunk/nl-TH42E1ce.js +4 -4
  296. package/chunk/no-CWx3bQiE.js +4 -4
  297. package/chunk/pl-C5UPRDbl.js +4 -4
  298. package/chunk/pt-BR-WR8V3NBI.js +4 -4
  299. package/chunk/pt-DuRmZVpm.js +4 -4
  300. package/chunk/ro-X6KMMewz.js +4 -4
  301. package/chunk/ru-D8cwuuW9.js +4 -4
  302. package/chunk/sk-l-usPvHT.js +4 -4
  303. package/chunk/sl-CcFevFDd.js +4 -4
  304. package/chunk/sr-5hqdw8W6.js +4 -4
  305. package/chunk/sv-CHHsIc-_.js +4 -4
  306. package/chunk/sw-N7xKwBA-.js +4 -4
  307. package/chunk/ta-CJbnZGAc.js +4 -4
  308. package/chunk/th-BGQ9NXQb.js +4 -4
  309. package/chunk/tl-D4edHa4A.js +4 -4
  310. package/chunk/tr-CzGpuTpn.js +4 -4
  311. package/chunk/uk-ChRcPkiM.js +4 -4
  312. package/chunk/ur-DwjvEWmp.js +4 -4
  313. package/chunk/{useCollectFieldsEndpoint-Clin3AaA.js → useCollectFieldsEndpoint-BEwU2IXN.js} +9 -9
  314. package/chunk/{useCollectFieldsEndpoint-Cig4wEUB.js.map → useCollectFieldsEndpoint-BEwU2IXN.js.map} +1 -1
  315. package/chunk/{useCollectFieldsEndpoint-Cig4wEUB.js → useCollectFieldsEndpoint-CvOWXfx8.js} +8 -8
  316. package/chunk/{useCollectFieldsEndpoint-Clin3AaA.js.map → useCollectFieldsEndpoint-CvOWXfx8.js.map} +1 -1
  317. package/chunk/{useMetrics-CLLh0Tan.js → useMetrics-2o9KG92p.js} +12 -26
  318. package/chunk/useMetrics-2o9KG92p.js.map +1 -0
  319. package/chunk/{useMetrics-5ft9MF-y.js → useMetrics-DW_mv5wy.js} +6 -20
  320. package/chunk/useMetrics-DW_mv5wy.js.map +1 -0
  321. package/chunk/vi-CyTj2EhC.js +4 -4
  322. package/chunk/zh-91qJ02Dp.js +4 -4
  323. package/chunk/zh-HK-xEJkIfby.js +4 -4
  324. package/chunk/zu-BrvraDYW.js +4 -4
  325. package/package.json +1 -1
  326. package/sheerid-install.css +4 -4
  327. package/sheerid-install.js +4 -4
  328. package/sheerid.css +4 -4
  329. package/sheerid.js +939 -940
  330. package/sheerid.js.map +1 -1
  331. package/chunk/BirthDateComponent-DBoGs0xO.js +0 -39
  332. package/chunk/CaptchaComponent-CX3VgnkO.js.map +0 -1
  333. package/chunk/CaptchaComponent-CpD7kabQ.js.map +0 -1
  334. package/chunk/CountryComponentWrapper-BKmiop9j.js +0 -70
  335. package/chunk/CountryComponentWrapper-cR2hBUDi.js +0 -74
  336. package/chunk/ExtraMessage-D78-mbs6.js +0 -18
  337. package/chunk/StatusComponent-K7sbnHoL.js +0 -40
  338. package/chunk/StepActiveMilitaryPersonalInfoComponent-B19DJheV.js +0 -178
  339. package/chunk/StepAgePersonalInfo-Bi-QeGX8.js +0 -166
  340. package/chunk/StepAgePersonalInfo-CQBDmfRF.js +0 -170
  341. package/chunk/StepCollectMilitaryStatusComponent-Cp82hWUq.js +0 -9
  342. package/chunk/StepCollectPersonalInfo-B7--XzLY.js +0 -356
  343. package/chunk/StepDriverLicensePersonalInfoComponent-DvF6gQri.js +0 -140
  344. package/chunk/StepEmploymentPersonalInfo-CfW1cRz5.js +0 -211
  345. package/chunk/StepFirstResponderPersonalInfo-CcKpt9P9.js +0 -167
  346. package/chunk/StepFirstResponderPersonalInfo-fkmalnSR.js +0 -171
  347. package/chunk/StepGeneralIdentityPersonalInfoComponent-D-g65U8N.js +0 -173
  348. package/chunk/StepHybridIdentityPersonalInfoComponent-CKqXVn71.js +0 -182
  349. package/chunk/StepIDCheckLoop-qAopx3ex.js +0 -21
  350. package/chunk/StepInactiveMilitaryPersonalInfoComponent-Sgb4Acqi.js +0 -236
  351. package/chunk/StepLowIncomePersonalInfo-X2S_WVZz.js +0 -217
  352. package/chunk/StepMedicalProfessionalPersonalInfo-bRiGlQYY.js +0 -203
  353. package/chunk/StepMedicalProfessionalPersonalInfo-k9qmhFHs.js +0 -199
  354. package/chunk/StepMemberPersonalInfo-DJC6kzko.js +0 -153
  355. package/chunk/StepMoverPersonalInfo-R8lZHUqS.js +0 -140
  356. package/chunk/StepSSO-wafaHYQE.js +0 -9
  357. package/chunk/StepStudentPersonalInfo-Cpx5Y88n.js +0 -185
  358. package/chunk/StepTeacherPersonalInfo-JFMv7J7a.js +0 -150
  359. package/chunk/StepThirdPartyLoop-B12aMzdI.js +0 -9
  360. package/chunk/useMetrics-5ft9MF-y.js.map +0 -1
  361. package/chunk/useMetrics-CLLh0Tan.js.map +0 -1
@@ -1,14 +1,14 @@
1
1
 
2
2
  /**
3
- * VERSION: 2.249.0
4
- * BUILD_TIMESTAMP: 1782520953730
5
- * BUILD_DATE: Sat Jun 27 2026 00:42:33 GMT+0000 (Coordinated Universal Time)
6
- * BUILD_COMMIT: d434b306f163c625231516e302f145313c088dbc
3
+ * VERSION: 2.250.0
4
+ * BUILD_TIMESTAMP: 1782922520068
5
+ * BUILD_DATE: Wed Jul 01 2026 16:15:20 GMT+0000 (Coordinated Universal Time)
6
+ * BUILD_COMMIT: cb70a3d38f25dac850245b568238895cd279ec48
7
7
  */
8
- import { Bt as e, Dn as t, Dt as n, Gt as r, Jt as i, Mn as a, Mt as o, Rt as s, V as c, Wt as l, en as u, in as d, kn as f, pt as p, rt as m, tn as h, xn as g, zt as _ } from "../sheerid.js";
8
+ import { $t as e, Bt as t, Dt as n, En as r, H as i, Mn as a, Mt as o, Rt as s, Ut as c, Wt as l, bn as u, en as d, it as f, kn as p, pt as m, qt as h, rn as g, zt as _ } from "../sheerid.js";
9
9
  import { t as v } from "./CopyToClipboardComponent-BkiBQWbH.js";
10
10
  //#region src/lib/installScript/utils.ts
11
- var y = /* @__PURE__ */ a(f(), 1), b = (e) => {
11
+ var y = /* @__PURE__ */ a(p(), 1), b = (e) => {
12
12
  let t = new URL(e);
13
13
  return new URL(window.location.href).searchParams.forEach((e, n) => {
14
14
  t.searchParams.has(n) || t.searchParams.set(n, e);
@@ -30,7 +30,7 @@ var y = /* @__PURE__ */ a(f(), 1), b = (e) => {
30
30
  title: "SheerID Verification Form"
31
31
  }, S = (e) => {
32
32
  if (typeof e != "function") throw Error(`Expected type "function", but received ${typeof e}`);
33
- }, C = class e extends n {
33
+ }, C = class t extends n {
34
34
  containerElement;
35
35
  verificationUrl;
36
36
  isMobileDevice;
@@ -41,8 +41,8 @@ var y = /* @__PURE__ */ a(f(), 1), b = (e) => {
41
41
  onLoadEvents = [];
42
42
  onCleanupEvents = [];
43
43
  installType = "cdn_inline_iframe";
44
- constructor(n, r) {
45
- super(), e.isValidHttpUrl(r) ? (this.containerElement = n, this.verificationUrl = new URL(b(r)), this.verificationIframeUid = e.createUniqueId()) : t.error("Invalid URL. Provide a proper URL: https://example.com/", "iframe url");
44
+ constructor(e, n) {
45
+ super(), t.isValidHttpUrl(n) ? (this.containerElement = e, this.verificationUrl = new URL(b(n)), this.verificationIframeUid = t.createUniqueId()) : r.error("Invalid URL. Provide a proper URL: https://example.com/", "iframe url");
46
46
  }
47
47
  cleanup() {
48
48
  this.onCleanupEvents.forEach((e) => e());
@@ -62,14 +62,14 @@ var y = /* @__PURE__ */ a(f(), 1), b = (e) => {
62
62
  return this.iframe = document.createElement("iframe"), this.iframe.classList.add(e.className), this.iframe.title = e.title, this.iframe.src = this.getIframeUrl(), this.iframe.allow = "camera *;microphone *;geolocation *;clipboard-read *;clipboard-write *", this.iframe.onload = () => this.onLoad(), this.iframe;
63
63
  }
64
64
  getIframeUrl() {
65
- let e = new URL(this.verificationUrl);
66
- return e.searchParams.set("verificationIframeUid", this.verificationIframeUid), e.searchParams.set(u, window.location.href), e.searchParams.set(h, this.installType), this.locale && e.searchParams.set("locale", this.locale), e.toString();
65
+ let t = new URL(this.verificationUrl);
66
+ return t.searchParams.set("verificationIframeUid", this.verificationIframeUid), t.searchParams.set(e, window.location.href), t.searchParams.set(d, this.installType), this.locale && t.searchParams.set("locale", this.locale), t.toString();
67
67
  }
68
68
  addOnLoadEvent(e) {
69
69
  try {
70
70
  S(e);
71
71
  } catch {
72
- t.error("Invalid callback provided to iFrame.onLoad()", "iframe addOnLoadEvent");
72
+ r.error("Invalid callback provided to iFrame.onLoad()", "iframe addOnLoadEvent");
73
73
  return;
74
74
  }
75
75
  this.hasLoaded ? e() : this.onLoadEvents.push(e);
@@ -153,16 +153,16 @@ function T(e, t) {
153
153
  var E = s(), D = (e, t = "_top") => {
154
154
  window.open(e, t).focus();
155
155
  }, O = () => {
156
- let t = e().restApi.serviceUrl;
157
- return t.includes("services.sheerid.com") || t.includes("my.sheerid.com") ? "https://shr-id.com" : "https://aa-preview.sheerid.net";
156
+ let e = t().restApi.serviceUrl;
157
+ return e.includes("services.sheerid.com") || e.includes("my.sheerid.com") ? "https://shr-id.com" : "https://aa-preview.sheerid.net";
158
158
  }, k = ({ verificationService: e }) => {
159
- let { verificationResponse: t, programId: n, viewModel: a } = e, { verificationId: s, redirectUrl: u } = t, { config: f } = e.programTheme, h = y.useRef(null), b = !!u, x = t.rewardCode || "{rewardCode}", S = f.offerType === "noCode", { rewardDisplay: C } = f, w = !S && !!C.length, k = _("mockConsumerInfoState") || t.consumerInfoState, A = k === "consumerNotFound" || k === "consumerFoundNewFieldsAvailable", j = i(a, t);
159
+ let { verificationResponse: t, programId: n, viewModel: r } = e, { verificationId: a, redirectUrl: s } = t, { config: d } = e.programTheme, p = y.useRef(null), b = !!s, x = t.rewardCode || "{rewardCode}", S = d.offerType === "noCode", { rewardDisplay: C } = d, w = !S && !!C.length, k = _("mockConsumerInfoState") || t.consumerInfoState, A = k === "consumerNotFound" || k === "consumerFoundNewFieldsAvailable", j = h(r, t);
160
160
  return y.useEffect(() => {
161
- h.current && (h.current.innerHTML = "", T(h.current, `${O()}/affinity/${j}/${n}/${s}`));
161
+ p.current && (p.current.innerHTML = "", T(p.current, `${O()}/affinity/${j}/${n}/${a}`));
162
162
  }, [
163
- h,
163
+ p,
164
164
  n,
165
- s,
165
+ a,
166
166
  j
167
167
  ]), /* @__PURE__ */ (0, E.jsxs)("div", {
168
168
  id: "sid-step-success",
@@ -174,7 +174,7 @@ var E = s(), D = (e, t = "_top") => {
174
174
  children: [
175
175
  /* @__PURE__ */ (0, E.jsx)("div", {
176
176
  className: "sid-success-logo-container sid-l-horz-center",
177
- children: /* @__PURE__ */ (0, E.jsx)(p, {
177
+ children: /* @__PURE__ */ (0, E.jsx)(m, {
178
178
  verificationService: e,
179
179
  fallbackLogo: /* @__PURE__ */ (0, E.jsx)("img", {
180
180
  className: "sid-success-logo-default sid-l-lead-image",
@@ -183,9 +183,9 @@ var E = s(), D = (e, t = "_top") => {
183
183
  })
184
184
  })
185
185
  }),
186
- /* @__PURE__ */ (0, E.jsx)(m, {
186
+ /* @__PURE__ */ (0, E.jsx)(f, {
187
187
  align: "center",
188
- children: /* @__PURE__ */ (0, E.jsx)(d, {
188
+ children: /* @__PURE__ */ (0, E.jsx)(g, {
189
189
  id: "step.success.title",
190
190
  defaultMessage: "Success! You've been verified.",
191
191
  tagName: "h1"
@@ -193,7 +193,7 @@ var E = s(), D = (e, t = "_top") => {
193
193
  }),
194
194
  /* @__PURE__ */ (0, E.jsx)("div", {
195
195
  className: "sid-header__subtitle sid-l-horz-center",
196
- children: /* @__PURE__ */ (0, E.jsx)(d, {
196
+ children: /* @__PURE__ */ (0, E.jsx)(g, {
197
197
  id: "step.success.subtitle",
198
198
  defaultMessage: "You are now eligible for this special offer.",
199
199
  tagName: "p"
@@ -203,7 +203,7 @@ var E = s(), D = (e, t = "_top") => {
203
203
  }),
204
204
  w && /* @__PURE__ */ (0, E.jsx)("div", {
205
205
  className: "sid-l-horz-center sid-reward-container sid-l-space-top-md",
206
- children: C.map((e) => e === g.TEXT ? /* @__PURE__ */ (0, E.jsxs)("div", { children: [/* @__PURE__ */ (0, E.jsx)("div", {
206
+ children: C.map((e) => e === u.TEXT ? /* @__PURE__ */ (0, E.jsxs)("div", { children: [/* @__PURE__ */ (0, E.jsx)("div", {
207
207
  className: "sid-reward-code sid-l-space-top-md sid-h-jumbo-text sid-l-horz-center",
208
208
  role: "region",
209
209
  children: x
@@ -211,11 +211,11 @@ var E = s(), D = (e, t = "_top") => {
211
211
  className: "sid-l-space-top-md sid-h-bold-text sid-l-horz-center",
212
212
  children: /* @__PURE__ */ (0, E.jsx)(v, {
213
213
  textToCopy: x,
214
- notificationText: /* @__PURE__ */ (0, E.jsx)(d, {
214
+ notificationText: /* @__PURE__ */ (0, E.jsx)(g, {
215
215
  id: "copied",
216
216
  defaultMessage: "Copied"
217
217
  }),
218
- children: /* @__PURE__ */ (0, E.jsx)(d, {
218
+ children: /* @__PURE__ */ (0, E.jsx)(g, {
219
219
  id: "step.success.copyCouponCode",
220
220
  defaultMessage: "Copy coupon code"
221
221
  })
@@ -223,12 +223,12 @@ var E = s(), D = (e, t = "_top") => {
223
223
  })] }, e) : /* @__PURE__ */ (0, E.jsx)("img", {
224
224
  className: "sid-l-space-top-md sid-barcode",
225
225
  alt: x,
226
- src: o(s, "rewardCode", e)
226
+ src: o(a, "rewardCode", e)
227
227
  }, e))
228
228
  }),
229
229
  /* @__PURE__ */ (0, E.jsx)("div", {
230
230
  className: `sid-footer sid-success-footer sid-l-horz-center ${S ? "sid-l-space-top-md" : "sid-l-space-top-lg"}`,
231
- children: /* @__PURE__ */ (0, E.jsx)(d, {
231
+ children: /* @__PURE__ */ (0, E.jsx)(g, {
232
232
  id: "step.success.emailNotification",
233
233
  defaultMessage: "We have sent you a confirmation email with redemption instructions. Look for the email from {email}.",
234
234
  tagName: "p",
@@ -239,9 +239,9 @@ var E = s(), D = (e, t = "_top") => {
239
239
  className: "sid-submit sid-success-submit sid-l-space-top-md",
240
240
  children: /* @__PURE__ */ (0, E.jsx)("button", {
241
241
  type: "button",
242
- onClick: () => D(u),
242
+ onClick: () => D(s),
243
243
  className: "sid-btn sid-success-redirect-btn sid-btn--dark",
244
- children: /* @__PURE__ */ (0, E.jsx)(d, {
244
+ children: /* @__PURE__ */ (0, E.jsx)(g, {
245
245
  id: "step.success.redirectButtonText",
246
246
  defaultMessage: "Continue"
247
247
  })
@@ -250,10 +250,10 @@ var E = s(), D = (e, t = "_top") => {
250
250
  /* @__PURE__ */ (0, E.jsx)("div", {
251
251
  className: "sid-footer sid-success-verification-only-footer sid-l-horz-center sid-l-space-top-lg sid-h-small-text",
252
252
  role: "contentinfo",
253
- children: /* @__PURE__ */ (0, E.jsx)(d, {
253
+ children: /* @__PURE__ */ (0, E.jsx)(g, {
254
254
  id: "companyName",
255
255
  defaultMessage: "{Company}",
256
- children: (e) => /* @__PURE__ */ (0, E.jsx)(d, {
256
+ children: (e) => /* @__PURE__ */ (0, E.jsx)(g, {
257
257
  id: "step.success.verificationOnly",
258
258
  defaultMessage: "\n SheerID handles verification only.\n Now that you've been approved, please direct all questions about the\n promotion terms to {companyName} customer service.\n ",
259
259
  values: { companyName: e },
@@ -262,7 +262,7 @@ var E = s(), D = (e, t = "_top") => {
262
262
  })
263
263
  }),
264
264
  e.programTheme.affinityProgramEnabled && /* @__PURE__ */ (0, E.jsx)("div", {
265
- ref: h,
265
+ ref: p,
266
266
  id: "sid-affinity-iframe",
267
267
  className: "sid-affinity-container sid-l-full-width sid-l-space-top-lg"
268
268
  }),
@@ -271,28 +271,28 @@ var E = s(), D = (e, t = "_top") => {
271
271
  children: [
272
272
  /* @__PURE__ */ (0, E.jsx)("div", {
273
273
  className: "sid-remember-me-title",
274
- children: k === "consumerNotFound" ? /* @__PURE__ */ (0, E.jsx)(d, {
274
+ children: k === "consumerNotFound" ? /* @__PURE__ */ (0, E.jsx)(g, {
275
275
  id: "step.success.rememberMe.consumerNotFound.title",
276
276
  defaultMessage: "Save your info for 1-click verification"
277
- }) : /* @__PURE__ */ (0, E.jsx)(d, {
277
+ }) : /* @__PURE__ */ (0, E.jsx)(g, {
278
278
  id: "step.success.rememberMe.consumerFound.title",
279
279
  defaultMessage: "Update Your Profile"
280
280
  })
281
281
  }),
282
282
  /* @__PURE__ */ (0, E.jsx)("div", {
283
283
  className: "sid-remember-me-description",
284
- children: k === "consumerNotFound" ? /* @__PURE__ */ (0, E.jsx)(d, {
284
+ children: k === "consumerNotFound" ? /* @__PURE__ */ (0, E.jsx)(g, {
285
285
  id: "companyName",
286
286
  defaultMessage: "{Company}",
287
- children: (e) => /* @__PURE__ */ (0, E.jsx)(d, {
287
+ children: (e) => /* @__PURE__ */ (0, E.jsx)(g, {
288
288
  id: "step.success.rememberMe.consumerNotFound.description",
289
289
  defaultMessage: "Get faster access to future offers with {companyName} and other brands using SheerID's Remember Me service.",
290
290
  values: { companyName: e }
291
291
  })
292
- }) : /* @__PURE__ */ (0, E.jsx)(d, {
292
+ }) : /* @__PURE__ */ (0, E.jsx)(g, {
293
293
  id: "companyName",
294
294
  defaultMessage: "{Company}",
295
- children: (e) => /* @__PURE__ */ (0, E.jsx)(d, {
295
+ children: (e) => /* @__PURE__ */ (0, E.jsx)(g, {
296
296
  id: "step.success.rememberMe.consumerFound.description",
297
297
  defaultMessage: "Save new info for future offers with {companyName} and other brands using SheerID's Remember Me service.",
298
298
  values: { companyName: e }
@@ -302,17 +302,17 @@ var E = s(), D = (e, t = "_top") => {
302
302
  /* @__PURE__ */ (0, E.jsx)("button", {
303
303
  type: "button",
304
304
  onClick: () => {
305
- r(l.SUCCESS_REDIRECT_CLICKED, {
305
+ l(c.SUCCESS_REDIRECT_CLICKED, {
306
306
  programId: n,
307
307
  locale: j,
308
- verificationId: s
309
- }), D(c(j, n, s), "_blank");
308
+ verificationId: a
309
+ }), D(i(j, n, a), "_blank");
310
310
  },
311
311
  className: "sid-btn sid-remember-me-redirect-btn",
312
- children: k === "consumerNotFound" ? /* @__PURE__ */ (0, E.jsx)(d, {
312
+ children: k === "consumerNotFound" ? /* @__PURE__ */ (0, E.jsx)(g, {
313
313
  id: "step.success.rememberMe.consumerNotFound.button",
314
314
  defaultMessage: "Enroll Now"
315
- }) : /* @__PURE__ */ (0, E.jsx)(d, {
315
+ }) : /* @__PURE__ */ (0, E.jsx)(g, {
316
316
  id: "step.success.rememberMe.consumerFound.button",
317
317
  defaultMessage: "Save to Remember Me"
318
318
  })
@@ -1 +1 @@
1
- {"version":3,"file":"StepSuccess-BEVsDxMB.js","names":[],"sources":["../../src/lib/installScript/utils.ts","../../src/lib/installScript/constants.ts","../../src/lib/installScript/iframe.ts","../../src/lib/installScript/affinity.ts","../../src/components/StepSuccess/StepSuccessComponent.tsx"],"sourcesContent":["export const fadeInElements = (elements: HTMLElement[]) => {\n elements.forEach((element: HTMLElement) => {\n element.classList.add(\"fade-in\");\n });\n};\n\nexport const removeElement = (element: HTMLElement, transitionTimeout: number) => {\n element.classList.remove(\"fade-in\");\n window.setTimeout(() => {\n document.body.style.overflow = \"auto\";\n element.parentNode.removeChild(element);\n }, transitionTimeout);\n};\n\nexport const getVerificationUrl = (url: string): string => {\n const newUrl = new URL(url);\n const parentUrl = new URL(window.location.href);\n\n // Combine query parameters from parent window and provided url.\n // If duplicates, provided url parameters supercede.\n parentUrl.searchParams.forEach((value, key) => {\n if (!newUrl.searchParams.has(key)) {\n newUrl.searchParams.set(key, value);\n }\n });\n\n return newUrl.href;\n};\n","const iframeClassNames = {\n INLINE_IFRAME_CONTENT: \"sid-inline-iframe\",\n MODAL_WRAPPER: \"sid-modal__wrapper\",\n MODAL_IFRAME: \"sid-modal__iframe\",\n OVERLAY: \"sid-modal__overlay\",\n CLOSE_BUTTON: \"sid-modal__close-button\",\n CLOSE_TEXT: \"sid-modal__close-text\",\n CLOSE_ICON: \"sid-modal__close-icon\",\n};\n\nexport const iframeTitle = \"SheerID Verification Form\";\n\nexport const iframeConstants = {\n CLASS_NAMES: iframeClassNames,\n DEFAULT_MOBILE_THRESHOLD_WIDTH: 620,\n MODAL_OPACITY_TRANSITION_PERIOD: 300,\n};\n","import { logger } from \"@jslib/shared/utils/logger\";\n\nimport { QUERY_STRING_INSTALL_PAGE_URL, QUERY_STRING_INSTALL_TYPE } from \"../../constants\";\nimport { type InstallPageEvent } from \"../frames/frameMessages\";\nimport type { HookEvents, Options, PostMessageAction, ViewModel } from \"../types/types\";\nimport { EventEmitter } from \"../hooks/eventEmitter\";\n\nimport { getVerificationUrl } from \"./utils\";\nimport { iframeConstants as constants, iframeTitle } from \"./constants\";\n\nexport type IframeOptions = {\n className: string;\n title: string;\n};\n\nexport const DEFAULT_OPTIONS: IframeOptions = {\n className: constants.CLASS_NAMES.INLINE_IFRAME_CONTENT,\n title: iframeTitle,\n};\n\nexport const assertValidFunction = (candidate: Function) => {\n if (typeof candidate !== \"function\") {\n throw new Error(`Expected type \"function\", but received ${typeof candidate}`);\n }\n};\n\nclass Iframe extends EventEmitter<HookEvents> {\n containerElement: HTMLElement;\n\n verificationUrl: URL;\n\n isMobileDevice: boolean;\n\n iframe: HTMLIFrameElement;\n\n verificationIframeUid: string;\n\n locale: string;\n\n hasLoaded: boolean = false;\n\n onLoadEvents: Function[] = [];\n\n onCleanupEvents: (() => void)[] = [];\n\n installType = \"cdn_inline_iframe\";\n\n constructor(containerElement: HTMLElement, url: string) {\n super();\n\n if (Iframe.isValidHttpUrl(url)) {\n this.containerElement = containerElement;\n this.verificationUrl = new URL(getVerificationUrl(url));\n this.verificationIframeUid = Iframe.createUniqueId();\n } else {\n logger.error(\"Invalid URL. Provide a proper URL: https://example.com/\", \"iframe url\");\n }\n }\n\n cleanup(): void {\n this.onCleanupEvents.forEach((callback) => callback());\n }\n\n static createUniqueId(): string {\n return Math.random().toString(36).substr(2, 9);\n }\n\n static isValidHttpUrl(urlString: string): boolean {\n try {\n const url = new URL(urlString);\n return url.protocol === \"http:\" || url.protocol === \"https:\";\n } catch {\n return false;\n }\n }\n\n createIframe(options: IframeOptions): HTMLIFrameElement {\n this.iframe = document.createElement(\"iframe\");\n this.iframe.classList.add(options.className);\n this.iframe.title = options.title;\n this.iframe.src = this.getIframeUrl();\n this.iframe.allow = \"camera *;microphone *;geolocation *;clipboard-read *;clipboard-write *\";\n this.iframe.onload = () => this.onLoad();\n return this.iframe;\n }\n\n getIframeUrl(): string {\n const url = new URL(this.verificationUrl);\n url.searchParams.set(\"verificationIframeUid\", this.verificationIframeUid);\n url.searchParams.set(QUERY_STRING_INSTALL_PAGE_URL, window.location.href);\n url.searchParams.set(QUERY_STRING_INSTALL_TYPE, this.installType);\n if (this.locale) {\n url.searchParams.set(\"locale\", this.locale);\n }\n return url.toString();\n }\n\n // If iFrame hasn't loaded yet, queue up the callback\n // otherwise call it immediately\n addOnLoadEvent(callback: Function) {\n try {\n assertValidFunction(callback);\n } catch (e) {\n logger.error(\"Invalid callback provided to iFrame.onLoad()\", \"iframe addOnLoadEvent\");\n return;\n }\n if (this.hasLoaded) {\n callback();\n } else {\n this.onLoadEvents.push(callback);\n }\n }\n\n onLoad() {\n this.hasLoaded = true;\n this.onLoadEvents.forEach((callback) => callback());\n }\n\n /**\n * Using this to add parent window message listeners gives us\n * - Event Cleanup for modals\n * - verification of origin, verificationIframeUid, and message data structure\n */\n addWindowMessageListener(actionCb: (action: PostMessageAction) => void): void {\n const listener = (ev: MessageEvent) => {\n if (this.verificationUrl.origin !== ev.origin) {\n return;\n }\n\n if (ev.data.verificationIframeUid !== this.verificationIframeUid) {\n return;\n }\n\n if (ev.data.action && ev.data.action.type) {\n actionCb(ev.data.action);\n } else if (ev.data.action && ev.data.height) {\n // Older versions of the jslib send the full action object as the message\n actionCb(ev.data);\n }\n };\n\n window.addEventListener(\"message\", listener);\n this.onCleanupEvents.push(() => window.removeEventListener(\"message\", listener));\n }\n\n addActionListener() {\n this.addWindowMessageListener((messageAction) => {\n if (messageAction.type === \"hook\") {\n this.emit(messageAction.hook.name, messageAction.hook.data);\n }\n\n if (\n (messageAction.action && messageAction.action === \"updateHeight\") ||\n messageAction.type === \"updateHeight\"\n ) {\n // UX-1129: If we are getting height updates, turn off scrolling for\n // the iframe. This prevents browsers (Safari in particular) from\n // re-wrapping because of different widths and constantly changing\n // it's own height. `scrolling = \"no\"` is deprecated, but supported in\n // all browsers and fixes the problem well.\n this.iframe.scrolling = \"no\";\n this.iframe.style.height = `${messageAction.height}px`;\n }\n });\n }\n\n setViewModel(viewModel: Partial<ViewModel> | ViewModel) {\n const message: InstallPageEvent = {\n action: \"setViewModel\",\n viewModel,\n };\n\n this.addOnLoadEvent(() => {\n this.iframe.contentWindow.postMessage(message, this.verificationUrl.origin);\n });\n }\n\n setOptions(options: Options) {\n const message: InstallPageEvent = {\n action: \"setOptions\",\n options,\n };\n\n // HC-1181: Special casing options.locale to set locale as as QSP if the frame hasn't fully loaded yet.\n // This causes a re-load, but in most cases would happen within milliseconds of the frame initialization.\n // It prevents the race conditions that were failing to set the locale properly on load.\n // If the associated playwright tests passes without this is can be removed.\n if (!this.hasLoaded && options.locale) {\n this.locale = options.locale;\n const newUrl = this.getIframeUrl();\n if (newUrl !== this.iframe.src) {\n this.iframe.src = newUrl;\n }\n }\n\n this.addOnLoadEvent(() => {\n this.iframe.contentWindow.postMessage(message, this.verificationUrl.origin);\n });\n }\n\n setInstallType(installType: string) {\n this.installType = installType;\n }\n\n init(createIframe: boolean = true): void {\n if (createIframe) {\n this.createIframe(DEFAULT_OPTIONS);\n }\n\n this.addActionListener();\n this.containerElement.appendChild(this.iframe);\n }\n}\n\nexport default Iframe;\n","import type { PostMessageAction } from \"../types/types\";\n\nimport Iframe, { DEFAULT_OPTIONS, type IframeOptions } from \"./iframe\";\n\nexport const assertValidFunction = (candidate: Function) => {\n if (typeof candidate !== \"function\") {\n throw new Error(`Expected type \"function\", but received ${typeof candidate}`);\n }\n};\n\nclass AffinityIFrame extends Iframe {\n constructor(containerElement: HTMLElement, url: string) {\n super(containerElement, url);\n this.verificationUrl = new URL(this.getAffinityUrlWithUID(url));\n }\n\n static createUniqueId() {\n return Math.random().toString(36).substr(2, 9);\n }\n\n getAffinityUrlWithUID(url: string): string {\n const urlObj = new URL(url);\n urlObj.searchParams.set(\"affinityIframeUid\", this.verificationIframeUid);\n return urlObj.toString();\n }\n\n override addWindowMessageListener(actionCb: (action: PostMessageAction) => void): void {\n const listener = (ev: MessageEvent) => {\n if (this.verificationUrl.origin !== ev.origin) {\n return;\n }\n\n if (ev.data.affinityIframeUid !== this.verificationIframeUid) {\n return;\n }\n\n if (ev.data.action && ev.data.action.type) {\n actionCb(ev.data.action);\n }\n };\n\n window.addEventListener(\"message\", listener);\n this.onCleanupEvents.push(() => window.removeEventListener(\"message\", listener));\n }\n\n override createIframe(options: IframeOptions): HTMLIFrameElement {\n this.iframe = document.createElement(\"iframe\");\n this.iframe.classList.add(options.className);\n this.iframe.title = options.title;\n this.iframe.src = this.verificationUrl.href;\n this.iframe.allow = \"camera;microphone\";\n this.iframe.onload = () => this.onLoad();\n return this.iframe;\n }\n\n override init() {\n this.createIframe({ ...DEFAULT_OPTIONS, title: \"SheerID Affinity Offers\" });\n this.addActionListener();\n this.containerElement.appendChild(this.iframe);\n }\n}\n\nexport function loadAffinityIFrame(containerElement: HTMLElement, url: string): AffinityIFrame {\n const affinity = new AffinityIFrame(containerElement, url);\n affinity.init();\n return affinity;\n}\n\nexport default AffinityIFrame;\n","import React from \"react\";\nimport { FormattedHTMLMessage } from \"react-intl\";\n\nimport { loadAffinityIFrame } from \"@/lib/installScript/affinity\";\n\nimport {\n type VerificationService,\n type SuccessResponse,\n type ConsumerInfoState,\n} from \"../../lib/types/types\";\nimport { LogoComponent } from \"../LogoComponent/LogoComponent\";\nimport { CopyToClipboard } from \"../CopyToClipboard/CopyToClipboardComponent\";\nimport { getBarcodeUrl } from \"../../lib/ServerApi/ApiUrls\";\nimport { RewardDisplayEnum } from \"../../lib/types/runtimeTypes\";\nimport { getLocaleSafely } from \"../../lib/intl/intl\";\nimport { getRememberMeRedirectDestination } from \"../../lib/utils/stepComponentHelpers/stepComponentHelpers\";\nimport { getQueryOrOption } from \"../../lib/ServerApi/TestingRouteOverrides\";\nimport { QUERY_STRING_REMEMBER_ME_OVERRIDE } from \"../../constants\";\nimport { getOptions } from \"../../options/options\";\nimport { AnnouncingHeader } from \"../AnnouncingHeader/AnnouncingHeader\";\nimport { EventName, recordCTAClickEvent } from \"../../lib/GoogleAnalytics/ga\";\n\ninterface StepSuccessProps {\n verificationService: VerificationService;\n}\n\nconst redirect = (redirectDestination: string, target: string = \"_top\") => {\n const win = window.open(redirectDestination, target);\n win.focus();\n};\n\nconst getAffinityBaseUrl = () => {\n const options = getOptions();\n const apiBaseUrl = options.restApi.serviceUrl;\n\n if (apiBaseUrl.includes(\"services.sheerid.com\") || apiBaseUrl.includes(\"my.sheerid.com\")) {\n return \"https://shr-id.com\";\n }\n\n return \"https://aa-preview.sheerid.net\";\n};\n\nconst StepSuccess = ({ verificationService }: StepSuccessProps) => {\n const { verificationResponse, programId, viewModel } = verificationService;\n const { verificationId, redirectUrl } = verificationResponse as SuccessResponse;\n const { config } = verificationService.programTheme;\n const affinityRef = React.useRef<HTMLDivElement>(null);\n\n const showRedirect = Boolean(redirectUrl);\n const rewardCode = (verificationResponse as SuccessResponse).rewardCode || \"{rewardCode}\";\n const noCodeType = config.offerType === \"noCode\";\n\n const { rewardDisplay } = config;\n const showReward = !noCodeType && !!rewardDisplay.length;\n\n const mockConsumerInfoState = getQueryOrOption(\n QUERY_STRING_REMEMBER_ME_OVERRIDE,\n ) as ConsumerInfoState;\n const consumerInfoState: ConsumerInfoState =\n mockConsumerInfoState || (verificationResponse as SuccessResponse).consumerInfoState;\n const showRememberMeFooter =\n consumerInfoState === \"consumerNotFound\" ||\n consumerInfoState === \"consumerFoundNewFieldsAvailable\";\n\n const locale = getLocaleSafely(viewModel, verificationResponse);\n\n const handleOnRedirect = () => {\n recordCTAClickEvent(EventName.SUCCESS_REDIRECT_CLICKED, {\n programId,\n locale,\n verificationId,\n });\n\n redirect(getRememberMeRedirectDestination(locale, programId, verificationId), \"_blank\");\n };\n\n React.useEffect(() => {\n // Load the affinity widget if enabled\n if (affinityRef.current) {\n affinityRef.current.innerHTML = \"\";\n loadAffinityIFrame(\n affinityRef.current,\n `${getAffinityBaseUrl()}/affinity/${locale}/${programId}/${verificationId}`,\n );\n }\n }, [affinityRef, programId, verificationId, locale]);\n\n return (\n <div id=\"sid-step-success\" className=\"sid-success-container sid-l-container\" role=\"region\">\n <div className=\"sid-header sid-l-horz-center sid-l-space-top-md\">\n <div className=\"sid-success-logo-container sid-l-horz-center\">\n <LogoComponent\n verificationService={verificationService}\n fallbackLogo={\n <img\n className=\"sid-success-logo-default sid-l-lead-image\"\n alt=\"\"\n src=\"https://assets-resources.sheerid.com/common/images/2018/icons/circle-check.svg\"\n />\n }\n />\n </div>\n <AnnouncingHeader align=\"center\">\n <FormattedHTMLMessage\n id=\"step.success.title\"\n defaultMessage=\"Success! You've been verified.\"\n tagName=\"h1\"\n />\n </AnnouncingHeader>\n <div className=\"sid-header__subtitle sid-l-horz-center\">\n <FormattedHTMLMessage\n id=\"step.success.subtitle\"\n defaultMessage=\"You are now eligible for this special offer.\"\n tagName=\"p\"\n />\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={rewardCode}\n src={getBarcodeUrl(verificationId, \"rewardCode\", displayType)}\n />\n );\n return (\n <div key={displayType}>\n <div\n className=\"sid-reward-code sid-l-space-top-md sid-h-jumbo-text sid-l-horz-center\"\n role=\"region\"\n >\n {rewardCode}\n </div>\n <div className=\"sid-l-space-top-md sid-h-bold-text sid-l-horz-center\">\n <CopyToClipboard\n textToCopy={rewardCode}\n notificationText={<FormattedHTMLMessage id=\"copied\" defaultMessage=\"Copied\" />}\n >\n <FormattedHTMLMessage\n id=\"step.success.copyCouponCode\"\n defaultMessage=\"Copy coupon code\"\n />\n </CopyToClipboard>\n </div>\n </div>\n );\n })}\n </div>\n )}\n\n <div\n className={`sid-footer sid-success-footer sid-l-horz-center ${\n noCodeType ? \"sid-l-space-top-md\" : \"sid-l-space-top-lg\"\n }`}\n >\n <FormattedHTMLMessage\n id=\"step.success.emailNotification\"\n defaultMessage=\"We have sent you a confirmation email with redemption instructions. Look for the email from {email}.\"\n tagName=\"p\"\n values={{ email: \"verify@sheerid.com\" }}\n />\n </div>\n\n {showRedirect ? (\n <div className=\"sid-submit sid-success-submit sid-l-space-top-md\">\n <button\n type=\"button\"\n onClick={() => redirect(redirectUrl)}\n className=\"sid-btn sid-success-redirect-btn sid-btn--dark\"\n >\n <FormattedHTMLMessage id=\"step.success.redirectButtonText\" defaultMessage=\"Continue\" />\n </button>\n </div>\n ) : (\n \"\"\n )}\n\n <div\n className=\"sid-footer sid-success-verification-only-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.success.verificationOnly\"\n defaultMessage={`\n SheerID handles verification only.\n Now that you've been approved, please direct all questions about the\n promotion terms to {companyName} customer service.\n `}\n values={{ companyName }}\n tagName=\"p\"\n />\n )}\n </FormattedHTMLMessage>\n </div>\n\n {verificationService.programTheme.affinityProgramEnabled && (\n <div\n ref={affinityRef}\n id=\"sid-affinity-iframe\"\n className=\"sid-affinity-container sid-l-full-width sid-l-space-top-lg\"\n />\n )}\n\n {showRememberMeFooter && (\n <div className=\"sid-remember-me-footer-container\">\n <div className=\"sid-remember-me-title\">\n {consumerInfoState === \"consumerNotFound\" ? (\n <FormattedHTMLMessage\n id=\"step.success.rememberMe.consumerNotFound.title\"\n defaultMessage=\"Save your info for 1-click verification\"\n />\n ) : (\n <FormattedHTMLMessage\n id=\"step.success.rememberMe.consumerFound.title\"\n defaultMessage=\"Update Your Profile\"\n />\n )}\n </div>\n <div className=\"sid-remember-me-description\">\n {consumerInfoState === \"consumerNotFound\" ? (\n <FormattedHTMLMessage id=\"companyName\" defaultMessage=\"{Company}\">\n {(companyName) => (\n <FormattedHTMLMessage\n id=\"step.success.rememberMe.consumerNotFound.description\"\n defaultMessage=\"Get faster access to future offers with {companyName} and other brands using SheerID's Remember Me service.\"\n values={{ companyName }}\n />\n )}\n </FormattedHTMLMessage>\n ) : (\n <FormattedHTMLMessage id=\"companyName\" defaultMessage=\"{Company}\">\n {(companyName) => (\n <FormattedHTMLMessage\n id=\"step.success.rememberMe.consumerFound.description\"\n defaultMessage=\"Save new info for future offers with {companyName} and other brands using SheerID's Remember Me service.\"\n values={{ companyName }}\n />\n )}\n </FormattedHTMLMessage>\n )}\n </div>\n <button\n type=\"button\"\n onClick={handleOnRedirect}\n className=\"sid-btn sid-remember-me-redirect-btn\"\n >\n {consumerInfoState === \"consumerNotFound\" ? (\n <FormattedHTMLMessage\n id=\"step.success.rememberMe.consumerNotFound.button\"\n defaultMessage=\"Enroll Now\"\n />\n ) : (\n <FormattedHTMLMessage\n id=\"step.success.rememberMe.consumerFound.button\"\n defaultMessage=\"Save to Remember Me\"\n />\n )}\n </button>\n </div>\n )}\n </div>\n );\n};\n\nexport const StepSuccessComponent = StepSuccess;\n"],"mappings":";;;mCAcA,KAAA,MAAA;;;;;AAaA,GEZa,IAAiC;CAC5C,WAAW;EDHX,aAAa;GAZb,uBAAuB;GACvB,eAAe;GACf,cAAc;GACd,SAAS;GACT,cAAc;GACd,YAAY;GACZ,YAAY;EAMC;EACb,gCAAgC;EAChC,iCAAiC;CCCtB,EAAU,YAAY;CACjC,OAAO;AACT,GAEa,KAAuB,MAAwB;CAC1D,IAAI,OAAO,KAAc,YACvB,MAAU,MAAM,0CAA0C,OAAO,GAAW;AAEhF,GAEM,IAAN,MAAM,UAAe,EAAyB;CAC5C;CAEA;CAEA;CAEA;CAEA;CAEA;CAEA,YAAqB;CAErB,eAA2B,CAAC;CAE5B,kBAAkC,CAAC;CAEnC,cAAc;CAEd,YAAY,GAA+B,GAAa;EAGtD,AAFA,MAAM,GAEF,EAAO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AAC,UAAD;MACE,MAAK;MACL,eAxLqB;OAO7B,AANA,EAAoB,EAAU,0BAA0B;QACtD;QACA;QACA;OACF,CAAC,GAED,EAAS,EAAiC,GAAQ,GAAW,CAAc,GAAG,QAAQ;MACxF;MAiLU,WAAU;gBAET,MAAsB,qBACrB,iBAAA,GAAA,EAAA,KAAC,GAAD;OACE,IAAG;OACH,gBAAe;MAChB,CAAA,IAED,iBAAA,GAAA,EAAA,KAAC,GAAD;OACE,IAAG;OACH,gBAAe;MAChB,CAAA;KAEG,CAAA;IACL;;EAEJ;;AAET"}
1
+ {"version":3,"file":"StepSuccess-DH_SCQ3o.js","names":[],"sources":["../../src/lib/installScript/utils.ts","../../src/lib/installScript/constants.ts","../../src/lib/installScript/iframe.ts","../../src/lib/installScript/affinity.ts","../../src/components/StepSuccess/StepSuccessComponent.tsx"],"sourcesContent":["export const fadeInElements = (elements: HTMLElement[]) => {\n elements.forEach((element: HTMLElement) => {\n element.classList.add(\"fade-in\");\n });\n};\n\nexport const removeElement = (element: HTMLElement, transitionTimeout: number) => {\n element.classList.remove(\"fade-in\");\n window.setTimeout(() => {\n document.body.style.overflow = \"auto\";\n element.parentNode.removeChild(element);\n }, transitionTimeout);\n};\n\nexport const getVerificationUrl = (url: string): string => {\n const newUrl = new URL(url);\n const parentUrl = new URL(window.location.href);\n\n // Combine query parameters from parent window and provided url.\n // If duplicates, provided url parameters supercede.\n parentUrl.searchParams.forEach((value, key) => {\n if (!newUrl.searchParams.has(key)) {\n newUrl.searchParams.set(key, value);\n }\n });\n\n return newUrl.href;\n};\n","const iframeClassNames = {\n INLINE_IFRAME_CONTENT: \"sid-inline-iframe\",\n MODAL_WRAPPER: \"sid-modal__wrapper\",\n MODAL_IFRAME: \"sid-modal__iframe\",\n OVERLAY: \"sid-modal__overlay\",\n CLOSE_BUTTON: \"sid-modal__close-button\",\n CLOSE_TEXT: \"sid-modal__close-text\",\n CLOSE_ICON: \"sid-modal__close-icon\",\n};\n\nexport const iframeTitle = \"SheerID Verification Form\";\n\nexport const iframeConstants = {\n CLASS_NAMES: iframeClassNames,\n DEFAULT_MOBILE_THRESHOLD_WIDTH: 620,\n MODAL_OPACITY_TRANSITION_PERIOD: 300,\n};\n","import { logger } from \"@jslib/shared/utils/logger\";\n\nimport { QUERY_STRING_INSTALL_PAGE_URL, QUERY_STRING_INSTALL_TYPE } from \"../../constants\";\nimport { type InstallPageEvent } from \"../frames/frameMessages\";\nimport type { HookEvents, Options, PostMessageAction, ViewModel } from \"../types/types\";\nimport { EventEmitter } from \"../hooks/eventEmitter\";\n\nimport { getVerificationUrl } from \"./utils\";\nimport { iframeConstants as constants, iframeTitle } from \"./constants\";\n\nexport type IframeOptions = {\n className: string;\n title: string;\n};\n\nexport const DEFAULT_OPTIONS: IframeOptions = {\n className: constants.CLASS_NAMES.INLINE_IFRAME_CONTENT,\n title: iframeTitle,\n};\n\nexport const assertValidFunction = (candidate: Function) => {\n if (typeof candidate !== \"function\") {\n throw new Error(`Expected type \"function\", but received ${typeof candidate}`);\n }\n};\n\nclass Iframe extends EventEmitter<HookEvents> {\n containerElement: HTMLElement;\n\n verificationUrl: URL;\n\n isMobileDevice: boolean;\n\n iframe: HTMLIFrameElement;\n\n verificationIframeUid: string;\n\n locale: string;\n\n hasLoaded: boolean = false;\n\n onLoadEvents: Function[] = [];\n\n onCleanupEvents: (() => void)[] = [];\n\n installType = \"cdn_inline_iframe\";\n\n constructor(containerElement: HTMLElement, url: string) {\n super();\n\n if (Iframe.isValidHttpUrl(url)) {\n this.containerElement = containerElement;\n this.verificationUrl = new URL(getVerificationUrl(url));\n this.verificationIframeUid = Iframe.createUniqueId();\n } else {\n logger.error(\"Invalid URL. Provide a proper URL: https://example.com/\", \"iframe url\");\n }\n }\n\n cleanup(): void {\n this.onCleanupEvents.forEach((callback) => callback());\n }\n\n static createUniqueId(): string {\n return Math.random().toString(36).substr(2, 9);\n }\n\n static isValidHttpUrl(urlString: string): boolean {\n try {\n const url = new URL(urlString);\n return url.protocol === \"http:\" || url.protocol === \"https:\";\n } catch {\n return false;\n }\n }\n\n createIframe(options: IframeOptions): HTMLIFrameElement {\n this.iframe = document.createElement(\"iframe\");\n this.iframe.classList.add(options.className);\n this.iframe.title = options.title;\n this.iframe.src = this.getIframeUrl();\n this.iframe.allow = \"camera *;microphone *;geolocation *;clipboard-read *;clipboard-write *\";\n this.iframe.onload = () => this.onLoad();\n return this.iframe;\n }\n\n getIframeUrl(): string {\n const url = new URL(this.verificationUrl);\n url.searchParams.set(\"verificationIframeUid\", this.verificationIframeUid);\n url.searchParams.set(QUERY_STRING_INSTALL_PAGE_URL, window.location.href);\n url.searchParams.set(QUERY_STRING_INSTALL_TYPE, this.installType);\n if (this.locale) {\n url.searchParams.set(\"locale\", this.locale);\n }\n return url.toString();\n }\n\n // If iFrame hasn't loaded yet, queue up the callback\n // otherwise call it immediately\n addOnLoadEvent(callback: Function) {\n try {\n assertValidFunction(callback);\n } catch (e) {\n logger.error(\"Invalid callback provided to iFrame.onLoad()\", \"iframe addOnLoadEvent\");\n return;\n }\n if (this.hasLoaded) {\n callback();\n } else {\n this.onLoadEvents.push(callback);\n }\n }\n\n onLoad() {\n this.hasLoaded = true;\n this.onLoadEvents.forEach((callback) => callback());\n }\n\n /**\n * Using this to add parent window message listeners gives us\n * - Event Cleanup for modals\n * - verification of origin, verificationIframeUid, and message data structure\n */\n addWindowMessageListener(actionCb: (action: PostMessageAction) => void): void {\n const listener = (ev: MessageEvent) => {\n if (this.verificationUrl.origin !== ev.origin) {\n return;\n }\n\n if (ev.data.verificationIframeUid !== this.verificationIframeUid) {\n return;\n }\n\n if (ev.data.action && ev.data.action.type) {\n actionCb(ev.data.action);\n } else if (ev.data.action && ev.data.height) {\n // Older versions of the jslib send the full action object as the message\n actionCb(ev.data);\n }\n };\n\n window.addEventListener(\"message\", listener);\n this.onCleanupEvents.push(() => window.removeEventListener(\"message\", listener));\n }\n\n addActionListener() {\n this.addWindowMessageListener((messageAction) => {\n if (messageAction.type === \"hook\") {\n this.emit(messageAction.hook.name, messageAction.hook.data);\n }\n\n if (\n (messageAction.action && messageAction.action === \"updateHeight\") ||\n messageAction.type === \"updateHeight\"\n ) {\n // UX-1129: If we are getting height updates, turn off scrolling for\n // the iframe. This prevents browsers (Safari in particular) from\n // re-wrapping because of different widths and constantly changing\n // it's own height. `scrolling = \"no\"` is deprecated, but supported in\n // all browsers and fixes the problem well.\n this.iframe.scrolling = \"no\";\n this.iframe.style.height = `${messageAction.height}px`;\n }\n });\n }\n\n setViewModel(viewModel: Partial<ViewModel> | ViewModel) {\n const message: InstallPageEvent = {\n action: \"setViewModel\",\n viewModel,\n };\n\n this.addOnLoadEvent(() => {\n this.iframe.contentWindow.postMessage(message, this.verificationUrl.origin);\n });\n }\n\n setOptions(options: Options) {\n const message: InstallPageEvent = {\n action: \"setOptions\",\n options,\n };\n\n // HC-1181: Special casing options.locale to set locale as as QSP if the frame hasn't fully loaded yet.\n // This causes a re-load, but in most cases would happen within milliseconds of the frame initialization.\n // It prevents the race conditions that were failing to set the locale properly on load.\n // If the associated playwright tests passes without this is can be removed.\n if (!this.hasLoaded && options.locale) {\n this.locale = options.locale;\n const newUrl = this.getIframeUrl();\n if (newUrl !== this.iframe.src) {\n this.iframe.src = newUrl;\n }\n }\n\n this.addOnLoadEvent(() => {\n this.iframe.contentWindow.postMessage(message, this.verificationUrl.origin);\n });\n }\n\n setInstallType(installType: string) {\n this.installType = installType;\n }\n\n init(createIframe: boolean = true): void {\n if (createIframe) {\n this.createIframe(DEFAULT_OPTIONS);\n }\n\n this.addActionListener();\n this.containerElement.appendChild(this.iframe);\n }\n}\n\nexport default Iframe;\n","import type { PostMessageAction } from \"../types/types\";\n\nimport Iframe, { DEFAULT_OPTIONS, type IframeOptions } from \"./iframe\";\n\nexport const assertValidFunction = (candidate: Function) => {\n if (typeof candidate !== \"function\") {\n throw new Error(`Expected type \"function\", but received ${typeof candidate}`);\n }\n};\n\nclass AffinityIFrame extends Iframe {\n constructor(containerElement: HTMLElement, url: string) {\n super(containerElement, url);\n this.verificationUrl = new URL(this.getAffinityUrlWithUID(url));\n }\n\n static createUniqueId() {\n return Math.random().toString(36).substr(2, 9);\n }\n\n getAffinityUrlWithUID(url: string): string {\n const urlObj = new URL(url);\n urlObj.searchParams.set(\"affinityIframeUid\", this.verificationIframeUid);\n return urlObj.toString();\n }\n\n override addWindowMessageListener(actionCb: (action: PostMessageAction) => void): void {\n const listener = (ev: MessageEvent) => {\n if (this.verificationUrl.origin !== ev.origin) {\n return;\n }\n\n if (ev.data.affinityIframeUid !== this.verificationIframeUid) {\n return;\n }\n\n if (ev.data.action && ev.data.action.type) {\n actionCb(ev.data.action);\n }\n };\n\n window.addEventListener(\"message\", listener);\n this.onCleanupEvents.push(() => window.removeEventListener(\"message\", listener));\n }\n\n override createIframe(options: IframeOptions): HTMLIFrameElement {\n this.iframe = document.createElement(\"iframe\");\n this.iframe.classList.add(options.className);\n this.iframe.title = options.title;\n this.iframe.src = this.verificationUrl.href;\n this.iframe.allow = \"camera;microphone\";\n this.iframe.onload = () => this.onLoad();\n return this.iframe;\n }\n\n override init() {\n this.createIframe({ ...DEFAULT_OPTIONS, title: \"SheerID Affinity Offers\" });\n this.addActionListener();\n this.containerElement.appendChild(this.iframe);\n }\n}\n\nexport function loadAffinityIFrame(containerElement: HTMLElement, url: string): AffinityIFrame {\n const affinity = new AffinityIFrame(containerElement, url);\n affinity.init();\n return affinity;\n}\n\nexport default AffinityIFrame;\n","import React from \"react\";\nimport { FormattedHTMLMessage } from \"react-intl\";\n\nimport { loadAffinityIFrame } from \"@/lib/installScript/affinity\";\n\nimport {\n type VerificationService,\n type SuccessResponse,\n type ConsumerInfoState,\n} from \"../../lib/types/types\";\nimport { LogoComponent } from \"../LogoComponent/LogoComponent\";\nimport { CopyToClipboard } from \"../CopyToClipboard/CopyToClipboardComponent\";\nimport { getBarcodeUrl } from \"../../lib/ServerApi/ApiUrls\";\nimport { RewardDisplayEnum } from \"../../lib/types/runtimeTypes\";\nimport { getLocaleSafely } from \"../../lib/intl/intl\";\nimport { getRememberMeRedirectDestination } from \"../../lib/utils/stepComponentHelpers/stepComponentHelpers\";\nimport { getQueryOrOption } from \"../../lib/ServerApi/TestingRouteOverrides\";\nimport { QUERY_STRING_REMEMBER_ME_OVERRIDE } from \"../../constants\";\nimport { getOptions } from \"../../options/options\";\nimport { AnnouncingHeader } from \"../AnnouncingHeader/AnnouncingHeader\";\nimport { EventName, recordCTAClickEvent } from \"../../lib/GoogleAnalytics/ga\";\n\ninterface StepSuccessProps {\n verificationService: VerificationService;\n}\n\nconst redirect = (redirectDestination: string, target: string = \"_top\") => {\n const win = window.open(redirectDestination, target);\n win.focus();\n};\n\nconst getAffinityBaseUrl = () => {\n const options = getOptions();\n const apiBaseUrl = options.restApi.serviceUrl;\n\n if (apiBaseUrl.includes(\"services.sheerid.com\") || apiBaseUrl.includes(\"my.sheerid.com\")) {\n return \"https://shr-id.com\";\n }\n\n return \"https://aa-preview.sheerid.net\";\n};\n\nconst StepSuccess = ({ verificationService }: StepSuccessProps) => {\n const { verificationResponse, programId, viewModel } = verificationService;\n const { verificationId, redirectUrl } = verificationResponse as SuccessResponse;\n const { config } = verificationService.programTheme;\n const affinityRef = React.useRef<HTMLDivElement>(null);\n\n const showRedirect = Boolean(redirectUrl);\n const rewardCode = (verificationResponse as SuccessResponse).rewardCode || \"{rewardCode}\";\n const noCodeType = config.offerType === \"noCode\";\n\n const { rewardDisplay } = config;\n const showReward = !noCodeType && !!rewardDisplay.length;\n\n const mockConsumerInfoState = getQueryOrOption(\n QUERY_STRING_REMEMBER_ME_OVERRIDE,\n ) as ConsumerInfoState;\n const consumerInfoState: ConsumerInfoState =\n mockConsumerInfoState || (verificationResponse as SuccessResponse).consumerInfoState;\n const showRememberMeFooter =\n consumerInfoState === \"consumerNotFound\" ||\n consumerInfoState === \"consumerFoundNewFieldsAvailable\";\n\n const locale = getLocaleSafely(viewModel, verificationResponse);\n\n const handleOnRedirect = () => {\n recordCTAClickEvent(EventName.SUCCESS_REDIRECT_CLICKED, {\n programId,\n locale,\n verificationId,\n });\n\n redirect(getRememberMeRedirectDestination(locale, programId, verificationId), \"_blank\");\n };\n\n React.useEffect(() => {\n // Load the affinity widget if enabled\n if (affinityRef.current) {\n affinityRef.current.innerHTML = \"\";\n loadAffinityIFrame(\n affinityRef.current,\n `${getAffinityBaseUrl()}/affinity/${locale}/${programId}/${verificationId}`,\n );\n }\n }, [affinityRef, programId, verificationId, locale]);\n\n return (\n <div id=\"sid-step-success\" className=\"sid-success-container sid-l-container\" role=\"region\">\n <div className=\"sid-header sid-l-horz-center sid-l-space-top-md\">\n <div className=\"sid-success-logo-container sid-l-horz-center\">\n <LogoComponent\n verificationService={verificationService}\n fallbackLogo={\n <img\n className=\"sid-success-logo-default sid-l-lead-image\"\n alt=\"\"\n src=\"https://assets-resources.sheerid.com/common/images/2018/icons/circle-check.svg\"\n />\n }\n />\n </div>\n <AnnouncingHeader align=\"center\">\n <FormattedHTMLMessage\n id=\"step.success.title\"\n defaultMessage=\"Success! You've been verified.\"\n tagName=\"h1\"\n />\n </AnnouncingHeader>\n <div className=\"sid-header__subtitle sid-l-horz-center\">\n <FormattedHTMLMessage\n id=\"step.success.subtitle\"\n defaultMessage=\"You are now eligible for this special offer.\"\n tagName=\"p\"\n />\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={rewardCode}\n src={getBarcodeUrl(verificationId, \"rewardCode\", displayType)}\n />\n );\n return (\n <div key={displayType}>\n <div\n className=\"sid-reward-code sid-l-space-top-md sid-h-jumbo-text sid-l-horz-center\"\n role=\"region\"\n >\n {rewardCode}\n </div>\n <div className=\"sid-l-space-top-md sid-h-bold-text sid-l-horz-center\">\n <CopyToClipboard\n textToCopy={rewardCode}\n notificationText={<FormattedHTMLMessage id=\"copied\" defaultMessage=\"Copied\" />}\n >\n <FormattedHTMLMessage\n id=\"step.success.copyCouponCode\"\n defaultMessage=\"Copy coupon code\"\n />\n </CopyToClipboard>\n </div>\n </div>\n );\n })}\n </div>\n )}\n\n <div\n className={`sid-footer sid-success-footer sid-l-horz-center ${\n noCodeType ? \"sid-l-space-top-md\" : \"sid-l-space-top-lg\"\n }`}\n >\n <FormattedHTMLMessage\n id=\"step.success.emailNotification\"\n defaultMessage=\"We have sent you a confirmation email with redemption instructions. Look for the email from {email}.\"\n tagName=\"p\"\n values={{ email: \"verify@sheerid.com\" }}\n />\n </div>\n\n {showRedirect ? (\n <div className=\"sid-submit sid-success-submit sid-l-space-top-md\">\n <button\n type=\"button\"\n onClick={() => redirect(redirectUrl)}\n className=\"sid-btn sid-success-redirect-btn sid-btn--dark\"\n >\n <FormattedHTMLMessage id=\"step.success.redirectButtonText\" defaultMessage=\"Continue\" />\n </button>\n </div>\n ) : (\n \"\"\n )}\n\n <div\n className=\"sid-footer sid-success-verification-only-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.success.verificationOnly\"\n defaultMessage={`\n SheerID handles verification only.\n Now that you've been approved, please direct all questions about the\n promotion terms to {companyName} customer service.\n `}\n values={{ companyName }}\n tagName=\"p\"\n />\n )}\n </FormattedHTMLMessage>\n </div>\n\n {verificationService.programTheme.affinityProgramEnabled && (\n <div\n ref={affinityRef}\n id=\"sid-affinity-iframe\"\n className=\"sid-affinity-container sid-l-full-width sid-l-space-top-lg\"\n />\n )}\n\n {showRememberMeFooter && (\n <div className=\"sid-remember-me-footer-container\">\n <div className=\"sid-remember-me-title\">\n {consumerInfoState === \"consumerNotFound\" ? (\n <FormattedHTMLMessage\n id=\"step.success.rememberMe.consumerNotFound.title\"\n defaultMessage=\"Save your info for 1-click verification\"\n />\n ) : (\n <FormattedHTMLMessage\n id=\"step.success.rememberMe.consumerFound.title\"\n defaultMessage=\"Update Your Profile\"\n />\n )}\n </div>\n <div className=\"sid-remember-me-description\">\n {consumerInfoState === \"consumerNotFound\" ? (\n <FormattedHTMLMessage id=\"companyName\" defaultMessage=\"{Company}\">\n {(companyName) => (\n <FormattedHTMLMessage\n id=\"step.success.rememberMe.consumerNotFound.description\"\n defaultMessage=\"Get faster access to future offers with {companyName} and other brands using SheerID's Remember Me service.\"\n values={{ companyName }}\n />\n )}\n </FormattedHTMLMessage>\n ) : (\n <FormattedHTMLMessage id=\"companyName\" defaultMessage=\"{Company}\">\n {(companyName) => (\n <FormattedHTMLMessage\n id=\"step.success.rememberMe.consumerFound.description\"\n defaultMessage=\"Save new info for future offers with {companyName} and other brands using SheerID's Remember Me service.\"\n values={{ companyName }}\n />\n )}\n </FormattedHTMLMessage>\n )}\n </div>\n <button\n type=\"button\"\n onClick={handleOnRedirect}\n className=\"sid-btn sid-remember-me-redirect-btn\"\n >\n {consumerInfoState === \"consumerNotFound\" ? (\n <FormattedHTMLMessage\n id=\"step.success.rememberMe.consumerNotFound.button\"\n defaultMessage=\"Enroll Now\"\n />\n ) : (\n <FormattedHTMLMessage\n id=\"step.success.rememberMe.consumerFound.button\"\n defaultMessage=\"Save to Remember Me\"\n />\n )}\n </button>\n </div>\n )}\n </div>\n );\n};\n\nexport const StepSuccessComponent = StepSuccess;\n"],"mappings":";;;mCAcA,KAAA,MAAA;;;;;AAaA,GEZa,IAAiC;CAC5C,WAAW;EDHX,aAAa;GAZb,uBAAuB;GACvB,eAAe;GACf,cAAc;GACd,SAAS;GACT,cAAc;GACd,YAAY;GACZ,YAAY;EAMC;EACb,gCAAgC;EAChC,iCAAiC;CCCtB,EAAU,YAAY;CACjC,OAAO;AACT,GAEa,KAAuB,MAAwB;CAC1D,IAAI,OAAO,KAAc,YACvB,MAAU,MAAM,0CAA0C,OAAO,GAAW;AAEhF,GAEM,IAAN,MAAM,U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IAAG;OAAc,gBAAe;kBAClD,MACA,iBAAA,GAAA,EAAA,KAAC,GAAD;QACE,IAAG;QACH,gBAAe;QACf,QAAQ,EAAE,eAAY;OACvB,CAAA;MAEiB,CAAA;KAErB,CAAA;KACL,iBAAA,GAAA,EAAA,KAAC,UAAD;MACE,MAAK;MACL,eAxLqB;OAO7B,AANA,EAAoB,EAAU,0BAA0B;QACtD;QACA;QACA;OACF,CAAC,GAED,EAAS,EAAiC,GAAQ,GAAW,CAAc,GAAG,QAAQ;MACxF;MAiLU,WAAU;gBAET,MAAsB,qBACrB,iBAAA,GAAA,EAAA,KAAC,GAAD;OACE,IAAG;OACH,gBAAe;MAChB,CAAA,IAED,iBAAA,GAAA,EAAA,KAAC,GAAD;OACE,IAAG;OACH,gBAAe;MAChB,CAAA;KAEG,CAAA;IACL;;EAEJ;;AAET"}
@@ -1,24 +1,28 @@
1
1
 
2
2
  /**
3
- * VERSION: 2.249.0
4
- * BUILD_TIMESTAMP: 1782520953730
5
- * BUILD_DATE: Sat Jun 27 2026 00:42:33 GMT+0000 (Coordinated Universal Time)
6
- * BUILD_COMMIT: d434b306f163c625231516e302f145313c088dbc
3
+ * WARNING: This file is intended to be used within MySheerID.
4
+ * This file is not intended for use in other contexts and there are no guarantees about its behavior outside of MySheerID.
5
+ */
6
+ /**
7
+ * VERSION: 2.250.0
8
+ * BUILD_TIMESTAMP: 1782922524478
9
+ * BUILD_DATE: Wed Jul 01 2026 16:15:24 GMT+0000 (Coordinated Universal Time)
10
+ * BUILD_COMMIT: cb70a3d38f25dac850245b568238895cd279ec48
7
11
  */
8
- import { $ as e, B as t, Bt as n, G as r, Mn as i, Rt as a, Tn as o, et as s, gt as c, in as l, kn as u, n as d } from "../sheerid.js";
9
- import { a as f, i as p, n as m, o as h, s as g, t as _ } from "./CaptchaComponent-CpD7kabQ.js";
10
- import { n as v, t as y } from "./PersonalInfoStepSubmitButton-C2E_vI6h.js";
11
- import { t as b } from "./BirthDateComponent-Dl0XGTEU.js";
12
- import { t as x } from "./PostalCodeComponent-BRv1OY2E.js";
13
- import { t as S } from "./CountryComponentWrapper-BKmiop9j.js";
14
- import { t as C } from "./ExtraMessage-D78-mbs6.js";
15
- import { t as w } from "./ChangeLocaleComponent-CwUU2jUS.js";
16
- import { t as T } from "./PersonalInfoStepWrapper-DIecrjL_.js";
17
- import { n as E } from "./FormFieldTypeahead-BhoK1wVB.js";
18
- import { t as D } from "./TeacherSchoolComponent-lxPkOdX5.js";
12
+ import { $ as e, B as t, Et as n, G as r, Mn as i, Tn as a, Yt as o, _t as s, et as c, n as l, nn as u, vt as d } from "../_mysheerid-preview.js";
13
+ import { a as f, i as p, n as m, o as h, s as g, t as _ } from "./CaptchaComponent-D9qU6ygz.js";
14
+ import { n as v, t as y } from "./PersonalInfoStepSubmitButton-COTSMNng.js";
15
+ import { t as b } from "./BirthDateComponent-qIJ6VyBN.js";
16
+ import { t as x } from "./PostalCodeComponent-BoviWgTs.js";
17
+ import { t as S } from "./CountryComponentWrapper-hbHOWlgu.js";
18
+ import { t as C } from "./ExtraMessage-BF7WCgKF.js";
19
+ import { t as w } from "./ChangeLocaleComponent-D56onLa2.js";
20
+ import { t as T } from "./PersonalInfoStepWrapper-DgxBk5YC.js";
21
+ import { n as E } from "./FormFieldTypeahead-pZggFuzg.js";
22
+ import { t as D } from "./TeacherSchoolComponent-BVq4mqo8.js";
19
23
  //#region src/components/StepTeacherPersonalInfo/StepTeacherPersonalInfoComponent.tsx
20
- var O = /* @__PURE__ */ i(u(), 1), k = a(), A = ({ verificationService: i }) => {
21
- let { viewModel: a } = i, { fieldValidationErrors: u } = i, A = i.verificationResponse, j = c(A), M = n(), N = a.localeChoice.value, P = (e, t) => {
24
+ var O = /* @__PURE__ */ i(u(), 1), k = s(), A = ({ verificationService: i }) => {
25
+ let { viewModel: s } = i, { fieldValidationErrors: u } = i, A = i.verificationResponse, j = n(A), M = o(), N = s.localeChoice.value, P = (e, t) => {
22
26
  let n = { [e]: t };
23
27
  i.updateViewModel(n, { partial: !0 });
24
28
  };
@@ -29,7 +33,7 @@ var O = /* @__PURE__ */ i(u(), 1), k = a(), A = ({ verificationService: i }) =>
29
33
  verificationService: i,
30
34
  step: A.currentStep,
31
35
  children: [
32
- /* @__PURE__ */ (0, k.jsx)(d, {
36
+ /* @__PURE__ */ (0, k.jsx)(l, {
33
37
  verificationService: i,
34
38
  classNameIdentifier: "teacher-personal-info"
35
39
  }),
@@ -44,20 +48,20 @@ var O = /* @__PURE__ */ i(u(), 1), k = a(), A = ({ verificationService: i }) =>
44
48
  isErrored: !!u.organization,
45
49
  disabled: t("organization")?.disabled,
46
50
  onChange: (t) => {
47
- s(t, i), e("organization", t, i);
51
+ c(t, i), e("organization", t, i);
48
52
  }
49
53
  }),
50
54
  /* @__PURE__ */ (0, k.jsxs)("div", {
51
55
  className: "sid-names",
52
56
  children: [/* @__PURE__ */ (0, k.jsx)(f, {
53
- value: a.firstName,
57
+ value: s.firstName,
54
58
  isErrored: !!u.firstName,
55
59
  disabled: t("firstName")?.disabled,
56
60
  onChange: (t) => {
57
61
  P("firstName", t), e("firstName", t, i);
58
62
  }
59
63
  }), /* @__PURE__ */ (0, k.jsx)(p, {
60
- value: a.lastName,
64
+ value: s.lastName,
61
65
  isErrored: !!u.lastName,
62
66
  disabled: t("lastName")?.disabled,
63
67
  onChange: (t) => {
@@ -72,12 +76,12 @@ var O = /* @__PURE__ */ i(u(), 1), k = a(), A = ({ verificationService: i }) =>
72
76
  onChange: (t) => {
73
77
  P("birthDate", t), e("birthDate", t, i);
74
78
  },
75
- value: a.birthDate
79
+ value: s.birthDate
76
80
  }) : null,
77
81
  /* @__PURE__ */ (0, k.jsx)(v, {
78
- value: a.email,
82
+ value: s.email,
79
83
  isErrored: !!u.email,
80
- explanation: /* @__PURE__ */ (0, k.jsx)(l, {
84
+ explanation: /* @__PURE__ */ (0, k.jsx)(d, {
81
85
  id: "emailExplanation",
82
86
  defaultMessage: "Must be your school-issued email address"
83
87
  }),
@@ -89,20 +93,20 @@ var O = /* @__PURE__ */ i(u(), 1), k = a(), A = ({ verificationService: i }) =>
89
93
  }),
90
94
  i.programTheme.isSmsNotifierConfigured || i.programTheme.smsLoopEnabled ? /* @__PURE__ */ (0, k.jsx)(h, {
91
95
  isRequired: !!i.programTheme.smsLoopEnabled,
92
- value: a.phoneNumber,
96
+ value: s.phoneNumber,
93
97
  isErrored: !!u.phoneNumber,
94
98
  onChange: (t) => {
95
99
  P("phoneNumber", t), e("phoneNumber", t, i);
96
100
  },
97
- selectedCountryCode: a.countryChoice && a.countryChoice.value,
101
+ selectedCountryCode: s.countryChoice && s.countryChoice.value,
98
102
  disabled: t("phoneNumber")?.disabled
99
103
  }) : null,
100
- E(i.programTheme, a) ? /* @__PURE__ */ (0, k.jsx)(x, {
104
+ E(i.programTheme, s) ? /* @__PURE__ */ (0, k.jsx)(x, {
101
105
  isErrored: !!u.postalCode,
102
106
  onChange: (t) => {
103
107
  P("postalCode", t), e("postalCode", t, i);
104
108
  },
105
- value: a.postalCode,
109
+ value: s.postalCode,
106
110
  disabled: t("postalCode")?.disabled
107
111
  }) : null,
108
112
  M.customFormFields.map((e) => /* @__PURE__ */ (0, k.jsx)(m, {
@@ -118,7 +122,7 @@ var O = /* @__PURE__ */ i(u(), 1), k = a(), A = ({ verificationService: i }) =>
118
122
  marketConsentValue: t
119
123
  }), e("marketConsentValue", t, i);
120
124
  },
121
- viewModel: a,
125
+ viewModel: s,
122
126
  disabled: t("marketConsentValue")?.disabled
123
127
  }),
124
128
  /* @__PURE__ */ (0, k.jsx)(C, {
@@ -130,11 +134,11 @@ var O = /* @__PURE__ */ i(u(), 1), k = a(), A = ({ verificationService: i }) =>
130
134
  isErrored: !!u.captchaToken
131
135
  }),
132
136
  /* @__PURE__ */ (0, k.jsx)(y, {
133
- step: o.collectTeacherPersonalInfo,
137
+ step: a.collectTeacherPersonalInfo,
134
138
  verificationService: i,
135
- viewModel: a,
139
+ viewModel: s,
136
140
  failedInstantMatch: j,
137
- buttonText: /* @__PURE__ */ (0, k.jsx)(l, {
141
+ buttonText: /* @__PURE__ */ (0, k.jsx)(d, {
138
142
  id: "step.personalInfo.submitButtonText",
139
143
  defaultMessage: "Verify My Teacher Status"
140
144
  })
@@ -1 +1 @@
1
- {"version":3,"file":"StepTeacherPersonalInfo-JFMv7J7a.js","names":[],"sources":["../../src/components/StepTeacherPersonalInfo/StepTeacherPersonalInfoComponent.tsx"],"sourcesContent":["/* eslint-disable */\nimport React, { useEffect } from \"react\";\nimport { FormattedHTMLMessage } from \"react-intl\";\n\nimport { shouldCollectPostalCode } from \"../../lib/organization/organization\";\nimport { VerificationStepsEnum } from \"../../lib/types/runtimeTypes\";\nimport {\n CustomFormFieldConfig,\n Organization,\n TeacherPersonalInfoResponse,\n TeacherPersonalInfoViewModel,\n VerificationService,\n} from \"../../lib/types/types\";\nimport {\n getFieldConfigByFieldId,\n handleEmailOnKeyDown,\n updateFieldValidationErrorsByFieldId,\n updateViewModelOrganization,\n} from \"../../lib/utils/stepComponentHelpers/stepComponentHelpers\";\nimport { hasFailedInstantMatch } from \"../../lib/VerificationService/VerificationServiceHelpers\";\n\nimport { getOptions } from \"../../options/options\";\nimport { ExtraMessage } from \"../ExtraMessage\";\nimport { BirthDateComponent as BirthDate } from \"../FormFields/BirthDate/BirthDateComponent\";\nimport { ChangeLocaleV2Component } from \"../FormFields/ChangeLocale/ChangeLocaleComponent\";\nimport { CountryComponentWrapper } from \"../FormFields/Country/CountryComponentWrapper\";\nimport { EmailComponent as Email } from \"../FormFields/Email/EmailComponent\";\nimport { FirstNameComponent as FirstName } from \"../FormFields/FirstName/FirstNameComponent\";\nimport { FormFieldCustom } from \"../FormFields/FormFieldCustom/FormFieldCustom\";\nimport { LastNameComponent as LastName } from \"../FormFields/LastName/LastNameComponent\";\nimport { MarketConsentWrapperComponent as MarketConsentWrapper } from \"../FormFields/MarketConsentWrapper/MarketConsentWrapperComponent\";\nimport { PhoneNumberComponent as PhoneNumber } from \"../FormFields/PhoneNumber/PhoneNumberComponent\";\nimport { PostalCodeComponent } from \"../FormFields/PostalCode/PostalCodeComponent\";\nimport { TeacherSchoolComponent } from \"../FormFields/TeacherSchool/TeacherSchoolComponent\";\nimport { PersonalInfoWrapper } from \"../PersonalInfoStepWrapper/PersonalInfoStepWrapper\";\nimport { PersonalInfoStepSubmitButton } from \"../PersonalInfoStepSubmitButton/PersonalInfoStepSubmitButton\";\nimport { PersonalInfoHeader } from \"../FormHeader/StepHeaders/PersonalInfoHeaderComponent\";\nimport { CaptchaComponent } from \"../FormFields/Captcha/CaptchaComponent\";\n\ninterface StepTeacherPersonalInfoComponentProps {\n verificationService: VerificationService<TeacherPersonalInfoViewModel>;\n}\n\nconst StepTeacherPersonalInfo = ({\n verificationService,\n}: StepTeacherPersonalInfoComponentProps) => {\n const { viewModel } = verificationService;\n const { fieldValidationErrors } = verificationService;\n const verificationResponse =\n verificationService.verificationResponse as TeacherPersonalInfoResponse;\n const failedInstantMatch = hasFailedInstantMatch(verificationResponse);\n const options = getOptions();\n const locale = viewModel.localeChoice.value;\n const updateTeacherViewModel = (key: keyof TeacherPersonalInfoViewModel, value: any) => {\n const nextState = {\n [key]: value,\n };\n verificationService.updateViewModel(nextState, { partial: true });\n };\n\n // Don't validate DOB if ID Check is not enabled\n useEffect(() => {\n const existing = (verificationService.viewModel?.fieldsToSkipValidation || []).filter(\n (id) => id !== \"birthDate\",\n );\n if (!verificationService.programTheme.idCheckAddOnEnabled) {\n updateTeacherViewModel(\"birthDate\", \"\");\n updateTeacherViewModel(\"fieldsToSkipValidation\", [...existing, \"birthDate\"]);\n } else {\n updateTeacherViewModel(\"fieldsToSkipValidation\", existing);\n }\n }, [verificationService.programTheme.idCheckAddOnEnabled]);\n\n return (\n <PersonalInfoWrapper\n verificationService={verificationService}\n step={verificationResponse.currentStep}\n >\n <PersonalInfoHeader\n verificationService={verificationService}\n classNameIdentifier=\"teacher-personal-info\"\n />\n\n <ChangeLocaleV2Component verificationService={verificationService} />\n <CountryComponentWrapper\n verificationService={verificationService}\n disabled={getFieldConfigByFieldId(\"country\")?.disabled}\n />\n <TeacherSchoolComponent\n value={verificationService.viewModel.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 <div className=\"sid-names\">\n <FirstName\n value={viewModel.firstName}\n isErrored={!!fieldValidationErrors.firstName}\n disabled={getFieldConfigByFieldId(\"firstName\")?.disabled}\n onChange={(newValue) => {\n updateTeacherViewModel(\"firstName\", newValue);\n updateFieldValidationErrorsByFieldId(\"firstName\", newValue, verificationService);\n }}\n />\n\n <LastName\n value={viewModel.lastName}\n isErrored={!!fieldValidationErrors.lastName}\n disabled={getFieldConfigByFieldId(\"lastName\")?.disabled}\n onChange={(newValue) => {\n updateTeacherViewModel(\"lastName\", newValue);\n updateFieldValidationErrorsByFieldId(\"lastName\", newValue, verificationService);\n }}\n />\n </div>\n {verificationService.programTheme.idCheckAddOnEnabled ? (\n <BirthDate\n errorId={fieldValidationErrors.birthDate}\n locale={locale}\n disabled={getFieldConfigByFieldId(\"birthDate\")?.disabled}\n onChange={(newValue) => {\n updateTeacherViewModel(\"birthDate\", newValue);\n updateFieldValidationErrorsByFieldId(\"birthDate\", newValue, verificationService);\n }}\n value={viewModel.birthDate}\n />\n ) : null}\n\n <Email\n value={viewModel.email}\n isErrored={!!fieldValidationErrors.email}\n explanation={\n <FormattedHTMLMessage\n id=\"emailExplanation\"\n defaultMessage=\"Must be your school-issued email address\"\n />\n }\n onChange={(newValue) => {\n updateTeacherViewModel(\"email\", newValue);\n updateFieldValidationErrorsByFieldId(\"email\", newValue, verificationService);\n }}\n onKeyDown={(event) => handleEmailOnKeyDown(event)}\n disabled={getFieldConfigByFieldId(\"email\")?.disabled}\n />\n {verificationService.programTheme.isSmsNotifierConfigured ||\n verificationService.programTheme.smsLoopEnabled ? (\n <PhoneNumber\n isRequired={!!verificationService.programTheme.smsLoopEnabled}\n value={viewModel.phoneNumber}\n isErrored={!!fieldValidationErrors.phoneNumber}\n onChange={(newValue) => {\n updateTeacherViewModel(\"phoneNumber\", newValue);\n updateFieldValidationErrorsByFieldId(\"phoneNumber\", newValue, verificationService);\n }}\n selectedCountryCode={viewModel.countryChoice && viewModel.countryChoice.value}\n disabled={getFieldConfigByFieldId(\"phoneNumber\")?.disabled}\n />\n ) : null}\n {shouldCollectPostalCode(verificationService.programTheme, viewModel) ? (\n <PostalCodeComponent\n isErrored={!!fieldValidationErrors.postalCode}\n onChange={(newValue) => {\n updateTeacherViewModel(\"postalCode\", newValue);\n updateFieldValidationErrorsByFieldId(\"postalCode\", newValue, verificationService);\n }}\n value={viewModel.postalCode}\n disabled={getFieldConfigByFieldId(\"postalCode\")?.disabled}\n />\n ) : null}\n {options.customFormFields.map((config: CustomFormFieldConfig) => (\n <FormFieldCustom config={config} verificationService={verificationService} />\n ))}\n <MarketConsentWrapper\n verificationService={verificationService}\n isErrored={!!fieldValidationErrors.marketConsentValue}\n onChange={(newValue) => {\n updateTeacherViewModel(\"metadata\", {\n ...verificationService.viewModel.metadata,\n marketConsentValue: newValue,\n });\n updateFieldValidationErrorsByFieldId(\"marketConsentValue\", newValue, verificationService);\n }}\n viewModel={viewModel}\n disabled={getFieldConfigByFieldId(\"marketConsentValue\")?.disabled}\n />\n <ExtraMessage verificationService={verificationService} suffix=\"CollectAboveSubmit\" />\n\n <CaptchaComponent\n verificationService={verificationService}\n isErrored={!!fieldValidationErrors.captchaToken}\n />\n\n <PersonalInfoStepSubmitButton\n step={VerificationStepsEnum.collectTeacherPersonalInfo}\n verificationService={verificationService}\n viewModel={viewModel}\n failedInstantMatch={failedInstantMatch}\n buttonText={\n <FormattedHTMLMessage\n id=\"step.personalInfo.submitButtonText\"\n defaultMessage=\"Verify My Teacher Status\"\n />\n }\n />\n </PersonalInfoWrapper>\n );\n};\n\nexport const StepTeacherPersonalInfoComponent = StepTeacherPersonalInfo;\nfunction userDidConvert(COLLECT_INFO_SUBMIT: any, COLLECT_INFO_SUBMISSION_TIME: any) {\n throw new Error(\"Function not implemented.\");\n}\n"],"mappings":";;;;;;;;;;;;4CAoNa,KAzKoB,EAC/B,6BAC2C;CAC3C,IAAM,EAAE,iBAAc,GAChB,EAAE,6BAA0B,GAC5B,IACJ,EAAoB,sBAChB,IAAqB,EAAsB,CAAoB,GAC/D,IAAU,EAAW,GACrB,IAAS,EAAU,aAAa,OAChC,KAA0B,GAAyC,MAAe;EACtF,IAAM,IAAY,GACf,IAAM,EACT;EACA,EAAoB,gBAAgB,GAAW,EAAE,SAAS,GAAK,CAAC;CAClE;CAeA,QAZA,GAAA,EAAA,iBAAgB;EACd,IAAM,KAAY,EAAoB,WAAW,0BAA0B,CAAC,GAAG,QAC5E,MAAO,MAAO,WACjB;EACA,AAAK,EAAoB,aAAa,sBAIpC,EAAuB,0BAA0B,CAAQ,KAHzD,EAAuB,aAAa,EAAE,GACtC,EAAuB,0BAA0B,CAAC,GAAG,GAAU,WAAW,CAAC;CAI/E,GAAG,CAAC,EAAoB,aAAa,mBAAmB,CAAC,GAGvD,iBAAA,GAAA,EAAA,MAAC,GAAD;EACuB;EACrB,MAAM,EAAqB;YAF7B;GAIE,iBAAA,GAAA,EAAA,KAAC,GAAD;IACuB;IACrB,qBAAoB;GACrB,CAAA;GAED,iBAAA,GAAA,EAAA,KAAC,GAAD,EAA8C,uBAAsB,CAAA;GACpE,iBAAA,GAAA,EAAA,KAAC,GAAD;IACuB;IACrB,UAAU,EAAwB,SAAS,GAAG;GAC/C,CAAA;GACD,iBAAA,GAAA,EAAA,KAAC,GAAD;IACE,OAAO,EAAoB,UAAU;IAChB;IACrB,WAAW,CAAC,CAAC,EAAsB;IACnC,UAAU,EAAwB,cAAc,GAAG;IACnD,WAAW,MAAyB;KAElC,AADA,EAA4B,GAAQ,CAAmB,GACvD,EAAqC,gBAAgB,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AW,CAAC,CAAC,EAAsB;IACnC,WAAW,MAAa;KAEtB,AADA,EAAuB,eAAe,CAAQ,GAC9C,EAAqC,eAAe,GAAU,CAAmB;IACnF;IACA,qBAAqB,EAAU,iBAAiB,EAAU,cAAc;IACxE,UAAU,EAAwB,aAAa,GAAG;GACnD,CAAA,IACC;GACH,EAAwB,EAAoB,cAAc,CAAS,IAClE,iBAAA,GAAA,EAAA,KAAC,GAAD;IACE,WAAW,CAAC,CAAC,EAAsB;IACnC,WAAW,MAAa;KAEtB,AADA,EAAuB,cAAc,CAAQ,GAC7C,EAAqC,cAAc,GAAU,CAAmB;IAClF;IACA,OAAO,EAAU;IACjB,UAAU,EAAwB,YAAY,GAAG;GAClD,CAAA,IACC;GACH,EAAQ,iBAAiB,KAAK,MAC7B,iBAAA,GAAA,EAAA,KAAC,GAAD;IAAyB;IAA6B;GAAsB,CAAA,CAC7E;GACD,iBAAA,GAAA,EAAA,KAAC,GAAD;IACuB;IACrB,WAAW,CAAC,CAAC,EAAsB;IACnC,WAAW,MAAa;KAKtB,AAJA,EAAuB,YAAY;MACjC,GAAG,EAAoB,UAAU;MACjC,oBAAoB;KACtB,CAAC,GACD,EAAqC,sBAAsB,GAAU,CAAmB;IAC1F;IACW;IACX,UAAU,EAAwB,oBAAoB,GAAG;GAC1D,CAAA;GACD,iBAAA,GAAA,EAAA,KAAC,GAAD;IAAmC;IAAqB,QAAO;GAAsB,CAAA;GAErF,iBAAA,GAAA,EAAA,KAAC,GAAD;IACuB;IACrB,WAAW,CAAC,CAAC,EAAsB;GACpC,CAAA;GAED,iBAAA,GAAA,EAAA,KAAC,GAAD;IACE,MAAM,EAAsB;IACP;IACV;IACS;IACpB,YACE,iBAAA,GAAA,EAAA,KAAC,GAAD;KACE,IAAG;KACH,gBAAe;IAChB,CAAA;GAEJ,CAAA;EACkB;;AAEzB"}
1
+ {"version":3,"file":"StepTeacherPersonalInfo-BD270H75.js","names":[],"sources":["../../src/components/StepTeacherPersonalInfo/StepTeacherPersonalInfoComponent.tsx"],"sourcesContent":["/* eslint-disable */\nimport React, { useEffect } from \"react\";\nimport { FormattedHTMLMessage } from \"react-intl\";\n\nimport { shouldCollectPostalCode } from \"../../lib/organization/organization\";\nimport { VerificationStepsEnum } from \"../../lib/types/runtimeTypes\";\nimport {\n CustomFormFieldConfig,\n Organization,\n TeacherPersonalInfoResponse,\n TeacherPersonalInfoViewModel,\n VerificationService,\n} from \"../../lib/types/types\";\nimport {\n getFieldConfigByFieldId,\n handleEmailOnKeyDown,\n updateFieldValidationErrorsByFieldId,\n updateViewModelOrganization,\n} from \"../../lib/utils/stepComponentHelpers/stepComponentHelpers\";\nimport { hasFailedInstantMatch } from \"../../lib/VerificationService/VerificationServiceHelpers\";\n\nimport { getOptions } from \"../../options/options\";\nimport { ExtraMessage } from \"../ExtraMessage\";\nimport { BirthDateComponent as BirthDate } from \"../FormFields/BirthDate/BirthDateComponent\";\nimport { ChangeLocaleV2Component } from \"../FormFields/ChangeLocale/ChangeLocaleComponent\";\nimport { CountryComponentWrapper } from \"../FormFields/Country/CountryComponentWrapper\";\nimport { EmailComponent as Email } from \"../FormFields/Email/EmailComponent\";\nimport { FirstNameComponent as FirstName } from \"../FormFields/FirstName/FirstNameComponent\";\nimport { FormFieldCustom } from \"../FormFields/FormFieldCustom/FormFieldCustom\";\nimport { LastNameComponent as LastName } from \"../FormFields/LastName/LastNameComponent\";\nimport { MarketConsentWrapperComponent as MarketConsentWrapper } from \"../FormFields/MarketConsentWrapper/MarketConsentWrapperComponent\";\nimport { PhoneNumberComponent as PhoneNumber } from \"../FormFields/PhoneNumber/PhoneNumberComponent\";\nimport { PostalCodeComponent } from \"../FormFields/PostalCode/PostalCodeComponent\";\nimport { TeacherSchoolComponent } from \"../FormFields/TeacherSchool/TeacherSchoolComponent\";\nimport { PersonalInfoWrapper } from \"../PersonalInfoStepWrapper/PersonalInfoStepWrapper\";\nimport { PersonalInfoStepSubmitButton } from \"../PersonalInfoStepSubmitButton/PersonalInfoStepSubmitButton\";\nimport { PersonalInfoHeader } from \"../FormHeader/StepHeaders/PersonalInfoHeaderComponent\";\nimport { CaptchaComponent } from \"../FormFields/Captcha/CaptchaComponent\";\n\ninterface StepTeacherPersonalInfoComponentProps {\n verificationService: VerificationService<TeacherPersonalInfoViewModel>;\n}\n\nconst StepTeacherPersonalInfo = ({\n verificationService,\n}: StepTeacherPersonalInfoComponentProps) => {\n const { viewModel } = verificationService;\n const { fieldValidationErrors } = verificationService;\n const verificationResponse =\n verificationService.verificationResponse as TeacherPersonalInfoResponse;\n const failedInstantMatch = hasFailedInstantMatch(verificationResponse);\n const options = getOptions();\n const locale = viewModel.localeChoice.value;\n const updateTeacherViewModel = (key: keyof TeacherPersonalInfoViewModel, value: any) => {\n const nextState = {\n [key]: value,\n };\n verificationService.updateViewModel(nextState, { partial: true });\n };\n\n // Don't validate DOB if ID Check is not enabled\n useEffect(() => {\n const existing = (verificationService.viewModel?.fieldsToSkipValidation || []).filter(\n (id) => id !== \"birthDate\",\n );\n if (!verificationService.programTheme.idCheckAddOnEnabled) {\n updateTeacherViewModel(\"birthDate\", \"\");\n updateTeacherViewModel(\"fieldsToSkipValidation\", [...existing, \"birthDate\"]);\n } else {\n updateTeacherViewModel(\"fieldsToSkipValidation\", existing);\n }\n }, [verificationService.programTheme.idCheckAddOnEnabled]);\n\n return (\n <PersonalInfoWrapper\n verificationService={verificationService}\n step={verificationResponse.currentStep}\n >\n <PersonalInfoHeader\n verificationService={verificationService}\n classNameIdentifier=\"teacher-personal-info\"\n />\n\n <ChangeLocaleV2Component verificationService={verificationService} />\n <CountryComponentWrapper\n verificationService={verificationService}\n disabled={getFieldConfigByFieldId(\"country\")?.disabled}\n />\n <TeacherSchoolComponent\n value={verificationService.viewModel.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 <div className=\"sid-names\">\n <FirstName\n value={viewModel.firstName}\n isErrored={!!fieldValidationErrors.firstName}\n disabled={getFieldConfigByFieldId(\"firstName\")?.disabled}\n onChange={(newValue) => {\n updateTeacherViewModel(\"firstName\", newValue);\n updateFieldValidationErrorsByFieldId(\"firstName\", newValue, verificationService);\n }}\n />\n\n <LastName\n value={viewModel.lastName}\n isErrored={!!fieldValidationErrors.lastName}\n disabled={getFieldConfigByFieldId(\"lastName\")?.disabled}\n onChange={(newValue) => {\n updateTeacherViewModel(\"lastName\", newValue);\n updateFieldValidationErrorsByFieldId(\"lastName\", newValue, verificationService);\n }}\n />\n </div>\n {verificationService.programTheme.idCheckAddOnEnabled ? (\n <BirthDate\n errorId={fieldValidationErrors.birthDate}\n locale={locale}\n disabled={getFieldConfigByFieldId(\"birthDate\")?.disabled}\n onChange={(newValue) => {\n updateTeacherViewModel(\"birthDate\", newValue);\n updateFieldValidationErrorsByFieldId(\"birthDate\", newValue, verificationService);\n }}\n value={viewModel.birthDate}\n />\n ) : null}\n\n <Email\n value={viewModel.email}\n isErrored={!!fieldValidationErrors.email}\n explanation={\n <FormattedHTMLMessage\n id=\"emailExplanation\"\n defaultMessage=\"Must be your school-issued email address\"\n />\n }\n onChange={(newValue) => {\n updateTeacherViewModel(\"email\", newValue);\n updateFieldValidationErrorsByFieldId(\"email\", newValue, verificationService);\n }}\n onKeyDown={(event) => handleEmailOnKeyDown(event)}\n disabled={getFieldConfigByFieldId(\"email\")?.disabled}\n />\n {verificationService.programTheme.isSmsNotifierConfigured ||\n verificationService.programTheme.smsLoopEnabled ? (\n <PhoneNumber\n isRequired={!!verificationService.programTheme.smsLoopEnabled}\n value={viewModel.phoneNumber}\n isErrored={!!fieldValidationErrors.phoneNumber}\n onChange={(newValue) => {\n updateTeacherViewModel(\"phoneNumber\", newValue);\n updateFieldValidationErrorsByFieldId(\"phoneNumber\", newValue, verificationService);\n }}\n selectedCountryCode={viewModel.countryChoice && viewModel.countryChoice.value}\n disabled={getFieldConfigByFieldId(\"phoneNumber\")?.disabled}\n />\n ) : null}\n {shouldCollectPostalCode(verificationService.programTheme, viewModel) ? (\n <PostalCodeComponent\n isErrored={!!fieldValidationErrors.postalCode}\n onChange={(newValue) => {\n updateTeacherViewModel(\"postalCode\", newValue);\n updateFieldValidationErrorsByFieldId(\"postalCode\", newValue, verificationService);\n }}\n value={viewModel.postalCode}\n disabled={getFieldConfigByFieldId(\"postalCode\")?.disabled}\n />\n ) : null}\n {options.customFormFields.map((config: CustomFormFieldConfig) => (\n <FormFieldCustom config={config} verificationService={verificationService} />\n ))}\n <MarketConsentWrapper\n verificationService={verificationService}\n isErrored={!!fieldValidationErrors.marketConsentValue}\n onChange={(newValue) => {\n updateTeacherViewModel(\"metadata\", {\n ...verificationService.viewModel.metadata,\n marketConsentValue: newValue,\n });\n updateFieldValidationErrorsByFieldId(\"marketConsentValue\", newValue, verificationService);\n }}\n viewModel={viewModel}\n disabled={getFieldConfigByFieldId(\"marketConsentValue\")?.disabled}\n />\n <ExtraMessage verificationService={verificationService} suffix=\"CollectAboveSubmit\" />\n\n <CaptchaComponent\n verificationService={verificationService}\n isErrored={!!fieldValidationErrors.captchaToken}\n />\n\n <PersonalInfoStepSubmitButton\n step={VerificationStepsEnum.collectTeacherPersonalInfo}\n verificationService={verificationService}\n viewModel={viewModel}\n failedInstantMatch={failedInstantMatch}\n buttonText={\n <FormattedHTMLMessage\n id=\"step.personalInfo.submitButtonText\"\n defaultMessage=\"Verify My Teacher Status\"\n />\n }\n />\n </PersonalInfoWrapper>\n );\n};\n\nexport const StepTeacherPersonalInfoComponent = StepTeacherPersonalInfo;\nfunction userDidConvert(COLLECT_INFO_SUBMIT: any, COLLECT_INFO_SUBMISSION_TIME: any) {\n throw new Error(\"Function not implemented.\");\n}\n"],"mappings":";;;;;;;;;;;;4CAoNa,KAzKoB,EAC/B,6BAC2C;CAC3C,IAAM,EAAE,iBAAc,GAChB,EAAE,6BAA0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