@adyen/kyc-components 4.0.0-beta.0 → 4.0.0-beta.3

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 (749) hide show
  1. package/dist/{AcceptTermsOfServiceComponent-Dh7RSJoE.js → AcceptTermsOfServiceComponent-i222mdxX.js} +54 -59
  2. package/dist/{AccountSetupRejected-PdYyKwbS.js → AccountSetupRejected-DHph9lFl.js} +6 -6
  3. package/dist/{Avatar-C8aZB2wq.js → Avatar-vCjWXfC7.js} +2 -2
  4. package/dist/{BusinessDetailsDropin-DC8FEWvP.js → BusinessDetailsDropin-DQcfiSR8.js} +408 -393
  5. package/dist/{BusinessFinancingComponent-B0vW7r62.js → BusinessFinancingComponent-DC3jzBrq.js} +3 -3
  6. package/dist/{BusinessFinancingDropin-D8HAwTSq.js → BusinessFinancingDropin-D2lMEbNh.js} +529 -701
  7. package/dist/{BusinessFinancingPage-L1APYvzn.js → BusinessFinancingPage-BPD2cSDR.js} +3 -3
  8. package/dist/{BusinessTypeSelectionPage-sfGqHnp6.js → BusinessTypeSelectionPage-Cdp8joPJ.js} +86 -91
  9. package/dist/{CZ-BhoS6sd6.js → CZ-BiPeoA9G.js} +11 -1
  10. package/dist/ContractViewer-B0bZ14Ts.js +947 -0
  11. package/dist/{CreateIndividualComponent-i-QNCzp0.js → CreateIndividualComponent-D9wnexv4.js} +7 -8
  12. package/dist/{CreateTransferInstrumentComponent-8n3tjBYK.js → CreateTransferInstrumentComponent-COzPdQjC.js} +4 -5
  13. package/dist/{CustomerSupport-BER6nSK2.js → CustomerSupport-NGBoBg3N.js} +27 -33
  14. package/dist/{DebugModal-DeSsKkh_.js → DebugModal-I2U6TjGT.js} +43 -69
  15. package/dist/{DecisionMakerDetailsPage-DgjlfKyP.js → DecisionMakerDetailsPage-BN-H1sJF.js} +3 -4
  16. package/dist/{DecisionMakers-D2TjKnOc.js → DecisionMakers-CZ5-IRtU.js} +128 -25
  17. package/dist/{ES-JRIf-4xI.js → ES-BlWV7xvh.js} +4 -6
  18. package/dist/{EmbeddedStatus-Bn5KNA0V.js → EmbeddedStatus-Blr0seRl.js} +13 -5
  19. package/dist/FormEndState-JB6QFSet.js +59 -0
  20. package/dist/{FormFlow-CZgc09E3.js → FormFlow-DjvdNEiV.js} +18 -22
  21. package/dist/{HU-v3vOxRm8.js → HU-D8vJYkDH.js} +10 -1
  22. package/dist/{IndividualOnfidoDropin-D6uwo7VI.js → IndividualOnfidoDropin-DHhyO2ai.js} +1364 -867
  23. package/dist/{Introduction-DW2IQ57R.js → Introduction-erRXgreE.js} +32 -35
  24. package/dist/LandingLayout-B45lEjOv.js +84 -0
  25. package/dist/{LegalRepresentativeDetailsPage-BfIDXqv1.js → LegalRepresentativeDetailsPage-rS5K4657.js} +3 -4
  26. package/dist/{ManageIndividualComponent-DJoEsE2m.js → ManageIndividualComponent-BEzE5lkX.js} +8 -12
  27. package/dist/{ManagePCIComponent-BGESFWL6.js → ManagePCIComponent-BgdGfAuT.js} +5 -5
  28. package/dist/{ManageTermsOfServiceComponent-_wTZrjqd.js → ManageTermsOfServiceComponent-BWkwy6YC.js} +7 -8
  29. package/dist/{ManageTransferInstrumentComponent-Cvc3kk94.js → ManageTransferInstrumentComponent-B8kRNftW.js} +21 -34
  30. package/dist/{OnboardingDropinComponent-CocnpjvA.js → OnboardingDropinComponent-DBW5N3Dr.js} +325 -364
  31. package/dist/{ProviderButton-vD5DUJaN.js → ProviderButton-B58n0cRC.js} +13 -24
  32. package/dist/{Review-BFgzcIDj.js → Review-O6Al47Cu.js} +11 -12
  33. package/dist/{RootBusinessDetailsPage-C6lHQShI.js → RootBusinessDetailsPage-q_6wAcer.js} +3 -4
  34. package/dist/{RootIndividualDetailsPage-DfpqHdAS.js → RootIndividualDetailsPage-CiXgSJsV.js} +3 -4
  35. package/dist/{SignPCIComponent-D35913wJ.js → SignPCIComponent-cqRNhGdl.js} +17 -23
  36. package/dist/{SingpassSelection-D2Xe1wGv.js → SingpassSelection-BWEJ3Yi-.js} +6 -9
  37. package/dist/{SoleProprietorshipPage-D2F8Ghmo.js → SoleProprietorshipPage-CRcJSpn9.js} +4 -5
  38. package/dist/{SourceOfFundsPage-RjAcZ3Bo.js → SourceOfFundsPage-BxLGXTHb.js} +533 -517
  39. package/dist/{StoreProvider-COHi02bX.js → StoreProvider-ClKLaHzy.js} +23640 -25317
  40. package/dist/{TaskItemStatus-Bi1L8gea.js → TaskItemStatus-DrTIwCTx.js} +14 -14
  41. package/dist/TaskStatusIndicator-CTtKjo0m.js +69 -0
  42. package/dist/{TaxReportingDropin-BLXgRbuR.js → TaxReportingDropin-DFZ2ehfk.js} +82 -102
  43. package/dist/{TileGroup-B1IymoWv.js → TileGroup-BtE472I1.js} +6 -8
  44. package/dist/{TrustDetailsPage-DVvGJ_Ta.js → TrustDetailsPage-CGiiTbfR.js} +93 -114
  45. package/dist/{TrustMemberCompanyPage-D0wTEhuh.js → TrustMemberCompanyPage-oLNhg0hg.js} +4 -5
  46. package/dist/{TrustMemberIndividualPage-BLuaBi3j.js → TrustMemberIndividualPage-Bgsis586.js} +3 -4
  47. package/dist/{UnincorporatedPartnershipIndividualPage-BhIihH2v.js → UnincorporatedPartnershipIndividualPage-DPE3grqL.js} +3 -4
  48. package/dist/{UnincorporatedPartnershipMemberCompanyPage-CgujXwfX.js → UnincorporatedPartnershipMemberCompanyPage-HUnc9g0g.js} +3 -4
  49. package/dist/{VerificationErrorAlert-BkImnGA-.js → VerificationErrorAlert-BBdJmGJu.js} +10 -8
  50. package/dist/{ViewVerificationStatusComponent-CRefu327.js → ViewVerificationStatusComponent-DDtXG_pM.js} +12 -13
  51. package/dist/adyen-business-financing.js +22 -29
  52. package/dist/adyen-individual.js +21 -22
  53. package/dist/adyen-kyc-components.js +137 -122
  54. package/dist/adyen-manage-individual.js +18 -21
  55. package/dist/adyen-manage-pci.js +18 -21
  56. package/dist/adyen-manage-terms-of-service.js +18 -21
  57. package/dist/adyen-manage-transfer-instruments.js +27 -30
  58. package/dist/adyen-onboarding.js +25 -22
  59. package/dist/adyen-sign-pci.js +22 -32
  60. package/dist/adyen-terms-of-service.js +32 -29
  61. package/dist/adyen-transfer-instrument.js +32 -31
  62. package/dist/{adyen-transfer-instrument.vue_vue_type_script_lang-BE-ro1iH.js → adyen-transfer-instrument.vue_vue_type_script_lang-DQBzahGy.js} +5 -1
  63. package/dist/adyen-verification-status.js +30 -33
  64. package/dist/bg-BG-BY3Wa361.js +54 -0
  65. package/dist/bg-BG-BvSUDgGF.js +13 -0
  66. package/dist/bg-BG-HpLj_LOM.js +16 -0
  67. package/dist/cs-CZ-BEFeaKsV.js +54 -0
  68. package/dist/cs-CZ-CQ_M3lEp.js +16 -0
  69. package/dist/cs-CZ-y4mvq4Lv.js +13 -0
  70. package/dist/{css-DZNXkIaY.js → css-BJGWcW8A.js} +2 -2
  71. package/dist/da-DK-D6UK8XT9.js +54 -0
  72. package/dist/da-DK-k4JW3iVF.js +16 -0
  73. package/dist/da-DK-qgQOVjDp.js +13 -0
  74. package/dist/de-DE-B3nctkG8.js +13 -0
  75. package/dist/de-DE-C7mjtS5w.js +16 -0
  76. package/dist/de-DE-DUl6gRKv.js +54 -0
  77. package/dist/de-DE-pSdsxBpQ.js +13 -0
  78. package/dist/decision-makers-group-CgddXgrx.js +1944 -0
  79. package/dist/el-GR-B5j7VZ3E.js +54 -0
  80. package/dist/el-GR-Bvjk5Sw8.js +13 -0
  81. package/dist/el-GR-CEQrkYHW.js +16 -0
  82. package/dist/el-GR-CdgLZhuO.js +13 -0
  83. package/dist/en-US-Bq2Twy6x.js +54 -0
  84. package/dist/en-US-DDagIr01.js +16 -0
  85. package/dist/en-US-DSoLr6rp.js +13 -0
  86. package/dist/es-ES-BRfK6tX7.js +13 -0
  87. package/dist/es-ES-Cavm0szq.js +54 -0
  88. package/dist/es-ES-DB1c74Kv.js +16 -0
  89. package/dist/es-ES-Dy1uR2H_.js +13 -0
  90. package/dist/et-EE-DUWZ2Vqm.js +54 -0
  91. package/dist/et-EE-d9V24rcf.js +13 -0
  92. package/dist/et-EE-xIegUSuv.js +16 -0
  93. package/dist/fi-FI-B0fnAFV2.js +13 -0
  94. package/dist/fi-FI-DVa-ccaW.js +54 -0
  95. package/dist/fi-FI-NCxneAqU.js +16 -0
  96. package/dist/fr-FR-BoKzVp2q.js +13 -0
  97. package/dist/fr-FR-CY9emHgF.js +54 -0
  98. package/dist/fr-FR-Dk6Lw2On.js +13 -0
  99. package/dist/fr-FR-daiUnUwo.js +16 -0
  100. package/dist/{getFieldsWithExistingData-UNUNInq5.js → getFieldsWithExistingData-BY--eXBQ.js} +3 -4
  101. package/dist/{hasDataChanged-CIg-bPSm.js → hasDataChanged-CwfuS4et.js} +4 -4
  102. package/dist/hr-HR-BAUywqDj.js +16 -0
  103. package/dist/hr-HR-CF0AHQzi.js +13 -0
  104. package/dist/hr-HR-CnP5sqih.js +54 -0
  105. package/dist/hu-HU-3GQojIHR.js +16 -0
  106. package/dist/hu-HU-BTlpbCpc.js +54 -0
  107. package/dist/hu-HU-CSPhOvLC.js +13 -0
  108. package/dist/it-IT-BH-eqIKH.js +13 -0
  109. package/dist/it-IT-D7G4BaP7.js +13 -0
  110. package/dist/it-IT-GgHc0cHR.js +54 -0
  111. package/dist/it-IT-pDWPFHEh.js +16 -0
  112. package/dist/ja-JP-B3yqM_FM.js +13 -0
  113. package/dist/ja-JP-BhS-_dIx.js +54 -0
  114. package/dist/ja-JP-DTW_hY1L.js +13 -0
  115. package/dist/ja-JP-scPXJ93L.js +16 -0
  116. package/dist/{json-DGARJCng.js → json-Dk6RRAV8.js} +2 -2
  117. package/dist/{localizeDateString-KlstHAcM.js → localizeDateString-CKCBXzSn.js} +6 -6
  118. package/dist/lt-LT-BcGNy8Ti.js +16 -0
  119. package/dist/lt-LT-DTQGR9M0.js +54 -0
  120. package/dist/lt-LT-Lzl_Cbw-.js +13 -0
  121. package/dist/lv-LV-BQ4F1GrV.js +54 -0
  122. package/dist/lv-LV-CBD07r1Y.js +16 -0
  123. package/dist/lv-LV-y00wN1pj.js +13 -0
  124. package/dist/{mapFinancialReportsToFinancialInformation-Cid31JpK.js → mapFinancialReportsToFinancialInformation-D_6u_bSS.js} +19 -12
  125. package/dist/minus-circle-filled-BGKeHaxJ.js +17 -0
  126. package/dist/nl-NL-BxJUDHMK.js +16 -0
  127. package/dist/nl-NL-CFzm75Jw.js +13 -0
  128. package/dist/nl-NL-CUcML482.js +54 -0
  129. package/dist/nl-NL-DmnFXAQC.js +13 -0
  130. package/dist/no-NO-BBCvsecq.js +54 -0
  131. package/dist/no-NO-DbvFfP96.js +13 -0
  132. package/dist/no-NO-Drup6Jyy.js +16 -0
  133. package/dist/pl-PL--mmxopYA.js +13 -0
  134. package/dist/pl-PL-BXv8Mmzb.js +16 -0
  135. package/dist/pl-PL-kGaeUP-w.js +54 -0
  136. package/dist/{plaintext-jF9fCLMp.js → plaintext-9WNCwUtz.js} +2 -2
  137. package/dist/plus-circle-filled-Cnf1oJTm.js +17 -0
  138. package/dist/preact/adyen-terms-of-service.js +1 -1
  139. package/dist/preact/adyen-transfer-instrument.js +2 -2
  140. package/dist/pt-PT-BVzXBFp7.js +13 -0
  141. package/dist/pt-PT-D8nU-UM2.js +16 -0
  142. package/dist/pt-PT-DpDxAynk.js +13 -0
  143. package/dist/pt-PT-JVqqgvPs.js +54 -0
  144. package/dist/resolveEnvironment-DQH1ab0S.js +84 -0
  145. package/dist/ro-RO-C83h2zHZ.js +54 -0
  146. package/dist/ro-RO-CG33OwqS.js +16 -0
  147. package/dist/ro-RO-Cdmevo9A.js +13 -0
  148. package/dist/ru-RU-FZb2upqh.js +13 -0
  149. package/dist/{rules-a4kJDPzY.js → rules-CCnLDGvk.js} +63 -64
  150. package/dist/sk-SK-CgLJIuJw.js +54 -0
  151. package/dist/sk-SK-DV_xkO69.js +16 -0
  152. package/dist/sk-SK-nfeuTcY5.js +13 -0
  153. package/dist/sl-SI-B5yeoadY.js +16 -0
  154. package/dist/sl-SI-BzeVaC1Z.js +54 -0
  155. package/dist/sl-SI-DUTZDqkP.js +13 -0
  156. package/dist/style.css +2124 -3093
  157. package/dist/styles-CLV89_hH.js +2125 -3094
  158. package/dist/sv-SE-BTx2XKAp.js +13 -0
  159. package/dist/sv-SE-CVmo11gI.js +54 -0
  160. package/dist/sv-SE-CfxyR53r.js +16 -0
  161. package/dist/sv-SE-rckxD-43.js +13 -0
  162. package/dist/types/api/address/address.types.d.ts +0 -1
  163. package/dist/types/api/address/useAddressCleanse.d.ts +1 -1
  164. package/dist/types/api/address/useSearchAddress.d.ts +0 -1
  165. package/dist/types/api/businessLines/useUpdateSourceOfFunds.d.ts +2 -2
  166. package/dist/types/api/companyDataSet/companyDataset.types.d.ts +2 -2
  167. package/dist/types/api/companyDataSet/constants.d.ts +1 -1
  168. package/dist/types/api/companyDataSet/handleCompanyDataset.d.ts +3 -0
  169. package/dist/types/api/companySearch/companySearch.types.d.ts +2 -2
  170. package/dist/types/api/companySelection/companySelection.types.d.ts +6 -0
  171. package/dist/types/api/companySelection/useCompanySelection.d.ts +21 -0
  172. package/dist/types/api/configurations/configurations.types.d.ts +9 -0
  173. package/dist/types/api/configurations/useScenarios.d.ts +33 -35
  174. package/dist/types/api/configurations/useSupportedCountries.d.ts +3 -3
  175. package/dist/types/api/configurations/useTaskTypes.d.ts +2 -2
  176. package/dist/types/api/configurations/useVersionConfiguration.d.ts +2 -2
  177. package/dist/types/api/createLegalEntity/useCreateLegalEntity.d.ts +11 -11
  178. package/dist/types/api/datasets/datasets.types.d.ts +6 -0
  179. package/dist/types/api/datasets/useLegalForms.d.ts +3 -8
  180. package/dist/types/api/datasets/useNaceCodes.d.ts +2 -2
  181. package/dist/types/api/datasets/useSourceOfFundsTypes.d.ts +2 -2
  182. package/dist/types/api/entityVerifications/entityVerifications.types.d.ts +15 -0
  183. package/dist/types/api/entityVerifications/useVerifyIdNumber.d.ts +2 -17
  184. package/dist/types/api/idNowProvider/idNowProvider.types.d.ts +7 -0
  185. package/dist/types/api/idNowProvider/useIdNowProvider.d.ts +14 -0
  186. package/dist/types/api/idVerificationProviders/idVerificationProviders.types.d.ts +6 -0
  187. package/dist/types/api/idVerificationProviders/idVerificationStartCheck.d.ts +3 -7
  188. package/dist/types/api/idVerificationProviders/useExtractDocumentInformation.d.ts +7 -7
  189. package/dist/types/api/legalEntity/useConfirmReview.d.ts +2 -2
  190. package/dist/types/api/legalEntity/useLegalEntity.d.ts +285 -223
  191. package/dist/types/api/legalEntity/useUpdateLegalEntity.d.ts +14 -14
  192. package/dist/types/api/onboardingStatus/onboardingStatus.types.d.ts +7 -0
  193. package/dist/types/api/onboardingStatus/useGenerateOnboardingLink.d.ts +2 -5
  194. package/dist/types/api/onboardingStatus/useOnboardingStatus.d.ts +1 -1
  195. package/dist/types/api/pciTemplate/pciTemplate.types.d.ts +9 -0
  196. package/dist/types/api/pciTemplate/usePciQuestionnaire.d.ts +2 -4
  197. package/dist/types/api/pciTemplate/usePciQuestionnaireList.d.ts +7 -9
  198. package/dist/types/api/pciTemplate/usePciStatus.d.ts +4 -9
  199. package/dist/types/api/pciTemplate/usePciTemplate.d.ts +2 -2
  200. package/dist/types/api/pciTemplate/useSignPci.d.ts +2 -2
  201. package/dist/types/api/providersConfiguration/providersConfiguration.types.d.ts +9 -0
  202. package/dist/types/api/providersConfiguration/useProviderStatus.d.ts +3 -13
  203. package/dist/types/api/queryKeys.d.ts +5 -3
  204. package/dist/types/api/taskStatus/taskStatus.types.d.ts +4 -0
  205. package/dist/types/api/taskStatus/useTaskStatus.d.ts +0 -3
  206. package/dist/types/api/taxClassification/taxClassification.types.d.ts +2 -0
  207. package/dist/types/api/taxClassification/useTaxClassification.d.ts +1 -2
  208. package/dist/types/api/termsOfService/termsOfService.types.d.ts +10 -0
  209. package/dist/types/api/termsOfService/useAcceptTermsOfService.d.ts +3 -10
  210. package/dist/types/api/termsOfService/useAcceptedTermsOfService.d.ts +9 -8
  211. package/dist/types/api/termsOfService/useTermsOfService.d.ts +12 -5
  212. package/dist/types/api/termsOfService/useTermsOfServiceAcceptanceInfos.d.ts +2 -2
  213. package/dist/types/api/termsOfService/useTermsOfServiceStatus.d.ts +2 -2
  214. package/dist/types/api/tinVerification/tinVerification.types.d.ts +4 -0
  215. package/dist/types/api/tinVerification/useVerifyTin.d.ts +2 -4
  216. package/dist/types/api/transferInstruments/transferInstruments.types.d.ts +25 -0
  217. package/dist/types/api/transferInstruments/useBankVerificationProviders.d.ts +1 -14
  218. package/dist/types/api/transferInstruments/useCreateTrustedTransferInstrument.d.ts +3 -6
  219. package/dist/types/api/transferInstruments/useHandleBankVerificationError.d.ts +4 -7
  220. package/dist/types/api/transferInstruments/useTransferInstruments.d.ts +1 -9
  221. package/dist/types/api/uiAnalytics/uiAnalytics.types.d.ts +7 -0
  222. package/dist/types/api/uiAnalytics/useAnalyticsSession.d.ts +2 -14
  223. package/dist/types/api/uiAnalytics/usePushAnalyticEvent.d.ts +2 -2
  224. package/dist/types/api/validation/useValidateAccountIdentification.d.ts +1 -6
  225. package/dist/types/api/validation/useValidatePhoneNumber.d.ts +4 -7
  226. package/dist/types/api/validation/validation.types.d.ts +8 -0
  227. package/dist/types/components/BankAccount/fields/BankAccountNumber/fieldConfig.d.ts +1 -1
  228. package/dist/types/components/BankAccount/fields/BankAccountNumber/types.d.ts +1 -1
  229. package/dist/types/components/BankAccount/fields/BankCode/fieldConfig.d.ts +1 -1
  230. package/dist/types/components/BankAccount/fields/BankCode/types.d.ts +1 -1
  231. package/dist/types/components/BankAccount/fields/BranchCode/fieldConfig.d.ts +1 -1
  232. package/dist/types/components/BankAccount/fields/BranchCode/types.d.ts +1 -1
  233. package/dist/types/components/BankAccount/fields/Iban/fieldConfig.d.ts +1 -1
  234. package/dist/types/components/BankAccount/fields/Iban/ibanValidator.d.ts +1 -1
  235. package/dist/types/components/BankAccount/fields/Iban/types.d.ts +1 -1
  236. package/dist/types/components/BankAccount/fields/SwiftCode/fieldConfig.d.ts +1 -1
  237. package/dist/types/components/BankAccount/forms/BankDocument/BankDocument.d.ts +0 -1
  238. package/dist/types/components/BankAccount/forms/BankDocument/BankDocumentRequirements.d.ts +1 -2
  239. package/dist/types/components/BankAccount/forms/BankDocument/types.d.ts +3 -2
  240. package/dist/types/components/BankAccount/forms/BankVerification/BankVerification.d.ts +2 -2
  241. package/dist/types/components/BankAccount/forms/BankVerification/types.d.ts +3 -3
  242. package/dist/types/components/BankAccount/forms/BankVerification/verification/widget/types.d.ts +1 -2
  243. package/dist/types/components/BankAccount/forms/PayoutAccount/CheckGuidance/CheckGuidance.d.ts +0 -1
  244. package/dist/types/components/BankAccount/forms/PayoutAccount/types.d.ts +1 -1
  245. package/dist/types/components/BankAccount/forms/PayoutDetails/PayoutDetails.d.ts +0 -1
  246. package/dist/types/components/BankAccount/forms/PayoutDetails/rules.d.ts +6 -6
  247. package/dist/types/components/BankAccount/forms/PayoutDetails/types.d.ts +3 -9
  248. package/dist/types/components/BankAccount/forms/PayoutVerificationMethod/allowedBankCountriesPerCountry.d.ts +1 -1
  249. package/dist/types/components/BankAccount/forms/PayoutVerificationMethod/types.d.ts +2 -2
  250. package/dist/types/components/BankAccount/hooks/useAsyncAccountDetailsValidationRules.d.ts +1 -1
  251. package/dist/types/components/BankAccount/mapping/mapPayoutAccountSchemaToApiBankAccount.d.ts +1 -1
  252. package/dist/types/components/BankAccount/mapping/mapPayoutDocumentsToApiDocuments.d.ts +1 -1
  253. package/dist/types/components/BankAccount/mapping/payoutKeyMappings.d.ts +1613 -1919
  254. package/dist/types/components/BankAccount/pages/PayoutDetailsPage.d.ts +1 -0
  255. package/dist/types/components/BankAccount/tasks/PayoutDetailsDropin/PayoutDetailsDropin.d.ts +1 -1
  256. package/dist/types/components/BankAccount/tasks/PayoutDetailsDropin/payoutDetailsFormConfig.d.ts +3 -3
  257. package/dist/types/components/BankAccount/tasks/PayoutDetailsDropin/utils.d.ts +3 -0
  258. package/dist/types/components/BankAccount/utils/defaultPayoutAccountFormat.d.ts +1 -1
  259. package/dist/types/components/BankAccount/utils/payoutAccountUtil.d.ts +3 -3
  260. package/dist/types/components/Business/forms/AdditionalInformation/types.d.ts +3 -2
  261. package/dist/types/components/Business/forms/AdditionalInformation/utils.d.ts +1 -0
  262. package/dist/types/components/Business/forms/BasicInformation/types.d.ts +3 -2
  263. package/dist/types/components/Business/forms/BusinessDetails/forms.d.ts +2 -2
  264. package/dist/types/components/Business/forms/BusinessDetails/types.d.ts +2 -2
  265. package/dist/types/components/Business/forms/BusinessSelection/{BusinessInformationCard.d.ts → BusinessInformationCard/BusinessInformationCard.d.ts} +4 -6
  266. package/dist/types/components/Business/forms/BusinessSelection/BusinessSelection.d.ts +1 -1
  267. package/dist/types/components/Business/forms/CompanyStructure/types.d.ts +1 -1
  268. package/dist/types/components/Business/forms/ProofOfDirectorDocument/types.d.ts +1 -1
  269. package/dist/types/components/Business/forms/ProofOfOwnershipDocument/types.d.ts +1 -1
  270. package/dist/types/components/Business/forms/ProofOfSignatoryDocument/types.d.ts +1 -1
  271. package/dist/types/components/Business/forms/RegistrationDocument/config.d.ts +1 -1
  272. package/dist/types/components/Business/forms/RegistrationDocument/types.d.ts +1 -1
  273. package/dist/types/components/Business/forms/TaxDocument/config.d.ts +1 -1
  274. package/dist/types/components/Business/forms/TaxDocument/types.d.ts +1 -1
  275. package/dist/types/components/Business/forms/rules.d.ts +23 -20
  276. package/dist/types/components/Business/mapping/businessDetails/mapBusinessDetailsSchemaToLegalEntity.d.ts +1 -1
  277. package/dist/types/components/Business/mapping/businessDetails/mapLegalEntityToBusinessDetailsSchema.d.ts +1 -1
  278. package/dist/types/components/Business/tasks/BusinessDetailsDropin/businessDetailsFormConfig.d.ts +1 -2
  279. package/dist/types/components/Business/tasks/BusinessDetailsDropin/businessDetailsStore.d.ts +2 -2
  280. package/dist/types/components/Business/tasks/BusinessDetailsDropin/types.d.ts +3 -3
  281. package/dist/types/components/Business/tasks/BusinessDetailsDropin/utils.d.ts +1 -4
  282. package/dist/types/components/Business/utils/companyUtil.d.ts +1 -1
  283. package/dist/types/components/Contract/tasks/ServiceAgreementDropin/ServiceAgreementDropin.d.ts +0 -1
  284. package/dist/types/components/EFP/fields/LegalFormField/LegalFormField.d.ts +1 -1
  285. package/dist/types/components/EFP/fields/LegalFormField/types.d.ts +6 -3
  286. package/dist/types/components/EFP/fields/NaceCodeField/NaceCodeField.d.ts +1 -1
  287. package/dist/types/components/EFP/fields/NaceCodeField/types.d.ts +1 -0
  288. package/dist/types/components/EFP/mapping/businessFinancingKeyMappings.d.ts +2053 -24
  289. package/dist/types/components/EFP/mapping/mapBusinessFinancingToLegalEntity.d.ts +2 -2
  290. package/dist/types/components/EFP/mapping/mapLegalEntityToBusinessFinancing.d.ts +1 -2
  291. package/dist/types/components/EFP/tasks/BusinessFinancingDropin/BusinessFinancingBasicCompanyInformation.d.ts +5 -1
  292. package/dist/types/components/EFP/tasks/BusinessFinancingDropin/BusinessFinancingBusinessInformation.d.ts +10 -1
  293. package/dist/types/components/EFP/tasks/BusinessFinancingDropin/BusinessFinancingFinancialInformation.d.ts +11 -1
  294. package/dist/types/components/EFP/tasks/BusinessFinancingDropin/BusinessFinancingLegalInformation.d.ts +6 -1
  295. package/dist/types/components/EFP/tasks/BusinessFinancingDropin/BusinessFinancingOwnershipStructure.d.ts +7 -2
  296. package/dist/types/components/EFP/tasks/BusinessFinancingDropin/BusinessFinancingRegisteredAddress.d.ts +7 -1
  297. package/dist/types/components/EFP/tasks/BusinessFinancingDropin/types.d.ts +27 -112
  298. package/dist/types/components/EFP/tasks/BusinessFinancingDropin/utils.d.ts +17 -4
  299. package/dist/types/components/EFP/tasks/BusinessFinancingDropin/validate.d.ts +22 -0
  300. package/dist/types/components/EFP/tasks/SourceOfFundsDropin/SOFAdditionalData/SOFFinancierModal.d.ts +1 -2
  301. package/dist/types/components/EFP/tasks/SourceOfFundsDropin/SourceOfFundsUploader/SOFUploadModal.d.ts +0 -1
  302. package/dist/types/components/EFP/tasks/SourceOfFundsDropin/sofStore.d.ts +1 -1
  303. package/dist/types/components/EFP/tasks/SourceOfFundsDropin/types.d.ts +3 -3
  304. package/dist/types/components/EFP/tasks/SourceOfFundsDropin/utils.d.ts +1 -1
  305. package/dist/types/components/EFP/tasks/TaxReportingDropin/taxClassificationStore.d.ts +1 -1
  306. package/dist/types/components/EFP/tasks/TaxReportingDropin/types.d.ts +3 -3
  307. package/dist/types/components/EmbeddedDropins/BusinessFinancingComponent/utils.d.ts +3 -3
  308. package/dist/types/components/EmbeddedDropins/ManageTransferInstrumentComponent/ManageTransferInstrumentOverview/ManageTransferInstrumentOverview.d.ts +1 -1
  309. package/dist/types/components/EmbeddedDropins/ManageTransferInstrumentComponent/ManageTransferInstrumentOverviewItem/ManageTransferInstrumentOverviewItem.d.ts +1 -1
  310. package/dist/types/components/EmbeddedDropins/ManageTransferInstrumentComponent/ManageTransferInstrumentOverviewItemModal/ManageTransferInstrumentOverviewItemModal.d.ts +1 -1
  311. package/dist/types/components/EmbeddedDropins/OnboardingDropinComponent/DropinComposer/DropinComposer.d.ts +1 -1
  312. package/dist/types/components/Individual/fields/DecisionMakerRole/NomineeDecisionMakerRole.d.ts +1 -1
  313. package/dist/types/components/Individual/fields/DecisionMakerRole/types.d.ts +1 -1
  314. package/dist/types/components/Individual/fields/DriversLicense/DriversLicense.types.d.ts +1 -1
  315. package/dist/types/components/Individual/fields/IdentityNumber/IdentityNumber.d.ts +1 -2
  316. package/dist/types/components/Individual/fields/IdentityNumber/fieldConfig.d.ts +3 -3
  317. package/dist/types/components/Individual/fields/IdentityNumber/type.d.ts +1 -1
  318. package/dist/types/components/Individual/fields/LocalizedNameFields/LocalizedNameFields.d.ts +2 -0
  319. package/dist/types/components/Individual/fields/LocalizedNameFields/types.d.ts +9 -0
  320. package/dist/types/components/Individual/fields/NameFields/NameFields.d.ts +13 -0
  321. package/dist/types/components/Individual/fields/NameFields/types.d.ts +23 -0
  322. package/dist/types/components/Individual/fields/NameFields/validate.d.ts +4 -0
  323. package/dist/types/components/Individual/forms/Individual/IdDocumentUpload/IdDocumentManualUpload.d.ts +1 -1
  324. package/dist/types/components/Individual/forms/Individual/IdDocumentUpload/types.d.ts +3 -3
  325. package/dist/types/components/Individual/forms/Individual/IdDocumentUpload/utils.d.ts +1 -1
  326. package/dist/types/components/Individual/forms/Individual/IdVerification/idVerificationProviderId.d.ts +1 -1
  327. package/dist/types/components/Individual/forms/Individual/IdVerificationMethod/IdVerificationMethod.d.ts +1 -1
  328. package/dist/types/components/Individual/forms/Individual/IdVerificationMethod/types.d.ts +2 -2
  329. package/dist/types/components/Individual/forms/Individual/Individual.d.ts +1 -1
  330. package/dist/types/components/Individual/forms/Individual/PersonalDetails/Identity/IdentityAu/IdentityAu.d.ts +1 -1
  331. package/dist/types/components/Individual/forms/Individual/PersonalDetails/Identity/IdentityHK/IdentityHK.d.ts +1 -1
  332. package/dist/types/components/Individual/forms/Individual/PersonalDetails/Identity/IdentityNZ/IdentityNZ.d.ts +1 -1
  333. package/dist/types/components/Individual/forms/Individual/PersonalDetails/Identity/identityUS/IdentityUS.d.ts +1 -1
  334. package/dist/types/components/Individual/forms/Individual/PersonalDetails/types.d.ts +7 -5
  335. package/dist/types/components/Individual/forms/Individual/PersonalDetails/validate.d.ts +2 -2
  336. package/dist/types/components/Individual/forms/Individual/rules.d.ts +34 -32
  337. package/dist/types/components/Individual/forms/Individual/types.d.ts +8 -8
  338. package/dist/types/components/Individual/forms/IndividualOnfido/AdditionalPersonalDetails/AdditionalPersonalDetails.d.ts +1 -1
  339. package/dist/types/components/Individual/forms/IndividualOnfido/AdditionalPersonalDetails/AdditionalPersonalDetails.types.d.ts +1 -1
  340. package/dist/types/components/Individual/forms/IndividualOnfido/AdditionalPersonalDetails/Identity/Identity.d.ts +1 -1
  341. package/dist/types/components/Individual/forms/IndividualOnfido/AdditionalPersonalDetails/Identity/validate.d.ts +1 -1
  342. package/dist/types/components/Individual/forms/IndividualOnfido/AdditionalPersonalDetails/validate.d.ts +2 -2
  343. package/dist/types/components/Individual/forms/IndividualOnfido/BasicDetails/BasicDetails.d.ts +1 -1
  344. package/dist/types/components/Individual/forms/IndividualOnfido/BasicDetails/BasicDetails.types.d.ts +3 -2
  345. package/dist/types/components/Individual/forms/IndividualOnfido/DataConflictsModal/ConflictRow.d.ts +1 -1
  346. package/dist/types/components/Individual/forms/IndividualOnfido/GuidanceQuestion/GuidanceQuestion.d.ts +7 -3
  347. package/dist/types/components/Individual/forms/IndividualOnfido/IdVerificationMethod/IdVerificationMethod.types.d.ts +1 -0
  348. package/dist/types/components/Individual/forms/IndividualOnfido/IdVerificationMethod/individualOnfidoConflictsSchema.d.ts +23 -9
  349. package/dist/types/components/Individual/forms/IndividualOnfido/IdVerificationMethod/mapExtractionResultToSchema.d.ts +1 -1
  350. package/dist/types/components/Individual/forms/IndividualOnfido/IndividualOnfido.d.ts +0 -1
  351. package/dist/types/components/Individual/forms/IndividualOnfido/IndividualOnfido.rules.d.ts +37 -34
  352. package/dist/types/components/Individual/forms/IndividualOnfido/IndividualOnfido.types.d.ts +4 -4
  353. package/dist/types/components/Individual/forms/IndividualOnfido/SignatoryQuestionnaire/SignatoryQuestionnaire.d.ts +1 -1
  354. package/dist/types/components/Individual/forms/IndividualOnfido/SignatoryQuestionnaire/SignatoryQuestionnaire.types.d.ts +1 -3
  355. package/dist/types/components/Individual/forms/IndividualOnfido/SignatoryQuestionnaire/SignatoryQuestionnaireModalContent.d.ts +1 -0
  356. package/dist/types/components/Individual/forms/IndividualOnfido/UboQuestionnaire/UboQuestionnaire.d.ts +1 -1
  357. package/dist/types/components/Individual/forms/IndividualOnfido/UboQuestionnaire/UboQuestionnaire.types.d.ts +3 -3
  358. package/dist/types/components/Individual/forms/IndividualOnfido/UboQuestionnaire/UboQuestionnaireModalContent.d.ts +5 -0
  359. package/dist/types/components/Individual/helpers/isOnfidoAutofillFlowEnabled.d.ts +1 -1
  360. package/dist/types/components/Individual/helpers/shouldShowMotionCapture.d.ts +2 -2
  361. package/dist/types/components/Individual/mapping/adjustOnfidoIdentificationData.d.ts +3 -0
  362. package/dist/types/components/Individual/mapping/getOnfidoIdentityTypeToApiIdentityTypeMap.d.ts +3 -0
  363. package/dist/types/components/Individual/mapping/individualOnfidoKeyMappings.d.ts +1 -0
  364. package/dist/types/components/Individual/mapping/mapIndividualOnfidoSchemaToLegalEntity.d.ts +3 -1
  365. package/dist/types/components/Individual/mapping/mapLocalization.d.ts +3 -0
  366. package/dist/types/components/Individual/tasks/DecisionMakers/DecisionMakersGettingStarted/DecisionMakersGettingStarted.d.ts +5 -0
  367. package/dist/types/components/Individual/tasks/DecisionMakers/DecisionMakersGettingStarted/DecisionMakersModalContent.d.ts +1 -0
  368. package/dist/types/components/Individual/tasks/IndividualDropin/individualFormConfig.d.ts +1 -1
  369. package/dist/types/components/Individual/tasks/IndividualOnfidoDropin/IndividualOnfidoStore.d.ts +6 -0
  370. package/dist/types/components/Individual/tasks/IndividualOnfidoDropin/individualOnfidoFormConfig.d.ts +1 -1
  371. package/dist/types/components/Shared/EntityAssociation/types.d.ts +1 -1
  372. package/dist/types/components/Shared/EntityGuidanceStatus/types.d.ts +1 -1
  373. package/dist/types/components/Shared/FormFlow/FormFlow.types.d.ts +1 -1
  374. package/dist/types/components/Shared/FormNavigation/FormNavigationItem.d.ts +1 -2
  375. package/dist/types/components/Shared/FormNavigation/types.d.ts +3 -3
  376. package/dist/types/components/Shared/FormWrapper/FormWrapper.d.ts +2 -2
  377. package/dist/types/components/Shared/Introduction/copy.d.ts +2 -2
  378. package/dist/types/components/Shared/SingpassSelection/types.d.ts +1 -1
  379. package/dist/types/components/Shared/Summary/Summary.d.ts +1 -2
  380. package/dist/types/components/Shared/Summary/summaryItem.d.ts +1 -1
  381. package/dist/types/components/Shared/Summary/types.d.ts +3 -3
  382. package/dist/types/components/Shared/devex/DebugListener/DebugModal.d.ts +0 -1
  383. package/dist/types/components/Shared/fields/BusinessRegistrationNumberField/BusinessRegistrationNumberField.d.ts +1 -1
  384. package/dist/types/components/Shared/fields/BusinessRegistrationNumberField/fieldConfig.d.ts +6 -4
  385. package/dist/types/components/Shared/fields/BusinessRegistrationNumberField/types.d.ts +6 -8
  386. package/dist/types/components/Shared/fields/CountryField/CountryField.d.ts +1 -1
  387. package/dist/types/components/Shared/fields/CountryField/types.d.ts +3 -3
  388. package/dist/types/components/Shared/fields/CountryOfGoverningLawField/CountryOfGoverningLawField.d.ts +1 -1
  389. package/dist/types/components/Shared/fields/CountryOfGoverningLawField/types.d.ts +2 -2
  390. package/dist/types/components/Shared/fields/Currency/types.d.ts +3 -3
  391. package/dist/types/components/Shared/fields/DBANameField/fieldConfig.d.ts +1 -1
  392. package/dist/types/components/Shared/fields/DBANameField/types.d.ts +1 -3
  393. package/dist/types/components/Shared/fields/DateOfIncorporationField/fieldConfig.d.ts +1 -1
  394. package/dist/types/components/Shared/fields/DateOfIncorporationField/types.d.ts +1 -1
  395. package/dist/types/components/Shared/fields/EInvoicingCodeField/fieldConfig.d.ts +1 -1
  396. package/dist/types/components/Shared/fields/EInvoicingCodeField/types.d.ts +1 -1
  397. package/dist/types/components/Shared/fields/FinancialReportingDate/types.d.ts +1 -1
  398. package/dist/types/components/Shared/fields/IdFieldTypeSelector/CompanyRegistrationNumberTypeSelector.d.ts +2 -2
  399. package/dist/types/components/Shared/fields/IdFieldTypeSelector/IndividualIdNumberTypeSelector.d.ts +2 -2
  400. package/dist/types/components/Shared/fields/IdFieldTypeSelector/TaxIdNumberTypeSelector.d.ts +4 -3
  401. package/dist/types/components/Shared/fields/IdFieldTypeSelector/VatNumberTypeSelector.d.ts +2 -2
  402. package/dist/types/components/Shared/fields/IdFieldTypeSelector/countryIdNumberTypes.d.ts +11 -2
  403. package/dist/types/components/Shared/fields/IdFieldTypeSelector/getDefaultRegistrationNumberType.d.ts +16 -0
  404. package/dist/types/components/Shared/fields/IdFieldTypeSelector/getDefaultTaxIdNumberType.d.ts +1 -1
  405. package/dist/types/components/Shared/fields/IdFieldTypeSelector/getDefaultVatNumberType.d.ts +13 -0
  406. package/dist/types/components/Shared/fields/IdFieldTypeSelector/inferCompanyRegistrationNumberType.d.ts +1 -1
  407. package/dist/types/components/Shared/fields/IdFieldTypeSelector/inferTaxIdNumberType.d.ts +1 -1
  408. package/dist/types/components/Shared/fields/IdFieldTypeSelector/inferVatNumberType.d.ts +1 -1
  409. package/dist/types/components/Shared/fields/LegalCompanyNameField/LegalCompanyNameField.d.ts +1 -2
  410. package/dist/types/components/Shared/fields/LegalCompanyNameField/fieldConfig.d.ts +1 -1
  411. package/dist/types/components/Shared/fields/LegalCompanyNameField/types.d.ts +1 -1
  412. package/dist/types/components/Shared/fields/LocalizedLegalCompanyNameField/fieldConfig.d.ts +12 -0
  413. package/dist/types/components/Shared/fields/LocalizedLegalCompanyNameField/types.d.ts +5 -0
  414. package/dist/types/components/Shared/fields/Name/Name.d.ts +1 -1
  415. package/dist/types/components/Shared/fields/NumberOfEmployees/types.d.ts +1 -1
  416. package/dist/types/components/Shared/fields/PhoneField/PhoneField.d.ts +1 -2
  417. package/dist/types/components/Shared/fields/PhoneField/fieldConfig.d.ts +1 -1
  418. package/dist/types/components/Shared/fields/PhoneField/types.d.ts +2 -2
  419. package/dist/types/components/Shared/fields/StateField/StateField.d.ts +1 -1
  420. package/dist/types/components/Shared/fields/StateField/fieldConfig.d.ts +1 -1
  421. package/dist/types/components/Shared/fields/StateField/types.d.ts +4 -4
  422. package/dist/types/components/Shared/fields/StockExchangeMICField/fieldConfig.d.ts +1 -1
  423. package/dist/types/components/Shared/fields/StockExchangeMICField/types.d.ts +1 -1
  424. package/dist/types/components/Shared/fields/StockISINField/fieldConfig.d.ts +1 -1
  425. package/dist/types/components/Shared/fields/StockISINField/types.d.ts +1 -1
  426. package/dist/types/components/Shared/fields/StockTickerSymbol/fieldConfig.d.ts +1 -1
  427. package/dist/types/components/Shared/fields/StockTickerSymbol/types.d.ts +1 -1
  428. package/dist/types/components/Shared/fields/TaxInformationField/TaxInformationField.d.ts +1 -2
  429. package/dist/types/components/Shared/fields/TaxInformationField/fieldConfig.d.ts +5 -3
  430. package/dist/types/components/Shared/fields/TaxInformationField/types.d.ts +2 -2
  431. package/dist/types/components/Shared/fields/VatNumberField/VatNumberField.d.ts +1 -1
  432. package/dist/types/components/Shared/fields/VatNumberField/fieldConfig.d.ts +1 -1
  433. package/dist/types/components/Shared/fields/VatNumberField/types.d.ts +3 -5
  434. package/dist/types/components/Shared/forms/Address/AddressField.d.ts +1 -1
  435. package/dist/types/components/Shared/forms/Address/SearchAddress.d.ts +3 -3
  436. package/dist/types/components/Shared/forms/Address/constants.d.ts +1 -1
  437. package/dist/types/components/Shared/forms/Address/types.d.ts +1 -2
  438. package/dist/types/components/Shared/forms/Address/utils.d.ts +3 -3
  439. package/dist/types/components/Shared/forms/Address/validate.d.ts +1 -1
  440. package/dist/types/components/Shared/forms/BusinessTypeSelection/types.d.ts +1 -1
  441. package/dist/types/components/Shared/forms/BusinessTypeSelection/utils.d.ts +7 -7
  442. package/dist/types/components/Shared/forms/CompanyNameAndCountry/types.d.ts +1 -1
  443. package/dist/types/components/Shared/forms/ConstitutionalDocument/types.d.ts +1 -1
  444. package/dist/types/components/Shared/forms/ContactDetails/ContactDetails.d.ts +1 -1
  445. package/dist/types/components/Shared/forms/ContactDetails/types.d.ts +1 -1
  446. package/dist/types/components/Shared/forms/DocumentUpload/types.d.ts +2 -2
  447. package/dist/types/components/Shared/forms/FinancialInformation/ReportedValue.d.ts +1 -1
  448. package/dist/types/components/Shared/forms/FinancialInformation/formatFinancialInformationSummary.d.ts +2 -2
  449. package/dist/types/components/Shared/forms/FinancialInformation/mapping/mapFinancialInformationToFinancialReport.d.ts +1 -1
  450. package/dist/types/components/Shared/forms/FinancialInformation/types.d.ts +3 -3
  451. package/dist/types/components/Shared/forms/FinancialInformation/validate.d.ts +1 -0
  452. package/dist/types/components/Shared/forms/RegistrationAddress/types.d.ts +2 -2
  453. package/dist/types/components/Shared/tasks/CustomerSupport/types.d.ts +1 -1
  454. package/dist/types/components/Shared/tasks/TaskList/PayoutAccountTaskListItem.d.ts +1 -1
  455. package/dist/types/components/Shared/tasks/TaskList/TaskItemStatus.d.ts +1 -2
  456. package/dist/types/components/Shared/tasks/TaskList/TaskList.d.ts +1 -1
  457. package/dist/types/components/Shared/tasks/TaskList/types.d.ts +2 -2
  458. package/dist/types/components/Shared/tasks/TaskList/utils.d.ts +1 -1
  459. package/dist/types/components/Trust/forms/Trust/Trust.d.ts +19 -3
  460. package/dist/types/components/Trust/forms/Trust/rules.d.ts +6 -6
  461. package/dist/types/components/Trust/forms/Trust/types.d.ts +2 -2
  462. package/dist/types/components/Trust/forms/TrustRegistrationDetails/types.d.ts +1 -1
  463. package/dist/types/components/Trust/forms/TrustRoleAndEntityType/types.d.ts +1 -1
  464. package/dist/types/components/Trust/hooks/useTrustMemberNavigation.hook.d.ts +14 -14
  465. package/dist/types/components/Trust/mapping/mapTrustDocumentToApiDocument.d.ts +1 -1
  466. package/dist/types/components/Trust/tasks/RoleAndTypeDropin/types.d.ts +1 -1
  467. package/dist/types/components/Trust/tasks/TrustDropin/trustFormConfig.d.ts +1 -1
  468. package/dist/types/components/Trust/tasks/TrustMembers/types.d.ts +1 -1
  469. package/dist/types/components/Trust/utils/trustUtil.d.ts +4 -4
  470. package/dist/types/components/UnincorporatedPartnership/hooks/useUnincorporatedPartnershipNavigation.d.ts +2 -2
  471. package/dist/types/components/UnincorporatedPartnership/tasks/UnincorporatedPartnershipRoleAndType/UnincorporatedPartnershipRadioGroup.d.ts +2 -3
  472. package/dist/types/components/UnincorporatedPartnership/tasks/UnincorporatedPartnershipRoleAndType/UnincorporatedPartnershipRoleAndType.d.ts +1 -2
  473. package/dist/types/components/UnincorporatedPartnership/types/types.d.ts +1 -1
  474. package/dist/types/components/UnincorporatedPartnership/utils/unincorporatedParnershipUtil.d.ts +3 -3
  475. package/dist/types/components/ui/atoms/Accordion/Accordion.d.ts +1 -2
  476. package/dist/types/components/ui/atoms/ActionsMenu/ActionsMenu.d.ts +1 -1
  477. package/dist/types/components/ui/atoms/Button/Button.d.ts +2 -3
  478. package/dist/types/components/ui/atoms/Button/Button.types.d.ts +3 -3
  479. package/dist/types/components/ui/atoms/Checkbox/Checkbox.d.ts +1 -2
  480. package/dist/types/components/ui/atoms/Field/Field.d.ts +3 -6
  481. package/dist/types/components/ui/atoms/Field/Field.types.d.ts +11 -12
  482. package/dist/types/components/ui/atoms/FormHeader/FormHeader.d.ts +4 -6
  483. package/dist/types/components/ui/atoms/InputBase/InputBase.d.ts +5 -5
  484. package/dist/types/components/ui/atoms/List/List.d.ts +12 -0
  485. package/dist/types/components/ui/atoms/Modal/MaybeModal.d.ts +1 -1
  486. package/dist/types/components/ui/atoms/RadioGroupCard/RadioGroupCard.types.d.ts +3 -3
  487. package/dist/types/components/ui/atoms/Remove/Remove.d.ts +1 -2
  488. package/dist/types/components/ui/atoms/Select/Select.d.ts +1 -2
  489. package/dist/types/components/ui/atoms/Select/Select.types.d.ts +1 -0
  490. package/dist/types/components/ui/atoms/SelectButton/SelectButton.d.ts +1 -2
  491. package/dist/types/components/ui/atoms/SelectButton/SelectButton.types.d.ts +3 -4
  492. package/dist/types/components/ui/atoms/SelectList/SelectList.d.ts +1 -2
  493. package/dist/types/components/ui/atoms/SelectList/SelectList.types.d.ts +2 -2
  494. package/dist/types/components/ui/atoms/SelectListItem/SelectListItem.types.d.ts +3 -3
  495. package/dist/types/components/ui/atoms/Svg/Svg.d.ts +1 -1
  496. package/dist/types/components/ui/atoms/Svg/svgs.d.ts +6 -0
  497. package/dist/types/components/ui/atoms/TaskStatusIndicator/TaskStatusIndicator.d.ts +1 -1
  498. package/dist/types/components/ui/atoms/TextArea/TextArea.d.ts +1 -2
  499. package/dist/types/components/ui/atoms/Tile/Tile.d.ts +1 -2
  500. package/dist/types/components/ui/layout/LandingLayout/LandingLayout.d.ts +10 -0
  501. package/dist/types/components/ui/layout/StackLayout/StackLayout.d.ts +8 -0
  502. package/dist/types/components/ui/molecules/Alert/Alert.d.ts +1 -1
  503. package/dist/types/components/ui/molecules/Alert/types.d.ts +1 -1
  504. package/dist/types/components/ui/molecules/Card/Card.d.ts +1 -2
  505. package/dist/types/components/ui/molecules/Card/types.d.ts +3 -3
  506. package/dist/types/components/ui/molecules/Confirm/Confirm.d.ts +1 -1
  507. package/dist/types/components/ui/molecules/Confirm/Confirm.types.d.ts +1 -0
  508. package/dist/types/components/ui/molecules/DocumentGuidance/DocumentGuidance.types.d.ts +2 -2
  509. package/dist/types/components/ui/molecules/Dropzone/FilePicker.d.ts +3 -5
  510. package/dist/types/components/ui/molecules/Dropzone/types.d.ts +1 -1
  511. package/dist/types/components/ui/molecules/Dropzone/validate.d.ts +1 -1
  512. package/dist/types/components/ui/molecules/EmbeddedStatus/EmbeddedStatus.d.ts +2 -2
  513. package/dist/types/components/ui/molecules/EmbeddedStatus/statusToTag.d.ts +2 -2
  514. package/dist/types/components/ui/molecules/ErrorPanel/ErrorPanel.d.ts +1 -1
  515. package/dist/types/components/ui/molecules/ErrorPanel/VerificationErrors.d.ts +2 -1
  516. package/dist/types/components/ui/molecules/ErrorPanel/types.d.ts +3 -3
  517. package/dist/types/components/ui/molecules/FormEndState/FormEndState.d.ts +0 -1
  518. package/dist/types/components/ui/molecules/InputCurrency/InputCurrency.d.ts +2 -3
  519. package/dist/types/components/ui/molecules/InputDate/InputDate.d.ts +3 -3
  520. package/dist/types/components/ui/molecules/InputEmail/InputEmail.d.ts +1 -1
  521. package/dist/types/components/ui/molecules/InputTelephone/InputTelephone.d.ts +1 -1
  522. package/dist/types/components/ui/molecules/InputText/InputText.d.ts +1 -1
  523. package/dist/types/components/ui/molecules/MaskedInput/MaskedInput.d.ts +3 -7
  524. package/dist/types/constants/countries.d.ts +1 -1
  525. package/dist/types/constants/keys.d.ts +2 -0
  526. package/dist/types/context/ExperimentContext/types.d.ts +18 -1
  527. package/dist/types/context/FormContext/FormContext.d.ts +1 -1
  528. package/dist/types/context/FormRouterContext/FormRouterContext.d.ts +1 -1
  529. package/dist/types/context/FormRouterContext/types.d.ts +1 -1
  530. package/dist/types/context/SettingsContext/SettingsContext.d.ts +1 -1
  531. package/dist/types/context/SettingsContext/types.d.ts +1 -1
  532. package/dist/types/context/StateContext/StateContext.d.ts +1 -1
  533. package/dist/types/context/StateContext/StateContextSetter.d.ts +1 -1
  534. package/dist/types/context/StateContext/StateReducer.d.ts +4 -10
  535. package/dist/types/context/StateContext/types.d.ts +19 -17
  536. package/dist/types/context/StateContext/useGlobalData.d.ts +2 -2
  537. package/dist/types/core/EmbedShell/EmbedShell.d.ts +2 -1
  538. package/dist/types/core/UIElement/UIElement.d.ts +2 -1
  539. package/dist/types/core/analytics.d.ts +12 -10
  540. package/dist/types/core/environment/resolveEnvironment.d.ts +1 -1
  541. package/dist/types/core/error.d.ts +1 -1
  542. package/dist/types/core/errorMapping.d.ts +3 -3
  543. package/dist/types/core/models/api/address.d.ts +1 -1
  544. package/dist/types/core/models/api/financialReport.d.ts +3 -3
  545. package/dist/types/core/models/api/get-scenarios.d.ts +2 -8
  546. package/dist/types/core/models/api/individual.d.ts +10 -0
  547. package/dist/types/core/models/api/legal-arrangement.d.ts +10 -2
  548. package/dist/types/core/models/api/legal-entity-association.d.ts +5 -0
  549. package/dist/types/core/models/api/organization.d.ts +9 -1
  550. package/dist/types/core/models/api/phone.d.ts +1 -1
  551. package/dist/types/core/models/api/remediating-action.d.ts +1 -1
  552. package/dist/types/core/models/api/source-of-funds.d.ts +1 -1
  553. package/dist/types/core/models/api/transfer-instrument.d.ts +1 -1
  554. package/dist/types/core/models/api/verification-error.d.ts +1 -1
  555. package/dist/types/core/models/api/view-verification-status.d.ts +0 -4
  556. package/dist/types/core/process-field-configurations.d.ts +9 -9
  557. package/dist/types/core/types.d.ts +1 -1
  558. package/dist/types/core/user-events.d.ts +14 -3
  559. package/dist/types/datasets/generators/getAccountFormatForCountry.d.ts +2 -2
  560. package/dist/types/datasets/generators/getBusinessTypeExamplesForCountry.d.ts +2 -2
  561. package/dist/types/datasets/generators/getCompanyTypeExamplesForCountry.d.ts +2 -2
  562. package/dist/types/datasets/generators/getLegalArrangementTypeExamplesForCountry.d.ts +3 -3
  563. package/dist/types/datasets/generators/loadCountries.d.ts +1 -1
  564. package/dist/types/datasets/generators/loadStatesDataset.d.ts +1 -1
  565. package/dist/types/embeds/EmbedBaseElement.d.ts +41 -0
  566. package/dist/types/embeds/EmbedCore.d.ts +22 -0
  567. package/dist/types/embeds/baseEmbedProps.d.ts +21 -0
  568. package/dist/types/embeds/business-financing/AdyenBusinessFinancing.d.ts +13 -0
  569. package/dist/types/embeds/business-financing/adyen-business-financing.types.d.ts +6 -1
  570. package/dist/types/embeds/individual/AdyenIndividual.d.ts +12 -0
  571. package/dist/types/embeds/individual/adyen-individual.types.d.ts +6 -1
  572. package/dist/types/embeds/manage-individual/AdyenManageIndividual.d.ts +12 -0
  573. package/dist/types/embeds/manage-pci/AdyenManagePci.d.ts +12 -0
  574. package/dist/types/embeds/manage-terms-of-service/AdyenManageTermsOfService.d.ts +12 -0
  575. package/dist/types/embeds/manage-transfer-instruments/AdyenManageTransferInstrument.d.ts +15 -0
  576. package/dist/types/embeds/onboarding/AdyenOnboarding.d.ts +12 -0
  577. package/dist/types/embeds/onboarding/adyen-onboarding.types.d.ts +4 -1
  578. package/dist/types/embeds/sign-pci/AdyenSignPci.d.ts +14 -0
  579. package/dist/types/embeds/sign-pci/adyen-sign-pci.types.d.ts +5 -3
  580. package/dist/types/embeds/terms-of-service/AdyenTermsOfService.d.ts +12 -0
  581. package/dist/types/embeds/terms-of-service/adyen-terms-of-service.types.d.ts +7 -1
  582. package/dist/types/embeds/transfer-instrument/AdyenTransferInstrument.d.ts +16 -0
  583. package/dist/types/embeds/transfer-instrument/adyen-transfer-instrument.types.d.ts +7 -2
  584. package/dist/types/embeds/verification-status/AdyenVerificationStatus.d.ts +20 -0
  585. package/dist/types/hooks/introduction/useIntroductionScreens.d.ts +1 -1
  586. package/dist/types/hooks/singpass/useHasSeenSingpassSelection.d.ts +2 -1
  587. package/dist/types/hooks/singpass/useSingpassMyInfoLogin.d.ts +2 -2
  588. package/dist/types/hooks/useAccountHolder.d.ts +1 -1
  589. package/dist/types/hooks/useAllowedCountries.d.ts +1 -1
  590. package/dist/types/hooks/useAsyncValidator.d.ts +2 -1
  591. package/dist/types/hooks/useBusinessSetup.d.ts +1 -1
  592. package/dist/types/hooks/useDataConflicts.d.ts +0 -6
  593. package/dist/types/hooks/useDataMissingRemediations.d.ts +1 -1
  594. package/dist/types/hooks/useForm/reducer.d.ts +2 -2
  595. package/dist/types/hooks/useForm/types.d.ts +14 -19
  596. package/dist/types/hooks/useFormComposer.d.ts +2 -2
  597. package/dist/types/hooks/useLegalCompanyNameField/useLegalCompanyNameField.d.ts +28 -0
  598. package/dist/types/hooks/useMultiForm/reducer.d.ts +4 -3
  599. package/dist/types/hooks/useMultiForm/types.d.ts +36 -73
  600. package/dist/types/hooks/useMultiForm/useMultiForm.d.ts +1 -1
  601. package/dist/types/hooks/useMultiForm/useMultiFormAsyncValidator.d.ts +2 -2
  602. package/dist/types/hooks/useScenarioConfiguration.d.ts +5 -5
  603. package/dist/types/language/Language.d.ts +1 -7
  604. package/dist/types/language/i18n.d.ts +2 -0
  605. package/dist/types/language/types.d.ts +3 -0
  606. package/dist/types/language/utils.d.ts +12 -3
  607. package/dist/types/stores/globalStore/calculateTaskStatus.d.ts +2 -2
  608. package/dist/types/stores/globalStore/determineTaskIdentifiers.d.ts +2 -2
  609. package/dist/types/stores/globalStore/get-task-status.d.ts +1 -1
  610. package/dist/types/stores/globalStore/globalStore.d.ts +4 -4
  611. package/dist/types/stores/globalStore/taskStatus.d.ts +1 -1
  612. package/dist/types/types/datasets/country-code.d.ts +251 -0
  613. package/dist/types/{core/models → types}/errors/capability-problems.d.ts +1 -1
  614. package/dist/types/{core/models → types}/errors/entity-problems.d.ts +4 -4
  615. package/dist/types/{core/models → types}/errors/error-message.d.ts +1 -1
  616. package/dist/types/{core/models → types}/errors/maintenance-mode-error.d.ts +1 -1
  617. package/dist/types/{core/models → types}/errors/remediation.d.ts +1 -1
  618. package/dist/types/{core/models → types}/form-configuration.d.ts +4 -4
  619. package/dist/types/{core/models → types}/form-rules.d.ts +10 -8
  620. package/dist/types/{core/models → types}/form.d.ts +1 -1
  621. package/dist/types/utils/accountHolderUtils.d.ts +1 -1
  622. package/dist/types/utils/api/documentUtils.d.ts +1 -1
  623. package/dist/types/utils/api/getProblemsForEntity.d.ts +2 -2
  624. package/dist/types/utils/api/processCapabilitites.d.ts +5 -4
  625. package/dist/types/utils/api/processValidationErrors.d.ts +3 -3
  626. package/dist/types/utils/birthDateUtils.d.ts +53 -2
  627. package/dist/types/utils/country.d.ts +5 -2
  628. package/dist/types/utils/datasetUtil.d.ts +3 -3
  629. package/dist/types/{core/models/decision-maker.d.ts → utils/decisionMaker.d.ts} +2 -2
  630. package/dist/types/utils/dropinUtils.d.ts +2 -2
  631. package/dist/types/utils/entityAssociationUtil.d.ts +6 -7
  632. package/dist/types/utils/entityStatusUtil.d.ts +2 -2
  633. package/dist/types/utils/eventHandlers/handleKeys.d.ts +2 -2
  634. package/dist/types/{core/models/field-configurations.d.ts → utils/fieldConfigurations.d.ts} +4 -4
  635. package/dist/types/utils/formUtils.d.ts +1 -1
  636. package/dist/types/utils/formatCurrency.d.ts +1 -1
  637. package/dist/types/utils/getDisplayErrorMessage.d.ts +2 -2
  638. package/dist/types/utils/getLegalEntityCountry.d.ts +1 -1
  639. package/dist/types/utils/getName.d.ts +2 -2
  640. package/dist/types/utils/getSSNType.d.ts +1 -1
  641. package/dist/types/utils/makeSelectItemForRole.d.ts +2 -2
  642. package/dist/types/utils/mapping/mapExistingFile.d.ts +1 -1
  643. package/dist/types/utils/mapping/utils.d.ts +7 -10
  644. package/dist/types/utils/masking/masks/businessRegistrationNumberMasks.d.ts +1 -0
  645. package/dist/types/utils/omitObscuredFieldsIfUnchanged.d.ts +1 -1
  646. package/dist/types/utils/perCountry.d.ts +1 -1
  647. package/dist/types/utils/perState.d.ts +3 -2
  648. package/dist/types/utils/regex/patternValidators.d.ts +2 -0
  649. package/dist/types/utils/regex/postalCodePatterns.d.ts +1 -1
  650. package/dist/types/utils/simulateTextChangeFromKeyboardEvent.d.ts +2 -2
  651. package/dist/types/utils/trackNavigation.d.ts +1 -2
  652. package/dist/types/utils/urlUtils.d.ts +1 -0
  653. package/dist/types/utils/validation/types.d.ts +1 -1
  654. package/dist/types/utils/validation/validationResult.d.ts +1 -1
  655. package/dist/types/{core/models/errors/validation-error.d.ts → utils/validationError.d.ts} +1 -1
  656. package/dist/types/utils/validatorUtils.d.ts +7 -3
  657. package/dist/types/utils/verification/helpers/verifyIdNumber.d.ts +2 -2
  658. package/dist/{useMultiForm-Lh2i5tRJ.js → useMultiForm-KQwxav4F.js} +160 -136
  659. package/dist/{useOnboardingStatus-D1ym3MHp.js → useOnboardingStatus-BMyj9Pwn.js} +2 -2
  660. package/dist/{useSalesChannelsSettings-BGuBY0ls.js → useSalesChannelsSettings-43TfSoxc.js} +2 -2
  661. package/dist/{useTermsOfServiceStatus-DGZYHVsm.js → useTermsOfServiceStatus-CBHKWYSb.js} +4 -4
  662. package/dist/{useUpdateLegalEntity-By6uwPUg.js → useUpdateLegalEntity-D8dw9Oc3.js} +2 -2
  663. package/dist/{utils-BPrqY9DW.js → utils-CL9qlD-O.js} +18 -11
  664. package/dist/{validate-Dyb8B4Hi.js → validate-CeF0YKvL.js} +2 -2
  665. package/dist/validate-CuwYJGc9.js +94 -0
  666. package/dist/vue/adyen-individual.js +1 -1
  667. package/dist/vue/adyen-manage-individual.js +1 -1
  668. package/dist/vue/adyen-terms-of-service.js +1 -1
  669. package/dist/vue/adyen-transfer-instrument.js +5 -4
  670. package/dist/{yaml-Ba_Tz8d4.js → yaml-CBkrSAtc.js} +2 -2
  671. package/dist/zh-CN-wUb4MmTZ.js +13 -0
  672. package/dist/zh-TW-DNTXHLKa.js +13 -0
  673. package/package.json +53 -51
  674. package/dist/CXEL7IU7-B_FIdhoh.js +0 -55
  675. package/dist/Confirm-okTxq40p.js +0 -56
  676. package/dist/ContractViewer-BChszuWL.js +0 -980
  677. package/dist/FormEndState-BQOQ83vO.js +0 -32
  678. package/dist/FormNavigation-B6RspX9C.js +0 -145
  679. package/dist/FormWrapper-Dvm1o4tC.js +0 -149
  680. package/dist/HASRA6WW-C1SPXfmX.js +0 -12411
  681. package/dist/I3HPI4QX-A8JLvlId.js +0 -46
  682. package/dist/MaybeModal-Djz8fRfd.js +0 -18
  683. package/dist/Modal-CRNejb1x.js +0 -135
  684. package/dist/PayoutDetailsDropin-Bw29V8E7.js +0 -901
  685. package/dist/PayoutDetailsPage-BHNHaMbR.js +0 -57
  686. package/dist/ShadowStylesRoot-D4KvocCc.js +0 -103
  687. package/dist/SourceOfFunds.module-OqFTr4WQ.js +0 -128
  688. package/dist/Spacer-BK3jDget.js +0 -18
  689. package/dist/StepProgressIndicator-BuGfVdlr.js +0 -74
  690. package/dist/bg-BG-CGHVGS50.js +0 -1986
  691. package/dist/cs-CZ-5Os6MsQs.js +0 -1986
  692. package/dist/da-DK-Dk9852pS.js +0 -1986
  693. package/dist/de-DE-B3TpRjZX.js +0 -994
  694. package/dist/de-DE-dk9CMgxF.js +0 -1986
  695. package/dist/documentUtils-51iMbUyU.js +0 -226
  696. package/dist/dropinUtils-Bk0T79SK.js +0 -204
  697. package/dist/el-GR-CFEuLvxK.js +0 -994
  698. package/dist/el-GR-DgI6Cgl6.js +0 -1986
  699. package/dist/en-US-ghR-1_C2.js +0 -994
  700. package/dist/es-ES-BtWn2FOQ.js +0 -994
  701. package/dist/es-ES-BzoYprDP.js +0 -1986
  702. package/dist/et-EE-DlbiEFQu.js +0 -1986
  703. package/dist/fi-FI-GSyT4vm7.js +0 -1986
  704. package/dist/fr-FR-BEImhl_J.js +0 -1986
  705. package/dist/fr-FR-HvIkGqJf.js +0 -994
  706. package/dist/hr-HR-CNFI9uDD.js +0 -1986
  707. package/dist/hu-HU-D4xFA3R6.js +0 -1986
  708. package/dist/individualFormConfig-BrFLPTfr.js +0 -171
  709. package/dist/it-IT-B65JP9Qv.js +0 -1986
  710. package/dist/it-IT-CjbZahlB.js +0 -994
  711. package/dist/ja-JP-4jufT0xh.js +0 -994
  712. package/dist/ja-JP-CgGmwtzl.js +0 -1986
  713. package/dist/lt-LT-D_Q1Z3N4.js +0 -1986
  714. package/dist/lv-LV-aF5bMtic.js +0 -1986
  715. package/dist/mapExistingFile-BE74t9jV.js +0 -25
  716. package/dist/mapTransferInstrumentToPayoutAccount-DR8zv8gS.js +0 -30
  717. package/dist/nl-NL-B3xjfpMi.js +0 -994
  718. package/dist/nl-NL-GDXpht_y.js +0 -1986
  719. package/dist/no-NO-CEow5Bac.js +0 -1986
  720. package/dist/omitObscuredFieldsIfUnchanged-DhCrqm4T.js +0 -28
  721. package/dist/pl-PL-Bir_Ltlv.js +0 -1986
  722. package/dist/process-field-configurations-DugpEY9k.js +0 -185
  723. package/dist/processValidationErrors-RYlNmxB9.js +0 -203
  724. package/dist/pt-PT-BpYDD-PX.js +0 -994
  725. package/dist/pt-PT-lkmVY63I.js +0 -1986
  726. package/dist/ro-RO-CTQvP4R9.js +0 -1986
  727. package/dist/ru-RU-BlgIj-Q4.js +0 -994
  728. package/dist/sk-SK-Ct3OVI0e.js +0 -1986
  729. package/dist/sl-SI-CNjkFWB7.js +0 -1986
  730. package/dist/sv-SE-7lcf_fB9.js +0 -994
  731. package/dist/sv-SE-BwREUuQq.js +0 -1986
  732. package/dist/types/api/companyDataSet/useCompanyDataset.d.ts +0 -5
  733. package/dist/types/components/Individual/forms/IndividualOnfido/IdVerificationMethod/formatId.d.ts +0 -3
  734. package/dist/types/core/models/country-code.d.ts +0 -250
  735. package/dist/types/embeds/ShadowStylesRoot.d.ts +0 -3
  736. package/dist/types/utils/sanitizeHtml.d.ts +0 -3
  737. package/dist/types/utils/useStateFromProp.d.ts +0 -9
  738. package/dist/useToastContext-CF2xonft.js +0 -21
  739. package/dist/utils-B1H_8b1P.js +0 -74
  740. package/dist/validate-wd48TLfx.js +0 -245
  741. package/dist/zh-CN-xYZH718R.js +0 -994
  742. package/dist/zh-TW-DqBBNurv.js +0 -994
  743. /package/dist/types/{core/types/AccountHolder.types.d.ts → types/accountHolder.d.ts} +0 -0
  744. /package/dist/types/{core/models → types/datasets}/currency.d.ts +0 -0
  745. /package/dist/types/{core/models → types/datasets}/province-code.d.ts +0 -0
  746. /package/dist/types/{core/models → types/datasets}/state-code.d.ts +0 -0
  747. /package/dist/types/{core/models → types}/errors/form-verification-errors.d.ts +0 -0
  748. /package/dist/types/{core/models → types}/errors/remediation-action-context.d.ts +0 -0
  749. /package/dist/types/{core/models → types}/file.d.ts +0 -0
