@adyen/kyc-components 4.8.0-beta.0 → 4.9.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-CmxKfDnH.js +35 -0
- package/dist/AcceptTermsOfServiceComponent-BaAQHutH.js +6 -0
- package/dist/AcceptTermsOfServiceComponent-U1D1xOlX.js +651 -0
- package/dist/Accordion-Btxq6sGi.js +111 -0
- package/dist/AccountSetupRejected-CFihsePp.js +20 -0
- package/dist/ActionBar-Doac020y.js +33 -0
- package/dist/Address-BBhttZH7.js +595 -0
- package/dist/Alert-C6gL3JIt.js +170 -0
- package/dist/Avatar-CKmUpMXT.js +54 -0
- package/dist/BusinessFinancingDropin-BeItAS4H.js +1796 -0
- package/dist/BusinessFinancingPage-Cn59r_4N.js +87 -0
- package/dist/BusinessTypeSelectionPage-CAIsndUZ.js +439 -0
- package/dist/Button-oj6H8OrC.js +189 -0
- package/dist/Confirm-B6TWSuab.js +76 -0
- package/dist/ConstitutionalDocument-CWiiY8-Q.js +2282 -0
- package/dist/ContactDetails-DgusRek8.js +292 -0
- package/dist/ContextGuidance-DdoORtLt.js +29 -0
- package/dist/CountryField-Dh4DfjBf.js +38 -0
- package/dist/Currency-V5HFH6ne.js +191 -0
- package/dist/CustomerSupport-CFu3E5Df.js +127 -0
- package/dist/DE-B5hlvfaz.js +20 -0
- package/dist/DE-BB3kLAb1.js +24 -0
- package/dist/DebugModal-o5E385CJ.js +451 -0
- package/dist/DecisionMakerDetails-CIPJYtXC.js +471 -0
- package/dist/DecisionMakerDetailsPage-FRHO8yDE.js +105 -0
- package/dist/DecisionMakers-BHmeXtQg.js +670 -0
- package/dist/Dropzone-Fj83VtiJ.js +221 -0
- package/dist/EmbeddedStatus-C0cKHgzR.js +128 -0
- package/dist/EndStateLayout-ChS-vdMt.js +84 -0
- package/dist/EntityAssociation-DjHI99AZ.js +163 -0
- package/dist/EntityGuidanceStatus-F9oxfzj4.js +89 -0
- package/dist/ErrorPanel-B536hgSc.js +186 -0
- package/dist/Field-pcJkjIG_.js +155 -0
- package/dist/FormNavigation-ikhirSjM.js +116 -0
- package/dist/Header-CPmJyuoP.js +93 -0
- package/dist/Image-BEzOZ1tt.js +33 -0
- package/dist/Individual.rules-DvMQmx90.js +295 -0
- package/dist/IndividualDropin-5d4DRAnF.js +4961 -0
- package/dist/Introduction-CDJnwem7.js +271 -0
- package/dist/InvitedDecisionMakerComponent-CWFjVunH.js +353 -0
- package/dist/InvitedDecisionMakerComponent-CinIOPl5.js +6 -0
- package/dist/JpAddress-IVAbHKw_.js +320 -0
- package/dist/LandingLayout-z8j2xiqg.js +76 -0
- package/dist/LegalCompanyNameField-CW82YkTh.js +108 -0
- package/dist/LegalRepresentativeDetailsPage-BMV6rNj3.js +73 -0
- package/dist/Link-6M1PZnz2.js +32 -0
- package/dist/ListItem-BWH4IPrj.js +70 -0
- package/dist/LoaderWrapper-Dq8TNJCi.js +34 -0
- package/dist/MaskedInput-BFPSwRto.js +714 -0
- package/dist/MaybeModal-CeTBIah3.js +24 -0
- package/dist/Modal-CioQJ7Q7.js +129 -0
- package/dist/Name-G92OEGxs.js +61 -0
- package/dist/NewSummary-C-LKBMpr.js +64 -0
- package/dist/PayoutDetailsDropin-2P2XBBby.js +3887 -0
- package/dist/PayoutDetailsPage-C0skgVvV.js +857 -0
- package/dist/RadioGroup-7g7Xv9rl.js +84 -0
- package/dist/Review-CVbMIJPV.js +89 -0
- package/dist/RootBusinessDetailsPage--UFI2dVP.js +69 -0
- package/dist/RootBusinessLinesPage-BfwOCZsD.js +1451 -0
- package/dist/RootIndividualDetailsPage-CANgtG6U.js +81 -0
- package/dist/Select-CcSRI-H0.js +775 -0
- package/dist/SignPCIComponent-C_p15Efe.js +6 -0
- package/dist/SignPCIComponent-Wk_NI3r3.js +367 -0
- package/dist/SingpassSelection-CB1J2MS6.js +159 -0
- package/dist/SoleProprietorshipPage-BviKY2iD.js +69 -0
- package/dist/SourceOfFundsPage-Cdco3_9D.js +1987 -0
- package/dist/Spacer-CvT0ELty.js +11 -0
- package/dist/StepProgressIndicator-DWJ9eS5a.js +80 -0
- package/dist/Summary-B5IkOGJV.js +226 -0
- package/dist/TaskVerificationStatus-kCWYhocq.js +118 -0
- package/dist/TaxInformationField-D4iJyoVE.js +2857 -0
- package/dist/TaxReportingDropin-BOBRj6is.js +480 -0
- package/dist/TextArea-CRLeP4x6.js +80 -0
- package/dist/TileGroup-D0YbtzZ0.js +169 -0
- package/dist/ToastContextProvider-C-7n4Tu6.js +103 -0
- package/dist/TrustDetailsPage-DrZ9HGKl.js +1685 -0
- package/dist/TrustMemberCompanyPage-D9hFEEZm.js +107 -0
- package/dist/TrustMemberIndividualPage-B3sb9HRd.js +107 -0
- package/dist/TrustMemberRoleAndTypePage-wrnuKHRd.js +943 -0
- package/dist/TrustMembersOverview-DexR4fmv.js +350 -0
- package/dist/UnincorporatedPartnershipIndividualPage-DylG-9F5.js +78 -0
- package/dist/UnincorporatedPartnershipMemberCompanyPage-DPOYWdzd.js +78 -0
- package/dist/UnincorporatedPartnershipMemberRoleAndTypePage-j1MG7dgo.js +276 -0
- package/dist/UnincorporatedPartnershipMembersOverview-yi5iVO-v.js +156 -0
- package/dist/VerificationErrorAlert-DR3lTJhB.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 +111 -111
- 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 +83 -83
- package/dist/adyen-transfer-instrument-management.js +94 -94
- package/dist/adyen-verification-status.js +34 -34
- package/dist/arrow-right-CBQUuXWn.js +20 -0
- package/dist/bag-B73BWByo.js +20 -0
- package/dist/bank-BfKT2Hlo.js +20 -0
- package/dist/bg-BG-B3fdlAsP.js +7 -0
- package/dist/bg-BG-BUBUyZgz.js +60 -0
- package/dist/bg-BG-COHRuTI-.js +7 -0
- package/dist/bg-BG-CodTfJR6.js +7 -0
- package/dist/bin-CR2JtyeA.js +30 -0
- package/dist/capital-C0dL_JnU.js +23 -0
- package/dist/cash-stack-qIbSKCET.js +33 -0
- package/dist/certificate-Cv-GCGT_.js +23 -0
- package/dist/checkmark-B5bpiMC3.js +20 -0
- package/dist/checkmark-circle-fill-BEzw_Ad8.js +30 -0
- package/dist/checkmark-circle-lv03ep4H.js +28 -0
- package/dist/checkmark-small-3mQnvwQ8.js +20 -0
- package/dist/chevron-down-dEHOUt1A.js +20 -0
- package/dist/chevron-left-DPUZ5uGm.js +20 -0
- package/dist/chevron-right-Bul4T3tl.js +20 -0
- package/dist/chevron-up-DMqLHgxc.js +20 -0
- package/dist/circle-BrnvXI-e.js +30 -0
- package/dist/circle-small-filled-ni7ir6ux.js +20 -0
- package/dist/clock-CGVkf1Ve.js +28 -0
- package/dist/coins-CZegEaHP.js +30 -0
- package/dist/contract-BKSU2cwd.js +20 -0
- package/dist/cross-Du29KQ50.js +20 -0
- package/dist/cross-circle-fill-DKtory30.js +30 -0
- package/dist/cross-circle-fill-small-CbhK-gt9.js +20 -0
- package/dist/cs-CZ-BFJyFYpX.js +60 -0
- package/dist/cs-CZ-BLE9aLKg.js +7 -0
- package/dist/cs-CZ-BfrGDPxg.js +7 -0
- package/dist/cs-CZ-CmcYZLZp.js +7 -0
- package/dist/da-DK-BNvIcL59.js +60 -0
- package/dist/da-DK-BhPEeSfb.js +7 -0
- package/dist/da-DK-C_oe1bpM.js +7 -0
- package/dist/da-DK-DtAW2xZE.js +7 -0
- package/dist/de-DE-B8Eby_UK.js +60 -0
- package/dist/de-DE-CMc1Fpfl.js +7 -0
- package/dist/de-DE-DXNTaizu.js +7 -0
- package/dist/de-DE-JbgxmFfV.js +7 -0
- package/dist/document-1-aQlMSWwx.js +20 -0
- package/dist/document-person-CjV96CE2.js +28 -0
- package/dist/download-Byq3TeQ7.js +23 -0
- package/dist/dropinUtils-IdasFZCU.js +275 -0
- package/dist/edit-1-B3TJrgU8.js +20 -0
- package/dist/el-GR-Bv2QgmVV.js +7 -0
- package/dist/el-GR-DYmDnzZe.js +60 -0
- package/dist/el-GR-DzVIM3MW.js +7 -0
- package/dist/el-GR-qH2iIn7-.js +7 -0
- package/dist/en-US-cJAmQhFR.js +10 -0
- package/dist/es-ES-DLBRDQJZ.js +60 -0
- package/dist/es-ES-DMjKXw-3.js +7 -0
- package/dist/es-ES-DtlXpZ_5.js +7 -0
- package/dist/es-ES-yxJhxnWV.js +7 -0
- package/dist/et-EE-BwKPcihb.js +7 -0
- package/dist/et-EE-C3h50xW-.js +7 -0
- package/dist/et-EE-C_Z4PWda.js +60 -0
- package/dist/et-EE-PTcJ2hRW.js +7 -0
- package/dist/external-link-DYtCXxMx.js +20 -0
- package/dist/fi-FI-BbwbWwYb.js +7 -0
- package/dist/fi-FI-C1Ns3CEo.js +7 -0
- package/dist/fi-FI-azwPyx-k.js +60 -0
- package/dist/fi-FI-wGXRm-tZ.js +7 -0
- package/dist/fr-FR-CzdHSH04.js +60 -0
- package/dist/fr-FR-DgPRYmmJ.js +7 -0
- package/dist/fr-FR-YG31LnB2.js +7 -0
- package/dist/fr-FR-mFwC-nNY.js +7 -0
- package/dist/getProblemsForEntity-a39L2dH8.js +16 -0
- package/dist/gift-30hYMA9-.js +20 -0
- package/dist/globalStore-BjMds47R.js +418 -0
- package/dist/graph-CzlxS7Vy.js +32 -0
- package/dist/graph-up-CE291Upm.js +38 -0
- package/dist/graphical-laptop-DX_EZlVD.js +706 -0
- package/dist/headquarter-i418irxh.js +42 -0
- package/dist/hotel-a4lSlfvp.js +33 -0
- package/dist/hr-HR-BAeB6ZDz.js +7 -0
- package/dist/hr-HR-BQfjrcPC.js +7 -0
- package/dist/hr-HR-Bgny6YH0.js +7 -0
- package/dist/hr-HR-C7Hp8OgD.js +60 -0
- package/dist/http-msAasD57.js +148 -0
- package/dist/hu-HU-B34uBEZ9.js +60 -0
- package/dist/hu-HU-Bb1gk4Jr.js +7 -0
- package/dist/hu-HU-Bpaw2qU0.js +7 -0
- package/dist/hu-HU-DfYPelYo.js +7 -0
- package/dist/image-DobgR711.js +23 -0
- package/dist/info-DEkQ-8WE.js +32 -0
- package/dist/info-filled-C68IJNrw.js +32 -0
- package/dist/invalidateRootLegalEntity-B4bAFkQS.js +45 -0
- package/dist/it-IT-BCqVu72_.js +60 -0
- package/dist/it-IT-CmoZrxWa.js +7 -0
- package/dist/it-IT-DX5qNq8o.js +7 -0
- package/dist/it-IT-cnETv3Cg.js +7 -0
- package/dist/ja-JP-C7_6K98B.js +60 -0
- package/dist/ja-JP-CyP1sKap.js +7 -0
- package/dist/ja-JP-D0gz56Ni.js +7 -0
- package/dist/ja-JP-DeQYHyel.js +7 -0
- package/dist/localizeDateString-1A3eC6hp.js +35 -0
- package/dist/location-CGZGwAk9.js +23 -0
- package/dist/lt-LT-Bbh9MWxc.js +7 -0
- package/dist/lt-LT-BhzsTniu.js +60 -0
- package/dist/lt-LT-D0_qhzNo.js +7 -0
- package/dist/lt-LT-DJkDO0Uf.js +7 -0
- package/dist/lv-LV-B6yxwa6Z.js +60 -0
- package/dist/lv-LV-BdQdKiBb.js +7 -0
- package/dist/lv-LV-Bfkan_1O.js +7 -0
- package/dist/lv-LV-C8fqHR2g.js +7 -0
- package/dist/mail-DoEbKDBx.js +20 -0
- package/dist/mapExistingFile-Djcwti5D.js +138 -0
- package/dist/mapJpAddressSchemaToAddressLocalizations-C-Kwjo9Q.js +61 -0
- package/dist/mapLegalEntityToIndividualSchema-BG1tpKz9.js +206 -0
- package/dist/mapTransferInstrumentToPayoutAccount-BQebHQfz.js +44 -0
- package/dist/minus-circle-filled-BnkSMCtd.js +30 -0
- package/dist/nl-NL-4iZ44kzK.js +60 -0
- package/dist/nl-NL-CQ4ZHb3p.js +7 -0
- package/dist/nl-NL-CQSu4iNn.js +7 -0
- package/dist/nl-NL-DXnNGqSV.js +7 -0
- package/dist/no-NO-B1v42GMO2.js +7 -0
- package/dist/no-NO-BSJ1rjY4.js +60 -0
- package/dist/no-NO-C0DXekH-.js +7 -0
- package/dist/no-NO-D_KcEh_g.js +7 -0
- package/dist/omitObscuredFieldsIfUnchanged-Cx1OCZuB.js +20 -0
- package/dist/options-horizontal-D-HDgCXI.js +30 -0
- package/dist/partner-d2hFoENh.js +30 -0
- package/dist/pay-by-link-plane-CPfnEsJ1.js +33 -0
- package/dist/payout-BLb3D4s1.js +38 -0
- package/dist/person-oQB0xWxS.js +23 -0
- package/dist/phonePrefixes-DcdX_CFz.js +252 -0
- package/dist/pl-PL-10KUcobm.js +7 -0
- package/dist/pl-PL-BHjlKdWC.js +60 -0
- package/dist/pl-PL-C0t949uz.js +7 -0
- package/dist/pl-PL-C5u2-nG22.js +7 -0
- package/dist/plus-circle-filled-DjQkTAs3.js +30 -0
- package/dist/plus-ohr5jEJX.js +20 -0
- package/dist/process-field-configurations-C7MuEj5q.js +279 -0
- package/dist/processCapabilities-DlZY9-Jc.js +869 -0
- package/dist/pt-BR-9jLurhS32.js +7 -0
- package/dist/pt-BR-BMIZHo3V.js +60 -0
- package/dist/pt-BR-DWKF33yP.js +7 -0
- package/dist/pt-BR-DcbjZDZp.js +7 -0
- package/dist/pt-PT-B6DsKlac2.js +7 -0
- package/dist/pt-PT-BRU9TQPI.js +7 -0
- package/dist/pt-PT-CjIFIi4R.js +7 -0
- package/dist/pt-PT-s_KcBKav.js +60 -0
- package/dist/recurring-DmyMJdwC.js +23 -0
- package/dist/resolveEnvironment-BcIDBsbb.js +1176 -0
- package/dist/revenue-accelerate-BN3AdS3k.js +30 -0
- package/dist/ro-RO-9TjoIVJf2.js +7 -0
- package/dist/ro-RO-B8XucTSz.js +7 -0
- package/dist/ro-RO-DQFRJwp8.js +7 -0
- package/dist/ro-RO-DsFmqo3p.js +60 -0
- package/dist/save-CsdmY84G.js +20 -0
- package/dist/search-BXGLED99.js +30 -0
- package/dist/show-nnMbIf7M.js +23 -0
- package/dist/singpass-logo-C6TfxlXU.js +33 -0
- package/dist/singpass-logo-small-BcAlrN2f.js +22 -0
- package/dist/sk-SK-BfoXFhAL.js +7 -0
- package/dist/sk-SK-BspZv60l.js +60 -0
- package/dist/sk-SK-D5_Q4Djr2.js +7 -0
- package/dist/sk-SK-DncQ0dRM.js +7 -0
- package/dist/sl-SI-Ce45OvpM.js +7 -0
- package/dist/sl-SI-CuNIMCGx2.js +7 -0
- package/dist/sl-SI-CyIN1sc5.js +7 -0
- package/dist/sl-SI-D26FDPwq.js +60 -0
- package/dist/solution-payments-C_H8klpJ.js +20 -0
- package/dist/store-D8kYfDDN.js +20 -0
- package/dist/style.css +247 -352
- package/dist/styles-BKzp-1_V.js +5883 -0
- package/dist/sv-SE-C11kwGTV2.js +7 -0
- package/dist/sv-SE-CAQm2GVJ.js +7 -0
- package/dist/sv-SE-JKGeqd9J.js +60 -0
- package/dist/sv-SE-Xh17T6yC.js +7 -0
- package/dist/terminal-1-B3NwyGSs.js +30 -0
- package/dist/translation-BFxyJ1c5.js +854 -0
- package/dist/types/api/companyDataSet/companyDataset.types.d.ts +3 -16
- package/dist/types/api/companyDataSet/handleCompanyDataset.d.ts +3 -6
- package/dist/types/api/companySearch/companySearch.types.d.ts +4 -20
- package/dist/types/api/companySearch/useCompanySearch.d.ts +58 -61
- package/dist/types/api/companySelection/companySelection.types.d.ts +3 -3
- package/dist/types/api/invitations/invitations.types.d.ts +4 -3
- package/dist/types/api/pci/pci.types.d.ts +4 -3
- package/dist/types/api/pci/useSignPci.d.ts +2 -1
- package/dist/types/api/termsOfService/termsOfService.types.d.ts +3 -2
- package/dist/types/api/termsOfService/useTermsOfService.d.ts +2 -1
- package/dist/types/api/termsOfService/useTermsOfServiceAcceptanceInfos.d.ts +2 -1
- package/dist/types/api/termsOfService/useTermsOfServiceStatus.d.ts +2 -1
- package/dist/types/api/tinVerification/useVerifyTin.d.ts +6 -6
- package/dist/types/components/Business/forms/AdditionalInformation/VerifiedBusinessCard/VerifiedBusinessCard.d.ts +2 -2
- package/dist/types/components/Business/forms/AdditionalInformation/utils.d.ts +2 -2
- package/dist/types/components/Business/forms/BusinessDetails/forms.d.ts +2 -1
- package/dist/types/components/Business/forms/BusinessSelection/BusinessInformationCard/BusinessInformationCard.d.ts +5 -5
- package/dist/types/components/Business/forms/rules.d.ts +1 -0
- package/dist/types/components/Business/mapping/businessDetails/mapLegalEntityToBusinessDetailsSchema.d.ts +3 -1
- package/dist/types/components/Business/utils/applyVerifiedBusinessData.d.ts +1 -1
- package/dist/types/components/Business/utils/usePrefetchCompanySearch.d.ts +9 -0
- package/dist/types/components/Individual/forms/IdDocumentUpload/IdDocumentManualUpload.d.ts +0 -1
- package/dist/types/components/Shared/SingpassSelection/SingpassSelection.d.ts +0 -1
- package/dist/types/components/Shared/fields/BusinessRegistrationNumberField/BusinessRegistrationNumberField.d.ts +1 -1
- package/dist/types/components/Shared/fields/BusinessRegistrationNumberField/RegistrationNumberTypeSelector/CompanyRegistrationNumberTypeSelector.d.ts +2 -1
- package/dist/types/components/Shared/fields/BusinessRegistrationNumberField/RegistrationNumberTypeSelector/getDefaultRegistrationNumberType.d.ts +1 -1
- package/dist/types/components/Shared/fields/BusinessRegistrationNumberField/RegistrationNumberTypeSelector/inferCompanyRegistrationNumberType.d.ts +1 -1
- package/dist/types/components/Shared/fields/BusinessRegistrationNumberField/fieldConfig.d.ts +0 -1
- package/dist/types/components/Shared/fields/BusinessRegistrationNumberField/registrationNumberTypes.d.ts +15 -3
- package/dist/types/components/Shared/fields/BusinessRegistrationNumberField/types.d.ts +1 -0
- package/dist/types/components/Shared/fields/TaxInformationField/TaxIdNumberTypeSelector/TaxIdNumberTypeSelector.d.ts +2 -1
- package/dist/types/components/Shared/fields/TaxInformationField/TaxIdNumberTypeSelector/getDefaultTaxIdNumberType.d.ts +1 -1
- package/dist/types/components/Shared/fields/TaxInformationField/TaxIdNumberTypeSelector/inferTaxIdNumberType.d.ts +1 -1
- package/dist/types/components/Shared/fields/TaxInformationField/TaxInformationField.d.ts +1 -1
- package/dist/types/components/Shared/fields/TaxInformationField/taxIdNumberTypes.d.ts +3 -2
- package/dist/types/components/Shared/fields/TaxInformationField/types.d.ts +1 -0
- package/dist/types/components/Shared/forms/Address/types.d.ts +2 -2
- package/dist/types/components/Shared/forms/Address/utils.d.ts +1 -1
- package/dist/types/components/Shared/forms/CompanyNameAndCountry/types.d.ts +0 -8
- package/dist/types/components/ui/atoms/Accordion/Accordion.d.ts +2 -1
- package/dist/types/components/ui/atoms/Card/Card.d.ts +2 -2
- package/dist/types/components/ui/atoms/Field/Field.d.ts +1 -4
- package/dist/types/components/ui/atoms/Header/Header.d.ts +3 -3
- package/dist/types/components/ui/atoms/List/List.d.ts +3 -3
- package/dist/types/components/ui/atoms/ListItem/ListItem.d.ts +3 -3
- package/dist/types/components/ui/atoms/LoaderWrapper/LoaderWrapper.d.ts +2 -1
- package/dist/types/components/ui/atoms/MultiSelectList/MultiSelectList.d.ts +2 -1
- package/dist/types/components/ui/atoms/ProgressBar/ProgressBar.d.ts +5 -1
- package/dist/types/components/ui/atoms/Status/Status.d.ts +2 -2
- package/dist/types/context/I18nProvider/I18nContext.d.ts +2 -1
- package/dist/types/context/ToggleContext/types.d.ts +4 -4
- package/dist/types/utils/analytics/trackNavigation.d.ts +2 -1
- package/dist/types/utils/entityStatusUtil.d.ts +1 -1
- package/dist/types/utils/perCountry.d.ts +0 -3
- package/dist/types-8S6KTD2W.js +68 -0
- package/dist/types-qnPNJzLh.js +58 -0
- package/dist/upload-5PvAU00H.js +23 -0
- package/dist/useAccountHolder-CnO_E-AQ.js +102 -0
- package/dist/useAllowedCountries-F0wCZ8Fv.js +74 -0
- package/dist/useAssociatedLegalEntity-b2rR6eT1.js +35 -0
- package/dist/useBusinessDetailsData-DcI9hO0m.js +4365 -0
- package/dist/useBusinessLines-RQQdWQf5.js +27 -0
- package/dist/useCapabilities-BhSlO8Qy.js +12 -0
- package/dist/useCreateLegalEntity-DizCrhrt.js +24 -0
- package/dist/useDataMissingRemediations-CARoFWDr.js +39 -0
- package/dist/useDataset-ZHrWhmsh.js +96 -0
- package/dist/useDeleteTransferInstrument-Cbdy-qgj.js +31 -0
- package/dist/useForm-pUkvCLc9.js +502 -0
- package/dist/useFormContext-Cx9-3iXR.js +178 -0
- package/dist/useGlobalData-DD00rA9R.js +164 -0
- package/dist/useLegalEntity-Dv5dgbCO.js +48 -0
- package/dist/useMultiForm-B3e1ImN3.js +754 -0
- package/dist/useNavigate-DIEXJQpe.js +268 -0
- package/dist/useOnboardingStatus-ByU7lXjv.js +23 -0
- package/dist/usePciQuestionnaireList-CF58LcYV.js +26 -0
- package/dist/useSalesChannels--nshXveh.js +47 -0
- package/dist/useScenarios-gjy5hxIo.js +55 -0
- package/dist/useTaskStatus-CHWVSBuo.js +51 -0
- package/dist/useTermsOfServiceStatus-C6UX8Rtp.js +39 -0
- package/dist/useTrustMembers-Bhi2t_pX.js +152 -0
- package/dist/useUnincorporatedPartnershipMembers-IvAeX76z.js +70 -0
- package/dist/useUpdateBusinessLines-CLiF20xN.js +296 -0
- package/dist/useUpdateLegalEntity-Dcvfr-yZ.js +29 -0
- package/dist/utils-B807QaDx.js +88 -0
- package/dist/utils-BptSfkns.js +188 -0
- package/dist/utils-DRjqyP-s.js +805 -0
- package/dist/validate-AqTlBSU4.js +387 -0
- package/dist/validate-BRATlfVl.js +411 -0
- package/dist/validationError-BzQCrJPn.js +68 -0
- package/dist/warning-circle-fill-8KMHOOon.js +30 -0
- package/dist/warning-diamond-filled-CKvlLEGk.js +30 -0
- package/dist/webinar-D2TO4Mw_.js +33 -0
- package/package.json +28 -33
- package/dist/4-people-7MltvEnk.js +0 -35
- package/dist/AcceptTermsOfServiceComponent-BKgdZKrj.js +0 -651
- package/dist/AcceptTermsOfServiceComponent-CUIdPIg8.js +0 -6
- package/dist/Accordion-Dmrb3-v6.js +0 -111
- package/dist/AccountSetupRejected-DkwJLZ-8.js +0 -20
- package/dist/ActionBar-ITEbcxgG.js +0 -33
- package/dist/Address-CnQ22ndb.js +0 -595
- package/dist/Alert-BER6uCP8.js +0 -170
- package/dist/Avatar-DElKUUVp.js +0 -54
- package/dist/BusinessFinancingDropin-B8ZJDKWU.js +0 -1796
- package/dist/BusinessFinancingPage-B2EuTX1b.js +0 -87
- package/dist/BusinessTypeSelectionPage-CChAObkr.js +0 -439
- package/dist/Button-DvWt5T9O.js +0 -189
- package/dist/Confirm-BmiOH3Vr.js +0 -76
- package/dist/ConstitutionalDocument-rRO4Qdx2.js +0 -2228
- package/dist/ContactDetails-tVqSDGqY.js +0 -292
- package/dist/ContextGuidance-DKKgj5gN.js +0 -29
- package/dist/CountryField-s5-jZTU9.js +0 -38
- package/dist/Currency-gYKD3DSx.js +0 -191
- package/dist/CustomerSupport-kwwKDe5a.js +0 -127
- package/dist/DE-BOCSw-Jn.js +0 -23
- package/dist/DE-hCefE4qL.js +0 -20
- package/dist/DebugModal-DycU_84l.js +0 -451
- package/dist/DecisionMakerDetails-DA9upL0W.js +0 -471
- package/dist/DecisionMakerDetailsPage-B7iGmS0R.js +0 -105
- package/dist/DecisionMakers-BZRkBx5n.js +0 -670
- package/dist/Dropzone-By_YOrv2.js +0 -221
- package/dist/EmbeddedStatus-DeSYswbC.js +0 -128
- package/dist/EndStateLayout-CR8wHeA1.js +0 -84
- package/dist/EntityAssociation-CKOd_SVw.js +0 -163
- package/dist/EntityGuidanceStatus-C_rpRyk4.js +0 -89
- package/dist/ErrorPanel-4juOd8Z2.js +0 -186
- package/dist/Field-C2ZpB0wo.js +0 -155
- package/dist/FormNavigation-IqQmylMk.js +0 -116
- package/dist/Header-BNb1zwkF.js +0 -93
- package/dist/Image-BTVEK7B2.js +0 -33
- package/dist/Individual.rules-B3pCow6J.js +0 -295
- package/dist/IndividualDropin-bFgrHziM.js +0 -4946
- package/dist/Introduction-BRwmMwP8.js +0 -271
- package/dist/InvitedDecisionMakerComponent-DD1vVyTG.js +0 -6
- package/dist/InvitedDecisionMakerComponent-g4s20v7g.js +0 -353
- package/dist/JpAddress-DcrYSdH2.js +0 -319
- package/dist/LandingLayout-BQZNXhZ_.js +0 -76
- package/dist/LegalCompanyNameField-D91em8Tk.js +0 -108
- package/dist/LegalRepresentativeDetailsPage-BeNRjz37.js +0 -73
- package/dist/Link-DKiaZfxB.js +0 -32
- package/dist/ListItem-zVPVQbER.js +0 -70
- package/dist/LoaderWrapper-DWKykOjd.js +0 -34
- package/dist/MaskedInput-zFUBaX87.js +0 -714
- package/dist/MaybeModal-Dsgozf1o.js +0 -24
- package/dist/Modal-UfgpuJZi.js +0 -129
- package/dist/Name-DC5eBwEU.js +0 -61
- package/dist/NewSummary-DVIIH1Ml.js +0 -64
- package/dist/PayoutDetailsDropin-DAUlhP1c.js +0 -3909
- package/dist/PayoutDetailsPage-mJE3Hgy9.js +0 -857
- package/dist/Radio-D6uF9-cu.js +0 -21
- package/dist/RadioGroup-Bi9v9dZu.js +0 -71
- package/dist/Review-C-B_R1FH.js +0 -89
- package/dist/RootBusinessDetailsPage-9ccBcunp.js +0 -67
- package/dist/RootBusinessLinesPage-LQptA58p.js +0 -1451
- package/dist/RootIndividualDetailsPage-DlzHpNEn.js +0 -81
- package/dist/Select-DDSua27l.js +0 -775
- package/dist/SignPCIComponent-DGWjjIO0.js +0 -367
- package/dist/SignPCIComponent-DvZAN38F.js +0 -6
- package/dist/SingpassSelection-PepG3R0o.js +0 -244
- package/dist/SoleProprietorshipPage-DnThw6us.js +0 -69
- package/dist/SourceOfFundsPage-CuIBGc8z.js +0 -1987
- package/dist/Spacer-_Y17BH-4.js +0 -11
- package/dist/StepProgressIndicator-CzDT61ie.js +0 -80
- package/dist/Summary-B8AA9_C_.js +0 -226
- package/dist/TaskVerificationStatus-UnhKHQYu.js +0 -118
- package/dist/TaxInformationField-zwmzV8Ov.js +0 -2830
- package/dist/TaxReportingDropin-BZ67pubt.js +0 -480
- package/dist/TextArea-CyATBUKN.js +0 -80
- package/dist/TileGroup-tVHAZBni.js +0 -169
- package/dist/ToastContextProvider-BWJct14f.js +0 -103
- package/dist/TrustDetailsPage-DLIvcoSr.js +0 -1685
- package/dist/TrustMemberCompanyPage-Q0FDNUXO.js +0 -107
- package/dist/TrustMemberIndividualPage-C4FZ57EQ.js +0 -107
- package/dist/TrustMemberRoleAndTypePage-s8ZOlbBU.js +0 -943
- package/dist/TrustMembersOverview-CZ-i1Yoq.js +0 -350
- package/dist/UnincorporatedPartnershipIndividualPage-DElj-rnx.js +0 -78
- package/dist/UnincorporatedPartnershipMemberCompanyPage-B2iYbHPm.js +0 -78
- package/dist/UnincorporatedPartnershipMemberRoleAndTypePage-BgNE2bk7.js +0 -276
- package/dist/UnincorporatedPartnershipMembersOverview-BwCLw7rz.js +0 -156
- package/dist/VerificationErrorAlert-C_9CLF8G.js +0 -38
- package/dist/arrow-right-BzximXQd.js +0 -20
- package/dist/bag-CV-7aEOY.js +0 -20
- package/dist/bank-B3QWGDvh.js +0 -20
- package/dist/bg-BG-B59ND_11.js +0 -59
- package/dist/bg-BG-DeVGTTeO.js +0 -7
- package/dist/bg-BG-sDNpvadv.js +0 -7
- package/dist/bg-BG-xv1T8Cru.js +0 -7
- package/dist/bin-Nm57SUCy.js +0 -30
- package/dist/capital-BIrjrei_.js +0 -23
- package/dist/cash-stack-q8jqAQnj.js +0 -33
- package/dist/certificate-BA32wlVD.js +0 -23
- package/dist/checkmark-Sx0Eq9g1.js +0 -20
- package/dist/checkmark-circle-D25SXuEg.js +0 -28
- package/dist/checkmark-circle-fill-DWyHVNKM.js +0 -30
- package/dist/checkmark-small-BYKwXmot.js +0 -20
- package/dist/chevron-down-BY9NvSX2.js +0 -20
- package/dist/chevron-left-1TeIr8LI.js +0 -20
- package/dist/chevron-right-D3ORtAcK.js +0 -20
- package/dist/chevron-up-DSUlaHcZ.js +0 -20
- package/dist/circle-BLLy-RH7.js +0 -30
- package/dist/circle-small-filled-C_6B84Iy.js +0 -20
- package/dist/clock-lHMbm7lZ.js +0 -28
- package/dist/coins-DM30OZR2.js +0 -30
- package/dist/contract-CHdRrIxe.js +0 -20
- package/dist/cross-circle-fill-CmXERg4H.js +0 -30
- package/dist/cross-circle-fill-small-CMz7hV-a.js +0 -20
- package/dist/cross-eL7Kqv7I.js +0 -20
- package/dist/cs-CZ-BkegBLH0.js +0 -7
- package/dist/cs-CZ-DNo3i13i.js +0 -59
- package/dist/cs-CZ-DoyjAWTB.js +0 -7
- package/dist/cs-CZ-DzvqR4Si.js +0 -7
- package/dist/da-DK-BpC27U0O.js +0 -7
- package/dist/da-DK-C-6cZEqg.js +0 -59
- package/dist/da-DK-CLzpAJZX.js +0 -7
- package/dist/da-DK-d-G4WSG9.js +0 -7
- package/dist/de-DE-4UdLDq_d.js +0 -59
- package/dist/de-DE-BX0mu_5B.js +0 -7
- package/dist/de-DE-jwrvfE6B.js +0 -7
- package/dist/de-DE-zVrwBFVP.js +0 -7
- package/dist/document-1-CAkgmlsx.js +0 -20
- package/dist/document-person-BMqoEMgx.js +0 -28
- package/dist/download-CUCb0PT7.js +0 -23
- package/dist/dropinUtils-FIEFyS0F.js +0 -275
- package/dist/edit-1-DqX_7cbs.js +0 -20
- package/dist/el-GR-B08o_Wr7.js +0 -59
- package/dist/el-GR-BV0tj_MA.js +0 -7
- package/dist/el-GR-C5lpMpmF.js +0 -7
- package/dist/el-GR-CDp-bn0j.js +0 -7
- package/dist/en-US-D8jS6G6S.js +0 -10
- package/dist/es-ES-B9kTevXB.js +0 -59
- package/dist/es-ES-BJfw2diu.js +0 -7
- package/dist/es-ES-B_kBpFxZ.js +0 -7
- package/dist/es-ES-CHyhM1uh.js +0 -7
- package/dist/et-EE-BcWPn7Cl.js +0 -7
- package/dist/et-EE-BnDOa_4e.js +0 -7
- package/dist/et-EE-GTXnG-3j.js +0 -59
- package/dist/et-EE-SeklRCmh.js +0 -7
- package/dist/external-link-V6JPH8K0.js +0 -20
- package/dist/fi-FI-80q1y1Bb.js +0 -59
- package/dist/fi-FI-BcXm_vtP.js +0 -7
- package/dist/fi-FI-Dz25oorf.js +0 -7
- package/dist/fi-FI-n4x7ZOmh.js +0 -7
- package/dist/fr-FR-ANv8VCCV.js +0 -7
- package/dist/fr-FR-CDTGvZzl.js +0 -7
- package/dist/fr-FR-D2Ep3xgM.js +0 -59
- package/dist/fr-FR-bqkpOtF1.js +0 -7
- package/dist/getProblemsForEntity-Df8xJUr2.js +0 -16
- package/dist/gift-C3MzdRIj.js +0 -20
- package/dist/globalStore-BsvLFLDr.js +0 -418
- package/dist/graph-BJ7yemhR.js +0 -32
- package/dist/graph-up-CWzty_jt.js +0 -38
- package/dist/headquarter-COstZFO7.js +0 -42
- package/dist/hotel-C1vO2ZiV.js +0 -33
- package/dist/hr-HR-C4Bv0YpX.js +0 -59
- package/dist/hr-HR-CBySzkSl.js +0 -7
- package/dist/hr-HR-CLRdCbY_.js +0 -7
- package/dist/hr-HR-CjbJFQJu.js +0 -7
- package/dist/http-btI4x32X.js +0 -148
- package/dist/hu-HU-3a4f6Po4.js +0 -59
- package/dist/hu-HU-Bg2UoMm1.js +0 -7
- package/dist/hu-HU-CsOzXRwg.js +0 -7
- package/dist/hu-HU-DHZf-Z1b.js +0 -7
- package/dist/image-Ctf24Eqr.js +0 -23
- package/dist/info-CKFBABlx.js +0 -32
- package/dist/info-filled-BtKXWmDk.js +0 -32
- package/dist/invalidateRootLegalEntity-BbVdQNIY.js +0 -45
- package/dist/it-IT-4udyC9ua.js +0 -7
- package/dist/it-IT-C2wbwYWQ.js +0 -59
- package/dist/it-IT-D8RXfncB.js +0 -7
- package/dist/it-IT-DpTVTcDk.js +0 -7
- package/dist/ja-JP-DRYUrb3a.js +0 -7
- package/dist/ja-JP-DbHm_J96.js +0 -7
- package/dist/ja-JP-DxUBevNe.js +0 -59
- package/dist/ja-JP-WirIWnQi.js +0 -7
- package/dist/localizeDateString-AhjDnkHD.js +0 -35
- package/dist/location-CpaR6p3k.js +0 -23
- package/dist/lt-LT-4dQRWgMS.js +0 -7
- package/dist/lt-LT-BE20J_Fa.js +0 -59
- package/dist/lt-LT-RYz2_iMh.js +0 -7
- package/dist/lt-LT-lr-xOt-0.js +0 -7
- package/dist/lv-LV-7toRaVhs.js +0 -7
- package/dist/lv-LV-BXLZTnKa.js +0 -59
- package/dist/lv-LV-DykVV_JJ.js +0 -7
- package/dist/lv-LV-qidnvuKE.js +0 -7
- package/dist/mail-uoxYIc94.js +0 -20
- package/dist/mapExistingFile-DdeA1Ya3.js +0 -138
- package/dist/mapJpAddressSchemaToAddressLocalizations-DiB3xFfa.js +0 -61
- package/dist/mapLegalEntityToIndividualSchema-CK2d-XB-.js +0 -206
- package/dist/mapTransferInstrumentToPayoutAccount-5vTCCl4n.js +0 -44
- package/dist/minus-circle-filled-B_E6PncD.js +0 -30
- package/dist/nl-NL-BsMqXzW2.js +0 -7
- package/dist/nl-NL-BxRQSueu.js +0 -7
- package/dist/nl-NL-Ch1_Ho4H2.js +0 -7
- package/dist/nl-NL-DZOwYmdT.js +0 -59
- package/dist/no-NO-Bj-bFlwW.js +0 -59
- package/dist/no-NO-CMSuTQFP.js +0 -7
- package/dist/no-NO-CpQs6Kuj.js +0 -7
- package/dist/no-NO-CzUEYJ6T2.js +0 -7
- package/dist/omitObscuredFieldsIfUnchanged-B7VNFVgY.js +0 -20
- package/dist/options-horizontal-CDJtmlVY.js +0 -30
- package/dist/partner-gFUctV1k.js +0 -30
- package/dist/pay-by-link-plane-q4Bh-mWo.js +0 -33
- package/dist/payout-CpwcL7W1.js +0 -38
- package/dist/person-B3rmhreD.js +0 -23
- package/dist/phonePrefixes-j_kb1wJm.js +0 -252
- package/dist/pl-PL-BvYP_Mjz2.js +0 -7
- package/dist/pl-PL-CKZbiqpL.js +0 -7
- package/dist/pl-PL-D6XdYdXs.js +0 -7
- package/dist/pl-PL-v95qJZ7W.js +0 -59
- package/dist/plus-D1pu1FCh.js +0 -20
- package/dist/plus-circle-filled-BAKemMoO.js +0 -30
- package/dist/process-field-configurations-44gfzIGi.js +0 -279
- package/dist/processCapabilitites-BHzfFtSM.js +0 -869
- package/dist/pt-BR-B7FJvvCY2.js +0 -7
- package/dist/pt-BR-Dk284q8W.js +0 -7
- package/dist/pt-BR-DyYEeGVr.js +0 -7
- package/dist/pt-BR-w4XP2Zc2.js +0 -59
- package/dist/pt-PT-B0PlOQYf2.js +0 -7
- package/dist/pt-PT-DYQXla7J.js +0 -7
- package/dist/pt-PT-DYXnzP0x.js +0 -59
- package/dist/pt-PT-DfOrysaZ.js +0 -7
- package/dist/recurring-BqOZk0GH.js +0 -23
- package/dist/resolveEnvironment-CUQtdx0I.js +0 -1176
- package/dist/revenue-accelerate-CSszZfVF.js +0 -30
- package/dist/ro-RO-BXjIQG3P.js +0 -7
- package/dist/ro-RO-BZMTQGJJ2.js +0 -7
- package/dist/ro-RO-DUiDGCZU.js +0 -59
- package/dist/ro-RO-Dy9karNI.js +0 -7
- package/dist/save-BwoYyyYQ.js +0 -20
- package/dist/search-lRnoylK2.js +0 -30
- package/dist/show-Dpmp87ye.js +0 -23
- package/dist/singpass-logo--50WxD_p.js +0 -22
- package/dist/singpass-verification-instant-BHID0qRO.js +0 -175
- package/dist/singpass-verification-manual-DpefFA6C.js +0 -141
- package/dist/sk-SK-BPDMxREF2.js +0 -7
- package/dist/sk-SK-CJW-1wtq.js +0 -7
- package/dist/sk-SK-D2f2S35P.js +0 -7
- package/dist/sk-SK-DESgizdP.js +0 -59
- package/dist/sl-SI-BHztDEDm.js +0 -59
- package/dist/sl-SI-D8NMKaco.js +0 -7
- package/dist/sl-SI-DHQWrn6C2.js +0 -7
- package/dist/sl-SI-DHxcpzya.js +0 -7
- package/dist/solution-payments-DfH5DH9o.js +0 -20
- package/dist/store-mAgJeN44.js +0 -20
- package/dist/styles-9jxW7TiP.js +0 -5988
- package/dist/sv-SE-B_VHF1Ec.js +0 -7
- package/dist/sv-SE-Bre2IWV2.js +0 -7
- package/dist/sv-SE-DZq6vMfw2.js +0 -7
- package/dist/sv-SE-znK8JjXi.js +0 -59
- package/dist/terminal-1-BlqlENmQ.js +0 -30
- package/dist/translation-G4HP2nQW.js +0 -854
- package/dist/types/api/companyDataSet/constants.d.ts +0 -4
- package/dist/types/components/Business/utils/useCompanySearchFeature.d.ts +0 -5
- package/dist/types/components/ui/atoms/ProgressBar/ProgressBar.types.d.ts +0 -5
- package/dist/types/components/ui/atoms/RadioCard/RadioCard.d.ts +0 -4
- package/dist/types/components/ui/atoms/RadioGroupCard/RadioGroupCard.d.ts +0 -24
- package/dist/types/components/ui/atoms/RadioGroupCard/RadioGroupCard.types.d.ts +0 -31
- package/dist/types-BqFOt7-l.js +0 -58
- package/dist/types-CXceqQIv.js +0 -68
- package/dist/upload-CIujAxWY.js +0 -23
- package/dist/useAccountHolder-LttF1BJG.js +0 -102
- package/dist/useAllowedCountries-B2tXNxdL.js +0 -74
- package/dist/useAssociatedLegalEntity-Dav_4ehd.js +0 -35
- package/dist/useBusinessDetailsData-DmromzC6.js +0 -4395
- package/dist/useBusinessLines-DGr43nU6.js +0 -27
- package/dist/useCapabilities-C3Re0QHQ.js +0 -12
- package/dist/useCreateLegalEntity-u6NuumMd.js +0 -24
- package/dist/useDataMissingRemediations-Cv_4vV2R.js +0 -39
- package/dist/useDataset-DA7SoxiX.js +0 -96
- package/dist/useDeleteTransferInstrument-Me9ITlCM.js +0 -31
- package/dist/useForm-CTiDrzeg.js +0 -502
- package/dist/useFormContext-6LTkbLR1.js +0 -178
- package/dist/useGlobalData-KEb46I95.js +0 -164
- package/dist/useLegalEntity-Cj6C6bAI.js +0 -48
- package/dist/useMultiForm-CiK9l6YR.js +0 -754
- package/dist/useNavigate-B4pHnNyj.js +0 -268
- package/dist/useOnboardingStatus-BuYODvAM.js +0 -23
- package/dist/usePciQuestionnaireList-Bx5N4Ucf.js +0 -26
- package/dist/useSalesChannels-BV-gSBhb.js +0 -47
- package/dist/useScenarios-DVTHREqP.js +0 -55
- package/dist/useTaskStatus-BjqC1s3K.js +0 -51
- package/dist/useTermsOfServiceStatus-BLMY5p8c.js +0 -39
- package/dist/useTrustMembers-DbO0tmcu.js +0 -152
- package/dist/useUnincorporatedPartnershipMembers-Dzj3BDFI.js +0 -70
- package/dist/useUpdateBusinessLines-BfYwukg9.js +0 -296
- package/dist/useUpdateLegalEntity-oigX0fKz.js +0 -29
- package/dist/utils-BAuFBG3J.js +0 -88
- package/dist/utils-BU2d-Zzu.js +0 -805
- package/dist/utils-DXTGGW-J.js +0 -188
- package/dist/validate-9_4V5MhN.js +0 -387
- package/dist/validate-C1II14sz.js +0 -411
- package/dist/validationError-DhMlWpYp.js +0 -68
- package/dist/warning-circle-fill-B8syKAww.js +0 -30
- package/dist/warning-diamond-filled-D81TURTB.js +0 -30
- package/dist/webinar-CA8zN8_B.js +0 -33
- /package/dist/{AD-D_B1KZm9.js → AD-DB5nr9tP.js} +0 -0
- /package/dist/{AE-iKPgRx_9.js → AE-CJ7TIjDy.js} +0 -0
- /package/dist/{AI-CYjWGBKT.js → AI-BQpw7rma.js} +0 -0
- /package/dist/{AL-D62C5Lpk.js → AL-PjHuPrbQ.js} +0 -0
- /package/dist/{AR-BOgSvtgP.js → AR-CU2ICtA_.js} +0 -0
- /package/dist/{AS-Cg8Vujpc.js → AS-DfgHV8yp.js} +0 -0
- /package/dist/{AT-DMpxSE4g.js → AT-4efjzVQd.js} +0 -0
- /package/dist/{AT-CCRMRifN.js → AT-B4JuH6F8.js} +0 -0
- /package/dist/{AT-D3H5WGY3.js → AT-CE6zBm8a.js} +0 -0
- /package/dist/{AT-Doe66WxQ.js → AT-D1WwSgVU.js} +0 -0
- /package/dist/{AU-CiWB9qh-.js → AU-BGwU-xk-.js} +0 -0
- /package/dist/{AU-BcSu8pI2.js → AU-C2TwlbjI.js} +0 -0
- /package/dist/{AU-B77DgHQb.js → AU-CVPrMt74.js} +0 -0
- /package/dist/{AU-DAfj7Z58.js → AU-DOeJssMp.js} +0 -0
- /package/dist/{AX-CG8iviap.js → AX-DVfSmWhN.js} +0 -0
- /package/dist/{AZ-DIB7CvVN.js → AZ-DIcvAsVy.js} +0 -0
- /package/dist/{BA-C4vH4-x6.js → BA-DFu8JCnF.js} +0 -0
- /package/dist/{BE-Sbwjfh5h.js → BE-B3tlw4UG.js} +0 -0
- /package/dist/{BE-DJM3cj-R.js → BE-ByqDiJVH.js} +0 -0
- /package/dist/{BE-Dtk1wvHk.js → BE-Dlk7sUG1.js} +0 -0
- /package/dist/{BE-BvtnaSSH.js → BE-pkvQ7-pO.js} +0 -0
- /package/dist/{BG-DvFE-fU3.js → BG-zaw09oBT.js} +0 -0
- /package/dist/{BH-Bm_tXC8b.js → BH-ByuC-_Cy.js} +0 -0
- /package/dist/{BM-BPYI-Bk0.js → BM-FrOgBeTW.js} +0 -0
- /package/dist/{BR-CRGYlRY-.js → BR-BEePczcO.js} +0 -0
- /package/dist/{BR-CwJ6YXMX.js → BR-C5-D6J2w.js} +0 -0
- /package/dist/{BR-DjC4dRH8.js → BR-Ct9nSoqL.js} +0 -0
- /package/dist/{BR-DdZm-FhP.js → BR-Dj4uKD4L.js} +0 -0
- /package/dist/{BS-DEbfM7Fg.js → BS-BLCF5IzE.js} +0 -0
- /package/dist/{BV-LqWIWEV5.js → BV-Ball_EvD.js} +0 -0
- /package/dist/{BY-Dw4W1isS.js → BY-CYE3ET2j.js} +0 -0
- /package/dist/{CA-Cwit937J.js → CA-CFR8sryt.js} +0 -0
- /package/dist/{CA-D0ezsmfN.js → CA-CPN5GIEi.js} +0 -0
- /package/dist/{CA-CQtjbUjU.js → CA-CtmGXKXQ.js} +0 -0
- /package/dist/{CA-PLMbc5uq.js → CA-DjE9yebq.js} +0 -0
- /package/dist/{CH-Baaufs8O.js → CH-B5P_iJIO.js} +0 -0
- /package/dist/{CH-D9S1IpBs.js → CH-CYY8z2Ac.js} +0 -0
- /package/dist/{CH-DnoWGcl9.js → CH-DXcxyFgB.js} +0 -0
- /package/dist/{CH-DPLfVgsE.js → CH-HLgQqF6w.js} +0 -0
- /package/dist/{CN-Bx6shvCX.js → CN-CP7sf7YS.js} +0 -0
- /package/dist/{CR-CgM7Uut3.js → CR-QbBCoLqW.js} +0 -0
- /package/dist/{CY-CxBi1s-O.js → CY-C80hVF0V.js} +0 -0
- /package/dist/{CZ-DS5YfhO9.js → CZ-B4eytKxE.js} +0 -0
- /package/dist/{CZ-CbWqKLbR.js → CZ-BGE7k-cb.js} +0 -0
- /package/dist/{CZ-B3oiWDug.js → CZ-Dja4qwcT.js} +0 -0
- /package/dist/{CZ-B8nb2PxI.js → CZ-YWMbXtXr.js} +0 -0
- /package/dist/{ContractViewer-zPVipxCC.js → ContractViewer-Bm8_7yzG.js} +0 -0
- /package/dist/{DE-SZPlEjww.js → DE-DMd-G1qV.js} +0 -0
- /package/dist/{DE-NkKgh0-y.js → DE-w2hYM5oM.js} +0 -0
- /package/dist/{DK-CB_26cPx.js → DK-BCGM05gZ.js} +0 -0
- /package/dist/{DK-CO2QUqp2.js → DK-DSnMDq6I.js} +0 -0
- /package/dist/{DK-CikJtsBF.js → DK-Ljpod950.js} +0 -0
- /package/dist/{DK-DAYxZyrn.js → DK-eIIuE_Ae.js} +0 -0
- /package/dist/{DO-DWjKCR-x.js → DO-DtMkGZOf.js} +0 -0
- /package/dist/{DetailViewLayout-Cz3FVZ5a.js → DetailViewLayout-Dd5YzmcW.js} +0 -0
- /package/dist/{Divider-CrK4vlsJ.js → Divider-DMwncntz.js} +0 -0
- /package/dist/{EC-CCGvbVWA.js → EC-BXvXPzDj.js} +0 -0
- /package/dist/{EE-DebeWn2E.js → EE-CVByoRMi.js} +0 -0
- /package/dist/{ES-DXLZWZXA.js → ES-CUnZIEd0.js} +0 -0
- /package/dist/{ES-m71Tl7fE.js → ES-DeyB_elh.js} +0 -0
- /package/dist/{ES-D2CBh7YF.js → ES-Y_7i9YXf.js} +0 -0
- /package/dist/{ES-Bf5fpQJJ.js → ES-iJqNvrUi.js} +0 -0
- /package/dist/{FI-L14G4S91.js → FI-BWqqCJsb.js} +0 -0
- /package/dist/{FI-_CR_F2Ml.js → FI-CYEGXSok.js} +0 -0
- /package/dist/{FI-Clx-zbKe.js → FI-E_ZyfJ7t.js} +0 -0
- /package/dist/{FI-Cbz5-l9v.js → FI-MY2FM2Ba.js} +0 -0
- /package/dist/{FJ-BKLmDeVh.js → FJ-dwvq-g41.js} +0 -0
- /package/dist/{FO-D7VnFgWu.js → FO-CWQ0W1H6.js} +0 -0
- /package/dist/{FR-wqLTqKJj.js → FR-D-sCwq5T.js} +0 -0
- /package/dist/{FR-D2lGCnJC.js → FR-DjzV5rWM.js} +0 -0
- /package/dist/{FR-DwVflgGw.js → FR-O_hbmwJW.js} +0 -0
- /package/dist/{FR-D2zQy3jq.js → FR-uHAf38N_.js} +0 -0
- /package/dist/{GB-CIqAOZg5.js → GB-B_yGxbz9.js} +0 -0
- /package/dist/{GB-CVb-Rw8a.js → GB-BogW6TU0.js} +0 -0
- /package/dist/{GB-DD4csU-b.js → GB-D9JlI1Pd.js} +0 -0
- /package/dist/{GB-BX3mPDDS.js → GB-nAqfhFIu.js} +0 -0
- /package/dist/{GE-D02s-9eo.js → GE-DI1v7mo0.js} +0 -0
- /package/dist/{GF-BcHxbxvv.js → GF-B610wYeJ.js} +0 -0
- /package/dist/{GG-C3cx2hzZ.js → GG-CilWz47C.js} +0 -0
- /package/dist/{GI-D_DZhrwe.js → GI-DFtvvGTY.js} +0 -0
- /package/dist/{GL-BUOXwUJ0.js → GL-D36pp53C.js} +0 -0
- /package/dist/{GP-CmZCjGab.js → GP-yyCziKB4.js} +0 -0
- /package/dist/{GR-BxjWJl4T.js → GR-BxzVHYz8.js} +0 -0
- /package/dist/{GT-C_l7WI2f.js → GT-QLXEWmtP.js} +0 -0
- /package/dist/{GU-7zSp4NP8.js → GU-jrvpoyb9.js} +0 -0
- /package/dist/{HK-dz43_PmR.js → HK-7piAoW_I.js} +0 -0
- /package/dist/{HK-DXmjOLnc.js → HK-Bds0tONE.js} +0 -0
- /package/dist/{HK-Dc3v2ZB0.js → HK-_r_OF-9C.js} +0 -0
- /package/dist/{HK-D5lgUGIW.js → HK-sOnb583U.js} +0 -0
- /package/dist/{HR-D3ZZV7I7.js → HR-BCfmzAgq.js} +0 -0
- /package/dist/{HR-BvWaw8qz.js → HR-BDdXb-_o.js} +0 -0
- /package/dist/{HR-SfBt4kaq.js → HR-BK-Ftu3Y.js} +0 -0
- /package/dist/{HR-ChipU8Kr.js → HR-CSBA8yzB.js} +0 -0
- /package/dist/{HU-CzI3Elvd.js → HU-CXMDpfpO.js} +0 -0
- /package/dist/{HU-9NTdjUUV.js → HU-CzYTCtjV.js} +0 -0
- /package/dist/{HU-1UX4rgmz.js → HU-DNz6LyOy.js} +0 -0
- /package/dist/{HU-wpmPNNka.js → HU-LjAmjKXg.js} +0 -0
- /package/dist/{ID-O2T9tbLO.js → ID-Dl7g2Ppa.js} +0 -0
- /package/dist/{IE-OqeqXlhV.js → IE-BLIooyFf.js} +0 -0
- /package/dist/{IE-Cw9l0506.js → IE-CmK-C0yz.js} +0 -0
- /package/dist/{IE-CRaBXxhc.js → IE-CzscvH5E.js} +0 -0
- /package/dist/{IE-DWpH_5Cq.js → IE-DQX622ez.js} +0 -0
- /package/dist/{IL-1hVGBOhQ.js → IL-Cfpmk1v7.js} +0 -0
- /package/dist/{IM-B1t_Q0mE.js → IM-C2sXmVTc.js} +0 -0
- /package/dist/{IN-BAGr7C88.js → IN-DilwgNAy.js} +0 -0
- /package/dist/{IS-C97KS-Cn.js → IS-CFtJpGcN.js} +0 -0
- /package/dist/{IT-b5Hsdl6Z.js → IT-BlfPdNZf.js} +0 -0
- /package/dist/{IT-GLNikVmY.js → IT-DKj3BSzv.js} +0 -0
- /package/dist/{IT-Bqf_SGsX.js → IT-ZNOnAgQx.js} +0 -0
- /package/dist/{IT-PBgScy3E.js → IT-fTjXyL20.js} +0 -0
- /package/dist/{InputGroup-2FJnD0LO.js → InputGroup-CVYzCygf.js} +0 -0
- /package/dist/{JE-D9zaTrAY.js → JE-X57q_Fdk.js} +0 -0
- /package/dist/{JM-6zLyaeVi.js → JM-Bx2hppi2.js} +0 -0
- /package/dist/{JO-BdNdFHnL.js → JO-DhBlXP2F.js} +0 -0
- /package/dist/{JP-znYbtZMc.js → JP-UnxSZuO9.js} +0 -0
- /package/dist/{KR-xcUi-9h2.js → KR-D3U_AtZT.js} +0 -0
- /package/dist/{KW-3DCYRJ53.js → KW-m7bxO2Xa.js} +0 -0
- /package/dist/{KY-CCApxZ6r.js → KY-CpUXfGcI.js} +0 -0
- /package/dist/{KZ-Cqr8yPqY.js → KZ-C8RUkmV6.js} +0 -0
- /package/dist/{LB-R74h2pUy.js → LB-BRrDvnrf.js} +0 -0
- /package/dist/{LI-D9H9hvDG.js → LI-BN5PGW_H.js} +0 -0
- /package/dist/{LT-COGUxKB6.js → LT-BD32wyXh.js} +0 -0
- /package/dist/{LT-DkKeNYqC.js → LT-Cm6wbvw_.js} +0 -0
- /package/dist/{LT-CDQI5_NM.js → LT-CmyEYM7z.js} +0 -0
- /package/dist/{LT-Dq5I_vLb.js → LT-CnQZpkC8.js} +0 -0
- /package/dist/{LU-B7-x8Llo.js → LU-Bi4L1b9z.js} +0 -0
- /package/dist/{LV-DAzwuNGM.js → LV-ukOdBuwo.js} +0 -0
- /package/dist/{MC-DYg2Ld6N.js → MC-EQ1jmHjl.js} +0 -0
- /package/dist/{MD-BSGq8uEc.js → MD-DxAeNcG8.js} +0 -0
- /package/dist/{ME-CMYolexb.js → ME-CvndvtiG.js} +0 -0
- /package/dist/{MK-KXTP17uw.js → MK-sohc7De9.js} +0 -0
- /package/dist/{MP-CJH5I9LN.js → MP-CCltX7ag.js} +0 -0
- /package/dist/{MQ-B-Nxd16T.js → MQ-DonPA9tN.js} +0 -0
- /package/dist/{MR-9gjgEzl5.js → MR-Bh6ZCghL.js} +0 -0
- /package/dist/{MT-DCvbkYrX.js → MT-LIvGhW6j.js} +0 -0
- /package/dist/{MU-CVDBPgAP.js → MU-kys50fwN.js} +0 -0
- /package/dist/{MX-B8dPVdJo.js → MX-UvvHVHCC.js} +0 -0
- /package/dist/{MY-DcfNGXIG.js → MY-B6EJ4miK.js} +0 -0
- /package/dist/{NC-DQQUjrGe.js → NC-D78ykfoF.js} +0 -0
- /package/dist/{NL-Bu5_sjR1.js → NL-B4viFWts.js} +0 -0
- /package/dist/{NL-McMEOXeg.js → NL-B5Jdha1b.js} +0 -0
- /package/dist/{NL-DQR9Rrua.js → NL-C1hyj3uD.js} +0 -0
- /package/dist/{NL-CMB4A6y3.js → NL-Cq2QKj_R.js} +0 -0
- /package/dist/{NO-Pppylsvl.js → NO-Cx28Ws5i.js} +0 -0
- /package/dist/{NO-CKPHTYW8.js → NO-DWhh9Air.js} +0 -0
- /package/dist/{NO-C1lR0Cpn.js → NO-H-zekTG-.js} +0 -0
- /package/dist/{NO-DAvhrELf.js → NO-Pyh5_V7y.js} +0 -0
- /package/dist/{NZ-BLYvv2PK.js → NZ-3UV4o2z9.js} +0 -0
- /package/dist/{NZ-BuvPkC2r.js → NZ-7A0F7nHF.js} +0 -0
- /package/dist/{PE-J7zWKbQ3.js → PE-DHm86V9n.js} +0 -0
- /package/dist/{PF-CQvMXWIc.js → PF-CPMgKxu3.js} +0 -0
- /package/dist/{PH-CsAkleLZ.js → PH-B_NakBgs.js} +0 -0
- /package/dist/{PK-pnVCB70L.js → PK-CcdXkTsY.js} +0 -0
- /package/dist/{PL-D6iB2qQS.js → PL-B-r78jqe.js} +0 -0
- /package/dist/{PL-BIkD7ly2.js → PL-BXdTON9P.js} +0 -0
- /package/dist/{PL-DdsUKlRx.js → PL-D9Kpjom5.js} +0 -0
- /package/dist/{PL-Cfpb3P4Y.js → PL-DqbLsWwr.js} +0 -0
- /package/dist/{PM-DXhRSYlY.js → PM-C-GliGAO.js} +0 -0
- /package/dist/{PR-BJTR9010.js → PR-JCXbpE0b.js} +0 -0
- /package/dist/{PS-Bb7ensjm.js → PS-D62VdZaN.js} +0 -0
- /package/dist/{PT-iBbOYasm.js → PT-CTHCZX6D.js} +0 -0
- /package/dist/{PT-D_mzbSbR.js → PT-D9big47n.js} +0 -0
- /package/dist/{PT-Bqv36Ez0.js → PT-DD2rFBMf.js} +0 -0
- /package/dist/{PT-DMau-7AE.js → PT-JGHvjgoQ.js} +0 -0
- /package/dist/{QA-Cya8smAe.js → QA-CeWT26tF.js} +0 -0
- /package/dist/{RE-DV-Olrl9.js → RE-DSGfn_pm.js} +0 -0
- /package/dist/{RO-D29rc5pZ.js → RO-2Z925JkN.js} +0 -0
- /package/dist/{RO-7ngAIZ4E.js → RO-BX6cRBo0.js} +0 -0
- /package/dist/{RO-JvqtRH2p.js → RO-ClR_J1im.js} +0 -0
- /package/dist/{RO-Nqdvv0rk.js → RO-iqYS6MK1.js} +0 -0
- /package/dist/{RS-Bdspw_Te.js → RS-B2iIit5I.js} +0 -0
- /package/dist/{RU-2VREcND8.js → RU-dSs63sUC.js} +0 -0
- /package/dist/{SA-ONrtr4dq.js → SA-D2c21Lvo.js} +0 -0
- /package/dist/{SE-Bp9QG9OZ.js → SE-B9Ci8NDi.js} +0 -0
- /package/dist/{SE-CjCMy1R-.js → SE-KYCakrsZ.js} +0 -0
- /package/dist/{SE-CfwjGhj2.js → SE-P9xbQO4o.js} +0 -0
- /package/dist/{SE-CspSL4-O.js → SE-gc_M1IUS.js} +0 -0
- /package/dist/{SG-BSxtCx98.js → SG-3-TYykP-.js} +0 -0
- /package/dist/{SG-W9jzYBBR.js → SG-BdyiGgTo.js} +0 -0
- /package/dist/{SG-Cte5jgnm.js → SG-BgkMHf8k.js} +0 -0
- /package/dist/{SG-Bx4a8mSG.js → SG-DqvdUiWw.js} +0 -0
- /package/dist/{SI-ClAvsgGs.js → SI-B6tdfn5Z.js} +0 -0
- /package/dist/{SI-DuER-ftQ.js → SI-BLo3mGXB.js} +0 -0
- /package/dist/{SI-D_WmP1xi.js → SI-CZicy3TO.js} +0 -0
- /package/dist/{SI-CjPVM480.js → SI-HuUerVbj.js} +0 -0
- /package/dist/{SJ-DRle19p-.js → SJ-yb3-jDZT.js} +0 -0
- /package/dist/{SK-KhQnqXtK.js → SK-CWOi0nV4.js} +0 -0
- /package/dist/{SK-BXY1VMKv.js → SK-Cde9pJdY.js} +0 -0
- /package/dist/{SK-CFssz9bO.js → SK-D8pAx-Kv.js} +0 -0
- /package/dist/{SK-CP4lBBly.js → SK-MOEK5YmF.js} +0 -0
- /package/dist/{SM-v_4Yc2mM.js → SM-BBKV-_UA.js} +0 -0
- /package/dist/{TF-BhrG4wMf.js → TF-B0dgTCfm.js} +0 -0
- /package/dist/{TH-Dnjjl0vl.js → TH-CmVSlUuX.js} +0 -0
- /package/dist/{TL-DV3_HDbD.js → TL-nRB_lM2i.js} +0 -0
- /package/dist/{TN-CvaVweYw.js → TN-CGwMdeBx.js} +0 -0
- /package/dist/{TR-BAvGXlpl.js → TR-B-J7KAnx.js} +0 -0
- /package/dist/{TT-DRIx1q2s.js → TT-Cd6NBPP1.js} +0 -0
- /package/dist/{TW-DRf29Guu.js → TW-BQVlyIhq.js} +0 -0
- /package/dist/{Tag-BUoDHC4C.js → Tag-BhU73i1R.js} +0 -0
- /package/dist/{UA-Ba88l6Xd.js → UA-BAfANYki.js} +0 -0
- /package/dist/{US-QONZX-gV.js → US-CpwACQXZ.js} +0 -0
- /package/dist/{US-Df5L2r8F.js → US-CqkPo4au.js} +0 -0
- /package/dist/{US-m2RymYgz.js → US-DqDIO6Fs.js} +0 -0
- /package/dist/{US-CKehaXnS.js → US-DqKhjxWO.js} +0 -0
- /package/dist/{UY-C7OqeI1W.js → UY-CqTNFGkq.js} +0 -0
- /package/dist/{VA-kEhphxOY.js → VA-BOTo9AUe.js} +0 -0
- /package/dist/{VG-9RtXQCNA.js → VG-DGXnBmqr.js} +0 -0
- /package/dist/{VI-Dtn9fHsy.js → VI-D8j8IzJs.js} +0 -0
- /package/dist/{VN-CQ52lXXR.js → VN-wC6sHs21.js} +0 -0
- /package/dist/{WF-D5AVATSv.js → WF-Cv-zZiEX.js} +0 -0
- /package/dist/{YT-B9qrlCqK.js → YT-BJrZCXu7.js} +0 -0
- /package/dist/{ZA-CZ_c0XHc.js → ZA-BU2vcyD6.js} +0 -0
- /package/dist/{bg-BG-DqWeAqky.js → bg-BG-B4UENfME.js} +0 -0
- /package/dist/{bg-BG-Ckeu3dBt.js → bg-BG-BTLje0t8.js} +0 -0
- /package/dist/{bg-BG-DnMyf-n3.js → bg-BG-BTOD22Qv.js} +0 -0
- /package/dist/{bg-BG-ymvx5WWi.js → bg-BG-Bayyn2Vj.js} +0 -0
- /package/dist/{bg-BG-C0wzRs18.js → bg-BG-BlOJQ7iZ.js} +0 -0
- /package/dist/{bg-BG-CN_UREwh.js → bg-BG-BrldKcYl.js} +0 -0
- /package/dist/{bg-BG-D2t5UzpH.js → bg-BG-CMHh_f-9.js} +0 -0
- /package/dist/{bg-BG-B67nlf6n.js → bg-BG-DaiKPUAP.js} +0 -0
- /package/dist/{bg-BG-BxkwIoTQ.js → bg-BG-Doq5SqNZ.js} +0 -0
- /package/dist/{bg-BG-DQPBlfB6.js → bg-BG-DxgO5P4C.js} +0 -0
- /package/dist/{business-lines-BYTyy_mD.js → business-lines-D2Cf_2Uz.js} +0 -0
- /package/dist/{cs-CZ-BJQndp5g.js → cs-CZ-BKxJwZfp.js} +0 -0
- /package/dist/{cs-CZ-CgD-Dni9.js → cs-CZ-BewEGSI7.js} +0 -0
- /package/dist/{cs-CZ-DerpXyW7.js → cs-CZ-CKjEL0Uh.js} +0 -0
- /package/dist/{cs-CZ-Cf3RE2Kz.js → cs-CZ-CNCOzk0z.js} +0 -0
- /package/dist/{cs-CZ-EALbGC0P.js → cs-CZ-ClrALb5y.js} +0 -0
- /package/dist/{cs-CZ-y--aL5tG.js → cs-CZ-CtEcakjz.js} +0 -0
- /package/dist/{cs-CZ-D0tlzysb.js → cs-CZ-CyvOwxhe.js} +0 -0
- /package/dist/{cs-CZ-BSCmFoe-.js → cs-CZ-DEgPgybF.js} +0 -0
- /package/dist/{cs-CZ-nVt_3Wsc.js → cs-CZ-Dit1sTZS.js} +0 -0
- /package/dist/{cs-CZ-B0PS89aw.js → cs-CZ-DlGWvcHs.js} +0 -0
- /package/dist/{currency-DNgyvN7z.js → currency-CfIDpZh9.js} +0 -0
- /package/dist/{da-DK-DSrFDOG3.js → da-DK-1WDwSuvK.js} +0 -0
- /package/dist/{da-DK-DcplyxCd.js → da-DK-B4yaF8i0.js} +0 -0
- /package/dist/{da-DK-Cu2Bi6Q7.js → da-DK-CSuIOYvv.js} +0 -0
- /package/dist/{da-DK-DbpZoBrp.js → da-DK-CUdNKP_y.js} +0 -0
- /package/dist/{da-DK-gVDOt4Mx.js → da-DK-C_3U-U_o.js} +0 -0
- /package/dist/{da-DK-Bdp8gkhn.js → da-DK-CfGOWrfh.js} +0 -0
- /package/dist/{da-DK-B_qoG-tX.js → da-DK-Cn-jl2Cb.js} +0 -0
- /package/dist/{da-DK-niSqcowC.js → da-DK-Cp1cdZTG.js} +0 -0
- /package/dist/{da-DK-DgFOdais.js → da-DK-Dq9DBbxy.js} +0 -0
- /package/dist/{da-DK-DFjTxgfg.js → da-DK-FIY6i3zy.js} +0 -0
- /package/dist/{de-DE-CJAVduiD.js → de-DE-8TTs3M7a.js} +0 -0
- /package/dist/{de-DE-CSfZ-fLe.js → de-DE-BgtEAyle.js} +0 -0
- /package/dist/{de-DE-BVoU3x7q.js → de-DE-BijX4bA6.js} +0 -0
- /package/dist/{de-DE-CPjVxwLK.js → de-DE-BnAkTJpS.js} +0 -0
- /package/dist/{de-DE-Ccbobm6F.js → de-DE-Cb9uR42z.js} +0 -0
- /package/dist/{de-DE-DLpDehXu.js → de-DE-Cfa03DOz.js} +0 -0
- /package/dist/{de-DE-KXIXcUTs.js → de-DE-DIAsDD5Z.js} +0 -0
- /package/dist/{de-DE-BsZOOvbi.js → de-DE-DLQs11Hz.js} +0 -0
- /package/dist/{de-DE-DXLRcNXw.js → de-DE-KstYakJ3.js} +0 -0
- /package/dist/{de-DE-Qs8eQGQS.js → de-DE-UxQXcw2Z.js} +0 -0
- /package/dist/{de-DE-Bsrf1Qk-.js → de-DE-ZWLyKP5G.js} +0 -0
- /package/dist/{decision-makers-group-Cof9scJd.js → decision-makers-group-BLkUEz0w.js} +0 -0
- /package/dist/{digital-wallet-BXDAhThn.js → digital-wallet-CI3K9Uw0.js} +0 -0
- /package/dist/{document-blurred-LCBsN2NC.js → document-blurred-B-Wt2Pm6.js} +0 -0
- /package/dist/{document-cut-off-wsPtcq1x.js → document-cut-off-B6ZR7USy.js} +0 -0
- /package/dist/{document-expired-CvTJKcZr.js → document-expired-hBQfwBk_.js} +0 -0
- /package/dist/{document-front-BHCo0w58.js → document-front-C-0BBlnD.js} +0 -0
- /package/dist/{el-GR-C7o9YGzw.js → el-GR-B45eXweN.js} +0 -0
- /package/dist/{el-GR-D9AagIjI.js → el-GR-BIJ5syl-.js} +0 -0
- /package/dist/{el-GR-DvgAQImQ.js → el-GR-BaFJE4xB.js} +0 -0
- /package/dist/{el-GR-BUGibSyd.js → el-GR-DKvfOcBT.js} +0 -0
- /package/dist/{el-GR-DZuLkaBp.js → el-GR-DOSF9KOE.js} +0 -0
- /package/dist/{el-GR-Doj3UHZu.js → el-GR-DSmTVw3A.js} +0 -0
- /package/dist/{el-GR-CN3HrU9J.js → el-GR-DhmD_M7I.js} +0 -0
- /package/dist/{el-GR-CNDZGVN3.js → el-GR-JdIfiWWD.js} +0 -0
- /package/dist/{el-GR-C-HtCTGV.js → el-GR-SFcfMp0Q.js} +0 -0
- /package/dist/{el-GR-B1VnihMi.js → el-GR-WE5RvoaZ.js} +0 -0
- /package/dist/{el-GR-DRbd6eXu.js → el-GR-no-mXzHz.js} +0 -0
- /package/dist/{emitEvent-B8K0cb1F.js → emitEvent-Cdd95HOT.js} +0 -0
- /package/dist/{en-US-IxvcS3bq.js → en-US-5p2iDJhN.js} +0 -0
- /package/dist/{en-US-CwN7_Z6A.js → en-US-B8NkYtpw.js} +0 -0
- /package/dist/{en-US-Rnj0uOlI.js → en-US-BT_egPzn.js} +0 -0
- /package/dist/{en-US-DH-5G1L0.js → en-US-BeS_zqnX.js} +0 -0
- /package/dist/{en-US-BgLFeko-.js → en-US-CJI3UFnZ.js} +0 -0
- /package/dist/{en-US-D6psKu6Y.js → en-US-Cq8S64a_.js} +0 -0
- /package/dist/{en-US-Cwp_kAIu.js → en-US-Cv8_OsAw.js} +0 -0
- /package/dist/{en-US-3j1Js4vT.js → en-US-Cya3hns9.js} +0 -0
- /package/dist/{en-US-Bg9gdBEC.js → en-US-DBiYkRmE.js} +0 -0
- /package/dist/{en-US-B3MAOxZH.js → en-US-DNp65pGY.js} +0 -0
- /package/dist/{en-US-CEBexxFl.js → en-US-DRNwZI6c.js} +0 -0
- /package/dist/{en-US-hCtMObDn.js → en-US-DlwEfQT_.js} +0 -0
- /package/dist/{en-US-BWMrfrd7.js → en-US-DtWDVC_l.js} +0 -0
- /package/dist/{en-US-C81RZMm3.js → en-US-DuN8U_xd.js} +0 -0
- /package/dist/{en-US-D1y6M9AI.js → en-US-EATAFzTk.js} +0 -0
- /package/dist/{en-US-rEquAkrM.js → en-US-Mma5wIWL.js} +0 -0
- /package/dist/{en-US-RJmb2nTR.js → en-US-Y8C6Dmuq.js} +0 -0
- /package/dist/{en-US-DqbNEPfm.js → en-US-f2kgWe84.js} +0 -0
- /package/dist/{en-US-CnVk6lVt.js → en-US-rKfA1z58.js} +0 -0
- /package/dist/{en-US-jcuu40kx.js → en-US-sJXY3-OZ.js} +0 -0
- /package/dist/{en-US.instructions-C5xXRJDu.js → en-US.instructions-DJharl6b.js} +0 -0
- /package/dist/{en-US.instructions-Bh8SYzc5.js → en-US.instructions-HI_HXwIA.js} +0 -0
- /package/dist/{es-ES-D-n6xoWo.js → es-ES-4opI0QUT.js} +0 -0
- /package/dist/{es-ES-BkeAb5PG.js → es-ES-BUSxmdKa.js} +0 -0
- /package/dist/{es-ES-H0DZcC1K.js → es-ES-C9ahP89x.js} +0 -0
- /package/dist/{es-ES-CLr_KwxQ.js → es-ES-CKWpTQva.js} +0 -0
- /package/dist/{es-ES-hX5WUfzS.js → es-ES-CaHa-8Wb.js} +0 -0
- /package/dist/{es-ES-DWjfZmTj.js → es-ES-CgcvvmLv.js} +0 -0
- /package/dist/{es-ES-DKenRcq3.js → es-ES-Cigb2wKi.js} +0 -0
- /package/dist/{es-ES-B7uIo7kE.js → es-ES-DOQIN_Pf.js} +0 -0
- /package/dist/{es-ES-D1vAd-8r.js → es-ES-DadFxwkn.js} +0 -0
- /package/dist/{es-ES-Bwj2MUyM.js → es-ES-DyrLbt2G.js} +0 -0
- /package/dist/{es-ES-8AtDNr6X.js → es-ES-I6sgbCZT.js} +0 -0
- /package/dist/{et-EE-Du3REm6O.js → et-EE-9bkSuMa4.js} +0 -0
- /package/dist/{et-EE-Cs__RUB9.js → et-EE-ASxV620T.js} +0 -0
- /package/dist/{et-EE-CWGint-T.js → et-EE-BM23BrCu.js} +0 -0
- /package/dist/{et-EE-CfheEJAy.js → et-EE-BeU-JlIv.js} +0 -0
- /package/dist/{et-EE-_uLrdnTi.js → et-EE-BfEYv_4i.js} +0 -0
- /package/dist/{et-EE-BSAr_xVc.js → et-EE-BtoIECkX.js} +0 -0
- /package/dist/{et-EE-Mp-OiQL2.js → et-EE-CjKIw3AU.js} +0 -0
- /package/dist/{et-EE-CNNN-M_x.js → et-EE-CmMB9hVL.js} +0 -0
- /package/dist/{et-EE-DmlaKK4B.js → et-EE-DM6LdueH.js} +0 -0
- /package/dist/{et-EE-DsLOML8r.js → et-EE-DoE8YNk_.js} +0 -0
- /package/dist/{fi-FI-Bx1S9eQf.js → fi-FI-B2a7jEBx.js} +0 -0
- /package/dist/{fi-FI-BKXhGjNk.js → fi-FI-B78n6HpV.js} +0 -0
- /package/dist/{fi-FI-BcdVq2e0.js → fi-FI-BALtktMY.js} +0 -0
- /package/dist/{fi-FI-BY9X2DpF.js → fi-FI-CUapPvf9.js} +0 -0
- /package/dist/{fi-FI-Dy_bfWw7.js → fi-FI-D1E8MJUW.js} +0 -0
- /package/dist/{fi-FI-Cl1vbAPV.js → fi-FI-DFDdEnkT.js} +0 -0
- /package/dist/{fi-FI-1nGlfW_t.js → fi-FI-DKJi4py_.js} +0 -0
- /package/dist/{fi-FI-pvpGl_6s.js → fi-FI-YpLcMuZy.js} +0 -0
- /package/dist/{fi-FI-iyr94E5r.js → fi-FI-qP49OAGS.js} +0 -0
- /package/dist/{fi-FI-DdyNwoGb.js → fi-FI-whtJ_DRy.js} +0 -0
- /package/dist/{form-rules-CvdV5rPY.js → form-rules-ZiRm6ke_.js} +0 -0
- /package/dist/{fr-FR-DcXwaT3d.js → fr-FR-06Yp4eGU.js} +0 -0
- /package/dist/{fr-FR-Ta6QBpqt.js → fr-FR-B3vqlNZF.js} +0 -0
- /package/dist/{fr-FR-DksMI4zV.js → fr-FR-CIKDSi33.js} +0 -0
- /package/dist/{fr-FR-CEWcwAJ-.js → fr-FR-CK15MC1P.js} +0 -0
- /package/dist/{fr-FR-CMMz7OEo.js → fr-FR-CWBeJe7e.js} +0 -0
- /package/dist/{fr-FR-DC_PZPwP.js → fr-FR-Cjf6-Jyc.js} +0 -0
- /package/dist/{fr-FR-DzjwEGsx.js → fr-FR-D0u4AlOp.js} +0 -0
- /package/dist/{fr-FR-B9xNxWia.js → fr-FR-D34baGa-.js} +0 -0
- /package/dist/{fr-FR-DL8mtS3r.js → fr-FR-DvCNUz7O.js} +0 -0
- /package/dist/{fr-FR-DKjCgBfS.js → fr-FR-JIF28b7U.js} +0 -0
- /package/dist/{fr-FR-CqbeB381.js → fr-FR-SabLrXSF.js} +0 -0
- /package/dist/{funds-in-04OBDLJw.js → funds-in-CAnTUH27.js} +0 -0
- /package/dist/{house-BfjiK4vF.js → house-g9QDTtcl.js} +0 -0
- /package/dist/{hr-HR-CJHkB1ko.js → hr-HR-B0eeXkQr.js} +0 -0
- /package/dist/{hr-HR-Ck-S-k5d.js → hr-HR-BnhnItTZ.js} +0 -0
- /package/dist/{hr-HR-FHDzcIUl.js → hr-HR-C0bGzQNB.js} +0 -0
- /package/dist/{hr-HR-EhBzx8FM.js → hr-HR-C12BPU_3.js} +0 -0
- /package/dist/{hr-HR-BqNvRwoc.js → hr-HR-C4LLZhRc.js} +0 -0
- /package/dist/{hr-HR-D0Xp4lTU.js → hr-HR-C4sBzG1i.js} +0 -0
- /package/dist/{hr-HR-B8MiNFt0.js → hr-HR-C7vNP6kG.js} +0 -0
- /package/dist/{hr-HR-Bp5qQwHS.js → hr-HR-Cv9n6lNS.js} +0 -0
- /package/dist/{hr-HR-pOpa3-4-.js → hr-HR-FCvgQhQb.js} +0 -0
- /package/dist/{hr-HR-CMcgajLG.js → hr-HR-mQCFA1Pe.js} +0 -0
- /package/dist/{hu-HU-C-gD2scj.js → hu-HU-1NJpWkUj.js} +0 -0
- /package/dist/{hu-HU-HNscNs5I.js → hu-HU-40vuNto8.js} +0 -0
- /package/dist/{hu-HU-Cq3L3459.js → hu-HU-BcBrcjkc.js} +0 -0
- /package/dist/{hu-HU-DG9r7Yn5.js → hu-HU-BrwdCVwT.js} +0 -0
- /package/dist/{hu-HU-u7Q5hZ8M.js → hu-HU-CeloZXjg.js} +0 -0
- /package/dist/{hu-HU-xJ7HEjBk.js → hu-HU-DBqKyuYs.js} +0 -0
- /package/dist/{hu-HU-BOCGei6J.js → hu-HU-DgjvclPA.js} +0 -0
- /package/dist/{hu-HU-BF3I2cDh.js → hu-HU-DmlhDBmZ.js} +0 -0
- /package/dist/{hu-HU-DZmGYcpb.js → hu-HU-LQ4-J73z.js} +0 -0
- /package/dist/{hu-HU-DZnrPw7M.js → hu-HU-is6BaLdQ.js} +0 -0
- /package/dist/{id-blurred-DajPeUev.js → id-blurred-8OIg137Y.js} +0 -0
- /package/dist/{id-cut-off-Cg7VH88-.js → id-cut-off-BzOwUOl_.js} +0 -0
- /package/dist/{id-front-BFiC6TLx.js → id-front-Bfirxdas.js} +0 -0
- /package/dist/{id-glare--tl3DxTG.js → id-glare-LAYtTogY.js} +0 -0
- /package/dist/{isEmpty-DFUWFV4h.js → isEmpty-Dw2W8jeR.js} +0 -0
- /package/dist/{it-IT-BVcopRE0.js → it-IT-B3v42hPz.js} +0 -0
- /package/dist/{it-IT-CKYkplGl.js → it-IT-BQYdAY1h.js} +0 -0
- /package/dist/{it-IT-BFVfcntm.js → it-IT-BZrpE0qK.js} +0 -0
- /package/dist/{it-IT-Bncw2hQ-.js → it-IT-C3AVk1uR.js} +0 -0
- /package/dist/{it-IT-MRrAO1jy.js → it-IT-C4b9Y6tP.js} +0 -0
- /package/dist/{it-IT-YCjFrZ-Z.js → it-IT-Da1C4AGd.js} +0 -0
- /package/dist/{it-IT-DWt33Mig.js → it-IT-DdZkV6nQ.js} +0 -0
- /package/dist/{it-IT-Cd3oPF1M.js → it-IT-Kc1R4_Rn.js} +0 -0
- /package/dist/{it-IT-rGM1QmSW.js → it-IT-V8vgqucm.js} +0 -0
- /package/dist/{it-IT-C-OxfLhZ.js → it-IT-gr7SB9fh.js} +0 -0
- /package/dist/{it-IT-CBQ2gGE7.js → it-IT-jTdy1a4s.js} +0 -0
- /package/dist/{ja-JP-Cla1MJLj.js → ja-JP-BFkGV7Ct.js} +0 -0
- /package/dist/{ja-JP-DieVzA1B.js → ja-JP-BfhqPamw.js} +0 -0
- /package/dist/{ja-JP-CNNwQyYR.js → ja-JP-BgEGc_Ko.js} +0 -0
- /package/dist/{ja-JP-BDPtYIpq.js → ja-JP-CMoTPLi7.js} +0 -0
- /package/dist/{ja-JP-C0ASZo79.js → ja-JP-CWS-Pg-_.js} +0 -0
- /package/dist/{ja-JP-CgfF4yTt.js → ja-JP-D9Doo4LH.js} +0 -0
- /package/dist/{ja-JP-CsgosKvD.js → ja-JP-D9ybdRsh.js} +0 -0
- /package/dist/{ja-JP-CLmtF9H_.js → ja-JP-DB56llc7.js} +0 -0
- /package/dist/{ja-JP-DyUgd4BE.js → ja-JP-EJJaOy4m.js} +0 -0
- /package/dist/{ja-JP-CQBoZgiC.js → ja-JP-ei-QPx_X.js} +0 -0
- /package/dist/{ja-JP-B8Rg2VNl.js → ja-JP-ogtt9tGy.js} +0 -0
- /package/dist/{ja-JP-uXR7c5rz.js → ja-JP-qs4tLgRF.js} +0 -0
- /package/dist/{lt-LT-BRFs6EyI.js → lt-LT-948HQZhZ.js} +0 -0
- /package/dist/{lt-LT-DsKGJjAK.js → lt-LT-BCqnP7r6.js} +0 -0
- /package/dist/{lt-LT-Dv9CNqL5.js → lt-LT-BogWzvP3.js} +0 -0
- /package/dist/{lt-LT-CxHglunM.js → lt-LT-BqS69oFX.js} +0 -0
- /package/dist/{lt-LT-DCexrILL.js → lt-LT-BrGzLEwY.js} +0 -0
- /package/dist/{lt-LT-CK-_FLDK.js → lt-LT-CTP-6_vr.js} +0 -0
- /package/dist/{lt-LT-2d52byGI.js → lt-LT-ChOTn0eR.js} +0 -0
- /package/dist/{lt-LT-ykgOI1Lh.js → lt-LT-Cq2T_YgH.js} +0 -0
- /package/dist/{lt-LT-B9QsV1Fl.js → lt-LT-DFZD-gis.js} +0 -0
- /package/dist/{lt-LT-CyVGhu0R.js → lt-LT-DTo_g5gi.js} +0 -0
- /package/dist/{lv-LV-OjadvSbn.js → lv-LV-BEtE7iP6.js} +0 -0
- /package/dist/{lv-LV-1DHJcJtx.js → lv-LV-BJgLY-OW.js} +0 -0
- /package/dist/{lv-LV-CrYidfpB.js → lv-LV-BKdYq30o.js} +0 -0
- /package/dist/{lv-LV-CALhnU3h.js → lv-LV-BuCZvLms.js} +0 -0
- /package/dist/{lv-LV-Dlq59Kg7.js → lv-LV-C6cnH9ql.js} +0 -0
- /package/dist/{lv-LV-BhvjJBtW.js → lv-LV-CJlW1MAb.js} +0 -0
- /package/dist/{lv-LV-BZ6GdtSG.js → lv-LV-CihtKM8-.js} +0 -0
- /package/dist/{lv-LV-pzQT6oF4.js → lv-LV-CrfpEaoB.js} +0 -0
- /package/dist/{lv-LV-DXmGZc4u.js → lv-LV-DcclJdry.js} +0 -0
- /package/dist/{lv-LV-vUmm_Y8X.js → lv-LV-T_Ln1nZG.js} +0 -0
- /package/dist/{mapAddressLocalizationToJpAddressSchema-Cp77VSSB.js → mapAddressLocalizationToJpAddressSchema-Cu5HfF7K.js} +0 -0
- /package/dist/{nl-NL-D9OFsGYi.js → nl-NL-B1KPiFMu.js} +0 -0
- /package/dist/{nl-NL-BtXGtpjP.js → nl-NL-B4zO0Q4_.js} +0 -0
- /package/dist/{nl-NL-DcLEwsh6.js → nl-NL-CBBxSKzB.js} +0 -0
- /package/dist/{nl-NL-Bfn1b5-H.js → nl-NL-CDG5kf8l.js} +0 -0
- /package/dist/{nl-NL-CscaDll4.js → nl-NL-CQYif340.js} +0 -0
- /package/dist/{nl-NL-DpZ_sRQQ.js → nl-NL-CUHQ8oRU.js} +0 -0
- /package/dist/{nl-NL-BOfLp7Kw.js → nl-NL-DWgJVfgU.js} +0 -0
- /package/dist/{nl-NL-CoEgvakv.js → nl-NL-DyXx5rzY.js} +0 -0
- /package/dist/{nl-NL-DUzifJ-6.js → nl-NL-HAKt4Uc5.js} +0 -0
- /package/dist/{nl-NL-DayMdZGS.js → nl-NL-QXgi4Sal.js} +0 -0
- /package/dist/{nl-NL-DrryYwRC.js → nl-NL-zA-vxihm.js} +0 -0
- /package/dist/{no-NO-CfYxgg3G.js → no-NO-3PlX_ro5.js} +0 -0
- /package/dist/{no-NO-DphtE0hV.js → no-NO-A94R5Tff.js} +0 -0
- /package/dist/{no-NO-CveHyEMg.js → no-NO-BCZzdSpR.js} +0 -0
- /package/dist/{no-NO-DFiHCQaa.js → no-NO-BD0f30Fb.js} +0 -0
- /package/dist/{no-NO-BNo6BEI2.js → no-NO-BurCBAor.js} +0 -0
- /package/dist/{no-NO-CeJtzvaa.js → no-NO-Bvhg8wSl.js} +0 -0
- /package/dist/{no-NO-DCPDmC0O.js → no-NO-ChSdsuYY.js} +0 -0
- /package/dist/{no-NO-DNxpnnM4.js → no-NO-DKzoUIzk.js} +0 -0
- /package/dist/{no-NO-7cH_mYGz.js → no-NO-EF5q1jRl.js} +0 -0
- /package/dist/{no-NO-COKvHr69.js → no-NO-bX8QGp4Y.js} +0 -0
- /package/dist/{onfido-logo-EtpExIxa.js → onfido-logo-Df1iPjUq.js} +0 -0
- /package/dist/{passport-blurred-CeDXhPyb.js → passport-blurred-4b12NNQa.js} +0 -0
- /package/dist/{passport-cut-off-CvgvQJYC.js → passport-cut-off-BgrPvwDX.js} +0 -0
- /package/dist/{passport-front-DnOK4cgY.js → passport-front-DCH9iXMm.js} +0 -0
- /package/dist/{passport-front-green-BOdOhMh6.js → passport-front-green-DmIh7YIG.js} +0 -0
- /package/dist/{passport-glare-BMA9YxJd.js → passport-glare-DIbBXJwz.js} +0 -0
- /package/dist/{payout-bank-accounts-jW_Zgfqf.js → payout-bank-accounts-CF8erfdR.js} +0 -0
- /package/dist/{payout-verification-instant-BLpp07Uv.js → payout-verification-instant-BIx6NDh9.js} +0 -0
- /package/dist/{payout-verification-manual-BgjvhzA9.js → payout-verification-manual-CS34WVa9.js} +0 -0
- /package/dist/{pl-PL-Ovy-dAEm.js → pl-PL-AswdD27E.js} +0 -0
- /package/dist/{pl-PL-D-e2Z51f.js → pl-PL-BXUkKA8N.js} +0 -0
- /package/dist/{pl-PL-V52qRKcx.js → pl-PL-CWLfHfaM.js} +0 -0
- /package/dist/{pl-PL-BhRJVuU3.js → pl-PL-ComkJGTw.js} +0 -0
- /package/dist/{pl-PL-B6MlP7Xz.js → pl-PL-Cw63Q49W.js} +0 -0
- /package/dist/{pl-PL-DEkGFDx6.js → pl-PL-D3efS6b_.js} +0 -0
- /package/dist/{pl-PL-BKJlxx_t.js → pl-PL-DTGmgjwZ.js} +0 -0
- /package/dist/{pl-PL-CRanu6gn.js → pl-PL-KKlndUs-.js} +0 -0
- /package/dist/{pl-PL-D2dgIhBU.js → pl-PL-NX01GGDD.js} +0 -0
- /package/dist/{pl-PL-DcwGjG1k.js → pl-PL-YNg08-Ol.js} +0 -0
- /package/dist/{plaid-logo-JKKXRmk4.js → plaid-logo-CJ4XmsZ0.js} +0 -0
- /package/dist/{pt-BR-DgAN88vt.js → pt-BR-1V6vMfTg.js} +0 -0
- /package/dist/{pt-BR-CPXL0egI.js → pt-BR-BWN_WzRl.js} +0 -0
- /package/dist/{pt-BR-DkGneNc5.js → pt-BR-BnDcVpJT.js} +0 -0
- /package/dist/{pt-BR-D01BPIQ8.js → pt-BR-Bo-lA5md.js} +0 -0
- /package/dist/{pt-BR-C3oGCuLZ.js → pt-BR-CIZtl_8E.js} +0 -0
- /package/dist/{pt-BR-B7oDER2v.js → pt-BR-Ct1Nhi9U.js} +0 -0
- /package/dist/{pt-BR-CwEhFyDx.js → pt-BR-D-RcF3oz.js} +0 -0
- /package/dist/{pt-BR-B8YZ-Hqo.js → pt-BR-DUCZ7b8F.js} +0 -0
- /package/dist/{pt-BR-CL2QRxOt.js → pt-BR-DtlnqBov.js} +0 -0
- /package/dist/{pt-BR-B_tIsNF2.js → pt-BR-OCQiqikl.js} +0 -0
- /package/dist/{pt-BR-BNfmjS7T.js → pt-BR-uWioJEmF.js} +0 -0
- /package/dist/{pt-PT-5BekXyBw.js → pt-PT-B9BU6WeF.js} +0 -0
- /package/dist/{pt-PT-Dfp-0h0s.js → pt-PT-BHbd93Ic.js} +0 -0
- /package/dist/{pt-PT-of6NX5C7.js → pt-PT-BSdQMcLM.js} +0 -0
- /package/dist/{pt-PT-C_6pNXKv.js → pt-PT-BhEGejvl.js} +0 -0
- /package/dist/{pt-PT-D3v24Se2.js → pt-PT-Bq9v0R1E.js} +0 -0
- /package/dist/{pt-PT-DjZ0SeNY.js → pt-PT-Bricv6v-.js} +0 -0
- /package/dist/{pt-PT-sZUWaieU.js → pt-PT-CVNM7GeN.js} +0 -0
- /package/dist/{pt-PT-IOArlYPi.js → pt-PT-HtvJf_Wc.js} +0 -0
- /package/dist/{pt-PT-BSNvIlJh.js → pt-PT-cIRYLrgm.js} +0 -0
- /package/dist/{pt-PT-CabKp0yt.js → pt-PT-tt1J0yv6.js} +0 -0
- /package/dist/{pt-PT-Cr2esDwf.js → pt-PT-wBADnHVq.js} +0 -0
- /package/dist/{reporting-DI9JGolm.js → reporting-CuIVqmAt.js} +0 -0
- /package/dist/{review-CkgZkiFy.js → review-CUy6wn1_.js} +0 -0
- /package/dist/{ro-RO-BtLXaAVi.js → ro-RO-0Q2YJfJD.js} +0 -0
- /package/dist/{ro-RO-Can6URM1.js → ro-RO-BVo8Lqoc.js} +0 -0
- /package/dist/{ro-RO-DYwkjw9d.js → ro-RO-C2tZmDar.js} +0 -0
- /package/dist/{ro-RO-BW4-_NrZ.js → ro-RO-CCxnXwji.js} +0 -0
- /package/dist/{ro-RO-BlBqP0LV.js → ro-RO-CHnLb9tp.js} +0 -0
- /package/dist/{ro-RO-CBNP3GS_.js → ro-RO-CRHBNotW.js} +0 -0
- /package/dist/{ro-RO-DH5uD9v9.js → ro-RO-CVzi0I9_.js} +0 -0
- /package/dist/{ro-RO-9NTYYrid.js → ro-RO-CkY9jVVi.js} +0 -0
- /package/dist/{ro-RO-7VBqqH7o.js → ro-RO-QlHjtTpP.js} +0 -0
- /package/dist/{ro-RO-CGoDuoZa.js → ro-RO-SAbaaKxU.js} +0 -0
- /package/dist/{sk-SK-Blzjm32C.js → sk-SK-BJxKfous.js} +0 -0
- /package/dist/{sk-SK-wYLB-c3d.js → sk-SK-Bqy__cWX.js} +0 -0
- /package/dist/{sk-SK-CAkLqBR-.js → sk-SK-BrbU8K0P.js} +0 -0
- /package/dist/{sk-SK-CZnhSCxt.js → sk-SK-Bs5RASpX.js} +0 -0
- /package/dist/{sk-SK-vSn9yvb8.js → sk-SK-BsanrSCF.js} +0 -0
- /package/dist/{sk-SK-fwnwR2zz.js → sk-SK-CCluvyNF.js} +0 -0
- /package/dist/{sk-SK-qVeRKlxs.js → sk-SK-CxisoTfT.js} +0 -0
- /package/dist/{sk-SK-vyxCXCDR.js → sk-SK-DpmfsFPI.js} +0 -0
- /package/dist/{sk-SK-BDItYkrD.js → sk-SK-MF3HRQGz.js} +0 -0
- /package/dist/{sk-SK-BmP_vrOT.js → sk-SK-woMNza6o.js} +0 -0
- /package/dist/{sl-SI-rLQo_kKv.js → sl-SI-B-faWNpM.js} +0 -0
- /package/dist/{sl-SI-DuHn6HyC.js → sl-SI-B9zMw3uZ.js} +0 -0
- /package/dist/{sl-SI-CYVD9Yk1.js → sl-SI-Bm_KKlP6.js} +0 -0
- /package/dist/{sl-SI-BxJgtZKP.js → sl-SI-BsiDU3hz.js} +0 -0
- /package/dist/{sl-SI-SNjGgOph.js → sl-SI-BvNvjopW.js} +0 -0
- /package/dist/{sl-SI-C0d32nxW.js → sl-SI-C5umh4FQ.js} +0 -0
- /package/dist/{sl-SI-ChRXWdua.js → sl-SI-CG07y9Cp.js} +0 -0
- /package/dist/{sl-SI-C5FYCjwi.js → sl-SI-CrB2P-g-.js} +0 -0
- /package/dist/{sl-SI-DPvusyJQ.js → sl-SI-Czu6HrQs.js} +0 -0
- /package/dist/{sl-SI-B5xGgx5S.js → sl-SI-F1ZXve4S.js} +0 -0
- /package/dist/{sv-SE-CU-lNGyw.js → sv-SE-5AozcwLo.js} +0 -0
- /package/dist/{sv-SE-D9Aj9VZ9.js → sv-SE-BIe7wyHM.js} +0 -0
- /package/dist/{sv-SE-BhAr7iey.js → sv-SE-BKeJolFs.js} +0 -0
- /package/dist/{sv-SE-BfoCgwXl.js → sv-SE-BgyicZrq.js} +0 -0
- /package/dist/{sv-SE-BFFAjxxo.js → sv-SE-C2lw5FJ7.js} +0 -0
- /package/dist/{sv-SE-_iVNE7OY.js → sv-SE-DDCAUQsX.js} +0 -0
- /package/dist/{sv-SE-nA--xWZA.js → sv-SE-DKvr6dhk.js} +0 -0
- /package/dist/{sv-SE-Cos-ox5c.js → sv-SE-DR3rE1Ff.js} +0 -0
- /package/dist/{sv-SE-BIHbDoRU.js → sv-SE-DaOsGDdk.js} +0 -0
- /package/dist/{sv-SE-QRDrM1rH.js → sv-SE-Db35FNLx.js} +0 -0
- /package/dist/{sv-SE-CfgjwWHS.js → sv-SE-doxSFPnU.js} +0 -0
- /package/dist/{tax-reporting-graph-DEiE6q1X.js → tax-reporting-graph-C96BPKuj.js} +0 -0
- /package/dist/{tink-logo-DQabT2Uk.js → tink-logo-DcMLCEiF.js} +0 -0
- /package/dist/{toFullWidth-CQcDriFa.js → toFullWidth-CSa3Sffs.js} +0 -0
- /package/dist/types/utils/api/{processCapabilitites.d.ts → processCapabilities.d.ts} +0 -0
- /package/dist/{types-DjTEjDpj.js → types-DLViphaA.js} +0 -0
- /package/dist/{types-CEAHkjXI.js → types-tKfEYBOO.js} +0 -0
- /package/dist/{us-check-account-number-EkWzylgz.js → us-check-account-number-Bx4HZPFS.js} +0 -0
- /package/dist/{us-check-routing-number-ObI-JE-C.js → us-check-routing-number-BgmESQIR.js} +0 -0
- /package/dist/{us-check-b9k7TlOd.js → us-check-tkgqZfdf.js} +0 -0
- /package/dist/{validate-D4RU2PP0.js → validate-Da7Onair.js} +0 -0
- /package/dist/{view-verification-status-CtW_qUMg.js → view-verification-status-CYHM_Ggf.js} +0 -0
- /package/dist/{yapily-logo-BeowYojR.js → yapily-logo-LFYkLhpL.js} +0 -0
|
@@ -0,0 +1,1685 @@
|
|
|
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] = "ead00b52-dd1d-4491-b600-5e4a445c9710", e._sentryDebugIdIdentifier = "sentry-dbid-ead00b52-dd1d-4491-b600-5e4a445c9710");
|
|
4
|
+
} catch (e) {}
|
|
5
|
+
import { i as Typography, n as addResourceBundles, r as useTranslation } from "./translation-BFxyJ1c5.js";
|
|
6
|
+
import { r as Loader } from "./Button-oj6H8OrC.js";
|
|
7
|
+
import { s as useApiContext } from "./http-msAasD57.js";
|
|
8
|
+
import { r as useLegalEntity, t as ROOT_LE } from "./useLegalEntity-Dv5dgbCO.js";
|
|
9
|
+
import { t as LegalEntityTypes } from "./legal-entity-type-VIfNYnJP.js";
|
|
10
|
+
import { t as getLegalEntityCountry } from "./getLegalEntityCountry-C6bSV6sB.js";
|
|
11
|
+
import { a as drop, c as objectsDeepEqual, d as keysOf, r as cloneObject, u as entriesOf } from "./useAnalyticsContext-BVFDMrVE.js";
|
|
12
|
+
import { t as useToggleContext } from "./useToggleContext-DaQUBF8O.js";
|
|
13
|
+
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-DRapRJ6z.js";
|
|
14
|
+
import { t as _rolldown_dynamic_import_helper_default } from "./_rolldown_dynamic_import_helper-rq_tsyLP.js";
|
|
15
|
+
import { t as Header } from "./Header-CPmJyuoP.js";
|
|
16
|
+
import { t as CountryCodes } from "./country-code-CX5KqMBr.js";
|
|
17
|
+
import { t as useCapabilities } from "./useCapabilities-BhSlO8Qy.js";
|
|
18
|
+
import { n as datasetUtilities } from "./datasetUtil-Zd4TCTDn.js";
|
|
19
|
+
import { t as Alert } from "./Alert-C6gL3JIt.js";
|
|
20
|
+
import { C as EntityTypes, a as trustComponentsKeyMapping, i as trustApiKeyMapping, o as trustDocumentMapping, y as reverseMapping } from "./processCapabilities-DlZY9-Jc.js";
|
|
21
|
+
import { p as TaskTypes, s as getOwnEntityAssociations } from "./entityAssociationUtil-BEzUdPbm.js";
|
|
22
|
+
import { t as getCountrySpecificTrustTypeOptions } from "./trustUtil-BTHvlo55.js";
|
|
23
|
+
import { t as useToastContext } from "./useToastContext-CYgfHjSb.js";
|
|
24
|
+
import { n as useCapabilityProblems, t as getProblemsForEntity } from "./getProblemsForEntity-a39L2dH8.js";
|
|
25
|
+
import { t as useAssociatedLegalEntity } from "./useAssociatedLegalEntity-b2rR6eT1.js";
|
|
26
|
+
import { t as useCreateLegalEntity } from "./useCreateLegalEntity-DizCrhrt.js";
|
|
27
|
+
import { t as useUpdateLegalEntity } from "./useUpdateLegalEntity-Dcvfr-yZ.js";
|
|
28
|
+
import { t as Address } from "./Address-BBhttZH7.js";
|
|
29
|
+
import { n as FormFlow, r as FormContextProvider, t as useFormContext } from "./useFormContext-Cx9-3iXR.js";
|
|
30
|
+
import { n as composePerScenarioFormConfigurations, r as getPropsFromConfigurations, t as augmentWithCountryConfigs } from "./process-field-configurations-C7MuEj5q.js";
|
|
31
|
+
import { i as useFormComposer, n as getRequiredForms, t as addValidityToForms } from "./dropinUtils-IdasFZCU.js";
|
|
32
|
+
import { t as ErrorPanel } from "./ErrorPanel-B536hgSc.js";
|
|
33
|
+
import { n as mergeFieldMetadataIntoProps, t as createFormUtils } from "./formUtils-DCvL3uZG.js";
|
|
34
|
+
import { t as useMultiForm } from "./useMultiForm-B3e1ImN3.js";
|
|
35
|
+
import { a as useScenarioConfiguration, r as getPageName, t as mapExistingFile } from "./mapExistingFile-Djcwti5D.js";
|
|
36
|
+
import { t as useTaskLandedEvent } from "./useTaskLandedEvent-DInxWeqN.js";
|
|
37
|
+
import { i as mapAddressLabels } from "./utils-CfTVU2Hq.js";
|
|
38
|
+
import { i as isValidationError, o as processValidationErrors, s as isMaintenanceModeError } from "./validationError-BzQCrJPn.js";
|
|
39
|
+
import { l as getDocument, o as createDocumentRequest, s as documentApiUtils } from "./validate-AqTlBSU4.js";
|
|
40
|
+
import { i as getProp, r as formatObject } from "./utils-oc3EdK6K.js";
|
|
41
|
+
import { T as getFieldsWithExistingData, _ as exemptedFromTaxDefaultFieldConfig, b as taxInformationDefaultFieldConfig, n as TaxInformationField, r as COUNTRIES_THAT_USE_TAX_ID_INSTEAD_OF_VAT, t as TAX_INFORMATION_FIELD, u as countryToTaxInfoTypeMap, v as exemptedFromTaxDefaultFieldMetadata, x as taxInformationDefaultFieldMetadata } from "./TaxInformationField-D4iJyoVE.js";
|
|
42
|
+
import { a as validateNotEmptyOnBlur } from "./patternValidators-BaQxw3ki.js";
|
|
43
|
+
import { t as resolveFieldMetadata } from "./fieldConfigurations-m7oWP1DZ.js";
|
|
44
|
+
import { t as Field } from "./Field-pcJkjIG_.js";
|
|
45
|
+
import { t as Select } from "./Select-CcSRI-H0.js";
|
|
46
|
+
import { t as useForm } from "./useForm-pUkvCLc9.js";
|
|
47
|
+
import { n as getFormProps, r as getNestedOuterFormPropsFromOuterFormProps } from "./getProps-CkZCnNxW.js";
|
|
48
|
+
import { t as InputText } from "./InputText-C30dZxS4.js";
|
|
49
|
+
import { n as CountryField, t as COUNTRY_FIELD } from "./CountryField-Dh4DfjBf.js";
|
|
50
|
+
import { t as RadioGroup } from "./RadioGroup-7g7Xv9rl.js";
|
|
51
|
+
import { t as createFormRules } from "./form-rules-ZiRm6ke_.js";
|
|
52
|
+
import { t as ContextGuidance } from "./ContextGuidance-DdoORtLt.js";
|
|
53
|
+
import { t as isEmpty$1 } from "./isEmpty-Dw2W8jeR.js";
|
|
54
|
+
import { a as useStateContext, i as FormWrapper, n as useGlobalDataSlice } from "./useGlobalData-DD00rA9R.js";
|
|
55
|
+
import { C as exemptFromRegistrationNumberDefaultFieldMetadata, E as registrationNumberDefaultFieldMetadata, S as exemptFromRegistrationNumberDefaultFieldConfig, T as registrationNumberDefaultFieldConfig, _ as BusinessRegistrationNumberField, a as operationalAddressIsSameItems, b as getCompanyRegistrationNumberOptions, 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, v as getDefaultRegistrationNumberType, w as getRegistrationNumberHelperText, y as inferCompanyRegistrationNumberType } from "./ConstitutionalDocument-CWiiY8-Q.js";
|
|
56
|
+
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-tKfEYBOO.js";
|
|
57
|
+
import { useCallback, useEffect, useMemo, useRef, useState } from "preact/hooks";
|
|
58
|
+
import { Fragment, jsx, jsxs } from "preact/jsx-runtime";
|
|
59
|
+
import { skipToken } from "@tanstack/preact-query";
|
|
60
|
+
//#region src/context/StateContext/hasDataChanged.ts
|
|
61
|
+
var hasDataChanged = (initialData, currentData) => entriesOf(currentData ?? {}).some(([key, value]) => {
|
|
62
|
+
if (typeof value === "object") return !objectsDeepEqual(value, initialData?.[key]);
|
|
63
|
+
return value !== initialData?.[key];
|
|
64
|
+
});
|
|
65
|
+
//#endregion
|
|
66
|
+
//#region src/components/Trust/mapping/mapApiDocumentToTrustDocument.ts
|
|
67
|
+
var mapApiDocumentToTrustDocument = (entityId) => {
|
|
68
|
+
const constitutionalDocument = getDocument(entityId, "constitutionalDocument") || null;
|
|
69
|
+
return { trustConstitutionalDocument: constitutionalDocument ? { constitutionalDocument: [mapExistingFile(getPageName(constitutionalDocument))] } : void 0 };
|
|
70
|
+
};
|
|
71
|
+
//#endregion
|
|
72
|
+
//#region src/components/UnincorporatedPartnership/mapping/unincorporatedPartnershipKeyMappings.ts
|
|
73
|
+
var unincorporatedPartnershipBaseMapping = {
|
|
74
|
+
"trustRegistrationDetails.trustType": "unincorporatedPartnership.type",
|
|
75
|
+
"trustRegistrationDetails.legalName": "unincorporatedPartnership.name",
|
|
76
|
+
"trustRegistrationDetails.doingBusinessAs": "unincorporatedPartnership.doingBusinessAs",
|
|
77
|
+
"trustRegistrationDetails.hasDoingBusinessAs": "unincorporatedPartnership.doingBusinessAsAbsent",
|
|
78
|
+
"trustRegistrationDetails.country": "unincorporatedPartnership.countryOfGoverningLaw",
|
|
79
|
+
"trustRegistrationDetails.registrationNumber": "unincorporatedPartnership.registrationNumber",
|
|
80
|
+
"trustRegistrationDetails.taxInformation": "unincorporatedPartnership.taxInformation",
|
|
81
|
+
"trustRegistrationDetails.vatNumber": "unincorporatedPartnership.vatNumber",
|
|
82
|
+
"trustRegistrationAddress.registrationAddress.city": "unincorporatedPartnership.registeredAddress.city",
|
|
83
|
+
"trustRegistrationAddress.registrationAddress.country": "unincorporatedPartnership.registeredAddress.country",
|
|
84
|
+
"trustRegistrationAddress.registrationAddress.postalCode": "unincorporatedPartnership.registeredAddress.postalCode",
|
|
85
|
+
"trustRegistrationAddress.registrationAddress.stateOrProvince": "unincorporatedPartnership.registeredAddress.stateOrProvince",
|
|
86
|
+
"trustRegistrationAddress.registrationAddress.address": "unincorporatedPartnership.registeredAddress.street",
|
|
87
|
+
"trustRegistrationAddress.registrationAddress.otherAddressInformation": "unincorporatedPartnership.registeredAddress.street2",
|
|
88
|
+
"trustRegistrationAddress.operationalAddress.city": "unincorporatedPartnership.principalPlaceOfBusiness.city",
|
|
89
|
+
"trustRegistrationAddress.operationalAddress.country": "unincorporatedPartnership.principalPlaceOfBusiness.country",
|
|
90
|
+
"trustRegistrationAddress.operationalAddress.postalCode": "unincorporatedPartnership.principalPlaceOfBusiness.postalCode",
|
|
91
|
+
"trustRegistrationAddress.operationalAddress.stateOrProvince": "unincorporatedPartnership.principalPlaceOfBusiness.stateOrProvince",
|
|
92
|
+
"trustRegistrationAddress.operationalAddress.address": "unincorporatedPartnership.principalPlaceOfBusiness.street",
|
|
93
|
+
"trustRegistrationAddress.operationalAddress.otherAddressInformation": "unincorporatedPartnership.principalPlaceOfBusiness.street2"
|
|
94
|
+
};
|
|
95
|
+
var unincorporatedPartnershipComponentsKeyMapping = {
|
|
96
|
+
"trustRegistrationDetails.exemptedFromVat": "unincorporatedPartnership.vatAbsenceReason",
|
|
97
|
+
...unincorporatedPartnershipBaseMapping
|
|
98
|
+
};
|
|
99
|
+
var unincorporatedPartnershipApiKeyMapping = { ...reverseMapping(unincorporatedPartnershipBaseMapping) };
|
|
100
|
+
//#endregion
|
|
101
|
+
//#region src/components/UnincorporatedPartnership/mapping/mapLegalEntityToUnincorporatedPartnership.ts
|
|
102
|
+
var mapLegalEntityToUnincorporatedPartnership = (legalEntity, isFeatureEnabled) => {
|
|
103
|
+
if (!legalEntity.unincorporatedPartnership) throw new Error("LE missing unincorporatedPartnership field");
|
|
104
|
+
let trustCompData = formatObject(legalEntity, unincorporatedPartnershipComponentsKeyMapping);
|
|
105
|
+
if (!trustCompData?.trustRegistrationDetails) return {};
|
|
106
|
+
trustCompData.trustRegistrationDetails.country = legalEntity.unincorporatedPartnership.countryOfGoverningLaw;
|
|
107
|
+
if (legalEntity.unincorporatedPartnership.description) trustCompData.trustRegistrationDetails.objectOfTrust = legalEntity.unincorporatedPartnership.description;
|
|
108
|
+
if (legalEntity.unincorporatedPartnership.principalPlaceOfBusiness) trustCompData.trustRegistrationAddress.operationalAddressIsSame = operationalAddressIsSameIds.OPERATIONAL_ADDRESS_IS_NOT_SAME;
|
|
109
|
+
else {
|
|
110
|
+
if (!trustCompData.trustRegistrationAddress) trustCompData.trustRegistrationAddress = {};
|
|
111
|
+
trustCompData.trustRegistrationAddress.operationalAddressIsSame = operationalAddressIsSameIds.OPERATIONAL_ADDRESS_IS_SAME;
|
|
112
|
+
}
|
|
113
|
+
if (legalEntity.unincorporatedPartnership.taxInformation?.length) {
|
|
114
|
+
const { country } = legalEntity.unincorporatedPartnership.registeredAddress;
|
|
115
|
+
const countryTaxInformation = legalEntity.unincorporatedPartnership.taxInformation.find((info) => info.country === country);
|
|
116
|
+
if (countryTaxInformation?.type === "UEN") trustCompData.trustRegistrationDetails.isUen = true;
|
|
117
|
+
if (countryTaxInformation?.type === "GST") trustCompData.trustRegistrationDetails.isUen = false;
|
|
118
|
+
const taxNumberAbsent = countryTaxInformation?.numberAbsent;
|
|
119
|
+
if (taxNumberAbsent !== void 0) trustCompData.trustRegistrationDetails.exemptedFromTax = taxNumberAbsent;
|
|
120
|
+
}
|
|
121
|
+
if (legalEntity.documentDetails?.length) trustCompData = {
|
|
122
|
+
...trustCompData,
|
|
123
|
+
...mapApiDocumentToTrustDocument(legalEntity?.id)
|
|
124
|
+
};
|
|
125
|
+
if (isFeatureEnabled("EnableDoingBusinessAsNameV4")) {
|
|
126
|
+
if (typeof trustCompData.trustRegistrationDetails?.hasDoingBusinessAs === "boolean") {
|
|
127
|
+
trustCompData.trustRegistrationDetails.hasDoingBusinessAs = !legalEntity.unincorporatedPartnership.doingBusinessAsAbsent;
|
|
128
|
+
if (!trustCompData.trustRegistrationDetails.hasDoingBusinessAs) delete legalEntity.unincorporatedPartnership.doingBusinessAs;
|
|
129
|
+
}
|
|
130
|
+
} else {
|
|
131
|
+
trustCompData.trustRegistrationDetails.hasDoingBusinessAs = legalEntity.unincorporatedPartnership.doingBusinessAs ? legalEntity.unincorporatedPartnership.doingBusinessAs !== legalEntity.unincorporatedPartnership.name : void 0;
|
|
132
|
+
trustCompData.trustRegistrationDetails.doingBusinessAs = legalEntity.unincorporatedPartnership.doingBusinessAs;
|
|
133
|
+
}
|
|
134
|
+
return trustCompData;
|
|
135
|
+
};
|
|
136
|
+
//#endregion
|
|
137
|
+
//#region src/components/UnincorporatedPartnership/mapping/mapUnincorporatedPartnershipToLegalEntity.ts
|
|
138
|
+
var mapUnincorporatedPartnershipToLegalEntity = (data, isFeatureEnabled) => {
|
|
139
|
+
const requestObj = { ...formatObject(data, unincorporatedPartnershipApiKeyMapping) };
|
|
140
|
+
if (!requestObj.unincorporatedPartnership) return requestObj;
|
|
141
|
+
if (requestObj.unincorporatedPartnership?.taxInformation?.[0]?.type === "GST") requestObj.unincorporatedPartnership.taxInformation[0].type = "UEN";
|
|
142
|
+
if (isFeatureEnabled("EnableDoingBusinessAsNameV4")) {
|
|
143
|
+
if (typeof data.trustRegistrationDetails?.hasDoingBusinessAs !== "undefined") requestObj.unincorporatedPartnership.doingBusinessAsAbsent = !data.trustRegistrationDetails?.hasDoingBusinessAs;
|
|
144
|
+
} else {
|
|
145
|
+
requestObj.unincorporatedPartnership.doingBusinessAs = data.trustRegistrationDetails?.doingBusinessAs || data.trustRegistrationDetails?.legalName || "";
|
|
146
|
+
delete requestObj.unincorporatedPartnership.doingBusinessAsAbsent;
|
|
147
|
+
}
|
|
148
|
+
requestObj.type = LegalEntityTypes.UNINCORPORATED_PARTNERSHIP;
|
|
149
|
+
return requestObj;
|
|
150
|
+
};
|
|
151
|
+
//#endregion
|
|
152
|
+
//#region src/components/Trust/forms/Trust/rules.ts
|
|
153
|
+
var COUNTRIES_THAT_USE_REGISTRATION_NUMBER = [CountryCodes.NewZealand];
|
|
154
|
+
var rules = ({ data, country, taskType }) => createFormRules({
|
|
155
|
+
countryUsesTaxId: () => {
|
|
156
|
+
if (taskType === TaskTypes.UNINCORPORATED_PARTNERSHIP) {
|
|
157
|
+
if (UNINCORPORATED_PARTNERSHIP_COUNTRIES_TAX_INFORMATION_REQUIRED.includes(country)) return "REQUIRED";
|
|
158
|
+
if (UNINCORPORATED_PARTNERSHIP_COUNTRIES_TAX_INFORMATION_OPTIONAL.includes(country)) return "OPTIONAL";
|
|
159
|
+
}
|
|
160
|
+
if (country !== CountryCodes.NewZealand && COUNTRIES_THAT_USE_TAX_ID_INSTEAD_OF_VAT.includes(country)) return "REQUIRED";
|
|
161
|
+
},
|
|
162
|
+
countryRequiresRegistrationNumberForTrust: () => {
|
|
163
|
+
if (taskType === TaskTypes.UNINCORPORATED_PARTNERSHIP) {
|
|
164
|
+
if (UNINCORPORATED_PARTNERSHIP_COUNTRIES_REGISTRATION_NUMBER_REQUIRED.includes(country)) return "REQUIRED";
|
|
165
|
+
if (UNINCORPORATED_PARTNERSHIP_COUNTRIES_REGISTRATION_NUMBER_OPTIONAL.includes(country)) return "OPTIONAL";
|
|
166
|
+
}
|
|
167
|
+
if (COUNTRIES_THAT_USE_REGISTRATION_NUMBER.includes(country)) return "REQUIRED";
|
|
168
|
+
},
|
|
169
|
+
registrationNumberType: () => {
|
|
170
|
+
if (taskType === TaskTypes.UNINCORPORATED_PARTNERSHIP) {
|
|
171
|
+
if (UNINCORPORATED_PARTNERSHIP_COUNTRIES_REGISTRATION_NUMBER_REQUIRED.includes(country)) return "OPTIONAL";
|
|
172
|
+
if (UNINCORPORATED_PARTNERSHIP_COUNTRIES_REGISTRATION_NUMBER_OPTIONAL.includes(country)) return "OPTIONAL";
|
|
173
|
+
}
|
|
174
|
+
if (COUNTRIES_THAT_USE_REGISTRATION_NUMBER.includes(country)) return "OPTIONAL";
|
|
175
|
+
},
|
|
176
|
+
countryUsesVatNumber: () => {
|
|
177
|
+
if (taskType === TaskTypes.UNINCORPORATED_PARTNERSHIP) {
|
|
178
|
+
if (UNINCORPORATED_PARTNERSHIP_COUNTRIES_VAT_NUMBER_OPTIONAL.includes(country)) return "OPTIONAL";
|
|
179
|
+
}
|
|
180
|
+
},
|
|
181
|
+
trustTypeHasDescription: () => {
|
|
182
|
+
if (data?.trustRegistrationDetails?.trustType === "charitableTrust") return "REQUIRED";
|
|
183
|
+
},
|
|
184
|
+
requireDoingBusinessAsName: () => {
|
|
185
|
+
return data?.trustRegistrationDetails?.hasDoingBusinessAs ? "REQUIRED" : void 0;
|
|
186
|
+
},
|
|
187
|
+
requiresTrustType: () => {
|
|
188
|
+
if (taskType === TaskTypes.TRUST) return "REQUIRED";
|
|
189
|
+
}
|
|
190
|
+
});
|
|
191
|
+
//#endregion
|
|
192
|
+
//#region src/components/Trust/forms/TrustRegistrationDetails/validate.ts
|
|
193
|
+
var trustRegistrationDetailsValidations = {
|
|
194
|
+
trustType: {
|
|
195
|
+
modes: ["blur"],
|
|
196
|
+
validate: (trustType) => !!trustType,
|
|
197
|
+
errorMessage: "fieldIsRequired"
|
|
198
|
+
},
|
|
199
|
+
country: {
|
|
200
|
+
modes: ["blur"],
|
|
201
|
+
validate: (country) => !!country,
|
|
202
|
+
errorMessage: "fieldIsRequired"
|
|
203
|
+
},
|
|
204
|
+
legalName: {
|
|
205
|
+
modes: ["blur"],
|
|
206
|
+
validate: (legalName) => !!legalName,
|
|
207
|
+
errorMessage: "fieldIsRequired"
|
|
208
|
+
},
|
|
209
|
+
objectOfTrust: {
|
|
210
|
+
modes: ["blur"],
|
|
211
|
+
validate: (objectOfTrust) => !!objectOfTrust,
|
|
212
|
+
errorMessage: "fieldIsRequired"
|
|
213
|
+
},
|
|
214
|
+
hasDoingBusinessAs: validateNotEmptyOnBlur,
|
|
215
|
+
doingBusinessAs: validateNotEmptyOnBlur
|
|
216
|
+
};
|
|
217
|
+
var trustRegistrationDetailsValidationsV4 = {
|
|
218
|
+
trustType: {
|
|
219
|
+
modes: ["blur"],
|
|
220
|
+
validate: (trustType) => !!trustType,
|
|
221
|
+
errorMessage: "fieldIsRequired"
|
|
222
|
+
},
|
|
223
|
+
country: {
|
|
224
|
+
modes: ["blur"],
|
|
225
|
+
validate: (country) => !!country,
|
|
226
|
+
errorMessage: "fieldIsRequired"
|
|
227
|
+
},
|
|
228
|
+
legalName: [
|
|
229
|
+
{
|
|
230
|
+
modes: ["blur"],
|
|
231
|
+
validate: hasText,
|
|
232
|
+
errorMessage: "fieldIsRequired"
|
|
233
|
+
},
|
|
234
|
+
{
|
|
235
|
+
modes: ["blur"],
|
|
236
|
+
validate: (input) => !matchesRegex(NO_ALPHABET_REGEX, input),
|
|
237
|
+
errorMessage: "nameMustContainLetters"
|
|
238
|
+
},
|
|
239
|
+
{
|
|
240
|
+
modes: ["blur"],
|
|
241
|
+
validate: (input) => !matchesRegex(EMOJI_REGEX, input) && !hasRepeatedCharacters(input) && isValidMinLength(input, 3) && !isInvalidName(input) && matchesRegex(OTHER_ENTITIES_VALID_CHAR_REGEX, input),
|
|
242
|
+
errorMessage: "checkForTypos"
|
|
243
|
+
}
|
|
244
|
+
],
|
|
245
|
+
objectOfTrust: {
|
|
246
|
+
modes: ["blur"],
|
|
247
|
+
validate: (objectOfTrust) => !!objectOfTrust,
|
|
248
|
+
errorMessage: "fieldIsRequired"
|
|
249
|
+
},
|
|
250
|
+
hasDoingBusinessAs: validateNotEmptyOnBlur,
|
|
251
|
+
doingBusinessAs: validateNotEmptyOnBlur
|
|
252
|
+
};
|
|
253
|
+
//#endregion
|
|
254
|
+
//#region src/components/Trust/forms/TrustRegistrationDetails/TrustRegistrationDetails.tsx
|
|
255
|
+
var trustRegistrationDetailsFields = [
|
|
256
|
+
"legalName",
|
|
257
|
+
...DBA_NAME_FIELD,
|
|
258
|
+
"country",
|
|
259
|
+
"trustType",
|
|
260
|
+
"objectOfTrust",
|
|
261
|
+
...TAX_INFORMATION_FIELD,
|
|
262
|
+
...BUSINESS_REGISTRATION_NUMBER_FIELD,
|
|
263
|
+
...VAT_NUMBER_FIELD
|
|
264
|
+
];
|
|
265
|
+
var ALLOWED_TRUST_COUNTRIES$1 = [CountryCodes.Australia, CountryCodes.NewZealand];
|
|
266
|
+
function TrustRegistrationDetails(props) {
|
|
267
|
+
let mergedProps = props;
|
|
268
|
+
const TRUST_REGISTRATION_DETAILS = mergedProps.id || trustForms$1.trustRegistrationDetails.formId;
|
|
269
|
+
const { t: commonT } = useTranslation("common");
|
|
270
|
+
const { t: trustT } = useTranslation("trust");
|
|
271
|
+
const { isFeatureEnabled } = useToggleContext();
|
|
272
|
+
const { updateStateSlice, sliceData } = useGlobalDataSlice(TRUST_REGISTRATION_DETAILS);
|
|
273
|
+
const isStrictNameAndAddressValidationEnabled = isFeatureEnabled("StrictNameAndAddressValidationV4");
|
|
274
|
+
const { taskType } = props;
|
|
275
|
+
const isUnincorporatedPartnership = taskType === TaskTypes.UNINCORPORATED_PARTNERSHIP;
|
|
276
|
+
const country = sliceData?.country ?? mergedProps.country;
|
|
277
|
+
const defaultData = useMemo(() => ({
|
|
278
|
+
...mergedProps.data,
|
|
279
|
+
country
|
|
280
|
+
}), [country, mergedProps.data]);
|
|
281
|
+
const requiredFields = isEmpty$1(mergedProps.requiredFields) ? trustRegistrationDetailsFields : mergedProps.requiredFields;
|
|
282
|
+
mergedProps = mergeFieldMetadataIntoProps("hasDoingBusinessAs", doingBusinessAsAbsentFieldMetadata, mergedProps);
|
|
283
|
+
mergedProps = mergeFieldMetadataIntoProps("doingBusinessAs", doingBusinessAsFieldMetadata, mergedProps);
|
|
284
|
+
mergedProps = mergeFieldMetadataIntoProps("taxInformation", resolveFieldMetadata(taxInformationDefaultFieldConfig[country], {
|
|
285
|
+
taxIdNumberType: sliceData?.taxInformation?.find((taxId) => taxId.country === country)?.type,
|
|
286
|
+
companyType: LegalEntityTypes.TRUST
|
|
287
|
+
}, taxInformationDefaultFieldMetadata), mergedProps);
|
|
288
|
+
mergedProps = mergeFieldMetadataIntoProps("exemptedFromTax", resolveFieldMetadata(exemptedFromTaxDefaultFieldConfig[country], {}, exemptedFromTaxDefaultFieldMetadata), mergedProps);
|
|
289
|
+
mergedProps = mergeFieldMetadataIntoProps("registrationNumber", resolveFieldMetadata(registrationNumberDefaultFieldConfig[country], {
|
|
290
|
+
companyType: LegalEntityTypes.TRUST,
|
|
291
|
+
registrationNumberType: sliceData?.registrationNumberType ?? getDefaultRegistrationNumberType(sliceData?.registrationNumber, country, "trust")
|
|
292
|
+
}, registrationNumberDefaultFieldMetadata), mergedProps);
|
|
293
|
+
mergedProps = mergeFieldMetadataIntoProps("exemptedFromRegistrationNumber", resolveFieldMetadata(exemptFromRegistrationNumberDefaultFieldConfig[country], {}, exemptFromRegistrationNumberDefaultFieldMetadata), mergedProps);
|
|
294
|
+
mergedProps = mergeFieldMetadataIntoProps("vatNumber", resolveFieldMetadata(defaultFieldConfig[country], { vatNumberType: sliceData?.vatNumberType ?? getDefaultVatNumberType(sliceData?.vatNumber, country) }, defaultFieldMetadata), mergedProps);
|
|
295
|
+
mergedProps.validators = {
|
|
296
|
+
...mergedProps.validators,
|
|
297
|
+
legalName: isStrictNameAndAddressValidationEnabled ? trustRegistrationDetailsValidationsV4.legalName : trustRegistrationDetailsValidations.legalName
|
|
298
|
+
};
|
|
299
|
+
const getFormSchema = useCallback((currentData) => {
|
|
300
|
+
const fieldsToRemove = [];
|
|
301
|
+
if (!currentData.hasDoingBusinessAs) fieldsToRemove.push("doingBusinessAs");
|
|
302
|
+
return requiredFields.filter((field) => !fieldsToRemove.includes(field));
|
|
303
|
+
}, [requiredFields]);
|
|
304
|
+
const { handleChangeFor, data, valid, errors, setData, fieldProblems, schema } = useForm({
|
|
305
|
+
...mergedProps,
|
|
306
|
+
schema: getFormSchema,
|
|
307
|
+
defaultData,
|
|
308
|
+
rules: mergedProps.validators || (isStrictNameAndAddressValidationEnabled ? trustRegistrationDetailsValidationsV4 : trustRegistrationDetailsValidations),
|
|
309
|
+
fieldProblems: mergedProps.fieldValidationErrors
|
|
310
|
+
});
|
|
311
|
+
const formUtils = createFormUtils({
|
|
312
|
+
...mergedProps,
|
|
313
|
+
data: defaultData,
|
|
314
|
+
requiredFields,
|
|
315
|
+
fieldValidationErrors: mergedProps.fieldValidationErrors,
|
|
316
|
+
formVerificationErrors: mergedProps.formVerificationErrors
|
|
317
|
+
}, commonT);
|
|
318
|
+
useEffect(() => {
|
|
319
|
+
updateStateSlice({
|
|
320
|
+
schema,
|
|
321
|
+
data,
|
|
322
|
+
errors,
|
|
323
|
+
valid,
|
|
324
|
+
fieldProblems
|
|
325
|
+
});
|
|
326
|
+
}, [
|
|
327
|
+
data,
|
|
328
|
+
errors,
|
|
329
|
+
fieldProblems,
|
|
330
|
+
schema,
|
|
331
|
+
updateStateSlice,
|
|
332
|
+
valid
|
|
333
|
+
]);
|
|
334
|
+
const changeTrustType = (e) => {
|
|
335
|
+
handleChangeFor("trustType", "blur")(e);
|
|
336
|
+
if (e.target.value !== "charitableTrust") setData("objectOfTrust", void 0);
|
|
337
|
+
};
|
|
338
|
+
const trustTypeOptions = getCountrySpecificTrustTypeOptions(country) ?? [];
|
|
339
|
+
const showField = (field) => formUtils.isRequiredField(field) || formUtils.isOptionalField(field);
|
|
340
|
+
return /* @__PURE__ */ jsx(Fragment, { children: /* @__PURE__ */ jsxs("form", {
|
|
341
|
+
id: TRUST_REGISTRATION_DETAILS,
|
|
342
|
+
className: "adyen-kyc-trust__registration-details",
|
|
343
|
+
children: [
|
|
344
|
+
mergedProps.heading && /* @__PURE__ */ jsx(Header, { title: mergedProps.heading }),
|
|
345
|
+
/* @__PURE__ */ jsx(ErrorPanel, {
|
|
346
|
+
verificationErrors: mergedProps.formVerificationErrors,
|
|
347
|
+
validationErrors: mergedProps.fieldValidationErrors,
|
|
348
|
+
formUtils,
|
|
349
|
+
id: "ariaErrorField"
|
|
350
|
+
}),
|
|
351
|
+
!isUnincorporatedPartnership && /* @__PURE__ */ jsx(Alert, {
|
|
352
|
+
variant: "info",
|
|
353
|
+
title: /* @__PURE__ */ jsx(Typography, {
|
|
354
|
+
variant: "caption",
|
|
355
|
+
color: "secondary",
|
|
356
|
+
children: trustT(($) => $["makeSureToHaveYourTrustDeed"])
|
|
357
|
+
}),
|
|
358
|
+
className: "adyen-kyc-u-margin-bottom-16"
|
|
359
|
+
}),
|
|
360
|
+
formUtils.isRequiredField("country") && /* @__PURE__ */ jsx(CountryField, {
|
|
361
|
+
data: formUtils.getFieldData(data, COUNTRY_FIELD),
|
|
362
|
+
valid: formUtils.getFieldValid(valid, COUNTRY_FIELD),
|
|
363
|
+
errors: formUtils.getFieldErrors(errors, fieldProblems, COUNTRY_FIELD),
|
|
364
|
+
labels: formUtils.getFieldLabels(COUNTRY_FIELD, { country: "countryRegionOfEstablishment" }),
|
|
365
|
+
readonly: formUtils.isReadOnly("country"),
|
|
366
|
+
allowedCountries: isUnincorporatedPartnership ? ALLOWED_UNINCORPORATED_PARTNERSHIP_COUNTRIES : ALLOWED_TRUST_COUNTRIES$1,
|
|
367
|
+
handleChangeFor: () => (e) => {
|
|
368
|
+
handleChangeFor("country", "input")(e);
|
|
369
|
+
if (mergedProps.onCountryChange) mergedProps.onCountryChange(e);
|
|
370
|
+
}
|
|
371
|
+
}),
|
|
372
|
+
formUtils.isRequiredField("legalName") && /* @__PURE__ */ jsx(Field, {
|
|
373
|
+
name: "legalName",
|
|
374
|
+
label: formUtils.getLabel(!isUnincorporatedPartnership ? "nameOfTrustAgreement" : "legalName"),
|
|
375
|
+
errorMessage: formUtils.getErrorMessage("legalName", errors, fieldProblems),
|
|
376
|
+
isValid: valid.legalName,
|
|
377
|
+
children: (childProps) => /* @__PURE__ */ jsx(InputText, {
|
|
378
|
+
...childProps,
|
|
379
|
+
name: "legalName",
|
|
380
|
+
value: data.legalName,
|
|
381
|
+
readonly: formUtils.isReadOnly("legalName"),
|
|
382
|
+
onInput: handleChangeFor("legalName", "input"),
|
|
383
|
+
onBlur: handleChangeFor("legalName", "blur"),
|
|
384
|
+
"aria-required": true,
|
|
385
|
+
"aria-invalid": !valid.legalName
|
|
386
|
+
})
|
|
387
|
+
}),
|
|
388
|
+
formUtils.isRequiredField("hasDoingBusinessAs") && /* @__PURE__ */ jsx(DBANameField, {
|
|
389
|
+
data: formUtils.getFieldData(data, DBA_NAME_FIELD),
|
|
390
|
+
valid: formUtils.getFieldValid(valid, DBA_NAME_FIELD),
|
|
391
|
+
errors: formUtils.getFieldErrors(errors, fieldProblems, DBA_NAME_FIELD),
|
|
392
|
+
readonly: formUtils.isReadOnly("doingBusinessAs"),
|
|
393
|
+
handleChangeFor
|
|
394
|
+
}),
|
|
395
|
+
formUtils.isRequiredField("trustType") && !isUnincorporatedPartnership && /* @__PURE__ */ jsx(Field, {
|
|
396
|
+
name: "trustType",
|
|
397
|
+
label: formUtils.getLabel("trustType", "typeOfTrustAgreement"),
|
|
398
|
+
errorMessage: formUtils.getErrorMessage("trustType", errors, fieldProblems),
|
|
399
|
+
isValid: valid.trustType,
|
|
400
|
+
dataTestId: "trust-type",
|
|
401
|
+
children: (childProps) => /* @__PURE__ */ jsx(Select, {
|
|
402
|
+
...childProps,
|
|
403
|
+
name: "trustType",
|
|
404
|
+
onChange: changeTrustType,
|
|
405
|
+
selected: data.trustType,
|
|
406
|
+
items: trustTypeOptions.map((trust) => ({
|
|
407
|
+
id: trust,
|
|
408
|
+
name: trustT(($) => $[trust])
|
|
409
|
+
})),
|
|
410
|
+
placeholder: trustT(($) => $["trustType"])
|
|
411
|
+
})
|
|
412
|
+
}),
|
|
413
|
+
formUtils.isRequiredField("objectOfTrust") && /* @__PURE__ */ jsx(Field, {
|
|
414
|
+
name: "objectOfTrust",
|
|
415
|
+
label: formUtils.getLabel("objectOfCharitableTrust"),
|
|
416
|
+
helper: formUtils.getLabel("pleaseProvideThePurposeOfCharitableTrust"),
|
|
417
|
+
errorMessage: formUtils.getErrorMessage("objectOfTrust", errors, fieldProblems),
|
|
418
|
+
isValid: valid.objectOfTrust,
|
|
419
|
+
children: (childProps) => /* @__PURE__ */ jsx(InputText, {
|
|
420
|
+
...childProps,
|
|
421
|
+
name: "objectOfTrust",
|
|
422
|
+
value: data.objectOfTrust,
|
|
423
|
+
readonly: formUtils.isReadOnly("objectOfTrust"),
|
|
424
|
+
onInput: handleChangeFor("objectOfTrust", "input"),
|
|
425
|
+
onBlur: handleChangeFor("objectOfTrust", "blur"),
|
|
426
|
+
"aria-required": true,
|
|
427
|
+
"aria-invalid": !valid.objectOfTrust
|
|
428
|
+
})
|
|
429
|
+
}),
|
|
430
|
+
showField("taxInformation") && /* @__PURE__ */ jsx(TaxInformationField, {
|
|
431
|
+
data: formUtils.getFieldData(data, TAX_INFORMATION_FIELD),
|
|
432
|
+
valid: formUtils.getFieldValid(valid, TAX_INFORMATION_FIELD),
|
|
433
|
+
errors: formUtils.getFieldErrors(errors, fieldProblems, TAX_INFORMATION_FIELD),
|
|
434
|
+
labels: formUtils.getFieldLabels(TAX_INFORMATION_FIELD, { exemptedFromTax: "iDontHaveATaxId" }),
|
|
435
|
+
mask: formUtils.getMask("taxInformation"),
|
|
436
|
+
readonly: formUtils.isReadOnly("taxInformation"),
|
|
437
|
+
shouldValidate: mergedProps.shouldValidate,
|
|
438
|
+
handleChangeFor,
|
|
439
|
+
optional: formUtils.isOptionalField("taxInformation"),
|
|
440
|
+
canExempt: formUtils.isRequiredField("exemptedFromTax"),
|
|
441
|
+
country,
|
|
442
|
+
entityType: LegalEntityTypes.TRUST,
|
|
443
|
+
defaultData: mergedProps.data?.taxInformation,
|
|
444
|
+
registrationNumber: data.registrationNumber
|
|
445
|
+
}),
|
|
446
|
+
showField("registrationNumber") && /* @__PURE__ */ jsx(BusinessRegistrationNumberField, {
|
|
447
|
+
data: formUtils.getFieldData(data, BUSINESS_REGISTRATION_NUMBER_FIELD),
|
|
448
|
+
valid: formUtils.getFieldValid(valid, BUSINESS_REGISTRATION_NUMBER_FIELD),
|
|
449
|
+
errors: formUtils.getFieldErrors(errors, fieldProblems, BUSINESS_REGISTRATION_NUMBER_FIELD),
|
|
450
|
+
labels: formUtils.getFieldLabels(BUSINESS_REGISTRATION_NUMBER_FIELD, { exemptedFromRegistrationNumber: "iDontHaveARegistrationNumber" }),
|
|
451
|
+
mask: formUtils.getMask("registrationNumber"),
|
|
452
|
+
helperText: getRegistrationNumberHelperText(trustT, {
|
|
453
|
+
country,
|
|
454
|
+
companyType: LegalEntityTypes.TRUST
|
|
455
|
+
}),
|
|
456
|
+
readonly: formUtils.isReadOnly("registrationNumber"),
|
|
457
|
+
optional: formUtils.isOptionalField("registrationNumber"),
|
|
458
|
+
shouldValidate: mergedProps.shouldValidate,
|
|
459
|
+
handleChangeFor,
|
|
460
|
+
country,
|
|
461
|
+
canExempt: formUtils.isRequiredField("exemptedFromRegistrationNumber"),
|
|
462
|
+
companyType: LegalEntityTypes.TRUST
|
|
463
|
+
}),
|
|
464
|
+
showField("vatNumber") && /* @__PURE__ */ jsx(VatNumberField, {
|
|
465
|
+
data: formUtils.getFieldData(data, VAT_NUMBER_FIELD),
|
|
466
|
+
valid: formUtils.getFieldValid(valid, VAT_NUMBER_FIELD),
|
|
467
|
+
errors: formUtils.getFieldErrors(errors, fieldProblems, VAT_NUMBER_FIELD),
|
|
468
|
+
labels: formUtils.getFieldLabels(VAT_NUMBER_FIELD, { exemptedFromVat: "iDontHaveAVatNumber" }),
|
|
469
|
+
optional: formUtils.isOptionalField("vatNumber"),
|
|
470
|
+
readonly: formUtils.isReadOnly("vatNumber"),
|
|
471
|
+
handleChangeFor,
|
|
472
|
+
country,
|
|
473
|
+
canExempt: formUtils.isRequiredField("exemptedFromVat"),
|
|
474
|
+
shouldValidate: mergedProps.shouldValidate
|
|
475
|
+
})
|
|
476
|
+
]
|
|
477
|
+
}) });
|
|
478
|
+
}
|
|
479
|
+
//#endregion
|
|
480
|
+
//#region src/components/Trust/forms/Trust/Trust.tsx
|
|
481
|
+
var trustForms$1 = {
|
|
482
|
+
trustRegistrationDetails: {
|
|
483
|
+
formId: "trustRegistrationDetails",
|
|
484
|
+
formName: "registrationDetails",
|
|
485
|
+
fields: [...trustRegistrationDetailsFields]
|
|
486
|
+
},
|
|
487
|
+
trustRegistrationAddress: {
|
|
488
|
+
formId: "trustRegistrationAddress",
|
|
489
|
+
formName: "addressDetails",
|
|
490
|
+
fields: registrationAddressFields
|
|
491
|
+
},
|
|
492
|
+
trustConstitutionalDocument: {
|
|
493
|
+
formId: "trustConstitutionalDocument",
|
|
494
|
+
formName: "constitutionalDocument",
|
|
495
|
+
fields: ["constitutionalDocument"]
|
|
496
|
+
}
|
|
497
|
+
};
|
|
498
|
+
var trustRegistrationAddressFormId$1 = trustForms$1.trustRegistrationAddress.formId;
|
|
499
|
+
var trustRegistrationDetailsFormId$1 = trustForms$1.trustRegistrationDetails.formId;
|
|
500
|
+
var trustConstitutionalDocumentFormId$1 = trustForms$1.trustConstitutionalDocument.formId;
|
|
501
|
+
function Trust(props) {
|
|
502
|
+
const { t } = useTranslation(["common", "trust"]);
|
|
503
|
+
const { country, activeForm, taskType } = props;
|
|
504
|
+
const trustRegistrationDetailsFormProps = getFormProps(props, trustRegistrationDetailsFormId$1);
|
|
505
|
+
const trustRegistrationAddressFormProps = getNestedOuterFormPropsFromOuterFormProps(props, trustRegistrationAddressFormId$1);
|
|
506
|
+
const trustDocumentFormProps = getFormProps(props, trustConstitutionalDocumentFormId$1);
|
|
507
|
+
const isUnincorporatedPartnership = taskType === TaskTypes.UNINCORPORATED_PARTNERSHIP;
|
|
508
|
+
const renderActiveForm = (activeForm) => /* @__PURE__ */ jsxs("div", {
|
|
509
|
+
className: "adyen-kyc-trust",
|
|
510
|
+
children: [
|
|
511
|
+
/* @__PURE__ */ jsx("div", {
|
|
512
|
+
className: activeForm.formId !== trustRegistrationDetailsFormId$1 ? "adyen-kyc-form-wrapper adyen-kyc-form-wrapper--hidden" : "adyen-kyc-form-wrapper",
|
|
513
|
+
children: /* @__PURE__ */ jsx(TrustRegistrationDetails, {
|
|
514
|
+
...trustRegistrationDetailsFormProps,
|
|
515
|
+
heading: t(($) => $["registrationDetails"]),
|
|
516
|
+
id: trustRegistrationDetailsFormId$1,
|
|
517
|
+
country,
|
|
518
|
+
taskType
|
|
519
|
+
})
|
|
520
|
+
}),
|
|
521
|
+
/* @__PURE__ */ jsx("div", {
|
|
522
|
+
className: activeForm.formId !== trustRegistrationAddressFormId$1 ? "adyen-kyc-form-wrapper adyen-kyc-form-wrapper--hidden" : "adyen-kyc-form-wrapper",
|
|
523
|
+
children: /* @__PURE__ */ jsx(RegistrationAddress, {
|
|
524
|
+
...trustRegistrationAddressFormProps,
|
|
525
|
+
heading: t(($) => $["addressDetails"]),
|
|
526
|
+
description: !isUnincorporatedPartnership ? t(($) => $["registeredAddressTrustHeaderDescription"], { ns: "trust" }) : t(($) => $["registeredAddressUnincorporatedPartnershipHeaderDescription"], { ns: "trust" }),
|
|
527
|
+
id: trustRegistrationAddressFormId$1,
|
|
528
|
+
country,
|
|
529
|
+
problems: props?.problems,
|
|
530
|
+
labels: { operationalAddressIsSame: !isUnincorporatedPartnership ? "isTrustOperationAddressSame" : "isPartnershipOperationAddressSame" }
|
|
531
|
+
})
|
|
532
|
+
}),
|
|
533
|
+
/* @__PURE__ */ jsx("div", {
|
|
534
|
+
className: activeForm.formId !== trustConstitutionalDocumentFormId$1 ? "adyen-kyc-form-wrapper adyen-kyc-form-wrapper--hidden" : "adyen-kyc-form-wrapper",
|
|
535
|
+
children: /* @__PURE__ */ jsx(MemoizedConstitutionalDocument, {
|
|
536
|
+
...trustDocumentFormProps,
|
|
537
|
+
id: trustConstitutionalDocumentFormId$1,
|
|
538
|
+
legalEntityType: isUnincorporatedPartnership ? LegalEntityTypes.UNINCORPORATED_PARTNERSHIP : LegalEntityTypes.TRUST,
|
|
539
|
+
country
|
|
540
|
+
})
|
|
541
|
+
})
|
|
542
|
+
]
|
|
543
|
+
});
|
|
544
|
+
return /* @__PURE__ */ jsx("div", {
|
|
545
|
+
className: "adyen-kyc-trust",
|
|
546
|
+
children: renderActiveForm(activeForm || trustForms$1.trustRegistrationDetails)
|
|
547
|
+
});
|
|
548
|
+
}
|
|
549
|
+
//#endregion
|
|
550
|
+
//#region src/components/Trust/mapping/mapLegalEntityToTrust.ts
|
|
551
|
+
var mapLegalEntityToTrust = (legalEntity, isFeatureEnabled) => {
|
|
552
|
+
if (!legalEntity.trust) throw new Error("LE missing trust field");
|
|
553
|
+
let trustCompData = formatObject(legalEntity, trustComponentsKeyMapping);
|
|
554
|
+
if (!trustCompData?.trustRegistrationDetails) return {};
|
|
555
|
+
trustCompData.trustRegistrationDetails.vatNumberType = getDefaultVatNumberType(legalEntity.trust.vatNumber, legalEntity.trust.countryOfGoverningLaw);
|
|
556
|
+
trustCompData.trustRegistrationDetails.registrationNumberType = getDefaultRegistrationNumberType(legalEntity.trust.registrationNumber, legalEntity.trust.countryOfGoverningLaw, LegalEntityTypes.TRUST);
|
|
557
|
+
trustCompData.trustRegistrationDetails.country = legalEntity.trust.countryOfGoverningLaw;
|
|
558
|
+
if (legalEntity.trust.description) trustCompData.trustRegistrationDetails.objectOfTrust = legalEntity.trust.description;
|
|
559
|
+
if (legalEntity.trust.principalPlaceOfBusiness) trustCompData.trustRegistrationAddress.operationalAddressIsSame = operationalAddressIsSameIds.OPERATIONAL_ADDRESS_IS_NOT_SAME;
|
|
560
|
+
else {
|
|
561
|
+
if (!trustCompData.trustRegistrationAddress) trustCompData.trustRegistrationAddress = {};
|
|
562
|
+
trustCompData.trustRegistrationAddress.operationalAddressIsSame = operationalAddressIsSameIds.OPERATIONAL_ADDRESS_IS_SAME;
|
|
563
|
+
}
|
|
564
|
+
if (legalEntity.trust.taxInformation?.length) {
|
|
565
|
+
const { country } = legalEntity.trust.registeredAddress;
|
|
566
|
+
const countryTaxInformation = legalEntity.trust.taxInformation.find((info) => info.country === country);
|
|
567
|
+
if (countryTaxInformation?.type === "UEN") trustCompData.trustRegistrationDetails.isUen = true;
|
|
568
|
+
if (countryTaxInformation?.type === "GST") trustCompData.trustRegistrationDetails.isUen = false;
|
|
569
|
+
const taxNumberAbsent = countryTaxInformation?.numberAbsent;
|
|
570
|
+
if (taxNumberAbsent !== void 0) trustCompData.trustRegistrationDetails.exemptedFromTax = taxNumberAbsent;
|
|
571
|
+
}
|
|
572
|
+
if (legalEntity.documentDetails?.length) trustCompData = {
|
|
573
|
+
...trustCompData,
|
|
574
|
+
...mapApiDocumentToTrustDocument(legalEntity?.id)
|
|
575
|
+
};
|
|
576
|
+
if (isFeatureEnabled("EnableDoingBusinessAsNameV4")) {
|
|
577
|
+
if (typeof trustCompData.trustRegistrationDetails?.hasDoingBusinessAs === "boolean") {
|
|
578
|
+
trustCompData.trustRegistrationDetails.hasDoingBusinessAs = !legalEntity.trust.doingBusinessAsAbsent;
|
|
579
|
+
if (!trustCompData.trustRegistrationDetails.hasDoingBusinessAs) delete legalEntity.trust?.doingBusinessAs;
|
|
580
|
+
}
|
|
581
|
+
} else {
|
|
582
|
+
trustCompData.trustRegistrationDetails.hasDoingBusinessAs = legalEntity.trust.doingBusinessAs ? legalEntity.trust.doingBusinessAs !== legalEntity.trust.name : void 0;
|
|
583
|
+
trustCompData.trustRegistrationDetails.doingBusinessAs = legalEntity.trust.doingBusinessAs;
|
|
584
|
+
}
|
|
585
|
+
return trustCompData;
|
|
586
|
+
};
|
|
587
|
+
//#endregion
|
|
588
|
+
//#region src/components/Trust/mapping/mapTrustDocumentToApiDocument.ts
|
|
589
|
+
var mapTrustDocumentToApiDocument = async (data, entityId) => {
|
|
590
|
+
const constitutionalDocument = data?.trustConstitutionalDocument?.constitutionalDocument;
|
|
591
|
+
if (!constitutionalDocument) throw new Error("Constitutional document missing");
|
|
592
|
+
const page1 = constitutionalDocument[0];
|
|
593
|
+
if (!page1) throw new Error("Document needs at least one page");
|
|
594
|
+
return await createDocumentRequest({
|
|
595
|
+
entityId,
|
|
596
|
+
entityType: "legalEntity",
|
|
597
|
+
documentType: "constitutionalDocument",
|
|
598
|
+
page1,
|
|
599
|
+
existingDocument: getDocument(entityId, "constitutionalDocument")
|
|
600
|
+
});
|
|
601
|
+
};
|
|
602
|
+
//#endregion
|
|
603
|
+
//#region src/components/Trust/mapping/mapTrustToLegalEntity.ts
|
|
604
|
+
var mapTrustToLegalEntity = (data, isFeatureEnabled) => {
|
|
605
|
+
const requestObj = { ...formatObject(data, trustApiKeyMapping) };
|
|
606
|
+
if (!requestObj.trust) return requestObj;
|
|
607
|
+
if (data.trustRegistrationDetails?.objectOfTrust) requestObj.trust.description = data.trustRegistrationDetails.objectOfTrust;
|
|
608
|
+
if (isFeatureEnabled("EnableDoingBusinessAsNameV4")) {
|
|
609
|
+
requestObj.trust.doingBusinessAsAbsent = typeof data.trustRegistrationDetails?.hasDoingBusinessAs !== "undefined" ? !data.trustRegistrationDetails?.hasDoingBusinessAs : void 0;
|
|
610
|
+
if (requestObj.trust.doingBusinessAsAbsent) requestObj.trust.doingBusinessAs = "";
|
|
611
|
+
} else {
|
|
612
|
+
delete requestObj.trust?.doingBusinessAsAbsent;
|
|
613
|
+
requestObj.trust.doingBusinessAs = data.trustRegistrationDetails?.doingBusinessAs || data.trustRegistrationDetails?.legalName;
|
|
614
|
+
}
|
|
615
|
+
requestObj.type = LegalEntityTypes.TRUST;
|
|
616
|
+
return requestObj;
|
|
617
|
+
};
|
|
618
|
+
//#endregion
|
|
619
|
+
//#region src/components/Trust/tasks/TrustDropin/mandatoryFields.ts
|
|
620
|
+
var MANDATORY_FIELDS_TRUST = ["trustRegistrationDetails.legalName", "trustRegistrationDetails.country"];
|
|
621
|
+
//#endregion
|
|
622
|
+
//#region src/components/Trust/tasks/TrustDropin/trustFormConfig.ts
|
|
623
|
+
var trustBase = {
|
|
624
|
+
trustType: { rule: "requiresTrustType" },
|
|
625
|
+
objectOfTrust: { rule: "trustTypeHasDescription" },
|
|
626
|
+
legalName: { rule: "REQUIRED" },
|
|
627
|
+
hasDoingBusinessAs: { rule: "REQUIRED" },
|
|
628
|
+
doingBusinessAs: { rule: "requireDoingBusinessAsName" },
|
|
629
|
+
country: { rule: "REQUIRED" },
|
|
630
|
+
taxInformation: { rule: "countryUsesTaxId" },
|
|
631
|
+
registrationAddress: { rule: "REQUIRED" },
|
|
632
|
+
operationalAddress: { rule: "OPTIONAL" },
|
|
633
|
+
constitutionalDocument: { rule: "REQUIRED" },
|
|
634
|
+
registrationNumber: { rule: "countryRequiresRegistrationNumberForTrust" },
|
|
635
|
+
registrationNumberType: { rule: "registrationNumberType" },
|
|
636
|
+
vatNumber: { rule: "countryUsesVatNumber" },
|
|
637
|
+
vatNumberType: { rule: "countryUsesVatNumber" },
|
|
638
|
+
operationalAddressIsSame: { rule: "REQUIRED" }
|
|
639
|
+
};
|
|
640
|
+
var trustFieldsPerScenario = {
|
|
641
|
+
L0: { ...trustBase },
|
|
642
|
+
L1: { ...trustBase },
|
|
643
|
+
L: { ...trustBase }
|
|
644
|
+
};
|
|
645
|
+
var trustCountryConfig = {};
|
|
646
|
+
//#endregion
|
|
647
|
+
//#region src/components/Trust/tasks/TrustDropin/TrustDropin.tsx
|
|
648
|
+
var parseTrustScenarios$1 = (scenarios, country) => augmentWithCountryConfigs(trustCountryConfig[country], composePerScenarioFormConfigurations(scenarios, trustFieldsPerScenario));
|
|
649
|
+
var parseConfiguration$1 = ({ scenarios, country }) => parseTrustScenarios$1(scenarios, country);
|
|
650
|
+
function TrustDropin({ parentLegalEntity, capabilities, country: countryProp, existingTrust, taskType, problems: problemsProp, onSubmit: externalOnSubmit, onChange, hideSidebar, handleHomeClick }) {
|
|
651
|
+
const { state: { currentState } } = useStateContext();
|
|
652
|
+
const formValidity = currentState.validityByForm;
|
|
653
|
+
useEffect(() => {
|
|
654
|
+
onChange?.(currentState);
|
|
655
|
+
}, [currentState, onChange]);
|
|
656
|
+
const { baseUrl, rootLegalEntityId } = useApiContext();
|
|
657
|
+
const { t, i18n } = useTranslation(["common", "trust"]);
|
|
658
|
+
const [validationErrors, setValidationErrors] = useState();
|
|
659
|
+
const datasetUtils = datasetUtilities(i18n.language);
|
|
660
|
+
const { isFeatureEnabled } = useToggleContext();
|
|
661
|
+
const { showToast } = useToastContext();
|
|
662
|
+
const [loadingStatus, setLoadingStatus] = useState("success");
|
|
663
|
+
const isUnincorporatedPartnership = taskType === TaskTypes.UNINCORPORATED_PARTNERSHIP;
|
|
664
|
+
const problems = useMemo(() => ({
|
|
665
|
+
...problemsProp,
|
|
666
|
+
validationErrors
|
|
667
|
+
}), [problemsProp, validationErrors]);
|
|
668
|
+
const trustData = useMemo(() => {
|
|
669
|
+
if (!existingTrust) return {};
|
|
670
|
+
return isUnincorporatedPartnership ? mapLegalEntityToUnincorporatedPartnership(existingTrust, isFeatureEnabled) : mapLegalEntityToTrust(existingTrust, isFeatureEnabled);
|
|
671
|
+
}, [
|
|
672
|
+
isFeatureEnabled,
|
|
673
|
+
existingTrust,
|
|
674
|
+
isUnincorporatedPartnership
|
|
675
|
+
]);
|
|
676
|
+
const currentCountry = useMemo(() => currentState.data.trustRegistrationDetails?.country ?? countryProp, [countryProp, currentState.data.trustRegistrationDetails?.country]);
|
|
677
|
+
const [initialData, setInitialData] = useState(trustData);
|
|
678
|
+
/**
|
|
679
|
+
* Analytics
|
|
680
|
+
*/
|
|
681
|
+
useTaskLandedEvent(taskType);
|
|
682
|
+
useEffect(() => {
|
|
683
|
+
if (!existingTrust?.documentDetails?.length) return;
|
|
684
|
+
try {
|
|
685
|
+
documentUtils.fetchDocuments(existingTrust.documentDetails, existingTrust.id).then(() => {
|
|
686
|
+
const mappedDocuments = mapApiDocumentToTrustDocument(existingTrust.id);
|
|
687
|
+
setInitialData({
|
|
688
|
+
...initialData,
|
|
689
|
+
...mappedDocuments
|
|
690
|
+
});
|
|
691
|
+
}).catch(() => {
|
|
692
|
+
showToast({
|
|
693
|
+
label: t(($) => $["failedToFetchRelevantDocuments"]),
|
|
694
|
+
variant: "error"
|
|
695
|
+
});
|
|
696
|
+
});
|
|
697
|
+
} catch {
|
|
698
|
+
showToast({
|
|
699
|
+
label: t(($) => $["failedToFetchRelevantDocuments"]),
|
|
700
|
+
variant: "error"
|
|
701
|
+
});
|
|
702
|
+
}
|
|
703
|
+
}, []);
|
|
704
|
+
/**
|
|
705
|
+
* Fetch Configurations
|
|
706
|
+
*/
|
|
707
|
+
const { fieldConfigurations, requiredFields } = useScenarioConfiguration({
|
|
708
|
+
parseConfiguration: parseConfiguration$1,
|
|
709
|
+
legalEntityType: LegalEntityTypes.TRUST,
|
|
710
|
+
setLoadingStatus,
|
|
711
|
+
country: currentCountry
|
|
712
|
+
});
|
|
713
|
+
const fieldsFromCustomRules = useMemo(() => rules({
|
|
714
|
+
data: currentState.data,
|
|
715
|
+
country: currentCountry,
|
|
716
|
+
taskType,
|
|
717
|
+
requiredFields,
|
|
718
|
+
isFeatureEnabled
|
|
719
|
+
}), [
|
|
720
|
+
currentCountry,
|
|
721
|
+
currentState.data,
|
|
722
|
+
taskType,
|
|
723
|
+
requiredFields,
|
|
724
|
+
isFeatureEnabled
|
|
725
|
+
]);
|
|
726
|
+
const derivedProps = useMemo(() => getPropsFromConfigurations({
|
|
727
|
+
scenarioConfiguration: fieldConfigurations,
|
|
728
|
+
forms: trustForms$1,
|
|
729
|
+
remediationActions: problems?.remediationActions ? Object.values(problems?.remediationActions) : [],
|
|
730
|
+
dataMissingErrors: problems?.missingData ?? [],
|
|
731
|
+
fieldsWithExistingData: existingTrust ? getFieldsWithExistingData(existingTrust, trustApiKeyMapping, trustDocumentMapping) : [],
|
|
732
|
+
customRules: fieldsFromCustomRules,
|
|
733
|
+
legalEntityType: existingTrust?.type
|
|
734
|
+
}), [
|
|
735
|
+
fieldConfigurations,
|
|
736
|
+
problems?.remediationActions,
|
|
737
|
+
problems?.missingData,
|
|
738
|
+
existingTrust,
|
|
739
|
+
fieldsFromCustomRules
|
|
740
|
+
]);
|
|
741
|
+
const forms = useMemo(() => {
|
|
742
|
+
return addValidityToForms(getRequiredForms(trustForms$1, derivedProps?.requiredFields, derivedProps?.optionalFields), formValidity, problems);
|
|
743
|
+
}, [
|
|
744
|
+
derivedProps,
|
|
745
|
+
formValidity,
|
|
746
|
+
problems
|
|
747
|
+
]);
|
|
748
|
+
const onSubmitTrust = async () => {
|
|
749
|
+
setLoadingStatus("loading");
|
|
750
|
+
const trustDetails = mapTrustToLegalEntity(currentState.data, isFeatureEnabled);
|
|
751
|
+
try {
|
|
752
|
+
const updatedTrust = await submitTrustDetails(trustDetails);
|
|
753
|
+
await submitDocuments({
|
|
754
|
+
forms,
|
|
755
|
+
legalEntity: updatedTrust,
|
|
756
|
+
dataSubmitted: currentState.data
|
|
757
|
+
});
|
|
758
|
+
await attachTrustToParentLegalEntity(updatedTrust);
|
|
759
|
+
setLoadingStatus("success");
|
|
760
|
+
showToast({
|
|
761
|
+
label: t(($) => $["successfullyUpdatedDetails"]),
|
|
762
|
+
variant: "success"
|
|
763
|
+
});
|
|
764
|
+
externalOnSubmit?.(currentState.data);
|
|
765
|
+
} catch (e) {
|
|
766
|
+
showToast({
|
|
767
|
+
label: t(($) => $["failedToUpdateDetails"]),
|
|
768
|
+
variant: "error"
|
|
769
|
+
});
|
|
770
|
+
if (isValidationError(e)) setValidationErrors(processValidationErrors(e, taskType));
|
|
771
|
+
else if (isMaintenanceModeError(e)) showToast({
|
|
772
|
+
label: t(($) => $["maintenanceModeMessage"]),
|
|
773
|
+
variant: "error",
|
|
774
|
+
duration: "indefinite"
|
|
775
|
+
});
|
|
776
|
+
setLoadingStatus("success");
|
|
777
|
+
}
|
|
778
|
+
};
|
|
779
|
+
const onSubmitUnincorporatedPartnership = async () => {
|
|
780
|
+
setLoadingStatus("loading");
|
|
781
|
+
const unincorporatedPartnershipDetails = mapUnincorporatedPartnershipToLegalEntity(currentState.data, isFeatureEnabled);
|
|
782
|
+
try {
|
|
783
|
+
const updatedUnincorporatedPartnershipDetails = await submitTrustDetails(unincorporatedPartnershipDetails);
|
|
784
|
+
await submitDocuments({
|
|
785
|
+
forms,
|
|
786
|
+
legalEntity: updatedUnincorporatedPartnershipDetails,
|
|
787
|
+
dataSubmitted: currentState.data
|
|
788
|
+
});
|
|
789
|
+
await attachTrustToParentLegalEntity(updatedUnincorporatedPartnershipDetails);
|
|
790
|
+
setLoadingStatus("success");
|
|
791
|
+
showToast({
|
|
792
|
+
label: t(($) => $["successfullyUpdatedDetails"]),
|
|
793
|
+
variant: "success"
|
|
794
|
+
});
|
|
795
|
+
externalOnSubmit?.(currentState.data);
|
|
796
|
+
} catch (e) {
|
|
797
|
+
showToast({
|
|
798
|
+
label: t(($) => $["failedToUpdateDetails"]),
|
|
799
|
+
variant: "error"
|
|
800
|
+
});
|
|
801
|
+
if (isValidationError(e)) setValidationErrors(processValidationErrors(e, taskType));
|
|
802
|
+
else if (isMaintenanceModeError(e)) showToast({
|
|
803
|
+
label: t(($) => $["maintenanceModeMessage"]),
|
|
804
|
+
variant: "error",
|
|
805
|
+
duration: "indefinite"
|
|
806
|
+
});
|
|
807
|
+
setLoadingStatus("success");
|
|
808
|
+
}
|
|
809
|
+
};
|
|
810
|
+
const { mutateAsync: createLegalEntity } = useCreateLegalEntity();
|
|
811
|
+
const { mutateAsync: updateLegalEntity } = useUpdateLegalEntity();
|
|
812
|
+
const submitTrustDetails = async (legalEntity) => {
|
|
813
|
+
if (!existingTrust) return await createLegalEntity(legalEntity);
|
|
814
|
+
else return await updateLegalEntity({
|
|
815
|
+
...drop("type").from(legalEntity),
|
|
816
|
+
id: existingTrust.id
|
|
817
|
+
});
|
|
818
|
+
};
|
|
819
|
+
const documentUtils = documentApiUtils({
|
|
820
|
+
baseUrl: baseUrl.value,
|
|
821
|
+
rootLegalEntityId: rootLegalEntityId.value
|
|
822
|
+
});
|
|
823
|
+
const submitDocuments = async ({ forms, legalEntity, dataSubmitted }) => {
|
|
824
|
+
if (isDocumentsRequired(forms)) {
|
|
825
|
+
const formattedDocument = await mapTrustDocumentToApiDocument(dataSubmitted, legalEntity.id);
|
|
826
|
+
if (formattedDocument) await documentUtils.uploadDocuments([formattedDocument], legalEntity.id);
|
|
827
|
+
}
|
|
828
|
+
};
|
|
829
|
+
const isDocumentsRequired = (forms) => forms.some((form) => form.formId === trustForms$1.trustConstitutionalDocument.formId);
|
|
830
|
+
const attachTrustToParentLegalEntity = async (trust) => {
|
|
831
|
+
if (existingTrust?.id) return;
|
|
832
|
+
const existingEntityAssociations = getOwnEntityAssociations(parentLegalEntity);
|
|
833
|
+
await updateLegalEntity({
|
|
834
|
+
entityAssociations: [{
|
|
835
|
+
type: trust.type,
|
|
836
|
+
legalEntityId: trust.id
|
|
837
|
+
}, ...existingEntityAssociations],
|
|
838
|
+
id: parentLegalEntity.id
|
|
839
|
+
});
|
|
840
|
+
};
|
|
841
|
+
const formatDataForSummary = (formData, forms) => {
|
|
842
|
+
let summaryData = cloneObject(formData) || {};
|
|
843
|
+
const country = formData.trustRegistrationDetails?.country ?? (existingTrust ? getLegalEntityCountry(existingTrust) : getLegalEntityCountry(parentLegalEntity));
|
|
844
|
+
if (formData.trustRegistrationDetails) {
|
|
845
|
+
const trustCountry = formData.trustRegistrationDetails.country && datasetUtils.getCountryName(formData.trustRegistrationDetails.country);
|
|
846
|
+
const trustType = formData.trustRegistrationDetails.trustType && t(($) => $[formData.trustRegistrationDetails.trustType], { ns: "trust" });
|
|
847
|
+
const registrationNumberLabel = resolveFieldMetadata(registrationNumberDefaultFieldConfig[country], {
|
|
848
|
+
companyType: LegalEntityTypes.TRUST,
|
|
849
|
+
registrationNumberType: formData.trustRegistrationDetails.registrationNumber ? inferCompanyRegistrationNumberType(formData.trustRegistrationDetails.registrationNumber, country, LegalEntityTypes.TRUST) : getCompanyRegistrationNumberOptions(country, LegalEntityTypes.TRUST)?.[0]?.id
|
|
850
|
+
}, registrationNumberDefaultFieldMetadata).label;
|
|
851
|
+
const taxIdLabel = resolveFieldMetadata(taxInformationDefaultFieldConfig[country], {
|
|
852
|
+
companyType: LegalEntityTypes.TRUST,
|
|
853
|
+
taxIdNumberType: countryToTaxInfoTypeMap[country]
|
|
854
|
+
}, taxInformationDefaultFieldMetadata).label;
|
|
855
|
+
summaryData.trustRegistrationDetails = {
|
|
856
|
+
[isUnincorporatedPartnership ? "legalName" : "nameOfTrustAgreement"]: formData.trustRegistrationDetails?.legalName,
|
|
857
|
+
doingBusinessAs: formData.trustRegistrationDetails?.doingBusinessAs,
|
|
858
|
+
countryRegionOfEstablishment: trustCountry,
|
|
859
|
+
typeOfTrustAgreement: isUnincorporatedPartnership ? void 0 : trustType,
|
|
860
|
+
objectOfTrust: formData.trustRegistrationDetails?.objectOfTrust,
|
|
861
|
+
[taxIdLabel]: formData.trustRegistrationDetails?.taxInformation?.find((taxId) => country === taxId.country)?.number,
|
|
862
|
+
[registrationNumberLabel]: formData.trustRegistrationDetails.registrationNumber
|
|
863
|
+
};
|
|
864
|
+
}
|
|
865
|
+
if (formData.trustRegistrationAddress?.registrationAddress) {
|
|
866
|
+
summaryData.trustRegistrationAddress.hasInnerForms = true;
|
|
867
|
+
summaryData.trustRegistrationAddress.registrationAddress = mapAddressLabels(formData.trustRegistrationAddress.registrationAddress, datasetUtils);
|
|
868
|
+
}
|
|
869
|
+
if (formData.trustRegistrationAddress?.operationalAddress) summaryData.trustRegistrationAddress.operationalAddress = mapAddressLabels(formData.trustRegistrationAddress.operationalAddress, datasetUtils);
|
|
870
|
+
if (isDocumentsRequired(forms)) summaryData = {
|
|
871
|
+
...summaryData,
|
|
872
|
+
...formatFileSummaryData(formData.trustConstitutionalDocument)
|
|
873
|
+
};
|
|
874
|
+
else delete summaryData[trustConstitutionalDocumentFormId$1];
|
|
875
|
+
return summaryData;
|
|
876
|
+
};
|
|
877
|
+
const formatFileSummaryData = (trustConstitutionalDocument) => {
|
|
878
|
+
const constitutionalDocument = trustConstitutionalDocument?.constitutionalDocument?.[0];
|
|
879
|
+
return { ...constitutionalDocument && { trustConstitutionalDocument: { fileName: constitutionalDocument.name } } };
|
|
880
|
+
};
|
|
881
|
+
const canSubmit = (formData) => MANDATORY_FIELDS_TRUST.every((detail) => {
|
|
882
|
+
return !isEmpty(getProp(formData, detail));
|
|
883
|
+
});
|
|
884
|
+
const { handleNextClick, handleBackClick, activeForm, shouldValidate, setShouldValidate, gotoFormByFormIndex, gotoFormByFormId, steps } = useFormComposer({
|
|
885
|
+
problems,
|
|
886
|
+
forms,
|
|
887
|
+
onSubmit: isUnincorporatedPartnership ? onSubmitUnincorporatedPartnership : onSubmitTrust
|
|
888
|
+
});
|
|
889
|
+
return /* @__PURE__ */ jsx(FormWrapper, {
|
|
890
|
+
taskName: isUnincorporatedPartnership ? "unincorporatedDetails" : "trustDetails",
|
|
891
|
+
handleNextClick,
|
|
892
|
+
handleBackClick,
|
|
893
|
+
gotoFormByFormIndex,
|
|
894
|
+
gotoFormByFormId,
|
|
895
|
+
loadingStatus,
|
|
896
|
+
forms,
|
|
897
|
+
activeForm,
|
|
898
|
+
onSubmit: isUnincorporatedPartnership ? onSubmitUnincorporatedPartnership : onSubmitTrust,
|
|
899
|
+
hideSidebar,
|
|
900
|
+
handleHomeClick,
|
|
901
|
+
validateForm: () => setShouldValidate(true),
|
|
902
|
+
canSubmit: canSubmit(currentState.data) && hasDataChanged(initialData, currentState.data),
|
|
903
|
+
problems,
|
|
904
|
+
summary: {
|
|
905
|
+
data: formatDataForSummary(currentState.data, forms),
|
|
906
|
+
omitted: { keys: ["operationalAddressIsSame"] }
|
|
907
|
+
},
|
|
908
|
+
steps,
|
|
909
|
+
children: /* @__PURE__ */ jsx(Trust, {
|
|
910
|
+
...derivedProps,
|
|
911
|
+
activeForm,
|
|
912
|
+
capabilities,
|
|
913
|
+
data: initialData,
|
|
914
|
+
country: currentCountry,
|
|
915
|
+
problems,
|
|
916
|
+
shouldValidate,
|
|
917
|
+
taskType
|
|
918
|
+
})
|
|
919
|
+
});
|
|
920
|
+
}
|
|
921
|
+
//#endregion
|
|
922
|
+
//#region src/components/Shared/forms/RegistrationAddress/RegistrationAddressMultiform.tsx
|
|
923
|
+
var registrationAddressFormID = {
|
|
924
|
+
registrationAddress: {
|
|
925
|
+
formId: "registrationAddress",
|
|
926
|
+
formName: "registeredAddress",
|
|
927
|
+
fields: ["address"]
|
|
928
|
+
},
|
|
929
|
+
operationalAddress: {
|
|
930
|
+
formId: "operationalAddress",
|
|
931
|
+
formName: "operationalAddressHeader",
|
|
932
|
+
fields: ["address"]
|
|
933
|
+
}
|
|
934
|
+
}.registrationAddress.formId;
|
|
935
|
+
function RegistrationAddressMultiform(props) {
|
|
936
|
+
const { t } = useTranslation("common");
|
|
937
|
+
const { id, heading, description, country, problems } = props;
|
|
938
|
+
const { form } = useFormContext();
|
|
939
|
+
const data = form.data.trustRegistrationAddress;
|
|
940
|
+
const { requiredFields: registrationAddressRequiredFields, optionalFields: registrationAddressOptionalFields, readOnlyFields: registrationAddressReadOnlyFields, obscuredFields: registrationAddressObscuredFields, verifyFields: registrationAddressVerifyFields, trustedFields: registrationAddressTrustedFields } = getFormProps(props, registrationAddressFormID);
|
|
941
|
+
const formUtils = createFormUtils({
|
|
942
|
+
...props,
|
|
943
|
+
requiredFields: registrationAddressRequiredFields,
|
|
944
|
+
optionalFields: registrationAddressOptionalFields,
|
|
945
|
+
readOnlyFields: registrationAddressReadOnlyFields,
|
|
946
|
+
obscuredFields: registrationAddressObscuredFields,
|
|
947
|
+
verifyFields: registrationAddressVerifyFields,
|
|
948
|
+
trustedFields: registrationAddressTrustedFields
|
|
949
|
+
}, t);
|
|
950
|
+
const isOperationAddressNotSame = () => data?.operationalAddressIsSame === operationalAddressIsSameIds.OPERATIONAL_ADDRESS_IS_NOT_SAME;
|
|
951
|
+
const registrationAddressValidRef = useRef(Boolean(form.valid.trustRegistrationAddress?.registrationAddress));
|
|
952
|
+
const operationalAddressValidRef = useRef(Boolean(form.valid.trustRegistrationAddress?.operationalAddress));
|
|
953
|
+
useEffect(() => {
|
|
954
|
+
if (form.valid.trustRegistrationAddress?.registrationAddress !== registrationAddressValidRef.current) form.setValid("registrationAddress", registrationAddressValidRef.current, "trustRegistrationAddress");
|
|
955
|
+
if (isOperationAddressNotSame() && form.valid.trustRegistrationAddress?.operationalAddress !== operationalAddressValidRef.current) form.setValid("operationalAddress", operationalAddressValidRef.current, "trustRegistrationAddress");
|
|
956
|
+
}, [form.valid.trustRegistrationAddress]);
|
|
957
|
+
const handleChangeFor = useCallback((fieldName, mode) => form.handleChangeFor(fieldName, "trustRegistrationAddress", mode), [form]);
|
|
958
|
+
const handleRegistrationAddressChange = (state) => {
|
|
959
|
+
handleChangeFor("registrationAddress")(state.data);
|
|
960
|
+
registrationAddressValidRef.current = Boolean(state.isValid);
|
|
961
|
+
};
|
|
962
|
+
const handleOperationalAddressChange = (state) => {
|
|
963
|
+
handleChangeFor("operationalAddress")(state.data);
|
|
964
|
+
operationalAddressValidRef.current = Boolean(state.isValid);
|
|
965
|
+
};
|
|
966
|
+
const handleOperationalAddressIsSameChange = (value) => {
|
|
967
|
+
handleChangeFor("operationalAddressIsSame")(value);
|
|
968
|
+
if (value === "OperationAddressAnswerYes") form.setValid("operationalAddress", true, "trustRegistrationAddress");
|
|
969
|
+
};
|
|
970
|
+
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
971
|
+
heading && /* @__PURE__ */ jsx(Header, {
|
|
972
|
+
title: heading,
|
|
973
|
+
description
|
|
974
|
+
}),
|
|
975
|
+
/* @__PURE__ */ jsx(ErrorPanel, {
|
|
976
|
+
verificationErrors: id ? problems?.verificationErrors?.[id] : void 0,
|
|
977
|
+
validationErrors: id ? problems?.validationErrors?.[id] : void 0,
|
|
978
|
+
formUtils,
|
|
979
|
+
id: "ariaErrorField"
|
|
980
|
+
}),
|
|
981
|
+
/* @__PURE__ */ jsx(ContextGuidance, {
|
|
982
|
+
titleId: "whyDoINeedToFillInThisInformation",
|
|
983
|
+
contentId: "reasonForFillingCompanyAddressDetails",
|
|
984
|
+
title: t(($) => $["whyDoINeedToFillInThisInformation"]),
|
|
985
|
+
content: t(($) => $["reasonForFillingCompanyAddressDetails"])
|
|
986
|
+
}),
|
|
987
|
+
/* @__PURE__ */ jsx(Address, {
|
|
988
|
+
data: {
|
|
989
|
+
...form.data?.trustRegistrationAddress?.registrationAddress,
|
|
990
|
+
country
|
|
991
|
+
},
|
|
992
|
+
hideCountry: true,
|
|
993
|
+
id,
|
|
994
|
+
addressType: "registrationAddress",
|
|
995
|
+
optionalFields: ["otherAddressInformation"],
|
|
996
|
+
onChange: handleRegistrationAddressChange
|
|
997
|
+
}),
|
|
998
|
+
/* @__PURE__ */ jsx(Header, {
|
|
999
|
+
title: t(($) => $["operationalAddressHeader"]),
|
|
1000
|
+
secondary: true
|
|
1001
|
+
}),
|
|
1002
|
+
/* @__PURE__ */ jsx(Field, {
|
|
1003
|
+
el: "fieldset",
|
|
1004
|
+
name: "operationalAddressIsSame",
|
|
1005
|
+
label: formUtils.getLabel("operationalAddressIsSame"),
|
|
1006
|
+
errorMessage: form.errors.trustRegistrationAddress?.operationalAddressIsSame?.errorMessage,
|
|
1007
|
+
children: (childProps) => /* @__PURE__ */ jsx(RadioGroup, {
|
|
1008
|
+
...childProps,
|
|
1009
|
+
name: "operationalAddressIsSame",
|
|
1010
|
+
items: operationalAddressIsSameItems,
|
|
1011
|
+
value: data?.operationalAddressIsSame,
|
|
1012
|
+
disabled: formUtils.isReadOnly("operationalAddressIsSame"),
|
|
1013
|
+
onChange: handleOperationalAddressIsSameChange,
|
|
1014
|
+
"aria-required": true,
|
|
1015
|
+
"aria-invalid": !form.valid.trustRegistrationAddress?.operationalAddressIsSame
|
|
1016
|
+
})
|
|
1017
|
+
}),
|
|
1018
|
+
isOperationAddressNotSame() && /* @__PURE__ */ jsx(Address, {
|
|
1019
|
+
data: {
|
|
1020
|
+
...form.data?.trustRegistrationAddress?.operationalAddress,
|
|
1021
|
+
country
|
|
1022
|
+
},
|
|
1023
|
+
hideCountry: true,
|
|
1024
|
+
id,
|
|
1025
|
+
optionalFields: ["otherAddressInformation"],
|
|
1026
|
+
addressType: "operationalAddress",
|
|
1027
|
+
onChange: handleOperationalAddressChange
|
|
1028
|
+
}, "operationalAddress")
|
|
1029
|
+
] });
|
|
1030
|
+
}
|
|
1031
|
+
//#endregion
|
|
1032
|
+
//#region src/components/Trust/forms/TrustRegistrationDetails/TrustRegistrationDetailsMultiform.tsx
|
|
1033
|
+
var ALLOWED_TRUST_COUNTRIES = [CountryCodes.Australia, CountryCodes.NewZealand];
|
|
1034
|
+
var TRUST_REGISTRATION_DETAILS = trustForms$1.trustRegistrationDetails.formId;
|
|
1035
|
+
function TrustRegistrationDetailsMultiform({ fieldValidationErrors = {}, formVerificationErrors = {}, heading, shouldValidate, taskType, country: parentLegalEntityCountry }) {
|
|
1036
|
+
const { t: trustT } = useTranslation("trust");
|
|
1037
|
+
const { t: CommonT } = useTranslation("common");
|
|
1038
|
+
const { form } = useFormContext();
|
|
1039
|
+
const { data, valid, errors, allFields, trustedFields, obscuredFields, optionalFields, requiredFields } = useMemo(() => {
|
|
1040
|
+
return {
|
|
1041
|
+
data: form.data.trustRegistrationDetails ?? {},
|
|
1042
|
+
valid: form.valid.trustRegistrationDetails ?? {},
|
|
1043
|
+
errors: form.errors.trustRegistrationDetails ?? {},
|
|
1044
|
+
allFields: form.allFields?.trustRegistrationDetails ?? [],
|
|
1045
|
+
trustedFields: form.trustedFields?.trustRegistrationDetails ?? [],
|
|
1046
|
+
obscuredFields: form.obscuredFields?.trustRegistrationDetails ?? [],
|
|
1047
|
+
optionalFields: form.optionalFields?.trustRegistrationDetails ?? [],
|
|
1048
|
+
requiredFields: form.requiredFields?.trustRegistrationDetails ?? []
|
|
1049
|
+
};
|
|
1050
|
+
}, [form]);
|
|
1051
|
+
const country = data?.country ?? parentLegalEntityCountry;
|
|
1052
|
+
const trustTypeOptions = getCountrySpecificTrustTypeOptions(country) ?? [];
|
|
1053
|
+
const isUnincorporatedPartnership = taskType === TaskTypes.UNINCORPORATED_PARTNERSHIP;
|
|
1054
|
+
const handleChange = (fieldName, mode) => form.handleChangeFor(fieldName, "trustRegistrationDetails", mode);
|
|
1055
|
+
const changeTrustType = (e) => {
|
|
1056
|
+
handleChange("trustType", "blur")(e);
|
|
1057
|
+
if (e.target.value !== "charitableTrust") form.setData("objectOfTrust", void 0, TRUST_REGISTRATION_DETAILS);
|
|
1058
|
+
};
|
|
1059
|
+
const formUtils = useMemo(() => {
|
|
1060
|
+
const initialProps = {
|
|
1061
|
+
data,
|
|
1062
|
+
valid,
|
|
1063
|
+
errors,
|
|
1064
|
+
fieldValidationErrors,
|
|
1065
|
+
formVerificationErrors,
|
|
1066
|
+
allFields,
|
|
1067
|
+
trustedFields,
|
|
1068
|
+
obscuredFields,
|
|
1069
|
+
optionalFields,
|
|
1070
|
+
requiredFields
|
|
1071
|
+
};
|
|
1072
|
+
const formUtilProps = initialProps?.allFields?.reduce((acc, field) => {
|
|
1073
|
+
switch (field) {
|
|
1074
|
+
case "hasDoingBusinessAs": return mergeFieldMetadataIntoProps("hasDoingBusinessAs", doingBusinessAsAbsentFieldMetadata, acc);
|
|
1075
|
+
case "doingBusinessAs": return mergeFieldMetadataIntoProps("doingBusinessAs", doingBusinessAsFieldMetadata, acc);
|
|
1076
|
+
case "taxInformation": return mergeFieldMetadataIntoProps("taxInformation", resolveFieldMetadata(taxInformationDefaultFieldConfig[country], {
|
|
1077
|
+
taxIdNumberType: data.taxInformation?.find((taxId) => taxId.country === country)?.type,
|
|
1078
|
+
companyType: LegalEntityTypes.TRUST
|
|
1079
|
+
}, taxInformationDefaultFieldMetadata), acc);
|
|
1080
|
+
case "exemptedFromTax": return mergeFieldMetadataIntoProps("exemptedFromTax", resolveFieldMetadata(exemptedFromTaxDefaultFieldConfig[country], {}, exemptedFromTaxDefaultFieldMetadata), acc);
|
|
1081
|
+
case "registrationNumber": return mergeFieldMetadataIntoProps("registrationNumber", resolveFieldMetadata(registrationNumberDefaultFieldConfig[country], {
|
|
1082
|
+
companyType: LegalEntityTypes.TRUST,
|
|
1083
|
+
registrationNumberType: data.registrationNumberType
|
|
1084
|
+
}, registrationNumberDefaultFieldMetadata), acc);
|
|
1085
|
+
case "exemptedFromRegistrationNumber": return mergeFieldMetadataIntoProps("exemptedFromRegistrationNumber", resolveFieldMetadata(exemptFromRegistrationNumberDefaultFieldConfig[country], {}, exemptFromRegistrationNumberDefaultFieldMetadata), acc);
|
|
1086
|
+
case "vatNumber": return mergeFieldMetadataIntoProps("vatNumber", resolveFieldMetadata(defaultFieldConfig[country], { vatNumberType: data?.vatNumberType }, defaultFieldMetadata), acc);
|
|
1087
|
+
default: return acc;
|
|
1088
|
+
}
|
|
1089
|
+
}, initialProps);
|
|
1090
|
+
return createFormUtils(formUtilProps ?? initialProps, CommonT);
|
|
1091
|
+
}, [
|
|
1092
|
+
CommonT,
|
|
1093
|
+
allFields,
|
|
1094
|
+
country,
|
|
1095
|
+
data,
|
|
1096
|
+
errors,
|
|
1097
|
+
fieldValidationErrors,
|
|
1098
|
+
formVerificationErrors,
|
|
1099
|
+
obscuredFields,
|
|
1100
|
+
optionalFields,
|
|
1101
|
+
requiredFields,
|
|
1102
|
+
trustedFields,
|
|
1103
|
+
valid
|
|
1104
|
+
]);
|
|
1105
|
+
const showField = (fieldName) => formUtils.isRequiredField(fieldName) || formUtils.isOptionalField(fieldName);
|
|
1106
|
+
return /* @__PURE__ */ jsxs("form", {
|
|
1107
|
+
id: TRUST_REGISTRATION_DETAILS,
|
|
1108
|
+
className: "adyen-kyc-trust__registration-details",
|
|
1109
|
+
children: [
|
|
1110
|
+
heading && /* @__PURE__ */ jsx(Header, { title: heading }),
|
|
1111
|
+
/* @__PURE__ */ jsx(ErrorPanel, {
|
|
1112
|
+
verificationErrors: formVerificationErrors,
|
|
1113
|
+
validationErrors: fieldValidationErrors,
|
|
1114
|
+
formUtils,
|
|
1115
|
+
id: "ariaErrorField"
|
|
1116
|
+
}),
|
|
1117
|
+
!isUnincorporatedPartnership && /* @__PURE__ */ jsx(Alert, {
|
|
1118
|
+
variant: "info",
|
|
1119
|
+
title: /* @__PURE__ */ jsx(Typography, {
|
|
1120
|
+
variant: "caption",
|
|
1121
|
+
color: "secondary",
|
|
1122
|
+
children: trustT(($) => $["makeSureToHaveYourTrustDeed"])
|
|
1123
|
+
}),
|
|
1124
|
+
className: "adyen-kyc-u-margin-bottom-16"
|
|
1125
|
+
}),
|
|
1126
|
+
formUtils.isRequiredField("country") && /* @__PURE__ */ jsx(CountryField, {
|
|
1127
|
+
data: formUtils.getFieldData(data, COUNTRY_FIELD),
|
|
1128
|
+
valid: formUtils.getFieldValid(valid, COUNTRY_FIELD),
|
|
1129
|
+
errors: formUtils.getFieldErrors(errors, fieldValidationErrors, COUNTRY_FIELD),
|
|
1130
|
+
labels: formUtils.getFieldLabels(COUNTRY_FIELD, { country: "countryRegionOfEstablishment" }),
|
|
1131
|
+
readonly: formUtils.isReadOnly("country"),
|
|
1132
|
+
allowedCountries: isUnincorporatedPartnership ? ALLOWED_UNINCORPORATED_PARTNERSHIP_COUNTRIES : ALLOWED_TRUST_COUNTRIES,
|
|
1133
|
+
handleChangeFor: () => (e) => {
|
|
1134
|
+
handleChange("country", "input")(e);
|
|
1135
|
+
}
|
|
1136
|
+
}),
|
|
1137
|
+
formUtils.isRequiredField("legalName") && /* @__PURE__ */ jsx(Field, {
|
|
1138
|
+
name: "legalName",
|
|
1139
|
+
label: formUtils.getLabel(isUnincorporatedPartnership ? "legalName" : "nameOfTrustAgreement"),
|
|
1140
|
+
errorMessage: formUtils.getErrorMessage("legalName", errors, fieldValidationErrors),
|
|
1141
|
+
isValid: valid?.legalName,
|
|
1142
|
+
children: (childProps) => /* @__PURE__ */ jsx(InputText, {
|
|
1143
|
+
...childProps,
|
|
1144
|
+
name: "legalName",
|
|
1145
|
+
value: data?.legalName,
|
|
1146
|
+
readonly: formUtils.isReadOnly("legalName"),
|
|
1147
|
+
onInput: handleChange("legalName", "input"),
|
|
1148
|
+
onBlur: handleChange("legalName", "blur"),
|
|
1149
|
+
"aria-required": true,
|
|
1150
|
+
"aria-invalid": !valid?.legalName
|
|
1151
|
+
})
|
|
1152
|
+
}),
|
|
1153
|
+
formUtils.isRequiredField("hasDoingBusinessAs") && /* @__PURE__ */ jsx(DBANameField, {
|
|
1154
|
+
data: formUtils.getFieldData(data, DBA_NAME_FIELD),
|
|
1155
|
+
valid: formUtils.getFieldValid(valid, DBA_NAME_FIELD),
|
|
1156
|
+
errors: formUtils.getFieldErrors(errors, fieldValidationErrors, DBA_NAME_FIELD),
|
|
1157
|
+
readonly: formUtils.isReadOnly("doingBusinessAs"),
|
|
1158
|
+
handleChangeFor: handleChange
|
|
1159
|
+
}),
|
|
1160
|
+
formUtils.isRequiredField("trustType") && !isUnincorporatedPartnership && /* @__PURE__ */ jsx(Field, {
|
|
1161
|
+
name: "trustType",
|
|
1162
|
+
label: formUtils.getLabel("trustType", "typeOfTrustAgreement"),
|
|
1163
|
+
errorMessage: formUtils.getErrorMessage("trustType", errors, fieldValidationErrors),
|
|
1164
|
+
isValid: valid?.trustType,
|
|
1165
|
+
dataTestId: "trust-type",
|
|
1166
|
+
children: (childProps) => /* @__PURE__ */ jsx(Select, {
|
|
1167
|
+
...childProps,
|
|
1168
|
+
name: "trustType",
|
|
1169
|
+
onChange: changeTrustType,
|
|
1170
|
+
selected: data?.trustType,
|
|
1171
|
+
items: trustTypeOptions.map((trust) => ({
|
|
1172
|
+
id: trust,
|
|
1173
|
+
name: trustT(($) => $[trust])
|
|
1174
|
+
})),
|
|
1175
|
+
placeholder: trustT(($) => $["trustType"])
|
|
1176
|
+
})
|
|
1177
|
+
}),
|
|
1178
|
+
formUtils.isRequiredField("objectOfTrust") && /* @__PURE__ */ jsx(Field, {
|
|
1179
|
+
name: "objectOfTrust",
|
|
1180
|
+
label: formUtils.getLabel("objectOfCharitableTrust"),
|
|
1181
|
+
helper: formUtils.getLabel("pleaseProvideThePurposeOfCharitableTrust"),
|
|
1182
|
+
errorMessage: formUtils.getErrorMessage("objectOfTrust", errors, fieldValidationErrors),
|
|
1183
|
+
isValid: valid?.objectOfTrust,
|
|
1184
|
+
children: (childProps) => /* @__PURE__ */ jsx(InputText, {
|
|
1185
|
+
...childProps,
|
|
1186
|
+
name: "objectOfTrust",
|
|
1187
|
+
value: data?.objectOfTrust,
|
|
1188
|
+
readonly: formUtils.isReadOnly("objectOfTrust"),
|
|
1189
|
+
onInput: handleChange("objectOfTrust", "input"),
|
|
1190
|
+
onBlur: handleChange("objectOfTrust", "blur"),
|
|
1191
|
+
"aria-required": true,
|
|
1192
|
+
"aria-invalid": !valid?.objectOfTrust
|
|
1193
|
+
})
|
|
1194
|
+
}),
|
|
1195
|
+
showField("taxInformation") && /* @__PURE__ */ jsx(TaxInformationField, {
|
|
1196
|
+
data: formUtils.getFieldData(data, TAX_INFORMATION_FIELD),
|
|
1197
|
+
valid: formUtils.getFieldValid(valid, TAX_INFORMATION_FIELD),
|
|
1198
|
+
errors: formUtils.getFieldErrors(errors, fieldValidationErrors, TAX_INFORMATION_FIELD),
|
|
1199
|
+
labels: formUtils.getFieldLabels(TAX_INFORMATION_FIELD, { exemptedFromTax: "iDontHaveATaxId" }),
|
|
1200
|
+
mask: formUtils.getMask("taxInformation"),
|
|
1201
|
+
readonly: formUtils.isReadOnly("taxInformation"),
|
|
1202
|
+
shouldValidate,
|
|
1203
|
+
handleChangeFor: handleChange,
|
|
1204
|
+
optional: formUtils.isOptionalField("taxInformation"),
|
|
1205
|
+
canExempt: formUtils.isRequiredField("exemptedFromTax"),
|
|
1206
|
+
country: data?.country,
|
|
1207
|
+
entityType: LegalEntityTypes.TRUST,
|
|
1208
|
+
defaultData: data?.taxInformation,
|
|
1209
|
+
registrationNumber: data.registrationNumber
|
|
1210
|
+
}),
|
|
1211
|
+
showField("registrationNumber") && /* @__PURE__ */ jsx(BusinessRegistrationNumberField, {
|
|
1212
|
+
data: formUtils.getFieldData(data, BUSINESS_REGISTRATION_NUMBER_FIELD),
|
|
1213
|
+
valid: formUtils.getFieldValid(valid, BUSINESS_REGISTRATION_NUMBER_FIELD),
|
|
1214
|
+
errors: formUtils.getFieldErrors(errors, fieldValidationErrors, BUSINESS_REGISTRATION_NUMBER_FIELD),
|
|
1215
|
+
labels: formUtils.getFieldLabels(BUSINESS_REGISTRATION_NUMBER_FIELD, { exemptedFromRegistrationNumber: "iDontHaveARegistrationNumber" }),
|
|
1216
|
+
mask: formUtils.getMask("registrationNumber"),
|
|
1217
|
+
helperText: getRegistrationNumberHelperText(trustT, {
|
|
1218
|
+
country,
|
|
1219
|
+
companyType: LegalEntityTypes.TRUST
|
|
1220
|
+
}),
|
|
1221
|
+
readonly: formUtils.isReadOnly("registrationNumber"),
|
|
1222
|
+
optional: formUtils.isOptionalField("registrationNumber"),
|
|
1223
|
+
shouldValidate,
|
|
1224
|
+
handleChangeFor: handleChange,
|
|
1225
|
+
country,
|
|
1226
|
+
canExempt: formUtils.isRequiredField("exemptedFromRegistrationNumber"),
|
|
1227
|
+
companyType: LegalEntityTypes.TRUST
|
|
1228
|
+
}),
|
|
1229
|
+
showField("vatNumber") && /* @__PURE__ */ jsx(VatNumberField, {
|
|
1230
|
+
data: formUtils.getFieldData(data, VAT_NUMBER_FIELD),
|
|
1231
|
+
valid: formUtils.getFieldValid(valid, VAT_NUMBER_FIELD),
|
|
1232
|
+
errors: formUtils.getFieldErrors(errors, fieldValidationErrors, VAT_NUMBER_FIELD),
|
|
1233
|
+
labels: formUtils.getFieldLabels(VAT_NUMBER_FIELD, { exemptedFromVat: "iDontHaveAVatNumber" }),
|
|
1234
|
+
optional: formUtils.isOptionalField("vatNumber"),
|
|
1235
|
+
readonly: formUtils.isReadOnly("vatNumber"),
|
|
1236
|
+
handleChangeFor: handleChange,
|
|
1237
|
+
country,
|
|
1238
|
+
canExempt: formUtils.isRequiredField("exemptedFromVat")
|
|
1239
|
+
})
|
|
1240
|
+
]
|
|
1241
|
+
});
|
|
1242
|
+
}
|
|
1243
|
+
//#endregion
|
|
1244
|
+
//#region src/components/Trust/tasks/TrustDropin/TrustMultiform.tsx
|
|
1245
|
+
var trustForms = {
|
|
1246
|
+
trustRegistrationDetails: {
|
|
1247
|
+
formId: "trustRegistrationDetails",
|
|
1248
|
+
formName: "registrationDetails",
|
|
1249
|
+
fields: [...trustRegistrationDetailsFields]
|
|
1250
|
+
},
|
|
1251
|
+
trustRegistrationAddress: {
|
|
1252
|
+
formId: "trustRegistrationAddress",
|
|
1253
|
+
formName: "addressDetails",
|
|
1254
|
+
fields: registrationAddressFields
|
|
1255
|
+
},
|
|
1256
|
+
trustConstitutionalDocument: {
|
|
1257
|
+
formId: "trustConstitutionalDocument",
|
|
1258
|
+
formName: "constitutionalDocument",
|
|
1259
|
+
fields: ["constitutionalDocument"]
|
|
1260
|
+
}
|
|
1261
|
+
};
|
|
1262
|
+
var trustRegistrationAddressFormId = trustForms.trustRegistrationAddress.formId;
|
|
1263
|
+
var trustRegistrationDetailsFormId = trustForms.trustRegistrationDetails.formId;
|
|
1264
|
+
var trustConstitutionalDocumentFormId = trustForms.trustConstitutionalDocument.formId;
|
|
1265
|
+
function TrustMultiform(props) {
|
|
1266
|
+
const { t } = useTranslation(["common", "trust"]);
|
|
1267
|
+
const { country, activeForm, taskType, shouldValidate, problems = {} } = props;
|
|
1268
|
+
const { form } = useFormContext();
|
|
1269
|
+
const isUnincorporatedPartnership = taskType === TaskTypes.UNINCORPORATED_PARTNERSHIP;
|
|
1270
|
+
function handleChange(formName, fieldName, mode) {
|
|
1271
|
+
return form.handleChangeFor(fieldName, formName, mode);
|
|
1272
|
+
}
|
|
1273
|
+
const renderActiveForm = (activeForm) => {
|
|
1274
|
+
switch (activeForm.formId) {
|
|
1275
|
+
case trustRegistrationDetailsFormId: return /* @__PURE__ */ jsx(TrustRegistrationDetailsMultiform, {
|
|
1276
|
+
heading: t(($) => $["registrationDetails"]),
|
|
1277
|
+
id: trustRegistrationDetailsFormId,
|
|
1278
|
+
taskType,
|
|
1279
|
+
shouldValidate,
|
|
1280
|
+
country
|
|
1281
|
+
});
|
|
1282
|
+
case trustRegistrationAddressFormId: return /* @__PURE__ */ jsx(RegistrationAddressMultiform, {
|
|
1283
|
+
heading: t(($) => $["addressDetails"]),
|
|
1284
|
+
description: !isUnincorporatedPartnership ? t(($) => $["registeredAddressTrustHeaderDescription"], { ns: "trust" }) : t(($) => $["registeredAddressUnincorporatedPartnershipHeaderDescription"], { ns: "trust" }),
|
|
1285
|
+
id: trustRegistrationAddressFormId,
|
|
1286
|
+
country,
|
|
1287
|
+
problems,
|
|
1288
|
+
labels: { operationalAddressIsSame: !isUnincorporatedPartnership ? "isTrustOperationAddressSame" : "isPartnershipOperationAddressSame" },
|
|
1289
|
+
shouldValidate
|
|
1290
|
+
});
|
|
1291
|
+
case trustConstitutionalDocumentFormId: return /* @__PURE__ */ jsx(MemoizedConstitutionalDocument, {
|
|
1292
|
+
id: activeForm.formId,
|
|
1293
|
+
legalEntityType: isUnincorporatedPartnership ? LegalEntityTypes.UNINCORPORATED_PARTNERSHIP : LegalEntityTypes.TRUST,
|
|
1294
|
+
country,
|
|
1295
|
+
data: form.data?.trustConstitutionalDocument,
|
|
1296
|
+
errors: form.errors.trustConstitutionalDocument,
|
|
1297
|
+
valid: form.valid.trustConstitutionalDocument,
|
|
1298
|
+
allFields: form.allFields?.trustConstitutionalDocument,
|
|
1299
|
+
requiredFields: form.requiredFields?.trustConstitutionalDocument,
|
|
1300
|
+
optionalFields: form.optionalFields?.trustConstitutionalDocument,
|
|
1301
|
+
trustedFields: form.trustedFields?.trustConstitutionalDocument,
|
|
1302
|
+
handleFieldChange: () => handleChange("trustConstitutionalDocument", "constitutionalDocument"),
|
|
1303
|
+
shouldValidate,
|
|
1304
|
+
fieldValidationErrors: problems.validationErrors?.[activeForm.formId] ?? {},
|
|
1305
|
+
formVerificationErrors: problems.verificationErrors?.[activeForm.formId] ?? {}
|
|
1306
|
+
});
|
|
1307
|
+
default: return null;
|
|
1308
|
+
}
|
|
1309
|
+
};
|
|
1310
|
+
return /* @__PURE__ */ jsx("div", {
|
|
1311
|
+
className: "adyen-kyc-trust",
|
|
1312
|
+
children: /* @__PURE__ */ jsx("div", {
|
|
1313
|
+
className: "adyen-kyc-form-wrapper",
|
|
1314
|
+
children: renderActiveForm(activeForm || trustForms.trustRegistrationDetails)
|
|
1315
|
+
})
|
|
1316
|
+
});
|
|
1317
|
+
}
|
|
1318
|
+
//#endregion
|
|
1319
|
+
//#region src/components/Trust/tasks/TrustDropin/validate.ts
|
|
1320
|
+
function trustRegistrationDetailsValidators(country, trustRegistrationDetails = {}, isFeatureEnabled) {
|
|
1321
|
+
const defaultTrustRegistrationDetailsValidators = isFeatureEnabled("StrictNameAndAddressValidationV4") ? trustRegistrationDetailsValidationsV4 : trustRegistrationDetailsValidations;
|
|
1322
|
+
const { registrationNumberType, taxInformation, vatNumberType } = trustRegistrationDetails;
|
|
1323
|
+
return {
|
|
1324
|
+
...defaultTrustRegistrationDetailsValidators,
|
|
1325
|
+
hasDoingBusinessAs: doingBusinessAsAbsentFieldMetadata.validators,
|
|
1326
|
+
doingBusinessAs: doingBusinessAsFieldMetadata.validators,
|
|
1327
|
+
taxInformation: resolveFieldMetadata(taxInformationDefaultFieldConfig[country], {
|
|
1328
|
+
taxIdNumberType: taxInformation?.find((taxId) => taxId.country === country)?.type,
|
|
1329
|
+
companyType: LegalEntityTypes.TRUST
|
|
1330
|
+
}, taxInformationDefaultFieldMetadata)?.validators,
|
|
1331
|
+
exemptedFromTax: resolveFieldMetadata(exemptedFromTaxDefaultFieldConfig[country], {}, exemptedFromTaxDefaultFieldMetadata)?.validators,
|
|
1332
|
+
registrationNumber: resolveFieldMetadata(registrationNumberDefaultFieldConfig[country], {
|
|
1333
|
+
companyType: LegalEntityTypes.TRUST,
|
|
1334
|
+
registrationNumberType,
|
|
1335
|
+
isFeatureEnabled
|
|
1336
|
+
}, registrationNumberDefaultFieldMetadata)?.validators,
|
|
1337
|
+
exemptedFromRegistrationNumber: resolveFieldMetadata(exemptFromRegistrationNumberDefaultFieldConfig[country], {}, exemptFromRegistrationNumberDefaultFieldMetadata)?.validators,
|
|
1338
|
+
vatNumber: resolveFieldMetadata(defaultFieldConfig[country], { vatNumberType }, defaultFieldMetadata)?.validators
|
|
1339
|
+
};
|
|
1340
|
+
}
|
|
1341
|
+
//#endregion
|
|
1342
|
+
//#region src/components/Trust/tasks/TrustDropin/TrustMultiformDropin.tsx
|
|
1343
|
+
var parseTrustScenarios = (scenarios, country) => augmentWithCountryConfigs(trustCountryConfig[country], composePerScenarioFormConfigurations(scenarios, trustFieldsPerScenario));
|
|
1344
|
+
var parseConfiguration = ({ scenarios, country }) => parseTrustScenarios(scenarios, country);
|
|
1345
|
+
function TrustMultiformDropin({ parentLegalEntity, country: countryProp, existingTrust, taskType, problems: problemsProp, onSubmit: externalOnSubmit, handleHomeClick }) {
|
|
1346
|
+
const { baseUrl, rootLegalEntityId } = useApiContext();
|
|
1347
|
+
const { t, i18n } = useTranslation(["common", "trust"]);
|
|
1348
|
+
const [validationErrors, setValidationErrors] = useState();
|
|
1349
|
+
const datasetUtils = datasetUtilities(i18n.language);
|
|
1350
|
+
const { isFeatureEnabled } = useToggleContext();
|
|
1351
|
+
const { showToast } = useToastContext();
|
|
1352
|
+
const [loadingStatus, setLoadingStatus] = useState("success");
|
|
1353
|
+
const [country, setCountry] = useState(countryProp);
|
|
1354
|
+
const isUnincorporatedPartnership = taskType === TaskTypes.UNINCORPORATED_PARTNERSHIP;
|
|
1355
|
+
const problems = useMemo(() => ({
|
|
1356
|
+
...problemsProp,
|
|
1357
|
+
validationErrors
|
|
1358
|
+
}), [problemsProp, validationErrors]);
|
|
1359
|
+
const [initialData, setInitialData] = useState(useMemo(() => {
|
|
1360
|
+
if (!existingTrust) return { trustRegistrationDetails: { country: countryProp } };
|
|
1361
|
+
return isUnincorporatedPartnership ? mapLegalEntityToUnincorporatedPartnership(existingTrust, isFeatureEnabled) : mapLegalEntityToTrust(existingTrust, isFeatureEnabled);
|
|
1362
|
+
}, [
|
|
1363
|
+
isFeatureEnabled,
|
|
1364
|
+
existingTrust,
|
|
1365
|
+
isUnincorporatedPartnership,
|
|
1366
|
+
countryProp
|
|
1367
|
+
]));
|
|
1368
|
+
const documentUtils = documentApiUtils({
|
|
1369
|
+
baseUrl: baseUrl.value,
|
|
1370
|
+
rootLegalEntityId: rootLegalEntityId.value
|
|
1371
|
+
});
|
|
1372
|
+
/**
|
|
1373
|
+
* Analytics
|
|
1374
|
+
*/
|
|
1375
|
+
useTaskLandedEvent(taskType);
|
|
1376
|
+
useEffect(() => {
|
|
1377
|
+
if (!existingTrust?.documentDetails?.length) return;
|
|
1378
|
+
documentUtils.fetchDocuments(existingTrust.documentDetails, existingTrust.id).then(() => {
|
|
1379
|
+
const mappedDocuments = mapApiDocumentToTrustDocument(existingTrust.id);
|
|
1380
|
+
setInitialData((prev) => ({
|
|
1381
|
+
...prev,
|
|
1382
|
+
...mappedDocuments
|
|
1383
|
+
}));
|
|
1384
|
+
}).catch(() => {
|
|
1385
|
+
showToast({
|
|
1386
|
+
label: t(($) => $["failedToFetchRelevantDocuments"]),
|
|
1387
|
+
variant: "error"
|
|
1388
|
+
});
|
|
1389
|
+
});
|
|
1390
|
+
}, []);
|
|
1391
|
+
const [derivedProps, setDerivedProps] = useState();
|
|
1392
|
+
const buildTrustValidations = useCallback((data) => {
|
|
1393
|
+
return { trustRegistrationDetails: trustRegistrationDetailsValidators(country, data?.trustRegistrationDetails, isFeatureEnabled) };
|
|
1394
|
+
}, [country, isFeatureEnabled]);
|
|
1395
|
+
const multiForm = useMultiForm({
|
|
1396
|
+
defaultData: initialData,
|
|
1397
|
+
allFields: derivedProps?.allFields,
|
|
1398
|
+
requiredFields: derivedProps?.requiredFields,
|
|
1399
|
+
optionalFields: derivedProps?.optionalFields,
|
|
1400
|
+
obscuredFields: derivedProps?.obscuredFields,
|
|
1401
|
+
trustedFields: derivedProps?.trustedFields,
|
|
1402
|
+
rules: buildTrustValidations
|
|
1403
|
+
});
|
|
1404
|
+
/**
|
|
1405
|
+
* Fetch Configurations
|
|
1406
|
+
*/
|
|
1407
|
+
const { fieldConfigurations, requiredFields } = useScenarioConfiguration({
|
|
1408
|
+
parseConfiguration,
|
|
1409
|
+
legalEntityType: LegalEntityTypes.TRUST,
|
|
1410
|
+
setLoadingStatus,
|
|
1411
|
+
country
|
|
1412
|
+
});
|
|
1413
|
+
const fieldsFromCustomRules = useMemo(() => rules({
|
|
1414
|
+
data: multiForm.data,
|
|
1415
|
+
country,
|
|
1416
|
+
taskType,
|
|
1417
|
+
requiredFields
|
|
1418
|
+
}), [
|
|
1419
|
+
country,
|
|
1420
|
+
multiForm.data,
|
|
1421
|
+
taskType,
|
|
1422
|
+
requiredFields
|
|
1423
|
+
]);
|
|
1424
|
+
useEffect(() => {
|
|
1425
|
+
setDerivedProps(getPropsFromConfigurations({
|
|
1426
|
+
scenarioConfiguration: fieldConfigurations,
|
|
1427
|
+
forms: trustForms$1,
|
|
1428
|
+
remediationActions: problems?.remediationActions ? Object.values(problems?.remediationActions) : [],
|
|
1429
|
+
dataMissingErrors: problems?.missingData ?? [],
|
|
1430
|
+
fieldsWithExistingData: existingTrust ? getFieldsWithExistingData(existingTrust, trustApiKeyMapping, trustDocumentMapping) : [],
|
|
1431
|
+
customRules: fieldsFromCustomRules,
|
|
1432
|
+
legalEntityType: existingTrust?.type
|
|
1433
|
+
}));
|
|
1434
|
+
}, [
|
|
1435
|
+
fieldConfigurations,
|
|
1436
|
+
problems?.remediationActions,
|
|
1437
|
+
problems?.missingData,
|
|
1438
|
+
existingTrust,
|
|
1439
|
+
fieldsFromCustomRules
|
|
1440
|
+
]);
|
|
1441
|
+
/**
|
|
1442
|
+
* Current country value must be kept in sync with what is selected in basicInformation form
|
|
1443
|
+
*/
|
|
1444
|
+
const [prevCountry, setPrevCountry] = useState(multiForm.data.trustRegistrationDetails?.country);
|
|
1445
|
+
if (multiForm.data.trustRegistrationDetails?.country && prevCountry !== multiForm.data.trustRegistrationDetails?.country) {
|
|
1446
|
+
setCountry(multiForm.data?.trustRegistrationDetails?.country ?? countryProp);
|
|
1447
|
+
setPrevCountry(multiForm.data.trustRegistrationDetails?.country);
|
|
1448
|
+
}
|
|
1449
|
+
const forms = useMemo(() => {
|
|
1450
|
+
return addValidityToForms(getRequiredForms(trustForms$1, derivedProps?.requiredFields, derivedProps?.optionalFields), multiForm.isValid, problems);
|
|
1451
|
+
}, [
|
|
1452
|
+
derivedProps,
|
|
1453
|
+
multiForm.isValid,
|
|
1454
|
+
problems
|
|
1455
|
+
]);
|
|
1456
|
+
const onSubmitTrust = async () => {
|
|
1457
|
+
setLoadingStatus("loading");
|
|
1458
|
+
const trustDetails = mapTrustToLegalEntity(multiForm.data, isFeatureEnabled);
|
|
1459
|
+
try {
|
|
1460
|
+
const updatedTrust = await submitTrustDetails(trustDetails);
|
|
1461
|
+
await submitDocuments({
|
|
1462
|
+
forms,
|
|
1463
|
+
legalEntity: updatedTrust,
|
|
1464
|
+
dataSubmitted: multiForm.data
|
|
1465
|
+
});
|
|
1466
|
+
await attachTrustToParentLegalEntity(updatedTrust);
|
|
1467
|
+
setLoadingStatus("success");
|
|
1468
|
+
showToast({
|
|
1469
|
+
label: t(($) => $["successfullyUpdatedDetails"]),
|
|
1470
|
+
variant: "success"
|
|
1471
|
+
});
|
|
1472
|
+
externalOnSubmit?.(multiForm.data);
|
|
1473
|
+
} catch (e) {
|
|
1474
|
+
showToast({
|
|
1475
|
+
label: t(($) => $["failedToUpdateDetails"]),
|
|
1476
|
+
variant: "error"
|
|
1477
|
+
});
|
|
1478
|
+
if (isValidationError(e)) setValidationErrors(processValidationErrors(e, taskType));
|
|
1479
|
+
else if (isMaintenanceModeError(e)) showToast({
|
|
1480
|
+
label: t(($) => $["maintenanceModeMessage"]),
|
|
1481
|
+
variant: "error",
|
|
1482
|
+
duration: "indefinite"
|
|
1483
|
+
});
|
|
1484
|
+
setLoadingStatus("success");
|
|
1485
|
+
}
|
|
1486
|
+
};
|
|
1487
|
+
const onSubmitUnincorporatedPartnership = async () => {
|
|
1488
|
+
setLoadingStatus("loading");
|
|
1489
|
+
const unincorporatedPartnershipDetails = mapUnincorporatedPartnershipToLegalEntity(multiForm.data, isFeatureEnabled);
|
|
1490
|
+
try {
|
|
1491
|
+
const updatedUnincorporatedPartnershipDetails = await submitTrustDetails(unincorporatedPartnershipDetails);
|
|
1492
|
+
await submitDocuments({
|
|
1493
|
+
forms,
|
|
1494
|
+
legalEntity: updatedUnincorporatedPartnershipDetails,
|
|
1495
|
+
dataSubmitted: multiForm.data
|
|
1496
|
+
});
|
|
1497
|
+
await attachTrustToParentLegalEntity(updatedUnincorporatedPartnershipDetails);
|
|
1498
|
+
setLoadingStatus("success");
|
|
1499
|
+
showToast({
|
|
1500
|
+
label: t(($) => $["successfullyUpdatedDetails"]),
|
|
1501
|
+
variant: "success"
|
|
1502
|
+
});
|
|
1503
|
+
externalOnSubmit?.(multiForm.data);
|
|
1504
|
+
} catch (e) {
|
|
1505
|
+
showToast({
|
|
1506
|
+
label: t(($) => $["failedToUpdateDetails"]),
|
|
1507
|
+
variant: "error"
|
|
1508
|
+
});
|
|
1509
|
+
if (isValidationError(e)) setValidationErrors(processValidationErrors(e, taskType));
|
|
1510
|
+
else if (isMaintenanceModeError(e)) showToast({
|
|
1511
|
+
label: t(($) => $["maintenanceModeMessage"]),
|
|
1512
|
+
variant: "error",
|
|
1513
|
+
duration: "indefinite"
|
|
1514
|
+
});
|
|
1515
|
+
setLoadingStatus("success");
|
|
1516
|
+
}
|
|
1517
|
+
};
|
|
1518
|
+
const { mutateAsync: createLegalEntity } = useCreateLegalEntity();
|
|
1519
|
+
const { mutateAsync: updateLegalEntity } = useUpdateLegalEntity();
|
|
1520
|
+
const submitTrustDetails = async (legalEntity) => {
|
|
1521
|
+
if (!existingTrust) return await createLegalEntity(legalEntity);
|
|
1522
|
+
else return await updateLegalEntity({
|
|
1523
|
+
...drop("type").from(legalEntity),
|
|
1524
|
+
id: existingTrust.id
|
|
1525
|
+
});
|
|
1526
|
+
};
|
|
1527
|
+
const submitDocuments = async ({ forms, legalEntity, dataSubmitted }) => {
|
|
1528
|
+
if (isDocumentsRequired(forms)) {
|
|
1529
|
+
const formattedDocument = await mapTrustDocumentToApiDocument(dataSubmitted, legalEntity.id);
|
|
1530
|
+
if (formattedDocument) await documentUtils.uploadDocuments([formattedDocument], legalEntity.id);
|
|
1531
|
+
}
|
|
1532
|
+
};
|
|
1533
|
+
const isDocumentsRequired = (forms) => forms.some((form) => form.formId === trustForms$1.trustConstitutionalDocument.formId);
|
|
1534
|
+
const attachTrustToParentLegalEntity = async (trust) => {
|
|
1535
|
+
if (existingTrust?.id) return;
|
|
1536
|
+
const existingEntityAssociations = getOwnEntityAssociations(parentLegalEntity);
|
|
1537
|
+
await updateLegalEntity({
|
|
1538
|
+
entityAssociations: [{
|
|
1539
|
+
type: trust.type,
|
|
1540
|
+
legalEntityId: trust.id
|
|
1541
|
+
}, ...existingEntityAssociations],
|
|
1542
|
+
id: parentLegalEntity.id
|
|
1543
|
+
});
|
|
1544
|
+
};
|
|
1545
|
+
const formatDataForSummary = useCallback((formData, forms) => {
|
|
1546
|
+
let summaryData = cloneObject(formData) || {};
|
|
1547
|
+
const country = formData.trustRegistrationDetails?.country ?? (existingTrust ? getLegalEntityCountry(existingTrust) : getLegalEntityCountry(parentLegalEntity));
|
|
1548
|
+
if (formData.trustRegistrationDetails) {
|
|
1549
|
+
const trustCountry = formData.trustRegistrationDetails.country && datasetUtils.getCountryName(formData.trustRegistrationDetails.country);
|
|
1550
|
+
const trustType = formData.trustRegistrationDetails.trustType && t(($) => $[formData.trustRegistrationDetails.trustType], { ns: "trust" });
|
|
1551
|
+
const registrationNumberLabel = resolveFieldMetadata(registrationNumberDefaultFieldConfig[country], {
|
|
1552
|
+
companyType: LegalEntityTypes.TRUST,
|
|
1553
|
+
registrationNumberType: formData.trustRegistrationDetails.registrationNumber ? inferCompanyRegistrationNumberType(formData.trustRegistrationDetails.registrationNumber, country, LegalEntityTypes.TRUST) : getCompanyRegistrationNumberOptions(country, LegalEntityTypes.TRUST)?.[0]?.id
|
|
1554
|
+
}, registrationNumberDefaultFieldMetadata).label;
|
|
1555
|
+
const taxIdLabel = resolveFieldMetadata(taxInformationDefaultFieldConfig[country], {
|
|
1556
|
+
companyType: LegalEntityTypes.TRUST,
|
|
1557
|
+
taxIdNumberType: countryToTaxInfoTypeMap[country]
|
|
1558
|
+
}, taxInformationDefaultFieldMetadata).label;
|
|
1559
|
+
summaryData.trustRegistrationDetails = {
|
|
1560
|
+
[isUnincorporatedPartnership ? "legalName" : "nameOfTrustAgreement"]: formData.trustRegistrationDetails?.legalName,
|
|
1561
|
+
doingBusinessAs: formData.trustRegistrationDetails?.doingBusinessAs,
|
|
1562
|
+
countryRegionOfEstablishment: trustCountry,
|
|
1563
|
+
typeOfTrustAgreement: isUnincorporatedPartnership ? void 0 : trustType,
|
|
1564
|
+
objectOfTrust: formData.trustRegistrationDetails?.objectOfTrust,
|
|
1565
|
+
[taxIdLabel]: formData.trustRegistrationDetails?.taxInformation?.find((taxId) => country === taxId.country)?.number,
|
|
1566
|
+
[registrationNumberLabel]: formData.trustRegistrationDetails.registrationNumber
|
|
1567
|
+
};
|
|
1568
|
+
}
|
|
1569
|
+
if (formData.trustRegistrationAddress?.registrationAddress) {
|
|
1570
|
+
summaryData.trustRegistrationAddress.hasInnerForms = true;
|
|
1571
|
+
summaryData.trustRegistrationAddress.registrationAddress = mapAddressLabels(formData.trustRegistrationAddress.registrationAddress, datasetUtils);
|
|
1572
|
+
}
|
|
1573
|
+
if (formData.trustRegistrationAddress?.operationalAddress) summaryData.trustRegistrationAddress.operationalAddress = mapAddressLabels(formData.trustRegistrationAddress.operationalAddress, datasetUtils);
|
|
1574
|
+
if (isDocumentsRequired(forms)) summaryData = {
|
|
1575
|
+
...summaryData,
|
|
1576
|
+
...formatFileSummaryData(formData.trustConstitutionalDocument)
|
|
1577
|
+
};
|
|
1578
|
+
else delete summaryData[trustConstitutionalDocumentFormId$1];
|
|
1579
|
+
return summaryData;
|
|
1580
|
+
}, [
|
|
1581
|
+
datasetUtils,
|
|
1582
|
+
existingTrust,
|
|
1583
|
+
isUnincorporatedPartnership,
|
|
1584
|
+
parentLegalEntity,
|
|
1585
|
+
t
|
|
1586
|
+
]);
|
|
1587
|
+
const formatFileSummaryData = (trustConstitutionalDocument) => {
|
|
1588
|
+
const constitutionalDocument = trustConstitutionalDocument?.constitutionalDocument?.[0];
|
|
1589
|
+
return { ...constitutionalDocument && { trustConstitutionalDocument: { fileName: constitutionalDocument.name } } };
|
|
1590
|
+
};
|
|
1591
|
+
const { handleNextClick, handleBackClick, activeForm, shouldValidate, gotoFormByFormIndex, gotoFormByFormId, steps } = useFormComposer({
|
|
1592
|
+
problems,
|
|
1593
|
+
forms,
|
|
1594
|
+
onSubmit: isUnincorporatedPartnership ? onSubmitUnincorporatedPartnership : onSubmitTrust,
|
|
1595
|
+
triggerValidation: multiForm.triggerValidation
|
|
1596
|
+
});
|
|
1597
|
+
return /* @__PURE__ */ jsx(FormContextProvider, {
|
|
1598
|
+
form: multiForm,
|
|
1599
|
+
children: /* @__PURE__ */ jsx(FormFlow, {
|
|
1600
|
+
summary: {
|
|
1601
|
+
data: useMemo(() => formatDataForSummary(multiForm.data, forms), [
|
|
1602
|
+
formatDataForSummary,
|
|
1603
|
+
multiForm.data,
|
|
1604
|
+
forms
|
|
1605
|
+
]),
|
|
1606
|
+
omitted: { keys: ["operationalAddressIsSame"] }
|
|
1607
|
+
},
|
|
1608
|
+
currentStep: steps.current,
|
|
1609
|
+
totalSteps: steps.total,
|
|
1610
|
+
forms,
|
|
1611
|
+
activeForm,
|
|
1612
|
+
gotoFormByFormIndex,
|
|
1613
|
+
gotoFormByFormId,
|
|
1614
|
+
handleNextClick,
|
|
1615
|
+
handleBackClick,
|
|
1616
|
+
handleCancelClick: handleHomeClick,
|
|
1617
|
+
loadingStatus,
|
|
1618
|
+
children: /* @__PURE__ */ jsx(TrustMultiform, {
|
|
1619
|
+
country,
|
|
1620
|
+
activeForm,
|
|
1621
|
+
taskType,
|
|
1622
|
+
shouldValidate,
|
|
1623
|
+
problems
|
|
1624
|
+
})
|
|
1625
|
+
})
|
|
1626
|
+
});
|
|
1627
|
+
}
|
|
1628
|
+
//#endregion
|
|
1629
|
+
//#region src/components/Trust/pages/TrustDetailsPage.tsx
|
|
1630
|
+
var TrustDetailsPage = ({ taskType, trustId, handleHomeClick, onSubmit }) => {
|
|
1631
|
+
const { i18n } = useTranslation();
|
|
1632
|
+
const { data: rootLe } = useLegalEntity(ROOT_LE);
|
|
1633
|
+
const { isFeatureEnabled } = useToggleContext();
|
|
1634
|
+
const { data: associatedEntity, isLoading: isAssociatedEntityLoading } = useAssociatedLegalEntity(rootLe, taskType === "TRUST" ? LegalEntityTypes.TRUST : LegalEntityTypes.UNINCORPORATED_PARTNERSHIP);
|
|
1635
|
+
const { data: trustLeFromProp, isLoading: isTrustLeFromPropLoading } = useLegalEntity(trustId ?? skipToken);
|
|
1636
|
+
const trustLe = trustLeFromProp ?? associatedEntity;
|
|
1637
|
+
addResourceBundles(i18n, [{
|
|
1638
|
+
ns: "trust",
|
|
1639
|
+
importFn: (lang) => _rolldown_dynamic_import_helper_default(/* @__PURE__ */ Object.assign({
|
|
1640
|
+
"../language/bg-BG.json": () => import("./bg-BG-Doq5SqNZ.js"),
|
|
1641
|
+
"../language/cs-CZ.json": () => import("./cs-CZ-CNCOzk0z.js"),
|
|
1642
|
+
"../language/da-DK.json": () => import("./da-DK-Dq9DBbxy.js"),
|
|
1643
|
+
"../language/de-DE.json": () => import("./de-DE-BnAkTJpS.js"),
|
|
1644
|
+
"../language/el-GR.json": () => import("./el-GR-WE5RvoaZ.js"),
|
|
1645
|
+
"../language/en-US.json": () => import("./en-US-Y8C6Dmuq.js"),
|
|
1646
|
+
"../language/es-ES.json": () => import("./es-ES-DyrLbt2G.js"),
|
|
1647
|
+
"../language/et-EE.json": () => import("./et-EE-CjKIw3AU.js"),
|
|
1648
|
+
"../language/fi-FI.json": () => import("./fi-FI-YpLcMuZy.js"),
|
|
1649
|
+
"../language/fr-FR.json": () => import("./fr-FR-CWBeJe7e.js"),
|
|
1650
|
+
"../language/hr-HR.json": () => import("./hr-HR-B0eeXkQr.js"),
|
|
1651
|
+
"../language/hu-HU.json": () => import("./hu-HU-DmlhDBmZ.js"),
|
|
1652
|
+
"../language/it-IT.json": () => import("./it-IT-C3AVk1uR.js"),
|
|
1653
|
+
"../language/ja-JP.json": () => import("./ja-JP-ogtt9tGy.js"),
|
|
1654
|
+
"../language/lt-LT.json": () => import("./lt-LT-948HQZhZ.js"),
|
|
1655
|
+
"../language/lv-LV.json": () => import("./lv-LV-CrfpEaoB.js"),
|
|
1656
|
+
"../language/nl-NL.json": () => import("./nl-NL-CQYif340.js"),
|
|
1657
|
+
"../language/no-NO.json": () => import("./no-NO-DKzoUIzk.js"),
|
|
1658
|
+
"../language/pl-PL.json": () => import("./pl-PL-CWLfHfaM.js"),
|
|
1659
|
+
"../language/pt-BR.json": () => import("./pt-BR-BWN_WzRl.js"),
|
|
1660
|
+
"../language/pt-PT.json": () => import("./pt-PT-wBADnHVq.js"),
|
|
1661
|
+
"../language/ro-RO.json": () => import("./ro-RO-C2tZmDar.js"),
|
|
1662
|
+
"../language/sk-SK.json": () => import("./sk-SK-BsanrSCF.js"),
|
|
1663
|
+
"../language/sl-SI.json": () => import("./sl-SI-BsiDU3hz.js"),
|
|
1664
|
+
"../language/sv-SE.json": () => import("./sv-SE-DDCAUQsX.js")
|
|
1665
|
+
}), `../language/${lang}.json`, 3)
|
|
1666
|
+
}]);
|
|
1667
|
+
const capabilities = useCapabilities();
|
|
1668
|
+
const capabilityNames = capabilities ? keysOf(capabilities) : [];
|
|
1669
|
+
const capabilityProblems = useCapabilityProblems();
|
|
1670
|
+
const problems = capabilityProblems && trustLe?.id ? getProblemsForEntity(capabilityProblems, EntityTypes.LEGAL_ENTITY, trustLe.id) : void 0;
|
|
1671
|
+
if (!rootLe || isAssociatedEntityLoading || isTrustLeFromPropLoading) return /* @__PURE__ */ jsx(Loader, {});
|
|
1672
|
+
const country = getLegalEntityCountry(trustLe ?? rootLe);
|
|
1673
|
+
return /* @__PURE__ */ jsx(isFeatureEnabled("EnableMultiFormInTrustFlow") ? TrustMultiformDropin : TrustDropin, {
|
|
1674
|
+
taskType,
|
|
1675
|
+
problems,
|
|
1676
|
+
existingTrust: trustLe,
|
|
1677
|
+
parentLegalEntity: rootLe,
|
|
1678
|
+
capabilities: capabilityNames,
|
|
1679
|
+
country,
|
|
1680
|
+
handleHomeClick,
|
|
1681
|
+
onSubmit
|
|
1682
|
+
});
|
|
1683
|
+
};
|
|
1684
|
+
//#endregion
|
|
1685
|
+
export { TrustDetailsPage };
|