@sheerid/jslib-nightly 2.154.0-alpha.1 → 2.155.0-alpha.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 +22 -20
- package/_mysheerid-preview.js.map +1 -1
- package/chunk/EmailLoopPending-ZOpr2Sd2.js +4 -4
- package/chunk/EmailLoopPending-pdu6KCZh.js +4 -4
- package/chunk/LicensedProfessionalOrganizationComponent-C8XqJ4_r.js +4 -4
- package/chunk/LicensedProfessionalOrganizationComponent-D-jfKTb1.js +4 -4
- package/chunk/Onfido-BG8cDEVW.js +4 -4
- package/chunk/StepIDCheckLoopOnfido-C59BolDi.js +4 -4
- package/chunk/StepIDCheckLoopOnfido-DxQwOLAT.js +4 -4
- package/chunk/StepIDCheckLoopRegula-CsFE_4Te.js +4 -4
- package/chunk/StepIDCheckLoopRegula-DmDnFC2G.js +4 -4
- package/chunk/StepInactiveMilitaryPersonalInfoComponent-B0HM0oU8.js +4 -4
- package/chunk/StepInactiveMilitaryPersonalInfoComponent-f-Vkz0g7.js +4 -4
- package/chunk/ar-C6UINoDh.js +4 -4
- package/chunk/bg-D2YPP9vs.js +4 -4
- package/chunk/bn-IN-C0-PoVs5.js +4 -4
- package/chunk/cs-D9B9Rlo3.js +4 -4
- package/chunk/da-DPjIvv9n.js +4 -4
- package/chunk/de-CJy-ZW4p.js +4 -4
- package/chunk/el--KRZzRcW.js +4 -4
- package/chunk/en-GB-JwandVD2.js +4 -4
- package/chunk/es-DkkLxFgg.js +4 -4
- package/chunk/es-ES-EYdK4KcQ.js +4 -4
- package/chunk/fi-Csm41Hsj.js +4 -4
- package/chunk/fr-BHbA7ulv.js +4 -4
- package/chunk/fr-CA-De9Ij0qL.js +4 -4
- package/chunk/ga-FZKbE4_w.js +4 -4
- package/chunk/hi-IN-5KudBDg2.js +4 -4
- package/chunk/hr-ChbZkokl.js +4 -4
- package/chunk/hu-hbUB1cYx.js +4 -4
- package/chunk/id-6QYQikxh.js +4 -4
- package/chunk/index-B2QviHhu.js +4 -4
- package/chunk/index-B3ez232a.js +4 -4
- package/chunk/index-B4gdV8s6.js +4 -4
- package/chunk/index-B4tYkrWL.js +4 -4
- package/chunk/index-B6vb6UM_.js +4 -4
- package/chunk/index-BAHIZ4mf.js +4 -4
- package/chunk/index-BFbpUbk0.js +4 -4
- package/chunk/index-BGcK4jIu.js +4 -4
- package/chunk/index-BGyQS1iv.js +4 -4
- package/chunk/index-BPSsj5IJ.js +4 -4
- package/chunk/index-BggzUiyL.js +4 -4
- package/chunk/index-ByKnn_8W.js +4 -4
- package/chunk/index-C1RsiZ-I.js +4 -4
- package/chunk/index-C3puJbMQ.js +4 -4
- package/chunk/index-CAqwyxjO.js +4 -4
- package/chunk/index-CD9uhZhR.js +4 -4
- package/chunk/index-CL2wO6m-.js +4 -4
- package/chunk/index-CYZfa9V6.js +4 -4
- package/chunk/index-Ci1MhwSO.js +4 -4
- package/chunk/index-Clk5kQv2.js +4 -4
- package/chunk/index-Crb7Nhvh.js +4 -4
- package/chunk/index-CvOkO-lY.js +4 -4
- package/chunk/index-CzHKAw6X.js +4 -4
- package/chunk/index-D51S45xm.js +4 -4
- package/chunk/index-D673DKFG.js +4 -4
- package/chunk/index-DCyWqpgt.js +4 -4
- package/chunk/index-DIkWpujR.js +4 -4
- package/chunk/index-DMztrPpo.js +4 -4
- package/chunk/index-DP88H7RY.js +4 -4
- package/chunk/index-D_vy-x3C.js +4 -4
- package/chunk/index-Dbh2iG5X.js +4 -4
- package/chunk/index-Dh-e2MRZ.js +4 -4
- package/chunk/index-Dj3vY_6F.js +4 -4
- package/chunk/index-Do9WX18T.js +4 -4
- package/chunk/index-Dva8rjTE.js +4 -4
- package/chunk/index-ivqByqgE.js +4 -4
- package/chunk/index-kaVa-KtS.js +4 -4
- package/chunk/index-n5NkRJj7.js +4 -4
- package/chunk/index-z2oAhMO1.js +4 -4
- package/chunk/is-JSULxNAU.js +4 -4
- package/chunk/it-CftnqhJ1.js +4 -4
- package/chunk/iw-JvquXLl7.js +4 -4
- package/chunk/ja-Sln1PgIo.js +4 -4
- package/chunk/ko-CgsWx3jN.js +4 -4
- package/chunk/lo-DcAaRj_p.js +4 -4
- package/chunk/lt-BTDfiORY.js +4 -4
- package/chunk/ms-Bg4uf_PC.js +4 -4
- package/chunk/nl-BE-C8vGCGR6.js +4 -4
- package/chunk/nl-CE6OuVwG.js +4 -4
- package/chunk/no-DfiC0DZA.js +4 -4
- package/chunk/pl-DDzIhLa9.js +4 -4
- package/chunk/pt-BR-Be7bueat.js +4 -4
- package/chunk/pt-DjjnoPiQ.js +4 -4
- package/chunk/ro-pYdJyg9X.js +4 -4
- package/chunk/ru-8gyiW77-.js +4 -4
- package/chunk/sk-CNLmprV4.js +4 -4
- package/chunk/sl-CIkfRL9W.js +4 -4
- package/chunk/sr-DFluT8HS.js +4 -4
- package/chunk/sv-uNJ_H4zx.js +4 -4
- package/chunk/sw-DkbMNqbB.js +4 -4
- package/chunk/th-rQ-xrExr.js +4 -4
- package/chunk/tr-Jf-3Eetm.js +4 -4
- package/chunk/uk-DcqmUwms.js +4 -4
- package/chunk/ur-DUh-uC12.js +4 -4
- package/chunk/useCollectFieldsEndpoint-D0VXzWyt.js +4 -4
- package/chunk/useCollectFieldsEndpoint-DIzHv7w9.js +4 -4
- package/chunk/vi-BKQI13mZ.js +4 -4
- package/chunk/zh-HK-BTRO-Evg.js +4 -4
- package/chunk/zh-wjTwZoSd.js +4 -4
- package/chunk/zu-Bby0ritc.js +4 -4
- package/es6.css +4 -4
- package/jslib.js +5 -5
- package/lib/{EmailLoopPending-BqUcoiJD.js → EmailLoopPending-DaSE0O7S.js} +5 -5
- package/lib/{EmailLoopPending-BqUcoiJD.js.map → EmailLoopPending-DaSE0O7S.js.map} +1 -1
- package/lib/{LicensedProfessionalOrganizationComponent-DC2J_FAh.js → LicensedProfessionalOrganizationComponent-CYWY5WnI.js} +5 -5
- package/lib/{LicensedProfessionalOrganizationComponent-DC2J_FAh.js.map → LicensedProfessionalOrganizationComponent-CYWY5WnI.js.map} +1 -1
- package/lib/Onfido-BG8cDEVW.js +4 -4
- package/lib/StepCollectMilitaryStatusComponent-D3mh1K_0.js +11 -0
- package/lib/{StepCollectMilitaryStatusComponent-CM3nKRIF.js.map → StepCollectMilitaryStatusComponent-D3mh1K_0.js.map} +1 -1
- package/lib/{StepIDCheckLoopOnfido-BBUe7npS.js → StepIDCheckLoopOnfido-BZ6uFX86.js} +5 -5
- package/lib/{StepIDCheckLoopOnfido-BBUe7npS.js.map → StepIDCheckLoopOnfido-BZ6uFX86.js.map} +1 -1
- package/lib/{StepIDCheckLoopRegula-CKwejysJ.js → StepIDCheckLoopRegula-d_YWU50q.js} +5 -5
- package/lib/{StepIDCheckLoopRegula-CKwejysJ.js.map → StepIDCheckLoopRegula-d_YWU50q.js.map} +1 -1
- package/lib/{StepInactiveMilitaryPersonalInfoComponent-BQMwM8hI.js → StepInactiveMilitaryPersonalInfoComponent-qrp0M25L.js} +6 -6
- package/lib/{StepInactiveMilitaryPersonalInfoComponent-BQMwM8hI.js.map → StepInactiveMilitaryPersonalInfoComponent-qrp0M25L.js.map} +1 -1
- package/lib/{VerificationApiUtils-D1kGTZ4A.js → VerificationApiUtils-Bfa0FyTw.js} +5 -5
- package/lib/{VerificationApiUtils-D1kGTZ4A.js.map → VerificationApiUtils-Bfa0FyTw.js.map} +1 -1
- package/lib/ar-C6UINoDh.js +4 -4
- package/lib/bg-D2YPP9vs.js +4 -4
- package/lib/bn-IN-C0-PoVs5.js +4 -4
- package/lib/cs-D9B9Rlo3.js +4 -4
- package/lib/da-DPjIvv9n.js +4 -4
- package/lib/de-CJy-ZW4p.js +4 -4
- package/lib/el--KRZzRcW.js +4 -4
- package/lib/en-GB-JwandVD2.js +4 -4
- package/lib/es-DkkLxFgg.js +4 -4
- package/lib/es-ES-EYdK4KcQ.js +4 -4
- package/lib/{es6-OV3Jb0XZ.js → es6-CDSYs19h.js} +49 -47
- package/lib/{es6-OV3Jb0XZ.js.map → es6-CDSYs19h.js.map} +1 -1
- package/lib/fi-Csm41Hsj.js +4 -4
- package/lib/fr-BHbA7ulv.js +4 -4
- package/lib/fr-CA-De9Ij0qL.js +4 -4
- package/lib/ga-FZKbE4_w.js +4 -4
- package/lib/hi-IN-5KudBDg2.js +4 -4
- package/lib/hr-ChbZkokl.js +4 -4
- package/lib/hu-hbUB1cYx.js +4 -4
- package/lib/id-6QYQikxh.js +4 -4
- package/lib/{index-qAYsPIzQ.js → index-5eQfUoCy.js} +5 -5
- package/lib/{index-qAYsPIzQ.js.map → index-5eQfUoCy.js.map} +1 -1
- package/lib/index-B72kBRug.js +11 -0
- package/lib/index-B72kBRug.js.map +1 -0
- package/lib/{index-_ecOHFaL.js → index-BAF2UqdB.js} +5 -5
- package/lib/{index-_ecOHFaL.js.map → index-BAF2UqdB.js.map} +1 -1
- package/lib/{index-DShQZLDL.js → index-BLWdEGLX.js} +7 -7
- package/lib/{index-DShQZLDL.js.map → index-BLWdEGLX.js.map} +1 -1
- package/lib/index-BneHan7D.js +11 -0
- package/lib/index-BneHan7D.js.map +1 -0
- package/lib/index-BoVbUi8F.js +11 -0
- package/lib/index-BoVbUi8F.js.map +1 -0
- package/lib/{index-DKmNpWRf.js → index-BwfIYg1o.js} +5 -5
- package/lib/{index-DKmNpWRf.js.map → index-BwfIYg1o.js.map} +1 -1
- package/lib/{index-8MyTtx0d.js → index-C96e7Rqr.js} +5 -5
- package/lib/{index-8MyTtx0d.js.map → index-C96e7Rqr.js.map} +1 -1
- package/lib/{index-D66j5O-q.js → index-CkUHmR6C.js} +5 -5
- package/lib/{index-D66j5O-q.js.map → index-CkUHmR6C.js.map} +1 -1
- package/lib/{index-vSiU7c9-.js → index-DFnVlW7k.js} +6 -6
- package/lib/{index-vSiU7c9-.js.map → index-DFnVlW7k.js.map} +1 -1
- package/lib/index-DIkWpujR.js +4 -4
- package/lib/{index-DlRRsuVO.js → index-DbDwqhYQ.js} +6 -6
- package/lib/{index-DlRRsuVO.js.map → index-DbDwqhYQ.js.map} +1 -1
- package/lib/index-DqUW1im7.js +11 -0
- package/lib/index-DqUW1im7.js.map +1 -0
- package/lib/{index-Ml4PAg0F.js → index-GqC7oimE.js} +5 -5
- package/lib/{index-Ml4PAg0F.js.map → index-GqC7oimE.js.map} +1 -1
- package/lib/{index-CiWj01Lj.js → index-LZW7fj2F.js} +5 -5
- package/lib/{index-CiWj01Lj.js.map → index-LZW7fj2F.js.map} +1 -1
- package/lib/{index-BhGuWgTn.js → index-MVVmARru.js} +5 -5
- package/lib/{index-BhGuWgTn.js.map → index-MVVmARru.js.map} +1 -1
- package/lib/{index-DC7gDwV8.js → index-PO0wXwI5.js} +6 -6
- package/lib/{index-DC7gDwV8.js.map → index-PO0wXwI5.js.map} +1 -1
- package/lib/{index-KkD8XIi9.js → index-PS4QqN5I.js} +6 -6
- package/lib/{index-KkD8XIi9.js.map → index-PS4QqN5I.js.map} +1 -1
- package/lib/{index-DETJEsEv.js → index-UJYds-Oi.js} +5 -5
- package/lib/{index-DETJEsEv.js.map → index-UJYds-Oi.js.map} +1 -1
- package/lib/{index-DPxXqhLo.js → index-kDqan8k1.js} +5 -5
- package/lib/{index-DPxXqhLo.js.map → index-kDqan8k1.js.map} +1 -1
- package/lib/{index-CZGvDaoT.js → index-lu5OfiWN.js} +5 -5
- package/lib/{index-CZGvDaoT.js.map → index-lu5OfiWN.js.map} +1 -1
- package/lib/{index-CYUQahFE.js → index-o3NGd4si.js} +5 -5
- package/lib/{index-CYUQahFE.js.map → index-o3NGd4si.js.map} +1 -1
- package/lib/{index-BJ8btxKT.js → index-u7yjgSxi.js} +6 -6
- package/lib/{index-BJ8btxKT.js.map → index-u7yjgSxi.js.map} +1 -1
- package/lib/{index-DzBGkyny.js → index-zBnnFPui.js} +5 -5
- package/lib/{index-DzBGkyny.js.map → index-zBnnFPui.js.map} +1 -1
- package/lib/is-JSULxNAU.js +4 -4
- package/lib/it-CftnqhJ1.js +4 -4
- package/lib/iw-JvquXLl7.js +4 -4
- package/lib/ja-Sln1PgIo.js +4 -4
- package/lib/ko-CgsWx3jN.js +4 -4
- package/lib/lo-DcAaRj_p.js +4 -4
- package/lib/lt-BTDfiORY.js +4 -4
- package/lib/ms-Bg4uf_PC.js +4 -4
- package/lib/nl-BE-C8vGCGR6.js +4 -4
- package/lib/nl-CE6OuVwG.js +4 -4
- package/lib/no-DfiC0DZA.js +4 -4
- package/lib/pl-DDzIhLa9.js +4 -4
- package/lib/pt-BR-Be7bueat.js +4 -4
- package/lib/pt-DjjnoPiQ.js +4 -4
- package/lib/ro-pYdJyg9X.js +4 -4
- package/lib/ru-8gyiW77-.js +4 -4
- package/lib/sk-CNLmprV4.js +4 -4
- package/lib/sl-CIkfRL9W.js +4 -4
- package/lib/sr-DFluT8HS.js +4 -4
- package/lib/sv-uNJ_H4zx.js +4 -4
- package/lib/sw-DkbMNqbB.js +4 -4
- package/lib/th-rQ-xrExr.js +4 -4
- package/lib/tr-Jf-3Eetm.js +4 -4
- package/lib/uk-DcqmUwms.js +4 -4
- package/lib/ur-DUh-uC12.js +4 -4
- package/lib/{useCollectFieldsEndpoint-BDmlArxx.js → useCollectFieldsEndpoint-DVOREKgX.js} +6 -6
- package/lib/{useCollectFieldsEndpoint-BDmlArxx.js.map → useCollectFieldsEndpoint-DVOREKgX.js.map} +1 -1
- package/lib/vi-BKQI13mZ.js +4 -4
- package/lib/zh-HK-BTRO-Evg.js +4 -4
- package/lib/zh-wjTwZoSd.js +4 -4
- package/lib/zu-Bby0ritc.js +4 -4
- package/package.json +1 -1
- package/sheerid-install.css +4 -4
- package/sheerid-install.js +5 -5
- package/sheerid.css +5 -5
- package/sheerid.js +22 -20
- package/sheerid.js.map +1 -1
- package/types-reference.zip +0 -0
- package/lib/StepCollectMilitaryStatusComponent-CM3nKRIF.js +0 -11
- package/lib/index-68_Uud0p.js +0 -11
- package/lib/index-68_Uud0p.js.map +0 -1
- package/lib/index-BNK64v2N.js +0 -11
- package/lib/index-BNK64v2N.js.map +0 -1
- package/lib/index-BqlwxAF1.js +0 -11
- package/lib/index-BqlwxAF1.js.map +0 -1
- package/lib/index-tt9APzUH.js +0 -11
- package/lib/index-tt9APzUH.js.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index-DPxXqhLo.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\";\nimport { EventName, recordCTAClickEvent } from \"../../lib/GoogleAnalytics/ga\";\n\ninterface StepSuccessProps {\n verificationService: VerificationService;\n}\n\nconst redirect = (redirectDestination: string, target: string = \"_top\") => {\n const win = window.open(redirectDestination, target);\n win.focus();\n};\n\nconst getAffinityBaseUrl = () => {\n const options = getOptions();\n const apiBaseUrl = options.restApi.serviceUrl;\n\n 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 const handleOnRedirect = () => {\n recordCTAClickEvent(EventName.SUCCESS_REDIRECT_CLICKED, {\n programId,\n locale,\n verificationId,\n });\n\n redirect(getRememberMeRedirectDestination(locale, programId, verificationId), \"_blank\");\n };\n\n React.useEffect(() => {\n // Load the affinity widget if enabled\n if (affinityRef.current) {\n affinityRef.current.innerHTML = \"\";\n loadAffinityIFrame(\n affinityRef.current,\n `${getAffinityBaseUrl()}/affinity/${locale}/${programId}/${verificationId}`,\n );\n }\n }, [affinityRef, programId, verificationId, locale]);\n\n return (\n <div id=\"sid-step-success\" className=\"sid-success-container sid-l-container\" role=\"region\">\n <div className=\"sid-header sid-l-horz-center sid-l-space-top-md\">\n <div className=\"sid-success-logo-container sid-l-horz-center\">\n <LogoComponent\n verificationService={verificationService}\n fallbackLogo={\n <img\n className=\"sid-success-logo-default sid-l-lead-image\"\n alt=\"\"\n src=\"https://assets-resources.sheerid.com/common/images/2018/icons/circle-check.svg\"\n />\n }\n />\n </div>\n <AnnouncingHeader align=\"center\">\n <FormattedHTMLMessage\n id=\"step.success.title\"\n defaultMessage=\"Success! You've been verified.\"\n tagName=\"h1\"\n />\n </AnnouncingHeader>\n <div className=\"sid-header__subtitle sid-l-horz-center\">\n <FormattedHTMLMessage\n id=\"step.success.subtitle\"\n defaultMessage=\"You are now eligible for this special offer.\"\n tagName=\"p\"\n />\n </div>\n </div>\n\n {showReward && (\n <div className=\"sid-l-horz-center sid-reward-container sid-l-space-top-md\">\n {rewardDisplay.map((displayType) => {\n if (displayType !== RewardDisplayEnum.TEXT)\n return (\n <img\n key={displayType}\n className=\"sid-l-space-top-md sid-barcode\"\n alt={rewardCode}\n src={getBarcodeUrl(verificationId, \"rewardCode\", displayType)}\n />\n );\n return (\n <div key={displayType}>\n <div\n className=\"sid-reward-code sid-l-space-top-md sid-h-jumbo-text sid-l-horz-center\"\n role=\"region\"\n >\n {rewardCode}\n </div>\n <div className=\"sid-l-space-top-md sid-h-bold-text sid-l-horz-center\">\n <CopyToClipboard\n textToCopy={rewardCode}\n notificationText={<FormattedHTMLMessage id=\"copied\" defaultMessage=\"Copied\" />}\n >\n <FormattedHTMLMessage\n id=\"step.success.copyCouponCode\"\n defaultMessage=\"Copy coupon code\"\n />\n </CopyToClipboard>\n </div>\n </div>\n );\n })}\n </div>\n )}\n\n <div\n className={`sid-footer sid-success-footer sid-l-horz-center ${\n noCodeType ? \"sid-l-space-top-md\" : \"sid-l-space-top-lg\"\n }`}\n >\n <FormattedHTMLMessage\n id=\"step.success.emailNotification\"\n defaultMessage=\"We have sent you a confirmation email. 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 id=\"step.success.redirectButtonText\" defaultMessage=\"Continue\" />\n </button>\n </div>\n ) : (\n \"\"\n )}\n\n <div\n className=\"sid-footer sid-success-verification-only-footer sid-l-horz-center sid-l-space-top-lg sid-h-small-text\"\n role=\"contentinfo\"\n >\n <FormattedHTMLMessage id=\"companyName\" defaultMessage=\"{Company}\">\n {(companyName) => (\n <FormattedHTMLMessage\n id=\"step.success.verificationOnly\"\n defaultMessage={`\n SheerID handles verification only.\n Now that you've been approved, please direct all questions about the\n promotion terms to {companyName} customer service.\n `}\n values={{ companyName }}\n tagName=\"p\"\n />\n )}\n </FormattedHTMLMessage>\n </div>\n\n {verificationService.programTheme.affinityProgramEnabled && (\n <div\n ref={affinityRef}\n id=\"sid-affinity-iframe\"\n className=\"sid-affinity-container sid-l-full-width sid-l-space-top-lg\"\n />\n )}\n\n {showRememberMeFooter && (\n <div className=\"sid-remember-me-footer-container\">\n <div className=\"sid-remember-me-title\">\n {consumerInfoState === \"consumerNotFound\" ? (\n <FormattedHTMLMessage\n id=\"step.success.rememberMe.consumerNotFound.title\"\n defaultMessage=\"Save your info for 1-click verification\"\n />\n ) : (\n <FormattedHTMLMessage\n id=\"step.success.rememberMe.consumerFound.title\"\n defaultMessage=\"Update Your Profile\"\n />\n )}\n </div>\n <div className=\"sid-remember-me-description\">\n {consumerInfoState === \"consumerNotFound\" ? (\n <FormattedHTMLMessage id=\"companyName\" defaultMessage=\"{Company}\">\n {(companyName) => (\n <FormattedHTMLMessage\n id=\"step.success.rememberMe.consumerNotFound.description\"\n defaultMessage=\"Get faster access to future offers with {companyName} and other brands using SheerID's Remember Me service.\"\n values={{ companyName }}\n />\n )}\n </FormattedHTMLMessage>\n ) : (\n <FormattedHTMLMessage id=\"companyName\" defaultMessage=\"{Company}\">\n {(companyName) => (\n <FormattedHTMLMessage\n id=\"step.success.rememberMe.consumerFound.description\"\n defaultMessage=\"Save new info for future offers with {companyName} and other brands using SheerID's Remember Me service.\"\n values={{ companyName }}\n />\n )}\n </FormattedHTMLMessage>\n )}\n </div>\n <button\n type=\"button\"\n onClick={handleOnRedirect}\n className=\"sid-btn sid-remember-me-redirect-btn\"\n >\n {consumerInfoState === \"consumerNotFound\" ? (\n <FormattedHTMLMessage\n id=\"step.success.rememberMe.consumerNotFound.button\"\n defaultMessage=\"Enroll Now\"\n />\n ) : (\n <FormattedHTMLMessage\n id=\"step.success.rememberMe.consumerFound.button\"\n defaultMessage=\"Save to Remember Me\"\n />\n )}\n </button>\n </div>\n )}\n </div>\n );\n};\n\nexport const StepSuccessComponent = StepSuccess;\n"],"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","handleOnRedirect","recordCTAClickEvent","EventName","getRememberMeRedirectDestination","loadAffinityIFrame","jsxs","jsx","LogoComponent","AnnouncingHeader","FormattedHTMLMessage","displayType","RewardDisplayEnum","getBarcodeUrl","CopyToClipboard","companyName","StepSuccessComponent"],"mappings":";;;AAsBA,MAAMA,IAAW,CAACC,GAA6BC,IAAiB,WAAW;AAEzE,EADY,OAAO,KAAKD,GAAqBC,CAAM,EAC/C,MAAA;AACN,GAEMC,IAAqB,MAAM;AAI/B,UAHgBC,EAAA,EACW,QAAQ,YAE3B;AAAA,IACN,KAAK;AACH,aAAO;AAAA,IACT;AACE,aAAO;AAAA,EAAA;AAEb,GAEMC,IAAc,CAAC,EAAE,qBAAAC,QAA4C;AACjE,QAAM,EAAE,sBAAAC,GAAsB,WAAAC,GAAW,WAAAC,EAAA,IAAcH,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,EAAA,KAG0Bf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AA,EAAAA,IAAC,OAAA,EAAI,WAAU,+BACZ,UAAAZ,MAAsB,qBACrBY,gBAAAA,EAAAA,IAACG,GAAA,EAAqB,IAAG,eAAc,gBAAe,aACnD,WAACK,MACAR,gBAAAA,EAAAA;AAAAA,QAACG;AAAA,QAAA;AAAA,UACC,IAAG;AAAA,UACH,gBAAe;AAAA,UACf,QAAQ,EAAE,aAAAK,EAAA;AAAA,QAAY;AAAA,MAAA,EACxB,CAEJ,IAEAR,gBAAAA,EAAAA,IAACG,GAAA,EAAqB,IAAG,eAAc,gBAAe,aACnD,UAAA,CAACK,MACAR,gBAAAA,EAAAA;AAAAA,QAACG;AAAA,QAAA;AAAA,UACC,IAAG;AAAA,UACH,gBAAe;AAAA,UACf,QAAQ,EAAE,aAAAK,EAAA;AAAA,QAAY;AAAA,MAAA,GAG5B,EAAA,CAEJ;AAAA,MACAR,gBAAAA,EAAAA;AAAAA,QAAC;AAAA,QAAA;AAAA,UACC,MAAK;AAAA,UACL,SAASN;AAAA,UACT,WAAU;AAAA,UAET,gBAAsB,qBACrBM,gBAAAA,EAAAA;AAAAA,YAACG;AAAA,YAAA;AAAA,cACC,IAAG;AAAA,cACH,gBAAe;AAAA,YAAA;AAAA,UAAA,IAGjBH,gBAAAA,EAAAA;AAAAA,YAACG;AAAA,YAAA;AAAA,cACC,IAAG;AAAA,cACH,gBAAe;AAAA,YAAA;AAAA,UAAA;AAAA,QACjB;AAAA,MAAA;AAAA,IAEJ,EAAA,CACF;AAAA,EAAA,GAEJ;AAEJ,GAEaM,IAAuBpC;"}
|
|
1
|
+
{"version":3,"file":"index-kDqan8k1.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\";\nimport { EventName, recordCTAClickEvent } from \"../../lib/GoogleAnalytics/ga\";\n\ninterface StepSuccessProps {\n verificationService: VerificationService;\n}\n\nconst redirect = (redirectDestination: string, target: string = \"_top\") => {\n const win = window.open(redirectDestination, target);\n win.focus();\n};\n\nconst getAffinityBaseUrl = () => {\n const options = getOptions();\n const apiBaseUrl = options.restApi.serviceUrl;\n\n 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 const handleOnRedirect = () => {\n recordCTAClickEvent(EventName.SUCCESS_REDIRECT_CLICKED, {\n programId,\n locale,\n verificationId,\n });\n\n redirect(getRememberMeRedirectDestination(locale, programId, verificationId), \"_blank\");\n };\n\n React.useEffect(() => {\n // Load the affinity widget if enabled\n if (affinityRef.current) {\n affinityRef.current.innerHTML = \"\";\n loadAffinityIFrame(\n affinityRef.current,\n `${getAffinityBaseUrl()}/affinity/${locale}/${programId}/${verificationId}`,\n );\n }\n }, [affinityRef, programId, verificationId, locale]);\n\n return (\n <div id=\"sid-step-success\" className=\"sid-success-container sid-l-container\" role=\"region\">\n <div className=\"sid-header sid-l-horz-center sid-l-space-top-md\">\n <div className=\"sid-success-logo-container sid-l-horz-center\">\n <LogoComponent\n verificationService={verificationService}\n fallbackLogo={\n <img\n className=\"sid-success-logo-default sid-l-lead-image\"\n alt=\"\"\n src=\"https://assets-resources.sheerid.com/common/images/2018/icons/circle-check.svg\"\n />\n }\n />\n </div>\n <AnnouncingHeader align=\"center\">\n <FormattedHTMLMessage\n id=\"step.success.title\"\n defaultMessage=\"Success! You've been verified.\"\n tagName=\"h1\"\n />\n </AnnouncingHeader>\n <div className=\"sid-header__subtitle sid-l-horz-center\">\n <FormattedHTMLMessage\n id=\"step.success.subtitle\"\n defaultMessage=\"You are now eligible for this special offer.\"\n tagName=\"p\"\n />\n </div>\n </div>\n\n {showReward && (\n <div className=\"sid-l-horz-center sid-reward-container sid-l-space-top-md\">\n {rewardDisplay.map((displayType) => {\n if (displayType !== RewardDisplayEnum.TEXT)\n return (\n <img\n key={displayType}\n className=\"sid-l-space-top-md sid-barcode\"\n alt={rewardCode}\n src={getBarcodeUrl(verificationId, \"rewardCode\", displayType)}\n />\n );\n return (\n <div key={displayType}>\n <div\n className=\"sid-reward-code sid-l-space-top-md sid-h-jumbo-text sid-l-horz-center\"\n role=\"region\"\n >\n {rewardCode}\n </div>\n <div className=\"sid-l-space-top-md sid-h-bold-text sid-l-horz-center\">\n <CopyToClipboard\n textToCopy={rewardCode}\n notificationText={<FormattedHTMLMessage id=\"copied\" defaultMessage=\"Copied\" />}\n >\n <FormattedHTMLMessage\n id=\"step.success.copyCouponCode\"\n defaultMessage=\"Copy coupon code\"\n />\n </CopyToClipboard>\n </div>\n </div>\n );\n })}\n </div>\n )}\n\n <div\n className={`sid-footer sid-success-footer sid-l-horz-center ${\n noCodeType ? \"sid-l-space-top-md\" : \"sid-l-space-top-lg\"\n }`}\n >\n <FormattedHTMLMessage\n id=\"step.success.emailNotification\"\n defaultMessage=\"We have sent you a confirmation email. 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 id=\"step.success.redirectButtonText\" defaultMessage=\"Continue\" />\n </button>\n </div>\n ) : (\n \"\"\n )}\n\n <div\n className=\"sid-footer sid-success-verification-only-footer sid-l-horz-center sid-l-space-top-lg sid-h-small-text\"\n role=\"contentinfo\"\n >\n <FormattedHTMLMessage id=\"companyName\" defaultMessage=\"{Company}\">\n {(companyName) => (\n <FormattedHTMLMessage\n id=\"step.success.verificationOnly\"\n defaultMessage={`\n SheerID handles verification only.\n Now that you've been approved, please direct all questions about the\n promotion terms to {companyName} customer service.\n `}\n values={{ companyName }}\n tagName=\"p\"\n />\n )}\n </FormattedHTMLMessage>\n </div>\n\n {verificationService.programTheme.affinityProgramEnabled && (\n <div\n ref={affinityRef}\n id=\"sid-affinity-iframe\"\n className=\"sid-affinity-container sid-l-full-width sid-l-space-top-lg\"\n />\n )}\n\n {showRememberMeFooter && (\n <div className=\"sid-remember-me-footer-container\">\n <div className=\"sid-remember-me-title\">\n {consumerInfoState === \"consumerNotFound\" ? (\n <FormattedHTMLMessage\n id=\"step.success.rememberMe.consumerNotFound.title\"\n defaultMessage=\"Save your info for 1-click verification\"\n />\n ) : (\n <FormattedHTMLMessage\n id=\"step.success.rememberMe.consumerFound.title\"\n defaultMessage=\"Update Your Profile\"\n />\n )}\n </div>\n <div className=\"sid-remember-me-description\">\n {consumerInfoState === \"consumerNotFound\" ? (\n <FormattedHTMLMessage id=\"companyName\" defaultMessage=\"{Company}\">\n {(companyName) => (\n <FormattedHTMLMessage\n id=\"step.success.rememberMe.consumerNotFound.description\"\n defaultMessage=\"Get faster access to future offers with {companyName} and other brands using SheerID's Remember Me service.\"\n values={{ companyName }}\n />\n )}\n </FormattedHTMLMessage>\n ) : (\n <FormattedHTMLMessage id=\"companyName\" defaultMessage=\"{Company}\">\n {(companyName) => (\n <FormattedHTMLMessage\n id=\"step.success.rememberMe.consumerFound.description\"\n defaultMessage=\"Save new info for future offers with {companyName} and other brands using SheerID's Remember Me service.\"\n values={{ companyName }}\n />\n )}\n </FormattedHTMLMessage>\n )}\n </div>\n <button\n type=\"button\"\n onClick={handleOnRedirect}\n className=\"sid-btn sid-remember-me-redirect-btn\"\n >\n {consumerInfoState === \"consumerNotFound\" ? (\n <FormattedHTMLMessage\n id=\"step.success.rememberMe.consumerNotFound.button\"\n defaultMessage=\"Enroll Now\"\n />\n ) : (\n <FormattedHTMLMessage\n id=\"step.success.rememberMe.consumerFound.button\"\n defaultMessage=\"Save to Remember Me\"\n />\n )}\n </button>\n </div>\n )}\n </div>\n );\n};\n\nexport const StepSuccessComponent = StepSuccess;\n"],"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","handleOnRedirect","recordCTAClickEvent","EventName","getRememberMeRedirectDestination","loadAffinityIFrame","jsxs","jsx","LogoComponent","AnnouncingHeader","FormattedHTMLMessage","displayType","RewardDisplayEnum","getBarcodeUrl","CopyToClipboard","companyName","StepSuccessComponent"],"mappings":";;;AAsBA,MAAMA,IAAW,CAACC,GAA6BC,IAAiB,WAAW;AAEzE,EADY,OAAO,KAAKD,GAAqBC,CAAM,EAC/C,MAAA;AACN,GAEMC,IAAqB,MAAM;AAI/B,UAHgBC,EAAA,EACW,QAAQ,YAE3B;AAAA,IACN,KAAK;AACH,aAAO;AAAA,IACT;AACE,aAAO;AAAA,EAAA;AAEb,GAEMC,IAAc,CAAC,EAAE,qBAAAC,QAA4C;AACjE,QAAM,EAAE,sBAAAC,GAAsB,WAAAC,GAAW,WAAAC,EAAA,IAAcH,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,EAAA,KAG0Bf,EAAyC,mBAC/DgB,IACJH,MAAsB,sBACtBA,MAAsB,mCAElBI,IAASC,EAAgBhB,GAAWF,CAAoB,GAExDmB,IAAmB,MAAM;AAC7B,IAAAC,EAAoBC,EAAU,0BAA0B;AAAA,MACtD,WAAApB;AAAA,MACA,QAAAgB;AAAA,MACA,gBAAAd;AAAA,IAAA,CACD,GAEDV,EAAS6B,EAAiCL,GAAQhB,GAAWE,CAAc,GAAG,QAAQ;AAAA,EACxF;AAEAI,SAAAA,EAAM,UAAU,MAAM;AAEpB,IAAID,EAAY,YACdA,EAAY,QAAQ,YAAY,IAChCiB;AAAA,MACEjB,EAAY;AAAA,MACZ,GAAGV,GAAoB,aAAaqB,CAAM,IAAIhB,CA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e;AAAA,UACf,QAAQ,EAAE,aAAAK,EAAA;AAAA,QAAY;AAAA,MAAA,GAG5B,EAAA,CAEJ;AAAA,MACAR,gBAAAA,EAAAA;AAAAA,QAAC;AAAA,QAAA;AAAA,UACC,MAAK;AAAA,UACL,SAASN;AAAA,UACT,WAAU;AAAA,UAET,gBAAsB,qBACrBM,gBAAAA,EAAAA;AAAAA,YAACG;AAAA,YAAA;AAAA,cACC,IAAG;AAAA,cACH,gBAAe;AAAA,YAAA;AAAA,UAAA,IAGjBH,gBAAAA,EAAAA;AAAAA,YAACG;AAAA,YAAA;AAAA,cACC,IAAG;AAAA,cACH,gBAAe;AAAA,YAAA;AAAA,UAAA;AAAA,QACjB;AAAA,MAAA;AAAA,IAEJ,EAAA,CACF;AAAA,EAAA,GAEJ;AAEJ,GAEaM,IAAuBpC;"}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
|
|
2
2
|
/**
|
|
3
|
-
* VERSION: 2.
|
|
4
|
-
* BUILD_TIMESTAMP:
|
|
5
|
-
* BUILD_DATE:
|
|
6
|
-
* BUILD_COMMIT:
|
|
3
|
+
* VERSION: 2.155.0-alpha.0
|
|
4
|
+
* BUILD_TIMESTAMP: 1763683855114
|
|
5
|
+
* BUILD_DATE: Fri Nov 21 2025 00:10:55 GMT+0000 (Coordinated Universal Time)
|
|
6
|
+
* BUILD_COMMIT: fa65b3ca7a41d610918988df94588b341b859b85
|
|
7
7
|
*/
|
|
8
|
-
import { ak as c, f as o, j as s, a1 as f, k as g, r as E, N as j, O as M, m as I, x as y, a2 as F, al as V, a4 as T, o as l, T as P, U as R, a5 as k, E as D, n as L, Y as q, Z as w, _ as H, $ as O, p as z, V as A } from "./es6-
|
|
8
|
+
import { ak as c, f as o, j as s, a1 as f, k as g, r as E, N as j, O as M, m as I, x as y, a2 as F, al as V, a4 as T, o as l, T as P, U as R, a5 as k, E as D, n as L, Y as q, Z as w, _ as H, $ as O, p as z, V as A } from "./es6-CDSYs19h.js";
|
|
9
9
|
import B from "react";
|
|
10
10
|
import { injectIntl as _, FormattedHTMLMessage as r } from "react-intl";
|
|
11
11
|
const W = ({
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index-CZGvDaoT.js","sources":["../../src/components/FormFields/CVECNumber/CVECNumberComponent.tsx","../../src/components/StepStudentPersonalInfo/StepStudentPersonalInfoComponent.tsx"],"sourcesContent":["import React from \"react\";\nimport { FormattedHTMLMessage, injectIntl } from \"react-intl\";\nimport { getFieldConfigByFieldId } from \"@/lib/utils/stepComponentHelpers/stepComponentHelpers\";\nimport { FormFieldComponentProps } from \"../../../lib/types/types\";\nimport { FormFieldText } from \"../FormFieldText/FormFieldText\";\nimport { useFlag } from \"../../FeatureFlags/hooks\";\n\ninterface PassedProps {\n explanation?: string | JSX.Element;\n}\n\nexport const CVECNumber = ({\n value,\n isErrored,\n onChange,\n intl,\n explanation,\n placeholder = \"\",\n isRequired = false,\n}: FormFieldComponentProps & PassedProps) => {\n // #region include-cvec-field-france-student\n const showCvecInputVariation = useFlag(\"include-cvec-field-france-student\");\n\n const getDefaultExplanation = () =>\n showCvecInputVariation === \"labeled-optional\" ? (\n <FormattedHTMLMessage\n id=\"cvecNumberExplanation\"\n defaultMessage=\"Optional - Add your CVEC number to increase your chances of being verified instantly.\"\n />\n ) : (\n <FormattedHTMLMessage\n id=\"_EXPERIMENTAL.cvecNumberExplanation\"\n defaultMessage=\"Add your CVEC number to increase your chances of being verified instantly.\"\n />\n );\n // #endregion include-cvec-field-france-student\n\n const isFieldHidden = getFieldConfigByFieldId(\"cvecNumber\")?.hidden;\n\n if (isFieldHidden) {\n return null;\n }\n\n return (\n <FormFieldText\n fieldId=\"cvecNumber\"\n value={value}\n onChange={onChange}\n placeholder={\n placeholder ||\n intl.formatHTMLMessage({\n id: \"cvecNumberPlaceholder\",\n defaultMessage: \"CVEC certificate number\",\n })\n }\n label={<FormattedHTMLMessage id=\"cvecNumber\" defaultMessage=\"CVEC certificate number\" />}\n errorMessage={\n isErrored && (\n <FormattedHTMLMessage\n id=\"errorId.invalidCvecNumber\"\n defaultMessage=\"Invalid CVEC certificate number\"\n />\n )\n }\n showPlaceholderAndHideLabel={!!placeholder}\n required={isRequired}\n explanation={explanation || getDefaultExplanation()}\n />\n );\n};\nexport const CVECNumberComponent = injectIntl(CVECNumber);\n","/* eslint-disable */\n/**\n * TODO - preamble\n */\nimport React from \"react\";\nimport { FormattedHTMLMessage } from \"react-intl\";\nimport { produce } from \"immer\";\n\nimport {\n VerificationService,\n StudentPersonalInfoViewModel,\n Organization,\n StudentPersonalInfoResponse,\n CustomFormFieldConfig,\n} from \"../../lib/types/types\";\n\nimport { VerificationStepsEnum } from \"../../lib/types/runtimeTypes\";\nimport { hasFailedInstantMatch } from \"../../lib/VerificationService/VerificationServiceHelpers\";\nimport {\n getFieldConfigByFieldId,\n handleEmailOnKeyDown,\n updateFieldValidationErrorsByFieldId,\n updateViewModelOrganization,\n} from \"../../lib/utils/stepComponentHelpers/stepComponentHelpers\";\n\nimport { ChangeLocaleV2Component } from \"../FormFields/ChangeLocale/ChangeLocaleComponent\";\nimport { MarketConsentWrapperComponent as MarketConsentWrapper } from \"../FormFields/MarketConsentWrapper/MarketConsentWrapperComponent\";\nimport { PhoneNumberComponent as PhoneNumber } from \"../FormFields/PhoneNumber/PhoneNumberComponent\";\nimport { CollegeNameComponent as CollegeName } from \"../FormFields/CollegeName/CollegeNameComponent\";\nimport { FirstNameComponent as FirstName } from \"../FormFields/FirstName/FirstNameComponent\";\nimport { LastNameComponent as LastName } from \"../FormFields/LastName/LastNameComponent\";\nimport { EmailComponent as Email } from \"../FormFields/Email/EmailComponent\";\nimport { BirthDateComponent as BirthDate } from \"../FormFields/BirthDate/BirthDateComponent\";\nimport { CountryComponentWrapper } from \"../FormFields/Country/CountryComponentWrapper\";\nimport { getOptions } from \"../../options/options\";\nimport { FormFieldCustom } from \"../FormFields/FormFieldCustom/FormFieldCustom\";\nimport { ExtraMessage } from \"../ExtraMessage\";\nimport { PersonalInfoWrapper } from \"../PersonalInfoStepWrapper/PersonalInfoStepWrapper\";\nimport { PersonalInfoStepSubmitButton } from \"../PersonalInfoStepSubmitButton/PersonalInfoStepSubmitButton\";\nimport { PersonalInfoHeader } from \"../FormHeader/StepHeaders/PersonalInfoHeaderComponent\";\nimport { useFlag } from \"../FeatureFlags/hooks\";\nimport { CVECNumberComponent } from \"../FormFields/CVECNumber/CVECNumberComponent\";\n\ninterface StepStudentPersonalInfoComponentProps {\n verificationService: VerificationService;\n}\n\nconst StepStudentPersonalInfo = ({\n verificationService,\n}: StepStudentPersonalInfoComponentProps) => {\n const viewModel = verificationService.viewModel as StudentPersonalInfoViewModel;\n const { fieldValidationErrors } = verificationService;\n const verificationResponse =\n verificationService.verificationResponse as StudentPersonalInfoResponse;\n const options = getOptions();\n\n // #region include-cvec-field-france-student\n const showCvecInputVariation = useFlag(\"include-cvec-field-france-student\");\n const showCvecInput =\n showCvecInputVariation !== \"control\" &&\n showCvecInputVariation !== \"default\" &&\n viewModel?.countryChoice?.value === \"FR\";\n\n React.useEffect(() => {\n if (showCvecInput) {\n updateStudentViewModel(\"fieldsToSkipValidation\", []);\n } else {\n // Don't validate CVEC number if country is not France\n updateStudentViewModel(\"fieldsToSkipValidation\", [\"cvecNumber\"]);\n }\n }, [showCvecInput]);\n // #endregion include-cvec-field-france-student\n\n const failedInstantMatch = hasFailedInstantMatch(verificationResponse);\n\n const updateStudentViewModel = (key: keyof StudentPersonalInfoViewModel, value: any) => {\n const nextState: StudentPersonalInfoViewModel = produce(\n viewModel,\n (draft: StudentPersonalInfoViewModel) => {\n draft[key] = value;\n },\n );\n verificationService.updateViewModel(nextState);\n };\n\n const locale = viewModel.localeChoice.value;\n\n return (\n <PersonalInfoWrapper\n verificationService={verificationService}\n step={verificationResponse.currentStep}\n >\n <PersonalInfoHeader\n verificationService={verificationService}\n classNameIdentifier=\"student-personal-info\"\n />\n <ChangeLocaleV2Component verificationService={verificationService} />\n <CountryComponentWrapper\n verificationService={verificationService}\n disabled={getFieldConfigByFieldId(\"country\")?.disabled}\n />\n <CollegeName\n value={(verificationService.viewModel as StudentPersonalInfoViewModel).organization}\n verificationService={verificationService}\n isErrored={!!fieldValidationErrors.organization}\n isRequired\n disabled={getFieldConfigByFieldId(\"organization\")?.disabled}\n onChange={(choice: Organization) => {\n updateViewModelOrganization(choice, verificationService);\n updateFieldValidationErrorsByFieldId(\"organization\", choice, verificationService);\n }}\n />\n {showCvecInput && (\n <CVECNumberComponent\n isRequired={getFieldConfigByFieldId(\"cvecNumber\")?.requireIfOptional}\n value={viewModel.cvecNumber}\n isErrored={!!fieldValidationErrors.cvecNumber}\n disabled={getFieldConfigByFieldId(\"cvecNumber\")?.disabled}\n onChange={(newValue) => {\n updateStudentViewModel(\"cvecNumber\", newValue);\n updateFieldValidationErrorsByFieldId(\"cvecNumber\", newValue, verificationService);\n }}\n />\n )}\n <div className=\"sid-names\">\n <FirstName\n value={viewModel.firstName}\n isErrored={!!fieldValidationErrors.firstName}\n disabled={getFieldConfigByFieldId(\"firstName\")?.disabled}\n onChange={(newValue) => {\n updateStudentViewModel(\"firstName\", newValue);\n updateFieldValidationErrorsByFieldId(\"firstName\", newValue, verificationService);\n }}\n />\n\n <LastName\n value={viewModel.lastName}\n isErrored={!!fieldValidationErrors.lastName}\n disabled={getFieldConfigByFieldId(\"lastName\")?.disabled}\n onChange={(newValue) => {\n updateStudentViewModel(\"lastName\", newValue);\n updateFieldValidationErrorsByFieldId(\"lastName\", newValue, verificationService);\n }}\n />\n </div>\n <BirthDate\n value={viewModel.birthDate}\n errorId={fieldValidationErrors.birthDate}\n locale={locale}\n isRequired\n disabled={getFieldConfigByFieldId(\"birthDate\")?.disabled}\n onChange={(newValue) => {\n updateStudentViewModel(\"birthDate\", newValue);\n updateFieldValidationErrorsByFieldId(\"birthDate\", newValue, verificationService);\n }}\n />\n <Email\n value={viewModel.email}\n isErrored={!!fieldValidationErrors.email}\n explanation={\n <FormattedHTMLMessage\n id=\"emailExplanation\"\n defaultMessage=\"Personal or school email is fine\"\n />\n }\n onChange={(newValue) => {\n updateStudentViewModel(\"email\", newValue);\n updateFieldValidationErrorsByFieldId(\"email\", newValue, verificationService);\n }}\n onKeyDown={(event) => handleEmailOnKeyDown(event)}\n disabled={getFieldConfigByFieldId(\"email\")?.disabled}\n />\n {verificationService.programTheme.isSmsNotifierConfigured ||\n verificationService.programTheme.smsLoopEnabled ? (\n <PhoneNumber\n isRequired={!!verificationService.programTheme.smsLoopEnabled}\n value={viewModel.phoneNumber}\n isErrored={!!fieldValidationErrors.phoneNumber}\n disabled={getFieldConfigByFieldId(\"phoneNumber\")?.disabled}\n onChange={(newValue) => {\n updateStudentViewModel(\"phoneNumber\", newValue);\n updateFieldValidationErrorsByFieldId(\"phoneNumber\", newValue, verificationService);\n }}\n selectedCountryCode={viewModel.countryChoice && viewModel.countryChoice.value}\n />\n ) : null}\n {(options.customFormFields || []).map((config: CustomFormFieldConfig) => (\n <FormFieldCustom config={config} verificationService={verificationService} />\n ))}{\" \"}\n <MarketConsentWrapper\n verificationService={verificationService}\n isErrored={!!fieldValidationErrors.marketConsentValue}\n disabled={getFieldConfigByFieldId(\"marketConsentValue\")?.disabled}\n onChange={(newValue) => {\n updateStudentViewModel(\"metadata\", {\n ...verificationService.viewModel.metadata,\n marketConsentValue: newValue,\n });\n updateFieldValidationErrorsByFieldId(\"marketConsentValue\", newValue, verificationService);\n }}\n viewModel={viewModel}\n />\n <ExtraMessage verificationService={verificationService} suffix=\"CollectAboveSubmit\" />\n <PersonalInfoStepSubmitButton\n step={VerificationStepsEnum.collectStudentPersonalInfo}\n verificationService={verificationService}\n viewModel={viewModel}\n failedInstantMatch={failedInstantMatch}\n buttonText={\n <FormattedHTMLMessage\n id=\"step.personalInfo.submitButtonText\"\n defaultMessage=\"Verify My Student Status\"\n />\n }\n />\n </PersonalInfoWrapper>\n );\n};\n\nexport const StepStudentPersonalInfoComponent = StepStudentPersonalInfo;\n"],"names":["CVECNumber","value","isErrored","onChange","intl","explanation","placeholder","isRequired","showCvecInputVariation","useFlag","getDefaultExplanation","jsx","FormattedHTMLMessage","getFieldConfigByFieldId","FormFieldText","CVECNumberComponent","injectIntl","StepStudentPersonalInfo","verificationService","viewModel","fieldValidationErrors","verificationResponse","options","getOptions","showCvecInput","React","updateStudentViewModel","failedInstantMatch","hasFailedInstantMatch","key","nextState","produce","draft","locale","jsxs","PersonalInfoWrapper","PersonalInfoHeader","ChangeLocaleV2Component","CountryComponentWrapper","CollegeName","choice","updateViewModelOrganization","updateFieldValidationErrorsByFieldId","newValue","FirstName","LastName","BirthDate","Email","event","handleEmailOnKeyDown","PhoneNumber","config","FormFieldCustom","MarketConsentWrapper","ExtraMessage","PersonalInfoStepSubmitButton","VerificationStepsEnum","StepStudentPersonalInfoComponent"],"mappings":";;;AAWO,MAAMA,IAAa,CAAC;AAAA,EACzB,OAAAC;AAAA,EACA,WAAAC;AAAA,EACA,UAAAC;AAAA,EACA,MAAAC;AAAA,EACA,aAAAC;AAAA,EACA,aAAAC,IAAc;AAAA,EACd,YAAAC,IAAa;AACf,MAA6C;AAE3C,QAAMC,IAAyBC,EAAQ,mCAAmC,GAEpEC,IAAwB,MAC5BF,MAA2B,qBACzBG,gBAAAA,EAAAA;AAAAA,IAACC;AAAA,IAAA;AAAA,MACC,IAAG;AAAA,MACH,gBAAe;AAAA,IAAA;AAAA,EAAA,IAGjBD,gBAAAA,EAAAA;AAAAA,IAACC;AAAA,IAAA;AAAA,MACC,IAAG;AAAA,MACH,gBAAe;AAAA,IAAA;AAAA,EAAA;AAOrB,SAFsBC,EAAwB,YAAY,GAAG,SAGpD,OAIPF,gBAAAA,EAAAA;AAAAA,IAACG;AAAA,IAAA;AAAA,MACC,SAAQ;AAAA,MACR,OAAAb;AAAA,MACA,UAAAE;AAAA,MACA,aACEG,KACAF,EAAK,kBAAkB;AAAA,QACrB,IAAI;AAAA,QACJ,gBAAgB;AAAA,MAAA,CACjB;AAAA,MAEH,OAAOO,gBA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AA,cAAA;AAAA,YAAA;AAAA,UACjB;AAAA,QAAA;AAAA,MAEJ;AAAA,IAAA;AAAA,EAAA;AAGN,GAEa6C,IAAmCxC;"}
|
|
1
|
+
{"version":3,"file":"index-lu5OfiWN.js","sources":["../../src/components/FormFields/CVECNumber/CVECNumberComponent.tsx","../../src/components/StepStudentPersonalInfo/StepStudentPersonalInfoComponent.tsx"],"sourcesContent":["import React from \"react\";\nimport { FormattedHTMLMessage, injectIntl } from \"react-intl\";\nimport { getFieldConfigByFieldId } from \"@/lib/utils/stepComponentHelpers/stepComponentHelpers\";\nimport { FormFieldComponentProps } from \"../../../lib/types/types\";\nimport { FormFieldText } from \"../FormFieldText/FormFieldText\";\nimport { useFlag } from \"../../FeatureFlags/hooks\";\n\ninterface PassedProps {\n explanation?: string | JSX.Element;\n}\n\nexport const CVECNumber = ({\n value,\n isErrored,\n onChange,\n intl,\n explanation,\n placeholder = \"\",\n isRequired = false,\n}: FormFieldComponentProps & PassedProps) => {\n // #region include-cvec-field-france-student\n const showCvecInputVariation = useFlag(\"include-cvec-field-france-student\");\n\n const getDefaultExplanation = () =>\n showCvecInputVariation === \"labeled-optional\" ? (\n <FormattedHTMLMessage\n id=\"cvecNumberExplanation\"\n defaultMessage=\"Optional - Add your CVEC number to increase your chances of being verified instantly.\"\n />\n ) : (\n <FormattedHTMLMessage\n id=\"_EXPERIMENTAL.cvecNumberExplanation\"\n defaultMessage=\"Add your CVEC number to increase your chances of being verified instantly.\"\n />\n );\n // #endregion include-cvec-field-france-student\n\n const isFieldHidden = getFieldConfigByFieldId(\"cvecNumber\")?.hidden;\n\n if (isFieldHidden) {\n return null;\n }\n\n return (\n <FormFieldText\n fieldId=\"cvecNumber\"\n value={value}\n onChange={onChange}\n placeholder={\n placeholder ||\n intl.formatHTMLMessage({\n id: \"cvecNumberPlaceholder\",\n defaultMessage: \"CVEC certificate number\",\n })\n }\n label={<FormattedHTMLMessage id=\"cvecNumber\" defaultMessage=\"CVEC certificate number\" />}\n errorMessage={\n isErrored && (\n <FormattedHTMLMessage\n id=\"errorId.invalidCvecNumber\"\n defaultMessage=\"Invalid CVEC certificate number\"\n />\n )\n }\n showPlaceholderAndHideLabel={!!placeholder}\n required={isRequired}\n explanation={explanation || getDefaultExplanation()}\n />\n );\n};\nexport const CVECNumberComponent = injectIntl(CVECNumber);\n","/* eslint-disable */\n/**\n * TODO - preamble\n */\nimport React from \"react\";\nimport { FormattedHTMLMessage } from \"react-intl\";\nimport { produce } from \"immer\";\n\nimport {\n VerificationService,\n StudentPersonalInfoViewModel,\n Organization,\n StudentPersonalInfoResponse,\n CustomFormFieldConfig,\n} from \"../../lib/types/types\";\n\nimport { VerificationStepsEnum } from \"../../lib/types/runtimeTypes\";\nimport { hasFailedInstantMatch } from \"../../lib/VerificationService/VerificationServiceHelpers\";\nimport {\n getFieldConfigByFieldId,\n handleEmailOnKeyDown,\n updateFieldValidationErrorsByFieldId,\n updateViewModelOrganization,\n} from \"../../lib/utils/stepComponentHelpers/stepComponentHelpers\";\n\nimport { ChangeLocaleV2Component } from \"../FormFields/ChangeLocale/ChangeLocaleComponent\";\nimport { MarketConsentWrapperComponent as MarketConsentWrapper } from \"../FormFields/MarketConsentWrapper/MarketConsentWrapperComponent\";\nimport { PhoneNumberComponent as PhoneNumber } from \"../FormFields/PhoneNumber/PhoneNumberComponent\";\nimport { CollegeNameComponent as CollegeName } from \"../FormFields/CollegeName/CollegeNameComponent\";\nimport { FirstNameComponent as FirstName } from \"../FormFields/FirstName/FirstNameComponent\";\nimport { LastNameComponent as LastName } from \"../FormFields/LastName/LastNameComponent\";\nimport { EmailComponent as Email } from \"../FormFields/Email/EmailComponent\";\nimport { BirthDateComponent as BirthDate } from \"../FormFields/BirthDate/BirthDateComponent\";\nimport { CountryComponentWrapper } from \"../FormFields/Country/CountryComponentWrapper\";\nimport { getOptions } from \"../../options/options\";\nimport { FormFieldCustom } from \"../FormFields/FormFieldCustom/FormFieldCustom\";\nimport { ExtraMessage } from \"../ExtraMessage\";\nimport { PersonalInfoWrapper } from \"../PersonalInfoStepWrapper/PersonalInfoStepWrapper\";\nimport { PersonalInfoStepSubmitButton } from \"../PersonalInfoStepSubmitButton/PersonalInfoStepSubmitButton\";\nimport { PersonalInfoHeader } from \"../FormHeader/StepHeaders/PersonalInfoHeaderComponent\";\nimport { useFlag } from \"../FeatureFlags/hooks\";\nimport { CVECNumberComponent } from \"../FormFields/CVECNumber/CVECNumberComponent\";\n\ninterface StepStudentPersonalInfoComponentProps {\n verificationService: VerificationService;\n}\n\nconst StepStudentPersonalInfo = ({\n verificationService,\n}: StepStudentPersonalInfoComponentProps) => {\n const viewModel = verificationService.viewModel as StudentPersonalInfoViewModel;\n const { fieldValidationErrors } = verificationService;\n const verificationResponse =\n verificationService.verificationResponse as StudentPersonalInfoResponse;\n const options = getOptions();\n\n // #region include-cvec-field-france-student\n const showCvecInputVariation = useFlag(\"include-cvec-field-france-student\");\n const showCvecInput =\n showCvecInputVariation !== \"control\" &&\n showCvecInputVariation !== \"default\" &&\n viewModel?.countryChoice?.value === \"FR\";\n\n React.useEffect(() => {\n if (showCvecInput) {\n updateStudentViewModel(\"fieldsToSkipValidation\", []);\n } else {\n // Don't validate CVEC number if country is not France\n updateStudentViewModel(\"fieldsToSkipValidation\", [\"cvecNumber\"]);\n }\n }, [showCvecInput]);\n // #endregion include-cvec-field-france-student\n\n const failedInstantMatch = hasFailedInstantMatch(verificationResponse);\n\n const updateStudentViewModel = (key: keyof StudentPersonalInfoViewModel, value: any) => {\n const nextState: StudentPersonalInfoViewModel = produce(\n viewModel,\n (draft: StudentPersonalInfoViewModel) => {\n draft[key] = value;\n },\n );\n verificationService.updateViewModel(nextState);\n };\n\n const locale = viewModel.localeChoice.value;\n\n return (\n <PersonalInfoWrapper\n verificationService={verificationService}\n step={verificationResponse.currentStep}\n >\n <PersonalInfoHeader\n verificationService={verificationService}\n classNameIdentifier=\"student-personal-info\"\n />\n <ChangeLocaleV2Component verificationService={verificationService} />\n <CountryComponentWrapper\n verificationService={verificationService}\n disabled={getFieldConfigByFieldId(\"country\")?.disabled}\n />\n <CollegeName\n value={(verificationService.viewModel as StudentPersonalInfoViewModel).organization}\n verificationService={verificationService}\n isErrored={!!fieldValidationErrors.organization}\n isRequired\n disabled={getFieldConfigByFieldId(\"organization\")?.disabled}\n onChange={(choice: Organization) => {\n updateViewModelOrganization(choice, verificationService);\n updateFieldValidationErrorsByFieldId(\"organization\", choice, verificationService);\n }}\n />\n {showCvecInput && (\n <CVECNumberComponent\n isRequired={getFieldConfigByFieldId(\"cvecNumber\")?.requireIfOptional}\n value={viewModel.cvecNumber}\n isErrored={!!fieldValidationErrors.cvecNumber}\n disabled={getFieldConfigByFieldId(\"cvecNumber\")?.disabled}\n onChange={(newValue) => {\n updateStudentViewModel(\"cvecNumber\", newValue);\n updateFieldValidationErrorsByFieldId(\"cvecNumber\", newValue, verificationService);\n }}\n />\n )}\n <div className=\"sid-names\">\n <FirstName\n value={viewModel.firstName}\n isErrored={!!fieldValidationErrors.firstName}\n disabled={getFieldConfigByFieldId(\"firstName\")?.disabled}\n onChange={(newValue) => {\n updateStudentViewModel(\"firstName\", newValue);\n updateFieldValidationErrorsByFieldId(\"firstName\", newValue, verificationService);\n }}\n />\n\n <LastName\n value={viewModel.lastName}\n isErrored={!!fieldValidationErrors.lastName}\n disabled={getFieldConfigByFieldId(\"lastName\")?.disabled}\n onChange={(newValue) => {\n updateStudentViewModel(\"lastName\", newValue);\n updateFieldValidationErrorsByFieldId(\"lastName\", newValue, verificationService);\n }}\n />\n </div>\n <BirthDate\n value={viewModel.birthDate}\n errorId={fieldValidationErrors.birthDate}\n locale={locale}\n isRequired\n disabled={getFieldConfigByFieldId(\"birthDate\")?.disabled}\n onChange={(newValue) => {\n updateStudentViewModel(\"birthDate\", newValue);\n updateFieldValidationErrorsByFieldId(\"birthDate\", newValue, verificationService);\n }}\n />\n <Email\n value={viewModel.email}\n isErrored={!!fieldValidationErrors.email}\n explanation={\n <FormattedHTMLMessage\n id=\"emailExplanation\"\n defaultMessage=\"Personal or school email is fine\"\n />\n }\n onChange={(newValue) => {\n updateStudentViewModel(\"email\", newValue);\n updateFieldValidationErrorsByFieldId(\"email\", newValue, verificationService);\n }}\n onKeyDown={(event) => handleEmailOnKeyDown(event)}\n disabled={getFieldConfigByFieldId(\"email\")?.disabled}\n />\n {verificationService.programTheme.isSmsNotifierConfigured ||\n verificationService.programTheme.smsLoopEnabled ? (\n <PhoneNumber\n isRequired={!!verificationService.programTheme.smsLoopEnabled}\n value={viewModel.phoneNumber}\n isErrored={!!fieldValidationErrors.phoneNumber}\n disabled={getFieldConfigByFieldId(\"phoneNumber\")?.disabled}\n onChange={(newValue) => {\n updateStudentViewModel(\"phoneNumber\", newValue);\n updateFieldValidationErrorsByFieldId(\"phoneNumber\", newValue, verificationService);\n }}\n selectedCountryCode={viewModel.countryChoice && viewModel.countryChoice.value}\n />\n ) : null}\n {(options.customFormFields || []).map((config: CustomFormFieldConfig) => (\n <FormFieldCustom config={config} verificationService={verificationService} />\n ))}{\" \"}\n <MarketConsentWrapper\n verificationService={verificationService}\n isErrored={!!fieldValidationErrors.marketConsentValue}\n disabled={getFieldConfigByFieldId(\"marketConsentValue\")?.disabled}\n onChange={(newValue) => {\n updateStudentViewModel(\"metadata\", {\n ...verificationService.viewModel.metadata,\n marketConsentValue: newValue,\n });\n updateFieldValidationErrorsByFieldId(\"marketConsentValue\", newValue, verificationService);\n }}\n viewModel={viewModel}\n />\n <ExtraMessage verificationService={verificationService} suffix=\"CollectAboveSubmit\" />\n <PersonalInfoStepSubmitButton\n step={VerificationStepsEnum.collectStudentPersonalInfo}\n verificationService={verificationService}\n viewModel={viewModel}\n failedInstantMatch={failedInstantMatch}\n buttonText={\n <FormattedHTMLMessage\n id=\"step.personalInfo.submitButtonText\"\n defaultMessage=\"Verify My Student Status\"\n />\n }\n />\n </PersonalInfoWrapper>\n );\n};\n\nexport const StepStudentPersonalInfoComponent = StepStudentPersonalInfo;\n"],"names":["CVECNumber","value","isErrored","onChange","intl","explanation","placeholder","isRequired","showCvecInputVariation","useFlag","getDefaultExplanation","jsx","FormattedHTMLMessage","getFieldConfigByFieldId","FormFieldText","CVECNumberComponent","injectIntl","StepStudentPersonalInfo","verificationService","viewModel","fieldValidationErrors","verificationResponse","options","getOptions","showCvecInput","React","updateStudentViewModel","failedInstantMatch","hasFailedInstantMatch","key","nextState","produce","draft","locale","jsxs","PersonalInfoWrapper","PersonalInfoHeader","ChangeLocaleV2Component","CountryComponentWrapper","CollegeName","choice","updateViewModelOrganization","updateFieldValidationErrorsByFieldId","newValue","FirstName","LastName","BirthDate","Email","event","handleEmailOnKeyDown","PhoneNumber","config","FormFieldCustom","MarketConsentWrapper","ExtraMessage","PersonalInfoStepSubmitButton","VerificationStepsEnum","StepStudentPersonalInfoComponent"],"mappings":";;;AAWO,MAAMA,IAAa,CAAC;AAAA,EACzB,OAAAC;AAAA,EACA,WAAAC;AAAA,EACA,UAAAC;AAAA,EACA,MAAAC;AAAA,EACA,aAAAC;AAAA,EACA,aAAAC,IAAc;AAAA,EACd,YAAAC,IAAa;AACf,MAA6C;AAE3C,QAAMC,IAAyBC,EAAQ,mCAAmC,GAEpEC,IAAwB,MAC5BF,MAA2B,qBACzBG,gBAAAA,EAAAA;AAAAA,IAACC;AAAA,IAAA;AAAA,MACC,IAAG;AAAA,MACH,gBAAe;AAAA,IAAA;AAAA,EAAA,IAGjBD,gBAAAA,EAAAA;AAAAA,IAACC;AAAA,IAAA;AAAA,MACC,IAAG;AAAA,MACH,gBAAe;AAAA,IAAA;AAAA,EAAA;AAOrB,SAFsBC,EAAwB,YAAY,GAAG,SAGpD,OAIPF,gBAAAA,EAAAA;AAAAA,IAACG;AAAA,IAAA;AAAA,MACC,SAAQ;AAAA,MACR,OAAAb;AAAA,MACA,UAAAE;AAAA,MACA,aACEG,KACAF,EAAK,kBAAkB;AAAA,QACrB,IAAI;AAAA,QACJ,gBAAgB;AAAA,MAAA,CACjB;AAAA,MAEH,OAAO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Ae;AAAA,cAAA;AAAA,YAAA;AAAA,UACjB;AAAA,QAAA;AAAA,MAEJ;AAAA,IAAA;AAAA,EAAA;AAGN,GAEa6C,IAAmCxC;"}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
|
|
2
2
|
/**
|
|
3
|
-
* VERSION: 2.
|
|
4
|
-
* BUILD_TIMESTAMP:
|
|
5
|
-
* BUILD_DATE:
|
|
6
|
-
* BUILD_COMMIT:
|
|
3
|
+
* VERSION: 2.155.0-alpha.0
|
|
4
|
+
* BUILD_TIMESTAMP: 1763683855114
|
|
5
|
+
* BUILD_DATE: Fri Nov 21 2025 00:10:55 GMT+0000 (Coordinated Universal Time)
|
|
6
|
+
* BUILD_COMMIT: fa65b3ca7a41d610918988df94588b341b859b85
|
|
7
7
|
*/
|
|
8
|
-
import { j as a, N as h, O as x, m as y, x as i, a2 as E, f as t, as as u, at as j, a4 as N, o as n, T as M, U as I, W as T, ac as F, au as k, av as P, X as V, E as f, n as A, Y as R, Z as z, _ as B, $ as L, p as q, V as w, r as D } from "./es6-
|
|
8
|
+
import { j as a, N as h, O as x, m as y, x as i, a2 as E, f as t, as as u, at as j, a4 as N, o as n, T as M, U as I, W as T, ac as F, au as k, av as P, X as V, E as f, n as A, Y as R, Z as z, _ as B, $ as L, p as q, V as w, r as D } from "./es6-CDSYs19h.js";
|
|
9
9
|
import { injectIntl as O, FormattedHTMLMessage as p } from "react-intl";
|
|
10
10
|
const W = ({
|
|
11
11
|
intl: C,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index-CYUQahFE.js","sources":["../../src/components/StepEmploymentPersonalInfo/StepEmploymentPersonalInfoComponent.tsx"],"sourcesContent":["/**\n * TODO - preamble\n */\nimport React from \"react\";\nimport { FormattedHTMLMessage, injectIntl } from \"react-intl\";\nimport { produce } from \"immer\";\n\nimport { VerificationStepsEnum } from \"../../lib/types/runtimeTypes\";\nimport {\n VerificationService,\n Organization,\n EmploymentPersonalInfoViewModel,\n CustomFormFieldConfig,\n FormSelectChoice,\n State,\n} from \"../../lib/types/types\";\nimport {\n handleEmailOnKeyDown,\n updateFieldValidationErrorsByFieldId,\n updateViewModelOrganization,\n shouldCollectAddressFields,\n getAvailableStateChoices,\n getFieldConfigByFieldId,\n} from \"../../lib/utils/stepComponentHelpers/stepComponentHelpers\";\n\nimport { PhoneNumberComponent as PhoneNumber } from \"../FormFields/PhoneNumber/PhoneNumberComponent\";\nimport { FirstNameComponent as FirstName } from \"../FormFields/FirstName/FirstNameComponent\";\nimport { LastNameComponent as LastName } from \"../FormFields/LastName/LastNameComponent\";\nimport { EmailComponent as Email } from \"../FormFields/Email/EmailComponent\";\nimport { MarketConsentWrapperComponent as MarketConsentWrapper } from \"../FormFields/MarketConsentWrapper/MarketConsentWrapperComponent\";\nimport { AddressComponent } from \"../FormFields/Address/AddressComponent\";\nimport { CityComponent } from \"../FormFields/City/City\";\nimport { StateSelectComponent } from \"../FormFields/State/StateSelectComponent\";\nimport { CompanyComponent } from \"../FormFields/Company/CompanyComponent\";\nimport { PostalCodeComponent } from \"../FormFields/PostalCode/PostalCodeComponent\";\n\nimport { CountryComponentWrapper } from \"../FormFields/Country/CountryComponentWrapper\";\nimport { getOptions } from \"../../options/options\";\nimport { FormFieldCustom } from \"../FormFields/FormFieldCustom/FormFieldCustom\";\nimport { ExtraMessage } from \"../ExtraMessage\";\nimport { ChangeLocaleV2Component } from \"../FormFields/ChangeLocale/ChangeLocaleComponent\";\nimport { PersonalInfoWrapper } from \"../PersonalInfoStepWrapper/PersonalInfoStepWrapper\";\nimport { PersonalInfoStepSubmitButton } from \"../PersonalInfoStepSubmitButton/PersonalInfoStepSubmitButton\";\nimport { PersonalInfoHeader } from \"../FormHeader/StepHeaders/PersonalInfoHeaderComponent\";\n\ninterface StepEmploymentPersonalInfoComponentProps {\n intl: any;\n verificationService: VerificationService;\n}\n\nconst StepEmploymentPersonalInfo = ({\n intl,\n verificationService,\n}: StepEmploymentPersonalInfoComponentProps) => {\n const viewModel = verificationService.viewModel as EmploymentPersonalInfoViewModel;\n const { fieldValidationErrors } = verificationService;\n const options = getOptions();\n\n const updateEmploymentViewModel = (key: keyof EmploymentPersonalInfoViewModel, value: any) => {\n const nextState: EmploymentPersonalInfoViewModel = produce(\n viewModel,\n (draft: EmploymentPersonalInfoViewModel) => {\n (draft[key] as any) = value;\n },\n );\n verificationService.updateViewModel(nextState);\n };\n\n return (\n <PersonalInfoWrapper\n verificationService={verificationService}\n step={verificationService.verificationResponse.currentStep}\n >\n <PersonalInfoHeader\n verificationService={verificationService}\n classNameIdentifier=\"employment\"\n />\n\n <ChangeLocaleV2Component verificationService={verificationService} />\n <CountryComponentWrapper\n verificationService={verificationService}\n disabled={getFieldConfigByFieldId(\"country\")?.disabled}\n viewModelDraftDecorator={(draft, countryChoice) => {\n const viewModel = draft as EmploymentPersonalInfoViewModel;\n\n viewModel.shouldCollectAddress = shouldCollectAddressFields(\n countryChoice,\n verificationService.programTheme.config.countries,\n );\n if (!viewModel.shouldCollectAddress) {\n viewModel.address1 = \"\";\n viewModel.city = \"\";\n viewModel.state = \"\";\n viewModel.postalCode = \"\";\n viewModel.fieldsToSkipValidation = [\"address1\", \"city\", \"state\", \"postalCode\"];\n } else {\n viewModel.fieldsToSkipValidation = undefined;\n }\n }}\n />\n\n <CompanyComponent\n value={(verificationService.viewModel as EmploymentPersonalInfoViewModel).organization}\n verificationService={verificationService}\n isErrored={!!fieldValidationErrors.organization}\n disabled={getFieldConfigByFieldId(\"organization\")?.disabled}\n onChange={(choice: Organization) => {\n updateViewModelOrganization(choice, verificationService);\n updateFieldValidationErrorsByFieldId(\"organization\", choice, verificationService);\n }}\n />\n\n <div className=\"sid-names\">\n <FirstName\n value={viewModel.firstName}\n isErrored={!!fieldValidationErrors.firstName}\n disabled={getFieldConfigByFieldId(\"firstName\")?.disabled}\n onChange={(newValue) => {\n updateEmploymentViewModel(\"firstName\", newValue);\n updateFieldValidationErrorsByFieldId(\"firstName\", newValue, verificationService);\n }}\n />\n\n <LastName\n value={viewModel.lastName}\n isErrored={!!fieldValidationErrors.lastName}\n disabled={getFieldConfigByFieldId(\"lastName\")?.disabled}\n onChange={(newValue) => {\n updateEmploymentViewModel(\"lastName\", newValue);\n updateFieldValidationErrorsByFieldId(\"lastName\", newValue, verificationService);\n }}\n />\n </div>\n\n {shouldCollectAddressFields(\n viewModel.countryChoice,\n verificationService.programTheme.config.countries,\n ) ? (\n <AddressComponent\n isErrored={!!fieldValidationErrors.address1}\n errorId={fieldValidationErrors.address1}\n onChange={(newValue) => {\n updateEmploymentViewModel(\"address1\", newValue);\n updateFieldValidationErrorsByFieldId(\"address1\", newValue, verificationService);\n }}\n isRequired\n value={viewModel.address1}\n disabled={getFieldConfigByFieldId(\"address1\")?.disabled}\n explanation={\n <FormattedHTMLMessage id=\"addressExplanation\" defaultMessage=\"Use your home address\" />\n }\n />\n ) : null}\n\n {shouldCollectAddressFields(\n viewModel.countryChoice,\n verificationService.programTheme.config.countries,\n ) ? (\n <div className=\"sid-thirds\">\n <CityComponent\n isErrored={!!fieldValidationErrors.city}\n errorId={fieldValidationErrors.city}\n onChange={(newValue) => {\n updateEmploymentViewModel(\"city\", newValue);\n updateFieldValidationErrorsByFieldId(\"city\", newValue, verificationService);\n }}\n value={viewModel.city}\n isRequired\n disabled={getFieldConfigByFieldId(\"city\")?.disabled}\n />\n <StateSelectComponent\n isRequired\n options={getAvailableStateChoices(verificationService.programTheme, intl)}\n value={viewModel.state || undefined}\n isErrored={Boolean(fieldValidationErrors.state)}\n onChange={async (stateChoice: FormSelectChoice<State, string>) => {\n const stateValue = stateChoice ? stateChoice.value : undefined;\n updateEmploymentViewModel(\"state\", stateValue);\n updateFieldValidationErrorsByFieldId(\"state\", stateValue, verificationService);\n }}\n label={<FormattedHTMLMessage id=\"state\" defaultMessage=\"State\" />}\n disabled={getFieldConfigByFieldId(\"state\")?.disabled}\n />\n <PostalCodeComponent\n isErrored={!!fieldValidationErrors.postalCode}\n onChange={(newValue) => {\n updateEmploymentViewModel(\"postalCode\", newValue);\n updateFieldValidationErrorsByFieldId(\"postalCode\", newValue, verificationService);\n }}\n value={viewModel.postalCode}\n disabled={getFieldConfigByFieldId(\"postalCode\")?.disabled}\n />\n </div>\n ) : null}\n\n <Email\n value={viewModel.email}\n isErrored={!!fieldValidationErrors.email}\n explanation={\n <FormattedHTMLMessage\n id=\"emailExplanation\"\n defaultMessage=\"Use your work email if you have one\"\n />\n }\n onChange={(newValue) => {\n updateEmploymentViewModel(\"email\", newValue);\n updateFieldValidationErrorsByFieldId(\"email\", newValue, verificationService);\n }}\n onKeyDown={(event) => handleEmailOnKeyDown(event)}\n disabled={getFieldConfigByFieldId(\"email\")?.disabled}\n />\n {verificationService.programTheme.isSmsNotifierConfigured ||\n verificationService.programTheme.smsLoopEnabled ? (\n <PhoneNumber\n isRequired={!!verificationService.programTheme.smsLoopEnabled}\n value={viewModel.phoneNumber}\n isErrored={!!fieldValidationErrors.phoneNumber}\n onChange={(newValue) => {\n updateEmploymentViewModel(\"phoneNumber\", newValue);\n updateFieldValidationErrorsByFieldId(\"phoneNumber\", newValue, verificationService);\n }}\n selectedCountryCode={viewModel.countryChoice && viewModel.countryChoice.value}\n disabled={getFieldConfigByFieldId(\"phoneNumber\")?.disabled}\n />\n ) : null}\n\n {options.customFormFields.map((config: CustomFormFieldConfig) => (\n <FormFieldCustom config={config} verificationService={verificationService} />\n ))}\n\n <MarketConsentWrapper\n verificationService={verificationService}\n isErrored={!!fieldValidationErrors.marketConsentValue}\n onChange={(newValue) => {\n updateEmploymentViewModel(\"metadata\", {\n ...verificationService.viewModel.metadata,\n marketConsentValue: newValue,\n });\n updateFieldValidationErrorsByFieldId(\"marketConsentValue\", newValue, verificationService);\n }}\n viewModel={viewModel}\n disabled={getFieldConfigByFieldId(\"marketConsentValue\")?.disabled}\n />\n\n <ExtraMessage verificationService={verificationService} suffix=\"CollectAboveSubmit\" />\n\n <PersonalInfoStepSubmitButton\n step={VerificationStepsEnum.collectEmployeePersonalInfo}\n verificationService={verificationService}\n viewModel={viewModel}\n buttonText={\n <FormattedHTMLMessage\n id=\"step.personalInfo.submitButtonText\"\n defaultMessage=\"Verify My Employment Status\"\n />\n }\n />\n </PersonalInfoWrapper>\n );\n};\n\n// TODO remove injectIntl, unused\nexport const StepEmploymentPersonalInfoComponent = injectIntl(StepEmploymentPersonalInfo);\n"],"names":["StepEmploymentPersonalInfo","intl","verificationService","viewModel","fieldValidationErrors","options","getOptions","updateEmploymentViewModel","key","value","nextState","produce","draft","jsxs","PersonalInfoWrapper","jsx","PersonalInfoHeader","ChangeLocaleV2Component","CountryComponentWrapper","getFieldConfigByFieldId","countryChoice","shouldCollectAddressFields","CompanyComponent","choice","updateViewModelOrganization","updateFieldValidationErrorsByFieldId","FirstName","newValue","LastName","AddressComponent","FormattedHTMLMessage","CityComponent","StateSelectComponent","getAvailableStateChoices","stateChoice","stateValue","PostalCodeComponent","Email","event","handleEmailOnKeyDown","PhoneNumber","config","FormFieldCustom","MarketConsentWrapper","ExtraMessage","PersonalInfoStepSubmitButton","VerificationStepsEnum","StepEmploymentPersonalInfoComponent","injectIntl"],"mappings":";;AAkDA,MAAMA,IAA6B,CAAC;AAAA,EAClC,MAAAC;AAAA,EACA,qBAAAC;AACF,MAAgD;AAC9C,QAAMC,IAAYD,EAAoB,WAChC,EAAE,uBAAAE,MAA0BF,GAC5BG,IAAUC,EAAA,GAEVC,IAA4B,CAACC,GAA4CC,MAAe;AAC5F,UAAMC,IAA6CC;AAAAA,MACjDR;AAAA,MACA,CAACS,MAA2C;AACzC,QAAAA,EAAMJ,CAAG,IAAYC;AAAA,MACxB;AAAA,IAAA;AAEF,IAAAP,EAAoB,gBAAgBQ,CAAS;AAAA,EAC/C;AAEA,SACEG,gBAAAA,EAAAA;AAAAA,IAACC;AAAA,IAAA;AAAA,MACC,qBAAAZ;AAAA,MACA,MAAMA,EAAoB,qBAAqB;AAAA,MAE/C,UAAA;AAAA,QAAAa,gBAAAA,EAAAA;AAA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AA,CAAqB;AAAA,QAEpFa,gBAAAA,EAAAA;AAAAA,UAAC8B;AAAA,UAAA;AAAA,YACC,MAAMC,EAAsB;AAAA,YAC5B,qBAAA5C;AAAA,YACA,WAAAC;AAAA,YACA,YACEY,gBAAAA,EAAAA;AAAAA,cAACe;AAAA,cAAA;AAAA,gBACC,IAAG;AAAA,gBACH,gBAAe;AAAA,cAAA;AAAA,YAAA;AAAA,UACjB;AAAA,QAAA;AAAA,MAEJ;AAAA,IAAA;AAAA,EAAA;AAGN,GAGaiB,IAAsCC,EAAWhD,CAA0B;"}
|
|
1
|
+
{"version":3,"file":"index-o3NGd4si.js","sources":["../../src/components/StepEmploymentPersonalInfo/StepEmploymentPersonalInfoComponent.tsx"],"sourcesContent":["/**\n * TODO - preamble\n */\nimport React from \"react\";\nimport { FormattedHTMLMessage, injectIntl } from \"react-intl\";\nimport { produce } from \"immer\";\n\nimport { VerificationStepsEnum } from \"../../lib/types/runtimeTypes\";\nimport {\n VerificationService,\n Organization,\n EmploymentPersonalInfoViewModel,\n CustomFormFieldConfig,\n FormSelectChoice,\n State,\n} from \"../../lib/types/types\";\nimport {\n handleEmailOnKeyDown,\n updateFieldValidationErrorsByFieldId,\n updateViewModelOrganization,\n shouldCollectAddressFields,\n getAvailableStateChoices,\n getFieldConfigByFieldId,\n} from \"../../lib/utils/stepComponentHelpers/stepComponentHelpers\";\n\nimport { PhoneNumberComponent as PhoneNumber } from \"../FormFields/PhoneNumber/PhoneNumberComponent\";\nimport { FirstNameComponent as FirstName } from \"../FormFields/FirstName/FirstNameComponent\";\nimport { LastNameComponent as LastName } from \"../FormFields/LastName/LastNameComponent\";\nimport { EmailComponent as Email } from \"../FormFields/Email/EmailComponent\";\nimport { MarketConsentWrapperComponent as MarketConsentWrapper } from \"../FormFields/MarketConsentWrapper/MarketConsentWrapperComponent\";\nimport { AddressComponent } from \"../FormFields/Address/AddressComponent\";\nimport { CityComponent } from \"../FormFields/City/City\";\nimport { StateSelectComponent } from \"../FormFields/State/StateSelectComponent\";\nimport { CompanyComponent } from \"../FormFields/Company/CompanyComponent\";\nimport { PostalCodeComponent } from \"../FormFields/PostalCode/PostalCodeComponent\";\n\nimport { CountryComponentWrapper } from \"../FormFields/Country/CountryComponentWrapper\";\nimport { getOptions } from \"../../options/options\";\nimport { FormFieldCustom } from \"../FormFields/FormFieldCustom/FormFieldCustom\";\nimport { ExtraMessage } from \"../ExtraMessage\";\nimport { ChangeLocaleV2Component } from \"../FormFields/ChangeLocale/ChangeLocaleComponent\";\nimport { PersonalInfoWrapper } from \"../PersonalInfoStepWrapper/PersonalInfoStepWrapper\";\nimport { PersonalInfoStepSubmitButton } from \"../PersonalInfoStepSubmitButton/PersonalInfoStepSubmitButton\";\nimport { PersonalInfoHeader } from \"../FormHeader/StepHeaders/PersonalInfoHeaderComponent\";\n\ninterface StepEmploymentPersonalInfoComponentProps {\n intl: any;\n verificationService: VerificationService;\n}\n\nconst StepEmploymentPersonalInfo = ({\n intl,\n verificationService,\n}: StepEmploymentPersonalInfoComponentProps) => {\n const viewModel = verificationService.viewModel as EmploymentPersonalInfoViewModel;\n const { fieldValidationErrors } = verificationService;\n const options = getOptions();\n\n const updateEmploymentViewModel = (key: keyof EmploymentPersonalInfoViewModel, value: any) => {\n const nextState: EmploymentPersonalInfoViewModel = produce(\n viewModel,\n (draft: EmploymentPersonalInfoViewModel) => {\n (draft[key] as any) = value;\n },\n );\n verificationService.updateViewModel(nextState);\n };\n\n return (\n <PersonalInfoWrapper\n verificationService={verificationService}\n step={verificationService.verificationResponse.currentStep}\n >\n <PersonalInfoHeader\n verificationService={verificationService}\n classNameIdentifier=\"employment\"\n />\n\n <ChangeLocaleV2Component verificationService={verificationService} />\n <CountryComponentWrapper\n verificationService={verificationService}\n disabled={getFieldConfigByFieldId(\"country\")?.disabled}\n viewModelDraftDecorator={(draft, countryChoice) => {\n const viewModel = draft as EmploymentPersonalInfoViewModel;\n\n viewModel.shouldCollectAddress = shouldCollectAddressFields(\n countryChoice,\n verificationService.programTheme.config.countries,\n );\n if (!viewModel.shouldCollectAddress) {\n viewModel.address1 = \"\";\n viewModel.city = \"\";\n viewModel.state = \"\";\n viewModel.postalCode = \"\";\n viewModel.fieldsToSkipValidation = [\"address1\", \"city\", \"state\", \"postalCode\"];\n } else {\n viewModel.fieldsToSkipValidation = undefined;\n }\n }}\n />\n\n <CompanyComponent\n value={(verificationService.viewModel as EmploymentPersonalInfoViewModel).organization}\n verificationService={verificationService}\n isErrored={!!fieldValidationErrors.organization}\n disabled={getFieldConfigByFieldId(\"organization\")?.disabled}\n onChange={(choice: Organization) => {\n updateViewModelOrganization(choice, verificationService);\n updateFieldValidationErrorsByFieldId(\"organization\", choice, verificationService);\n }}\n />\n\n <div className=\"sid-names\">\n <FirstName\n value={viewModel.firstName}\n isErrored={!!fieldValidationErrors.firstName}\n disabled={getFieldConfigByFieldId(\"firstName\")?.disabled}\n onChange={(newValue) => {\n updateEmploymentViewModel(\"firstName\", newValue);\n updateFieldValidationErrorsByFieldId(\"firstName\", newValue, verificationService);\n }}\n />\n\n <LastName\n value={viewModel.lastName}\n isErrored={!!fieldValidationErrors.lastName}\n disabled={getFieldConfigByFieldId(\"lastName\")?.disabled}\n onChange={(newValue) => {\n updateEmploymentViewModel(\"lastName\", newValue);\n updateFieldValidationErrorsByFieldId(\"lastName\", newValue, verificationService);\n }}\n />\n </div>\n\n {shouldCollectAddressFields(\n viewModel.countryChoice,\n verificationService.programTheme.config.countries,\n ) ? (\n <AddressComponent\n isErrored={!!fieldValidationErrors.address1}\n errorId={fieldValidationErrors.address1}\n onChange={(newValue) => {\n updateEmploymentViewModel(\"address1\", newValue);\n updateFieldValidationErrorsByFieldId(\"address1\", newValue, verificationService);\n }}\n isRequired\n value={viewModel.address1}\n disabled={getFieldConfigByFieldId(\"address1\")?.disabled}\n explanation={\n <FormattedHTMLMessage id=\"addressExplanation\" defaultMessage=\"Use your home address\" />\n }\n />\n ) : null}\n\n {shouldCollectAddressFields(\n viewModel.countryChoice,\n verificationService.programTheme.config.countries,\n ) ? (\n <div className=\"sid-thirds\">\n <CityComponent\n isErrored={!!fieldValidationErrors.city}\n errorId={fieldValidationErrors.city}\n onChange={(newValue) => {\n updateEmploymentViewModel(\"city\", newValue);\n updateFieldValidationErrorsByFieldId(\"city\", newValue, verificationService);\n }}\n value={viewModel.city}\n isRequired\n disabled={getFieldConfigByFieldId(\"city\")?.disabled}\n />\n <StateSelectComponent\n isRequired\n options={getAvailableStateChoices(verificationService.programTheme, intl)}\n value={viewModel.state || undefined}\n isErrored={Boolean(fieldValidationErrors.state)}\n onChange={async (stateChoice: FormSelectChoice<State, string>) => {\n const stateValue = stateChoice ? stateChoice.value : undefined;\n updateEmploymentViewModel(\"state\", stateValue);\n updateFieldValidationErrorsByFieldId(\"state\", stateValue, verificationService);\n }}\n label={<FormattedHTMLMessage id=\"state\" defaultMessage=\"State\" />}\n disabled={getFieldConfigByFieldId(\"state\")?.disabled}\n />\n <PostalCodeComponent\n isErrored={!!fieldValidationErrors.postalCode}\n onChange={(newValue) => {\n updateEmploymentViewModel(\"postalCode\", newValue);\n updateFieldValidationErrorsByFieldId(\"postalCode\", newValue, verificationService);\n }}\n value={viewModel.postalCode}\n disabled={getFieldConfigByFieldId(\"postalCode\")?.disabled}\n />\n </div>\n ) : null}\n\n <Email\n value={viewModel.email}\n isErrored={!!fieldValidationErrors.email}\n explanation={\n <FormattedHTMLMessage\n id=\"emailExplanation\"\n defaultMessage=\"Use your work email if you have one\"\n />\n }\n onChange={(newValue) => {\n updateEmploymentViewModel(\"email\", newValue);\n updateFieldValidationErrorsByFieldId(\"email\", newValue, verificationService);\n }}\n onKeyDown={(event) => handleEmailOnKeyDown(event)}\n disabled={getFieldConfigByFieldId(\"email\")?.disabled}\n />\n {verificationService.programTheme.isSmsNotifierConfigured ||\n verificationService.programTheme.smsLoopEnabled ? (\n <PhoneNumber\n isRequired={!!verificationService.programTheme.smsLoopEnabled}\n value={viewModel.phoneNumber}\n isErrored={!!fieldValidationErrors.phoneNumber}\n onChange={(newValue) => {\n updateEmploymentViewModel(\"phoneNumber\", newValue);\n updateFieldValidationErrorsByFieldId(\"phoneNumber\", newValue, verificationService);\n }}\n selectedCountryCode={viewModel.countryChoice && viewModel.countryChoice.value}\n disabled={getFieldConfigByFieldId(\"phoneNumber\")?.disabled}\n />\n ) : null}\n\n {options.customFormFields.map((config: CustomFormFieldConfig) => (\n <FormFieldCustom config={config} verificationService={verificationService} />\n ))}\n\n <MarketConsentWrapper\n verificationService={verificationService}\n isErrored={!!fieldValidationErrors.marketConsentValue}\n onChange={(newValue) => {\n updateEmploymentViewModel(\"metadata\", {\n ...verificationService.viewModel.metadata,\n marketConsentValue: newValue,\n });\n updateFieldValidationErrorsByFieldId(\"marketConsentValue\", newValue, verificationService);\n }}\n viewModel={viewModel}\n disabled={getFieldConfigByFieldId(\"marketConsentValue\")?.disabled}\n />\n\n <ExtraMessage verificationService={verificationService} suffix=\"CollectAboveSubmit\" />\n\n <PersonalInfoStepSubmitButton\n step={VerificationStepsEnum.collectEmployeePersonalInfo}\n verificationService={verificationService}\n viewModel={viewModel}\n buttonText={\n <FormattedHTMLMessage\n id=\"step.personalInfo.submitButtonText\"\n defaultMessage=\"Verify My Employment Status\"\n />\n }\n />\n </PersonalInfoWrapper>\n );\n};\n\n// TODO remove injectIntl, unused\nexport const StepEmploymentPersonalInfoComponent = injectIntl(StepEmploymentPersonalInfo);\n"],"names":["StepEmploymentPersonalInfo","intl","verificationService","viewModel","fieldValidationErrors","options","getOptions","updateEmploymentViewModel","key","value","nextState","produce","draft","jsxs","PersonalInfoWrapper","jsx","PersonalInfoHeader","ChangeLocaleV2Component","CountryComponentWrapper","getFieldConfigByFieldId","countryChoice","shouldCollectAddressFields","CompanyComponent","choice","updateViewModelOrganization","updateFieldValidationErrorsByFieldId","FirstName","newValue","LastName","AddressComponent","FormattedHTMLMessage","CityComponent","StateSelectComponent","getAvailableStateChoices","stateChoice","stateValue","PostalCodeComponent","Email","event","handleEmailOnKeyDown","PhoneNumber","config","FormFieldCustom","MarketConsentWrapper","ExtraMessage","PersonalInfoStepSubmitButton","VerificationStepsEnum","StepEmploymentPersonalInfoComponent","injectIntl"],"mappings":";;AAkDA,MAAMA,IAA6B,CAAC;AAAA,EAClC,MAAAC;AAAA,EACA,qBAAAC;AACF,MAAgD;AAC9C,QAAMC,IAAYD,EAAoB,WAChC,EAAE,uBAAAE,MAA0BF,GAC5BG,IAAUC,EAAA,GAEVC,IAA4B,CAACC,GAA4CC,MAAe;AAC5F,UAAMC,IAA6CC;AAAAA,MACjDR;AAAA,MACA,CAACS,MAA2C;AACzC,QAAAA,EAAMJ,CAAG,IAAYC;AAAA,MACxB;AAAA,IAAA;AAEF,IAAAP,EAAoB,gBAAgBQ,CAAS;AAAA,EAC/C;AAEA,SACEG,gBAAAA,EAAAA;AAAAA,IAACC;AAAA,IAAA;AAAA,MACC,qBAAAZ;AAAA,MACA,MAAMA,EAAoB,qBAAqB;AAAA,MAE/C,UAAA;AAAA,QAAAa,gBAAAA,EAAAA;AAAAA,UAACC;AAAA,UAAA;AAAA,YACC,qBAAAd;AAAA,YACA,qBAAoB;AAAA,UAAA;AAAA,QAAA;AAAA,QAGtBa,gBAAAA,MAACE,KAAwB,qBAAAf,GAA0C;AAAA,QACnEa,gBAAAA,EAAAA;AAAAA,UAACG;AAAA,UAAA;AAAA,YACC,qBAAAhB;AAAA,YACA,UAAUiB,EAAwB,SAAS,GAAG;AAAA,YAC9C,yBAAyB,CAACP,GAAOQ,MAAkB;AACjD,oBAAMjB,IAAYS;AAElBT,cAAAA,EAAU,uBAAuBkB;AAAA,gBAC/BD;AAAA,gBACAlB,EAAoB,aAAa,OAAO;AAAA,cAAA,GAErCC,EAAU,uBAObA,EAAU,yBAAyB,UANnCA,EAAU,WAAW,IACrBA,EAAU,OAAO,IACjBA,EAAU,QAAQ,IAClBA,EAAU,aAAa,IACvBA,EAAU,yBAAyB,CAAC,YAAY,QAAQ,SAAS,YAAY;AAAA,YAIjF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1763683855114
|
|
5
|
+
* BUILD_DATE: Fri Nov 21 2025 00:10:55 GMT+0000 (Coordinated Universal Time)
|
|
6
|
+
* BUILD_COMMIT: fa65b3ca7a41d610918988df94588b341b859b85
|
|
7
7
|
*/
|
|
8
|
-
import { k as I, j as s, N, O as f, m as y, x as E, a2 as j, f as t, ae as P, ax as F, ag as D, o as n, ay as T, a4 as V, T as K, U as R, a5 as c, X as k, E as L, n as z, Y as B, a6 as O, Z as w, _ as q, $ as A, p as H, V as W, ad as _, az as $ } from "./es6-
|
|
8
|
+
import { k as I, j as s, N, O as f, m as y, x as E, a2 as j, f as t, ae as P, ax as F, ag as D, o as n, ay as T, a4 as V, T as K, U as R, a5 as c, X as k, E as L, n as z, Y as B, a6 as O, Z as w, _ as q, $ as A, p as H, V as W, ad as _, az as $ } from "./es6-CDSYs19h.js";
|
|
9
9
|
import U from "react";
|
|
10
10
|
import { injectIntl as Y, FormattedHTMLMessage as m } from "react-intl";
|
|
11
|
-
import { u as G } from "./useCollectFieldsEndpoint-
|
|
11
|
+
import { u as G } from "./useCollectFieldsEndpoint-DVOREKgX.js";
|
|
12
12
|
const X = {
|
|
13
13
|
AT: "gbrNummer",
|
|
14
14
|
ES: "numeroColegiado",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index-BJ8btxKT.js","sources":["../../src/components/StepMedicalProfessionalPersonalInfo/StepMedicalProfessionalPersonalInfoComponent.tsx"],"sourcesContent":["/**\n * TODO - preamble\n */\nimport React from \"react\";\nimport { FormattedHTMLMessage, injectIntl } from \"react-intl\";\n\nimport { useCollectFieldsEndpoint } from \"@/lib/ServerApi/useCollectFieldsEndpoint\";\nimport {\n VerificationStepsEnum,\n MedicalProfessionalStatusDefaultMessagesEnum,\n} from \"../../lib/types/runtimeTypes\";\nimport { hasFailedInstantMatch } from \"../../lib/VerificationService/VerificationServiceHelpers\";\nimport {\n VerificationService,\n FormSelectChoice,\n Organization,\n MedicalProfessionalPersonalInfoViewModel,\n MedicalProfessionalPersonalInfoResponse,\n CustomFormFieldConfig,\n} from \"../../lib/types/types\";\nimport {\n handleEmailOnKeyDown,\n updateFieldValidationErrorsByFieldId,\n updateViewModelOrganization,\n produceDraftViewModel,\n getStatusLabel,\n getAvailableMedicalStatuses,\n getFieldConfigByFieldId,\n} from \"../../lib/utils/stepComponentHelpers/stepComponentHelpers\";\n\nimport { PhoneNumberComponent as PhoneNumber } from \"../FormFields/PhoneNumber/PhoneNumberComponent\";\nimport { FirstNameComponent as FirstName } from \"../FormFields/FirstName/FirstNameComponent\";\nimport { LastNameComponent as LastName } from \"../FormFields/LastName/LastNameComponent\";\nimport { EmailComponent as Email } from \"../FormFields/Email/EmailComponent\";\nimport { BirthDateComponent as BirthDate } from \"../FormFields/BirthDate/BirthDateComponent\";\nimport { MarketConsentWrapperComponent as MarketConsentWrapper } from \"../FormFields/MarketConsentWrapper/MarketConsentWrapperComponent\";\nimport { PostalCodeComponent as PostalCode } from \"../FormFields/PostalCode/PostalCodeComponent\";\nimport { StatusComponent as MedicalStatus } from \"../FormFields/Status/StatusComponent\";\nimport { MedicalProfessionalOrganizationComponent as MedicalProfessionalOrganization } from \"../FormFields/MedicalProfessionalOrganization/MedicalProfessionalOrganizationComponent\";\nimport { CountryComponentWrapper } from \"../FormFields/Country/CountryComponentWrapper\";\nimport { MemberIdComponent as MemberId } from \"../FormFields/MemberId/MemberIdComponent\";\nimport { getOptions } from \"../../options/options\";\nimport { FormFieldCustom } from \"../FormFields/FormFieldCustom/FormFieldCustom\";\nimport { ExtraMessage } from \"../ExtraMessage\";\nimport { ChangeLocaleV2Component } from \"../FormFields/ChangeLocale/ChangeLocaleComponent\";\nimport { PersonalInfoWrapper } from \"../PersonalInfoStepWrapper/PersonalInfoStepWrapper\";\nimport { PersonalInfoStepSubmitButton } from \"../PersonalInfoStepSubmitButton/PersonalInfoStepSubmitButton\";\nimport { PersonalInfoHeader } from \"../FormHeader/StepHeaders/PersonalInfoHeaderComponent\";\n\ninterface StepMedicalProfessionalPersonalInfoComponentProps {\n verificationService: VerificationService;\n intl: any;\n}\n\ntype MemberIdFieldType =\n | \"registrationNumber\"\n | \"numeroColegiado\"\n | \"autorisationsId\"\n | \"globalLocationNumber\"\n | \"gbrNummer\";\n\nconst memberIdMessageKeysByCountry: Record<string, MemberIdFieldType> = {\n AT: \"gbrNummer\",\n ES: \"numeroColegiado\",\n DK: \"autorisationsId\",\n CH: \"globalLocationNumber\",\n IE: \"registrationNumber\",\n GB: \"registrationNumber\",\n};\n\nconst getMemberIdMessageKeys = (country: string) => {\n const memberIdFieldType: MemberIdFieldType =\n memberIdMessageKeysByCountry[country] || \"registrationNumber\";\n return {\n labelKey: `step.collectMedicalPersonalInfo.${memberIdFieldType}Label`,\n explanationKey: `step.collectMedicalPersonalInfo.${memberIdFieldType}Explanation`,\n };\n};\n\nexport const StepMedicalProfessionalPersonalInfo = ({\n intl,\n verificationService,\n}: StepMedicalProfessionalPersonalInfoComponentProps) => {\n const viewModel = verificationService.viewModel as MedicalProfessionalPersonalInfoViewModel;\n const { fieldValidationErrors } = verificationService;\n const verificationResponse =\n verificationService.verificationResponse as MedicalProfessionalPersonalInfoResponse;\n const failedInstantMatch = hasFailedInstantMatch(verificationResponse);\n const options = getOptions();\n\n const locale = viewModel.localeChoice.value;\n\n const updateMedicalProfessionalViewModel = (\n key: keyof MedicalProfessionalPersonalInfoViewModel,\n value: any,\n ) => {\n const nextState = produceDraftViewModel(viewModel, key, value);\n verificationService.updateViewModel(nextState);\n };\n\n const { isFieldOptional } = useCollectFieldsEndpoint({\n verificationId: verificationResponse.verificationId,\n currentStep: verificationResponse.currentStep,\n viewModel,\n });\n const shouldRenderMemberId = isFieldOptional(\"memberId\");\n\n React.useEffect(() => {\n // If the memberId field is not rendered, we shouldn't validate it\n // partially update to avoid clobbering the rest of the viewModel\n if (shouldRenderMemberId) {\n verificationService.updateViewModel({ fieldsToSkipValidation: [] }, { partial: true });\n } else {\n verificationService.updateViewModel(\n { fieldsToSkipValidation: [\"memberId\"] },\n { partial: true },\n );\n }\n }, [shouldRenderMemberId]);\n\n return (\n <PersonalInfoWrapper\n verificationService={verificationService}\n step={verificationResponse.currentStep}\n >\n <PersonalInfoHeader\n verificationService={verificationService}\n classNameIdentifier=\"medical-personal-info\"\n />\n\n <ChangeLocaleV2Component verificationService={verificationService} />\n <CountryComponentWrapper\n verificationService={verificationService}\n disabled={getFieldConfigByFieldId(\"country\")?.disabled}\n />\n <MedicalStatus\n segmentId=\"medical\"\n value={{\n value: viewModel.status,\n label: getStatusLabel(\n intl,\n viewModel.status,\n MedicalProfessionalStatusDefaultMessagesEnum,\n ),\n }}\n isErrored={!!fieldValidationErrors.status}\n options={getAvailableMedicalStatuses(intl, verificationResponse.availableStatuses)}\n disabled={getFieldConfigByFieldId(\"status\")?.disabled}\n onChange={(status: FormSelectChoice) => {\n updateMedicalProfessionalViewModel(\"status\", status ? (status.value as string) : \"\");\n updateFieldValidationErrorsByFieldId(\n \"status\",\n status ? (status.value as string) : \"\",\n verificationService,\n );\n }}\n />\n <MedicalProfessionalOrganization\n isErrored={!!fieldValidationErrors.organization}\n onChange={(choice: Organization) => {\n updateViewModelOrganization(choice, verificationService);\n updateFieldValidationErrorsByFieldId(\"organization\", choice, verificationService);\n }}\n value={\n (verificationService.viewModel as MedicalProfessionalPersonalInfoViewModel).organization\n }\n verificationService={verificationService}\n disabled={getFieldConfigByFieldId(\"organization\")?.disabled}\n />\n <div className=\"sid-names\">\n <FirstName\n value={viewModel.firstName}\n isErrored={!!fieldValidationErrors.firstName}\n disabled={getFieldConfigByFieldId(\"firstName\")?.disabled}\n onChange={(newValue) => {\n updateMedicalProfessionalViewModel(\"firstName\", newValue);\n updateFieldValidationErrorsByFieldId(\"firstName\", newValue, verificationService);\n }}\n />\n\n <LastName\n value={viewModel.lastName}\n isErrored={!!fieldValidationErrors.lastName}\n disabled={getFieldConfigByFieldId(\"lastName\")?.disabled}\n onChange={(newValue) => {\n updateMedicalProfessionalViewModel(\"lastName\", newValue);\n updateFieldValidationErrorsByFieldId(\"lastName\", newValue, verificationService);\n }}\n />\n </div>\n <BirthDate\n errorId={fieldValidationErrors.birthDate}\n locale={locale}\n disabled={getFieldConfigByFieldId(\"birthDate\")?.disabled}\n onChange={(newValue) => {\n updateMedicalProfessionalViewModel(\"birthDate\", newValue);\n updateFieldValidationErrorsByFieldId(\"birthDate\", newValue, verificationService);\n }}\n value={viewModel.birthDate}\n />\n <PostalCode\n isErrored={!!fieldValidationErrors.postalCode}\n onChange={(newValue) => {\n updateMedicalProfessionalViewModel(\"postalCode\", newValue);\n updateFieldValidationErrorsByFieldId(\"postalCode\", newValue, verificationService);\n }}\n value={viewModel.postalCode}\n disabled={getFieldConfigByFieldId(\"postalCode\")?.disabled}\n explanation={\n <FormattedHTMLMessage\n id=\"postalCodeExplanation\"\n defaultMessage=\"Use the location on file with your licensing body\"\n />\n }\n />\n <Email\n value={viewModel.email}\n isErrored={!!fieldValidationErrors.email}\n explanation={\n <FormattedHTMLMessage\n id=\"emailExplanation\"\n defaultMessage=\"Needed to send you your unique code\"\n />\n }\n onChange={(newValue) => {\n updateMedicalProfessionalViewModel(\"email\", newValue);\n updateFieldValidationErrorsByFieldId(\"email\", newValue, verificationService);\n }}\n onKeyDown={(event) => handleEmailOnKeyDown(event)}\n disabled={getFieldConfigByFieldId(\"email\")?.disabled}\n />\n {verificationService.programTheme.isSmsNotifierConfigured ||\n verificationService.programTheme.smsLoopEnabled ? (\n <PhoneNumber\n isRequired={!!verificationService.programTheme.smsLoopEnabled}\n value={viewModel.phoneNumber}\n isErrored={!!fieldValidationErrors.phoneNumber}\n onChange={(newValue) => {\n updateMedicalProfessionalViewModel(\"phoneNumber\", newValue);\n updateFieldValidationErrorsByFieldId(\"phoneNumber\", newValue, verificationService);\n }}\n selectedCountryCode={viewModel.countryChoice && viewModel.countryChoice.value}\n disabled={getFieldConfigByFieldId(\"phoneNumber\")?.disabled}\n />\n ) : null}\n {shouldRenderMemberId && (\n <MemberId\n value={viewModel.memberId}\n isErrored={!!fieldValidationErrors.memberId}\n isRequired={getFieldConfigByFieldId(\"memberId\")?.requireIfOptional}\n disabled={getFieldConfigByFieldId(\"memberId\")?.disabled}\n onChange={(newValue) => {\n updateMedicalProfessionalViewModel(\"memberId\", newValue);\n updateFieldValidationErrorsByFieldId(\"memberId\", newValue, verificationService);\n }}\n explanation={\n <FormattedHTMLMessage\n id={getMemberIdMessageKeys(viewModel.country).explanationKey}\n defaultMessage=\"Your Professional Membership Registration Number\"\n />\n }\n label={\n <FormattedHTMLMessage\n id={getMemberIdMessageKeys(viewModel.country).labelKey}\n defaultMessage=\"Registration Number\"\n />\n }\n />\n )}\n {options.customFormFields.map((config: CustomFormFieldConfig) => (\n <FormFieldCustom config={config} verificationService={verificationService} />\n ))}\n <MarketConsentWrapper\n verificationService={verificationService}\n isErrored={!!fieldValidationErrors.marketConsentValue}\n onChange={(newValue) => {\n updateMedicalProfessionalViewModel(\"metadata\", {\n ...verificationService.viewModel.metadata,\n marketConsentValue: newValue,\n });\n updateFieldValidationErrorsByFieldId(\"marketConsentValue\", newValue, verificationService);\n }}\n viewModel={viewModel}\n disabled={getFieldConfigByFieldId(\"marketConsentValue\")?.disabled}\n />\n <ExtraMessage verificationService={verificationService} suffix=\"CollectAboveSubmit\" />\n <PersonalInfoStepSubmitButton\n step={VerificationStepsEnum.collectMedicalProfessionalPersonalInfo}\n verificationService={verificationService}\n viewModel={viewModel}\n failedInstantMatch={failedInstantMatch}\n buttonText={\n <FormattedHTMLMessage\n id=\"step.personalInfo.submitButtonText\"\n defaultMessage=\"Verify My Medical Professional Status\"\n />\n }\n />\n </PersonalInfoWrapper>\n );\n};\n\nexport const StepMedicalProfessionalPersonalInfoComponent = injectIntl(\n StepMedicalProfessionalPersonalInfo,\n);\n"],"names":["memberIdMessageKeysByCountry","getMemberIdMessageKeys","country","memberIdFieldType","StepMedicalProfessionalPersonalInfo","intl","verificationService","viewModel","fieldValidationErrors","verificationResponse","failedInstantMatch","hasFailedInstantMatch","options","getOptions","locale","updateMedicalProfessionalViewModel","key","value","nextState","produceDraftViewModel","isFieldOptional","useCollectFieldsEndpoint","shouldRenderMemberId","React","jsxs","PersonalInfoWrapper","jsx","PersonalInfoHeader","ChangeLocaleV2Component","CountryComponentWrapper","getFieldConfigByFieldId","MedicalStatus","getStatusLabel","MedicalProfessionalStatusDefaultMessagesEnum","getAvailableMedicalStatuses","status","updateFieldValidationErrorsByFieldId","MedicalProfessionalOrganization","choice","updateViewModelOrganization","FirstName","newValue","LastName","BirthDate","PostalCode","FormattedHTMLMessage","Email","event","handleEmailOnKeyDown","PhoneNumber","MemberId","config","FormFieldCustom","MarketConsentWrapper","ExtraMessage","PersonalInfoStepSubmitButton","VerificationStepsEnum","StepMedicalProfessionalPersonalInfoComponent","injectIntl"],"mappings":";;;;AA6DA,MAAMA,IAAkE;AAAA,EACtE,IAAI;AAAA,EACJ,IAAI;AAAA,EACJ,IAAI;AAAA,EACJ,IAAI;AAAA,EACJ,IAAI;AAAA,EACJ,IAAI;AACN,GAEMC,IAAyB,CAACC,MAAoB;AAClD,QAAMC,IACJH,EAA6BE,CAAO,KAAK;AAC3C,SAAO;AAAA,IACL,UAAU,mCAAmCC,CAAiB;AAAA,IAC9D,gBAAgB,mCAAmCA,CAAiB;AAAA,EAAA;AAExE,GAEaC,IAAsC,CAAC;AAAA,EAClD,MAAAC;AAAA,EACA,qBAAAC;AACF,MAAyD;AACvD,QAAMC,IAAYD,EAAoB,WAChC,EAAE,uBAAAE,MAA0BF,GAC5BG,IACJH,EAAoB,sBAChBI,IAAqBC,EAAsBF,CAAoB,GAC/DG,IAAUC,EAAA,GAEVC,IAASP,EAAU,aAAa,OAEhCQ,IAAqC,CACzCC,GACAC,MACG;AACH,UAAMC,IAAYC,EAAsBZ,GAAWS,GAAKC,CAAK;AAC7D,IAAAX,EAAoB,gBAAgBY,CAAS;AAAA,EAC/C,GAEM,EAAE,iBAAAE,EAAA,IAAoBC,EAAyB;AAAA,IACnD,g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B,cAAA1B,EAAmC,YAAY;AAAA,gBAC7C,GAAGT,EAAoB,UAAU;AAAA,gBACjC,oBAAoBmC;AAAA,cAAA,CACrB,GACDL,EAAqC,sBAAsBK,GAAUnC,CAAmB;AAAA,YAC1F;AAAA,YACA,WAAAC;AAAA,YACA,UAAUuB,EAAwB,oBAAoB,GAAG;AAAA,UAAA;AAAA,QAAA;AAAA,QAE3DJ,gBAAAA,EAAAA,IAAC4B,GAAA,EAAa,qBAAAhD,GAA0C,QAAO,qBAAA,CAAqB;AAAA,QACpFoB,gBAAAA,EAAAA;AAAAA,UAAC6B;AAAA,UAAA;AAAA,YACC,MAAMC,EAAsB;AAAA,YAC5B,qBAAAlD;AAAA,YACA,WAAAC;AAAA,YACA,oBAAAG;AAAA,YACA,YACEgB,gBAAAA,EAAAA;AAAAA,cAACmB;AAAA,cAAA;AAAA,gBACC,IAAG;AAAA,gBACH,gBAAe;AAAA,cAAA;AAAA,YAAA;AAAA,UACjB;AAAA,QAAA;AAAA,MAEJ;AAAA,IAAA;AAAA,EAAA;AAGN,GAEaY,KAA+CC;AAAA,EAC1DtD;AACF;"}
|
|
1
|
+
{"version":3,"file":"index-u7yjgSxi.js","sources":["../../src/components/StepMedicalProfessionalPersonalInfo/StepMedicalProfessionalPersonalInfoComponent.tsx"],"sourcesContent":["/**\n * TODO - preamble\n */\nimport React from \"react\";\nimport { FormattedHTMLMessage, injectIntl } from \"react-intl\";\n\nimport { useCollectFieldsEndpoint } from \"@/lib/ServerApi/useCollectFieldsEndpoint\";\nimport {\n VerificationStepsEnum,\n MedicalProfessionalStatusDefaultMessagesEnum,\n} from \"../../lib/types/runtimeTypes\";\nimport { hasFailedInstantMatch } from \"../../lib/VerificationService/VerificationServiceHelpers\";\nimport {\n VerificationService,\n FormSelectChoice,\n Organization,\n MedicalProfessionalPersonalInfoViewModel,\n MedicalProfessionalPersonalInfoResponse,\n CustomFormFieldConfig,\n} from \"../../lib/types/types\";\nimport {\n handleEmailOnKeyDown,\n updateFieldValidationErrorsByFieldId,\n updateViewModelOrganization,\n produceDraftViewModel,\n getStatusLabel,\n getAvailableMedicalStatuses,\n getFieldConfigByFieldId,\n} from \"../../lib/utils/stepComponentHelpers/stepComponentHelpers\";\n\nimport { PhoneNumberComponent as PhoneNumber } from \"../FormFields/PhoneNumber/PhoneNumberComponent\";\nimport { FirstNameComponent as FirstName } from \"../FormFields/FirstName/FirstNameComponent\";\nimport { LastNameComponent as LastName } from \"../FormFields/LastName/LastNameComponent\";\nimport { EmailComponent as Email } from \"../FormFields/Email/EmailComponent\";\nimport { BirthDateComponent as BirthDate } from \"../FormFields/BirthDate/BirthDateComponent\";\nimport { MarketConsentWrapperComponent as MarketConsentWrapper } from \"../FormFields/MarketConsentWrapper/MarketConsentWrapperComponent\";\nimport { PostalCodeComponent as PostalCode } from \"../FormFields/PostalCode/PostalCodeComponent\";\nimport { StatusComponent as MedicalStatus } from \"../FormFields/Status/StatusComponent\";\nimport { MedicalProfessionalOrganizationComponent as MedicalProfessionalOrganization } from \"../FormFields/MedicalProfessionalOrganization/MedicalProfessionalOrganizationComponent\";\nimport { CountryComponentWrapper } from \"../FormFields/Country/CountryComponentWrapper\";\nimport { MemberIdComponent as MemberId } from \"../FormFields/MemberId/MemberIdComponent\";\nimport { getOptions } from \"../../options/options\";\nimport { FormFieldCustom } from \"../FormFields/FormFieldCustom/FormFieldCustom\";\nimport { ExtraMessage } from \"../ExtraMessage\";\nimport { ChangeLocaleV2Component } from \"../FormFields/ChangeLocale/ChangeLocaleComponent\";\nimport { PersonalInfoWrapper } from \"../PersonalInfoStepWrapper/PersonalInfoStepWrapper\";\nimport { PersonalInfoStepSubmitButton } from \"../PersonalInfoStepSubmitButton/PersonalInfoStepSubmitButton\";\nimport { PersonalInfoHeader } from \"../FormHeader/StepHeaders/PersonalInfoHeaderComponent\";\n\ninterface StepMedicalProfessionalPersonalInfoComponentProps {\n verificationService: VerificationService;\n intl: any;\n}\n\ntype MemberIdFieldType =\n | \"registrationNumber\"\n | \"numeroColegiado\"\n | \"autorisationsId\"\n | \"globalLocationNumber\"\n | \"gbrNummer\";\n\nconst memberIdMessageKeysByCountry: Record<string, MemberIdFieldType> = {\n AT: \"gbrNummer\",\n ES: \"numeroColegiado\",\n DK: \"autorisationsId\",\n CH: \"globalLocationNumber\",\n IE: \"registrationNumber\",\n GB: \"registrationNumber\",\n};\n\nconst getMemberIdMessageKeys = (country: string) => {\n const memberIdFieldType: MemberIdFieldType =\n memberIdMessageKeysByCountry[country] || \"registrationNumber\";\n return {\n labelKey: `step.collectMedicalPersonalInfo.${memberIdFieldType}Label`,\n explanationKey: `step.collectMedicalPersonalInfo.${memberIdFieldType}Explanation`,\n };\n};\n\nexport const StepMedicalProfessionalPersonalInfo = ({\n intl,\n verificationService,\n}: StepMedicalProfessionalPersonalInfoComponentProps) => {\n const viewModel = verificationService.viewModel as MedicalProfessionalPersonalInfoViewModel;\n const { fieldValidationErrors } = verificationService;\n const verificationResponse =\n verificationService.verificationResponse as MedicalProfessionalPersonalInfoResponse;\n const failedInstantMatch = hasFailedInstantMatch(verificationResponse);\n const options = getOptions();\n\n const locale = viewModel.localeChoice.value;\n\n const updateMedicalProfessionalViewModel = (\n key: keyof MedicalProfessionalPersonalInfoViewModel,\n value: any,\n ) => {\n const nextState = produceDraftViewModel(viewModel, key, value);\n verificationService.updateViewModel(nextState);\n };\n\n const { isFieldOptional } = useCollectFieldsEndpoint({\n verificationId: verificationResponse.verificationId,\n currentStep: verificationResponse.currentStep,\n viewModel,\n });\n const shouldRenderMemberId = isFieldOptional(\"memberId\");\n\n React.useEffect(() => {\n // If the memberId field is not rendered, we shouldn't validate it\n // partially update to avoid clobbering the rest of the viewModel\n if (shouldRenderMemberId) {\n verificationService.updateViewModel({ fieldsToSkipValidation: [] }, { partial: true });\n } else {\n verificationService.updateViewModel(\n { fieldsToSkipValidation: [\"memberId\"] },\n { partial: true },\n );\n }\n }, [shouldRenderMemberId]);\n\n return (\n <PersonalInfoWrapper\n verificationService={verificationService}\n step={verificationResponse.currentStep}\n >\n <PersonalInfoHeader\n verificationService={verificationService}\n classNameIdentifier=\"medical-personal-info\"\n />\n\n <ChangeLocaleV2Component verificationService={verificationService} />\n <CountryComponentWrapper\n verificationService={verificationService}\n disabled={getFieldConfigByFieldId(\"country\")?.disabled}\n />\n <MedicalStatus\n segmentId=\"medical\"\n value={{\n value: viewModel.status,\n label: getStatusLabel(\n intl,\n viewModel.status,\n MedicalProfessionalStatusDefaultMessagesEnum,\n ),\n }}\n isErrored={!!fieldValidationErrors.status}\n options={getAvailableMedicalStatuses(intl, verificationResponse.availableStatuses)}\n disabled={getFieldConfigByFieldId(\"status\")?.disabled}\n onChange={(status: FormSelectChoice) => {\n updateMedicalProfessionalViewModel(\"status\", status ? (status.value as string) : \"\");\n updateFieldValidationErrorsByFieldId(\n \"status\",\n status ? (status.value as string) : \"\",\n verificationService,\n );\n }}\n />\n <MedicalProfessionalOrganization\n isErrored={!!fieldValidationErrors.organization}\n onChange={(choice: Organization) => {\n updateViewModelOrganization(choice, verificationService);\n updateFieldValidationErrorsByFieldId(\"organization\", choice, verificationService);\n }}\n value={\n (verificationService.viewModel as MedicalProfessionalPersonalInfoViewModel).organization\n }\n verificationService={verificationService}\n disabled={getFieldConfigByFieldId(\"organization\")?.disabled}\n />\n <div className=\"sid-names\">\n <FirstName\n value={viewModel.firstName}\n isErrored={!!fieldValidationErrors.firstName}\n disabled={getFieldConfigByFieldId(\"firstName\")?.disabled}\n onChange={(newValue) => {\n updateMedicalProfessionalViewModel(\"firstName\", newValue);\n updateFieldValidationErrorsByFieldId(\"firstName\", newValue, verificationService);\n }}\n />\n\n <LastName\n value={viewModel.lastName}\n isErrored={!!fieldValidationErrors.lastName}\n disabled={getFieldConfigByFieldId(\"lastName\")?.disabled}\n onChange={(newValue) => {\n updateMedicalProfessionalViewModel(\"lastName\", newValue);\n updateFieldValidationErrorsByFieldId(\"lastName\", newValue, verificationService);\n }}\n />\n </div>\n <BirthDate\n errorId={fieldValidationErrors.birthDate}\n locale={locale}\n disabled={getFieldConfigByFieldId(\"birthDate\")?.disabled}\n onChange={(newValue) => {\n updateMedicalProfessionalViewModel(\"birthDate\", newValue);\n updateFieldValidationErrorsByFieldId(\"birthDate\", newValue, verificationService);\n }}\n value={viewModel.birthDate}\n />\n <PostalCode\n isErrored={!!fieldValidationErrors.postalCode}\n onChange={(newValue) => {\n updateMedicalProfessionalViewModel(\"postalCode\", newValue);\n updateFieldValidationErrorsByFieldId(\"postalCode\", newValue, verificationService);\n }}\n value={viewModel.postalCode}\n disabled={getFieldConfigByFieldId(\"postalCode\")?.disabled}\n explanation={\n <FormattedHTMLMessage\n id=\"postalCodeExplanation\"\n defaultMessage=\"Use the location on file with your licensing body\"\n />\n }\n />\n <Email\n value={viewModel.email}\n isErrored={!!fieldValidationErrors.email}\n explanation={\n <FormattedHTMLMessage\n id=\"emailExplanation\"\n defaultMessage=\"Needed to send you your unique code\"\n />\n }\n onChange={(newValue) => {\n updateMedicalProfessionalViewModel(\"email\", newValue);\n updateFieldValidationErrorsByFieldId(\"email\", newValue, verificationService);\n }}\n onKeyDown={(event) => handleEmailOnKeyDown(event)}\n disabled={getFieldConfigByFieldId(\"email\")?.disabled}\n />\n {verificationService.programTheme.isSmsNotifierConfigured ||\n verificationService.programTheme.smsLoopEnabled ? (\n <PhoneNumber\n isRequired={!!verificationService.programTheme.smsLoopEnabled}\n value={viewModel.phoneNumber}\n isErrored={!!fieldValidationErrors.phoneNumber}\n onChange={(newValue) => {\n updateMedicalProfessionalViewModel(\"phoneNumber\", newValue);\n updateFieldValidationErrorsByFieldId(\"phoneNumber\", newValue, verificationService);\n }}\n selectedCountryCode={viewModel.countryChoice && viewModel.countryChoice.value}\n disabled={getFieldConfigByFieldId(\"phoneNumber\")?.disabled}\n />\n ) : null}\n {shouldRenderMemberId && (\n <MemberId\n value={viewModel.memberId}\n isErrored={!!fieldValidationErrors.memberId}\n isRequired={getFieldConfigByFieldId(\"memberId\")?.requireIfOptional}\n disabled={getFieldConfigByFieldId(\"memberId\")?.disabled}\n onChange={(newValue) => {\n updateMedicalProfessionalViewModel(\"memberId\", newValue);\n updateFieldValidationErrorsByFieldId(\"memberId\", newValue, verificationService);\n }}\n explanation={\n <FormattedHTMLMessage\n id={getMemberIdMessageKeys(viewModel.country).explanationKey}\n defaultMessage=\"Your Professional Membership Registration Number\"\n />\n }\n label={\n <FormattedHTMLMessage\n id={getMemberIdMessageKeys(viewModel.country).labelKey}\n defaultMessage=\"Registration Number\"\n />\n }\n />\n )}\n {options.customFormFields.map((config: CustomFormFieldConfig) => (\n <FormFieldCustom config={config} verificationService={verificationService} />\n ))}\n <MarketConsentWrapper\n verificationService={verificationService}\n isErrored={!!fieldValidationErrors.marketConsentValue}\n onChange={(newValue) => {\n updateMedicalProfessionalViewModel(\"metadata\", {\n ...verificationService.viewModel.metadata,\n marketConsentValue: newValue,\n });\n updateFieldValidationErrorsByFieldId(\"marketConsentValue\", newValue, verificationService);\n }}\n viewModel={viewModel}\n disabled={getFieldConfigByFieldId(\"marketConsentValue\")?.disabled}\n />\n <ExtraMessage verificationService={verificationService} suffix=\"CollectAboveSubmit\" />\n <PersonalInfoStepSubmitButton\n step={VerificationStepsEnum.collectMedicalProfessionalPersonalInfo}\n verificationService={verificationService}\n viewModel={viewModel}\n failedInstantMatch={failedInstantMatch}\n buttonText={\n <FormattedHTMLMessage\n id=\"step.personalInfo.submitButtonText\"\n defaultMessage=\"Verify My Medical Professional Status\"\n />\n }\n />\n </PersonalInfoWrapper>\n );\n};\n\nexport const StepMedicalProfessionalPersonalInfoComponent = injectIntl(\n StepMedicalProfessionalPersonalInfo,\n);\n"],"names":["memberIdMessageKeysByCountry","getMemberIdMessageKeys","country","memberIdFieldType","StepMedicalProfessionalPersonalInfo","intl","verificationService","viewModel","fieldValidationErrors","verificationResponse","failedInstantMatch","hasFailedInstantMatch","options","getOptions","locale","updateMedicalProfessionalViewModel","key","value","nextState","produceDraftViewModel","isFieldOptional","useCollectFieldsEndpoint","shouldRenderMemberId","React","jsxs","PersonalInfoWrapper","jsx","PersonalInfoHeader","ChangeLocaleV2Component","CountryComponentWrapper","getFieldConfigByFieldId","MedicalStatus","getStatusLabel","MedicalProfessionalStatusDefaultMessagesEnum","getAvailableMedicalStatuses","status","updateFieldValidationErrorsByFieldId","MedicalProfessionalOrganization","choice","updateViewModelOrganization","FirstName","newValue","LastName","BirthDate","PostalCode","FormattedHTMLMessage","Email","event","handleEmailOnKeyDown","PhoneNumber","MemberId","config","FormFieldCustom","MarketConsentWrapper","ExtraMessage","PersonalInfoStepSubmitButton","VerificationStepsEnum","StepMedicalProfessionalPersonalInfoComponent","injectIntl"],"mappings":";;;;AA6DA,MAAMA,IAAkE;AAAA,EACtE,IAAI;AAAA,EACJ,IAAI;AAAA,EACJ,IAAI;AAAA,EACJ,IAAI;AAAA,EACJ,IAAI;AAAA,EACJ,IAAI;AACN,GAEMC,IAAyB,CAACC,MAAoB;AAClD,QAAMC,IACJH,EAA6BE,CAAO,KAAK;AAC3C,SAAO;AAAA,IACL,UAAU,mCAAmCC,CAAiB;AAAA,IAC9D,gBAAgB,mCAAmCA,CAAiB;AAAA,EAAA;AAExE,GAEaC,IAAsC,CAAC;AAAA,EAClD,MAAAC;AAAA,EACA,qBAAAC;AACF,MAAyD;AACvD,QAAMC,IAAYD,EAAoB,WAChC,EAAE,uBAAAE,MAA0BF,GAC5BG,IACJH,EAAoB,sBAChBI,IAAqBC,EAAsBF,CAAoB,GAC/DG,IAAUC,EAAA,GAEVC,IAASP,EAAU,aAAa,OAEhCQ,IAAqC,CACzCC,GACAC,MACG;AACH,UAAMC,IAAYC,EAAsBZ,GAAWS,GAAKC,CAAK;AAC7D,IAAAX,EAAoB,gBAAgBY,CAAS;AAAA,EAC/C,GAEM,EAAE,iBAAAE,EAAA,IAAoBC,EAAyB;AAAA,IACnD,gBAAgBZ,EAAqB;AAAA,IACrC,aAAaA,EAAqB;AAAA,IAClC,WAAAF;AAAA,EAAA,CACD,GACKe,I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A,cAAA,CACrB,GACDL,EAAqC,sBAAsBK,GAAUnC,CAAmB;AAAA,YAC1F;AAAA,YACA,WAAAC;AAAA,YACA,UAAUuB,EAAwB,oBAAoB,GAAG;AAAA,UAAA;AAAA,QAAA;AAAA,QAE3DJ,gBAAAA,EAAAA,IAAC4B,GAAA,EAAa,qBAAAhD,GAA0C,QAAO,qBAAA,CAAqB;AAAA,QACpFoB,gBAAAA,EAAAA;AAAAA,UAAC6B;AAAA,UAAA;AAAA,YACC,MAAMC,EAAsB;AAAA,YAC5B,qBAAAlD;AAAA,YACA,WAAAC;AAAA,YACA,oBAAAG;AAAA,YACA,YACEgB,gBAAAA,EAAAA;AAAAA,cAACmB;AAAA,cAAA;AAAA,gBACC,IAAG;AAAA,gBACH,gBAAe;AAAA,cAAA;AAAA,YAAA;AAAA,UACjB;AAAA,QAAA;AAAA,MAEJ;AAAA,IAAA;AAAA,EAAA;AAGN,GAEaY,KAA+CC;AAAA,EAC1DtD;AACF;"}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
|
|
2
2
|
/**
|
|
3
|
-
* VERSION: 2.
|
|
4
|
-
* BUILD_TIMESTAMP:
|
|
5
|
-
* BUILD_DATE:
|
|
6
|
-
* BUILD_COMMIT:
|
|
3
|
+
* VERSION: 2.155.0-alpha.0
|
|
4
|
+
* BUILD_TIMESTAMP: 1763683855114
|
|
5
|
+
* BUILD_DATE: Fri Nov 21 2025 00:10:55 GMT+0000 (Coordinated Universal Time)
|
|
6
|
+
* BUILD_COMMIT: fa65b3ca7a41d610918988df94588b341b859b85
|
|
7
7
|
*/
|
|
8
|
-
import { k as g, f as t, j as s, N as M, O as I, m as N, x as j, a2 as E, a3 as f, a4 as y, o as n, T as F, U as V, E as D, n as T, a5 as k, a6 as R, Y as O, Z as P, _ as q, $ as z, p as B, V as L, r as w } from "./es6-
|
|
8
|
+
import { k as g, f as t, j as s, N as M, O as I, m as N, x as j, a2 as E, a3 as f, a4 as y, o as n, T as F, U as V, E as D, n as T, a5 as k, a6 as R, Y as O, Z as P, _ as q, $ as z, p as B, V as L, r as w } from "./es6-CDSYs19h.js";
|
|
9
9
|
import W from "react";
|
|
10
10
|
import { FormattedHTMLMessage as p } from "react-intl";
|
|
11
11
|
const _ = ({ verificationService: e }) => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index-DzBGkyny.js","sources":["../../src/components/StepMemberPersonalInfo/StepMemberPersonalInfoComponent.tsx"],"sourcesContent":["import React from \"react\";\nimport { FormattedHTMLMessage } from \"react-intl\";\nimport { produce } from \"immer\";\n\nimport { VerificationStepsEnum } from \"../../lib/types/runtimeTypes\";\nimport { hasFailedInstantMatch } from \"../../lib/VerificationService/VerificationServiceHelpers\";\nimport {\n VerificationService,\n Organization,\n MemberPersonalInfoViewModel,\n MemberPersonalInfoResponse,\n CustomFormFieldConfig,\n} from \"../../lib/types/types\";\nimport {\n getFieldConfigByFieldId,\n handleEmailOnKeyDown,\n updateFieldValidationErrorsByFieldId,\n updateViewModelOrganization,\n} from \"../../lib/utils/stepComponentHelpers/stepComponentHelpers\";\n\nimport { PhoneNumberComponent as PhoneNumber } from \"../FormFields/PhoneNumber/PhoneNumberComponent\";\nimport { FirstNameComponent as FirstName } from \"../FormFields/FirstName/FirstNameComponent\";\nimport { LastNameComponent as LastName } from \"../FormFields/LastName/LastNameComponent\";\nimport { EmailComponent as Email } from \"../FormFields/Email/EmailComponent\";\nimport { BirthDateComponent as BirthDate } from \"../FormFields/BirthDate/BirthDateComponent\";\nimport { MemberIdComponent as MemberId } from \"../FormFields/MemberId/MemberIdComponent\";\nimport { ChangeLocaleV2Component } from \"../FormFields/ChangeLocale/ChangeLocaleComponent\";\nimport { MembershipOrganizationComponent } from \"../FormFields/MembershipOrganization/MembershipOrganizationComponent\";\nimport { MarketConsentWrapperComponent } from \"../FormFields/MarketConsentWrapper/MarketConsentWrapperComponent\";\nimport { CountryComponentWrapper } from \"../FormFields/Country/CountryComponentWrapper\";\nimport { getOptions } from \"../../options/options\";\nimport { FormFieldCustom } from \"../FormFields/FormFieldCustom/FormFieldCustom\";\nimport { ExtraMessage } from \"../ExtraMessage\";\nimport { PersonalInfoWrapper } from \"../PersonalInfoStepWrapper/PersonalInfoStepWrapper\";\nimport { PersonalInfoStepSubmitButton } from \"../PersonalInfoStepSubmitButton/PersonalInfoStepSubmitButton\";\nimport { PersonalInfoHeader } from \"../FormHeader/StepHeaders/PersonalInfoHeaderComponent\";\n\ninterface StepMemberPersonalInfoComponentProps {\n verificationService: VerificationService;\n}\n\nconst StepMemberPersonalInfo = ({ verificationService }: StepMemberPersonalInfoComponentProps) => {\n const viewModel = verificationService.viewModel as MemberPersonalInfoViewModel;\n const { fieldValidationErrors } = verificationService;\n const verificationResponse =\n verificationService.verificationResponse as MemberPersonalInfoResponse;\n const failedInstantMatch = hasFailedInstantMatch(verificationResponse);\n const options = getOptions();\n const isMemberIdRequired = getFieldConfigByFieldId(\"memberId\")?.requireIfOptional;\n\n const locale = viewModel.localeChoice.value;\n\n const updateMemberViewModel = (key: keyof MemberPersonalInfoViewModel, value: any) => {\n const nextState: MemberPersonalInfoViewModel = produce(\n viewModel,\n (draft: MemberPersonalInfoViewModel) => {\n (draft[key] as any) = value;\n },\n );\n verificationService.updateViewModel(nextState);\n };\n\n React.useEffect(() => {\n if (!isMemberIdRequired) {\n verificationService.updateViewModel(\n { fieldsToSkipValidation: [\"memberId\"] },\n { partial: true },\n );\n } else {\n verificationService.updateViewModel({ fieldsToSkipValidation: [] }, { partial: true });\n }\n }, [isMemberIdRequired]);\n\n return (\n <PersonalInfoWrapper\n verificationService={verificationService}\n step={verificationResponse.currentStep}\n >\n <PersonalInfoHeader\n verificationService={verificationService}\n classNameIdentifier=\"member-personal-info\"\n />\n\n <ChangeLocaleV2Component verificationService={verificationService} />\n <CountryComponentWrapper\n verificationService={verificationService}\n disabled={getFieldConfigByFieldId(\"country\")?.disabled}\n />\n\n <MembershipOrganizationComponent\n value={(verificationService.viewModel as MemberPersonalInfoViewModel).organization}\n verificationService={verificationService}\n isErrored={!!fieldValidationErrors.organization}\n disabled={getFieldConfigByFieldId(\"organization\")?.disabled}\n onChange={(choice: Organization) => {\n updateViewModelOrganization(choice, verificationService);\n updateFieldValidationErrorsByFieldId(\"organization\", choice, verificationService);\n }}\n />\n\n <div className=\"sid-names\">\n <FirstName\n value={viewModel.firstName}\n isErrored={!!fieldValidationErrors.firstName}\n disabled={getFieldConfigByFieldId(\"firstName\")?.disabled}\n onChange={(newValue) => {\n updateMemberViewModel(\"firstName\", newValue);\n updateFieldValidationErrorsByFieldId(\"firstName\", newValue, verificationService);\n }}\n />\n\n <LastName\n value={viewModel.lastName}\n isErrored={!!fieldValidationErrors.lastName}\n disabled={getFieldConfigByFieldId(\"lastName\")?.disabled}\n onChange={(newValue) => {\n updateMemberViewModel(\"lastName\", newValue);\n updateFieldValidationErrorsByFieldId(\"lastName\", newValue, verificationService);\n }}\n />\n </div>\n\n <Email\n value={viewModel.email}\n isErrored={!!fieldValidationErrors.email}\n explanation={<FormattedHTMLMessage id=\"emailExplanation\" defaultMessage=\" \" />}\n onChange={(newValue) => {\n updateMemberViewModel(\"email\", newValue);\n updateFieldValidationErrorsByFieldId(\"email\", newValue, verificationService);\n }}\n onKeyDown={(event) => handleEmailOnKeyDown(event)}\n disabled={getFieldConfigByFieldId(\"email\")?.disabled}\n />\n\n <BirthDate\n errorId={fieldValidationErrors.birthDate}\n locale={locale}\n isRequired={getFieldConfigByFieldId(\"birthDate\")?.requireIfOptional}\n onChange={(newValue) => {\n updateMemberViewModel(\"birthDate\", newValue);\n updateFieldValidationErrorsByFieldId(\"birthDate\", newValue, verificationService);\n }}\n value={viewModel.birthDate}\n disabled={getFieldConfigByFieldId(\"birthDate\")?.disabled}\n />\n\n <MemberId\n value={viewModel.memberId}\n isErrored={!!fieldValidationErrors.memberId}\n isRequired={isMemberIdRequired}\n disabled={getFieldConfigByFieldId(\"memberId\")?.disabled}\n onChange={(newValue) => {\n updateMemberViewModel(\"memberId\", newValue);\n updateFieldValidationErrorsByFieldId(\"memberId\", newValue, verificationService);\n }}\n />\n\n {verificationService.programTheme.isSmsNotifierConfigured ||\n verificationService.programTheme.smsLoopEnabled ? (\n <PhoneNumber\n isRequired={!!verificationService.programTheme.smsLoopEnabled}\n value={viewModel.phoneNumber}\n isErrored={!!fieldValidationErrors.phoneNumber}\n onChange={(newValue) => {\n updateMemberViewModel(\"phoneNumber\", newValue);\n updateFieldValidationErrorsByFieldId(\"phoneNumber\", newValue, verificationService);\n }}\n selectedCountryCode={viewModel.countryChoice && viewModel.countryChoice.value}\n disabled={getFieldConfigByFieldId(\"phoneNumber\")?.disabled}\n />\n ) : null}\n\n {options.customFormFields.map((config: CustomFormFieldConfig) => (\n <FormFieldCustom config={config} verificationService={verificationService} />\n ))}\n\n <MarketConsentWrapperComponent\n verificationService={verificationService}\n isErrored={!!fieldValidationErrors.marketConsentValue}\n onChange={(newValue) => {\n updateMemberViewModel(\"metadata\", {\n ...verificationService.viewModel.metadata,\n marketConsentValue: newValue,\n });\n updateFieldValidationErrorsByFieldId(\"marketConsentValue\", newValue, verificationService);\n }}\n viewModel={viewModel}\n disabled={getFieldConfigByFieldId(\"marketConsentValue\")?.disabled}\n />\n\n <ExtraMessage verificationService={verificationService} suffix=\"CollectAboveSubmit\" />\n\n <PersonalInfoStepSubmitButton\n step={VerificationStepsEnum.collectMemberPersonalInfo}\n verificationService={verificationService}\n viewModel={viewModel}\n failedInstantMatch={failedInstantMatch}\n buttonText={\n <FormattedHTMLMessage\n id=\"step.personalInfo.submitButtonText\"\n defaultMessage=\"Verify My Membership Status\"\n />\n }\n />\n </PersonalInfoWrapper>\n );\n};\n\nexport const StepMemberPersonalInfoComponent = StepMemberPersonalInfo;\n"],"names":["StepMemberPersonalInfo","verificationService","viewModel","fieldValidationErrors","verificationResponse","failedInstantMatch","hasFailedInstantMatch","options","getOptions","isMemberIdRequired","getFieldConfigByFieldId","locale","updateMemberViewModel","key","value","nextState","produce","draft","React","jsxs","PersonalInfoWrapper","jsx","PersonalInfoHeader","ChangeLocaleV2Component","CountryComponentWrapper","MembershipOrganizationComponent","choice","updateViewModelOrganization","updateFieldValidationErrorsByFieldId","FirstName","newValue","LastName","Email","FormattedHTMLMessage","event","handleEmailOnKeyDown","BirthDate","MemberId","PhoneNumber","config","FormFieldCustom","MarketConsentWrapperComponent","ExtraMessage","PersonalInfoStepSubmitButton","VerificationStepsEnum","StepMemberPersonalInfoComponent"],"mappings":";;;AAyCA,MAAMA,IAAyB,CAAC,EAAE,qBAAAC,QAAgE;AAChG,QAAMC,IAAYD,EAAoB,WAChC,EAAE,uBAAAE,MAA0BF,GAC5BG,IACJH,EAAoB,sBAChBI,IAAqBC,EAAsBF,CAAoB,GAC/DG,IAAUC,EAAA,GACVC,IAAqBC,EAAwB,UAAU,GAAG,mBAE1DC,IAAST,EAAU,aAAa,OAEhCU,IAAwB,CAACC,GAAwCC,MAAe;AACpF,UAAMC,IAAyCC;AAAAA,MAC7Cd;AAAA,MACA,CAACe,MAAuC;AACrC,QAAAA,EAAMJ,CAAG,IAAYC;AAAA,MACxB;AAAA,IAAA;AAEF,IAAAb,EAAoB,gBAAgBc,CAAS;AAAA,EAC/C;AAEAG,SAAAA,EAAM,UAAU,MAAM;AACpB,IAAKT,IAMHR,EAAoB,gBAAgB,EAAE,wBAAwB,CAAA,KAAM,EAAE,SAAS,IAAM,IALrFA,EAAoB;AAAA,MAClB,EAAE,wBAAwB,CAAC,UAAU,EAAA;AAAA,MACrC,EAAE,SAAS,GAAA;AAAA,IAAK;AAAA,EAKtB,GAAG,CAACQ,CAAkB,CAAC,GAGrBU,gBAAAA,EAAAA;AAAAA,IAACC;AAAA,IAAA;AAAA,MACC,qBAAAnB;AAAA,MACA,MAAMG,EAAqB;AAAA,MAE3B,UAAA;AAAA,QAAAiB,gBAAAA,EAAAA;AAAAA,UAACC;AAAA,UAAA;AAAA,YACC,qBAAArB;AAAA,YACA,qBAAoB;AAAA,UAAA;AAAA,QAAA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
|
|
1
|
+
{"version":3,"file":"index-zBnnFPui.js","sources":["../../src/components/StepMemberPersonalInfo/StepMemberPersonalInfoComponent.tsx"],"sourcesContent":["import React from \"react\";\nimport { FormattedHTMLMessage } from \"react-intl\";\nimport { produce } from \"immer\";\n\nimport { VerificationStepsEnum } from \"../../lib/types/runtimeTypes\";\nimport { hasFailedInstantMatch } from \"../../lib/VerificationService/VerificationServiceHelpers\";\nimport {\n VerificationService,\n Organization,\n MemberPersonalInfoViewModel,\n MemberPersonalInfoResponse,\n CustomFormFieldConfig,\n} from \"../../lib/types/types\";\nimport {\n getFieldConfigByFieldId,\n handleEmailOnKeyDown,\n updateFieldValidationErrorsByFieldId,\n updateViewModelOrganization,\n} from \"../../lib/utils/stepComponentHelpers/stepComponentHelpers\";\n\nimport { PhoneNumberComponent as PhoneNumber } from \"../FormFields/PhoneNumber/PhoneNumberComponent\";\nimport { FirstNameComponent as FirstName } from \"../FormFields/FirstName/FirstNameComponent\";\nimport { LastNameComponent as LastName } from \"../FormFields/LastName/LastNameComponent\";\nimport { EmailComponent as Email } from \"../FormFields/Email/EmailComponent\";\nimport { BirthDateComponent as BirthDate } from \"../FormFields/BirthDate/BirthDateComponent\";\nimport { MemberIdComponent as MemberId } from \"../FormFields/MemberId/MemberIdComponent\";\nimport { ChangeLocaleV2Component } from \"../FormFields/ChangeLocale/ChangeLocaleComponent\";\nimport { MembershipOrganizationComponent } from \"../FormFields/MembershipOrganization/MembershipOrganizationComponent\";\nimport { MarketConsentWrapperComponent } from \"../FormFields/MarketConsentWrapper/MarketConsentWrapperComponent\";\nimport { CountryComponentWrapper } from \"../FormFields/Country/CountryComponentWrapper\";\nimport { getOptions } from \"../../options/options\";\nimport { FormFieldCustom } from \"../FormFields/FormFieldCustom/FormFieldCustom\";\nimport { ExtraMessage } from \"../ExtraMessage\";\nimport { PersonalInfoWrapper } from \"../PersonalInfoStepWrapper/PersonalInfoStepWrapper\";\nimport { PersonalInfoStepSubmitButton } from \"../PersonalInfoStepSubmitButton/PersonalInfoStepSubmitButton\";\nimport { PersonalInfoHeader } from \"../FormHeader/StepHeaders/PersonalInfoHeaderComponent\";\n\ninterface StepMemberPersonalInfoComponentProps {\n verificationService: VerificationService;\n}\n\nconst StepMemberPersonalInfo = ({ verificationService }: StepMemberPersonalInfoComponentProps) => {\n const viewModel = verificationService.viewModel as MemberPersonalInfoViewModel;\n const { fieldValidationErrors } = verificationService;\n const verificationResponse =\n verificationService.verificationResponse as MemberPersonalInfoResponse;\n const failedInstantMatch = hasFailedInstantMatch(verificationResponse);\n const options = getOptions();\n const isMemberIdRequired = getFieldConfigByFieldId(\"memberId\")?.requireIfOptional;\n\n const locale = viewModel.localeChoice.value;\n\n const updateMemberViewModel = (key: keyof MemberPersonalInfoViewModel, value: any) => {\n const nextState: MemberPersonalInfoViewModel = produce(\n viewModel,\n (draft: MemberPersonalInfoViewModel) => {\n (draft[key] as any) = value;\n },\n );\n verificationService.updateViewModel(nextState);\n };\n\n React.useEffect(() => {\n if (!isMemberIdRequired) {\n verificationService.updateViewModel(\n { fieldsToSkipValidation: [\"memberId\"] },\n { partial: true },\n );\n } else {\n verificationService.updateViewModel({ fieldsToSkipValidation: [] }, { partial: true });\n }\n }, [isMemberIdRequired]);\n\n return (\n <PersonalInfoWrapper\n verificationService={verificationService}\n step={verificationResponse.currentStep}\n >\n <PersonalInfoHeader\n verificationService={verificationService}\n classNameIdentifier=\"member-personal-info\"\n />\n\n <ChangeLocaleV2Component verificationService={verificationService} />\n <CountryComponentWrapper\n verificationService={verificationService}\n disabled={getFieldConfigByFieldId(\"country\")?.disabled}\n />\n\n <MembershipOrganizationComponent\n value={(verificationService.viewModel as MemberPersonalInfoViewModel).organization}\n verificationService={verificationService}\n isErrored={!!fieldValidationErrors.organization}\n disabled={getFieldConfigByFieldId(\"organization\")?.disabled}\n onChange={(choice: Organization) => {\n updateViewModelOrganization(choice, verificationService);\n updateFieldValidationErrorsByFieldId(\"organization\", choice, verificationService);\n }}\n />\n\n <div className=\"sid-names\">\n <FirstName\n value={viewModel.firstName}\n isErrored={!!fieldValidationErrors.firstName}\n disabled={getFieldConfigByFieldId(\"firstName\")?.disabled}\n onChange={(newValue) => {\n updateMemberViewModel(\"firstName\", newValue);\n updateFieldValidationErrorsByFieldId(\"firstName\", newValue, verificationService);\n }}\n />\n\n <LastName\n value={viewModel.lastName}\n isErrored={!!fieldValidationErrors.lastName}\n disabled={getFieldConfigByFieldId(\"lastName\")?.disabled}\n onChange={(newValue) => {\n updateMemberViewModel(\"lastName\", newValue);\n updateFieldValidationErrorsByFieldId(\"lastName\", newValue, verificationService);\n }}\n />\n </div>\n\n <Email\n value={viewModel.email}\n isErrored={!!fieldValidationErrors.email}\n explanation={<FormattedHTMLMessage id=\"emailExplanation\" defaultMessage=\" \" />}\n onChange={(newValue) => {\n updateMemberViewModel(\"email\", newValue);\n updateFieldValidationErrorsByFieldId(\"email\", newValue, verificationService);\n }}\n onKeyDown={(event) => handleEmailOnKeyDown(event)}\n disabled={getFieldConfigByFieldId(\"email\")?.disabled}\n />\n\n <BirthDate\n errorId={fieldValidationErrors.birthDate}\n locale={locale}\n isRequired={getFieldConfigByFieldId(\"birthDate\")?.requireIfOptional}\n onChange={(newValue) => {\n updateMemberViewModel(\"birthDate\", newValue);\n updateFieldValidationErrorsByFieldId(\"birthDate\", newValue, verificationService);\n }}\n value={viewModel.birthDate}\n disabled={getFieldConfigByFieldId(\"birthDate\")?.disabled}\n />\n\n <MemberId\n value={viewModel.memberId}\n isErrored={!!fieldValidationErrors.memberId}\n isRequired={isMemberIdRequired}\n disabled={getFieldConfigByFieldId(\"memberId\")?.disabled}\n onChange={(newValue) => {\n updateMemberViewModel(\"memberId\", newValue);\n updateFieldValidationErrorsByFieldId(\"memberId\", newValue, verificationService);\n }}\n />\n\n {verificationService.programTheme.isSmsNotifierConfigured ||\n verificationService.programTheme.smsLoopEnabled ? (\n <PhoneNumber\n isRequired={!!verificationService.programTheme.smsLoopEnabled}\n value={viewModel.phoneNumber}\n isErrored={!!fieldValidationErrors.phoneNumber}\n onChange={(newValue) => {\n updateMemberViewModel(\"phoneNumber\", newValue);\n updateFieldValidationErrorsByFieldId(\"phoneNumber\", newValue, verificationService);\n }}\n selectedCountryCode={viewModel.countryChoice && viewModel.countryChoice.value}\n disabled={getFieldConfigByFieldId(\"phoneNumber\")?.disabled}\n />\n ) : null}\n\n {options.customFormFields.map((config: CustomFormFieldConfig) => (\n <FormFieldCustom config={config} verificationService={verificationService} />\n ))}\n\n <MarketConsentWrapperComponent\n verificationService={verificationService}\n isErrored={!!fieldValidationErrors.marketConsentValue}\n onChange={(newValue) => {\n updateMemberViewModel(\"metadata\", {\n ...verificationService.viewModel.metadata,\n marketConsentValue: newValue,\n });\n updateFieldValidationErrorsByFieldId(\"marketConsentValue\", newValue, verificationService);\n }}\n viewModel={viewModel}\n disabled={getFieldConfigByFieldId(\"marketConsentValue\")?.disabled}\n />\n\n <ExtraMessage verificationService={verificationService} suffix=\"CollectAboveSubmit\" />\n\n <PersonalInfoStepSubmitButton\n step={VerificationStepsEnum.collectMemberPersonalInfo}\n verificationService={verificationService}\n viewModel={viewModel}\n failedInstantMatch={failedInstantMatch}\n buttonText={\n <FormattedHTMLMessage\n id=\"step.personalInfo.submitButtonText\"\n defaultMessage=\"Verify My Membership Status\"\n />\n }\n />\n </PersonalInfoWrapper>\n );\n};\n\nexport const StepMemberPersonalInfoComponent = StepMemberPersonalInfo;\n"],"names":["StepMemberPersonalInfo","verificationService","viewModel","fieldValidationErrors","verificationResponse","failedInstantMatch","hasFailedInstantMatch","options","getOptions","isMemberIdRequired","getFieldConfigByFieldId","locale","updateMemberViewModel","key","value","nextState","produce","draft","React","jsxs","PersonalInfoWrapper","jsx","PersonalInfoHeader","ChangeLocaleV2Component","CountryComponentWrapper","MembershipOrganizationComponent","choice","updateViewModelOrganization","updateFieldValidationErrorsByFieldId","FirstName","newValue","LastName","Email","FormattedHTMLMessage","event","handleEmailOnKeyDown","BirthDate","MemberId","PhoneNumber","config","FormFieldCustom","MarketConsentWrapperComponent","ExtraMessage","PersonalInfoStepSubmitButton","VerificationStepsEnum","StepMemberPersonalInfoComponent"],"mappings":";;;AAyCA,MAAMA,IAAyB,CAAC,EAAE,qBAAAC,QAAgE;AAChG,QAAMC,IAAYD,EAAoB,WAChC,EAAE,uBAAAE,MAA0BF,GAC5BG,IACJH,EAAoB,sBAChBI,IAAqBC,EAAsBF,CAAoB,GAC/DG,IAAUC,EAAA,GACVC,IAAqBC,EAAwB,UAAU,GAAG,mBAE1DC,IAAST,EAAU,aAAa,OAEhCU,IAAwB,CAACC,GAAwCC,MAAe;AACpF,UAAMC,IAAyCC;AAAAA,MAC7Cd;AAAA,MACA,CAACe,MAAuC;AACrC,QAAAA,EAAMJ,CAAG,IAAYC;AAAA,MACxB;AAAA,IAAA;AAEF,IAAAb,EAAoB,gBAAgBc,CAAS;AAAA,EAC/C;AAEAG,SAAAA,EAAM,UAAU,MAAM;AACpB,IAAKT,IAMHR,EAAoB,gBAAgB,EAAE,wBAAwB,CAAA,KAAM,EAAE,SAAS,IAAM,IALrFA,EAAoB;AAAA,MAClB,EAAE,wBAAwB,CAAC,UAAU,EAAA;AAAA,MACrC,EAAE,SAAS,GAAA;AAAA,IAAK;AAAA,EAKtB,GAAG,CAACQ,CAAkB,CAAC,GAGrBU,gBAAAA,EAAAA;AAAAA,IAACC;AAAA,IAAA;AAAA,MACC,qBAAAnB;AAAA,MACA,MAAMG,EAAqB;AAAA,MAE3B,UAAA;AAAA,QAAAiB,gBAAAA,EAAAA;AAAAA,UAACC;AAAA,UAAA;AAAA,YACC,qBAAArB;AAAA,YACA,qBAAoB;AAAA,UAAA;AAAA,QAAA;AAAA,QAGtBoB,gBAAAA,MAACE,KAAwB,qBAAAtB,GAA0C;AAAA,QACnEoB,gBAAAA,EAAAA;AAAAA,UAACG;AAAA,UAAA;AAAA,YACC,qBAAAvB;AAAA,YACA,UAAUS,EAAwB,SAAS,GAAG;AAAA,UAAA;AAAA,QAAA;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
|
3
|
+
* VERSION: 2.155.0-alpha.0
|
|
4
|
+
* BUILD_TIMESTAMP: 1763683855114
|
|
5
|
+
* BUILD_DATE: Fri Nov 21 2025 00:10:55 GMT+0000 (Coordinated Universal Time)
|
|
6
|
+
* BUILD_COMMIT: fa65b3ca7a41d610918988df94588b341b859b85
|
|
7
7
|
*/
|
|
8
8
|
const e = {
|
|
9
9
|
"defaultMessages.ACTIVE_DUTY": "Virk herskylda",
|
package/lib/it-CftnqhJ1.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
|
|
2
2
|
/**
|
|
3
|
-
* VERSION: 2.
|
|
4
|
-
* BUILD_TIMESTAMP:
|
|
5
|
-
* BUILD_DATE:
|
|
6
|
-
* BUILD_COMMIT:
|
|
3
|
+
* VERSION: 2.155.0-alpha.0
|
|
4
|
+
* BUILD_TIMESTAMP: 1763683855114
|
|
5
|
+
* BUILD_DATE: Fri Nov 21 2025 00:10:55 GMT+0000 (Coordinated Universal Time)
|
|
6
|
+
* BUILD_COMMIT: fa65b3ca7a41d610918988df94588b341b859b85
|
|
7
7
|
*/
|
|
8
8
|
const e = {
|
|
9
9
|
"defaultMessages.ACTIVE_DUTY": "Servizio Attivo",
|
package/lib/iw-JvquXLl7.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
|
|
2
2
|
/**
|
|
3
|
-
* VERSION: 2.
|
|
4
|
-
* BUILD_TIMESTAMP:
|
|
5
|
-
* BUILD_DATE:
|
|
6
|
-
* BUILD_COMMIT:
|
|
3
|
+
* VERSION: 2.155.0-alpha.0
|
|
4
|
+
* BUILD_TIMESTAMP: 1763683855114
|
|
5
|
+
* BUILD_DATE: Fri Nov 21 2025 00:10:55 GMT+0000 (Coordinated Universal Time)
|
|
6
|
+
* BUILD_COMMIT: fa65b3ca7a41d610918988df94588b341b859b85
|
|
7
7
|
*/
|
|
8
8
|
const e = {
|
|
9
9
|
"defaultMessages.ACTIVE_DUTY": "שירות פעיל",
|
package/lib/ja-Sln1PgIo.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
|
|
2
2
|
/**
|
|
3
|
-
* VERSION: 2.
|
|
4
|
-
* BUILD_TIMESTAMP:
|
|
5
|
-
* BUILD_DATE:
|
|
6
|
-
* BUILD_COMMIT:
|
|
3
|
+
* VERSION: 2.155.0-alpha.0
|
|
4
|
+
* BUILD_TIMESTAMP: 1763683855114
|
|
5
|
+
* BUILD_DATE: Fri Nov 21 2025 00:10:55 GMT+0000 (Coordinated Universal Time)
|
|
6
|
+
* BUILD_COMMIT: fa65b3ca7a41d610918988df94588b341b859b85
|
|
7
7
|
*/
|
|
8
8
|
const e = {
|
|
9
9
|
"defaultMessages.ACTIVE_DUTY": "現役軍人",
|