@adyen/kyc-components 4.5.0 → 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-Bo8nB0Eb.js → AcceptTermsOfServiceComponent-DTURkN9O.js} +17 -20
- package/dist/{AccountSetupRejected-DQcFbIXL.js → AccountSetupRejected-D7yqqcm_.js} +2 -2
- package/dist/{ActionBar-Bj1Km-LP.js → ActionBar-CdFYb-7S.js} +2 -2
- package/dist/{Address-C0rbmhQL.js → Address-BkeFTMl-.js} +16 -16
- package/dist/{Avatar-Cl1-jo6c.js → Avatar-BpQFX0rJ.js} +2 -2
- package/dist/{BusinessFinancingComponent-Bk0PbC9m.js → BusinessFinancingComponent-CshEgNjO.js} +5 -5
- package/dist/{BusinessFinancingDropin-BAYyFYt9.js → BusinessFinancingDropin-B2kKDCNB.js} +31 -34
- package/dist/{BusinessFinancingPage-Cc--qt48.js → BusinessFinancingPage-96zTF7BJ.js} +4 -4
- package/dist/{BusinessTypeSelectionPage-C63ujxOo.js → BusinessTypeSelectionPage-BVucjw8H.js} +9 -14
- package/dist/{Checkbox-DnP0i74G.js → Checkbox-Dwf4zXgj.js} +2 -2
- package/dist/{Confirm-Bf4Pjkty.js → Confirm-DOjzHnlC.js} +3 -3
- package/dist/{ConstitutionalDocument-CddO3OSY.js → ConstitutionalDocument-C4HWFtJ-.js} +336 -92
- package/dist/{ContactDetails-BZ7dqNuH.js → ContactDetails-ByrH32Jo.js} +12 -7
- package/dist/{ContextGuidance-0XKaQ9Ba.js → ContextGuidance-BUczCMV3.js} +2 -2
- package/dist/{CountryField-BTwq-LdM.js → CountryField-C9nbUmpe.js} +3 -3
- package/dist/{CreateIndividualComponent-B0RfIm2Q.js → CreateIndividualComponent-AOb8RP8N.js} +6 -6
- package/dist/{CreateTransferInstrumentComponent-XiVVyTGX.js → CreateTransferInstrumentComponent-BBytn3E3.js} +5 -5
- package/dist/{Currency-COs4cPiC.js → Currency-B1ApVUnP.js} +7 -7
- package/dist/{CustomerSupport-WsGepkci.js → CustomerSupport-DDtZA5jI.js} +11 -16
- package/dist/{DebugModal-BG-xZugG.js → DebugModal-wXFq4cg1.js} +127 -98
- package/dist/DecisionMakerDetails-Up9HU_qy.js +275 -0
- package/dist/{DecisionMakerDetailsPage-BNDJ4G9u.js → DecisionMakerDetailsPage-OeI7y1aX.js} +10 -10
- package/dist/{DecisionMakers-BkgGDV_d.js → DecisionMakers-5bUJ4S4V.js} +22 -259
- package/dist/{Dropzone-1307mgIt.js → Dropzone-Bf8v-4iJ.js} +4 -4
- package/dist/{EmbeddedStatus-C9Scvouz.js → EmbeddedStatus-DQmqyOzv.js} +3 -3
- package/dist/{EndStateLayout-D8bTvH_H.js → EndStateLayout-DZgYKmw6.js} +2 -2
- package/dist/{EntityAssociation-CFtBLGS6.js → EntityAssociation-Dc8O6xJv.js} +5 -5
- package/dist/{EntityGuidanceStatus-5wNdPvGh.js → EntityGuidanceStatus-DhCqUWGF.js} +4 -4
- package/dist/{ErrorPanel-DNuuMh-W.js → ErrorPanel-4HIDH4sr.js} +11 -12
- package/dist/{Field-DhgxtDHi.js → Field-CWq5XOh3.js} +2 -2
- package/dist/{FormNavigation-CNUCAuSA.js → FormNavigation-CDlQZRNb.js} +3 -3
- package/dist/{Individual.rules-BMayKVCw.js → Individual.rules-BhSXCdTl.js} +12 -12
- package/dist/{IndividualDropin-CNYG1UJb.js → IndividualDropin-DS8kUrXB.js} +252 -97
- package/dist/{InputDate-UU6golKr.js → InputDate-C2NEOpK4.js} +1 -1
- package/dist/{InputText-B_Dy6ooB.js → InputText-20pWI3ja.js} +2 -2
- package/dist/{Introduction-Dal7p5Mk.js → Introduction-D6x5z2oe.js} +4 -9
- package/dist/InvitedDecisionMakerComponent-Bg-DMehe.js +211 -0
- package/dist/{JpAddress-DEzR_98l.js → JpAddress-CX4IfNRB.js} +11 -11
- package/dist/{LandingLayout-CHRI270t.js → LandingLayout-y-X0NrR1.js} +2 -2
- package/dist/{LegalCompanyNameField-BtcoTH2A.js → LegalCompanyNameField-lEerISaT.js} +16 -16
- package/dist/{LegalRepresentativeDetailsPage-DkeUe4ta.js → LegalRepresentativeDetailsPage-C6dOsu1g.js} +5 -5
- package/dist/{Link-Bl_GjNYw.js → Link-DeFoaStC.js} +2 -2
- package/dist/{ListItem-DvSwwjUU.js → ListItem-BFxtRiVb.js} +3 -3
- package/dist/{LoaderWrapper-Coambg3s.js → LoaderWrapper-Bh1b67kY.js} +2 -2
- package/dist/{ManageIndividualComponent-Cg7imjd5.js → ManageIndividualComponent-DHYNg_KN.js} +5 -5
- package/dist/{ManageTermsOfServiceComponent-DIblbnOJ.js → ManageTermsOfServiceComponent-BNzELB7A.js} +4 -4
- package/dist/{ManageTransferInstrumentComponent-COucevgP.js → ManageTransferInstrumentComponent-9r84TFsu.js} +11 -11
- package/dist/{MaskedInput-CFPRK30D.js → MaskedInput-DPSvsK95.js} +5 -5
- package/dist/{MaybeModal-BBBJD1jn.js → MaybeModal-BbrppFfg.js} +3 -3
- package/dist/{Modal-DJLTbW4Y.js → Modal-CAVcW_pH.js} +2 -2
- package/dist/{Name-Bu38kdOA.js → Name-eQhc9Vta.js} +4 -4
- package/dist/{NewSummary-oIcQyhuq.js → NewSummary-B_xfd8vG.js} +5 -5
- package/dist/{OnboardingDropinComponent-DqQmqcO8.js → OnboardingDropinComponent-BRZuLCE8.js} +145 -218
- package/dist/{PayoutDetailsDropin-D7AR5BSQ.js → PayoutDetailsDropin-B6ZMIVid.js} +183 -1065
- package/dist/{PayoutDetailsPage-BCBGGB28.js → PayoutDetailsPage-BSzf6sev.js} +6 -6
- package/dist/{RadioGroup-DCmqcl_S.js → RadioGroup-BZ-EfNXM.js} +2 -2
- package/dist/{Review-DQA1vIzH.js → Review-BVeMAC7t.js} +6 -6
- package/dist/{RootBusinessDetailsPage--bsR-yKt.js → RootBusinessDetailsPage-OlgTozou.js} +6 -6
- package/dist/{RootBusinessLinesPage-DIYKqsLt.js → RootBusinessLinesPage-CUwKkzZU.js} +93 -91
- package/dist/{RootIndividualDetailsPage-CXKr1vhL.js → RootIndividualDetailsPage-CqP8gdvk.js} +7 -6
- package/dist/{Select-CyK-d8L8.js → Select-DSLn5CCG.js} +4 -4
- package/dist/{SignPCIComponent-BvAt735T.js → SignPCIComponent-CT6GL442.js} +12 -19
- package/dist/{SingpassSelection-Cidszm4a.js → SingpassSelection-BORgM-de.js} +144 -7
- package/dist/{SoleProprietorshipPage-CgAHjrJh.js → SoleProprietorshipPage-BylQa2F1.js} +5 -5
- package/dist/{SourceOfFundsPage-Rh40Ip6D.js → SourceOfFundsPage-Br-FaeUd.js} +270 -98
- package/dist/{StepProgressIndicator-C38x_hKs.js → StepProgressIndicator-ZZsrHrtb.js} +2 -2
- package/dist/{StoreProvider-o79GZkUo.js → StoreProvider-lJLpl6iE.js} +155 -148
- package/dist/{Summary-DbPdEnQi.js → Summary-DdFh8LL0.js} +25 -22
- package/dist/{TaxInformationField-C6DdzDTL.js → TaxInformationField-5nazrzc4.js} +568 -795
- package/dist/{TaxReportingDropin-Dc75TUYl.js → TaxReportingDropin-DAeAPOI5.js} +26 -26
- package/dist/{TextArea-XLgx9WmG.js → TextArea-D0eJRv8v.js} +2 -2
- package/dist/{TileGroup-DsYUn_bt.js → TileGroup-C8YY0Xwv.js} +3 -3
- package/dist/{TrustDetailsPage-B_QUEYM5.js → TrustDetailsPage-BHo4SFbD.js} +64 -65
- package/dist/{TrustMemberCompanyPage-aBW14Thb.js → TrustMemberCompanyPage-CZMF952c.js} +7 -7
- package/dist/{TrustMemberIndividualPage-DNgZI75l.js → TrustMemberIndividualPage-RSIXbPaf.js} +6 -6
- package/dist/{TrustMemberRoleAndTypePage-CbOyf3oB.js → TrustMemberRoleAndTypePage-BehlWyo7.js} +27 -27
- package/dist/{TrustMembersOverview-7waB6Dud.js → TrustMembersOverview-KI0J7peC.js} +16 -18
- package/dist/{UnincorporatedPartnershipIndividualPage-DFvESJUR.js → UnincorporatedPartnershipIndividualPage-CNf-sPP4.js} +5 -5
- package/dist/{UnincorporatedPartnershipMemberCompanyPage-j2xmgM94.js → UnincorporatedPartnershipMemberCompanyPage-OyKeY30-.js} +6 -6
- package/dist/{UnincorporatedPartnershipMemberRoleAndTypePage-BlJsglW1.js → UnincorporatedPartnershipMemberRoleAndTypePage-Bt21JX-F.js} +11 -11
- package/dist/{UnincorporatedPartnershipMembersOverview-1-yK01Ox.js → UnincorporatedPartnershipMembersOverview-DdTGn8QH.js} +7 -7
- package/dist/{VerificationErrorAlert-BsJqccUV.js → VerificationErrorAlert-ChGZqC_p.js} +3 -3
- package/dist/{ViewVerificationStatusComponent-Bx3tJek7.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-sfpUKqEq.js → bafinUtils-m56sOqio.js} +2 -2
- package/dist/{commonValidators-h59h4U6_.js → commonValidators-cEWuPs2I.js} +1 -1
- package/dist/{dropinUtils-C78qUFNH.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-D9HJXrvu.js → formUtils-DjInEErz.js} +3 -3
- package/dist/{getName-C1Pp12yX.js → getName-CzAV6RHp.js} +2 -2
- package/dist/{getProblemsForEntity-CyQdh7Lw.js → getProblemsForEntity-CVzYoCCC.js} +2 -2
- package/dist/getTrustedFields-BeaCYGD7.js +104 -0
- package/dist/{isEmpty-Dxhg5YWQ.js → isEmpty-CRqBruDc.js} +1 -1
- package/dist/japanSupportUtils-BK4rTASp.js +16 -0
- package/dist/{localizeDateString-ltj3KR-p.js → localizeDateString-BSZiJcEb.js} +2 -2
- package/dist/{mapExistingFile-J5xtIyOp.js → mapExistingFile-BcvOzQNH.js} +3 -76
- package/dist/{mapJpAddressSchemaToAddressLocalizations-BCTFanCP.js → mapJpAddressSchemaToAddressLocalizations-BgHjkrJG.js} +2 -36
- package/dist/{mapLegalEntityToIndividualSchema-fUEX0pyE.js → mapLegalEntityToIndividualSchema-_HlywUjg.js} +4 -4
- package/dist/{mapTransferInstrumentToPayoutAccount-BxS7kMUd.js → mapTransferInstrumentToPayoutAccount-69DkBhXm.js} +2 -2
- package/dist/omitObscuredFieldsIfUnchanged-tsdNkCyN.js +29 -0
- package/dist/{patternValidators-DmtoCjEe.js → patternValidators-DuOaKe_S.js} +2 -2
- package/dist/{process-field-configurations-Bo_HZH3p.js → process-field-configurations-DcWH0t4d.js} +2 -2
- package/dist/{resolveEnvironment-9pYwfLRr.js → resolveEnvironment-Bs-ygpN1.js} +17 -24
- package/dist/{roleMetadata-ZbDuZjur.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-Bbb9XYx7.js → types-C4u-zy-W.js} +2 -2
- package/dist/{types-_ugkpUNx.js → types-CTwBMnPB.js} +46 -37
- package/dist/{types-Dz6L62GR.js → types-Cop44iUw.js} +2 -2
- package/dist/{types-CQ2p58-6.js → types-Dv0COrvY.js} +3 -2
- package/dist/{types-C4ieOutZ.js → types-QKgg5_IB.js} +2 -2
- package/dist/{unincorporated-partnership-BC2PWEgm.js → unincorporated-partnership-DCtqSVs0.js} +2 -2
- package/dist/{useAssociatedLegalEntity-BSvkLl8Y.js → useAssociatedLegalEntity-COa3bZhe.js} +2 -2
- package/dist/{useBusinessDetailsData-BMzgGX4d.js → useBusinessDetailsData-DslnLoRz.js} +443 -397
- package/dist/{useCreateLegalEntity-i6pKh0i4.js → useCreateLegalEntity-CO7qV3Sc.js} +2 -2
- package/dist/{useForm-CdWcC_Oh.js → useForm-F0hPmSqd.js} +3 -3
- package/dist/{useFormContext-DGfVqoR2.js → useFormContext-EeYo1zte.js} +17 -8
- package/dist/{useGlobalData-B6jCg1Ek.js → useGlobalData-DKxTj6bo.js} +24 -15
- package/dist/{useMultiForm-Cmp2wrss.js → useMultiForm-CR9pqYjq.js} +4 -4
- package/dist/{useOnboardingStatus-Dm_xuWC2.js → useOnboardingStatus-D2I19RDh.js} +2 -2
- package/dist/{useScenarios-ho-q4vGs.js → useScenarios-BvV1t76w.js} +2 -2
- package/dist/{useTermsOfServiceStatus-Dof1-HII.js → useTermsOfServiceStatus-C0uqYCFG.js} +2 -2
- package/dist/{useToastContext-CflZZ_Su.js → useToastContext-Dl59lP3Q.js} +2 -2
- package/dist/{useUnincorporatedPartnershipMembers-rfHqZZWF.js → useUnincorporatedPartnershipMembers-BRQxcrvc.js} +5 -5
- package/dist/{useUpdateBusinessLines-vNF2Y_nP.js → useUpdateBusinessLines-FG7FE2l9.js} +6 -6
- package/dist/{useUpdateLegalEntity-CtdSLVIW.js → useUpdateLegalEntity-Dr3e1mG2.js} +3 -3
- package/dist/{utils-CPWcV5kL.js → utils-2-VlpJvY.js} +2 -2
- package/dist/{utils-DHB6YxqA.js → utils-Bmx7w6cI.js} +6 -6
- package/dist/{utils-CXn7BO_7.js → utils-CCjjhUUz.js} +53 -6
- package/dist/{utils-CF18b8u8.js → utils-CWrDCmo5.js} +22 -2
- package/dist/{utils-DXCw1aJK.js → utils-DCXRR-sY.js} +1 -1
- package/dist/{validate-DPhS2sGf.js → validate-B--uGfCw.js} +1 -1
- package/dist/{validate-BH9M6gvx.js → validate-DdW_lr56.js} +3 -3
- package/dist/{validationError-BDDYiyYy.js → validationError-DmyvOY60.js} +2 -2
- package/package.json +1 -5
- package/dist/RadioGroupCard-nQz2Uhca.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-D-vHGFmR.js +0 -234
- package/dist/instant-verification-UrnuHTYn.js +0 -40
- package/dist/japanSupportUtils-C5HeKRQ7.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
|
@@ -0,0 +1,275 @@
|
|
|
1
|
+
;
|
|
2
|
+
{
|
|
3
|
+
try {
|
|
4
|
+
let e = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : {}, n = new e.Error().stack;
|
|
5
|
+
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "75087c3e-a443-4285-9335-a6ecb6331730", e._sentryDebugIdIdentifier = "sentry-dbid-75087c3e-a443-4285-9335-a6ecb6331730");
|
|
6
|
+
} catch (e) {
|
|
7
|
+
}
|
|
8
|
+
}
|
|
9
|
+
;
|
|
10
|
+
import { jsxs, Fragment, jsx } from "preact/jsx-runtime";
|
|
11
|
+
import { useState, useMemo } from "preact/hooks";
|
|
12
|
+
import { y as TaskStatuses, as as DecisionMakerTypes, aX as drop, an as cloneObject, am as datasetUtilities, u as useTranslation, P as useLegalEntity, V as Button, U as Loader, O as StackLayout, G as TaskVerificationStatus, N as Typography } from "./StoreProvider-lJLpl6iE.js";
|
|
13
|
+
import { L as List } from "./List-BAzyC6sw.js";
|
|
14
|
+
import { L as ListItem } from "./ListItem-BFxtRiVb.js";
|
|
15
|
+
import { M as Modal } from "./Modal-CAVcW_pH.js";
|
|
16
|
+
import { S as StructuredList } from "./StructuredList-CNha20ka.js";
|
|
17
|
+
import { D as DetailViewLayout } from "./DetailViewLayout-Z9cuUp4X.js";
|
|
18
|
+
import { C as Confirm } from "./Confirm-DOjzHnlC.js";
|
|
19
|
+
import { b as getTrustedEntityAssociations } from "./getTrustedFields-BeaCYGD7.js";
|
|
20
|
+
import { G as GuidanceQuestionValues, m as mapLegalEntityToIndividualSchema } from "./mapLegalEntityToIndividualSchema-_HlywUjg.js";
|
|
21
|
+
import { m as mapAddressLabels } from "./utils-CWrDCmo5.js";
|
|
22
|
+
import { l as localizeDateString } from "./localizeDateString-BSZiJcEb.js";
|
|
23
|
+
const BENEFICIAL_OWNER_ROLES = [
|
|
24
|
+
DecisionMakerTypes.OWNER,
|
|
25
|
+
DecisionMakerTypes.CONTROLLING_PERSON,
|
|
26
|
+
DecisionMakerTypes.DIRECTOR
|
|
27
|
+
];
|
|
28
|
+
const getDecisionMakerDescription = (types, t) => {
|
|
29
|
+
const isSignatory = types.includes(DecisionMakerTypes.SIGNATORY);
|
|
30
|
+
const isBeneficialOwner = types.some((type) => BENEFICIAL_OWNER_ROLES.includes(type));
|
|
31
|
+
return [isSignatory && t(($) => $.signatory), isBeneficialOwner && t(($) => $.beneficialOwner)].filter(Boolean).join(", ");
|
|
32
|
+
};
|
|
33
|
+
const getLandingLayoutProps = (submitStatus, isErrorOrDetailsRequired, t) => {
|
|
34
|
+
if (submitStatus === TaskStatuses.PROCESSING) {
|
|
35
|
+
return {
|
|
36
|
+
title: t(($) => $["thankYou"]),
|
|
37
|
+
description: t(($) => $["weWillReviewYourDetails"])
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
if (isErrorOrDetailsRequired) {
|
|
41
|
+
return {
|
|
42
|
+
title: t(($) => $["weNeedSomeAdditionalDetails"]),
|
|
43
|
+
description: t(($) => $["weHaveReviewedTheDetailsYouSubmitted"])
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
return {
|
|
47
|
+
title: t(($) => $["yourDetailsHaveBeenVerified"]),
|
|
48
|
+
description: t(($) => $["thankYouForYourAssistance"]),
|
|
49
|
+
content: t(($) => $["youCanSafelyCloseThisPage"])
|
|
50
|
+
};
|
|
51
|
+
};
|
|
52
|
+
const isManualVerificationOrExistingDoc = (idVerificationMethod) => idVerificationMethod === "manualVerification" || idVerificationMethod === "existingDocument";
|
|
53
|
+
const formatFileSummaryData = (data, locale) => {
|
|
54
|
+
const { idVerificationMethod, proofOfNationalId, proofOfResidency, proofOfRelationship } = data;
|
|
55
|
+
const proofOfNationalIdFile = proofOfNationalId?.proofOfNationalId?.[0];
|
|
56
|
+
const proofOfResidencyFile = proofOfResidency?.proofOfResidency?.[0];
|
|
57
|
+
const proofOfRelationshipFile = proofOfRelationship?.proofOfRelationship?.[0];
|
|
58
|
+
const idDocument = {
|
|
59
|
+
idDocumentType: idVerificationMethod?.idDocument?.idDocumentType,
|
|
60
|
+
uploadedDate: idVerificationMethod?.idDocument?.modificationDate ? localizeDateString(idVerificationMethod?.idDocument?.modificationDate ?? "", locale) : void 0
|
|
61
|
+
};
|
|
62
|
+
return {
|
|
63
|
+
// Format the ID document if it exists.
|
|
64
|
+
...idDocument?.idDocumentType && {
|
|
65
|
+
idDocument
|
|
66
|
+
},
|
|
67
|
+
// Include proof of national ID file name if it exists.
|
|
68
|
+
...proofOfNationalIdFile && {
|
|
69
|
+
proofOfNationalId: {
|
|
70
|
+
fileName: proofOfNationalIdFile.name
|
|
71
|
+
}
|
|
72
|
+
},
|
|
73
|
+
// Include proof of residency file name if it exists.
|
|
74
|
+
...proofOfResidencyFile && {
|
|
75
|
+
proofOfResidency: {
|
|
76
|
+
fileName: proofOfResidencyFile.name
|
|
77
|
+
}
|
|
78
|
+
},
|
|
79
|
+
// Include proof of relationship file name if it exists.
|
|
80
|
+
...proofOfRelationshipFile && {
|
|
81
|
+
proofOfRelationship: {
|
|
82
|
+
fileName: proofOfRelationshipFile.name
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
};
|
|
86
|
+
};
|
|
87
|
+
const formatDataForSummary = (dataToFormat, locale, commonT) => {
|
|
88
|
+
if (!dataToFormat) return {};
|
|
89
|
+
const datasetUtils = datasetUtilities(locale);
|
|
90
|
+
let formattedSummaryData = cloneObject(dataToFormat);
|
|
91
|
+
if (formattedSummaryData?.basicDetails?.phoneNumber) {
|
|
92
|
+
formattedSummaryData.basicDetails.phoneNumber = formattedSummaryData.basicDetails.phoneNumber.number;
|
|
93
|
+
}
|
|
94
|
+
if (formattedSummaryData.additionalPersonalDetails?.country) {
|
|
95
|
+
formattedSummaryData.additionalPersonalDetails.country = datasetUtils.getCountryName(
|
|
96
|
+
formattedSummaryData.additionalPersonalDetails.country
|
|
97
|
+
);
|
|
98
|
+
}
|
|
99
|
+
if (formattedSummaryData.additionalPersonalDetails?.nationality) {
|
|
100
|
+
formattedSummaryData.additionalPersonalDetails.nationality = datasetUtils.getCountryName(
|
|
101
|
+
formattedSummaryData.additionalPersonalDetails.nationality
|
|
102
|
+
);
|
|
103
|
+
}
|
|
104
|
+
if (formattedSummaryData.additionalPersonalDetails) {
|
|
105
|
+
formattedSummaryData.address = mapAddressLabels(
|
|
106
|
+
formattedSummaryData.additionalPersonalDetails,
|
|
107
|
+
datasetUtils
|
|
108
|
+
);
|
|
109
|
+
}
|
|
110
|
+
if (formattedSummaryData.basicDetails?.accountHolder) {
|
|
111
|
+
formattedSummaryData.basicDetails.accountHolder = commonT(
|
|
112
|
+
($) => $[formattedSummaryData.basicDetails.accountHolder]
|
|
113
|
+
);
|
|
114
|
+
}
|
|
115
|
+
if (formattedSummaryData.additionalPersonalDetails?.birthDate) {
|
|
116
|
+
formattedSummaryData.additionalPersonalDetails.birthDate = localizeDateString(
|
|
117
|
+
formattedSummaryData.additionalPersonalDetails.birthDate,
|
|
118
|
+
locale
|
|
119
|
+
);
|
|
120
|
+
}
|
|
121
|
+
if (isManualVerificationOrExistingDoc(
|
|
122
|
+
formattedSummaryData.idVerificationMethod?.idVerificationMethod
|
|
123
|
+
) || formattedSummaryData.proofOfResidency) {
|
|
124
|
+
const fileSummaryData = formatFileSummaryData(dataToFormat, locale);
|
|
125
|
+
formattedSummaryData = { ...formattedSummaryData, ...fileSummaryData };
|
|
126
|
+
formattedSummaryData.manualIdUpload = { ...formattedSummaryData.idDocument };
|
|
127
|
+
formattedSummaryData.idVerificationMethod.idDocument = { ...formattedSummaryData.idDocument };
|
|
128
|
+
}
|
|
129
|
+
if (formattedSummaryData.additionalPersonalDetails?.taxInformation) {
|
|
130
|
+
const taxInformationByNationality = formattedSummaryData.additionalPersonalDetails.taxInformation.find(
|
|
131
|
+
(taxId) => taxId.country === dataToFormat.additionalPersonalDetails?.nationality
|
|
132
|
+
);
|
|
133
|
+
if (taxInformationByNationality) {
|
|
134
|
+
delete formattedSummaryData.additionalPersonalDetails.taxInformation;
|
|
135
|
+
formattedSummaryData.additionalPersonalDetails[taxInformationByNationality.type] = taxInformationByNationality.number;
|
|
136
|
+
}
|
|
137
|
+
if (!taxInformationByNationality) {
|
|
138
|
+
const taxInformationByCountry = formattedSummaryData.additionalPersonalDetails.taxInformation.find(
|
|
139
|
+
(taxId) => taxId.country === dataToFormat.additionalPersonalDetails?.country
|
|
140
|
+
);
|
|
141
|
+
if (taxInformationByCountry) {
|
|
142
|
+
delete formattedSummaryData.additionalPersonalDetails.taxInformation;
|
|
143
|
+
formattedSummaryData.additionalPersonalDetails[taxInformationByCountry.type] = taxInformationByCountry.number;
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
}
|
|
147
|
+
if (formattedSummaryData?.signatoryQuestionnaire) {
|
|
148
|
+
formattedSummaryData.signatoryQuestionnaire = dataToFormat?.signatoryQuestionnaire?.isSignatory === GuidanceQuestionValues.YES ? [commonT(($) => $["signatorySummaryLabel"])] : [];
|
|
149
|
+
}
|
|
150
|
+
if (formattedSummaryData?.uboQuestionnaire) {
|
|
151
|
+
const roleFieldToLabelMap = {
|
|
152
|
+
isOwner: "ownerSummaryLabel",
|
|
153
|
+
isControllingPerson: "controllingPersonSummaryLabel",
|
|
154
|
+
isDirector: "directorSummaryLabel"
|
|
155
|
+
};
|
|
156
|
+
formattedSummaryData.uboQuestionnaire = Object.keys(roleFieldToLabelMap).flatMap(
|
|
157
|
+
(field) => dataToFormat?.uboQuestionnaire?.[field] === GuidanceQuestionValues.YES ? [commonT(($) => $[roleFieldToLabelMap[field]])] : []
|
|
158
|
+
);
|
|
159
|
+
}
|
|
160
|
+
return formattedSummaryData;
|
|
161
|
+
};
|
|
162
|
+
const getOmittedKeysForSummary = (data, taskType) => [
|
|
163
|
+
// Omit 'role' if the task is for a decision maker.
|
|
164
|
+
...["role"],
|
|
165
|
+
// Omit 'idNumber' if the user is exempt from providing it.
|
|
166
|
+
...data?.additionalPersonalDetails?.idNumberExempt ? ["idNumber"] : [],
|
|
167
|
+
// Omit 'idVerificationMethod' if manual verification was used.
|
|
168
|
+
...isManualVerificationOrExistingDoc(data?.idVerificationMethod?.idVerificationMethod) ? ["idVerificationMethod"] : [],
|
|
169
|
+
"address",
|
|
170
|
+
"manualIdUpload"
|
|
171
|
+
];
|
|
172
|
+
const getSummaryData = (data, locale, commonT, taskType) => {
|
|
173
|
+
const summaryData = formatDataForSummary(data, locale, commonT);
|
|
174
|
+
const omittedKeys = getOmittedKeysForSummary(data)?.filter(Boolean);
|
|
175
|
+
return {
|
|
176
|
+
...drop(...omittedKeys).from(summaryData),
|
|
177
|
+
basicDetails: drop("firstName", "lastName", "role", "nomineeShareholder").from(
|
|
178
|
+
summaryData.basicDetails
|
|
179
|
+
),
|
|
180
|
+
additionalPersonalDetails: drop("idNumberExempt").from(summaryData.additionalPersonalDetails),
|
|
181
|
+
idDocument: summaryData.idVerificationMethod?.idDocument
|
|
182
|
+
};
|
|
183
|
+
};
|
|
184
|
+
const getStructuredListItems = (data, commonT) => {
|
|
185
|
+
if (typeof data !== "object" || data === null || Array.isArray(data)) {
|
|
186
|
+
return [];
|
|
187
|
+
}
|
|
188
|
+
return Object.entries(data).filter(
|
|
189
|
+
([itemKey, itemValue]) => itemValue != null && itemValue !== "" && !["nomineeDirector", "nomineeShareholder"].includes(itemKey) && (!Array.isArray(itemValue) || itemValue.length > 0)
|
|
190
|
+
).map(([itemKey, itemValue]) => ({
|
|
191
|
+
term: commonT(($) => $[itemKey]),
|
|
192
|
+
details: Array.isArray(itemValue) ? itemValue.join(", ") : commonT(($) => $[itemValue]) || String(itemValue),
|
|
193
|
+
type: Array.isArray(itemValue) ? "list" : "text"
|
|
194
|
+
}));
|
|
195
|
+
};
|
|
196
|
+
const DecisionMakerDetails = ({
|
|
197
|
+
decisionMaker,
|
|
198
|
+
parentLegalEntity,
|
|
199
|
+
handleClose,
|
|
200
|
+
handleDelete,
|
|
201
|
+
handleEdit
|
|
202
|
+
}) => {
|
|
203
|
+
const { t: commonT, i18n } = useTranslation("common");
|
|
204
|
+
const { t: individualT } = useTranslation("individual");
|
|
205
|
+
const [confirmOpen, setConfirmOpen] = useState(false);
|
|
206
|
+
const { data: legalEntity, isLoading: isLegalEntityLoading } = useLegalEntity(
|
|
207
|
+
decisionMaker.reference
|
|
208
|
+
);
|
|
209
|
+
const isTrusted = parentLegalEntity ? getTrustedEntityAssociations(parentLegalEntity).some(
|
|
210
|
+
(ea) => ea.reference === decisionMaker.reference
|
|
211
|
+
) : false;
|
|
212
|
+
const formattedSummary = useMemo(() => {
|
|
213
|
+
if (legalEntity) {
|
|
214
|
+
const individualSchema = mapLegalEntityToIndividualSchema(
|
|
215
|
+
legalEntity,
|
|
216
|
+
false,
|
|
217
|
+
true,
|
|
218
|
+
parentLegalEntity
|
|
219
|
+
);
|
|
220
|
+
return getSummaryData(individualSchema, i18n.language, commonT);
|
|
221
|
+
}
|
|
222
|
+
}, [legalEntity, parentLegalEntity, i18n, commonT]);
|
|
223
|
+
const actions = /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
224
|
+
/* @__PURE__ */ jsx(Button, { onClick: handleEdit, variant: "primary", fullWidth: true, children: commonT(($) => $["editDetails"]) }),
|
|
225
|
+
handleDelete && /* @__PURE__ */ jsx(
|
|
226
|
+
Button,
|
|
227
|
+
{
|
|
228
|
+
onClick: () => setConfirmOpen(true),
|
|
229
|
+
variant: "secondary",
|
|
230
|
+
fullWidth: true,
|
|
231
|
+
disabled: isTrusted,
|
|
232
|
+
children: commonT(($) => $["delete"])
|
|
233
|
+
}
|
|
234
|
+
)
|
|
235
|
+
] });
|
|
236
|
+
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
237
|
+
/* @__PURE__ */ jsx(Modal, { onClose: handleClose, ariaLabel: commonT(($) => $["individualDetails"]), inset: true, children: /* @__PURE__ */ jsx(DetailViewLayout, { title: commonT(($) => $["individualDetails"]), actions, children: isLegalEntityLoading || !legalEntity ? /* @__PURE__ */ jsx(Loader, {}) : /* @__PURE__ */ jsxs(StackLayout, { gap: "medium", children: [
|
|
238
|
+
/* @__PURE__ */ jsx(
|
|
239
|
+
ListItem,
|
|
240
|
+
{
|
|
241
|
+
accessory: /* @__PURE__ */ jsx(TaskVerificationStatus, { status: decisionMaker.status }),
|
|
242
|
+
avatar: { iconName: "user", circle: true },
|
|
243
|
+
title: decisionMaker.name,
|
|
244
|
+
description: getDecisionMakerDescription(decisionMaker.types, individualT)
|
|
245
|
+
}
|
|
246
|
+
),
|
|
247
|
+
formattedSummary && Object.entries(formattedSummary).map(([key, value]) => {
|
|
248
|
+
const items = getStructuredListItems(value, commonT);
|
|
249
|
+
if (items.length === 0) {
|
|
250
|
+
return null;
|
|
251
|
+
}
|
|
252
|
+
return /* @__PURE__ */ jsxs(List, { variant: "grouped-secondary", children: [
|
|
253
|
+
/* @__PURE__ */ jsx(Typography, { variant: "title", children: individualT(($) => $[key]) }),
|
|
254
|
+
/* @__PURE__ */ jsx(StructuredList, { items })
|
|
255
|
+
] }, key);
|
|
256
|
+
}).filter(Boolean)
|
|
257
|
+
] }) }) }),
|
|
258
|
+
confirmOpen && handleDelete && /* @__PURE__ */ jsx(
|
|
259
|
+
Confirm,
|
|
260
|
+
{
|
|
261
|
+
title: commonT(($) => $["deleteItem"], { item: decisionMaker.name }),
|
|
262
|
+
description: commonT(($) => $["thisActionIsPermanent"]),
|
|
263
|
+
onConfirm: handleDelete,
|
|
264
|
+
confirmText: commonT(($) => $["delete"]),
|
|
265
|
+
onCancel: () => setConfirmOpen(false),
|
|
266
|
+
critical: true
|
|
267
|
+
}
|
|
268
|
+
)
|
|
269
|
+
] });
|
|
270
|
+
};
|
|
271
|
+
export {
|
|
272
|
+
DecisionMakerDetails as D,
|
|
273
|
+
getDecisionMakerDescription as a,
|
|
274
|
+
getLandingLayoutProps as g
|
|
275
|
+
};
|
|
@@ -2,20 +2,20 @@
|
|
|
2
2
|
{
|
|
3
3
|
try {
|
|
4
4
|
let e = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : {}, n = new e.Error().stack;
|
|
5
|
-
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "
|
|
5
|
+
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "8b3bcaf7-0aaf-45c8-b080-53488c986678", e._sentryDebugIdIdentifier = "sentry-dbid-8b3bcaf7-0aaf-45c8-b080-53488c986678");
|
|
6
6
|
} catch (e) {
|
|
7
7
|
}
|
|
8
8
|
}
|
|
9
9
|
;
|
|
10
|
-
import {
|
|
10
|
+
import { P as useLegalEntity, H as useToggleContext, a8 as getLegalEntityCountry, u as useTranslation, a as addResourceBundles, U as Loader, ai as noop, w as TaskTypes, E as EntityTypes, L as LegalEntityTypes, _ as __variableDynamicImportRuntimeHelper, bn as individualBaseMapping } 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 { u as useScenarios } from "./useScenarios-
|
|
15
|
-
import { u as useCapabilityProblems, g as getProblemsForEntity } from "./getProblemsForEntity-
|
|
16
|
-
import {
|
|
17
|
-
import { i as isBafinSignatoryFlow, r as removeIdVerificationProblemsForBafinSignatory } from "./bafinUtils-
|
|
18
|
-
import { I as IndividualDropin } from "./IndividualDropin-
|
|
14
|
+
import { u as useScenarios } from "./useScenarios-BvV1t76w.js";
|
|
15
|
+
import { u as useCapabilityProblems, g as getProblemsForEntity } from "./getProblemsForEntity-CVzYoCCC.js";
|
|
16
|
+
import { a as getTrustedFieldsProvider, c as getTrustedFields, b as getTrustedEntityAssociations } from "./getTrustedFields-BeaCYGD7.js";
|
|
17
|
+
import { i as isBafinSignatoryFlow, r as removeIdVerificationProblemsForBafinSignatory } from "./bafinUtils-m56sOqio.js";
|
|
18
|
+
import { I as IndividualDropin } from "./IndividualDropin-DS8kUrXB.js";
|
|
19
19
|
function DecisionMakerDetailsPage({
|
|
20
20
|
decisionMakerId: decisionMakerIdProp,
|
|
21
21
|
parentCompanyId: parentCompanyIdProp,
|
|
@@ -34,14 +34,14 @@ function DecisionMakerDetailsPage({
|
|
|
34
34
|
const { data: decisionMakerLe } = useLegalEntity(decisionMakerId ?? skipToken);
|
|
35
35
|
const { data: parentCompanyLe } = useLegalEntity(parentCompanyId ?? skipToken);
|
|
36
36
|
const capabilityProblems = useCapabilityProblems();
|
|
37
|
-
const {
|
|
37
|
+
const { isFeatureEnabled } = useToggleContext();
|
|
38
38
|
const { data: scenarios } = useScenarios(
|
|
39
39
|
(parentCompanyLe && getLegalEntityCountry(parentCompanyLe)) ?? skipToken,
|
|
40
40
|
LegalEntityTypes.INDIVIDUAL
|
|
41
41
|
);
|
|
42
42
|
const { i18n } = useTranslation();
|
|
43
43
|
addResourceBundles(i18n, [
|
|
44
|
-
{ ns: "individual", importFn: (lang) => __variableDynamicImportRuntimeHelper(/* @__PURE__ */ Object.assign({ "../language/bg-BG.json": () => import("./bg-BG-DKld3x63.js"), "../language/cs-CZ.json": () => import("./cs-CZ-BBLagJI6.js"), "../language/da-DK.json": () => import("./da-DK-D9FgPh5e.js"), "../language/de-DE.json": () => import("./de-DE-Cg_RNIr-.js"), "../language/el-GR.json": () => import("./el-GR-ZRGBgvMu.js"), "../language/en-US.json": () => import("./en-US-
|
|
44
|
+
{ ns: "individual", importFn: (lang) => __variableDynamicImportRuntimeHelper(/* @__PURE__ */ Object.assign({ "../language/bg-BG.json": () => import("./bg-BG-DKld3x63.js"), "../language/cs-CZ.json": () => import("./cs-CZ-BBLagJI6.js"), "../language/da-DK.json": () => import("./da-DK-D9FgPh5e.js"), "../language/de-DE.json": () => import("./de-DE-Cg_RNIr-.js"), "../language/el-GR.json": () => import("./el-GR-ZRGBgvMu.js"), "../language/en-US.json": () => import("./en-US-CJDkXFZ6.js"), "../language/es-ES.json": () => import("./es-ES-BZiC4JWr.js"), "../language/et-EE.json": () => import("./et-EE-D_NmrrzQ.js"), "../language/fi-FI.json": () => import("./fi-FI-CEH4BfU3.js"), "../language/fr-FR.json": () => import("./fr-FR-NxOktkWc.js"), "../language/hr-HR.json": () => import("./hr-HR-D_MUIhtx.js"), "../language/hu-HU.json": () => import("./hu-HU-LxStrFGU.js"), "../language/it-IT.json": () => import("./it-IT-OppZz3gW.js"), "../language/ja-JP.json": () => import("./ja-JP-CethQRoG.js"), "../language/lt-LT.json": () => import("./lt-LT-CBTFJxth.js"), "../language/lv-LV.json": () => import("./lv-LV-DTaBIHLh.js"), "../language/nl-NL.json": () => import("./nl-NL-CYFznuWn.js"), "../language/no-NO.json": () => import("./no-NO-BsEie1We.js"), "../language/pl-PL.json": () => import("./pl-PL-BH_LPZJa.js"), "../language/pt-BR.json": () => import("./pt-BR-C-YbDjn-.js"), "../language/pt-PT.json": () => import("./pt-PT-BTbVsews.js"), "../language/ro-RO.json": () => import("./ro-RO-C5PJhlmM.js"), "../language/sk-SK.json": () => import("./sk-SK-DO-AqRjE.js"), "../language/sl-SI.json": () => import("./sl-SI-CJH14wbj.js"), "../language/sv-SE.json": () => import("./sv-SE-ZsucW_Uj.js") }), `../language/${lang}.json`, 3) }
|
|
45
45
|
]);
|
|
46
46
|
if (!parentCompanyLe || decisionMakerId && !decisionMakerLe) {
|
|
47
47
|
return /* @__PURE__ */ jsx(Loader, {});
|
|
@@ -65,7 +65,7 @@ function DecisionMakerDetailsPage({
|
|
|
65
65
|
(ea) => ea.reference === decisionMakerId
|
|
66
66
|
);
|
|
67
67
|
const trustedRoles = trustedEntityAssociation?.types ?? [];
|
|
68
|
-
const isRevampedDecisionMakersTaskPageEnabled =
|
|
68
|
+
const isRevampedDecisionMakersTaskPageEnabled = isFeatureEnabled(
|
|
69
69
|
"EnableRevampedDecisionMakersTaskPage"
|
|
70
70
|
);
|
|
71
71
|
const props = {
|