@adyen/kyc-components 4.19.3 → 4.20.0-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{Accordion-BnhH5-eC.js → Accordion-BWdAGMRb.js} +1 -1
- package/dist/{AccountSetupRejected-BSjJpsEe.js → AccountSetupRejected-C1_O6jJv.js} +2 -2
- package/dist/AdaptiveWorkflow-CcxnkwwU.js +5112 -0
- package/dist/{AdaptiveWorkflowComponent-BkFgsGiC.js → AdaptiveWorkflowComponent-CnzXTXn4.js} +36 -36
- package/dist/{Address-BBS-Y-VV.js → Address-C7EMPbk2.js} +8 -7
- package/dist/{AddressField-Dbe8-O83.js → AddressField-DLsx2U5w.js} +12 -253
- package/dist/{Avatar-Y_RdG_YY.js → Avatar-CeZIQS8n.js} +1 -1
- package/dist/{BusinessFinancingDropin-8bL2fkVm.js → BusinessFinancingDropin-x-tZL7h1.js} +33 -32
- package/dist/{BusinessFinancingPage-DV8aa_Xu.js → BusinessFinancingPage-esjygh4k.js} +33 -33
- package/dist/{utils-CKuxgSps.js → BusinessRegistrationNumberField-Di3jFH4D.js} +301 -53
- package/dist/{BusinessTypeSelectionPage-D29E9tt0.js → BusinessTypeSelectionPage-NggWJNN-.js} +18 -17
- package/dist/{Button-BuhgDsyo.js → Button-Cm7cT6BX.js} +1 -1
- package/dist/{Checkbox-CFN5ywvv.js → Checkbox-faFUul66.js} +1 -1
- package/dist/{CompanyRegistrationNumberTypeSelector-DkPByXrY.js → CompanyRegistrationNumberTypeSelector-Cx-ikuUx.js} +8 -8
- package/dist/{ContactDetails-BRBie-bX.js → ContactDetails-DEBmXhqi.js} +7 -7
- package/dist/{ContextGuidance-CgJpFWJX.js → ContextGuidance-BElID6dt.js} +2 -2
- package/dist/{CountryField-DT0dQp4X.js → CountryField-COQ0jZUr.js} +26 -21
- package/dist/{Currency-GB0vRGHi.js → Currency-BmZg_6ba.js} +8 -59
- package/dist/{CustomerSupport-D59Zi1On.js → CustomerSupport-CV8hjmuU.js} +14 -14
- package/dist/{DataConflictsModal-ylfWhjH6.js → DataConflictsModal-DEhX0dj-.js} +7 -7
- package/dist/{DebugModal-BO88XagR.js → DebugModal-CZWfupiD.js} +10 -10
- package/dist/{DecisionMakerDetails-BjylwRNE.js → DecisionMakerDetails-TM8gH66o.js} +17 -17
- package/dist/{DecisionMakerDetailsPage-D4A9J_Oi.js → DecisionMakerDetailsPage-BGBwZLa9.js} +12 -12
- package/dist/{DecisionMakers-BBKyOO7P.js → DecisionMakers-DVywCuuo.js} +18 -18
- package/dist/{Dropzone-2lpVgGQx.js → Dropzone-CNfh7t8n.js} +7 -7
- package/dist/{EmbeddedStatus-sHJnhw3K.js → EmbeddedStatus-uz3Ivsyw.js} +4 -4
- package/dist/{EndStateLayout-CddZpAGD.js → EndStateLayout-BUK64Vqu.js} +2 -2
- package/dist/{EntityAssociation-DsrNDRJa.js → EntityAssociation-AditEc-L.js} +7 -7
- package/dist/{ErrorPanel-CO-lz25B.js → ErrorPanel-Imjryvne.js} +4 -4
- package/dist/GlobalEntryModal-B3g2PO3M.js +353 -0
- package/dist/{GlobalEntryPage-BqwDgwib.js → GlobalEntryPage-DRgX-QRZ.js} +10 -10
- package/dist/{Image-Dc5Xg1_Y.js → Image-8SOcICah.js} +1 -1
- package/dist/{Individual.rules-CGEpeO1U.js → Individual.rules-Cf6J9EmJ.js} +7 -11
- package/dist/{IndividualDropin-L4_DKIAI.js → IndividualDropin-CYV3ZKHS.js} +64 -67
- package/dist/{InputDate-Cp2ga0F5.js → InputDate-DDVX2D-5.js} +2 -2
- package/dist/{InputText-CRkApOKK.js → InputText-Cf9ccCaj.js} +5 -5
- package/dist/{Introduction-3No8eERM.js → Introduction-DCzgsNoJ.js} +8 -8
- package/dist/{InvitedDecisionMakerComponent-DaLHjWMM.js → InvitedDecisionMakerComponent-DJLd6Lu5.js} +41 -41
- package/dist/{JpAddress-CFRhZj_H.js → JpAddress-DB2kYWl3.js} +19 -17
- package/dist/{JpAddress.module-Dn4Ju2bh.js → JpAddress.module-Du1BLOT6.js} +4 -4
- package/dist/{JpAddressFields-vOxKYbjD.js → JpAddressFields-DUFSKwxb.js} +15 -14
- package/dist/{LegalCompanyNameField-CSFXsi0w.js → LegalCompanyNameField-C9OqHgYV.js} +5 -5
- package/dist/{LegalRepresentativeDetailsPage-Cys10cqd.js → LegalRepresentativeDetailsPage-B-cGHl1B.js} +8 -8
- package/dist/{Link-PH3F7iTO.js → Link-B7RA2gSt.js} +1 -1
- package/dist/{ListItem-B-gDVdRO.js → ListItem-Cy46BXUv.js} +27 -4
- package/dist/{MaskedInput-DzapJ4L6.js → MaskedInput-Cl4XQJWs.js} +11 -11
- package/dist/{Modal-BYdlsXkf.js → Modal-nylR9F4X.js} +1 -1
- package/dist/{Name-D-iTk5lL.js → Name-B4visbWf.js} +5 -5
- package/dist/{NewSummary-J3cpvFv5.js → NewSummary-Bfjw18hL.js} +6 -6
- package/dist/{PatriotActDisclosure-BhAvO8jw.js → PatriotActDisclosure-BGEKyaQt.js} +15 -15
- package/dist/{PayoutDetailsDropin-XjfiuWMg.js → PayoutDetailsDropin-jSQj2RD-.js} +187 -135
- package/dist/{PayoutDetailsPage-s5VdElP1.js → PayoutDetailsPage-BZdfX5jM.js} +10 -10
- package/dist/{RadioGroup-DDelawpF.js → RadioGroup-DVTPPMDE.js} +3 -3
- package/dist/{Review-iLlK8Gsw.js → Review-qQzdk3qb.js} +8 -8
- package/dist/{RootBusinessDetailsPage-CaJgVGuI.js → RootBusinessDetailsPage-TcUyXebg.js} +9 -9
- package/dist/{RootBusinessLinesPage-DG5vfFLx.js → RootBusinessLinesPage-BOqDtYb2.js} +30 -30
- package/dist/{RootIndividualDetailsPage-D8jRgkRh.js → RootIndividualDetailsPage-CEVQx7xD.js} +9 -9
- package/dist/{Select-B_JTzm_p.js → Select-Chv4JUrV.js} +12 -13
- package/dist/{SignPCIComponent-B5KSvmFl.js → SignPCIComponent-ETmKQluE.js} +56 -54
- package/dist/{SingpassSelection-Cp81PGow.js → SingpassSelection-o8XoJD5O.js} +6 -6
- package/dist/SoleProprietorshipPage-CG6uNgBk.js +70 -0
- package/dist/{SourceOfFundsPage-DOMW4CSL.js → SourceOfFundsPage-jKUQ4C86.js} +58 -44
- package/dist/{StructuredList-B7a8TRGN.js → StructuredList-C0ZSbjSm.js} +4 -4
- package/dist/{TaskListItem-BEKj7-IV.js → TaskListItem-DKIE7ZPn.js} +11 -11
- package/dist/{TaskVerificationStatus-ITLSeoau.js → TaskVerificationStatus-DMj8rsZ_.js} +1 -1
- package/dist/{TaxReportingDropin-DtSHC_PF.js → TaxReportingDropin-YQojYDDm.js} +18 -18
- package/dist/{TermsOfServiceManagement-BT2l5rmZ.js → TermsOfServiceManagement-DnMMVMcK.js} +68 -66
- package/dist/{TextArea-BzCbFjRp.js → TextArea-CoS-i-FF.js} +3 -3
- package/dist/{TrustDetailsPage-Ck61RWfw.js → TrustDetailsPage-CAkLJDcG.js} +341 -318
- package/dist/TrustMemberCompanyPage-Dk-7ziVe.js +109 -0
- package/dist/TrustMemberIndividualPage-CoDVqztD.js +110 -0
- package/dist/{TrustMemberRoleAndTypePage-pQFp7NgT.js → TrustMemberRoleAndTypePage-CHT8K362.js} +19 -19
- package/dist/{TrustMembersOverview-CBsA1RI-.js → TrustMembersOverview-vlUX7K6T.js} +14 -14
- package/dist/UnincorporatedPartnershipIndividualPage-zybaeGrq.js +79 -0
- package/dist/{UnincorporatedPartnershipMemberCompanyPage-auTPs-Tz.js → UnincorporatedPartnershipMemberCompanyPage-lp-NJ0pN.js} +37 -37
- package/dist/{UnincorporatedPartnershipMemberRoleAndTypePage-CvA3KohN.js → UnincorporatedPartnershipMemberRoleAndTypePage-CMv_3G2I.js} +11 -11
- package/dist/{UnincorporatedPartnershipMembersOverview-Cox0rCBN.js → UnincorporatedPartnershipMembersOverview-BZdCH2jo.js} +9 -9
- package/dist/{VerificationErrorAlert-B0PC4P1y.js → VerificationErrorAlert-DYfqUstY.js} +4 -4
- package/dist/{accountHolderUtils-DBErj0sK.js → accountHolderUtils-C4FV_ij9.js} +1 -1
- package/dist/adyen-business-financing.js +34 -34
- package/dist/adyen-individual-configuration.js +34 -34
- package/dist/adyen-individual-status.js +33 -33
- package/dist/adyen-invited-decision-maker.js +3 -3
- package/dist/adyen-onboarding.js +59 -59
- package/dist/adyen-terms-of-service-management.js +3 -3
- package/dist/adyen-terms-of-service-status.js +6 -6
- package/dist/adyen-transfer-instrument-configuration.js +33 -33
- package/dist/adyen-transfer-instrument-management.js +40 -40
- package/dist/adyen-verification-status.js +6 -6
- package/dist/{bafinUtils-C0ZHrxmm.js → bafinUtils-BheS8P9F.js} +19 -19
- package/dist/bg-BG-Bmveyt6S.js +7 -0
- package/dist/{constants-O2G1QiRh.js → constants-vF9EIV5U.js} +4 -4
- package/dist/{country-BxigZW1s.js → country-IYuKDSdC.js} +14 -2
- package/dist/cs-CZ-D5CQd_YI.js +7 -0
- package/dist/da-DK-Bl0-8FN4.js +7 -0
- package/dist/de-DE-Hah2EvAY.js +7 -0
- package/dist/el-GR-C9KGlGa7.js +7 -0
- package/dist/{en-US-CWDI7JKT.js → en-US-BFM81i9K.js} +3 -1
- package/dist/{en-US-CeiLSh8o.js → en-US-BorLJXJ4.js} +3 -1
- package/dist/en-US-Del1h5SS.js +23 -0
- package/dist/en-US-DqhKW1eC.js +7 -0
- package/dist/en-US-X8pjkwa3.js +7 -0
- package/dist/{omitObscuredFieldsIfUnchanged-OWpeoceJ.js → error-G-MG9N7x.js} +19 -3
- package/dist/es-ES-DSwi-qfd.js +7 -0
- package/dist/es-LA-0IrX8yr2.js +7 -0
- package/dist/es-LA-1H8dAUVR.js +7 -0
- package/dist/es-LA-BjZq9RK_.js +7 -0
- package/dist/{es-LA-DU9jNyAv.js → es-LA-CGrMi4rR.js} +2 -2
- package/dist/{es-LA-DMpf5gAW.js → es-LA-DBBkFhgU.js} +2 -2
- package/dist/et-EE-BGpsJPjk.js +7 -0
- package/dist/fi-FI-BdrXeX9d.js +7 -0
- package/dist/{form-rules-wh_oE1AN.js → form-rules-DV3hxYqZ.js} +2 -2
- package/dist/formatValidationError-C7bubJ6u.js +23 -0
- package/dist/fr-FR-hleHEr-Y.js +7 -0
- package/dist/{getProblemsForEntity-set4Krmx.js → getProblemsForEntity-DStlTvE-.js} +2 -2
- package/dist/{getTrustedDecisionMakers-B_XpRta-.js → getTrustedDecisionMakers-CAbhvydj.js} +2 -2
- package/dist/hr-HR--ti3n_XO.js +7 -0
- package/dist/{http-CFac2y4i.js → http-D6AdUBhO.js} +57 -2
- package/dist/hu-HU-D9Avt-9f.js +7 -0
- package/dist/it-IT-Dq5z7p1-.js +7 -0
- package/dist/ja-JP-Dyhw0Ycj.js +7 -0
- package/dist/japanSupportUtils-H5Zfox2v.js +11 -0
- package/dist/{localizeDateString-BRB4gPDZ.js → localizeDateString-D-MlYN4V.js} +1 -1
- package/dist/lt-LT-BMI4JzrS.js +7 -0
- package/dist/lv-LV-LkNZQ__4.js +7 -0
- package/dist/mapExistingFile-LvvzPjnk.js +55 -0
- package/dist/{mapJpAddressSchemaToAddressLocalizations-DRXCsaz1.js → mapJpAddressSchemaToAddressLocalizations-DDUtPeTO.js} +3 -51
- package/dist/{mapLegalEntityToIndividualSchema-CLIcMhX7.js → mapLegalEntityToIndividualSchema-mRiQ3tJY.js} +8 -8
- package/dist/{mapTransferInstrumentToPayoutAccount-DAXQcZKf.js → mapTransferInstrumentToPayoutAccount-cKBtK0Qx.js} +2 -2
- package/dist/nl-NL-CC2r7Ldv.js +7 -0
- package/dist/no-NO-V7_rz3uN.js +7 -0
- package/dist/{patternValidators-Du9xAjZM.js → patternValidators-DZ7aKZAe.js} +1 -1
- package/dist/pl-PL-2QyKX67Y.js +7 -0
- package/dist/{processCapabilities-zti_0yUx.js → processCapabilities-BSpmJOEd.js} +13 -13
- package/dist/{processValidationErrors-ZmBA9Egc.js → processValidationErrors-DM-tJ5ua.js} +2 -2
- package/dist/pt-BR-D08Fo1qY.js +7 -0
- package/dist/pt-PT-BAQWYDe6.js +7 -0
- package/dist/{resolveEnvironment-CIuEEnSu.js → resolveEnvironment-BsUsq25-.js} +39 -39
- package/dist/ro-RO-wG0rfL5w.js +7 -0
- package/dist/sk-SK-DJinBnS1.js +7 -0
- package/dist/sl-SI-DUaLO_J7.js +7 -0
- package/dist/style.css +153 -139
- package/dist/styles-DYaAeu4q.js +153 -139
- package/dist/sv-SE-5uxyEq2a.js +7 -0
- package/dist/toFullWidth-Dgy4X4i8.js +52 -0
- package/dist/{translation-CcKrUksA.js → translation-DH4IlMCP.js} +6 -2
- package/dist/types/adaptiveWorkflow/component-registry-v2.d.ts +46 -0
- package/dist/types/adaptiveWorkflow/components/Fields/IdentityScreening/IdentityScreeningWorkflow.d.ts +1 -2
- package/dist/types/adaptiveWorkflow/components/Layout/ComponentGroup/ComponentGroup.d.ts +6 -0
- package/dist/types/adaptiveWorkflow/components/Layout/ComponentGroup/contextMap.d.ts +5 -0
- package/dist/types/adaptiveWorkflow/components/Layout/DynamicForm/DynamicForm.d.ts +6 -0
- package/dist/types/adaptiveWorkflow/components/Layout/DynamicForm/useCustomerDataV2.d.ts +28 -0
- package/dist/types/adaptiveWorkflow/components/Layout/Steps/AcceptTermsOfServiceWorkflow.d.ts +2 -0
- package/dist/types/adaptiveWorkflow/components/Layout/Steps/IdentityScreeningWorkflow.d.ts +2 -0
- package/dist/types/adaptiveWorkflow/components/Layout/Steps/SourceOfFundsWorkflow.d.ts +2 -0
- package/dist/types/adaptiveWorkflow/components/Layout/Steps/Step/Step.d.ts +2 -0
- package/dist/types/adaptiveWorkflow/components/Layout/Steps/Step/contextMap.d.ts +2 -0
- package/dist/types/adaptiveWorkflow/components/Layout/Steps/TaxReportingWorkflow.d.ts +2 -0
- package/dist/types/adaptiveWorkflow/components/Layout/Task/Task.d.ts +9 -0
- package/dist/types/adaptiveWorkflow/components/Layout/Task/contextMap.d.ts +2 -0
- package/dist/types/adaptiveWorkflow/components/Layout/TaskGroup/TaskGroup.d.ts +5 -0
- package/dist/types/adaptiveWorkflow/components/Layout/TaskGroup/contextMap.d.ts +2 -0
- package/dist/types/adaptiveWorkflow/components/Layout/UboTaskItem/UboTaskItem.d.ts +8 -0
- package/dist/types/adaptiveWorkflow/components/Layout/Workflow/Workflow.d.ts +8 -0
- package/dist/types/adaptiveWorkflow/components/NodeRenderer/CompoundFieldRenderer.d.ts +6 -0
- package/dist/types/adaptiveWorkflow/components/NodeRenderer/LayoutRenderer.d.ts +7 -0
- package/dist/types/adaptiveWorkflow/components/NodeRenderer/NodeRenderer.d.ts +20 -0
- package/dist/types/adaptiveWorkflow/components/NodeRenderer/SimpleFieldRenderer.d.ts +6 -0
- package/dist/types/adaptiveWorkflow/components/NodeRenderer/SpecializedStepRenderer.d.ts +7 -0
- package/dist/types/adaptiveWorkflow/components/WorkflowHeading/WorkflowHeading.d.ts +1 -1
- package/dist/types/adaptiveWorkflow/components/types.d.ts +31 -0
- package/dist/types/adaptiveWorkflow/context/TaskStepperContext/TaskStepperContext.d.ts +19 -0
- package/dist/types/adaptiveWorkflow/context/TaskStepperContext/TaskStepperContextProvider.d.ts +22 -0
- package/dist/types/adaptiveWorkflow/context/TaskStepperContext/useHideTaskStepper.d.ts +6 -0
- package/dist/types/adaptiveWorkflow/context/TaskStepperContext/useTaskStepperContext.d.ts +1 -0
- package/dist/types/adaptiveWorkflow/utils/getNodeType.d.ts +11 -0
- package/dist/types/adaptiveWorkflow/utils/getProgressSteps.d.ts +4 -0
- package/dist/types/api/adaptive/adaptiveWorkflow.types.d.ts +2 -1
- package/dist/types/components/BankAccount/tasks/PayoutDetailsDropin/payoutDetailsFormConfig.d.ts +6 -1
- package/dist/types/components/BankAccount/tasks/PayoutDetailsDropin/usePayoutAccountFormat.d.ts +10 -0
- package/dist/types/components/Business/forms/AdditionalInformation/types.d.ts +2 -29
- package/dist/types/components/Business/forms/AdditionalInformation/utils.d.ts +0 -27
- package/dist/types/components/Business/forms/BasicInformation/types.d.ts +2 -2
- package/dist/types/components/Business/forms/BusinessDetails/BusinessDetails.d.ts +2 -2
- package/dist/types/components/Business/forms/rules.d.ts +7 -3
- package/dist/types/components/Business/hooks/useBusinessDetailsData.d.ts +2 -3
- package/dist/types/components/Business/hooks/useSubmitBusinessDetails.types.d.ts +3 -3
- package/dist/types/components/Business/mapping/businessDetails/mapBusinessDetailsSchemaToLegalEntity.d.ts +2 -2
- package/dist/types/components/Business/mapping/businessDetails/mapLegalEntityToBusinessDetailsSchema.d.ts +2 -2
- package/dist/types/components/Business/pages/RootBusinessDetailsPage.d.ts +1 -1
- package/dist/types/components/{SoleProprietorship → Business}/pages/SoleProprietorshipPage.d.ts +2 -2
- package/dist/types/components/{Trust → Business}/pages/TrustMemberCompanyPage.d.ts +3 -3
- package/dist/types/components/{UnincorporatedPartnership → Business}/pages/UnincorporatedPartnershipMemberCompanyPage.d.ts +3 -3
- package/dist/types/components/Business/tasks/BusinessDetailsDropin/BusinessDetailsDropin.d.ts +1 -1
- package/dist/types/components/Business/tasks/BusinessDetailsDropin/types.d.ts +5 -5
- package/dist/types/components/Business/utils/utils.d.ts +3 -5
- package/dist/types/components/EFP/mapping/businessFinancingKeyMappings.d.ts +93 -93
- package/dist/types/components/EFP/tasks/SourceOfFundsDropin/SOFAdditionalData/SOFFinancierModal.d.ts +5 -5
- package/dist/types/components/EFP/tasks/SourceOfFundsDropin/utils.d.ts +2 -1
- package/dist/types/components/GlobalEntry/constants.d.ts +13 -3
- package/dist/types/components/GlobalEntry/fields/EntitySetupField/types.d.ts +1 -1
- package/dist/types/components/GlobalEntry/fields/PaperworkQuestionnaire/PaperworkQuestionnaire.d.ts +3 -0
- package/dist/types/components/GlobalEntry/fields/PaperworkQuestionnaire/types.d.ts +5 -0
- package/dist/types/components/GlobalEntry/fields/UnincorporatedOrganizationTypeField/UnincorporatedOrganizationTypeField.d.ts +2 -0
- package/dist/types/components/GlobalEntry/fields/UnincorporatedOrganizationTypeField/types.d.ts +5 -0
- package/dist/types/components/GlobalEntry/forms/RegistrationInformation/RegistrationInformation.d.ts +5 -0
- package/dist/types/components/GlobalEntry/forms/RegistrationInformation/types.d.ts +3 -0
- package/dist/types/components/GlobalEntry/tasks/types.d.ts +2 -0
- package/dist/types/components/GlobalEntry/validate.d.ts +9 -0
- package/dist/types/components/Individual/fields/DriversLicense/DriversLicense.types.d.ts +2 -2
- package/dist/types/components/Individual/forms/AdditionalPersonalDetails/Identity/TypeOfIdentity/index.d.ts +2 -2
- package/dist/types/components/Individual/forms/GuidanceQuestion/GuidanceQuestion.d.ts +4 -3
- package/dist/types/components/{Trust → Individual}/pages/TrustMemberIndividualPage.d.ts +2 -2
- package/dist/types/components/{UnincorporatedPartnership → Individual}/pages/UnincorporatedPartnershipIndividualPage.d.ts +2 -2
- package/dist/types/components/Shared/fields/RegistrationAndOperationalAddressFields/RegistrationAndOperationalAddressFields.d.ts +3 -0
- package/dist/types/components/Shared/fields/RegistrationAndOperationalAddressFields/types.d.ts +53 -0
- package/dist/types/components/Shared/fields/RegistrationAndOperationalAddressFields/utils.d.ts +28 -0
- package/dist/types/components/Shared/fields/TaxInformationField/TaxIdNumberTypeSelector/TaxIdNumberTypeSelector.d.ts +2 -2
- package/dist/types/components/Shared/forms/Address/SearchAddress.d.ts +2 -1
- package/dist/types/components/Shared/forms/Address/utils.d.ts +1 -1
- package/dist/types/components/Trust/forms/Trust/rules.d.ts +12 -0
- package/dist/types/components/Trust/forms/Trust/types.d.ts +4 -4
- package/dist/types/components/Trust/forms/TrustRegistrationAddress/TrustRegistrationAddress.d.ts +2 -0
- package/dist/types/components/Trust/forms/TrustRegistrationAddress/types.d.ts +9 -0
- package/dist/types/components/Trust/mapping/mapTrustToLegalEntity.d.ts +2 -2
- package/dist/types/components/Trust/tasks/TrustDropin/Trust.d.ts +2 -1
- package/dist/types/components/Trust/utils/formatDataForSummary.d.ts +6 -0
- package/dist/types/components/UnincorporatedPartnership/mapping/mapUnincorporatedPartnershipToLegalEntity.d.ts +2 -2
- package/dist/types/components/UnincorporatedPartnership/tasks/UnincorporatedPartnershipRoleAndType/UnincorporatedPartnershipRadioGroup.d.ts +2 -2
- package/dist/types/components/ui/atoms/Field/Field.types.d.ts +8 -2
- package/dist/types/components/ui/atoms/TileGroup/TileGroup.d.ts +3 -3
- package/dist/types/context/WorkflowContext/WorkflowContext.d.ts +3 -1
- package/dist/types/hooks/singpass/useSingpassMyInfoLogin.d.ts +3 -3
- package/dist/types/hooks/useForm/types.d.ts +3 -2
- package/dist/types/hooks/useLegalCompanyNameField/useLegalCompanyNameField.d.ts +1 -1
- package/dist/types/hooks/useScenarioConfiguration.d.ts +1 -16
- package/dist/types/hooks/useUboQuestionnaire.d.ts +1 -1
- package/dist/types/router/routeConfig.d.ts +5 -5
- package/dist/types/types/form-rules.d.ts +0 -2
- package/dist/types/utils/country.d.ts +6 -0
- package/dist/types/utils/decodeJwt.d.ts +13 -0
- package/dist/types/utils/entityStatusUtil.d.ts +1 -1
- package/dist/types/utils/formUtils.d.ts +4 -3
- package/dist/types/utils/validation/formatValidationError.d.ts +11 -0
- package/dist/types/utils/validation/types.d.ts +4 -4
- package/dist/{types-lzI_sUwT.js → types-BLWT7WnU.js} +1 -1
- package/dist/{useAssociatedLegalEntity-DB8HCSwp.js → useAssociatedLegalEntity-CzQlHWXy.js} +2 -2
- package/dist/{useBusinessDetailsData-COrYhhx5.js → useBusinessDetailsData-BNf9xVKq.js} +129 -310
- package/dist/{useBusinessLines-CfQYLNkw.js → useBusinessLines-D-rc-Z6G.js} +1 -1
- package/dist/{useCanSeeIntroduction-C0Ls5q3Y.js → useCanSeeIntroduction-Uwz3o1s1.js} +1 -1
- package/dist/{useCreateLegalEntity-CVBjJUw_.js → useCreateLegalEntity-Ctdmk3Ky.js} +1 -1
- package/dist/{useDataMissingRemediations-BEdoAjt3.js → useDataMissingRemediations-DNZ_UDbI.js} +2 -2
- package/dist/{useForm-mnby7aNL.js → useForm-Bm5kOFLB.js} +3 -3
- package/dist/{useId-CpkOZVzk.js → useId-CIQmPG2J.js} +3 -3
- package/dist/{useLegalEntity-BqO7Fmt0.js → useLegalEntity-DR51Q4mE.js} +1 -1
- package/dist/{useNavigate-3tjPMUx9.js → useNavigate-DwSnqa-v.js} +33 -33
- package/dist/{useOnboardingStatus-Bg1z2ftv.js → useOnboardingStatus-op5TyMUR.js} +1 -1
- package/dist/{usePciQuestionnaireList-Dq1w684P.js → usePciQuestionnaireList-BZsgbrTy.js} +1 -1
- package/dist/{useSalesChannels-D66W1KV8.js → useSalesChannels-Mi6DmHab.js} +2 -2
- package/dist/{useScenarios-BunWDxgO.js → useScenarios-Bne3C0PV.js} +1 -1
- package/dist/{useTaskLandedEvent-BTVaABDA.js → useTaskLandedEvent-C7fcguXK.js} +1 -1
- package/dist/{useTaskStatus-B_-IRF4H.js → useTaskStatus-Be6XyW54.js} +1 -1
- package/dist/{useTermsOfServiceStatus-CGIpBA0U.js → useTermsOfServiceStatus-D0NHUKl_.js} +1 -1
- package/dist/{useTrustMembers-DNacFMbe.js → useTrustMembers-CEUXUezm.js} +5 -5
- package/dist/{useUnincorporatedPartnershipMembers-DgD91qBf.js → useUnincorporatedPartnershipMembers-C5CNWe_U.js} +2 -2
- package/dist/{useUpdateBusinessLines-C2xW-32U.js → useUpdateBusinessLines-D6D9DAn1.js} +1 -1
- package/dist/{useUpdateLegalEntity-BwDNGWEv.js → useUpdateLegalEntity-C1KlPeao.js} +2 -2
- package/dist/{utils-BSUjLXoX.js → utils-BTWo42KA.js} +5 -5
- package/dist/{utils-CDTxJSnQ.js → utils-CEpJoi7o.js} +1 -1
- package/dist/{utils-DkJ03MkB.js → utils-c16NHFn9.js} +7 -7
- package/dist/{validate-K01plHbc.js → validate-BNu91k9j.js} +4 -4
- package/dist/validate-CbjnKo0X.js +250 -0
- package/dist/{validate-BShti_z8.js → validate-Ce2vF6Gx.js} +1 -1
- package/dist/{validateExtractionResult-mzxEgE7T.js → validateExtractionResult-D5gTSZhC.js} +10 -10
- package/dist/{validationError-CCy_FD-J.js → validationError-BAK8fc6r.js} +1 -1
- package/package.json +3 -4
- package/dist/AdaptiveWorkflow-CePa2kb-.js +0 -1896
- package/dist/GlobalEntryModal-ClB54Ua2.js +0 -188
- package/dist/SoleProprietorshipPage-BfSpYRb3.js +0 -70
- package/dist/TrustMemberCompanyPage-ChsPdxqZ.js +0 -109
- package/dist/TrustMemberIndividualPage-Dxlx84gI.js +0 -109
- package/dist/UnincorporatedPartnershipIndividualPage-Cklyql48.js +0 -79
- package/dist/bg-BG-BXAB4Qsj.js +0 -7
- package/dist/cs-CZ-DG5rPvy2.js +0 -7
- package/dist/da-DK-BnW-O75l.js +0 -7
- package/dist/de-DE-DUiPzmSc.js +0 -7
- package/dist/el-GR-1n3FJpd3.js +0 -7
- package/dist/en-US-B48_sHax.js +0 -13
- package/dist/en-US-BV2Gye3t.js +0 -7
- package/dist/en-US-CqjOvqxV.js +0 -7
- package/dist/es-ES-Cp45mlyV.js +0 -7
- package/dist/es-LA-BU32JqC-.js +0 -7
- package/dist/es-LA-Cyf48j4P.js +0 -7
- package/dist/es-LA-De_gTMKb.js +0 -7
- package/dist/et-EE-B4czzgF8.js +0 -7
- package/dist/fi-FI-D08MUkuM.js +0 -7
- package/dist/fr-FR-BxDpVfWO.js +0 -7
- package/dist/getTrustedFields-BJ88GlM-.js +0 -28
- package/dist/hr-HR-DGQMquDg.js +0 -7
- package/dist/hu-HU-Eofp7khl.js +0 -7
- package/dist/it-IT-CD7NJtJa.js +0 -7
- package/dist/ja-JP-YvXztswF.js +0 -7
- package/dist/lt-LT-Cjx4H-0R.js +0 -7
- package/dist/lv-LV-Ckf37gXo.js +0 -7
- package/dist/mapExistingFile-BOXehUNN.js +0 -138
- package/dist/nl-NL-DFHAkUK3.js +0 -7
- package/dist/no-NO-B6frLiko.js +0 -7
- package/dist/pl-PL-DnYkTdjO.js +0 -7
- package/dist/pt-BR-65dQv8uO.js +0 -7
- package/dist/pt-PT-D0fXeW1f.js +0 -7
- package/dist/ro-RO-CNj95qQn.js +0 -7
- package/dist/sk-SK-C0x9Vs2X.js +0 -7
- package/dist/sl-SI-BikBCOJK.js +0 -7
- package/dist/sv-SE-BGP9Lmku.js +0 -7
- package/dist/types/components/Shared/forms/RegistrationAddress/RegistrationAddress.d.ts +0 -3
- package/dist/types/components/Shared/forms/RegistrationAddress/RegistrationAddressMultiform.d.ts +0 -3
- package/dist/types/components/Shared/forms/RegistrationAddress/types.d.ts +0 -26
- package/dist/types/components/Shared/forms/RegistrationAddress/validate.d.ts +0 -3
- package/dist/types/utils/getDisplayErrorMessage.d.ts +0 -2
- /package/dist/types/components/{SoleProprietorship → Trust}/hooks/useExemptSettlor.d.ts +0 -0
|
@@ -1,81 +1,84 @@
|
|
|
1
1
|
try {
|
|
2
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] = "
|
|
3
|
+
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "fdbbb23c-3a3c-4285-b967-fc673666de72", e._sentryDebugIdIdentifier = "sentry-dbid-fdbbb23c-3a3c-4285-b967-fc673666de72");
|
|
4
4
|
} catch (e) {}
|
|
5
|
-
import { i as Typography, o as createLogger, r as useTranslation } from "./translation-
|
|
6
|
-
import { E as useAllowedCountries, T as datasetUtilities,
|
|
7
|
-
import { r as Loader, t as Button } from "./Button-
|
|
8
|
-
import { r as httpPost, s as useApiContext } from "./http-
|
|
9
|
-
import { r as useLegalEntity, t as ROOT_LE } from "./useLegalEntity-
|
|
5
|
+
import { i as Typography, o as createLogger, r as useTranslation } from "./translation-DH4IlMCP.js";
|
|
6
|
+
import { E as useAllowedCountries, T as datasetUtilities, at as isUndefinedOrNull, ft as useAccountHolder, j as useToggleContext, k as Header, nt as isEmpty, rt as isISIN, x as Alert } from "./resolveEnvironment-BsUsq25-.js";
|
|
7
|
+
import { r as Loader, t as Button } from "./Button-Cm7cT6BX.js";
|
|
8
|
+
import { r as httpPost, s as useApiContext } from "./http-D6AdUBhO.js";
|
|
9
|
+
import { r as useLegalEntity, t as ROOT_LE } from "./useLegalEntity-DR51Q4mE.js";
|
|
10
10
|
import { t as LegalEntityTypes } from "./legal-entity-type-0MfCGzUf.js";
|
|
11
11
|
import { t as useSettingsContext } from "./useSettingsContext-Bpf4UqRT.js";
|
|
12
12
|
import { c as keysOf, o as objectsDeepEqual, r as doArraysMatch, s as entriesOf } from "./AnalyticsContext-BnRQ9H1u.js";
|
|
13
13
|
import { t as StackLayout } from "./StackLayout-IUdNMDgW.js";
|
|
14
|
-
import { t as TaskVerificationStatus } from "./TaskVerificationStatus-
|
|
14
|
+
import { t as TaskVerificationStatus } from "./TaskVerificationStatus-DMj8rsZ_.js";
|
|
15
15
|
import { n as TASK_STATUS_POLLING_INTERVAL_MS } from "./taskStatus-BtekPA8E.js";
|
|
16
16
|
import { t as CountryCodes } from "./country-code-CJk2hdPu.js";
|
|
17
|
-
import { _ as businessDetailsKeyMapping, f as solePropBusinessDetailsApiKeyMapping, g as businessDetailsDocumentMapping, h as businessDetailsApiKeyMapping, m as solePropBusinessDetailsKeyMapping, p as solePropBusinessDetailsDocumentMapping } from "./processCapabilities-
|
|
17
|
+
import { _ as businessDetailsKeyMapping, f as solePropBusinessDetailsApiKeyMapping, g as businessDetailsDocumentMapping, h as businessDetailsApiKeyMapping, m as solePropBusinessDetailsKeyMapping, p as solePropBusinessDetailsDocumentMapping } from "./processCapabilities-BSpmJOEd.js";
|
|
18
18
|
import { t as TaskTypes } from "./taskTypes-3vSkMBDm.js";
|
|
19
19
|
import { r as filterOutUnwantedAssociationsIfRootLE, s as getOwnEntityAssociations } from "./entityAssociationUtil-DLXInibJ.js";
|
|
20
20
|
import { t as Scenarios } from "./get-scenarios-Bb-paHmJ.js";
|
|
21
|
-
import { i as useAnalyticsContext, n as ModalContent, r as KEYBOARD_KEYS, t as Modal } from "./Modal-
|
|
21
|
+
import { i as useAnalyticsContext, n as ModalContent, r as KEYBOARD_KEYS, t as Modal } from "./Modal-nylR9F4X.js";
|
|
22
22
|
import { t as HandlerContext } from "./HandlerContext-DeMa68z0.js";
|
|
23
23
|
import { n as SettingNames } from "./debugStore-DpSgCNGn.js";
|
|
24
|
-
import { a as LandingLayout, i as getPropsFromConfigurations, r as composePerScenarioFormConfigurations, t as createFormRules } from "./form-rules-
|
|
25
|
-
import { t as
|
|
24
|
+
import { a as LandingLayout, i as getPropsFromConfigurations, r as composePerScenarioFormConfigurations, t as createFormRules } from "./form-rules-DV3hxYqZ.js";
|
|
25
|
+
import { t as ListItem } from "./ListItem-Cy46BXUv.js";
|
|
26
|
+
import { t as useBusinessLines } from "./useBusinessLines-D-rc-Z6G.js";
|
|
26
27
|
import { t as Card } from "./Card-BCGLpdw7.js";
|
|
27
|
-
import { n as useInvalidateRootLegalEntity, r as useToastContext } from "./useId-
|
|
28
|
-
import { c as TileGroup, l as CompanyTypesValues } from "./bafinUtils-
|
|
29
|
-
import {
|
|
30
|
-
import { n as Confirm, t as StructuredList } from "./StructuredList-
|
|
31
|
-
import { C as FormContextProvider, b as createFormUtils, c as useMultiForm, d as useFormComposer, g as Summary_module_default, i as addValidityToForms, n as CountryField, o as FormFlow, p as summaryStep, r as useFormContext, t as COUNTRY_FIELD, x as mergeFieldMetadataIntoProps } from "./CountryField-
|
|
32
|
-
import { t as Image } from "./Image-
|
|
33
|
-
import { t as ErrorPanel } from "./ErrorPanel-
|
|
34
|
-
import { r as useDebouncedCallback, t as Checkbox } from "./Checkbox-
|
|
28
|
+
import { n as useInvalidateRootLegalEntity, r as useToastContext } from "./useId-CIQmPG2J.js";
|
|
29
|
+
import { c as TileGroup, l as CompanyTypesValues } from "./bafinUtils-BheS8P9F.js";
|
|
30
|
+
import { p as LoaderWrapper, r as Field } from "./Select-Chv4JUrV.js";
|
|
31
|
+
import { n as Confirm, t as StructuredList } from "./StructuredList-C0ZSbjSm.js";
|
|
32
|
+
import { C as FormContextProvider, b as createFormUtils, c as useMultiForm, d as useFormComposer, g as Summary_module_default, i as addValidityToForms, n as CountryField, o as FormFlow, p as summaryStep, r as useFormContext, t as COUNTRY_FIELD, x as mergeFieldMetadataIntoProps } from "./CountryField-COQ0jZUr.js";
|
|
33
|
+
import { t as Image } from "./Image-8SOcICah.js";
|
|
34
|
+
import { t as ErrorPanel } from "./ErrorPanel-Imjryvne.js";
|
|
35
|
+
import { r as useDebouncedCallback, t as Checkbox } from "./Checkbox-faFUul66.js";
|
|
35
36
|
import { t as getFormSlice } from "./getFormSlice-C1ma6Xd4.js";
|
|
36
|
-
import { t as useScenarios } from "./useScenarios-
|
|
37
|
-
import { t as useCreateLegalEntity } from "./useCreateLegalEntity-
|
|
38
|
-
import { t as useUpdateLegalEntity } from "./useUpdateLegalEntity-
|
|
39
|
-
import { a as defaultFieldMetadata, c as
|
|
40
|
-
import { i as useScenarioConfiguration, r as getPageName, t as mapExistingFile } from "./mapExistingFile-
|
|
41
|
-
import { t as useTaskLandedEvent } from "./useTaskLandedEvent-
|
|
42
|
-
import { a as alphanumericInputs, i as alphaInputs, l as numericInputs, s as makeMask, t as MaskedInput } from "./MaskedInput-
|
|
43
|
-
import {
|
|
44
|
-
import { a as mapAddressLabelsNewSummary, c as COUNTRIES_WITH_STATES_DATASET,
|
|
45
|
-
import { n as isMaintenanceModeError, t as processValidationErrors } from "./processValidationErrors-
|
|
46
|
-
import { a as createDocumentRequest, c as getDocuments, f as mergeProofOfOwnershipAttachments, l as getFileExtention, o as documentApiUtils, s as getDocument } from "./validate-
|
|
37
|
+
import { t as useScenarios } from "./useScenarios-Bne3C0PV.js";
|
|
38
|
+
import { t as useCreateLegalEntity } from "./useCreateLegalEntity-Ctdmk3Ky.js";
|
|
39
|
+
import { t as useUpdateLegalEntity } from "./useUpdateLegalEntity-C1KlPeao.js";
|
|
40
|
+
import { a as defaultFieldMetadata, c as formatAddressForCleanse, i as defaultFieldConfig, n as STATE_FIELD, r as StateField, u as useAddressCleanseImperatively } from "./AddressField-DLsx2U5w.js";
|
|
41
|
+
import { i as useScenarioConfiguration, r as getPageName, t as mapExistingFile } from "./mapExistingFile-LvvzPjnk.js";
|
|
42
|
+
import { t as useTaskLandedEvent } from "./useTaskLandedEvent-C7fcguXK.js";
|
|
43
|
+
import { a as alphanumericInputs, i as alphaInputs, l as numericInputs, s as makeMask, t as MaskedInput } from "./MaskedInput-Cl4XQJWs.js";
|
|
44
|
+
import { i as JP_ADDRESS_REQUIRED_FIELDS, r as mapJpAddressSummaryNewSummary, t as mapJpAddressSchemaToAddressLocalizations } from "./mapJpAddressSchemaToAddressLocalizations-DDUtPeTO.js";
|
|
45
|
+
import { a as mapAddressLabelsNewSummary, c as COUNTRIES_WITH_STATES_DATASET, r as getKeyForField, t as getAddressSchemaForCountry } from "./utils-CEpJoi7o.js";
|
|
46
|
+
import { n as isMaintenanceModeError, t as processValidationErrors } from "./processValidationErrors-DM-tJ5ua.js";
|
|
47
|
+
import { a as createDocumentRequest, c as getDocuments, f as mergeProofOfOwnershipAttachments, l as getFileExtention, o as documentApiUtils, s as getDocument } from "./validate-BNu91k9j.js";
|
|
47
48
|
import { r as formatObject } from "./utils-DdHbAadK.js";
|
|
48
|
-
import { i as MemoizedDocumentUpload, n as TAX_INFORMATION_FIELD, o as getFieldsWithExistingData, r as TaxInformationField, t as PatriotActDisclosure } from "./PatriotActDisclosure-
|
|
49
|
-
import {
|
|
50
|
-
import { a as isValidationError, r as isBusinessSelectionLegalArrangementError } from "./validationError-
|
|
49
|
+
import { i as MemoizedDocumentUpload, n as TAX_INFORMATION_FIELD, o as getFieldsWithExistingData, r as TaxInformationField, t as PatriotActDisclosure } from "./PatriotActDisclosure-BGEKyaQt.js";
|
|
50
|
+
import { t as isJapanLocalizationEnabled } from "./japanSupportUtils-H5Zfox2v.js";
|
|
51
|
+
import { a as isValidationError, r as isBusinessSelectionLegalArrangementError } from "./validationError-BAK8fc6r.js";
|
|
51
52
|
import { t as uppercase } from "./uppercase-DvjwUM0n.js";
|
|
52
|
-
import { a as validateNotEmptyOnBlur, n as validateJaKanaLegalCompanyName, o as validatePatternOnBlur, t as validateJaHaniLegalCompanyName } from "./patternValidators-
|
|
53
|
-
import { A as taxInformationDefaultFieldMetadata, C as getTaxIdNumberOptions, O as getTaxInformationPlaceholderText, _ as COUNTRIES_WITH_POSSIBLE_TAX_EXEMPTION_FOR_SOLE_PROPS, b as REGISTRATION_NUMBER_EXEMPTION_RULES, c as COUNTRIES_THAT_DO_NOT_USE_TAX_ID_FOR_SOLE_PROP, d as COUNTRIES_THAT_USE_TAX_ID_INSTEAD_OF_VAT, g as COUNTRIES_WITH_POSSIBLE_TAX_EXEMPTION_FOR_COMPANIES, h as COUNTRIES_WITH_POSSIBLE_REGISTRATION_EXEMPTIONS_FOR_SOLE_PROPS, i as COUNTRIES_REQUIRING_E_INVOICING_CODE, k as taxInformationDefaultFieldConfig, l as COUNTRIES_THAT_REQUIRE_DATE_OF_INCORPORATION, m as COUNTRIES_WITH_OPTIONAL_REGISTRATION_NUMBER_SOLE_PROPS, o as COUNTRIES_THAT_DONT_REQUIRE_COMPANY_REGISTRATION, p as COUNTRIES_WITH_OPTIONAL_REGISTRATION_NUMBER, s as COUNTRIES_THAT_DONT_REQUIRE_SOLE_PROP_REGISTRATION, u as COUNTRIES_THAT_USES_UEN_OR_GST, v as COUNTRIES_WITH_POSSIBLE_TRUSTEE_TAXID_ABSENT_V4, w as getValidCompanyTypesForTaxIdNumberType, x as TAX_ID_REQUIRED_COUNTRIES_ORGANIZATION, y as COUNTRY_OF_GOVERNING_LAW_POSSIBLE } from "./utils-
|
|
53
|
+
import { a as validateNotEmptyOnBlur, n as validateJaKanaLegalCompanyName, o as validatePatternOnBlur, t as validateJaHaniLegalCompanyName } from "./patternValidators-DZ7aKZAe.js";
|
|
54
|
+
import { A as taxInformationDefaultFieldMetadata, C as getTaxIdNumberOptions, O as getTaxInformationPlaceholderText, T as taxIdNumberOptions, _ as COUNTRIES_WITH_POSSIBLE_TAX_EXEMPTION_FOR_SOLE_PROPS, a as COUNTRIES_REQUIRING_FINANCIAL_INFORMATION, b as REGISTRATION_NUMBER_EXEMPTION_RULES, c as COUNTRIES_THAT_DO_NOT_USE_TAX_ID_FOR_SOLE_PROP, d as COUNTRIES_THAT_USE_TAX_ID_INSTEAD_OF_VAT, f as COUNTRIES_USING_COMPANY_SEARCH, g as COUNTRIES_WITH_POSSIBLE_TAX_EXEMPTION_FOR_COMPANIES, h as COUNTRIES_WITH_POSSIBLE_REGISTRATION_EXEMPTIONS_FOR_SOLE_PROPS, i as COUNTRIES_REQUIRING_E_INVOICING_CODE, k as taxInformationDefaultFieldConfig, l as COUNTRIES_THAT_REQUIRE_DATE_OF_INCORPORATION, m as COUNTRIES_WITH_OPTIONAL_REGISTRATION_NUMBER_SOLE_PROPS, o as COUNTRIES_THAT_DONT_REQUIRE_COMPANY_REGISTRATION, p as COUNTRIES_WITH_OPTIONAL_REGISTRATION_NUMBER, s as COUNTRIES_THAT_DONT_REQUIRE_SOLE_PROP_REGISTRATION, u as COUNTRIES_THAT_USES_UEN_OR_GST, v as COUNTRIES_WITH_POSSIBLE_TRUSTEE_TAXID_ABSENT_V4, w as getValidCompanyTypesForTaxIdNumberType, x as TAX_ID_REQUIRED_COUNTRIES_ORGANIZATION, y as COUNTRY_OF_GOVERNING_LAW_POSSIBLE } from "./utils-c16NHFn9.js";
|
|
55
|
+
import { r as addressValidators } from "./validate-CbjnKo0X.js";
|
|
54
56
|
import { t as resolveFieldMetadata } from "./fieldConfigurations-CZCFghnK.js";
|
|
55
|
-
import { n as convertFullToHalf } from "./TextArea-
|
|
56
|
-
import {
|
|
57
|
-
import { t as Link } from "./Link-
|
|
58
|
-
import { t as InputText } from "./InputText-
|
|
59
|
-
import { n as formatDateObj, t as InputDate } from "./InputDate-
|
|
60
|
-
import { t as RadioGroup } from "./RadioGroup-
|
|
57
|
+
import { n as convertFullToHalf } from "./TextArea-CoS-i-FF.js";
|
|
58
|
+
import { t as capitalize } from "./getProps-DVqK7eRw.js";
|
|
59
|
+
import { t as Link } from "./Link-B7RA2gSt.js";
|
|
60
|
+
import { t as InputText } from "./InputText-Cf9ccCaj.js";
|
|
61
|
+
import { n as formatDateObj, t as InputDate } from "./InputDate-DDVX2D-5.js";
|
|
62
|
+
import { t as RadioGroup } from "./RadioGroup-DVTPPMDE.js";
|
|
63
|
+
import { t as toFullWidth } from "./toFullWidth-Dgy4X4i8.js";
|
|
64
|
+
import { t as formatValidationError } from "./formatValidationError-C7bubJ6u.js";
|
|
61
65
|
import { t as isEmpty$1 } from "./isEmpty-MyMko24J.js";
|
|
62
|
-
import { t as DataConflictsModal } from "./DataConflictsModal-
|
|
66
|
+
import { t as DataConflictsModal } from "./DataConflictsModal-DEhX0dj-.js";
|
|
63
67
|
import { n as mapApiScriptLocalizationToSchemaFields, r as mapSchemaFieldsToApiScriptLocalization, t as mapAddressLocalizationToJpAddressSchema } from "./mapAddressLocalizationToJpAddressSchema-CBeBTFmC.js";
|
|
64
|
-
import { t as currencyByCountry } from "./types-
|
|
68
|
+
import { t as currencyByCountry } from "./types-BLWT7WnU.js";
|
|
65
69
|
import { t as Divider } from "./Divider-BENvVRnz.js";
|
|
66
70
|
import { t as DetailViewLayout } from "./DetailViewLayout-DNCGEd7b.js";
|
|
67
|
-
import { a as LegalFormField, c as
|
|
68
|
-
import { n as SummarySection, t as NewSummary } from "./NewSummary-
|
|
69
|
-
import { t as useTaskStatus } from "./useTaskStatus-
|
|
70
|
-
import {
|
|
71
|
-
import {
|
|
72
|
-
import { n as useCreateBusinessLine, r as useIndustryCodes, t as useUpdateBusinessLine } from "./useUpdateBusinessLines-C2xW-32U.js";
|
|
71
|
+
import { a as LegalFormField, c as isDateOlderThanAYear, i as InputCurrency, l as mapAddressData, n as Currency, o as mapFinancialReportsToFinancialInformation, r as InputNumber, s as mapFinancialInformationToFinancialReport, t as CURRENCY_FIELD } from "./Currency-BmZg_6ba.js";
|
|
72
|
+
import { n as SummarySection, t as NewSummary } from "./NewSummary-Bfjw18hL.js";
|
|
73
|
+
import { t as useTaskStatus } from "./useTaskStatus-Be6XyW54.js";
|
|
74
|
+
import { a as getValidCompanyTypesForRegistrationNumberType, c as getRegistrationNumberHelperText, i as getCompanyRegistrationNumberOptions, l as registrationNumberDefaultFieldConfig, n as getDefaultRegistrationNumberType, r as inferCompanyRegistrationNumberType, s as exemptFromRegistrationNumberDefaultFieldMetadata, u as registrationNumberDefaultFieldMetadata } from "./CompanyRegistrationNumberTypeSelector-Cx-ikuUx.js";
|
|
75
|
+
import { n as useCreateBusinessLine, r as useIndustryCodes, t as useUpdateBusinessLine } from "./useUpdateBusinessLines-D6D9DAn1.js";
|
|
73
76
|
import { n as formatCurrency } from "./formatCurrency-Cq3WFpdZ.js";
|
|
74
|
-
import { _ as
|
|
75
|
-
import { f as industryCodeFieldMetadata, l as IndustryCodeField, t as INDUSTRY_CODE_FIELD } from "./constants-
|
|
76
|
-
import { a as defaultFieldMetadata$2, i as defaultFieldConfigV4, o as defaultFieldMetadataV4, r as defaultFieldConfig$2, s as getLegalCompanyNameGuidanceText, t as LEGAL_COMPANY_NAME_FIELD } from "./LegalCompanyNameField-
|
|
77
|
-
import { s as organizationTypesToSkipCompanyStructureForm } from "./utils-
|
|
78
|
-
import {
|
|
77
|
+
import { _ as DBA_NAME_FIELD, a as VatNumberField, c as defaultFieldMetadata$1, d as RegistrationAndOperationalAddressFields, f as flattenAddressSchema, g as DBANameField, h as doingBusinessAsFieldMetadata, i as VAT_NUMBER_FIELD, l as vatAbsenceReasonMetadata, m as doingBusinessAsAbsentFieldMetadata, n as BusinessRegistrationNumberField, o as getDefaultVatNumberType, p as nestAddressSchema, r as MemoizedConstitutionalDocument, s as defaultFieldConfig$1, t as BUSINESS_REGISTRATION_NUMBER_FIELD, u as REGISTRATION_AND_OPERATIONAL_ADDRESS_FIELDS } from "./BusinessRegistrationNumberField-Di3jFH4D.js";
|
|
78
|
+
import { f as industryCodeFieldMetadata, l as IndustryCodeField, t as INDUSTRY_CODE_FIELD } from "./constants-vF9EIV5U.js";
|
|
79
|
+
import { a as defaultFieldMetadata$2, i as defaultFieldConfigV4, o as defaultFieldMetadataV4, r as defaultFieldConfig$2, s as getLegalCompanyNameGuidanceText, t as LEGAL_COMPANY_NAME_FIELD } from "./LegalCompanyNameField-C9OqHgYV.js";
|
|
80
|
+
import { s as organizationTypesToSkipCompanyStructureForm } from "./utils-BTWo42KA.js";
|
|
81
|
+
import { lazy } from "preact/compat";
|
|
79
82
|
import { useCallback as useCallback$1, useContext as useContext$1, useEffect as useEffect$1, useMemo as useMemo$1, useRef as useRef$1, useState as useState$1 } from "preact/hooks";
|
|
80
83
|
import cx from "classnames";
|
|
81
84
|
import { Fragment as Fragment$1, jsx, jsxs } from "preact/jsx-runtime";
|
|
@@ -345,70 +348,6 @@ function StockTickerSymbolField({ data, valid, errors, readonly, mask, shouldVal
|
|
|
345
348
|
});
|
|
346
349
|
}
|
|
347
350
|
//#endregion
|
|
348
|
-
//#region src/components/Shared/forms/Address/AddressFields.tsx
|
|
349
|
-
function AddressFields({ data = {}, readOnly, hideCountry, fieldValidationErrors, requiredFields, optionalFields = ["street2"], readOnlyFields, trustedFields, errors, valid, handleFieldChange, addressType, condensed }) {
|
|
350
|
-
const { t } = useTranslation("common");
|
|
351
|
-
const formUtils = createFormUtils({
|
|
352
|
-
data,
|
|
353
|
-
labels: getAddressSchemaLabelsByCountry(data.country),
|
|
354
|
-
readOnly,
|
|
355
|
-
requiredFields,
|
|
356
|
-
optionalFields,
|
|
357
|
-
readOnlyFields,
|
|
358
|
-
trustedFields
|
|
359
|
-
}, t);
|
|
360
|
-
const addressFields = getAddressSchemaForCountry(data.country).filter((fieldName) => formUtils.isRequiredField(fieldName) || formUtils.isOptionalField(fieldName));
|
|
361
|
-
const createField = (fieldName) => {
|
|
362
|
-
const hideField = hideCountry && fieldName === "country";
|
|
363
|
-
return /* @__PURE__ */ jsx(AddressField, {
|
|
364
|
-
schema: addressFields,
|
|
365
|
-
data,
|
|
366
|
-
valid: valid ?? {},
|
|
367
|
-
errors: errors ?? {},
|
|
368
|
-
fieldProblems: fieldValidationErrors,
|
|
369
|
-
fieldName,
|
|
370
|
-
maxlength: getMaxLengthByFieldAndCountry(countrySpecificFormatters, fieldName, data.country, true),
|
|
371
|
-
hideField,
|
|
372
|
-
readOnly: formUtils.isReadOnly(fieldName) || formUtils.isTrusted(fieldName),
|
|
373
|
-
optional: formUtils.isOptionalField(fieldName),
|
|
374
|
-
trimOnBlur: true,
|
|
375
|
-
handleChangeFor: handleFieldChange
|
|
376
|
-
}, fieldName);
|
|
377
|
-
};
|
|
378
|
-
if (condensed && data.country) {
|
|
379
|
-
const condensedFields = CONDENSED_ADDRESS_FIELDS[data.country] ?? [];
|
|
380
|
-
switch (data.country) {
|
|
381
|
-
case "US": return /* @__PURE__ */ jsxs("fieldset", {
|
|
382
|
-
"aria-label": t(($) => $[addressType]),
|
|
383
|
-
children: [addressFields.filter((field) => !condensedFields.includes(field)).map((filteredField) => createField(filteredField)), condensedFields.length > 0 && /* @__PURE__ */ jsx("div", {
|
|
384
|
-
className: "adyen-kyc-address__condensed-fields",
|
|
385
|
-
children: condensedFields.map((field) => createField(field))
|
|
386
|
-
})]
|
|
387
|
-
});
|
|
388
|
-
default: return /* @__PURE__ */ jsx("fieldset", {
|
|
389
|
-
"aria-label": t(($) => $[addressType]),
|
|
390
|
-
children: addressFields.map((fieldName) => createField(fieldName))
|
|
391
|
-
});
|
|
392
|
-
}
|
|
393
|
-
}
|
|
394
|
-
return /* @__PURE__ */ jsx("fieldset", {
|
|
395
|
-
"aria-label": t(($) => $[addressType]),
|
|
396
|
-
children: addressFields.map((fieldName) => createField(fieldName))
|
|
397
|
-
});
|
|
398
|
-
}
|
|
399
|
-
//#endregion
|
|
400
|
-
//#region src/utils/useDebouncedState.ts
|
|
401
|
-
/**
|
|
402
|
-
* Like {@link useState}, but waits for the given amount of time before applying *only* the most recent update.
|
|
403
|
-
*
|
|
404
|
-
* @param wait the time to wait, in milliseconds
|
|
405
|
-
* @param initialState (optional) the default value
|
|
406
|
-
*/
|
|
407
|
-
function useDebouncedState(wait, initialState) {
|
|
408
|
-
const [state, _setState] = useState$1(initialState);
|
|
409
|
-
return [state, useDebouncedCallback(_setState, wait)];
|
|
410
|
-
}
|
|
411
|
-
//#endregion
|
|
412
351
|
//#region src/components/EFP/fields/LegalFormField/types.ts
|
|
413
352
|
var LEGAL_FORM_FIELDS = ["legalForm", "legalFormLabel"];
|
|
414
353
|
var legalFormFieldMetadata = {
|
|
@@ -523,6 +462,34 @@ var localizedLegalCompanyNameFieldConfig = {
|
|
|
523
462
|
metadata: { label: "jaKanaLegalCompanyName" }
|
|
524
463
|
}
|
|
525
464
|
};
|
|
465
|
+
//#endregion
|
|
466
|
+
//#region src/components/Business/utils/utils.ts
|
|
467
|
+
var isFinancialInformationRequired = (isFinancialInformationFeatureEnabled, taskType, country, capabilities, rootLegalEntityType) => {
|
|
468
|
+
const isOrganization = rootLegalEntityType === LegalEntityTypes.ORGANIZATION;
|
|
469
|
+
if (!isFinancialInformationFeatureEnabled || !COUNTRIES_REQUIRING_FINANCIAL_INFORMATION.includes(country)) return;
|
|
470
|
+
if (country === CountryCodes.UnitedKingdom && (taskType === TaskTypes.SOLE_PROPRIETOR_COMPANY || taskType === TaskTypes.BUSINESS_DETAILS)) return "REQUIRED";
|
|
471
|
+
if (taskType === TaskTypes.BUSINESS_DETAILS && isOrganization) {
|
|
472
|
+
if (keysOf(capabilities ?? {}).some((capability) => capability === "issueBankAccount")) return "REQUIRED";
|
|
473
|
+
}
|
|
474
|
+
};
|
|
475
|
+
var getCountryOfGoverningLaw = (isCountryOfGoverningLawEnabled, basicData) => {
|
|
476
|
+
if (!isCountryOfGoverningLawEnabled || basicData?.country !== CountryCodes.UnitedKingdom) return;
|
|
477
|
+
return !basicData.countryOfGoverningLaw ? CountryCodes.UnitedKingdom : basicData.countryOfGoverningLaw;
|
|
478
|
+
};
|
|
479
|
+
/**
|
|
480
|
+
* Checks if a country allows registration number exemption for business details.
|
|
481
|
+
*
|
|
482
|
+
* @param country The country code to check.
|
|
483
|
+
* @returns True if the country allows registration number exemption, false otherwise.
|
|
484
|
+
*/
|
|
485
|
+
var isRegistrationExemptionAllowed = (country) => country in REGISTRATION_NUMBER_EXEMPTION_RULES;
|
|
486
|
+
var isRegistrationNumberAbsentStateV4Scenario = (country, entityType) => {
|
|
487
|
+
return country === CountryCodes.Australia && (entityType === CompanyTypesValues.GOVERNMENTAL_ORGANIZATION || entityType === CompanyTypesValues.INCORPORATED_PARTNERSHIP) || country === CountryCodes.NewZealand;
|
|
488
|
+
};
|
|
489
|
+
var isUsingCompanySearch = (country, taskType) => {
|
|
490
|
+
if (taskType !== TaskTypes.BUSINESS_DETAILS) return false;
|
|
491
|
+
return COUNTRIES_USING_COMPANY_SEARCH.includes(country);
|
|
492
|
+
};
|
|
526
493
|
var BasicInformation_module_default = {
|
|
527
494
|
"basic-information": "_basic-information_1rbd4_1",
|
|
528
495
|
basicInformation: "_basic-information_1rbd4_1"
|
|
@@ -2883,17 +2850,21 @@ var mapBusinessDetailsDocumentToApiDocument = async (data, entityId) => {
|
|
|
2883
2850
|
])).filter(Boolean);
|
|
2884
2851
|
};
|
|
2885
2852
|
var mapBusinessDetailsSchemaToLegalEntity = (data, accountHolder, isFeatureEnabled, taskType, matchingScenario, rootLegalEntity) => {
|
|
2886
|
-
const
|
|
2853
|
+
const isSoleProp = accountHolder === "mySoleProprietorName";
|
|
2854
|
+
const requestObj = { ...formatObject(data, isSoleProp ? solePropBusinessDetailsApiKeyMapping : businessDetailsApiKeyMapping) };
|
|
2887
2855
|
delete requestObj.organization?.legalFormDescription;
|
|
2888
2856
|
const canSaveRegNumberAbsentState = isFeatureEnabled("EnableRegistrationAndTaxAbsentStatesV4") && isRegistrationNumberAbsentStateV4Scenario(data.basicInformation?.country, data.companyStructure?.entityType);
|
|
2889
|
-
const [taxData, registrationNumber] = [
|
|
2890
|
-
|
|
2857
|
+
const [taxData, registrationNumber, registrationNumberType] = [
|
|
2858
|
+
data.basicInformation?.taxInformation,
|
|
2859
|
+
data.basicInformation?.registrationNumber,
|
|
2860
|
+
data.basicInformation?.registrationNumberType
|
|
2861
|
+
];
|
|
2891
2862
|
const localization = [mapSchemaFieldsToApiScriptLocalization(data.basicInformation ?? {}, "jaHani"), mapSchemaFieldsToApiScriptLocalization(data.basicInformation ?? {}, "jaKana")].filter(({ fields }) => !isEmpty$1(fields)).map(({ script, fields }) => ({
|
|
2892
2863
|
script,
|
|
2893
2864
|
fields: { legalName: fields.legalCompanyName }
|
|
2894
2865
|
}));
|
|
2895
2866
|
const doingBusinessAs = data.additionalInformation?.doingBusinessAs ?? "";
|
|
2896
|
-
const entityObject =
|
|
2867
|
+
const entityObject = isSoleProp ? requestObj.soleProprietorship : requestObj.organization;
|
|
2897
2868
|
if (entityObject) {
|
|
2898
2869
|
if (taxData) entityObject.taxInformation = taxData;
|
|
2899
2870
|
if (rootLegalEntity?.type === "organization" && keysOf(rootLegalEntity.capabilities ?? {}).includes("issueBankAccount") && matchingScenario?.includes(Scenarios.L) && registrationNumber && data.basicInformation?.country && shouldReuseRegistrationNumberAsTaxId(data.basicInformation?.country, registrationNumberType)) {
|
|
@@ -2905,15 +2876,14 @@ var mapBusinessDetailsSchemaToLegalEntity = (data, accountHolder, isFeatureEnabl
|
|
|
2905
2876
|
type: privateCompanyTaxOptions && privateCompanyTaxOptions.length > 0 ? privateCompanyTaxOptions[0]["id"] : ""
|
|
2906
2877
|
}];
|
|
2907
2878
|
}
|
|
2908
|
-
if (
|
|
2909
|
-
if (
|
|
2910
|
-
if ((taskType === TaskTypes.TRUST_MEMBER_COMPANY || taskType === TaskTypes.UNINCORPORATED_PARTNERSHIP_MEMBER_COMPANY) && requestObj.organization?.vatAbsenceReason === "") requestObj.organization.vatAbsenceReason = null;
|
|
2879
|
+
if (isSoleProp && !!data.basicInformation?.country) entityObject.countryOfGoverningLaw = data.basicInformation.country;
|
|
2880
|
+
if (taskType !== TaskTypes.BUSINESS_DETAILS && entityObject.vatAbsenceReason === "") entityObject.vatAbsenceReason = null;
|
|
2911
2881
|
if (registrationNumber) {
|
|
2912
2882
|
entityObject.registrationNumber = registrationNumber;
|
|
2913
|
-
if (canSaveRegNumberAbsentState &&
|
|
2883
|
+
if (canSaveRegNumberAbsentState && !isSoleProp) entityObject.registrationNumberAbsent = false;
|
|
2914
2884
|
}
|
|
2915
|
-
if (
|
|
2916
|
-
if (data.basicInformation?.exemptedFromRegistrationNumber && canSaveRegNumberAbsentState &&
|
|
2885
|
+
if (!isSoleProp && localization.length > 0) entityObject.localization = localization;
|
|
2886
|
+
if (data.basicInformation?.exemptedFromRegistrationNumber && canSaveRegNumberAbsentState && !isSoleProp) entityObject.registrationNumberAbsent = data.basicInformation.exemptedFromRegistrationNumber;
|
|
2917
2887
|
if (data.additionalInformation?.vatAbsenceReason) entityObject.vatNumber = "";
|
|
2918
2888
|
if (isFeatureEnabled("EnableDoingBusinessAsNameV4")) {
|
|
2919
2889
|
if (typeof data.additionalInformation?.hasDoingBusinessAs !== "undefined") entityObject.doingBusinessAsAbsent = !data.additionalInformation.hasDoingBusinessAs;
|
|
@@ -2928,9 +2898,9 @@ var mapBusinessDetailsSchemaToLegalEntity = (data, accountHolder, isFeatureEnabl
|
|
|
2928
2898
|
if (entityObject.registeredAddress?.country && entityObject.registeredAddress?.stateOrProvince && !COUNTRIES_WITH_STATES_DATASET.includes(entityObject.registeredAddress?.country)) entityObject.registeredAddress.stateOrProvince = "";
|
|
2929
2899
|
if (!isEmpty$1(data.companyFinancialInformation)) entityObject.financialReports = [mapFinancialInformationToFinancialReport(data.companyFinancialInformation, data.additionalInformation?.dateOfIncorporation)];
|
|
2930
2900
|
}
|
|
2931
|
-
requestObj.type =
|
|
2901
|
+
requestObj.type = isSoleProp ? LegalEntityTypes.SOLE_PROPRIETORSHIP : LegalEntityTypes.ORGANIZATION;
|
|
2932
2902
|
if (entityObject?.registeredAddress.country === "US") delete entityObject.registrationNumber;
|
|
2933
|
-
if (!canSaveRegNumberAbsentState) delete requestObj.organization?.registrationNumberAbsent;
|
|
2903
|
+
if (!canSaveRegNumberAbsentState && !isSoleProp) delete requestObj.organization?.registrationNumberAbsent;
|
|
2934
2904
|
return requestObj;
|
|
2935
2905
|
};
|
|
2936
2906
|
//#endregion
|
|
@@ -3252,7 +3222,7 @@ function useSubmitBusinessDetails({ country, data, forms, legalEntityResponse, a
|
|
|
3252
3222
|
variant: "success"
|
|
3253
3223
|
});
|
|
3254
3224
|
await invalidateRootLegalEntity();
|
|
3255
|
-
onExternalSubmit
|
|
3225
|
+
onExternalSubmit(data);
|
|
3256
3226
|
} catch (err) {
|
|
3257
3227
|
if (isValidationError(err)) {
|
|
3258
3228
|
const getErrors = processValidationErrors(err, TaskTypes.BUSINESS_DETAILS);
|
|
@@ -3506,26 +3476,24 @@ function createStructuredListItem(term, details, t) {
|
|
|
3506
3476
|
details
|
|
3507
3477
|
};
|
|
3508
3478
|
}
|
|
3509
|
-
|
|
3510
|
-
|
|
3479
|
+
var formatBasicInformation = (data, datasetUtils, companyType, isCountryOfGoverningLawEnabled) => {
|
|
3480
|
+
const country = data.country;
|
|
3481
|
+
const taxInfoForCountry = data.taxInformation?.find((taxInfo) => taxInfo.country === country);
|
|
3482
|
+
let taxIdLabel = "taxInformationNumber";
|
|
3483
|
+
if (country in taxIdNumberOptions) {
|
|
3484
|
+
const numberOption = taxIdNumberOptions[country]?.find((taxOption) => taxOption.id === taxInfoForCountry?.type);
|
|
3485
|
+
if (numberOption) taxIdLabel = numberOption.name;
|
|
3486
|
+
}
|
|
3487
|
+
const registrationNumberLabel = resolveFieldMetadata(registrationNumberDefaultFieldConfig[country], {
|
|
3511
3488
|
companyType,
|
|
3512
3489
|
registrationNumberType: data.registrationNumber ? inferCompanyRegistrationNumberType(data.registrationNumber, country, companyType) : getCompanyRegistrationNumberOptions(country, companyType)?.[0]?.id
|
|
3513
3490
|
}, registrationNumberDefaultFieldMetadata).label ?? "";
|
|
3514
|
-
}
|
|
3515
|
-
function getTaxIdLabel(country) {
|
|
3516
|
-
return resolveFieldMetadata(taxInformationDefaultFieldConfig[country], {
|
|
3517
|
-
taxIdNumberType: countryToTaxInfoTypeMap[country] ?? void 0,
|
|
3518
|
-
companyType: void 0
|
|
3519
|
-
}, taxInformationDefaultFieldMetadata).label ?? "";
|
|
3520
|
-
}
|
|
3521
|
-
var formatBasicInformation = (data, datasetUtils, companyType, isCountryOfGoverningLawEnabled) => {
|
|
3522
|
-
const country = data.country;
|
|
3523
3491
|
return {
|
|
3524
3492
|
legalCompanyName: data.legalCompanyName,
|
|
3525
3493
|
country: datasetUtils.getCountryName(data.country),
|
|
3526
3494
|
[getKeyForField("stateOrProvince", data.country)]: datasetUtils.getStateName(data.stateOrProvince, data.country),
|
|
3527
|
-
[
|
|
3528
|
-
[
|
|
3495
|
+
[taxIdLabel]: taxInfoForCountry?.number,
|
|
3496
|
+
[registrationNumberLabel]: data.registrationNumber,
|
|
3529
3497
|
countryOfGoverningLaw: datasetUtils.getCountryName(getCountryOfGoverningLaw(isCountryOfGoverningLawEnabled, data))
|
|
3530
3498
|
};
|
|
3531
3499
|
};
|
|
@@ -3990,7 +3958,7 @@ var preventPoBoxValidation = (cleanseAddress, formData) => ({ operationalAddress
|
|
|
3990
3958
|
//#endregion
|
|
3991
3959
|
//#region src/components/Business/tasks/BusinessDetailsDropin/BusinessDetailsDropin.tsx
|
|
3992
3960
|
var CompanySearchStateContext = createContext$1({});
|
|
3993
|
-
function BusinessDetailsDropin({ taskType, country: propCountry, problems: propProblems, legalEntityResponse, efpBusinessLines, documents, associatedLegalArrangement, nestedLegalEntity, nestedLegalEntityDetails, onSubmit: onExternalSubmit, handleHomeClick
|
|
3961
|
+
function BusinessDetailsDropin({ taskType, country: propCountry, problems: propProblems, legalEntityResponse, efpBusinessLines, documents, associatedLegalArrangement, nestedLegalEntity, nestedLegalEntityDetails, onSubmit: onExternalSubmit, handleHomeClick }) {
|
|
3994
3962
|
const { t, i18n } = useTranslation(["common", "business"]);
|
|
3995
3963
|
const userEvents = useAnalyticsContext();
|
|
3996
3964
|
const { isFeatureEnabled } = useToggleContext();
|
|
@@ -4439,7 +4407,7 @@ function BusinessDetailsDropin({ taskType, country: propCountry, problems: propP
|
|
|
4439
4407
|
children: t(($) => $["summaryLegalCaption"])
|
|
4440
4408
|
})]
|
|
4441
4409
|
}),
|
|
4442
|
-
asModal: isBusinessDetailsModalEnabled
|
|
4410
|
+
asModal: isBusinessDetailsModalEnabled,
|
|
4443
4411
|
currentStep: steps.current,
|
|
4444
4412
|
totalSteps: steps.total,
|
|
4445
4413
|
forms,
|
|
@@ -4569,7 +4537,6 @@ function VerifiedBusinessCard({ verifiedBusiness, verifiedAddress }) {
|
|
|
4569
4537
|
}
|
|
4570
4538
|
//#endregion
|
|
4571
4539
|
//#region src/components/Business/forms/AdditionalInformation/AdditionalInformation.tsx
|
|
4572
|
-
var LazyJpAddressFields = lazy(async () => (await import("./JpAddressFields-vOxKYbjD.js")).JpAddressFields);
|
|
4573
4540
|
var ADDITIONAL_INFORMATION_FIELDS = [
|
|
4574
4541
|
...DBA_NAME_FIELD,
|
|
4575
4542
|
...VAT_NUMBER_FIELD,
|
|
@@ -4583,41 +4550,20 @@ var ADDITIONAL_INFORMATION_FIELDS = [
|
|
|
4583
4550
|
"legalFormDescription",
|
|
4584
4551
|
"residentialAddressIndicator",
|
|
4585
4552
|
...LEGAL_FORM_FIELDS,
|
|
4586
|
-
|
|
4587
|
-
...getPrefixedAddressFieldNames("registrationAddress"),
|
|
4588
|
-
...getPrefixedAddressFieldNames("operationalAddress")
|
|
4553
|
+
...REGISTRATION_AND_OPERATIONAL_ADDRESS_FIELDS
|
|
4589
4554
|
];
|
|
4590
4555
|
var EMPTY_OBJ = {};
|
|
4591
4556
|
function AdditionalInformation({ id, country, companyType, shouldValidate, fieldValidationErrors = EMPTY_OBJ, formVerificationErrors = EMPTY_OBJ }) {
|
|
4592
4557
|
const { t, i18n } = useTranslation(["common", "business"]);
|
|
4593
4558
|
const { form } = useFormContext();
|
|
4594
|
-
const { isFeatureEnabled } = useToggleContext();
|
|
4595
4559
|
const verifiedBusiness = useContext$1(CompanySearchStateContext).verifiedBusiness.value;
|
|
4596
4560
|
const showVerified = !!verifiedBusiness;
|
|
4597
4561
|
const showStockData = companyType === CompanyTypesValues.PUBLIC_COMPANY;
|
|
4598
4562
|
const { data: matchingScenario } = useScenarios(country, LegalEntityTypes.ORGANIZATION);
|
|
4599
|
-
const showJapanLocalization = isJapanLocalizationEnabled(isFeatureEnabled, country);
|
|
4600
4563
|
const businessLineTypes = [];
|
|
4601
4564
|
if (matchingScenario?.includes("L_BANKING")) businessLineTypes.push("banking");
|
|
4602
4565
|
if (matchingScenario?.includes("L_ISSUING")) businessLineTypes.push("issuing");
|
|
4603
|
-
const [addressToCheck, setAddressToCheck] = useDebouncedState(500);
|
|
4604
|
-
const { data: cleansedRegistrationAddress } = useAddressCleanse({
|
|
4605
|
-
text: addressToCheck,
|
|
4606
|
-
country
|
|
4607
|
-
}, { enabled: Boolean(addressToCheck) });
|
|
4608
|
-
const mustProvideOperationalAddress = cleansedRegistrationAddress?.poBox ?? false;
|
|
4609
4566
|
const { data, defaultData, valid, errors, allFields, requiredFields, optionalFields, obscuredFields, trustedFields, handleChange: handleChangeFor } = getFormSlice(form, "additionalInformation");
|
|
4610
|
-
const currentRegistrationAddress = nestAddressSchema("registrationAddress", data);
|
|
4611
|
-
useEffect$1(() => setAddressToCheck(formatAddressForCleanse(currentRegistrationAddress)), [currentRegistrationAddress, setAddressToCheck]);
|
|
4612
|
-
useEffect$1(() => {
|
|
4613
|
-
if (data?.registrationAddressCountry !== country) handleChangeFor("registrationAddressCountry")(country);
|
|
4614
|
-
if (data?.operationalAddressCountry !== country) handleChangeFor("operationalAddressCountry")(country);
|
|
4615
|
-
}, [
|
|
4616
|
-
data?.registrationAddressCountry,
|
|
4617
|
-
data?.operationalAddressCountry,
|
|
4618
|
-
country,
|
|
4619
|
-
handleChangeFor
|
|
4620
|
-
]);
|
|
4621
4567
|
/**
|
|
4622
4568
|
* Map the existing verified address data returned from the business data provider to our local address schema.
|
|
4623
4569
|
* This must be done differently than the other verified data as the address
|
|
@@ -4635,18 +4581,6 @@ function AdditionalInformation({ id, country, companyType, shouldValidate, field
|
|
|
4635
4581
|
defaultData?.registrationAddressStreet,
|
|
4636
4582
|
defaultData?.operationalAddressStreet
|
|
4637
4583
|
]);
|
|
4638
|
-
const handleOperationalAddressIsSameChange = useCallback$1((isChecked) => {
|
|
4639
|
-
handleChangeFor("operationalAddressIsSame")(isChecked);
|
|
4640
|
-
}, [handleChangeFor]);
|
|
4641
|
-
const handleResidentialAddressIndicatorChange = useCallback$1((isChecked) => handleChangeFor("residentialAddressIndicator")(isChecked), [handleChangeFor]);
|
|
4642
|
-
if (data?.operationalAddressIsSame === null) handleOperationalAddressIsSameChange(true);
|
|
4643
|
-
useEffect$1(() => {
|
|
4644
|
-
if (mustProvideOperationalAddress && data?.operationalAddressIsSame) handleOperationalAddressIsSameChange(false);
|
|
4645
|
-
}, [
|
|
4646
|
-
handleOperationalAddressIsSameChange,
|
|
4647
|
-
mustProvideOperationalAddress,
|
|
4648
|
-
data?.operationalAddressIsSame
|
|
4649
|
-
]);
|
|
4650
4584
|
const formUtils = useMemo$1(() => {
|
|
4651
4585
|
const initialProps = {
|
|
4652
4586
|
data: data ?? {},
|
|
@@ -4695,44 +4629,6 @@ function AdditionalInformation({ id, country, companyType, shouldValidate, field
|
|
|
4695
4629
|
]);
|
|
4696
4630
|
const showField = (fieldKeys) => fieldKeys.some((field) => formUtils.isRequiredField(field) || formUtils.isOptionalField(field));
|
|
4697
4631
|
const { data: industryCodes } = useIndustryCodes(businessLineTypes, i18n.language, { enabled: showField(INDUSTRY_CODE_FIELD) });
|
|
4698
|
-
const datasetUtils = datasetUtilities(i18n.language);
|
|
4699
|
-
const registrationAddressDescription = useMemo$1(() => {
|
|
4700
|
-
return [
|
|
4701
|
-
"US",
|
|
4702
|
-
"NL",
|
|
4703
|
-
"CZ"
|
|
4704
|
-
].includes(country) ? t(($) => $["youBusinessOfficalAddressInTheCounty"], {
|
|
4705
|
-
ns: "business",
|
|
4706
|
-
country: datasetUtils.getCountryName(country)
|
|
4707
|
-
}) : t(($) => $["youBusinessOfficalAddressInCounty"], {
|
|
4708
|
-
ns: "business",
|
|
4709
|
-
country: datasetUtils.getCountryName(country)
|
|
4710
|
-
});
|
|
4711
|
-
}, [
|
|
4712
|
-
country,
|
|
4713
|
-
datasetUtils,
|
|
4714
|
-
t
|
|
4715
|
-
]);
|
|
4716
|
-
let readOnlyAddressFields = [];
|
|
4717
|
-
if (verifiedBusiness?.registeredAddress?.state && verifiedBusiness.registeredAddress.state === form.data.basicInformation?.stateOrProvince) readOnlyAddressFields = ["stateOrProvince"];
|
|
4718
|
-
const additionalInformationFormProps = {
|
|
4719
|
-
data,
|
|
4720
|
-
valid,
|
|
4721
|
-
errors,
|
|
4722
|
-
requiredFields,
|
|
4723
|
-
optionalFields,
|
|
4724
|
-
fieldValidationErrors,
|
|
4725
|
-
handleFieldChange: handleChangeFor
|
|
4726
|
-
};
|
|
4727
|
-
const addressFieldProps = showJapanLocalization ? {
|
|
4728
|
-
showJapanLocalization: true,
|
|
4729
|
-
registrationAddress: getPrefixedFieldProps(additionalInformationFormProps, "registrationAddress", ALL_ADDRESS_FIELDS),
|
|
4730
|
-
operationalAddress: getPrefixedFieldProps(additionalInformationFormProps, "operationalAddress", ALL_ADDRESS_FIELDS)
|
|
4731
|
-
} : {
|
|
4732
|
-
showJapanLocalization: false,
|
|
4733
|
-
registrationAddress: getPrefixedFieldProps(additionalInformationFormProps, "registrationAddress", addressFields),
|
|
4734
|
-
operationalAddress: getPrefixedFieldProps(additionalInformationFormProps, "operationalAddress", addressFields)
|
|
4735
|
-
};
|
|
4736
4632
|
return /* @__PURE__ */ jsxs("form", {
|
|
4737
4633
|
id,
|
|
4738
4634
|
children: [
|
|
@@ -4770,7 +4666,7 @@ function AdditionalInformation({ id, country, companyType, shouldValidate, field
|
|
|
4770
4666
|
countryCode: country,
|
|
4771
4667
|
data: { legalForm: formUtils.getFieldData(data ?? {}, LEGAL_FORM_FIELDS).legalForm },
|
|
4772
4668
|
valid: formUtils.getFieldValid(valid ?? {}, LEGAL_FORM_FIELDS),
|
|
4773
|
-
errorMessage: errors?.legalForm?.errorMessage,
|
|
4669
|
+
errorMessage: formatValidationError(errors?.legalForm?.errorMessage, t),
|
|
4774
4670
|
handleChangeFor,
|
|
4775
4671
|
readonly: false,
|
|
4776
4672
|
label: formUtils.getLabel("legalForm", "businessStructure")
|
|
@@ -4866,96 +4762,19 @@ function AdditionalInformation({ id, country, companyType, shouldValidate, field
|
|
|
4866
4762
|
handleChangeFor
|
|
4867
4763
|
})
|
|
4868
4764
|
] })] }),
|
|
4869
|
-
/* @__PURE__ */
|
|
4870
|
-
|
|
4871
|
-
|
|
4872
|
-
|
|
4873
|
-
|
|
4874
|
-
|
|
4875
|
-
|
|
4876
|
-
|
|
4877
|
-
|
|
4878
|
-
|
|
4879
|
-
|
|
4880
|
-
|
|
4881
|
-
|
|
4882
|
-
})]
|
|
4883
|
-
}),
|
|
4884
|
-
addressFieldProps.showJapanLocalization ? /* @__PURE__ */ jsx(Suspense, {
|
|
4885
|
-
fallback: /* @__PURE__ */ jsx(Loader, {}),
|
|
4886
|
-
children: /* @__PURE__ */ jsx(LazyJpAddressFields, {
|
|
4887
|
-
...addressFieldProps.registrationAddress,
|
|
4888
|
-
addressType: "registrationAddress"
|
|
4889
|
-
})
|
|
4890
|
-
}) : /* @__PURE__ */ jsx(AddressFields, {
|
|
4891
|
-
...addressFieldProps.registrationAddress,
|
|
4892
|
-
addressType: "registrationAddress",
|
|
4893
|
-
readOnlyFields: readOnlyAddressFields,
|
|
4894
|
-
trustedFields: getNestedTrustedFields("registrationAddress", trustedFields),
|
|
4895
|
-
hideCountry: true,
|
|
4896
|
-
condensed: true
|
|
4897
|
-
}),
|
|
4898
|
-
showField(["residentialAddressIndicator"]) && /* @__PURE__ */ jsx(Field, {
|
|
4899
|
-
el: "fieldset",
|
|
4900
|
-
name: "residentialAddressIndicator",
|
|
4901
|
-
errorMessage: form.errors.additionalInformation?.residentialAddressIndicator?.errorMessage,
|
|
4902
|
-
isValid: form.valid.additionalInformation?.residentialAddressIndicator,
|
|
4903
|
-
children: (childProps) => /* @__PURE__ */ jsx(Checkbox, {
|
|
4904
|
-
...childProps,
|
|
4905
|
-
name: "residentialAddressIndicator",
|
|
4906
|
-
label: t(($) => $["thisIsAPersonalAddress"], { ns: "business" }),
|
|
4907
|
-
helper: t(($) => $["businessAddressesCanShowOwnReceipts"], { ns: "business" }),
|
|
4908
|
-
checked: !!form.data.additionalInformation?.residentialAddressIndicator,
|
|
4909
|
-
readonly: formUtils.isReadOnly("residentialAddressIndicator"),
|
|
4910
|
-
onChange: handleResidentialAddressIndicatorChange
|
|
4911
|
-
})
|
|
4912
|
-
})
|
|
4913
|
-
]
|
|
4914
|
-
}),
|
|
4915
|
-
/* @__PURE__ */ jsxs("section", {
|
|
4916
|
-
"data-testid": "principalPlaceOfBusiness",
|
|
4917
|
-
children: [
|
|
4918
|
-
/* @__PURE__ */ jsxs("div", {
|
|
4919
|
-
className: AdditionalInformation_module_default.additionalInformationSectionHeading,
|
|
4920
|
-
children: [/* @__PURE__ */ jsx(Typography, {
|
|
4921
|
-
el: "h3",
|
|
4922
|
-
variant: "title",
|
|
4923
|
-
children: t(($) => $["principalPlaceOfBusiness"], { ns: "business" })
|
|
4924
|
-
}), /* @__PURE__ */ jsx(Typography, {
|
|
4925
|
-
el: "p",
|
|
4926
|
-
variant: "body",
|
|
4927
|
-
children: t(($) => $["thePhysicalLocationWhereABusiness"], { ns: "business" })
|
|
4928
|
-
})]
|
|
4929
|
-
}),
|
|
4930
|
-
!mustProvideOperationalAddress && /* @__PURE__ */ jsx(Field, {
|
|
4931
|
-
el: "fieldset",
|
|
4932
|
-
name: "operationalAddressIsSame",
|
|
4933
|
-
errorMessage: errors?.operationalAddressIsSame?.errorMessage,
|
|
4934
|
-
isValid: valid?.operationalAddressIsSame,
|
|
4935
|
-
children: (childProps) => /* @__PURE__ */ jsx(Checkbox, {
|
|
4936
|
-
...childProps,
|
|
4937
|
-
"aria-required": formUtils.isRequiredField("operationalAddressIsSame"),
|
|
4938
|
-
"aria-invalid": !valid?.operationalAddressIsSame,
|
|
4939
|
-
name: "operationalAddressIsSame",
|
|
4940
|
-
label: formUtils.getLabel("sameAsRegisteredAddress"),
|
|
4941
|
-
checked: !!data?.operationalAddressIsSame,
|
|
4942
|
-
onChange: handleOperationalAddressIsSameChange
|
|
4943
|
-
})
|
|
4944
|
-
}),
|
|
4945
|
-
!data?.operationalAddressIsSame && (addressFieldProps.showJapanLocalization ? /* @__PURE__ */ jsx(Suspense, {
|
|
4946
|
-
fallback: /* @__PURE__ */ jsx(Loader, {}),
|
|
4947
|
-
children: /* @__PURE__ */ jsx(LazyJpAddressFields, {
|
|
4948
|
-
...addressFieldProps.operationalAddress,
|
|
4949
|
-
addressType: "operationalAddress"
|
|
4950
|
-
})
|
|
4951
|
-
}) : /* @__PURE__ */ jsx(AddressFields, {
|
|
4952
|
-
...addressFieldProps.operationalAddress,
|
|
4953
|
-
addressType: "operationalAddress",
|
|
4954
|
-
trustedFields: getNestedTrustedFields("operationalAddress", trustedFields),
|
|
4955
|
-
hideCountry: true,
|
|
4956
|
-
condensed: true
|
|
4957
|
-
}))
|
|
4958
|
-
]
|
|
4765
|
+
/* @__PURE__ */ jsx(RegistrationAndOperationalAddressFields, {
|
|
4766
|
+
country,
|
|
4767
|
+
readOnlyAddressFields: verifiedBusiness?.registeredAddress?.state && verifiedBusiness.registeredAddress.state === form.data.basicInformation?.stateOrProvince ? ["stateOrProvince"] : [],
|
|
4768
|
+
entityType: "business",
|
|
4769
|
+
data,
|
|
4770
|
+
valid,
|
|
4771
|
+
errors,
|
|
4772
|
+
requiredFields,
|
|
4773
|
+
optionalFields,
|
|
4774
|
+
trustedFields,
|
|
4775
|
+
fieldValidationErrors,
|
|
4776
|
+
handleChangeFor,
|
|
4777
|
+
formUtils
|
|
4959
4778
|
})
|
|
4960
4779
|
]
|
|
4961
4780
|
})
|
|
@@ -2,7 +2,7 @@ try {
|
|
|
2
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
3
|
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "fbe6879a-aef0-4eb0-bad9-86510a31cabe", e._sentryDebugIdIdentifier = "sentry-dbid-fbe6879a-aef0-4eb0-bad9-86510a31cabe");
|
|
4
4
|
} catch (e) {}
|
|
5
|
-
import { n as httpGet, s as useApiContext } from "./http-
|
|
5
|
+
import { n as httpGet, s as useApiContext } from "./http-D6AdUBhO.js";
|
|
6
6
|
import { useQuery } from "@tanstack/preact-query";
|
|
7
7
|
//#region src/api/businessLines/useBusinessLines.ts
|
|
8
8
|
var getBusinessLines = async (legalEntityId, baseUrl) => {
|