@adyen/kyc-components 4.10.0 → 4.11.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/4-people-Dt-FR2z_.js +35 -0
- package/dist/AcceptTermsOfServiceComponent-B7fbVXdI.js +653 -0
- package/dist/Accordion-Cyh-79AN.js +111 -0
- package/dist/AccountSetupRejected-C73kDfqv.js +19 -0
- package/dist/AdaptiveWorkflow-CTz0Tq7U.js +1102 -0
- package/dist/AdaptiveWorkflowComponent-bvyn4HDz.js +139 -0
- package/dist/Address-BHsUBMEd.js +557 -0
- package/dist/Alert-B5ye0DfE.js +170 -0
- package/dist/AnalyticsContext-C0HNdPss.js +74 -0
- package/dist/Avatar-BsTXJ0r5.js +54 -0
- package/dist/BusinessFinancingDropin-DwhQ3MIM.js +1803 -0
- package/dist/BusinessFinancingPage-nH-LXbfW.js +87 -0
- package/dist/BusinessTypeSelectionPage-DUbERJnZ.js +436 -0
- package/dist/Button-CAoywEKy.js +189 -0
- package/dist/Checkbox-B54372Sm.js +55 -0
- package/dist/CompanyRegistrationNumberTypeSelector-ClsEwZ_M.js +1038 -0
- package/dist/Confirm-DUAr1FiX.js +76 -0
- package/dist/ConstitutionalDocument-DLKR6UHP.js +1258 -0
- package/dist/ContactDetails-BF42eW3s.js +288 -0
- package/dist/ContextGuidance-DUTeagNS.js +29 -0
- package/dist/CountryField-BNRhvO1q.js +38 -0
- package/dist/Currency-4t6bIyeE.js +191 -0
- package/dist/CustomerSupport-Brw718_1.js +129 -0
- package/dist/DebugModal-D0kXm91Y.js +454 -0
- package/dist/DecisionMakerDetails-AxLrrm-Q.js +469 -0
- package/dist/DecisionMakerDetailsPage-BfrKjwlD.js +103 -0
- package/dist/DecisionMakers-BLwLV8lq.js +583 -0
- package/dist/Dropzone-CwJCEAjb.js +236 -0
- package/dist/EmbeddedStatus-MtQ7t2IO.js +128 -0
- package/dist/EndStateLayout-E6Ojfg_N.js +84 -0
- package/dist/EntityAssociation-CyQ6yBFS.js +163 -0
- package/dist/ErrorPanel-BXe3GGb1.js +185 -0
- package/dist/Field-BD_0HjiI.js +155 -0
- package/dist/FormNavigation-CnYKCwKM.js +116 -0
- package/dist/Header-BI6ESU0g.js +93 -0
- package/dist/Image-DTsQXPLw.js +33 -0
- package/dist/Individual.rules-96yFA3BD.js +296 -0
- package/dist/IndividualDropin-4_ucmMg8.js +4987 -0
- package/dist/InputDate-BQs83myS.js +52 -0
- package/dist/InputText-qdIKYibU.js +119 -0
- package/dist/Introduction-CRlJJiJ8.js +271 -0
- package/dist/InvitedDecisionMakerComponent-D_ddbzUN.js +381 -0
- package/dist/JpAddress-EJR5Cu4J.js +322 -0
- package/dist/LandingLayout-Du-73NPo.js +76 -0
- package/dist/LegalCompanyNameField-Bbx35Zwc.js +108 -0
- package/dist/LegalRepresentativeDetailsPage-BTrJdEUq.js +73 -0
- package/dist/Link-vZChdZDy.js +32 -0
- package/dist/ListItem-CfjtbmOG.js +70 -0
- package/dist/LoaderWrapper-Bf1CHY2M.js +34 -0
- package/dist/MaskedInput-Dth7KFNX.js +715 -0
- package/dist/MaybeModal-C1Y88Wk8.js +24 -0
- package/dist/Modal-BBG3ZQQS.js +131 -0
- package/dist/Name-DQgQWDrA.js +61 -0
- package/dist/NewSummary-BrMCbAGI.js +72 -0
- package/dist/PayoutDetailsDropinMultiForm-LplNAPWx.js +3992 -0
- package/dist/PayoutDetailsPage-C8ha9oP7.js +68 -0
- package/dist/RadioGroup-DAPea-p5.js +84 -0
- package/dist/Review-D_V907-B.js +99 -0
- package/dist/RootBusinessDetailsPage-CpJpwq-J.js +69 -0
- package/dist/RootBusinessLinesPage-kR_YA3x3.js +1452 -0
- package/dist/RootIndividualDetailsPage-DGgF0kED.js +81 -0
- package/dist/Select-CAso7Gvi.js +777 -0
- package/dist/SignPCIComponent-vkWdNgks.js +368 -0
- package/dist/SingpassSelection-C6xyMx-u.js +159 -0
- package/dist/SoleProprietorshipPage-BoSOJNxS.js +69 -0
- package/dist/SourceOfFundsDropin-B9Omifyd.js +1938 -0
- package/dist/SourceOfFundsPage-9ewg3IS3.js +60 -0
- package/dist/StepProgressIndicator-J9mjU88T.js +80 -0
- package/dist/StructuredList-BXi5p5iX.js +56 -0
- package/dist/Summary-BEVwp_sh.js +226 -0
- package/dist/TaskListItem-DiSqAUdY.js +122 -0
- package/dist/TaskVerificationStatus-CUlYw5ZS.js +118 -0
- package/dist/TaxInformationField-Cnsv_Wjn.js +469 -0
- package/dist/TaxReportingDropin-D1js0BZh.js +475 -0
- package/dist/TextArea-B-Yo2jXh.js +80 -0
- package/dist/TileGroup-Cq9eNUmn.js +170 -0
- package/dist/ToastContext-CeB1t7kx.js +13 -0
- package/dist/ToastContextProvider-BHABhum3.js +103 -0
- package/dist/TrustDetailsPage-d_8FZZQb.js +1792 -0
- package/dist/TrustMemberCompanyPage-BCx7sgZY.js +107 -0
- package/dist/TrustMemberIndividualPage-ya4EV_FT.js +107 -0
- package/dist/TrustMemberRoleAndTypePage-DRbPuuPH.js +953 -0
- package/dist/TrustMembersOverview-CXAI1CK4.js +433 -0
- package/dist/UnincorporatedPartnershipIndividualPage-ovssKMk4.js +78 -0
- package/dist/UnincorporatedPartnershipMemberCompanyPage-DhY3nGNA.js +78 -0
- package/dist/UnincorporatedPartnershipMemberRoleAndTypePage-VUd7Y8HV.js +276 -0
- package/dist/UnincorporatedPartnershipMembersOverview-B2b21SFS.js +159 -0
- package/dist/VerificationErrorAlert-DmxtWezJ.js +38 -0
- package/dist/adyen-business-financing.js +84 -84
- package/dist/adyen-individual-configuration.js +86 -86
- package/dist/adyen-individual-status.js +35 -35
- package/dist/adyen-invited-decision-maker.js +3 -3
- package/dist/adyen-onboarding.js +109 -109
- package/dist/adyen-terms-of-service-management.js +4 -4
- package/dist/adyen-terms-of-service-status.js +57 -57
- package/dist/adyen-transfer-instrument-configuration.js +84 -84
- package/dist/adyen-transfer-instrument-management.js +97 -97
- package/dist/adyen-verification-status.js +34 -34
- package/dist/arrow-right-BX_EVrJJ.js +20 -0
- package/dist/bag-CndvM5sq.js +20 -0
- package/dist/bank-BGTRk0kq.js +20 -0
- package/dist/bin-ClI1Lmer.js +30 -0
- package/dist/capital-CvyQlkxY.js +23 -0
- package/dist/cash-stack-Dh8uZSza.js +33 -0
- package/dist/certificate-BNwGY179.js +23 -0
- package/dist/checkmark-circle-B0j0Vtwo.js +28 -0
- package/dist/checkmark-circle-fill-LpAoa38W.js +30 -0
- package/dist/checkmark-hciVXXIH.js +20 -0
- package/dist/checkmark-small-CBLKuuZ1.js +20 -0
- package/dist/chevron-down-aTrA5UpL.js +20 -0
- package/dist/chevron-left-BVdVNPiJ.js +20 -0
- package/dist/chevron-right-Drp9nZ4h.js +20 -0
- package/dist/chevron-up-BG9Ldgsu.js +20 -0
- package/dist/circle-C-iPmuCY.js +30 -0
- package/dist/circle-small-filled-C-Nh6xHY.js +20 -0
- package/dist/clock-CpMm35NB.js +28 -0
- package/dist/coins-D2tNyEW3.js +30 -0
- package/dist/contract-Cg3T6neC.js +20 -0
- package/dist/cross-DLi9h_Eg.js +20 -0
- package/dist/cross-circle-fill-dRHPWc-i.js +30 -0
- package/dist/cross-circle-fill-small-WqgBPXhH.js +20 -0
- package/dist/document-1-CSg2AOQy.js +20 -0
- package/dist/document-person-BhXXvTMH.js +28 -0
- package/dist/download-Cvkkn96A.js +23 -0
- package/dist/edit-1-CIdEs1t-.js +20 -0
- package/dist/en-US-BtXQtx4r.js +7 -0
- package/dist/en-US-rB72ltWV.js +7 -0
- package/dist/external-link-BNgSBwiX.js +20 -0
- package/dist/formUtils-DcRJcDH1.js +78 -0
- package/dist/getProblemsForEntity-_KT3YxwG.js +16 -0
- package/dist/gift-I5WhHXnm.js +20 -0
- package/dist/globalStore-BfK7GafD.js +419 -0
- package/dist/graph-up-CN2EGjwJ.js +38 -0
- package/dist/graph-yoQEgV-z.js +32 -0
- package/dist/headquarter-BPCK7l9Y.js +42 -0
- package/dist/hotel-BncnkQ-E.js +33 -0
- package/dist/http-j2zqU8vS.js +149 -0
- package/dist/image-DXUQcN6d.js +23 -0
- package/dist/info-Dh7b3h-o.js +32 -0
- package/dist/info-filled-DtEaaCq9.js +32 -0
- package/dist/invalidateRootLegalEntity-_CrcBcVy.js +45 -0
- package/dist/isEmpty-DPybQEh0.js +14 -0
- package/dist/localizeDateString-wO7n7rJg.js +35 -0
- package/dist/location-NeA9HUsd.js +23 -0
- package/dist/mail-COcabAMU.js +20 -0
- package/dist/mapExistingFile-BNIpBgK_.js +184 -0
- package/dist/mapJpAddressSchemaToAddressLocalizations-DkDEbcuz.js +61 -0
- package/dist/mapLegalEntityToIndividualSchema-BL0bDNG3.js +206 -0
- package/dist/mapTransferInstrumentToPayoutAccount-BXQG_f8Q.js +44 -0
- package/dist/minus-circle-filled-CnCOR8aV.js +30 -0
- package/dist/omitObscuredFieldsIfUnchanged-BS9XJvaa.js +20 -0
- package/dist/options-horizontal-CAznj1Vl.js +30 -0
- package/dist/partner-BgRPuALU.js +30 -0
- package/dist/pay-by-link-plane-CblqKlzx.js +33 -0
- package/dist/payout-Dt-Rj2Dk.js +38 -0
- package/dist/person-CVbQ7VXy.js +23 -0
- package/dist/phonePrefixes-Czcjgq4w.js +252 -0
- package/dist/plus-BbVfOPFJ.js +20 -0
- package/dist/plus-circle-filled-D9vpzgFw.js +30 -0
- package/dist/process-field-configurations-BJ9Nikhm.js +279 -0
- package/dist/processCapabilities-CDSEJpB8.js +869 -0
- package/dist/recurring-Cm_CVMBM.js +23 -0
- package/dist/resolveEnvironment-CrA6j7T1.js +983 -0
- package/dist/revenue-accelerate-uQp3MMWP.js +30 -0
- package/dist/save-DsGcWvER.js +20 -0
- package/dist/search-BDJlT2t5.js +30 -0
- package/dist/show-DLGXHz7A.js +23 -0
- package/dist/solution-payments-CVSsXgo9.js +20 -0
- package/dist/store-COYFYobc.js +20 -0
- package/dist/style.css +3640 -3419
- package/dist/styles-BKzp-1_V.js +6130 -0
- package/dist/terminal-1-C98Z-HQT.js +30 -0
- package/dist/translation-hEYGx0ZB.js +854 -0
- package/dist/types/adaptiveWorkflow/AdaptiveWorkflow.d.ts +7 -2
- package/dist/types/adaptiveWorkflow/component-registry.d.ts +43 -0
- package/dist/types/adaptiveWorkflow/components/DynamicForm/DynamicForm.d.ts +3 -1
- package/dist/types/adaptiveWorkflow/components/Fields/AcceptTermsOfServiceWorkflow/AcceptTermsOfServiceWorkflow.d.ts +2 -0
- package/dist/types/adaptiveWorkflow/components/Fields/BusinessRegistrationNumber/BusinessRegistrationNumberFieldGroup.d.ts +25 -0
- package/dist/types/adaptiveWorkflow/components/Fields/BusinessRegistrationNumber/ExemptedFromRegistrationNumberField.d.ts +10 -0
- package/dist/types/adaptiveWorkflow/components/Fields/BusinessRegistrationNumber/RegistrationNumberInputField.d.ts +18 -0
- package/dist/types/adaptiveWorkflow/components/Fields/BusinessRegistrationNumber/RegistrationNumberTypeSelectorField.d.ts +15 -0
- package/dist/types/adaptiveWorkflow/components/Fields/IndustryCode/IndustryCodeFieldGroup.d.ts +12 -0
- package/dist/types/adaptiveWorkflow/components/SpecializedComponent/SpecializedComponent.d.ts +35 -0
- package/dist/types/adaptiveWorkflow/components/Task/Task.d.ts +5 -1
- package/dist/types/adaptiveWorkflow/components/Task/contextMap.d.ts +2 -6
- package/dist/types/adaptiveWorkflow/components/TaskGroup/TaskGroup.d.ts +4 -0
- package/dist/types/adaptiveWorkflow/components/TaskGroupParser/TaskGroupParser.d.ts +3 -0
- package/dist/types/adaptiveWorkflow/components/types.d.ts +65 -17
- package/dist/types/api/adaptive/adaptiveWorkflow.types.d.ts +15 -0
- package/dist/types/api/adaptive/useAdaptiveWorkflow.d.ts +4 -0
- package/dist/types/api/check/useCheck.d.ts +3 -9
- package/dist/types/api/companySearch/useCompanySearch.d.ts +1 -7
- package/dist/types/api/companySelection/companySelection.types.d.ts +5 -2
- package/dist/types/api/queryKeys.d.ts +2 -3
- package/dist/types/api/tinVerification/useVerifyTin.d.ts +1 -6
- package/dist/types/components/Apps/tasks/TaskList/TaskList.d.ts +1 -1
- package/dist/types/components/BankAccount/forms/BankDocument/BankDocumentClassification.d.ts +1 -0
- package/dist/types/components/BankAccount/forms/BankDocument/types.d.ts +1 -0
- package/dist/types/components/BankAccount/forms/PayoutDetails/PayoutDetailsMultiform.d.ts +31 -1
- package/dist/types/components/BankAccount/forms/PayoutDetails/rules.d.ts +2 -2
- package/dist/types/components/BankAccount/mapping/payoutKeyMappings.d.ts +25 -25
- package/dist/types/components/Business/forms/BasicInformation/BasicInformation.d.ts +1 -1
- package/dist/types/components/Business/forms/BasicInformation/types.d.ts +2 -0
- package/dist/types/components/Business/forms/rules.d.ts +19 -7
- package/dist/types/components/Business/tasks/BusinessDetailsDropin/types.d.ts +0 -1
- package/dist/types/components/Business/utils/buildRequiredForms.d.ts +23 -0
- package/dist/types/components/Business/utils/utils.d.ts +13 -0
- package/dist/types/components/EFP/mapping/businessFinancingKeyMappings.d.ts +447 -447
- package/dist/types/components/EmbeddedDropins/AdaptiveWorkflowComponent/AdaptiveWorkflowComponent.d.ts +7 -0
- package/dist/types/components/Individual/forms/Individual.rules.d.ts +2 -2
- package/dist/types/components/Shared/FormNavigation/FormNavigationItem.d.ts +1 -1
- package/dist/types/components/Shared/Introduction/Introduction.d.ts +1 -1
- package/dist/types/components/Shared/fields/BusinessRegistrationNumberField/registrationNumberTypes.d.ts +4 -4
- package/dist/types/components/Shared/forms/Address/utils.d.ts +1 -1
- package/dist/types/components/Shared/forms/BusinessTypeSelection/BusinessTypeSelection.d.ts +1 -1
- package/dist/types/components/Trust/forms/Trust/rules.d.ts +2 -2
- package/dist/types/components/ui/atoms/Checkbox/Checkbox.d.ts +1 -1
- package/dist/types/components/ui/atoms/Field/Field.d.ts +1 -1
- package/dist/types/components/ui/atoms/InputBase/InputBase.d.ts +1 -1
- package/dist/types/components/ui/atoms/Modal/Modal.d.ts +1 -1
- package/dist/types/components/ui/atoms/Modal/Modal.types.d.ts +5 -4
- package/dist/types/components/ui/atoms/Radio/Radio.d.ts +1 -1
- package/dist/types/components/ui/atoms/RadioGroup/RadioGroup.d.ts +1 -1
- package/dist/types/components/ui/molecules/Dropzone/Dropzone.d.ts +1 -1
- package/dist/types/components/ui/molecules/Dropzone/DropzoneFile.d.ts +1 -1
- package/dist/types/components/ui/molecules/Dropzone/FilePicker.d.ts +1 -1
- package/dist/types/context/ToggleContext/types.d.ts +0 -4
- package/dist/types/context/WorkflowContext/WorkflowContext.d.ts +11 -0
- package/dist/types/context/WorkflowContext/WorkflowContextProvider.d.ts +9 -0
- package/dist/types/context/WorkflowContext/useWorkflowContext.d.ts +1 -0
- package/dist/types/core/EmbedShell/EmbedShell.d.ts +1 -0
- package/dist/types/embeds/onboarding-workflow/adyen-onboarding-workflow.d.ts +2 -0
- package/dist/types/embeds/onboarding-workflow/adyen-onboarding-workflow.types.d.ts +33 -0
- package/dist/types/router/routeConfig.d.ts +2 -2
- package/dist/types/utils/entityStatusUtil.d.ts +1 -1
- package/dist/types-B_GKWcEZ.js +58 -0
- package/dist/types-CvTg7nL1.js +158 -0
- package/dist/upload-hnGE-ssH.js +23 -0
- package/dist/uppercase-ClG7c-t9.js +7 -0
- package/dist/useAccountHolder-qrG5pzdN.js +102 -0
- package/dist/useAllowedCountries-BAeKLH61.js +74 -0
- package/dist/useAnalyticsContext-D6DJZmqu.js +12 -0
- package/dist/useAssociatedLegalEntity-BGQ6cYIB.js +35 -0
- package/dist/useBusinessDetailsData-Dc5yiygI.js +4527 -0
- package/dist/useBusinessLines-cI-M9B-y.js +27 -0
- package/dist/useCapabilities-DtrmUEO6.js +12 -0
- package/dist/useCreateLegalEntity-jSFh42K4.js +24 -0
- package/dist/useDataMissingRemediations-B_Yh6xSA.js +39 -0
- package/dist/useDataset-BfSb3OFK.js +96 -0
- package/dist/useDeleteTransferInstrument-B3daHiIc.js +31 -0
- package/dist/useForm-bP74zzsw.js +502 -0
- package/dist/useFormContext-nr__Cvkn.js +442 -0
- package/dist/useGlobalData-kCF9O1er.js +35 -0
- package/dist/useIndustryCodes-UxfJAgIy.js +32 -0
- package/dist/useLegalEntity-CJD0bWSj.js +48 -0
- package/dist/useMultiForm-BP_UxwIw.js +765 -0
- package/dist/useNavigate-DQ18xcfQ.js +269 -0
- package/dist/useOnboardingStatus-DdAJciYw.js +23 -0
- package/dist/usePciQuestionnaireList-BYjtj3VN.js +26 -0
- package/dist/useSalesChannels-D_zX0rBd.js +47 -0
- package/dist/useTaskLandedEvent-BC_AIUoQ.js +23 -0
- package/dist/useTaskStatus-BzC5sEXT.js +23 -0
- package/dist/useTermsOfServiceStatus-BEnd0oh0.js +39 -0
- package/dist/useToastContext-d6uY8F_F.js +12 -0
- package/dist/useTrustMembers-BzDYlbbF.js +152 -0
- package/dist/useUnincorporatedPartnershipMembers-rr3GdonJ.js +70 -0
- package/dist/useUpdateBusinessLines-Cb4l4EVO.js +271 -0
- package/dist/useUpdateLegalEntity-24uhTBvq.js +29 -0
- package/dist/utils-BbusgEMl.js +32 -0
- package/dist/utils-BkkjRLzb.js +188 -0
- package/dist/utils-DJiLPA9H.js +2472 -0
- package/dist/utils-g2Ds-zYM.js +805 -0
- package/dist/utils-k_FCPeM1.js +207 -0
- package/dist/validate-C7hePE7m.js +411 -0
- package/dist/validate-Cmbqq1fk.js +381 -0
- package/dist/validationError-Au-8gBsy.js +68 -0
- package/dist/validationResult-DRX7pADt.js +57 -0
- package/dist/warning-circle-fill-BjxM4aj1.js +30 -0
- package/dist/warning-diamond-filled-CtCJ9xf8.js +30 -0
- package/dist/webinar-D_daN2X8.js +33 -0
- package/package.json +15 -15
- package/dist/4-people-pf4NP1lf.js +0 -35
- package/dist/AcceptTermsOfServiceComponent-Bgr4lpJD.js +0 -652
- package/dist/AcceptTermsOfServiceComponent-DUE5d8Xw.js +0 -6
- package/dist/Accordion-Ces4MlyX.js +0 -111
- package/dist/AccountSetupRejected-CSXkA3my.js +0 -19
- package/dist/Adaptive-DhnDcp-n.js +0 -160
- package/dist/AdaptiveComponent-CsBDQKI_.js +0 -109
- package/dist/Address-DHpRtLqT.js +0 -593
- package/dist/Alert-DGt_tas2.js +0 -170
- package/dist/AnalyticsContext-zvlAxIPp.js +0 -73
- package/dist/Avatar-BZ1R_63Q.js +0 -54
- package/dist/BusinessFinancingDropin-DUCvP2dG.js +0 -1804
- package/dist/BusinessFinancingPage-Cr9yaD69.js +0 -87
- package/dist/BusinessTypeSelectionPage-sd8Vzgg8.js +0 -436
- package/dist/Button-BrEOD5gK.js +0 -189
- package/dist/Checkbox-DH-0zfp7.js +0 -55
- package/dist/Confirm-DL6vIvKe.js +0 -76
- package/dist/ConstitutionalDocument-CLCBiLYT.js +0 -2276
- package/dist/ContactDetails-BU2ElDOi.js +0 -288
- package/dist/ContextGuidance-CA7_5gQw.js +0 -29
- package/dist/CountryField-EbJX8wdL.js +0 -38
- package/dist/Currency-Bxhwn4-R.js +0 -191
- package/dist/CustomerSupport-HkiKZEYW.js +0 -129
- package/dist/DebugModal-CfpWabgn.js +0 -454
- package/dist/DecisionMakerDetails-DyR9_XXn.js +0 -469
- package/dist/DecisionMakerDetailsPage-B0AP7x2t.js +0 -103
- package/dist/DecisionMakers-DOWJzT2g.js +0 -578
- package/dist/Dropzone-BX5P1wWl.js +0 -236
- package/dist/EmbeddedStatus-Dqa3hRtl.js +0 -128
- package/dist/EndStateLayout-Dz4uTeoO.js +0 -84
- package/dist/EntityAssociation-C3qUz5m6.js +0 -163
- package/dist/ErrorPanel-Dk42PPew.js +0 -185
- package/dist/Field-DH3pDFxY.js +0 -155
- package/dist/FormNavigation-CAHXxOjj.js +0 -116
- package/dist/Header-Bc32XYD-.js +0 -93
- package/dist/Image-DuhCij-a.js +0 -33
- package/dist/Individual.rules-DAGFscPf.js +0 -296
- package/dist/IndividualDropin-COoYAwcG.js +0 -4970
- package/dist/InputDate-Xy7Hd1Yr.js +0 -52
- package/dist/InputText--skSkkLS.js +0 -119
- package/dist/Introduction-BY-vSd9f.js +0 -271
- package/dist/InvitedDecisionMakerComponent-8-jF-t8H.js +0 -6
- package/dist/InvitedDecisionMakerComponent-QwJ7zyf0.js +0 -373
- package/dist/JpAddress-Cu0GrB7W.js +0 -322
- package/dist/LandingLayout-CTuu3qMV.js +0 -76
- package/dist/LegalCompanyNameField-BPxj9SCn.js +0 -108
- package/dist/LegalRepresentativeDetailsPage-BHkNx8kv.js +0 -73
- package/dist/Link-ClFY-8_3.js +0 -32
- package/dist/ListItem-D3SGCEV9.js +0 -70
- package/dist/LoaderWrapper-D2BBZC6k.js +0 -34
- package/dist/MaskedInput-CmhKzOh9.js +0 -715
- package/dist/MaybeModal-BAH1s4oi.js +0 -24
- package/dist/Modal-TA-i9JLs.js +0 -129
- package/dist/Name-CaEi9FTW.js +0 -61
- package/dist/NewSummary-tGYwyb6d.js +0 -72
- package/dist/PayoutDetailsDropin-CbOc7C6g.js +0 -3897
- package/dist/PayoutDetailsPage-DVOPH_hg.js +0 -859
- package/dist/RadioGroup-DBDwVQAX.js +0 -84
- package/dist/Review-O6q9UkXW.js +0 -99
- package/dist/RootBusinessDetailsPage-hc6Cq5iE.js +0 -69
- package/dist/RootBusinessLinesPage-B36Go9y-.js +0 -1452
- package/dist/RootIndividualDetailsPage-C_iB94uM.js +0 -81
- package/dist/Select-C1GpSzF4.js +0 -777
- package/dist/SignPCIComponent-6OfnlsOU.js +0 -367
- package/dist/SignPCIComponent-DiENrKGE.js +0 -6
- package/dist/SingpassSelection-BX3WP2ZK.js +0 -159
- package/dist/SoleProprietorshipPage-rZaQdDVV.js +0 -69
- package/dist/SourceOfFundsPage-Xnr8yqoM.js +0 -1989
- package/dist/StepProgressIndicator-DN6OWQkE.js +0 -80
- package/dist/StructuredList-UlwDK_PO.js +0 -56
- package/dist/Summary-BZsoj_KC.js +0 -226
- package/dist/TaskListItem-3C5vCTFS.js +0 -122
- package/dist/TaskVerificationStatus-o58AmswI.js +0 -118
- package/dist/TaxInformationField-CNOw8n5a.js +0 -2906
- package/dist/TaxReportingDropin-D0d6xsfQ.js +0 -475
- package/dist/TextArea-CYCYp7xn.js +0 -80
- package/dist/TileGroup-DOMdFBNc.js +0 -170
- package/dist/ToastContext-DYDlziHA.js +0 -13
- package/dist/ToastContextProvider-BACK2Fdv.js +0 -103
- package/dist/TrustDetailsPage-DCLEUAD8.js +0 -1675
- package/dist/TrustMemberCompanyPage-CXe-TDVZ.js +0 -107
- package/dist/TrustMemberIndividualPage-CCAS9Ab-.js +0 -107
- package/dist/TrustMemberRoleAndTypePage-Dohh-Fk5.js +0 -953
- package/dist/TrustMembersOverview-CVS43fPZ.js +0 -433
- package/dist/UnincorporatedPartnershipIndividualPage-wgoL7EkB.js +0 -78
- package/dist/UnincorporatedPartnershipMemberCompanyPage-CmICi3f4.js +0 -78
- package/dist/UnincorporatedPartnershipMemberRoleAndTypePage-B6UMZmvr.js +0 -276
- package/dist/UnincorporatedPartnershipMembersOverview-DeXkQfpG.js +0 -159
- package/dist/VerificationErrorAlert-rxIxZG_9.js +0 -38
- package/dist/arrow-right-t9gjd0_1.js +0 -20
- package/dist/bag-X-x8sTar.js +0 -20
- package/dist/bank-CkMDQo8F.js +0 -20
- package/dist/bin-DuY2IGyM.js +0 -30
- package/dist/capital-D0BT5srI.js +0 -23
- package/dist/cash-stack-BcbKuQfb.js +0 -33
- package/dist/certificate-BW_onLEN.js +0 -23
- package/dist/checkmark-DIoMBYD9.js +0 -20
- package/dist/checkmark-circle-ZobbZzUD.js +0 -28
- package/dist/checkmark-circle-fill-CvOazmuB.js +0 -30
- package/dist/checkmark-small-Dg5IeBa_.js +0 -20
- package/dist/chevron-down-fWn5K8fS.js +0 -20
- package/dist/chevron-left-CW5eLDmk.js +0 -20
- package/dist/chevron-right-BduKABNm.js +0 -20
- package/dist/chevron-up-Bcudvnw1.js +0 -20
- package/dist/circle-DJ8T0FZz.js +0 -30
- package/dist/circle-small-filled-vh26rMkg.js +0 -20
- package/dist/clock-D1Tmx-XS.js +0 -28
- package/dist/coins-eLHKq334.js +0 -30
- package/dist/commonValidators-BTQi3Wp7.js +0 -18
- package/dist/contract-B-9ytI8-.js +0 -20
- package/dist/cross-CNLiD-KS.js +0 -20
- package/dist/cross-circle-fill-CzoorC08.js +0 -30
- package/dist/cross-circle-fill-small-B4ruaMps.js +0 -20
- package/dist/document-1-CxaeyKLc.js +0 -20
- package/dist/document-person-D2eHDmpC.js +0 -28
- package/dist/download-CMIVE8tw.js +0 -23
- package/dist/dropinUtils-DXD6popt.js +0 -275
- package/dist/edit-1-CGbUb6L6.js +0 -20
- package/dist/en-US-D6JIGFbm.js +0 -7
- package/dist/en-US-DPnnq8LY.js +0 -7
- package/dist/external-link-DYiunPV0.js +0 -20
- package/dist/formUtils-C0FUvDnF.js +0 -78
- package/dist/getProblemsForEntity-BY9SUWeG.js +0 -16
- package/dist/gift-DHXxWwDY.js +0 -20
- package/dist/globalStore-2edP5P62.js +0 -419
- package/dist/graph-CYyHScmR.js +0 -32
- package/dist/graph-up-Cj6w6u5a.js +0 -38
- package/dist/headquarter-L2tqxR2a.js +0 -42
- package/dist/hotel-DSymFUyC.js +0 -33
- package/dist/http-BDgJ4fhh.js +0 -149
- package/dist/image-BVFb1Gtj.js +0 -23
- package/dist/info-Dm7uBQv2.js +0 -32
- package/dist/info-filled-CTRhkYum.js +0 -32
- package/dist/invalidateRootLegalEntity-LIw-_KWy.js +0 -45
- package/dist/isEmpty-BTcVP5E1.js +0 -14
- package/dist/localizeDateString-7bO078Ss.js +0 -35
- package/dist/location-CdgN0pnx.js +0 -23
- package/dist/mail-Bypo2PCr.js +0 -20
- package/dist/mapExistingFile-7mSnnqOH.js +0 -187
- package/dist/mapJpAddressSchemaToAddressLocalizations-TFQs1Dg9.js +0 -61
- package/dist/mapLegalEntityToIndividualSchema-CX0w2PMw.js +0 -206
- package/dist/mapTransferInstrumentToPayoutAccount-T3EtwXeR.js +0 -44
- package/dist/minus-circle-filled-WSGE88qh.js +0 -30
- package/dist/omitObscuredFieldsIfUnchanged-CQW8S0JV.js +0 -20
- package/dist/options-horizontal-DQCtn5hi.js +0 -30
- package/dist/partner-CcwpM9K1.js +0 -30
- package/dist/pay-by-link-plane-Daf-NHRl.js +0 -33
- package/dist/payout-XXi2yylB.js +0 -38
- package/dist/person-BEo7eKOz.js +0 -23
- package/dist/phonePrefixes-BfCqI-jf.js +0 -252
- package/dist/plus-C6_ECEwS.js +0 -20
- package/dist/plus-circle-filled-DWqwz8on.js +0 -30
- package/dist/process-field-configurations-B4XWnUpM.js +0 -279
- package/dist/processCapabilities-CI_g2ItO.js +0 -869
- package/dist/recurring-DAkr3oMm.js +0 -23
- package/dist/resolveEnvironment-BnNq0wtB.js +0 -983
- package/dist/revenue-accelerate-bZDjTfKp.js +0 -30
- package/dist/save-BP3zoyVR.js +0 -20
- package/dist/search-B9kh99sz.js +0 -30
- package/dist/show-tcSq1sNX.js +0 -23
- package/dist/solution-payments-DLgSZCop.js +0 -20
- package/dist/store-CBlL6Onf.js +0 -20
- package/dist/styles-BKENkxA3.js +0 -5909
- package/dist/terminal-1-BzltlB2C.js +0 -30
- package/dist/translation-HjimzbDK.js +0 -854
- package/dist/types/adaptiveWorkflow/components/Adaptive.d.ts +0 -4
- package/dist/types/api/adaptive/useAwe.d.ts +0 -4
- package/dist/types/components/BankAccount/forms/PayoutDetails/PayoutDetails.d.ts +0 -35
- package/dist/types/components/BankAccount/tasks/PayoutDetailsDropin/PayoutDetailsDropin.d.ts +0 -2
- package/dist/types/components/Business/tasks/BusinessDetailsDropin/utils.d.ts +0 -26
- package/dist/types/components/Business/utils/companyUtil.d.ts +0 -11
- package/dist/types/components/EmbeddedDropins/AdaptiveComponent/AdaptiveComponent.d.ts +0 -1
- package/dist/types/embeds/adaptive/adyen-adaptive.d.ts +0 -2
- package/dist/types/embeds/adaptive/adyen-adaptive.types.d.ts +0 -33
- package/dist/types-DNJs8sHQ.js +0 -68
- package/dist/types-DjplYXLf.js +0 -58
- package/dist/upload-CTc8qjnY.js +0 -23
- package/dist/useAccountHolder-6TPlcqyH.js +0 -102
- package/dist/useAllowedCountries-BlHxbIpB.js +0 -74
- package/dist/useAnalyticsContext-Msf0gvuf.js +0 -12
- package/dist/useAssociatedLegalEntity-xWnfp2eN.js +0 -35
- package/dist/useBusinessDetailsData-OlHu6XTq.js +0 -4499
- package/dist/useBusinessLines-DuRYAkAE.js +0 -27
- package/dist/useCapabilities-YYheEPFp.js +0 -12
- package/dist/useCreateLegalEntity-uE43-Xhu.js +0 -24
- package/dist/useDataMissingRemediations-05QsWWcI.js +0 -39
- package/dist/useDataset-Co6Vpe7u.js +0 -96
- package/dist/useDeleteTransferInstrument-TIkBJmTf.js +0 -31
- package/dist/useForm-Cjnros8r.js +0 -502
- package/dist/useFormContext-erwyg3F-.js +0 -178
- package/dist/useGlobalData-CSApTV7U.js +0 -164
- package/dist/useLegalEntity-CX0N5ETD.js +0 -48
- package/dist/useMultiForm-B3DLUWOF.js +0 -754
- package/dist/useNavigate-Cf8jKngu.js +0 -269
- package/dist/useOnboardingStatus-DAMf0JnJ.js +0 -23
- package/dist/usePciQuestionnaireList-BGjhKYzP.js +0 -26
- package/dist/useSalesChannels-CLB1FylG.js +0 -47
- package/dist/useTaskLandedEvent-8cYtcGCo.js +0 -23
- package/dist/useTaskStatus-CPUCJFDl.js +0 -23
- package/dist/useTermsOfServiceStatus-DrcRGxab.js +0 -39
- package/dist/useToastContext-DDhNMXJE.js +0 -12
- package/dist/useTrustMembers-TW_OQBdM.js +0 -152
- package/dist/useUnincorporatedPartnershipMembers-CAj9nWt7.js +0 -70
- package/dist/useUpdateBusinessLines-Ku_fF52H.js +0 -296
- package/dist/useUpdateLegalEntity-DI6qQfWN.js +0 -29
- package/dist/utils-ClQMN7UN.js +0 -188
- package/dist/utils-DFcH1V_N.js +0 -207
- package/dist/utils-DTTgws8w.js +0 -805
- package/dist/validate-DMLWa4sP.js +0 -411
- package/dist/validate-DTgOds13.js +0 -381
- package/dist/validationError-G6B3LzrO.js +0 -68
- package/dist/validationResult-u287uC6N.js +0 -57
- package/dist/warning-circle-fill-C6I6QXDZ.js +0 -30
- package/dist/warning-diamond-filled-Bh7Hc8w-.js +0 -30
- package/dist/webinar-Dgpmntvu.js +0 -33
- /package/dist/{AD-Dz8oe6Pg.js → AD-5Egi3flE.js} +0 -0
- /package/dist/{AE-CTdU1tzb.js → AE-DJ-lRyPg.js} +0 -0
- /package/dist/{AI-tjrpVbOw.js → AI-ZfbxJFtE.js} +0 -0
- /package/dist/{AL-DvyI05UB.js → AL-UBVZZlDX.js} +0 -0
- /package/dist/{AR-DI6rdPa-.js → AR-B9C4Nibz.js} +0 -0
- /package/dist/{AS-ByXIuSCx.js → AS-CFb876zC.js} +0 -0
- /package/dist/{AT-CvSbaCoE.js → AT-C8MN2Fns.js} +0 -0
- /package/dist/{AT-CutjdISu.js → AT-CJDibmrN.js} +0 -0
- /package/dist/{AT-DYSevBIw.js → AT-Do46gW4G.js} +0 -0
- /package/dist/{AT-Dt3ZU8Yh.js → AT-DsogulXO.js} +0 -0
- /package/dist/{AU-DzJ7QlNR.js → AU--MSKgcDY.js} +0 -0
- /package/dist/{AU-CLU0Xn_D.js → AU-CDh6E7PE.js} +0 -0
- /package/dist/{AU-EWPyqdHL.js → AU-DNxKMzJs.js} +0 -0
- /package/dist/{AU-C6u3aod7.js → AU-DfV_PeBe.js} +0 -0
- /package/dist/{AX-DJ84WiiY.js → AX-DxAmGTy-.js} +0 -0
- /package/dist/{AZ-o_CDsMs4.js → AZ-DRkABvzg.js} +0 -0
- /package/dist/{BA-DL2O-nPB.js → BA-xlw8xj7W.js} +0 -0
- /package/dist/{BE-DgU3CTNg.js → BE-8eQ7Am1Y.js} +0 -0
- /package/dist/{BE-CT0bdDbu.js → BE-BGioJIMA.js} +0 -0
- /package/dist/{BE-CyRTa5vY.js → BE-BQ4olBdk.js} +0 -0
- /package/dist/{BE-7F1ZOUtb.js → BE-yocZ_S-V.js} +0 -0
- /package/dist/{BG-B7VMgZNt.js → BG-AfIdXJGJ.js} +0 -0
- /package/dist/{BH-Bot1MlCL.js → BH-CKPBbT8v.js} +0 -0
- /package/dist/{BM-CfbbOZEU.js → BM-DMmpYJ5S.js} +0 -0
- /package/dist/{BR-BikIex5m.js → BR-B8NzP1QV.js} +0 -0
- /package/dist/{BR-PBodf94A.js → BR-CmwW2wlc.js} +0 -0
- /package/dist/{BR-BaEKrqwp.js → BR-D2pNPrYB.js} +0 -0
- /package/dist/{BR-DrGkuPBg.js → BR-Iin-FtVm.js} +0 -0
- /package/dist/{BS-CR7QZvMY.js → BS-h2g8V4eH.js} +0 -0
- /package/dist/{BV-pdJ1HYkg.js → BV-Br568icW.js} +0 -0
- /package/dist/{BY-RUR9XmBt.js → BY-DNb6l2Rg.js} +0 -0
- /package/dist/{CA-CgOysQQa.js → CA-BT05x8jm.js} +0 -0
- /package/dist/{CA-Bilo42jc.js → CA-Cc0GuXLd.js} +0 -0
- /package/dist/{CA-BM1GlX51.js → CA-DBQywpjY.js} +0 -0
- /package/dist/{CA-6iRpP8zm.js → CA-DJVSS-DB.js} +0 -0
- /package/dist/{CH-HrO9afDv.js → CH-BL-4faPY.js} +0 -0
- /package/dist/{CH-CmSkzRbO.js → CH-Bd1miMrE.js} +0 -0
- /package/dist/{CH-BZ2dJJcd.js → CH-C9Z3X6np.js} +0 -0
- /package/dist/{CH-gKI7wttp.js → CH-DFD2JLw3.js} +0 -0
- /package/dist/{CN-BUtZk2Mu.js → CN-5HinUnnB.js} +0 -0
- /package/dist/{CR-CnpHHfms.js → CR-PaLZQtHA.js} +0 -0
- /package/dist/{CY-Ge_L3SKC.js → CY-B85njNYI.js} +0 -0
- /package/dist/{CZ-Cxwo_jP6.js → CZ-4dIb_N3l.js} +0 -0
- /package/dist/{CZ-C1HmDbqn.js → CZ-BKdY5FmV.js} +0 -0
- /package/dist/{CZ-I8UM9ti_.js → CZ-BbtlKoCl.js} +0 -0
- /package/dist/{CZ-B8b5P2Or.js → CZ-Dxmb6KsV.js} +0 -0
- /package/dist/{ContractViewer-CPZOH1vV.js → ContractViewer-B8CspWV4.js} +0 -0
- /package/dist/{DE-HSEDrUfG.js → DE--Q5XezyA.js} +0 -0
- /package/dist/{DE-C2MEdoRW.js → DE-DCHis7y4.js} +0 -0
- /package/dist/{DE-CSMMxMuZ.js → DE-DQc4ncaM.js} +0 -0
- /package/dist/{DE-pQVkh64s.js → DE-DmEk0oIa.js} +0 -0
- /package/dist/{DK-mVm8rtJr.js → DK-BjD2emK5.js} +0 -0
- /package/dist/{DK-dsRhTFow.js → DK-Bt_PCcFy.js} +0 -0
- /package/dist/{DK-TyxXs-DV.js → DK-CdG4hfv7.js} +0 -0
- /package/dist/{DK-BCcPGFzQ.js → DK-DAzVnb1J.js} +0 -0
- /package/dist/{DO-B84eOniD.js → DO-BF7Pa_tN.js} +0 -0
- /package/dist/{DetailViewLayout-Dd5YzmcW.js → DetailViewLayout-H4b1E5Ih.js} +0 -0
- /package/dist/{Divider-DMwncntz.js → Divider-DHTBXv3p.js} +0 -0
- /package/dist/{EC-BAzODm77.js → EC-D6uEW2wn.js} +0 -0
- /package/dist/{EE-D2n6E72J.js → EE-W5m__hus.js} +0 -0
- /package/dist/{ES-D4WzOTek.js → ES-BdmgiBzc.js} +0 -0
- /package/dist/{ES-BI7auc_D.js → ES-BwwPYP5y.js} +0 -0
- /package/dist/{ES-DnRoTFNh.js → ES-DjYy5Dao.js} +0 -0
- /package/dist/{ES-CsmTJRIi.js → ES-_cqCzBUa.js} +0 -0
- /package/dist/{FI-CZ6ep3W_.js → FI-5ySk5gAz.js} +0 -0
- /package/dist/{FI-YOhI9TrO.js → FI-DwaCO8nT.js} +0 -0
- /package/dist/{FI-DhWyH1DT.js → FI-VPvgt4LP.js} +0 -0
- /package/dist/{FI-DJZScc7l.js → FI-Z0tGRjwl.js} +0 -0
- /package/dist/{FJ-BcqfFVGi.js → FJ-CBPM7BcM.js} +0 -0
- /package/dist/{FO-BuQb8zK_.js → FO-CSvRPbA1.js} +0 -0
- /package/dist/{FR-CWb0_Fcq.js → FR-B876n3-B.js} +0 -0
- /package/dist/{FR-SxebWfwR.js → FR-CBB06Fnq.js} +0 -0
- /package/dist/{FR-DYfYAn5S.js → FR-RdDRKklk.js} +0 -0
- /package/dist/{FR-EX-aYUJ3.js → FR-bMNYTLCL.js} +0 -0
- /package/dist/{GB-DlvvuQuQ.js → GB--UVnRIRj.js} +0 -0
- /package/dist/{GB-CszgE98l.js → GB-Bxb4fPxG.js} +0 -0
- /package/dist/{GB-q2GO1nX8.js → GB-FU65v6fQ.js} +0 -0
- /package/dist/{GB-BycqX1ng.js → GB-IJ-Iz5qv.js} +0 -0
- /package/dist/{GE-ChK3V1hi.js → GE-xaMHflrU.js} +0 -0
- /package/dist/{GF-fTBjIC0q.js → GF-CrDxyG5C.js} +0 -0
- /package/dist/{GG-Cppga3Z4.js → GG-DEqoBorh.js} +0 -0
- /package/dist/{GI-Cm7N6fbE.js → GI-Turkle4q.js} +0 -0
- /package/dist/{GL-C75JniJw.js → GL-BnDhUcrF.js} +0 -0
- /package/dist/{GP-DhHOAa8k.js → GP-Dp65xTqP.js} +0 -0
- /package/dist/{GR-zOZilI5v.js → GR-3L3XhlH2.js} +0 -0
- /package/dist/{GT-B6tGLPxx.js → GT-BhKx5dln.js} +0 -0
- /package/dist/{GU-DjjJkDVU.js → GU-Bgc9EY1W.js} +0 -0
- /package/dist/{HK-BXsi3wQZ.js → HK-BmygOotV.js} +0 -0
- /package/dist/{HK-CVaMk2Vl.js → HK-DClfjKdQ.js} +0 -0
- /package/dist/{HK-Yj_9Qbs3.js → HK-DUMxc2EI.js} +0 -0
- /package/dist/{HK-Bs3Wsh4t.js → HK-kFldIGd7.js} +0 -0
- /package/dist/{HR-BR9TaCeP.js → HR-BZ1pGUfO.js} +0 -0
- /package/dist/{HR-8jCYyclY.js → HR-BquBLtSA.js} +0 -0
- /package/dist/{HR-DvG9lG0o.js → HR-C57WjbJ_.js} +0 -0
- /package/dist/{HR-C-NuIOkA.js → HR-CmnsEDnL.js} +0 -0
- /package/dist/{HU-DF7a_-3t.js → HU-3HXta-l8.js} +0 -0
- /package/dist/{HU-o4ILK6JM.js → HU-BPcrEuPH.js} +0 -0
- /package/dist/{HU-B4hChLQO.js → HU-CErZJI70.js} +0 -0
- /package/dist/{HU-kkbB9HNQ.js → HU-DnRWaWkm.js} +0 -0
- /package/dist/{ID-CnOsjpEC.js → ID-BpqDcVc4.js} +0 -0
- /package/dist/{IE-B3ysSG_S.js → IE-CZOtplG-.js} +0 -0
- /package/dist/{IE-dmyHscm0.js → IE-auhNSIUT.js} +0 -0
- /package/dist/{IE-Dwlg9nat.js → IE-dduN0_TO.js} +0 -0
- /package/dist/{IE-CtesijIU.js → IE-nHDHO00_.js} +0 -0
- /package/dist/{IL-B2GfQOoK.js → IL-C0zsRw_j.js} +0 -0
- /package/dist/{IM-D9Hb0nwZ.js → IM-DimZdCV2.js} +0 -0
- /package/dist/{IN-Qhys3xn2.js → IN-drNlZVBZ.js} +0 -0
- /package/dist/{IS-DTXiGHYB.js → IS-BdfP-REC.js} +0 -0
- /package/dist/{IT-BZGkLCTQ.js → IT-BCxMd7Y7.js} +0 -0
- /package/dist/{IT-Dimtibs1.js → IT-CNf1MrI-.js} +0 -0
- /package/dist/{IT-CHV5-m07.js → IT-DF6ZO-i8.js} +0 -0
- /package/dist/{IT-DFeNc5UK.js → IT-Dc9lHBRw.js} +0 -0
- /package/dist/{InputGroup-CVYzCygf.js → InputGroup-2FJnD0LO.js} +0 -0
- /package/dist/{JE-D7_0MZEA.js → JE-BBO3NuzB.js} +0 -0
- /package/dist/{JM-CUVKn5To.js → JM-BzHoUe13.js} +0 -0
- /package/dist/{JO-B9_bPqbF.js → JO-fffBmbX2.js} +0 -0
- /package/dist/{JP-z_PjepRf.js → JP-Dv9kCG6P.js} +0 -0
- /package/dist/{KR-DaFOJAbV.js → KR-K1u4NuUE.js} +0 -0
- /package/dist/{KW-BLH4fj8S.js → KW-DBYFEC0m.js} +0 -0
- /package/dist/{KY-DG3Xehmz.js → KY-DvnPgYGT.js} +0 -0
- /package/dist/{KZ-BjnXKq2l.js → KZ-DX8lqaut.js} +0 -0
- /package/dist/{LB-CY5c_gqN.js → LB-DuXl_nIj.js} +0 -0
- /package/dist/{LI-BkFK_qrZ.js → LI-BcYzGJ7k.js} +0 -0
- /package/dist/{LT-BV7s3TCv.js → LT-BYZkkL9O.js} +0 -0
- /package/dist/{LT--zST1zqj.js → LT-BfApaHFI.js} +0 -0
- /package/dist/{LT-2wka4qNS.js → LT-ZF-q0fXm.js} +0 -0
- /package/dist/{LT-BxqPzqgf.js → LT-rnUOqZje.js} +0 -0
- /package/dist/{LU-Bt4sIWIT.js → LU-xxaAcEvQ.js} +0 -0
- /package/dist/{LV-B-FeTyBQ.js → LV-BdlQTl8C.js} +0 -0
- /package/dist/{List-CV1oIvRM.js → List-DLrcpMVd.js} +0 -0
- /package/dist/{MC-D92BHmGr.js → MC-CaqkAF9O.js} +0 -0
- /package/dist/{MD-BzJaxo1n.js → MD-DPht_MRT.js} +0 -0
- /package/dist/{ME-Iw66DM2s.js → ME-Dc5I5KtD.js} +0 -0
- /package/dist/{MK-yRjMHvLF.js → MK-Bn1G050Q.js} +0 -0
- /package/dist/{MP-CGHoAYPz.js → MP-WG5-be9t.js} +0 -0
- /package/dist/{MQ-Db73c-TY.js → MQ-BX_woiN5.js} +0 -0
- /package/dist/{MR-CzGlj8ce.js → MR-B4o-Woej.js} +0 -0
- /package/dist/{MT-n0Cp6O8-.js → MT-BitdMyNy.js} +0 -0
- /package/dist/{MU-C57EyXfP.js → MU-5mV1nkVk.js} +0 -0
- /package/dist/{MX-JSUPc6V8.js → MX-BV0FI9pL.js} +0 -0
- /package/dist/{MY-Bbgpg3w2.js → MY-BovUrLi6.js} +0 -0
- /package/dist/{NC-BeqCqe7o.js → NC--rMtvPxR.js} +0 -0
- /package/dist/{NL-KVjpCVaw.js → NL-BA3EKW3x.js} +0 -0
- /package/dist/{NL-C1r7ND7d.js → NL-D3keMKVJ.js} +0 -0
- /package/dist/{NL-CIX2R11u.js → NL-DpEm6S8e.js} +0 -0
- /package/dist/{NL-B22K1Zb0.js → NL-Dt1MHEvX.js} +0 -0
- /package/dist/{NO-CFty2TsC.js → NO-BRw0ivbK.js} +0 -0
- /package/dist/{NO-BhYtIUv1.js → NO-Dst-DnZ8.js} +0 -0
- /package/dist/{NO-DLFLW3I8.js → NO-VE7Sc2IM.js} +0 -0
- /package/dist/{NO-CV0UtHqk.js → NO-ltxTSAKY.js} +0 -0
- /package/dist/{NZ-ClQC7uEQ.js → NZ-CJ_5Z1en.js} +0 -0
- /package/dist/{NZ-DZ75lvmW.js → NZ-SQBwX6Hq.js} +0 -0
- /package/dist/{PE-BhP-iF08.js → PE-CcE7NUNY.js} +0 -0
- /package/dist/{PF-DZJu8LvP.js → PF-CTHFNBfG.js} +0 -0
- /package/dist/{PH-8s_pcD1T.js → PH-BJvKdyQF.js} +0 -0
- /package/dist/{PK-BkHx9Wu7.js → PK-CmxTai7F.js} +0 -0
- /package/dist/{PL-oVwazamy.js → PL-BK2Asw5F.js} +0 -0
- /package/dist/{PL-CZ0JZlv4.js → PL-BT907618.js} +0 -0
- /package/dist/{PL-Db0WKekw.js → PL-Byz7Yqkt.js} +0 -0
- /package/dist/{PL-DjTZTZqB.js → PL-Cgkoario.js} +0 -0
- /package/dist/{PM-Bcq0SkSj.js → PM-CPOzzt0L.js} +0 -0
- /package/dist/{PR-N31WZxLD.js → PR-squ319V4.js} +0 -0
- /package/dist/{PS-DzthwPAx.js → PS-CspEbZTU.js} +0 -0
- /package/dist/{PT-C6fd2w3g.js → PT-CT-kaH57.js} +0 -0
- /package/dist/{PT-BVfq_KIl.js → PT-CiRGWIB7.js} +0 -0
- /package/dist/{PT-ilpiMMVG.js → PT-DAsEx6OE.js} +0 -0
- /package/dist/{PT-C3FlrAqt.js → PT-LXjJtHn5.js} +0 -0
- /package/dist/{ProgressBar-BlxQvN7D.js → ProgressBar-DapqX3tN.js} +0 -0
- /package/dist/{QA-zn4Gdzbo.js → QA-DaZHmHWd.js} +0 -0
- /package/dist/{RE-dG3KJMMx.js → RE-BFKWl5y_.js} +0 -0
- /package/dist/{RO-Dtlve3hZ.js → RO-3wOpNneM.js} +0 -0
- /package/dist/{RO-BXtuhVoN.js → RO-Bb4UTT5B.js} +0 -0
- /package/dist/{RO-B1UBvxsc.js → RO-BcDEEGjk.js} +0 -0
- /package/dist/{RO-BL-J1_yg.js → RO-CRDVNzfL.js} +0 -0
- /package/dist/{RS-DIpTuX70.js → RS-DOGs6suo.js} +0 -0
- /package/dist/{RU-B7YwaezI.js → RU-wf84MwTX.js} +0 -0
- /package/dist/{SA-yHvpRBBt.js → SA-B1u_XGB9.js} +0 -0
- /package/dist/{SE-CccuzUP0.js → SE-2WATmHl2.js} +0 -0
- /package/dist/{SE-pMhyd7KJ.js → SE-B48cKLIu.js} +0 -0
- /package/dist/{SE-gXHu0efH.js → SE-DTxNlT0w.js} +0 -0
- /package/dist/{SE-CfxNbl59.js → SE-Dv7OpBmo.js} +0 -0
- /package/dist/{SG-fAOioO1i.js → SG-A2_cs4kd.js} +0 -0
- /package/dist/{SG-CGk7k8y6.js → SG-BZ-kyKVN.js} +0 -0
- /package/dist/{SG-DIKkp5VX.js → SG-CdsmZcfV.js} +0 -0
- /package/dist/{SG-CODE9yV_.js → SG-pPmF2os4.js} +0 -0
- /package/dist/{SI-DgNZ746W.js → SI-BVTXwA8C.js} +0 -0
- /package/dist/{SI-D8ngpNLP.js → SI-DjUddZcZ.js} +0 -0
- /package/dist/{SI-CtMaFIsz.js → SI-DrX769GG.js} +0 -0
- /package/dist/{SI-BpwxzWXI.js → SI-T8ly14Dn.js} +0 -0
- /package/dist/{SJ-SG7xxYUX.js → SJ-DO3zbL0P.js} +0 -0
- /package/dist/{SK-DssnPaZv.js → SK-BFZnw1-d.js} +0 -0
- /package/dist/{SK-D8vU29-x.js → SK-Dq7sWtiL.js} +0 -0
- /package/dist/{SK-C7ldUW73.js → SK-DzGTyI5h.js} +0 -0
- /package/dist/{SK-CNT7QVie.js → SK-vJT5Dj16.js} +0 -0
- /package/dist/{SM-Ds8vicT5.js → SM-B4SkkvKD.js} +0 -0
- /package/dist/{Spacer-CvT0ELty.js → Spacer-CIwzVSSs.js} +0 -0
- /package/dist/{TF-Ckf_6iT5.js → TF-CIVHsoB9.js} +0 -0
- /package/dist/{TH-2sIVIZNa.js → TH-8huuj2v6.js} +0 -0
- /package/dist/{TL-OSKwf5cB.js → TL-Bik3Eb-u.js} +0 -0
- /package/dist/{TN-BcUBhs_y.js → TN-ClhiegdZ.js} +0 -0
- /package/dist/{TR-nO7zl2t7.js → TR-xyusRa6k.js} +0 -0
- /package/dist/{TT-uQXIiTh9.js → TT-BsT9h8j3.js} +0 -0
- /package/dist/{TW-ra8aVP1u.js → TW-Id3ypKK8.js} +0 -0
- /package/dist/{Tag-BhU73i1R.js → Tag-BUoDHC4C.js} +0 -0
- /package/dist/{UA-ChP4sFEB.js → UA-r0ZVcqym.js} +0 -0
- /package/dist/{US-F-OhVaqg.js → US-BKXr0nm-.js} +0 -0
- /package/dist/{US-CPcVUQez.js → US-C0BIY_Iy.js} +0 -0
- /package/dist/{US-amE0CRbB.js → US-Df7pLIkq.js} +0 -0
- /package/dist/{US-D6PlTpHk.js → US-_mFv0V8m.js} +0 -0
- /package/dist/{UY-BFN4uNVz.js → UY-BDWpl5Q2.js} +0 -0
- /package/dist/{VA-lz_OQgNz.js → VA-CJnCCD0R.js} +0 -0
- /package/dist/{VG-CUKKrF3h.js → VG-CODm52zD.js} +0 -0
- /package/dist/{VI-D1i4Oi0B.js → VI-B52L6yXT.js} +0 -0
- /package/dist/{VN-DRaYj63j.js → VN-BsJ-vqrs.js} +0 -0
- /package/dist/{WF-K2TrgrKu.js → WF-lhRl1Vg9.js} +0 -0
- /package/dist/{YT-CEOdE-OK.js → YT-CmziyGNY.js} +0 -0
- /package/dist/{ZA-BVXb4Fcr.js → ZA-CQNS6dil.js} +0 -0
- /package/dist/{bg-BG-Cei0GKSs.js → bg-BG-5NgZ3VWH.js} +0 -0
- /package/dist/{bg-BG-DEWs-rRP.js → bg-BG-BIPaXyYe.js} +0 -0
- /package/dist/{bg-BG-DqOqFO0A.js → bg-BG-BNqOiDw9.js} +0 -0
- /package/dist/{bg-BG-CzrQfuu9.js → bg-BG-BS-ogHPS.js} +0 -0
- /package/dist/{bg-BG-6ZQOFODJ.js → bg-BG-Bw1uE2hh.js} +0 -0
- /package/dist/{bg-BG-BFj7cKUp.js → bg-BG-CUmjOcpi2.js} +0 -0
- /package/dist/{bg-BG-DqrECTmE.js → bg-BG-CZt7bhxY.js} +0 -0
- /package/dist/{bg-BG-3LckGflP.js → bg-BG-DAJBqQge.js} +0 -0
- /package/dist/{bg-BG-C83pNfn4.js → bg-BG-DLd3BaDx.js} +0 -0
- /package/dist/{bg-BG-RNXb-nHv.js → bg-BG-DPA8C7cd.js} +0 -0
- /package/dist/{bg-BG-DkeEONKT.js → bg-BG-IjNKw0Zu.js} +0 -0
- /package/dist/{bg-BG-cotI8o9W.js → bg-BG-NwL6SZRu.js} +0 -0
- /package/dist/{bg-BG-B845EAcI.js → bg-BG-QlxmGEZL.js} +0 -0
- /package/dist/{bg-BG-BrYfHU1Y.js → bg-BG-YZ34LkMd.js} +0 -0
- /package/dist/{business-lines-DqkIqW5U.js → business-lines-CB_MhMG-.js} +0 -0
- /package/dist/{cs-CZ-CAyz5Oxb.js → cs-CZ-7rXXuJIs.js} +0 -0
- /package/dist/{cs-CZ-DwEnI4fQ.js → cs-CZ-B1VpAUva.js} +0 -0
- /package/dist/{cs-CZ-CDBbVGc-.js → cs-CZ-B6AZX4nL.js} +0 -0
- /package/dist/{cs-CZ-Bl40lHzE.js → cs-CZ-BObx8NMb.js} +0 -0
- /package/dist/{cs-CZ-ZS7mzkKt.js → cs-CZ-BZkot6xs.js} +0 -0
- /package/dist/{cs-CZ-HMzN3w9M.js → cs-CZ-Bl8qBkx4.js} +0 -0
- /package/dist/{cs-CZ-BzLM1J0O.js → cs-CZ-C6VkcCUo.js} +0 -0
- /package/dist/{cs-CZ-D57vUsIT.js → cs-CZ-D0cnPyvU.js} +0 -0
- /package/dist/{cs-CZ-IZhVT21N.js → cs-CZ-DNvBXQqI.js} +0 -0
- /package/dist/{cs-CZ-BwBM1vwP.js → cs-CZ-DPBUFjhq.js} +0 -0
- /package/dist/{cs-CZ-gb6TMFZb.js → cs-CZ-T1WlAO7N.js} +0 -0
- /package/dist/{cs-CZ-CfxBBOC-.js → cs-CZ-ZE5Rr33W.js} +0 -0
- /package/dist/{cs-CZ-UMI1WiLa.js → cs-CZ-n18LpZrJ2.js} +0 -0
- /package/dist/{cs-CZ-B06gTEk7.js → cs-CZ-wR26v-Tv.js} +0 -0
- /package/dist/{currency-CfIDpZh9.js → currency-B8-OEAgj.js} +0 -0
- /package/dist/{da-DK-DaA3zK0h.js → da-DK-B8aHvZ1W.js} +0 -0
- /package/dist/{da-DK-BOHnR0Il.js → da-DK-B9B0iVAP.js} +0 -0
- /package/dist/{da-DK-CzFS-0y6.js → da-DK-BDachfZH.js} +0 -0
- /package/dist/{da-DK-BdTOmGpJ.js → da-DK-BKXKKaAi.js} +0 -0
- /package/dist/{da-DK-Dr6tf-Lo.js → da-DK-BLDKON2e.js} +0 -0
- /package/dist/{da-DK-IX9UQUAb.js → da-DK-BOU9aCaN.js} +0 -0
- /package/dist/{da-DK-ChjPgR_1.js → da-DK-Bc6oX5Ct.js} +0 -0
- /package/dist/{da-DK-DccHpcaD.js → da-DK-BxwrnoI-.js} +0 -0
- /package/dist/{da-DK-2j1muC3G.js → da-DK-CB-sFnhe.js} +0 -0
- /package/dist/{da-DK-BpU2x5NW.js → da-DK-DJ5ddVnr2.js} +0 -0
- /package/dist/{da-DK-CtzpguJ3.js → da-DK-DZ06pHNH.js} +0 -0
- /package/dist/{da-DK-B576UeqU.js → da-DK-LXurZBZ8.js} +0 -0
- /package/dist/{da-DK-Dl1gbqFi.js → da-DK-klGGwyxv.js} +0 -0
- /package/dist/{da-DK-DSyQ3Ps0.js → da-DK-uqXEDzsX.js} +0 -0
- /package/dist/{de-DE-CQNX2xWR.js → de-DE-B-ocPFC_.js} +0 -0
- /package/dist/{de-DE-DSP4aQRh.js → de-DE-B8D6bV3u.js} +0 -0
- /package/dist/{de-DE-9zD8WyBP.js → de-DE-BHik7H3o.js} +0 -0
- /package/dist/{de-DE-BG2Pi_Hf.js → de-DE-Bp10daWa.js} +0 -0
- /package/dist/{de-DE-Bn6YiHtc.js → de-DE-BqMjvkMg.js} +0 -0
- /package/dist/{de-DE-CFAXyhfm.js → de-DE-Bx3yWhvM.js} +0 -0
- /package/dist/{de-DE-B8F_0Uzg.js → de-DE-C6ivH7ki.js} +0 -0
- /package/dist/{de-DE-C9UIqdWt.js → de-DE-CKOOKYoC.js} +0 -0
- /package/dist/{de-DE-D6w76Bhs.js → de-DE-CZ4lmioI2.js} +0 -0
- /package/dist/{de-DE-duz3XQVB.js → de-DE-C_u5Ihon.js} +0 -0
- /package/dist/{de-DE-CeWgOEe0.js → de-DE-DXkUC1-N.js} +0 -0
- /package/dist/{de-DE-CHdEma9v.js → de-DE-DstHFxVG.js} +0 -0
- /package/dist/{de-DE-8WABT_v_.js → de-DE-JZBqb8ce.js} +0 -0
- /package/dist/{de-DE-C4PzkDzF.js → de-DE-apC2os2u.js} +0 -0
- /package/dist/{de-DE-Cl0fc0U_.js → de-DE-cPL-uSMG.js} +0 -0
- /package/dist/{digital-wallet-DwpEiQRS.js → digital-wallet-CLOVHAow.js} +0 -0
- /package/dist/{document-blurred-DGXvRTC8.js → document-blurred-DHgG-aQ6.js} +0 -0
- /package/dist/{document-cut-off-DbVQzqxC.js → document-cut-off-DCf-G-0l.js} +0 -0
- /package/dist/{document-expired-DKnTJ5T9.js → document-expired-UJMQKi88.js} +0 -0
- /package/dist/{document-front-Bn5jsEIh.js → document-front-DLpxfBfu.js} +0 -0
- /package/dist/{el-GR-CNoP_at_.js → el-GR-BDXwftjw.js} +0 -0
- /package/dist/{el-GR-XuQDipDR.js → el-GR-BRFvZNGC.js} +0 -0
- /package/dist/{el-GR-C2TaxLbh.js → el-GR-C8TS7Fts.js} +0 -0
- /package/dist/{el-GR-DhZGJfcX.js → el-GR-C8jFvyDg.js} +0 -0
- /package/dist/{el-GR-BjWgE_1X.js → el-GR-CEZLeeb3.js} +0 -0
- /package/dist/{el-GR-6gy3x8Rf.js → el-GR-CZs5BPVJ2.js} +0 -0
- /package/dist/{el-GR-BUBdTCMP.js → el-GR-CiverXpL.js} +0 -0
- /package/dist/{el-GR-Buy5IU8M.js → el-GR-DfW8zYK4.js} +0 -0
- /package/dist/{el-GR-9wRo_Jlg.js → el-GR-DpjNNE9F.js} +0 -0
- /package/dist/{el-GR-B4q095lu.js → el-GR-DyDZNY1Y.js} +0 -0
- /package/dist/{el-GR-CYMJ_CGX.js → el-GR-DzqcyUr7.js} +0 -0
- /package/dist/{el-GR-B7kSlTiS.js → el-GR-LUFCyvHj.js} +0 -0
- /package/dist/{el-GR-B5dqrdWm.js → el-GR-mGnv3b-O.js} +0 -0
- /package/dist/{el-GR-qM707S4d.js → el-GR-nX_raYFR.js} +0 -0
- /package/dist/{el-GR-ChOnowdP.js → el-GR-qXgxklIB.js} +0 -0
- /package/dist/{emitEvent-Cdd95HOT.js → emitEvent-B8K0cb1F.js} +0 -0
- /package/dist/{en-US-BRfsKsUt.js → en-US-B-_7IR6A.js} +0 -0
- /package/dist/{en-US-2TPpQbtl.js → en-US-BE08bzln.js} +0 -0
- /package/dist/{en-US-C6pEYLdI.js → en-US-BOfSEKyo.js} +0 -0
- /package/dist/{en-US-Cdk3bjx1.js → en-US-Bg5OVg3A.js} +0 -0
- /package/dist/{en-US-BEL_lmpv.js → en-US-C0SrG99u.js} +0 -0
- /package/dist/{en-US-ClGcnLh5.js → en-US-CCfgIGYL.js} +0 -0
- /package/dist/{en-US-ZFlMM5v3.js → en-US-CO9Ct3Xx.js} +0 -0
- /package/dist/{en-US-D9vXTqQr.js → en-US-CUsu9qhV.js} +0 -0
- /package/dist/{en-US-C-PxehAi.js → en-US-CYKhRzm3.js} +0 -0
- /package/dist/{en-US-1Tznfcwg.js → en-US-Cd8cLmVX.js} +0 -0
- /package/dist/{en-US-DdArZW-2.js → en-US-CuX4Fzoo.js} +0 -0
- /package/dist/{en-US-Ce1lXhRx.js → en-US-D_g_DM_a2.js} +0 -0
- /package/dist/{en-US-VZ7ytmtB.js → en-US-DrAjiabh.js} +0 -0
- /package/dist/{en-US-Bw9LpxPe.js → en-US-NaoNaTO0.js} +0 -0
- /package/dist/{en-US-CXdfrlM6.js → en-US-RmklpZAK.js} +0 -0
- /package/dist/{en-US-DkCd0fIv.js → en-US-T46O8OJV.js} +0 -0
- /package/dist/{en-US-DmDPhSJN.js → en-US-_D_BTN1a.js} +0 -0
- /package/dist/{en-US-DQLhkpBE.js → en-US-_l9425V1.js} +0 -0
- /package/dist/{en-US-gwxv5v9w.js → en-US-aJtjsYKh.js} +0 -0
- /package/dist/{en-US-i-xCvkps.js → en-US-reyG1gZR.js} +0 -0
- /package/dist/{en-US.instructions-CbjjdEDm.js → en-US.instructions-DlxMDbRu.js} +0 -0
- /package/dist/{en-US.instructions-B6Zz2fWV.js → en-US.instructions-kje2iQeM.js} +0 -0
- /package/dist/{es-ES-DFYOkj68.js → es-ES-0O9y1_Bc.js} +0 -0
- /package/dist/{es-ES-QIbBo_YM.js → es-ES-BAAL2h3R.js} +0 -0
- /package/dist/{es-ES-DFSg6LDS.js → es-ES-BMBx28UE2.js} +0 -0
- /package/dist/{es-ES-DBxs7iF7.js → es-ES-Bwhnseeu.js} +0 -0
- /package/dist/{es-ES-DK_0xiGy.js → es-ES-COW5z7yz.js} +0 -0
- /package/dist/{es-ES-zQtj9duk.js → es-ES-CR1kGbcC.js} +0 -0
- /package/dist/{es-ES-BPXpnHRY.js → es-ES-D67pkLVu.js} +0 -0
- /package/dist/{es-ES-B-tIK-cN.js → es-ES-DB77kzqT.js} +0 -0
- /package/dist/{es-ES-oq21mjwX.js → es-ES-DFg_LlqD.js} +0 -0
- /package/dist/{es-ES-CBXbBc1A.js → es-ES-DPWDUwvq.js} +0 -0
- /package/dist/{es-ES-D7cgUez3.js → es-ES-OQQLpoI2.js} +0 -0
- /package/dist/{es-ES-DaSL4L2E.js → es-ES-RzKcfNXi.js} +0 -0
- /package/dist/{es-ES-C883ZbTP.js → es-ES-VLjc_QDm.js} +0 -0
- /package/dist/{es-ES-BgIsUMnp.js → es-ES-mdSA-CIT.js} +0 -0
- /package/dist/{es-ES-Qo_8qb9r.js → es-ES-w18iEceS.js} +0 -0
- /package/dist/{et-EE-RpLsFwBS.js → et-EE-30-8FeA2.js} +0 -0
- /package/dist/{et-EE-DGfXiMhc.js → et-EE-B4ZMHksf.js} +0 -0
- /package/dist/{et-EE-lAWJnluh.js → et-EE-BId587En.js} +0 -0
- /package/dist/{et-EE-Af13W-XG.js → et-EE-BWE9LBIW.js} +0 -0
- /package/dist/{et-EE-CuuT6UiF.js → et-EE-C4U93xrJ.js} +0 -0
- /package/dist/{et-EE-Clm5xG7H.js → et-EE-DJWVyTVM.js} +0 -0
- /package/dist/{et-EE-DP5k72Ny.js → et-EE-DL10J4Zc.js} +0 -0
- /package/dist/{et-EE-DsWMEXzs.js → et-EE-DLyMklqJ.js} +0 -0
- /package/dist/{et-EE-6yAadp0T.js → et-EE-DRfTkFhA.js} +0 -0
- /package/dist/{et-EE-CfkcHuFD.js → et-EE-Dg93VJbx.js} +0 -0
- /package/dist/{et-EE-BmnILU2a.js → et-EE-Dh2jDTFG.js} +0 -0
- /package/dist/{et-EE-D_kA0eDD.js → et-EE-Dj0jysHw.js} +0 -0
- /package/dist/{et-EE-C9XygiEr.js → et-EE-Q6sB4U1M.js} +0 -0
- /package/dist/{et-EE-BkOKxrqy.js → et-EE-go_L8yC52.js} +0 -0
- /package/dist/{fi-FI-2vCaB5I_.js → fi-FI-4ckffUlB.js} +0 -0
- /package/dist/{fi-FI-BMwsN_ji.js → fi-FI-BISdPgnh.js} +0 -0
- /package/dist/{fi-FI-CGqRN2IG.js → fi-FI-BNtrKnDN.js} +0 -0
- /package/dist/{fi-FI-DJFHw4Gf.js → fi-FI-BnLganAU.js} +0 -0
- /package/dist/{fi-FI-BhZIWccP.js → fi-FI-BrmYMDbY.js} +0 -0
- /package/dist/{fi-FI-DbEqdQ0g.js → fi-FI-C9tfA3gh.js} +0 -0
- /package/dist/{fi-FI-lJ4HlHb-.js → fi-FI-CfmDq95S.js} +0 -0
- /package/dist/{fi-FI-BYm7CUY2.js → fi-FI-DZyEs_5S.js} +0 -0
- /package/dist/{fi-FI-BYUiGQKy.js → fi-FI-D_kMnAKc.js} +0 -0
- /package/dist/{fi-FI-LjVAH9we.js → fi-FI-DsfVixQ62.js} +0 -0
- /package/dist/{fi-FI-EuKD6k8Y.js → fi-FI-F0phsC5e.js} +0 -0
- /package/dist/{fi-FI-cUN_PaZk.js → fi-FI-IwaR92iX.js} +0 -0
- /package/dist/{fi-FI-CpZz975D.js → fi-FI-U8ajDFHW.js} +0 -0
- /package/dist/{fi-FI-DasFIxOy.js → fi-FI-koFpyMaq.js} +0 -0
- /package/dist/{fr-FR-BEhEatm2.js → fr-FR-B0eVVc8V.js} +0 -0
- /package/dist/{fr-FR-smLbfIXK.js → fr-FR-BG65xuYX.js} +0 -0
- /package/dist/{fr-FR-vudUwtME.js → fr-FR-BIFr-HU92.js} +0 -0
- /package/dist/{fr-FR-7iwyxWaL.js → fr-FR-Bo3Ui9bW.js} +0 -0
- /package/dist/{fr-FR-ByTQyNaR.js → fr-FR-BqpAnmif.js} +0 -0
- /package/dist/{fr-FR-H6eQ7sOs.js → fr-FR-C3LsflXn.js} +0 -0
- /package/dist/{fr-FR-I5zOELIl.js → fr-FR-CMj16KIu2.js} +0 -0
- /package/dist/{fr-FR-CTaavJDz.js → fr-FR-CYRsfbyW.js} +0 -0
- /package/dist/{fr-FR-BlpT5HWY.js → fr-FR-CZs4UzUR.js} +0 -0
- /package/dist/{fr-FR-hE0azhRh.js → fr-FR-Ch734grp.js} +0 -0
- /package/dist/{fr-FR-qy27JGqF.js → fr-FR-CsoVB-yq.js} +0 -0
- /package/dist/{fr-FR-BwhO0tqx.js → fr-FR-DYDmBWWT.js} +0 -0
- /package/dist/{fr-FR-D1HpNhTO.js → fr-FR-Duc4nlp1.js} +0 -0
- /package/dist/{fr-FR-DnX9lTEQ.js → fr-FR-DwYX21r1.js} +0 -0
- /package/dist/{fr-FR-IutY4BNm.js → fr-FR-T96nLrjZ.js} +0 -0
- /package/dist/{funds-in-CK4EVzwN.js → funds-in-BabYV5ES.js} +0 -0
- /package/dist/{getTrustedDecisionMakers-DXR7mrNp.js → getTrustedDecisionMakers-BjGAWMyl.js} +0 -0
- /package/dist/{graphical-laptop-xPvp7QKa.js → graphical-laptop-BI3ea4L0.js} +0 -0
- /package/dist/{house-BlDqCoY9.js → house-DmAf0l8c.js} +0 -0
- /package/dist/{hr-HR-3QgFbMTF.js → hr-HR-BtQMffYR.js} +0 -0
- /package/dist/{hr-HR-BEwLtMwp.js → hr-HR-CC9rZ3QQ.js} +0 -0
- /package/dist/{hr-HR-DwVuRMPc.js → hr-HR-CFAySNqh.js} +0 -0
- /package/dist/{hr-HR-Bl5USqyK.js → hr-HR-Co3tIKjf2.js} +0 -0
- /package/dist/{hr-HR-CYD_Yj5T.js → hr-HR-D7vlzkU5.js} +0 -0
- /package/dist/{hr-HR-O1W0RKHg.js → hr-HR-DTIXBOS5.js} +0 -0
- /package/dist/{hr-HR-DQqy_9ak.js → hr-HR-DX0PV0eV.js} +0 -0
- /package/dist/{hr-HR-akaQzcCj.js → hr-HR-D_X-RNUl.js} +0 -0
- /package/dist/{hr-HR-BXLWA1xd.js → hr-HR-DbebVQF9.js} +0 -0
- /package/dist/{hr-HR-p1pYKZ12.js → hr-HR-DlIsKp9D.js} +0 -0
- /package/dist/{hr-HR-BzyoDD3o.js → hr-HR-DpQuBztk.js} +0 -0
- /package/dist/{hr-HR-B0Uv8xVL.js → hr-HR-Ngyn0CeW.js} +0 -0
- /package/dist/{hr-HR-C87yHlGv.js → hr-HR-gmt7xTWx2.js} +0 -0
- /package/dist/{hr-HR-CUn-0EG-.js → hr-HR-mfHZl8tO.js} +0 -0
- /package/dist/{hu-HU-BN0ZzLka.js → hu-HU-3FpAw9b1.js} +0 -0
- /package/dist/{hu-HU-Bxg-cJEy.js → hu-HU-BED5SDWE.js} +0 -0
- /package/dist/{hu-HU-BKVeQ5ix.js → hu-HU-BJ98-oo4.js} +0 -0
- /package/dist/{hu-HU-4UezjSak.js → hu-HU-Bdaah8cz2.js} +0 -0
- /package/dist/{hu-HU-DCcxM8GA.js → hu-HU-BfD5UZoY2.js} +0 -0
- /package/dist/{hu-HU-Ck3m9-by.js → hu-HU-CMFGONUT.js} +0 -0
- /package/dist/{hu-HU-BD5u-5OF.js → hu-HU-CVHFlarO.js} +0 -0
- /package/dist/{hu-HU-DUKYa8hD.js → hu-HU-CwuLcKKO.js} +0 -0
- /package/dist/{hu-HU-BzAy_OWc.js → hu-HU-DIgxSbaT.js} +0 -0
- /package/dist/{hu-HU-DceMzb3Y.js → hu-HU-DXHf3uuK.js} +0 -0
- /package/dist/{hu-HU-BRvJDeoB.js → hu-HU-D_5yVmCo.js} +0 -0
- /package/dist/{hu-HU-Nb-5azdf.js → hu-HU-e9KN8lp6.js} +0 -0
- /package/dist/{hu-HU-BI_kQFSO.js → hu-HU-sBeAx2Fk.js} +0 -0
- /package/dist/{hu-HU-BcBo3Wg7.js → hu-HU-yAwdJ5xn.js} +0 -0
- /package/dist/{id-blurred-CtnwOJmP.js → id-blurred-BdqQKk1l.js} +0 -0
- /package/dist/{id-cut-off-DTnrMaG3.js → id-cut-off-BlpfXo5W.js} +0 -0
- /package/dist/{id-front-BArANgYI.js → id-front-Bqd59AfN.js} +0 -0
- /package/dist/{id-glare-g3bnPQ3v.js → id-glare-7GGletdB.js} +0 -0
- /package/dist/{it-IT-B0pCVo4V.js → it-IT-16IjDttL.js} +0 -0
- /package/dist/{it-IT-DK30YvbO.js → it-IT-3PSb6tzc.js} +0 -0
- /package/dist/{it-IT-BrljrojW.js → it-IT-B2zFnv7K.js} +0 -0
- /package/dist/{it-IT-8v9Z1t9f.js → it-IT-BHwyxQMv.js} +0 -0
- /package/dist/{it-IT-Dns-1Qbf.js → it-IT-BK6Yn4vc.js} +0 -0
- /package/dist/{it-IT-C1KwdLpE.js → it-IT-BcBkbTJA.js} +0 -0
- /package/dist/{it-IT-qe_3rLfB.js → it-IT-BgULENxX.js} +0 -0
- /package/dist/{it-IT-BXFbtihY.js → it-IT-BgYPPn4D2.js} +0 -0
- /package/dist/{it-IT-BDmDOB2T.js → it-IT-Bnm0ulsw2.js} +0 -0
- /package/dist/{it-IT-BUfc2_tb.js → it-IT-BrdXGWpw.js} +0 -0
- /package/dist/{it-IT-CHiYsPdc.js → it-IT-C6cS36WW.js} +0 -0
- /package/dist/{it-IT-CHuVqZdn.js → it-IT-CCtD36Df.js} +0 -0
- /package/dist/{it-IT-BCrUbo-z.js → it-IT-CwwFjn4z.js} +0 -0
- /package/dist/{it-IT-DwcpMh9-.js → it-IT-Dlk9Ij_n.js} +0 -0
- /package/dist/{it-IT-BxdBXweN.js → it-IT-kER7OY9Z.js} +0 -0
- /package/dist/{ja-JP-CeqgYUmV.js → ja-JP-B5SxIdyP2.js} +0 -0
- /package/dist/{ja-JP-BzBRpXM1.js → ja-JP-B5fRnSzi.js} +0 -0
- /package/dist/{ja-JP-BTO8X-UN.js → ja-JP-BT70_5Cd.js} +0 -0
- /package/dist/{ja-JP-AJi9sARI.js → ja-JP-Bfj0ajmQ.js} +0 -0
- /package/dist/{ja-JP-DHCGOMkF.js → ja-JP-C6iWB0o1.js} +0 -0
- /package/dist/{ja-JP-DTqjZ_RP.js → ja-JP-C7tIgG_I.js} +0 -0
- /package/dist/{ja-JP-DoROjKZt.js → ja-JP-CJY6uqPb.js} +0 -0
- /package/dist/{ja-JP-KN3RFziQ.js → ja-JP-CTFB8UKL.js} +0 -0
- /package/dist/{ja-JP-CXZrBJpG.js → ja-JP-CYmySE1y.js} +0 -0
- /package/dist/{ja-JP-DDT5jvAB.js → ja-JP-D6OZ6CvT.js} +0 -0
- /package/dist/{ja-JP-BNljcToT.js → ja-JP-D6qS54Zm.js} +0 -0
- /package/dist/{ja-JP-CcNCEE_H.js → ja-JP-D91Qq9X0.js} +0 -0
- /package/dist/{ja-JP-CzwMiarb.js → ja-JP-DPMaXa_r.js} +0 -0
- /package/dist/{ja-JP-BSSI6iGa2.js → ja-JP-IQ3IO6y62.js} +0 -0
- /package/dist/{ja-JP-C_E_4yUn.js → ja-JP-tHJpSXnY.js} +0 -0
- /package/dist/{ja-JP-CwVkOC4Z.js → ja-JP-wmwnTtNd.js} +0 -0
- /package/dist/{japanSupportUtils-Dt75Cqon.js → japanSupportUtils-BFwywtpf.js} +0 -0
- /package/dist/{jpAddressSchema-B8l7CyMD.js → jpAddressSchema-DT36LOFn.js} +0 -0
- /package/dist/{lt-LT-BAQ97F-A.js → lt-LT-2KIisO4_.js} +0 -0
- /package/dist/{lt-LT-DZMHZ8Wm.js → lt-LT-8dDfYsF82.js} +0 -0
- /package/dist/{lt-LT-BqkmwEGL.js → lt-LT-B3_15c6J.js} +0 -0
- /package/dist/{lt-LT-CDRKdIqh.js → lt-LT-BVVTYN3z.js} +0 -0
- /package/dist/{lt-LT-CinU7Rld.js → lt-LT-BWPnX-pH.js} +0 -0
- /package/dist/{lt-LT-obgOauKB.js → lt-LT-CKltvr9j.js} +0 -0
- /package/dist/{lt-LT-bBBImnIr.js → lt-LT-CpQj1HiE.js} +0 -0
- /package/dist/{lt-LT-Dn1uWfTS.js → lt-LT-Cqgf8zD1.js} +0 -0
- /package/dist/{lt-LT--ykjbt1G2.js → lt-LT-Cux3u7VW2.js} +0 -0
- /package/dist/{lt-LT-CxHGyOg_.js → lt-LT-D3XnG1Jr.js} +0 -0
- /package/dist/{lt-LT-QPJqX0US.js → lt-LT-DX-73rzB.js} +0 -0
- /package/dist/{lt-LT-IP4Sz8Gn.js → lt-LT-Dkvuak-E.js} +0 -0
- /package/dist/{lt-LT-CuwPjwup.js → lt-LT-Dpy8srws.js} +0 -0
- /package/dist/{lt-LT-BKGzSDa-.js → lt-LT-OGBNEWvq.js} +0 -0
- /package/dist/{lv-LV-D8f1SpLf.js → lv-LV-B34caEFv.js} +0 -0
- /package/dist/{lv-LV-CHzgorrn.js → lv-LV-BGMkr0W_.js} +0 -0
- /package/dist/{lv-LV-M7YZXYD4.js → lv-LV-B_Uypp3t.js} +0 -0
- /package/dist/{lv-LV-BlsECQxr.js → lv-LV-BeobSRYx.js} +0 -0
- /package/dist/{lv-LV-D7Ba9nJV2.js → lv-LV-C8V3_dW42.js} +0 -0
- /package/dist/{lv-LV-DCAvbkAw.js → lv-LV-CaTht4v3.js} +0 -0
- /package/dist/{lv-LV-uHgCKfLK.js → lv-LV-CcQHxQxD.js} +0 -0
- /package/dist/{lv-LV-OyBe6sGX.js → lv-LV-CgjXiLeF.js} +0 -0
- /package/dist/{lv-LV-DlQGKdqk.js → lv-LV-Cz0igciN.js} +0 -0
- /package/dist/{lv-LV-C9zoAq4h.js → lv-LV-D0EFr0dt.js} +0 -0
- /package/dist/{lv-LV-Db5Vo-5Y.js → lv-LV-D4clLiV42.js} +0 -0
- /package/dist/{lv-LV-DvFc-DyR.js → lv-LV-DBM72epC.js} +0 -0
- /package/dist/{lv-LV-CKWVZhLn.js → lv-LV-DEnNFC-Z.js} +0 -0
- /package/dist/{lv-LV-CM9OZxXW.js → lv-LV-DwsdNJrk.js} +0 -0
- /package/dist/{mapAddressLocalizationToJpAddressSchema-Cu5HfF7K.js → mapAddressLocalizationToJpAddressSchema-Cp77VSSB.js} +0 -0
- /package/dist/{nl-NL-ju3LUcLk.js → nl-NL-5jIn9iMp.js} +0 -0
- /package/dist/{nl-NL-lQdh6BGm.js → nl-NL-BCCzwWkw2.js} +0 -0
- /package/dist/{nl-NL-D_nfmeEO2.js → nl-NL-BDRbbezw2.js} +0 -0
- /package/dist/{nl-NL-BXVVoxv9.js → nl-NL-BLie9b-e.js} +0 -0
- /package/dist/{nl-NL-2uvrEI1a.js → nl-NL-BTuDiajY.js} +0 -0
- /package/dist/{nl-NL-8p9rwsJP.js → nl-NL-BUzOX91N.js} +0 -0
- /package/dist/{nl-NL-6qgh_ZGA.js → nl-NL-BtwZkAPX.js} +0 -0
- /package/dist/{nl-NL-CYK4qxsi.js → nl-NL-CxlTSECX.js} +0 -0
- /package/dist/{nl-NL-DIi484Xs.js → nl-NL-CyH02pOG.js} +0 -0
- /package/dist/{nl-NL-BXTbqvDG.js → nl-NL-D16qC_X6.js} +0 -0
- /package/dist/{nl-NL-DorNLKpV.js → nl-NL-DI_aNYah.js} +0 -0
- /package/dist/{nl-NL-DfLVbnIt.js → nl-NL-DKhvGB4T.js} +0 -0
- /package/dist/{nl-NL-CQ0C9N3m.js → nl-NL-DKpjFbpm.js} +0 -0
- /package/dist/{nl-NL-cywhUHFC.js → nl-NL-DxYcxeQo.js} +0 -0
- /package/dist/{nl-NL-CX0UKes1.js → nl-NL-kUujSdLA.js} +0 -0
- /package/dist/{no-NO-C6RmwGdG.js → no-NO-47FYUgvH.js} +0 -0
- /package/dist/{no-NO-CUdwwq5Q.js → no-NO-BHzeSSjR.js} +0 -0
- /package/dist/{no-NO-DY_LshSS.js → no-NO-BNL9v_bl.js} +0 -0
- /package/dist/{no-NO-hgC3Li7e.js → no-NO-ByxOHA9n.js} +0 -0
- /package/dist/{no-NO-cGYgKGw1.js → no-NO-C037FAac.js} +0 -0
- /package/dist/{no-NO-BReO2o5n2.js → no-NO-C54FcsFm2.js} +0 -0
- /package/dist/{no-NO-FfT6jM26.js → no-NO-CG5RteG_.js} +0 -0
- /package/dist/{no-NO-CCtUTnqP.js → no-NO-D6C6Imfk.js} +0 -0
- /package/dist/{no-NO-CmZkhB61.js → no-NO-DAK8yauA.js} +0 -0
- /package/dist/{no-NO-sKe9NQr2.js → no-NO-DMJwgC8y.js} +0 -0
- /package/dist/{no-NO-C84jmD65.js → no-NO-DN8WIiN32.js} +0 -0
- /package/dist/{no-NO-D6M4YQQF.js → no-NO-FtH9gIpv.js} +0 -0
- /package/dist/{no-NO-A9MwJ3y8.js → no-NO-YjH9dIrD.js} +0 -0
- /package/dist/{no-NO-Bs3p6emQ.js → no-NO-zmQRBKzh.js} +0 -0
- /package/dist/{onfido-logo-1G-CB3dP.js → onfido-logo-BXb14yhW.js} +0 -0
- /package/dist/{passport-blurred-DOfrfF0N.js → passport-blurred-UX6p2KZ5.js} +0 -0
- /package/dist/{passport-cut-off-DwNmCL8v.js → passport-cut-off-C4H57LgT.js} +0 -0
- /package/dist/{passport-front-DLG09n5u.js → passport-front-K9nDuC3A.js} +0 -0
- /package/dist/{passport-front-green-Bq6FNZC5.js → passport-front-green-BB3zGc3y.js} +0 -0
- /package/dist/{passport-glare-CkhvC36x.js → passport-glare-Cw4IMJSe.js} +0 -0
- /package/dist/{patternValidators-COjyZHty.js → patternValidators-CyquDS0K.js} +0 -0
- /package/dist/{payout-bank-accounts-0-Q33p3g.js → payout-bank-accounts-CLJxCTuX.js} +0 -0
- /package/dist/{payout-verification-instant-DauPH4bQ.js → payout-verification-instant-CMIgRzIb.js} +0 -0
- /package/dist/{payout-verification-manual-Cm0DGplr.js → payout-verification-manual-C7ldngdB.js} +0 -0
- /package/dist/{pl-PL-BNxu8295.js → pl-PL-BYICgNRn.js} +0 -0
- /package/dist/{pl-PL-156KzpqG.js → pl-PL-BcRAnn6f.js} +0 -0
- /package/dist/{pl-PL-RdEbXX76.js → pl-PL-CK40GB3R.js} +0 -0
- /package/dist/{pl-PL-BDDbHDK-2.js → pl-PL-ChXEKosP2.js} +0 -0
- /package/dist/{pl-PL-Cv1qwhLs.js → pl-PL-CpA94K5Z.js} +0 -0
- /package/dist/{pl-PL-D3NzOQQU.js → pl-PL-DNdGYT-E.js} +0 -0
- /package/dist/{pl-PL-17gZNngW.js → pl-PL-DU49RDRD.js} +0 -0
- /package/dist/{pl-PL-Dpz4EXKB.js → pl-PL-DYmR6-f32.js} +0 -0
- /package/dist/{pl-PL-CBZ7wl6h.js → pl-PL-DeAckp5p.js} +0 -0
- /package/dist/{pl-PL-GHRpKIYs.js → pl-PL-R2xSHe-z.js} +0 -0
- /package/dist/{pl-PL-vU5_jmwK.js → pl-PL-R6bNjSQB.js} +0 -0
- /package/dist/{pl-PL-CZ9BcuwC.js → pl-PL-_ZC1ezJq.js} +0 -0
- /package/dist/{pl-PL-DDxFQhlh.js → pl-PL-aWhB1xes.js} +0 -0
- /package/dist/{pl-PL-BVYFKqiG.js → pl-PL-x6CltZUu.js} +0 -0
- /package/dist/{plaid-logo-0nNUjUmK.js → plaid-logo-CJxRcMad.js} +0 -0
- /package/dist/{pt-BR-B5i0TdE9.js → pt-BR-7FV4JArc.js} +0 -0
- /package/dist/{pt-BR-Dwht_-_u.js → pt-BR-7qFnlWUK.js} +0 -0
- /package/dist/{pt-BR-BjLvBssy.js → pt-BR-B0zBNcPy.js} +0 -0
- /package/dist/{pt-BR-B9WbwtyP.js → pt-BR-BDEGOFU52.js} +0 -0
- /package/dist/{pt-BR-BdpAz26L.js → pt-BR-BgiNMjMc.js} +0 -0
- /package/dist/{pt-BR-C7pxsNe-.js → pt-BR-CTxtcXRe.js} +0 -0
- /package/dist/{pt-BR-CwmMY-Tc.js → pt-BR-D1iDi1mu.js} +0 -0
- /package/dist/{pt-BR-CYhLwdOe.js → pt-BR-D8hxPoFJ.js} +0 -0
- /package/dist/{pt-BR-CxgX2M20.js → pt-BR-DReb0iHZ.js} +0 -0
- /package/dist/{pt-BR-CSfxTFwr.js → pt-BR-DbX3zod4.js} +0 -0
- /package/dist/{pt-BR-DXnHFKFu2.js → pt-BR-Dmax22362.js} +0 -0
- /package/dist/{pt-BR-BigDE2bv.js → pt-BR-DqX_xhiS.js} +0 -0
- /package/dist/{pt-BR-BM2eCcyF.js → pt-BR-VlNZLr8f.js} +0 -0
- /package/dist/{pt-BR-DDY3_bvo.js → pt-BR-u_Sv-NkV.js} +0 -0
- /package/dist/{pt-BR-Bd5SyVeF.js → pt-BR-zUBVM8_b.js} +0 -0
- /package/dist/{pt-PT-MQaQhXQu.js → pt-PT-BTZOJZU6.js} +0 -0
- /package/dist/{pt-PT-BTa4QeyR.js → pt-PT-BXlxPqah.js} +0 -0
- /package/dist/{pt-PT-BBd1NJRh.js → pt-PT-C0GJNK9V.js} +0 -0
- /package/dist/{pt-PT-BKUXYNsZ.js → pt-PT-CEPDmPY7.js} +0 -0
- /package/dist/{pt-PT-3OKhZcS6.js → pt-PT-CHzUJtV9.js} +0 -0
- /package/dist/{pt-PT-CJVVRZyV.js → pt-PT-CWzCKCL8.js} +0 -0
- /package/dist/{pt-PT-pmBhUOv3.js → pt-PT-CxnB9Jff.js} +0 -0
- /package/dist/{pt-PT-DBFZcKHi.js → pt-PT-Czy2_X1t.js} +0 -0
- /package/dist/{pt-PT-CH4Dn0EZ.js → pt-PT-D7H8b_VC.js} +0 -0
- /package/dist/{pt-PT-CI47ZET7.js → pt-PT-D9QbJxzN.js} +0 -0
- /package/dist/{pt-PT-UFb_htLN.js → pt-PT-DFy0vZ_Z2.js} +0 -0
- /package/dist/{pt-PT-B89VwWSr2.js → pt-PT-Dg4oH3gw2.js} +0 -0
- /package/dist/{pt-PT-Bmgh2Wtd.js → pt-PT-Dmor9x6o.js} +0 -0
- /package/dist/{pt-PT-CIOonsBY.js → pt-PT-DtbDoXdt.js} +0 -0
- /package/dist/{pt-PT-BfaWVW2C.js → pt-PT-R8cWw20f.js} +0 -0
- /package/dist/{reporting-D1AXR-Qx.js → reporting-BcwGP__8.js} +0 -0
- /package/dist/{review-D8XMCDlT.js → review-lg331I4Q.js} +0 -0
- /package/dist/{ro-RO-BgJc13qL.js → ro-RO-B08k8bQK.js} +0 -0
- /package/dist/{ro-RO-Bf10OHuY.js → ro-RO-B3hA8dZo.js} +0 -0
- /package/dist/{ro-RO-BiNysx6n.js → ro-RO-BCF9oCQb.js} +0 -0
- /package/dist/{ro-RO-C3g0pSKU.js → ro-RO-BCHziTju.js} +0 -0
- /package/dist/{ro-RO-7iyzlI6_.js → ro-RO-BRtHlgch.js} +0 -0
- /package/dist/{ro-RO-D5Cj05wq.js → ro-RO-C4lcxnWO.js} +0 -0
- /package/dist/{ro-RO-Rrm0fA3m.js → ro-RO-CA7NoMAg2.js} +0 -0
- /package/dist/{ro-RO-D6r0wCQ9.js → ro-RO-CfsDLBM4.js} +0 -0
- /package/dist/{ro-RO-D6bG8672.js → ro-RO-Cuw1RmFc.js} +0 -0
- /package/dist/{ro-RO-DYS3QUHv2.js → ro-RO-DKnHwBRU2.js} +0 -0
- /package/dist/{ro-RO-Bl3OcC_Q.js → ro-RO-DLtPW1MX.js} +0 -0
- /package/dist/{ro-RO-Bd7X3Shk.js → ro-RO-e45j_CyV.js} +0 -0
- /package/dist/{ro-RO-DwNvQOyI.js → ro-RO-sc5JtH0w.js} +0 -0
- /package/dist/{ro-RO-CE6NRU4s.js → ro-RO-x6WCri80.js} +0 -0
- /package/dist/{roleMetadata-72B4lOSi.js → roleMetadata-Dt8-oMGP.js} +0 -0
- /package/dist/{singpass-logo-DESKvfOJ.js → singpass-logo-D1Z8HeLC.js} +0 -0
- /package/dist/{singpass-logo-small-CBW6iXWW.js → singpass-logo-small-CQC5e3lx.js} +0 -0
- /package/dist/{sk-SK-BpMbHWuR.js → sk-SK--ohjuOMW.js} +0 -0
- /package/dist/{sk-SK-C-_WGtZq.js → sk-SK-1i0L4zIs.js} +0 -0
- /package/dist/{sk-SK-DToW-wRh.js → sk-SK-BgG5lOt0.js} +0 -0
- /package/dist/{sk-SK-C4w5-ddS.js → sk-SK-C8d17RvE2.js} +0 -0
- /package/dist/{sk-SK-DoPn0KmU.js → sk-SK-ChCtHT1F.js} +0 -0
- /package/dist/{sk-SK-fTz6vRwx2.js → sk-SK-Cx_3eof92.js} +0 -0
- /package/dist/{sk-SK-BQkrw6JK.js → sk-SK-D85WFQun.js} +0 -0
- /package/dist/{sk-SK-BPCCl0s2.js → sk-SK-DDnT0jda.js} +0 -0
- /package/dist/{sk-SK-db-7uoWM.js → sk-SK-DGZDbKDL.js} +0 -0
- /package/dist/{sk-SK-y3Dcsvdc.js → sk-SK-DNKyL6Hl.js} +0 -0
- /package/dist/{sk-SK-LVBbnlQt.js → sk-SK-DXRluu5W.js} +0 -0
- /package/dist/{sk-SK-tk_1fC8g.js → sk-SK-DwG8xkcP.js} +0 -0
- /package/dist/{sk-SK-CT0xaSZx.js → sk-SK-wzPlUKNj.js} +0 -0
- /package/dist/{sk-SK-BSv5VXox.js → sk-SK-xqB2A84D.js} +0 -0
- /package/dist/{sl-SI-hjNO4Xn7.js → sl-SI-4GAFGoms.js} +0 -0
- /package/dist/{sl-SI-D_mOefZc.js → sl-SI-BNFfDyNl.js} +0 -0
- /package/dist/{sl-SI-BIB5llvY.js → sl-SI-CEVc1txT.js} +0 -0
- /package/dist/{sl-SI-DvGN_6N9.js → sl-SI-ChCyYnjd.js} +0 -0
- /package/dist/{sl-SI-DohopK0u.js → sl-SI-D3zK3MPP.js} +0 -0
- /package/dist/{sl-SI-DX2rW3Xz.js → sl-SI-D6evG9fK.js} +0 -0
- /package/dist/{sl-SI-CX-qAqMO.js → sl-SI-DNgxTuIJ.js} +0 -0
- /package/dist/{sl-SI-gUNcHR30.js → sl-SI-DWJzi8r_.js} +0 -0
- /package/dist/{sl-SI-ZUhvuxBZ2.js → sl-SI-Dgiup8IA2.js} +0 -0
- /package/dist/{sl-SI-DiLuydaN.js → sl-SI-DnpKMUhR.js} +0 -0
- /package/dist/{sl-SI-DMVQoGmB.js → sl-SI-DpgW-r5w.js} +0 -0
- /package/dist/{sl-SI-B-t1nY1x.js → sl-SI-PsgMnJ-h.js} +0 -0
- /package/dist/{sl-SI-Csp3skVN.js → sl-SI-uhzy0HC12.js} +0 -0
- /package/dist/{sl-SI-Cas6OuzL.js → sl-SI-xsbSqfy5.js} +0 -0
- /package/dist/{summaryItem-1qkXaJ3t.js → summaryItem-Dehjwp8D.js} +0 -0
- /package/dist/{sv-SE-CrJARVpV.js → sv-SE-4oyeOi4Y.js} +0 -0
- /package/dist/{sv-SE-BRQ91Hv5.js → sv-SE-68ttS8MT.js} +0 -0
- /package/dist/{sv-SE-CSKtzGY2.js → sv-SE-B5rhe24M.js} +0 -0
- /package/dist/{sv-SE-Bx_Mk5xx.js → sv-SE-BM8WESGs.js} +0 -0
- /package/dist/{sv-SE-5JqRNF8X.js → sv-SE-C8tSsaYW.js} +0 -0
- /package/dist/{sv-SE-i9koytKp.js → sv-SE-CBNLo-2r.js} +0 -0
- /package/dist/{sv-SE-BV2EhITc.js → sv-SE-CVRa-6Y0.js} +0 -0
- /package/dist/{sv-SE-Bpo3MgEr.js → sv-SE-D3hPP-Mp.js} +0 -0
- /package/dist/{sv-SE-BhwzqPYQ.js → sv-SE-DTpqjuJd.js} +0 -0
- /package/dist/{sv-SE-BNhQj0RW.js → sv-SE-DhNNMEwq.js} +0 -0
- /package/dist/{sv-SE-CbOwA6fv.js → sv-SE-DlYizFz8.js} +0 -0
- /package/dist/{sv-SE-BOEa4u9p.js → sv-SE-Dsrb2FFw.js} +0 -0
- /package/dist/{sv-SE-dwaFgb6K.js → sv-SE-Iv-yFbrD2.js} +0 -0
- /package/dist/{sv-SE-DCJ5qTna2.js → sv-SE-RN6U43sG2.js} +0 -0
- /package/dist/{sv-SE-B11bsYOb.js → sv-SE-g8sg5z4z.js} +0 -0
- /package/dist/{tax-reporting-graph-CiYu4sVT.js → tax-reporting-graph-DNooZCbb.js} +0 -0
- /package/dist/{tink-logo-Dp4PjbAK.js → tink-logo-CX__31Jl.js} +0 -0
- /package/dist/{toFullWidth-CSa3Sffs.js → toFullWidth-CQcDriFa.js} +0 -0
- /package/dist/{trackNavigation--j_v51FT.js → trackNavigation-LvCP5Vyc.js} +0 -0
- /package/dist/{types-JwlhJAzE.js → types-BvdB7N_Z.js} +0 -0
- /package/dist/{types-CEqVWlW2.js → types-DFnOnn2u.js} +0 -0
- /package/dist/{us-check-NOKy2EZw.js → us-check-DDgyJGV7.js} +0 -0
- /package/dist/{us-check-account-number-6XnlzqOK.js → us-check-account-number-2IRtS9Sf.js} +0 -0
- /package/dist/{us-check-routing-number-BvTOZiYt.js → us-check-routing-number-DsS3HQjf.js} +0 -0
- /package/dist/{useId-KnIzB9vO.js → useId-eJSYfA6i.js} +0 -0
- /package/dist/{utils-oc3EdK6K.js → utils-DoIwWADT.js} +0 -0
- /package/dist/{utils-CNtocYve.js → utils-Dq8hAri1.js} +0 -0
- /package/dist/{validate-DHSybdw4.js → validate-BC1f_rgO.js} +0 -0
- /package/dist/{view-verification-status-CYHM_Ggf.js → view-verification-status-CtW_qUMg.js} +0 -0
- /package/dist/{yapily-logo-BDC11yL7.js → yapily-logo-ldkl6D52.js} +0 -0
|
@@ -0,0 +1,1792 @@
|
|
|
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] = "35622f5a-82b4-4677-8352-e1f1faeacfa4", e._sentryDebugIdIdentifier = "sentry-dbid-35622f5a-82b4-4677-8352-e1f1faeacfa4");
|
|
4
|
+
} catch (e) {}
|
|
5
|
+
import { i as Typography, n as addResourceBundles, r as useTranslation } from "./translation-hEYGx0ZB.js";
|
|
6
|
+
import { r as Loader, t as Button } from "./Button-CAoywEKy.js";
|
|
7
|
+
import { s as useApiContext } from "./http-j2zqU8vS.js";
|
|
8
|
+
import { r as useLegalEntity, t as ROOT_LE } from "./useLegalEntity-CJD0bWSj.js";
|
|
9
|
+
import { t as LegalEntityTypes } from "./legal-entity-type-VIfNYnJP.js";
|
|
10
|
+
import { t as getLegalEntityCountry } from "./getLegalEntityCountry-C6bSV6sB.js";
|
|
11
|
+
import { c as entriesOf, i as drop, l as keysOf, n as cloneObject, o as objectsDeepEqual } from "./AnalyticsContext-C0HNdPss.js";
|
|
12
|
+
import { C as isValidMinLength, _ as hasText, a as NO_ALPHABET_REGEX, g as hasRepeatedCharacters, n as EMOJI_REGEX, s as OTHER_ENTITIES_VALID_CHAR_REGEX, w as matchesRegex, x as isInvalidName, y as isEmpty } from "./validatorUtils-D5MKiGfL.js";
|
|
13
|
+
import { t as useToggleContext } from "./useToggleContext-CLfowItk.js";
|
|
14
|
+
import { t as _rolldown_dynamic_import_helper_default } from "./_rolldown_dynamic_import_helper-CCXvMgfE.js";
|
|
15
|
+
import { t as Header } from "./Header-BI6ESU0g.js";
|
|
16
|
+
import { t as CountryCodes } from "./country-code-D3oCpE4i.js";
|
|
17
|
+
import { t as useCapabilities } from "./useCapabilities-DtrmUEO6.js";
|
|
18
|
+
import { n as datasetUtilities } from "./datasetUtil-BZmNUckr.js";
|
|
19
|
+
import { t as Alert } from "./Alert-B5ye0DfE.js";
|
|
20
|
+
import { C as EntityTypes, a as trustComponentsKeyMapping, i as trustApiKeyMapping, o as trustDocumentMapping, y as reverseMapping } from "./processCapabilities-CDSEJpB8.js";
|
|
21
|
+
import { t as TaskTypes } from "./taskTypes-DWaxzvnQ.js";
|
|
22
|
+
import { s as getOwnEntityAssociations } from "./entityAssociationUtil-C0gX4Ewv.js";
|
|
23
|
+
import { t as getCountrySpecificTrustTypeOptions } from "./trustUtil-CVipffas.js";
|
|
24
|
+
import { t as useAnalyticsContext } from "./useAnalyticsContext-D6DJZmqu.js";
|
|
25
|
+
import { t as useToastContext } from "./useToastContext-d6uY8F_F.js";
|
|
26
|
+
import { n as useCapabilityProblems, t as getProblemsForEntity } from "./getProblemsForEntity-_KT3YxwG.js";
|
|
27
|
+
import { t as LoaderWrapper } from "./LoaderWrapper-Bf1CHY2M.js";
|
|
28
|
+
import { i as ModalHeader, n as ModalContent, r as ModalFooter } from "./Modal-BBG3ZQQS.js";
|
|
29
|
+
import { t as useAssociatedLegalEntity } from "./useAssociatedLegalEntity-BGQ6cYIB.js";
|
|
30
|
+
import { i as useScenarioConfiguration, r as getPageName, t as mapExistingFile } from "./mapExistingFile-BNIpBgK_.js";
|
|
31
|
+
import { t as useCreateLegalEntity } from "./useCreateLegalEntity-jSFh42K4.js";
|
|
32
|
+
import { t as useUpdateLegalEntity } from "./useUpdateLegalEntity-24uhTBvq.js";
|
|
33
|
+
import { t as Address } from "./Address-BHsUBMEd.js";
|
|
34
|
+
import { c as FormContextProvider, i as FormFlow, n as addValidityToForms, o as FormRouterContextProvider, r as getRequiredForms, s as useFormComposer, t as useFormContext } from "./useFormContext-nr__Cvkn.js";
|
|
35
|
+
import { n as composePerScenarioFormConfigurations, r as getPropsFromConfigurations, t as augmentWithCountryConfigs } from "./process-field-configurations-BJ9Nikhm.js";
|
|
36
|
+
import { t as ErrorPanel } from "./ErrorPanel-BXe3GGb1.js";
|
|
37
|
+
import { n as mergeFieldMetadataIntoProps, t as createFormUtils } from "./formUtils-DcRJcDH1.js";
|
|
38
|
+
import { n as summaryStep, t as Summary } from "./Summary-BEVwp_sh.js";
|
|
39
|
+
import { t as useMultiForm } from "./useMultiForm-BP_UxwIw.js";
|
|
40
|
+
import { t as useTaskLandedEvent } from "./useTaskLandedEvent-BC_AIUoQ.js";
|
|
41
|
+
import { t as MaybeModal } from "./MaybeModal-C1Y88Wk8.js";
|
|
42
|
+
import { i as mapAddressLabels } from "./utils-k_FCPeM1.js";
|
|
43
|
+
import { i as isValidationError, o as processValidationErrors, s as isMaintenanceModeError } from "./validationError-Au-8gBsy.js";
|
|
44
|
+
import { c as getDocument, o as createDocumentRequest, s as documentApiUtils } from "./validate-Cmbqq1fk.js";
|
|
45
|
+
import { i as getProp, r as formatObject } from "./utils-DoIwWADT.js";
|
|
46
|
+
import { a as getFieldsWithExistingData, n as TaxInformationField, t as TAX_INFORMATION_FIELD } from "./TaxInformationField-Cnsv_Wjn.js";
|
|
47
|
+
import { a as validateNotEmptyOnBlur } from "./patternValidators-CyquDS0K.js";
|
|
48
|
+
import { S as taxInformationDefaultFieldMetadata, i as COUNTRIES_THAT_USE_TAX_ID_INSTEAD_OF_VAT, u as countryToTaxInfoTypeMap, v as exemptedFromTaxDefaultFieldConfig, x as taxInformationDefaultFieldConfig, y as exemptedFromTaxDefaultFieldMetadata } from "./utils-DJiLPA9H.js";
|
|
49
|
+
import { t as resolveFieldMetadata } from "./fieldConfigurations-m7oWP1DZ.js";
|
|
50
|
+
import { t as Field } from "./Field-BD_0HjiI.js";
|
|
51
|
+
import { t as Select } from "./Select-CAso7Gvi.js";
|
|
52
|
+
import { t as useForm } from "./useForm-bP74zzsw.js";
|
|
53
|
+
import { n as getFormProps, r as getNestedOuterFormPropsFromOuterFormProps } from "./getProps-CkZCnNxW.js";
|
|
54
|
+
import { t as InputText } from "./InputText-qdIKYibU.js";
|
|
55
|
+
import { n as CountryField, t as COUNTRY_FIELD } from "./CountryField-BNRhvO1q.js";
|
|
56
|
+
import { t as RadioGroup } from "./RadioGroup-DAPea-p5.js";
|
|
57
|
+
import { t as createFormRules } from "./form-rules-ZiRm6ke_.js";
|
|
58
|
+
import { t as ContextGuidance } from "./ContextGuidance-DUTeagNS.js";
|
|
59
|
+
import { t as isEmpty$1 } from "./isEmpty-DPybQEh0.js";
|
|
60
|
+
import { t as Spacer } from "./Spacer-CIwzVSSs.js";
|
|
61
|
+
import { t as FormNavigation } from "./FormNavigation-CnYKCwKM.js";
|
|
62
|
+
import { n as useStateContext, t as useGlobalDataSlice } from "./useGlobalData-kCF9O1er.js";
|
|
63
|
+
import { c as getRegistrationNumberHelperText, i as getCompanyRegistrationNumberOptions, l as registrationNumberDefaultFieldConfig, n as getDefaultRegistrationNumberType, o as exemptFromRegistrationNumberDefaultFieldConfig, r as inferCompanyRegistrationNumberType, s as exemptFromRegistrationNumberDefaultFieldMetadata, u as registrationNumberDefaultFieldMetadata } from "./CompanyRegistrationNumberTypeSelector-ClsEwZ_M.js";
|
|
64
|
+
import { _ as BusinessRegistrationNumberField, a as operationalAddressIsSameItems, c as getDefaultVatNumberType, f as doingBusinessAsAbsentFieldMetadata, g as BUSINESS_REGISTRATION_NUMBER_FIELD, h as DBA_NAME_FIELD, i as operationalAddressIsSameIds, l as defaultFieldConfig, m as DBANameField, n as RegistrationAddress, o as VAT_NUMBER_FIELD, p as doingBusinessAsFieldMetadata, r as registrationAddressFields, s as VatNumberField, t as MemoizedConstitutionalDocument, u as defaultFieldMetadata } from "./ConstitutionalDocument-DLKR6UHP.js";
|
|
65
|
+
import { a as UNINCORPORATED_PARTNERSHIP_COUNTRIES_TAX_INFORMATION_REQUIRED, i as UNINCORPORATED_PARTNERSHIP_COUNTRIES_TAX_INFORMATION_OPTIONAL, n as UNINCORPORATED_PARTNERSHIP_COUNTRIES_REGISTRATION_NUMBER_OPTIONAL, o as UNINCORPORATED_PARTNERSHIP_COUNTRIES_VAT_NUMBER_OPTIONAL, r as UNINCORPORATED_PARTNERSHIP_COUNTRIES_REGISTRATION_NUMBER_REQUIRED, t as ALLOWED_UNINCORPORATED_PARTNERSHIP_COUNTRIES } from "./types-DFnOnn2u.js";
|
|
66
|
+
import { t as StepProgressIndicator } from "./StepProgressIndicator-J9mjU88T.js";
|
|
67
|
+
import { useCallback, useEffect, useMemo, useRef, useState } from "preact/hooks";
|
|
68
|
+
import { Fragment, jsx, jsxs } from "preact/jsx-runtime";
|
|
69
|
+
import { skipToken } from "@tanstack/preact-query";
|
|
70
|
+
//#region src/context/StateContext/hasDataChanged.ts
|
|
71
|
+
var hasDataChanged = (initialData, currentData) => entriesOf(currentData ?? {}).some(([key, value]) => {
|
|
72
|
+
if (typeof value === "object") return !objectsDeepEqual(value, initialData?.[key]);
|
|
73
|
+
return value !== initialData?.[key];
|
|
74
|
+
});
|
|
75
|
+
//#endregion
|
|
76
|
+
//#region src/components/Shared/FormWrapper/FormWrapper.tsx
|
|
77
|
+
/** @deprecated migrate to useMultiForm hook and FormFlow ui component*/
|
|
78
|
+
var FormWrapper = ({ asModal = false, summary, taskName, children, handleNextClick, handleBackClick, handleCloseClick, handleHomeClick, loadingStatus, gotoFormByFormIndex, gotoFormByFormId, forms, activeForm, validateForm, hideSidebar, hideFooter, canSubmit, onSubmit, problems, steps, showBackButton, hideNextButton, hideHomeButton }) => {
|
|
79
|
+
const { t } = useTranslation("common");
|
|
80
|
+
const userEvents = useAnalyticsContext();
|
|
81
|
+
const { data: summaryData, omitted, labels } = summary || {};
|
|
82
|
+
const [finishLaterLoading, setFinishLaterLoading] = useState(false);
|
|
83
|
+
const showLegalCaption = [
|
|
84
|
+
"solePropDetails",
|
|
85
|
+
"companyDetails",
|
|
86
|
+
"businessDetails"
|
|
87
|
+
].includes(taskName);
|
|
88
|
+
const { isFeatureEnabled } = useToggleContext();
|
|
89
|
+
const summaryContent = /* @__PURE__ */ jsx("div", {
|
|
90
|
+
className: "adyen-kyc-form-wrapper",
|
|
91
|
+
children: /* @__PURE__ */ jsx(Summary, {
|
|
92
|
+
data: summaryData,
|
|
93
|
+
omitted,
|
|
94
|
+
forms,
|
|
95
|
+
gotoForm: gotoFormByFormIndex,
|
|
96
|
+
labels,
|
|
97
|
+
problems,
|
|
98
|
+
showLegalCaption,
|
|
99
|
+
showTaxExemptedLegalCaption: isFeatureEnabled("ShowExtraTaxExemptionReasons") && summaryData?.companyRegistrationDetails?.vatAbsenceReason && ["companyDetails", "businessDetails"].includes(taskName)
|
|
100
|
+
})
|
|
101
|
+
});
|
|
102
|
+
const onHomeClick = () => {
|
|
103
|
+
setFinishLaterLoading(true);
|
|
104
|
+
userEvents.addPageEvent("Clicked button", {
|
|
105
|
+
actionType: "save",
|
|
106
|
+
label: "finishLater"
|
|
107
|
+
});
|
|
108
|
+
if (canSubmit) onSubmit().then(() => {
|
|
109
|
+
setFinishLaterLoading(false);
|
|
110
|
+
});
|
|
111
|
+
else {
|
|
112
|
+
handleHomeClick?.();
|
|
113
|
+
setFinishLaterLoading(false);
|
|
114
|
+
}
|
|
115
|
+
};
|
|
116
|
+
const isFirstStep = steps.current === 0;
|
|
117
|
+
const isFinalStep = steps.current === steps.total - 1;
|
|
118
|
+
return /* @__PURE__ */ jsxs(MaybeModal, {
|
|
119
|
+
inline: !asModal,
|
|
120
|
+
onClose: handleCloseClick,
|
|
121
|
+
size: "large",
|
|
122
|
+
children: [/* @__PURE__ */ jsxs(ModalContent, { children: [/* @__PURE__ */ jsx(ModalHeader, {}), /* @__PURE__ */ jsx(LoaderWrapper, {
|
|
123
|
+
status: loadingStatus,
|
|
124
|
+
formOpacityWhenLoading: .3,
|
|
125
|
+
loaderSize: "large",
|
|
126
|
+
children: /* @__PURE__ */ jsxs("div", {
|
|
127
|
+
className: !hideSidebar ? "adyen-kyc-form-with-sidebar" : "",
|
|
128
|
+
children: [!asModal && !hideSidebar && /* @__PURE__ */ jsx("div", {
|
|
129
|
+
className: "adyen-kyc-dropin__sidebar-wrapper",
|
|
130
|
+
children: /* @__PURE__ */ jsx(FormNavigation, {
|
|
131
|
+
forms,
|
|
132
|
+
activeForm,
|
|
133
|
+
gotoForm: gotoFormByFormIndex,
|
|
134
|
+
validateForm,
|
|
135
|
+
taskName,
|
|
136
|
+
verificationErrors: problems?.verificationErrors
|
|
137
|
+
})
|
|
138
|
+
}), /* @__PURE__ */ jsxs(FormRouterContextProvider, {
|
|
139
|
+
setFormIndex: gotoFormByFormIndex,
|
|
140
|
+
goToFormByFormId: gotoFormByFormId,
|
|
141
|
+
forms,
|
|
142
|
+
children: [children, activeForm.formId === summaryStep.formId && summary && summaryContent]
|
|
143
|
+
})]
|
|
144
|
+
})
|
|
145
|
+
})] }), !hideFooter && /* @__PURE__ */ jsxs(ModalFooter, { children: [
|
|
146
|
+
/* @__PURE__ */ jsx("div", {
|
|
147
|
+
style: {
|
|
148
|
+
width: "30%",
|
|
149
|
+
display: asModal ? "unset" : "none"
|
|
150
|
+
},
|
|
151
|
+
children: /* @__PURE__ */ jsx(StepProgressIndicator, {
|
|
152
|
+
activeStepIndex: steps.current ?? 0,
|
|
153
|
+
stepsCount: steps.total,
|
|
154
|
+
fillBefore: true,
|
|
155
|
+
thick: true
|
|
156
|
+
})
|
|
157
|
+
}),
|
|
158
|
+
(!isFirstStep || showBackButton) && handleBackClick && /* @__PURE__ */ jsx(Button, {
|
|
159
|
+
icon: "chevron-left",
|
|
160
|
+
variant: "secondary",
|
|
161
|
+
onClick: handleBackClick,
|
|
162
|
+
children: t(($) => $["back"])
|
|
163
|
+
}),
|
|
164
|
+
/* @__PURE__ */ jsx(Spacer, {}),
|
|
165
|
+
!isFirstStep && !isFinalStep && !hideHomeButton && /* @__PURE__ */ jsx(Button, {
|
|
166
|
+
variant: "secondary",
|
|
167
|
+
icon: "save",
|
|
168
|
+
onClick: onHomeClick,
|
|
169
|
+
loading: finishLaterLoading,
|
|
170
|
+
children: t(($) => $["finishLater"])
|
|
171
|
+
}),
|
|
172
|
+
!isFinalStep && !hideNextButton && /* @__PURE__ */ jsx(Button, {
|
|
173
|
+
onClick: handleNextClick,
|
|
174
|
+
children: t(($) => $["continue"])
|
|
175
|
+
}),
|
|
176
|
+
isFinalStep && /* @__PURE__ */ jsx(Button, {
|
|
177
|
+
onClick: handleNextClick,
|
|
178
|
+
children: t(($) => $["submit"])
|
|
179
|
+
})
|
|
180
|
+
] })]
|
|
181
|
+
});
|
|
182
|
+
};
|
|
183
|
+
//#endregion
|
|
184
|
+
//#region src/components/Trust/mapping/mapApiDocumentToTrustDocument.ts
|
|
185
|
+
var mapApiDocumentToTrustDocument = (entityId) => {
|
|
186
|
+
const constitutionalDocument = getDocument(entityId, "constitutionalDocument") || null;
|
|
187
|
+
return { trustConstitutionalDocument: constitutionalDocument ? { constitutionalDocument: [mapExistingFile(getPageName(constitutionalDocument))] } : void 0 };
|
|
188
|
+
};
|
|
189
|
+
//#endregion
|
|
190
|
+
//#region src/components/UnincorporatedPartnership/mapping/unincorporatedPartnershipKeyMappings.ts
|
|
191
|
+
var unincorporatedPartnershipBaseMapping = {
|
|
192
|
+
"trustRegistrationDetails.trustType": "unincorporatedPartnership.type",
|
|
193
|
+
"trustRegistrationDetails.legalName": "unincorporatedPartnership.name",
|
|
194
|
+
"trustRegistrationDetails.doingBusinessAs": "unincorporatedPartnership.doingBusinessAs",
|
|
195
|
+
"trustRegistrationDetails.hasDoingBusinessAs": "unincorporatedPartnership.doingBusinessAsAbsent",
|
|
196
|
+
"trustRegistrationDetails.country": "unincorporatedPartnership.countryOfGoverningLaw",
|
|
197
|
+
"trustRegistrationDetails.registrationNumber": "unincorporatedPartnership.registrationNumber",
|
|
198
|
+
"trustRegistrationDetails.taxInformation": "unincorporatedPartnership.taxInformation",
|
|
199
|
+
"trustRegistrationDetails.vatNumber": "unincorporatedPartnership.vatNumber",
|
|
200
|
+
"trustRegistrationAddress.registrationAddress.city": "unincorporatedPartnership.registeredAddress.city",
|
|
201
|
+
"trustRegistrationAddress.registrationAddress.country": "unincorporatedPartnership.registeredAddress.country",
|
|
202
|
+
"trustRegistrationAddress.registrationAddress.postalCode": "unincorporatedPartnership.registeredAddress.postalCode",
|
|
203
|
+
"trustRegistrationAddress.registrationAddress.stateOrProvince": "unincorporatedPartnership.registeredAddress.stateOrProvince",
|
|
204
|
+
"trustRegistrationAddress.registrationAddress.address": "unincorporatedPartnership.registeredAddress.street",
|
|
205
|
+
"trustRegistrationAddress.registrationAddress.otherAddressInformation": "unincorporatedPartnership.registeredAddress.street2",
|
|
206
|
+
"trustRegistrationAddress.operationalAddress.city": "unincorporatedPartnership.principalPlaceOfBusiness.city",
|
|
207
|
+
"trustRegistrationAddress.operationalAddress.country": "unincorporatedPartnership.principalPlaceOfBusiness.country",
|
|
208
|
+
"trustRegistrationAddress.operationalAddress.postalCode": "unincorporatedPartnership.principalPlaceOfBusiness.postalCode",
|
|
209
|
+
"trustRegistrationAddress.operationalAddress.stateOrProvince": "unincorporatedPartnership.principalPlaceOfBusiness.stateOrProvince",
|
|
210
|
+
"trustRegistrationAddress.operationalAddress.address": "unincorporatedPartnership.principalPlaceOfBusiness.street",
|
|
211
|
+
"trustRegistrationAddress.operationalAddress.otherAddressInformation": "unincorporatedPartnership.principalPlaceOfBusiness.street2"
|
|
212
|
+
};
|
|
213
|
+
var unincorporatedPartnershipComponentsKeyMapping = {
|
|
214
|
+
"trustRegistrationDetails.exemptedFromVat": "unincorporatedPartnership.vatAbsenceReason",
|
|
215
|
+
...unincorporatedPartnershipBaseMapping
|
|
216
|
+
};
|
|
217
|
+
var unincorporatedPartnershipApiKeyMapping = { ...reverseMapping(unincorporatedPartnershipBaseMapping) };
|
|
218
|
+
//#endregion
|
|
219
|
+
//#region src/components/UnincorporatedPartnership/mapping/mapLegalEntityToUnincorporatedPartnership.ts
|
|
220
|
+
var mapLegalEntityToUnincorporatedPartnership = (legalEntity, isFeatureEnabled) => {
|
|
221
|
+
if (!legalEntity.unincorporatedPartnership) throw new Error("LE missing unincorporatedPartnership field");
|
|
222
|
+
let trustCompData = formatObject(legalEntity, unincorporatedPartnershipComponentsKeyMapping);
|
|
223
|
+
if (!trustCompData?.trustRegistrationDetails) return {};
|
|
224
|
+
trustCompData.trustRegistrationDetails.country = legalEntity.unincorporatedPartnership.countryOfGoverningLaw;
|
|
225
|
+
if (legalEntity.unincorporatedPartnership.description) trustCompData.trustRegistrationDetails.objectOfTrust = legalEntity.unincorporatedPartnership.description;
|
|
226
|
+
if (legalEntity.unincorporatedPartnership.principalPlaceOfBusiness) trustCompData.trustRegistrationAddress.operationalAddressIsSame = operationalAddressIsSameIds.OPERATIONAL_ADDRESS_IS_NOT_SAME;
|
|
227
|
+
else {
|
|
228
|
+
if (!trustCompData.trustRegistrationAddress) trustCompData.trustRegistrationAddress = {};
|
|
229
|
+
trustCompData.trustRegistrationAddress.operationalAddressIsSame = operationalAddressIsSameIds.OPERATIONAL_ADDRESS_IS_SAME;
|
|
230
|
+
}
|
|
231
|
+
if (legalEntity.unincorporatedPartnership.taxInformation?.length) {
|
|
232
|
+
const { country } = legalEntity.unincorporatedPartnership.registeredAddress;
|
|
233
|
+
const countryTaxInformation = legalEntity.unincorporatedPartnership.taxInformation.find((info) => info.country === country);
|
|
234
|
+
if (countryTaxInformation?.type === "UEN") trustCompData.trustRegistrationDetails.isUen = true;
|
|
235
|
+
if (countryTaxInformation?.type === "GST") trustCompData.trustRegistrationDetails.isUen = false;
|
|
236
|
+
const taxNumberAbsent = countryTaxInformation?.numberAbsent;
|
|
237
|
+
if (taxNumberAbsent !== void 0) trustCompData.trustRegistrationDetails.exemptedFromTax = taxNumberAbsent;
|
|
238
|
+
}
|
|
239
|
+
if (legalEntity.documentDetails?.length) trustCompData = {
|
|
240
|
+
...trustCompData,
|
|
241
|
+
...mapApiDocumentToTrustDocument(legalEntity?.id)
|
|
242
|
+
};
|
|
243
|
+
if (isFeatureEnabled("EnableDoingBusinessAsNameV4")) {
|
|
244
|
+
if (typeof trustCompData.trustRegistrationDetails?.hasDoingBusinessAs === "boolean") {
|
|
245
|
+
trustCompData.trustRegistrationDetails.hasDoingBusinessAs = !legalEntity.unincorporatedPartnership.doingBusinessAsAbsent;
|
|
246
|
+
if (!trustCompData.trustRegistrationDetails.hasDoingBusinessAs) delete legalEntity.unincorporatedPartnership.doingBusinessAs;
|
|
247
|
+
}
|
|
248
|
+
} else {
|
|
249
|
+
trustCompData.trustRegistrationDetails.hasDoingBusinessAs = legalEntity.unincorporatedPartnership.doingBusinessAs ? legalEntity.unincorporatedPartnership.doingBusinessAs !== legalEntity.unincorporatedPartnership.name : void 0;
|
|
250
|
+
trustCompData.trustRegistrationDetails.doingBusinessAs = legalEntity.unincorporatedPartnership.doingBusinessAs;
|
|
251
|
+
}
|
|
252
|
+
return trustCompData;
|
|
253
|
+
};
|
|
254
|
+
//#endregion
|
|
255
|
+
//#region src/components/UnincorporatedPartnership/mapping/mapUnincorporatedPartnershipToLegalEntity.ts
|
|
256
|
+
var mapUnincorporatedPartnershipToLegalEntity = (data, isFeatureEnabled) => {
|
|
257
|
+
const requestObj = { ...formatObject(data, unincorporatedPartnershipApiKeyMapping) };
|
|
258
|
+
if (!requestObj.unincorporatedPartnership) return requestObj;
|
|
259
|
+
if (requestObj.unincorporatedPartnership?.taxInformation?.[0]?.type === "GST") requestObj.unincorporatedPartnership.taxInformation[0].type = "UEN";
|
|
260
|
+
if (isFeatureEnabled("EnableDoingBusinessAsNameV4")) {
|
|
261
|
+
if (typeof data.trustRegistrationDetails?.hasDoingBusinessAs !== "undefined") requestObj.unincorporatedPartnership.doingBusinessAsAbsent = !data.trustRegistrationDetails?.hasDoingBusinessAs;
|
|
262
|
+
} else {
|
|
263
|
+
requestObj.unincorporatedPartnership.doingBusinessAs = data.trustRegistrationDetails?.doingBusinessAs || data.trustRegistrationDetails?.legalName || "";
|
|
264
|
+
delete requestObj.unincorporatedPartnership.doingBusinessAsAbsent;
|
|
265
|
+
}
|
|
266
|
+
requestObj.type = LegalEntityTypes.UNINCORPORATED_PARTNERSHIP;
|
|
267
|
+
return requestObj;
|
|
268
|
+
};
|
|
269
|
+
//#endregion
|
|
270
|
+
//#region src/components/Trust/forms/Trust/rules.ts
|
|
271
|
+
var COUNTRIES_THAT_USE_REGISTRATION_NUMBER = [CountryCodes.NewZealand];
|
|
272
|
+
var rules = ({ data, country, taskType }) => createFormRules({
|
|
273
|
+
countryUsesTaxId: () => {
|
|
274
|
+
if (taskType === TaskTypes.UNINCORPORATED_PARTNERSHIP) {
|
|
275
|
+
if (UNINCORPORATED_PARTNERSHIP_COUNTRIES_TAX_INFORMATION_REQUIRED.includes(country)) return "REQUIRED";
|
|
276
|
+
if (UNINCORPORATED_PARTNERSHIP_COUNTRIES_TAX_INFORMATION_OPTIONAL.includes(country)) return "OPTIONAL";
|
|
277
|
+
}
|
|
278
|
+
if (country !== CountryCodes.NewZealand && COUNTRIES_THAT_USE_TAX_ID_INSTEAD_OF_VAT.includes(country)) return "REQUIRED";
|
|
279
|
+
},
|
|
280
|
+
countryRequiresRegistrationNumberForTrust: () => {
|
|
281
|
+
if (taskType === TaskTypes.UNINCORPORATED_PARTNERSHIP) {
|
|
282
|
+
if (UNINCORPORATED_PARTNERSHIP_COUNTRIES_REGISTRATION_NUMBER_REQUIRED.includes(country)) return "REQUIRED";
|
|
283
|
+
if (UNINCORPORATED_PARTNERSHIP_COUNTRIES_REGISTRATION_NUMBER_OPTIONAL.includes(country)) return "OPTIONAL";
|
|
284
|
+
}
|
|
285
|
+
if (COUNTRIES_THAT_USE_REGISTRATION_NUMBER.includes(country)) return "REQUIRED";
|
|
286
|
+
},
|
|
287
|
+
registrationNumberType: () => {
|
|
288
|
+
if (taskType === TaskTypes.UNINCORPORATED_PARTNERSHIP) {
|
|
289
|
+
if (UNINCORPORATED_PARTNERSHIP_COUNTRIES_REGISTRATION_NUMBER_REQUIRED.includes(country)) return "OPTIONAL";
|
|
290
|
+
if (UNINCORPORATED_PARTNERSHIP_COUNTRIES_REGISTRATION_NUMBER_OPTIONAL.includes(country)) return "OPTIONAL";
|
|
291
|
+
}
|
|
292
|
+
if (COUNTRIES_THAT_USE_REGISTRATION_NUMBER.includes(country)) return "OPTIONAL";
|
|
293
|
+
},
|
|
294
|
+
countryUsesVatNumber: () => {
|
|
295
|
+
if (taskType === TaskTypes.UNINCORPORATED_PARTNERSHIP) {
|
|
296
|
+
if (UNINCORPORATED_PARTNERSHIP_COUNTRIES_VAT_NUMBER_OPTIONAL.includes(country)) return "OPTIONAL";
|
|
297
|
+
}
|
|
298
|
+
},
|
|
299
|
+
trustTypeHasDescription: () => {
|
|
300
|
+
if (data?.trustRegistrationDetails?.trustType === "charitableTrust") return "REQUIRED";
|
|
301
|
+
},
|
|
302
|
+
requireDoingBusinessAsName: () => {
|
|
303
|
+
return data?.trustRegistrationDetails?.hasDoingBusinessAs ? "REQUIRED" : void 0;
|
|
304
|
+
},
|
|
305
|
+
requiresTrustType: () => {
|
|
306
|
+
if (taskType === TaskTypes.TRUST) return "REQUIRED";
|
|
307
|
+
}
|
|
308
|
+
});
|
|
309
|
+
//#endregion
|
|
310
|
+
//#region src/components/Trust/forms/TrustRegistrationDetails/validate.ts
|
|
311
|
+
var trustRegistrationDetailsValidations = {
|
|
312
|
+
trustType: {
|
|
313
|
+
modes: ["blur"],
|
|
314
|
+
validate: (trustType) => !!trustType,
|
|
315
|
+
errorMessage: "fieldIsRequired"
|
|
316
|
+
},
|
|
317
|
+
country: {
|
|
318
|
+
modes: ["blur"],
|
|
319
|
+
validate: (country) => !!country,
|
|
320
|
+
errorMessage: "fieldIsRequired"
|
|
321
|
+
},
|
|
322
|
+
legalName: {
|
|
323
|
+
modes: ["blur"],
|
|
324
|
+
validate: (legalName) => !!legalName,
|
|
325
|
+
errorMessage: "fieldIsRequired"
|
|
326
|
+
},
|
|
327
|
+
objectOfTrust: {
|
|
328
|
+
modes: ["blur"],
|
|
329
|
+
validate: (objectOfTrust) => !!objectOfTrust,
|
|
330
|
+
errorMessage: "fieldIsRequired"
|
|
331
|
+
},
|
|
332
|
+
hasDoingBusinessAs: validateNotEmptyOnBlur,
|
|
333
|
+
doingBusinessAs: validateNotEmptyOnBlur
|
|
334
|
+
};
|
|
335
|
+
var trustRegistrationDetailsValidationsV4 = {
|
|
336
|
+
trustType: {
|
|
337
|
+
modes: ["blur"],
|
|
338
|
+
validate: (trustType) => !!trustType,
|
|
339
|
+
errorMessage: "fieldIsRequired"
|
|
340
|
+
},
|
|
341
|
+
country: {
|
|
342
|
+
modes: ["blur"],
|
|
343
|
+
validate: (country) => !!country,
|
|
344
|
+
errorMessage: "fieldIsRequired"
|
|
345
|
+
},
|
|
346
|
+
legalName: [
|
|
347
|
+
{
|
|
348
|
+
modes: ["blur"],
|
|
349
|
+
validate: hasText,
|
|
350
|
+
errorMessage: "fieldIsRequired"
|
|
351
|
+
},
|
|
352
|
+
{
|
|
353
|
+
modes: ["blur"],
|
|
354
|
+
validate: (input) => !matchesRegex(NO_ALPHABET_REGEX, input),
|
|
355
|
+
errorMessage: "nameMustContainLetters"
|
|
356
|
+
},
|
|
357
|
+
{
|
|
358
|
+
modes: ["blur"],
|
|
359
|
+
validate: (input) => !matchesRegex(EMOJI_REGEX, input) && !hasRepeatedCharacters(input) && isValidMinLength(input, 3) && !isInvalidName(input) && matchesRegex(OTHER_ENTITIES_VALID_CHAR_REGEX, input),
|
|
360
|
+
errorMessage: "checkForTypos"
|
|
361
|
+
}
|
|
362
|
+
],
|
|
363
|
+
objectOfTrust: {
|
|
364
|
+
modes: ["blur"],
|
|
365
|
+
validate: (objectOfTrust) => !!objectOfTrust,
|
|
366
|
+
errorMessage: "fieldIsRequired"
|
|
367
|
+
},
|
|
368
|
+
hasDoingBusinessAs: validateNotEmptyOnBlur,
|
|
369
|
+
doingBusinessAs: validateNotEmptyOnBlur
|
|
370
|
+
};
|
|
371
|
+
//#endregion
|
|
372
|
+
//#region src/components/Trust/forms/TrustRegistrationDetails/TrustRegistrationDetails.tsx
|
|
373
|
+
var trustRegistrationDetailsFields = [
|
|
374
|
+
"legalName",
|
|
375
|
+
...DBA_NAME_FIELD,
|
|
376
|
+
"country",
|
|
377
|
+
"trustType",
|
|
378
|
+
"objectOfTrust",
|
|
379
|
+
...TAX_INFORMATION_FIELD,
|
|
380
|
+
...BUSINESS_REGISTRATION_NUMBER_FIELD,
|
|
381
|
+
...VAT_NUMBER_FIELD
|
|
382
|
+
];
|
|
383
|
+
var ALLOWED_TRUST_COUNTRIES$1 = [CountryCodes.Australia, CountryCodes.NewZealand];
|
|
384
|
+
function TrustRegistrationDetails(props) {
|
|
385
|
+
let mergedProps = props;
|
|
386
|
+
const TRUST_REGISTRATION_DETAILS = mergedProps.id || trustForms$1.trustRegistrationDetails.formId;
|
|
387
|
+
const { t: commonT } = useTranslation("common");
|
|
388
|
+
const { t: trustT } = useTranslation("trust");
|
|
389
|
+
const { isFeatureEnabled } = useToggleContext();
|
|
390
|
+
const { updateStateSlice, sliceData } = useGlobalDataSlice(TRUST_REGISTRATION_DETAILS);
|
|
391
|
+
const isStrictNameAndAddressValidationEnabled = isFeatureEnabled("StrictNameAndAddressValidationV4");
|
|
392
|
+
const { taskType } = props;
|
|
393
|
+
const isUnincorporatedPartnership = taskType === TaskTypes.UNINCORPORATED_PARTNERSHIP;
|
|
394
|
+
const country = sliceData?.country ?? mergedProps.country;
|
|
395
|
+
const defaultData = useMemo(() => ({
|
|
396
|
+
...mergedProps.data,
|
|
397
|
+
country
|
|
398
|
+
}), [country, mergedProps.data]);
|
|
399
|
+
const requiredFields = isEmpty$1(mergedProps.requiredFields) ? trustRegistrationDetailsFields : mergedProps.requiredFields;
|
|
400
|
+
mergedProps = mergeFieldMetadataIntoProps("hasDoingBusinessAs", doingBusinessAsAbsentFieldMetadata, mergedProps);
|
|
401
|
+
mergedProps = mergeFieldMetadataIntoProps("doingBusinessAs", doingBusinessAsFieldMetadata, mergedProps);
|
|
402
|
+
mergedProps = mergeFieldMetadataIntoProps("taxInformation", resolveFieldMetadata(taxInformationDefaultFieldConfig[country], {
|
|
403
|
+
taxIdNumberType: sliceData?.taxInformation?.find((taxId) => taxId.country === country)?.type,
|
|
404
|
+
companyType: LegalEntityTypes.TRUST
|
|
405
|
+
}, taxInformationDefaultFieldMetadata), mergedProps);
|
|
406
|
+
mergedProps = mergeFieldMetadataIntoProps("exemptedFromTax", resolveFieldMetadata(exemptedFromTaxDefaultFieldConfig[country], {}, exemptedFromTaxDefaultFieldMetadata), mergedProps);
|
|
407
|
+
mergedProps = mergeFieldMetadataIntoProps("registrationNumber", resolveFieldMetadata(registrationNumberDefaultFieldConfig[country], {
|
|
408
|
+
companyType: LegalEntityTypes.TRUST,
|
|
409
|
+
registrationNumberType: sliceData?.registrationNumberType ?? getDefaultRegistrationNumberType(sliceData?.registrationNumber, country, "trust")
|
|
410
|
+
}, registrationNumberDefaultFieldMetadata), mergedProps);
|
|
411
|
+
mergedProps = mergeFieldMetadataIntoProps("exemptedFromRegistrationNumber", resolveFieldMetadata(exemptFromRegistrationNumberDefaultFieldConfig[country], {}, exemptFromRegistrationNumberDefaultFieldMetadata), mergedProps);
|
|
412
|
+
mergedProps = mergeFieldMetadataIntoProps("vatNumber", resolveFieldMetadata(defaultFieldConfig[country], { vatNumberType: sliceData?.vatNumberType ?? getDefaultVatNumberType(sliceData?.vatNumber, country) }, defaultFieldMetadata), mergedProps);
|
|
413
|
+
mergedProps.validators = {
|
|
414
|
+
...mergedProps.validators,
|
|
415
|
+
legalName: isStrictNameAndAddressValidationEnabled ? trustRegistrationDetailsValidationsV4.legalName : trustRegistrationDetailsValidations.legalName
|
|
416
|
+
};
|
|
417
|
+
const getFormSchema = useCallback((currentData) => {
|
|
418
|
+
const fieldsToRemove = [];
|
|
419
|
+
if (!currentData.hasDoingBusinessAs) fieldsToRemove.push("doingBusinessAs");
|
|
420
|
+
return requiredFields.filter((field) => !fieldsToRemove.includes(field));
|
|
421
|
+
}, [requiredFields]);
|
|
422
|
+
const { handleChangeFor, data, valid, errors, setData, fieldProblems, schema } = useForm({
|
|
423
|
+
...mergedProps,
|
|
424
|
+
schema: getFormSchema,
|
|
425
|
+
defaultData,
|
|
426
|
+
rules: mergedProps.validators || (isStrictNameAndAddressValidationEnabled ? trustRegistrationDetailsValidationsV4 : trustRegistrationDetailsValidations),
|
|
427
|
+
fieldProblems: mergedProps.fieldValidationErrors
|
|
428
|
+
});
|
|
429
|
+
const formUtils = createFormUtils({
|
|
430
|
+
...mergedProps,
|
|
431
|
+
data: defaultData,
|
|
432
|
+
requiredFields,
|
|
433
|
+
fieldValidationErrors: mergedProps.fieldValidationErrors,
|
|
434
|
+
formVerificationErrors: mergedProps.formVerificationErrors
|
|
435
|
+
}, commonT);
|
|
436
|
+
useEffect(() => {
|
|
437
|
+
updateStateSlice({
|
|
438
|
+
schema,
|
|
439
|
+
data,
|
|
440
|
+
errors,
|
|
441
|
+
valid,
|
|
442
|
+
fieldProblems
|
|
443
|
+
});
|
|
444
|
+
}, [
|
|
445
|
+
data,
|
|
446
|
+
errors,
|
|
447
|
+
fieldProblems,
|
|
448
|
+
schema,
|
|
449
|
+
updateStateSlice,
|
|
450
|
+
valid
|
|
451
|
+
]);
|
|
452
|
+
const changeTrustType = (e) => {
|
|
453
|
+
handleChangeFor("trustType", "blur")(e);
|
|
454
|
+
if (e.target.value !== "charitableTrust") setData("objectOfTrust", void 0);
|
|
455
|
+
};
|
|
456
|
+
const trustTypeOptions = getCountrySpecificTrustTypeOptions(country) ?? [];
|
|
457
|
+
const showField = (field) => formUtils.isRequiredField(field) || formUtils.isOptionalField(field);
|
|
458
|
+
return /* @__PURE__ */ jsx(Fragment, { children: /* @__PURE__ */ jsxs("form", {
|
|
459
|
+
id: TRUST_REGISTRATION_DETAILS,
|
|
460
|
+
children: [
|
|
461
|
+
mergedProps.heading && /* @__PURE__ */ jsx(Header, { title: mergedProps.heading }),
|
|
462
|
+
/* @__PURE__ */ jsx(ErrorPanel, {
|
|
463
|
+
verificationErrors: mergedProps.formVerificationErrors,
|
|
464
|
+
validationErrors: mergedProps.fieldValidationErrors,
|
|
465
|
+
formUtils,
|
|
466
|
+
id: "ariaErrorField"
|
|
467
|
+
}),
|
|
468
|
+
!isUnincorporatedPartnership && /* @__PURE__ */ jsx(Alert, {
|
|
469
|
+
variant: "info",
|
|
470
|
+
title: /* @__PURE__ */ jsx(Typography, {
|
|
471
|
+
variant: "caption",
|
|
472
|
+
color: "secondary",
|
|
473
|
+
children: trustT(($) => $["makeSureToHaveYourTrustDeed"])
|
|
474
|
+
}),
|
|
475
|
+
className: "adyen-kyc-u-margin-bottom-16"
|
|
476
|
+
}),
|
|
477
|
+
formUtils.isRequiredField("country") && /* @__PURE__ */ jsx(CountryField, {
|
|
478
|
+
data: formUtils.getFieldData(data, COUNTRY_FIELD),
|
|
479
|
+
valid: formUtils.getFieldValid(valid, COUNTRY_FIELD),
|
|
480
|
+
errors: formUtils.getFieldErrors(errors, fieldProblems, COUNTRY_FIELD),
|
|
481
|
+
labels: formUtils.getFieldLabels(COUNTRY_FIELD, { country: "countryRegionOfEstablishment" }),
|
|
482
|
+
readonly: formUtils.isReadOnly("country"),
|
|
483
|
+
allowedCountries: isUnincorporatedPartnership ? ALLOWED_UNINCORPORATED_PARTNERSHIP_COUNTRIES : ALLOWED_TRUST_COUNTRIES$1,
|
|
484
|
+
handleChangeFor: () => (e) => {
|
|
485
|
+
handleChangeFor("country", "input")(e);
|
|
486
|
+
if (mergedProps.onCountryChange) mergedProps.onCountryChange(e);
|
|
487
|
+
}
|
|
488
|
+
}),
|
|
489
|
+
formUtils.isRequiredField("legalName") && /* @__PURE__ */ jsx(Field, {
|
|
490
|
+
name: "legalName",
|
|
491
|
+
label: formUtils.getLabel(!isUnincorporatedPartnership ? "nameOfTrustAgreement" : "legalName"),
|
|
492
|
+
errorMessage: formUtils.getErrorMessage("legalName", errors, fieldProblems),
|
|
493
|
+
isValid: valid.legalName,
|
|
494
|
+
children: (childProps) => /* @__PURE__ */ jsx(InputText, {
|
|
495
|
+
...childProps,
|
|
496
|
+
name: "legalName",
|
|
497
|
+
value: data.legalName,
|
|
498
|
+
readonly: formUtils.isReadOnly("legalName"),
|
|
499
|
+
onInput: handleChangeFor("legalName", "input"),
|
|
500
|
+
onBlur: handleChangeFor("legalName", "blur"),
|
|
501
|
+
"aria-required": true,
|
|
502
|
+
"aria-invalid": !valid.legalName
|
|
503
|
+
})
|
|
504
|
+
}),
|
|
505
|
+
formUtils.isRequiredField("hasDoingBusinessAs") && /* @__PURE__ */ jsx(DBANameField, {
|
|
506
|
+
data: formUtils.getFieldData(data, DBA_NAME_FIELD),
|
|
507
|
+
valid: formUtils.getFieldValid(valid, DBA_NAME_FIELD),
|
|
508
|
+
errors: formUtils.getFieldErrors(errors, fieldProblems, DBA_NAME_FIELD),
|
|
509
|
+
readonly: formUtils.isReadOnly("doingBusinessAs"),
|
|
510
|
+
handleChangeFor
|
|
511
|
+
}),
|
|
512
|
+
formUtils.isRequiredField("trustType") && !isUnincorporatedPartnership && /* @__PURE__ */ jsx(Field, {
|
|
513
|
+
name: "trustType",
|
|
514
|
+
label: formUtils.getLabel("trustType", "typeOfTrustAgreement"),
|
|
515
|
+
errorMessage: formUtils.getErrorMessage("trustType", errors, fieldProblems),
|
|
516
|
+
isValid: valid.trustType,
|
|
517
|
+
dataTestId: "trust-type",
|
|
518
|
+
children: (childProps) => /* @__PURE__ */ jsx(Select, {
|
|
519
|
+
...childProps,
|
|
520
|
+
name: "trustType",
|
|
521
|
+
onChange: changeTrustType,
|
|
522
|
+
selected: data.trustType,
|
|
523
|
+
items: trustTypeOptions.map((trust) => ({
|
|
524
|
+
id: trust,
|
|
525
|
+
name: trustT(($) => $[trust])
|
|
526
|
+
})),
|
|
527
|
+
placeholder: trustT(($) => $["trustType"])
|
|
528
|
+
})
|
|
529
|
+
}),
|
|
530
|
+
formUtils.isRequiredField("objectOfTrust") && /* @__PURE__ */ jsx(Field, {
|
|
531
|
+
name: "objectOfTrust",
|
|
532
|
+
label: formUtils.getLabel("objectOfCharitableTrust"),
|
|
533
|
+
helper: formUtils.getLabel("pleaseProvideThePurposeOfCharitableTrust"),
|
|
534
|
+
errorMessage: formUtils.getErrorMessage("objectOfTrust", errors, fieldProblems),
|
|
535
|
+
isValid: valid.objectOfTrust,
|
|
536
|
+
children: (childProps) => /* @__PURE__ */ jsx(InputText, {
|
|
537
|
+
...childProps,
|
|
538
|
+
name: "objectOfTrust",
|
|
539
|
+
value: data.objectOfTrust,
|
|
540
|
+
readonly: formUtils.isReadOnly("objectOfTrust"),
|
|
541
|
+
onInput: handleChangeFor("objectOfTrust", "input"),
|
|
542
|
+
onBlur: handleChangeFor("objectOfTrust", "blur"),
|
|
543
|
+
"aria-required": true,
|
|
544
|
+
"aria-invalid": !valid.objectOfTrust
|
|
545
|
+
})
|
|
546
|
+
}),
|
|
547
|
+
showField("taxInformation") && /* @__PURE__ */ jsx(TaxInformationField, {
|
|
548
|
+
data: formUtils.getFieldData(data, TAX_INFORMATION_FIELD),
|
|
549
|
+
valid: formUtils.getFieldValid(valid, TAX_INFORMATION_FIELD),
|
|
550
|
+
errors: formUtils.getFieldErrors(errors, fieldProblems, TAX_INFORMATION_FIELD),
|
|
551
|
+
labels: formUtils.getFieldLabels(TAX_INFORMATION_FIELD, { exemptedFromTax: "iDontHaveATaxId" }),
|
|
552
|
+
mask: formUtils.getMask("taxInformation"),
|
|
553
|
+
readonly: formUtils.isReadOnly("taxInformation"),
|
|
554
|
+
shouldValidate: mergedProps.shouldValidate,
|
|
555
|
+
handleChangeFor,
|
|
556
|
+
optional: formUtils.isOptionalField("taxInformation"),
|
|
557
|
+
canExempt: formUtils.isRequiredField("exemptedFromTax"),
|
|
558
|
+
country,
|
|
559
|
+
entityType: LegalEntityTypes.TRUST,
|
|
560
|
+
defaultData: mergedProps.data?.taxInformation,
|
|
561
|
+
registrationNumber: data.registrationNumber
|
|
562
|
+
}),
|
|
563
|
+
showField("registrationNumber") && /* @__PURE__ */ jsx(BusinessRegistrationNumberField, {
|
|
564
|
+
data: formUtils.getFieldData(data, BUSINESS_REGISTRATION_NUMBER_FIELD),
|
|
565
|
+
valid: formUtils.getFieldValid(valid, BUSINESS_REGISTRATION_NUMBER_FIELD),
|
|
566
|
+
errors: formUtils.getFieldErrors(errors, fieldProblems, BUSINESS_REGISTRATION_NUMBER_FIELD),
|
|
567
|
+
labels: formUtils.getFieldLabels(BUSINESS_REGISTRATION_NUMBER_FIELD, { exemptedFromRegistrationNumber: "iDontHaveARegistrationNumber" }),
|
|
568
|
+
mask: formUtils.getMask("registrationNumber"),
|
|
569
|
+
helperText: getRegistrationNumberHelperText(trustT, {
|
|
570
|
+
country,
|
|
571
|
+
companyType: LegalEntityTypes.TRUST
|
|
572
|
+
}),
|
|
573
|
+
readonly: formUtils.isReadOnly("registrationNumber"),
|
|
574
|
+
optional: formUtils.isOptionalField("registrationNumber"),
|
|
575
|
+
shouldValidate: mergedProps.shouldValidate,
|
|
576
|
+
handleChangeFor,
|
|
577
|
+
country,
|
|
578
|
+
canExempt: formUtils.isRequiredField("exemptedFromRegistrationNumber"),
|
|
579
|
+
companyType: LegalEntityTypes.TRUST
|
|
580
|
+
}),
|
|
581
|
+
showField("vatNumber") && /* @__PURE__ */ jsx(VatNumberField, {
|
|
582
|
+
data: formUtils.getFieldData(data, VAT_NUMBER_FIELD),
|
|
583
|
+
valid: formUtils.getFieldValid(valid, VAT_NUMBER_FIELD),
|
|
584
|
+
errors: formUtils.getFieldErrors(errors, fieldProblems, VAT_NUMBER_FIELD),
|
|
585
|
+
labels: formUtils.getFieldLabels(VAT_NUMBER_FIELD, { exemptedFromVat: "iDontHaveAVatNumber" }),
|
|
586
|
+
optional: formUtils.isOptionalField("vatNumber"),
|
|
587
|
+
readonly: formUtils.isReadOnly("vatNumber"),
|
|
588
|
+
handleChangeFor,
|
|
589
|
+
country,
|
|
590
|
+
canExempt: formUtils.isRequiredField("exemptedFromVat"),
|
|
591
|
+
shouldValidate: mergedProps.shouldValidate
|
|
592
|
+
})
|
|
593
|
+
]
|
|
594
|
+
}) });
|
|
595
|
+
}
|
|
596
|
+
//#endregion
|
|
597
|
+
//#region src/components/Trust/forms/Trust/Trust.tsx
|
|
598
|
+
var trustForms$1 = {
|
|
599
|
+
trustRegistrationDetails: {
|
|
600
|
+
formId: "trustRegistrationDetails",
|
|
601
|
+
formName: "registrationDetails",
|
|
602
|
+
fields: [...trustRegistrationDetailsFields]
|
|
603
|
+
},
|
|
604
|
+
trustRegistrationAddress: {
|
|
605
|
+
formId: "trustRegistrationAddress",
|
|
606
|
+
formName: "addressDetails",
|
|
607
|
+
fields: registrationAddressFields
|
|
608
|
+
},
|
|
609
|
+
trustConstitutionalDocument: {
|
|
610
|
+
formId: "trustConstitutionalDocument",
|
|
611
|
+
formName: "constitutionalDocument",
|
|
612
|
+
fields: ["constitutionalDocument"]
|
|
613
|
+
}
|
|
614
|
+
};
|
|
615
|
+
var trustRegistrationAddressFormId$1 = trustForms$1.trustRegistrationAddress.formId;
|
|
616
|
+
var trustRegistrationDetailsFormId$1 = trustForms$1.trustRegistrationDetails.formId;
|
|
617
|
+
var trustConstitutionalDocumentFormId$1 = trustForms$1.trustConstitutionalDocument.formId;
|
|
618
|
+
function Trust(props) {
|
|
619
|
+
const { t } = useTranslation(["common", "trust"]);
|
|
620
|
+
const { country, activeForm, taskType } = props;
|
|
621
|
+
const trustRegistrationDetailsFormProps = getFormProps(props, trustRegistrationDetailsFormId$1);
|
|
622
|
+
const trustRegistrationAddressFormProps = getNestedOuterFormPropsFromOuterFormProps(props, trustRegistrationAddressFormId$1);
|
|
623
|
+
const trustDocumentFormProps = getFormProps(props, trustConstitutionalDocumentFormId$1);
|
|
624
|
+
const isUnincorporatedPartnership = taskType === TaskTypes.UNINCORPORATED_PARTNERSHIP;
|
|
625
|
+
const renderActiveForm = (activeForm) => /* @__PURE__ */ jsxs("div", { children: [
|
|
626
|
+
/* @__PURE__ */ jsx("div", {
|
|
627
|
+
className: activeForm.formId !== trustRegistrationDetailsFormId$1 ? "adyen-kyc-form-wrapper adyen-kyc-form-wrapper--hidden" : "adyen-kyc-form-wrapper",
|
|
628
|
+
children: /* @__PURE__ */ jsx(TrustRegistrationDetails, {
|
|
629
|
+
...trustRegistrationDetailsFormProps,
|
|
630
|
+
heading: t(($) => $["registrationDetails"]),
|
|
631
|
+
id: trustRegistrationDetailsFormId$1,
|
|
632
|
+
country,
|
|
633
|
+
taskType
|
|
634
|
+
})
|
|
635
|
+
}),
|
|
636
|
+
/* @__PURE__ */ jsx("div", {
|
|
637
|
+
className: activeForm.formId !== trustRegistrationAddressFormId$1 ? "adyen-kyc-form-wrapper adyen-kyc-form-wrapper--hidden" : "adyen-kyc-form-wrapper",
|
|
638
|
+
children: /* @__PURE__ */ jsx(RegistrationAddress, {
|
|
639
|
+
...trustRegistrationAddressFormProps,
|
|
640
|
+
heading: t(($) => $["addressDetails"]),
|
|
641
|
+
description: !isUnincorporatedPartnership ? t(($) => $["registeredAddressTrustHeaderDescription"], { ns: "trust" }) : t(($) => $["registeredAddressUnincorporatedPartnershipHeaderDescription"], { ns: "trust" }),
|
|
642
|
+
id: trustRegistrationAddressFormId$1,
|
|
643
|
+
country,
|
|
644
|
+
problems: props?.problems,
|
|
645
|
+
labels: { operationalAddressIsSame: !isUnincorporatedPartnership ? "isTrustOperationAddressSame" : "isPartnershipOperationAddressSame" }
|
|
646
|
+
})
|
|
647
|
+
}),
|
|
648
|
+
/* @__PURE__ */ jsx("div", {
|
|
649
|
+
className: activeForm.formId !== trustConstitutionalDocumentFormId$1 ? "adyen-kyc-form-wrapper adyen-kyc-form-wrapper--hidden" : "adyen-kyc-form-wrapper",
|
|
650
|
+
children: /* @__PURE__ */ jsx(MemoizedConstitutionalDocument, {
|
|
651
|
+
...trustDocumentFormProps,
|
|
652
|
+
id: trustConstitutionalDocumentFormId$1,
|
|
653
|
+
legalEntityType: isUnincorporatedPartnership ? LegalEntityTypes.UNINCORPORATED_PARTNERSHIP : LegalEntityTypes.TRUST,
|
|
654
|
+
country
|
|
655
|
+
})
|
|
656
|
+
})
|
|
657
|
+
] });
|
|
658
|
+
return /* @__PURE__ */ jsx("div", { children: renderActiveForm(activeForm || trustForms$1.trustRegistrationDetails) });
|
|
659
|
+
}
|
|
660
|
+
//#endregion
|
|
661
|
+
//#region src/components/Trust/mapping/mapLegalEntityToTrust.ts
|
|
662
|
+
var mapLegalEntityToTrust = (legalEntity, isFeatureEnabled) => {
|
|
663
|
+
if (!legalEntity.trust) throw new Error("LE missing trust field");
|
|
664
|
+
let trustCompData = formatObject(legalEntity, trustComponentsKeyMapping);
|
|
665
|
+
if (!trustCompData?.trustRegistrationDetails) return {};
|
|
666
|
+
trustCompData.trustRegistrationDetails.vatNumberType = getDefaultVatNumberType(legalEntity.trust.vatNumber, legalEntity.trust.countryOfGoverningLaw);
|
|
667
|
+
trustCompData.trustRegistrationDetails.registrationNumberType = getDefaultRegistrationNumberType(legalEntity.trust.registrationNumber, legalEntity.trust.countryOfGoverningLaw, LegalEntityTypes.TRUST);
|
|
668
|
+
trustCompData.trustRegistrationDetails.country = legalEntity.trust.countryOfGoverningLaw;
|
|
669
|
+
if (legalEntity.trust.description) trustCompData.trustRegistrationDetails.objectOfTrust = legalEntity.trust.description;
|
|
670
|
+
if (legalEntity.trust.principalPlaceOfBusiness) trustCompData.trustRegistrationAddress.operationalAddressIsSame = operationalAddressIsSameIds.OPERATIONAL_ADDRESS_IS_NOT_SAME;
|
|
671
|
+
else {
|
|
672
|
+
if (!trustCompData.trustRegistrationAddress) trustCompData.trustRegistrationAddress = {};
|
|
673
|
+
trustCompData.trustRegistrationAddress.operationalAddressIsSame = operationalAddressIsSameIds.OPERATIONAL_ADDRESS_IS_SAME;
|
|
674
|
+
}
|
|
675
|
+
if (legalEntity.trust.taxInformation?.length) {
|
|
676
|
+
const { country } = legalEntity.trust.registeredAddress;
|
|
677
|
+
const countryTaxInformation = legalEntity.trust.taxInformation.find((info) => info.country === country);
|
|
678
|
+
if (countryTaxInformation?.type === "UEN") trustCompData.trustRegistrationDetails.isUen = true;
|
|
679
|
+
if (countryTaxInformation?.type === "GST") trustCompData.trustRegistrationDetails.isUen = false;
|
|
680
|
+
const taxNumberAbsent = countryTaxInformation?.numberAbsent;
|
|
681
|
+
if (taxNumberAbsent !== void 0) trustCompData.trustRegistrationDetails.exemptedFromTax = taxNumberAbsent;
|
|
682
|
+
}
|
|
683
|
+
if (legalEntity.documentDetails?.length) trustCompData = {
|
|
684
|
+
...trustCompData,
|
|
685
|
+
...mapApiDocumentToTrustDocument(legalEntity?.id)
|
|
686
|
+
};
|
|
687
|
+
if (isFeatureEnabled("EnableDoingBusinessAsNameV4")) {
|
|
688
|
+
if (typeof trustCompData.trustRegistrationDetails?.hasDoingBusinessAs === "boolean") {
|
|
689
|
+
trustCompData.trustRegistrationDetails.hasDoingBusinessAs = !legalEntity.trust.doingBusinessAsAbsent;
|
|
690
|
+
if (!trustCompData.trustRegistrationDetails.hasDoingBusinessAs) delete legalEntity.trust?.doingBusinessAs;
|
|
691
|
+
}
|
|
692
|
+
} else {
|
|
693
|
+
trustCompData.trustRegistrationDetails.hasDoingBusinessAs = legalEntity.trust.doingBusinessAs ? legalEntity.trust.doingBusinessAs !== legalEntity.trust.name : void 0;
|
|
694
|
+
trustCompData.trustRegistrationDetails.doingBusinessAs = legalEntity.trust.doingBusinessAs;
|
|
695
|
+
}
|
|
696
|
+
return trustCompData;
|
|
697
|
+
};
|
|
698
|
+
//#endregion
|
|
699
|
+
//#region src/components/Trust/mapping/mapTrustDocumentToApiDocument.ts
|
|
700
|
+
var mapTrustDocumentToApiDocument = async (data, entityId) => {
|
|
701
|
+
const constitutionalDocument = data?.trustConstitutionalDocument?.constitutionalDocument;
|
|
702
|
+
if (!constitutionalDocument) throw new Error("Constitutional document missing");
|
|
703
|
+
const page1 = constitutionalDocument[0];
|
|
704
|
+
if (!page1) throw new Error("Document needs at least one page");
|
|
705
|
+
return await createDocumentRequest({
|
|
706
|
+
entityId,
|
|
707
|
+
entityType: "legalEntity",
|
|
708
|
+
documentType: "constitutionalDocument",
|
|
709
|
+
page1,
|
|
710
|
+
existingDocument: getDocument(entityId, "constitutionalDocument")
|
|
711
|
+
});
|
|
712
|
+
};
|
|
713
|
+
//#endregion
|
|
714
|
+
//#region src/components/Trust/mapping/mapTrustToLegalEntity.ts
|
|
715
|
+
var mapTrustToLegalEntity = (data, isFeatureEnabled) => {
|
|
716
|
+
const requestObj = { ...formatObject(data, trustApiKeyMapping) };
|
|
717
|
+
if (!requestObj.trust) return requestObj;
|
|
718
|
+
if (data.trustRegistrationDetails?.objectOfTrust) requestObj.trust.description = data.trustRegistrationDetails.objectOfTrust;
|
|
719
|
+
if (isFeatureEnabled("EnableDoingBusinessAsNameV4")) {
|
|
720
|
+
requestObj.trust.doingBusinessAsAbsent = typeof data.trustRegistrationDetails?.hasDoingBusinessAs !== "undefined" ? !data.trustRegistrationDetails?.hasDoingBusinessAs : void 0;
|
|
721
|
+
if (requestObj.trust.doingBusinessAsAbsent) requestObj.trust.doingBusinessAs = "";
|
|
722
|
+
} else {
|
|
723
|
+
delete requestObj.trust?.doingBusinessAsAbsent;
|
|
724
|
+
requestObj.trust.doingBusinessAs = data.trustRegistrationDetails?.doingBusinessAs || data.trustRegistrationDetails?.legalName;
|
|
725
|
+
}
|
|
726
|
+
requestObj.type = LegalEntityTypes.TRUST;
|
|
727
|
+
return requestObj;
|
|
728
|
+
};
|
|
729
|
+
//#endregion
|
|
730
|
+
//#region src/components/Trust/tasks/TrustDropin/mandatoryFields.ts
|
|
731
|
+
var MANDATORY_FIELDS_TRUST = ["trustRegistrationDetails.legalName", "trustRegistrationDetails.country"];
|
|
732
|
+
//#endregion
|
|
733
|
+
//#region src/components/Trust/tasks/TrustDropin/trustFormConfig.ts
|
|
734
|
+
var trustBase = {
|
|
735
|
+
trustType: { rule: "requiresTrustType" },
|
|
736
|
+
objectOfTrust: { rule: "trustTypeHasDescription" },
|
|
737
|
+
legalName: { rule: "REQUIRED" },
|
|
738
|
+
hasDoingBusinessAs: { rule: "REQUIRED" },
|
|
739
|
+
doingBusinessAs: { rule: "requireDoingBusinessAsName" },
|
|
740
|
+
country: { rule: "REQUIRED" },
|
|
741
|
+
taxInformation: { rule: "countryUsesTaxId" },
|
|
742
|
+
registrationAddress: { rule: "REQUIRED" },
|
|
743
|
+
operationalAddress: { rule: "OPTIONAL" },
|
|
744
|
+
constitutionalDocument: { rule: "REQUIRED" },
|
|
745
|
+
registrationNumber: { rule: "countryRequiresRegistrationNumberForTrust" },
|
|
746
|
+
registrationNumberType: { rule: "registrationNumberType" },
|
|
747
|
+
vatNumber: { rule: "countryUsesVatNumber" },
|
|
748
|
+
vatNumberType: { rule: "countryUsesVatNumber" },
|
|
749
|
+
operationalAddressIsSame: { rule: "REQUIRED" }
|
|
750
|
+
};
|
|
751
|
+
var trustFieldsPerScenario = {
|
|
752
|
+
L0: { ...trustBase },
|
|
753
|
+
L1: { ...trustBase },
|
|
754
|
+
L: { ...trustBase }
|
|
755
|
+
};
|
|
756
|
+
var trustCountryConfig = {};
|
|
757
|
+
//#endregion
|
|
758
|
+
//#region src/components/Trust/tasks/TrustDropin/TrustDropin.tsx
|
|
759
|
+
var parseTrustScenarios$1 = (scenarios, country) => augmentWithCountryConfigs(trustCountryConfig[country], composePerScenarioFormConfigurations(scenarios, trustFieldsPerScenario));
|
|
760
|
+
var parseConfiguration$1 = ({ scenarios, country }) => parseTrustScenarios$1(scenarios, country);
|
|
761
|
+
function TrustDropin({ parentLegalEntity, capabilities, country: countryProp, existingTrust, taskType, problems: problemsProp, onSubmit: externalOnSubmit, onChange, hideSidebar, handleHomeClick }) {
|
|
762
|
+
const { state: { currentState } } = useStateContext();
|
|
763
|
+
const formValidity = currentState.validityByForm;
|
|
764
|
+
useEffect(() => {
|
|
765
|
+
onChange?.(currentState);
|
|
766
|
+
}, [currentState, onChange]);
|
|
767
|
+
const { baseUrl, rootLegalEntityId } = useApiContext();
|
|
768
|
+
const { t, i18n } = useTranslation(["common", "trust"]);
|
|
769
|
+
const [validationErrors, setValidationErrors] = useState();
|
|
770
|
+
const datasetUtils = datasetUtilities(i18n.language);
|
|
771
|
+
const { isFeatureEnabled } = useToggleContext();
|
|
772
|
+
const { showToast } = useToastContext();
|
|
773
|
+
const [loadingStatus, setLoadingStatus] = useState("success");
|
|
774
|
+
const isUnincorporatedPartnership = taskType === TaskTypes.UNINCORPORATED_PARTNERSHIP;
|
|
775
|
+
const problems = useMemo(() => ({
|
|
776
|
+
...problemsProp,
|
|
777
|
+
validationErrors
|
|
778
|
+
}), [problemsProp, validationErrors]);
|
|
779
|
+
const trustData = useMemo(() => {
|
|
780
|
+
if (!existingTrust) return {};
|
|
781
|
+
return isUnincorporatedPartnership ? mapLegalEntityToUnincorporatedPartnership(existingTrust, isFeatureEnabled) : mapLegalEntityToTrust(existingTrust, isFeatureEnabled);
|
|
782
|
+
}, [
|
|
783
|
+
isFeatureEnabled,
|
|
784
|
+
existingTrust,
|
|
785
|
+
isUnincorporatedPartnership
|
|
786
|
+
]);
|
|
787
|
+
const currentCountry = useMemo(() => currentState.data.trustRegistrationDetails?.country ?? countryProp, [countryProp, currentState.data.trustRegistrationDetails?.country]);
|
|
788
|
+
const [initialData, setInitialData] = useState(trustData);
|
|
789
|
+
/**
|
|
790
|
+
* Analytics
|
|
791
|
+
*/
|
|
792
|
+
useTaskLandedEvent(taskType);
|
|
793
|
+
useEffect(() => {
|
|
794
|
+
if (!existingTrust?.documentDetails?.length) return;
|
|
795
|
+
try {
|
|
796
|
+
documentUtils.fetchDocuments(existingTrust.documentDetails, existingTrust.id).then(() => {
|
|
797
|
+
const mappedDocuments = mapApiDocumentToTrustDocument(existingTrust.id);
|
|
798
|
+
setInitialData({
|
|
799
|
+
...initialData,
|
|
800
|
+
...mappedDocuments
|
|
801
|
+
});
|
|
802
|
+
}).catch(() => {
|
|
803
|
+
showToast({
|
|
804
|
+
label: t(($) => $["failedToFetchRelevantDocuments"]),
|
|
805
|
+
variant: "error"
|
|
806
|
+
});
|
|
807
|
+
});
|
|
808
|
+
} catch {
|
|
809
|
+
showToast({
|
|
810
|
+
label: t(($) => $["failedToFetchRelevantDocuments"]),
|
|
811
|
+
variant: "error"
|
|
812
|
+
});
|
|
813
|
+
}
|
|
814
|
+
}, []);
|
|
815
|
+
/**
|
|
816
|
+
* Fetch Configurations
|
|
817
|
+
*/
|
|
818
|
+
const { fieldConfigurations, requiredFields } = useScenarioConfiguration({
|
|
819
|
+
parseConfiguration: parseConfiguration$1,
|
|
820
|
+
legalEntityType: LegalEntityTypes.TRUST,
|
|
821
|
+
setLoadingStatus,
|
|
822
|
+
country: currentCountry
|
|
823
|
+
});
|
|
824
|
+
const fieldsFromCustomRules = useMemo(() => rules({
|
|
825
|
+
data: currentState.data,
|
|
826
|
+
country: currentCountry,
|
|
827
|
+
taskType,
|
|
828
|
+
requiredFields,
|
|
829
|
+
isFeatureEnabled
|
|
830
|
+
}), [
|
|
831
|
+
currentCountry,
|
|
832
|
+
currentState.data,
|
|
833
|
+
taskType,
|
|
834
|
+
requiredFields,
|
|
835
|
+
isFeatureEnabled
|
|
836
|
+
]);
|
|
837
|
+
const derivedProps = useMemo(() => getPropsFromConfigurations({
|
|
838
|
+
scenarioConfiguration: fieldConfigurations,
|
|
839
|
+
forms: trustForms$1,
|
|
840
|
+
remediationActions: problems?.remediationActions ? Object.values(problems?.remediationActions) : [],
|
|
841
|
+
dataMissingErrors: problems?.missingData ?? [],
|
|
842
|
+
fieldsWithExistingData: existingTrust ? getFieldsWithExistingData(existingTrust, trustApiKeyMapping, trustDocumentMapping) : [],
|
|
843
|
+
customRules: fieldsFromCustomRules,
|
|
844
|
+
legalEntityType: existingTrust?.type
|
|
845
|
+
}), [
|
|
846
|
+
fieldConfigurations,
|
|
847
|
+
problems?.remediationActions,
|
|
848
|
+
problems?.missingData,
|
|
849
|
+
existingTrust,
|
|
850
|
+
fieldsFromCustomRules
|
|
851
|
+
]);
|
|
852
|
+
const forms = useMemo(() => {
|
|
853
|
+
return addValidityToForms(getRequiredForms(trustForms$1, derivedProps?.requiredFields, derivedProps?.optionalFields), formValidity, problems);
|
|
854
|
+
}, [
|
|
855
|
+
derivedProps,
|
|
856
|
+
formValidity,
|
|
857
|
+
problems
|
|
858
|
+
]);
|
|
859
|
+
const onSubmitTrust = async () => {
|
|
860
|
+
setLoadingStatus("loading");
|
|
861
|
+
const trustDetails = mapTrustToLegalEntity(currentState.data, isFeatureEnabled);
|
|
862
|
+
try {
|
|
863
|
+
const updatedTrust = await submitTrustDetails(trustDetails);
|
|
864
|
+
await submitDocuments({
|
|
865
|
+
forms,
|
|
866
|
+
legalEntity: updatedTrust,
|
|
867
|
+
dataSubmitted: currentState.data
|
|
868
|
+
});
|
|
869
|
+
await attachTrustToParentLegalEntity(updatedTrust);
|
|
870
|
+
setLoadingStatus("success");
|
|
871
|
+
showToast({
|
|
872
|
+
label: t(($) => $["successfullyUpdatedDetails"]),
|
|
873
|
+
variant: "success"
|
|
874
|
+
});
|
|
875
|
+
externalOnSubmit?.(currentState.data);
|
|
876
|
+
} catch (e) {
|
|
877
|
+
showToast({
|
|
878
|
+
label: t(($) => $["failedToUpdateDetails"]),
|
|
879
|
+
variant: "error"
|
|
880
|
+
});
|
|
881
|
+
if (isValidationError(e)) setValidationErrors(processValidationErrors(e, taskType));
|
|
882
|
+
else if (isMaintenanceModeError(e)) showToast({
|
|
883
|
+
label: t(($) => $["maintenanceModeMessage"]),
|
|
884
|
+
variant: "error",
|
|
885
|
+
duration: "indefinite"
|
|
886
|
+
});
|
|
887
|
+
setLoadingStatus("success");
|
|
888
|
+
}
|
|
889
|
+
};
|
|
890
|
+
const onSubmitUnincorporatedPartnership = async () => {
|
|
891
|
+
setLoadingStatus("loading");
|
|
892
|
+
const unincorporatedPartnershipDetails = mapUnincorporatedPartnershipToLegalEntity(currentState.data, isFeatureEnabled);
|
|
893
|
+
try {
|
|
894
|
+
const updatedUnincorporatedPartnershipDetails = await submitTrustDetails(unincorporatedPartnershipDetails);
|
|
895
|
+
await submitDocuments({
|
|
896
|
+
forms,
|
|
897
|
+
legalEntity: updatedUnincorporatedPartnershipDetails,
|
|
898
|
+
dataSubmitted: currentState.data
|
|
899
|
+
});
|
|
900
|
+
await attachTrustToParentLegalEntity(updatedUnincorporatedPartnershipDetails);
|
|
901
|
+
setLoadingStatus("success");
|
|
902
|
+
showToast({
|
|
903
|
+
label: t(($) => $["successfullyUpdatedDetails"]),
|
|
904
|
+
variant: "success"
|
|
905
|
+
});
|
|
906
|
+
externalOnSubmit?.(currentState.data);
|
|
907
|
+
} catch (e) {
|
|
908
|
+
showToast({
|
|
909
|
+
label: t(($) => $["failedToUpdateDetails"]),
|
|
910
|
+
variant: "error"
|
|
911
|
+
});
|
|
912
|
+
if (isValidationError(e)) setValidationErrors(processValidationErrors(e, taskType));
|
|
913
|
+
else if (isMaintenanceModeError(e)) showToast({
|
|
914
|
+
label: t(($) => $["maintenanceModeMessage"]),
|
|
915
|
+
variant: "error",
|
|
916
|
+
duration: "indefinite"
|
|
917
|
+
});
|
|
918
|
+
setLoadingStatus("success");
|
|
919
|
+
}
|
|
920
|
+
};
|
|
921
|
+
const { mutateAsync: createLegalEntity } = useCreateLegalEntity();
|
|
922
|
+
const { mutateAsync: updateLegalEntity } = useUpdateLegalEntity();
|
|
923
|
+
const submitTrustDetails = async (legalEntity) => {
|
|
924
|
+
if (!existingTrust) return await createLegalEntity(legalEntity);
|
|
925
|
+
else return await updateLegalEntity({
|
|
926
|
+
...drop("type").from(legalEntity),
|
|
927
|
+
id: existingTrust.id
|
|
928
|
+
});
|
|
929
|
+
};
|
|
930
|
+
const documentUtils = documentApiUtils({
|
|
931
|
+
baseUrl: baseUrl.value,
|
|
932
|
+
rootLegalEntityId: rootLegalEntityId.value
|
|
933
|
+
});
|
|
934
|
+
const submitDocuments = async ({ forms, legalEntity, dataSubmitted }) => {
|
|
935
|
+
if (isDocumentsRequired(forms)) {
|
|
936
|
+
const formattedDocument = await mapTrustDocumentToApiDocument(dataSubmitted, legalEntity.id);
|
|
937
|
+
if (formattedDocument) await documentUtils.uploadDocuments([formattedDocument], legalEntity.id);
|
|
938
|
+
}
|
|
939
|
+
};
|
|
940
|
+
const isDocumentsRequired = (forms) => forms.some((form) => form.formId === trustForms$1.trustConstitutionalDocument.formId);
|
|
941
|
+
const attachTrustToParentLegalEntity = async (trust) => {
|
|
942
|
+
if (existingTrust?.id) return;
|
|
943
|
+
const existingEntityAssociations = getOwnEntityAssociations(parentLegalEntity);
|
|
944
|
+
await updateLegalEntity({
|
|
945
|
+
entityAssociations: [{
|
|
946
|
+
type: trust.type,
|
|
947
|
+
legalEntityId: trust.id
|
|
948
|
+
}, ...existingEntityAssociations],
|
|
949
|
+
id: parentLegalEntity.id
|
|
950
|
+
});
|
|
951
|
+
};
|
|
952
|
+
const formatDataForSummary = (formData, forms) => {
|
|
953
|
+
let summaryData = cloneObject(formData) || {};
|
|
954
|
+
const country = formData.trustRegistrationDetails?.country ?? (existingTrust ? getLegalEntityCountry(existingTrust) : getLegalEntityCountry(parentLegalEntity));
|
|
955
|
+
if (formData.trustRegistrationDetails) {
|
|
956
|
+
const trustCountry = formData.trustRegistrationDetails.country && datasetUtils.getCountryName(formData.trustRegistrationDetails.country);
|
|
957
|
+
const trustType = formData.trustRegistrationDetails.trustType && t(($) => $[formData.trustRegistrationDetails.trustType], { ns: "trust" });
|
|
958
|
+
const registrationNumberLabel = resolveFieldMetadata(registrationNumberDefaultFieldConfig[country], {
|
|
959
|
+
companyType: LegalEntityTypes.TRUST,
|
|
960
|
+
registrationNumberType: formData.trustRegistrationDetails.registrationNumber ? inferCompanyRegistrationNumberType(formData.trustRegistrationDetails.registrationNumber, country, LegalEntityTypes.TRUST) : getCompanyRegistrationNumberOptions(country, LegalEntityTypes.TRUST)?.[0]?.id
|
|
961
|
+
}, registrationNumberDefaultFieldMetadata).label;
|
|
962
|
+
const taxIdLabel = resolveFieldMetadata(taxInformationDefaultFieldConfig[country], {
|
|
963
|
+
companyType: LegalEntityTypes.TRUST,
|
|
964
|
+
taxIdNumberType: countryToTaxInfoTypeMap[country]
|
|
965
|
+
}, taxInformationDefaultFieldMetadata).label;
|
|
966
|
+
summaryData.trustRegistrationDetails = {
|
|
967
|
+
[isUnincorporatedPartnership ? "legalName" : "nameOfTrustAgreement"]: formData.trustRegistrationDetails?.legalName,
|
|
968
|
+
doingBusinessAs: formData.trustRegistrationDetails?.doingBusinessAs,
|
|
969
|
+
countryRegionOfEstablishment: trustCountry,
|
|
970
|
+
typeOfTrustAgreement: isUnincorporatedPartnership ? void 0 : trustType,
|
|
971
|
+
objectOfTrust: formData.trustRegistrationDetails?.objectOfTrust,
|
|
972
|
+
[taxIdLabel]: formData.trustRegistrationDetails?.taxInformation?.find((taxId) => country === taxId.country)?.number,
|
|
973
|
+
[registrationNumberLabel]: formData.trustRegistrationDetails.registrationNumber
|
|
974
|
+
};
|
|
975
|
+
}
|
|
976
|
+
if (formData.trustRegistrationAddress?.registrationAddress) {
|
|
977
|
+
summaryData.trustRegistrationAddress.hasInnerForms = true;
|
|
978
|
+
summaryData.trustRegistrationAddress.registrationAddress = mapAddressLabels(formData.trustRegistrationAddress.registrationAddress, datasetUtils);
|
|
979
|
+
}
|
|
980
|
+
if (formData.trustRegistrationAddress?.operationalAddress) summaryData.trustRegistrationAddress.operationalAddress = mapAddressLabels(formData.trustRegistrationAddress.operationalAddress, datasetUtils);
|
|
981
|
+
if (isDocumentsRequired(forms)) summaryData = {
|
|
982
|
+
...summaryData,
|
|
983
|
+
...formatFileSummaryData(formData.trustConstitutionalDocument)
|
|
984
|
+
};
|
|
985
|
+
else delete summaryData[trustConstitutionalDocumentFormId$1];
|
|
986
|
+
return summaryData;
|
|
987
|
+
};
|
|
988
|
+
const formatFileSummaryData = (trustConstitutionalDocument) => {
|
|
989
|
+
const constitutionalDocument = trustConstitutionalDocument?.constitutionalDocument?.[0];
|
|
990
|
+
return { ...constitutionalDocument && { trustConstitutionalDocument: { fileName: constitutionalDocument.name } } };
|
|
991
|
+
};
|
|
992
|
+
const canSubmit = (formData) => MANDATORY_FIELDS_TRUST.every((detail) => {
|
|
993
|
+
return !isEmpty(getProp(formData, detail));
|
|
994
|
+
});
|
|
995
|
+
const { handleNextClick, handleBackClick, activeForm, shouldValidate, setShouldValidate, gotoFormByFormIndex, gotoFormByFormId, steps } = useFormComposer({
|
|
996
|
+
problems,
|
|
997
|
+
forms,
|
|
998
|
+
onSubmit: isUnincorporatedPartnership ? onSubmitUnincorporatedPartnership : onSubmitTrust
|
|
999
|
+
});
|
|
1000
|
+
return /* @__PURE__ */ jsx(FormWrapper, {
|
|
1001
|
+
taskName: isUnincorporatedPartnership ? "unincorporatedDetails" : "trustDetails",
|
|
1002
|
+
handleNextClick,
|
|
1003
|
+
handleBackClick,
|
|
1004
|
+
gotoFormByFormIndex,
|
|
1005
|
+
gotoFormByFormId,
|
|
1006
|
+
loadingStatus,
|
|
1007
|
+
forms,
|
|
1008
|
+
activeForm,
|
|
1009
|
+
onSubmit: isUnincorporatedPartnership ? onSubmitUnincorporatedPartnership : onSubmitTrust,
|
|
1010
|
+
hideSidebar,
|
|
1011
|
+
handleHomeClick,
|
|
1012
|
+
validateForm: () => setShouldValidate(true),
|
|
1013
|
+
canSubmit: canSubmit(currentState.data) && hasDataChanged(initialData, currentState.data),
|
|
1014
|
+
problems,
|
|
1015
|
+
summary: {
|
|
1016
|
+
data: formatDataForSummary(currentState.data, forms),
|
|
1017
|
+
omitted: { keys: ["operationalAddressIsSame"] }
|
|
1018
|
+
},
|
|
1019
|
+
steps,
|
|
1020
|
+
children: /* @__PURE__ */ jsx(Trust, {
|
|
1021
|
+
...derivedProps,
|
|
1022
|
+
activeForm,
|
|
1023
|
+
capabilities,
|
|
1024
|
+
data: initialData,
|
|
1025
|
+
country: currentCountry,
|
|
1026
|
+
problems,
|
|
1027
|
+
shouldValidate,
|
|
1028
|
+
taskType
|
|
1029
|
+
})
|
|
1030
|
+
});
|
|
1031
|
+
}
|
|
1032
|
+
//#endregion
|
|
1033
|
+
//#region src/components/Shared/forms/RegistrationAddress/RegistrationAddressMultiform.tsx
|
|
1034
|
+
var registrationAddressFormID = {
|
|
1035
|
+
registrationAddress: {
|
|
1036
|
+
formId: "registrationAddress",
|
|
1037
|
+
formName: "registeredAddress",
|
|
1038
|
+
fields: ["address"]
|
|
1039
|
+
},
|
|
1040
|
+
operationalAddress: {
|
|
1041
|
+
formId: "operationalAddress",
|
|
1042
|
+
formName: "operationalAddressHeader",
|
|
1043
|
+
fields: ["address"]
|
|
1044
|
+
}
|
|
1045
|
+
}.registrationAddress.formId;
|
|
1046
|
+
function RegistrationAddressMultiform(props) {
|
|
1047
|
+
const { t } = useTranslation("common");
|
|
1048
|
+
const { id, heading, description, country, problems } = props;
|
|
1049
|
+
const { form } = useFormContext();
|
|
1050
|
+
const data = form.data.trustRegistrationAddress;
|
|
1051
|
+
const { requiredFields: registrationAddressRequiredFields, optionalFields: registrationAddressOptionalFields, readOnlyFields: registrationAddressReadOnlyFields, obscuredFields: registrationAddressObscuredFields, verifyFields: registrationAddressVerifyFields, trustedFields: registrationAddressTrustedFields } = getFormProps(props, registrationAddressFormID);
|
|
1052
|
+
const formUtils = createFormUtils({
|
|
1053
|
+
...props,
|
|
1054
|
+
requiredFields: registrationAddressRequiredFields,
|
|
1055
|
+
optionalFields: registrationAddressOptionalFields,
|
|
1056
|
+
readOnlyFields: registrationAddressReadOnlyFields,
|
|
1057
|
+
obscuredFields: registrationAddressObscuredFields,
|
|
1058
|
+
verifyFields: registrationAddressVerifyFields,
|
|
1059
|
+
trustedFields: registrationAddressTrustedFields
|
|
1060
|
+
}, t);
|
|
1061
|
+
const isOperationAddressNotSame = () => data?.operationalAddressIsSame === operationalAddressIsSameIds.OPERATIONAL_ADDRESS_IS_NOT_SAME;
|
|
1062
|
+
const registrationAddressValidRef = useRef(Boolean(form.valid.trustRegistrationAddress?.registrationAddress));
|
|
1063
|
+
const operationalAddressValidRef = useRef(Boolean(form.valid.trustRegistrationAddress?.operationalAddress));
|
|
1064
|
+
useEffect(() => {
|
|
1065
|
+
if (form.valid.trustRegistrationAddress?.registrationAddress !== registrationAddressValidRef.current) form.setValid("registrationAddress", registrationAddressValidRef.current, "trustRegistrationAddress");
|
|
1066
|
+
if (isOperationAddressNotSame() && form.valid.trustRegistrationAddress?.operationalAddress !== operationalAddressValidRef.current) form.setValid("operationalAddress", operationalAddressValidRef.current, "trustRegistrationAddress");
|
|
1067
|
+
}, [form.valid.trustRegistrationAddress]);
|
|
1068
|
+
const handleChangeFor = useCallback((fieldName, mode) => form.handleChangeFor(fieldName, "trustRegistrationAddress", mode), [form]);
|
|
1069
|
+
const handleRegistrationAddressChange = (state) => {
|
|
1070
|
+
handleChangeFor("registrationAddress")(state.data);
|
|
1071
|
+
registrationAddressValidRef.current = Boolean(state.isValid);
|
|
1072
|
+
};
|
|
1073
|
+
const handleOperationalAddressChange = (state) => {
|
|
1074
|
+
handleChangeFor("operationalAddress")(state.data);
|
|
1075
|
+
operationalAddressValidRef.current = Boolean(state.isValid);
|
|
1076
|
+
};
|
|
1077
|
+
const handleOperationalAddressIsSameChange = (value) => {
|
|
1078
|
+
handleChangeFor("operationalAddressIsSame")(value);
|
|
1079
|
+
if (value === "OperationAddressAnswerYes") form.setValid("operationalAddress", true, "trustRegistrationAddress");
|
|
1080
|
+
};
|
|
1081
|
+
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
1082
|
+
heading && /* @__PURE__ */ jsx(Header, {
|
|
1083
|
+
title: heading,
|
|
1084
|
+
description
|
|
1085
|
+
}),
|
|
1086
|
+
/* @__PURE__ */ jsx(ErrorPanel, {
|
|
1087
|
+
verificationErrors: id ? problems?.verificationErrors?.[id] : void 0,
|
|
1088
|
+
validationErrors: id ? problems?.validationErrors?.[id] : void 0,
|
|
1089
|
+
formUtils,
|
|
1090
|
+
id: "ariaErrorField"
|
|
1091
|
+
}),
|
|
1092
|
+
/* @__PURE__ */ jsx(ContextGuidance, {
|
|
1093
|
+
titleId: "whyDoINeedToFillInThisInformation",
|
|
1094
|
+
contentId: "reasonForFillingCompanyAddressDetails",
|
|
1095
|
+
title: t(($) => $["whyDoINeedToFillInThisInformation"]),
|
|
1096
|
+
content: t(($) => $["reasonForFillingCompanyAddressDetails"])
|
|
1097
|
+
}),
|
|
1098
|
+
/* @__PURE__ */ jsx(Address, {
|
|
1099
|
+
data: {
|
|
1100
|
+
...form.data?.trustRegistrationAddress?.registrationAddress,
|
|
1101
|
+
country
|
|
1102
|
+
},
|
|
1103
|
+
hideCountry: true,
|
|
1104
|
+
id,
|
|
1105
|
+
addressType: "registrationAddress",
|
|
1106
|
+
optionalFields: ["otherAddressInformation"],
|
|
1107
|
+
onChange: handleRegistrationAddressChange
|
|
1108
|
+
}),
|
|
1109
|
+
/* @__PURE__ */ jsx(Header, {
|
|
1110
|
+
title: t(($) => $["operationalAddressHeader"]),
|
|
1111
|
+
secondary: true
|
|
1112
|
+
}),
|
|
1113
|
+
/* @__PURE__ */ jsx(Field, {
|
|
1114
|
+
el: "fieldset",
|
|
1115
|
+
name: "operationalAddressIsSame",
|
|
1116
|
+
label: formUtils.getLabel("operationalAddressIsSame"),
|
|
1117
|
+
errorMessage: form.errors.trustRegistrationAddress?.operationalAddressIsSame?.errorMessage,
|
|
1118
|
+
children: (childProps) => /* @__PURE__ */ jsx(RadioGroup, {
|
|
1119
|
+
...childProps,
|
|
1120
|
+
name: "operationalAddressIsSame",
|
|
1121
|
+
items: operationalAddressIsSameItems,
|
|
1122
|
+
value: data?.operationalAddressIsSame,
|
|
1123
|
+
disabled: formUtils.isReadOnly("operationalAddressIsSame"),
|
|
1124
|
+
onChange: handleOperationalAddressIsSameChange,
|
|
1125
|
+
"aria-required": true,
|
|
1126
|
+
"aria-invalid": !form.valid.trustRegistrationAddress?.operationalAddressIsSame
|
|
1127
|
+
})
|
|
1128
|
+
}),
|
|
1129
|
+
isOperationAddressNotSame() && /* @__PURE__ */ jsx(Address, {
|
|
1130
|
+
data: {
|
|
1131
|
+
...form.data?.trustRegistrationAddress?.operationalAddress,
|
|
1132
|
+
country
|
|
1133
|
+
},
|
|
1134
|
+
hideCountry: true,
|
|
1135
|
+
id,
|
|
1136
|
+
optionalFields: ["otherAddressInformation"],
|
|
1137
|
+
addressType: "operationalAddress",
|
|
1138
|
+
onChange: handleOperationalAddressChange
|
|
1139
|
+
}, "operationalAddress")
|
|
1140
|
+
] });
|
|
1141
|
+
}
|
|
1142
|
+
//#endregion
|
|
1143
|
+
//#region src/components/Trust/forms/TrustRegistrationDetails/TrustRegistrationDetailsMultiform.tsx
|
|
1144
|
+
var ALLOWED_TRUST_COUNTRIES = [CountryCodes.Australia, CountryCodes.NewZealand];
|
|
1145
|
+
var TRUST_REGISTRATION_DETAILS = trustForms$1.trustRegistrationDetails.formId;
|
|
1146
|
+
function TrustRegistrationDetailsMultiform({ fieldValidationErrors = {}, formVerificationErrors = {}, heading, shouldValidate, taskType, country: parentLegalEntityCountry }) {
|
|
1147
|
+
const { t: trustT } = useTranslation("trust");
|
|
1148
|
+
const { t: CommonT } = useTranslation("common");
|
|
1149
|
+
const { form } = useFormContext();
|
|
1150
|
+
const { data, valid, errors, allFields, trustedFields, obscuredFields, optionalFields, requiredFields } = useMemo(() => {
|
|
1151
|
+
return {
|
|
1152
|
+
data: form.data.trustRegistrationDetails ?? {},
|
|
1153
|
+
valid: form.valid.trustRegistrationDetails ?? {},
|
|
1154
|
+
errors: form.errors.trustRegistrationDetails ?? {},
|
|
1155
|
+
allFields: form.allFields?.trustRegistrationDetails ?? [],
|
|
1156
|
+
trustedFields: form.trustedFields?.trustRegistrationDetails ?? [],
|
|
1157
|
+
obscuredFields: form.obscuredFields?.trustRegistrationDetails ?? [],
|
|
1158
|
+
optionalFields: form.optionalFields?.trustRegistrationDetails ?? [],
|
|
1159
|
+
requiredFields: form.requiredFields?.trustRegistrationDetails ?? []
|
|
1160
|
+
};
|
|
1161
|
+
}, [form]);
|
|
1162
|
+
const country = data?.country ?? parentLegalEntityCountry;
|
|
1163
|
+
const trustTypeOptions = getCountrySpecificTrustTypeOptions(country) ?? [];
|
|
1164
|
+
const isUnincorporatedPartnership = taskType === TaskTypes.UNINCORPORATED_PARTNERSHIP;
|
|
1165
|
+
const handleChange = (fieldName, mode) => form.handleChangeFor(fieldName, "trustRegistrationDetails", mode);
|
|
1166
|
+
const changeTrustType = (e) => {
|
|
1167
|
+
handleChange("trustType", "blur")(e);
|
|
1168
|
+
if (e.target.value !== "charitableTrust") form.setData("objectOfTrust", void 0, TRUST_REGISTRATION_DETAILS);
|
|
1169
|
+
};
|
|
1170
|
+
const formUtils = useMemo(() => {
|
|
1171
|
+
const initialProps = {
|
|
1172
|
+
data,
|
|
1173
|
+
valid,
|
|
1174
|
+
errors,
|
|
1175
|
+
fieldValidationErrors,
|
|
1176
|
+
formVerificationErrors,
|
|
1177
|
+
allFields,
|
|
1178
|
+
trustedFields,
|
|
1179
|
+
obscuredFields,
|
|
1180
|
+
optionalFields,
|
|
1181
|
+
requiredFields
|
|
1182
|
+
};
|
|
1183
|
+
const formUtilProps = initialProps?.allFields?.reduce((acc, field) => {
|
|
1184
|
+
switch (field) {
|
|
1185
|
+
case "hasDoingBusinessAs": return mergeFieldMetadataIntoProps("hasDoingBusinessAs", doingBusinessAsAbsentFieldMetadata, acc);
|
|
1186
|
+
case "doingBusinessAs": return mergeFieldMetadataIntoProps("doingBusinessAs", doingBusinessAsFieldMetadata, acc);
|
|
1187
|
+
case "taxInformation": return mergeFieldMetadataIntoProps("taxInformation", resolveFieldMetadata(taxInformationDefaultFieldConfig[country], {
|
|
1188
|
+
taxIdNumberType: data.taxInformation?.find((taxId) => taxId.country === country)?.type,
|
|
1189
|
+
companyType: LegalEntityTypes.TRUST
|
|
1190
|
+
}, taxInformationDefaultFieldMetadata), acc);
|
|
1191
|
+
case "exemptedFromTax": return mergeFieldMetadataIntoProps("exemptedFromTax", resolveFieldMetadata(exemptedFromTaxDefaultFieldConfig[country], {}, exemptedFromTaxDefaultFieldMetadata), acc);
|
|
1192
|
+
case "registrationNumber": return mergeFieldMetadataIntoProps("registrationNumber", resolveFieldMetadata(registrationNumberDefaultFieldConfig[country], {
|
|
1193
|
+
companyType: LegalEntityTypes.TRUST,
|
|
1194
|
+
registrationNumberType: data.registrationNumberType
|
|
1195
|
+
}, registrationNumberDefaultFieldMetadata), acc);
|
|
1196
|
+
case "exemptedFromRegistrationNumber": return mergeFieldMetadataIntoProps("exemptedFromRegistrationNumber", resolveFieldMetadata(exemptFromRegistrationNumberDefaultFieldConfig[country], {}, exemptFromRegistrationNumberDefaultFieldMetadata), acc);
|
|
1197
|
+
case "vatNumber": return mergeFieldMetadataIntoProps("vatNumber", resolveFieldMetadata(defaultFieldConfig[country], { vatNumberType: data?.vatNumberType }, defaultFieldMetadata), acc);
|
|
1198
|
+
default: return acc;
|
|
1199
|
+
}
|
|
1200
|
+
}, initialProps);
|
|
1201
|
+
return createFormUtils(formUtilProps ?? initialProps, CommonT);
|
|
1202
|
+
}, [
|
|
1203
|
+
CommonT,
|
|
1204
|
+
allFields,
|
|
1205
|
+
country,
|
|
1206
|
+
data,
|
|
1207
|
+
errors,
|
|
1208
|
+
fieldValidationErrors,
|
|
1209
|
+
formVerificationErrors,
|
|
1210
|
+
obscuredFields,
|
|
1211
|
+
optionalFields,
|
|
1212
|
+
requiredFields,
|
|
1213
|
+
trustedFields,
|
|
1214
|
+
valid
|
|
1215
|
+
]);
|
|
1216
|
+
const showField = (fieldName) => formUtils.isRequiredField(fieldName) || formUtils.isOptionalField(fieldName);
|
|
1217
|
+
return /* @__PURE__ */ jsxs("form", {
|
|
1218
|
+
id: TRUST_REGISTRATION_DETAILS,
|
|
1219
|
+
children: [
|
|
1220
|
+
heading && /* @__PURE__ */ jsx(Header, { title: heading }),
|
|
1221
|
+
/* @__PURE__ */ jsx(ErrorPanel, {
|
|
1222
|
+
verificationErrors: formVerificationErrors,
|
|
1223
|
+
validationErrors: fieldValidationErrors,
|
|
1224
|
+
formUtils,
|
|
1225
|
+
id: "ariaErrorField"
|
|
1226
|
+
}),
|
|
1227
|
+
!isUnincorporatedPartnership && /* @__PURE__ */ jsx(Alert, {
|
|
1228
|
+
variant: "info",
|
|
1229
|
+
title: /* @__PURE__ */ jsx(Typography, {
|
|
1230
|
+
variant: "caption",
|
|
1231
|
+
color: "secondary",
|
|
1232
|
+
children: trustT(($) => $["makeSureToHaveYourTrustDeed"])
|
|
1233
|
+
}),
|
|
1234
|
+
className: "adyen-kyc-u-margin-bottom-16"
|
|
1235
|
+
}),
|
|
1236
|
+
formUtils.isRequiredField("country") && /* @__PURE__ */ jsx(CountryField, {
|
|
1237
|
+
data: formUtils.getFieldData(data, COUNTRY_FIELD),
|
|
1238
|
+
valid: formUtils.getFieldValid(valid, COUNTRY_FIELD),
|
|
1239
|
+
errors: formUtils.getFieldErrors(errors, fieldValidationErrors, COUNTRY_FIELD),
|
|
1240
|
+
labels: formUtils.getFieldLabels(COUNTRY_FIELD, { country: "countryRegionOfEstablishment" }),
|
|
1241
|
+
readonly: formUtils.isReadOnly("country"),
|
|
1242
|
+
allowedCountries: isUnincorporatedPartnership ? ALLOWED_UNINCORPORATED_PARTNERSHIP_COUNTRIES : ALLOWED_TRUST_COUNTRIES,
|
|
1243
|
+
handleChangeFor: () => (e) => {
|
|
1244
|
+
handleChange("country", "input")(e);
|
|
1245
|
+
}
|
|
1246
|
+
}),
|
|
1247
|
+
formUtils.isRequiredField("legalName") && /* @__PURE__ */ jsx(Field, {
|
|
1248
|
+
name: "legalName",
|
|
1249
|
+
label: formUtils.getLabel(isUnincorporatedPartnership ? "legalName" : "nameOfTrustAgreement"),
|
|
1250
|
+
errorMessage: formUtils.getErrorMessage("legalName", errors, fieldValidationErrors),
|
|
1251
|
+
isValid: valid?.legalName,
|
|
1252
|
+
children: (childProps) => /* @__PURE__ */ jsx(InputText, {
|
|
1253
|
+
...childProps,
|
|
1254
|
+
name: "legalName",
|
|
1255
|
+
value: data?.legalName,
|
|
1256
|
+
readonly: formUtils.isReadOnly("legalName"),
|
|
1257
|
+
onInput: handleChange("legalName", "input"),
|
|
1258
|
+
onBlur: handleChange("legalName", "blur"),
|
|
1259
|
+
"aria-required": true,
|
|
1260
|
+
"aria-invalid": !valid?.legalName
|
|
1261
|
+
})
|
|
1262
|
+
}),
|
|
1263
|
+
formUtils.isRequiredField("hasDoingBusinessAs") && /* @__PURE__ */ jsx(DBANameField, {
|
|
1264
|
+
data: formUtils.getFieldData(data, DBA_NAME_FIELD),
|
|
1265
|
+
valid: formUtils.getFieldValid(valid, DBA_NAME_FIELD),
|
|
1266
|
+
errors: formUtils.getFieldErrors(errors, fieldValidationErrors, DBA_NAME_FIELD),
|
|
1267
|
+
readonly: formUtils.isReadOnly("doingBusinessAs"),
|
|
1268
|
+
handleChangeFor: handleChange
|
|
1269
|
+
}),
|
|
1270
|
+
formUtils.isRequiredField("trustType") && !isUnincorporatedPartnership && /* @__PURE__ */ jsx(Field, {
|
|
1271
|
+
name: "trustType",
|
|
1272
|
+
label: formUtils.getLabel("trustType", "typeOfTrustAgreement"),
|
|
1273
|
+
errorMessage: formUtils.getErrorMessage("trustType", errors, fieldValidationErrors),
|
|
1274
|
+
isValid: valid?.trustType,
|
|
1275
|
+
dataTestId: "trust-type",
|
|
1276
|
+
children: (childProps) => /* @__PURE__ */ jsx(Select, {
|
|
1277
|
+
...childProps,
|
|
1278
|
+
name: "trustType",
|
|
1279
|
+
onChange: changeTrustType,
|
|
1280
|
+
selected: data?.trustType,
|
|
1281
|
+
items: trustTypeOptions.map((trust) => ({
|
|
1282
|
+
id: trust,
|
|
1283
|
+
name: trustT(($) => $[trust])
|
|
1284
|
+
})),
|
|
1285
|
+
placeholder: trustT(($) => $["trustType"])
|
|
1286
|
+
})
|
|
1287
|
+
}),
|
|
1288
|
+
formUtils.isRequiredField("objectOfTrust") && /* @__PURE__ */ jsx(Field, {
|
|
1289
|
+
name: "objectOfTrust",
|
|
1290
|
+
label: formUtils.getLabel("objectOfCharitableTrust"),
|
|
1291
|
+
helper: formUtils.getLabel("pleaseProvideThePurposeOfCharitableTrust"),
|
|
1292
|
+
errorMessage: formUtils.getErrorMessage("objectOfTrust", errors, fieldValidationErrors),
|
|
1293
|
+
isValid: valid?.objectOfTrust,
|
|
1294
|
+
children: (childProps) => /* @__PURE__ */ jsx(InputText, {
|
|
1295
|
+
...childProps,
|
|
1296
|
+
name: "objectOfTrust",
|
|
1297
|
+
value: data?.objectOfTrust,
|
|
1298
|
+
readonly: formUtils.isReadOnly("objectOfTrust"),
|
|
1299
|
+
onInput: handleChange("objectOfTrust", "input"),
|
|
1300
|
+
onBlur: handleChange("objectOfTrust", "blur"),
|
|
1301
|
+
"aria-required": true,
|
|
1302
|
+
"aria-invalid": !valid?.objectOfTrust
|
|
1303
|
+
})
|
|
1304
|
+
}),
|
|
1305
|
+
showField("taxInformation") && /* @__PURE__ */ jsx(TaxInformationField, {
|
|
1306
|
+
data: formUtils.getFieldData(data, TAX_INFORMATION_FIELD),
|
|
1307
|
+
valid: formUtils.getFieldValid(valid, TAX_INFORMATION_FIELD),
|
|
1308
|
+
errors: formUtils.getFieldErrors(errors, fieldValidationErrors, TAX_INFORMATION_FIELD),
|
|
1309
|
+
labels: formUtils.getFieldLabels(TAX_INFORMATION_FIELD, { exemptedFromTax: "iDontHaveATaxId" }),
|
|
1310
|
+
mask: formUtils.getMask("taxInformation"),
|
|
1311
|
+
readonly: formUtils.isReadOnly("taxInformation"),
|
|
1312
|
+
shouldValidate,
|
|
1313
|
+
handleChangeFor: handleChange,
|
|
1314
|
+
optional: formUtils.isOptionalField("taxInformation"),
|
|
1315
|
+
canExempt: formUtils.isRequiredField("exemptedFromTax"),
|
|
1316
|
+
country: data?.country,
|
|
1317
|
+
entityType: LegalEntityTypes.TRUST,
|
|
1318
|
+
defaultData: data?.taxInformation,
|
|
1319
|
+
registrationNumber: data.registrationNumber
|
|
1320
|
+
}),
|
|
1321
|
+
showField("registrationNumber") && /* @__PURE__ */ jsx(BusinessRegistrationNumberField, {
|
|
1322
|
+
data: formUtils.getFieldData(data, BUSINESS_REGISTRATION_NUMBER_FIELD),
|
|
1323
|
+
valid: formUtils.getFieldValid(valid, BUSINESS_REGISTRATION_NUMBER_FIELD),
|
|
1324
|
+
errors: formUtils.getFieldErrors(errors, fieldValidationErrors, BUSINESS_REGISTRATION_NUMBER_FIELD),
|
|
1325
|
+
labels: formUtils.getFieldLabels(BUSINESS_REGISTRATION_NUMBER_FIELD, { exemptedFromRegistrationNumber: "iDontHaveARegistrationNumber" }),
|
|
1326
|
+
mask: formUtils.getMask("registrationNumber"),
|
|
1327
|
+
helperText: getRegistrationNumberHelperText(trustT, {
|
|
1328
|
+
country,
|
|
1329
|
+
companyType: LegalEntityTypes.TRUST
|
|
1330
|
+
}),
|
|
1331
|
+
readonly: formUtils.isReadOnly("registrationNumber"),
|
|
1332
|
+
optional: formUtils.isOptionalField("registrationNumber"),
|
|
1333
|
+
shouldValidate,
|
|
1334
|
+
handleChangeFor: handleChange,
|
|
1335
|
+
country,
|
|
1336
|
+
canExempt: formUtils.isRequiredField("exemptedFromRegistrationNumber"),
|
|
1337
|
+
companyType: LegalEntityTypes.TRUST
|
|
1338
|
+
}),
|
|
1339
|
+
showField("vatNumber") && /* @__PURE__ */ jsx(VatNumberField, {
|
|
1340
|
+
data: formUtils.getFieldData(data, VAT_NUMBER_FIELD),
|
|
1341
|
+
valid: formUtils.getFieldValid(valid, VAT_NUMBER_FIELD),
|
|
1342
|
+
errors: formUtils.getFieldErrors(errors, fieldValidationErrors, VAT_NUMBER_FIELD),
|
|
1343
|
+
labels: formUtils.getFieldLabels(VAT_NUMBER_FIELD, { exemptedFromVat: "iDontHaveAVatNumber" }),
|
|
1344
|
+
optional: formUtils.isOptionalField("vatNumber"),
|
|
1345
|
+
readonly: formUtils.isReadOnly("vatNumber"),
|
|
1346
|
+
handleChangeFor: handleChange,
|
|
1347
|
+
country,
|
|
1348
|
+
canExempt: formUtils.isRequiredField("exemptedFromVat")
|
|
1349
|
+
})
|
|
1350
|
+
]
|
|
1351
|
+
});
|
|
1352
|
+
}
|
|
1353
|
+
//#endregion
|
|
1354
|
+
//#region src/components/Trust/tasks/TrustDropin/TrustMultiform.tsx
|
|
1355
|
+
var trustForms = {
|
|
1356
|
+
trustRegistrationDetails: {
|
|
1357
|
+
formId: "trustRegistrationDetails",
|
|
1358
|
+
formName: "registrationDetails",
|
|
1359
|
+
fields: [...trustRegistrationDetailsFields]
|
|
1360
|
+
},
|
|
1361
|
+
trustRegistrationAddress: {
|
|
1362
|
+
formId: "trustRegistrationAddress",
|
|
1363
|
+
formName: "addressDetails",
|
|
1364
|
+
fields: registrationAddressFields
|
|
1365
|
+
},
|
|
1366
|
+
trustConstitutionalDocument: {
|
|
1367
|
+
formId: "trustConstitutionalDocument",
|
|
1368
|
+
formName: "constitutionalDocument",
|
|
1369
|
+
fields: ["constitutionalDocument"]
|
|
1370
|
+
}
|
|
1371
|
+
};
|
|
1372
|
+
var trustRegistrationAddressFormId = trustForms.trustRegistrationAddress.formId;
|
|
1373
|
+
var trustRegistrationDetailsFormId = trustForms.trustRegistrationDetails.formId;
|
|
1374
|
+
var trustConstitutionalDocumentFormId = trustForms.trustConstitutionalDocument.formId;
|
|
1375
|
+
function TrustMultiform(props) {
|
|
1376
|
+
const { t } = useTranslation(["common", "trust"]);
|
|
1377
|
+
const { country, activeForm, taskType, shouldValidate, problems = {} } = props;
|
|
1378
|
+
const { form } = useFormContext();
|
|
1379
|
+
const isUnincorporatedPartnership = taskType === TaskTypes.UNINCORPORATED_PARTNERSHIP;
|
|
1380
|
+
function handleChange(formName, fieldName, mode) {
|
|
1381
|
+
return form.handleChangeFor(fieldName, formName, mode);
|
|
1382
|
+
}
|
|
1383
|
+
const renderActiveForm = (activeForm) => {
|
|
1384
|
+
switch (activeForm.formId) {
|
|
1385
|
+
case trustRegistrationDetailsFormId: return /* @__PURE__ */ jsx(TrustRegistrationDetailsMultiform, {
|
|
1386
|
+
heading: t(($) => $["registrationDetails"]),
|
|
1387
|
+
id: trustRegistrationDetailsFormId,
|
|
1388
|
+
taskType,
|
|
1389
|
+
shouldValidate,
|
|
1390
|
+
country
|
|
1391
|
+
});
|
|
1392
|
+
case trustRegistrationAddressFormId: return /* @__PURE__ */ jsx(RegistrationAddressMultiform, {
|
|
1393
|
+
heading: t(($) => $["addressDetails"]),
|
|
1394
|
+
description: !isUnincorporatedPartnership ? t(($) => $["registeredAddressTrustHeaderDescription"], { ns: "trust" }) : t(($) => $["registeredAddressUnincorporatedPartnershipHeaderDescription"], { ns: "trust" }),
|
|
1395
|
+
id: trustRegistrationAddressFormId,
|
|
1396
|
+
country,
|
|
1397
|
+
problems,
|
|
1398
|
+
labels: { operationalAddressIsSame: !isUnincorporatedPartnership ? "isTrustOperationAddressSame" : "isPartnershipOperationAddressSame" },
|
|
1399
|
+
shouldValidate
|
|
1400
|
+
});
|
|
1401
|
+
case trustConstitutionalDocumentFormId: return /* @__PURE__ */ jsx(MemoizedConstitutionalDocument, {
|
|
1402
|
+
id: activeForm.formId,
|
|
1403
|
+
legalEntityType: isUnincorporatedPartnership ? LegalEntityTypes.UNINCORPORATED_PARTNERSHIP : LegalEntityTypes.TRUST,
|
|
1404
|
+
country,
|
|
1405
|
+
data: form.data?.trustConstitutionalDocument,
|
|
1406
|
+
errors: form.errors.trustConstitutionalDocument,
|
|
1407
|
+
valid: form.valid.trustConstitutionalDocument,
|
|
1408
|
+
allFields: form.allFields?.trustConstitutionalDocument,
|
|
1409
|
+
requiredFields: form.requiredFields?.trustConstitutionalDocument,
|
|
1410
|
+
optionalFields: form.optionalFields?.trustConstitutionalDocument,
|
|
1411
|
+
trustedFields: form.trustedFields?.trustConstitutionalDocument,
|
|
1412
|
+
handleFieldChange: () => handleChange("trustConstitutionalDocument", "constitutionalDocument"),
|
|
1413
|
+
shouldValidate,
|
|
1414
|
+
fieldValidationErrors: problems.validationErrors?.[activeForm.formId] ?? {},
|
|
1415
|
+
formVerificationErrors: problems.verificationErrors?.[activeForm.formId] ?? {}
|
|
1416
|
+
});
|
|
1417
|
+
default: return null;
|
|
1418
|
+
}
|
|
1419
|
+
};
|
|
1420
|
+
return /* @__PURE__ */ jsx("div", {
|
|
1421
|
+
className: "adyen-kyc-form-wrapper",
|
|
1422
|
+
children: renderActiveForm(activeForm || trustForms.trustRegistrationDetails)
|
|
1423
|
+
});
|
|
1424
|
+
}
|
|
1425
|
+
//#endregion
|
|
1426
|
+
//#region src/components/Trust/tasks/TrustDropin/validate.ts
|
|
1427
|
+
function trustRegistrationDetailsValidators(country, trustRegistrationDetails = {}, isFeatureEnabled) {
|
|
1428
|
+
const defaultTrustRegistrationDetailsValidators = isFeatureEnabled("StrictNameAndAddressValidationV4") ? trustRegistrationDetailsValidationsV4 : trustRegistrationDetailsValidations;
|
|
1429
|
+
const { registrationNumberType, taxInformation, vatNumberType } = trustRegistrationDetails;
|
|
1430
|
+
return {
|
|
1431
|
+
...defaultTrustRegistrationDetailsValidators,
|
|
1432
|
+
hasDoingBusinessAs: doingBusinessAsAbsentFieldMetadata.validators,
|
|
1433
|
+
doingBusinessAs: doingBusinessAsFieldMetadata.validators,
|
|
1434
|
+
taxInformation: resolveFieldMetadata(taxInformationDefaultFieldConfig[country], {
|
|
1435
|
+
taxIdNumberType: taxInformation?.find((taxId) => taxId.country === country)?.type,
|
|
1436
|
+
companyType: LegalEntityTypes.TRUST
|
|
1437
|
+
}, taxInformationDefaultFieldMetadata)?.validators,
|
|
1438
|
+
exemptedFromTax: resolveFieldMetadata(exemptedFromTaxDefaultFieldConfig[country], {}, exemptedFromTaxDefaultFieldMetadata)?.validators,
|
|
1439
|
+
registrationNumber: resolveFieldMetadata(registrationNumberDefaultFieldConfig[country], {
|
|
1440
|
+
companyType: LegalEntityTypes.TRUST,
|
|
1441
|
+
registrationNumberType,
|
|
1442
|
+
isFeatureEnabled
|
|
1443
|
+
}, registrationNumberDefaultFieldMetadata)?.validators,
|
|
1444
|
+
exemptedFromRegistrationNumber: resolveFieldMetadata(exemptFromRegistrationNumberDefaultFieldConfig[country], {}, exemptFromRegistrationNumberDefaultFieldMetadata)?.validators,
|
|
1445
|
+
vatNumber: resolveFieldMetadata(defaultFieldConfig[country], { vatNumberType }, defaultFieldMetadata)?.validators
|
|
1446
|
+
};
|
|
1447
|
+
}
|
|
1448
|
+
//#endregion
|
|
1449
|
+
//#region src/components/Trust/tasks/TrustDropin/TrustMultiformDropin.tsx
|
|
1450
|
+
var parseTrustScenarios = (scenarios, country) => augmentWithCountryConfigs(trustCountryConfig[country], composePerScenarioFormConfigurations(scenarios, trustFieldsPerScenario));
|
|
1451
|
+
var parseConfiguration = ({ scenarios, country }) => parseTrustScenarios(scenarios, country);
|
|
1452
|
+
function TrustMultiformDropin({ parentLegalEntity, country: countryProp, existingTrust, taskType, problems: problemsProp, onSubmit: externalOnSubmit, handleHomeClick }) {
|
|
1453
|
+
const { baseUrl, rootLegalEntityId } = useApiContext();
|
|
1454
|
+
const { t, i18n } = useTranslation(["common", "trust"]);
|
|
1455
|
+
const [validationErrors, setValidationErrors] = useState();
|
|
1456
|
+
const datasetUtils = datasetUtilities(i18n.language);
|
|
1457
|
+
const { isFeatureEnabled } = useToggleContext();
|
|
1458
|
+
const { showToast } = useToastContext();
|
|
1459
|
+
const [loadingStatus, setLoadingStatus] = useState("success");
|
|
1460
|
+
const [country, setCountry] = useState(countryProp);
|
|
1461
|
+
const isUnincorporatedPartnership = taskType === TaskTypes.UNINCORPORATED_PARTNERSHIP;
|
|
1462
|
+
const problems = useMemo(() => ({
|
|
1463
|
+
...problemsProp,
|
|
1464
|
+
validationErrors
|
|
1465
|
+
}), [problemsProp, validationErrors]);
|
|
1466
|
+
const [initialData, setInitialData] = useState(useMemo(() => {
|
|
1467
|
+
if (!existingTrust) return { trustRegistrationDetails: { country: countryProp } };
|
|
1468
|
+
return isUnincorporatedPartnership ? mapLegalEntityToUnincorporatedPartnership(existingTrust, isFeatureEnabled) : mapLegalEntityToTrust(existingTrust, isFeatureEnabled);
|
|
1469
|
+
}, [
|
|
1470
|
+
isFeatureEnabled,
|
|
1471
|
+
existingTrust,
|
|
1472
|
+
isUnincorporatedPartnership,
|
|
1473
|
+
countryProp
|
|
1474
|
+
]));
|
|
1475
|
+
const documentUtils = documentApiUtils({
|
|
1476
|
+
baseUrl: baseUrl.value,
|
|
1477
|
+
rootLegalEntityId: rootLegalEntityId.value
|
|
1478
|
+
});
|
|
1479
|
+
/**
|
|
1480
|
+
* Analytics
|
|
1481
|
+
*/
|
|
1482
|
+
useTaskLandedEvent(taskType);
|
|
1483
|
+
useEffect(() => {
|
|
1484
|
+
if (!existingTrust?.documentDetails?.length) return;
|
|
1485
|
+
documentUtils.fetchDocuments(existingTrust.documentDetails, existingTrust.id).then(() => {
|
|
1486
|
+
const mappedDocuments = mapApiDocumentToTrustDocument(existingTrust.id);
|
|
1487
|
+
setInitialData((prev) => ({
|
|
1488
|
+
...prev,
|
|
1489
|
+
...mappedDocuments
|
|
1490
|
+
}));
|
|
1491
|
+
}).catch(() => {
|
|
1492
|
+
showToast({
|
|
1493
|
+
label: t(($) => $["failedToFetchRelevantDocuments"]),
|
|
1494
|
+
variant: "error"
|
|
1495
|
+
});
|
|
1496
|
+
});
|
|
1497
|
+
}, []);
|
|
1498
|
+
const [derivedProps, setDerivedProps] = useState();
|
|
1499
|
+
const buildTrustValidations = useCallback((data) => {
|
|
1500
|
+
return { trustRegistrationDetails: trustRegistrationDetailsValidators(country, data?.trustRegistrationDetails, isFeatureEnabled) };
|
|
1501
|
+
}, [country, isFeatureEnabled]);
|
|
1502
|
+
const multiForm = useMultiForm({
|
|
1503
|
+
defaultData: initialData,
|
|
1504
|
+
allFields: derivedProps?.allFields,
|
|
1505
|
+
requiredFields: derivedProps?.requiredFields,
|
|
1506
|
+
optionalFields: derivedProps?.optionalFields,
|
|
1507
|
+
obscuredFields: derivedProps?.obscuredFields,
|
|
1508
|
+
trustedFields: derivedProps?.trustedFields,
|
|
1509
|
+
rules: buildTrustValidations
|
|
1510
|
+
});
|
|
1511
|
+
/**
|
|
1512
|
+
* Fetch Configurations
|
|
1513
|
+
*/
|
|
1514
|
+
const { fieldConfigurations, requiredFields } = useScenarioConfiguration({
|
|
1515
|
+
parseConfiguration,
|
|
1516
|
+
legalEntityType: LegalEntityTypes.TRUST,
|
|
1517
|
+
setLoadingStatus,
|
|
1518
|
+
country
|
|
1519
|
+
});
|
|
1520
|
+
const fieldsFromCustomRules = useMemo(() => rules({
|
|
1521
|
+
data: multiForm.data,
|
|
1522
|
+
country,
|
|
1523
|
+
taskType,
|
|
1524
|
+
requiredFields
|
|
1525
|
+
}), [
|
|
1526
|
+
country,
|
|
1527
|
+
multiForm.data,
|
|
1528
|
+
taskType,
|
|
1529
|
+
requiredFields
|
|
1530
|
+
]);
|
|
1531
|
+
useEffect(() => {
|
|
1532
|
+
setDerivedProps(getPropsFromConfigurations({
|
|
1533
|
+
scenarioConfiguration: fieldConfigurations,
|
|
1534
|
+
forms: trustForms$1,
|
|
1535
|
+
remediationActions: problems?.remediationActions ? Object.values(problems?.remediationActions) : [],
|
|
1536
|
+
dataMissingErrors: problems?.missingData ?? [],
|
|
1537
|
+
fieldsWithExistingData: existingTrust ? getFieldsWithExistingData(existingTrust, trustApiKeyMapping, trustDocumentMapping) : [],
|
|
1538
|
+
customRules: fieldsFromCustomRules,
|
|
1539
|
+
legalEntityType: existingTrust?.type
|
|
1540
|
+
}));
|
|
1541
|
+
}, [
|
|
1542
|
+
fieldConfigurations,
|
|
1543
|
+
problems?.remediationActions,
|
|
1544
|
+
problems?.missingData,
|
|
1545
|
+
existingTrust,
|
|
1546
|
+
fieldsFromCustomRules
|
|
1547
|
+
]);
|
|
1548
|
+
/**
|
|
1549
|
+
* Current country value must be kept in sync with what is selected in basicInformation form
|
|
1550
|
+
*/
|
|
1551
|
+
const [prevCountry, setPrevCountry] = useState(multiForm.data.trustRegistrationDetails?.country);
|
|
1552
|
+
if (multiForm.data.trustRegistrationDetails?.country && prevCountry !== multiForm.data.trustRegistrationDetails?.country) {
|
|
1553
|
+
setCountry(multiForm.data?.trustRegistrationDetails?.country ?? countryProp);
|
|
1554
|
+
setPrevCountry(multiForm.data.trustRegistrationDetails?.country);
|
|
1555
|
+
}
|
|
1556
|
+
const forms = useMemo(() => {
|
|
1557
|
+
return addValidityToForms(getRequiredForms(trustForms$1, derivedProps?.requiredFields, derivedProps?.optionalFields), multiForm.isValid, problems);
|
|
1558
|
+
}, [
|
|
1559
|
+
derivedProps,
|
|
1560
|
+
multiForm.isValid,
|
|
1561
|
+
problems
|
|
1562
|
+
]);
|
|
1563
|
+
const onSubmitTrust = async () => {
|
|
1564
|
+
setLoadingStatus("loading");
|
|
1565
|
+
const trustDetails = mapTrustToLegalEntity(multiForm.data, isFeatureEnabled);
|
|
1566
|
+
try {
|
|
1567
|
+
const updatedTrust = await submitTrustDetails(trustDetails);
|
|
1568
|
+
await submitDocuments({
|
|
1569
|
+
forms,
|
|
1570
|
+
legalEntity: updatedTrust,
|
|
1571
|
+
dataSubmitted: multiForm.data
|
|
1572
|
+
});
|
|
1573
|
+
await attachTrustToParentLegalEntity(updatedTrust);
|
|
1574
|
+
setLoadingStatus("success");
|
|
1575
|
+
showToast({
|
|
1576
|
+
label: t(($) => $["successfullyUpdatedDetails"]),
|
|
1577
|
+
variant: "success"
|
|
1578
|
+
});
|
|
1579
|
+
externalOnSubmit?.(multiForm.data);
|
|
1580
|
+
} catch (e) {
|
|
1581
|
+
showToast({
|
|
1582
|
+
label: t(($) => $["failedToUpdateDetails"]),
|
|
1583
|
+
variant: "error"
|
|
1584
|
+
});
|
|
1585
|
+
if (isValidationError(e)) setValidationErrors(processValidationErrors(e, taskType));
|
|
1586
|
+
else if (isMaintenanceModeError(e)) showToast({
|
|
1587
|
+
label: t(($) => $["maintenanceModeMessage"]),
|
|
1588
|
+
variant: "error",
|
|
1589
|
+
duration: "indefinite"
|
|
1590
|
+
});
|
|
1591
|
+
setLoadingStatus("success");
|
|
1592
|
+
}
|
|
1593
|
+
};
|
|
1594
|
+
const onSubmitUnincorporatedPartnership = async () => {
|
|
1595
|
+
setLoadingStatus("loading");
|
|
1596
|
+
const unincorporatedPartnershipDetails = mapUnincorporatedPartnershipToLegalEntity(multiForm.data, isFeatureEnabled);
|
|
1597
|
+
try {
|
|
1598
|
+
const updatedUnincorporatedPartnershipDetails = await submitTrustDetails(unincorporatedPartnershipDetails);
|
|
1599
|
+
await submitDocuments({
|
|
1600
|
+
forms,
|
|
1601
|
+
legalEntity: updatedUnincorporatedPartnershipDetails,
|
|
1602
|
+
dataSubmitted: multiForm.data
|
|
1603
|
+
});
|
|
1604
|
+
await attachTrustToParentLegalEntity(updatedUnincorporatedPartnershipDetails);
|
|
1605
|
+
setLoadingStatus("success");
|
|
1606
|
+
showToast({
|
|
1607
|
+
label: t(($) => $["successfullyUpdatedDetails"]),
|
|
1608
|
+
variant: "success"
|
|
1609
|
+
});
|
|
1610
|
+
externalOnSubmit?.(multiForm.data);
|
|
1611
|
+
} catch (e) {
|
|
1612
|
+
showToast({
|
|
1613
|
+
label: t(($) => $["failedToUpdateDetails"]),
|
|
1614
|
+
variant: "error"
|
|
1615
|
+
});
|
|
1616
|
+
if (isValidationError(e)) setValidationErrors(processValidationErrors(e, taskType));
|
|
1617
|
+
else if (isMaintenanceModeError(e)) showToast({
|
|
1618
|
+
label: t(($) => $["maintenanceModeMessage"]),
|
|
1619
|
+
variant: "error",
|
|
1620
|
+
duration: "indefinite"
|
|
1621
|
+
});
|
|
1622
|
+
setLoadingStatus("success");
|
|
1623
|
+
}
|
|
1624
|
+
};
|
|
1625
|
+
const { mutateAsync: createLegalEntity } = useCreateLegalEntity();
|
|
1626
|
+
const { mutateAsync: updateLegalEntity } = useUpdateLegalEntity();
|
|
1627
|
+
const submitTrustDetails = async (legalEntity) => {
|
|
1628
|
+
if (!existingTrust) return await createLegalEntity(legalEntity);
|
|
1629
|
+
else return await updateLegalEntity({
|
|
1630
|
+
...drop("type").from(legalEntity),
|
|
1631
|
+
id: existingTrust.id
|
|
1632
|
+
});
|
|
1633
|
+
};
|
|
1634
|
+
const submitDocuments = async ({ forms, legalEntity, dataSubmitted }) => {
|
|
1635
|
+
if (isDocumentsRequired(forms)) {
|
|
1636
|
+
const formattedDocument = await mapTrustDocumentToApiDocument(dataSubmitted, legalEntity.id);
|
|
1637
|
+
if (formattedDocument) await documentUtils.uploadDocuments([formattedDocument], legalEntity.id);
|
|
1638
|
+
}
|
|
1639
|
+
};
|
|
1640
|
+
const isDocumentsRequired = (forms) => forms.some((form) => form.formId === trustForms$1.trustConstitutionalDocument.formId);
|
|
1641
|
+
const attachTrustToParentLegalEntity = async (trust) => {
|
|
1642
|
+
if (existingTrust?.id) return;
|
|
1643
|
+
const existingEntityAssociations = getOwnEntityAssociations(parentLegalEntity);
|
|
1644
|
+
await updateLegalEntity({
|
|
1645
|
+
entityAssociations: [{
|
|
1646
|
+
type: trust.type,
|
|
1647
|
+
legalEntityId: trust.id
|
|
1648
|
+
}, ...existingEntityAssociations],
|
|
1649
|
+
id: parentLegalEntity.id
|
|
1650
|
+
});
|
|
1651
|
+
};
|
|
1652
|
+
const formatDataForSummary = useCallback((formData, forms) => {
|
|
1653
|
+
let summaryData = cloneObject(formData) || {};
|
|
1654
|
+
const country = formData.trustRegistrationDetails?.country ?? (existingTrust ? getLegalEntityCountry(existingTrust) : getLegalEntityCountry(parentLegalEntity));
|
|
1655
|
+
if (formData.trustRegistrationDetails) {
|
|
1656
|
+
const trustCountry = formData.trustRegistrationDetails.country && datasetUtils.getCountryName(formData.trustRegistrationDetails.country);
|
|
1657
|
+
const trustType = formData.trustRegistrationDetails.trustType && t(($) => $[formData.trustRegistrationDetails.trustType], { ns: "trust" });
|
|
1658
|
+
const registrationNumberLabel = resolveFieldMetadata(registrationNumberDefaultFieldConfig[country], {
|
|
1659
|
+
companyType: LegalEntityTypes.TRUST,
|
|
1660
|
+
registrationNumberType: formData.trustRegistrationDetails.registrationNumber ? inferCompanyRegistrationNumberType(formData.trustRegistrationDetails.registrationNumber, country, LegalEntityTypes.TRUST) : getCompanyRegistrationNumberOptions(country, LegalEntityTypes.TRUST)?.[0]?.id
|
|
1661
|
+
}, registrationNumberDefaultFieldMetadata).label;
|
|
1662
|
+
const taxIdLabel = resolveFieldMetadata(taxInformationDefaultFieldConfig[country], {
|
|
1663
|
+
companyType: LegalEntityTypes.TRUST,
|
|
1664
|
+
taxIdNumberType: countryToTaxInfoTypeMap[country]
|
|
1665
|
+
}, taxInformationDefaultFieldMetadata).label;
|
|
1666
|
+
summaryData.trustRegistrationDetails = {
|
|
1667
|
+
[isUnincorporatedPartnership ? "legalName" : "nameOfTrustAgreement"]: formData.trustRegistrationDetails?.legalName,
|
|
1668
|
+
doingBusinessAs: formData.trustRegistrationDetails?.doingBusinessAs,
|
|
1669
|
+
countryRegionOfEstablishment: trustCountry,
|
|
1670
|
+
typeOfTrustAgreement: isUnincorporatedPartnership ? void 0 : trustType,
|
|
1671
|
+
objectOfTrust: formData.trustRegistrationDetails?.objectOfTrust,
|
|
1672
|
+
[taxIdLabel]: formData.trustRegistrationDetails?.taxInformation?.find((taxId) => country === taxId.country)?.number,
|
|
1673
|
+
[registrationNumberLabel]: formData.trustRegistrationDetails.registrationNumber
|
|
1674
|
+
};
|
|
1675
|
+
}
|
|
1676
|
+
if (formData.trustRegistrationAddress?.registrationAddress) {
|
|
1677
|
+
summaryData.trustRegistrationAddress.hasInnerForms = true;
|
|
1678
|
+
summaryData.trustRegistrationAddress.registrationAddress = mapAddressLabels(formData.trustRegistrationAddress.registrationAddress, datasetUtils);
|
|
1679
|
+
}
|
|
1680
|
+
if (formData.trustRegistrationAddress?.operationalAddress) summaryData.trustRegistrationAddress.operationalAddress = mapAddressLabels(formData.trustRegistrationAddress.operationalAddress, datasetUtils);
|
|
1681
|
+
if (isDocumentsRequired(forms)) summaryData = {
|
|
1682
|
+
...summaryData,
|
|
1683
|
+
...formatFileSummaryData(formData.trustConstitutionalDocument)
|
|
1684
|
+
};
|
|
1685
|
+
else delete summaryData[trustConstitutionalDocumentFormId$1];
|
|
1686
|
+
return summaryData;
|
|
1687
|
+
}, [
|
|
1688
|
+
datasetUtils,
|
|
1689
|
+
existingTrust,
|
|
1690
|
+
isUnincorporatedPartnership,
|
|
1691
|
+
parentLegalEntity,
|
|
1692
|
+
t
|
|
1693
|
+
]);
|
|
1694
|
+
const formatFileSummaryData = (trustConstitutionalDocument) => {
|
|
1695
|
+
const constitutionalDocument = trustConstitutionalDocument?.constitutionalDocument?.[0];
|
|
1696
|
+
return { ...constitutionalDocument && { trustConstitutionalDocument: { fileName: constitutionalDocument.name } } };
|
|
1697
|
+
};
|
|
1698
|
+
const { handleNextClick, handleBackClick, activeForm, shouldValidate, gotoFormByFormIndex, gotoFormByFormId, steps } = useFormComposer({
|
|
1699
|
+
problems,
|
|
1700
|
+
forms,
|
|
1701
|
+
onSubmit: isUnincorporatedPartnership ? onSubmitUnincorporatedPartnership : onSubmitTrust,
|
|
1702
|
+
triggerValidation: multiForm.triggerValidation
|
|
1703
|
+
});
|
|
1704
|
+
return /* @__PURE__ */ jsx(FormContextProvider, {
|
|
1705
|
+
form: multiForm,
|
|
1706
|
+
children: /* @__PURE__ */ jsx(FormFlow, {
|
|
1707
|
+
summary: {
|
|
1708
|
+
data: useMemo(() => formatDataForSummary(multiForm.data, forms), [
|
|
1709
|
+
formatDataForSummary,
|
|
1710
|
+
multiForm.data,
|
|
1711
|
+
forms
|
|
1712
|
+
]),
|
|
1713
|
+
omitted: { keys: ["operationalAddressIsSame"] }
|
|
1714
|
+
},
|
|
1715
|
+
currentStep: steps.current,
|
|
1716
|
+
totalSteps: steps.total,
|
|
1717
|
+
forms,
|
|
1718
|
+
activeForm,
|
|
1719
|
+
gotoFormByFormIndex,
|
|
1720
|
+
gotoFormByFormId,
|
|
1721
|
+
handleNextClick,
|
|
1722
|
+
handleBackClick,
|
|
1723
|
+
handleCancelClick: handleHomeClick,
|
|
1724
|
+
loadingStatus,
|
|
1725
|
+
children: /* @__PURE__ */ jsx(TrustMultiform, {
|
|
1726
|
+
country,
|
|
1727
|
+
activeForm,
|
|
1728
|
+
taskType,
|
|
1729
|
+
shouldValidate,
|
|
1730
|
+
problems
|
|
1731
|
+
})
|
|
1732
|
+
})
|
|
1733
|
+
});
|
|
1734
|
+
}
|
|
1735
|
+
//#endregion
|
|
1736
|
+
//#region src/components/Trust/pages/TrustDetailsPage.tsx
|
|
1737
|
+
var TrustDetailsPage = ({ taskType, trustId, handleHomeClick, onSubmit }) => {
|
|
1738
|
+
const { i18n } = useTranslation();
|
|
1739
|
+
const { data: rootLe } = useLegalEntity(ROOT_LE);
|
|
1740
|
+
const { isFeatureEnabled } = useToggleContext();
|
|
1741
|
+
const { data: associatedEntity, isLoading: isAssociatedEntityLoading } = useAssociatedLegalEntity(rootLe, taskType === "TRUST" ? LegalEntityTypes.TRUST : LegalEntityTypes.UNINCORPORATED_PARTNERSHIP);
|
|
1742
|
+
const { data: trustLeFromProp, isLoading: isTrustLeFromPropLoading } = useLegalEntity(trustId ?? skipToken);
|
|
1743
|
+
const trustLe = trustLeFromProp ?? associatedEntity;
|
|
1744
|
+
addResourceBundles(i18n, [{
|
|
1745
|
+
ns: "trust",
|
|
1746
|
+
importFn: (lang) => _rolldown_dynamic_import_helper_default(/* @__PURE__ */ Object.assign({
|
|
1747
|
+
"../language/bg-BG.json": () => import("./bg-BG-YZ34LkMd.js"),
|
|
1748
|
+
"../language/cs-CZ.json": () => import("./cs-CZ-Bl8qBkx4.js"),
|
|
1749
|
+
"../language/da-DK.json": () => import("./da-DK-BOU9aCaN.js"),
|
|
1750
|
+
"../language/de-DE.json": () => import("./de-DE-B8D6bV3u.js"),
|
|
1751
|
+
"../language/el-GR.json": () => import("./el-GR-mGnv3b-O.js"),
|
|
1752
|
+
"../language/en-US.json": () => import("./en-US-aJtjsYKh.js"),
|
|
1753
|
+
"../language/es-ES.json": () => import("./es-ES-BAAL2h3R.js"),
|
|
1754
|
+
"../language/et-EE.json": () => import("./et-EE-C4U93xrJ.js"),
|
|
1755
|
+
"../language/fi-FI.json": () => import("./fi-FI-IwaR92iX.js"),
|
|
1756
|
+
"../language/fr-FR.json": () => import("./fr-FR-DwYX21r1.js"),
|
|
1757
|
+
"../language/hr-HR.json": () => import("./hr-HR-CFAySNqh.js"),
|
|
1758
|
+
"../language/hu-HU.json": () => import("./hu-HU-DXHf3uuK.js"),
|
|
1759
|
+
"../language/it-IT.json": () => import("./it-IT-BK6Yn4vc.js"),
|
|
1760
|
+
"../language/ja-JP.json": () => import("./ja-JP-B5fRnSzi.js"),
|
|
1761
|
+
"../language/lt-LT.json": () => import("./lt-LT-Dkvuak-E.js"),
|
|
1762
|
+
"../language/lv-LV.json": () => import("./lv-LV-Cz0igciN.js"),
|
|
1763
|
+
"../language/nl-NL.json": () => import("./nl-NL-BTuDiajY.js"),
|
|
1764
|
+
"../language/no-NO.json": () => import("./no-NO-D6C6Imfk.js"),
|
|
1765
|
+
"../language/pl-PL.json": () => import("./pl-PL-DNdGYT-E.js"),
|
|
1766
|
+
"../language/pt-BR.json": () => import("./pt-BR-BgiNMjMc.js"),
|
|
1767
|
+
"../language/pt-PT.json": () => import("./pt-PT-CWzCKCL8.js"),
|
|
1768
|
+
"../language/ro-RO.json": () => import("./ro-RO-DLtPW1MX.js"),
|
|
1769
|
+
"../language/sk-SK.json": () => import("./sk-SK-DNKyL6Hl.js"),
|
|
1770
|
+
"../language/sl-SI.json": () => import("./sl-SI-DNgxTuIJ.js"),
|
|
1771
|
+
"../language/sv-SE.json": () => import("./sv-SE-BM8WESGs.js")
|
|
1772
|
+
}), `../language/${lang}.json`, 3)
|
|
1773
|
+
}]);
|
|
1774
|
+
const capabilities = useCapabilities();
|
|
1775
|
+
const capabilityNames = capabilities ? keysOf(capabilities) : [];
|
|
1776
|
+
const capabilityProblems = useCapabilityProblems();
|
|
1777
|
+
const problems = capabilityProblems && trustLe?.id ? getProblemsForEntity(capabilityProblems, EntityTypes.LEGAL_ENTITY, trustLe.id) : void 0;
|
|
1778
|
+
if (!rootLe || isAssociatedEntityLoading || isTrustLeFromPropLoading) return /* @__PURE__ */ jsx(Loader, {});
|
|
1779
|
+
const country = getLegalEntityCountry(trustLe ?? rootLe);
|
|
1780
|
+
return /* @__PURE__ */ jsx(isFeatureEnabled("EnableMultiFormInTrustFlow") ? TrustMultiformDropin : TrustDropin, {
|
|
1781
|
+
taskType,
|
|
1782
|
+
problems,
|
|
1783
|
+
existingTrust: trustLe,
|
|
1784
|
+
parentLegalEntity: rootLe,
|
|
1785
|
+
capabilities: capabilityNames,
|
|
1786
|
+
country,
|
|
1787
|
+
handleHomeClick,
|
|
1788
|
+
onSubmit
|
|
1789
|
+
});
|
|
1790
|
+
};
|
|
1791
|
+
//#endregion
|
|
1792
|
+
export { TrustDetailsPage };
|