@@ -2,27 +2,25 @@
2
2
  {
3
3
  try {
4
4
  let e = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : {}, n = new e.Error().stack;
5
- n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "8da9cc27-e4b8-417c-a1c7-3cffe6873d25", e._sentryDebugIdIdentifier = "sentry-dbid-8da9cc27-e4b8-417c-a1c7-3cffe6873d25");
5
+ n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "3746545c-b537-460f-9662-e8ce8f96724b", e._sentryDebugIdIdentifier = "sentry-dbid-3746545c-b537-460f-9662-e8ce8f96724b");
6
6
  } catch (e) {
7
7
  }
8
8
  }
9
9
  ;
10
10
  import { jsx, jsxs, Fragment } from "preact/jsx-runtime";
11
- import { q as useApiContext, r as useQuery, t as httpGet, v as useLocalStorage, w as getLegalRepresentative, a as useLegalEntity, x as skipToken, y as doesLegalEntityRequiresLegalRepresentative, z as LegalEntityType, b as useI18nContext, B as Skeleton, C as Alert, G as Typography, H as isPartOfTrustFromLegalEntity, J as hasSolePropInLegalEntity, K as useSettingsContext, M as SettingNames, N as hasOwnEntityAssociationOfType, O as isEmptyEntity, P as CompanyTypesValue, U as useAccountHolder, V as EntityType, W as DATA_MISSING_DECISION_MAKER_ERROR_CODE_MAPPING, X as TaskTypes, Y as TaskStatus, Z as Button, _ as IconButton, $ as useAnalyticsContext, a0 as Card, a1 as handleKeys, a2 as LoaderWrapper, a3 as Icon, a4 as noop, a5 as useExperimentsContext, a6 as isInstantVerifiedAccount, a7 as getObscuredAccountNumber, a8 as useGetTaskStatus, a9 as CardGroup, R as ROOT_LE, L as Loader, aa as useSetting, ab as useGlobalStore, ac as isPartOfUnincorporatedPartnership, ad as getOwnSignatories, ae as getOwnDecisionMakersLegalEntityIds, af as getOwnSolePropProblems, ag as getOwnTrustProblems, ah as getOwnUnincorporatedPartnershipProblems, ai as TrustMemberTypes, aj as getLegalEntityNameBasedOnType, ak as getOwnEntityAssociations, al as useAssociatedLegalEntity, am as CountryCodes, an as isEmpty, ao as mergeFieldMetadataIntoProps, ap as resolveFieldMetadata, aq as defaultFieldMetadata, ar as defaultFieldConfig, as as useForm, at as getFieldProps, au as nameFields, F as FormHeader, av as ErrorPanel, aw as createFormUtils, ax as Field, ay as MultiSelectList, az as makeSelectItemForRole, aA as RadioGroupCard, aB as TextArea, aC as Name, aD as CountryField, aE as COUNTRY_FIELD, aF as LegalCompanyNameField, aG as LEGAL_COMPANY_NAME_FIELD, aH as summaryItem, aI as getRoleName, aJ as createLogger, aK as summaryStep, aL as Summary, aM as ActionBar, g as getLegalEntityCountry, aN as UnincorporatedPartnershipMemberTypes, aO as getDecisionMakerDescriptionMap, aP as TRUST_DEFAULT_DESCRIPTIONS_MAP, aQ as getRoleTagVariant, aR as DEFAULT_TRUST_MEMBER_REQUIREMENTS, aS as ContextGuidance, aT as RadioGroup, aU as useUnincorporatedPartnershipMembers, aV as deleteUnincorporatedPartnershipMember, aW as hasAllCapabilitiesResolved, aX as hasRejectedCapabilities, aY as objectsDeepEqual, aZ as TrustedFieldsProvider } from "./StoreProvider-COHi02bX.js";
11
+ import { p as useApiContext, q as useQuery, r as httpGet, t as useLocalStorage, v as getLegalRepresentative, b as useLegalEntity, w as skipToken, x as doesLegalEntityRequiresLegalRepresentative, y as LegalEntityType, a as useTranslation, z as Skeleton, B as Alert, C as translateStringOrObject, G as Typography, H as isPartOfTrustFromLegalEntity, J as hasSolePropInLegalEntity, K as useSettingsContext, M as SettingNames, N as hasOwnEntityAssociationOfType, O as isEmptyEntity, P as CompanyTypesValue, U as useAccountHolder, V as EntityType, W as DATA_MISSING_DECISION_MAKER_ERROR_CODE_MAPPING, X as TaskTypes, Y as createLogger, Z as TaskStatus, _ as Button, $ as IconButton, a0 as useAnalyticsContext, a1 as Card, a2 as handleKeys, a3 as LoaderWrapper, a4 as Icon, a5 as noop, a6 as useToastContext, a7 as useExperimentsContext, a8 as isInstantVerifiedAccount, a9 as getObscuredAccountNumber, aa as useGetTaskStatus, ab as CardGroup, R as ROOT_LE, ac as useCapabilityProblems, L as Loader, ad as useGlobalStore, ae as useSetting, af as isPartOfUnincorporatedPartnership, ag as getOwnSignatories, ah as getOwnDecisionMakersLegalEntityIds, ai as getOwnSolePropProblems, aj as getOwnTrustProblems, ak as getOwnUnincorporatedPartnershipProblems, al as getOwnEntityAssociations, am as TrustMemberTypes, an as getLegalEntityNameBasedOnType, ao as useAssociatedLegalEntity, ap as useI18nContext, aq as CountryCodes, ar as isEmpty, as as mergeFieldMetadataIntoProps, at as resolveFieldMetadata, au as defaultFieldMetadata, av as defaultFieldConfig, aw as useForm, ax as getFieldProps, ay as nameFields, F as FormHeader, az as ErrorPanel, aA as createFormUtils, aB as Field, aC as MultiSelectList, aD as makeSelectItemForRole, aE as RadioGroupCard, aF as TextArea, aG as Name, aH as CountryField, aI as COUNTRY_FIELD, aJ as LegalCompanyNameField, aK as LEGAL_COMPANY_NAME_FIELD, aL as summaryItem, aM as getRoleName, aN as summaryStep, aO as FormNavigation, aP as Summary, aQ as ActionBar, g as getLegalEntityCountry, aR as UnincorporatedPartnershipMemberTypes, aS as getDecisionMakerDescriptionMap, aT as TRUST_DEFAULT_DESCRIPTIONS_MAP, aU as getRoleTagVariant, aV as Trans, aW as DEFAULT_TRUST_MEMBER_REQUIREMENTS, aX as ContextGuidance, aY as RadioGroup, aZ as useUnincorporatedPartnershipMembers, a_ as deleteUnincorporatedPartnershipMember, a$ as hasAllCapabilitiesResolved, b0 as hasRejectedCapabilities, b1 as objectsDeepEqual, b2 as TrustedFieldsProvider } from "./StoreProvider-ClKLaHzy.js";
12
12
  import { lazy, Suspense } from "preact/compat";
