@adyen/kyc-components 3.80.0-beta.0 → 3.81.0-beta.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{AcceptTermsOfServiceComponent-DBSkKRHS.js → AcceptTermsOfServiceComponent-DUZ8m-El.js} +46 -45
- package/dist/{AccountSetupRejected-gAGWuJ9N.js → AccountSetupRejected-DSGGI8JF.js} +2 -2
- package/dist/{Avatar-5RObc8Yd.js → Avatar-DY9KPxi_.js} +1 -1
- package/dist/{BusinessDetailsDropin-O92NE-y1.js → BusinessDetailsDropin-CCW1NBK5.js} +36 -63
- package/dist/{BusinessFinancingComponent-DDKomenp.js → BusinessFinancingComponent-Dn4d85NX.js} +3 -3
- package/dist/{BusinessFinancingDropin-Bhg9neRS.js → BusinessFinancingDropin-BpRf2LTA.js} +76 -78
- package/dist/{BusinessFinancingPage-DyItV5SR.js → BusinessFinancingPage-t8vqkZMT.js} +3 -3
- package/dist/{BusinessTypeSelectionPage-DmjbM57I.js → BusinessTypeSelectionPage-Bk3GHlFq.js} +4 -4
- package/dist/{ContractViewer-DBW5C6kA.js → ContractViewer-B2LwC3wV.js} +4 -11
- package/dist/{CreateIndividualComponent-c8yAn2_J.js → CreateIndividualComponent-DcHuBu_q.js} +3 -3
- package/dist/{CreateTransferInstrumentComponent-BF-KFdjU.js → CreateTransferInstrumentComponent-_ZekKCzs.js} +2 -2
- package/dist/{CustomerSupport-rSYElbVr.js → CustomerSupport-BMHMLSZ9.js} +5 -5
- package/dist/{DebugModal-BTr0idCC.js → DebugModal-CxVACxM4.js} +4 -4
- package/dist/{DecisionMakerDetailsPage-DQcWSwTb.js → DecisionMakerDetailsPage-R_PPht3A.js} +3 -3
- package/dist/{DecisionMakers-C2awPhE6.js → DecisionMakers-Bxdj0aIF.js} +29 -39
- package/dist/DetailViewLayout-Z9cuUp4X.js +65 -0
- package/dist/{EmbeddedStatus-COKtxNW-.js → EmbeddedStatus-CDIMc5D0.js} +2 -2
- package/dist/EndStateLayout-ChS903yq.js +71 -0
- package/dist/{FormFlow-CNxGh4Yu.js → FormFlow-gcCKgNQt.js} +2 -2
- package/dist/{IndividualOnfidoDropin-DUzjucM9.js → IndividualOnfidoDropin-JrEsqyDz.js} +478 -260
- package/dist/{Introduction-BEM_wmkj.js → Introduction-DTjWG0SY.js} +3 -3
- package/dist/{LegalRepresentativeDetailsPage-1tw_BPLr.js → LegalRepresentativeDetailsPage-BAVFc1rZ.js} +3 -3
- package/dist/{ManageIndividualComponent-B0y8wd24.js → ManageIndividualComponent-BHsbHn8F.js} +3 -3
- package/dist/{ManageTermsOfServiceComponent-DJVDf-iH.js → ManageTermsOfServiceComponent-Dl1Rs8mi.js} +3 -3
- package/dist/{ManageTransferInstrumentComponent-DF4Q8oEB.js → ManageTransferInstrumentComponent-D1ntoR1k.js} +16 -42
- package/dist/{OnboardingDropinComponent-B0Sj7qf1.js → OnboardingDropinComponent-Dvq5Ocum.js} +49 -37
- package/dist/{Review-C4HOjR6y.js → Review-Mn0Fnm2U.js} +3 -3
- package/dist/{RootBusinessDetailsPage-DeqKfOFX.js → RootBusinessDetailsPage-DoCCJDUa.js} +17 -17
- package/dist/{RootIndividualDetailsPage-CKOquQ0-.js → RootIndividualDetailsPage-C5WnGiHW.js} +3 -3
- package/dist/{SignPCIComponent-Cx8oL8wu.js → SignPCIComponent-BGnCTWk_.js} +87 -85
- package/dist/{SingpassSelection-BJNZw1u-.js → SingpassSelection-BqY3v7Hq.js} +1 -1
- package/dist/{SoleProprietorshipPage-Dtw3XHVJ.js → SoleProprietorshipPage-VL2n0omM.js} +3 -3
- package/dist/{SourceOfFundsPage-gPmK4QX6.js → SourceOfFundsPage-BsHdnsPV.js} +11 -11
- package/dist/{StoreProvider-DhQ4sdLg.js → StoreProvider-Fbl3I9L7.js} +3379 -3105
- package/dist/{TaskItemStatus-Cxcag2AH.js → TaskItemStatus-CC4mw_PB.js} +2 -2
- package/dist/{TaskStatusIndicator-B5fp8LzR.js → TaskStatusIndicator-B7G7gqRt.js} +1 -1
- package/dist/{TaxReportingDropin-CbDYoO31.js → TaxReportingDropin-C8Z2k6kC.js} +8 -8
- package/dist/{TileGroup-BkLtnLiA.js → TileGroup-B7_1rrEe.js} +2 -2
- package/dist/{TrustDetailsPage-DktRQRum.js → TrustDetailsPage-q8pyPH40.js} +5 -5
- package/dist/{TrustMemberCompanyPage-CLTOpWzU.js → TrustMemberCompanyPage-BT4dvwuF.js} +4 -4
- package/dist/{TrustMemberIndividualPage-wPh86-GQ.js → TrustMemberIndividualPage-CwxurDZs.js} +3 -3
- package/dist/{UnincorporatedPartnershipIndividualPage-B-2i68Nd.js → UnincorporatedPartnershipIndividualPage-2Z7Ljh7Y.js} +3 -3
- package/dist/{UnincorporatedPartnershipMemberCompanyPage-DWLczj6F.js → UnincorporatedPartnershipMemberCompanyPage-DD7ihKcb.js} +3 -3
- package/dist/{VerificationErrorAlert-AbvM4lbK.js → VerificationErrorAlert-Cbls8Urj.js} +2 -2
- package/dist/{ViewVerificationStatusComponent-vVZeXYDs.js → ViewVerificationStatusComponent-BZbgVCiJ.js} +3 -3
- package/dist/adyen-business-financing.js +2 -2
- package/dist/adyen-individual.js +2 -2
- package/dist/adyen-kyc-components.js +14 -14
- package/dist/adyen-manage-individual.js +2 -2
- package/dist/adyen-manage-terms-of-service.js +2 -2
- package/dist/adyen-manage-transfer-instruments.js +2 -2
- package/dist/adyen-onboarding.js +2 -2
- package/dist/adyen-terms-of-service.js +2 -2
- package/dist/adyen-transfer-instrument.js +2 -2
- package/dist/adyen-verification-status.js +2 -2
- package/dist/bg-BG-9uVrFuHv.js +23 -0
- package/dist/bg-BG-B0-ZcjR0.js +22 -0
- package/dist/bg-BG-BYkC3yKf.js +58 -0
- package/dist/bg-BG-CMomhopf.js +35 -0
- package/dist/bg-BG-Dlzl9Szn.js +36 -0
- package/dist/bg-BG-NMIts2sa.js +35 -0
- package/dist/bg-BG-hFblesn-.js +15 -0
- package/dist/cs-CZ-B8IPRc47.js +15 -0
- package/dist/cs-CZ-BkyFDlAU.js +36 -0
- package/dist/cs-CZ-Csr_35T-.js +35 -0
- package/dist/cs-CZ-DMzortvO.js +35 -0
- package/dist/cs-CZ-Dk1ePReM.js +22 -0
- package/dist/cs-CZ-Wzc382q6.js +23 -0
- package/dist/cs-CZ-zTkICtXj.js +58 -0
- package/dist/da-DK-B5KNtXL8.js +36 -0
- package/dist/da-DK-BTpZzEgA.js +15 -0
- package/dist/da-DK-CeNMXUfE.js +23 -0
- package/dist/da-DK-D0N1TVVU.js +58 -0
- package/dist/da-DK-DStNe471.js +22 -0
- package/dist/da-DK-Dm8o1giq.js +35 -0
- package/dist/da-DK-q2b_1elr.js +35 -0
- package/dist/de-DE-BA9tcpNQ.js +36 -0
- package/dist/de-DE-CGoBPCPv.js +22 -0
- package/dist/de-DE-D2ByeIZs.js +35 -0
- package/dist/de-DE-DMFaycio.js +35 -0
- package/dist/de-DE-DjOUNvp6.js +15 -0
- package/dist/de-DE-Dtuu-nE7.js +58 -0
- package/dist/de-DE-JI-7mvxy.js +23 -0
- package/dist/el-GR-B69zcWyB.js +22 -0
- package/dist/el-GR-CGeBAkDN.js +35 -0
- package/dist/el-GR-Cu9HwD-f.js +15 -0
- package/dist/el-GR-DGW388LZ.js +35 -0
- package/dist/el-GR-DIhHT2q_.js +36 -0
- package/dist/el-GR-DaO38A1s.js +58 -0
- package/dist/el-GR-DfNOPkLq.js +23 -0
- package/dist/en-US-546hB2Wn.js +60 -0
- package/dist/en-US-BQpgt41j.js +37 -0
- package/dist/en-US-BTYdAWXp.js +15 -0
- package/dist/en-US-DHq7VYFs.js +23 -0
- package/dist/en-US-DX4NHkX-.js +38 -0
- package/dist/en-US-SbE0c1gn.js +36 -0
- package/dist/es-ES-BsQpwaPN.js +58 -0
- package/dist/es-ES-CKMfS8Yy.js +22 -0
- package/dist/es-ES-Cj7q7fWO.js +15 -0
- package/dist/es-ES-DOVPTeyf.js +23 -0
- package/dist/es-ES-RXwbiHjS.js +36 -0
- package/dist/es-ES-WWftn3JX.js +35 -0
- package/dist/es-ES-pXHx3ODy.js +35 -0
- package/dist/et-EE-BJIsPOnh.js +23 -0
- package/dist/et-EE-D5lRJbMZ.js +35 -0
- package/dist/et-EE-DF_GqBgK.js +58 -0
- package/dist/et-EE-Dor3enPS.js +15 -0
- package/dist/et-EE-Dw-aPF7J.js +22 -0
- package/dist/et-EE-QLVnr6Vl.js +35 -0
- package/dist/et-EE-ZssIqWkO.js +36 -0
- package/dist/fi-FI-BJ9RzrL3.js +58 -0
- package/dist/fi-FI-BNcnKrJ9.js +15 -0
- package/dist/fi-FI-D522KHGk.js +23 -0
- package/dist/fi-FI-D9E_KaJi.js +35 -0
- package/dist/fi-FI-DT351N-G.js +35 -0
- package/dist/fi-FI-DmiggQEL.js +36 -0
- package/dist/fi-FI-REYOX46I.js +22 -0
- package/dist/fr-FR-BNXXNUX_.js +35 -0
- package/dist/fr-FR-Bn3D6mmY.js +15 -0
- package/dist/fr-FR-CNR5-s9g.js +58 -0
- package/dist/fr-FR-Cv0k-3Xc.js +35 -0
- package/dist/fr-FR-D9qaP6nx.js +22 -0
- package/dist/fr-FR-DInQKkTd.js +23 -0
- package/dist/fr-FR-N5wYE2BZ.js +36 -0
- package/dist/{getFieldsWithExistingData-BS9W6RQp.js → getFieldsWithExistingData-BjmOzrhP.js} +2 -2
- package/dist/{hasDataChanged-DK74H0sZ.js → hasDataChanged-f49kid1W.js} +2 -2
- package/dist/hr-HR-5iwKtfgh.js +36 -0
- package/dist/hr-HR-B8AZ4eHJ.js +35 -0
- package/dist/hr-HR-CNzbyo9r.js +15 -0
- package/dist/hr-HR-CbxEvbrE.js +22 -0
- package/dist/hr-HR-CjA4MWAU.js +58 -0
- package/dist/hr-HR-CzSrqEFA.js +35 -0
- package/dist/hr-HR-DzS44Gpv.js +23 -0
- package/dist/hu-HU-Aq1LsWah.js +36 -0
- package/dist/hu-HU-BSOiZA7a.js +15 -0
- package/dist/hu-HU-D0C6UfXB.js +22 -0
- package/dist/hu-HU-DRi6Dz9U.js +35 -0
- package/dist/hu-HU-NhwFr6o-.js +58 -0
- package/dist/hu-HU-xCvNM5TU.js +23 -0
- package/dist/hu-HU-zK6nUqWr.js +35 -0
- package/dist/{LandingLayout-DyY0Exht.js → isIdNowModalOpen-C3cyeMaK.js} +11 -2
- package/dist/it-IT-8DEagvb2.js +36 -0
- package/dist/it-IT-BV9K87FK.js +58 -0
- package/dist/it-IT-BeYbInCQ.js +35 -0
- package/dist/it-IT-Biduphjt.js +22 -0
- package/dist/it-IT-C_fNHhjE.js +35 -0
- package/dist/it-IT-CjEYONJg.js +23 -0
- package/dist/it-IT-DvM-9LpM.js +15 -0
- package/dist/ja-JP-B2txEVPx.js +22 -0
- package/dist/ja-JP-BGAJQs1g.js +36 -0
- package/dist/ja-JP-BUz3qN-V.js +23 -0
- package/dist/ja-JP-C1OQ16fo.js +35 -0
- package/dist/ja-JP-DXcP0ojZ.js +58 -0
- package/dist/ja-JP-GXkLvnQ4.js +15 -0
- package/dist/ja-JP-weDU8GLW.js +35 -0
- package/dist/{localizeDateString-C34eXZqY.js → localizeDateString-aA76e6GH.js} +1 -1
- package/dist/lt-LT-B6CJ4ULI.js +23 -0
- package/dist/lt-LT-BUYY0LaT.js +35 -0
- package/dist/lt-LT-C_YMgjp9.js +22 -0
- package/dist/lt-LT-DNjXmQPv.js +15 -0
- package/dist/lt-LT-HZOWQKZT.js +36 -0
- package/dist/lt-LT-_MzAcXJo.js +35 -0
- package/dist/lt-LT-tXTApHm2.js +58 -0
- package/dist/lv-LV-B3sT3_cw.js +22 -0
- package/dist/lv-LV-B9js9VoA.js +35 -0
- package/dist/lv-LV-CRhXAjn6.js +35 -0
- package/dist/lv-LV-ChOoZuhc.js +15 -0
- package/dist/lv-LV-DSaQNC67.js +58 -0
- package/dist/lv-LV-DTtuyfHS.js +23 -0
- package/dist/lv-LV-F-Z4lDCV.js +36 -0
- package/dist/{mapFinancialReportsToFinancialInformation-DoJu-RRw.js → mapFinancialReportsToFinancialInformation-Dx35AZ1B.js} +2 -2
- package/dist/mapScriptLocalization-H2Re3k5X.js +35 -0
- package/dist/nl-NL-BHqiO21q.js +15 -0
- package/dist/nl-NL-C-xUU2N3.js +36 -0
- package/dist/nl-NL-DLedC3mO.js +35 -0
- package/dist/nl-NL-Dbx0ZmI7.js +35 -0
- package/dist/nl-NL-DywVQ9km.js +58 -0
- package/dist/nl-NL-G1wVnmzT.js +22 -0
- package/dist/nl-NL-Zcq0bXd-.js +23 -0
- package/dist/no-NO-47ncaBZY.js +36 -0
- package/dist/no-NO-B8oxqfNI.js +58 -0
- package/dist/no-NO-BTtAuqCb.js +22 -0
- package/dist/no-NO-BxReX6oF.js +23 -0
- package/dist/no-NO-C0sfkp82.js +35 -0
- package/dist/no-NO-CKT9kLAH.js +15 -0
- package/dist/no-NO-CpVal4cV.js +35 -0
- package/dist/pl-PL--qPaNyJD.js +22 -0
- package/dist/pl-PL-1ylK-_FE.js +35 -0
- package/dist/pl-PL-C89s21hn.js +58 -0
- package/dist/pl-PL-CZLzkboH.js +36 -0
- package/dist/pl-PL-D6heiKsH.js +15 -0
- package/dist/pl-PL-DAPGaxWi.js +35 -0
- package/dist/pl-PL-T6uD5--R.js +23 -0
- package/dist/pt-PT-BY9rcwcF.js +35 -0
- package/dist/pt-PT-BkvMsoK4.js +35 -0
- package/dist/pt-PT-BvK00TeI.js +58 -0
- package/dist/pt-PT-CN4ws8N7.js +36 -0
- package/dist/pt-PT-D2elvnDU.js +15 -0
- package/dist/pt-PT-Dk48OVtf.js +22 -0
- package/dist/pt-PT-N0njcfLO.js +23 -0
- package/dist/{resolveEnvironment-rJv_NJF_.js → resolveEnvironment-zIeibPQJ.js} +3 -3
- package/dist/ro-RO-BLuOjrS0.js +22 -0
- package/dist/ro-RO-CpGd9emB.js +58 -0
- package/dist/ro-RO-DJLWmWZ4.js +35 -0
- package/dist/ro-RO-DL9V1CMj.js +15 -0
- package/dist/ro-RO-Dfx0g3bU.js +35 -0
- package/dist/ro-RO-Ic1SzBgx.js +23 -0
- package/dist/ro-RO-RylOvc5g.js +36 -0
- package/dist/{rules-OP83mdq4.js → rules-DMMZWi5Q.js} +2 -2
- package/dist/sk-SK-B7o3L57C.js +35 -0
- package/dist/sk-SK-BSioQTMW.js +15 -0
- package/dist/sk-SK-BfJKbtGy.js +36 -0
- package/dist/sk-SK-C1Ky2nl_.js +22 -0
- package/dist/sk-SK-CiD0FeLN.js +23 -0
- package/dist/sk-SK-DlX5KvBV.js +58 -0
- package/dist/sk-SK-iO863_t2.js +35 -0
- package/dist/sl-SI-BB7iVcFI.js +22 -0
- package/dist/sl-SI-BylvpF-X.js +15 -0
- package/dist/sl-SI-C8CMAkD0.js +35 -0
- package/dist/sl-SI-Cth2Qa5T.js +35 -0
- package/dist/sl-SI-DklUFzaY.js +36 -0
- package/dist/sl-SI-MZoDApq9.js +23 -0
- package/dist/sl-SI-NI2OJAvm.js +58 -0
- package/dist/style.css +737 -489
- package/dist/styles-CLV89_hH.js +737 -489
- package/dist/sv-SE-Bwh0wKFk.js +35 -0
- package/dist/sv-SE-CAZpDX9G.js +58 -0
- package/dist/sv-SE-DCFSf4Oj.js +23 -0
- package/dist/sv-SE-DbI-1JqN.js +22 -0
- package/dist/sv-SE-Dwz1yTrB.js +15 -0
- package/dist/sv-SE-OPOHtqtP.js +35 -0
- package/dist/sv-SE-qduyDIzY.js +36 -0
- package/dist/types/api/idNowProvider/useIdNowProvider.d.ts +9 -5
- package/dist/types/components/Business/forms/BusinessDetails/forms.d.ts +1 -1
- package/dist/types/components/EFP/mapping/businessFinancingKeyMappings.d.ts +29 -32
- package/dist/types/components/EmbeddedDropins/ManageTransferInstrumentComponent/ManageTransferInstrumentOverviewItemModal/ManageTransferInstrumentOverviewItemModal.d.ts +0 -1
- package/dist/types/components/Individual/fields/NameFields/types.d.ts +4 -18
- package/dist/types/components/Individual/forms/IndividualOnfido/AdditionalPersonalDetails/AdditionalPersonalDetails.types.d.ts +1 -1
- package/dist/types/components/Individual/forms/IndividualOnfido/BasicDetails/BasicDetails.types.d.ts +1 -1
- 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/IdVerificationMethod.types.d.ts +2 -0
- package/dist/types/components/Individual/forms/IndividualOnfido/IdVerificationMethod/mapExtractionResultToSchema.d.ts +2 -1
- package/dist/types/components/Individual/forms/IndividualOnfido/IdVerificationMethod/validateExtractionResult.d.ts +12 -0
- package/dist/types/components/Individual/forms/IndividualOnfido/IndividualOnfido.types.d.ts +5 -3
- package/dist/types/components/Individual/helpers/isDecisionMakerTask.d.ts +2 -0
- 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-ChxUZ4e7.js → useMultiForm-BOVByA_E.js} +6 -3
- package/dist/{useOnboardingStatus-1BQlEPEi.js → useOnboardingStatus-BNwuglKy.js} +1 -1
- package/dist/{useTermsOfServiceStatus-BaVCmUdo.js → useTermsOfServiceStatus-lCNo2Bdd.js} +1 -1
- package/dist/{useUpdateLegalEntity-LE_Kt3am.js → useUpdateLegalEntity-CcUHqJyo.js} +2 -2
- package/dist/{utils-DmcbDJEd.js → utils-Jk_zHwaz.js} +4 -4
- package/dist/{validate-B2VmmEPC.js → validate-DUUyXWgS.js} +2 -2
- package/dist/{validate-D66zPhDG.js → validate-gCfuQFAB.js} +2 -2
- package/package.json +4 -4
- package/dist/FormEndState-BmDRa3zJ.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
package/dist/{AcceptTermsOfServiceComponent-DBSkKRHS.js → AcceptTermsOfServiceComponent-DUZ8m-El.js}
RENAMED
|
@@ -2,19 +2,19 @@
|
|
|
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] = "f9161a0c-13f9-40b0-9a52-43364cd1ce26", e._sentryDebugIdIdentifier = "sentry-dbid-f9161a0c-13f9-40b0-9a52-43364cd1ce26");
|
|
6
6
|
} catch (e) {
|
|
7
7
|
}
|
|
8
8
|
}
|
|
9
9
|
;
|
|
10
10
|
import { jsx, jsxs, Fragment } from "preact/jsx-runtime";
|
|
11
11
|
import { useState, useEffect, useCallback } from "preact/hooks";
|
|
12
|
-
import { a as useApiContext,
|
|
13
|
-
import { u as useTermsOfServiceStatus, a as useTermsOfServiceAcceptanceInfos } from "./useTermsOfServiceStatus-
|
|
14
|
-
import {
|
|
15
|
-
import { F as FormEndState } from "./FormEndState-BmDRa3zJ.js";
|
|
12
|
+
import { a as useApiContext, bm as useInvalidateRootLegalEntity, bn as useMutation, t as httpPost, r as useQuery, B as skipToken, x as httpGet, a0 as createLogger, c as useTranslation, a3 as useAnalyticsContext, a9 as useToastContext, aa as useExperimentsContext, br as getLanguageCode, ay as useForm, K as Alert, G as Button, a6 as LoaderWrapper, aD as Field, bs as Select, bt as Checkbox, aS as ActionBar, bu as MaybeModal, bv as ModalContent, bw as ModalFooter, bx as StepProgressIndicator, by as Spacer, O as LegalEntityTypes, aj as getOwnSignatories, C as doesLegalEntityRequiresLegalRepresentative, z as getLegalRepresentative, aq as getLegalEntityNameBasedOnType, aQ as FormNavigation, d as useLegalEntity, R as ROOT_LE, L as Loader, $ as TaskTypes } from "./StoreProvider-Fbl3I9L7.js";
|
|
13
|
+
import { u as useTermsOfServiceStatus, a as useTermsOfServiceAcceptanceInfos } from "./useTermsOfServiceStatus-lCNo2Bdd.js";
|
|
14
|
+
import { E as EndStateLayout } from "./EndStateLayout-ChS903yq.js";
|
|
16
15
|
import { d as downloadFile } from "./file-CiG1D0zy.js";
|
|
17
|
-
import { l as localizeDateString } from "./localizeDateString-
|
|
16
|
+
import { l as localizeDateString } from "./localizeDateString-aA76e6GH.js";
|
|
17
|
+
import { C as ContractViewer } from "./ContractViewer-B2LwC3wV.js";
|
|
18
18
|
const acceptTermsOfService = async (legalEntityId, baseUrl, termsOfServiceDocumentId, data) => {
|
|
19
19
|
return httpPost(
|
|
20
20
|
{
|
|
@@ -175,8 +175,7 @@ function ServiceAgreementDropin({
|
|
|
175
175
|
asModal = false,
|
|
176
176
|
handleCloseClick
|
|
177
177
|
}) {
|
|
178
|
-
const { i18n } =
|
|
179
|
-
const { i18n: i18next } = useTranslation();
|
|
178
|
+
const { t, i18n } = useTranslation(["contract", "common"]);
|
|
180
179
|
const userEvents = useAnalyticsContext();
|
|
181
180
|
const { showToast } = useToastContext();
|
|
182
181
|
const { isExperimentEnabled } = useExperimentsContext();
|
|
@@ -204,10 +203,6 @@ function ServiceAgreementDropin({
|
|
|
204
203
|
const canSign = serviceAgreementTypes?.includes(activeForm?.serviceAgreementType) && !activeForm?.acceptanceId;
|
|
205
204
|
const isLastStep = activeFormIndex === forms.length - 1;
|
|
206
205
|
const showSignedAlert = !!activeForm?.acceptanceId;
|
|
207
|
-
const translationKeys = {
|
|
208
|
-
home: "goToOverview",
|
|
209
|
-
next: canSign ? "sign" : "continue"
|
|
210
|
-
};
|
|
211
206
|
const { refetch: downloadAcceptedTermsAsPdf } = useAcceptedTermsOfService(
|
|
212
207
|
activeForm?.acceptanceId,
|
|
213
208
|
"PDF",
|
|
@@ -217,7 +212,7 @@ function ServiceAgreementDropin({
|
|
|
217
212
|
);
|
|
218
213
|
const handleServiceAgreementIsNotAvailableInThatLanguage = useCallback(() => {
|
|
219
214
|
showToast({
|
|
220
|
-
label:
|
|
215
|
+
label: t(($) => $["failedToGetServiceAgreementInSelectedLanguageFallbackToEn"]),
|
|
221
216
|
variant: "error"
|
|
222
217
|
});
|
|
223
218
|
}, [i18n, showToast]);
|
|
@@ -225,7 +220,7 @@ function ServiceAgreementDropin({
|
|
|
225
220
|
handleServiceAgreementIsNotAvailableInThatLanguage,
|
|
226
221
|
acceptanceId: activeForm?.acceptanceId,
|
|
227
222
|
serviceAgreementType: activeForm?.serviceAgreementType,
|
|
228
|
-
language: getLanguageCode(
|
|
223
|
+
language: getLanguageCode(i18n.language)
|
|
229
224
|
});
|
|
230
225
|
const { handleChangeFor, triggerValidation, data, valid, isValid, errors } = useForm({
|
|
231
226
|
schema: ["signer", "acceptServiceAgreement"],
|
|
@@ -262,7 +257,7 @@ function ServiceAgreementDropin({
|
|
|
262
257
|
await handleSign(legalEntityResponse.id, serviceAgreement.id, { acceptedBy: data.signer });
|
|
263
258
|
setLoadingStatus("success");
|
|
264
259
|
showToast({
|
|
265
|
-
label:
|
|
260
|
+
label: t(($) => $["serviceAgreementSignedSuccessfully"]),
|
|
266
261
|
variant: "success"
|
|
267
262
|
});
|
|
268
263
|
userEvents.addTaskEvent("Success", baseTracking);
|
|
@@ -270,7 +265,7 @@ function ServiceAgreementDropin({
|
|
|
270
265
|
data.signer = void 0;
|
|
271
266
|
} catch (e) {
|
|
272
267
|
setLoadingStatus("success");
|
|
273
|
-
showToast({ label:
|
|
268
|
+
showToast({ label: t(($) => $["signingFailed"]), variant: "error" });
|
|
274
269
|
userEvents.addTaskEvent("Encountered error", {
|
|
275
270
|
...baseTracking,
|
|
276
271
|
returnType: e?.errorCode || "backend",
|
|
@@ -288,7 +283,7 @@ function ServiceAgreementDropin({
|
|
|
288
283
|
const goHome = () => {
|
|
289
284
|
userEvents.addPageEvent("Clicked button", {
|
|
290
285
|
actionType: "back",
|
|
291
|
-
label:
|
|
286
|
+
label: "goToOverview"
|
|
292
287
|
});
|
|
293
288
|
handleHomeClick();
|
|
294
289
|
};
|
|
@@ -319,17 +314,20 @@ function ServiceAgreementDropin({
|
|
|
319
314
|
const onDownloadAcceptedTermsOfServiceDocument = async () => {
|
|
320
315
|
const { isError, isSuccess, data: data2 } = await downloadAcceptedTermsAsPdf();
|
|
321
316
|
if (isSuccess && data2?.document) {
|
|
322
|
-
await downloadFile(
|
|
317
|
+
await downloadFile(
|
|
318
|
+
data2.document,
|
|
319
|
+
`${t(($) => $[activeForm.formName], { ns: "common" })}.pdf`
|
|
320
|
+
);
|
|
323
321
|
}
|
|
324
322
|
if (isError) {
|
|
325
323
|
showToast({
|
|
326
|
-
label:
|
|
324
|
+
label: t(($) => $["failedToDownloadAcceptedServiceAgreementDocument"]),
|
|
327
325
|
variant: "error"
|
|
328
326
|
});
|
|
329
327
|
}
|
|
330
328
|
};
|
|
331
329
|
const onDownloadUnacceptedTermsOfServiceDocument = async () => {
|
|
332
|
-
const languageCode = getLanguageCode(
|
|
330
|
+
const languageCode = getLanguageCode(i18n.language);
|
|
333
331
|
const requestAndDownload = async (languageCode2) => {
|
|
334
332
|
const response = await getTermsOfService(rootLegalEntityId.value, baseUrl.value, {
|
|
335
333
|
type: activeForm.serviceAgreementType,
|
|
@@ -339,11 +337,14 @@ function ServiceAgreementDropin({
|
|
|
339
337
|
if (!response?.document) {
|
|
340
338
|
throw new Error(`No terms Of service document found in response`);
|
|
341
339
|
}
|
|
342
|
-
await downloadFile(
|
|
340
|
+
await downloadFile(
|
|
341
|
+
response.document,
|
|
342
|
+
`${t(($) => $[activeForm.formName], { ns: "common" })}.pdf`
|
|
343
|
+
);
|
|
343
344
|
};
|
|
344
345
|
try {
|
|
345
346
|
const availableLanguages = ["fr", "en"];
|
|
346
|
-
if (availableLanguages.includes(
|
|
347
|
+
if (availableLanguages.includes(i18n.language)) {
|
|
347
348
|
await requestAndDownload(languageCode);
|
|
348
349
|
}
|
|
349
350
|
await requestAndDownload("en");
|
|
@@ -353,7 +354,7 @@ function ServiceAgreementDropin({
|
|
|
353
354
|
return;
|
|
354
355
|
}
|
|
355
356
|
showToast({
|
|
356
|
-
label:
|
|
357
|
+
label: t(($) => $["failedToDownloadServiceAgreementDocument"]),
|
|
357
358
|
variant: "error"
|
|
358
359
|
});
|
|
359
360
|
}
|
|
@@ -364,8 +365,8 @@ function ServiceAgreementDropin({
|
|
|
364
365
|
{
|
|
365
366
|
variant: signers.length ? "info" : "warning",
|
|
366
367
|
className: "adyen-kyc-u-margin-top-16",
|
|
367
|
-
title:
|
|
368
|
-
children: /* @__PURE__ */ jsx(Button, { onClick: handleAddSigner, variant: "link", children:
|
|
368
|
+
title: t(($) => $[signers.length ? "isYourNameMissingFromSigners" : "thereAreNoSigners"]),
|
|
369
|
+
children: /* @__PURE__ */ jsx(Button, { onClick: handleAddSigner, variant: "link", children: t(($) => $["addYourselfAsSigner"]) })
|
|
369
370
|
}
|
|
370
371
|
);
|
|
371
372
|
const getSignedName = (acceptanceId) => {
|
|
@@ -381,11 +382,9 @@ function ServiceAgreementDropin({
|
|
|
381
382
|
{
|
|
382
383
|
variant: "success",
|
|
383
384
|
className: styles.adyenKycSignedAlert,
|
|
384
|
-
title:
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
signer: getSignedName(activeForm.acceptanceId)
|
|
388
|
-
}
|
|
385
|
+
title: t(($) => $["signedByOn"], {
|
|
386
|
+
date: localizeDateString(activeForm.createdAt, i18n.language) ?? "",
|
|
387
|
+
signer: getSignedName(activeForm.acceptanceId)
|
|
389
388
|
})
|
|
390
389
|
}
|
|
391
390
|
);
|
|
@@ -440,11 +439,11 @@ function ServiceAgreementDropin({
|
|
|
440
439
|
variant: "secondary",
|
|
441
440
|
onClick: activeForm?.acceptanceId ? onDownloadAcceptedTermsOfServiceDocument : onDownloadUnacceptedTermsOfServiceDocument,
|
|
442
441
|
icon: "download",
|
|
443
|
-
children:
|
|
442
|
+
children: t(($) => $["downloadAsPdf"])
|
|
444
443
|
}
|
|
445
444
|
) })
|
|
446
445
|
] }),
|
|
447
|
-
!forms.length && /* @__PURE__ */ jsx(Alert, { variant: "info", title:
|
|
446
|
+
!forms.length && /* @__PURE__ */ jsx(Alert, { variant: "info", title: t(($) => $["nothingNeedsToBeSigned"]) })
|
|
448
447
|
]
|
|
449
448
|
}
|
|
450
449
|
),
|
|
@@ -453,7 +452,7 @@ function ServiceAgreementDropin({
|
|
|
453
452
|
Field,
|
|
454
453
|
{
|
|
455
454
|
name: "signer",
|
|
456
|
-
label:
|
|
455
|
+
label: t(($) => $["signer"]),
|
|
457
456
|
className: "adyen-kyc-u-margin-top-32 adyen-kyc-u-width-half",
|
|
458
457
|
errorMessage: errors.signer?.errorMessage,
|
|
459
458
|
isValid: valid.signer,
|
|
@@ -464,7 +463,7 @@ function ServiceAgreementDropin({
|
|
|
464
463
|
...childProps,
|
|
465
464
|
onChange: handleChangeFor("signer", "blur"),
|
|
466
465
|
name: "signer",
|
|
467
|
-
placeholder:
|
|
466
|
+
placeholder: t(($) => $["selectSigner"]),
|
|
468
467
|
selected: data.signer,
|
|
469
468
|
items: signers
|
|
470
469
|
}
|
|
@@ -483,7 +482,7 @@ function ServiceAgreementDropin({
|
|
|
483
482
|
Checkbox,
|
|
484
483
|
{
|
|
485
484
|
...childProps,
|
|
486
|
-
label:
|
|
485
|
+
label: t(($) => $["iHaveReadAndIAcceptTheseTerms"]),
|
|
487
486
|
checked: data.acceptServiceAgreement ?? false,
|
|
488
487
|
name: "acceptServiceAgreement",
|
|
489
488
|
onChange: handleChangeFor("acceptServiceAgreement")
|
|
@@ -496,13 +495,13 @@ function ServiceAgreementDropin({
|
|
|
496
495
|
ActionBar,
|
|
497
496
|
{
|
|
498
497
|
onHome: goHome,
|
|
499
|
-
homeButtonLabel:
|
|
498
|
+
homeButtonLabel: t(($) => $["goToOverview"], { ns: "common" }),
|
|
500
499
|
onNext: canSign ? handleSignClick : () => gotoForm(activeFormIndex + 1),
|
|
501
|
-
nextButtonLabel:
|
|
500
|
+
nextButtonLabel: t(($) => $[canSign ? "sign" : "continue"], { ns: "common" }),
|
|
502
501
|
nextButtonDisabled: forms.length === 0 || !canSign && isLastStep,
|
|
503
502
|
onBack: () => gotoForm(activeFormIndex - 1),
|
|
504
503
|
hideBackButton: activeFormIndex === 0,
|
|
505
|
-
backButtonLabel:
|
|
504
|
+
backButtonLabel: t(($) => $["previous"], { ns: "common" })
|
|
506
505
|
}
|
|
507
506
|
)
|
|
508
507
|
]
|
|
@@ -519,11 +518,13 @@ function ServiceAgreementDropin({
|
|
|
519
518
|
setHasFinished(true);
|
|
520
519
|
}
|
|
521
520
|
};
|
|
522
|
-
const endScreen = hasFinished && /* @__PURE__ */
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
521
|
+
const endScreen = hasFinished && /* @__PURE__ */ jsx(
|
|
522
|
+
EndStateLayout,
|
|
523
|
+
{
|
|
524
|
+
title: t(($) => $["serviceAgreementSignedAndDated"]),
|
|
525
|
+
action: /* @__PURE__ */ jsx(Button, { onClick: () => handleCloseClick, fullWidth: true, children: t(($) => $["finish"], { ns: "common" }) })
|
|
526
|
+
}
|
|
527
|
+
);
|
|
527
528
|
return /* @__PURE__ */ jsx(MaybeModal, { inline: !asModal, onClose: handleCloseClick, children: /* @__PURE__ */ jsxs(ModalContent, { children: [
|
|
528
529
|
/* @__PURE__ */ jsxs("article", { className: "adyen-kyc-service-agreement-content", children: [
|
|
529
530
|
!asEmbedded && sidebar,
|
|
@@ -546,10 +547,10 @@ function ServiceAgreementDropin({
|
|
|
546
547
|
icon: "chevron-left",
|
|
547
548
|
onClick: () => gotoForm(activeFormIndex - 1),
|
|
548
549
|
variant: "secondary",
|
|
549
|
-
children:
|
|
550
|
+
children: t(($) => $["back"], { ns: "common" })
|
|
550
551
|
}
|
|
551
552
|
),
|
|
552
|
-
/* @__PURE__ */ jsx(Button, { variant: canSign ? "primary" : "secondary", onClick: handleClick, children:
|
|
553
|
+
/* @__PURE__ */ jsx(Button, { variant: canSign ? "primary" : "secondary", onClick: handleClick, children: canSign ? t(($) => $["signAndContinue"]) : t(($) => $["continue"], { ns: "common" }) })
|
|
553
554
|
] })
|
|
554
555
|
] }) });
|
|
555
556
|
}
|
|
@@ -8,8 +8,8 @@
|
|
|
8
8
|
}
|
|
9
9
|
;
|
|
10
10
|
import { jsxs, jsx } from "preact/jsx-runtime";
|
|
11
|
-
import { c as useTranslation, A as AlertIcon, F as FormHeader } from "./StoreProvider-
|
|
12
|
-
import { D as DropinLayout } from "./OnboardingDropinComponent-
|
|
11
|
+
import { c as useTranslation, A as AlertIcon, F as FormHeader } from "./StoreProvider-Fbl3I9L7.js";
|
|
12
|
+
import { D as DropinLayout } from "./OnboardingDropinComponent-Dvq5Ocum.js";
|
|
13
13
|
function AccountSetupRejected() {
|
|
14
14
|
const { t } = useTranslation();
|
|
15
15
|
const content = /* @__PURE__ */ jsxs("div", { children: [
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
;
|
|
10
10
|
import { jsx } from "preact/jsx-runtime";
|
|
11
11
|
import cx from "classnames";
|
|
12
|
-
import { a7 as Icon } from "./StoreProvider-
|
|
12
|
+
import { a7 as Icon } from "./StoreProvider-Fbl3I9L7.js";
|
|
13
13
|
const avatar = "adyen-kyc-avatar";
|
|
14
14
|
const avatarLabel = "adyen-kyc-avatar-label";
|
|
15
15
|
const avatarPrimary = "adyen-kyc-avatar-primary";
|
|
@@ -2,20 +2,21 @@
|
|
|
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] = "fbf2f2fc-e22c-45ee-a4cc-38b980c11b99", e._sentryDebugIdIdentifier = "sentry-dbid-fbf2f2fc-e22c-45ee-a4cc-38b980c11b99");
|
|
6
6
|
} catch (e) {
|
|
7
7
|
}
|
|
8
8
|
}
|
|
9
9
|
;
|
|
10
10
|
import { jsx, jsxs, Fragment } from "preact/jsx-runtime";
|
|
11
|
-
import { u as useI18nContext,
|
|
11
|
+
import { u as useI18nContext, dy as MemoizedDocumentUpload, G as Button, be as Modal, bv as ModalContent, N as Typography, as as CountryCodes, Y as CompanyTypesValues, f0 as useGlobalData, eS as getForms, $ as TaskTypes, f1 as BasicInformation, ds as getFormProps, f2 as CompanyStructure, f3 as AdditionalInformation, eM as MemoizedConstitutionalDocument, O as LegalEntityTypes, eL as FinancialInformation, ch as getDocument, ci as mapExistingFile, cj as getPageName, bB as formatObject, bk as entriesOf, ba as businessDetailsComponentsKeyMapping, f4 as solePropBusinessDetailsKeyMapping, f5 as getDefaultRegistrationNumberType, f6 as getDefaultVatNumberType, b3 as objectsDeepEqual, d_ as operationalAddressIsSameIds, eO as COUNTRIES_USING_COMPANY_SEARCH, f7 as FIELDS_NEEDED_FOR_COMPANY_SEARCH, dj as keysOf, i as isUndefinedOrNull, dL as isDateOlderThanAYear, aN as summaryItem, f8 as solePropBusinessDetailsApiKeyMapping, e$ as businessDetailsApiKeyMapping, f9 as isRegistrationNumberAbsentStateV4Scenario, co as isEmpty, fa as COUNTRIES_THAT_USE_TAX_ID_INSTEAD_OF_VAT, cm as createDocumentRequest, bc as datasetUtilities, cI as mapAddressLabels, eK as companyTypeMetadata, a0 as createLogger, cH as filterOutUnwantedAssociationsIfRootLE, bV as isValidationError, bW as processValidationErrors, bX as isMaintenanceModeError, fb as getProp, at as isEmpty$1, fc as documentFormsIds, av as resolveFieldMetadata, e8 as registrationNumberDefaultFieldMetadata, fd as inferCompanyRegistrationNumberType, fe as getCompanyRegistrationNumberOptions, e9 as registrationNumberDefaultFieldConfig, cc as taxInformationDefaultFieldMetadata, ff as countryToTaxInfoTypeMap, cd as taxInformationDefaultFieldConfig, fg as getKeyForField, cq as drop, ao as getOwnEntityAssociations, cR as doArraysMatch, cN as getFileExtention, X as useAccountHolder, a9 as useToastContext, a3 as useAnalyticsContext, aa as useExperimentsContext, v as useSettingsContext, a as useApiContext, dV as verifiedBusiness, bp as useQueryClient, fh as useStateContext, w as SettingNames, fi as setIsBankAccountRequestedForOrganization, bQ as getAssociatedLeAnalyticsPayload, bd as getCapabilityProblems, cr as documentApiUtils, cF as composePerScenarioFormConfigurations, cz as useScenarioConfiguration, eW as rules, cA as getPropsFromConfigurations, eX as useCompanySearch, fj as useCompanySelection, eY as useVerifyTin, bR as getRequiredForms, bS as addValidityToForms, fk as useClearCompanyData, bT as useFormComposer, fl as setVerifiedBusiness, fm as FormWrapper, bg as Confirm, fn as solePropBusinessDetailsDocumentMapping, e_ as businessDetailsDocumentMapping } from "./StoreProvider-Fbl3I9L7.js";
|
|
12
12
|
import { useState, useEffect, useRef, useMemo, useCallback } from "preact/hooks";
|
|
13
|
-
import { u as useCreateLegalEntity, a as useUpdateLegalEntity } from "./useUpdateLegalEntity-
|
|
14
|
-
import { h as hasDataChanged } from "./hasDataChanged-
|
|
15
|
-
import { o as organizationTypesToSkipCompanyStructureForm } from "./utils-
|
|
16
|
-
import { g as getFieldsWithExistingData } from "./getFieldsWithExistingData-
|
|
13
|
+
import { u as useCreateLegalEntity, a as useUpdateLegalEntity } from "./useUpdateLegalEntity-CcUHqJyo.js";
|
|
14
|
+
import { h as hasDataChanged } from "./hasDataChanged-f49kid1W.js";
|
|
15
|
+
import { o as organizationTypesToSkipCompanyStructureForm } from "./utils-Jk_zHwaz.js";
|
|
16
|
+
import { g as getFieldsWithExistingData } from "./getFieldsWithExistingData-BjmOzrhP.js";
|
|
17
17
|
import cx from "classnames";
|
|
18
|
-
import { m as mapFinancialReportsToFinancialInformation, a as mapFinancialInformationToFinancialReport } from "./mapFinancialReportsToFinancialInformation-
|
|
18
|
+
import { m as mapFinancialReportsToFinancialInformation, a as mapFinancialInformationToFinancialReport } from "./mapFinancialReportsToFinancialInformation-Dx35AZ1B.js";
|
|
19
|
+
import { a as mapApiScriptLocalizationToSchemaFields, m as mapSchemaFieldsToApiScriptLocalization } from "./mapScriptLocalization-H2Re3k5X.js";
|
|
19
20
|
import { f as formatCurrency } from "./formatCurrency-CMOSdJMB.js";
|
|
20
21
|
const stripWhitespace = (str) => str.replace(/\s/g, "");
|
|
21
22
|
const toNormalizedString = (s) => stripWhitespace(s.toLowerCase());
|
|
@@ -692,21 +693,22 @@ const mapAdditionalInformation = (data, legalEntity) => {
|
|
|
692
693
|
return { ...result, ...dbaNameFields, ...isUen };
|
|
693
694
|
};
|
|
694
695
|
const mapLocalization = (data) => {
|
|
695
|
-
const
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
696
|
+
const localization = data.organization?.localization;
|
|
697
|
+
if (!localization) return {};
|
|
698
|
+
let result = {};
|
|
699
|
+
for (const { script, fields } of localization) {
|
|
700
|
+
const schemaFieldsFromLocalization = mapApiScriptLocalizationToSchemaFields({
|
|
701
|
+
script,
|
|
702
|
+
fields: {
|
|
703
|
+
// mismatch between API `legalName` and schema `legalCompanyName`
|
|
704
|
+
legalCompanyName: fields.legalName
|
|
705
|
+
}
|
|
706
|
+
});
|
|
707
|
+
result = {
|
|
708
|
+
...result,
|
|
709
|
+
...schemaFieldsFromLocalization
|
|
710
|
+
};
|
|
702
711
|
}
|
|
703
|
-
const result = {};
|
|
704
|
-
mappings.forEach((mapping) => {
|
|
705
|
-
const value = localizedScriptsAndFields.find(
|
|
706
|
-
(localization) => localization.script === mapping.script
|
|
707
|
-
)?.fields?.[mapping.legalEntityField];
|
|
708
|
-
result[mapping.formField] = value;
|
|
709
|
-
});
|
|
710
712
|
return result;
|
|
711
713
|
};
|
|
712
714
|
const mapLegalEntityToBusinessDetailsSchema = (legalEntity, parentEntity, isExperimentEnabled) => {
|
|
@@ -758,13 +760,15 @@ const mapLegalEntityToBusinessDetailsSchema = (legalEntity, parentEntity, isExpe
|
|
|
758
760
|
companyFinancialInformation: {}
|
|
759
761
|
};
|
|
760
762
|
const businessDetailsSchema = legalEntity.type === "organization" ? orgSchema : buildSolePropSchema();
|
|
761
|
-
const localization = mapLocalization(legalEntity);
|
|
762
763
|
return entriesOf(businessDetailsSchema).reduce((componentData, [key]) => {
|
|
763
764
|
switch (key) {
|
|
764
765
|
case "basicInformation": {
|
|
765
766
|
return {
|
|
766
767
|
...componentData,
|
|
767
|
-
[key]: {
|
|
768
|
+
[key]: {
|
|
769
|
+
...mapBasicInformation(businessDetailsSchema[key]),
|
|
770
|
+
...mapLocalization(legalEntity)
|
|
771
|
+
}
|
|
768
772
|
};
|
|
769
773
|
}
|
|
770
774
|
case "businessSelection": {
|
|
@@ -1034,7 +1038,14 @@ const mapBusinessDetailsSchemaToLegalEntity = (data, accountHolder, isExperiment
|
|
|
1034
1038
|
const registrationNumber = COUNTRIES_USING_COMPANY_SEARCH.includes(
|
|
1035
1039
|
data.basicInformation?.country
|
|
1036
1040
|
) ? data.basicInformation?.registrationNumber : data.additionalInformation?.registrationNumber;
|
|
1037
|
-
const localization =
|
|
1041
|
+
const localization = [
|
|
1042
|
+
mapSchemaFieldsToApiScriptLocalization(data.basicInformation ?? {}, "jaHani"),
|
|
1043
|
+
mapSchemaFieldsToApiScriptLocalization(data.basicInformation ?? {}, "jaKana")
|
|
1044
|
+
].filter(({ fields }) => !isEmpty(fields)).map(({ script, fields }) => ({
|
|
1045
|
+
script,
|
|
1046
|
+
// mismatch between API `legalName` and schema `legalCompanyName`
|
|
1047
|
+
fields: { legalName: fields.legalCompanyName }
|
|
1048
|
+
}));
|
|
1038
1049
|
const doingBusinessAs = data.additionalInformation?.doingBusinessAs ?? "";
|
|
1039
1050
|
const entityObject = isEmpty(data.companyStructure) ? requestObj.soleProprietorship : requestObj.organization;
|
|
1040
1051
|
if (entityObject) {
|
|
@@ -1050,7 +1061,7 @@ const mapBusinessDetailsSchemaToLegalEntity = (data, accountHolder, isExperiment
|
|
|
1050
1061
|
requestObj.organization.registrationNumberAbsent = false;
|
|
1051
1062
|
}
|
|
1052
1063
|
}
|
|
1053
|
-
if (localization) {
|
|
1064
|
+
if (requestObj.organization && entityObject && localization.length > 0) {
|
|
1054
1065
|
entityObject.localization = localization;
|
|
1055
1066
|
}
|
|
1056
1067
|
if (data.additionalInformation?.exemptedFromRegistrationNumber && canSaveRegNumberAbsentState && requestObj.organization) {
|
|
@@ -1091,44 +1102,6 @@ const mapBusinessDetailsSchemaToLegalEntity = (data, accountHolder, isExperiment
|
|
|
1091
1102
|
}
|
|
1092
1103
|
return requestObj;
|
|
1093
1104
|
};
|
|
1094
|
-
const processLocalizationFields = (data) => {
|
|
1095
|
-
if (!data) {
|
|
1096
|
-
return;
|
|
1097
|
-
}
|
|
1098
|
-
const LOCALIZATION_FIELDS = {
|
|
1099
|
-
jaHaniLegalCompanyName: { script: "ja-Hani", fieldName: "legalName" },
|
|
1100
|
-
jaKanaLegalCompanyName: { script: "ja-Kana", fieldName: "legalName" }
|
|
1101
|
-
};
|
|
1102
|
-
const localization = {};
|
|
1103
|
-
Object.keys(LOCALIZATION_FIELDS).forEach((field) => {
|
|
1104
|
-
const basicInformationFieldSchemaField = field;
|
|
1105
|
-
if (data[basicInformationFieldSchemaField]) {
|
|
1106
|
-
const script = LOCALIZATION_FIELDS[basicInformationFieldSchemaField]?.script;
|
|
1107
|
-
const fieldName = LOCALIZATION_FIELDS[basicInformationFieldSchemaField]?.fieldName;
|
|
1108
|
-
if (script && localization[script]) {
|
|
1109
|
-
localization[script] = {
|
|
1110
|
-
fields: {
|
|
1111
|
-
...localization[script].fields,
|
|
1112
|
-
[fieldName]: data[basicInformationFieldSchemaField]
|
|
1113
|
-
}
|
|
1114
|
-
};
|
|
1115
|
-
} else if (script && !localization[script]) {
|
|
1116
|
-
localization[script] = {
|
|
1117
|
-
fields: {
|
|
1118
|
-
[fieldName]: data[basicInformationFieldSchemaField]
|
|
1119
|
-
}
|
|
1120
|
-
};
|
|
1121
|
-
}
|
|
1122
|
-
}
|
|
1123
|
-
});
|
|
1124
|
-
if (Object.keys(localization).length === 0) {
|
|
1125
|
-
return;
|
|
1126
|
-
}
|
|
1127
|
-
return Object.keys(localization).map((script) => ({
|
|
1128
|
-
script,
|
|
1129
|
-
fields: { ...localization[script].fields }
|
|
1130
|
-
}));
|
|
1131
|
-
};
|
|
1132
1105
|
const MANDATORY_FIELDS_BUSINESS_DETAILS = [
|
|
1133
1106
|
"basicInformation.legalCompanyName",
|
|
1134
1107
|
"basicInformation.country"
|
package/dist/{BusinessFinancingComponent-DDKomenp.js → BusinessFinancingComponent-Dn4d85NX.js}
RENAMED
|
@@ -2,15 +2,15 @@
|
|
|
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] = "e0ca6f85-dbdc-4235-9aa2-3d243dfd6295", e._sentryDebugIdIdentifier = "sentry-dbid-e0ca6f85-dbdc-4235-9aa2-3d243dfd6295");
|
|
6
6
|
} catch (e) {
|
|
7
7
|
}
|
|
8
8
|
}
|
|
9
9
|
;
|
|
10
10
|
import { jsx } from "preact/jsx-runtime";
|
|
11
11
|
import { useMemo } from "preact/hooks";
|
|
12
|
-
import { d as useLegalEntity, g as getLegalEntityCountry, L as Loader } from "./StoreProvider-
|
|
13
|
-
import { B as BusinessFinancingDropin } from "./BusinessFinancingDropin-
|
|
12
|
+
import { d as useLegalEntity, g as getLegalEntityCountry, L as Loader } from "./StoreProvider-Fbl3I9L7.js";
|
|
13
|
+
import { B as BusinessFinancingDropin } from "./BusinessFinancingDropin-BpRf2LTA.js";
|
|
14
14
|
function BusinessFinancingComponent({
|
|
15
15
|
legalEntityId,
|
|
16
16
|
onSubmitSuccess
|