@adyen/kyc-components 4.26.0-beta.1 → 4.27.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 (237) hide show
  1. package/dist/{AcceptTermsOfServiceWorkflow-Dqbo6l6E.js → AcceptTermsOfServiceWorkflow-CLxIT19W.js} +4 -4
  2. package/dist/{Accordion-BAdwrgCR.js → Accordion-CTQfC17W.js} +1 -1
  3. package/dist/{AccountSetupRejected-BiFdVnlI.js → AccountSetupRejected-Cuu1cHgb.js} +2 -2
  4. package/dist/{AdaptiveWorkflow-Cl6sIKYm.js → AdaptiveWorkflow-Du4hN8Ry.js} +22 -22
  5. package/dist/{AdaptiveWorkflowComponent-DTvjszP9.js → AdaptiveWorkflowComponent-CoOpFWm7.js} +5 -5
  6. package/dist/{AddressFields-DSJ_dDIS.js → AddressFields-Dzoa4PU5.js} +33 -72
  7. package/dist/{Avatar-C2zeqSSB.js → Avatar-yJfk9A6l.js} +1 -1
  8. package/dist/{BusinessFinancingDropin-BZsQMeo9.js → BusinessFinancingDropin-DP6b5D85.js} +123 -55
  9. package/dist/{BusinessFinancingPage-BilT7QB1.js → BusinessFinancingPage-BIGEXFdp.js} +6 -6
  10. package/dist/{BusinessRegistrationNumberField-CBEz-yoj.js → BusinessRegistrationNumberField-B2n9ugLK.js} +6 -6
  11. package/dist/{BusinessRegistrationNumberFieldGroup-CkoC1zF3.js → BusinessRegistrationNumberFieldGroup-BvKp9WMt.js} +6 -6
  12. package/dist/{BusinessTypeSelectionPage-CIO175KD.js → BusinessTypeSelectionPage-xRXq2lGM.js} +13 -13
  13. package/dist/{Button-Dwr6jvJZ.js → Button-BYafPrZH.js} +1 -1
  14. package/dist/{Checkbox-CpzEl3ji.js → Checkbox-qFA2J_1r.js} +8 -8
  15. package/dist/{ComponentGroup-BjjCPKWY.js → ComponentGroup-CyykPP2r.js} +3 -3
  16. package/dist/{ConstitutionalDocument-C_ZgPp87.js → ConstitutionalDocument-DzLLKoWV.js} +19 -26
  17. package/dist/{ContactDetails-DHHlpdct.js → ContactDetails-CcWafw_y.js} +5 -5
  18. package/dist/{ContextGuidance-SHSxyen7.js → ContextGuidance-gAsOnDqD.js} +3 -3
  19. package/dist/{CountryField-DUANNyWK.js → CountryField-Dxuy2L9C.js} +4 -4
  20. package/dist/{Currency-DFgCZFeZ.js → Currency-CAEcQwe6.js} +16 -10
  21. package/dist/{CustomerSupport-8Gp9EPcW.js → CustomerSupport-C1nrEyEr.js} +29 -16
  22. package/dist/{DateField-DfkL_Acw.js → DateField-D8GSp5fV.js} +4 -4
  23. package/dist/{DebugModal-DrmTRJup.js → DebugModal-Bwhnd1v5.js} +10 -10
  24. package/dist/{DecisionMakerDetails-DSuWWQR3.js → DecisionMakerDetails-DHsxYfa3.js} +79 -174
  25. package/dist/{DecisionMakerDetailsPage-DvaF8JWQ.js → DecisionMakerDetailsPage-DoisZYll.js} +9 -9
  26. package/dist/{DecisionMakers-HjFvfukQ.js → DecisionMakers-BD5J47Zs.js} +17 -18
  27. package/dist/{Dropzone-CM9xNqdS.js → Dropzone-CTz4GiZE.js} +7 -7
  28. package/dist/{EmailField-CIMaH5h8.js → EmailField-DoEYalIM.js} +4 -4
  29. package/dist/{EmbeddedStatus-4YjyzkcD.js → EmbeddedStatus-mdQsQfof.js} +2 -2
  30. package/dist/{EndStateLayout-C5Pqler-.js → EndStateLayout-B-M90Rnh.js} +2 -2
  31. package/dist/{EntityAssociation-mOKgAoTo.js → EntityAssociation-aB7bppFQ.js} +6 -6
  32. package/dist/{ErrorPanel-MWL7vQHx.js → ErrorPanel-CuoQueZk.js} +10 -17
  33. package/dist/{GlobalEntryModal-CLTA41r-.js → GlobalEntryModal-ZuajLl8B.js} +439 -298
  34. package/dist/{GlobalEntryPage-CxXk05KE.js → GlobalEntryPage-WrN5mVJe.js} +7 -8
  35. package/dist/{Icon-_YUEZg1p.js → Icon-jVvV1zXc.js} +1 -1
  36. package/dist/{IdentityNumber-DA8DOgxH.js → IdentityNumber-IDvVA7_z.js} +5 -5
  37. package/dist/{IdentityNumberFieldGroup-D4MTWr-z.js → IdentityNumberFieldGroup-CW8lJ6_d.js} +2 -2
  38. package/dist/{IdentityScreeningWorkflow-DfI-6mXR.js → IdentityScreeningWorkflow-TfHCTDlp.js} +12 -13
  39. package/dist/{IndividualDropin-B70zK0AA.js → IndividualDropin-MpaDWh9N.js} +147 -223
  40. package/dist/{IndustryCodeFieldGroup-CHPfvz-_.js → IndustryCodeFieldGroup-DsJF3GOE.js} +5 -5
  41. package/dist/{InputDate-BSxqqg_B.js → InputDate-Bmx3_p-j.js} +8 -4
  42. package/dist/{InputText-DIesIpnW.js → InputText-CGngUMdf.js} +2 -2
  43. package/dist/{Introduction--U4NyUxq.js → Introduction-Dt8pjcxt.js} +6 -6
  44. package/dist/{InvitedDecisionMakerComponent-DIBX_HRF.js → InvitedDecisionMakerComponent-1oXTODfv.js} +13 -14
  45. package/dist/{JpAddressFields-OgKOVHI0.js → JpAddressFields-DhzFwu0N.js} +9 -10
  46. package/dist/{LegalCompanyNameField-wgWJRR84.js → LegalCompanyNameField-BsY3tJfX.js} +5 -5
  47. package/dist/{LegalRepresentativeDetailsPage-BFtn7wzQ.js → LegalRepresentativeDetailsPage-C50GRV2l.js} +4 -4
  48. package/dist/{Link-D0Yqc2r0.js → Link-DwPkGikd.js} +1 -1
  49. package/dist/{ListItem-DY-qq1lS.js → ListItem-n927geYb.js} +2 -2
  50. package/dist/{Modal-C-T-spfu.js → Modal-ChWNV9yG.js} +3 -3
  51. package/dist/{Name-C8NOxqDE.js → Name-C8hhvQlN.js} +4 -4
  52. package/dist/{NumberField-CUGWeVc9.js → NumberField-C7vHy7Yz.js} +4 -4
  53. package/dist/{PatriotActDisclosure-CWcGyfuA.js → PatriotActDisclosure-CAvpE8su.js} +10 -10
  54. package/dist/{PayoutDetailsDropin-CZT8xUPC.js → PayoutDetailsDropin-ILM3oK4r.js} +41 -43
  55. package/dist/{PayoutDetailsPage-C54-v6yl.js → PayoutDetailsPage-DfZYYplh.js} +5 -5
  56. package/dist/{Review-CYIwvp62.js → Review-D_I4FUVw.js} +6 -6
  57. package/dist/{RootBusinessDetailsPage-CI8iAty4.js → RootBusinessDetailsPage-CoOUMflT.js} +4 -4
  58. package/dist/{RootBusinessLinesPage-ZPaIqKwi.js → RootBusinessLinesPage-DYz9wrU_.js} +22 -23
  59. package/dist/{RootIndividualDetailsPage-ApOJRs0B.js → RootIndividualDetailsPage-C42YybJq.js} +6 -6
  60. package/dist/{Select-DwuMMZWv.js → Select-BMGxcmZy.js} +92 -92
  61. package/dist/{SignPCIComponent-B4D4nPDO.js → SignPCIComponent-B4RkNT1l.js} +14 -14
  62. package/dist/{SingpassSelection-vy5Stz5H.js → SingpassSelection-Usq1Kdpp.js} +5 -5
  63. package/dist/{SoleProprietorshipPage-dyEpmmk3.js → SoleProprietorshipPage-tEf2zwhT.js} +4 -4
  64. package/dist/{SourceOfFundsPage-DgCWI7Ac.js → SourceOfFundsPage-BXG5weCA.js} +24 -24
  65. package/dist/{SourceOfFundsWorkflow-CdOOLWqA.js → SourceOfFundsWorkflow-BWWLrVaR.js} +4 -4
  66. package/dist/StateField-TYw5No81.js +364 -0
  67. package/dist/{Step-Cqaytd3J.js → Step-D8w1jd5O.js} +5 -5
  68. package/dist/Summary-BwvaKucT.js +21 -0
  69. package/dist/{SummarySection-BVPfXtuP.js → SummarySection-5L--khYg.js} +5 -19
  70. package/dist/{Task-CegWZQgV.js → Task-dSDYu-xr.js} +7 -7
  71. package/dist/{TaskGroup-BqSUUr1i.js → TaskGroup-298zewpP.js} +3 -3
  72. package/dist/{TaskListItem-CvYgXREa.js → TaskListItem-jRIQ_fJt.js} +10 -10
  73. package/dist/{TaskStepperContextProvider-9wlnwii7.js → TaskStepperContextProvider-DiMf4UV6.js} +1 -1
  74. package/dist/{TaskVerificationStatus-zoxTZ2mt.js → TaskVerificationStatus-C1CllzL1.js} +17 -17
  75. package/dist/{TaxInformationFieldGroup-lT5OgO75.js → TaxInformationFieldGroup-BkyZwtUe.js} +7 -7
  76. package/dist/{TaxReportingDropin-C9jUzNzP.js → TaxReportingDropin-BVohPujf.js} +13 -15
  77. package/dist/{TaxReportingWorkflow-C3qyl3rW.js → TaxReportingWorkflow-BdVibdaP.js} +4 -4
  78. package/dist/{TermsOfServiceManagement-DfFV6erX.js → TermsOfServiceManagement-Bh0BJ4wb.js} +46 -43
  79. package/dist/{TextArea-CQIt_2VI.js → TextArea-BaoeEZvH.js} +4 -4
  80. package/dist/{TextField-C8CRipRJ.js → TextField-BWevK7LS.js} +5 -5
  81. package/dist/{TrustDetailsPage-Ax5uaglT.js → TrustDetailsPage-B5x1-NPO.js} +61 -54
  82. package/dist/{TrustMemberCompanyPage-DBxTZo-8.js → TrustMemberCompanyPage-Ck2UKJma.js} +5 -5
  83. package/dist/{TrustMemberIndividualPage-DFhWDN3f.js → TrustMemberIndividualPage-CTUh7yn9.js} +4 -4
  84. package/dist/{TrustMemberRoleAndTypePage-Bdoyd1ix.js → TrustMemberRoleAndTypePage-D5_AZAMj.js} +43 -36
  85. package/dist/{TrustMembersOverview-BCdJRHAn.js → TrustMembersOverview-Dbt3KQhv.js} +13 -13
  86. package/dist/{UboTaskItem-DIIoWLbx.js → UboTaskItem-CV0B4ONJ.js} +7 -7
  87. package/dist/{UnincorporatedPartnershipIndividualPage-B20wDAzH.js → UnincorporatedPartnershipIndividualPage-g9PpNHfH.js} +4 -4
  88. package/dist/{UnincorporatedPartnershipMemberCompanyPage-DvcQYNzd.js → UnincorporatedPartnershipMemberCompanyPage-Chd2k8jM.js} +5 -5
  89. package/dist/{UnincorporatedPartnershipMemberRoleAndTypePage-Dx1pRB4b.js → UnincorporatedPartnershipMemberRoleAndTypePage-C7AvOkFK.js} +9 -9
  90. package/dist/{UnincorporatedPartnershipMembersOverview-C0cRXnsL.js → UnincorporatedPartnershipMembersOverview-m3TgX08K.js} +6 -6
  91. package/dist/{VerificationErrorAlert-D0K9gep-.js → VerificationErrorAlert-yOZ8yz_8.js} +3 -3
  92. package/dist/{WebsiteField-Bgf9bYOR.js → WebsiteField-Cn_VPhTx.js} +5 -5
  93. package/dist/{Workflow-DxRS9IMd.js → Workflow-BUgUDsPv.js} +6 -6
  94. package/dist/{accountHolderUtils-QdO9D_A_.js → accountHolderUtils-DhbLva46.js} +1 -1
  95. package/dist/adyen-business-financing.js +7 -7
  96. package/dist/adyen-individual-configuration.js +6 -6
  97. package/dist/adyen-individual-status.js +5 -5
  98. package/dist/adyen-invited-decision-maker.js +3 -3
  99. package/dist/adyen-onboarding.js +30 -30
  100. package/dist/adyen-terms-of-service-management.js +3 -3
  101. package/dist/adyen-terms-of-service-status.js +3 -3
  102. package/dist/adyen-transfer-instrument-configuration.js +5 -5
  103. package/dist/adyen-transfer-instrument-management.js +13 -13
  104. package/dist/adyen-verification-status.js +3 -3
  105. package/dist/{bafinUtils-CW20t7tP.js → bafinUtils-4C7AJpnd.js} +519 -531
  106. package/dist/{constants-DR4IoRWH.js → constants-dKwpavyU.js} +6 -6
  107. package/dist/{dropinUtils-C0hhy3A9.js → dropinUtils-D7sD4BX1.js} +165 -364
  108. package/dist/en-US-8KLaHQaT.js +7 -0
  109. package/dist/{en-US-Cz4JoU20.js → en-US-BMMx67Za.js} +16 -2
  110. package/dist/{en-US-nYL_eSJ-.js → en-US-BfRvYdHX.js} +8 -2
  111. package/dist/en-US-DGdFfmUC.js +136 -0
  112. package/dist/{en-US.instructions-BVNIyLRs.js → en-US.instructions-myDXMUbk.js} +2 -1
  113. package/dist/{error-m4DJ8d3r.js → error-vhREufv_.js} +2 -2
  114. package/dist/formatDataForSummary-CNiewg8c.js +498 -0
  115. package/dist/{formatValidationError-CwtW9tMt.js → formatValidationError-BO9k5bVJ.js} +2 -2
  116. package/dist/{getDefaultRegistrationNumberType-CVVuCd8E.js → getDefaultRegistrationNumberType-BWN86JDR.js} +4 -4
  117. package/dist/{getProblemsForEntity-mdb3Bfpj.js → getProblemsForEntity-FHk416BA.js} +1 -1
  118. package/dist/{getTrustedDecisionMakers-D89oYOLp.js → getTrustedDecisionMakers-DByctgob.js} +1 -1
  119. package/dist/{getValidationError-RnMEkCKd.js → getValidationError--VxsluPA.js} +2 -2
  120. package/dist/{legalArrangementUtils-Crgt_L7h.js → legalArrangementUtils-CHlmmcB8.js} +11 -2
  121. package/dist/{mapAddressLocalizationToJpAddressSchema-Dpsnbt5H.js → mapAddressLocalizationToJpAddressSchema-Di3_rcrj.js} +2 -2
  122. package/dist/{mapExistingFile-BXfeQxev.js → mapExistingFile-CqbTLZ6i.js} +1 -1
  123. package/dist/mapJpAddressSchemaToAddressLocalizations-TLZ9foPF.js +19 -0
  124. package/dist/{mapTransferInstrumentToPayoutAccount-6aBAKF7U.js → mapTransferInstrumentToPayoutAccount-BLq2P8NF.js} +2 -2
  125. package/dist/{processCapabilities-FL4-KAbd.js → processCapabilities-B75YIdXZ.js} +11 -4
  126. package/dist/{processValidationErrors-CcgBvwPJ.js → processValidationErrors-DKn7wWTY.js} +4 -4
  127. package/dist/{resolveEnvironment-DwfwgVEU.js → resolveEnvironment-CrNBwIpQ.js} +53 -16
  128. package/dist/roleMetadata-CmxqSnzp.js +57 -0
  129. package/dist/style.css +166 -230
  130. package/dist/styles-DYaAeu4q.js +166 -230
  131. package/dist/trustMemberType-Ix2sf6e_.js +13 -0
  132. package/dist/types/api/address/useAddressCleanse.d.ts +2 -0
  133. package/dist/types/api/address/useRetrieveAddress.d.ts +1 -0
  134. package/dist/types/api/address/useRetrieveFromPostcodeJp.d.ts +1 -0
  135. package/dist/types/components/BankAccount/tasks/PayoutDetailsDropin/utils.d.ts +7 -2
  136. package/dist/types/components/Business/forms/FinancialInformation/mapping/mapFinancialInformationToFinancialReport.d.ts +1 -1
  137. package/dist/types/components/Business/forms/rules.d.ts +3 -1
  138. package/dist/types/components/Business/utils/formatDataForSummary.d.ts +2 -1
  139. package/dist/types/components/EFP/mapping/businessFinancingKeyMappings.d.ts +78 -0
  140. package/dist/types/components/EFP/tasks/BusinessFinancingDropin/BusinessFinancingFinancialInformation.d.ts +3 -0
  141. package/dist/types/components/EFP/tasks/BusinessFinancingDropin/types.d.ts +2 -1
  142. package/dist/types/components/EFP/tasks/BusinessFinancingDropin/utils.d.ts +6 -3
  143. package/dist/types/components/EFP/tasks/BusinessFinancingDropin/validate.d.ts +3 -0
  144. package/dist/types/components/GlobalEntry/fields/DbaQuestionnaire/DbaQuestionnaire.d.ts +3 -0
  145. package/dist/types/components/GlobalEntry/fields/DbaQuestionnaire/types.d.ts +5 -0
  146. package/dist/types/components/GlobalEntry/fields/LlcQuestionnaire/LlcQuestionnaire.d.ts +3 -0
  147. package/dist/types/components/GlobalEntry/fields/LlcQuestionnaire/types.d.ts +5 -0
  148. package/dist/types/components/GlobalEntry/fields/PaperworkQuestionnaire/PaperworkQuestionnaire.d.ts +1 -6
  149. package/dist/types/components/GlobalEntry/fields/PaperworkQuestionnaire/fieldConfig.d.ts +11 -0
  150. package/dist/types/components/GlobalEntry/fields/PaperworkQuestionnaire/types.d.ts +6 -1
  151. package/dist/types/components/GlobalEntry/fields/Questionnaire/Questionnaire.d.ts +2 -0
  152. package/dist/types/components/GlobalEntry/fields/Questionnaire/types.d.ts +17 -0
  153. package/dist/types/components/GlobalEntry/fields/TrustQuestionnaire/TrustQuestionnaire.d.ts +3 -0
  154. package/dist/types/components/GlobalEntry/fields/TrustQuestionnaire/types.d.ts +5 -0
  155. package/dist/types/components/GlobalEntry/forms/EntityInformation/EntityInformation.d.ts +1 -3
  156. package/dist/types/components/GlobalEntry/forms/EntityInformation/types.d.ts +1 -2
  157. package/dist/types/components/GlobalEntry/forms/RegistrationInformation/types.d.ts +5 -1
  158. package/dist/types/components/GlobalEntry/mapping/globalEntryKeyMapping.d.ts +0 -3
  159. package/dist/types/components/GlobalEntry/mapping/mapGlobalEntrySchemaToLegalEntity.d.ts +2 -3
  160. package/dist/types/components/GlobalEntry/mapping/mapLegalEntityToGlobalEntrySchema.d.ts +1 -6
  161. package/dist/types/components/GlobalEntry/rules.d.ts +5 -2
  162. package/dist/types/components/GlobalEntry/utils/getAvailableCompanyStructures.d.ts +2 -1
  163. package/dist/types/components/GlobalEntry/utils/submitGlobalEntry.d.ts +1 -4
  164. package/dist/types/components/GlobalEntry/utils/utils.d.ts +7 -4
  165. package/dist/types/components/Individual/forms/AdditionalPersonalDetails/AdditionalPersonalDetails.types.d.ts +1 -2
  166. package/dist/types/components/Individual/forms/Individual.rules.d.ts +7 -6
  167. package/dist/types/components/Individual/helpers/findRelevantTaxInformation.d.ts +8 -2
  168. package/dist/types/components/Individual/helpers/getSubmittableTaxInformation.d.ts +20 -0
  169. package/dist/types/components/Individual/mapping/mapIndividualSchemaToLegalEntity.d.ts +5 -3
  170. package/dist/types/components/Individual/tasks/DecisionMakers/DecisionMakerDetails/utils.d.ts +6 -67
  171. package/dist/types/components/Individual/tasks/IndividualDropin/IndividualSummary.d.ts +27 -0
  172. package/dist/types/components/Individual/utils/formatDataForSummary.d.ts +49 -0
  173. package/dist/types/components/Shared/FormFlow/FormFlow.d.ts +1 -1
  174. package/dist/types/components/Shared/FormFlow/FormFlow.types.d.ts +0 -5
  175. package/dist/types/components/Shared/Summary/Summary.d.ts +10 -7
  176. package/dist/types/components/Shared/Summary/types.d.ts +3 -21
  177. package/dist/types/components/Shared/SummarySection/SummaryBulletList.d.ts +8 -0
  178. package/dist/types/components/Shared/fields/RegistrationAndOperationalAddressFields/types.d.ts +2 -0
  179. package/dist/types/components/Shared/fields/RegistrationAndOperationalAddressFields/utils.d.ts +2 -4
  180. package/dist/types/components/Shared/fields/ReportedValueOptionField/types.d.ts +3 -0
  181. package/dist/types/components/Shared/forms/Address/constants.d.ts +2 -0
  182. package/dist/types/components/Shared/forms/Address/localized/jp/JpAddressFields.d.ts +2 -9
  183. package/dist/types/components/Shared/forms/Address/localized/jp/mapAddressLocalizationToJpAddressSchema.d.ts +2 -2
  184. package/dist/types/components/Shared/forms/Address/localized/jp/mapJpAddressSchemaToAddressLocalizations.d.ts +2 -2
  185. package/dist/types/components/Shared/forms/Address/localized/jp/mapJpAddressSummary.d.ts +2 -4
  186. package/dist/types/components/Shared/forms/Address/rules.d.ts +13 -0
  187. package/dist/types/components/Shared/forms/Address/types.d.ts +7 -1
  188. package/dist/types/components/Shared/forms/Address/utils.d.ts +5 -11
  189. package/dist/types/components/Trust/forms/Trust/rules.d.ts +3 -1
  190. package/dist/types/components/Trust/tasks/RoleAndTypeDropin/formatRoleAndEntityTypeSummary.d.ts +2 -3
  191. package/dist/types/components/Trust/utils/formatDataForSummary.d.ts +2 -1
  192. package/dist/types/core/EmbedShell/EmbedShell.d.ts +4 -1
  193. package/dist/types/core/EmbedShell/useTheme.d.ts +9 -0
  194. package/dist/types/embeds/onboarding/adyen-onboarding.d.ts +1 -1
  195. package/dist/types/embeds/onboarding/adyen-onboarding.types.d.ts +8 -0
  196. package/dist/types/hooks/useStoredStateOrProvince.d.ts +9 -0
  197. package/dist/types/types/datasets/state-code.d.ts +36 -1
  198. package/dist/types/types/form-rules.d.ts +2 -2
  199. package/dist/types/utils/analytics/getPrefilledDetails.d.ts +3 -0
  200. package/dist/types/utils/entityStatusUtil.d.ts +1 -1
  201. package/dist/types/utils/fieldConfigurations.d.ts +1 -1
  202. package/dist/types/utils/legalArrangementUtils.d.ts +2 -0
  203. package/dist/{types-BymnGWO9.js → types-DVMWWwBT.js} +1 -1
  204. package/dist/{form-rules-DaLzvm8o.js → unincorporatedPartnership-Dr3lPgDv.js} +38 -4
  205. package/dist/{useBusinessDetailsData-D1DJeC90.js → useBusinessDetailsData-DrN9ZzIG.js} +100 -90
  206. package/dist/{useCanSeeIntroduction-CvLOidr8.js → useCanSeeIntroduction-BDarBkmx.js} +2 -2
  207. package/dist/useCreateLegalEntity-CgzVD39K.js +24 -0
  208. package/dist/{useDataMissingRemediations-DKjYzfe2.js → useDataMissingRemediations-BfC7ECSn.js} +1 -1
  209. package/dist/{useForm-B5MdX_HU.js → useForm-Cibudto5.js} +3 -3
  210. package/dist/{useHideTaskStepper-BgCN--mG.js → useHideTaskStepper-Betx9MGy.js} +1 -1
  211. package/dist/{useId-DbtfzzaE.js → useId-e2xn6OME.js} +2 -2
  212. package/dist/{useNavigate-uuRpGZuZ.js → useNavigate-DxEfo192.js} +33 -33
  213. package/dist/{useSalesChannels-XZRfoa6v.js → useSalesChannels-C09EqYFN.js} +1 -1
  214. package/dist/{useTaskLandedEvent-DzsLZguJ.js → useTaskLandedEvent-C-kML6lH.js} +1 -1
  215. package/dist/{useTrustMembers-xuXOS0a8.js → useTrustMembers-CZ28rgNA.js} +3 -3
  216. package/dist/{useUnincorporatedPartnershipMembers-DcfQJdVZ.js → useUnincorporatedPartnershipMembers-e3nDscEc.js} +2 -2
  217. package/dist/{utils-BD22komZ.js → utils-C3-aLHsN.js} +3 -3
  218. package/dist/{utils-CtCqc_ym.js → utils-C_z60qSD.js} +4 -5
  219. package/dist/{utils-BFxg3gPM.js → utils-ChZNfG5_.js} +1 -1
  220. package/dist/utils-gszwUnoh.js +49 -0
  221. package/dist/{validate-mbqt6wsS.js → validate-BDG97Hw4.js} +4 -4
  222. package/dist/{validate-r2j-Yc-q.js → validate-C1VibHZH.js} +26 -2
  223. package/dist/{validate-DNq64o-B.js → validate-Dve-kxSi.js} +11 -5
  224. package/dist/{validate-83HsNk18.js → validate-bah41KLb.js} +20 -9
  225. package/dist/{validateExtractionResult-IRRMwcNi.js → validateExtractionResult-D3AuQo5-.js} +3 -3
  226. package/package.json +6 -5
  227. package/dist/Image-CxnjHtP1.js +0 -33
  228. package/dist/List-qvNxW9lm.js +0 -72
  229. package/dist/StateField-BMyu6YZZ.js +0 -296
  230. package/dist/en-US-U0d3NI20.js +0 -7
  231. package/dist/mapJpAddressSchemaToAddressLocalizations-CAoOxUg9.js +0 -75
  232. package/dist/mapLegalEntityToIndividualSchema-Bl89JIZK.js +0 -254
  233. package/dist/trustMemberGuidance-BpeDHAJP.js +0 -27
  234. package/dist/types/components/Shared/NewSummary/NewSummary.d.ts +0 -10
  235. package/dist/types/components/Shared/Summary/summaryItem.d.ts +0 -17
  236. package/dist/types/components/Shared/forms/Address/localized/jp/jpAddressSchema.d.ts +0 -17
  237. package/dist/unincorporatedPartnership-BbNowjM2.js +0 -11
