@adyen/kyc-components 3.84.3 → 3.85.0-beta.2
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-CBGVGhCW.js → AcceptTermsOfServiceComponent-CJR2_QBv.js} +15 -13
- package/dist/Accordion-CiEmIhNX.js +88 -0
- package/dist/{AccountSetupRejected-iWgw_f_y.js → AccountSetupRejected-BjJaN_L0.js} +4 -4
- package/dist/{Address-t4VOfLT-.js → Address-DvpndZyX.js} +10 -10
- package/dist/{Alert-BeizfGIR.js → Alert-ZQaJKZwM.js} +3 -75
- package/dist/{Avatar-DuU-qQK8.js → Avatar-Bg9ZnJVR.js} +1 -1
- package/dist/{BusinessDetailsDropin-DvcYg_X0.js → BusinessDetailsMultiformDropin-FeI19Yeu.js} +2124 -250
- package/dist/{BusinessFinancingComponent-CtKIHS5N.js → BusinessFinancingComponent-P6tUs_cF.js} +5 -5
- package/dist/{BusinessFinancingDropin-lPPamXGa.js → BusinessFinancingDropin-5PQROpGM.js} +105 -62
- package/dist/{BusinessFinancingPage-Di-Nv2Ml.js → BusinessFinancingPage-Z7KdR2Wb.js} +4 -4
- package/dist/{BusinessTypeSelectionPage-BXdmcFx7.js → BusinessTypeSelectionPage-CEiJxKFT.js} +7 -7
- package/dist/{Card-B1eYN1iZ.js → Card-DeKeyEgr.js} +4 -4
- package/dist/{CountryField-DePvueIq.js → CountryField-DpZS-UHE.js} +82 -291
- package/dist/{CreateIndividualComponent-BF8U9HmX.js → CreateIndividualComponent-uV41ZKqu.js} +6 -6
- package/dist/{CreateTransferInstrumentComponent-Rd6n91ch.js → CreateTransferInstrumentComponent--fLgxkGc.js} +6 -6
- package/dist/{Currency-CCNB-Owq.js → Currency-dvDSJvr6.js} +6 -6
- package/dist/{CustomerSupport-dzWyAxLD.js → CustomerSupport-BsSMzVHV.js} +9 -8
- package/dist/{DebugModal-Db4z3HFJ.js → DebugModal-CDJit0my.js} +128 -42
- package/dist/{DecisionMakerDetailsPage-CQ5uaVPM.js → DecisionMakerDetailsPage-WUOxEF2W.js} +7 -7
- package/dist/{DecisionMakers-BjZNaC3U.js → DecisionMakers--fCz0mrC.js} +149 -115
- package/dist/Divider-CQmSV-3K.js +239 -0
- package/dist/{Dropzone-DS3DzY-A.js → Dropzone-CjTl0Cl4.js} +4 -4
- package/dist/{EmbeddedStatus-COuKpXSJ.js → EmbeddedStatus-BfyrjDBn.js} +3 -3
- package/dist/{EndStateLayout-DHbUjBQL.js → EndStateLayout-DtnC_jmT.js} +1 -1
- package/dist/{FormNavigation-C8985odz.js → FormNavigation-BVFCNan3.js} +3 -3
- package/dist/Image-3OQ_b33w.js +22 -0
- package/dist/{IndividualOnfidoDropin-BnPU46GN.js → IndividualOnfidoDropin-DxGZH7qE.js} +64 -41
- package/dist/{InputDate-BqYvvnqX.js → InputDate-Lj3IQq5B.js} +2 -2
- package/dist/{InputText-rkMNHFYM.js → InputText-DqycMV0z.js} +3 -3
- package/dist/{Introduction-BsZibeHx.js → Introduction-B_eEyK4D.js} +4 -4
- package/dist/{JpAddress-7_Wvn6w-.js → JpAddress-DbmfH7ao.js} +7 -7
- package/dist/LandingLayout-DAR4uCsx.js +60 -0
- package/dist/{LegalRepresentativeDetailsPage-BLoNELP2.js → LegalRepresentativeDetailsPage-JtrwqFp_.js} +5 -5
- package/dist/Link-BePoWmqK.js +35 -0
- package/dist/ListItem-AIDLbwJg.js +69 -0
- package/dist/{ManageIndividualComponent-DuMx-hok.js → ManageIndividualComponent-CdI1XXUO.js} +5 -5
- package/dist/{ManageTermsOfServiceComponent-BPJJxecg.js → ManageTermsOfServiceComponent-C9C7j-Ig.js} +5 -5
- package/dist/{ManageTransferInstrumentComponent-D13HhKpC.js → ManageTransferInstrumentComponent-j3e19U67.js} +12 -12
- package/dist/{MaskedInput-DK17jkn8.js → MaskedInput-BBpUba4Q.js} +5 -5
- package/dist/MaybeModal-BfUZzrFT.js +25 -0
- package/dist/{Modal-CeWqn3jD.js → Modal-QC3t2pZm.js} +1 -1
- package/dist/OnboardingDropinComponent-CR_pOocw.js +4274 -0
- package/dist/{PayoutDetailsDropin-CxXIfBo2.js → PayoutDetailsDropin-C4ZOkpq_.js} +311 -81
- package/dist/RadioGroup-B0eqJ4-H.js +144 -0
- package/dist/{RegistrationAddress-coO57t4c.js → RegistrationAddress-DEZgJ98J.js} +36 -33
- package/dist/{Review-BFb6Ykw1.js → Review-BH30PNwx.js} +8 -7
- package/dist/RootBusinessDetailsPage-CB6RWU2g.js +61 -0
- package/dist/{OnboardingDropinComponent-BlMzaK2Z.js → RootBusinessLinesPage-CtY_KP7f.js} +845 -5342
- package/dist/{RootIndividualDetailsPage-BEe-U1FO.js → RootIndividualDetailsPage-C6TUZLlV.js} +5 -5
- package/dist/{SignPCIComponent-D5KQ4t2I.js → SignPCIComponent-Lc4CIjC7.js} +10 -8
- package/dist/{SingpassSelection-wIFBjJkx.js → SingpassSelection-Cwocy94c.js} +5 -4
- package/dist/SoleProprietorshipPage-DIotXS-E.js +60 -0
- package/dist/{SourceOfFundsPage-B0js4JTw.js → SourceOfFundsPage-D6X8IktQ.js} +37 -32
- package/dist/{StepProgressIndicator-axxG6zQK.js → StepProgressIndicator-BRtUTJA2.js} +1 -1
- package/dist/{StoreProvider-BulXd4Hf.js → StoreProvider-DX9X_rtC.js} +107 -102
- package/dist/{TaskItemStatus-DykYxx-L.js → TaskItemStatus-DTxnqkA5.js} +3 -3
- package/dist/{TaxInformationField-vBwS4Gdq.js → TaxInformationField-CAhkfn-Q.js} +28 -26
- package/dist/{TaxReportingDropin-T-05itkR.js → TaxReportingDropin-zqqyQfEx.js} +17 -13
- package/dist/{TileGroup-CWIb67Fa.js → TileGroup-DPM4gpzr.js} +4 -4
- package/dist/{TrustDetailsPage-XpVwVUFb.js → TrustDetailsPage-BaqBKpei.js} +24 -22
- package/dist/{TrustMemberCompanyPage-CPZ8ZzqF.js → TrustMemberCompanyPage-DQvZ4BOf.js} +22 -9
- package/dist/{TrustMemberIndividualPage-um9OLnSy.js → TrustMemberIndividualPage-Du6IjMHg.js} +5 -5
- package/dist/{UnincorporatedPartnershipIndividualPage-CvQOUpDy.js → UnincorporatedPartnershipIndividualPage-ii0O1m-J.js} +5 -5
- package/dist/UnincorporatedPartnershipMemberCompanyPage-X3m8PR8H.js +76 -0
- package/dist/{ViewVerificationStatusComponent-aOEFCjUd.js → ViewVerificationStatusComponent-wM09RJoi.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 +20 -20
- package/dist/adyen-onboarding.js +2 -2
- 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/analytics-CSO2dqDO.js +123 -0
- package/dist/{bafinUtils-DOsm2O1i.js → bafinUtils-lxvWZZEW.js} +8 -57
- package/dist/{bg-BG-B37z4fjM.js → bg-BG-BIOMFPaW.js} +3 -1
- package/dist/bg-BG-BLe6BCNz.js +13 -0
- package/dist/bg-BG-BPsOhDfg.js +13 -0
- package/dist/bg-BG-fr-xfUBV.js +110 -0
- package/dist/commonValidators-B3Rif_Pi.js +24 -0
- package/dist/cs-CZ-C0sNB1Fm.js +110 -0
- package/dist/cs-CZ-CHzJM-ii.js +13 -0
- package/dist/{cs-CZ-2D8o2KB0.js → cs-CZ-DNWTRefA.js} +3 -1
- package/dist/cs-CZ-xoLsda7i.js +13 -0
- package/dist/da-DK-8dk9Q_Wk.js +110 -0
- package/dist/{da-DK-CplImqOX.js → da-DK-D-PlwKvZ.js} +3 -1
- package/dist/da-DK-D-TJghBi.js +13 -0
- package/dist/da-DK-XNMYSp7w.js +13 -0
- package/dist/{de-DE-DNOzlYEY.js → de-DE-4GAd_srm.js} +3 -1
- package/dist/de-DE-BI7AAdOv.js +13 -0
- package/dist/de-DE-CCmlaL2F.js +13 -0
- package/dist/de-DE-CCyKie8B.js +110 -0
- package/dist/debugStore-BvbyN1Oi.js +14 -0
- package/dist/dropinUtils-BB4B9BSv.js +196 -0
- package/dist/el-GR-D7zMcBtK.js +110 -0
- package/dist/{el-GR-DAFcmbwE.js → el-GR-Ddnh0NhQ.js} +3 -1
- package/dist/el-GR-DoCIcce-.js +13 -0
- package/dist/el-GR-kYiInIQ9.js +13 -0
- package/dist/{en-US-CEc3gxgl.js → en-US-BCFNoF5y.js} +2 -1
- package/dist/en-US-BwDZ0WHW.js +110 -0
- package/dist/en-US-DYpvuCLO.js +13 -0
- package/dist/{en-US-xHi63gSK.js → en-US-DjF6iC7G.js} +12 -1
- package/dist/{es-ES-BPI-KmDv.js → es-ES-C4lENXHH.js} +3 -1
- package/dist/es-ES-CJMsyMAc.js +13 -0
- package/dist/es-ES-CnNU6AJv.js +13 -0
- package/dist/es-ES-JvAvmB2A.js +110 -0
- package/dist/{et-EE-CMXpGRz8.js → et-EE-3EQr-1cj.js} +3 -1
- package/dist/et-EE-BR4OXRfV.js +13 -0
- package/dist/et-EE-SJf3_Ega.js +110 -0
- package/dist/et-EE-sB7wkSA3.js +13 -0
- package/dist/fi-FI-BbqwYcLI.js +13 -0
- package/dist/{fi-FI-C5SwgUIc.js → fi-FI-Byvvcxxq.js} +3 -1
- package/dist/fi-FI-Cy2hAl0B.js +110 -0
- package/dist/fi-FI-u5GxMZsq.js +13 -0
- package/dist/{fieldConfigurations-BBmPG-CS.js → fieldConfigurations-QIDm3nkC.js} +12 -306
- package/dist/fr-FR-BmW46mYd.js +110 -0
- package/dist/fr-FR-CMjrAkKl.js +13 -0
- package/dist/fr-FR-Cr-Y1vIy.js +13 -0
- package/dist/{fr-FR-CAqqgh3X.js → fr-FR-E_UubsZ-.js} +3 -1
- package/dist/{getName-N_Hu5gE7.js → getName-DQuF2UWl.js} +2 -2
- package/dist/{hasDataChanged-C32ujCoA.js → hasDataChanged-QgzClnGa.js} +2 -2
- package/dist/hr-HR-Bhsop3CT.js +13 -0
- package/dist/hr-HR-D8cBxUFa.js +13 -0
- package/dist/{hr-HR-oTvJUvqr.js → hr-HR-TVOgDkBf.js} +3 -1
- package/dist/hr-HR-c1Si_0s4.js +110 -0
- package/dist/hu-HU-BVfkOdJe.js +13 -0
- package/dist/hu-HU-CibGC8KY.js +110 -0
- package/dist/hu-HU-D2j1ISVk.js +13 -0
- package/dist/{hu-HU-DA-bZKop.js → hu-HU-DRONW_47.js} +3 -1
- package/dist/{iframeWidget-iA0G4IZI.js → iframeWidget-LY36YmR3.js} +4 -4
- package/dist/{isEmpty-CD8E4UFi.js → isEmpty-uIgxe5k7.js} +2 -2
- package/dist/it-IT-BMjuva_2.js +110 -0
- package/dist/it-IT-C7Sg1k4p.js +13 -0
- package/dist/it-IT-CwA8megO.js +13 -0
- package/dist/{it-IT-CpKAGuyU.js → it-IT-DuBLJIdz.js} +3 -1
- package/dist/{ja-JP-7DhgV_0J.js → ja-JP-CCnzjx-u.js} +28 -2
- package/dist/{ja-JP-C4569I8p.js → ja-JP-CJ_j_HAA.js} +3 -1
- package/dist/ja-JP-Cr_qjpZ2.js +110 -0
- package/dist/ja-JP-GSbqID7o.js +13 -0
- package/dist/{localizeDateString-DHsCnGIt.js → localizeDateString-BKtxO1zQ.js} +1 -1
- package/dist/lt-LT-C5nNCk4_.js +13 -0
- package/dist/{lt-LT-DfJ0ojxY.js → lt-LT-CBBDNCnp.js} +3 -1
- package/dist/lt-LT-DSiutpRl.js +13 -0
- package/dist/lt-LT-DjNjg3Pl.js +110 -0
- package/dist/lv-LV-BpRfRfMz.js +110 -0
- package/dist/lv-LV-C62XiDE5.js +13 -0
- package/dist/lv-LV-CEK8Re4d.js +13 -0
- package/dist/{lv-LV-d0ldbfMh.js → lv-LV-CtIe38WU.js} +3 -1
- package/dist/{mapExistingFile-CZ8JIq0y.js → mapExistingFile-BfHRGybY.js} +4 -4
- package/dist/{mapJpAddressSchemaToAddressLocalizations-CYDc6_WR.js → mapJpAddressSchemaToAddressLocalizations-Bh2EFFbk.js} +53 -6
- package/dist/{mapLegalEntityToIndividualOnfidoSchema-DpDvE22C.js → mapLegalEntityToIndividualOnfidoSchema-ixUzJxt_.js} +4 -4
- package/dist/{mapTransferInstrumentToPayoutAccount-B_Z8lux3.js → mapTransferInstrumentToPayoutAccount-DqDMLrLp.js} +6 -3
- package/dist/nl-NL-BOJ6zuBr.js +13 -0
- package/dist/{nl-NL-DdVmtkAu.js → nl-NL-CE4l8R5l.js} +3 -1
- package/dist/nl-NL-DOQPxTX-.js +13 -0
- package/dist/nl-NL-oaBDOlm6.js +110 -0
- package/dist/{no-NO-C0WUoV9N.js → no-NO-B1_YJlMP.js} +3 -1
- package/dist/no-NO-BTrfxWS7.js +110 -0
- package/dist/no-NO-Cp3-tDMw.js +13 -0
- package/dist/no-NO-CuwTDFSf.js +13 -0
- package/dist/pl-PL-1-MrLPXu.js +13 -0
- package/dist/pl-PL-C72GTDxW.js +110 -0
- package/dist/pl-PL-CtDHmbhp.js +13 -0
- package/dist/{pl-PL-Byfw9EGz.js → pl-PL-DGYFY42P.js} +3 -1
- package/dist/process-field-configurations-CPiaN7XP.js +304 -0
- package/dist/pt-BR-Br_cHzGx.js +13 -0
- package/dist/{pt-BR-DUUAs_Pm.js → pt-BR-Co8OqKh-.js} +3 -1
- package/dist/pt-BR-CtFCi7U4.js +110 -0
- package/dist/pt-BR-DnKEuslh.js +13 -0
- package/dist/pt-PT-CLwCij2I.js +13 -0
- package/dist/pt-PT-XAn7WGle.js +110 -0
- package/dist/pt-PT-cjbtYBUX.js +13 -0
- package/dist/{pt-PT-BVZxK7ae.js → pt-PT-pKLoM66X.js} +3 -1
- package/dist/{resolveEnvironment-HVVOrOBr.js → resolveEnvironment-B9LzegI4.js} +3 -3
- package/dist/ro-RO-CGhIjlpU.js +13 -0
- package/dist/ro-RO-Cmk-sVDr.js +13 -0
- package/dist/{ro-RO-Ck3Azc56.js → ro-RO-D3rQ93wa.js} +3 -1
- package/dist/ro-RO-qX8X1Q1m.js +110 -0
- package/dist/{rules-CpkxtBrw.js → rules-BMGZ46_e.js} +9 -5
- package/dist/sk-SK-Bo5nvxWQ.js +13 -0
- package/dist/sk-SK-CjdK4BKW.js +110 -0
- package/dist/{sk-SK-jxAlqkeI.js → sk-SK-CmH1I1tp.js} +3 -1
- package/dist/sk-SK-Do6CKNU4.js +13 -0
- package/dist/sl-SI-CrTRlNnN.js +13 -0
- package/dist/sl-SI-cY-L2ma-.js +13 -0
- package/dist/{sl-SI-CjvFCQ3H.js → sl-SI-hnlbW1OT.js} +3 -1
- package/dist/sl-SI-lPxRRPsh.js +110 -0
- package/dist/style.css +577 -544
- package/dist/styles-CLV89_hH.js +577 -544
- package/dist/{sv-SE-CSjJPRt1.js → sv-SE-7Cbo1oic.js} +3 -1
- package/dist/sv-SE-BPpQ-05i.js +110 -0
- package/dist/sv-SE-BtwPrLEA.js +13 -0
- package/dist/sv-SE-WPziDPQa.js +13 -0
- package/dist/types/components/BankAccount/fields/BankAccountFormat/types.d.ts +2 -1
- package/dist/types/components/BankAccount/fields/PreferredCurrency/PreferredCurrency.d.ts +10 -0
- package/dist/types/components/BankAccount/forms/PayoutAccount/types.d.ts +2 -0
- package/dist/types/components/BankAccount/forms/PayoutCountryDetails/PayoutCountryDetails.d.ts +3 -0
- package/dist/types/components/BankAccount/forms/PayoutCountryDetails/types.d.ts +11 -0
- package/dist/types/components/BankAccount/forms/PayoutDetails/PayoutDetails.d.ts +6 -0
- package/dist/types/components/BankAccount/forms/PayoutDetails/types.d.ts +2 -0
- package/dist/types/components/BankAccount/forms/PayoutVerificationMethod/utils.d.ts +2 -0
- package/dist/types/components/BankAccount/mapping/mapPayoutAccountSchemaToApiBankAccount.d.ts +3 -2
- package/dist/types/components/BankAccount/mapping/mapPayoutDetailsToTransferInstrument.d.ts +2 -1
- package/dist/types/components/BankAccount/mapping/mapTransferInstrumentToPayoutAccount.d.ts +1 -1
- package/dist/types/components/BankAccount/mapping/payoutKeyMappings.d.ts +2 -0
- package/dist/types/components/BankAccount/tasks/PayoutDetailsDropin/payoutDetailsFormConfig.d.ts +1 -1
- package/dist/types/components/BankAccount/utils/payoutAccountUtil.d.ts +3 -2
- package/dist/types/components/Business/forms/BasicInformation/BasicInformationMultiform.d.ts +5 -3
- package/dist/types/components/Business/forms/RegistrationDocument/types.d.ts +3 -3
- package/dist/types/components/Business/forms/TaxDocument/types.d.ts +3 -3
- package/dist/types/components/Business/pages/RootBusinessDetailsPage.d.ts +1 -1
- package/dist/types/components/Business/tasks/BusinessDetailsDropin/types.d.ts +0 -1
- package/dist/types/components/Business/tasks/BusinessDetailsMultiformDropin/BusinessDetailsMultiform.d.ts +2 -1
- package/dist/types/components/Business/utils/applyVerifiedBusinessData.d.ts +5 -0
- package/dist/types/components/EFP/tasks/BusinessFinancingDropin/BusinessFinancingBasicCompanyInformation.d.ts +0 -1
- package/dist/types/components/EFP/tasks/BusinessFinancingDropin/BusinessFinancingBusinessInformation.d.ts +0 -1
- package/dist/types/components/EFP/tasks/BusinessFinancingDropin/BusinessFinancingFinancialInformation.d.ts +0 -1
- package/dist/types/components/EFP/tasks/BusinessFinancingDropin/BusinessFinancingOwnershipStructure.d.ts +0 -1
- package/dist/types/components/EFP/tasks/BusinessFinancingDropin/BusinessFinancingRegisteredAddress.d.ts +0 -1
- package/dist/types/components/Individual/fields/NameFields/NameFields.d.ts +3 -0
- package/dist/types/components/Individual/tasks/DecisionMakers/utils.d.ts +3 -0
- package/dist/types/components/Shared/devex/DebugListener/DebugFormData.d.ts +1 -0
- package/dist/types/components/Shared/devex/DebugListener/debugStore.d.ts +5 -0
- package/dist/types/components/Shared/forms/Address/utils.d.ts +1 -1
- package/dist/types/components/SoleProprietorship/pages/SoleProprietorshipPage.d.ts +1 -2
- package/dist/types/components/Trust/pages/TrustMemberCompanyPage.d.ts +1 -2
- package/dist/types/components/UnincorporatedPartnership/pages/UnincorporatedPartnershipMemberCompanyPage.d.ts +1 -2
- package/dist/types/components/ui/atoms/ListItem/ListItem.d.ts +1 -2
- package/dist/types/context/ExperimentContext/types.d.ts +4 -8
- package/dist/types/core/models/api/transfer-instrument.d.ts +2 -0
- package/dist/types/core/process-field-configurations.d.ts +2 -2
- package/dist/types/datasets/generators/getAccountFormatForCountry.d.ts +1 -0
- package/dist/types/stores/globalStore/taskTypes.d.ts +1 -1
- package/dist/types/{core → utils}/analytics.d.ts +5 -5
- package/dist/types/utils/entityStatusUtil.d.ts +1 -1
- package/dist/{types-YZCbv6wT.js → types-B8B2a7MQ.js} +2 -2
- package/dist/{types-Cnytncbd.js → types-DHmyPbAn.js} +5 -9
- package/dist/{types-DREIZpxT.js → types-DhTTtRCo.js} +2 -2
- package/dist/{useAssociatedLegalEntity-CtPwbvkG.js → useAssociatedLegalEntity-Ga-FKuMn.js} +1 -1
- package/dist/{useDataset-BhtLJw8i.js → useDataset-DZSHpx6s.js} +3 -3
- package/dist/{useForm-CkDciBI3.js → useForm-Dj2YKs6k.js} +8 -79
- package/dist/useFormContext-DW_Slas-.js +222 -0
- package/dist/{useGlobalData-BUgIp9O-.js → useGlobalData-DpDm0x5x.js} +10 -8
- package/dist/{RadioGroup-CDIi5JOR.js → useMultiForm-B07GoQbD.js} +6 -339
- package/dist/{useOnboardingStatus-C617NeV-.js → useOnboardingStatus-Cn0R_NIZ.js} +1 -1
- package/dist/{useScenarios-pcYq7HkO.js → useScenarios-Dt2xmzlt.js} +2 -2
- package/dist/{useTermsOfServiceStatus-DAhlGfSf.js → useTermsOfServiceStatus-D6iXFeAp.js} +1 -1
- package/dist/{useToastContext-SPgtDHvP.js → useToastContext-9176-zEj.js} +2 -2
- package/dist/{useUnincorporatedPartnershipMembers-AfBFy7Yl.js → useUnincorporatedPartnershipMembers-6JvFEoTe.js} +5 -5
- package/dist/{utils-C6VZF1lW.js → utils-BbfCeKoQ.js} +7 -7
- package/dist/{utils-DKPIAe71.js → utils-C3YOzi3q.js} +2 -2
- package/dist/{utils-CfNHCh35.js → utils-Cnzy9BrL.js} +3 -3
- package/dist/{validate-0hhEAEOS.js → validate-3hlm9O5d.js} +7 -7
- package/dist/{validate-nQU_m5nS.js → validate-C5RnmxAh.js} +2 -2
- package/dist/{validate-zp9cKIZQ.js → validate-CchLxW_F.js} +3 -3
- package/dist/{validationError-C4LAQpBz.js → validationError-9xZhdWqV.js} +2 -2
- package/package.json +4 -4
- package/dist/RootBusinessDetailsPage-BsbiSuH4.js +0 -1977
- package/dist/SoleProprietorshipPage-BKxqOwer.js +0 -49
- package/dist/UnincorporatedPartnershipMemberCompanyPage-BPEUAWOw.js +0 -63
- package/dist/analytics-_iYLDAnN.js +0 -61
- package/dist/bg-BG-B8A8D_hg.js +0 -47
- package/dist/bg-BG-CC5Y7izP.js +0 -13
- package/dist/bg-BG-DPkib_ah.js +0 -13
- package/dist/cs-CZ-B0dmNTJm.js +0 -13
- package/dist/cs-CZ-B7A0WNBx.js +0 -47
- package/dist/cs-CZ-E0sZTsrs.js +0 -13
- package/dist/da-DK-9M2wm0kt.js +0 -47
- package/dist/da-DK-HNKnBXb5.js +0 -13
- package/dist/da-DK-quX5LuPc.js +0 -13
- package/dist/de-DE-1wVDROIy.js +0 -13
- package/dist/de-DE-B2QaSUv3.js +0 -13
- package/dist/de-DE-CLuLBUrb.js +0 -47
- package/dist/el-GR-BKT02owO.js +0 -13
- package/dist/el-GR-BN7mIwED.js +0 -47
- package/dist/el-GR-C2BsVqjY.js +0 -13
- package/dist/en-US-BEgdeTV4.js +0 -13
- package/dist/en-US-BWtUZoXL.js +0 -47
- package/dist/es-ES-DCkqCwAK.js +0 -13
- package/dist/es-ES-Dc4Z3rGg.js +0 -13
- package/dist/es-ES-i_Fk7A9r.js +0 -47
- package/dist/et-EE-DKJ8Kn8O.js +0 -47
- package/dist/et-EE-DbRebqzm.js +0 -13
- package/dist/et-EE-sGRn_-QJ.js +0 -13
- package/dist/fi-FI-BQxUuIP0.js +0 -13
- package/dist/fi-FI-BXJbm9sZ.js +0 -13
- package/dist/fi-FI-CF4-CyIe.js +0 -47
- package/dist/fr-FR-C4LPqbx5.js +0 -47
- package/dist/fr-FR-DvgcaqM8.js +0 -13
- package/dist/fr-FR-t2k348rx.js +0 -13
- package/dist/hr-HR-BiZNiGG9.js +0 -13
- package/dist/hr-HR-Dlw8mrQW.js +0 -13
- package/dist/hr-HR-TslbqIeE.js +0 -47
- package/dist/hu-HU-6VmfqBr5.js +0 -13
- package/dist/hu-HU-CgBQ5Skc.js +0 -47
- package/dist/hu-HU-DLynQejq.js +0 -13
- package/dist/it-IT-BXsakLEg.js +0 -47
- package/dist/it-IT-BgdxIaNM.js +0 -13
- package/dist/it-IT-PJbf57vA.js +0 -13
- package/dist/ja-JP-B--vgrAi.js +0 -47
- package/dist/ja-JP-BBzuYv6e.js +0 -13
- package/dist/lt-LT-57A37eCA.js +0 -13
- package/dist/lt-LT-C_sT0Isz.js +0 -13
- package/dist/lt-LT-UnMr3oB3.js +0 -47
- package/dist/lv-LV-7VOOOEZ-.js +0 -13
- package/dist/lv-LV-C54zKY0H.js +0 -47
- package/dist/lv-LV-Cwzt1ESp.js +0 -13
- package/dist/nl-NL-A444CaCG.js +0 -47
- package/dist/nl-NL-D0wVWeHf.js +0 -13
- package/dist/nl-NL-DiH4q7K-.js +0 -13
- package/dist/no-NO-BeVzpadb.js +0 -13
- package/dist/no-NO-D57T2p2M.js +0 -47
- package/dist/no-NO-JHMzV-ae.js +0 -13
- package/dist/pl-PL-0BphD78z.js +0 -13
- package/dist/pl-PL-B3RxZ32y.js +0 -47
- package/dist/pl-PL-De41L6O6.js +0 -13
- package/dist/pt-BR-BvAy7bfZ.js +0 -13
- package/dist/pt-BR-CjfX1fDM.js +0 -47
- package/dist/pt-BR-D7RCymsU.js +0 -13
- package/dist/pt-PT-BH1abg6H.js +0 -13
- package/dist/pt-PT-CgXkfMUc.js +0 -13
- package/dist/pt-PT-D79GMAC5.js +0 -47
- package/dist/ro-RO-1W3Bw0U7.js +0 -13
- package/dist/ro-RO-Dj-2um-k.js +0 -47
- package/dist/ro-RO-raS4E2ww.js +0 -13
- package/dist/sk-SK-BTujkOgF.js +0 -13
- package/dist/sk-SK-Es-5xiuY.js +0 -13
- package/dist/sk-SK-JN-Ll7bm.js +0 -47
- package/dist/sl-SI-BT9PpQII.js +0 -13
- package/dist/sl-SI-Cq4LxAvb.js +0 -13
- package/dist/sl-SI-nUZNETVU.js +0 -47
- package/dist/sv-SE-8dFj9z4D.js +0 -47
- package/dist/sv-SE-Csib2Zj_.js +0 -13
- package/dist/sv-SE-EbNvb_L7.js +0 -13
|
@@ -0,0 +1,144 @@
|
|
|
1
|
+
;
|
|
2
|
+
{
|
|
3
|
+
try {
|
|
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] = "9738031c-2288-4f2d-b87e-d97dc9c14811", e._sentryDebugIdIdentifier = "sentry-dbid-9738031c-2288-4f2d-b87e-d97dc9c14811");
|
|
6
|
+
} catch (e) {
|
|
7
|
+
}
|
|
8
|
+
}
|
|
9
|
+
;
|
|
10
|
+
import { b as useApiContext, aD as useMutation, k as httpPost, aF as useQueryClient, u as useTranslation, P as useAnalyticsContext, W as noop } from "./StoreProvider-DX9X_rtC.js";
|
|
11
|
+
import { a as useInvalidateRootLegalEntity } from "./useToastContext-9176-zEj.js";
|
|
12
|
+
import { jsxs, jsx } from "preact/jsx-runtime";
|
|
13
|
+
import cx from "classnames";
|
|
14
|
+
import { b as useId } from "./useForm-Dj2YKs6k.js";
|
|
15
|
+
import { R as Radio } from "./CountryField-DpZS-UHE.js";
|
|
16
|
+
const createLegalEntity = async (legalEntityId, baseUrl, data) => {
|
|
17
|
+
return httpPost(
|
|
18
|
+
{
|
|
19
|
+
baseUrl,
|
|
20
|
+
path: `legalEntities/${legalEntityId}/create`
|
|
21
|
+
},
|
|
22
|
+
data
|
|
23
|
+
);
|
|
24
|
+
};
|
|
25
|
+
const useCreateLegalEntity = (options) => {
|
|
26
|
+
const { rootLegalEntityId, baseUrl } = useApiContext();
|
|
27
|
+
return useMutation({
|
|
28
|
+
mutationFn: (payload) => {
|
|
29
|
+
return createLegalEntity(rootLegalEntityId.value, baseUrl.value, payload);
|
|
30
|
+
},
|
|
31
|
+
...options
|
|
32
|
+
});
|
|
33
|
+
};
|
|
34
|
+
const updateLegalEntity = async (rootLegalEntityId, baseUrl, data) => {
|
|
35
|
+
return httpPost(
|
|
36
|
+
{
|
|
37
|
+
baseUrl,
|
|
38
|
+
path: `legalEntities/${rootLegalEntityId}`
|
|
39
|
+
},
|
|
40
|
+
data
|
|
41
|
+
);
|
|
42
|
+
};
|
|
43
|
+
const useUpdateLegalEntity = (options) => {
|
|
44
|
+
const { rootLegalEntityId, baseUrl } = useApiContext();
|
|
45
|
+
const invalidateRootLegalEntity = useInvalidateRootLegalEntity();
|
|
46
|
+
const queryClient = useQueryClient();
|
|
47
|
+
return useMutation({
|
|
48
|
+
mutationFn: (payload) => updateLegalEntity(rootLegalEntityId.value, baseUrl.value, payload),
|
|
49
|
+
onSuccess: async (response, payload) => {
|
|
50
|
+
if (response.id === rootLegalEntityId.value) {
|
|
51
|
+
await invalidateRootLegalEntity();
|
|
52
|
+
} else {
|
|
53
|
+
queryClient.setQueryData(["legalEntity", payload.id], response);
|
|
54
|
+
}
|
|
55
|
+
},
|
|
56
|
+
...options
|
|
57
|
+
});
|
|
58
|
+
};
|
|
59
|
+
const RadioWithLabel = ({
|
|
60
|
+
value,
|
|
61
|
+
label,
|
|
62
|
+
content,
|
|
63
|
+
groupName,
|
|
64
|
+
checked = false,
|
|
65
|
+
disabled = false,
|
|
66
|
+
onClick
|
|
67
|
+
}) => {
|
|
68
|
+
const id = useId("radio");
|
|
69
|
+
return /* @__PURE__ */ jsxs("label", { htmlFor: id, className: "adyen-kyc-input-radio", children: [
|
|
70
|
+
/* @__PURE__ */ jsx(
|
|
71
|
+
Radio,
|
|
72
|
+
{
|
|
73
|
+
id,
|
|
74
|
+
checked,
|
|
75
|
+
groupName,
|
|
76
|
+
onClick,
|
|
77
|
+
value,
|
|
78
|
+
disabled
|
|
79
|
+
}
|
|
80
|
+
),
|
|
81
|
+
/* @__PURE__ */ jsxs("div", { className: "adyen-kyc-input-radio__content", children: [
|
|
82
|
+
/* @__PURE__ */ jsx("span", { className: "adyen-kyc-input-radio__label adyen-kyc-label__text", children: label }),
|
|
83
|
+
content
|
|
84
|
+
] })
|
|
85
|
+
] });
|
|
86
|
+
};
|
|
87
|
+
function RadioGroup({
|
|
88
|
+
items = [],
|
|
89
|
+
name,
|
|
90
|
+
onChange = noop,
|
|
91
|
+
value,
|
|
92
|
+
disabled = false,
|
|
93
|
+
horizontal = false,
|
|
94
|
+
showContentOnlyOnSelected = false,
|
|
95
|
+
className,
|
|
96
|
+
enableTracking = false
|
|
97
|
+
}) {
|
|
98
|
+
const { t, i18n } = useTranslation("common");
|
|
99
|
+
const userEvents = useAnalyticsContext();
|
|
100
|
+
const handleChange = (id) => {
|
|
101
|
+
if (enableTracking) {
|
|
102
|
+
userEvents.addFieldEvent("Interacted with form field", {
|
|
103
|
+
actionType: "input",
|
|
104
|
+
field: name,
|
|
105
|
+
returnValue: value
|
|
106
|
+
});
|
|
107
|
+
}
|
|
108
|
+
onChange(id);
|
|
109
|
+
};
|
|
110
|
+
return /* @__PURE__ */ jsx(
|
|
111
|
+
"div",
|
|
112
|
+
{
|
|
113
|
+
className: cx([
|
|
114
|
+
"adyen-kyc-radio-group",
|
|
115
|
+
{ "adyen-kyc-radio-group--horizontal": horizontal },
|
|
116
|
+
className
|
|
117
|
+
]),
|
|
118
|
+
children: items.map((item) => {
|
|
119
|
+
const isSelected = item.id === value;
|
|
120
|
+
const visibleContent = isSelected || !showContentOnlyOnSelected ? item.content : void 0;
|
|
121
|
+
const keyExists = i18n.exists(item.name, { ns: "common" });
|
|
122
|
+
return /* @__PURE__ */ jsx(
|
|
123
|
+
RadioWithLabel,
|
|
124
|
+
{
|
|
125
|
+
value: item.id,
|
|
126
|
+
label: keyExists ? t(($) => $[item.name]) : item.name,
|
|
127
|
+
content: visibleContent,
|
|
128
|
+
groupName: name,
|
|
129
|
+
checked: isSelected,
|
|
130
|
+
disabled,
|
|
131
|
+
onClick: () => handleChange(item.id)
|
|
132
|
+
},
|
|
133
|
+
item.id
|
|
134
|
+
);
|
|
135
|
+
})
|
|
136
|
+
}
|
|
137
|
+
);
|
|
138
|
+
}
|
|
139
|
+
export {
|
|
140
|
+
RadioGroup as R,
|
|
141
|
+
useUpdateLegalEntity as a,
|
|
142
|
+
RadioWithLabel as b,
|
|
143
|
+
useCreateLegalEntity as u
|
|
144
|
+
};
|
|
@@ -2,27 +2,28 @@
|
|
|
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] = "9b57e121-410e-4550-b092-81911bf65e97", e._sentryDebugIdIdentifier = "sentry-dbid-9b57e121-410e-4550-b092-81911bf65e97");
|
|
6
6
|
} catch (e) {
|
|
7
7
|
}
|
|
8
8
|
}
|
|
9
9
|
;
|
|
10
10
|
import { jsxs, jsx, Fragment } from "preact/jsx-runtime";
|
|
11
11
|
import { memo } from "preact/compat";
|
|
12
|
-
import {
|
|
13
|
-
import { M as MemoizedDocumentUpload,
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
12
|
+
import { ai as objectsDeepEqual, u as useTranslation, y as LegalEntityTypes, a9 as CountryCodes, X as useExperimentsContext } from "./StoreProvider-DX9X_rtC.js";
|
|
13
|
+
import { M as MemoizedDocumentUpload, l as getCompanyRegistrationNumberOptions, s as stateFormatGuidanceText, o as businessRegistrationNumberMasks, p as businessRegistrationNumberPatterns, v as vatNumberOptions, q as getVatNumberOptions } from "./TaxInformationField-CAhkfn-Q.js";
|
|
14
|
+
import { C as Checkbox } from "./analytics-CSO2dqDO.js";
|
|
15
|
+
import { F as Field, a as useForm } from "./useForm-Dj2YKs6k.js";
|
|
16
|
+
import { m as makeMask, n as numericInputs, s as spacer, M as MaskedInput, a as nonInputs, b as alphaInputs, d as alphanumericInputs } from "./MaskedInput-BBpUba4Q.js";
|
|
16
17
|
import { useMemo, useCallback, useEffect, useRef } from "preact/hooks";
|
|
17
|
-
import { R as RadioGroup } from "./RadioGroup-
|
|
18
|
-
import { C as CompanyTypesValues } from "./bafinUtils-
|
|
19
|
-
import {
|
|
20
|
-
import { I as InputText } from "./InputText-
|
|
21
|
-
import { u as uppercase } from "./mapExistingFile-
|
|
18
|
+
import { R as RadioGroup } from "./RadioGroup-B0eqJ4-H.js";
|
|
19
|
+
import { C as CompanyTypesValues } from "./bafinUtils-lxvWZZEW.js";
|
|
20
|
+
import { f as validatePatternOnBlur, c as validateNotEmptyOnBlur, C as ContextGuidance } from "./fieldConfigurations-QIDm3nkC.js";
|
|
21
|
+
import { I as InputText } from "./InputText-DqycMV0z.js";
|
|
22
|
+
import { u as uppercase } from "./mapExistingFile-BfHRGybY.js";
|
|
22
23
|
import { createElement } from "preact";
|
|
23
|
-
import {
|
|
24
|
-
import { S as StateContextSetter } from "./validate-
|
|
25
|
-
import { o as operationalAddressIsSameIds, A as Address, h as operationalAddressIsSameItems } from "./Address-
|
|
24
|
+
import { h as getFormProps, H as Header, E as ErrorPanel, c as createFormUtils } from "./CountryField-DpZS-UHE.js";
|
|
25
|
+
import { S as StateContextSetter } from "./validate-CchLxW_F.js";
|
|
26
|
+
import { o as operationalAddressIsSameIds, A as Address, h as operationalAddressIsSameItems } from "./Address-DvpndZyX.js";
|
|
26
27
|
const ConstitutionalDocumentTypes = {
|
|
27
28
|
BUSINESS_NAME_FILING: "doingBusinessAsNameFiling",
|
|
28
29
|
TAX_FILING: "taxFiling",
|
|
@@ -106,23 +107,24 @@ function ConstitutionalDocumentUpload({
|
|
|
106
107
|
legalEntityType,
|
|
107
108
|
...props
|
|
108
109
|
}) {
|
|
109
|
-
const { t } = useTranslation("common");
|
|
110
|
+
const { t } = useTranslation(["common", "business"]);
|
|
110
111
|
const isUnincorporatedPartnership = legalEntityType === LegalEntityTypes.UNINCORPORATED_PARTNERSHIP;
|
|
111
112
|
const constitutionalDocumentRequirements = getConstitutionDocumentTypeOptionsMapping(
|
|
112
113
|
legalEntityType,
|
|
113
114
|
props.country
|
|
114
115
|
);
|
|
115
116
|
const guidanceContent = /* @__PURE__ */ jsxs("div", { className: "adyen-kyc-upload-field__guidance adyen-kyc-u-margin-bottom-24", children: [
|
|
116
|
-
/* @__PURE__ */ jsx("strong", { children: t(($) => $["uploadOneOfTheseDocuments"]) }),
|
|
117
|
-
/* @__PURE__ */ jsx("ul", { children: constitutionalDocumentRequirements?.map(({ name }, i) => /* @__PURE__ */ jsx("li", { children: t(($) => $[name]) }, i)) }),
|
|
117
|
+
/* @__PURE__ */ jsx("strong", { children: t(($) => $["uploadOneOfTheseDocuments"], { ns: "business" }) }),
|
|
118
|
+
/* @__PURE__ */ jsx("ul", { children: constitutionalDocumentRequirements?.map(({ name }, i) => /* @__PURE__ */ jsx("li", { children: t(($) => $[name], { ns: "business" }) }, i)) }),
|
|
118
119
|
isUnincorporatedPartnership && /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
119
|
-
/* @__PURE__ */ jsx("strong", { children: t(($) => $["documentRequirements"]) }),
|
|
120
|
+
/* @__PURE__ */ jsx("strong", { children: t(($) => $["documentRequirements"], { ns: "common" }) }),
|
|
120
121
|
/* @__PURE__ */ jsx("ul", { children: unincorporatedPartnershipRequirementsVariants.map((item, i) => /* @__PURE__ */ jsx("li", { children: t(
|
|
121
|
-
($) => $[`documentRequirementsUnincorporatedPartnership${item}`]
|
|
122
|
+
($) => $[`documentRequirementsUnincorporatedPartnership${item}`],
|
|
123
|
+
{ ns: "common" }
|
|
122
124
|
) }, i)) })
|
|
123
125
|
] }),
|
|
124
126
|
props.country !== "US" && !isUnincorporatedPartnership && /* @__PURE__ */ jsx("div", { className: "adyen-kyc-u-margin-y-16", children: /* @__PURE__ */ jsxs("span", { children: [
|
|
125
|
-
t(($) => $["infoInUploadedDocumentIsTrue"]),
|
|
127
|
+
t(($) => $["infoInUploadedDocumentIsTrue"], { ns: "common" }),
|
|
126
128
|
" "
|
|
127
129
|
] }) })
|
|
128
130
|
] });
|
|
@@ -132,11 +134,12 @@ function ConstitutionalDocumentUpload({
|
|
|
132
134
|
...props,
|
|
133
135
|
documentType: "constitutionalDocument",
|
|
134
136
|
documentField: "constitutionalDocument",
|
|
135
|
-
heading: t(($) => $["constitutionalDocumentHeader"]),
|
|
137
|
+
heading: t(($) => $["constitutionalDocumentHeader"], { ns: "common" }),
|
|
136
138
|
description: t(
|
|
137
139
|
($) => $[getLegalEntityTypeBasedConstitutionalDocumentHeaderDescriptionTranslationkey(
|
|
138
140
|
legalEntityType
|
|
139
|
-
)]
|
|
141
|
+
)],
|
|
142
|
+
{ ns: "common" }
|
|
140
143
|
),
|
|
141
144
|
guidanceContent,
|
|
142
145
|
id,
|
|
@@ -2316,19 +2319,19 @@ export {
|
|
|
2316
2319
|
RegistrationAddress as R,
|
|
2317
2320
|
VAT_NUMBER_FIELD as V,
|
|
2318
2321
|
defaultFieldConfig as a,
|
|
2319
|
-
|
|
2320
|
-
|
|
2322
|
+
exemptFromRegistrationNumberDefaultFieldConfig as b,
|
|
2323
|
+
registrationNumberDefaultFieldMetadata as c,
|
|
2321
2324
|
defaultFieldMetadata as d,
|
|
2322
|
-
|
|
2323
|
-
|
|
2324
|
-
|
|
2325
|
-
|
|
2326
|
-
|
|
2327
|
-
|
|
2328
|
-
|
|
2329
|
-
|
|
2330
|
-
|
|
2325
|
+
exemptFromRegistrationNumberDefaultFieldMetadata as e,
|
|
2326
|
+
getDefaultRegistrationNumberType as f,
|
|
2327
|
+
getDefaultVatNumberType as g,
|
|
2328
|
+
registrationNumberDefaultFieldConfig as h,
|
|
2329
|
+
doingBusinessAsFieldMetadata as i,
|
|
2330
|
+
doingBusinessAsAbsentFieldMetadata as j,
|
|
2331
|
+
DBANameField as k,
|
|
2332
|
+
BusinessRegistrationNumberField as l,
|
|
2333
|
+
VatNumberField as m,
|
|
2331
2334
|
inferCompanyRegistrationNumberType as n,
|
|
2332
|
-
|
|
2335
|
+
registrationAddressFields as r,
|
|
2333
2336
|
vatAbsenceReasonMetadata as v
|
|
2334
2337
|
};
|
|
@@ -2,19 +2,20 @@
|
|
|
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] = "66754cbd-3b01-4841-b2e1-5ee790fe4ca3", e._sentryDebugIdIdentifier = "sentry-dbid-66754cbd-3b01-4841-b2e1-5ee790fe4ca3");
|
|
6
6
|
} catch (e) {
|
|
7
7
|
}
|
|
8
8
|
}
|
|
9
9
|
;
|
|
10
10
|
import { jsx, jsxs } from "preact/jsx-runtime";
|
|
11
11
|
import { useState } from "preact/hooks";
|
|
12
|
-
import { b as useApiContext,
|
|
13
|
-
import {
|
|
14
|
-
import { H as Header } from "./CountryField-
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
12
|
+
import { b as useApiContext, aD as useMutation, k as httpPost, u as useTranslation } from "./StoreProvider-DX9X_rtC.js";
|
|
13
|
+
import { C as Checkbox } from "./analytics-CSO2dqDO.js";
|
|
14
|
+
import { H as Header } from "./CountryField-DpZS-UHE.js";
|
|
15
|
+
import { L as LoaderWrapper } from "./useForm-Dj2YKs6k.js";
|
|
16
|
+
import { u as useToastContext } from "./useToastContext-9176-zEj.js";
|
|
17
|
+
import { A as ActionBar } from "./FormNavigation-BVFCNan3.js";
|
|
18
|
+
import { D as DropinLayout } from "./OnboardingDropinComponent-CR_pOocw.js";
|
|
18
19
|
const confirmReview = async (legalEntityId, baseUrl) => {
|
|
19
20
|
return httpPost({
|
|
20
21
|
baseUrl,
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
;
|
|
2
|
+
{
|
|
3
|
+
try {
|
|
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] = "33bb278b-eb15-42f7-9176-053b4baa22e5", e._sentryDebugIdIdentifier = "sentry-dbid-33bb278b-eb15-42f7-9176-053b4baa22e5");
|
|
6
|
+
} catch (e) {
|
|
7
|
+
}
|
|
8
|
+
}
|
|
9
|
+
;
|
|
10
|
+
import { u as useTranslation, c as useLegalEntity, R as ROOT_LE, X as useExperimentsContext, a as addResourceBundles, L as Loader, z as isPartOfTrustFromLegalEntity, J as EntityTypes, g as getLegalEntityCountry, M as TaskTypes, _ as __variableDynamicImportRuntimeHelper } from "./StoreProvider-DX9X_rtC.js";
|
|
11
|
+
import { jsx } from "preact/jsx-runtime";
|
|
12
|
+
import { a as useAccountHolder, b as useCapabilityProblems, g as getProblemsForEntity } from "./fieldConfigurations-QIDm3nkC.js";
|
|
13
|
+
import { B as BusinessDetailsMultiformDropin, a as BusinessDetailsDropin } from "./BusinessDetailsMultiformDropin-FeI19Yeu.js";
|
|
14
|
+
const RootBusinessDetailsPage = ({
|
|
15
|
+
onSubmit,
|
|
16
|
+
handleHomeClick
|
|
17
|
+
}) => {
|
|
18
|
+
const { i18n } = useTranslation();
|
|
19
|
+
const { accountHolder } = useAccountHolder();
|
|
20
|
+
const { data: rootLe } = useLegalEntity(ROOT_LE);
|
|
21
|
+
const capabilityProblems = useCapabilityProblems();
|
|
22
|
+
const { isExperimentEnabled } = useExperimentsContext();
|
|
23
|
+
addResourceBundles(i18n, i18n.language, [
|
|
24
|
+
{ ns: "business", importFn: () => __variableDynamicImportRuntimeHelper(/* @__PURE__ */ Object.assign({ "../language/bg-BG.json": () => import("./bg-BG-fr-xfUBV.js"), "../language/cs-CZ.json": () => import("./cs-CZ-C0sNB1Fm.js"), "../language/da-DK.json": () => import("./da-DK-8dk9Q_Wk.js"), "../language/de-DE.json": () => import("./de-DE-CCyKie8B.js"), "../language/el-GR.json": () => import("./el-GR-D7zMcBtK.js"), "../language/en-US.json": () => import("./en-US-BwDZ0WHW.js"), "../language/es-ES.json": () => import("./es-ES-JvAvmB2A.js"), "../language/et-EE.json": () => import("./et-EE-SJf3_Ega.js"), "../language/fi-FI.json": () => import("./fi-FI-Cy2hAl0B.js"), "../language/fr-FR.json": () => import("./fr-FR-BmW46mYd.js"), "../language/hr-HR.json": () => import("./hr-HR-c1Si_0s4.js"), "../language/hu-HU.json": () => import("./hu-HU-CibGC8KY.js"), "../language/it-IT.json": () => import("./it-IT-BMjuva_2.js"), "../language/ja-JP.json": () => import("./ja-JP-Cr_qjpZ2.js"), "../language/lt-LT.json": () => import("./lt-LT-DjNjg3Pl.js"), "../language/lv-LV.json": () => import("./lv-LV-BpRfRfMz.js"), "../language/nl-NL.json": () => import("./nl-NL-oaBDOlm6.js"), "../language/no-NO.json": () => import("./no-NO-BTrfxWS7.js"), "../language/pl-PL.json": () => import("./pl-PL-C72GTDxW.js"), "../language/pt-BR.json": () => import("./pt-BR-CtFCi7U4.js"), "../language/pt-PT.json": () => import("./pt-PT-XAn7WGle.js"), "../language/ro-RO.json": () => import("./ro-RO-qX8X1Q1m.js"), "../language/sk-SK.json": () => import("./sk-SK-CjdK4BKW.js"), "../language/sl-SI.json": () => import("./sl-SI-lPxRRPsh.js"), "../language/sv-SE.json": () => import("./sv-SE-BPpQ-05i.js") }), `../language/${i18n.language}.json`, 3) },
|
|
25
|
+
{
|
|
26
|
+
ns: "businessLines",
|
|
27
|
+
importFn: () => __variableDynamicImportRuntimeHelper(/* @__PURE__ */ Object.assign({ "../../BusinessLines/language/bg-BG.json": () => import("./bg-BG-BIOMFPaW.js"), "../../BusinessLines/language/cs-CZ.json": () => import("./cs-CZ-DNWTRefA.js"), "../../BusinessLines/language/da-DK.json": () => import("./da-DK-D-PlwKvZ.js"), "../../BusinessLines/language/de-DE.json": () => import("./de-DE-4GAd_srm.js"), "../../BusinessLines/language/el-GR.json": () => import("./el-GR-Ddnh0NhQ.js"), "../../BusinessLines/language/en-US.json": () => import("./en-US-BCFNoF5y.js"), "../../BusinessLines/language/es-ES.json": () => import("./es-ES-C4lENXHH.js"), "../../BusinessLines/language/et-EE.json": () => import("./et-EE-3EQr-1cj.js"), "../../BusinessLines/language/fi-FI.json": () => import("./fi-FI-Byvvcxxq.js"), "../../BusinessLines/language/fr-FR.json": () => import("./fr-FR-E_UubsZ-.js"), "../../BusinessLines/language/hr-HR.json": () => import("./hr-HR-TVOgDkBf.js"), "../../BusinessLines/language/hu-HU.json": () => import("./hu-HU-DRONW_47.js"), "../../BusinessLines/language/it-IT.json": () => import("./it-IT-DuBLJIdz.js"), "../../BusinessLines/language/ja-JP.json": () => import("./ja-JP-CJ_j_HAA.js"), "../../BusinessLines/language/lt-LT.json": () => import("./lt-LT-CBBDNCnp.js"), "../../BusinessLines/language/lv-LV.json": () => import("./lv-LV-CtIe38WU.js"), "../../BusinessLines/language/nl-NL.json": () => import("./nl-NL-CE4l8R5l.js"), "../../BusinessLines/language/no-NO.json": () => import("./no-NO-B1_YJlMP.js"), "../../BusinessLines/language/pl-PL.json": () => import("./pl-PL-DGYFY42P.js"), "../../BusinessLines/language/pt-BR.json": () => import("./pt-BR-Co8OqKh-.js"), "../../BusinessLines/language/pt-PT.json": () => import("./pt-PT-pKLoM66X.js"), "../../BusinessLines/language/ro-RO.json": () => import("./ro-RO-D3rQ93wa.js"), "../../BusinessLines/language/sk-SK.json": () => import("./sk-SK-CmH1I1tp.js"), "../../BusinessLines/language/sl-SI.json": () => import("./sl-SI-hnlbW1OT.js"), "../../BusinessLines/language/sv-SE.json": () => import("./sv-SE-7Cbo1oic.js") }), `../../BusinessLines/language/${i18n.language}.json`, 5)
|
|
28
|
+
}
|
|
29
|
+
]);
|
|
30
|
+
if (!rootLe) {
|
|
31
|
+
return /* @__PURE__ */ jsx(Loader, {});
|
|
32
|
+
}
|
|
33
|
+
const hasTrust = accountHolder === "aTrust" || isPartOfTrustFromLegalEntity(rootLe);
|
|
34
|
+
const problems = capabilityProblems ? getProblemsForEntity(capabilityProblems, EntityTypes.LEGAL_ENTITY, rootLe.id) : void 0;
|
|
35
|
+
return isExperimentEnabled("EnableBusinessDetailsMultiForm") ? /* @__PURE__ */ jsx(
|
|
36
|
+
BusinessDetailsMultiformDropin,
|
|
37
|
+
{
|
|
38
|
+
taskType: TaskTypes.BUSINESS_DETAILS,
|
|
39
|
+
taskName: hasTrust ? "businessTrusteeDetails" : "businessDetails",
|
|
40
|
+
legalEntityResponse: rootLe,
|
|
41
|
+
problems,
|
|
42
|
+
country: getLegalEntityCountry(rootLe),
|
|
43
|
+
onSubmit,
|
|
44
|
+
handleHomeClick
|
|
45
|
+
}
|
|
46
|
+
) : /* @__PURE__ */ jsx(
|
|
47
|
+
BusinessDetailsDropin,
|
|
48
|
+
{
|
|
49
|
+
taskType: TaskTypes.BUSINESS_DETAILS,
|
|
50
|
+
taskName: hasTrust ? "businessTrusteeDetails" : "businessDetails",
|
|
51
|
+
legalEntityResponse: rootLe,
|
|
52
|
+
problems,
|
|
53
|
+
country: getLegalEntityCountry(rootLe),
|
|
54
|
+
onSubmit,
|
|
55
|
+
handleHomeClick
|
|
56
|
+
}
|
|
57
|
+
);
|
|
58
|
+
};
|
|
59
|
+
export {
|
|
60
|
+
RootBusinessDetailsPage
|
|
61
|
+
};
|