@adyen/kyc-components 3.80.2 → 3.81.0-beta.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/dist/{AcceptTermsOfServiceComponent-CchhPHen.js → AcceptTermsOfServiceComponent-D5NnqI3Z.js} +46 -45
- package/dist/{AccountSetupRejected-CeCbf8TR.js → AccountSetupRejected-CCkUWYww.js} +2 -2
- package/dist/{Avatar-YuzwcXlA.js → Avatar-BKZOHMzD.js} +1 -1
- package/dist/{BusinessDetailsDropin-rMjpsAAF.js → BusinessDetailsDropin-C2CpFIgV.js} +36 -63
- package/dist/{BusinessFinancingComponent-BdvWchzq.js → BusinessFinancingComponent-Bul9H2Vr.js} +3 -3
- package/dist/{BusinessFinancingDropin-CBjrAEAT.js → BusinessFinancingDropin-0xqmeQ7c.js} +76 -78
- package/dist/{BusinessFinancingPage-C_5JaGP-.js → BusinessFinancingPage-Cx1oKA6b.js} +3 -3
- package/dist/{BusinessTypeSelectionPage-B0PA2cvS.js → BusinessTypeSelectionPage-GWKDG6CW.js} +4 -4
- package/dist/{ContractViewer-CkFNb5hj.js → ContractViewer-B2LwC3wV.js} +4 -11
- package/dist/{CreateIndividualComponent-1Pj39l5M.js → CreateIndividualComponent-Cp8MCf1i.js} +3 -3
- package/dist/{CreateTransferInstrumentComponent-BiHk5YcO.js → CreateTransferInstrumentComponent-M6xPhlRr.js} +2 -2
- package/dist/{CustomerSupport-CGf6faBc.js → CustomerSupport-Bi5GgFO6.js} +5 -5
- package/dist/{DebugModal-BAQQynXv.js → DebugModal-DAFiRnOf.js} +4 -4
- package/dist/{DecisionMakerDetailsPage-CNyYr16F.js → DecisionMakerDetailsPage-B44Vlvic.js} +3 -3
- package/dist/{DecisionMakers-B4DRgAfI.js → DecisionMakers-Chnq6eX0.js} +29 -39
- package/dist/DetailViewLayout-Z9cuUp4X.js +65 -0
- package/dist/{EmbeddedStatus-DGn4Yju8.js → EmbeddedStatus-B5aUOg0u.js} +2 -2
- package/dist/EndStateLayout-xKxnL5gi.js +71 -0
- package/dist/{FormFlow-u6da3P1H.js → FormFlow-DNWaou8B.js} +2 -2
- package/dist/{IndividualOnfidoDropin-CKeRasHX.js → IndividualOnfidoDropin-DWXUKEz9.js} +437 -248
- package/dist/{Introduction-DBnCXYKa.js → Introduction-BYBwqNu_.js} +3 -3
- package/dist/{LegalRepresentativeDetailsPage-DD46NKN9.js → LegalRepresentativeDetailsPage-DxzUrYUD.js} +3 -3
- package/dist/{ManageIndividualComponent-BRwAXfIw.js → ManageIndividualComponent-BIoLOIX7.js} +3 -3
- package/dist/{ManageTermsOfServiceComponent-B-J2K4oE.js → ManageTermsOfServiceComponent-DyV_kwaU.js} +3 -3
- package/dist/{ManageTransferInstrumentComponent-BF7YCO2r.js → ManageTransferInstrumentComponent-BPUej1qj.js} +16 -42
- package/dist/{OnboardingDropinComponent-DxG3DZEe.js → OnboardingDropinComponent-CgpqiO3T.js} +55 -43
- package/dist/{Review-DIzjJeSN.js → Review-Ch7mSUhw.js} +3 -3
- package/dist/{RootBusinessDetailsPage-xG8YmqDu.js → RootBusinessDetailsPage-BUCTQa4Q.js} +17 -17
- package/dist/{RootIndividualDetailsPage-BIipWvfE.js → RootIndividualDetailsPage-Bw-QWPhC.js} +3 -3
- package/dist/{SignPCIComponent-ja5fHjMw.js → SignPCIComponent-DmA4GCt8.js} +87 -85
- package/dist/{SingpassSelection-C91hFgsv.js → SingpassSelection-CUN6le2N.js} +1 -1
- package/dist/{SoleProprietorshipPage-uqvhoHy1.js → SoleProprietorshipPage-w74PjetM.js} +3 -3
- package/dist/{SourceOfFundsPage-DXubPDLZ.js → SourceOfFundsPage-D82AunEM.js} +11 -11
- package/dist/{StoreProvider-Daji6PiS.js → StoreProvider-foAfpGgP.js} +3231 -2958
- package/dist/{TaskItemStatus-YVj7sKQs.js → TaskItemStatus-pXy3LscG.js} +1 -1
- package/dist/{TaskStatusIndicator-D7hHw7fn.js → TaskStatusIndicator-ChYCkSv_.js} +1 -1
- package/dist/{TaxReportingDropin-DnV5JkEh.js → TaxReportingDropin-Bx2SVjkH.js} +8 -8
- package/dist/{TileGroup-D-OlOSxh.js → TileGroup-KuM4lUVf.js} +1 -1
- package/dist/{TrustDetailsPage-QB1Cyhd0.js → TrustDetailsPage-DCJd7ESJ.js} +5 -5
- package/dist/{TrustMemberCompanyPage-CpVb9N3q.js → TrustMemberCompanyPage-CItmqYxh.js} +4 -4
- package/dist/{TrustMemberIndividualPage-DJgvfv8P.js → TrustMemberIndividualPage-Bnmp4Lai.js} +3 -3
- package/dist/{UnincorporatedPartnershipIndividualPage-DG1PFhbJ.js → UnincorporatedPartnershipIndividualPage-Bjdy7CTO.js} +3 -3
- package/dist/{UnincorporatedPartnershipMemberCompanyPage-B-DCZCun.js → UnincorporatedPartnershipMemberCompanyPage-xujJ6jiZ.js} +3 -3
- package/dist/{VerificationErrorAlert-BMUrrVA4.js → VerificationErrorAlert-CRlJCx1L.js} +2 -2
- package/dist/{ViewVerificationStatusComponent-t9RAwP27.js → ViewVerificationStatusComponent-GDUtMyEe.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-wPtcG5-S.js → getFieldsWithExistingData-KQyhSMYS.js} +1 -1
- package/dist/{hasDataChanged-zEBfxyhI.js → hasDataChanged-BsKoYg28.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-D3qJDWw3.js → isIdNowModalOpen-CkXiAkOq.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-38jx8AEh.js → localizeDateString-DIL-Y3Ay.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-BCasygg0.js → mapFinancialReportsToFinancialInformation-BioOYPCU.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-CXTBCukC.js → resolveEnvironment-DTPTmG5X.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-Dp9Jubid.js → rules-BVnoQNC5.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-B-0xGDru.js → useMultiForm-yRBSZTpa.js} +6 -3
- package/dist/{useOnboardingStatus-BF9KjZG-.js → useOnboardingStatus-CY0h21El.js} +1 -1
- package/dist/{useTermsOfServiceStatus-Cde4K3gz.js → useTermsOfServiceStatus-C1wPWy4q.js} +1 -1
- package/dist/{useUpdateLegalEntity-CKzDdLS1.js → useUpdateLegalEntity-BhxGESiZ.js} +2 -2
- package/dist/{utils-CJKSzNzi.js → utils-CVH0OeD3.js} +4 -4
- package/dist/{validate-D5YuF24e.js → validate-Cmy9-TQs.js} +1 -1
- package/dist/{validate-RlBXFGTF.js → validate-E9o0Hmpe.js} +1 -1
- package/package.json +3 -3
- package/dist/FormEndState-14p8_tBF.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-foAfpGgP.js";
|
|
13
|
+
import { u as useCreateLegalEntity, a as useUpdateLegalEntity } from "./useUpdateLegalEntity-BhxGESiZ.js";
|
|
14
|
+
import { c as contactDetailsValidationRules, u as useValidatePhoneNumberImperatively } from "./validate-E9o0Hmpe.js";
|
|
15
|
+
import { F as FormContextProvider, a as FormFlow } from "./FormFlow-DNWaou8B.js";
|
|
16
|
+
import { u as useSingpassMyInfoLogin, i as idNowModalChildEntityId, L as LandingLayout, s as showIdNowModal } from "./isIdNowModalOpen-CkXiAkOq.js";
|
|
17
|
+
import { u as useMultiForm } from "./useMultiForm-yRBSZTpa.js";
|
|
18
|
+
import { g as getFieldsWithExistingData } from "./getFieldsWithExistingData-KQyhSMYS.js";
|
|
19
|
+
import { l as localizeDateString } from "./localizeDateString-DIL-Y3Ay.js";
|
|
20
|
+
import { r as rules, D as DECISION_MAKER_TYPES_WITH_JOBTITLE$1 } from "./rules-BVnoQNC5.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-KuM4lUVf.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,7 +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";
|
|
1488
|
-
const
|
|
1688
|
+
const REMEDIATION_ACTION_UPLOAD_ID = "1_301";
|
|
1489
1689
|
const individualOnfidoRules = ({
|
|
1490
1690
|
matchingScenario,
|
|
1491
1691
|
data,
|
|
@@ -1692,9 +1892,7 @@ const individualOnfidoRules = ({
|
|
|
1692
1892
|
);
|
|
1693
1893
|
const isManualFlow = data?.idVerificationMethod?.idVerificationMethod === "manualVerification";
|
|
1694
1894
|
const idNumberExempt = data?.additionalPersonalDetails?.idNumberExempt;
|
|
1695
|
-
const hasIdRemediationAction =
|
|
1696
|
-
(code) => REMEDIATION_CODES_UPLOAD_ID.includes(code)
|
|
1697
|
-
);
|
|
1895
|
+
const hasIdRemediationAction = problems?.remediationActions?.[REMEDIATION_ACTION_UPLOAD_ID];
|
|
1698
1896
|
return isManualFlow && (idNumberExempt || hasMissingId || hasIdRemediationAction) ? "REQUIRED" : void 0;
|
|
1699
1897
|
},
|
|
1700
1898
|
isManualIdFlowAndHasMissingData: () => {
|
|
@@ -1759,7 +1957,7 @@ const TypeOfIdentity = ({
|
|
|
1759
1957
|
id,
|
|
1760
1958
|
name: i18n.get(name)
|
|
1761
1959
|
})),
|
|
1762
|
-
placeholder: i18n.get("
|
|
1960
|
+
placeholder: i18n.get("selectOne"),
|
|
1763
1961
|
selected: selectedIdentityType,
|
|
1764
1962
|
onChange: (event) => setSelectedIdentityType(event.target.value)
|
|
1765
1963
|
}
|
|
@@ -1849,7 +2047,6 @@ function Identity(props) {
|
|
|
1849
2047
|
);
|
|
1850
2048
|
}, [country, data?.typeOfIdentity, initialFormUtilProps, licenseCardNumberMetaData]);
|
|
1851
2049
|
const { t } = useTranslation();
|
|
1852
|
-
const { i18n } = useI18nContext();
|
|
1853
2050
|
const formUtils = useMemo(() => createFormUtils(mergedProps, t), [mergedProps, t]);
|
|
1854
2051
|
const { form } = useFormContext();
|
|
1855
2052
|
const defaultIdNumber = form?.defaultData?.additionalPersonalDetails?.idNumber;
|
|
@@ -1926,7 +2123,7 @@ function Identity(props) {
|
|
|
1926
2123
|
...childProps,
|
|
1927
2124
|
name: "expiryDate",
|
|
1928
2125
|
value: data?.expiryDate,
|
|
1929
|
-
placeholder:
|
|
2126
|
+
placeholder: t(($) => $["datePlaceholder"]),
|
|
1930
2127
|
readonly: formUtils.isReadOnly("expiryDate"),
|
|
1931
2128
|
onInput: handleFieldChange("expiryDate", "input"),
|
|
1932
2129
|
onBlur: handleFieldChange("expiryDate", "blur"),
|
|
@@ -2015,8 +2212,7 @@ const additionalPersonalDetailsFields = [
|
|
|
2015
2212
|
"taxInformation"
|
|
2016
2213
|
];
|
|
2017
2214
|
function AdditionalPersonalDetails(props) {
|
|
2018
|
-
const { t } = useTranslation();
|
|
2019
|
-
const { i18n } = useI18nContext();
|
|
2215
|
+
const { t } = useTranslation(["common", "individual"]);
|
|
2020
2216
|
const allowedCountries = useAllowedCountries();
|
|
2021
2217
|
const [showLegalRepresentativePrompt, setShowLegalRepresentativePrompt] = useState(false);
|
|
2022
2218
|
const { isSettingEnabled } = useSettingsContext();
|
|
@@ -2083,8 +2279,8 @@ function AdditionalPersonalDetails(props) {
|
|
|
2083
2279
|
}
|
|
2084
2280
|
),
|
|
2085
2281
|
/* @__PURE__ */ jsxs("div", { className: "adyen-kyc-additional-information__section-heading", children: [
|
|
2086
|
-
/* @__PURE__ */ jsx(Typography, { el: "h3", variant: "title", children:
|
|
2087
|
-
/* @__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" }) })
|
|
2088
2284
|
] }),
|
|
2089
2285
|
formUtils.isRequiredField("country") && /* @__PURE__ */ jsx(
|
|
2090
2286
|
CountryField,
|
|
@@ -2116,11 +2312,11 @@ function AdditionalPersonalDetails(props) {
|
|
|
2116
2312
|
}
|
|
2117
2313
|
),
|
|
2118
2314
|
/* @__PURE__ */ jsxs("div", { className: "adyen-kyc-additional-information__section-heading", children: [
|
|
2119
|
-
/* @__PURE__ */ jsx(Typography, { el: "h3", variant: "title", children:
|
|
2315
|
+
/* @__PURE__ */ jsx(Typography, { el: "h3", variant: "title", children: t(($) => $["personalIdentityDetails"], { ns: "individual" }) }),
|
|
2120
2316
|
/* @__PURE__ */ jsxs(Typography, { el: "p", variant: "body", children: [
|
|
2121
|
-
|
|
2317
|
+
t(($) => $["weOnlyUseTheseDetailsForIdentityVerification"], { ns: "individual" }),
|
|
2122
2318
|
" ",
|
|
2123
|
-
/* @__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"]) })
|
|
2124
2320
|
] })
|
|
2125
2321
|
] }),
|
|
2126
2322
|
formUtils.isRequiredField("birthDate") && /* @__PURE__ */ jsx(
|
|
@@ -2136,7 +2332,7 @@ function AdditionalPersonalDetails(props) {
|
|
|
2136
2332
|
...childProps,
|
|
2137
2333
|
name: "birthDate",
|
|
2138
2334
|
value: data?.birthDate,
|
|
2139
|
-
placeholder:
|
|
2335
|
+
placeholder: t(($) => $["datePlaceholder"]),
|
|
2140
2336
|
readonly: formUtils.isReadOnly("birthDate"),
|
|
2141
2337
|
onInput: handleFieldChange("birthDate", "input"),
|
|
2142
2338
|
onBlur: handleBirthDateChange,
|
|
@@ -2150,15 +2346,16 @@ function AdditionalPersonalDetails(props) {
|
|
|
2150
2346
|
showLegalRepresentativePrompt && /* @__PURE__ */ jsx(
|
|
2151
2347
|
Confirm,
|
|
2152
2348
|
{
|
|
2153
|
-
title:
|
|
2154
|
-
description:
|
|
2155
|
-
|
|
2349
|
+
title: t(($) => $["legalRepresentativeForMinorIsRequired"], { ns: "individual" }),
|
|
2350
|
+
description: t(($) => $["becauseThisPersonIsUnderXYearsOld"], {
|
|
2351
|
+
ns: "individual",
|
|
2352
|
+
age: getAgeRangeForLegalRepresentative(country)?.max?.toString() ?? ""
|
|
2156
2353
|
}),
|
|
2157
2354
|
onCancel: () => {
|
|
2158
2355
|
setShowLegalRepresentativePrompt(false);
|
|
2159
2356
|
},
|
|
2160
|
-
confirmText:
|
|
2161
|
-
cancelText:
|
|
2357
|
+
confirmText: t(($) => $["ok"]),
|
|
2358
|
+
cancelText: t(($) => $["editDetails"]),
|
|
2162
2359
|
onConfirm: () => {
|
|
2163
2360
|
setShowLegalRepresentativePrompt(false);
|
|
2164
2361
|
}
|
|
@@ -2718,10 +2915,8 @@ const DataConflictsModal = ({
|
|
|
2718
2915
|
] });
|
|
2719
2916
|
};
|
|
2720
2917
|
const verificationHeaderImage = "adyen-kyc-verification-header-image";
|
|
2721
|
-
const verifyOnfidoError = "adyen-kyc-verify-onfido-error";
|
|
2722
2918
|
const styles$1 = {
|
|
2723
|
-
verificationHeaderImage
|
|
2724
|
-
verifyOnfidoError
|
|
2919
|
+
verificationHeaderImage
|
|
2725
2920
|
};
|
|
2726
2921
|
const toIndividualOnfidoConflictSchema = ({
|
|
2727
2922
|
basicDetails,
|
|
@@ -2875,14 +3070,14 @@ const uploadedDocument = "adyen-kyc-uploaded-document";
|
|
|
2875
3070
|
const styles = {
|
|
2876
3071
|
uploadedDocument
|
|
2877
3072
|
};
|
|
2878
|
-
const UploadedDocument = ({ document, onDelete, onUpdate }) => {
|
|
3073
|
+
const UploadedDocument = ({ document: document2, onDelete, onUpdate }) => {
|
|
2879
3074
|
const { i18n } = useI18nContext();
|
|
2880
3075
|
return /* @__PURE__ */ jsxs("article", { className: styles.uploadedDocument, children: [
|
|
2881
3076
|
/* @__PURE__ */ jsxs("div", { children: [
|
|
2882
|
-
/* @__PURE__ */ jsx(Typography, { el: "h4", variant: "title", children: i18n.get(
|
|
3077
|
+
/* @__PURE__ */ jsx(Typography, { el: "h4", variant: "title", children: i18n.get(document2.idDocumentType) }),
|
|
2883
3078
|
/* @__PURE__ */ jsx(Typography, { el: "p", variant: "body", children: i18n.get("uploadedOn", {
|
|
2884
3079
|
values: {
|
|
2885
|
-
date: localizeDateString(
|
|
3080
|
+
date: localizeDateString(document2.modificationDate, i18n.locale, {
|
|
2886
3081
|
month: "short"
|
|
2887
3082
|
}) ?? ""
|
|
2888
3083
|
}
|
|
@@ -2901,6 +3096,24 @@ const UploadedDocument = ({ document, onDelete, onUpdate }) => {
|
|
|
2901
3096
|
/* @__PURE__ */ jsx(Button, { onClick: onUpdate, variant: "secondary", children: i18n.get("update") })
|
|
2902
3097
|
] });
|
|
2903
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
|
+
};
|
|
2904
3117
|
const logger$2 = createLogger();
|
|
2905
3118
|
const idVerificationMethodFields = [
|
|
2906
3119
|
"idVerificationMethod",
|
|
@@ -2915,14 +3128,13 @@ function IdVerificationMethod(props) {
|
|
|
2915
3128
|
fieldValidationErrors,
|
|
2916
3129
|
hasLiveSelfieErrorCode
|
|
2917
3130
|
} = props;
|
|
2918
|
-
const { t } = useTranslation();
|
|
2919
|
-
const { i18n } = useI18nContext();
|
|
3131
|
+
const { t, i18n } = useTranslation(["individual", "common"]);
|
|
2920
3132
|
const userEvents = useAnalyticsContext();
|
|
2921
3133
|
const extractDocumentInformation2 = useExtractDocumentInformation();
|
|
2922
3134
|
const {
|
|
2923
3135
|
form: { data, handleChangeFor, setFormData }
|
|
2924
3136
|
} = useFormContext();
|
|
2925
|
-
const datasetUtils = datasetUtilities(i18n.
|
|
3137
|
+
const datasetUtils = datasetUtilities(i18n.language);
|
|
2926
3138
|
const existingDocument = data.idVerificationMethod?.idDocument;
|
|
2927
3139
|
const hasExistingDocument = !isEmpty$1(existingDocument);
|
|
2928
3140
|
const handleFieldChange = useCallback(
|
|
@@ -2971,24 +3183,6 @@ function IdVerificationMethod(props) {
|
|
|
2971
3183
|
setOcrExtractedData(void 0);
|
|
2972
3184
|
handlers.handleContinueToAdditionalDetails();
|
|
2973
3185
|
};
|
|
2974
|
-
const validateExtractionResult = (extractionResult) => {
|
|
2975
|
-
const { isExpired, isValidDocumentType, dateOfBirth, issuingCountry } = extractionResult;
|
|
2976
|
-
if (isExpired) {
|
|
2977
|
-
return { key: "theDocumentYouUploadedIsExpired" };
|
|
2978
|
-
}
|
|
2979
|
-
if (isValidDocumentType === false) {
|
|
2980
|
-
return { key: "theDocumentTypeYouUploadedIsNotSupported" };
|
|
2981
|
-
}
|
|
2982
|
-
if (isPersonUnderAge(dateOfBirth, issuingCountry)) {
|
|
2983
|
-
return {
|
|
2984
|
-
key: "weDontAcceptDocumentsOrInformationAboutAnyoneYoungerThan_",
|
|
2985
|
-
options: {
|
|
2986
|
-
values: { minimumOnboardingAge: extractionResult.minimumOnboardingAge?.toString() ?? "" }
|
|
2987
|
-
}
|
|
2988
|
-
};
|
|
2989
|
-
}
|
|
2990
|
-
return null;
|
|
2991
|
-
};
|
|
2992
3186
|
const { hasConflicts, conflictingProperties, resolvedData } = useDataConflicts(
|
|
2993
3187
|
comparableExistingData,
|
|
2994
3188
|
comparableExtractedData,
|
|
@@ -3122,7 +3316,7 @@ function IdVerificationMethod(props) {
|
|
|
3122
3316
|
handlers.handleUpdateDocument();
|
|
3123
3317
|
};
|
|
3124
3318
|
const modalProvidedData = resolvedData || comparableExistingData;
|
|
3125
|
-
const formUtils = createFormUtils(props, t);
|
|
3319
|
+
const formUtils = createFormUtils(props, i18n.t);
|
|
3126
3320
|
isNextStepDisabled.value = showLoadingSpinner;
|
|
3127
3321
|
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
3128
3322
|
/* @__PURE__ */ jsx(
|
|
@@ -3143,21 +3337,20 @@ function IdVerificationMethod(props) {
|
|
|
3143
3337
|
type: "image",
|
|
3144
3338
|
className: styles$1.verificationHeaderImage,
|
|
3145
3339
|
name: "passport-front-green",
|
|
3146
|
-
title:
|
|
3340
|
+
title: t(($) => $["instantIDVerificationDescription"], { ns: "common" })
|
|
3147
3341
|
}
|
|
3148
3342
|
),
|
|
3149
|
-
title:
|
|
3150
|
-
description: showIndividualMotionCapture?.value ?
|
|
3151
|
-
|
|
3343
|
+
title: t(($) => $["identityVerification"], { ns: "common" }),
|
|
3344
|
+
description: showIndividualMotionCapture?.value ? t(($) => $["toHelpProtectAgainstFraudAndKeepOurServices"]) : /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
3345
|
+
t(($) => $["takeOrUploadAPhoto"], { ns: "common" }),
|
|
3152
3346
|
" ",
|
|
3153
|
-
/* @__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" }) })
|
|
3154
3348
|
] }),
|
|
3155
|
-
|
|
3349
|
+
error: error ? /* @__PURE__ */ jsx(
|
|
3156
3350
|
Alert,
|
|
3157
3351
|
{
|
|
3158
3352
|
variant: "error",
|
|
3159
|
-
title:
|
|
3160
|
-
className: styles$1.verifyOnfidoError
|
|
3353
|
+
title: t(($) => $[error.key], { ...error.options?.values, ns: "common" })
|
|
3161
3354
|
}
|
|
3162
3355
|
) : void 0,
|
|
3163
3356
|
actions: /* @__PURE__ */ jsx(Fragment, { children: showLoadingSpinner ? /* @__PURE__ */ jsx(Loader, { size: "large" }) : !hasExistingDocument && /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
@@ -3168,7 +3361,7 @@ function IdVerificationMethod(props) {
|
|
|
3168
3361
|
onClick: launchOnfido,
|
|
3169
3362
|
disabled: status === "extractionLoading",
|
|
3170
3363
|
loading: status === "extractionLoading",
|
|
3171
|
-
children:
|
|
3364
|
+
children: t(($) => $["startVerification"], { ns: "common" })
|
|
3172
3365
|
}
|
|
3173
3366
|
),
|
|
3174
3367
|
!showIndividualMotionCapture?.value && /* @__PURE__ */ jsx(
|
|
@@ -3177,7 +3370,7 @@ function IdVerificationMethod(props) {
|
|
|
3177
3370
|
onClick: () => setStatus("confirmManualFlowModal"),
|
|
3178
3371
|
variant: "secondary",
|
|
3179
3372
|
fullWidth: true,
|
|
3180
|
-
children:
|
|
3373
|
+
children: t(($) => $["addDetailsManually"], { ns: "common" })
|
|
3181
3374
|
}
|
|
3182
3375
|
)
|
|
3183
3376
|
] }) }),
|
|
@@ -3189,18 +3382,21 @@ function IdVerificationMethod(props) {
|
|
|
3189
3382
|
onUpdate: handleUpdateExistingDocument
|
|
3190
3383
|
}
|
|
3191
3384
|
),
|
|
3192
|
-
disclaimer:
|
|
3193
|
-
|
|
3194
|
-
|
|
3195
|
-
|
|
3196
|
-
|
|
3197
|
-
|
|
3198
|
-
|
|
3199
|
-
|
|
3200
|
-
|
|
3201
|
-
|
|
3202
|
-
|
|
3203
|
-
|
|
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
|
+
)
|
|
3204
3400
|
}
|
|
3205
3401
|
),
|
|
3206
3402
|
status === "onfidoModal" && /* @__PURE__ */ jsx(
|
|
@@ -3216,19 +3412,19 @@ function IdVerificationMethod(props) {
|
|
|
3216
3412
|
status === "confirmManualFlowModal" && /* @__PURE__ */ jsx(
|
|
3217
3413
|
Confirm,
|
|
3218
3414
|
{
|
|
3219
|
-
title:
|
|
3220
|
-
description:
|
|
3415
|
+
title: t(($) => $["addDetailsManuallyQuestion"]),
|
|
3416
|
+
description: t(($) => $["itCanTakeUpTo"]),
|
|
3221
3417
|
onCancel: handleCancelAddDetailsManually,
|
|
3222
|
-
confirmText:
|
|
3418
|
+
confirmText: t(($) => $["yesAddManually"]),
|
|
3223
3419
|
onConfirm: handleContinueViaManualEntryFlow
|
|
3224
3420
|
}
|
|
3225
3421
|
),
|
|
3226
3422
|
status === "confirmDeleteDocumentModal" && /* @__PURE__ */ jsx(
|
|
3227
3423
|
Confirm,
|
|
3228
3424
|
{
|
|
3229
|
-
title:
|
|
3230
|
-
description:
|
|
3231
|
-
confirmText:
|
|
3425
|
+
title: t(($) => $["deleteIdDocument"]),
|
|
3426
|
+
description: t(($) => $["youMayBeAskedToReUpload"]),
|
|
3427
|
+
confirmText: t(($) => $["deleteDocument"], { ns: "common" }),
|
|
3232
3428
|
onCancel: handleCancelDeleteDocument,
|
|
3233
3429
|
onConfirm: handleDeleteDocument,
|
|
3234
3430
|
critical: true
|
|
@@ -3288,8 +3484,7 @@ const SignatoryQuestionnaireModalContent = () => {
|
|
|
3288
3484
|
] });
|
|
3289
3485
|
};
|
|
3290
3486
|
function SignatoryQuestionnaire(props) {
|
|
3291
|
-
const { t } = useTranslation();
|
|
3292
|
-
const { i18n } = useI18nContext();
|
|
3487
|
+
const { t } = useTranslation(["common", "individual"]);
|
|
3293
3488
|
const userEvents = useAnalyticsContext();
|
|
3294
3489
|
const [isModalOpen, setIsModalOpen] = useState(false);
|
|
3295
3490
|
const {
|
|
@@ -3337,12 +3532,12 @@ function SignatoryQuestionnaire(props) {
|
|
|
3337
3532
|
value: data?.isSignatory,
|
|
3338
3533
|
onChange: handleFieldChange("isSignatory"),
|
|
3339
3534
|
onDescriptionLinkClick: openModal,
|
|
3340
|
-
question:
|
|
3341
|
-
descriptionLinkText:
|
|
3535
|
+
question: t(($) => $["doesThisPersonHaveTheAuthority"], { ns: "individual" }),
|
|
3536
|
+
descriptionLinkText: t(($) => $["whatDoesThisMean"]),
|
|
3342
3537
|
errorMessage: getDisplayErrorMessage(errorMessage, t)
|
|
3343
3538
|
}
|
|
3344
3539
|
),
|
|
3345
|
-
isModalOpen && /* @__PURE__ */ jsx(Modal, { onClose: closeModal, ariaLabel:
|
|
3540
|
+
isModalOpen && /* @__PURE__ */ jsx(Modal, { onClose: closeModal, ariaLabel: t(($) => $["moreAboutAuthorizedSignatories"]), inset: true, children: /* @__PURE__ */ jsx(SignatoryQuestionnaireModalContent, {}) })
|
|
3346
3541
|
] });
|
|
3347
3542
|
}
|
|
3348
3543
|
const UboQuestionnaireModalContent = ({ modalType }) => {
|
|
@@ -3417,8 +3612,7 @@ const uboQuestionnaireFields = [
|
|
|
3417
3612
|
"isNomineeShareholder"
|
|
3418
3613
|
];
|
|
3419
3614
|
function UboQuestionnaire(props) {
|
|
3420
|
-
const { t } = useTranslation();
|
|
3421
|
-
const { i18n } = useI18nContext();
|
|
3615
|
+
const { t } = useTranslation(["common", "individual"]);
|
|
3422
3616
|
const userEvents = useAnalyticsContext();
|
|
3423
3617
|
const {
|
|
3424
3618
|
data,
|
|
@@ -3451,9 +3645,9 @@ function UboQuestionnaire(props) {
|
|
|
3451
3645
|
setActiveModal(null);
|
|
3452
3646
|
};
|
|
3453
3647
|
const modalAriaLabelMap = {
|
|
3454
|
-
isOwner:
|
|
3455
|
-
isControllingPerson:
|
|
3456
|
-
isDirector:
|
|
3648
|
+
isOwner: t(($) => $["moreAboutOwners"]),
|
|
3649
|
+
isControllingPerson: t(($) => $["moreAboutOwnershipThroughControl"]),
|
|
3650
|
+
isDirector: t(($) => $["moreAboutDirectors"])
|
|
3457
3651
|
};
|
|
3458
3652
|
const isDirectorErrorMessage = formUtils.getErrorMessage(
|
|
3459
3653
|
"isDirector",
|
|
@@ -3494,8 +3688,8 @@ function UboQuestionnaire(props) {
|
|
|
3494
3688
|
value: data?.isDirector,
|
|
3495
3689
|
onChange: handleFieldChange("isDirector"),
|
|
3496
3690
|
onDescriptionLinkClick: openModal("isDirector"),
|
|
3497
|
-
question:
|
|
3498
|
-
descriptionLinkText:
|
|
3691
|
+
question: t(($) => $["isThisPersonListedAsADirector"], { ns: "individual" }),
|
|
3692
|
+
descriptionLinkText: t(($) => $["whatDoesThisMean"]),
|
|
3499
3693
|
errorMessage: getDisplayErrorMessage(isDirectorErrorMessage, t)
|
|
3500
3694
|
}
|
|
3501
3695
|
),
|
|
@@ -3505,7 +3699,7 @@ function UboQuestionnaire(props) {
|
|
|
3505
3699
|
name: "isNomineeDirector",
|
|
3506
3700
|
value: data?.isNomineeDirector,
|
|
3507
3701
|
onChange: handleFieldChange("isNomineeDirector"),
|
|
3508
|
-
question:
|
|
3702
|
+
question: t(($) => $["isThisPersonANomineeDirectorAppointed"], { ns: "individual" }),
|
|
3509
3703
|
errorMessage: getDisplayErrorMessage(isNomineeDirectorErrorMessage, t)
|
|
3510
3704
|
}
|
|
3511
3705
|
),
|
|
@@ -3516,8 +3710,8 @@ function UboQuestionnaire(props) {
|
|
|
3516
3710
|
value: data?.isOwner,
|
|
3517
3711
|
onChange: handleFieldChange("isOwner"),
|
|
3518
3712
|
onDescriptionLinkClick: openModal("isOwner"),
|
|
3519
|
-
question:
|
|
3520
|
-
descriptionLinkText:
|
|
3713
|
+
question: t(($) => $["doesThisPersonOwn25PercentOrMoreOfBusiness"], { ns: "individual" }),
|
|
3714
|
+
descriptionLinkText: t(($) => $["whatDoesThisMean"]),
|
|
3521
3715
|
errorMessage: getDisplayErrorMessage(isOwnerErrorMessage, t)
|
|
3522
3716
|
}
|
|
3523
3717
|
),
|
|
@@ -3527,7 +3721,9 @@ function UboQuestionnaire(props) {
|
|
|
3527
3721
|
name: "isNomineeShareholder",
|
|
3528
3722
|
value: data?.isNomineeShareholder,
|
|
3529
3723
|
onChange: handleFieldChange("isNomineeShareholder"),
|
|
3530
|
-
question:
|
|
3724
|
+
question: t(($) => $["isThisPersonANomineeShareholderAppointedToHold"], {
|
|
3725
|
+
ns: "individual"
|
|
3726
|
+
}),
|
|
3531
3727
|
errorMessage: getDisplayErrorMessage(isNomineeShareholderErrorMessage, t)
|
|
3532
3728
|
}
|
|
3533
3729
|
),
|
|
@@ -3538,8 +3734,10 @@ function UboQuestionnaire(props) {
|
|
|
3538
3734
|
value: data?.isControllingPerson,
|
|
3539
3735
|
onChange: handleFieldChange("isControllingPerson"),
|
|
3540
3736
|
onDescriptionLinkClick: openModal("isControllingPerson"),
|
|
3541
|
-
question:
|
|
3542
|
-
|
|
3737
|
+
question: t(($) => $["doesThisPersonHaveSignificantResponsibility"], {
|
|
3738
|
+
ns: "individual"
|
|
3739
|
+
}),
|
|
3740
|
+
descriptionLinkText: t(($) => $["whatDoesThisMean"]),
|
|
3543
3741
|
errorMessage: getDisplayErrorMessage(isControllingPersonErrorMessage, t)
|
|
3544
3742
|
}
|
|
3545
3743
|
),
|
|
@@ -3629,7 +3827,8 @@ function IndividualOnfido(props) {
|
|
|
3629
3827
|
problems,
|
|
3630
3828
|
onNext,
|
|
3631
3829
|
setNextHandler,
|
|
3632
|
-
handleHomeClick
|
|
3830
|
+
handleHomeClick,
|
|
3831
|
+
scenarios
|
|
3633
3832
|
} = props;
|
|
3634
3833
|
const basicDetailsFormProps = getFormProps(props, basicDetailsFormID);
|
|
3635
3834
|
const signatoryQuestionnaireFormProps = getFormProps(props, signatoryQuestionnaireFormID);
|
|
@@ -3714,10 +3913,10 @@ function IndividualOnfido(props) {
|
|
|
3714
3913
|
capabilities,
|
|
3715
3914
|
userRoles: data?.basicDetails?.role,
|
|
3716
3915
|
taskType,
|
|
3717
|
-
hasMotionScenario: hasMotionCaptureScenarioValue
|
|
3916
|
+
hasMotionScenario: data?.basicDetails?.role?.includes(DecisionMakerTypes.SIGNATORY) && scenarios?.includes(Scenarios.L_BAFIN) ? false : hasMotionCaptureScenarioValue
|
|
3718
3917
|
})
|
|
3719
3918
|
);
|
|
3720
|
-
}, [data?.basicDetails?.role, taskType, capabilities, hasMotionCaptureScenarioValue]);
|
|
3919
|
+
}, [data?.basicDetails?.role, scenarios, taskType, capabilities, hasMotionCaptureScenarioValue]);
|
|
3721
3920
|
const fullName = `${data?.basicDetails?.firstName} ${data?.basicDetails?.lastName}`;
|
|
3722
3921
|
const handleFieldChange = (formName) => (fieldName, mode) => handleChangeFor(fieldName, formName, mode);
|
|
3723
3922
|
const hasLiveSelfieErrorCode = problems?.missingData?.some(
|
|
@@ -3932,7 +4131,10 @@ const mapIndividualOnfidoSchemaToLegalEntity = (individualOnfido, isExperimentEn
|
|
|
3932
4131
|
legalEntity.individual.identificationData
|
|
3933
4132
|
);
|
|
3934
4133
|
}
|
|
3935
|
-
const localization =
|
|
4134
|
+
const localization = [
|
|
4135
|
+
mapSchemaFieldsToApiScriptLocalization(individualOnfido.basicDetails ?? {}, "jaHani"),
|
|
4136
|
+
mapSchemaFieldsToApiScriptLocalization(individualOnfido.basicDetails ?? {}, "jaKana")
|
|
4137
|
+
].filter(({ fields }) => !isEmpty$1(fields));
|
|
3936
4138
|
if (localization.length) {
|
|
3937
4139
|
legalEntity.individual.name.localization = localization;
|
|
3938
4140
|
}
|
|
@@ -4000,33 +4202,12 @@ const mapLegalEntityToIndividualOnfidoSchema = (legalEntity, isChangingType, isR
|
|
|
4000
4202
|
individualOnfido.additionalPersonalDetails.typeOfIdentity = apiIdentityTypeToIdentityTypeMap[legalEntity.individual.identificationData.type];
|
|
4001
4203
|
}
|
|
4002
4204
|
if (legalEntity.individual?.name?.localization) {
|
|
4003
|
-
const
|
|
4004
|
-
{
|
|
4005
|
-
|
|
4006
|
-
|
|
4007
|
-
|
|
4008
|
-
|
|
4009
|
-
})
|
|
4010
|
-
},
|
|
4011
|
-
{
|
|
4012
|
-
script: "ja-Kana",
|
|
4013
|
-
mappingFunction: (l) => ({
|
|
4014
|
-
jaKanaFirstName: l.fields?.firstName,
|
|
4015
|
-
jaKanaLastName: l.fields?.lastName
|
|
4016
|
-
})
|
|
4017
|
-
}
|
|
4018
|
-
];
|
|
4019
|
-
configs.forEach((config) => {
|
|
4020
|
-
const localizationToMap = legalEntity.individual?.name.localization?.find(
|
|
4021
|
-
(l) => l.script === config.script
|
|
4022
|
-
);
|
|
4023
|
-
if (localizationToMap) {
|
|
4024
|
-
individualOnfido.basicDetails = {
|
|
4025
|
-
...individualOnfido.basicDetails,
|
|
4026
|
-
...config.mappingFunction(localizationToMap)
|
|
4027
|
-
};
|
|
4028
|
-
}
|
|
4029
|
-
});
|
|
4205
|
+
for (const scriptLoc of legalEntity.individual.name.localization) {
|
|
4206
|
+
individualOnfido.basicDetails = {
|
|
4207
|
+
...individualOnfido.basicDetails,
|
|
4208
|
+
...mapApiScriptLocalizationToSchemaFields(scriptLoc)
|
|
4209
|
+
};
|
|
4210
|
+
}
|
|
4030
4211
|
}
|
|
4031
4212
|
if (!parentLegalEntity?.entityAssociations) {
|
|
4032
4213
|
return individualOnfido;
|
|
@@ -4064,7 +4245,7 @@ const mapLegalEntityToIndividualOnfidoSchema = (legalEntity, isChangingType, isR
|
|
|
4064
4245
|
return individualOnfido;
|
|
4065
4246
|
};
|
|
4066
4247
|
const mapDocumentDetailToIdDocument = (documents) => {
|
|
4067
|
-
const activeDocument = documents.find((
|
|
4248
|
+
const activeDocument = documents.find((document2) => document2.active);
|
|
4068
4249
|
return activeDocument ? {
|
|
4069
4250
|
idDocumentType: activeDocument.type,
|
|
4070
4251
|
modificationDate: activeDocument.modificationDate
|
|
@@ -4418,7 +4599,10 @@ function IndividualOnfidoDropin({
|
|
|
4418
4599
|
defaultData,
|
|
4419
4600
|
rules: individualFieldValidations,
|
|
4420
4601
|
asyncRules: individualFieldAsyncValidations,
|
|
4421
|
-
optionalFields: derivedProps?.optionalFields
|
|
4602
|
+
optionalFields: derivedProps?.optionalFields,
|
|
4603
|
+
obscuredFields: {
|
|
4604
|
+
additionalPersonalDetails: ["idNumber"]
|
|
4605
|
+
}
|
|
4422
4606
|
});
|
|
4423
4607
|
const documentUtils = documentApiUtils({
|
|
4424
4608
|
baseUrl: baseUrl.value,
|
|
@@ -4656,18 +4840,18 @@ function IndividualOnfidoDropin({
|
|
|
4656
4840
|
legalEntityResponse,
|
|
4657
4841
|
accountHolder || void 0
|
|
4658
4842
|
);
|
|
4659
|
-
const
|
|
4843
|
+
const submittedLegalEntity = await submitLegalEntity({
|
|
4660
4844
|
dataSubmitted,
|
|
4661
4845
|
legalEntity,
|
|
4662
4846
|
idDocumentType
|
|
4663
4847
|
});
|
|
4664
4848
|
setAccountHolder(accountHolder);
|
|
4665
4849
|
if (dataSubmitted.idVerificationMethod && dataSubmitted.idVerificationMethod?.idVerificationMethod !== "existingDocument" || hasVerificationErrors) {
|
|
4666
|
-
await submitDocuments({ legalEntity:
|
|
4850
|
+
await submitDocuments({ legalEntity: submittedLegalEntity, dataSubmitted });
|
|
4667
4851
|
}
|
|
4668
4852
|
if (parentLegalEntity) {
|
|
4669
4853
|
await attachAssociationToParentLegalEntity({
|
|
4670
|
-
legalEntity:
|
|
4854
|
+
legalEntity: submittedLegalEntity,
|
|
4671
4855
|
parentLE: parentLegalEntity,
|
|
4672
4856
|
dataSubmitted
|
|
4673
4857
|
});
|
|
@@ -4676,9 +4860,10 @@ function IndividualOnfidoDropin({
|
|
|
4676
4860
|
refetchType: "all"
|
|
4677
4861
|
});
|
|
4678
4862
|
}
|
|
4863
|
+
idNowModalChildEntityId.value = submittedLegalEntity;
|
|
4679
4864
|
setLoadingStatus("success");
|
|
4680
4865
|
clearToasts();
|
|
4681
|
-
externalOnSubmit?.(dataSubmitted);
|
|
4866
|
+
externalOnSubmit?.(dataSubmitted, matchingScenario);
|
|
4682
4867
|
} catch (e) {
|
|
4683
4868
|
const eventsAdditionalData = {};
|
|
4684
4869
|
logger.error("Failed to update individual", e);
|
|
@@ -4712,7 +4897,7 @@ function IndividualOnfidoDropin({
|
|
|
4712
4897
|
const formatIdDocument = (idDocument2) => {
|
|
4713
4898
|
if (!idDocument2) return void 0;
|
|
4714
4899
|
const documentType = idDocument2?.instantIdVerificationData ? onfidoDocumentTypeMapping.find(
|
|
4715
|
-
(
|
|
4900
|
+
(document2) => idDocument2.instantIdVerificationData?.document_front.type === document2.id
|
|
4716
4901
|
) : idDocumentTypeOptions.find(({ id }) => idDocument2.idDocumentType === id);
|
|
4717
4902
|
if (!documentType) return void 0;
|
|
4718
4903
|
const frontPage = idDocument2.idFrontPage?.[0];
|
|
@@ -4861,56 +5046,60 @@ function IndividualOnfidoDropin({
|
|
|
4861
5046
|
},
|
|
4862
5047
|
[associatedLeTrackingParams]
|
|
4863
5048
|
);
|
|
4864
|
-
return /* @__PURE__ */
|
|
4865
|
-
|
|
4866
|
-
{
|
|
4867
|
-
|
|
4868
|
-
|
|
4869
|
-
|
|
4870
|
-
|
|
4871
|
-
|
|
4872
|
-
|
|
4873
|
-
|
|
4874
|
-
|
|
4875
|
-
labels: customLabelsForSummary
|
|
4876
|
-
},
|
|
4877
|
-
asModal,
|
|
4878
|
-
currentStep: steps.current,
|
|
4879
|
-
disableNextButton: disableNextButton.value,
|
|
4880
|
-
forms,
|
|
4881
|
-
gotoFormByFormIndex,
|
|
4882
|
-
handleBackClick,
|
|
4883
|
-
handleCancelClick: handleHomeClick,
|
|
4884
|
-
handleNextClick: nextHandler || handleNextClick,
|
|
4885
|
-
loadingStatus,
|
|
4886
|
-
totalSteps: steps.total,
|
|
4887
|
-
children: /* @__PURE__ */ jsx(
|
|
4888
|
-
IndividualOnfido,
|
|
4889
|
-
{
|
|
4890
|
-
...derivedProps,
|
|
4891
|
-
requiredFields,
|
|
4892
|
-
data,
|
|
4893
|
-
defaultCountry: country,
|
|
4894
|
-
activeForm,
|
|
4895
|
-
forms,
|
|
4896
|
-
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
|
+
},
|
|
4897
5060
|
problems,
|
|
4898
|
-
|
|
4899
|
-
|
|
4900
|
-
|
|
4901
|
-
|
|
4902
|
-
|
|
4903
|
-
|
|
4904
|
-
|
|
4905
|
-
|
|
4906
|
-
|
|
4907
|
-
|
|
4908
|
-
|
|
4909
|
-
|
|
4910
|
-
|
|
4911
|
-
|
|
4912
|
-
|
|
4913
|
-
|
|
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
|
+
] });
|
|
4914
5103
|
}
|
|
4915
5104
|
export {
|
|
4916
5105
|
IndividualOnfidoDropin as I,
|