@@ -1,11 +1,11 @@
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] = "b92c06bd-ec51-47d7-b6a8-8690f65ced30", e._sentryDebugIdIdentifier = "sentry-dbid-b92c06bd-ec51-47d7-b6a8-8690f65ced30");
3
+ n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "7a469f1d-957a-4e60-a92c-76ad5b1b7f1f", e._sentryDebugIdIdentifier = "sentry-dbid-7a469f1d-957a-4e60-a92c-76ad5b1b7f1f");
4
4
  } catch (e) {}
5
- import { t as EndStateLayout } from "./EndStateLayout-C5Pqler-.js";
5
+ import { t as EndStateLayout } from "./EndStateLayout-B-M90Rnh.js";
6
6
  import { t as useTaskStepperContext } from "./useTaskStepperContext-DCNMsKUc.js";
7
- import { t as useHideTaskStepper } from "./useHideTaskStepper-BgCN--mG.js";
8
- import { TaxReportingDropin } from "./TaxReportingDropin-C9jUzNzP.js";
7
+ import { t as useHideTaskStepper } from "./useHideTaskStepper-Betx9MGy.js";
8
+ import { TaxReportingDropin } from "./TaxReportingDropin-BVohPujf.js";
9
9
  import { jsx } from "preact/jsx-runtime";
