@adyen/kyc-components 3.80.0 → 3.81.0-beta.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{AcceptTermsOfServiceComponent-DKDi6iRX.js → AcceptTermsOfServiceComponent-DUZ8m-El.js} +46 -45
- package/dist/{AccountSetupRejected-P-8-WKZp.js → AccountSetupRejected-DSGGI8JF.js} +2 -2
- package/dist/{Avatar-Bsc58neS.js → Avatar-DY9KPxi_.js} +1 -1
- package/dist/{BusinessDetailsDropin-CL-7UQcT.js → BusinessDetailsDropin-CCW1NBK5.js} +36 -63
- package/dist/{BusinessFinancingComponent-D1XrIsPc.js → BusinessFinancingComponent-Dn4d85NX.js} +3 -3
- package/dist/{BusinessFinancingDropin-DQ56QSPj.js → BusinessFinancingDropin-BpRf2LTA.js} +76 -78
- package/dist/{BusinessFinancingPage-B6M7ESoA.js → BusinessFinancingPage-t8vqkZMT.js} +3 -3
- package/dist/{BusinessTypeSelectionPage-CFignJ19.js → BusinessTypeSelectionPage-Bk3GHlFq.js} +4 -4
- package/dist/{ContractViewer-DiT_8GRM.js → ContractViewer-B2LwC3wV.js} +4 -11
- package/dist/{CreateIndividualComponent-DkX98cSx.js → CreateIndividualComponent-DcHuBu_q.js} +3 -3
- package/dist/{CreateTransferInstrumentComponent-SaPgQY2J.js → CreateTransferInstrumentComponent-_ZekKCzs.js} +2 -2
- package/dist/{CustomerSupport-XD8NZGtZ.js → CustomerSupport-BMHMLSZ9.js} +5 -5
- package/dist/{DebugModal-Dx55VMz1.js → DebugModal-CxVACxM4.js} +4 -4
- package/dist/{DecisionMakerDetailsPage-3fUQSm8D.js → DecisionMakerDetailsPage-R_PPht3A.js} +3 -3
- package/dist/{DecisionMakers-DHeZux6T.js → DecisionMakers-Bxdj0aIF.js} +29 -39
- package/dist/DetailViewLayout-Z9cuUp4X.js +65 -0
- package/dist/{EmbeddedStatus-BXBTxeW1.js → EmbeddedStatus-CDIMc5D0.js} +2 -2
- package/dist/EndStateLayout-ChS903yq.js +71 -0
- package/dist/{FormFlow-Urrg9vMm.js → FormFlow-gcCKgNQt.js} +2 -2
- package/dist/{IndividualOnfidoDropin-VYVSjf_C.js → IndividualOnfidoDropin-JrEsqyDz.js} +443 -247
- package/dist/{Introduction-DZCNLnIC.js → Introduction-DTjWG0SY.js} +3 -3
- package/dist/{LegalRepresentativeDetailsPage-zEJCKboy.js → LegalRepresentativeDetailsPage-BAVFc1rZ.js} +3 -3
- package/dist/{ManageIndividualComponent-BPI2aesr.js → ManageIndividualComponent-BHsbHn8F.js} +3 -3
- package/dist/{ManageTermsOfServiceComponent-BzkhmJMD.js → ManageTermsOfServiceComponent-Dl1Rs8mi.js} +3 -3
- package/dist/{ManageTransferInstrumentComponent-nlmjHqMN.js → ManageTransferInstrumentComponent-D1ntoR1k.js} +16 -42
- package/dist/{OnboardingDropinComponent-DkkC-O2y.js → OnboardingDropinComponent-Dvq5Ocum.js} +49 -37
- package/dist/{Review-CrcnPOYr.js → Review-Mn0Fnm2U.js} +3 -3
- package/dist/{RootBusinessDetailsPage-DHv2mk_-.js → RootBusinessDetailsPage-DoCCJDUa.js} +17 -17
- package/dist/{RootIndividualDetailsPage-D6AiPFI0.js → RootIndividualDetailsPage-C5WnGiHW.js} +3 -3
- package/dist/{SignPCIComponent-B3UDh5F8.js → SignPCIComponent-BGnCTWk_.js} +87 -85
- package/dist/{SingpassSelection-DDoYQM_e.js → SingpassSelection-BqY3v7Hq.js} +1 -1
- package/dist/{SoleProprietorshipPage-CKWYdVS_.js → SoleProprietorshipPage-VL2n0omM.js} +3 -3
- package/dist/{SourceOfFundsPage-D0kJCtH3.js → SourceOfFundsPage-BsHdnsPV.js} +11 -11
- package/dist/{StoreProvider-nqVR_kWS.js → StoreProvider-Fbl3I9L7.js} +3232 -2959
- package/dist/{TaskItemStatus-o-rpFU9k.js → TaskItemStatus-CC4mw_PB.js} +1 -1
- package/dist/{TaskStatusIndicator-6bpYVt4Z.js → TaskStatusIndicator-B7G7gqRt.js} +1 -1
- package/dist/{TaxReportingDropin-wcsNHxqr.js → TaxReportingDropin-C8Z2k6kC.js} +8 -8
- package/dist/{TileGroup-BrD32_Y0.js → TileGroup-B7_1rrEe.js} +1 -1
- package/dist/{TrustDetailsPage-DBoP1d57.js → TrustDetailsPage-q8pyPH40.js} +5 -5
- package/dist/{TrustMemberCompanyPage-CH47pq1l.js → TrustMemberCompanyPage-BT4dvwuF.js} +4 -4
- package/dist/{TrustMemberIndividualPage-g6tCyoZp.js → TrustMemberIndividualPage-CwxurDZs.js} +3 -3
- package/dist/{UnincorporatedPartnershipIndividualPage-BANlV7bn.js → UnincorporatedPartnershipIndividualPage-2Z7Ljh7Y.js} +3 -3
- package/dist/{UnincorporatedPartnershipMemberCompanyPage-BSrxjjH_.js → UnincorporatedPartnershipMemberCompanyPage-DD7ihKcb.js} +3 -3
- package/dist/{VerificationErrorAlert-w9MIQ2hH.js → VerificationErrorAlert-Cbls8Urj.js} +2 -2
- package/dist/{ViewVerificationStatusComponent-DAx2BfA6.js → ViewVerificationStatusComponent-BZbgVCiJ.js} +3 -3
- package/dist/adyen-business-financing.js +2 -2
- package/dist/adyen-individual.js +2 -2
- package/dist/adyen-kyc-components.js +14 -14
- package/dist/adyen-manage-individual.js +2 -2
- package/dist/adyen-manage-terms-of-service.js +2 -2
- package/dist/adyen-manage-transfer-instruments.js +2 -2
- package/dist/adyen-onboarding.js +2 -2
- package/dist/adyen-terms-of-service.js +2 -2
- package/dist/adyen-transfer-instrument.js +2 -2
- package/dist/adyen-verification-status.js +2 -2
- package/dist/bg-BG-9uVrFuHv.js +23 -0
- package/dist/bg-BG-B0-ZcjR0.js +22 -0
- package/dist/bg-BG-BYkC3yKf.js +58 -0
- package/dist/bg-BG-CMomhopf.js +35 -0
- package/dist/bg-BG-Dlzl9Szn.js +36 -0
- package/dist/bg-BG-NMIts2sa.js +35 -0
- package/dist/bg-BG-hFblesn-.js +15 -0
- package/dist/cs-CZ-B8IPRc47.js +15 -0
- package/dist/cs-CZ-BkyFDlAU.js +36 -0
- package/dist/cs-CZ-Csr_35T-.js +35 -0
- package/dist/cs-CZ-DMzortvO.js +35 -0
- package/dist/cs-CZ-Dk1ePReM.js +22 -0
- package/dist/cs-CZ-Wzc382q6.js +23 -0
- package/dist/cs-CZ-zTkICtXj.js +58 -0
- package/dist/da-DK-B5KNtXL8.js +36 -0
- package/dist/da-DK-BTpZzEgA.js +15 -0
- package/dist/da-DK-CeNMXUfE.js +23 -0
- package/dist/da-DK-D0N1TVVU.js +58 -0
- package/dist/da-DK-DStNe471.js +22 -0
- package/dist/da-DK-Dm8o1giq.js +35 -0
- package/dist/da-DK-q2b_1elr.js +35 -0
- package/dist/de-DE-BA9tcpNQ.js +36 -0
- package/dist/de-DE-CGoBPCPv.js +22 -0
- package/dist/de-DE-D2ByeIZs.js +35 -0
- package/dist/de-DE-DMFaycio.js +35 -0
- package/dist/de-DE-DjOUNvp6.js +15 -0
- package/dist/de-DE-Dtuu-nE7.js +58 -0
- package/dist/de-DE-JI-7mvxy.js +23 -0
- package/dist/el-GR-B69zcWyB.js +22 -0
- package/dist/el-GR-CGeBAkDN.js +35 -0
- package/dist/el-GR-Cu9HwD-f.js +15 -0
- package/dist/el-GR-DGW388LZ.js +35 -0
- package/dist/el-GR-DIhHT2q_.js +36 -0
- package/dist/el-GR-DaO38A1s.js +58 -0
- package/dist/el-GR-DfNOPkLq.js +23 -0
- package/dist/en-US-546hB2Wn.js +60 -0
- package/dist/en-US-BQpgt41j.js +37 -0
- package/dist/en-US-BTYdAWXp.js +15 -0
- package/dist/en-US-DHq7VYFs.js +23 -0
- package/dist/en-US-DX4NHkX-.js +38 -0
- package/dist/en-US-SbE0c1gn.js +36 -0
- package/dist/es-ES-BsQpwaPN.js +58 -0
- package/dist/es-ES-CKMfS8Yy.js +22 -0
- package/dist/es-ES-Cj7q7fWO.js +15 -0
- package/dist/es-ES-DOVPTeyf.js +23 -0
- package/dist/es-ES-RXwbiHjS.js +36 -0
- package/dist/es-ES-WWftn3JX.js +35 -0
- package/dist/es-ES-pXHx3ODy.js +35 -0
- package/dist/et-EE-BJIsPOnh.js +23 -0
- package/dist/et-EE-D5lRJbMZ.js +35 -0
- package/dist/et-EE-DF_GqBgK.js +58 -0
- package/dist/et-EE-Dor3enPS.js +15 -0
- package/dist/et-EE-Dw-aPF7J.js +22 -0
- package/dist/et-EE-QLVnr6Vl.js +35 -0
- package/dist/et-EE-ZssIqWkO.js +36 -0
- package/dist/fi-FI-BJ9RzrL3.js +58 -0
- package/dist/fi-FI-BNcnKrJ9.js +15 -0
- package/dist/fi-FI-D522KHGk.js +23 -0
- package/dist/fi-FI-D9E_KaJi.js +35 -0
- package/dist/fi-FI-DT351N-G.js +35 -0
- package/dist/fi-FI-DmiggQEL.js +36 -0
- package/dist/fi-FI-REYOX46I.js +22 -0
- package/dist/fr-FR-BNXXNUX_.js +35 -0
- package/dist/fr-FR-Bn3D6mmY.js +15 -0
- package/dist/fr-FR-CNR5-s9g.js +58 -0
- package/dist/fr-FR-Cv0k-3Xc.js +35 -0
- package/dist/fr-FR-D9qaP6nx.js +22 -0
- package/dist/fr-FR-DInQKkTd.js +23 -0
- package/dist/fr-FR-N5wYE2BZ.js +36 -0
- package/dist/{getFieldsWithExistingData-D1vVVeaf.js → getFieldsWithExistingData-BjmOzrhP.js} +1 -1
- package/dist/{hasDataChanged-DIVMD4Rh.js → hasDataChanged-f49kid1W.js} +2 -2
- package/dist/hr-HR-5iwKtfgh.js +36 -0
- package/dist/hr-HR-B8AZ4eHJ.js +35 -0
- package/dist/hr-HR-CNzbyo9r.js +15 -0
- package/dist/hr-HR-CbxEvbrE.js +22 -0
- package/dist/hr-HR-CjA4MWAU.js +58 -0
- package/dist/hr-HR-CzSrqEFA.js +35 -0
- package/dist/hr-HR-DzS44Gpv.js +23 -0
- package/dist/hu-HU-Aq1LsWah.js +36 -0
- package/dist/hu-HU-BSOiZA7a.js +15 -0
- package/dist/hu-HU-D0C6UfXB.js +22 -0
- package/dist/hu-HU-DRi6Dz9U.js +35 -0
- package/dist/hu-HU-NhwFr6o-.js +58 -0
- package/dist/hu-HU-xCvNM5TU.js +23 -0
- package/dist/hu-HU-zK6nUqWr.js +35 -0
- package/dist/{LandingLayout-CddoBOJ4.js → isIdNowModalOpen-C3cyeMaK.js} +11 -2
- package/dist/it-IT-8DEagvb2.js +36 -0
- package/dist/it-IT-BV9K87FK.js +58 -0
- package/dist/it-IT-BeYbInCQ.js +35 -0
- package/dist/it-IT-Biduphjt.js +22 -0
- package/dist/it-IT-C_fNHhjE.js +35 -0
- package/dist/it-IT-CjEYONJg.js +23 -0
- package/dist/it-IT-DvM-9LpM.js +15 -0
- package/dist/ja-JP-B2txEVPx.js +22 -0
- package/dist/ja-JP-BGAJQs1g.js +36 -0
- package/dist/ja-JP-BUz3qN-V.js +23 -0
- package/dist/ja-JP-C1OQ16fo.js +35 -0
- package/dist/ja-JP-DXcP0ojZ.js +58 -0
- package/dist/ja-JP-GXkLvnQ4.js +15 -0
- package/dist/ja-JP-weDU8GLW.js +35 -0
- package/dist/{localizeDateString-DLWgJuND.js → localizeDateString-aA76e6GH.js} +1 -1
- package/dist/lt-LT-B6CJ4ULI.js +23 -0
- package/dist/lt-LT-BUYY0LaT.js +35 -0
- package/dist/lt-LT-C_YMgjp9.js +22 -0
- package/dist/lt-LT-DNjXmQPv.js +15 -0
- package/dist/lt-LT-HZOWQKZT.js +36 -0
- package/dist/lt-LT-_MzAcXJo.js +35 -0
- package/dist/lt-LT-tXTApHm2.js +58 -0
- package/dist/lv-LV-B3sT3_cw.js +22 -0
- package/dist/lv-LV-B9js9VoA.js +35 -0
- package/dist/lv-LV-CRhXAjn6.js +35 -0
- package/dist/lv-LV-ChOoZuhc.js +15 -0
- package/dist/lv-LV-DSaQNC67.js +58 -0
- package/dist/lv-LV-DTtuyfHS.js +23 -0
- package/dist/lv-LV-F-Z4lDCV.js +36 -0
- package/dist/{mapFinancialReportsToFinancialInformation-anU-0sl0.js → mapFinancialReportsToFinancialInformation-Dx35AZ1B.js} +2 -2
- package/dist/mapScriptLocalization-H2Re3k5X.js +35 -0
- package/dist/nl-NL-BHqiO21q.js +15 -0
- package/dist/nl-NL-C-xUU2N3.js +36 -0
- package/dist/nl-NL-DLedC3mO.js +35 -0
- package/dist/nl-NL-Dbx0ZmI7.js +35 -0
- package/dist/nl-NL-DywVQ9km.js +58 -0
- package/dist/nl-NL-G1wVnmzT.js +22 -0
- package/dist/nl-NL-Zcq0bXd-.js +23 -0
- package/dist/no-NO-47ncaBZY.js +36 -0
- package/dist/no-NO-B8oxqfNI.js +58 -0
- package/dist/no-NO-BTtAuqCb.js +22 -0
- package/dist/no-NO-BxReX6oF.js +23 -0
- package/dist/no-NO-C0sfkp82.js +35 -0
- package/dist/no-NO-CKT9kLAH.js +15 -0
- package/dist/no-NO-CpVal4cV.js +35 -0
- package/dist/pl-PL--qPaNyJD.js +22 -0
- package/dist/pl-PL-1ylK-_FE.js +35 -0
- package/dist/pl-PL-C89s21hn.js +58 -0
- package/dist/pl-PL-CZLzkboH.js +36 -0
- package/dist/pl-PL-D6heiKsH.js +15 -0
- package/dist/pl-PL-DAPGaxWi.js +35 -0
- package/dist/pl-PL-T6uD5--R.js +23 -0
- package/dist/pt-PT-BY9rcwcF.js +35 -0
- package/dist/pt-PT-BkvMsoK4.js +35 -0
- package/dist/pt-PT-BvK00TeI.js +58 -0
- package/dist/pt-PT-CN4ws8N7.js +36 -0
- package/dist/pt-PT-D2elvnDU.js +15 -0
- package/dist/pt-PT-Dk48OVtf.js +22 -0
- package/dist/pt-PT-N0njcfLO.js +23 -0
- package/dist/{resolveEnvironment-BOHs0YoH.js → resolveEnvironment-zIeibPQJ.js} +3 -3
- package/dist/ro-RO-BLuOjrS0.js +22 -0
- package/dist/ro-RO-CpGd9emB.js +58 -0
- package/dist/ro-RO-DJLWmWZ4.js +35 -0
- package/dist/ro-RO-DL9V1CMj.js +15 -0
- package/dist/ro-RO-Dfx0g3bU.js +35 -0
- package/dist/ro-RO-Ic1SzBgx.js +23 -0
- package/dist/ro-RO-RylOvc5g.js +36 -0
- package/dist/{rules-DF6nIpnn.js → rules-DMMZWi5Q.js} +2 -2
- package/dist/sk-SK-B7o3L57C.js +35 -0
- package/dist/sk-SK-BSioQTMW.js +15 -0
- package/dist/sk-SK-BfJKbtGy.js +36 -0
- package/dist/sk-SK-C1Ky2nl_.js +22 -0
- package/dist/sk-SK-CiD0FeLN.js +23 -0
- package/dist/sk-SK-DlX5KvBV.js +58 -0
- package/dist/sk-SK-iO863_t2.js +35 -0
- package/dist/sl-SI-BB7iVcFI.js +22 -0
- package/dist/sl-SI-BylvpF-X.js +15 -0
- package/dist/sl-SI-C8CMAkD0.js +35 -0
- package/dist/sl-SI-Cth2Qa5T.js +35 -0
- package/dist/sl-SI-DklUFzaY.js +36 -0
- package/dist/sl-SI-MZoDApq9.js +23 -0
- package/dist/sl-SI-NI2OJAvm.js +58 -0
- package/dist/style.css +737 -489
- package/dist/styles-CLV89_hH.js +737 -489
- package/dist/sv-SE-Bwh0wKFk.js +35 -0
- package/dist/sv-SE-CAZpDX9G.js +58 -0
- package/dist/sv-SE-DCFSf4Oj.js +23 -0
- package/dist/sv-SE-DbI-1JqN.js +22 -0
- package/dist/sv-SE-Dwz1yTrB.js +15 -0
- package/dist/sv-SE-OPOHtqtP.js +35 -0
- package/dist/sv-SE-qduyDIzY.js +36 -0
- package/dist/types/api/idNowProvider/useIdNowProvider.d.ts +9 -5
- package/dist/types/components/Business/forms/BusinessDetails/forms.d.ts +1 -1
- package/dist/types/components/EFP/mapping/businessFinancingKeyMappings.d.ts +29 -32
- package/dist/types/components/EmbeddedDropins/ManageTransferInstrumentComponent/ManageTransferInstrumentOverviewItemModal/ManageTransferInstrumentOverviewItemModal.d.ts +0 -1
- package/dist/types/components/Individual/fields/NameFields/types.d.ts +4 -18
- package/dist/types/components/Individual/forms/IndividualOnfido/IdNowVerificationModal/IdNowVerificationModal.d.ts +4 -0
- package/dist/types/components/Individual/forms/IndividualOnfido/IdNowVerificationModal/isIdNowModalOpen.d.ts +16 -0
- package/dist/types/components/Individual/forms/IndividualOnfido/IdVerificationMethod/validateExtractionResult.d.ts +12 -0
- package/dist/types/components/Individual/forms/IndividualOnfido/IndividualOnfido.types.d.ts +3 -1
- package/dist/types/components/Individual/helpers/shouldShowMotionCapture.d.ts +2 -2
- package/dist/types/components/Individual/pages/DecisionMakerDetailsPage.d.ts +2 -1
- package/dist/types/components/Shared/fields/LocalizedLegalCompanyNameField/fieldConfig.d.ts +4 -5
- package/dist/types/components/Shared/fields/LocalizedLegalCompanyNameField/types.d.ts +4 -5
- package/dist/types/components/Shared/forms/Address/utils.d.ts +1 -1
- package/dist/types/components/ui/atoms/Modal/MaybeModal.d.ts +1 -1
- package/dist/types/components/ui/layout/DetailViewLayout/DetailViewLayout.d.ts +12 -0
- package/dist/types/components/ui/layout/EndStateLayout/EndStateLayout.d.ts +13 -0
- package/dist/types/components/ui/layout/LandingLayout/LandingLayout.d.ts +7 -2
- package/dist/types/core/models/api/individual.d.ts +5 -10
- package/dist/types/core/models/api/legal-arrangement.d.ts +0 -8
- package/dist/types/core/models/api/organization.d.ts +4 -8
- package/dist/types/core/models/api/scriptLocalization.d.ts +9 -0
- package/dist/types/hooks/useMultiForm/types.d.ts +4 -4
- package/dist/types/language/types.d.ts +2 -0
- package/dist/types/types/localizedScriptSchema.d.ts +22 -0
- package/dist/types/utils/entityStatusUtil.d.ts +1 -1
- package/dist/types/utils/getName.d.ts +1 -0
- package/dist/types/utils/mapScriptLocalization.d.ts +55 -0
- package/dist/{useMultiForm-CD30RFXS.js → useMultiForm-BOVByA_E.js} +6 -3
- package/dist/{useOnboardingStatus-_s90wk5C.js → useOnboardingStatus-BNwuglKy.js} +1 -1
- package/dist/{useTermsOfServiceStatus-DCkVaRvN.js → useTermsOfServiceStatus-lCNo2Bdd.js} +1 -1
- package/dist/{useUpdateLegalEntity-xfJlMkrb.js → useUpdateLegalEntity-CcUHqJyo.js} +2 -2
- package/dist/{utils-CusOxwr8.js → utils-Jk_zHwaz.js} +4 -4
- package/dist/{validate-Dnz1cwsS.js → validate-DUUyXWgS.js} +1 -1
- package/dist/{validate-C3WaahoD.js → validate-gCfuQFAB.js} +1 -1
- package/package.json +4 -4
- package/dist/FormEndState-D_8_v1NU.js +0 -59
- package/dist/bg-BG-HpLj_LOM.js +0 -16
- package/dist/cs-CZ-CQ_M3lEp.js +0 -16
- package/dist/da-DK-k4JW3iVF.js +0 -16
- package/dist/de-DE-C7mjtS5w.js +0 -16
- package/dist/el-GR-CEQrkYHW.js +0 -16
- package/dist/en-US-DDagIr01.js +0 -16
- package/dist/es-ES-DB1c74Kv.js +0 -16
- package/dist/et-EE-xIegUSuv.js +0 -16
- package/dist/fi-FI-NCxneAqU.js +0 -16
- package/dist/fr-FR-daiUnUwo.js +0 -16
- package/dist/hr-HR-BAUywqDj.js +0 -16
- package/dist/hu-HU-3GQojIHR.js +0 -16
- package/dist/it-IT-pDWPFHEh.js +0 -16
- package/dist/ja-JP-scPXJ93L.js +0 -16
- package/dist/lt-LT-BcGNy8Ti.js +0 -16
- package/dist/lv-LV-CBD07r1Y.js +0 -16
- package/dist/nl-NL-BxJUDHMK.js +0 -16
- package/dist/no-NO-Drup6Jyy.js +0 -16
- package/dist/pl-PL-BXv8Mmzb.js +0 -16
- package/dist/pt-PT-D8nU-UM2.js +0 -16
- package/dist/ro-RO-CG33OwqS.js +0 -16
- package/dist/sk-SK-DV_xkO69.js +0 -16
- package/dist/sl-SI-B5yeoadY.js +0 -16
- package/dist/sv-SE-CfxyR53r.js +0 -16
- package/dist/types/components/Individual/mapping/mapLocalization.d.ts +0 -3
- package/dist/types/components/ui/atoms/OutlinedIcon/OutlinedIcon.d.ts +0 -5
- package/dist/types/components/ui/molecules/FormEndState/FormEndState.d.ts +0 -2
- package/dist/types/components/ui/molecules/FormEndState/types.d.ts +0 -8
|
@@ -2,24 +2,26 @@
|
|
|
2
2
|
{
|
|
3
3
|
try {
|
|
4
4
|
let e = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : {}, n = new e.Error().stack;
|
|
5
|
-
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "
|
|
5
|
+
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "0a034c62-00d2-481b-99a5-b68b32ad7323", e._sentryDebugIdIdentifier = "sentry-dbid-0a034c62-00d2-481b-99a5-b68b32ad7323");
|
|
6
6
|
} catch (e) {
|
|
7
7
|
}
|
|
8
8
|
}
|
|
9
9
|
;
|
|
10
10
|
import { jsx, jsxs, Fragment } from "preact/jsx-runtime";
|
|
11
|
-
import { useMemo, useState, useEffect, useCallback } from "preact/hooks";
|
|
12
|
-
import { a as useApiContext,
|
|
13
|
-
import { u as useCreateLegalEntity, a as useUpdateLegalEntity } from "./useUpdateLegalEntity-
|
|
14
|
-
import { c as contactDetailsValidationRules, u as useValidatePhoneNumberImperatively } from "./validate-
|
|
15
|
-
import { F as FormContextProvider, a as FormFlow } from "./FormFlow-
|
|
16
|
-
import { u as useSingpassMyInfoLogin, L as LandingLayout } from "./
|
|
17
|
-
import { u as useMultiForm } from "./useMultiForm-
|
|
18
|
-
import { g as getFieldsWithExistingData } from "./getFieldsWithExistingData-
|
|
19
|
-
import { l as localizeDateString } from "./localizeDateString-
|
|
20
|
-
import { r as rules, D as DECISION_MAKER_TYPES_WITH_JOBTITLE$1 } from "./rules-
|
|
11
|
+
import { useMemo, useState, useEffect, useCallback, useRef } from "preact/hooks";
|
|
12
|
+
import { a as useApiContext, bn as useMutation, t as httpPost, bY as matchesRegex, bZ as trimValWithOneSpace, b_ as NO_ALPHABET_REGEX, b$ as EMOJI_REGEX, c0 as hasRepeatedCharacters, c1 as isInvalidName, c2 as INDIVIDUAL_VALID_CHAR_REGEX, c3 as getFormattingRegEx, c4 as SPECIAL_CHARS, c5 as standardKatakanaValidator, c6 as standardKanjiValidator, av as resolveFieldMetadata, as as CountryCodes, c7 as getSSNType, at as isEmpty, c8 as defaultFieldMetadata, c9 as defaultFieldConfig, ca as defaultFieldMetadata$1, cb as fieldConfig, $ as TaskTypes, cc as taxInformationDefaultFieldMetadata, O as LegalEntityTypes, cd as taxInformationDefaultFieldConfig, ce as getAgeToday, cf as euCountries, cg as getIdDocument, ch as getDocument, ci as mapExistingFile, cj as getPageName, ck as getLocalizedIdDocumentTypeOptions, cl as getPage, cm as createDocumentRequest, bB as formatObject, cn as individualApiKeyMapping, co as isEmpty$1, b9 as individualComponentsKeyMapping, bA as reverseMapping, cp as getNomineeFromAssociation, cq as drop, a0 as createLogger, X as useAccountHolder, u as useI18nContext, a3 as useAnalyticsContext, a9 as useToastContext, aa as useExperimentsContext, v as useSettingsContext, cr as documentApiUtils, cs as useProviderStatus, g as getLegalEntityCountry, bQ as getAssociatedLeAnalyticsPayload, ct as addressValidators, cu as getAsyncIdNumberValidationRule, cv as getAsyncPhoneValidationRules, cw as addressFormatters, cx as useScenarios, cy as setHasMotionCaptureScenario, cz as useScenarioConfiguration, cA as getPropsFromConfigurations, cB as individualForms, cC as showIndividualMotionCapture, bR as getRequiredForms, bS as addValidityToForms, cD as getAllowedDecisionMakerRoles, bc as datasetUtilities, bT as useFormComposer, bU as trackNavigation, cE as Individual, cF as composePerScenarioFormConfigurations, cG as omitObscuredFieldsIfUnchanged, cH as filterOutUnwantedAssociationsIfRootLE, bV as isValidationError, bW as processValidationErrors, bX as isMaintenanceModeError, bi as cloneObject, cI as mapAddressLabels, cJ as individualDocumentForms, cK as individualDocumentMapping, cL as individualObscuredFields, cM as mergeAttachments, cN as getFileExtention, ao as getOwnEntityAssociations, cO as hasNomineesChanged, cP as attachNomineeToRole, cQ as idVerificationProviderId, cR as doArraysMatch, N as Typography, G as Button, aD as Field, r as useQuery, B as skipToken, x as httpGet, c as useTranslation, bp as useQueryClient, cS as IFrameWidget, be as Modal, K as Alert, cT as getIndividualLegalEntityName, H as Svg, L as Loader, bg as Confirm, b5 as DecisionMakerTypes, cU as createFormRules, cV as getAvailableDecisionMakerRoleTypes, cW as allowedCountriesForNominee, bM as getAddressSchemaForCountry, bN as COUNTRIES_WITH_STATES_DATASET, b6 as Scenarios, cX as isLowRiskCountry, bs as Select, cY as isTruthyValidator, cZ as licenseCardNumberDefaultMetadata, c_ as licenseCardNumberDefaultConfig, au as mergeFieldMetadataIntoProps, aC as createFormUtils, bL as useFormContext, az as getFieldProps, c$ as idNumberFields, d0 as IdentityNumber, d1 as additionallIdNumberOptions, d2 as MaskedInput, bK as InputDate, d3 as formatDateObj, d4 as DriversLicense, d5 as addressFields, b as useAllowedCountries, w as SettingNames, d6 as isDecisionMakerTask, F as FormHeader, aB as ErrorPanel, aJ as CountryField, bO as Address, bP as getAddressSchemaLabelsByCountry, bE as Link, d7 as getAgeRangeForLegalRepresentative, d8 as IndividualIdNumberTypeSelector, d9 as TaxInformationField, bF as InputText, da as PatriotActDisclosure, db as isLegalRepresentativeNeeded, aA as nameFields, dc as decisionMakerRoleFields, dd as nomineeFields, de as contactDetailFields, aZ as ContextGuidance, b4 as TrustedFieldsProviders, df as DecisionMakerRole, dg as NomineeDecisionMakerRole, dh as LocalizedNameFields, di as ContactDetails, dj as keysOf, b3 as objectsDeepEqual, dk as RadioWithLabel, dl as listToRecord, dm as pick, dn as IdVerification, by as Spacer, a2 as IconButton, e as useDataset, f as datasetIdentifier, dp as IdDocumentManualUpload, M as translateStringOrObject, aX as Trans, dq as idDocumentUploadFields, dr as useFormRouterContext, ds as getFormProps, dt as useCapabilities, du as hasMotionCaptureScenario, dv as setShowIndividualMotionCapture, dw as shouldShowMotionCapture, dx as MemoizedProofOfRelationship, dy as MemoizedDocumentUpload, dz as MemoizedProofOfResidencyUpload, dA as individualOnfidoApiKeyMapping, dB as individualOnfidoBaseMapping, dC as individualOnfidoDocumentMapping, dD as individualOnfidoObscuredFields } from "./StoreProvider-Fbl3I9L7.js";
|
|
13
|
+
import { u as useCreateLegalEntity, a as useUpdateLegalEntity } from "./useUpdateLegalEntity-CcUHqJyo.js";
|
|
14
|
+
import { c as contactDetailsValidationRules, u as useValidatePhoneNumberImperatively } from "./validate-gCfuQFAB.js";
|
|
15
|
+
import { F as FormContextProvider, a as FormFlow } from "./FormFlow-gcCKgNQt.js";
|
|
16
|
+
import { u as useSingpassMyInfoLogin, i as idNowModalChildEntityId, L as LandingLayout, s as showIdNowModal } from "./isIdNowModalOpen-C3cyeMaK.js";
|
|
17
|
+
import { u as useMultiForm } from "./useMultiForm-BOVByA_E.js";
|
|
18
|
+
import { g as getFieldsWithExistingData } from "./getFieldsWithExistingData-BjmOzrhP.js";
|
|
19
|
+
import { l as localizeDateString } from "./localizeDateString-aA76e6GH.js";
|
|
20
|
+
import { r as rules, D as DECISION_MAKER_TYPES_WITH_JOBTITLE$1 } from "./rules-DMMZWi5Q.js";
|
|
21
|
+
import { m as mapSchemaFieldsToApiScriptLocalization, a as mapApiScriptLocalizationToSchemaFields } from "./mapScriptLocalization-H2Re3k5X.js";
|
|
21
22
|
import { signal, computed } from "@preact/signals";
|
|
22
|
-
import {
|
|
23
|
+
import { Show } from "@preact/signals/utils";
|
|
24
|
+
import { T as TileGroup } from "./TileGroup-B7_1rrEe.js";
|
|
23
25
|
const verifyIdNumber = async (legalEntityId, baseUrl, data) => {
|
|
24
26
|
return await httpPost(
|
|
25
27
|
{
|
|
@@ -348,28 +350,6 @@ const adjustIdentificationData = (data, apiData) => {
|
|
|
348
350
|
};
|
|
349
351
|
}
|
|
350
352
|
};
|
|
351
|
-
const mapNameLocalization = (data) => {
|
|
352
|
-
const localization = [];
|
|
353
|
-
if (data.jaHaniFirstName || data.jaHaniLastName) {
|
|
354
|
-
localization.push({
|
|
355
|
-
script: "ja-Hani",
|
|
356
|
-
fields: {
|
|
357
|
-
firstName: data.jaHaniFirstName,
|
|
358
|
-
lastName: data.jaHaniLastName
|
|
359
|
-
}
|
|
360
|
-
});
|
|
361
|
-
}
|
|
362
|
-
if (data.jaKanaFirstName || data.jaKanaLastName) {
|
|
363
|
-
localization.push({
|
|
364
|
-
script: "ja-Kana",
|
|
365
|
-
fields: {
|
|
366
|
-
firstName: data.jaKanaFirstName,
|
|
367
|
-
lastName: data.jaKanaLastName
|
|
368
|
-
}
|
|
369
|
-
});
|
|
370
|
-
}
|
|
371
|
-
return localization;
|
|
372
|
-
};
|
|
373
353
|
const mapIndividualToLegalEntity = (data) => {
|
|
374
354
|
const requestObj = {
|
|
375
355
|
...formatObject(data, individualApiKeyMapping)
|
|
@@ -381,7 +361,10 @@ const mapIndividualToLegalEntity = (data) => {
|
|
|
381
361
|
personalDetails,
|
|
382
362
|
requestObj.individual.identificationData
|
|
383
363
|
);
|
|
384
|
-
const localization =
|
|
364
|
+
const localization = [
|
|
365
|
+
mapSchemaFieldsToApiScriptLocalization(personalDetails, "jaHani"),
|
|
366
|
+
mapSchemaFieldsToApiScriptLocalization(personalDetails, "jaKana")
|
|
367
|
+
].filter(({ fields }) => !isEmpty$1(fields));
|
|
385
368
|
if (localization.length) {
|
|
386
369
|
requestObj.individual.name.localization = localization;
|
|
387
370
|
}
|
|
@@ -426,33 +409,12 @@ const mapLegalEntityToIndividual = (legalEntity, isChangingType, isRoleFieldNeed
|
|
|
426
409
|
};
|
|
427
410
|
}
|
|
428
411
|
if (legalEntity?.individual?.residentialAddress.country === "JP" && legalEntity.individual?.name?.localization) {
|
|
429
|
-
const
|
|
430
|
-
{
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
})
|
|
436
|
-
},
|
|
437
|
-
{
|
|
438
|
-
script: "ja-Kana",
|
|
439
|
-
mappingFunction: (l) => ({
|
|
440
|
-
jaKanaFirstName: l.fields?.firstName,
|
|
441
|
-
jaKanaLastName: l.fields?.lastName
|
|
442
|
-
})
|
|
443
|
-
}
|
|
444
|
-
];
|
|
445
|
-
configs.forEach((config) => {
|
|
446
|
-
const localizationToMap = legalEntity.individual?.name.localization?.find(
|
|
447
|
-
(l) => l.script === config.script
|
|
448
|
-
);
|
|
449
|
-
if (localizationToMap) {
|
|
450
|
-
individualData.personalDetails = {
|
|
451
|
-
...individualData.personalDetails,
|
|
452
|
-
...config.mappingFunction(localizationToMap)
|
|
453
|
-
};
|
|
454
|
-
}
|
|
455
|
-
});
|
|
412
|
+
for (const scriptLoc of legalEntity.individual.name.localization) {
|
|
413
|
+
individualData.personalDetails = {
|
|
414
|
+
...individualData.personalDetails,
|
|
415
|
+
...mapApiScriptLocalizationToSchemaFields(scriptLoc)
|
|
416
|
+
};
|
|
417
|
+
}
|
|
456
418
|
}
|
|
457
419
|
if (!parentLegalEntity?.entityAssociations) {
|
|
458
420
|
return individualData;
|
|
@@ -800,7 +762,10 @@ function IndividualDropin({
|
|
|
800
762
|
rules: individualFieldValidations,
|
|
801
763
|
asyncRules: individualFieldAsyncValidations,
|
|
802
764
|
optionalFields: derivedProps?.optionalFields,
|
|
803
|
-
formatters
|
|
765
|
+
formatters,
|
|
766
|
+
obscuredFields: {
|
|
767
|
+
personalDetails: ["idNumber"]
|
|
768
|
+
}
|
|
804
769
|
});
|
|
805
770
|
const { data = dataFromResponse } = form;
|
|
806
771
|
useEffect(() => {
|
|
@@ -1103,7 +1068,7 @@ function IndividualDropin({
|
|
|
1103
1068
|
const formatIdDocument = (idDocument2) => {
|
|
1104
1069
|
if (!idDocument2) return void 0;
|
|
1105
1070
|
const documentType = idDocument2?.instantIdVerificationData ? onfidoDocumentTypeMapping.find(
|
|
1106
|
-
(
|
|
1071
|
+
(document2) => idDocument2.instantIdVerificationData?.document_front.type === document2.id
|
|
1107
1072
|
) : idDocumentTypeOptions.find(({ id }) => idDocument2.idDocumentType === id);
|
|
1108
1073
|
if (!documentType) return void 0;
|
|
1109
1074
|
const frontPage = idDocument2.idFrontPage?.[0];
|
|
@@ -1363,7 +1328,7 @@ const basicDetailsValidators = ({
|
|
|
1363
1328
|
});
|
|
1364
1329
|
const guidanceQuestion = "adyen-kyc-guidance-question";
|
|
1365
1330
|
const options = "adyen-kyc-options";
|
|
1366
|
-
const styles$
|
|
1331
|
+
const styles$5 = {
|
|
1367
1332
|
guidanceQuestion,
|
|
1368
1333
|
options
|
|
1369
1334
|
};
|
|
@@ -1396,10 +1361,10 @@ const GuidanceQuestion = (props) => {
|
|
|
1396
1361
|
};
|
|
1397
1362
|
const yesTileLabel = yesLabel ?? i18n.get("yes");
|
|
1398
1363
|
const noTileLabel = noLabel ?? i18n.get("no");
|
|
1399
|
-
return /* @__PURE__ */ jsxs("div", { className: styles$
|
|
1364
|
+
return /* @__PURE__ */ jsxs("div", { className: styles$5.guidanceQuestion, children: [
|
|
1400
1365
|
/* @__PURE__ */ jsx(Typography, { variant: "body", el: "p", children: question }),
|
|
1401
1366
|
descriptionLinkText && onDescriptionLinkClick && /* @__PURE__ */ jsx(Button, { variant: "link", onClick: onDescriptionLinkClick, children: descriptionLinkText }),
|
|
1402
|
-
/* @__PURE__ */ jsx(Field, { name, className: styles$
|
|
1367
|
+
/* @__PURE__ */ jsx(Field, { name, className: styles$5.options, children: () => /* @__PURE__ */ jsx(
|
|
1403
1368
|
TileGroup,
|
|
1404
1369
|
{
|
|
1405
1370
|
allowMultiple: false,
|
|
@@ -1417,6 +1382,241 @@ const GuidanceQuestion = (props) => {
|
|
|
1417
1382
|
) })
|
|
1418
1383
|
] });
|
|
1419
1384
|
};
|
|
1385
|
+
const getIdNowProviderIdentificationStatus = async (rootLegalEntityId, baseUrl, legalEntityId) => {
|
|
1386
|
+
return httpGet({
|
|
1387
|
+
baseUrl,
|
|
1388
|
+
path: `legalEntities/${rootLegalEntityId}/child/${legalEntityId}/provider/idnow/identification/status`,
|
|
1389
|
+
errorHandler: async (response) => {
|
|
1390
|
+
const responseData = await response;
|
|
1391
|
+
if (responseData.status === 404) {
|
|
1392
|
+
return { status: 404, message: responseData.detail, errorCode: responseData.errorCode };
|
|
1393
|
+
}
|
|
1394
|
+
}
|
|
1395
|
+
});
|
|
1396
|
+
};
|
|
1397
|
+
const useIdNowIdentificationStatus = (legalEntityId, options2) => {
|
|
1398
|
+
const { rootLegalEntityId, baseUrl } = useApiContext();
|
|
1399
|
+
return useQuery({
|
|
1400
|
+
queryKey: legalEntityId === skipToken ? [] : ["idNowProviderIdentificationStatus", legalEntityId],
|
|
1401
|
+
queryFn: legalEntityId === skipToken ? skipToken : () => getIdNowProviderIdentificationStatus(
|
|
1402
|
+
rootLegalEntityId.value,
|
|
1403
|
+
baseUrl.value,
|
|
1404
|
+
legalEntityId
|
|
1405
|
+
),
|
|
1406
|
+
...options2
|
|
1407
|
+
});
|
|
1408
|
+
};
|
|
1409
|
+
const idNowProviderStartIdentification = async (rootLegalEntityId, baseUrl, legalEntityId) => {
|
|
1410
|
+
return httpPost({
|
|
1411
|
+
baseUrl,
|
|
1412
|
+
path: `legalEntities/${rootLegalEntityId}/child/${legalEntityId}/provider/idnow/identification/start`
|
|
1413
|
+
});
|
|
1414
|
+
};
|
|
1415
|
+
const useIdNowStartIdentification = (legalEntityId, options2) => {
|
|
1416
|
+
const { rootLegalEntityId, baseUrl } = useApiContext();
|
|
1417
|
+
return useQuery({
|
|
1418
|
+
queryKey: legalEntityId === skipToken ? [] : ["idNowProviderStartIdentification", legalEntityId],
|
|
1419
|
+
queryFn: legalEntityId === skipToken ? skipToken : () => idNowProviderStartIdentification(rootLegalEntityId.value, baseUrl.value, legalEntityId),
|
|
1420
|
+
...options2
|
|
1421
|
+
});
|
|
1422
|
+
};
|
|
1423
|
+
const idnowHeader = "adyen-kyc-idnow-header";
|
|
1424
|
+
const idnowVerificationHeaderIframeContainer = "adyen-kyc-idnow-verification-header-iframe-container";
|
|
1425
|
+
const idnowVerificationHeaderIframe = "adyen-kyc-idnow-verification-header-iframe";
|
|
1426
|
+
const idnowVerificationHeaderImage = "adyen-kyc-idnow-verification-header-image";
|
|
1427
|
+
const styles$4 = {
|
|
1428
|
+
idnowHeader,
|
|
1429
|
+
idnowVerificationHeaderIframeContainer,
|
|
1430
|
+
idnowVerificationHeaderIframe,
|
|
1431
|
+
idnowVerificationHeaderImage
|
|
1432
|
+
};
|
|
1433
|
+
const IdNowVerificationModal = ({ handleFinish }) => {
|
|
1434
|
+
const { t } = useTranslation(["individual", "common"]);
|
|
1435
|
+
const [isConfirmPresented, setIsConfirmPresented] = useState(false);
|
|
1436
|
+
const [genericError, setGenericError] = useState(false);
|
|
1437
|
+
const widgetContainerRef = useRef(null);
|
|
1438
|
+
const iFrameRef = useRef(null);
|
|
1439
|
+
const iFrameWidgetRef = useRef(null);
|
|
1440
|
+
const [page, setPage] = useState(1);
|
|
1441
|
+
const queryClient = useQueryClient();
|
|
1442
|
+
const { showToast } = useToastContext();
|
|
1443
|
+
const {
|
|
1444
|
+
data: idNowStatus,
|
|
1445
|
+
isLoading: isStatusLoading,
|
|
1446
|
+
refetch: refetchIdNowIdentificationStatus
|
|
1447
|
+
} = useIdNowIdentificationStatus(idNowModalChildEntityId.value?.id ?? skipToken, {
|
|
1448
|
+
enabled: !!idNowModalChildEntityId.value?.id,
|
|
1449
|
+
refetchOnMount: "always",
|
|
1450
|
+
refetchInterval: (query) => query.state.data?.status === "pending" ? 1e3 : false,
|
|
1451
|
+
retry: (failureCount, error) => {
|
|
1452
|
+
if ("status" in error && error.status === 404) return false;
|
|
1453
|
+
return failureCount < 3;
|
|
1454
|
+
}
|
|
1455
|
+
});
|
|
1456
|
+
const {
|
|
1457
|
+
data: idNowStart,
|
|
1458
|
+
isLoading,
|
|
1459
|
+
isError: idNowStartError,
|
|
1460
|
+
refetch: refetchIdNowStartIdentification
|
|
1461
|
+
} = useIdNowStartIdentification(idNowModalChildEntityId.value?.id ?? skipToken, {
|
|
1462
|
+
enabled: !!idNowModalChildEntityId.value?.id && page === 2
|
|
1463
|
+
});
|
|
1464
|
+
const handleDismiss = () => {
|
|
1465
|
+
setIsConfirmPresented(true);
|
|
1466
|
+
};
|
|
1467
|
+
const handleCancelDismiss = () => {
|
|
1468
|
+
setIsConfirmPresented(false);
|
|
1469
|
+
};
|
|
1470
|
+
const handleConfirmDismiss = () => {
|
|
1471
|
+
setPage(1);
|
|
1472
|
+
setGenericError(false);
|
|
1473
|
+
setIsConfirmPresented(false);
|
|
1474
|
+
showIdNowModal.value = false;
|
|
1475
|
+
if (idNowStartError && idNowModalChildEntityId.value?.id) {
|
|
1476
|
+
queryClient.resetQueries({
|
|
1477
|
+
queryKey: ["idNowProviderStartIdentification", idNowModalChildEntityId.value?.id]
|
|
1478
|
+
});
|
|
1479
|
+
}
|
|
1480
|
+
idNowModalChildEntityId.value = void 0;
|
|
1481
|
+
iFrameWidgetRef.current?.unmount();
|
|
1482
|
+
iFrameRef.current?.remove();
|
|
1483
|
+
handleFinish?.();
|
|
1484
|
+
};
|
|
1485
|
+
if (idNowStatus?.status === "finished") {
|
|
1486
|
+
if (idNowStatus?.providerStatus === "SUCCESS" || idNowStatus?.providerStatus === "SUCCESS_DATA_CHANGED") {
|
|
1487
|
+
showToast({
|
|
1488
|
+
label: t(($) => $["successfullyUpdatedDetails"], { ns: "common" }),
|
|
1489
|
+
variant: "success"
|
|
1490
|
+
});
|
|
1491
|
+
handleConfirmDismiss();
|
|
1492
|
+
}
|
|
1493
|
+
}
|
|
1494
|
+
if (!isLoading && idNowStartError) {
|
|
1495
|
+
setGenericError(true);
|
|
1496
|
+
setPage(1);
|
|
1497
|
+
}
|
|
1498
|
+
const initializeIdNowWidget = useCallback(async (url) => {
|
|
1499
|
+
const container = widgetContainerRef.current;
|
|
1500
|
+
if (!container) {
|
|
1501
|
+
return;
|
|
1502
|
+
}
|
|
1503
|
+
const iFrame = document.createElement("iframe");
|
|
1504
|
+
iFrameRef.current = iFrame;
|
|
1505
|
+
iFrame.setAttribute("allowFullscreen", "true");
|
|
1506
|
+
iFrame.classList.add(styles$4.idnowVerificationHeaderIframe);
|
|
1507
|
+
iFrame.setAttribute("height", "800");
|
|
1508
|
+
iFrame.setAttribute(
|
|
1509
|
+
"allow",
|
|
1510
|
+
"camera *;microphone *;geolocation *;clipboard-read *;clipboard-write *"
|
|
1511
|
+
);
|
|
1512
|
+
container.appendChild(iFrame);
|
|
1513
|
+
try {
|
|
1514
|
+
iFrameWidgetRef.current = new IFrameWidget(iFrame, url, "idnow", "");
|
|
1515
|
+
await iFrameWidgetRef.current.mountAndWaitForResponse();
|
|
1516
|
+
} catch (err) {
|
|
1517
|
+
console.error("Error occurred:", err);
|
|
1518
|
+
setGenericError(true);
|
|
1519
|
+
setPage(1);
|
|
1520
|
+
}
|
|
1521
|
+
}, []);
|
|
1522
|
+
useEffect(() => {
|
|
1523
|
+
if (page === 2 && !isLoading && idNowStart && idNowStart?.url) {
|
|
1524
|
+
(async () => {
|
|
1525
|
+
await refetchIdNowIdentificationStatus();
|
|
1526
|
+
await initializeIdNowWidget(idNowStart.url);
|
|
1527
|
+
})();
|
|
1528
|
+
}
|
|
1529
|
+
return () => {
|
|
1530
|
+
iFrameWidgetRef.current?.unmount();
|
|
1531
|
+
iFrameRef.current?.remove();
|
|
1532
|
+
};
|
|
1533
|
+
}, [isLoading, page, initializeIdNowWidget, refetchIdNowIdentificationStatus, idNowStart]);
|
|
1534
|
+
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
1535
|
+
!isStatusLoading && /* @__PURE__ */ jsxs(
|
|
1536
|
+
Modal,
|
|
1537
|
+
{
|
|
1538
|
+
size: "medium",
|
|
1539
|
+
showCloseButton: !isLoading && !isStatusLoading,
|
|
1540
|
+
onClose: handleDismiss,
|
|
1541
|
+
ariaLabel: t(($) => $["identityVerification"], { ns: "common" }),
|
|
1542
|
+
children: [
|
|
1543
|
+
page === 1 && /* @__PURE__ */ jsx("div", { className: styles$4.idnowHeader, children: /* @__PURE__ */ jsx(
|
|
1544
|
+
LandingLayout,
|
|
1545
|
+
{
|
|
1546
|
+
media: /* @__PURE__ */ jsx(
|
|
1547
|
+
Svg,
|
|
1548
|
+
{
|
|
1549
|
+
type: "image",
|
|
1550
|
+
className: styles$4.idnowVerificationHeaderImage,
|
|
1551
|
+
name: "passport-front-green"
|
|
1552
|
+
}
|
|
1553
|
+
),
|
|
1554
|
+
title: t(($) => $["identityVerification"], { ns: "common" }),
|
|
1555
|
+
description: /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
1556
|
+
t(($) => $["idNowDescription"], { ns: "individual" }),
|
|
1557
|
+
/* @__PURE__ */ jsx("br", {}),
|
|
1558
|
+
/* @__PURE__ */ jsx("br", {}),
|
|
1559
|
+
getIndividualLegalEntityName(idNowModalChildEntityId.value) && t(($) => $["idNowDescriptionName"], {
|
|
1560
|
+
ns: "individual",
|
|
1561
|
+
name: getIndividualLegalEntityName(idNowModalChildEntityId.value)
|
|
1562
|
+
})
|
|
1563
|
+
] }),
|
|
1564
|
+
error: !isLoading && genericError ? /* @__PURE__ */ jsx(
|
|
1565
|
+
Alert,
|
|
1566
|
+
{
|
|
1567
|
+
variant: "error",
|
|
1568
|
+
title: t(($) => $["thereWasAnErrorTryAgain"], { ns: "common" })
|
|
1569
|
+
}
|
|
1570
|
+
) : void 0,
|
|
1571
|
+
actions: /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
1572
|
+
/* @__PURE__ */ jsx(
|
|
1573
|
+
Button,
|
|
1574
|
+
{
|
|
1575
|
+
onClick: async () => {
|
|
1576
|
+
setGenericError(false);
|
|
1577
|
+
setPage(2);
|
|
1578
|
+
await refetchIdNowStartIdentification();
|
|
1579
|
+
},
|
|
1580
|
+
disabled: isLoading || isStatusLoading || idNowStatus?.status === "finished",
|
|
1581
|
+
fullWidth: true,
|
|
1582
|
+
children: idNowStatus?.status === "pending" ? t(($) => $["continueVerification"], { ns: "common" }) : t(($) => $["startVerification"], { ns: "common" })
|
|
1583
|
+
}
|
|
1584
|
+
),
|
|
1585
|
+
/* @__PURE__ */ jsx(
|
|
1586
|
+
Button,
|
|
1587
|
+
{
|
|
1588
|
+
disabled: isLoading || isStatusLoading || idNowStatus?.status === "finished",
|
|
1589
|
+
variant: "tertiary",
|
|
1590
|
+
onClick: handleConfirmDismiss,
|
|
1591
|
+
fullWidth: true,
|
|
1592
|
+
children: t(($) => $["finishLater"], { ns: "common" })
|
|
1593
|
+
}
|
|
1594
|
+
)
|
|
1595
|
+
] })
|
|
1596
|
+
}
|
|
1597
|
+
) }),
|
|
1598
|
+
page === 2 && (isLoading ? /* @__PURE__ */ jsx(Loader, {}) : /* @__PURE__ */ jsx(
|
|
1599
|
+
"div",
|
|
1600
|
+
{
|
|
1601
|
+
ref: widgetContainerRef,
|
|
1602
|
+
className: styles$4.idnowVerificationHeaderIframeContainer
|
|
1603
|
+
}
|
|
1604
|
+
))
|
|
1605
|
+
]
|
|
1606
|
+
}
|
|
1607
|
+
),
|
|
1608
|
+
isConfirmPresented && /* @__PURE__ */ jsx(
|
|
1609
|
+
Confirm,
|
|
1610
|
+
{
|
|
1611
|
+
confirmText: t(($) => $["leave"], { ns: "common" }),
|
|
1612
|
+
description: t(($) => $["unsavedChangesDescription"], { ns: "common" }),
|
|
1613
|
+
onCancel: handleCancelDismiss,
|
|
1614
|
+
onConfirm: handleConfirmDismiss,
|
|
1615
|
+
title: t(($) => $["unsavedChanges"], { ns: "common" })
|
|
1616
|
+
}
|
|
1617
|
+
)
|
|
1618
|
+
] });
|
|
1619
|
+
};
|
|
1420
1620
|
const areArraysDifferent = (a = [], b = []) => {
|
|
1421
1621
|
if (a.length !== b.length) {
|
|
1422
1622
|
return true;
|
|
@@ -1485,6 +1685,7 @@ const DECISION_MAKER_TYPES_WITH_JOBTITLE = [
|
|
|
1485
1685
|
DecisionMakerTypes.CONTROLLING_PERSON
|
|
1486
1686
|
];
|
|
1487
1687
|
const ID_MISSING_DATA_ERROR_CODE = "2_8071";
|
|
1688
|
+
const REMEDIATION_ACTION_UPLOAD_ID = "1_301";
|
|
1488
1689
|
const individualOnfidoRules = ({
|
|
1489
1690
|
matchingScenario,
|
|
1490
1691
|
data,
|
|
@@ -1691,7 +1892,8 @@ const individualOnfidoRules = ({
|
|
|
1691
1892
|
);
|
|
1692
1893
|
const isManualFlow = data?.idVerificationMethod?.idVerificationMethod === "manualVerification";
|
|
1693
1894
|
const idNumberExempt = data?.additionalPersonalDetails?.idNumberExempt;
|
|
1694
|
-
|
|
1895
|
+
const hasIdRemediationAction = problems?.remediationActions?.[REMEDIATION_ACTION_UPLOAD_ID];
|
|
1896
|
+
return isManualFlow && (idNumberExempt || hasMissingId || hasIdRemediationAction) ? "REQUIRED" : void 0;
|
|
1695
1897
|
},
|
|
1696
1898
|
isManualIdFlowAndHasMissingData: () => {
|
|
1697
1899
|
const hasMissingId = problems?.missingData?.some(
|
|
@@ -1755,7 +1957,7 @@ const TypeOfIdentity = ({
|
|
|
1755
1957
|
id,
|
|
1756
1958
|
name: i18n.get(name)
|
|
1757
1959
|
})),
|
|
1758
|
-
placeholder: i18n.get("
|
|
1960
|
+
placeholder: i18n.get("selectOne"),
|
|
1759
1961
|
selected: selectedIdentityType,
|
|
1760
1962
|
onChange: (event) => setSelectedIdentityType(event.target.value)
|
|
1761
1963
|
}
|
|
@@ -1845,7 +2047,6 @@ function Identity(props) {
|
|
|
1845
2047
|
);
|
|
1846
2048
|
}, [country, data?.typeOfIdentity, initialFormUtilProps, licenseCardNumberMetaData]);
|
|
1847
2049
|
const { t } = useTranslation();
|
|
1848
|
-
const { i18n } = useI18nContext();
|
|
1849
2050
|
const formUtils = useMemo(() => createFormUtils(mergedProps, t), [mergedProps, t]);
|
|
1850
2051
|
const { form } = useFormContext();
|
|
1851
2052
|
const defaultIdNumber = form?.defaultData?.additionalPersonalDetails?.idNumber;
|
|
@@ -1922,7 +2123,7 @@ function Identity(props) {
|
|
|
1922
2123
|
...childProps,
|
|
1923
2124
|
name: "expiryDate",
|
|
1924
2125
|
value: data?.expiryDate,
|
|
1925
|
-
placeholder:
|
|
2126
|
+
placeholder: t(($) => $["datePlaceholder"]),
|
|
1926
2127
|
readonly: formUtils.isReadOnly("expiryDate"),
|
|
1927
2128
|
onInput: handleFieldChange("expiryDate", "input"),
|
|
1928
2129
|
onBlur: handleFieldChange("expiryDate", "blur"),
|
|
@@ -2011,8 +2212,7 @@ const additionalPersonalDetailsFields = [
|
|
|
2011
2212
|
"taxInformation"
|
|
2012
2213
|
];
|
|
2013
2214
|
function AdditionalPersonalDetails(props) {
|
|
2014
|
-
const { t } = useTranslation();
|
|
2015
|
-
const { i18n } = useI18nContext();
|
|
2215
|
+
const { t } = useTranslation(["common", "individual"]);
|
|
2016
2216
|
const allowedCountries = useAllowedCountries();
|
|
2017
2217
|
const [showLegalRepresentativePrompt, setShowLegalRepresentativePrompt] = useState(false);
|
|
2018
2218
|
const { isSettingEnabled } = useSettingsContext();
|
|
@@ -2079,8 +2279,8 @@ function AdditionalPersonalDetails(props) {
|
|
|
2079
2279
|
}
|
|
2080
2280
|
),
|
|
2081
2281
|
/* @__PURE__ */ jsxs("div", { className: "adyen-kyc-additional-information__section-heading", children: [
|
|
2082
|
-
/* @__PURE__ */ jsx(Typography, { el: "h3", variant: "title", children:
|
|
2083
|
-
/* @__PURE__ */ jsx(Typography, { el: "p", variant: "body", children:
|
|
2282
|
+
/* @__PURE__ */ jsx(Typography, { el: "h3", variant: "title", children: t(($) => $["residentialAddress"]) }),
|
|
2283
|
+
/* @__PURE__ */ jsx(Typography, { el: "p", variant: "body", children: t(($) => $["thisPersonsPrimaryAddress"], { ns: "individual" }) })
|
|
2084
2284
|
] }),
|
|
2085
2285
|
formUtils.isRequiredField("country") && /* @__PURE__ */ jsx(
|
|
2086
2286
|
CountryField,
|
|
@@ -2112,11 +2312,11 @@ function AdditionalPersonalDetails(props) {
|
|
|
2112
2312
|
}
|
|
2113
2313
|
),
|
|
2114
2314
|
/* @__PURE__ */ jsxs("div", { className: "adyen-kyc-additional-information__section-heading", children: [
|
|
2115
|
-
/* @__PURE__ */ jsx(Typography, { el: "h3", variant: "title", children:
|
|
2315
|
+
/* @__PURE__ */ jsx(Typography, { el: "h3", variant: "title", children: t(($) => $["personalIdentityDetails"], { ns: "individual" }) }),
|
|
2116
2316
|
/* @__PURE__ */ jsxs(Typography, { el: "p", variant: "body", children: [
|
|
2117
|
-
|
|
2317
|
+
t(($) => $["weOnlyUseTheseDetailsForIdentityVerification"], { ns: "individual" }),
|
|
2118
2318
|
" ",
|
|
2119
|
-
/* @__PURE__ */ jsx(Link, { href: "https://www.adyen.com/privacy-policy", external: true, children:
|
|
2319
|
+
/* @__PURE__ */ jsx(Link, { href: "https://www.adyen.com/privacy-policy", external: true, children: t(($) => $["privacyStatement"]) })
|
|
2120
2320
|
] })
|
|
2121
2321
|
] }),
|
|
2122
2322
|
formUtils.isRequiredField("birthDate") && /* @__PURE__ */ jsx(
|
|
@@ -2132,7 +2332,7 @@ function AdditionalPersonalDetails(props) {
|
|
|
2132
2332
|
...childProps,
|
|
2133
2333
|
name: "birthDate",
|
|
2134
2334
|
value: data?.birthDate,
|
|
2135
|
-
placeholder:
|
|
2335
|
+
placeholder: t(($) => $["datePlaceholder"]),
|
|
2136
2336
|
readonly: formUtils.isReadOnly("birthDate"),
|
|
2137
2337
|
onInput: handleFieldChange("birthDate", "input"),
|
|
2138
2338
|
onBlur: handleBirthDateChange,
|
|
@@ -2146,15 +2346,16 @@ function AdditionalPersonalDetails(props) {
|
|
|
2146
2346
|
showLegalRepresentativePrompt && /* @__PURE__ */ jsx(
|
|
2147
2347
|
Confirm,
|
|
2148
2348
|
{
|
|
2149
|
-
title:
|
|
2150
|
-
description:
|
|
2151
|
-
|
|
2349
|
+
title: t(($) => $["legalRepresentativeForMinorIsRequired"], { ns: "individual" }),
|
|
2350
|
+
description: t(($) => $["becauseThisPersonIsUnderXYearsOld"], {
|
|
2351
|
+
ns: "individual",
|
|
2352
|
+
age: getAgeRangeForLegalRepresentative(country)?.max?.toString() ?? ""
|
|
2152
2353
|
}),
|
|
2153
2354
|
onCancel: () => {
|
|
2154
2355
|
setShowLegalRepresentativePrompt(false);
|
|
2155
2356
|
},
|
|
2156
|
-
confirmText:
|
|
2157
|
-
cancelText:
|
|
2357
|
+
confirmText: t(($) => $["ok"]),
|
|
2358
|
+
cancelText: t(($) => $["editDetails"]),
|
|
2158
2359
|
onConfirm: () => {
|
|
2159
2360
|
setShowLegalRepresentativePrompt(false);
|
|
2160
2361
|
}
|
|
@@ -2714,10 +2915,8 @@ const DataConflictsModal = ({
|
|
|
2714
2915
|
] });
|
|
2715
2916
|
};
|
|
2716
2917
|
const verificationHeaderImage = "adyen-kyc-verification-header-image";
|
|
2717
|
-
const verifyOnfidoError = "adyen-kyc-verify-onfido-error";
|
|
2718
2918
|
const styles$1 = {
|
|
2719
|
-
verificationHeaderImage
|
|
2720
|
-
verifyOnfidoError
|
|
2919
|
+
verificationHeaderImage
|
|
2721
2920
|
};
|
|
2722
2921
|
const toIndividualOnfidoConflictSchema = ({
|
|
2723
2922
|
basicDetails,
|
|
@@ -2871,14 +3070,14 @@ const uploadedDocument = "adyen-kyc-uploaded-document";
|
|
|
2871
3070
|
const styles = {
|
|
2872
3071
|
uploadedDocument
|
|
2873
3072
|
};
|
|
2874
|
-
const UploadedDocument = ({ document, onDelete, onUpdate }) => {
|
|
3073
|
+
const UploadedDocument = ({ document: document2, onDelete, onUpdate }) => {
|
|
2875
3074
|
const { i18n } = useI18nContext();
|
|
2876
3075
|
return /* @__PURE__ */ jsxs("article", { className: styles.uploadedDocument, children: [
|
|
2877
3076
|
/* @__PURE__ */ jsxs("div", { children: [
|
|
2878
|
-
/* @__PURE__ */ jsx(Typography, { el: "h4", variant: "title", children: i18n.get(
|
|
3077
|
+
/* @__PURE__ */ jsx(Typography, { el: "h4", variant: "title", children: i18n.get(document2.idDocumentType) }),
|
|
2879
3078
|
/* @__PURE__ */ jsx(Typography, { el: "p", variant: "body", children: i18n.get("uploadedOn", {
|
|
2880
3079
|
values: {
|
|
2881
|
-
date: localizeDateString(
|
|
3080
|
+
date: localizeDateString(document2.modificationDate, i18n.locale, {
|
|
2882
3081
|
month: "short"
|
|
2883
3082
|
}) ?? ""
|
|
2884
3083
|
}
|
|
@@ -2897,6 +3096,24 @@ const UploadedDocument = ({ document, onDelete, onUpdate }) => {
|
|
|
2897
3096
|
/* @__PURE__ */ jsx(Button, { onClick: onUpdate, variant: "secondary", children: i18n.get("update") })
|
|
2898
3097
|
] });
|
|
2899
3098
|
};
|
|
3099
|
+
const validateExtractionResult = (extractionResult) => {
|
|
3100
|
+
const { isExpired, isValidDocumentType, isUnderage, minimumOnboardingAge } = extractionResult;
|
|
3101
|
+
if (isExpired) {
|
|
3102
|
+
return { key: "theDocumentYouUploadedIsExpired" };
|
|
3103
|
+
}
|
|
3104
|
+
if (!isValidDocumentType) {
|
|
3105
|
+
return { key: "theDocumentTypeYouUploadedIsNotSupported" };
|
|
3106
|
+
}
|
|
3107
|
+
if (isUnderage) {
|
|
3108
|
+
return {
|
|
3109
|
+
key: "weDontAcceptDocumentsOrInformationAboutAnyoneYoungerThan_",
|
|
3110
|
+
options: {
|
|
3111
|
+
values: { minimumOnboardingAge: minimumOnboardingAge?.toString() ?? "" }
|
|
3112
|
+
}
|
|
3113
|
+
};
|
|
3114
|
+
}
|
|
3115
|
+
return null;
|
|
3116
|
+
};
|
|
2900
3117
|
const logger$2 = createLogger();
|
|
2901
3118
|
const idVerificationMethodFields = [
|
|
2902
3119
|
"idVerificationMethod",
|
|
@@ -2911,14 +3128,13 @@ function IdVerificationMethod(props) {
|
|
|
2911
3128
|
fieldValidationErrors,
|
|
2912
3129
|
hasLiveSelfieErrorCode
|
|
2913
3130
|
} = props;
|
|
2914
|
-
const { t } = useTranslation();
|
|
2915
|
-
const { i18n } = useI18nContext();
|
|
3131
|
+
const { t, i18n } = useTranslation(["individual", "common"]);
|
|
2916
3132
|
const userEvents = useAnalyticsContext();
|
|
2917
3133
|
const extractDocumentInformation2 = useExtractDocumentInformation();
|
|
2918
3134
|
const {
|
|
2919
3135
|
form: { data, handleChangeFor, setFormData }
|
|
2920
3136
|
} = useFormContext();
|
|
2921
|
-
const datasetUtils = datasetUtilities(i18n.
|
|
3137
|
+
const datasetUtils = datasetUtilities(i18n.language);
|
|
2922
3138
|
const existingDocument = data.idVerificationMethod?.idDocument;
|
|
2923
3139
|
const hasExistingDocument = !isEmpty$1(existingDocument);
|
|
2924
3140
|
const handleFieldChange = useCallback(
|
|
@@ -2967,24 +3183,6 @@ function IdVerificationMethod(props) {
|
|
|
2967
3183
|
setOcrExtractedData(void 0);
|
|
2968
3184
|
handlers.handleContinueToAdditionalDetails();
|
|
2969
3185
|
};
|
|
2970
|
-
const validateExtractionResult = (extractionResult) => {
|
|
2971
|
-
const { isExpired, isValidDocumentType, dateOfBirth, issuingCountry } = extractionResult;
|
|
2972
|
-
if (isExpired) {
|
|
2973
|
-
return { key: "theDocumentYouUploadedIsExpired" };
|
|
2974
|
-
}
|
|
2975
|
-
if (isValidDocumentType === false) {
|
|
2976
|
-
return { key: "theDocumentTypeYouUploadedIsNotSupported" };
|
|
2977
|
-
}
|
|
2978
|
-
if (isPersonUnderAge(dateOfBirth, issuingCountry)) {
|
|
2979
|
-
return {
|
|
2980
|
-
key: "weDontAcceptDocumentsOrInformationAboutAnyoneYoungerThan_",
|
|
2981
|
-
options: {
|
|
2982
|
-
values: { minimumOnboardingAge: extractionResult.minimumOnboardingAge?.toString() ?? "" }
|
|
2983
|
-
}
|
|
2984
|
-
};
|
|
2985
|
-
}
|
|
2986
|
-
return null;
|
|
2987
|
-
};
|
|
2988
3186
|
const { hasConflicts, conflictingProperties, resolvedData } = useDataConflicts(
|
|
2989
3187
|
comparableExistingData,
|
|
2990
3188
|
comparableExtractedData,
|
|
@@ -3118,7 +3316,7 @@ function IdVerificationMethod(props) {
|
|
|
3118
3316
|
handlers.handleUpdateDocument();
|
|
3119
3317
|
};
|
|
3120
3318
|
const modalProvidedData = resolvedData || comparableExistingData;
|
|
3121
|
-
const formUtils = createFormUtils(props, t);
|
|
3319
|
+
const formUtils = createFormUtils(props, i18n.t);
|
|
3122
3320
|
isNextStepDisabled.value = showLoadingSpinner;
|
|
3123
3321
|
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
3124
3322
|
/* @__PURE__ */ jsx(
|
|
@@ -3139,21 +3337,20 @@ function IdVerificationMethod(props) {
|
|
|
3139
3337
|
type: "image",
|
|
3140
3338
|
className: styles$1.verificationHeaderImage,
|
|
3141
3339
|
name: "passport-front-green",
|
|
3142
|
-
title:
|
|
3340
|
+
title: t(($) => $["instantIDVerificationDescription"], { ns: "common" })
|
|
3143
3341
|
}
|
|
3144
3342
|
),
|
|
3145
|
-
title:
|
|
3146
|
-
description: showIndividualMotionCapture?.value ?
|
|
3147
|
-
|
|
3343
|
+
title: t(($) => $["identityVerification"], { ns: "common" }),
|
|
3344
|
+
description: showIndividualMotionCapture?.value ? t(($) => $["toHelpProtectAgainstFraudAndKeepOurServices"]) : /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
3345
|
+
t(($) => $["takeOrUploadAPhoto"], { ns: "common" }),
|
|
3148
3346
|
" ",
|
|
3149
|
-
/* @__PURE__ */ jsx(Link, { href: "https://onfido.com", external: true, inline: true, children:
|
|
3347
|
+
/* @__PURE__ */ jsx(Link, { href: "https://onfido.com", external: true, inline: true, children: t(($) => $["onfido"], { ns: "common" }) })
|
|
3150
3348
|
] }),
|
|
3151
|
-
|
|
3349
|
+
error: error ? /* @__PURE__ */ jsx(
|
|
3152
3350
|
Alert,
|
|
3153
3351
|
{
|
|
3154
3352
|
variant: "error",
|
|
3155
|
-
title:
|
|
3156
|
-
className: styles$1.verifyOnfidoError
|
|
3353
|
+
title: t(($) => $[error.key], { ...error.options?.values, ns: "common" })
|
|
3157
3354
|
}
|
|
3158
3355
|
) : void 0,
|
|
3159
3356
|
actions: /* @__PURE__ */ jsx(Fragment, { children: showLoadingSpinner ? /* @__PURE__ */ jsx(Loader, { size: "large" }) : !hasExistingDocument && /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
@@ -3164,7 +3361,7 @@ function IdVerificationMethod(props) {
|
|
|
3164
3361
|
onClick: launchOnfido,
|
|
3165
3362
|
disabled: status === "extractionLoading",
|
|
3166
3363
|
loading: status === "extractionLoading",
|
|
3167
|
-
children:
|
|
3364
|
+
children: t(($) => $["startVerification"], { ns: "common" })
|
|
3168
3365
|
}
|
|
3169
3366
|
),
|
|
3170
3367
|
!showIndividualMotionCapture?.value && /* @__PURE__ */ jsx(
|
|
@@ -3173,7 +3370,7 @@ function IdVerificationMethod(props) {
|
|
|
3173
3370
|
onClick: () => setStatus("confirmManualFlowModal"),
|
|
3174
3371
|
variant: "secondary",
|
|
3175
3372
|
fullWidth: true,
|
|
3176
|
-
children:
|
|
3373
|
+
children: t(($) => $["addDetailsManually"], { ns: "common" })
|
|
3177
3374
|
}
|
|
3178
3375
|
)
|
|
3179
3376
|
] }) }),
|
|
@@ -3185,18 +3382,21 @@ function IdVerificationMethod(props) {
|
|
|
3185
3382
|
onUpdate: handleUpdateExistingDocument
|
|
3186
3383
|
}
|
|
3187
3384
|
),
|
|
3188
|
-
disclaimer:
|
|
3189
|
-
|
|
3190
|
-
|
|
3191
|
-
|
|
3192
|
-
|
|
3193
|
-
|
|
3194
|
-
|
|
3195
|
-
|
|
3196
|
-
|
|
3197
|
-
|
|
3198
|
-
|
|
3199
|
-
|
|
3385
|
+
disclaimer: (
|
|
3386
|
+
// TODO - replace with Trans component
|
|
3387
|
+
!hasExistingDocument && /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
3388
|
+
t(($) => $["byContinuingToUseThisService"]),
|
|
3389
|
+
" ",
|
|
3390
|
+
/* @__PURE__ */ jsx(Link, { href: "https://onfido.com/facial-scan-policy-and-release/", external: true, inline: true, children: t(($) => $["onfidoFacialScanPolicy"]) }),
|
|
3391
|
+
" ",
|
|
3392
|
+
/* @__PURE__ */ jsx(Link, { href: "https://onfido.com/privacy/", external: true, inline: true, children: t(($) => $["privacyPolicy"], { ns: "common" }) }),
|
|
3393
|
+
" ",
|
|
3394
|
+
t(($) => $["and"], { ns: "common" }),
|
|
3395
|
+
" ",
|
|
3396
|
+
/* @__PURE__ */ jsx(Link, { href: "https://onfido.com/terms-of-service/", external: true, inline: true, children: t(($) => $["termsOfService"], { ns: "common" }) }),
|
|
3397
|
+
"."
|
|
3398
|
+
] })
|
|
3399
|
+
)
|
|
3200
3400
|
}
|
|
3201
3401
|
),
|
|
3202
3402
|
status === "onfidoModal" && /* @__PURE__ */ jsx(
|
|
@@ -3212,19 +3412,19 @@ function IdVerificationMethod(props) {
|
|
|
3212
3412
|
status === "confirmManualFlowModal" && /* @__PURE__ */ jsx(
|
|
3213
3413
|
Confirm,
|
|
3214
3414
|
{
|
|
3215
|
-
title:
|
|
3216
|
-
description:
|
|
3415
|
+
title: t(($) => $["addDetailsManuallyQuestion"]),
|
|
3416
|
+
description: t(($) => $["itCanTakeUpTo"]),
|
|
3217
3417
|
onCancel: handleCancelAddDetailsManually,
|
|
3218
|
-
confirmText:
|
|
3418
|
+
confirmText: t(($) => $["yesAddManually"]),
|
|
3219
3419
|
onConfirm: handleContinueViaManualEntryFlow
|
|
3220
3420
|
}
|
|
3221
3421
|
),
|
|
3222
3422
|
status === "confirmDeleteDocumentModal" && /* @__PURE__ */ jsx(
|
|
3223
3423
|
Confirm,
|
|
3224
3424
|
{
|
|
3225
|
-
title:
|
|
3226
|
-
description:
|
|
3227
|
-
confirmText:
|
|
3425
|
+
title: t(($) => $["deleteIdDocument"]),
|
|
3426
|
+
description: t(($) => $["youMayBeAskedToReUpload"]),
|
|
3427
|
+
confirmText: t(($) => $["deleteDocument"], { ns: "common" }),
|
|
3228
3428
|
onCancel: handleCancelDeleteDocument,
|
|
3229
3429
|
onConfirm: handleDeleteDocument,
|
|
3230
3430
|
critical: true
|
|
@@ -3284,8 +3484,7 @@ const SignatoryQuestionnaireModalContent = () => {
|
|
|
3284
3484
|
] });
|
|
3285
3485
|
};
|
|
3286
3486
|
function SignatoryQuestionnaire(props) {
|
|
3287
|
-
const { t } = useTranslation();
|
|
3288
|
-
const { i18n } = useI18nContext();
|
|
3487
|
+
const { t } = useTranslation(["common", "individual"]);
|
|
3289
3488
|
const userEvents = useAnalyticsContext();
|
|
3290
3489
|
const [isModalOpen, setIsModalOpen] = useState(false);
|
|
3291
3490
|
const {
|
|
@@ -3333,12 +3532,12 @@ function SignatoryQuestionnaire(props) {
|
|
|
3333
3532
|
value: data?.isSignatory,
|
|
3334
3533
|
onChange: handleFieldChange("isSignatory"),
|
|
3335
3534
|
onDescriptionLinkClick: openModal,
|
|
3336
|
-
question:
|
|
3337
|
-
descriptionLinkText:
|
|
3535
|
+
question: t(($) => $["doesThisPersonHaveTheAuthority"], { ns: "individual" }),
|
|
3536
|
+
descriptionLinkText: t(($) => $["whatDoesThisMean"]),
|
|
3338
3537
|
errorMessage: getDisplayErrorMessage(errorMessage, t)
|
|
3339
3538
|
}
|
|
3340
3539
|
),
|
|
3341
|
-
isModalOpen && /* @__PURE__ */ jsx(Modal, { onClose: closeModal, ariaLabel:
|
|
3540
|
+
isModalOpen && /* @__PURE__ */ jsx(Modal, { onClose: closeModal, ariaLabel: t(($) => $["moreAboutAuthorizedSignatories"]), inset: true, children: /* @__PURE__ */ jsx(SignatoryQuestionnaireModalContent, {}) })
|
|
3342
3541
|
] });
|
|
3343
3542
|
}
|
|
3344
3543
|
const UboQuestionnaireModalContent = ({ modalType }) => {
|
|
@@ -3413,8 +3612,7 @@ const uboQuestionnaireFields = [
|
|
|
3413
3612
|
"isNomineeShareholder"
|
|
3414
3613
|
];
|
|
3415
3614
|
function UboQuestionnaire(props) {
|
|
3416
|
-
const { t } = useTranslation();
|
|
3417
|
-
const { i18n } = useI18nContext();
|
|
3615
|
+
const { t } = useTranslation(["common", "individual"]);
|
|
3418
3616
|
const userEvents = useAnalyticsContext();
|
|
3419
3617
|
const {
|
|
3420
3618
|
data,
|
|
@@ -3447,9 +3645,9 @@ function UboQuestionnaire(props) {
|
|
|
3447
3645
|
setActiveModal(null);
|
|
3448
3646
|
};
|
|
3449
3647
|
const modalAriaLabelMap = {
|
|
3450
|
-
isOwner:
|
|
3451
|
-
isControllingPerson:
|
|
3452
|
-
isDirector:
|
|
3648
|
+
isOwner: t(($) => $["moreAboutOwners"]),
|
|
3649
|
+
isControllingPerson: t(($) => $["moreAboutOwnershipThroughControl"]),
|
|
3650
|
+
isDirector: t(($) => $["moreAboutDirectors"])
|
|
3453
3651
|
};
|
|
3454
3652
|
const isDirectorErrorMessage = formUtils.getErrorMessage(
|
|
3455
3653
|
"isDirector",
|
|
@@ -3490,8 +3688,8 @@ function UboQuestionnaire(props) {
|
|
|
3490
3688
|
value: data?.isDirector,
|
|
3491
3689
|
onChange: handleFieldChange("isDirector"),
|
|
3492
3690
|
onDescriptionLinkClick: openModal("isDirector"),
|
|
3493
|
-
question:
|
|
3494
|
-
descriptionLinkText:
|
|
3691
|
+
question: t(($) => $["isThisPersonListedAsADirector"], { ns: "individual" }),
|
|
3692
|
+
descriptionLinkText: t(($) => $["whatDoesThisMean"]),
|
|
3495
3693
|
errorMessage: getDisplayErrorMessage(isDirectorErrorMessage, t)
|
|
3496
3694
|
}
|
|
3497
3695
|
),
|
|
@@ -3501,7 +3699,7 @@ function UboQuestionnaire(props) {
|
|
|
3501
3699
|
name: "isNomineeDirector",
|
|
3502
3700
|
value: data?.isNomineeDirector,
|
|
3503
3701
|
onChange: handleFieldChange("isNomineeDirector"),
|
|
3504
|
-
question:
|
|
3702
|
+
question: t(($) => $["isThisPersonANomineeDirectorAppointed"], { ns: "individual" }),
|
|
3505
3703
|
errorMessage: getDisplayErrorMessage(isNomineeDirectorErrorMessage, t)
|
|
3506
3704
|
}
|
|
3507
3705
|
),
|
|
@@ -3512,8 +3710,8 @@ function UboQuestionnaire(props) {
|
|
|
3512
3710
|
value: data?.isOwner,
|
|
3513
3711
|
onChange: handleFieldChange("isOwner"),
|
|
3514
3712
|
onDescriptionLinkClick: openModal("isOwner"),
|
|
3515
|
-
question:
|
|
3516
|
-
descriptionLinkText:
|
|
3713
|
+
question: t(($) => $["doesThisPersonOwn25PercentOrMoreOfBusiness"], { ns: "individual" }),
|
|
3714
|
+
descriptionLinkText: t(($) => $["whatDoesThisMean"]),
|
|
3517
3715
|
errorMessage: getDisplayErrorMessage(isOwnerErrorMessage, t)
|
|
3518
3716
|
}
|
|
3519
3717
|
),
|
|
@@ -3523,7 +3721,9 @@ function UboQuestionnaire(props) {
|
|
|
3523
3721
|
name: "isNomineeShareholder",
|
|
3524
3722
|
value: data?.isNomineeShareholder,
|
|
3525
3723
|
onChange: handleFieldChange("isNomineeShareholder"),
|
|
3526
|
-
question:
|
|
3724
|
+
question: t(($) => $["isThisPersonANomineeShareholderAppointedToHold"], {
|
|
3725
|
+
ns: "individual"
|
|
3726
|
+
}),
|
|
3527
3727
|
errorMessage: getDisplayErrorMessage(isNomineeShareholderErrorMessage, t)
|
|
3528
3728
|
}
|
|
3529
3729
|
),
|
|
@@ -3534,8 +3734,10 @@ function UboQuestionnaire(props) {
|
|
|
3534
3734
|
value: data?.isControllingPerson,
|
|
3535
3735
|
onChange: handleFieldChange("isControllingPerson"),
|
|
3536
3736
|
onDescriptionLinkClick: openModal("isControllingPerson"),
|
|
3537
|
-
question:
|
|
3538
|
-
|
|
3737
|
+
question: t(($) => $["doesThisPersonHaveSignificantResponsibility"], {
|
|
3738
|
+
ns: "individual"
|
|
3739
|
+
}),
|
|
3740
|
+
descriptionLinkText: t(($) => $["whatDoesThisMean"]),
|
|
3539
3741
|
errorMessage: getDisplayErrorMessage(isControllingPersonErrorMessage, t)
|
|
3540
3742
|
}
|
|
3541
3743
|
),
|
|
@@ -3625,7 +3827,8 @@ function IndividualOnfido(props) {
|
|
|
3625
3827
|
problems,
|
|
3626
3828
|
onNext,
|
|
3627
3829
|
setNextHandler,
|
|
3628
|
-
handleHomeClick
|
|
3830
|
+
handleHomeClick,
|
|
3831
|
+
scenarios
|
|
3629
3832
|
} = props;
|
|
3630
3833
|
const basicDetailsFormProps = getFormProps(props, basicDetailsFormID);
|
|
3631
3834
|
const signatoryQuestionnaireFormProps = getFormProps(props, signatoryQuestionnaireFormID);
|
|
@@ -3710,10 +3913,10 @@ function IndividualOnfido(props) {
|
|
|
3710
3913
|
capabilities,
|
|
3711
3914
|
userRoles: data?.basicDetails?.role,
|
|
3712
3915
|
taskType,
|
|
3713
|
-
hasMotionScenario: hasMotionCaptureScenarioValue
|
|
3916
|
+
hasMotionScenario: data?.basicDetails?.role?.includes(DecisionMakerTypes.SIGNATORY) && scenarios?.includes(Scenarios.L_BAFIN) ? false : hasMotionCaptureScenarioValue
|
|
3714
3917
|
})
|
|
3715
3918
|
);
|
|
3716
|
-
}, [data?.basicDetails?.role, taskType, capabilities, hasMotionCaptureScenarioValue]);
|
|
3919
|
+
}, [data?.basicDetails?.role, scenarios, taskType, capabilities, hasMotionCaptureScenarioValue]);
|
|
3717
3920
|
const fullName = `${data?.basicDetails?.firstName} ${data?.basicDetails?.lastName}`;
|
|
3718
3921
|
const handleFieldChange = (formName) => (fieldName, mode) => handleChangeFor(fieldName, formName, mode);
|
|
3719
3922
|
const hasLiveSelfieErrorCode = problems?.missingData?.some(
|
|
@@ -3928,7 +4131,10 @@ const mapIndividualOnfidoSchemaToLegalEntity = (individualOnfido, isExperimentEn
|
|
|
3928
4131
|
legalEntity.individual.identificationData
|
|
3929
4132
|
);
|
|
3930
4133
|
}
|
|
3931
|
-
const localization =
|
|
4134
|
+
const localization = [
|
|
4135
|
+
mapSchemaFieldsToApiScriptLocalization(individualOnfido.basicDetails ?? {}, "jaHani"),
|
|
4136
|
+
mapSchemaFieldsToApiScriptLocalization(individualOnfido.basicDetails ?? {}, "jaKana")
|
|
4137
|
+
].filter(({ fields }) => !isEmpty$1(fields));
|
|
3932
4138
|
if (localization.length) {
|
|
3933
4139
|
legalEntity.individual.name.localization = localization;
|
|
3934
4140
|
}
|
|
@@ -3996,33 +4202,12 @@ const mapLegalEntityToIndividualOnfidoSchema = (legalEntity, isChangingType, isR
|
|
|
3996
4202
|
individualOnfido.additionalPersonalDetails.typeOfIdentity = apiIdentityTypeToIdentityTypeMap[legalEntity.individual.identificationData.type];
|
|
3997
4203
|
}
|
|
3998
4204
|
if (legalEntity.individual?.name?.localization) {
|
|
3999
|
-
const
|
|
4000
|
-
{
|
|
4001
|
-
|
|
4002
|
-
|
|
4003
|
-
|
|
4004
|
-
|
|
4005
|
-
})
|
|
4006
|
-
},
|
|
4007
|
-
{
|
|
4008
|
-
script: "ja-Kana",
|
|
4009
|
-
mappingFunction: (l) => ({
|
|
4010
|
-
jaKanaFirstName: l.fields?.firstName,
|
|
4011
|
-
jaKanaLastName: l.fields?.lastName
|
|
4012
|
-
})
|
|
4013
|
-
}
|
|
4014
|
-
];
|
|
4015
|
-
configs.forEach((config) => {
|
|
4016
|
-
const localizationToMap = legalEntity.individual?.name.localization?.find(
|
|
4017
|
-
(l) => l.script === config.script
|
|
4018
|
-
);
|
|
4019
|
-
if (localizationToMap) {
|
|
4020
|
-
individualOnfido.basicDetails = {
|
|
4021
|
-
...individualOnfido.basicDetails,
|
|
4022
|
-
...config.mappingFunction(localizationToMap)
|
|
4023
|
-
};
|
|
4024
|
-
}
|
|
4025
|
-
});
|
|
4205
|
+
for (const scriptLoc of legalEntity.individual.name.localization) {
|
|
4206
|
+
individualOnfido.basicDetails = {
|
|
4207
|
+
...individualOnfido.basicDetails,
|
|
4208
|
+
...mapApiScriptLocalizationToSchemaFields(scriptLoc)
|
|
4209
|
+
};
|
|
4210
|
+
}
|
|
4026
4211
|
}
|
|
4027
4212
|
if (!parentLegalEntity?.entityAssociations) {
|
|
4028
4213
|
return individualOnfido;
|
|
@@ -4060,7 +4245,7 @@ const mapLegalEntityToIndividualOnfidoSchema = (legalEntity, isChangingType, isR
|
|
|
4060
4245
|
return individualOnfido;
|
|
4061
4246
|
};
|
|
4062
4247
|
const mapDocumentDetailToIdDocument = (documents) => {
|
|
4063
|
-
const activeDocument = documents.find((
|
|
4248
|
+
const activeDocument = documents.find((document2) => document2.active);
|
|
4064
4249
|
return activeDocument ? {
|
|
4065
4250
|
idDocumentType: activeDocument.type,
|
|
4066
4251
|
modificationDate: activeDocument.modificationDate
|
|
@@ -4414,7 +4599,10 @@ function IndividualOnfidoDropin({
|
|
|
4414
4599
|
defaultData,
|
|
4415
4600
|
rules: individualFieldValidations,
|
|
4416
4601
|
asyncRules: individualFieldAsyncValidations,
|
|
4417
|
-
optionalFields: derivedProps?.optionalFields
|
|
4602
|
+
optionalFields: derivedProps?.optionalFields,
|
|
4603
|
+
obscuredFields: {
|
|
4604
|
+
additionalPersonalDetails: ["idNumber"]
|
|
4605
|
+
}
|
|
4418
4606
|
});
|
|
4419
4607
|
const documentUtils = documentApiUtils({
|
|
4420
4608
|
baseUrl: baseUrl.value,
|
|
@@ -4652,18 +4840,18 @@ function IndividualOnfidoDropin({
|
|
|
4652
4840
|
legalEntityResponse,
|
|
4653
4841
|
accountHolder || void 0
|
|
4654
4842
|
);
|
|
4655
|
-
const
|
|
4843
|
+
const submittedLegalEntity = await submitLegalEntity({
|
|
4656
4844
|
dataSubmitted,
|
|
4657
4845
|
legalEntity,
|
|
4658
4846
|
idDocumentType
|
|
4659
4847
|
});
|
|
4660
4848
|
setAccountHolder(accountHolder);
|
|
4661
4849
|
if (dataSubmitted.idVerificationMethod && dataSubmitted.idVerificationMethod?.idVerificationMethod !== "existingDocument" || hasVerificationErrors) {
|
|
4662
|
-
await submitDocuments({ legalEntity:
|
|
4850
|
+
await submitDocuments({ legalEntity: submittedLegalEntity, dataSubmitted });
|
|
4663
4851
|
}
|
|
4664
4852
|
if (parentLegalEntity) {
|
|
4665
4853
|
await attachAssociationToParentLegalEntity({
|
|
4666
|
-
legalEntity:
|
|
4854
|
+
legalEntity: submittedLegalEntity,
|
|
4667
4855
|
parentLE: parentLegalEntity,
|
|
4668
4856
|
dataSubmitted
|
|
4669
4857
|
});
|
|
@@ -4672,9 +4860,10 @@ function IndividualOnfidoDropin({
|
|
|
4672
4860
|
refetchType: "all"
|
|
4673
4861
|
});
|
|
4674
4862
|
}
|
|
4863
|
+
idNowModalChildEntityId.value = submittedLegalEntity;
|
|
4675
4864
|
setLoadingStatus("success");
|
|
4676
4865
|
clearToasts();
|
|
4677
|
-
externalOnSubmit?.(dataSubmitted);
|
|
4866
|
+
externalOnSubmit?.(dataSubmitted, matchingScenario);
|
|
4678
4867
|
} catch (e) {
|
|
4679
4868
|
const eventsAdditionalData = {};
|
|
4680
4869
|
logger.error("Failed to update individual", e);
|
|
@@ -4708,7 +4897,7 @@ function IndividualOnfidoDropin({
|
|
|
4708
4897
|
const formatIdDocument = (idDocument2) => {
|
|
4709
4898
|
if (!idDocument2) return void 0;
|
|
4710
4899
|
const documentType = idDocument2?.instantIdVerificationData ? onfidoDocumentTypeMapping.find(
|
|
4711
|
-
(
|
|
4900
|
+
(document2) => idDocument2.instantIdVerificationData?.document_front.type === document2.id
|
|
4712
4901
|
) : idDocumentTypeOptions.find(({ id }) => idDocument2.idDocumentType === id);
|
|
4713
4902
|
if (!documentType) return void 0;
|
|
4714
4903
|
const frontPage = idDocument2.idFrontPage?.[0];
|
|
@@ -4819,9 +5008,12 @@ function IndividualOnfidoDropin({
|
|
|
4819
5008
|
...data?.additionalPersonalDetails?.idNumberExempt ? ["idNumber"] : [],
|
|
4820
5009
|
...isManualVerificationOrExistingDoc(data?.idVerificationMethod?.idVerificationMethod) ? ["idVerificationMethod", "modificationDate"] : []
|
|
4821
5010
|
];
|
|
5011
|
+
const isUploadEmpty = !data?.manualIdUpload || Object.keys(data?.manualIdUpload).length === 0;
|
|
4822
5012
|
const omittedFormsForSummary = [
|
|
4823
|
-
|
|
4824
|
-
...data?.idVerificationMethod?.idVerificationMethod === "
|
|
5013
|
+
// 1. Omit idDocument if instant OR (manual/existing AND upload is empty)
|
|
5014
|
+
...data?.idVerificationMethod?.idVerificationMethod === "instantVerification" || isManualVerificationOrExistingDoc(data?.idVerificationMethod?.idVerificationMethod) && isUploadEmpty ? ["idDocument"] : [],
|
|
5015
|
+
// 2. Omit idVerificationMethod if manual or existing
|
|
5016
|
+
...isManualVerificationOrExistingDoc(data?.idVerificationMethod?.idVerificationMethod) ? ["idVerificationMethod"] : []
|
|
4825
5017
|
];
|
|
4826
5018
|
const customLabelsForSummary = {
|
|
4827
5019
|
idVerificationMethod: data?.idVerificationMethod?.idVerificationMethod === "instantVerification" ? "idVerificationMethod" : "idDocument"
|
|
@@ -4854,56 +5046,60 @@ function IndividualOnfidoDropin({
|
|
|
4854
5046
|
},
|
|
4855
5047
|
[associatedLeTrackingParams]
|
|
4856
5048
|
);
|
|
4857
|
-
return /* @__PURE__ */
|
|
4858
|
-
|
|
4859
|
-
{
|
|
4860
|
-
|
|
4861
|
-
|
|
4862
|
-
|
|
4863
|
-
|
|
4864
|
-
|
|
4865
|
-
|
|
4866
|
-
|
|
4867
|
-
|
|
4868
|
-
labels: customLabelsForSummary
|
|
4869
|
-
},
|
|
4870
|
-
asModal,
|
|
4871
|
-
currentStep: steps.current,
|
|
4872
|
-
disableNextButton: disableNextButton.value,
|
|
4873
|
-
forms,
|
|
4874
|
-
gotoFormByFormIndex,
|
|
4875
|
-
handleBackClick,
|
|
4876
|
-
handleCancelClick: handleHomeClick,
|
|
4877
|
-
handleNextClick: nextHandler || handleNextClick,
|
|
4878
|
-
loadingStatus,
|
|
4879
|
-
totalSteps: steps.total,
|
|
4880
|
-
children: /* @__PURE__ */ jsx(
|
|
4881
|
-
IndividualOnfido,
|
|
4882
|
-
{
|
|
4883
|
-
...derivedProps,
|
|
4884
|
-
requiredFields,
|
|
4885
|
-
data,
|
|
4886
|
-
defaultCountry: country,
|
|
4887
|
-
activeForm,
|
|
4888
|
-
forms,
|
|
4889
|
-
taskType,
|
|
5049
|
+
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
5050
|
+
/* @__PURE__ */ jsx(Show, { when: showIdNowModal && idNowModalChildEntityId, children: /* @__PURE__ */ jsx(IdNowVerificationModal, { handleFinish: handleHomeClick }) }),
|
|
5051
|
+
/* @__PURE__ */ jsx(FormContextProvider, { form, children: /* @__PURE__ */ jsx(
|
|
5052
|
+
FormFlow,
|
|
5053
|
+
{
|
|
5054
|
+
summary: {
|
|
5055
|
+
data: formatDataForSummary(),
|
|
5056
|
+
omitted: {
|
|
5057
|
+
keys: omittedKeysForSummary,
|
|
5058
|
+
forms: omittedFormsForSummary
|
|
5059
|
+
},
|
|
4890
5060
|
problems,
|
|
4891
|
-
|
|
4892
|
-
|
|
4893
|
-
|
|
4894
|
-
|
|
4895
|
-
|
|
4896
|
-
|
|
4897
|
-
|
|
4898
|
-
|
|
4899
|
-
|
|
4900
|
-
|
|
4901
|
-
|
|
4902
|
-
|
|
4903
|
-
|
|
4904
|
-
|
|
4905
|
-
|
|
4906
|
-
|
|
5061
|
+
trackNavigation: handleTrackNavigation,
|
|
5062
|
+
labels: customLabelsForSummary
|
|
5063
|
+
},
|
|
5064
|
+
asModal,
|
|
5065
|
+
currentStep: steps.current,
|
|
5066
|
+
disableNextButton: disableNextButton.value,
|
|
5067
|
+
forms,
|
|
5068
|
+
gotoFormByFormIndex,
|
|
5069
|
+
handleBackClick,
|
|
5070
|
+
handleCancelClick: handleHomeClick,
|
|
5071
|
+
handleNextClick: nextHandler || handleNextClick,
|
|
5072
|
+
loadingStatus,
|
|
5073
|
+
totalSteps: steps.total,
|
|
5074
|
+
children: /* @__PURE__ */ jsx(
|
|
5075
|
+
IndividualOnfido,
|
|
5076
|
+
{
|
|
5077
|
+
...derivedProps,
|
|
5078
|
+
requiredFields,
|
|
5079
|
+
data,
|
|
5080
|
+
defaultCountry: country,
|
|
5081
|
+
activeForm,
|
|
5082
|
+
forms,
|
|
5083
|
+
scenarios,
|
|
5084
|
+
taskType,
|
|
5085
|
+
problems,
|
|
5086
|
+
onNext: handleNextClick,
|
|
5087
|
+
onBack: handleBackClick,
|
|
5088
|
+
legalEntityId: legalEntityResponse?.id,
|
|
5089
|
+
allowedRoles: roleTypes,
|
|
5090
|
+
shouldValidate,
|
|
5091
|
+
accountHolder,
|
|
5092
|
+
parentLegalEntity,
|
|
5093
|
+
trustedFields,
|
|
5094
|
+
trustedFieldsProvider,
|
|
5095
|
+
trustedRoles,
|
|
5096
|
+
setNextHandler,
|
|
5097
|
+
handleHomeClick
|
|
5098
|
+
}
|
|
5099
|
+
)
|
|
5100
|
+
}
|
|
5101
|
+
) })
|
|
5102
|
+
] });
|
|
4907
5103
|
}
|
|
4908
5104
|
export {
|
|
4909
5105
|
IndividualOnfidoDropin as I,
|