@adyen/kyc-components 4.5.1 → 4.6.0-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +31 -43
- package/dist/{AcceptTermsOfServiceComponent-CDgZIoAy.js → AcceptTermsOfServiceComponent-Bd0fuzJX.js} +17 -20
- package/dist/{AccountSetupRejected-Bwu8xLmZ.js → AccountSetupRejected-t4tPei0K.js} +2 -2
- package/dist/{ActionBar-Cs-ZFNhk.js → ActionBar-Ruw6z6LR.js} +2 -2
- package/dist/{Address-Cdkbwzso.js → Address-D0JjbOT4.js} +16 -16
- package/dist/{Avatar-DtFyP488.js → Avatar-Dp70m25u.js} +2 -2
- package/dist/{BusinessFinancingComponent-DmYxCifv.js → BusinessFinancingComponent-DAj2gvCq.js} +5 -5
- package/dist/{BusinessFinancingDropin-DbkFhxJT.js → BusinessFinancingDropin-RImpwNje.js} +31 -34
- package/dist/{BusinessFinancingPage-DulUJR2t.js → BusinessFinancingPage-B3XW6vMz.js} +4 -4
- package/dist/{BusinessTypeSelectionPage-B-vdLokC.js → BusinessTypeSelectionPage-D_yQV_GP.js} +9 -14
- package/dist/{Checkbox-D3Z0AWKj.js → Checkbox-DQGjbUsQ.js} +2 -2
- package/dist/{Confirm-C42kXNcg.js → Confirm-roUo52pe.js} +3 -3
- package/dist/{ConstitutionalDocument-DzgtU8np.js → ConstitutionalDocument-BW87TDZl.js} +336 -92
- package/dist/{ContactDetails--t1QRowR.js → ContactDetails-CGss-4M6.js} +12 -7
- package/dist/{ContextGuidance-C2yYCn3r.js → ContextGuidance-8vbKs48u.js} +2 -2
- package/dist/{CountryField-DzcOrjgs.js → CountryField-Cxih2YUu.js} +3 -3
- package/dist/{CreateIndividualComponent-BGs4XVIx.js → CreateIndividualComponent-k3J84uhw.js} +6 -6
- package/dist/{CreateTransferInstrumentComponent-8qbVjvCk.js → CreateTransferInstrumentComponent-bam-U6uj.js} +5 -5
- package/dist/{Currency-D_JvTwxX.js → Currency-DhqTdIeI.js} +7 -7
- package/dist/{CustomerSupport-C-r0iCOW.js → CustomerSupport-CdhIJFEE.js} +11 -16
- package/dist/{DebugModal-UZ3iEF4d.js → DebugModal-yfBBhyjs.js} +127 -98
- package/dist/DecisionMakerDetails-D0-COO1N.js +275 -0
- package/dist/{DecisionMakerDetailsPage-CORpG8qd.js → DecisionMakerDetailsPage-C-LGLbrJ.js} +10 -10
- package/dist/{DecisionMakers-D_B8GhAP.js → DecisionMakers-Bx51Ewcv.js} +22 -259
- package/dist/{Dropzone-CqXwk4Vf.js → Dropzone-Dy3XmCix.js} +4 -4
- package/dist/{EmbeddedStatus-Cq3s0VKQ.js → EmbeddedStatus-PFK1NCkS.js} +3 -3
- package/dist/{EndStateLayout-DyV9bKDz.js → EndStateLayout-5kx0pljK.js} +2 -2
- package/dist/{EntityAssociation-DoTWA9hu.js → EntityAssociation-BVxUknEP.js} +5 -5
- package/dist/{EntityGuidanceStatus-xpPB9g8U.js → EntityGuidanceStatus-CbP4RqW4.js} +4 -4
- package/dist/{ErrorPanel-BuHWbhfh.js → ErrorPanel-Cn8gzNGG.js} +11 -12
- package/dist/{Field-Dr2nucSo.js → Field-BDI27kIy.js} +2 -2
- package/dist/{FormNavigation-bTHzHm_a.js → FormNavigation-D90R1OgK.js} +3 -3
- package/dist/{Individual.rules-CvBrD7Ad.js → Individual.rules-BrdY-Rew.js} +12 -12
- package/dist/{IndividualDropin-DhipTriL.js → IndividualDropin-D5FrKUb-.js} +252 -97
- package/dist/{InputDate-HsJIDMnw.js → InputDate-nNag-jcu.js} +1 -1
- package/dist/{InputText-Cmp-jxkq.js → InputText-DFjKyN6O.js} +2 -2
- package/dist/{Introduction-CVb0Xx-s.js → Introduction-DhEG_Jvt.js} +4 -9
- package/dist/InvitedDecisionMakerComponent-DT_SCB2u.js +211 -0
- package/dist/{JpAddress-CC_IvY9U.js → JpAddress-DcJCN9dG.js} +11 -11
- package/dist/{LandingLayout-Hw-QdoQL.js → LandingLayout-CC_FGMAs.js} +2 -2
- package/dist/{LegalCompanyNameField-CWRd7AEp.js → LegalCompanyNameField-CgTgIMv8.js} +16 -16
- package/dist/{LegalRepresentativeDetailsPage-CY_iMQTc.js → LegalRepresentativeDetailsPage-D4d4eelX.js} +5 -5
- package/dist/{Link-DDnVkilX.js → Link-C30mEtLP.js} +2 -2
- package/dist/{ListItem-C5VcmY-s.js → ListItem-BQLamvB-.js} +3 -3
- package/dist/{LoaderWrapper-BFpnMaZr.js → LoaderWrapper-CgNgcjW-.js} +2 -2
- package/dist/{ManageIndividualComponent-Cb5wNkz0.js → ManageIndividualComponent-DKVcaPI6.js} +5 -5
- package/dist/{ManageTermsOfServiceComponent-10j2xeZu.js → ManageTermsOfServiceComponent-T_K9BahM.js} +4 -4
- package/dist/{ManageTransferInstrumentComponent-BpnoK4Sd.js → ManageTransferInstrumentComponent-Ch79d8JP.js} +11 -11
- package/dist/{MaskedInput-D6wQgEqZ.js → MaskedInput-B9djDROe.js} +5 -5
- package/dist/{MaybeModal-w8BdVyL9.js → MaybeModal-BYsvKCcc.js} +3 -3
- package/dist/{Modal-CBxIPgQb.js → Modal-727fSuFr.js} +2 -2
- package/dist/{Name-CFTJ-03j.js → Name-BN-K6-N2.js} +4 -4
- package/dist/{NewSummary-Bzl3znax.js → NewSummary-DTuLIMtG.js} +5 -5
- package/dist/{OnboardingDropinComponent-D6UOdrFV.js → OnboardingDropinComponent-CaRk-dgZ.js} +145 -218
- package/dist/{PayoutDetailsDropin-hc2Lwjfg.js → PayoutDetailsDropin-CaJE5U6g.js} +183 -1065
- package/dist/{PayoutDetailsPage-C2UkSM42.js → PayoutDetailsPage-B0i-iUKS.js} +6 -6
- package/dist/{RadioGroup-tAaHg-3v.js → RadioGroup-DQa-nkgM.js} +2 -2
- package/dist/{Review-Bhbx2iLe.js → Review-CgkKBldb.js} +6 -6
- package/dist/{RootBusinessDetailsPage-BtxfStzp.js → RootBusinessDetailsPage-Bh3M9G8g.js} +6 -6
- package/dist/{RootBusinessLinesPage-SBl1RJnK.js → RootBusinessLinesPage-C4wzI8-k.js} +93 -91
- package/dist/{RootIndividualDetailsPage-BKrFR8kJ.js → RootIndividualDetailsPage-GBrzZTH2.js} +7 -6
- package/dist/{Select-CDjrCQMg.js → Select-Bt5Y91sI.js} +4 -4
- package/dist/{SignPCIComponent-CsBd4n0S.js → SignPCIComponent-BxzfAQvx.js} +12 -19
- package/dist/{SingpassSelection-BLw_O_To.js → SingpassSelection-hjBRnBDR.js} +144 -7
- package/dist/{SoleProprietorshipPage-DugLl7bw.js → SoleProprietorshipPage-B6HqJtcC.js} +5 -5
- package/dist/{SourceOfFundsPage-BOpuSCH-.js → SourceOfFundsPage-D6V3pwXP.js} +270 -98
- package/dist/{StepProgressIndicator-U5i4HLMS.js → StepProgressIndicator-DhfpqmVy.js} +2 -2
- package/dist/{StoreProvider-DS3-j_yO.js → StoreProvider-CGAl-5Sk.js} +155 -148
- package/dist/{Summary-B4rVi_1E.js → Summary-DKmu4xU7.js} +25 -22
- package/dist/{TaxInformationField-Gascwiqq.js → TaxInformationField-wLMc_uT-.js} +568 -795
- package/dist/{TaxReportingDropin-BiUeYocK.js → TaxReportingDropin-DsPw-MUV.js} +26 -26
- package/dist/{TextArea-DHLHMQS0.js → TextArea-BGhv4y1a.js} +2 -2
- package/dist/{TileGroup-TQqcisEg.js → TileGroup-D3HIe8QQ.js} +3 -3
- package/dist/{TrustDetailsPage-B9qgsL7n.js → TrustDetailsPage-CWKPHxTe.js} +64 -65
- package/dist/{TrustMemberCompanyPage-Dv8gB3AJ.js → TrustMemberCompanyPage-C89-gUpd.js} +7 -7
- package/dist/{TrustMemberIndividualPage-B61REKTA.js → TrustMemberIndividualPage-Cz-Z8U7w.js} +6 -6
- package/dist/{TrustMemberRoleAndTypePage-B-937gVA.js → TrustMemberRoleAndTypePage-BxzEkGzE.js} +27 -27
- package/dist/{TrustMembersOverview-BUdUHg0i.js → TrustMembersOverview-BtycEgbW.js} +16 -18
- package/dist/{UnincorporatedPartnershipIndividualPage-CiXV1GFq.js → UnincorporatedPartnershipIndividualPage-CSQjYe4p.js} +5 -5
- package/dist/{UnincorporatedPartnershipMemberCompanyPage-DBvCnN3w.js → UnincorporatedPartnershipMemberCompanyPage-ZAQkvjQr.js} +6 -6
- package/dist/{UnincorporatedPartnershipMemberRoleAndTypePage-C5tojfbL.js → UnincorporatedPartnershipMemberRoleAndTypePage-B9bvg2ra.js} +11 -11
- package/dist/{UnincorporatedPartnershipMembersOverview-DPrp3a67.js → UnincorporatedPartnershipMembersOverview-DYDDYisa.js} +7 -7
- package/dist/{VerificationErrorAlert-DUcGedHl.js → VerificationErrorAlert-Sf7ovPdg.js} +3 -3
- package/dist/{ViewVerificationStatusComponent-ucroS2ge.js → ViewVerificationStatusComponent-D6qJacuF.js} +3 -3
- package/dist/adyen-business-financing.js +4 -4
- package/dist/adyen-individual-configuration.js +4 -4
- package/dist/adyen-individual-status.js +4 -4
- package/dist/adyen-invited-decision-maker.js +4 -117
- package/dist/adyen-kyc-components.js +17 -17
- package/dist/adyen-onboarding.js +4 -4
- package/dist/adyen-terms-of-service-management.js +4 -4
- package/dist/adyen-terms-of-service-status.js +4 -4
- package/dist/adyen-transfer-instrument-configuration.js +4 -4
- package/dist/adyen-transfer-instrument-management.js +4 -4
- package/dist/adyen-verification-status.js +4 -4
- package/dist/{bafinUtils-YlO-EQ-z.js → bafinUtils-4YaweTCy.js} +2 -2
- package/dist/{commonValidators-Z8GTyWt2.js → commonValidators-nusLcRK6.js} +1 -1
- package/dist/{dropinUtils-DuoGe_aD.js → dropinUtils-DoPR1iTm.js} +53 -9
- package/dist/en-US-CJDkXFZ6.js +13 -0
- package/dist/en-US-CTbVLoNF.js +13 -0
- package/dist/en-US-CfazE4ht.js +13 -0
- package/dist/{en-US-G607HIyo.js → en-US-DPoDE0uz.js} +7 -7
- package/dist/en-US-DrUYyPhF.js +13 -0
- package/dist/{formUtils-OvyHeoEE.js → formUtils-zdJ_jyqE.js} +3 -3
- package/dist/{getName-DxauASkL.js → getName-Ca2cTXzw.js} +2 -2
- package/dist/{getProblemsForEntity-yYZx85SH.js → getProblemsForEntity-CNltAsMa.js} +2 -2
- package/dist/getTrustedFields-rU6j1TOQ.js +104 -0
- package/dist/{isEmpty-CUJ_MTvj.js → isEmpty-BN2tOceJ.js} +1 -1
- package/dist/japanSupportUtils-B76IOTvL.js +16 -0
- package/dist/{localizeDateString-Cdq_DxXh.js → localizeDateString-9ciBezNu.js} +2 -2
- package/dist/{mapExistingFile-BX4VgHc9.js → mapExistingFile-BS79kq3W.js} +3 -76
- package/dist/{mapJpAddressSchemaToAddressLocalizations-fM535qJi.js → mapJpAddressSchemaToAddressLocalizations--7Bt3usJ.js} +2 -36
- package/dist/{mapLegalEntityToIndividualSchema-CtUOM-Zl.js → mapLegalEntityToIndividualSchema-BxOmNDle.js} +4 -4
- package/dist/{mapTransferInstrumentToPayoutAccount-CwsN-a7n.js → mapTransferInstrumentToPayoutAccount-ONPBT9KF.js} +2 -2
- package/dist/omitObscuredFieldsIfUnchanged-DhUQJrjg.js +29 -0
- package/dist/{patternValidators-vRnpmLkN.js → patternValidators-Cem-Icxv.js} +2 -2
- package/dist/{process-field-configurations-BGd8lBcb.js → process-field-configurations-BWC3i2at.js} +2 -2
- package/dist/{resolveEnvironment-CnQ__7cb.js → resolveEnvironment-BLaPb5Nd.js} +17 -24
- package/dist/{roleMetadata-B5g5kSns.js → roleMetadata-RivmWKE-.js} +3 -3
- package/dist/style.css +230 -275
- package/dist/styles-CLV89_hH.js +230 -275
- package/dist/types/api/toggles/useToggles.d.ts +2 -1
- package/dist/types/components/BankAccount/forms/BankDocument/BankDocumentClassification.d.ts +2 -1
- package/dist/types/components/BankAccount/forms/BankDocument/types.d.ts +0 -29
- package/dist/types/components/BankAccount/forms/BankVerification/BankVerification.d.ts +1 -1
- package/dist/types/components/BankAccount/forms/BankVerification/verification/{widget → overlay}/types.d.ts +4 -14
- package/dist/types/components/BankAccount/forms/PayoutVerificationMethod/payoutVerificationMethodMetadata.d.ts +1 -1
- package/dist/types/components/BankAccount/mapping/payoutKeyMappings.d.ts +4 -5
- package/dist/types/components/Business/forms/rules.d.ts +1 -1
- package/dist/types/components/Business/mapping/businessDetails/mapBusinessDetailsSchemaToLegalEntity.d.ts +2 -2
- package/dist/types/components/Business/tasks/BusinessDetailsDropin/BusinessDetailsGettingStarted.d.ts +6 -0
- package/dist/types/components/Business/tasks/BusinessDetailsDropin/types.d.ts +2 -2
- package/dist/types/components/Business/tasks/BusinessDetailsDropin/validate.d.ts +7 -5
- package/dist/types/components/Business/utils/companyUtil.d.ts +2 -2
- package/dist/types/components/Business/utils/formatDataForSummary.d.ts +3 -2
- package/dist/types/components/Business/utils/submit.d.ts +1 -1
- package/dist/types/components/Business/utils/useCompanySearchFeature.d.ts +5 -0
- package/dist/types/components/BusinessLines/forms/SalesChannelsForm/types.d.ts +1 -1
- package/dist/types/components/BusinessLines/tasks/BusinessLines/BusinessLinesDropin.d.ts +1 -1
- package/dist/types/components/Contract/tasks/PciDropin/PciDropin.d.ts +1 -1
- package/dist/types/components/EFP/mapping/businessFinancingKeyMappings.d.ts +9 -9
- package/dist/types/components/EFP/tasks/SourceOfFundsDropin/types.d.ts +11 -0
- package/dist/types/components/EFP/tasks/SourceOfFundsDropin/utils.d.ts +15 -0
- package/dist/types/components/Individual/forms/AdditionalPersonalDetails/validate.d.ts +5 -4
- package/dist/types/components/Individual/forms/BasicDetails/validate.d.ts +3 -3
- package/dist/types/components/Individual/forms/IdNowVerificationModal/IFrameWidget.d.ts +9 -0
- package/dist/types/components/Individual/forms/Individual.rules.d.ts +1 -1
- package/dist/types/components/Individual/mapping/mapIndividualSchemaToLegalEntity.d.ts +2 -2
- package/dist/types/components/Individual/tasks/DecisionMakers/DecisionMakerDetails/DecisionMakerDetails.types.d.ts +2 -2
- package/dist/types/components/Individual/tasks/DecisionMakers/InvitedDecisionMaker/InvitedDecisionMakerSubmitSuccess/InvitedDecisionMakerSubmitSuccess.d.ts +6 -1
- package/dist/types/components/Individual/tasks/DecisionMakers/hooks/useTaskStatusWithTimeout.d.ts +15 -0
- package/dist/types/components/Individual/tasks/DecisionMakers/utils.d.ts +14 -0
- package/dist/types/components/Shared/FormFlow/FormFlow.d.ts +1 -1
- package/dist/types/components/Shared/FormFlow/FormFlow.types.d.ts +1 -0
- package/dist/types/components/Shared/FormWrapper/FormWrapper.d.ts +2 -1
- package/dist/types/components/Shared/devex/DebugListener/DebugTogglesAndSettings.d.ts +8 -0
- package/dist/types/components/Shared/devex/DebugListener/debugInfo.d.ts +2 -1
- package/dist/types/components/Shared/fields/BusinessRegistrationNumberField/RegistrationNumberTypeSelector/CompanyRegistrationNumberTypeSelector.d.ts +12 -0
- package/dist/types/components/Shared/fields/{IdFieldTypeSelector → BusinessRegistrationNumberField/RegistrationNumberTypeSelector}/getDefaultRegistrationNumberType.d.ts +4 -4
- package/dist/types/components/Shared/fields/{IdFieldTypeSelector → BusinessRegistrationNumberField/RegistrationNumberTypeSelector}/inferCompanyRegistrationNumberType.d.ts +3 -3
- package/dist/types/components/Shared/fields/BusinessRegistrationNumberField/fieldConfig.d.ts +1 -1
- package/dist/types/components/Shared/fields/BusinessRegistrationNumberField/registrationNumberTypes.d.ts +92 -0
- package/dist/types/components/Shared/fields/BusinessRegistrationNumberField/types.d.ts +8 -1
- package/dist/types/components/Shared/fields/IdFieldTypeSelector/countryIdNumberTypes.d.ts +0 -483
- package/dist/types/components/Shared/fields/LegalCompanyNameField/LegalCompanyNameField.d.ts +1 -1
- package/dist/types/components/Shared/fields/LegalCompanyNameField/fieldConfig.d.ts +2 -2
- package/dist/types/components/Shared/fields/LegalCompanyNameField/types.d.ts +1 -1
- package/dist/types/components/Shared/fields/LocalizedNameFields/validate.d.ts +2 -2
- package/dist/types/components/Shared/fields/PhoneField/PhoneField.d.ts +1 -1
- package/dist/types/components/Shared/fields/PhoneField/types.d.ts +2 -0
- package/dist/types/components/Shared/fields/{IdFieldTypeSelector → TaxInformationField/TaxIdNumberTypeSelector}/TaxIdNumberTypeSelector.d.ts +5 -5
- package/dist/types/components/Shared/fields/{IdFieldTypeSelector → TaxInformationField/TaxIdNumberTypeSelector}/getDefaultTaxIdNumberType.d.ts +5 -5
- package/dist/types/components/Shared/fields/{IdFieldTypeSelector → TaxInformationField/TaxIdNumberTypeSelector}/inferTaxIdNumberType.d.ts +5 -5
- package/dist/types/components/Shared/fields/TaxInformationField/fieldConfig.d.ts +1 -2
- package/dist/types/components/Shared/fields/TaxInformationField/taxIdNumberTypes.d.ts +232 -0
- package/dist/types/components/Shared/fields/TaxInformationField/types.d.ts +8 -0
- package/dist/types/components/Shared/fields/VatNumberField/VatNumberTypeSelector/VatNumberTypeSelector.d.ts +14 -0
- package/dist/types/components/Shared/fields/{IdFieldTypeSelector → VatNumberField/VatNumberTypeSelector}/getDefaultVatNumberType.d.ts +2 -2
- package/dist/types/components/Shared/fields/VatNumberField/VatNumberTypeSelector/inferVatNumberType.d.ts +3 -0
- package/dist/types/components/Shared/fields/VatNumberField/fieldConfig.d.ts +1 -2
- package/dist/types/components/Shared/fields/VatNumberField/types.d.ts +10 -1
- package/dist/types/components/Shared/fields/VatNumberField/vatNumberTypes.d.ts +149 -0
- package/dist/types/components/Shared/forms/Address/localized/jp/mapJpAddressSummary.d.ts +5 -0
- package/dist/types/components/Shared/forms/Address/utils.d.ts +6 -1
- package/dist/types/components/Shared/forms/Address/validate.d.ts +3 -3
- package/dist/types/components/Trust/mapping/mapLegalEntityToTrust.d.ts +2 -2
- package/dist/types/components/Trust/mapping/mapTrustToLegalEntity.d.ts +2 -2
- package/dist/types/components/Trust/tasks/TrustDropin/validate.d.ts +2 -2
- package/dist/types/components/UnincorporatedPartnership/mapping/mapLegalEntityToUnincorporatedPartnership.d.ts +2 -2
- package/dist/types/components/UnincorporatedPartnership/mapping/mapUnincorporatedPartnershipToLegalEntity.d.ts +2 -2
- package/dist/types/components/index.d.ts +2 -2
- package/dist/types/context/FormRouterContext/FormRouterContext.d.ts +5 -0
- package/dist/types/context/FormRouterContext/FormRouterContextProvider.d.ts +1 -1
- package/dist/types/context/FormRouterContext/types.d.ts +1 -0
- package/dist/types/context/FormRouterContext/useFormRouterContext.d.ts +4 -0
- package/dist/types/context/SettingsContext/types.d.ts +2 -0
- package/dist/types/context/ToggleContext/ToggleContext.d.ts +2 -0
- package/dist/types/context/ToggleContext/ToggleContextProvider.d.ts +9 -0
- package/dist/types/context/{ExperimentContext → ToggleContext}/types.d.ts +42 -32
- package/dist/types/context/ToggleContext/useToggleContext.d.ts +1 -0
- package/dist/types/core/EmbedShell/EmbedShell.d.ts +3 -3
- package/dist/types/core/UIElement/UIElement.d.ts +3 -2
- package/dist/types/core/models/api/organization.d.ts +1 -1
- package/dist/types/embeds/baseEmbedProps.d.ts +3 -3
- package/dist/types/hooks/useFormComposer.d.ts +1 -0
- package/dist/types/hooks/useLegalCompanyNameField/useLegalCompanyNameField.d.ts +1 -1
- package/dist/types/hooks/useTaskLandedEvent.d.ts +7 -0
- package/dist/types/language/types.d.ts +2 -9
- package/dist/types/language/utils.d.ts +2 -2
- package/dist/types/router/routeConfig.d.ts +1 -0
- package/dist/types/stores/globalStore/taskTypes.d.ts +1 -0
- package/dist/types/types/form-rules.d.ts +2 -2
- package/dist/types/utils/api/processCapabilitites.d.ts +1 -1
- package/dist/types/utils/entityStatusUtil.d.ts +1 -1
- package/dist/types/utils/japanSupportUtils.d.ts +2 -2
- package/dist/{types-C_a8jv29.js → types-BLjngIPE.js} +2 -2
- package/dist/{types-_ugkpUNx.js → types-CTwBMnPB.js} +46 -37
- package/dist/{types-H2FCJ1-C.js → types-DmjPF4Sw.js} +2 -2
- package/dist/{types-CQ2p58-6.js → types-Dv0COrvY.js} +3 -2
- package/dist/{types-xe96hgXI.js → types-i_4sFTBn.js} +2 -2
- package/dist/{unincorporated-partnership-B6NRgago.js → unincorporated-partnership-R_fKlee-.js} +2 -2
- package/dist/{useAssociatedLegalEntity-CVzKts0I.js → useAssociatedLegalEntity-sPi1NDib.js} +2 -2
- package/dist/{useBusinessDetailsData-DfwcFRlQ.js → useBusinessDetailsData-Bqk04i4C.js} +443 -397
- package/dist/{useCreateLegalEntity-hrStnY6W.js → useCreateLegalEntity-Bsp9NV_x.js} +2 -2
- package/dist/{useForm-D6L2c9Li.js → useForm-OoKBR6oR.js} +3 -3
- package/dist/{useFormContext-CMsS317D.js → useFormContext-DSPJpGk8.js} +17 -8
- package/dist/{useGlobalData-6k8_ruDF.js → useGlobalData-Crfi88kZ.js} +24 -15
- package/dist/{useMultiForm-DM2vK1Np.js → useMultiForm-CvhpFewv.js} +4 -4
- package/dist/{useOnboardingStatus-DhKdv_Y5.js → useOnboardingStatus-CAHU1D0X.js} +2 -2
- package/dist/{useScenarios-CUR2KnWg.js → useScenarios-DBv_dA-7.js} +2 -2
- package/dist/{useTermsOfServiceStatus-BDMVKqbS.js → useTermsOfServiceStatus-ZQHlgGZB.js} +2 -2
- package/dist/{useToastContext-D4gUb18d.js → useToastContext-fRmLeQb3.js} +2 -2
- package/dist/{useUnincorporatedPartnershipMembers-DR2H0kGz.js → useUnincorporatedPartnershipMembers-DiyYkTfs.js} +5 -5
- package/dist/{useUpdateBusinessLines-DePb7PWG.js → useUpdateBusinessLines-R_TsTeL9.js} +6 -6
- package/dist/{useUpdateLegalEntity-DAa_GfP9.js → useUpdateLegalEntity-B08ICvGj.js} +3 -3
- package/dist/{utils-Dl-sL-p9.js → utils-3lClW_1M.js} +2 -2
- package/dist/{utils-BWV6yYFy.js → utils-B0FPRdWI.js} +22 -2
- package/dist/{utils-CnnnCh8B.js → utils-BRoXRTJU.js} +6 -6
- package/dist/{utils--FMWv23g.js → utils-Bjuz29z7.js} +53 -6
- package/dist/{utils-Cm_KCWsB.js → utils-CPMlF6U8.js} +1 -1
- package/dist/{validate-C7J6rZcj.js → validate-Bkn-4Xav.js} +1 -1
- package/dist/{validate-C-38T_GY.js → validate-DXgI7aOv.js} +3 -3
- package/dist/{validationError-C6qoE3Ei.js → validationError-1Dg0ubhb.js} +2 -2
- package/package.json +1 -5
- package/dist/RadioGroupCard-fFofJm6m.js +0 -152
- package/dist/en-US--1W760fR.js +0 -13
- package/dist/en-US-CKLQU2sJ.js +0 -13
- package/dist/en-US-CozY33On.js +0 -13
- package/dist/en-US-DLY20x1O.js +0 -13
- package/dist/iframeWidget-D0lDhWvH.js +0 -234
- package/dist/instant-verification-UrnuHTYn.js +0 -40
- package/dist/japanSupportUtils-9uEg0pbP.js +0 -16
- package/dist/manual-verification-BO8zgAYT.js +0 -41
- package/dist/types/components/BankAccount/forms/BankDocument/BankDocument.d.ts +0 -5
- package/dist/types/components/BankAccount/forms/BankDocument/BankDocumentRequirements.d.ts +0 -9
- package/dist/types/components/BankAccount/forms/BankDocument/BankDocumentRequirementsModal.d.ts +0 -6
- package/dist/types/components/BankAccount/forms/BankVerification/verification/widget/BankVerificationWidget.d.ts +0 -3
- package/dist/types/components/BankAccount/forms/BankVerification/verification/widget/iframeWidget.d.ts +0 -32
- package/dist/types/components/Business/forms/FinancialInformation/formatFinancialInformationSummary.d.ts +0 -4
- package/dist/types/components/Business/utils/useCompanySearchExperiments.d.ts +0 -5
- package/dist/types/components/Shared/devex/DebugListener/DebugExperimentsAndSettings.d.ts +0 -7
- package/dist/types/components/Shared/fields/IdFieldTypeSelector/CompanyRegistrationNumberTypeSelector.d.ts +0 -20
- package/dist/types/components/Shared/fields/IdFieldTypeSelector/VatNumberTypeSelector.d.ts +0 -21
- package/dist/types/components/Shared/fields/IdFieldTypeSelector/inferVatNumberType.d.ts +0 -3
- package/dist/types/context/ExperimentContext/ExperimentsContext.d.ts +0 -2
- package/dist/types/context/ExperimentContext/ExperimentsContextProvider.d.ts +0 -8
- package/dist/types/context/ExperimentContext/useExperimentsContext.d.ts +0 -1
- package/dist/types/utils/bankVerification/dom.d.ts +0 -1
|
@@ -2,36 +2,33 @@
|
|
|
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] = "6efba19a-b22d-427c-ac74-87498502bb6a", e._sentryDebugIdIdentifier = "sentry-dbid-6efba19a-b22d-427c-ac74-87498502bb6a");
|
|
6
6
|
} catch (e) {
|
|
7
7
|
}
|
|
8
8
|
}
|
|
9
9
|
;
|
|
10
|
-
import { b as useApiContext,
|
|
11
|
-
import { jsxs, Fragment
|
|
10
|
+
import { b as useApiContext, k as httpGet, u as useTranslation, G as TaskVerificationStatus, N as Typography, C as Alert, x as useAnalyticsContext, V as Button, P as useLegalEntity, a as addResourceBundles, U as Loader, R as ROOT_LE, M as useGetTaskStatus, H as useToggleContext, E as EntityTypes, v as DATA_MISSING_DECISION_MAKER_ERROR_CODE_MAPPING, ay as getOwnDecisionMakers, bq as getAvailableDecisionMakerRoleTypes, w as TaskTypes, aY as getAllowedDecisionMakerRoles, bC as DropinLayout, O as StackLayout, aB as Header, aQ as Trans, as as DecisionMakerTypes, y as TaskStatuses, _ as __variableDynamicImportRuntimeHelper, L as LegalEntityTypes } from "./StoreProvider-CGAl-5Sk.js";
|
|
11
|
+
import { jsx, jsxs, Fragment } from "preact/jsx-runtime";
|
|
12
12
|
import { useState, useMemo, useEffect } from "preact/hooks";
|
|
13
|
-
import { u as useScenarios } from "./useScenarios-
|
|
13
|
+
import { u as useScenarios } from "./useScenarios-DBv_dA-7.js";
|
|
14
14
|
import { useQueries } from "@tanstack/preact-query";
|
|
15
|
-
import { u as useUpdateLegalEntity } from "./useUpdateLegalEntity-
|
|
15
|
+
import { u as useUpdateLegalEntity } from "./useUpdateLegalEntity-B08ICvGj.js";
|
|
16
16
|
import { L as List } from "./List-BAzyC6sw.js";
|
|
17
|
-
import { L as ListItem } from "./ListItem-
|
|
18
|
-
import { M as Modal } from "./Modal-
|
|
19
|
-
import { u as useToastContext } from "./useToastContext-
|
|
20
|
-
import {
|
|
21
|
-
import { C as ContextGuidance } from "./ContextGuidance-
|
|
22
|
-
import { A as ActionBar } from "./ActionBar-
|
|
23
|
-
import { E as EntityAssociation } from "./EntityAssociation-
|
|
24
|
-
import { E as EntityGuidanceStatus, i as iconStatus } from "./EntityGuidanceStatus-
|
|
25
|
-
import { G as GuidanceQuestionValues,
|
|
26
|
-
import { u as useCapabilityProblems } from "./getProblemsForEntity-
|
|
27
|
-
import {
|
|
28
|
-
import { D as
|
|
29
|
-
import { C as Confirm } from "./Confirm-C42kXNcg.js";
|
|
30
|
-
import { m as mapAddressLabels } from "./utils-BWV6yYFy.js";
|
|
31
|
-
import { l as localizeDateString } from "./localizeDateString-Cdq_DxXh.js";
|
|
17
|
+
import { L as ListItem } from "./ListItem-BQLamvB-.js";
|
|
18
|
+
import { M as Modal } from "./Modal-727fSuFr.js";
|
|
19
|
+
import { u as useToastContext } from "./useToastContext-fRmLeQb3.js";
|
|
20
|
+
import { e as useDataMissingRemediations } from "./OnboardingDropinComponent-CaRk-dgZ.js";
|
|
21
|
+
import { C as ContextGuidance } from "./ContextGuidance-8vbKs48u.js";
|
|
22
|
+
import { A as ActionBar } from "./ActionBar-Ruw6z6LR.js";
|
|
23
|
+
import { E as EntityAssociation } from "./EntityAssociation-BVxUknEP.js";
|
|
24
|
+
import { E as EntityGuidanceStatus, i as iconStatus } from "./EntityGuidanceStatus-CbP4RqW4.js";
|
|
25
|
+
import { G as GuidanceQuestionValues, i as individualFormDefaultData } from "./mapLegalEntityToIndividualSchema-BxOmNDle.js";
|
|
26
|
+
import { u as useCapabilityProblems } from "./getProblemsForEntity-CNltAsMa.js";
|
|
27
|
+
import { b as getTrustedEntityAssociations } from "./getTrustedFields-rU6j1TOQ.js";
|
|
28
|
+
import { a as getDecisionMakerDescription, D as DecisionMakerDetails } from "./DecisionMakerDetails-D0-COO1N.js";
|
|
32
29
|
import { lazy } from "preact/compat";
|
|
33
|
-
import { I as Image } from "./unincorporated-partnership-
|
|
34
|
-
import { L as LandingLayout } from "./LandingLayout-
|
|
30
|
+
import { I as Image } from "./unincorporated-partnership-R_fKlee-.js";
|
|
31
|
+
import { L as LandingLayout } from "./LandingLayout-CC_FGMAs.js";
|
|
35
32
|
async function getInvitationStatus(rootLegalEntityId, baseUrl, decisionMakerId) {
|
|
36
33
|
const { active } = await httpGet({
|
|
37
34
|
baseUrl,
|
|
@@ -67,235 +64,6 @@ function useInvitationStatuses(decisionMakerIds, options) {
|
|
|
67
64
|
});
|
|
68
65
|
}
|
|
69
66
|
const not = (fn) => (...args) => !fn(...args);
|
|
70
|
-
const BENEFICIAL_OWNER_ROLES = [
|
|
71
|
-
DecisionMakerTypes.OWNER,
|
|
72
|
-
DecisionMakerTypes.CONTROLLING_PERSON,
|
|
73
|
-
DecisionMakerTypes.DIRECTOR
|
|
74
|
-
];
|
|
75
|
-
const getDecisionMakerDescription = (types, t) => {
|
|
76
|
-
const isSignatory = types.includes(DecisionMakerTypes.SIGNATORY);
|
|
77
|
-
const isBeneficialOwner = types.some((type) => BENEFICIAL_OWNER_ROLES.includes(type));
|
|
78
|
-
return [isSignatory && t(($) => $.signatory), isBeneficialOwner && t(($) => $.beneficialOwner)].filter(Boolean).join(", ");
|
|
79
|
-
};
|
|
80
|
-
const isManualVerificationOrExistingDoc = (idVerificationMethod) => idVerificationMethod === "manualVerification" || idVerificationMethod === "existingDocument";
|
|
81
|
-
const formatFileSummaryData = (data, locale) => {
|
|
82
|
-
const { idVerificationMethod, proofOfNationalId, proofOfResidency, proofOfRelationship } = data;
|
|
83
|
-
const proofOfNationalIdFile = proofOfNationalId?.proofOfNationalId?.[0];
|
|
84
|
-
const proofOfResidencyFile = proofOfResidency?.proofOfResidency?.[0];
|
|
85
|
-
const proofOfRelationshipFile = proofOfRelationship?.proofOfRelationship?.[0];
|
|
86
|
-
const idDocument = {
|
|
87
|
-
idDocumentType: idVerificationMethod?.idDocument?.idDocumentType,
|
|
88
|
-
uploadedDate: idVerificationMethod?.idDocument?.modificationDate ? localizeDateString(idVerificationMethod?.idDocument?.modificationDate ?? "", locale) : void 0
|
|
89
|
-
};
|
|
90
|
-
return {
|
|
91
|
-
// Format the ID document if it exists.
|
|
92
|
-
...idDocument?.idDocumentType && {
|
|
93
|
-
idDocument
|
|
94
|
-
},
|
|
95
|
-
// Include proof of national ID file name if it exists.
|
|
96
|
-
...proofOfNationalIdFile && {
|
|
97
|
-
proofOfNationalId: {
|
|
98
|
-
fileName: proofOfNationalIdFile.name
|
|
99
|
-
}
|
|
100
|
-
},
|
|
101
|
-
// Include proof of residency file name if it exists.
|
|
102
|
-
...proofOfResidencyFile && {
|
|
103
|
-
proofOfResidency: {
|
|
104
|
-
fileName: proofOfResidencyFile.name
|
|
105
|
-
}
|
|
106
|
-
},
|
|
107
|
-
// Include proof of relationship file name if it exists.
|
|
108
|
-
...proofOfRelationshipFile && {
|
|
109
|
-
proofOfRelationship: {
|
|
110
|
-
fileName: proofOfRelationshipFile.name
|
|
111
|
-
}
|
|
112
|
-
}
|
|
113
|
-
};
|
|
114
|
-
};
|
|
115
|
-
const formatDataForSummary = (dataToFormat, locale, commonT) => {
|
|
116
|
-
if (!dataToFormat) return {};
|
|
117
|
-
const datasetUtils = datasetUtilities(locale);
|
|
118
|
-
let formattedSummaryData = cloneObject(dataToFormat);
|
|
119
|
-
if (formattedSummaryData?.basicDetails?.phoneNumber) {
|
|
120
|
-
formattedSummaryData.basicDetails.phoneNumber = formattedSummaryData.basicDetails.phoneNumber.number;
|
|
121
|
-
}
|
|
122
|
-
if (formattedSummaryData.additionalPersonalDetails?.country) {
|
|
123
|
-
formattedSummaryData.additionalPersonalDetails.country = datasetUtils.getCountryName(
|
|
124
|
-
formattedSummaryData.additionalPersonalDetails.country
|
|
125
|
-
);
|
|
126
|
-
}
|
|
127
|
-
if (formattedSummaryData.additionalPersonalDetails?.nationality) {
|
|
128
|
-
formattedSummaryData.additionalPersonalDetails.nationality = datasetUtils.getCountryName(
|
|
129
|
-
formattedSummaryData.additionalPersonalDetails.nationality
|
|
130
|
-
);
|
|
131
|
-
}
|
|
132
|
-
if (formattedSummaryData.additionalPersonalDetails) {
|
|
133
|
-
formattedSummaryData.address = mapAddressLabels(
|
|
134
|
-
formattedSummaryData.additionalPersonalDetails,
|
|
135
|
-
datasetUtils
|
|
136
|
-
);
|
|
137
|
-
}
|
|
138
|
-
if (formattedSummaryData.basicDetails?.accountHolder) {
|
|
139
|
-
formattedSummaryData.basicDetails.accountHolder = commonT(
|
|
140
|
-
($) => $[formattedSummaryData.basicDetails.accountHolder]
|
|
141
|
-
);
|
|
142
|
-
}
|
|
143
|
-
if (formattedSummaryData.additionalPersonalDetails?.birthDate) {
|
|
144
|
-
formattedSummaryData.additionalPersonalDetails.birthDate = localizeDateString(
|
|
145
|
-
formattedSummaryData.additionalPersonalDetails.birthDate,
|
|
146
|
-
locale
|
|
147
|
-
);
|
|
148
|
-
}
|
|
149
|
-
if (isManualVerificationOrExistingDoc(
|
|
150
|
-
formattedSummaryData.idVerificationMethod?.idVerificationMethod
|
|
151
|
-
) || formattedSummaryData.proofOfResidency) {
|
|
152
|
-
const fileSummaryData = formatFileSummaryData(dataToFormat, locale);
|
|
153
|
-
formattedSummaryData = { ...formattedSummaryData, ...fileSummaryData };
|
|
154
|
-
formattedSummaryData.manualIdUpload = { ...formattedSummaryData.idDocument };
|
|
155
|
-
formattedSummaryData.idVerificationMethod.idDocument = { ...formattedSummaryData.idDocument };
|
|
156
|
-
}
|
|
157
|
-
if (formattedSummaryData.additionalPersonalDetails?.taxInformation) {
|
|
158
|
-
const taxInformationByNationality = formattedSummaryData.additionalPersonalDetails.taxInformation.find(
|
|
159
|
-
(taxId) => taxId.country === dataToFormat.additionalPersonalDetails?.nationality
|
|
160
|
-
);
|
|
161
|
-
if (taxInformationByNationality) {
|
|
162
|
-
delete formattedSummaryData.additionalPersonalDetails.taxInformation;
|
|
163
|
-
formattedSummaryData.additionalPersonalDetails[taxInformationByNationality.type] = taxInformationByNationality.number;
|
|
164
|
-
}
|
|
165
|
-
if (!taxInformationByNationality) {
|
|
166
|
-
const taxInformationByCountry = formattedSummaryData.additionalPersonalDetails.taxInformation.find(
|
|
167
|
-
(taxId) => taxId.country === dataToFormat.additionalPersonalDetails?.country
|
|
168
|
-
);
|
|
169
|
-
if (taxInformationByCountry) {
|
|
170
|
-
delete formattedSummaryData.additionalPersonalDetails.taxInformation;
|
|
171
|
-
formattedSummaryData.additionalPersonalDetails[taxInformationByCountry.type] = taxInformationByCountry.number;
|
|
172
|
-
}
|
|
173
|
-
}
|
|
174
|
-
}
|
|
175
|
-
if (formattedSummaryData?.signatoryQuestionnaire) {
|
|
176
|
-
formattedSummaryData.signatoryQuestionnaire = dataToFormat?.signatoryQuestionnaire?.isSignatory === GuidanceQuestionValues.YES ? [commonT(($) => $["signatorySummaryLabel"])] : [];
|
|
177
|
-
}
|
|
178
|
-
if (formattedSummaryData?.uboQuestionnaire) {
|
|
179
|
-
const roleFieldToLabelMap = {
|
|
180
|
-
isOwner: "ownerSummaryLabel",
|
|
181
|
-
isControllingPerson: "controllingPersonSummaryLabel",
|
|
182
|
-
isDirector: "directorSummaryLabel"
|
|
183
|
-
};
|
|
184
|
-
formattedSummaryData.uboQuestionnaire = Object.keys(roleFieldToLabelMap).flatMap(
|
|
185
|
-
(field) => dataToFormat?.uboQuestionnaire?.[field] === GuidanceQuestionValues.YES ? [commonT(($) => $[roleFieldToLabelMap[field]])] : []
|
|
186
|
-
);
|
|
187
|
-
}
|
|
188
|
-
return formattedSummaryData;
|
|
189
|
-
};
|
|
190
|
-
const getOmittedKeysForSummary = (data, taskType) => [
|
|
191
|
-
// Omit 'role' if the task is for a decision maker.
|
|
192
|
-
...["role"],
|
|
193
|
-
// Omit 'idNumber' if the user is exempt from providing it.
|
|
194
|
-
...data?.additionalPersonalDetails?.idNumberExempt ? ["idNumber"] : [],
|
|
195
|
-
// Omit 'idVerificationMethod' if manual verification was used.
|
|
196
|
-
...isManualVerificationOrExistingDoc(data?.idVerificationMethod?.idVerificationMethod) ? ["idVerificationMethod"] : [],
|
|
197
|
-
"address",
|
|
198
|
-
"manualIdUpload"
|
|
199
|
-
];
|
|
200
|
-
const getSummaryData = (data, locale, commonT, taskType) => {
|
|
201
|
-
const summaryData = formatDataForSummary(data, locale, commonT);
|
|
202
|
-
const omittedKeys = getOmittedKeysForSummary(data)?.filter(Boolean);
|
|
203
|
-
return {
|
|
204
|
-
...drop(...omittedKeys).from(summaryData),
|
|
205
|
-
basicDetails: drop("firstName", "lastName", "role", "nomineeShareholder").from(
|
|
206
|
-
summaryData.basicDetails
|
|
207
|
-
),
|
|
208
|
-
additionalPersonalDetails: drop("idNumberExempt").from(summaryData.additionalPersonalDetails),
|
|
209
|
-
idDocument: summaryData.idVerificationMethod?.idDocument
|
|
210
|
-
};
|
|
211
|
-
};
|
|
212
|
-
const getStructuredListItems = (data, commonT) => {
|
|
213
|
-
if (typeof data !== "object" || data === null || Array.isArray(data)) {
|
|
214
|
-
return [];
|
|
215
|
-
}
|
|
216
|
-
return Object.entries(data).filter(
|
|
217
|
-
([itemKey, itemValue]) => itemValue != null && itemValue !== "" && !["nomineeDirector", "nomineeShareholder"].includes(itemKey) && (!Array.isArray(itemValue) || itemValue.length > 0)
|
|
218
|
-
).map(([itemKey, itemValue]) => ({
|
|
219
|
-
term: commonT(($) => $[itemKey]),
|
|
220
|
-
details: Array.isArray(itemValue) ? itemValue.join(", ") : commonT(($) => $[itemValue]) || String(itemValue),
|
|
221
|
-
type: Array.isArray(itemValue) ? "list" : "text"
|
|
222
|
-
}));
|
|
223
|
-
};
|
|
224
|
-
const DecisionMakerDetails = ({
|
|
225
|
-
decisionMaker,
|
|
226
|
-
parentLegalEntity,
|
|
227
|
-
handleClose,
|
|
228
|
-
handleDelete,
|
|
229
|
-
handleEdit
|
|
230
|
-
}) => {
|
|
231
|
-
const { t: commonT, i18n } = useTranslation("common");
|
|
232
|
-
const { t: individualT } = useTranslation("individual");
|
|
233
|
-
const [confirmOpen, setConfirmOpen] = useState(false);
|
|
234
|
-
const { data: legalEntity, isLoading: isLegalEntityLoading } = useLegalEntity(
|
|
235
|
-
decisionMaker.reference
|
|
236
|
-
);
|
|
237
|
-
const isTrusted = getTrustedEntityAssociations(parentLegalEntity).some(
|
|
238
|
-
(ea) => ea.reference === decisionMaker.reference
|
|
239
|
-
);
|
|
240
|
-
const formattedSummary = useMemo(() => {
|
|
241
|
-
if (legalEntity) {
|
|
242
|
-
const individualSchema = mapLegalEntityToIndividualSchema(
|
|
243
|
-
legalEntity,
|
|
244
|
-
false,
|
|
245
|
-
true,
|
|
246
|
-
parentLegalEntity
|
|
247
|
-
);
|
|
248
|
-
return getSummaryData(individualSchema, i18n.language, commonT);
|
|
249
|
-
}
|
|
250
|
-
}, [legalEntity, parentLegalEntity, i18n, commonT]);
|
|
251
|
-
const actions = /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
252
|
-
/* @__PURE__ */ jsx(Button, { onClick: handleEdit, variant: "primary", fullWidth: true, children: commonT(($) => $["editDetails"]) }),
|
|
253
|
-
/* @__PURE__ */ jsx(
|
|
254
|
-
Button,
|
|
255
|
-
{
|
|
256
|
-
onClick: () => setConfirmOpen(true),
|
|
257
|
-
variant: "secondary",
|
|
258
|
-
fullWidth: true,
|
|
259
|
-
disabled: isTrusted,
|
|
260
|
-
children: commonT(($) => $["delete"])
|
|
261
|
-
}
|
|
262
|
-
)
|
|
263
|
-
] });
|
|
264
|
-
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
265
|
-
/* @__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: [
|
|
266
|
-
/* @__PURE__ */ jsx(
|
|
267
|
-
ListItem,
|
|
268
|
-
{
|
|
269
|
-
accessory: /* @__PURE__ */ jsx(TaskVerificationStatus, { status: decisionMaker.status }),
|
|
270
|
-
avatar: { iconName: "user", circle: true },
|
|
271
|
-
title: decisionMaker.name,
|
|
272
|
-
description: getDecisionMakerDescription(decisionMaker.types, individualT)
|
|
273
|
-
}
|
|
274
|
-
),
|
|
275
|
-
formattedSummary && Object.entries(formattedSummary).map(([key, value]) => {
|
|
276
|
-
const items = getStructuredListItems(value, commonT);
|
|
277
|
-
if (items.length === 0) {
|
|
278
|
-
return null;
|
|
279
|
-
}
|
|
280
|
-
return /* @__PURE__ */ jsxs(List, { variant: "grouped-secondary", children: [
|
|
281
|
-
/* @__PURE__ */ jsx(Typography, { variant: "title", children: individualT(($) => $[key]) }),
|
|
282
|
-
/* @__PURE__ */ jsx(StructuredList, { items })
|
|
283
|
-
] }, key);
|
|
284
|
-
}).filter(Boolean)
|
|
285
|
-
] }) }) }),
|
|
286
|
-
confirmOpen && /* @__PURE__ */ jsx(
|
|
287
|
-
Confirm,
|
|
288
|
-
{
|
|
289
|
-
title: commonT(($) => $["deleteItem"], { item: decisionMaker.name }),
|
|
290
|
-
description: commonT(($) => $["thisActionIsPermanent"]),
|
|
291
|
-
onConfirm: handleDelete,
|
|
292
|
-
confirmText: commonT(($) => $["delete"]),
|
|
293
|
-
onCancel: () => setConfirmOpen(false),
|
|
294
|
-
critical: true
|
|
295
|
-
}
|
|
296
|
-
)
|
|
297
|
-
] });
|
|
298
|
-
};
|
|
299
67
|
function DecisionMakerListItem({
|
|
300
68
|
decisionMaker,
|
|
301
69
|
openDecisionMakerModal,
|
|
@@ -487,7 +255,7 @@ const DecisionMakers = (props) => {
|
|
|
487
255
|
const { data, isLoading } = useLegalEntity(ROOT_LE);
|
|
488
256
|
const { i18n } = useTranslation();
|
|
489
257
|
addResourceBundles(i18n, [
|
|
490
|
-
{ 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-
|
|
258
|
+
{ 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`, 4) }
|
|
491
259
|
]);
|
|
492
260
|
if (isLoading || !data) {
|
|
493
261
|
return /* @__PURE__ */ jsx(Loader, {});
|
|
@@ -503,9 +271,9 @@ const DecisionMakersInner = ({
|
|
|
503
271
|
const { t: commonT } = useTranslation("common");
|
|
504
272
|
const { t: individualT } = useTranslation("individual");
|
|
505
273
|
const userEvents = useAnalyticsContext();
|
|
506
|
-
const {
|
|
274
|
+
const { isFeatureEnabled } = useToggleContext();
|
|
507
275
|
const { showToast } = useToastContext();
|
|
508
|
-
const isRevampedDecisionMakersTaskPageEnabled =
|
|
276
|
+
const isRevampedDecisionMakersTaskPageEnabled = isFeatureEnabled(
|
|
509
277
|
"EnableRevampedDecisionMakersTaskPage"
|
|
510
278
|
);
|
|
511
279
|
const [showDecisionMakerModal, setShowDecisionMakerModal] = useState(false);
|
|
@@ -599,11 +367,6 @@ const DecisionMakersInner = ({
|
|
|
599
367
|
const completeSignatories = completeDecisionMakers.filter(isSignatory);
|
|
600
368
|
const completeBeneficialOwners = completeDecisionMakers.filter(not(isSignatory));
|
|
601
369
|
const showWarning = Boolean(remediationMessages.DECISION_MAKER && uniqueDecisionMakers.length);
|
|
602
|
-
useEffect(() => {
|
|
603
|
-
userEvents.addTaskEvent("Landed on page", {
|
|
604
|
-
actionType: "start"
|
|
605
|
-
});
|
|
606
|
-
}, [userEvents]);
|
|
607
370
|
useEffect(() => {
|
|
608
371
|
if (showWarning) {
|
|
609
372
|
userEvents.addTaskEvent("Encountered error", {
|
|
@@ -2,17 +2,17 @@
|
|
|
2
2
|
{
|
|
3
3
|
try {
|
|
4
4
|
let e = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : {}, n = new e.Error().stack;
|
|
5
|
-
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "
|
|
5
|
+
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "ae64eaef-c499-4328-a4d3-8f3793444211", e._sentryDebugIdIdentifier = "sentry-dbid-ae64eaef-c499-4328-a4d3-8f3793444211");
|
|
6
6
|
} catch (e) {
|
|
7
7
|
}
|
|
8
8
|
}
|
|
9
9
|
;
|
|
10
10
|
import { jsxs, jsx, Fragment } from "preact/jsx-runtime";
|
|
11
|
-
import { f as defaultFileValidationOptions, h as fileValidationRules, S as StateContextSetter, D as DropzoneFile, e as bytesToSize } from "./validate-
|
|
11
|
+
import { f as defaultFileValidationOptions, h as fileValidationRules, S as StateContextSetter, D as DropzoneFile, e as bytesToSize } from "./validate-DXgI7aOv.js";
|
|
12
12
|
import cx from "classnames";
|
|
13
13
|
import { useRef, useState, useMemo, useEffect } from "preact/hooks";
|
|
14
|
-
import { u as useTranslation,
|
|
15
|
-
import { u as useForm } from "./useForm-
|
|
14
|
+
import { u as useTranslation, x as useAnalyticsContext, V as Button, N as Typography, z as Icon } from "./StoreProvider-CGAl-5Sk.js";
|
|
15
|
+
import { u as useForm } from "./useForm-OoKBR6oR.js";
|
|
16
16
|
function Dropzone(props) {
|
|
17
17
|
const {
|
|
18
18
|
name,
|
|
@@ -2,15 +2,15 @@
|
|
|
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] = "53224096-b266-497a-b345-e3a6543bc022", e._sentryDebugIdIdentifier = "sentry-dbid-53224096-b266-497a-b345-e3a6543bc022");
|
|
6
6
|
} catch (e) {
|
|
7
7
|
}
|
|
8
8
|
}
|
|
9
9
|
;
|
|
10
10
|
import { jsxs, jsx, Fragment } from "preact/jsx-runtime";
|
|
11
11
|
import cx from "classnames";
|
|
12
|
-
import { A as Avatar } from "./Avatar-
|
|
13
|
-
import {
|
|
12
|
+
import { A as Avatar } from "./Avatar-Dp70m25u.js";
|
|
13
|
+
import { y as TaskStatuses, u as useTranslation, aa as Skeleton, N as Typography } from "./StoreProvider-CGAl-5Sk.js";
|
|
14
14
|
import { T as Tag } from "./Tag-DdkVScyr.js";
|
|
15
15
|
import { O as OnboardingStatuses } from "./view-verification-status-VFcBydkR.js";
|
|
16
16
|
const embeddedStatus = "adyen-kyc-embedded-status";
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
{
|
|
3
3
|
try {
|
|
4
4
|
let e = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : {}, n = new e.Error().stack;
|
|
5
|
-
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "
|
|
5
|
+
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "0174c62d-53aa-4320-89cc-582495995707", e._sentryDebugIdIdentifier = "sentry-dbid-0174c62d-53aa-4320-89cc-582495995707");
|
|
6
6
|
} catch (e) {
|
|
7
7
|
}
|
|
8
8
|
}
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
import { jsxs, jsx } from "preact/jsx-runtime";
|
|
11
11
|
import cx from "classnames";
|
|
12
12
|
import { isValidElement, cloneElement } from "preact";
|
|
13
|
-
import {
|
|
13
|
+
import { V as Button, U as Loader, z as Icon } from "./StoreProvider-CGAl-5Sk.js";
|
|
14
14
|
const endStateLayout = "adyen-kyc-end-state-layout";
|
|
15
15
|
const endStateLayoutHeader = "adyen-kyc-end-state-layout-header";
|
|
16
16
|
const endStateLayoutIcon = "adyen-kyc-end-state-layout-icon";
|
|
@@ -2,19 +2,19 @@
|
|
|
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] = "62a3099f-6c77-49de-b2b4-b0022cb56e7a", e._sentryDebugIdIdentifier = "sentry-dbid-62a3099f-6c77-49de-b2b4-b0022cb56e7a");
|
|
6
6
|
} catch (e) {
|
|
7
7
|
}
|
|
8
8
|
}
|
|
9
9
|
;
|
|
10
10
|
import { jsx, jsxs } from "preact/jsx-runtime";
|
|
11
11
|
import { useRef, useCallback, useEffect, useState } from "preact/hooks";
|
|
12
|
-
import {
|
|
12
|
+
import { V as Button, u as useTranslation, G as TaskVerificationStatus, B as IconButton, y as TaskStatuses } from "./StoreProvider-CGAl-5Sk.js";
|
|
13
13
|
import { C as Card } from "./Card-OQuFzmxm.js";
|
|
14
14
|
import { T as Tag } from "./Tag-DdkVScyr.js";
|
|
15
|
-
import { V as VerificationErrorAlert } from "./VerificationErrorAlert-
|
|
16
|
-
import { C as Confirm } from "./Confirm-
|
|
17
|
-
import { g as getRoleName, a as getRoleTagVariant } from "./roleMetadata-
|
|
15
|
+
import { V as VerificationErrorAlert } from "./VerificationErrorAlert-Sf7ovPdg.js";
|
|
16
|
+
import { C as Confirm } from "./Confirm-roUo52pe.js";
|
|
17
|
+
import { g as getRoleName, a as getRoleTagVariant } from "./roleMetadata-RivmWKE-.js";
|
|
18
18
|
function useClickAwayListener(ref, onClickAway) {
|
|
19
19
|
const handleClickAway = useCallback(
|
|
20
20
|
(event) => {
|
|
@@ -2,16 +2,16 @@
|
|
|
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] = "52874f68-a52c-4e6e-90f6-07a1571a17de", e._sentryDebugIdIdentifier = "sentry-dbid-52874f68-a52c-4e6e-90f6-07a1571a17de");
|
|
6
6
|
} catch (e) {
|
|
7
7
|
}
|
|
8
8
|
}
|
|
9
9
|
;
|
|
10
10
|
import { jsx, jsxs } from "preact/jsx-runtime";
|
|
11
11
|
import { T as Tag } from "./Tag-DdkVScyr.js";
|
|
12
|
-
import {
|
|
13
|
-
import { U as UnincorporatedPartnershipMemberTypes } from "./unincorporated-partnership-
|
|
14
|
-
import { g as getRoleName, a as getRoleTagVariant } from "./roleMetadata-
|
|
12
|
+
import { bD as getDecisionMakerDescriptionMap, w as TaskTypes, bE as TRUST_DEFAULT_DESCRIPTIONS_MAP, z as Icon, u as useTranslation, aQ as Trans } from "./StoreProvider-CGAl-5Sk.js";
|
|
13
|
+
import { U as UnincorporatedPartnershipMemberTypes } from "./unincorporated-partnership-R_fKlee-.js";
|
|
14
|
+
import { g as getRoleName, a as getRoleTagVariant } from "./roleMetadata-RivmWKE-.js";
|
|
15
15
|
const UNINCORPORATED_PARTNERSHIP__DEFAULT_DESCRIPTIONS_MAP = {
|
|
16
16
|
[UnincorporatedPartnershipMemberTypes.SECONDARY_PARTNER]: "provideAtLeastOneSecondaryPartner",
|
|
17
17
|
[UnincorporatedPartnershipMemberTypes.OWNER]: "provideAllOwners",
|
|
@@ -2,14 +2,14 @@
|
|
|
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] = "b3a0b743-a2d9-4dfc-851a-8950f3a5ec04", e._sentryDebugIdIdentifier = "sentry-dbid-b3a0b743-a2d9-4dfc-851a-8950f3a5ec04");
|
|
6
6
|
} catch (e) {
|
|
7
7
|
}
|
|
8
8
|
}
|
|
9
9
|
;
|
|
10
10
|
import { jsx, jsxs, Fragment } from "preact/jsx-runtime";
|
|
11
11
|
import { useContext, useCallback } from "preact/hooks";
|
|
12
|
-
import {
|
|
12
|
+
import { V as Button, u as useTranslation, C as Alert, b8 as remediationHasFileUploadField, aS as keysOf } from "./StoreProvider-CGAl-5Sk.js";
|
|
13
13
|
import { createContext } from "preact";
|
|
14
14
|
const errorPanel = "adyen-kyc-error-panel";
|
|
15
15
|
const styles = {
|
|
@@ -21,17 +21,16 @@ function useFormRouterContext() {
|
|
|
21
21
|
return context;
|
|
22
22
|
}
|
|
23
23
|
const NavigateToFieldLink = ({ fieldName, label }) => {
|
|
24
|
-
const { goToFormByFieldName } = useFormRouterContext();
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
{
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
variant: "link",
|
|
32
|
-
children: label
|
|
24
|
+
const { goToFormByFieldName, getFieldAction } = useFormRouterContext();
|
|
25
|
+
const handleClick = () => {
|
|
26
|
+
const fieldAction = getFieldAction(fieldName);
|
|
27
|
+
if (fieldAction) {
|
|
28
|
+
fieldAction();
|
|
29
|
+
} else {
|
|
30
|
+
goToFormByFieldName(fieldName);
|
|
33
31
|
}
|
|
34
|
-
|
|
32
|
+
};
|
|
33
|
+
return /* @__PURE__ */ jsx(Button, { onClick: handleClick, variant: "link", children: label });
|
|
35
34
|
};
|
|
36
35
|
function ServerValidationErrors({
|
|
37
36
|
validationErrors,
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
{
|
|
3
3
|
try {
|
|
4
4
|
let e = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : {}, n = new e.Error().stack;
|
|
5
|
-
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "
|
|
5
|
+
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "9fb73765-de40-4eb0-b07c-9859d303e81b", e._sentryDebugIdIdentifier = "sentry-dbid-9fb73765-de40-4eb0-b07c-9859d303e81b");
|
|
6
6
|
} catch (e) {
|
|
7
7
|
}
|
|
8
8
|
}
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
import { jsxs, jsx } from "preact/jsx-runtime";
|
|
11
11
|
import cx from "classnames";
|
|
12
12
|
import { useEffect } from "preact/hooks";
|
|
13
|
-
import { u as useTranslation,
|
|
13
|
+
import { u as useTranslation, x as useAnalyticsContext, z as Icon, ab as translateTranslatable } from "./StoreProvider-CGAl-5Sk.js";
|
|
14
14
|
import { a as useId } from "./useId-BZ0PA7jP.js";
|
|
15
15
|
const ARIA_ERROR_SUFFIX = "-ariaError";
|
|
16
16
|
const MaybeFieldset = ({
|
|
@@ -2,16 +2,16 @@
|
|
|
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] = "b057f63c-9295-4daa-849f-399aaf95cbbe", e._sentryDebugIdIdentifier = "sentry-dbid-b057f63c-9295-4daa-849f-399aaf95cbbe");
|
|
6
6
|
} catch (e) {
|
|
7
7
|
}
|
|
8
8
|
}
|
|
9
9
|
;
|
|
10
10
|
import { jsx, jsxs, Fragment } from "preact/jsx-runtime";
|
|
11
11
|
import cx from "classnames";
|
|
12
|
-
import { u as useTranslation,
|
|
12
|
+
import { u as useTranslation, z as Icon, x as useAnalyticsContext, N as Typography } from "./StoreProvider-CGAl-5Sk.js";
|
|
13
13
|
import { t as trackNavigation } from "./trackNavigation-db_h46BT.js";
|
|
14
|
-
import { K as KEYBOARD_KEYS } from "./Modal-
|
|
14
|
+
import { K as KEYBOARD_KEYS } from "./Modal-727fSuFr.js";
|
|
15
15
|
const FormNavigationItem = ({
|
|
16
16
|
form,
|
|
17
17
|
isActive,
|
|
@@ -2,17 +2,17 @@
|
|
|
2
2
|
{
|
|
3
3
|
try {
|
|
4
4
|
let e = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : {}, n = new e.Error().stack;
|
|
5
|
-
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "
|
|
5
|
+
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "79d4cb3f-70b2-4127-82e2-e67b1d66ff13", e._sentryDebugIdIdentifier = "sentry-dbid-79d4cb3f-70b2-4127-82e2-e67b1d66ff13");
|
|
6
6
|
} catch (e) {
|
|
7
7
|
}
|
|
8
8
|
}
|
|
9
9
|
;
|
|
10
|
-
import {
|
|
11
|
-
import { g as getAddressSchemaForCountry, C as COUNTRIES_WITH_STATES_DATASET } from "./utils-
|
|
10
|
+
import { a9 as CountryCodes, as as DecisionMakerTypes, w as TaskTypes, a8 as getLegalEntityCountry, bq as getAvailableDecisionMakerRoleTypes, at as Scenarios, br as allowedCountriesForNominee, bs as isLowRiskCountry } from "./StoreProvider-CGAl-5Sk.js";
|
|
11
|
+
import { g as getAddressSchemaForCountry, C as COUNTRIES_WITH_STATES_DATASET } from "./utils-B0FPRdWI.js";
|
|
12
12
|
import { c as createFormRules } from "./form-rules-DhbF2mY4.js";
|
|
13
|
-
import { i as isJapanLocalizationEnabled } from "./japanSupportUtils-
|
|
14
|
-
import { i as isBafinSignatoryFlow } from "./bafinUtils-
|
|
15
|
-
import { g as getLocalizedIdDocumentTypeOptions } from "./utils-
|
|
13
|
+
import { i as isJapanLocalizationEnabled } from "./japanSupportUtils-B76IOTvL.js";
|
|
14
|
+
import { i as isBafinSignatoryFlow } from "./bafinUtils-4YaweTCy.js";
|
|
15
|
+
import { g as getLocalizedIdDocumentTypeOptions } from "./utils-3lClW_1M.js";
|
|
16
16
|
const REQUIRED = "REQUIRED";
|
|
17
17
|
const OPTIONAL = "OPTIONAL";
|
|
18
18
|
const ID_NUMBER_EXEMPT_COUNTRIES = [
|
|
@@ -118,7 +118,7 @@ const individualRules = ({
|
|
|
118
118
|
data,
|
|
119
119
|
country,
|
|
120
120
|
taskType,
|
|
121
|
-
|
|
121
|
+
isFeatureEnabled = () => false,
|
|
122
122
|
rootLegalEntity,
|
|
123
123
|
problems
|
|
124
124
|
}) => createFormRules({
|
|
@@ -224,7 +224,7 @@ const individualRules = ({
|
|
|
224
224
|
return REQUIRED;
|
|
225
225
|
},
|
|
226
226
|
isVerifyByInviteSelected: () => {
|
|
227
|
-
const isVerifyByInvite = taskType === TaskTypes.DECISION_MAKER &&
|
|
227
|
+
const isVerifyByInvite = taskType === TaskTypes.DECISION_MAKER && isFeatureEnabled("EnableVerifyByInvite") && data?.idVerificationMethod?.idVerificationMethod === "verifyByInvite";
|
|
228
228
|
return isVerifyByInvite ? REQUIRED : void 0;
|
|
229
229
|
},
|
|
230
230
|
contactsIfRequiredForRole: () => {
|
|
@@ -236,7 +236,7 @@ const individualRules = ({
|
|
|
236
236
|
}
|
|
237
237
|
return REQUIRED;
|
|
238
238
|
},
|
|
239
|
-
requiredIfPhoneScenarioDisabled: () => !
|
|
239
|
+
requiredIfPhoneScenarioDisabled: () => !isFeatureEnabled("EnablePhoneFieldScenario") ? REQUIRED : void 0,
|
|
240
240
|
jobTitleIfRequiredForRole: () => {
|
|
241
241
|
if (taskType !== TaskTypes.DECISION_MAKER) return;
|
|
242
242
|
if (data.basicDetails?.role?.some(
|
|
@@ -254,7 +254,7 @@ const individualRules = ({
|
|
|
254
254
|
if (isBafinSignatoryFlow({ taskType, data, scenarios: matchingScenario })) {
|
|
255
255
|
return REQUIRED;
|
|
256
256
|
}
|
|
257
|
-
const enableNationalitySGHK =
|
|
257
|
+
const enableNationalitySGHK = isFeatureEnabled("EnableNationalitySGHK");
|
|
258
258
|
const rootLegalEntityCountry = rootLegalEntity?.organization?.registeredAddress.country;
|
|
259
259
|
if (enableNationalitySGHK && rootLegalEntityCountry && NATIONALITY_REQUIRED_FOR_COUNTRIES.includes(rootLegalEntityCountry)) {
|
|
260
260
|
return REQUIRED;
|
|
@@ -291,7 +291,7 @@ const individualRules = ({
|
|
|
291
291
|
return addressSchema.includes("address") ? "REQUIRED" : void 0;
|
|
292
292
|
},
|
|
293
293
|
otherAddressInfoIfRequiredForCountry: () => {
|
|
294
|
-
if (isJapanLocalizationEnabled(
|
|
294
|
+
if (isJapanLocalizationEnabled(isFeatureEnabled, country)) {
|
|
295
295
|
return "REQUIRED";
|
|
296
296
|
}
|
|
297
297
|
const addressSchema = getAddressSchemaForCountry(data?.additionalPersonalDetails?.country);
|
|
@@ -377,7 +377,7 @@ const individualRules = ({
|
|
|
377
377
|
},
|
|
378
378
|
japanSpecificField: () => {
|
|
379
379
|
const targetCountry = taskType === TaskTypes.DECISION_MAKER && rootLegalEntity?.organization?.registeredAddress.country || country;
|
|
380
|
-
if (isJapanLocalizationEnabled(
|
|
380
|
+
if (isJapanLocalizationEnabled(isFeatureEnabled, targetCountry)) {
|
|
381
381
|
return "REQUIRED";
|
|
382
382
|
}
|
|
383
383
|
}
|