10
10
  //#region src/adaptiveWorkflow/components/Layout/Steps/TaxReportingWorkflow.tsx
11
11
  var TaxReportingWorkflow = ({ node }) => {
@@ -1,12 +1,12 @@
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] = "6e0d8ee7-5b4c-474b-a5a2-42c86baac674", e._sentryDebugIdIdentifier = "sentry-dbid-6e0d8ee7-5b4c-474b-a5a2-42c86baac674");
3
+ n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "4c036282-7247-4f74-bc11-3fe56ce5a89b", e._sentryDebugIdIdentifier = "sentry-dbid-4c036282-7247-4f74-bc11-3fe56ce5a89b");
4
4
  } catch (e) {}
5
5
  import { n as addResourceBundles, o as __exportAll, r as useTranslation } from "./translation-CpH8D2NK.js";
6
- import { A as _rolldown_dynamic_import_helper_default, a as doesLegalEntityRequiresLegalRepresentative, x as Alert } from "./resolveEnvironment-DwfwgVEU.js";
6
+ import { C as Alert, M as _rolldown_dynamic_import_helper_default, a as doesLegalEntityRequiresLegalRepresentative } from "./resolveEnvironment-CrNBwIpQ.js";
7
7
  import { t as createLogger } from "./logger-Z8AeTE4x.js";
8
8
  import { t as Loader } from "./Loader-BDaKGf77.js";
