@sheerid/jslib 2.161.0 → 2.163.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 +7 -7
- 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-B8NGPX_p.js +4 -4
- package/chunk/bg-Avc7AS_D.js +4 -4
- package/chunk/bn-IN-BhGeJaUm.js +4 -4
- package/chunk/cs-CQ5-Tq8e.js +4 -4
- package/chunk/da-Lr25up9b.js +4 -4
- package/chunk/de-DEL98rYd.js +4 -4
- package/chunk/el-BtkMtsI7.js +4 -4
- package/chunk/en-GB-D5ACtSwr.js +4 -4
- package/chunk/es-DsrE1r_T.js +4 -4
- package/chunk/es-ES-BxWQ7TWP.js +4 -4
- package/chunk/fi--vA5VzPH.js +4 -4
- package/chunk/fr-CA-BMdDLyls.js +4 -4
- package/chunk/fr-zO0BJPF_.js +4 -4
- package/chunk/ga-B7hwoPdj.js +4 -4
- package/chunk/hi-IN-CzzSx4xW.js +4 -4
- package/chunk/hr-C_6KxSzU.js +4 -4
- package/chunk/hu-kX8Ql6IC.js +4 -4
- package/chunk/id-D_t5pMRC.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-DBZm0z4X.js +4 -4
- package/chunk/it-CQyVzKlT.js +4 -4
- package/chunk/iw-Ushhvya4.js +4 -4
- package/chunk/ja-Dcifbbfc.js +4 -4
- package/chunk/ko-CLL4EQha.js +4 -4
- package/chunk/lo-L9L6J73n.js +4 -4
- package/chunk/lt-BtZUzp79.js +4 -4
- package/chunk/ms-BfDCR6pn.js +4 -4
- package/chunk/nl-BE-D2HYExZo.js +4 -4
- package/chunk/nl-DUXFBbpR.js +4 -4
- package/chunk/no-oMhrfsYj.js +4 -4
- package/chunk/pl-Bfa20C9v.js +4 -4
- package/chunk/pt-BR-D6NNt6x4.js +4 -4
- package/chunk/pt-BcnwrXJl.js +4 -4
- package/chunk/ro-qd1_hJCg.js +4 -4
- package/chunk/ru-BbPXuKLs.js +4 -4
- package/chunk/sk-DevaOf9w.js +4 -4
- package/chunk/sl-CFbkjF51.js +4 -4
- package/chunk/sr-DSAyrObE.js +4 -4
- package/chunk/sv-CrsIj6-I.js +4 -4
- package/chunk/sw-Bl9JuYKY.js +4 -4
- package/chunk/th-Dslrauvv.js +4 -4
- package/chunk/tr-He5srj3E.js +4 -4
- package/chunk/uk-CaINNGC7.js +4 -4
- package/chunk/ur-NxrZBjuk.js +4 -4
- package/chunk/useCollectFieldsEndpoint-D0VXzWyt.js +4 -4
- package/chunk/useCollectFieldsEndpoint-DIzHv7w9.js +4 -4
- package/chunk/vi-HdCqc1rM.js +4 -4
- package/chunk/zh-C20_O0gj.js +4 -4
- package/chunk/zh-HK-DsaCSwtt.js +4 -4
- package/chunk/zu-Cpxc7p7F.js +4 -4
- package/es6.css +4 -4
- package/jslib.js +5 -5
- package/lib/{EmailLoopPending-B0Pm2cjn.js → EmailLoopPending-DsqCf3ZY.js} +5 -5
- package/lib/{EmailLoopPending-B0Pm2cjn.js.map → EmailLoopPending-DsqCf3ZY.js.map} +1 -1
- package/lib/{LicensedProfessionalOrganizationComponent-Dwdfv4Xc.js → LicensedProfessionalOrganizationComponent-oRAhgxJG.js} +5 -5
- package/lib/{LicensedProfessionalOrganizationComponent-Dwdfv4Xc.js.map → LicensedProfessionalOrganizationComponent-oRAhgxJG.js.map} +1 -1
- package/lib/Onfido-BG8cDEVW.js +4 -4
- package/lib/StepCollectMilitaryStatusComponent-DufIHT_B.js +11 -0
- package/lib/{StepCollectMilitaryStatusComponent-CapaCtrC.js.map → StepCollectMilitaryStatusComponent-DufIHT_B.js.map} +1 -1
- package/lib/{StepIDCheckLoopOnfido-C1Cq2rKl.js → StepIDCheckLoopOnfido-CIY3vV8O.js} +5 -5
- package/lib/{StepIDCheckLoopOnfido-C1Cq2rKl.js.map → StepIDCheckLoopOnfido-CIY3vV8O.js.map} +1 -1
- package/lib/{StepIDCheckLoopRegula-CKoJcrMb.js → StepIDCheckLoopRegula-Cog3hWPx.js} +5 -5
- package/lib/{StepIDCheckLoopRegula-CKoJcrMb.js.map → StepIDCheckLoopRegula-Cog3hWPx.js.map} +1 -1
- package/lib/{StepInactiveMilitaryPersonalInfoComponent-Dlf0fVvZ.js → StepInactiveMilitaryPersonalInfoComponent-CES3OPcz.js} +6 -6
- package/lib/{StepInactiveMilitaryPersonalInfoComponent-Dlf0fVvZ.js.map → StepInactiveMilitaryPersonalInfoComponent-CES3OPcz.js.map} +1 -1
- package/lib/{VerificationApiUtils-Dl_pKkcw.js → VerificationApiUtils-Dim0Tn2e.js} +5 -5
- package/lib/{VerificationApiUtils-Dl_pKkcw.js.map → VerificationApiUtils-Dim0Tn2e.js.map} +1 -1
- package/lib/ar-B8NGPX_p.js +4 -4
- package/lib/bg-Avc7AS_D.js +4 -4
- package/lib/bn-IN-BhGeJaUm.js +4 -4
- package/lib/cs-CQ5-Tq8e.js +4 -4
- package/lib/da-Lr25up9b.js +4 -4
- package/lib/de-DEL98rYd.js +4 -4
- package/lib/el-BtkMtsI7.js +4 -4
- package/lib/en-GB-D5ACtSwr.js +4 -4
- package/lib/es-DsrE1r_T.js +4 -4
- package/lib/es-ES-BxWQ7TWP.js +4 -4
- package/lib/{es6-DWJg-nua.js → es6-BAcbKkAS.js} +34 -34
- package/lib/{es6-DWJg-nua.js.map → es6-BAcbKkAS.js.map} +1 -1
- package/lib/fi--vA5VzPH.js +4 -4
- package/lib/fr-CA-BMdDLyls.js +4 -4
- package/lib/fr-zO0BJPF_.js +4 -4
- package/lib/ga-B7hwoPdj.js +4 -4
- package/lib/hi-IN-CzzSx4xW.js +4 -4
- package/lib/hr-C_6KxSzU.js +4 -4
- package/lib/hu-kX8Ql6IC.js +4 -4
- package/lib/id-D_t5pMRC.js +4 -4
- package/lib/{index-DsC0qKIC.js → index-5qnpXrFE.js} +6 -6
- package/lib/{index-DsC0qKIC.js.map → index-5qnpXrFE.js.map} +1 -1
- package/lib/{index-Bldly0Ri.js → index-BBLCFoyj.js} +6 -6
- package/lib/{index-Bldly0Ri.js.map → index-BBLCFoyj.js.map} +1 -1
- package/lib/{index-C86JRJ05.js → index-BLWMVweA.js} +6 -6
- package/lib/{index-C86JRJ05.js.map → index-BLWMVweA.js.map} +1 -1
- package/lib/{index-vvuf9ll1.js → index-BNFXCRdZ.js} +5 -5
- package/lib/{index-vvuf9ll1.js.map → index-BNFXCRdZ.js.map} +1 -1
- package/lib/index-BbdB5PkH.js +11 -0
- package/lib/index-BbdB5PkH.js.map +1 -0
- package/lib/{index-BH-XjvR-.js → index-Bcpr7T-p.js} +5 -5
- package/lib/{index-BH-XjvR-.js.map → index-Bcpr7T-p.js.map} +1 -1
- package/lib/{index-CvvG77mO.js → index-Bx8ffNMR.js} +6 -6
- package/lib/{index-CvvG77mO.js.map → index-Bx8ffNMR.js.map} +1 -1
- package/lib/index-BxBN-wPX.js +11 -0
- package/lib/index-BxBN-wPX.js.map +1 -0
- package/lib/{index-CSLWv2vo.js → index-C2F77Czg.js} +5 -5
- package/lib/{index-CSLWv2vo.js.map → index-C2F77Czg.js.map} +1 -1
- package/lib/{index-DFZul6Bo.js → index-CYx55ptl.js} +7 -7
- package/lib/{index-DFZul6Bo.js.map → index-CYx55ptl.js.map} +1 -1
- package/lib/index-CpEhF-za.js +11 -0
- package/lib/index-CpEhF-za.js.map +1 -0
- package/lib/{index-DZS8D7I-.js → index-DCsucVhN.js} +6 -6
- package/lib/{index-DZS8D7I-.js.map → index-DCsucVhN.js.map} +1 -1
- package/lib/index-DIkWpujR.js +4 -4
- package/lib/{index-CvyK801l.js → index-DTUnR0la.js} +5 -5
- package/lib/{index-CvyK801l.js.map → index-DTUnR0la.js.map} +1 -1
- package/lib/{index-BDwfjJ8p.js → index-DiWQwKUz.js} +5 -5
- package/lib/{index-BDwfjJ8p.js.map → index-DiWQwKUz.js.map} +1 -1
- package/lib/{index-DBl3lfWu.js → index-DkTRPrHD.js} +5 -5
- package/lib/{index-DBl3lfWu.js.map → index-DkTRPrHD.js.map} +1 -1
- package/lib/{index-Cfqwvuyd.js → index-DsRRt4WN.js} +5 -5
- package/lib/{index-Cfqwvuyd.js.map → index-DsRRt4WN.js.map} +1 -1
- package/lib/{index-D3lCBtVy.js → index-GAfFRM8K.js} +5 -5
- package/lib/{index-D3lCBtVy.js.map → index-GAfFRM8K.js.map} +1 -1
- package/lib/index-TNndV73z.js +11 -0
- package/lib/index-TNndV73z.js.map +1 -0
- package/lib/{index-ocQZrPa7.js → index-TbGcaOo3.js} +5 -5
- package/lib/{index-ocQZrPa7.js.map → index-TbGcaOo3.js.map} +1 -1
- package/lib/{index-nL7IuArN.js → index-cRy5g8Qk.js} +5 -5
- package/lib/{index-nL7IuArN.js.map → index-cRy5g8Qk.js.map} +1 -1
- package/lib/{index-OgVSlgGS.js → index-jwkgem8Z.js} +5 -5
- package/lib/{index-OgVSlgGS.js.map → index-jwkgem8Z.js.map} +1 -1
- package/lib/{index-XaK5v3Yp.js → index-w4DE42nU.js} +5 -5
- package/lib/{index-XaK5v3Yp.js.map → index-w4DE42nU.js.map} +1 -1
- package/lib/{index-CX3MvAsh.js → index-xPGay0hl.js} +5 -5
- package/lib/{index-CX3MvAsh.js.map → index-xPGay0hl.js.map} +1 -1
- package/lib/is-DBZm0z4X.js +4 -4
- package/lib/it-CQyVzKlT.js +4 -4
- package/lib/iw-Ushhvya4.js +4 -4
- package/lib/ja-Dcifbbfc.js +4 -4
- package/lib/ko-CLL4EQha.js +4 -4
- package/lib/lo-L9L6J73n.js +4 -4
- package/lib/lt-BtZUzp79.js +4 -4
- package/lib/ms-BfDCR6pn.js +4 -4
- package/lib/nl-BE-D2HYExZo.js +4 -4
- package/lib/nl-DUXFBbpR.js +4 -4
- package/lib/no-oMhrfsYj.js +4 -4
- package/lib/pl-Bfa20C9v.js +4 -4
- package/lib/pt-BR-D6NNt6x4.js +4 -4
- package/lib/pt-BcnwrXJl.js +4 -4
- package/lib/ro-qd1_hJCg.js +4 -4
- package/lib/ru-BbPXuKLs.js +4 -4
- package/lib/sk-DevaOf9w.js +4 -4
- package/lib/sl-CFbkjF51.js +4 -4
- package/lib/sr-DSAyrObE.js +4 -4
- package/lib/sv-CrsIj6-I.js +4 -4
- package/lib/sw-Bl9JuYKY.js +4 -4
- package/lib/th-Dslrauvv.js +4 -4
- package/lib/tr-He5srj3E.js +4 -4
- package/lib/uk-CaINNGC7.js +4 -4
- package/lib/ur-NxrZBjuk.js +4 -4
- package/lib/{useCollectFieldsEndpoint-CC6Qslvk.js → useCollectFieldsEndpoint-Bwrwmdjl.js} +6 -6
- package/lib/{useCollectFieldsEndpoint-CC6Qslvk.js.map → useCollectFieldsEndpoint-Bwrwmdjl.js.map} +1 -1
- package/lib/vi-HdCqc1rM.js +4 -4
- package/lib/zh-C20_O0gj.js +4 -4
- package/lib/zh-HK-DsaCSwtt.js +4 -4
- package/lib/zu-Cpxc7p7F.js +4 -4
- package/package.json +1 -1
- package/sheerid-install.css +4 -4
- package/sheerid-install.js +5 -5
- package/sheerid.css +4 -4
- package/sheerid.js +7 -7
- package/sheerid.js.map +1 -1
- package/types-reference.zip +0 -0
- package/lib/StepCollectMilitaryStatusComponent-CapaCtrC.js +0 -11
- package/lib/index-Am2nq_tE.js +0 -11
- package/lib/index-Am2nq_tE.js.map +0 -1
- package/lib/index-CRM8DPOQ.js +0 -11
- package/lib/index-CRM8DPOQ.js.map +0 -1
- package/lib/index-CqCGywq4.js +0 -11
- package/lib/index-CqCGywq4.js.map +0 -1
- package/lib/index-DoBarVXa.js +0 -11
- package/lib/index-DoBarVXa.js.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index-
|
|
1
|
+
{"version":3,"file":"index-Bcpr7T-p.js","sources":["../../src/components/StepSocialSecurityNumber/StepSocialSecurityNumber.tsx"],"sourcesContent":["import React from \"react\";\nimport { FormattedHTMLMessage, injectIntl } from \"react-intl\";\nimport { produce } from \"immer\";\n\nimport { VerificationStepsEnum, FieldIdEnum } from \"../../lib/types/runtimeTypes\";\nimport { setRef } from \"../../lib/refs/refs\";\nimport { VerificationService, SocialSecurityViewModel } from \"../../lib/types/types\";\nimport {\n submitForm,\n updateFieldValidationErrorsByFieldId,\n} from \"../../lib/utils/stepComponentHelpers/stepComponentHelpers\";\nimport { LogoComponent } from \"../LogoComponent/LogoComponent\";\nimport { FormFooterComponent as FormFooter } from \"../FormFooter/FormFooterComponent\";\nimport { SocialSecurityNumber } from \"../FormFields/SSN/SSN\";\nimport { SsnChoice } from \"./SsnChoice\";\nimport { ChangeLocaleV2Component } from \"../FormFields/ChangeLocale/ChangeLocaleComponent\";\nimport { AnnouncingHeader } from \"../AnnouncingHeader/AnnouncingHeader\";\n\ninterface StepSocialSecurityNumberProps {\n verificationService: VerificationService;\n}\n\nconst Step = ({ verificationService }: StepSocialSecurityNumberProps) => {\n const [showChoice, setShowChoice] = React.useState(true);\n const viewModel = verificationService.viewModel as SocialSecurityViewModel;\n const { fieldValidationErrors } = verificationService;\n const doCancelStep = () =>\n verificationService.submitStep(\n VerificationStepsEnum.cancelSocialSecurityNumber,\n viewModel,\n verificationService.verificationResponse,\n );\n\n const updateSSNViewModel = (key: keyof SocialSecurityViewModel, value: any) => {\n const nextState: SocialSecurityViewModel = produce(\n viewModel,\n (draft: SocialSecurityViewModel) => {\n (draft[key] as any) = value;\n },\n );\n verificationService.updateViewModel(nextState);\n };\n\n const isSubmittable =\n viewModel.socialSecurityNumber && viewModel.socialSecurityNumber.toString().length === 9;\n\n if (showChoice) {\n return (\n <SsnChoice\n useSsn={() => setShowChoice(false)}\n useDocUpload={doCancelStep}\n verificationService={verificationService}\n />\n );\n }\n\n return (\n <div\n id=\"sid-step-social-security\"\n className=\"sid-social-sercurity-number-container sid-l-container sid-l-horz-center\"\n >\n <div role=\"main\">\n <div className=\"sid-header\">\n <div className=\"sid-social-security-number-logo-container sid-l-horz-center\">\n <LogoComponent verificationService={verificationService} />\n </div>\n <AnnouncingHeader align=\"center\">\n <FormattedHTMLMessage\n id=\"step.collectSocialSecurityNumber.title\"\n defaultMessage=\"Enter your social security number\"\n tagName=\"h1\"\n />\n </AnnouncingHeader>\n\n <ChangeLocaleV2Component verificationService={verificationService} />\n\n <div className=\"sid-ssn-wrapper\">\n <SocialSecurityNumber\n value={viewModel.socialSecurityNumber}\n onChange={(value: string) => {\n updateSSNViewModel(\"socialSecurityNumber\", value);\n updateFieldValidationErrorsByFieldId(\n \"socialSecurityNumber\",\n value,\n verificationService,\n );\n }}\n isErrored={!!fieldValidationErrors[FieldIdEnum.socialSecurityNumber]}\n placeholder=\"000-00-0000\"\n />\n </div>\n </div>\n\n <div className=\"sid-form-region sid-submit-wrapper sid-l-space-top-md\">\n <div className=\"sid-social-security-number-submit sid-submit\">\n <button\n id=\"sid-submit-wrapper__collect-info\"\n onClick={() =>\n submitForm(\n viewModel,\n verificationService,\n VerificationStepsEnum.collectSocialSecurityNumber,\n )\n }\n type=\"submit\"\n className={`sid-btn sid-social-security-number-submit-btn sid-btn--dark sid-l-full-width ${\n isSubmittable ? \"\" : \"sid-btn--disabled-like\"\n }`}\n aria-label=\"submit\"\n ref={(button) => setRef(\"submitButton\", button)}\n >\n <FormattedHTMLMessage id=\"proceed\" defaultMessage=\"Proceed\" />\n </button>\n </div>\n </div>\n\n <div\n className=\"sid-form-region sid-social-security-number-upload-instead-btn sid-l-space-top-md\"\n role=\"button\"\n tabIndex={0}\n onKeyUp={doCancelStep}\n onClick={doCancelStep}\n >\n <div className=\"sid-social-security-number-upload-instead-text sid-h-link-like\">\n <FormattedHTMLMessage\n id=\"step.collectSocialSecurityNumber.uploadInstead\"\n defaultMessage=\"Upload a document instead\"\n />\n </div>\n </div>\n </div>\n <FormFooter verificationService={verificationService} />\n </div>\n );\n};\n\n// TODO remove injectIntl, it's not used\nexport const StepSocialSecurityNumber = injectIntl(Step);\n"],"names":["Step","verificationService","showChoice","setShowChoice","React","viewModel","fieldValidationErrors","doCancelStep","VerificationStepsEnum","updateSSNViewModel","key","value","nextState","produce","draft","isSubmittable","jsx","SsnChoice","jsxs","LogoComponent","AnnouncingHeader","FormattedHTMLMessage","ChangeLocaleV2Component","SocialSecurityNumber","updateFieldValidationErrorsByFieldId","FieldIdEnum","submitForm","button","setRef","FormFooter","StepSocialSecurityNumber","injectIntl"],"mappings":";;;AAsBA,MAAMA,IAAO,CAAC,EAAE,qBAAAC,QAAyD;AACvE,QAAM,CAACC,GAAYC,CAAa,IAAIC,EAAM,SAAS,EAAI,GACjDC,IAAYJ,EAAoB,WAChC,EAAE,uBAAAK,MAA0BL,GAC5BM,IAAe,MACnBN,EAAoB;AAAA,IAClBO,EAAsB;AAAA,IACtBH;AAAA,IACAJ,EAAoB;AAAA,EAAA,GAGlBQ,IAAqB,CAACC,GAAoCC,MAAe;AAC7E,UAAMC,IAAqCC;AAAAA,MACzCR;AAAA,MACA,CAACS,MAAmC;AACjC,QAAAA,EAAMJ,CAAG,IAAYC;AAAA,MACxB;AAAA,IAAA;AAEF,IAAAV,EAAoB,gBAAgBW,CAAS;AAAA,EAC/C,GAEMG,IACJV,EAAU,wBAAwBA,EAAU,qBAAqB,SAAA,EAAW,WAAW;AAEzF,SAAIH,IAEAc,gBAAAA,EAAAA;AAAAA,IAACC;AAAA,IAAA;AAAA,MACC,QAAQ,MAAMd,EAAc,EAA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AAAA,gBACErB;AAAA,gBACAJ;AAAA,gBACAO,EAAsB;AAAA,cAAA;AAAA,cAG1B,MAAK;AAAA,cACL,WAAW,gFACTO,IAAgB,KAAK,wBACvB;AAAA,cACA,cAAW;AAAA,cACX,KAAK,CAACY,MAAWC,EAAO,gBAAgBD,CAAM;AAAA,cAE9C,UAAAX,gBAAAA,EAAAA,IAACK,GAAA,EAAqB,IAAG,WAAU,gBAAe,UAAA,CAAU;AAAA,YAAA;AAAA,UAAA,GAEhE,EAAA,CACF;AAAA,UAEAL,gBAAAA,EAAAA;AAAAA,YAAC;AAAA,YAAA;AAAA,cACC,WAAU;AAAA,cACV,MAAK;AAAA,cACL,UAAU;AAAA,cACV,SAAST;AAAA,cACT,SAASA;AAAA,cAET,UAAAS,gBAAAA,EAAAA,IAAC,OAAA,EAAI,WAAU,kEACb,UAAAA,gBAAAA,EAAAA;AAAAA,gBAACK;AAAA,gBAAA;AAAA,kBACC,IAAG;AAAA,kBACH,gBAAe;AAAA,gBAAA;AAAA,cAAA,EACjB,CACF;AAAA,YAAA;AAAA,UAAA;AAAA,QACF,GACF;AAAA,QACAL,gBAAAA,MAACa,KAAW,qBAAA5B,EAAA,CAA0C;AAAA,MAAA;AAAA,IAAA;AAAA,EAAA;AAG5D,GAGa6B,IAA2BC,EAAW/B,CAAI;"}
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
|
|
2
2
|
/**
|
|
3
|
-
* VERSION: 2.
|
|
4
|
-
* BUILD_TIMESTAMP:
|
|
5
|
-
* BUILD_DATE:
|
|
6
|
-
* BUILD_COMMIT:
|
|
3
|
+
* VERSION: 2.163.0
|
|
4
|
+
* BUILD_TIMESTAMP: 1769033492093
|
|
5
|
+
* BUILD_DATE: Wed Jan 21 2026 22:11:32 GMT+0000 (Coordinated Universal Time)
|
|
6
|
+
* BUILD_COMMIT: 526598cd626c99a81604fb961b44e4fe5fc98f76
|
|
7
7
|
*/
|
|
8
|
-
import { k as f, aa as F, ab as c, i as M, o as d, j as a, N as P, O as D, m as R, x as T, a2 as V, f as l, T as k, U as A, a5 as q, ac as B, W as L, X as U, E as W, n as O, Y as _, Z as w, _ as H, $ as K, p as X, V as Y, ad as Z } from "./es6-
|
|
8
|
+
import { k as f, aa as F, ab as c, i as M, o as d, j as a, N as P, O as D, m as R, x as T, a2 as V, f as l, T as k, U as A, a5 as q, ac as B, W as L, X as U, E as W, n as O, Y as _, Z as w, _ as H, $ as K, p as X, V as Y, ad as Z } from "./es6-BAcbKkAS.js";
|
|
9
9
|
import $ from "react";
|
|
10
10
|
import { injectIntl as z, FormattedHTMLMessage as p } from "react-intl";
|
|
11
|
-
import { u as G } from "./useCollectFieldsEndpoint-
|
|
11
|
+
import { u as G } from "./useCollectFieldsEndpoint-Bwrwmdjl.js";
|
|
12
12
|
const J = ({ verificationService: s, intl: C }) => {
|
|
13
13
|
const o = s.viewModel, { fieldValidationErrors: t } = s, r = s.verificationResponse, h = f(r), b = F(
|
|
14
14
|
s.programTheme,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index-CvvG77mO.js","sources":["../../src/components/StepAgePersonalInfo/StepAgePersonalInfoComponent.tsx"],"sourcesContent":["/**\n * TODO - preamble\n */\nimport React from \"react\";\nimport { FormattedHTMLMessage, InjectedIntl, injectIntl } from \"react-intl\";\n\nimport { useCollectFieldsEndpoint } from \"@/lib/ServerApi/useCollectFieldsEndpoint\";\nimport { VerificationStepsEnum } from \"../../lib/types/runtimeTypes\";\nimport { hasFailedInstantMatch } from \"../../lib/VerificationService/VerificationServiceHelpers\";\nimport { getSafe } from \"../../lib/utils/getSafe\";\nimport {\n VerificationService,\n AgePersonalInfoViewModel,\n AgePersonalInfoResponse,\n FormSelectChoice,\n Country,\n FieldDescription,\n CustomFormFieldConfig,\n} from \"../../lib/types/types\";\n\nimport {\n handleEmailOnKeyDown,\n updateFieldValidationErrorsByFieldId,\n getAvailableCountryChoices,\n getDefaultCountryChoice,\n produceDraftViewModel,\n getFieldConfigByFieldId,\n} from \"../../lib/utils/stepComponentHelpers/stepComponentHelpers\";\n\nimport { MarketConsentWrapperComponent as MarketConsentWrapper } from \"../FormFields/MarketConsentWrapper/MarketConsentWrapperComponent\";\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 { PostalCodeComponent as PostalCode } from \"../FormFields/PostalCode/PostalCodeComponent\";\n\nimport { CountryComponentWrapper } from \"../FormFields/Country/CountryComponentWrapper\";\nimport { CityComponent } from \"../FormFields/City/City\";\nimport { AddressComponent } from \"../FormFields/Address/AddressComponent\";\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 StepAgePersonalInfoComponentProps {\n intl: InjectedIntl;\n verificationService: VerificationService;\n}\n\nconst StepAgePersonalInfo = ({ verificationService, intl }: StepAgePersonalInfoComponentProps) => {\n const viewModel = verificationService.viewModel as AgePersonalInfoViewModel;\n const { fieldValidationErrors } = verificationService;\n const verificationResponse = verificationService.verificationResponse as AgePersonalInfoResponse;\n const failedInstantMatch = hasFailedInstantMatch(verificationResponse);\n const countryChoices: FormSelectChoice<Country, string>[] = getAvailableCountryChoices(\n verificationService.programTheme,\n intl,\n );\n const defaultCountryChoice: FormSelectChoice<Country, string> =\n getDefaultCountryChoice(countryChoices);\n const safeCountryValue = getSafe(() => viewModel.countryChoice.value, defaultCountryChoice.value);\n const defaultRequiredFields: FieldDescription[] =\n safeCountryValue === \"US\" ? [{ key: \"postalCode\" }] : [];\n\n // PhoneNumber is required for all non-US age programs and if smsLoop is enabled.\n const showPhoneNumber =\n safeCountryValue !== \"US\" ||\n verificationService.programTheme.isSmsNotifierConfigured ||\n verificationService.programTheme.smsLoopEnabled;\n const phoneNumberRequired =\n safeCountryValue !== \"US\" || verificationService.programTheme.smsLoopEnabled;\n\n const locale = viewModel.localeChoice.value;\n const options = getOptions();\n\n if (\n !fieldValidationErrors.phoneNumber &&\n verificationResponse.errorIds &&\n verificationResponse.errorIds.includes(\"invalidPhoneNumber\")\n ) {\n verificationService.updateFieldValidationErrors({\n ...fieldValidationErrors,\n phoneNumber: \"invalidPhoneNumber\",\n });\n }\n\n const updateAgeViewModel = (key: keyof AgePersonalInfoViewModel, value: any) => {\n const nextState: AgePersonalInfoViewModel = produceDraftViewModel(viewModel, key, value);\n verificationService.updateViewModel(nextState);\n };\n\n const { isFieldRequired } = useCollectFieldsEndpoint({\n verificationId: verificationResponse.verificationId,\n currentStep: verificationResponse.currentStep,\n viewModel,\n defaultRequiredFields,\n });\n\n React.useEffect(() => {\n // When country changes re-check the phone number validation\n updateFieldValidationErrorsByFieldId(\"phoneNumber\", viewModel.phoneNumber, verificationService);\n }, [viewModel.country]);\n\n return (\n <PersonalInfoWrapper\n verificationService={verificationService}\n step={verificationResponse.currentStep}\n >\n <PersonalInfoHeader verificationService={verificationService} classNameIdentifier=\"age\" />\n\n <ChangeLocaleV2Component verificationService={verificationService} />\n <CountryComponentWrapper\n verificationService={verificationService}\n disabled={getFieldConfigByFieldId(\"country\")?.disabled}\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 updateAgeViewModel(\"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 updateAgeViewModel(\"lastName\", newValue);\n updateFieldValidationErrorsByFieldId(\"lastName\", newValue, verificationService);\n }}\n />\n </div>\n <BirthDate\n errorId={fieldValidationErrors.birthDate}\n locale={locale}\n onChange={(newValue) => {\n updateAgeViewModel(\"birthDate\", newValue);\n updateFieldValidationErrorsByFieldId(\"birthDate\", newValue, verificationService);\n }}\n value={viewModel.birthDate}\n disabled={getFieldConfigByFieldId(\"birthDate\")?.disabled}\n />\n {isFieldRequired(\"city\") && (\n <CityComponent\n value={viewModel.city}\n isRequired\n isErrored={!!fieldValidationErrors.city}\n errorId={fieldValidationErrors.city}\n disabled={getFieldConfigByFieldId(\"city\")?.disabled}\n onChange={(value) => {\n updateAgeViewModel(\"city\", value);\n updateFieldValidationErrorsByFieldId(\"city\", value, verificationService);\n }}\n />\n )}\n {isFieldRequired(\"address1\") && (\n <AddressComponent\n value={viewModel.address1}\n isRequired\n isErrored={!!fieldValidationErrors.address1}\n errorId={fieldValidationErrors.address1}\n onChange={(value) => {\n updateAgeViewModel(\"address1\", value);\n updateFieldValidationErrorsByFieldId(\"address1\", value, verificationService);\n }}\n />\n )}\n {isFieldRequired(\"postalCode\") && (\n <PostalCode\n isErrored={!!fieldValidationErrors.postalCode}\n onChange={(newValue) => {\n updateAgeViewModel(\"postalCode\", newValue);\n updateFieldValidationErrorsByFieldId(\"postalCode\", newValue, verificationService);\n }}\n value={viewModel.postalCode}\n disabled={getFieldConfigByFieldId(\"postalCode\")?.disabled}\n />\n )}\n <Email\n value={viewModel.email}\n isErrored={!!fieldValidationErrors.email}\n explanation={<FormattedHTMLMessage id=\"emailExplanation\" defaultMessage=\" \" />}\n onChange={(newValue) => {\n updateAgeViewModel(\"email\", newValue);\n updateFieldValidationErrorsByFieldId(\"email\", newValue, verificationService);\n }}\n onKeyDown={(event) => handleEmailOnKeyDown(event)}\n disabled={getFieldConfigByFieldId(\"email\")?.disabled}\n />\n\n {showPhoneNumber ? (\n <PhoneNumber\n isRequired={phoneNumberRequired}\n value={viewModel.phoneNumber}\n isErrored={!!fieldValidationErrors.phoneNumber}\n onChange={(newValue) => {\n updateAgeViewModel(\"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 updateAgeViewModel(\"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.collectAgePersonalInfo}\n verificationService={verificationService}\n viewModel={viewModel}\n failedInstantMatch={failedInstantMatch}\n buttonText={\n <FormattedHTMLMessage\n id=\"step.personalInfo.submitButtonText\"\n defaultMessage=\"Verify and continue\"\n />\n }\n />\n </PersonalInfoWrapper>\n );\n};\n\nexport const StepAgePersonalInfoComponent = injectIntl(StepAgePersonalInfo);\n"],"names":["StepAgePersonalInfo","verificationService","intl","viewModel","fieldValidationErrors","verificationResponse","failedInstantMatch","hasFailedInstantMatch","countryChoices","getAvailableCountryChoices","defaultCountryChoice","getDefaultCountryChoice","safeCountryValue","getSafe","defaultRequiredFields","showPhoneNumber","phoneNumberRequired","locale","options","getOptions","updateAgeViewModel","key","value","nextState","produceDraftViewModel","isFieldRequired","useCollectFieldsEndpoint","React","updateFieldValidationErrorsByFieldId","jsxs","PersonalInfoWrapper","jsx","PersonalInfoHeader","ChangeLocaleV2Component","CountryComponentWrapper","getFieldConfigByFieldId","FirstName","newValue","LastName","BirthDate","CityComponent","AddressComponent","PostalCode","Email","FormattedHTMLMessage","event","handleEmailOnKeyDown","PhoneNumber","config","FormFieldCustom","MarketConsentWrapper","ExtraMessage","PersonalInfoStepSubmitButton","VerificationStepsEnum","StepAgePersonalInfoComponent","injectIntl"],"mappings":";;;;AAqDA,MAAMA,IAAsB,CAAC,EAAE,qBAAAC,GAAqB,MAAAC,QAA8C;AAChG,QAAMC,IAAYF,EAAoB,WAChC,EAAE,uBAAAG,MAA0BH,GAC5BI,IAAuBJ,EAAoB,sBAC3CK,IAAqBC,EAAsBF,CAAoB,GAC/DG,IAAsDC;AAAA,IAC1DR,EAAoB;AAAA,IACpBC;AAAA,EAAA,GAEIQ,IACJC,EAAwBH,CAAc,GAClCI,IAAmBC,EAAQ,MAAMV,EAAU,cAAc,OAAOO,EAAqB,KAAK,GAC1FI,IACJF,MAAqB,OAAO,CAAC,EAAE,KAAK,aAAA,CAAc,IAAI,CAAA,GAGlDG,IACJH,MAAqB,QACrBX,EAAoB,aAAa,2BACjCA,EAAoB,aAAa,gBAC7Be,IACJJ,MAAqB,QAAQX,EAAoB,aAAa,gBAE1DgB,IAASd,EAAU,aAAa,OAChCe,IAAUC,EAAA;AAEhB,EACE,CAACf,EAAsB,eACvBC,EAAqB,YACrBA,EAAqB,SAAS,SAAS,oBAAoB,KAE3DJ,EAAoB,4BAA4B;AAAA,IAC9C,GAAGG;AAAA,IACH,aAAa;AAAA,EAAA,CACd;AAGH,QAAMgB,IAAqB,CAACC,GAAqCC,MAAe;AAC9E,UAAMC,IAAsCC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8B,gBAAAA,EAAAA;AAAAA,UAACmB;AAAAA,UAAA;AAAA,YACC,qBAAAjD;AAAA,YACA,WAAW,CAAC,CAACG,EAAsB;AAAA,YACnC,UAAU,CAACiC,MAAa;AACtB,cAAAjB,EAAmB,YAAY;AAAA,gBAC7B,GAAGnB,EAAoB,UAAU;AAAA,gBACjC,oBAAoBoC;AAAA,cAAA,CACrB,GACDT,EAAqC,sBAAsBS,GAAUpC,CAAmB;AAAA,YAC1F;AAAA,YACA,WAAAE;AAAA,YACA,UAAUgC,EAAwB,oBAAoB,GAAG;AAAA,UAAA;AAAA,QAAA;AAAA,QAG3DJ,gBAAAA,EAAAA,IAACoB,GAAA,EAAa,qBAAAlD,GAA0C,QAAO,qBAAA,CAAqB;AAAA,QAEpF8B,gBAAAA,EAAAA;AAAAA,UAACqB;AAAA,UAAA;AAAA,YACC,MAAMC,EAAsB;AAAA,YAC5B,qBAAApD;AAAA,YACA,WAAAE;AAAA,YACA,oBAAAG;AAAA,YACA,YACEyB,gBAAAA,EAAAA;AAAAA,cAACa;AAAA,cAAA;AAAA,gBACC,IAAG;AAAA,gBACH,gBAAe;AAAA,cAAA;AAAA,YAAA;AAAA,UACjB;AAAA,QAAA;AAAA,MAEJ;AAAA,IAAA;AAAA,EAAA;AAGN,GAEaU,KAA+BC,EAAWvD,CAAmB;"}
|
|
1
|
+
{"version":3,"file":"index-Bx8ffNMR.js","sources":["../../src/components/StepAgePersonalInfo/StepAgePersonalInfoComponent.tsx"],"sourcesContent":["/**\n * TODO - preamble\n */\nimport React from \"react\";\nimport { FormattedHTMLMessage, InjectedIntl, injectIntl } from \"react-intl\";\n\nimport { useCollectFieldsEndpoint } from \"@/lib/ServerApi/useCollectFieldsEndpoint\";\nimport { VerificationStepsEnum } from \"../../lib/types/runtimeTypes\";\nimport { hasFailedInstantMatch } from \"../../lib/VerificationService/VerificationServiceHelpers\";\nimport { getSafe } from \"../../lib/utils/getSafe\";\nimport {\n VerificationService,\n AgePersonalInfoViewModel,\n AgePersonalInfoResponse,\n FormSelectChoice,\n Country,\n FieldDescription,\n CustomFormFieldConfig,\n} from \"../../lib/types/types\";\n\nimport {\n handleEmailOnKeyDown,\n updateFieldValidationErrorsByFieldId,\n getAvailableCountryChoices,\n getDefaultCountryChoice,\n produceDraftViewModel,\n getFieldConfigByFieldId,\n} from \"../../lib/utils/stepComponentHelpers/stepComponentHelpers\";\n\nimport { MarketConsentWrapperComponent as MarketConsentWrapper } from \"../FormFields/MarketConsentWrapper/MarketConsentWrapperComponent\";\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 { PostalCodeComponent as PostalCode } from \"../FormFields/PostalCode/PostalCodeComponent\";\n\nimport { CountryComponentWrapper } from \"../FormFields/Country/CountryComponentWrapper\";\nimport { CityComponent } from \"../FormFields/City/City\";\nimport { AddressComponent } from \"../FormFields/Address/AddressComponent\";\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 StepAgePersonalInfoComponentProps {\n intl: InjectedIntl;\n verificationService: VerificationService;\n}\n\nconst StepAgePersonalInfo = ({ verificationService, intl }: StepAgePersonalInfoComponentProps) => {\n const viewModel = verificationService.viewModel as AgePersonalInfoViewModel;\n const { fieldValidationErrors } = verificationService;\n const verificationResponse = verificationService.verificationResponse as AgePersonalInfoResponse;\n const failedInstantMatch = hasFailedInstantMatch(verificationResponse);\n const countryChoices: FormSelectChoice<Country, string>[] = getAvailableCountryChoices(\n verificationService.programTheme,\n intl,\n );\n const defaultCountryChoice: FormSelectChoice<Country, string> =\n getDefaultCountryChoice(countryChoices);\n const safeCountryValue = getSafe(() => viewModel.countryChoice.value, defaultCountryChoice.value);\n const defaultRequiredFields: FieldDescription[] =\n safeCountryValue === \"US\" ? [{ key: \"postalCode\" }] : [];\n\n // PhoneNumber is required for all non-US age programs and if smsLoop is enabled.\n const showPhoneNumber =\n safeCountryValue !== \"US\" ||\n verificationService.programTheme.isSmsNotifierConfigured ||\n verificationService.programTheme.smsLoopEnabled;\n const phoneNumberRequired =\n safeCountryValue !== \"US\" || verificationService.programTheme.smsLoopEnabled;\n\n const locale = viewModel.localeChoice.value;\n const options = getOptions();\n\n if (\n !fieldValidationErrors.phoneNumber &&\n verificationResponse.errorIds &&\n verificationResponse.errorIds.includes(\"invalidPhoneNumber\")\n ) {\n verificationService.updateFieldValidationErrors({\n ...fieldValidationErrors,\n phoneNumber: \"invalidPhoneNumber\",\n });\n }\n\n const updateAgeViewModel = (key: keyof AgePersonalInfoViewModel, value: any) => {\n const nextState: AgePersonalInfoViewModel = produceDraftViewModel(viewModel, key, value);\n verificationService.updateViewModel(nextState);\n };\n\n const { isFieldRequired } = useCollectFieldsEndpoint({\n verificationId: verificationResponse.verificationId,\n currentStep: verificationResponse.currentStep,\n viewModel,\n defaultRequiredFields,\n });\n\n React.useEffect(() => {\n // When country changes re-check the phone number validation\n updateFieldValidationErrorsByFieldId(\"phoneNumber\", viewModel.phoneNumber, verificationService);\n }, [viewModel.country]);\n\n return (\n <PersonalInfoWrapper\n verificationService={verificationService}\n step={verificationResponse.currentStep}\n >\n <PersonalInfoHeader verificationService={verificationService} classNameIdentifier=\"age\" />\n\n <ChangeLocaleV2Component verificationService={verificationService} />\n <CountryComponentWrapper\n verificationService={verificationService}\n disabled={getFieldConfigByFieldId(\"country\")?.disabled}\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 updateAgeViewModel(\"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 updateAgeViewModel(\"lastName\", newValue);\n updateFieldValidationErrorsByFieldId(\"lastName\", newValue, verificationService);\n }}\n />\n </div>\n <BirthDate\n errorId={fieldValidationErrors.birthDate}\n locale={locale}\n onChange={(newValue) => {\n updateAgeViewModel(\"birthDate\", newValue);\n updateFieldValidationErrorsByFieldId(\"birthDate\", newValue, verificationService);\n }}\n value={viewModel.birthDate}\n disabled={getFieldConfigByFieldId(\"birthDate\")?.disabled}\n />\n {isFieldRequired(\"city\") && (\n <CityComponent\n value={viewModel.city}\n isRequired\n isErrored={!!fieldValidationErrors.city}\n errorId={fieldValidationErrors.city}\n disabled={getFieldConfigByFieldId(\"city\")?.disabled}\n onChange={(value) => {\n updateAgeViewModel(\"city\", value);\n updateFieldValidationErrorsByFieldId(\"city\", value, verificationService);\n }}\n />\n )}\n {isFieldRequired(\"address1\") && (\n <AddressComponent\n value={viewModel.address1}\n isRequired\n isErrored={!!fieldValidationErrors.address1}\n errorId={fieldValidationErrors.address1}\n onChange={(value) => {\n updateAgeViewModel(\"address1\", value);\n updateFieldValidationErrorsByFieldId(\"address1\", value, verificationService);\n }}\n />\n )}\n {isFieldRequired(\"postalCode\") && (\n <PostalCode\n isErrored={!!fieldValidationErrors.postalCode}\n onChange={(newValue) => {\n updateAgeViewModel(\"postalCode\", newValue);\n updateFieldValidationErrorsByFieldId(\"postalCode\", newValue, verificationService);\n }}\n value={viewModel.postalCode}\n disabled={getFieldConfigByFieldId(\"postalCode\")?.disabled}\n />\n )}\n <Email\n value={viewModel.email}\n isErrored={!!fieldValidationErrors.email}\n explanation={<FormattedHTMLMessage id=\"emailExplanation\" defaultMessage=\" \" />}\n onChange={(newValue) => {\n updateAgeViewModel(\"email\", newValue);\n updateFieldValidationErrorsByFieldId(\"email\", newValue, verificationService);\n }}\n onKeyDown={(event) => handleEmailOnKeyDown(event)}\n disabled={getFieldConfigByFieldId(\"email\")?.disabled}\n />\n\n {showPhoneNumber ? (\n <PhoneNumber\n isRequired={phoneNumberRequired}\n value={viewModel.phoneNumber}\n isErrored={!!fieldValidationErrors.phoneNumber}\n onChange={(newValue) => {\n updateAgeViewModel(\"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 updateAgeViewModel(\"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.collectAgePersonalInfo}\n verificationService={verificationService}\n viewModel={viewModel}\n failedInstantMatch={failedInstantMatch}\n buttonText={\n <FormattedHTMLMessage\n id=\"step.personalInfo.submitButtonText\"\n defaultMessage=\"Verify and continue\"\n />\n }\n />\n </PersonalInfoWrapper>\n );\n};\n\nexport const StepAgePersonalInfoComponent = injectIntl(StepAgePersonalInfo);\n"],"names":["StepAgePersonalInfo","verificationService","intl","viewModel","fieldValidationErrors","verificationResponse","failedInstantMatch","hasFailedInstantMatch","countryChoices","getAvailableCountryChoices","defaultCountryChoice","getDefaultCountryChoice","safeCountryValue","getSafe","defaultRequiredFields","showPhoneNumber","phoneNumberRequired","locale","options","getOptions","updateAgeViewModel","key","value","nextState","produceDraftViewModel","isFieldRequired","useCollectFieldsEndpoint","React","updateFieldValidationErrorsByFieldId","jsxs","PersonalInfoWrapper","jsx","PersonalInfoHeader","ChangeLocaleV2Component","CountryComponentWrapper","getFieldConfigByFieldId","FirstName","newValue","LastName","BirthDate","CityComponent","AddressComponent","PostalCode","Email","FormattedHTMLMessage","event","handleEmailOnKeyDown","PhoneNumber","config","FormFieldCustom","MarketConsentWrapper","ExtraMessage","PersonalInfoStepSubmitButton","VerificationStepsEnum","StepAgePersonalInfoComponent","injectIntl"],"mappings":";;;;AAqDA,MAAMA,IAAsB,CAAC,EAAE,qBAAAC,GAAqB,MAAAC,QAA8C;AAChG,QAAMC,IAAYF,EAAoB,WAChC,EAAE,uBAAAG,MAA0BH,GAC5BI,IAAuBJ,EAAoB,sBAC3CK,IAAqBC,EAAsBF,CAAoB,GAC/DG,IAAsDC;AAAA,IAC1DR,EAAoB;AAAA,IACpBC;AAAA,EAAA,GAEIQ,IACJC,EAAwBH,CAAc,GAClCI,IAAmBC,EAAQ,MAAMV,EAAU,cAAc,OAAOO,EAAqB,KAAK,GAC1FI,IACJF,MAAqB,OAAO,CAAC,EAAE,KAAK,aAAA,CAAc,IAAI,CAAA,GAGlDG,IACJH,MAAqB,QACrBX,EAAoB,aAAa,2BACjCA,EAAoB,aAAa,gBAC7Be,IACJJ,MAAqB,QAAQX,EAAoB,aAAa,gBAE1DgB,IAASd,EAAU,aAAa,OAChCe,IAAUC,EAAA;AAEhB,EACE,CAACf,EAA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_COMMIT: 526598cd626c99a81604fb961b44e4fe5fc98f76
|
|
7
|
+
*/
|
|
8
|
+
import { d as e } from "./es6-BAcbKkAS.js";
|
|
9
|
+
export {
|
|
10
|
+
e as default
|
|
11
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index-BxBN-wPX.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
|
|
2
2
|
/**
|
|
3
|
-
* VERSION: 2.
|
|
4
|
-
* BUILD_TIMESTAMP:
|
|
5
|
-
* BUILD_DATE:
|
|
6
|
-
* BUILD_COMMIT:
|
|
3
|
+
* VERSION: 2.163.0
|
|
4
|
+
* BUILD_TIMESTAMP: 1769033492093
|
|
5
|
+
* BUILD_DATE: Wed Jan 21 2026 22:11:32 GMT+0000 (Coordinated Universal Time)
|
|
6
|
+
* BUILD_COMMIT: 526598cd626c99a81604fb961b44e4fe5fc98f76
|
|
7
7
|
*/
|
|
8
|
-
import { k as m, j as e, m as u, E as x, n as f, o as I, p as j, V as E, q as M, r as h } from "./es6-
|
|
8
|
+
import { k as m, j as e, m as u, E as x, n as f, o as I, p as j, V as E, q as M, r as h } from "./es6-BAcbKkAS.js";
|
|
9
9
|
import { FormattedHTMLMessage as o } from "react-intl";
|
|
10
10
|
const C = ({ verificationService: t }) => {
|
|
11
11
|
const s = t.viewModel, { fieldValidationErrors: a } = t, l = t.verificationResponse, d = m(l), i = (n, r) => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index-
|
|
1
|
+
{"version":3,"file":"index-C2F77Czg.js","sources":["../../src/components/StepCollectIdentifier/StepCollectIdentifierComponent.tsx"],"sourcesContent":["import React from \"react\";\nimport { FormattedHTMLMessage } from \"react-intl\";\nimport { produce } from \"immer\";\n\nimport { hasFailedInstantMatch } from \"../../lib/VerificationService/VerificationServiceHelpers\";\nimport {\n VerificationService,\n CollectIdentifierViewModel,\n PersonalInfoResponse,\n} from \"../../lib/types/types\";\n\nimport {\n handleEmailOnKeyDown,\n updateFieldValidationErrorsByFieldId,\n} from \"../../lib/utils/stepComponentHelpers/stepComponentHelpers\";\nimport { FormFooterComponent as FormFooter } from \"../FormFooter/FormFooterComponent\";\n\nimport { EmailComponent as Email } from \"../FormFields/Email/EmailComponent\";\nimport { VerificationStepsEnum } from \"../../lib/types/runtimeTypes\";\nimport { PersonalInfoHeader } from \"../FormHeader/StepHeaders/PersonalInfoHeaderComponent\";\nimport { PersonalInfoStepSubmitButton } from \"../PersonalInfoStepSubmitButton/PersonalInfoStepSubmitButton\";\n\ninterface StepCollectIdentifierProps {\n verificationService: VerificationService;\n}\n\nconst StepCollectIdentifier = ({ verificationService }: StepCollectIdentifierProps) => {\n const viewModel = verificationService.viewModel as CollectIdentifierViewModel;\n const { fieldValidationErrors } = verificationService;\n const verificationResponse = verificationService.verificationResponse as PersonalInfoResponse;\n const failedInstantMatch = hasFailedInstantMatch(verificationResponse);\n\n const updateCollectIdentifierViewmodel = (key: keyof CollectIdentifierViewModel, value: any) => {\n const nextState: CollectIdentifierViewModel = produce(\n viewModel,\n (draft: CollectIdentifierViewModel) => {\n (draft[key] as any) = value;\n },\n );\n verificationService.updateViewModel(nextState);\n };\n\n return (\n <div\n id=\"sid-step-collect-transaction-id\"\n className=\"sid-step-collect-transaction-id-container sid-l-container\"\n >\n <div role=\"main\">\n <PersonalInfoHeader\n verificationService={verificationService}\n classNameIdentifier=\"step-collect-transaction-id\"\n />\n\n <Email\n value={viewModel.email}\n isErrored={!!fieldValidationErrors.email}\n explanation={\n <FormattedHTMLMessage\n id=\"step.collectIdentifier.inputExplanation\"\n defaultMessage=\"Needed to send authentication code\"\n />\n }\n onChange={(newValue) => {\n updateCollectIdentifierViewmodel(\"email\", newValue);\n updateFieldValidationErrorsByFieldId(\"email\", newValue, verificationService);\n }}\n onKeyDown={(event: React.KeyboardEvent<HTMLInputElement>) => handleEmailOnKeyDown(event)}\n />\n\n <PersonalInfoStepSubmitButton\n step={VerificationStepsEnum.collectIdentifier}\n verificationService={verificationService}\n viewModel={viewModel}\n failedInstantMatch={failedInstantMatch}\n buttonText={\n <FormattedHTMLMessage\n id=\"step.personalInfo.submitButtonText\"\n defaultMessage=\"Verify and continue\"\n />\n }\n />\n </div>\n <FormFooter verificationService={verificationService} />\n </div>\n );\n};\n\nexport const StepCollectIdentifierComponent = StepCollectIdentifier;\n"],"names":["StepCollectIdentifier","verificationService","viewModel","fieldValidationErrors","verificationResponse","failedInstantMatch","hasFailedInstantMatch","updateCollectIdentifierViewmodel","key","value","nextState","produce","draft","jsxs","jsx","PersonalInfoHeader","Email","FormattedHTMLMessage","newValue","updateFieldValidationErrorsByFieldId","event","handleEmailOnKeyDown","PersonalInfoStepSubmitButton","VerificationStepsEnum","FormFooter","StepCollectIdentifierComponent"],"mappings":";;AA0BA,MAAMA,IAAwB,CAAC,EAAE,qBAAAC,QAAsD;AACrF,QAAMC,IAAYD,EAAoB,WAChC,EAAE,uBAAAE,MAA0BF,GAC5BG,IAAuBH,EAAoB,sBAC3CI,IAAqBC,EAAsBF,CAAoB,GAE/DG,IAAmC,CAACC,GAAuCC,MAAe;AAC9F,UAAMC,IAAwCC;AAAAA,MAC5CT;AAAA,MACA,CAACU,MAAsC;AACpC,QAAAA,EAAMJ,CAAG,IAAYC;AAAA,MACxB;AAAA,IAAA;AAEF,IAAAR,EAAoB,gBAAgBS,CAAS;AAAA,EAC/C;AAEA,SACEG,gBAAAA,EAAAA;AAAAA,IAAC;AAAA,IAAA;AAAA,MACC,IAAG;AAAA,MACH,WAAU;AAAA,MAEV,UAAA;AAAA,QAAAA,gBAAAA,EAAAA,KAAC,OAAA,EAAI,MAAK,QACR,UAAA;AAAA,UAAAC,gBAAAA,EAAAA;AAAAA,YAACC;AAAA,YAAA;AAAA,cACC,qBAAAd;AAAA,cACA,qBAAoB;AAAA,YAAA;AAAA,UAAA;AAAA,UAGtBa,gBAAAA,EAAAA;AAAAA,YAACE;AAAAA,YAAA;AAAA,cACC,OAAOd,EAAU;AAAA,cACjB,WAAW,CAAC,CAACC,EAAsB;AAAA,cACnC,aACEW,gBAAAA,EAAAA;AAAAA,gBAACG;AAAA,gBAAA;AAAA,kBACC,IAAG;AAAA,kBACH,gBAAe;AAAA,gBAAA;AAAA,cAAA;AAAA,cAGnB,UAAU,CAACC,MAAa;AACtB,gBAAAX,EAAiC,SAASW,CAAQ,GAClDC,EAAqC,SAASD,GAAUjB,CAAmB;AAAA,cAC7E;AAAA,cACA,WAAW,CAACmB,MAAiDC,EAAqBD,CAAK;AAAA,YAAA;AAAA,UAAA;AAAA,UAGzFN,gBAAAA,EAAAA;AAAAA,YAACQ;AAAA,YAAA;AAAA,cACC,MAAMC,EAAsB;AAAA,cAC5B,qBAAAtB;AAAA,cACA,WAAAC;AAAA,cACA,oBAAAG;AAAA,cACA,YACES,gBAAAA,EAAAA;AAAAA,gBAACG;AAAA,gBAAA;AAAA,kBACC,IAAG;AAAA,kBACH,gBAAe;AAAA,gBAAA;AAAA,cAAA;AAAA,YACjB;AAAA,UAAA;AAAA,QAEJ,GACF;AAAA,QACAH,gBAAAA,MAACU,KAAW,qBAAAvB,EAAA,CAA0C;AAAA,MAAA;AAAA,IAAA;AAAA,EAAA;AAG5D,GAEawB,IAAiCzB;"}
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
|
|
2
2
|
/**
|
|
3
|
-
* VERSION: 2.
|
|
4
|
-
* BUILD_TIMESTAMP:
|
|
5
|
-
* BUILD_DATE:
|
|
6
|
-
* BUILD_COMMIT:
|
|
3
|
+
* VERSION: 2.163.0
|
|
4
|
+
* BUILD_TIMESTAMP: 1769033492093
|
|
5
|
+
* BUILD_DATE: Wed Jan 21 2026 22:11:32 GMT+0000 (Coordinated Universal Time)
|
|
6
|
+
* BUILD_COMMIT: 526598cd626c99a81604fb961b44e4fe5fc98f76
|
|
7
7
|
*/
|
|
8
|
-
import { e as t, Q as n, j as e, I as r, L as i } from "./es6-
|
|
8
|
+
import { e as t, Q as n, j as e, I as r, L as i } from "./es6-BAcbKkAS.js";
|
|
9
9
|
import { Suspense as C, lazy as p } from "react";
|
|
10
10
|
const a = p(
|
|
11
|
-
() => import("./StepIDCheckLoopOnfido-
|
|
11
|
+
() => import("./StepIDCheckLoopOnfido-CIY3vV8O.js")
|
|
12
12
|
), d = p(
|
|
13
|
-
() => import("./StepIDCheckLoopRegula-
|
|
13
|
+
() => import("./StepIDCheckLoopRegula-Cog3hWPx.js")
|
|
14
14
|
), h = ({ verificationService: o }) => {
|
|
15
15
|
const s = o.verificationResponse, c = t(
|
|
16
16
|
n
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index-
|
|
1
|
+
{"version":3,"file":"index-CYx55ptl.js","sources":["../../src/components/StepIDCheckLoop/StepIDCheckLoopComponent.tsx"],"sourcesContent":["import React, { Suspense, lazy } from \"react\";\nimport { IdCheckLoopServiceType } from \"../../lib/types/runtimeTypes\";\n\nimport { IDCheckLoopResponse, VerificationService } from \"../../lib/types/types\";\n\nimport { QUERY_STRING_ID_CHECK_LOOP_SERVICE_TYPE_OVERRIDE } from \"../../constants\";\nimport { getQueryOrOption } from \"../../lib/ServerApi/TestingRouteOverrides\";\nimport { LoadingScreenComponent } from \"../LoadingScreen/LoadingScreenComponent\";\n\nconst StepIDCheckLoopOnfido = lazy(\n () => import(\"./Onfido/StepIDCheckLoopOnfido/StepIDCheckLoopOnfido\"),\n);\nconst StepIDCheckLoopRegula = lazy(\n () => import(\"./Regula/StepIDCheckLoopRegulaComponent/StepIDCheckLoopRegula\"),\n);\n\nexport interface StepIDCheckLoopComponentProps {\n verificationService: VerificationService;\n}\n\n/**\n * The idCheckLoop step consists of two 3rd party identity verification services. One is `Onfido`, which performs a\n * governemnt ID based identity confirmation, in addition to a liveness check. The other is `Regula`, which only\n * performs identity confirmation without a liveness check. The verification API's serviceType property denotes\n * them as such.\n */\nconst StepIDCheckLoop = ({ verificationService }: StepIDCheckLoopComponentProps) => {\n const verificationResponse = verificationService.verificationResponse as IDCheckLoopResponse;\n const mockIdCheckLoopServiceType = getQueryOrOption(\n QUERY_STRING_ID_CHECK_LOOP_SERVICE_TYPE_OVERRIDE,\n );\n\n const idCheckServiceType = mockIdCheckLoopServiceType || verificationResponse.idCheckServiceType;\n\n return (\n <Suspense\n fallback={\n <div className=\"sid-l-horz-center\">\n <LoadingScreenComponent step=\"idCheckLoop\" />\n </div>\n }\n >\n {idCheckServiceType === IdCheckLoopServiceType.ID_CHECK ? (\n <StepIDCheckLoopRegula verificationService={verificationService} />\n ) : (\n <StepIDCheckLoopOnfido verificationService={verificationService} />\n )}\n </Suspense>\n );\n};\n\nexport const StepIDCheckLoopComponent = StepIDCheckLoop;\n"],"names":["StepIDCheckLoopOnfido","lazy","StepIDCheckLoopRegula","StepIDCheckLoop","verificationService","verificationResponse","idCheckServiceType","getQueryOrOption","QUERY_STRING_ID_CHECK_LOOP_SERVICE_TYPE_OVERRIDE","jsx","Suspense","LoadingScreenComponent","IdCheckLoopServiceType","StepIDCheckLoopComponent"],"mappings":";;AASA,MAAMA,IAAwBC;AAAA,EAC5B,MAAM,OAAO,qCAAsD;AACrE,GACMC,IAAwBD;AAAA,EAC5B,MAAM,OAAO,qCAA+D;AAC9E,GAYME,IAAkB,CAAC,EAAE,qBAAAC,QAAyD;AAClF,QAAMC,IAAuBD,EAAoB,sBAK3CE,IAJ6BC;AAAA,IACjCC;AAAA,EAAA,KAGuDH,EAAqB;AAE9E,SACEI,gBAAAA,EAAAA;AAAAA,IAACC;AAAA,IAAA;AAAA,MACC,gCACG,OAAA,EAAI,WAAU,qBACb,UAAAD,gBAAAA,EAAAA,IAACE,GAAA,EAAuB,MAAK,cAAA,CAAc,EAAA,CAC7C;AAAA,MAGD,UAAAL,MAAuBM,EAAuB,WAC7CH,gBAAAA,EAAAA,IAACP,KAAsB,qBAAAE,EAAA,CAA0C,IAEjEK,gBAAAA,EAAAA,IAACT,GAAA,EAAsB,qBAAAI,EAAA,CAA0C;AAAA,IAAA;AAAA,EAAA;AAIzE,GAEaS,IAA2BV;"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
|
|
2
|
+
/**
|
|
3
|
+
* VERSION: 2.163.0
|
|
4
|
+
* BUILD_TIMESTAMP: 1769033492093
|
|
5
|
+
* BUILD_DATE: Wed Jan 21 2026 22:11:32 GMT+0000 (Coordinated Universal Time)
|
|
6
|
+
* BUILD_COMMIT: 526598cd626c99a81604fb961b44e4fe5fc98f76
|
|
7
|
+
*/
|
|
8
|
+
import { S as f } from "./es6-BAcbKkAS.js";
|
|
9
|
+
export {
|
|
10
|
+
f as default
|
|
11
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index-CpEhF-za.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
|
|
2
2
|
/**
|
|
3
|
-
* VERSION: 2.
|
|
4
|
-
* BUILD_TIMESTAMP:
|
|
5
|
-
* BUILD_DATE:
|
|
6
|
-
* BUILD_COMMIT:
|
|
3
|
+
* VERSION: 2.163.0
|
|
4
|
+
* BUILD_TIMESTAMP: 1769033492093
|
|
5
|
+
* BUILD_DATE: Wed Jan 21 2026 22:11:32 GMT+0000 (Coordinated Universal Time)
|
|
6
|
+
* BUILD_COMMIT: 526598cd626c99a81604fb961b44e4fe5fc98f76
|
|
7
7
|
*/
|
|
8
|
-
import { k as w, aH as u, aI as _, D as k, V as y, j as s, O as B, m as W, a2 as Y, f as d, ae as H, aJ as V, ag as K, o as n, T as U, U as $, a5 as J, E as X, n as Z, Y as G, W as Q, ac as c, aE as f, aK as S, aL as v, a6 as aa, X as ea, y as sa, z as ta, au as oa, av as da, aD as na, Z as ra, _ as la, $ as ua, p as ma, q as ia, aM as ba, i as M, l as ga, aN as Ca, aO as pa, a4 as b, ay as ha, ah as Ea, aC as Na, a3 as Ia, a7 as xa, al as Ma, r as za, aP as Da } from "./es6-
|
|
8
|
+
import { k as w, aH as u, aI as _, D as k, V as y, j as s, O as B, m as W, a2 as Y, f as d, ae as H, aJ as V, ag as K, o as n, T as U, U as $, a5 as J, E as X, n as Z, Y as G, W as Q, ac as c, aE as f, aK as S, aL as v, a6 as aa, X as ea, y as sa, z as ta, au as oa, av as da, aD as na, Z as ra, _ as la, $ as ua, p as ma, q as ia, aM as ba, i as M, l as ga, aN as Ca, aO as pa, a4 as b, ay as ha, ah as Ea, aC as Na, a3 as Ia, a7 as xa, al as Ma, r as za, aP as Da } from "./es6-BAcbKkAS.js";
|
|
9
9
|
import h from "react";
|
|
10
10
|
import { injectIntl as ja, FormattedHTMLMessage as z } from "react-intl";
|
|
11
|
-
import { L as ya } from "./LicensedProfessionalOrganizationComponent-
|
|
11
|
+
import { L as ya } from "./LicensedProfessionalOrganizationComponent-oRAhgxJG.js";
|
|
12
12
|
const Ra = ({
|
|
13
13
|
intl: E,
|
|
14
14
|
verificationService: e
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index-DZS8D7I-.js","sources":["../../src/components/StepCollectPersonalInfo/StepCollectPersonalInfoComponent.tsx"],"sourcesContent":["import React from \"react\";\n\nimport produce from \"immer\";\nimport { FormattedHTMLMessage, InjectedIntl, injectIntl } from \"react-intl\";\nimport { hasFailedInstantMatch } from \"../../lib/VerificationService/VerificationServiceHelpers\";\nimport {\n VerificationService,\n CollectPersonalInfoViewModel,\n CustomFormFieldConfig,\n Organization,\n FormSelectChoice,\n State,\n CollectFieldsResponse,\n CollectPersonalInfoResponse,\n FieldDescription,\n AllStatuses,\n} from \"../../lib/types/types\";\nimport {\n getAvailableStateChoices,\n orgToOption,\n getStatusLabel,\n handleEmailOnKeyDown,\n submitForm,\n updateFieldValidationErrorsByFieldId,\n updateViewModelOrganization,\n produceDraftViewModelWithAllRequiredFields,\n getAvailableStatuses,\n getFieldConfigByFieldId,\n} from \"../../lib/utils/stepComponentHelpers/stepComponentHelpers\";\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 { FormFooterComponent as FormFooter } from \"../FormFooter/FormFooterComponent\";\nimport { CountryComponentWrapper } from \"../FormFields/Country/CountryComponentWrapper\";\nimport { getOptions } from \"../../options/options\";\nimport { FormFieldCustom } from \"../FormFields/FormFieldCustom/FormFieldCustom\";\nimport { ExtraMessage } from \"../ExtraMessage\";\nimport { FieldIdEnum, SegmentEnum, VerificationStepsEnum } from \"../../lib/types/runtimeTypes\";\nimport { CityComponent } from \"../FormFields/City/City\";\nimport { StateSelectComponent } from \"../FormFields/State/StateSelectComponent\";\nimport { PostalCodeComponent } from \"../FormFields/PostalCode/PostalCodeComponent\";\nimport { AddressComponent } from \"../FormFields/Address/AddressComponent\";\nimport { ActiveDutyStartDateComponent } from \"../FormFields/ActiveDutyStartDate/ActiveDutyStartDateComponent\";\nimport { BranchOfServiceComponent as BranchOfService } from \"../FormFields/BranchOfService/BranchOfServiceComponent\";\nimport { DriverLicenseNumberComponent as DriverLicenseNumber } from \"../FormFields/DriverLicenseNumber/DriverLicenseNumberComponent\";\nimport { EBTCardNumberComponent } from \"../FormFields/EBTCardNumber/EBTCardNumberComponent\";\nimport { StatusComponent as Status } from \"../FormFields/Status/StatusComponent\";\nimport { LowIncomeOrganizationComponent as LowIncomeOrganization } from \"../FormFields/LowIncomeOrganization/LowIncomeOrganizationComponent\";\nimport { FirstResponderOrganizationComponent as FirstResponderOrganization } from \"../FormFields/FirstResponderOrganization/FirstResponderOrganizationComponent\";\nimport { LicensedProfessionalOrganizationComponent as LicensedProfessionalOrganization } from \"../FormFields/LicensedProfessionalOrganization/LicensedProfessionalOrganizationComponent\";\nimport { MedicalProfessionalOrganizationComponent as MedicalProfessionalOrganization } from \"../FormFields/MedicalProfessionalOrganization/MedicalProfessionalOrganizationComponent\";\nimport { MemberIdComponent as MemberId } from \"../FormFields/MemberId/MemberIdComponent\";\nimport { MembershipOrganizationComponent as MembershipOrganization } from \"../FormFields/MembershipOrganization/MembershipOrganizationComponent\";\nimport { TeacherSchoolComponent as TeacherSchool } from \"../FormFields/TeacherSchool/TeacherSchoolComponent\";\nimport { SocialSecurityNumber } from \"../FormFields/SSN/SSN\";\nimport { DischargeDateComponent } from \"../FormFields/DischargeDate/DischargeDateComponent\";\nimport { getAllFieldsToCollect } from \"../../lib/ServerApi/VerificationApiClient\";\nimport { getSafe } from \"../../lib/utils/getSafe\";\nimport { logger } from \"../../lib/utils/logger/logger\";\nimport { getMarketConsent } from \"../../lib/ProgramTheme/programThemeGetters\";\nimport { PersonalInfoHeader } from \"../FormHeader/StepHeaders/PersonalInfoHeaderComponent\";\nimport { PersonalInfoStepSubmitButton } from \"../PersonalInfoStepSubmitButton/PersonalInfoStepSubmitButton\";\n\ninterface StepCollectPersonalInfoProps {\n intl: InjectedIntl;\n verificationService: VerificationService;\n}\n\nexport const StepCollectPersonalInfo = ({\n intl,\n verificationService,\n}: StepCollectPersonalInfoProps) => {\n const viewModel = verificationService.viewModel as CollectPersonalInfoViewModel;\n const { updateViewModel, programTheme } = verificationService;\n\n const [requiredFields, setRequiredFields] = React.useState<FieldDescription[]>(undefined);\n\n const isFieldRequired = (key: keyof CollectPersonalInfoViewModel) =>\n requiredFields && requiredFields.some((field) => field.key === key);\n\n const { fieldValidationErrors } = verificationService;\n const verificationResponse =\n verificationService.verificationResponse as CollectPersonalInfoResponse;\n const failedInstantMatch = hasFailedInstantMatch(verificationResponse);\n\n const updatePersonalInfoViewModel = (key: keyof CollectPersonalInfoViewModel, value: any) => {\n const nextState: CollectPersonalInfoViewModel = produce(\n viewModel,\n (draft: CollectPersonalInfoViewModel) => {\n (draft[key] as any) = value;\n },\n );\n updateViewModel(nextState);\n };\n\n const updateViewModelWithRequiredFields = (newRequiredFields: FieldDescription[]) => {\n const nextState: CollectPersonalInfoViewModel = produceDraftViewModelWithAllRequiredFields(\n viewModel,\n newRequiredFields,\n );\n updateViewModel(nextState);\n };\n\n const locale = viewModel.localeChoice.value;\n const options = getOptions();\n\n const { segment, availableStatuses } = verificationResponse;\n const pascalCaseSegment = segment.charAt(0).toUpperCase() + segment.slice(1);\n\n const isStatusRequired = (): boolean =>\n availableStatuses &&\n (segment === SegmentEnum.FIRST_RESPONDER ||\n segment === SegmentEnum.MEDICAL ||\n segment === SegmentEnum.LOW_INCOME ||\n segment === SegmentEnum.LICENSED_PROFESSIONAL ||\n segment === SegmentEnum.EMPLOYMENT ||\n segment === SegmentEnum.RECENT_MOVER ||\n segment === SegmentEnum.MILITARY);\n\n const getAndSetRequiredFields = (requestBody: { statuses?: AllStatuses[] }) =>\n (async () => {\n try {\n const collectFieldsResponse: CollectFieldsResponse = await getAllFieldsToCollect(\n verificationResponse.verificationId,\n verificationResponse.currentStep,\n requestBody,\n );\n const newRequiredFields = getSafe(() => collectFieldsResponse.fieldsToCollect.required, []);\n\n if (isStatusRequired()) {\n // Adding `status` as a required input field if it's been removed by getting\n // all fields to collect with a statuses req body\n newRequiredFields.push({ key: \"status\" });\n }\n\n updateViewModelWithRequiredFields(newRequiredFields);\n setRequiredFields(newRequiredFields);\n } catch (error) {\n logger.error(`Failed to determine fields to collect: ${error}`);\n }\n })();\n\n const getOrganizationField = () => {\n switch (segment) {\n case SegmentEnum.STUDENT:\n return (\n <CollegeName\n value={(verificationService.viewModel as CollectPersonalInfoViewModel).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 );\n case SegmentEnum.TEACHER:\n return (\n <TeacherSchool\n value={(verificationService.viewModel as CollectPersonalInfoViewModel).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 case SegmentEnum.MEMBER:\n return (\n <MembershipOrganization\n value={(verificationService.viewModel as CollectPersonalInfoViewModel).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 case SegmentEnum.MILITARY:\n return (\n <BranchOfService\n isErrored={!!fieldValidationErrors.organization}\n onChange={(choice: Organization) => {\n updateViewModelOrganization(choice, verificationService);\n updateFieldValidationErrorsByFieldId(\"organization\", choice, verificationService);\n }}\n value={{\n value: getSafe(\n () =>\n (verificationService.viewModel as CollectPersonalInfoViewModel).organization.id,\n ),\n label: getSafe(\n () =>\n (verificationService.viewModel as CollectPersonalInfoViewModel).organization.name,\n ),\n }}\n verificationService={verificationService}\n disabled={getFieldConfigByFieldId(\"organization\")?.disabled}\n />\n );\n case SegmentEnum.FIRST_RESPONDER:\n return (\n <FirstResponderOrganization\n isErrored={!!fieldValidationErrors.organization}\n onChange={(choice: Organization) => {\n updateViewModelOrganization(choice, verificationService);\n updateFieldValidationErrorsByFieldId(\"organization\", choice, verificationService);\n }}\n value={(verificationService.viewModel as CollectPersonalInfoViewModel).organization}\n verificationService={verificationService}\n disabled={getFieldConfigByFieldId(\"organization\")?.disabled}\n />\n );\n case SegmentEnum.MEDICAL:\n return (\n <MedicalProfessionalOrganization\n isErrored={!!fieldValidationErrors.organization}\n onChange={(choice: Organization) => {\n updateViewModelOrganization(choice, verificationService);\n updateFieldValidationErrorsByFieldId(\"organization\", choice, verificationService);\n }}\n value={(verificationService.viewModel as CollectPersonalInfoViewModel).organization}\n verificationService={verificationService}\n disabled={getFieldConfigByFieldId(\"organization\")?.disabled}\n />\n );\n case SegmentEnum.LICENSED_PROFESSIONAL:\n return (\n <LicensedProfessionalOrganization\n isErrored={!!fieldValidationErrors.organization}\n onChange={(choice: Organization) => {\n updateViewModelOrganization(choice, verificationService);\n updateFieldValidationErrorsByFieldId(\"organization\", choice, verificationService);\n }}\n value={(verificationService.viewModel as CollectPersonalInfoViewModel).organization}\n verificationService={verificationService}\n disabled={getFieldConfigByFieldId(\"organization\")?.disabled}\n />\n );\n case SegmentEnum.LOW_INCOME:\n return (\n <LowIncomeOrganization\n isErrored={!!fieldValidationErrors.organization}\n onChange={(choice: Organization) => {\n updateViewModelOrganization(choice, verificationService);\n updateFieldValidationErrorsByFieldId(\"organization\", choice, verificationService);\n }}\n value={orgToOption(\n (verificationService.viewModel as CollectPersonalInfoViewModel).organization,\n )}\n verificationService={verificationService}\n isRequired\n disabled={getFieldConfigByFieldId(\"organization\")?.disabled}\n />\n );\n default:\n return null;\n }\n };\n\n React.useEffect(() => {\n if (availableStatuses && segment === SegmentEnum.MILITARY) {\n // display all required military fields by setting an initial default status\n getAndSetRequiredFields({ statuses: [] });\n } else {\n // fetch initial list of required input fields\n getAndSetRequiredFields({});\n }\n }, []);\n\n React.useEffect(() => {\n if (!getMarketConsent(programTheme).enabled && requiredFields && requiredFields.length === 0) {\n // skip this step if there are no required fields, and marketConsent is not enabled\n submitForm(viewModel, verificationService, VerificationStepsEnum.collectPersonalInfo);\n }\n }, [requiredFields]);\n\n React.useEffect(() => {\n if (viewModel.status) {\n // if status changes, re-fetch required fields because they may have changed based on selected status\n getAndSetRequiredFields({ statuses: [viewModel.status] });\n }\n }, [viewModel.status]);\n\n return (\n <div\n id=\"sid-step-personal-info-personal-info\"\n className=\"sid-personal-info-container sid-l-container\"\n >\n <div role=\"main\">\n <PersonalInfoHeader\n verificationService={verificationService}\n classNameIdentifier=\"personal-info\"\n />\n\n <CountryComponentWrapper\n verificationService={verificationService}\n disabled={getFieldConfigByFieldId(\"country\")?.disabled}\n />\n\n {isStatusRequired() && (\n <Status\n segmentId={segment}\n value={{\n value: viewModel.status,\n label: getStatusLabel(intl, viewModel.status, null),\n }}\n isErrored={!!fieldValidationErrors.status}\n errorId={`invalid${pascalCaseSegment}Status`}\n options={getAvailableStatuses(intl, availableStatuses)}\n disabled={getFieldConfigByFieldId(\"status\")?.disabled}\n onChange={(status: FormSelectChoice) => {\n updatePersonalInfoViewModel(\"status\", status ? (status.value as string) : \"\");\n updateFieldValidationErrorsByFieldId(\n \"status\",\n status ? (status.value as string) : \"\",\n verificationService,\n );\n }}\n />\n )}\n\n {isFieldRequired(\"organization\") && getOrganizationField()}\n\n <div className=\"sid-names\">\n {isFieldRequired(\"firstName\") && (\n <FirstName\n value={viewModel.firstName}\n isErrored={!!fieldValidationErrors.firstName}\n disabled={getFieldConfigByFieldId(\"firstName\")?.disabled}\n onChange={(newValue) => {\n updatePersonalInfoViewModel(\"firstName\", newValue);\n updateFieldValidationErrorsByFieldId(\"firstName\", newValue, verificationService);\n }}\n />\n )}\n\n {isFieldRequired(\"lastName\") && (\n <LastName\n value={viewModel.lastName}\n isErrored={!!fieldValidationErrors.lastName}\n disabled={getFieldConfigByFieldId(\"lastName\")?.disabled}\n onChange={(newValue) => {\n updatePersonalInfoViewModel(\"lastName\", newValue);\n updateFieldValidationErrorsByFieldId(\"lastName\", newValue, verificationService);\n }}\n />\n )}\n </div>\n\n {isFieldRequired(\"birthDate\") && (\n <BirthDate\n value={viewModel.birthDate}\n errorId={fieldValidationErrors.birthDate}\n locale={locale}\n isRequired\n disabled={getFieldConfigByFieldId(\"birthDate\")?.disabled}\n onChange={(newValue) => {\n updatePersonalInfoViewModel(\"birthDate\", newValue);\n updateFieldValidationErrorsByFieldId(\"birthDate\", newValue, verificationService);\n }}\n />\n )}\n\n {isFieldRequired(\"email\") && (\n <Email\n value={viewModel.email}\n isErrored={!!fieldValidationErrors.email}\n explanation=\" \"\n onChange={(newValue) => {\n updatePersonalInfoViewModel(\"email\", newValue);\n updateFieldValidationErrorsByFieldId(\"email\", newValue, verificationService);\n }}\n onKeyDown={(event) => handleEmailOnKeyDown(event)}\n disabled={getFieldConfigByFieldId(\"email\")?.disabled}\n />\n )}\n\n {isFieldRequired(\"phoneNumber\") && (\n <PhoneNumber\n isRequired={!!verificationService.programTheme.smsLoopEnabled}\n value={viewModel.phoneNumber}\n isErrored={!!fieldValidationErrors.phoneNumber}\n onChange={(newValue) => {\n updatePersonalInfoViewModel(\"phoneNumber\", newValue);\n updateFieldValidationErrorsByFieldId(\"phoneNumber\", newValue, verificationService);\n }}\n selectedCountryCode={viewModel.countryChoice && viewModel.countryChoice.value}\n disabled={getFieldConfigByFieldId(\"phoneNumber\")?.disabled}\n />\n )}\n\n {isFieldRequired(\"address1\") && (\n <AddressComponent\n value={viewModel.address1}\n isRequired\n isErrored={!!fieldValidationErrors.address1}\n errorId={fieldValidationErrors.address1}\n disabled={getFieldConfigByFieldId(\"address1\")?.disabled}\n onChange={(value) => {\n updatePersonalInfoViewModel(\"address1\", value);\n updateFieldValidationErrorsByFieldId(\"address1\", value, verificationService);\n }}\n />\n )}\n\n {isFieldRequired(\"city\") && (\n <CityComponent\n value={viewModel.city}\n isRequired\n isErrored={!!fieldValidationErrors.city}\n errorId={fieldValidationErrors.city}\n disabled={getFieldConfigByFieldId(\"city\")?.disabled}\n onChange={(newValue) => {\n updatePersonalInfoViewModel(\"city\", newValue);\n updateFieldValidationErrorsByFieldId(\"city\", newValue, verificationService);\n }}\n />\n )}\n\n {isFieldRequired(\"dischargeDate\") && (\n <DischargeDateComponent\n errorId={fieldValidationErrors.dischargeDate}\n locale={locale}\n onChange={(newValue) => {\n updatePersonalInfoViewModel(\"dischargeDate\", newValue);\n updateFieldValidationErrorsByFieldId(\"dischargeDate\", newValue, verificationService);\n }}\n value={viewModel.dischargeDate}\n disabled={getFieldConfigByFieldId(\"dischargeDate\")?.disabled}\n />\n )}\n\n {isFieldRequired(\"driverLicenseNumber\") && (\n <DriverLicenseNumber\n value={viewModel.driverLicenseNumber}\n isErrored={!!fieldValidationErrors.driverLicenseNumber}\n isRequired\n disabled={getFieldConfigByFieldId(\"driverLicenseNumber\")?.disabled}\n onChange={(newValue) => {\n updatePersonalInfoViewModel(\"driverLicenseNumber\", newValue);\n updateFieldValidationErrorsByFieldId(\n \"driverLicenseNumber\",\n newValue,\n verificationService,\n );\n }}\n />\n )}\n\n {isFieldRequired(\"ebtCardNumber\") && (\n <EBTCardNumberComponent\n value={viewModel.ebtCardNumber}\n isErrored={!!fieldValidationErrors.ebtCardNumber}\n disabled={getFieldConfigByFieldId(\"ebtCardNumber\")?.disabled}\n onChange={(newValue) => {\n updatePersonalInfoViewModel(\"ebtCardNumber\", newValue);\n updateFieldValidationErrorsByFieldId(\"ebtCardNumber\", newValue, verificationService);\n }}\n />\n )}\n\n {isFieldRequired(\"memberId\") && (\n <MemberId\n value={viewModel.memberId}\n isErrored={!!fieldValidationErrors.memberId}\n isRequired={getFieldConfigByFieldId(\"memberId\")?.requireIfOptional}\n disabled={getFieldConfigByFieldId(\"memberId\")?.disabled}\n onChange={(newValue) => {\n updatePersonalInfoViewModel(\"memberId\", newValue);\n updateFieldValidationErrorsByFieldId(\"memberId\", newValue, verificationService);\n }}\n label={\n <FormattedHTMLMessage\n id=\"step.collectMedicalPersonalInfo.registrationNumberLabel\"\n defaultMessage=\"Registration Number\"\n />\n }\n />\n )}\n\n {isFieldRequired(\"postalCode\") && (\n <PostalCodeComponent\n isErrored={!!fieldValidationErrors.postalCode}\n onChange={(newValue) => {\n updatePersonalInfoViewModel(\"postalCode\", newValue);\n updateFieldValidationErrorsByFieldId(\"postalCode\", newValue, verificationService);\n }}\n value={viewModel.postalCode}\n disabled={getFieldConfigByFieldId(\"postalCode\")?.disabled}\n />\n )}\n\n {isFieldRequired(\"socialSecurityNumber\") && (\n <div className=\"sid-ssn-wrapper\">\n <SocialSecurityNumber\n value={viewModel.socialSecurityNumber}\n onChange={(value: string) => {\n updatePersonalInfoViewModel(\"socialSecurityNumber\", value);\n updateFieldValidationErrorsByFieldId(\n \"socialSecurityNumber\",\n value,\n verificationService,\n );\n }}\n isErrored={!!fieldValidationErrors[FieldIdEnum.socialSecurityNumber]}\n placeholder=\"000-00-0000\"\n disabled={getFieldConfigByFieldId(\"socialSecurityNumber\")?.disabled}\n />\n </div>\n )}\n\n {isFieldRequired(\"state\") && (\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 updatePersonalInfoViewModel(\"state\", stateValue);\n updateFieldValidationErrorsByFieldId(\"state\", stateValue, verificationService);\n }}\n label={<FormattedHTMLMessage id=\"state\" defaultMessage=\"State\" />}\n disabled={getFieldConfigByFieldId(\"state\")?.disabled}\n />\n )}\n\n {isFieldRequired(\"activeDutyStartDate\") &&\n verificationService.programTheme.strictMilitaryValidationEnabled && (\n <ActiveDutyStartDateComponent\n errorId={fieldValidationErrors.activeDutyStartDate}\n locale={locale}\n onChange={(newValue) => {\n updatePersonalInfoViewModel(\"activeDutyStartDate\", newValue);\n updateFieldValidationErrorsByFieldId(\n \"activeDutyStartDate\",\n newValue,\n verificationService,\n );\n }}\n value={viewModel.activeDutyStartDate}\n disabled={getFieldConfigByFieldId(\"activeDutyStartDate\")?.disabled}\n />\n )}\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 updatePersonalInfoViewModel(\"metadata\", {\n ...verificationService.viewModel.metadata,\n marketConsentValue: newValue,\n });\n updateFieldValidationErrorsByFieldId(\n \"marketConsentValue\",\n newValue,\n verificationService,\n );\n }}\n viewModel={viewModel}\n disabled={getFieldConfigByFieldId(\"marketConsentValue\")?.disabled}\n />\n\n <ExtraMessage verificationService={verificationService} suffix=\"CollectAboveSubmit\" />\n\n <PersonalInfoStepSubmitButton\n step={VerificationStepsEnum.collectPersonalInfo}\n verificationService={verificationService}\n viewModel={viewModel}\n failedInstantMatch={failedInstantMatch}\n buttonText={\n <FormattedHTMLMessage\n id=\"step.personalInfo.submitButtonText\"\n defaultMessage=\"Verify and continue\"\n />\n }\n />\n </div>\n <FormFooter verificationService={verificationService} />\n </div>\n );\n};\n\nexport const StepCollectPersonalInfoComponent = injectIntl(StepCollectPersonalInfo);\n"],"names":["StepCollectPersonalInfo","intl","verificationService","viewModel","updateViewModel","programTheme","requiredFields","setRequiredFields","React","isFieldRequired","key","field","fieldValidationErrors","verificationResponse","failedInstantMatch","hasFailedInstantMatch","updatePersonalInfoViewModel","value","nextState","produce","draft","updateViewModelWithRequiredFields","newRequiredFields","produceDraftViewModelWithAllRequiredFields","locale","options","getOptions","segment","availableStatuses","pascalCaseSegment","isStatusRequired","SegmentEnum","getAndSetRequiredFields","requestBody","collectFieldsResponse","getAllFieldsToCollect","getSafe","error","logger","getOrganizationField","jsx","CollegeName","getFieldConfigByFieldId","choice","updateViewModelOrganization","updateFieldValidationErrorsByFieldId","TeacherSchool","MembershipOrganization","BranchOfService","FirstResponderOrganization","MedicalProfessionalOrganization","LicensedProfessionalOrganization","LowIncomeOrganization","orgToOption","getMarketConsent","submitForm","VerificationStepsEnum","jsxs","PersonalInfoHeader","CountryComponentWrapper","Status","getStatusLabel","getAvailableStatuses","status","FirstName","newValue","LastName","BirthDate","Email","event","handleEmailOnKeyDown","PhoneNumber","AddressComponent","CityComponent","DischargeDateComponent","DriverLicenseNumber","EBTCardNumberComponent","MemberId","FormattedHTMLMessage","PostalCodeComponent","SocialSecurityNumber","FieldIdEnum","StateSelectComponent","getAvailableStateChoices","stateChoice","stateValue","ActiveDutyStartDateComponent","config","FormFieldCustom","MarketConsentWrapper","ExtraMessage","PersonalInfoStepSubmitButton","FormFooter","StepCollectPersonalInfoComponent","injectIntl"],"mappings":";;;;AAwEO,MAAMA,KAA0B,CAAC;AAAA,EACtC,MAAAC;AAAA,EACA,qBAAAC;AACF,MAAoC;AAClC,QAAMC,IAAYD,EAAoB,WAChC,EAAE,iBAAAE,GAAiB,cAAAC,EAAA,IAAiBH,GAEpC,CAACI,GAAgBC,CAAiB,IAAIC,EAAM,SAA6B,MAAS,GAElFC,IAAkB,CAACC,MACvBJ,KAAkBA,EAAe,KAAK,CAACK,MAAUA,EAAM,QAAQD,CAAG,GAE9D,EAAE,uBAAAE,MAA0BV,GAC5BW,IACJX,EAAoB,sBAChBY,IAAqBC,EAAsBF,CAAoB,GAE/DG,IAA8B,CAACN,GAAyCO,MAAe;AAC3F,UAAMC,IAA0CC;AAAAA,MAC9ChB;AAAA,MACA,CAACiB,MAAwC;AACtC,QAAAA,EAAMV,CAAG,IAAYO;AAAA,MACxB;AAAA,IAAA;AAEF,IAAAb,EAAgBc,CAAS;AAAA,EAC3B,GAEMG,IAAoC,CAACC,MAA0C;AACnF,UAAMJ,IAA0CK;AAAA,MAC9CpB;AAAA,MACAmB;AAAA,IAAA;AAEF,IAAAlB,EAAgBc,CAAS;AAAA,EAC3B,GAEMM,IAASrB,EAAU,aAAa,OAChCsB,IAAUC,EAAA,GAEV,EAAE,SAAAC,GAAS,mBAAAC,EAAA,IAAsBf,GACjCgB,IAAoBF,EAAQ,OAAO,CAAC,EAAE,gBAAgBA,EAAQ,MAAM,CAAC,GAErEG,IAAmB,MACvBF,MACCD,MAAYI,EAAY,mBACvBJ,MAAYI,EAAY,WACxBJ,MAAYI,EAAY,cACxBJ,MAAYI,EAAY,yBACxBJ,M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AgB,qBAAArF,EAAA,CAA0C,CAC5E;AAAA,UAEDsC,gBAAAA,EAAAA;AAAAA,YAACiD;AAAAA,YAAA;AAAA,cACC,qBAAAvF;AAAA,cACA,WAAW,CAAC,CAACU,EAAsB;AAAA,cACnC,UAAU,CAACqD,MAAa;AACtB,gBAAAjD,EAA4B,YAAY;AAAA,kBACtC,GAAGd,EAAoB,UAAU;AAAA,kBACjC,oBAAoB+D;AAAA,gBAAA,CACrB,GACDpB;AAAA,kBACE;AAAA,kBACAoB;AAAA,kBACA/D;AAAA,gBAAA;AAAA,cAEJ;AAAA,cACA,WAAAC;AAAA,cACA,UAAUuC,EAAwB,oBAAoB,GAAG;AAAA,YAAA;AAAA,UAAA;AAAA,UAG3DF,gBAAAA,EAAAA,IAACkD,IAAA,EAAa,qBAAAxF,GAA0C,QAAO,qBAAA,CAAqB;AAAA,UAEpFsC,gBAAAA,EAAAA;AAAAA,YAACmD;AAAA,YAAA;AAAA,cACC,MAAMnC,EAAsB;AAAA,cAC5B,qBAAAtD;AAAA,cACA,WAAAC;AAAA,cACA,oBAAAW;AAAA,cACA,YACE0B,gBAAAA,EAAAA;AAAAA,gBAACsC;AAAA,gBAAA;AAAA,kBACC,IAAG;AAAA,kBACH,gBAAe;AAAA,gBAAA;AAAA,cAAA;AAAA,YACjB;AAAA,UAAA;AAAA,QAEJ,GACF;AAAA,QACAtC,gBAAAA,MAACoD,MAAW,qBAAA1F,EAAA,CAA0C;AAAA,MAAA;AAAA,IAAA;AAAA,EAAA;AAG5D,GAEa2F,KAAmCC,GAAW9F,EAAuB;"}
|
|
1
|
+
{"version":3,"file":"index-DCsucVhN.js","sources":["../../src/components/StepCollectPersonalInfo/StepCollectPersonalInfoComponent.tsx"],"sourcesContent":["import React from \"react\";\n\nimport produce from \"immer\";\nimport { FormattedHTMLMessage, InjectedIntl, injectIntl } from \"react-intl\";\nimport { hasFailedInstantMatch } from \"../../lib/VerificationService/VerificationServiceHelpers\";\nimport {\n VerificationService,\n CollectPersonalInfoViewModel,\n CustomFormFieldConfig,\n Organization,\n FormSelectChoice,\n State,\n CollectFieldsResponse,\n CollectPersonalInfoResponse,\n FieldDescription,\n AllStatuses,\n} from \"../../lib/types/types\";\nimport {\n getAvailableStateChoices,\n orgToOption,\n getStatusLabel,\n handleEmailOnKeyDown,\n submitForm,\n updateFieldValidationErrorsByFieldId,\n updateViewModelOrganization,\n produceDraftViewModelWithAllRequiredFields,\n getAvailableStatuses,\n getFieldConfigByFieldId,\n} from \"../../lib/utils/stepComponentHelpers/stepComponentHelpers\";\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 { FormFooterComponent as FormFooter } from \"../FormFooter/FormFooterComponent\";\nimport { CountryComponentWrapper } from \"../FormFields/Country/CountryComponentWrapper\";\nimport { getOptions } from \"../../options/options\";\nimport { FormFieldCustom } from \"../FormFields/FormFieldCustom/FormFieldCustom\";\nimport { ExtraMessage } from \"../ExtraMessage\";\nimport { FieldIdEnum, SegmentEnum, VerificationStepsEnum } from \"../../lib/types/runtimeTypes\";\nimport { CityComponent } from \"../FormFields/City/City\";\nimport { StateSelectComponent } from \"../FormFields/State/StateSelectComponent\";\nimport { PostalCodeComponent } from \"../FormFields/PostalCode/PostalCodeComponent\";\nimport { AddressComponent } from \"../FormFields/Address/AddressComponent\";\nimport { ActiveDutyStartDateComponent } from \"../FormFields/ActiveDutyStartDate/ActiveDutyStartDateComponent\";\nimport { BranchOfServiceComponent as BranchOfService } from \"../FormFields/BranchOfService/BranchOfServiceComponent\";\nimport { DriverLicenseNumberComponent as DriverLicenseNumber } from \"../FormFields/DriverLicenseNumber/DriverLicenseNumberComponent\";\nimport { EBTCardNumberComponent } from \"../FormFields/EBTCardNumber/EBTCardNumberComponent\";\nimport { StatusComponent as Status } from \"../FormFields/Status/StatusComponent\";\nimport { LowIncomeOrganizationComponent as LowIncomeOrganization } from \"../FormFields/LowIncomeOrganization/LowIncomeOrganizationComponent\";\nimport { FirstResponderOrganizationComponent as FirstResponderOrganization } from \"../FormFields/FirstResponderOrganization/FirstResponderOrganizationComponent\";\nimport { LicensedProfessionalOrganizationComponent as LicensedProfessionalOrganization } from \"../FormFields/LicensedProfessionalOrganization/LicensedProfessionalOrganizationComponent\";\nimport { MedicalProfessionalOrganizationComponent as MedicalProfessionalOrganization } from \"../FormFields/MedicalProfessionalOrganization/MedicalProfessionalOrganizationComponent\";\nimport { MemberIdComponent as MemberId } from \"../FormFields/MemberId/MemberIdComponent\";\nimport { MembershipOrganizationComponent as MembershipOrganization } from \"../FormFields/MembershipOrganization/MembershipOrganizationComponent\";\nimport { TeacherSchoolComponent as TeacherSchool } from \"../FormFields/TeacherSchool/TeacherSchoolComponent\";\nimport { SocialSecurityNumber } from \"../FormFields/SSN/SSN\";\nimport { DischargeDateComponent } from \"../FormFields/DischargeDate/DischargeDateComponent\";\nimport { getAllFieldsToCollect } from \"../../lib/ServerApi/VerificationApiClient\";\nimport { getSafe } from \"../../lib/utils/getSafe\";\nimport { logger } from \"../../lib/utils/logger/logger\";\nimport { getMarketConsent } from \"../../lib/ProgramTheme/programThemeGetters\";\nimport { PersonalInfoHeader } from \"../FormHeader/StepHeaders/PersonalInfoHeaderComponent\";\nimport { PersonalInfoStepSubmitButton } from \"../PersonalInfoStepSubmitButton/PersonalInfoStepSubmitButton\";\n\ninterface StepCollectPersonalInfoProps {\n intl: InjectedIntl;\n verificationService: VerificationService;\n}\n\nexport const StepCollectPersonalInfo = ({\n intl,\n verificationService,\n}: StepCollectPersonalInfoProps) => {\n const viewModel = verificationService.viewModel as CollectPersonalInfoViewModel;\n const { updateViewModel, programTheme } = verificationService;\n\n const [requiredFields, setRequiredFields] = React.useState<FieldDescription[]>(undefined);\n\n const isFieldRequired = (key: keyof CollectPersonalInfoViewModel) =>\n requiredFields && requiredFields.some((field) => field.key === key);\n\n const { fieldValidationErrors } = verificationService;\n const verificationResponse =\n verificationService.verificationResponse as CollectPersonalInfoResponse;\n const failedInstantMatch = hasFailedInstantMatch(verificationResponse);\n\n const updatePersonalInfoViewModel = (key: keyof CollectPersonalInfoViewModel, value: any) => {\n const nextState: CollectPersonalInfoViewModel = produce(\n viewModel,\n (draft: CollectPersonalInfoViewModel) => {\n (draft[key] as any) = value;\n },\n );\n updateViewModel(nextState);\n };\n\n const updateViewModelWithRequiredFields = (newRequiredFields: FieldDescription[]) => {\n const nextState: CollectPersonalInfoViewModel = produceDraftViewModelWithAllRequiredFields(\n viewModel,\n newRequiredFields,\n );\n updateViewModel(nextState);\n };\n\n const locale = viewModel.localeChoice.value;\n const options = getOptions();\n\n const { segment, availableStatuses } = verificationResponse;\n const pascalCaseSegment = segment.charAt(0).toUpperCase() + segment.slice(1);\n\n const isStatusRequired = (): boolean =>\n availableStatuses &&\n (segment === SegmentEnum.FIRST_RESPONDER ||\n segment === SegmentEnum.MEDICAL ||\n segment === SegmentEnum.LOW_INCOME ||\n segment === SegmentEnum.LICENSED_PROFESSIONAL ||\n segment === SegmentEnum.EMPLOYMENT ||\n segment === SegmentEnum.RECENT_MOVER ||\n segment === SegmentEnum.MILITARY);\n\n const getAndSetRequiredFields = (requestBody: { statuses?: AllStatuses[] }) =>\n (async () => {\n try {\n const collectFieldsResponse: CollectFieldsResponse = await getAllFieldsToCollect(\n verificationResponse.verificationId,\n verificationResponse.currentStep,\n requestBody,\n );\n const newRequiredFields = getSafe(() => collectFieldsResponse.fieldsToCollect.required, []);\n\n if (isStatusRequired()) {\n // Adding `status` as a required input field if it's been removed by getting\n // all fields to collect with a statuses req body\n newRequiredFields.push({ key: \"status\" });\n }\n\n updateViewModelWithRequiredFields(newRequiredFields);\n setRequiredFields(newRequiredFields);\n } catch (error) {\n logger.error(`Failed to determine fields to collect: ${error}`);\n }\n })();\n\n const getOrganizationField = () => {\n switch (segment) {\n case SegmentEnum.STUDENT:\n return (\n <CollegeName\n value={(verificationService.viewModel as CollectPersonalInfoViewModel).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 );\n case SegmentEnum.TEACHER:\n return (\n <TeacherSchool\n value={(verificationService.viewModel as CollectPersonalInfoViewModel).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 case SegmentEnum.MEMBER:\n return (\n <MembershipOrganization\n value={(verificationService.viewModel as CollectPersonalInfoViewModel).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 case SegmentEnum.MILITARY:\n return (\n <BranchOfService\n isErrored={!!fieldValidationErrors.organization}\n onChange={(choice: Organization) => {\n updateViewModelOrganization(choice, verificationService);\n updateFieldValidationErrorsByFieldId(\"organization\", choice, verificationService);\n }}\n value={{\n value: getSafe(\n () =>\n (verificationService.viewModel as CollectPersonalInfoViewModel).organization.id,\n ),\n label: getSafe(\n () =>\n (verificationService.viewModel as CollectPersonalInfoViewModel).organization.name,\n ),\n }}\n verificationService={verificationService}\n disabled={getFieldConfigByFieldId(\"organization\")?.disabled}\n />\n );\n case SegmentEnum.FIRST_RESPONDER:\n return (\n <FirstResponderOrganization\n isErrored={!!fieldValidationErrors.organization}\n onChange={(choice: Organization) => {\n updateViewModelOrganization(choice, verificationService);\n updateFieldValidationErrorsByFieldId(\"organization\", choice, verificationService);\n }}\n value={(verificationService.viewModel as CollectPersonalInfoViewModel).organization}\n verificationService={verificationService}\n disabled={getFieldConfigByFieldId(\"organization\")?.disabled}\n />\n );\n case SegmentEnum.MEDICAL:\n return (\n <MedicalProfessionalOrganization\n isErrored={!!fieldValidationErrors.organization}\n onChange={(choice: Organization) => {\n updateViewModelOrganization(choice, verificationService);\n updateFieldValidationErrorsByFieldId(\"organization\", choice, verificationService);\n }}\n value={(verificationService.viewModel as CollectPersonalInfoViewModel).organization}\n verificationService={verificationService}\n disabled={getFieldConfigByFieldId(\"organization\")?.disabled}\n />\n );\n case SegmentEnum.LICENSED_PROFESSIONAL:\n return (\n <LicensedProfessionalOrganization\n isErrored={!!fieldValidationErrors.organization}\n onChange={(choice: Organization) => {\n updateViewModelOrganization(choice, verificationService);\n updateFieldValidationErrorsByFieldId(\"organization\", choice, verificationService);\n }}\n value={(verificationService.viewModel as CollectPersonalInfoViewModel).organization}\n verificationService={verificationService}\n disabled={getFieldConfigByFieldId(\"organization\")?.disabled}\n />\n );\n case SegmentEnum.LOW_INCOME:\n return (\n <LowIncomeOrganization\n isErrored={!!fieldValidationErrors.organization}\n onChange={(choice: Organization) => {\n updateViewModelOrganization(choice, verificationService);\n updateFieldValidationErrorsByFieldId(\"organization\", choice, verificationService);\n }}\n value={orgToOption(\n (verificationService.viewModel as CollectPersonalInfoViewModel).organization,\n )}\n verificationService={verificationService}\n isRequired\n disabled={getFieldConfigByFieldId(\"organization\")?.disabled}\n />\n );\n default:\n return null;\n }\n };\n\n React.useEffect(() => {\n if (availableStatuses && segment === SegmentEnum.MILITARY) {\n // display all required military fields by setting an initial default status\n getAndSetRequiredFields({ statuses: [] });\n } else {\n // fetch initial list of required input fields\n getAndSetRequiredFields({});\n }\n }, []);\n\n React.useEffect(() => {\n if (!getMarketConsent(programTheme).enabled && requiredFields && requiredFields.length === 0) {\n // skip this step if there are no required fields, and marketConsent is not enabled\n submitForm(viewModel, verificationService, VerificationStepsEnum.collectPersonalInfo);\n }\n }, [requiredFields]);\n\n React.useEffect(() => {\n if (viewModel.status) {\n // if status changes, re-fetch required fields because they may have changed based on selected status\n getAndSetRequiredFields({ statuses: [viewModel.status] });\n }\n }, [viewModel.status]);\n\n return (\n <div\n id=\"sid-step-personal-info-personal-info\"\n className=\"sid-personal-info-container sid-l-container\"\n >\n <div role=\"main\">\n <PersonalInfoHeader\n verificationService={verificationService}\n classNameIdentifier=\"personal-info\"\n />\n\n <CountryComponentWrapper\n verificationService={verificationService}\n disabled={getFieldConfigByFieldId(\"country\")?.disabled}\n />\n\n {isStatusRequired() && (\n <Status\n segmentId={segment}\n value={{\n value: viewModel.status,\n label: getStatusLabel(intl, viewModel.status, null),\n }}\n isErrored={!!fieldValidationErrors.status}\n errorId={`invalid${pascalCaseSegment}Status`}\n options={getAvailableStatuses(intl, availableStatuses)}\n disabled={getFieldConfigByFieldId(\"status\")?.disabled}\n onChange={(status: FormSelectChoice) => {\n updatePersonalInfoViewModel(\"status\", status ? (status.value as string) : \"\");\n updateFieldValidationErrorsByFieldId(\n \"status\",\n status ? (status.value as string) : \"\",\n verificationService,\n );\n }}\n />\n )}\n\n {isFieldRequired(\"organization\") && getOrganizationField()}\n\n <div className=\"sid-names\">\n {isFieldRequired(\"firstName\") && (\n <FirstName\n value={viewModel.firstName}\n isErrored={!!fieldValidationErrors.firstName}\n disabled={getFieldConfigByFieldId(\"firstName\")?.disabled}\n onChange={(newValue) => {\n updatePersonalInfoViewModel(\"firstName\", newValue);\n updateFieldValidationErrorsByFieldId(\"firstName\", newValue, verificationService);\n }}\n />\n )}\n\n {isFieldRequired(\"lastName\") && (\n <LastName\n value={viewModel.lastName}\n isErrored={!!fieldValidationErrors.lastName}\n disabled={getFieldConfigByFieldId(\"lastName\")?.disabled}\n onChange={(newValue) => {\n updatePersonalInfoViewModel(\"lastName\", newValue);\n updateFieldValidationErrorsByFieldId(\"lastName\", newValue, verificationService);\n }}\n />\n )}\n </div>\n\n {isFieldRequired(\"birthDate\") && (\n <BirthDate\n value={viewModel.birthDate}\n errorId={fieldValidationErrors.birthDate}\n locale={locale}\n isRequired\n disabled={getFieldConfigByFieldId(\"birthDate\")?.disabled}\n onChange={(newValue) => {\n updatePersonalInfoViewModel(\"birthDate\", newValue);\n updateFieldValidationErrorsByFieldId(\"birthDate\", newValue, verificationService);\n }}\n />\n )}\n\n {isFieldRequired(\"email\") && (\n <Email\n value={viewModel.email}\n isErrored={!!fieldValidationErrors.email}\n explanation=\" \"\n onChange={(newValue) => {\n updatePersonalInfoViewModel(\"email\", newValue);\n updateFieldValidationErrorsByFieldId(\"email\", newValue, verificationService);\n }}\n onKeyDown={(event) => handleEmailOnKeyDown(event)}\n disabled={getFieldConfigByFieldId(\"email\")?.disabled}\n />\n )}\n\n {isFieldRequired(\"phoneNumber\") && (\n <PhoneNumber\n isRequired={!!verificationService.programTheme.smsLoopEnabled}\n value={viewModel.phoneNumber}\n isErrored={!!fieldValidationErrors.phoneNumber}\n onChange={(newValue) => {\n updatePersonalInfoViewModel(\"phoneNumber\", newValue);\n updateFieldValidationErrorsByFieldId(\"phoneNumber\", newValue, verificationService);\n }}\n selectedCountryCode={viewModel.countryChoice && viewModel.countryChoice.value}\n disabled={getFieldConfigByFieldId(\"phoneNumber\")?.disabled}\n />\n )}\n\n {isFieldRequired(\"address1\") && (\n <AddressComponent\n value={viewModel.address1}\n isRequired\n isErrored={!!fieldValidationErrors.address1}\n errorId={fieldValidationErrors.address1}\n disabled={getFieldConfigByFieldId(\"address1\")?.disabled}\n onChange={(value) => {\n updatePersonalInfoViewModel(\"address1\", value);\n updateFieldValidationErrorsByFieldId(\"address1\", value, verificationService);\n }}\n />\n )}\n\n {isFieldRequired(\"city\") && (\n <CityComponent\n value={viewModel.city}\n isRequired\n isErrored={!!fieldValidationErrors.city}\n errorId={fieldValidationErrors.city}\n disabled={getFieldConfigByFieldId(\"city\")?.disabled}\n onChange={(newValue) => {\n updatePersonalInfoViewModel(\"city\", newValue);\n updateFieldValidationErrorsByFieldId(\"city\", newValue, verificationService);\n }}\n />\n )}\n\n {isFieldRequired(\"dischargeDate\") && (\n <DischargeDateComponent\n errorId={fieldValidationErrors.dischargeDate}\n locale={locale}\n onChange={(newValue) => {\n updatePersonalInfoViewModel(\"dischargeDate\", newValue);\n updateFieldValidationErrorsByFieldId(\"dischargeDate\", newValue, verificationService);\n }}\n value={viewModel.dischargeDate}\n disabled={getFieldConfigByFieldId(\"dischargeDate\")?.disabled}\n />\n )}\n\n {isFieldRequired(\"driverLicenseNumber\") && (\n <DriverLicenseNumber\n value={viewModel.driverLicenseNumber}\n isErrored={!!fieldValidationErrors.driverLicenseNumber}\n isRequired\n disabled={getFieldConfigByFieldId(\"driverLicenseNumber\")?.disabled}\n onChange={(newValue) => {\n updatePersonalInfoViewModel(\"driverLicenseNumber\", newValue);\n updateFieldValidationErrorsByFieldId(\n \"driverLicenseNumber\",\n newValue,\n verificationService,\n );\n }}\n />\n )}\n\n {isFieldRequired(\"ebtCardNumber\") && (\n <EBTCardNumberComponent\n value={viewModel.ebtCardNumber}\n isErrored={!!fieldValidationErrors.ebtCardNumber}\n disabled={getFieldConfigByFieldId(\"ebtCardNumber\")?.disabled}\n onChange={(newValue) => {\n updatePersonalInfoViewModel(\"ebtCardNumber\", newValue);\n updateFieldValidationErrorsByFieldId(\"ebtCardNumber\", newValue, verificationService);\n }}\n />\n )}\n\n {isFieldRequired(\"memberId\") && (\n <MemberId\n value={viewModel.memberId}\n isErrored={!!fieldValidationErrors.memberId}\n isRequired={getFieldConfigByFieldId(\"memberId\")?.requireIfOptional}\n disabled={getFieldConfigByFieldId(\"memberId\")?.disabled}\n onChange={(newValue) => {\n updatePersonalInfoViewModel(\"memberId\", newValue);\n updateFieldValidationErrorsByFieldId(\"memberId\", newValue, verificationService);\n }}\n label={\n <FormattedHTMLMessage\n id=\"step.collectMedicalPersonalInfo.registrationNumberLabel\"\n defaultMessage=\"Registration Number\"\n />\n }\n />\n )}\n\n {isFieldRequired(\"postalCode\") && (\n <PostalCodeComponent\n isErrored={!!fieldValidationErrors.postalCode}\n onChange={(newValue) => {\n updatePersonalInfoViewModel(\"postalCode\", newValue);\n updateFieldValidationErrorsByFieldId(\"postalCode\", newValue, verificationService);\n }}\n value={viewModel.postalCode}\n disabled={getFieldConfigByFieldId(\"postalCode\")?.disabled}\n />\n )}\n\n {isFieldRequired(\"socialSecurityNumber\") && (\n <div className=\"sid-ssn-wrapper\">\n <SocialSecurityNumber\n value={viewModel.socialSecurityNumber}\n onChange={(value: string) => {\n updatePersonalInfoViewModel(\"socialSecurityNumber\", value);\n updateFieldValidationErrorsByFieldId(\n \"socialSecurityNumber\",\n value,\n verificationService,\n );\n }}\n isErrored={!!fieldValidationErrors[FieldIdEnum.socialSecurityNumber]}\n placeholder=\"000-00-0000\"\n disabled={getFieldConfigByFieldId(\"socialSecurityNumber\")?.disabled}\n />\n </div>\n )}\n\n {isFieldRequired(\"state\") && (\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 updatePersonalInfoViewModel(\"state\", stateValue);\n updateFieldValidationErrorsByFieldId(\"state\", stateValue, verificationService);\n }}\n label={<FormattedHTMLMessage id=\"state\" defaultMessage=\"State\" />}\n disabled={getFieldConfigByFieldId(\"state\")?.disabled}\n />\n )}\n\n {isFieldRequired(\"activeDutyStartDate\") &&\n verificationService.programTheme.strictMilitaryValidationEnabled && (\n <ActiveDutyStartDateComponent\n errorId={fieldValidationErrors.activeDutyStartDate}\n locale={locale}\n onChange={(newValue) => {\n updatePersonalInfoViewModel(\"activeDutyStartDate\", newValue);\n updateFieldValidationErrorsByFieldId(\n \"activeDutyStartDate\",\n newValue,\n verificationService,\n );\n }}\n value={viewModel.activeDutyStartDate}\n disabled={getFieldConfigByFieldId(\"activeDutyStartDate\")?.disabled}\n />\n )}\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 updatePersonalInfoViewModel(\"metadata\", {\n ...verificationService.viewModel.metadata,\n marketConsentValue: newValue,\n });\n updateFieldValidationErrorsByFieldId(\n \"marketConsentValue\",\n newValue,\n verificationService,\n );\n }}\n viewModel={viewModel}\n disabled={getFieldConfigByFieldId(\"marketConsentValue\")?.disabled}\n />\n\n <ExtraMessage verificationService={verificationService} suffix=\"CollectAboveSubmit\" />\n\n <PersonalInfoStepSubmitButton\n step={VerificationStepsEnum.collectPersonalInfo}\n verificationService={verificationService}\n viewModel={viewModel}\n failedInstantMatch={failedInstantMatch}\n buttonText={\n <FormattedHTMLMessage\n id=\"step.personalInfo.submitButtonText\"\n defaultMessage=\"Verify and continue\"\n />\n }\n />\n </div>\n <FormFooter verificationService={verificationService} />\n </div>\n );\n};\n\nexport const StepCollectPersonalInfoComponent = injectIntl(StepCollectPersonalInfo);\n"],"names":["StepCollectPersonalInfo","intl","verificationService","viewModel","updateViewModel","programTheme","requiredFields","setRequiredFields","React","isFieldRequired","key","field","fieldValidationErrors","verificationResponse","failedInstantMatch","hasFailedInstantMatch","updatePersonalInfoViewModel","value","nextState","produce","draft","updateViewModelWithRequiredFields","newRequiredFields","produceDraftViewModelWithAllRequiredFields","locale","options","getOptions","segment","availableStatuses","pascalCaseSegment","isStatusRequired","SegmentEnum","getAndSetRequiredFields","requestBody","collectFieldsResponse","getAllFieldsToCollect","getSafe","error","logger","getOrganizationField","jsx","CollegeName","getFieldConfigByFieldId","choice","updateViewModelOrganization","updateFieldValidationErrorsByFieldId","TeacherSchool","MembershipOrganization","BranchOfService","FirstResponderOrganization","MedicalProfessionalOrganization","LicensedProfessionalOrganization","LowIncomeOrganization","orgToOption","getMarketConsent","submitForm","VerificationStepsEnum","jsxs","PersonalInfoHeader","CountryComponentWrapper","Status","getStatusLabel","getAvailableStatuses","status","FirstName","newValue","LastName","BirthDate","Email","event","handleEmailOnKeyDown","PhoneNumber","AddressComponent","CityComponent","DischargeDateComponent","DriverLicenseNumber","EBTCardNumberComponent","MemberId","FormattedHTMLMessage","PostalCodeComponent","SocialSecurityNumber","FieldIdEnum","StateSelectComponent","getAvailableStateChoices","stateChoice","stateValue","ActiveDutyStartDateComponent","config","FormFieldCustom","MarketConsentWrapper","ExtraMessage","PersonalInfoStepSubmitButton","FormFooter","StepCollectPersonalInfoComponent","injectIntl"],"mappings":";;;;AAwEO,MAAMA,KAA0B,CAAC;AAAA,EACtC,MAAAC;AAAA,EACA,qBAAAC;AACF,MAAoC;AAClC,QAAMC,IAAYD,EAAoB,WAChC,EAAE,iBAAAE,GAAiB,cAAAC,EAAA,IAAiBH,GAEpC,CAACI,GAAgBC,CAAiB,IAAIC,EAAM,SAA6B,MAAS,GAElFC,IAAkB,CAACC,MACvBJ,KAAkBA,EAAe,KAAK,CAACK,MAAUA,EAAM,QAAQD,CAAG,GAE9D,EAAE,uBAAAE,MAA0BV,GAC5BW,IACJX,EAAoB,sBAChBY,IAAqBC,EAAsBF,CAAoB,GAE/DG,IAA8B,CAACN,GAAyCO,MAAe;AAC3F,UAAMC,IAA0CC;AAAAA,MAC9ChB;AAAA,MACA,CAACiB,MAAwC;AACtC,QAAAA,EAAMV,CAAG,IAAYO;AAAA,MACxB;AAAA,IAAA;AAEF,IAAAb,EAAgBc,CAAS;AAAA,EAC3B,GAEMG,IAAoC,CAACC,MAA0C;AACnF,UAAMJ,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BAAAA,MAACoD,MAAW,qBAAA1F,EAAA,CAA0C;AAAA,MAAA;AAAA,IAAA;AAAA,EAAA;AAG5D,GAEa2F,KAAmCC,GAAW9F,EAAuB;"}
|
package/lib/index-DIkWpujR.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.163.0
|
|
4
|
+
* BUILD_TIMESTAMP: 1769033492093
|
|
5
|
+
* BUILD_DATE: Wed Jan 21 2026 22:11:32 GMT+0000 (Coordinated Universal Time)
|
|
6
|
+
* BUILD_COMMIT: 526598cd626c99a81604fb961b44e4fe5fc98f76
|
|
7
7
|
*/
|
|
8
8
|
const v = () => {
|
|
9
9
|
let m = window.hp_frame || null, d = window.tmx_frame || null, f = window.tmx_script || null;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
|
|
2
2
|
/**
|
|
3
|
-
* VERSION: 2.
|
|
4
|
-
* BUILD_TIMESTAMP:
|
|
5
|
-
* BUILD_DATE:
|
|
6
|
-
* BUILD_COMMIT:
|
|
3
|
+
* VERSION: 2.163.0
|
|
4
|
+
* BUILD_TIMESTAMP: 1769033492093
|
|
5
|
+
* BUILD_DATE: Wed Jan 21 2026 22:11:32 GMT+0000 (Coordinated Universal Time)
|
|
6
|
+
* BUILD_COMMIT: 526598cd626c99a81604fb961b44e4fe5fc98f76
|
|
7
7
|
*/
|
|
8
|
-
import { aQ as ee, aR as te, aS as jt, aT as Dt, aU as h, j as t, aV as n, aH as u, ak as ve, aW as _t, e as At, aX as wt, i as Rt, aY as $e, t as Ft, A as Nt, aZ as Ot, a_ as Tt, B as Ct, a$ as St, b0 as Lt, b1 as Mt, q as kt, l as Me, V as Ue, ap as Ke, aq as qe, b2 as Pt, b3 as Bt, b4 as Yt, b5 as Ht, r as Ze, b6 as zt, b7 as Vt } from "./es6-
|
|
8
|
+
import { aQ as ee, aR as te, aS as jt, aT as Dt, aU as h, j as t, aV as n, aH as u, ak as ve, aW as _t, e as At, aX as wt, i as Rt, aY as $e, t as Ft, A as Nt, aZ as Ot, a_ as Tt, B as Ct, a$ as St, b0 as Lt, b1 as Mt, q as kt, l as Me, V as Ue, ap as Ke, aq as qe, b2 as Pt, b3 as Bt, b4 as Yt, b5 as Ht, r as Ze, b6 as zt, b7 as Vt } from "./es6-BAcbKkAS.js";
|
|
9
9
|
import * as Y from "react";
|
|
10
10
|
import Wt, { forwardRef as Gt, useImperativeHandle as $t, Fragment as Kt, useMemo as je, useRef as ke, useReducer as qt, useEffect as Qe, useCallback as N, useState as pe } from "react";
|
|
11
11
|
import { FormattedHTMLMessage as m, injectIntl as Zt } from "react-intl";
|