13
13
  import { useMemo, useCallback, useEffect, useState, useRef } from "preact/hooks";
14
- import { P as ProviderButton, u as useCapabilityProblems, a as useSingpassMyInfoLogin } from "./ProviderButton-vD5DUJaN.js";
14
+ import { P as ProviderButton, u as useSingpassMyInfoLogin } from "./ProviderButton-B58n0cRC.js";
15
15
  import cx from "classnames";
16
- import { u as useSalesChannelsSettings, a as usePciStatus } from "./useSalesChannelsSettings-BGuBY0ls.js";
17
- import { u as useTermsOfServiceAcceptanceInfos, a as useTermsOfServiceStatus } from "./useTermsOfServiceStatus-DGZYHVsm.js";
18
- import { u as useToastContext } from "./useToastContext-CF2xonft.js";
16
+ import { u as useSalesChannelsSettings, a as usePciStatus } from "./useSalesChannelsSettings-43TfSoxc.js";
17
+ import { u as useTermsOfServiceStatus, a as useTermsOfServiceAcceptanceInfos } from "./useTermsOfServiceStatus-CBHKWYSb.js";
19
18
  import { signal } from "@preact/signals";
20
19
  import { d as downloadFile } from "./file-CiG1D0zy.js";
21
- import { V as VerificationErrorAlert, u as useDeleteTransferInstrument } from "./VerificationErrorAlert-BkImnGA-.js";
22
- import { A as Avatar } from "./Avatar-C8aZB2wq.js";
23
- import { T as TaskItemStatus } from "./TaskItemStatus-Bi1L8gea.js";
24
- import { u as useCreateLegalEntity, a as useUpdateLegalEntity } from "./useUpdateLegalEntity-By6uwPUg.js";
25
- import { F as FormNavigation } from "./FormNavigation-B6RspX9C.js";
20
+ import { V as VerificationErrorAlert, u as useDeleteTransferInstrument } from "./VerificationErrorAlert-BBdJmGJu.js";
21
+ import { A as Avatar } from "./Avatar-vCjWXfC7.js";
22
+ import { T as TaskItemStatus } from "./TaskItemStatus-DrTIwCTx.js";
23
+ import { u as useCreateLegalEntity, a as useUpdateLegalEntity } from "./useUpdateLegalEntity-D8dw9Oc3.js";
26
24
  import { T as Tag } from "./Tag-DdkVScyr.js";