9
- import { t as Button } from "./Button-Dwr6jvJZ.js";
9
+ import { t as Button } from "./Button-BYafPrZH.js";
10
10
  import { n as httpGet, r as httpPost, s as useApiContext } from "./http-C8rt2BZk.js";
11
11
  import { r as useLegalEntity, t as ROOT_LE } from "./useLegalEntity-CxeMoCm4.js";
12
12
  import { t as getLegalEntityCountry } from "./getLegalEntityCountry-BK-HHa65.js";
@@ -14,22 +14,22 @@ import { t as StackLayout } from "./StackLayout-J1ynSX-P.js";
14
14
  import { t as TaskTypes } from "./taskTypes-3vSkMBDm.js";
15
15
  import { a as getLegalRepresentative } from "./entityAssociationUtil-BlfcBl3i.js";
16
16
  import { a as getOwnSignatories } from "./decisionMakerRoles-DA8MK9Dh.js";
17
- import { i as useToggleContext, t as Checkbox } from "./Checkbox-CpzEl3ji.js";
18
- import { i as useAnalyticsContext } from "./Modal-C-T-spfu.js";
17
+ import { i as useToggleContext, t as Checkbox } from "./Checkbox-qFA2J_1r.js";
18
+ import { i as useAnalyticsContext } from "./Modal-ChWNV9yG.js";
19
19
  import { n as useTermsOfServiceAcceptanceInfos, t as useTermsOfServiceStatus } from "./useTermsOfServiceStatus-FDpSDjco.js";
20
20
  import { t as Card } from "./Card-BCGLpdw7.js";
21
- import { n as useInvalidateRootLegalEntity, r as useToastContext } from "./useId-DbtfzzaE.js";
22
- import { t as EndStateLayout } from "./EndStateLayout-C5Pqler-.js";
21
+ import { n as useInvalidateRootLegalEntity, r as useToastContext } from "./useId-e2xn6OME.js";
22
+ import { t as EndStateLayout } from "./EndStateLayout-B-M90Rnh.js";
23
23
  import { t as downloadFile } from "./file-1IenVoh8.js";
24
- import { a as MaybeModal, i as ProgressBar, p as LoaderWrapper, r as Field, t as Select, u as getLanguageCode } from "./Select-DwuMMZWv.js";
24
+ import { c as MaybeModal, o as Field, p as LoaderWrapper, r as getLanguageCode, s as ProgressBar, t as Select } from "./Select-BMGxcmZy.js";
25
25
  import { n as getLegalEntityNameBasedOnType } from "./getName-Cii7OyRd.js";
26
- import { t as useTaskLandedEvent } from "./useTaskLandedEvent-DzsLZguJ.js";
26
+ import { t as useTaskLandedEvent } from "./useTaskLandedEvent-C-kML6lH.js";
27
+ import { t as useForm } from "./useForm-Cibudto5.js";
28
+ import { t as formatValidationError } from "./formatValidationError-BO9k5bVJ.js";
27
29
  import { t as localizeDateString } from "./localizeDateString-Dxlqr4rL.js";
28
- import { t as useForm } from "./useForm-B5MdX_HU.js";
29
- import { t as formatValidationError } from "./formatValidationError-CwtW9tMt.js";
30
30
  import { t as ContractViewer } from "./ContractViewer-CG9UNGz1.js";
31
31
  import { useCallback, useEffect, useMemo, useState } from "preact/hooks";
32
- import { Fragment, jsx, jsxs } from "preact/jsx-runtime";
32
+ import { jsx, jsxs } from "preact/jsx-runtime";
33
33
  import { skipToken, useMutation, useQuery } from "@tanstack/preact-query";
34
34
  //#region src/api/termsOfService/useAcceptTermsOfService.ts
35
35
  var acceptTermsOfService = async (legalEntityId, baseUrl, termsOfServiceDocumentId, data) => {
@@ -387,38 +387,41 @@ function ServiceAgreementDropin({ legalEntityResponse, handleAddSigner, handleSi
387
387
  variant: "info",
388
388
  title: contractT(($) => $["nothingNeedsToBeSigned"])
389
389
  })]
390
- }), canSign && /* @__PURE__ */ jsxs(Fragment, { children: [
391
- !!signers.length && /* @__PURE__ */ jsx(Field, {
392
- name: "signer",
393
- label: contractT(($) => $["signer"]),
394
- className: ServiceAgreementDropin_module_default.tosSignerField,
395
- errorMessage: formatValidationError(errors.signer?.errorMessage, commonT),
396
- isValid: valid.signer,
397
- dataTestId: "signer",
398
- children: (childProps) => /* @__PURE__ */ jsx(Select, {
399
- ...childProps,
400
- onChange: handleChangeFor("signer", "blur"),
390
+ }), canSign && /* @__PURE__ */ jsxs("div", {
391
+ className: "u-margin-top-16",
392
+ children: [
393
+ !!signers.length && /* @__PURE__ */ jsx(Field, {
401
394
  name: "signer",
402
- placeholder: contractT(($) => $["selectSigner"]),
403
- selected: data.signer,
404
- items: signers
405
- })
406
- }),
407
- !isIndividual && addSignerAlert,
408
- /* @__PURE__ */ jsx(Field, {
409
- name: "acceptServiceAgreement",
410
- className: "u-margin-top-16",
411
- errorMessage: formatValidationError(errors.acceptServiceAgreement?.errorMessage, commonT),
412
- isValid: valid.acceptServiceAgreement,
413
- children: (childProps) => /* @__PURE__ */ jsx(Checkbox, {
414
- ...childProps,
415
- label: contractT(($) => $[acceptanceMessageKey], { ns: "contract" }),
416
- checked: data.acceptServiceAgreement ?? false,
395
+ label: contractT(($) => $["signer"]),
396
+ className: ServiceAgreementDropin_module_default.tosSignerField,
397
+ errorMessage: formatValidationError(errors.signer?.errorMessage, commonT),
398
+ isValid: valid.signer,
399
+ dataTestId: "signer",
400
+ children: (childProps) => /* @__PURE__ */ jsx(Select, {
401
+ ...childProps,
402
+ onChange: handleChangeFor("signer", "blur"),
403
+ name: "signer",
404
+ placeholder: contractT(($) => $["selectSigner"]),
405
+ selected: data.signer,
406
+ items: signers
407
+ })
408
+ }),
409
+ !isIndividual && addSignerAlert,
410
+ /* @__PURE__ */ jsx(Field, {
417
411
  name: "acceptServiceAgreement",
418
- onChange: handleChangeFor("acceptServiceAgreement")
412
+ className: "u-margin-top-16",
413
+ errorMessage: formatValidationError(errors.acceptServiceAgreement?.errorMessage, commonT),
414
+ isValid: valid.acceptServiceAgreement,
415
+ children: (childProps) => /* @__PURE__ */ jsx(Checkbox, {
416
+ ...childProps,
417
+ label: contractT(($) => $[acceptanceMessageKey], { ns: "contract" }),
418
+ checked: data.acceptServiceAgreement ?? false,
419
+ name: "acceptServiceAgreement",
420
+ onChange: handleChangeFor("acceptServiceAgreement")
421
+ })
419
422
  })
420
- })
421
- ] })]
423
+ ]
424
+ })]
422
425
  });
423
426
  const currentStep = signedForms.length;
424
427
  const totalSteps = forms.length;
@@ -489,8 +492,8 @@ function TermsOfServiceManagement({ legalEntityId, modalView = false, onClose, o
489
492
  "../../../language/locales/da-DK.json": () => import("./da-DK-B-BJLcqw.js"),
490
493
  "../../../language/locales/de-DE.json": () => import("./de-DE-BxTGFyOs.js"),
491
494
  "../../../language/locales/el-GR.json": () => import("./el-GR-IQwyd9ws.js"),
492
- "../../../language/locales/en-US.instructions.json": () => import("./en-US.instructions-BVNIyLRs.js"),
493
- "../../../language/locales/en-US.json": () => import("./en-US-U0d3NI20.js"),
495
+ "../../../language/locales/en-US.instructions.json": () => import("./en-US.instructions-myDXMUbk.js"),
496
+ "../../../language/locales/en-US.json": () => import("./en-US-8KLaHQaT.js"),
494
497
  "../../../language/locales/es-ES.json": () => import("./es-ES-Cg2IadcX.js"),
495
498
  "../../../language/locales/es-LA.json": () => import("./es-LA-DvMpG4FP.js"),
496
499
  "../../../language/locales/et-EE.json": () => import("./et-EE-eGeytyQh.js"),
@@ -1,12 +1,12 @@
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] = "48dc07fc-cba9-4f50-a2fd-753d070053ea", e._sentryDebugIdIdentifier = "sentry-dbid-48dc07fc-cba9-4f50-a2fd-753d070053ea");
3
+ n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "aeae103a-d495-475e-95a4-4a0c64fa5db6", e._sentryDebugIdIdentifier = "sentry-dbid-aeae103a-d495-475e-95a4-4a0c64fa5db6");
4
4
  } catch (e) {}
5
5
  import { r as useTranslation } from "./translation-CpH8D2NK.js";
6
6
  import { t as createLogger } from "./logger-Z8AeTE4x.js";
7
- import { n as debouncedInputEvent } from "./Checkbox-CpzEl3ji.js";
8
- import { i as useAnalyticsContext } from "./Modal-C-T-spfu.js";
9
- import { n as convertFullToHalf } from "./form-rules-DaLzvm8o.js";
7
+ import { n as debouncedInputEvent } from "./Checkbox-qFA2J_1r.js";
8
+ import { i as useAnalyticsContext } from "./Modal-ChWNV9yG.js";
9
+ import { i as convertFullToHalf } from "./unincorporatedPartnership-Dr3lPgDv.js";
10
10
  import { useState } from "preact/hooks";
11
11
  import cx from "classnames";
12
12
  import { Fragment, jsx, jsxs } from "preact/jsx-runtime";
@@ -1,13 +1,13 @@
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] = "f0e9db15-e781-4feb-a70f-796705896f70", e._sentryDebugIdIdentifier = "sentry-dbid-f0e9db15-e781-4feb-a70f-796705896f70");
3
+ n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "686d875f-4bdf-4d90-9a65-f964a36115e9", e._sentryDebugIdIdentifier = "sentry-dbid-686d875f-4bdf-4d90-9a65-f964a36115e9");
4
4
  } catch (e) {}
