@adyen/kyc-components 4.5.0-beta.3 → 4.6.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/README.md +31 -43
- package/dist/{AcceptTermsOfServiceComponent-DS5lVeS2.js → AcceptTermsOfServiceComponent-DTURkN9O.js} +17 -20
- package/dist/{AccountSetupRejected-CrrkpC_L.js → AccountSetupRejected-D7yqqcm_.js} +2 -2
- package/dist/{ActionBar-DGiAxBQc.js → ActionBar-CdFYb-7S.js} +2 -2
- package/dist/{Address-QUk_DIDw.js → Address-BkeFTMl-.js} +16 -16
- package/dist/{Avatar-Bdr-aKwa.js → Avatar-BpQFX0rJ.js} +2 -2
- package/dist/{BusinessFinancingComponent-GhSoq2f5.js → BusinessFinancingComponent-CshEgNjO.js} +5 -5
- package/dist/{BusinessFinancingDropin-C_WHAPNZ.js → BusinessFinancingDropin-B2kKDCNB.js} +31 -34
- package/dist/{BusinessFinancingPage-D5QF6yGF.js → BusinessFinancingPage-96zTF7BJ.js} +4 -4
- package/dist/{BusinessTypeSelectionPage-SlmZ8W6Z.js → BusinessTypeSelectionPage-BVucjw8H.js} +9 -14
- package/dist/{Checkbox-CVgXHCXa.js → Checkbox-Dwf4zXgj.js} +2 -2
- package/dist/{Confirm-D-PAtCeY.js → Confirm-DOjzHnlC.js} +3 -3
- package/dist/{ConstitutionalDocument-VGt3Ival.js → ConstitutionalDocument-C4HWFtJ-.js} +336 -92
- package/dist/{ContactDetails-BRue4wdA.js → ContactDetails-ByrH32Jo.js} +12 -7
- package/dist/{ContextGuidance-D0ocfR99.js → ContextGuidance-BUczCMV3.js} +2 -2
- package/dist/{CountryField-BLi_qwam.js → CountryField-C9nbUmpe.js} +3 -3
- package/dist/{CreateIndividualComponent-DMv5c_xv.js → CreateIndividualComponent-AOb8RP8N.js} +6 -6
- package/dist/{CreateTransferInstrumentComponent-DnpOUL-n.js → CreateTransferInstrumentComponent-BBytn3E3.js} +5 -5
- package/dist/{Currency-BsrDrdBC.js → Currency-B1ApVUnP.js} +7 -7
- package/dist/{CustomerSupport-b_-5G3qJ.js → CustomerSupport-DDtZA5jI.js} +11 -16
- package/dist/{DebugModal-DjpKYjuZ.js → DebugModal-wXFq4cg1.js} +127 -98
- package/dist/DecisionMakerDetails-Up9HU_qy.js +275 -0
- package/dist/{DecisionMakerDetailsPage-BVXHUUbk.js → DecisionMakerDetailsPage-OeI7y1aX.js} +10 -10
- package/dist/{DecisionMakers-DeONgKQi.js → DecisionMakers-5bUJ4S4V.js} +22 -259
- package/dist/{Dropzone-DlNCqoEA.js → Dropzone-Bf8v-4iJ.js} +4 -4
- package/dist/{EmbeddedStatus-CThA9coI.js → EmbeddedStatus-DQmqyOzv.js} +3 -3
- package/dist/{EndStateLayout-B2sgz2qk.js → EndStateLayout-DZgYKmw6.js} +2 -2
- package/dist/{EntityAssociation-55Vdhfnc.js → EntityAssociation-Dc8O6xJv.js} +5 -5
- package/dist/{EntityGuidanceStatus-DvXXWkQm.js → EntityGuidanceStatus-DhCqUWGF.js} +4 -4
- package/dist/{ErrorPanel-fJFieJW5.js → ErrorPanel-4HIDH4sr.js} +11 -12
- package/dist/{Field-DFVyJCnU.js → Field-CWq5XOh3.js} +2 -2
- package/dist/{FormNavigation-BnD7M0ZR.js → FormNavigation-CDlQZRNb.js} +3 -3
- package/dist/{Individual.rules-DhmI9c_H.js → Individual.rules-BhSXCdTl.js} +12 -12
- package/dist/{IndividualDropin-Cd6ibss7.js → IndividualDropin-DS8kUrXB.js} +252 -97
- package/dist/{InputDate-CJd5gtE4.js → InputDate-C2NEOpK4.js} +1 -1
- package/dist/{InputText-DOcjqnWU.js → InputText-20pWI3ja.js} +2 -2
- package/dist/{Introduction-CCiAPEBy.js → Introduction-D6x5z2oe.js} +4 -9
- package/dist/InvitedDecisionMakerComponent-Bg-DMehe.js +211 -0
- package/dist/{JpAddress-CE_XMo18.js → JpAddress-CX4IfNRB.js} +11 -11
- package/dist/{LandingLayout-By2sw7EJ.js → LandingLayout-y-X0NrR1.js} +2 -2
- package/dist/{LegalCompanyNameField-CRuYg5wZ.js → LegalCompanyNameField-lEerISaT.js} +16 -16
- package/dist/{LegalRepresentativeDetailsPage-B-sKbq-f.js → LegalRepresentativeDetailsPage-C6dOsu1g.js} +5 -5
- package/dist/{Link-CuNSyhGM.js → Link-DeFoaStC.js} +2 -2
- package/dist/{ListItem-DDWbswz5.js → ListItem-BFxtRiVb.js} +3 -3
- package/dist/{LoaderWrapper-BRRScJ6L.js → LoaderWrapper-Bh1b67kY.js} +2 -2
- package/dist/{ManageIndividualComponent-C9_75083.js → ManageIndividualComponent-DHYNg_KN.js} +5 -5
- package/dist/{ManageTermsOfServiceComponent-DG0TORHP.js → ManageTermsOfServiceComponent-BNzELB7A.js} +4 -4
- package/dist/{ManageTransferInstrumentComponent-CLNbW9Eu.js → ManageTransferInstrumentComponent-9r84TFsu.js} +11 -11
- package/dist/{MaskedInput-Nc3f0C5E.js → MaskedInput-DPSvsK95.js} +5 -5
- package/dist/{MaybeModal-DIAfZteC.js → MaybeModal-BbrppFfg.js} +3 -3
- package/dist/{Modal-BbOWPzOL.js → Modal-CAVcW_pH.js} +2 -2
- package/dist/{Name-CqLg9Cgl.js → Name-eQhc9Vta.js} +4 -4
- package/dist/{NewSummary-DVAAzuYY.js → NewSummary-B_xfd8vG.js} +5 -5
- package/dist/{OnboardingDropinComponent-CENd8Z2c.js → OnboardingDropinComponent-BRZuLCE8.js} +145 -218
- package/dist/{PayoutDetailsDropin-CFVWwEAj.js → PayoutDetailsDropin-B6ZMIVid.js} +183 -1065
- package/dist/{PayoutDetailsPage-BsedgQRO.js → PayoutDetailsPage-BSzf6sev.js} +6 -6
- package/dist/{RadioGroup-BHWO_9CE.js → RadioGroup-BZ-EfNXM.js} +2 -2
- package/dist/{Review-BOC-9SyM.js → Review-BVeMAC7t.js} +6 -6
- package/dist/{RootBusinessDetailsPage-JJItfLAJ.js → RootBusinessDetailsPage-OlgTozou.js} +6 -6
- package/dist/{RootBusinessLinesPage-I_Kc7SM2.js → RootBusinessLinesPage-CUwKkzZU.js} +93 -91
- package/dist/{RootIndividualDetailsPage-DvVfX3bb.js → RootIndividualDetailsPage-CqP8gdvk.js} +7 -6
- package/dist/{Select-Bzd3eiR-.js → Select-DSLn5CCG.js} +4 -4
- package/dist/{SignPCIComponent-BPnNDL64.js → SignPCIComponent-CT6GL442.js} +12 -19
- package/dist/{SingpassSelection-q8FAS1vx.js → SingpassSelection-BORgM-de.js} +144 -7
- package/dist/{SoleProprietorshipPage-B-FSfnle.js → SoleProprietorshipPage-BylQa2F1.js} +5 -5
- package/dist/{SourceOfFundsPage-DvlFH4gO.js → SourceOfFundsPage-Br-FaeUd.js} +270 -98
- package/dist/{StepProgressIndicator-Dsiw-MP9.js → StepProgressIndicator-ZZsrHrtb.js} +2 -2
- package/dist/{StoreProvider-CXQKtV9j.js → StoreProvider-lJLpl6iE.js} +155 -148
- package/dist/{Summary-BqdWHkYK.js → Summary-DdFh8LL0.js} +25 -22
- package/dist/{TaxInformationField-DjhxUBZp.js → TaxInformationField-5nazrzc4.js} +568 -795
- package/dist/{TaxReportingDropin-DcJMROxc.js → TaxReportingDropin-DAeAPOI5.js} +26 -26
- package/dist/{TextArea-DP6ekXiw.js → TextArea-D0eJRv8v.js} +2 -2
- package/dist/{TileGroup-Dkfun-CR.js → TileGroup-C8YY0Xwv.js} +3 -3
- package/dist/{TrustDetailsPage-BafxOk5q.js → TrustDetailsPage-BHo4SFbD.js} +64 -65
- package/dist/{TrustMemberCompanyPage-BAFB5lPA.js → TrustMemberCompanyPage-CZMF952c.js} +7 -7
- package/dist/{TrustMemberIndividualPage-C8BnbYT6.js → TrustMemberIndividualPage-RSIXbPaf.js} +6 -6
- package/dist/{TrustMemberRoleAndTypePage-CaUsFJV4.js → TrustMemberRoleAndTypePage-BehlWyo7.js} +27 -27
- package/dist/{TrustMembersOverview-CHdhlDZz.js → TrustMembersOverview-KI0J7peC.js} +16 -18
- package/dist/{UnincorporatedPartnershipIndividualPage-Ba-CzecE.js → UnincorporatedPartnershipIndividualPage-CNf-sPP4.js} +5 -5
- package/dist/{UnincorporatedPartnershipMemberCompanyPage-B5d0Xi_A.js → UnincorporatedPartnershipMemberCompanyPage-OyKeY30-.js} +6 -6
- package/dist/{UnincorporatedPartnershipMemberRoleAndTypePage-BkmlxcZO.js → UnincorporatedPartnershipMemberRoleAndTypePage-Bt21JX-F.js} +11 -11
- package/dist/{UnincorporatedPartnershipMembersOverview-Ce-lMF7X.js → UnincorporatedPartnershipMembersOverview-DdTGn8QH.js} +7 -7
- package/dist/{VerificationErrorAlert-DLtKR4md.js → VerificationErrorAlert-ChGZqC_p.js} +3 -3
- package/dist/{ViewVerificationStatusComponent-BBRWKZ82.js → ViewVerificationStatusComponent-9RUetbsi.js} +3 -3
- package/dist/adyen-business-financing.js +4 -4
- package/dist/adyen-individual-configuration.js +4 -4
- package/dist/adyen-individual-status.js +4 -4
- package/dist/adyen-invited-decision-maker.js +4 -117
- package/dist/adyen-kyc-components.js +17 -17
- package/dist/adyen-onboarding.js +4 -4
- package/dist/adyen-terms-of-service-management.js +4 -4
- package/dist/adyen-terms-of-service-status.js +4 -4
- package/dist/adyen-transfer-instrument-configuration.js +4 -4
- package/dist/adyen-transfer-instrument-management.js +4 -4
- package/dist/adyen-verification-status.js +4 -4
- package/dist/{bafinUtils-XSAIp09_.js → bafinUtils-m56sOqio.js} +2 -2
- package/dist/{commonValidators-CljVBrfq.js → commonValidators-cEWuPs2I.js} +1 -1
- package/dist/{dropinUtils-CH3eNe0c.js → dropinUtils-B-qE8vvG.js} +53 -9
- package/dist/en-US-CJDkXFZ6.js +13 -0
- package/dist/en-US-CTbVLoNF.js +13 -0
- package/dist/en-US-CfazE4ht.js +13 -0
- package/dist/{en-US-G607HIyo.js → en-US-DPoDE0uz.js} +7 -7
- package/dist/en-US-DrUYyPhF.js +13 -0
- package/dist/{formUtils-DB8YKyRe.js → formUtils-DjInEErz.js} +3 -3
- package/dist/{getName-BPMpbqYz.js → getName-CzAV6RHp.js} +2 -2
- package/dist/{getProblemsForEntity-DwUAANdb.js → getProblemsForEntity-CVzYoCCC.js} +2 -2
- package/dist/getTrustedFields-BeaCYGD7.js +104 -0
- package/dist/{isEmpty-dubbfkXA.js → isEmpty-CRqBruDc.js} +1 -1
- package/dist/japanSupportUtils-BK4rTASp.js +16 -0
- package/dist/{localizeDateString-CCdgjvGC.js → localizeDateString-BSZiJcEb.js} +2 -2
- package/dist/{mapExistingFile-B-9zqjaD.js → mapExistingFile-BcvOzQNH.js} +3 -76
- package/dist/{mapJpAddressSchemaToAddressLocalizations-Bw7g_drS.js → mapJpAddressSchemaToAddressLocalizations-BgHjkrJG.js} +2 -36
- package/dist/{mapLegalEntityToIndividualSchema-BYLnHEky.js → mapLegalEntityToIndividualSchema-_HlywUjg.js} +4 -4
- package/dist/{mapTransferInstrumentToPayoutAccount-C6nCXEDa.js → mapTransferInstrumentToPayoutAccount-69DkBhXm.js} +2 -2
- package/dist/omitObscuredFieldsIfUnchanged-tsdNkCyN.js +29 -0
- package/dist/{patternValidators-7cFwtrvG.js → patternValidators-DuOaKe_S.js} +2 -2
- package/dist/{process-field-configurations-DwVC3S7h.js → process-field-configurations-DcWH0t4d.js} +2 -2
- package/dist/{resolveEnvironment-BBj5_3EK.js → resolveEnvironment-Bs-ygpN1.js} +17 -24
- package/dist/{roleMetadata-DNU8T8lg.js → roleMetadata-B-2OBUCV.js} +3 -3
- package/dist/style.css +230 -275
- package/dist/styles-CLV89_hH.js +230 -275
- package/dist/types/api/toggles/useToggles.d.ts +2 -1
- package/dist/types/components/BankAccount/forms/BankDocument/BankDocumentClassification.d.ts +2 -1
- package/dist/types/components/BankAccount/forms/BankDocument/types.d.ts +0 -29
- package/dist/types/components/BankAccount/forms/BankVerification/BankVerification.d.ts +1 -1
- package/dist/types/components/BankAccount/forms/BankVerification/verification/{widget → overlay}/types.d.ts +4 -14
- package/dist/types/components/BankAccount/forms/PayoutVerificationMethod/payoutVerificationMethodMetadata.d.ts +1 -1
- package/dist/types/components/BankAccount/mapping/payoutKeyMappings.d.ts +4 -5
- package/dist/types/components/Business/forms/rules.d.ts +1 -1
- package/dist/types/components/Business/mapping/businessDetails/mapBusinessDetailsSchemaToLegalEntity.d.ts +2 -2
- package/dist/types/components/Business/tasks/BusinessDetailsDropin/BusinessDetailsGettingStarted.d.ts +6 -0
- package/dist/types/components/Business/tasks/BusinessDetailsDropin/types.d.ts +2 -2
- package/dist/types/components/Business/tasks/BusinessDetailsDropin/validate.d.ts +7 -5
- package/dist/types/components/Business/utils/companyUtil.d.ts +2 -2
- package/dist/types/components/Business/utils/formatDataForSummary.d.ts +3 -2
- package/dist/types/components/Business/utils/submit.d.ts +1 -1
- package/dist/types/components/Business/utils/useCompanySearchFeature.d.ts +5 -0
- package/dist/types/components/BusinessLines/forms/SalesChannelsForm/types.d.ts +1 -1
- package/dist/types/components/BusinessLines/tasks/BusinessLines/BusinessLinesDropin.d.ts +1 -1
- package/dist/types/components/Contract/tasks/PciDropin/PciDropin.d.ts +1 -1
- package/dist/types/components/EFP/mapping/businessFinancingKeyMappings.d.ts +9 -9
- package/dist/types/components/EFP/tasks/SourceOfFundsDropin/types.d.ts +11 -0
- package/dist/types/components/EFP/tasks/SourceOfFundsDropin/utils.d.ts +15 -0
- package/dist/types/components/Individual/forms/AdditionalPersonalDetails/validate.d.ts +5 -4
- package/dist/types/components/Individual/forms/BasicDetails/validate.d.ts +3 -3
- package/dist/types/components/Individual/forms/IdNowVerificationModal/IFrameWidget.d.ts +9 -0
- package/dist/types/components/Individual/forms/Individual.rules.d.ts +1 -1
- package/dist/types/components/Individual/mapping/mapIndividualSchemaToLegalEntity.d.ts +2 -2
- package/dist/types/components/Individual/tasks/DecisionMakers/DecisionMakerDetails/DecisionMakerDetails.types.d.ts +2 -2
- package/dist/types/components/Individual/tasks/DecisionMakers/InvitedDecisionMaker/InvitedDecisionMakerSubmitSuccess/InvitedDecisionMakerSubmitSuccess.d.ts +6 -1
- package/dist/types/components/Individual/tasks/DecisionMakers/hooks/useTaskStatusWithTimeout.d.ts +15 -0
- package/dist/types/components/Individual/tasks/DecisionMakers/utils.d.ts +14 -0
- package/dist/types/components/Shared/FormFlow/FormFlow.d.ts +1 -1
- package/dist/types/components/Shared/FormFlow/FormFlow.types.d.ts +1 -0
- package/dist/types/components/Shared/FormWrapper/FormWrapper.d.ts +2 -1
- package/dist/types/components/Shared/devex/DebugListener/DebugTogglesAndSettings.d.ts +8 -0
- package/dist/types/components/Shared/devex/DebugListener/debugInfo.d.ts +2 -1
- package/dist/types/components/Shared/fields/BusinessRegistrationNumberField/RegistrationNumberTypeSelector/CompanyRegistrationNumberTypeSelector.d.ts +12 -0
- package/dist/types/components/Shared/fields/{IdFieldTypeSelector → BusinessRegistrationNumberField/RegistrationNumberTypeSelector}/getDefaultRegistrationNumberType.d.ts +4 -4
- package/dist/types/components/Shared/fields/{IdFieldTypeSelector → BusinessRegistrationNumberField/RegistrationNumberTypeSelector}/inferCompanyRegistrationNumberType.d.ts +3 -3
- package/dist/types/components/Shared/fields/BusinessRegistrationNumberField/fieldConfig.d.ts +1 -1
- package/dist/types/components/Shared/fields/BusinessRegistrationNumberField/registrationNumberTypes.d.ts +92 -0
- package/dist/types/components/Shared/fields/BusinessRegistrationNumberField/types.d.ts +8 -1
- package/dist/types/components/Shared/fields/IdFieldTypeSelector/countryIdNumberTypes.d.ts +0 -483
- package/dist/types/components/Shared/fields/LegalCompanyNameField/LegalCompanyNameField.d.ts +1 -1
- package/dist/types/components/Shared/fields/LegalCompanyNameField/fieldConfig.d.ts +2 -2
- package/dist/types/components/Shared/fields/LegalCompanyNameField/types.d.ts +1 -1
- package/dist/types/components/Shared/fields/LocalizedNameFields/validate.d.ts +2 -2
- package/dist/types/components/Shared/fields/PhoneField/PhoneField.d.ts +1 -1
- package/dist/types/components/Shared/fields/PhoneField/types.d.ts +2 -0
- package/dist/types/components/Shared/fields/{IdFieldTypeSelector → TaxInformationField/TaxIdNumberTypeSelector}/TaxIdNumberTypeSelector.d.ts +5 -5
- package/dist/types/components/Shared/fields/{IdFieldTypeSelector → TaxInformationField/TaxIdNumberTypeSelector}/getDefaultTaxIdNumberType.d.ts +5 -5
- package/dist/types/components/Shared/fields/{IdFieldTypeSelector → TaxInformationField/TaxIdNumberTypeSelector}/inferTaxIdNumberType.d.ts +5 -5
- package/dist/types/components/Shared/fields/TaxInformationField/fieldConfig.d.ts +1 -2
- package/dist/types/components/Shared/fields/TaxInformationField/taxIdNumberTypes.d.ts +232 -0
- package/dist/types/components/Shared/fields/TaxInformationField/types.d.ts +8 -0
- package/dist/types/components/Shared/fields/VatNumberField/VatNumberTypeSelector/VatNumberTypeSelector.d.ts +14 -0
- package/dist/types/components/Shared/fields/{IdFieldTypeSelector → VatNumberField/VatNumberTypeSelector}/getDefaultVatNumberType.d.ts +2 -2
- package/dist/types/components/Shared/fields/VatNumberField/VatNumberTypeSelector/inferVatNumberType.d.ts +3 -0
- package/dist/types/components/Shared/fields/VatNumberField/fieldConfig.d.ts +1 -2
- package/dist/types/components/Shared/fields/VatNumberField/types.d.ts +10 -1
- package/dist/types/components/Shared/fields/VatNumberField/vatNumberTypes.d.ts +149 -0
- package/dist/types/components/Shared/forms/Address/localized/jp/mapJpAddressSummary.d.ts +5 -0
- package/dist/types/components/Shared/forms/Address/utils.d.ts +6 -1
- package/dist/types/components/Shared/forms/Address/validate.d.ts +3 -3
- package/dist/types/components/Trust/mapping/mapLegalEntityToTrust.d.ts +2 -2
- package/dist/types/components/Trust/mapping/mapTrustToLegalEntity.d.ts +2 -2
- package/dist/types/components/Trust/tasks/TrustDropin/validate.d.ts +2 -2
- package/dist/types/components/UnincorporatedPartnership/mapping/mapLegalEntityToUnincorporatedPartnership.d.ts +2 -2
- package/dist/types/components/UnincorporatedPartnership/mapping/mapUnincorporatedPartnershipToLegalEntity.d.ts +2 -2
- package/dist/types/components/index.d.ts +2 -2
- package/dist/types/context/FormRouterContext/FormRouterContext.d.ts +5 -0
- package/dist/types/context/FormRouterContext/FormRouterContextProvider.d.ts +1 -1
- package/dist/types/context/FormRouterContext/types.d.ts +1 -0
- package/dist/types/context/FormRouterContext/useFormRouterContext.d.ts +4 -0
- package/dist/types/context/SettingsContext/types.d.ts +2 -0
- package/dist/types/context/ToggleContext/ToggleContext.d.ts +2 -0
- package/dist/types/context/ToggleContext/ToggleContextProvider.d.ts +9 -0
- package/dist/types/context/{ExperimentContext → ToggleContext}/types.d.ts +42 -32
- package/dist/types/context/ToggleContext/useToggleContext.d.ts +1 -0
- package/dist/types/core/EmbedShell/EmbedShell.d.ts +3 -3
- package/dist/types/core/UIElement/UIElement.d.ts +3 -2
- package/dist/types/core/models/api/organization.d.ts +1 -1
- package/dist/types/embeds/baseEmbedProps.d.ts +3 -3
- package/dist/types/hooks/useFormComposer.d.ts +1 -0
- package/dist/types/hooks/useLegalCompanyNameField/useLegalCompanyNameField.d.ts +1 -1
- package/dist/types/hooks/useTaskLandedEvent.d.ts +7 -0
- package/dist/types/language/types.d.ts +2 -9
- package/dist/types/language/utils.d.ts +2 -2
- package/dist/types/router/routeConfig.d.ts +1 -0
- package/dist/types/stores/globalStore/taskTypes.d.ts +1 -0
- package/dist/types/types/form-rules.d.ts +2 -2
- package/dist/types/utils/api/processCapabilitites.d.ts +1 -1
- package/dist/types/utils/entityStatusUtil.d.ts +1 -1
- package/dist/types/utils/japanSupportUtils.d.ts +2 -2
- package/dist/{types-DhUlsEM8.js → types-C4u-zy-W.js} +2 -2
- package/dist/{types-_ugkpUNx.js → types-CTwBMnPB.js} +46 -37
- package/dist/{types-WIEVtlxf.js → types-Cop44iUw.js} +2 -2
- package/dist/{types-CQ2p58-6.js → types-Dv0COrvY.js} +3 -2
- package/dist/{types-B1cAeZ6z.js → types-QKgg5_IB.js} +2 -2
- package/dist/{unincorporated-partnership-D_Hvup6D.js → unincorporated-partnership-DCtqSVs0.js} +2 -2
- package/dist/{useAssociatedLegalEntity-xIsKLPgB.js → useAssociatedLegalEntity-COa3bZhe.js} +2 -2
- package/dist/{useBusinessDetailsData-DY3S_sFD.js → useBusinessDetailsData-DslnLoRz.js} +443 -397
- package/dist/{useCreateLegalEntity-nQnGzyxT.js → useCreateLegalEntity-CO7qV3Sc.js} +2 -2
- package/dist/{useForm-z8JOaHhs.js → useForm-F0hPmSqd.js} +3 -3
- package/dist/{useFormContext-RXQcBWa4.js → useFormContext-EeYo1zte.js} +17 -8
- package/dist/{useGlobalData-C7bnGF9w.js → useGlobalData-DKxTj6bo.js} +24 -15
- package/dist/{useMultiForm-B3aQutEh.js → useMultiForm-CR9pqYjq.js} +4 -4
- package/dist/{useOnboardingStatus-BPMSNGFq.js → useOnboardingStatus-D2I19RDh.js} +2 -2
- package/dist/{useScenarios-JLoF0vib.js → useScenarios-BvV1t76w.js} +2 -2
- package/dist/{useTermsOfServiceStatus-CT2uqj2U.js → useTermsOfServiceStatus-C0uqYCFG.js} +2 -2
- package/dist/{useToastContext-uaSXDTxK.js → useToastContext-Dl59lP3Q.js} +2 -2
- package/dist/{useUnincorporatedPartnershipMembers-B072VZ5R.js → useUnincorporatedPartnershipMembers-BRQxcrvc.js} +5 -5
- package/dist/{useUpdateBusinessLines-eQMrdhxL.js → useUpdateBusinessLines-FG7FE2l9.js} +6 -6
- package/dist/{useUpdateLegalEntity-D6zwQLGJ.js → useUpdateLegalEntity-Dr3e1mG2.js} +3 -3
- package/dist/{utils-DWi_0PJi.js → utils-2-VlpJvY.js} +2 -2
- package/dist/{utils-B0FTCznm.js → utils-Bmx7w6cI.js} +6 -6
- package/dist/{utils-BK1GU68X.js → utils-CCjjhUUz.js} +53 -6
- package/dist/{utils-s4hGO4Wy.js → utils-CWrDCmo5.js} +22 -2
- package/dist/{utils-tIVH2DiA.js → utils-DCXRR-sY.js} +1 -1
- package/dist/{validate-DUFJExL5.js → validate-B--uGfCw.js} +1 -1
- package/dist/{validate-BWtZkcVH.js → validate-DdW_lr56.js} +3 -3
- package/dist/{validationError-BJcF0hPm.js → validationError-DmyvOY60.js} +2 -2
- package/package.json +1 -5
- package/dist/RadioGroupCard-DSlb2FZF.js +0 -152
- package/dist/en-US--1W760fR.js +0 -13
- package/dist/en-US-CKLQU2sJ.js +0 -13
- package/dist/en-US-CozY33On.js +0 -13
- package/dist/en-US-DLY20x1O.js +0 -13
- package/dist/iframeWidget-Bt9LHVFD.js +0 -234
- package/dist/instant-verification-UrnuHTYn.js +0 -40
- package/dist/japanSupportUtils-BhpDeLrA.js +0 -16
- package/dist/manual-verification-BO8zgAYT.js +0 -41
- package/dist/types/components/BankAccount/forms/BankDocument/BankDocument.d.ts +0 -5
- package/dist/types/components/BankAccount/forms/BankDocument/BankDocumentRequirements.d.ts +0 -9
- package/dist/types/components/BankAccount/forms/BankDocument/BankDocumentRequirementsModal.d.ts +0 -6
- package/dist/types/components/BankAccount/forms/BankVerification/verification/widget/BankVerificationWidget.d.ts +0 -3
- package/dist/types/components/BankAccount/forms/BankVerification/verification/widget/iframeWidget.d.ts +0 -32
- package/dist/types/components/Business/forms/FinancialInformation/formatFinancialInformationSummary.d.ts +0 -4
- package/dist/types/components/Business/utils/useCompanySearchExperiments.d.ts +0 -5
- package/dist/types/components/Shared/devex/DebugListener/DebugExperimentsAndSettings.d.ts +0 -7
- package/dist/types/components/Shared/fields/IdFieldTypeSelector/CompanyRegistrationNumberTypeSelector.d.ts +0 -20
- package/dist/types/components/Shared/fields/IdFieldTypeSelector/VatNumberTypeSelector.d.ts +0 -21
- package/dist/types/components/Shared/fields/IdFieldTypeSelector/inferVatNumberType.d.ts +0 -3
- package/dist/types/context/ExperimentContext/ExperimentsContext.d.ts +0 -2
- package/dist/types/context/ExperimentContext/ExperimentsContextProvider.d.ts +0 -8
- package/dist/types/context/ExperimentContext/useExperimentsContext.d.ts +0 -1
- package/dist/types/utils/bankVerification/dom.d.ts +0 -1
|
@@ -2,32 +2,32 @@
|
|
|
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] = "c8077a3f-6127-4e1d-b82b-eca387c656b9", e._sentryDebugIdIdentifier = "sentry-dbid-c8077a3f-6127-4e1d-b82b-eca387c656b9");
|
|
6
6
|
} catch (e) {
|
|
7
7
|
}
|
|
8
8
|
}
|
|
9
9
|
;
|
|
10
|
-
import { b as useApiContext,
|
|
10
|
+
import { b as useApiContext, k as httpGet, N as Typography, u as useTranslation, aB as Header, aQ as Trans, C as Alert, z as Icon, V as Button, B as IconButton, Y as TASK_STATUS_POLLING_INTERVAL_MS, ax as isEmpty$1, a as addResourceBundles, x as useAnalyticsContext, P as useLegalEntity, U as Loader, R as ROOT_LE, ae as createLogger, _ as __variableDynamicImportRuntimeHelper } from "./StoreProvider-lJLpl6iE.js";
|
|
11
11
|
import { jsx, jsxs, Fragment } from "preact/jsx-runtime";
|
|
12
12
|
import { useState, useRef, useEffect, useMemo, useCallback } from "preact/hooks";
|
|
13
|
-
import { a as useInvalidateRootLegalEntity } from "./useToastContext-
|
|
14
|
-
import { u as useUpdateLegalEntity } from "./useUpdateLegalEntity-
|
|
13
|
+
import { a as useInvalidateRootLegalEntity } from "./useToastContext-Dl59lP3Q.js";
|
|
14
|
+
import { u as useUpdateLegalEntity } from "./useUpdateLegalEntity-Dr3e1mG2.js";
|
|
15
15
|
import { useQuery } from "@tanstack/preact-query";
|
|
16
|
-
import { u as useFormContext, F as FormContextProvider, a as FormFlow } from "./useFormContext-
|
|
17
|
-
import { g as getRequiredForms, a as addValidityToForms, u as useFormComposer } from "./dropinUtils-
|
|
18
|
-
import { u as useMultiForm } from "./useMultiForm-
|
|
16
|
+
import { u as useFormContext, F as FormContextProvider, a as FormFlow } from "./useFormContext-EeYo1zte.js";
|
|
17
|
+
import { g as getRequiredForms, a as addValidityToForms, u as useFormComposer } from "./dropinUtils-B-qE8vvG.js";
|
|
18
|
+
import { u as useMultiForm } from "./useMultiForm-CR9pqYjq.js";
|
|
19
19
|
import { signal } from "@preact/signals";
|
|
20
20
|
import { a as getFormProps } from "./getProps-Cc3J2-z9.js";
|
|
21
|
-
import { F as Field } from "./Field-
|
|
22
|
-
import { L as Link } from "./Link-
|
|
23
|
-
import { R as RadioGroup } from "./RadioGroup-
|
|
21
|
+
import { F as Field } from "./Field-CWq5XOh3.js";
|
|
22
|
+
import { L as Link } from "./Link-DeFoaStC.js";
|
|
23
|
+
import { R as RadioGroup } from "./RadioGroup-BZ-EfNXM.js";
|
|
24
24
|
import { lazy } from "preact/compat";
|
|
25
|
-
import {
|
|
25
|
+
import { u as useTaskStatus } from "./getTrustedFields-BeaCYGD7.js";
|
|
26
26
|
import { C as Card } from "./Card-OQuFzmxm.js";
|
|
27
|
-
import { I as Image } from "./unincorporated-partnership-
|
|
27
|
+
import { I as Image } from "./unincorporated-partnership-DCtqSVs0.js";
|
|
28
28
|
import { S as StructuredList } from "./StructuredList-CNha20ka.js";
|
|
29
|
-
import { L as LandingLayout } from "./LandingLayout-
|
|
30
|
-
import { i as isEmpty } from "./isEmpty-
|
|
29
|
+
import { L as LandingLayout } from "./LandingLayout-y-X0NrR1.js";
|
|
30
|
+
import { i as isEmpty } from "./isEmpty-CRqBruDc.js";
|
|
31
31
|
const getTaxClassification = async (legalEntityId, baseUrl) => {
|
|
32
32
|
return httpGet({
|
|
33
33
|
baseUrl,
|
|
@@ -362,11 +362,6 @@ function TaxReportingDropin({ problems, handleHomeClick }) {
|
|
|
362
362
|
useEffect(() => {
|
|
363
363
|
clearTaxClassificationErrorMessage();
|
|
364
364
|
}, []);
|
|
365
|
-
useEffect(() => {
|
|
366
|
-
userEvents.addTaskEvent("Landed on page", {
|
|
367
|
-
actionType: "start"
|
|
368
|
-
});
|
|
369
|
-
}, [userEvents]);
|
|
370
365
|
const taxReportingClassification = useMemo(
|
|
371
366
|
() => ({
|
|
372
367
|
taxClassification: {
|
|
@@ -454,13 +449,17 @@ function TaxReportingDropin({ problems, handleHomeClick }) {
|
|
|
454
449
|
const handleToggleFormVisible = () => {
|
|
455
450
|
setFormVisible(!formVisible);
|
|
456
451
|
};
|
|
457
|
-
const {
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
452
|
+
const {
|
|
453
|
+
handleNextClick,
|
|
454
|
+
activeForm,
|
|
455
|
+
gotoFormByFormIndex,
|
|
456
|
+
gotoFormByFormId,
|
|
457
|
+
steps
|
|
458
|
+
} = useFormComposer({
|
|
459
|
+
problems,
|
|
460
|
+
forms,
|
|
461
|
+
onSubmit: handleSubmit
|
|
462
|
+
});
|
|
464
463
|
return /* @__PURE__ */ jsx("div", { className: styles.taxReportingDropin, children: isLoading || isLoadingTaxRecommendationData ? /* @__PURE__ */ jsx(Loader, {}) : /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
465
464
|
!formVisible && /* @__PURE__ */ jsx(
|
|
466
465
|
TaxReportingGettingStarted,
|
|
@@ -477,6 +476,7 @@ function TaxReportingDropin({ problems, handleHomeClick }) {
|
|
|
477
476
|
forms,
|
|
478
477
|
activeForm,
|
|
479
478
|
gotoFormByFormIndex,
|
|
479
|
+
gotoFormByFormId,
|
|
480
480
|
handleBackClick: handleToggleFormVisible,
|
|
481
481
|
handleCancelClick: handleHomeClick,
|
|
482
482
|
handleNextClick,
|
|
@@ -2,7 +2,7 @@
|
|
|
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] = "17ca705a-8302-4021-a835-046ad5d01e53", e._sentryDebugIdIdentifier = "sentry-dbid-17ca705a-8302-4021-a835-046ad5d01e53");
|
|
6
6
|
} catch (e) {
|
|
7
7
|
}
|
|
8
8
|
}
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
import { jsxs, Fragment, jsx } from "preact/jsx-runtime";
|
|
11
11
|
import cx from "classnames";
|
|
12
12
|
import { useState } from "preact/hooks";
|
|
13
|
-
import {
|
|
13
|
+
import { ae as createLogger, u as useTranslation, x as useAnalyticsContext } from "./StoreProvider-lJLpl6iE.js";
|
|
14
14
|
import { d as debouncedInputEvent } from "./debouncedInputEvent-Cv2S512Y.js";
|
|
15
15
|
const convertFullToHalf = (str) => str.replace(/[!-~]/g, (r) => String.fromCharCode(r.charCodeAt(0) - 65248));
|
|
16
16
|
const logger = createLogger();
|
|
@@ -2,17 +2,17 @@
|
|
|
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] = "645c072c-1e29-4b27-946b-7343a25e94ef", e._sentryDebugIdIdentifier = "sentry-dbid-645c072c-1e29-4b27-946b-7343a25e94ef");
|
|
6
6
|
} catch (e) {
|
|
7
7
|
}
|
|
8
8
|
}
|
|
9
9
|
;
|
|
10
10
|
import { jsxs, jsx, Fragment } from "preact/jsx-runtime";
|
|
11
11
|
import cx from "classnames";
|
|
12
|
-
import {
|
|
12
|
+
import { z as Icon, N as Typography, x as useAnalyticsContext, ai as noop } from "./StoreProvider-lJLpl6iE.js";
|
|
13
13
|
import { a as useId } from "./useId-BZ0PA7jP.js";
|
|
14
14
|
import { useRef } from "preact/hooks";
|
|
15
|
-
import { K as KEYBOARD_KEYS } from "./Modal-
|
|
15
|
+
import { K as KEYBOARD_KEYS } from "./Modal-CAVcW_pH.js";
|
|
16
16
|
const tileContainer = "adyen-kyc-tile-container";
|
|
17
17
|
const tile = "adyen-kyc-tile";
|
|
18
18
|
const tileIcon = "adyen-kyc-tile-icon";
|
|
@@ -2,53 +2,53 @@
|
|
|
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] = "27b79c5f-daed-42d9-984c-1b8fa0a5b509", e._sentryDebugIdIdentifier = "sentry-dbid-27b79c5f-daed-42d9-984c-1b8fa0a5b509");
|
|
6
6
|
} catch (e) {
|
|
7
7
|
}
|
|
8
8
|
}
|
|
9
9
|
;
|
|
10
|
-
import { ao as entriesOf, ah as objectsDeepEqual, az as reverseMapping, L as LegalEntityTypes,
|
|
10
|
+
import { ao as entriesOf, ah as objectsDeepEqual, az as reverseMapping, L as LegalEntityTypes, w as TaskTypes, a9 as CountryCodes, aK as hasText, aC as matchesRegex, aD as NO_ALPHABET_REGEX, aE as EMOJI_REGEX, aF as hasRepeatedCharacters, bf as isValidMinLength, aG as isInvalidName, bv as OTHER_ENTITIES_VALID_CHAR_REGEX, u as useTranslation, H as useToggleContext, aB as Header, C as Alert, N as Typography, bM as getCountrySpecificTrustTypeOptions, bN as trustComponentsKeyMapping, bO as trustApiKeyMapping, b as useApiContext, am as datasetUtilities, bP as trustDocumentMapping, an as cloneObject, a8 as getLegalEntityCountry, ax as isEmpty$1, aX as drop, ac as getOwnEntityAssociations, P as useLegalEntity, a as addResourceBundles, aV as useCapabilities, E as EntityTypes, U as Loader, R as ROOT_LE, aS as keysOf, _ as __variableDynamicImportRuntimeHelper } from "./StoreProvider-lJLpl6iE.js";
|
|
11
11
|
import { jsx, Fragment, jsxs } from "preact/jsx-runtime";
|
|
12
12
|
import { skipToken } from "@tanstack/preact-query";
|
|
13
|
-
import { u as useAssociatedLegalEntity } from "./useAssociatedLegalEntity-
|
|
14
|
-
import { u as useCapabilityProblems, g as getProblemsForEntity } from "./getProblemsForEntity-
|
|
13
|
+
import { u as useAssociatedLegalEntity } from "./useAssociatedLegalEntity-COa3bZhe.js";
|
|
14
|
+
import { u as useCapabilityProblems, g as getProblemsForEntity } from "./getProblemsForEntity-CVzYoCCC.js";
|
|
15
15
|
import { useMemo, useCallback, useEffect, useState, useRef } from "preact/hooks";
|
|
16
|
-
import { u as useCreateLegalEntity } from "./useCreateLegalEntity-
|
|
17
|
-
import { u as useUpdateLegalEntity } from "./useUpdateLegalEntity-
|
|
18
|
-
import { u as useGlobalDataSlice, c as useStateContext, F as FormWrapper } from "./useGlobalData-
|
|
19
|
-
import { u as useToastContext } from "./useToastContext-
|
|
20
|
-
import { g as getPropsFromConfigurations, a as augmentWithCountryConfigs, c as composePerScenarioFormConfigurations } from "./process-field-configurations-
|
|
21
|
-
import { g as getRequiredForms, a as addValidityToForms, u as useFormComposer } from "./dropinUtils-
|
|
22
|
-
import { m as mapExistingFile, g as getPageName, b as useScenarioConfiguration } from "./mapExistingFile-
|
|
23
|
-
import { o as operationalAddressIsSameIds, D as DBA_NAME_FIELD, B as BUSINESS_REGISTRATION_NUMBER_FIELD, V as VAT_NUMBER_FIELD, f as doingBusinessAsAbsentFieldMetadata, e as doingBusinessAsFieldMetadata, b as registrationNumberDefaultFieldMetadata, k as getDefaultRegistrationNumberType, c as registrationNumberDefaultFieldConfig,
|
|
24
|
-
import {
|
|
25
|
-
import { m as mapAddressLabels } from "./utils-
|
|
26
|
-
import { i as isValidationError, p as processValidationErrors, a as isMaintenanceModeError } from "./validationError-
|
|
27
|
-
import { a as getDocument, c as createDocumentRequest, d as documentApiUtils } from "./validate-
|
|
16
|
+
import { u as useCreateLegalEntity } from "./useCreateLegalEntity-CO7qV3Sc.js";
|
|
17
|
+
import { u as useUpdateLegalEntity } from "./useUpdateLegalEntity-Dr3e1mG2.js";
|
|
18
|
+
import { u as useGlobalDataSlice, c as useStateContext, F as FormWrapper } from "./useGlobalData-DKxTj6bo.js";
|
|
19
|
+
import { u as useToastContext } from "./useToastContext-Dl59lP3Q.js";
|
|
20
|
+
import { g as getPropsFromConfigurations, a as augmentWithCountryConfigs, c as composePerScenarioFormConfigurations } from "./process-field-configurations-DcWH0t4d.js";
|
|
21
|
+
import { g as getRequiredForms, a as addValidityToForms, u as useFormComposer } from "./dropinUtils-B-qE8vvG.js";
|
|
22
|
+
import { m as mapExistingFile, g as getPageName, b as useScenarioConfiguration } from "./mapExistingFile-BcvOzQNH.js";
|
|
23
|
+
import { o as operationalAddressIsSameIds, D as DBA_NAME_FIELD, B as BUSINESS_REGISTRATION_NUMBER_FIELD, V as VAT_NUMBER_FIELD, f as doingBusinessAsAbsentFieldMetadata, e as doingBusinessAsFieldMetadata, b as registrationNumberDefaultFieldMetadata, k as getDefaultRegistrationNumberType, c as registrationNumberDefaultFieldConfig, p as exemptFromRegistrationNumberDefaultFieldMetadata, q as exemptFromRegistrationNumberDefaultFieldConfig, d as defaultFieldMetadata, l as getDefaultVatNumberType, a as defaultFieldConfig, g as DBANameField, h as BusinessRegistrationNumberField, i as getRegistrationNumberHelperText, j as VatNumberField, r as registrationAddressFields, R as RegistrationAddress, M as MemoizedConstitutionalDocument, m as inferCompanyRegistrationNumberType, n as getCompanyRegistrationNumberOptions, s as operationalAddressIsSameItems } from "./ConstitutionalDocument-C4HWFtJ-.js";
|
|
24
|
+
import { k as COUNTRIES_THAT_USE_TAX_ID_INSTEAD_OF_VAT, c as TAX_INFORMATION_FIELD, t as taxInformationDefaultFieldMetadata, a as taxInformationDefaultFieldConfig, o as exemptedFromTaxDefaultFieldMetadata, p as exemptedFromTaxDefaultFieldConfig, T as TaxInformationField, g as getFieldsWithExistingData, f as countryToTaxInfoTypeMap } from "./TaxInformationField-5nazrzc4.js";
|
|
25
|
+
import { m as mapAddressLabels } from "./utils-CWrDCmo5.js";
|
|
26
|
+
import { i as isValidationError, p as processValidationErrors, a as isMaintenanceModeError } from "./validationError-DmyvOY60.js";
|
|
27
|
+
import { a as getDocument, c as createDocumentRequest, d as documentApiUtils } from "./validate-DdW_lr56.js";
|
|
28
28
|
import { r as resolveFieldMetadata } from "./fieldConfigurations-BUT9DTUH.js";
|
|
29
29
|
import { f as formatObject, g as getProp } from "./utils-DNSfZiio.js";
|
|
30
30
|
import { c as createFormRules } from "./form-rules-DhbF2mY4.js";
|
|
31
|
-
import { U as UNINCORPORATED_PARTNERSHIP_COUNTRIES_VAT_NUMBER_OPTIONAL, a as UNINCORPORATED_PARTNERSHIP_COUNTRIES_REGISTRATION_NUMBER_REQUIRED, b as UNINCORPORATED_PARTNERSHIP_COUNTRIES_REGISTRATION_NUMBER_OPTIONAL, c as UNINCORPORATED_PARTNERSHIP_COUNTRIES_TAX_INFORMATION_REQUIRED, d as UNINCORPORATED_PARTNERSHIP_COUNTRIES_TAX_INFORMATION_OPTIONAL, A as ALLOWED_UNINCORPORATED_PARTNERSHIP_COUNTRIES } from "./types-
|
|
31
|
+
import { U as UNINCORPORATED_PARTNERSHIP_COUNTRIES_VAT_NUMBER_OPTIONAL, a as UNINCORPORATED_PARTNERSHIP_COUNTRIES_REGISTRATION_NUMBER_REQUIRED, b as UNINCORPORATED_PARTNERSHIP_COUNTRIES_REGISTRATION_NUMBER_OPTIONAL, c as UNINCORPORATED_PARTNERSHIP_COUNTRIES_TAX_INFORMATION_REQUIRED, d as UNINCORPORATED_PARTNERSHIP_COUNTRIES_TAX_INFORMATION_OPTIONAL, A as ALLOWED_UNINCORPORATED_PARTNERSHIP_COUNTRIES } from "./types-QKgg5_IB.js";
|
|
32
32
|
import { a as getFormProps, b as getNestedOuterFormPropsFromOuterFormProps } from "./getProps-Cc3J2-z9.js";
|
|
33
|
-
import { F as Field } from "./Field-
|
|
34
|
-
import { S as Select } from "./Select-
|
|
35
|
-
import { u as useForm } from "./useForm-
|
|
36
|
-
import { E as ErrorPanel } from "./ErrorPanel-
|
|
37
|
-
import { I as InputText } from "./InputText-
|
|
38
|
-
import { C as CountryField, a as COUNTRY_FIELD } from "./CountryField-
|
|
39
|
-
import { m as mergeFieldMetadataIntoProps, c as createFormUtils } from "./formUtils-
|
|
40
|
-
import { i as isEmpty } from "./isEmpty-
|
|
41
|
-
import { a as validateNotEmptyOnBlur } from "./patternValidators-
|
|
42
|
-
import { u as useFormContext, F as FormContextProvider, a as FormFlow } from "./useFormContext-
|
|
43
|
-
import { u as useMultiForm } from "./useMultiForm-
|
|
33
|
+
import { F as Field } from "./Field-CWq5XOh3.js";
|
|
34
|
+
import { S as Select } from "./Select-DSLn5CCG.js";
|
|
35
|
+
import { u as useForm } from "./useForm-F0hPmSqd.js";
|
|
36
|
+
import { E as ErrorPanel } from "./ErrorPanel-4HIDH4sr.js";
|
|
37
|
+
import { I as InputText } from "./InputText-20pWI3ja.js";
|
|
38
|
+
import { C as CountryField, a as COUNTRY_FIELD } from "./CountryField-C9nbUmpe.js";
|
|
39
|
+
import { m as mergeFieldMetadataIntoProps, c as createFormUtils } from "./formUtils-DjInEErz.js";
|
|
40
|
+
import { i as isEmpty } from "./isEmpty-CRqBruDc.js";
|
|
41
|
+
import { a as validateNotEmptyOnBlur } from "./patternValidators-DuOaKe_S.js";
|
|
42
|
+
import { u as useFormContext, F as FormContextProvider, a as FormFlow } from "./useFormContext-EeYo1zte.js";
|
|
43
|
+
import { u as useMultiForm } from "./useMultiForm-CR9pqYjq.js";
|
|
44
44
|
import "preact";
|
|
45
45
|
import "classnames";
|
|
46
46
|
import "named-slots";
|
|
47
|
-
import { R as RadioGroup } from "./RadioGroup-
|
|
47
|
+
import { R as RadioGroup } from "./RadioGroup-BZ-EfNXM.js";
|
|
48
48
|
import "./Radio-BMtxBpnn.js";
|
|
49
49
|
import "@preact/signals";
|
|
50
|
-
import { A as Address } from "./Address-
|
|
51
|
-
import { C as ContextGuidance } from "./ContextGuidance-
|
|
50
|
+
import { A as Address } from "./Address-BkeFTMl-.js";
|
|
51
|
+
import { C as ContextGuidance } from "./ContextGuidance-BUczCMV3.js";
|
|
52
52
|
const hasDataChanged = (initialData, currentData) => entriesOf(currentData ?? {}).some(([key, value]) => {
|
|
53
53
|
if (typeof value === "object") {
|
|
54
54
|
return !objectsDeepEqual(value, initialData?.[key]);
|
|
@@ -90,7 +90,7 @@ const unincorporatedPartnershipComponentsKeyMapping = {
|
|
|
90
90
|
const unincorporatedPartnershipApiKeyMapping = {
|
|
91
91
|
...reverseMapping(unincorporatedPartnershipBaseMapping)
|
|
92
92
|
};
|
|
93
|
-
const mapLegalEntityToUnincorporatedPartnership = (legalEntity,
|
|
93
|
+
const mapLegalEntityToUnincorporatedPartnership = (legalEntity, isFeatureEnabled) => {
|
|
94
94
|
if (!legalEntity.unincorporatedPartnership)
|
|
95
95
|
throw new Error("LE missing unincorporatedPartnership field");
|
|
96
96
|
let trustCompData = formatObject(
|
|
@@ -132,7 +132,7 @@ const mapLegalEntityToUnincorporatedPartnership = (legalEntity, isExperimentEnab
|
|
|
132
132
|
...mapApiDocumentToTrustDocument(legalEntity?.id)
|
|
133
133
|
};
|
|
134
134
|
}
|
|
135
|
-
if (
|
|
135
|
+
if (isFeatureEnabled("EnableDoingBusinessAsNameV4")) {
|
|
136
136
|
if (typeof trustCompData.trustRegistrationDetails?.hasDoingBusinessAs === "boolean") {
|
|
137
137
|
trustCompData.trustRegistrationDetails.hasDoingBusinessAs = !legalEntity.unincorporatedPartnership.doingBusinessAsAbsent;
|
|
138
138
|
if (!trustCompData.trustRegistrationDetails.hasDoingBusinessAs)
|
|
@@ -144,7 +144,7 @@ const mapLegalEntityToUnincorporatedPartnership = (legalEntity, isExperimentEnab
|
|
|
144
144
|
}
|
|
145
145
|
return trustCompData;
|
|
146
146
|
};
|
|
147
|
-
const mapUnincorporatedPartnershipToLegalEntity = (data,
|
|
147
|
+
const mapUnincorporatedPartnershipToLegalEntity = (data, isFeatureEnabled) => {
|
|
148
148
|
const requestObj = {
|
|
149
149
|
...formatObject(data, unincorporatedPartnershipApiKeyMapping)
|
|
150
150
|
};
|
|
@@ -152,7 +152,7 @@ const mapUnincorporatedPartnershipToLegalEntity = (data, isExperimentEnabled) =>
|
|
|
152
152
|
if (requestObj.unincorporatedPartnership?.taxInformation?.[0]?.type === "GST") {
|
|
153
153
|
requestObj.unincorporatedPartnership.taxInformation[0].type = "UEN";
|
|
154
154
|
}
|
|
155
|
-
if (
|
|
155
|
+
if (isFeatureEnabled("EnableDoingBusinessAsNameV4")) {
|
|
156
156
|
if (typeof data.trustRegistrationDetails?.hasDoingBusinessAs !== "undefined") {
|
|
157
157
|
requestObj.unincorporatedPartnership.doingBusinessAsAbsent = !data.trustRegistrationDetails?.hasDoingBusinessAs;
|
|
158
158
|
}
|
|
@@ -301,9 +301,9 @@ function TrustRegistrationDetails(props) {
|
|
|
301
301
|
const TRUST_REGISTRATION_DETAILS2 = mergedProps.id || trustForms$1.trustRegistrationDetails.formId;
|
|
302
302
|
const { t: commonT } = useTranslation("common");
|
|
303
303
|
const { t: trustT } = useTranslation("trust");
|
|
304
|
-
const {
|
|
304
|
+
const { isFeatureEnabled } = useToggleContext();
|
|
305
305
|
const { updateStateSlice, sliceData } = useGlobalDataSlice(TRUST_REGISTRATION_DETAILS2);
|
|
306
|
-
const isStrictNameAndAddressValidationEnabled =
|
|
306
|
+
const isStrictNameAndAddressValidationEnabled = isFeatureEnabled(
|
|
307
307
|
"StrictNameAndAddressValidationV4"
|
|
308
308
|
);
|
|
309
309
|
const { taskType } = props;
|
|
@@ -695,7 +695,7 @@ function Trust(props) {
|
|
|
695
695
|
] });
|
|
696
696
|
return /* @__PURE__ */ jsx("div", { className: "adyen-kyc-trust", children: renderActiveForm(activeForm || trustForms$1.trustRegistrationDetails) });
|
|
697
697
|
}
|
|
698
|
-
const mapLegalEntityToTrust = (legalEntity,
|
|
698
|
+
const mapLegalEntityToTrust = (legalEntity, isFeatureEnabled) => {
|
|
699
699
|
if (!legalEntity.trust) throw new Error("LE missing trust field");
|
|
700
700
|
let trustCompData = formatObject(legalEntity, trustComponentsKeyMapping);
|
|
701
701
|
if (!trustCompData?.trustRegistrationDetails) return {};
|
|
@@ -742,7 +742,7 @@ const mapLegalEntityToTrust = (legalEntity, isExperimentEnabled) => {
|
|
|
742
742
|
...mapApiDocumentToTrustDocument(legalEntity?.id)
|
|
743
743
|
};
|
|
744
744
|
}
|
|
745
|
-
if (
|
|
745
|
+
if (isFeatureEnabled("EnableDoingBusinessAsNameV4")) {
|
|
746
746
|
if (typeof trustCompData.trustRegistrationDetails?.hasDoingBusinessAs === "boolean") {
|
|
747
747
|
trustCompData.trustRegistrationDetails.hasDoingBusinessAs = !legalEntity.trust.doingBusinessAsAbsent;
|
|
748
748
|
if (!trustCompData.trustRegistrationDetails.hasDoingBusinessAs)
|
|
@@ -772,7 +772,7 @@ const mapTrustDocumentToApiDocument = async (data, entityId) => {
|
|
|
772
772
|
existingDocument
|
|
773
773
|
});
|
|
774
774
|
};
|
|
775
|
-
const mapTrustToLegalEntity = (data,
|
|
775
|
+
const mapTrustToLegalEntity = (data, isFeatureEnabled) => {
|
|
776
776
|
const requestObj = {
|
|
777
777
|
...formatObject(data, trustApiKeyMapping)
|
|
778
778
|
};
|
|
@@ -780,7 +780,7 @@ const mapTrustToLegalEntity = (data, isExperimentEnabled) => {
|
|
|
780
780
|
if (data.trustRegistrationDetails?.objectOfTrust) {
|
|
781
781
|
requestObj.trust.description = data.trustRegistrationDetails.objectOfTrust;
|
|
782
782
|
}
|
|
783
|
-
if (
|
|
783
|
+
if (isFeatureEnabled("EnableDoingBusinessAsNameV4")) {
|
|
784
784
|
requestObj.trust.doingBusinessAsAbsent = typeof data.trustRegistrationDetails?.hasDoingBusinessAs !== "undefined" ? !data.trustRegistrationDetails?.hasDoingBusinessAs : void 0;
|
|
785
785
|
if (requestObj.trust.doingBusinessAsAbsent) {
|
|
786
786
|
requestObj.trust.doingBusinessAs = "";
|
|
@@ -873,10 +873,9 @@ function TrustDropin({
|
|
|
873
873
|
}, [currentState, onChange]);
|
|
874
874
|
const { baseUrl, rootLegalEntityId } = useApiContext();
|
|
875
875
|
const { t, i18n } = useTranslation(["common", "trust"]);
|
|
876
|
-
const userEvents = useAnalyticsContext();
|
|
877
876
|
const [validationErrors, setValidationErrors] = useState();
|
|
878
877
|
const datasetUtils = datasetUtilities(i18n.language);
|
|
879
|
-
const {
|
|
878
|
+
const { isFeatureEnabled } = useToggleContext();
|
|
880
879
|
const { showToast } = useToastContext();
|
|
881
880
|
const [loadingStatus, setLoadingStatus] = useState("success");
|
|
882
881
|
const formRef = useRef(null);
|
|
@@ -890,18 +889,14 @@ function TrustDropin({
|
|
|
890
889
|
);
|
|
891
890
|
const trustData = useMemo(() => {
|
|
892
891
|
if (!existingTrust) return {};
|
|
893
|
-
return isUnincorporatedPartnership ? mapLegalEntityToUnincorporatedPartnership(existingTrust,
|
|
894
|
-
}, [
|
|
892
|
+
return isUnincorporatedPartnership ? mapLegalEntityToUnincorporatedPartnership(existingTrust, isFeatureEnabled) : mapLegalEntityToTrust(existingTrust, isFeatureEnabled);
|
|
893
|
+
}, [isFeatureEnabled, existingTrust, isUnincorporatedPartnership]);
|
|
895
894
|
const currentCountry = useMemo(
|
|
896
895
|
() => currentState.data.trustRegistrationDetails?.country ?? countryProp,
|
|
897
896
|
[countryProp, currentState.data.trustRegistrationDetails?.country]
|
|
898
897
|
);
|
|
899
898
|
const [initialData, setInitialData] = useState(trustData);
|
|
900
899
|
useEffect(() => {
|
|
901
|
-
userEvents.updateBaseTrackingPayload({ task: taskType });
|
|
902
|
-
userEvents.addTaskEvent("Landed on page", {
|
|
903
|
-
actionType: "start"
|
|
904
|
-
});
|
|
905
900
|
if (!existingTrust?.documentDetails?.length) return;
|
|
906
901
|
try {
|
|
907
902
|
documentUtils.fetchDocuments(existingTrust.documentDetails, existingTrust.id).then(() => {
|
|
@@ -929,7 +924,7 @@ function TrustDropin({
|
|
|
929
924
|
country: currentCountry,
|
|
930
925
|
taskType
|
|
931
926
|
}),
|
|
932
|
-
[currentCountry, currentState.data, taskType, requiredFields,
|
|
927
|
+
[currentCountry, currentState.data, taskType, requiredFields, isFeatureEnabled]
|
|
933
928
|
);
|
|
934
929
|
const derivedProps = useMemo(
|
|
935
930
|
() => getPropsFromConfigurations({
|
|
@@ -959,7 +954,7 @@ function TrustDropin({
|
|
|
959
954
|
}, [derivedProps, formValidity, problems]);
|
|
960
955
|
const onSubmitTrust = async () => {
|
|
961
956
|
setLoadingStatus("loading");
|
|
962
|
-
const trustDetails = mapTrustToLegalEntity(currentState.data,
|
|
957
|
+
const trustDetails = mapTrustToLegalEntity(currentState.data, isFeatureEnabled);
|
|
963
958
|
try {
|
|
964
959
|
const updatedTrust = await submitTrustDetails(trustDetails);
|
|
965
960
|
await submitDocuments({ forms, legalEntity: updatedTrust, dataSubmitted: currentState.data });
|
|
@@ -985,7 +980,7 @@ function TrustDropin({
|
|
|
985
980
|
setLoadingStatus("loading");
|
|
986
981
|
const unincorporatedPartnershipDetails = mapUnincorporatedPartnershipToLegalEntity(
|
|
987
982
|
currentState.data,
|
|
988
|
-
|
|
983
|
+
isFeatureEnabled
|
|
989
984
|
);
|
|
990
985
|
try {
|
|
991
986
|
const updatedUnincorporatedPartnershipDetails = await submitTrustDetails(
|
|
@@ -1141,6 +1136,7 @@ function TrustDropin({
|
|
|
1141
1136
|
shouldValidate,
|
|
1142
1137
|
setShouldValidate,
|
|
1143
1138
|
gotoFormByFormIndex,
|
|
1139
|
+
gotoFormByFormId,
|
|
1144
1140
|
steps
|
|
1145
1141
|
} = useFormComposer({
|
|
1146
1142
|
problems,
|
|
@@ -1154,6 +1150,7 @@ function TrustDropin({
|
|
|
1154
1150
|
handleNextClick,
|
|
1155
1151
|
handleBackClick,
|
|
1156
1152
|
gotoFormByFormIndex,
|
|
1153
|
+
gotoFormByFormId,
|
|
1157
1154
|
loadingStatus,
|
|
1158
1155
|
forms,
|
|
1159
1156
|
activeForm,
|
|
@@ -1737,8 +1734,8 @@ function TrustMultiform(props) {
|
|
|
1737
1734
|
};
|
|
1738
1735
|
return /* @__PURE__ */ jsx("div", { className: "adyen-kyc-trust", children: /* @__PURE__ */ jsx("div", { className: "adyen-kyc-form-wrapper", children: renderActiveForm(activeForm || trustForms.trustRegistrationDetails) }) });
|
|
1739
1736
|
}
|
|
1740
|
-
function trustRegistrationDetailsValidators(country, trustRegistrationDetails = {},
|
|
1741
|
-
const isStrictNameAndAddressValidationEnabled =
|
|
1737
|
+
function trustRegistrationDetailsValidators(country, trustRegistrationDetails = {}, isFeatureEnabled) {
|
|
1738
|
+
const isStrictNameAndAddressValidationEnabled = isFeatureEnabled(
|
|
1742
1739
|
"StrictNameAndAddressValidationV4"
|
|
1743
1740
|
);
|
|
1744
1741
|
const defaultTrustRegistrationDetailsValidators = isStrictNameAndAddressValidationEnabled ? trustRegistrationDetailsValidationsV4 : trustRegistrationDetailsValidations;
|
|
@@ -1765,7 +1762,7 @@ function trustRegistrationDetailsValidators(country, trustRegistrationDetails =
|
|
|
1765
1762
|
{
|
|
1766
1763
|
companyType: LegalEntityTypes.TRUST,
|
|
1767
1764
|
registrationNumberType,
|
|
1768
|
-
|
|
1765
|
+
isFeatureEnabled
|
|
1769
1766
|
},
|
|
1770
1767
|
registrationNumberDefaultFieldMetadata
|
|
1771
1768
|
)?.validators,
|
|
@@ -1799,7 +1796,7 @@ function TrustMultiformDropin({
|
|
|
1799
1796
|
const { t, i18n } = useTranslation(["common", "trust"]);
|
|
1800
1797
|
const [validationErrors, setValidationErrors] = useState();
|
|
1801
1798
|
const datasetUtils = datasetUtilities(i18n.language);
|
|
1802
|
-
const {
|
|
1799
|
+
const { isFeatureEnabled } = useToggleContext();
|
|
1803
1800
|
const { showToast } = useToastContext();
|
|
1804
1801
|
const [loadingStatus, setLoadingStatus] = useState("success");
|
|
1805
1802
|
const [country, setCountry] = useState(countryProp);
|
|
@@ -1819,8 +1816,8 @@ function TrustMultiformDropin({
|
|
|
1819
1816
|
country: countryProp
|
|
1820
1817
|
}
|
|
1821
1818
|
};
|
|
1822
|
-
return isUnincorporatedPartnership ? mapLegalEntityToUnincorporatedPartnership(existingTrust,
|
|
1823
|
-
}, [
|
|
1819
|
+
return isUnincorporatedPartnership ? mapLegalEntityToUnincorporatedPartnership(existingTrust, isFeatureEnabled) : mapLegalEntityToTrust(existingTrust, isFeatureEnabled);
|
|
1820
|
+
}, [isFeatureEnabled, existingTrust, isUnincorporatedPartnership, countryProp]);
|
|
1824
1821
|
const [initialData, setInitialData] = useState(trustData);
|
|
1825
1822
|
const documentUtils = documentApiUtils({
|
|
1826
1823
|
baseUrl: baseUrl.value,
|
|
@@ -1845,11 +1842,11 @@ function TrustMultiformDropin({
|
|
|
1845
1842
|
trustRegistrationDetails: trustRegistrationDetailsValidators(
|
|
1846
1843
|
country,
|
|
1847
1844
|
data?.trustRegistrationDetails,
|
|
1848
|
-
|
|
1845
|
+
isFeatureEnabled
|
|
1849
1846
|
)
|
|
1850
1847
|
};
|
|
1851
1848
|
},
|
|
1852
|
-
[country,
|
|
1849
|
+
[country, isFeatureEnabled]
|
|
1853
1850
|
);
|
|
1854
1851
|
const multiForm = useMultiForm({
|
|
1855
1852
|
defaultData: initialData,
|
|
@@ -1907,7 +1904,7 @@ function TrustMultiformDropin({
|
|
|
1907
1904
|
}, [derivedProps, multiForm.isValid, problems]);
|
|
1908
1905
|
const onSubmitTrust = async () => {
|
|
1909
1906
|
setLoadingStatus("loading");
|
|
1910
|
-
const trustDetails = mapTrustToLegalEntity(multiForm.data,
|
|
1907
|
+
const trustDetails = mapTrustToLegalEntity(multiForm.data, isFeatureEnabled);
|
|
1911
1908
|
try {
|
|
1912
1909
|
const updatedTrust = await submitTrustDetails(trustDetails);
|
|
1913
1910
|
await submitDocuments({ forms, legalEntity: updatedTrust, dataSubmitted: multiForm.data });
|
|
@@ -1933,7 +1930,7 @@ function TrustMultiformDropin({
|
|
|
1933
1930
|
setLoadingStatus("loading");
|
|
1934
1931
|
const unincorporatedPartnershipDetails = mapUnincorporatedPartnershipToLegalEntity(
|
|
1935
1932
|
multiForm.data,
|
|
1936
|
-
|
|
1933
|
+
isFeatureEnabled
|
|
1937
1934
|
);
|
|
1938
1935
|
try {
|
|
1939
1936
|
const updatedUnincorporatedPartnershipDetails = await submitTrustDetails(
|
|
@@ -2083,6 +2080,7 @@ function TrustMultiformDropin({
|
|
|
2083
2080
|
activeForm,
|
|
2084
2081
|
shouldValidate,
|
|
2085
2082
|
gotoFormByFormIndex,
|
|
2083
|
+
gotoFormByFormId,
|
|
2086
2084
|
steps
|
|
2087
2085
|
} = useFormComposer({
|
|
2088
2086
|
problems,
|
|
@@ -2108,6 +2106,7 @@ function TrustMultiformDropin({
|
|
|
2108
2106
|
forms,
|
|
2109
2107
|
activeForm,
|
|
2110
2108
|
gotoFormByFormIndex,
|
|
2109
|
+
gotoFormByFormId,
|
|
2111
2110
|
handleNextClick,
|
|
2112
2111
|
handleBackClick,
|
|
2113
2112
|
handleCancelClick: handleHomeClick,
|
|
@@ -2133,7 +2132,7 @@ const TrustDetailsPage = ({
|
|
|
2133
2132
|
}) => {
|
|
2134
2133
|
const { i18n } = useTranslation();
|
|
2135
2134
|
const { data: rootLe } = useLegalEntity(ROOT_LE);
|
|
2136
|
-
const {
|
|
2135
|
+
const { isFeatureEnabled } = useToggleContext();
|
|
2137
2136
|
const associationType = taskType === "TRUST" ? LegalEntityTypes.TRUST : LegalEntityTypes.UNINCORPORATED_PARTNERSHIP;
|
|
2138
2137
|
const { data: associatedEntity, isLoading: isAssociatedEntityLoading } = useAssociatedLegalEntity(
|
|
2139
2138
|
rootLe,
|
|
@@ -2144,7 +2143,7 @@ const TrustDetailsPage = ({
|
|
|
2144
2143
|
);
|
|
2145
2144
|
const trustLe = trustLeFromProp ?? associatedEntity;
|
|
2146
2145
|
addResourceBundles(i18n, [
|
|
2147
|
-
{ ns: "trust", importFn: (lang) => __variableDynamicImportRuntimeHelper(/* @__PURE__ */ Object.assign({ "../language/bg-BG.json": () => import("./bg-BG-DMNRRZZE.js"), "../language/cs-CZ.json": () => import("./cs-CZ-DXSMRqPu.js"), "../language/da-DK.json": () => import("./da-DK-CMVthpSr.js"), "../language/de-DE.json": () => import("./de-DE-B5TOuf7l.js"), "../language/el-GR.json": () => import("./el-GR-BNNlN4l2.js"), "../language/en-US.json": () => import("./en-US-
|
|
2146
|
+
{ ns: "trust", importFn: (lang) => __variableDynamicImportRuntimeHelper(/* @__PURE__ */ Object.assign({ "../language/bg-BG.json": () => import("./bg-BG-DMNRRZZE.js"), "../language/cs-CZ.json": () => import("./cs-CZ-DXSMRqPu.js"), "../language/da-DK.json": () => import("./da-DK-CMVthpSr.js"), "../language/de-DE.json": () => import("./de-DE-B5TOuf7l.js"), "../language/el-GR.json": () => import("./el-GR-BNNlN4l2.js"), "../language/en-US.json": () => import("./en-US-DPoDE0uz.js"), "../language/es-ES.json": () => import("./es-ES-Wcpc6fm1.js"), "../language/et-EE.json": () => import("./et-EE-DNC4hcxm.js"), "../language/fi-FI.json": () => import("./fi-FI-BJLU1JHw.js"), "../language/fr-FR.json": () => import("./fr-FR-DodNoPid.js"), "../language/hr-HR.json": () => import("./hr-HR-C0NLgF1r.js"), "../language/hu-HU.json": () => import("./hu-HU-C3ZiFh1F.js"), "../language/it-IT.json": () => import("./it-IT-CZ4aDoVQ.js"), "../language/ja-JP.json": () => import("./ja-JP-BpeNsNhn.js"), "../language/lt-LT.json": () => import("./lt-LT-C8n1GZoU.js"), "../language/lv-LV.json": () => import("./lv-LV-BdPdaVGy.js"), "../language/nl-NL.json": () => import("./nl-NL-B2Uku0lw.js"), "../language/no-NO.json": () => import("./no-NO-DjOcJWnC.js"), "../language/pl-PL.json": () => import("./pl-PL-Bmaq3IC3.js"), "../language/pt-BR.json": () => import("./pt-BR-BKdT0Bpl.js"), "../language/pt-PT.json": () => import("./pt-PT-C2li07N1.js"), "../language/ro-RO.json": () => import("./ro-RO-iPjOeKwM.js"), "../language/sk-SK.json": () => import("./sk-SK-3_SoEn6P.js"), "../language/sl-SI.json": () => import("./sl-SI-DbfswGh0.js"), "../language/sv-SE.json": () => import("./sv-SE-Blw4s8bC.js") }), `../language/${lang}.json`, 3) }
|
|
2148
2147
|
]);
|
|
2149
2148
|
const capabilities = useCapabilities();
|
|
2150
2149
|
const capabilityNames = capabilities ? keysOf(capabilities) : [];
|
|
@@ -2154,7 +2153,7 @@ const TrustDetailsPage = ({
|
|
|
2154
2153
|
return /* @__PURE__ */ jsx(Loader, {});
|
|
2155
2154
|
}
|
|
2156
2155
|
const country = getLegalEntityCountry(trustLe ?? rootLe);
|
|
2157
|
-
const TrustPageDropin =
|
|
2156
|
+
const TrustPageDropin = isFeatureEnabled("EnableMultiFormInTrustFlow") ? TrustMultiformDropin : TrustDropin;
|
|
2158
2157
|
return /* @__PURE__ */ jsx(
|
|
2159
2158
|
TrustPageDropin,
|
|
2160
2159
|
{
|
|
@@ -2,18 +2,18 @@
|
|
|
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] = "d29a9a8d-1cad-402c-8fcb-d9ec4a3eab37", e._sentryDebugIdIdentifier = "sentry-dbid-d29a9a8d-1cad-402c-8fcb-d9ec4a3eab37");
|
|
6
6
|
} catch (e) {
|
|
7
7
|
}
|
|
8
8
|
}
|
|
9
9
|
;
|
|
10
|
-
import { u as useTranslation,
|
|
10
|
+
import { u as useTranslation, P as useLegalEntity, a as addResourceBundles, U as Loader, a8 as getLegalEntityCountry, w as TaskTypes, E as EntityTypes, _ as __variableDynamicImportRuntimeHelper } from "./StoreProvider-lJLpl6iE.js";
|
|
11
11
|
import { jsx } from "preact/jsx-runtime";
|
|
12
12
|
import { skipToken } from "@tanstack/preact-query";
|
|
13
13
|
import { useParams } from "wouter-preact";
|
|
14
|
-
import {
|
|
15
|
-
import { u as useCapabilityProblems, g as getProblemsForEntity } from "./getProblemsForEntity-
|
|
16
|
-
import { u as useBusinessDetailsData, B as BusinessDetailsDropin } from "./useBusinessDetailsData-
|
|
14
|
+
import { j as useTrustMembers } from "./OnboardingDropinComponent-BRZuLCE8.js";
|
|
15
|
+
import { u as useCapabilityProblems, g as getProblemsForEntity } from "./getProblemsForEntity-CVzYoCCC.js";
|
|
16
|
+
import { u as useBusinessDetailsData, B as BusinessDetailsDropin } from "./useBusinessDetailsData-DslnLoRz.js";
|
|
17
17
|
function TrustMemberCompanyPage({
|
|
18
18
|
trustId,
|
|
19
19
|
trustMemberCompanyId: trustMemberCompanyIdProp,
|
|
@@ -34,8 +34,8 @@ function TrustMemberCompanyPage({
|
|
|
34
34
|
trustMemberCompanyLe
|
|
35
35
|
);
|
|
36
36
|
addResourceBundles(i18n, [
|
|
37
|
-
{ ns: "business", importFn: (lang) => __variableDynamicImportRuntimeHelper(/* @__PURE__ */ Object.assign({ "../../Business/language/bg-BG.json": () => import("./bg-BG-CFuVZnaC.js"), "../../Business/language/cs-CZ.json": () => import("./cs-CZ-CYsR__kj.js"), "../../Business/language/da-DK.json": () => import("./da-DK-B3Pg-MWO.js"), "../../Business/language/de-DE.json": () => import("./de-DE-S6qDey1L.js"), "../../Business/language/el-GR.json": () => import("./el-GR-DoS_Va-n.js"), "../../Business/language/en-US.json": () => import("./en-US-
|
|
38
|
-
{ ns: "trust", importFn: (lang) => __variableDynamicImportRuntimeHelper(/* @__PURE__ */ Object.assign({ "../language/bg-BG.json": () => import("./bg-BG-DMNRRZZE.js"), "../language/cs-CZ.json": () => import("./cs-CZ-DXSMRqPu.js"), "../language/da-DK.json": () => import("./da-DK-CMVthpSr.js"), "../language/de-DE.json": () => import("./de-DE-B5TOuf7l.js"), "../language/el-GR.json": () => import("./el-GR-BNNlN4l2.js"), "../language/en-US.json": () => import("./en-US-
|
|
37
|
+
{ ns: "business", importFn: (lang) => __variableDynamicImportRuntimeHelper(/* @__PURE__ */ Object.assign({ "../../Business/language/bg-BG.json": () => import("./bg-BG-CFuVZnaC.js"), "../../Business/language/cs-CZ.json": () => import("./cs-CZ-CYsR__kj.js"), "../../Business/language/da-DK.json": () => import("./da-DK-B3Pg-MWO.js"), "../../Business/language/de-DE.json": () => import("./de-DE-S6qDey1L.js"), "../../Business/language/el-GR.json": () => import("./el-GR-DoS_Va-n.js"), "../../Business/language/en-US.json": () => import("./en-US-CTbVLoNF.js"), "../../Business/language/es-ES.json": () => import("./es-ES-BYl5-PFR.js"), "../../Business/language/et-EE.json": () => import("./et-EE-4fHYOoff.js"), "../../Business/language/fi-FI.json": () => import("./fi-FI-DFxljML-.js"), "../../Business/language/fr-FR.json": () => import("./fr-FR-DPehHVb6.js"), "../../Business/language/hr-HR.json": () => import("./hr-HR-Bjx-KdVs.js"), "../../Business/language/hu-HU.json": () => import("./hu-HU-B-lUkFnQ.js"), "../../Business/language/it-IT.json": () => import("./it-IT-DOBp2-MP.js"), "../../Business/language/ja-JP.json": () => import("./ja-JP-GX3l4yqn.js"), "../../Business/language/lt-LT.json": () => import("./lt-LT-WRulV980.js"), "../../Business/language/lv-LV.json": () => import("./lv-LV-C9Dhkruv.js"), "../../Business/language/nl-NL.json": () => import("./nl-NL-SjOGmGk5.js"), "../../Business/language/no-NO.json": () => import("./no-NO-BAWVf0GX.js"), "../../Business/language/pl-PL.json": () => import("./pl-PL-DEMxxz7h.js"), "../../Business/language/pt-BR.json": () => import("./pt-BR-BfDe_8iW.js"), "../../Business/language/pt-PT.json": () => import("./pt-PT-F1qPZJ2c.js"), "../../Business/language/ro-RO.json": () => import("./ro-RO-0vx6ZLWV.js"), "../../Business/language/sk-SK.json": () => import("./sk-SK-DuLm2CVx.js"), "../../Business/language/sl-SI.json": () => import("./sl-SI-BAIm-qBe.js"), "../../Business/language/sv-SE.json": () => import("./sv-SE-BZNey_8S.js") }), `../../Business/language/${lang}.json`, 5) },
|
|
38
|
+
{ ns: "trust", importFn: (lang) => __variableDynamicImportRuntimeHelper(/* @__PURE__ */ Object.assign({ "../language/bg-BG.json": () => import("./bg-BG-DMNRRZZE.js"), "../language/cs-CZ.json": () => import("./cs-CZ-DXSMRqPu.js"), "../language/da-DK.json": () => import("./da-DK-CMVthpSr.js"), "../language/de-DE.json": () => import("./de-DE-B5TOuf7l.js"), "../language/el-GR.json": () => import("./el-GR-BNNlN4l2.js"), "../language/en-US.json": () => import("./en-US-DPoDE0uz.js"), "../language/es-ES.json": () => import("./es-ES-Wcpc6fm1.js"), "../language/et-EE.json": () => import("./et-EE-DNC4hcxm.js"), "../language/fi-FI.json": () => import("./fi-FI-BJLU1JHw.js"), "../language/fr-FR.json": () => import("./fr-FR-DodNoPid.js"), "../language/hr-HR.json": () => import("./hr-HR-C0NLgF1r.js"), "../language/hu-HU.json": () => import("./hu-HU-C3ZiFh1F.js"), "../language/it-IT.json": () => import("./it-IT-CZ4aDoVQ.js"), "../language/ja-JP.json": () => import("./ja-JP-BpeNsNhn.js"), "../language/lt-LT.json": () => import("./lt-LT-C8n1GZoU.js"), "../language/lv-LV.json": () => import("./lv-LV-BdPdaVGy.js"), "../language/nl-NL.json": () => import("./nl-NL-B2Uku0lw.js"), "../language/no-NO.json": () => import("./no-NO-DjOcJWnC.js"), "../language/pl-PL.json": () => import("./pl-PL-Bmaq3IC3.js"), "../language/pt-BR.json": () => import("./pt-BR-BKdT0Bpl.js"), "../language/pt-PT.json": () => import("./pt-PT-C2li07N1.js"), "../language/ro-RO.json": () => import("./ro-RO-iPjOeKwM.js"), "../language/sk-SK.json": () => import("./sk-SK-3_SoEn6P.js"), "../language/sl-SI.json": () => import("./sl-SI-DbfswGh0.js"), "../language/sv-SE.json": () => import("./sv-SE-Blw4s8bC.js") }), `../language/${lang}.json`, 3) }
|
|
39
39
|
]);
|
|
40
40
|
if (isLoading || !trustLe || trustMemberCompanyId && !trustMemberCompanyLe) {
|
|
41
41
|
return /* @__PURE__ */ jsx(Loader, {});
|