@adyen/kyc-components 4.19.1 → 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.
Files changed (320) hide show
  1. package/dist/{Accordion-BnhH5-eC.js → Accordion-BWdAGMRb.js} +1 -1
  2. package/dist/{AccountSetupRejected-BGB8hSYN.js → AccountSetupRejected-N5q1VKpW.js} +2 -2
  3. package/dist/AdaptiveWorkflow-C8N4ayEt.js +5112 -0
  4. package/dist/{AdaptiveWorkflowComponent-BOncR2kZ.js → AdaptiveWorkflowComponent-CEMgH36B.js} +36 -36
  5. package/dist/{Address-B_QN7vdN.js → Address-DQlehM6f.js} +8 -7
  6. package/dist/{AddressField-08w6MaYb.js → AddressField-BnboPpBe.js} +12 -253
  7. package/dist/{Avatar-Y_RdG_YY.js → Avatar-CeZIQS8n.js} +1 -1
  8. package/dist/{BusinessFinancingDropin-ndYk8iAQ.js → BusinessFinancingDropin-CFKrcdPb.js} +33 -32
  9. package/dist/{BusinessFinancingPage-DK_ijiz0.js → BusinessFinancingPage-DIrEOTbn.js} +33 -33
  10. package/dist/{utils-CLsECypA.js → BusinessRegistrationNumberField-DGBqMCwU.js} +301 -53
  11. package/dist/{BusinessTypeSelectionPage-C4CrQQZp.js → BusinessTypeSelectionPage-CyMTri8M.js} +18 -17
  12. package/dist/{Button-BuhgDsyo.js → Button-Cm7cT6BX.js} +1 -1
  13. package/dist/{Checkbox-CFN5ywvv.js → Checkbox-faFUul66.js} +1 -1
  14. package/dist/{CompanyRegistrationNumberTypeSelector-DYJ2XeCC.js → CompanyRegistrationNumberTypeSelector-KkPiHDQk.js} +8 -8
  15. package/dist/{ContactDetails-BBVQtkU_.js → ContactDetails-CQZ7kMSU.js} +7 -7
  16. package/dist/{ContextGuidance-BBQsTVLG.js → ContextGuidance-CpLYhcU8.js} +2 -2
  17. package/dist/{CountryField-uue7DBeg.js → CountryField-DQnWXgAu.js} +26 -21
  18. package/dist/{Currency-Chq-e9bU.js → Currency-DJTE2WJJ.js} +8 -59
  19. package/dist/{CustomerSupport-DEiWGRjz.js → CustomerSupport-BkE-Ej6L.js} +14 -14
  20. package/dist/{DataConflictsModal-BrGRGVYC.js → DataConflictsModal-BhZpZhFP.js} +7 -7
  21. package/dist/{DebugModal-abFf-6Vt.js → DebugModal-C_O14NUN.js} +10 -10
  22. package/dist/{DecisionMakerDetails-DcXca6HU.js → DecisionMakerDetails-BZEv2fPu.js} +17 -17
  23. package/dist/{DecisionMakerDetailsPage-DJ51iD7A.js → DecisionMakerDetailsPage-DhCtiSzf.js} +12 -12
  24. package/dist/{DecisionMakers-k4HO0MWG.js → DecisionMakers-BPLn2iHA.js} +18 -18
  25. package/dist/{Dropzone-CvQDmVPr.js → Dropzone-DAvxNuAu.js} +7 -7
  26. package/dist/{EmbeddedStatus-sHJnhw3K.js → EmbeddedStatus-uz3Ivsyw.js} +4 -4
  27. package/dist/{EndStateLayout-CddZpAGD.js → EndStateLayout-BUK64Vqu.js} +2 -2
  28. package/dist/{EntityAssociation-zFxGuJvi.js → EntityAssociation-CBbcX-5M.js} +7 -7
  29. package/dist/{ErrorPanel-CCn1oJPR.js → ErrorPanel-C2hG0lLe.js} +4 -4
  30. package/dist/GlobalEntryModal-cQF6Bfim.js +353 -0
  31. package/dist/{GlobalEntryPage-DEhiUBgp.js → GlobalEntryPage-C6OnSwBj.js} +10 -10
  32. package/dist/{Image-Dc5Xg1_Y.js → Image-8SOcICah.js} +1 -1
  33. package/dist/{Individual.rules-CC9Eyoct.js → Individual.rules-D1Mmr7tv.js} +7 -11
  34. package/dist/{IndividualDropin-bKaThfzK.js → IndividualDropin-KG_mOjri.js} +64 -67
  35. package/dist/{InputDate-Cp2ga0F5.js → InputDate-DDVX2D-5.js} +2 -2
  36. package/dist/{InputText-CRkApOKK.js → InputText-Cf9ccCaj.js} +5 -5
  37. package/dist/{Introduction-BONXNscX.js → Introduction-Dsy_e4OL.js} +8 -8
  38. package/dist/{InvitedDecisionMakerComponent-DqD7d-N0.js → InvitedDecisionMakerComponent-Bzj7Szw8.js} +41 -41
  39. package/dist/{JpAddress-Bdm7sjAt.js → JpAddress-CMYhw2Zl.js} +19 -17
  40. package/dist/{JpAddress.module-CoDcokRL.js → JpAddress.module-CiY5uzmL.js} +4 -4
  41. package/dist/{JpAddressFields-b817uuhw.js → JpAddressFields-DqJ7Am2I.js} +15 -14
  42. package/dist/{LegalCompanyNameField-1zyIWSU7.js → LegalCompanyNameField-DGdSduXu.js} +5 -5
  43. package/dist/{LegalRepresentativeDetailsPage-75U_fxIM.js → LegalRepresentativeDetailsPage-DODrlxF0.js} +8 -8
  44. package/dist/{Link-PH3F7iTO.js → Link-B7RA2gSt.js} +1 -1
  45. package/dist/{ListItem-B-gDVdRO.js → ListItem-Cy46BXUv.js} +27 -4
  46. package/dist/{MaskedInput-BpgT8ais.js → MaskedInput-BZLm8L47.js} +11 -11
  47. package/dist/{Modal-BYdlsXkf.js → Modal-nylR9F4X.js} +1 -1
  48. package/dist/{Name-B9VfIoGy.js → Name-C0ti1xY6.js} +5 -5
  49. package/dist/{NewSummary-DtUQzQfp.js → NewSummary-DDwQJV7w.js} +6 -6
  50. package/dist/{PatriotActDisclosure-DO1km-aw.js → PatriotActDisclosure-CB0N3iIz.js} +15 -15
  51. package/dist/{PayoutDetailsDropin-DeSQiWmr.js → PayoutDetailsDropin-9LoGCmko.js} +187 -135
  52. package/dist/{PayoutDetailsPage-CdAXxyMl.js → PayoutDetailsPage-DV8fIktn.js} +10 -10
  53. package/dist/{RadioGroup-B9MFxAgn.js → RadioGroup-BUwhfue7.js} +3 -3
  54. package/dist/{Review-Ce8kWuwf.js → Review-C2JLh6M0.js} +8 -8
  55. package/dist/{RootBusinessDetailsPage-W2nhUOOs.js → RootBusinessDetailsPage-D-T5SbYt.js} +9 -9
  56. package/dist/{RootBusinessLinesPage-cZsTzIu_.js → RootBusinessLinesPage-BZNLFGSY.js} +30 -30
  57. package/dist/{RootIndividualDetailsPage-NoOigAbF.js → RootIndividualDetailsPage-wO9DNKWn.js} +9 -9
  58. package/dist/{Select-yOtg-61e.js → Select-B5Mo0Bpw.js} +12 -13
  59. package/dist/{SignPCIComponent-Djf7vjw5.js → SignPCIComponent-CZmCa0AY.js} +56 -54
  60. package/dist/{SingpassSelection-Bf7AnQ_l.js → SingpassSelection-BTZe82Q8.js} +6 -6
  61. package/dist/SoleProprietorshipPage-Dfzyn6Br.js +70 -0
  62. package/dist/{SourceOfFundsPage-4dDzWrhf.js → SourceOfFundsPage-l899LDLv.js} +58 -44
  63. package/dist/{StructuredList-BU29ceSG.js → StructuredList-DR8Fb1tc.js} +4 -4
  64. package/dist/{TaskListItem-BlcJJS_V.js → TaskListItem-1n3vYDAz.js} +11 -11
  65. package/dist/{TaskVerificationStatus-ITLSeoau.js → TaskVerificationStatus-DMj8rsZ_.js} +1 -1
  66. package/dist/{TaxReportingDropin-Cw35lKwa.js → TaxReportingDropin-BYOpjW8V.js} +18 -18
  67. package/dist/{TermsOfServiceManagement-_xrvP8-7.js → TermsOfServiceManagement-BUvv59rD.js} +68 -66
  68. package/dist/{TextArea-BzCbFjRp.js → TextArea-CoS-i-FF.js} +3 -3
  69. package/dist/{TrustDetailsPage-k3accZEy.js → TrustDetailsPage-BQjA8lmD.js} +341 -318
  70. package/dist/TrustMemberCompanyPage-3189PHUn.js +109 -0
  71. package/dist/TrustMemberIndividualPage-DOFGzN7Z.js +110 -0
  72. package/dist/{TrustMemberRoleAndTypePage-BlAptww5.js → TrustMemberRoleAndTypePage-nDSoM_rw.js} +19 -19
  73. package/dist/{TrustMembersOverview-B8H3GF08.js → TrustMembersOverview-CxiKjCLV.js} +14 -14
  74. package/dist/UnincorporatedPartnershipIndividualPage-D-46tLiw.js +79 -0
  75. package/dist/{UnincorporatedPartnershipMemberCompanyPage-CgrnQ800.js → UnincorporatedPartnershipMemberCompanyPage-CCnm-ShL.js} +37 -37
  76. package/dist/{UnincorporatedPartnershipMemberRoleAndTypePage-BMNXdGp9.js → UnincorporatedPartnershipMemberRoleAndTypePage-CsECHFgr.js} +11 -11
  77. package/dist/{UnincorporatedPartnershipMembersOverview-r2Dcn7c2.js → UnincorporatedPartnershipMembersOverview-C8fwIn45.js} +9 -9
  78. package/dist/{VerificationErrorAlert-T9cdpMgB.js → VerificationErrorAlert-7hKN39sx.js} +4 -4
  79. package/dist/{accountHolderUtils-B3AFComV.js → accountHolderUtils-Cw7X31mH.js} +1 -1
  80. package/dist/adyen-business-financing.js +34 -34
  81. package/dist/adyen-individual-configuration.js +34 -34
  82. package/dist/adyen-individual-status.js +33 -33
  83. package/dist/adyen-invited-decision-maker.js +3 -3
  84. package/dist/adyen-onboarding.js +59 -59
  85. package/dist/adyen-terms-of-service-management.js +3 -3
  86. package/dist/adyen-terms-of-service-status.js +6 -6
  87. package/dist/adyen-transfer-instrument-configuration.js +33 -33
  88. package/dist/adyen-transfer-instrument-management.js +40 -40
  89. package/dist/adyen-verification-status.js +6 -6
  90. package/dist/{bafinUtils-DEVMdolf.js → bafinUtils-vdTD2Ec5.js} +19 -19
  91. package/dist/bg-BG-Bmveyt6S.js +7 -0
  92. package/dist/{constants-Bmm0unff.js → constants-Bs5FgdWg.js} +4 -4
  93. package/dist/{country-BxigZW1s.js → country-IYuKDSdC.js} +14 -2
  94. package/dist/cs-CZ-D5CQd_YI.js +7 -0
  95. package/dist/da-DK-Bl0-8FN4.js +7 -0
  96. package/dist/de-DE-Hah2EvAY.js +7 -0
  97. package/dist/el-GR-C9KGlGa7.js +7 -0
  98. package/dist/{en-US-CWDI7JKT.js → en-US-BFM81i9K.js} +3 -1
  99. package/dist/{en-US-CeiLSh8o.js → en-US-BorLJXJ4.js} +3 -1
  100. package/dist/en-US-Del1h5SS.js +23 -0
  101. package/dist/en-US-DqhKW1eC.js +7 -0
  102. package/dist/en-US-X8pjkwa3.js +7 -0
  103. package/dist/{omitObscuredFieldsIfUnchanged-DESEEOmD.js → error-BatJzHF5.js} +19 -3
  104. package/dist/es-ES-DSwi-qfd.js +7 -0
  105. package/dist/es-LA-0IrX8yr2.js +7 -0
  106. package/dist/es-LA-1H8dAUVR.js +7 -0
  107. package/dist/es-LA-BjZq9RK_.js +7 -0
  108. package/dist/{es-LA-DU9jNyAv.js → es-LA-CGrMi4rR.js} +2 -2
  109. package/dist/{es-LA-DMpf5gAW.js → es-LA-DBBkFhgU.js} +2 -2
  110. package/dist/et-EE-BGpsJPjk.js +7 -0
  111. package/dist/fi-FI-BdrXeX9d.js +7 -0
  112. package/dist/{form-rules-wh_oE1AN.js → form-rules-DV3hxYqZ.js} +2 -2
  113. package/dist/formatValidationError-CZ5MeYBS.js +23 -0
  114. package/dist/fr-FR-hleHEr-Y.js +7 -0
  115. package/dist/{getProblemsForEntity-set4Krmx.js → getProblemsForEntity-DStlTvE-.js} +2 -2
  116. package/dist/{getTrustedDecisionMakers-B_XpRta-.js → getTrustedDecisionMakers-CAbhvydj.js} +2 -2
  117. package/dist/hr-HR--ti3n_XO.js +7 -0
  118. package/dist/{http-CFac2y4i.js → http-D6AdUBhO.js} +57 -2
  119. package/dist/hu-HU-D9Avt-9f.js +7 -0
  120. package/dist/it-IT-Dq5z7p1-.js +7 -0
  121. package/dist/ja-JP-Dyhw0Ycj.js +7 -0
  122. package/dist/japanSupportUtils-H5Zfox2v.js +11 -0
  123. package/dist/{localizeDateString-BRB4gPDZ.js → localizeDateString-D-MlYN4V.js} +1 -1
  124. package/dist/lt-LT-BMI4JzrS.js +7 -0
  125. package/dist/lv-LV-LkNZQ__4.js +7 -0
  126. package/dist/mapExistingFile-LvvzPjnk.js +55 -0
  127. package/dist/{mapJpAddressSchemaToAddressLocalizations-CoJiTAbL.js → mapJpAddressSchemaToAddressLocalizations-6nfrRniy.js} +3 -51
  128. package/dist/{mapLegalEntityToIndividualSchema-C-vFEBSR.js → mapLegalEntityToIndividualSchema-1JDK92Nc.js} +8 -8
  129. package/dist/{mapTransferInstrumentToPayoutAccount-DAXQcZKf.js → mapTransferInstrumentToPayoutAccount-cKBtK0Qx.js} +2 -2
  130. package/dist/nl-NL-CC2r7Ldv.js +7 -0
  131. package/dist/no-NO-V7_rz3uN.js +7 -0
  132. package/dist/{patternValidators-D8HZxfV2.js → patternValidators-tRq-KPvW.js} +1 -1
  133. package/dist/pl-PL-2QyKX67Y.js +7 -0
  134. package/dist/{processCapabilities-zti_0yUx.js → processCapabilities-BSpmJOEd.js} +13 -13
  135. package/dist/{processValidationErrors-J6ltKXc4.js → processValidationErrors-PJV6CPG2.js} +2 -2
  136. package/dist/pt-BR-D08Fo1qY.js +7 -0
  137. package/dist/pt-PT-BAQWYDe6.js +7 -0
  138. package/dist/{resolveEnvironment-C1htMD-5.js → resolveEnvironment-df20S4SQ.js} +39 -39
  139. package/dist/ro-RO-wG0rfL5w.js +7 -0
  140. package/dist/sk-SK-DJinBnS1.js +7 -0
  141. package/dist/sl-SI-DUaLO_J7.js +7 -0
  142. package/dist/style.css +153 -139
  143. package/dist/styles-DYaAeu4q.js +153 -139
  144. package/dist/sv-SE-5uxyEq2a.js +7 -0
  145. package/dist/toFullWidth-Dgy4X4i8.js +52 -0
  146. package/dist/{translation-CcKrUksA.js → translation-DH4IlMCP.js} +6 -2
  147. package/dist/types/adaptiveWorkflow/component-registry-v2.d.ts +46 -0
  148. package/dist/types/adaptiveWorkflow/components/Fields/IdentityScreening/IdentityScreeningWorkflow.d.ts +1 -2
  149. package/dist/types/adaptiveWorkflow/components/Layout/ComponentGroup/ComponentGroup.d.ts +6 -0
  150. package/dist/types/adaptiveWorkflow/components/Layout/ComponentGroup/contextMap.d.ts +5 -0
  151. package/dist/types/adaptiveWorkflow/components/Layout/DynamicForm/DynamicForm.d.ts +6 -0
  152. package/dist/types/adaptiveWorkflow/components/Layout/DynamicForm/useCustomerDataV2.d.ts +28 -0
  153. package/dist/types/adaptiveWorkflow/components/Layout/Steps/AcceptTermsOfServiceWorkflow.d.ts +2 -0
  154. package/dist/types/adaptiveWorkflow/components/Layout/Steps/IdentityScreeningWorkflow.d.ts +2 -0
  155. package/dist/types/adaptiveWorkflow/components/Layout/Steps/SourceOfFundsWorkflow.d.ts +2 -0
  156. package/dist/types/adaptiveWorkflow/components/Layout/Steps/Step/Step.d.ts +2 -0
  157. package/dist/types/adaptiveWorkflow/components/Layout/Steps/Step/contextMap.d.ts +2 -0
  158. package/dist/types/adaptiveWorkflow/components/Layout/Steps/TaxReportingWorkflow.d.ts +2 -0
  159. package/dist/types/adaptiveWorkflow/components/Layout/Task/Task.d.ts +9 -0
  160. package/dist/types/adaptiveWorkflow/components/Layout/Task/contextMap.d.ts +2 -0
  161. package/dist/types/adaptiveWorkflow/components/Layout/TaskGroup/TaskGroup.d.ts +5 -0
  162. package/dist/types/adaptiveWorkflow/components/Layout/TaskGroup/contextMap.d.ts +2 -0
  163. package/dist/types/adaptiveWorkflow/components/Layout/UboTaskItem/UboTaskItem.d.ts +8 -0
  164. package/dist/types/adaptiveWorkflow/components/Layout/Workflow/Workflow.d.ts +8 -0
  165. package/dist/types/adaptiveWorkflow/components/NodeRenderer/CompoundFieldRenderer.d.ts +6 -0
  166. package/dist/types/adaptiveWorkflow/components/NodeRenderer/LayoutRenderer.d.ts +7 -0
  167. package/dist/types/adaptiveWorkflow/components/NodeRenderer/NodeRenderer.d.ts +20 -0
  168. package/dist/types/adaptiveWorkflow/components/NodeRenderer/SimpleFieldRenderer.d.ts +6 -0
  169. package/dist/types/adaptiveWorkflow/components/NodeRenderer/SpecializedStepRenderer.d.ts +7 -0
  170. package/dist/types/adaptiveWorkflow/components/WorkflowHeading/WorkflowHeading.d.ts +1 -1
  171. package/dist/types/adaptiveWorkflow/components/types.d.ts +31 -0
  172. package/dist/types/adaptiveWorkflow/context/TaskStepperContext/TaskStepperContext.d.ts +19 -0
  173. package/dist/types/adaptiveWorkflow/context/TaskStepperContext/TaskStepperContextProvider.d.ts +22 -0
  174. package/dist/types/adaptiveWorkflow/context/TaskStepperContext/useHideTaskStepper.d.ts +6 -0
  175. package/dist/types/adaptiveWorkflow/context/TaskStepperContext/useTaskStepperContext.d.ts +1 -0
  176. package/dist/types/adaptiveWorkflow/utils/getNodeType.d.ts +11 -0
  177. package/dist/types/adaptiveWorkflow/utils/getProgressSteps.d.ts +4 -0
  178. package/dist/types/api/adaptive/adaptiveWorkflow.types.d.ts +2 -1
  179. package/dist/types/components/BankAccount/tasks/PayoutDetailsDropin/payoutDetailsFormConfig.d.ts +6 -1
  180. package/dist/types/components/BankAccount/tasks/PayoutDetailsDropin/usePayoutAccountFormat.d.ts +10 -0
  181. package/dist/types/components/Business/forms/AdditionalInformation/types.d.ts +2 -29
  182. package/dist/types/components/Business/forms/AdditionalInformation/utils.d.ts +0 -27
  183. package/dist/types/components/Business/forms/BasicInformation/types.d.ts +2 -2
  184. package/dist/types/components/Business/forms/BusinessDetails/BusinessDetails.d.ts +2 -2
  185. package/dist/types/components/Business/forms/rules.d.ts +7 -3
  186. package/dist/types/components/Business/hooks/useBusinessDetailsData.d.ts +2 -3
  187. package/dist/types/components/Business/hooks/useSubmitBusinessDetails.types.d.ts +3 -3
  188. package/dist/types/components/Business/mapping/businessDetails/mapBusinessDetailsSchemaToLegalEntity.d.ts +2 -2
  189. package/dist/types/components/Business/mapping/businessDetails/mapLegalEntityToBusinessDetailsSchema.d.ts +2 -2
  190. package/dist/types/components/Business/pages/RootBusinessDetailsPage.d.ts +1 -1
  191. package/dist/types/components/{SoleProprietorship → Business}/pages/SoleProprietorshipPage.d.ts +2 -2
  192. package/dist/types/components/{Trust → Business}/pages/TrustMemberCompanyPage.d.ts +3 -3
  193. package/dist/types/components/{UnincorporatedPartnership → Business}/pages/UnincorporatedPartnershipMemberCompanyPage.d.ts +3 -3
  194. package/dist/types/components/Business/tasks/BusinessDetailsDropin/BusinessDetailsDropin.d.ts +1 -1
  195. package/dist/types/components/Business/tasks/BusinessDetailsDropin/types.d.ts +5 -5
  196. package/dist/types/components/Business/utils/utils.d.ts +3 -5
  197. package/dist/types/components/EFP/mapping/businessFinancingKeyMappings.d.ts +93 -93
  198. package/dist/types/components/EFP/tasks/SourceOfFundsDropin/SOFAdditionalData/SOFFinancierModal.d.ts +5 -5
  199. package/dist/types/components/EFP/tasks/SourceOfFundsDropin/utils.d.ts +2 -1
  200. package/dist/types/components/GlobalEntry/constants.d.ts +13 -3
  201. package/dist/types/components/GlobalEntry/fields/EntitySetupField/types.d.ts +1 -1
  202. package/dist/types/components/GlobalEntry/fields/PaperworkQuestionnaire/PaperworkQuestionnaire.d.ts +3 -0
  203. package/dist/types/components/GlobalEntry/fields/PaperworkQuestionnaire/types.d.ts +5 -0
  204. package/dist/types/components/GlobalEntry/fields/UnincorporatedOrganizationTypeField/UnincorporatedOrganizationTypeField.d.ts +2 -0
  205. package/dist/types/components/GlobalEntry/fields/UnincorporatedOrganizationTypeField/types.d.ts +5 -0
  206. package/dist/types/components/GlobalEntry/forms/RegistrationInformation/RegistrationInformation.d.ts +5 -0
  207. package/dist/types/components/GlobalEntry/forms/RegistrationInformation/types.d.ts +3 -0
  208. package/dist/types/components/GlobalEntry/tasks/types.d.ts +2 -0
  209. package/dist/types/components/GlobalEntry/validate.d.ts +9 -0
  210. package/dist/types/components/Individual/fields/DriversLicense/DriversLicense.types.d.ts +2 -2
  211. package/dist/types/components/Individual/forms/AdditionalPersonalDetails/Identity/TypeOfIdentity/index.d.ts +2 -2
  212. package/dist/types/components/Individual/forms/GuidanceQuestion/GuidanceQuestion.d.ts +4 -3
  213. package/dist/types/components/{Trust → Individual}/pages/TrustMemberIndividualPage.d.ts +2 -2
  214. package/dist/types/components/{UnincorporatedPartnership → Individual}/pages/UnincorporatedPartnershipIndividualPage.d.ts +2 -2
  215. package/dist/types/components/Shared/fields/RegistrationAndOperationalAddressFields/RegistrationAndOperationalAddressFields.d.ts +3 -0
  216. package/dist/types/components/Shared/fields/RegistrationAndOperationalAddressFields/types.d.ts +53 -0
  217. package/dist/types/components/Shared/fields/RegistrationAndOperationalAddressFields/utils.d.ts +28 -0
  218. package/dist/types/components/Shared/fields/TaxInformationField/TaxIdNumberTypeSelector/TaxIdNumberTypeSelector.d.ts +2 -2
  219. package/dist/types/components/Shared/forms/Address/SearchAddress.d.ts +2 -1
  220. package/dist/types/components/Shared/forms/Address/utils.d.ts +1 -1
  221. package/dist/types/components/Trust/forms/Trust/rules.d.ts +12 -0
  222. package/dist/types/components/Trust/forms/Trust/types.d.ts +4 -4
  223. package/dist/types/components/Trust/forms/TrustRegistrationAddress/TrustRegistrationAddress.d.ts +2 -0
  224. package/dist/types/components/Trust/forms/TrustRegistrationAddress/types.d.ts +9 -0
  225. package/dist/types/components/Trust/mapping/mapTrustToLegalEntity.d.ts +2 -2
  226. package/dist/types/components/Trust/tasks/TrustDropin/Trust.d.ts +2 -1
  227. package/dist/types/components/Trust/utils/formatDataForSummary.d.ts +6 -0
  228. package/dist/types/components/UnincorporatedPartnership/mapping/mapUnincorporatedPartnershipToLegalEntity.d.ts +2 -2
  229. package/dist/types/components/UnincorporatedPartnership/tasks/UnincorporatedPartnershipRoleAndType/UnincorporatedPartnershipRadioGroup.d.ts +2 -2
  230. package/dist/types/components/ui/atoms/Field/Field.types.d.ts +8 -2
  231. package/dist/types/components/ui/atoms/TileGroup/TileGroup.d.ts +3 -3
  232. package/dist/types/context/WorkflowContext/WorkflowContext.d.ts +3 -1
  233. package/dist/types/hooks/singpass/useSingpassMyInfoLogin.d.ts +3 -3
  234. package/dist/types/hooks/useForm/types.d.ts +3 -2
  235. package/dist/types/hooks/useLegalCompanyNameField/useLegalCompanyNameField.d.ts +1 -1
  236. package/dist/types/hooks/useScenarioConfiguration.d.ts +1 -16
  237. package/dist/types/hooks/useUboQuestionnaire.d.ts +1 -1
  238. package/dist/types/router/routeConfig.d.ts +5 -5
  239. package/dist/types/types/form-rules.d.ts +0 -2
  240. package/dist/types/utils/country.d.ts +6 -0
  241. package/dist/types/utils/decodeJwt.d.ts +13 -0
  242. package/dist/types/utils/entityStatusUtil.d.ts +1 -1
  243. package/dist/types/utils/formUtils.d.ts +4 -3
  244. package/dist/types/utils/validation/formatValidationError.d.ts +11 -0
  245. package/dist/types/utils/validation/types.d.ts +4 -4
  246. package/dist/{types-lzI_sUwT.js → types-BLWT7WnU.js} +1 -1
  247. package/dist/{useAssociatedLegalEntity-DB8HCSwp.js → useAssociatedLegalEntity-CzQlHWXy.js} +2 -2
  248. package/dist/{useBusinessDetailsData-DRfmakGt.js → useBusinessDetailsData-CRLRQh0U.js} +129 -310
  249. package/dist/{useBusinessLines-CfQYLNkw.js → useBusinessLines-D-rc-Z6G.js} +1 -1
  250. package/dist/{useCanSeeIntroduction-CL2v20rx.js → useCanSeeIntroduction-BeooAHcX.js} +1 -1
  251. package/dist/{useCreateLegalEntity-CVBjJUw_.js → useCreateLegalEntity-Ctdmk3Ky.js} +1 -1
  252. package/dist/{useDataMissingRemediations-BEdoAjt3.js → useDataMissingRemediations-DNZ_UDbI.js} +2 -2
  253. package/dist/{useForm-DgKB0Jpl.js → useForm-BLP36oqX.js} +3 -3
  254. package/dist/{useId-DpmZnb6I.js → useId-po-YSdTw.js} +3 -3
  255. package/dist/{useLegalEntity-BqO7Fmt0.js → useLegalEntity-DR51Q4mE.js} +1 -1
  256. package/dist/{useNavigate-xV0IroXe.js → useNavigate-CcVYYcg1.js} +33 -33
  257. package/dist/{useOnboardingStatus-Bg1z2ftv.js → useOnboardingStatus-op5TyMUR.js} +1 -1
  258. package/dist/{usePciQuestionnaireList-Dq1w684P.js → usePciQuestionnaireList-BZsgbrTy.js} +1 -1
  259. package/dist/{useSalesChannels-D66W1KV8.js → useSalesChannels-Mi6DmHab.js} +2 -2
  260. package/dist/{useScenarios-BunWDxgO.js → useScenarios-Bne3C0PV.js} +1 -1
  261. package/dist/{useTaskLandedEvent-BTVaABDA.js → useTaskLandedEvent-C7fcguXK.js} +1 -1
  262. package/dist/{useTaskStatus-B_-IRF4H.js → useTaskStatus-Be6XyW54.js} +1 -1
  263. package/dist/{useTermsOfServiceStatus-CGIpBA0U.js → useTermsOfServiceStatus-D0NHUKl_.js} +1 -1
  264. package/dist/{useTrustMembers-Cc_VpJkD.js → useTrustMembers-HJpKc0qR.js} +5 -5
  265. package/dist/{useUnincorporatedPartnershipMembers-DgD91qBf.js → useUnincorporatedPartnershipMembers-C5CNWe_U.js} +2 -2
  266. package/dist/{useUpdateBusinessLines-C2xW-32U.js → useUpdateBusinessLines-D6D9DAn1.js} +1 -1
  267. package/dist/{useUpdateLegalEntity-CsXfjS5u.js → useUpdateLegalEntity-CH4xp654.js} +2 -2
  268. package/dist/{utils-BfxOnNjg.js → utils-BbBPfcNK.js} +7 -7
  269. package/dist/{utils-G00RnEDX.js → utils-C8WDAzsL.js} +1 -1
  270. package/dist/{utils-CGzF-obv.js → utils-Di84CxrF.js} +5 -5
  271. package/dist/{validate-K01plHbc.js → validate-BNu91k9j.js} +4 -4
  272. package/dist/validate-CkuU4MvS.js +250 -0
  273. package/dist/{validate-DvGdGx9J.js → validate-CsYDNrPB.js} +1 -1
  274. package/dist/{validateExtractionResult-CXgPruUU.js → validateExtractionResult-mtXTjYfE.js} +10 -10
  275. package/dist/{validationError-vnqptK-a.js → validationError-1dpZJlAz.js} +1 -1
  276. package/package.json +3 -4
  277. package/dist/AdaptiveWorkflow-CE-7w7l8.js +0 -1896
  278. package/dist/GlobalEntryModal-D9sRA2Ql.js +0 -188
  279. package/dist/SoleProprietorshipPage-f3-ZfjvW.js +0 -70
  280. package/dist/TrustMemberCompanyPage-CVZuhHHm.js +0 -109
  281. package/dist/TrustMemberIndividualPage-Dn4pDHej.js +0 -109
  282. package/dist/UnincorporatedPartnershipIndividualPage-DdOlDSQU.js +0 -79
  283. package/dist/bg-BG-BXAB4Qsj.js +0 -7
  284. package/dist/cs-CZ-DG5rPvy2.js +0 -7
  285. package/dist/da-DK-BnW-O75l.js +0 -7
  286. package/dist/de-DE-DUiPzmSc.js +0 -7
  287. package/dist/el-GR-1n3FJpd3.js +0 -7
  288. package/dist/en-US-B48_sHax.js +0 -13
  289. package/dist/en-US-BV2Gye3t.js +0 -7
  290. package/dist/en-US-CqjOvqxV.js +0 -7
  291. package/dist/es-ES-Cp45mlyV.js +0 -7
  292. package/dist/es-LA-BU32JqC-.js +0 -7
  293. package/dist/es-LA-Cyf48j4P.js +0 -7
  294. package/dist/es-LA-De_gTMKb.js +0 -7
  295. package/dist/et-EE-B4czzgF8.js +0 -7
  296. package/dist/fi-FI-D08MUkuM.js +0 -7
  297. package/dist/fr-FR-BxDpVfWO.js +0 -7
  298. package/dist/getTrustedFields-BJ88GlM-.js +0 -28
  299. package/dist/hr-HR-DGQMquDg.js +0 -7
  300. package/dist/hu-HU-Eofp7khl.js +0 -7
  301. package/dist/it-IT-CD7NJtJa.js +0 -7
  302. package/dist/ja-JP-YvXztswF.js +0 -7
  303. package/dist/lt-LT-Cjx4H-0R.js +0 -7
  304. package/dist/lv-LV-Ckf37gXo.js +0 -7
  305. package/dist/mapExistingFile-BOXehUNN.js +0 -138
  306. package/dist/nl-NL-DFHAkUK3.js +0 -7
  307. package/dist/no-NO-B6frLiko.js +0 -7
  308. package/dist/pl-PL-DnYkTdjO.js +0 -7
  309. package/dist/pt-BR-65dQv8uO.js +0 -7
  310. package/dist/pt-PT-D0fXeW1f.js +0 -7
  311. package/dist/ro-RO-CNj95qQn.js +0 -7
  312. package/dist/sk-SK-C0x9Vs2X.js +0 -7
  313. package/dist/sl-SI-BikBCOJK.js +0 -7
  314. package/dist/sv-SE-BGP9Lmku.js +0 -7
  315. package/dist/types/components/Shared/forms/RegistrationAddress/RegistrationAddress.d.ts +0 -3
  316. package/dist/types/components/Shared/forms/RegistrationAddress/RegistrationAddressMultiform.d.ts +0 -3
  317. package/dist/types/components/Shared/forms/RegistrationAddress/types.d.ts +0 -26
  318. package/dist/types/components/Shared/forms/RegistrationAddress/validate.d.ts +0 -3
  319. package/dist/types/utils/getDisplayErrorMessage.d.ts +0 -2
  320. /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] = "95994257-efcf-4617-93b1-5263c76f7bc4", e._sentryDebugIdIdentifier = "sentry-dbid-95994257-efcf-4617-93b1-5263c76f7bc4");
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-CcKrUksA.js";
6
- import { j as useToggleContext } from "./resolveEnvironment-C1htMD-5.js";
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 { c as keysOf, o as objectsDeepEqual } from "./AnalyticsContext-BnRQ9H1u.js";
9
+ import { o as objectsDeepEqual } from "./AnalyticsContext-BnRQ9H1u.js";
9
10
  import { t as CountryCodes } from "./country-code-CJk2hdPu.js";