5
5
  import { r as useTranslation } from "./translation-CpH8D2NK.js";
6
- import { G as OTHER_ENTITIES_VALID_CHAR_REGEX, U as NO_ALPHABET_REGEX, ct as isValidMinLength, lt as matchesRegex, nt as hasText, ot as isInvalidName, tt as hasRepeatedCharacters, z as EMOJI_REGEX } from "./resolveEnvironment-DwfwgVEU.js";
7
- import { r as InputBase } from "./InputText-DIesIpnW.js";
8
- import { r as Field } from "./Select-DwuMMZWv.js";
6
+ import { G as NO_ALPHABET_REGEX, V as EMOJI_REGEX, ct as isInvalidName, dt as matchesRegex, it as hasText, q as OTHER_ENTITIES_VALID_CHAR_REGEX, rt as hasRepeatedCharacters, ut as isValidMinLength } from "./resolveEnvironment-CrNBwIpQ.js";
7
+ import { r as InputBase } from "./InputText-CGngUMdf.js";
8
+ import { o as Field } from "./Select-BMGxcmZy.js";
9
9
  import { n as withForm } from "./formHook-Dgi2CgbT.js";
10
- import { t as getValidationError } from "./getValidationError-RnMEkCKd.js";
10
+ import { t as getValidationError } from "./getValidationError--VxsluPA.js";
11
11
  import { jsx } from "preact/jsx-runtime";
12
12
  //#region src/adaptiveWorkflow/components/Shared/Fields/TextField/validators.ts
13
13
  var containsText = (val) => {
@@ -1,42 +1,45 @@
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] = "33890a7d-491a-4350-9bcb-0378d4505571", e._sentryDebugIdIdentifier = "sentry-dbid-33890a7d-491a-4350-9bcb-0378d4505571");
3
+ n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "62b9d1b6-5ab9-4d6e-8203-065512bcb51f", e._sentryDebugIdIdentifier = "sentry-dbid-62b9d1b6-5ab9-4d6e-8203-065512bcb51f");
4
4
  } catch (e) {}
5
5
  import { n as addResourceBundles, r as useTranslation } from "./translation-CpH8D2NK.js";
6
- import { A as _rolldown_dynamic_import_helper_default, G as OTHER_ENTITIES_VALID_CHAR_REGEX, T as datasetUtilities, U as NO_ALPHABET_REGEX, ct as isValidMinLength, k as Header, lt as matchesRegex, nt as hasText, ot as isInvalidName, p as getCountrySpecificTrustTypeOptions, tt as hasRepeatedCharacters, x as Alert, z as EMOJI_REGEX } from "./resolveEnvironment-DwfwgVEU.js";
6
+ import { C as Alert, D as datasetUtilities, G as NO_ALPHABET_REGEX, M as _rolldown_dynamic_import_helper_default, V as EMOJI_REGEX, ct as isInvalidName, dt as matchesRegex, it as hasText, j as Header, p as getCountrySpecificTrustTypeOptions, q as OTHER_ENTITIES_VALID_CHAR_REGEX, rt as hasRepeatedCharacters, ut as isValidMinLength, vt as useVersionConfiguration } from "./resolveEnvironment-CrNBwIpQ.js";
7
7
  import { t as Typography } from "./Typography-CAc_f5Iq.js";
8
8
  import { t as Loader } from "./Loader-BDaKGf77.js";
9
9
  import { s as useApiContext } from "./http-C8rt2BZk.js";
10
10
  import { r as useLegalEntity, t as ROOT_LE } from "./useLegalEntity-CxeMoCm4.js";
11
11
  import { t as getLegalEntityCountry } from "./getLegalEntityCountry-BK-HHa65.js";
12
+ import { t as useSettingsContext } from "./useSettingsContext-Bpf4UqRT.js";
12
13
  import { a as objectsDeepEqual, r as drop } from "./genUtils-nphCwt1A.js";
13
14
  import { t as CountryCodes } from "./country-code-CJk2hdPu.js";
14
- import { a as trustComponentsKeyMapping, i as trustApiKeyMapping, o as trustDocumentMapping, y as reverseMapping } from "./processCapabilities-FL4-KAbd.js";
15
+ import { a as trustComponentsKeyMapping, i as trustApiKeyMapping, o as trustDocumentMapping, y as reverseMapping } from "./processCapabilities-B75YIdXZ.js";
15
16
  import { t as TaskTypes } from "./taskTypes-3vSkMBDm.js";
16
17
  import { s as getOwnEntityAssociations } from "./entityAssociationUtil-BlfcBl3i.js";
17
- import { i as useToggleContext } from "./Checkbox-CpzEl3ji.js";
18
- import { t as InputText } from "./InputText-DIesIpnW.js";
18
+ import { i as useToggleContext } from "./Checkbox-qFA2J_1r.js";
19
+ import { t as InputText } from "./InputText-CGngUMdf.js";
19
20
  import { n as useAssociatedLegalEntity, t as getFormSlice } from "./getFormSlice-CxtXJ0-P.js";
20
- import { r as useToastContext } from "./useId-DbtfzzaE.js";
21
- import { a as composePerScenarioFormConfigurations, i as augmentWithCountryConfigs, o as getPropsFromConfigurations, r as resolveFieldMetadata, t as createFormRules } from "./form-rules-DaLzvm8o.js";
22
- import { n as useCapabilityProblems, t as getProblemsForEntity } from "./getProblemsForEntity-mdb3Bfpj.js";
23
- import { r as Field, t as Select } from "./Select-DwuMMZWv.js";
24
- import { o as StructuredList, r as formatObject } from "./utils-BD22komZ.js";
25
- import { c as mapAddressLabelsNewSummary, d as COUNTRIES_WITH_STATES_DATASET, i as getAddressSchemaForCountry, m as useCreateLegalEntity, p as useUpdateLegalEntity } from "./StateField-BMyu6YZZ.js";
26
- import { C as validateNotEmptyOnBlur, I as useFormComposer, K as createFormUtils, N as useMultiForm, Y as FormContextProvider, _ as FormFlow, c as COUNTRY_FIELD, g as useFormContext, l as CountryField, m as isValidationError, n as getRequiredForms, q as mergeFieldMetadataIntoProps, t as addValidityToForms } from "./dropinUtils-C0hhy3A9.js";
27
- import { t as ErrorPanel } from "./ErrorPanel-MWL7vQHx.js";
28
- import { A as COUNTRIES_THAT_USE_TAX_ID_INSTEAD_OF_VAT, g as exemptedFromTaxDefaultFieldMetadata, h as exemptedFromTaxDefaultFieldConfig, l as TAX_INFORMATION_FIELD, u as TaxInformationField, v as taxInformationDefaultFieldConfig, w as taxIdNumberOptions, y as taxInformationDefaultFieldMetadata } from "./bafinUtils-CW20t7tP.js";
29
- import { i as getCompanyRegistrationNumberOptions, l as registrationNumberDefaultFieldConfig, o as exemptFromRegistrationNumberDefaultFieldConfig, r as inferCompanyRegistrationNumberType, s as exemptFromRegistrationNumberDefaultFieldMetadata, t as getDefaultRegistrationNumberType, u as registrationNumberDefaultFieldMetadata } from "./getDefaultRegistrationNumberType-CVVuCd8E.js";
30
- import { n as BusinessRegistrationNumberField, t as BUSINESS_REGISTRATION_NUMBER_FIELD } from "./BusinessRegistrationNumberField-CBEz-yoj.js";
31
- import { a as UNINCORPORATED_PARTNERSHIP_COUNTRIES_REGISTRATION_NUMBER_REQUIRED, c as UNINCORPORATED_PARTNERSHIP_COUNTRIES_VAT_NUMBER_OPTIONAL, i as UNINCORPORATED_PARTNERSHIP_COUNTRIES_REGISTRATION_NUMBER_OPTIONAL, n as LEGAL_ARRANGEMENT_COUNTRIES_REQUIRING_DATE_OF_INCORPORATION, o as UNINCORPORATED_PARTNERSHIP_COUNTRIES_TAX_INFORMATION_OPTIONAL, s as UNINCORPORATED_PARTNERSHIP_COUNTRIES_TAX_INFORMATION_REQUIRED, t as ALLOWED_UNINCORPORATED_PARTNERSHIP_COUNTRIES } from "./legalArrangementUtils-Crgt_L7h.js";
32
- import { o as nestAddressSchema } from "./AddressFields-DSJ_dDIS.js";
33
- import { i as useScenarioConfiguration, r as getPageName, t as mapExistingFile } from "./mapExistingFile-BXfeQxev.js";
34
- import { t as useTaskLandedEvent } from "./useTaskLandedEvent-DzsLZguJ.js";
35
- import { n as isMaintenanceModeError, t as processValidationErrors } from "./processValidationErrors-CcgBvwPJ.js";
21
+ import { r as useToastContext } from "./useId-e2xn6OME.js";
22
+ import { a as resolveFieldMetadata, c as getPropsFromConfigurations, o as augmentWithCountryConfigs, r as createFormRules, s as composePerScenarioFormConfigurations } from "./unincorporatedPartnership-Dr3lPgDv.js";
23
+ import { n as useCapabilityProblems, t as getProblemsForEntity } from "./getProblemsForEntity-FHk416BA.js";
24
+ import { o as Field, t as Select } from "./Select-BMGxcmZy.js";
25
+ import { o as StructuredList, r as formatObject } from "./utils-C3-aLHsN.js";
26
+ import { h as useUpdateLegalEntity, o as mapAddressLabels, s as addressFieldRule } from "./StateField-TYw5No81.js";
27
+ import { O as validateNotEmptyOnBlur, R as useMultiForm, V as useFormComposer, W as FormContextProvider, b as useFormContext, h as isValidationError, l as COUNTRY_FIELD, n as getRequiredForms, t as addValidityToForms, u as CountryField, v as createFormUtils, x as FormFlow, y as mergeFieldMetadataIntoProps } from "./dropinUtils-D7sD4BX1.js";
28
+ import { T as COUNTRIES_THAT_USE_TAX_ID_INSTEAD_OF_VAT, U as taxIdNumberOptions, g as exemptedFromTaxDefaultFieldMetadata, h as exemptedFromTaxDefaultFieldConfig, l as TAX_INFORMATION_FIELD, u as TaxInformationField, v as taxInformationDefaultFieldConfig, y as taxInformationDefaultFieldMetadata } from "./bafinUtils-4C7AJpnd.js";
29
+ import { i as getCompanyRegistrationNumberOptions, l as registrationNumberDefaultFieldConfig, o as exemptFromRegistrationNumberDefaultFieldConfig, r as inferCompanyRegistrationNumberType, s as exemptFromRegistrationNumberDefaultFieldMetadata, t as getDefaultRegistrationNumberType, u as registrationNumberDefaultFieldMetadata } from "./getDefaultRegistrationNumberType-BWN86JDR.js";
30
+ import { c as UNINCORPORATED_PARTNERSHIP_COUNTRIES_TAX_INFORMATION_OPTIONAL, l as UNINCORPORATED_PARTNERSHIP_COUNTRIES_TAX_INFORMATION_REQUIRED, o as UNINCORPORATED_PARTNERSHIP_COUNTRIES_REGISTRATION_NUMBER_OPTIONAL, r as LEGAL_ARRANGEMENT_COUNTRIES_REQUIRING_DATE_OF_INCORPORATION, s as UNINCORPORATED_PARTNERSHIP_COUNTRIES_REGISTRATION_NUMBER_REQUIRED, t as ALLOWED_UNINCORPORATED_PARTNERSHIP_COUNTRIES, u as UNINCORPORATED_PARTNERSHIP_COUNTRIES_VAT_NUMBER_OPTIONAL } from "./legalArrangementUtils-CHlmmcB8.js";
31
+ import { n as BusinessRegistrationNumberField, t as BUSINESS_REGISTRATION_NUMBER_FIELD } from "./BusinessRegistrationNumberField-B2n9ugLK.js";
32
+ import { t as useCreateLegalEntity } from "./useCreateLegalEntity-CgzVD39K.js";
33
+ import { i as useScenarioConfiguration, r as getPageName, t as mapExistingFile } from "./mapExistingFile-CqbTLZ6i.js";
34
+ import { t as useTaskLandedEvent } from "./useTaskLandedEvent-C-kML6lH.js";
35
+ import { n as isMaintenanceModeError, t as processValidationErrors } from "./processValidationErrors-DKn7wWTY.js";
36
36
  import { n as documentApiUtils, r as getDocument, t as createDocumentRequest } from "./documentUtils-6K3LdjjN.js";