27
25
  const getTaskTypes = async (id, baseUrl) => {
28
26
  return httpGet({
@@ -62,7 +60,7 @@ const useAssociatedLegalRepresentative = (legalEntity) => {
62
60
  return getLegalRepresentative(legalEntity);
63
61
  }, [legalEntity]);
64
62
  const { data } = useLegalEntity(
65
- doesLegalEntityRequiresLegalRepresentative(legalEntity) && (matchingAssociation == null ? void 0 : matchingAssociation.legalEntityId) ? matchingAssociation.legalEntityId : skipToken
63
+ doesLegalEntityRequiresLegalRepresentative(legalEntity) && matchingAssociation?.legalEntityId ? matchingAssociation.legalEntityId : skipToken
66
64
  );
67
65
  return data;
68
66
  };
@@ -99,6 +97,7 @@ const SingpassBanner = ({
99
97
  onMessage,
100
98
  legalEntityType
101
99
  }) => {
100
+ const { t } = useTranslation();
102
101
  const { baseUrl } = useApiContext();
103
102
  const singpassEventListener = useCallback(
104
103
  (event) => {
@@ -116,7 +115,6 @@ const SingpassBanner = ({
116
115
  channel.onmessage = onMessage;
117
116
  return () => channel.close();
118
117
  }, [channel, onMessage]);
119
- const { i18n } = useI18nContext();
120
118
  if (isLoading) {
121
119
  return /* @__PURE__ */ jsx(Skeleton, {});
122
120
  }
@@ -127,18 +125,26 @@ const SingpassBanner = ({
127
125
  Alert,
128
126
  {
129
127
  variant: "success",
130
- title: successTitleText && i18n.get(successTitleText),
128
+ title: successTitleText && t(($) => $[successTitleText]),
131
129
  onClose: onAlertClose,
132
- children: successContentText && i18n.get(successContentText)
130
+ children: successContentText && t(($) => $[successContentText])
133
131
  }
134
132
  );
135
133
  }
136
134
  const providerName = legalEntityTypeToProviderButtonKey[legalEntityType];
137
135
  if (errorMessage) {
138
- return /* @__PURE__ */ jsx(Alert, { variant: "warning", title: i18n.get(errorMessage), onClose: onAlertClose, children: /* @__PURE__ */ jsxs(Typography, { variant: "body", children: [
139
- i18n.get("tryAgainOrContinueEnteringTheDetailsYourself"),
140
- providerName && /* @__PURE__ */ jsx(ProviderButton, { provider: providerName, onClick, fullWidth: true })
141
- ] }) });
136
+ return /* @__PURE__ */ jsx(
137
+ Alert,
138
+ {
139
+ variant: "warning",
140
+ title: translateStringOrObject(t, errorMessage),
141
+ onClose: onAlertClose,
142
+ children: /* @__PURE__ */ jsxs(Typography, { variant: "body", children: [
143
+ t(($) => $["tryAgainOrContinueEnteringTheDetailsYourself"]),
144
+ providerName && /* @__PURE__ */ jsx(ProviderButton, { provider: providerName, onClick, fullWidth: true })
145
+ ] })
146
+ }
147
+ );
142
148
  }
143
149
  const subtitleTranslationKey = legalEntityTypeToSubtitleTranslationKey[legalEntityType];
144
150
  return /* @__PURE__ */ jsxs(
@@ -146,9 +152,9 @@ const SingpassBanner = ({
146
152
  {
147
153
  className: cx("adyen-task-list-singpass-banner"),
148
154
  icon: false,
149
- title: i18n.get("getSetUpInstantly"),
155
+ title: t(($) => $["getSetUpInstantly"]),
150
156
  children: [
151
- subtitleTranslationKey && /* @__PURE__ */ jsx("div", { className: cx("adyen-task-list-singpass-banner__subtitle"), children: i18n.get(subtitleTranslationKey) }),
157
+ subtitleTranslationKey && /* @__PURE__ */ jsx("div", { className: cx("adyen-task-list-singpass-banner__subtitle"), children: t(($) => $[subtitleTranslationKey]) }),
152
158
  providerName && /* @__PURE__ */ jsx(ProviderButton, { provider: providerName, onClick, fullWidth: true })
153
159
  ]
154
160
  }
@@ -246,7 +252,7 @@ const getDefaultAccountHolderType = (legalEntityResponse, isTypeChanging = false
246
252
  if (accountHolder) {
247
253
  return accountHolder;
248
254
  }
249
- if (!(legalEntityResponse == null ? void 0 : legalEntityResponse.type)) return void 0;
255
+ if (!legalEntityResponse?.type) return void 0;
250
256
  if (hasOwnEntityAssociationOfType(
251
257
  LegalEntityType.SOLE_PROPRIETORSHIP,
252
258
  legalEntityResponse.entityAssociations,
@@ -272,7 +278,7 @@ const getDefaultAccountHolderType = (legalEntityResponse, isTypeChanging = false
272
278
  return entityTypeToCorrespondingAccountHolderOption[legalEntityResponse.type];
273
279
  }
274
280
  };
275
- const allowIndividualWithoutSoleProp = (capabilities) => !(capabilities == null ? void 0 : capabilities.map((c) => c.replace("Commercial", "").replace("Consumer", "")).some((c) => capabilitiesToPreventTypeChange.includes(c)));
281
+ const allowIndividualWithoutSoleProp = (capabilities) => !capabilities?.map((c) => c.replace("Commercial", "").replace("Consumer", "")).some((c) => capabilitiesToPreventTypeChange.includes(c));
276
282
  const businessTypeMapping = {
277
283
  myName: {
278
284
  [LegalEntityType.INDIVIDUAL]: "individual"
@@ -309,44 +315,42 @@ const companyTypesMapping = {
309
315
  /* SOLE_PROPRIETORSHIP */
310
316
  };
311
317
  const useBusinessSetup = (legalEntityResponse) => {
312
- var _a, _b;
313
318
  const { accountHolder } = useAccountHolder();
314
319
  const accountHolderType = accountHolder || getDefaultAccountHolderType(legalEntityResponse);
315
- const organizationType = (_a = legalEntityResponse == null ? void 0 : legalEntityResponse.organization) == null ? void 0 : _a.type;
316
- const businessSetup = accountHolderType === "theCompanyIWorkFor" && organizationType ? companyTypesMapping[organizationType] : (_b = businessTypeMapping[accountHolderType]) == null ? void 0 : _b[legalEntityResponse == null ? void 0 : legalEntityResponse.type];
320
+ const organizationType = legalEntityResponse?.organization?.type;
321
+ const businessSetup = accountHolderType === "theCompanyIWorkFor" && organizationType ? companyTypesMapping[organizationType] : businessTypeMapping[accountHolderType]?.[legalEntityResponse?.type];
317
322
  return businessSetup;
318
323
  };
319
324
  function useDataMissingRemediations({
320
325
  legalEntityId,
321
326
  problems
322
327
  }) {
323
- const { i18n } = useI18nContext();
328
+ const { t } = useTranslation();
324
329
  const decisionMakersRemediationMessage = useMemo(() => {
325
- var _a, _b, _c;
326
- const remediationCodes = (_c = (_b = (_a = problems[EntityType.LEGAL_ENTITY]) == null ? void 0 : _a[legalEntityId]) == null ? void 0 : _b.missingData) == null ? void 0 : _c.reduce((remediations, error) => {
330
+ const remediationCodes = problems[EntityType.LEGAL_ENTITY]?.[legalEntityId]?.missingData?.reduce((remediations, error) => {
327
331
  const remediation = DATA_MISSING_DECISION_MAKER_ERROR_CODE_MAPPING[error.code];
328
332
  return remediation ? [...remediations, remediation] : remediations;
329
333
  }, []);
330
334
  const uniqueRemediations = [...new Set(remediationCodes)];
331
- switch (uniqueRemediations == null ? void 0 : uniqueRemediations.length) {
335
+ switch (uniqueRemediations?.length) {
332
336
  case void 0:
333
337
  case 0:
334
338
  return void 0;
335
339
  case 1:
336
- return uniqueRemediations[0] ? i18n.get(`remediationMessage_${uniqueRemediations[0]}`) : i18n.get("missingMultipleDecisionMakers");
340
+ return uniqueRemediations[0] ? t(($) => $[`remediationMessage_${uniqueRemediations[0]}`]) : t(($) => $["missingMultipleDecisionMakers"]);
337
341
  default:
338
- return i18n.get("missingMultipleDecisionMakers");
342
+ return t(($) => $["missingMultipleDecisionMakers"]);
339
343
  }
340
- }, [problems, i18n, legalEntityId]);
344
+ }, [problems, t, legalEntityId]);
341
345
  return {
342
346
  remediationMessages: {
343
347
  [TaskTypes.DECISION_MAKER]: decisionMakersRemediationMessage
344
348
  }
345
349
  };
346
350
  }
351
+ const logger$2 = createLogger();
347
352
  const normalizeTaskStatuses = (taskStatuses) => {
348
- var _a;
349
- return (_a = taskStatuses == null ? void 0 : taskStatuses.statuses) == null ? void 0 : _a.reduce((acc, currentTask) => {
353
+ return taskStatuses?.statuses?.reduce((acc, currentTask) => {
350
354
  const status = TaskStatus[currentTask.status];
351
355
  const statusEntries = currentTask.taskStatusEntries;
352
356
  acc[currentTask.type] = {
@@ -359,11 +363,11 @@ const normalizeTaskStatuses = (taskStatuses) => {
359
363
  const TASK_STATUS_POLLING_INTERVAL_MS = 3e3;
360
364
  const TASK_STATUS_COMPLETED_POLLING_INTERVAL_MS = 6e3;
361
365
  const getAccountTaskStatus = (accountId, payinPayoutTaskStatus) => {
362
- const taskStatusEntries = payinPayoutTaskStatus == null ? void 0 : payinPayoutTaskStatus.taskStatusEntries;
363
- const taskStatusEntry = taskStatusEntries == null ? void 0 : taskStatusEntries.find((entry) => entry.id.includes(accountId));
366
+ const taskStatusEntries = payinPayoutTaskStatus?.taskStatusEntries;
367
+ const taskStatusEntry = taskStatusEntries?.find((entry) => entry.id.includes(accountId));
364
368
  if (!taskStatusEntry) {
365
- console.warn(`No task status for this account: ${accountId}`);
366
- return (payinPayoutTaskStatus == null ? void 0 : payinPayoutTaskStatus.status) ?? TaskStatus.PROCESSING;
369
+ logger$2.warn(`No task status for this account: ${accountId}`);
370
+ return payinPayoutTaskStatus?.status ?? TaskStatus.PROCESSING;
367
371
  }
368
372
  return TaskStatus[taskStatusEntry.status];
369
373
  };
@@ -378,7 +382,7 @@ const Remove = ({
378
382
  handleIsRemoveDisabled,
379
383
  label
380
384
  }) => {
381
- const { i18n } = useI18nContext();
385
+ const { t } = useTranslation();
382
386
  const [undoTimer, setUndoTimer] = useState(5);
383
387
  const [isRemoving, setIsRemoving] = useState(false);
384
388
  useEffect(() => {
@@ -397,13 +401,13 @@ const Remove = ({
397
401
  event.preventDefault();
398
402
  if (!isRemoving) {
399
403
  setIsRemoving(true);
400
- onRemoveStatusChange == null ? void 0 : onRemoveStatusChange(true);
401
- handleIsRemoveDisabled == null ? void 0 : handleIsRemoveDisabled(true);
404
+ onRemoveStatusChange?.(true);
405
+ handleIsRemoveDisabled?.(true);
402
406
  } else {
403
407
  setUndoTimer(5);
404
408
  setIsRemoving(false);
405
- onRemoveStatusChange == null ? void 0 : onRemoveStatusChange(false);
406
- handleIsRemoveDisabled == null ? void 0 : handleIsRemoveDisabled(false);
409
+ onRemoveStatusChange?.(false);
410
+ handleIsRemoveDisabled?.(false);
407
411
  }
408
412
  };
409
413
  useEffect(() => {
@@ -411,15 +415,15 @@ const Remove = ({
411
415
  (async () => {
412
416
  setIsRemoving(false);
413
417
  await onRemove();
414
- onRemoveStatusChange == null ? void 0 : onRemoveStatusChange(false);
415
- handleIsRemoveDisabled == null ? void 0 : handleIsRemoveDisabled(false);
418
+ onRemoveStatusChange?.(false);
419
+ handleIsRemoveDisabled?.(false);
416
420
  })();
417
421
  }
418
422
  }, [undoTimer, isRemoving, onRemoveStatusChange, handleIsRemoveDisabled, onRemove]);
419
- return isRemoving ? /* @__PURE__ */ jsx(Button, { variant: "tertiary", onClick: onClickHandler, children: i18n.get("undoWithTimer", { values: { secondsLeft: undoTimer } }) }) : /* @__PURE__ */ jsx(
423
+ return isRemoving ? /* @__PURE__ */ jsx(Button, { variant: "tertiary", onClick: onClickHandler, children: t(($) => $["undoWithTimer"], { secondsLeft: undoTimer }) }) : /* @__PURE__ */ jsx(
420
424
  IconButton,
421
425
  {
422
- ariaLabel: i18n.get(label),
426
+ ariaLabel: label && t(($) => $[label]),
423
427
  icon: "bin",
424
428
  variant: "tertiary",
425
429
  onClick: onClickHandler,
@@ -447,7 +451,7 @@ const TaskListItem = ({
447
451
  testId,
448
452
  enableTracking = true
449
453
  }) => {
450
- const { i18n } = useI18nContext();
454
+ const { t } = useTranslation();
451
455
  const userEvents = useAnalyticsContext();
452
456
  const shouldShowErrorAlert = showErrorAlerts === "always" || showErrorAlerts === "onErrorStatus" && status === TaskStatus.ERROR;
453
457
  const [isStatusRemoving, setIsStatusRemoving] = useState(false);
@@ -459,7 +463,7 @@ const TaskListItem = ({
459
463
  label: titleKey
460
464
  });
461
465
  }
462
- onNavigateToTask == null ? void 0 : onNavigateToTask();
466
+ onNavigateToTask?.();
463
467
  };
464
468
  const avatarVariant = disabled ? "disabled" : "primary";
465
469
  return /* @__PURE__ */ jsx(
@@ -482,7 +486,7 @@ const TaskListItem = ({
482
486
  /* @__PURE__ */ jsxs("div", { className: "adyen-task-item__header", children: [
483
487
  /* @__PURE__ */ jsxs("div", { className: "adyen-task-item__heading", children: [
484
488
  /* @__PURE__ */ jsx(Avatar, { variant: avatarVariant, iconName: icon }),
485
- /* @__PURE__ */ jsx("div", { className: "adyen-task-item__body", children: /* @__PURE__ */ jsx("span", { className: "adyen-task-item__title", children: title || i18n.get(titleKey) }) })
489
+ /* @__PURE__ */ jsx("div", { className: "adyen-task-item__body", children: /* @__PURE__ */ jsx("span", { className: "adyen-task-item__title", children: title || t(($) => $[titleKey]) }) })
486
490
  ] }),
487
491
  info && /* @__PURE__ */ jsxs("div", { className: "adyen-task-item__info", children: [
488
492
  /* @__PURE__ */ jsx(Icon, { name: "info-circle" }),
@@ -522,8 +526,7 @@ const PayoutAccountTaskListItem = ({
522
526
  onNavigateToTask,
523
527
  payinPayoutTaskStatus
524
528
  }) => {
525
- var _a;
526
- const { i18n } = useI18nContext();
529
+ const { t } = useTranslation();
527
530
  const { showToast } = useToastContext();
528
531
  const { isExperimentEnabled } = useExperimentsContext();
529
532
  const { mutateAsync: deleteTransferInstrument } = useDeleteTransferInstrument();
@@ -536,9 +539,9 @@ const PayoutAccountTaskListItem = ({
536
539
  const handleDeleteTransferInstrument = async () => {
537
540
  try {
538
541
  await deleteTransferInstrument(account.id);
539
- showToast({ label: i18n.get("transferInstrumentDeleted"), variant: "success" });
542
+ showToast({ label: t(($) => $["transferInstrumentDeleted"]), variant: "success" });
540
543
  } catch {
541
- showToast({ label: i18n.get("failedToDeletePayoutAccount"), variant: "error" });
544
+ showToast({ label: t(($) => $["failedToDeletePayoutAccount"]), variant: "error" });
542
545
  }
543
546
  };
544
547
  return /* @__PURE__ */ jsx(
@@ -550,7 +553,7 @@ const PayoutAccountTaskListItem = ({
550
553
  titleKey: "accountNumber",
551
554
  title: obscuredAccountNumber,
552
555
  status,
553
- problems: (_a = capabilityProblems == null ? void 0 : capabilityProblems.BankAccount) == null ? void 0 : _a[account.id],
556
+ problems: capabilityProblems?.BankAccount?.[account.id],
554
557
  loading: isDeletingTransferInstrument,
555
558
  removeEntity: () => {
556
559
  setIsDeletingTransferInstrument(true);
@@ -593,64 +596,100 @@ function TaskListInner({
593
596
  capabilityProblems,
594
597
  singpassComponent
595
598
  }) {
596
- var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o;
597
- const isReview = Boolean(
598
- (_b = (_a = capabilityProblems == null ? void 0 : capabilityProblems.LegalEntity) == null ? void 0 : _a[legalEntityResponse.id]) == null ? void 0 : _b.isReviewRequired
599
- );
600
- const { accountHolder } = useAccountHolder();
601
- const { i18n } = useI18nContext();
602
599
  const userEvents = useAnalyticsContext();
603
- const { isExperimentEnabled } = useExperimentsContext();
600
+ const { t } = useTranslation();
604
601
  const { showToast } = useToastContext();
605
- const transferInstrumentLimit = useSetting("transferInstrumentLimit");
602
+ const { rootLegalEntityId, baseUrl } = useApiContext();
606
603
  const { isSettingEnabled } = useSettingsContext();
607
- const canChangeEntityType = isSettingEnabled(SettingNames.AllowLegalEntityTypeChange);
604
+ const { isExperimentEnabled } = useExperimentsContext();
605
+ const { accountHolder } = useAccountHolder();
606
+ const tasks = useGlobalStore().tasks.value;
607
+ const getTaskStatus2 = useGetTaskStatus();
608
+ const businessSetup = useBusinessSetup(legalEntityResponse);
608
609
  const canSeeIntroduction = useCanSeeIntroduction({ legalEntity: legalEntityResponse });
610
+ const additionalSalesChannels = useSalesChannelsSettings();
609
611
  const { remediationMessages } = useDataMissingRemediations({
610
612
  legalEntityId: legalEntityResponse.id,
611
613
  problems: capabilityProblems
612
614
  });
613
- const businessSetup = useBusinessSetup(legalEntityResponse);
614
- const tasks = useGlobalStore().tasks.value;
615
- const getTaskStatus2 = useGetTaskStatus();
616
- const additionalSalesChannels = useSalesChannelsSettings();
617
615
  const { data: pciStatus } = usePciStatus(
618
616
  { additionalSalesChannels },
619
617
  { enabled: tasks.includes(TaskTypes.PCI_DSS) }
620
618
  );
621
619
  const { data: pciQuestionnaireList } = usePciQuestionnaireList();
622
- const pciDocuments = ((_c = pciQuestionnaireList == null ? void 0 : pciQuestionnaireList.data) == null ? void 0 : _c.length) ?? 0;
623
- const pciHasDocuments = pciDocuments > 0;
624
- const hasTaskOfGroupAccountDetails = tasks.some((task) => LEGAL_ENTITY_BASE_TASKS.includes(task));
625
- const hasTrust = accountHolder === "aTrust" || isPartOfTrustFromLegalEntity(legalEntityResponse);
626
- const hasUnincorporatedPartnership = accountHolder === "anUnincorporatedPartnership" || isPartOfUnincorporatedPartnership(legalEntityResponse);
627
- const hasContractTasks = tasks.some((task) => CONTRACT_TASKS.includes(task));
628
- const hasSoleProprietorship = accountHolder === "mySoleProprietorName" || hasSolePropInLegalEntity(legalEntityResponse);
620
+ const { data: termsOfServiceStatus } = useTermsOfServiceStatus();
621
+ const { data: termsOfServiceStatusAcceptanceInfos } = useTermsOfServiceAcceptanceInfos();
622
+ const { data: taskStatuses } = useTaskStatus({
623
+ refetchInterval: (query) => {
624
+ const { data: response } = query.state || {};
625
+ const statuses = response?.statuses;
626
+ const areAllTasksFinishedOrEmpty = statuses?.length === 0 || statuses?.every((task) => task.status === TaskStatus[TaskStatus.FINISHED]);
627
+ return areAllTasksFinishedOrEmpty ? TASK_STATUS_COMPLETED_POLLING_INTERVAL_MS : TASK_STATUS_POLLING_INTERVAL_MS;
628
+ }
629
+ });
630
+ const canChangeEntityType = isSettingEnabled(SettingNames.AllowLegalEntityTypeChange);
629
631
  const hidePayoutAccountTaskExperiment = isExperimentEnabled("HidePayoutAccountTask");
630
632
  const hidePciTaskExperiment = isExperimentEnabled("HidePciTask");
631
- const { data: termsOfServiceStatusAcceptanceInfos } = useTermsOfServiceAcceptanceInfos();
632
- const { data: termsOfServiceStatus } = useTermsOfServiceStatus();
633
- const serviceAgreementTypes = (termsOfServiceStatus == null ? void 0 : termsOfServiceStatus.termsOfServiceTypes) ?? [];
634
- const serviceAgreementAcceptanceInfos = (termsOfServiceStatusAcceptanceInfos == null ? void 0 : termsOfServiceStatusAcceptanceInfos.data) ?? [];
635
633
  const showCustomerSupportV4 = isExperimentEnabled("ShowCustomerSupportV4");
634
+ const EnableSignPCIBeforeTOS = isExperimentEnabled("EnableSignPCIBeforeTOS");
635
+ const transferInstrumentLimit = useSetting("transferInstrumentLimit");
636
+ const normalizedTasks = normalizeTaskStatuses(taskStatuses);
637
+ setNormalizedTaskStatusStore(normalizedTasks);
638
+ const payinPayoutTaskStatus = normalizedTasks?.PAYOUT ?? normalizedTasks?.PAYIN;
639
+ const businessDetailsTaskStatus = isExperimentEnabled("EnableBusinessDetailsTaskStatusService") ? normalizedTasks?.BUSINESS_DETAILS?.status ?? TaskStatus.DETAILS_REQUIRED : getTaskStatus2(TaskTypes.BUSINESS_DETAILS);
640
+ const isReview = Boolean(
641
+ capabilityProblems?.LegalEntity?.[legalEntityResponse.id]?.isReviewRequired
642
+ );
643
+ const hasTrust = accountHolder === "aTrust" || isPartOfTrustFromLegalEntity(legalEntityResponse);
644
+ const hasUnincorporatedPartnership = accountHolder === "anUnincorporatedPartnership" || isPartOfUnincorporatedPartnership(legalEntityResponse);
645
+ const hasSoleProprietorship = accountHolder === "mySoleProprietorName" || hasSolePropInLegalEntity(legalEntityResponse);
636
646
  const isLegalRepresentativeRequired = isExperimentEnabled("EnableAgeVerification") && doesLegalEntityRequiresLegalRepresentative(legalEntityResponse);
637
647
  const legalRepresentative = isLegalRepresentativeRequired && getLegalRepresentative(legalEntityResponse);
638
- const transferInstruments = (legalEntityResponse == null ? void 0 : legalEntityResponse.transferInstruments) || [];
639
- const canAddPayoutAccount = ((_d = legalEntityResponse == null ? void 0 : legalEntityResponse.organization) == null ? void 0 : _d.legalName) || ((_e = legalEntityResponse == null ? void 0 : legalEntityResponse.individual) == null ? void 0 : _e.name);
648
+ const transferInstruments = legalEntityResponse?.transferInstruments || [];
649
+ const canAddPayoutAccount = legalEntityResponse?.organization?.legalName || legalEntityResponse?.individual?.name;
640
650
  const hasPayinTaskNotPayout = tasks.includes(TaskTypes.PAYIN) && !tasks.includes(TaskTypes.PAYOUT);
641
- const hasPciSigners = legalEntityResponse.type === LegalEntityType.ORGANIZATION && !!((_f = legalEntityResponse == null ? void 0 : legalEntityResponse.entityAssociations) == null ? void 0 : _f.length) || legalEntityResponse.type === LegalEntityType.INDIVIDUAL && !!((_g = legalEntityResponse == null ? void 0 : legalEntityResponse.entityAssociations) == null ? void 0 : _g.length);
642
- const canSignPci = hasPciSigners && tasks.includes(TaskTypes.PCI_DSS);
643
- const canDownloadPci = !(pciStatus == null ? void 0 : pciStatus.signingRequired) && pciHasDocuments;
644
- const isPciTaskDisabled = !canSignPci || !(pciStatus == null ? void 0 : pciStatus.signingRequired) && !pciHasDocuments || canDownloadPci;
645
- const showPciTask = (canDownloadPci || (pciStatus == null ? void 0 : pciStatus.signingRequired)) && !hidePciTaskExperiment;
651
+ const payoutTaskDescriptionKey = isReview ? "payoutAccountsDescriptionReview" : "payoutAccountsDescription";
652
+ const pciHasDocuments = !!pciQuestionnaireList?.data?.length;
653
+ const canSignPci = (
654
+ // PCI requires decision makers to be added
655
+ legalEntityResponse.type === LegalEntityType.ORGANIZATION && !!legalEntityResponse?.entityAssociations?.length || legalEntityResponse.type === LegalEntityType.INDIVIDUAL && !!legalEntityResponse?.entityAssociations?.length
656
+ );
657
+ const canDownloadPci = !pciStatus?.signingRequired && pciHasDocuments;
658
+ const hasSignedPci = !pciStatus?.signingRequired && canSignPci;
659
+ const serviceAgreementTypes = termsOfServiceStatus?.termsOfServiceTypes ?? [];
660
+ const serviceAgreementAcceptanceInfos = termsOfServiceStatusAcceptanceInfos?.data ?? [];
661
+ const hasServiceAgreementSigners = legalEntityResponse.type === LegalEntityType.ORGANIZATION && getOwnSignatories(legalEntityResponse).length || Boolean(legalRepresentative) || legalEntityResponse.type === LegalEntityType.INDIVIDUAL && !!legalEntityResponse?.individual;
662
+ const hasTaskOfGroupAccountDetails = tasks.some((task) => LEGAL_ENTITY_BASE_TASKS.includes(task));
663
+ const hasContractTasks = tasks.some((task) => CONTRACT_TASKS.includes(task));
664
+ const hasFinancingTasks = tasks.includes(TaskTypes.BUSINESS_FINANCING) || tasks.includes(TaskTypes.SOURCE_OF_FUNDS);
646
665
  const showServiceAgreementTask = tasks.includes(TaskTypes.SERVICE_AGREEMENT) && (serviceAgreementTypes.length > 0 || serviceAgreementAcceptanceInfos.length > 0);
647
- const hasServiceAgreementSigners = legalEntityResponse.type === LegalEntityType.ORGANIZATION && getOwnSignatories(legalEntityResponse).length || Boolean(legalRepresentative) || legalEntityResponse.type === LegalEntityType.INDIVIDUAL && !!(legalEntityResponse == null ? void 0 : legalEntityResponse.individual);
648
- const areServiceAgreementTasksDisabled = !hasServiceAgreementSigners;
666
+ const showPciTask = tasks.includes(TaskTypes.PCI_DSS) && (canDownloadPci || pciStatus?.signingRequired) && !hidePciTaskExperiment;
649
667
  const showContractTasks = hasContractTasks && (showPciTask || showServiceAgreementTask);
650
- const showDecisionMakersWarning = Boolean(
651
- getOwnDecisionMakersLegalEntityIds(legalEntityResponse).length && remediationMessages.DECISION_MAKER
652
- );
653
- const { rootLegalEntityId, baseUrl } = useApiContext();
668
+ const shouldSignPciFirst = showServiceAgreementTask && showPciTask && !hasSignedPci;
669
+ const areServiceAgreementTasksDisabled = EnableSignPCIBeforeTOS ? !hasServiceAgreementSigners || shouldSignPciFirst : !hasServiceAgreementSigners;
670
+ const isPciTaskDisabled = !pciStatus?.signingRequired || !canSignPci;
671
+ const getBusinessTaskListTitleKey = () => {
672
+ if (hasUnincorporatedPartnership) {
673
+ return "tellUsMoreAboutPrimaryPartner";
674
+ } else if (tasks.includes(TaskTypes.BUSINESS_DETAILS)) {
675
+ return isReview ? "businessAccountDetailsDescriptionReview" : "businessAccountDetailsDescription";
676
+ } else if (canChangeEntityType) {
677
+ return "provideFewDetailsAboutYourself";
678
+ } else {
679
+ return "accountDetailsDescription";
680
+ }
681
+ };
682
+ const getEmptyBankAccountProblems = () => {
683
+ const transferInstrumentId = legalEntityResponse?.transferInstruments?.[0]?.id;
684
+ return transferInstrumentId ? capabilityProblems?.BankAccount?.[transferInstrumentId] : void 0;
685
+ };
686
+ const onEditBusinessSetupClick = () => {
687
+ userEvents.addTaskEvent("Clicked button", {
688
+ task: TaskTypes.TASKS_OVERVIEW,
689
+ actionType: "edit"
690
+ });
691
+ onNavigateToTask(TaskTypes.BUSINESS_TYPE_SELECTION);
692
+ };
654
693
  const onPciDownload = async () => {
655
694
  try {
656
695
  const response = await getPciQuestionnaireList(rootLegalEntityId.value, baseUrl.value);
@@ -666,7 +705,7 @@ function TaskListInner({
666
705
  })
667
706
  );
668
707
  } catch {
669
- showToast({ label: i18n.get("failedToDownloadPci"), variant: "error" });
708
+ showToast({ label: t(($) => $["failedToDownloadPci"]), variant: "error" });
670
709
  } finally {
671
710
  userEvents.addTaskEvent("Clicked button", {
672
711
  task: TaskTypes.PCI_DSS,
@@ -689,31 +728,9 @@ function TaskListInner({
689
728
  const handleOnNavigateToSourceOfFunds = () => onNavigateToTask(TaskTypes.SOURCE_OF_FUNDS);
690
729
  const handleOnNavigateToBusinessFinancing = () => onNavigateToTask(TaskTypes.BUSINESS_FINANCING);
691
730
  const handleOnNavigateToTaxReporting = () => onNavigateToTask(TaskTypes.TAX_REPORTING);
692
- const hasFinancingTasks = tasks.includes(TaskTypes.BUSINESS_FINANCING) || tasks.includes(TaskTypes.SOURCE_OF_FUNDS);
693
- const payoutTaskDescriptionKey = isReview ? "payoutAccountsDescriptionReview" : "payoutAccountsDescription";
694
- const onEditBusinessSetupClick = () => {
695
- userEvents.addTaskEvent("Clicked button", {
696
- task: TaskTypes.TASKS_OVERVIEW,
697
- actionType: "edit"
698
- });
699
- onNavigateToTask(TaskTypes.BUSINESS_TYPE_SELECTION);
700
- };
701
- const getBusinessTaskListTitleKey = () => {
702
- if (hasUnincorporatedPartnership) {
703
- return "tellUsMoreAboutPrimaryPartner";
704
- } else if (tasks.includes(TaskTypes.BUSINESS_DETAILS)) {
705
- return isReview ? "businessAccountDetailsDescriptionReview" : "businessAccountDetailsDescription";
706
- } else if (canChangeEntityType) {
707
- return "provideFewDetailsAboutYourself";
708
- } else {
709
- return "accountDetailsDescription";
710
- }
711
- };
712
- const getEmptyBankAccountProblems = () => {
713
- var _a2, _b2, _c2;
714
- const transferInstrumentId = (_b2 = (_a2 = legalEntityResponse == null ? void 0 : legalEntityResponse.transferInstruments) == null ? void 0 : _a2[0]) == null ? void 0 : _b2.id;
715
- return transferInstrumentId ? (_c2 = capabilityProblems == null ? void 0 : capabilityProblems.BankAccount) == null ? void 0 : _c2[transferInstrumentId] : void 0;
716
- };
731
+ const showDecisionMakersWarning = Boolean(
732
+ getOwnDecisionMakersLegalEntityIds(legalEntityResponse).length && remediationMessages.DECISION_MAKER
733
+ );
717
734
  useEffect(() => {
718
735
  if (showDecisionMakersWarning) {
719
736
  userEvents.addTaskEvent("Encountered error", {
@@ -723,32 +740,18 @@ function TaskListInner({
723
740
  });
724
741
  }
725
742
  }, [showDecisionMakersWarning, userEvents]);
726
- const { data: taskStatuses } = useTaskStatus({
727
- refetchInterval: (query) => {
728
- const { data: response } = query.state || {};
729
- const statuses = response == null ? void 0 : response.statuses;
730
- const areAllTasksFinishedOrEmpty = (statuses == null ? void 0 : statuses.length) === 0 || (statuses == null ? void 0 : statuses.every((task) => task.status === TaskStatus[TaskStatus.FINISHED]));
731
- return areAllTasksFinishedOrEmpty ? TASK_STATUS_COMPLETED_POLLING_INTERVAL_MS : TASK_STATUS_POLLING_INTERVAL_MS;
732
- }
733
- });
734
- const normalizedTasks = normalizeTaskStatuses(taskStatuses);
735
- setNormalizedTaskStatusStore(normalizedTasks);
736
- const payinPayoutTaskStatus = (normalizedTasks == null ? void 0 : normalizedTasks.PAYOUT) ?? (normalizedTasks == null ? void 0 : normalizedTasks.PAYIN);
737
- const businessDetailsTaskStatus = isExperimentEnabled("EnableBusinessDetailsTaskStatusService") ? ((_h = normalizedTasks == null ? void 0 : normalizedTasks.BUSINESS_DETAILS) == null ? void 0 : _h.status) ?? TaskStatus.DETAILS_REQUIRED : getTaskStatus2(TaskTypes.BUSINESS_DETAILS);
738
743
  return /* @__PURE__ */ jsxs("div", { className: "adyen-task-list__container", children: [
739
- canSeeIntroduction && /* @__PURE__ */ jsx("div", { className: "adyen-task-list__nav", children: /* @__PURE__ */ jsx(Button, { variant: "link", onClick: () => onNavigateToTask(TaskTypes.INTRODUCTION), children: i18n.get("goToIntroduction") }) }),
744
+ canSeeIntroduction && /* @__PURE__ */ jsx("div", { className: "adyen-task-list__nav", children: /* @__PURE__ */ jsx(Button, { variant: "link", onClick: () => onNavigateToTask(TaskTypes.INTRODUCTION), children: t(($) => $["goToIntroduction"]) }) }),
740
745
  canChangeEntityType && /* @__PURE__ */ jsxs("header", { className: "adyen-task-list__heading", children: [
741
- /* @__PURE__ */ jsx(Typography, { el: "h1", variant: "title-l", children: i18n.get("setUpYourAccount") }),
746
+ /* @__PURE__ */ jsx(Typography, { el: "h1", variant: "title-l", children: t(($) => $["setUpYourAccount"]) }),
742
747
  /* @__PURE__ */ jsxs(Typography, { el: "p", variant: "title", className: "adyen-task-list__description", children: [
743
- /* @__PURE__ */ jsx(Typography, { el: "span", variant: "body-strongest", children: i18n.get("yourBusinessSetup", {
744
- values: {
745
- businessSetup: businessSetup ? i18n.get(businessSetup) : i18n.get("unknown")
746
- }
748
+ /* @__PURE__ */ jsx(Typography, { el: "span", variant: "body-strongest", children: t(($) => $["yourBusinessSetup"], {
749
+ businessSetup: businessSetup ? t(($) => $[businessSetup]) : t(($) => $["unknown"])
747
750
  }) }),
748
751
  /* @__PURE__ */ jsx(
749
752
  IconButton,
750
753
  {
751
- ariaLabel: i18n.get("editBusinessSetup"),
754
+ ariaLabel: t(($) => $["editBusinessSetup"]),
752
755
  icon: "edit",
753
756
  variant: "tertiary",
754
757
  onClick: onEditBusinessSetupClick
@@ -758,7 +761,7 @@ function TaskListInner({
758
761
  ] }),
759
762
  singpassComponent,
760
763
  /* @__PURE__ */ jsxs("div", { children: [
761
- hasTaskOfGroupAccountDetails && /* @__PURE__ */ jsxs(TaskListGroup, { title: i18n.get(getBusinessTaskListTitleKey()), children: [
764
+ hasTaskOfGroupAccountDetails && /* @__PURE__ */ jsxs(TaskListGroup, { title: t(($) => $[getBusinessTaskListTitleKey()]), children: [
762
765
  tasks.includes(TaskTypes.INDIVIDUAL) && /* @__PURE__ */ jsx(
763
766
  TaskListItem,
764
767
  {
@@ -766,7 +769,7 @@ function TaskListInner({
766
769
  icon: "decision-maker",
767
770
  titleKey: hasTrust ? "trusteePersonalDetails" : hasUnincorporatedPartnership ? "primaryPartnerDetails" : "personalDetails",
768
771
  status: getTaskStatus2(TaskTypes.INDIVIDUAL),
769
- problems: (_i = capabilityProblems == null ? void 0 : capabilityProblems.LegalEntity) == null ? void 0 : _i[legalEntityResponse.id]
772
+ problems: capabilityProblems?.LegalEntity?.[legalEntityResponse.id]
770
773
  }
771
774
  ),
772
775
  tasks.includes(TaskTypes.BUSINESS_DETAILS) && /* @__PURE__ */ jsx(
@@ -777,7 +780,7 @@ function TaskListInner({
777
780
  icon: "company",
778
781
  titleKey: hasTrust ? "businessTrusteeDetails" : hasUnincorporatedPartnership ? "primaryPartnerDetails" : "businessDetails",
779
782
  status: businessDetailsTaskStatus,
780
- problems: (_j = capabilityProblems == null ? void 0 : capabilityProblems.LegalEntity) == null ? void 0 : _j[legalEntityResponse.id]
783
+ problems: capabilityProblems?.LegalEntity?.[legalEntityResponse.id]
781
784
  }
782
785
  ),
783
786
  hasSoleProprietorship && /* @__PURE__ */ jsx(
@@ -806,7 +809,7 @@ function TaskListInner({
806
809
  icon: "decision-maker",
807
810
  titleKey: hasUnincorporatedPartnership ? "entityDecisionMakers" : "decisionMakers",
808
811
  status: getTaskStatus2(TaskTypes.DECISION_MAKER_OVERVIEW),
809
- warningMessage: remediationMessages[TaskTypes.DECISION_MAKER]
812
+ warningMessage: showDecisionMakersWarning ? remediationMessages[TaskTypes.DECISION_MAKER] : void 0
810
813
  }
811
814
  ),
812
815
  showCustomerSupportV4 && tasks.includes(TaskTypes.CUSTOMER_SUPPORT) && /* @__PURE__ */ jsx(
@@ -815,11 +818,11 @@ function TaskListInner({
815
818
  onNavigateToTask: handleOnNavigateToTaskCustomerSupport,
816
819
  icon: "webinar",
817
820
  titleKey: "customerSupport",
818
- status: ((_k = normalizedTasks == null ? void 0 : normalizedTasks.CUSTOMER_SUPPORT) == null ? void 0 : _k.status) ?? TaskStatus.DETAILS_REQUIRED
821
+ status: normalizedTasks?.CUSTOMER_SUPPORT?.status ?? TaskStatus.DETAILS_REQUIRED
819
822
  }
820
823
  )
821
824
  ] }),
822
- hasTrust && /* @__PURE__ */ jsxs(TaskListGroup, { title: i18n.get("trustDetailsDescription"), children: [
825
+ hasTrust && /* @__PURE__ */ jsxs(TaskListGroup, { title: t(($) => $["trustDetailsDescription"]), children: [
823
826
  /* @__PURE__ */ jsx(
824
827
  TaskListItem,
825
828
  {
@@ -840,7 +843,7 @@ function TaskListInner({
840
843
  }
841
844
  )
842
845
  ] }),
843
- hasUnincorporatedPartnership && /* @__PURE__ */ jsxs(TaskListGroup, { title: i18n.get("partnershipUnincorporated"), children: [
846
+ hasUnincorporatedPartnership && /* @__PURE__ */ jsxs(TaskListGroup, { title: t(($) => $["partnershipUnincorporated"]), children: [
844
847
  /* @__PURE__ */ jsx(
845
848
  TaskListItem,
846
849
  {
@@ -877,7 +880,7 @@ function TaskListInner({
877
880
  onNavigateToTask: handleOnNavigateToSourceOfFunds,
878
881
  icon: "cash-stack",
879
882
  titleKey: "fundingSources",
880
- status: ((_l = normalizedTasks == null ? void 0 : normalizedTasks.SOURCE_OF_FUNDS) == null ? void 0 : _l.status) ?? TaskStatus.DETAILS_REQUIRED
883
+ status: normalizedTasks?.SOURCE_OF_FUNDS?.status ?? TaskStatus.DETAILS_REQUIRED
881
884
  }
882
885
  ),
883
886
  tasks.includes(TaskTypes.BUSINESS_FINANCING) && /* @__PURE__ */ jsx(
@@ -886,7 +889,7 @@ function TaskListInner({
886
889
  onNavigateToTask: handleOnNavigateToBusinessFinancing,
887
890
  icon: "capital",
888
891
  titleKey: "businessFinancing",
889
- status: ((_m = normalizedTasks == null ? void 0 : normalizedTasks.BUSINESS_FINANCING) == null ? void 0 : _m.status) ?? TaskStatus.DETAILS_REQUIRED
892
+ status: normalizedTasks?.BUSINESS_FINANCING?.status ?? TaskStatus.DETAILS_REQUIRED
890
893
  }
891
894
  )
892
895
  ] }),
@@ -896,14 +899,14 @@ function TaskListInner({
896
899
  onNavigateToTask: handleOnNavigateToTaxReporting,
897
900
  icon: "reporting",
898
901
  titleKey: "taxReporting",
899
- status: ((_n = normalizedTasks == null ? void 0 : normalizedTasks.TAX_REPORTING) == null ? void 0 : _n.status) ?? TaskStatus.DETAILS_REQUIRED
902
+ status: normalizedTasks?.TAX_REPORTING?.status ?? TaskStatus.DETAILS_REQUIRED
900
903
  }
901
904
  ) }),
902
905
  (tasks.includes(TaskTypes.PAYOUT) || tasks.includes(TaskTypes.PAYIN)) && !hidePayoutAccountTaskExperiment && /* @__PURE__ */ jsx(
903
906
  TaskListGroup,
904
907
  {
905
- title: canChangeEntityType ? i18n.get("payoutBankAccounts") : i18n.get(
906
- hasPayinTaskNotPayout ? "payinAccountsDescription" : payoutTaskDescriptionKey
908
+ title: canChangeEntityType ? t(($) => $["payoutBankAccounts"]) : t(
909
+ ($) => $[hasPayinTaskNotPayout ? "payinAccountsDescription" : payoutTaskDescriptionKey]
907
910
  ),
908
911
  children: transferInstruments.length > 0 ? /* @__PURE__ */ jsxs(Fragment, { children: [
909
912
  transferInstruments.map((transferInstrument) => /* @__PURE__ */ jsx(
@@ -925,8 +928,8 @@ function TaskListInner({
925
928
  disabled: !canAddPayoutAccount,
926
929
  children: [
927
930
  /* @__PURE__ */ jsx(Icon, { name: "plus", className: "adyen-task-list__card-icon " }),
928
- /* @__PURE__ */ jsx("span", { children: canChangeEntityType ? i18n.get("addExtraBankAccount") : i18n.get(
929
- hasPayinTaskNotPayout ? "addExtraPayinAccount" : "addExtraPayoutAccount"
931
+ /* @__PURE__ */ jsx("span", { children: canChangeEntityType ? t(($) => $["addExtraBankAccount"]) : t(
932
+ ($) => $[hasPayinTaskNotPayout ? "addExtraPayinAccount" : "addExtraPayoutAccount"]
930
933
  ) })
931
934
  ]
932
935
  }
@@ -944,18 +947,7 @@ function TaskListInner({
944
947
  )
945
948
  }
946
949
  ),
947
- showContractTasks && /* @__PURE__ */ jsxs(TaskListGroup, { title: i18n.get("reviewAndSignLegalDisclosures"), children: [
948
- showServiceAgreementTask && /* @__PURE__ */ jsx(
949
- TaskListItem,
950
- {
951
- onNavigateToTask: handleOnNavigateToServiceAgreement,
952
- icon: "contract",
953
- titleKey: "signServiceAgreement",
954
- disabled: areServiceAgreementTasksDisabled,
955
- status: serviceAgreementTypes.length ? TaskStatus.SIGN : TaskStatus.SIGNED,
956
- info: areServiceAgreementTasksDisabled ? i18n.get("requiresSignatory") : void 0
957
- }
958
- ),
950
+ showContractTasks && /* @__PURE__ */ jsxs(TaskListGroup, { title: t(($) => $["reviewAndSignLegalDisclosures"]), children: [
959
951
  showPciTask && /* @__PURE__ */ jsx(
960
952
  TaskListItem,
961
953
  {
@@ -963,21 +955,32 @@ function TaskListInner({
963
955
  icon: "pci",
964
956
  titleKey: "pciDssQuestionnaire",
965
957
  status: canDownloadPci ? TaskStatus.DOWNLOAD : TaskStatus.SIGN,
966
- statusLabel: canDownloadPci ? i18n.get("downloadACopy") : void 0,
958
+ statusLabel: canDownloadPci ? t(($) => $["downloadACopy"]) : void 0,
967
959
  downloadHandler: onPciDownload,
968
960
  disabled: isPciTaskDisabled,
969
- info: isPciTaskDisabled && !canDownloadPci ? i18n.get("requiresDecisionMakers") : void 0
961
+ info: isPciTaskDisabled && !canDownloadPci ? t(($) => $["requiresDecisionMakers"]) : void 0
962
+ }
963
+ ),
964
+ showServiceAgreementTask && /* @__PURE__ */ jsx(
965
+ TaskListItem,
966
+ {
967
+ onNavigateToTask: handleOnNavigateToServiceAgreement,
968
+ icon: "contract",
969
+ titleKey: "signServiceAgreement",
970
+ disabled: areServiceAgreementTasksDisabled,
971
+ status: serviceAgreementTypes.length ? TaskStatus.SIGN : TaskStatus.SIGNED,
972
+ info: EnableSignPCIBeforeTOS && shouldSignPciFirst ? t(($) => $["signPciFirst"]) : !hasServiceAgreementSigners ? t(($) => $["requiresSignatory"]) : void 0
970
973
  }
971
974
  )
972
975
  ] }),
973
- isReview && /* @__PURE__ */ jsx(TaskListGroup, { title: i18n.get("pleaseEnsureTheFollowing"), children: /* @__PURE__ */ jsx(
976
+ isReview && /* @__PURE__ */ jsx(TaskListGroup, { title: t(($) => $["pleaseEnsureTheFollowing"]), children: /* @__PURE__ */ jsx(
974
977
  TaskListItem,
975
978
  {
976
979
  onNavigateToTask: handleOnNavigateToTaskReview,
977
980
  icon: "review",
978
981
  titleKey: "submitReviewOfYourData",
979
982
  status: TaskStatus.SUBMIT,
980
- problems: (_o = capabilityProblems == null ? void 0 : capabilityProblems.LegalEntity) == null ? void 0 : _o[legalEntityResponse.id],
983
+ problems: capabilityProblems?.LegalEntity?.[legalEntityResponse.id],
981
984
  showErrorAlerts: "always"
982
985
  }
983
986
  ) })
@@ -985,15 +988,24 @@ function TaskListInner({
985
988
  ] });
986
989
  }
987
990
  const isNewEntity = Symbol("isNewEntity");
991
+ const useExemptSettlor = ({
992
+ trust
993
+ }) => {
994
+ const matchingAssociation = useMemo(() => {
995
+ if (!trust) return void 0;
996
+ return getOwnEntityAssociations(trust).find(
997
+ (association) => association.type === TrustMemberTypes.SETTLOR && Boolean(association.settlorExemptionReason)
998
+ );
999
+ }, [trust]);
1000
+ const { data } = useLegalEntity(matchingAssociation?.legalEntityId ?? skipToken);
1001
+ return data;
1002
+ };
988
1003
  const splitAtFirstOccurrence = (str, separator) => {
989
1004
  const firstOccurrence = str.indexOf(separator);
990
1005
  if (firstOccurrence === -1) return [str];
991
1006
  return [str.slice(0, firstOccurrence), str.slice(firstOccurrence + 1)];
992
1007
  };
993
- const getTrustMemberOwnerId = (trustMemberId, entityAssociations) => {
994
- var _a;
995
- return (_a = entityAssociations.find((association) => association.associatorId === trustMemberId)) == null ? void 0 : _a.legalEntityId;
996
- };
1008
+ const getTrustMemberOwnerId = (trustMemberId, entityAssociations) => entityAssociations.find((association) => association.associatorId === trustMemberId)?.legalEntityId;
997
1009
  const getFallbackName = (exemptSettlorAssociation) => {
998
1010
  const [firstName, lastName] = splitAtFirstOccurrence(exemptSettlorAssociation.name ?? "", " ");
999
1011
  return {
@@ -1002,7 +1014,6 @@ const getFallbackName = (exemptSettlorAssociation) => {
1002
1014
  };
1003
1015
  };
1004
1016
  const convertEntityAssociationIntoTrustMember = (association, associations, exemptSettlorLE) => {
1005
- var _a;
1006
1017
  if (association.settlorExemptionReason) {
1007
1018
  return {
1008
1019
  trustMemberType: "exemptSettlor",
@@ -1010,7 +1021,7 @@ const convertEntityAssociationIntoTrustMember = (association, associations, exem
1010
1021
  legalEntityType: association.entityType,
1011
1022
  legalEntityId: association.legalEntityId,
1012
1023
  settlorExemptionReason: association.settlorExemptionReason,
1013
- exemptSettlorName: association.entityType === LegalEntityType.INDIVIDUAL ? ((_a = exemptSettlorLE == null ? void 0 : exemptSettlorLE.individual) == null ? void 0 : _a.name) ?? getFallbackName(association) : void 0,
1024
+ exemptSettlorName: association.entityType === LegalEntityType.INDIVIDUAL ? exemptSettlorLE?.individual?.name ?? getFallbackName(association) : void 0,
1014
1025
  name: association.name
1015
1026
  };
1016
1027
  }
@@ -1068,18 +1079,15 @@ const mapUndefinedBeneficiaryInfoToTrustMembers = (undefinedBeneficiaryInfo) =>
1068
1079
  reference,
1069
1080
  description
1070
1081
  }));
1071
- const getTrustMembers = (trustLE, rootLegalEntity, exemptSettlorLE) => {
1072
- var _a;
1073
- return [
1074
- mapRootLegalEntityToTrustMember(rootLegalEntity),
1075
- ...mapEntityAssociationsToTrustMembers(
1076
- trustLE.id,
1077
- trustLE.entityAssociations ?? [],
1078
- exemptSettlorLE
1079
- ),
1080
- ...mapUndefinedBeneficiaryInfoToTrustMembers(((_a = trustLE.trust) == null ? void 0 : _a.undefinedBeneficiaryInfo) ?? [])
1081
- ];
1082
- };
1082
+ const getTrustMembers = (trustLE, rootLegalEntity, exemptSettlorLE) => [
1083
+ mapRootLegalEntityToTrustMember(rootLegalEntity),
1084
+ ...mapEntityAssociationsToTrustMembers(
1085
+ trustLE.id,
1086
+ trustLE.entityAssociations ?? [],
1087
+ exemptSettlorLE
1088
+ ),
1089
+ ...mapUndefinedBeneficiaryInfoToTrustMembers(trustLE.trust?.undefinedBeneficiaryInfo ?? [])
1090
+ ];
1083
1091
  const combineRootLegalEntityWithEntityAssociations = (rootLegalEntity, entityAssociations) => {
1084
1092
  const allowedRolesForRootLegalEntity = [
1085
1093
  TrustMemberTypes.SETTLOR,
@@ -1096,7 +1104,6 @@ const combineRootLegalEntityWithEntityAssociations = (rootLegalEntity, entityAss
1096
1104
  };
1097
1105
  };
1098
1106
  const getRootTrusteeTrustMembers = (trustLE, rootLegalEntity, exemptSettlorLE) => {
1099
- var _a;
1100
1107
  const entityAssociations = trustLE.entityAssociations ?? [];
1101
1108
  const rootLegalEntityAssociations = entityAssociations.filter(
1102
1109
  (a) => a.legalEntityId === rootLegalEntity.id
@@ -1111,21 +1118,9 @@ const getRootTrusteeTrustMembers = (trustLE, rootLegalEntity, exemptSettlorLE) =
1111
1118
  nonRootLegalEntityAssociations ?? [],
1112
1119
  exemptSettlorLE
1113
1120
  ),
1114
- ...mapUndefinedBeneficiaryInfoToTrustMembers(((_a = trustLE.trust) == null ? void 0 : _a.undefinedBeneficiaryInfo) ?? [])
1121
+ ...mapUndefinedBeneficiaryInfoToTrustMembers(trustLE.trust?.undefinedBeneficiaryInfo ?? [])
1115
1122
  ];
1116
1123
  };
1117
- const useExemptSettlor = ({
1118
- trust
1119
- }) => {
1120
- const matchingAssociation = useMemo(() => {
1121
- if (!trust) return void 0;
1122
- return getOwnEntityAssociations(trust).find(
1123
- (association) => association.type === TrustMemberTypes.SETTLOR && Boolean(association.settlorExemptionReason)
1124
- );
1125
- }, [trust]);
1126
- const { data } = useLegalEntity((matchingAssociation == null ? void 0 : matchingAssociation.legalEntityId) ?? skipToken);
1127
- return data;
1128
- };
1129
1124
  function useTrustMembers() {
1130
1125
  const { data: rootLegalEntity } = useLegalEntity(ROOT_LE);
1131
1126
  const { data: trust } = useAssociatedLegalEntity(rootLegalEntity, LegalEntityType.TRUST);
@@ -1135,7 +1130,7 @@ function useTrustMembers() {
1135
1130
  });
1136
1131
  const allowMoreRolesForMainRootTrustee = isExperimentEnabled("AllowMoreRolesForMainRootTrustee");
1137
1132
  return useMemo(() => {
1138
- if (!rootLegalEntity || !(trust == null ? void 0 : trust.trust)) return [];
1133
+ if (!rootLegalEntity || !trust?.trust) return [];
1139
1134
  return allowMoreRolesForMainRootTrustee ? getRootTrusteeTrustMembers(trust, rootLegalEntity, exemptSettlor) : getTrustMembers(trust, rootLegalEntity, exemptSettlor);
1140
1135
  }, [rootLegalEntity, trust, exemptSettlor, allowMoreRolesForMainRootTrustee]);
1141
1136
  }
@@ -1198,7 +1193,6 @@ const convertExistingSettlorExemptionReasons = (existingReasons) => {
1198
1193
  return existingReasons;
1199
1194
  };
1200
1195
  const convertExistingTrustMember = (trustMember) => {
1201
- var _a, _b;
1202
1196
  switch (trustMember.trustMemberType) {
1203
1197
  case "undefinedBeneficiary":
1204
1198
  return {
@@ -1229,8 +1223,8 @@ const convertExistingTrustMember = (trustMember) => {
1229
1223
  settlorExemptionReason: convertExistingSettlorExemptionReasons(
1230
1224
  trustMember.settlorExemptionReason
1231
1225
  ),
1232
- firstName: (_a = trustMember.exemptSettlorName) == null ? void 0 : _a.firstName,
1233
- lastName: (_b = trustMember.exemptSettlorName) == null ? void 0 : _b.lastName,
1226
+ firstName: trustMember.exemptSettlorName?.firstName,
1227
+ lastName: trustMember.exemptSettlorName?.lastName,
1234
1228
  legalCompanyName: trustMember.name,
1235
1229
  country: trustMember.country
1236
1230
  };
@@ -1289,7 +1283,7 @@ const availablesRolesByTrustMemberTypeAndLegalEntityType = {
1289
1283
  }
1290
1284
  };
1291
1285
  const getAvailableRolesByTrustMemberTypeAndLegalEntityType = (currentRoles, trustMember) => {
1292
- if (!(currentRoles == null ? void 0 : currentRoles.length)) {
1286
+ if (!currentRoles?.length) {
1293
1287
  const { trustMemberType, legalEntityType } = trustMember;
1294
1288
  const availableRolesByTrustMemberType = availablesRolesByTrustMemberTypeAndLegalEntityType[trustMemberType];
1295
1289
  if (!availableRolesByTrustMemberType) {
@@ -1308,7 +1302,7 @@ const getAvailableRolesByTrustMemberTypeAndLegalEntityType = (currentRoles, trus
1308
1302
  return roles.filter((r) => r !== "secondaryTrustee");
1309
1303
  };
1310
1304
  const getAvailableRoles = (currentRoles) => {
1311
- if (!(currentRoles == null ? void 0 : currentRoles.length)) return Object.values(TrustMemberTypes);
1305
+ if (!currentRoles?.length) return Object.values(TrustMemberTypes);
1312
1306
  return currentRoles.map((role) => [role, ...allowedCrossoverRolesMatrix[role]]).reduce(
1313
1307
  (existingAllowed, allowedForRole) => existingAllowed.filter((role) => allowedForRole.includes(role))
1314
1308
  );
@@ -1328,14 +1322,8 @@ const settlorExemptionReasonWithNoneOfTheAbove = [
1328
1322
  "noneOfTheAbove"
1329
1323
  ];
1330
1324
  const couldBeExemptSettlor = (data, country) => data.entityType === LegalEntityType.INDIVIDUAL && data.role !== void 0 && data.role.includes("settlor") && !data.role.some((role) => role !== "settlor") && (!country || !countriesWhereSettlorExemptionReasonNotApplicable.includes(country));
1331
- const isExemptSettlor = (data) => {
1332
- var _a;
1333
- return ((_a = data.settlorExemptionReason) == null ? void 0 : _a.some((reason) => reason !== "noneOfTheAbove")) ?? false;
1334
- };
1335
- const isOrganizationAndSettlor = (data) => {
1336
- var _a;
1337
- return data.entityType === LegalEntityType.ORGANIZATION && ((_a = data.role) == null ? void 0 : _a.length) === 1 && data.role[0] === "settlor";
1338
- };
1325
+ const isExemptSettlor = (data) => data.settlorExemptionReason?.some((reason) => reason !== "noneOfTheAbove") ?? false;
1326
+ const isOrganizationAndSettlor = (data) => data.entityType === LegalEntityType.ORGANIZATION && data.role?.length === 1 && data.role[0] === "settlor";
1339
1327
  const roleAndTypeValidationRules = {
1340
1328
  entityType: {
1341
1329
  modes: ["blur"],
@@ -1344,7 +1332,7 @@ const roleAndTypeValidationRules = {
1344
1332
  },
1345
1333
  role: {
1346
1334
  modes: ["blur"],
1347
- validate: (role) => !!(role == null ? void 0 : role.length),
1335
+ validate: (role) => !!role?.length,
1348
1336
  errorMessage: "fieldIsRequired"
1349
1337
  },
1350
1338
  descriptionUndefinedBeneficiary: {
@@ -1354,7 +1342,7 @@ const roleAndTypeValidationRules = {
1354
1342
  },
1355
1343
  settlorExemptionReason: {
1356
1344
  modes: ["blur"],
1357
- validate: (reasons) => Boolean(reasons == null ? void 0 : reasons.length),
1345
+ validate: (reasons) => Boolean(reasons?.length),
1358
1346
  errorMessage: "fieldIsRequired"
1359
1347
  },
1360
1348
  country: {
@@ -1391,6 +1379,7 @@ const convertExistingTrustMemberToDefaultData = (trustMember, allowMoreRolesForM
1391
1379
  return convertExistingTrustMember(trustMember);
1392
1380
  };
1393
1381
  const TrustRoleAndEntityType = (props) => {
1382
+ const { t } = useTranslation();
1394
1383
  const { i18n } = useI18nContext();
1395
1384
  const { existingTrustMember, isOrganizationSettlorWithExemptionEnabled, onChange, id, country } = props;
1396
1385
  const trustRoleAndEntityTypeCountry = country;
@@ -1414,11 +1403,10 @@ const TrustRoleAndEntityType = (props) => {
1414
1403
  );
1415
1404
  const formUtils = createFormUtils(mergedProps, i18n);
1416
1405
  const decideFields = (data2) => {
1417
- var _a, _b;
1418
- if ((_a = data2.role) == null ? void 0 : _a.includes("undefinedBeneficiary")) {
1406
+ if (data2.role?.includes("undefinedBeneficiary")) {
1419
1407
  return ["role", "descriptionUndefinedBeneficiary"];
1420
1408
  }
1421
- if ((_b = data2.role) == null ? void 0 : _b.length) {
1409
+ if (data2.role?.length) {
1422
1410
  if (isOrganizationSettlorWithExemptionEnabled && isOrganizationAndSettlor(data2)) {
1423
1411
  return ["role", "entityType", "settlorExemptionReason", "country", "legalCompanyName"];
1424
1412
  }
@@ -1434,9 +1422,9 @@ const TrustRoleAndEntityType = (props) => {
1434
1422
  schema: decideFields,
1435
1423
  rules: roleAndTypeValidationRules,
1436
1424
  defaultData,
1437
- fieldProblems: props == null ? void 0 : props.fieldValidationErrors
1425
+ fieldProblems: props?.fieldValidationErrors
1438
1426
  });
1439
- const availableRoles = allowMoreRolesForMainRootTrusteeEnabled && (existingTrustMember == null ? void 0 : existingTrustMember.trustMemberType) === "rootTrustee" ? getAvailableRolesByTrustMemberTypeAndLegalEntityType(data.role, existingTrustMember) : getAvailableRoles(data.role);
1427
+ const availableRoles = allowMoreRolesForMainRootTrusteeEnabled && existingTrustMember?.trustMemberType === "rootTrustee" ? getAvailableRolesByTrustMemberTypeAndLegalEntityType(data.role, existingTrustMember) : getAvailableRoles(data.role);
1440
1428
  const { data: exemptSettlorLe } = useLegalEntity(
1441
1429
  isOrganizationSettlorWithExemptionEnabled && existingTrustMember && existingTrustMember.trustMemberType === "exemptSettlor" && existingTrustMember.legalEntityId !== isNewEntity && existingTrustMember.roles !== void 0 && existingTrustMember.roles.length === 1 && existingTrustMember.roles[0] === "settlor" ? existingTrustMember.legalEntityId : skipToken
1442
1430
  );
@@ -1446,7 +1434,7 @@ const TrustRoleAndEntityType = (props) => {
1446
1434
  }
1447
1435
  }, [exemptSettlorLe]);
1448
1436
  useEffect(() => {
1449
- onChange == null ? void 0 : onChange({
1437
+ onChange?.({
1450
1438
  schema,
1451
1439
  data,
1452
1440
  errors,
@@ -1469,10 +1457,9 @@ const TrustRoleAndEntityType = (props) => {
1469
1457
  }
1470
1458
  };
1471
1459
  const changeSettlorExemptionReasons = (exemptionReasons) => {
1472
- var _a;
1473
1460
  if (exemptionReasons.includes("noneOfTheAbove")) {
1474
1461
  handleChangeFor("settlorExemptionReason")(
1475
- ((_a = data.settlorExemptionReason) == null ? void 0 : _a.includes("noneOfTheAbove")) ? exemptionReasons.filter((reason) => reason !== "noneOfTheAbove") : ["noneOfTheAbove"]
1462
+ data.settlorExemptionReason?.includes("noneOfTheAbove") ? exemptionReasons.filter((reason) => reason !== "noneOfTheAbove") : ["noneOfTheAbove"]
1476
1463
  );
1477
1464
  return;
1478
1465
  }
@@ -1480,8 +1467,7 @@ const TrustRoleAndEntityType = (props) => {
1480
1467
  };
1481
1468
  const nameProps = getFieldProps(props, nameFields);
1482
1469
  const onEntityTypeChange = (value) => {
1483
- var _a;
1484
- if (isOrganizationSettlorWithExemptionEnabled && value === LegalEntityType.ORGANIZATION && ((_a = data.role) == null ? void 0 : _a.length) === 1 && data.role[0] === "settlor") {
1470
+ if (isOrganizationSettlorWithExemptionEnabled && value === LegalEntityType.ORGANIZATION && data.role?.length === 1 && data.role[0] === "settlor") {
1485
1471
  changeSettlorExemptionReasons(["professionalServiceProvider"]);
1486
1472
  }
1487
1473
  handleChangeFor("entityType")(value);
@@ -1491,8 +1477,8 @@ const TrustRoleAndEntityType = (props) => {
1491
1477
  /* @__PURE__ */ jsx(
1492
1478
  ErrorPanel,
1493
1479
  {
1494
- verificationErrors: props == null ? void 0 : props.formVerificationErrors,
1495
- validationErrors: props == null ? void 0 : props.fieldValidationErrors,
1480
+ verificationErrors: props?.formVerificationErrors,
1481
+ validationErrors: props?.fieldValidationErrors,
1496
1482
  formUtils,
1497
1483
  id: "ariaErrorField"
1498
1484
  }
@@ -1503,7 +1489,6 @@ const TrustRoleAndEntityType = (props) => {
1503
1489
  el: "fieldset",
1504
1490
  name: "role",
1505
1491
  label: formUtils.getLabel("role", "selectTheApplicableRoles"),
1506
- classNameModifiers: ["role"],
1507
1492
  errorMessage: formUtils.getErrorMessage("role", errors, fieldProblems),
1508
1493
  isValid: valid.role,
1509
1494
  disabled: availableRoles.length === 0,
@@ -1516,14 +1501,14 @@ const TrustRoleAndEntityType = (props) => {
1516
1501
  selected: data.role ?? [],
1517
1502
  onSelect: changeRoles,
1518
1503
  mapToSelectItem: (role) => ({
1519
- ...makeSelectItemForRole(role, i18n),
1504
+ ...makeSelectItemForRole(role, t),
1520
1505
  disabled: !availableRoles.includes(role)
1521
1506
  })
1522
1507
  }
1523
1508
  )
1524
1509
  }
1525
1510
  ),
1526
- (schema == null ? void 0 : schema.includes("entityType")) && /* @__PURE__ */ jsx(
1511
+ schema?.includes("entityType") && /* @__PURE__ */ jsx(
1527
1512
  Field,
1528
1513
  {
1529
1514
  el: "fieldset",
@@ -1549,7 +1534,7 @@ const TrustRoleAndEntityType = (props) => {
1549
1534
  )
1550
1535
  }
1551
1536
  ),
1552
- (schema == null ? void 0 : schema.includes("descriptionUndefinedBeneficiary")) && /* @__PURE__ */ jsx(
1537
+ schema?.includes("descriptionUndefinedBeneficiary") && /* @__PURE__ */ jsx(
1553
1538
  Field,
1554
1539
  {
1555
1540
  name: "descriptionUndefinedBeneficiary",
@@ -1575,7 +1560,7 @@ const TrustRoleAndEntityType = (props) => {
1575
1560
  )
1576
1561
  }
1577
1562
  ),
1578
- (schema == null ? void 0 : schema.includes("settlorExemptionReason")) && !isOrganizationAndSettlor(data) && /* @__PURE__ */ jsx(
1563
+ schema?.includes("settlorExemptionReason") && !isOrganizationAndSettlor(data) && /* @__PURE__ */ jsx(
1579
1564
  Field,
1580
1565
  {
1581
1566
  el: "fieldset",
@@ -1623,7 +1608,7 @@ const TrustRoleAndEntityType = (props) => {
1623
1608
  dataStoreId: id
1624
1609
  }
1625
1610
  ) : void 0,
1626
- isOrganizationSettlorWithExemptionEnabled && (schema == null ? void 0 : schema.includes("country")) && (schema == null ? void 0 : schema.includes("legalCompanyName")) ? /* @__PURE__ */ jsxs(Fragment, { children: [
1611
+ isOrganizationSettlorWithExemptionEnabled && schema?.includes("country") && schema?.includes("legalCompanyName") ? /* @__PURE__ */ jsxs(Fragment, { children: [
1627
1612
  /* @__PURE__ */ jsx(
1628
1613
  CountryField,
1629
1614
  {
@@ -1632,7 +1617,6 @@ const TrustRoleAndEntityType = (props) => {
1632
1617
  errors: formUtils.getFieldErrors(errors, fieldProblems, COUNTRY_FIELD),
1633
1618
  labels: formUtils.getFieldLabels(COUNTRY_FIELD),
1634
1619
  readonly: false,
1635
- classNameModifiers: COUNTRY_FIELD,
1636
1620
  allowedCountries: void 0,
1637
1621
  handleChangeFor
1638
1622
  }
@@ -1655,7 +1639,6 @@ const TrustRoleAndEntityType = (props) => {
1655
1639
  ] });
1656
1640
  };
1657
1641
  const mapTrustMemberToEntityAssociations = (trustMember) => {
1658
- var _a, _b;
1659
1642
  if (trustMember.legalEntityId === isNewEntity) {
1660
1643
  throw Error("Cannot map a new trust member, you must create it first");
1661
1644
  }
@@ -1666,7 +1649,7 @@ const mapTrustMemberToEntityAssociations = (trustMember) => {
1666
1649
  entityType: trustMember.legalEntityType,
1667
1650
  type: TrustMemberTypes.SETTLOR,
1668
1651
  settlorExemptionReason: trustMember.settlorExemptionReason,
1669
- name: trustMember.legalEntityType === LegalEntityType.INDIVIDUAL ? `${(_a = trustMember.exemptSettlorName) == null ? void 0 : _a.firstName} ${(_b = trustMember.exemptSettlorName) == null ? void 0 : _b.lastName}` : trustMember.name ?? ""
1652
+ name: trustMember.legalEntityType === LegalEntityType.INDIVIDUAL ? `${trustMember.exemptSettlorName?.firstName} ${trustMember.exemptSettlorName?.lastName}` : trustMember.name ?? ""
1670
1653
  }
1671
1654
  ];
1672
1655
  return trustMember.roles.map((role) => ({
@@ -1711,10 +1694,9 @@ const addOrUpdateUndefinedBeneficiary = async ({
1711
1694
  trust,
1712
1695
  updateLegalEntity
1713
1696
  }) => {
1714
- var _a, _b;
1715
- const otherUndefinedBeneficiaries = ((_b = (_a = trust.trust) == null ? void 0 : _a.undefinedBeneficiaryInfo) == null ? void 0 : _b.filter(
1697
+ const otherUndefinedBeneficiaries = trust.trust?.undefinedBeneficiaryInfo?.filter(
1716
1698
  (ub) => ub.reference !== newOrUpdated.reference
1717
- )) ?? [];
1699
+ ) ?? [];
1718
1700
  const patchLE = {
1719
1701
  trust: {
1720
1702
  undefinedBeneficiaryInfo: [
@@ -1735,13 +1717,12 @@ const createExemptSettlor = async ({
1735
1717
  trust,
1736
1718
  handleCreateLegalEntity
1737
1719
  }) => {
1738
- var _a, _b;
1739
1720
  const exemptSettlorLE = {
1740
1721
  type: LegalEntityType.INDIVIDUAL,
1741
1722
  individual: {
1742
1723
  name: {
1743
- firstName: ((_a = exemptSettlor.exemptSettlorName) == null ? void 0 : _a.firstName) ?? "",
1744
- lastName: ((_b = exemptSettlor.exemptSettlorName) == null ? void 0 : _b.lastName) ?? ""
1724
+ firstName: exemptSettlor.exemptSettlorName?.firstName ?? "",
1725
+ lastName: exemptSettlor.exemptSettlorName?.lastName ?? ""
1745
1726
  },
1746
1727
  residentialAddress: {
1747
1728
  country: trust.trust.registeredAddress.country
@@ -1770,12 +1751,11 @@ const updateExemptSettlorName = async ({
1770
1751
  exemptSettlor,
1771
1752
  updateLegalEntity
1772
1753
  }) => {
1773
- var _a, _b;
1774
1754
  const exemptSettlorPatch = {
1775
1755
  individual: {
1776
1756
  name: {
1777
- firstName: (_a = exemptSettlor.exemptSettlorName) == null ? void 0 : _a.firstName,
1778
- lastName: (_b = exemptSettlor.exemptSettlorName) == null ? void 0 : _b.lastName
1757
+ firstName: exemptSettlor.exemptSettlorName?.firstName,
1758
+ lastName: exemptSettlor.exemptSettlorName?.lastName
1779
1759
  }
1780
1760
  }
1781
1761
  };
@@ -1808,7 +1788,6 @@ const styles$3 = {
1808
1788
  const formatRolesForSummary = (roles, i18n) => roles.map((role) => i18n.get(getRoleName(role))).join(", ");
1809
1789
  const formatSettlorExemptionReasonsForSummary = (reasons, i18n) => /* @__PURE__ */ jsx("ul", { className: styles$3.settlorExemptionReasonsList, children: reasons.map((reason) => /* @__PURE__ */ jsx("li", { children: i18n.get(reason) }, reason)) });
1810
1790
  const formatRoleAndEntityTypeSummary = (data, i18n, isOrganizationSettlorWithExemptionEnabled) => {
1811
- var _a, _b;
1812
1791
  const { trustMemberType, roles } = data;
1813
1792
  const role = formatRolesForSummary(roles, i18n);
1814
1793
  switch (trustMemberType) {
@@ -1821,8 +1800,8 @@ const formatRoleAndEntityTypeSummary = (data, i18n, isOrganizationSettlorWithExe
1821
1800
  return {
1822
1801
  role,
1823
1802
  entityType: i18n.get(data.legalEntityType),
1824
- firstName: (_a = data.exemptSettlorName) == null ? void 0 : _a.firstName,
1825
- lastName: (_b = data.exemptSettlorName) == null ? void 0 : _b.lastName,
1803
+ firstName: data.exemptSettlorName?.firstName,
1804
+ lastName: data.exemptSettlorName?.lastName,
1826
1805
  country: isOrganizationSettlorWithExemptionEnabled ? data.country : void 0,
1827
1806
  legalCompanyName: isOrganizationSettlorWithExemptionEnabled ? data.name : void 0,
1828
1807
  settlorExemptionReason: summaryItem(
@@ -1883,7 +1862,6 @@ const decideForms = (trustMember) => {
1883
1862
  }
1884
1863
  };
1885
1864
  const convertDataToTrustMember = (data, existingTrustMember, isOrganizationSettlorWithExemptionReasonEnabled = false) => {
1886
- var _a;
1887
1865
  const existingId = existingTrustMember ? existingTrustMember.trustMemberType === "undefinedBeneficiary" ? existingTrustMember.reference : existingTrustMember.legalEntityId : void 0;
1888
1866
  if (data.trustMemberType === "rootTrustee") {
1889
1867
  return {
@@ -1894,7 +1872,7 @@ const convertDataToTrustMember = (data, existingTrustMember, isOrganizationSettl
1894
1872
  name: data.firstName ?? ""
1895
1873
  };
1896
1874
  }
1897
- if ((_a = data.role) == null ? void 0 : _a.length) {
1875
+ if (data.role?.length) {
1898
1876
  if (isExemptSettlor(data)) {
1899
1877
  if (isOrganizationSettlorWithExemptionReasonEnabled && data.entityType === LegalEntityType.ORGANIZATION) {
1900
1878
  return {
@@ -1958,7 +1936,6 @@ function RoleAndTypeDropin({
1958
1936
  navigateBack,
1959
1937
  country
1960
1938
  }) {
1961
- var _a;
1962
1939
  const { i18n } = useI18nContext();
1963
1940
  const { isExperimentEnabled } = useExperimentsContext();
1964
1941
  const allowMoreRolesForMainRootTrustee = isExperimentEnabled("AllowMoreRolesForMainRootTrustee");
@@ -1969,7 +1946,7 @@ function RoleAndTypeDropin({
1969
1946
  const { showToast } = useToastContext();
1970
1947
  const isOrganizationSettlorWithExemptionReasonEnabled = (country2) => country2 === CountryCodes.Australia;
1971
1948
  const isOrganizationSettlorWithExemptionEnabled = isOrganizationSettlorWithExemptionReasonEnabled(
1972
- (_a = trust == null ? void 0 : trust.trust) == null ? void 0 : _a.countryOfGoverningLaw
1949
+ trust?.trust?.countryOfGoverningLaw
1973
1950
  );
1974
1951
  const formList = decideForms(trustMember);
1975
1952
  const forms = Object.values(formList);
@@ -2068,7 +2045,7 @@ function RoleAndTypeDropin({
2068
2045
  };
2069
2046
  const saveRolesAndNavigate = async () => {
2070
2047
  if (trustMember === "incomplete") return;
2071
- if (hasRolesChanged(trustMember.roles, existingTrustMember == null ? void 0 : existingTrustMember.roles)) {
2048
+ if (hasRolesChanged(trustMember.roles, existingTrustMember?.roles)) {
2072
2049
  addOrUpdateTrustMember(trustMember);
2073
2050
  }
2074
2051
  navigateBack();
@@ -2231,7 +2208,7 @@ const EntityGuidanceStatus = ({
2231
2208
  entityLabel,
2232
2209
  status
2233
2210
  }) => {
2234
- const { i18n } = useI18nContext();
2211
+ const { t } = useTranslation();
2235
2212
  return /* @__PURE__ */ jsxs("div", { className: "adyen-kyc-entity-status__container", children: [
2236
2213
  /* @__PURE__ */ jsx(EntityStatusIcon, { status }),
2237
2214
  /* @__PURE__ */ jsx(
@@ -2239,7 +2216,7 @@ const EntityGuidanceStatus = ({
2239
2216
  {
2240
2217
  className: "adyen-kyc-entity-status__tag",
2241
2218
  variant: getRoleTagVariant(entityLabel),
2242
- children: i18n.get(getRoleName(entityLabel))
2219
+ children: t(($) => $[getRoleName(entityLabel)])
2243
2220
  },
2244
2221
  entityLabel
2245
2222
  ),
@@ -2248,9 +2225,13 @@ const EntityGuidanceStatus = ({
2248
2225
  {
2249
2226
  className: "adyen-kyc-entity-status--text",
2250
2227
  "data-testid": `${entityLabel}-rule--description`,
2251
- dangerouslySetInnerHTML: {
2252
- __html: i18n.get(getEntityStatusRuleDescription(country, currentTask, entityLabel))
2253
- }
2228
+ children: /* @__PURE__ */ jsx(
2229
+ Trans,
2230
+ {
2231
+ t,
2232
+ i18nKey: ($) => $[getEntityStatusRuleDescription(country, currentTask, entityLabel)]
2233
+ }
2234
+ )
2254
2235
  }
2255
2236
  )
2256
2237
  ] });
@@ -2273,8 +2254,7 @@ const deleteUndefinedBeneficiary = async ({
2273
2254
  trust,
2274
2255
  asyncMutation
2275
2256
  }) => {
2276
- var _a;
2277
- const existingUndefinedBeneficiaries = ((_a = trust.trust) == null ? void 0 : _a.undefinedBeneficiaryInfo) ?? [];
2257
+ const existingUndefinedBeneficiaries = trust.trust?.undefinedBeneficiaryInfo ?? [];
2278
2258
  const updatedTrust = {
2279
2259
  trust: {
2280
2260
  undefinedBeneficiaryInfo: existingUndefinedBeneficiaries.filter(
@@ -2338,7 +2318,7 @@ const EntityAssociation = ({
2338
2318
  isRemoveDisabled = false,
2339
2319
  handleIsRemoveDisabled
2340
2320
  }) => {
2341
- const { i18n } = useI18nContext();
2321
+ const { t } = useTranslation();
2342
2322
  const [showingActions, setShowingActions] = useState(false);
2343
2323
  const [isStatusRemoving, setIsStatusRemoving] = useState(false);
2344
2324
  return /* @__PURE__ */ jsxs(
@@ -2363,7 +2343,7 @@ const EntityAssociation = ({
2363
2343
  event.stopPropagation();
2364
2344
  setShowingActions(!showingActions);
2365
2345
  },
2366
- ariaLabel: i18n.get("toggleAssociationMenu", { values: { name } })
2346
+ ariaLabel: t(($) => $["toggleAssociationMenu"], { name })
2367
2347
  }
2368
2348
  ),
2369
2349
  /* @__PURE__ */ jsx(ActionsMenu, { options: actions, open: showingActions, setOpen: setShowingActions })
@@ -2384,7 +2364,7 @@ const EntityAssociation = ({
2384
2364
  {
2385
2365
  className: "adyen-kyc-entity-association__tag",
2386
2366
  variant: getRoleTagVariant(type),
2387
- children: i18n.get(getRoleName(type))
2367
+ children: t(($) => $[getRoleName(type)])
2388
2368
  },
2389
2369
  type
2390
2370
  )) }),
@@ -2464,9 +2444,8 @@ const ExemptSettlorTaskItem = ({
2464
2444
  onEdit,
2465
2445
  onDelete
2466
2446
  }) => {
2467
- var _a, _b;
2468
2447
  const { i18n } = useI18nContext();
2469
- const settlorName = exemptSettlor.legalEntityType === LegalEntityType.INDIVIDUAL ? `${(_a = exemptSettlor.exemptSettlorName) == null ? void 0 : _a.firstName} ${(_b = exemptSettlor.exemptSettlorName) == null ? void 0 : _b.lastName}` : exemptSettlor.name ?? "";
2448
+ const settlorName = exemptSettlor.legalEntityType === LegalEntityType.INDIVIDUAL ? `${exemptSettlor.exemptSettlorName?.firstName} ${exemptSettlor.exemptSettlorName?.lastName}` : exemptSettlor.name ?? "";
2470
2449
  const actions = [
2471
2450
  {
2472
2451
  icon: "edit",
@@ -2647,6 +2626,7 @@ const TrustMembersOverviewInner = ({
2647
2626
  navigateToEditTrustMemberOwner
2648
2627
  }) => {
2649
2628
  const { i18n } = useI18nContext();
2629
+ const { t } = useTranslation("common");
2650
2630
  const trustMemberRequirements = DEFAULT_TRUST_MEMBER_REQUIREMENTS;
2651
2631
  const trustMembersWithOneOfGivenRoles = (roleTypes) => trustMembers.filter(
2652
2632
  ({ roles }) => roleTypes.some((label) => roles.includes(label))
@@ -2679,15 +2659,7 @@ const TrustMembersOverviewInner = ({
2679
2659
  ContextGuidance,
2680
2660
  {
2681
2661
  title: i18n.get("whatIsTheDifferenceBetweenTheseRoles"),
2682
- content: /* @__PURE__ */ jsx("ul", { className: "adyen-kyc-guidance-list", children: trustMemberRequirements.map(({ label }) => /* @__PURE__ */ jsx(
2683
- "li",
2684
- {
2685
- dangerouslySetInnerHTML: {
2686
- __html: i18n.get(`${label}GuideDescription`)
2687
- }
2688
- },
2689
- label
2690
- )) }),
2662
+ content: /* @__PURE__ */ jsx("ul", { className: "adyen-kyc-guidance-list", children: trustMemberRequirements.map(({ label }) => /* @__PURE__ */ jsx("li", { children: /* @__PURE__ */ jsx(Trans, { t, ns: "common", i18nKey: ($) => $[`${label}GuideDescription`] }) }, label)) }),
2691
2663
  titleId: "whatIsTheDifferenceBetweenTheseRoles",
2692
2664
  contentId: "differenceBetweenTrustMemberRoles"
2693
2665
  }
@@ -2791,13 +2763,13 @@ const TrustMembersOverviewInner = ({
2791
2763
  );
2792
2764
  };
2793
2765
  const createDefaultMember = (selectedMember, selectedEntityType, selectedRoles) => {
2794
- const firstRole = selectedRoles == null ? void 0 : selectedRoles[0];
2766
+ const firstRole = selectedRoles?.[0];
2795
2767
  return {
2796
- memberType: (selectedMember == null ? void 0 : selectedMember.memberType) || firstRole,
2797
- roles: selectedRoles || (selectedMember == null ? void 0 : selectedMember.roles) || [UnincorporatedPartnershipMemberTypes.SECONDARY_PARTNER],
2768
+ memberType: selectedMember?.memberType || firstRole,
2769
+ roles: selectedRoles || selectedMember?.roles || [UnincorporatedPartnershipMemberTypes.SECONDARY_PARTNER],
2798
2770
  legalEntityType: selectedEntityType,
2799
- legalEntityId: (selectedMember == null ? void 0 : selectedMember.legalEntityId) || "",
2800
- name: (selectedMember == null ? void 0 : selectedMember.name) || ""
2771
+ legalEntityId: selectedMember?.legalEntityId || "",
2772
+ name: selectedMember?.name || ""
2801
2773
  };
2802
2774
  };
2803
2775
  const useUnincorporatedPartnershipNavigation = ({ navigateTo }) => {
@@ -2811,7 +2783,7 @@ const useUnincorporatedPartnershipNavigation = ({ navigateTo }) => {
2811
2783
  }) => {
2812
2784
  const createdMember = createDefaultMember(selectedMember, selectedEntityType, selectedRoles);
2813
2785
  setActiveMember(createdMember);
2814
- if (rootLegalEntityId.value === (createdMember == null ? void 0 : createdMember.legalEntityId)) {
2786
+ if (rootLegalEntityId.value === createdMember?.legalEntityId) {
2815
2787
  navigateTo(
2816
2788
  createdMember.legalEntityType === LegalEntityType.INDIVIDUAL ? TaskTypes.INDIVIDUAL : TaskTypes.BUSINESS_DETAILS
2817
2789
  );
@@ -2822,7 +2794,7 @@ const useUnincorporatedPartnershipNavigation = ({ navigateTo }) => {
2822
2794
  return;
2823
2795
  }
2824
2796
  navigateTo(
2825
- (createdMember == null ? void 0 : createdMember.legalEntityType) === LegalEntityType.ORGANIZATION ? TaskTypes.UNINCORPORATED_PARTNERSHIP_MEMBER_COMPANY : TaskTypes.UNINCORPORATED_PARTNERSHIP_MEMBER_INDIVIDUAL
2797
+ createdMember?.legalEntityType === LegalEntityType.ORGANIZATION ? TaskTypes.UNINCORPORATED_PARTNERSHIP_MEMBER_COMPANY : TaskTypes.UNINCORPORATED_PARTNERSHIP_MEMBER_INDIVIDUAL
2826
2798
  );
2827
2799
  };
2828
2800
  return {
@@ -2919,7 +2891,7 @@ function getUboStatus(roles, roleType, existingMember) {
2919
2891
  if (!existingMember) {
2920
2892
  return void 0;
2921
2893
  }
2922
- return (roles == null ? void 0 : roles.includes(roleType)) ? "yes" : "no";
2894
+ return roles?.includes(roleType) ? "yes" : "no";
2923
2895
  }
2924
2896
  function UnincorporatedPartnershipRoleAndTypeDropin({
2925
2897
  onNavigateToMember,
@@ -2937,16 +2909,16 @@ function UnincorporatedPartnershipRoleAndTypeDropin({
2937
2909
  formName: form.formName,
2938
2910
  isValid: false
2939
2911
  }));
2940
- const existingMember = activeMember == null ? void 0 : activeMember.legalEntityId;
2912
+ const existingMember = activeMember?.legalEntityId;
2941
2913
  const defaultData = {
2942
- entityType: activeMember == null ? void 0 : activeMember.legalEntityType,
2914
+ entityType: activeMember?.legalEntityType,
2943
2915
  uboThroughControl: getUboStatus(
2944
- activeMember == null ? void 0 : activeMember.roles,
2916
+ activeMember?.roles,
2945
2917
  UnincorporatedPartnershipMemberTypes.CONTROLLING_PERSON,
2946
2918
  existingMember
2947
2919
  ),
2948
2920
  uboThroughOwnership: getUboStatus(
2949
- activeMember == null ? void 0 : activeMember.roles,
2921
+ activeMember?.roles,
2950
2922
  UnincorporatedPartnershipMemberTypes.OWNER,
2951
2923
  existingMember
2952
2924
  )
@@ -2988,7 +2960,7 @@ function UnincorporatedPartnershipRoleAndTypeDropin({
2988
2960
  FormNavigation,
2989
2961
  {
2990
2962
  forms: formsWithValidity,
2991
- activeForm: formsWithValidity.find((form) => form.formId === activeForm.formId) || (formsWithValidity == null ? void 0 : formsWithValidity[0]),
2963
+ activeForm: formsWithValidity.find((form) => form.formId === activeForm.formId) || formsWithValidity?.[0],
2992
2964
  taskName: "unincorporatedPartnershipMembers",
2993
2965
  gotoForm: () => {
2994
2966
  }
@@ -3020,7 +2992,7 @@ function UnincorporatedPartnershipRoleAndTypeDropin({
3020
2992
  ...childProps,
3021
2993
  name: "entityType",
3022
2994
  options: trustMemberLegalEntityTypes,
3023
- selected: data == null ? void 0 : data.entityType,
2995
+ selected: data?.entityType,
3024
2996
  onSelect: (option) => handleChangeFor("entityType")(option),
3025
2997
  optionId: (option) => leTypeCardDetails[option].id,
3026
2998
  optionName: (option) => leTypeCardDetails[option].name,
@@ -3040,7 +3012,7 @@ function UnincorporatedPartnershipRoleAndTypeDropin({
3040
3012
  errors,
3041
3013
  fieldProblems
3042
3014
  ),
3043
- value: data == null ? void 0 : data.uboThroughOwnership
3015
+ value: data?.uboThroughOwnership
3044
3016
  }
3045
3017
  ),
3046
3018
  schema.includes("uboThroughControl") && /* @__PURE__ */ jsx(
@@ -3053,7 +3025,7 @@ function UnincorporatedPartnershipRoleAndTypeDropin({
3053
3025
  errors,
3054
3026
  fieldProblems
3055
3027
  ),
3056
- value: data == null ? void 0 : data.uboThroughControl
3028
+ value: data?.uboThroughControl
3057
3029
  }
3058
3030
  )
3059
3031
  ] })
@@ -3087,10 +3059,7 @@ const alertHeader = "adyen-kyc-alert-header";
3087
3059
  const styles = {
3088
3060
  alertHeader
3089
3061
  };
3090
- const isPrimaryPartner = (member) => {
3091
- var _a;
3092
- return (_a = member == null ? void 0 : member.roles) == null ? void 0 : _a.includes("primaryPartner");
3093
- };
3062
+ const isPrimaryPartner = (member) => member?.roles?.includes("primaryPartner");
3094
3063
  const isMemberMissingOwner = (member) => {
3095
3064
  return !isPrimaryPartner(member) && member.legalEntityType === LegalEntityType.ORGANIZATION && !member.ownerId;
3096
3065
  };
@@ -3142,7 +3111,7 @@ const UnincorporatedPartnershipMembersOverview = ({
3142
3111
  const missingOwner = isMemberMissingOwner(member);
3143
3112
  baseActions.push({
3144
3113
  icon: missingOwner ? "plus" : "edit",
3145
- onSelect: () => navigateToEditMemberOwner(member == null ? void 0 : member.ownerId, member == null ? void 0 : member.legalEntityId),
3114
+ onSelect: () => navigateToEditMemberOwner(member?.ownerId, member?.legalEntityId),
3146
3115
  label: i18n.get(missingOwner ? "addOwnerToTrustMember" : "editOwnerOfTrustMember", {
3147
3116
  values: { trustMember: member.name }
3148
3117
  })
@@ -3172,7 +3141,7 @@ const UnincorporatedPartnershipMembersOverview = ({
3172
3141
  onClick: (e) => {
3173
3142
  e.preventDefault();
3174
3143
  e.stopPropagation();
3175
- navigateToEditMemberOwner(member == null ? void 0 : member.ownerId, member == null ? void 0 : member.legalEntityId);
3144
+ navigateToEditMemberOwner(member?.ownerId, member?.legalEntityId);
3176
3145
  },
3177
3146
  variant: "link",
3178
3147
  children: i18n.get("providePersonalDetailsOfOwner")
@@ -3261,7 +3230,7 @@ const useNavigation = ({ legalEntity, onNavigate }) => {
3261
3230
  const handleNavigation = useCallback(
3262
3231
  (task) => {
3263
3232
  userEvents.updateBaseTrackingPayload({ task });
3264
- onNavigate == null ? void 0 : onNavigate(task);
3233
+ onNavigate?.(task);
3265
3234
  },
3266
3235
  [onNavigate]
3267
3236
  );
@@ -3286,11 +3255,11 @@ const useNavigation = ({ legalEntity, onNavigate }) => {
3286
3255
  }
3287
3256
  if (prevTask === TaskTypes.TASKS_OVERVIEW) {
3288
3257
  setTaskHistory([TaskTypes.TASKS_OVERVIEW]);
3289
- handleNavigation == null ? void 0 : handleNavigation(TaskTypes.TASKS_OVERVIEW);
3258
+ handleNavigation?.(TaskTypes.TASKS_OVERVIEW);
3290
3259
  return;
3291
3260
  }
3292
3261
  setTaskHistory(taskHistory.slice(0, -1 * stepCount));
3293
- handleNavigation == null ? void 0 : handleNavigation(prevTask);
3262
+ handleNavigation?.(prevTask);
3294
3263
  userEvents.updateBaseTrackingPayload({ task: prevTask });
3295
3264
  },
3296
3265
  [taskHistory, handleNavigation]
@@ -3360,79 +3329,78 @@ const getDefaultTask = ({
3360
3329
  return TaskTypes.TASKS_OVERVIEW;
3361
3330
  };
3362
3331
  const hasProgressedBeyondEntitySelection = (legalEntity) => {
3363
- var _a, _b;
3364
- const hasOwnEntityAssocation = (_a = legalEntity.entityAssociations) == null ? void 0 : _a.some(
3332
+ const hasOwnEntityAssocation = legalEntity.entityAssociations?.some(
3365
3333
  (ea) => ea.associatorId === legalEntity.id
3366
3334
  );
3367
- const hasOrganizationType = (_b = legalEntity.organization) == null ? void 0 : _b.type;
3335
+ const hasOrganizationType = legalEntity.organization?.type;
3368
3336
  return hasOwnEntityAssocation || !!hasOrganizationType;
3369
3337
  };
3370
3338
  const Introduction = lazy(
3371
- async () => (await import("./Introduction-DW2IQ57R.js")).Introduction
3339
+ async () => (await import("./Introduction-erRXgreE.js")).Introduction
3372
3340
  );
3373
3341
  const BusinessTypeSelectionPage = lazy(
3374
- async () => (await import("./BusinessTypeSelectionPage-sfGqHnp6.js")).BusinessTypeSelectionPage
3342
+ async () => (await import("./BusinessTypeSelectionPage-Cdp8joPJ.js")).BusinessTypeSelectionPage
3375
3343
  );
3376
3344
  const SingpassSelection = lazy(
3377
- async () => (await import("./SingpassSelection-D2Xe1wGv.js")).SingpassSelection
3345
+ async () => (await import("./SingpassSelection-BWEJ3Yi-.js")).SingpassSelection
3378
3346
  );
3379
3347
  const AccountSetupRejected = lazy(
3380
- async () => (await import("./AccountSetupRejected-PdYyKwbS.js")).AccountSetupRejected
3348
+ async () => (await import("./AccountSetupRejected-DHph9lFl.js")).AccountSetupRejected
3381
3349
  );
3382
3350
  const DecisionMakers = lazy(
3383
- async () => (await import("./DecisionMakers-D2TjKnOc.js")).DecisionMakers
3351
+ async () => (await import("./DecisionMakers-CZ5-IRtU.js")).DecisionMakers
3384
3352
  );
3385
3353
  const CustomerSupport = lazy(
3386
- async () => (await import("./CustomerSupport-BER6nSK2.js")).CustomerSupport
3354
+ async () => (await import("./CustomerSupport-NGBoBg3N.js")).CustomerSupport
3387
3355
  );
3388
- const Review = lazy(async () => (await import("./Review-BFgzcIDj.js")).Review);
3356
+ const Review = lazy(async () => (await import("./Review-O6Al47Cu.js")).Review);
3389
3357
  const SignPCIComponent = lazy(
3390
- async () => (await import("./SignPCIComponent-D35913wJ.js")).SignPCIComponent
3358
+ async () => (await import("./SignPCIComponent-cqRNhGdl.js")).SignPCIComponent
3391
3359
  );
3392
3360
  const AcceptTermsOfService = lazy(
3393
- async () => (await import("./AcceptTermsOfServiceComponent-Dh7RSJoE.js")).AcceptTermsOfServiceComponent
3361
+ async () => (await import("./AcceptTermsOfServiceComponent-i222mdxX.js")).AcceptTermsOfServiceComponent
3394
3362
  );
3395
3363
  const TaxReportingDropin = lazy(
3396
- async () => (await import("./TaxReportingDropin-BLXgRbuR.js")).TaxReportingDropin
3364
+ async () => (await import("./TaxReportingDropin-DFZ2ehfk.js")).TaxReportingDropin
3397
3365
  );
3398
3366
  const PayoutDetailsPage = lazy(
3399
- async () => (await import("./PayoutDetailsPage-BHNHaMbR.js")).PayoutDetailsPage
3367
+ async () => (await import("./StoreProvider-ClKLaHzy.js").then((n) => n.eI)).PayoutDetailsPage
3400
3368
  );
3401
3369
  const RootBusinessDetailsPage = lazy(
3402
- async () => (await import("./RootBusinessDetailsPage-C6lHQShI.js")).RootBusinessDetailsPage
3370
+ async () => (await import("./RootBusinessDetailsPage-q_6wAcer.js")).RootBusinessDetailsPage
3403
3371
  );
3404
3372
  const SoleProprietorshipPage = lazy(
3405
- async () => (await import("./SoleProprietorshipPage-D2F8Ghmo.js")).SoleProprietorshipPage
3373
+ async () => (await import("./SoleProprietorshipPage-CRcJSpn9.js")).SoleProprietorshipPage
3406
3374
  );
3407
3375
  const TrustMemberCompanyPage = lazy(
3408
- async () => (await import("./TrustMemberCompanyPage-D0wTEhuh.js")).TrustMemberCompanyPage
3376
+ async () => (await import("./TrustMemberCompanyPage-oLNhg0hg.js")).TrustMemberCompanyPage
3409
3377
  );
3410
3378
  const UnincorporatedPartnershipMemberCompanyPage = lazy(
3411
- async () => (await import("./UnincorporatedPartnershipMemberCompanyPage-CgujXwfX.js")).UnincorporatedPartnershipMemberCompanyPage
3379
+ async () => (await import("./UnincorporatedPartnershipMemberCompanyPage-HUnc9g0g.js")).UnincorporatedPartnershipMemberCompanyPage
3412
3380
  );
3413
3381
  const BusinessFinancingPage = lazy(
3414
- async () => (await import("./BusinessFinancingPage-L1APYvzn.js")).BusinessFinancingPage
3382
+ async () => (await import("./BusinessFinancingPage-BPD2cSDR.js")).BusinessFinancingPage
3415
3383
  );
3416
3384
  const TrustDetailsPage = lazy(
3417
- async () => (await import("./TrustDetailsPage-DVvGJ_Ta.js")).TrustDetailsPage
3385
+ async () => (await import("./TrustDetailsPage-CGiiTbfR.js")).TrustDetailsPage
3418
3386
  );
3419
3387
  const SourceOfFundsPage = lazy(
3420
- async () => (await import("./SourceOfFundsPage-RjAcZ3Bo.js")).SourceOfFundsPage
3388
+ async () => (await import("./SourceOfFundsPage-BxLGXTHb.js")).SourceOfFundsPage
3421
3389
  );
3422
3390
  const RootIndividualDetailsPage = lazy(
3423
- async () => (await import("./RootIndividualDetailsPage-DfpqHdAS.js")).RootIndividualDetailsPage
3391
+ async () => (await import("./RootIndividualDetailsPage-CiXgSJsV.js")).RootIndividualDetailsPage
3424
3392
  );
3425
3393
  const LegalRepresentativeDetailsPage = lazy(
3426
- async () => (await import("./LegalRepresentativeDetailsPage-BfIDXqv1.js")).LegalRepresentativeDetailsPage
3394
+ async () => (await import("./LegalRepresentativeDetailsPage-rS5K4657.js")).LegalRepresentativeDetailsPage
3427
3395
  );
3428
3396
  const TrustMemberIndividualPage = lazy(
3429
- async () => (await import("./TrustMemberIndividualPage-BLuaBi3j.js")).TrustMemberIndividualPage
3397
+ async () => (await import("./TrustMemberIndividualPage-Bgsis586.js")).TrustMemberIndividualPage
3430
3398
  );
3431
3399
  const UnincorporatedPartnershipIndividualPage = lazy(
3432
- async () => (await import("./UnincorporatedPartnershipIndividualPage-BhIihH2v.js")).UnincorporatedPartnershipIndividualPage
3400
+ async () => (await import("./UnincorporatedPartnershipIndividualPage-DPE3grqL.js")).UnincorporatedPartnershipIndividualPage
3433
3401
  );
3434
3402
  const DecisionMakerDetailsPage = lazy(
3435
- async () => (await import("./DecisionMakerDetailsPage-DgjlfKyP.js")).DecisionMakerDetailsPage
3403
+ async () => (await import("./DecisionMakerDetailsPage-BN-H1sJF.js")).DecisionMakerDetailsPage
3436
3404
  );
3437
3405
  const PAGES_WITH_POLLING = [TaskTypes.DECISION_MAKER_OVERVIEW, TaskTypes.TASKS_OVERVIEW];
3438
3406
  const logger = createLogger();
@@ -3442,7 +3410,6 @@ function DropinComposer({
3442
3410
  onNavigate = noop,
3443
3411
  openBankingPartnerConfigId
3444
3412
  }) {
3445
- var _a;
3446
3413
  const { accountHolder, setAccountHolder } = useAccountHolder();
3447
3414
  const { setCanSeeEntitySelection } = useCanSeeEntitySelection(legalEntityResponse.id);
3448
3415
  const userEvents = useAnalyticsContext();
@@ -3470,10 +3437,7 @@ function DropinComposer({
3470
3437
  const taskTypes = taskTypesSignal.value;
3471
3438
  const { data: rawTaskTypes, isLoading: isLoadingConfiguration } = useTaskTypes();
3472
3439
  useEffect(() => {
3473
- const taskListWithoutCompany = rawTaskTypes == null ? void 0 : rawTaskTypes.map(
3474
- (item) => item === "COMPANY" ? TaskTypes.BUSINESS_DETAILS : item
3475
- );
3476
- if (rawTaskTypes) setTaskTypes(taskListWithoutCompany);
3440
+ if (rawTaskTypes) setTaskTypes(rawTaskTypes);
3477
3441
  }, [rawTaskTypes, setTaskTypes]);
3478
3442
  const { data: legalEntityData, refetch: refetchLegalEntity } = useLegalEntity(
3479
3443
  legalEntityResponse.id,
@@ -3539,7 +3503,6 @@ function DropinComposer({
3539
3503
  navigateTo
3540
3504
  });
3541
3505
  const handleSingpassSelectionNextClick = async (method) => {
3542
- var _a2;
3543
3506
  if (method === "singpass") {
3544
3507
  try {
3545
3508
  const authUrl = await handleInitiateSingpassMyInfoLogin();
@@ -3548,7 +3511,7 @@ function DropinComposer({
3548
3511
  }
3549
3512
  setHasSeenSingpassSelection(true);
3550
3513
  singpassTabRef.current = window.open(authUrl, "_blank");
3551
- (_a2 = singpassTabRef.current) == null ? void 0 : _a2.focus();
3514
+ singpassTabRef.current?.focus();
3552
3515
  } catch (e) {
3553
3516
  logger.error(e);
3554
3517
  if (typeof e === "string") handleSingpassMyInfoLoginFailure(e);
@@ -3601,7 +3564,7 @@ function DropinComposer({
3601
3564
  }
3602
3565
  };
3603
3566
  const handleOnSubmit = async (data, backStepCount) => {
3604
- onSubmit == null ? void 0 : onSubmit(data);
3567
+ onSubmit?.(data);
3605
3568
  await refetchLegalEntity();
3606
3569
  navigateBack(backStepCount);
3607
3570
  };
@@ -3639,29 +3602,27 @@ function DropinComposer({
3639
3602
  handleSingpassMyInfoLoginReset();
3640
3603
  },
3641
3604
  onClick: async () => {
3642
- var _a2;
3643
3605
  try {
3644
3606
  const authUrl = await handleInitiateSingpassMyInfoLogin();
3645
3607
  singpassTabRef.current = window.open(authUrl);
3646
- (_a2 = singpassTabRef.current) == null ? void 0 : _a2.focus();
3608
+ singpassTabRef.current?.focus();
3647
3609
  } catch (e) {
3648
3610
  logger.error(e);
3649
3611
  if (typeof e === "string") handleSingpassMyInfoLoginFailure(e);
3650
3612
  }
3651
3613
  },
3652
3614
  onMessage: async ({ data: { isSuccessful } }) => {
3653
- var _a2;
3654
3615
  if (isSuccessful) {
3655
3616
  handleSingpassMyInfoLoginSuccess();
3656
3617
  await refetchLegalEntity();
3657
- (_a2 = singpassTabRef.current) == null ? void 0 : _a2.close();
3618
+ singpassTabRef.current?.close();
3658
3619
  } else {
3659
3620
  handleSingpassMyInfoLoginFailure(
3660
3621
  legalEntityResponse.type === LegalEntityType.INDIVIDUAL ? "weCouldntConnectToMyinfo" : "weCouldntConnectToMyinfoBusiness"
3661
3622
  );
3662
3623
  }
3663
3624
  },
3664
- legalEntityType: legalEntityResponse == null ? void 0 : legalEntityResponse.type
3625
+ legalEntityType: legalEntityResponse?.type
3665
3626
  }
3666
3627
  ) : void 0;
3667
3628
  if (isLoadingConfiguration) {
@@ -3669,7 +3630,7 @@ function DropinComposer({
3669
3630
  }
3670
3631
  switch (currentTask) {
3671
3632
  case TaskTypes.BUSINESS_TYPE_SELECTION:
3672
- return /* @__PURE__ */ jsx("div", { className: "adyen-kyc-u-display-flex adyen-kyc-u-justify-content-center antonio", children: /* @__PURE__ */ jsx(Suspense, { fallback: /* @__PURE__ */ jsx(Loader, {}), children: /* @__PURE__ */ jsx(
3633
+ return /* @__PURE__ */ jsx("div", { className: "adyen-kyc-u-display-flex adyen-kyc-u-justify-content-center", children: /* @__PURE__ */ jsx(Suspense, { fallback: /* @__PURE__ */ jsx(Loader, {}), children: /* @__PURE__ */ jsx(
3673
3634
  BusinessTypeSelectionPage,
3674
3635
  {
3675
3636
  onComplete: async (newAccountHolder) => {
@@ -3722,7 +3683,7 @@ function DropinComposer({
3722
3683
  RootIndividualDetailsPage,
3723
3684
  {
3724
3685
  onSubmit: async (data) => {
3725
- onSubmit == null ? void 0 : onSubmit(data);
3686
+ onSubmit?.(data);
3726
3687
  await refetchLegalEntity();
3727
3688
  navigateTo(TaskTypes.TASKS_OVERVIEW);
3728
3689
  setTargetLegalEntityType(void 0);
@@ -3747,13 +3708,13 @@ function DropinComposer({
3747
3708
  return /* @__PURE__ */ jsx(Suspense, { fallback: /* @__PURE__ */ jsx(Loader, {}), children: /* @__PURE__ */ jsx(
3748
3709
  DecisionMakerDetailsPage,
3749
3710
  {
3750
- decisionMakerId: currentDecisionMaker == null ? void 0 : currentDecisionMaker.id,
3711
+ decisionMakerId: currentDecisionMaker?.id,
3751
3712
  parentCompanyId: parentId,
3752
3713
  onSubmit: handleOnSubmit,
3753
3714
  handleHomeClick: navigateBack,
3754
3715
  trustedFields: singpassTrustedFields,
3755
3716
  trustedFieldsProvider: isEligibleForSingpass ? TrustedFieldsProvider.SINGPASS : void 0,
3756
- trustedRoles: ((_a = trustedEntityAssociations.find((ea) => ea.reference === (currentDecisionMaker == null ? void 0 : currentDecisionMaker.id))) == null ? void 0 : _a.types) || []
3717
+ trustedRoles: trustedEntityAssociations.find((ea) => ea.reference === currentDecisionMaker?.id)?.types || []
3757
3718
  }
3758
3719
  ) });
3759
3720
  case TaskTypes.TRUST_MEMBER_COMPANY_OWNER:
@@ -3774,9 +3735,9 @@ function DropinComposer({
3774
3735
  return /* @__PURE__ */ jsx(Suspense, { fallback: /* @__PURE__ */ jsx(Loader, {}), children: /* @__PURE__ */ jsx(
3775
3736
  TrustMemberIndividualPage,
3776
3737
  {
3777
- memberId: currentTrustMemberLe == null ? void 0 : currentTrustMemberLe.id,
3738
+ memberId: currentTrustMemberLe?.id,
3778
3739
  trustId: trust.id,
3779
- newMember: (trustMember == null ? void 0 : trustMember.legalEntityId) === isNewEntity ? trustMember : void 0,
3740
+ newMember: trustMember?.legalEntityId === isNewEntity ? trustMember : void 0,
3780
3741
  onSubmit: (data) => handleOnSubmit(data, 2),
3781
3742
  handleBackClick: navigateBack,
3782
3743
  handleHomeClick: () => navigateTo(TaskTypes.TRUST_MEMBER_OVERVIEW)
@@ -3787,7 +3748,7 @@ function DropinComposer({
3787
3748
  RootBusinessDetailsPage,
3788
3749
  {
3789
3750
  onSubmit: async (data) => {
3790
- onSubmit == null ? void 0 : onSubmit(data);
3751
+ onSubmit?.(data);
3791
3752
  await refetchLegalEntity();
3792
3753
  navigateTo(TaskTypes.TASKS_OVERVIEW);
3793
3754
  setTargetLegalEntityType(void 0);
@@ -3801,8 +3762,8 @@ function DropinComposer({
3801
3762
  TrustMemberCompanyPage,
3802
3763
  {
3803
3764
  trustId: trust.id,
3804
- trustMemberCompanyId: currentTrustMemberLe == null ? void 0 : currentTrustMemberLe.id,
3805
- newMember: (trustMember == null ? void 0 : trustMember.legalEntityId) === isNewEntity ? trustMember : void 0,
3765
+ trustMemberCompanyId: currentTrustMemberLe?.id,
3766
+ newMember: trustMember?.legalEntityId === isNewEntity ? trustMember : void 0,
3806
3767
  onSubmit: (data) => handleOnSubmit(data, 2),
3807
3768
  handleHomeClick: navigateBack,
3808
3769
  isTargetLegalEntityType: targetLegalEntityType === LegalEntityType.ORGANIZATION
@@ -3826,7 +3787,7 @@ function DropinComposer({
3826
3787
  TrustDetailsPage,
3827
3788
  {
3828
3789
  taskType: TaskTypes.TRUST,
3829
- trustId: trust == null ? void 0 : trust.id,
3790
+ trustId: trust?.id,
3830
3791
  onSubmit: (data) => handleOnSubmit(data, 1),
3831
3792
  handleHomeClick: navigateBack
3832
3793
  }
@@ -3849,7 +3810,7 @@ function DropinComposer({
3849
3810
  TrustMemberRoleAndTypePage,
3850
3811
  {
3851
3812
  trustId: trust.id,
3852
- memberId: currentTrustMemberLe == null ? void 0 : currentTrustMemberLe.id,
3813
+ memberId: currentTrustMemberLe?.id,
3853
3814
  navigateToFullDropinFor: onNavigateToTrustMemberEditDetails,
3854
3815
  navigateBack: async () => {
3855
3816
  await refetchTrust();
@@ -3862,7 +3823,7 @@ function DropinComposer({
3862
3823
  TrustDetailsPage,
3863
3824
  {
3864
3825
  taskType: TaskTypes.UNINCORPORATED_PARTNERSHIP,
3865
- trustId: unincorporatedPartnership == null ? void 0 : unincorporatedPartnership.id,
3826
+ trustId: unincorporatedPartnership?.id,
3866
3827
  onSubmit: (data) => handleOnSubmit(data, 1),
3867
3828
  handleHomeClick: navigateBack
3868
3829
  }
@@ -3874,8 +3835,8 @@ function DropinComposer({
3874
3835
  navigateBackToTaskList: navigateBack,
3875
3836
  navigateToEditMember: (member) => onNavigateToMember({
3876
3837
  selectedMember: member,
3877
- selectedEntityType: member == null ? void 0 : member.legalEntityType,
3878
- selectedRoles: member == null ? void 0 : member.roles,
3838
+ selectedEntityType: member?.legalEntityType,
3839
+ selectedRoles: member?.roles,
3879
3840
  roleAndType: true
3880
3841
  }),
3881
3842
  navigateToEditMemberOwner: (memberOwnerId, memberId) => {
@@ -3893,10 +3854,10 @@ function DropinComposer({
3893
3854
  UnincorporatedPartnershipMemberCompanyPage,
3894
3855
  {
3895
3856
  partnershipId: unincorporatedPartnership.id,
3896
- partnershipMemberCompanyId: unincorporatedPartnershipMember == null ? void 0 : unincorporatedPartnershipMember.legalEntityId,
3857
+ partnershipMemberCompanyId: unincorporatedPartnershipMember?.legalEntityId,
3897
3858
  newMember: (
3898
3859
  // empty string for legalEntityId means it's a new member
3899
- (unincorporatedPartnershipMember == null ? void 0 : unincorporatedPartnershipMember.legalEntityId) === "" ? unincorporatedPartnershipMember : void 0
3860
+ unincorporatedPartnershipMember?.legalEntityId === "" ? unincorporatedPartnershipMember : void 0
3900
3861
  ),
3901
3862
  onSubmit: (data) => handleOnSubmit(data, 2),
3902
3863
  handleHomeClick: navigateBack,
@@ -3908,7 +3869,7 @@ function DropinComposer({
3908
3869
  DecisionMakerDetailsPage,
3909
3870
  {
3910
3871
  taskType: TaskTypes.UNINCORPORATED_PARTNERSHIP_MEMBER_COMPANY_OWNER,
3911
- parentCompanyId: unincorporatedPartnershipMember == null ? void 0 : unincorporatedPartnershipMember.legalEntityId,
3872
+ parentCompanyId: unincorporatedPartnershipMember?.legalEntityId,
3912
3873
  decisionMakerId: currentDecisionMakerId,
3913
3874
  onSubmit: async (data) => {
3914
3875
  await handleOnSubmit(data);
@@ -3921,7 +3882,7 @@ function DropinComposer({
3921
3882
  return /* @__PURE__ */ jsx(Suspense, { fallback: /* @__PURE__ */ jsx(Loader, {}), children: /* @__PURE__ */ jsx(
3922
3883
  UnincorporatedPartnershipIndividualPage,
3923
3884
  {
3924
- memberId: unincorporatedPartnershipMember == null ? void 0 : unincorporatedPartnershipMember.legalEntityId,
3885
+ memberId: unincorporatedPartnershipMember?.legalEntityId,
3925
3886
  partnershipId: unincorporatedPartnership.id,
3926
3887
  member: unincorporatedPartnershipMember,
3927
3888
  onSubmit: (data) => {
@@ -3936,7 +3897,7 @@ function DropinComposer({
3936
3897
  return /* @__PURE__ */ jsx(
3937
3898
  UnincorporatedPartnershipMemberRoleAndTypePage,
3938
3899
  {
3939
- memberId: unincorporatedPartnershipMember == null ? void 0 : unincorporatedPartnershipMember.legalEntityId,
3900
+ memberId: unincorporatedPartnershipMember?.legalEntityId,
3940
3901
  onNavigateToMember,
3941
3902
  navigateBack: async () => {
3942
3903
  await refetchUnincorporatedPartnership();
@@ -3950,7 +3911,7 @@ function DropinComposer({
3950
3911
  return /* @__PURE__ */ jsx(Suspense, { fallback: /* @__PURE__ */ jsx(Loader, {}), children: /* @__PURE__ */ jsx(
3951
3912
  SoleProprietorshipPage,
3952
3913
  {
3953
- solePropId: soleProp == null ? void 0 : soleProp.id,
3914
+ solePropId: soleProp?.id,
3954
3915
  onSubmit: (data) => handleOnSubmit(data, 1),
3955
3916
  handleHomeClick: navigateBack,
3956
3917
  isTargetLegalEntityType: targetLegalEntityType === LegalEntityType.ORGANIZATION
@@ -3972,7 +3933,7 @@ function DropinComposer({
3972
3933
  return /* @__PURE__ */ jsx(Suspense, { fallback: /* @__PURE__ */ jsx(Loader, {}), children: /* @__PURE__ */ jsx(
3973
3934
  LegalRepresentativeDetailsPage,
3974
3935
  {
3975
- legalRepresentativeId: associatedLegalRepresentative == null ? void 0 : associatedLegalRepresentative.id,
3936
+ legalRepresentativeId: associatedLegalRepresentative?.id,
3976
3937
  onSubmit: handleOnSubmit,
3977
3938
  handleHomeClick: navigateBack
3978
3939
  }
@@ -3990,7 +3951,7 @@ function DropinComposer({
3990
3951
  BusinessFinancingPage,
3991
3952
  {
3992
3953
  onSubmit: async (data) => {
3993
- onSubmit == null ? void 0 : onSubmit(data);
3954
+ onSubmit?.(data);
3994
3955
  await refetchLegalEntity();
3995
3956
  navigateTo(TaskTypes.TASKS_OVERVIEW);
3996
3957
  },
@@ -4024,9 +3985,9 @@ export {
4024
3985
  EntityGuidanceStatus as E,
4025
3986
  OnboardingDropinComponent as O,
4026
3987
  useLegalEntityType as a,
4027
- useDataMissingRemediations as b,
4028
- EntityAssociation as c,
4029
- allowIndividualWithoutSoleProp as d,
3988
+ allowIndividualWithoutSoleProp as b,
3989
+ useDataMissingRemediations as c,
3990
+ EntityAssociation as d,
4030
3991
  useTrustMembers as e,
4031
3992
  iconStatus as i,
4032
3993
  normalizedTaskStatusStore as n,