@sheerid/jslib 2.296.0 → 2.297.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 +37 -37
- package/chunk/{AddressComponent-D35t0wuk.js → AddressComponent-0k1NF_KY.js} +5 -5
- package/chunk/{AddressComponent-BfmMdKRk.js.map → AddressComponent-0k1NF_KY.js.map} +1 -1
- package/chunk/{AddressComponent-BfmMdKRk.js → AddressComponent-CdwQsL7v.js} +5 -5
- package/chunk/{AddressComponent-D35t0wuk.js.map → AddressComponent-CdwQsL7v.js.map} +1 -1
- package/chunk/AnnouncingHeader-CnV2m0Ak.js +4 -4
- package/chunk/AnnouncingHeader-zH7WLU2-.js +4 -4
- package/chunk/{BirthDateComponent-CpOFqU8H.js → BirthDateComponent-CHHstyyj.js} +5 -5
- package/chunk/{BirthDateComponent-CTKl9PbC.js.map → BirthDateComponent-CHHstyyj.js.map} +1 -1
- package/chunk/{BirthDateComponent-CTKl9PbC.js → BirthDateComponent-Dvb6lKmI.js} +5 -5
- package/chunk/{BirthDateComponent-CpOFqU8H.js.map → BirthDateComponent-Dvb6lKmI.js.map} +1 -1
- package/chunk/{CaptchaComponent-hjpjrO_P.js → CaptchaComponent-DbPdhlAS.js} +8 -8
- package/chunk/{CaptchaComponent-BJZ9V_pH.js.map → CaptchaComponent-DbPdhlAS.js.map} +1 -1
- package/chunk/{CaptchaComponent-BJZ9V_pH.js → CaptchaComponent-DozS1WnN.js} +8 -8
- package/chunk/{CaptchaComponent-hjpjrO_P.js.map → CaptchaComponent-DozS1WnN.js.map} +1 -1
- package/chunk/{ChangeLocaleComponent-lntDT1u0.js → ChangeLocaleComponent-BCSP6utA.js} +7 -7
- package/chunk/{ChangeLocaleComponent-Blkp6RPU.js.map → ChangeLocaleComponent-BCSP6utA.js.map} +1 -1
- package/chunk/{ChangeLocaleComponent-Blkp6RPU.js → ChangeLocaleComponent-HFXDiCM-.js} +7 -7
- package/chunk/{ChangeLocaleComponent-lntDT1u0.js.map → ChangeLocaleComponent-HFXDiCM-.js.map} +1 -1
- package/chunk/{City-D9gqlTjx.js → City-CfXPJin8.js} +5 -5
- package/chunk/{City-B1Su4Q-3.js.map → City-CfXPJin8.js.map} +1 -1
- package/chunk/{City-B1Su4Q-3.js → City-DS4thSuO.js} +5 -5
- package/chunk/{City-D9gqlTjx.js.map → City-DS4thSuO.js.map} +1 -1
- package/chunk/{CollegeNameComponent-CSI45Lxy.js → CollegeNameComponent-C-jBNGzt.js} +7 -7
- package/chunk/{CollegeNameComponent-CSI45Lxy.js.map → CollegeNameComponent-C-jBNGzt.js.map} +1 -1
- package/chunk/{CollegeNameComponent-DkbR_G-h.js → CollegeNameComponent-uWtQskEa.js} +7 -7
- package/chunk/{CollegeNameComponent-DkbR_G-h.js.map → CollegeNameComponent-uWtQskEa.js.map} +1 -1
- package/chunk/CopyToClipboardComponent-BdrpxpHJ.js +4 -4
- package/chunk/CopyToClipboardComponent-Dm3-3x4b.js +4 -4
- package/chunk/{CountryComponentWrapper-F2GH1MuK.js → CountryComponentWrapper-DMK4mXyj.js} +7 -7
- package/chunk/{CountryComponentWrapper-CCJkL-BP.js.map → CountryComponentWrapper-DMK4mXyj.js.map} +1 -1
- package/chunk/{CountryComponentWrapper-CCJkL-BP.js → CountryComponentWrapper-u1uEGSoo.js} +7 -7
- package/chunk/{CountryComponentWrapper-F2GH1MuK.js.map → CountryComponentWrapper-u1uEGSoo.js.map} +1 -1
- package/chunk/{DischargeDateComponent-CiE-h8-V.js → DischargeDateComponent-ByMd4z06.js} +8 -8
- package/chunk/{DischargeDateComponent-CiE-h8-V.js.map → DischargeDateComponent-ByMd4z06.js.map} +1 -1
- package/chunk/{DischargeDateComponent-DiIr0PAb.js → DischargeDateComponent-CWm_rfrf.js} +8 -8
- package/chunk/{DischargeDateComponent-DiIr0PAb.js.map → DischargeDateComponent-CWm_rfrf.js.map} +1 -1
- package/chunk/{DriverLicenseNumberComponent--ym3qzMT.js → DriverLicenseNumberComponent-BH2PgBlR.js} +5 -5
- package/chunk/{DriverLicenseNumberComponent--ym3qzMT.js.map → DriverLicenseNumberComponent-BH2PgBlR.js.map} +1 -1
- package/chunk/{DriverLicenseNumberComponent-Dy3-2Pmc.js → DriverLicenseNumberComponent-D-JmObdn.js} +5 -5
- package/chunk/{DriverLicenseNumberComponent-Dy3-2Pmc.js.map → DriverLicenseNumberComponent-D-JmObdn.js.map} +1 -1
- package/chunk/{EmailLoopPending-Bt7BajuC.js → EmailLoopPending-CIFjLuY_.js} +6 -6
- package/chunk/{EmailLoopPending-Bt7BajuC.js.map → EmailLoopPending-CIFjLuY_.js.map} +1 -1
- package/chunk/{EmailLoopPending-C2edcgLy.js → EmailLoopPending-pEFU9RKD.js} +6 -6
- package/chunk/{EmailLoopPending-C2edcgLy.js.map → EmailLoopPending-pEFU9RKD.js.map} +1 -1
- package/chunk/{ExtraMessage-Cob9qW6m.js → ExtraMessage-CXxx3n3y.js} +5 -5
- package/chunk/{ExtraMessage-Cob9qW6m.js.map → ExtraMessage-CXxx3n3y.js.map} +1 -1
- package/chunk/{ExtraMessage-wekuxzBu.js → ExtraMessage-wNLR13qq.js} +5 -5
- package/chunk/{ExtraMessage-wekuxzBu.js.map → ExtraMessage-wNLR13qq.js.map} +1 -1
- package/chunk/{FirstResponderOrganizationComponent-Al8r6Qm9.js → FirstResponderOrganizationComponent-hF8jNkY-.js} +7 -7
- package/chunk/{FirstResponderOrganizationComponent-Al8r6Qm9.js.map → FirstResponderOrganizationComponent-hF8jNkY-.js.map} +1 -1
- package/chunk/{FirstResponderOrganizationComponent-BO-TvISL.js → FirstResponderOrganizationComponent-ndZeO7z0.js} +7 -7
- package/chunk/{FirstResponderOrganizationComponent-BO-TvISL.js.map → FirstResponderOrganizationComponent-ndZeO7z0.js.map} +1 -1
- package/chunk/{FormFieldInputSelect-Dv55bWvn.js → FormFieldInputSelect-CqFLZK6n.js} +5 -5
- package/chunk/{FormFieldInputSelect-DR3EfH0r.js.map → FormFieldInputSelect-CqFLZK6n.js.map} +1 -1
- package/chunk/{FormFieldInputSelect-DR3EfH0r.js → FormFieldInputSelect-DmHsyDSa.js} +5 -5
- package/chunk/{FormFieldInputSelect-Dv55bWvn.js.map → FormFieldInputSelect-DmHsyDSa.js.map} +1 -1
- package/chunk/FormFieldLayout-D1tb5nAu.js +4 -4
- package/chunk/FormFieldLayout-Dt_dMiDh.js +4 -4
- package/chunk/FormFieldText-BU2NBm1H.js +4 -4
- package/chunk/FormFieldText-CsFISbyw.js +4 -4
- package/chunk/{FormFieldTypeahead-eRU9B5Ku.js → FormFieldTypeahead-C_leSJVU.js} +7 -7
- package/chunk/{FormFieldTypeahead-eRU9B5Ku.js.map → FormFieldTypeahead-C_leSJVU.js.map} +1 -1
- package/chunk/{FormFieldTypeahead-BdDdwhLS.js → FormFieldTypeahead-D7JwAbCt.js} +7 -7
- package/chunk/{FormFieldTypeahead-BdDdwhLS.js.map → FormFieldTypeahead-D7JwAbCt.js.map} +1 -1
- package/chunk/{FormFooterComponent-CP5Igxpo.js → FormFooterComponent-CjKa0nmR.js} +8 -8
- package/chunk/{FormFooterComponent-CP5Igxpo.js.map → FormFooterComponent-CjKa0nmR.js.map} +1 -1
- package/chunk/{FormFooterComponent-CmpIRI0d.js → FormFooterComponent-Hqjhhq4x.js} +8 -8
- package/chunk/{FormFooterComponent-CmpIRI0d.js.map → FormFooterComponent-Hqjhhq4x.js.map} +1 -1
- package/chunk/{FormSelectChoice-CqsrGoB5.js → FormSelectChoice-8y034X39.js} +6 -6
- package/chunk/{FormSelectChoice-BzH4Y9DK.js.map → FormSelectChoice-8y034X39.js.map} +1 -1
- package/chunk/{FormSelectChoice-BzH4Y9DK.js → FormSelectChoice-D3vZ9YLa.js} +6 -6
- package/chunk/{FormSelectChoice-CqsrGoB5.js.map → FormSelectChoice-D3vZ9YLa.js.map} +1 -1
- package/chunk/InputText-CuBi-ytU.js +4 -4
- package/chunk/InputText-DMztCQmi.js +4 -4
- package/chunk/{LicensedProfessionalOrganizationComponent-De1NTvgs.js → LicensedProfessionalOrganizationComponent-BwVTep9P.js} +7 -7
- package/chunk/{LicensedProfessionalOrganizationComponent-CS1-HJ1C.js.map → LicensedProfessionalOrganizationComponent-BwVTep9P.js.map} +1 -1
- package/chunk/{LicensedProfessionalOrganizationComponent-CS1-HJ1C.js → LicensedProfessionalOrganizationComponent-Ws1z-TNj.js} +7 -7
- package/chunk/{LicensedProfessionalOrganizationComponent-De1NTvgs.js.map → LicensedProfessionalOrganizationComponent-Ws1z-TNj.js.map} +1 -1
- package/chunk/{LogoComponent-jL4Rq6ZT.js → LogoComponent-CNDQdB3O.js} +5 -5
- package/chunk/{LogoComponent-DtnWbRII.js.map → LogoComponent-CNDQdB3O.js.map} +1 -1
- package/chunk/{LogoComponent-DtnWbRII.js → LogoComponent-Dg9CMeQ7.js} +5 -5
- package/chunk/{LogoComponent-jL4Rq6ZT.js.map → LogoComponent-Dg9CMeQ7.js.map} +1 -1
- package/chunk/{LowIncomeOrganizationComponent-Dc4HYfr1.js → LowIncomeOrganizationComponent-B5HBYyEd.js} +8 -8
- package/chunk/{LowIncomeOrganizationComponent-xwq7_FKf.js.map → LowIncomeOrganizationComponent-B5HBYyEd.js.map} +1 -1
- package/chunk/{LowIncomeOrganizationComponent-xwq7_FKf.js → LowIncomeOrganizationComponent-BH6GOXvO.js} +8 -8
- package/chunk/{LowIncomeOrganizationComponent-Dc4HYfr1.js.map → LowIncomeOrganizationComponent-BH6GOXvO.js.map} +1 -1
- package/chunk/{MedicalProfessionalOrganizationComponent-DRwIFnoi.js → MedicalProfessionalOrganizationComponent-Dl7Hiief.js} +7 -7
- package/chunk/{MedicalProfessionalOrganizationComponent-DRwIFnoi.js.map → MedicalProfessionalOrganizationComponent-Dl7Hiief.js.map} +1 -1
- package/chunk/{MedicalProfessionalOrganizationComponent-DgSm4cZi.js → MedicalProfessionalOrganizationComponent-rLwSwSVP.js} +7 -7
- package/chunk/{MedicalProfessionalOrganizationComponent-DgSm4cZi.js.map → MedicalProfessionalOrganizationComponent-rLwSwSVP.js.map} +1 -1
- package/chunk/{MemberIdComponent-CXJD--6p.js → MemberIdComponent-BS6_Ck5F.js} +5 -5
- package/chunk/{MemberIdComponent-CXJD--6p.js.map → MemberIdComponent-BS6_Ck5F.js.map} +1 -1
- package/chunk/{MemberIdComponent-NEg1mYJM.js → MemberIdComponent-Cl8SJqe1.js} +5 -5
- package/chunk/{MemberIdComponent-NEg1mYJM.js.map → MemberIdComponent-Cl8SJqe1.js.map} +1 -1
- package/chunk/{MembershipOrganizationComponent-tzDKZgR_.js → MembershipOrganizationComponent-4fmNyvHc.js} +7 -7
- package/chunk/{MembershipOrganizationComponent-Ppqk5QyR.js.map → MembershipOrganizationComponent-4fmNyvHc.js.map} +1 -1
- package/chunk/{MembershipOrganizationComponent-Ppqk5QyR.js → MembershipOrganizationComponent-Bia4eOXq.js} +7 -7
- package/chunk/{MembershipOrganizationComponent-tzDKZgR_.js.map → MembershipOrganizationComponent-Bia4eOXq.js.map} +1 -1
- package/chunk/{Message-C4qWuoA7.js → Message-BKx1mJx9.js} +5 -5
- package/chunk/{Message-C4qWuoA7.js.map → Message-BKx1mJx9.js.map} +1 -1
- package/chunk/{Message-CZskfqcI.js → Message-DrsL5cWg.js} +5 -5
- package/chunk/{Message-CZskfqcI.js.map → Message-DrsL5cWg.js.map} +1 -1
- package/chunk/Onfido-CTCgAwnB.js +4 -4
- package/chunk/{PersonalInfoStepSubmitButton-obiTgRFv.js → PersonalInfoStepSubmitButton-CEd1YF_s.js} +5 -5
- package/chunk/{PersonalInfoStepSubmitButton-DevIpS3M.js.map → PersonalInfoStepSubmitButton-CEd1YF_s.js.map} +1 -1
- package/chunk/{PersonalInfoStepSubmitButton-DevIpS3M.js → PersonalInfoStepSubmitButton-uJnMrhRD.js} +5 -5
- package/chunk/{PersonalInfoStepSubmitButton-obiTgRFv.js.map → PersonalInfoStepSubmitButton-uJnMrhRD.js.map} +1 -1
- package/chunk/{PersonalInfoStepWrapper-_LiPRLv0.js → PersonalInfoStepWrapper-BXYJWMhY.js} +5 -5
- package/chunk/{PersonalInfoStepWrapper-_LiPRLv0.js.map → PersonalInfoStepWrapper-BXYJWMhY.js.map} +1 -1
- package/chunk/{PersonalInfoStepWrapper-Bwy_EnUr.js → PersonalInfoStepWrapper-DBae9z3B.js} +32 -30
- package/chunk/PersonalInfoStepWrapper-DBae9z3B.js.map +1 -0
- package/chunk/{PostalCodeComponent-DE4FtHXn.js → PostalCodeComponent-C8lhzleL.js} +5 -5
- package/chunk/{PostalCodeComponent-BU3uUkz5.js.map → PostalCodeComponent-C8lhzleL.js.map} +1 -1
- package/chunk/{PostalCodeComponent-BU3uUkz5.js → PostalCodeComponent-htsoPASM.js} +5 -5
- package/chunk/{PostalCodeComponent-DE4FtHXn.js.map → PostalCodeComponent-htsoPASM.js.map} +1 -1
- package/chunk/{SSN-CiU8LUIC.js → SSN-C9UaWSOT.js} +5 -5
- package/chunk/{SSN-Bd7iEK0D.js.map → SSN-C9UaWSOT.js.map} +1 -1
- package/chunk/{SSN-Bd7iEK0D.js → SSN-CVQqNHlQ.js} +5 -5
- package/chunk/{SSN-CiU8LUIC.js.map → SSN-CVQqNHlQ.js.map} +1 -1
- package/chunk/{StateSelectComponent-Be_BuLYk.js → StateSelectComponent-B7ts5wz_.js} +7 -7
- package/chunk/{StateSelectComponent-BCHagpBG.js.map → StateSelectComponent-B7ts5wz_.js.map} +1 -1
- package/chunk/{StateSelectComponent-BCHagpBG.js → StateSelectComponent-F8_noHFk.js} +7 -7
- package/chunk/{StateSelectComponent-Be_BuLYk.js.map → StateSelectComponent-F8_noHFk.js.map} +1 -1
- package/chunk/{StatusComponent-CYTWVmt6.js → StatusComponent-CaMmhM9a.js} +6 -6
- package/chunk/{StatusComponent-CMoJS2Jl.js.map → StatusComponent-CaMmhM9a.js.map} +1 -1
- package/chunk/{StatusComponent-CMoJS2Jl.js → StatusComponent-CewDc6v7.js} +6 -6
- package/chunk/{StatusComponent-CYTWVmt6.js.map → StatusComponent-CewDc6v7.js.map} +1 -1
- package/chunk/{StepAgePersonalInfo-BtZmkOMB.js → StepAgePersonalInfo-CAIDFrDE.js} +17 -17
- package/chunk/{StepAgePersonalInfo-BtZmkOMB.js.map → StepAgePersonalInfo-CAIDFrDE.js.map} +1 -1
- package/chunk/{StepAgePersonalInfo-D5RdoP-0.js → StepAgePersonalInfo-Dsq6eekA.js} +17 -17
- package/chunk/{StepAgePersonalInfo-D5RdoP-0.js.map → StepAgePersonalInfo-Dsq6eekA.js.map} +1 -1
- package/chunk/StepCard-DJR-l3sW.js +4 -4
- package/chunk/StepCard-wwTRGIhn.js +4 -4
- package/chunk/{StepCollectIdentifier-BkMWEbcs.js → StepCollectIdentifier--DcPBqzY.js} +6 -6
- package/chunk/{StepCollectIdentifier-DIHpPUyG.js.map → StepCollectIdentifier--DcPBqzY.js.map} +1 -1
- package/chunk/{StepCollectIdentifier-DIHpPUyG.js → StepCollectIdentifier-Ck4mVen9.js} +6 -6
- package/chunk/{StepCollectIdentifier-BkMWEbcs.js.map → StepCollectIdentifier-Ck4mVen9.js.map} +1 -1
- package/chunk/{StepCollectMilitaryPersonalInfoComponent-CL0bldgZ.js → StepCollectMilitaryPersonalInfoComponent-CoBXICwm.js} +21 -21
- package/chunk/{StepCollectMilitaryPersonalInfoComponent-CL0bldgZ.js.map → StepCollectMilitaryPersonalInfoComponent-CoBXICwm.js.map} +1 -1
- package/chunk/{StepCollectMilitaryPersonalInfoComponent-on1o7u6X.js → StepCollectMilitaryPersonalInfoComponent-D6T97dgm.js} +21 -21
- package/chunk/{StepCollectMilitaryPersonalInfoComponent-on1o7u6X.js.map → StepCollectMilitaryPersonalInfoComponent-D6T97dgm.js.map} +1 -1
- package/chunk/{StepCollectPersonalInfo-D9uCpSl7.js → StepCollectPersonalInfo-Daz6gwsR.js} +31 -31
- package/chunk/{StepCollectPersonalInfo-2_qDC_UX.js.map → StepCollectPersonalInfo-Daz6gwsR.js.map} +1 -1
- package/chunk/{StepCollectPersonalInfo-2_qDC_UX.js → StepCollectPersonalInfo-DcLIZ7K7.js} +31 -31
- package/chunk/{StepCollectPersonalInfo-D9uCpSl7.js.map → StepCollectPersonalInfo-DcLIZ7K7.js.map} +1 -1
- package/chunk/StepCompleteAuthentication-BawnNriI.js +4 -4
- package/chunk/StepCompleteAuthentication-VpE4-5vs.js +4 -4
- package/chunk/{StepConsolation-CEEI3obU.js → StepConsolation-CByemu8y.js} +6 -6
- package/chunk/{StepConsolation-CEEI3obU.js.map → StepConsolation-CByemu8y.js.map} +1 -1
- package/chunk/{StepConsolation-CPHH5mJI.js → StepConsolation-VI5aE9Ff.js} +6 -6
- package/chunk/{StepConsolation-CPHH5mJI.js.map → StepConsolation-VI5aE9Ff.js.map} +1 -1
- package/chunk/{StepDocUpload-MkUIAN5u.js → StepDocUpload-B2Ato7tg.js} +7 -7
- package/chunk/{StepDocUpload-MkUIAN5u.js.map → StepDocUpload-B2Ato7tg.js.map} +1 -1
- package/chunk/{StepDocUpload-DbfG66DC.js → StepDocUpload-BHhuxyj8.js} +7 -7
- package/chunk/{StepDocUpload-DbfG66DC.js.map → StepDocUpload-BHhuxyj8.js.map} +1 -1
- package/chunk/{StepDriverLicensePersonalInfoComponent-D2gKosYd.js → StepDriverLicensePersonalInfoComponent-C8acsDEU.js} +12 -12
- package/chunk/{StepDriverLicensePersonalInfoComponent-D2gKosYd.js.map → StepDriverLicensePersonalInfoComponent-C8acsDEU.js.map} +1 -1
- package/chunk/{StepDriverLicensePersonalInfoComponent-kJQTIw6I.js → StepDriverLicensePersonalInfoComponent-YQti7kE2.js} +12 -12
- package/chunk/{StepDriverLicensePersonalInfoComponent-kJQTIw6I.js.map → StepDriverLicensePersonalInfoComponent-YQti7kE2.js.map} +1 -1
- package/chunk/{StepEmailLoop-B-kLgRUt.js → StepEmailLoop-7CKgLe_b.js} +7 -7
- package/chunk/{StepEmailLoop-3mxe4-A1.js.map → StepEmailLoop-7CKgLe_b.js.map} +1 -1
- package/chunk/{StepEmailLoop-3mxe4-A1.js → StepEmailLoop-DAcnY3JC.js} +7 -7
- package/chunk/{StepEmailLoop-B-kLgRUt.js.map → StepEmailLoop-DAcnY3JC.js.map} +1 -1
- package/chunk/{StepEmploymentPersonalInfo-DvOQsc4J.js → StepEmploymentPersonalInfo-CZcQrgZ1.js} +17 -17
- package/chunk/{StepEmploymentPersonalInfo-CH3qSsU9.js.map → StepEmploymentPersonalInfo-CZcQrgZ1.js.map} +1 -1
- package/chunk/{StepEmploymentPersonalInfo-CH3qSsU9.js → StepEmploymentPersonalInfo-DVwyE-Yr.js} +17 -17
- package/chunk/{StepEmploymentPersonalInfo-DvOQsc4J.js.map → StepEmploymentPersonalInfo-DVwyE-Yr.js.map} +1 -1
- package/chunk/{StepFirstResponderPersonalInfo-CUU7noYw.js → StepFirstResponderPersonalInfo-Bj8MmUcv.js} +18 -18
- package/chunk/{StepFirstResponderPersonalInfo-CUU7noYw.js.map → StepFirstResponderPersonalInfo-Bj8MmUcv.js.map} +1 -1
- package/chunk/{StepFirstResponderPersonalInfo-DIFcJEh2.js → StepFirstResponderPersonalInfo-iEfxgt18.js} +18 -18
- package/chunk/{StepFirstResponderPersonalInfo-DIFcJEh2.js.map → StepFirstResponderPersonalInfo-iEfxgt18.js.map} +1 -1
- package/chunk/{StepGeneralIdentityPersonalInfoComponent-jdxI-psg.js → StepGeneralIdentityPersonalInfoComponent-B71tWz0y.js} +15 -15
- package/chunk/{StepGeneralIdentityPersonalInfoComponent-6nOwJD32.js.map → StepGeneralIdentityPersonalInfoComponent-B71tWz0y.js.map} +1 -1
- package/chunk/{StepGeneralIdentityPersonalInfoComponent-6nOwJD32.js → StepGeneralIdentityPersonalInfoComponent-BGkXLgCj.js} +15 -15
- package/chunk/{StepGeneralIdentityPersonalInfoComponent-jdxI-psg.js.map → StepGeneralIdentityPersonalInfoComponent-BGkXLgCj.js.map} +1 -1
- package/chunk/{StepHybridIdentityPersonalInfoComponent-Bf7F-60O.js → StepHybridIdentityPersonalInfoComponent-4IFVA64R.js} +16 -16
- package/chunk/{StepHybridIdentityPersonalInfoComponent-Bf7F-60O.js.map → StepHybridIdentityPersonalInfoComponent-4IFVA64R.js.map} +1 -1
- package/chunk/{StepHybridIdentityPersonalInfoComponent-C9L2Ke1K.js → StepHybridIdentityPersonalInfoComponent-BYH7Mblt.js} +16 -16
- package/chunk/{StepHybridIdentityPersonalInfoComponent-C9L2Ke1K.js.map → StepHybridIdentityPersonalInfoComponent-BYH7Mblt.js.map} +1 -1
- package/chunk/{StepIDCheckLoop-CAeac23M.js → StepIDCheckLoop-C_0Hefcj.js} +5 -5
- package/chunk/{StepIDCheckLoop-CAeac23M.js.map → StepIDCheckLoop-C_0Hefcj.js.map} +1 -1
- package/chunk/{StepIDCheckLoop-CCiosQ5Q.js → StepIDCheckLoop-ui0FC3b2.js} +5 -5
- package/chunk/{StepIDCheckLoop-CCiosQ5Q.js.map → StepIDCheckLoop-ui0FC3b2.js.map} +1 -1
- package/chunk/{StepIDCheckLoopOnfido-CQNbs_q4.js → StepIDCheckLoopOnfido-B3sipKmy.js} +7 -7
- package/chunk/{StepIDCheckLoopOnfido-CQNbs_q4.js.map → StepIDCheckLoopOnfido-B3sipKmy.js.map} +1 -1
- package/chunk/{StepIDCheckLoopOnfido-7dr0m35-.js → StepIDCheckLoopOnfido-Bz9Idbty.js} +7 -7
- package/chunk/{StepIDCheckLoopOnfido-7dr0m35-.js.map → StepIDCheckLoopOnfido-Bz9Idbty.js.map} +1 -1
- package/chunk/{StepIDCheckLoopRegula-DRa-5-fJ.js → StepIDCheckLoopRegula-C-c-2SdO.js} +7 -7
- package/chunk/{StepIDCheckLoopRegula-DRa-5-fJ.js.map → StepIDCheckLoopRegula-C-c-2SdO.js.map} +1 -1
- package/chunk/{StepIDCheckLoopRegula-DyRVgrz6.js → StepIDCheckLoopRegula-CaGnqRzd.js} +7 -7
- package/chunk/{StepIDCheckLoopRegula-DyRVgrz6.js.map → StepIDCheckLoopRegula-CaGnqRzd.js.map} +1 -1
- package/chunk/{StepLicensedProfessionalPersonalInfo-C9TLaEUo.js → StepLicensedProfessionalPersonalInfo-CDynSBlS.js} +18 -18
- package/chunk/{StepLicensedProfessionalPersonalInfo-2raRP_sC.js.map → StepLicensedProfessionalPersonalInfo-CDynSBlS.js.map} +1 -1
- package/chunk/{StepLicensedProfessionalPersonalInfo-2raRP_sC.js → StepLicensedProfessionalPersonalInfo-CFI2NO-r.js} +18 -18
- package/chunk/{StepLicensedProfessionalPersonalInfo-C9TLaEUo.js.map → StepLicensedProfessionalPersonalInfo-CFI2NO-r.js.map} +1 -1
- package/chunk/{StepLowIncomePersonalInfo-CriFm1p0.js → StepLowIncomePersonalInfo-DBMFpp9P.js} +21 -21
- package/chunk/{StepLowIncomePersonalInfo-CriFm1p0.js.map → StepLowIncomePersonalInfo-DBMFpp9P.js.map} +1 -1
- package/chunk/{StepLowIncomePersonalInfo-DUKc7Xzd.js → StepLowIncomePersonalInfo-Nlccep8k.js} +21 -21
- package/chunk/{StepLowIncomePersonalInfo-DUKc7Xzd.js.map → StepLowIncomePersonalInfo-Nlccep8k.js.map} +1 -1
- package/chunk/{StepMedicalProfessionalPersonalInfo-BpskGst0.js → StepMedicalProfessionalPersonalInfo-CX8Kdi38.js} +19 -19
- package/chunk/{StepMedicalProfessionalPersonalInfo-BpskGst0.js.map → StepMedicalProfessionalPersonalInfo-CX8Kdi38.js.map} +1 -1
- package/chunk/{StepMedicalProfessionalPersonalInfo-BwQAKDQf.js → StepMedicalProfessionalPersonalInfo-D8mGJQE6.js} +19 -19
- package/chunk/{StepMedicalProfessionalPersonalInfo-BwQAKDQf.js.map → StepMedicalProfessionalPersonalInfo-D8mGJQE6.js.map} +1 -1
- package/chunk/{StepMemberPersonalInfo-IZX2jT9o.js → StepMemberPersonalInfo-BH5mmkWH.js} +14 -14
- package/chunk/{StepMemberPersonalInfo-CPIKj6JS.js.map → StepMemberPersonalInfo-BH5mmkWH.js.map} +1 -1
- package/chunk/{StepMemberPersonalInfo-CPIKj6JS.js → StepMemberPersonalInfo-ZYOKLtlx.js} +14 -14
- package/chunk/{StepMemberPersonalInfo-IZX2jT9o.js.map → StepMemberPersonalInfo-ZYOKLtlx.js.map} +1 -1
- package/chunk/{StepMoverPersonalInfo-DkZFK0Y5.js → StepMoverPersonalInfo-C0QTvowi.js} +12 -12
- package/chunk/{StepMoverPersonalInfo-DkZFK0Y5.js.map → StepMoverPersonalInfo-C0QTvowi.js.map} +1 -1
- package/chunk/{StepMoverPersonalInfo-QrDDJn9q.js → StepMoverPersonalInfo-CWVP0DZ3.js} +12 -12
- package/chunk/{StepMoverPersonalInfo-QrDDJn9q.js.map → StepMoverPersonalInfo-CWVP0DZ3.js.map} +1 -1
- package/chunk/{StepOverrideComponent-DB8XcUxS.js → StepOverrideComponent-26qhuhSy.js} +7 -7
- package/chunk/{StepOverrideComponent-DB8XcUxS.js.map → StepOverrideComponent-26qhuhSy.js.map} +1 -1
- package/chunk/{StepOverrideComponent-DQK02UCn.js → StepOverrideComponent-rGX9RQRf.js} +7 -7
- package/chunk/{StepOverrideComponent-DQK02UCn.js.map → StepOverrideComponent-rGX9RQRf.js.map} +1 -1
- package/chunk/{StepSMSLoop-Dd-TlY0x.js → StepSMSLoop-8bT0iiE_.js} +5 -5
- package/chunk/{StepSMSLoop-DHcrK3zK.js.map → StepSMSLoop-8bT0iiE_.js.map} +1 -1
- package/chunk/{StepSMSLoop-DHcrK3zK.js → StepSMSLoop-iU3B6jRs.js} +5 -5
- package/chunk/{StepSMSLoop-Dd-TlY0x.js.map → StepSMSLoop-iU3B6jRs.js.map} +1 -1
- package/chunk/StepSSO-BGHCbduX.js +4 -4
- package/chunk/StepSSO-ZHByQpHa.js +4 -4
- package/chunk/{StepSocialSecurityNumber-tQeL8BPo.js → StepSocialSecurityNumber-BmdQcIkT.js} +8 -8
- package/chunk/{StepSocialSecurityNumber-eisNq5zV.js.map → StepSocialSecurityNumber-BmdQcIkT.js.map} +1 -1
- package/chunk/{StepSocialSecurityNumber-eisNq5zV.js → StepSocialSecurityNumber-TR-_BNnt.js} +8 -8
- package/chunk/{StepSocialSecurityNumber-tQeL8BPo.js.map → StepSocialSecurityNumber-TR-_BNnt.js.map} +1 -1
- package/chunk/{StepStudentPersonalInfo-BXKx-RjY.js → StepStudentPersonalInfo-BF5qeKVa.js} +16 -16
- package/chunk/{StepStudentPersonalInfo-BXKx-RjY.js.map → StepStudentPersonalInfo-BF5qeKVa.js.map} +1 -1
- package/chunk/{StepStudentPersonalInfo-xDQaapez.js → StepStudentPersonalInfo-BWv-PNZV.js} +16 -16
- package/chunk/{StepStudentPersonalInfo-xDQaapez.js.map → StepStudentPersonalInfo-BWv-PNZV.js.map} +1 -1
- package/chunk/{StepSuccess-DVw4r-Tw.js → StepSuccess-D1-3dfsQ.js} +6 -6
- package/chunk/{StepSuccess-Buungtjz.js.map → StepSuccess-D1-3dfsQ.js.map} +1 -1
- package/chunk/{StepSuccess-Buungtjz.js → StepSuccess-DipyaSAH.js} +6 -6
- package/chunk/{StepSuccess-DVw4r-Tw.js.map → StepSuccess-DipyaSAH.js.map} +1 -1
- package/chunk/{StepTeacherPersonalInfo-D1JAJHN3.js → StepTeacherPersonalInfo-CXr8cpYW.js} +15 -15
- package/chunk/{StepTeacherPersonalInfo-CDDemAKT.js.map → StepTeacherPersonalInfo-CXr8cpYW.js.map} +1 -1
- package/chunk/{StepTeacherPersonalInfo-CDDemAKT.js → StepTeacherPersonalInfo-DlzNmBFm.js} +15 -15
- package/chunk/{StepTeacherPersonalInfo-D1JAJHN3.js.map → StepTeacherPersonalInfo-DlzNmBFm.js.map} +1 -1
- package/chunk/StepThirdPartyLoop-BrKuZcYb.js +4 -4
- package/chunk/StepThirdPartyLoop-CbFTIlwP.js +4 -4
- package/chunk/{TeacherSchoolComponent-DRXDnv-p.js → TeacherSchoolComponent-DRKDABFa.js} +7 -7
- package/chunk/{TeacherSchoolComponent-BNIskQFr.js.map → TeacherSchoolComponent-DRKDABFa.js.map} +1 -1
- package/chunk/{TeacherSchoolComponent-BNIskQFr.js → TeacherSchoolComponent-DXUQHUIt.js} +7 -7
- package/chunk/{TeacherSchoolComponent-DRXDnv-p.js.map → TeacherSchoolComponent-DXUQHUIt.js.map} +1 -1
- package/chunk/TestingRouteOverrides-BbCY31VT.js +4 -4
- package/chunk/TestingRouteOverrides-DEu_4afz.js +4 -4
- package/chunk/ThreatMetrix-D_TbL50B.js +4 -4
- package/chunk/ar-D5CO913q.js +4 -4
- package/chunk/bg-1mhA5kYF.js +4 -4
- package/chunk/bn-IN-CpDqyRb_.js +4 -4
- package/chunk/clsx-CB5rauS5.js +4 -4
- package/chunk/countryUtils-DEqx7X1F.js +12 -0
- package/chunk/{countryUtils-CxM4Re8c.js.map → countryUtils-DEqx7X1F.js.map} +1 -1
- package/chunk/{countryUtils-CxM4Re8c.js → countryUtils-DGhKkc1P.js} +5 -5
- package/chunk/{countryUtils-R_5wICVb.js.map → countryUtils-DGhKkc1P.js.map} +1 -1
- package/chunk/cs-Chh7FAGt.js +4 -4
- package/chunk/da-DwrVoxto.js +4 -4
- package/chunk/de-IWGZLhgY.js +4 -4
- package/chunk/{downshift.esm-BbR19lWJ.js → downshift.esm-Be63aT-_.js} +5 -5
- package/chunk/{downshift.esm-BbR19lWJ.js.map → downshift.esm-Be63aT-_.js.map} +1 -1
- package/chunk/{downshift.esm-Cy3QHO2k.js → downshift.esm-D_RaSClH.js} +5 -5
- package/chunk/{downshift.esm-Cy3QHO2k.js.map → downshift.esm-D_RaSClH.js.map} +1 -1
- package/chunk/el-DbDcvSPJ.js +4 -4
- package/chunk/empties-B034wwK_.js +4 -4
- package/chunk/empties-lrCPA-9V.js +4 -4
- package/chunk/en-GB-CNQ8Ww2j.js +4 -4
- package/chunk/es-ES-DWimqEZ_.js +4 -4
- package/chunk/es-qhC-seq5.js +4 -4
- package/chunk/et-yF9G-Mym.js +4 -4
- package/chunk/eventEmitter-CSG6jR7V.js +4 -4
- package/chunk/fa-BcdSf7og.js +4 -4
- package/chunk/fi-D-IP_KHm.js +4 -4
- package/chunk/fr-BmUuYxk0.js +4 -4
- package/chunk/fr-CA-DVQ4xmzZ.js +4 -4
- package/chunk/ga-DuZycND3.js +4 -4
- package/chunk/hi-IN-l6Rn5Ewm.js +4 -4
- package/chunk/hooks-DtYEjP2m.js +4 -4
- package/chunk/hooks-QCx6OZlb.js +4 -4
- package/chunk/hr-BtqyDzDB.js +4 -4
- package/chunk/hu-C6syKJfb.js +4 -4
- package/chunk/id-GgI-Z2a5.js +4 -4
- package/chunk/intl-DYOqmiaL.js +4 -4
- package/chunk/is-CvmKEON9.js +4 -4
- package/chunk/it-CnmveGgC.js +4 -4
- package/chunk/iw-DFUYHkxF.js +4 -4
- package/chunk/ja-CjVb2tWW.js +4 -4
- package/chunk/jsx-runtime-DQO6A867.js +4 -4
- package/chunk/jsx-runtime-DtApx7WX.js +4 -4
- package/chunk/kk-Dvz4nK6K.js +4 -4
- package/chunk/ko-DzOqBMGC.js +4 -4
- package/chunk/lo-C2WPq55d.js +4 -4
- package/chunk/lt-BSDYvjTF.js +4 -4
- package/chunk/lv-CefDPT-M.js +4 -4
- package/chunk/mockProgramTheme-CBqgtg7A.js +4 -4
- package/chunk/mocks-BQNtP7qW.js +4 -4
- package/chunk/mocks-DC7WJf5c.js +4 -4
- package/chunk/ms-BjestZxy.js +4 -4
- package/chunk/nl-B1FyUfCT.js +4 -4
- package/chunk/nl-BE-CbeAd3nq.js +4 -4
- package/chunk/no-Dr633Ddi.js +4 -4
- package/chunk/options-DsRV5fwh.js +4 -4
- package/chunk/pl-UYTjMIq_.js +4 -4
- package/chunk/{programThemeGetters-Bs9weQ3i.js → programThemeGetters-BlMeCwyW.js} +5 -5
- package/chunk/{programThemeGetters-Bs9weQ3i.js.map → programThemeGetters-BlMeCwyW.js.map} +1 -1
- package/chunk/{programThemeGetters-CHcPOXgA.js → programThemeGetters-zfJ5vzCG.js} +5 -5
- package/chunk/{programThemeGetters-CHcPOXgA.js.map → programThemeGetters-zfJ5vzCG.js.map} +1 -1
- package/chunk/pt-BR-C8SYMT-J.js +4 -4
- package/chunk/pt-uH-M3GdN.js +4 -4
- package/chunk/refs-Mq0rtW9K.js +4 -4
- package/chunk/ro-CAOSXZ7h.js +4 -4
- package/chunk/ru-iwYoEydL.js +4 -4
- package/chunk/runtimeTypes-B2AGNJMT.js +4 -4
- package/chunk/sk-DYYNV3zw.js +4 -4
- package/chunk/sl-D_-eeM5N.js +4 -4
- package/chunk/sr-BTi9_anL.js +4 -4
- package/chunk/stepComponentHelpers-C-r8qzyD.js +4 -4
- package/chunk/stepComponentHelpers-CDj3don1.js +4 -4
- package/chunk/strings-DWLVdUcm.js +4 -4
- package/chunk/sv-DRwY4shG.js +4 -4
- package/chunk/sw-Bvj2mYmM.js +4 -4
- package/chunk/ta-CmtaYoNe.js +4 -4
- package/chunk/th-12r2yKkJ.js +4 -4
- package/chunk/tl-BGNfO7md.js +4 -4
- package/chunk/tr-DH2ZSJhs.js +4 -4
- package/chunk/uk-CELBZlTd.js +4 -4
- package/chunk/ur-MR8DTbmd.js +4 -4
- package/chunk/{useCollectFieldsEndpoint-DKrY7rlv.js → useCollectFieldsEndpoint-mH1ldSpQ.js} +6 -6
- package/chunk/{useCollectFieldsEndpoint-DKrY7rlv.js.map → useCollectFieldsEndpoint-mH1ldSpQ.js.map} +1 -1
- package/chunk/{useCollectFieldsEndpoint-Bj5AYf3g.js → useCollectFieldsEndpoint-nnWmHVWb.js} +6 -6
- package/chunk/{useCollectFieldsEndpoint-Bj5AYf3g.js.map → useCollectFieldsEndpoint-nnWmHVWb.js.map} +1 -1
- package/chunk/useMetrics-D6LU4c5p.js +4 -4
- package/chunk/useMetrics-DGl7Sxfe.js +4 -4
- package/chunk/vi-DtZ-SqD5.js +4 -4
- package/chunk/zh-DjyVyYac.js +4 -4
- package/chunk/zh-HK-CN1HarHq.js +4 -4
- package/chunk/zu-DPhgIh1z.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 +939 -937
- package/sheerid.js.map +1 -1
- package/chunk/PersonalInfoStepWrapper-Bwy_EnUr.js.map +0 -1
- package/chunk/countryUtils-R_5wICVb.js +0 -12
package/chunk/pl-UYTjMIq_.js
CHANGED
|
@@ -4,10 +4,10 @@
|
|
|
4
4
|
* This file is not intended for use in other contexts and there are no guarantees about its behavior outside of MySheerID.
|
|
5
5
|
*/
|
|
6
6
|
/**
|
|
7
|
-
* VERSION: 2.
|
|
8
|
-
* BUILD_TIMESTAMP:
|
|
9
|
-
* BUILD_DATE: Thu Sep 24 2026
|
|
10
|
-
* BUILD_COMMIT:
|
|
7
|
+
* VERSION: 2.297.0
|
|
8
|
+
* BUILD_TIMESTAMP: 1790284268645
|
|
9
|
+
* BUILD_DATE: Thu Sep 24 2026 21:11:08 GMT+0000 (Coordinated Universal Time)
|
|
10
|
+
* BUILD_COMMIT: 9315c638699c60e5622b9f878abfccad2a009219
|
|
11
11
|
*/
|
|
12
12
|
//#region src/lib/intl/localized-messages/pl.json
|
|
13
13
|
var e = {
|
|
@@ -4,10 +4,10 @@
|
|
|
4
4
|
* This file is not intended for use in other contexts and there are no guarantees about its behavior outside of MySheerID.
|
|
5
5
|
*/
|
|
6
6
|
/**
|
|
7
|
-
* VERSION: 2.
|
|
8
|
-
* BUILD_TIMESTAMP:
|
|
9
|
-
* BUILD_DATE: Thu Sep 24 2026
|
|
10
|
-
* BUILD_COMMIT:
|
|
7
|
+
* VERSION: 2.297.0
|
|
8
|
+
* BUILD_TIMESTAMP: 1790284268645
|
|
9
|
+
* BUILD_DATE: Thu Sep 24 2026 21:11:08 GMT+0000 (Coordinated Universal Time)
|
|
10
|
+
* BUILD_COMMIT: 9315c638699c60e5622b9f878abfccad2a009219
|
|
11
11
|
*/
|
|
12
12
|
import { J as e, Tt as t, d as n, k as r, s as i, u as a } from "./intl-DYOqmiaL.js";
|
|
13
13
|
import { S as o, f as s, x as c } from "./runtimeTypes-B2AGNJMT.js";
|
|
@@ -37,7 +37,7 @@ var l = "installType", u = "layout", d = "landing", f = {
|
|
|
37
37
|
"collectMilitaryStatus",
|
|
38
38
|
"collectActiveMilitaryPersonalInfo",
|
|
39
39
|
"collectInactiveMilitaryPersonalInfo"
|
|
40
|
-
]), w = (e, t, n) => C.has(e) ? `${i().restApi.serviceUrl}rest/v2/verification/${n}/step/collectMilitaryPersonalInfo` : t.submissionUrl, T = (e, t) => `${i().restApi.serviceUrl}rest/v2/verification/${e}/step/idCheckLoop/getDocumentTypesForCountries?countries=${t}`, E = (e, t, n) => `${i().restApi.serviceUrl}rest/v2/verification/${e}/barcode?rewardKey=${t}&symbology=${n}`, D = () => "2.
|
|
40
|
+
]), w = (e, t, n) => C.has(e) ? `${i().restApi.serviceUrl}rest/v2/verification/${n}/step/collectMilitaryPersonalInfo` : t.submissionUrl, T = (e, t) => `${i().restApi.serviceUrl}rest/v2/verification/${e}/step/idCheckLoop/getDocumentTypesForCountries?countries=${t}`, E = (e, t, n) => `${i().restApi.serviceUrl}rest/v2/verification/${e}/barcode?rewardKey=${t}&symbology=${n}`, D = () => "2.297.0", O = () => window.location.href, k = () => {
|
|
41
41
|
try {
|
|
42
42
|
let t = new URLSearchParams(window.location.search);
|
|
43
43
|
if (t.get("installPageUrl")) return decodeURIComponent(t.get(e));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"programThemeGetters-Bs9weQ3i.js","names":[],"sources":["../../../packages/shared/src/utils/getInstallType.ts","../../src/lib/ServerApi/ApiUrls.ts","../../src/components/StepLowIncomePersonalInfo/lowIncomeTypes.ts","../../src/lib/ProgramTheme/programThemeGetters.ts"],"sourcesContent":["import { logger } from \"./logger/logger\";\n\nconst QUERY_STRING_INSTALL_TYPE = \"installType\";\nconst QUERY_STRING_LAYOUT = \"layout\";\nconst QUERY_VALUE_LANDING = \"landing\";\n\nexport const InstallTypes = {\n landingPage: \"landing_page\",\n cdnNoIframe: \"cdn_no_iframe\",\n cdnInlineIframe: \"cdn_inline_iframe\",\n cdnModalIframe: \"cdn_modal_iframe\",\n programBuilderPreview: \"program_builder_preview\",\n} as const;\n\nexport type InstallType = (typeof InstallTypes)[keyof typeof InstallTypes];\n\nlet declaredInstallType: InstallType | undefined;\n\n/**\n * Declare the install context from an install wrapper that mounts the form into\n * the host page, where there is no iframe URL to carry the install type as a\n * query string param.\n */\nexport const setInstallType = (installType: InstallType): void => {\n declaredInstallType = installType;\n};\n\nexport const getInstallType = (): InstallType | string => {\n if (declaredInstallType) {\n return declaredInstallType;\n }\n\n try {\n const parsed: URLSearchParams = new URLSearchParams(window.location.search);\n\n const installTypeParam = parsed.get(QUERY_STRING_INSTALL_TYPE);\n if (installTypeParam) {\n return decodeURIComponent(installTypeParam);\n }\n\n if (parsed.get(QUERY_STRING_LAYOUT) === QUERY_VALUE_LANDING) {\n return InstallTypes.landingPage;\n }\n } catch (e) {\n logger.error(e, \"getInstallType\");\n }\n\n return InstallTypes.cdnNoIframe;\n};\n","import { logger } from \"@jslib/shared/utils/logger\";\n\nimport { QUERY_STRING_INSTALL_PAGE_URL } from \"../../constants\";\nimport { getOptions } from \"../../options/options\";\nimport { type RewardDisplayEnum } from \"../types/runtimeTypes\";\nimport { type DatabaseId, type Locale, type VerificationStep } from \"../types/types\";\n\nexport const getVerificationUrl = () =>\n `${getOptions().restApi.serviceUrl}${getOptions().restApi.resources.verification}`;\nexport const getVerificationStatusUrl = (verificationId: DatabaseId) =>\n `${getVerificationUrl()}${verificationId}`;\nexport const getNewVerificationRequestUrl = () => getVerificationUrl();\nexport const getProgramThemeUrl = (programId: DatabaseId, locale: Locale = null) => {\n const baseUrl = `${getOptions().restApi.serviceUrl}${\n getOptions().restApi.resources.program.base\n }${programId}/${getOptions().restApi.resources.program.theme}`;\n if (locale) {\n return `${baseUrl}?locale=${locale}`;\n }\n return `${baseUrl}`;\n};\n\nexport const getNewSmsCodeResendUrl = (verificationId: DatabaseId) =>\n `${getOptions().restApi.serviceUrl}rest/v2/verification/${verificationId}/step/smsLoop/retry`;\nexport const getNewEmailCodeResendUrl = (verificationId: DatabaseId) =>\n `${getOptions().restApi.serviceUrl}rest/v2/verification/${verificationId}/step/emailLoop/retry`;\n\nexport const getFieldsToCollectUrl = (verificationId: DatabaseId, stepName: VerificationStep) =>\n `${getOptions().restApi.serviceUrl}rest/v2/verification/${verificationId}/${stepName}/fields`;\n\nconst MILITARY_STEPS_USING_UNIFIED_ENDPOINT = new Set<VerificationStep>([\n \"collectMilitaryStatus\",\n \"collectActiveMilitaryPersonalInfo\",\n \"collectInactiveMilitaryPersonalInfo\",\n]);\n\n/**\n * The three legacy military `currentStep` values from the server all submit\n * to a single unified endpoint, `step/collectMilitaryPersonalInfo`. The\n * server still returns its old submissionUrl for backwards compatibility,\n * so we ignore it for these three steps and build the unified URL ourselves.\n */\nexport const getEffectiveSubmissionUrl = (\n step: VerificationStep,\n previousResponse: { submissionUrl?: string },\n verificationId: DatabaseId,\n): string => {\n if (MILITARY_STEPS_USING_UNIFIED_ENDPOINT.has(step)) {\n return `${getOptions().restApi.serviceUrl}rest/v2/verification/${verificationId}/step/collectMilitaryPersonalInfo`;\n }\n return previousResponse.submissionUrl;\n};\n\nexport const getDocTypeForCountriesUrl = (verificationId: DatabaseId, countries: string[]) =>\n `${\n getOptions().restApi.serviceUrl\n }rest/v2/verification/${verificationId}/step/idCheckLoop/getDocumentTypesForCountries?countries=${countries}`;\n\nexport const getBarcodeUrl = (\n verificationId: DatabaseId,\n rewardKey: string,\n symbology: RewardDisplayEnum,\n) =>\n `${\n getOptions().restApi.serviceUrl\n }rest/v2/verification/${verificationId}/barcode?rewardKey=${rewardKey}&symbology=${symbology}`;\n\n/**\n * Get the version that was actually used\n * The build process replaces this with the value.\n * e.g. 1.59.0 or 1.46.0-alpha.575\n */\nexport const getPublishedVersion = (): string => process.env.NEXT_VERSION;\n\nexport const getCurrentUrl = (): string => window.location.href;\n\nexport const getInstallPageUrl = (): string | undefined => {\n try {\n const parsed: URLSearchParams = new URLSearchParams(window.location.search);\n\n if (parsed.get(QUERY_STRING_INSTALL_PAGE_URL)) {\n return decodeURIComponent(parsed.get(QUERY_STRING_INSTALL_PAGE_URL));\n }\n if (getOptions()[QUERY_STRING_INSTALL_PAGE_URL]) {\n return getOptions()[QUERY_STRING_INSTALL_PAGE_URL];\n }\n } catch (e) {\n logger.error(e, \"Install Page URL\");\n }\n\n return getCurrentUrl();\n};\n\nexport { getInstallType, InstallTypes, type InstallType } from \"@jslib/shared/utils/getInstallType\";\n\nexport const getVerificationHelpUrl = (): string =>\n `${getOptions().restApi.serviceUrl}rest/v2/help/verificationHelp`;\n","import { type LowIncomePersonalInfoViewModel } from \"../../lib/types/types\";\n\n/**\n * @todo check that obj doesn't have a property name in addition to any required or optional property names\n * @todo move this somewhere generic outside low income\n *\n * This is only set up to check required property names\n *\n * @returns true if every one of the entries in \"properties\" can be found as a key of \"obj\"\n */\nconst hasFields = (obj: object, properties: string[]) =>\n properties.every((p) => Object.prototype.hasOwnProperty.call(obj, p));\n\n/**\n * @todo check no additional/rogue properties exist\n *\n * @param candidate An object to check\n * @returns boolean - true if candidate is of type LowIncomePersonalInfoViewModel\n */\nexport function isLowIncomeVM(candidate: object): candidate is LowIncomePersonalInfoViewModel {\n return hasFields(candidate, [\n \"statuses\",\n \"birthDate\",\n \"postalCode\",\n \"firstName\",\n \"lastName\",\n \"countryChoice\",\n \"localeChoice\",\n \"email\",\n ]);\n}\n","import { logger } from \"@jslib/shared/utils/logger\";\nimport { getSafe } from \"@jslib/shared/utils/getSafe\";\n\nimport {\n type Country,\n type FaqUrl,\n type Locale,\n type MarketConsentOptions,\n type MetadataConfig,\n type Options,\n type Organization,\n type ProgramTheme,\n type ProgramThemeMessages,\n type Segment,\n type State,\n type VerificationServiceValues,\n type ViewModel,\n type WithOrganization,\n} from \"../types/types\";\nimport { getOptions } from \"../../options/options\";\nimport { deepClone } from \"../utils/objects\";\nimport { alphabetically, arrayUnique } from \"../utils/arrays\";\nimport { StateEnum, isCollectStep } from \"../types/runtimeTypes\";\nimport { isLowIncomeVM } from \"../../components/StepLowIncomePersonalInfo/lowIncomeTypes\";\n\nexport const getCompanyName = (programTheme: ProgramTheme): string => {\n let companyName = \"{Company}\"; // Show literal string \"{Company}\" so implementor is prompted to fix by adding in my.sheerid.com\n try {\n companyName = programTheme.intl.messages.companyName;\n if (!(typeof companyName === \"string\" && companyName.length > 0)) {\n throw new Error(\"Invalid companyName\");\n }\n } catch (e) {\n // Property access or invalid company name error\n logger.warn(\"companyName not found. Please sign in to my.sheerid.com to set.\");\n }\n\n return companyName;\n};\n\nconst defaultMarketConsent: MarketConsentOptions = {\n enabled: false,\n required: false,\n message: \"\",\n};\n\nconst defaultMetadata: MetadataConfig = Object.freeze({\n enabled: false,\n keys: [],\n requiredKeys: [],\n});\n\nexport const getMetadataConfig = (programTheme: ProgramTheme): MetadataConfig => {\n let customMetadata: MetadataConfig = deepClone(defaultMetadata);\n\n try {\n if (getSafe<boolean>(() => programTheme.config.customMetadata.enabled)) {\n customMetadata = { ...customMetadata, ...programTheme.config.customMetadata };\n }\n } catch (e) {\n logger.warn(\"No custom metadata provided by the server.\");\n }\n if (getOptions().customMetadata) {\n customMetadata = { ...customMetadata, ...getOptions().customMetadata };\n }\n\n return customMetadata;\n};\n\nexport const getMarketConsent = (programTheme: ProgramTheme): MarketConsentOptions => {\n let marketConsent: MarketConsentOptions = { ...defaultMarketConsent };\n try {\n if (programTheme.config.marketConsent) {\n marketConsent = programTheme.config.marketConsent;\n }\n } catch (e) {\n // market consent is not coming for this program from server. Default will be used\n logger.warn(\"Server did not provided a market consent config. Default will be used\");\n }\n if (getOptions().marketConsent) {\n marketConsent = getOptions().marketConsent;\n }\n return marketConsent;\n};\n\nexport const isCaptchaEnabled = (programTheme: ProgramTheme): boolean => {\n return !!programTheme?.captchaEnabled;\n};\n\nexport const getThemeMessages = (programTheme: ProgramTheme): ProgramThemeMessages => {\n let themeMessages: ProgramThemeMessages;\n try {\n themeMessages = programTheme.intl.messages;\n\n // This section is used as a stopgap to migrate theme messages that use single braces, of `react-intl`,\n // over to the double brace format expected by `i18next`.\n // TODO: Remove each section after all messages bundles in production have been migrated.\n if (themeMessages.step?.personalInfo?.howDoesVerifyingWorkDetails) {\n themeMessages.step.personalInfo.howDoesVerifyingWorkDetails =\n themeMessages.step.personalInfo.howDoesVerifyingWorkDetails.replace(\n /(?<!\\{)\\{companyName\\}(?!\\})/g,\n \"{{companyName}}\",\n );\n }\n\n if (themeMessages.step?.pending?.subtitle) {\n themeMessages.step.pending.subtitle = themeMessages.step.pending.subtitle.replace(\n /(?<!\\{)\\{maxReviewTime\\}(?!\\})/g,\n \"{{maxReviewTime}}\",\n );\n }\n\n if (themeMessages.step?.pending?.turnaroundTime) {\n themeMessages.step.pending.turnaroundTime = themeMessages.step.pending.turnaroundTime.replace(\n \"{estReviewTime}\",\n \"{{estimatedReviewTime}}\",\n );\n themeMessages.step.pending.turnaroundTime = themeMessages.step.pending.turnaroundTime.replace(\n /(?<!\\{)\\{maxReviewTime\\}(?!\\})/g,\n \"{{maxReviewTime}}\",\n );\n }\n\n if (themeMessages.step?.docUpload?.reviewTime) {\n themeMessages.step.docUpload.reviewTime = themeMessages.step.docUpload.reviewTime.replace(\n /(?<!\\{)\\{estimatedWaitTime\\}(?!\\})/g,\n \"{{estimatedReviewTime}}\",\n );\n }\n } catch (e) {\n logger.error(\"Unable to get theme messages\");\n }\n return themeMessages;\n};\n\nexport const getLogoUrl = (programTheme: ProgramTheme): ProgramTheme[\"themeChoices\"][\"logoUrl\"] => {\n const options = getOptions();\n\n return options.hasOwnProperty(\"logoUrl\") ? options.logoUrl : programTheme?.themeChoices?.logoUrl;\n};\n\nexport const getPrivacyPolicyUrl = (\n programTheme: ProgramTheme,\n): ProgramTheme[\"privacyPolicyUrl\"] => {\n const options = getOptions();\n\n return options.privacyPolicyUrl || programTheme?.privacyPolicyUrl;\n};\n\n/**\n * @description Return locales configured in MySheerID for this program, or specified in Javascript options.\n */\nexport const getAvailableLocales = (programTheme: ProgramTheme): Locale[] => {\n let configuredLocales: Locale[] = [\"en-US\"];\n let themeLocales: Locale[] = [];\n try {\n themeLocales = programTheme.config.locales;\n } catch (e) {\n logger.warn(\"Unable to get configured locales from programTheme\");\n }\n const optionsLocales: Locale[] = getLocalesFromOptions(getOptions());\n configuredLocales = [...themeLocales, ...optionsLocales];\n\n return arrayUnique(configuredLocales);\n};\n\n/**\n * @private\n */\nexport const getLocalesFromOptions = (options: Options): Locale[] => {\n if (options && options.messagesWithLocale) {\n return Object.keys(options.messagesWithLocale) as Locale[];\n }\n return [];\n};\n\n/**\n * @description Safely return the countries that were chosen/configured in MySheerID for this program.\n * Otherwise, return US as default.\n */\nexport const getConfiguredCountries = (programTheme: ProgramTheme): Country[] => {\n try {\n if (programTheme && programTheme.config && programTheme.config.countries) {\n return programTheme.config.countries;\n }\n\n // Old location for this property, may be returned from the server\n // @ts-ignore\n if (programTheme.intl.messages.step.personalInfo.countries) {\n const availableCountries: Country[] = [];\n\n // @ts-ignore\n\n for (const countryCode in programTheme.intl.messages.step.personalInfo.countries) {\n availableCountries.push(countryCode as Country);\n }\n return availableCountries;\n }\n } catch (e) {\n logger.warn(\"Unable to get configured countries\");\n }\n return [\"US\"];\n};\n\n/**\n * @description Safely return the states that were chosen/configured in MySheerID for this program.\n */\nexport const getConfiguredStates = (programTheme: ProgramTheme): State[] => {\n try {\n if (\n programTheme &&\n programTheme.config &&\n programTheme.config.states &&\n programTheme.config.states.length > 0\n ) {\n return programTheme.config.states;\n }\n } catch (e) {\n logger.warn(\"Unable to get configured states\");\n }\n return Object.keys(StateEnum) as State[];\n};\n\nconst options = getOptions();\nconst getFaqUrl = (): string => {\n const keyName: keyof Options = \"urlFaq\";\n if (!options.hasOwnProperty(keyName)) {\n logger.error(`Can't find an option for '${keyName}'`, \"Option not found\");\n }\n\n return options[keyName];\n};\n\nexport const getFaqLink = (\n programTheme: ProgramTheme,\n segment: Segment,\n programId: VerificationServiceValues[\"programId\"],\n locale: Locale,\n verificationResponse?: VerificationServiceValues[\"verificationResponse\"],\n): FaqUrl => {\n let faqInTheme: FaqUrl;\n try {\n faqInTheme = programTheme.config.customFaqLink;\n } catch (e) {\n faqInTheme = \"\";\n }\n\n // HC-361: Not including verification ids on collect info steps as those are likely to still be placeholder ids.\n const searchParams =\n verificationResponse && !isCollectStep(verificationResponse.currentStep)\n ? new URLSearchParams({\n verificationId: verificationResponse.verificationId,\n country: verificationResponse.country,\n })\n : undefined;\n const baseFaqUrl = programId\n ? `${getFaqUrl()}/${locale}/${programId}/help-center`\n : `${getFaqUrl()}/${locale}/help-center`;\n const faqUrl = searchParams ? `${baseFaqUrl}?${searchParams}` : baseFaqUrl;\n\n return !faqInTheme || faqInTheme === \"\" ? faqUrl : faqInTheme;\n};\n\nexport const getOrgSearchCountryTags = (programTheme, country: Country): string => {\n let searchTags = \"\";\n try {\n searchTags = programTheme.config?.orgSearchCountryTags?.[country]?.join(\",\") || \"\";\n } catch (e) {\n logger.error(e);\n }\n return searchTags;\n};\n\n// TODO STOP PROP DRILLING use this instead of itemToString being passed so deep\nexport const orgToString = (item: Organization): string => (item ? item.name : \"\");\n\nfunction viewModelWithOrg(candidate): candidate is WithOrganization {\n return Object.prototype.hasOwnProperty.call(candidate, \"organization\");\n}\n\nexport const getOrgSearchAffiliationOverrides = (\n searchParams: URLSearchParams,\n viewModel: ViewModel,\n programTheme: ProgramTheme,\n): URLSearchParams | undefined => {\n try {\n if (isLowIncomeVM(viewModel)) {\n const { statuses } = viewModel;\n const orgSearchAffiliationOverrides =\n programTheme?.config?.orgSearchAffiliationOverrides[statuses[0]];\n Object.keys(orgSearchAffiliationOverrides)\n .sort(alphabetically) // deterministic for unit tests\n .forEach((key) => {\n searchParams.set(key, orgSearchAffiliationOverrides[key]?.join(\",\"));\n });\n return searchParams;\n }\n } catch (e) {\n logger.error(e);\n }\n};\n\n// Get an updated org search URL that considers viewModel values and adjusts QSP accordingly\nexport const getOrgSearchUrl = (\n viewModel: ViewModel,\n programTheme: ProgramTheme,\n): string | undefined => {\n const COUNTRY = \"country\";\n const NAME = \"name\";\n const TAGS = \"tags\";\n\n try {\n const startingOrgSearchUrl = programTheme?.config?.orgSearchUrl;\n const country = getSafe<Country>(() => viewModel?.countryChoice?.value);\n\n if (!startingOrgSearchUrl) {\n logger.error(\"Expected an org search URL\");\n return \"\";\n }\n\n const orgSearchTags = getOrgSearchCountryTags(programTheme, country);\n\n const url = new URL(startingOrgSearchUrl);\n const { origin, pathname, search } = url;\n const searchParams = new URLSearchParams(search);\n\n if (viewModelWithOrg(viewModel)) {\n const name = orgToString(viewModel.organization);\n if (name) {\n searchParams.set(NAME, name);\n }\n }\n if (country) {\n searchParams.set(COUNTRY, country);\n }\n if (orgSearchTags) {\n searchParams.set(TAGS, orgSearchTags);\n }\n\n const paramsWithOverrides =\n getOrgSearchAffiliationOverrides(searchParams, viewModel, programTheme) || searchParams;\n\n paramsWithOverrides.sort(); // deterministic for unit tests\n\n return `${origin}${pathname}?${paramsWithOverrides.toString()}`;\n } catch (e) {\n logger.error(e);\n }\n};\n"],"mappings":";;;AAEA,IAAM,IAA4B,eAC5B,IAAsB,UACtB,IAAsB,WAEf,IAAe;CAC1B,aAAa;CACb,aAAa;CACb,iBAAiB;CACjB,gBAAgB;CAChB,uBAAuB;AACzB,GAII,GAOS,KAAkB,MAAmC;CAChE,IAAsB;AACxB,GAEa,UAA6C;CACxD,IAAI,GACF,OAAO;CAGT,IAAI;EACF,IAAM,IAA0B,IAAI,gBAAgB,OAAO,SAAS,MAAM,GAEpE,IAAmB,EAAO,IAAI,CAAyB;EAC7D,IAAI,GACF,OAAO,mBAAmB,CAAgB;EAG5C,IAAI,EAAO,IAAI,CAAmB,MAAM,GACtC,OAAO,EAAa;CAExB,SAAS,GAAG;EACV,EAAO,MAAM,GAAG,gBAAgB;CAClC;CAEA,OAAO,EAAa;AACtB,GCzCa,UACX,GAAG,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K,GAAG,CAAC;GACrE,CAAC,GACI;EACT;CACF,SAAS,GAAG;EACV,EAAO,MAAM,CAAC;CAChB;AACF,GAGa,KACX,GACA,MACuB;CAKvB,IAAI;EACF,IAAM,IAAuB,GAAc,QAAQ,cAC7C,IAAU,QAAuB,GAAW,eAAe,KAAK;EAEtE,IAAI,CAAC,GAEH,OADA,EAAO,MAAM,4BAA4B,GAClC;EAGT,IAAM,IAAgB,EAAwB,GAAc,CAAO,GAG7D,EAAE,WAAQ,aAAU,cAAW,IADrB,IAAI,CACiB,GAC/B,IAAe,IAAI,gBAAgB,CAAM;EAE/C,IAAI,EAAiB,CAAS,GAAG;GAC/B,IAAM,IAAO,EAAY,EAAU,YAAY;GAC/C,AAAI,KACF,EAAa,IAAI,QAAM,CAAI;EAE/B;EAIA,AAHI,KACF,EAAa,IAAI,WAAS,CAAO,GAE/B,KACF,EAAa,IAAI,QAAM,CAAa;EAGtC,IAAM,IACJ,EAAiC,GAAc,GAAW,CAAY,KAAK;EAI7E,OAFA,EAAoB,KAAK,GAElB,GAAG,IAAS,EAAS,GAAG,EAAoB,SAAS;CAC9D,SAAS,GAAG;EACV,EAAO,MAAM,CAAC;CAChB;AACF"}
|
|
1
|
+
{"version":3,"file":"programThemeGetters-BlMeCwyW.js","names":[],"sources":["../../../packages/shared/src/utils/getInstallType.ts","../../src/lib/ServerApi/ApiUrls.ts","../../src/components/StepLowIncomePersonalInfo/lowIncomeTypes.ts","../../src/lib/ProgramTheme/programThemeGetters.ts"],"sourcesContent":["import { logger } from \"./logger/logger\";\n\nconst QUERY_STRING_INSTALL_TYPE = \"installType\";\nconst QUERY_STRING_LAYOUT = \"layout\";\nconst QUERY_VALUE_LANDING = \"landing\";\n\nexport const InstallTypes = {\n landingPage: \"landing_page\",\n cdnNoIframe: \"cdn_no_iframe\",\n cdnInlineIframe: \"cdn_inline_iframe\",\n cdnModalIframe: \"cdn_modal_iframe\",\n programBuilderPreview: \"program_builder_preview\",\n} as const;\n\nexport type InstallType = (typeof InstallTypes)[keyof typeof InstallTypes];\n\nlet declaredInstallType: InstallType | undefined;\n\n/**\n * Declare the install context from an install wrapper that mounts the form into\n * the host page, where there is no iframe URL to carry the install type as a\n * query string param.\n */\nexport const setInstallType = (installType: InstallType): void => {\n declaredInstallType = installType;\n};\n\nexport const getInstallType = (): InstallType | string => {\n if (declaredInstallType) {\n return declaredInstallType;\n }\n\n try {\n const parsed: URLSearchParams = new URLSearchParams(window.location.search);\n\n const installTypeParam = parsed.get(QUERY_STRING_INSTALL_TYPE);\n if (installTypeParam) {\n return decodeURIComponent(installTypeParam);\n }\n\n if (parsed.get(QUERY_STRING_LAYOUT) === QUERY_VALUE_LANDING) {\n return InstallTypes.landingPage;\n }\n } catch (e) {\n logger.error(e, \"getInstallType\");\n }\n\n return InstallTypes.cdnNoIframe;\n};\n","import { logger } from \"@jslib/shared/utils/logger\";\n\nimport { QUERY_STRING_INSTALL_PAGE_URL } from \"../../constants\";\nimport { getOptions } from \"../../options/options\";\nimport { type RewardDisplayEnum } from \"../types/runtimeTypes\";\nimport { type DatabaseId, type Locale, type VerificationStep } from \"../types/types\";\n\nexport const getVerificationUrl = () =>\n `${getOptions().restApi.serviceUrl}${getOptions().restApi.resources.verification}`;\nexport const getVerificationStatusUrl = (verificationId: DatabaseId) =>\n `${getVerificationUrl()}${verificationId}`;\nexport const getNewVerificationRequestUrl = () => getVerificationUrl();\nexport const getProgramThemeUrl = (programId: DatabaseId, locale: Locale = null) => {\n const baseUrl = `${getOptions().restApi.serviceUrl}${\n getOptions().restApi.resources.program.base\n }${programId}/${getOptions().restApi.resources.program.theme}`;\n if (locale) {\n return `${baseUrl}?locale=${locale}`;\n }\n return `${baseUrl}`;\n};\n\nexport const getNewSmsCodeResendUrl = (verificationId: DatabaseId) =>\n `${getOptions().restApi.serviceUrl}rest/v2/verification/${verificationId}/step/smsLoop/retry`;\nexport const getNewEmailCodeResendUrl = (verificationId: DatabaseId) =>\n `${getOptions().restApi.serviceUrl}rest/v2/verification/${verificationId}/step/emailLoop/retry`;\n\nexport const getFieldsToCollectUrl = (verificationId: DatabaseId, stepName: VerificationStep) =>\n `${getOptions().restApi.serviceUrl}rest/v2/verification/${verificationId}/${stepName}/fields`;\n\nconst MILITARY_STEPS_USING_UNIFIED_ENDPOINT = new Set<VerificationStep>([\n \"collectMilitaryStatus\",\n \"collectActiveMilitaryPersonalInfo\",\n \"collectInactiveMilitaryPersonalInfo\",\n]);\n\n/**\n * The three legacy military `currentStep` values from the server all submit\n * to a single unified endpoint, `step/collectMilitaryPersonalInfo`. The\n * server still returns its old submissionUrl for backwards compatibility,\n * so we ignore it for these three steps and build the unified URL ourselves.\n */\nexport const getEffectiveSubmissionUrl = (\n step: VerificationStep,\n previousResponse: { submissionUrl?: string },\n verificationId: DatabaseId,\n): string => {\n if (MILITARY_STEPS_USING_UNIFIED_ENDPOINT.has(step)) {\n return `${getOptions().restApi.serviceUrl}rest/v2/verification/${verificationId}/step/collectMilitaryPersonalInfo`;\n }\n return previousResponse.submissionUrl;\n};\n\nexport const getDocTypeForCountriesUrl = (verificationId: DatabaseId, countries: string[]) =>\n `${\n getOptions().restApi.serviceUrl\n }rest/v2/verification/${verificationId}/step/idCheckLoop/getDocumentTypesForCountries?countries=${countries}`;\n\nexport const getBarcodeUrl = (\n verificationId: DatabaseId,\n rewardKey: string,\n symbology: RewardDisplayEnum,\n) =>\n `${\n getOptions().restApi.serviceUrl\n }rest/v2/verification/${verificationId}/barcode?rewardKey=${rewardKey}&symbology=${symbology}`;\n\n/**\n * Get the version that was actually used\n * The build process replaces this with the value.\n * e.g. 1.59.0 or 1.46.0-alpha.575\n */\nexport const getPublishedVersion = (): string => process.env.NEXT_VERSION;\n\nexport const getCurrentUrl = (): string => window.location.href;\n\nexport const getInstallPageUrl = (): string | undefined => {\n try {\n const parsed: URLSearchParams = new URLSearchParams(window.location.search);\n\n if (parsed.get(QUERY_STRING_INSTALL_PAGE_URL)) {\n return decodeURIComponent(parsed.get(QUERY_STRING_INSTALL_PAGE_URL));\n }\n if (getOptions()[QUERY_STRING_INSTALL_PAGE_URL]) {\n return getOptions()[QUERY_STRING_INSTALL_PAGE_URL];\n }\n } catch (e) {\n logger.error(e, \"Install Page URL\");\n }\n\n return getCurrentUrl();\n};\n\nexport { getInstallType, InstallTypes, type InstallType } from \"@jslib/shared/utils/getInstallType\";\n\nexport const getVerificationHelpUrl = (): string =>\n `${getOptions().restApi.serviceUrl}rest/v2/help/verificationHelp`;\n","import { type LowIncomePersonalInfoViewModel } from \"../../lib/types/types\";\n\n/**\n * @todo check that obj doesn't have a property name in addition to any required or optional property names\n * @todo move this somewhere generic outside low income\n *\n * This is only set up to check required property names\n *\n * @returns true if every one of the entries in \"properties\" can be found as a key of \"obj\"\n */\nconst hasFields = (obj: object, properties: string[]) =>\n properties.every((p) => Object.prototype.hasOwnProperty.call(obj, p));\n\n/**\n * @todo check no additional/rogue properties exist\n *\n * @param candidate An object to check\n * @returns boolean - true if candidate is of type LowIncomePersonalInfoViewModel\n */\nexport function isLowIncomeVM(candidate: object): candidate is LowIncomePersonalInfoViewModel {\n return hasFields(candidate, [\n \"statuses\",\n \"birthDate\",\n \"postalCode\",\n \"firstName\",\n \"lastName\",\n \"countryChoice\",\n \"localeChoice\",\n \"email\",\n ]);\n}\n","import { logger } from \"@jslib/shared/utils/logger\";\nimport { getSafe } from \"@jslib/shared/utils/getSafe\";\n\nimport {\n type Country,\n type FaqUrl,\n type Locale,\n type MarketConsentOptions,\n type MetadataConfig,\n type Options,\n type Organization,\n type ProgramTheme,\n type ProgramThemeMessages,\n type Segment,\n type State,\n type VerificationServiceValues,\n type ViewModel,\n type WithOrganization,\n} from \"../types/types\";\nimport { getOptions } from \"../../options/options\";\nimport { deepClone } from \"../utils/objects\";\nimport { alphabetically, arrayUnique } from \"../utils/arrays\";\nimport { StateEnum, isCollectStep } from \"../types/runtimeTypes\";\nimport { isLowIncomeVM } from \"../../components/StepLowIncomePersonalInfo/lowIncomeTypes\";\n\nexport const getCompanyName = (programTheme: ProgramTheme): string => {\n let companyName = \"{Company}\"; // Show literal string \"{Company}\" so implementor is prompted to fix by adding in my.sheerid.com\n try {\n companyName = programTheme.intl.messages.companyName;\n if (!(typeof companyName === \"string\" && companyName.length > 0)) {\n throw new Error(\"Invalid companyName\");\n }\n } catch (e) {\n // Property access or invalid company name error\n logger.warn(\"companyName not found. Please sign in to my.sheerid.com to set.\");\n }\n\n return companyName;\n};\n\nconst defaultMarketConsent: MarketConsentOptions = {\n enabled: false,\n required: false,\n message: \"\",\n};\n\nconst defaultMetadata: MetadataConfig = Object.freeze({\n enabled: false,\n keys: [],\n requiredKeys: [],\n});\n\nexport const getMetadataConfig = (programTheme: ProgramTheme): MetadataConfig => {\n let customMetadata: MetadataConfig = deepClone(defaultMetadata);\n\n try {\n if (getSafe<boolean>(() => programTheme.config.customMetadata.enabled)) {\n customMetadata = { ...customMetadata, ...programTheme.config.customMetadata };\n }\n } catch (e) {\n logger.warn(\"No custom metadata provided by the server.\");\n }\n if (getOptions().customMetadata) {\n customMetadata = { ...customMetadata, ...getOptions().customMetadata };\n }\n\n return customMetadata;\n};\n\nexport const getMarketConsent = (programTheme: ProgramTheme): MarketConsentOptions => {\n let marketConsent: MarketConsentOptions = { ...defaultMarketConsent };\n try {\n if (programTheme.config.marketConsent) {\n marketConsent = programTheme.config.marketConsent;\n }\n } catch (e) {\n // market consent is not coming for this program from server. Default will be used\n logger.warn(\"Server did not provided a market consent config. Default will be used\");\n }\n if (getOptions().marketConsent) {\n marketConsent = getOptions().marketConsent;\n }\n return marketConsent;\n};\n\nexport const isCaptchaEnabled = (programTheme: ProgramTheme): boolean => {\n return !!programTheme?.captchaEnabled;\n};\n\nexport const getThemeMessages = (programTheme: ProgramTheme): ProgramThemeMessages => {\n let themeMessages: ProgramThemeMessages;\n try {\n themeMessages = programTheme.intl.messages;\n\n // This section is used as a stopgap to migrate theme messages that use single braces, of `react-intl`,\n // over to the double brace format expected by `i18next`.\n // TODO: Remove each section after all messages bundles in production have been migrated.\n if (themeMessages.step?.personalInfo?.howDoesVerifyingWorkDetails) {\n themeMessages.step.personalInfo.howDoesVerifyingWorkDetails =\n themeMessages.step.personalInfo.howDoesVerifyingWorkDetails.replace(\n /(?<!\\{)\\{companyName\\}(?!\\})/g,\n \"{{companyName}}\",\n );\n }\n\n if (themeMessages.step?.pending?.subtitle) {\n themeMessages.step.pending.subtitle = themeMessages.step.pending.subtitle.replace(\n /(?<!\\{)\\{maxReviewTime\\}(?!\\})/g,\n \"{{maxReviewTime}}\",\n );\n }\n\n if (themeMessages.step?.pending?.turnaroundTime) {\n themeMessages.step.pending.turnaroundTime = themeMessages.step.pending.turnaroundTime.replace(\n \"{estReviewTime}\",\n \"{{estimatedReviewTime}}\",\n );\n themeMessages.step.pending.turnaroundTime = themeMessages.step.pending.turnaroundTime.replace(\n /(?<!\\{)\\{maxReviewTime\\}(?!\\})/g,\n \"{{maxReviewTime}}\",\n );\n }\n\n if (themeMessages.step?.docUpload?.reviewTime) {\n themeMessages.step.docUpload.reviewTime = themeMessages.step.docUpload.reviewTime.replace(\n /(?<!\\{)\\{estimatedWaitTime\\}(?!\\})/g,\n \"{{estimatedReviewTime}}\",\n );\n }\n } catch (e) {\n logger.error(\"Unable to get theme messages\");\n }\n return themeMessages;\n};\n\nexport const getLogoUrl = (programTheme: ProgramTheme): ProgramTheme[\"themeChoices\"][\"logoUrl\"] => {\n const options = getOptions();\n\n return options.hasOwnProperty(\"logoUrl\") ? options.logoUrl : programTheme?.themeChoices?.logoUrl;\n};\n\nexport const getPrivacyPolicyUrl = (\n programTheme: ProgramTheme,\n): ProgramTheme[\"privacyPolicyUrl\"] => {\n const options = getOptions();\n\n return options.privacyPolicyUrl || programTheme?.privacyPolicyUrl;\n};\n\n/**\n * @description Return locales configured in MySheerID for this program, or specified in Javascript options.\n */\nexport const getAvailableLocales = (programTheme: ProgramTheme): Locale[] => {\n let configuredLocales: Locale[] = [\"en-US\"];\n let themeLocales: Locale[] = [];\n try {\n themeLocales = programTheme.config.locales;\n } catch (e) {\n logger.warn(\"Unable to get configured locales from programTheme\");\n }\n const optionsLocales: Locale[] = getLocalesFromOptions(getOptions());\n configuredLocales = [...themeLocales, ...optionsLocales];\n\n return arrayUnique(configuredLocales);\n};\n\n/**\n * @private\n */\nexport const getLocalesFromOptions = (options: Options): Locale[] => {\n if (options && options.messagesWithLocale) {\n return Object.keys(options.messagesWithLocale) as Locale[];\n }\n return [];\n};\n\n/**\n * @description Safely return the countries that were chosen/configured in MySheerID for this program.\n * Otherwise, return US as default.\n */\nexport const getConfiguredCountries = (programTheme: ProgramTheme): Country[] => {\n try {\n if (programTheme && programTheme.config && programTheme.config.countries) {\n return programTheme.config.countries;\n }\n\n // Old location for this property, may be returned from the server\n // @ts-ignore\n if (programTheme.intl.messages.step.personalInfo.countries) {\n const availableCountries: Country[] = [];\n\n // @ts-ignore\n\n for (const countryCode in programTheme.intl.messages.step.personalInfo.countries) {\n availableCountries.push(countryCode as Country);\n }\n return availableCountries;\n }\n } catch (e) {\n logger.warn(\"Unable to get configured countries\");\n }\n return [\"US\"];\n};\n\n/**\n * @description Safely return the states that were chosen/configured in MySheerID for this program.\n */\nexport const getConfiguredStates = (programTheme: ProgramTheme): State[] => {\n try {\n if (\n programTheme &&\n programTheme.config &&\n programTheme.config.states &&\n programTheme.config.states.length > 0\n ) {\n return programTheme.config.states;\n }\n } catch (e) {\n logger.warn(\"Unable to get configured states\");\n }\n return Object.keys(StateEnum) as State[];\n};\n\nconst options = getOptions();\nconst getFaqUrl = (): string => {\n const keyName: keyof Options = \"urlFaq\";\n if (!options.hasOwnProperty(keyName)) {\n logger.error(`Can't find an option for '${keyName}'`, \"Option not found\");\n }\n\n return options[keyName];\n};\n\nexport const getFaqLink = (\n programTheme: ProgramTheme,\n segment: Segment,\n programId: VerificationServiceValues[\"programId\"],\n locale: Locale,\n verificationResponse?: VerificationServiceValues[\"verificationResponse\"],\n): FaqUrl => {\n let faqInTheme: FaqUrl;\n try {\n faqInTheme = programTheme.config.customFaqLink;\n } catch (e) {\n faqInTheme = \"\";\n }\n\n // HC-361: Not including verification ids on collect info steps as those are likely to still be placeholder ids.\n const searchParams =\n verificationResponse && !isCollectStep(verificationResponse.currentStep)\n ? new URLSearchParams({\n verificationId: verificationResponse.verificationId,\n country: verificationResponse.country,\n })\n : undefined;\n const baseFaqUrl = programId\n ? `${getFaqUrl()}/${locale}/${programId}/help-center`\n : `${getFaqUrl()}/${locale}/help-center`;\n const faqUrl = searchParams ? `${baseFaqUrl}?${searchParams}` : baseFaqUrl;\n\n return !faqInTheme || faqInTheme === \"\" ? faqUrl : faqInTheme;\n};\n\nexport const getOrgSearchCountryTags = (programTheme, country: Country): string => {\n let searchTags = \"\";\n try {\n searchTags = programTheme.config?.orgSearchCountryTags?.[country]?.join(\",\") || \"\";\n } catch (e) {\n logger.error(e);\n }\n return searchTags;\n};\n\n// TODO STOP PROP DRILLING use this instead of itemToString being passed so deep\nexport const orgToString = (item: Organization): string => (item ? item.name : \"\");\n\nfunction viewModelWithOrg(candidate): candidate is WithOrganization {\n return Object.prototype.hasOwnProperty.call(candidate, \"organization\");\n}\n\nexport const getOrgSearchAffiliationOverrides = (\n searchParams: URLSearchParams,\n viewModel: ViewModel,\n programTheme: ProgramTheme,\n): URLSearchParams | undefined => {\n try {\n if (isLowIncomeVM(viewModel)) {\n const { statuses } = viewModel;\n const orgSearchAffiliationOverrides =\n programTheme?.config?.orgSearchAffiliationOverrides[statuses[0]];\n Object.keys(orgSearchAffiliationOverrides)\n .sort(alphabetically) // deterministic for unit tests\n .forEach((key) => {\n searchParams.set(key, orgSearchAffiliationOverrides[key]?.join(\",\"));\n });\n return searchParams;\n }\n } catch (e) {\n logger.error(e);\n }\n};\n\n// Get an updated org search URL that considers viewModel values and adjusts QSP accordingly\nexport const getOrgSearchUrl = (\n viewModel: ViewModel,\n programTheme: ProgramTheme,\n): string | undefined => {\n const COUNTRY = \"country\";\n const NAME = \"name\";\n const TAGS = \"tags\";\n\n try {\n const startingOrgSearchUrl = programTheme?.config?.orgSearchUrl;\n const country = getSafe<Country>(() => viewModel?.countryChoice?.value);\n\n if (!startingOrgSearchUrl) {\n logger.error(\"Expected an org search URL\");\n return \"\";\n }\n\n const orgSearchTags = getOrgSearchCountryTags(programTheme, country);\n\n const url = new URL(startingOrgSearchUrl);\n const { origin, pathname, search } = url;\n const searchParams = new URLSearchParams(search);\n\n if (viewModelWithOrg(viewModel)) {\n const name = orgToString(viewModel.organization);\n if (name) {\n searchParams.set(NAME, name);\n }\n }\n if (country) {\n searchParams.set(COUNTRY, country);\n }\n if (orgSearchTags) {\n searchParams.set(TAGS, orgSearchTags);\n }\n\n const paramsWithOverrides =\n getOrgSearchAffiliationOverrides(searchParams, viewModel, programTheme) || searchParams;\n\n paramsWithOverrides.sort(); // deterministic for unit tests\n\n return `${origin}${pathname}?${paramsWithOverrides.toString()}`;\n } catch (e) {\n logger.error(e);\n }\n};\n"],"mappings":";;;AAEA,IAAM,IAA4B,eAC5B,IAAsB,UACtB,IAAsB,WAEf,IAAe;CAC1B,aAAa;CACb,aAAa;CACb,iBAAiB;CACjB,gBAAgB;CAChB,uBAAuB;AACzB,GAII,GAOS,KAAkB,MAAmC;CAChE,IAAsB;AACxB,GAEa,UAA6C;CACxD,IAAI,GACF,OAAO;CAGT,IAAI;EACF,IAAM,IAA0B,IAAI,gBAAgB,OAAO,SAAS,MAAM,GAEpE,IAAmB,EAAO,IAAI,CAAyB;EAC7D,IAAI,GACF,OAAO,mBAAmB,CAAgB;EAG5C,IAAI,EAAO,IAAI,CAAmB,MAAM,GACtC,OAAO,EAAa;CAExB,SAAS,GAAG;EACV,EAAO,MAAM,GAAG,gBAAgB;CAClC;CAEA,OAAO,EAAa;AACtB,GCzCa,UACX,GAAG,EAAW,EAAE,QAAQ,aAAa,EAAW,EAAE,QAAQ,UAAU,gBACzD,KAA4B,MACvC,GAAG,EAAmB,IAAI,KACf,UAAqC,EAAmB,GACxD,KAAsB,GAAuB,IAAiB,SAAS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Ac,QAAQ,cAC7C,IAAU,QAAuB,GAAW,eAAe,KAAK;EAEtE,IAAI,CAAC,GAEH,OADA,EAAO,MAAM,4BAA4B,GAClC;EAGT,IAAM,IAAgB,EAAwB,GAAc,CAAO,GAG7D,EAAE,WAAQ,aAAU,cAAW,IADrB,IAAI,CACiB,GAC/B,IAAe,IAAI,gBAAgB,CAAM;EAE/C,IAAI,EAAiB,CAAS,GAAG;GAC/B,IAAM,IAAO,EAAY,EAAU,YAAY;GAC/C,AAAI,KACF,EAAa,IAAI,QAAM,CAAI;EAE/B;EAIA,AAHI,KACF,EAAa,IAAI,WAAS,CAAO,GAE/B,KACF,EAAa,IAAI,QAAM,CAAa;EAGtC,IAAM,IACJ,EAAiC,GAAc,GAAW,CAAY,KAAK;EAI7E,OAFA,EAAoB,KAAK,GAElB,GAAG,IAAS,EAAS,GAAG,EAAoB,SAAS;CAC9D,SAAS,GAAG;EACV,EAAO,MAAM,CAAC;CAChB;AACF"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
|
|
2
2
|
/**
|
|
3
|
-
* VERSION: 2.
|
|
4
|
-
* BUILD_TIMESTAMP:
|
|
5
|
-
* BUILD_DATE: Thu Sep 24 2026
|
|
6
|
-
* BUILD_COMMIT:
|
|
3
|
+
* VERSION: 2.297.0
|
|
4
|
+
* BUILD_TIMESTAMP: 1790284263507
|
|
5
|
+
* BUILD_DATE: Thu Sep 24 2026 21:11:03 GMT+0000 (Coordinated Universal Time)
|
|
6
|
+
* BUILD_COMMIT: 9315c638699c60e5622b9f878abfccad2a009219
|
|
7
7
|
*/
|
|
8
8
|
import { K as e, S as t, a as n, dt as r, n as i, o as a } from "./options-DsRV5fwh.js";
|
|
9
9
|
import { S as o, f as s, x as c } from "./runtimeTypes-B2AGNJMT.js";
|
|
@@ -31,7 +31,7 @@ var l = "installType", u = "layout", d = "landing", f = {
|
|
|
31
31
|
"collectMilitaryStatus",
|
|
32
32
|
"collectActiveMilitaryPersonalInfo",
|
|
33
33
|
"collectInactiveMilitaryPersonalInfo"
|
|
34
|
-
]), C = (e, t, n) => S.has(e) ? `${i().restApi.serviceUrl}rest/v2/verification/${n}/step/collectMilitaryPersonalInfo` : t.submissionUrl, w = (e, t) => `${i().restApi.serviceUrl}rest/v2/verification/${e}/step/idCheckLoop/getDocumentTypesForCountries?countries=${t}`, T = (e, t, n) => `${i().restApi.serviceUrl}rest/v2/verification/${e}/barcode?rewardKey=${t}&symbology=${n}`, E = () => "2.
|
|
34
|
+
]), C = (e, t, n) => S.has(e) ? `${i().restApi.serviceUrl}rest/v2/verification/${n}/step/collectMilitaryPersonalInfo` : t.submissionUrl, w = (e, t) => `${i().restApi.serviceUrl}rest/v2/verification/${e}/step/idCheckLoop/getDocumentTypesForCountries?countries=${t}`, T = (e, t, n) => `${i().restApi.serviceUrl}rest/v2/verification/${e}/barcode?rewardKey=${t}&symbology=${n}`, E = () => "2.297.0", D = () => window.location.href, O = () => {
|
|
35
35
|
try {
|
|
36
36
|
let t = new URLSearchParams(window.location.search);
|
|
37
37
|
if (t.get("installPageUrl")) return decodeURIComponent(t.get(e));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"programThemeGetters-CHcPOXgA.js","names":[],"sources":["../../../packages/shared/src/utils/getInstallType.ts","../../src/lib/ServerApi/ApiUrls.ts","../../src/components/StepLowIncomePersonalInfo/lowIncomeTypes.ts","../../src/lib/ProgramTheme/programThemeGetters.ts"],"sourcesContent":["import { logger } from \"./logger/logger\";\n\nconst QUERY_STRING_INSTALL_TYPE = \"installType\";\nconst QUERY_STRING_LAYOUT = \"layout\";\nconst QUERY_VALUE_LANDING = \"landing\";\n\nexport const InstallTypes = {\n landingPage: \"landing_page\",\n cdnNoIframe: \"cdn_no_iframe\",\n cdnInlineIframe: \"cdn_inline_iframe\",\n cdnModalIframe: \"cdn_modal_iframe\",\n programBuilderPreview: \"program_builder_preview\",\n} as const;\n\nexport type InstallType = (typeof InstallTypes)[keyof typeof InstallTypes];\n\nlet declaredInstallType: InstallType | undefined;\n\n/**\n * Declare the install context from an install wrapper that mounts the form into\n * the host page, where there is no iframe URL to carry the install type as a\n * query string param.\n */\nexport const setInstallType = (installType: InstallType): void => {\n declaredInstallType = installType;\n};\n\nexport const getInstallType = (): InstallType | string => {\n if (declaredInstallType) {\n return declaredInstallType;\n }\n\n try {\n const parsed: URLSearchParams = new URLSearchParams(window.location.search);\n\n const installTypeParam = parsed.get(QUERY_STRING_INSTALL_TYPE);\n if (installTypeParam) {\n return decodeURIComponent(installTypeParam);\n }\n\n if (parsed.get(QUERY_STRING_LAYOUT) === QUERY_VALUE_LANDING) {\n return InstallTypes.landingPage;\n }\n } catch (e) {\n logger.error(e, \"getInstallType\");\n }\n\n return InstallTypes.cdnNoIframe;\n};\n","import { logger } from \"@jslib/shared/utils/logger\";\n\nimport { QUERY_STRING_INSTALL_PAGE_URL } from \"../../constants\";\nimport { getOptions } from \"../../options/options\";\nimport { type RewardDisplayEnum } from \"../types/runtimeTypes\";\nimport { type DatabaseId, type Locale, type VerificationStep } from \"../types/types\";\n\nexport const getVerificationUrl = () =>\n `${getOptions().restApi.serviceUrl}${getOptions().restApi.resources.verification}`;\nexport const getVerificationStatusUrl = (verificationId: DatabaseId) =>\n `${getVerificationUrl()}${verificationId}`;\nexport const getNewVerificationRequestUrl = () => getVerificationUrl();\nexport const getProgramThemeUrl = (programId: DatabaseId, locale: Locale = null) => {\n const baseUrl = `${getOptions().restApi.serviceUrl}${\n getOptions().restApi.resources.program.base\n }${programId}/${getOptions().restApi.resources.program.theme}`;\n if (locale) {\n return `${baseUrl}?locale=${locale}`;\n }\n return `${baseUrl}`;\n};\n\nexport const getNewSmsCodeResendUrl = (verificationId: DatabaseId) =>\n `${getOptions().restApi.serviceUrl}rest/v2/verification/${verificationId}/step/smsLoop/retry`;\nexport const getNewEmailCodeResendUrl = (verificationId: DatabaseId) =>\n `${getOptions().restApi.serviceUrl}rest/v2/verification/${verificationId}/step/emailLoop/retry`;\n\nexport const getFieldsToCollectUrl = (verificationId: DatabaseId, stepName: VerificationStep) =>\n `${getOptions().restApi.serviceUrl}rest/v2/verification/${verificationId}/${stepName}/fields`;\n\nconst MILITARY_STEPS_USING_UNIFIED_ENDPOINT = new Set<VerificationStep>([\n \"collectMilitaryStatus\",\n \"collectActiveMilitaryPersonalInfo\",\n \"collectInactiveMilitaryPersonalInfo\",\n]);\n\n/**\n * The three legacy military `currentStep` values from the server all submit\n * to a single unified endpoint, `step/collectMilitaryPersonalInfo`. The\n * server still returns its old submissionUrl for backwards compatibility,\n * so we ignore it for these three steps and build the unified URL ourselves.\n */\nexport const getEffectiveSubmissionUrl = (\n step: VerificationStep,\n previousResponse: { submissionUrl?: string },\n verificationId: DatabaseId,\n): string => {\n if (MILITARY_STEPS_USING_UNIFIED_ENDPOINT.has(step)) {\n return `${getOptions().restApi.serviceUrl}rest/v2/verification/${verificationId}/step/collectMilitaryPersonalInfo`;\n }\n return previousResponse.submissionUrl;\n};\n\nexport const getDocTypeForCountriesUrl = (verificationId: DatabaseId, countries: string[]) =>\n `${\n getOptions().restApi.serviceUrl\n }rest/v2/verification/${verificationId}/step/idCheckLoop/getDocumentTypesForCountries?countries=${countries}`;\n\nexport const getBarcodeUrl = (\n verificationId: DatabaseId,\n rewardKey: string,\n symbology: RewardDisplayEnum,\n) =>\n `${\n getOptions().restApi.serviceUrl\n }rest/v2/verification/${verificationId}/barcode?rewardKey=${rewardKey}&symbology=${symbology}`;\n\n/**\n * Get the version that was actually used\n * The build process replaces this with the value.\n * e.g. 1.59.0 or 1.46.0-alpha.575\n */\nexport const getPublishedVersion = (): string => process.env.NEXT_VERSION;\n\nexport const getCurrentUrl = (): string => window.location.href;\n\nexport const getInstallPageUrl = (): string | undefined => {\n try {\n const parsed: URLSearchParams = new URLSearchParams(window.location.search);\n\n if (parsed.get(QUERY_STRING_INSTALL_PAGE_URL)) {\n return decodeURIComponent(parsed.get(QUERY_STRING_INSTALL_PAGE_URL));\n }\n if (getOptions()[QUERY_STRING_INSTALL_PAGE_URL]) {\n return getOptions()[QUERY_STRING_INSTALL_PAGE_URL];\n }\n } catch (e) {\n logger.error(e, \"Install Page URL\");\n }\n\n return getCurrentUrl();\n};\n\nexport { getInstallType, InstallTypes, type InstallType } from \"@jslib/shared/utils/getInstallType\";\n\nexport const getVerificationHelpUrl = (): string =>\n `${getOptions().restApi.serviceUrl}rest/v2/help/verificationHelp`;\n","import { type LowIncomePersonalInfoViewModel } from \"../../lib/types/types\";\n\n/**\n * @todo check that obj doesn't have a property name in addition to any required or optional property names\n * @todo move this somewhere generic outside low income\n *\n * This is only set up to check required property names\n *\n * @returns true if every one of the entries in \"properties\" can be found as a key of \"obj\"\n */\nconst hasFields = (obj: object, properties: string[]) =>\n properties.every((p) => Object.prototype.hasOwnProperty.call(obj, p));\n\n/**\n * @todo check no additional/rogue properties exist\n *\n * @param candidate An object to check\n * @returns boolean - true if candidate is of type LowIncomePersonalInfoViewModel\n */\nexport function isLowIncomeVM(candidate: object): candidate is LowIncomePersonalInfoViewModel {\n return hasFields(candidate, [\n \"statuses\",\n \"birthDate\",\n \"postalCode\",\n \"firstName\",\n \"lastName\",\n \"countryChoice\",\n \"localeChoice\",\n \"email\",\n ]);\n}\n","import { logger } from \"@jslib/shared/utils/logger\";\nimport { getSafe } from \"@jslib/shared/utils/getSafe\";\n\nimport {\n type Country,\n type FaqUrl,\n type Locale,\n type MarketConsentOptions,\n type MetadataConfig,\n type Options,\n type Organization,\n type ProgramTheme,\n type ProgramThemeMessages,\n type Segment,\n type State,\n type VerificationServiceValues,\n type ViewModel,\n type WithOrganization,\n} from \"../types/types\";\nimport { getOptions } from \"../../options/options\";\nimport { deepClone } from \"../utils/objects\";\nimport { alphabetically, arrayUnique } from \"../utils/arrays\";\nimport { StateEnum, isCollectStep } from \"../types/runtimeTypes\";\nimport { isLowIncomeVM } from \"../../components/StepLowIncomePersonalInfo/lowIncomeTypes\";\n\nexport const getCompanyName = (programTheme: ProgramTheme): string => {\n let companyName = \"{Company}\"; // Show literal string \"{Company}\" so implementor is prompted to fix by adding in my.sheerid.com\n try {\n companyName = programTheme.intl.messages.companyName;\n if (!(typeof companyName === \"string\" && companyName.length > 0)) {\n throw new Error(\"Invalid companyName\");\n }\n } catch (e) {\n // Property access or invalid company name error\n logger.warn(\"companyName not found. Please sign in to my.sheerid.com to set.\");\n }\n\n return companyName;\n};\n\nconst defaultMarketConsent: MarketConsentOptions = {\n enabled: false,\n required: false,\n message: \"\",\n};\n\nconst defaultMetadata: MetadataConfig = Object.freeze({\n enabled: false,\n keys: [],\n requiredKeys: [],\n});\n\nexport const getMetadataConfig = (programTheme: ProgramTheme): MetadataConfig => {\n let customMetadata: MetadataConfig = deepClone(defaultMetadata);\n\n try {\n if (getSafe<boolean>(() => programTheme.config.customMetadata.enabled)) {\n customMetadata = { ...customMetadata, ...programTheme.config.customMetadata };\n }\n } catch (e) {\n logger.warn(\"No custom metadata provided by the server.\");\n }\n if (getOptions().customMetadata) {\n customMetadata = { ...customMetadata, ...getOptions().customMetadata };\n }\n\n return customMetadata;\n};\n\nexport const getMarketConsent = (programTheme: ProgramTheme): MarketConsentOptions => {\n let marketConsent: MarketConsentOptions = { ...defaultMarketConsent };\n try {\n if (programTheme.config.marketConsent) {\n marketConsent = programTheme.config.marketConsent;\n }\n } catch (e) {\n // market consent is not coming for this program from server. Default will be used\n logger.warn(\"Server did not provided a market consent config. Default will be used\");\n }\n if (getOptions().marketConsent) {\n marketConsent = getOptions().marketConsent;\n }\n return marketConsent;\n};\n\nexport const isCaptchaEnabled = (programTheme: ProgramTheme): boolean => {\n return !!programTheme?.captchaEnabled;\n};\n\nexport const getThemeMessages = (programTheme: ProgramTheme): ProgramThemeMessages => {\n let themeMessages: ProgramThemeMessages;\n try {\n themeMessages = programTheme.intl.messages;\n\n // This section is used as a stopgap to migrate theme messages that use single braces, of `react-intl`,\n // over to the double brace format expected by `i18next`.\n // TODO: Remove each section after all messages bundles in production have been migrated.\n if (themeMessages.step?.personalInfo?.howDoesVerifyingWorkDetails) {\n themeMessages.step.personalInfo.howDoesVerifyingWorkDetails =\n themeMessages.step.personalInfo.howDoesVerifyingWorkDetails.replace(\n /(?<!\\{)\\{companyName\\}(?!\\})/g,\n \"{{companyName}}\",\n );\n }\n\n if (themeMessages.step?.pending?.subtitle) {\n themeMessages.step.pending.subtitle = themeMessages.step.pending.subtitle.replace(\n /(?<!\\{)\\{maxReviewTime\\}(?!\\})/g,\n \"{{maxReviewTime}}\",\n );\n }\n\n if (themeMessages.step?.pending?.turnaroundTime) {\n themeMessages.step.pending.turnaroundTime = themeMessages.step.pending.turnaroundTime.replace(\n \"{estReviewTime}\",\n \"{{estimatedReviewTime}}\",\n );\n themeMessages.step.pending.turnaroundTime = themeMessages.step.pending.turnaroundTime.replace(\n /(?<!\\{)\\{maxReviewTime\\}(?!\\})/g,\n \"{{maxReviewTime}}\",\n );\n }\n\n if (themeMessages.step?.docUpload?.reviewTime) {\n themeMessages.step.docUpload.reviewTime = themeMessages.step.docUpload.reviewTime.replace(\n /(?<!\\{)\\{estimatedWaitTime\\}(?!\\})/g,\n \"{{estimatedReviewTime}}\",\n );\n }\n } catch (e) {\n logger.error(\"Unable to get theme messages\");\n }\n return themeMessages;\n};\n\nexport const getLogoUrl = (programTheme: ProgramTheme): ProgramTheme[\"themeChoices\"][\"logoUrl\"] => {\n const options = getOptions();\n\n return options.hasOwnProperty(\"logoUrl\") ? options.logoUrl : programTheme?.themeChoices?.logoUrl;\n};\n\nexport const getPrivacyPolicyUrl = (\n programTheme: ProgramTheme,\n): ProgramTheme[\"privacyPolicyUrl\"] => {\n const options = getOptions();\n\n return options.privacyPolicyUrl || programTheme?.privacyPolicyUrl;\n};\n\n/**\n * @description Return locales configured in MySheerID for this program, or specified in Javascript options.\n */\nexport const getAvailableLocales = (programTheme: ProgramTheme): Locale[] => {\n let configuredLocales: Locale[] = [\"en-US\"];\n let themeLocales: Locale[] = [];\n try {\n themeLocales = programTheme.config.locales;\n } catch (e) {\n logger.warn(\"Unable to get configured locales from programTheme\");\n }\n const optionsLocales: Locale[] = getLocalesFromOptions(getOptions());\n configuredLocales = [...themeLocales, ...optionsLocales];\n\n return arrayUnique(configuredLocales);\n};\n\n/**\n * @private\n */\nexport const getLocalesFromOptions = (options: Options): Locale[] => {\n if (options && options.messagesWithLocale) {\n return Object.keys(options.messagesWithLocale) as Locale[];\n }\n return [];\n};\n\n/**\n * @description Safely return the countries that were chosen/configured in MySheerID for this program.\n * Otherwise, return US as default.\n */\nexport const getConfiguredCountries = (programTheme: ProgramTheme): Country[] => {\n try {\n if (programTheme && programTheme.config && programTheme.config.countries) {\n return programTheme.config.countries;\n }\n\n // Old location for this property, may be returned from the server\n // @ts-ignore\n if (programTheme.intl.messages.step.personalInfo.countries) {\n const availableCountries: Country[] = [];\n\n // @ts-ignore\n\n for (const countryCode in programTheme.intl.messages.step.personalInfo.countries) {\n availableCountries.push(countryCode as Country);\n }\n return availableCountries;\n }\n } catch (e) {\n logger.warn(\"Unable to get configured countries\");\n }\n return [\"US\"];\n};\n\n/**\n * @description Safely return the states that were chosen/configured in MySheerID for this program.\n */\nexport const getConfiguredStates = (programTheme: ProgramTheme): State[] => {\n try {\n if (\n programTheme &&\n programTheme.config &&\n programTheme.config.states &&\n programTheme.config.states.length > 0\n ) {\n return programTheme.config.states;\n }\n } catch (e) {\n logger.warn(\"Unable to get configured states\");\n }\n return Object.keys(StateEnum) as State[];\n};\n\nconst options = getOptions();\nconst getFaqUrl = (): string => {\n const keyName: keyof Options = \"urlFaq\";\n if (!options.hasOwnProperty(keyName)) {\n logger.error(`Can't find an option for '${keyName}'`, \"Option not found\");\n }\n\n return options[keyName];\n};\n\nexport const getFaqLink = (\n programTheme: ProgramTheme,\n segment: Segment,\n programId: VerificationServiceValues[\"programId\"],\n locale: Locale,\n verificationResponse?: VerificationServiceValues[\"verificationResponse\"],\n): FaqUrl => {\n let faqInTheme: FaqUrl;\n try {\n faqInTheme = programTheme.config.customFaqLink;\n } catch (e) {\n faqInTheme = \"\";\n }\n\n // HC-361: Not including verification ids on collect info steps as those are likely to still be placeholder ids.\n const searchParams =\n verificationResponse && !isCollectStep(verificationResponse.currentStep)\n ? new URLSearchParams({\n verificationId: verificationResponse.verificationId,\n country: verificationResponse.country,\n })\n : undefined;\n const baseFaqUrl = programId\n ? `${getFaqUrl()}/${locale}/${programId}/help-center`\n : `${getFaqUrl()}/${locale}/help-center`;\n const faqUrl = searchParams ? `${baseFaqUrl}?${searchParams}` : baseFaqUrl;\n\n return !faqInTheme || faqInTheme === \"\" ? faqUrl : faqInTheme;\n};\n\nexport const getOrgSearchCountryTags = (programTheme, country: Country): string => {\n let searchTags = \"\";\n try {\n searchTags = programTheme.config?.orgSearchCountryTags?.[country]?.join(\",\") || \"\";\n } catch (e) {\n logger.error(e);\n }\n return searchTags;\n};\n\n// TODO STOP PROP DRILLING use this instead of itemToString being passed so deep\nexport const orgToString = (item: Organization): string => (item ? item.name : \"\");\n\nfunction viewModelWithOrg(candidate): candidate is WithOrganization {\n return Object.prototype.hasOwnProperty.call(candidate, \"organization\");\n}\n\nexport const getOrgSearchAffiliationOverrides = (\n searchParams: URLSearchParams,\n viewModel: ViewModel,\n programTheme: ProgramTheme,\n): URLSearchParams | undefined => {\n try {\n if (isLowIncomeVM(viewModel)) {\n const { statuses } = viewModel;\n const orgSearchAffiliationOverrides =\n programTheme?.config?.orgSearchAffiliationOverrides[statuses[0]];\n Object.keys(orgSearchAffiliationOverrides)\n .sort(alphabetically) // deterministic for unit tests\n .forEach((key) => {\n searchParams.set(key, orgSearchAffiliationOverrides[key]?.join(\",\"));\n });\n return searchParams;\n }\n } catch (e) {\n logger.error(e);\n }\n};\n\n// Get an updated org search URL that considers viewModel values and adjusts QSP accordingly\nexport const getOrgSearchUrl = (\n viewModel: ViewModel,\n programTheme: ProgramTheme,\n): string | undefined => {\n const COUNTRY = \"country\";\n const NAME = \"name\";\n const TAGS = \"tags\";\n\n try {\n const startingOrgSearchUrl = programTheme?.config?.orgSearchUrl;\n const country = getSafe<Country>(() => viewModel?.countryChoice?.value);\n\n if (!startingOrgSearchUrl) {\n logger.error(\"Expected an org search URL\");\n return \"\";\n }\n\n const orgSearchTags = getOrgSearchCountryTags(programTheme, country);\n\n const url = new URL(startingOrgSearchUrl);\n const { origin, pathname, search } = url;\n const searchParams = new URLSearchParams(search);\n\n if (viewModelWithOrg(viewModel)) {\n const name = orgToString(viewModel.organization);\n if (name) {\n searchParams.set(NAME, name);\n }\n }\n if (country) {\n searchParams.set(COUNTRY, country);\n }\n if (orgSearchTags) {\n searchParams.set(TAGS, orgSearchTags);\n }\n\n const paramsWithOverrides =\n getOrgSearchAffiliationOverrides(searchParams, viewModel, programTheme) || searchParams;\n\n paramsWithOverrides.sort(); // deterministic for unit tests\n\n return `${origin}${pathname}?${paramsWithOverrides.toString()}`;\n } catch (e) {\n logger.error(e);\n }\n};\n"],"mappings":";;;AAEA,IAAM,IAA4B,eAC5B,IAAsB,UACtB,IAAsB,WAEf,IAAe;CAC1B,aAAa;CACb,aAAa;CACb,iBAAiB;CACjB,gBAAgB;CAChB,uBAAuB;AACzB,GAII,GAWS,UAA6C;CACxD,IAAI,GACF,OAAO;CAGT,IAAI;EACF,IAAM,IAA0B,IAAI,gBAAgB,OAAO,SAAS,MAAM,GAEpE,IAAmB,EAAO,IAAI,CAAyB;EAC7D,IAAI,GACF,OAAO,mBAAmB,CAAgB;EAG5C,IAAI,EAAO,IAAI,CAAmB,MAAM,GACtC,OAAO,EAAa;CAExB,SAAS,GAAG;EACV,EAAO,MAAM,GAAG,gBAAgB;CAClC;CAEA,OAAO,EAAa;AACtB,GCzCa,UACX,GAAG,EAAW,EAAE,QAAQ,aAAa,EAAW,EAAE,QAAQ,UAAU,gBACzD,KAA4B,MACvC,GAAG,EAAmB,IAAI,KACf,UAAqC,EAAmB,GACxD,KAAsB,GAAuB,IAAiB,SAAS;CAClF,IAAM,IAAU,GAAG,EAAW,EAAE,QAAQ,aACtC,EAAW,EAAE,QAAQ,UAAU,QA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,EAAO,MAAM,4BAA4B,GAClC;EAGT,IAAM,IAAgB,EAAwB,GAAc,CAAO,GAG7D,EAAE,WAAQ,aAAU,cAAW,IADrB,IAAI,CACiB,GAC/B,IAAe,IAAI,gBAAgB,CAAM;EAE/C,IAAI,EAAiB,CAAS,GAAG;GAC/B,IAAM,IAAO,EAAY,EAAU,YAAY;GAC/C,AAAI,KACF,EAAa,IAAI,QAAM,CAAI;EAE/B;EAIA,AAHI,KACF,EAAa,IAAI,WAAS,CAAO,GAE/B,KACF,EAAa,IAAI,QAAM,CAAa;EAGtC,IAAM,IACJ,EAAiC,GAAc,GAAW,CAAY,KAAK;EAI7E,OAFA,EAAoB,KAAK,GAElB,GAAG,IAAS,EAAS,GAAG,EAAoB,SAAS;CAC9D,SAAS,GAAG;EACV,EAAO,MAAM,CAAC;CAChB;AACF"}
|
|
1
|
+
{"version":3,"file":"programThemeGetters-zfJ5vzCG.js","names":[],"sources":["../../../packages/shared/src/utils/getInstallType.ts","../../src/lib/ServerApi/ApiUrls.ts","../../src/components/StepLowIncomePersonalInfo/lowIncomeTypes.ts","../../src/lib/ProgramTheme/programThemeGetters.ts"],"sourcesContent":["import { logger } from \"./logger/logger\";\n\nconst QUERY_STRING_INSTALL_TYPE = \"installType\";\nconst QUERY_STRING_LAYOUT = \"layout\";\nconst QUERY_VALUE_LANDING = \"landing\";\n\nexport const InstallTypes = {\n landingPage: \"landing_page\",\n cdnNoIframe: \"cdn_no_iframe\",\n cdnInlineIframe: \"cdn_inline_iframe\",\n cdnModalIframe: \"cdn_modal_iframe\",\n programBuilderPreview: \"program_builder_preview\",\n} as const;\n\nexport type InstallType = (typeof InstallTypes)[keyof typeof InstallTypes];\n\nlet declaredInstallType: InstallType | undefined;\n\n/**\n * Declare the install context from an install wrapper that mounts the form into\n * the host page, where there is no iframe URL to carry the install type as a\n * query string param.\n */\nexport const setInstallType = (installType: InstallType): void => {\n declaredInstallType = installType;\n};\n\nexport const getInstallType = (): InstallType | string => {\n if (declaredInstallType) {\n return declaredInstallType;\n }\n\n try {\n const parsed: URLSearchParams = new URLSearchParams(window.location.search);\n\n const installTypeParam = parsed.get(QUERY_STRING_INSTALL_TYPE);\n if (installTypeParam) {\n return decodeURIComponent(installTypeParam);\n }\n\n if (parsed.get(QUERY_STRING_LAYOUT) === QUERY_VALUE_LANDING) {\n return InstallTypes.landingPage;\n }\n } catch (e) {\n logger.error(e, \"getInstallType\");\n }\n\n return InstallTypes.cdnNoIframe;\n};\n","import { logger } from \"@jslib/shared/utils/logger\";\n\nimport { QUERY_STRING_INSTALL_PAGE_URL } from \"../../constants\";\nimport { getOptions } from \"../../options/options\";\nimport { type RewardDisplayEnum } from \"../types/runtimeTypes\";\nimport { type DatabaseId, type Locale, type VerificationStep } from \"../types/types\";\n\nexport const getVerificationUrl = () =>\n `${getOptions().restApi.serviceUrl}${getOptions().restApi.resources.verification}`;\nexport const getVerificationStatusUrl = (verificationId: DatabaseId) =>\n `${getVerificationUrl()}${verificationId}`;\nexport const getNewVerificationRequestUrl = () => getVerificationUrl();\nexport const getProgramThemeUrl = (programId: DatabaseId, locale: Locale = null) => {\n const baseUrl = `${getOptions().restApi.serviceUrl}${\n getOptions().restApi.resources.program.base\n }${programId}/${getOptions().restApi.resources.program.theme}`;\n if (locale) {\n return `${baseUrl}?locale=${locale}`;\n }\n return `${baseUrl}`;\n};\n\nexport const getNewSmsCodeResendUrl = (verificationId: DatabaseId) =>\n `${getOptions().restApi.serviceUrl}rest/v2/verification/${verificationId}/step/smsLoop/retry`;\nexport const getNewEmailCodeResendUrl = (verificationId: DatabaseId) =>\n `${getOptions().restApi.serviceUrl}rest/v2/verification/${verificationId}/step/emailLoop/retry`;\n\nexport const getFieldsToCollectUrl = (verificationId: DatabaseId, stepName: VerificationStep) =>\n `${getOptions().restApi.serviceUrl}rest/v2/verification/${verificationId}/${stepName}/fields`;\n\nconst MILITARY_STEPS_USING_UNIFIED_ENDPOINT = new Set<VerificationStep>([\n \"collectMilitaryStatus\",\n \"collectActiveMilitaryPersonalInfo\",\n \"collectInactiveMilitaryPersonalInfo\",\n]);\n\n/**\n * The three legacy military `currentStep` values from the server all submit\n * to a single unified endpoint, `step/collectMilitaryPersonalInfo`. The\n * server still returns its old submissionUrl for backwards compatibility,\n * so we ignore it for these three steps and build the unified URL ourselves.\n */\nexport const getEffectiveSubmissionUrl = (\n step: VerificationStep,\n previousResponse: { submissionUrl?: string },\n verificationId: DatabaseId,\n): string => {\n if (MILITARY_STEPS_USING_UNIFIED_ENDPOINT.has(step)) {\n return `${getOptions().restApi.serviceUrl}rest/v2/verification/${verificationId}/step/collectMilitaryPersonalInfo`;\n }\n return previousResponse.submissionUrl;\n};\n\nexport const getDocTypeForCountriesUrl = (verificationId: DatabaseId, countries: string[]) =>\n `${\n getOptions().restApi.serviceUrl\n }rest/v2/verification/${verificationId}/step/idCheckLoop/getDocumentTypesForCountries?countries=${countries}`;\n\nexport const getBarcodeUrl = (\n verificationId: DatabaseId,\n rewardKey: string,\n symbology: RewardDisplayEnum,\n) =>\n `${\n getOptions().restApi.serviceUrl\n }rest/v2/verification/${verificationId}/barcode?rewardKey=${rewardKey}&symbology=${symbology}`;\n\n/**\n * Get the version that was actually used\n * The build process replaces this with the value.\n * e.g. 1.59.0 or 1.46.0-alpha.575\n */\nexport const getPublishedVersion = (): string => process.env.NEXT_VERSION;\n\nexport const getCurrentUrl = (): string => window.location.href;\n\nexport const getInstallPageUrl = (): string | undefined => {\n try {\n const parsed: URLSearchParams = new URLSearchParams(window.location.search);\n\n if (parsed.get(QUERY_STRING_INSTALL_PAGE_URL)) {\n return decodeURIComponent(parsed.get(QUERY_STRING_INSTALL_PAGE_URL));\n }\n if (getOptions()[QUERY_STRING_INSTALL_PAGE_URL]) {\n return getOptions()[QUERY_STRING_INSTALL_PAGE_URL];\n }\n } catch (e) {\n logger.error(e, \"Install Page URL\");\n }\n\n return getCurrentUrl();\n};\n\nexport { getInstallType, InstallTypes, type InstallType } from \"@jslib/shared/utils/getInstallType\";\n\nexport const getVerificationHelpUrl = (): string =>\n `${getOptions().restApi.serviceUrl}rest/v2/help/verificationHelp`;\n","import { type LowIncomePersonalInfoViewModel } from \"../../lib/types/types\";\n\n/**\n * @todo check that obj doesn't have a property name in addition to any required or optional property names\n * @todo move this somewhere generic outside low income\n *\n * This is only set up to check required property names\n *\n * @returns true if every one of the entries in \"properties\" can be found as a key of \"obj\"\n */\nconst hasFields = (obj: object, properties: string[]) =>\n properties.every((p) => Object.prototype.hasOwnProperty.call(obj, p));\n\n/**\n * @todo check no additional/rogue properties exist\n *\n * @param candidate An object to check\n * @returns boolean - true if candidate is of type LowIncomePersonalInfoViewModel\n */\nexport function isLowIncomeVM(candidate: object): candidate is LowIncomePersonalInfoViewModel {\n return hasFields(candidate, [\n \"statuses\",\n \"birthDate\",\n \"postalCode\",\n \"firstName\",\n \"lastName\",\n \"countryChoice\",\n \"localeChoice\",\n \"email\",\n ]);\n}\n","import { logger } from \"@jslib/shared/utils/logger\";\nimport { getSafe } from \"@jslib/shared/utils/getSafe\";\n\nimport {\n type Country,\n type FaqUrl,\n type Locale,\n type MarketConsentOptions,\n type MetadataConfig,\n type Options,\n type Organization,\n type ProgramTheme,\n type ProgramThemeMessages,\n type Segment,\n type State,\n type VerificationServiceValues,\n type ViewModel,\n type WithOrganization,\n} from \"../types/types\";\nimport { getOptions } from \"../../options/options\";\nimport { deepClone } from \"../utils/objects\";\nimport { alphabetically, arrayUnique } from \"../utils/arrays\";\nimport { StateEnum, isCollectStep } from \"../types/runtimeTypes\";\nimport { isLowIncomeVM } from \"../../components/StepLowIncomePersonalInfo/lowIncomeTypes\";\n\nexport const getCompanyName = (programTheme: ProgramTheme): string => {\n let companyName = \"{Company}\"; // Show literal string \"{Company}\" so implementor is prompted to fix by adding in my.sheerid.com\n try {\n companyName = programTheme.intl.messages.companyName;\n if (!(typeof companyName === \"string\" && companyName.length > 0)) {\n throw new Error(\"Invalid companyName\");\n }\n } catch (e) {\n // Property access or invalid company name error\n logger.warn(\"companyName not found. Please sign in to my.sheerid.com to set.\");\n }\n\n return companyName;\n};\n\nconst defaultMarketConsent: MarketConsentOptions = {\n enabled: false,\n required: false,\n message: \"\",\n};\n\nconst defaultMetadata: MetadataConfig = Object.freeze({\n enabled: false,\n keys: [],\n requiredKeys: [],\n});\n\nexport const getMetadataConfig = (programTheme: ProgramTheme): MetadataConfig => {\n let customMetadata: MetadataConfig = deepClone(defaultMetadata);\n\n try {\n if (getSafe<boolean>(() => programTheme.config.customMetadata.enabled)) {\n customMetadata = { ...customMetadata, ...programTheme.config.customMetadata };\n }\n } catch (e) {\n logger.warn(\"No custom metadata provided by the server.\");\n }\n if (getOptions().customMetadata) {\n customMetadata = { ...customMetadata, ...getOptions().customMetadata };\n }\n\n return customMetadata;\n};\n\nexport const getMarketConsent = (programTheme: ProgramTheme): MarketConsentOptions => {\n let marketConsent: MarketConsentOptions = { ...defaultMarketConsent };\n try {\n if (programTheme.config.marketConsent) {\n marketConsent = programTheme.config.marketConsent;\n }\n } catch (e) {\n // market consent is not coming for this program from server. Default will be used\n logger.warn(\"Server did not provided a market consent config. Default will be used\");\n }\n if (getOptions().marketConsent) {\n marketConsent = getOptions().marketConsent;\n }\n return marketConsent;\n};\n\nexport const isCaptchaEnabled = (programTheme: ProgramTheme): boolean => {\n return !!programTheme?.captchaEnabled;\n};\n\nexport const getThemeMessages = (programTheme: ProgramTheme): ProgramThemeMessages => {\n let themeMessages: ProgramThemeMessages;\n try {\n themeMessages = programTheme.intl.messages;\n\n // This section is used as a stopgap to migrate theme messages that use single braces, of `react-intl`,\n // over to the double brace format expected by `i18next`.\n // TODO: Remove each section after all messages bundles in production have been migrated.\n if (themeMessages.step?.personalInfo?.howDoesVerifyingWorkDetails) {\n themeMessages.step.personalInfo.howDoesVerifyingWorkDetails =\n themeMessages.step.personalInfo.howDoesVerifyingWorkDetails.replace(\n /(?<!\\{)\\{companyName\\}(?!\\})/g,\n \"{{companyName}}\",\n );\n }\n\n if (themeMessages.step?.pending?.subtitle) {\n themeMessages.step.pending.subtitle = themeMessages.step.pending.subtitle.replace(\n /(?<!\\{)\\{maxReviewTime\\}(?!\\})/g,\n \"{{maxReviewTime}}\",\n );\n }\n\n if (themeMessages.step?.pending?.turnaroundTime) {\n themeMessages.step.pending.turnaroundTime = themeMessages.step.pending.turnaroundTime.replace(\n \"{estReviewTime}\",\n \"{{estimatedReviewTime}}\",\n );\n themeMessages.step.pending.turnaroundTime = themeMessages.step.pending.turnaroundTime.replace(\n /(?<!\\{)\\{maxReviewTime\\}(?!\\})/g,\n \"{{maxReviewTime}}\",\n );\n }\n\n if (themeMessages.step?.docUpload?.reviewTime) {\n themeMessages.step.docUpload.reviewTime = themeMessages.step.docUpload.reviewTime.replace(\n /(?<!\\{)\\{estimatedWaitTime\\}(?!\\})/g,\n \"{{estimatedReviewTime}}\",\n );\n }\n } catch (e) {\n logger.error(\"Unable to get theme messages\");\n }\n return themeMessages;\n};\n\nexport const getLogoUrl = (programTheme: ProgramTheme): ProgramTheme[\"themeChoices\"][\"logoUrl\"] => {\n const options = getOptions();\n\n return options.hasOwnProperty(\"logoUrl\") ? options.logoUrl : programTheme?.themeChoices?.logoUrl;\n};\n\nexport const getPrivacyPolicyUrl = (\n programTheme: ProgramTheme,\n): ProgramTheme[\"privacyPolicyUrl\"] => {\n const options = getOptions();\n\n return options.privacyPolicyUrl || programTheme?.privacyPolicyUrl;\n};\n\n/**\n * @description Return locales configured in MySheerID for this program, or specified in Javascript options.\n */\nexport const getAvailableLocales = (programTheme: ProgramTheme): Locale[] => {\n let configuredLocales: Locale[] = [\"en-US\"];\n let themeLocales: Locale[] = [];\n try {\n themeLocales = programTheme.config.locales;\n } catch (e) {\n logger.warn(\"Unable to get configured locales from programTheme\");\n }\n const optionsLocales: Locale[] = getLocalesFromOptions(getOptions());\n configuredLocales = [...themeLocales, ...optionsLocales];\n\n return arrayUnique(configuredLocales);\n};\n\n/**\n * @private\n */\nexport const getLocalesFromOptions = (options: Options): Locale[] => {\n if (options && options.messagesWithLocale) {\n return Object.keys(options.messagesWithLocale) as Locale[];\n }\n return [];\n};\n\n/**\n * @description Safely return the countries that were chosen/configured in MySheerID for this program.\n * Otherwise, return US as default.\n */\nexport const getConfiguredCountries = (programTheme: ProgramTheme): Country[] => {\n try {\n if (programTheme && programTheme.config && programTheme.config.countries) {\n return programTheme.config.countries;\n }\n\n // Old location for this property, may be returned from the server\n // @ts-ignore\n if (programTheme.intl.messages.step.personalInfo.countries) {\n const availableCountries: Country[] = [];\n\n // @ts-ignore\n\n for (const countryCode in programTheme.intl.messages.step.personalInfo.countries) {\n availableCountries.push(countryCode as Country);\n }\n return availableCountries;\n }\n } catch (e) {\n logger.warn(\"Unable to get configured countries\");\n }\n return [\"US\"];\n};\n\n/**\n * @description Safely return the states that were chosen/configured in MySheerID for this program.\n */\nexport const getConfiguredStates = (programTheme: ProgramTheme): State[] => {\n try {\n if (\n programTheme &&\n programTheme.config &&\n programTheme.config.states &&\n programTheme.config.states.length > 0\n ) {\n return programTheme.config.states;\n }\n } catch (e) {\n logger.warn(\"Unable to get configured states\");\n }\n return Object.keys(StateEnum) as State[];\n};\n\nconst options = getOptions();\nconst getFaqUrl = (): string => {\n const keyName: keyof Options = \"urlFaq\";\n if (!options.hasOwnProperty(keyName)) {\n logger.error(`Can't find an option for '${keyName}'`, \"Option not found\");\n }\n\n return options[keyName];\n};\n\nexport const getFaqLink = (\n programTheme: ProgramTheme,\n segment: Segment,\n programId: VerificationServiceValues[\"programId\"],\n locale: Locale,\n verificationResponse?: VerificationServiceValues[\"verificationResponse\"],\n): FaqUrl => {\n let faqInTheme: FaqUrl;\n try {\n faqInTheme = programTheme.config.customFaqLink;\n } catch (e) {\n faqInTheme = \"\";\n }\n\n // HC-361: Not including verification ids on collect info steps as those are likely to still be placeholder ids.\n const searchParams =\n verificationResponse && !isCollectStep(verificationResponse.currentStep)\n ? new URLSearchParams({\n verificationId: verificationResponse.verificationId,\n country: verificationResponse.country,\n })\n : undefined;\n const baseFaqUrl = programId\n ? `${getFaqUrl()}/${locale}/${programId}/help-center`\n : `${getFaqUrl()}/${locale}/help-center`;\n const faqUrl = searchParams ? `${baseFaqUrl}?${searchParams}` : baseFaqUrl;\n\n return !faqInTheme || faqInTheme === \"\" ? faqUrl : faqInTheme;\n};\n\nexport const getOrgSearchCountryTags = (programTheme, country: Country): string => {\n let searchTags = \"\";\n try {\n searchTags = programTheme.config?.orgSearchCountryTags?.[country]?.join(\",\") || \"\";\n } catch (e) {\n logger.error(e);\n }\n return searchTags;\n};\n\n// TODO STOP PROP DRILLING use this instead of itemToString being passed so deep\nexport const orgToString = (item: Organization): string => (item ? item.name : \"\");\n\nfunction viewModelWithOrg(candidate): candidate is WithOrganization {\n return Object.prototype.hasOwnProperty.call(candidate, \"organization\");\n}\n\nexport const getOrgSearchAffiliationOverrides = (\n searchParams: URLSearchParams,\n viewModel: ViewModel,\n programTheme: ProgramTheme,\n): URLSearchParams | undefined => {\n try {\n if (isLowIncomeVM(viewModel)) {\n const { statuses } = viewModel;\n const orgSearchAffiliationOverrides =\n programTheme?.config?.orgSearchAffiliationOverrides[statuses[0]];\n Object.keys(orgSearchAffiliationOverrides)\n .sort(alphabetically) // deterministic for unit tests\n .forEach((key) => {\n searchParams.set(key, orgSearchAffiliationOverrides[key]?.join(\",\"));\n });\n return searchParams;\n }\n } catch (e) {\n logger.error(e);\n }\n};\n\n// Get an updated org search URL that considers viewModel values and adjusts QSP accordingly\nexport const getOrgSearchUrl = (\n viewModel: ViewModel,\n programTheme: ProgramTheme,\n): string | undefined => {\n const COUNTRY = \"country\";\n const NAME = \"name\";\n const TAGS = \"tags\";\n\n try {\n const startingOrgSearchUrl = programTheme?.config?.orgSearchUrl;\n const country = getSafe<Country>(() => viewModel?.countryChoice?.value);\n\n if (!startingOrgSearchUrl) {\n logger.error(\"Expected an org search URL\");\n return \"\";\n }\n\n const orgSearchTags = getOrgSearchCountryTags(programTheme, country);\n\n const url = new URL(startingOrgSearchUrl);\n const { origin, pathname, search } = url;\n const searchParams = new URLSearchParams(search);\n\n if (viewModelWithOrg(viewModel)) {\n const name = orgToString(viewModel.organization);\n if (name) {\n searchParams.set(NAME, name);\n }\n }\n if (country) {\n searchParams.set(COUNTRY, country);\n }\n if (orgSearchTags) {\n searchParams.set(TAGS, orgSearchTags);\n }\n\n const paramsWithOverrides =\n getOrgSearchAffiliationOverrides(searchParams, viewModel, programTheme) || searchParams;\n\n paramsWithOverrides.sort(); // deterministic for unit tests\n\n return `${origin}${pathname}?${paramsWithOverrides.toString()}`;\n } catch (e) {\n logger.error(e);\n }\n};\n"],"mappings":";;;AAEA,IAAM,IAA4B,eAC5B,IAAsB,UACtB,IAAsB,WAEf,IAAe;CAC1B,aAAa;CACb,aAAa;CACb,iBAAiB;CACjB,gBAAgB;CAChB,uBAAuB;AACzB,GAII,GAWS,UAA6C;CACxD,IAAI,GACF,OAAO;CAGT,IAAI;EACF,IAAM,IAA0B,IAAI,gBAAgB,OAAO,SAAS,MAAM,GAEpE,IAAmB,EAAO,IAAI,CAAyB;EAC7D,IAAI,GACF,OAAO,mBAAmB,CAAgB;EAG5C,IAAI,EAAO,IAAI,CAAmB,MAAM,GACtC,OAAO,EAAa;CAExB,SAAS,GAAG;EACV,EAAO,MAAM,GAAG,gBAAgB;CAClC;CAEA,OAAO,EAAa;AACtB,GCzCa,UACX,GAAG,EAAW,EAAE,QAAQ,aAAa,EAAW,EAAE,QAAQ,UAAU,gBACzD,KAA4B,MACvC,GAAG,EAAmB,IAAI,KACf,UAAqC,EAAmB,GACxD,KAAsB,GAAuB,IAAiB,SAAS;CAClF,IAAM,IAAU,GAAG,EAAW,EAAE,QAAQ,aACtC,EAAW,EAAE,QAAQ,UAAU,QAAQ,OACtC,EAAU,GAAG,EAAW,EAAE,QAAQ,UAAU,QAAQ;CAIvD,OAHI,IACK,GAAG,EAAQ,UAAU,MAEvB,GAAG;AACZ,GAEa,KAA0B,MACrC,GAAG,EAAW,EAAE,QAAQ,WAAW,uBAAuB,EAAe,sBA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G;GAC/B,IAAM,IAAO,EAAY,EAAU,YAAY;GAC/C,AAAI,KACF,EAAa,IAAI,QAAM,CAAI;EAE/B;EAIA,AAHI,KACF,EAAa,IAAI,WAAS,CAAO,GAE/B,KACF,EAAa,IAAI,QAAM,CAAa;EAGtC,IAAM,IACJ,EAAiC,GAAc,GAAW,CAAY,KAAK;EAI7E,OAFA,EAAoB,KAAK,GAElB,GAAG,IAAS,EAAS,GAAG,EAAoB,SAAS;CAC9D,SAAS,GAAG;EACV,EAAO,MAAM,CAAC;CAChB;AACF"}
|
package/chunk/pt-BR-C8SYMT-J.js
CHANGED
|
@@ -4,10 +4,10 @@
|
|
|
4
4
|
* This file is not intended for use in other contexts and there are no guarantees about its behavior outside of MySheerID.
|
|
5
5
|
*/
|
|
6
6
|
/**
|
|
7
|
-
* VERSION: 2.
|
|
8
|
-
* BUILD_TIMESTAMP:
|
|
9
|
-
* BUILD_DATE: Thu Sep 24 2026
|
|
10
|
-
* BUILD_COMMIT:
|
|
7
|
+
* VERSION: 2.297.0
|
|
8
|
+
* BUILD_TIMESTAMP: 1790284268645
|
|
9
|
+
* BUILD_DATE: Thu Sep 24 2026 21:11:08 GMT+0000 (Coordinated Universal Time)
|
|
10
|
+
* BUILD_COMMIT: 9315c638699c60e5622b9f878abfccad2a009219
|
|
11
11
|
*/
|
|
12
12
|
//#region src/lib/intl/localized-messages/pt-BR.json
|
|
13
13
|
var e = {
|
package/chunk/pt-uH-M3GdN.js
CHANGED
|
@@ -4,10 +4,10 @@
|
|
|
4
4
|
* This file is not intended for use in other contexts and there are no guarantees about its behavior outside of MySheerID.
|
|
5
5
|
*/
|
|
6
6
|
/**
|
|
7
|
-
* VERSION: 2.
|
|
8
|
-
* BUILD_TIMESTAMP:
|
|
9
|
-
* BUILD_DATE: Thu Sep 24 2026
|
|
10
|
-
* BUILD_COMMIT:
|
|
7
|
+
* VERSION: 2.297.0
|
|
8
|
+
* BUILD_TIMESTAMP: 1790284268645
|
|
9
|
+
* BUILD_DATE: Thu Sep 24 2026 21:11:08 GMT+0000 (Coordinated Universal Time)
|
|
10
|
+
* BUILD_COMMIT: 9315c638699c60e5622b9f878abfccad2a009219
|
|
11
11
|
*/
|
|
12
12
|
//#region src/lib/intl/localized-messages/pt.json
|
|
13
13
|
var e = {
|
package/chunk/refs-Mq0rtW9K.js
CHANGED
|
@@ -4,10 +4,10 @@
|
|
|
4
4
|
* This file is not intended for use in other contexts and there are no guarantees about its behavior outside of MySheerID.
|
|
5
5
|
*/
|
|
6
6
|
/**
|
|
7
|
-
* VERSION: 2.
|
|
8
|
-
* BUILD_TIMESTAMP:
|
|
9
|
-
* BUILD_DATE: Thu Sep 24 2026
|
|
10
|
-
* BUILD_COMMIT:
|
|
7
|
+
* VERSION: 2.297.0
|
|
8
|
+
* BUILD_TIMESTAMP: 1790284268645
|
|
9
|
+
* BUILD_DATE: Thu Sep 24 2026 21:11:08 GMT+0000 (Coordinated Universal Time)
|
|
10
|
+
* BUILD_COMMIT: 9315c638699c60e5622b9f878abfccad2a009219
|
|
11
11
|
*/
|
|
12
12
|
import { S as e } from "./runtimeTypes-B2AGNJMT.js";
|
|
13
13
|
//#region src/lib/refs/refs.ts
|
package/chunk/ro-CAOSXZ7h.js
CHANGED
|
@@ -4,10 +4,10 @@
|
|
|
4
4
|
* This file is not intended for use in other contexts and there are no guarantees about its behavior outside of MySheerID.
|
|
5
5
|
*/
|
|
6
6
|
/**
|
|
7
|
-
* VERSION: 2.
|
|
8
|
-
* BUILD_TIMESTAMP:
|
|
9
|
-
* BUILD_DATE: Thu Sep 24 2026
|
|
10
|
-
* BUILD_COMMIT:
|
|
7
|
+
* VERSION: 2.297.0
|
|
8
|
+
* BUILD_TIMESTAMP: 1790284268645
|
|
9
|
+
* BUILD_DATE: Thu Sep 24 2026 21:11:08 GMT+0000 (Coordinated Universal Time)
|
|
10
|
+
* BUILD_COMMIT: 9315c638699c60e5622b9f878abfccad2a009219
|
|
11
11
|
*/
|
|
12
12
|
//#region src/lib/intl/localized-messages/ro.json
|
|
13
13
|
var e = {
|
package/chunk/ru-iwYoEydL.js
CHANGED
|
@@ -4,10 +4,10 @@
|
|
|
4
4
|
* This file is not intended for use in other contexts and there are no guarantees about its behavior outside of MySheerID.
|
|
5
5
|
*/
|
|
6
6
|
/**
|
|
7
|
-
* VERSION: 2.
|
|
8
|
-
* BUILD_TIMESTAMP:
|
|
9
|
-
* BUILD_DATE: Thu Sep 24 2026
|
|
10
|
-
* BUILD_COMMIT:
|
|
7
|
+
* VERSION: 2.297.0
|
|
8
|
+
* BUILD_TIMESTAMP: 1790284268645
|
|
9
|
+
* BUILD_DATE: Thu Sep 24 2026 21:11:08 GMT+0000 (Coordinated Universal Time)
|
|
10
|
+
* BUILD_COMMIT: 9315c638699c60e5622b9f878abfccad2a009219
|
|
11
11
|
*/
|
|
12
12
|
//#region src/lib/intl/localized-messages/ru.json
|
|
13
13
|
var e = {
|
|
@@ -4,10 +4,10 @@
|
|
|
4
4
|
* This file is not intended for use in other contexts and there are no guarantees about its behavior outside of MySheerID.
|
|
5
5
|
*/
|
|
6
6
|
/**
|
|
7
|
-
* VERSION: 2.
|
|
8
|
-
* BUILD_TIMESTAMP:
|
|
9
|
-
* BUILD_DATE: Thu Sep 24 2026
|
|
10
|
-
* BUILD_COMMIT:
|
|
7
|
+
* VERSION: 2.297.0
|
|
8
|
+
* BUILD_TIMESTAMP: 1790284268645
|
|
9
|
+
* BUILD_DATE: Thu Sep 24 2026 21:11:08 GMT+0000 (Coordinated Universal Time)
|
|
10
|
+
* BUILD_COMMIT: 9315c638699c60e5622b9f878abfccad2a009219
|
|
11
11
|
*/
|
|
12
12
|
//#region ../packages/shared/src/utils/gaHelpers.ts
|
|
13
13
|
var e = {}, t = (t) => Object.entries(t).forEach(([t, n]) => {
|
package/chunk/sk-DYYNV3zw.js
CHANGED
|
@@ -4,10 +4,10 @@
|
|
|
4
4
|
* This file is not intended for use in other contexts and there are no guarantees about its behavior outside of MySheerID.
|
|
5
5
|
*/
|
|
6
6
|
/**
|
|
7
|
-
* VERSION: 2.
|
|
8
|
-
* BUILD_TIMESTAMP:
|
|
9
|
-
* BUILD_DATE: Thu Sep 24 2026
|
|
10
|
-
* BUILD_COMMIT:
|
|
7
|
+
* VERSION: 2.297.0
|
|
8
|
+
* BUILD_TIMESTAMP: 1790284268645
|
|
9
|
+
* BUILD_DATE: Thu Sep 24 2026 21:11:08 GMT+0000 (Coordinated Universal Time)
|
|
10
|
+
* BUILD_COMMIT: 9315c638699c60e5622b9f878abfccad2a009219
|
|
11
11
|
*/
|
|
12
12
|
//#region src/lib/intl/localized-messages/sk.json
|
|
13
13
|
var e = {
|
package/chunk/sl-D_-eeM5N.js
CHANGED
|
@@ -4,10 +4,10 @@
|
|
|
4
4
|
* This file is not intended for use in other contexts and there are no guarantees about its behavior outside of MySheerID.
|
|
5
5
|
*/
|
|
6
6
|
/**
|
|
7
|
-
* VERSION: 2.
|
|
8
|
-
* BUILD_TIMESTAMP:
|
|
9
|
-
* BUILD_DATE: Thu Sep 24 2026
|
|
10
|
-
* BUILD_COMMIT:
|
|
7
|
+
* VERSION: 2.297.0
|
|
8
|
+
* BUILD_TIMESTAMP: 1790284268645
|
|
9
|
+
* BUILD_DATE: Thu Sep 24 2026 21:11:08 GMT+0000 (Coordinated Universal Time)
|
|
10
|
+
* BUILD_COMMIT: 9315c638699c60e5622b9f878abfccad2a009219
|
|
11
11
|
*/
|
|
12
12
|
//#region src/lib/intl/localized-messages/sl.json
|
|
13
13
|
var e = {
|
package/chunk/sr-BTi9_anL.js
CHANGED
|
@@ -4,10 +4,10 @@
|
|
|
4
4
|
* This file is not intended for use in other contexts and there are no guarantees about its behavior outside of MySheerID.
|
|
5
5
|
*/
|
|
6
6
|
/**
|
|
7
|
-
* VERSION: 2.
|
|
8
|
-
* BUILD_TIMESTAMP:
|
|
9
|
-
* BUILD_DATE: Thu Sep 24 2026
|
|
10
|
-
* BUILD_COMMIT:
|
|
7
|
+
* VERSION: 2.297.0
|
|
8
|
+
* BUILD_TIMESTAMP: 1790284268645
|
|
9
|
+
* BUILD_DATE: Thu Sep 24 2026 21:11:08 GMT+0000 (Coordinated Universal Time)
|
|
10
|
+
* BUILD_COMMIT: 9315c638699c60e5622b9f878abfccad2a009219
|
|
11
11
|
*/
|
|
12
12
|
//#region src/lib/intl/localized-messages/sr.json
|
|
13
13
|
var e = {
|
|
@@ -4,10 +4,10 @@
|
|
|
4
4
|
* This file is not intended for use in other contexts and there are no guarantees about its behavior outside of MySheerID.
|
|
5
5
|
*/
|
|
6
6
|
/**
|
|
7
|
-
* VERSION: 2.
|
|
8
|
-
* BUILD_TIMESTAMP:
|
|
9
|
-
* BUILD_DATE: Thu Sep 24 2026
|
|
10
|
-
* BUILD_COMMIT:
|
|
7
|
+
* VERSION: 2.297.0
|
|
8
|
+
* BUILD_TIMESTAMP: 1790284268645
|
|
9
|
+
* BUILD_DATE: Thu Sep 24 2026 21:11:08 GMT+0000 (Coordinated Universal Time)
|
|
10
|
+
* BUILD_COMMIT: 9315c638699c60e5622b9f878abfccad2a009219
|
|
11
11
|
*/
|
|
12
12
|
import { V as e, ct as t, g as n, p as r, s as i, x as a } from "./intl-DYOqmiaL.js";
|
|
13
13
|
import { S as o } from "./runtimeTypes-B2AGNJMT.js";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
|
|
2
2
|
/**
|
|
3
|
-
* VERSION: 2.
|
|
4
|
-
* BUILD_TIMESTAMP:
|
|
5
|
-
* BUILD_DATE: Thu Sep 24 2026
|
|
6
|
-
* BUILD_COMMIT:
|
|
3
|
+
* VERSION: 2.297.0
|
|
4
|
+
* BUILD_TIMESTAMP: 1790284263507
|
|
5
|
+
* BUILD_DATE: Thu Sep 24 2026 21:11:03 GMT+0000 (Coordinated Universal Time)
|
|
6
|
+
* BUILD_COMMIT: 9315c638699c60e5622b9f878abfccad2a009219
|
|
7
7
|
*/
|
|
8
8
|
import { c as e, d as t, g as n, n as r, ot as i, z as a } from "./options-DsRV5fwh.js";
|
|
9
9
|
import { S as o } from "./runtimeTypes-B2AGNJMT.js";
|
|
@@ -4,10 +4,10 @@
|
|
|
4
4
|
* This file is not intended for use in other contexts and there are no guarantees about its behavior outside of MySheerID.
|
|
5
5
|
*/
|
|
6
6
|
/**
|
|
7
|
-
* VERSION: 2.
|
|
8
|
-
* BUILD_TIMESTAMP:
|
|
9
|
-
* BUILD_DATE: Thu Sep 24 2026
|
|
10
|
-
* BUILD_COMMIT:
|
|
7
|
+
* VERSION: 2.297.0
|
|
8
|
+
* BUILD_TIMESTAMP: 1790284268645
|
|
9
|
+
* BUILD_DATE: Thu Sep 24 2026 21:11:08 GMT+0000 (Coordinated Universal Time)
|
|
10
|
+
* BUILD_COMMIT: 9315c638699c60e5622b9f878abfccad2a009219
|
|
11
11
|
*/
|
|
12
12
|
//#region src/lib/utils/strings.ts
|
|
13
13
|
var e = (e) => e.replace(/[A-Z]/g, (e) => `-${e.toLowerCase()}`);
|
package/chunk/sv-DRwY4shG.js
CHANGED
|
@@ -4,10 +4,10 @@
|
|
|
4
4
|
* This file is not intended for use in other contexts and there are no guarantees about its behavior outside of MySheerID.
|
|
5
5
|
*/
|
|
6
6
|
/**
|
|
7
|
-
* VERSION: 2.
|
|
8
|
-
* BUILD_TIMESTAMP:
|
|
9
|
-
* BUILD_DATE: Thu Sep 24 2026
|
|
10
|
-
* BUILD_COMMIT:
|
|
7
|
+
* VERSION: 2.297.0
|
|
8
|
+
* BUILD_TIMESTAMP: 1790284268645
|
|
9
|
+
* BUILD_DATE: Thu Sep 24 2026 21:11:08 GMT+0000 (Coordinated Universal Time)
|
|
10
|
+
* BUILD_COMMIT: 9315c638699c60e5622b9f878abfccad2a009219
|
|
11
11
|
*/
|
|
12
12
|
//#region src/lib/intl/localized-messages/sv.json
|
|
13
13
|
var e = {
|
package/chunk/sw-Bvj2mYmM.js
CHANGED
|
@@ -4,10 +4,10 @@
|
|
|
4
4
|
* This file is not intended for use in other contexts and there are no guarantees about its behavior outside of MySheerID.
|
|
5
5
|
*/
|
|
6
6
|
/**
|
|
7
|
-
* VERSION: 2.
|
|
8
|
-
* BUILD_TIMESTAMP:
|
|
9
|
-
* BUILD_DATE: Thu Sep 24 2026
|
|
10
|
-
* BUILD_COMMIT:
|
|
7
|
+
* VERSION: 2.297.0
|
|
8
|
+
* BUILD_TIMESTAMP: 1790284268645
|
|
9
|
+
* BUILD_DATE: Thu Sep 24 2026 21:11:08 GMT+0000 (Coordinated Universal Time)
|
|
10
|
+
* BUILD_COMMIT: 9315c638699c60e5622b9f878abfccad2a009219
|
|
11
11
|
*/
|
|
12
12
|
//#region src/lib/intl/localized-messages/sw.json
|
|
13
13
|
var e = {
|
package/chunk/ta-CmtaYoNe.js
CHANGED
|
@@ -4,10 +4,10 @@
|
|
|
4
4
|
* This file is not intended for use in other contexts and there are no guarantees about its behavior outside of MySheerID.
|
|
5
5
|
*/
|
|
6
6
|
/**
|
|
7
|
-
* VERSION: 2.
|
|
8
|
-
* BUILD_TIMESTAMP:
|
|
9
|
-
* BUILD_DATE: Thu Sep 24 2026
|
|
10
|
-
* BUILD_COMMIT:
|
|
7
|
+
* VERSION: 2.297.0
|
|
8
|
+
* BUILD_TIMESTAMP: 1790284268645
|
|
9
|
+
* BUILD_DATE: Thu Sep 24 2026 21:11:08 GMT+0000 (Coordinated Universal Time)
|
|
10
|
+
* BUILD_COMMIT: 9315c638699c60e5622b9f878abfccad2a009219
|
|
11
11
|
*/
|
|
12
12
|
//#region src/lib/intl/localized-messages/ta.json
|
|
13
13
|
var e = {
|
package/chunk/th-12r2yKkJ.js
CHANGED
|
@@ -4,10 +4,10 @@
|
|
|
4
4
|
* This file is not intended for use in other contexts and there are no guarantees about its behavior outside of MySheerID.
|
|
5
5
|
*/
|
|
6
6
|
/**
|
|
7
|
-
* VERSION: 2.
|
|
8
|
-
* BUILD_TIMESTAMP:
|
|
9
|
-
* BUILD_DATE: Thu Sep 24 2026
|
|
10
|
-
* BUILD_COMMIT:
|
|
7
|
+
* VERSION: 2.297.0
|
|
8
|
+
* BUILD_TIMESTAMP: 1790284268645
|
|
9
|
+
* BUILD_DATE: Thu Sep 24 2026 21:11:08 GMT+0000 (Coordinated Universal Time)
|
|
10
|
+
* BUILD_COMMIT: 9315c638699c60e5622b9f878abfccad2a009219
|
|
11
11
|
*/
|
|
12
12
|
//#region src/lib/intl/localized-messages/th.json
|
|
13
13
|
var e = {
|
package/chunk/tl-BGNfO7md.js
CHANGED
|
@@ -4,10 +4,10 @@
|
|
|
4
4
|
* This file is not intended for use in other contexts and there are no guarantees about its behavior outside of MySheerID.
|
|
5
5
|
*/
|
|
6
6
|
/**
|
|
7
|
-
* VERSION: 2.
|
|
8
|
-
* BUILD_TIMESTAMP:
|
|
9
|
-
* BUILD_DATE: Thu Sep 24 2026
|
|
10
|
-
* BUILD_COMMIT:
|
|
7
|
+
* VERSION: 2.297.0
|
|
8
|
+
* BUILD_TIMESTAMP: 1790284268645
|
|
9
|
+
* BUILD_DATE: Thu Sep 24 2026 21:11:08 GMT+0000 (Coordinated Universal Time)
|
|
10
|
+
* BUILD_COMMIT: 9315c638699c60e5622b9f878abfccad2a009219
|
|
11
11
|
*/
|
|
12
12
|
//#region src/lib/intl/localized-messages/tl.json
|
|
13
13
|
var e = {
|
package/chunk/tr-DH2ZSJhs.js
CHANGED
|
@@ -4,10 +4,10 @@
|
|
|
4
4
|
* This file is not intended for use in other contexts and there are no guarantees about its behavior outside of MySheerID.
|
|
5
5
|
*/
|
|
6
6
|
/**
|
|
7
|
-
* VERSION: 2.
|
|
8
|
-
* BUILD_TIMESTAMP:
|
|
9
|
-
* BUILD_DATE: Thu Sep 24 2026
|
|
10
|
-
* BUILD_COMMIT:
|
|
7
|
+
* VERSION: 2.297.0
|
|
8
|
+
* BUILD_TIMESTAMP: 1790284268645
|
|
9
|
+
* BUILD_DATE: Thu Sep 24 2026 21:11:08 GMT+0000 (Coordinated Universal Time)
|
|
10
|
+
* BUILD_COMMIT: 9315c638699c60e5622b9f878abfccad2a009219
|
|
11
11
|
*/
|
|
12
12
|
//#region src/lib/intl/localized-messages/tr.json
|
|
13
13
|
var e = {
|