37
- import { i as getFieldsWithExistingData, t as PatriotActDisclosure } from "./PatriotActDisclosure-CWcGyfuA.js";
38
- import { n as NewSummary, t as SummarySection } from "./SummarySection-BVPfXtuP.js";
39
- import { _ as dateOfIncorporationFieldMetadata, a as defaultFieldConfig, c as REGISTRATION_AND_OPERATIONAL_ADDRESS_FIELDS, d as doingBusinessAsFieldMetadata, f as DBANameField, g as dateOfIncorporationFieldConfig, h as DateOfIncorporationField, i as getDefaultVatNumberType, l as RegistrationAndOperationalAddressFields, m as DATE_OF_INCORPORATION_FIELD, n as VAT_NUMBER_FIELD, o as defaultFieldMetadata, p as DBA_NAME_FIELD, r as VatNumberField, t as MemoizedConstitutionalDocument, u as doingBusinessAsAbsentFieldMetadata } from "./ConstitutionalDocument-C_ZgPp87.js";
37
+ import { i as getFieldsWithExistingData, t as PatriotActDisclosure } from "./PatriotActDisclosure-CAvpE8su.js";
38
+ import { t as ErrorPanel } from "./ErrorPanel-CuoQueZk.js";
39
+ import { t as Summary } from "./Summary-BwvaKucT.js";
40
+ import { t as SummarySection } from "./SummarySection-5L--khYg.js";
41
+ import { i as nestAddressSchema } from "./utils-gszwUnoh.js";
42
+ import { _ as dateOfIncorporationFieldMetadata, a as defaultFieldConfig, c as REGISTRATION_AND_OPERATIONAL_ADDRESS_FIELDS, d as doingBusinessAsFieldMetadata, f as DBANameField, g as dateOfIncorporationFieldConfig, h as DateOfIncorporationField, i as getDefaultVatNumberType, l as RegistrationAndOperationalAddressFields, m as DATE_OF_INCORPORATION_FIELD, n as VAT_NUMBER_FIELD, o as defaultFieldMetadata, p as DBA_NAME_FIELD, r as VatNumberField, t as MemoizedConstitutionalDocument, u as doingBusinessAsAbsentFieldMetadata } from "./ConstitutionalDocument-DzLLKoWV.js";
40
43
  import { useCallback, useEffect, useMemo, useState } from "preact/hooks";
41
44
  import { jsx, jsxs } from "preact/jsx-runtime";
42
45
  import { skipToken } from "@tanstack/preact-query";
@@ -63,12 +66,14 @@ var unincorporatedPartnershipBaseMapping = {
63
66
  "trustRegistrationAddress.registrationAddressStateOrProvince": "unincorporatedPartnership.registeredAddress.stateOrProvince",
64
67
  "trustRegistrationAddress.registrationAddressStreet": "unincorporatedPartnership.registeredAddress.street",
65
68
  "trustRegistrationAddress.registrationAddressStreet2": "unincorporatedPartnership.registeredAddress.street2",
69
+ "trustRegistrationAddress.registrationAddressDependentLocality": "unincorporatedPartnership.registeredAddress.dependentLocality",
66
70
  "trustRegistrationAddress.operationalAddressCity": "unincorporatedPartnership.principalPlaceOfBusiness.city",
67
71
  "trustRegistrationAddress.operationalAddressCountry": "unincorporatedPartnership.principalPlaceOfBusiness.country",
68
72
  "trustRegistrationAddress.operationalAddressPostalCode": "unincorporatedPartnership.principalPlaceOfBusiness.postalCode",
69
73
  "trustRegistrationAddress.operationalAddressStateOrProvince": "unincorporatedPartnership.principalPlaceOfBusiness.stateOrProvince",
70
74
  "trustRegistrationAddress.operationalAddressStreet": "unincorporatedPartnership.principalPlaceOfBusiness.street",
71
- "trustRegistrationAddress.operationalAddressStreet2": "unincorporatedPartnership.principalPlaceOfBusiness.street2"
75
+ "trustRegistrationAddress.operationalAddressStreet2": "unincorporatedPartnership.principalPlaceOfBusiness.street2",
76
+ "trustRegistrationAddress.operationalAddressDependentLocality": "unincorporatedPartnership.principalPlaceOfBusiness.dependentLocality"
72
77
  };
