@adyen/kyc-components 4.12.0 → 4.13.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/dist/AcceptTermsOfServiceComponent-Bdb6OG0V.js +652 -0
- package/dist/Accordion-gSHEDtlp.js +111 -0
- package/dist/AccountSetupRejected-MS5ucnkH.js +19 -0
- package/dist/AdaptiveWorkflow-D5FObJ-e.js +1561 -0
- package/dist/AdaptiveWorkflowComponent-g2i8ubmD.js +130 -0
- package/dist/Address-B1WQZxTA.js +557 -0
- package/dist/Alert-BYrDkvk9.js +170 -0
- package/dist/AnalyticsContext-CbM5V7Nw.js +75 -0
- package/dist/Avatar-CuGCWCs9.js +54 -0
- package/dist/BusinessFinancingDropin-Bxqli70j.js +1800 -0
- package/dist/BusinessFinancingPage-DlDZmgJ8.js +87 -0
- package/dist/BusinessTypeSelectionPage-D0jjyKgo.js +436 -0
- package/dist/Button-BxfzWsRl.js +189 -0
- package/dist/Card-BylPFvY4.js +71 -0
- package/dist/Checkbox-BRuXJ18x.js +55 -0
- package/dist/CompanyRegistrationNumberTypeSelector-BnoX2hCa.js +1038 -0
- package/dist/Confirm-BEZEArAy.js +76 -0
- package/dist/ConstitutionalDocument-B5MVwJbp.js +1121 -0
- package/dist/ContactDetails-63BkotMl.js +516 -0
- package/dist/ContextGuidance-BRGAWzeW.js +29 -0
- package/dist/CountryField-DhNTIfGL.js +38 -0
- package/dist/Currency-QVw0PSm6.js +191 -0
- package/dist/CustomerSupport-twU8Nkth.js +129 -0
- package/dist/DebugModal-DqBSxQZ6.js +454 -0
- package/dist/DecisionMakerDetails-B8s07F7D.js +493 -0
- package/dist/DecisionMakerDetailsPage-CAq5na-Z.js +103 -0
- package/dist/DecisionMakers-Bm-L-q92.js +583 -0
- package/dist/Dropzone-BbBVtqN9.js +236 -0
- package/dist/EmbeddedStatus-td-3A1DN.js +128 -0
- package/dist/EndStateLayout-CnhmrsxA.js +82 -0
- package/dist/EntityAssociation-BHvq_AwX.js +163 -0
- package/dist/ErrorPanel-CzX5ev6p.js +185 -0
- package/dist/Field-Vzlyifk5.js +155 -0
- package/dist/FormNavigation-B79CI_Kc.js +116 -0
- package/dist/Header-fY8HlUFH.js +93 -0
- package/dist/Image-BBLBIviv.js +33 -0
- package/dist/Individual.rules-BvJRuxgJ.js +294 -0
- package/dist/IndividualDropin-BdBMJkx4.js +4950 -0
- package/dist/InputDate--h7l0kcO.js +52 -0
- package/dist/InputText-BK_8YUd_.js +119 -0
- package/dist/Introduction-p7SxkPvq.js +325 -0
- package/dist/InvitedDecisionMakerComponent-C1gqGJsQ.js +412 -0
- package/dist/JpAddress-msyDs8qO.js +322 -0
- package/dist/LandingLayout-BK3kV0FL.js +76 -0
- package/dist/LegalCompanyNameField-CQUbvS77.js +108 -0
- package/dist/LegalRepresentativeDetailsPage-3kuEatCa.js +73 -0
- package/dist/Link-idX4eEXz.js +32 -0
- package/dist/ListItem-BzSnYlO1.js +70 -0
- package/dist/LoaderWrapper-Tr14IrmG.js +34 -0
- package/dist/MaskedInput-WaAdSNPN.js +715 -0
- package/dist/MaybeModal-BkoicAOk.js +24 -0
- package/dist/Modal-CMKjvMyV.js +109 -0
- package/dist/Name-DkBgo3cK.js +61 -0
- package/dist/NewSummary-Cf1CesDB.js +72 -0
- package/dist/PayoutDetailsDropinMultiForm-CFXh9XH3.js +4106 -0
- package/dist/PayoutDetailsPage-CfWROkJA.js +68 -0
- package/dist/RadioGroup-Bc8reZVM.js +84 -0
- package/dist/Review-GGx4T5lx.js +99 -0
- package/dist/RootBusinessDetailsPage-DONnHveK.js +69 -0
- package/dist/RootBusinessLinesPage-B-zkaI6w.js +1452 -0
- package/dist/RootIndividualDetailsPage-Bl622oSy.js +81 -0
- package/dist/Select-CRVpXZ1k.js +777 -0
- package/dist/SignPCIComponent-CPjxKwUt.js +368 -0
- package/dist/SingpassSelection-c3hLW3jo.js +156 -0
- package/dist/SoleProprietorshipPage-BqX-btX5.js +69 -0
- package/dist/SourceOfFundsPage-_sMwhidd.js +2775 -0
- package/dist/Summary-DESUnetK.js +226 -0
- package/dist/TaskListItem-9Kq5rfrA.js +164 -0
- package/dist/TaskVerificationStatus-F5lMp5Rx.js +118 -0
- package/dist/TaxInformationField-hjyqzys0.js +474 -0
- package/dist/TaxReportingDropin-Xjf5BXjR.js +476 -0
- package/dist/TextArea-CIgJgN16.js +80 -0
- package/dist/TileGroup-irJw9YNz.js +170 -0
- package/dist/ToastContext-D7fHw64P.js +13 -0
- package/dist/ToastContextProvider-CU6K9Sqo.js +103 -0
- package/dist/TrustDetailsPage-DDxllsNB.js +1105 -0
- package/dist/TrustMemberCompanyPage-B_fHFzDr.js +107 -0
- package/dist/TrustMemberIndividualPage-B5hPWglh.js +107 -0
- package/dist/TrustMemberRoleAndTypePage-LlBgvSwW.js +933 -0
- package/dist/TrustMembersOverview-BGzdiibd.js +451 -0
- package/dist/UnincorporatedPartnershipIndividualPage-Bfxq3XJj.js +78 -0
- package/dist/UnincorporatedPartnershipMemberCompanyPage-Bw-DLdQV.js +78 -0
- package/dist/UnincorporatedPartnershipMemberRoleAndTypePage-BbQB-s2g.js +271 -0
- package/dist/UnincorporatedPartnershipMembersOverview-B-djUG0K.js +159 -0
- package/dist/VerificationErrorAlert-D8Peag6l.js +38 -0
- package/dist/accountHolderUtils-mgP2-0Nn.js +44 -0
- package/dist/adyen-business-financing.js +84 -84
- package/dist/adyen-individual-configuration.js +87 -87
- package/dist/adyen-individual-status.js +35 -35
- package/dist/adyen-invited-decision-maker.js +3 -3
- package/dist/adyen-onboarding.js +129 -135
- package/dist/adyen-terms-of-service-management.js +4 -4
- package/dist/adyen-terms-of-service-status.js +58 -58
- package/dist/adyen-transfer-instrument-configuration.js +84 -84
- package/dist/adyen-transfer-instrument-management.js +109 -101
- package/dist/adyen-verification-status.js +35 -35
- package/dist/bafinUtils-DJ5gJYKz.js +96 -0
- package/dist/bg-BG-BUgREukJ.js +7 -0
- package/dist/bg-BG-CAC3TgzH.js +7 -0
- package/dist/bg-BG-DszNb4YW.js +7 -0
- package/dist/birthDateUtils-BUDlu8wE.js +82 -0
- package/dist/constants-Cuqk72uG.js +233 -0
- package/dist/countries-BLvJ0FJ4.js +41 -0
- package/dist/country-Cm0PPJDS.js +13 -0
- package/dist/cs-CZ-BCCbEB0j.js +7 -0
- package/dist/cs-CZ-DC3dWoGV.js +7 -0
- package/dist/cs-CZ-DtoIeWYx.js +7 -0
- package/dist/da-DK-BVAv2vUs.js +7 -0
- package/dist/da-DK-BbuiozUl.js +7 -0
- package/dist/da-DK-C0KVt06k.js +7 -0
- package/dist/de-DE-B8GqI1Sq.js +7 -0
- package/dist/de-DE-CEKqkGeP.js +7 -0
- package/dist/de-DE-uuUOPGHs.js +7 -0
- package/dist/decisionMaker-b5wJjUBN.js +146 -0
- package/dist/decisionMakerRoles-CCKWKoWd.js +46 -0
- package/dist/el-GR-D4Pmng8T.js +7 -0
- package/dist/el-GR-DtpUBNHl.js +7 -0
- package/dist/el-GR-WS8xbrFJ.js +7 -0
- package/dist/en-US-BOJswraw.js +7 -0
- package/dist/en-US-CN15rSvL.js +7 -0
- package/dist/en-US-DNQKfkN1.js +33 -0
- package/dist/en-US-ccX525iK.js +7 -0
- package/dist/entityAssociationUtil-D1ledZtc.js +59 -0
- package/dist/es-ES-B-x17o8d.js +7 -0
- package/dist/es-ES-BrTDtXtR.js +7 -0
- package/dist/es-ES-XWHjoMpE.js +7 -0
- package/dist/et-EE-BiA52MlJ.js +7 -0
- package/dist/et-EE-CweZxZJx.js +7 -0
- package/dist/et-EE-D5ztjKQA.js +7 -0
- package/dist/fi-FI-AQc_uafE.js +7 -0
- package/dist/fi-FI-BUUV58aZ.js +7 -0
- package/dist/fi-FI-BvjOb0Oi.js +7 -0
- package/dist/formUtils-C7vlzCV-.js +78 -0
- package/dist/formatCurrency-D-m2ri-x.js +23 -0
- package/dist/fr-FR-BuQwZ2oq.js +7 -0
- package/dist/fr-FR-CzKTntJm.js +7 -0
- package/dist/fr-FR-e7lKrFcK.js +7 -0
- package/dist/getName-BtgdCWSR.js +35 -0
- package/dist/getProblemsForEntity-B9GOFyRX.js +16 -0
- package/dist/globalStore-BCeQ8cDF.js +419 -0
- package/dist/hr-HR-CN0us45A.js +7 -0
- package/dist/hr-HR-DVJaypbL.js +7 -0
- package/dist/hr-HR-WsApmYld.js +7 -0
- package/dist/http-D5tz1jGD.js +149 -0
- package/dist/hu-HU-Bdjd0HM0.js +7 -0
- package/dist/hu-HU-rbT-Gfxm.js +7 -0
- package/dist/hu-HU-xO5SwtyK.js +7 -0
- package/dist/invalidateRootLegalEntity-D7_UqU5H.js +45 -0
- package/dist/isEmpty-Bi8OJ7I4.js +14 -0
- package/dist/isEmptyEntity-CCwgjz_g.js +44 -0
- package/dist/it-IT-DiJG8CVH.js +7 -0
- package/dist/it-IT-QMmUeFIw.js +7 -0
- package/dist/it-IT-wx2DTjIq.js +7 -0
- package/dist/ja-JP-BchEmvKT.js +7 -0
- package/dist/ja-JP-CYNEiARm.js +7 -0
- package/dist/ja-JP-K0GtGc1m.js +7 -0
- package/dist/japanSupportUtils-DqvGrGbm.js +11 -0
- package/dist/localizeDateString-Bni_Kn5k.js +35 -0
- package/dist/lt-LT-BwsC_PRy.js +7 -0
- package/dist/lt-LT-CfUZy3Nu.js +7 -0
- package/dist/lt-LT-Csda84LY.js +7 -0
- package/dist/lv-LV-B_twW5aF.js +7 -0
- package/dist/lv-LV-DeE0FbCk.js +7 -0
- package/dist/lv-LV-M8ADb0dX.js +7 -0
- package/dist/mapExistingFile-AUOevYJs.js +135 -0
- package/dist/mapJpAddressSchemaToAddressLocalizations-DFgQADg8.js +61 -0
- package/dist/mapLegalEntityToIndividualSchema-CNdXP4KZ.js +207 -0
- package/dist/mapTransferInstrumentToPayoutAccount-DaAa5pOZ.js +44 -0
- package/dist/nl-NL-BPZ4ggwt.js +7 -0
- package/dist/nl-NL-Ch6Gx-ay.js +7 -0
- package/dist/nl-NL-lkzdYqOX.js +7 -0
- package/dist/no-NO-CSn5Ou1S.js +7 -0
- package/dist/no-NO-DEmXDlJQ.js +7 -0
- package/dist/no-NO-DyJlM9HH.js +7 -0
- package/dist/omitObscuredFieldsIfUnchanged-Bl-KmvQB.js +20 -0
- package/dist/pl-PL-C8O5EIza.js +7 -0
- package/dist/pl-PL-D9oajkyF.js +7 -0
- package/dist/pl-PL-DQ3obGGK.js +7 -0
- package/dist/process-field-configurations-D-i--Py4.js +279 -0
- package/dist/processCapabilities-C3-DrzSD.js +869 -0
- package/dist/pt-BR-CHDCegc8.js +7 -0
- package/dist/pt-BR-D9hPCc0c.js +7 -0
- package/dist/pt-BR-DyTpIjam.js +7 -0
- package/dist/pt-PT-B1k39MuE.js +7 -0
- package/dist/pt-PT-GnCWUuu_.js +7 -0
- package/dist/pt-PT-ne6PkZM_.js +7 -0
- package/dist/resolveEnvironment-VjuZ5n9n.js +985 -0
- package/dist/ro-RO-BvYWHJVi.js +7 -0
- package/dist/ro-RO-DGzJvIXf.js +7 -0
- package/dist/ro-RO-rwkWejS6.js +7 -0
- package/dist/roleMetadata-bE5AIBEY.js +56 -0
- package/dist/sk-SK-BQgZ5CQA.js +7 -0
- package/dist/sk-SK-BR0l7uzo.js +7 -0
- package/dist/sk-SK-C1lm7CTj.js +7 -0
- package/dist/sl-SI-BZ5Dm_pA.js +7 -0
- package/dist/sl-SI-D5wg7xsZ.js +7 -0
- package/dist/sl-SI-DHn8rJ33.js +7 -0
- package/dist/style.css +85 -231
- package/dist/styles-DfQtSmqv.js +6678 -0
- package/dist/sv-SE-BfLV5o3E.js +7 -0
- package/dist/sv-SE-CloWnXU5.js +7 -0
- package/dist/sv-SE-CzO_XtYz.js +7 -0
- package/dist/translation-BHUZ_WP7.js +915 -0
- package/dist/trustUtil-BBkbuta4.js +99 -0
- package/dist/types/adaptiveWorkflow/component-registry.d.ts +9 -1
- package/dist/types/adaptiveWorkflow/components/Fields/AcceptTermsOfServiceWorkflow/AcceptTermsOfServiceWorkflow.d.ts +1 -1
- package/dist/types/adaptiveWorkflow/components/SubTask/SubTask.d.ts +7 -0
- package/dist/types/adaptiveWorkflow/components/SubTask/contextMap.d.ts +2 -0
- package/dist/types/adaptiveWorkflow/components/TaskItems/UboTaskItem/UboTaskItem.d.ts +16 -0
- package/dist/types/adaptiveWorkflow/components/TaskParser/TaskParser.d.ts +7 -0
- package/dist/types/adaptiveWorkflow/components/types.d.ts +14 -3
- package/dist/types/api/companyDataSet/companyDataset.types.d.ts +6 -1
- package/dist/types/components/Business/forms/AdditionalInformation/AdditionalInformation.d.ts +1 -1
- package/dist/types/components/Business/forms/AdditionalInformation/types.d.ts +4 -3
- package/dist/types/components/Business/forms/BasicInformation/BasicInformation.d.ts +1 -1
- package/dist/types/components/Business/forms/BasicInformation/types.d.ts +4 -3
- package/dist/types/components/Business/forms/BusinessDetails/BusinessDetailsMultiform.d.ts +4 -9
- package/dist/types/components/Business/forms/BusinessSelection/BusinessSelection.d.ts +2 -12
- package/dist/types/components/Business/forms/BusinessSelection/types.d.ts +5 -0
- package/dist/types/components/Business/forms/CompanyStructure/CompanyStructure.d.ts +2 -4
- package/dist/types/components/Business/forms/CompanyStructure/types.d.ts +5 -0
- package/dist/types/components/Business/forms/FinancialInformation/FinancialInformation.d.ts +1 -1
- package/dist/types/components/Business/forms/FinancialInformation/types.d.ts +5 -3
- package/dist/types/components/Business/forms/rules.d.ts +4 -2
- package/dist/types/components/Business/tasks/BusinessDetailsDropin/businessDetailsStore.d.ts +2 -1
- package/dist/types/components/BusinessLines/forms/IndustryCodesForm/IndustryCodesForm.d.ts +2 -2
- package/dist/types/components/BusinessLines/forms/IndustryCodesForm/types.d.ts +2 -0
- package/dist/types/components/BusinessLines/forms/SalesChannelsForm/SalesChannelsForm.d.ts +2 -2
- package/dist/types/components/BusinessLines/forms/SalesChannelsForm/types.d.ts +4 -0
- package/dist/types/components/BusinessLines/forms/SctaForm/SctaForm.d.ts +2 -2
- package/dist/types/components/BusinessLines/forms/SctaForm/types.d.ts +2 -0
- package/dist/types/components/BusinessLines/tasks/types.d.ts +0 -5
- package/dist/types/components/EFP/tasks/SourceOfFundsDropin/SourceOfFundsDropin.d.ts +1 -1
- package/dist/types/components/EFP/tasks/TaxReportingDropin/TaxReportingDropin.d.ts +1 -1
- package/dist/types/components/EmbeddedDropins/ManageTransferInstrumentComponent/ManageTransferInstrumentComponent.d.ts +0 -1
- package/dist/types/components/EmbeddedDropins/ManageTransferInstrumentComponent/ManageTransferInstrumentOverview/ManageTransferInstrumentOverview.d.ts +0 -1
- package/dist/types/components/Shared/EntityGuidanceStatus/EntityGuidanceStatus.d.ts +0 -1
- package/dist/types/components/Shared/Introduction/Introduction.d.ts +0 -1
- package/dist/types/components/Shared/fields/DBANameField/DBANameField.d.ts +0 -1
- package/dist/types/components/ui/atoms/Radio/Radio.d.ts +1 -1
- package/dist/types/components/ui/atoms/RadioWithLabel/RadioWithLabel.d.ts +1 -1
- package/dist/types/components/ui/atoms/Typography/Typography.d.ts +0 -1
- package/dist/types/components/ui/molecules/AdaptiveProgressBar/AdaptiveProgressBar.d.ts +11 -0
- package/dist/types/components/ui/molecules/Dropzone/DropzoneFile.d.ts +0 -1
- package/dist/types/context/ToggleContext/ToggleContextProvider.d.ts +1 -1
- package/dist/types/context/ToggleContext/types.d.ts +1 -5
- package/dist/types/core/services/utils.d.ts +2 -2
- package/dist/types/embeds/baseEmbedProps.d.ts +2 -2
- package/dist/types-BEc7vus9.js +58 -0
- package/dist/types-CBQZm0Fk.js +150 -0
- package/dist/types-CEJyC_Mj.js +66 -0
- package/dist/types-DyF8eymA.js +19 -0
- package/dist/useAccountHolder-aoHH1XJq.js +102 -0
- package/dist/useAllowedCountries-Dea38KPz.js +74 -0
- package/dist/useAnalyticsContext-pNSIB8AZ.js +12 -0
- package/dist/useAssociatedLegalEntity-BOtek2pM.js +35 -0
- package/dist/useBusinessDetailsData-BDVt7W56.js +4636 -0
- package/dist/useBusinessLines-BE_hXjkY.js +27 -0
- package/dist/useCanSeeIntroduction-C7a4t7HJ.js +39 -0
- package/dist/useCapabilities-Bn6IcCNt.js +12 -0
- package/dist/useCreateLegalEntity-DWNHPjAr.js +24 -0
- package/dist/useDataMissingRemediations-Dc8p_hCP.js +39 -0
- package/dist/useDataset-VrL_8cq1.js +96 -0
- package/dist/useDeleteTransferInstrument-Bf3I-lk0.js +31 -0
- package/dist/useForm-CbSEaCrl.js +502 -0
- package/dist/useFormContext-DGW15-id.js +504 -0
- package/dist/useLegalEntity-k2lxoMzW.js +48 -0
- package/dist/useMultiForm-BZBzYZ-3.js +755 -0
- package/dist/useNavigate-b9V7fbV8.js +269 -0
- package/dist/useOnboardingStatus-CHBhX5te.js +23 -0
- package/dist/usePciQuestionnaireList-Y87h-w4C.js +26 -0
- package/dist/useSalesChannels-f8ZEd90X.js +47 -0
- package/dist/useScenarios-D2TFpeEU.js +55 -0
- package/dist/useTaskLandedEvent-BdO8qSBg.js +26 -0
- package/dist/useTaskStatus-DPyTD_Ko.js +23 -0
- package/dist/useTermsOfServiceStatus-C04Xyc0M.js +39 -0
- package/dist/useToastContext-BIwgSCxA.js +12 -0
- package/dist/useTrustMembers-DYKQfH8R.js +152 -0
- package/dist/useUnincorporatedPartnershipMembers-CtuG_S-a.js +70 -0
- package/dist/useUpdateBusinessLines-CaT_-l9v.js +68 -0
- package/dist/useUpdateLegalEntity-CfJs-A1X.js +29 -0
- package/dist/utils-Bx8jBrij.js +46 -0
- package/dist/utils-C1DzW0Hz.js +207 -0
- package/dist/utils-DQEnWBYq.js +2482 -0
- package/dist/utils-TlcnGMeG.js +188 -0
- package/dist/validate-CaRbtwlX.js +411 -0
- package/dist/validate-J6U_ulFs.js +397 -0
- package/dist/validationError-CD5jY1NM.js +68 -0
- package/dist/validationResult-OLfDDPfY.js +77 -0
- package/package.json +6 -2
- package/dist/AcceptTermsOfServiceComponent-BIYgOoqa.js +0 -652
- package/dist/Accordion-DJ1F7dI4.js +0 -111
- package/dist/AccountSetupRejected-_VNh1Xj4.js +0 -19
- package/dist/AdaptiveWorkflow-D3WOUCtY.js +0 -1309
- package/dist/AdaptiveWorkflowComponent-Bpm3fL_H.js +0 -130
- package/dist/Address-CHpJLi-Q.js +0 -557
- package/dist/Alert-CjZYipjN.js +0 -170
- package/dist/AnalyticsContext-C0HNdPss.js +0 -74
- package/dist/Avatar-4gshS6xA.js +0 -54
- package/dist/BusinessFinancingDropin-VodFOFP9.js +0 -1800
- package/dist/BusinessFinancingPage-CRPspsfV.js +0 -87
- package/dist/BusinessTypeSelectionPage-D-Mbk28l.js +0 -436
- package/dist/Button-BDEdGXnd.js +0 -189
- package/dist/Card-DXdUqwyQ.js +0 -70
- package/dist/Checkbox-BJJIXNHL.js +0 -55
- package/dist/CompanyRegistrationNumberTypeSelector-CeRtLSxc.js +0 -1038
- package/dist/Confirm-BqhBxIWm.js +0 -76
- package/dist/ConstitutionalDocument-Jqgyahcj.js +0 -1121
- package/dist/ContactDetails-C3MS4diz.js +0 -288
- package/dist/ContextGuidance-CxOv00_a.js +0 -29
- package/dist/CountryField-B-JxQ6z9.js +0 -38
- package/dist/Currency-BbWaBY8A.js +0 -191
- package/dist/CustomerSupport-Cq2yBN4K.js +0 -129
- package/dist/DebugModal-CuioSqKQ.js +0 -454
- package/dist/DecisionMakerDetails-DElp9pZu.js +0 -492
- package/dist/DecisionMakerDetailsPage-BsKqMepM.js +0 -103
- package/dist/DecisionMakers-c0L12DVq.js +0 -583
- package/dist/Dropzone-D8gz-OLM.js +0 -236
- package/dist/EmbeddedStatus-Ch7vvcve.js +0 -128
- package/dist/EndStateLayout-DxdIVWL3.js +0 -84
- package/dist/EntityAssociation-inLOmBfG.js +0 -163
- package/dist/ErrorPanel-5g1eTEVD.js +0 -185
- package/dist/Field-BEqknhTe.js +0 -155
- package/dist/FormNavigation-Btkou5O7.js +0 -116
- package/dist/Header-B_MIsVov.js +0 -93
- package/dist/Image-BPAtdM5Y.js +0 -33
- package/dist/Individual.rules-BaOxBQUI.js +0 -296
- package/dist/IndividualDropin-Cx16d1Oo.js +0 -4951
- package/dist/InputDate-DsEAx7kx.js +0 -52
- package/dist/InputText-CadVntiC.js +0 -119
- package/dist/Introduction-DtL0bA4R.js +0 -343
- package/dist/InvitedDecisionMakerComponent-CfWqrjQk.js +0 -412
- package/dist/JpAddress-CL6tkvUL.js +0 -322
- package/dist/LandingLayout-C9eryD6V.js +0 -76
- package/dist/LegalCompanyNameField-Dgn4iOVN.js +0 -108
- package/dist/LegalRepresentativeDetailsPage-DhEKvu-y.js +0 -73
- package/dist/Link-BoduD1oh.js +0 -32
- package/dist/ListItem-ByYbZdGG.js +0 -70
- package/dist/LoaderWrapper-CRf5MAK1.js +0 -34
- package/dist/MaskedInput-uN8G9HRq.js +0 -715
- package/dist/MaybeModal-DkRlF_Mg.js +0 -24
- package/dist/Modal-DOC6JgPI.js +0 -115
- package/dist/Name-VckG8ggI.js +0 -61
- package/dist/NewSummary-BQHtEgHV.js +0 -72
- package/dist/PayoutDetailsDropinMultiForm-Bm-PbnDN.js +0 -4112
- package/dist/PayoutDetailsPage-t9H1HAV3.js +0 -68
- package/dist/RadioGroup-XuCtbRrH.js +0 -84
- package/dist/Review-BjMmCI8_.js +0 -99
- package/dist/RootBusinessDetailsPage-CLAEGMGe.js +0 -69
- package/dist/RootBusinessLinesPage-vX2RdR1q.js +0 -1452
- package/dist/RootIndividualDetailsPage-Cs-601aX.js +0 -81
- package/dist/Select-CMFHti4N.js +0 -777
- package/dist/SignPCIComponent-C91NFrWs.js +0 -368
- package/dist/SingpassSelection-Bksn6t52.js +0 -156
- package/dist/SoleProprietorshipPage-itbv_RaA.js +0 -69
- package/dist/SourceOfFundsPage-GTMmyUv0.js +0 -1992
- package/dist/Summary-DZq5UKMv.js +0 -226
- package/dist/TaskListItem-BM3oukq_.js +0 -164
- package/dist/TaskVerificationStatus-jBBIJN_A.js +0 -118
- package/dist/TaxInformationField-CJyqFS0F.js +0 -474
- package/dist/TaxReportingDropin-BMYbiHlX.js +0 -478
- package/dist/TextArea-qzKHJyZG.js +0 -80
- package/dist/TileGroup-COge4hw4.js +0 -170
- package/dist/ToastContext-CeB1t7kx.js +0 -13
- package/dist/ToastContextProvider-DmZQLSHH.js +0 -103
- package/dist/TrustDetailsPage-ByWKgzze.js +0 -1105
- package/dist/TrustMemberCompanyPage-Dsy0hA-v.js +0 -107
- package/dist/TrustMemberIndividualPage-BiwagdFl.js +0 -107
- package/dist/TrustMemberRoleAndTypePage-B6CAPw_I.js +0 -950
- package/dist/TrustMembersOverview-sPSvGI74.js +0 -433
- package/dist/UnincorporatedPartnershipIndividualPage-BNrgepSe.js +0 -78
- package/dist/UnincorporatedPartnershipMemberCompanyPage-DDUZRNLG.js +0 -78
- package/dist/UnincorporatedPartnershipMemberRoleAndTypePage-DvhPYL9l.js +0 -276
- package/dist/UnincorporatedPartnershipMembersOverview-MeqDhQz7.js +0 -159
- package/dist/VerificationErrorAlert-x74LQ1wJ.js +0 -38
- package/dist/accountHolderUtils-AnlUAp6W.js +0 -44
- package/dist/bafinUtils-AZHgY8qT.js +0 -96
- package/dist/bg-BG-C12I_ehJ.js +0 -7
- package/dist/bg-BG-CS6SQDE2.js +0 -7
- package/dist/bg-BG-NwL6SZRu.js +0 -7
- package/dist/birthDateUtils-CMLWoaT8.js +0 -82
- package/dist/constants-BK5Bx2Pg.js +0 -233
- package/dist/countries-BEUFeNU1.js +0 -41
- package/dist/country-C5KY5i2U.js +0 -13
- package/dist/cs-CZ-BZkot6xs.js +0 -7
- package/dist/cs-CZ-C-nfIYKA.js +0 -7
- package/dist/cs-CZ-TiWySd9u.js +0 -7
- package/dist/da-DK-Bc6oX5Ct.js +0 -7
- package/dist/da-DK-DO88W3qD.js +0 -7
- package/dist/da-DK-DtPE4OIu.js +0 -7
- package/dist/de-DE-CnB43wjo.js +0 -7
- package/dist/de-DE-JZBqb8ce.js +0 -7
- package/dist/de-DE-YX6rtv17.js +0 -7
- package/dist/decisionMaker-BKR5Dau-.js +0 -146
- package/dist/decisionMakerRoles-wy4KpDQg.js +0 -46
- package/dist/el-GR-Be15a5W8.js +0 -7
- package/dist/el-GR-C8jFvyDg.js +0 -7
- package/dist/el-GR-DJJbbbY3.js +0 -7
- package/dist/en-US-AkapGgCu.js +0 -7
- package/dist/en-US-B3wlE1pH.js +0 -7
- package/dist/en-US-BDZwHN0Y.js +0 -7
- package/dist/en-US-Cep-b_Ek.js +0 -28
- package/dist/entityAssociationUtil-C0gX4Ewv.js +0 -59
- package/dist/es-ES-D1BkDJkz.js +0 -7
- package/dist/es-ES-FQbC3B0S.js +0 -7
- package/dist/es-ES-mdSA-CIT.js +0 -7
- package/dist/et-EE-B4ZMHksf.js +0 -7
- package/dist/et-EE-BZ26f0MN.js +0 -7
- package/dist/et-EE-DrQLDWH2.js +0 -7
- package/dist/fi-FI-CeJPt0gg.js +0 -7
- package/dist/fi-FI-CqM2eaKi.js +0 -7
- package/dist/fi-FI-koFpyMaq.js +0 -7
- package/dist/formUtils-DERTAXyh.js +0 -78
- package/dist/fr-FR-B0eVVc8V.js +0 -7
- package/dist/fr-FR-CqvZpq5B.js +0 -7
- package/dist/fr-FR-lfoSPY0e.js +0 -7
- package/dist/getName-ODLD6UPV.js +0 -35
- package/dist/getProblemsForEntity-COcJt47f.js +0 -16
- package/dist/globalStore-D0yv1fc_.js +0 -419
- package/dist/hr-HR-CMgsuYh2.js +0 -7
- package/dist/hr-HR-C_7O4gxx.js +0 -7
- package/dist/hr-HR-D_X-RNUl.js +0 -7
- package/dist/http-CHTzpXCd.js +0 -149
- package/dist/hu-HU-3FpAw9b1.js +0 -7
- package/dist/hu-HU-C0Y9wmOY.js +0 -7
- package/dist/hu-HU-DORWpwoE.js +0 -7
- package/dist/invalidateRootLegalEntity-BHyct4ev.js +0 -45
- package/dist/isEmpty-Cf1sv6Wg.js +0 -14
- package/dist/isEmptyEntity-BBazi0Go.js +0 -44
- package/dist/it-IT-BgULENxX.js +0 -7
- package/dist/it-IT-CW0ZFuCZ.js +0 -7
- package/dist/it-IT-Cm3ujfY_.js +0 -7
- package/dist/ja-JP-BT70_5Cd.js +0 -7
- package/dist/ja-JP-BbXt47jb.js +0 -7
- package/dist/ja-JP-BllN9kcD.js +0 -7
- package/dist/japanSupportUtils-BjabsTWv.js +0 -11
- package/dist/localizeDateString-B7EYBFnd.js +0 -35
- package/dist/lt-LT-CDdoDT7A.js +0 -7
- package/dist/lt-LT-CKltvr9j.js +0 -7
- package/dist/lt-LT-DZvEoBgI.js +0 -7
- package/dist/lv-LV-DPQ4Tm3o.js +0 -7
- package/dist/lv-LV-DpfhFur0.js +0 -7
- package/dist/lv-LV-DwsdNJrk.js +0 -7
- package/dist/mapExistingFile-BeFexL6Z.js +0 -135
- package/dist/mapJpAddressSchemaToAddressLocalizations-CTGQ1JHC.js +0 -61
- package/dist/mapLegalEntityToIndividualSchema-BMvlasSJ.js +0 -207
- package/dist/mapTransferInstrumentToPayoutAccount-DUrX63iT.js +0 -44
- package/dist/nl-NL-B0uwKjKV.js +0 -7
- package/dist/nl-NL-Br1QBepE.js +0 -7
- package/dist/nl-NL-CxlTSECX.js +0 -7
- package/dist/no-NO-BSrcMnDk.js +0 -7
- package/dist/no-NO-BlsDONGK.js +0 -7
- package/dist/no-NO-FtH9gIpv.js +0 -7
- package/dist/omitObscuredFieldsIfUnchanged-BW0ZhOk7.js +0 -20
- package/dist/phonePrefixes-D5cQh9fv.js +0 -252
- package/dist/pl-PL-CK40GB3R.js +0 -7
- package/dist/pl-PL-Ct3cI8Sk.js +0 -7
- package/dist/pl-PL-CxlgXMRg.js +0 -7
- package/dist/process-field-configurations-B8wJu-eM.js +0 -279
- package/dist/processCapabilities-CDSEJpB8.js +0 -869
- package/dist/pt-BR-CqDjOIYt.js +0 -7
- package/dist/pt-BR-kU7AfzPy.js +0 -7
- package/dist/pt-BR-zUBVM8_b.js +0 -7
- package/dist/pt-PT-CxnB9Jff.js +0 -7
- package/dist/pt-PT-Dl_yfKGH.js +0 -7
- package/dist/pt-PT-hj7CUska.js +0 -7
- package/dist/resolveEnvironment-BmgzZ_BL.js +0 -983
- package/dist/ro-RO-CmHNsQpo.js +0 -7
- package/dist/ro-RO-Cuw1RmFc.js +0 -7
- package/dist/ro-RO-D9YjxrDi.js +0 -7
- package/dist/roleMetadata-Dt8-oMGP.js +0 -56
- package/dist/sk-SK-1i0L4zIs.js +0 -7
- package/dist/sk-SK-CQ1N3c8X.js +0 -7
- package/dist/sk-SK-CtsgM8bj.js +0 -7
- package/dist/sl-SI-B8-rZ169.js +0 -7
- package/dist/sl-SI-D3zK3MPP.js +0 -7
- package/dist/sl-SI-DywGyzEa.js +0 -7
- package/dist/styles-BKzp-1_V.js +0 -6824
- package/dist/sv-SE-BN0dUpwI.js +0 -7
- package/dist/sv-SE-CVRa-6Y0.js +0 -7
- package/dist/sv-SE-guJk9E1n.js +0 -7
- package/dist/translation-Br5wIPO-.js +0 -854
- package/dist/trustUtil-CVipffas.js +0 -99
- package/dist/types/components/Business/forms/forms.types.d.ts +0 -11
- package/dist/types/components/ui/atoms/StepProgressIndicator/StepProgressIndicator.d.ts +0 -19
- package/dist/types-BvdB7N_Z.js +0 -19
- package/dist/types-DjplYXLf.js +0 -58
- package/dist/types-LOiahAxg.js +0 -154
- package/dist/types-ewJwhKUi.js +0 -66
- package/dist/useAccountHolder-BUQwFdWW.js +0 -102
- package/dist/useAllowedCountries-BIhbvxWx.js +0 -74
- package/dist/useAnalyticsContext-DfTXpZbA.js +0 -12
- package/dist/useAssociatedLegalEntity-CYu0lsaE.js +0 -35
- package/dist/useBusinessDetailsData-B6r90q4T.js +0 -4612
- package/dist/useBusinessLines-BJV9biUj.js +0 -27
- package/dist/useCanSeeIntroduction-Dj1tjCk3.js +0 -39
- package/dist/useCapabilities-DN0V0pML.js +0 -12
- package/dist/useCreateLegalEntity-C149Z7Xu.js +0 -24
- package/dist/useDataMissingRemediations-Ddj2bl69.js +0 -39
- package/dist/useDataset-BRZZoPVn.js +0 -96
- package/dist/useDeleteTransferInstrument-CZM3f7yq.js +0 -31
- package/dist/useForm-DzG9tJAE.js +0 -502
- package/dist/useFormContext-Cu4dKSCy.js +0 -504
- package/dist/useLegalEntity-Dm6g0wmt.js +0 -48
- package/dist/useMultiForm-tpVMuqHM.js +0 -755
- package/dist/useNavigate-GmEmf-To.js +0 -269
- package/dist/useOnboardingStatus-CdLObhIM.js +0 -23
- package/dist/usePciQuestionnaireList-OjYY3MK9.js +0 -26
- package/dist/useSalesChannels-BDg8_NCC.js +0 -47
- package/dist/useScenarios-Bb-EhIep.js +0 -55
- package/dist/useTaskLandedEvent-DCdJo64z.js +0 -26
- package/dist/useTaskStatus-DzJWcN_l.js +0 -23
- package/dist/useTermsOfServiceStatus-Dh4huPkR.js +0 -39
- package/dist/useToastContext-CK7UoZ5Z.js +0 -12
- package/dist/useTrustMembers-BP6ygpU4.js +0 -152
- package/dist/useUnincorporatedPartnershipMembers-D7U6aM_k.js +0 -70
- package/dist/useUpdateBusinessLines-BUFe2lBW.js +0 -68
- package/dist/useUpdateLegalEntity-CUs6TYPF.js +0 -29
- package/dist/utils-CXdEwKOC.js +0 -46
- package/dist/utils-Cj9-IRaT.js +0 -188
- package/dist/utils-CkQJVYhR.js +0 -2472
- package/dist/utils-DLDyhf2J.js +0 -207
- package/dist/utils-eDM77TZ4.js +0 -805
- package/dist/validate-BQEVyhkI.js +0 -411
- package/dist/validate-DlG5LXuM.js +0 -381
- package/dist/validationError-Dr0g0lGN.js +0 -68
- package/dist/validationResult-BC9WLYOC.js +0 -77
- /package/dist/{4-people-Dt-FR2z_.js → 4-people-UD6qivNv.js} +0 -0
- /package/dist/{AD-5Egi3flE.js → AD-Dz8oe6Pg.js} +0 -0
- /package/dist/{AE-DJ-lRyPg.js → AE-CTdU1tzb.js} +0 -0
- /package/dist/{AI-ZfbxJFtE.js → AI-tjrpVbOw.js} +0 -0
- /package/dist/{AL-UBVZZlDX.js → AL-DvyI05UB.js} +0 -0
- /package/dist/{AR-B9C4Nibz.js → AR-DI6rdPa-.js} +0 -0
- /package/dist/{AS-CFb876zC.js → AS-ByXIuSCx.js} +0 -0
- /package/dist/{AT-CJDibmrN.js → AT-CutjdISu.js} +0 -0
- /package/dist/{AT-C8MN2Fns.js → AT-CvSbaCoE.js} +0 -0
- /package/dist/{AT-Do46gW4G.js → AT-DYSevBIw.js} +0 -0
- /package/dist/{AT-DsogulXO.js → AT-Dt3ZU8Yh.js} +0 -0
- /package/dist/{AU-DfV_PeBe.js → AU-C6u3aod7.js} +0 -0
- /package/dist/{AU-CDh6E7PE.js → AU-CLU0Xn_D.js} +0 -0
- /package/dist/{AU--MSKgcDY.js → AU-DzJ7QlNR.js} +0 -0
- /package/dist/{AU-DNxKMzJs.js → AU-EWPyqdHL.js} +0 -0
- /package/dist/{AX-DxAmGTy-.js → AX-DJ84WiiY.js} +0 -0
- /package/dist/{AZ-DRkABvzg.js → AZ-o_CDsMs4.js} +0 -0
- /package/dist/{BA-xlw8xj7W.js → BA-DL2O-nPB.js} +0 -0
- /package/dist/{BE-yocZ_S-V.js → BE-7F1ZOUtb.js} +0 -0
- /package/dist/{BE-BGioJIMA.js → BE-CT0bdDbu.js} +0 -0
- /package/dist/{BE-BQ4olBdk.js → BE-CyRTa5vY.js} +0 -0
- /package/dist/{BE-8eQ7Am1Y.js → BE-DgU3CTNg.js} +0 -0
- /package/dist/{BG-AfIdXJGJ.js → BG-B7VMgZNt.js} +0 -0
- /package/dist/{BH-CKPBbT8v.js → BH-Bot1MlCL.js} +0 -0
- /package/dist/{BM-DMmpYJ5S.js → BM-CfbbOZEU.js} +0 -0
- /package/dist/{BR-D2pNPrYB.js → BR-BaEKrqwp.js} +0 -0
- /package/dist/{BR-B8NzP1QV.js → BR-BikIex5m.js} +0 -0
- /package/dist/{BR-Iin-FtVm.js → BR-DrGkuPBg.js} +0 -0
- /package/dist/{BR-CmwW2wlc.js → BR-PBodf94A.js} +0 -0
- /package/dist/{BS-h2g8V4eH.js → BS-CR7QZvMY.js} +0 -0
- /package/dist/{BV-Br568icW.js → BV-pdJ1HYkg.js} +0 -0
- /package/dist/{BY-DNb6l2Rg.js → BY-RUR9XmBt.js} +0 -0
- /package/dist/{CA-DJVSS-DB.js → CA-6iRpP8zm.js} +0 -0
- /package/dist/{CA-DBQywpjY.js → CA-BM1GlX51.js} +0 -0
- /package/dist/{CA-Cc0GuXLd.js → CA-Bilo42jc.js} +0 -0
- /package/dist/{CA-BT05x8jm.js → CA-CgOysQQa.js} +0 -0
- /package/dist/{CH-C9Z3X6np.js → CH-BZ2dJJcd.js} +0 -0
- /package/dist/{CH-Bd1miMrE.js → CH-CmSkzRbO.js} +0 -0
- /package/dist/{CH-BL-4faPY.js → CH-HrO9afDv.js} +0 -0
- /package/dist/{CH-DFD2JLw3.js → CH-gKI7wttp.js} +0 -0
- /package/dist/{CN-5HinUnnB.js → CN-BUtZk2Mu.js} +0 -0
- /package/dist/{CR-PaLZQtHA.js → CR-CnpHHfms.js} +0 -0
- /package/dist/{CY-B85njNYI.js → CY-Ge_L3SKC.js} +0 -0
- /package/dist/{CZ-Dxmb6KsV.js → CZ-B8b5P2Or.js} +0 -0
- /package/dist/{CZ-BKdY5FmV.js → CZ-C1HmDbqn.js} +0 -0
- /package/dist/{CZ-4dIb_N3l.js → CZ-Cxwo_jP6.js} +0 -0
- /package/dist/{CZ-BbtlKoCl.js → CZ-I8UM9ti_.js} +0 -0
- /package/dist/{ContractViewer-BieoFdY1.js → ContractViewer-B8CspWV4.js} +0 -0
- /package/dist/{DE-DCHis7y4.js → DE-C2MEdoRW.js} +0 -0
- /package/dist/{DE-DQc4ncaM.js → DE-CSMMxMuZ.js} +0 -0
- /package/dist/{DE--Q5XezyA.js → DE-HSEDrUfG.js} +0 -0
- /package/dist/{DE-DmEk0oIa.js → DE-pQVkh64s.js} +0 -0
- /package/dist/{DK-DAzVnb1J.js → DK-BCcPGFzQ.js} +0 -0
- /package/dist/{DK-CdG4hfv7.js → DK-TyxXs-DV.js} +0 -0
- /package/dist/{DK-Bt_PCcFy.js → DK-dsRhTFow.js} +0 -0
- /package/dist/{DK-BjD2emK5.js → DK-mVm8rtJr.js} +0 -0
- /package/dist/{DO-BF7Pa_tN.js → DO-B84eOniD.js} +0 -0
- /package/dist/{DetailViewLayout-H4b1E5Ih.js → DetailViewLayout-Be6cqBDx.js} +0 -0
- /package/dist/{Divider-DHTBXv3p.js → Divider-BndbWx4f.js} +0 -0
- /package/dist/{EC-D6uEW2wn.js → EC-BAzODm77.js} +0 -0
- /package/dist/{EE-W5m__hus.js → EE-D2n6E72J.js} +0 -0
- /package/dist/{ES-BwwPYP5y.js → ES-BI7auc_D.js} +0 -0
- /package/dist/{ES-_cqCzBUa.js → ES-CsmTJRIi.js} +0 -0
- /package/dist/{ES-BdmgiBzc.js → ES-D4WzOTek.js} +0 -0
- /package/dist/{ES-DjYy5Dao.js → ES-DnRoTFNh.js} +0 -0
- /package/dist/{FI-5ySk5gAz.js → FI-CZ6ep3W_.js} +0 -0
- /package/dist/{FI-Z0tGRjwl.js → FI-DJZScc7l.js} +0 -0
- /package/dist/{FI-VPvgt4LP.js → FI-DhWyH1DT.js} +0 -0
- /package/dist/{FI-DwaCO8nT.js → FI-YOhI9TrO.js} +0 -0
- /package/dist/{FJ-CBPM7BcM.js → FJ-BcqfFVGi.js} +0 -0
- /package/dist/{FO-CSvRPbA1.js → FO-BuQb8zK_.js} +0 -0
- /package/dist/{FR-B876n3-B.js → FR-CWb0_Fcq.js} +0 -0
- /package/dist/{FR-RdDRKklk.js → FR-DYfYAn5S.js} +0 -0
- /package/dist/{FR-bMNYTLCL.js → FR-EX-aYUJ3.js} +0 -0
- /package/dist/{FR-CBB06Fnq.js → FR-SxebWfwR.js} +0 -0
- /package/dist/{GB-IJ-Iz5qv.js → GB-BycqX1ng.js} +0 -0
- /package/dist/{GB-Bxb4fPxG.js → GB-CszgE98l.js} +0 -0
- /package/dist/{GB--UVnRIRj.js → GB-DlvvuQuQ.js} +0 -0
- /package/dist/{GB-FU65v6fQ.js → GB-q2GO1nX8.js} +0 -0
- /package/dist/{GE-xaMHflrU.js → GE-ChK3V1hi.js} +0 -0
- /package/dist/{GF-CrDxyG5C.js → GF-fTBjIC0q.js} +0 -0
- /package/dist/{GG-DEqoBorh.js → GG-Cppga3Z4.js} +0 -0
- /package/dist/{GI-Turkle4q.js → GI-Cm7N6fbE.js} +0 -0
- /package/dist/{GL-BnDhUcrF.js → GL-C75JniJw.js} +0 -0
- /package/dist/{GP-Dp65xTqP.js → GP-DhHOAa8k.js} +0 -0
- /package/dist/{GR-3L3XhlH2.js → GR-zOZilI5v.js} +0 -0
- /package/dist/{GT-BhKx5dln.js → GT-B6tGLPxx.js} +0 -0
- /package/dist/{GU-Bgc9EY1W.js → GU-DjjJkDVU.js} +0 -0
- /package/dist/{HK-BmygOotV.js → HK-BXsi3wQZ.js} +0 -0
- /package/dist/{HK-kFldIGd7.js → HK-Bs3Wsh4t.js} +0 -0
- /package/dist/{HK-DClfjKdQ.js → HK-CVaMk2Vl.js} +0 -0
- /package/dist/{HK-DUMxc2EI.js → HK-Yj_9Qbs3.js} +0 -0
- /package/dist/{HR-BquBLtSA.js → HR-8jCYyclY.js} +0 -0
- /package/dist/{HR-BZ1pGUfO.js → HR-BR9TaCeP.js} +0 -0
- /package/dist/{HR-CmnsEDnL.js → HR-C-NuIOkA.js} +0 -0
- /package/dist/{HR-C57WjbJ_.js → HR-DvG9lG0o.js} +0 -0
- /package/dist/{HU-CErZJI70.js → HU-B4hChLQO.js} +0 -0
- /package/dist/{HU-3HXta-l8.js → HU-DF7a_-3t.js} +0 -0
- /package/dist/{HU-DnRWaWkm.js → HU-kkbB9HNQ.js} +0 -0
- /package/dist/{HU-BPcrEuPH.js → HU-o4ILK6JM.js} +0 -0
- /package/dist/{HandlerContext-J3b0CZCH.js → HandlerContext-CIedIvkP.js} +0 -0
- /package/dist/{ID-BpqDcVc4.js → ID-CnOsjpEC.js} +0 -0
- /package/dist/{IE-CZOtplG-.js → IE-B3ysSG_S.js} +0 -0
- /package/dist/{IE-nHDHO00_.js → IE-CtesijIU.js} +0 -0
- /package/dist/{IE-dduN0_TO.js → IE-Dwlg9nat.js} +0 -0
- /package/dist/{IE-auhNSIUT.js → IE-dmyHscm0.js} +0 -0
- /package/dist/{IL-C0zsRw_j.js → IL-B2GfQOoK.js} +0 -0
- /package/dist/{IM-DimZdCV2.js → IM-D9Hb0nwZ.js} +0 -0
- /package/dist/{IN-drNlZVBZ.js → IN-Qhys3xn2.js} +0 -0
- /package/dist/{IS-BdfP-REC.js → IS-DTXiGHYB.js} +0 -0
- /package/dist/{IT-BCxMd7Y7.js → IT-BZGkLCTQ.js} +0 -0
- /package/dist/{IT-DF6ZO-i8.js → IT-CHV5-m07.js} +0 -0
- /package/dist/{IT-Dc9lHBRw.js → IT-DFeNc5UK.js} +0 -0
- /package/dist/{IT-CNf1MrI-.js → IT-Dimtibs1.js} +0 -0
- /package/dist/{JE-BBO3NuzB.js → JE-D7_0MZEA.js} +0 -0
- /package/dist/{JM-BzHoUe13.js → JM-CUVKn5To.js} +0 -0
- /package/dist/{JO-fffBmbX2.js → JO-B9_bPqbF.js} +0 -0
- /package/dist/{JP-Dv9kCG6P.js → JP-z_PjepRf.js} +0 -0
- /package/dist/{KR-K1u4NuUE.js → KR-DaFOJAbV.js} +0 -0
- /package/dist/{KW-DBYFEC0m.js → KW-BLH4fj8S.js} +0 -0
- /package/dist/{KY-DvnPgYGT.js → KY-DG3Xehmz.js} +0 -0
- /package/dist/{KZ-DX8lqaut.js → KZ-BjnXKq2l.js} +0 -0
- /package/dist/{LB-DuXl_nIj.js → LB-CY5c_gqN.js} +0 -0
- /package/dist/{LI-BcYzGJ7k.js → LI-BkFK_qrZ.js} +0 -0
- /package/dist/{LT-BfApaHFI.js → LT--zST1zqj.js} +0 -0
- /package/dist/{LT-ZF-q0fXm.js → LT-2wka4qNS.js} +0 -0
- /package/dist/{LT-BYZkkL9O.js → LT-BV7s3TCv.js} +0 -0
- /package/dist/{LT-rnUOqZje.js → LT-BxqPzqgf.js} +0 -0
- /package/dist/{LU-xxaAcEvQ.js → LU-Bt4sIWIT.js} +0 -0
- /package/dist/{LV-BdlQTl8C.js → LV-B-FeTyBQ.js} +0 -0
- /package/dist/{MC-CaqkAF9O.js → MC-D92BHmGr.js} +0 -0
- /package/dist/{MD-DPht_MRT.js → MD-BzJaxo1n.js} +0 -0
- /package/dist/{ME-Dc5I5KtD.js → ME-Iw66DM2s.js} +0 -0
- /package/dist/{MK-Bn1G050Q.js → MK-yRjMHvLF.js} +0 -0
- /package/dist/{MP-WG5-be9t.js → MP-CGHoAYPz.js} +0 -0
- /package/dist/{MQ-BX_woiN5.js → MQ-Db73c-TY.js} +0 -0
- /package/dist/{MR-B4o-Woej.js → MR-CzGlj8ce.js} +0 -0
- /package/dist/{MT-BitdMyNy.js → MT-n0Cp6O8-.js} +0 -0
- /package/dist/{MU-5mV1nkVk.js → MU-C57EyXfP.js} +0 -0
- /package/dist/{MX-BV0FI9pL.js → MX-JSUPc6V8.js} +0 -0
- /package/dist/{MY-BovUrLi6.js → MY-Bbgpg3w2.js} +0 -0
- /package/dist/{NC--rMtvPxR.js → NC-BeqCqe7o.js} +0 -0
- /package/dist/{NL-Dt1MHEvX.js → NL-B22K1Zb0.js} +0 -0
- /package/dist/{NL-D3keMKVJ.js → NL-C1r7ND7d.js} +0 -0
- /package/dist/{NL-DpEm6S8e.js → NL-CIX2R11u.js} +0 -0
- /package/dist/{NL-BA3EKW3x.js → NL-KVjpCVaw.js} +0 -0
- /package/dist/{NO-Dst-DnZ8.js → NO-BhYtIUv1.js} +0 -0
- /package/dist/{NO-BRw0ivbK.js → NO-CFty2TsC.js} +0 -0
- /package/dist/{NO-ltxTSAKY.js → NO-CV0UtHqk.js} +0 -0
- /package/dist/{NO-VE7Sc2IM.js → NO-DLFLW3I8.js} +0 -0
- /package/dist/{NZ-CJ_5Z1en.js → NZ-ClQC7uEQ.js} +0 -0
- /package/dist/{NZ-SQBwX6Hq.js → NZ-DZ75lvmW.js} +0 -0
- /package/dist/{PE-CcE7NUNY.js → PE-BhP-iF08.js} +0 -0
- /package/dist/{PF-CTHFNBfG.js → PF-DZJu8LvP.js} +0 -0
- /package/dist/{PH-BJvKdyQF.js → PH-8s_pcD1T.js} +0 -0
- /package/dist/{PK-CmxTai7F.js → PK-BkHx9Wu7.js} +0 -0
- /package/dist/{PL-BT907618.js → PL-CZ0JZlv4.js} +0 -0
- /package/dist/{PL-Byz7Yqkt.js → PL-Db0WKekw.js} +0 -0
- /package/dist/{PL-Cgkoario.js → PL-DjTZTZqB.js} +0 -0
- /package/dist/{PL-BK2Asw5F.js → PL-oVwazamy.js} +0 -0
- /package/dist/{PM-CPOzzt0L.js → PM-Bcq0SkSj.js} +0 -0
- /package/dist/{PR-squ319V4.js → PR-N31WZxLD.js} +0 -0
- /package/dist/{PS-CspEbZTU.js → PS-DzthwPAx.js} +0 -0
- /package/dist/{PT-CiRGWIB7.js → PT-BVfq_KIl.js} +0 -0
- /package/dist/{PT-LXjJtHn5.js → PT-C3FlrAqt.js} +0 -0
- /package/dist/{PT-CT-kaH57.js → PT-C6fd2w3g.js} +0 -0
- /package/dist/{PT-DAsEx6OE.js → PT-ilpiMMVG.js} +0 -0
- /package/dist/{QA-DaZHmHWd.js → QA-zn4Gdzbo.js} +0 -0
- /package/dist/{RE-BFKWl5y_.js → RE-dG3KJMMx.js} +0 -0
- /package/dist/{RO-BcDEEGjk.js → RO-B1UBvxsc.js} +0 -0
- /package/dist/{RO-CRDVNzfL.js → RO-BL-J1_yg.js} +0 -0
- /package/dist/{RO-Bb4UTT5B.js → RO-BXtuhVoN.js} +0 -0
- /package/dist/{RO-3wOpNneM.js → RO-Dtlve3hZ.js} +0 -0
- /package/dist/{RS-DOGs6suo.js → RS-DIpTuX70.js} +0 -0
- /package/dist/{RU-wf84MwTX.js → RU-B7YwaezI.js} +0 -0
- /package/dist/{SA-B1u_XGB9.js → SA-yHvpRBBt.js} +0 -0
- /package/dist/{SE-2WATmHl2.js → SE-CccuzUP0.js} +0 -0
- /package/dist/{SE-Dv7OpBmo.js → SE-CfxNbl59.js} +0 -0
- /package/dist/{SE-DTxNlT0w.js → SE-gXHu0efH.js} +0 -0
- /package/dist/{SE-B48cKLIu.js → SE-pMhyd7KJ.js} +0 -0
- /package/dist/{SG-BZ-kyKVN.js → SG-CGk7k8y6.js} +0 -0
- /package/dist/{SG-pPmF2os4.js → SG-CODE9yV_.js} +0 -0
- /package/dist/{SG-CdsmZcfV.js → SG-DIKkp5VX.js} +0 -0
- /package/dist/{SG-A2_cs4kd.js → SG-fAOioO1i.js} +0 -0
- /package/dist/{SI-T8ly14Dn.js → SI-BpwxzWXI.js} +0 -0
- /package/dist/{SI-DrX769GG.js → SI-CtMaFIsz.js} +0 -0
- /package/dist/{SI-DjUddZcZ.js → SI-D8ngpNLP.js} +0 -0
- /package/dist/{SI-BVTXwA8C.js → SI-DgNZ746W.js} +0 -0
- /package/dist/{SJ-DO3zbL0P.js → SJ-SG7xxYUX.js} +0 -0
- /package/dist/{SK-DzGTyI5h.js → SK-C7ldUW73.js} +0 -0
- /package/dist/{SK-vJT5Dj16.js → SK-CNT7QVie.js} +0 -0
- /package/dist/{SK-Dq7sWtiL.js → SK-D8vU29-x.js} +0 -0
- /package/dist/{SK-BFZnw1-d.js → SK-DssnPaZv.js} +0 -0
- /package/dist/{SM-B4SkkvKD.js → SM-Ds8vicT5.js} +0 -0
- /package/dist/{StackLayout-BMQXXBDb.js → StackLayout-CTLQyVDf.js} +0 -0
- /package/dist/{TF-CIVHsoB9.js → TF-Ckf_6iT5.js} +0 -0
- /package/dist/{TH-8huuj2v6.js → TH-2sIVIZNa.js} +0 -0
- /package/dist/{TL-Bik3Eb-u.js → TL-OSKwf5cB.js} +0 -0
- /package/dist/{TN-ClhiegdZ.js → TN-BcUBhs_y.js} +0 -0
- /package/dist/{TR-xyusRa6k.js → TR-nO7zl2t7.js} +0 -0
- /package/dist/{TT-BsT9h8j3.js → TT-uQXIiTh9.js} +0 -0
- /package/dist/{TW-Id3ypKK8.js → TW-ra8aVP1u.js} +0 -0
- /package/dist/{Tag-BTQ4nyKS.js → Tag-BUoDHC4C.js} +0 -0
- /package/dist/{UA-r0ZVcqym.js → UA-ChP4sFEB.js} +0 -0
- /package/dist/{US-C0BIY_Iy.js → US-CPcVUQez.js} +0 -0
- /package/dist/{US-_mFv0V8m.js → US-D6PlTpHk.js} +0 -0
- /package/dist/{US-BKXr0nm-.js → US-F-OhVaqg.js} +0 -0
- /package/dist/{US-Df7pLIkq.js → US-amE0CRbB.js} +0 -0
- /package/dist/{UY-BDWpl5Q2.js → UY-BFN4uNVz.js} +0 -0
- /package/dist/{VA-CJnCCD0R.js → VA-lz_OQgNz.js} +0 -0
- /package/dist/{VG-CODm52zD.js → VG-CUKKrF3h.js} +0 -0
- /package/dist/{VI-B52L6yXT.js → VI-D1i4Oi0B.js} +0 -0
- /package/dist/{VN-BsJ-vqrs.js → VN-DRaYj63j.js} +0 -0
- /package/dist/{WF-lhRl1Vg9.js → WF-K2TrgrKu.js} +0 -0
- /package/dist/{YT-CmziyGNY.js → YT-CEOdE-OK.js} +0 -0
- /package/dist/{ZA-CQNS6dil.js → ZA-BVXb4Fcr.js} +0 -0
- /package/dist/{_rolldown_dynamic_import_helper-CCXvMgfE.js → _rolldown_dynamic_import_helper-C4ugHLZT.js} +0 -0
- /package/dist/{arrow-right-BX_EVrJJ.js → arrow-right-BJTNKb0O.js} +0 -0
- /package/dist/{bag-CndvM5sq.js → bag-DZMiIi7P.js} +0 -0
- /package/dist/{bank-BGTRk0kq.js → bank-CzucQEWZ.js} +0 -0
- /package/dist/{bg-BG-QlxmGEZL.js → bg-BG-B845EAcI.js} +0 -0
- /package/dist/{bg-BG-Cxa0jcnA.js → bg-BG-Bfk35aUM.js} +0 -0
- /package/dist/{bg-BG-YZ34LkMd.js → bg-BG-BrYfHU1Y.js} +0 -0
- /package/dist/{bg-BG-RNEFZxOh.js → bg-BG-BsrzL-U8.js} +0 -0
- /package/dist/{bg-BG-CCGIvlIM.js → bg-BG-Bw1uE2hh.js} +0 -0
- /package/dist/{bg-BG-mf-xq3ph.js → bg-BG-C0FkvcA2.js} +0 -0
- /package/dist/{bg-BG-B9ABjZUx2.js → bg-BG-CUmjOcpi2.js} +0 -0
- /package/dist/{bg-BG-D3gXF-6w2.js → bg-BG-CncTIGKT2.js} +0 -0
- /package/dist/{bg-BG-CogcfR3g.js → bg-BG-DLd3BaDx.js} +0 -0
- /package/dist/{bg-BG-IjNKw0Zu.js → bg-BG-DkeEONKT.js} +0 -0
- /package/dist/{bg-BG-BNqOiDw9.js → bg-BG-DqOqFO0A.js} +0 -0
- /package/dist/{bin-ClI1Lmer.js → bin-BbC6aL9-.js} +0 -0
- /package/dist/{business-lines-hXwJAfy8.js → business-lines-DY5WHePf.js} +0 -0
- /package/dist/{capital-CvyQlkxY.js → capital-B61w2ph0.js} +0 -0
- /package/dist/{cash-stack-Dh8uZSza.js → cash-stack-DrmR4pnT.js} +0 -0
- /package/dist/{certificate-BNwGY179.js → certificate-_tpSgTGm.js} +0 -0
- /package/dist/{checkmark-hciVXXIH.js → checkmark-DnlW1SB-.js} +0 -0
- /package/dist/{checkmark-circle-B0j0Vtwo.js → checkmark-circle-Dixm0aV6.js} +0 -0
- /package/dist/{checkmark-circle-fill-LpAoa38W.js → checkmark-circle-fill-dAg9Mn5z.js} +0 -0
- /package/dist/{checkmark-small-CBLKuuZ1.js → checkmark-small-Di0Lj9EO.js} +0 -0
- /package/dist/{chevron-down-aTrA5UpL.js → chevron-down-CvIokHIR.js} +0 -0
- /package/dist/{chevron-left-BVdVNPiJ.js → chevron-left-BNjJxGO4.js} +0 -0
- /package/dist/{chevron-right-Drp9nZ4h.js → chevron-right-CeXpOOK6.js} +0 -0
- /package/dist/{chevron-up-BG9Ldgsu.js → chevron-up-esJT8bFL.js} +0 -0
- /package/dist/{circle-C-iPmuCY.js → circle-BJtiv6-2.js} +0 -0
- /package/dist/{circle-small-filled-C-Nh6xHY.js → circle-small-filled-BLmJJiLk.js} +0 -0
- /package/dist/{clock-CpMm35NB.js → clock-Xuw4kh_Y.js} +0 -0
- /package/dist/{coins-D2tNyEW3.js → coins-BeFK6pqR.js} +0 -0
- /package/dist/{company-types-value-B-nraMaa.js → company-types-value-BYTAKfjo.js} +0 -0
- /package/dist/{contract-Cg3T6neC.js → contract-D4VJIjGm.js} +0 -0
- /package/dist/{country-code-D3oCpE4i.js → country-code-BjUoKbAN.js} +0 -0
- /package/dist/{cross-DLi9h_Eg.js → cross-CbSU1xP-.js} +0 -0
- /package/dist/{cross-circle-fill-dRHPWc-i.js → cross-circle-fill-iElIdcZN.js} +0 -0
- /package/dist/{cross-circle-fill-small-WqgBPXhH.js → cross-circle-fill-small-DyxDVLjN.js} +0 -0
- /package/dist/{cs-CZ-B_nYIuIi.js → cs-CZ-3vdI5Jjr.js} +0 -0
- /package/dist/{cs-CZ-Bx41zbEp.js → cs-CZ-B1VpAUva.js} +0 -0
- /package/dist/{cs-CZ-MU9Ub24D.js → cs-CZ-BWwYdy4S.js} +0 -0
- /package/dist/{cs-CZ-BObx8NMb.js → cs-CZ-Bl40lHzE.js} +0 -0
- /package/dist/{cs-CZ-D73bqvvS.js → cs-CZ-C6VkcCUo.js} +0 -0
- /package/dist/{cs-CZ-B6AZX4nL.js → cs-CZ-CDBbVGc-.js} +0 -0
- /package/dist/{cs-CZ-CWM5oj6Q.js → cs-CZ-D08FCyDx.js} +0 -0
- /package/dist/{cs-CZ-Bl8qBkx4.js → cs-CZ-HMzN3w9M.js} +0 -0
- /package/dist/{cs-CZ-DNvBXQqI.js → cs-CZ-IZhVT21N.js} +0 -0
- /package/dist/{cs-CZ-C7QmQ2LT2.js → cs-CZ-Is3lue5X2.js} +0 -0
- /package/dist/{cs-CZ-D6VNEZ622.js → cs-CZ-n18LpZrJ2.js} +0 -0
- /package/dist/{currency-CfIDpZh9.js → currency-B8-OEAgj.js} +0 -0
- /package/dist/{da-DK-LXurZBZ8.js → da-DK-B576UeqU.js} +0 -0
- /package/dist/{da-DK-Cx-Ux0WK.js → da-DK-BCPtwA_c.js} +0 -0
- /package/dist/{da-DK-8DN_uCKw.js → da-DK-BwIZqzDw.js} +0 -0
- /package/dist/{da-DK-CxoaLz6P.js → da-DK-CB-sFnhe.js} +0 -0
- /package/dist/{da-DK-CBt4gQjw.js → da-DK-CrBk2y5x.js} +0 -0
- /package/dist/{da-DK-DAHcK0Md2.js → da-DK-CzCkRjoI2.js} +0 -0
- /package/dist/{da-DK-BDachfZH.js → da-DK-CzFS-0y6.js} +0 -0
- /package/dist/{da-DK-CcLM8SA22.js → da-DK-DJ5ddVnr2.js} +0 -0
- /package/dist/{da-DK-B8aHvZ1W.js → da-DK-DaA3zK0h.js} +0 -0
- /package/dist/{da-DK-BOU9aCaN.js → da-DK-IX9UQUAb.js} +0 -0
- /package/dist/{da-DK-dLxEveOJ.js → da-DK-klGGwyxv.js} +0 -0
- /package/dist/{datasetUtil-BZmNUckr.js → datasetUtil-uPWEKDf8.js} +0 -0
- /package/dist/{de-DE-BxL8NQIq.js → de-DE-BHik7H3o.js} +0 -0
- /package/dist/{de-DE-Cbpj1g3M.js → de-DE-B_L7jawo.js} +0 -0
- /package/dist/{de-DE-DUlvIvvj2.js → de-DE-Bki8tbcV2.js} +0 -0
- /package/dist/{de-DE-apC2os2u.js → de-DE-C4PzkDzF.js} +0 -0
- /package/dist/{de-DE-CKOOKYoC.js → de-DE-C9UIqdWt.js} +0 -0
- /package/dist/{de-DE-DstHFxVG.js → de-DE-CHdEma9v.js} +0 -0
- /package/dist/{de-DE-reMh5NmX2.js → de-DE-CZ4lmioI2.js} +0 -0
- /package/dist/{de-DE-C7Au1j2A.js → de-DE-CfuejIRq.js} +0 -0
- /package/dist/{de-DE-cPL-uSMG.js → de-DE-Cl0fc0U_.js} +0 -0
- /package/dist/{de-DE-B8D6bV3u.js → de-DE-DSP4aQRh.js} +0 -0
- /package/dist/{de-DE-DzLYNbSo.js → de-DE-DXkUC1-N.js} +0 -0
- /package/dist/{de-DE-D8Is4iJk.js → de-DE-XXqDUm1h.js} +0 -0
- /package/dist/{decision-maker-type-DHBYiKIe.js → decision-maker-type-CWrppE0k.js} +0 -0
- /package/dist/{decision-makers-group-CkP3dlRO.js → decision-makers-group-D53oFTHn.js} +0 -0
- /package/dist/{digital-wallet-s7FKhVg9.js → digital-wallet-CLOVHAow.js} +0 -0
- /package/dist/{document-1-CSg2AOQy.js → document-1-Dfu6EDzV.js} +0 -0
- /package/dist/{document-blurred-DHgG-aQ6.js → document-blurred-DGXvRTC8.js} +0 -0
- /package/dist/{document-cut-off-DCf-G-0l.js → document-cut-off-DbVQzqxC.js} +0 -0
- /package/dist/{document-expired-UJMQKi88.js → document-expired-DKnTJ5T9.js} +0 -0
- /package/dist/{document-front-DLpxfBfu.js → document-front-Bn5jsEIh.js} +0 -0
- /package/dist/{document-person-BhXXvTMH.js → document-person-Dgv26vCh.js} +0 -0
- /package/dist/{download-Cvkkn96A.js → download-Ct05dQIR.js} +0 -0
- /package/dist/{edit-1-CIdEs1t-.js → edit-1-m3Xin3vd.js} +0 -0
- /package/dist/{el-GR-CoPH23Qe.js → el-GR-3u6kc4gj.js} +0 -0
- /package/dist/{el-GR-mGnv3b-O.js → el-GR-B5dqrdWm.js} +0 -0
- /package/dist/{el-GR-BZ9AJNm4.js → el-GR-BP7G1Ka8.js} +0 -0
- /package/dist/{el-GR-CiverXpL.js → el-GR-BUBdTCMP.js} +0 -0
- /package/dist/{el-GR-DfW8zYK4.js → el-GR-Buy5IU8M.js} +0 -0
- /package/dist/{el-GR-C6MVbJAv.js → el-GR-CEZLeeb3.js} +0 -0
- /package/dist/{el-GR-BDXwftjw.js → el-GR-CNoP_at_.js} +0 -0
- /package/dist/{el-GR-gJ0IppFC2.js → el-GR-CZs5BPVJ2.js} +0 -0
- /package/dist/{el-GR-Dw8xMzqe.js → el-GR-Ctd3mBAX.js} +0 -0
- /package/dist/{el-GR-hquqlbpg2.js → el-GR-DocTTdq-2.js} +0 -0
- /package/dist/{el-GR-DvIXL8AR.js → el-GR-LUFCyvHj.js} +0 -0
- /package/dist/{el-GR-BRFvZNGC.js → el-GR-XuQDipDR.js} +0 -0
- /package/dist/{emitEvent-DYC1em5m.js → emitEvent-B8K0cb1F.js} +0 -0
- /package/dist/{en-US-Cd8cLmVX.js → en-US-1Tznfcwg.js} +0 -0
- /package/dist/{en-US-DHD_ENM1.js → en-US-B-_7IR6A.js} +0 -0
- /package/dist/{en-US-C0SrG99u.js → en-US-BEL_lmpv.js} +0 -0
- /package/dist/{en-US-BLuFDCyp2.js → en-US-Bf6E1v0-2.js} +0 -0
- /package/dist/{en-US-D1-68ZWE.js → en-US-BpCm0Bvk.js} +0 -0
- /package/dist/{en-US-NaoNaTO0.js → en-US-Bw9LpxPe.js} +0 -0
- /package/dist/{en-US-RmklpZAK.js → en-US-CXdfrlM6.js} +0 -0
- /package/dist/{en-US-CUsu9qhV.js → en-US-D9vXTqQr.js} +0 -0
- /package/dist/{en-US-BhctnSAK.js → en-US-DLIlixDF.js} +0 -0
- /package/dist/{en-US-_l9425V1.js → en-US-DQLhkpBE.js} +0 -0
- /package/dist/{en-US-DETk-gjx2.js → en-US-D_g_DM_a2.js} +0 -0
- /package/dist/{en-US-CuX4Fzoo.js → en-US-DdArZW-2.js} +0 -0
- /package/dist/{en-US-_D_BTN1a.js → en-US-DmDPhSJN.js} +0 -0
- /package/dist/{en-US-BxBNcm3S.js → en-US-HW6CoTeP.js} +0 -0
- /package/dist/{en-US-DrAjiabh.js → en-US-VZ7ytmtB.js} +0 -0
- /package/dist/{en-US-CO9Ct3Xx.js → en-US-ZFlMM5v3.js} +0 -0
- /package/dist/{en-US-aJtjsYKh.js → en-US-gwxv5v9w.js} +0 -0
- /package/dist/{en-US.instructions-DlxMDbRu.js → en-US.instructions-CbjjdEDm.js} +0 -0
- /package/dist/{en-US.instructions-CXa3foCe.js → en-US.instructions-kje2iQeM.js} +0 -0
- /package/dist/{es-ES-YXUkD4Em2.js → es-ES-BMBx28UE2.js} +0 -0
- /package/dist/{es-ES-D67pkLVu.js → es-ES-BPXpnHRY.js} +0 -0
- /package/dist/{es-ES-B2MIlPdM.js → es-ES-BQyI--wB.js} +0 -0
- /package/dist/{es-ES-D7pe0Z8H.js → es-ES-CB4LW8fA.js} +0 -0
- /package/dist/{es-ES-C19HaQVX.js → es-ES-Cn6TsINc.js} +0 -0
- /package/dist/{es-ES-zeUfuQRw.js → es-ES-DB77kzqT.js} +0 -0
- /package/dist/{es-ES-Bwhnseeu.js → es-ES-DBxs7iF7.js} +0 -0
- /package/dist/{es-ES-0O9y1_Bc.js → es-ES-DFYOkj68.js} +0 -0
- /package/dist/{es-ES-DnmrjEd02.js → es-ES-DGmySxC42.js} +0 -0
- /package/dist/{es-ES-BAAL2h3R.js → es-ES-QIbBo_YM.js} +0 -0
- /package/dist/{es-ES-CAuzNvPf.js → es-ES-RzKcfNXi.js} +0 -0
- /package/dist/{es-ES-DFg_LlqD.js → es-ES-oq21mjwX.js} +0 -0
- /package/dist/{et-EE-Lw-rTsG-.js → et-EE-BSBN_3SH.js} +0 -0
- /package/dist/{et-EE-DCEDrMl2.js → et-EE-BWE9LBIW.js} +0 -0
- /package/dist/{et-EE-DXoF-AJ72.js → et-EE-Bq6ySoVT2.js} +0 -0
- /package/dist/{et-EE-Dszx65le2.js → et-EE-CPykMmP6.js} +0 -0
- /package/dist/{et-EE-Dg93VJbx.js → et-EE-CfkcHuFD.js} +0 -0
- /package/dist/{et-EE-DJWVyTVM.js → et-EE-Clm5xG7H.js} +0 -0
- /package/dist/{et-EE-C4U93xrJ.js → et-EE-CuuT6UiF.js} +0 -0
- /package/dist/{et-EE-CPdaJJkL.js → et-EE-D8EAo5UR.js} +0 -0
- /package/dist/{et-EE-M5V-MgVM.js → et-EE-Dj0jysHw.js} +0 -0
- /package/dist/{et-EE-30-8FeA2.js → et-EE-RpLsFwBS.js} +0 -0
- /package/dist/{et-EE-DZhr4TrQ2.js → et-EE-go_L8yC52.js} +0 -0
- /package/dist/{external-link-BNgSBwiX.js → external-link-BxiqXr7-.js} +0 -0
- /package/dist/{fi-FI-wRYER_Hf.js → fi-FI-4ckffUlB.js} +0 -0
- /package/dist/{fi-FI-Ba0VbJdZ.js → fi-FI-6U5kDy9_.js} +0 -0
- /package/dist/{fi-FI-DZyEs_5S.js → fi-FI-BYm7CUY2.js} +0 -0
- /package/dist/{fi-FI-BrmYMDbY.js → fi-FI-BhZIWccP.js} +0 -0
- /package/dist/{fi-FI-DIKQFczn2.js → fi-FI-BmXRQB7_2.js} +0 -0
- /package/dist/{fi-FI-BNtrKnDN.js → fi-FI-CGqRN2IG.js} +0 -0
- /package/dist/{fi-FI-DZ5-w9vt.js → fi-FI-CfmDq95S.js} +0 -0
- /package/dist/{fi-FI-TDF0ZiiC.js → fi-FI-Ci2zcIZj.js} +0 -0
- /package/dist/{fi-FI-C8sI9IhQ2.js → fi-FI-DsfVixQ62.js} +0 -0
- /package/dist/{fi-FI-IwaR92iX.js → fi-FI-cUN_PaZk.js} +0 -0
- /package/dist/{fi-FI-UJLb8Vk42.js → fi-FI-lFhGznBk2.js} +0 -0
- /package/dist/{file-C9ni6Xpv.js → file-6a0FDVyq.js} +0 -0
- /package/dist/{filterProblemsByTaskForms-CrTqhWJT.js → filterProblemsByTaskForms-DwS9T-_E.js} +0 -0
- /package/dist/{fr-FR-B6Moi9NF2.js → fr-FR-B95kf8uT2.js} +0 -0
- /package/dist/{fr-FR-D96p0pnI2.js → fr-FR-BdjvbPB62.js} +0 -0
- /package/dist/{fr-FR-BshpJ5Y8.js → fr-FR-BqpAnmif.js} +0 -0
- /package/dist/{fr-FR-DYDmBWWT.js → fr-FR-BwhO0tqx.js} +0 -0
- /package/dist/{fr-FR-DY7D-hmZ.js → fr-FR-BxnyIkIr.js} +0 -0
- /package/dist/{fr-FR-BvOYNtjw2.js → fr-FR-CMj16KIu2.js} +0 -0
- /package/dist/{fr-FR-CYRsfbyW.js → fr-FR-CTaavJDz.js} +0 -0
- /package/dist/{fr-FR-DEdpJMql.js → fr-FR-CZs4UzUR.js} +0 -0
- /package/dist/{fr-FR-fwcu0Hmd.js → fr-FR-Cq7iIftz.js} +0 -0
- /package/dist/{fr-FR-Duc4nlp1.js → fr-FR-D1HpNhTO.js} +0 -0
- /package/dist/{fr-FR-DwYX21r1.js → fr-FR-DnX9lTEQ.js} +0 -0
- /package/dist/{fr-FR-CsoVB-yq.js → fr-FR-qy27JGqF.js} +0 -0
- /package/dist/{funds-in-CZ06mMrK.js → funds-in-DcvC0rG-.js} +0 -0
- /package/dist/{get-scenarios-D432otQE.js → get-scenarios-Bkxtd5jh.js} +0 -0
- /package/dist/{getNestedPropertyKeys-hT40QMb1.js → getNestedPropertyKeys-MEDCcSm2.js} +0 -0
- /package/dist/{getTrustedDecisionMakers-BjGAWMyl.js → getTrustedDecisionMakers-D2yayvPr.js} +0 -0
- /package/dist/{gift-I5WhHXnm.js → gift-CX0qVK1O.js} +0 -0
- /package/dist/{graph-yoQEgV-z.js → graph-idneKCfM.js} +0 -0
- /package/dist/{graph-up-CN2EGjwJ.js → graph-up-BZtGbTh8.js} +0 -0
- /package/dist/{graphical-laptop-BI3ea4L0.js → graphical-laptop-xPvp7QKa.js} +0 -0
- /package/dist/{headquarter-BPCK7l9Y.js → headquarter-pYPoPBZM.js} +0 -0
- /package/dist/{hotel-BncnkQ-E.js → hotel-DcStWscD.js} +0 -0
- /package/dist/{house-RVNoSmhG.js → house-D2ID8PM-.js} +0 -0
- /package/dist/{hr-HR-BZ31wjf92.js → hr-HR-BFy27vAx2.js} +0 -0
- /package/dist/{hr-HR-DbebVQF9.js → hr-HR-BXLWA1xd.js} +0 -0
- /package/dist/{hr-HR-DpQuBztk.js → hr-HR-BzyoDD3o.js} +0 -0
- /package/dist/{hr-HR-DNuly_NE2.js → hr-HR-CLA4RCOe2.js} +0 -0
- /package/dist/{hr-HR-CludxABG.js → hr-HR-Dgrok1MJ.js} +0 -0
- /package/dist/{hr-HR-CFAySNqh.js → hr-HR-DwVuRMPc.js} +0 -0
- /package/dist/{hr-HR-CN-cMu-7.js → hr-HR-Ngyn0CeW.js} +0 -0
- /package/dist/{hr-HR-DTIXBOS5.js → hr-HR-O1W0RKHg.js} +0 -0
- /package/dist/{hr-HR-eX7nJfwF2.js → hr-HR-gmt7xTWx2.js} +0 -0
- /package/dist/{hr-HR-dL_cUkZa.js → hr-HR-iC0oTR81.js} +0 -0
- /package/dist/{hr-HR-D6jMCNOJ.js → hr-HR-mfHZl8tO.js} +0 -0
- /package/dist/{hu-HU-ReTWA1v3.js → hu-HU-BXhdx-ju.js} +0 -0
- /package/dist/{hu-HU-Cy7itqJL2.js → hu-HU-BfD5UZoY2.js} +0 -0
- /package/dist/{hu-HU-BED5SDWE.js → hu-HU-Bxg-cJEy.js} +0 -0
- /package/dist/{hu-HU-DIgxSbaT.js → hu-HU-BzAy_OWc.js} +0 -0
- /package/dist/{hu-HU-BesI_nyc.js → hu-HU-BzQoUNaS.js} +0 -0
- /package/dist/{hu-HU-gRTFw9Qg.js → hu-HU-D_5yVmCo.js} +0 -0
- /package/dist/{hu-HU-DXHf3uuK.js → hu-HU-DceMzb3Y.js} +0 -0
- /package/dist/{hu-HU-UzZvIK5j.js → hu-HU-Dh9jdb9X2.js} +0 -0
- /package/dist/{hu-HU-e9KN8lp6.js → hu-HU-Nb-5azdf.js} +0 -0
- /package/dist/{hu-HU-BgRcKhFU2.js → hu-HU-kcQkkxnT2.js} +0 -0
- /package/dist/{hu-HU-Cy8F1a5a.js → hu-HU-yAwdJ5xn.js} +0 -0
- /package/dist/{id-blurred-BdqQKk1l.js → id-blurred-CtnwOJmP.js} +0 -0
- /package/dist/{id-cut-off-BlpfXo5W.js → id-cut-off-DTnrMaG3.js} +0 -0
- /package/dist/{id-front-Bqd59AfN.js → id-front-BArANgYI.js} +0 -0
- /package/dist/{id-glare-7GGletdB.js → id-glare-g3bnPQ3v.js} +0 -0
- /package/dist/{image-DXUQcN6d.js → image-Cu6NenSs.js} +0 -0
- /package/dist/{info-Dh7b3h-o.js → info-BFv37bQB.js} +0 -0
- /package/dist/{info-filled-DtEaaCq9.js → info-filled-d8JiHhYQ.js} +0 -0
- /package/dist/{it-IT-16IjDttL.js → it-IT-B0pCVo4V.js} +0 -0
- /package/dist/{it-IT-5sFxcqYj.js → it-IT-B2zFnv7K.js} +0 -0
- /package/dist/{it-IT-C2JfprsD.js → it-IT-BDkY4_D3.js} +0 -0
- /package/dist/{it-IT-D_ks7gfY2.js → it-IT-BUJ6M3KT2.js} +0 -0
- /package/dist/{it-IT-C75KiNnW.js → it-IT-BcBkbTJA.js} +0 -0
- /package/dist/{it-IT-H3GQLOjf2.js → it-IT-Bnm0ulsw2.js} +0 -0
- /package/dist/{it-IT-JgaaWuPW.js → it-IT-BrdXGWpw.js} +0 -0
- /package/dist/{it-IT-kER7OY9Z.js → it-IT-BxdBXweN.js} +0 -0
- /package/dist/{it-IT-CFip731S.js → it-IT-C82YvJn6.js} +0 -0
- /package/dist/{it-IT-CCtD36Df.js → it-IT-CHuVqZdn.js} +0 -0
- /package/dist/{it-IT-3PSb6tzc.js → it-IT-DK30YvbO.js} +0 -0
- /package/dist/{it-IT-BK6Yn4vc.js → it-IT-Dns-1Qbf.js} +0 -0
- /package/dist/{ja-JP-B-5Ib5IT2.js → ja-JP-B1AjiTAA2.js} +0 -0
- /package/dist/{ja-JP-DhImuhRM2.js → ja-JP-B5SxIdyP2.js} +0 -0
- /package/dist/{ja-JP-B5fRnSzi.js → ja-JP-BzBRpXM1.js} +0 -0
- /package/dist/{ja-JP-CjEZToEj.js → ja-JP-CTFB8UKL.js} +0 -0
- /package/dist/{ja-JP-BaYWre19.js → ja-JP-CYmySE1y.js} +0 -0
- /package/dist/{ja-JP-tHJpSXnY.js → ja-JP-C_E_4yUn.js} +0 -0
- /package/dist/{ja-JP-wmwnTtNd.js → ja-JP-CwVkOC4Z.js} +0 -0
- /package/dist/{ja-JP-CJ3GhLS6.js → ja-JP-D91Qq9X0.js} +0 -0
- /package/dist/{ja-JP-D6OZ6CvT.js → ja-JP-DDT5jvAB.js} +0 -0
- /package/dist/{ja-JP-BRGxY7zc.js → ja-JP-DOkTs_1m.js} +0 -0
- /package/dist/{ja-JP-C7tIgG_I.js → ja-JP-DTqjZ_RP.js} +0 -0
- /package/dist/{ja-JP-DGUCWzjv.js → ja-JP-DYccStvn.js} +0 -0
- /package/dist/{ja-JP-CJY6uqPb.js → ja-JP-DoROjKZt.js} +0 -0
- /package/dist/{keys-C4gD4IDn.js → keys-fzUbt2xF.js} +0 -0
- /package/dist/{listToRecord-CVX8Zg0w.js → listToRecord-wN5QNS0D.js} +0 -0
- /package/dist/{location-NeA9HUsd.js → location-D--t6qb1.js} +0 -0
- /package/dist/{lt-LT-CYhgjOkW.js → lt-LT-2KIisO4_.js} +0 -0
- /package/dist/{lt-LT-D2-X0BmC2.js → lt-LT-8dDfYsF82.js} +0 -0
- /package/dist/{lt-LT-BVVTYN3z.js → lt-LT-CDRKdIqh.js} +0 -0
- /package/dist/{lt-LT-BJziTet92.js → lt-LT-DKeyLOpW2.js} +0 -0
- /package/dist/{lt-LT-BHpTAvkg.js → lt-LT-DN-ykSHh.js} +0 -0
- /package/dist/{lt-LT-_MAUl9-y.js → lt-LT-DpMT3Dw2.js} +0 -0
- /package/dist/{lt-LT-i2HdquzD.js → lt-LT-Dpy8srws.js} +0 -0
- /package/dist/{lt-LT-Dkvuak-E.js → lt-LT-IP4Sz8Gn.js} +0 -0
- /package/dist/{lt-LT-CB33emTJ.js → lt-LT-OGBNEWvq.js} +0 -0
- /package/dist/{lt-LT-DX-73rzB.js → lt-LT-QPJqX0US.js} +0 -0
- /package/dist/{lt-LT-CpQj1HiE.js → lt-LT-bBBImnIr.js} +0 -0
- /package/dist/{lv-LV-ZQOBF-l7.js → lv-LV-B34caEFv.js} +0 -0
- /package/dist/{lv-LV-BeobSRYx.js → lv-LV-BlsECQxr.js} +0 -0
- /package/dist/{lv-LV-D0EFr0dt.js → lv-LV-C9zoAq4h.js} +0 -0
- /package/dist/{lv-LV-BGMkr0W_.js → lv-LV-CHzgorrn.js} +0 -0
- /package/dist/{lv-LV-C8O_oUFu2.js → lv-LV-CIkyBWzC2.js} +0 -0
- /package/dist/{lv-LV-KCxxzpdw.js → lv-LV-CaTht4v3.js} +0 -0
- /package/dist/{lv-LV-WYtMR2p9.js → lv-LV-Cbnl_BTV.js} +0 -0
- /package/dist/{lv-LV-DIopAlNr.js → lv-LV-CcQHxQxD.js} +0 -0
- /package/dist/{lv-LV-ChlCGeIJ2.js → lv-LV-D4clLiV42.js} +0 -0
- /package/dist/{lv-LV-Cz0igciN.js → lv-LV-DlQGKdqk.js} +0 -0
- /package/dist/{lv-LV-Br4-Sv0n.js → lv-LV-aPZP5Wh5.js} +0 -0
- /package/dist/{mail-COcabAMU.js → mail-CoQ5t6Ml.js} +0 -0
- /package/dist/{mapAddressLocalizationToJpAddressSchema-CbGZXKK3.js → mapAddressLocalizationToJpAddressSchema-Cp77VSSB.js} +0 -0
- /package/dist/{minus-circle-filled-CnCOR8aV.js → minus-circle-filled-BdvEdxjZ.js} +0 -0
- /package/dist/{nl-NL-BTuDiajY.js → nl-NL-2uvrEI1a.js} +0 -0
- /package/dist/{nl-NL-Cbt7ybTe.js → nl-NL-6DRNI2_h.js} +0 -0
- /package/dist/{nl-NL-BtwZkAPX.js → nl-NL-6qgh_ZGA.js} +0 -0
- /package/dist/{nl-NL-v-EVwcVy2.js → nl-NL-BCCzwWkw2.js} +0 -0
- /package/dist/{nl-NL-BjbL2DHM2.js → nl-NL-BSq1sTYp2.js} +0 -0
- /package/dist/{nl-NL-DHNIfmgo.js → nl-NL-BUzOX91N.js} +0 -0
- /package/dist/{nl-NL-D16qC_X6.js → nl-NL-BXTbqvDG.js} +0 -0
- /package/dist/{nl-NL-BLie9b-e.js → nl-NL-BXVVoxv9.js} +0 -0
- /package/dist/{nl-NL-DKpjFbpm.js → nl-NL-CQ0C9N3m.js} +0 -0
- /package/dist/{nl-NL-BKmH_4rF.js → nl-NL-DI_aNYah.js} +0 -0
- /package/dist/{nl-NL-ByNQn3Ma.js → nl-NL-K11VO8LF.js} +0 -0
- /package/dist/{nl-NL-BQYwAxdm.js → nl-NL-kUujSdLA.js} +0 -0
- /package/dist/{no-NO-YjH9dIrD.js → no-NO-A9MwJ3y8.js} +0 -0
- /package/dist/{no-NO-CX2Lkpbt.js → no-NO-BNGILdWq.js} +0 -0
- /package/dist/{no-NO-DjTYr6zQ.js → no-NO-BNL9v_bl.js} +0 -0
- /package/dist/{no-NO-DkmYSpeK.js → no-NO-C037FAac.js} +0 -0
- /package/dist/{no-NO-D6C6Imfk.js → no-NO-CCtUTnqP.js} +0 -0
- /package/dist/{no-NO-DM2yevPv2.js → no-NO-CRUvKPvc2.js} +0 -0
- /package/dist/{no-NO-BXHYRl8q.js → no-NO-Cd0Nf4Kq.js} +0 -0
- /package/dist/{no-NO-BQ0yU2Fq.js → no-NO-DAK8yauA.js} +0 -0
- /package/dist/{no-NO-e0MZntB62.js → no-NO-DN8WIiN32.js} +0 -0
- /package/dist/{no-NO-CG5RteG_.js → no-NO-FfT6jM26.js} +0 -0
- /package/dist/{no-NO-ByxOHA9n.js → no-NO-hgC3Li7e.js} +0 -0
- /package/dist/{onfido-logo-Dx5zgOtY.js → onfido-logo-BXb14yhW.js} +0 -0
- /package/dist/{options-horizontal-CAznj1Vl.js → options-horizontal-p3bn-0YP.js} +0 -0
- /package/dist/{partner-BgRPuALU.js → partner-DAXf38Tp.js} +0 -0
- /package/dist/{passport-blurred-UX6p2KZ5.js → passport-blurred-DOfrfF0N.js} +0 -0
- /package/dist/{passport-cut-off-C4H57LgT.js → passport-cut-off-DwNmCL8v.js} +0 -0
- /package/dist/{passport-front-K9nDuC3A.js → passport-front-DLG09n5u.js} +0 -0
- /package/dist/{passport-front-green-8qBM6eHY.js → passport-front-green-BB3zGc3y.js} +0 -0
- /package/dist/{passport-glare-Cw4IMJSe.js → passport-glare-CkhvC36x.js} +0 -0
- /package/dist/{pay-by-link-plane-CblqKlzx.js → pay-by-link-plane-JUQ9G9Rb.js} +0 -0
- /package/dist/{payout-Dt-Rj2Dk.js → payout-Bp5yyaPy.js} +0 -0
- /package/dist/{payout-bank-accounts-CfRx1pMC.js → payout-bank-accounts-BN3KdVID.js} +0 -0
- /package/dist/{payout-verification-instant-Bb5s_R8u.js → payout-verification-instant-DOCBn9if.js} +0 -0
- /package/dist/{payout-verification-manual-TFGUjvg1.js → payout-verification-manual-DmhxH6y1.js} +0 -0
- /package/dist/{pdf-r5Zgu15b.js → pdf-nzZcuCSf.js} +0 -0
- /package/dist/{pdf.worker.min-BOMsFOV0.js → pdf.worker.min-DE42kNC_.js} +0 -0
- /package/dist/{person-CVbQ7VXy.js → person-CBe70ddT.js} +0 -0
- /package/dist/{pl-PL-NJRqx5mk.js → pl-PL-59aMUgvV.js} +0 -0
- /package/dist/{pl-PL-x6CltZUu.js → pl-PL-BVYFKqiG.js} +0 -0
- /package/dist/{pl-PL-DvZBOEKI.js → pl-PL-CpA94K5Z.js} +0 -0
- /package/dist/{pl-PL-DNdGYT-E.js → pl-PL-D3NzOQQU.js} +0 -0
- /package/dist/{pl-PL-aWhB1xes.js → pl-PL-DDxFQhlh.js} +0 -0
- /package/dist/{pl-PL-DjF-DV6q2.js → pl-PL-DYmR6-f32.js} +0 -0
- /package/dist/{pl-PL-DC1Izk5I2.js → pl-PL-D_FRhmnE2.js} +0 -0
- /package/dist/{pl-PL-C_ys8FVH.js → pl-PL-DeAckp5p.js} +0 -0
- /package/dist/{pl-PL-W0KU0YTp.js → pl-PL-DhJQbVhT.js} +0 -0
- /package/dist/{pl-PL-Bkdj5z2L.js → pl-PL-R2xSHe-z.js} +0 -0
- /package/dist/{pl-PL-R6bNjSQB.js → pl-PL-vU5_jmwK.js} +0 -0
- /package/dist/{plaid-logo-BzQDyZCh.js → plaid-logo-CjpdjGNT.js} +0 -0
- /package/dist/{plus-BbVfOPFJ.js → plus-DMRvapmz.js} +0 -0
- /package/dist/{plus-circle-filled-D9vpzgFw.js → plus-circle-filled-DUmcjiaH.js} +0 -0
- /package/dist/{pt-BR-DGIHaJzj.js → pt-BR-7qFnlWUK.js} +0 -0
- /package/dist/{pt-BR-CdeMGenL.js → pt-BR-B3IHhi-A.js} +0 -0
- /package/dist/{pt-BR-7FV4JArc.js → pt-BR-B5i0TdE9.js} +0 -0
- /package/dist/{pt-BR-CjoezwB32.js → pt-BR-BDEGOFU52.js} +0 -0
- /package/dist/{pt-BR-NPzViBFm2.js → pt-BR-BJXrQjtE2.js} +0 -0
- /package/dist/{pt-BR-VlNZLr8f.js → pt-BR-BM2eCcyF.js} +0 -0
- /package/dist/{pt-BR-BgiNMjMc.js → pt-BR-BdpAz26L.js} +0 -0
- /package/dist/{pt-BR-B0zBNcPy.js → pt-BR-BjLvBssy.js} +0 -0
- /package/dist/{pt-BR-CTxtcXRe.js → pt-BR-C7pxsNe-.js} +0 -0
- /package/dist/{pt-BR-Bb7L6a3z.js → pt-BR-D8hxPoFJ.js} +0 -0
- /package/dist/{pt-BR-C8nFgTo3.js → pt-BR-DGRn2oS9.js} +0 -0
- /package/dist/{pt-BR-DKqiUfwf.js → pt-BR-u_Sv-NkV.js} +0 -0
- /package/dist/{pt-PT-BEkfXdZQ.js → pt-PT-3DrMwWiz.js} +0 -0
- /package/dist/{pt-PT-C0GJNK9V.js → pt-PT-BBd1NJRh.js} +0 -0
- /package/dist/{pt-PT-Cu2VcZdJ.js → pt-PT-BTZOJZU6.js} +0 -0
- /package/dist/{pt-PT-CXRUusv_.js → pt-PT-BXlxPqah.js} +0 -0
- /package/dist/{pt-PT-Dmor9x6o.js → pt-PT-Bmgh2Wtd.js} +0 -0
- /package/dist/{pt-PT-BjB2uXSn.js → pt-PT-BqRmSpLn.js} +0 -0
- /package/dist/{pt-PT-CFcpXSKo.js → pt-PT-CEPDmPY7.js} +0 -0
- /package/dist/{pt-PT-D9QbJxzN.js → pt-PT-CI47ZET7.js} +0 -0
- /package/dist/{pt-PT-CWzCKCL8.js → pt-PT-CJVVRZyV.js} +0 -0
- /package/dist/{pt-PT-BRLRSNh92.js → pt-PT-CUSJRIfa2.js} +0 -0
- /package/dist/{pt-PT-Czy2_X1t.js → pt-PT-DBFZcKHi.js} +0 -0
- /package/dist/{pt-PT-CJpshC902.js → pt-PT-DFy0vZ_Z2.js} +0 -0
- /package/dist/{recurring-Cm_CVMBM.js → recurring-DoBaCr6V.js} +0 -0
- /package/dist/{reporting-BHGFV7yB.js → reporting-CuOey349.js} +0 -0
- /package/dist/{revenue-accelerate-uQp3MMWP.js → revenue-accelerate-BTrH1Kyc.js} +0 -0
- /package/dist/{review-DkLO25RT.js → review-CkmDUkhx.js} +0 -0
- /package/dist/{ro-RO-BRtHlgch.js → ro-RO-7iyzlI6_.js} +0 -0
- /package/dist/{ro-RO-tf_g2ahZ.js → ro-RO-B1HkfIdK.js} +0 -0
- /package/dist/{ro-RO-B3hA8dZo.js → ro-RO-Bf10OHuY.js} +0 -0
- /package/dist/{ro-RO-DLtPW1MX.js → ro-RO-Bl3OcC_Q.js} +0 -0
- /package/dist/{ro-RO-BCHziTju.js → ro-RO-C3g0pSKU.js} +0 -0
- /package/dist/{ro-RO-pGnT9ywa.js → ro-RO-C4lcxnWO.js} +0 -0
- /package/dist/{ro-RO-DoVJzEzv2.js → ro-RO-CA7NoMAg2.js} +0 -0
- /package/dist/{ro-RO-DsFDnuty2.js → ro-RO-CcQh__lV2.js} +0 -0
- /package/dist/{ro-RO-BHOTFHon.js → ro-RO-CfsDLBM4.js} +0 -0
- /package/dist/{ro-RO-C7wPFb1a.js → ro-RO-GldC3IcE.js} +0 -0
- /package/dist/{ro-RO-CT5uU3Rj.js → ro-RO-e45j_CyV.js} +0 -0
- /package/dist/{save-DsGcWvER.js → save-DtVvA4bm.js} +0 -0
- /package/dist/{search-BDJlT2t5.js → search-CwNfiquk.js} +0 -0
- /package/dist/{show-DLGXHz7A.js → show-mWAebR3W.js} +0 -0
- /package/dist/{singpass-logo-D1Z8HeLC.js → singpass-logo-DESKvfOJ.js} +0 -0
- /package/dist/{singpass-logo-small-CQC5e3lx.js → singpass-logo-small-CBW6iXWW.js} +0 -0
- /package/dist/{sk-SK-xqB2A84D.js → sk-SK-BSv5VXox.js} +0 -0
- /package/dist/{sk-SK--ohjuOMW.js → sk-SK-BpMbHWuR.js} +0 -0
- /package/dist/{sk-SK-CUBTdFYv2.js → sk-SK-C8d17RvE2.js} +0 -0
- /package/dist/{sk-SK-Bt_mgDPR.js → sk-SK-C9Cst_ER.js} +0 -0
- /package/dist/{sk-SK-DaSC7QsL.js → sk-SK-Cd48q22c.js} +0 -0
- /package/dist/{sk-SK-BlhtDQel.js → sk-SK-ChCtHT1F.js} +0 -0
- /package/dist/{sk-SK-CV-IEeZp2.js → sk-SK-D6xioiMY2.js} +0 -0
- /package/dist/{sk-SK-DkianEJG.js → sk-SK-DXRluu5W.js} +0 -0
- /package/dist/{sk-SK-DwG8xkcP.js → sk-SK-tk_1fC8g.js} +0 -0
- /package/dist/{sk-SK-HLMucQBt.js → sk-SK-wzPlUKNj.js} +0 -0
- /package/dist/{sk-SK-DNKyL6Hl.js → sk-SK-y3Dcsvdc.js} +0 -0
- /package/dist/{sl-SI-PsgMnJ-h.js → sl-SI-B-t1nY1x.js} +0 -0
- /package/dist/{sl-SI-CKA1EM-J.js → sl-SI-Bfdb7gjw.js} +0 -0
- /package/dist/{sl-SI-Cg7e65lb2.js → sl-SI-CRk5cPQq2.js} +0 -0
- /package/dist/{sl-SI-DNgxTuIJ.js → sl-SI-CX-qAqMO.js} +0 -0
- /package/dist/{sl-SI-DyC9aHm4.js → sl-SI-ChCyYnjd.js} +0 -0
- /package/dist/{sl-SI-Br0agZj0.js → sl-SI-D6evG9fK.js} +0 -0
- /package/dist/{sl-SI-DnpKMUhR.js → sl-SI-DiLuydaN.js} +0 -0
- /package/dist/{sl-SI-qFjMTfKg2.js → sl-SI-DpgW-r5w.js} +0 -0
- /package/dist/{sl-SI-C6KiyZyh.js → sl-SI-DvXrcue1.js} +0 -0
- /package/dist/{sl-SI-DWJzi8r_.js → sl-SI-gUNcHR30.js} +0 -0
- /package/dist/{sl-SI-BlsVauZ9.js → sl-SI-uhzy0HC12.js} +0 -0
- /package/dist/{solution-payments-CVSsXgo9.js → solution-payments-rYk5tB74.js} +0 -0
- /package/dist/{store-COYFYobc.js → store-vKCOvUVJ.js} +0 -0
- /package/dist/{sv-SE-CWkxvOEr.js → sv-SE-4oyeOi4Y.js} +0 -0
- /package/dist/{sv-SE-Dsrb2FFw.js → sv-SE-BOEa4u9p.js} +0 -0
- /package/dist/{sv-SE-DTpqjuJd.js → sv-SE-BhwzqPYQ.js} +0 -0
- /package/dist/{sv-SE-BMG9p-1J.js → sv-SE-BoITS9np.js} +0 -0
- /package/dist/{sv-SE-D3hPP-Mp.js → sv-SE-Bpo3MgEr.js} +0 -0
- /package/dist/{sv-SE-BM8WESGs.js → sv-SE-Bx_Mk5xx.js} +0 -0
- /package/dist/{sv-SE-CTB2971Y.js → sv-SE-CMkXS2cO.js} +0 -0
- /package/dist/{sv-SE-Q7zk4V9W2.js → sv-SE-CRPJUyOE2.js} +0 -0
- /package/dist/{sv-SE-xHYNkpLd.js → sv-SE-DhNNMEwq.js} +0 -0
- /package/dist/{sv-SE-C-MkmGdq.js → sv-SE-DlYizFz8.js} +0 -0
- /package/dist/{sv-SE-BDo_8Bf92.js → sv-SE-Iv-yFbrD2.js} +0 -0
- /package/dist/{sv-SE-CBNLo-2r.js → sv-SE-i9koytKp.js} +0 -0
- /package/dist/{taskStatus-CvMqhrOK.js → taskStatus-DPUG3NS3.js} +0 -0
- /package/dist/{taskTypes-DWaxzvnQ.js → taskTypes-CDFRB7A4.js} +0 -0
- /package/dist/{tax-reporting-graph-368jm2t2.js → tax-reporting-graph-DNooZCbb.js} +0 -0
- /package/dist/{terminal-1-C98Z-HQT.js → terminal-1-BOv4YorG.js} +0 -0
- /package/dist/{tink-logo-b8D53Kmq.js → tink-logo-CqXir9XT.js} +0 -0
- /package/dist/{trustMemberGuidance-paR1FXfI.js → trustMemberGuidance-2rtnGkMG.js} +0 -0
- /package/dist/{types-BklAlvuU.js → types-CNZsK2dZ.js} +0 -0
- /package/dist/{upload-hnGE-ssH.js → upload-StAXlB73.js} +0 -0
- /package/dist/{us-check-BgX0xeVz.js → us-check-BW6K3WxJ.js} +0 -0
- /package/dist/{us-check-account-number-DKJO3VuM.js → us-check-account-number-BME1X1ZC.js} +0 -0
- /package/dist/{us-check-routing-number-C0VuN5fT.js → us-check-routing-number-UatGnO16.js} +0 -0
- /package/dist/{useToggleContext-CLfowItk.js → useToggleContext-B57-85xe.js} +0 -0
- /package/dist/{validate-_5wbUbU9.js → validate-maTmOby_.js} +0 -0
- /package/dist/{view-verification-status-C3zAZhYk.js → view-verification-status-CtW_qUMg.js} +0 -0
- /package/dist/{warning-circle-fill-BjxM4aj1.js → warning-circle-fill-BZhgf5Z8.js} +0 -0
- /package/dist/{warning-diamond-filled-CtCJ9xf8.js → warning-diamond-filled-hJarrWMO.js} +0 -0
- /package/dist/{webinar-D_daN2X8.js → webinar-j4tLxNVB.js} +0 -0
- /package/dist/{yapily-logo-ByJSYIQm.js → yapily-logo-upggwl6u.js} +0 -0
|
@@ -0,0 +1,2775 @@
|
|
|
1
|
+
try {
|
|
2
|
+
let e = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : {}, n = new e.Error().stack;
|
|
3
|
+
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "ee2722a7-cb9e-4b47-94dd-30f8319c8deb", e._sentryDebugIdIdentifier = "sentry-dbid-ee2722a7-cb9e-4b47-94dd-30f8319c8deb");
|
|
4
|
+
} catch (e) {}
|
|
5
|
+
import { a as Icon, c as __exportAll, i as Typography, n as addResourceBundles, o as createLogger, r as useTranslation } from "./translation-BHUZ_WP7.js";
|
|
6
|
+
import { n as IconButton, r as Loader, t as Button } from "./Button-BxfzWsRl.js";
|
|
7
|
+
import { n as httpGet, r as httpPost, s as useApiContext } from "./http-D5tz1jGD.js";
|
|
8
|
+
import { n as useLegalEntities, r as useLegalEntity, t as ROOT_LE } from "./useLegalEntity-k2lxoMzW.js";
|
|
9
|
+
import { t as LegalEntityTypes } from "./legal-entity-type-VIfNYnJP.js";
|
|
10
|
+
import { t as getLegalEntityCountry } from "./getLegalEntityCountry-C6bSV6sB.js";
|
|
11
|
+
import { o as objectsDeepEqual } from "./AnalyticsContext-CbM5V7Nw.js";
|
|
12
|
+
import { t as _rolldown_dynamic_import_helper_default } from "./_rolldown_dynamic_import_helper-C4ugHLZT.js";
|
|
13
|
+
import { t as StackLayout } from "./StackLayout-CTLQyVDf.js";
|
|
14
|
+
import { n as TASK_STATUS_POLLING_INTERVAL_MS } from "./taskStatus-DPUG3NS3.js";
|
|
15
|
+
import { t as Header } from "./Header-fY8HlUFH.js";
|
|
16
|
+
import { t as Alert } from "./Alert-BYrDkvk9.js";
|
|
17
|
+
import { C as EntityTypes } from "./processCapabilities-C3-DrzSD.js";
|
|
18
|
+
import { t as TaskTypes } from "./taskTypes-CDFRB7A4.js";
|
|
19
|
+
import { t as useBusinessLines } from "./useBusinessLines-BE_hXjkY.js";
|
|
20
|
+
import { t as Card } from "./Card-BylPFvY4.js";
|
|
21
|
+
import { t as useAnalyticsContext } from "./useAnalyticsContext-pNSIB8AZ.js";
|
|
22
|
+
import { t as useToastContext } from "./useToastContext-BIwgSCxA.js";
|
|
23
|
+
import { n as useCapabilityProblems, t as getProblemsForEntity } from "./getProblemsForEntity-B9GOFyRX.js";
|
|
24
|
+
import { t as useInvalidateRootLegalEntity } from "./invalidateRootLegalEntity-D7_UqU5H.js";
|
|
25
|
+
import { t as Avatar } from "./Avatar-CuGCWCs9.js";
|
|
26
|
+
import { t as Modal } from "./Modal-CMKjvMyV.js";
|
|
27
|
+
import { t as Confirm } from "./Confirm-BEZEArAy.js";
|
|
28
|
+
import { t as Image } from "./Image-BBLBIviv.js";
|
|
29
|
+
import { n as translateTranslatable } from "./utils-g_Wl4-9Z.js";
|
|
30
|
+
import { t as useCreateLegalEntity } from "./useCreateLegalEntity-DWNHPjAr.js";
|
|
31
|
+
import { t as useUpdateLegalEntity } from "./useUpdateLegalEntity-CfJs-A1X.js";
|
|
32
|
+
import { i as FormFlow, n as addValidityToForms, o as useFormComposer, r as getRequiredForms, s as FormContextProvider, t as useFormContext } from "./useFormContext-DGW15-id.js";
|
|
33
|
+
import { t as StructuredList } from "./StructuredList-S4LIZQiJ.js";
|
|
34
|
+
import { t as ErrorPanel } from "./ErrorPanel-CzX5ev6p.js";
|
|
35
|
+
import { t as createFormUtils } from "./formUtils-C7vlzCV-.js";
|
|
36
|
+
import { t as useMultiForm } from "./useMultiForm-BZBzYZ-3.js";
|
|
37
|
+
import { t as useTaskLandedEvent } from "./useTaskLandedEvent-BdO8qSBg.js";
|
|
38
|
+
import { o as createDocumentRequest, s as documentApiUtils } from "./validate-J6U_ulFs.js";
|
|
39
|
+
import { r as formatObject } from "./utils--gwzjjeS.js";
|
|
40
|
+
import { t as localizeDateString } from "./localizeDateString-Bni_Kn5k.js";
|
|
41
|
+
import { t as Field } from "./Field-Vzlyifk5.js";
|
|
42
|
+
import { t as TileGroup } from "./TileGroup-irJw9YNz.js";
|
|
43
|
+
import { t as LandingLayout } from "./LandingLayout-BK3kV0FL.js";
|
|
44
|
+
import { t as Select } from "./Select-CRVpXZ1k.js";
|
|
45
|
+
import { t as Checkbox } from "./Checkbox-BRuXJ18x.js";
|
|
46
|
+
import { t as TextArea } from "./TextArea-CIgJgN16.js";
|
|
47
|
+
import { t as Dropzone } from "./Dropzone-BbBVtqN9.js";
|
|
48
|
+
import { t as InputText } from "./InputText-BK_8YUd_.js";
|
|
49
|
+
import { t as InputDate } from "./InputDate--h7l0kcO.js";
|
|
50
|
+
import { n as CountryField } from "./CountryField-DhNTIfGL.js";
|
|
51
|
+
import { t as RadioGroup } from "./RadioGroup-Bc8reZVM.js";
|
|
52
|
+
import { t as InputGroup } from "./InputGroup-B8AaetlI.js";
|
|
53
|
+
import { t as isEmpty } from "./isEmpty-Bi8OJ7I4.js";
|
|
54
|
+
import { t as Currencies } from "./currency-B8-OEAgj.js";
|
|
55
|
+
import { n as validateDateNotInTheFuture } from "./validate-maTmOby_.js";
|
|
56
|
+
import { t as useTaskStatus } from "./useTaskStatus-DPyTD_Ko.js";
|
|
57
|
+
import { t as formatAmountWithCurrency } from "./formatCurrency-D-m2ri-x.js";
|
|
58
|
+
import { lazy } from "preact/compat";
|
|
59
|
+
import { useCallback as useCallback$1, useEffect as useEffect$1, useMemo as useMemo$1, useState as useState$1 } from "preact/hooks";
|
|
60
|
+
import { Fragment as Fragment$1, jsx, jsxs } from "preact/jsx-runtime";
|
|
61
|
+
import { signal } from "@preact/signals";
|
|
62
|
+
import { useMutation, useQuery, useQueryClient } from "@tanstack/preact-query";
|
|
63
|
+
//#region src/api/businessLines/useUpdateSourceOfFunds.ts
|
|
64
|
+
var updateSourceOfFunds = async (businessLineId, legalEntityId, baseUrl, data) => {
|
|
65
|
+
return httpPost({
|
|
66
|
+
baseUrl,
|
|
67
|
+
path: `legalEntities/${legalEntityId}/businessLines/${businessLineId}/sourceOfFunds`
|
|
68
|
+
}, data);
|
|
69
|
+
};
|
|
70
|
+
var useUpdateSourceOfFunds = (options) => {
|
|
71
|
+
const { rootLegalEntityId, baseUrl } = useApiContext();
|
|
72
|
+
const invalidateRootLegalEntity = useInvalidateRootLegalEntity();
|
|
73
|
+
return useMutation({
|
|
74
|
+
mutationFn: ({ businessLineId, ...requestData }) => updateSourceOfFunds(businessLineId, rootLegalEntityId.value, baseUrl.value, requestData),
|
|
75
|
+
onSuccess: async () => {
|
|
76
|
+
await invalidateRootLegalEntity();
|
|
77
|
+
},
|
|
78
|
+
...options
|
|
79
|
+
});
|
|
80
|
+
};
|
|
81
|
+
var sourceOfFundsComponentsKeyMapping = {
|
|
82
|
+
"sourceOfFundsType.type": "sourceOfFunds.type",
|
|
83
|
+
"additionalData.description": "sourceOfFunds.description",
|
|
84
|
+
"additionalData.amount": "sourceOfFunds.amount",
|
|
85
|
+
"additionalData.dateOfFundsReceived": "sourceOfFunds.dateOfFundsReceived",
|
|
86
|
+
"additionalData.purpose": "sourceOfFunds.purpose",
|
|
87
|
+
"additionalData.relationship": "sourceOfFunds.relationship",
|
|
88
|
+
"additionalData.originatorLegalEntityId": "sourceOfFunds.originatorLegalEntityId",
|
|
89
|
+
"additionalData.financiers": "sourceOfFunds.financiers",
|
|
90
|
+
"additionalData.cryptocurrencyExchange": "sourceOfFunds.cryptocurrencyExchange",
|
|
91
|
+
"additionalData.dateOfSourceEvent": "sourceOfFunds.dateOfSourceEvent",
|
|
92
|
+
"additionalData.website": "sourceOfFunds.website",
|
|
93
|
+
"additionalData.legalName": "sourceOfFunds.legalName",
|
|
94
|
+
"additionalData.firstName": "sourceOfFunds.firstName",
|
|
95
|
+
"additionalData.lastName": "sourceOfFunds.lastName",
|
|
96
|
+
"additionalData.country": "sourceOfFunds.country",
|
|
97
|
+
"additionalData.originatorType": "sourceOfFunds.originatorType"
|
|
98
|
+
};
|
|
99
|
+
//#endregion
|
|
100
|
+
//#region src/components/EFP/mapping/mapSourceOfFundToSourceOfFundsSchema.ts
|
|
101
|
+
var mapSourceOfFundToSourceOfFundsSchema = (businessLine) => formatObject(businessLine, sourceOfFundsComponentsKeyMapping);
|
|
102
|
+
//#endregion
|
|
103
|
+
//#region src/components/EFP/tasks/SourceOfFundsDropin/sofStore.ts
|
|
104
|
+
var sofErrorMessage = signal(void 0);
|
|
105
|
+
var setSofErrorMessage = (message) => {
|
|
106
|
+
sofErrorMessage.value = message;
|
|
107
|
+
};
|
|
108
|
+
var clearSofErrorMessage = () => {
|
|
109
|
+
sofErrorMessage.value = void 0;
|
|
110
|
+
};
|
|
111
|
+
//#endregion
|
|
112
|
+
//#region src/api/datasets/useSourceOfFundsTypes.ts
|
|
113
|
+
var getSourceOfFundsTypes = async (baseUrl) => {
|
|
114
|
+
return httpGet({
|
|
115
|
+
baseUrl,
|
|
116
|
+
path: `datasets/sourceOfFundsTypes`
|
|
117
|
+
});
|
|
118
|
+
};
|
|
119
|
+
var useSourceOfFundsTypes = (options) => {
|
|
120
|
+
const { baseUrl } = useApiContext();
|
|
121
|
+
return useQuery({
|
|
122
|
+
queryKey: ["sourceOfFundsTypes"],
|
|
123
|
+
queryFn: () => getSourceOfFundsTypes(baseUrl.value),
|
|
124
|
+
...options
|
|
125
|
+
});
|
|
126
|
+
};
|
|
127
|
+
var SourceOfFunds_module_default = {
|
|
128
|
+
"source-of-funds": "adyen-kyc-source-of-funds",
|
|
129
|
+
sourceOfFunds: "adyen-kyc-source-of-funds",
|
|
130
|
+
"source-of-funds-awe": "adyen-kyc-source-of-funds-awe",
|
|
131
|
+
sourceOfFundsAwe: "adyen-kyc-source-of-funds-awe",
|
|
132
|
+
"source-of-funds-wrapper-loading": "adyen-kyc-source-of-funds-wrapper-loading",
|
|
133
|
+
sourceOfFundsWrapperLoading: "adyen-kyc-source-of-funds-wrapper-loading",
|
|
134
|
+
"source-of-funds-wrapper-heading": "adyen-kyc-source-of-funds-wrapper-heading",
|
|
135
|
+
sourceOfFundsWrapperHeading: "adyen-kyc-source-of-funds-wrapper-heading",
|
|
136
|
+
"source-of-funds-wrapper-description": "adyen-kyc-source-of-funds-wrapper-description",
|
|
137
|
+
sourceOfFundsWrapperDescription: "adyen-kyc-source-of-funds-wrapper-description",
|
|
138
|
+
"source-of-funds-same-as-checkbox": "adyen-kyc-source-of-funds-same-as-checkbox",
|
|
139
|
+
sourceOfFundsSameAsCheckbox: "adyen-kyc-source-of-funds-same-as-checkbox",
|
|
140
|
+
"source-of-funds-getting-started": "adyen-kyc-source-of-funds-getting-started",
|
|
141
|
+
sourceOfFundsGettingStarted: "adyen-kyc-source-of-funds-getting-started",
|
|
142
|
+
"source-of-funds-getting-started-awe": "adyen-kyc-source-of-funds-getting-started-awe",
|
|
143
|
+
sourceOfFundsGettingStartedAwe: "adyen-kyc-source-of-funds-getting-started-awe",
|
|
144
|
+
"source-of-funds-getting-started-heading": "adyen-kyc-source-of-funds-getting-started-heading",
|
|
145
|
+
sourceOfFundsGettingStartedHeading: "adyen-kyc-source-of-funds-getting-started-heading",
|
|
146
|
+
"source-of-funds-getting-started-body": "adyen-kyc-source-of-funds-getting-started-body",
|
|
147
|
+
sourceOfFundsGettingStartedBody: "adyen-kyc-source-of-funds-getting-started-body",
|
|
148
|
+
"source-of-funds-getting-started-error": "adyen-kyc-source-of-funds-getting-started-error",
|
|
149
|
+
sourceOfFundsGettingStartedError: "adyen-kyc-source-of-funds-getting-started-error",
|
|
150
|
+
"source-of-funds-getting-started-error-actions": "adyen-kyc-source-of-funds-getting-started-error-actions",
|
|
151
|
+
sourceOfFundsGettingStartedErrorActions: "adyen-kyc-source-of-funds-getting-started-error-actions",
|
|
152
|
+
"source-of-funds-getting-started-cards": "adyen-kyc-source-of-funds-getting-started-cards",
|
|
153
|
+
sourceOfFundsGettingStartedCards: "adyen-kyc-source-of-funds-getting-started-cards",
|
|
154
|
+
"source-of-funds-getting-started-cards-card": "adyen-kyc-source-of-funds-getting-started-cards-card",
|
|
155
|
+
sourceOfFundsGettingStartedCardsCard: "adyen-kyc-source-of-funds-getting-started-cards-card",
|
|
156
|
+
"source-of-funds-getting-started-cards-card-header": "adyen-kyc-source-of-funds-getting-started-cards-card-header",
|
|
157
|
+
sourceOfFundsGettingStartedCardsCardHeader: "adyen-kyc-source-of-funds-getting-started-cards-card-header",
|
|
158
|
+
"source-of-funds-getting-started-cards-card-body": "adyen-kyc-source-of-funds-getting-started-cards-card-body",
|
|
159
|
+
sourceOfFundsGettingStartedCardsCardBody: "adyen-kyc-source-of-funds-getting-started-cards-card-body",
|
|
160
|
+
"source-of-funds-getting-started-actions": "adyen-kyc-source-of-funds-getting-started-actions",
|
|
161
|
+
sourceOfFundsGettingStartedActions: "adyen-kyc-source-of-funds-getting-started-actions",
|
|
162
|
+
"source-of-funds-additional-data-form": "adyen-kyc-source-of-funds-additional-data-form",
|
|
163
|
+
sourceOfFundsAdditionalDataForm: "adyen-kyc-source-of-funds-additional-data-form",
|
|
164
|
+
"source-of-funds-third-party-funding-financier-group": "adyen-kyc-source-of-funds-third-party-funding-financier-group",
|
|
165
|
+
sourceOfFundsThirdPartyFundingFinancierGroup: "adyen-kyc-source-of-funds-third-party-funding-financier-group",
|
|
166
|
+
"source-of-funds-third-party-funding-name-avatar-group": "adyen-kyc-source-of-funds-third-party-funding-name-avatar-group",
|
|
167
|
+
sourceOfFundsThirdPartyFundingNameAvatarGroup: "adyen-kyc-source-of-funds-third-party-funding-name-avatar-group",
|
|
168
|
+
"source-of-funds-third-party-funding-name-address-group": "adyen-kyc-source-of-funds-third-party-funding-name-address-group",
|
|
169
|
+
sourceOfFundsThirdPartyFundingNameAddressGroup: "adyen-kyc-source-of-funds-third-party-funding-name-address-group",
|
|
170
|
+
"source-of-funds-sof-financier-form-error": "adyen-kyc-source-of-funds-sof-financier-form-error",
|
|
171
|
+
sourceOfFundsSofFinancierFormError: "adyen-kyc-source-of-funds-sof-financier-form-error",
|
|
172
|
+
"source-of-funds-sof-financier-form-name-group": "adyen-kyc-source-of-funds-sof-financier-form-name-group",
|
|
173
|
+
sourceOfFundsSofFinancierFormNameGroup: "adyen-kyc-source-of-funds-sof-financier-form-name-group",
|
|
174
|
+
"source-of-funds-financier-footer": "adyen-kyc-source-of-funds-financier-footer",
|
|
175
|
+
sourceOfFundsFinancierFooter: "adyen-kyc-source-of-funds-financier-footer",
|
|
176
|
+
"source-of-funds-grid-container": "adyen-kyc-source-of-funds-grid-container",
|
|
177
|
+
sourceOfFundsGridContainer: "adyen-kyc-source-of-funds-grid-container",
|
|
178
|
+
"source-of-funds-sub-heading": "adyen-kyc-source-of-funds-sub-heading",
|
|
179
|
+
sourceOfFundsSubHeading: "adyen-kyc-source-of-funds-sub-heading",
|
|
180
|
+
"source-of-funds-upload-modal-content-field": "adyen-kyc-source-of-funds-upload-modal-content-field",
|
|
181
|
+
sourceOfFundsUploadModalContentField: "adyen-kyc-source-of-funds-upload-modal-content-field",
|
|
182
|
+
"source-of-funds-upload-modal-content-field-radio-group": "adyen-kyc-source-of-funds-upload-modal-content-field-radio-group",
|
|
183
|
+
sourceOfFundsUploadModalContentFieldRadioGroup: "adyen-kyc-source-of-funds-upload-modal-content-field-radio-group",
|
|
184
|
+
"source-of-funds-upload-modal-content-requirements-container": "adyen-kyc-source-of-funds-upload-modal-content-requirements-container",
|
|
185
|
+
sourceOfFundsUploadModalContentRequirementsContainer: "adyen-kyc-source-of-funds-upload-modal-content-requirements-container",
|
|
186
|
+
"source-of-funds-upload-list-heading": "adyen-kyc-source-of-funds-upload-list-heading",
|
|
187
|
+
sourceOfFundsUploadListHeading: "adyen-kyc-source-of-funds-upload-list-heading",
|
|
188
|
+
"source-of-funds-modal": "adyen-kyc-source-of-funds-modal",
|
|
189
|
+
sourceOfFundsModal: "adyen-kyc-source-of-funds-modal"
|
|
190
|
+
};
|
|
191
|
+
//#endregion
|
|
192
|
+
//#region src/components/EFP/tasks/SourceOfFundsDropin/types.ts
|
|
193
|
+
var additionalDataSchemaKeys = [
|
|
194
|
+
"description",
|
|
195
|
+
"dateOfFundsReceived",
|
|
196
|
+
"purpose",
|
|
197
|
+
"relationship",
|
|
198
|
+
"originatorLegalEntityId",
|
|
199
|
+
"amount",
|
|
200
|
+
"financiers",
|
|
201
|
+
"cryptocurrencyExchange",
|
|
202
|
+
"dateOfSourceEvent",
|
|
203
|
+
"website"
|
|
204
|
+
];
|
|
205
|
+
//#endregion
|
|
206
|
+
//#region src/components/EFP/tasks/SourceOfFundsDropin/utils.tsx
|
|
207
|
+
var allowedCurrencies = Object.entries(Currencies).map(([key]) => ({
|
|
208
|
+
name: key,
|
|
209
|
+
id: key
|
|
210
|
+
}));
|
|
211
|
+
var TODAY_DATE = (/* @__PURE__ */ new Date()).toISOString().split("T")[0];
|
|
212
|
+
var getSchemaForOriginator = (baseSchema, originatorType) => {
|
|
213
|
+
if (originatorType === "organization") return [...baseSchema, "legalName"];
|
|
214
|
+
if (originatorType === "individual") return [
|
|
215
|
+
...baseSchema,
|
|
216
|
+
"firstName",
|
|
217
|
+
"lastName"
|
|
218
|
+
];
|
|
219
|
+
return baseSchema;
|
|
220
|
+
};
|
|
221
|
+
var getAdditionalDataSchemaKeys = (sourceOfFundsType, originatorType) => {
|
|
222
|
+
switch (sourceOfFundsType) {
|
|
223
|
+
case "business": return ["amount", "description"];
|
|
224
|
+
case "donations": return getSchemaForOriginator([
|
|
225
|
+
"dateOfFundsReceived",
|
|
226
|
+
"purpose",
|
|
227
|
+
"relationship",
|
|
228
|
+
"country",
|
|
229
|
+
"originatorType"
|
|
230
|
+
], originatorType);
|
|
231
|
+
case "inheritance": return getSchemaForOriginator([
|
|
232
|
+
"dateOfFundsReceived",
|
|
233
|
+
"amount",
|
|
234
|
+
"relationship",
|
|
235
|
+
"country",
|
|
236
|
+
"originatorType"
|
|
237
|
+
], originatorType);
|
|
238
|
+
case "thirdPartyFunding": return ["financiers"];
|
|
239
|
+
case "cryptocurrencyIncome": return ["cryptocurrencyExchange"];
|
|
240
|
+
case "assetSale": return [
|
|
241
|
+
"dateOfSourceEvent",
|
|
242
|
+
"description",
|
|
243
|
+
"amount"
|
|
244
|
+
];
|
|
245
|
+
case "gamblingWinnings": return [
|
|
246
|
+
"dateOfSourceEvent",
|
|
247
|
+
"website",
|
|
248
|
+
"amount"
|
|
249
|
+
];
|
|
250
|
+
default: return [];
|
|
251
|
+
}
|
|
252
|
+
};
|
|
253
|
+
var getServiceTranslation = (t, service) => {
|
|
254
|
+
switch (service) {
|
|
255
|
+
case "banking": return t(($) => $["businessBankAccounts"]);
|
|
256
|
+
case "issuing": return t(($) => $["paymentCards"]);
|
|
257
|
+
case "paymentProcessing": return t(($) => $["acceptingPayments"]);
|
|
258
|
+
default: return t(($) => $["supportingDocuments"]);
|
|
259
|
+
}
|
|
260
|
+
};
|
|
261
|
+
var getServiceTranslationSelectTitle = (t, service) => {
|
|
262
|
+
switch (service) {
|
|
263
|
+
case "banking": return t(($) => $["forYourBusinessBankAccounts"]);
|
|
264
|
+
case "issuing": return t(($) => $["forYourPaymentCards"]);
|
|
265
|
+
case "paymentProcessing": return t(($) => $["whenAcceptingPayments"]);
|
|
266
|
+
default: return t(($) => $["supportingDocuments"]);
|
|
267
|
+
}
|
|
268
|
+
};
|
|
269
|
+
var getServiceTranslationKey = (service) => {
|
|
270
|
+
switch (service) {
|
|
271
|
+
case "banking": return "bankingService";
|
|
272
|
+
case "issuing": return "issuingService";
|
|
273
|
+
case "paymentProcessing": return "paymentService";
|
|
274
|
+
default: return "supportingDocuments";
|
|
275
|
+
}
|
|
276
|
+
};
|
|
277
|
+
var getGettingStartedCardDetails = (sourceOfFundsType, t, data) => {
|
|
278
|
+
const details = [];
|
|
279
|
+
sourceOfFundsType?.forEach((type) => {
|
|
280
|
+
switch (type) {
|
|
281
|
+
case "amount":
|
|
282
|
+
details.push({
|
|
283
|
+
term: t(($) => $["amount"]),
|
|
284
|
+
details: data?.amount?.currency && data?.amount?.value ? formatAmountWithCurrency(data.amount.value, data.amount.currency) : ""
|
|
285
|
+
});
|
|
286
|
+
break;
|
|
287
|
+
case "description":
|
|
288
|
+
details.push({
|
|
289
|
+
term: t(($) => $["description"]),
|
|
290
|
+
details: data?.description || ""
|
|
291
|
+
});
|
|
292
|
+
break;
|
|
293
|
+
case "dateOfFundsReceived":
|
|
294
|
+
details.push({
|
|
295
|
+
term: t(($) => $["date"]),
|
|
296
|
+
details: localizeDateString(data?.dateOfFundsReceived || "", navigator.language)
|
|
297
|
+
});
|
|
298
|
+
break;
|
|
299
|
+
case "purpose":
|
|
300
|
+
details.push({
|
|
301
|
+
term: t(($) => $["reason"]),
|
|
302
|
+
details: data?.purpose || ""
|
|
303
|
+
});
|
|
304
|
+
break;
|
|
305
|
+
case "relationship":
|
|
306
|
+
details.push({
|
|
307
|
+
term: t(($) => $["relationship"]),
|
|
308
|
+
details: data?.relationship || ""
|
|
309
|
+
});
|
|
310
|
+
break;
|
|
311
|
+
case "originatorLegalEntityId":
|
|
312
|
+
details.push({
|
|
313
|
+
term: t(($) => $["benefactorDetails"]),
|
|
314
|
+
details: [data?.legalName ? `${data?.legalName}` : `${data?.firstName} ${data?.lastName}`, /* @__PURE__ */ jsx(Typography, {
|
|
315
|
+
color: "secondary",
|
|
316
|
+
children: data?.country || ""
|
|
317
|
+
}, "location")]
|
|
318
|
+
});
|
|
319
|
+
break;
|
|
320
|
+
case "financiers":
|
|
321
|
+
data?.financiers?.map((financier) => {
|
|
322
|
+
return details.push({
|
|
323
|
+
term: t(($) => $["investor"]),
|
|
324
|
+
details: [
|
|
325
|
+
`${financier?.firstName} ${financier?.lastName}`,
|
|
326
|
+
/* @__PURE__ */ jsx(Typography, {
|
|
327
|
+
color: "secondary",
|
|
328
|
+
children: financier?.location || ""
|
|
329
|
+
}, "location"),
|
|
330
|
+
/* @__PURE__ */ jsx(Typography, {
|
|
331
|
+
color: "secondary",
|
|
332
|
+
children: financier?.amount?.currency && financier?.amount?.value ? formatAmountWithCurrency(financier.amount.value, financier.amount.currency) || "" : ""
|
|
333
|
+
}, "value")
|
|
334
|
+
]
|
|
335
|
+
});
|
|
336
|
+
});
|
|
337
|
+
break;
|
|
338
|
+
case "cryptocurrencyExchange":
|
|
339
|
+
details.push({
|
|
340
|
+
term: t(($) => $["cryptocurrencyExchange"]),
|
|
341
|
+
details: data?.cryptocurrencyExchange || ""
|
|
342
|
+
});
|
|
343
|
+
break;
|
|
344
|
+
case "dateOfSourceEvent":
|
|
345
|
+
details.push({
|
|
346
|
+
term: t(($) => $["dateOfSourceEvent"]),
|
|
347
|
+
details: localizeDateString(data?.dateOfSourceEvent || "", navigator.language)
|
|
348
|
+
});
|
|
349
|
+
break;
|
|
350
|
+
case "website":
|
|
351
|
+
details.push({
|
|
352
|
+
term: t(($) => $["website"]),
|
|
353
|
+
details: data?.website || ""
|
|
354
|
+
});
|
|
355
|
+
break;
|
|
356
|
+
default: break;
|
|
357
|
+
}
|
|
358
|
+
});
|
|
359
|
+
return details;
|
|
360
|
+
};
|
|
361
|
+
var sourceOfFundsForms = {
|
|
362
|
+
sourceOfFundsType: {
|
|
363
|
+
formId: "sourceOfFundsType",
|
|
364
|
+
formName: "selectASourceOfFunding",
|
|
365
|
+
fields: ["type"]
|
|
366
|
+
},
|
|
367
|
+
additionalData: {
|
|
368
|
+
formId: "additionalData",
|
|
369
|
+
formName: "tellUsMoreAboutThisSource",
|
|
370
|
+
fields: [...additionalDataSchemaKeys]
|
|
371
|
+
}
|
|
372
|
+
};
|
|
373
|
+
var getSourceOfFundsRequiredFields = (data) => {
|
|
374
|
+
const sourceOfFundsType = data?.sourceOfFundsType?.type;
|
|
375
|
+
const originatorType = data?.additionalData?.originatorType;
|
|
376
|
+
return {
|
|
377
|
+
sourceOfFundsType: ["type"],
|
|
378
|
+
additionalData: getAdditionalDataSchemaKeys(sourceOfFundsType, originatorType)
|
|
379
|
+
};
|
|
380
|
+
};
|
|
381
|
+
var typesRequiringAdditionalData = [
|
|
382
|
+
"business",
|
|
383
|
+
"donations",
|
|
384
|
+
"inheritance",
|
|
385
|
+
"thirdPartyFunding",
|
|
386
|
+
"cryptocurrencyIncome",
|
|
387
|
+
"assetSale",
|
|
388
|
+
"gamblingWinnings"
|
|
389
|
+
];
|
|
390
|
+
var getSourceOfFundsRequiredForms = (data) => {
|
|
391
|
+
return Object.fromEntries(Object.entries(sourceOfFundsForms).filter(([form]) => {
|
|
392
|
+
if (!data?.type || !typesRequiringAdditionalData.includes(data?.type)) return form !== sourceOfFundsForms.additionalData.formId;
|
|
393
|
+
return form;
|
|
394
|
+
}));
|
|
395
|
+
};
|
|
396
|
+
var getInputErrors = ({ formErrors, data, key, value }) => {
|
|
397
|
+
const isEmpty = value === "" || value === null || value === void 0;
|
|
398
|
+
let errors = { ...formErrors };
|
|
399
|
+
if (isEmpty) errors = {
|
|
400
|
+
...formErrors,
|
|
401
|
+
[key]: "fieldIsRequired"
|
|
402
|
+
};
|
|
403
|
+
else errors = {
|
|
404
|
+
...formErrors,
|
|
405
|
+
[key]: void 0
|
|
406
|
+
};
|
|
407
|
+
if (["amount", "currency"].includes(key)) {
|
|
408
|
+
if (data?.amount?.value && data?.amount?.currency) errors = {
|
|
409
|
+
...formErrors,
|
|
410
|
+
amount: void 0
|
|
411
|
+
};
|
|
412
|
+
if (!data?.amount?.currency) errors = {
|
|
413
|
+
...formErrors,
|
|
414
|
+
amount: "currencyIsRequired"
|
|
415
|
+
};
|
|
416
|
+
if (!data?.amount?.value) errors = {
|
|
417
|
+
...formErrors,
|
|
418
|
+
amount: "amountIsRequired"
|
|
419
|
+
};
|
|
420
|
+
else if (isNaN(data?.amount.value)) errors = {
|
|
421
|
+
...formErrors,
|
|
422
|
+
amount: "pleaseEnterAValidAmount"
|
|
423
|
+
};
|
|
424
|
+
}
|
|
425
|
+
return errors;
|
|
426
|
+
};
|
|
427
|
+
var getPageHeadings = (type) => {
|
|
428
|
+
switch (type) {
|
|
429
|
+
case "cryptocurrencyIncome": return {
|
|
430
|
+
heading: "cryptocurrencyProceedDetails",
|
|
431
|
+
description: "tellUsMoreAboutTheCryptocurrency"
|
|
432
|
+
};
|
|
433
|
+
case "assetSale": return {
|
|
434
|
+
heading: "propertySaleDetails",
|
|
435
|
+
description: "tellUsMoreAboutTheProperty"
|
|
436
|
+
};
|
|
437
|
+
case "gamblingWinnings": return {
|
|
438
|
+
heading: "gamblingProceedDetails",
|
|
439
|
+
description: "tellUsMoreAboutTheGamblingProceeds"
|
|
440
|
+
};
|
|
441
|
+
case "business": return {
|
|
442
|
+
heading: "businessEarningDetails",
|
|
443
|
+
description: "tellUsMoreAboutThePreviousBusinessEarnings"
|
|
444
|
+
};
|
|
445
|
+
case "thirdPartyFunding": return {
|
|
446
|
+
heading: "thirdPartyInvestmentDetails",
|
|
447
|
+
description: "tellUsMoreAboutTheInvestors"
|
|
448
|
+
};
|
|
449
|
+
case "inheritance": return {
|
|
450
|
+
heading: "inheritanceDetails",
|
|
451
|
+
description: "tellUsMoreAboutTheInheritanceProceeds"
|
|
452
|
+
};
|
|
453
|
+
case "donations": return {
|
|
454
|
+
heading: "giftOrDonationDetails",
|
|
455
|
+
description: "tellUsMoreAboutTheGiftOrDonationProceeds"
|
|
456
|
+
};
|
|
457
|
+
default: return { heading: "tellUsMoreAboutThisSource" };
|
|
458
|
+
}
|
|
459
|
+
};
|
|
460
|
+
var getDocumentRequirements = {
|
|
461
|
+
loanAgreement: [
|
|
462
|
+
"yourBusinessName",
|
|
463
|
+
"lendersNameAndAddress",
|
|
464
|
+
"principalAmount",
|
|
465
|
+
"loanDate",
|
|
466
|
+
"purposeOfLoan"
|
|
467
|
+
],
|
|
468
|
+
loanStatement: [
|
|
469
|
+
"yourBusinessName",
|
|
470
|
+
"lendersNameAndAddress",
|
|
471
|
+
"principalAmount",
|
|
472
|
+
"loanDate",
|
|
473
|
+
"purposeOfLoan"
|
|
474
|
+
],
|
|
475
|
+
proofOfWalletOwnership: [
|
|
476
|
+
"yourBusinessName",
|
|
477
|
+
"nameOfTheCryptocurrencyExchange",
|
|
478
|
+
"nameOfTheCoins",
|
|
479
|
+
"issueDateWithinTheLast12Months"
|
|
480
|
+
],
|
|
481
|
+
transactionStatement: [
|
|
482
|
+
"showsYourBusinessName",
|
|
483
|
+
"showsTheNameOfTheCryptocurrencyExchange",
|
|
484
|
+
"showsTheNameOfTheCoins",
|
|
485
|
+
"issueDateWithinTheLast12Months"
|
|
486
|
+
],
|
|
487
|
+
taxFiling: [
|
|
488
|
+
"showsYourBusinessName",
|
|
489
|
+
"showsTheNameOfTheCryptocurrencyExchange",
|
|
490
|
+
"showsTheNameOfTheCoins",
|
|
491
|
+
"issueDateWithinTheLast12Months"
|
|
492
|
+
],
|
|
493
|
+
proofOfWinnings: [
|
|
494
|
+
"winningProceedAmount",
|
|
495
|
+
"dateOfWinning",
|
|
496
|
+
"nameOfCasinoLottery"
|
|
497
|
+
],
|
|
498
|
+
winReport: [
|
|
499
|
+
"winningProceedAmount",
|
|
500
|
+
"dateOfWinning",
|
|
501
|
+
"nameOfCasinoLottery"
|
|
502
|
+
],
|
|
503
|
+
winLossStatement: [
|
|
504
|
+
"winningProceedAmount",
|
|
505
|
+
"dateOfWinning",
|
|
506
|
+
"nameOfCasinoLottery"
|
|
507
|
+
],
|
|
508
|
+
taxDeclaration: ["winningProceedAmount", "issuedWithinTheLast12Months"],
|
|
509
|
+
annualStatements: [
|
|
510
|
+
"yourBusinessName",
|
|
511
|
+
"proofOfAnnualTurnoverAmount",
|
|
512
|
+
"issueDateWithinTheLast12Months"
|
|
513
|
+
],
|
|
514
|
+
latestTaxFiling: [
|
|
515
|
+
"yourBusinessName",
|
|
516
|
+
"proofOfAnnualTurnoverAmount",
|
|
517
|
+
"issueDateWithinTheLast12Months"
|
|
518
|
+
],
|
|
519
|
+
letterFromAccountant: [
|
|
520
|
+
"yourBusinessName",
|
|
521
|
+
"proofOfAnnualTurnoverAmount",
|
|
522
|
+
"signatureAndDateWithinTheLast12Months"
|
|
523
|
+
],
|
|
524
|
+
recentInvoices: ["yourBusinessName", "invoicesFromThe3MostRecentMonths"],
|
|
525
|
+
bankStatements: [
|
|
526
|
+
"yourBusinessName",
|
|
527
|
+
"issueDate",
|
|
528
|
+
"banksLogoAndName",
|
|
529
|
+
"allStatementsFrom3MostRecentMonths"
|
|
530
|
+
],
|
|
531
|
+
payslips: [
|
|
532
|
+
"employersName",
|
|
533
|
+
"issueDate",
|
|
534
|
+
"banksLogoAndName",
|
|
535
|
+
"allPayslipsFrom3MostRecentMonths"
|
|
536
|
+
],
|
|
537
|
+
contractSpecifyingDividends: [
|
|
538
|
+
"theBusinessName",
|
|
539
|
+
"termLengthAndDividendYield",
|
|
540
|
+
"namesOfInvolvedParties"
|
|
541
|
+
],
|
|
542
|
+
latestTaxReturn: ["theBusinessName", "reportedDividendAmount"],
|
|
543
|
+
investmentCertificate: ["theBusinessName", "termLengthAndDividendYield"],
|
|
544
|
+
brokerStatements: [
|
|
545
|
+
"theBrokerageName",
|
|
546
|
+
"dividendAmount",
|
|
547
|
+
"issueDateWithinTheLast3Months",
|
|
548
|
+
"namesOfInvolvedParties"
|
|
549
|
+
],
|
|
550
|
+
investorContract: [
|
|
551
|
+
"yourBusinessName",
|
|
552
|
+
"nameAddressSignatureOfAllInvestors",
|
|
553
|
+
"investmentAmount",
|
|
554
|
+
"fundDepositDate"
|
|
555
|
+
],
|
|
556
|
+
investorMemo: [
|
|
557
|
+
"yourBusinessName",
|
|
558
|
+
"nameAddressSignatureOfAllInvestors",
|
|
559
|
+
"investmentAmount",
|
|
560
|
+
"fundDepositDate"
|
|
561
|
+
],
|
|
562
|
+
notarizedStatement: [
|
|
563
|
+
"yourBusinessName",
|
|
564
|
+
"nameAddressSignatureOfAllInvestors",
|
|
565
|
+
"investmentAmount",
|
|
566
|
+
"fundDepositDate"
|
|
567
|
+
],
|
|
568
|
+
partnershipAgreement: [
|
|
569
|
+
"yourBusinessName",
|
|
570
|
+
"nameAddressSignatureOfAllInvestors",
|
|
571
|
+
"investmentAmount",
|
|
572
|
+
"fundDepositDate"
|
|
573
|
+
],
|
|
574
|
+
proofOfOwnership: [
|
|
575
|
+
"descriptionOfProperty",
|
|
576
|
+
"netProceedAmount",
|
|
577
|
+
"fundDepositDate",
|
|
578
|
+
"propertyAddress"
|
|
579
|
+
],
|
|
580
|
+
letterFromAttorney: [
|
|
581
|
+
"descriptionOfProperty",
|
|
582
|
+
"netProceedAmount",
|
|
583
|
+
"fundDepositDate",
|
|
584
|
+
"propertyAddress"
|
|
585
|
+
],
|
|
586
|
+
saleContract: [
|
|
587
|
+
"descriptionOfProperty",
|
|
588
|
+
"netProceedAmount",
|
|
589
|
+
"fundDepositDate",
|
|
590
|
+
"propertyAddress"
|
|
591
|
+
],
|
|
592
|
+
taxDeclarationProperty: [
|
|
593
|
+
"descriptionOfProperty",
|
|
594
|
+
"netProceedAmount",
|
|
595
|
+
"fundDepositDate",
|
|
596
|
+
"propertyAddress"
|
|
597
|
+
],
|
|
598
|
+
titleDeed: [
|
|
599
|
+
"descriptionOfProperty",
|
|
600
|
+
"netProceedAmount",
|
|
601
|
+
"fundDepositDate",
|
|
602
|
+
"propertyAddress"
|
|
603
|
+
],
|
|
604
|
+
rentalAgreementOrLease: [
|
|
605
|
+
"namesOfLandlordAndTenant",
|
|
606
|
+
"propertyAddress",
|
|
607
|
+
"rentAmount"
|
|
608
|
+
],
|
|
609
|
+
proofOfOwnershipRent: ["yourName", "propertyAddress"],
|
|
610
|
+
giftOrDonationAgreement: [
|
|
611
|
+
"donorsName",
|
|
612
|
+
"fundTransferDate",
|
|
613
|
+
"fundDepositAmount"
|
|
614
|
+
],
|
|
615
|
+
royaltyAgreement: [
|
|
616
|
+
"descriptionOfIntellectualProperty",
|
|
617
|
+
"royaltyAmount",
|
|
618
|
+
"agreementPeriod"
|
|
619
|
+
],
|
|
620
|
+
taxDocuments: ["royaltyAmount", "provideMostRecentYearAvailable"],
|
|
621
|
+
certificateOfInheritance: [
|
|
622
|
+
"decedentsName",
|
|
623
|
+
"inheritanceAmount",
|
|
624
|
+
"fundDepositDate",
|
|
625
|
+
"estateAttorneysName"
|
|
626
|
+
],
|
|
627
|
+
grantOfProbate: [
|
|
628
|
+
"decedentsName",
|
|
629
|
+
"inheritanceAmount",
|
|
630
|
+
"fundDepositDate",
|
|
631
|
+
"estateAttorneysName"
|
|
632
|
+
],
|
|
633
|
+
letterFromAttorneyOrNotary: [
|
|
634
|
+
"decedentsName",
|
|
635
|
+
"inheritanceAmount",
|
|
636
|
+
"fundDepositDate",
|
|
637
|
+
"estateAttorneysName"
|
|
638
|
+
],
|
|
639
|
+
signedCopyOfTheWill: [
|
|
640
|
+
"decedentsName",
|
|
641
|
+
"inheritanceAmount",
|
|
642
|
+
"fundDepositDate",
|
|
643
|
+
"estateAttorneysName"
|
|
644
|
+
],
|
|
645
|
+
pensionSlip: [
|
|
646
|
+
"yourFullName",
|
|
647
|
+
"previousEmployersName",
|
|
648
|
+
"pensionPaymentAmount"
|
|
649
|
+
],
|
|
650
|
+
letterFromPreviousEmployer: [
|
|
651
|
+
"yourFullName",
|
|
652
|
+
"previousEmployersName",
|
|
653
|
+
"pensionPaymentAmountOrTotalValue"
|
|
654
|
+
],
|
|
655
|
+
pensionStatement: [
|
|
656
|
+
"yourFullName",
|
|
657
|
+
"previousEmployersName",
|
|
658
|
+
"pensionPaymentAmountOrTotalValue"
|
|
659
|
+
],
|
|
660
|
+
courtOrder: [
|
|
661
|
+
"yourFullName",
|
|
662
|
+
"totalSettlementAmount",
|
|
663
|
+
"fundDepositDate"
|
|
664
|
+
],
|
|
665
|
+
letterFromAttorneyInsurance: [
|
|
666
|
+
"yourFullName",
|
|
667
|
+
"totalSettlementAmount",
|
|
668
|
+
"fundDepositDate"
|
|
669
|
+
],
|
|
670
|
+
letterFromInsurer: [
|
|
671
|
+
"yourFullName",
|
|
672
|
+
"totalSettlementAmount",
|
|
673
|
+
"fundDepositDate"
|
|
674
|
+
],
|
|
675
|
+
confirmationOfGrantOrSubsidy: [
|
|
676
|
+
"benefactorsName",
|
|
677
|
+
"subsidyOrGrantAmount",
|
|
678
|
+
"timePeriodIfApplicable"
|
|
679
|
+
]
|
|
680
|
+
};
|
|
681
|
+
var getDocumentLists = (sourceOfFundsType) => {
|
|
682
|
+
switch (sourceOfFundsType) {
|
|
683
|
+
case "loans": return ["loanAgreement", "loanStatement"];
|
|
684
|
+
case "gamblingWinnings": return [
|
|
685
|
+
"proofOfWinnings",
|
|
686
|
+
"winReport",
|
|
687
|
+
"winLossStatement",
|
|
688
|
+
"taxDeclaration"
|
|
689
|
+
];
|
|
690
|
+
case "cryptocurrencyIncome": return [
|
|
691
|
+
"proofOfWalletOwnership",
|
|
692
|
+
"transactionStatement",
|
|
693
|
+
"taxFiling"
|
|
694
|
+
];
|
|
695
|
+
case "business": return [
|
|
696
|
+
"annualStatements",
|
|
697
|
+
"latestTaxFiling",
|
|
698
|
+
"letterFromAccountant",
|
|
699
|
+
"recentInvoices"
|
|
700
|
+
];
|
|
701
|
+
case "employment": return ["bankStatements", "payslips"];
|
|
702
|
+
case "dividendIncome": return [
|
|
703
|
+
"contractSpecifyingDividends",
|
|
704
|
+
"latestTaxReturn",
|
|
705
|
+
"investmentCertificate",
|
|
706
|
+
"brokerStatements"
|
|
707
|
+
];
|
|
708
|
+
case "thirdPartyFunding": return [
|
|
709
|
+
"investorContract",
|
|
710
|
+
"investorMemo",
|
|
711
|
+
"notarizedStatement",
|
|
712
|
+
"partnershipAgreement"
|
|
713
|
+
];
|
|
714
|
+
case "assetSale": return [
|
|
715
|
+
"proofOfOwnership",
|
|
716
|
+
"letterFromAttorney",
|
|
717
|
+
"saleContract",
|
|
718
|
+
"taxDeclarationProperty",
|
|
719
|
+
"titleDeed"
|
|
720
|
+
];
|
|
721
|
+
case "rentalIncome": return ["rentalAgreementOrLease", "proofOfOwnership"];
|
|
722
|
+
case "donations": return ["giftOrDonationAgreement"];
|
|
723
|
+
case "royaltyIncome": return ["royaltyAgreement", "taxDocuments"];
|
|
724
|
+
case "inheritance": return [
|
|
725
|
+
"certificateOfInheritance",
|
|
726
|
+
"grantOfProbate",
|
|
727
|
+
"letterFromAttorneyOrNotary",
|
|
728
|
+
"signedCopyOfTheWill"
|
|
729
|
+
];
|
|
730
|
+
case "pensionIncome": return [
|
|
731
|
+
"pensionSlip",
|
|
732
|
+
"letterFromPreviousEmployer",
|
|
733
|
+
"pensionStatement"
|
|
734
|
+
];
|
|
735
|
+
case "insuranceSettlement": return [
|
|
736
|
+
"courtOrder",
|
|
737
|
+
"letterFromAttorneyInsurance",
|
|
738
|
+
"letterFromInsurer"
|
|
739
|
+
];
|
|
740
|
+
case "financialAid": return ["confirmationOfGrantOrSubsidy"];
|
|
741
|
+
default: return [];
|
|
742
|
+
}
|
|
743
|
+
};
|
|
744
|
+
var parseSOFDocumentDescription = (t, documentDescription) => {
|
|
745
|
+
if (!documentDescription || documentDescription.trim() === "" || !documentDescription.startsWith("$")) return;
|
|
746
|
+
const [servicePart, typePart] = documentDescription.split("--");
|
|
747
|
+
const selectedService = servicePart.split(":")[1];
|
|
748
|
+
const documentType = typePart.split(":")[1];
|
|
749
|
+
const parsed = {
|
|
750
|
+
selectedService: getServiceTranslation(t, selectedService || ""),
|
|
751
|
+
documentType: t(($) => $[documentType])
|
|
752
|
+
};
|
|
753
|
+
return `${parsed.selectedService} (${parsed.documentType})`;
|
|
754
|
+
};
|
|
755
|
+
var parseOriginatorDetails = (originatorDetails, businessLine) => {
|
|
756
|
+
const copiedBusinessLine = { ...businessLine };
|
|
757
|
+
if (copiedBusinessLine.sourceOfFunds) {
|
|
758
|
+
if (originatorDetails.organization) {
|
|
759
|
+
copiedBusinessLine.sourceOfFunds.legalName = originatorDetails.organization.legalName;
|
|
760
|
+
copiedBusinessLine.sourceOfFunds.country = originatorDetails.organization?.registeredAddress?.country;
|
|
761
|
+
copiedBusinessLine.sourceOfFunds.originatorType = "organization";
|
|
762
|
+
}
|
|
763
|
+
if (originatorDetails.individual) {
|
|
764
|
+
copiedBusinessLine.sourceOfFunds.firstName = originatorDetails.individual.name?.firstName;
|
|
765
|
+
copiedBusinessLine.sourceOfFunds.lastName = originatorDetails.individual.name?.lastName;
|
|
766
|
+
copiedBusinessLine.sourceOfFunds.country = originatorDetails.individual.residentialAddress?.country;
|
|
767
|
+
copiedBusinessLine.sourceOfFunds.originatorType = "individual";
|
|
768
|
+
}
|
|
769
|
+
}
|
|
770
|
+
return copiedBusinessLine;
|
|
771
|
+
};
|
|
772
|
+
var getSourceOfFundsPayload = (sofType, additionalData) => {
|
|
773
|
+
switch (sofType) {
|
|
774
|
+
case "business": return {
|
|
775
|
+
adyenProcessedFunds: false,
|
|
776
|
+
type: "business",
|
|
777
|
+
description: additionalData?.description,
|
|
778
|
+
amount: {
|
|
779
|
+
currency: additionalData?.amount?.currency ?? "USD",
|
|
780
|
+
value: additionalData?.amount?.value ?? 0
|
|
781
|
+
}
|
|
782
|
+
};
|
|
783
|
+
case "employment": return {
|
|
784
|
+
adyenProcessedFunds: false,
|
|
785
|
+
type: "employment"
|
|
786
|
+
};
|
|
787
|
+
case "donations": return {
|
|
788
|
+
adyenProcessedFunds: false,
|
|
789
|
+
type: "donations",
|
|
790
|
+
dateOfFundsReceived: additionalData?.dateOfFundsReceived,
|
|
791
|
+
purpose: additionalData?.purpose,
|
|
792
|
+
relationship: additionalData?.relationship,
|
|
793
|
+
originatorLegalEntityId: additionalData?.originatorLegalEntityId
|
|
794
|
+
};
|
|
795
|
+
case "inheritance": return {
|
|
796
|
+
adyenProcessedFunds: false,
|
|
797
|
+
type: "inheritance",
|
|
798
|
+
dateOfFundsReceived: additionalData?.dateOfFundsReceived,
|
|
799
|
+
amount: additionalData?.amount,
|
|
800
|
+
relationship: additionalData?.relationship,
|
|
801
|
+
originatorLegalEntityId: additionalData?.originatorLegalEntityId
|
|
802
|
+
};
|
|
803
|
+
case "financialAid": return {
|
|
804
|
+
adyenProcessedFunds: false,
|
|
805
|
+
type: "financialAid"
|
|
806
|
+
};
|
|
807
|
+
case "rentalIncome": return {
|
|
808
|
+
adyenProcessedFunds: false,
|
|
809
|
+
type: "rentalIncome"
|
|
810
|
+
};
|
|
811
|
+
case "dividendIncome": return {
|
|
812
|
+
adyenProcessedFunds: false,
|
|
813
|
+
type: "dividendIncome"
|
|
814
|
+
};
|
|
815
|
+
case "royaltyIncome": return {
|
|
816
|
+
adyenProcessedFunds: false,
|
|
817
|
+
type: "royaltyIncome"
|
|
818
|
+
};
|
|
819
|
+
case "pensionIncome": return {
|
|
820
|
+
adyenProcessedFunds: false,
|
|
821
|
+
type: "pensionIncome"
|
|
822
|
+
};
|
|
823
|
+
case "insuranceSettlement": return {
|
|
824
|
+
adyenProcessedFunds: false,
|
|
825
|
+
type: "insuranceSettlement"
|
|
826
|
+
};
|
|
827
|
+
case "thirdPartyFunding": return {
|
|
828
|
+
adyenProcessedFunds: false,
|
|
829
|
+
type: "thirdPartyFunding",
|
|
830
|
+
financiers: additionalData?.financiers
|
|
831
|
+
};
|
|
832
|
+
case "cryptocurrencyIncome": return {
|
|
833
|
+
adyenProcessedFunds: false,
|
|
834
|
+
type: "cryptocurrencyIncome",
|
|
835
|
+
cryptocurrencyExchange: additionalData?.cryptocurrencyExchange
|
|
836
|
+
};
|
|
837
|
+
case "assetSale": return {
|
|
838
|
+
adyenProcessedFunds: false,
|
|
839
|
+
type: "assetSale",
|
|
840
|
+
cryptocurrencyExchange: additionalData?.cryptocurrencyExchange,
|
|
841
|
+
dateOfSourceEvent: additionalData?.dateOfSourceEvent,
|
|
842
|
+
description: additionalData?.description,
|
|
843
|
+
amount: additionalData?.amount
|
|
844
|
+
};
|
|
845
|
+
case "loans": return {
|
|
846
|
+
adyenProcessedFunds: false,
|
|
847
|
+
type: "loans"
|
|
848
|
+
};
|
|
849
|
+
case "gamblingWinnings": return {
|
|
850
|
+
adyenProcessedFunds: false,
|
|
851
|
+
type: "gamblingWinnings",
|
|
852
|
+
dateOfSourceEvent: additionalData?.dateOfSourceEvent,
|
|
853
|
+
website: additionalData?.website && !additionalData.website.startsWith("http://") && !additionalData.website.startsWith("https://") ? `https://${additionalData.website}` : additionalData?.website,
|
|
854
|
+
amount: additionalData?.amount
|
|
855
|
+
};
|
|
856
|
+
default: return { adyenProcessedFunds: true };
|
|
857
|
+
}
|
|
858
|
+
};
|
|
859
|
+
var parseSofOriginatorPayload = (additionalData) => {
|
|
860
|
+
let sofOriginator;
|
|
861
|
+
if (additionalData?.originatorType === "individual") sofOriginator = {
|
|
862
|
+
type: LegalEntityTypes.INDIVIDUAL,
|
|
863
|
+
individual: {
|
|
864
|
+
name: {
|
|
865
|
+
firstName: additionalData?.firstName ?? "",
|
|
866
|
+
lastName: additionalData?.lastName ?? ""
|
|
867
|
+
},
|
|
868
|
+
residentialAddress: { country: additionalData?.country }
|
|
869
|
+
}
|
|
870
|
+
};
|
|
871
|
+
else sofOriginator = {
|
|
872
|
+
type: LegalEntityTypes.ORGANIZATION,
|
|
873
|
+
organization: {
|
|
874
|
+
legalName: additionalData?.legalName ?? "",
|
|
875
|
+
registeredAddress: { country: additionalData?.country }
|
|
876
|
+
}
|
|
877
|
+
};
|
|
878
|
+
return sofOriginator;
|
|
879
|
+
};
|
|
880
|
+
var formatDateForInput = (isoDateString) => {
|
|
881
|
+
if (!isoDateString) return "";
|
|
882
|
+
try {
|
|
883
|
+
const datePart = isoDateString.split("T")[0];
|
|
884
|
+
if (/^\d{4}-\d{2}-\d{2}$/.test(datePart)) return datePart;
|
|
885
|
+
return "";
|
|
886
|
+
} catch {
|
|
887
|
+
return "";
|
|
888
|
+
}
|
|
889
|
+
};
|
|
890
|
+
var getSofCardDetails = (t, sourceOfFunds) => {
|
|
891
|
+
if (!sourceOfFunds) return "";
|
|
892
|
+
if (sourceOfFunds?.adyenProcessedFunds) return t(($) => $["transactionsOnThisPlatform"]);
|
|
893
|
+
if (sourceOfFunds?.type) return sourceOfFunds?.type ? t(($) => $[sofCategoryItemMapper[sourceOfFunds.type]]) : "";
|
|
894
|
+
return "";
|
|
895
|
+
};
|
|
896
|
+
var ALLOWED_SOF_SERVICES = ["issuing", "banking"];
|
|
897
|
+
/**
|
|
898
|
+
* Returns business lines that require SoF (based on ALLOWED_SOF_SERVICES)
|
|
899
|
+
*/
|
|
900
|
+
var getApplicableBusinessLines = (businessLines) => {
|
|
901
|
+
return businessLines.filter((bl) => ALLOWED_SOF_SERVICES.includes(bl.service));
|
|
902
|
+
};
|
|
903
|
+
/**
|
|
904
|
+
* Deep comparison of SoF data.
|
|
905
|
+
* Returns true if all business-relevant fields are identical.
|
|
906
|
+
*/
|
|
907
|
+
var areSourceOfFundsEqual = (sof1, sof2) => {
|
|
908
|
+
const type1 = sof1.sourceOfFundsType?.type;
|
|
909
|
+
if (type1 !== sof2.sourceOfFundsType?.type) return false;
|
|
910
|
+
if (type1 === "donations" || type1 === "inheritance") {
|
|
911
|
+
const ad1 = sof1.additionalData || {};
|
|
912
|
+
const ad2 = sof2.additionalData || {};
|
|
913
|
+
if (ad1.originatorType !== ad2.originatorType) return false;
|
|
914
|
+
if (ad1.originatorType === "individual") return ad1.firstName === ad2.firstName && ad1.lastName === ad2.lastName && ad1.country === ad2.country && ad1.relationship === ad2.relationship && ad1.purpose === ad2.purpose && ad1.dateOfFundsReceived === ad2.dateOfFundsReceived;
|
|
915
|
+
else if (ad1.originatorType === "organization") return ad1.legalName === ad2.legalName && ad1.country === ad2.country && ad1.relationship === ad2.relationship && ad1.purpose === ad2.purpose && ad1.dateOfFundsReceived === ad2.dateOfFundsReceived;
|
|
916
|
+
return false;
|
|
917
|
+
}
|
|
918
|
+
const ad1 = sof1.additionalData || {};
|
|
919
|
+
const ad2 = sof2.additionalData || {};
|
|
920
|
+
const keys1 = Object.keys(ad1);
|
|
921
|
+
const keys2 = Object.keys(ad2);
|
|
922
|
+
if (keys1.length !== keys2.length) return false;
|
|
923
|
+
return keys1.every((key) => {
|
|
924
|
+
const val1 = ad1[key];
|
|
925
|
+
const val2 = ad2[key];
|
|
926
|
+
return JSON.stringify(val1) === JSON.stringify(val2);
|
|
927
|
+
});
|
|
928
|
+
};
|
|
929
|
+
var SOF_INVALID_INPUT_ERROR_CODES = ["1_93", "1_94"];
|
|
930
|
+
var getRelevantErrors = (problems, targetCodes) => {
|
|
931
|
+
if (!problems) return false;
|
|
932
|
+
return problems.flatMap((problem) => (problem.verificationErrors || []).filter((error) => targetCodes.includes(error.code) || (error.subErrors || []).some((sub) => targetCodes.includes(sub.code))));
|
|
933
|
+
};
|
|
934
|
+
var getUniqueRemediationActions = (error) => {
|
|
935
|
+
return [...error.remediatingActions || [], ...error.subErrors?.flatMap((sub) => sub.remediatingActions || []) || []].filter((action, i, arr) => arr.findIndex((a) => a.code === action.code) === i);
|
|
936
|
+
};
|
|
937
|
+
var sofCategoryItemMapper = {
|
|
938
|
+
business: "otherBusinessEarnings",
|
|
939
|
+
employment: "employmentWages",
|
|
940
|
+
cryptocurrencyIncome: "cryptocurrency",
|
|
941
|
+
dividendIncome: "dividends",
|
|
942
|
+
loans: "loans",
|
|
943
|
+
financialAid: "financialAid",
|
|
944
|
+
thirdPartyFunding: "thirdPartyFunding",
|
|
945
|
+
rentalIncome: "rentalIncome",
|
|
946
|
+
royaltyIncome: "royaltyIncome",
|
|
947
|
+
gamblingWinnings: "gambling",
|
|
948
|
+
inheritance: "inheritance",
|
|
949
|
+
pensionIncome: "pensionIncome",
|
|
950
|
+
insuranceSettlement: "insuranceSettlement",
|
|
951
|
+
assetSale: "propertySale",
|
|
952
|
+
donations: "giftOrDonation"
|
|
953
|
+
};
|
|
954
|
+
/**
|
|
955
|
+
* Prepares additional data for originator creation/update.
|
|
956
|
+
* When useSameAs is true, appends the originatorLegalEntityId from the source
|
|
957
|
+
* so that createOrUpdateOriginator can update the existing LE instead of creating a new one.
|
|
958
|
+
*/
|
|
959
|
+
var getAdditionalDataForOriginator = (additionalData, sourceAdditionalData, useSameAs) => {
|
|
960
|
+
if (useSameAs) return {
|
|
961
|
+
...additionalData,
|
|
962
|
+
originatorLegalEntityId: sourceAdditionalData?.originatorLegalEntityId
|
|
963
|
+
};
|
|
964
|
+
return additionalData;
|
|
965
|
+
};
|
|
966
|
+
//#endregion
|
|
967
|
+
//#region src/components/EFP/tasks/SourceOfFundsDropin/SOFAdditionalData/AdditionalDataForAssetSale.tsx
|
|
968
|
+
function AdditionalDataForAssetSale(props) {
|
|
969
|
+
const [isFocused, setIsFocused] = useState$1(false);
|
|
970
|
+
const { formUtils, data, errors, valid, fieldProblems, handleChangeFor, handleAmountChange } = props;
|
|
971
|
+
const { t: commonT } = useTranslation("common");
|
|
972
|
+
const handleOnAmountBlur = () => {
|
|
973
|
+
setIsFocused(false);
|
|
974
|
+
handleAmountChange("amount");
|
|
975
|
+
};
|
|
976
|
+
return /* @__PURE__ */ jsxs(Fragment$1, { children: [/* @__PURE__ */ jsxs("div", {
|
|
977
|
+
className: SourceOfFunds_module_default.sourceOfFundsGridContainer,
|
|
978
|
+
children: [/* @__PURE__ */ jsx(Field, {
|
|
979
|
+
el: "fieldset",
|
|
980
|
+
name: "amount",
|
|
981
|
+
label: formUtils.getLabel("amount", "saleAmount"),
|
|
982
|
+
errorMessage: formUtils.getErrorMessage("amount", errors, fieldProblems),
|
|
983
|
+
children: (childProps) => /* @__PURE__ */ jsxs(InputGroup, {
|
|
984
|
+
...childProps,
|
|
985
|
+
id: "currencyGroup",
|
|
986
|
+
isFocused,
|
|
987
|
+
isInvalid: Boolean(!valid.amount && errors.amount),
|
|
988
|
+
children: [/* @__PURE__ */ jsx(Select, {
|
|
989
|
+
name: "currency",
|
|
990
|
+
"aria-label": commonT(($) => $["currency"]),
|
|
991
|
+
isMulti: false,
|
|
992
|
+
items: allowedCurrencies,
|
|
993
|
+
selected: data.amount?.currency,
|
|
994
|
+
placeholder: commonT(($) => $["select"]),
|
|
995
|
+
onChange: handleAmountChange("currency"),
|
|
996
|
+
minimal: true
|
|
997
|
+
}), /* @__PURE__ */ jsx(InputText, {
|
|
998
|
+
...childProps,
|
|
999
|
+
name: "amount",
|
|
1000
|
+
value: data.amount?.value,
|
|
1001
|
+
readonly: formUtils.isReadOnly("amount"),
|
|
1002
|
+
onInput: handleAmountChange("amount"),
|
|
1003
|
+
onBlur: handleOnAmountBlur,
|
|
1004
|
+
"aria-required": true,
|
|
1005
|
+
"aria-invalid": !valid.amount,
|
|
1006
|
+
isValid: valid.amount,
|
|
1007
|
+
onFocusHandler: () => setIsFocused(true)
|
|
1008
|
+
})]
|
|
1009
|
+
})
|
|
1010
|
+
}), /* @__PURE__ */ jsx(Field, {
|
|
1011
|
+
name: "dateOfSourceEvent",
|
|
1012
|
+
label: formUtils.getLabel("dateOfSourceEvent", "dateOfSale"),
|
|
1013
|
+
errorMessage: formUtils.getErrorMessage("dateOfSourceEvent", errors, fieldProblems),
|
|
1014
|
+
isValid: valid.dateOfSourceEvent,
|
|
1015
|
+
children: (childProps) => /* @__PURE__ */ jsx(InputDate, {
|
|
1016
|
+
...childProps,
|
|
1017
|
+
name: "dateOfSourceEvent",
|
|
1018
|
+
value: formatDateForInput(data.dateOfSourceEvent),
|
|
1019
|
+
onInput: handleChangeFor("dateOfSourceEvent", "input"),
|
|
1020
|
+
onBlur: handleChangeFor("dateOfSourceEvent", "blur"),
|
|
1021
|
+
"aria-required": true,
|
|
1022
|
+
"aria-invalid": !valid.dateOfSourceEvent,
|
|
1023
|
+
max: TODAY_DATE
|
|
1024
|
+
})
|
|
1025
|
+
})]
|
|
1026
|
+
}), /* @__PURE__ */ jsx(Field, {
|
|
1027
|
+
name: "description",
|
|
1028
|
+
label: formUtils.getLabel("description", "propertyDescription"),
|
|
1029
|
+
errorMessage: formUtils.getErrorMessage("description", errors, fieldProblems),
|
|
1030
|
+
isValid: valid.description,
|
|
1031
|
+
children: (childProps) => /* @__PURE__ */ jsx(TextArea, {
|
|
1032
|
+
...childProps,
|
|
1033
|
+
name: "description",
|
|
1034
|
+
value: data.description,
|
|
1035
|
+
maxLength: 200,
|
|
1036
|
+
onInput: handleChangeFor("description"),
|
|
1037
|
+
onBlur: handleChangeFor("description"),
|
|
1038
|
+
"aria-invalid": !valid.description
|
|
1039
|
+
})
|
|
1040
|
+
})] });
|
|
1041
|
+
}
|
|
1042
|
+
//#endregion
|
|
1043
|
+
//#region src/components/EFP/tasks/SourceOfFundsDropin/SOFAdditionalData/AdditionalDataForBusiness.tsx
|
|
1044
|
+
function AdditionalDataForBusiness(props) {
|
|
1045
|
+
const [isFocused, setIsFocused] = useState$1(false);
|
|
1046
|
+
const { formUtils, data, errors, valid, fieldProblems, handleChangeFor, handleAmountChange } = props;
|
|
1047
|
+
const { t: commonT } = useTranslation("common");
|
|
1048
|
+
const handleOnAmountBlur = () => {
|
|
1049
|
+
setIsFocused(false);
|
|
1050
|
+
handleAmountChange("amount");
|
|
1051
|
+
};
|
|
1052
|
+
return /* @__PURE__ */ jsxs(Fragment$1, { children: [/* @__PURE__ */ jsx(Field, {
|
|
1053
|
+
el: "fieldset",
|
|
1054
|
+
name: "amount",
|
|
1055
|
+
label: formUtils.getLabel("amount", "annualTurnover"),
|
|
1056
|
+
errorMessage: formUtils.getErrorMessage("amount", errors, fieldProblems),
|
|
1057
|
+
helper: commonT(($) => $["useFiguresFromTheMostRecentYearAvailable"]),
|
|
1058
|
+
helperPosition: "below",
|
|
1059
|
+
children: (childProps) => /* @__PURE__ */ jsxs(InputGroup, {
|
|
1060
|
+
...childProps,
|
|
1061
|
+
id: "currencyGroup",
|
|
1062
|
+
isFocused,
|
|
1063
|
+
isInvalid: Boolean(!valid.amount && errors.amount),
|
|
1064
|
+
children: [/* @__PURE__ */ jsx(Select, {
|
|
1065
|
+
name: "currency",
|
|
1066
|
+
"aria-label": commonT(($) => $["currency"]),
|
|
1067
|
+
isMulti: false,
|
|
1068
|
+
items: allowedCurrencies,
|
|
1069
|
+
selected: data.amount?.currency,
|
|
1070
|
+
placeholder: commonT(($) => $["select"]),
|
|
1071
|
+
onChange: handleAmountChange("currency"),
|
|
1072
|
+
minimal: true
|
|
1073
|
+
}), /* @__PURE__ */ jsx(InputText, {
|
|
1074
|
+
...childProps,
|
|
1075
|
+
name: "amount",
|
|
1076
|
+
value: data.amount?.value,
|
|
1077
|
+
readonly: formUtils.isReadOnly("amount"),
|
|
1078
|
+
onInput: handleAmountChange("amount"),
|
|
1079
|
+
onBlur: handleOnAmountBlur,
|
|
1080
|
+
"aria-required": true,
|
|
1081
|
+
"aria-invalid": !valid.amount,
|
|
1082
|
+
isValid: valid.amount,
|
|
1083
|
+
onFocusHandler: () => setIsFocused(true)
|
|
1084
|
+
})]
|
|
1085
|
+
})
|
|
1086
|
+
}), /* @__PURE__ */ jsx(Field, {
|
|
1087
|
+
name: "description",
|
|
1088
|
+
label: formUtils.getLabel("description", "businessDescription"),
|
|
1089
|
+
errorMessage: formUtils.getErrorMessage("description", errors, fieldProblems),
|
|
1090
|
+
isValid: valid.description,
|
|
1091
|
+
children: (childProps) => /* @__PURE__ */ jsx(TextArea, {
|
|
1092
|
+
...childProps,
|
|
1093
|
+
name: "description",
|
|
1094
|
+
value: data.description,
|
|
1095
|
+
maxLength: 200,
|
|
1096
|
+
onInput: handleChangeFor("description"),
|
|
1097
|
+
onBlur: handleChangeFor("description"),
|
|
1098
|
+
"aria-invalid": !valid.description
|
|
1099
|
+
})
|
|
1100
|
+
})] });
|
|
1101
|
+
}
|
|
1102
|
+
//#endregion
|
|
1103
|
+
//#region src/components/EFP/tasks/SourceOfFundsDropin/SOFAdditionalData/AdditionalDataForCryptocurrency.tsx
|
|
1104
|
+
function AdditionalDataForCryptocurrency(props) {
|
|
1105
|
+
const { t: sofT } = useTranslation("sof");
|
|
1106
|
+
const { formUtils, data, errors, valid, fieldProblems, handleChangeFor } = props;
|
|
1107
|
+
return /* @__PURE__ */ jsx(Field, {
|
|
1108
|
+
name: "cryptocurrencyExchange",
|
|
1109
|
+
label: formUtils.getLabel("cryptocurrencyExchange", "cryptocurrencyExchange"),
|
|
1110
|
+
errorMessage: formUtils.getErrorMessage("cryptocurrencyExchange", errors, fieldProblems),
|
|
1111
|
+
isValid: valid.cryptocurrencyExchange,
|
|
1112
|
+
helper: sofT(($) => $["nameOfTheExchangeWhereTheCryptocurrencyWasHeldPriorToSale"]),
|
|
1113
|
+
helperPosition: "below",
|
|
1114
|
+
children: (childProps) => /* @__PURE__ */ jsx(InputText, {
|
|
1115
|
+
...childProps,
|
|
1116
|
+
name: "cryptocurrencyExchange",
|
|
1117
|
+
value: data.cryptocurrencyExchange,
|
|
1118
|
+
readonly: formUtils.isReadOnly("cryptocurrencyExchange"),
|
|
1119
|
+
onInput: handleChangeFor("cryptocurrencyExchange", "input"),
|
|
1120
|
+
onBlur: handleChangeFor("cryptocurrencyExchange", "blur"),
|
|
1121
|
+
"aria-required": true,
|
|
1122
|
+
"aria-invalid": !valid.cryptocurrencyExchange,
|
|
1123
|
+
isValid: valid.cryptocurrencyExchange
|
|
1124
|
+
})
|
|
1125
|
+
});
|
|
1126
|
+
}
|
|
1127
|
+
//#endregion
|
|
1128
|
+
//#region src/components/EFP/tasks/SourceOfFundsDropin/SOFAdditionalData/AdditionalDataOriginatorLegalEntity.tsx
|
|
1129
|
+
var radioItems = [{
|
|
1130
|
+
id: "individual",
|
|
1131
|
+
name: "individual"
|
|
1132
|
+
}, {
|
|
1133
|
+
id: "organization",
|
|
1134
|
+
name: "organization"
|
|
1135
|
+
}];
|
|
1136
|
+
function AdditionalDataOriginatorLegalEntity(props) {
|
|
1137
|
+
const { t: sofT } = useTranslation("sof");
|
|
1138
|
+
const { formUtils, data, errors, valid, fieldProblems, handleChangeFor, sourceOfFundsType } = props;
|
|
1139
|
+
const isDonations = sourceOfFundsType === "donations";
|
|
1140
|
+
const countryTranslationKey = isDonations && data?.originatorType === "individual" ? "donorsCountryOfResidence" : data?.originatorType === "organization" ? "organizationsCountryOfOperation" : "decedentsCountryOfDeath";
|
|
1141
|
+
return /* @__PURE__ */ jsxs(Fragment$1, { children: [
|
|
1142
|
+
/* @__PURE__ */ jsx(Field, {
|
|
1143
|
+
el: "fieldset",
|
|
1144
|
+
name: "originatorType",
|
|
1145
|
+
className: SourceOfFunds_module_default.sourceOfFundsUploadModalContentField,
|
|
1146
|
+
label: sofT(($) => $[isDonations ? "whereDidThisGiftOrDonationComeFrom" : "whereDidThisInheritanceComeFrom"]),
|
|
1147
|
+
errorMessage: formUtils.getErrorMessage("originatorType", errors, fieldProblems),
|
|
1148
|
+
isValid: valid.originatorType,
|
|
1149
|
+
children: (childProps) => /* @__PURE__ */ jsx(RadioGroup, {
|
|
1150
|
+
...childProps,
|
|
1151
|
+
name: "originatorType",
|
|
1152
|
+
className: SourceOfFunds_module_default.sourceOfFundsUploadModalContentFieldRadioGroup,
|
|
1153
|
+
items: radioItems,
|
|
1154
|
+
value: data.originatorType,
|
|
1155
|
+
disabled: false,
|
|
1156
|
+
onChange: handleChangeFor("originatorType", "input"),
|
|
1157
|
+
"aria-required": true
|
|
1158
|
+
})
|
|
1159
|
+
}),
|
|
1160
|
+
data?.originatorType === "organization" && /* @__PURE__ */ jsx(Field, {
|
|
1161
|
+
name: "legalName",
|
|
1162
|
+
label: formUtils.getLabel("legalName", "organizationsLegalName"),
|
|
1163
|
+
errorMessage: formUtils.getErrorMessage("legalName", errors, fieldProblems),
|
|
1164
|
+
isValid: valid.legalName,
|
|
1165
|
+
children: (childProps) => /* @__PURE__ */ jsx(InputText, {
|
|
1166
|
+
...childProps,
|
|
1167
|
+
name: "legalName",
|
|
1168
|
+
value: data.legalName,
|
|
1169
|
+
readonly: formUtils.isReadOnly("legalName"),
|
|
1170
|
+
onInput: handleChangeFor("legalName", "input"),
|
|
1171
|
+
onBlur: handleChangeFor("legalName", "blur"),
|
|
1172
|
+
"aria-required": true,
|
|
1173
|
+
"aria-invalid": !valid.legalName,
|
|
1174
|
+
isValid: valid.legalName
|
|
1175
|
+
})
|
|
1176
|
+
}),
|
|
1177
|
+
data?.originatorType === "individual" && /* @__PURE__ */ jsxs(Fragment$1, { children: [/* @__PURE__ */ jsx(Field, {
|
|
1178
|
+
name: "firstName",
|
|
1179
|
+
label: formUtils.getLabel("firstName", isDonations ? "donorsLegalFirstName" : "decedentsLegalFirstName"),
|
|
1180
|
+
errorMessage: formUtils.getErrorMessage("firstName", errors, fieldProblems),
|
|
1181
|
+
isValid: valid.firstName,
|
|
1182
|
+
children: (childProps) => /* @__PURE__ */ jsx(InputText, {
|
|
1183
|
+
...childProps,
|
|
1184
|
+
name: "firstName",
|
|
1185
|
+
value: data.firstName,
|
|
1186
|
+
readonly: formUtils.isReadOnly("firstName"),
|
|
1187
|
+
onInput: handleChangeFor("firstName", "input"),
|
|
1188
|
+
onBlur: handleChangeFor("firstName", "blur"),
|
|
1189
|
+
"aria-required": true,
|
|
1190
|
+
"aria-invalid": !valid.firstName,
|
|
1191
|
+
isValid: valid.firstName
|
|
1192
|
+
})
|
|
1193
|
+
}), /* @__PURE__ */ jsx(Field, {
|
|
1194
|
+
name: "lastName",
|
|
1195
|
+
label: formUtils.getLabel("lastName", isDonations ? "donorsLegalLastName" : "decedentsLegalLastName"),
|
|
1196
|
+
errorMessage: formUtils.getErrorMessage("lastName", errors, fieldProblems),
|
|
1197
|
+
isValid: valid.lastName,
|
|
1198
|
+
children: (childProps) => /* @__PURE__ */ jsx(InputText, {
|
|
1199
|
+
...childProps,
|
|
1200
|
+
name: "lastName",
|
|
1201
|
+
value: data.lastName,
|
|
1202
|
+
readonly: formUtils.isReadOnly("lastName"),
|
|
1203
|
+
onInput: handleChangeFor("lastName", "input"),
|
|
1204
|
+
onBlur: handleChangeFor("lastName", "blur"),
|
|
1205
|
+
"aria-required": true,
|
|
1206
|
+
"aria-invalid": !valid.lastName,
|
|
1207
|
+
isValid: valid.lastName
|
|
1208
|
+
})
|
|
1209
|
+
})] }),
|
|
1210
|
+
data?.originatorType && /* @__PURE__ */ jsxs(Fragment$1, { children: [/* @__PURE__ */ jsx(Field, {
|
|
1211
|
+
name: "relationship",
|
|
1212
|
+
label: formUtils.getLabel("relationship", isDonations && data?.originatorType === "individual" ? "yourRelationshipToDonor" : data?.originatorType === "organization" ? "yourRelationshipToOrganization" : "yourRelationshipToDecedent"),
|
|
1213
|
+
errorMessage: formUtils.getErrorMessage("relationship", errors, fieldProblems),
|
|
1214
|
+
isValid: valid.relationship,
|
|
1215
|
+
children: (childProps) => /* @__PURE__ */ jsx(InputText, {
|
|
1216
|
+
...childProps,
|
|
1217
|
+
name: "relationship",
|
|
1218
|
+
value: data.relationship,
|
|
1219
|
+
readonly: formUtils.isReadOnly("relationship"),
|
|
1220
|
+
onInput: handleChangeFor("relationship", "input"),
|
|
1221
|
+
onBlur: handleChangeFor("relationship", "blur"),
|
|
1222
|
+
"aria-required": true,
|
|
1223
|
+
"aria-invalid": !valid.relationship,
|
|
1224
|
+
isValid: valid.relationship
|
|
1225
|
+
})
|
|
1226
|
+
}), /* @__PURE__ */ jsx(CountryField, {
|
|
1227
|
+
data: { country: data.country },
|
|
1228
|
+
valid: { country: valid.country },
|
|
1229
|
+
errors: { country: formUtils.getErrorMessage("country", errors, fieldProblems) },
|
|
1230
|
+
labels: { country: sofT(($) => $[countryTranslationKey]) },
|
|
1231
|
+
readonly: formUtils.isReadOnly("country"),
|
|
1232
|
+
handleChangeFor
|
|
1233
|
+
})] })
|
|
1234
|
+
] });
|
|
1235
|
+
}
|
|
1236
|
+
//#endregion
|
|
1237
|
+
//#region src/components/EFP/tasks/SourceOfFundsDropin/SOFAdditionalData/AdditionalDataForDonation.tsx
|
|
1238
|
+
function AdditionalDataForDonation(props) {
|
|
1239
|
+
const { formUtils, data, errors, valid, fieldProblems, handleChangeFor } = props;
|
|
1240
|
+
return /* @__PURE__ */ jsxs(Fragment$1, { children: [/* @__PURE__ */ jsx(AdditionalDataOriginatorLegalEntity, {
|
|
1241
|
+
formUtils,
|
|
1242
|
+
handleChangeFor,
|
|
1243
|
+
data,
|
|
1244
|
+
errors,
|
|
1245
|
+
valid,
|
|
1246
|
+
fieldProblems,
|
|
1247
|
+
sourceOfFundsType: "donations"
|
|
1248
|
+
}), /* @__PURE__ */ jsxs("div", {
|
|
1249
|
+
className: SourceOfFunds_module_default.sourceOfFundsGridContainer,
|
|
1250
|
+
children: [/* @__PURE__ */ jsx(Field, {
|
|
1251
|
+
name: "purpose",
|
|
1252
|
+
label: formUtils.getLabel("purpose", "reason"),
|
|
1253
|
+
errorMessage: formUtils.getErrorMessage("purpose", errors, fieldProblems),
|
|
1254
|
+
isValid: valid.purpose,
|
|
1255
|
+
children: (childProps) => /* @__PURE__ */ jsx(InputText, {
|
|
1256
|
+
...childProps,
|
|
1257
|
+
name: "purpose",
|
|
1258
|
+
value: data.purpose,
|
|
1259
|
+
readonly: formUtils.isReadOnly("purpose"),
|
|
1260
|
+
onInput: handleChangeFor("purpose", "input"),
|
|
1261
|
+
onBlur: handleChangeFor("purpose", "blur"),
|
|
1262
|
+
"aria-required": true,
|
|
1263
|
+
"aria-invalid": !valid.purpose,
|
|
1264
|
+
isValid: valid.purpose
|
|
1265
|
+
})
|
|
1266
|
+
}), /* @__PURE__ */ jsx(Field, {
|
|
1267
|
+
name: "dateOfFundsReceived",
|
|
1268
|
+
label: formUtils.getLabel("dateOfFundsReceived", "date"),
|
|
1269
|
+
errorMessage: formUtils.getErrorMessage("dateOfFundsReceived", errors, fieldProblems),
|
|
1270
|
+
isValid: valid.dateOfFundsReceived,
|
|
1271
|
+
children: (childProps) => /* @__PURE__ */ jsx(InputDate, {
|
|
1272
|
+
...childProps,
|
|
1273
|
+
name: "dateOfFundsReceived",
|
|
1274
|
+
value: formatDateForInput(data.dateOfFundsReceived),
|
|
1275
|
+
onInput: handleChangeFor("dateOfFundsReceived", "input"),
|
|
1276
|
+
onBlur: handleChangeFor("dateOfFundsReceived", "blur"),
|
|
1277
|
+
"aria-required": true,
|
|
1278
|
+
"aria-invalid": !valid.dateOfFundsReceived,
|
|
1279
|
+
max: TODAY_DATE
|
|
1280
|
+
})
|
|
1281
|
+
})]
|
|
1282
|
+
})] });
|
|
1283
|
+
}
|
|
1284
|
+
//#endregion
|
|
1285
|
+
//#region src/components/EFP/tasks/SourceOfFundsDropin/SOFAdditionalData/AdditionalDataForGambling.tsx
|
|
1286
|
+
function AdditionalDataForGambling(props) {
|
|
1287
|
+
const { t: commonT } = useTranslation("common");
|
|
1288
|
+
const [focusedInput, setFocusedInput] = useState$1();
|
|
1289
|
+
const { formUtils, data, errors, valid, fieldProblems, handleChangeFor, handleAmountChange } = props;
|
|
1290
|
+
const handleOnAmountBlur = () => {
|
|
1291
|
+
setFocusedInput(void 0);
|
|
1292
|
+
handleAmountChange("amount");
|
|
1293
|
+
};
|
|
1294
|
+
return /* @__PURE__ */ jsxs(Fragment$1, { children: [
|
|
1295
|
+
/* @__PURE__ */ jsx(Field, {
|
|
1296
|
+
el: "fieldset",
|
|
1297
|
+
name: "amount",
|
|
1298
|
+
label: formUtils.getLabel("amount", "totalAmountWon"),
|
|
1299
|
+
errorMessage: formUtils.getErrorMessage("amount", errors, fieldProblems),
|
|
1300
|
+
children: (childProps) => /* @__PURE__ */ jsxs(InputGroup, {
|
|
1301
|
+
...childProps,
|
|
1302
|
+
id: "currencyGroup",
|
|
1303
|
+
isFocused: focusedInput === "amount",
|
|
1304
|
+
isInvalid: Boolean(!valid.amount && errors.amount),
|
|
1305
|
+
children: [/* @__PURE__ */ jsx(Select, {
|
|
1306
|
+
name: "currency",
|
|
1307
|
+
"aria-label": commonT(($) => $["currency"]),
|
|
1308
|
+
isMulti: false,
|
|
1309
|
+
items: allowedCurrencies,
|
|
1310
|
+
selected: data.amount?.currency,
|
|
1311
|
+
placeholder: commonT(($) => $["select"]),
|
|
1312
|
+
onChange: handleAmountChange("currency"),
|
|
1313
|
+
minimal: true
|
|
1314
|
+
}), /* @__PURE__ */ jsx(InputText, {
|
|
1315
|
+
...childProps,
|
|
1316
|
+
name: "amount",
|
|
1317
|
+
value: data.amount?.value,
|
|
1318
|
+
readonly: formUtils.isReadOnly("amount"),
|
|
1319
|
+
onInput: handleAmountChange("amount"),
|
|
1320
|
+
onBlur: handleOnAmountBlur,
|
|
1321
|
+
"aria-required": true,
|
|
1322
|
+
"aria-invalid": !valid.amount,
|
|
1323
|
+
isValid: valid.amount,
|
|
1324
|
+
onFocusHandler: () => setFocusedInput("amount")
|
|
1325
|
+
})]
|
|
1326
|
+
})
|
|
1327
|
+
}),
|
|
1328
|
+
/* @__PURE__ */ jsx(Field, {
|
|
1329
|
+
name: "dateOfSourceEvent",
|
|
1330
|
+
label: formUtils.getLabel("dateOfSourceEvent", "dateOfWinning"),
|
|
1331
|
+
errorMessage: formUtils.getErrorMessage("dateOfSourceEvent", errors, fieldProblems),
|
|
1332
|
+
isValid: valid.dateOfSourceEvent,
|
|
1333
|
+
children: (childProps) => /* @__PURE__ */ jsx(InputDate, {
|
|
1334
|
+
...childProps,
|
|
1335
|
+
name: "dateOfSourceEvent",
|
|
1336
|
+
value: formatDateForInput(data.dateOfSourceEvent),
|
|
1337
|
+
onInput: handleChangeFor("dateOfSourceEvent", "input"),
|
|
1338
|
+
onBlur: handleChangeFor("dateOfSourceEvent", "blur"),
|
|
1339
|
+
"aria-required": true,
|
|
1340
|
+
"aria-invalid": !valid.dateOfSourceEvent,
|
|
1341
|
+
max: TODAY_DATE
|
|
1342
|
+
})
|
|
1343
|
+
}),
|
|
1344
|
+
/* @__PURE__ */ jsx(Field, {
|
|
1345
|
+
name: "website",
|
|
1346
|
+
label: formUtils.getLabel("website", "gamblingEstablishmentWebsite"),
|
|
1347
|
+
errorMessage: formUtils.getErrorMessage("website", errors, fieldProblems),
|
|
1348
|
+
children: (childProps) => /* @__PURE__ */ jsx(InputGroup, {
|
|
1349
|
+
...childProps,
|
|
1350
|
+
id: "websiteGroup",
|
|
1351
|
+
isFocused: focusedInput === "website",
|
|
1352
|
+
isInvalid: Boolean(!valid.website && errors.website),
|
|
1353
|
+
children: /* @__PURE__ */ jsx(InputText, {
|
|
1354
|
+
...childProps,
|
|
1355
|
+
placeholder: "https://",
|
|
1356
|
+
name: "website",
|
|
1357
|
+
value: data.website,
|
|
1358
|
+
readonly: formUtils.isReadOnly("website"),
|
|
1359
|
+
onInput: handleChangeFor("website", "input"),
|
|
1360
|
+
onBlur: handleChangeFor("website", "blur"),
|
|
1361
|
+
"aria-required": true,
|
|
1362
|
+
"aria-invalid": !valid.website,
|
|
1363
|
+
isValid: valid.website,
|
|
1364
|
+
onFocusHandler: () => setFocusedInput("website")
|
|
1365
|
+
})
|
|
1366
|
+
})
|
|
1367
|
+
})
|
|
1368
|
+
] });
|
|
1369
|
+
}
|
|
1370
|
+
//#endregion
|
|
1371
|
+
//#region src/components/EFP/tasks/SourceOfFundsDropin/SOFAdditionalData/AdditionalDataForInheritance.tsx
|
|
1372
|
+
function AdditionalDataForInheritance(props) {
|
|
1373
|
+
const [isFocused, setIsFocused] = useState$1(false);
|
|
1374
|
+
const { formUtils, data, errors, valid, fieldProblems, handleChangeFor, handleAmountChange } = props;
|
|
1375
|
+
const { t: commonT } = useTranslation("common");
|
|
1376
|
+
const handleOnAmountBlur = () => {
|
|
1377
|
+
setIsFocused(false);
|
|
1378
|
+
handleAmountChange("amount");
|
|
1379
|
+
};
|
|
1380
|
+
return /* @__PURE__ */ jsxs(Fragment$1, { children: [/* @__PURE__ */ jsx(AdditionalDataOriginatorLegalEntity, {
|
|
1381
|
+
formUtils,
|
|
1382
|
+
handleChangeFor,
|
|
1383
|
+
data,
|
|
1384
|
+
errors,
|
|
1385
|
+
valid,
|
|
1386
|
+
fieldProblems,
|
|
1387
|
+
sourceOfFundsType: "inheritance"
|
|
1388
|
+
}), /* @__PURE__ */ jsxs("div", {
|
|
1389
|
+
className: SourceOfFunds_module_default.sourceOfFundsGridContainer,
|
|
1390
|
+
children: [/* @__PURE__ */ jsx(Field, {
|
|
1391
|
+
el: "fieldset",
|
|
1392
|
+
name: "amount",
|
|
1393
|
+
label: formUtils.getLabel("amount", "inheritanceAmount"),
|
|
1394
|
+
errorMessage: formUtils.getErrorMessage("amount", errors, fieldProblems),
|
|
1395
|
+
children: (childProps) => /* @__PURE__ */ jsxs(InputGroup, {
|
|
1396
|
+
...childProps,
|
|
1397
|
+
id: "currencyGroup",
|
|
1398
|
+
isFocused,
|
|
1399
|
+
isInvalid: Boolean(!valid.amount && errors.amount),
|
|
1400
|
+
children: [/* @__PURE__ */ jsx(Select, {
|
|
1401
|
+
name: "currency",
|
|
1402
|
+
"aria-label": commonT(($) => $["currency"]),
|
|
1403
|
+
isMulti: false,
|
|
1404
|
+
items: allowedCurrencies ?? [],
|
|
1405
|
+
selected: data.amount?.currency,
|
|
1406
|
+
placeholder: commonT(($) => $["select"]),
|
|
1407
|
+
onChange: handleAmountChange("currency"),
|
|
1408
|
+
minimal: true
|
|
1409
|
+
}), /* @__PURE__ */ jsx(InputText, {
|
|
1410
|
+
...childProps,
|
|
1411
|
+
name: "amount",
|
|
1412
|
+
value: data.amount?.value,
|
|
1413
|
+
readonly: formUtils.isReadOnly("amount"),
|
|
1414
|
+
onInput: handleAmountChange("amount"),
|
|
1415
|
+
onBlur: handleOnAmountBlur,
|
|
1416
|
+
"aria-required": true,
|
|
1417
|
+
"aria-invalid": !valid.amount,
|
|
1418
|
+
isValid: valid.amount,
|
|
1419
|
+
onFocusHandler: () => setIsFocused(true)
|
|
1420
|
+
})]
|
|
1421
|
+
})
|
|
1422
|
+
}), /* @__PURE__ */ jsx(Field, {
|
|
1423
|
+
name: "dateOfFundsReceived",
|
|
1424
|
+
label: formUtils.getLabel("dateOfFundsReceived", "inheritanceReceivedOn"),
|
|
1425
|
+
errorMessage: formUtils.getErrorMessage("dateOfFundsReceived", errors, fieldProblems),
|
|
1426
|
+
isValid: valid.dateOfFundsReceived,
|
|
1427
|
+
children: (childProps) => /* @__PURE__ */ jsx(InputDate, {
|
|
1428
|
+
...childProps,
|
|
1429
|
+
name: "dateOfFundsReceived",
|
|
1430
|
+
value: formatDateForInput(data.dateOfFundsReceived),
|
|
1431
|
+
onInput: handleChangeFor("dateOfFundsReceived", "input"),
|
|
1432
|
+
onBlur: handleChangeFor("dateOfFundsReceived", "blur"),
|
|
1433
|
+
"aria-required": true,
|
|
1434
|
+
"aria-invalid": !valid.dateOfFundsReceived,
|
|
1435
|
+
max: TODAY_DATE
|
|
1436
|
+
})
|
|
1437
|
+
})]
|
|
1438
|
+
})] });
|
|
1439
|
+
}
|
|
1440
|
+
//#endregion
|
|
1441
|
+
//#region src/components/EFP/tasks/SourceOfFundsDropin/SOFAdditionalData/SOFFinancierModal.tsx
|
|
1442
|
+
var SOFFinancierModal = (props) => {
|
|
1443
|
+
const { t: sofT } = useTranslation("sof");
|
|
1444
|
+
const { t: commonT } = useTranslation("common");
|
|
1445
|
+
const { financier, handleModalClose, indexNumber, handleFinancierUpdate } = props;
|
|
1446
|
+
const [formData, setFormData] = useState$1(financier);
|
|
1447
|
+
const [formErrors, setFormErrors] = useState$1({});
|
|
1448
|
+
const [confirmOpen, setConfirmOpen] = useState$1(false);
|
|
1449
|
+
const [isFocused, setIsFocused] = useState$1(false);
|
|
1450
|
+
const [errorMessage, setErrorMessage] = useState$1("");
|
|
1451
|
+
const handleInputUpdate = (key, e) => {
|
|
1452
|
+
const inputEl = e.target;
|
|
1453
|
+
setErrorMessage("");
|
|
1454
|
+
const value = inputEl?.value;
|
|
1455
|
+
let inputData = { [key]: value };
|
|
1456
|
+
if (["amount", "currency"].includes(key)) inputData = { amount: {
|
|
1457
|
+
currency: key === "currency" ? value : formData?.amount?.currency,
|
|
1458
|
+
value: key === "currency" ? formData?.amount?.value : value
|
|
1459
|
+
} };
|
|
1460
|
+
const data = {
|
|
1461
|
+
...formData,
|
|
1462
|
+
...inputData
|
|
1463
|
+
};
|
|
1464
|
+
setFormData(data);
|
|
1465
|
+
setFormErrors(getInputErrors({
|
|
1466
|
+
formErrors,
|
|
1467
|
+
data,
|
|
1468
|
+
key,
|
|
1469
|
+
value
|
|
1470
|
+
}));
|
|
1471
|
+
};
|
|
1472
|
+
const handleOnAmountBlur = () => {
|
|
1473
|
+
setIsFocused(false);
|
|
1474
|
+
setFormErrors(getInputErrors({
|
|
1475
|
+
formErrors,
|
|
1476
|
+
data: formData,
|
|
1477
|
+
key: "amount",
|
|
1478
|
+
value: formData?.amount?.value
|
|
1479
|
+
}));
|
|
1480
|
+
};
|
|
1481
|
+
const allFieldsFilled = (data) => {
|
|
1482
|
+
return data?.firstName && data?.lastName && data?.location && data?.amount?.currency && !Number.isNaN(Number(data?.amount?.value));
|
|
1483
|
+
};
|
|
1484
|
+
const handleFinancierSave = () => {
|
|
1485
|
+
if (formData && allFieldsFilled(formData)) {
|
|
1486
|
+
handleFinancierUpdate({
|
|
1487
|
+
formData,
|
|
1488
|
+
indexNumber
|
|
1489
|
+
});
|
|
1490
|
+
handleModalClose();
|
|
1491
|
+
} else {
|
|
1492
|
+
setFormErrors([
|
|
1493
|
+
"firstName",
|
|
1494
|
+
"lastName",
|
|
1495
|
+
"location",
|
|
1496
|
+
"amount"
|
|
1497
|
+
].reduce((acc, key) => {
|
|
1498
|
+
const value = key === "amount" ? formData?.amount?.value : formData?.[key];
|
|
1499
|
+
return {
|
|
1500
|
+
...acc,
|
|
1501
|
+
...getInputErrors({
|
|
1502
|
+
formErrors: void 0,
|
|
1503
|
+
data: formData,
|
|
1504
|
+
key,
|
|
1505
|
+
value
|
|
1506
|
+
})
|
|
1507
|
+
};
|
|
1508
|
+
}, {}));
|
|
1509
|
+
setErrorMessage(sofT(($) => $["pleaseFillInAllFields"]));
|
|
1510
|
+
}
|
|
1511
|
+
};
|
|
1512
|
+
const handleFinancierDelete = async () => {
|
|
1513
|
+
handleFinancierUpdate({ indexNumber });
|
|
1514
|
+
handleModalClose();
|
|
1515
|
+
};
|
|
1516
|
+
return /* @__PURE__ */ jsxs(Fragment$1, { children: [/* @__PURE__ */ jsx(Modal, {
|
|
1517
|
+
onClose: handleModalClose,
|
|
1518
|
+
ariaLabel: sofT(($) => $["investorDetails"]),
|
|
1519
|
+
inset: true,
|
|
1520
|
+
children: /* @__PURE__ */ jsxs("div", {
|
|
1521
|
+
className: SourceOfFunds_module_default.sourceOfFundsModal,
|
|
1522
|
+
children: [
|
|
1523
|
+
/* @__PURE__ */ jsx(Typography, {
|
|
1524
|
+
variant: "title-l",
|
|
1525
|
+
el: "h3",
|
|
1526
|
+
className: SourceOfFunds_module_default.sourceOfFundsGettingStartedHelpHeader,
|
|
1527
|
+
children: sofT(($) => $["investorDetails"])
|
|
1528
|
+
}),
|
|
1529
|
+
/* @__PURE__ */ jsxs("div", {
|
|
1530
|
+
className: SourceOfFunds_module_default.sourceOfFundsSofFinancierForm,
|
|
1531
|
+
children: [
|
|
1532
|
+
errorMessage && /* @__PURE__ */ jsx(Alert, {
|
|
1533
|
+
title: sofT(($) => $["errorSubmittingData"]),
|
|
1534
|
+
variant: "error",
|
|
1535
|
+
className: SourceOfFunds_module_default.sourceOfFundsSofFinancierFormError,
|
|
1536
|
+
children: errorMessage
|
|
1537
|
+
}),
|
|
1538
|
+
/* @__PURE__ */ jsxs("div", {
|
|
1539
|
+
className: SourceOfFunds_module_default.sourceOfFundsSofFinancierFormNameGroup,
|
|
1540
|
+
children: [/* @__PURE__ */ jsx(Field, {
|
|
1541
|
+
name: "firstName",
|
|
1542
|
+
label: commonT(($) => $["firstName"]),
|
|
1543
|
+
errorMessage: formErrors.firstName,
|
|
1544
|
+
isValid: !formErrors.firstName,
|
|
1545
|
+
children: (childProps) => /* @__PURE__ */ jsx(InputText, {
|
|
1546
|
+
...childProps,
|
|
1547
|
+
name: "firstName",
|
|
1548
|
+
value: formData?.firstName,
|
|
1549
|
+
onInput: (e) => handleInputUpdate("firstName", e),
|
|
1550
|
+
onBlur: (e) => handleInputUpdate("firstName", e),
|
|
1551
|
+
"aria-required": true,
|
|
1552
|
+
"aria-invalid": Boolean(formErrors.firstName),
|
|
1553
|
+
isValid: !formErrors.firstName
|
|
1554
|
+
})
|
|
1555
|
+
}), /* @__PURE__ */ jsx(Field, {
|
|
1556
|
+
name: "lastName",
|
|
1557
|
+
label: commonT(($) => $["lastName"]),
|
|
1558
|
+
errorMessage: formErrors.lastName,
|
|
1559
|
+
isValid: !formErrors.lastName,
|
|
1560
|
+
children: (childProps) => /* @__PURE__ */ jsx(InputText, {
|
|
1561
|
+
...childProps,
|
|
1562
|
+
name: "lastName",
|
|
1563
|
+
value: formData?.lastName,
|
|
1564
|
+
onInput: (e) => handleInputUpdate("lastName", e),
|
|
1565
|
+
onBlur: (e) => handleInputUpdate("lastName", e),
|
|
1566
|
+
"aria-required": true,
|
|
1567
|
+
"aria-invalid": Boolean(formErrors.lastName),
|
|
1568
|
+
isValid: !formErrors.lastName
|
|
1569
|
+
})
|
|
1570
|
+
})]
|
|
1571
|
+
}),
|
|
1572
|
+
/* @__PURE__ */ jsx(Field, {
|
|
1573
|
+
name: "location",
|
|
1574
|
+
label: sofT(($) => $["investorLocation"]),
|
|
1575
|
+
errorMessage: formErrors.location,
|
|
1576
|
+
isValid: !formErrors.location,
|
|
1577
|
+
helperPosition: "below",
|
|
1578
|
+
showErrorIconBottom: true,
|
|
1579
|
+
helper: sofT(($) => $["theCityAndCountryRegion"]),
|
|
1580
|
+
children: (childProps) => /* @__PURE__ */ jsx(InputText, {
|
|
1581
|
+
...childProps,
|
|
1582
|
+
name: "location",
|
|
1583
|
+
value: formData?.location,
|
|
1584
|
+
onInput: (e) => handleInputUpdate("location", e),
|
|
1585
|
+
onBlur: (e) => handleInputUpdate("location", e),
|
|
1586
|
+
"aria-required": true,
|
|
1587
|
+
"aria-invalid": Boolean(formErrors.location),
|
|
1588
|
+
isValid: !formErrors.location
|
|
1589
|
+
})
|
|
1590
|
+
}),
|
|
1591
|
+
/* @__PURE__ */ jsx(Field, {
|
|
1592
|
+
el: "fieldset",
|
|
1593
|
+
name: "amount",
|
|
1594
|
+
label: sofT(($) => $["investmentAmount"]),
|
|
1595
|
+
errorMessage: formErrors.amount,
|
|
1596
|
+
isValid: !formErrors.amount,
|
|
1597
|
+
children: (childProps) => /* @__PURE__ */ jsxs(InputGroup, {
|
|
1598
|
+
...childProps,
|
|
1599
|
+
id: "currencyGroup",
|
|
1600
|
+
isFocused,
|
|
1601
|
+
children: [/* @__PURE__ */ jsx(Select, {
|
|
1602
|
+
minimal: true,
|
|
1603
|
+
name: "currency",
|
|
1604
|
+
"aria-label": commonT(($) => $["currency"]),
|
|
1605
|
+
isMulti: false,
|
|
1606
|
+
items: allowedCurrencies,
|
|
1607
|
+
selected: formData?.amount?.currency,
|
|
1608
|
+
placeholder: commonT(($) => $["select"]),
|
|
1609
|
+
onChange: (e) => handleInputUpdate("currency", e)
|
|
1610
|
+
}), /* @__PURE__ */ jsx(InputText, {
|
|
1611
|
+
...childProps,
|
|
1612
|
+
name: "amount",
|
|
1613
|
+
value: formData?.amount?.value,
|
|
1614
|
+
onInput: (e) => handleInputUpdate("amount", e),
|
|
1615
|
+
onBlur: handleOnAmountBlur,
|
|
1616
|
+
"aria-required": true,
|
|
1617
|
+
onFocusHandler: () => setIsFocused(true)
|
|
1618
|
+
})]
|
|
1619
|
+
})
|
|
1620
|
+
})
|
|
1621
|
+
]
|
|
1622
|
+
}),
|
|
1623
|
+
/* @__PURE__ */ jsxs("div", {
|
|
1624
|
+
className: SourceOfFunds_module_default.sourceOfFundsFinancierFooter,
|
|
1625
|
+
children: [/* @__PURE__ */ jsx(Button, {
|
|
1626
|
+
onClick: handleFinancierSave,
|
|
1627
|
+
children: commonT(($) => $["save"])
|
|
1628
|
+
}), Number.isFinite(indexNumber) && /* @__PURE__ */ jsx(Button, {
|
|
1629
|
+
variant: "tertiary",
|
|
1630
|
+
onClick: () => setConfirmOpen(true),
|
|
1631
|
+
children: sofT(($) => $["deleteInvestorDetails"])
|
|
1632
|
+
})]
|
|
1633
|
+
})
|
|
1634
|
+
]
|
|
1635
|
+
})
|
|
1636
|
+
}), confirmOpen && /* @__PURE__ */ jsx(Confirm, {
|
|
1637
|
+
title: sofT(($) => $["areYouSureYouWantToDeleteThisInvestorDetails"]),
|
|
1638
|
+
confirmText: commonT(($) => $["delete"]),
|
|
1639
|
+
onConfirm: handleFinancierDelete,
|
|
1640
|
+
onCancel: () => setConfirmOpen(false),
|
|
1641
|
+
critical: true
|
|
1642
|
+
})] });
|
|
1643
|
+
};
|
|
1644
|
+
//#endregion
|
|
1645
|
+
//#region src/components/EFP/tasks/SourceOfFundsDropin/SOFAdditionalData/AdditionalDataForThirdParty.tsx
|
|
1646
|
+
function AdditionalDataForThirdParty(props) {
|
|
1647
|
+
const [showFinancierModal, setShowFinancierModal] = useState$1(false);
|
|
1648
|
+
const [activeFinancier, setActiveFinancier] = useState$1();
|
|
1649
|
+
const [activeIndex, setActiveIndex] = useState$1();
|
|
1650
|
+
const { data, fieldProblems, errors, handleChangeFor, formUtils, valid } = props;
|
|
1651
|
+
const { t: commonT } = useTranslation("common");
|
|
1652
|
+
const { t: sofT } = useTranslation("sof");
|
|
1653
|
+
const handleToggleFinancierModal = () => {
|
|
1654
|
+
setActiveFinancier(void 0);
|
|
1655
|
+
setActiveIndex(void 0);
|
|
1656
|
+
setShowFinancierModal((prev) => !prev);
|
|
1657
|
+
};
|
|
1658
|
+
const handleShowUpdateFinancierModal = (index) => {
|
|
1659
|
+
if (!data.financiers) return;
|
|
1660
|
+
const financier = data.financiers[index];
|
|
1661
|
+
setActiveFinancier(financier);
|
|
1662
|
+
setActiveIndex(index);
|
|
1663
|
+
setShowFinancierModal(true);
|
|
1664
|
+
};
|
|
1665
|
+
const handleFinancierUpdate = ({ formData, indexNumber }) => {
|
|
1666
|
+
const existingFinanciers = data.financiers || [];
|
|
1667
|
+
let newFinanciers = [];
|
|
1668
|
+
if (!formData) {
|
|
1669
|
+
if (indexNumber !== void 0) newFinanciers = existingFinanciers.filter((_, index) => index !== indexNumber);
|
|
1670
|
+
} else {
|
|
1671
|
+
newFinanciers = [...existingFinanciers, formData];
|
|
1672
|
+
if (Number.isFinite(indexNumber)) newFinanciers = existingFinanciers.map((existingFinancier, i) => i === indexNumber ? formData : existingFinancier);
|
|
1673
|
+
}
|
|
1674
|
+
const financierEvent = { target: {
|
|
1675
|
+
name: "financiers",
|
|
1676
|
+
value: newFinanciers
|
|
1677
|
+
} };
|
|
1678
|
+
handleChangeFor("financiers")(financierEvent);
|
|
1679
|
+
};
|
|
1680
|
+
const errorMessage = formUtils.getErrorMessage("financiers", errors, fieldProblems);
|
|
1681
|
+
return /* @__PURE__ */ jsxs(Fragment$1, { children: [
|
|
1682
|
+
errors.financiers && !valid.financiers && /* @__PURE__ */ jsx(Alert, {
|
|
1683
|
+
title: typeof errorMessage == "boolean" ? void 0 : translateTranslatable(commonT, errorMessage),
|
|
1684
|
+
variant: "error",
|
|
1685
|
+
className: SourceOfFunds_module_default.sourceOfFundsSofFinancierFormError,
|
|
1686
|
+
children: sofT(($) => $["addAtLeastOneInvestor"])
|
|
1687
|
+
}),
|
|
1688
|
+
data.financiers?.map((financier, index) => /* @__PURE__ */ jsxs("button", {
|
|
1689
|
+
type: "button",
|
|
1690
|
+
onClick: () => handleShowUpdateFinancierModal(index),
|
|
1691
|
+
className: SourceOfFunds_module_default.sourceOfFundsThirdPartyFundingFinancierGroup,
|
|
1692
|
+
children: [/* @__PURE__ */ jsxs("div", {
|
|
1693
|
+
className: SourceOfFunds_module_default.sourceOfFundsThirdPartyFundingNameAvatarGroup,
|
|
1694
|
+
children: [/* @__PURE__ */ jsx(Avatar, {
|
|
1695
|
+
iconName: "user",
|
|
1696
|
+
circle: true
|
|
1697
|
+
}), /* @__PURE__ */ jsxs("div", {
|
|
1698
|
+
className: SourceOfFunds_module_default.sourceOfFundsThirdPartyFundingNameAddressGroup,
|
|
1699
|
+
children: [/* @__PURE__ */ jsxs(Typography, {
|
|
1700
|
+
el: "div",
|
|
1701
|
+
variant: "body-strongest",
|
|
1702
|
+
children: [
|
|
1703
|
+
financier.firstName,
|
|
1704
|
+
" ",
|
|
1705
|
+
financier.lastName
|
|
1706
|
+
]
|
|
1707
|
+
}), /* @__PURE__ */ jsx(Typography, {
|
|
1708
|
+
el: "div",
|
|
1709
|
+
variant: "caption",
|
|
1710
|
+
children: financier.location
|
|
1711
|
+
})]
|
|
1712
|
+
})]
|
|
1713
|
+
}), /* @__PURE__ */ jsx("div", { children: financier.amount?.currency && financier.amount?.value ? formatAmountWithCurrency(financier.amount.value, financier.amount?.currency) : "" })]
|
|
1714
|
+
}, index)),
|
|
1715
|
+
/* @__PURE__ */ jsx("button", {
|
|
1716
|
+
type: "button",
|
|
1717
|
+
className: SourceOfFunds_module_default.sourceOfFundsThirdPartyFundingFinancierGroup,
|
|
1718
|
+
onClick: handleToggleFinancierModal,
|
|
1719
|
+
children: /* @__PURE__ */ jsxs("div", {
|
|
1720
|
+
className: SourceOfFunds_module_default.sourceOfFundsThirdPartyFundingNameAvatarGroup,
|
|
1721
|
+
children: [/* @__PURE__ */ jsx(Avatar, {
|
|
1722
|
+
iconName: "plus",
|
|
1723
|
+
variant: "tertiary",
|
|
1724
|
+
circle: true
|
|
1725
|
+
}), /* @__PURE__ */ jsx(Typography, {
|
|
1726
|
+
el: "div",
|
|
1727
|
+
variant: "body-strongest",
|
|
1728
|
+
children: sofT(($) => $["addInvestor"])
|
|
1729
|
+
})]
|
|
1730
|
+
})
|
|
1731
|
+
}),
|
|
1732
|
+
showFinancierModal && /* @__PURE__ */ jsx(SOFFinancierModal, {
|
|
1733
|
+
financier: activeFinancier,
|
|
1734
|
+
indexNumber: activeIndex,
|
|
1735
|
+
handleModalClose: handleToggleFinancierModal,
|
|
1736
|
+
handleFinancierUpdate
|
|
1737
|
+
})
|
|
1738
|
+
] });
|
|
1739
|
+
}
|
|
1740
|
+
//#endregion
|
|
1741
|
+
//#region src/components/EFP/tasks/SourceOfFundsDropin/SourceOfFundsAdditionalData.tsx
|
|
1742
|
+
function SourceOfFundsAdditionalData(props) {
|
|
1743
|
+
const { t } = useTranslation("common");
|
|
1744
|
+
const { form } = useFormContext();
|
|
1745
|
+
const { handleChangeFor: multiFormHandleChangeFor, data: { additionalData: data, sourceOfFundsType }, errors: { additionalData: errors }, valid: { additionalData: valid }, fieldProblems: { additionalData: fieldProblems } } = form;
|
|
1746
|
+
const handleChangeFor = useMemo$1(() => (key, mode) => multiFormHandleChangeFor(key, "additionalData", mode), [multiFormHandleChangeFor]);
|
|
1747
|
+
const handleAmountChange = (key) => (e) => {
|
|
1748
|
+
const rawValue = e.target.value;
|
|
1749
|
+
const updatedAmount = {
|
|
1750
|
+
...data?.amount,
|
|
1751
|
+
...key === "currency" ? { currency: rawValue } : { value: rawValue === "" ? void 0 : Number(rawValue) }
|
|
1752
|
+
};
|
|
1753
|
+
handleChangeFor("amount")({ target: {
|
|
1754
|
+
name: "amount",
|
|
1755
|
+
value: updatedAmount
|
|
1756
|
+
} });
|
|
1757
|
+
};
|
|
1758
|
+
const formUtils = createFormUtils(props, t);
|
|
1759
|
+
const additionalDataProps = {
|
|
1760
|
+
formUtils,
|
|
1761
|
+
handleChangeFor,
|
|
1762
|
+
data,
|
|
1763
|
+
errors,
|
|
1764
|
+
valid,
|
|
1765
|
+
fieldProblems,
|
|
1766
|
+
handleAmountChange
|
|
1767
|
+
};
|
|
1768
|
+
const renderSubForms = () => {
|
|
1769
|
+
switch (sourceOfFundsType?.type) {
|
|
1770
|
+
case "gamblingWinnings": return /* @__PURE__ */ jsx(AdditionalDataForGambling, { ...additionalDataProps });
|
|
1771
|
+
case "cryptocurrencyIncome": return /* @__PURE__ */ jsx(AdditionalDataForCryptocurrency, { ...additionalDataProps });
|
|
1772
|
+
case "business": return /* @__PURE__ */ jsx(AdditionalDataForBusiness, { ...additionalDataProps });
|
|
1773
|
+
case "assetSale": return /* @__PURE__ */ jsx(AdditionalDataForAssetSale, { ...additionalDataProps });
|
|
1774
|
+
case "thirdPartyFunding": return /* @__PURE__ */ jsx(AdditionalDataForThirdParty, { ...additionalDataProps });
|
|
1775
|
+
case "inheritance": return /* @__PURE__ */ jsx(AdditionalDataForInheritance, { ...additionalDataProps });
|
|
1776
|
+
case "donations": return /* @__PURE__ */ jsx(AdditionalDataForDonation, { ...additionalDataProps });
|
|
1777
|
+
default: return null;
|
|
1778
|
+
}
|
|
1779
|
+
};
|
|
1780
|
+
return /* @__PURE__ */ jsxs("form", {
|
|
1781
|
+
className: SourceOfFunds_module_default.sourceOfFundsAdditionalDataForm,
|
|
1782
|
+
children: [/* @__PURE__ */ jsx(ErrorPanel, {
|
|
1783
|
+
verificationErrors: props?.formVerificationErrors,
|
|
1784
|
+
validationErrors: props?.fieldValidationErrors,
|
|
1785
|
+
formUtils,
|
|
1786
|
+
id: "ariaErrorField"
|
|
1787
|
+
}), renderSubForms()]
|
|
1788
|
+
});
|
|
1789
|
+
}
|
|
1790
|
+
//#endregion
|
|
1791
|
+
//#region src/components/EFP/tasks/SourceOfFundsDropin/SourceOfFundsType.tsx
|
|
1792
|
+
function SourceOfFundsType(props) {
|
|
1793
|
+
const { t } = useTranslation(["common", "sof"]);
|
|
1794
|
+
const { data: formData, categories, errors: formErrors, fieldValidationErrors: formFieldProblems, sameAsOption, useSameAs, onUseSameAsChange } = props;
|
|
1795
|
+
const { form } = useFormContext();
|
|
1796
|
+
const { handleChangeFor } = form;
|
|
1797
|
+
const handleFieldChange = (fieldName, mode) => handleChangeFor(fieldName, "sourceOfFundsType", mode);
|
|
1798
|
+
const handleUseSameAsChange = (isChecked) => {
|
|
1799
|
+
onUseSameAsChange?.(isChecked);
|
|
1800
|
+
};
|
|
1801
|
+
const formUtils = createFormUtils(props, t);
|
|
1802
|
+
const categoryItems = [{
|
|
1803
|
+
value: "adyen",
|
|
1804
|
+
label: t(($) => $["transactionsOnThisPlatform"], { ns: "sof" }),
|
|
1805
|
+
icon: getIconById("adyen")
|
|
1806
|
+
}, ...categories?.map((item) => ({
|
|
1807
|
+
value: item.id,
|
|
1808
|
+
label: t(($) => $[sofCategoryItemMapper[item.name]], { ns: "sof" }),
|
|
1809
|
+
icon: getIconById(item.id)
|
|
1810
|
+
})) ?? []];
|
|
1811
|
+
const errorMessage = formUtils.getErrorMessage("type", formErrors, formFieldProblems);
|
|
1812
|
+
return /* @__PURE__ */ jsxs(Fragment$1, { children: [sameAsOption && /* @__PURE__ */ jsx("div", {
|
|
1813
|
+
className: SourceOfFunds_module_default.sourceOfFundsSameAsCheckbox,
|
|
1814
|
+
children: /* @__PURE__ */ jsx(Field, {
|
|
1815
|
+
name: "useSameAs",
|
|
1816
|
+
children: (childProps) => /* @__PURE__ */ jsx(Checkbox, {
|
|
1817
|
+
...childProps,
|
|
1818
|
+
"aria-required": false,
|
|
1819
|
+
"aria-invalid": false,
|
|
1820
|
+
name: "useSameAs",
|
|
1821
|
+
label: t(($) => $["alwaysUseThisFundingSource"], { ns: "sof" }),
|
|
1822
|
+
checked: Boolean(useSameAs),
|
|
1823
|
+
onChange: handleUseSameAsChange
|
|
1824
|
+
})
|
|
1825
|
+
})
|
|
1826
|
+
}), /* @__PURE__ */ jsx(Field, {
|
|
1827
|
+
el: "fieldset",
|
|
1828
|
+
name: "type",
|
|
1829
|
+
children: () => /* @__PURE__ */ jsx(TileGroup, {
|
|
1830
|
+
name: "type",
|
|
1831
|
+
tiles: categoryItems,
|
|
1832
|
+
errorMessage: typeof errorMessage !== "boolean" ? translateTranslatable(t, errorMessage) : void 0,
|
|
1833
|
+
selected: formData?.type ? formData.type : [],
|
|
1834
|
+
onChange: handleFieldChange("type", "input")
|
|
1835
|
+
})
|
|
1836
|
+
})] });
|
|
1837
|
+
}
|
|
1838
|
+
function getIconById(id) {
|
|
1839
|
+
switch (id) {
|
|
1840
|
+
case "adyen": return "store";
|
|
1841
|
+
case "business": return "revenue-accelerate";
|
|
1842
|
+
case "assetSale": return "house";
|
|
1843
|
+
case "dividendIncome": return "graph-up";
|
|
1844
|
+
case "thirdPartyFunding": return "graph";
|
|
1845
|
+
case "employment": return "headquarter";
|
|
1846
|
+
case "donations": return "gift";
|
|
1847
|
+
case "inheritance": return "certificate";
|
|
1848
|
+
case "financialAid": return "capital";
|
|
1849
|
+
case "rentalIncome": return "house";
|
|
1850
|
+
case "royaltyIncome": return "cash-stack";
|
|
1851
|
+
case "pensionIncome": return "bank";
|
|
1852
|
+
case "insuranceSettlement": return "funds-in";
|
|
1853
|
+
case "cryptocurrencyIncome": return "coins";
|
|
1854
|
+
case "loans": return "capital";
|
|
1855
|
+
case "gamblingWinnings": return "cash-stack";
|
|
1856
|
+
default: return "contract";
|
|
1857
|
+
}
|
|
1858
|
+
}
|
|
1859
|
+
//#endregion
|
|
1860
|
+
//#region src/components/EFP/tasks/SourceOfFundsDropin/SourceOfFunds.tsx
|
|
1861
|
+
function SourceOfFunds(props) {
|
|
1862
|
+
const { activeForm, activeBusinessLine, sourceOfFundsType, sameAsOption, useSameAs, onUseSameAsChange } = props;
|
|
1863
|
+
const { form } = useFormContext();
|
|
1864
|
+
const { data: formData, errors, valid, fieldProblems: fieldValidationErrors } = form;
|
|
1865
|
+
const { data: sourceOfFundsTypesData, isLoading } = useSourceOfFundsTypes();
|
|
1866
|
+
const { t: sofT } = useTranslation("sof");
|
|
1867
|
+
const pageHeadings = useMemo$1(() => getPageHeadings(sourceOfFundsType ?? "adyen"), [sourceOfFundsType]);
|
|
1868
|
+
return isLoading || !activeBusinessLine ? /* @__PURE__ */ jsx("div", {
|
|
1869
|
+
className: SourceOfFunds_module_default.sourceOfFundsWrapperLoading,
|
|
1870
|
+
children: /* @__PURE__ */ jsx(Loader, {})
|
|
1871
|
+
}) : /* @__PURE__ */ jsxs("div", { children: [
|
|
1872
|
+
/* @__PURE__ */ jsxs("div", {
|
|
1873
|
+
className: SourceOfFunds_module_default.sourceOfFundsWrapperHeading,
|
|
1874
|
+
children: [/* @__PURE__ */ jsx(Typography, {
|
|
1875
|
+
el: "h1",
|
|
1876
|
+
variant: "title-l",
|
|
1877
|
+
children: activeForm?.formId === "additionalData" ? sofT(($) => $[pageHeadings.heading]) : sofT(($) => $["selectASourceOfFunding"], { type: getServiceTranslationSelectTitle(sofT, activeBusinessLine?.service || "").toLowerCase() })
|
|
1878
|
+
}), /* @__PURE__ */ jsxs(Typography, {
|
|
1879
|
+
className: SourceOfFunds_module_default.sourceOfFundsWrapperDescription,
|
|
1880
|
+
children: [activeForm?.formId === "additionalData" && pageHeadings.description && sofT(($) => $[pageHeadings.description]), sourceOfFundsTypesData?.length === 0 && sofT(($) => $["noCategoriesAvailable"])]
|
|
1881
|
+
})]
|
|
1882
|
+
}),
|
|
1883
|
+
sofErrorMessage.value && /* @__PURE__ */ jsxs(Typography, {
|
|
1884
|
+
variant: "caption",
|
|
1885
|
+
color: "critical",
|
|
1886
|
+
"aria-live": "polite",
|
|
1887
|
+
className: "u-justify-content-center u-display-flex",
|
|
1888
|
+
children: [/* @__PURE__ */ jsx(Icon, {
|
|
1889
|
+
name: "field-error",
|
|
1890
|
+
className: "u-margin-right-2"
|
|
1891
|
+
}), /* @__PURE__ */ jsx("span", { children: sofErrorMessage.value })]
|
|
1892
|
+
}),
|
|
1893
|
+
activeForm?.formId === "sourceOfFundsType" && /* @__PURE__ */ jsx(SourceOfFundsType, {
|
|
1894
|
+
categories: sourceOfFundsTypesData,
|
|
1895
|
+
data: formData?.sourceOfFundsType,
|
|
1896
|
+
errors: errors?.sourceOfFundsType,
|
|
1897
|
+
valid: valid?.sourceOfFundsType,
|
|
1898
|
+
fieldValidationErrors: fieldValidationErrors?.sourceOfFundsType,
|
|
1899
|
+
sameAsOption,
|
|
1900
|
+
useSameAs,
|
|
1901
|
+
onUseSameAsChange
|
|
1902
|
+
}),
|
|
1903
|
+
activeForm?.formId === "additionalData" && /* @__PURE__ */ jsx(SourceOfFundsAdditionalData, { fieldValidationErrors: fieldValidationErrors?.additionalData }),
|
|
1904
|
+
activeForm?.formId === "companySourceOfFunds" && /* @__PURE__ */ jsx("div", { children: sofT(($) => $["uploadADocument"]) })
|
|
1905
|
+
] });
|
|
1906
|
+
}
|
|
1907
|
+
//#endregion
|
|
1908
|
+
//#region src/components/EFP/tasks/SourceOfFundsDropin/SourceOfFundsGettingStarted/SourceOfFundsGettingStartedCard.tsx
|
|
1909
|
+
function SourceOfFundsGettingStartedCard(props) {
|
|
1910
|
+
const { id, title, onClick, isEdit, meta } = props;
|
|
1911
|
+
const { t: commonT } = useTranslation("common");
|
|
1912
|
+
return /* @__PURE__ */ jsxs(Card, {
|
|
1913
|
+
variant: "secondary",
|
|
1914
|
+
children: [/* @__PURE__ */ jsxs("div", {
|
|
1915
|
+
className: SourceOfFunds_module_default.sourceOfFundsGettingStartedCardsCardHeader,
|
|
1916
|
+
children: [/* @__PURE__ */ jsx(Typography, {
|
|
1917
|
+
el: "h3",
|
|
1918
|
+
variant: "title",
|
|
1919
|
+
children: title
|
|
1920
|
+
}), isEdit ? /* @__PURE__ */ jsx(IconButton, {
|
|
1921
|
+
ariaLabel: "edit",
|
|
1922
|
+
icon: "edit",
|
|
1923
|
+
onClick,
|
|
1924
|
+
variant: "tertiary"
|
|
1925
|
+
}) : /* @__PURE__ */ jsx(Button, {
|
|
1926
|
+
variant: "primary",
|
|
1927
|
+
testId: "source-of-funds-getting-card-secondary-button",
|
|
1928
|
+
onClick,
|
|
1929
|
+
children: commonT(($) => $["start"])
|
|
1930
|
+
})]
|
|
1931
|
+
}), isEdit && meta?.length && /* @__PURE__ */ jsx("div", {
|
|
1932
|
+
className: SourceOfFunds_module_default.sourceOfFundsGettingStartedCardsCardBody,
|
|
1933
|
+
children: /* @__PURE__ */ jsx(StructuredList, {
|
|
1934
|
+
className: SourceOfFunds_module_default.sourceOfFundsGettingStartedCardsCardDescription,
|
|
1935
|
+
items: meta
|
|
1936
|
+
})
|
|
1937
|
+
})]
|
|
1938
|
+
}, id);
|
|
1939
|
+
}
|
|
1940
|
+
//#endregion
|
|
1941
|
+
//#region src/components/EFP/tasks/SourceOfFundsDropin/SourceOfFundsGettingStarted/SourceOfFundsGettingStarted.tsx
|
|
1942
|
+
var digitalWallet = lazy(() => import("./digital-wallet-CLOVHAow.js"));
|
|
1943
|
+
var SourceOfFundsGettingStarted = ({ handleGettingStartedClick, handleCancelClick, handleSourceOfFundsClick, businessLines, handleNavigateToUploadPage, problems, legalEntity, asAwe, isSoFDocumentMissing }) => {
|
|
1944
|
+
const { t: sofT } = useTranslation("sof");
|
|
1945
|
+
const { t: commonT } = useTranslation("common");
|
|
1946
|
+
const hasSourceOfFunds = businessLines?.some((businessLine) => !isEmpty(businessLine.sourceOfFunds));
|
|
1947
|
+
const { data: taskStatusResponse } = useTaskStatus(TaskTypes.SOURCE_OF_FUNDS, { refetchInterval: TASK_STATUS_POLLING_INTERVAL_MS });
|
|
1948
|
+
const sofDocuments = useMemo$1(() => legalEntity?.documentDetails?.filter((doc) => doc.type === "proofOfFundingOrWealthSource") ?? [], [legalEntity]);
|
|
1949
|
+
const mapBusinessLines = useCallback$1((lines) => {
|
|
1950
|
+
const completedBusinessLines = businessLines.every((line) => line?.sourceOfFunds?.type);
|
|
1951
|
+
const cards = lines.map((line) => {
|
|
1952
|
+
const SoF = mapSourceOfFundToSourceOfFundsSchema(line);
|
|
1953
|
+
return {
|
|
1954
|
+
title: getServiceTranslation(sofT, line.service || ""),
|
|
1955
|
+
type: line?.sourceOfFunds?.type,
|
|
1956
|
+
isEdit: !!line?.sourceOfFunds?.type || !!line?.sourceOfFunds?.adyenProcessedFunds,
|
|
1957
|
+
onClick: () => handleSourceOfFundsClick(SoF, line),
|
|
1958
|
+
meta: [{
|
|
1959
|
+
term: sofT(($) => $["sourceOfFunds"]),
|
|
1960
|
+
details: getSofCardDetails(sofT, line?.sourceOfFunds)
|
|
1961
|
+
}, ...getGettingStartedCardDetails(getAdditionalDataSchemaKeys(line?.sourceOfFunds?.type || "adyen", line?.sourceOfFunds?.originatorType), sofT, line?.sourceOfFunds)]
|
|
1962
|
+
};
|
|
1963
|
+
}).sort((a) => a?.type ? 1 : -1);
|
|
1964
|
+
const uploadCard = {
|
|
1965
|
+
title: getServiceTranslation(sofT),
|
|
1966
|
+
type: "",
|
|
1967
|
+
isEdit: !!sofDocuments?.length,
|
|
1968
|
+
onClick: handleNavigateToUploadPage,
|
|
1969
|
+
meta: sofDocuments?.length ? sofDocuments.map((doc) => ({
|
|
1970
|
+
term: sofT(($) => $["fileName"]),
|
|
1971
|
+
details: [doc?.fileName, /* @__PURE__ */ jsx(Typography, {
|
|
1972
|
+
color: "secondary",
|
|
1973
|
+
children: parseSOFDocumentDescription(sofT, doc?.description) || ""
|
|
1974
|
+
}, "docDescription")]
|
|
1975
|
+
})) : []
|
|
1976
|
+
};
|
|
1977
|
+
if (completedBusinessLines && (isSoFDocumentMissing || sofDocuments?.length)) if (uploadCard.meta?.length) cards.push(uploadCard);
|
|
1978
|
+
else cards.unshift(uploadCard);
|
|
1979
|
+
return cards.map((item, index) => {
|
|
1980
|
+
return /* @__PURE__ */ jsx(SourceOfFundsGettingStartedCard, {
|
|
1981
|
+
id: index,
|
|
1982
|
+
isEdit: !!item.isEdit,
|
|
1983
|
+
title: item.title,
|
|
1984
|
+
onClick: item.onClick,
|
|
1985
|
+
meta: item.meta
|
|
1986
|
+
}, index);
|
|
1987
|
+
});
|
|
1988
|
+
}, [handleSourceOfFundsClick, sofDocuments]);
|
|
1989
|
+
const errorObjects = useMemo$1(() => getRelevantErrors(problems, SOF_INVALID_INPUT_ERROR_CODES), [problems]);
|
|
1990
|
+
return /* @__PURE__ */ jsxs("div", {
|
|
1991
|
+
className: asAwe ? SourceOfFunds_module_default.sourceOfFundsGettingStartedAwe : SourceOfFunds_module_default.sourceOfFundsGettingStarted,
|
|
1992
|
+
"data-testid": "source-of-funds-getting-started",
|
|
1993
|
+
children: [!hasSourceOfFunds && /* @__PURE__ */ jsx(LandingLayout, {
|
|
1994
|
+
media: /* @__PURE__ */ jsx(Image, { lazyLoadedImage: digitalWallet }),
|
|
1995
|
+
title: sofT(($) => $["fundingSourcesForFinancialProducts"]),
|
|
1996
|
+
description: sofT(($) => $["inTheNextStepWellCollectInformation"]),
|
|
1997
|
+
actions: /* @__PURE__ */ jsxs(Fragment$1, { children: [/* @__PURE__ */ jsx(Button, {
|
|
1998
|
+
fullWidth: true,
|
|
1999
|
+
testId: "source-of-funds-getting-primary-button",
|
|
2000
|
+
onClick: handleGettingStartedClick,
|
|
2001
|
+
children: commonT(($) => $["getStarted"])
|
|
2002
|
+
}), handleCancelClick && /* @__PURE__ */ jsx(Button, {
|
|
2003
|
+
variant: "tertiary",
|
|
2004
|
+
fullWidth: true,
|
|
2005
|
+
testId: "source-of-funds-getting-cancel-button",
|
|
2006
|
+
onClick: handleCancelClick,
|
|
2007
|
+
children: commonT(($) => $["backToTaskList"])
|
|
2008
|
+
})] })
|
|
2009
|
+
}), hasSourceOfFunds && /* @__PURE__ */ jsxs(Fragment$1, { children: [
|
|
2010
|
+
/* @__PURE__ */ jsx(Header, {
|
|
2011
|
+
title: sofT(($) => $["fundingSourcesForFinancialProducts"]),
|
|
2012
|
+
description: sofT(($) => $["addAllSourcesOfFundsBeingUsed"]),
|
|
2013
|
+
status: asAwe ? void 0 : taskStatusResponse?.status,
|
|
2014
|
+
align: "center"
|
|
2015
|
+
}),
|
|
2016
|
+
errorObjects && errorObjects.map((errorObj, index) => {
|
|
2017
|
+
const uniqueActions = getUniqueRemediationActions(errorObj);
|
|
2018
|
+
const errorItems = errorObj.subErrors?.map((subError) => subError.message) || [];
|
|
2019
|
+
return /* @__PURE__ */ jsxs(Alert, {
|
|
2020
|
+
title: errorObj.message,
|
|
2021
|
+
className: SourceOfFunds_module_default.sourceOfFundsGettingStartedError,
|
|
2022
|
+
variant: "error",
|
|
2023
|
+
children: [errorObj?.subErrors?.length && /* @__PURE__ */ jsx("ul", { children: errorItems.map((item, i) => /* @__PURE__ */ jsx("li", { children: item }, i)) }), uniqueActions.length > 0 && /* @__PURE__ */ jsx("div", {
|
|
2024
|
+
className: SourceOfFunds_module_default.sourceOfFundsGettingStartedErrorActions,
|
|
2025
|
+
children: uniqueActions.filter((action) => action.code !== "1_519").map((action, i) => /* @__PURE__ */ jsx(Button, {
|
|
2026
|
+
variant: "tertiary",
|
|
2027
|
+
testId: `remediate-action-${i}`,
|
|
2028
|
+
onClick: handleNavigateToUploadPage,
|
|
2029
|
+
children: action.message
|
|
2030
|
+
}, `action-${i}`))
|
|
2031
|
+
})]
|
|
2032
|
+
}, `error-${index}`);
|
|
2033
|
+
}),
|
|
2034
|
+
/* @__PURE__ */ jsx("div", {
|
|
2035
|
+
className: SourceOfFunds_module_default.sourceOfFundsGettingStartedCards,
|
|
2036
|
+
children: /* @__PURE__ */ jsx(StackLayout, { children: mapBusinessLines(businessLines) })
|
|
2037
|
+
}),
|
|
2038
|
+
handleCancelClick && /* @__PURE__ */ jsx(Button, {
|
|
2039
|
+
variant: "secondary",
|
|
2040
|
+
testId: "source-of-funds-getting-return-button",
|
|
2041
|
+
onClick: handleCancelClick,
|
|
2042
|
+
children: commonT(($) => $["backToTaskList"])
|
|
2043
|
+
})
|
|
2044
|
+
] })]
|
|
2045
|
+
});
|
|
2046
|
+
};
|
|
2047
|
+
//#endregion
|
|
2048
|
+
//#region src/components/EFP/tasks/SourceOfFundsDropin/SourceOfFundsUploader/SOFUploadModal.tsx
|
|
2049
|
+
var SOFUploadModal = (props) => {
|
|
2050
|
+
const { showToast } = useToastContext();
|
|
2051
|
+
const logger = createLogger();
|
|
2052
|
+
const { t: sofT } = useTranslation("sof");
|
|
2053
|
+
const { t: commonT } = useTranslation("common");
|
|
2054
|
+
const { businessLines, handleModalClose, documentUtils } = props;
|
|
2055
|
+
const [selectedService, setSelectedService] = useState$1(businessLines?.length === 1 ? businessLines?.[0]?.service : void 0);
|
|
2056
|
+
const [documentType, setDocumentType] = useState$1();
|
|
2057
|
+
const onRadioChange = (selectedId) => {
|
|
2058
|
+
setSelectedService(selectedId);
|
|
2059
|
+
setDocumentType(void 0);
|
|
2060
|
+
};
|
|
2061
|
+
const onDocumentTypeChange = (e) => {
|
|
2062
|
+
setDocumentType(e.target.value);
|
|
2063
|
+
};
|
|
2064
|
+
const serviceRadioItems = useMemo$1(() => {
|
|
2065
|
+
return Array.from(new Map(businessLines.map((businessLine) => [businessLine.service, businessLine])).values()).map((businessLine) => ({
|
|
2066
|
+
id: businessLine.service,
|
|
2067
|
+
name: sofT(($) => $[getServiceTranslationKey(businessLine?.service || "")])
|
|
2068
|
+
}));
|
|
2069
|
+
}, [businessLines, sofT]);
|
|
2070
|
+
const canUpload = useMemo$1(() => selectedService && documentType, [selectedService, documentType]);
|
|
2071
|
+
const selectedBusinessLineId = businessLines?.find((businessLine) => businessLine.service === selectedService)?.id || "";
|
|
2072
|
+
const documentLists = useMemo$1(() => {
|
|
2073
|
+
const selectedType = businessLines?.find((businessLine) => businessLine.service === selectedService)?.sourceOfFunds?.type;
|
|
2074
|
+
if (selectedType) return getDocumentLists(selectedType).map((list) => ({
|
|
2075
|
+
id: list,
|
|
2076
|
+
name: sofT(($) => $[list])
|
|
2077
|
+
}));
|
|
2078
|
+
return [];
|
|
2079
|
+
}, [
|
|
2080
|
+
businessLines,
|
|
2081
|
+
sofT,
|
|
2082
|
+
selectedService
|
|
2083
|
+
]);
|
|
2084
|
+
const documentRequirements = useMemo$1(() => {
|
|
2085
|
+
return documentType ? getDocumentRequirements[documentType] : [];
|
|
2086
|
+
}, [documentType]);
|
|
2087
|
+
const onFileUpload = async (files) => {
|
|
2088
|
+
if (!canUpload) {
|
|
2089
|
+
showToast({
|
|
2090
|
+
label: sofT(($) => $["unableToUploadDocument"]),
|
|
2091
|
+
variant: "error"
|
|
2092
|
+
});
|
|
2093
|
+
return;
|
|
2094
|
+
}
|
|
2095
|
+
const formattedDocument = await createDocumentRequest({
|
|
2096
|
+
entityId: selectedBusinessLineId,
|
|
2097
|
+
entityType: "businessLine",
|
|
2098
|
+
documentType: "proofOfFundingOrWealthSource",
|
|
2099
|
+
page1: files[0],
|
|
2100
|
+
description: `$SERVICE_NAME:${selectedService}--TYPE_NAME:${documentType}`
|
|
2101
|
+
});
|
|
2102
|
+
if (formattedDocument) try {
|
|
2103
|
+
await documentUtils.uploadDocuments([formattedDocument], selectedBusinessLineId);
|
|
2104
|
+
showToast({
|
|
2105
|
+
label: sofT(($) => $["documentUploadedSuccessfully"]),
|
|
2106
|
+
variant: "success",
|
|
2107
|
+
duration: 1e4
|
|
2108
|
+
});
|
|
2109
|
+
handleModalClose();
|
|
2110
|
+
} catch (e) {
|
|
2111
|
+
logger.log(e);
|
|
2112
|
+
showToast({
|
|
2113
|
+
label: sofT(($) => $["unableToUploadDocument"]),
|
|
2114
|
+
variant: "error"
|
|
2115
|
+
});
|
|
2116
|
+
}
|
|
2117
|
+
};
|
|
2118
|
+
return /* @__PURE__ */ jsx(Fragment$1, { children: /* @__PURE__ */ jsx(Modal, {
|
|
2119
|
+
onClose: handleModalClose,
|
|
2120
|
+
ariaLabel: sofT(($) => $["uploadASupportingDocument"]),
|
|
2121
|
+
inset: true,
|
|
2122
|
+
children: /* @__PURE__ */ jsxs("div", {
|
|
2123
|
+
className: SourceOfFunds_module_default.sourceOfFundsModal,
|
|
2124
|
+
children: [/* @__PURE__ */ jsx(Typography, {
|
|
2125
|
+
variant: "title-l",
|
|
2126
|
+
el: "h2",
|
|
2127
|
+
children: sofT(($) => $["uploadASupportingDocument"])
|
|
2128
|
+
}), /* @__PURE__ */ jsxs("div", {
|
|
2129
|
+
className: SourceOfFunds_module_default.sourceOfFundsUploadModalContent,
|
|
2130
|
+
children: [
|
|
2131
|
+
businessLines?.length > 1 ? /* @__PURE__ */ jsx(Field, {
|
|
2132
|
+
el: "fieldset",
|
|
2133
|
+
name: "service",
|
|
2134
|
+
className: SourceOfFunds_module_default.sourceOfFundsUploadModalContentField,
|
|
2135
|
+
label: sofT(($) => $["whatFinancialProductIsThisFor"]),
|
|
2136
|
+
children: (childProps) => /* @__PURE__ */ jsx(RadioGroup, {
|
|
2137
|
+
...childProps,
|
|
2138
|
+
name: "service",
|
|
2139
|
+
className: SourceOfFunds_module_default.sourceOfFundsUploadModalContentFieldRadioGroup,
|
|
2140
|
+
items: serviceRadioItems,
|
|
2141
|
+
value: selectedService,
|
|
2142
|
+
disabled: false,
|
|
2143
|
+
onChange: onRadioChange,
|
|
2144
|
+
"aria-required": true
|
|
2145
|
+
})
|
|
2146
|
+
}) : null,
|
|
2147
|
+
selectedService && /* @__PURE__ */ jsx(Field, {
|
|
2148
|
+
name: "documentType",
|
|
2149
|
+
label: commonT(($) => $["documentType"]),
|
|
2150
|
+
"data-testid": "documentType",
|
|
2151
|
+
className: SourceOfFunds_module_default.sourceOfFundsUploadModalContentField,
|
|
2152
|
+
children: (childProps) => /* @__PURE__ */ jsx(Select, {
|
|
2153
|
+
...childProps,
|
|
2154
|
+
name: "documentType",
|
|
2155
|
+
placeholder: commonT(($) => $["selectOne"]),
|
|
2156
|
+
selected: documentType,
|
|
2157
|
+
items: documentLists,
|
|
2158
|
+
onChange: onDocumentTypeChange
|
|
2159
|
+
})
|
|
2160
|
+
}),
|
|
2161
|
+
documentRequirements?.length ? /* @__PURE__ */ jsxs("div", {
|
|
2162
|
+
className: SourceOfFunds_module_default.sourceOfFundsUploadModalContentRequirementsContainer,
|
|
2163
|
+
children: [/* @__PURE__ */ jsx(Typography, {
|
|
2164
|
+
variant: "body-strongest",
|
|
2165
|
+
el: "div",
|
|
2166
|
+
children: sofT(($) => $["documentShouldShow"])
|
|
2167
|
+
}), /* @__PURE__ */ jsx("ul", { children: documentRequirements?.map((requirement) => /* @__PURE__ */ jsx("li", { children: /* @__PURE__ */ jsx(Typography, {
|
|
2168
|
+
variant: "body-stronger",
|
|
2169
|
+
el: "div",
|
|
2170
|
+
children: sofT(($) => $[requirement])
|
|
2171
|
+
}) }, requirement)) })]
|
|
2172
|
+
}) : null,
|
|
2173
|
+
canUpload && /* @__PURE__ */ jsx(Dropzone, {
|
|
2174
|
+
disabled: !canUpload,
|
|
2175
|
+
onChange: onFileUpload,
|
|
2176
|
+
showMinimal: true,
|
|
2177
|
+
hidePageCount: true,
|
|
2178
|
+
maxSize: 4194304,
|
|
2179
|
+
enableTracking: true,
|
|
2180
|
+
name: "documentField",
|
|
2181
|
+
allowedFileTypes: [
|
|
2182
|
+
"JPG",
|
|
2183
|
+
"JPEG",
|
|
2184
|
+
"PNG",
|
|
2185
|
+
"PDF"
|
|
2186
|
+
]
|
|
2187
|
+
})
|
|
2188
|
+
]
|
|
2189
|
+
})]
|
|
2190
|
+
})
|
|
2191
|
+
}) });
|
|
2192
|
+
};
|
|
2193
|
+
//#endregion
|
|
2194
|
+
//#region src/components/EFP/tasks/SourceOfFundsDropin/SourceOfFundsUploader/SourceOfFundsUpload.tsx
|
|
2195
|
+
var SourceOfFundsUpload = ({ businessLines, documentUtils, legalEntity, handleNavigateToSummary }) => {
|
|
2196
|
+
const [showUploadModal, setShowUploadModal] = useState$1(false);
|
|
2197
|
+
const [docToDelete, setDocToDelete] = useState$1(void 0);
|
|
2198
|
+
const { showToast } = useToastContext();
|
|
2199
|
+
const logger = createLogger();
|
|
2200
|
+
const queryClient = useQueryClient();
|
|
2201
|
+
const { t: sofT } = useTranslation("sof");
|
|
2202
|
+
const { t: commonT } = useTranslation("common");
|
|
2203
|
+
const handleModalClose = async () => {
|
|
2204
|
+
setShowUploadModal(false);
|
|
2205
|
+
await queryClient.invalidateQueries({ queryKey: ["legalEntity", legalEntity.id] });
|
|
2206
|
+
};
|
|
2207
|
+
const openUploadModal = () => {
|
|
2208
|
+
setShowUploadModal(true);
|
|
2209
|
+
};
|
|
2210
|
+
const documents = useMemo$1(() => legalEntity.documentDetails?.filter((doc) => doc.type === "proofOfFundingOrWealthSource") ?? [], [legalEntity]);
|
|
2211
|
+
const sourceOfFundsCategories = businessLines?.map((line) => line.sourceOfFunds?.type)?.filter(Boolean);
|
|
2212
|
+
const getTranslatedCategoryName = (categoryKey) => {
|
|
2213
|
+
const translationKey = sofCategoryItemMapper[categoryKey];
|
|
2214
|
+
if (!categoryKey || !translationKey) return "";
|
|
2215
|
+
return sofT(($) => $[translationKey]).toLowerCase();
|
|
2216
|
+
};
|
|
2217
|
+
let translationKey;
|
|
2218
|
+
let translationParams;
|
|
2219
|
+
if (sourceOfFundsCategories?.length > 1) {
|
|
2220
|
+
translationKey = "weNeedProofOfFundingForMultipleCategories";
|
|
2221
|
+
translationParams = {
|
|
2222
|
+
category1_name: getTranslatedCategoryName(sourceOfFundsCategories[0]),
|
|
2223
|
+
category2_name: getTranslatedCategoryName(sourceOfFundsCategories[1])
|
|
2224
|
+
};
|
|
2225
|
+
} else if (sourceOfFundsCategories?.length === 1) {
|
|
2226
|
+
translationKey = "weNeedProofOfFunding";
|
|
2227
|
+
translationParams = { category_name: getTranslatedCategoryName(sourceOfFundsCategories[0]) };
|
|
2228
|
+
} else translationKey = "weNeedProofOfFundingForNoCategory";
|
|
2229
|
+
const handleFileDelete = async (documentId) => {
|
|
2230
|
+
if (documentUtils.deleteDocument) try {
|
|
2231
|
+
await documentUtils.deleteDocument(documentId, legalEntity.id);
|
|
2232
|
+
await queryClient.invalidateQueries({ queryKey: ["legalEntity", legalEntity.id] });
|
|
2233
|
+
showToast({
|
|
2234
|
+
label: sofT(($) => $["documentDeletedSuccessfully"]),
|
|
2235
|
+
variant: "success",
|
|
2236
|
+
duration: 1e4
|
|
2237
|
+
});
|
|
2238
|
+
} catch (e) {
|
|
2239
|
+
logger.log(e);
|
|
2240
|
+
showToast({
|
|
2241
|
+
label: sofT(($) => $["unableToDeleteDocument"]),
|
|
2242
|
+
variant: "error"
|
|
2243
|
+
});
|
|
2244
|
+
}
|
|
2245
|
+
};
|
|
2246
|
+
return /* @__PURE__ */ jsxs("div", {
|
|
2247
|
+
className: SourceOfFunds_module_default.sourceOfFundsUploadList,
|
|
2248
|
+
children: [
|
|
2249
|
+
/* @__PURE__ */ jsxs("div", {
|
|
2250
|
+
className: SourceOfFunds_module_default.sourceOfFundsUploadListHeading,
|
|
2251
|
+
children: [/* @__PURE__ */ jsx(Typography, {
|
|
2252
|
+
el: "h1",
|
|
2253
|
+
variant: "title-l",
|
|
2254
|
+
children: sofT(($) => $["supportingDocuments"])
|
|
2255
|
+
}), /* @__PURE__ */ jsx(Typography, {
|
|
2256
|
+
className: SourceOfFunds_module_default.sourceOfFundsWrapperDescription,
|
|
2257
|
+
children: sofT(($) => $[translationKey], translationParams)
|
|
2258
|
+
})]
|
|
2259
|
+
}),
|
|
2260
|
+
documents?.map((document) => /* @__PURE__ */ jsxs("div", {
|
|
2261
|
+
className: SourceOfFunds_module_default.sourceOfFundsThirdPartyFundingFinancierGroup,
|
|
2262
|
+
children: [/* @__PURE__ */ jsxs("div", {
|
|
2263
|
+
className: SourceOfFunds_module_default.sourceOfFundsThirdPartyFundingNameAvatarGroup,
|
|
2264
|
+
children: [/* @__PURE__ */ jsx(Avatar, {
|
|
2265
|
+
iconName: "document",
|
|
2266
|
+
circle: true
|
|
2267
|
+
}), /* @__PURE__ */ jsxs("div", {
|
|
2268
|
+
className: SourceOfFunds_module_default.sourceOfFundsThirdPartyFundingNameAddressGroup,
|
|
2269
|
+
children: [/* @__PURE__ */ jsx(Typography, {
|
|
2270
|
+
el: "div",
|
|
2271
|
+
variant: "body-strongest",
|
|
2272
|
+
children: document.fileName
|
|
2273
|
+
}), /* @__PURE__ */ jsx(Typography, {
|
|
2274
|
+
el: "div",
|
|
2275
|
+
variant: "caption",
|
|
2276
|
+
children: parseSOFDocumentDescription(sofT, document.description)
|
|
2277
|
+
})]
|
|
2278
|
+
})]
|
|
2279
|
+
}), /* @__PURE__ */ jsx(IconButton, {
|
|
2280
|
+
ariaLabel: commonT(($) => $["deleteDocument"]),
|
|
2281
|
+
variant: "tertiary",
|
|
2282
|
+
icon: "cross",
|
|
2283
|
+
onClick: () => setDocToDelete(document),
|
|
2284
|
+
testId: "source-of-funds-remove-button"
|
|
2285
|
+
})]
|
|
2286
|
+
}, document.id)),
|
|
2287
|
+
/* @__PURE__ */ jsx("button", {
|
|
2288
|
+
type: "button",
|
|
2289
|
+
className: SourceOfFunds_module_default.sourceOfFundsThirdPartyFundingFinancierGroup,
|
|
2290
|
+
onClick: openUploadModal,
|
|
2291
|
+
"data-testId": "source-of-funds-upload-button",
|
|
2292
|
+
children: /* @__PURE__ */ jsxs("div", {
|
|
2293
|
+
className: SourceOfFunds_module_default.sourceOfFundsThirdPartyFundingNameAvatarGroup,
|
|
2294
|
+
children: [/* @__PURE__ */ jsx(Avatar, {
|
|
2295
|
+
label: sofT(($) => $["addDocument"]),
|
|
2296
|
+
iconName: "plus",
|
|
2297
|
+
circle: true
|
|
2298
|
+
}), /* @__PURE__ */ jsx(Typography, {
|
|
2299
|
+
el: "div",
|
|
2300
|
+
variant: "body-strongest",
|
|
2301
|
+
children: sofT(($) => $["addDocument"])
|
|
2302
|
+
})]
|
|
2303
|
+
})
|
|
2304
|
+
}),
|
|
2305
|
+
handleNavigateToSummary && /* @__PURE__ */ jsx("div", {
|
|
2306
|
+
className: SourceOfFunds_module_default.sourceOfFundsGettingStartedActions,
|
|
2307
|
+
children: /* @__PURE__ */ jsx(Button, {
|
|
2308
|
+
variant: "secondary",
|
|
2309
|
+
onClick: handleNavigateToSummary,
|
|
2310
|
+
children: documents?.length > 0 ? commonT(($) => $["finish"]) : commonT(($) => $["cancel"])
|
|
2311
|
+
})
|
|
2312
|
+
}),
|
|
2313
|
+
!!docToDelete && /* @__PURE__ */ jsx(Confirm, {
|
|
2314
|
+
title: sofT(($) => $["areYouSureYouWantToDeleteThisDocument"], { documentName: docToDelete?.fileName || "" }),
|
|
2315
|
+
confirmText: commonT(($) => $["delete"]),
|
|
2316
|
+
onConfirm: () => handleFileDelete(docToDelete?.id),
|
|
2317
|
+
onCancel: () => setDocToDelete(void 0),
|
|
2318
|
+
critical: true
|
|
2319
|
+
}),
|
|
2320
|
+
showUploadModal && /* @__PURE__ */ jsx(SOFUploadModal, {
|
|
2321
|
+
documentUtils,
|
|
2322
|
+
handleModalClose,
|
|
2323
|
+
businessLines
|
|
2324
|
+
})
|
|
2325
|
+
]
|
|
2326
|
+
});
|
|
2327
|
+
};
|
|
2328
|
+
//#endregion
|
|
2329
|
+
//#region src/utils/urlUtils.ts
|
|
2330
|
+
function canParseUrl(url) {
|
|
2331
|
+
if (URL.canParse) return URL.canParse(url);
|
|
2332
|
+
try {
|
|
2333
|
+
new URL(url);
|
|
2334
|
+
return true;
|
|
2335
|
+
} catch {
|
|
2336
|
+
return false;
|
|
2337
|
+
}
|
|
2338
|
+
}
|
|
2339
|
+
//#endregion
|
|
2340
|
+
//#region src/components/EFP/tasks/SourceOfFundsDropin/validate.ts
|
|
2341
|
+
var sourceOfFundsTypeValidations = {};
|
|
2342
|
+
var HAS_PROTOCOL_REGEX = /^https?:\/\//i;
|
|
2343
|
+
var sourceOfFundsAdditionalDataValidations = {
|
|
2344
|
+
website: {
|
|
2345
|
+
modes: ["blur"],
|
|
2346
|
+
validate: (val) => !!val && canParseUrl(val),
|
|
2347
|
+
errorMessage: (val) => {
|
|
2348
|
+
if (val && !HAS_PROTOCOL_REGEX.test(val)) return "validationUrlMustStartWithHttpOrHttps";
|
|
2349
|
+
return "validationPleaseEnterAValidUrl";
|
|
2350
|
+
}
|
|
2351
|
+
},
|
|
2352
|
+
amount: {
|
|
2353
|
+
modes: ["blur"],
|
|
2354
|
+
validate: (amount) => amount?.value != null && !Number.isNaN(Number(amount.value)),
|
|
2355
|
+
errorMessage: "pleaseEnterAValidAmount"
|
|
2356
|
+
},
|
|
2357
|
+
dateOfSourceEvent: {
|
|
2358
|
+
modes: ["blur"],
|
|
2359
|
+
validate: (dateOfSourceEvent) => validateDateNotInTheFuture(dateOfSourceEvent),
|
|
2360
|
+
errorMessage: "dateCannotBeInTheFuture"
|
|
2361
|
+
},
|
|
2362
|
+
dateOfFundsReceived: {
|
|
2363
|
+
modes: ["blur"],
|
|
2364
|
+
validate: (dateOfFundsReceived) => validateDateNotInTheFuture(dateOfFundsReceived),
|
|
2365
|
+
errorMessage: "dateCannotBeInTheFuture"
|
|
2366
|
+
}
|
|
2367
|
+
};
|
|
2368
|
+
//#endregion
|
|
2369
|
+
//#region src/components/EFP/tasks/SourceOfFundsDropin/SourceOfFundsDropin.tsx
|
|
2370
|
+
var logger = createLogger();
|
|
2371
|
+
function SourceOfFundsDropin({ country, problems, handleHomeClick, onSubmit, asAwe }) {
|
|
2372
|
+
const { data: legalEntity, isLoading: isLoadingRootLegalEntity } = useLegalEntity(ROOT_LE);
|
|
2373
|
+
const [loadingStatus, setLoadingStatus] = useState$1("success");
|
|
2374
|
+
const [activeBusinessLine, setActiveBusinessLine] = useState$1();
|
|
2375
|
+
const [activeSourceOfFund, setActiveSourceOfFund] = useState$1({
|
|
2376
|
+
sourceOfFundsType: {},
|
|
2377
|
+
additionalData: {}
|
|
2378
|
+
});
|
|
2379
|
+
const [allBusinessLines, setAllBusinessLines] = useState$1([]);
|
|
2380
|
+
const [gettingStarted, setGettingStarted] = useState$1(true);
|
|
2381
|
+
const [showUploadPage, setShowUploadPage] = useState$1(false);
|
|
2382
|
+
const [loading, setLoading] = useState$1(false);
|
|
2383
|
+
const [useSameAs, setUseSameAs] = useState$1(true);
|
|
2384
|
+
const { baseUrl, rootLegalEntityId } = useApiContext();
|
|
2385
|
+
const { t: sofT } = useTranslation("sof");
|
|
2386
|
+
const userEvents = useAnalyticsContext();
|
|
2387
|
+
const { showToast } = useToastContext();
|
|
2388
|
+
const { data: sofBusinessLines, isLoading: isLoadingBusinessLines } = useBusinessLines(ALLOWED_SOF_SERVICES);
|
|
2389
|
+
const { mutateAsync: createLegalEntity } = useCreateLegalEntity();
|
|
2390
|
+
const { mutateAsync: updateLegalEntity } = useUpdateLegalEntity();
|
|
2391
|
+
const { mutateAsync: updateSoFMutation } = useUpdateSourceOfFunds();
|
|
2392
|
+
const form = useMultiForm({
|
|
2393
|
+
requiredFields: getSourceOfFundsRequiredFields,
|
|
2394
|
+
rules: {
|
|
2395
|
+
sourceOfFundsType: sourceOfFundsTypeValidations,
|
|
2396
|
+
additionalData: sourceOfFundsAdditionalDataValidations
|
|
2397
|
+
},
|
|
2398
|
+
defaultData: activeSourceOfFund
|
|
2399
|
+
});
|
|
2400
|
+
const { data = activeSourceOfFund, setFormData, setData, requiredFields, isValid, triggerValidation } = form;
|
|
2401
|
+
const isSoFDocumentMissing = useMemo$1(() => legalEntity?.problems?.some((problem) => problem?.verificationErrors?.some((verificationError) => verificationError?.code === "2_8224")) ?? false, [legalEntity?.problems]);
|
|
2402
|
+
const legalEntityResults = useLegalEntities(sofBusinessLines?.map((businessLine) => businessLine.sourceOfFunds?.originatorLegalEntityId).filter((id) => Boolean(id)) ?? [], { staleTime: 300 * 1e3 });
|
|
2403
|
+
const areLegalEntitiesLoading = legalEntityResults.some((result) => result.isLoading);
|
|
2404
|
+
const normalizedBusinessLines = useMemo$1(() => {
|
|
2405
|
+
if (!sofBusinessLines) return null;
|
|
2406
|
+
return sofBusinessLines.map((businessLine, index) => {
|
|
2407
|
+
const result = legalEntityResults[index];
|
|
2408
|
+
let updatedBusinessLine = { ...businessLine };
|
|
2409
|
+
if (result && result.data) updatedBusinessLine = parseOriginatorDetails(result.data, updatedBusinessLine);
|
|
2410
|
+
else if (result && result.isError) {
|
|
2411
|
+
logger.error(`Error fetching legal entity for BL ${businessLine.id}:`, result.error);
|
|
2412
|
+
showToast({
|
|
2413
|
+
label: sofT(($) => $["unableToLoadRelatedEntity"]),
|
|
2414
|
+
variant: "error"
|
|
2415
|
+
});
|
|
2416
|
+
}
|
|
2417
|
+
if (updatedBusinessLine.sourceOfFunds?.adyenProcessedFunds) updatedBusinessLine.sourceOfFunds.type = "adyen";
|
|
2418
|
+
return updatedBusinessLine;
|
|
2419
|
+
});
|
|
2420
|
+
}, [sofBusinessLines, JSON.stringify(legalEntityResults.map((r) => ({
|
|
2421
|
+
data: r.data,
|
|
2422
|
+
isError: r.isError,
|
|
2423
|
+
error: r.error,
|
|
2424
|
+
isLoading: r.isLoading
|
|
2425
|
+
})))]);
|
|
2426
|
+
useEffect$1(() => {
|
|
2427
|
+
if (sofBusinessLines && !areLegalEntitiesLoading && normalizedBusinessLines) {
|
|
2428
|
+
clearSofErrorMessage();
|
|
2429
|
+
setLoading(true);
|
|
2430
|
+
try {
|
|
2431
|
+
if (normalizedBusinessLines.length) {
|
|
2432
|
+
setAllBusinessLines((prev) => objectsDeepEqual(prev, normalizedBusinessLines) ? prev : normalizedBusinessLines);
|
|
2433
|
+
if (!activeBusinessLine) {
|
|
2434
|
+
const firstBusinessLine = normalizedBusinessLines[0];
|
|
2435
|
+
if (firstBusinessLine) {
|
|
2436
|
+
const mappedSof = mapSourceOfFundToSourceOfFundsSchema(firstBusinessLine);
|
|
2437
|
+
setActiveBusinessLine(firstBusinessLine);
|
|
2438
|
+
setActiveSourceOfFund(mappedSof);
|
|
2439
|
+
if (mappedSof?.sourceOfFundsType) setFormData("sourceOfFundsType", mappedSof.sourceOfFundsType);
|
|
2440
|
+
if (mappedSof?.additionalData) setFormData("additionalData", mappedSof.additionalData);
|
|
2441
|
+
}
|
|
2442
|
+
}
|
|
2443
|
+
}
|
|
2444
|
+
} catch (error) {
|
|
2445
|
+
showToast({
|
|
2446
|
+
label: sofT(($) => $["unableToLoadRelatedEntity"]),
|
|
2447
|
+
variant: "error"
|
|
2448
|
+
});
|
|
2449
|
+
logger.error(error);
|
|
2450
|
+
} finally {
|
|
2451
|
+
setLoading(false);
|
|
2452
|
+
}
|
|
2453
|
+
}
|
|
2454
|
+
}, [
|
|
2455
|
+
sofBusinessLines,
|
|
2456
|
+
areLegalEntitiesLoading,
|
|
2457
|
+
normalizedBusinessLines,
|
|
2458
|
+
activeBusinessLine,
|
|
2459
|
+
sofT,
|
|
2460
|
+
logger
|
|
2461
|
+
]);
|
|
2462
|
+
/**
|
|
2463
|
+
* Analytics
|
|
2464
|
+
*/
|
|
2465
|
+
useTaskLandedEvent("SOURCE_OF_FUNDS");
|
|
2466
|
+
useEffect$1(() => {
|
|
2467
|
+
if (!gettingStarted && activeBusinessLine && allBusinessLines.length > 1) {
|
|
2468
|
+
const applicableBusinessLines = getApplicableBusinessLines(allBusinessLines);
|
|
2469
|
+
if (applicableBusinessLines.length > 1) {
|
|
2470
|
+
if (applicableBusinessLines.every((bl) => bl.sourceOfFunds?.type)) {
|
|
2471
|
+
const currentSoF = mapSourceOfFundToSourceOfFundsSchema(activeBusinessLine);
|
|
2472
|
+
setUseSameAs(applicableBusinessLines.filter((bl) => bl.id !== activeBusinessLine.id).every((bl) => {
|
|
2473
|
+
return areSourceOfFundsEqual(currentSoF, mapSourceOfFundToSourceOfFundsSchema(bl));
|
|
2474
|
+
}));
|
|
2475
|
+
}
|
|
2476
|
+
}
|
|
2477
|
+
}
|
|
2478
|
+
}, [
|
|
2479
|
+
gettingStarted,
|
|
2480
|
+
activeBusinessLine,
|
|
2481
|
+
allBusinessLines
|
|
2482
|
+
]);
|
|
2483
|
+
const sourceOfFundsRequiredForms = useMemo$1(() => getSourceOfFundsRequiredForms(data?.sourceOfFundsType), [data?.sourceOfFundsType]);
|
|
2484
|
+
const forms = useMemo$1(() => {
|
|
2485
|
+
return addValidityToForms(getRequiredForms(sourceOfFundsRequiredForms, requiredFields, void 0, true), isValid, problems);
|
|
2486
|
+
}, [
|
|
2487
|
+
sourceOfFundsRequiredForms,
|
|
2488
|
+
requiredFields,
|
|
2489
|
+
isValid,
|
|
2490
|
+
problems
|
|
2491
|
+
]);
|
|
2492
|
+
const createOrUpdateOriginator = async (additionalData, prevAdditionalData) => {
|
|
2493
|
+
let originatorLegalEntityId;
|
|
2494
|
+
const sofOriginator = parseSofOriginatorPayload(additionalData);
|
|
2495
|
+
if (additionalData?.originatorLegalEntityId && additionalData?.originatorType === prevAdditionalData?.originatorType) try {
|
|
2496
|
+
sofOriginator.id = additionalData?.originatorLegalEntityId;
|
|
2497
|
+
if (sofOriginator.type) delete sofOriginator.type;
|
|
2498
|
+
originatorLegalEntityId = (await updateLegalEntity({
|
|
2499
|
+
...sofOriginator,
|
|
2500
|
+
id: sofOriginator.id
|
|
2501
|
+
}))?.id;
|
|
2502
|
+
} catch (e) {
|
|
2503
|
+
logger.log("Error updating originator legal entity", e);
|
|
2504
|
+
}
|
|
2505
|
+
else try {
|
|
2506
|
+
originatorLegalEntityId = (await createLegalEntity(sofOriginator))?.id;
|
|
2507
|
+
} catch (e) {
|
|
2508
|
+
logger.log("Error creating originator legal entity", e);
|
|
2509
|
+
}
|
|
2510
|
+
return originatorLegalEntityId;
|
|
2511
|
+
};
|
|
2512
|
+
const handleSubmit = useCallback$1(async () => {
|
|
2513
|
+
const sofData = { ...data };
|
|
2514
|
+
const sofType = sofData?.sourceOfFundsType?.type;
|
|
2515
|
+
if (!sofType || !activeBusinessLine?.id) return;
|
|
2516
|
+
const eventsAdditionalData = {};
|
|
2517
|
+
setLoadingStatus("loading");
|
|
2518
|
+
const { additionalData } = sofData;
|
|
2519
|
+
const sofPayload = getSourceOfFundsPayload(sofType, additionalData);
|
|
2520
|
+
if (sofType === "thirdPartyFunding") eventsAdditionalData.financiers = `${additionalData?.financiers?.length || 0} investor(s)`;
|
|
2521
|
+
if (sofType === "donations" || sofType === "inheritance") eventsAdditionalData.originatorType = additionalData?.originatorType ?? "";
|
|
2522
|
+
const targetBusinessLines = useSameAs ? getApplicableBusinessLines(allBusinessLines) : [activeBusinessLine];
|
|
2523
|
+
const savePromises = targetBusinessLines.filter((bl) => bl.id).map(async (bl) => {
|
|
2524
|
+
const payload = { ...sofPayload };
|
|
2525
|
+
if (sofType === "donations" || sofType === "inheritance") try {
|
|
2526
|
+
const blAdditionalData = mapSourceOfFundToSourceOfFundsSchema(bl)?.additionalData;
|
|
2527
|
+
payload.originatorLegalEntityId = await createOrUpdateOriginator(useSameAs ? {
|
|
2528
|
+
...additionalData,
|
|
2529
|
+
originatorLegalEntityId: blAdditionalData?.originatorLegalEntityId
|
|
2530
|
+
} : getAdditionalDataForOriginator(additionalData, activeSourceOfFund?.additionalData, useSameAs), blAdditionalData);
|
|
2531
|
+
} catch (e) {
|
|
2532
|
+
logger.log("Error creating originator legal entity for business line", e);
|
|
2533
|
+
throw e;
|
|
2534
|
+
}
|
|
2535
|
+
return updateSoFMutation({
|
|
2536
|
+
...payload,
|
|
2537
|
+
businessLineId: bl.id
|
|
2538
|
+
});
|
|
2539
|
+
});
|
|
2540
|
+
try {
|
|
2541
|
+
const results = await Promise.allSettled(savePromises);
|
|
2542
|
+
const failures = results.filter((r) => r.status === "rejected");
|
|
2543
|
+
if (failures.length > 0) {
|
|
2544
|
+
setSofErrorMessage(sofT(($) => $["errorUpdatingMultipleSourceOfFunds"], { count: failures.length }));
|
|
2545
|
+
logger.error("Failed to update SoF for some business lines", failures);
|
|
2546
|
+
}
|
|
2547
|
+
const successes = results.filter((r) => r.status === "fulfilled");
|
|
2548
|
+
if (successes.length > 0) {
|
|
2549
|
+
userEvents.addTaskEvent("Success", {
|
|
2550
|
+
actionType: "submit",
|
|
2551
|
+
returnValue: sofType,
|
|
2552
|
+
additionalData: {
|
|
2553
|
+
...eventsAdditionalData,
|
|
2554
|
+
appliedToMultiple: useSameAs,
|
|
2555
|
+
successCount: successes.length,
|
|
2556
|
+
failureCount: failures.length,
|
|
2557
|
+
businessLinesCount: allBusinessLines.length,
|
|
2558
|
+
activeBusinessLineType: activeBusinessLine?.service,
|
|
2559
|
+
activeBusinessLineCode: activeBusinessLine?.industryCode
|
|
2560
|
+
}
|
|
2561
|
+
});
|
|
2562
|
+
setGettingStarted(true);
|
|
2563
|
+
setShowUploadPage(false);
|
|
2564
|
+
setActiveSourceOfFund({
|
|
2565
|
+
sourceOfFundsType: {},
|
|
2566
|
+
additionalData: {}
|
|
2567
|
+
});
|
|
2568
|
+
gotoFormByFormIndex(0);
|
|
2569
|
+
setUseSameAs(true);
|
|
2570
|
+
if (failures.length === 0) {
|
|
2571
|
+
showToast({
|
|
2572
|
+
label: sofT(($) => $["successAddedFundingSources"]),
|
|
2573
|
+
variant: "success"
|
|
2574
|
+
});
|
|
2575
|
+
setSofErrorMessage("");
|
|
2576
|
+
} else showToast({
|
|
2577
|
+
label: sofT(($) => $["successAddedFundingSources"]),
|
|
2578
|
+
variant: "success"
|
|
2579
|
+
});
|
|
2580
|
+
if (useSameAs) {
|
|
2581
|
+
if (asAwe) onSubmit?.(data);
|
|
2582
|
+
} else {
|
|
2583
|
+
const applicableBusinessLines = getApplicableBusinessLines(allBusinessLines);
|
|
2584
|
+
if (applicableBusinessLines.filter((bl) => {
|
|
2585
|
+
return targetBusinessLines.some((target) => target.id === bl.id) || !isEmpty(bl.sourceOfFunds);
|
|
2586
|
+
}).length === applicableBusinessLines.length) {
|
|
2587
|
+
handleHomeClick?.();
|
|
2588
|
+
if (asAwe) onSubmit?.(data);
|
|
2589
|
+
}
|
|
2590
|
+
}
|
|
2591
|
+
} else setSofErrorMessage(sofT(($) => $["errorUpdatingSourceOfFunds"]));
|
|
2592
|
+
} catch (e) {
|
|
2593
|
+
setSofErrorMessage(sofT(($) => $["errorUpdatingSourceOfFunds"]));
|
|
2594
|
+
logger.log("Error updating source of funds", e);
|
|
2595
|
+
}
|
|
2596
|
+
setLoadingStatus("success");
|
|
2597
|
+
}, [
|
|
2598
|
+
data,
|
|
2599
|
+
activeSourceOfFund,
|
|
2600
|
+
activeBusinessLine,
|
|
2601
|
+
allBusinessLines,
|
|
2602
|
+
useSameAs,
|
|
2603
|
+
updateSoFMutation,
|
|
2604
|
+
createOrUpdateOriginator,
|
|
2605
|
+
userEvents,
|
|
2606
|
+
showToast,
|
|
2607
|
+
sofT,
|
|
2608
|
+
logger
|
|
2609
|
+
]);
|
|
2610
|
+
const handleGettingStarted = useCallback$1(() => {
|
|
2611
|
+
setGettingStarted(!gettingStarted);
|
|
2612
|
+
}, [gettingStarted]);
|
|
2613
|
+
const handleSourceOfFundsClick = (SoF, businessLine) => {
|
|
2614
|
+
setActiveBusinessLine(businessLine);
|
|
2615
|
+
setActiveSourceOfFund(SoF);
|
|
2616
|
+
setGettingStarted(false);
|
|
2617
|
+
setUseSameAs(false);
|
|
2618
|
+
};
|
|
2619
|
+
const sameAsOption = useMemo$1(() => {
|
|
2620
|
+
if (!activeBusinessLine || !allBusinessLines.length) return;
|
|
2621
|
+
if (getApplicableBusinessLines(allBusinessLines).length <= 1) return;
|
|
2622
|
+
return {
|
|
2623
|
+
businessLineId: "",
|
|
2624
|
+
productName: sofT(($) => $["alwaysUseThisFundingSource"]),
|
|
2625
|
+
sourceOfFunds: activeSourceOfFund
|
|
2626
|
+
};
|
|
2627
|
+
}, [
|
|
2628
|
+
activeBusinessLine,
|
|
2629
|
+
allBusinessLines,
|
|
2630
|
+
activeSourceOfFund,
|
|
2631
|
+
sofT
|
|
2632
|
+
]);
|
|
2633
|
+
const setAdditionalDataFields = useCallback$1((additionalData) => {
|
|
2634
|
+
if (!additionalData) return;
|
|
2635
|
+
Object.keys(additionalData).forEach((key) => {
|
|
2636
|
+
const fieldKey = key;
|
|
2637
|
+
const value = additionalData[fieldKey];
|
|
2638
|
+
if (value !== void 0) setData(fieldKey, value, "additionalData");
|
|
2639
|
+
});
|
|
2640
|
+
}, [setData]);
|
|
2641
|
+
const handleUseSameAsChange = useCallback$1((checked) => {
|
|
2642
|
+
setUseSameAs(checked);
|
|
2643
|
+
if (checked && sameAsOption) {
|
|
2644
|
+
const { sourceOfFunds } = sameAsOption;
|
|
2645
|
+
setActiveSourceOfFund(sourceOfFunds);
|
|
2646
|
+
setFormData("sourceOfFundsType", sourceOfFunds.sourceOfFundsType);
|
|
2647
|
+
setAdditionalDataFields(sourceOfFunds.additionalData);
|
|
2648
|
+
} else if (!checked && activeBusinessLine) {
|
|
2649
|
+
const currentSoF = mapSourceOfFundToSourceOfFundsSchema(activeBusinessLine);
|
|
2650
|
+
setActiveSourceOfFund(currentSoF);
|
|
2651
|
+
setFormData("sourceOfFundsType", currentSoF.sourceOfFundsType);
|
|
2652
|
+
setAdditionalDataFields(currentSoF.additionalData);
|
|
2653
|
+
}
|
|
2654
|
+
}, [
|
|
2655
|
+
sameAsOption,
|
|
2656
|
+
activeBusinessLine,
|
|
2657
|
+
setFormData,
|
|
2658
|
+
setAdditionalDataFields
|
|
2659
|
+
]);
|
|
2660
|
+
const { handleNextClick, activeForm, gotoFormByFormIndex, gotoFormByFormId, steps, handleBackClick } = useFormComposer({
|
|
2661
|
+
problems,
|
|
2662
|
+
forms,
|
|
2663
|
+
onSubmit: handleSubmit,
|
|
2664
|
+
triggerValidation
|
|
2665
|
+
});
|
|
2666
|
+
const documentUtils = documentApiUtils({
|
|
2667
|
+
baseUrl: baseUrl.value,
|
|
2668
|
+
rootLegalEntityId: rootLegalEntityId.value
|
|
2669
|
+
});
|
|
2670
|
+
const handleNavigateToSummary = async () => {
|
|
2671
|
+
setShowUploadPage(false);
|
|
2672
|
+
setGettingStarted(true);
|
|
2673
|
+
};
|
|
2674
|
+
const handleNavigateToUploadPage = () => {
|
|
2675
|
+
setShowUploadPage(true);
|
|
2676
|
+
};
|
|
2677
|
+
return /* @__PURE__ */ jsx("div", {
|
|
2678
|
+
className: asAwe ? SourceOfFunds_module_default.sourceOfFundsAwe : SourceOfFunds_module_default.sourceOfFunds,
|
|
2679
|
+
children: loading || isLoadingRootLegalEntity || isLoadingBusinessLines || areLegalEntitiesLoading ? /* @__PURE__ */ jsx(Loader, {}) : /* @__PURE__ */ jsxs(Fragment$1, { children: [
|
|
2680
|
+
gettingStarted && !showUploadPage && legalEntity && /* @__PURE__ */ jsx(SourceOfFundsGettingStarted, {
|
|
2681
|
+
asAwe,
|
|
2682
|
+
handleCancelClick: handleHomeClick,
|
|
2683
|
+
handleGettingStartedClick: handleGettingStarted,
|
|
2684
|
+
businessLines: allBusinessLines,
|
|
2685
|
+
problems: legalEntity?.problems,
|
|
2686
|
+
handleSourceOfFundsClick,
|
|
2687
|
+
handleNavigateToUploadPage,
|
|
2688
|
+
legalEntity,
|
|
2689
|
+
isSoFDocumentMissing
|
|
2690
|
+
}),
|
|
2691
|
+
showUploadPage && legalEntity && /* @__PURE__ */ jsx(SourceOfFundsUpload, {
|
|
2692
|
+
businessLines: allBusinessLines,
|
|
2693
|
+
documentUtils,
|
|
2694
|
+
legalEntity,
|
|
2695
|
+
handleNavigateToSummary
|
|
2696
|
+
}),
|
|
2697
|
+
!gettingStarted && !showUploadPage && /* @__PURE__ */ jsx(FormContextProvider, {
|
|
2698
|
+
form,
|
|
2699
|
+
children: /* @__PURE__ */ jsx(FormFlow, {
|
|
2700
|
+
forms,
|
|
2701
|
+
disableNextButton: !activeForm.isValid,
|
|
2702
|
+
activeForm,
|
|
2703
|
+
gotoFormByFormIndex,
|
|
2704
|
+
gotoFormByFormId,
|
|
2705
|
+
handleBackClick: steps.current === 0 ? handleGettingStarted : handleBackClick,
|
|
2706
|
+
handleCancelClick: handleHomeClick,
|
|
2707
|
+
handleNextClick,
|
|
2708
|
+
loadingStatus,
|
|
2709
|
+
currentStep: steps.current,
|
|
2710
|
+
totalSteps: steps.total,
|
|
2711
|
+
children: /* @__PURE__ */ jsx(SourceOfFunds, {
|
|
2712
|
+
country,
|
|
2713
|
+
activeForm,
|
|
2714
|
+
activeBusinessLine,
|
|
2715
|
+
sourceOfFundsType: data?.sourceOfFundsType?.type,
|
|
2716
|
+
data: activeSourceOfFund,
|
|
2717
|
+
sameAsOption,
|
|
2718
|
+
useSameAs,
|
|
2719
|
+
onUseSameAsChange: handleUseSameAsChange
|
|
2720
|
+
})
|
|
2721
|
+
})
|
|
2722
|
+
})
|
|
2723
|
+
] })
|
|
2724
|
+
});
|
|
2725
|
+
}
|
|
2726
|
+
//#endregion
|
|
2727
|
+
//#region src/components/EFP/pages/SourceOfFundsPage.tsx
|
|
2728
|
+
var SourceOfFundsPage_exports = /* @__PURE__ */ __exportAll({ SourceOfFundsPage: () => SourceOfFundsPage });
|
|
2729
|
+
var SourceOfFundsPage = ({ onSubmit, handleHomeClick, asAwe }) => {
|
|
2730
|
+
const { data: rootLe } = useLegalEntity(ROOT_LE);
|
|
2731
|
+
const capabilityProblems = useCapabilityProblems();
|
|
2732
|
+
const { i18n } = useTranslation();
|
|
2733
|
+
addResourceBundles(i18n, [{
|
|
2734
|
+
ns: "sof",
|
|
2735
|
+
importFn: (lang) => _rolldown_dynamic_import_helper_default(/* @__PURE__ */ Object.assign({
|
|
2736
|
+
"../tasks/SourceOfFundsDropin/language/bg-BG.json": () => import("./bg-BG-Bw1uE2hh.js"),
|
|
2737
|
+
"../tasks/SourceOfFundsDropin/language/cs-CZ.json": () => import("./cs-CZ-B1VpAUva.js"),
|
|
2738
|
+
"../tasks/SourceOfFundsDropin/language/da-DK.json": () => import("./da-DK-klGGwyxv.js"),
|
|
2739
|
+
"../tasks/SourceOfFundsDropin/language/de-DE.json": () => import("./de-DE-DXkUC1-N.js"),
|
|
2740
|
+
"../tasks/SourceOfFundsDropin/language/el-GR.json": () => import("./el-GR-CEZLeeb3.js"),
|
|
2741
|
+
"../tasks/SourceOfFundsDropin/language/en-US.json": () => import("./en-US-CN15rSvL.js"),
|
|
2742
|
+
"../tasks/SourceOfFundsDropin/language/es-ES.json": () => import("./es-ES-DB77kzqT.js"),
|
|
2743
|
+
"../tasks/SourceOfFundsDropin/language/et-EE.json": () => import("./et-EE-Dj0jysHw.js"),
|
|
2744
|
+
"../tasks/SourceOfFundsDropin/language/fi-FI.json": () => import("./fi-FI-4ckffUlB.js"),
|
|
2745
|
+
"../tasks/SourceOfFundsDropin/language/fr-FR.json": () => import("./fr-FR-CZs4UzUR.js"),
|
|
2746
|
+
"../tasks/SourceOfFundsDropin/language/hr-HR.json": () => import("./hr-HR-Ngyn0CeW.js"),
|
|
2747
|
+
"../tasks/SourceOfFundsDropin/language/hu-HU.json": () => import("./hu-HU-D_5yVmCo.js"),
|
|
2748
|
+
"../tasks/SourceOfFundsDropin/language/it-IT.json": () => import("./it-IT-B2zFnv7K.js"),
|
|
2749
|
+
"../tasks/SourceOfFundsDropin/language/ja-JP.json": () => import("./ja-JP-CYmySE1y.js"),
|
|
2750
|
+
"../tasks/SourceOfFundsDropin/language/lt-LT.json": () => import("./lt-LT-2KIisO4_.js"),
|
|
2751
|
+
"../tasks/SourceOfFundsDropin/language/lv-LV.json": () => import("./lv-LV-CaTht4v3.js"),
|
|
2752
|
+
"../tasks/SourceOfFundsDropin/language/nl-NL.json": () => import("./nl-NL-kUujSdLA.js"),
|
|
2753
|
+
"../tasks/SourceOfFundsDropin/language/no-NO.json": () => import("./no-NO-DAK8yauA.js"),
|
|
2754
|
+
"../tasks/SourceOfFundsDropin/language/pl-PL.json": () => import("./pl-PL-CpA94K5Z.js"),
|
|
2755
|
+
"../tasks/SourceOfFundsDropin/language/pt-BR.json": () => import("./pt-BR-u_Sv-NkV.js"),
|
|
2756
|
+
"../tasks/SourceOfFundsDropin/language/pt-PT.json": () => import("./pt-PT-BXlxPqah.js"),
|
|
2757
|
+
"../tasks/SourceOfFundsDropin/language/ro-RO.json": () => import("./ro-RO-CfsDLBM4.js"),
|
|
2758
|
+
"../tasks/SourceOfFundsDropin/language/sk-SK.json": () => import("./sk-SK-ChCtHT1F.js"),
|
|
2759
|
+
"../tasks/SourceOfFundsDropin/language/sl-SI.json": () => import("./sl-SI-DpgW-r5w.js"),
|
|
2760
|
+
"../tasks/SourceOfFundsDropin/language/sv-SE.json": () => import("./sv-SE-Iv-yFbrD2.js")
|
|
2761
|
+
}), `../tasks/SourceOfFundsDropin/language/${lang}.json`, 5)
|
|
2762
|
+
}]);
|
|
2763
|
+
if (!rootLe) return /* @__PURE__ */ jsx(Loader, {});
|
|
2764
|
+
const problems = capabilityProblems ? getProblemsForEntity(capabilityProblems, EntityTypes.LEGAL_ENTITY, rootLe.id) : void 0;
|
|
2765
|
+
return /* @__PURE__ */ jsx(SourceOfFundsDropin, {
|
|
2766
|
+
legalEntityResponse: rootLe,
|
|
2767
|
+
country: getLegalEntityCountry(rootLe),
|
|
2768
|
+
problems,
|
|
2769
|
+
asAwe,
|
|
2770
|
+
onSubmit,
|
|
2771
|
+
handleHomeClick
|
|
2772
|
+
});
|
|
2773
|
+
};
|
|
2774
|
+
//#endregion
|
|
2775
|
+
export { SourceOfFundsPage_exports as n, SourceOfFundsPage as t };
|