@adyen/kyc-components 4.19.0 → 4.20.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/{Accordion-BnhH5-eC.js → Accordion-BWdAGMRb.js} +1 -1
- package/dist/{AccountSetupRejected-VkyroW_s.js → AccountSetupRejected-N5q1VKpW.js} +2 -2
- package/dist/AdaptiveWorkflow-C8N4ayEt.js +5112 -0
- package/dist/{AdaptiveWorkflowComponent-BhHqJMaU.js → AdaptiveWorkflowComponent-CEMgH36B.js} +36 -36
- package/dist/{Address-qf5qFwua.js → Address-DQlehM6f.js} +8 -7
- package/dist/{AddressField-eulmJMt_.js → AddressField-BnboPpBe.js} +12 -253
- package/dist/{Avatar-Y_RdG_YY.js → Avatar-CeZIQS8n.js} +1 -1
- package/dist/{BusinessFinancingDropin-xtcAFZEN.js → BusinessFinancingDropin-CFKrcdPb.js} +33 -32
- package/dist/{BusinessFinancingPage-Dt2Va-qf.js → BusinessFinancingPage-DIrEOTbn.js} +33 -33
- package/dist/{utils-BFaY6wGW.js → BusinessRegistrationNumberField-DGBqMCwU.js} +301 -53
- package/dist/{BusinessTypeSelectionPage-CKrWo9e-.js → BusinessTypeSelectionPage-CyMTri8M.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-DDWIMP-t.js → CompanyRegistrationNumberTypeSelector-KkPiHDQk.js} +8 -8
- package/dist/{ContactDetails-Co7J7Hjc.js → ContactDetails-CQZ7kMSU.js} +7 -7
- package/dist/{ContextGuidance-RV1m2efV.js → ContextGuidance-CpLYhcU8.js} +2 -2
- package/dist/{CountryField-BTVLTRup.js → CountryField-DQnWXgAu.js} +26 -21
- package/dist/{Currency-DfCp7hwP.js → Currency-DJTE2WJJ.js} +8 -59
- package/dist/{CustomerSupport-fg0-Upw5.js → CustomerSupport-BkE-Ej6L.js} +14 -14
- package/dist/{DataConflictsModal-CVgcvjm6.js → DataConflictsModal-BhZpZhFP.js} +7 -7
- package/dist/{DebugModal-CaI-iWEa.js → DebugModal-C_O14NUN.js} +10 -10
- package/dist/{DecisionMakerDetails-JYY15piY.js → DecisionMakerDetails-BZEv2fPu.js} +17 -17
- package/dist/{DecisionMakerDetailsPage-UMAQo28h.js → DecisionMakerDetailsPage-DhCtiSzf.js} +12 -12
- package/dist/{DecisionMakers-DeQLYGwW.js → DecisionMakers-BPLn2iHA.js} +18 -18
- package/dist/{Dropzone-Dmtomtl2.js → Dropzone-DAvxNuAu.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-vg8k3YiH.js → EntityAssociation-CBbcX-5M.js} +7 -7
- package/dist/{ErrorPanel-DysmW3Hz.js → ErrorPanel-C2hG0lLe.js} +4 -4
- package/dist/GlobalEntryModal-cQF6Bfim.js +353 -0
- package/dist/{GlobalEntryPage-CrjiJG7v.js → GlobalEntryPage-C6OnSwBj.js} +10 -10
- package/dist/{Image-Dc5Xg1_Y.js → Image-8SOcICah.js} +1 -1
- package/dist/{Individual.rules-Fg_j4_io.js → Individual.rules-D1Mmr7tv.js} +7 -11
- package/dist/{IndividualDropin-D5qyhkH7.js → IndividualDropin-KG_mOjri.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-Dd72HuvK.js → Introduction-Dsy_e4OL.js} +8 -8
- package/dist/{InvitedDecisionMakerComponent-BR14VLnP.js → InvitedDecisionMakerComponent-Bzj7Szw8.js} +41 -41
- package/dist/{JpAddress-C7eDuCDV.js → JpAddress-CMYhw2Zl.js} +19 -17
- package/dist/{JpAddress.module-DNwEnPzj.js → JpAddress.module-CiY5uzmL.js} +4 -4
- package/dist/{JpAddressFields-CB889sWX.js → JpAddressFields-DqJ7Am2I.js} +15 -14
- package/dist/{LegalCompanyNameField-BVyQCVUE.js → LegalCompanyNameField-DGdSduXu.js} +5 -5
- package/dist/{LegalRepresentativeDetailsPage-BNFIn6Qh.js → LegalRepresentativeDetailsPage-DODrlxF0.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-DwP4ZWTk.js → MaskedInput-BZLm8L47.js} +11 -11
- package/dist/{Modal-BYdlsXkf.js → Modal-nylR9F4X.js} +1 -1
- package/dist/{Name-DfZeGh8m.js → Name-C0ti1xY6.js} +5 -5
- package/dist/{NewSummary-DebON3Ge.js → NewSummary-DDwQJV7w.js} +6 -6
- package/dist/{PatriotActDisclosure-V0iYQAp7.js → PatriotActDisclosure-CB0N3iIz.js} +15 -15
- package/dist/{PayoutDetailsDropin-DtLitjwp.js → PayoutDetailsDropin-9LoGCmko.js} +187 -135
- package/dist/{PayoutDetailsPage-Bul0UWe-.js → PayoutDetailsPage-DV8fIktn.js} +10 -10
- package/dist/{RadioGroup-BcojlKCO.js → RadioGroup-BUwhfue7.js} +3 -3
- package/dist/{Review-EaL1BttB.js → Review-C2JLh6M0.js} +8 -8
- package/dist/{RootBusinessDetailsPage-Cwc8cZOY.js → RootBusinessDetailsPage-D-T5SbYt.js} +10 -10
- package/dist/{RootBusinessLinesPage-CLsMhxkV.js → RootBusinessLinesPage-BZNLFGSY.js} +30 -30
- package/dist/{RootIndividualDetailsPage-Nfm0kzJq.js → RootIndividualDetailsPage-wO9DNKWn.js} +10 -10
- package/dist/{Select-C5sy6Wux.js → Select-B5Mo0Bpw.js} +12 -13
- package/dist/{SignPCIComponent-CaTaPQHb.js → SignPCIComponent-CZmCa0AY.js} +56 -54
- package/dist/{SingpassSelection-COig4k8W.js → SingpassSelection-BTZe82Q8.js} +6 -6
- package/dist/SoleProprietorshipPage-Dfzyn6Br.js +70 -0
- package/dist/{SourceOfFundsPage-DEABiUWz.js → SourceOfFundsPage-l899LDLv.js} +58 -44
- package/dist/{StructuredList-D54Bpjf4.js → StructuredList-DR8Fb1tc.js} +4 -4
- package/dist/{TaskListItem-CB0kZVlT.js → TaskListItem-1n3vYDAz.js} +11 -11
- package/dist/{TaskVerificationStatus-ITLSeoau.js → TaskVerificationStatus-DMj8rsZ_.js} +1 -1
- package/dist/{TaxReportingDropin-9lSgx-Sv.js → TaxReportingDropin-BYOpjW8V.js} +18 -18
- package/dist/{TermsOfServiceManagement-CbgkpeNu.js → TermsOfServiceManagement-BUvv59rD.js} +68 -66
- package/dist/{TextArea-BzCbFjRp.js → TextArea-CoS-i-FF.js} +3 -3
- package/dist/{TrustDetailsPage-pJ_aGyVV.js → TrustDetailsPage-BQjA8lmD.js} +341 -318
- package/dist/TrustMemberCompanyPage-3189PHUn.js +109 -0
- package/dist/TrustMemberIndividualPage-DOFGzN7Z.js +110 -0
- package/dist/{TrustMemberRoleAndTypePage-DjE53lNn.js → TrustMemberRoleAndTypePage-nDSoM_rw.js} +19 -19
- package/dist/{TrustMembersOverview-z8U7UWHS.js → TrustMembersOverview-CxiKjCLV.js} +14 -14
- package/dist/UnincorporatedPartnershipIndividualPage-D-46tLiw.js +79 -0
- package/dist/{UnincorporatedPartnershipMemberCompanyPage-DOBh4lR1.js → UnincorporatedPartnershipMemberCompanyPage-CCnm-ShL.js} +37 -37
- package/dist/{UnincorporatedPartnershipMemberRoleAndTypePage-9i54lBKZ.js → UnincorporatedPartnershipMemberRoleAndTypePage-CsECHFgr.js} +11 -11
- package/dist/{UnincorporatedPartnershipMembersOverview-DFeXZDC8.js → UnincorporatedPartnershipMembersOverview-C8fwIn45.js} +9 -9
- package/dist/{VerificationErrorAlert-B3dqg4d3.js → VerificationErrorAlert-7hKN39sx.js} +4 -4
- package/dist/{accountHolderUtils-CV8i1K0q.js → accountHolderUtils-Cw7X31mH.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 +60 -60
- 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-qakcO27e.js → bafinUtils-vdTD2Ec5.js} +19 -19
- package/dist/bg-BG-Bmveyt6S.js +7 -0
- package/dist/{constants-L0qE2dbE.js → constants-Bs5FgdWg.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-BhxAICdT.js → error-BatJzHF5.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/{filterProblemsByTaskForms-CQby20PN.js → filterProblemsByTaskForms-DaJ3LZ2L.js} +11 -11
- package/dist/{form-rules-wh_oE1AN.js → form-rules-DV3hxYqZ.js} +2 -2
- package/dist/formatValidationError-CZ5MeYBS.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-D9928vV-.js → mapJpAddressSchemaToAddressLocalizations-6nfrRniy.js} +3 -51
- package/dist/{mapLegalEntityToIndividualSchema-C6zpRY2L.js → mapLegalEntityToIndividualSchema-1JDK92Nc.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-Crk2JcIC.js → patternValidators-tRq-KPvW.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-N1ZuAvVY.js → processValidationErrors-PJV6CPG2.js} +2 -2
- package/dist/pt-BR-D08Fo1qY.js +7 -0
- package/dist/pt-PT-BAQWYDe6.js +7 -0
- package/dist/{resolveEnvironment-BHPgG5Ko.js → resolveEnvironment-df20S4SQ.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/businessDetailsStore.d.ts +2 -2
- package/dist/types/components/Business/tasks/BusinessDetailsDropin/types.d.ts +5 -5
- package/dist/types/components/Business/utils/applyVerifiedBusinessData.d.ts +6 -2
- 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-_7t1A_p2.js → useBusinessDetailsData-CRLRQh0U.js} +197 -356
- package/dist/{useBusinessLines-CfQYLNkw.js → useBusinessLines-D-rc-Z6G.js} +1 -1
- package/dist/{useCanSeeIntroduction-Jkw8uz5N.js → useCanSeeIntroduction-BeooAHcX.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-26r9IKF_.js → useForm-BLP36oqX.js} +3 -3
- package/dist/{useId-BwLQ-75v.js → useId-po-YSdTw.js} +3 -3
- package/dist/{useLegalEntity-BqO7Fmt0.js → useLegalEntity-DR51Q4mE.js} +1 -1
- package/dist/{useNavigate-DvOGhK-A.js → useNavigate-CcVYYcg1.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-DAFo_ibm.js → useTrustMembers-HJpKc0qR.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-B4x3gely.js → useUpdateLegalEntity-CH4xp654.js} +2 -2
- package/dist/{utils-DbIq3tru.js → utils-BbBPfcNK.js} +7 -7
- package/dist/{utils-D8hL_fNA.js → utils-C8WDAzsL.js} +1 -1
- package/dist/{utils-DbQT0YgG.js → utils-Di84CxrF.js} +5 -5
- package/dist/{validate-K01plHbc.js → validate-BNu91k9j.js} +4 -4
- package/dist/validate-CkuU4MvS.js +250 -0
- package/dist/{validate-N3t8r03y.js → validate-CsYDNrPB.js} +1 -1
- package/dist/{validateExtractionResult-YhFC9maw.js → validateExtractionResult-mtXTjYfE.js} +10 -10
- package/dist/{validationError-q9Js1v0m.js → validationError-1dpZJlAz.js} +1 -1
- package/package.json +3 -4
- package/dist/AdaptiveWorkflow-DV_JyPw8.js +0 -1896
- package/dist/GlobalEntryModal-BHlZmq4-.js +0 -188
- package/dist/SoleProprietorshipPage-Ctcz1qNr.js +0 -70
- package/dist/TrustMemberCompanyPage-vqkIF_0s.js +0 -109
- package/dist/TrustMemberIndividualPage-CS_tABNQ.js +0 -109
- package/dist/UnincorporatedPartnershipIndividualPage-9uHIQImj.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,27 +1,32 @@
|
|
|
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] = "7b983028-c744-4a3e-ba5a-af35981f33a6", e._sentryDebugIdIdentifier = "sentry-dbid-7b983028-c744-4a3e-ba5a-af35981f33a6");
|
|
4
4
|
} catch (e) {}
|
|
5
|
-
import { r as useTranslation } from "./translation-
|
|
6
|
-
import { j as useToggleContext } from "./resolveEnvironment-
|
|
5
|
+
import { i as Typography, r as useTranslation } from "./translation-DH4IlMCP.js";
|
|
6
|
+
import { T as datasetUtilities, X as getMaxLengthByFieldAndCountry, j as useToggleContext } from "./resolveEnvironment-df20S4SQ.js";
|
|
7
|
+
import { r as Loader } from "./Button-Cm7cT6BX.js";
|
|
7
8
|
import { t as LegalEntityTypes } from "./legal-entity-type-0MfCGzUf.js";
|
|
8
|
-
import {
|
|
9
|
+
import { o as objectsDeepEqual } from "./AnalyticsContext-BnRQ9H1u.js";
|
|
9
10
|
import { t as CountryCodes } from "./country-code-CJk2hdPu.js";
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import { t as Checkbox } from "./Checkbox-
|
|
14
|
-
import {
|
|
15
|
-
import { i as
|
|
11
|
+
import { a as prefixCountryNameWithThe } from "./country-IYuKDSdC.js";
|
|
12
|
+
import { f as translateTranslatable, r as Field } from "./Select-B5Mo0Bpw.js";
|
|
13
|
+
import { b as createFormUtils } from "./CountryField-DQnWXgAu.js";
|
|
14
|
+
import { r as useDebouncedCallback, t as Checkbox } from "./Checkbox-faFUul66.js";
|
|
15
|
+
import { c as formatAddressForCleanse, l as useAddressCleanse, s as countrySpecificFormatters, t as AddressField } from "./AddressField-BnboPpBe.js";
|
|
16
|
+
import { a as alphanumericInputs, c as nonInputs, i as alphaInputs, l as numericInputs, s as makeMask, t as MaskedInput, u as spacer } from "./MaskedInput-BZLm8L47.js";
|
|
17
|
+
import { l as addressFields, n as getAddressSchemaLabelsByCountry, o as CONDENSED_ADDRESS_FIELDS, t as getAddressSchemaForCountry } from "./utils-C8WDAzsL.js";
|
|
18
|
+
import { i as MemoizedDocumentUpload } from "./PatriotActDisclosure-CB0N3iIz.js";
|
|
19
|
+
import { t as isJapanLocalizationEnabled } from "./japanSupportUtils-H5Zfox2v.js";
|
|
16
20
|
import { t as uppercase } from "./uppercase-DvjwUM0n.js";
|
|
17
|
-
import { a as validateNotEmptyOnBlur, o as validatePatternOnBlur } from "./patternValidators-
|
|
18
|
-
import { a as COUNTRIES_REQUIRING_FINANCIAL_INFORMATION, b as REGISTRATION_NUMBER_EXEMPTION_RULES, f as COUNTRIES_USING_COMPANY_SEARCH } from "./utils-DbIq3tru.js";
|
|
21
|
+
import { a as validateNotEmptyOnBlur, o as validatePatternOnBlur } from "./patternValidators-tRq-KPvW.js";
|
|
19
22
|
import { t as resolveFieldMetadata } from "./fieldConfigurations-CZCFghnK.js";
|
|
20
|
-
import { t as
|
|
21
|
-
import { t as
|
|
22
|
-
import {
|
|
23
|
-
import {
|
|
24
|
-
import {
|
|
23
|
+
import { i as getPrefixedFieldProps, t as capitalize } from "./getProps-DVqK7eRw.js";
|
|
24
|
+
import { t as InputText } from "./InputText-Cf9ccCaj.js";
|
|
25
|
+
import { t as RadioGroup } from "./RadioGroup-BUwhfue7.js";
|
|
26
|
+
import { t as formatValidationError } from "./formatValidationError-CZ5MeYBS.js";
|
|
27
|
+
import { i as getCompanyRegistrationNumberOptions, l as registrationNumberDefaultFieldConfig, n as getDefaultRegistrationNumberType, o as exemptFromRegistrationNumberDefaultFieldConfig, s as exemptFromRegistrationNumberDefaultFieldMetadata, t as CompanyRegistrationNumberTypeSelector, u as registrationNumberDefaultFieldMetadata } from "./CompanyRegistrationNumberTypeSelector-KkPiHDQk.js";
|
|
28
|
+
import { Suspense, lazy, memo } from "preact/compat";
|
|
29
|
+
import { useCallback as useCallback$1, useEffect as useEffect$1, useMemo as useMemo$1, useState as useState$1 } from "preact/hooks";
|
|
25
30
|
import { Fragment as Fragment$1, jsx, jsxs } from "preact/jsx-runtime";
|
|
26
31
|
//#region src/components/Shared/fields/DBANameField/DBANameField.tsx
|
|
27
32
|
var DBA_NAME_FIELD = ["hasDoingBusinessAs", "doingBusinessAs"];
|
|
@@ -77,6 +82,284 @@ function DBANameField({ data, valid, errors, readonly, handleChangeFor }) {
|
|
|
77
82
|
var doingBusinessAsAbsentFieldMetadata = { validators: [validateNotEmptyOnBlur] };
|
|
78
83
|
var doingBusinessAsFieldMetadata = { validators: [validateNotEmptyOnBlur] };
|
|
79
84
|
//#endregion
|
|
85
|
+
//#region src/components/Shared/fields/RegistrationAndOperationalAddressFields/utils.ts
|
|
86
|
+
var JP_ONLY_ADDRESS_FIELDS = [
|
|
87
|
+
"jaHaniStateOrProvince",
|
|
88
|
+
"jaHaniCity",
|
|
89
|
+
"jaHaniStreet",
|
|
90
|
+
"jaKanaStateOrProvince",
|
|
91
|
+
"jaKanaCity",
|
|
92
|
+
"street2FullWidth"
|
|
93
|
+
];
|
|
94
|
+
var ALL_ADDRESS_FIELDS = [...addressFields, ...JP_ONLY_ADDRESS_FIELDS];
|
|
95
|
+
/**
|
|
96
|
+
* Parses the nested trusted fields on a legal entity e.g. ['registrationAddress.address', 'registrationAddress.postalCode'],
|
|
97
|
+
* rebuilding them into the flattened, prefixed fields for the addresses, e.g., `registrationAddress.address` -> `registrationAddressAddress`
|
|
98
|
+
*
|
|
99
|
+
* @param prefix - `registrationAddress` or `operationalAddress`
|
|
100
|
+
* @param trustedFields - trustedFields on legal entity
|
|
101
|
+
* @returns An array of the nested field keys that are trusted
|
|
102
|
+
*/
|
|
103
|
+
var getNestedTrustedFields = (prefix, trustedFields) => {
|
|
104
|
+
if (!trustedFields) return [];
|
|
105
|
+
const flattenedTrustedFields = [];
|
|
106
|
+
for (const trustedField of trustedFields) {
|
|
107
|
+
const [group, field] = trustedField.split(".");
|
|
108
|
+
if (group === prefix && field) flattenedTrustedFields.push(`${prefix}${capitalize(field)}`);
|
|
109
|
+
}
|
|
110
|
+
return flattenedTrustedFields;
|
|
111
|
+
};
|
|
112
|
+
/**
|
|
113
|
+
* Flattens a nested address schema using the provided prefix to avoid collisions so each
|
|
114
|
+
* field can be handled individually.
|
|
115
|
+
*
|
|
116
|
+
* `flattenAddressSchema('registrationAddress', { city: 'Chicago' })` -> `{ registrationAddressCity: 'Chicago' }`
|
|
117
|
+
*/
|
|
118
|
+
function flattenAddressSchema(prefix, address) {
|
|
119
|
+
const flattenedAddressSchema = {};
|
|
120
|
+
for (const field of ALL_ADDRESS_FIELDS) flattenedAddressSchema[`${prefix}${capitalize(field)}`] = address?.[field];
|
|
121
|
+
return flattenedAddressSchema;
|
|
122
|
+
}
|
|
123
|
+
/**
|
|
124
|
+
* Nests a flattened address schema, removing the provided prefix from each field. Used for
|
|
125
|
+
* utilities that still expect nested data.
|
|
126
|
+
*
|
|
127
|
+
* `flattenAddressSchema('registrationAddress', { registrationAddressCity: 'Chicago' })` -> `{ city: 'Chicago' }`
|
|
128
|
+
*/
|
|
129
|
+
function nestAddressSchema(prefix, flatData) {
|
|
130
|
+
const nestedAddressSchema = {};
|
|
131
|
+
for (const field of ALL_ADDRESS_FIELDS) nestedAddressSchema[field] = flatData?.[`${prefix}${capitalize(field)}`];
|
|
132
|
+
return nestedAddressSchema;
|
|
133
|
+
}
|
|
134
|
+
var getPrefixedAddressFieldNames = (prefix) => ALL_ADDRESS_FIELDS.map((field) => `${prefix}${capitalize(field)}`);
|
|
135
|
+
//#endregion
|
|
136
|
+
//#region src/components/Shared/forms/Address/AddressFields.tsx
|
|
137
|
+
function AddressFields({ data = {}, readOnly, hideCountry, fieldValidationErrors, requiredFields, optionalFields = ["street2"], readOnlyFields, trustedFields, errors, valid, handleFieldChange, addressType, condensed }) {
|
|
138
|
+
const { t } = useTranslation("common");
|
|
139
|
+
const formUtils = createFormUtils({
|
|
140
|
+
data,
|
|
141
|
+
labels: getAddressSchemaLabelsByCountry(data.country),
|
|
142
|
+
readOnly,
|
|
143
|
+
requiredFields,
|
|
144
|
+
optionalFields,
|
|
145
|
+
readOnlyFields,
|
|
146
|
+
trustedFields
|
|
147
|
+
}, t);
|
|
148
|
+
const addressFields = getAddressSchemaForCountry(data.country).filter((fieldName) => formUtils.isRequiredField(fieldName) || formUtils.isOptionalField(fieldName));
|
|
149
|
+
const createField = (fieldName) => {
|
|
150
|
+
const hideField = hideCountry && fieldName === "country";
|
|
151
|
+
return /* @__PURE__ */ jsx(AddressField, {
|
|
152
|
+
schema: addressFields,
|
|
153
|
+
data,
|
|
154
|
+
valid: valid ?? {},
|
|
155
|
+
errors: errors ?? {},
|
|
156
|
+
fieldProblems: fieldValidationErrors,
|
|
157
|
+
fieldName,
|
|
158
|
+
maxlength: getMaxLengthByFieldAndCountry(countrySpecificFormatters, fieldName, data.country, true),
|
|
159
|
+
hideField,
|
|
160
|
+
readOnly: formUtils.isReadOnly(fieldName) || formUtils.isTrusted(fieldName),
|
|
161
|
+
optional: formUtils.isOptionalField(fieldName),
|
|
162
|
+
trimOnBlur: true,
|
|
163
|
+
handleChangeFor: handleFieldChange
|
|
164
|
+
}, fieldName);
|
|
165
|
+
};
|
|
166
|
+
if (condensed && data.country) {
|
|
167
|
+
const condensedFields = CONDENSED_ADDRESS_FIELDS[data.country] ?? [];
|
|
168
|
+
switch (data.country) {
|
|
169
|
+
case "US": return /* @__PURE__ */ jsxs("fieldset", {
|
|
170
|
+
"aria-label": t(($) => $[addressType]),
|
|
171
|
+
children: [addressFields.filter((field) => !condensedFields.includes(field)).map((filteredField) => createField(filteredField)), condensedFields.length > 0 && /* @__PURE__ */ jsx("div", {
|
|
172
|
+
className: "adyen-kyc-address__condensed-fields",
|
|
173
|
+
children: condensedFields.map((field) => createField(field))
|
|
174
|
+
})]
|
|
175
|
+
});
|
|
176
|
+
default: return /* @__PURE__ */ jsx("fieldset", {
|
|
177
|
+
"aria-label": t(($) => $[addressType]),
|
|
178
|
+
children: addressFields.map((fieldName) => createField(fieldName))
|
|
179
|
+
});
|
|
180
|
+
}
|
|
181
|
+
}
|
|
182
|
+
return /* @__PURE__ */ jsx("fieldset", {
|
|
183
|
+
"aria-label": t(($) => $[addressType]),
|
|
184
|
+
children: addressFields.map((fieldName) => createField(fieldName))
|
|
185
|
+
});
|
|
186
|
+
}
|
|
187
|
+
//#endregion
|
|
188
|
+
//#region src/utils/useDebouncedState.ts
|
|
189
|
+
/**
|
|
190
|
+
* Like {@link useState}, but waits for the given amount of time before applying *only* the most recent update.
|
|
191
|
+
*
|
|
192
|
+
* @param wait the time to wait, in milliseconds
|
|
193
|
+
* @param initialState (optional) the default value
|
|
194
|
+
*/
|
|
195
|
+
function useDebouncedState(wait, initialState) {
|
|
196
|
+
const [state, _setState] = useState$1(initialState);
|
|
197
|
+
return [state, useDebouncedCallback(_setState, wait)];
|
|
198
|
+
}
|
|
199
|
+
var RegistrationAndOperationalAddressFields_module_default = {
|
|
200
|
+
"section-heading": "_section-heading_nb4mz_1",
|
|
201
|
+
sectionHeading: "_section-heading_nb4mz_1"
|
|
202
|
+
};
|
|
203
|
+
//#endregion
|
|
204
|
+
//#region src/components/Shared/fields/RegistrationAndOperationalAddressFields/RegistrationAndOperationalAddressFields.tsx
|
|
205
|
+
var LazyJpAddressFields = lazy(async () => (await import("./JpAddressFields-DqJ7Am2I.js")).JpAddressFields);
|
|
206
|
+
var REGISTRATION_AND_OPERATIONAL_ADDRESS_FIELDS = [
|
|
207
|
+
"operationalAddressIsSame",
|
|
208
|
+
...getPrefixedAddressFieldNames("registrationAddress"),
|
|
209
|
+
...getPrefixedAddressFieldNames("operationalAddress")
|
|
210
|
+
];
|
|
211
|
+
function RegistrationAndOperationalAddressFields({ country, readOnlyAddressFields, entityType, data, valid, errors, requiredFields, optionalFields, trustedFields, fieldValidationErrors, handleChangeFor, formUtils }) {
|
|
212
|
+
const { t, i18n } = useTranslation("common");
|
|
213
|
+
const { isFeatureEnabled } = useToggleContext();
|
|
214
|
+
const showJapanLocalization = isJapanLocalizationEnabled(isFeatureEnabled, country);
|
|
215
|
+
const showField = (fieldKeys) => fieldKeys.some((field) => formUtils.isRequiredField(field) || formUtils.isOptionalField(field));
|
|
216
|
+
useEffect$1(() => {
|
|
217
|
+
if (data?.registrationAddressCountry !== country) handleChangeFor("registrationAddressCountry")(country);
|
|
218
|
+
if (data?.operationalAddressCountry !== country) handleChangeFor("operationalAddressCountry")(country);
|
|
219
|
+
}, [
|
|
220
|
+
data?.registrationAddressCountry,
|
|
221
|
+
data?.operationalAddressCountry,
|
|
222
|
+
country,
|
|
223
|
+
handleChangeFor
|
|
224
|
+
]);
|
|
225
|
+
const handleOperationalAddressIsSameChange = useCallback$1((isChecked) => {
|
|
226
|
+
handleChangeFor("operationalAddressIsSame")(isChecked);
|
|
227
|
+
}, [handleChangeFor]);
|
|
228
|
+
const handleResidentialAddressIndicatorChange = useCallback$1((isChecked) => handleChangeFor("residentialAddressIndicator")(isChecked), [handleChangeFor]);
|
|
229
|
+
if (data?.operationalAddressIsSame === null) handleOperationalAddressIsSameChange(true);
|
|
230
|
+
const [addressToCheck, setAddressToCheck] = useDebouncedState(500);
|
|
231
|
+
const { data: cleansedRegistrationAddress } = useAddressCleanse({
|
|
232
|
+
text: addressToCheck,
|
|
233
|
+
country
|
|
234
|
+
}, { enabled: Boolean(addressToCheck) });
|
|
235
|
+
const mustProvideOperationalAddress = cleansedRegistrationAddress?.poBox ?? false;
|
|
236
|
+
const currentRegistrationAddress = nestAddressSchema("registrationAddress", data);
|
|
237
|
+
useEffect$1(() => setAddressToCheck(formatAddressForCleanse(currentRegistrationAddress)), [currentRegistrationAddress, setAddressToCheck]);
|
|
238
|
+
useEffect$1(() => {
|
|
239
|
+
if (mustProvideOperationalAddress && data?.operationalAddressIsSame) handleOperationalAddressIsSameChange(false);
|
|
240
|
+
}, [
|
|
241
|
+
handleOperationalAddressIsSameChange,
|
|
242
|
+
mustProvideOperationalAddress,
|
|
243
|
+
data?.operationalAddressIsSame
|
|
244
|
+
]);
|
|
245
|
+
const datasetUtils = datasetUtilities(i18n.language);
|
|
246
|
+
const registrationAddressDescription = useMemo$1(() => {
|
|
247
|
+
const translationKey = prefixCountryNameWithThe(country) ? "theOfficialAddressInTheCountry" : "theOfficialAddressInCountry";
|
|
248
|
+
return t(($) => $[translationKey], {
|
|
249
|
+
entityType,
|
|
250
|
+
country: datasetUtils.getCountryName(country)
|
|
251
|
+
});
|
|
252
|
+
}, [
|
|
253
|
+
entityType,
|
|
254
|
+
country,
|
|
255
|
+
datasetUtils,
|
|
256
|
+
t
|
|
257
|
+
]);
|
|
258
|
+
const formProps = {
|
|
259
|
+
data,
|
|
260
|
+
valid,
|
|
261
|
+
errors,
|
|
262
|
+
requiredFields,
|
|
263
|
+
optionalFields,
|
|
264
|
+
fieldValidationErrors,
|
|
265
|
+
handleFieldChange: handleChangeFor
|
|
266
|
+
};
|
|
267
|
+
const buildJpProps = (prefix) => getPrefixedFieldProps(formProps, prefix, ALL_ADDRESS_FIELDS);
|
|
268
|
+
const buildProps = (prefix) => getPrefixedFieldProps(formProps, prefix, addressFields);
|
|
269
|
+
const addressFieldProps = showJapanLocalization ? {
|
|
270
|
+
showJapanLocalization: true,
|
|
271
|
+
registrationAddress: buildJpProps("registrationAddress"),
|
|
272
|
+
operationalAddress: buildJpProps("operationalAddress")
|
|
273
|
+
} : {
|
|
274
|
+
showJapanLocalization: false,
|
|
275
|
+
registrationAddress: buildProps("registrationAddress"),
|
|
276
|
+
operationalAddress: buildProps("operationalAddress")
|
|
277
|
+
};
|
|
278
|
+
return /* @__PURE__ */ jsxs(Fragment$1, { children: [/* @__PURE__ */ jsxs("section", { children: [
|
|
279
|
+
/* @__PURE__ */ jsxs("div", {
|
|
280
|
+
className: RegistrationAndOperationalAddressFields_module_default.sectionHeading,
|
|
281
|
+
children: [/* @__PURE__ */ jsx(Typography, {
|
|
282
|
+
el: "h3",
|
|
283
|
+
variant: "title",
|
|
284
|
+
children: t(($) => $["registeredBusinessAddress"])
|
|
285
|
+
}), /* @__PURE__ */ jsx(Typography, {
|
|
286
|
+
el: "p",
|
|
287
|
+
variant: "body",
|
|
288
|
+
children: registrationAddressDescription
|
|
289
|
+
})]
|
|
290
|
+
}),
|
|
291
|
+
addressFieldProps.showJapanLocalization ? /* @__PURE__ */ jsx(Suspense, {
|
|
292
|
+
fallback: /* @__PURE__ */ jsx(Loader, {}),
|
|
293
|
+
children: /* @__PURE__ */ jsx(LazyJpAddressFields, {
|
|
294
|
+
...addressFieldProps.registrationAddress,
|
|
295
|
+
addressType: "registrationAddress"
|
|
296
|
+
})
|
|
297
|
+
}) : /* @__PURE__ */ jsx(AddressFields, {
|
|
298
|
+
...addressFieldProps.registrationAddress,
|
|
299
|
+
addressType: "registrationAddress",
|
|
300
|
+
readOnlyFields: readOnlyAddressFields,
|
|
301
|
+
trustedFields: getNestedTrustedFields("registrationAddress", trustedFields),
|
|
302
|
+
hideCountry: true,
|
|
303
|
+
condensed: true
|
|
304
|
+
}),
|
|
305
|
+
showField(["residentialAddressIndicator"]) && /* @__PURE__ */ jsx(Field, {
|
|
306
|
+
el: "fieldset",
|
|
307
|
+
name: "residentialAddressIndicator",
|
|
308
|
+
errorMessage: formatValidationError(errors?.residentialAddressIndicator?.errorMessage, t),
|
|
309
|
+
isValid: valid?.residentialAddressIndicator,
|
|
310
|
+
children: (childProps) => /* @__PURE__ */ jsx(Checkbox, {
|
|
311
|
+
...childProps,
|
|
312
|
+
name: "residentialAddressIndicator",
|
|
313
|
+
label: t(($) => $["thisIsAPersonalAddress"]),
|
|
314
|
+
helper: t(($) => $["businessAddressesCanShowOwnReceipts"]),
|
|
315
|
+
checked: !!data?.residentialAddressIndicator,
|
|
316
|
+
onChange: handleResidentialAddressIndicatorChange
|
|
317
|
+
})
|
|
318
|
+
})
|
|
319
|
+
] }), /* @__PURE__ */ jsxs("section", { children: [
|
|
320
|
+
/* @__PURE__ */ jsxs("div", {
|
|
321
|
+
className: RegistrationAndOperationalAddressFields_module_default.sectionHeading,
|
|
322
|
+
children: [/* @__PURE__ */ jsx(Typography, {
|
|
323
|
+
el: "h3",
|
|
324
|
+
variant: "title",
|
|
325
|
+
children: t(($) => $["principalPlaceOfBusiness"])
|
|
326
|
+
}), /* @__PURE__ */ jsx(Typography, {
|
|
327
|
+
el: "p",
|
|
328
|
+
variant: "body",
|
|
329
|
+
children: t(($) => $["thePhysicalLocationWhereThisOrganization"])
|
|
330
|
+
})]
|
|
331
|
+
}),
|
|
332
|
+
!mustProvideOperationalAddress && /* @__PURE__ */ jsx(Field, {
|
|
333
|
+
el: "fieldset",
|
|
334
|
+
name: "operationalAddressIsSame",
|
|
335
|
+
errorMessage: formatValidationError(errors?.operationalAddressIsSame?.errorMessage, t),
|
|
336
|
+
isValid: valid?.operationalAddressIsSame,
|
|
337
|
+
children: (childProps) => /* @__PURE__ */ jsx(Checkbox, {
|
|
338
|
+
...childProps,
|
|
339
|
+
"aria-required": formUtils.isRequiredField("operationalAddressIsSame"),
|
|
340
|
+
"aria-invalid": !valid?.operationalAddressIsSame,
|
|
341
|
+
name: "operationalAddressIsSame",
|
|
342
|
+
label: t(($) => $["sameAsRegisteredAddress"]),
|
|
343
|
+
checked: !!data?.operationalAddressIsSame,
|
|
344
|
+
onChange: handleOperationalAddressIsSameChange
|
|
345
|
+
})
|
|
346
|
+
}),
|
|
347
|
+
!data?.operationalAddressIsSame && (addressFieldProps.showJapanLocalization ? /* @__PURE__ */ jsx(Suspense, {
|
|
348
|
+
fallback: /* @__PURE__ */ jsx(Loader, {}),
|
|
349
|
+
children: /* @__PURE__ */ jsx(LazyJpAddressFields, {
|
|
350
|
+
...addressFieldProps.operationalAddress,
|
|
351
|
+
addressType: "operationalAddress"
|
|
352
|
+
})
|
|
353
|
+
}) : /* @__PURE__ */ jsx(AddressFields, {
|
|
354
|
+
...addressFieldProps.operationalAddress,
|
|
355
|
+
addressType: "operationalAddress",
|
|
356
|
+
trustedFields: getNestedTrustedFields("operationalAddress", trustedFields),
|
|
357
|
+
hideCountry: true,
|
|
358
|
+
condensed: true
|
|
359
|
+
}))
|
|
360
|
+
] })] });
|
|
361
|
+
}
|
|
362
|
+
//#endregion
|
|
80
363
|
//#region src/components/Shared/fields/VatNumberField/fieldConfig.ts
|
|
81
364
|
var vatAbsenceReasonMetadata = { validators: [validateNotEmptyOnBlur] };
|
|
82
365
|
var defaultFieldMetadata = { label: "vatNumber" };
|
|
@@ -1081,39 +1364,4 @@ function BusinessRegistrationNumberField({ data, valid, errors, helperText, read
|
|
|
1081
1364
|
] });
|
|
1082
1365
|
}
|
|
1083
1366
|
//#endregion
|
|
1084
|
-
|
|
1085
|
-
var countryToTaxInfoTypeMap = {
|
|
1086
|
-
US: "EIN",
|
|
1087
|
-
AU: "ABN",
|
|
1088
|
-
NZ: "IRD",
|
|
1089
|
-
HK: "BRN",
|
|
1090
|
-
SG: "GST"
|
|
1091
|
-
};
|
|
1092
|
-
var isFinancialInformationRequired = (isFinancialInformationFeatureEnabled, taskType, country, capabilities, legalEntityType) => {
|
|
1093
|
-
const isOrganization = legalEntityType === LegalEntityTypes.ORGANIZATION;
|
|
1094
|
-
if (!isFinancialInformationFeatureEnabled || !COUNTRIES_REQUIRING_FINANCIAL_INFORMATION.includes(country)) return;
|
|
1095
|
-
if (country === CountryCodes.UnitedKingdom && (taskType === TaskTypes.SOLE_PROPRIETOR_COMPANY || taskType === TaskTypes.BUSINESS_DETAILS)) return "REQUIRED";
|
|
1096
|
-
if (taskType === TaskTypes.BUSINESS_DETAILS && isOrganization) {
|
|
1097
|
-
if (keysOf(capabilities ?? {}).some((capability) => capability === "issueBankAccount")) return "REQUIRED";
|
|
1098
|
-
}
|
|
1099
|
-
};
|
|
1100
|
-
var getCountryOfGoverningLaw = (isCountryOfGoverningLawEnabled, basicData) => {
|
|
1101
|
-
if (!isCountryOfGoverningLawEnabled || basicData?.country !== CountryCodes.UnitedKingdom) return;
|
|
1102
|
-
return !basicData.countryOfGoverningLaw ? CountryCodes.UnitedKingdom : basicData.countryOfGoverningLaw;
|
|
1103
|
-
};
|
|
1104
|
-
/**
|
|
1105
|
-
* Checks if a country allows registration number exemption for business details.
|
|
1106
|
-
*
|
|
1107
|
-
* @param country The country code to check.
|
|
1108
|
-
* @returns True if the country allows registration number exemption, false otherwise.
|
|
1109
|
-
*/
|
|
1110
|
-
var isRegistrationExemptionAllowed = (country) => country in REGISTRATION_NUMBER_EXEMPTION_RULES;
|
|
1111
|
-
var isRegistrationNumberAbsentStateV4Scenario = (country, entityType) => {
|
|
1112
|
-
return country === CountryCodes.Australia && (entityType === CompanyTypesValues.GOVERNMENTAL_ORGANIZATION || entityType === CompanyTypesValues.INCORPORATED_PARTNERSHIP) || country === CountryCodes.NewZealand;
|
|
1113
|
-
};
|
|
1114
|
-
var isUsingCompanySearch = (country, taskType) => {
|
|
1115
|
-
if (taskType !== TaskTypes.BUSINESS_DETAILS) return false;
|
|
1116
|
-
return COUNTRIES_USING_COMPANY_SEARCH.includes(country);
|
|
1117
|
-
};
|
|
1118
|
-
//#endregion
|
|
1119
|
-
export { doingBusinessAsFieldMetadata as _, isRegistrationNumberAbsentStateV4Scenario as a, BusinessRegistrationNumberField as c, VatNumberField as d, getDefaultVatNumberType as f, doingBusinessAsAbsentFieldMetadata as g, vatAbsenceReasonMetadata as h, isRegistrationExemptionAllowed as i, MemoizedConstitutionalDocument as l, defaultFieldMetadata as m, getCountryOfGoverningLaw as n, isUsingCompanySearch as o, defaultFieldConfig as p, isFinancialInformationRequired as r, BUSINESS_REGISTRATION_NUMBER_FIELD as s, countryToTaxInfoTypeMap as t, VAT_NUMBER_FIELD as u, DBANameField as v, DBA_NAME_FIELD as y };
|
|
1367
|
+
export { DBA_NAME_FIELD as _, VatNumberField as a, defaultFieldMetadata as c, RegistrationAndOperationalAddressFields as d, flattenAddressSchema as f, DBANameField as g, doingBusinessAsFieldMetadata as h, VAT_NUMBER_FIELD as i, vatAbsenceReasonMetadata as l, doingBusinessAsAbsentFieldMetadata as m, BusinessRegistrationNumberField as n, getDefaultVatNumberType as o, nestAddressSchema as p, MemoizedConstitutionalDocument as r, defaultFieldConfig as s, BUSINESS_REGISTRATION_NUMBER_FIELD as t, REGISTRATION_AND_OPERATIONAL_ADDRESS_FIELDS as u };
|
package/dist/{BusinessTypeSelectionPage-CKrWo9e-.js → BusinessTypeSelectionPage-CyMTri8M.js}
RENAMED
|
@@ -1,23 +1,24 @@
|
|
|
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] = "614f739f-3c4d-40d9-8da7-874846fc6f28", e._sentryDebugIdIdentifier = "sentry-dbid-614f739f-3c4d-40d9-8da7-874846fc6f28");
|
|
4
4
|
} catch (e) {}
|
|
5
|
-
import { i as Typography, o as createLogger, r as useTranslation } from "./translation-
|
|
6
|
-
import { ft as useAccountHolder } from "./resolveEnvironment-
|
|
7
|
-
import { r as Loader, t as Button } from "./Button-
|
|
8
|
-
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 { ft as useAccountHolder } from "./resolveEnvironment-df20S4SQ.js";
|
|
7
|
+
import { r as Loader, t as Button } from "./Button-Cm7cT6BX.js";
|
|
8
|
+
import { r as useLegalEntity, t as ROOT_LE } from "./useLegalEntity-DR51Q4mE.js";
|
|
9
9
|
import { t as LegalEntityTypes } from "./legal-entity-type-0MfCGzUf.js";
|
|
10
10
|
import { t as getLegalEntityCountry } from "./getLegalEntityCountry-BHh7Ux8v.js";
|
|
11
|
-
import { t as getCapabilities } from "./processCapabilities-
|
|
12
|
-
import { i as useAnalyticsContext } from "./Modal-
|
|
13
|
-
import { r as useToastContext } from "./useId-
|
|
14
|
-
import { c as TileGroup } from "./bafinUtils-
|
|
15
|
-
import {
|
|
16
|
-
import { t as useUpdateLegalEntity } from "./useUpdateLegalEntity-
|
|
17
|
-
import { t as useTaskLandedEvent } from "./useTaskLandedEvent-
|
|
18
|
-
import { t as useForm } from "./useForm-
|
|
11
|
+
import { t as getCapabilities } from "./processCapabilities-BSpmJOEd.js";
|
|
12
|
+
import { i as useAnalyticsContext } from "./Modal-nylR9F4X.js";
|
|
13
|
+
import { r as useToastContext } from "./useId-po-YSdTw.js";
|
|
14
|
+
import { c as TileGroup } from "./bafinUtils-vdTD2Ec5.js";
|
|
15
|
+
import { p as LoaderWrapper, r as Field } from "./Select-B5Mo0Bpw.js";
|
|
16
|
+
import { t as useUpdateLegalEntity } from "./useUpdateLegalEntity-CH4xp654.js";
|
|
17
|
+
import { t as useTaskLandedEvent } from "./useTaskLandedEvent-C7fcguXK.js";
|
|
18
|
+
import { t as useForm } from "./useForm-BLP36oqX.js";
|
|
19
|
+
import { t as formatValidationError } from "./formatValidationError-CZ5MeYBS.js";
|
|
19
20
|
import { t as Spacer } from "./Spacer-CEHRO4Ml.js";
|
|
20
|
-
import { a as getTargetLegalEntityType, c as useSelectionOptions, i as getDefaultLegalArrangementOrSuborganizationType, n as determineOrganizationTypeToUpdate, o as legalArrangementMetadata, r as getBusinessType, t as businessTypeIcons } from "./utils-
|
|
21
|
+
import { a as getTargetLegalEntityType, c as useSelectionOptions, i as getDefaultLegalArrangementOrSuborganizationType, n as determineOrganizationTypeToUpdate, o as legalArrangementMetadata, r as getBusinessType, t as businessTypeIcons } from "./utils-Di84CxrF.js";
|
|
21
22
|
import { useEffect, useState } from "preact/hooks";
|
|
22
23
|
import { Fragment, jsx, jsxs } from "preact/jsx-runtime";
|
|
23
24
|
//#region src/datasets/generators/getBusinessTypeExamplesForCountry.ts
|
|
@@ -328,7 +329,7 @@ var BusinessTypeSelection = ({ rootLegalEntity, onComplete, onBack }) => {
|
|
|
328
329
|
currentStep === BusinessTypeSelectionSteps.BUSINESS_TYPE_SELECTION && /* @__PURE__ */ jsx(Field, {
|
|
329
330
|
el: "fieldset",
|
|
330
331
|
name: "businessType",
|
|
331
|
-
errorMessage: errors.businessType?.errorMessage,
|
|
332
|
+
errorMessage: formatValidationError(errors.businessType?.errorMessage, t),
|
|
332
333
|
showErrorIconBottom: true,
|
|
333
334
|
isValid: valid.businessType,
|
|
334
335
|
children: (childProps) => /* @__PURE__ */ jsx(TileGroup, {
|
|
@@ -343,7 +344,7 @@ var BusinessTypeSelection = ({ rootLegalEntity, onComplete, onBack }) => {
|
|
|
343
344
|
currentStep === BusinessTypeSelectionSteps.LEGAL_ARRANGEMENT_SELECTION && /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsx(Field, {
|
|
344
345
|
name: "legalArrangement",
|
|
345
346
|
el: "fieldset",
|
|
346
|
-
errorMessage: errors.legalArrangement?.errorMessage,
|
|
347
|
+
errorMessage: formatValidationError(errors.legalArrangement?.errorMessage, t),
|
|
347
348
|
showErrorIconBottom: true,
|
|
348
349
|
isValid: valid.legalArrangement,
|
|
349
350
|
children: (childProps) => /* @__PURE__ */ jsx(TileGroup, {
|
|
@@ -373,7 +374,7 @@ var BusinessTypeSelection = ({ rootLegalEntity, onComplete, onBack }) => {
|
|
|
373
374
|
label: t(($) => $[isTrust ? "whatTypeOfTrusteeAreYou" : "whatTypeOfPartnershipAreYou"]),
|
|
374
375
|
helper: isUnincorporatedPartnership ? t(($) => $["whatTypeOfPartnershipAreYouGuidance"]) : void 0,
|
|
375
376
|
className: "u-margin-top-32",
|
|
376
|
-
errorMessage: errors.trusteeType?.errorMessage,
|
|
377
|
+
errorMessage: formatValidationError(errors.trusteeType?.errorMessage, t),
|
|
377
378
|
showErrorIconBottom: true,
|
|
378
379
|
isValid: valid.trusteeType,
|
|
379
380
|
children: (childProps) => /* @__PURE__ */ jsx(TileGroup, {
|
|
@@ -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] = "4472c2f7-a4d0-4e03-9801-71e5f9ca14ae", e._sentryDebugIdIdentifier = "sentry-dbid-4472c2f7-a4d0-4e03-9801-71e5f9ca14ae");
|
|
4
4
|
} catch (e) {}
|
|
5
|
-
import { a as Icon, i as Typography, r as useTranslation } from "./translation-
|
|
5
|
+
import { a as Icon, i as Typography, r as useTranslation } from "./translation-DH4IlMCP.js";
|
|
6
6
|
import { useLayoutEffect } from "preact/hooks";
|
|
7
7
|
import cx from "classnames";
|
|
8
8
|
import { jsx, jsxs } from "preact/jsx-runtime";
|
|
@@ -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] = "94073604-d7b1-44c1-9b06-f6eb2c5e6b49", e._sentryDebugIdIdentifier = "sentry-dbid-94073604-d7b1-44c1-9b06-f6eb2c5e6b49");
|
|
4
4
|
} catch (e) {}
|
|
5
|
-
import { i as useAnalyticsContext } from "./Modal-
|
|
5
|
+
import { i as useAnalyticsContext } from "./Modal-nylR9F4X.js";
|
|
6
6
|
import { useCallback, useEffect, useRef } from "preact/hooks";
|
|
7
7
|
import cx from "classnames";
|
|
8
8
|
import { Fragment, jsx, jsxs } from "preact/jsx-runtime";
|
|
@@ -1,15 +1,15 @@
|
|
|
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] = "1c5fc0da-8126-4ca5-b834-83a223c3e0da", e._sentryDebugIdIdentifier = "sentry-dbid-1c5fc0da-8126-4ca5-b834-83a223c3e0da");
|
|
4
4
|
} catch (e) {}
|
|
5
|
-
import { r as useTranslation } from "./translation-
|
|
5
|
+
import { r as useTranslation } from "./translation-DH4IlMCP.js";
|
|
6
6
|
import { t as CountryCodes } from "./country-code-CJk2hdPu.js";
|
|
7
|
-
import { l as CompanyTypesValues } from "./bafinUtils-
|
|
8
|
-
import { r as Field } from "./Select-
|
|
9
|
-
import { l as numericInputs, s as makeMask, u as spacer } from "./MaskedInput-
|
|
10
|
-
import { a as validateNotEmptyOnBlur, o as validatePatternOnBlur } from "./patternValidators-
|
|
11
|
-
import { M as businessRegistrationNumberMasks, N as stateFormatGuidanceText, j as businessRegistrationNumberPatterns } from "./utils-
|
|
12
|
-
import { t as RadioGroup } from "./RadioGroup-
|
|
7
|
+
import { l as CompanyTypesValues } from "./bafinUtils-vdTD2Ec5.js";
|
|
8
|
+
import { r as Field } from "./Select-B5Mo0Bpw.js";
|
|
9
|
+
import { l as numericInputs, s as makeMask, u as spacer } from "./MaskedInput-BZLm8L47.js";
|
|
10
|
+
import { a as validateNotEmptyOnBlur, o as validatePatternOnBlur } from "./patternValidators-tRq-KPvW.js";
|
|
11
|
+
import { M as businessRegistrationNumberMasks, N as stateFormatGuidanceText, j as businessRegistrationNumberPatterns } from "./utils-BbBPfcNK.js";
|
|
12
|
+
import { t as RadioGroup } from "./RadioGroup-BUwhfue7.js";
|
|
13
13
|
import { useCallback, useEffect, useMemo } from "preact/hooks";
|
|
14
14
|
import { jsx } from "preact/jsx-runtime";
|
|
15
15
|
//#region src/components/Shared/fields/BusinessRegistrationNumberField/fieldConfig.ts
|
|
@@ -1,15 +1,15 @@
|
|
|
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] = "69e65963-de83-4fba-b2db-cc314d41d4e1", e._sentryDebugIdIdentifier = "sentry-dbid-69e65963-de83-4fba-b2db-cc314d41d4e1");
|
|
4
4
|
} catch (e) {}
|
|
5
|
-
import { r as useTranslation } from "./translation-
|
|
6
|
-
import { C as useDataset, k as Header, nt as isEmpty, w as datasetIdentifier } from "./resolveEnvironment-
|
|
7
|
-
import { r as httpPost, s as useApiContext } from "./http-
|
|
5
|
+
import { r as useTranslation } from "./translation-DH4IlMCP.js";
|
|
6
|
+
import { C as useDataset, k as Header, nt as isEmpty, w as datasetIdentifier } from "./resolveEnvironment-df20S4SQ.js";
|
|
7
|
+
import { r as httpPost, s as useApiContext } from "./http-D6AdUBhO.js";
|
|
8
8
|
import { s as entriesOf } from "./AnalyticsContext-BnRQ9H1u.js";
|
|
9
9
|
import { t as CountryCodes } from "./country-code-CJk2hdPu.js";
|
|
10
|
-
import { r as Field, t as Select } from "./Select-
|
|
11
|
-
import { b as createFormUtils, x as mergeFieldMetadataIntoProps } from "./CountryField-
|
|
12
|
-
import { c as nonInputs, l as numericInputs, n as InputEmail, s as makeMask, t as MaskedInput, u as spacer } from "./MaskedInput-
|
|
10
|
+
import { r as Field, t as Select } from "./Select-B5Mo0Bpw.js";
|
|
11
|
+
import { b as createFormUtils, x as mergeFieldMetadataIntoProps } from "./CountryField-DQnWXgAu.js";
|
|
12
|
+
import { c as nonInputs, l as numericInputs, n as InputEmail, s as makeMask, t as MaskedInput, u as spacer } from "./MaskedInput-BZLm8L47.js";
|
|
13
13
|
import { n as emailPattern } from "./basePatterns-plHFNzgJ.js";
|
|
14
14
|
import { t as resolveFieldMetadata } from "./fieldConfigurations-CZCFghnK.js";
|
|
15
15
|
import { t as InputGroup } from "./InputGroup-B4U3QVEp.js";
|
|
@@ -2,8 +2,8 @@ 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] = "d5da8859-9632-4657-931c-9316f8fa78d1", e._sentryDebugIdIdentifier = "sentry-dbid-d5da8859-9632-4657-931c-9316f8fa78d1");
|
|
4
4
|
} catch (e) {}
|
|
5
|
-
import { x as Alert } from "./resolveEnvironment-
|
|
6
|
-
import { i as useAnalyticsContext } from "./Modal-
|
|
5
|
+
import { x as Alert } from "./resolveEnvironment-df20S4SQ.js";
|
|
6
|
+
import { i as useAnalyticsContext } from "./Modal-nylR9F4X.js";
|
|
7
7
|
import { jsx } from "preact/jsx-runtime";
|
|
8
8
|
//#region src/components/ui/molecules/ContextGuidance/ContextGuidance.tsx
|
|
9
9
|
function ContextGuidance({ title, content, titleId, contentId, trackingParams }) {
|
|
@@ -1,20 +1,20 @@
|
|
|
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] = "b14e4aac-7627-40c9-b7d8-0d3ee5bc87e3", e._sentryDebugIdIdentifier = "sentry-dbid-b14e4aac-7627-40c9-b7d8-0d3ee5bc87e3");
|
|
4
4
|
} catch (e) {}
|
|
5
|
-
import { o as createLogger, r as useTranslation } from "./translation-
|
|
6
|
-
import { C as useDataset, k as Header, nt as isEmpty, w as datasetIdentifier } from "./resolveEnvironment-
|
|
7
|
-
import { n as IconButton, t as Button } from "./Button-
|
|
5
|
+
import { o as createLogger, r as useTranslation } from "./translation-DH4IlMCP.js";
|
|
6
|
+
import { C as useDataset, k as Header, nt as isEmpty, w as datasetIdentifier } from "./resolveEnvironment-df20S4SQ.js";
|
|
7
|
+
import { n as IconButton, t as Button } from "./Button-Cm7cT6BX.js";
|
|
8
8
|
import { o as objectsDeepEqual, s as entriesOf } from "./AnalyticsContext-BnRQ9H1u.js";
|
|
9
9
|
import { t as DecisionMakerTypes } from "./decision-maker-type-NR4GFAeT.js";
|
|
10
10
|
import { n as TrustMemberGuidanceLabels, r as TrustMemberTypes } from "./trustMemberGuidance-CgdU2v0j.js";
|
|
11
|
-
import { i as useAnalyticsContext } from "./Modal-
|
|
11
|
+
import { i as useAnalyticsContext } from "./Modal-nylR9F4X.js";
|
|
12
12
|
import { t as formDebugInfo } from "./debugStore-DpSgCNGn.js";
|
|
13
|
-
import { a as MaybeModal, c as getDataByFields, d as
|
|
14
|
-
import { n as Confirm, t as StructuredList } from "./StructuredList-
|
|
15
|
-
import { t as Image } from "./Image-
|
|
13
|
+
import { a as MaybeModal, c as getDataByFields, d as isTranslationObject, f as translateTranslatable, i as ProgressBar, l as omitKeys, o as ValidationResult, p as LoaderWrapper, r as Field, s as addKeys, t as Select } from "./Select-B5Mo0Bpw.js";
|
|
14
|
+
import { n as Confirm, t as StructuredList } from "./StructuredList-DR8Fb1tc.js";
|
|
15
|
+
import { t as Image } from "./Image-8SOcICah.js";
|
|
16
16
|
import { t as List } from "./List-ywoRPg-q.js";
|
|
17
|
-
import { r as FormRouterContext, t as ErrorPanel } from "./ErrorPanel-
|
|
17
|
+
import { r as FormRouterContext, t as ErrorPanel } from "./ErrorPanel-C2hG0lLe.js";
|
|
18
18
|
import { t as UnincorporatedPartnershipMemberTypes } from "./unincorporated-partnership-DNTK5Y_5.js";
|
|
19
19
|
import { lazy } from "preact/compat";
|
|
20
20
|
import { useCallback as useCallback$1, useContext as useContext$1, useEffect as useEffect$1, useMemo as useMemo$1, useReducer, useRef as useRef$1, useState as useState$1 } from "preact/hooks";
|
|
@@ -80,7 +80,12 @@ var createFormUtils = (props, t) => ({
|
|
|
80
80
|
isObscured: (field) => props.obscuredFields ? props.obscuredFields.includes(field) : false,
|
|
81
81
|
isTrusted: (field) => props.trustedFields ? props.trustedFields.includes(field) : false,
|
|
82
82
|
getErrorMessage: (field, errors, fieldProblems) => {
|
|
83
|
-
|
|
83
|
+
const errorMessage = errors?.[field]?.errorMessage;
|
|
84
|
+
if (!(!!errorMessage || Boolean(fieldProblems?.[field]))) return;
|
|
85
|
+
return {
|
|
86
|
+
key: (isTranslationObject(errorMessage) ? errorMessage.key : errorMessage) || "invalid",
|
|
87
|
+
message: translateTranslatable(t, errorMessage)
|
|
88
|
+
};
|
|
84
89
|
},
|
|
85
90
|
getFieldData: (formData, fieldKeys) => getDataByFields(formData, fieldKeys),
|
|
86
91
|
getFieldValid: (formValid, fieldKeys) => entriesOf(formValid).reduce((acc, [key, val]) => fieldKeys.includes(key) ? {
|
|
@@ -88,17 +93,17 @@ var createFormUtils = (props, t) => ({
|
|
|
88
93
|
[key]: val
|
|
89
94
|
} : acc, {}),
|
|
90
95
|
getFieldErrors: (formErrors, fieldProblems, fieldKeys) => Object.keys(formErrors).reduce((acc, key) => {
|
|
91
|
-
if (fieldKeys.includes(key))
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
96
|
+
if (!fieldKeys.includes(key)) return acc;
|
|
97
|
+
const error = formErrors?.[key]?.errorMessage;
|
|
98
|
+
if (!(!!error || Boolean(fieldProblems?.[key]))) return acc;
|
|
99
|
+
const errorKey = isTranslationObject(error) ? error.key : error;
|
|
100
|
+
return {
|
|
101
|
+
...acc,
|
|
102
|
+
[key]: {
|
|
103
|
+
key: errorKey || "invalid",
|
|
104
|
+
message: translateTranslatable(t, error)
|
|
105
|
+
}
|
|
106
|
+
};
|
|
102
107
|
}, {}),
|
|
103
108
|
getFieldLabels: (fieldKeys, fallbackLabelKeys) => fieldKeys.reduce((acc, field) => {
|
|
104
109
|
let translationKey = props.labels?.[field] ?? fallbackLabelKeys?.[field] ?? field;
|