@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
package/dist/{OnboardingDropinComponent-DqQmqcO8.js → OnboardingDropinComponent-BRZuLCE8.js}
RENAMED
|
@@ -2,34 +2,35 @@
|
|
|
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] = "755e634c-8e5a-4657-9428-c99a7e09da0f", e._sentryDebugIdIdentifier = "sentry-dbid-755e634c-8e5a-4657-9428-c99a7e09da0f");
|
|
6
6
|
} catch (e) {
|
|
7
7
|
}
|
|
8
8
|
}
|
|
9
9
|
;
|
|
10
|
-
import { b as useApiContext,
|
|
10
|
+
import { b as useApiContext, j as httpPost, k as httpGet, m as useSettingsContext, o as isPartOfTrustFromLegalEntity, p as hasSolePropInLegalEntity, L as LegalEntityTypes, q as hasOwnEntityAssociationOfType, r as isEmptyEntity, t as useAccountHolder, u as useTranslation, E as EntityTypes, v as DATA_MISSING_DECISION_MAKER_ERROR_CODE_MAPPING, w as TaskTypes, x as useAnalyticsContext, y as TaskStatuses, z as Icon, B as IconButton, C as Alert, G as TaskVerificationStatus, H as useToggleContext, J as isInstantVerifiedAccount, K as getObscuredAccountNumber, M as useGetTaskStatus, N as Typography, O as StackLayout, P as useLegalEntity, R as ROOT_LE, U as Loader, V as Button, W as useGlobalStore, X as TASK_STATUS_COMPLETED_POLLING_INTERVAL_MS, Y as TASK_STATUS_POLLING_INTERVAL_MS, Z as useSetting, $ as isPartOfUnincorporatedPartnership, a0 as doesLegalEntityRequiresLegalRepresentative, a1 as getLegalRepresentative, a2 as getOwnSignatories, a3 as getOwnDecisionMakersLegalEntityIds, a4 as getOwnSolePropProblems, a5 as getOwnTrustProblems, a6 as getOwnUnincorporatedPartnershipProblems, a7 as useLocalStorage, a8 as getLegalEntityCountry, a9 as CountryCodes, aa as Skeleton, ab as translateTranslatable, ac as getOwnEntityAssociations, ad as TrustMemberTypes, ae as createLogger, af as hasAllCapabilitiesResolved, ag as hasRejectedCapabilities, ah as objectsDeepEqual, ai as noop, aj as useToggles, a as addResourceBundles, _ as __variableDynamicImportRuntimeHelper } from "./StoreProvider-lJLpl6iE.js";
|
|
11
11
|
import { jsxs, Fragment, jsx } from "preact/jsx-runtime";
|
|
12
12
|
import { useQuery, skipToken } from "@tanstack/preact-query";
|
|
13
13
|
import { lazy, Suspense } from "preact/compat";
|
|
14
|
-
import { useMemo, useState, useEffect, useReducer, useCallback, useContext
|
|
15
|
-
import { u as
|
|
14
|
+
import { useMemo, useState, useEffect, useReducer, useRef, useCallback, useContext } from "preact/hooks";
|
|
15
|
+
import { g as getAccountTaskStatus, u as useTaskStatus, a as getTrustedFieldsProvider } from "./getTrustedFields-BeaCYGD7.js";
|
|
16
|
+
import { u as useTermsOfServiceStatus, a as useTermsOfServiceAcceptanceInfos } from "./useTermsOfServiceStatus-C0uqYCFG.js";
|
|
16
17
|
import { C as Card } from "./Card-OQuFzmxm.js";
|
|
17
|
-
import { S as SettingNames } from "./types-
|
|
18
|
-
import { u as useToastContext } from "./useToastContext-
|
|
19
|
-
import { C as CompanyTypesValues, i as isBafinSignatoryFlow, s as showIdNowModal, a as idNowPostSubmit } from "./bafinUtils-
|
|
20
|
-
import { E as EndStateLayout } from "./EndStateLayout-
|
|
21
|
-
import { u as useCapabilityProblems } from "./getProblemsForEntity-
|
|
18
|
+
import { S as SettingNames } from "./types-Dv0COrvY.js";
|
|
19
|
+
import { u as useToastContext } from "./useToastContext-Dl59lP3Q.js";
|
|
20
|
+
import { C as CompanyTypesValues, i as isBafinSignatoryFlow, s as showIdNowModal, a as idNowPostSubmit } from "./bafinUtils-m56sOqio.js";
|
|
21
|
+
import { E as EndStateLayout } from "./EndStateLayout-DZgYKmw6.js";
|
|
22
|
+
import { u as useCapabilityProblems } from "./getProblemsForEntity-CVzYoCCC.js";
|
|
22
23
|
import { d as downloadFile } from "./file-CiG1D0zy.js";
|
|
23
|
-
import { V as VerificationErrorAlert, u as useDeleteTransferInstrument } from "./VerificationErrorAlert-
|
|
24
|
-
import { A as Avatar } from "./Avatar-
|
|
25
|
-
import { L as LoaderWrapper } from "./LoaderWrapper-
|
|
26
|
-
import { C as Confirm } from "./Confirm-
|
|
27
|
-
import {
|
|
24
|
+
import { V as VerificationErrorAlert, u as useDeleteTransferInstrument } from "./VerificationErrorAlert-ChGZqC_p.js";
|
|
25
|
+
import { A as Avatar } from "./Avatar-BpQFX0rJ.js";
|
|
26
|
+
import { L as LoaderWrapper } from "./LoaderWrapper-Bh1b67kY.js";
|
|
27
|
+
import { C as Confirm } from "./Confirm-DOjzHnlC.js";
|
|
28
|
+
import { F as FeatureNames } from "./types-CTwBMnPB.js";
|
|
28
29
|
import { T as TrustedFieldsProviders } from "./trusted-fields-provider-BgfIoSNJ.js";
|
|
29
|
-
import { u as useAssociatedLegalEntity } from "./useAssociatedLegalEntity-
|
|
30
|
+
import { u as useAssociatedLegalEntity } from "./useAssociatedLegalEntity-COa3bZhe.js";
|
|
30
31
|
import cx from "classnames";
|
|
31
|
-
import { I as Image, U as UnincorporatedPartnershipMemberTypes } from "./unincorporated-partnership-
|
|
32
|
-
import { g as getLegalEntityNameBasedOnType } from "./getName-
|
|
32
|
+
import { I as Image, U as UnincorporatedPartnershipMemberTypes } from "./unincorporated-partnership-DCtqSVs0.js";
|
|
33
|
+
import { g as getLegalEntityNameBasedOnType } from "./getName-CzAV6RHp.js";
|
|
33
34
|
import { matchRoute, useLocation, Route, Switch, useRouter, Router } from "wouter-preact";
|
|
34
35
|
import { memoryLocation } from "wouter-preact/memory-location";
|
|
35
36
|
import { createContext } from "preact";
|
|
@@ -129,42 +130,6 @@ const usePciQuestionnaireList = (options) => {
|
|
|
129
130
|
...options
|
|
130
131
|
});
|
|
131
132
|
};
|
|
132
|
-
const logger$2 = createLogger();
|
|
133
|
-
const normalizeTaskStatuses = (taskStatuses) => {
|
|
134
|
-
return taskStatuses?.statuses?.reduce((acc, currentTask) => {
|
|
135
|
-
const status = TaskStatuses[currentTask.status];
|
|
136
|
-
const statusEntries = currentTask.taskStatusEntries;
|
|
137
|
-
acc[currentTask.type] = {
|
|
138
|
-
status: status ?? TaskStatuses.DETAILS_REQUIRED,
|
|
139
|
-
taskStatusEntries: statusEntries
|
|
140
|
-
};
|
|
141
|
-
return acc;
|
|
142
|
-
}, {});
|
|
143
|
-
};
|
|
144
|
-
const getAccountTaskStatus = (accountId, payinPayoutTaskStatus) => {
|
|
145
|
-
const taskStatusEntries = payinPayoutTaskStatus?.taskStatusEntries;
|
|
146
|
-
const taskStatusEntry = taskStatusEntries?.find((entry) => entry.id.includes(accountId));
|
|
147
|
-
if (!taskStatusEntry) {
|
|
148
|
-
logger$2.warn(`No task status for this account: ${accountId}`);
|
|
149
|
-
return payinPayoutTaskStatus?.status ?? TaskStatuses.PROCESSING;
|
|
150
|
-
}
|
|
151
|
-
return TaskStatuses[taskStatusEntry.status];
|
|
152
|
-
};
|
|
153
|
-
const getTaskStatus = async (legalEntityId, baseUrl) => {
|
|
154
|
-
return httpGet({
|
|
155
|
-
baseUrl,
|
|
156
|
-
path: `legalEntities/${legalEntityId}/taskStatus`
|
|
157
|
-
});
|
|
158
|
-
};
|
|
159
|
-
const useTaskStatus = (options) => {
|
|
160
|
-
const { rootLegalEntityId, baseUrl } = useApiContext();
|
|
161
|
-
return useQuery({
|
|
162
|
-
queryKey: ["taskStatus"],
|
|
163
|
-
queryFn: () => getTaskStatus(rootLegalEntityId.value, baseUrl.value),
|
|
164
|
-
select: (data) => normalizeTaskStatuses(data),
|
|
165
|
-
...options
|
|
166
|
-
});
|
|
167
|
-
};
|
|
168
133
|
const useLegalEntityType = ({
|
|
169
134
|
legalEntity
|
|
170
135
|
}) => {
|
|
@@ -502,12 +467,12 @@ const PayoutAccountTaskListItem = ({
|
|
|
502
467
|
}) => {
|
|
503
468
|
const { t } = useTranslation("common");
|
|
504
469
|
const { showToast } = useToastContext();
|
|
505
|
-
const {
|
|
470
|
+
const { isFeatureEnabled } = useToggleContext();
|
|
506
471
|
const { mutateAsync: deleteTransferInstrument } = useDeleteTransferInstrument();
|
|
507
472
|
const isInstantVerificationAccount = isInstantVerifiedAccount(account);
|
|
508
473
|
const obscuredAccountNumber = getObscuredAccountNumber(account);
|
|
509
|
-
const
|
|
510
|
-
const status =
|
|
474
|
+
const getTaskStatus = useGetTaskStatus();
|
|
475
|
+
const status = isFeatureEnabled("UseTaskStatusApiForPayout") ? getAccountTaskStatus(account.id, payinPayoutTaskStatus) : getTaskStatus(TaskTypes.PAYOUT, account.id);
|
|
511
476
|
const handleDeleteTransferInstrument = async () => {
|
|
512
477
|
try {
|
|
513
478
|
await deleteTransferInstrument(account.id);
|
|
@@ -586,10 +551,10 @@ function TaskListInner({
|
|
|
586
551
|
const { showToast } = useToastContext();
|
|
587
552
|
const { rootLegalEntityId, baseUrl } = useApiContext();
|
|
588
553
|
const { isSettingEnabled } = useSettingsContext();
|
|
589
|
-
const {
|
|
554
|
+
const { isFeatureEnabled } = useToggleContext();
|
|
590
555
|
const { accountHolder } = useAccountHolder();
|
|
591
556
|
const tasks = useGlobalStore().tasks.value;
|
|
592
|
-
const
|
|
557
|
+
const getTaskStatus = useGetTaskStatus();
|
|
593
558
|
const businessSetup = useBusinessSetup(legalEntityResponse);
|
|
594
559
|
const canSeeIntroduction = useCanSeeIntroduction({ legalEntity: legalEntityResponse });
|
|
595
560
|
const additionalSalesChannels = useSalesChannels();
|
|
@@ -610,8 +575,8 @@ function TaskListInner({
|
|
|
610
575
|
}
|
|
611
576
|
});
|
|
612
577
|
const canChangeEntityType = isSettingEnabled(SettingNames.AllowLegalEntityTypeChange);
|
|
613
|
-
const
|
|
614
|
-
const showCustomerSupportV4 =
|
|
578
|
+
const hidePayoutAccountTaskToggled = isFeatureEnabled("HidePayoutAccountTask");
|
|
579
|
+
const showCustomerSupportV4 = isFeatureEnabled("ShowCustomerSupportV4");
|
|
615
580
|
const transferInstrumentLimit = useSetting("transferInstrumentLimit");
|
|
616
581
|
const payinPayoutTaskStatus = normalizedTasks?.PAYOUT ?? normalizedTasks?.PAYIN;
|
|
617
582
|
const businessDetailsTaskStatus = normalizedTasks?.BUSINESS_DETAILS?.status ?? TaskStatuses.DETAILS_REQUIRED;
|
|
@@ -621,7 +586,7 @@ function TaskListInner({
|
|
|
621
586
|
const hasTrust = accountHolder === "aTrust" || isPartOfTrustFromLegalEntity(legalEntityResponse);
|
|
622
587
|
const hasUnincorporatedPartnership = accountHolder === "anUnincorporatedPartnership" || isPartOfUnincorporatedPartnership(legalEntityResponse);
|
|
623
588
|
const hasSoleProprietorship = accountHolder === "mySoleProprietorName" || hasSolePropInLegalEntity(legalEntityResponse);
|
|
624
|
-
const isLegalRepresentativeRequired =
|
|
589
|
+
const isLegalRepresentativeRequired = isFeatureEnabled("EnableAgeVerification") && doesLegalEntityRequiresLegalRepresentative(legalEntityResponse);
|
|
625
590
|
const legalRepresentative = isLegalRepresentativeRequired && getLegalRepresentative(legalEntityResponse);
|
|
626
591
|
const transferInstruments = legalEntityResponse?.transferInstruments || [];
|
|
627
592
|
const canAddPayoutAccount = legalEntityResponse?.organization?.legalName || legalEntityResponse?.individual?.name;
|
|
@@ -761,7 +726,7 @@ function TaskListInner({
|
|
|
761
726
|
onNavigateToTask: handleOnNavigateToTaskIndividual,
|
|
762
727
|
icon: "decision-maker",
|
|
763
728
|
titleKey: hasTrust ? "trusteePersonalDetails" : hasUnincorporatedPartnership ? "primaryPartnerDetails" : "personalDetails",
|
|
764
|
-
status:
|
|
729
|
+
status: getTaskStatus(TaskTypes.INDIVIDUAL),
|
|
765
730
|
problems: filterProblemsByTaskForms(rootLegalEntityProblems, fullIndividualFormIds)
|
|
766
731
|
}
|
|
767
732
|
),
|
|
@@ -782,7 +747,7 @@ function TaskListInner({
|
|
|
782
747
|
onNavigateToTask: handleOnNavigateToSoleProp,
|
|
783
748
|
icon: "company",
|
|
784
749
|
titleKey: canChangeEntityType ? "soleProprietorshipDetails" : "soleProprietorDetails",
|
|
785
|
-
status:
|
|
750
|
+
status: getTaskStatus(TaskTypes.SOLE_PROPRIETOR_COMPANY),
|
|
786
751
|
problems: getOwnSolePropProblems(legalEntityResponse, capabilityProblems)
|
|
787
752
|
}
|
|
788
753
|
),
|
|
@@ -792,7 +757,7 @@ function TaskListInner({
|
|
|
792
757
|
onNavigateToTask: handleOnNavigateToTaskLegalRepresentative,
|
|
793
758
|
icon: "decision-maker",
|
|
794
759
|
titleKey: "legalRepresentative",
|
|
795
|
-
status:
|
|
760
|
+
status: getTaskStatus(TaskTypes.LEGAL_REPRESENTATIVE_DETAILS)
|
|
796
761
|
}
|
|
797
762
|
),
|
|
798
763
|
tasks.includes(TaskTypes.DECISION_MAKER_OVERVIEW) && /* @__PURE__ */ jsx(
|
|
@@ -801,7 +766,7 @@ function TaskListInner({
|
|
|
801
766
|
onNavigateToTask: handleOnNavigateToTaskDecisionMaker,
|
|
802
767
|
icon: "decision-maker",
|
|
803
768
|
titleKey: hasUnincorporatedPartnership ? "entityDecisionMakers" : "decisionMakers",
|
|
804
|
-
status:
|
|
769
|
+
status: getTaskStatus(TaskTypes.DECISION_MAKER_OVERVIEW),
|
|
805
770
|
warningMessage: showDecisionMakersWarning ? remediationMessages[TaskTypes.DECISION_MAKER] : void 0
|
|
806
771
|
}
|
|
807
772
|
),
|
|
@@ -833,7 +798,7 @@ function TaskListInner({
|
|
|
833
798
|
onNavigateToTask: handleOnNavigateToTaskTrust,
|
|
834
799
|
icon: "trust",
|
|
835
800
|
titleKey: "trustDetails",
|
|
836
|
-
status:
|
|
801
|
+
status: getTaskStatus(TaskTypes.TRUST),
|
|
837
802
|
problems: getOwnTrustProblems(legalEntityResponse, capabilityProblems)
|
|
838
803
|
}
|
|
839
804
|
),
|
|
@@ -843,7 +808,7 @@ function TaskListInner({
|
|
|
843
808
|
onNavigateToTask: handleOnNavigateToTaskTrustMember,
|
|
844
809
|
icon: "decision-maker",
|
|
845
810
|
titleKey: "trustMembers",
|
|
846
|
-
status:
|
|
811
|
+
status: getTaskStatus(TaskTypes.TRUST_MEMBER_OVERVIEW)
|
|
847
812
|
}
|
|
848
813
|
)
|
|
849
814
|
] }),
|
|
@@ -854,7 +819,7 @@ function TaskListInner({
|
|
|
854
819
|
onNavigateToTask: () => onNavigateToTask(TaskTypes.UNINCORPORATED_PARTNERSHIP),
|
|
855
820
|
icon: "trust",
|
|
856
821
|
titleKey: "unincorporatedDetails",
|
|
857
|
-
status:
|
|
822
|
+
status: getTaskStatus(TaskTypes.UNINCORPORATED_PARTNERSHIP),
|
|
858
823
|
problems: getOwnUnincorporatedPartnershipProblems(
|
|
859
824
|
legalEntityResponse,
|
|
860
825
|
capabilityProblems
|
|
@@ -873,7 +838,7 @@ function TaskListInner({
|
|
|
873
838
|
},
|
|
874
839
|
icon: "decision-maker",
|
|
875
840
|
titleKey: "unincorporatedPartnershipMembers",
|
|
876
|
-
status:
|
|
841
|
+
status: getTaskStatus(TaskTypes.UNINCORPORATED_PARTNERSHIP_MEMBER_OVERVIEW)
|
|
877
842
|
}
|
|
878
843
|
)
|
|
879
844
|
] }),
|
|
@@ -906,7 +871,7 @@ function TaskListInner({
|
|
|
906
871
|
status: normalizedTasks?.TAX_REPORTING?.status ?? TaskStatuses.DETAILS_REQUIRED
|
|
907
872
|
}
|
|
908
873
|
) }),
|
|
909
|
-
(tasks.includes(TaskTypes.PAYOUT) || tasks.includes(TaskTypes.PAYIN)) && !
|
|
874
|
+
(tasks.includes(TaskTypes.PAYOUT) || tasks.includes(TaskTypes.PAYIN)) && !hidePayoutAccountTaskToggled && /* @__PURE__ */ jsx(
|
|
910
875
|
TaskListGroup,
|
|
911
876
|
{
|
|
912
877
|
title: canChangeEntityType ? t(($) => $["payoutBankAccounts"]) : t(
|
|
@@ -1027,56 +992,6 @@ const getOpenIdAuthorizationLink = async (legalEntityId, baseUrl) => {
|
|
|
1027
992
|
})
|
|
1028
993
|
);
|
|
1029
994
|
};
|
|
1030
|
-
function getTrustedFields(rootLegalEntity, apiMapping, provider) {
|
|
1031
|
-
const apiTrustedFields = getApiTrustedFields(rootLegalEntity);
|
|
1032
|
-
return parseTrustedFieldsIntoReadOnlyFields(apiTrustedFields, apiMapping);
|
|
1033
|
-
}
|
|
1034
|
-
function getTrustedEntityAssociations(rootLegalEntity, provider) {
|
|
1035
|
-
const apiTrustedFields = getApiTrustedFields(rootLegalEntity);
|
|
1036
|
-
return parseTrustedEntityAssociationsFromApiFields(apiTrustedFields);
|
|
1037
|
-
}
|
|
1038
|
-
function getTrustedFieldsProvider(rootLegalEntity) {
|
|
1039
|
-
return rootLegalEntity.trustedFields?.[0].provider;
|
|
1040
|
-
}
|
|
1041
|
-
const getApiTrustedFields = (rootLegalEntity, provider) => rootLegalEntity.trustedFields?.find((tf) => true)?.fields ?? [];
|
|
1042
|
-
function parseTrustedFieldsIntoReadOnlyFields(trustedFields, mapping) {
|
|
1043
|
-
const formFieldsMapped = [];
|
|
1044
|
-
trustedFields.forEach((field) => {
|
|
1045
|
-
for (const [key, value] of Object.entries(mapping)) {
|
|
1046
|
-
if (value === field) {
|
|
1047
|
-
formFieldsMapped.push(key);
|
|
1048
|
-
}
|
|
1049
|
-
}
|
|
1050
|
-
});
|
|
1051
|
-
const readOnlyFields = {};
|
|
1052
|
-
formFieldsMapped.forEach((field) => {
|
|
1053
|
-
const tokenizedField = field.split(".");
|
|
1054
|
-
const formField = tokenizedField.pop();
|
|
1055
|
-
const formId = tokenizedField.pop();
|
|
1056
|
-
if (formField && formId) {
|
|
1057
|
-
if (formId in readOnlyFields) {
|
|
1058
|
-
readOnlyFields[formId].push(formField);
|
|
1059
|
-
} else {
|
|
1060
|
-
readOnlyFields[formId] = [formField];
|
|
1061
|
-
}
|
|
1062
|
-
}
|
|
1063
|
-
});
|
|
1064
|
-
return readOnlyFields;
|
|
1065
|
-
}
|
|
1066
|
-
function parseTrustedEntityAssociationsFromApiFields(trustedApiFields) {
|
|
1067
|
-
const rawTrustedEntityAssociations = trustedApiFields.filter((f) => f.startsWith("entityAssociations")) ?? [];
|
|
1068
|
-
const leIdMap = {};
|
|
1069
|
-
rawTrustedEntityAssociations.forEach((rtea) => {
|
|
1070
|
-
const [_, role, leId] = rtea.split(".");
|
|
1071
|
-
const trustedRole = role;
|
|
1072
|
-
if (!leIdMap[leId]) {
|
|
1073
|
-
leIdMap[leId] = { roles: [trustedRole] };
|
|
1074
|
-
} else {
|
|
1075
|
-
leIdMap[leId] = { roles: [...leIdMap[leId].roles, trustedRole] };
|
|
1076
|
-
}
|
|
1077
|
-
});
|
|
1078
|
-
return Object.keys(leIdMap).map((reference) => ({ reference, types: leIdMap[reference].roles }));
|
|
1079
|
-
}
|
|
1080
995
|
const SingpassMyInfoLoginActionTypes = {
|
|
1081
996
|
LOADING: "LOADING",
|
|
1082
997
|
SUCCESS: "SUCCESS",
|
|
@@ -1169,6 +1084,17 @@ const useCanSeeEntitySelection = (legalEntityId) => {
|
|
|
1169
1084
|
setCanSeeEntitySelection: setCanSeeEntitySelectionIntoLocalStorage
|
|
1170
1085
|
};
|
|
1171
1086
|
};
|
|
1087
|
+
function useTaskLandedEvent(taskType) {
|
|
1088
|
+
const userEvents = useAnalyticsContext();
|
|
1089
|
+
const oldTaskTypeRef = useRef(void 0);
|
|
1090
|
+
if (taskType && oldTaskTypeRef.current !== taskType) {
|
|
1091
|
+
userEvents.updateBaseTrackingPayload({ task: taskType });
|
|
1092
|
+
userEvents.addTaskEvent("Landed on page", {
|
|
1093
|
+
actionType: "start"
|
|
1094
|
+
});
|
|
1095
|
+
oldTaskTypeRef.current = taskType;
|
|
1096
|
+
}
|
|
1097
|
+
}
|
|
1172
1098
|
const providerButton = "adyen-kyc-provider-button";
|
|
1173
1099
|
const providerButtonDisplayName = "adyen-kyc-provider-button-display-name";
|
|
1174
1100
|
const styles = {
|
|
@@ -1415,11 +1341,11 @@ const getRootTrusteeTrustMembers = (trustLE, rootLegalEntity, exemptSettlorLE) =
|
|
|
1415
1341
|
function useTrustMembers() {
|
|
1416
1342
|
const { data: rootLegalEntity } = useLegalEntity(ROOT_LE);
|
|
1417
1343
|
const { data: trust } = useAssociatedLegalEntity(rootLegalEntity, LegalEntityTypes.TRUST);
|
|
1418
|
-
const {
|
|
1344
|
+
const { isFeatureEnabled } = useToggleContext();
|
|
1419
1345
|
const exemptSettlor = useExemptSettlor({
|
|
1420
1346
|
trust
|
|
1421
1347
|
});
|
|
1422
|
-
const allowMoreRolesForMainRootTrustee =
|
|
1348
|
+
const allowMoreRolesForMainRootTrustee = isFeatureEnabled("AllowMoreRolesForMainRootTrustee");
|
|
1423
1349
|
return useMemo(() => {
|
|
1424
1350
|
if (!rootLegalEntity || !trust?.trust) return [];
|
|
1425
1351
|
return allowMoreRolesForMainRootTrustee ? getRootTrusteeTrustMembers(trust, rootLegalEntity, exemptSettlor) : getTrustMembers(trust, rootLegalEntity, exemptSettlor);
|
|
@@ -1561,86 +1487,89 @@ const hasProgressedBeyondEntitySelection$1 = (legalEntity) => {
|
|
|
1561
1487
|
return hasOwnEntityAssocation || !!hasOrganizationType;
|
|
1562
1488
|
};
|
|
1563
1489
|
const Introduction$1 = lazy(
|
|
1564
|
-
async () => (await import("./Introduction-
|
|
1490
|
+
async () => (await import("./Introduction-D6x5z2oe.js")).Introduction
|
|
1565
1491
|
);
|
|
1566
1492
|
const BusinessTypeSelectionPage$1 = lazy(
|
|
1567
|
-
async () => (await import("./BusinessTypeSelectionPage-
|
|
1493
|
+
async () => (await import("./BusinessTypeSelectionPage-BVucjw8H.js")).BusinessTypeSelectionPage
|
|
1568
1494
|
);
|
|
1569
1495
|
const SingpassSelection$1 = lazy(
|
|
1570
|
-
async () => (await import("./SingpassSelection-
|
|
1496
|
+
async () => (await import("./SingpassSelection-BORgM-de.js")).SingpassSelection
|
|
1571
1497
|
);
|
|
1572
1498
|
const AccountSetupRejected$1 = lazy(
|
|
1573
|
-
async () => (await import("./AccountSetupRejected-
|
|
1499
|
+
async () => (await import("./AccountSetupRejected-D7yqqcm_.js")).AccountSetupRejected
|
|
1574
1500
|
);
|
|
1575
1501
|
const DecisionMakers$1 = lazy(
|
|
1576
|
-
async () => (await import("./DecisionMakers-
|
|
1502
|
+
async () => (await import("./DecisionMakers-5bUJ4S4V.js")).DecisionMakers
|
|
1577
1503
|
);
|
|
1578
1504
|
const CustomerSupport$1 = lazy(
|
|
1579
|
-
async () => (await import("./CustomerSupport-
|
|
1505
|
+
async () => (await import("./CustomerSupport-DDtZA5jI.js")).CustomerSupport
|
|
1580
1506
|
);
|
|
1581
|
-
const Review$1 = lazy(async () => (await import("./Review-
|
|
1507
|
+
const Review$1 = lazy(async () => (await import("./Review-BVeMAC7t.js")).Review);
|
|
1582
1508
|
const SignPCIComponent$1 = lazy(
|
|
1583
|
-
async () => (await import("./SignPCIComponent-
|
|
1509
|
+
async () => (await import("./SignPCIComponent-CT6GL442.js")).SignPCIComponent
|
|
1584
1510
|
);
|
|
1585
1511
|
const AcceptTermsOfService$1 = lazy(
|
|
1586
|
-
async () => (await import("./AcceptTermsOfServiceComponent-
|
|
1512
|
+
async () => (await import("./AcceptTermsOfServiceComponent-DTURkN9O.js")).AcceptTermsOfServiceComponent
|
|
1587
1513
|
);
|
|
1588
1514
|
const TaxReportingDropin$1 = lazy(
|
|
1589
|
-
async () => (await import("./TaxReportingDropin-
|
|
1515
|
+
async () => (await import("./TaxReportingDropin-DAeAPOI5.js")).TaxReportingDropin
|
|
1590
1516
|
);
|
|
1591
1517
|
const PayoutDetailsPage$1 = lazy(
|
|
1592
|
-
async () => (await import("./PayoutDetailsPage-
|
|
1518
|
+
async () => (await import("./PayoutDetailsPage-BSzf6sev.js")).PayoutDetailsPage
|
|
1593
1519
|
);
|
|
1594
1520
|
const RootBusinessDetailsPage$1 = lazy(
|
|
1595
|
-
async () => (await import("./RootBusinessDetailsPage
|
|
1521
|
+
async () => (await import("./RootBusinessDetailsPage-OlgTozou.js")).RootBusinessDetailsPage
|
|
1596
1522
|
);
|
|
1597
1523
|
const RootBusinessLinesPage$1 = lazy(
|
|
1598
|
-
async () => (await import("./RootBusinessLinesPage-
|
|
1524
|
+
async () => (await import("./RootBusinessLinesPage-CUwKkzZU.js")).RootBusinessLinesPage
|
|
1599
1525
|
);
|
|
1600
1526
|
const SoleProprietorshipPage$1 = lazy(
|
|
1601
|
-
async () => (await import("./SoleProprietorshipPage-
|
|
1527
|
+
async () => (await import("./SoleProprietorshipPage-BylQa2F1.js")).SoleProprietorshipPage
|
|
1602
1528
|
);
|
|
1603
1529
|
const TrustMemberCompanyPage$1 = lazy(
|
|
1604
|
-
async () => (await import("./TrustMemberCompanyPage-
|
|
1530
|
+
async () => (await import("./TrustMemberCompanyPage-CZMF952c.js")).TrustMemberCompanyPage
|
|
1605
1531
|
);
|
|
1606
1532
|
const TrustMemberIndividualPage$1 = lazy(
|
|
1607
|
-
async () => (await import("./TrustMemberIndividualPage-
|
|
1533
|
+
async () => (await import("./TrustMemberIndividualPage-RSIXbPaf.js")).TrustMemberIndividualPage
|
|
1608
1534
|
);
|
|
1609
1535
|
const TrustMemberRoleAndTypePage$1 = lazy(
|
|
1610
|
-
async () => (await import("./TrustMemberRoleAndTypePage-
|
|
1536
|
+
async () => (await import("./TrustMemberRoleAndTypePage-BehlWyo7.js")).TrustMemberRoleAndTypePage
|
|
1611
1537
|
);
|
|
1612
1538
|
const TrustMembersOverview$1 = lazy(
|
|
1613
|
-
async () => (await import("./TrustMembersOverview-
|
|
1539
|
+
async () => (await import("./TrustMembersOverview-KI0J7peC.js")).TrustMembersOverview
|
|
1614
1540
|
);
|
|
1615
1541
|
const UnincorporatedPartnershipMemberCompanyPage$1 = lazy(
|
|
1616
|
-
async () => (await import("./UnincorporatedPartnershipMemberCompanyPage-
|
|
1542
|
+
async () => (await import("./UnincorporatedPartnershipMemberCompanyPage-OyKeY30-.js")).UnincorporatedPartnershipMemberCompanyPage
|
|
1617
1543
|
);
|
|
1618
1544
|
const UnincorporatedPartnershipIndividualPage$1 = lazy(
|
|
1619
|
-
async () => (await import("./UnincorporatedPartnershipIndividualPage-
|
|
1545
|
+
async () => (await import("./UnincorporatedPartnershipIndividualPage-CNf-sPP4.js")).UnincorporatedPartnershipIndividualPage
|
|
1620
1546
|
);
|
|
1621
1547
|
const UnincorporatedPartnershipMemberRoleAndTypePage$1 = lazy(
|
|
1622
|
-
async () => (await import("./UnincorporatedPartnershipMemberRoleAndTypePage-
|
|
1548
|
+
async () => (await import("./UnincorporatedPartnershipMemberRoleAndTypePage-Bt21JX-F.js")).UnincorporatedPartnershipMemberRoleAndTypePage
|
|
1623
1549
|
);
|
|
1624
1550
|
const UnincorporatedPartnershipMembersOverview$1 = lazy(
|
|
1625
|
-
async () => (await import("./UnincorporatedPartnershipMembersOverview-
|
|
1551
|
+
async () => (await import("./UnincorporatedPartnershipMembersOverview-DdTGn8QH.js")).UnincorporatedPartnershipMembersOverview
|
|
1626
1552
|
);
|
|
1627
1553
|
const BusinessFinancingPage$1 = lazy(
|
|
1628
|
-
async () => (await import("./BusinessFinancingPage-
|
|
1554
|
+
async () => (await import("./BusinessFinancingPage-96zTF7BJ.js")).BusinessFinancingPage
|
|
1629
1555
|
);
|
|
1630
1556
|
const TrustDetailsPage$1 = lazy(
|
|
1631
|
-
async () => (await import("./TrustDetailsPage-
|
|
1557
|
+
async () => (await import("./TrustDetailsPage-BHo4SFbD.js")).TrustDetailsPage
|
|
1632
1558
|
);
|
|
1633
1559
|
const SourceOfFundsPage$1 = lazy(
|
|
1634
|
-
async () => (await import("./SourceOfFundsPage-
|
|
1560
|
+
async () => (await import("./SourceOfFundsPage-Br-FaeUd.js")).SourceOfFundsPage
|
|
1635
1561
|
);
|
|
1636
1562
|
const RootIndividualDetailsPage$1 = lazy(
|
|
1637
|
-
async () => (await import("./RootIndividualDetailsPage-
|
|
1563
|
+
async () => (await import("./RootIndividualDetailsPage-CqP8gdvk.js")).RootIndividualDetailsPage
|
|
1638
1564
|
);
|
|
1639
1565
|
const LegalRepresentativeDetailsPage$1 = lazy(
|
|
1640
|
-
async () => (await import("./LegalRepresentativeDetailsPage-
|
|
1566
|
+
async () => (await import("./LegalRepresentativeDetailsPage-C6dOsu1g.js")).LegalRepresentativeDetailsPage
|
|
1641
1567
|
);
|
|
1642
1568
|
const DecisionMakerDetailsPage$1 = lazy(
|
|
1643
|
-
async () => (await import("./DecisionMakerDetailsPage-
|
|
1569
|
+
async () => (await import("./DecisionMakerDetailsPage-OeI7y1aX.js")).DecisionMakerDetailsPage
|
|
1570
|
+
);
|
|
1571
|
+
const InvitedDecisionMakerComponent = lazy(
|
|
1572
|
+
async () => (await import("./InvitedDecisionMakerComponent-Bg-DMehe.js")).InvitedDecisionMakerComponent
|
|
1644
1573
|
);
|
|
1645
1574
|
const ROUTE_CONFIG = {
|
|
1646
1575
|
[TaskTypes.TASKS_OVERVIEW]: { path: "/tasks" },
|
|
@@ -1724,6 +1653,10 @@ const ROUTE_CONFIG = {
|
|
|
1724
1653
|
[TaskTypes.UNINCORPORATED_PARTNERSHIP_MEMBER_COMPANY_OWNER]: {
|
|
1725
1654
|
path: "/partnership/member/:memberId/company-owner/:parentId/:decisionMakerId?",
|
|
1726
1655
|
Component: DecisionMakerDetailsPage$1
|
|
1656
|
+
},
|
|
1657
|
+
[TaskTypes.INVITED_INDIVIDUAL]: {
|
|
1658
|
+
path: "/invited-individual",
|
|
1659
|
+
Component: InvitedDecisionMakerComponent
|
|
1727
1660
|
}
|
|
1728
1661
|
};
|
|
1729
1662
|
const ROUTE_PATHS = Object.fromEntries(
|
|
@@ -2293,7 +2226,7 @@ function WouterDropinComposerInner({
|
|
|
2293
2226
|
const { accountHolder, setAccountHolder } = useAccountHolder();
|
|
2294
2227
|
const { setCanSeeEntitySelection } = useCanSeeEntitySelection(legalEntityResponse.id);
|
|
2295
2228
|
const userEvents = useAnalyticsContext();
|
|
2296
|
-
const {
|
|
2229
|
+
const { features } = useToggleContext();
|
|
2297
2230
|
const navigate = useNavigate();
|
|
2298
2231
|
const currentTask = useCurrentTask();
|
|
2299
2232
|
const { setHasSeenSingpassSelection } = useHasSeenSingpassSelection({
|
|
@@ -2401,12 +2334,12 @@ function WouterDropinComposerInner({
|
|
|
2401
2334
|
}
|
|
2402
2335
|
navigate.to(TaskTypes.TASKS_OVERVIEW);
|
|
2403
2336
|
};
|
|
2404
|
-
|
|
2337
|
+
const isJourneyInitializedRef = useRef(false);
|
|
2338
|
+
if (!isJourneyInitializedRef.current) {
|
|
2405
2339
|
userEvents.addJourneyEvent("Landed on page", { actionType: "start" });
|
|
2406
|
-
|
|
2407
|
-
|
|
2408
|
-
|
|
2409
|
-
}, [currentTask]);
|
|
2340
|
+
isJourneyInitializedRef.current = true;
|
|
2341
|
+
}
|
|
2342
|
+
useTaskLandedEvent(currentTask);
|
|
2410
2343
|
useEffect(() => {
|
|
2411
2344
|
if (currentTask) onNavigate(currentTask);
|
|
2412
2345
|
}, [currentTask]);
|
|
@@ -2424,17 +2357,17 @@ function WouterDropinComposerInner({
|
|
|
2424
2357
|
const { data: toggleData } = useToggles();
|
|
2425
2358
|
rootLegalEntityId.value = rootLegalEntity.id;
|
|
2426
2359
|
useEffect(() => {
|
|
2427
|
-
let
|
|
2428
|
-
if (
|
|
2429
|
-
|
|
2360
|
+
let activeExperiments;
|
|
2361
|
+
if (features.EnableOnboardingTogglesEndpoint) {
|
|
2362
|
+
activeExperiments = Object.keys(toggleData?.experiments || {});
|
|
2430
2363
|
} else {
|
|
2431
|
-
|
|
2364
|
+
activeExperiments = Object.entries(features).filter(([key, value]) => key.includes("_") && value).map(([key]) => key);
|
|
2432
2365
|
}
|
|
2433
|
-
|
|
2366
|
+
activeExperiments.forEach((experiment) => {
|
|
2434
2367
|
const [name, variant] = experiment.split("_");
|
|
2435
2368
|
userEvents.trackExperiment({ name, variant });
|
|
2436
2369
|
});
|
|
2437
|
-
}, [
|
|
2370
|
+
}, [features, toggleData?.experiments, userEvents]);
|
|
2438
2371
|
const singpassBanner = isEligibleForSingpass ? /* @__PURE__ */ jsx(
|
|
2439
2372
|
SingpassBanner,
|
|
2440
2373
|
{
|
|
@@ -2630,86 +2563,86 @@ const hasProgressedBeyondEntitySelection = (legalEntity) => {
|
|
|
2630
2563
|
return hasOwnEntityAssocation || !!hasOrganizationType;
|
|
2631
2564
|
};
|
|
2632
2565
|
const Introduction = lazy(
|
|
2633
|
-
async () => (await import("./Introduction-
|
|
2566
|
+
async () => (await import("./Introduction-D6x5z2oe.js")).Introduction
|
|
2634
2567
|
);
|
|
2635
2568
|
const BusinessTypeSelectionPage = lazy(
|
|
2636
|
-
async () => (await import("./BusinessTypeSelectionPage-
|
|
2569
|
+
async () => (await import("./BusinessTypeSelectionPage-BVucjw8H.js")).BusinessTypeSelectionPage
|
|
2637
2570
|
);
|
|
2638
2571
|
const SingpassSelection = lazy(
|
|
2639
|
-
async () => (await import("./SingpassSelection-
|
|
2572
|
+
async () => (await import("./SingpassSelection-BORgM-de.js")).SingpassSelection
|
|
2640
2573
|
);
|
|
2641
2574
|
const AccountSetupRejected = lazy(
|
|
2642
|
-
async () => (await import("./AccountSetupRejected-
|
|
2575
|
+
async () => (await import("./AccountSetupRejected-D7yqqcm_.js")).AccountSetupRejected
|
|
2643
2576
|
);
|
|
2644
2577
|
const DecisionMakers = lazy(
|
|
2645
|
-
async () => (await import("./DecisionMakers-
|
|
2578
|
+
async () => (await import("./DecisionMakers-5bUJ4S4V.js")).DecisionMakers
|
|
2646
2579
|
);
|
|
2647
2580
|
const CustomerSupport = lazy(
|
|
2648
|
-
async () => (await import("./CustomerSupport-
|
|
2581
|
+
async () => (await import("./CustomerSupport-DDtZA5jI.js")).CustomerSupport
|
|
2649
2582
|
);
|
|
2650
|
-
const Review = lazy(async () => (await import("./Review-
|
|
2583
|
+
const Review = lazy(async () => (await import("./Review-BVeMAC7t.js")).Review);
|
|
2651
2584
|
const SignPCIComponent = lazy(
|
|
2652
|
-
async () => (await import("./SignPCIComponent-
|
|
2585
|
+
async () => (await import("./SignPCIComponent-CT6GL442.js")).SignPCIComponent
|
|
2653
2586
|
);
|
|
2654
2587
|
const AcceptTermsOfService = lazy(
|
|
2655
|
-
async () => (await import("./AcceptTermsOfServiceComponent-
|
|
2588
|
+
async () => (await import("./AcceptTermsOfServiceComponent-DTURkN9O.js")).AcceptTermsOfServiceComponent
|
|
2656
2589
|
);
|
|
2657
2590
|
const TaxReportingDropin = lazy(
|
|
2658
|
-
async () => (await import("./TaxReportingDropin-
|
|
2591
|
+
async () => (await import("./TaxReportingDropin-DAeAPOI5.js")).TaxReportingDropin
|
|
2659
2592
|
);
|
|
2660
2593
|
const PayoutDetailsPage = lazy(
|
|
2661
|
-
async () => (await import("./PayoutDetailsPage-
|
|
2594
|
+
async () => (await import("./PayoutDetailsPage-BSzf6sev.js")).PayoutDetailsPage
|
|
2662
2595
|
);
|
|
2663
2596
|
const RootBusinessDetailsPage = lazy(
|
|
2664
|
-
async () => (await import("./RootBusinessDetailsPage
|
|
2597
|
+
async () => (await import("./RootBusinessDetailsPage-OlgTozou.js")).RootBusinessDetailsPage
|
|
2665
2598
|
);
|
|
2666
2599
|
const RootBusinessLinesPage = lazy(
|
|
2667
|
-
async () => (await import("./RootBusinessLinesPage-
|
|
2600
|
+
async () => (await import("./RootBusinessLinesPage-CUwKkzZU.js")).RootBusinessLinesPage
|
|
2668
2601
|
);
|
|
2669
2602
|
const SoleProprietorshipPage = lazy(
|
|
2670
|
-
async () => (await import("./SoleProprietorshipPage-
|
|
2603
|
+
async () => (await import("./SoleProprietorshipPage-BylQa2F1.js")).SoleProprietorshipPage
|
|
2671
2604
|
);
|
|
2672
2605
|
const TrustMemberCompanyPage = lazy(
|
|
2673
|
-
async () => (await import("./TrustMemberCompanyPage-
|
|
2606
|
+
async () => (await import("./TrustMemberCompanyPage-CZMF952c.js")).TrustMemberCompanyPage
|
|
2674
2607
|
);
|
|
2675
2608
|
const TrustMemberIndividualPage = lazy(
|
|
2676
|
-
async () => (await import("./TrustMemberIndividualPage-
|
|
2609
|
+
async () => (await import("./TrustMemberIndividualPage-RSIXbPaf.js")).TrustMemberIndividualPage
|
|
2677
2610
|
);
|
|
2678
2611
|
const TrustMemberRoleAndTypePage = lazy(
|
|
2679
|
-
async () => (await import("./TrustMemberRoleAndTypePage-
|
|
2612
|
+
async () => (await import("./TrustMemberRoleAndTypePage-BehlWyo7.js")).TrustMemberRoleAndTypePage
|
|
2680
2613
|
);
|
|
2681
2614
|
const TrustMembersOverview = lazy(
|
|
2682
|
-
async () => (await import("./TrustMembersOverview-
|
|
2615
|
+
async () => (await import("./TrustMembersOverview-KI0J7peC.js")).TrustMembersOverview
|
|
2683
2616
|
);
|
|
2684
2617
|
const UnincorporatedPartnershipMemberCompanyPage = lazy(
|
|
2685
|
-
async () => (await import("./UnincorporatedPartnershipMemberCompanyPage-
|
|
2618
|
+
async () => (await import("./UnincorporatedPartnershipMemberCompanyPage-OyKeY30-.js")).UnincorporatedPartnershipMemberCompanyPage
|
|
2686
2619
|
);
|
|
2687
2620
|
const UnincorporatedPartnershipIndividualPage = lazy(
|
|
2688
|
-
async () => (await import("./UnincorporatedPartnershipIndividualPage-
|
|
2621
|
+
async () => (await import("./UnincorporatedPartnershipIndividualPage-CNf-sPP4.js")).UnincorporatedPartnershipIndividualPage
|
|
2689
2622
|
);
|
|
2690
2623
|
const UnincorporatedPartnershipMemberRoleAndTypePage = lazy(
|
|
2691
|
-
async () => (await import("./UnincorporatedPartnershipMemberRoleAndTypePage-
|
|
2624
|
+
async () => (await import("./UnincorporatedPartnershipMemberRoleAndTypePage-Bt21JX-F.js")).UnincorporatedPartnershipMemberRoleAndTypePage
|
|
2692
2625
|
);
|
|
2693
2626
|
const UnincorporatedPartnershipMembersOverview = lazy(
|
|
2694
|
-
async () => (await import("./UnincorporatedPartnershipMembersOverview-
|
|
2627
|
+
async () => (await import("./UnincorporatedPartnershipMembersOverview-DdTGn8QH.js")).UnincorporatedPartnershipMembersOverview
|
|
2695
2628
|
);
|
|
2696
2629
|
const BusinessFinancingPage = lazy(
|
|
2697
|
-
async () => (await import("./BusinessFinancingPage-
|
|
2630
|
+
async () => (await import("./BusinessFinancingPage-96zTF7BJ.js")).BusinessFinancingPage
|
|
2698
2631
|
);
|
|
2699
2632
|
const TrustDetailsPage = lazy(
|
|
2700
|
-
async () => (await import("./TrustDetailsPage-
|
|
2633
|
+
async () => (await import("./TrustDetailsPage-BHo4SFbD.js")).TrustDetailsPage
|
|
2701
2634
|
);
|
|
2702
2635
|
const SourceOfFundsPage = lazy(
|
|
2703
|
-
async () => (await import("./SourceOfFundsPage-
|
|
2636
|
+
async () => (await import("./SourceOfFundsPage-Br-FaeUd.js")).SourceOfFundsPage
|
|
2704
2637
|
);
|
|
2705
2638
|
const RootIndividualDetailsPage = lazy(
|
|
2706
|
-
async () => (await import("./RootIndividualDetailsPage-
|
|
2639
|
+
async () => (await import("./RootIndividualDetailsPage-CqP8gdvk.js")).RootIndividualDetailsPage
|
|
2707
2640
|
);
|
|
2708
2641
|
const LegalRepresentativeDetailsPage = lazy(
|
|
2709
|
-
async () => (await import("./LegalRepresentativeDetailsPage-
|
|
2642
|
+
async () => (await import("./LegalRepresentativeDetailsPage-C6dOsu1g.js")).LegalRepresentativeDetailsPage
|
|
2710
2643
|
);
|
|
2711
2644
|
const DecisionMakerDetailsPage = lazy(
|
|
2712
|
-
async () => (await import("./DecisionMakerDetailsPage-
|
|
2645
|
+
async () => (await import("./DecisionMakerDetailsPage-OeI7y1aX.js")).DecisionMakerDetailsPage
|
|
2713
2646
|
);
|
|
2714
2647
|
function isIn(values, x) {
|
|
2715
2648
|
return values.includes(x);
|
|
@@ -2717,11 +2650,9 @@ function isIn(values, x) {
|
|
|
2717
2650
|
const PAGES_WITH_POLLING = [TaskTypes.DECISION_MAKER_OVERVIEW, TaskTypes.TASKS_OVERVIEW];
|
|
2718
2651
|
const logger = createLogger();
|
|
2719
2652
|
function DropinComposer(props) {
|
|
2720
|
-
const {
|
|
2721
|
-
const useURLRouter =
|
|
2722
|
-
const useMemoryRouter2 =
|
|
2723
|
-
ExperimentNames.EnableMemoryRouterForHostedOnboarding
|
|
2724
|
-
);
|
|
2653
|
+
const { isFeatureEnabled } = useToggleContext();
|
|
2654
|
+
const useURLRouter = isFeatureEnabled(FeatureNames.EnableURLRouterForHostedOnboarding);
|
|
2655
|
+
const useMemoryRouter2 = isFeatureEnabled(FeatureNames.EnableMemoryRouterForHostedOnboarding);
|
|
2725
2656
|
if (useMemoryRouter2) {
|
|
2726
2657
|
return /* @__PURE__ */ jsx(MemoryRouterDropinComposer, { ...props });
|
|
2727
2658
|
}
|
|
@@ -2739,7 +2670,7 @@ function LegacyDropinComposer({
|
|
|
2739
2670
|
const { accountHolder, setAccountHolder } = useAccountHolder();
|
|
2740
2671
|
const { setCanSeeEntitySelection } = useCanSeeEntitySelection(legalEntityResponse.id);
|
|
2741
2672
|
const userEvents = useAnalyticsContext();
|
|
2742
|
-
const {
|
|
2673
|
+
const { features } = useToggleContext();
|
|
2743
2674
|
const { setHasSeenSingpassSelection } = useHasSeenSingpassSelection({
|
|
2744
2675
|
legalEntityId: legalEntityResponse.id
|
|
2745
2676
|
});
|
|
@@ -2901,12 +2832,12 @@ function LegacyDropinComposer({
|
|
|
2901
2832
|
await refetchLegalEntity();
|
|
2902
2833
|
navigateBack(backStepCount);
|
|
2903
2834
|
};
|
|
2904
|
-
|
|
2835
|
+
const isJourneyInitializedRef = useRef(false);
|
|
2836
|
+
if (!isJourneyInitializedRef.current) {
|
|
2905
2837
|
userEvents.addJourneyEvent("Landed on page", { actionType: "start" });
|
|
2906
|
-
|
|
2907
|
-
|
|
2908
|
-
|
|
2909
|
-
}, [currentTask]);
|
|
2838
|
+
isJourneyInitializedRef.current = true;
|
|
2839
|
+
}
|
|
2840
|
+
useTaskLandedEvent(currentTask);
|
|
2910
2841
|
useEffect(() => {
|
|
2911
2842
|
if (hasRejectedCapabilities(rootLegalEntity)) {
|
|
2912
2843
|
navigateTo(TaskTypes.CAPABILITY_REJECTED, true);
|
|
@@ -2921,17 +2852,17 @@ function LegacyDropinComposer({
|
|
|
2921
2852
|
const { data: toggleData } = useToggles();
|
|
2922
2853
|
rootLegalEntityId.value = rootLegalEntity.id;
|
|
2923
2854
|
useEffect(() => {
|
|
2924
|
-
let
|
|
2925
|
-
if (
|
|
2926
|
-
|
|
2855
|
+
let activeExperiments;
|
|
2856
|
+
if (features.EnableOnboardingTogglesEndpoint) {
|
|
2857
|
+
activeExperiments = Object.keys(toggleData?.experiments || {});
|
|
2927
2858
|
} else {
|
|
2928
|
-
|
|
2859
|
+
activeExperiments = Object.entries(features).filter(([key, value]) => key.includes("_") && value).map(([key]) => key);
|
|
2929
2860
|
}
|
|
2930
|
-
|
|
2861
|
+
activeExperiments.forEach((experiment) => {
|
|
2931
2862
|
const [name, variant] = experiment.split("_");
|
|
2932
2863
|
userEvents.trackExperiment({ name, variant });
|
|
2933
2864
|
});
|
|
2934
|
-
}, [
|
|
2865
|
+
}, [features, toggleData?.experiments, userEvents]);
|
|
2935
2866
|
const singpassBanner = isEligibleForSingpass ? /* @__PURE__ */ jsx(
|
|
2936
2867
|
SingpassBanner,
|
|
2937
2868
|
{
|
|
@@ -3331,7 +3262,7 @@ function OnboardingDropinComponent({
|
|
|
3331
3262
|
}
|
|
3332
3263
|
const { i18n } = useTranslation();
|
|
3333
3264
|
addResourceBundles(i18n, [
|
|
3334
|
-
{ ns: "common", importFn: (lang) => __variableDynamicImportRuntimeHelper(/* @__PURE__ */ Object.assign({ "../../../language/locales/bg-BG.json": () => import("./bg-BG-C6dSR1jk.js"), "../../../language/locales/cs-CZ.json": () => import("./cs-CZ-B6atm9_Q.js"), "../../../language/locales/da-DK.json": () => import("./da-DK-Cv6XUSoW.js"), "../../../language/locales/de-DE.json": () => import("./de-DE-BplDsJEb.js"), "../../../language/locales/el-GR.json": () => import("./el-GR-dRK7xHn2.js"), "../../../language/locales/en-US.instructions.json": () => import("./en-US.instructions-CfIM2SRF.js"), "../../../language/locales/en-US.json": () => import("./StoreProvider-
|
|
3265
|
+
{ ns: "common", importFn: (lang) => __variableDynamicImportRuntimeHelper(/* @__PURE__ */ Object.assign({ "../../../language/locales/bg-BG.json": () => import("./bg-BG-C6dSR1jk.js"), "../../../language/locales/cs-CZ.json": () => import("./cs-CZ-B6atm9_Q.js"), "../../../language/locales/da-DK.json": () => import("./da-DK-Cv6XUSoW.js"), "../../../language/locales/de-DE.json": () => import("./de-DE-BplDsJEb.js"), "../../../language/locales/el-GR.json": () => import("./el-GR-dRK7xHn2.js"), "../../../language/locales/en-US.instructions.json": () => import("./en-US.instructions-CfIM2SRF.js"), "../../../language/locales/en-US.json": () => import("./StoreProvider-lJLpl6iE.js").then((n) => n.bR), "../../../language/locales/es-ES.json": () => import("./es-ES-DRsix_Xn.js"), "../../../language/locales/et-EE.json": () => import("./et-EE-BXiYapXy.js"), "../../../language/locales/fi-FI.json": () => import("./fi-FI-BftTiz0c.js"), "../../../language/locales/fr-FR.json": () => import("./fr-FR-C6jxjXAI.js"), "../../../language/locales/hr-HR.json": () => import("./hr-HR-B_TEU3r4.js"), "../../../language/locales/hu-HU.json": () => import("./hu-HU-CX83V9tu.js"), "../../../language/locales/it-IT.json": () => import("./it-IT-CXlaZNIj.js"), "../../../language/locales/ja-JP.json": () => import("./ja-JP-A6ArIIZ8.js"), "../../../language/locales/lt-LT.json": () => import("./lt-LT-ww192lYg.js"), "../../../language/locales/lv-LV.json": () => import("./lv-LV-CpHy-ZoF.js"), "../../../language/locales/nl-NL.json": () => import("./nl-NL-BwWFlBOs.js"), "../../../language/locales/no-NO.json": () => import("./no-NO-JWsSd7iY.js"), "../../../language/locales/pl-PL.json": () => import("./pl-PL-CLmmSNgn.js"), "../../../language/locales/pt-BR.json": () => import("./pt-BR-BJOww8U1.js"), "../../../language/locales/pt-PT.json": () => import("./pt-PT-CL9VzmZE.js"), "../../../language/locales/ro-RO.json": () => import("./ro-RO-Cu1T3z6k.js"), "../../../language/locales/sk-SK.json": () => import("./sk-SK-CEjJ-qZG.js"), "../../../language/locales/sl-SI.json": () => import("./sl-SI-BfO3xEJx.js"), "../../../language/locales/sv-SE.json": () => import("./sv-SE-CMLKzwtj.js") }), `../../../language/locales/${lang}.json`, 6) },
|
|
3335
3266
|
{ ns: "ui", importFn: (lang) => __variableDynamicImportRuntimeHelper(/* @__PURE__ */ Object.assign({ "../../ui/language/bg-BG.json": () => import("./bg-BG-zZhDshGi.js"), "../../ui/language/cs-CZ.json": () => import("./cs-CZ-Ck22NTT9.js"), "../../ui/language/da-DK.json": () => import("./da-DK-DQ4ZYSea.js"), "../../ui/language/de-DE.json": () => import("./de-DE-CkbOZ6S_.js"), "../../ui/language/el-GR.json": () => import("./el-GR-DudORw4U.js"), "../../ui/language/en-US.json": () => import("./en-US-B-qSAb-7.js"), "../../ui/language/es-ES.json": () => import("./es-ES-BAolMrZ0.js"), "../../ui/language/et-EE.json": () => import("./et-EE-BOIrYrz9.js"), "../../ui/language/fi-FI.json": () => import("./fi-FI-D8WrLxxq.js"), "../../ui/language/fr-FR.json": () => import("./fr-FR-Beljeilc.js"), "../../ui/language/hr-HR.json": () => import("./hr-HR-lIHN6Yl2.js"), "../../ui/language/hu-HU.json": () => import("./hu-HU-CWdwNCev.js"), "../../ui/language/it-IT.json": () => import("./it-IT-5a7NHVFo.js"), "../../ui/language/ja-JP.json": () => import("./ja-JP-DSvZhFNY.js"), "../../ui/language/lt-LT.json": () => import("./lt-LT-CgalYpUh.js"), "../../ui/language/lv-LV.json": () => import("./lv-LV-aAd9SEqx.js"), "../../ui/language/nl-NL.json": () => import("./nl-NL-CmURERx_.js"), "../../ui/language/no-NO.json": () => import("./no-NO-qyqWODMp.js"), "../../ui/language/pl-PL.json": () => import("./pl-PL-q9azN24o.js"), "../../ui/language/pt-BR.json": () => import("./pt-BR-BxoOF8jB.js"), "../../ui/language/pt-PT.json": () => import("./pt-PT-pIChDwiI.js"), "../../ui/language/ro-RO.json": () => import("./ro-RO-DRsaNX9j.js"), "../../ui/language/sk-SK.json": () => import("./sk-SK-7-enbO1N.js"), "../../ui/language/sl-SI.json": () => import("./sl-SI-DTvJT7fC.js"), "../../ui/language/sv-SE.json": () => import("./sv-SE-N-Hqwcjq.js") }), `../../ui/language/${lang}.json`, 5) }
|
|
3336
3267
|
]);
|
|
3337
3268
|
const { data: legalEntityData } = useLegalEntity(ROOT_LE);
|
|
@@ -3350,15 +3281,11 @@ export {
|
|
|
3350
3281
|
useLegalEntityType as c,
|
|
3351
3282
|
allowIndividualWithoutSoleProp as d,
|
|
3352
3283
|
useDataMissingRemediations as e,
|
|
3353
|
-
|
|
3354
|
-
|
|
3355
|
-
|
|
3356
|
-
|
|
3357
|
-
|
|
3358
|
-
|
|
3359
|
-
useTrustMembers as l,
|
|
3360
|
-
isNewEntity as m,
|
|
3361
|
-
getTrustedFieldsProvider as n,
|
|
3362
|
-
getTrustedFields as o,
|
|
3284
|
+
useNavigate as f,
|
|
3285
|
+
filterProblemsByTaskForms as g,
|
|
3286
|
+
useBusinessLines as h,
|
|
3287
|
+
usePciQuestionnaireList as i,
|
|
3288
|
+
useTrustMembers as j,
|
|
3289
|
+
isNewEntity as k,
|
|
3363
3290
|
useSalesChannels as u
|
|
3364
3291
|
};
|