73
78
  var unincorporatedPartnershipComponentsKeyMapping = {
74
79
  "trustRegistrationDetails.exemptedFromVat": "unincorporatedPartnership.vatAbsenceReason",
@@ -373,15 +378,8 @@ var trustConstitutionalDocumentFormId = trustForms.trustConstitutionalDocument.f
373
378
  //#endregion
374
379
  //#region src/components/Trust/forms/Trust/rules.ts
375
380
  var COUNTRIES_THAT_USE_REGISTRATION_NUMBER = [CountryCodes.NewZealand];
376
- var rules = ({ data, country, taskType }) => {
377
- const addressFieldRule = (field, isOperational) => {
378
- if (isOperational && data.trustRegistrationAddress?.operationalAddressIsSame) return void 0;
379
- if (field === "country") return "REQUIRED";
380
- if (!getAddressSchemaForCountry(country).includes(field)) return void 0;
381
- if (field === "street2") return "OPTIONAL";
382
- if (field === "stateOrProvince") return COUNTRIES_WITH_STATES_DATASET.includes(country) ? "REQUIRED" : void 0;
383
- return "REQUIRED";
384
- };
381
+ var rules = ({ data, country, taskType, isSettingEnabled = () => false, version }) => {
382
+ const addressFieldRequired = (field, isOperational = false) => addressFieldRule(field, country, isSettingEnabled, version, isOperational, data.trustRegistrationAddress?.operationalAddressIsSame);
385
383
  return createFormRules({
386
384
  countryUsesTaxId: () => {
387
385
  if (taskType === TaskTypes.UNINCORPORATED_PARTNERSHIP) {
@@ -421,18 +419,20 @@ var rules = ({ data, country, taskType }) => {
421
419
  requireDateOfIncorporation: () => {
422
420
  if (LEGAL_ARRANGEMENT_COUNTRIES_REQUIRING_DATE_OF_INCORPORATION.includes(country)) return "REQUIRED";
423
421
  },
424
- registrationAddressStreetRequired: () => addressFieldRule("street", false),
425
- registrationAddressStreet2Required: () => addressFieldRule("street2", false),
426
- registrationAddressCityRequired: () => addressFieldRule("city", false),
427
- registrationAddressPostalCodeRequired: () => addressFieldRule("postalCode", false),
428
- registrationAddressStateOrProvinceRequired: () => addressFieldRule("stateOrProvince", false),
429
- registrationAddressCountryRequired: () => addressFieldRule("country", false),
430
- operationalAddressStreetRequired: () => addressFieldRule("street", true),
431
- operationalAddressStreet2Required: () => addressFieldRule("street2", true),
432
- operationalAddressCityRequired: () => addressFieldRule("city", true),
433
- operationalAddressPostalCodeRequired: () => addressFieldRule("postalCode", true),
434
- operationalAddressStateOrProvinceRequired: () => addressFieldRule("stateOrProvince", true),
435
- operationalAddressCountryRequired: () => addressFieldRule("country", true)
422
+ registrationAddressStreetRequired: () => addressFieldRequired("street"),
423
+ registrationAddressStreet2Required: () => addressFieldRequired("street2"),
424
+ registrationAddressDependentLocalityRequired: () => addressFieldRequired("dependentLocality"),
425
+ registrationAddressCityRequired: () => addressFieldRequired("city"),
426
+ registrationAddressPostalCodeRequired: () => addressFieldRequired("postalCode"),
427
+ registrationAddressStateOrProvinceRequired: () => addressFieldRequired("stateOrProvince"),
428
+ registrationAddressCountryRequired: () => addressFieldRequired("country"),
429
+ operationalAddressStreetRequired: () => addressFieldRequired("street", true),
430
+ operationalAddressStreet2Required: () => addressFieldRequired("street2", true),
431
+ operationalAddressDependentLocalityRequired: () => addressFieldRequired("dependentLocality", true),
432
+ operationalAddressCityRequired: () => addressFieldRequired("city", true),
433
+ operationalAddressPostalCodeRequired: () => addressFieldRequired("postalCode", true),
434
+ operationalAddressStateOrProvinceRequired: () => addressFieldRequired("stateOrProvince", true),
435
+ operationalAddressCountryRequired: () => addressFieldRequired("country", true)
436
436
  });
437
437
  };
438
438
  var TrustRegistrationAddress_module_default = {
@@ -665,7 +665,7 @@ function formatTrustRegistrationDetails(data, datasetUtils, isUnincorporatedPart
665
665
  [resolveFieldMetadata(dateOfIncorporationFieldConfig[country], {}, dateOfIncorporationFieldMetadata).label ?? "dateOfIncorporation"]: data.dateOfIncorporation
666
666
  };
667
667
  }
668
- function formatDataForSummary(data, forms, t, language, taskType) {
668
+ function formatDataForSummary(data, forms, t, language, taskType, isSettingEnabled) {
669
669
  const OMITTED_FORMS = ["summary"];
670
670
  const datasetUtils = datasetUtilities(language);
671
671
  const isUnincorporatedPartnership = taskType === TaskTypes.UNINCORPORATED_PARTNERSHIP;
@@ -698,14 +698,14 @@ function formatDataForSummary(data, forms, t, language, taskType) {
698
698
  items: summaryItems
699
699
  });
700
700
  if (form.formId === "trustRegistrationAddress") {
701
- const registrationAddressSummaryItems = translateAndFilterMappedSummary(mapAddressLabelsNewSummary(nestAddressSchema("registrationAddress", data.trustRegistrationAddress), datasetUtils));
701
+ const registrationAddressSummaryItems = translateAndFilterMappedSummary(mapAddressLabels(nestAddressSchema("registrationAddress", data.trustRegistrationAddress), datasetUtils, isSettingEnabled));
702
702
  if (registrationAddressSummaryItems.length > 0) summarySectionData.push({
703
703
  formId: "registrationAddress",
704
704
  label: t(($) => $["registrationAddress"], { ns: "common" }),
705
705
  items: registrationAddressSummaryItems
706
706
  });
707
707
  if (!data[form.formId]?.operationalAddressIsSame) {
708
- const operationalAddressSummaryItems = translateAndFilterMappedSummary(mapAddressLabelsNewSummary(nestAddressSchema("operationalAddress", data.trustRegistrationAddress), datasetUtils));
708
+ const operationalAddressSummaryItems = translateAndFilterMappedSummary(mapAddressLabels(nestAddressSchema("operationalAddress", data.trustRegistrationAddress), datasetUtils, isSettingEnabled));
709
709
  if (operationalAddressSummaryItems.length > 0) summarySectionData.push({
710
710
  formId: "operationalAddress",
711
711
  label: t(($) => $["operationalAddress"], { ns: "common" }),
@@ -846,7 +846,9 @@ function TrustDropin({ parentLegalEntity, country: countryProp, existingTrust, t
846
846
  const { baseUrl, rootLegalEntityId } = useApiContext();
847
847
  const { t, i18n } = useTranslation(["common", "trust"]);
848
848
  const [validationErrors, setValidationErrors] = useState();
849
+ const { isSettingEnabled } = useSettingsContext();
849
850
  const { isFeatureEnabled } = useToggleContext();
851
+ const { data: versionConfiguration } = useVersionConfiguration();
850
852
  const { showToast } = useToastContext();
851
853
  const [loadingStatus, setLoadingStatus] = useState("success");
852
854
  const [country, setCountry] = useState(countryProp);
@@ -913,11 +915,15 @@ function TrustDropin({ parentLegalEntity, country: countryProp, existingTrust, t
913
915
  const fieldsFromCustomRules = useMemo(() => rules({
914
916
  data: multiForm.data,
915
917
  country,
916
- taskType
918
+ taskType,
919
+ isSettingEnabled,
920
+ version: versionConfiguration?.version
917
921
  }), [
918
922
  country,
919
923
  multiForm.data,
920
- taskType
924
+ taskType,
925
+ isSettingEnabled,
926
+ versionConfiguration?.version
921
927
  ]);
922
928
  useEffect(() => {
923
929
  const props = getPropsFromConfigurations({
@@ -1051,14 +1057,15 @@ function TrustDropin({ parentLegalEntity, country: countryProp, existingTrust, t
1051
1057
  });
1052
1058
  const summarySections = useMemo(() => {
1053
1059
  if (activeForm.formId !== "summary") return [];
1054
- return formatDataForSummary(multiForm.data, forms, t, i18n.language, taskType);
1060
+ return formatDataForSummary(multiForm.data, forms, t, i18n.language, taskType, isSettingEnabled);
1055
1061
  }, [
1056
1062
  activeForm.formId,
1057
1063
  multiForm.data,
1058
1064
  forms,
1059
1065
  t,
1060
1066
  i18n.language,
1061
- taskType
1067
+ taskType,
1068
+ isSettingEnabled
1062
1069
  ]);
1063
1070
  const handleEditForm = (formId) => {
1064
1071
  if (formId === "registrationAddress" || formId === "operationalAddress") {
@@ -1076,7 +1083,7 @@ function TrustDropin({ parentLegalEntity, country: countryProp, existingTrust, t
1076
1083
  return /* @__PURE__ */ jsx(FormContextProvider, {
1077
1084
  form: multiForm,
1078
1085
  children: /* @__PURE__ */ jsx(FormFlow, {
1079
- summaryComponent: /* @__PURE__ */ jsxs(NewSummary, { children: [/* @__PURE__ */ jsx(ErrorPanel, {
1086
+ summaryComponent: /* @__PURE__ */ jsxs(Summary, { children: [/* @__PURE__ */ jsx(ErrorPanel, {
1080
1087
  validationErrors: allValidationErrors,
1081
1088
  verificationErrors: allVerificationErrors,
1082
1089
  formUtils: createFormUtils({ labels: {} }, t),
@@ -1,16 +1,16 @@
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] = "07b64395-362b-484c-a0a4-ff6b96d2c372", e._sentryDebugIdIdentifier = "sentry-dbid-07b64395-362b-484c-a0a4-ff6b96d2c372");
3
+ n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "4144e3cd-10d0-44c6-ab0e-3712d67177dc", e._sentryDebugIdIdentifier = "sentry-dbid-4144e3cd-10d0-44c6-ab0e-3712d67177dc");
4
4
  } catch (e) {}
5
5
  import { n as addResourceBundles, r as useTranslation } from "./translation-CpH8D2NK.js";
6
- import { A as _rolldown_dynamic_import_helper_default } from "./resolveEnvironment-DwfwgVEU.js";
6
+ import { M as _rolldown_dynamic_import_helper_default } from "./resolveEnvironment-CrNBwIpQ.js";
7
7
  import { t as Loader } from "./Loader-BDaKGf77.js";
8
8
  import { r as useLegalEntity } from "./useLegalEntity-CxeMoCm4.js";
9
9
  import { t as getLegalEntityCountry } from "./getLegalEntityCountry-BK-HHa65.js";
10
10
  import { t as TaskTypes } from "./taskTypes-3vSkMBDm.js";
11
- import { n as useCapabilityProblems, t as getProblemsForEntity } from "./getProblemsForEntity-mdb3Bfpj.js";
12
- import { t as useTrustMembers } from "./useTrustMembers-xuXOS0a8.js";
13
- import { r as BusinessDetailsDropin, t as useBusinessDetailsData } from "./useBusinessDetailsData-D1DJeC90.js";
11
+ import { n as useCapabilityProblems, t as getProblemsForEntity } from "./getProblemsForEntity-FHk416BA.js";
12
+ import { t as useTrustMembers } from "./useTrustMembers-CZ28rgNA.js";
13
+ import { r as BusinessDetailsDropin, t as useBusinessDetailsData } from "./useBusinessDetailsData-DrN9ZzIG.js";
14
14
  import { jsx } from "preact/jsx-runtime";
15
15
  import { skipToken } from "@tanstack/preact-query";
16
16
  import { useParams } from "wouter-preact";
@@ -1,16 +1,16 @@
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] = "674cdc04-2d6a-4d89-aef1-25730c1dba6d", e._sentryDebugIdIdentifier = "sentry-dbid-674cdc04-2d6a-4d89-aef1-25730c1dba6d");
3
+ n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "d4fef34d-7a09-4fa3-9f4f-78254550353b", e._sentryDebugIdIdentifier = "sentry-dbid-d4fef34d-7a09-4fa3-9f4f-78254550353b");
4
4
  } catch (e) {}
5
5
  import { n as addResourceBundles, r as useTranslation } from "./translation-CpH8D2NK.js";
6
- import { A as _rolldown_dynamic_import_helper_default } from "./resolveEnvironment-DwfwgVEU.js";
6
+ import { M as _rolldown_dynamic_import_helper_default } from "./resolveEnvironment-CrNBwIpQ.js";
7
7
  import { t as Loader } from "./Loader-BDaKGf77.js";
8
8
  import { r as useLegalEntity } from "./useLegalEntity-CxeMoCm4.js";
9
9
  import { t as getLegalEntityCountry } from "./getLegalEntityCountry-BK-HHa65.js";
10
10
  import { i as noop } from "./genUtils-nphCwt1A.js";
11
11
  import { t as TaskTypes } from "./taskTypes-3vSkMBDm.js";
12
- import { n as useCapabilityProblems, t as getProblemsForEntity } from "./getProblemsForEntity-mdb3Bfpj.js";
13
- import { t as IndividualDropin } from "./IndividualDropin-B70zK0AA.js";
12
+ import { n as useCapabilityProblems, t as getProblemsForEntity } from "./getProblemsForEntity-FHk416BA.js";
13
+ import { t as IndividualDropin } from "./IndividualDropin-MpaDWh9N.js";
14
14
  import { jsx } from "preact/jsx-runtime";
15
15
  import { skipToken } from "@tanstack/preact-query";
16
16
  import { useParams } from "wouter-preact";
@@ -1,33 +1,38 @@
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] = "915a496b-58b6-418a-be68-a7be487f5c59", e._sentryDebugIdIdentifier = "sentry-dbid-915a496b-58b6-418a-be68-a7be487f5c59");
3
+ n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "519ec536-ccac-4161-89ae-8d311335689d", e._sentryDebugIdIdentifier = "sentry-dbid-519ec536-ccac-4161-89ae-8d311335689d");
4
4
  } catch (e) {}
5
5
  import { n as addResourceBundles, r as useTranslation } from "./translation-CpH8D2NK.js";
6
- import { A as _rolldown_dynamic_import_helper_default, it as isEmpty, k as Header } from "./resolveEnvironment-DwfwgVEU.js";
6
+ import { M as _rolldown_dynamic_import_helper_default, j as Header, ot as isEmpty } from "./resolveEnvironment-CrNBwIpQ.js";
7
7
  import { t as createLogger } from "./logger-Z8AeTE4x.js";
8
8
  import { t as Loader } from "./Loader-BDaKGf77.js";
9
- import { t as Button } from "./Button-Dwr6jvJZ.js";
9
+ import { t as Button } from "./Button-BYafPrZH.js";
10
10
  import { r as useLegalEntity } from "./useLegalEntity-CxeMoCm4.js";
11
11
  import { t as getLegalEntityCountry } from "./getLegalEntityCountry-BK-HHa65.js";
12
12
  import { t as CountryCodes } from "./country-code-CJk2hdPu.js";
13
13
  import { s as getOwnEntityAssociations } from "./entityAssociationUtil-BlfcBl3i.js";
14
- import { r as TrustMemberTypes } from "./trustMemberGuidance-BpeDHAJP.js";
15
- import { i as useToggleContext } from "./Checkbox-CpzEl3ji.js";
16
- import { r as useToastContext } from "./useId-DbtfzzaE.js";
17
- import { r as resolveFieldMetadata } from "./form-rules-DaLzvm8o.js";
18
- import { n as SelectListItem, r as Field } from "./Select-DwuMMZWv.js";
19
- import { m as useCreateLegalEntity, p as useUpdateLegalEntity } from "./StateField-BMyu6YZZ.js";
20
- import { G as roleMetadata, K as createFormUtils, L as Summary, R as summaryStep, U as getRoleName, V as summaryItem, c as COUNTRY_FIELD, l as CountryField, q as mergeFieldMetadataIntoProps } from "./dropinUtils-C0hhy3A9.js";
21
- import { t as ErrorPanel } from "./ErrorPanel-MWL7vQHx.js";
22
- import { T as TileGroup } from "./bafinUtils-CW20t7tP.js";
23
- import { a as defaultFieldMetadata, n as LegalCompanyNameField, r as defaultFieldConfig, s as getLegalCompanyNameGuidanceText, t as LEGAL_COMPANY_NAME_FIELD } from "./LegalCompanyNameField-wgWJRR84.js";
14
+ import { t as TrustMemberTypes } from "./trustMemberType-Ix2sf6e_.js";
15
+ import { i as useToggleContext } from "./Checkbox-qFA2J_1r.js";
16
+ import { r as useToastContext } from "./useId-e2xn6OME.js";
17
+ import { a as resolveFieldMetadata } from "./unincorporatedPartnership-Dr3lPgDv.js";
18
+ import { n as SelectListItem, o as Field } from "./Select-BMGxcmZy.js";
19
+ import { o as StructuredList } from "./utils-C3-aLHsN.js";
20
+ import { h as useUpdateLegalEntity } from "./StateField-TYw5No81.js";
21
+ import { U as summaryStep, l as COUNTRY_FIELD, u as CountryField, v as createFormUtils, y as mergeFieldMetadataIntoProps } from "./dropinUtils-D7sD4BX1.js";
22
+ import { W as TileGroup } from "./bafinUtils-4C7AJpnd.js";
23
+ import { a as defaultFieldMetadata, n as LegalCompanyNameField, r as defaultFieldConfig, s as getLegalCompanyNameGuidanceText, t as LEGAL_COMPANY_NAME_FIELD } from "./LegalCompanyNameField-BsY3tJfX.js";
24
24
  import { t as isNewEntity } from "./isNewEntity-vML86iIM.js";
25
- import { t as useTrustMembers } from "./useTrustMembers-xuXOS0a8.js";
26
- import { t as TextArea } from "./TextArea-CQIt_2VI.js";
27
- import { t as useForm } from "./useForm-B5MdX_HU.js";
25
+ import { t as useTrustMembers } from "./useTrustMembers-CZ28rgNA.js";
26
+ import { t as useCreateLegalEntity } from "./useCreateLegalEntity-CgzVD39K.js";
27
+ import { t as ErrorPanel } from "./ErrorPanel-CuoQueZk.js";
28
+ import { t as TextArea } from "./TextArea-BaoeEZvH.js";
29
+ import { t as useForm } from "./useForm-Cibudto5.js";
28
30
  import { n as getFieldProps } from "./getProps-DVqK7eRw.js";
29
- import { n as nameFields, t as Name } from "./Name-C8NOxqDE.js";
31
+ import { n as nameFields, t as Name } from "./Name-C8hhvQlN.js";
30
32
  import { t as Spacer } from "./Spacer-CEHRO4Ml.js";
33
+ import { t as Summary } from "./Summary-BwvaKucT.js";
34
+ import { t as SummarySection } from "./SummarySection-5L--khYg.js";
35
+ import { r as roleMetadata, t as getRoleName } from "./roleMetadata-CmxqSnzp.js";
31
36
  import { a as trustMemberLegalEntityTypes, i as settlorExemptionReasonWithNoneOfTheAbove, n as isExemptSettlor, r as isOrganizationAndSettlor, t as couldBeExemptSettlor } from "./types-qahGXhtr.js";
32
37
  import { useEffect, useState } from "preact/hooks";
33
38
  import cx from "classnames";
@@ -582,23 +587,24 @@ var formatSettlorExemptionReasonsForSummary = (reasons, trustT) => /* @__PURE__
582
587
  var formatRoleAndEntityTypeSummary = (data, commonT, trustT, isOrganizationSettlorWithExemptionEnabled) => {
583
588
  const { trustMemberType, roles } = data;
584
589
  const role = formatRolesForSummary(roles, commonT);
590
+ const row = (term, details) => details ? [{
591
+ term: commonT(($) => $[term]),
592
+ details
593
+ }] : [];
585
594
  switch (trustMemberType) {
586
- case "undefinedBeneficiary": return {
587
- role,
588
- descriptionUndefinedBeneficiary: data.description
589
- };
590
- case "exemptSettlor": return {
591
- role,
592
- entityType: trustT(($) => $[data.legalEntityType]),
593
- firstName: data.exemptSettlorName?.firstName,
594
- lastName: data.exemptSettlorName?.lastName,
595
- country: isOrganizationSettlorWithExemptionEnabled ? data.country : void 0,
596
- legalCompanyName: isOrganizationSettlorWithExemptionEnabled ? data.name : void 0,
597
- settlorExemptionReason: summaryItem("otherInformation", formatSettlorExemptionReasonsForSummary(data.settlorExemptionReason ?? [], trustT))
598
- };
595
+ case "undefinedBeneficiary": return [...row("role", role), ...row("descriptionUndefinedBeneficiary", data.description)];
596
+ case "exemptSettlor": return [
597
+ ...row("role", role),
598
+ ...row("entityType", trustT(($) => $[data.legalEntityType])),
599
+ ...row("firstName", data.exemptSettlorName?.firstName),
600
+ ...row("lastName", data.exemptSettlorName?.lastName),
601
+ ...row("country", isOrganizationSettlorWithExemptionEnabled ? data.country : void 0),
602
+ ...row("legalCompanyName", isOrganizationSettlorWithExemptionEnabled ? data.name : void 0),
603
+ ...row("otherInformation", formatSettlorExemptionReasonsForSummary(data.settlorExemptionReason ?? [], trustT))
604
+ ];
599
605
  case "company":
600
606
  case "rootTrustee":
601
- case "regular": return {};
607
+ case "regular": return [];
602
608
  }
603
609
  };
604
610
  //#endregion
@@ -799,7 +805,7 @@ function RoleAndTypeDropin({ trust, trustMemberLe, existingTrustMember, navigate
799
805
  });
800
806
  }
801
807
  };
802
- const summaryData = trustMember === "incomplete" ? {} : { roleAndEntityType: formatRoleAndEntityTypeSummary(trustMember, commonT, trustT, isOrganizationSettlorWithExemptionEnabled) };
808
+ const summaryItems = trustMember === "incomplete" ? [] : formatRoleAndEntityTypeSummary(trustMember, commonT, trustT, isOrganizationSettlorWithExemptionEnabled);
803
809
  const onNavigateToNextStep = () => {
804
810
  if (isSummaryStep && trustMember !== "incomplete") {
805
811
  addOrUpdateTrustMember(trustMember, existingTrustMember);
@@ -848,10 +854,11 @@ function RoleAndTypeDropin({ trust, trustMemberLe, existingTrustMember, navigate
848
854
  isOrganizationSettlorWithExemptionEnabled,
849
855
  country
850
856
  }),
851
- isSummaryStep && /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(Summary, {
852
- data: summaryData,
853
- forms: [undefinedBeneficiaryForms.roleAndEntityType],
854
- gotoForm: gotoFormByFormIndex
857
+ isSummaryStep && /* @__PURE__ */ jsx(Summary, { children: summaryItems.length > 0 && /* @__PURE__ */ jsx(SummarySection, {
858
+ formId: regularForms.roleAndEntityType.formId,
859
+ label: commonT(($) => $["roleAndEntityType"]),
860
+ onEdit: (formId) => gotoFormByFormIndex(forms.findIndex((form) => form.formId === formId)),
861
+ children: /* @__PURE__ */ jsx(StructuredList, { items: summaryItems })
855
862
  }) }),
856
863
  /* @__PURE__ */ jsxs("div", {
857
864
  class: "u-display-flex u-margin-top-48 u-justify-content-space-between",