@sheerid/jslib-nightly 2.115.0-alpha.0 → 2.115.0-alpha.10
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 +506 -514
- package/_mysheerid-preview.js.map +1 -1
- package/chunk/EmailLoopPending-Dtf0p85F.js +4 -4
- package/chunk/EmailLoopPending-Dy8mLFvV.js +4 -4
- package/chunk/LicensedProfessionalOrganizationComponent-BYijEfDT.js +4 -4
- package/chunk/LicensedProfessionalOrganizationComponent-CiYU-2dW.js +4 -4
- package/chunk/Onfido-AyvUk6wg.js +4 -4
- package/chunk/StepIDCheckLoopOnfido-CmNwFqjD.js +4 -4
- package/chunk/StepIDCheckLoopOnfido-DtbplNxs.js +4 -4
- package/chunk/StepIDCheckLoopRegula-RoX971sR.js +4 -4
- package/chunk/StepIDCheckLoopRegula-oqf-QxHT.js +4 -4
- package/chunk/StepInactiveMilitaryPersonalInfoComponent-CTCfr5Y8.js +4 -4
- package/chunk/StepInactiveMilitaryPersonalInfoComponent-D4veFRlW.js +4 -4
- package/chunk/ar--TDb5qE5.js +4 -4
- package/chunk/bg-D3cL-ciP.js +4 -4
- package/chunk/bn-IN-CwiPRX5T.js +4 -4
- package/chunk/cs-7pQwm9YC.js +4 -4
- package/chunk/da-C2xASa_G.js +4 -4
- package/chunk/de-D4nlAbMa.js +4 -4
- package/chunk/el-C-PZe5CV.js +4 -4
- package/chunk/{en-GB-BXuhuoX6.js → en-GB-DXa6bdA_.js} +5 -5
- package/{lib/en-GB-BXuhuoX6.js.map → chunk/en-GB-DXa6bdA_.js.map} +1 -1
- package/chunk/es-BlLBNTpz.js +4 -4
- package/chunk/es-ES-inNoG-F1.js +4 -4
- package/chunk/fi-CcolQnAY.js +4 -4
- package/chunk/fr-BjHvlhn5.js +4 -4
- package/chunk/fr-CA-DD4NnfK-.js +4 -4
- package/chunk/ga-D-rK3PZy.js +4 -4
- package/chunk/hi-IN-B1NQdkcj.js +4 -4
- package/chunk/hr-CwvyeMFM.js +4 -4
- package/chunk/hu-BCZWPgvf.js +4 -4
- package/chunk/id-CRNXXELT.js +4 -4
- package/chunk/index-4APUDd8S.js +4 -4
- package/chunk/index-9OD0Bw98.js +4 -4
- package/chunk/index-B-PpnUEO.js +4 -4
- package/chunk/index-B8F8N-JM.js +4 -4
- package/chunk/index-B8KPM--K.js +4 -4
- package/chunk/index-BD2bjH-C.js +4 -4
- package/chunk/index-BD_a0MZT.js +4 -4
- package/chunk/index-BDrKYann.js +4 -4
- package/chunk/index-BORxVuto.js +4 -4
- package/chunk/index-BTMETMEE.js +4 -4
- package/chunk/index-Bi9QXN5x.js +4 -4
- package/chunk/index-Bmq6cJ3F.js +4 -4
- package/chunk/index-BpZoH-Wz.js +4 -4
- package/chunk/index-BuX76GyE.js +4 -4
- package/chunk/index-C2h0Wj84.js +4 -4
- package/chunk/index-C8MQD8EK.js +4 -4
- package/chunk/index-C8u9IJUa.js +4 -4
- package/chunk/index-C96ntS0u.js +4 -4
- package/chunk/index-CHK5i4jj.js +4 -4
- package/chunk/index-CTb96lOK.js +4 -4
- package/chunk/index-CU0rkVHP.js +4 -4
- package/chunk/index-CcRowarb.js +4 -4
- package/chunk/index-CeHu2Npu.js +4 -4
- package/chunk/index-DIkWpujR.js +4 -4
- package/chunk/index-DKWjcFJK.js +4 -4
- package/chunk/index-DLz31Fzh.js +4 -4
- package/chunk/index-DO5Z3e-E.js +4 -4
- package/chunk/index-DRlGAW07.js +4 -4
- package/chunk/index-DVynViqA.js +4 -4
- package/chunk/index-D_9J6arc.js +4 -4
- package/chunk/index-Dg8t7-dm.js +4 -4
- package/chunk/index-DhGg9lvf.js +4 -4
- package/chunk/index-DsgCNIS5.js +4 -4
- package/chunk/index-DvQoVn8P.js +4 -4
- package/chunk/index-DzqRsB7_.js +4 -4
- package/chunk/index-FjzhfDlx.js +4 -4
- package/chunk/index-Gfy-1H7s.js +4 -4
- package/chunk/index-YSVzGeq_.js +4 -4
- package/chunk/index-_t8SsXjy.js +4 -4
- package/chunk/is-BFoDLV-f.js +4 -4
- package/chunk/it-B_iK-eSd.js +4 -4
- package/chunk/iw-DL48t5mZ.js +4 -4
- package/chunk/ja-C5bG2SRl.js +4 -4
- package/chunk/ko-CmmVl873.js +4 -4
- package/chunk/lo-DvBsVm-4.js +4 -4
- package/chunk/lt-DWoqI4gx.js +4 -4
- package/chunk/ms-BCHBEoqA.js +4 -4
- package/chunk/nl-BE-DLixID0q.js +4 -4
- package/chunk/nl-CeBqOv0i.js +4 -4
- package/chunk/no-BR2xqD23.js +4 -4
- package/chunk/pl-Dl77tRgW.js +4 -4
- package/chunk/pt-BR--SxHOWht.js +4 -4
- package/chunk/pt-D0bmI49-.js +4 -4
- package/chunk/ro-HCkS3amY.js +4 -4
- package/chunk/ru-BDMi1lvr.js +4 -4
- package/chunk/sk-C4zNHeM6.js +4 -4
- package/chunk/sl-BbQVw1S0.js +4 -4
- package/chunk/sr-8d4sC8Hd.js +4 -4
- package/chunk/sv-B0-e7r_0.js +4 -4
- package/chunk/sw-Bo9F25Vc.js +4 -4
- package/chunk/th-DDuVbwLh.js +4 -4
- package/chunk/tr-CUwkgj2T.js +4 -4
- package/chunk/uk-BPrGA4MJ.js +4 -4
- package/chunk/ur-CIgS3emx.js +4 -4
- package/chunk/useCollectFieldsEndpoint-C5fsaYJe.js +4 -4
- package/chunk/useCollectFieldsEndpoint-kmLFyUA-.js +4 -4
- package/chunk/useEmailFirstExperiment-BbDrKQEs.js +4 -4
- package/chunk/useEmailFirstExperiment-CgU-itQI.js +4 -4
- package/chunk/vi-JbWizd9m.js +4 -4
- package/chunk/zh-DjbXrser.js +4 -4
- package/chunk/zh-HK-DXcspp2Y.js +4 -4
- package/chunk/zu-BzwZfIDF.js +4 -4
- package/es6.css +4 -4
- package/jslib.js +5 -5
- package/lib/{EmailLoopPending-RRhTTdpV.js → EmailLoopPending-Cuwsf4xZ.js} +5 -5
- package/lib/{EmailLoopPending-RRhTTdpV.js.map → EmailLoopPending-Cuwsf4xZ.js.map} +1 -1
- package/lib/{LicensedProfessionalOrganizationComponent-BpcVOcdn.js → LicensedProfessionalOrganizationComponent-C9Ut84IB.js} +5 -5
- package/lib/{LicensedProfessionalOrganizationComponent-BpcVOcdn.js.map → LicensedProfessionalOrganizationComponent-C9Ut84IB.js.map} +1 -1
- package/lib/Onfido-AyvUk6wg.js +4 -4
- package/lib/StepCollectMilitaryStatusComponent-I8wX1jYX.js +11 -0
- package/lib/{StepCollectMilitaryStatusComponent-MKuoaXyI.js.map → StepCollectMilitaryStatusComponent-I8wX1jYX.js.map} +1 -1
- package/lib/{StepIDCheckLoopOnfido-BL6cEMkx.js → StepIDCheckLoopOnfido-CRXIY1xd.js} +5 -5
- package/lib/{StepIDCheckLoopOnfido-BL6cEMkx.js.map → StepIDCheckLoopOnfido-CRXIY1xd.js.map} +1 -1
- package/lib/{StepIDCheckLoopRegula-MJAjFRUv.js → StepIDCheckLoopRegula-8mJqqAEp.js} +5 -5
- package/lib/{StepIDCheckLoopRegula-MJAjFRUv.js.map → StepIDCheckLoopRegula-8mJqqAEp.js.map} +1 -1
- package/lib/{StepInactiveMilitaryPersonalInfoComponent-BF2_XKTU.js → StepInactiveMilitaryPersonalInfoComponent-BYDyAl1f.js} +6 -6
- package/lib/{StepInactiveMilitaryPersonalInfoComponent-BF2_XKTU.js.map → StepInactiveMilitaryPersonalInfoComponent-BYDyAl1f.js.map} +1 -1
- package/lib/{VerificationApiUtils-B-zSDa8r.js → VerificationApiUtils-C_txFgsO.js} +5 -5
- package/lib/{VerificationApiUtils-B-zSDa8r.js.map → VerificationApiUtils-C_txFgsO.js.map} +1 -1
- package/lib/ar--TDb5qE5.js +4 -4
- package/lib/bg-D3cL-ciP.js +4 -4
- package/lib/bn-IN-CwiPRX5T.js +4 -4
- package/lib/cs-7pQwm9YC.js +4 -4
- package/lib/da-C2xASa_G.js +4 -4
- package/lib/de-D4nlAbMa.js +4 -4
- package/lib/el-C-PZe5CV.js +4 -4
- package/lib/{en-GB-BXuhuoX6.js → en-GB-DXa6bdA_.js} +5 -5
- package/{chunk/en-GB-BXuhuoX6.js.map → lib/en-GB-DXa6bdA_.js.map} +1 -1
- package/lib/es-BlLBNTpz.js +4 -4
- package/lib/es-ES-inNoG-F1.js +4 -4
- package/lib/{es6-CvP0bD5Y.js → es6-rAbRFa-6.js} +416 -424
- package/lib/{es6-CvP0bD5Y.js.map → es6-rAbRFa-6.js.map} +1 -1
- package/lib/fi-CcolQnAY.js +4 -4
- package/lib/fr-BjHvlhn5.js +4 -4
- package/lib/fr-CA-DD4NnfK-.js +4 -4
- package/lib/ga-D-rK3PZy.js +4 -4
- package/lib/hi-IN-B1NQdkcj.js +4 -4
- package/lib/hr-CwvyeMFM.js +4 -4
- package/lib/hu-BCZWPgvf.js +4 -4
- package/lib/id-CRNXXELT.js +4 -4
- package/lib/{index-DB8BlUp-.js → index-6IouBip9.js} +7 -7
- package/lib/{index-DB8BlUp-.js.map → index-6IouBip9.js.map} +1 -1
- package/lib/index-B7GBQmdV.js +11 -0
- package/lib/index-B7GBQmdV.js.map +1 -0
- package/lib/{index-AOfpwOYt.js → index-B9KCEPem.js} +5 -5
- package/lib/{index-AOfpwOYt.js.map → index-B9KCEPem.js.map} +1 -1
- package/lib/{index-CRlhWBEg.js → index-BAiuv6Kt.js} +6 -6
- package/lib/{index-CRlhWBEg.js.map → index-BAiuv6Kt.js.map} +1 -1
- package/lib/index-BL_D7Y6i.js +11 -0
- package/lib/index-BL_D7Y6i.js.map +1 -0
- package/lib/{index-B5oSCi71.js → index-BNyAG80R.js} +6 -6
- package/lib/{index-B5oSCi71.js.map → index-BNyAG80R.js.map} +1 -1
- package/lib/{index-DTFmLnWS.js → index-BYQdBIEk.js} +5 -5
- package/lib/{index-DTFmLnWS.js.map → index-BYQdBIEk.js.map} +1 -1
- package/lib/{index-a25ZDvyj.js → index-B_A4tkWw.js} +6 -6
- package/lib/{index-a25ZDvyj.js.map → index-B_A4tkWw.js.map} +1 -1
- package/lib/{index-Bcar_hTV.js → index-Bj32y4xd.js} +6 -6
- package/lib/{index-Bcar_hTV.js.map → index-Bj32y4xd.js.map} +1 -1
- package/lib/{index--7AUFRzm.js → index-BwoL3GOR.js} +5 -5
- package/lib/{index--7AUFRzm.js.map → index-BwoL3GOR.js.map} +1 -1
- package/lib/{index-BEPtvsts.js → index-C90dmv4Y.js} +5 -5
- package/lib/{index-BEPtvsts.js.map → index-C90dmv4Y.js.map} +1 -1
- package/lib/{index-Cl0g0liA.js → index-CWMKTpHR.js} +5 -5
- package/lib/{index-Cl0g0liA.js.map → index-CWMKTpHR.js.map} +1 -1
- package/lib/{index-BakuoRXg.js → index-CZs-0ZMY.js} +6 -6
- package/lib/{index-BakuoRXg.js.map → index-CZs-0ZMY.js.map} +1 -1
- package/lib/{index-Bdc4azTf.js → index-CdjuV44S.js} +5 -5
- package/lib/{index-Bdc4azTf.js.map → index-CdjuV44S.js.map} +1 -1
- package/lib/index-CnOAaaK6.js +11 -0
- package/lib/index-CnOAaaK6.js.map +1 -0
- package/lib/{index-BIeaIoFa.js → index-CohTrjrW.js} +5 -5
- package/lib/{index-BIeaIoFa.js.map → index-CohTrjrW.js.map} +1 -1
- package/lib/{index-ACzmbR3M.js → index-CsGNlf_c.js} +6 -6
- package/lib/{index-ACzmbR3M.js.map → index-CsGNlf_c.js.map} +1 -1
- package/lib/{index-Bu2OGrT1.js → index-DEbEtRRu.js} +5 -5
- package/lib/{index-Bu2OGrT1.js.map → index-DEbEtRRu.js.map} +1 -1
- package/lib/{index-Ckr6iG5b.js → index-DF6z6wUc.js} +5 -5
- package/lib/{index-Ckr6iG5b.js.map → index-DF6z6wUc.js.map} +1 -1
- package/lib/{index-DBS8B1wo.js → index-DHomcPj2.js} +7 -7
- package/lib/{index-DBS8B1wo.js.map → index-DHomcPj2.js.map} +1 -1
- package/lib/index-DIkWpujR.js +4 -4
- package/lib/{index-DKUyKNqH.js → index-DRa4CiZE.js} +6 -6
- package/lib/{index-DKUyKNqH.js.map → index-DRa4CiZE.js.map} +1 -1
- package/lib/index-DRi5mxxi.js +11 -0
- package/lib/index-DRi5mxxi.js.map +1 -0
- package/lib/{index-wSa1ZJj-.js → index-DkgNdFog.js} +5 -5
- package/lib/{index-wSa1ZJj-.js.map → index-DkgNdFog.js.map} +1 -1
- package/lib/is-BFoDLV-f.js +4 -4
- package/lib/it-B_iK-eSd.js +4 -4
- package/lib/iw-DL48t5mZ.js +4 -4
- package/lib/ja-C5bG2SRl.js +4 -4
- package/lib/ko-CmmVl873.js +4 -4
- package/lib/lo-DvBsVm-4.js +4 -4
- package/lib/lt-DWoqI4gx.js +4 -4
- package/lib/ms-BCHBEoqA.js +4 -4
- package/lib/nl-BE-DLixID0q.js +4 -4
- package/lib/nl-CeBqOv0i.js +4 -4
- package/lib/no-BR2xqD23.js +4 -4
- package/lib/pl-Dl77tRgW.js +4 -4
- package/lib/pt-BR--SxHOWht.js +4 -4
- package/lib/pt-D0bmI49-.js +4 -4
- package/lib/ro-HCkS3amY.js +4 -4
- package/lib/ru-BDMi1lvr.js +4 -4
- package/lib/sk-C4zNHeM6.js +4 -4
- package/lib/sl-BbQVw1S0.js +4 -4
- package/lib/sr-8d4sC8Hd.js +4 -4
- package/lib/sv-B0-e7r_0.js +4 -4
- package/lib/sw-Bo9F25Vc.js +4 -4
- package/lib/th-DDuVbwLh.js +4 -4
- package/lib/tr-CUwkgj2T.js +4 -4
- package/lib/uk-BPrGA4MJ.js +4 -4
- package/lib/ur-CIgS3emx.js +4 -4
- package/lib/{useCollectFieldsEndpoint-B5BY8wMf.js → useCollectFieldsEndpoint-CL_NKcs3.js} +6 -6
- package/lib/{useCollectFieldsEndpoint-B5BY8wMf.js.map → useCollectFieldsEndpoint-CL_NKcs3.js.map} +1 -1
- package/lib/{useEmailFirstExperiment-D6KXYK3o.js → useEmailFirstExperiment-CN8Lyje9.js} +5 -5
- package/lib/{useEmailFirstExperiment-D6KXYK3o.js.map → useEmailFirstExperiment-CN8Lyje9.js.map} +1 -1
- package/lib/vi-JbWizd9m.js +4 -4
- package/lib/zh-DjbXrser.js +4 -4
- package/lib/zh-HK-DXcspp2Y.js +4 -4
- package/lib/zu-BzwZfIDF.js +4 -4
- package/package.json +1 -1
- package/sheerid-install.css +4 -4
- package/sheerid-install.js +5 -5
- package/sheerid-install.js.map +1 -1
- package/sheerid.css +4 -4
- package/sheerid.js +490 -498
- package/sheerid.js.map +1 -1
- package/src/lib/intl/localized-messages/en-GB.json.d.ts +1 -1
- package/types-reference.zip +0 -0
- package/lib/StepCollectMilitaryStatusComponent-MKuoaXyI.js +0 -11
- package/lib/index-BmWeljTg.js +0 -11
- package/lib/index-BmWeljTg.js.map +0 -1
- package/lib/index-DK1GWv2N.js +0 -11
- package/lib/index-DK1GWv2N.js.map +0 -1
- package/lib/index-DMmuPDmt.js +0 -11
- package/lib/index-DMmuPDmt.js.map +0 -1
- package/lib/index-DrBrBqYT.js +0 -11
- package/lib/index-DrBrBqYT.js.map +0 -1
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index-BEPtvsts.js","sources":["../../src/components/StepSuccess/StepSuccessComponent.tsx"],"sourcesContent":["import React from \"react\";\nimport { FormattedHTMLMessage } from \"react-intl\";\n\nimport { loadAffinityIFrame } from \"@/lib/installScript\";\nimport { VerificationService, SuccessResponse, ConsumerInfoState } from \"../../lib/types/types\";\n\nimport { LogoComponent } from \"../LogoComponent/LogoComponent\";\nimport { CopyToClipboard } from \"../CopyToClipboard/CopyToClipboardComponent\";\nimport { getBarcodeUrl } from \"../../lib/ServerApi/ApiUrls\";\nimport { RewardDisplayEnum } from \"../../lib/types/runtimeTypes\";\nimport { getLocaleSafely } from \"../../lib/intl/intl\";\nimport { getRememberMeRedirectDestination } from \"../../lib/utils/stepComponentHelpers/stepComponentHelpers\";\nimport { getQueryOrOption } from \"../../lib/ServerApi/TestingRouteOverrides\";\nimport { QUERY_STRING_REMEMBER_ME_OVERRIDE } from \"../../constants\";\nimport { getOptions } from \"../../options/options\";\nimport { AnnouncingHeader } from \"../AnnouncingHeader/AnnouncingHeader\";\n\ninterface StepSuccessProps {\n verificationService: VerificationService;\n}\n\nconst redirect = (redirectDestination: string, target: string = \"_top\") => {\n const win = window.open(redirectDestination, target);\n win.focus();\n};\n\nconst getAffinityBaseUrl = () => {\n const options = getOptions();\n const apiBaseUrl = options.restApi.serviceUrl;\n\n switch (apiBaseUrl) {\n case \"https://services.sheerid.com\":\n return \"https://shr-id.com\";\n default:\n return \"https://aa-preview.sheerid.net\";\n }\n};\n\nconst StepSuccess = ({ verificationService }: StepSuccessProps) => {\n const { verificationResponse, programId, viewModel } = verificationService;\n const { verificationId, redirectUrl } = verificationResponse as SuccessResponse;\n const { config } = verificationService.programTheme;\n const affinityRef = React.useRef<HTMLDivElement>(null);\n\n const showRedirect = Boolean(redirectUrl);\n const rewardCode = (verificationResponse as SuccessResponse).rewardCode || \"{rewardCode}\";\n const noCodeType = config.offerType === \"noCode\";\n\n const { rewardDisplay } = config;\n const showReward = !noCodeType && !!rewardDisplay.length;\n\n const mockConsumerInfoState = getQueryOrOption(\n QUERY_STRING_REMEMBER_ME_OVERRIDE,\n ) as ConsumerInfoState;\n const consumerInfoState: ConsumerInfoState =\n mockConsumerInfoState || (verificationResponse as SuccessResponse).consumerInfoState;\n const showRememberMeFooter =\n consumerInfoState === \"consumerNotFound\" ||\n consumerInfoState === \"consumerFoundNewFieldsAvailable\";\n\n const locale = getLocaleSafely(viewModel, verificationResponse);\n\n React.useEffect(() => {\n // Load the affinity widget if enabled\n if (affinityRef.current) {\n affinityRef.current.innerHTML = \"\";\n loadAffinityIFrame(\n affinityRef.current,\n `${getAffinityBaseUrl()}/affinity/${locale}/${programId}/${verificationId}`,\n );\n }\n }, [affinityRef, programId, verificationId, locale]);\n\n return (\n <div id=\"sid-step-success\" className=\"sid-success-container sid-l-container\" role=\"region\">\n <div className=\"sid-header sid-l-horz-center sid-l-space-top-md\">\n <div className=\"sid-success-logo-container sid-l-horz-center\">\n <LogoComponent\n verificationService={verificationService}\n fallbackLogo={\n <img\n className=\"sid-success-logo-default sid-l-lead-image\"\n alt=\"\"\n src=\"https://assets-resources.sheerid.com/common/images/2018/icons/circle-check.svg\"\n />\n }\n />\n </div>\n <AnnouncingHeader align=\"center\">\n <FormattedHTMLMessage\n id=\"step.success.title\"\n defaultMessage=\"Success! You've been verified.\"\n tagName=\"h1\"\n />\n </AnnouncingHeader>\n <div className=\"sid-header__subtitle sid-l-horz-center\">\n <FormattedHTMLMessage\n id=\"step.success.subtitle\"\n defaultMessage={`Here is your personal coupon code.\n It is unique to you and can only be used once.`}\n tagName=\"p\"\n />\n </div>\n </div>\n\n {showReward && (\n <div className=\"sid-l-horz-center sid-reward-container sid-l-space-top-md\">\n {rewardDisplay.map((displayType) => {\n if (displayType !== RewardDisplayEnum.TEXT)\n return (\n <img\n key={displayType}\n className=\"sid-l-space-top-md sid-barcode\"\n alt={rewardCode}\n src={getBarcodeUrl(verificationId, \"rewardCode\", displayType)}\n />\n );\n return (\n <div key={displayType}>\n <div\n className=\"sid-reward-code sid-l-space-top-md sid-h-jumbo-text sid-l-horz-center\"\n role=\"region\"\n >\n {rewardCode}\n </div>\n <div className=\"sid-l-space-top-md sid-h-bold-text sid-l-horz-center\">\n <CopyToClipboard\n textToCopy={rewardCode}\n notificationText={<FormattedHTMLMessage id=\"copied\" defaultMessage=\"Copied\" />}\n >\n <FormattedHTMLMessage\n id=\"step.success.copyCouponCode\"\n defaultMessage=\"Copy Coupon code\"\n />\n </CopyToClipboard>\n </div>\n </div>\n );\n })}\n </div>\n )}\n\n <div\n className={`sid-footer sid-success-footer sid-l-horz-center ${\n noCodeType ? \"sid-l-space-top-md\" : \"sid-l-space-top-lg\"\n }`}\n >\n <FormattedHTMLMessage\n id=\"step.success.emailNotification\"\n defaultMessage=\"We have emailed you a copy so you can use your code now or later. Look for the email from verify@sheerid.com\"\n tagName=\"p\"\n />\n </div>\n\n {showRedirect ? (\n <div className=\"sid-submit sid-success-submit sid-l-space-top-md\">\n <button\n type=\"button\"\n onClick={() => redirect(redirectUrl)}\n className=\"sid-btn sid-success-redirect-btn sid-btn--dark\"\n >\n <FormattedHTMLMessage\n id=\"step.success.redirectButtonText\"\n defaultMessage=\"Use code now\"\n />\n </button>\n </div>\n ) : (\n \"\"\n )}\n\n <div\n className=\"sid-footer sid-success-verification-only-footer sid-l-horz-center sid-l-space-top-lg sid-h-small-text\"\n role=\"contentinfo\"\n >\n <FormattedHTMLMessage id=\"companyName\" defaultMessage=\"{Company}\">\n {(companyName) => (\n <FormattedHTMLMessage\n id=\"step.success.verificationOnly\"\n defaultMessage={`\n SheerID handles verification only.\n Now that you've been approved, please direct all questions about the\n promotion terms to {companyName} customer service.\n `}\n values={{ companyName }}\n tagName=\"p\"\n />\n )}\n </FormattedHTMLMessage>\n </div>\n\n {verificationService.programTheme.affinityProgramEnabled && (\n <div\n ref={affinityRef}\n id=\"sid-affinity-iframe\"\n className=\"sid-affinity-container sid-l-full-width sid-l-space-top-lg\"\n />\n )}\n\n {showRememberMeFooter && (\n <div className=\"sid-remember-me-footer-container\">\n <div className=\"sid-remember-me-title\">\n {consumerInfoState === \"consumerNotFound\" ? (\n <FormattedHTMLMessage\n id=\"step.success.rememberMe.consumerNotFound.title\"\n defaultMessage=\"Save your info for 1-click verification\"\n />\n ) : (\n <FormattedHTMLMessage\n id=\"step.success.rememberMe.consumerFound.title\"\n defaultMessage=\"Update Your Profile\"\n />\n )}\n </div>\n <div className=\"sid-remember-me-description\">\n {consumerInfoState === \"consumerNotFound\" ? (\n <FormattedHTMLMessage id=\"companyName\" defaultMessage=\"{Company}\">\n {(companyName) => (\n <FormattedHTMLMessage\n id=\"step.success.rememberMe.consumerNotFound.description\"\n defaultMessage=\"Get faster access to future offers with {companyName} and other brands using SheerID's Remember Me service.\"\n values={{ companyName }}\n />\n )}\n </FormattedHTMLMessage>\n ) : (\n <FormattedHTMLMessage id=\"companyName\" defaultMessage=\"{Company}\">\n {(companyName) => (\n <FormattedHTMLMessage\n id=\"step.success.rememberMe.consumerFound.description\"\n defaultMessage=\"Save new info for future offers with {companyName} and other brands using SheerID's Remember Me service.\"\n values={{ companyName }}\n />\n )}\n </FormattedHTMLMessage>\n )}\n </div>\n <button\n type=\"button\"\n onClick={() =>\n redirect(\n getRememberMeRedirectDestination(locale, programId, verificationId),\n \"_blank\",\n )\n }\n className=\"sid-btn sid-remember-me-redirect-btn\"\n >\n {consumerInfoState === \"consumerNotFound\" ? (\n <FormattedHTMLMessage\n id=\"step.success.rememberMe.consumerNotFound.button\"\n defaultMessage=\"Enroll Now\"\n />\n ) : (\n <FormattedHTMLMessage\n id=\"step.success.rememberMe.consumerFound.button\"\n defaultMessage=\"Save to Remember Me\"\n />\n )}\n </button>\n </div>\n )}\n </div>\n );\n};\n\nexport const StepSuccessComponent = StepSuccess;\n"],"names":["redirect","redirectDestination","target","getAffinityBaseUrl","getOptions","StepSuccess","verificationService","verificationResponse","programId","viewModel","verificationId","redirectUrl","config","affinityRef","React","showRedirect","rewardCode","noCodeType","rewardDisplay","showReward","consumerInfoState","getQueryOrOption","QUERY_STRING_REMEMBER_ME_OVERRIDE","showRememberMeFooter","locale","getLocaleSafely","loadAffinityIFrame","jsxs","jsx","LogoComponent","AnnouncingHeader","FormattedHTMLMessage","displayType","RewardDisplayEnum","getBarcodeUrl","CopyToClipboard","companyName","getRememberMeRedirectDestination","StepSuccessComponent"],"mappings":";;;AAqBA,MAAMA,IAAW,CAACC,GAA6BC,IAAiB,WAAW;AAEzE,EADY,OAAO,KAAKD,GAAqBC,CAAM,EAC/C,MAAM;AACZ,GAEMC,IAAqB,MAAM;AAI/B,UAHgBC,EAAW,EACA,QAAQ,YAEf;AAAA,IAClB,KAAK;AACI,aAAA;AAAA,IACT;AACS,aAAA;AAAA,EAAA;AAEb,GAEMC,IAAc,CAAC,EAAE,qBAAAC,QAA4C;AACjE,QAAM,EAAE,sBAAAC,GAAsB,WAAAC,GAAW,WAAAC,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QAACG;AAAA,QAAA;AAAA,UACC,IAAG;AAAA,UACH,gBAAe;AAAA,QAAA;AAAA,MAAA,GAGrB;AAAA,MACCH,gBAAAA,EAAA,IAAA,OAAA,EAAI,WAAU,+BACZ,UAAsBR,MAAA,qBACpBQ,gBAAAA,EAAAA,IAAAG,GAAA,EAAqB,IAAG,eAAc,gBAAe,aACnD,WAACK,MACAR,gBAAAA,EAAA;AAAA,QAACG;AAAA,QAAA;AAAA,UACC,IAAG;AAAA,UACH,gBAAe;AAAA,UACf,QAAQ,EAAE,aAAAK,EAAY;AAAA,QAAA;AAAA,MACxB,EAAA,CAEJ,IAECR,gBAAAA,EAAAA,IAAAG,GAAA,EAAqB,IAAG,eAAc,gBAAe,aACnD,UAAA,CAACK,MACAR,gBAAAA,EAAA;AAAA,QAACG;AAAA,QAAA;AAAA,UACC,IAAG;AAAA,UACH,gBAAe;AAAA,UACf,QAAQ,EAAE,aAAAK,EAAY;AAAA,QAAA;AAAA,SAG5B,EAEJ,CAAA;AAAA,MACAR,gBAAAA,EAAA;AAAA,QAAC;AAAA,QAAA;AAAA,UACC,MAAK;AAAA,UACL,SAAS,MACP5B;AAAA,YACEqC,EAAiCb,GAAQhB,GAAWE,CAAc;AAAA,YAClE;AAAA,UACF;AAAA,UAEF,WAAU;AAAA,UAET,gBAAsB,qBACrBkB,gBAAAA,EAAA;AAAA,YAACG;AAAA,YAAA;AAAA,cACC,IAAG;AAAA,cACH,gBAAe;AAAA,YAAA;AAAA,UAAA,IAGjBH,gBAAAA,EAAA;AAAA,YAACG;AAAA,YAAA;AAAA,cACC,IAAG;AAAA,cACH,gBAAe;AAAA,YAAA;AAAA,UAAA;AAAA,QACjB;AAAA,MAAA;AAAA,IAEJ,EACF,CAAA;AAAA,EAAA,GAEJ;AAEJ,GAEaO,IAAuBjC;"}
|
1
|
+
{"version":3,"file":"index-C90dmv4Y.js","sources":["../../src/components/StepSuccess/StepSuccessComponent.tsx"],"sourcesContent":["import React from \"react\";\nimport { FormattedHTMLMessage } from \"react-intl\";\n\nimport { loadAffinityIFrame } from \"@/lib/installScript\";\nimport { VerificationService, SuccessResponse, ConsumerInfoState } from \"../../lib/types/types\";\n\nimport { LogoComponent } from \"../LogoComponent/LogoComponent\";\nimport { CopyToClipboard } from \"../CopyToClipboard/CopyToClipboardComponent\";\nimport { getBarcodeUrl } from \"../../lib/ServerApi/ApiUrls\";\nimport { RewardDisplayEnum } from \"../../lib/types/runtimeTypes\";\nimport { getLocaleSafely } from \"../../lib/intl/intl\";\nimport { getRememberMeRedirectDestination } from \"../../lib/utils/stepComponentHelpers/stepComponentHelpers\";\nimport { getQueryOrOption } from \"../../lib/ServerApi/TestingRouteOverrides\";\nimport { QUERY_STRING_REMEMBER_ME_OVERRIDE } from \"../../constants\";\nimport { getOptions } from \"../../options/options\";\nimport { AnnouncingHeader } from \"../AnnouncingHeader/AnnouncingHeader\";\n\ninterface StepSuccessProps {\n verificationService: VerificationService;\n}\n\nconst redirect = (redirectDestination: string, target: string = \"_top\") => {\n const win = window.open(redirectDestination, target);\n win.focus();\n};\n\nconst getAffinityBaseUrl = () => {\n const options = getOptions();\n const apiBaseUrl = options.restApi.serviceUrl;\n\n switch (apiBaseUrl) {\n case \"https://services.sheerid.com\":\n return \"https://shr-id.com\";\n default:\n return \"https://aa-preview.sheerid.net\";\n }\n};\n\nconst StepSuccess = ({ verificationService }: StepSuccessProps) => {\n const { verificationResponse, programId, viewModel } = verificationService;\n const { verificationId, redirectUrl } = verificationResponse as SuccessResponse;\n const { config } = verificationService.programTheme;\n const affinityRef = React.useRef<HTMLDivElement>(null);\n\n const showRedirect = Boolean(redirectUrl);\n const rewardCode = (verificationResponse as SuccessResponse).rewardCode || \"{rewardCode}\";\n const noCodeType = config.offerType === \"noCode\";\n\n const { rewardDisplay } = config;\n const showReward = !noCodeType && !!rewardDisplay.length;\n\n const mockConsumerInfoState = getQueryOrOption(\n QUERY_STRING_REMEMBER_ME_OVERRIDE,\n ) as ConsumerInfoState;\n const consumerInfoState: ConsumerInfoState =\n mockConsumerInfoState || (verificationResponse as SuccessResponse).consumerInfoState;\n const showRememberMeFooter =\n consumerInfoState === \"consumerNotFound\" ||\n consumerInfoState === \"consumerFoundNewFieldsAvailable\";\n\n const locale = getLocaleSafely(viewModel, verificationResponse);\n\n React.useEffect(() => {\n // Load the affinity widget if enabled\n if (affinityRef.current) {\n affinityRef.current.innerHTML = \"\";\n loadAffinityIFrame(\n affinityRef.current,\n `${getAffinityBaseUrl()}/affinity/${locale}/${programId}/${verificationId}`,\n );\n }\n }, [affinityRef, programId, verificationId, locale]);\n\n return (\n <div id=\"sid-step-success\" className=\"sid-success-container sid-l-container\" role=\"region\">\n <div className=\"sid-header sid-l-horz-center sid-l-space-top-md\">\n <div className=\"sid-success-logo-container sid-l-horz-center\">\n <LogoComponent\n verificationService={verificationService}\n fallbackLogo={\n <img\n className=\"sid-success-logo-default sid-l-lead-image\"\n alt=\"\"\n src=\"https://assets-resources.sheerid.com/common/images/2018/icons/circle-check.svg\"\n />\n }\n />\n </div>\n <AnnouncingHeader align=\"center\">\n <FormattedHTMLMessage\n id=\"step.success.title\"\n defaultMessage=\"Success! You've been verified.\"\n tagName=\"h1\"\n />\n </AnnouncingHeader>\n <div className=\"sid-header__subtitle sid-l-horz-center\">\n <FormattedHTMLMessage\n id=\"step.success.subtitle\"\n defaultMessage={`Here is your personal coupon code.\n It is unique to you and can only be used once.`}\n tagName=\"p\"\n />\n </div>\n </div>\n\n {showReward && (\n <div className=\"sid-l-horz-center sid-reward-container sid-l-space-top-md\">\n {rewardDisplay.map((displayType) => {\n if (displayType !== RewardDisplayEnum.TEXT)\n return (\n <img\n key={displayType}\n className=\"sid-l-space-top-md sid-barcode\"\n alt={rewardCode}\n src={getBarcodeUrl(verificationId, \"rewardCode\", displayType)}\n />\n );\n return (\n <div key={displayType}>\n <div\n className=\"sid-reward-code sid-l-space-top-md sid-h-jumbo-text sid-l-horz-center\"\n role=\"region\"\n >\n {rewardCode}\n </div>\n <div className=\"sid-l-space-top-md sid-h-bold-text sid-l-horz-center\">\n <CopyToClipboard\n textToCopy={rewardCode}\n notificationText={<FormattedHTMLMessage id=\"copied\" defaultMessage=\"Copied\" />}\n >\n <FormattedHTMLMessage\n id=\"step.success.copyCouponCode\"\n defaultMessage=\"Copy Coupon code\"\n />\n </CopyToClipboard>\n </div>\n </div>\n );\n })}\n </div>\n )}\n\n <div\n className={`sid-footer sid-success-footer sid-l-horz-center ${\n noCodeType ? \"sid-l-space-top-md\" : \"sid-l-space-top-lg\"\n }`}\n >\n <FormattedHTMLMessage\n id=\"step.success.emailNotification\"\n defaultMessage=\"We have emailed you a copy so you can use your code now or later. Look for the email from verify@sheerid.com\"\n tagName=\"p\"\n />\n </div>\n\n {showRedirect ? (\n <div className=\"sid-submit sid-success-submit sid-l-space-top-md\">\n <button\n type=\"button\"\n onClick={() => redirect(redirectUrl)}\n className=\"sid-btn sid-success-redirect-btn sid-btn--dark\"\n >\n <FormattedHTMLMessage\n id=\"step.success.redirectButtonText\"\n defaultMessage=\"Use code now\"\n />\n </button>\n </div>\n ) : (\n \"\"\n )}\n\n <div\n className=\"sid-footer sid-success-verification-only-footer sid-l-horz-center sid-l-space-top-lg sid-h-small-text\"\n role=\"contentinfo\"\n >\n <FormattedHTMLMessage id=\"companyName\" defaultMessage=\"{Company}\">\n {(companyName) => (\n <FormattedHTMLMessage\n id=\"step.success.verificationOnly\"\n defaultMessage={`\n SheerID handles verification only.\n Now that you've been approved, please direct all questions about the\n promotion terms to {companyName} customer service.\n `}\n values={{ companyName }}\n tagName=\"p\"\n />\n )}\n </FormattedHTMLMessage>\n </div>\n\n {verificationService.programTheme.affinityProgramEnabled && (\n <div\n ref={affinityRef}\n id=\"sid-affinity-iframe\"\n className=\"sid-affinity-container sid-l-full-width sid-l-space-top-lg\"\n />\n )}\n\n {showRememberMeFooter && (\n <div className=\"sid-remember-me-footer-container\">\n <div className=\"sid-remember-me-title\">\n {consumerInfoState === \"consumerNotFound\" ? (\n <FormattedHTMLMessage\n id=\"step.success.rememberMe.consumerNotFound.title\"\n defaultMessage=\"Save your info for 1-click verification\"\n />\n ) : (\n <FormattedHTMLMessage\n id=\"step.success.rememberMe.consumerFound.title\"\n defaultMessage=\"Update Your Profile\"\n />\n )}\n </div>\n <div className=\"sid-remember-me-description\">\n {consumerInfoState === \"consumerNotFound\" ? (\n <FormattedHTMLMessage id=\"companyName\" defaultMessage=\"{Company}\">\n {(companyName) => (\n <FormattedHTMLMessage\n id=\"step.success.rememberMe.consumerNotFound.description\"\n defaultMessage=\"Get faster access to future offers with {companyName} and other brands using SheerID's Remember Me service.\"\n values={{ companyName }}\n />\n )}\n </FormattedHTMLMessage>\n ) : (\n <FormattedHTMLMessage id=\"companyName\" defaultMessage=\"{Company}\">\n {(companyName) => (\n <FormattedHTMLMessage\n id=\"step.success.rememberMe.consumerFound.description\"\n defaultMessage=\"Save new info for future offers with {companyName} and other brands using SheerID's Remember Me service.\"\n values={{ companyName }}\n />\n )}\n </FormattedHTMLMessage>\n )}\n </div>\n <button\n type=\"button\"\n onClick={() =>\n redirect(\n getRememberMeRedirectDestination(locale, programId, verificationId),\n \"_blank\",\n )\n }\n className=\"sid-btn sid-remember-me-redirect-btn\"\n >\n {consumerInfoState === \"consumerNotFound\" ? (\n <FormattedHTMLMessage\n id=\"step.success.rememberMe.consumerNotFound.button\"\n defaultMessage=\"Enroll Now\"\n />\n ) : (\n <FormattedHTMLMessage\n id=\"step.success.rememberMe.consumerFound.button\"\n defaultMessage=\"Save to Remember Me\"\n />\n )}\n </button>\n </div>\n )}\n </div>\n );\n};\n\nexport const StepSuccessComponent = StepSuccess;\n"],"names":["redirect","redirectDestination","target","getAffinityBaseUrl","getOptions","StepSuccess","verificationService","verificationResponse","programId","viewModel","verificationId","redirectUrl","config","affinityRef","React","showRedirect","rewardCode","noCodeType","rewardDisplay","showReward","consumerInfoState","getQueryOrOption","QUERY_STRING_REMEMBER_ME_OVERRIDE","showRememberMeFooter","locale","getLocaleSafely","loadAffinityIFrame","jsxs","jsx","LogoComponent","AnnouncingHeader","FormattedHTMLMessage","displayType","RewardDisplayEnum","getBarcodeUrl","CopyToClipboard","companyName","getRememberMeRedirectDestination","StepSuccessComponent"],"mappings":";;;AAqBA,MAAMA,IAAW,CAACC,GAA6BC,IAAiB,WAAW;AAEzE,EADY,OAAO,KAAKD,GAAqBC,CAAM,EAC/C,MAAM;AACZ,GAEMC,IAAqB,MAAM;AAI/B,UAHgBC,EAAW,EACA,QAAQ,YAEf;AAAA,IAClB,KAAK;AACI,aAAA;AAAA,IACT;AACS,aAAA;AAAA,EAAA;AAEb,GAEMC,IAAc,CAAC,EAAE,qBAAAC,QAA4C;AACjE,QAAM,EAAE,sBAAAC,GAAsB,WAAAC,GAAW,WAAAC,EAAc,IAAAH,GACjD,EAAE,gBAAAI,GAAgB,aAAAC,EAAA,IAAgBJ,GAClC,EAAE,QAAAK,MAAWN,EAAoB,cACjCO,IAAcC,EAAM,OAAuB,IAAI,GAE/CC,IAAe,EAAQJ,GACvBK,IAAcT,EAAyC,cAAc,gBACrEU,IAAaL,EAAO,cAAc,UAElC,EAAE,eAAAM,MAAkBN,GACpBO,IAAa,CAACF,KAAc,CAAC,CAACC,EAAc,QAK5CE,IAHwBC;AAAA,IAC5BC;AAAA,EACF,KAE4Bf,EAAyC,mBAC/DgB,IACJH,MAAsB,sBACtBA,MAAsB,mCAElBI,IAASC,EAAgBhB,GAAWF,CAAoB;AAE9DO,SAAAA,EAAM,UAAU,MAAM;AAEpB,IAAID,EAAY,YACdA,EAAY,QAAQ,YAAY,IAChCa;AAAA,MACEb,EAAY;AAAA,MACZ,GAAGV,EAAoB,CAAA,aAAaqB,CAAM,IAAIhB,CAAS,IAAIE,CAAc;AAAA,IAC3E;AAAA,KAED,CAACG,GAAaL,GAAWE,GAAgBc,CAAM,CAAC,0BAGhD,OAAI,EAAA,IAAG,oBAAmB,WAAU,yCAAwC,MAAK,UAChF,UAAA;AAAA,IAACG,gBAAAA,EAAAA,KAA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AA,YAClE;AAAA,UACF;AAAA,UAEF,WAAU;AAAA,UAET,gBAAsB,qBACrBkB,gBAAAA,EAAA;AAAA,YAACG;AAAA,YAAA;AAAA,cACC,IAAG;AAAA,cACH,gBAAe;AAAA,YAAA;AAAA,UAAA,IAGjBH,gBAAAA,EAAA;AAAA,YAACG;AAAA,YAAA;AAAA,cACC,IAAG;AAAA,cACH,gBAAe;AAAA,YAAA;AAAA,UAAA;AAAA,QACjB;AAAA,MAAA;AAAA,IAEJ,EACF,CAAA;AAAA,EAAA,GAEJ;AAEJ,GAEaO,IAAuBjC;"}
|
@@ -1,11 +1,11 @@
|
|
1
1
|
|
2
2
|
/**
|
3
|
-
* VERSION: 2.115.0-alpha.
|
4
|
-
* BUILD_TIMESTAMP:
|
5
|
-
* BUILD_DATE:
|
6
|
-
* BUILD_COMMIT:
|
3
|
+
* VERSION: 2.115.0-alpha.10
|
4
|
+
* BUILD_TIMESTAMP: 1752173190450
|
5
|
+
* BUILD_DATE: Thu Jul 10 2025 18:46:30 GMT+0000 (Coordinated Universal Time)
|
6
|
+
* BUILD_COMMIT: 821fab51bd71995854e86f7cdee77a5b89617244
|
7
7
|
*/
|
8
|
-
import { k as m, j as e, m as u, E as x, n as f, u as I, o as j, V as E, p as M, q as h } from "./es6-
|
8
|
+
import { k as m, j as e, m as u, E as x, n as f, u as I, o as j, V as E, p as M, q as h } from "./es6-rAbRFa-6.js";
|
9
9
|
import { FormattedHTMLMessage as o } from "react-intl";
|
10
10
|
const C = ({ verificationService: t }) => {
|
11
11
|
const s = t.viewModel, { fieldValidationErrors: a } = t, l = t.verificationResponse, d = m(l), i = (n, r) => {
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index-
|
1
|
+
{"version":3,"file":"index-CWMKTpHR.js","sources":["../../src/components/StepCollectIdentifier/StepCollectIdentifierComponent.tsx"],"sourcesContent":["import React from \"react\";\nimport { FormattedHTMLMessage } from \"react-intl\";\nimport { produce } from \"immer\";\n\nimport { hasFailedInstantMatch } from \"../../lib/VerificationService/VerificationServiceHelpers\";\nimport {\n VerificationService,\n CollectIdentifierViewModel,\n PersonalInfoResponse,\n} from \"../../lib/types/types\";\n\nimport {\n handleEmailOnKeyDown,\n updateFieldValidationErrorsByFieldId,\n} from \"../../lib/utils/stepComponentHelpers/stepComponentHelpers\";\nimport { FormFooterComponent as FormFooter } from \"../FormFooter/FormFooterComponent\";\n\nimport { EmailComponent as Email } from \"../FormFields/Email/EmailComponent\";\nimport { VerificationStepsEnum } from \"../../lib/types/runtimeTypes\";\nimport { PersonalInfoHeader } from \"../FormHeader/StepHeaders/PersonalInfoHeaderComponent\";\nimport { PersonalInfoStepSubmitButton } from \"../PersonalInfoStepSubmitButton/PersonalInfoStepSubmitButton\";\n\ninterface StepCollectIdentifierProps {\n verificationService: VerificationService;\n}\n\nconst StepCollectIdentifier = ({ verificationService }: StepCollectIdentifierProps) => {\n const viewModel = verificationService.viewModel as CollectIdentifierViewModel;\n const { fieldValidationErrors } = verificationService;\n const verificationResponse = verificationService.verificationResponse as PersonalInfoResponse;\n const failedInstantMatch = hasFailedInstantMatch(verificationResponse);\n\n const updateCollectIdentifierViewmodel = (key: keyof CollectIdentifierViewModel, value: any) => {\n const nextState: CollectIdentifierViewModel = produce(\n viewModel,\n (draft: CollectIdentifierViewModel) => {\n (draft[key] as any) = value;\n },\n );\n verificationService.updateViewModel(nextState);\n };\n\n return (\n <div\n id=\"sid-step-collect-transaction-id\"\n className=\"sid-step-collect-transaction-id-container sid-l-container\"\n >\n <div role=\"main\">\n <PersonalInfoHeader\n verificationService={verificationService}\n classNameIdentifier=\"step-collect-transaction-id\"\n />\n\n <Email\n value={viewModel.email}\n isErrored={!!fieldValidationErrors.email}\n explanation={\n <FormattedHTMLMessage\n id=\"step.collectIdentifier.inputExplanation\"\n defaultMessage=\"Needed to send authentication code\"\n />\n }\n onChange={(newValue) => {\n updateCollectIdentifierViewmodel(\"email\", newValue);\n updateFieldValidationErrorsByFieldId(\"email\", newValue, verificationService);\n }}\n onKeyDown={(event: React.KeyboardEvent<HTMLInputElement>) => handleEmailOnKeyDown(event)}\n />\n\n <PersonalInfoStepSubmitButton\n step={VerificationStepsEnum.collectIdentifier}\n verificationService={verificationService}\n viewModel={viewModel}\n failedInstantMatch={failedInstantMatch}\n buttonText={\n <FormattedHTMLMessage\n id=\"step.personalInfo.submitButtonText\"\n defaultMessage=\"Verify and continue\"\n />\n }\n />\n </div>\n <FormFooter verificationService={verificationService} />\n </div>\n );\n};\n\nexport const StepCollectIdentifierComponent = StepCollectIdentifier;\n"],"names":["StepCollectIdentifier","verificationService","viewModel","fieldValidationErrors","verificationResponse","failedInstantMatch","hasFailedInstantMatch","updateCollectIdentifierViewmodel","key","value","nextState","produce","draft","jsxs","jsx","PersonalInfoHeader","Email","FormattedHTMLMessage","newValue","updateFieldValidationErrorsByFieldId","event","handleEmailOnKeyDown","PersonalInfoStepSubmitButton","VerificationStepsEnum","FormFooter","StepCollectIdentifierComponent"],"mappings":";;AA0BA,MAAMA,IAAwB,CAAC,EAAE,qBAAAC,QAAsD;AACrF,QAAMC,IAAYD,EAAoB,WAChC,EAAE,uBAAAE,MAA0BF,GAC5BG,IAAuBH,EAAoB,sBAC3CI,IAAqBC,EAAsBF,CAAoB,GAE/DG,IAAmC,CAACC,GAAuCC,MAAe;AAC9F,UAAMC,IAAwCC;AAAAA,MAC5CT;AAAA,MACA,CAACU,MAAsC;AACpC,QAAAA,EAAMJ,CAAG,IAAYC;AAAA,MAAA;AAAA,IAE1B;AACA,IAAAR,EAAoB,gBAAgBS,CAAS;AAAA,EAC/C;AAGE,SAAAG,gBAAAA,EAAA;AAAA,IAAC;AAAA,IAAA;AAAA,MACC,IAAG;AAAA,MACH,WAAU;AAAA,MAEV,UAAA;AAAA,QAACA,gBAAAA,EAAAA,KAAA,OAAA,EAAI,MAAK,QACR,UAAA;AAAA,UAAAC,gBAAAA,EAAA;AAAA,YAACC;AAAA,YAAA;AAAA,cACC,qBAAAd;AAAA,cACA,qBAAoB;AAAA,YAAA;AAAA,UACtB;AAAA,UAEAa,gBAAAA,EAAA;AAAA,YAACE;AAAAA,YAAA;AAAA,cACC,OAAOd,EAAU;AAAA,cACjB,WAAW,CAAC,CAACC,EAAsB;AAAA,cACnC,aACEW,gBAAAA,EAAA;AAAA,gBAACG;AAAA,gBAAA;AAAA,kBACC,IAAG;AAAA,kBACH,gBAAe;AAAA,gBAAA;AAAA,cACjB;AAAA,cAEF,UAAU,CAACC,MAAa;AACtB,gBAAAX,EAAiC,SAASW,CAAQ,GACbC,EAAA,SAASD,GAAUjB,CAAmB;AAAA,cAC7E;AAAA,cACA,WAAW,CAACmB,MAAiDC,EAAqBD,CAAK;AAAA,YAAA;AAAA,UACzF;AAAA,UAEAN,gBAAAA,EAAA;AAAA,YAACQ;AAAA,YAAA;AAAA,cACC,MAAMC,EAAsB;AAAA,cAC5B,qBAAAtB;AAAA,cACA,WAAAC;AAAA,cACA,oBAAAG;AAAA,cACA,YACES,gBAAAA,EAAA;AAAA,gBAACG;AAAA,gBAAA;AAAA,kBACC,IAAG;AAAA,kBACH,gBAAe;AAAA,gBAAA;AAAA,cAAA;AAAA,YACjB;AAAA,UAAA;AAAA,QAEJ,GACF;AAAA,QACAH,gBAAAA,MAACU,KAAW,qBAAAvB,EAA0C,CAAA;AAAA,MAAA;AAAA,IAAA;AAAA,EACxD;AAEJ,GAEawB,IAAiCzB;"}
|
@@ -1,13 +1,13 @@
|
|
1
1
|
|
2
2
|
/**
|
3
|
-
* VERSION: 2.115.0-alpha.
|
4
|
-
* BUILD_TIMESTAMP:
|
5
|
-
* BUILD_DATE:
|
6
|
-
* BUILD_COMMIT:
|
3
|
+
* VERSION: 2.115.0-alpha.10
|
4
|
+
* BUILD_TIMESTAMP: 1752173190450
|
5
|
+
* BUILD_DATE: Thu Jul 10 2025 18:46:30 GMT+0000 (Coordinated Universal Time)
|
6
|
+
* BUILD_COMMIT: 821fab51bd71995854e86f7cdee77a5b89617244
|
7
7
|
*/
|
8
|
-
import { j as s, r as c, A as p, a0 as g, B as u, V as d, p as x, u as j, l as b, q as h } from "./es6-
|
8
|
+
import { j as s, r as c, A as p, a0 as g, B as u, V as d, p as x, u as j, l as b, q as h } from "./es6-rAbRFa-6.js";
|
9
9
|
import { FormattedHTMLMessage as a, injectIntl as E } from "react-intl";
|
10
|
-
import { EmailLoopPendingComponent as f } from "./EmailLoopPending-
|
10
|
+
import { EmailLoopPendingComponent as f } from "./EmailLoopPending-Cuwsf4xZ.js";
|
11
11
|
const L = ({
|
12
12
|
verificationService: e
|
13
13
|
}) => {
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index-BakuoRXg.js","sources":["../../src/components/StepEmailLoop/EmailLoopCollectOrganizationEmail.tsx","../../src/components/StepEmailLoop/StepEmailLoopComponent.tsx"],"sourcesContent":["import React from \"react\";\nimport produce from \"immer\";\n\nimport { FormattedHTMLMessage } from \"react-intl\";\nimport { LogoComponent } from \"../LogoComponent/LogoComponent\";\nimport { FormFooterComponent as FormFooter } from \"../FormFooter/FormFooterComponent\";\nimport { FormFieldText } from \"../FormFields/FormFieldText/FormFieldText\";\nimport {\n updateFieldValidationErrorsByFieldId,\n submitForm,\n} from \"../../lib/utils/stepComponentHelpers/stepComponentHelpers\";\n\nimport { VerificationStepsEnum } from \"../../lib/types/runtimeTypes\";\nimport { logger } from \"../../lib/utils/logger/logger\";\nimport {\n EmailLoopCollectOrganizationEmailViewModel,\n VerificationService,\n} from \"../../lib/types/types\";\nimport { AnnouncingHeader } from \"../AnnouncingHeader/AnnouncingHeader\";\n\nexport const EmailLoopCollectOrganizationEmail = ({\n verificationService,\n}: {\n verificationService: VerificationService;\n}) => {\n const viewModel = verificationService.viewModel as EmailLoopCollectOrganizationEmailViewModel;\n const fieldValidationErrors = verificationService.fieldValidationErrors;\n const isInvalidOrgEmail = (verificationService.verificationResponse?.errorIds || []).includes(\n \"invalidEmail\",\n );\n\n const setEmailValue = (organizationEmail: string) => {\n verificationService.updateViewModel({ ...viewModel, organizationEmail });\n updateFieldValidationErrorsByFieldId(\n \"organizationEmail\",\n organizationEmail,\n verificationService,\n );\n };\n\n const cancelEmailLoop = async () => {\n logger.info(\"StepEmailLoopComponent submitting form after skipping email loop\");\n const nextState = produce(viewModel, () => {});\n return verificationService.submitStep(\n VerificationStepsEnum.cancelEmailLoop,\n nextState,\n verificationService.verificationResponse,\n );\n };\n\n return (\n <>\n <div className=\"sid-header sid-l-horz-center\">\n <div role=\"main\">\n <div className=\"sid-sso-logo-container sid-l-horz-center\">\n <LogoComponent\n verificationService={verificationService}\n fallbackLogo={\n <img\n className=\"sid-sso-logo-default sid-l-lead-image\"\n alt=\"\"\n src=\"https://assets-resources.sheerid.com/common/images/2018/icons/doc-pending.svg\"\n />\n }\n />\n </div>\n <div className=\"sid-preheader-label sid-l-space-top-md\">\n <span className=\"sid-h-label\">\n <FormattedHTMLMessage id=\"instant\" defaultMessage=\"Instant\" />\n </span>\n </div>\n <AnnouncingHeader align=\"center\">\n <FormattedHTMLMessage\n id=\"step.emailLoop.collectOrganizationEmail.title\"\n defaultMessage=\"Verify using your work email address\"\n tagName=\"h1\"\n />\n </AnnouncingHeader>\n <div className=\"sid-header__subtitle-one\">\n <FormattedHTMLMessage\n id=\"step.emailLoop.collectOrganizationEmail.subtitle\"\n defaultMessage=\"Enter the email address provided by your employer and we'll send you a verification link\"\n />\n </div>\n </div>\n\n <div className=\"sid-form-region sid-email-submit sid-submit-wrapper sid-l-space-top-md\">\n <FormFieldText\n fieldId=\"emailOverride\"\n value={viewModel.organizationEmail}\n onChange={setEmailValue}\n placeholder=\"\"\n label={\n <FormattedHTMLMessage\n id=\"step.emailLoop.collectOrganizationEmail.email.label\"\n defaultMessage=\"Work email address\"\n />\n }\n errorMessage={\n (isInvalidOrgEmail && (\n <FormattedHTMLMessage\n id=\"step.emailLoop.errors.invalidEmail\"\n defaultMessage=\"This email address is not valid for instant verification. Please use an email address provided by your employer or upload documentation below.\"\n />\n )) ||\n (fieldValidationErrors.organizationEmail && (\n <FormattedHTMLMessage id=\"emailIds.invalidEmail\" defaultMessage=\"Invalid email\" />\n ))\n }\n />\n <div className=\"sid-l-space-top-sm\">\n <button\n id=\"sid-submit-btn-sso\"\n type=\"submit\"\n disabled={!!fieldValidationErrors.organizationEmail}\n onClick={() =>\n submitForm(\n viewModel,\n verificationService,\n VerificationStepsEnum.emailLoopCollectOrganizationEmail,\n )\n }\n className=\"sid-btn sid-sso-submit-btn sid-btn--dark sid-l-full-width \"\n aria-label=\"submit\"\n >\n <FormattedHTMLMessage\n id=\"step.emailLoop.collectOrganizationEmail.email.send\"\n defaultMessage=\"Send Email\"\n />\n </button>\n </div>\n\n <div className=\"sid-form-region sid-l-space-top-lg sid-l-horz-center\">\n <div className=\"sid-header__subtitle-two sid-h-bold-text\">\n <FormattedHTMLMessage\n id=\"step.emailLoop.collectOrganizationEmail.alternative\"\n defaultMessage=\"Unable to access a work email address?\"\n />\n </div>\n <div className=\"sid-form-region sid-l-space-btm-sm sid-l-space-top-sm\">\n <FormattedHTMLMessage\n id=\"step.sso.alternative\"\n defaultMessage=\"You can also verify by uploading proof of eligibility\"\n />\n </div>\n <div className=\"sid-l-space-top-sm\">\n <button\n onClick={cancelEmailLoop}\n className=\"sid-h-btn-link-like sid-link sid-h-bold-text\"\n type=\"button\"\n >\n <FormattedHTMLMessage\n id=\"step.sso.cancel\"\n defaultMessage=\"Upload Proof of Enrollment\"\n />\n </button>\n </div>\n </div>\n\n <div className=\"sid-l-space-top-lg\" />\n </div>\n </div>\n <FormFooter verificationService={verificationService} />\n </>\n );\n};\n","import React from \"react\";\nimport { injectIntl, InjectedIntl } from \"react-intl\";\n\nimport { EmailLoopResponse, VerificationService } from \"../../lib/types/types\";\n\nimport { EmailLoopCollectOrganizationEmail } from \"./EmailLoopCollectOrganizationEmail\";\nimport { EmailLoopPendingComponent } from \"./EmailLoopPending\";\n\nexport interface StepEmailLoopComponentProps {\n // eslint-disable-next-line react/no-unused-prop-types -- this prop type is reused in the sub components\n intl: InjectedIntl;\n verificationService: VerificationService;\n}\n\nexport const StepEmailLoop = ({ verificationService }: StepEmailLoopComponentProps) => {\n const isCollectOrgEmailState =\n (verificationService.verificationResponse as EmailLoopResponse).currentState ===\n \"collectOrganizationEmail\";\n return (\n <div id=\"sid-step-email-loop\" className=\"sid-step-email-loop-container sid-l-container\">\n {isCollectOrgEmailState ? (\n <EmailLoopCollectOrganizationEmail verificationService={verificationService} />\n ) : (\n <EmailLoopPendingComponent verificationService={verificationService} />\n )}\n </div>\n );\n};\n\nexport const StepEmailLoopComponent = injectIntl(StepEmailLoop);\n"],"names":["EmailLoopCollectOrganizationEmail","verificationService","viewModel","fieldValidationErrors","isInvalidOrgEmail","_a","setEmailValue","organizationEmail","updateFieldValidationErrorsByFieldId","cancelEmailLoop","logger","nextState","produce","VerificationStepsEnum","jsxs","Fragment","jsx","LogoComponent","FormattedHTMLMessage","AnnouncingHeader","FormFieldText","submitForm","FormFooter","StepEmailLoop","isCollectOrgEmailState","EmailLoopPendingComponent","StepEmailLoopComponent","injectIntl"],"mappings":";;;AAoBO,MAAMA,IAAoC,CAAC;AAAA,EAChD,qBAAAC;AACF,MAEM;;AACJ,QAAMC,IAAYD,EAAoB,WAChCE,IAAwBF,EAAoB,uBAC5CG,OAAqBC,IAAAJ,EAAoB,yBAApB,gBAAAI,EAA0C,aAAY,CAAI,GAAA;AAAA,IACnF;AAAA,EACF,GAEMC,IAAgB,CAACC,MAA8B;AACnD,IAAAN,EAAoB,gBAAgB,EAAE,GAAGC,GAAW,mBAAAK,GAAmB,GACvEC;AAAA,MACE;AAAA,MACAD;AAAA,MACAN;AAAA,IACF;AAAA,EACF,GAEMQ,IAAkB,YAAY;AAClC,IAAAC,EAAO,KAAK,kEAAkE;AACxE,UAAAC,IAAYC,EAAQV,GAAW,MAAM;AAAA,IAAA,CAAE;AAC7C,WAAOD,EAAoB;AAAA,MACzBY,EAAsB;AAAA,MACtBF;AAAA,MACAV,EAAoB;AAAA,IACtB;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AU,sBACb,UAAAA,gBAAAA,EAAA;AAAA,YAAC;AAAA,YAAA;AAAA,cACC,SAASP;AAAA,cACT,WAAU;AAAA,cACV,MAAK;AAAA,cAEL,UAAAO,gBAAAA,EAAA;AAAA,gBAACE;AAAA,gBAAA;AAAA,kBACC,IAAG;AAAA,kBACH,gBAAe;AAAA,gBAAA;AAAA,cAAA;AAAA,YACjB;AAAA,UAAA,EAEJ,CAAA;AAAA,QAAA,GACF;AAAA,QAEAF,gBAAAA,EAAAA,IAAC,OAAI,EAAA,WAAU,qBAAqB,CAAA;AAAA,MAAA,EACtC,CAAA;AAAA,IAAA,GACF;AAAA,IACAA,gBAAAA,MAACM,KAAW,qBAAArB,EAA0C,CAAA;AAAA,EAAA,GACxD;AAEJ,GCvJasB,IAAgB,CAAC,EAAE,qBAAAtB,QAAuD;AAC/E,QAAAuB,IACHvB,EAAoB,qBAA2C,iBAChE;AACF,SACGe,gBAAAA,EAAA,IAAA,OAAA,EAAI,IAAG,uBAAsB,WAAU,iDACrC,UAAAQ,IACER,gBAAAA,EAAA,IAAAhB,GAAA,EAAkC,qBAAAC,EAA0C,CAAA,IAE5Ee,gBAAAA,EAAAA,IAAAS,GAAA,EAA0B,qBAAAxB,EAA0C,CAAA,GAEzE;AAEJ,GAEayB,IAAyBC,EAAWJ,CAAa;"}
|
1
|
+
{"version":3,"file":"index-CZs-0ZMY.js","sources":["../../src/components/StepEmailLoop/EmailLoopCollectOrganizationEmail.tsx","../../src/components/StepEmailLoop/StepEmailLoopComponent.tsx"],"sourcesContent":["import React from \"react\";\nimport produce from \"immer\";\n\nimport { FormattedHTMLMessage } from \"react-intl\";\nimport { LogoComponent } from \"../LogoComponent/LogoComponent\";\nimport { FormFooterComponent as FormFooter } from \"../FormFooter/FormFooterComponent\";\nimport { FormFieldText } from \"../FormFields/FormFieldText/FormFieldText\";\nimport {\n updateFieldValidationErrorsByFieldId,\n submitForm,\n} from \"../../lib/utils/stepComponentHelpers/stepComponentHelpers\";\n\nimport { VerificationStepsEnum } from \"../../lib/types/runtimeTypes\";\nimport { logger } from \"../../lib/utils/logger/logger\";\nimport {\n EmailLoopCollectOrganizationEmailViewModel,\n VerificationService,\n} from \"../../lib/types/types\";\nimport { AnnouncingHeader } from \"../AnnouncingHeader/AnnouncingHeader\";\n\nexport const EmailLoopCollectOrganizationEmail = ({\n verificationService,\n}: {\n verificationService: VerificationService;\n}) => {\n const viewModel = verificationService.viewModel as EmailLoopCollectOrganizationEmailViewModel;\n const fieldValidationErrors = verificationService.fieldValidationErrors;\n const isInvalidOrgEmail = (verificationService.verificationResponse?.errorIds || []).includes(\n \"invalidEmail\",\n );\n\n const setEmailValue = (organizationEmail: string) => {\n verificationService.updateViewModel({ ...viewModel, organizationEmail });\n updateFieldValidationErrorsByFieldId(\n \"organizationEmail\",\n organizationEmail,\n verificationService,\n );\n };\n\n const cancelEmailLoop = async () => {\n logger.info(\"StepEmailLoopComponent submitting form after skipping email loop\");\n const nextState = produce(viewModel, () => {});\n return verificationService.submitStep(\n VerificationStepsEnum.cancelEmailLoop,\n nextState,\n verificationService.verificationResponse,\n );\n };\n\n return (\n <>\n <div className=\"sid-header sid-l-horz-center\">\n <div role=\"main\">\n <div className=\"sid-sso-logo-container sid-l-horz-center\">\n <LogoComponent\n verificationService={verificationService}\n fallbackLogo={\n <img\n className=\"sid-sso-logo-default sid-l-lead-image\"\n alt=\"\"\n src=\"https://assets-resources.sheerid.com/common/images/2018/icons/doc-pending.svg\"\n />\n }\n />\n </div>\n <div className=\"sid-preheader-label sid-l-space-top-md\">\n <span className=\"sid-h-label\">\n <FormattedHTMLMessage id=\"instant\" defaultMessage=\"Instant\" />\n </span>\n </div>\n <AnnouncingHeader align=\"center\">\n <FormattedHTMLMessage\n id=\"step.emailLoop.collectOrganizationEmail.title\"\n defaultMessage=\"Verify using your work email address\"\n tagName=\"h1\"\n />\n </AnnouncingHeader>\n <div className=\"sid-header__subtitle-one\">\n <FormattedHTMLMessage\n id=\"step.emailLoop.collectOrganizationEmail.subtitle\"\n defaultMessage=\"Enter the email address provided by your employer and we'll send you a verification link\"\n />\n </div>\n </div>\n\n <div className=\"sid-form-region sid-email-submit sid-submit-wrapper sid-l-space-top-md\">\n <FormFieldText\n fieldId=\"emailOverride\"\n value={viewModel.organizationEmail}\n onChange={setEmailValue}\n placeholder=\"\"\n label={\n <FormattedHTMLMessage\n id=\"step.emailLoop.collectOrganizationEmail.email.label\"\n defaultMessage=\"Work email address\"\n />\n }\n errorMessage={\n (isInvalidOrgEmail && (\n <FormattedHTMLMessage\n id=\"step.emailLoop.errors.invalidEmail\"\n defaultMessage=\"This email address is not valid for instant verification. Please use an email address provided by your employer or upload documentation below.\"\n />\n )) ||\n (fieldValidationErrors.organizationEmail && (\n <FormattedHTMLMessage id=\"emailIds.invalidEmail\" defaultMessage=\"Invalid email\" />\n ))\n }\n />\n <div className=\"sid-l-space-top-sm\">\n <button\n id=\"sid-submit-btn-sso\"\n type=\"submit\"\n disabled={!!fieldValidationErrors.organizationEmail}\n onClick={() =>\n submitForm(\n viewModel,\n verificationService,\n VerificationStepsEnum.emailLoopCollectOrganizationEmail,\n )\n }\n className=\"sid-btn sid-sso-submit-btn sid-btn--dark sid-l-full-width \"\n aria-label=\"submit\"\n >\n <FormattedHTMLMessage\n id=\"step.emailLoop.collectOrganizationEmail.email.send\"\n defaultMessage=\"Send Email\"\n />\n </button>\n </div>\n\n <div className=\"sid-form-region sid-l-space-top-lg sid-l-horz-center\">\n <div className=\"sid-header__subtitle-two sid-h-bold-text\">\n <FormattedHTMLMessage\n id=\"step.emailLoop.collectOrganizationEmail.alternative\"\n defaultMessage=\"Unable to access a work email address?\"\n />\n </div>\n <div className=\"sid-form-region sid-l-space-btm-sm sid-l-space-top-sm\">\n <FormattedHTMLMessage\n id=\"step.sso.alternative\"\n defaultMessage=\"You can also verify by uploading proof of eligibility\"\n />\n </div>\n <div className=\"sid-l-space-top-sm\">\n <button\n onClick={cancelEmailLoop}\n className=\"sid-h-btn-link-like sid-link sid-h-bold-text\"\n type=\"button\"\n >\n <FormattedHTMLMessage\n id=\"step.sso.cancel\"\n defaultMessage=\"Upload Proof of Enrollment\"\n />\n </button>\n </div>\n </div>\n\n <div className=\"sid-l-space-top-lg\" />\n </div>\n </div>\n <FormFooter verificationService={verificationService} />\n </>\n );\n};\n","import React from \"react\";\nimport { injectIntl, InjectedIntl } from \"react-intl\";\n\nimport { EmailLoopResponse, VerificationService } from \"../../lib/types/types\";\n\nimport { EmailLoopCollectOrganizationEmail } from \"./EmailLoopCollectOrganizationEmail\";\nimport { EmailLoopPendingComponent } from \"./EmailLoopPending\";\n\nexport interface StepEmailLoopComponentProps {\n // eslint-disable-next-line react/no-unused-prop-types -- this prop type is reused in the sub components\n intl: InjectedIntl;\n verificationService: VerificationService;\n}\n\nexport const StepEmailLoop = ({ verificationService }: StepEmailLoopComponentProps) => {\n const isCollectOrgEmailState =\n (verificationService.verificationResponse as EmailLoopResponse).currentState ===\n \"collectOrganizationEmail\";\n return (\n <div id=\"sid-step-email-loop\" className=\"sid-step-email-loop-container sid-l-container\">\n {isCollectOrgEmailState ? (\n <EmailLoopCollectOrganizationEmail verificationService={verificationService} />\n ) : (\n <EmailLoopPendingComponent verificationService={verificationService} />\n )}\n </div>\n );\n};\n\nexport const StepEmailLoopComponent = injectIntl(StepEmailLoop);\n"],"names":["EmailLoopCollectOrganizationEmail","verificationService","viewModel","fieldValidationErrors","isInvalidOrgEmail","_a","setEmailValue","organizationEmail","updateFieldValidationErrorsByFieldId","cancelEmailLoop","logger","nextState","produce","VerificationStepsEnum","jsxs","Fragment","jsx","LogoComponent","FormattedHTMLMessage","AnnouncingHeader","FormFieldText","submitForm","FormFooter","StepEmailLoop","isCollectOrgEmailState","EmailLoopPendingComponent","StepEmailLoopComponent","injectIntl"],"mappings":";;;AAoBO,MAAMA,IAAoC,CAAC;AAAA,EAChD,qBAAAC;AACF,MAEM;;AACJ,QAAMC,IAAYD,EAAoB,WAChCE,IAAwBF,EAAoB,uBAC5C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AEayB,IAAyBC,EAAWJ,CAAa;"}
|
@@ -1,11 +1,11 @@
|
|
1
1
|
|
2
2
|
/**
|
3
|
-
* VERSION: 2.115.0-alpha.
|
4
|
-
* BUILD_TIMESTAMP:
|
5
|
-
* BUILD_DATE:
|
6
|
-
* BUILD_COMMIT:
|
3
|
+
* VERSION: 2.115.0-alpha.10
|
4
|
+
* BUILD_TIMESTAMP: 1752173190450
|
5
|
+
* BUILD_DATE: Thu Jul 10 2025 18:46:30 GMT+0000 (Coordinated Universal Time)
|
6
|
+
* BUILD_COMMIT: 821fab51bd71995854e86f7cdee77a5b89617244
|
7
7
|
*/
|
8
|
-
import { ak as V, B as R, V as F, j as a, A as B, u as K, q as O } from "./es6-
|
8
|
+
import { ak as V, B as R, V as F, j as a, A as B, u as K, q as O } from "./es6-rAbRFa-6.js";
|
9
9
|
import * as N from "react";
|
10
10
|
import P, { forwardRef as S, useRef as z, useImperativeHandle as U, useEffect as Z } from "react";
|
11
11
|
import { FormattedHTMLMessage as x } from "react-intl";
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index-Bdc4azTf.js","sources":["../../node_modules/react-auth-code-input/dist/index.modern.js","../../src/components/StepCompleteAuthentication/StepCompleteAuthenticationComponent.tsx"],"sourcesContent":["import React, { forwardRef, useRef, useImperativeHandle, useEffect } from 'react';\n\nvar allowedCharactersValues = ['alpha', 'numeric', 'alphanumeric'];\nvar propsMap = {\n alpha: {\n type: 'text',\n inputMode: 'text',\n pattern: '[a-zA-Z]{1}'\n },\n alphanumeric: {\n type: 'text',\n inputMode: 'text',\n pattern: '[a-zA-Z0-9]{1}'\n },\n numeric: {\n type: 'tel',\n inputMode: 'numeric',\n pattern: '[0-9]{1}',\n min: '0',\n max: '9'\n }\n};\nvar AuthCode = forwardRef(function (_ref, ref) {\n var _ref$allowedCharacter = _ref.allowedCharacters,\n allowedCharacters = _ref$allowedCharacter === void 0 ? 'alphanumeric' : _ref$allowedCharacter,\n ariaLabel = _ref.ariaLabel,\n _ref$autoFocus = _ref.autoFocus,\n autoFocus = _ref$autoFocus === void 0 ? true : _ref$autoFocus,\n containerClassName = _ref.containerClassName,\n disabled = _ref.disabled,\n inputClassName = _ref.inputClassName,\n _ref$isPassword = _ref.isPassword,\n isPassword = _ref$isPassword === void 0 ? false : _ref$isPassword,\n _ref$length = _ref.length,\n length = _ref$length === void 0 ? 6 : _ref$length,\n placeholder = _ref.placeholder,\n onChange = _ref.onChange;\n\n if (isNaN(length) || length < 1) {\n throw new Error('Length should be a number and greater than 0');\n }\n\n if (!allowedCharactersValues.some(function (value) {\n return value === allowedCharacters;\n })) {\n throw new Error('Invalid value for allowedCharacters. Use alpha, numeric, or alphanumeric');\n }\n\n var inputsRef = useRef([]);\n var inputProps = propsMap[allowedCharacters];\n useImperativeHandle(ref, function () {\n return {\n focus: function focus() {\n if (inputsRef.current) {\n inputsRef.current[0].focus();\n }\n },\n clear: function clear() {\n if (inputsRef.current) {\n for (var i = 0; i < inputsRef.current.length; i++) {\n inputsRef.current[i].value = '';\n }\n\n inputsRef.current[0].focus();\n }\n\n sendResult();\n }\n };\n });\n useEffect(function () {\n if (autoFocus) {\n inputsRef.current[0].focus();\n }\n }, []);\n\n var sendResult = function sendResult() {\n var res = inputsRef.current.map(function (input) {\n return input.value;\n }).join('');\n onChange && onChange(res);\n };\n\n var handleOnChange = function handleOnChange(e) {\n var _e$target = e.target,\n value = _e$target.value,\n nextElementSibling = _e$target.nextElementSibling;\n\n if (value.length > 1) {\n e.target.value = value.charAt(0);\n\n if (nextElementSibling !== null) {\n nextElementSibling.focus();\n }\n } else {\n if (value.match(inputProps.pattern)) {\n if (nextElementSibling !== null) {\n nextElementSibling.focus();\n }\n } else {\n e.target.value = '';\n }\n }\n\n sendResult();\n };\n\n var handleOnKeyDown = function handleOnKeyDown(e) {\n var key = e.key;\n var target = e.target;\n\n if (key === 'Backspace') {\n if (target.value === '') {\n if (target.previousElementSibling !== null) {\n var t = target.previousElementSibling;\n t.value = '';\n t.focus();\n e.preventDefault();\n }\n } else {\n target.value = '';\n }\n\n sendResult();\n }\n };\n\n var handleOnFocus = function handleOnFocus(e) {\n e.target.select();\n };\n\n var handleOnPaste = function handleOnPaste(e) {\n var pastedValue = e.clipboardData.getData('Text');\n var currentInput = 0;\n\n for (var i = 0; i < pastedValue.length; i++) {\n var pastedCharacter = pastedValue.charAt(i);\n var currentValue = inputsRef.current[currentInput].value;\n\n if (pastedCharacter.match(inputProps.pattern)) {\n if (!currentValue) {\n inputsRef.current[currentInput].value = pastedCharacter;\n\n if (inputsRef.current[currentInput].nextElementSibling !== null) {\n inputsRef.current[currentInput].nextElementSibling.focus();\n currentInput++;\n }\n }\n }\n }\n\n sendResult();\n e.preventDefault();\n };\n\n var inputs = [];\n\n var _loop = function _loop(i) {\n inputs.push(React.createElement(\"input\", Object.assign({\n key: i,\n onChange: handleOnChange,\n onKeyDown: handleOnKeyDown,\n onFocus: handleOnFocus,\n onPaste: handleOnPaste\n }, inputProps, {\n type: isPassword ? 'password' : inputProps.type,\n ref: function ref(el) {\n inputsRef.current[i] = el;\n },\n maxLength: 1,\n className: inputClassName,\n autoComplete: i === 0 ? 'one-time-code' : 'off',\n \"aria-label\": ariaLabel ? ariaLabel + \". Character \" + (i + 1) + \".\" : \"Character \" + (i + 1) + \".\",\n disabled: disabled,\n placeholder: placeholder\n })));\n };\n\n for (var i = 0; i < length; i++) {\n _loop(i);\n }\n\n return React.createElement(\"div\", {\n className: containerClassName\n }, inputs);\n});\n\nexport default AuthCode;\n//# sourceMappingURL=index.modern.js.map\n","import * as React from \"react\";\nimport { FormattedHTMLMessage } from \"react-intl\";\n\nimport AuthCode from \"react-auth-code-input\";\nimport produce from \"immer\";\nimport { CompleteAuthenticationViewModel, VerificationService } from \"../../lib/types/types\";\nimport {\n submitForm,\n updateFieldValidationErrorsByFieldId,\n} from \"../../lib/utils/stepComponentHelpers/stepComponentHelpers\";\nimport { AUTH_TOKEN_LENGTH } from \"../../constants\";\n\nimport { VerificationStepsEnum } from \"../../lib/types/runtimeTypes\";\nimport { AnnouncingHeader } from \"../AnnouncingHeader/AnnouncingHeader\";\n\ninterface StepCompleteAuthenticationProps {\n verificationService: VerificationService;\n}\n\nexport const StepCompleteAuthenticationComponent = ({\n verificationService,\n}: StepCompleteAuthenticationProps) => {\n const viewModel = verificationService.viewModel as CompleteAuthenticationViewModel;\n const { fieldValidationErrors, verificationResponse } = verificationService;\n const { errorIds } = verificationResponse;\n\n const authInputRef = React.useRef(null);\n\n const updateCompleteAuthenticationViewmodel = (\n key: keyof CompleteAuthenticationViewModel,\n value: any,\n ) => {\n const nextState: CompleteAuthenticationViewModel = produce(\n viewModel,\n (draft: CompleteAuthenticationViewModel) => {\n (draft[key] as any) = value;\n },\n );\n verificationService.updateViewModel(nextState);\n };\n\n const manuallyVerifyViewModel = (): CompleteAuthenticationViewModel => {\n const nextState: CompleteAuthenticationViewModel = produce(\n viewModel,\n (draft: CompleteAuthenticationViewModel) => {\n draft.didManuallyVerify = true;\n delete draft.authenticationCode;\n },\n );\n verificationService.updateViewModel(nextState);\n\n return nextState;\n };\n\n React.useEffect(() => {\n if (viewModel.authenticationCode) {\n // reset local viewModel's authenticationCode to prevent form from submitting\n // prematurely when provided with an incorrect auth code.\n viewModel.authenticationCode = \"\";\n }\n }, []);\n\n React.useEffect(() => {\n if (viewModel.authenticationCode.length >= AUTH_TOKEN_LENGTH) {\n submitForm(viewModel, verificationService, VerificationStepsEnum.completeAuthentication);\n }\n }, [viewModel.authenticationCode]);\n\n return (\n <div\n id=\"sid-step-complete-authentication\"\n className=\"sid-step-complete-authentication-container sid-l-container\"\n >\n <div className=\"sid-header\">\n <AnnouncingHeader align=\"center\">\n <FormattedHTMLMessage\n id=\"step.completeAuthentication.title\"\n defaultMessage=\"Verify with Remember Me\"\n />\n </AnnouncingHeader>\n <div className=\"sid-header__subtitle sid-l-horz-center\">\n <FormattedHTMLMessage\n id=\"step.completeAuthentication.subtitle\"\n defaultMessage=\"Enter the code sent to your email.\"\n />\n </div>\n </div>\n <div className=\"sid-l-space-top-md\" />\n <div className=\"auth-code\">\n <AuthCode\n onChange={(token) => {\n updateCompleteAuthenticationViewmodel(\"authenticationCode\", token);\n updateFieldValidationErrorsByFieldId(\"authenticationCode\", token, verificationService);\n }}\n ref={authInputRef}\n allowedCharacters=\"numeric\"\n length={AUTH_TOKEN_LENGTH}\n isPassword\n containerClassName=\"auth-code__container\"\n inputClassName={`auth-code__input${\n fieldValidationErrors.authenticationCode ? \" auth-code__input-error\" : \"\"\n }`}\n />\n {fieldValidationErrors.authenticationCode ||\n (errorIds?.length > 0 && (\n <div className=\"auth-code__error-container\">\n <div>\n <img\n alt=\"red-exclaimation-circle\"\n src=\"https://assets-resources.sheerid.com/common/images/2018/icons/red-exclaimation-circle.svg\"\n />\n </div>\n <div className=\"auth-code__error-text\">\n <FormattedHTMLMessage\n id=\"errorId.invalidAuthenticationLoopToken\"\n defaultMessage=\"The code provided is invalid\"\n />\n </div>\n </div>\n ))}\n </div>\n <div className=\"sid-complete-auth__manually-verify-button-continer\">\n <button\n type=\"button\"\n className=\"sid-btn sid-btn-light sid-complete-auth__manually-verify-button\"\n aria-label=\"submit\"\n onClick={() => {\n submitForm(\n manuallyVerifyViewModel(),\n verificationService,\n VerificationStepsEnum.completeAuthentication,\n );\n }}\n >\n <FormattedHTMLMessage\n id=\"step.completeAuthentication.manuallyVerifyButton\"\n defaultMessage=\"Manually verify\"\n />\n </button>\n </div>\n </div>\n );\n};\n"],"names":["allowedCharactersValues","propsMap","AuthCode","forwardRef","_ref","ref","_ref$allowedCharacter","allowedCharacters","ariaLabel","_ref$autoFocus","autoFocus","containerClassName","disabled","inputClassName","_ref$isPassword","isPassword","_ref$length","length","placeholder","onChange","value","inputsRef","useRef","inputProps","useImperativeHandle","i","sendResult","useEffect","res","input","handleOnChange","_e$target","nextElementSibling","handleOnKeyDown","key","target","t","handleOnFocus","handleOnPaste","pastedValue","currentInput","pastedCharacter","currentValue","inputs","_loop","React","el","StepCompleteAuthenticationComponent","verificationService","viewModel","fieldValidationErrors","verificationResponse","errorIds","authInputRef","updateCompleteAuthenticationViewmodel","nextState","produce","draft","manuallyVerifyViewModel","AUTH_TOKEN_LENGTH","submitForm","VerificationStepsEnum","jsxs","jsx","AnnouncingHeader","FormattedHTMLMessage","token","updateFieldValidationErrorsByFieldId"],"mappings":";;;;AAEA,IAAIA,IAA0B,CAAC,SAAS,WAAW,cAAc,GAC7DC,IAAW;AAAA,EACb,OAAO;AAAA,IACL,MAAM;AAAA,IACN,WAAW;AAAA,IACX,SAAS;AAAA,EACV;AAAA,EACD,cAAc;AAAA,IACZ,MAAM;AAAA,IACN,WAAW;AAAA,IACX,SAAS;AAAA,EACV;AAAA,EACD,SAAS;AAAA,IACP,MAAM;AAAA,IACN,WAAW;AAAA,IACX,SAAS;AAAA,IACT,KAAK;AAAA,IACL,KAAK;AAAA,EACT;AACA,GACIC,IAAWC,EAAW,SAAUC,GAAMC,GAAK;AAC7C,MAAIC,IAAwBF,EAAK,mBAC7BG,IAAoBD,MAA0B,SAAS,iBAAiBA,GACxEE,IAAYJ,EAAK,WACjBK,IAAiBL,EAAK,WACtBM,IAAYD,MAAmB,SAAS,KAAOA,GAC/CE,IAAqBP,EAAK,oBAC1BQ,IAAWR,EAAK,UAChBS,IAAiBT,EAAK,gBACtBU,IAAkBV,EAAK,YACvBW,IAAaD,MAAoB,SAAS,KAAQA,GAClDE,IAAcZ,EAAK,QACnBa,IAASD,MAAgB,SAAS,IAAIA,GACtCE,IAAcd,EAAK,aACnBe,IAAWf,EAAK;AAEpB,MAAI,MAAMa,CAAM,KAAKA,IAAS;AAC5B,UAAM,IAAI,MAAM,8CAA8C;AAGhE,MAAI,CAACjB,EAAwB,KAAK,SAAUoB,GAAO;AACjD,WAAOA,MAAUb;AAAA,EACrB,CAAG;AACC,UAAM,IAAI,MAAM,0EAA0E;AAG5F,MAAIc,IAAYC,EAAO,EAAE,GACrBC,IAAatB,EAASM,CAAiB;AAC3C,EAAAiB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AA,UAAA,EACF,CAAA;AAAA,QAAA,GAEN;AAAA,QACAF,gBAAAA,EAAAA,IAAC,OAAI,EAAA,WAAU,sDACb,UAAAA,gBAAAA,EAAA;AAAA,UAAC;AAAA,UAAA;AAAA,YACC,MAAK;AAAA,YACL,WAAU;AAAA,YACV,cAAW;AAAA,YACX,SAAS,MAAM;AACb,cAAAH;AAAA,gBACEF,EAAwB;AAAA,gBACxBV;AAAA,gBACAa,EAAsB;AAAA,cACxB;AAAA,YACF;AAAA,YAEA,UAAAE,gBAAAA,EAAA;AAAA,cAACE;AAAA,cAAA;AAAA,gBACC,IAAG;AAAA,gBACH,gBAAe;AAAA,cAAA;AAAA,YAAA;AAAA,UACjB;AAAA,QAAA,EAEJ,CAAA;AAAA,MAAA;AAAA,IAAA;AAAA,EACF;AAEJ;","x_google_ignoreList":[0]}
|
1
|
+
{"version":3,"file":"index-CdjuV44S.js","sources":["../../node_modules/react-auth-code-input/dist/index.modern.js","../../src/components/StepCompleteAuthentication/StepCompleteAuthenticationComponent.tsx"],"sourcesContent":["import React, { forwardRef, useRef, useImperativeHandle, useEffect } from 'react';\n\nvar allowedCharactersValues = ['alpha', 'numeric', 'alphanumeric'];\nvar propsMap = {\n alpha: {\n type: 'text',\n inputMode: 'text',\n pattern: '[a-zA-Z]{1}'\n },\n alphanumeric: {\n type: 'text',\n inputMode: 'text',\n pattern: '[a-zA-Z0-9]{1}'\n },\n numeric: {\n type: 'tel',\n inputMode: 'numeric',\n pattern: '[0-9]{1}',\n min: '0',\n max: '9'\n }\n};\nvar AuthCode = forwardRef(function (_ref, ref) {\n var _ref$allowedCharacter = _ref.allowedCharacters,\n allowedCharacters = _ref$allowedCharacter === void 0 ? 'alphanumeric' : _ref$allowedCharacter,\n ariaLabel = _ref.ariaLabel,\n _ref$autoFocus = _ref.autoFocus,\n autoFocus = _ref$autoFocus === void 0 ? true : _ref$autoFocus,\n containerClassName = _ref.containerClassName,\n disabled = _ref.disabled,\n inputClassName = _ref.inputClassName,\n _ref$isPassword = _ref.isPassword,\n isPassword = _ref$isPassword === void 0 ? false : _ref$isPassword,\n _ref$length = _ref.length,\n length = _ref$length === void 0 ? 6 : _ref$length,\n placeholder = _ref.placeholder,\n onChange = _ref.onChange;\n\n if (isNaN(length) || length < 1) {\n throw new Error('Length should be a number and greater than 0');\n }\n\n if (!allowedCharactersValues.some(function (value) {\n return value === allowedCharacters;\n })) {\n throw new Error('Invalid value for allowedCharacters. Use alpha, numeric, or alphanumeric');\n }\n\n var inputsRef = useRef([]);\n var inputProps = propsMap[allowedCharacters];\n useImperativeHandle(ref, function () {\n return {\n focus: function focus() {\n if (inputsRef.current) {\n inputsRef.current[0].focus();\n }\n },\n clear: function clear() {\n if (inputsRef.current) {\n for (var i = 0; i < inputsRef.current.length; i++) {\n inputsRef.current[i].value = '';\n }\n\n inputsRef.current[0].focus();\n }\n\n sendResult();\n }\n };\n });\n useEffect(function () {\n if (autoFocus) {\n inputsRef.current[0].focus();\n }\n }, []);\n\n var sendResult = function sendResult() {\n var res = inputsRef.current.map(function (input) {\n return input.value;\n }).join('');\n onChange && onChange(res);\n };\n\n var handleOnChange = function handleOnChange(e) {\n var _e$target = e.target,\n value = _e$target.value,\n nextElementSibling = _e$target.nextElementSibling;\n\n if (value.length > 1) {\n e.target.value = value.charAt(0);\n\n if (nextElementSibling !== null) {\n nextElementSibling.focus();\n }\n } else {\n if (value.match(inputProps.pattern)) {\n if (nextElementSibling !== null) {\n nextElementSibling.focus();\n }\n } else {\n e.target.value = '';\n }\n }\n\n sendResult();\n };\n\n var handleOnKeyDown = function handleOnKeyDown(e) {\n var key = e.key;\n var target = e.target;\n\n if (key === 'Backspace') {\n if (target.value === '') {\n if (target.previousElementSibling !== null) {\n var t = target.previousElementSibling;\n t.value = '';\n t.focus();\n e.preventDefault();\n }\n } else {\n target.value = '';\n }\n\n sendResult();\n }\n };\n\n var handleOnFocus = function handleOnFocus(e) {\n e.target.select();\n };\n\n var handleOnPaste = function handleOnPaste(e) {\n var pastedValue = e.clipboardData.getData('Text');\n var currentInput = 0;\n\n for (var i = 0; i < pastedValue.length; i++) {\n var pastedCharacter = pastedValue.charAt(i);\n var currentValue = inputsRef.current[currentInput].value;\n\n if (pastedCharacter.match(inputProps.pattern)) {\n if (!currentValue) {\n inputsRef.current[currentInput].value = pastedCharacter;\n\n if (inputsRef.current[currentInput].nextElementSibling !== null) {\n inputsRef.current[currentInput].nextElementSibling.focus();\n currentInput++;\n }\n }\n }\n }\n\n sendResult();\n e.preventDefault();\n };\n\n var inputs = [];\n\n var _loop = function _loop(i) {\n inputs.push(React.createElement(\"input\", Object.assign({\n key: i,\n onChange: handleOnChange,\n onKeyDown: handleOnKeyDown,\n onFocus: handleOnFocus,\n onPaste: handleOnPaste\n }, inputProps, {\n type: isPassword ? 'password' : inputProps.type,\n ref: function ref(el) {\n inputsRef.current[i] = el;\n },\n maxLength: 1,\n className: inputClassName,\n autoComplete: i === 0 ? 'one-time-code' : 'off',\n \"aria-label\": ariaLabel ? ariaLabel + \". Character \" + (i + 1) + \".\" : \"Character \" + (i + 1) + \".\",\n disabled: disabled,\n placeholder: placeholder\n })));\n };\n\n for (var i = 0; i < length; i++) {\n _loop(i);\n }\n\n return React.createElement(\"div\", {\n className: containerClassName\n }, inputs);\n});\n\nexport default AuthCode;\n//# sourceMappingURL=index.modern.js.map\n","import * as React from \"react\";\nimport { FormattedHTMLMessage } from \"react-intl\";\n\nimport AuthCode from \"react-auth-code-input\";\nimport produce from \"immer\";\nimport { CompleteAuthenticationViewModel, VerificationService } from \"../../lib/types/types\";\nimport {\n submitForm,\n updateFieldValidationErrorsByFieldId,\n} from \"../../lib/utils/stepComponentHelpers/stepComponentHelpers\";\nimport { AUTH_TOKEN_LENGTH } from \"../../constants\";\n\nimport { VerificationStepsEnum } from \"../../lib/types/runtimeTypes\";\nimport { AnnouncingHeader } from \"../AnnouncingHeader/AnnouncingHeader\";\n\ninterface StepCompleteAuthenticationProps {\n verificationService: VerificationService;\n}\n\nexport const StepCompleteAuthenticationComponent = ({\n verificationService,\n}: StepCompleteAuthenticationProps) => {\n const viewModel = verificationService.viewModel as CompleteAuthenticationViewModel;\n const { fieldValidationErrors, verificationResponse } = verificationService;\n const { errorIds } = verificationResponse;\n\n const authInputRef = React.useRef(null);\n\n const updateCompleteAuthenticationViewmodel = (\n key: keyof CompleteAuthenticationViewModel,\n value: any,\n ) => {\n const nextState: CompleteAuthenticationViewModel = produce(\n viewModel,\n (draft: CompleteAuthenticationViewModel) => {\n (draft[key] as any) = value;\n },\n );\n verificationService.updateViewModel(nextState);\n };\n\n const manuallyVerifyViewModel = (): CompleteAuthenticationViewModel => {\n const nextState: CompleteAuthenticationViewModel = produce(\n viewModel,\n (draft: CompleteAuthenticationViewModel) => {\n draft.didManuallyVerify = true;\n delete draft.authenticationCode;\n },\n );\n verificationService.updateViewModel(nextState);\n\n return nextState;\n };\n\n React.useEffect(() => {\n if (viewModel.authenticationCode) {\n // reset local viewModel's authenticationCode to prevent form from submitting\n // prematurely when provided with an incorrect auth code.\n viewModel.authenticationCode = \"\";\n }\n }, []);\n\n React.useEffect(() => {\n if (viewModel.authenticationCode.length >= AUTH_TOKEN_LENGTH) {\n submitForm(viewModel, verificationService, VerificationStepsEnum.completeAuthentication);\n }\n }, [viewModel.authenticationCode]);\n\n return (\n <div\n id=\"sid-step-complete-authentication\"\n className=\"sid-step-complete-authentication-container sid-l-container\"\n >\n <div className=\"sid-header\">\n <AnnouncingHeader align=\"center\">\n <FormattedHTMLMessage\n id=\"step.completeAuthentication.title\"\n defaultMessage=\"Verify with Remember Me\"\n />\n </AnnouncingHeader>\n <div className=\"sid-header__subtitle sid-l-horz-center\">\n <FormattedHTMLMessage\n id=\"step.completeAuthentication.subtitle\"\n defaultMessage=\"Enter the code sent to your email.\"\n />\n </div>\n </div>\n <div className=\"sid-l-space-top-md\" />\n <div className=\"auth-code\">\n <AuthCode\n onChange={(token) => {\n updateCompleteAuthenticationViewmodel(\"authenticationCode\", token);\n updateFieldValidationErrorsByFieldId(\"authenticationCode\", token, verificationService);\n }}\n ref={authInputRef}\n allowedCharacters=\"numeric\"\n length={AUTH_TOKEN_LENGTH}\n isPassword\n containerClassName=\"auth-code__container\"\n inputClassName={`auth-code__input${\n fieldValidationErrors.authenticationCode ? \" auth-code__input-error\" : \"\"\n }`}\n />\n {fieldValidationErrors.authenticationCode ||\n (errorIds?.length > 0 && (\n <div className=\"auth-code__error-container\">\n <div>\n <img\n alt=\"red-exclaimation-circle\"\n src=\"https://assets-resources.sheerid.com/common/images/2018/icons/red-exclaimation-circle.svg\"\n />\n </div>\n <div className=\"auth-code__error-text\">\n <FormattedHTMLMessage\n id=\"errorId.invalidAuthenticationLoopToken\"\n defaultMessage=\"The code provided is invalid\"\n />\n </div>\n </div>\n ))}\n </div>\n <div className=\"sid-complete-auth__manually-verify-button-continer\">\n <button\n type=\"button\"\n className=\"sid-btn sid-btn-light sid-complete-auth__manually-verify-button\"\n aria-label=\"submit\"\n onClick={() => {\n submitForm(\n manuallyVerifyViewModel(),\n verificationService,\n VerificationStepsEnum.completeAuthentication,\n );\n }}\n >\n <FormattedHTMLMessage\n id=\"step.completeAuthentication.manuallyVerifyButton\"\n defaultMessage=\"Manually verify\"\n />\n </button>\n </div>\n </div>\n );\n};\n"],"names":["allowedCharactersValues","propsMap","AuthCode","forwardRef","_ref","ref","_ref$allowedCharacter","allowedCharacters","ariaLabel","_ref$autoFocus","autoFocus","containerClassName","disabled","inputClassName","_ref$isPassword","isPassword","_ref$length","length","placeholder","onChange","value","inputsRef","useRef","inputProps","useImperativeHandle","i","sendResult","useEffect","res","input","handleOnChange","_e$target","nextElementSibling","handleOnKeyDown","key","target","t","handleOnFocus","handleOnPaste","pastedValue","currentInput","pastedCharacter","currentValue","inputs","_loop","React","el","StepCompleteAuthenticationComponent","verificationService","viewModel","fieldValidationErrors","verificationResponse","errorIds","authInputRef","updateCompleteAuthenticationViewmodel","nextState","produce","draft","manuallyVerifyViewModel","AUTH_TOKEN_LENGTH","submitForm","VerificationStepsEnum","jsxs","jsx","AnnouncingHeader","FormattedHTMLMessage","token","updateFieldValidationErrorsByFieldId"],"mappings":";;;;AAEA,IAAIA,IAA0B,CAAC,SAAS,WAAW,cAAc,GAC7DC,IAAW;AAAA,EACb,OAAO;AAAA,IACL,MAAM;AAAA,IACN,WAAW;AAAA,IACX,SAAS;AAAA,EACV;AAAA,EACD,cAAc;AAAA,IACZ,MAAM;AAAA,IACN,WAAW;AAAA,IACX,SAAS;AAAA,EACV;AAAA,EACD,SAAS;AAAA,IACP,MAAM;AAAA,IACN,WAAW;AAAA,IACX,SAAS;AAAA,IACT,KAAK;AAAA,IACL,KAAK;AAAA,EACT;AACA,GACIC,IAAWC,EAAW,SAAUC,GAAMC,GAAK;AAC7C,MAAIC,IAAwBF,EAAK,mBAC7BG,IAAoBD,MAA0B,SAAS,iBAAiBA,GACxEE,IAAYJ,EAAK,WACjBK,IAAiBL,EAAK,WACtBM,IAAYD,MAAmB,SAAS,KAAOA,GAC/CE,IAAqBP,EAAK,oBAC1BQ,IAAWR,EAAK,UAChBS,IAAiBT,EAAK,gBACtBU,IAAkBV,EAAK,YACvBW,IAAaD,MAAoB,SAAS,KAAQA,GAClDE,IAAcZ,EAAK,QACnBa,IAASD,MAAgB,SAAS,IAAIA,GACtCE,IAAcd,EAAK,aACnBe,IAAWf,EAAK;AAEpB,MAAI,MAAMa,CAAM,KAAKA,IAAS;AAC5B,UAAM,IAAI,MAAM,8CAA8C;AAGhE,MAAI,CAACjB,EAAwB,KAAK,SAAUoB,GAAO;AACjD,WAAOA,MAAUb;AAAA,EACrB,CAAG;AACC,UAAM,IAAI,MAAM,0EAA0E;AAG5F,MAAIc,IAAYC,EAAO,EAAE,GACrBC,IAAatB,EAASM,CAAiB;AAC3C,EAAAiB,EAAoBnB,GAAK,WAAY;AACnC,WAAO;AAAA,MACL,OAAO,WAAiB;AACtB,QAAIgB,EAAU,WACZA,EAAU,QAAQ,CAAC,EAAE,MAAO;AAAA,MAE/B;A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AAA,UAAA;AAAA,YACC,MAAK;AAAA,YACL,WAAU;AAAA,YACV,cAAW;AAAA,YACX,SAAS,MAAM;AACb,cAAAH;AAAA,gBACEF,EAAwB;AAAA,gBACxBV;AAAA,gBACAa,EAAsB;AAAA,cACxB;AAAA,YACF;AAAA,YAEA,UAAAE,gBAAAA,EAAA;AAAA,cAACE;AAAA,cAAA;AAAA,gBACC,IAAG;AAAA,gBACH,gBAAe;AAAA,cAAA;AAAA,YAAA;AAAA,UACjB;AAAA,QAAA,EAEJ,CAAA;AAAA,MAAA;AAAA,IAAA;AAAA,EACF;AAEJ;","x_google_ignoreList":[0]}
|
@@ -0,0 +1,11 @@
|
|
1
|
+
|
2
|
+
/**
|
3
|
+
* VERSION: 2.115.0-alpha.10
|
4
|
+
* BUILD_TIMESTAMP: 1752173190450
|
5
|
+
* BUILD_DATE: Thu Jul 10 2025 18:46:30 GMT+0000 (Coordinated Universal Time)
|
6
|
+
* BUILD_COMMIT: 821fab51bd71995854e86f7cdee77a5b89617244
|
7
|
+
*/
|
8
|
+
import { c as f } from "./es6-rAbRFa-6.js";
|
9
|
+
export {
|
10
|
+
f as default
|
11
|
+
};
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index-CnOAaaK6.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
|
@@ -1,11 +1,11 @@
|
|
1
1
|
|
2
2
|
/**
|
3
|
-
* VERSION: 2.115.0-alpha.
|
4
|
-
* BUILD_TIMESTAMP:
|
5
|
-
* BUILD_DATE:
|
6
|
-
* BUILD_COMMIT:
|
3
|
+
* VERSION: 2.115.0-alpha.10
|
4
|
+
* BUILD_TIMESTAMP: 1752173190450
|
5
|
+
* BUILD_DATE: Thu Jul 10 2025 18:46:30 GMT+0000 (Coordinated Universal Time)
|
6
|
+
* BUILD_COMMIT: 821fab51bd71995854e86f7cdee77a5b89617244
|
7
7
|
*/
|
8
|
-
import { aY as K, aZ as q, a_ as It, a$ as h, j as t, b0 as n, aP as u, at as ye, aD as Et, e as vt, b1 as Ut, i as jt, b2 as We, r as Dt, A as _t, b3 as At, b4 as wt, b5 as Rt, z as Ft, b6 as Nt, b7 as Tt, b8 as Ot, p as Ct, l as Le, V as Ie, b9 as St, ba as Lt, bb as Mt, bc as kt, q as Ge, bd as Pt, be as Bt } from "./es6-
|
8
|
+
import { aY as K, aZ as q, a_ as It, a$ as h, j as t, b0 as n, aP as u, at as ye, aD as Et, e as vt, b1 as Ut, i as jt, b2 as We, r as Dt, A as _t, b3 as At, b4 as wt, b5 as Rt, z as Ft, b6 as Nt, b7 as Tt, b8 as Ot, p as Ct, l as Le, V as Ie, b9 as St, ba as Lt, bb as Mt, bc as kt, q as Ge, bd as Pt, be as Bt } from "./es6-rAbRFa-6.js";
|
9
9
|
import * as Ue from "react";
|
10
10
|
import Yt, { forwardRef as Ht, useImperativeHandle as zt, Fragment as Vt, useMemo as Ee, useRef as Me, useReducer as Wt, useEffect as $e, useCallback as N, useState as ne } from "react";
|
11
11
|
import { FormattedHTMLMessage as m, injectIntl as Gt } from "react-intl";
|