10
- import { t as TaskTypes } from "./taskTypes-3vSkMBDm.js";
11
- import { l as CompanyTypesValues } from "./bafinUtils-DEVMdolf.js";
12
- import { d as translateTranslatable, r as Field } from "./Select-yOtg-61e.js";
13
- import { t as Checkbox } from "./Checkbox-CFN5ywvv.js";
14
- import { a as alphanumericInputs, c as nonInputs, i as alphaInputs, l as numericInputs, s as makeMask, t as MaskedInput, u as spacer } from "./MaskedInput-BpgT8ais.js";
15
- import { i as MemoizedDocumentUpload } from "./PatriotActDisclosure-DO1km-aw.js";
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-D8HZxfV2.js";
18
- import { a as COUNTRIES_REQUIRING_FINANCIAL_INFORMATION, b as REGISTRATION_NUMBER_EXEMPTION_RULES, f as COUNTRIES_USING_COMPANY_SEARCH } from "./utils-BfxOnNjg.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 InputText } from "./InputText-CRkApOKK.js";
21
- import { t as RadioGroup } from "./RadioGroup-B9MFxAgn.js";
22
- import { i as getCompanyRegistrationNumberOptions, l as registrationNumberDefaultFieldConfig, n as getDefaultRegistrationNumberType, o as exemptFromRegistrationNumberDefaultFieldConfig, s as exemptFromRegistrationNumberDefaultFieldMetadata, t as CompanyRegistrationNumberTypeSelector, u as registrationNumberDefaultFieldMetadata } from "./CompanyRegistrationNumberTypeSelector-DYJ2XeCC.js";
23
- import { memo } from "preact/compat";
24
- import { useCallback as useCallback$1, useEffect as useEffect$1, useMemo as useMemo$1 } from "preact/hooks";
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
- //#region src/components/Business/utils/utils.ts
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 };
@@ -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] = "0b595631-96bf-4087-81ec-59132b563d27", e._sentryDebugIdIdentifier = "sentry-dbid-0b595631-96bf-4087-81ec-59132b563d27");
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-CcKrUksA.js";
6
- import { ft as useAccountHolder } from "./resolveEnvironment-C1htMD-5.js";
7
- import { r as Loader, t as Button } from "./Button-BuhgDsyo.js";
8
- import { r as useLegalEntity, t as ROOT_LE } from "./useLegalEntity-BqO7Fmt0.js";
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-zti_0yUx.js";
12
- import { i as useAnalyticsContext } from "./Modal-BYdlsXkf.js";
13
- import { r as useToastContext } from "./useId-DpmZnb6I.js";
14
- import { c as TileGroup } from "./bafinUtils-DEVMdolf.js";
15
- import { f as LoaderWrapper, r as Field } from "./Select-yOtg-61e.js";
16
- import { t as useUpdateLegalEntity } from "./useUpdateLegalEntity-CsXfjS5u.js";
17
- import { t as useTaskLandedEvent } from "./useTaskLandedEvent-BTVaABDA.js";
18
- import { t as useForm } from "./useForm-DgKB0Jpl.js";
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-CGzF-obv.js";
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-CcKrUksA.js";
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-BYdlsXkf.js";
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] = "570ee455-48f4-4a47-ae35-ffe3b1667b1f", e._sentryDebugIdIdentifier = "sentry-dbid-570ee455-48f4-4a47-ae35-ffe3b1667b1f");
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-CcKrUksA.js";
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-DEVMdolf.js";
8
- import { r as Field } from "./Select-yOtg-61e.js";
9
- import { l as numericInputs, s as makeMask, u as spacer } from "./MaskedInput-BpgT8ais.js";
10
- import { a as validateNotEmptyOnBlur, o as validatePatternOnBlur } from "./patternValidators-D8HZxfV2.js";
11
- import { M as businessRegistrationNumberMasks, N as stateFormatGuidanceText, j as businessRegistrationNumberPatterns } from "./utils-BfxOnNjg.js";
12
- import { t as RadioGroup } from "./RadioGroup-B9MFxAgn.js";
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] = "7ca72cc9-e144-400b-9843-479a12fa7304", e._sentryDebugIdIdentifier = "sentry-dbid-7ca72cc9-e144-400b-9843-479a12fa7304");
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-CcKrUksA.js";
6
- import { C as useDataset, k as Header, nt as isEmpty, w as datasetIdentifier } from "./resolveEnvironment-C1htMD-5.js";
7
- import { r as httpPost, s as useApiContext } from "./http-CFac2y4i.js";
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-yOtg-61e.js";
11
- import { b as createFormUtils, x as mergeFieldMetadataIntoProps } from "./CountryField-uue7DBeg.js";
12
- import { c as nonInputs, l as numericInputs, n as InputEmail, s as makeMask, t as MaskedInput, u as spacer } from "./MaskedInput-BpgT8ais.js";
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-C1htMD-5.js";
6
- import { i as useAnalyticsContext } from "./Modal-BYdlsXkf.js";
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] = "94b10fd2-4924-42f4-8ed8-2cea4dc61321", e._sentryDebugIdIdentifier = "sentry-dbid-94b10fd2-4924-42f4-8ed8-2cea4dc61321");
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-CcKrUksA.js";
6
- import { C as useDataset, k as Header, nt as isEmpty, w as datasetIdentifier } from "./resolveEnvironment-C1htMD-5.js";
7
- import { n as IconButton, t as Button } from "./Button-BuhgDsyo.js";
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-BYdlsXkf.js";
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 translateTranslatable, f as LoaderWrapper, i as ProgressBar, l as omitKeys, o as ValidationResult, r as Field, s as addKeys, t as Select } from "./Select-yOtg-61e.js";
14
- import { n as Confirm, t as StructuredList } from "./StructuredList-BU29ceSG.js";
15
- import { t as Image } from "./Image-Dc5Xg1_Y.js";
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-CCn1oJPR.js";
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
- return errors?.[field]?.errorMessage || Boolean(fieldProblems?.[field]);
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
- const error = formErrors?.[key]?.errorMessage;
93
- return error ? {
94
- ...acc,
95
- [key]: error
96
- } : {
97
- ...acc,
98
- [key]: Boolean(fieldProblems?.[key])
99
- };
100
- }
101
- return acc;
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;