@adyen/kyc-components 3.86.0 → 3.87.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-CfKATf4g.js → AcceptTermsOfServiceComponent-DbuTZ2lm.js} +16 -15
- package/dist/{Accordion-Dnp7WhUx.js → Accordion-BCelMUrf.js} +2 -2
- package/dist/{AccountSetupRejected-BSJJfRWV.js → AccountSetupRejected-Bs86BOhb.js} +5 -5
- package/dist/ActionBar-CVuUP-mY.js +31 -0
- package/dist/{Address-Bl_bd5Lp.js → Address-CaKnB-Qo.js} +20 -65
- package/dist/{Alert-B9R4X_XM.js → Alert-CzqTssej.js} +3 -3
- package/dist/{Avatar-DZ9JX3Cp.js → Avatar-cNQKhH0z.js} +2 -2
- package/dist/{BusinessDetailsMultiformDropin-BjGT2ZQS.js → BusinessDetailsMultiformDropin-gT_3bL0O.js} +168 -78
- package/dist/BusinessFinancingComponent-Cqz7nO9n.js +54 -0
- package/dist/{BusinessFinancingDropin-DGpBmbBn.js → BusinessFinancingDropin-hsJXX1Va.js} +23 -20
- package/dist/BusinessFinancingPage-CieDJbKg.js +46 -0
- package/dist/{BusinessTypeSelectionPage-BCe-2fB6.js → BusinessTypeSelectionPage-C19-xs5o.js} +9 -9
- package/dist/{Card-TkGAmjC5.js → Card-Cka2XXoj.js} +3 -3
- package/dist/{ConstitutionalDocument-CalFzHjn.js → ConstitutionalDocument-CHj8X6eV.js} +3 -3
- package/dist/{CountryField-mxgVAmFp.js → CountryField-B79la7c-.js} +57 -297
- package/dist/CreateIndividualComponent-CyfCWgeB.js +71 -0
- package/dist/CreateTransferInstrumentComponent-D_jnlFw3.js +66 -0
- package/dist/{Currency-DSYdE9Qs.js → Currency-DRUn9oxx.js} +5 -5
- package/dist/{CustomerSupport-DRLtpWUp.js → CustomerSupport-abRYvXsD.js} +10 -10
- package/dist/{DebugModal-BI1D0dD9.js → DebugModal-CAuPuyh6.js} +9 -10
- package/dist/{DecisionMakerDetailsPage-D3CS4w0h.js → DecisionMakerDetailsPage-Dc6W9XHr.js} +17 -17
- package/dist/{DecisionMakers-q__qndMm.js → DecisionMakers-CqAa7vi_.js} +52 -51
- package/dist/DropinLayout-CBP_cHLC.js +17 -0
- package/dist/{EmbeddedStatus-5OzDMQUR.js → EmbeddedStatus-CPowYGBw.js} +3 -3
- package/dist/{EndStateLayout-BmWri3S5.js → EndStateLayout-Cj472JTf.js} +2 -2
- package/dist/EntityAssociation-BSjw-KJ2.js +159 -0
- package/dist/EntityGuidanceStatus-CM6gQcz1.js +105 -0
- package/dist/{FormFlow-8pfRbKmA.js → FormFlow-m1k7xInJ.js} +16 -8
- package/dist/{FormNavigation-C2KywHXa.js → FormNavigation-9G1WKPrp.js} +5 -23
- package/dist/{FormWrapper-CZhSGUa3.js → FormWrapper-DzAkc4KF.js} +10 -10
- package/dist/{IndividualOnfido-n3WaW67J.js → IndividualOnfido-hThSjqMs.js} +128 -228
- package/dist/{IndividualOnfidoDropin-DZrlWtK6.js → IndividualOnfidoDropin--MwUJcV4.js} +50 -55
- package/dist/{InputText-BIySwrmu.js → InputText-DJn5nzG0.js} +95 -5
- package/dist/{Introduction-Bt9gH0G5.js → Introduction-CCY9D_nE.js} +4 -4
- package/dist/{JpAddress-bHP50zUD.js → JpAddress-yRO24Dme.js} +8 -8
- package/dist/{LegalRepresentativeDetailsPage-D4aN-DTv.js → LegalRepresentativeDetailsPage-V5u54a-v.js} +5 -5
- package/dist/{ListItem-CILPfTHI.js → ListItem-q98tz21u.js} +3 -3
- package/dist/{ManageIndividualComponent-CbiGSFJ_.js → ManageIndividualComponent-CTpMCTKm.js} +5 -5
- package/dist/{ManageTermsOfServiceComponent-rvk5MSmL.js → ManageTermsOfServiceComponent-2aq2OxaP.js} +5 -5
- package/dist/{ManageTransferInstrumentComponent-D2GUV6zp.js → ManageTransferInstrumentComponent-ChwwZS2D.js} +14 -14
- package/dist/{MaybeModal-CZ-qmMqV.js → MaybeModal-BI4OTKmk.js} +3 -3
- package/dist/{Modal-GSjDUwX-.js → Modal-C89D3p56.js} +3 -3
- package/dist/{OnboardingDropinComponent-BGpgGBrU.js → OnboardingDropinComponent-CVwgW17T.js} +444 -2353
- package/dist/{PayoutDetailsDropin-kdkNvTHM.js → PayoutDetailsDropin-BzqbUVzH.js} +666 -159
- package/dist/{Review-CN-S9UCT.js → Review-BjDT0xaU.js} +8 -8
- package/dist/{RootBusinessDetailsPage-CyQjjBhL.js → RootBusinessDetailsPage-nEpccfkc.js} +6 -6
- package/dist/{RootBusinessLinesPage-BhiDzu7x.js → RootBusinessLinesPage-CzUBQFT1.js} +120 -118
- package/dist/RootIndividualDetailsPage-DV1z-BQY.js +71 -0
- package/dist/{SignPCIComponent-o50WXRbZ.js → SignPCIComponent-C5e1Z52Y.js} +12 -12
- package/dist/{SingpassSelection-L1vBg267.js → SingpassSelection-D35jRIBN.js} +4 -4
- package/dist/{SoleProprietorshipPage-Cz21B5bv.js → SoleProprietorshipPage-nrrTlQSU.js} +5 -5
- package/dist/{SourceOfFundsPage-OPzX7pfM.js → SourceOfFundsPage-YkBw6Xpi.js} +26 -24
- package/dist/{StepProgressIndicator-C26xG3ak.js → StepProgressIndicator-Bc_wca9O.js} +2 -2
- package/dist/{StoreProvider-Cvqvt7fn.js → StoreProvider-_QQynxk0.js} +248 -241
- package/dist/Summary-jCIFPrTE.js +204 -0
- package/dist/{TaxReportingDropin-9nQHRCS4.js → TaxReportingDropin-BTeXoX9D.js} +16 -15
- package/dist/{TrustDetailsPage-Bx_Pm5Sl.js → TrustDetailsPage-_UPW7Y6f.js} +25 -23
- package/dist/{TrustMemberCompanyPage-BoxMy_a_.js → TrustMemberCompanyPage-BzlxQ7Kd.js} +6 -6
- package/dist/{TrustMemberIndividualPage-D6n7VhnN.js → TrustMemberIndividualPage-COgsefCp.js} +5 -5
- package/dist/TrustMemberRoleAndTypePage-CKL-7ZaB.js +985 -0
- package/dist/TrustMembersOverview-CVYKxSoD.js +438 -0
- package/dist/{UnincorporatedPartnershipIndividualPage-ZQG0A9HG.js → UnincorporatedPartnershipIndividualPage-DuLh_-Q4.js} +5 -5
- package/dist/{UnincorporatedPartnershipMemberCompanyPage-D9n1kJdM.js → UnincorporatedPartnershipMemberCompanyPage-D7A-CuwC.js} +6 -6
- package/dist/UnincorporatedPartnershipMemberRoleAndTypePage-BqYHGCCj.js +284 -0
- package/dist/UnincorporatedPartnershipMembersOverview-B2dSYLfZ.js +175 -0
- package/dist/{VerificationErrorAlert-D18WmRyf.js → VerificationErrorAlert-Bl4kwjzn.js} +4 -4
- package/dist/{ViewVerificationStatusComponent-Fc0L-JN4.js → ViewVerificationStatusComponent-DYdW0Gsi.js} +4 -4
- package/dist/adyen-business-financing.js +3 -3
- package/dist/adyen-individual-configuration.js +3 -3
- package/dist/adyen-individual-status.js +3 -3
- package/dist/adyen-kyc-components.js +22 -21
- package/dist/adyen-onboarding.js +3 -3
- package/dist/adyen-terms-of-service-management.js +3 -3
- package/dist/adyen-terms-of-service-status.js +3 -3
- package/dist/adyen-transfer-instrument-configuration.js +3 -3
- package/dist/adyen-transfer-instrument-management.js +3 -3
- package/dist/adyen-verification-status.js +3 -3
- package/dist/bg-BG-B7Xs_t04.js +13 -0
- package/dist/{bg-BG-D8qq7TQJ.js → bg-BG-D26PyOmu.js} +2 -4
- package/dist/{bg-BG-e6Rs6yz_.js → bg-BG-D9J6LnkI.js} +2 -1
- package/dist/{bg-BG-BC1dwNN2.js → bg-BG-DH45-0B-.js} +8 -3
- package/dist/bg-BG-oWrzmmWF.js +13 -0
- package/dist/bg-BG-wVquMNtT.js +55 -0
- package/dist/circle-small-filled-YMzP6yQU.js +14 -0
- package/dist/clock-BZHremOA.js +20 -0
- package/dist/cs-CZ--jOkoHVS.js +55 -0
- package/dist/cs-CZ-7urd96Kr.js +13 -0
- package/dist/cs-CZ-BSWXexr4.js +13 -0
- package/dist/{cs-CZ-ChGeQ9s0.js → cs-CZ-C3WsXodG.js} +2 -4
- package/dist/{cs-CZ-2foXfkBk.js → cs-CZ-DPVMeRye.js} +8 -3
- package/dist/{cs-CZ-Q6NVYK-k.js → cs-CZ-DY_pQqAT.js} +2 -1
- package/dist/{da-DK-CyHH8kX3.js → da-DK-BRCRHbdD.js} +2 -4
- package/dist/da-DK-D-CIc3Wp.js +13 -0
- package/dist/{da-DK-DU3_xdWg.js → da-DK-DU4dCNEw.js} +8 -3
- package/dist/da-DK-JHZnsI59.js +55 -0
- package/dist/da-DK-R_y7YwqQ.js +13 -0
- package/dist/{da-DK-DSYEF7Q1.js → da-DK-jK7c9UL0.js} +2 -1
- package/dist/de-DE-BR6CLZw6.js +13 -0
- package/dist/{de-DE-DL6SrIBE.js → de-DE-DhwZpGcF.js} +2 -4
- package/dist/{de-DE-BODG29hR.js → de-DE-Dz2l6jRl.js} +8 -3
- package/dist/de-DE-VGGEkxUT.js +55 -0
- package/dist/de-DE-itf47wPh.js +13 -0
- package/dist/{de-DE-B9-ILIdw.js → de-DE-wmerDL2e.js} +2 -1
- package/dist/{debouncedInputEvent-BDf19z5H.js → debouncedInputEvent-BZv9kA9Q.js} +2 -2
- package/dist/{documentUtils-DahfSV2D.js → documentUtils-feD3RgJ6.js} +4 -3
- package/dist/{dropinUtils-DFscjCzE.js → dropinUtils-L0ggRI0e.js} +5 -4
- package/dist/el-GR-B09xC5IM.js +13 -0
- package/dist/el-GR-B3FHqTOX.js +13 -0
- package/dist/{el-GR-DYjcbiSc.js → el-GR-Btrk_npt.js} +2 -1
- package/dist/{el-GR-l0JeDNPy.js → el-GR-CPvcb2_O.js} +2 -4
- package/dist/{el-GR-DcIdm3iK.js → el-GR-MLFY-Gg7.js} +8 -3
- package/dist/el-GR-gkaKwnln.js +55 -0
- package/dist/{en-US-C5WyUweF.js → en-US-BPI4FZwa.js} +2 -1
- package/dist/{en-US-BxEW5N6f.js → en-US-DwpcyeTb.js} +34 -8
- package/dist/{es-ES-CMQqgMEJ.js → es-ES-0ROz-BJh.js} +8 -3
- package/dist/es-ES-Bn9_0wK0.js +55 -0
- package/dist/es-ES-CEp-ttVJ.js +13 -0
- package/dist/{es-ES-C-tTuMLH.js → es-ES-Qnc0Q6JH.js} +2 -1
- package/dist/{es-ES-C1ClJ2XE.js → es-ES-p03wSF0j.js} +2 -4
- package/dist/es-ES-u77uTVet.js +13 -0
- package/dist/et-EE-B4Qtq50U.js +13 -0
- package/dist/et-EE-BYSnV6Iq.js +55 -0
- package/dist/et-EE-Ci8RU2wg.js +13 -0
- package/dist/{et-EE-BG_Y29oV.js → et-EE-DwU9PpSw.js} +2 -4
- package/dist/{et-EE-BzLAp08F.js → et-EE-TzXANcP2.js} +2 -1
- package/dist/{et-EE-DcpuYQwB.js → et-EE-esci5847.js} +8 -3
- package/dist/fi-FI-CoeShwM8.js +13 -0
- package/dist/{fi-FI-bIhXiQPL.js → fi-FI-D6UZTiLe.js} +2 -4
- package/dist/fi-FI-DjlB2a7k.js +13 -0
- package/dist/{fi-FI-pyHLbmel.js → fi-FI-Dn2MC8uW.js} +2 -1
- package/dist/fi-FI-PVFqd5Ra.js +55 -0
- package/dist/{fi-FI-4GTHkwOL.js → fi-FI-xXrvDLFe.js} +8 -3
- package/dist/{fieldConfigurations-BCj1wotL.js → fieldConfigurations-Bor1NtgA.js} +19 -18
- package/dist/{fr-FR-DG3tEkdN.js → fr-FR-BWX14yb7.js} +2 -1
- package/dist/{fr-FR-Ba-HRBQ7.js → fr-FR-Bw9O-QAU.js} +8 -3
- package/dist/fr-FR-C4ldMaqM.js +13 -0
- package/dist/fr-FR-Dx-CiPdB.js +13 -0
- package/dist/{fr-FR-Bj275MRb.js → fr-FR-jXToKR-E.js} +2 -4
- package/dist/fr-FR-mJK4hjwD.js +55 -0
- package/dist/{getFieldsWithExistingData-C_5HXg3J.js → getFieldsWithExistingData-JYFQVAcY.js} +2 -2
- package/dist/{getName-B1o2b2LX.js → getName-DftHbR4I.js} +2 -2
- package/dist/{hasDataChanged-Bn31Z0Rf.js → hasDataChanged-DU3vtQG1.js} +2 -2
- package/dist/hr-HR-BXG_ZAJm.js +13 -0
- package/dist/{hr-HR-BRFErTkv.js → hr-HR-CZLSQruE.js} +2 -1
- package/dist/{hr-HR-BFx1T11G.js → hr-HR-D8_yhtIo.js} +8 -3
- package/dist/{hr-HR-CL0q_D2U.js → hr-HR-Dcv0VrbJ.js} +2 -4
- package/dist/hr-HR-n7aMHIpM.js +13 -0
- package/dist/hr-HR-qmYyO-nT.js +55 -0
- package/dist/hu-HU-CMGzeEXp.js +13 -0
- package/dist/hu-HU-CS-7iNS4.js +55 -0
- package/dist/hu-HU-D_DvlCMw.js +13 -0
- package/dist/{hu-HU-GXvzHwu9.js → hu-HU-KliQetm5.js} +8 -3
- package/dist/{hu-HU-cLqGFTTR.js → hu-HU-KqfViqRG.js} +2 -4
- package/dist/{hu-HU-CJA8w351.js → hu-HU-kp8Go5hZ.js} +2 -1
- package/dist/{iframeWidget-DtoLjCYK.js → iframeWidget-C8wyKuCq.js} +4 -4
- package/dist/{it-IT-mhNjrQZn.js → it-IT-B0YGvVgW.js} +2 -1
- package/dist/it-IT-BTWkWSJq.js +55 -0
- package/dist/it-IT-Cz3V93Xk.js +13 -0
- package/dist/{it-IT-C0Qk47kh.js → it-IT-DgGk7YK7.js} +2 -4
- package/dist/{it-IT-Bw3VIHJB.js → it-IT-MwpjRAG6.js} +8 -3
- package/dist/it-IT-yV7ewjWU.js +13 -0
- package/dist/{ja-JP-DI7lRfpI.js → ja-JP-2u5fqLWF.js} +8 -3
- package/dist/ja-JP-B4mHwijO.js +13 -0
- package/dist/ja-JP-CSz7fEkn.js +55 -0
- package/dist/{ja-JP-DSdZj-it.js → ja-JP-CY2oljJM.js} +2 -4
- package/dist/{ja-JP-BxEWI56P.js → ja-JP-Ctsk4z4q.js} +4 -1
- package/dist/{ja-JP-CfrHlRGC.js → ja-JP-Dz9IVH4p.js} +2 -1
- package/dist/{localizeDateString-4aQPK6sB.js → localizeDateString-BJbsiJ-b.js} +2 -2
- package/dist/lt-LT-B6XmKUXx.js +55 -0
- package/dist/{lt-LT-ewVNPhQN.js → lt-LT-BEsBoIQ9.js} +8 -3
- package/dist/lt-LT-BuALzmEO.js +13 -0
- package/dist/lt-LT-CYiW52tl.js +13 -0
- package/dist/{lt-LT-C-dKiExL.js → lt-LT-D8cex0eq.js} +2 -4
- package/dist/{lt-LT-C0Acftnm.js → lt-LT-l9rzkFg9.js} +2 -1
- package/dist/{lv-LV-UkEOuqFz.js → lv-LV-BUGQrsDw.js} +2 -4
- package/dist/lv-LV-CgMxfFK8.js +13 -0
- package/dist/{lv-LV-Bnq61WAt.js → lv-LV-DYbb5pkt.js} +2 -1
- package/dist/lv-LV-DsSpy50n.js +55 -0
- package/dist/{lv-LV-JqXvRt4T.js → lv-LV-Veji7-on.js} +8 -3
- package/dist/lv-LV-nDWqwoYo.js +13 -0
- package/dist/{mapExistingFile-lDnF81cv.js → mapExistingFile-lCDb_PhK.js} +3 -3
- package/dist/{mapFinancialReportsToFinancialInformation-5skum6Qk.js → mapFinancialReportsToFinancialInformation-CnMpcLxg.js} +3 -3
- package/dist/{mapJpAddressSchemaToAddressLocalizations-iYMAONXA.js → mapJpAddressSchemaToAddressLocalizations-DkpasBLv.js} +3 -3
- package/dist/{mapLegalEntityToIndividualOnfidoSchema-CZ8Op1Il.js → mapLegalEntityToIndividualOnfidoSchema-MeTFyeE4.js} +3 -3
- package/dist/{mapTransferInstrumentToPayoutAccount-l-kGyc4S.js → mapTransferInstrumentToPayoutAccount-Bvh9p_HS.js} +2 -2
- package/dist/{nl-NL-donw5yvS.js → nl-NL-BMUYBqlF.js} +2 -1
- package/dist/{nl-NL-DR1wVqQC.js → nl-NL-BuW3jWdI.js} +8 -3
- package/dist/nl-NL-CTf7zH4M.js +55 -0
- package/dist/{nl-NL-Cfr5hMtI.js → nl-NL-CagNun1T.js} +2 -4
- package/dist/nl-NL-CcUU-KmX.js +13 -0
- package/dist/nl-NL-DKMs4pB2.js +13 -0
- package/dist/no-NO-B-oUwe9q.js +13 -0
- package/dist/no-NO-BplX8KGW.js +13 -0
- package/dist/{no-NO-BZmigu6-.js → no-NO-CA0EizAy.js} +8 -3
- package/dist/{no-NO-ASO8Je2l.js → no-NO-D4q0sOO5.js} +2 -4
- package/dist/{no-NO-Dev7r3VA.js → no-NO-DKbWxgF-.js} +2 -1
- package/dist/no-NO-RfTK9KAV.js +55 -0
- package/dist/payout-verification-manual-BH2mu0UW.js +90 -0
- package/dist/{pl-PL-DU_Xulyu.js → pl-PL-B0zGy_b4.js} +2 -1
- package/dist/pl-PL-BmCZYCoD.js +13 -0
- package/dist/{pl-PL-BKxhMICw.js → pl-PL-D7nhdbfR.js} +8 -3
- package/dist/pl-PL-Dy8qWH39.js +55 -0
- package/dist/{pl-PL-CG4rvgUo.js → pl-PL-LSqjGZHp.js} +2 -4
- package/dist/pl-PL-p8YxqOFg.js +13 -0
- package/dist/{process-field-configurations-Dt6THVwE.js → process-field-configurations-C41JKZZ6.js} +3 -3
- package/dist/{pt-BR-DeXo4rsi.js → pt-BR--kaJvtE6.js} +2 -1
- package/dist/pt-BR-BbFJsIVX.js +55 -0
- package/dist/pt-BR-BkPUtBM9.js +13 -0
- package/dist/{pt-BR-wAIdhUru.js → pt-BR-D1nTSLod.js} +8 -3
- package/dist/pt-BR-DKrMpM6v.js +13 -0
- package/dist/{pt-BR-IWTcYKu9.js → pt-BR-FCK1QNOs.js} +2 -4
- package/dist/pt-PT-B4F_5NWi.js +55 -0
- package/dist/{pt-PT-C1qHVe7L.js → pt-PT-B9L50746.js} +8 -3
- package/dist/{pt-PT-DkJdR6SS.js → pt-PT-BZ5ZZm6G.js} +2 -1
- package/dist/pt-PT-Bh7v8xbp.js +13 -0
- package/dist/pt-PT-D_F3JxYu.js +13 -0
- package/dist/{pt-PT-LZZYQKaC.js → pt-PT-U2s6koli.js} +2 -4
- package/dist/recurring-CkL4cCM2.js +17 -0
- package/dist/{resolveEnvironment-9sxvxhUS.js → resolveEnvironment-DalWYmHj.js} +3 -3
- package/dist/{ro-RO-nVSeNtIQ.js → ro-RO-BvP4CrrF.js} +2 -4
- package/dist/ro-RO-CICjAFys.js +55 -0
- package/dist/ro-RO-CJoz8E5K.js +13 -0
- package/dist/{ro-RO-BDjHimxe.js → ro-RO-CdSsgoUG.js} +2 -1
- package/dist/ro-RO-DjGku_3y.js +13 -0
- package/dist/{ro-RO-juw6hKRk.js → ro-RO-DvG65dTt.js} +8 -3
- package/dist/{rules-BjmEJdfD.js → rules-DFgTcf5L.js} +4 -4
- package/dist/{sk-SK-BM57awWi.js → sk-SK-BMJgOJoa.js} +8 -3
- package/dist/sk-SK-BRd5TN22.js +55 -0
- package/dist/sk-SK-Bb18qPBw.js +13 -0
- package/dist/{sk-SK-atqQJid1.js → sk-SK-BiBWPJUf.js} +2 -1
- package/dist/{sk-SK-BX0wsQH4.js → sk-SK-DFvk5ao5.js} +2 -4
- package/dist/sk-SK-DgdScFiv.js +13 -0
- package/dist/{sl-SI-g2WSP0Tj.js → sl-SI-BMF8YtOm.js} +8 -3
- package/dist/{sl-SI-Dt7rovIT.js → sl-SI-Bj-INVFz.js} +2 -4
- package/dist/sl-SI-CZt2QlBD.js +13 -0
- package/dist/sl-SI-D8dDckrW.js +55 -0
- package/dist/{sl-SI-CwKpXVCh.js → sl-SI-DtdGMD6i.js} +2 -1
- package/dist/sl-SI-ZxyvdgdS.js +13 -0
- package/dist/style.css +719 -597
- package/dist/styles-CLV89_hH.js +719 -597
- package/dist/sv-SE-BPD3xI_7.js +13 -0
- package/dist/{sv-SE-Cfs0NHgG.js → sv-SE-BYC_f8r7.js} +8 -3
- package/dist/sv-SE-CCFIf86P.js +13 -0
- package/dist/sv-SE-DGpvVvWj.js +55 -0
- package/dist/{sv-SE-DqzH809e.js → sv-SE-Dg9DC29v.js} +2 -4
- package/dist/{sv-SE-CGCP_6VE.js → sv-SE-kR514dO1.js} +2 -1
- package/dist/trackNavigation-db_h46BT.js +28 -0
- package/dist/types/api/businessLines/businessLines.types.d.ts +2 -2
- package/dist/types/api/documentValidation/useDocumentValidate.d.ts +14 -0
- package/dist/types/api/industryCodes/industryCodes.types.d.ts +2 -1
- package/dist/types/api/{pciTemplate/pciTemplate.types.d.ts → pci/pci.types.d.ts} +9 -1
- package/dist/types/api/{pciTemplate → pci}/usePciQuestionnaire.d.ts +1 -1
- package/dist/types/api/{pciTemplate → pci}/usePciQuestionnaireList.d.ts +1 -1
- package/dist/types/api/{pciTemplate → pci}/usePciStatus.d.ts +1 -1
- package/dist/types/api/pci/usePciTemplate.d.ts +8 -0
- package/dist/types/api/queryKeys.d.ts +5 -4
- package/dist/types/components/BankAccount/forms/BankDocument/BankDocumentClassification.d.ts +5 -0
- package/dist/types/components/BankAccount/forms/BankDocument/validate.d.ts +3 -0
- package/dist/types/components/BankAccount/forms/PayoutCountryDetails/PayoutCountryDetails.d.ts +1 -1
- package/dist/types/components/BankAccount/forms/PayoutCountryDetails/PayoutRequirementsModal.d.ts +8 -0
- package/dist/types/components/BankAccount/forms/PayoutCountryDetails/types.d.ts +2 -0
- package/dist/types/components/Business/tasks/BusinessDetailsDropin/types.d.ts +6 -0
- package/dist/types/components/Business/tasks/BusinessDetailsDropin/utils.d.ts +1 -1
- package/dist/types/components/BusinessLines/tasks/BusinessLines/BusinessLinesStore.d.ts +1 -0
- package/dist/types/components/Contract/hooks/useSalesChannels.d.ts +2 -0
- package/dist/types/components/Individual/pages/DecisionMakerDetailsPage.d.ts +2 -8
- package/dist/types/components/Individual/pages/RootIndividualDetailsPage.d.ts +2 -6
- package/dist/types/components/Individual/tasks/DecisionMakers/DecisionMakerDetails/utils.d.ts +1 -0
- package/dist/types/components/Individual/tasks/DecisionMakers/types.d.ts +0 -2
- package/dist/types/components/Shared/TaskVerificationStatus/TaskVerificationStatus.d.ts +18 -0
- package/dist/types/components/Shared/fields/IndustryCodeField/IndustryCodeField.d.ts +1 -1
- package/dist/types/components/Shared/fields/IndustryCodeField/types.d.ts +4 -0
- package/dist/types/components/Shared/forms/Address/utils.d.ts +1 -1
- package/dist/types/components/Shared/tasks/TaskList/TaskListItem.d.ts +1 -1
- package/dist/types/components/Shared/tasks/TaskList/types.d.ts +3 -8
- package/dist/types/components/ui/atoms/Status/Status.d.ts +9 -3
- package/dist/types/components/ui/atoms/Svg/svgs.d.ts +6 -0
- package/dist/types/components/ui/molecules/Dropzone/FilePicker.d.ts +2 -1
- package/dist/types/components/ui/molecules/Dropzone/types.d.ts +1 -0
- package/dist/types/context/ExperimentContext/types.d.ts +4 -0
- package/dist/types/core/user-events.d.ts +15 -2
- package/dist/types/hooks/singpass/useSingpassMyInfoLogin.d.ts +2 -6
- package/dist/types/utils/analytics/debouncedInputEvent.d.ts +12 -1
- package/dist/types/utils/api/documentUtils.d.ts +1 -0
- package/dist/types/utils/entityStatusUtil.d.ts +1 -1
- package/dist/types/utils/getTrustedFields.d.ts +9 -0
- package/dist/types/utils/validatorUtils.d.ts +1 -0
- package/dist/{types-DQVZ5BSQ.js → types-B93Ai-fO.js} +6 -2
- package/dist/{types-BQTi6XU4.js → types-BG06cR9w.js} +2 -2
- package/dist/{types-Db4qB5S5.js → types-E18sv3fQ.js} +2 -2
- package/dist/types-nbahNdbR.js +34 -0
- package/dist/{useAssociatedLegalEntity-D9WaVhuE.js → useAssociatedLegalEntity-CDCwVlgp.js} +2 -2
- package/dist/useCreateLegalEntity-Dr1EtZC9.js +31 -0
- package/dist/{useDataset-CKGFlO8U.js → useDataset-BHoDL5D6.js} +30 -7
- package/dist/{trackNavigation-DYYVv6_y.js → useForm-SCWu19rh.js} +8 -36
- package/dist/useGlobalData-C2odacHA.js +68 -0
- package/dist/{useMultiForm-DfGnG4oT.js → useMultiForm-7AeF_Lma.js} +4 -4
- package/dist/{useOnboardingStatus-CIPOAtmO.js → useOnboardingStatus-D8ldbwoJ.js} +2 -2
- package/dist/{useScenarios-CpiyRA2D.js → useScenarios-CGvgBfO2.js} +2 -2
- package/dist/{useTermsOfServiceStatus-DYF8KAVC.js → useTermsOfServiceStatus-D7rXsMOk.js} +2 -2
- package/dist/{useToastContext-lvmkWAhW.js → useToastContext-BGkxz2AI.js} +17 -5
- package/dist/{useUnincorporatedPartnershipMembers-BVLE8Ovp.js → useUnincorporatedPartnershipMembers-CTtyjp6h.js} +7 -62
- package/dist/useUpdateBusinessLines-C4B4uUP4.js +46 -0
- package/dist/useUpdateLegalEntity-DPVG51Eo.js +39 -0
- package/dist/{utils-CgVxixWT.js → utils-R-gix6HO.js} +6 -6
- package/dist/{validate-g4LgLk_u.js → validate-B6JagCTI.js} +2 -2
- package/dist/{validate-DusGGHsF.js → validate-C0bVNNOM.js} +2 -2
- package/dist/{validationError-C0UYDiYL.js → validationError-BY8rwcKJ.js} +2 -2
- package/dist/warning-diamond-filled-BfXMlVrG.js +17 -0
- package/package.json +1 -1
- package/dist/BusinessFinancingComponent-C9ugIBel.js +0 -54
- package/dist/BusinessFinancingPage-zaSDXCpl.js +0 -46
- package/dist/CreateIndividualComponent-DS6uGwYF.js +0 -71
- package/dist/CreateTransferInstrumentComponent-CQ00ZVZa.js +0 -66
- package/dist/RootIndividualDetailsPage-BsagBZYZ.js +0 -80
- package/dist/TaskItemStatus-BAtPrryh.js +0 -114
- package/dist/bg-BG-BJo9yIYj.js +0 -13
- package/dist/bg-BG-D5C7Gq2o.js +0 -35
- package/dist/bg-BG-a6CQ0hKw.js +0 -13
- package/dist/cs-CZ-BAr1-JAS.js +0 -13
- package/dist/cs-CZ-C9FuJCsg.js +0 -35
- package/dist/cs-CZ-LGBI1w0Z.js +0 -13
- package/dist/da-DK-914Viqia.js +0 -13
- package/dist/da-DK-BeSNTO9k.js +0 -35
- package/dist/da-DK-DoHb4ssx.js +0 -13
- package/dist/de-DE-BXKZNAA1.js +0 -13
- package/dist/de-DE-Dp-2BAWQ.js +0 -35
- package/dist/de-DE-R6YgDOo5.js +0 -13
- package/dist/el-GR-5WvkRyW5.js +0 -35
- package/dist/el-GR-BnMw4HQ7.js +0 -13
- package/dist/el-GR-DgaUGjyJ.js +0 -13
- package/dist/es-ES-BWAlCq7R.js +0 -13
- package/dist/es-ES-C9oDOVSQ.js +0 -35
- package/dist/es-ES-dMSfTLXF.js +0 -13
- package/dist/et-EE-B1KmQWmI.js +0 -35
- package/dist/et-EE-D9SV0taO.js +0 -13
- package/dist/et-EE-l977xCZ_.js +0 -13
- package/dist/fi-FI-0ScajGUB.js +0 -13
- package/dist/fi-FI-C7GrKbXx.js +0 -13
- package/dist/fi-FI-DV1etLPT.js +0 -35
- package/dist/fr-FR-CqCcxkgA.js +0 -13
- package/dist/fr-FR-DZICoAHV.js +0 -35
- package/dist/fr-FR-o45TzYMp.js +0 -13
- package/dist/hr-HR-CoCrArfg.js +0 -13
- package/dist/hr-HR-D9bzCN_d.js +0 -35
- package/dist/hr-HR-YG9hvMMj.js +0 -13
- package/dist/hu-HU-BrxUJuJh.js +0 -13
- package/dist/hu-HU-C5p7RWWD.js +0 -35
- package/dist/hu-HU-DIurnBC3.js +0 -13
- package/dist/it-IT-CNS4NmYX.js +0 -13
- package/dist/it-IT-Cztl5jRY.js +0 -13
- package/dist/it-IT-mYyg3XGz.js +0 -35
- package/dist/ja-JP-BSYrPZsE.js +0 -35
- package/dist/ja-JP-DXkV1ta4.js +0 -13
- package/dist/lt-LT-BJTBEa5D.js +0 -13
- package/dist/lt-LT-D1viSP-v.js +0 -13
- package/dist/lt-LT-i-T_HQ42.js +0 -35
- package/dist/lv-LV-AkiOewnL.js +0 -13
- package/dist/lv-LV-BtX12dHJ.js +0 -35
- package/dist/lv-LV-GI-ZDM0K.js +0 -13
- package/dist/nl-NL-B6B4Z_tr.js +0 -13
- package/dist/nl-NL-PUQGh3Rp.js +0 -35
- package/dist/nl-NL-VneIcgWO.js +0 -13
- package/dist/no-NO-Dn1LUbDp.js +0 -13
- package/dist/no-NO-Dqp598Ox.js +0 -13
- package/dist/no-NO-kPnbGnBM.js +0 -35
- package/dist/payout-verification-manual-BJsf7QPE.js +0 -90
- package/dist/pl-PL-C-MmQaeR.js +0 -35
- package/dist/pl-PL-C1cP4Qpn.js +0 -13
- package/dist/pl-PL-Zdh_Xu43.js +0 -13
- package/dist/pt-BR-DkzLiK7Y.js +0 -13
- package/dist/pt-BR-DqLaaG4L.js +0 -13
- package/dist/pt-BR-Dw0UZ-Od.js +0 -35
- package/dist/pt-PT-CoTUf3zo.js +0 -13
- package/dist/pt-PT-DfVjLaAU.js +0 -35
- package/dist/pt-PT-uiREjC_e.js +0 -13
- package/dist/ro-RO-C835aMET.js +0 -13
- package/dist/ro-RO-ECJHARCT.js +0 -35
- package/dist/ro-RO-_HSYnLLu.js +0 -13
- package/dist/sk-SK-D6KtBU3q.js +0 -13
- package/dist/sk-SK-K03EHmJF.js +0 -13
- package/dist/sk-SK-rSmwmSCa.js +0 -35
- package/dist/sl-SI-CedEO3kf.js +0 -35
- package/dist/sl-SI-gM40Ay3W.js +0 -13
- package/dist/sl-SI-wYYQibM-.js +0 -13
- package/dist/sv-SE-BYUoi-08.js +0 -35
- package/dist/sv-SE-Bnhsdw8c.js +0 -13
- package/dist/sv-SE-uisfAT9L.js +0 -13
- package/dist/types/api/pciTemplate/usePciTemplate.d.ts +0 -14
- package/dist/types/components/Contract/hooks/useSalesChannelsSettings.d.ts +0 -3
- package/dist/types/components/Shared/tasks/TaskList/TaskItemStatus.d.ts +0 -2
- package/dist/types/components/ui/atoms/Status/Status.types.d.ts +0 -8
- package/dist/types/components/ui/atoms/TaskStatusIndicator/TaskStatusIndicator.d.ts +0 -11
- package/dist/warning-filled-F54KIN6Z.js +0 -14
- /package/dist/types/api/{pciTemplate → pci}/useSignPci.d.ts +0 -0
- /package/dist/types/components/{ui/atoms → BusinessLines/fields}/Carousel/Carousel.d.ts +0 -0
- /package/dist/types/components/BusinessLines/tasks/BusinessLines/{ExistingBusinessLines → BusinessLineModal}/BusinessLineModal.d.ts +0 -0
|
@@ -2,184 +2,30 @@
|
|
|
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] = "4041b4ec-b93f-413c-9807-8baf6f0ae40f", e._sentryDebugIdIdentifier = "sentry-dbid-4041b4ec-b93f-413c-9807-8baf6f0ae40f");
|
|
6
6
|
} catch (e) {
|
|
7
7
|
}
|
|
8
8
|
}
|
|
9
9
|
;
|
|
10
|
-
import { useReducer, useMemo, useRef, useState, useEffect, useContext, useCallback } from "preact/hooks";
|
|
11
|
-
import { b as useApiContext, j as useQuery, k as httpPost, g as getLegalEntityCountry, V as CountryCodes, C as isPartOfTrustFromLegalEntity, z as LegalEntityTypes, G as hasSolePropInLegalEntity, aq as individualComponentsKeyMapping, ar as businessDetailsComponentsKeyMapping, X as isEmpty$1, u as useTranslation, a1 as useAnalyticsContext, B as Button, y as Typography, a4 as Icon, ao as objectsDeepEqual, c as useLegalEntity, R as ROOT_LE, as as Scenarios, at as DecisionMakerTypes, O as TaskTypes, ak as Trans, P as createLogger, W as useI18nContext, o as httpGet, au as SettingsContext, $ as useExperimentsContext, av as keysOf, K as useAccountHolder, a0 as entriesOf, m as useSettingsContext, aw as getLegalRepresentativeWarningMessage, a5 as noop, ax as getAvailableDecisionMakerRoleTypes, ay as allowedCountriesForNominee, az as isLowRiskCountry, L as Loader, aA as getAgeRangeForLegalRepresentative, aB as isLegalRepresentativeNeeded, a2 as useMutation, aC as listToRecord, aD as pick, Y as IconButton, x as translateStringOrObject } from "./StoreProvider-Cvqvt7fn.js";
|
|
12
|
-
import { j as TrustedFieldsProviders, m as makeMask, c as nonInputs, n as numericInputs, s as spacer, d as alphaInputs, l as customInputs, b as alphanumericInputs, v as validatePatternOnBlur, u as uppercase, o as defaultFileValidationOptions, p as fileValidationRules, S as StateContextSetter, D as DropzoneFile, q as bytesToSize, t as DocumentGuidance, T as TextArea, w as getLocalizedIdDocumentTypeOptions, R as RadioGroupCard, C as ContextGuidance, I as Image, a as validateNotEmptyOnBlur, x as createFormRules, M as MaskedInput, r as resolveFieldMetadata, y as InputEmail } from "./fieldConfigurations-BCj1wotL.js";
|
|
13
10
|
import { jsxs, jsx, Fragment } from "preact/jsx-runtime";
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
11
|
+
import { useRef, useState, useMemo, useEffect, useContext, useCallback } from "preact/hooks";
|
|
12
|
+
import { j as useProviderStatus, R as RadioGroup, k as isDateOlderThanAYear, C as COUNTRIES_WITH_STATES_DATASET, I as InputDate, f as formatDateObj, i as useFormContext, l as addressFields, A as Address, g as getAddressSchemaForCountry, e as getAddressSchemaLabelsByCountry, n as RadioWithLabel } from "./Address-CaKnB-Qo.js";
|
|
13
|
+
import { c as createFormUtils, H as Header, E as ErrorPanel, a as Link, m as mergeFieldMetadataIntoProps, r as roleMetadata, d as getFieldProps, i as isTruthyValidator, C as CountryField, g as getFormProps, S as StackLayout, u as useFormRouterContext } from "./CountryField-B79la7c-.js";
|
|
14
|
+
import { m as makeMask, c as nonInputs, n as numericInputs, s as spacer, d as alphaInputs, k as customInputs, b as alphanumericInputs, v as validatePatternOnBlur, u as uppercase, l as defaultFileValidationOptions, o as fileValidationRules, S as StateContextSetter, D as DropzoneFile, p as bytesToSize, q as DocumentGuidance, t as TextArea, w as getLocalizedIdDocumentTypeOptions, R as RadioGroupCard, C as ContextGuidance, I as Image, a as validateNotEmptyOnBlur, x as createFormRules, M as MaskedInput, r as resolveFieldMetadata, y as InputEmail, T as TrustedFieldsProviders } from "./fieldConfigurations-Bor1NtgA.js";
|
|
15
|
+
import { C as CountryCodes, X as isEmpty$1, u as useTranslation, a0 as useAnalyticsContext, B as Button, H as Typography, a3 as Icon, aj as objectsDeepEqual, c as useLegalEntity, R as ROOT_LE, al as Scenarios, am as DecisionMakerTypes, P as TaskTypes, an as Trans, b as useApiContext, j as useQuery, k as httpPost, U as createLogger, W as useI18nContext, m as httpGet, ao as SettingsContext, p as useExperimentsContext, t as LegalEntityTypes, ap as keysOf, M as useAccountHolder, $ as entriesOf, o as useSettingsContext, aq as getLegalRepresentativeWarningMessage, a4 as noop, g as getLegalEntityCountry, ar as getAvailableDecisionMakerRoleTypes, as as allowedCountriesForNominee, at as isLowRiskCountry, L as Loader, au as getAgeRangeForLegalRepresentative, av as isLegalRepresentativeNeeded, a1 as useMutation, aw as listToRecord, ax as pick, Y as IconButton, G as translateStringOrObject } from "./StoreProvider-_QQynxk0.js";
|
|
16
16
|
import { memo, lazy, forwardRef, Suspense } from "preact/compat";
|
|
17
|
-
import {
|
|
18
|
-
import { I as InputText, S as SettingNames } from "./InputText-
|
|
19
|
-
import { a as Alert } from "./Alert-
|
|
17
|
+
import { u as useForm, F as Field, S as Select, L as LoaderWrapper, a as SelectListItem } from "./useForm-SCWu19rh.js";
|
|
18
|
+
import { I as InputText, S as SettingNames } from "./InputText-DJn5nzG0.js";
|
|
19
|
+
import { a as Alert } from "./Alert-CzqTssej.js";
|
|
20
20
|
import { signal, computed } from "@preact/signals";
|
|
21
|
-
import { u as useDataset, d as datasetIdentifier, C as Confirm, a as datasetUtilities } from "./useDataset-
|
|
21
|
+
import { u as useDataset, d as datasetIdentifier, C as Confirm, a as datasetUtilities } from "./useDataset-BHoDL5D6.js";
|
|
22
22
|
import cx from "classnames";
|
|
23
|
-
import {
|
|
24
|
-
import {
|
|
23
|
+
import { b as useId } from "./useToastContext-BGkxz2AI.js";
|
|
24
|
+
import { K as KEYBOARD_KEYS, M as Modal } from "./Modal-C89D3p56.js";
|
|
25
|
+
import { C as Checkbox } from "./debouncedInputEvent-BZv9kA9Q.js";
|
|
25
26
|
import { Onfido } from "onfido-sdk-ui";
|
|
26
|
-
import { S as Spacer } from "./getName-
|
|
27
|
-
import { l as localizeDateString } from "./localizeDateString-
|
|
28
|
-
async function convertToSingpassLinkResponse(openIdInitiateResponse) {
|
|
29
|
-
const response = await Promise.resolve(openIdInitiateResponse);
|
|
30
|
-
const item = { authUrl: response.authUrl, success: true };
|
|
31
|
-
return { item };
|
|
32
|
-
}
|
|
33
|
-
const useOpenIdAuthorizationLink = (options2) => {
|
|
34
|
-
const { rootLegalEntityId, baseUrl } = useApiContext();
|
|
35
|
-
return useQuery({
|
|
36
|
-
queryKey: ["openIdAuthorizationLink"],
|
|
37
|
-
queryFn: () => getOpenIdAuthorizationLink(rootLegalEntityId.value, baseUrl.value),
|
|
38
|
-
...options2
|
|
39
|
-
});
|
|
40
|
-
};
|
|
41
|
-
const getOpenIdAuthorizationLink = async (legalEntityId, baseUrl) => {
|
|
42
|
-
return convertToSingpassLinkResponse(
|
|
43
|
-
httpPost({
|
|
44
|
-
baseUrl,
|
|
45
|
-
path: `/legalEntities/${legalEntityId}/openid/initiate`
|
|
46
|
-
})
|
|
47
|
-
);
|
|
48
|
-
};
|
|
49
|
-
const SingpassMyInfoLoginActionTypes = {
|
|
50
|
-
LOADING: "LOADING",
|
|
51
|
-
SUCCESS: "SUCCESS",
|
|
52
|
-
FAILURE: "FAILURE",
|
|
53
|
-
RESET: "RESET"
|
|
54
|
-
};
|
|
55
|
-
const parseTrustedFieldsIntoReadOnlyFields = (trustedFields, mapping) => {
|
|
56
|
-
const formFieldsMapped = [];
|
|
57
|
-
trustedFields.forEach((field) => {
|
|
58
|
-
for (const [key, value] of Object.entries(mapping)) {
|
|
59
|
-
if (value === field) {
|
|
60
|
-
formFieldsMapped.push(key);
|
|
61
|
-
}
|
|
62
|
-
}
|
|
63
|
-
});
|
|
64
|
-
const readOnlyFields = {};
|
|
65
|
-
formFieldsMapped.forEach((field) => {
|
|
66
|
-
const tokenizedField = field.split(".");
|
|
67
|
-
const formField = tokenizedField.pop();
|
|
68
|
-
const formId = tokenizedField.pop();
|
|
69
|
-
if (formField && formId) {
|
|
70
|
-
if (formId in readOnlyFields) {
|
|
71
|
-
readOnlyFields[formId].push(formField);
|
|
72
|
-
} else {
|
|
73
|
-
readOnlyFields[formId] = [formField];
|
|
74
|
-
}
|
|
75
|
-
}
|
|
76
|
-
});
|
|
77
|
-
return readOnlyFields;
|
|
78
|
-
};
|
|
79
|
-
const defaultSingpassState = { isLoading: false, isSuccess: false };
|
|
80
|
-
const singpassReducer = (state, action) => {
|
|
81
|
-
switch (action.type) {
|
|
82
|
-
case SingpassMyInfoLoginActionTypes.LOADING:
|
|
83
|
-
return { ...state, isLoading: true };
|
|
84
|
-
case SingpassMyInfoLoginActionTypes.SUCCESS:
|
|
85
|
-
return { isLoading: false, isSuccess: true };
|
|
86
|
-
case SingpassMyInfoLoginActionTypes.FAILURE:
|
|
87
|
-
return { isLoading: false, isSuccess: false, errorMessage: action.errorMessage };
|
|
88
|
-
case SingpassMyInfoLoginActionTypes.RESET:
|
|
89
|
-
return defaultSingpassState;
|
|
90
|
-
default:
|
|
91
|
-
return state;
|
|
92
|
-
}
|
|
93
|
-
};
|
|
94
|
-
const getApiMapping = (legalEntity) => {
|
|
95
|
-
if (!legalEntity) return;
|
|
96
|
-
const { type } = legalEntity;
|
|
97
|
-
if (type === LegalEntityTypes.INDIVIDUAL) {
|
|
98
|
-
return individualComponentsKeyMapping;
|
|
99
|
-
}
|
|
100
|
-
if (type === LegalEntityTypes.ORGANIZATION) {
|
|
101
|
-
return businessDetailsComponentsKeyMapping;
|
|
102
|
-
}
|
|
103
|
-
};
|
|
104
|
-
const getTrustedEntityAssociations = (legalEntityTrustedFields) => {
|
|
105
|
-
const rawTrustedEntityAssociations = legalEntityTrustedFields.filter((f) => f.startsWith("entityAssociations")) ?? [];
|
|
106
|
-
const leIdMap = {};
|
|
107
|
-
rawTrustedEntityAssociations.forEach((rtea) => {
|
|
108
|
-
const [_, role, leId] = rtea.split(".");
|
|
109
|
-
const trustedRole = role;
|
|
110
|
-
if (!leIdMap[leId]) {
|
|
111
|
-
leIdMap[leId] = { roles: [trustedRole] };
|
|
112
|
-
} else {
|
|
113
|
-
leIdMap[leId] = { roles: [...leIdMap[leId].roles, trustedRole] };
|
|
114
|
-
}
|
|
115
|
-
});
|
|
116
|
-
return Object.keys(leIdMap).map((reference) => ({ reference, types: leIdMap[reference].roles }));
|
|
117
|
-
};
|
|
118
|
-
const useSingpassMyInfoLogin = ({
|
|
119
|
-
legalEntity,
|
|
120
|
-
accountHolder
|
|
121
|
-
}) => {
|
|
122
|
-
const [state, dispatch] = useReducer(
|
|
123
|
-
singpassReducer,
|
|
124
|
-
defaultSingpassState
|
|
125
|
-
);
|
|
126
|
-
const apiMapping = getApiMapping(legalEntity);
|
|
127
|
-
const legalEntityTrustedFields = legalEntity?.trustedFields;
|
|
128
|
-
const { refetch: fetchOpenIdAuthorizationLink } = useOpenIdAuthorizationLink({ enabled: false });
|
|
129
|
-
const isEligibleForSingpass = useMemo(() => {
|
|
130
|
-
if (!legalEntity) {
|
|
131
|
-
return false;
|
|
132
|
-
}
|
|
133
|
-
if (getLegalEntityCountry(legalEntity) !== CountryCodes.Singapore) {
|
|
134
|
-
return false;
|
|
135
|
-
}
|
|
136
|
-
if (accountHolder) {
|
|
137
|
-
return accountHolder === "theCompanyIWorkFor" || accountHolder === "myName";
|
|
138
|
-
}
|
|
139
|
-
const legalEntityType = legalEntity.type;
|
|
140
|
-
const isPartOfTrust = isPartOfTrustFromLegalEntity(legalEntity);
|
|
141
|
-
const isVanillaOrganization = legalEntityType === LegalEntityTypes.ORGANIZATION && !isPartOfTrust;
|
|
142
|
-
const hasSoleProprietor = hasSolePropInLegalEntity(legalEntity);
|
|
143
|
-
const isVanillaIndividual = legalEntityType === LegalEntityTypes.INDIVIDUAL && !hasSoleProprietor;
|
|
144
|
-
return isVanillaOrganization || isVanillaIndividual;
|
|
145
|
-
}, [legalEntity, accountHolder]);
|
|
146
|
-
const singpassTrustedFields = useMemo(() => {
|
|
147
|
-
const allTrustedFields = isEligibleForSingpass && legalEntityTrustedFields ? legalEntityTrustedFields : [];
|
|
148
|
-
return allTrustedFields.find((tf) => tf.provider === TrustedFieldsProviders.SINGPASS)?.fields || [];
|
|
149
|
-
}, [isEligibleForSingpass, legalEntity]);
|
|
150
|
-
const trustedFields = useMemo(
|
|
151
|
-
() => apiMapping ? parseTrustedFieldsIntoReadOnlyFields(singpassTrustedFields, apiMapping) : {},
|
|
152
|
-
[singpassTrustedFields, apiMapping]
|
|
153
|
-
);
|
|
154
|
-
const trustedEntityAssociations = useMemo(
|
|
155
|
-
() => getTrustedEntityAssociations(singpassTrustedFields),
|
|
156
|
-
[singpassTrustedFields]
|
|
157
|
-
);
|
|
158
|
-
const handleInitiateSingpassMyInfoLogin = async () => {
|
|
159
|
-
dispatch({ ...state, type: SingpassMyInfoLoginActionTypes.LOADING });
|
|
160
|
-
const { data } = await fetchOpenIdAuthorizationLink();
|
|
161
|
-
return data?.item.authUrl;
|
|
162
|
-
};
|
|
163
|
-
const handleSingpassMyInfoLoginSuccess = () => {
|
|
164
|
-
dispatch({ ...state, type: SingpassMyInfoLoginActionTypes.SUCCESS });
|
|
165
|
-
};
|
|
166
|
-
const handleSingpassMyInfoLoginFailure = (errorMessage) => {
|
|
167
|
-
dispatch({ ...state, errorMessage, type: SingpassMyInfoLoginActionTypes.FAILURE });
|
|
168
|
-
};
|
|
169
|
-
const handleSingpassMyInfoLoginReset = () => {
|
|
170
|
-
dispatch({ ...state, type: SingpassMyInfoLoginActionTypes.RESET });
|
|
171
|
-
};
|
|
172
|
-
return {
|
|
173
|
-
isEligibleForSingpass,
|
|
174
|
-
state,
|
|
175
|
-
handleInitiateSingpassMyInfoLogin,
|
|
176
|
-
handleSingpassMyInfoLoginSuccess,
|
|
177
|
-
handleSingpassMyInfoLoginFailure,
|
|
178
|
-
handleSingpassMyInfoLoginReset,
|
|
179
|
-
trustedFields,
|
|
180
|
-
trustedEntityAssociations
|
|
181
|
-
};
|
|
182
|
-
};
|
|
27
|
+
import { S as Spacer } from "./getName-DftHbR4I.js";
|
|
28
|
+
import { l as localizeDateString } from "./localizeDateString-BJbsiJ-b.js";
|
|
183
29
|
const validatePhoneCountryCodeNotEmptyOnBlur = {
|
|
184
30
|
modes: ["blur"],
|
|
185
31
|
validate: (phone) => !isEmpty$1(phone?.phoneCountryCode),
|
|
@@ -265,6 +111,56 @@ const fieldConfig = {
|
|
|
265
111
|
placeholder: "phoneNumber__placeholder__US"
|
|
266
112
|
}
|
|
267
113
|
};
|
|
114
|
+
function getTrustedFields(rootLegalEntity, apiMapping, provider) {
|
|
115
|
+
const apiTrustedFields = getApiTrustedFields(rootLegalEntity);
|
|
116
|
+
return parseTrustedFieldsIntoReadOnlyFields(apiTrustedFields, apiMapping);
|
|
117
|
+
}
|
|
118
|
+
function getTrustedEntityAssociations(rootLegalEntity, provider) {
|
|
119
|
+
const apiTrustedFields = getApiTrustedFields(rootLegalEntity);
|
|
120
|
+
return parseTrustedEntityAssociationsFromApiFields(apiTrustedFields);
|
|
121
|
+
}
|
|
122
|
+
function getTrustedFieldsProvider(rootLegalEntity) {
|
|
123
|
+
return rootLegalEntity.trustedFields?.[0].provider;
|
|
124
|
+
}
|
|
125
|
+
const getApiTrustedFields = (rootLegalEntity, provider) => rootLegalEntity.trustedFields?.find((tf) => true)?.fields ?? [];
|
|
126
|
+
function parseTrustedFieldsIntoReadOnlyFields(trustedFields, mapping) {
|
|
127
|
+
const formFieldsMapped = [];
|
|
128
|
+
trustedFields.forEach((field) => {
|
|
129
|
+
for (const [key, value] of Object.entries(mapping)) {
|
|
130
|
+
if (value === field) {
|
|
131
|
+
formFieldsMapped.push(key);
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
});
|
|
135
|
+
const readOnlyFields = {};
|
|
136
|
+
formFieldsMapped.forEach((field) => {
|
|
137
|
+
const tokenizedField = field.split(".");
|
|
138
|
+
const formField = tokenizedField.pop();
|
|
139
|
+
const formId = tokenizedField.pop();
|
|
140
|
+
if (formField && formId) {
|
|
141
|
+
if (formId in readOnlyFields) {
|
|
142
|
+
readOnlyFields[formId].push(formField);
|
|
143
|
+
} else {
|
|
144
|
+
readOnlyFields[formId] = [formField];
|
|
145
|
+
}
|
|
146
|
+
}
|
|
147
|
+
});
|
|
148
|
+
return readOnlyFields;
|
|
149
|
+
}
|
|
150
|
+
function parseTrustedEntityAssociationsFromApiFields(trustedApiFields) {
|
|
151
|
+
const rawTrustedEntityAssociations = trustedApiFields.filter((f) => f.startsWith("entityAssociations")) ?? [];
|
|
152
|
+
const leIdMap = {};
|
|
153
|
+
rawTrustedEntityAssociations.forEach((rtea) => {
|
|
154
|
+
const [_, role, leId] = rtea.split(".");
|
|
155
|
+
const trustedRole = role;
|
|
156
|
+
if (!leIdMap[leId]) {
|
|
157
|
+
leIdMap[leId] = { roles: [trustedRole] };
|
|
158
|
+
} else {
|
|
159
|
+
leIdMap[leId] = { roles: [...leIdMap[leId].roles, trustedRole] };
|
|
160
|
+
}
|
|
161
|
+
});
|
|
162
|
+
return Object.keys(leIdMap).map((reference) => ({ reference, types: leIdMap[reference].roles }));
|
|
163
|
+
}
|
|
268
164
|
const CountryIdNumberPatterns = {
|
|
269
165
|
[CountryCodes.Brazil]: /^\d{11}$/,
|
|
270
166
|
[CountryCodes.Canada]: /^\d{9}$/,
|
|
@@ -5181,7 +5077,7 @@ function IdentityNumber(props) {
|
|
|
5181
5077
|
...formUtils.getMask("idNumber")
|
|
5182
5078
|
}
|
|
5183
5079
|
),
|
|
5184
|
-
/* @__PURE__ */ jsx(Field, { name: "idNumberExempt", children: (childProps) =>
|
|
5080
|
+
formUtils.isVisibleField("idNumberExempt") && /* @__PURE__ */ jsx(Field, { name: "idNumberExempt", children: (childProps) => /* @__PURE__ */ jsx(
|
|
5185
5081
|
Checkbox,
|
|
5186
5082
|
{
|
|
5187
5083
|
...childProps,
|
|
@@ -7620,7 +7516,7 @@ const additionalIdentityInfoFields = [
|
|
|
7620
7516
|
"expiryDate"
|
|
7621
7517
|
];
|
|
7622
7518
|
const LazyJpAddress = lazy(
|
|
7623
|
-
async () => (await import("./JpAddress-
|
|
7519
|
+
async () => (await import("./JpAddress-yRO24Dme.js")).JpAddress
|
|
7624
7520
|
);
|
|
7625
7521
|
const additionalPersonalDetailsFields = [
|
|
7626
7522
|
"birthDate",
|
|
@@ -8729,7 +8625,9 @@ function IdVerificationMethod(props) {
|
|
|
8729
8625
|
};
|
|
8730
8626
|
if (hasLiveSelfieErrorCode && data.idVerificationMethod?.idVerificationMethod === "existingDocument") {
|
|
8731
8627
|
setStatus("ready");
|
|
8732
|
-
|
|
8628
|
+
if (hasExistingDocument) {
|
|
8629
|
+
handleFieldChange("idDocument")(void 0);
|
|
8630
|
+
}
|
|
8733
8631
|
}
|
|
8734
8632
|
const handleCancelDeleteDocument = () => {
|
|
8735
8633
|
setStatus("ready");
|
|
@@ -9600,69 +9498,71 @@ function IndividualOnfido(props) {
|
|
|
9600
9498
|
] });
|
|
9601
9499
|
}
|
|
9602
9500
|
export {
|
|
9603
|
-
|
|
9604
|
-
|
|
9605
|
-
defaultFieldMetadata as B,
|
|
9501
|
+
MemoizedDocumentUpload as $,
|
|
9502
|
+
defaultFieldConfig as A,
|
|
9503
|
+
defaultFieldMetadata$1 as B,
|
|
9606
9504
|
CompanyTypesValues as C,
|
|
9607
|
-
|
|
9608
|
-
|
|
9609
|
-
|
|
9610
|
-
|
|
9611
|
-
|
|
9612
|
-
|
|
9613
|
-
|
|
9614
|
-
|
|
9615
|
-
|
|
9616
|
-
|
|
9617
|
-
|
|
9618
|
-
|
|
9619
|
-
|
|
9620
|
-
|
|
9621
|
-
|
|
9505
|
+
fieldConfig as D,
|
|
9506
|
+
isEmpty as E,
|
|
9507
|
+
getTrustedFields as F,
|
|
9508
|
+
getAsyncIdNumberValidationRule as G,
|
|
9509
|
+
getAsyncPhoneValidationRules as H,
|
|
9510
|
+
setHasMotionCaptureScenario as I,
|
|
9511
|
+
showIndividualMotionCapture as J,
|
|
9512
|
+
Individual as K,
|
|
9513
|
+
individualDocumentForms as L,
|
|
9514
|
+
idVerificationProviderId as M,
|
|
9515
|
+
idNowModalChildEntityId as N,
|
|
9516
|
+
LandingLayout as O,
|
|
9517
|
+
check4DigitSsnFailed as P,
|
|
9518
|
+
individualOnfidoRules as Q,
|
|
9519
|
+
isNextStepDisabled as R,
|
|
9622
9520
|
StateCodesUS as S,
|
|
9623
9521
|
TAX_INFORMATION_FIELD as T,
|
|
9624
|
-
|
|
9625
|
-
|
|
9626
|
-
|
|
9627
|
-
|
|
9628
|
-
|
|
9629
|
-
|
|
9630
|
-
|
|
9631
|
-
|
|
9632
|
-
|
|
9633
|
-
|
|
9634
|
-
|
|
9635
|
-
|
|
9636
|
-
|
|
9637
|
-
|
|
9638
|
-
|
|
9639
|
-
|
|
9640
|
-
|
|
9641
|
-
|
|
9642
|
-
|
|
9522
|
+
shouldShowIdNowModal as U,
|
|
9523
|
+
IndividualOnfido as V,
|
|
9524
|
+
JP_ADDRESS_REQUIRED_FIELDS as W,
|
|
9525
|
+
GuidanceQuestionValues as X,
|
|
9526
|
+
DECISION_MAKER_TYPES_WITH_JOBTITLE as Y,
|
|
9527
|
+
getTrustedEntityAssociations as Z,
|
|
9528
|
+
ContactDetails as _,
|
|
9529
|
+
getCompanyRegistrationNumberOptions as a,
|
|
9530
|
+
isRegistrationNumberAbsentStateV4Scenario as a0,
|
|
9531
|
+
COUNTRIES_THAT_USE_TAX_ID_INSTEAD_OF_VAT as a1,
|
|
9532
|
+
countryToTaxInfoTypeMap as a2,
|
|
9533
|
+
rules as a3,
|
|
9534
|
+
MultiSelectList as a4,
|
|
9535
|
+
makeSelectItemForRole as a5,
|
|
9536
|
+
Name as a6,
|
|
9537
|
+
nameFields as a7,
|
|
9538
|
+
useCapabilities as a8,
|
|
9539
|
+
InputGroup as a9,
|
|
9540
|
+
TileGroup as aa,
|
|
9541
|
+
Dropzone as ab,
|
|
9542
|
+
removeIdVerificationProblemsForBafinSignatory as ac,
|
|
9643
9543
|
businessRegistrationNumberMasks as b,
|
|
9644
|
-
|
|
9645
|
-
|
|
9646
|
-
|
|
9647
|
-
|
|
9648
|
-
|
|
9649
|
-
|
|
9650
|
-
|
|
9651
|
-
|
|
9652
|
-
|
|
9653
|
-
|
|
9654
|
-
|
|
9655
|
-
|
|
9656
|
-
|
|
9657
|
-
|
|
9658
|
-
|
|
9544
|
+
businessRegistrationNumberPatterns as c,
|
|
9545
|
+
getVatNumberOptions as d,
|
|
9546
|
+
requestingIssuing as e,
|
|
9547
|
+
exemptedFromTaxDefaultFieldMetadata as f,
|
|
9548
|
+
getTrustedFieldsProvider as g,
|
|
9549
|
+
exemptedFromTaxDefaultFieldConfig as h,
|
|
9550
|
+
taxInformationDefaultFieldConfig as i,
|
|
9551
|
+
TaxInformationField as j,
|
|
9552
|
+
toFullWidth as k,
|
|
9553
|
+
handleKeys as l,
|
|
9554
|
+
COUNTRY_OF_GOVERNING_LAW_POSSIBLE as m,
|
|
9555
|
+
COUNTRIES_USING_COMPANY_SEARCH as n,
|
|
9556
|
+
useSetting as o,
|
|
9557
|
+
individualOnfidoForms as p,
|
|
9558
|
+
individualForms as q,
|
|
9659
9559
|
requestingBanking as r,
|
|
9660
9560
|
stateFormatGuidanceText as s,
|
|
9661
9561
|
taxInformationDefaultFieldMetadata as t,
|
|
9662
9562
|
useAllowedCountries as u,
|
|
9663
9563
|
vatNumberOptions as v,
|
|
9664
|
-
|
|
9665
|
-
|
|
9666
|
-
|
|
9667
|
-
|
|
9564
|
+
isBafinSignatoryFlow as w,
|
|
9565
|
+
showIdNowModal as x,
|
|
9566
|
+
getSSNType as y,
|
|
9567
|
+
defaultFieldMetadata as z
|
|
9668
9568
|
};
|
|
@@ -2,42 +2,44 @@
|
|
|
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] = "32dcd4af-d542-4f61-8340-db3c67105c46", e._sentryDebugIdIdentifier = "sentry-dbid-32dcd4af-d542-4f61-8340-db3c67105c46");
|
|
6
6
|
} catch (e) {
|
|
7
7
|
}
|
|
8
8
|
}
|
|
9
9
|
;
|
|
10
10
|
import { jsx, jsxs, Fragment } from "preact/jsx-runtime";
|
|
11
11
|
import { useMemo, useState, useEffect, useCallback, useRef } from "preact/hooks";
|
|
12
|
-
import { u as useScenarios } from "./useScenarios-
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import { u as
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import { g as
|
|
21
|
-
import { u as
|
|
22
|
-
import {
|
|
23
|
-
import {
|
|
24
|
-
import {
|
|
25
|
-
import {
|
|
26
|
-
import { g as
|
|
27
|
-
import {
|
|
28
|
-
import {
|
|
29
|
-
import {
|
|
30
|
-
import {
|
|
12
|
+
import { u as useScenarios } from "./useScenarios-CGvgBfO2.js";
|
|
13
|
+
import { u as useCreateLegalEntity } from "./useCreateLegalEntity-Dr1EtZC9.js";
|
|
14
|
+
import { u as useUpdateLegalEntity } from "./useUpdateLegalEntity-DPVG51Eo.js";
|
|
15
|
+
import { j as useProviderStatus, p as addressValidators, q as addressFormatters, r as mapAddressLabels } from "./Address-CaKnB-Qo.js";
|
|
16
|
+
import { c as contactDetailsValidationRules, u as useValidatePhoneNumberImperatively } from "./validate-C0bVNNOM.js";
|
|
17
|
+
import { b as useApiContext, a1 as useMutation, k as httpPost, aD as matchesRegex, aP as trimValWithOneSpace, aE as NO_ALPHABET_REGEX, aF as EMOJI_REGEX, aG as hasRepeatedCharacters, aH as isInvalidName, a$ as INDIVIDUAL_VALID_CHAR_REGEX, aN as getFormattingRegEx, aO as SPECIAL_CHARS, aK as standardKatakanaValidator, aL as standardKanjiValidator, C as CountryCodes, X as isEmpty, P as TaskTypes, t as LegalEntityTypes, b0 as getAgeToday, b1 as euCountries, b2 as individualApiKeyMapping, aZ as reverseMapping, b3 as getNomineeFromAssociation, b4 as individualComponentsKeyMapping, b5 as drop, U as createLogger, M as useAccountHolder, W as useI18nContext, a0 as useAnalyticsContext, p as useExperimentsContext, o as useSettingsContext, g as getLegalEntityCountry, b6 as getAllowedDecisionMakerRoles, b7 as filterOutUnwantedAssociationsIfRootLE, aA as cloneObject, b8 as individualDocumentMapping, b9 as individualObscuredFields, af as getOwnEntityAssociations, ba as hasNomineesChanged, bb as attachNomineeToRole, aU as doArraysMatch, j as useQuery, x as skipToken, m as httpGet, u as useTranslation, a2 as useQueryClient, B as Button, L as Loader, bc as individualOnfidoApiKeyMapping, al as Scenarios, am as DecisionMakerTypes, bd as individualOnfidoDocumentMapping, be as individualOnfidoObscuredFields } from "./StoreProvider-_QQynxk0.js";
|
|
18
|
+
import { F as FormContextProvider, a as FormFlow } from "./FormFlow-m1k7xInJ.js";
|
|
19
|
+
import { a as useToastContext } from "./useToastContext-BGkxz2AI.js";
|
|
20
|
+
import { g as getPropsFromConfigurations, c as composePerScenarioFormConfigurations } from "./process-field-configurations-C41JKZZ6.js";
|
|
21
|
+
import { g as getRequiredForms, a as addValidityToForms, u as useFormComposer } from "./dropinUtils-L0ggRI0e.js";
|
|
22
|
+
import { u as useMultiForm } from "./useMultiForm-7AeF_Lma.js";
|
|
23
|
+
import { m as mapExistingFile, g as getPageName, a as getPage, u as useScenarioConfiguration } from "./mapExistingFile-lCDb_PhK.js";
|
|
24
|
+
import { y as getSSNType, z as defaultFieldMetadata, A as defaultFieldConfig, B as defaultFieldMetadata$1, D as fieldConfig, t as taxInformationDefaultFieldMetadata, i as taxInformationDefaultFieldConfig, E as isEmpty$1, F as getTrustedFields, G as getAsyncIdNumberValidationRule, H as getAsyncPhoneValidationRules, I as setHasMotionCaptureScenario, J as showIndividualMotionCapture, q as individualForms, K as Individual, L as individualDocumentForms, M as idVerificationProviderId, N as idNowModalChildEntityId, O as LandingLayout, x as showIdNowModal, P as check4DigitSsnFailed, Q as individualOnfidoRules, p as individualOnfidoForms, R as isNextStepDisabled, U as shouldShowIdNowModal, V as IndividualOnfido, W as JP_ADDRESS_REQUIRED_FIELDS, X as GuidanceQuestionValues, Y as DECISION_MAKER_TYPES_WITH_JOBTITLE$1 } from "./IndividualOnfido-hThSjqMs.js";
|
|
25
|
+
import { i as isValidationError, p as processValidationErrors, a as isMaintenanceModeError } from "./validationError-BY8rwcKJ.js";
|
|
26
|
+
import { g as getIdDocument, a as getDocument, c as createDocumentRequest, d as documentApiUtils, m as mergeAttachments, b as getFileExtention } from "./documentUtils-feD3RgJ6.js";
|
|
27
|
+
import { a as datasetUtilities, C as Confirm } from "./useDataset-BHoDL5D6.js";
|
|
28
|
+
import { g as getFieldsWithExistingData } from "./getFieldsWithExistingData-JYFQVAcY.js";
|
|
29
|
+
import { l as localizeDateString } from "./localizeDateString-BJbsiJ-b.js";
|
|
30
|
+
import { o as omitObscuredFieldsIfUnchanged, I as IFrameWidget } from "./iframeWidget-C8wyKuCq.js";
|
|
31
|
+
import { r as resolveFieldMetadata, w as getLocalizedIdDocumentTypeOptions, I as Image } from "./fieldConfigurations-Bor1NtgA.js";
|
|
32
|
+
import { r as rules, D as DECISION_MAKER_TYPES_WITH_JOBTITLE } from "./rules-DFgTcf5L.js";
|
|
31
33
|
import { f as formatObject } from "./utils-DNSfZiio.js";
|
|
32
34
|
import { m as mapSchemaFieldsToApiScriptLocalization, a as mapApiScriptLocalizationToSchemaFields } from "./mapAddressLocalizationToJpAddressSchema-vJWbpAyq.js";
|
|
33
35
|
import { computed } from "@preact/signals";
|
|
34
36
|
import { Show } from "@preact/signals/utils";
|
|
35
|
-
import { m as mapJpAddressSchemaToAddressLocalizations, a as mapJpAddressSummary } from "./mapJpAddressSchemaToAddressLocalizations-
|
|
37
|
+
import { m as mapJpAddressSchemaToAddressLocalizations, a as mapJpAddressSummary } from "./mapJpAddressSchemaToAddressLocalizations-DkpasBLv.js";
|
|
36
38
|
import { lazy } from "preact/compat";
|
|
37
|
-
import { M as Modal } from "./Modal-
|
|
38
|
-
import { a as Alert } from "./Alert-
|
|
39
|
-
import { a as getIndividualLegalEntityName } from "./getName-
|
|
40
|
-
import { g as getOnfidoIdentityTypeToApiIdentityTypeMap, m as mapLegalEntityToIndividualOnfidoSchema } from "./mapLegalEntityToIndividualOnfidoSchema-
|
|
39
|
+
import { M as Modal } from "./Modal-C89D3p56.js";
|
|
40
|
+
import { a as Alert } from "./Alert-CzqTssej.js";
|
|
41
|
+
import { a as getIndividualLegalEntityName } from "./getName-DftHbR4I.js";
|
|
42
|
+
import { g as getOnfidoIdentityTypeToApiIdentityTypeMap, m as mapLegalEntityToIndividualOnfidoSchema } from "./mapLegalEntityToIndividualOnfidoSchema-MeTFyeE4.js";
|
|
41
43
|
const verifyIdNumber = async (legalEntityId, baseUrl, data) => {
|
|
42
44
|
return await httpPost(
|
|
43
45
|
{
|
|
@@ -682,7 +684,6 @@ function IndividualDropin({
|
|
|
682
684
|
rootLegalEntityId: rootLegalEntityId.value
|
|
683
685
|
});
|
|
684
686
|
let roleTypes = [];
|
|
685
|
-
const [newDecisionMaker] = useState();
|
|
686
687
|
const [matchingScenario, setMatchingScenario] = useState();
|
|
687
688
|
const [validationErrors, setValidationErrors] = useState();
|
|
688
689
|
const [loadingStatus, setLoadingStatus] = useState("success");
|
|
@@ -693,10 +694,10 @@ function IndividualDropin({
|
|
|
693
694
|
);
|
|
694
695
|
const [hideFooter, setHideFooter] = useState(false);
|
|
695
696
|
const [derivedProps, setDerivedProps] = useState();
|
|
696
|
-
const
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
697
|
+
const associatedLegalEntityTrustedFields = useMemo(
|
|
698
|
+
() => legalEntityResponse ? getTrustedFields(legalEntityResponse, individualComponentsKeyMapping) : {},
|
|
699
|
+
[legalEntityResponse]
|
|
700
|
+
);
|
|
700
701
|
const { data: providerStatus } = useProviderStatus({
|
|
701
702
|
providers: ["address", "idDocument"],
|
|
702
703
|
country: legalEntityResponse ? getLegalEntityCountry(legalEntityResponse) : country
|
|
@@ -886,25 +887,21 @@ function IndividualDropin({
|
|
|
886
887
|
idDocumentType
|
|
887
888
|
}) => {
|
|
888
889
|
let updatedLegalEntity;
|
|
889
|
-
const
|
|
890
|
-
if (!
|
|
890
|
+
const existingLeId = legalEntityResponse?.id;
|
|
891
|
+
if (!existingLeId) {
|
|
891
892
|
updatedLegalEntity = await createLegalEntity(legalEntity);
|
|
892
893
|
userEvents.addTaskEvent("Success", {
|
|
893
894
|
actionType: "submit",
|
|
894
|
-
|
|
895
|
-
|
|
896
|
-
countryOfRegistration: dataSubmitted.personalDetails?.residencyCountry || null,
|
|
897
|
-
roles: dataSubmitted.personalDetails?.role || null
|
|
895
|
+
countryOfRegistration: dataSubmitted.personalDetails?.residencyCountry,
|
|
896
|
+
roles: dataSubmitted.personalDetails?.role
|
|
898
897
|
});
|
|
899
898
|
} else {
|
|
900
|
-
const patchLegalEntity = { ...drop("type").from(legalEntity), id:
|
|
899
|
+
const patchLegalEntity = { ...drop("type").from(legalEntity), id: existingLeId };
|
|
901
900
|
updatedLegalEntity = await updateLegalEntity(patchLegalEntity);
|
|
902
901
|
userEvents.addTaskEvent("Success", {
|
|
903
902
|
actionType: "submit",
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
countryOfRegistration: dataSubmitted.personalDetails?.residencyCountry || null,
|
|
907
|
-
documentType: idDocumentType || null
|
|
903
|
+
countryOfRegistration: dataSubmitted.personalDetails?.residencyCountry,
|
|
904
|
+
documentType: idDocumentType
|
|
908
905
|
});
|
|
909
906
|
}
|
|
910
907
|
return updatedLegalEntity;
|
|
@@ -962,7 +959,7 @@ function IndividualDropin({
|
|
|
962
959
|
userEvents.addTaskEvent("Success", {
|
|
963
960
|
actionType: "upload",
|
|
964
961
|
documentType: doc.type,
|
|
965
|
-
fileExtention: doc?.attachments?.map((item) => getFileExtention(item.pageName ?? "")).filter((item) => item !== void 0) ??
|
|
962
|
+
fileExtention: doc?.attachments?.map((item) => getFileExtention(item.pageName ?? "")).filter((item) => item !== void 0) ?? void 0
|
|
966
963
|
});
|
|
967
964
|
});
|
|
968
965
|
}
|
|
@@ -1913,7 +1910,6 @@ function IndividualOnfidoDropin({
|
|
|
1913
1910
|
isRoleFieldNeeded,
|
|
1914
1911
|
parentLegalEntity
|
|
1915
1912
|
]);
|
|
1916
|
-
const [newDecisionMaker] = useState();
|
|
1917
1913
|
const [matchingScenario, setMatchingScenario] = useState();
|
|
1918
1914
|
const [validationErrors, setValidationErrors] = useState();
|
|
1919
1915
|
const [loadingStatus, setLoadingStatus] = useState("success");
|
|
@@ -2112,24 +2108,23 @@ function IndividualOnfidoDropin({
|
|
|
2112
2108
|
idDocumentType
|
|
2113
2109
|
}) => {
|
|
2114
2110
|
let updatedLegalEntity;
|
|
2115
|
-
const
|
|
2116
|
-
if (!
|
|
2111
|
+
const existingLeId = legalEntityResponse?.id;
|
|
2112
|
+
if (!existingLeId) {
|
|
2117
2113
|
updatedLegalEntity = await createLegalEntity(legalEntity);
|
|
2118
2114
|
userEvents.addTaskEvent("Success", {
|
|
2119
2115
|
actionType: "submit",
|
|
2120
|
-
|
|
2121
|
-
|
|
2122
|
-
countryOfRegistration: dataSubmitted.additionalPersonalDetails?.country || null,
|
|
2123
|
-
roles: dataSubmitted.basicDetails?.role || null
|
|
2116
|
+
countryOfRegistration: dataSubmitted.additionalPersonalDetails?.country,
|
|
2117
|
+
roles: dataSubmitted.basicDetails?.role
|
|
2124
2118
|
});
|
|
2125
2119
|
} else {
|
|
2126
|
-
updatedLegalEntity = await updateLegalEntity({
|
|
2120
|
+
updatedLegalEntity = await updateLegalEntity({
|
|
2121
|
+
...drop("type").from(legalEntity),
|
|
2122
|
+
id: existingLeId
|
|
2123
|
+
});
|
|
2127
2124
|
userEvents.addTaskEvent("Success", {
|
|
2128
2125
|
actionType: "submit",
|
|
2129
|
-
|
|
2130
|
-
|
|
2131
|
-
countryOfRegistration: dataSubmitted.additionalPersonalDetails?.country || null,
|
|
2132
|
-
documentType: idDocumentType || null
|
|
2126
|
+
countryOfRegistration: dataSubmitted.additionalPersonalDetails?.country,
|
|
2127
|
+
documentType: idDocumentType
|
|
2133
2128
|
});
|
|
2134
2129
|
}
|
|
2135
2130
|
return updatedLegalEntity;
|
|
@@ -2175,7 +2170,7 @@ function IndividualOnfidoDropin({
|
|
|
2175
2170
|
userEvents.addTaskEvent("Success", {
|
|
2176
2171
|
actionType: "upload",
|
|
2177
2172
|
documentType: doc.type,
|
|
2178
|
-
fileExtention: doc?.attachments?.map((item) => getFileExtention(item.pageName ?? "")).filter((item) => item !== void 0) ??
|
|
2173
|
+
fileExtention: doc?.attachments?.map((item) => getFileExtention(item.pageName ?? "")).filter((item) => item !== void 0) ?? void 0
|
|
2179
2174
|
});
|
|
2180
2175
|
});
|
|
2181
2176
|
}
|