@sheerid/jslib-nightly 2.232.0-alpha.2 → 2.233.0-alpha.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/_mysheerid-preview.css +4 -4
- package/_mysheerid-preview.js +1311 -1349
- package/_mysheerid-preview.js.map +1 -1
- package/chunk/{ActiveDutyStartDateComponent-CF9c-0bL.js → ActiveDutyStartDateComponent-BqqZPmED.js} +14 -14
- package/chunk/{ActiveDutyStartDateComponent-BNwC2c3Y.js.map → ActiveDutyStartDateComponent-BqqZPmED.js.map} +1 -1
- package/chunk/{ActiveDutyStartDateComponent-BNwC2c3Y.js → ActiveDutyStartDateComponent-vtVgKCY6.js} +14 -14
- package/chunk/{ActiveDutyStartDateComponent-CF9c-0bL.js.map → ActiveDutyStartDateComponent-vtVgKCY6.js.map} +1 -1
- package/chunk/{AddressComponent-DV2Wsw6k.js → AddressComponent-DKaHo8cD.js} +5 -5
- package/chunk/{AddressComponent-AiyIPiCz.js.map → AddressComponent-DKaHo8cD.js.map} +1 -1
- package/chunk/{AddressComponent-AiyIPiCz.js → AddressComponent-uP4u4iGw.js} +5 -5
- package/chunk/{AddressComponent-DV2Wsw6k.js.map → AddressComponent-uP4u4iGw.js.map} +1 -1
- package/chunk/{CaptchaComponent-SmUa6m52.js → CaptchaComponent-BVvwKmWz.js} +174 -174
- package/chunk/{CaptchaComponent-CnWyxiTy.js.map → CaptchaComponent-BVvwKmWz.js.map} +1 -1
- package/chunk/{CaptchaComponent-CnWyxiTy.js → CaptchaComponent-CajCtTWY.js} +174 -174
- package/chunk/{CaptchaComponent-SmUa6m52.js.map → CaptchaComponent-CajCtTWY.js.map} +1 -1
- package/chunk/{ChangeLocaleComponent-Cu2DR-Q3.js → ChangeLocaleComponent-BLoBbyRc.js} +12 -12
- package/chunk/{ChangeLocaleComponent-Cu2DR-Q3.js.map → ChangeLocaleComponent-BLoBbyRc.js.map} +1 -1
- package/chunk/{ChangeLocaleComponent-DUnfgQuX.js → ChangeLocaleComponent-Cd8lWGKu.js} +12 -12
- package/chunk/{ChangeLocaleComponent-DUnfgQuX.js.map → ChangeLocaleComponent-Cd8lWGKu.js.map} +1 -1
- package/chunk/{City-yVVnZQTP.js → City-BO8oii6s.js} +5 -5
- package/chunk/{City-BmrJpnS6.js.map → City-BO8oii6s.js.map} +1 -1
- package/chunk/{City-BmrJpnS6.js → City-CvuPh0vE.js} +5 -5
- package/chunk/{City-yVVnZQTP.js.map → City-CvuPh0vE.js.map} +1 -1
- package/chunk/{CollegeNameComponent-DtKPZHb-.js → CollegeNameComponent-C63SSy9-.js} +8 -8
- package/chunk/{CollegeNameComponent-DaTimEqC.js.map → CollegeNameComponent-C63SSy9-.js.map} +1 -1
- package/chunk/{CollegeNameComponent-DaTimEqC.js → CollegeNameComponent-DLUa5UO5.js} +8 -8
- package/chunk/{CollegeNameComponent-DtKPZHb-.js.map → CollegeNameComponent-DLUa5UO5.js.map} +1 -1
- package/chunk/{CopyToClipboardComponent-H3bJGcOM.js → CopyToClipboardComponent-BQlp--1k.js} +5 -5
- package/chunk/{CopyToClipboardComponent-9hyfSMC0.js.map → CopyToClipboardComponent-BQlp--1k.js.map} +1 -1
- package/chunk/{CopyToClipboardComponent-9hyfSMC0.js → CopyToClipboardComponent-D2lIKOi1.js} +5 -5
- package/chunk/{CopyToClipboardComponent-H3bJGcOM.js.map → CopyToClipboardComponent-D2lIKOi1.js.map} +1 -1
- package/chunk/{CountryComponentWrapper-Ceq-eink.js → CountryComponentWrapper-7ribqnbU.js} +12 -12
- package/chunk/{CountryComponentWrapper--2UQ7mXP.js.map → CountryComponentWrapper-7ribqnbU.js.map} +1 -1
- package/chunk/{CountryComponentWrapper--2UQ7mXP.js → CountryComponentWrapper-Ucm1dIRU.js} +13 -13
- package/chunk/{CountryComponentWrapper-Ceq-eink.js.map → CountryComponentWrapper-Ucm1dIRU.js.map} +1 -1
- package/chunk/{DriverLicenseNumberComponent-ziLNYB8e.js → DriverLicenseNumberComponent-BOz1NpwC.js} +5 -5
- package/chunk/{DriverLicenseNumberComponent-D9cakdvU.js.map → DriverLicenseNumberComponent-BOz1NpwC.js.map} +1 -1
- package/chunk/{DriverLicenseNumberComponent-D9cakdvU.js → DriverLicenseNumberComponent-BeHTT5Ne.js} +5 -5
- package/chunk/{DriverLicenseNumberComponent-ziLNYB8e.js.map → DriverLicenseNumberComponent-BeHTT5Ne.js.map} +1 -1
- package/chunk/{EBTCardNumberComponent-oYQJ_tP7.js → EBTCardNumberComponent-BqsSdTW-.js} +16 -16
- package/chunk/{EBTCardNumberComponent-B1kv4R4G.js.map → EBTCardNumberComponent-BqsSdTW-.js.map} +1 -1
- package/chunk/{EBTCardNumberComponent-B1kv4R4G.js → EBTCardNumberComponent-DfeKTGSF.js} +16 -16
- package/chunk/{EBTCardNumberComponent-oYQJ_tP7.js.map → EBTCardNumberComponent-DfeKTGSF.js.map} +1 -1
- package/chunk/{EmailLoopPending-In0FH-Ap.js → EmailLoopPending-CEbt9qgk.js} +13 -13
- package/chunk/{EmailLoopPending-In0FH-Ap.js.map → EmailLoopPending-CEbt9qgk.js.map} +1 -1
- package/chunk/{EmailLoopPending-lxRF0bx8.js → EmailLoopPending-nl9f9omb.js} +13 -13
- package/chunk/{EmailLoopPending-lxRF0bx8.js.map → EmailLoopPending-nl9f9omb.js.map} +1 -1
- package/chunk/{FirstResponderOrganizationComponent-fPxZFdpO.js → FirstResponderOrganizationComponent-3_dzxZ3b.js} +6 -6
- package/chunk/{FirstResponderOrganizationComponent-Bru1a0U7.js.map → FirstResponderOrganizationComponent-3_dzxZ3b.js.map} +1 -1
- package/chunk/{FirstResponderOrganizationComponent-Bru1a0U7.js → FirstResponderOrganizationComponent-BMDUk_Ks.js} +6 -6
- package/chunk/{FirstResponderOrganizationComponent-fPxZFdpO.js.map → FirstResponderOrganizationComponent-BMDUk_Ks.js.map} +1 -1
- package/chunk/{FormFieldInputSelect-CjWY_ush.js → FormFieldInputSelect-DVZsJ-dJ.js} +5 -5
- package/chunk/{FormFieldInputSelect-CjWY_ush.js.map → FormFieldInputSelect-DVZsJ-dJ.js.map} +1 -1
- package/chunk/{FormFieldInputSelect-o7QZaYhS.js → FormFieldInputSelect-Dekt13Wn.js} +5 -5
- package/chunk/{FormFieldInputSelect-o7QZaYhS.js.map → FormFieldInputSelect-Dekt13Wn.js.map} +1 -1
- package/chunk/FormFieldLayout-DDEEmlGC.js +4 -4
- package/chunk/FormFieldLayout-DEVPpEyA.js +4 -4
- package/chunk/{FormFieldText-CaWtYVur.js → FormFieldText-C5ELKxp9.js} +8 -8
- package/chunk/{FormFieldText-CJ-GVpZE.js.map → FormFieldText-C5ELKxp9.js.map} +1 -1
- package/chunk/{FormFieldText-CJ-GVpZE.js → FormFieldText-D5TNr9TU.js} +8 -8
- package/chunk/{FormFieldText-CaWtYVur.js.map → FormFieldText-D5TNr9TU.js.map} +1 -1
- package/chunk/{FormFieldTypeahead-CyKKVK89.js → FormFieldTypeahead-8mywdHOl.js} +80 -80
- package/chunk/{FormFieldTypeahead-C6eS7yJg.js.map → FormFieldTypeahead-8mywdHOl.js.map} +1 -1
- package/chunk/{FormFieldTypeahead-C6eS7yJg.js → FormFieldTypeahead-Ckb75rso.js} +80 -80
- package/chunk/{FormFieldTypeahead-CyKKVK89.js.map → FormFieldTypeahead-Ckb75rso.js.map} +1 -1
- package/chunk/{FormSelectChoice-C-rIlDKl.js → FormSelectChoice-B_Cc1d2F.js} +15 -15
- package/chunk/{FormSelectChoice-BahCx4wG.js.map → FormSelectChoice-B_Cc1d2F.js.map} +1 -1
- package/chunk/{FormSelectChoice-BahCx4wG.js → FormSelectChoice-D_80dED1.js} +15 -15
- package/chunk/{FormSelectChoice-C-rIlDKl.js.map → FormSelectChoice-D_80dED1.js.map} +1 -1
- package/chunk/{InputText-CCNbZmMe.js → InputText-D8Ob-kQk.js} +7 -7
- package/chunk/{InputText-CCNbZmMe.js.map → InputText-D8Ob-kQk.js.map} +1 -1
- package/chunk/{InputText-PEiatRRJ.js → InputText-U-PGva3s.js} +7 -7
- package/chunk/{InputText-PEiatRRJ.js.map → InputText-U-PGva3s.js.map} +1 -1
- package/chunk/{LicensedProfessionalOrganizationComponent-CnR_qF3r.js → LicensedProfessionalOrganizationComponent-BEwjSmfW.js} +10 -10
- package/chunk/{LicensedProfessionalOrganizationComponent-CnR_qF3r.js.map → LicensedProfessionalOrganizationComponent-BEwjSmfW.js.map} +1 -1
- package/chunk/{LicensedProfessionalOrganizationComponent-C5pc7hVJ.js → LicensedProfessionalOrganizationComponent-CFVIc7iQ.js} +10 -10
- package/chunk/{LicensedProfessionalOrganizationComponent-C5pc7hVJ.js.map → LicensedProfessionalOrganizationComponent-CFVIc7iQ.js.map} +1 -1
- package/chunk/{MedicalProfessionalOrganizationComponent-CXHX25GN.js → MedicalProfessionalOrganizationComponent-C5h14pIK.js} +8 -8
- package/chunk/{MedicalProfessionalOrganizationComponent-CXHX25GN.js.map → MedicalProfessionalOrganizationComponent-C5h14pIK.js.map} +1 -1
- package/chunk/{MedicalProfessionalOrganizationComponent-DBf6V49M.js → MedicalProfessionalOrganizationComponent-DziG8JnV.js} +8 -8
- package/chunk/{MedicalProfessionalOrganizationComponent-DBf6V49M.js.map → MedicalProfessionalOrganizationComponent-DziG8JnV.js.map} +1 -1
- package/chunk/{MemberIdComponent-oanWSvQh.js → MemberIdComponent-BScPderq.js} +5 -5
- package/chunk/{MemberIdComponent-C8mVSo9m.js.map → MemberIdComponent-BScPderq.js.map} +1 -1
- package/chunk/{MemberIdComponent-C8mVSo9m.js → MemberIdComponent-DOIYFMn2.js} +5 -5
- package/chunk/{MemberIdComponent-oanWSvQh.js.map → MemberIdComponent-DOIYFMn2.js.map} +1 -1
- package/chunk/{MembershipOrganizationComponent-yu-UNXIK.js → MembershipOrganizationComponent-DYRmX21h.js} +6 -6
- package/chunk/{MembershipOrganizationComponent-CN6_d_Fk.js.map → MembershipOrganizationComponent-DYRmX21h.js.map} +1 -1
- package/chunk/{MembershipOrganizationComponent-CN6_d_Fk.js → MembershipOrganizationComponent-D_kZ2VLs.js} +6 -6
- package/chunk/{MembershipOrganizationComponent-yu-UNXIK.js.map → MembershipOrganizationComponent-D_kZ2VLs.js.map} +1 -1
- package/chunk/Onfido-BG8cDEVW.js +4 -4
- package/chunk/{PersonalInfoStepSubmitButton-v_kWLmEw.js → PersonalInfoStepSubmitButton-22jOKa2g.js} +7 -7
- package/chunk/{PersonalInfoStepSubmitButton-j44RdZDq.js.map → PersonalInfoStepSubmitButton-22jOKa2g.js.map} +1 -1
- package/chunk/{PersonalInfoStepSubmitButton-j44RdZDq.js → PersonalInfoStepSubmitButton-Bu2zmi86.js} +7 -7
- package/chunk/{PersonalInfoStepSubmitButton-v_kWLmEw.js.map → PersonalInfoStepSubmitButton-Bu2zmi86.js.map} +1 -1
- package/chunk/PersonalInfoStepWrapper-BCVAx0W6.js +53 -0
- package/chunk/PersonalInfoStepWrapper-BCVAx0W6.js.map +1 -0
- package/chunk/PersonalInfoStepWrapper-DlKHzog8.js +102 -0
- package/chunk/PersonalInfoStepWrapper-DlKHzog8.js.map +1 -0
- package/chunk/{PostalCodeComponent-DrCcV90W.js → PostalCodeComponent-DAMiXR2z.js} +5 -5
- package/chunk/{PostalCodeComponent-DrCcV90W.js.map → PostalCodeComponent-DAMiXR2z.js.map} +1 -1
- package/chunk/{PostalCodeComponent-KXVfZkLx.js → PostalCodeComponent-gTyGTdav.js} +5 -5
- package/chunk/{PostalCodeComponent-KXVfZkLx.js.map → PostalCodeComponent-gTyGTdav.js.map} +1 -1
- package/chunk/{SSN-B_z2R4Bx.js → SSN-BZDlbDHI.js} +6 -6
- package/chunk/{SSN-B_z2R4Bx.js.map → SSN-BZDlbDHI.js.map} +1 -1
- package/chunk/{SSN-Hb1lTx8A.js → SSN-CRCZxt7F.js} +6 -6
- package/chunk/{SSN-Hb1lTx8A.js.map → SSN-CRCZxt7F.js.map} +1 -1
- package/chunk/{StateSelectComponent-CChSqKXz.js → StateSelectComponent-3VINgXA_.js} +5 -5
- package/chunk/{StateSelectComponent-CChSqKXz.js.map → StateSelectComponent-3VINgXA_.js.map} +1 -1
- package/chunk/{StateSelectComponent-CIpB-Rh1.js → StateSelectComponent-qwzKiEzn.js} +5 -5
- package/chunk/{StateSelectComponent-CIpB-Rh1.js.map → StateSelectComponent-qwzKiEzn.js.map} +1 -1
- package/chunk/{StatusComponent-C6J1B7Tl.js → StatusComponent-BA29-IR-.js} +5 -5
- package/chunk/{StatusComponent-C6J1B7Tl.js.map → StatusComponent-BA29-IR-.js.map} +1 -1
- package/chunk/{StatusComponent-pmuIhuXi.js → StatusComponent-CXBhA3Ni.js} +5 -5
- package/chunk/{StatusComponent-pmuIhuXi.js.map → StatusComponent-CXBhA3Ni.js.map} +1 -1
- package/chunk/{StepCard-dcwCtPrW.js → StepCard-BBxGouj6.js} +12 -12
- package/chunk/{StepCard-dcwCtPrW.js.map → StepCard-BBxGouj6.js.map} +1 -1
- package/chunk/{StepCard-CIfaQVu-.js → StepCard-DnOGZrfz.js} +12 -12
- package/chunk/{StepCard-CIfaQVu-.js.map → StepCard-DnOGZrfz.js.map} +1 -1
- package/chunk/{StepCollectMilitaryStatusComponent-7aKgQ9Sj.js → StepCollectMilitaryStatusComponent-BVvtx9IM.js} +26 -26
- package/chunk/{StepCollectMilitaryStatusComponent-7aKgQ9Sj.js.map → StepCollectMilitaryStatusComponent-BVvtx9IM.js.map} +1 -1
- package/chunk/{StepCollectMilitaryStatusComponent-BRimaaXv.js → StepCollectMilitaryStatusComponent-DS2XMziH.js} +28 -28
- package/chunk/{StepCollectMilitaryStatusComponent-BRimaaXv.js.map → StepCollectMilitaryStatusComponent-DS2XMziH.js.map} +1 -1
- package/chunk/{StepDriverLicensePersonalInfoComponent-2TPYKvF4.js → StepDriverLicensePersonalInfoComponent-ChUK8_CL.js} +21 -21
- package/chunk/{StepDriverLicensePersonalInfoComponent-2TPYKvF4.js.map → StepDriverLicensePersonalInfoComponent-ChUK8_CL.js.map} +1 -1
- package/chunk/{StepDriverLicensePersonalInfoComponent-BwVtnrmJ.js → StepDriverLicensePersonalInfoComponent-Skr2qGUg.js} +21 -21
- package/chunk/{StepDriverLicensePersonalInfoComponent-BwVtnrmJ.js.map → StepDriverLicensePersonalInfoComponent-Skr2qGUg.js.map} +1 -1
- package/chunk/{StepGeneralIdentityPersonalInfoComponent-B_GAU5ZU.js → StepGeneralIdentityPersonalInfoComponent-B0RDxv-x.js} +25 -25
- package/chunk/{StepGeneralIdentityPersonalInfoComponent-B_GAU5ZU.js.map → StepGeneralIdentityPersonalInfoComponent-B0RDxv-x.js.map} +1 -1
- package/chunk/{StepGeneralIdentityPersonalInfoComponent-D51YIuCd.js → StepGeneralIdentityPersonalInfoComponent-CxMYNjvS.js} +24 -24
- package/chunk/{StepGeneralIdentityPersonalInfoComponent-D51YIuCd.js.map → StepGeneralIdentityPersonalInfoComponent-CxMYNjvS.js.map} +1 -1
- package/chunk/{StepHybridIdentityPersonalInfoComponent-zAjPWGNG.js → StepHybridIdentityPersonalInfoComponent-BT9_DYzR.js} +25 -25
- package/chunk/{StepHybridIdentityPersonalInfoComponent-kap6IZbx.js.map → StepHybridIdentityPersonalInfoComponent-BT9_DYzR.js.map} +1 -1
- package/chunk/{StepHybridIdentityPersonalInfoComponent-kap6IZbx.js → StepHybridIdentityPersonalInfoComponent-BgI5l8AJ.js} +24 -24
- package/chunk/{StepHybridIdentityPersonalInfoComponent-zAjPWGNG.js.map → StepHybridIdentityPersonalInfoComponent-BgI5l8AJ.js.map} +1 -1
- package/chunk/{StepIDCheckLoopOnfido-Sg4a19wV.js → StepIDCheckLoopOnfido-Ba5IJMDE.js} +11 -11
- package/chunk/{StepIDCheckLoopOnfido-Sg4a19wV.js.map → StepIDCheckLoopOnfido-Ba5IJMDE.js.map} +1 -1
- package/chunk/{StepIDCheckLoopOnfido-djTS20UT.js → StepIDCheckLoopOnfido-C4WgRPlX.js} +11 -11
- package/chunk/{StepIDCheckLoopOnfido-djTS20UT.js.map → StepIDCheckLoopOnfido-C4WgRPlX.js.map} +1 -1
- package/chunk/{StepIDCheckLoopRegula-DZA5G1Z6.js → StepIDCheckLoopRegula-D0Hbm46j.js} +6 -6
- package/chunk/{StepIDCheckLoopRegula-B5I-ojjy.js.map → StepIDCheckLoopRegula-D0Hbm46j.js.map} +1 -1
- package/chunk/{StepIDCheckLoopRegula-B5I-ojjy.js → StepIDCheckLoopRegula-DMJ1Pdll.js} +6 -6
- package/chunk/{StepIDCheckLoopRegula-DZA5G1Z6.js.map → StepIDCheckLoopRegula-DMJ1Pdll.js.map} +1 -1
- package/chunk/{StepInactiveMilitaryPersonalInfoComponent-Czd3ecq6.js → StepInactiveMilitaryPersonalInfoComponent-69VnnhIn.js} +28 -28
- package/chunk/{StepInactiveMilitaryPersonalInfoComponent-Czd3ecq6.js.map → StepInactiveMilitaryPersonalInfoComponent-69VnnhIn.js.map} +1 -1
- package/chunk/{StepInactiveMilitaryPersonalInfoComponent-Bieu_7kd.js → StepInactiveMilitaryPersonalInfoComponent-BxIXowll.js} +28 -28
- package/chunk/{StepInactiveMilitaryPersonalInfoComponent-Bieu_7kd.js.map → StepInactiveMilitaryPersonalInfoComponent-BxIXowll.js.map} +1 -1
- package/chunk/{TeacherSchoolComponent-Bf3ZhJ_c.js → TeacherSchoolComponent-BLfEL1Qa.js} +6 -6
- package/chunk/{TeacherSchoolComponent-BSHPjiwQ.js.map → TeacherSchoolComponent-BLfEL1Qa.js.map} +1 -1
- package/chunk/{TeacherSchoolComponent-BSHPjiwQ.js → TeacherSchoolComponent-R8ERd8je.js} +6 -6
- package/chunk/{TeacherSchoolComponent-Bf3ZhJ_c.js.map → TeacherSchoolComponent-R8ERd8je.js.map} +1 -1
- package/chunk/ar-DRRl0F7-.js +4 -4
- package/chunk/bg-F0WsRCx8.js +4 -4
- package/chunk/bn-IN-CMjQj55J.js +4 -4
- package/chunk/cs-fNk_NoQI.js +4 -4
- package/chunk/da-KMILteCO.js +4 -4
- package/chunk/de-CWVNPgGa.js +4 -4
- package/chunk/{downshift.esm-huKBwB2d.js → downshift.esm-CssrXaoY.js} +5 -5
- package/chunk/{downshift.esm-CtrbqQGL.js.map → downshift.esm-CssrXaoY.js.map} +1 -1
- package/chunk/{downshift.esm-CtrbqQGL.js → downshift.esm-DdJojPIu.js} +5 -5
- package/chunk/{downshift.esm-huKBwB2d.js.map → downshift.esm-DdJojPIu.js.map} +1 -1
- package/chunk/el-Cwv4peel.js +4 -4
- package/chunk/en-GB-Dqonxi7-.js +4 -4
- package/chunk/es-ES-C4H8ciVZ.js +4 -4
- package/chunk/es-hn_UHPBI.js +4 -4
- package/chunk/fi-CYcXXvjq.js +4 -4
- package/chunk/fr-CA-CGAQ-6AP.js +4 -4
- package/chunk/fr-D_IYCyUP.js +4 -4
- package/chunk/ga-45LsHAEB.js +4 -4
- package/chunk/hi-IN-ChuePzRc.js +4 -4
- package/chunk/hr-CX75fSnP.js +4 -4
- package/chunk/hu-BaLNR_Fx.js +4 -4
- package/chunk/id-BuJILOHQ.js +4 -4
- package/chunk/{index-BbOCWcRK.js → index--4tHsN4Z.js} +14 -14
- package/chunk/{index-BbOCWcRK.js.map → index--4tHsN4Z.js.map} +1 -1
- package/chunk/{index-Cgw-oCXC.js → index-B06Vym6C.js} +17 -17
- package/chunk/{index-Blxi9-p3.js.map → index-B06Vym6C.js.map} +1 -1
- package/chunk/{index-B0SBEWOf.js → index-B5yen8fX.js} +10 -10
- package/chunk/{index-B0SBEWOf.js.map → index-B5yen8fX.js.map} +1 -1
- package/chunk/{index-CaBrLsal.js → index-B8oKdmJa.js} +16 -16
- package/chunk/{index-CaBrLsal.js.map → index-B8oKdmJa.js.map} +1 -1
- package/chunk/{index-Tt8XFCKg.js → index-B9N_35H1.js} +34 -34
- package/chunk/{index-CMYxhs0t.js.map → index-B9N_35H1.js.map} +1 -1
- package/chunk/{index-BDfHyxH2.js → index-BA0YQsod.js} +22 -22
- package/chunk/{index-BDfHyxH2.js.map → index-BA0YQsod.js.map} +1 -1
- package/chunk/{index-D62LImgf.js → index-BCrUCs6l.js} +17 -17
- package/chunk/{index-CfHHbJNm.js.map → index-BCrUCs6l.js.map} +1 -1
- package/chunk/{index-brtM2eoI.js → index-BTyiwF80.js} +15 -15
- package/chunk/{index-brtM2eoI.js.map → index-BTyiwF80.js.map} +1 -1
- package/chunk/{index-yLck7gVG.js → index-BWd3Gj_X.js} +30 -30
- package/chunk/{index-yLck7gVG.js.map → index-BWd3Gj_X.js.map} +1 -1
- package/chunk/{index-B4FcNhzB.js → index-BY7MLfGQ.js} +11 -11
- package/chunk/{index-B4FcNhzB.js.map → index-BY7MLfGQ.js.map} +1 -1
- package/chunk/{index-CMYxhs0t.js → index-BbdG7ED4.js} +36 -36
- package/chunk/{index-Tt8XFCKg.js.map → index-BbdG7ED4.js.map} +1 -1
- package/chunk/{index-D7Mqx5na.js → index-BhhbjTBf.js} +28 -28
- package/chunk/{index-D2d6x5LN.js.map → index-BhhbjTBf.js.map} +1 -1
- package/chunk/{index-dTu4ORna.js → index-Bk-uaURB.js} +9 -9
- package/chunk/{index-Brpm5gN6.js.map → index-Bk-uaURB.js.map} +1 -1
- package/chunk/{index-D2d6x5LN.js → index-BkWR02uU.js} +28 -28
- package/chunk/{index-D7Mqx5na.js.map → index-BkWR02uU.js.map} +1 -1
- package/chunk/{index-BA3bE-f-.js → index-BvGr52QK.js} +11 -11
- package/chunk/{index-BA3bE-f-.js.map → index-BvGr52QK.js.map} +1 -1
- package/chunk/{index-CrPc1exn.js → index-ByZqea9-.js} +11 -11
- package/chunk/{index-BZ1nv-sB.js.map → index-ByZqea9-.js.map} +1 -1
- package/chunk/{index-Ccp2Exqo.js → index-Bz-BZZ-I.js} +29 -29
- package/chunk/{index-Ccp2Exqo.js.map → index-Bz-BZZ-I.js.map} +1 -1
- package/chunk/{index-DGCqI3ez.js → index-CG33Xq_L.js} +29 -29
- package/chunk/{index-DGCqI3ez.js.map → index-CG33Xq_L.js.map} +1 -1
- package/chunk/{index-Di4VOQ0c.js → index-Cb8H7NMc.js} +44 -44
- package/chunk/{index-BKpiJJJ9.js.map → index-Cb8H7NMc.js.map} +1 -1
- package/chunk/{index-CwaTj-69.js → index-CbEBL8DR.js} +13 -13
- package/chunk/{index-CwaTj-69.js.map → index-CbEBL8DR.js.map} +1 -1
- package/chunk/{index-CTjvQpKK.js → index-CcVF5Mn8.js} +33 -33
- package/chunk/{index-CTjvQpKK.js.map → index-CcVF5Mn8.js.map} +1 -1
- package/chunk/{index-Bn00xQJF.js → index-CvjYvI52.js} +6 -6
- package/chunk/{index-Bn00xQJF.js.map → index-CvjYvI52.js.map} +1 -1
- package/chunk/{index-Blxi9-p3.js → index-D2ASN9F5.js} +17 -17
- package/chunk/{index-Cgw-oCXC.js.map → index-D2ASN9F5.js.map} +1 -1
- package/chunk/{index-Brpm5gN6.js → index-D7tLO360.js} +6 -6
- package/chunk/{index-dTu4ORna.js.map → index-D7tLO360.js.map} +1 -1
- package/chunk/index-DIkWpujR.js +4 -4
- package/chunk/{index-BKpiJJJ9.js → index-D_jjkk6R.js} +17 -17
- package/chunk/{index-Di4VOQ0c.js.map → index-D_jjkk6R.js.map} +1 -1
- package/chunk/{index-DsIG7oZ5.js → index-DaqKa17_.js} +49 -49
- package/chunk/{index-DsIG7oZ5.js.map → index-DaqKa17_.js.map} +1 -1
- package/chunk/{index-CMwYcIy7.js → index-DaxmYxYQ.js} +33 -33
- package/chunk/{index-B0gkU4sD.js.map → index-DaxmYxYQ.js.map} +1 -1
- package/chunk/{index-CR19uOwz.js → index-Dbedpzxf.js} +8 -8
- package/chunk/{index-CR19uOwz.js.map → index-Dbedpzxf.js.map} +1 -1
- package/chunk/{index-DFoMYB8K.js → index-Ddnm8yRA.js} +9 -9
- package/chunk/{index-DFoMYB8K.js.map → index-Ddnm8yRA.js.map} +1 -1
- package/chunk/{index-CTGY1a4m.js → index-DqWLITMK.js} +9 -9
- package/chunk/{index-CTGY1a4m.js.map → index-DqWLITMK.js.map} +1 -1
- package/chunk/{index-4SoX7nBO.js → index-DtLPqeMr.js} +23 -23
- package/chunk/{index-4SoX7nBO.js.map → index-DtLPqeMr.js.map} +1 -1
- package/chunk/{index-CO75J-sD.js → index-Dxe89KuR.js} +46 -46
- package/chunk/{index-CO75J-sD.js.map → index-Dxe89KuR.js.map} +1 -1
- package/chunk/{index-DM6d_MOp.js → index-EoexN2D2.js} +23 -23
- package/chunk/{index-DM6d_MOp.js.map → index-EoexN2D2.js.map} +1 -1
- package/chunk/{index-BZ1nv-sB.js → index-c2lNIRe2.js} +11 -11
- package/chunk/{index-CrPc1exn.js.map → index-c2lNIRe2.js.map} +1 -1
- package/chunk/{index-XxwXcW8j.js → index-gSxZOEDm.js} +31 -31
- package/chunk/{index-XxwXcW8j.js.map → index-gSxZOEDm.js.map} +1 -1
- package/chunk/{index-CHDBBfsg.js → index-jkBy42Tf.js} +6 -6
- package/chunk/{index-CHDBBfsg.js.map → index-jkBy42Tf.js.map} +1 -1
- package/chunk/{index-B0gkU4sD.js → index-oh8h9rFi.js} +37 -37
- package/chunk/{index-CMwYcIy7.js.map → index-oh8h9rFi.js.map} +1 -1
- package/chunk/{index-CfHHbJNm.js → index-qnonuzV7.js} +19 -19
- package/chunk/{index-D62LImgf.js.map → index-qnonuzV7.js.map} +1 -1
- package/chunk/{index-B6DSPaeb.js → index-vT4MxpSf.js} +21 -21
- package/chunk/{index-B6DSPaeb.js.map → index-vT4MxpSf.js.map} +1 -1
- package/chunk/{index-EUJqfdiJ.js → index-wtMb5Ukv.js} +7 -7
- package/chunk/{index-EUJqfdiJ.js.map → index-wtMb5Ukv.js.map} +1 -1
- package/chunk/is-B3D8NTKa.js +4 -4
- package/chunk/it-CzAy2lzA.js +4 -4
- package/chunk/iw-C9nimuXe.js +4 -4
- package/chunk/ja-BEXgm7zu.js +4 -4
- package/chunk/ko-Ct-zPR2E.js +4 -4
- package/chunk/lo-Di9C_kLP.js +4 -4
- package/chunk/lt-CEBQxuWT.js +4 -4
- package/chunk/{militaryStepHelpers-jW2_4c1l.js → militaryStepHelpers-B7eWlfFD.js} +6 -6
- package/chunk/{militaryStepHelpers-jW2_4c1l.js.map → militaryStepHelpers-B7eWlfFD.js.map} +1 -1
- package/chunk/{militaryStepHelpers-0OUuQpBw.js → militaryStepHelpers-DwVOy2yj.js} +6 -6
- package/chunk/{militaryStepHelpers-0OUuQpBw.js.map → militaryStepHelpers-DwVOy2yj.js.map} +1 -1
- package/chunk/{mocks-CeAm-JFs.js → mocks-BbQTtWk5.js} +5 -5
- package/chunk/{mocks-CeAm-JFs.js.map → mocks-BbQTtWk5.js.map} +1 -1
- package/chunk/{mocks-ClJ0M6QH.js → mocks-Rqlyj4hz.js} +5 -5
- package/chunk/{mocks-ClJ0M6QH.js.map → mocks-Rqlyj4hz.js.map} +1 -1
- package/chunk/ms-CxGIGN7C.js +4 -4
- package/chunk/nl-BE-DPBUnfk6.js +4 -4
- package/chunk/nl-BIm7MF9X.js +4 -4
- package/chunk/no-BmBisNVx.js +4 -4
- package/chunk/pl-BOGNzi_o.js +4 -4
- package/chunk/pt-BR-uABX_syI.js +4 -4
- package/chunk/pt-MSESKPWr.js +4 -4
- package/chunk/ro-DoSzUhte.js +4 -4
- package/chunk/ru-_re-OOAp.js +4 -4
- package/chunk/sk-BS3zToE5.js +4 -4
- package/chunk/sl-CVBUMpyN.js +4 -4
- package/chunk/sr-Cmqfavur.js +4 -4
- package/chunk/sv-BzRp9aoC.js +4 -4
- package/chunk/sw-C4I4Ivyc.js +4 -4
- package/chunk/th-SsMlrFQN.js +4 -4
- package/chunk/tr-i4hcCWIF.js +4 -4
- package/chunk/uk-CLl1S03h.js +4 -4
- package/chunk/ur-CfVN1Pr2.js +4 -4
- package/chunk/{useCollectFieldsEndpoint-Cd6d_u47.js → useCollectFieldsEndpoint-690w1BPY.js} +8 -8
- package/chunk/{useCollectFieldsEndpoint-Cd6d_u47.js.map → useCollectFieldsEndpoint-690w1BPY.js.map} +1 -1
- package/chunk/{useCollectFieldsEndpoint-DqTjyVEr.js → useCollectFieldsEndpoint-DCP1smnC.js} +7 -7
- package/chunk/{useCollectFieldsEndpoint-DqTjyVEr.js.map → useCollectFieldsEndpoint-DCP1smnC.js.map} +1 -1
- package/chunk/{useMetrics-D2fG6cgw.js → useMetrics-CUyKTp9h.js} +5 -5
- package/chunk/{useMetrics-D2fG6cgw.js.map → useMetrics-CUyKTp9h.js.map} +1 -1
- package/chunk/{useMetrics-wq7yrL0b.js → useMetrics-DwEPEO5F.js} +5 -5
- package/chunk/{useMetrics-wq7yrL0b.js.map → useMetrics-DwEPEO5F.js.map} +1 -1
- package/chunk/vi-STS0AV-q.js +4 -4
- package/chunk/zh-HK-DGm6tmJZ.js +4 -4
- package/chunk/zh-rPW1DJOh.js +4 -4
- package/chunk/zu-D7Vc6viT.js +4 -4
- package/package.json +1 -1
- package/sheerid-install.css +4 -4
- package/sheerid-install.js +4 -4
- package/sheerid.css +4 -4
- package/sheerid.js +1329 -1322
- package/sheerid.js.map +1 -1
- package/chunk/PersonalInfoStepWrapper-BOBNCgik.js +0 -43
- package/chunk/PersonalInfoStepWrapper-BOBNCgik.js.map +0 -1
- package/chunk/PersonalInfoStepWrapper-PV06WMKL.js +0 -39
- package/chunk/PersonalInfoStepWrapper-PV06WMKL.js.map +0 -1
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
|
|
2
2
|
/**
|
|
3
|
-
* VERSION: 2.
|
|
4
|
-
* BUILD_TIMESTAMP:
|
|
5
|
-
* BUILD_DATE: Tue May 19 2026
|
|
6
|
-
* BUILD_COMMIT:
|
|
3
|
+
* VERSION: 2.233.0-alpha.1
|
|
4
|
+
* BUILD_TIMESTAMP: 1779231347541
|
|
5
|
+
* BUILD_DATE: Tue May 19 2026 22:55:47 GMT+0000 (Coordinated Universal Time)
|
|
6
|
+
* BUILD_COMMIT: 5a2425d625d875ef656bb4cf2539177a8f02c67d
|
|
7
7
|
*/
|
|
8
|
-
import {
|
|
8
|
+
import { r as c, R as V, a6 as R, N as F, V as O, j as a, J as K, F as C, p as S, q as P } from "../sheerid.js";
|
|
9
9
|
var z = ["alpha", "numeric", "alphanumeric"], B = {
|
|
10
10
|
alpha: {
|
|
11
11
|
type: "text",
|
|
@@ -25,8 +25,8 @@ var z = ["alpha", "numeric", "alphanumeric"], B = {
|
|
|
25
25
|
max: "9"
|
|
26
26
|
}
|
|
27
27
|
}, U = c.forwardRef(function(t, i) {
|
|
28
|
-
var h = t.allowedCharacters, p = h === void 0 ? "alphanumeric" : h, m = t.ariaLabel, f = t.autoFocus, b = f === void 0 ? !0 : f, y = t.containerClassName, l = t.disabled, d = t.inputClassName, v = t.isPassword, w = v === void 0 ? !1 : v,
|
|
29
|
-
if (isNaN(
|
|
28
|
+
var h = t.allowedCharacters, p = h === void 0 ? "alphanumeric" : h, m = t.ariaLabel, f = t.autoFocus, b = f === void 0 ? !0 : f, y = t.containerClassName, l = t.disabled, d = t.inputClassName, v = t.isPassword, w = v === void 0 ? !1 : v, E = t.length, N = E === void 0 ? 6 : E, D = t.placeholder, M = t.onChange;
|
|
29
|
+
if (isNaN(N) || N < 1)
|
|
30
30
|
throw new Error("Length should be a number and greater than 0");
|
|
31
31
|
if (!z.some(function(u) {
|
|
32
32
|
return u === p;
|
|
@@ -55,7 +55,7 @@ var z = ["alpha", "numeric", "alphanumeric"], B = {
|
|
|
55
55
|
return o.value;
|
|
56
56
|
}).join("");
|
|
57
57
|
M && M(e);
|
|
58
|
-
},
|
|
58
|
+
}, I = function(e) {
|
|
59
59
|
var o = e.target, n = o.value, s = o.nextElementSibling;
|
|
60
60
|
n.length > 1 ? (e.target.value = n.charAt(0), s !== null && s.focus()) : n.match(g.pattern) ? s !== null && s.focus() : e.target.value = "", x();
|
|
61
61
|
}, L = function(e) {
|
|
@@ -81,7 +81,7 @@ var z = ["alpha", "numeric", "alphanumeric"], B = {
|
|
|
81
81
|
}, _ = [], k = function(e) {
|
|
82
82
|
_.push(V.createElement("input", Object.assign({
|
|
83
83
|
key: e,
|
|
84
|
-
onChange:
|
|
84
|
+
onChange: I,
|
|
85
85
|
onKeyDown: L,
|
|
86
86
|
onFocus: T,
|
|
87
87
|
onPaste: $
|
|
@@ -95,19 +95,19 @@ var z = ["alpha", "numeric", "alphanumeric"], B = {
|
|
|
95
95
|
autoComplete: e === 0 ? "one-time-code" : "off",
|
|
96
96
|
"aria-label": m ? m + ". Character " + (e + 1) + "." : "Character " + (e + 1) + ".",
|
|
97
97
|
disabled: l,
|
|
98
|
-
placeholder:
|
|
98
|
+
placeholder: D
|
|
99
99
|
})));
|
|
100
|
-
},
|
|
101
|
-
k(
|
|
100
|
+
}, j = 0; j < N; j++)
|
|
101
|
+
k(j);
|
|
102
102
|
return V.createElement("div", {
|
|
103
103
|
className: y
|
|
104
104
|
}, _);
|
|
105
105
|
});
|
|
106
|
-
const
|
|
106
|
+
const q = ({
|
|
107
107
|
verificationService: t
|
|
108
108
|
}) => {
|
|
109
109
|
const i = t.viewModel, { fieldValidationErrors: h, verificationResponse: p } = t, { errorIds: m } = p, f = c.useRef(null), b = (l, d) => {
|
|
110
|
-
const v =
|
|
110
|
+
const v = P(
|
|
111
111
|
i,
|
|
112
112
|
(w) => {
|
|
113
113
|
w[l] = d;
|
|
@@ -115,7 +115,7 @@ const G = ({
|
|
|
115
115
|
);
|
|
116
116
|
t.updateViewModel(v);
|
|
117
117
|
}, y = () => {
|
|
118
|
-
const l =
|
|
118
|
+
const l = P(
|
|
119
119
|
i,
|
|
120
120
|
(d) => {
|
|
121
121
|
d.didManuallyVerify = !0, delete d.authenticationCode;
|
|
@@ -209,5 +209,5 @@ const G = ({
|
|
|
209
209
|
);
|
|
210
210
|
};
|
|
211
211
|
export {
|
|
212
|
-
|
|
212
|
+
q as default
|
|
213
213
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index-CaBrLsal.js","sources":["../../../node_modules/react-auth-code-input/dist/index.modern.js","../../src/components/StepCompleteAuthentication/StepCompleteAuthenticationComponent.tsx"],"sourcesContent":["import React, { forwardRef, useRef, useImperativeHandle, useEffect } from 'react';\n\nvar allowedCharactersValues = ['alpha', 'numeric', 'alphanumeric'];\nvar propsMap = {\n alpha: {\n type: 'text',\n inputMode: 'text',\n pattern: '[a-zA-Z]{1}'\n },\n alphanumeric: {\n type: 'text',\n inputMode: 'text',\n pattern: '[a-zA-Z0-9]{1}'\n },\n numeric: {\n type: 'tel',\n inputMode: 'numeric',\n pattern: '[0-9]{1}',\n min: '0',\n max: '9'\n }\n};\nvar AuthCode = forwardRef(function (_ref, ref) {\n var _ref$allowedCharacter = _ref.allowedCharacters,\n allowedCharacters = _ref$allowedCharacter === void 0 ? 'alphanumeric' : _ref$allowedCharacter,\n ariaLabel = _ref.ariaLabel,\n _ref$autoFocus = _ref.autoFocus,\n autoFocus = _ref$autoFocus === void 0 ? true : _ref$autoFocus,\n containerClassName = _ref.containerClassName,\n disabled = _ref.disabled,\n inputClassName = _ref.inputClassName,\n _ref$isPassword = _ref.isPassword,\n isPassword = _ref$isPassword === void 0 ? false : _ref$isPassword,\n _ref$length = _ref.length,\n length = _ref$length === void 0 ? 6 : _ref$length,\n placeholder = _ref.placeholder,\n onChange = _ref.onChange;\n\n if (isNaN(length) || length < 1) {\n throw new Error('Length should be a number and greater than 0');\n }\n\n if (!allowedCharactersValues.some(function (value) {\n return value === allowedCharacters;\n })) {\n throw new Error('Invalid value for allowedCharacters. Use alpha, numeric, or alphanumeric');\n }\n\n var inputsRef = useRef([]);\n var inputProps = propsMap[allowedCharacters];\n useImperativeHandle(ref, function () {\n return {\n focus: function focus() {\n if (inputsRef.current) {\n inputsRef.current[0].focus();\n }\n },\n clear: function clear() {\n if (inputsRef.current) {\n for (var i = 0; i < inputsRef.current.length; i++) {\n inputsRef.current[i].value = '';\n }\n\n inputsRef.current[0].focus();\n }\n\n sendResult();\n }\n };\n });\n useEffect(function () {\n if (autoFocus) {\n inputsRef.current[0].focus();\n }\n }, []);\n\n var sendResult = function sendResult() {\n var res = inputsRef.current.map(function (input) {\n return input.value;\n }).join('');\n onChange && onChange(res);\n };\n\n var handleOnChange = function handleOnChange(e) {\n var _e$target = e.target,\n value = _e$target.value,\n nextElementSibling = _e$target.nextElementSibling;\n\n if (value.length > 1) {\n e.target.value = value.charAt(0);\n\n if (nextElementSibling !== null) {\n nextElementSibling.focus();\n }\n } else {\n if (value.match(inputProps.pattern)) {\n if (nextElementSibling !== null) {\n nextElementSibling.focus();\n }\n } else {\n e.target.value = '';\n }\n }\n\n sendResult();\n };\n\n var handleOnKeyDown = function handleOnKeyDown(e) {\n var key = e.key;\n var target = e.target;\n\n if (key === 'Backspace') {\n if (target.value === '') {\n if (target.previousElementSibling !== null) {\n var t = target.previousElementSibling;\n t.value = '';\n t.focus();\n e.preventDefault();\n }\n } else {\n target.value = '';\n }\n\n sendResult();\n }\n };\n\n var handleOnFocus = function handleOnFocus(e) {\n e.target.select();\n };\n\n var handleOnPaste = function handleOnPaste(e) {\n var pastedValue = e.clipboardData.getData('Text');\n var currentInput = 0;\n\n for (var i = 0; i < pastedValue.length; i++) {\n var pastedCharacter = pastedValue.charAt(i);\n var currentValue = inputsRef.current[currentInput].value;\n\n if (pastedCharacter.match(inputProps.pattern)) {\n if (!currentValue) {\n inputsRef.current[currentInput].value = pastedCharacter;\n\n if (inputsRef.current[currentInput].nextElementSibling !== null) {\n inputsRef.current[currentInput].nextElementSibling.focus();\n currentInput++;\n }\n }\n }\n }\n\n sendResult();\n e.preventDefault();\n };\n\n var inputs = [];\n\n var _loop = function _loop(i) {\n inputs.push(React.createElement(\"input\", Object.assign({\n key: i,\n onChange: handleOnChange,\n onKeyDown: handleOnKeyDown,\n onFocus: handleOnFocus,\n onPaste: handleOnPaste\n }, inputProps, {\n type: isPassword ? 'password' : inputProps.type,\n ref: function ref(el) {\n inputsRef.current[i] = el;\n },\n maxLength: 1,\n className: inputClassName,\n autoComplete: i === 0 ? 'one-time-code' : 'off',\n \"aria-label\": ariaLabel ? ariaLabel + \". Character \" + (i + 1) + \".\" : \"Character \" + (i + 1) + \".\",\n disabled: disabled,\n placeholder: placeholder\n })));\n };\n\n for (var i = 0; i < length; i++) {\n _loop(i);\n }\n\n return React.createElement(\"div\", {\n className: containerClassName\n }, inputs);\n});\n\nexport default AuthCode;\n//# sourceMappingURL=index.modern.js.map\n","import * as React from \"react\";\nimport { FormattedHTMLMessage } from \"react-intl\";\nimport AuthCode from \"react-auth-code-input\";\nimport produce from \"immer\";\n\nimport {\n type CompleteAuthenticationViewModel,\n type VerificationService,\n} from \"../../lib/types/types\";\nimport {\n submitForm,\n updateFieldValidationErrorsByFieldId,\n} from \"../../lib/utils/stepComponentHelpers/stepComponentHelpers\";\nimport { AUTH_TOKEN_LENGTH } from \"../../constants\";\nimport { VerificationStepsEnum } from \"../../lib/types/runtimeTypes\";\nimport { AnnouncingHeader } from \"../AnnouncingHeader/AnnouncingHeader\";\n\ninterface StepCompleteAuthenticationProps {\n verificationService: VerificationService;\n}\n\nexport const StepCompleteAuthenticationComponent = ({\n verificationService,\n}: StepCompleteAuthenticationProps) => {\n const viewModel = verificationService.viewModel as CompleteAuthenticationViewModel;\n const { fieldValidationErrors, verificationResponse } = verificationService;\n const { errorIds } = verificationResponse;\n\n const authInputRef = React.useRef(null);\n\n const updateCompleteAuthenticationViewmodel = (\n key: keyof CompleteAuthenticationViewModel,\n value: any,\n ) => {\n const nextState: CompleteAuthenticationViewModel = produce(\n viewModel,\n (draft: CompleteAuthenticationViewModel) => {\n (draft[key] as any) = value;\n },\n );\n verificationService.updateViewModel(nextState);\n };\n\n const manuallyVerifyViewModel = (): CompleteAuthenticationViewModel => {\n const nextState: CompleteAuthenticationViewModel = produce(\n viewModel,\n (draft: CompleteAuthenticationViewModel) => {\n draft.didManuallyVerify = true;\n delete draft.authenticationCode;\n },\n );\n verificationService.updateViewModel(nextState);\n\n return nextState;\n };\n\n React.useEffect(() => {\n if (viewModel.authenticationCode) {\n // reset local viewModel's authenticationCode to prevent form from submitting\n // prematurely when provided with an incorrect auth code.\n viewModel.authenticationCode = \"\";\n }\n }, []);\n\n React.useEffect(() => {\n if (viewModel.authenticationCode.length >= AUTH_TOKEN_LENGTH) {\n submitForm(viewModel, verificationService, VerificationStepsEnum.completeAuthentication);\n }\n }, [viewModel.authenticationCode]);\n\n return (\n <div\n id=\"sid-step-complete-authentication\"\n className=\"sid-step-complete-authentication-container sid-l-container\"\n >\n <div className=\"sid-header\">\n <AnnouncingHeader align=\"center\">\n <FormattedHTMLMessage\n id=\"step.completeAuthentication.title\"\n defaultMessage=\"Verify with Remember Me\"\n />\n </AnnouncingHeader>\n <div className=\"sid-header__subtitle sid-l-horz-center\">\n <FormattedHTMLMessage\n id=\"step.completeAuthentication.subtitle\"\n defaultMessage=\"Enter the code sent to your email.\"\n />\n </div>\n </div>\n <div className=\"sid-l-space-top-md\" />\n <div className=\"auth-code\">\n <AuthCode\n onChange={(token) => {\n updateCompleteAuthenticationViewmodel(\"authenticationCode\", token);\n updateFieldValidationErrorsByFieldId(\"authenticationCode\", token, verificationService);\n }}\n ref={authInputRef}\n allowedCharacters=\"numeric\"\n length={AUTH_TOKEN_LENGTH}\n isPassword\n containerClassName=\"auth-code__container\"\n inputClassName={`auth-code__input${\n fieldValidationErrors.authenticationCode ? \" auth-code__input-error\" : \"\"\n }`}\n />\n {fieldValidationErrors.authenticationCode ||\n (errorIds?.length > 0 && (\n <div className=\"auth-code__error-container\">\n <div>\n <img\n alt=\"red-exclaimation-circle\"\n src=\"https://assets-resources.sheerid.com/common/images/2018/icons/red-exclaimation-circle.svg\"\n />\n </div>\n <div className=\"auth-code__error-text\">\n <FormattedHTMLMessage\n id=\"errorId.invalidAuthenticationLoopToken\"\n defaultMessage=\"The code provided is invalid\"\n />\n </div>\n </div>\n ))}\n </div>\n <div className=\"sid-complete-auth__manually-verify-button-continer\">\n <button\n type=\"button\"\n className=\"sid-btn sid-btn-light sid-complete-auth__manually-verify-button\"\n aria-label=\"submit\"\n onClick={() => {\n submitForm(\n manuallyVerifyViewModel(),\n verificationService,\n VerificationStepsEnum.completeAuthentication,\n );\n }}\n >\n <FormattedHTMLMessage\n id=\"step.completeAuthentication.manuallyVerifyButton\"\n defaultMessage=\"Manually verify\"\n />\n </button>\n </div>\n </div>\n );\n};\n"],"names":["allowedCharactersValues","propsMap","AuthCode","forwardRef","_ref","ref","_ref$allowedCharacter","allowedCharacters","ariaLabel","_ref$autoFocus","autoFocus","containerClassName","disabled","inputClassName","_ref$isPassword","isPassword","_ref$length","length","placeholder","onChange","value","inputsRef","useRef","inputProps","useImperativeHandle","i","sendResult","useEffect","res","input","handleOnChange","_e$target","nextElementSibling","handleOnKeyDown","key","target","t","handleOnFocus","handleOnPaste","pastedValue","currentInput","pastedCharacter","currentValue","inputs","_loop","React","el","StepCompleteAuthenticationComponent","verificationService","viewModel","fieldValidationErrors","verificationResponse","errorIds","authInputRef","React.useRef","updateCompleteAuthenticationViewmodel","nextState","produce","draft","manuallyVerifyViewModel","React.useEffect","AUTH_TOKEN_LENGTH","submitForm","VerificationStepsEnum","jsxs","jsx","AnnouncingHeader","FormattedHTMLMessage","token","updateFieldValidationErrorsByFieldId"],"mappings":";AAEA,IAAIA,IAA0B,CAAC,SAAS,WAAW,cAAc,GAC7DC,IAAW;AAAA,EACb,OAAO;AAAA,IACL,MAAM;AAAA,IACN,WAAW;AAAA,IACX,SAAS;AAAA,EACb;AAAA,EACE,cAAc;AAAA,IACZ,MAAM;AAAA,IACN,WAAW;AAAA,IACX,SAAS;AAAA,EACb;AAAA,EACE,SAAS;AAAA,IACP,MAAM;AAAA,IACN,WAAW;AAAA,IACX,SAAS;AAAA,IACT,KAAK;AAAA,IACL,KAAK;AAAA,EACT;AACA,GACIC,IAAWC,EAAAA,WAAW,SAAUC,GAAMC,GAAK;AAC7C,MAAIC,IAAwBF,EAAK,mBAC7BG,IAAoBD,MAA0B,SAAS,iBAAiBA,GACxEE,IAAYJ,EAAK,WACjBK,IAAiBL,EAAK,WACtBM,IAAYD,MAAmB,SAAS,KAAOA,GAC/CE,IAAqBP,EAAK,oBAC1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,mBACdX,EAAsB,qBAAqB,4BAA4B,EACzE;AAAA,YAAA;AAAA,UAAA;AAAA,UAEDA,EAAsB,sBACpBE,GAAU,SAAS,KAClBY,gBAAAA,OAAC,OAAA,EAAI,WAAU,8BACb,UAAA;AAAA,YAAAC,gBAAAA,MAAC,OAAA,EACC,UAAAA,gBAAAA,EAAAA;AAAAA,cAAC;AAAA,cAAA;AAAA,gBACC,KAAI;AAAA,gBACJ,KAAI;AAAA,cAAA;AAAA,YAAA,GAER;AAAA,YACAA,gBAAAA,EAAAA,IAAC,OAAA,EAAI,WAAU,yBACb,UAAAA,gBAAAA,EAAAA;AAAAA,cAACE;AAAA,cAAA;AAAA,gBACC,IAAG;AAAA,gBACH,gBAAe;AAAA,cAAA;AAAA,YAAA,EACjB,CACF;AAAA,UAAA,EAAA,CACF;AAAA,QAAA,GAEN;AAAA,QACAF,gBAAAA,EAAAA,IAAC,OAAA,EAAI,WAAU,sDACb,UAAAA,gBAAAA,EAAAA;AAAAA,UAAC;AAAA,UAAA;AAAA,YACC,MAAK;AAAA,YACL,WAAU;AAAA,YACV,cAAW;AAAA,YACX,SAAS,MAAM;AACb,cAAAH;AAAA,gBACEH,EAAA;AAAA,gBACAX;AAAA,gBACAe,EAAsB;AAAA,cAAA;AAAA,YAE1B;AAAA,YAEA,UAAAE,gBAAAA,EAAAA;AAAAA,cAACE;AAAA,cAAA;AAAA,gBACC,IAAG;AAAA,gBACH,gBAAe;AAAA,cAAA;AAAA,YAAA;AAAA,UACjB;AAAA,QAAA,EACF,CACF;AAAA,MAAA;AAAA,IAAA;AAAA,EAAA;AAGN;","x_google_ignoreList":[0]}
|
|
1
|
+
{"version":3,"file":"index-B8oKdmJa.js","sources":["../../../node_modules/react-auth-code-input/dist/index.modern.js","../../src/components/StepCompleteAuthentication/StepCompleteAuthenticationComponent.tsx"],"sourcesContent":["import React, { forwardRef, useRef, useImperativeHandle, useEffect } from 'react';\n\nvar allowedCharactersValues = ['alpha', 'numeric', 'alphanumeric'];\nvar propsMap = {\n alpha: {\n type: 'text',\n inputMode: 'text',\n pattern: '[a-zA-Z]{1}'\n },\n alphanumeric: {\n type: 'text',\n inputMode: 'text',\n pattern: '[a-zA-Z0-9]{1}'\n },\n numeric: {\n type: 'tel',\n inputMode: 'numeric',\n pattern: '[0-9]{1}',\n min: '0',\n max: '9'\n }\n};\nvar AuthCode = forwardRef(function (_ref, ref) {\n var _ref$allowedCharacter = _ref.allowedCharacters,\n allowedCharacters = _ref$allowedCharacter === void 0 ? 'alphanumeric' : _ref$allowedCharacter,\n ariaLabel = _ref.ariaLabel,\n _ref$autoFocus = _ref.autoFocus,\n autoFocus = _ref$autoFocus === void 0 ? true : _ref$autoFocus,\n containerClassName = _ref.containerClassName,\n disabled = _ref.disabled,\n inputClassName = _ref.inputClassName,\n _ref$isPassword = _ref.isPassword,\n isPassword = _ref$isPassword === void 0 ? false : _ref$isPassword,\n _ref$length = _ref.length,\n length = _ref$length === void 0 ? 6 : _ref$length,\n placeholder = _ref.placeholder,\n onChange = _ref.onChange;\n\n if (isNaN(length) || length < 1) {\n throw new Error('Length should be a number and greater than 0');\n }\n\n if (!allowedCharactersValues.some(function (value) {\n return value === allowedCharacters;\n })) {\n throw new Error('Invalid value for allowedCharacters. Use alpha, numeric, or alphanumeric');\n }\n\n var inputsRef = useRef([]);\n var inputProps = propsMap[allowedCharacters];\n useImperativeHandle(ref, function () {\n return {\n focus: function focus() {\n if (inputsRef.current) {\n inputsRef.current[0].focus();\n }\n },\n clear: function clear() {\n if (inputsRef.current) {\n for (var i = 0; i < inputsRef.current.length; i++) {\n inputsRef.current[i].value = '';\n }\n\n inputsRef.current[0].focus();\n }\n\n sendResult();\n }\n };\n });\n useEffect(function () {\n if (autoFocus) {\n inputsRef.current[0].focus();\n }\n }, []);\n\n var sendResult = function sendResult() {\n var res = inputsRef.current.map(function (input) {\n return input.value;\n }).join('');\n onChange && onChange(res);\n };\n\n var handleOnChange = function handleOnChange(e) {\n var _e$target = e.target,\n value = _e$target.value,\n nextElementSibling = _e$target.nextElementSibling;\n\n if (value.length > 1) {\n e.target.value = value.charAt(0);\n\n if (nextElementSibling !== null) {\n nextElementSibling.focus();\n }\n } else {\n if (value.match(inputProps.pattern)) {\n if (nextElementSibling !== null) {\n nextElementSibling.focus();\n }\n } else {\n e.target.value = '';\n }\n }\n\n sendResult();\n };\n\n var handleOnKeyDown = function handleOnKeyDown(e) {\n var key = e.key;\n var target = e.target;\n\n if (key === 'Backspace') {\n if (target.value === '') {\n if (target.previousElementSibling !== null) {\n var t = target.previousElementSibling;\n t.value = '';\n t.focus();\n e.preventDefault();\n }\n } else {\n target.value = '';\n }\n\n sendResult();\n }\n };\n\n var handleOnFocus = function handleOnFocus(e) {\n e.target.select();\n };\n\n var handleOnPaste = function handleOnPaste(e) {\n var pastedValue = e.clipboardData.getData('Text');\n var currentInput = 0;\n\n for (var i = 0; i < pastedValue.length; i++) {\n var pastedCharacter = pastedValue.charAt(i);\n var currentValue = inputsRef.current[currentInput].value;\n\n if (pastedCharacter.match(inputProps.pattern)) {\n if (!currentValue) {\n inputsRef.current[currentInput].value = pastedCharacter;\n\n if (inputsRef.current[currentInput].nextElementSibling !== null) {\n inputsRef.current[currentInput].nextElementSibling.focus();\n currentInput++;\n }\n }\n }\n }\n\n sendResult();\n e.preventDefault();\n };\n\n var inputs = [];\n\n var _loop = function _loop(i) {\n inputs.push(React.createElement(\"input\", Object.assign({\n key: i,\n onChange: handleOnChange,\n onKeyDown: handleOnKeyDown,\n onFocus: handleOnFocus,\n onPaste: handleOnPaste\n }, inputProps, {\n type: isPassword ? 'password' : inputProps.type,\n ref: function ref(el) {\n inputsRef.current[i] = el;\n },\n maxLength: 1,\n className: inputClassName,\n autoComplete: i === 0 ? 'one-time-code' : 'off',\n \"aria-label\": ariaLabel ? ariaLabel + \". Character \" + (i + 1) + \".\" : \"Character \" + (i + 1) + \".\",\n disabled: disabled,\n placeholder: placeholder\n })));\n };\n\n for (var i = 0; i < length; i++) {\n _loop(i);\n }\n\n return React.createElement(\"div\", {\n className: containerClassName\n }, inputs);\n});\n\nexport default AuthCode;\n//# sourceMappingURL=index.modern.js.map\n","import * as React from \"react\";\nimport { FormattedHTMLMessage } from \"react-intl\";\nimport AuthCode from \"react-auth-code-input\";\nimport produce from \"immer\";\n\nimport {\n type CompleteAuthenticationViewModel,\n type VerificationService,\n} from \"../../lib/types/types\";\nimport {\n submitForm,\n updateFieldValidationErrorsByFieldId,\n} from \"../../lib/utils/stepComponentHelpers/stepComponentHelpers\";\nimport { AUTH_TOKEN_LENGTH } from \"../../constants\";\nimport { VerificationStepsEnum } from \"../../lib/types/runtimeTypes\";\nimport { AnnouncingHeader } from \"../AnnouncingHeader/AnnouncingHeader\";\n\ninterface StepCompleteAuthenticationProps {\n verificationService: VerificationService;\n}\n\nexport const StepCompleteAuthenticationComponent = ({\n verificationService,\n}: StepCompleteAuthenticationProps) => {\n const viewModel = verificationService.viewModel as CompleteAuthenticationViewModel;\n const { fieldValidationErrors, verificationResponse } = verificationService;\n const { errorIds } = verificationResponse;\n\n const authInputRef = React.useRef(null);\n\n const updateCompleteAuthenticationViewmodel = (\n key: keyof CompleteAuthenticationViewModel,\n value: any,\n ) => {\n const nextState: CompleteAuthenticationViewModel = produce(\n viewModel,\n (draft: CompleteAuthenticationViewModel) => {\n (draft[key] as any) = value;\n },\n );\n verificationService.updateViewModel(nextState);\n };\n\n const manuallyVerifyViewModel = (): CompleteAuthenticationViewModel => {\n const nextState: CompleteAuthenticationViewModel = produce(\n viewModel,\n (draft: CompleteAuthenticationViewModel) => {\n draft.didManuallyVerify = true;\n delete draft.authenticationCode;\n },\n );\n verificationService.updateViewModel(nextState);\n\n return nextState;\n };\n\n React.useEffect(() => {\n if (viewModel.authenticationCode) {\n // reset local viewModel's authenticationCode to prevent form from submitting\n // prematurely when provided with an incorrect auth code.\n viewModel.authenticationCode = \"\";\n }\n }, []);\n\n React.useEffect(() => {\n if (viewModel.authenticationCode.length >= AUTH_TOKEN_LENGTH) {\n submitForm(viewModel, verificationService, VerificationStepsEnum.completeAuthentication);\n }\n }, [viewModel.authenticationCode]);\n\n return (\n <div\n id=\"sid-step-complete-authentication\"\n className=\"sid-step-complete-authentication-container sid-l-container\"\n >\n <div className=\"sid-header\">\n <AnnouncingHeader align=\"center\">\n <FormattedHTMLMessage\n id=\"step.completeAuthentication.title\"\n defaultMessage=\"Verify with Remember Me\"\n />\n </AnnouncingHeader>\n <div className=\"sid-header__subtitle sid-l-horz-center\">\n <FormattedHTMLMessage\n id=\"step.completeAuthentication.subtitle\"\n defaultMessage=\"Enter the code sent to your email.\"\n />\n </div>\n </div>\n <div className=\"sid-l-space-top-md\" />\n <div className=\"auth-code\">\n <AuthCode\n onChange={(token) => {\n updateCompleteAuthenticationViewmodel(\"authenticationCode\", token);\n updateFieldValidationErrorsByFieldId(\"authenticationCode\", token, verificationService);\n }}\n ref={authInputRef}\n allowedCharacters=\"numeric\"\n length={AUTH_TOKEN_LENGTH}\n isPassword\n containerClassName=\"auth-code__container\"\n inputClassName={`auth-code__input${\n fieldValidationErrors.authenticationCode ? \" auth-code__input-error\" : \"\"\n }`}\n />\n {fieldValidationErrors.authenticationCode ||\n (errorIds?.length > 0 && (\n <div className=\"auth-code__error-container\">\n <div>\n <img\n alt=\"red-exclaimation-circle\"\n src=\"https://assets-resources.sheerid.com/common/images/2018/icons/red-exclaimation-circle.svg\"\n />\n </div>\n <div className=\"auth-code__error-text\">\n <FormattedHTMLMessage\n id=\"errorId.invalidAuthenticationLoopToken\"\n defaultMessage=\"The code provided is invalid\"\n />\n </div>\n </div>\n ))}\n </div>\n <div className=\"sid-complete-auth__manually-verify-button-continer\">\n <button\n type=\"button\"\n className=\"sid-btn sid-btn-light sid-complete-auth__manually-verify-button\"\n aria-label=\"submit\"\n onClick={() => {\n submitForm(\n manuallyVerifyViewModel(),\n verificationService,\n VerificationStepsEnum.completeAuthentication,\n );\n }}\n >\n <FormattedHTMLMessage\n id=\"step.completeAuthentication.manuallyVerifyButton\"\n defaultMessage=\"Manually verify\"\n />\n </button>\n </div>\n </div>\n );\n};\n"],"names":["allowedCharactersValues","propsMap","AuthCode","forwardRef","_ref","ref","_ref$allowedCharacter","allowedCharacters","ariaLabel","_ref$autoFocus","autoFocus","containerClassName","disabled","inputClassName","_ref$isPassword","isPassword","_ref$length","length","placeholder","onChange","value","inputsRef","useRef","inputProps","useImperativeHandle","i","sendResult","useEffect","res","input","handleOnChange","_e$target","nextElementSibling","handleOnKeyDown","key","target","t","handleOnFocus","handleOnPaste","pastedValue","currentInput","pastedCharacter","currentValue","inputs","_loop","React","el","StepCompleteAuthenticationComponent","verificationService","viewModel","fieldValidationErrors","verificationResponse","errorIds","authInputRef","React.useRef","updateCompleteAuthenticationViewmodel","nextState","produce","draft","manuallyVerifyViewModel","React.useEffect","AUTH_TOKEN_LENGTH","submitForm","VerificationStepsEnum","jsxs","jsx","AnnouncingHeader","FormattedHTMLMessage","token","updateFieldValidationErrorsByFieldId"],"mappings":";AAEA,IAAIA,IAA0B,CAAC,SAAS,WAAW,cAAc,GAC7DC,IAAW;AAAA,EACb,OAAO;AAAA,IACL,MAAM;AAAA,IACN,WAAW;AAAA,IACX,SAAS;AAAA,EACb;AAAA,EACE,cAAc;AAAA,IACZ,MAAM;AAAA,IACN,WAAW;AAAA,IACX,SAAS;AAAA,EACb;AAAA,EACE,SAAS;AAAA,IACP,MAAM;AAAA,IACN,WAAW;AAAA,IACX,SAAS;AAAA,IACT,KAAK;AAAA,IACL,KAAK;AAAA,EACT;AACA,GACIC,IAAWC,EAAAA,WAAW,SAAUC,GAAMC,GAAK;AAC7C,MAAIC,IAAwBF,EAAK,mBAC7BG,IAAoBD,MAA0B,SAAS,iBAAiBA,GACxEE,IAAYJ,EAAK,WACjBK,IAAiBL,EAAK,WACtBM,IAAYD,MAAmB,SAAS,KAAOA,GAC/CE,IAAqBP,EAAK,oBAC1BQ,IAAWR,EAAK,UAChBS,IAAiBT,EAAK,gBACtBU,IAAkBV,EAAK,YACvBW,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AEDA,EAAsB,sBACpBE,GAAU,SAAS,KAClBY,gBAAAA,OAAC,OAAA,EAAI,WAAU,8BACb,UAAA;AAAA,YAAAC,gBAAAA,MAAC,OAAA,EACC,UAAAA,gBAAAA,EAAAA;AAAAA,cAAC;AAAA,cAAA;AAAA,gBACC,KAAI;AAAA,gBACJ,KAAI;AAAA,cAAA;AAAA,YAAA,GAER;AAAA,YACAA,gBAAAA,EAAAA,IAAC,OAAA,EAAI,WAAU,yBACb,UAAAA,gBAAAA,EAAAA;AAAAA,cAACE;AAAA,cAAA;AAAA,gBACC,IAAG;AAAA,gBACH,gBAAe;AAAA,cAAA;AAAA,YAAA,EACjB,CACF;AAAA,UAAA,EAAA,CACF;AAAA,QAAA,GAEN;AAAA,QACAF,gBAAAA,EAAAA,IAAC,OAAA,EAAI,WAAU,sDACb,UAAAA,gBAAAA,EAAAA;AAAAA,UAAC;AAAA,UAAA;AAAA,YACC,MAAK;AAAA,YACL,WAAU;AAAA,YACV,cAAW;AAAA,YACX,SAAS,MAAM;AACb,cAAAH;AAAA,gBACEH,EAAA;AAAA,gBACAX;AAAA,gBACAe,EAAsB;AAAA,cAAA;AAAA,YAE1B;AAAA,YAEA,UAAAE,gBAAAA,EAAAA;AAAAA,cAACE;AAAA,cAAA;AAAA,gBACC,IAAG;AAAA,gBACH,gBAAe;AAAA,cAAA;AAAA,YAAA;AAAA,UACjB;AAAA,QAAA,EACF,CACF;AAAA,MAAA;AAAA,IAAA;AAAA,EAAA;AAGN;","x_google_ignoreList":[0]}
|
|
@@ -4,24 +4,24 @@
|
|
|
4
4
|
* This file is not intended for use in other contexts and there are no guarantees about its behavior outside of MySheerID.
|
|
5
5
|
*/
|
|
6
6
|
/**
|
|
7
|
-
* VERSION: 2.
|
|
8
|
-
* BUILD_TIMESTAMP:
|
|
9
|
-
* BUILD_DATE: Tue May 19 2026
|
|
10
|
-
* BUILD_COMMIT:
|
|
7
|
+
* VERSION: 2.233.0-alpha.1
|
|
8
|
+
* BUILD_TIMESTAMP: 1779231359982
|
|
9
|
+
* BUILD_DATE: Tue May 19 2026 22:55:59 GMT+0000 (Coordinated Universal Time)
|
|
10
|
+
* BUILD_COMMIT: 5a2425d625d875ef656bb4cf2539177a8f02c67d
|
|
11
11
|
*/
|
|
12
|
-
import { i as I,
|
|
13
|
-
import { u as K } from "./useCollectFieldsEndpoint-
|
|
14
|
-
import { F as L, L as c, P as B, a as w, M as z, C as O } from "./CaptchaComponent-
|
|
15
|
-
import { E as q, P as
|
|
16
|
-
import { B as
|
|
17
|
-
import { P as
|
|
18
|
-
import { S as
|
|
19
|
-
import { M as
|
|
20
|
-
import { C as
|
|
21
|
-
import { M as Y } from "./MemberIdComponent-
|
|
22
|
-
import { C as
|
|
23
|
-
import { P as
|
|
24
|
-
const
|
|
12
|
+
import { i as I, h as f, R as N, j as s, P as E, g as t, m as n, a7 as j, a3 as y, $ as P, F as m, k as F, W as T, V as D, y as V, b as k, a8 as R } from "../_mysheerid-preview.js";
|
|
13
|
+
import { u as K } from "./useCollectFieldsEndpoint-690w1BPY.js";
|
|
14
|
+
import { F as L, L as c, P as B, a as w, M as z, C as O } from "./CaptchaComponent-CajCtTWY.js";
|
|
15
|
+
import { E as q, P as W } from "./PersonalInfoStepSubmitButton-22jOKa2g.js";
|
|
16
|
+
import { B as A } from "./militaryStepHelpers-B7eWlfFD.js";
|
|
17
|
+
import { P as H } from "./PostalCodeComponent-gTyGTdav.js";
|
|
18
|
+
import { S as $ } from "./StatusComponent-CXBhA3Ni.js";
|
|
19
|
+
import { M as G } from "./MedicalProfessionalOrganizationComponent-C5h14pIK.js";
|
|
20
|
+
import { C as U } from "./CountryComponentWrapper-Ucm1dIRU.js";
|
|
21
|
+
import { M as Y } from "./MemberIdComponent-BScPderq.js";
|
|
22
|
+
import { C as J } from "./ChangeLocaleComponent-BLoBbyRc.js";
|
|
23
|
+
import { P as Q } from "./PersonalInfoStepWrapper-DlKHzog8.js";
|
|
24
|
+
const X = {
|
|
25
25
|
AT: "gbrNummer",
|
|
26
26
|
ES: "numeroColegiado",
|
|
27
27
|
DK: "autorisationsId",
|
|
@@ -29,23 +29,23 @@ const Q = {
|
|
|
29
29
|
IE: "registrationNumber",
|
|
30
30
|
GB: "registrationNumber"
|
|
31
31
|
}, b = (i) => {
|
|
32
|
-
const a =
|
|
32
|
+
const a = X[i] || "registrationNumber";
|
|
33
33
|
return {
|
|
34
34
|
labelKey: `step.collectMedicalPersonalInfo.${a}Label`,
|
|
35
35
|
explanationKey: `step.collectMedicalPersonalInfo.${a}Explanation`
|
|
36
36
|
};
|
|
37
|
-
},
|
|
37
|
+
}, Z = ({
|
|
38
38
|
intl: i,
|
|
39
39
|
verificationService: a
|
|
40
40
|
}) => {
|
|
41
|
-
const o = a.viewModel, { fieldValidationErrors: l } = a, r = a.verificationResponse, C = f(r), g =
|
|
42
|
-
const
|
|
43
|
-
a.updateViewModel(
|
|
44
|
-
}, { isFieldOptional:
|
|
41
|
+
const o = a.viewModel, { fieldValidationErrors: l } = a, r = a.verificationResponse, C = f(r), g = k(), M = o.localeChoice.value, d = (e, u) => {
|
|
42
|
+
const x = V(o, e, u);
|
|
43
|
+
a.updateViewModel(x);
|
|
44
|
+
}, { isFieldOptional: h } = K({
|
|
45
45
|
verificationId: r.verificationId,
|
|
46
46
|
currentStep: r.currentStep,
|
|
47
47
|
viewModel: o
|
|
48
|
-
}), p =
|
|
48
|
+
}), p = h("memberId");
|
|
49
49
|
return N.useEffect(() => {
|
|
50
50
|
const e = (a.viewModel?.fieldsToSkipValidation || []).filter(
|
|
51
51
|
(u) => u !== "memberId"
|
|
@@ -55,7 +55,7 @@ const Q = {
|
|
|
55
55
|
{ partial: !0 }
|
|
56
56
|
);
|
|
57
57
|
}, [p]), /* @__PURE__ */ s.jsxs(
|
|
58
|
-
|
|
58
|
+
Q,
|
|
59
59
|
{
|
|
60
60
|
verificationService: a,
|
|
61
61
|
step: r.currentStep,
|
|
@@ -67,16 +67,16 @@ const Q = {
|
|
|
67
67
|
classNameIdentifier: "medical-personal-info"
|
|
68
68
|
}
|
|
69
69
|
),
|
|
70
|
-
/* @__PURE__ */ s.jsx(
|
|
70
|
+
/* @__PURE__ */ s.jsx(J, { verificationService: a }),
|
|
71
71
|
/* @__PURE__ */ s.jsx(
|
|
72
|
-
|
|
72
|
+
U,
|
|
73
73
|
{
|
|
74
74
|
verificationService: a,
|
|
75
75
|
disabled: t("country")?.disabled
|
|
76
76
|
}
|
|
77
77
|
),
|
|
78
78
|
/* @__PURE__ */ s.jsx(
|
|
79
|
-
|
|
79
|
+
$,
|
|
80
80
|
{
|
|
81
81
|
segmentId: "medical",
|
|
82
82
|
value: {
|
|
@@ -84,7 +84,7 @@ const Q = {
|
|
|
84
84
|
label: y(
|
|
85
85
|
i,
|
|
86
86
|
o.status,
|
|
87
|
-
|
|
87
|
+
R
|
|
88
88
|
)
|
|
89
89
|
},
|
|
90
90
|
isErrored: !!l.status,
|
|
@@ -100,7 +100,7 @@ const Q = {
|
|
|
100
100
|
}
|
|
101
101
|
),
|
|
102
102
|
/* @__PURE__ */ s.jsx(
|
|
103
|
-
|
|
103
|
+
G,
|
|
104
104
|
{
|
|
105
105
|
isErrored: !!l.organization,
|
|
106
106
|
onChange: (e) => {
|
|
@@ -136,7 +136,7 @@ const Q = {
|
|
|
136
136
|
)
|
|
137
137
|
] }),
|
|
138
138
|
/* @__PURE__ */ s.jsx(
|
|
139
|
-
|
|
139
|
+
A,
|
|
140
140
|
{
|
|
141
141
|
errorId: l.birthDate,
|
|
142
142
|
locale: M,
|
|
@@ -148,7 +148,7 @@ const Q = {
|
|
|
148
148
|
}
|
|
149
149
|
),
|
|
150
150
|
/* @__PURE__ */ s.jsx(
|
|
151
|
-
|
|
151
|
+
H,
|
|
152
152
|
{
|
|
153
153
|
isErrored: !!l.postalCode,
|
|
154
154
|
onChange: (e) => {
|
|
@@ -248,7 +248,7 @@ const Q = {
|
|
|
248
248
|
}
|
|
249
249
|
),
|
|
250
250
|
/* @__PURE__ */ s.jsx(
|
|
251
|
-
|
|
251
|
+
W,
|
|
252
252
|
{
|
|
253
253
|
step: D.collectMedicalProfessionalPersonalInfo,
|
|
254
254
|
verificationService: a,
|
|
@@ -267,7 +267,7 @@ const Q = {
|
|
|
267
267
|
}
|
|
268
268
|
);
|
|
269
269
|
}, me = I(
|
|
270
|
-
|
|
270
|
+
Z
|
|
271
271
|
);
|
|
272
272
|
export {
|
|
273
273
|
me as default
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index-CMYxhs0t.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\";\n\nimport {\n VerificationStepsEnum,\n MedicalProfessionalStatusDefaultMessagesEnum,\n} from \"../../lib/types/runtimeTypes\";\nimport { hasFailedInstantMatch } from \"../../lib/VerificationService/VerificationServiceHelpers\";\nimport {\n type VerificationService,\n type FormSelectChoice,\n type Organization,\n type MedicalProfessionalPersonalInfoViewModel,\n type MedicalProfessionalPersonalInfoResponse,\n type 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\";\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\";\nimport { CaptchaComponent } from \"../FormFields/Captcha/CaptchaComponent\";\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 const existing = (verificationService.viewModel?.fieldsToSkipValidation || []).filter(\n (id) => id !== \"memberId\",\n );\n if (shouldRenderMemberId) {\n verificationService.updateViewModel({ fieldsToSkipValidation: existing }, { partial: true });\n } else {\n verificationService.updateViewModel(\n { fieldsToSkipValidation: [...existing, \"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\n <CaptchaComponent\n verificationService={verificationService}\n isErrored={!!fieldValidationErrors.captchaToken}\n />\n\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","existing","id","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","CaptchaComponent","PersonalInfoStepSubmitButton","VerificationStepsEnum","StepMedicalProfessionalPersonalInfoComponent","injectIntl"],"mappings":";;;;;;;;;;;;AA8DA,MAAMA,IAAkE;AAAA,EACtE,IAAI;AAAA,EACJ,IAAI;AAAA,EACJ,IAAI;AAAA,EACJ,IAAI;AAAA,EACJ,IAAI;AAAA,EACJ,IAAI;AACN,GAEMC,IAAyB,CAACC,MAAoB;AAClD,QAAMC,IACJH,EAA6BE,CAAO,KAAK;AAC3C,SAAO;AAAA,IACL,UAAU,mCAAmCC,CAAiB;AAAA,IAC9D,gBAAgB,mCAAmCA,CAAiB;AAAA,EAAA;AAExE,GAEaC,IAAsC,CAAC;AAAA,EAClD,MAAAC;AAAA,EACA,qBAAAC;AACF,MAAyD;AACvD,QAAMC,IAAYD,EAAoB,WAChC,EAAE,uBAAAE,MAA0BF,GAC5BG,IACJH,EAAoB,sBAChBI,IAAqBC,EAAsBF,CAAoB,GAC/DG,IAAUC,EAAA,GAEVC,IAASP,EAAU,aAAa,OAEhCQ,IAAqC,CACzCC,GACAC,MACG;AACH,UAAMC,IAAYC,EAAsBZ,GAAWS,GAAKC,CAAK;AAC7D,IAAAX,EAAoB,gBAAgBY,CAAS;AAAA,EAC/C,GAEM,EAAE,iBAAAE,EAAA,IAAoBC,EAAyB;AAAA,IACnD,gBAAgBZ,EAAqB;AAAA,IACrC,aAAaA,EAAqB;AAAA,IAClC,WAAAF;AAAA,EAAA,CACD,GACKe,IAAuBF,EAAgB,UAAU;AAEvD,SAAAG,EAAM,UAAU,MAAM;AAGpB,UAAMC,KAAYlB,EAAoB,WAAW,0BAA0B,CAAA,GAAI;AAAA,MAC7E,CAACmB,MAAOA,MAAO;AAAA,IAAA;AAEjB,IAAIH,IACFhB,EAAoB,gBAAgB,EAA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ACA,WAAAC;AAAA,YACA,UAAUyB,EAAwB,oBAAoB,GAAG;AAAA,UAAA;AAAA,QAAA;AAAA,QAE3DJ,gBAAAA,EAAAA,IAAC4B,GAAA,EAAa,qBAAAlD,GAA0C,QAAO,qBAAA,CAAqB;AAAA,QAEpFsB,gBAAAA,EAAAA;AAAAA,UAAC6B;AAAA,UAAA;AAAA,YACC,qBAAAnD;AAAA,YACA,WAAW,CAAC,CAACE,EAAsB;AAAA,UAAA;AAAA,QAAA;AAAA,QAGrCoB,gBAAAA,EAAAA;AAAAA,UAAC8B;AAAA,UAAA;AAAA,YACC,MAAMC,EAAsB;AAAA,YAC5B,qBAAArD;AAAA,YACA,WAAAC;AAAA,YACA,oBAAAG;AAAA,YACA,YACEkB,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,GAEaa,KAA+CC;AAAA,EAC1DzD;AACF;"}
|
|
1
|
+
{"version":3,"file":"index-B9N_35H1.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\";\n\nimport {\n VerificationStepsEnum,\n MedicalProfessionalStatusDefaultMessagesEnum,\n} from \"../../lib/types/runtimeTypes\";\nimport { hasFailedInstantMatch } from \"../../lib/VerificationService/VerificationServiceHelpers\";\nimport {\n type VerificationService,\n type FormSelectChoice,\n type Organization,\n type MedicalProfessionalPersonalInfoViewModel,\n type MedicalProfessionalPersonalInfoResponse,\n type 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\";\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\";\nimport { CaptchaComponent } from \"../FormFields/Captcha/CaptchaComponent\";\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 const existing = (verificationService.viewModel?.fieldsToSkipValidation || []).filter(\n (id) => id !== \"memberId\",\n );\n if (shouldRenderMemberId) {\n verificationService.updateViewModel({ fieldsToSkipValidation: existing }, { partial: true });\n } else {\n verificationService.updateViewModel(\n { fieldsToSkipValidation: [...existing, \"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\n <CaptchaComponent\n verificationService={verificationService}\n isErrored={!!fieldValidationErrors.captchaToken}\n />\n\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","existing","id","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","CaptchaComponent","PersonalInfoStepSubmitButton","VerificationStepsEnum","StepMedicalProfessionalPersonalInfoComponent","injectIntl"],"mappings":";;;;;;;;;;;;AA8DA,MAAMA,IAAkE;AAAA,EACtE,IAAI;AAAA,EACJ,IAAI;AAAA,EACJ,IAAI;AAAA,EACJ,IAAI;AAAA,EACJ,IAAI;AAAA,EACJ,IAAI;AACN,GAEMC,IAAyB,CAACC,MAAoB;AAClD,QAAMC,IACJH,EAA6BE,CAAO,KAAK;AAC3C,SAAO;AAAA,IACL,UAAU,mCAAmCC,CAAiB;AAAA,IAC9D,gBAAgB,mCAAmCA,CAAiB;AAAA,EAAA;AAExE,GAEaC,IAAsC,CAAC;AAAA,EAClD,MAAAC;AAAA,EACA,qBAAAC;AACF,MAAyD;AACvD,QAAMC,IAAYD,EAAoB,WAChC,EAAE,uBAAAE,MAA0BF,GAC5BG,IACJH,EAAoB,sBAChBI,IAAqBC,EAAsBF,CAAoB,GAC/DG,IAAUC,EAAA,GAEVC,IAASP,EAAU,aAAa,OAEhCQ,IAAqC,CACzCC,GACAC,MACG;AACH,UAAMC,IAAYC,EAAsBZ,GAAWS,GAAKC,CAAK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MMIT:
|
|
3
|
+
* VERSION: 2.233.0-alpha.1
|
|
4
|
+
* BUILD_TIMESTAMP: 1779231347541
|
|
5
|
+
* BUILD_DATE: Tue May 19 2026 22:55:47 GMT+0000 (Coordinated Universal Time)
|
|
6
|
+
* BUILD_COMMIT: 5a2425d625d875ef656bb4cf2539177a8f02c67d
|
|
7
7
|
*/
|
|
8
|
-
import { i as x,
|
|
9
|
-
import { B as A } from "./militaryStepHelpers-
|
|
10
|
-
import { E as y, P as F } from "./PersonalInfoStepSubmitButton-
|
|
11
|
-
import { F as O, L as D, P as _, a as V, M as k, C as B } from "./CaptchaComponent-
|
|
12
|
-
import { S as z } from "./StatusComponent-
|
|
13
|
-
import { L as
|
|
14
|
-
import { P as
|
|
15
|
-
import { C as
|
|
16
|
-
import { C as c } from "./CountryComponentWrapper-
|
|
17
|
-
import { P as
|
|
18
|
-
const
|
|
8
|
+
import { i as x, n as I, j as a, P as f, g as n, p as l, $ as L, F as u, o as j, W as M, V as R, q as P, f as T } from "../sheerid.js";
|
|
9
|
+
import { B as A } from "./militaryStepHelpers-DwVOy2yj.js";
|
|
10
|
+
import { E as y, P as F } from "./PersonalInfoStepSubmitButton-Bu2zmi86.js";
|
|
11
|
+
import { F as O, L as D, P as _, a as V, M as k, C as B } from "./CaptchaComponent-BVvwKmWz.js";
|
|
12
|
+
import { S as z } from "./StatusComponent-BA29-IR-.js";
|
|
13
|
+
import { L as W } from "./LicensedProfessionalOrganizationComponent-BEwjSmfW.js";
|
|
14
|
+
import { P as G } from "./PostalCodeComponent-DAMiXR2z.js";
|
|
15
|
+
import { C as H } from "./ChangeLocaleComponent-Cd8lWGKu.js";
|
|
16
|
+
import { C as c } from "./CountryComponentWrapper-7ribqnbU.js";
|
|
17
|
+
import { P as q } from "./PersonalInfoStepWrapper-BCVAx0W6.js";
|
|
18
|
+
const w = {
|
|
19
19
|
LICENSED_COSMETOLOGIST: "Licensed Cosmetologist",
|
|
20
20
|
LICENSED_REAL_ESTATE_AGENT: "Licensed Real Estate Agent",
|
|
21
21
|
VETERINARIAN: "Veterinarian",
|
|
@@ -25,7 +25,7 @@ const K = {
|
|
|
25
25
|
ARCHITECT: "Architect",
|
|
26
26
|
GENERAL_CONTRACTOR: "General Contractor",
|
|
27
27
|
NUTRITION_PROFESSIONAL: "Nutrition Professional"
|
|
28
|
-
},
|
|
28
|
+
}, K = ({
|
|
29
29
|
intl: C,
|
|
30
30
|
verificationService: e
|
|
31
31
|
}) => {
|
|
@@ -37,7 +37,7 @@ const K = {
|
|
|
37
37
|
}
|
|
38
38
|
);
|
|
39
39
|
e.updateViewModel(m);
|
|
40
|
-
}, i = (s) => s ? C.formatHTMLMessage({ id: s, defaultMessage:
|
|
40
|
+
}, i = (s) => s ? C.formatHTMLMessage({ id: s, defaultMessage: w[s] }) : "", g = () => {
|
|
41
41
|
const s = p.availableStatuses, r = [];
|
|
42
42
|
if (s)
|
|
43
43
|
for (const m of s)
|
|
@@ -48,7 +48,7 @@ const K = {
|
|
|
48
48
|
return r;
|
|
49
49
|
};
|
|
50
50
|
return /* @__PURE__ */ a.jsxs(
|
|
51
|
-
|
|
51
|
+
q,
|
|
52
52
|
{
|
|
53
53
|
verificationService: e,
|
|
54
54
|
step: p.currentStep,
|
|
@@ -60,7 +60,7 @@ const K = {
|
|
|
60
60
|
classNameIdentifier: "licensed-professional"
|
|
61
61
|
}
|
|
62
62
|
),
|
|
63
|
-
/* @__PURE__ */ a.jsx(
|
|
63
|
+
/* @__PURE__ */ a.jsx(H, { verificationService: e }),
|
|
64
64
|
/* @__PURE__ */ a.jsx(
|
|
65
65
|
c,
|
|
66
66
|
{
|
|
@@ -90,7 +90,7 @@ const K = {
|
|
|
90
90
|
}
|
|
91
91
|
),
|
|
92
92
|
/* @__PURE__ */ a.jsx(
|
|
93
|
-
|
|
93
|
+
W,
|
|
94
94
|
{
|
|
95
95
|
isErrored: !!t.organization,
|
|
96
96
|
onChange: (s) => {
|
|
@@ -138,7 +138,7 @@ const K = {
|
|
|
138
138
|
}
|
|
139
139
|
),
|
|
140
140
|
/* @__PURE__ */ a.jsx(
|
|
141
|
-
|
|
141
|
+
G,
|
|
142
142
|
{
|
|
143
143
|
isErrored: !!t.postalCode,
|
|
144
144
|
onChange: (s) => {
|
|
@@ -231,7 +231,7 @@ const K = {
|
|
|
231
231
|
}
|
|
232
232
|
);
|
|
233
233
|
}, es = x(
|
|
234
|
-
|
|
234
|
+
K
|
|
235
235
|
);
|
|
236
236
|
export {
|
|
237
237
|
es as default
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index-BDfHyxH2.js","sources":["../../src/components/StepLicensedProfessionalPersonalInfo/StepLicensedProfessionalPersonalInfoComponent.tsx"],"sourcesContent":["import { FormattedHTMLMessage, injectIntl } from \"react-intl\";\nimport { produce } from \"immer\";\n\nimport { VerificationStepsEnum } from \"../../lib/types/runtimeTypes\";\nimport { hasFailedInstantMatch } from \"../../lib/VerificationService/VerificationServiceHelpers\";\nimport {\n type CustomFormFieldConfig,\n type FormSelectChoice,\n type LicensedProfessionalPersonalInfoResponse,\n type LicensedProfessionalPersonalInfoViewModel,\n type LicensedProfessionalStatus,\n type Organization,\n type VerificationService,\n} from \"../../lib/types/types\";\nimport {\n getFieldConfigByFieldId,\n handleEmailOnKeyDown,\n updateFieldValidationErrorsByFieldId,\n updateViewModelOrganization,\n} from \"../../lib/utils/stepComponentHelpers/stepComponentHelpers\";\nimport { BirthDateComponent as BirthDate } from \"../FormFields/BirthDate/BirthDateComponent\";\nimport { EmailComponent as Email } from \"../FormFields/Email/EmailComponent\";\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 { StatusComponent as LicensedProfessionalStatusComponent } from \"../FormFields/Status/StatusComponent\";\nimport { LicensedProfessionalOrganizationComponent as LicensedProfessionalOrganization } from \"../FormFields/LicensedProfessionalOrganization/LicensedProfessionalOrganizationComponent\";\nimport { MarketConsentWrapperComponent as MarketConsentWrapper } from \"../FormFields/MarketConsentWrapper/MarketConsentWrapperComponent\";\nimport { PostalCodeComponent } from \"../FormFields/PostalCode/PostalCodeComponent\";\nimport { getOptions } from \"../../options/options\";\nimport { FormFieldCustom } from \"../FormFields/FormFieldCustom/FormFieldCustom\";\nimport { ExtraMessage } from \"../ExtraMessage\";\nimport { ChangeLocaleV2Component } from \"../FormFields/ChangeLocale/ChangeLocaleComponent\";\nimport { CountryComponentWrapper } from \"../FormFields/Country/CountryComponentWrapper\";\nimport { PersonalInfoWrapper } from \"../PersonalInfoStepWrapper/PersonalInfoStepWrapper\";\nimport { PersonalInfoStepSubmitButton } from \"../PersonalInfoStepSubmitButton/PersonalInfoStepSubmitButton\";\nimport { PersonalInfoHeader } from \"../FormHeader/StepHeaders/PersonalInfoHeaderComponent\";\nimport { CaptchaComponent } from \"../FormFields/Captcha/CaptchaComponent\";\n\ninterface StepLicensedProfessionalPersonalInfoComponentProps {\n verificationService: VerificationService;\n intl: any;\n}\n\ntype DefaultStatusMessages = {\n [key in LicensedProfessionalStatus]: string;\n};\n\nconst defaultStatusMessages: DefaultStatusMessages = {\n LICENSED_COSMETOLOGIST: \"Licensed Cosmetologist\",\n LICENSED_REAL_ESTATE_AGENT: \"Licensed Real Estate Agent\",\n VETERINARIAN: \"Veterinarian\",\n CHILD_CARE_WORKER: \"Child Care Worker\",\n LIBRARIAN: \"Librarian\",\n INTERIOR_DESIGNER: \"Interior Designer\",\n ARCHITECT: \"Architect\",\n GENERAL_CONTRACTOR: \"General Contractor\",\n NUTRITION_PROFESSIONAL: \"Nutrition Professional\",\n};\n\nconst StepLicensedProfessionalPersonalInfo = ({\n intl,\n verificationService,\n}: StepLicensedProfessionalPersonalInfoComponentProps) => {\n const viewModel = verificationService.viewModel as LicensedProfessionalPersonalInfoViewModel;\n const { fieldValidationErrors } = verificationService;\n const verificationResponse =\n verificationService.verificationResponse as LicensedProfessionalPersonalInfoResponse;\n const failedInstantMatch = hasFailedInstantMatch(verificationResponse);\n\n const locale = viewModel.localeChoice.value;\n const options = getOptions();\n\n const updateLicensedProfessionalViewModel = (\n key: keyof LicensedProfessionalPersonalInfoViewModel,\n value: any,\n ) => {\n const nextState: LicensedProfessionalPersonalInfoViewModel = produce(\n viewModel,\n (draft: LicensedProfessionalPersonalInfoViewModel) => {\n (draft[key] as any) = value;\n },\n );\n verificationService.updateViewModel(nextState);\n };\n\n const getStatusLabel = (status: LicensedProfessionalStatus | undefined): string => {\n if (!status) {\n return \"\";\n }\n return intl.formatHTMLMessage({ id: status, defaultMessage: defaultStatusMessages[status] });\n };\n\n const getAvailableLicensedProfessionalStatuses = () => {\n const availableStatusesResponse = verificationResponse.availableStatuses;\n const availableStatuses: FormSelectChoice[] = [];\n\n if (availableStatusesResponse) {\n for (const status of availableStatusesResponse) {\n availableStatuses.push({\n value: status,\n label: getStatusLabel(status),\n });\n }\n }\n return availableStatuses;\n };\n\n return (\n <PersonalInfoWrapper\n verificationService={verificationService}\n step={verificationResponse.currentStep}\n >\n <PersonalInfoHeader\n verificationService={verificationService}\n classNameIdentifier=\"licensed-professional\"\n />\n\n <ChangeLocaleV2Component verificationService={verificationService} />\n <CountryComponentWrapper\n verificationService={verificationService}\n disabled={getFieldConfigByFieldId(\"country\")?.disabled}\n />\n\n <LicensedProfessionalStatusComponent\n segmentId=\"licensed-professional\"\n value={{\n value: viewModel.statuses ? viewModel.statuses[0] : \"\",\n label: viewModel.statuses ? getStatusLabel(viewModel.statuses[0]) : \"\",\n }}\n isErrored={!!fieldValidationErrors.statuses}\n options={getAvailableLicensedProfessionalStatuses()}\n disabled={getFieldConfigByFieldId(\"statuses\")?.disabled}\n onChange={(status: FormSelectChoice) => {\n const updatedStatuses = status ? [status.value as string] : [];\n updateLicensedProfessionalViewModel(\"statuses\", updatedStatuses);\n updateFieldValidationErrorsByFieldId(\n \"statuses\",\n status ? (status.value as string) : \"\",\n verificationService,\n );\n }}\n />\n <LicensedProfessionalOrganization\n isErrored={!!fieldValidationErrors.organization}\n onChange={(choice: Organization) => {\n updateViewModelOrganization(choice, verificationService);\n updateFieldValidationErrorsByFieldId(\"organization\", choice, verificationService);\n }}\n value={\n (verificationService.viewModel as LicensedProfessionalPersonalInfoViewModel).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 updateLicensedProfessionalViewModel(\"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 updateLicensedProfessionalViewModel(\"lastName\", newValue);\n updateFieldValidationErrorsByFieldId(\"lastName\", newValue, verificationService);\n }}\n />\n </div>\n <BirthDate\n errorId={fieldValidationErrors.birthDate}\n locale={locale}\n onChange={(newValue) => {\n updateLicensedProfessionalViewModel(\"birthDate\", newValue);\n updateFieldValidationErrorsByFieldId(\"birthDate\", newValue, verificationService);\n }}\n value={viewModel.birthDate}\n disabled={getFieldConfigByFieldId(\"birthDate\")?.disabled}\n />\n <PostalCodeComponent\n isErrored={!!fieldValidationErrors.postalCode}\n onChange={(newValue) => {\n updateLicensedProfessionalViewModel(\"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 updateLicensedProfessionalViewModel(\"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 updateLicensedProfessionalViewModel(\"phoneNumber\", newValue);\n updateFieldValidationErrorsByFieldId(\"phoneNumber\", newValue, verificationService);\n }}\n selectedCountryCode={viewModel.countryChoice && viewModel.countryChoice.value}\n disabled={getFieldConfigByFieldId(\"phoneNumber\")?.disabled}\n />\n ) : null}\n\n {options.customFormFields.map((config: CustomFormFieldConfig) => (\n <FormFieldCustom config={config} verificationService={verificationService} />\n ))}\n\n <MarketConsentWrapper\n verificationService={verificationService}\n isErrored={!!fieldValidationErrors.marketConsentValue}\n onChange={(newValue) => {\n updateLicensedProfessionalViewModel(\"metadata\", {\n ...verificationService.viewModel.metadata,\n marketConsentValue: newValue,\n });\n updateFieldValidationErrorsByFieldId(\"marketConsentValue\", newValue, verificationService);\n }}\n viewModel={viewModel}\n disabled={getFieldConfigByFieldId(\"marketConsentValue\")?.disabled}\n />\n\n <ExtraMessage verificationService={verificationService} suffix=\"CollectAboveSubmit\" />\n\n <CaptchaComponent\n verificationService={verificationService}\n isErrored={!!fieldValidationErrors.captchaToken}\n />\n\n <PersonalInfoStepSubmitButton\n step={VerificationStepsEnum.collectLicensedProfessionalPersonalInfo}\n verificationService={verificationService}\n viewModel={viewModel}\n failedInstantMatch={failedInstantMatch}\n buttonText={\n <FormattedHTMLMessage\n id=\"step.personalInfo.submitButtonText\"\n defaultMessage=\"Verify My Licensed Professional Status\"\n />\n }\n />\n </PersonalInfoWrapper>\n );\n};\n\nexport const StepLicensedProfessionalPersonalInfoComponent = injectIntl(\n StepLicensedProfessionalPersonalInfo,\n);\n"],"names":["defaultStatusMessages","StepLicensedProfessionalPersonalInfo","intl","verificationService","viewModel","fieldValidationErrors","verificationResponse","failedInstantMatch","hasFailedInstantMatch","locale","options","getOptions","updateLicensedProfessionalViewModel","key","value","nextState","produce","draft","getStatusLabel","status","getAvailableLicensedProfessionalStatuses","availableStatusesResponse","availableStatuses","jsxs","PersonalInfoWrapper","jsx","PersonalInfoHeader","ChangeLocaleV2Component","CountryComponentWrapper","getFieldConfigByFieldId","LicensedProfessionalStatusComponent","updatedStatuses","updateFieldValidationErrorsByFieldId","LicensedProfessionalOrganization","choice","updateViewModelOrganization","FirstName","newValue","LastName","BirthDate","PostalCodeComponent","FormattedHTMLMessage","Email","event","handleEmailOnKeyDown","PhoneNumber","config","FormFieldCustom","MarketConsentWrapper","ExtraMessage","CaptchaComponent","PersonalInfoStepSubmitButton","VerificationStepsEnum","StepLicensedProfessionalPersonalInfoComponent","injectIntl"],"mappings":";;;;;;;;;;AAgDA,MAAMA,IAA+C;AAAA,EACnD,wBAAwB;AAAA,EACxB,4BAA4B;AAAA,EAC5B,cAAc;AAAA,EACd,mBAAmB;AAAA,EACnB,WAAW;AAAA,EACX,mBAAmB;AAAA,EACnB,WAAW;AAAA,EACX,oBAAoB;AAAA,EACpB,wBAAwB;AAC1B,GAEMC,IAAuC,CAAC;AAAA,EAC5C,MAAAC;AAAA,EACA,qBAAAC;AACF,MAA0D;AACxD,QAAMC,IAAYD,EAAoB,WAChC,EAAE,uBAAAE,MAA0BF,GAC5BG,IACJH,EAAoB,sBAChBI,IAAqBC,EAAsBF,CAAoB,GAE/DG,IAASL,EAAU,aAAa,OAChCM,IAAUC,EAAA,GAEVC,IAAsC,CAC1CC,GACAC,MACG;AACH,UAAMC,IAAuDC;AAAAA,MAC3DZ;AAAA,MACA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;AAAA,YACC,MAAMC,EAAsB;AAAA,YAC5B,qBAAAjD;AAAA,YACA,WAAAC;AAAA,YACA,oBAAAG;AAAA,YACA,YACEkB,gBAAAA,EAAAA;AAAAA,cAACgB;AAAA,cAAA;AAAA,gBACC,IAAG;AAAA,gBACH,gBAAe;AAAA,cAAA;AAAA,YAAA;AAAA,UACjB;AAAA,QAAA;AAAA,MAEJ;AAAA,IAAA;AAAA,EAAA;AAGN,GAEaY,KAAgDC;AAAA,EAC3DrD;AACF;"}
|
|
1
|
+
{"version":3,"file":"index-BA0YQsod.js","sources":["../../src/components/StepLicensedProfessionalPersonalInfo/StepLicensedProfessionalPersonalInfoComponent.tsx"],"sourcesContent":["import { FormattedHTMLMessage, injectIntl } from \"react-intl\";\nimport { produce } from \"immer\";\n\nimport { VerificationStepsEnum } from \"../../lib/types/runtimeTypes\";\nimport { hasFailedInstantMatch } from \"../../lib/VerificationService/VerificationServiceHelpers\";\nimport {\n type CustomFormFieldConfig,\n type FormSelectChoice,\n type LicensedProfessionalPersonalInfoResponse,\n type LicensedProfessionalPersonalInfoViewModel,\n type LicensedProfessionalStatus,\n type Organization,\n type VerificationService,\n} from \"../../lib/types/types\";\nimport {\n getFieldConfigByFieldId,\n handleEmailOnKeyDown,\n updateFieldValidationErrorsByFieldId,\n updateViewModelOrganization,\n} from \"../../lib/utils/stepComponentHelpers/stepComponentHelpers\";\nimport { BirthDateComponent as BirthDate } from \"../FormFields/BirthDate/BirthDateComponent\";\nimport { EmailComponent as Email } from \"../FormFields/Email/EmailComponent\";\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 { StatusComponent as LicensedProfessionalStatusComponent } from \"../FormFields/Status/StatusComponent\";\nimport { LicensedProfessionalOrganizationComponent as LicensedProfessionalOrganization } from \"../FormFields/LicensedProfessionalOrganization/LicensedProfessionalOrganizationComponent\";\nimport { MarketConsentWrapperComponent as MarketConsentWrapper } from \"../FormFields/MarketConsentWrapper/MarketConsentWrapperComponent\";\nimport { PostalCodeComponent } from \"../FormFields/PostalCode/PostalCodeComponent\";\nimport { getOptions } from \"../../options/options\";\nimport { FormFieldCustom } from \"../FormFields/FormFieldCustom/FormFieldCustom\";\nimport { ExtraMessage } from \"../ExtraMessage\";\nimport { ChangeLocaleV2Component } from \"../FormFields/ChangeLocale/ChangeLocaleComponent\";\nimport { CountryComponentWrapper } from \"../FormFields/Country/CountryComponentWrapper\";\nimport { PersonalInfoWrapper } from \"../PersonalInfoStepWrapper/PersonalInfoStepWrapper\";\nimport { PersonalInfoStepSubmitButton } from \"../PersonalInfoStepSubmitButton/PersonalInfoStepSubmitButton\";\nimport { PersonalInfoHeader } from \"../FormHeader/StepHeaders/PersonalInfoHeaderComponent\";\nimport { CaptchaComponent } from \"../FormFields/Captcha/CaptchaComponent\";\n\ninterface StepLicensedProfessionalPersonalInfoComponentProps {\n verificationService: VerificationService;\n intl: any;\n}\n\ntype DefaultStatusMessages = {\n [key in LicensedProfessionalStatus]: string;\n};\n\nconst defaultStatusMessages: DefaultStatusMessages = {\n LICENSED_COSMETOLOGIST: \"Licensed Cosmetologist\",\n LICENSED_REAL_ESTATE_AGENT: \"Licensed Real Estate Agent\",\n VETERINARIAN: \"Veterinarian\",\n CHILD_CARE_WORKER: \"Child Care Worker\",\n LIBRARIAN: \"Librarian\",\n INTERIOR_DESIGNER: \"Interior Designer\",\n ARCHITECT: \"Architect\",\n GENERAL_CONTRACTOR: \"General Contractor\",\n NUTRITION_PROFESSIONAL: \"Nutrition Professional\",\n};\n\nconst StepLicensedProfessionalPersonalInfo = ({\n intl,\n verificationService,\n}: StepLicensedProfessionalPersonalInfoComponentProps) => {\n const viewModel = verificationService.viewModel as LicensedProfessionalPersonalInfoViewModel;\n const { fieldValidationErrors } = verificationService;\n const verificationResponse =\n verificationService.verificationResponse as LicensedProfessionalPersonalInfoResponse;\n const failedInstantMatch = hasFailedInstantMatch(verificationResponse);\n\n const locale = viewModel.localeChoice.value;\n const options = getOptions();\n\n const updateLicensedProfessionalViewModel = (\n key: keyof LicensedProfessionalPersonalInfoViewModel,\n value: any,\n ) => {\n const nextState: LicensedProfessionalPersonalInfoViewModel = produce(\n viewModel,\n (draft: LicensedProfessionalPersonalInfoViewModel) => {\n (draft[key] as any) = value;\n },\n );\n verificationService.updateViewModel(nextState);\n };\n\n const getStatusLabel = (status: LicensedProfessionalStatus | undefined): string => {\n if (!status) {\n return \"\";\n }\n return intl.formatHTMLMessage({ id: status, defaultMessage: defaultStatusMessages[status] });\n };\n\n const getAvailableLicensedProfessionalStatuses = () => {\n const availableStatusesResponse = verificationResponse.availableStatuses;\n const availableStatuses: FormSelectChoice[] = [];\n\n if (availableStatusesResponse) {\n for (const status of availableStatusesResponse) {\n availableStatuses.push({\n value: status,\n label: getStatusLabel(status),\n });\n }\n }\n return availableStatuses;\n };\n\n return (\n <PersonalInfoWrapper\n verificationService={verificationService}\n step={verificationResponse.currentStep}\n >\n <PersonalInfoHeader\n verificationService={verificationService}\n classNameIdentifier=\"licensed-professional\"\n />\n\n <ChangeLocaleV2Component verificationService={verificationService} />\n <CountryComponentWrapper\n verificationService={verificationService}\n disabled={getFieldConfigByFieldId(\"country\")?.disabled}\n />\n\n <LicensedProfessionalStatusComponent\n segmentId=\"licensed-professional\"\n value={{\n value: viewModel.statuses ? viewModel.statuses[0] : \"\",\n label: viewModel.statuses ? getStatusLabel(viewModel.statuses[0]) : \"\",\n }}\n isErrored={!!fieldValidationErrors.statuses}\n options={getAvailableLicensedProfessionalStatuses()}\n disabled={getFieldConfigByFieldId(\"statuses\")?.disabled}\n onChange={(status: FormSelectChoice) => {\n const updatedStatuses = status ? [status.value as string] : [];\n updateLicensedProfessionalViewModel(\"statuses\", updatedStatuses);\n updateFieldValidationErrorsByFieldId(\n \"statuses\",\n status ? (status.value as string) : \"\",\n verificationService,\n );\n }}\n />\n <LicensedProfessionalOrganization\n isErrored={!!fieldValidationErrors.organization}\n onChange={(choice: Organization) => {\n updateViewModelOrganization(choice, verificationService);\n updateFieldValidationErrorsByFieldId(\"organization\", choice, verificationService);\n }}\n value={\n (verificationService.viewModel as LicensedProfessionalPersonalInfoViewModel).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 updateLicensedProfessionalViewModel(\"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 updateLicensedProfessionalViewModel(\"lastName\", newValue);\n updateFieldValidationErrorsByFieldId(\"lastName\", newValue, verificationService);\n }}\n />\n </div>\n <BirthDate\n errorId={fieldValidationErrors.birthDate}\n locale={locale}\n onChange={(newValue) => {\n updateLicensedProfessionalViewModel(\"birthDate\", newValue);\n updateFieldValidationErrorsByFieldId(\"birthDate\", newValue, verificationService);\n }}\n value={viewModel.birthDate}\n disabled={getFieldConfigByFieldId(\"birthDate\")?.disabled}\n />\n <PostalCodeComponent\n isErrored={!!fieldValidationErrors.postalCode}\n onChange={(newValue) => {\n updateLicensedProfessionalViewModel(\"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 updateLicensedProfessionalViewModel(\"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 updateLicensedProfessionalViewModel(\"phoneNumber\", newValue);\n updateFieldValidationErrorsByFieldId(\"phoneNumber\", newValue, verificationService);\n }}\n selectedCountryCode={viewModel.countryChoice && viewModel.countryChoice.value}\n disabled={getFieldConfigByFieldId(\"phoneNumber\")?.disabled}\n />\n ) : null}\n\n {options.customFormFields.map((config: CustomFormFieldConfig) => (\n <FormFieldCustom config={config} verificationService={verificationService} />\n ))}\n\n <MarketConsentWrapper\n verificationService={verificationService}\n isErrored={!!fieldValidationErrors.marketConsentValue}\n onChange={(newValue) => {\n updateLicensedProfessionalViewModel(\"metadata\", {\n ...verificationService.viewModel.metadata,\n marketConsentValue: newValue,\n });\n updateFieldValidationErrorsByFieldId(\"marketConsentValue\", newValue, verificationService);\n }}\n viewModel={viewModel}\n disabled={getFieldConfigByFieldId(\"marketConsentValue\")?.disabled}\n />\n\n <ExtraMessage verificationService={verificationService} suffix=\"CollectAboveSubmit\" />\n\n <CaptchaComponent\n verificationService={verificationService}\n isErrored={!!fieldValidationErrors.captchaToken}\n />\n\n <PersonalInfoStepSubmitButton\n step={VerificationStepsEnum.collectLicensedProfessionalPersonalInfo}\n verificationService={verificationService}\n viewModel={viewModel}\n failedInstantMatch={failedInstantMatch}\n buttonText={\n <FormattedHTMLMessage\n id=\"step.personalInfo.submitButtonText\"\n defaultMessage=\"Verify My Licensed Professional Status\"\n />\n }\n />\n </PersonalInfoWrapper>\n );\n};\n\nexport const StepLicensedProfessionalPersonalInfoComponent = injectIntl(\n StepLicensedProfessionalPersonalInfo,\n);\n"],"names":["defaultStatusMessages","StepLicensedProfessionalPersonalInfo","intl","verificationService","viewModel","fieldValidationErrors","verificationResponse","failedInstantMatch","hasFailedInstantMatch","locale","options","getOptions","updateLicensedProfessionalViewModel","key","value","nextState","produce","draft","getStatusLabel","status","getAvailableLicensedProfessionalStatuses","availableStatusesResponse","availableStatuses","jsxs","PersonalInfoWrapper","jsx","PersonalInfoHeader","ChangeLocaleV2Component","CountryComponentWrapper","getFieldConfigByFieldId","LicensedProfessionalStatusComponent","updatedStatuses","updateFieldValidationErrorsByFieldId","LicensedProfessionalOrganization","choice","updateViewModelOrganization","FirstName","newValue","LastName","BirthDate","PostalCodeComponent","FormattedHTMLMessage","Email","event","handleEmailOnKeyDown","PhoneNumber","config","FormFieldCustom","MarketConsentWrapper","ExtraMessage","CaptchaComponent","PersonalInfoStepSubmitButton","VerificationStepsEnum","StepLicensedProfessionalPersonalInfoComponent","injectIntl"],"mappings":";;;;;;;;;;AAgDA,MAAMA,IAA+C;AAAA,EACnD,wBAAwB;AAAA,EACxB,4BAA4B;AAAA,EAC5B,cAAc;AAAA,EACd,mBAAmB;AAAA,EACnB,WAAW;AAAA,EACX,mBAAmB;AAAA,EACnB,WAAW;AAAA,EACX,oBAAoB;AAAA,EACpB,wBAAwB;AAC1B,GAEMC,IAAuC,CAAC;AAAA,EAC5C,MAAAC;AAAA,EACA,qBAAAC;AACF,MAA0D;AACxD,QAAMC,IAAYD,EAAoB,WAChC,EAAE,uBAAAE,MAA0BF,GAC5BG,IACJH,EAAoB,sBAChBI,IAAqBC,EAAsBF,CAAoB,GAE/DG,IAASL,EAAU,aAAa,OAChCM,IAAUC,EAAA,GAEVC,IAAsC,CAC1CC,GACAC,MACG;AACH,UAAMC,IAAuDC;AAAAA,MAC3DZ;AAAA,MACA,CAACa,MAAqD;AAC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