@sheerid/jslib 2.247.0 → 2.248.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.
- package/_mysheerid-preview.css +4 -4
- package/_mysheerid-preview.js +995 -1023
- package/_mysheerid-preview.js.map +1 -1
- package/chunk/AddressComponent-Bukkdb4u.js +4 -4
- package/chunk/AddressComponent-CkxRlnVO.js +4 -4
- package/chunk/{BirthDateComponent-uWKLRke9.js → BirthDateComponent-Bs0xFFJM.js} +5 -5
- package/chunk/{BirthDateComponent-B0tDW0yB.js.map → BirthDateComponent-Bs0xFFJM.js.map} +1 -1
- package/chunk/{BirthDateComponent-B0tDW0yB.js → BirthDateComponent-DLk6Ilxs.js} +5 -5
- package/chunk/{BirthDateComponent-uWKLRke9.js.map → BirthDateComponent-DLk6Ilxs.js.map} +1 -1
- package/chunk/{CaptchaComponent-D0ddmO45.js → CaptchaComponent-C0umNe_d.js} +62 -62
- package/chunk/{CaptchaComponent-D0ddmO45.js.map → CaptchaComponent-C0umNe_d.js.map} +1 -1
- package/chunk/{CaptchaComponent-DE-ZE8nT.js → CaptchaComponent-Cuh_UEdw.js} +5 -5
- package/chunk/{CaptchaComponent-DE-ZE8nT.js.map → CaptchaComponent-Cuh_UEdw.js.map} +1 -1
- package/chunk/ChangeLocaleComponent-B9FhViAh.js +4 -4
- package/chunk/ChangeLocaleComponent-zT_LYIcp.js +4 -4
- package/chunk/City-DjkeTI1V.js +4 -4
- package/chunk/City-IOdmmFE7.js +4 -4
- package/chunk/{CollegeNameComponent--3-lJ1K4.js → CollegeNameComponent-CnPvtBkA.js} +5 -5
- package/chunk/{CollegeNameComponent--3-lJ1K4.js.map → CollegeNameComponent-CnPvtBkA.js.map} +1 -1
- package/chunk/{CollegeNameComponent-D37lC9Cv.js → CollegeNameComponent-DF3oj7Uw.js} +5 -5
- package/chunk/{CollegeNameComponent-D37lC9Cv.js.map → CollegeNameComponent-DF3oj7Uw.js.map} +1 -1
- package/chunk/CopyToClipboardComponent-BksoYi0Z.js +4 -4
- package/chunk/CopyToClipboardComponent-CtgyrPCJ.js +4 -4
- package/chunk/CountryComponentWrapper-C58Sci59.js +4 -4
- package/chunk/CountryComponentWrapper-ZvBsjX0l.js +4 -4
- package/chunk/{DischargeDateComponent-DuJO1xvy.js → DischargeDateComponent-DmfDDmWr.js} +5 -5
- package/chunk/{DischargeDateComponent-CE7d9Tm4.js.map → DischargeDateComponent-DmfDDmWr.js.map} +1 -1
- package/chunk/{DischargeDateComponent-CE7d9Tm4.js → DischargeDateComponent-lYQRumBW.js} +5 -5
- package/chunk/{DischargeDateComponent-DuJO1xvy.js.map → DischargeDateComponent-lYQRumBW.js.map} +1 -1
- package/chunk/DriverLicenseNumberComponent-D6O21jQQ.js +4 -4
- package/chunk/DriverLicenseNumberComponent-K8bTab_I.js +4 -4
- package/chunk/{EmailLoopPending-DI76b6U9.js → EmailLoopPending-B3NjLevJ.js} +19 -19
- package/chunk/{EmailLoopPending-DI76b6U9.js.map → EmailLoopPending-B3NjLevJ.js.map} +1 -1
- package/chunk/{EmailLoopPending-nqmGJQhh.js → EmailLoopPending-CsLNydVl.js} +15 -15
- package/chunk/{EmailLoopPending-nqmGJQhh.js.map → EmailLoopPending-CsLNydVl.js.map} +1 -1
- package/chunk/{ExtraMessage-WGe7ZQyg.js → ExtraMessage-CmZsLEQu.js} +5 -5
- package/chunk/{ExtraMessage-CcqDnr5y.js.map → ExtraMessage-CmZsLEQu.js.map} +1 -1
- package/chunk/{ExtraMessage-CcqDnr5y.js → ExtraMessage-DVAZbguB.js} +9 -9
- package/chunk/{ExtraMessage-WGe7ZQyg.js.map → ExtraMessage-DVAZbguB.js.map} +1 -1
- package/chunk/{FirstResponderOrganizationComponent-CmATK21l.js → FirstResponderOrganizationComponent-CtDqxnQQ.js} +5 -5
- package/chunk/{FirstResponderOrganizationComponent-CmATK21l.js.map → FirstResponderOrganizationComponent-CtDqxnQQ.js.map} +1 -1
- package/chunk/{FirstResponderOrganizationComponent-BRRa_qj-.js → FirstResponderOrganizationComponent-Drf19OL-.js} +5 -5
- package/chunk/{FirstResponderOrganizationComponent-BRRa_qj-.js.map → FirstResponderOrganizationComponent-Drf19OL-.js.map} +1 -1
- package/chunk/FormFieldInputSelect-CCyn1vvf.js +4 -4
- package/chunk/FormFieldInputSelect-CEVgL_cH.js +4 -4
- package/chunk/FormFieldLayout-BesyfbpW.js +4 -4
- package/chunk/FormFieldLayout-CVSvHLSi.js +4 -4
- package/chunk/FormFieldText-BtlTdgzX.js +4 -4
- package/chunk/FormFieldText-yR7hiQsc.js +4 -4
- package/chunk/{FormFieldTypeahead-ChF6x24k.js → FormFieldTypeahead-CH_TSGle.js} +377 -377
- package/chunk/{FormFieldTypeahead-ChF6x24k.js.map → FormFieldTypeahead-CH_TSGle.js.map} +1 -1
- package/chunk/{FormFieldTypeahead-CtxrXjHv.js → FormFieldTypeahead-Da-vHxEO.js} +419 -419
- package/chunk/{FormFieldTypeahead-CtxrXjHv.js.map → FormFieldTypeahead-Da-vHxEO.js.map} +1 -1
- package/chunk/FormSelectChoice-D-8ofshG.js +4 -4
- package/chunk/FormSelectChoice-DlGn-Pdy.js +4 -4
- package/chunk/InputText-BB3UKiij.js +4 -4
- package/chunk/InputText-V45_YE-T.js +4 -4
- package/chunk/{LicensedProfessionalOrganizationComponent-DBXMMx_e.js → LicensedProfessionalOrganizationComponent-BT4n-ToV.js} +5 -5
- package/chunk/{LicensedProfessionalOrganizationComponent-DBXMMx_e.js.map → LicensedProfessionalOrganizationComponent-BT4n-ToV.js.map} +1 -1
- package/chunk/{LicensedProfessionalOrganizationComponent-sDiGRvUQ.js → LicensedProfessionalOrganizationComponent-sC--o74M.js} +5 -5
- package/chunk/{LicensedProfessionalOrganizationComponent-sDiGRvUQ.js.map → LicensedProfessionalOrganizationComponent-sC--o74M.js.map} +1 -1
- package/chunk/{LowIncomeOrganizationComponent-CnulmvG6.js → LowIncomeOrganizationComponent-BvyJXrdQ.js} +5 -5
- package/chunk/{LowIncomeOrganizationComponent-CnulmvG6.js.map → LowIncomeOrganizationComponent-BvyJXrdQ.js.map} +1 -1
- package/chunk/{LowIncomeOrganizationComponent-D8gq-gLP.js → LowIncomeOrganizationComponent-CLJNbJKu.js} +5 -5
- package/chunk/{LowIncomeOrganizationComponent-D8gq-gLP.js.map → LowIncomeOrganizationComponent-CLJNbJKu.js.map} +1 -1
- package/chunk/{MedicalProfessionalOrganizationComponent-DTOhrqUL.js → MedicalProfessionalOrganizationComponent-B-syoAlu.js} +5 -5
- package/chunk/{MedicalProfessionalOrganizationComponent-3Itqu9cN.js.map → MedicalProfessionalOrganizationComponent-B-syoAlu.js.map} +1 -1
- package/chunk/{MedicalProfessionalOrganizationComponent-3Itqu9cN.js → MedicalProfessionalOrganizationComponent-BmiJZots.js} +5 -5
- package/chunk/{MedicalProfessionalOrganizationComponent-DTOhrqUL.js.map → MedicalProfessionalOrganizationComponent-BmiJZots.js.map} +1 -1
- package/chunk/MemberIdComponent-Cu2-mU8u.js +4 -4
- package/chunk/MemberIdComponent-D23Ilwkz.js +4 -4
- package/chunk/{MembershipOrganizationComponent-DIMXdPl3.js → MembershipOrganizationComponent-Bf1xshzG.js} +5 -5
- package/chunk/{MembershipOrganizationComponent-DIMXdPl3.js.map → MembershipOrganizationComponent-Bf1xshzG.js.map} +1 -1
- package/chunk/{MembershipOrganizationComponent-Ie7etzSn.js → MembershipOrganizationComponent-CIoAj7iZ.js} +5 -5
- package/chunk/{MembershipOrganizationComponent-Ie7etzSn.js.map → MembershipOrganizationComponent-CIoAj7iZ.js.map} +1 -1
- package/chunk/Onfido-37vLDu4k.js +4 -4
- package/chunk/PersonalInfoStepSubmitButton-BLlwswI-.js +4 -4
- package/chunk/PersonalInfoStepSubmitButton-veY-9f10.js +4 -4
- package/chunk/PersonalInfoStepWrapper-BiSzCAk8.js +4 -4
- package/chunk/PersonalInfoStepWrapper-HXjWWCYf.js +4 -4
- package/chunk/PostalCodeComponent-DvZ8oZli.js +4 -4
- package/chunk/PostalCodeComponent-lrJGRros.js +4 -4
- package/chunk/SSN-CQUI4vVz.js +4 -4
- package/chunk/SSN-DQ81decb.js +4 -4
- package/chunk/StateSelectComponent-CG87WpOW.js +4 -4
- package/chunk/StateSelectComponent-nOsC00ex.js +4 -4
- package/chunk/StatusComponent-BJQNoEQp.js +4 -4
- package/chunk/StatusComponent-n3jBHJdZ.js +4 -4
- package/chunk/{StepAgePersonalInfo-DtdP8w7b.js → StepAgePersonalInfo-BbImsXfx.js} +8 -8
- package/chunk/{StepAgePersonalInfo-Ca8JaxOI.js.map → StepAgePersonalInfo-BbImsXfx.js.map} +1 -1
- package/chunk/{StepAgePersonalInfo-Ca8JaxOI.js → StepAgePersonalInfo-D21CSk3y.js} +8 -8
- package/chunk/{StepAgePersonalInfo-DtdP8w7b.js.map → StepAgePersonalInfo-D21CSk3y.js.map} +1 -1
- package/chunk/StepCard-BZ5kx6cD.js +4 -4
- package/chunk/StepCard-D_mLHJLz.js +4 -4
- package/chunk/StepCollectIdentifier-2rYBJnI1.js +4 -4
- package/chunk/StepCollectIdentifier-mZjiHAT1.js +4 -4
- package/chunk/{StepCollectMilitaryPersonalInfoComponent-DIzCW8K5.js → StepCollectMilitaryPersonalInfoComponent-Be7kYEbM.js} +9 -9
- package/chunk/{StepCollectMilitaryPersonalInfoComponent-DIzCW8K5.js.map → StepCollectMilitaryPersonalInfoComponent-Be7kYEbM.js.map} +1 -1
- package/chunk/{StepCollectMilitaryPersonalInfoComponent-CgGDBhZS.js → StepCollectMilitaryPersonalInfoComponent-Y6UPWKD2.js} +9 -9
- package/chunk/{StepCollectMilitaryPersonalInfoComponent-CgGDBhZS.js.map → StepCollectMilitaryPersonalInfoComponent-Y6UPWKD2.js.map} +1 -1
- package/chunk/{StepCollectPersonalInfo-HNqAjPy4.js → StepCollectPersonalInfo-6evU9UFg.js} +16 -16
- package/chunk/{StepCollectPersonalInfo-HNqAjPy4.js.map → StepCollectPersonalInfo-6evU9UFg.js.map} +1 -1
- package/chunk/{StepCollectPersonalInfo-mLCPwTN6.js → StepCollectPersonalInfo-XkEXV-iW.js} +16 -16
- package/chunk/{StepCollectPersonalInfo-mLCPwTN6.js.map → StepCollectPersonalInfo-XkEXV-iW.js.map} +1 -1
- package/chunk/StepCompleteAuthentication-DnTif2W6.js +4 -4
- package/chunk/StepCompleteAuthentication-aBe0T7BX.js +4 -4
- package/chunk/{StepConsolation-DdswFFPp.js → StepConsolation-2GKAlcdt.js} +13 -13
- package/chunk/{StepConsolation-DdswFFPp.js.map → StepConsolation-2GKAlcdt.js.map} +1 -1
- package/chunk/{StepConsolation-UdKEsKki.js → StepConsolation-L3B5-pCn.js} +18 -18
- package/chunk/{StepConsolation-UdKEsKki.js.map → StepConsolation-L3B5-pCn.js.map} +1 -1
- package/chunk/{StepDocUpload-BY28iUhz.js → StepDocUpload-BOpUs-jc.js} +185 -185
- package/chunk/{StepDocUpload-BY28iUhz.js.map → StepDocUpload-BOpUs-jc.js.map} +1 -1
- package/chunk/{StepDocUpload-Uk4OkEbk.js → StepDocUpload-Ck2Fkmt3.js} +482 -482
- package/chunk/{StepDocUpload-Uk4OkEbk.js.map → StepDocUpload-Ck2Fkmt3.js.map} +1 -1
- package/chunk/{StepDriverLicensePersonalInfoComponent-veSQF1xd.js → StepDriverLicensePersonalInfoComponent-YmaqDbhD.js} +6 -6
- package/chunk/{StepDriverLicensePersonalInfoComponent-BbamyvXd.js.map → StepDriverLicensePersonalInfoComponent-YmaqDbhD.js.map} +1 -1
- package/chunk/{StepDriverLicensePersonalInfoComponent-BbamyvXd.js → StepDriverLicensePersonalInfoComponent-ro1ZZchn.js} +6 -6
- package/chunk/{StepDriverLicensePersonalInfoComponent-veSQF1xd.js.map → StepDriverLicensePersonalInfoComponent-ro1ZZchn.js.map} +1 -1
- package/chunk/{StepEmailLoop-DsL4IHH7.js → StepEmailLoop-B09M3kHx.js} +29 -29
- package/chunk/{StepEmailLoop-DsL4IHH7.js.map → StepEmailLoop-B09M3kHx.js.map} +1 -1
- package/chunk/{StepEmailLoop-FytSYfcH.js → StepEmailLoop-BK-jB2V7.js} +17 -17
- package/chunk/{StepEmailLoop-FytSYfcH.js.map → StepEmailLoop-BK-jB2V7.js.map} +1 -1
- package/chunk/{StepEmploymentPersonalInfo-suokVw34.js → StepEmploymentPersonalInfo-CkpQtqFc.js} +7 -7
- package/chunk/{StepEmploymentPersonalInfo-suokVw34.js.map → StepEmploymentPersonalInfo-CkpQtqFc.js.map} +1 -1
- package/chunk/{StepEmploymentPersonalInfo-CT0xdIqB.js → StepEmploymentPersonalInfo-Dm54oUuJ.js} +7 -7
- package/chunk/{StepEmploymentPersonalInfo-CT0xdIqB.js.map → StepEmploymentPersonalInfo-Dm54oUuJ.js.map} +1 -1
- package/chunk/{StepFirstResponderPersonalInfo-cJ0I66V3.js → StepFirstResponderPersonalInfo-ab_a-a76.js} +9 -9
- package/chunk/{StepFirstResponderPersonalInfo-cJ0I66V3.js.map → StepFirstResponderPersonalInfo-ab_a-a76.js.map} +1 -1
- package/chunk/{StepFirstResponderPersonalInfo-21K4JPLJ.js → StepFirstResponderPersonalInfo-reHh6B-r.js} +9 -9
- package/chunk/{StepFirstResponderPersonalInfo-21K4JPLJ.js.map → StepFirstResponderPersonalInfo-reHh6B-r.js.map} +1 -1
- package/chunk/{StepGeneralIdentityPersonalInfoComponent-0vDhvX-f.js → StepGeneralIdentityPersonalInfoComponent-CfiOPTKL.js} +7 -7
- package/chunk/{StepGeneralIdentityPersonalInfoComponent-0vDhvX-f.js.map → StepGeneralIdentityPersonalInfoComponent-CfiOPTKL.js.map} +1 -1
- package/chunk/{StepGeneralIdentityPersonalInfoComponent-LtXbbdTk.js → StepGeneralIdentityPersonalInfoComponent-zArdBXOy.js} +7 -7
- package/chunk/{StepGeneralIdentityPersonalInfoComponent-LtXbbdTk.js.map → StepGeneralIdentityPersonalInfoComponent-zArdBXOy.js.map} +1 -1
- package/chunk/{StepHybridIdentityPersonalInfoComponent-CZ_NWsU5.js → StepHybridIdentityPersonalInfoComponent-Ddi_sFSV.js} +7 -7
- package/chunk/{StepHybridIdentityPersonalInfoComponent-CZ_NWsU5.js.map → StepHybridIdentityPersonalInfoComponent-Ddi_sFSV.js.map} +1 -1
- package/chunk/{StepHybridIdentityPersonalInfoComponent-D_kNxG4z.js → StepHybridIdentityPersonalInfoComponent-eKyrwWDx.js} +7 -7
- package/chunk/{StepHybridIdentityPersonalInfoComponent-D_kNxG4z.js.map → StepHybridIdentityPersonalInfoComponent-eKyrwWDx.js.map} +1 -1
- package/chunk/{StepIDCheckLoop-Cs9sCYeC.js → StepIDCheckLoop-CzOTam3f.js} +5 -5
- package/chunk/{StepIDCheckLoop-Cs9sCYeC.js.map → StepIDCheckLoop-CzOTam3f.js.map} +1 -1
- package/chunk/{StepIDCheckLoop-y3B18jLz.js → StepIDCheckLoop-NVY6Na18.js} +5 -5
- package/chunk/{StepIDCheckLoop-y3B18jLz.js.map → StepIDCheckLoop-NVY6Na18.js.map} +1 -1
- package/chunk/StepIDCheckLoopOnfido-BN0JQSB1.js +4 -4
- package/chunk/StepIDCheckLoopOnfido-BiO4Prw4.js +4 -4
- package/chunk/{StepIDCheckLoopRegula-Ds4UjuR0.js → StepIDCheckLoopRegula--6TQ7fHt.js} +37 -37
- package/chunk/{StepIDCheckLoopRegula-B04QQ5kq.js.map → StepIDCheckLoopRegula--6TQ7fHt.js.map} +1 -1
- package/chunk/{StepIDCheckLoopRegula-B04QQ5kq.js → StepIDCheckLoopRegula-CU0C7_yr.js} +20 -20
- package/chunk/{StepIDCheckLoopRegula-Ds4UjuR0.js.map → StepIDCheckLoopRegula-CU0C7_yr.js.map} +1 -1
- package/chunk/{StepLicensedProfessionalPersonalInfo-ZnVGGI7J.js → StepLicensedProfessionalPersonalInfo-CNoYHtIc.js} +9 -9
- package/chunk/{StepLicensedProfessionalPersonalInfo-CGg2o0fx.js.map → StepLicensedProfessionalPersonalInfo-CNoYHtIc.js.map} +1 -1
- package/chunk/{StepLicensedProfessionalPersonalInfo-CGg2o0fx.js → StepLicensedProfessionalPersonalInfo-CsSeujol.js} +9 -9
- package/chunk/{StepLicensedProfessionalPersonalInfo-ZnVGGI7J.js.map → StepLicensedProfessionalPersonalInfo-CsSeujol.js.map} +1 -1
- package/chunk/{StepLowIncomePersonalInfo-C_R16jsz.js → StepLowIncomePersonalInfo-B4ItgnSU.js} +8 -8
- package/chunk/{StepLowIncomePersonalInfo-C_R16jsz.js.map → StepLowIncomePersonalInfo-B4ItgnSU.js.map} +1 -1
- package/chunk/{StepLowIncomePersonalInfo-BiMIDkdF.js → StepLowIncomePersonalInfo-Bx2sI2Zj.js} +8 -8
- package/chunk/{StepLowIncomePersonalInfo-BiMIDkdF.js.map → StepLowIncomePersonalInfo-Bx2sI2Zj.js.map} +1 -1
- package/chunk/{StepMedicalProfessionalPersonalInfo-BRInNGaM.js → StepMedicalProfessionalPersonalInfo-3VniR-r2.js} +9 -9
- package/chunk/{StepMedicalProfessionalPersonalInfo-BRInNGaM.js.map → StepMedicalProfessionalPersonalInfo-3VniR-r2.js.map} +1 -1
- package/chunk/{StepMedicalProfessionalPersonalInfo-DBueJ-et.js → StepMedicalProfessionalPersonalInfo-BPcnz6WY.js} +9 -9
- package/chunk/{StepMedicalProfessionalPersonalInfo-DBueJ-et.js.map → StepMedicalProfessionalPersonalInfo-BPcnz6WY.js.map} +1 -1
- package/chunk/{StepMemberPersonalInfo-DV17pI3O.js → StepMemberPersonalInfo-BLSxbVT5.js} +8 -8
- package/chunk/{StepMemberPersonalInfo-AXsuKV9t.js.map → StepMemberPersonalInfo-BLSxbVT5.js.map} +1 -1
- package/chunk/{StepMemberPersonalInfo-AXsuKV9t.js → StepMemberPersonalInfo-CqDljJ_G.js} +8 -8
- package/chunk/{StepMemberPersonalInfo-DV17pI3O.js.map → StepMemberPersonalInfo-CqDljJ_G.js.map} +1 -1
- package/chunk/{StepMoverPersonalInfo-DLA7Lwxq.js → StepMoverPersonalInfo-CEzqq77M.js} +6 -6
- package/chunk/{StepMoverPersonalInfo-DLA7Lwxq.js.map → StepMoverPersonalInfo-CEzqq77M.js.map} +1 -1
- package/chunk/{StepMoverPersonalInfo-GPZw8v_N.js → StepMoverPersonalInfo-mDxH8pdD.js} +6 -6
- package/chunk/{StepMoverPersonalInfo-GPZw8v_N.js.map → StepMoverPersonalInfo-mDxH8pdD.js.map} +1 -1
- package/chunk/{StepOverrideComponent-6emc4t15.js → StepOverrideComponent-BRbDer8j.js} +25 -25
- package/chunk/{StepOverrideComponent-6emc4t15.js.map → StepOverrideComponent-BRbDer8j.js.map} +1 -1
- package/chunk/{StepOverrideComponent-Cd1adOMO.js → StepOverrideComponent-DzKCqsTp.js} +16 -16
- package/chunk/{StepOverrideComponent-Cd1adOMO.js.map → StepOverrideComponent-DzKCqsTp.js.map} +1 -1
- package/chunk/StepSMSLoop-BJLKDaZG.js +4 -4
- package/chunk/StepSMSLoop-DYCZvGvb.js +4 -4
- package/chunk/StepSSO-B0NDIcgz.js +4 -4
- package/chunk/StepSSO-DYAr8DyT.js +4 -4
- package/chunk/{StepSocialSecurityNumber-BlD9PCHV.js → StepSocialSecurityNumber-Cj4IegXf.js} +15 -15
- package/chunk/{StepSocialSecurityNumber-BGsRsjM1.js.map → StepSocialSecurityNumber-Cj4IegXf.js.map} +1 -1
- package/chunk/{StepSocialSecurityNumber-BGsRsjM1.js → StepSocialSecurityNumber-D_6-yJHJ.js} +18 -18
- package/chunk/{StepSocialSecurityNumber-BlD9PCHV.js.map → StepSocialSecurityNumber-D_6-yJHJ.js.map} +1 -1
- package/chunk/{StepStudentPersonalInfo-geh6wZ_D.js → StepStudentPersonalInfo-D7UYHkij.js} +9 -9
- package/chunk/{StepStudentPersonalInfo-B8ZqZXMN.js.map → StepStudentPersonalInfo-D7UYHkij.js.map} +1 -1
- package/chunk/{StepStudentPersonalInfo-B8ZqZXMN.js → StepStudentPersonalInfo-DoCd4QzI.js} +38 -38
- package/chunk/{StepStudentPersonalInfo-geh6wZ_D.js.map → StepStudentPersonalInfo-DoCd4QzI.js.map} +1 -1
- package/chunk/{StepSuccess-CB3MM6Ok.js → StepSuccess-COzcG0d4.js} +32 -32
- package/chunk/{StepSuccess-CB3MM6Ok.js.map → StepSuccess-COzcG0d4.js.map} +1 -1
- package/chunk/{StepSuccess-CJKRWcmj.js → StepSuccess-DmBqpPul.js} +22 -22
- package/chunk/{StepSuccess-CJKRWcmj.js.map → StepSuccess-DmBqpPul.js.map} +1 -1
- package/chunk/{StepTeacherPersonalInfo-PSnqhgwN.js → StepTeacherPersonalInfo-C-gLF7UY.js} +9 -9
- package/chunk/{StepTeacherPersonalInfo-Bw1E5Mjo.js.map → StepTeacherPersonalInfo-C-gLF7UY.js.map} +1 -1
- package/chunk/{StepTeacherPersonalInfo-Bw1E5Mjo.js → StepTeacherPersonalInfo-CK9KHo6m.js} +9 -9
- package/chunk/{StepTeacherPersonalInfo-PSnqhgwN.js.map → StepTeacherPersonalInfo-CK9KHo6m.js.map} +1 -1
- package/chunk/StepThirdPartyLoop-CemU-J3W.js +4 -4
- package/chunk/StepThirdPartyLoop-DpCPBnq_.js +4 -4
- package/chunk/{TeacherSchoolComponent-CZ_Ju_nz.js → TeacherSchoolComponent-5NrzG4iI.js} +5 -5
- package/chunk/{TeacherSchoolComponent-CZ_Ju_nz.js.map → TeacherSchoolComponent-5NrzG4iI.js.map} +1 -1
- package/chunk/{TeacherSchoolComponent-Dfb49YI1.js → TeacherSchoolComponent-CqCF369X.js} +5 -5
- package/chunk/{TeacherSchoolComponent-Dfb49YI1.js.map → TeacherSchoolComponent-CqCF369X.js.map} +1 -1
- package/chunk/ThreatMetrix-BZ2mAsXV.js +4 -4
- package/chunk/ar-Dv80pKr-.js +4 -4
- package/chunk/bg-BdSc6G6N.js +4 -4
- package/chunk/bn-IN-CrUr8JOI.js +4 -4
- package/chunk/countryUtils-DaKrkKMK.js +4 -4
- package/chunk/countryUtils-H8nsbqSo.js +4 -4
- package/chunk/cs-DpA5-rH7.js +4 -4
- package/chunk/da-C3-FJEY_.js +4 -4
- package/chunk/de-jPL9fRXR.js +4 -4
- package/chunk/downshift.esm-Cj6_BOEM.js +4 -4
- package/chunk/downshift.esm-LvcDlmEB.js +4 -4
- package/chunk/el-DlrR5LMm.js +4 -4
- package/chunk/en-GB-W9d6ZCN1.js +4 -4
- package/chunk/es-B6OTYL4o.js +4 -4
- package/chunk/es-ES-xHUvZoL6.js +4 -4
- package/chunk/et-DslGQ4U9.js +4 -4
- package/chunk/fa-CyMH0fVT.js +4 -4
- package/chunk/fi-DlWjgmmJ.js +4 -4
- package/chunk/fr-CA-CNlAWAGz.js +4 -4
- package/chunk/fr-CKAMq4d5.js +4 -4
- package/chunk/ga-DtNqo3ZG.js +4 -4
- package/chunk/hi-IN-D_eGFRvE.js +4 -4
- package/chunk/hr-DTuTLrLg.js +4 -4
- package/chunk/hu-DSRQQvFq.js +4 -4
- package/chunk/id-Dt1qRS4w.js +4 -4
- package/chunk/is-DFKTfJF9.js +4 -4
- package/chunk/it-DAMkVYDo.js +4 -4
- package/chunk/iw-B-0MBQrz.js +4 -4
- package/chunk/ja-C5qGKliw.js +4 -4
- package/chunk/kk-Cv_pOPga.js +4 -4
- package/chunk/ko-DF10ih6D.js +4 -4
- package/chunk/lo-1CgtDqdu.js +4 -4
- package/chunk/lt-5ciyKS_n.js +4 -4
- package/chunk/lv-BVU8SzMV.js +4 -4
- package/chunk/mocks-BxRYqs3S.js +4 -4
- package/chunk/mocks-DhaSEfKH.js +4 -4
- package/chunk/ms-DfT-JI0V.js +4 -4
- package/chunk/nl-BE-DWOhBddM.js +4 -4
- package/chunk/nl-CAa4TZix.js +4 -4
- package/chunk/no-BDEZtPNY.js +4 -4
- package/chunk/pl-cJhZ0uIf.js +4 -4
- package/chunk/pt-BR-BRTaX_c8.js +4 -4
- package/chunk/pt-DUpqsAm0.js +4 -4
- package/chunk/ro-C7LObCGu.js +4 -4
- package/chunk/ru-Cn52qo44.js +4 -4
- package/chunk/sk-CyBj5Lrr.js +4 -4
- package/chunk/sl-B83EBD3O.js +4 -4
- package/chunk/sr-BWltsfGo.js +4 -4
- package/chunk/sv-WoxLH2NJ.js +4 -4
- package/chunk/sw-DVbHvR4N.js +4 -4
- package/chunk/ta-CCOsIMmw.js +4 -4
- package/chunk/th-OmrOHkUd.js +4 -4
- package/chunk/tl-SPm1AiBZ.js +4 -4
- package/chunk/tr-CaKTs3Fq.js +4 -4
- package/chunk/uk-BUsn2zPB.js +4 -4
- package/chunk/ur-Cm2EOQrR.js +4 -4
- package/chunk/{useCollectFieldsEndpoint-DAgrG_FJ.js → useCollectFieldsEndpoint-CWkFjx5s.js} +9 -9
- package/chunk/{useCollectFieldsEndpoint-DAgrG_FJ.js.map → useCollectFieldsEndpoint-CWkFjx5s.js.map} +1 -1
- package/chunk/{useCollectFieldsEndpoint-ielmtTHm.js → useCollectFieldsEndpoint-DgcqtYAq.js} +15 -15
- package/chunk/{useCollectFieldsEndpoint-ielmtTHm.js.map → useCollectFieldsEndpoint-DgcqtYAq.js.map} +1 -1
- package/chunk/useMetrics-BxQBcyhj.js +4 -4
- package/chunk/useMetrics-wi33JsKT.js +4 -4
- package/chunk/vi-gUtmT7wP.js +4 -4
- package/chunk/zh-Bri8XWQG.js +4 -4
- package/chunk/zh-HK-K7X0SaAv.js +4 -4
- package/chunk/zu-DPTVvU5o.js +4 -4
- package/package.json +1 -1
- package/sheerid-install.css +4 -4
- package/sheerid-install.js +4 -4
- package/sheerid.css +4 -4
- package/sheerid.js +1044 -1072
- package/sheerid.js.map +1 -1
|
@@ -4,12 +4,12 @@
|
|
|
4
4
|
* This file is not intended for use in other contexts and there are no guarantees about its behavior outside of MySheerID.
|
|
5
5
|
*/
|
|
6
6
|
/**
|
|
7
|
-
* VERSION: 2.
|
|
8
|
-
* BUILD_TIMESTAMP:
|
|
9
|
-
* BUILD_DATE: Wed Jun 24 2026
|
|
10
|
-
* BUILD_COMMIT:
|
|
7
|
+
* VERSION: 2.248.0
|
|
8
|
+
* BUILD_TIMESTAMP: 1782334794973
|
|
9
|
+
* BUILD_DATE: Wed Jun 24 2026 20:59:54 GMT+0000 (Coordinated Universal Time)
|
|
10
|
+
* BUILD_COMMIT: 8cb06b1fe5288b47f3dca59fb4c49ff9b8bc12b4
|
|
11
11
|
*/
|
|
12
|
-
import { $t as e, Bt as t, F as n, Gt as r, Pt as i, Q as a, Wt as o, Xt as s, Yt as c, an as l,
|
|
12
|
+
import { $t as e, Bt as t, F as n, Gt as r, Pt as i, Q as a, Wt as o, Xt as s, Yt as c, an as l, ct as u, mn as d, mt as f, on as p, pt as m, wn as h, xn as g, zt as _ } from "../_mysheerid-preview.js";
|
|
13
13
|
import { t as v } from "./CopyToClipboardComponent-CtgyrPCJ.js";
|
|
14
14
|
//#region src/lib/installScript/utils.ts
|
|
15
15
|
var y = /* @__PURE__ */ h(e(), 1), b = (e) => {
|
|
@@ -67,7 +67,7 @@ var y = /* @__PURE__ */ h(e(), 1), b = (e) => {
|
|
|
67
67
|
}
|
|
68
68
|
getIframeUrl() {
|
|
69
69
|
let e = new URL(this.verificationUrl);
|
|
70
|
-
return e.searchParams.set("verificationIframeUid", this.verificationIframeUid), e.searchParams.set(l, window.location.href), e.searchParams.set(
|
|
70
|
+
return e.searchParams.set("verificationIframeUid", this.verificationIframeUid), e.searchParams.set(l, window.location.href), e.searchParams.set(p, this.installType), this.locale && e.searchParams.set("locale", this.locale), e.toString();
|
|
71
71
|
}
|
|
72
72
|
addOnLoadEvent(e) {
|
|
73
73
|
try {
|
|
@@ -154,19 +154,19 @@ function T(e, t) {
|
|
|
154
154
|
}
|
|
155
155
|
//#endregion
|
|
156
156
|
//#region src/components/StepSuccess/StepSuccessComponent.tsx
|
|
157
|
-
var E =
|
|
157
|
+
var E = m(), D = (e, t = "_top") => {
|
|
158
158
|
window.open(e, t).focus();
|
|
159
159
|
}, O = () => {
|
|
160
160
|
let e = r().restApi.serviceUrl;
|
|
161
161
|
return e.includes("services.sheerid.com") || e.includes("my.sheerid.com") ? "https://shr-id.com" : "https://aa-preview.sheerid.net";
|
|
162
162
|
}, k = ({ verificationService: e }) => {
|
|
163
|
-
let { verificationResponse: r, programId: i, viewModel: l } = e, { verificationId:
|
|
163
|
+
let { verificationResponse: r, programId: i, viewModel: l } = e, { verificationId: p, redirectUrl: m } = r, { config: h } = e.programTheme, g = y.useRef(null), b = !!m, x = r.rewardCode || "{rewardCode}", S = h.offerType === "noCode", { rewardDisplay: C } = h, w = !S && !!C.length, k = _("mockConsumerInfoState") || r.consumerInfoState, A = k === "consumerNotFound" || k === "consumerFoundNewFieldsAvailable", j = o(l, r);
|
|
164
164
|
return y.useEffect(() => {
|
|
165
|
-
g.current && (g.current.innerHTML = "", T(g.current, `${O()}/affinity/${j}/${i}/${
|
|
165
|
+
g.current && (g.current.innerHTML = "", T(g.current, `${O()}/affinity/${j}/${i}/${p}`));
|
|
166
166
|
}, [
|
|
167
167
|
g,
|
|
168
168
|
i,
|
|
169
|
-
|
|
169
|
+
p,
|
|
170
170
|
j
|
|
171
171
|
]), /* @__PURE__ */ (0, E.jsxs)("div", {
|
|
172
172
|
id: "sid-step-success",
|
|
@@ -178,7 +178,7 @@ var E = p(), D = (e, t = "_top") => {
|
|
|
178
178
|
children: [
|
|
179
179
|
/* @__PURE__ */ (0, E.jsx)("div", {
|
|
180
180
|
className: "sid-success-logo-container sid-l-horz-center",
|
|
181
|
-
children: /* @__PURE__ */ (0, E.jsx)(
|
|
181
|
+
children: /* @__PURE__ */ (0, E.jsx)(u, {
|
|
182
182
|
verificationService: e,
|
|
183
183
|
fallbackLogo: /* @__PURE__ */ (0, E.jsx)("img", {
|
|
184
184
|
className: "sid-success-logo-default sid-l-lead-image",
|
|
@@ -189,7 +189,7 @@ var E = p(), D = (e, t = "_top") => {
|
|
|
189
189
|
}),
|
|
190
190
|
/* @__PURE__ */ (0, E.jsx)(a, {
|
|
191
191
|
align: "center",
|
|
192
|
-
children: /* @__PURE__ */ (0, E.jsx)(
|
|
192
|
+
children: /* @__PURE__ */ (0, E.jsx)(f, {
|
|
193
193
|
id: "step.success.title",
|
|
194
194
|
defaultMessage: "Success! You've been verified.",
|
|
195
195
|
tagName: "h1"
|
|
@@ -197,7 +197,7 @@ var E = p(), D = (e, t = "_top") => {
|
|
|
197
197
|
}),
|
|
198
198
|
/* @__PURE__ */ (0, E.jsx)("div", {
|
|
199
199
|
className: "sid-header__subtitle sid-l-horz-center",
|
|
200
|
-
children: /* @__PURE__ */ (0, E.jsx)(
|
|
200
|
+
children: /* @__PURE__ */ (0, E.jsx)(f, {
|
|
201
201
|
id: "step.success.subtitle",
|
|
202
202
|
defaultMessage: "You are now eligible for this special offer.",
|
|
203
203
|
tagName: "p"
|
|
@@ -207,7 +207,7 @@ var E = p(), D = (e, t = "_top") => {
|
|
|
207
207
|
}),
|
|
208
208
|
w && /* @__PURE__ */ (0, E.jsx)("div", {
|
|
209
209
|
className: "sid-l-horz-center sid-reward-container sid-l-space-top-md",
|
|
210
|
-
children: C.map((e) => e ===
|
|
210
|
+
children: C.map((e) => e === d.TEXT ? /* @__PURE__ */ (0, E.jsxs)("div", { children: [/* @__PURE__ */ (0, E.jsx)("div", {
|
|
211
211
|
className: "sid-reward-code sid-l-space-top-md sid-h-jumbo-text sid-l-horz-center",
|
|
212
212
|
role: "region",
|
|
213
213
|
children: x
|
|
@@ -215,11 +215,11 @@ var E = p(), D = (e, t = "_top") => {
|
|
|
215
215
|
className: "sid-l-space-top-md sid-h-bold-text sid-l-horz-center",
|
|
216
216
|
children: /* @__PURE__ */ (0, E.jsx)(v, {
|
|
217
217
|
textToCopy: x,
|
|
218
|
-
notificationText: /* @__PURE__ */ (0, E.jsx)(
|
|
218
|
+
notificationText: /* @__PURE__ */ (0, E.jsx)(f, {
|
|
219
219
|
id: "copied",
|
|
220
220
|
defaultMessage: "Copied"
|
|
221
221
|
}),
|
|
222
|
-
children: /* @__PURE__ */ (0, E.jsx)(
|
|
222
|
+
children: /* @__PURE__ */ (0, E.jsx)(f, {
|
|
223
223
|
id: "step.success.copyCouponCode",
|
|
224
224
|
defaultMessage: "Copy coupon code"
|
|
225
225
|
})
|
|
@@ -227,12 +227,12 @@ var E = p(), D = (e, t = "_top") => {
|
|
|
227
227
|
})] }, e) : /* @__PURE__ */ (0, E.jsx)("img", {
|
|
228
228
|
className: "sid-l-space-top-md sid-barcode",
|
|
229
229
|
alt: x,
|
|
230
|
-
src: t(
|
|
230
|
+
src: t(p, "rewardCode", e)
|
|
231
231
|
}, e))
|
|
232
232
|
}),
|
|
233
233
|
/* @__PURE__ */ (0, E.jsx)("div", {
|
|
234
234
|
className: `sid-footer sid-success-footer sid-l-horz-center ${S ? "sid-l-space-top-md" : "sid-l-space-top-lg"}`,
|
|
235
|
-
children: /* @__PURE__ */ (0, E.jsx)(
|
|
235
|
+
children: /* @__PURE__ */ (0, E.jsx)(f, {
|
|
236
236
|
id: "step.success.emailNotification",
|
|
237
237
|
defaultMessage: "We have sent you a confirmation email with redemption instructions. Look for the email from {email}.",
|
|
238
238
|
tagName: "p",
|
|
@@ -243,9 +243,9 @@ var E = p(), D = (e, t = "_top") => {
|
|
|
243
243
|
className: "sid-submit sid-success-submit sid-l-space-top-md",
|
|
244
244
|
children: /* @__PURE__ */ (0, E.jsx)("button", {
|
|
245
245
|
type: "button",
|
|
246
|
-
onClick: () => D(
|
|
246
|
+
onClick: () => D(m),
|
|
247
247
|
className: "sid-btn sid-success-redirect-btn sid-btn--dark",
|
|
248
|
-
children: /* @__PURE__ */ (0, E.jsx)(
|
|
248
|
+
children: /* @__PURE__ */ (0, E.jsx)(f, {
|
|
249
249
|
id: "step.success.redirectButtonText",
|
|
250
250
|
defaultMessage: "Continue"
|
|
251
251
|
})
|
|
@@ -254,10 +254,10 @@ var E = p(), D = (e, t = "_top") => {
|
|
|
254
254
|
/* @__PURE__ */ (0, E.jsx)("div", {
|
|
255
255
|
className: "sid-footer sid-success-verification-only-footer sid-l-horz-center sid-l-space-top-lg sid-h-small-text",
|
|
256
256
|
role: "contentinfo",
|
|
257
|
-
children: /* @__PURE__ */ (0, E.jsx)(
|
|
257
|
+
children: /* @__PURE__ */ (0, E.jsx)(f, {
|
|
258
258
|
id: "companyName",
|
|
259
259
|
defaultMessage: "{Company}",
|
|
260
|
-
children: (e) => /* @__PURE__ */ (0, E.jsx)(
|
|
260
|
+
children: (e) => /* @__PURE__ */ (0, E.jsx)(f, {
|
|
261
261
|
id: "step.success.verificationOnly",
|
|
262
262
|
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 ",
|
|
263
263
|
values: { companyName: e },
|
|
@@ -275,28 +275,28 @@ var E = p(), D = (e, t = "_top") => {
|
|
|
275
275
|
children: [
|
|
276
276
|
/* @__PURE__ */ (0, E.jsx)("div", {
|
|
277
277
|
className: "sid-remember-me-title",
|
|
278
|
-
children: k === "consumerNotFound" ? /* @__PURE__ */ (0, E.jsx)(
|
|
278
|
+
children: k === "consumerNotFound" ? /* @__PURE__ */ (0, E.jsx)(f, {
|
|
279
279
|
id: "step.success.rememberMe.consumerNotFound.title",
|
|
280
280
|
defaultMessage: "Save your info for 1-click verification"
|
|
281
|
-
}) : /* @__PURE__ */ (0, E.jsx)(
|
|
281
|
+
}) : /* @__PURE__ */ (0, E.jsx)(f, {
|
|
282
282
|
id: "step.success.rememberMe.consumerFound.title",
|
|
283
283
|
defaultMessage: "Update Your Profile"
|
|
284
284
|
})
|
|
285
285
|
}),
|
|
286
286
|
/* @__PURE__ */ (0, E.jsx)("div", {
|
|
287
287
|
className: "sid-remember-me-description",
|
|
288
|
-
children: k === "consumerNotFound" ? /* @__PURE__ */ (0, E.jsx)(
|
|
288
|
+
children: k === "consumerNotFound" ? /* @__PURE__ */ (0, E.jsx)(f, {
|
|
289
289
|
id: "companyName",
|
|
290
290
|
defaultMessage: "{Company}",
|
|
291
|
-
children: (e) => /* @__PURE__ */ (0, E.jsx)(
|
|
291
|
+
children: (e) => /* @__PURE__ */ (0, E.jsx)(f, {
|
|
292
292
|
id: "step.success.rememberMe.consumerNotFound.description",
|
|
293
293
|
defaultMessage: "Get faster access to future offers with {companyName} and other brands using SheerID's Remember Me service.",
|
|
294
294
|
values: { companyName: e }
|
|
295
295
|
})
|
|
296
|
-
}) : /* @__PURE__ */ (0, E.jsx)(
|
|
296
|
+
}) : /* @__PURE__ */ (0, E.jsx)(f, {
|
|
297
297
|
id: "companyName",
|
|
298
298
|
defaultMessage: "{Company}",
|
|
299
|
-
children: (e) => /* @__PURE__ */ (0, E.jsx)(
|
|
299
|
+
children: (e) => /* @__PURE__ */ (0, E.jsx)(f, {
|
|
300
300
|
id: "step.success.rememberMe.consumerFound.description",
|
|
301
301
|
defaultMessage: "Save new info for future offers with {companyName} and other brands using SheerID's Remember Me service.",
|
|
302
302
|
values: { companyName: e }
|
|
@@ -309,14 +309,14 @@ var E = p(), D = (e, t = "_top") => {
|
|
|
309
309
|
s(c.SUCCESS_REDIRECT_CLICKED, {
|
|
310
310
|
programId: i,
|
|
311
311
|
locale: j,
|
|
312
|
-
verificationId:
|
|
313
|
-
}), D(n(j, i,
|
|
312
|
+
verificationId: p
|
|
313
|
+
}), D(n(j, i, p), "_blank");
|
|
314
314
|
},
|
|
315
315
|
className: "sid-btn sid-remember-me-redirect-btn",
|
|
316
|
-
children: k === "consumerNotFound" ? /* @__PURE__ */ (0, E.jsx)(
|
|
316
|
+
children: k === "consumerNotFound" ? /* @__PURE__ */ (0, E.jsx)(f, {
|
|
317
317
|
id: "step.success.rememberMe.consumerNotFound.button",
|
|
318
318
|
defaultMessage: "Enroll Now"
|
|
319
|
-
}) : /* @__PURE__ */ (0, E.jsx)(
|
|
319
|
+
}) : /* @__PURE__ */ (0, E.jsx)(f, {
|
|
320
320
|
id: "step.success.rememberMe.consumerFound.button",
|
|
321
321
|
defaultMessage: "Save to Remember Me"
|
|
322
322
|
})
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StepSuccess-CB3MM6Ok.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,eAAe,CAAG,KAC3B,KAAK,mBAAmB,GACxB,KAAK,kBAAkB,IAAI,IAAI,EAAmB,CAAG,CAAC,GACtD,KAAK,wBAAwB,EAAO,eAAe,KAEnD,EAAO,MAAM,2DAA2D,YAAY;CAExF;CAEA,UAAgB;EACd,KAAK,gBAAgB,SAAS,MAAa,EAAS,CAAC;CACvD;CAEA,OAAO,iBAAyB;EAC9B,OAAO,KAAK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AA,GAAA,EAAA,KAAC,GAAD;OACE,IAAG;OACH,gBAAe;MAChB,CAAA;KAEG,CAAA;IACL;;EAEJ;;AAET"}
|
|
1
|
+
{"version":3,"file":"StepSuccess-COzcG0d4.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,eAAe,CAAG,KAC3B,KAAK,mBAAmB,GACxB,KAAK,kBAAkB,IAAI,IAAI,EAAmB,CAAG,CA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;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,11 +1,11 @@
|
|
|
1
1
|
|
|
2
2
|
/**
|
|
3
|
-
* VERSION: 2.
|
|
4
|
-
* BUILD_TIMESTAMP:
|
|
5
|
-
* BUILD_DATE: Wed Jun 24 2026
|
|
6
|
-
* BUILD_COMMIT:
|
|
3
|
+
* VERSION: 2.248.0
|
|
4
|
+
* BUILD_TIMESTAMP: 1782334790592
|
|
5
|
+
* BUILD_DATE: Wed Jun 24 2026 20:59:50 GMT+0000 (Coordinated Universal Time)
|
|
6
|
+
* BUILD_COMMIT: 8cb06b1fe5288b47f3dca59fb4c49ff9b8bc12b4
|
|
7
7
|
*/
|
|
8
|
-
import { $ as e, Bt as t, Ct as n, Ft as r, I as i, It as a, Ot as o, Pt as s, Vt as c, Wt as l, Xt as u, Zt as d,
|
|
8
|
+
import { $ as e, Bt as t, Ct as n, Ft as r, I as i, It as a, Ot as o, Pt as s, Vt as c, Wt as l, Xt as u, Zt as d, en as f, lt as p, pn as m, wn as h, xn as g, yn as _ } from "../sheerid.js";
|
|
9
9
|
import { t as v } from "./CopyToClipboardComponent-BksoYi0Z.js";
|
|
10
10
|
//#region src/lib/installScript/utils.ts
|
|
11
11
|
var y = /* @__PURE__ */ h(g(), 1), b = (e) => {
|
|
@@ -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)(
|
|
177
|
+
children: /* @__PURE__ */ (0, E.jsx)(p, {
|
|
178
178
|
verificationService: n,
|
|
179
179
|
fallbackLogo: /* @__PURE__ */ (0, E.jsx)("img", {
|
|
180
180
|
className: "sid-success-logo-default sid-l-lead-image",
|
|
@@ -185,7 +185,7 @@ var E = s(), D = (e, t = "_top") => {
|
|
|
185
185
|
}),
|
|
186
186
|
/* @__PURE__ */ (0, E.jsx)(e, {
|
|
187
187
|
align: "center",
|
|
188
|
-
children: /* @__PURE__ */ (0, E.jsx)(
|
|
188
|
+
children: /* @__PURE__ */ (0, E.jsx)(f, {
|
|
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)(
|
|
196
|
+
children: /* @__PURE__ */ (0, E.jsx)(f, {
|
|
197
197
|
id: "step.success.subtitle",
|
|
198
198
|
defaultMessage: "You are now eligible for this special offer.",
|
|
199
199
|
tagName: "p"
|
|
@@ -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)(
|
|
214
|
+
notificationText: /* @__PURE__ */ (0, E.jsx)(f, {
|
|
215
215
|
id: "copied",
|
|
216
216
|
defaultMessage: "Copied"
|
|
217
217
|
}),
|
|
218
|
-
children: /* @__PURE__ */ (0, E.jsx)(
|
|
218
|
+
children: /* @__PURE__ */ (0, E.jsx)(f, {
|
|
219
219
|
id: "step.success.copyCouponCode",
|
|
220
220
|
defaultMessage: "Copy coupon code"
|
|
221
221
|
})
|
|
@@ -228,7 +228,7 @@ var E = s(), D = (e, t = "_top") => {
|
|
|
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)(
|
|
231
|
+
children: /* @__PURE__ */ (0, E.jsx)(f, {
|
|
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",
|
|
@@ -241,7 +241,7 @@ var E = s(), D = (e, t = "_top") => {
|
|
|
241
241
|
type: "button",
|
|
242
242
|
onClick: () => D(h),
|
|
243
243
|
className: "sid-btn sid-success-redirect-btn sid-btn--dark",
|
|
244
|
-
children: /* @__PURE__ */ (0, E.jsx)(
|
|
244
|
+
children: /* @__PURE__ */ (0, E.jsx)(f, {
|
|
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)(
|
|
253
|
+
children: /* @__PURE__ */ (0, E.jsx)(f, {
|
|
254
254
|
id: "companyName",
|
|
255
255
|
defaultMessage: "{Company}",
|
|
256
|
-
children: (e) => /* @__PURE__ */ (0, E.jsx)(
|
|
256
|
+
children: (e) => /* @__PURE__ */ (0, E.jsx)(f, {
|
|
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 },
|
|
@@ -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)(
|
|
274
|
+
children: k === "consumerNotFound" ? /* @__PURE__ */ (0, E.jsx)(f, {
|
|
275
275
|
id: "step.success.rememberMe.consumerNotFound.title",
|
|
276
276
|
defaultMessage: "Save your info for 1-click verification"
|
|
277
|
-
}) : /* @__PURE__ */ (0, E.jsx)(
|
|
277
|
+
}) : /* @__PURE__ */ (0, E.jsx)(f, {
|
|
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)(
|
|
284
|
+
children: k === "consumerNotFound" ? /* @__PURE__ */ (0, E.jsx)(f, {
|
|
285
285
|
id: "companyName",
|
|
286
286
|
defaultMessage: "{Company}",
|
|
287
|
-
children: (e) => /* @__PURE__ */ (0, E.jsx)(
|
|
287
|
+
children: (e) => /* @__PURE__ */ (0, E.jsx)(f, {
|
|
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)(
|
|
292
|
+
}) : /* @__PURE__ */ (0, E.jsx)(f, {
|
|
293
293
|
id: "companyName",
|
|
294
294
|
defaultMessage: "{Company}",
|
|
295
|
-
children: (e) => /* @__PURE__ */ (0, E.jsx)(
|
|
295
|
+
children: (e) => /* @__PURE__ */ (0, E.jsx)(f, {
|
|
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 }
|
|
@@ -309,10 +309,10 @@ var E = s(), D = (e, t = "_top") => {
|
|
|
309
309
|
}), D(i(j, s, d), "_blank");
|
|
310
310
|
},
|
|
311
311
|
className: "sid-btn sid-remember-me-redirect-btn",
|
|
312
|
-
children: k === "consumerNotFound" ? /* @__PURE__ */ (0, E.jsx)(
|
|
312
|
+
children: k === "consumerNotFound" ? /* @__PURE__ */ (0, E.jsx)(f, {
|
|
313
313
|
id: "step.success.rememberMe.consumerNotFound.button",
|
|
314
314
|
defaultMessage: "Enroll Now"
|
|
315
|
-
}) : /* @__PURE__ */ (0, E.jsx)(
|
|
315
|
+
}) : /* @__PURE__ */ (0, E.jsx)(f, {
|
|
316
316
|
id: "step.success.rememberMe.consumerFound.button",
|
|
317
317
|
defaultMessage: "Save to Remember Me"
|
|
318
318
|
})
|