@sheerid/jslib 2.159.0 → 2.160.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/__tests__/e2e/orgSearchOverlay.spec.d.ts +1 -0
- package/_mysheerid-preview.css +4 -4
- package/_mysheerid-preview.js +427 -420
- 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-sIYsVADw.js → EmailLoopPending-D5kvYSMl.js} +5 -5
- package/lib/{EmailLoopPending-sIYsVADw.js.map → EmailLoopPending-D5kvYSMl.js.map} +1 -1
- package/lib/{LicensedProfessionalOrganizationComponent-DE7-Ll7O.js → LicensedProfessionalOrganizationComponent-C8UvRH8G.js} +5 -5
- package/lib/{LicensedProfessionalOrganizationComponent-DE7-Ll7O.js.map → LicensedProfessionalOrganizationComponent-C8UvRH8G.js.map} +1 -1
- package/lib/Onfido-BG8cDEVW.js +4 -4
- package/lib/StepCollectMilitaryStatusComponent-BRuyRm2G.js +11 -0
- package/lib/{StepCollectMilitaryStatusComponent-BfsYPOVy.js.map → StepCollectMilitaryStatusComponent-BRuyRm2G.js.map} +1 -1
- package/lib/{StepIDCheckLoopOnfido-BU21GlOy.js → StepIDCheckLoopOnfido-BzwRfelZ.js} +5 -5
- package/lib/{StepIDCheckLoopOnfido-BU21GlOy.js.map → StepIDCheckLoopOnfido-BzwRfelZ.js.map} +1 -1
- package/lib/{StepIDCheckLoopRegula-BN0-iFV3.js → StepIDCheckLoopRegula-CFUnNILf.js} +5 -5
- package/lib/{StepIDCheckLoopRegula-BN0-iFV3.js.map → StepIDCheckLoopRegula-CFUnNILf.js.map} +1 -1
- package/lib/{StepInactiveMilitaryPersonalInfoComponent-CJAIKPZ0.js → StepInactiveMilitaryPersonalInfoComponent-D6Oqaen6.js} +6 -6
- package/lib/{StepInactiveMilitaryPersonalInfoComponent-CJAIKPZ0.js.map → StepInactiveMilitaryPersonalInfoComponent-D6Oqaen6.js.map} +1 -1
- package/lib/{VerificationApiUtils-CKk9em6j.js → VerificationApiUtils-DKselvNp.js} +5 -5
- package/lib/{VerificationApiUtils-CKk9em6j.js.map → VerificationApiUtils-DKselvNp.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-CyAHKXXQ.js → es6-EY1zFVC8.js} +40 -33
- package/lib/{es6-CyAHKXXQ.js.map → es6-EY1zFVC8.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-hChThXQS.js → index-4bRnKtNl.js} +5 -5
- package/lib/{index-hChThXQS.js.map → index-4bRnKtNl.js.map} +1 -1
- package/lib/{index-DHCvaO0x.js → index-B6CoC2hy.js} +5 -5
- package/lib/{index-DHCvaO0x.js.map → index-B6CoC2hy.js.map} +1 -1
- package/lib/{index-CEfHGqQe.js → index-B6tBi9m5.js} +7 -7
- package/lib/{index-CEfHGqQe.js.map → index-B6tBi9m5.js.map} +1 -1
- package/lib/index-BLNDBPQs.js +11 -0
- package/lib/index-BLNDBPQs.js.map +1 -0
- package/lib/{index-Ds0oc08a.js → index-BZsQzT3M.js} +5 -5
- package/lib/{index-Ds0oc08a.js.map → index-BZsQzT3M.js.map} +1 -1
- package/lib/{index-CDeQltmJ.js → index-BiGSJdVD.js} +5 -5
- package/lib/{index-CDeQltmJ.js.map → index-BiGSJdVD.js.map} +1 -1
- package/lib/{index-gIpMCcEN.js → index-BkAD0vQl.js} +5 -5
- package/lib/{index-gIpMCcEN.js.map → index-BkAD0vQl.js.map} +1 -1
- package/lib/{index-9Tce4EZ5.js → index-C8gf-rPC.js} +5 -5
- package/lib/{index-9Tce4EZ5.js.map → index-C8gf-rPC.js.map} +1 -1
- package/lib/{index-BQmCmvur.js → index-CFKx873U.js} +5 -5
- package/lib/{index-BQmCmvur.js.map → index-CFKx873U.js.map} +1 -1
- package/lib/{index-Xyn719kW.js → index-CKGdgZEr.js} +6 -6
- package/lib/{index-Xyn719kW.js.map → index-CKGdgZEr.js.map} +1 -1
- package/lib/{index-DV9YF702.js → index-CKsCBN98.js} +5 -5
- package/lib/{index-DV9YF702.js.map → index-CKsCBN98.js.map} +1 -1
- package/lib/{index-j2bRHtDT.js → index-CMUew6mB.js} +5 -5
- package/lib/{index-j2bRHtDT.js.map → index-CMUew6mB.js.map} +1 -1
- package/lib/{index-BmQmdDv6.js → index-CY4FcDdV.js} +5 -5
- package/lib/{index-BmQmdDv6.js.map → index-CY4FcDdV.js.map} +1 -1
- package/lib/{index-8bamcfGA.js → index-CwkyKPI5.js} +5 -5
- package/lib/{index-8bamcfGA.js.map → index-CwkyKPI5.js.map} +1 -1
- package/lib/{index-Dtq4kdiQ.js → index-D4a298lR.js} +6 -6
- package/lib/{index-Dtq4kdiQ.js.map → index-D4a298lR.js.map} +1 -1
- package/lib/index-DG6H7uvl.js +11 -0
- package/lib/index-DG6H7uvl.js.map +1 -0
- package/lib/index-DIkWpujR.js +4 -4
- package/lib/index-DW_9Fltr.js +11 -0
- package/lib/index-DW_9Fltr.js.map +1 -0
- package/lib/{index-qBlz_25D.js → index-DtmeNKLO.js} +5 -5
- package/lib/{index-qBlz_25D.js.map → index-DtmeNKLO.js.map} +1 -1
- package/lib/{index-DwbyWcw5.js → index-Kn6kwxEL.js} +6 -6
- package/lib/{index-DwbyWcw5.js.map → index-Kn6kwxEL.js.map} +1 -1
- package/lib/{index-BpZp8SiT.js → index-Y5GOVMri.js} +5 -5
- package/lib/{index-BpZp8SiT.js.map → index-Y5GOVMri.js.map} +1 -1
- package/lib/{index-GycqeeyG.js → index-qBvPdKLP.js} +6 -6
- package/lib/{index-GycqeeyG.js.map → index-qBvPdKLP.js.map} +1 -1
- package/lib/index-szOCDHSc.js +11 -0
- package/lib/index-szOCDHSc.js.map +1 -0
- package/lib/{index-BScUgRgb.js → index-un6iiDxn.js} +6 -6
- package/lib/{index-BScUgRgb.js.map → index-un6iiDxn.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-C4C9vyjw.js → useCollectFieldsEndpoint-DrCj7dHs.js} +6 -6
- package/lib/{useCollectFieldsEndpoint-C4C9vyjw.js.map → useCollectFieldsEndpoint-DrCj7dHs.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 +427 -420
- package/sheerid.js.map +1 -1
- package/types-reference.zip +0 -0
- package/lib/StepCollectMilitaryStatusComponent-BfsYPOVy.js +0 -11
- package/lib/index-2-LqBHC4.js +0 -11
- package/lib/index-2-LqBHC4.js.map +0 -1
- package/lib/index-BessBGEK.js +0 -11
- package/lib/index-BessBGEK.js.map +0 -1
- package/lib/index-E0jubXmL.js +0 -11
- package/lib/index-E0jubXmL.js.map +0 -1
- package/lib/index-f5ya25ra.js +0 -11
- package/lib/index-f5ya25ra.js.map +0 -1
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
|
|
2
2
|
/**
|
|
3
|
-
* VERSION: 2.
|
|
4
|
-
* BUILD_TIMESTAMP:
|
|
5
|
-
* BUILD_DATE:
|
|
6
|
-
* BUILD_COMMIT:
|
|
3
|
+
* VERSION: 2.160.0
|
|
4
|
+
* BUILD_TIMESTAMP: 1768509811060
|
|
5
|
+
* BUILD_DATE: Thu Jan 15 2026 20:43:31 GMT+0000 (Coordinated Universal Time)
|
|
6
|
+
* BUILD_COMMIT: c6981b73748fb2c2a908e9586b42f891152f1ee3
|
|
7
7
|
*/
|
|
8
|
-
import { k as I, j as s, N, O as f, m as y, x as E, a2 as j, f as t, ae as P, ax as F, ag as D, o as n, ay as T, a4 as V, T as K, U as R, a5 as c, X as k, E as L, n as z, Y as B, a6 as O, Z as w, _ as q, $ as A, p as H, V as W, ad as _, az as $ } from "./es6-
|
|
8
|
+
import { k as I, j as s, N, O as f, m as y, x as E, a2 as j, f as t, ae as P, ax as F, ag as D, o as n, ay as T, a4 as V, T as K, U as R, a5 as c, X as k, E as L, n as z, Y as B, a6 as O, Z as w, _ as q, $ as A, p as H, V as W, ad as _, az as $ } from "./es6-EY1zFVC8.js";
|
|
9
9
|
import U from "react";
|
|
10
10
|
import { injectIntl as Y, FormattedHTMLMessage as m } from "react-intl";
|
|
11
|
-
import { u as G } from "./useCollectFieldsEndpoint-
|
|
11
|
+
import { u as G } from "./useCollectFieldsEndpoint-DrCj7dHs.js";
|
|
12
12
|
const X = {
|
|
13
13
|
AT: "gbrNummer",
|
|
14
14
|
ES: "numeroColegiado",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index-GycqeeyG.js","sources":["../../src/components/StepMedicalProfessionalPersonalInfo/StepMedicalProfessionalPersonalInfoComponent.tsx"],"sourcesContent":["/**\n * TODO - preamble\n */\nimport React from \"react\";\nimport { FormattedHTMLMessage, injectIntl } from \"react-intl\";\n\nimport { useCollectFieldsEndpoint } from \"@/lib/ServerApi/useCollectFieldsEndpoint\";\nimport {\n VerificationStepsEnum,\n MedicalProfessionalStatusDefaultMessagesEnum,\n} from \"../../lib/types/runtimeTypes\";\nimport { hasFailedInstantMatch } from \"../../lib/VerificationService/VerificationServiceHelpers\";\nimport {\n VerificationService,\n FormSelectChoice,\n Organization,\n MedicalProfessionalPersonalInfoViewModel,\n MedicalProfessionalPersonalInfoResponse,\n CustomFormFieldConfig,\n} from \"../../lib/types/types\";\nimport {\n handleEmailOnKeyDown,\n updateFieldValidationErrorsByFieldId,\n updateViewModelOrganization,\n produceDraftViewModel,\n getStatusLabel,\n getAvailableMedicalStatuses,\n getFieldConfigByFieldId,\n} from \"../../lib/utils/stepComponentHelpers/stepComponentHelpers\";\n\nimport { PhoneNumberComponent as PhoneNumber } from \"../FormFields/PhoneNumber/PhoneNumberComponent\";\nimport { FirstNameComponent as FirstName } from \"../FormFields/FirstName/FirstNameComponent\";\nimport { LastNameComponent as LastName } from \"../FormFields/LastName/LastNameComponent\";\nimport { EmailComponent as Email } from \"../FormFields/Email/EmailComponent\";\nimport { BirthDateComponent as BirthDate } from \"../FormFields/BirthDate/BirthDateComponent\";\nimport { MarketConsentWrapperComponent as MarketConsentWrapper } from \"../FormFields/MarketConsentWrapper/MarketConsentWrapperComponent\";\nimport { PostalCodeComponent as PostalCode } from \"../FormFields/PostalCode/PostalCodeComponent\";\nimport { StatusComponent as MedicalStatus } from \"../FormFields/Status/StatusComponent\";\nimport { MedicalProfessionalOrganizationComponent as MedicalProfessionalOrganization } from \"../FormFields/MedicalProfessionalOrganization/MedicalProfessionalOrganizationComponent\";\nimport { CountryComponentWrapper } from \"../FormFields/Country/CountryComponentWrapper\";\nimport { MemberIdComponent as MemberId } from \"../FormFields/MemberId/MemberIdComponent\";\nimport { getOptions } from \"../../options/options\";\nimport { FormFieldCustom } from \"../FormFields/FormFieldCustom/FormFieldCustom\";\nimport { ExtraMessage } from \"../ExtraMessage\";\nimport { ChangeLocaleV2Component } from \"../FormFields/ChangeLocale/ChangeLocaleComponent\";\nimport { PersonalInfoWrapper } from \"../PersonalInfoStepWrapper/PersonalInfoStepWrapper\";\nimport { PersonalInfoStepSubmitButton } from \"../PersonalInfoStepSubmitButton/PersonalInfoStepSubmitButton\";\nimport { PersonalInfoHeader } from \"../FormHeader/StepHeaders/PersonalInfoHeaderComponent\";\n\ninterface StepMedicalProfessionalPersonalInfoComponentProps {\n verificationService: VerificationService;\n intl: any;\n}\n\ntype MemberIdFieldType =\n | \"registrationNumber\"\n | \"numeroColegiado\"\n | \"autorisationsId\"\n | \"globalLocationNumber\"\n | \"gbrNummer\";\n\nconst memberIdMessageKeysByCountry: Record<string, MemberIdFieldType> = {\n AT: \"gbrNummer\",\n ES: \"numeroColegiado\",\n DK: \"autorisationsId\",\n CH: \"globalLocationNumber\",\n IE: \"registrationNumber\",\n GB: \"registrationNumber\",\n};\n\nconst getMemberIdMessageKeys = (country: string) => {\n const memberIdFieldType: MemberIdFieldType =\n memberIdMessageKeysByCountry[country] || \"registrationNumber\";\n return {\n labelKey: `step.collectMedicalPersonalInfo.${memberIdFieldType}Label`,\n explanationKey: `step.collectMedicalPersonalInfo.${memberIdFieldType}Explanation`,\n };\n};\n\nexport const StepMedicalProfessionalPersonalInfo = ({\n intl,\n verificationService,\n}: StepMedicalProfessionalPersonalInfoComponentProps) => {\n const viewModel = verificationService.viewModel as MedicalProfessionalPersonalInfoViewModel;\n const { fieldValidationErrors } = verificationService;\n const verificationResponse =\n verificationService.verificationResponse as MedicalProfessionalPersonalInfoResponse;\n const failedInstantMatch = hasFailedInstantMatch(verificationResponse);\n const options = getOptions();\n\n const locale = viewModel.localeChoice.value;\n\n const updateMedicalProfessionalViewModel = (\n key: keyof MedicalProfessionalPersonalInfoViewModel,\n value: any,\n ) => {\n const nextState = produceDraftViewModel(viewModel, key, value);\n verificationService.updateViewModel(nextState);\n };\n\n const { isFieldOptional } = useCollectFieldsEndpoint({\n verificationId: verificationResponse.verificationId,\n currentStep: verificationResponse.currentStep,\n viewModel,\n });\n const shouldRenderMemberId = isFieldOptional(\"memberId\");\n\n React.useEffect(() => {\n // If the memberId field is not rendered, we shouldn't validate it\n // partially update to avoid clobbering the rest of the viewModel\n if (shouldRenderMemberId) {\n verificationService.updateViewModel({ fieldsToSkipValidation: [] }, { partial: true });\n } else {\n verificationService.updateViewModel(\n { fieldsToSkipValidation: [\"memberId\"] },\n { partial: true },\n );\n }\n }, [shouldRenderMemberId]);\n\n return (\n <PersonalInfoWrapper\n verificationService={verificationService}\n step={verificationResponse.currentStep}\n >\n <PersonalInfoHeader\n verificationService={verificationService}\n classNameIdentifier=\"medical-personal-info\"\n />\n\n <ChangeLocaleV2Component verificationService={verificationService} />\n <CountryComponentWrapper\n verificationService={verificationService}\n disabled={getFieldConfigByFieldId(\"country\")?.disabled}\n />\n <MedicalStatus\n segmentId=\"medical\"\n value={{\n value: viewModel.status,\n label: getStatusLabel(\n intl,\n viewModel.status,\n MedicalProfessionalStatusDefaultMessagesEnum,\n ),\n }}\n isErrored={!!fieldValidationErrors.status}\n options={getAvailableMedicalStatuses(intl, verificationResponse.availableStatuses)}\n disabled={getFieldConfigByFieldId(\"status\")?.disabled}\n onChange={(status: FormSelectChoice) => {\n updateMedicalProfessionalViewModel(\"status\", status ? (status.value as string) : \"\");\n updateFieldValidationErrorsByFieldId(\n \"status\",\n status ? (status.value as string) : \"\",\n verificationService,\n );\n }}\n />\n <MedicalProfessionalOrganization\n isErrored={!!fieldValidationErrors.organization}\n onChange={(choice: Organization) => {\n updateViewModelOrganization(choice, verificationService);\n updateFieldValidationErrorsByFieldId(\"organization\", choice, verificationService);\n }}\n value={\n (verificationService.viewModel as MedicalProfessionalPersonalInfoViewModel).organization\n }\n verificationService={verificationService}\n disabled={getFieldConfigByFieldId(\"organization\")?.disabled}\n />\n <div className=\"sid-names\">\n <FirstName\n value={viewModel.firstName}\n isErrored={!!fieldValidationErrors.firstName}\n disabled={getFieldConfigByFieldId(\"firstName\")?.disabled}\n onChange={(newValue) => {\n updateMedicalProfessionalViewModel(\"firstName\", newValue);\n updateFieldValidationErrorsByFieldId(\"firstName\", newValue, verificationService);\n }}\n />\n\n <LastName\n value={viewModel.lastName}\n isErrored={!!fieldValidationErrors.lastName}\n disabled={getFieldConfigByFieldId(\"lastName\")?.disabled}\n onChange={(newValue) => {\n updateMedicalProfessionalViewModel(\"lastName\", newValue);\n updateFieldValidationErrorsByFieldId(\"lastName\", newValue, verificationService);\n }}\n />\n </div>\n <BirthDate\n errorId={fieldValidationErrors.birthDate}\n locale={locale}\n disabled={getFieldConfigByFieldId(\"birthDate\")?.disabled}\n onChange={(newValue) => {\n updateMedicalProfessionalViewModel(\"birthDate\", newValue);\n updateFieldValidationErrorsByFieldId(\"birthDate\", newValue, verificationService);\n }}\n value={viewModel.birthDate}\n />\n <PostalCode\n isErrored={!!fieldValidationErrors.postalCode}\n onChange={(newValue) => {\n updateMedicalProfessionalViewModel(\"postalCode\", newValue);\n updateFieldValidationErrorsByFieldId(\"postalCode\", newValue, verificationService);\n }}\n value={viewModel.postalCode}\n disabled={getFieldConfigByFieldId(\"postalCode\")?.disabled}\n explanation={\n <FormattedHTMLMessage\n id=\"postalCodeExplanation\"\n defaultMessage=\"Use the location on file with your licensing body\"\n />\n }\n />\n <Email\n value={viewModel.email}\n isErrored={!!fieldValidationErrors.email}\n explanation={\n <FormattedHTMLMessage\n id=\"emailExplanation\"\n defaultMessage=\"Needed to send you your unique code\"\n />\n }\n onChange={(newValue) => {\n updateMedicalProfessionalViewModel(\"email\", newValue);\n updateFieldValidationErrorsByFieldId(\"email\", newValue, verificationService);\n }}\n onKeyDown={(event) => handleEmailOnKeyDown(event)}\n disabled={getFieldConfigByFieldId(\"email\")?.disabled}\n />\n {verificationService.programTheme.isSmsNotifierConfigured ||\n verificationService.programTheme.smsLoopEnabled ? (\n <PhoneNumber\n isRequired={!!verificationService.programTheme.smsLoopEnabled}\n value={viewModel.phoneNumber}\n isErrored={!!fieldValidationErrors.phoneNumber}\n onChange={(newValue) => {\n updateMedicalProfessionalViewModel(\"phoneNumber\", newValue);\n updateFieldValidationErrorsByFieldId(\"phoneNumber\", newValue, verificationService);\n }}\n selectedCountryCode={viewModel.countryChoice && viewModel.countryChoice.value}\n disabled={getFieldConfigByFieldId(\"phoneNumber\")?.disabled}\n />\n ) : null}\n {shouldRenderMemberId && (\n <MemberId\n value={viewModel.memberId}\n isErrored={!!fieldValidationErrors.memberId}\n isRequired={getFieldConfigByFieldId(\"memberId\")?.requireIfOptional}\n disabled={getFieldConfigByFieldId(\"memberId\")?.disabled}\n onChange={(newValue) => {\n updateMedicalProfessionalViewModel(\"memberId\", newValue);\n updateFieldValidationErrorsByFieldId(\"memberId\", newValue, verificationService);\n }}\n explanation={\n <FormattedHTMLMessage\n id={getMemberIdMessageKeys(viewModel.country).explanationKey}\n defaultMessage=\"Your Professional Membership Registration Number\"\n />\n }\n label={\n <FormattedHTMLMessage\n id={getMemberIdMessageKeys(viewModel.country).labelKey}\n defaultMessage=\"Registration Number\"\n />\n }\n />\n )}\n {options.customFormFields.map((config: CustomFormFieldConfig) => (\n <FormFieldCustom config={config} verificationService={verificationService} />\n ))}\n <MarketConsentWrapper\n verificationService={verificationService}\n isErrored={!!fieldValidationErrors.marketConsentValue}\n onChange={(newValue) => {\n updateMedicalProfessionalViewModel(\"metadata\", {\n ...verificationService.viewModel.metadata,\n marketConsentValue: newValue,\n });\n updateFieldValidationErrorsByFieldId(\"marketConsentValue\", newValue, verificationService);\n }}\n viewModel={viewModel}\n disabled={getFieldConfigByFieldId(\"marketConsentValue\")?.disabled}\n />\n <ExtraMessage verificationService={verificationService} suffix=\"CollectAboveSubmit\" />\n <PersonalInfoStepSubmitButton\n step={VerificationStepsEnum.collectMedicalProfessionalPersonalInfo}\n verificationService={verificationService}\n viewModel={viewModel}\n failedInstantMatch={failedInstantMatch}\n buttonText={\n <FormattedHTMLMessage\n id=\"step.personalInfo.submitButtonText\"\n defaultMessage=\"Verify My Medical Professional Status\"\n />\n }\n />\n </PersonalInfoWrapper>\n );\n};\n\nexport const StepMedicalProfessionalPersonalInfoComponent = injectIntl(\n StepMedicalProfessionalPersonalInfo,\n);\n"],"names":["memberIdMessageKeysByCountry","getMemberIdMessageKeys","country","memberIdFieldType","StepMedicalProfessionalPersonalInfo","intl","verificationService","viewModel","fieldValidationErrors","verificationResponse","failedInstantMatch","hasFailedInstantMatch","options","getOptions","locale","updateMedicalProfessionalViewModel","key","value","nextState","produceDraftViewModel","isFieldOptional","useCollectFieldsEndpoint","shouldRenderMemberId","React","jsxs","PersonalInfoWrapper","jsx","PersonalInfoHeader","ChangeLocaleV2Component","CountryComponentWrapper","getFieldConfigByFieldId","MedicalStatus","getStatusLabel","MedicalProfessionalStatusDefaultMessagesEnum","getAvailableMedicalStatuses","status","updateFieldValidationErrorsByFieldId","MedicalProfessionalOrganization","choice","updateViewModelOrganization","FirstName","newValue","LastName","BirthDate","PostalCode","FormattedHTMLMessage","Email","event","handleEmailOnKeyDown","PhoneNumber","MemberId","config","FormFieldCustom","MarketConsentWrapper","ExtraMessage","PersonalInfoStepSubmitButton","VerificationStepsEnum","StepMedicalProfessionalPersonalInfoComponent","injectIntl"],"mappings":";;;;AA6DA,MAAMA,IAAkE;AAAA,EACtE,IAAI;AAAA,EACJ,IAAI;AAAA,EACJ,IAAI;AAAA,EACJ,IAAI;AAAA,EACJ,IAAI;AAAA,EACJ,IAAI;AACN,GAEMC,IAAyB,CAACC,MAAoB;AAClD,QAAMC,IACJH,EAA6BE,CAAO,KAAK;AAC3C,SAAO;AAAA,IACL,UAAU,mCAAmCC,CAAiB;AAAA,IAC9D,gBAAgB,mCAAmCA,CAAiB;AAAA,EAAA;AAExE,GAEaC,IAAsC,C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AAAA,cAAA;AAAA,gBACC,IAAI5C,EAAuBM,EAAU,OAAO,EAAE;AAAA,gBAC9C,gBAAe;AAAA,cAAA;AAAA,YAAA;AAAA,UACjB;AAAA,QAAA;AAAA,QAILK,EAAQ,iBAAiB,IAAI,CAACuC,MAC7BzB,gBAAAA,MAAC0B,GAAA,EAAgB,QAAAD,GAAgB,qBAAA7C,EAAA,CAA0C,CAC5E;AAAA,QACDoB,gBAAAA,EAAAA;AAAAA,UAAC2B;AAAAA,UAAA;AAAA,YACC,qBAAA/C;AAAA,YACA,WAAW,CAAC,CAACE,EAAsB;AAAA,YACnC,UAAU,CAACiC,MAAa;AACtB,cAAA1B,EAAmC,YAAY;AAAA,gBAC7C,GAAGT,EAAoB,UAAU;AAAA,gBACjC,oBAAoBmC;AAAA,cAAA,CACrB,GACDL,EAAqC,sBAAsBK,GAAUnC,CAAmB;AAAA,YAC1F;AAAA,YACA,WAAAC;AAAA,YACA,UAAUuB,EAAwB,oBAAoB,GAAG;AAAA,UAAA;AAAA,QAAA;AAAA,QAE3DJ,gBAAAA,EAAAA,IAAC4B,GAAA,EAAa,qBAAAhD,GAA0C,QAAO,qBAAA,CAAqB;AAAA,QACpFoB,gBAAAA,EAAAA;AAAAA,UAAC6B;AAAA,UAAA;AAAA,YACC,MAAMC,EAAsB;AAAA,YAC5B,qBAAAlD;AAAA,YACA,WAAAC;AAAA,YACA,oBAAAG;AAAA,YACA,YACEgB,gBAAAA,EAAAA;AAAAA,cAACmB;AAAA,cAAA;AAAA,gBACC,IAAG;AAAA,gBACH,gBAAe;AAAA,cAAA;AAAA,YAAA;AAAA,UACjB;AAAA,QAAA;AAAA,MAEJ;AAAA,IAAA;AAAA,EAAA;AAGN,GAEaY,KAA+CC;AAAA,EAC1DtD;AACF;"}
|
|
1
|
+
{"version":3,"file":"index-qBvPdKLP.js","sources":["../../src/components/StepMedicalProfessionalPersonalInfo/StepMedicalProfessionalPersonalInfoComponent.tsx"],"sourcesContent":["/**\n * TODO - preamble\n */\nimport React from \"react\";\nimport { FormattedHTMLMessage, injectIntl } from \"react-intl\";\n\nimport { useCollectFieldsEndpoint } from \"@/lib/ServerApi/useCollectFieldsEndpoint\";\nimport {\n VerificationStepsEnum,\n MedicalProfessionalStatusDefaultMessagesEnum,\n} from \"../../lib/types/runtimeTypes\";\nimport { hasFailedInstantMatch } from \"../../lib/VerificationService/VerificationServiceHelpers\";\nimport {\n VerificationService,\n FormSelectChoice,\n Organization,\n MedicalProfessionalPersonalInfoViewModel,\n MedicalProfessionalPersonalInfoResponse,\n CustomFormFieldConfig,\n} from \"../../lib/types/types\";\nimport {\n handleEmailOnKeyDown,\n updateFieldValidationErrorsByFieldId,\n updateViewModelOrganization,\n produceDraftViewModel,\n getStatusLabel,\n getAvailableMedicalStatuses,\n getFieldConfigByFieldId,\n} from \"../../lib/utils/stepComponentHelpers/stepComponentHelpers\";\n\nimport { PhoneNumberComponent as PhoneNumber } from \"../FormFields/PhoneNumber/PhoneNumberComponent\";\nimport { FirstNameComponent as FirstName } from \"../FormFields/FirstName/FirstNameComponent\";\nimport { LastNameComponent as LastName } from \"../FormFields/LastName/LastNameComponent\";\nimport { EmailComponent as Email } from \"../FormFields/Email/EmailComponent\";\nimport { BirthDateComponent as BirthDate } from \"../FormFields/BirthDate/BirthDateComponent\";\nimport { MarketConsentWrapperComponent as MarketConsentWrapper } from \"../FormFields/MarketConsentWrapper/MarketConsentWrapperComponent\";\nimport { PostalCodeComponent as PostalCode } from \"../FormFields/PostalCode/PostalCodeComponent\";\nimport { StatusComponent as MedicalStatus } from \"../FormFields/Status/StatusComponent\";\nimport { MedicalProfessionalOrganizationComponent as MedicalProfessionalOrganization } from \"../FormFields/MedicalProfessionalOrganization/MedicalProfessionalOrganizationComponent\";\nimport { CountryComponentWrapper } from \"../FormFields/Country/CountryComponentWrapper\";\nimport { MemberIdComponent as MemberId } from \"../FormFields/MemberId/MemberIdComponent\";\nimport { getOptions } from \"../../options/options\";\nimport { FormFieldCustom } from \"../FormFields/FormFieldCustom/FormFieldCustom\";\nimport { ExtraMessage } from \"../ExtraMessage\";\nimport { ChangeLocaleV2Component } from \"../FormFields/ChangeLocale/ChangeLocaleComponent\";\nimport { PersonalInfoWrapper } from \"../PersonalInfoStepWrapper/PersonalInfoStepWrapper\";\nimport { PersonalInfoStepSubmitButton } from \"../PersonalInfoStepSubmitButton/PersonalInfoStepSubmitButton\";\nimport { PersonalInfoHeader } from \"../FormHeader/StepHeaders/PersonalInfoHeaderComponent\";\n\ninterface StepMedicalProfessionalPersonalInfoComponentProps {\n verificationService: VerificationService;\n intl: any;\n}\n\ntype MemberIdFieldType =\n | \"registrationNumber\"\n | \"numeroColegiado\"\n | \"autorisationsId\"\n | \"globalLocationNumber\"\n | \"gbrNummer\";\n\nconst memberIdMessageKeysByCountry: Record<string, MemberIdFieldType> = {\n AT: \"gbrNummer\",\n ES: \"numeroColegiado\",\n DK: \"autorisationsId\",\n CH: \"globalLocationNumber\",\n IE: \"registrationNumber\",\n GB: \"registrationNumber\",\n};\n\nconst getMemberIdMessageKeys = (country: string) => {\n const memberIdFieldType: MemberIdFieldType =\n memberIdMessageKeysByCountry[country] || \"registrationNumber\";\n return {\n labelKey: `step.collectMedicalPersonalInfo.${memberIdFieldType}Label`,\n explanationKey: `step.collectMedicalPersonalInfo.${memberIdFieldType}Explanation`,\n };\n};\n\nexport const StepMedicalProfessionalPersonalInfo = ({\n intl,\n verificationService,\n}: StepMedicalProfessionalPersonalInfoComponentProps) => {\n const viewModel = verificationService.viewModel as MedicalProfessionalPersonalInfoViewModel;\n const { fieldValidationErrors } = verificationService;\n const verificationResponse =\n verificationService.verificationResponse as MedicalProfessionalPersonalInfoResponse;\n const failedInstantMatch = hasFailedInstantMatch(verificationResponse);\n const options = getOptions();\n\n const locale = viewModel.localeChoice.value;\n\n const updateMedicalProfessionalViewModel = (\n key: keyof MedicalProfessionalPersonalInfoViewModel,\n value: any,\n ) => {\n const nextState = produceDraftViewModel(viewModel, key, value);\n verificationService.updateViewModel(nextState);\n };\n\n const { isFieldOptional } = useCollectFieldsEndpoint({\n verificationId: verificationResponse.verificationId,\n currentStep: verificationResponse.currentStep,\n viewModel,\n });\n const shouldRenderMemberId = isFieldOptional(\"memberId\");\n\n React.useEffect(() => {\n // If the memberId field is not rendered, we shouldn't validate it\n // partially update to avoid clobbering the rest of the viewModel\n if (shouldRenderMemberId) {\n verificationService.updateViewModel({ fieldsToSkipValidation: [] }, { partial: true });\n } else {\n verificationService.updateViewModel(\n { fieldsToSkipValidation: [\"memberId\"] },\n { partial: true },\n );\n }\n }, [shouldRenderMemberId]);\n\n return (\n <PersonalInfoWrapper\n verificationService={verificationService}\n step={verificationResponse.currentStep}\n >\n <PersonalInfoHeader\n verificationService={verificationService}\n classNameIdentifier=\"medical-personal-info\"\n />\n\n <ChangeLocaleV2Component verificationService={verificationService} />\n <CountryComponentWrapper\n verificationService={verificationService}\n disabled={getFieldConfigByFieldId(\"country\")?.disabled}\n />\n <MedicalStatus\n segmentId=\"medical\"\n value={{\n value: viewModel.status,\n label: getStatusLabel(\n intl,\n viewModel.status,\n MedicalProfessionalStatusDefaultMessagesEnum,\n ),\n }}\n isErrored={!!fieldValidationErrors.status}\n options={getAvailableMedicalStatuses(intl, verificationResponse.availableStatuses)}\n disabled={getFieldConfigByFieldId(\"status\")?.disabled}\n onChange={(status: FormSelectChoice) => {\n updateMedicalProfessionalViewModel(\"status\", status ? (status.value as string) : \"\");\n updateFieldValidationErrorsByFieldId(\n \"status\",\n status ? (status.value as string) : \"\",\n verificationService,\n );\n }}\n />\n <MedicalProfessionalOrganization\n isErrored={!!fieldValidationErrors.organization}\n onChange={(choice: Organization) => {\n updateViewModelOrganization(choice, verificationService);\n updateFieldValidationErrorsByFieldId(\"organization\", choice, verificationService);\n }}\n value={\n (verificationService.viewModel as MedicalProfessionalPersonalInfoViewModel).organization\n }\n verificationService={verificationService}\n disabled={getFieldConfigByFieldId(\"organization\")?.disabled}\n />\n <div className=\"sid-names\">\n <FirstName\n value={viewModel.firstName}\n isErrored={!!fieldValidationErrors.firstName}\n disabled={getFieldConfigByFieldId(\"firstName\")?.disabled}\n onChange={(newValue) => {\n updateMedicalProfessionalViewModel(\"firstName\", newValue);\n updateFieldValidationErrorsByFieldId(\"firstName\", newValue, verificationService);\n }}\n />\n\n <LastName\n value={viewModel.lastName}\n isErrored={!!fieldValidationErrors.lastName}\n disabled={getFieldConfigByFieldId(\"lastName\")?.disabled}\n onChange={(newValue) => {\n updateMedicalProfessionalViewModel(\"lastName\", newValue);\n updateFieldValidationErrorsByFieldId(\"lastName\", newValue, verificationService);\n }}\n />\n </div>\n <BirthDate\n errorId={fieldValidationErrors.birthDate}\n locale={locale}\n disabled={getFieldConfigByFieldId(\"birthDate\")?.disabled}\n onChange={(newValue) => {\n updateMedicalProfessionalViewModel(\"birthDate\", newValue);\n updateFieldValidationErrorsByFieldId(\"birthDate\", newValue, verificationService);\n }}\n value={viewModel.birthDate}\n />\n <PostalCode\n isErrored={!!fieldValidationErrors.postalCode}\n onChange={(newValue) => {\n updateMedicalProfessionalViewModel(\"postalCode\", newValue);\n updateFieldValidationErrorsByFieldId(\"postalCode\", newValue, verificationService);\n }}\n value={viewModel.postalCode}\n disabled={getFieldConfigByFieldId(\"postalCode\")?.disabled}\n explanation={\n <FormattedHTMLMessage\n id=\"postalCodeExplanation\"\n defaultMessage=\"Use the location on file with your licensing body\"\n />\n }\n />\n <Email\n value={viewModel.email}\n isErrored={!!fieldValidationErrors.email}\n explanation={\n <FormattedHTMLMessage\n id=\"emailExplanation\"\n defaultMessage=\"Needed to send you your unique code\"\n />\n }\n onChange={(newValue) => {\n updateMedicalProfessionalViewModel(\"email\", newValue);\n updateFieldValidationErrorsByFieldId(\"email\", newValue, verificationService);\n }}\n onKeyDown={(event) => handleEmailOnKeyDown(event)}\n disabled={getFieldConfigByFieldId(\"email\")?.disabled}\n />\n {verificationService.programTheme.isSmsNotifierConfigured ||\n verificationService.programTheme.smsLoopEnabled ? (\n <PhoneNumber\n isRequired={!!verificationService.programTheme.smsLoopEnabled}\n value={viewModel.phoneNumber}\n isErrored={!!fieldValidationErrors.phoneNumber}\n onChange={(newValue) => {\n updateMedicalProfessionalViewModel(\"phoneNumber\", newValue);\n updateFieldValidationErrorsByFieldId(\"phoneNumber\", newValue, verificationService);\n }}\n selectedCountryCode={viewModel.countryChoice && viewModel.countryChoice.value}\n disabled={getFieldConfigByFieldId(\"phoneNumber\")?.disabled}\n />\n ) : null}\n {shouldRenderMemberId && (\n <MemberId\n value={viewModel.memberId}\n isErrored={!!fieldValidationErrors.memberId}\n isRequired={getFieldConfigByFieldId(\"memberId\")?.requireIfOptional}\n disabled={getFieldConfigByFieldId(\"memberId\")?.disabled}\n onChange={(newValue) => {\n updateMedicalProfessionalViewModel(\"memberId\", newValue);\n updateFieldValidationErrorsByFieldId(\"memberId\", newValue, verificationService);\n }}\n explanation={\n <FormattedHTMLMessage\n id={getMemberIdMessageKeys(viewModel.country).explanationKey}\n defaultMessage=\"Your Professional Membership Registration Number\"\n />\n }\n label={\n <FormattedHTMLMessage\n id={getMemberIdMessageKeys(viewModel.country).labelKey}\n defaultMessage=\"Registration Number\"\n />\n }\n />\n )}\n {options.customFormFields.map((config: CustomFormFieldConfig) => (\n <FormFieldCustom config={config} verificationService={verificationService} />\n ))}\n <MarketConsentWrapper\n verificationService={verificationService}\n isErrored={!!fieldValidationErrors.marketConsentValue}\n onChange={(newValue) => {\n updateMedicalProfessionalViewModel(\"metadata\", {\n ...verificationService.viewModel.metadata,\n marketConsentValue: newValue,\n });\n updateFieldValidationErrorsByFieldId(\"marketConsentValue\", newValue, verificationService);\n }}\n viewModel={viewModel}\n disabled={getFieldConfigByFieldId(\"marketConsentValue\")?.disabled}\n />\n <ExtraMessage verificationService={verificationService} suffix=\"CollectAboveSubmit\" />\n <PersonalInfoStepSubmitButton\n step={VerificationStepsEnum.collectMedicalProfessionalPersonalInfo}\n verificationService={verificationService}\n viewModel={viewModel}\n failedInstantMatch={failedInstantMatch}\n buttonText={\n <FormattedHTMLMessage\n id=\"step.personalInfo.submitButtonText\"\n defaultMessage=\"Verify My Medical Professional Status\"\n />\n }\n />\n </PersonalInfoWrapper>\n );\n};\n\nexport const StepMedicalProfessionalPersonalInfoComponent = injectIntl(\n StepMedicalProfessionalPersonalInfo,\n);\n"],"names":["memberIdMessageKeysByCountry","getMemberIdMessageKeys","country","memberIdFieldType","StepMedicalProfessionalPersonalInfo","intl","verificationService","viewModel","fieldValidationErrors","verificationResponse","failedInstantMatch","hasFailedInstantMatch","options","getOptions","locale","updateMedicalProfessionalViewModel","key","value","nextState","produceDraftViewModel","isFieldOptional","useCollectFieldsEndpoint","shouldRenderMemberId","React","jsxs","PersonalInfoWrapper","jsx","PersonalInfoHeader","ChangeLocaleV2Component","CountryComponentWrapper","getFieldConfigByFieldId","MedicalStatus","getStatusLabel","MedicalProfessionalStatusDefaultMessagesEnum","getAvailableMedicalStatuses","status","updateFieldValidationErrorsByFieldId","MedicalProfessionalOrganization","choice","updateViewModelOrganization","FirstName","newValue","LastName","BirthDate","PostalCode","FormattedHTMLMessage","Email","event","handleEmailOnKeyDown","PhoneNumber","MemberId","config","FormFieldCustom","MarketConsentWrapper","ExtraMessage","PersonalInfoStepSubmitButton","VerificationStepsEnum","StepMedicalProfessionalPersonalInfoComponent","injectIntl"],"mappings":";;;;AA6DA,MAAMA,IAAkE;AAAA,EACtE,IAAI;AAAA,EACJ,IAAI;AAAA,EACJ,IAAI;AAAA,EACJ,IAAI;AAAA,EACJ,IAAI;AAAA,EACJ,IAAI;AACN,GAEMC,IAAyB,CAACC,MAAoB;AAClD,QAAMC,IACJH,EAA6BE,CAAO,KAAK;AAC3C,SAAO;AAAA,IACL,UAAU,mCAAmCC,CAAiB;AAAA,IAC9D,gBAAgB,mCAAmCA,CAAiB;AAAA,EAAA;AAExE,GAEaC,IAAsC,CAAC;AAAA,EAClD,MAAAC;AAAA,EACA,qBAAAC;AACF,MAAyD;AACvD,QAAMC,IAAYD,EAAoB,WACh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981b73748fb2c2a908e9586b42f891152f1ee3
|
|
7
|
+
*/
|
|
8
|
+
import { S as f } from "./es6-EY1zFVC8.js";
|
|
9
|
+
export {
|
|
10
|
+
f as default
|
|
11
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index-szOCDHSc.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.160.0
|
|
4
|
+
* BUILD_TIMESTAMP: 1768509811060
|
|
5
|
+
* BUILD_DATE: Thu Jan 15 2026 20:43:31 GMT+0000 (Coordinated Universal Time)
|
|
6
|
+
* BUILD_COMMIT: c6981b73748fb2c2a908e9586b42f891152f1ee3
|
|
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-EY1zFVC8.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-C8UvRH8G.js";
|
|
12
12
|
const Ra = ({
|
|
13
13
|
intl: E,
|
|
14
14
|
verificationService: e
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index-BScUgRgb.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,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,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-un6iiDxn.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,IAAm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-
* BUILD_DATE:
|
|
6
|
-
* BUILD_COMMIT:
|
|
3
|
+
* VERSION: 2.160.0
|
|
4
|
+
* BUILD_TIMESTAMP: 1768509811060
|
|
5
|
+
* BUILD_DATE: Thu Jan 15 2026 20:43:31 GMT+0000 (Coordinated Universal Time)
|
|
6
|
+
* BUILD_COMMIT: c6981b73748fb2c2a908e9586b42f891152f1ee3
|
|
7
7
|
*/
|
|
8
8
|
const e = {
|
|
9
9
|
"defaultMessages.ACTIVE_DUTY": "Virk herskylda",
|
package/lib/it-CQyVzKlT.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.160.0
|
|
4
|
+
* BUILD_TIMESTAMP: 1768509811060
|
|
5
|
+
* BUILD_DATE: Thu Jan 15 2026 20:43:31 GMT+0000 (Coordinated Universal Time)
|
|
6
|
+
* BUILD_COMMIT: c6981b73748fb2c2a908e9586b42f891152f1ee3
|
|
7
7
|
*/
|
|
8
8
|
const e = {
|
|
9
9
|
"defaultMessages.ACTIVE_DUTY": "Servizio Attivo",
|
package/lib/iw-Ushhvya4.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.160.0
|
|
4
|
+
* BUILD_TIMESTAMP: 1768509811060
|
|
5
|
+
* BUILD_DATE: Thu Jan 15 2026 20:43:31 GMT+0000 (Coordinated Universal Time)
|
|
6
|
+
* BUILD_COMMIT: c6981b73748fb2c2a908e9586b42f891152f1ee3
|
|
7
7
|
*/
|
|
8
8
|
const e = {
|
|
9
9
|
"defaultMessages.ACTIVE_DUTY": "שירות פעיל",
|
package/lib/ja-Dcifbbfc.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.160.0
|
|
4
|
+
* BUILD_TIMESTAMP: 1768509811060
|
|
5
|
+
* BUILD_DATE: Thu Jan 15 2026 20:43:31 GMT+0000 (Coordinated Universal Time)
|
|
6
|
+
* BUILD_COMMIT: c6981b73748fb2c2a908e9586b42f891152f1ee3
|
|
7
7
|
*/
|
|
8
8
|
const e = {
|
|
9
9
|
"defaultMessages.ACTIVE_DUTY": "現役軍人",
|
package/lib/ko-CLL4EQha.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.160.0
|
|
4
|
+
* BUILD_TIMESTAMP: 1768509811060
|
|
5
|
+
* BUILD_DATE: Thu Jan 15 2026 20:43:31 GMT+0000 (Coordinated Universal Time)
|
|
6
|
+
* BUILD_COMMIT: c6981b73748fb2c2a908e9586b42f891152f1ee3
|
|
7
7
|
*/
|
|
8
8
|
const e = {
|
|
9
9
|
"defaultMessages.ACTIVE_DUTY": "현역 군인",
|
package/lib/lo-L9L6J73n.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.160.0
|
|
4
|
+
* BUILD_TIMESTAMP: 1768509811060
|
|
5
|
+
* BUILD_DATE: Thu Jan 15 2026 20:43:31 GMT+0000 (Coordinated Universal Time)
|
|
6
|
+
* BUILD_COMMIT: c6981b73748fb2c2a908e9586b42f891152f1ee3
|
|
7
7
|
*/
|
|
8
8
|
const e = {
|
|
9
9
|
"defaultMessages.ACTIVE_DUTY": "ໜ້າທີ່",
|
package/lib/lt-BtZUzp79.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.160.0
|
|
4
|
+
* BUILD_TIMESTAMP: 1768509811060
|
|
5
|
+
* BUILD_DATE: Thu Jan 15 2026 20:43:31 GMT+0000 (Coordinated Universal Time)
|
|
6
|
+
* BUILD_COMMIT: c6981b73748fb2c2a908e9586b42f891152f1ee3
|
|
7
7
|
*/
|
|
8
8
|
const e = {
|
|
9
9
|
"defaultMessages.ACTIVE_DUTY": "Aktyvus pareigūnas",
|
package/lib/ms-BfDCR6pn.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.160.0
|
|
4
|
+
* BUILD_TIMESTAMP: 1768509811060
|
|
5
|
+
* BUILD_DATE: Thu Jan 15 2026 20:43:31 GMT+0000 (Coordinated Universal Time)
|
|
6
|
+
* BUILD_COMMIT: c6981b73748fb2c2a908e9586b42f891152f1ee3
|
|
7
7
|
*/
|
|
8
8
|
const a = {
|
|
9
9
|
"defaultMessages.ACTIVE_DUTY": "Tugas Aktif",
|
package/lib/nl-BE-D2HYExZo.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.160.0
|
|
4
|
+
* BUILD_TIMESTAMP: 1768509811060
|
|
5
|
+
* BUILD_DATE: Thu Jan 15 2026 20:43:31 GMT+0000 (Coordinated Universal Time)
|
|
6
|
+
* BUILD_COMMIT: c6981b73748fb2c2a908e9586b42f891152f1ee3
|
|
7
7
|
*/
|
|
8
8
|
const e = {
|
|
9
9
|
"defaultMessages.ACTIVE_DUTY": "Actieve dienst",
|
package/lib/nl-DUXFBbpR.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.160.0
|
|
4
|
+
* BUILD_TIMESTAMP: 1768509811060
|
|
5
|
+
* BUILD_DATE: Thu Jan 15 2026 20:43:31 GMT+0000 (Coordinated Universal Time)
|
|
6
|
+
* BUILD_COMMIT: c6981b73748fb2c2a908e9586b42f891152f1ee3
|
|
7
7
|
*/
|
|
8
8
|
const e = {
|
|
9
9
|
"defaultMessages.ACTIVE_DUTY": "Actieve dienst",
|
package/lib/no-oMhrfsYj.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.160.0
|
|
4
|
+
* BUILD_TIMESTAMP: 1768509811060
|
|
5
|
+
* BUILD_DATE: Thu Jan 15 2026 20:43:31 GMT+0000 (Coordinated Universal Time)
|
|
6
|
+
* BUILD_COMMIT: c6981b73748fb2c2a908e9586b42f891152f1ee3
|
|
7
7
|
*/
|
|
8
8
|
const e = {
|
|
9
9
|
"defaultMessages.ACTIVE_DUTY": "Aktiv Tjeneste",
|
package/lib/pl-Bfa20C9v.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.160.0
|
|
4
|
+
* BUILD_TIMESTAMP: 1768509811060
|
|
5
|
+
* BUILD_DATE: Thu Jan 15 2026 20:43:31 GMT+0000 (Coordinated Universal Time)
|
|
6
|
+
* BUILD_COMMIT: c6981b73748fb2c2a908e9586b42f891152f1ee3
|
|
7
7
|
*/
|
|
8
8
|
const e = {
|
|
9
9
|
"defaultMessages.ACTIVE_DUTY": "Aktywna służba",
|
package/lib/pt-BR-D6NNt6x4.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.160.0
|
|
4
|
+
* BUILD_TIMESTAMP: 1768509811060
|
|
5
|
+
* BUILD_DATE: Thu Jan 15 2026 20:43:31 GMT+0000 (Coordinated Universal Time)
|
|
6
|
+
* BUILD_COMMIT: c6981b73748fb2c2a908e9586b42f891152f1ee3
|
|
7
7
|
*/
|
|
8
8
|
const e = {
|
|
9
9
|
"defaultMessages.ACTIVE_DUTY": "Serviço ativo",
|
package/lib/pt-BcnwrXJl.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.160.0
|
|
4
|
+
* BUILD_TIMESTAMP: 1768509811060
|
|
5
|
+
* BUILD_DATE: Thu Jan 15 2026 20:43:31 GMT+0000 (Coordinated Universal Time)
|
|
6
|
+
* BUILD_COMMIT: c6981b73748fb2c2a908e9586b42f891152f1ee3
|
|
7
7
|
*/
|
|
8
8
|
const e = {
|
|
9
9
|
"defaultMessages.ACTIVE_DUTY": "Em serviço ativo",
|
package/lib/ro-qd1_hJCg.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.160.0
|
|
4
|
+
* BUILD_TIMESTAMP: 1768509811060
|
|
5
|
+
* BUILD_DATE: Thu Jan 15 2026 20:43:31 GMT+0000 (Coordinated Universal Time)
|
|
6
|
+
* BUILD_COMMIT: c6981b73748fb2c2a908e9586b42f891152f1ee3
|
|
7
7
|
*/
|
|
8
8
|
const e = {
|
|
9
9
|
"defaultMessages.ACTIVE_DUTY": "Serviciu activ",
|