@adyen/kyc-components 4.5.1 → 4.6.0-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +31 -43
- package/dist/{AcceptTermsOfServiceComponent-CDgZIoAy.js → AcceptTermsOfServiceComponent-Bd0fuzJX.js} +17 -20
- package/dist/{AccountSetupRejected-Bwu8xLmZ.js → AccountSetupRejected-t4tPei0K.js} +2 -2
- package/dist/{ActionBar-Cs-ZFNhk.js → ActionBar-Ruw6z6LR.js} +2 -2
- package/dist/{Address-Cdkbwzso.js → Address-D0JjbOT4.js} +16 -16
- package/dist/{Avatar-DtFyP488.js → Avatar-Dp70m25u.js} +2 -2
- package/dist/{BusinessFinancingComponent-DmYxCifv.js → BusinessFinancingComponent-DAj2gvCq.js} +5 -5
- package/dist/{BusinessFinancingDropin-DbkFhxJT.js → BusinessFinancingDropin-RImpwNje.js} +31 -34
- package/dist/{BusinessFinancingPage-DulUJR2t.js → BusinessFinancingPage-B3XW6vMz.js} +4 -4
- package/dist/{BusinessTypeSelectionPage-B-vdLokC.js → BusinessTypeSelectionPage-D_yQV_GP.js} +9 -14
- package/dist/{Checkbox-D3Z0AWKj.js → Checkbox-DQGjbUsQ.js} +2 -2
- package/dist/{Confirm-C42kXNcg.js → Confirm-roUo52pe.js} +3 -3
- package/dist/{ConstitutionalDocument-DzgtU8np.js → ConstitutionalDocument-BW87TDZl.js} +336 -92
- package/dist/{ContactDetails--t1QRowR.js → ContactDetails-CGss-4M6.js} +12 -7
- package/dist/{ContextGuidance-C2yYCn3r.js → ContextGuidance-8vbKs48u.js} +2 -2
- package/dist/{CountryField-DzcOrjgs.js → CountryField-Cxih2YUu.js} +3 -3
- package/dist/{CreateIndividualComponent-BGs4XVIx.js → CreateIndividualComponent-k3J84uhw.js} +6 -6
- package/dist/{CreateTransferInstrumentComponent-8qbVjvCk.js → CreateTransferInstrumentComponent-bam-U6uj.js} +5 -5
- package/dist/{Currency-D_JvTwxX.js → Currency-DhqTdIeI.js} +7 -7
- package/dist/{CustomerSupport-C-r0iCOW.js → CustomerSupport-CdhIJFEE.js} +11 -16
- package/dist/{DebugModal-UZ3iEF4d.js → DebugModal-yfBBhyjs.js} +127 -98
- package/dist/DecisionMakerDetails-D0-COO1N.js +275 -0
- package/dist/{DecisionMakerDetailsPage-CORpG8qd.js → DecisionMakerDetailsPage-C-LGLbrJ.js} +10 -10
- package/dist/{DecisionMakers-D_B8GhAP.js → DecisionMakers-Bx51Ewcv.js} +22 -259
- package/dist/{Dropzone-CqXwk4Vf.js → Dropzone-Dy3XmCix.js} +4 -4
- package/dist/{EmbeddedStatus-Cq3s0VKQ.js → EmbeddedStatus-PFK1NCkS.js} +3 -3
- package/dist/{EndStateLayout-DyV9bKDz.js → EndStateLayout-5kx0pljK.js} +2 -2
- package/dist/{EntityAssociation-DoTWA9hu.js → EntityAssociation-BVxUknEP.js} +5 -5
- package/dist/{EntityGuidanceStatus-xpPB9g8U.js → EntityGuidanceStatus-CbP4RqW4.js} +4 -4
- package/dist/{ErrorPanel-BuHWbhfh.js → ErrorPanel-Cn8gzNGG.js} +11 -12
- package/dist/{Field-Dr2nucSo.js → Field-BDI27kIy.js} +2 -2
- package/dist/{FormNavigation-bTHzHm_a.js → FormNavigation-D90R1OgK.js} +3 -3
- package/dist/{Individual.rules-CvBrD7Ad.js → Individual.rules-BrdY-Rew.js} +12 -12
- package/dist/{IndividualDropin-DhipTriL.js → IndividualDropin-D5FrKUb-.js} +252 -97
- package/dist/{InputDate-HsJIDMnw.js → InputDate-nNag-jcu.js} +1 -1
- package/dist/{InputText-Cmp-jxkq.js → InputText-DFjKyN6O.js} +2 -2
- package/dist/{Introduction-CVb0Xx-s.js → Introduction-DhEG_Jvt.js} +4 -9
- package/dist/InvitedDecisionMakerComponent-DT_SCB2u.js +211 -0
- package/dist/{JpAddress-CC_IvY9U.js → JpAddress-DcJCN9dG.js} +11 -11
- package/dist/{LandingLayout-Hw-QdoQL.js → LandingLayout-CC_FGMAs.js} +2 -2
- package/dist/{LegalCompanyNameField-CWRd7AEp.js → LegalCompanyNameField-CgTgIMv8.js} +16 -16
- package/dist/{LegalRepresentativeDetailsPage-CY_iMQTc.js → LegalRepresentativeDetailsPage-D4d4eelX.js} +5 -5
- package/dist/{Link-DDnVkilX.js → Link-C30mEtLP.js} +2 -2
- package/dist/{ListItem-C5VcmY-s.js → ListItem-BQLamvB-.js} +3 -3
- package/dist/{LoaderWrapper-BFpnMaZr.js → LoaderWrapper-CgNgcjW-.js} +2 -2
- package/dist/{ManageIndividualComponent-Cb5wNkz0.js → ManageIndividualComponent-DKVcaPI6.js} +5 -5
- package/dist/{ManageTermsOfServiceComponent-10j2xeZu.js → ManageTermsOfServiceComponent-T_K9BahM.js} +4 -4
- package/dist/{ManageTransferInstrumentComponent-BpnoK4Sd.js → ManageTransferInstrumentComponent-Ch79d8JP.js} +11 -11
- package/dist/{MaskedInput-D6wQgEqZ.js → MaskedInput-B9djDROe.js} +5 -5
- package/dist/{MaybeModal-w8BdVyL9.js → MaybeModal-BYsvKCcc.js} +3 -3
- package/dist/{Modal-CBxIPgQb.js → Modal-727fSuFr.js} +2 -2
- package/dist/{Name-CFTJ-03j.js → Name-BN-K6-N2.js} +4 -4
- package/dist/{NewSummary-Bzl3znax.js → NewSummary-DTuLIMtG.js} +5 -5
- package/dist/{OnboardingDropinComponent-D6UOdrFV.js → OnboardingDropinComponent-CaRk-dgZ.js} +145 -218
- package/dist/{PayoutDetailsDropin-hc2Lwjfg.js → PayoutDetailsDropin-CaJE5U6g.js} +183 -1065
- package/dist/{PayoutDetailsPage-C2UkSM42.js → PayoutDetailsPage-B0i-iUKS.js} +6 -6
- package/dist/{RadioGroup-tAaHg-3v.js → RadioGroup-DQa-nkgM.js} +2 -2
- package/dist/{Review-Bhbx2iLe.js → Review-CgkKBldb.js} +6 -6
- package/dist/{RootBusinessDetailsPage-BtxfStzp.js → RootBusinessDetailsPage-Bh3M9G8g.js} +6 -6
- package/dist/{RootBusinessLinesPage-SBl1RJnK.js → RootBusinessLinesPage-C4wzI8-k.js} +93 -91
- package/dist/{RootIndividualDetailsPage-BKrFR8kJ.js → RootIndividualDetailsPage-GBrzZTH2.js} +7 -6
- package/dist/{Select-CDjrCQMg.js → Select-Bt5Y91sI.js} +4 -4
- package/dist/{SignPCIComponent-CsBd4n0S.js → SignPCIComponent-BxzfAQvx.js} +12 -19
- package/dist/{SingpassSelection-BLw_O_To.js → SingpassSelection-hjBRnBDR.js} +144 -7
- package/dist/{SoleProprietorshipPage-DugLl7bw.js → SoleProprietorshipPage-B6HqJtcC.js} +5 -5
- package/dist/{SourceOfFundsPage-BOpuSCH-.js → SourceOfFundsPage-D6V3pwXP.js} +270 -98
- package/dist/{StepProgressIndicator-U5i4HLMS.js → StepProgressIndicator-DhfpqmVy.js} +2 -2
- package/dist/{StoreProvider-DS3-j_yO.js → StoreProvider-CGAl-5Sk.js} +155 -148
- package/dist/{Summary-B4rVi_1E.js → Summary-DKmu4xU7.js} +25 -22
- package/dist/{TaxInformationField-Gascwiqq.js → TaxInformationField-wLMc_uT-.js} +568 -795
- package/dist/{TaxReportingDropin-BiUeYocK.js → TaxReportingDropin-DsPw-MUV.js} +26 -26
- package/dist/{TextArea-DHLHMQS0.js → TextArea-BGhv4y1a.js} +2 -2
- package/dist/{TileGroup-TQqcisEg.js → TileGroup-D3HIe8QQ.js} +3 -3
- package/dist/{TrustDetailsPage-B9qgsL7n.js → TrustDetailsPage-CWKPHxTe.js} +64 -65
- package/dist/{TrustMemberCompanyPage-Dv8gB3AJ.js → TrustMemberCompanyPage-C89-gUpd.js} +7 -7
- package/dist/{TrustMemberIndividualPage-B61REKTA.js → TrustMemberIndividualPage-Cz-Z8U7w.js} +6 -6
- package/dist/{TrustMemberRoleAndTypePage-B-937gVA.js → TrustMemberRoleAndTypePage-BxzEkGzE.js} +27 -27
- package/dist/{TrustMembersOverview-BUdUHg0i.js → TrustMembersOverview-BtycEgbW.js} +16 -18
- package/dist/{UnincorporatedPartnershipIndividualPage-CiXV1GFq.js → UnincorporatedPartnershipIndividualPage-CSQjYe4p.js} +5 -5
- package/dist/{UnincorporatedPartnershipMemberCompanyPage-DBvCnN3w.js → UnincorporatedPartnershipMemberCompanyPage-ZAQkvjQr.js} +6 -6
- package/dist/{UnincorporatedPartnershipMemberRoleAndTypePage-C5tojfbL.js → UnincorporatedPartnershipMemberRoleAndTypePage-B9bvg2ra.js} +11 -11
- package/dist/{UnincorporatedPartnershipMembersOverview-DPrp3a67.js → UnincorporatedPartnershipMembersOverview-DYDDYisa.js} +7 -7
- package/dist/{VerificationErrorAlert-DUcGedHl.js → VerificationErrorAlert-Sf7ovPdg.js} +3 -3
- package/dist/{ViewVerificationStatusComponent-ucroS2ge.js → ViewVerificationStatusComponent-D6qJacuF.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-YlO-EQ-z.js → bafinUtils-4YaweTCy.js} +2 -2
- package/dist/{commonValidators-Z8GTyWt2.js → commonValidators-nusLcRK6.js} +1 -1
- package/dist/{dropinUtils-DuoGe_aD.js → dropinUtils-DoPR1iTm.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-OvyHeoEE.js → formUtils-zdJ_jyqE.js} +3 -3
- package/dist/{getName-DxauASkL.js → getName-Ca2cTXzw.js} +2 -2
- package/dist/{getProblemsForEntity-yYZx85SH.js → getProblemsForEntity-CNltAsMa.js} +2 -2
- package/dist/getTrustedFields-rU6j1TOQ.js +104 -0
- package/dist/{isEmpty-CUJ_MTvj.js → isEmpty-BN2tOceJ.js} +1 -1
- package/dist/japanSupportUtils-B76IOTvL.js +16 -0
- package/dist/{localizeDateString-Cdq_DxXh.js → localizeDateString-9ciBezNu.js} +2 -2
- package/dist/{mapExistingFile-BX4VgHc9.js → mapExistingFile-BS79kq3W.js} +3 -76
- package/dist/{mapJpAddressSchemaToAddressLocalizations-fM535qJi.js → mapJpAddressSchemaToAddressLocalizations--7Bt3usJ.js} +2 -36
- package/dist/{mapLegalEntityToIndividualSchema-CtUOM-Zl.js → mapLegalEntityToIndividualSchema-BxOmNDle.js} +4 -4
- package/dist/{mapTransferInstrumentToPayoutAccount-CwsN-a7n.js → mapTransferInstrumentToPayoutAccount-ONPBT9KF.js} +2 -2
- package/dist/omitObscuredFieldsIfUnchanged-DhUQJrjg.js +29 -0
- package/dist/{patternValidators-vRnpmLkN.js → patternValidators-Cem-Icxv.js} +2 -2
- package/dist/{process-field-configurations-BGd8lBcb.js → process-field-configurations-BWC3i2at.js} +2 -2
- package/dist/{resolveEnvironment-CnQ__7cb.js → resolveEnvironment-BLaPb5Nd.js} +17 -24
- package/dist/{roleMetadata-B5g5kSns.js → roleMetadata-RivmWKE-.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-C_a8jv29.js → types-BLjngIPE.js} +2 -2
- package/dist/{types-_ugkpUNx.js → types-CTwBMnPB.js} +46 -37
- package/dist/{types-H2FCJ1-C.js → types-DmjPF4Sw.js} +2 -2
- package/dist/{types-CQ2p58-6.js → types-Dv0COrvY.js} +3 -2
- package/dist/{types-xe96hgXI.js → types-i_4sFTBn.js} +2 -2
- package/dist/{unincorporated-partnership-B6NRgago.js → unincorporated-partnership-R_fKlee-.js} +2 -2
- package/dist/{useAssociatedLegalEntity-CVzKts0I.js → useAssociatedLegalEntity-sPi1NDib.js} +2 -2
- package/dist/{useBusinessDetailsData-DfwcFRlQ.js → useBusinessDetailsData-Bqk04i4C.js} +443 -397
- package/dist/{useCreateLegalEntity-hrStnY6W.js → useCreateLegalEntity-Bsp9NV_x.js} +2 -2
- package/dist/{useForm-D6L2c9Li.js → useForm-OoKBR6oR.js} +3 -3
- package/dist/{useFormContext-CMsS317D.js → useFormContext-DSPJpGk8.js} +17 -8
- package/dist/{useGlobalData-6k8_ruDF.js → useGlobalData-Crfi88kZ.js} +24 -15
- package/dist/{useMultiForm-DM2vK1Np.js → useMultiForm-CvhpFewv.js} +4 -4
- package/dist/{useOnboardingStatus-DhKdv_Y5.js → useOnboardingStatus-CAHU1D0X.js} +2 -2
- package/dist/{useScenarios-CUR2KnWg.js → useScenarios-DBv_dA-7.js} +2 -2
- package/dist/{useTermsOfServiceStatus-BDMVKqbS.js → useTermsOfServiceStatus-ZQHlgGZB.js} +2 -2
- package/dist/{useToastContext-D4gUb18d.js → useToastContext-fRmLeQb3.js} +2 -2
- package/dist/{useUnincorporatedPartnershipMembers-DR2H0kGz.js → useUnincorporatedPartnershipMembers-DiyYkTfs.js} +5 -5
- package/dist/{useUpdateBusinessLines-DePb7PWG.js → useUpdateBusinessLines-R_TsTeL9.js} +6 -6
- package/dist/{useUpdateLegalEntity-DAa_GfP9.js → useUpdateLegalEntity-B08ICvGj.js} +3 -3
- package/dist/{utils-Dl-sL-p9.js → utils-3lClW_1M.js} +2 -2
- package/dist/{utils-BWV6yYFy.js → utils-B0FPRdWI.js} +22 -2
- package/dist/{utils-CnnnCh8B.js → utils-BRoXRTJU.js} +6 -6
- package/dist/{utils--FMWv23g.js → utils-Bjuz29z7.js} +53 -6
- package/dist/{utils-Cm_KCWsB.js → utils-CPMlF6U8.js} +1 -1
- package/dist/{validate-C7J6rZcj.js → validate-Bkn-4Xav.js} +1 -1
- package/dist/{validate-C-38T_GY.js → validate-DXgI7aOv.js} +3 -3
- package/dist/{validationError-C6qoE3Ei.js → validationError-1Dg0ubhb.js} +2 -2
- package/package.json +1 -5
- package/dist/RadioGroupCard-fFofJm6m.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-D0lDhWvH.js +0 -234
- package/dist/instant-verification-UrnuHTYn.js +0 -40
- package/dist/japanSupportUtils-9uEg0pbP.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-CGAl-5Sk.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-fRmLeQb3.js";
|
|
14
|
+
import { u as useUpdateLegalEntity } from "./useUpdateLegalEntity-B08ICvGj.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-DSPJpGk8.js";
|
|
17
|
+
import { g as getRequiredForms, a as addValidityToForms, u as useFormComposer } from "./dropinUtils-DoPR1iTm.js";
|
|
18
|
+
import { u as useMultiForm } from "./useMultiForm-CvhpFewv.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-BDI27kIy.js";
|
|
22
|
+
import { L as Link } from "./Link-C30mEtLP.js";
|
|
23
|
+
import { R as RadioGroup } from "./RadioGroup-DQa-nkgM.js";
|
|
24
24
|
import { lazy } from "preact/compat";
|
|
25
|
-
import {
|
|
25
|
+
import { u as useTaskStatus } from "./getTrustedFields-rU6j1TOQ.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-R_fKlee-.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-CC_FGMAs.js";
|
|
30
|
+
import { i as isEmpty } from "./isEmpty-BN2tOceJ.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-CGAl-5Sk.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-CGAl-5Sk.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-727fSuFr.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-CGAl-5Sk.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-sPi1NDib.js";
|
|
14
|
+
import { u as useCapabilityProblems, g as getProblemsForEntity } from "./getProblemsForEntity-CNltAsMa.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-Bsp9NV_x.js";
|
|
17
|
+
import { u as useUpdateLegalEntity } from "./useUpdateLegalEntity-B08ICvGj.js";
|
|
18
|
+
import { u as useGlobalDataSlice, c as useStateContext, F as FormWrapper } from "./useGlobalData-Crfi88kZ.js";
|
|
19
|
+
import { u as useToastContext } from "./useToastContext-fRmLeQb3.js";
|
|
20
|
+
import { g as getPropsFromConfigurations, a as augmentWithCountryConfigs, c as composePerScenarioFormConfigurations } from "./process-field-configurations-BWC3i2at.js";
|
|
21
|
+
import { g as getRequiredForms, a as addValidityToForms, u as useFormComposer } from "./dropinUtils-DoPR1iTm.js";
|
|
22
|
+
import { m as mapExistingFile, g as getPageName, b as useScenarioConfiguration } from "./mapExistingFile-BS79kq3W.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-BW87TDZl.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-wLMc_uT-.js";
|
|
25
|
+
import { m as mapAddressLabels } from "./utils-B0FPRdWI.js";
|
|
26
|
+
import { i as isValidationError, p as processValidationErrors, a as isMaintenanceModeError } from "./validationError-1Dg0ubhb.js";
|
|
27
|
+
import { a as getDocument, c as createDocumentRequest, d as documentApiUtils } from "./validate-DXgI7aOv.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-BLjngIPE.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-BDI27kIy.js";
|
|
34
|
+
import { S as Select } from "./Select-Bt5Y91sI.js";
|
|
35
|
+
import { u as useForm } from "./useForm-OoKBR6oR.js";
|
|
36
|
+
import { E as ErrorPanel } from "./ErrorPanel-Cn8gzNGG.js";
|
|
37
|
+
import { I as InputText } from "./InputText-DFjKyN6O.js";
|
|
38
|
+
import { C as CountryField, a as COUNTRY_FIELD } from "./CountryField-Cxih2YUu.js";
|
|
39
|
+
import { m as mergeFieldMetadataIntoProps, c as createFormUtils } from "./formUtils-zdJ_jyqE.js";
|
|
40
|
+
import { i as isEmpty } from "./isEmpty-BN2tOceJ.js";
|
|
41
|
+
import { a as validateNotEmptyOnBlur } from "./patternValidators-Cem-Icxv.js";
|
|
42
|
+
import { u as useFormContext, F as FormContextProvider, a as FormFlow } from "./useFormContext-DSPJpGk8.js";
|
|
43
|
+
import { u as useMultiForm } from "./useMultiForm-CvhpFewv.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-DQa-nkgM.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-D0JjbOT4.js";
|
|
51
|
+
import { C as ContextGuidance } from "./ContextGuidance-8vbKs48u.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-CGAl-5Sk.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-CaRk-dgZ.js";
|
|
15
|
+
import { u as useCapabilityProblems, g as getProblemsForEntity } from "./getProblemsForEntity-CNltAsMa.js";
|
|
16
|
+
import { u as useBusinessDetailsData, B as BusinessDetailsDropin } from "./useBusinessDetailsData-Bqk04i4C.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, {});
|