@adyen/kyc-components 4.26.1 → 4.27.0-beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (239) hide show
  1. package/dist/{AcceptTermsOfServiceWorkflow-DXSq3XzA.js → AcceptTermsOfServiceWorkflow-CO6qEeAD.js} +4 -4
  2. package/dist/{Accordion-BAdwrgCR.js → Accordion-CTQfC17W.js} +1 -1
  3. package/dist/{AccountSetupRejected-BLEWjmc8.js → AccountSetupRejected-CFvogFuo.js} +2 -2
  4. package/dist/{AdaptiveWorkflow-DwdMyu1A.js → AdaptiveWorkflow-CTKpyw02.js} +22 -22
  5. package/dist/{AdaptiveWorkflowComponent-DPv1YHos.js → AdaptiveWorkflowComponent-CvTwsWi3.js} +5 -5
  6. package/dist/{AddressFields-B0QVYM-e.js → AddressFields-vl2AeVHz.js} +33 -72
  7. package/dist/{Avatar-C2zeqSSB.js → Avatar-yJfk9A6l.js} +1 -1
  8. package/dist/{BusinessFinancingDropin-evYHYnXE.js → BusinessFinancingDropin-tSylhmJS.js} +123 -55
  9. package/dist/{BusinessFinancingPage-C_agz96E.js → BusinessFinancingPage-9AcfHWyP.js} +6 -6
  10. package/dist/{BusinessRegistrationNumberField-DeYcZlQS.js → BusinessRegistrationNumberField-B6w6LvSZ.js} +6 -6
  11. package/dist/{BusinessRegistrationNumberFieldGroup-D9D0BPdp.js → BusinessRegistrationNumberFieldGroup-CICYxSyn.js} +6 -6
  12. package/dist/{BusinessTypeSelectionPage-DmgeZsex.js → BusinessTypeSelectionPage-lLt_PL1z.js} +13 -13
  13. package/dist/{Button-Dwr6jvJZ.js → Button-BYafPrZH.js} +1 -1
  14. package/dist/{Checkbox-BLyyDG9b.js → Checkbox-DXF-eRBj.js} +8 -8
  15. package/dist/{ComponentGroup-BLvYZoxp.js → ComponentGroup-DNspJrHk.js} +3 -3
  16. package/dist/{ConstitutionalDocument-B3o3NLMO.js → ConstitutionalDocument-Dg3dmkpH.js} +19 -26
  17. package/dist/{ContactDetails-7zYbKJtH.js → ContactDetails-5W0oQVYG.js} +5 -5
  18. package/dist/{ContextGuidance-C2AXK9Ep.js → ContextGuidance-BrbPzdaI.js} +3 -3
  19. package/dist/{CountryField-Bl8gp3wu.js → CountryField-DlMYQYfd.js} +4 -4
  20. package/dist/{Currency-Be6zg8XM.js → Currency-BCJuV60i.js} +16 -10
  21. package/dist/{CustomerSupport-lUVh_sWN.js → CustomerSupport-Bdg11WcM.js} +29 -16
  22. package/dist/{DateField-CO2CodgD.js → DateField-DfnBDOVl.js} +4 -4
  23. package/dist/{DebugModal-l52lDfKB.js → DebugModal-D1RMhAfR.js} +228 -10
  24. package/dist/{DecisionMakerDetails-9y6Fm96G.js → DecisionMakerDetails-Cv_NdD0z.js} +79 -174
  25. package/dist/{DecisionMakerDetailsPage-9kRW2Zh8.js → DecisionMakerDetailsPage-dTsh8vkz.js} +9 -9
  26. package/dist/{DecisionMakers-CYjKftby.js → DecisionMakers-DAhjhaMS.js} +17 -18
  27. package/dist/{Dropzone-QRtCFpVT.js → Dropzone-rk15b_Tb.js} +7 -7
  28. package/dist/{EmailField-D-Ndm0JS.js → EmailField-BOX8HtRe.js} +4 -4
  29. package/dist/{EmbeddedStatus-4YjyzkcD.js → EmbeddedStatus-mdQsQfof.js} +2 -2
  30. package/dist/{EndStateLayout-C5Pqler-.js → EndStateLayout-B-M90Rnh.js} +2 -2
  31. package/dist/{EntityAssociation-CS8XqKk-.js → EntityAssociation-B5Zq7_F6.js} +6 -6
  32. package/dist/{ErrorPanel-DaipnVsu.js → ErrorPanel-BLvDkiVa.js} +10 -17
  33. package/dist/{GlobalEntryModal-COOjZvh7.js → GlobalEntryModal-DZsHeRPL.js} +439 -298
  34. package/dist/{GlobalEntryPage-C9SGXXJk.js → GlobalEntryPage-RyQIoaWL.js} +7 -8
  35. package/dist/{Icon-_YUEZg1p.js → Icon-jVvV1zXc.js} +1 -1
  36. package/dist/{IdentityNumber-D_cOLEsP.js → IdentityNumber-C8CMJtgD.js} +5 -5
  37. package/dist/{IdentityNumberFieldGroup-CoLugvku.js → IdentityNumberFieldGroup-Cj5U1Onz.js} +2 -2
  38. package/dist/{IdentityScreeningWorkflow-B_nLC0Ru.js → IdentityScreeningWorkflow-BCDn25Or.js} +12 -13
  39. package/dist/{IndividualDropin-CRKk-szG.js → IndividualDropin-B6dY0iN3.js} +149 -231
  40. package/dist/{IndustryCodeFieldGroup-0vRXN8GP.js → IndustryCodeFieldGroup-B649faYk.js} +5 -5
  41. package/dist/{InputDate-Cxk_f6Us.js → InputDate-3rYzWzXX.js} +8 -4
  42. package/dist/{InputText-CObXfKKh.js → InputText-OCbzlaaN.js} +2 -2
  43. package/dist/{Introduction-CmhxGGzY.js → Introduction-Duow8A7U.js} +6 -6
  44. package/dist/{InvitedDecisionMakerComponent-BkHurym6.js → InvitedDecisionMakerComponent-BVQ37JLZ.js} +13 -14
  45. package/dist/{JpAddressFields-CuvfbjX6.js → JpAddressFields-Bh7Bvw__.js} +9 -10
  46. package/dist/{LegalCompanyNameField-CkINYTFB.js → LegalCompanyNameField-Yj5Fa3-I.js} +5 -5
  47. package/dist/{LegalRepresentativeDetailsPage-mlE80SrL.js → LegalRepresentativeDetailsPage-C10ojT9w.js} +4 -4
  48. package/dist/{Link-D0Yqc2r0.js → Link-DwPkGikd.js} +1 -1
  49. package/dist/{ListItem-DY-qq1lS.js → ListItem-n927geYb.js} +2 -2
  50. package/dist/{Modal-DnDjAzqZ.js → Modal-jjSjdW5W.js} +3 -3
  51. package/dist/{Name-Dhj905G8.js → Name-D-A5XBTb.js} +4 -4
  52. package/dist/{NumberField-BlDjTB0U.js → NumberField-D291GWYR.js} +4 -4
  53. package/dist/{PatriotActDisclosure-jNLKR-RM.js → PatriotActDisclosure-DMjKJEKH.js} +10 -10
  54. package/dist/{PayoutDetailsDropin-DO1CtLRd.js → PayoutDetailsDropin-B5MNHR3S.js} +41 -43
  55. package/dist/{PayoutDetailsPage-C-W1PCRf.js → PayoutDetailsPage-DMAxzS2V.js} +5 -5
  56. package/dist/{Review-BLcoVl6O.js → Review-BDontauk.js} +6 -6
  57. package/dist/{RootBusinessDetailsPage-DNZi9Zgj.js → RootBusinessDetailsPage-INMIQvN4.js} +4 -4
  58. package/dist/{RootBusinessLinesPage-D2IPigk5.js → RootBusinessLinesPage-BiIb7UVU.js} +22 -23
  59. package/dist/{RootIndividualDetailsPage-Cfa9R28c.js → RootIndividualDetailsPage-BS5BgowF.js} +6 -6
  60. package/dist/{Select-C0Pp8Jeb.js → Select-BRK2a2V5.js} +92 -92
  61. package/dist/{SignPCIComponent-I3asF5GE.js → SignPCIComponent-B5JmN8BT.js} +14 -14
  62. package/dist/{SingpassSelection-C4Ptdwzb.js → SingpassSelection-B84oJmvG.js} +5 -5
  63. package/dist/{SoleProprietorshipPage-CiI2VKw_.js → SoleProprietorshipPage-C-jxJkmQ.js} +4 -4
  64. package/dist/{SourceOfFundsPage-DrJqgPMf.js → SourceOfFundsPage-C27vODL5.js} +24 -24
  65. package/dist/{SourceOfFundsWorkflow-tE06S4__.js → SourceOfFundsWorkflow-DOqaH_wk.js} +4 -4
  66. package/dist/StateField-CRLgYS1X.js +364 -0
  67. package/dist/{Step-CLZTcCEQ.js → Step-BTVKO9gW.js} +5 -5
  68. package/dist/Summary-C9Nr0dot.js +21 -0
  69. package/dist/{SummarySection-v-mSwYL0.js → SummarySection-D67yguze.js} +5 -19
  70. package/dist/{Task-CUr-Zb5N.js → Task-BaQ6wqz5.js} +7 -7
  71. package/dist/{TaskGroup-BGUboNOL.js → TaskGroup-C7lBWbYp.js} +3 -3
  72. package/dist/{TaskListItem-DMkmZn3B.js → TaskListItem-Cu3fSvOJ.js} +10 -10
  73. package/dist/{TaskStepperContextProvider-9wlnwii7.js → TaskStepperContextProvider-DiMf4UV6.js} +1 -1
  74. package/dist/{TaskVerificationStatus-zoxTZ2mt.js → TaskVerificationStatus-C1CllzL1.js} +17 -17
  75. package/dist/{TaxInformationFieldGroup-CraKcKMs.js → TaxInformationFieldGroup-vQoQHydJ.js} +7 -7
  76. package/dist/{TaxReportingDropin-B-ywMdBt.js → TaxReportingDropin-CTnL6VMm.js} +13 -15
  77. package/dist/{TaxReportingWorkflow-BmUdyOKl.js → TaxReportingWorkflow-5_eG0AcD.js} +4 -4
  78. package/dist/{TermsOfServiceManagement-D1Yv4Z5p.js → TermsOfServiceManagement-xL-xisqE.js} +46 -43
  79. package/dist/{TextArea-CyFcFhHo.js → TextArea-CcaUENX2.js} +4 -4
  80. package/dist/{TextField-D61xVlV2.js → TextField-fhhAQSKg.js} +5 -5
  81. package/dist/{TrustDetailsPage-D2FS-As0.js → TrustDetailsPage-DcNS-XWz.js} +61 -54
  82. package/dist/{TrustMemberCompanyPage-DDcSOUi2.js → TrustMemberCompanyPage-xtxgO6d4.js} +5 -5
  83. package/dist/{TrustMemberIndividualPage-CJBz1p3R.js → TrustMemberIndividualPage-BMWAg_eS.js} +4 -4
  84. package/dist/{TrustMemberRoleAndTypePage-OeN1HW_E.js → TrustMemberRoleAndTypePage-DR3pLJf9.js} +43 -36
  85. package/dist/{TrustMembersOverview-DkrEZL6_.js → TrustMembersOverview-D-jTaw37.js} +13 -13
  86. package/dist/{UboTaskItem-Dc6ExVuW.js → UboTaskItem-DsoetWEU.js} +7 -7
  87. package/dist/{UnincorporatedPartnershipIndividualPage-D0ZYvh8k.js → UnincorporatedPartnershipIndividualPage-3sSr2dCv.js} +4 -4
  88. package/dist/{UnincorporatedPartnershipMemberCompanyPage-BtapkuO6.js → UnincorporatedPartnershipMemberCompanyPage-s6NiptRo.js} +5 -5
  89. package/dist/{UnincorporatedPartnershipMemberRoleAndTypePage-CbdYYTQT.js → UnincorporatedPartnershipMemberRoleAndTypePage-Cr6UEryR.js} +9 -9
  90. package/dist/{UnincorporatedPartnershipMembersOverview-Cs1DHVNP.js → UnincorporatedPartnershipMembersOverview-CbwWOxQs.js} +6 -6
  91. package/dist/{VerificationErrorAlert-D9sBE-Tj.js → VerificationErrorAlert-Bm7-u85-.js} +3 -3
  92. package/dist/{WebsiteField-BCoO-m_7.js → WebsiteField-DTlbxzaa.js} +5 -5
  93. package/dist/{Workflow-driWy_eJ.js → Workflow-DT43cTzE.js} +6 -6
  94. package/dist/{accountHolderUtils-BAbeRIOy.js → accountHolderUtils-D0E9se-W.js} +1 -1
  95. package/dist/adyen-business-financing.js +7 -7
  96. package/dist/adyen-individual-configuration.js +6 -6
  97. package/dist/adyen-individual-status.js +5 -5
  98. package/dist/adyen-invited-decision-maker.js +3 -3
  99. package/dist/adyen-onboarding.js +30 -30
  100. package/dist/adyen-terms-of-service-management.js +3 -3
  101. package/dist/adyen-terms-of-service-status.js +3 -3
  102. package/dist/adyen-transfer-instrument-configuration.js +5 -5
  103. package/dist/adyen-transfer-instrument-management.js +13 -13
  104. package/dist/adyen-verification-status.js +3 -3
  105. package/dist/{bafinUtils-COyCy9xG.js → bafinUtils-CvQzDDfD.js} +519 -531
  106. package/dist/{constants-fGRziJEH.js → constants-BOu8Hnt9.js} +6 -6
  107. package/dist/{dropinUtils-cIGIoJvF.js → dropinUtils-DfyQ8xFE.js} +165 -364
  108. package/dist/en-US-8KLaHQaT.js +7 -0
  109. package/dist/{en-US-Cz4JoU20.js → en-US-BMMx67Za.js} +16 -2
  110. package/dist/{en-US-nYL_eSJ-.js → en-US-BfRvYdHX.js} +8 -2
  111. package/dist/en-US-DGdFfmUC.js +136 -0
  112. package/dist/{en-US.instructions-BVNIyLRs.js → en-US.instructions-myDXMUbk.js} +2 -1
  113. package/dist/{error-B9rHWK9Q.js → error-CUHwmdwD.js} +2 -2
  114. package/dist/formatDataForSummary-BMFPIUER.js +498 -0
  115. package/dist/{formatValidationError-BJqU7LCU.js → formatValidationError-B5GNhAeh.js} +2 -2
  116. package/dist/{getDefaultRegistrationNumberType-BcV1GDOs.js → getDefaultRegistrationNumberType-CyaKz1Fj.js} +4 -4
  117. package/dist/{getProblemsForEntity-mdb3Bfpj.js → getProblemsForEntity-FHk416BA.js} +1 -1
  118. package/dist/{getTrustedDecisionMakers-D89oYOLp.js → getTrustedDecisionMakers-DByctgob.js} +1 -1
  119. package/dist/{getValidationError-dcpAlebZ.js → getValidationError-B4YX_EgR.js} +2 -2
  120. package/dist/{legalArrangementUtils-Crgt_L7h.js → legalArrangementUtils-CHlmmcB8.js} +11 -2
  121. package/dist/{mapAddressLocalizationToJpAddressSchema-B9pzYF3B.js → mapAddressLocalizationToJpAddressSchema-BrQMDBLX.js} +2 -2
  122. package/dist/{mapExistingFile-BXfeQxev.js → mapExistingFile-CqbTLZ6i.js} +1 -1
  123. package/dist/mapJpAddressSchemaToAddressLocalizations-BL4eAlDH.js +19 -0
  124. package/dist/{mapTransferInstrumentToPayoutAccount-Ba_L9EEB.js → mapTransferInstrumentToPayoutAccount-DhwdciyT.js} +2 -2
  125. package/dist/{processCapabilities-FL4-KAbd.js → processCapabilities-B75YIdXZ.js} +11 -4
  126. package/dist/{processValidationErrors-DWdgik5u.js → processValidationErrors-Dtt1FnM2.js} +4 -4
  127. package/dist/{resolveEnvironment-BnKqnU98.js → resolveEnvironment-CpWP_8og.js} +53 -16
  128. package/dist/roleMetadata-BW4HRw1l.js +57 -0
  129. package/dist/style.css +218 -230
  130. package/dist/styles-DYaAeu4q.js +218 -230
  131. package/dist/trustMemberType-Ix2sf6e_.js +13 -0
  132. package/dist/types/api/address/useAddressCleanse.d.ts +2 -0
  133. package/dist/types/api/address/useRetrieveAddress.d.ts +1 -0
  134. package/dist/types/api/address/useRetrieveFromPostcodeJp.d.ts +1 -0
  135. package/dist/types/components/BankAccount/tasks/PayoutDetailsDropin/utils.d.ts +7 -2
  136. package/dist/types/components/Business/forms/FinancialInformation/mapping/mapFinancialInformationToFinancialReport.d.ts +1 -1
  137. package/dist/types/components/Business/forms/rules.d.ts +3 -1
  138. package/dist/types/components/Business/utils/formatDataForSummary.d.ts +2 -1
  139. package/dist/types/components/EFP/mapping/businessFinancingKeyMappings.d.ts +78 -0
  140. package/dist/types/components/EFP/tasks/BusinessFinancingDropin/BusinessFinancingFinancialInformation.d.ts +3 -0
  141. package/dist/types/components/EFP/tasks/BusinessFinancingDropin/types.d.ts +2 -1
  142. package/dist/types/components/EFP/tasks/BusinessFinancingDropin/utils.d.ts +6 -3
  143. package/dist/types/components/EFP/tasks/BusinessFinancingDropin/validate.d.ts +3 -0
  144. package/dist/types/components/GlobalEntry/fields/DbaQuestionnaire/DbaQuestionnaire.d.ts +3 -0
  145. package/dist/types/components/GlobalEntry/fields/DbaQuestionnaire/types.d.ts +5 -0
  146. package/dist/types/components/GlobalEntry/fields/LlcQuestionnaire/LlcQuestionnaire.d.ts +3 -0
  147. package/dist/types/components/GlobalEntry/fields/LlcQuestionnaire/types.d.ts +5 -0
  148. package/dist/types/components/GlobalEntry/fields/PaperworkQuestionnaire/PaperworkQuestionnaire.d.ts +1 -6
  149. package/dist/types/components/GlobalEntry/fields/PaperworkQuestionnaire/fieldConfig.d.ts +11 -0
  150. package/dist/types/components/GlobalEntry/fields/PaperworkQuestionnaire/types.d.ts +6 -1
  151. package/dist/types/components/GlobalEntry/fields/Questionnaire/Questionnaire.d.ts +2 -0
  152. package/dist/types/components/GlobalEntry/fields/Questionnaire/types.d.ts +17 -0
  153. package/dist/types/components/GlobalEntry/fields/TrustQuestionnaire/TrustQuestionnaire.d.ts +3 -0
  154. package/dist/types/components/GlobalEntry/fields/TrustQuestionnaire/types.d.ts +5 -0
  155. package/dist/types/components/GlobalEntry/forms/EntityInformation/EntityInformation.d.ts +1 -3
  156. package/dist/types/components/GlobalEntry/forms/EntityInformation/types.d.ts +1 -2
  157. package/dist/types/components/GlobalEntry/forms/RegistrationInformation/types.d.ts +5 -1
  158. package/dist/types/components/GlobalEntry/mapping/globalEntryKeyMapping.d.ts +0 -3
  159. package/dist/types/components/GlobalEntry/mapping/mapGlobalEntrySchemaToLegalEntity.d.ts +2 -3
  160. package/dist/types/components/GlobalEntry/mapping/mapLegalEntityToGlobalEntrySchema.d.ts +1 -6
  161. package/dist/types/components/GlobalEntry/rules.d.ts +5 -2
  162. package/dist/types/components/GlobalEntry/utils/getAvailableCompanyStructures.d.ts +2 -1
  163. package/dist/types/components/GlobalEntry/utils/submitGlobalEntry.d.ts +1 -4
  164. package/dist/types/components/GlobalEntry/utils/utils.d.ts +7 -4
  165. package/dist/types/components/Individual/forms/AdditionalPersonalDetails/AdditionalPersonalDetails.types.d.ts +1 -2
  166. package/dist/types/components/Individual/forms/Individual.rules.d.ts +7 -6
  167. package/dist/types/components/Individual/helpers/findRelevantTaxInformation.d.ts +8 -2
  168. package/dist/types/components/Individual/helpers/getSubmittableTaxInformation.d.ts +20 -0
  169. package/dist/types/components/Individual/mapping/mapIndividualSchemaToLegalEntity.d.ts +5 -3
  170. package/dist/types/components/Individual/tasks/DecisionMakers/DecisionMakerDetails/utils.d.ts +6 -67
  171. package/dist/types/components/Individual/tasks/IndividualDropin/IndividualSummary.d.ts +27 -0
  172. package/dist/types/components/Individual/utils/formatDataForSummary.d.ts +49 -0
  173. package/dist/types/components/Shared/FormFlow/FormFlow.d.ts +1 -1
  174. package/dist/types/components/Shared/FormFlow/FormFlow.types.d.ts +0 -5
  175. package/dist/types/components/Shared/Summary/Summary.d.ts +10 -7
  176. package/dist/types/components/Shared/Summary/types.d.ts +3 -21
  177. package/dist/types/components/Shared/SummarySection/SummaryBulletList.d.ts +8 -0
  178. package/dist/types/components/Shared/devex/DebugListener/DebugTheme.d.ts +2 -0
  179. package/dist/types/components/Shared/devex/DebugListener/customTheme.d.ts +49 -0
  180. package/dist/types/components/Shared/fields/RegistrationAndOperationalAddressFields/types.d.ts +2 -0
  181. package/dist/types/components/Shared/fields/RegistrationAndOperationalAddressFields/utils.d.ts +2 -4
  182. package/dist/types/components/Shared/fields/ReportedValueOptionField/types.d.ts +3 -0
  183. package/dist/types/components/Shared/forms/Address/constants.d.ts +2 -0
  184. package/dist/types/components/Shared/forms/Address/localized/jp/JpAddressFields.d.ts +2 -9
  185. package/dist/types/components/Shared/forms/Address/localized/jp/mapAddressLocalizationToJpAddressSchema.d.ts +2 -2
  186. package/dist/types/components/Shared/forms/Address/localized/jp/mapJpAddressSchemaToAddressLocalizations.d.ts +2 -2
  187. package/dist/types/components/Shared/forms/Address/localized/jp/mapJpAddressSummary.d.ts +2 -4
  188. package/dist/types/components/Shared/forms/Address/rules.d.ts +13 -0
  189. package/dist/types/components/Shared/forms/Address/types.d.ts +7 -1
  190. package/dist/types/components/Shared/forms/Address/utils.d.ts +5 -11
  191. package/dist/types/components/Trust/forms/Trust/rules.d.ts +3 -1
  192. package/dist/types/components/Trust/tasks/RoleAndTypeDropin/formatRoleAndEntityTypeSummary.d.ts +2 -3
  193. package/dist/types/components/Trust/utils/formatDataForSummary.d.ts +2 -1
  194. package/dist/types/core/EmbedShell/EmbedShell.d.ts +4 -1
  195. package/dist/types/core/EmbedShell/useTheme.d.ts +9 -0
  196. package/dist/types/embeds/onboarding/adyen-onboarding.d.ts +1 -1
  197. package/dist/types/embeds/onboarding/adyen-onboarding.types.d.ts +8 -0
  198. package/dist/types/hooks/useStoredStateOrProvince.d.ts +9 -0
  199. package/dist/types/types/datasets/state-code.d.ts +36 -1
  200. package/dist/types/types/form-rules.d.ts +2 -2
  201. package/dist/types/utils/analytics/getPrefilledDetails.d.ts +3 -0
  202. package/dist/types/utils/entityStatusUtil.d.ts +1 -1
  203. package/dist/types/utils/fieldConfigurations.d.ts +1 -1
  204. package/dist/types/utils/legalArrangementUtils.d.ts +2 -0
  205. package/dist/{types-BymnGWO9.js → types-DVMWWwBT.js} +1 -1
  206. package/dist/{form-rules-CZbkNMEw.js → unincorporatedPartnership-CiU2fnqv.js} +38 -4
  207. package/dist/{useBusinessDetailsData-BJau7oMt.js → useBusinessDetailsData-BtEHoBoN.js} +100 -90
  208. package/dist/{useCanSeeIntroduction-BQuCt-eO.js → useCanSeeIntroduction-kxOGIxnh.js} +2 -2
  209. package/dist/useCreateLegalEntity-CgzVD39K.js +24 -0
  210. package/dist/{useDataMissingRemediations-DKjYzfe2.js → useDataMissingRemediations-BfC7ECSn.js} +1 -1
  211. package/dist/{useForm-VDjedfk9.js → useForm-CiHfxEX0.js} +3 -3
  212. package/dist/{useHideTaskStepper-BgCN--mG.js → useHideTaskStepper-Betx9MGy.js} +1 -1
  213. package/dist/{useId-Cs-bSalH.js → useId-ChrmzN7R.js} +2 -2
  214. package/dist/{useNavigate-CKp2oemi.js → useNavigate-xbrKpFCu.js} +33 -33
  215. package/dist/{useSalesChannels-D0q-Vat7.js → useSalesChannels-C2qQmPGf.js} +1 -1
  216. package/dist/{useTaskLandedEvent-QBmeEeS6.js → useTaskLandedEvent-Brv74FDb.js} +1 -1
  217. package/dist/{useTrustMembers-COumqoMC.js → useTrustMembers-BA5fCul_.js} +3 -3
  218. package/dist/{useUnincorporatedPartnershipMembers-DcfQJdVZ.js → useUnincorporatedPartnershipMembers-J6rxK5Ie.js} +2 -2
  219. package/dist/{utils-BFxg3gPM.js → utils-ChZNfG5_.js} +1 -1
  220. package/dist/{utils-BiPEtEaV.js → utils-ClAXyRqf.js} +4 -5
  221. package/dist/{utils-B6TRzLRs.js → utils-Do6-kryk.js} +3 -3
  222. package/dist/utils-VV2acmQG.js +49 -0
  223. package/dist/{validate-Dt3Xmp_L.js → validate-BHOzYoxU.js} +26 -2
  224. package/dist/{validate-BN38Qq-w.js → validate-D5990ODb.js} +20 -9
  225. package/dist/{validate-D3JIeysp.js → validate-Dtiozjlb.js} +4 -4
  226. package/dist/{validate-_7WKym8c.js → validate-NJNmUaTh.js} +11 -5
  227. package/dist/{validateExtractionResult-IRRMwcNi.js → validateExtractionResult-D3AuQo5-.js} +3 -3
  228. package/package.json +6 -5
  229. package/dist/Image-CxnjHtP1.js +0 -33
  230. package/dist/List-qvNxW9lm.js +0 -72
  231. package/dist/StateField-BBGSo1NG.js +0 -296
  232. package/dist/en-US-U0d3NI20.js +0 -7
  233. package/dist/mapJpAddressSchemaToAddressLocalizations-kHaGv8kC.js +0 -75
  234. package/dist/mapLegalEntityToIndividualSchema-D6qGKj-2.js +0 -254
  235. package/dist/trustMemberGuidance-BpeDHAJP.js +0 -27
  236. package/dist/types/components/Shared/NewSummary/NewSummary.d.ts +0 -10
  237. package/dist/types/components/Shared/Summary/summaryItem.d.ts +0 -17
  238. package/dist/types/components/Shared/forms/Address/localized/jp/jpAddressSchema.d.ts +0 -17
  239. package/dist/unincorporatedPartnership-BbNowjM2.js +0 -11
@@ -0,0 +1,498 @@
1
+ try {
2
+ let e = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : {}, n = new e.Error().stack;
3
+ n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "3b7d7407-13f1-4b8a-aeb4-948e8b3b5905", e._sentryDebugIdIdentifier = "sentry-dbid-3b7d7407-13f1-4b8a-aeb4-948e8b3b5905");
4
+ } catch (e) {}
5
+ import { r as useTranslation } from "./translation-CpH8D2NK.js";
6
+ import { D as datasetUtilities, ot as isEmpty } from "./resolveEnvironment-CpWP_8og.js";
7
+ import { t as Typography } from "./Typography-CAc_f5Iq.js";
8
+ import { t as Button } from "./Button-BYafPrZH.js";
9
+ import { r as httpPost, s as useApiContext } from "./http-C8rt2BZk.js";
10
+ import { t as CountryCodes } from "./country-code-CJk2hdPu.js";
11
+ import { c as individualBaseMapping, y as reverseMapping } from "./processCapabilities-B75YIdXZ.js";
12
+ import { t as TaskTypes } from "./taskTypes-3vSkMBDm.js";
13
+ import { o as getNomineeFromAssociation } from "./entityAssociationUtil-BlfcBl3i.js";
14
+ import { t as DecisionMakerTypes } from "./decisionMaker-CR0qaGWQ.js";
15
+ import { i as useAnalyticsContext } from "./Modal-jjSjdW5W.js";
16
+ import { o as Field } from "./Select-BRK2a2V5.js";
17
+ import { r as formatObject } from "./utils-Do6-kryk.js";
18
+ import { o as mapAddressLabels } from "./StateField-CRLgYS1X.js";
19
+ import { U as taxIdNumberOptions, W as TileGroup, z as mapApiScriptLocalizationToSchemaFields } from "./bafinUtils-CvQzDDfD.js";
20
+ import { s as isIdDocumentType, u as getLocalizedIdDocumentTypeOptions } from "./documentUtils-6K3LdjjN.js";
21
+ import { t as localizeDateString } from "./localizeDateString-Dxlqr4rL.js";
22
+ import { t as mapAddressLocalizationToJpAddressSchema } from "./mapAddressLocalizationToJpAddressSchema-BrQMDBLX.js";
23
+ import { t as getRoleName } from "./roleMetadata-BW4HRw1l.js";
24
+ import { jsx, jsxs } from "preact/jsx-runtime";
25
+ import { signal } from "@preact/signals";
26
+ import { useMutation } from "@tanstack/preact-query";
27
+ //#region src/api/invitations/useCreateInvitation.ts
28
+ var createInvitation = async (baseUrl, organizationLegalEntityId, inviteeLegalEntityId, data) => {
29
+ return httpPost({
30
+ baseUrl,
31
+ path: `legalEntities/${organizationLegalEntityId}/invitations/associations/${inviteeLegalEntityId}`
32
+ }, data);
33
+ };
34
+ var useCreateInvitation = (options) => {
35
+ const { baseUrl } = useApiContext();
36
+ return useMutation({
37
+ mutationFn: ({ organizationLegalEntityId, inviteeLegalEntityId, data }) => {
38
+ return createInvitation(baseUrl.value, organizationLegalEntityId, inviteeLegalEntityId, data);
39
+ },
40
+ ...options
41
+ });
42
+ };
43
+ //#endregion
44
+ //#region src/stores/formState.ts
45
+ var individualFormDefaultData = signal(null);
46
+ var shouldNavigateToAdditionalPersonalDetailsForMissingData = signal(false);
47
+ var GuidanceQuestion_module_default = {
48
+ "guidance-question": "_guidance-question_e0c6m_1",
49
+ guidanceQuestion: "_guidance-question_e0c6m_1",
50
+ options: "_options_e0c6m_5"
51
+ };
52
+ //#endregion
53
+ //#region src/components/Individual/forms/GuidanceQuestion/GuidanceQuestion.tsx
54
+ var GuidanceQuestionValues = {
55
+ YES: "Yes",
56
+ NO: "No"
57
+ };
58
+ var GuidanceQuestion = (props) => {
59
+ const { descriptionLinkText, errorMessage, name, noLabel, onChange, onDescriptionLinkClick, question, value, yesLabel } = props;
60
+ const { t } = useTranslation("common");
61
+ const userEvents = useAnalyticsContext();
62
+ const handleChange = (selectedValue) => {
63
+ userEvents.addFieldEvent("Interacted with form field", {
64
+ actionType: "select",
65
+ field: name,
66
+ returnValue: selectedValue
67
+ });
68
+ onChange(selectedValue || null);
69
+ };
70
+ const yesTileLabel = yesLabel ?? t(($) => $["yes"]);
71
+ const noTileLabel = noLabel ?? t(($) => $["no"]);
72
+ return /* @__PURE__ */ jsxs("div", {
73
+ className: GuidanceQuestion_module_default.guidanceQuestion,
74
+ children: [
75
+ /* @__PURE__ */ jsx(Typography, {
76
+ variant: "body",
77
+ el: "p",
78
+ id: `${name}-question`,
79
+ children: question
80
+ }),
81
+ descriptionLinkText && onDescriptionLinkClick && /* @__PURE__ */ jsx(Button, {
82
+ variant: "link",
83
+ onClick: onDescriptionLinkClick,
84
+ children: descriptionLinkText
85
+ }),
86
+ /* @__PURE__ */ jsx("div", {
87
+ role: "group",
88
+ "aria-labelledby": `${name}-question`,
89
+ children: /* @__PURE__ */ jsx(Field, {
90
+ name,
91
+ className: GuidanceQuestion_module_default.options,
92
+ children: () => /* @__PURE__ */ jsx(TileGroup, {
93
+ allowMultiple: false,
94
+ errorMessage,
95
+ isHorizontal: true,
96
+ maxSelected: 1,
97
+ name,
98
+ onChange: handleChange,
99
+ selected: value || "",
100
+ tiles: [{
101
+ label: yesTileLabel,
102
+ value: GuidanceQuestionValues.YES
103
+ }, {
104
+ label: noTileLabel,
105
+ value: GuidanceQuestionValues.NO
106
+ }]
107
+ })
108
+ })
109
+ })
110
+ ]
111
+ });
112
+ };
113
+ //#endregion
114
+ //#region src/components/Individual/helpers/getSubmittableTaxInformation.ts
115
+ /**
116
+ * The tax records the individual submit sends, shared by the mapper and the summary so the summary
117
+ * never shows a record the request omits.
118
+ *
119
+ * Keeps records for the current country of residence, plus records for countries already saved on
120
+ * the legal entity, and drops any record with a blank or whitespace-only number unless the user
121
+ * declared they don't have one (`numberAbsent`).
122
+ *
123
+ * @param taxInformation - Every tax record captured for the individual.
124
+ * @param currentCountry - The country of residence currently on the form.
125
+ * @param existingTaxInformation - Tax records already saved on the legal entity.
126
+ * @returns The records that are submitted, in the order they were captured.
127
+ */
128
+ var getSubmittableTaxInformation = (taxInformation, currentCountry, existingTaxInformation) => taxInformation?.filter((taxInfo) => (taxInfo.country === currentCountry || Boolean(existingTaxInformation?.some((savedTaxInfo) => savedTaxInfo.country === taxInfo.country))) && Boolean(taxInfo.number?.trim() || taxInfo.numberAbsent)) ?? [];
129
+ //#endregion
130
+ //#region src/components/Individual/mapping/getOnfidoIdentityTypeToApiIdentityTypeMap.ts
131
+ var getOnfidoIdentityTypeToApiIdentityTypeMap = (data) => {
132
+ const { country } = data;
133
+ switch (country) {
134
+ case CountryCodes.HongKong: return {
135
+ passport: "passport",
136
+ driversLicense: "driversLicense",
137
+ proofOfIdentityCard: "nationalIdNumber"
138
+ };
139
+ default: return {
140
+ nationalIdNumber: "nationalIdNumber",
141
+ passport: "passport",
142
+ driversLicense: "driversLicense",
143
+ proofOfIdentityCard: "identityCard"
144
+ };
145
+ }
146
+ };
147
+ //#endregion
148
+ //#region src/components/Individual/mapping/mapLegalEntityToIndividualSchema.ts
149
+ var getIndividualSchemaFromAPI = { ...individualBaseMapping };
150
+ var mapLegalEntityToIndividualSchema = (legalEntity, isChangingType, isRoleFieldNeeded, parentLegalEntity) => {
151
+ let individual = { ...formatObject(legalEntity, getIndividualSchemaFromAPI) };
152
+ individual = {
153
+ ...individual,
154
+ basicDetails: {
155
+ ...individual?.basicDetails,
156
+ ...isChangingType && {
157
+ firstName: "",
158
+ lastName: "",
159
+ localization: {}
160
+ }
161
+ },
162
+ signatoryQuestionnaire: { isSignatory: isChangingType ? null : individual.signatoryQuestionnaire?.isSignatory ?? null },
163
+ uboQuestionnaire: isChangingType ? {
164
+ isOwner: null,
165
+ isControllingPerson: null,
166
+ isDirector: null,
167
+ isNomineeShareholder: null,
168
+ isNomineeDirector: null
169
+ } : {
170
+ isOwner: individual.uboQuestionnaire?.isOwner ?? null,
171
+ isControllingPerson: individual.uboQuestionnaire?.isControllingPerson ?? null,
172
+ isDirector: individual.uboQuestionnaire?.isDirector ?? null,
173
+ isNomineeDirector: individual.uboQuestionnaire?.isNomineeDirector ?? null,
174
+ isNomineeShareholder: individual.uboQuestionnaire?.isNomineeShareholder ?? null
175
+ }
176
+ };
177
+ if (legalEntity?.documentDetails?.length) {
178
+ const idDocument = mapDocumentDetailToIdDocument(legalEntity.documentDetails);
179
+ if (idDocument) individual = {
180
+ ...individual,
181
+ idVerificationMethod: {
182
+ idVerificationMethod: "existingDocument",
183
+ idDocument
184
+ }
185
+ };
186
+ }
187
+ if (legalEntity.individual?.identificationData?.type && individual.additionalPersonalDetails) {
188
+ const apiIdentityTypeToIdentityTypeMap = reverseMapping(getOnfidoIdentityTypeToApiIdentityTypeMap(individual.additionalPersonalDetails));
189
+ individual.additionalPersonalDetails.typeOfIdentity = apiIdentityTypeToIdentityTypeMap[legalEntity.individual.identificationData.type];
190
+ }
191
+ if (legalEntity.individual?.name?.localization) for (const scriptLoc of legalEntity.individual.name.localization) {
192
+ if (!scriptLoc.fields) continue;
193
+ individual.basicDetails = {
194
+ ...individual.basicDetails,
195
+ ...mapApiScriptLocalizationToSchemaFields({
196
+ ...scriptLoc,
197
+ fields: scriptLoc.fields
198
+ })
199
+ };
200
+ }
201
+ if (legalEntity.individual?.residentialAddress?.localization) individual.additionalPersonalDetails = {
202
+ ...individual.additionalPersonalDetails,
203
+ ...mapAddressLocalizationToJpAddressSchema(legalEntity.individual.residentialAddress.localization)
204
+ };
205
+ /**
206
+ * Map association details of individual to personal
207
+ * details from parentLegalEntity. role, jobTitle, relationship, nomineeShareholder,
208
+ * nomineeDirector are not part of individual legalEntity but part of entityAssociations
209
+ * in parentLegalEntity
210
+ * **/
211
+ if (!parentLegalEntity?.entityAssociations) return individual;
212
+ const associations = parentLegalEntity?.entityAssociations?.filter((ea) => ea.legalEntityId === legalEntity?.id) ?? [];
213
+ if (isRoleFieldNeeded && individual.basicDetails) {
214
+ individual.basicDetails.role = associations.map((ea) => ea.type);
215
+ individual.basicDetails.jobTitle = associations.find(({ jobTitle }) => Boolean(jobTitle))?.jobTitle;
216
+ }
217
+ if (isRoleFieldNeeded && individual.signatoryQuestionnaire && individual.uboQuestionnaire) {
218
+ const associationTypes = new Set(associations.map((ea) => ea.type));
219
+ const hasAssociation = (type) => associationTypes.has(type) ? GuidanceQuestionValues.YES : GuidanceQuestionValues.NO;
220
+ individual.signatoryQuestionnaire.isSignatory = hasAssociation(DecisionMakerTypes.SIGNATORY);
221
+ individual.uboQuestionnaire.isOwner = hasAssociation(DecisionMakerTypes.OWNER);
222
+ individual.uboQuestionnaire.isControllingPerson = hasAssociation(DecisionMakerTypes.CONTROLLING_PERSON);
223
+ individual.uboQuestionnaire.isDirector = hasAssociation(DecisionMakerTypes.DIRECTOR);
224
+ const hasNomineeAssociation = (type) => associations.some((ea) => ea.type === type && ea.nominee) ? GuidanceQuestionValues.YES : GuidanceQuestionValues.NO;
225
+ individual.uboQuestionnaire.isNomineeDirector = hasNomineeAssociation(DecisionMakerTypes.DIRECTOR);
226
+ individual.uboQuestionnaire.isNomineeShareholder = hasNomineeAssociation(DecisionMakerTypes.OWNER);
227
+ }
228
+ individual.basicDetails = getNomineeFromAssociation(associations, individual.basicDetails);
229
+ return individual;
230
+ };
231
+ var mapDocumentDetailToIdDocument = (documents) => {
232
+ const activeDocument = documents.find((document) => document.active && isIdDocumentType(document.type));
233
+ return activeDocument ? {
234
+ idDocumentType: activeDocument.type,
235
+ modificationDate: activeDocument.modificationDate ?? ""
236
+ } : void 0;
237
+ };
238
+ var SummaryBulletList_module_default = {
239
+ "summary-bullet-list": "_summary-bullet-list_14zca_1",
240
+ summaryBulletList: "_summary-bullet-list_14zca_1",
241
+ "summary-bullet-list-item": "_summary-bullet-list-item_14zca_7",
242
+ summaryBulletListItem: "_summary-bullet-list-item_14zca_7"
243
+ };
244
+ //#endregion
245
+ //#region src/components/Shared/SummarySection/SummaryBulletList.tsx
246
+ /**
247
+ * A bulleted list of values, for summary sections that describe a set rather than term/value
248
+ * pairs. Render it as a `SummarySection` child in place of a `StructuredList`.
249
+ */
250
+ var SummaryBulletList = ({ items }) => {
251
+ if (!items.length) return null;
252
+ return /* @__PURE__ */ jsx("ul", {
253
+ className: SummaryBulletList_module_default.summaryBulletList,
254
+ children: items.map((item, index) => /* @__PURE__ */ jsx(Typography, {
255
+ el: "li",
256
+ className: SummaryBulletList_module_default.summaryBulletListItem,
257
+ children: item
258
+ }, index))
259
+ });
260
+ };
261
+ //#endregion
262
+ //#region src/components/Individual/forms/IdDocumentUpload/types.ts
263
+ var onfidoDocumentTypeMapping = [
264
+ {
265
+ id: "driversLicense",
266
+ name: "driversLicense",
267
+ hasBackPage: true
268
+ },
269
+ {
270
+ id: "identityCard",
271
+ name: "identityCard",
272
+ hasBackPage: true
273
+ },
274
+ {
275
+ id: "passport",
276
+ name: "passport",
277
+ hasBackPage: false
278
+ }
279
+ ];
280
+ //#endregion
281
+ //#region src/components/Individual/helpers/findRelevantTaxInformation.ts
282
+ var hasType = (taxId) => Boolean(taxId.type);
283
+ /**
284
+ * The records a summary can key: those whose `type` is known.
285
+ *
286
+ * @param taxInformation - Every tax record captured for the individual.
287
+ * @returns The typed records, in the order they were captured.
288
+ */
289
+ var getKeyableTaxInformation = (taxInformation) => taxInformation?.filter(hasType) ?? [];
290
+ /**
291
+ * Picks the single tax record to show in the summary.
292
+ *
293
+ * An individual can hold tax information for several countries, but the summary lists only one:
294
+ * the record matching their nationality, falling back to the one matching their country of
295
+ * residence. When neither matches, the caller keeps the full list rather than guessing.
296
+ *
297
+ * Records without a `type` are skipped: the summary keys each record by its type, so a typeless
298
+ * record would produce a literal `undefined` label. Falling through to the country match, or
299
+ * keeping the full list, is more useful than emitting that key.
300
+ *
301
+ * @param taxInformation - Every tax record captured for the individual.
302
+ * @param match - The nationality and country of residence to match against, in that order.
303
+ * @returns The matching record, or `undefined` when no typed record matches either country.
304
+ */
305
+ var findRelevantTaxInformation = (taxInformation, match) => {
306
+ const keyable = getKeyableTaxInformation(taxInformation);
307
+ return keyable.find((taxId) => taxId.country === match.nationality) ?? keyable.find((taxId) => taxId.country === match.country);
308
+ };
309
+ //#endregion
310
+ //#region src/components/Individual/helpers/isManualVerificationOrExistingDoc.ts
311
+ /**
312
+ * Checks whether the ID verification method relies on a document the user supplies themselves,
313
+ * rather than an automated capture flow such as the Onfido SDK.
314
+ *
315
+ * @param idVerificationMethod - The selected ID verification method.
316
+ * @returns `true` for `manualVerification` or `existingDocument`, otherwise `false`.
317
+ *
318
+ * @example
319
+ * isManualVerificationOrExistingDoc('manualVerification'); // true
320
+ * isManualVerificationOrExistingDoc('instantVerification'); // false
321
+ */
322
+ var isManualVerificationOrExistingDoc = (idVerificationMethod) => idVerificationMethod === "manualVerification" || idVerificationMethod === "existingDocument";
323
+ //#endregion
324
+ //#region src/components/Individual/utils/formatDataForSummary.ts
325
+ /**
326
+ * Builds the summary rows for the individual task.
327
+ *
328
+ * Rows are an ordered list rather than a record keyed by translation key, as Business and Trust
329
+ * use, because terms come from two namespaces and, for the invite flow, arrive pre-translated.
330
+ */
331
+ function formatDataForSummary({ data, forms, t, language, taskType, country, isSettingEnabled, instantVerificationDetails, source = "form", existingTaxInformation }) {
332
+ const datasetUtils = datasetUtilities(language);
333
+ const common = (key) => t(($) => $[key], { ns: "common" });
334
+ const individual = (key) => t(($) => $[key], { ns: "individual" });
335
+ const sections = [];
336
+ for (const form of forms) {
337
+ const formId = form.formId;
338
+ if (isOmittedForm(formId, data)) continue;
339
+ const formatted = formatForm(formId, {
340
+ data,
341
+ common,
342
+ individual,
343
+ datasetUtils,
344
+ language,
345
+ taskType,
346
+ country,
347
+ isSettingEnabled,
348
+ instantVerificationDetails,
349
+ source,
350
+ existingTaxInformation
351
+ });
352
+ if (!formatted || Array.isArray(formatted) && formatted.length === 0) continue;
353
+ sections.push({
354
+ formId: form.formId,
355
+ label: common(form.formName),
356
+ ...Array.isArray(formatted) ? { items: formatted } : {
357
+ items: [],
358
+ bullets: formatted.bullets
359
+ }
360
+ });
361
+ }
362
+ return sections;
363
+ }
364
+ /**
365
+ * Builds a single row, or nothing when the value would render blank.
366
+ *
367
+ * `isEmpty` rejects whitespace-only strings, which is what keeps a labelled but empty row out of
368
+ * the summary when the address lookup leaves a space behind.
369
+ */
370
+ function row(term, details) {
371
+ return isEmpty(details) ? [] : [{
372
+ term,
373
+ details
374
+ }];
375
+ }
376
+ /**
377
+ * Forms summarized somewhere else: `inviteDetails` is listed under the verification method, and
378
+ * `idVerificationMethod` is replaced by the document section once a document exists.
379
+ */
380
+ function isOmittedForm(formId, data) {
381
+ if (formId === "summary" || formId === "inviteDetails") return true;
382
+ return formId === "idVerificationMethod" && isManualVerificationOrExistingDoc(data.idVerificationMethod?.idVerificationMethod);
383
+ }
384
+ function formatForm(formId, context) {
385
+ const { data } = context;
386
+ switch (formId) {
387
+ case "signatoryQuestionnaire": return formatSignatoryQuestionnaire(context);
388
+ case "uboQuestionnaire": return formatUboQuestionnaire(context);
389
+ case "basicDetails": return formatBasicDetails(context);
390
+ case "idVerificationMethod": return formatIdVerificationMethod(context);
391
+ case "additionalPersonalDetails": return formatAdditionalPersonalDetails(context);
392
+ case "manualIdUpload": return formatIdDocument(data.manualIdUpload ?? data.idVerificationMethod?.idDocument, context);
393
+ case "proofOfResidency": return formatDocumentUpload(data.proofOfResidency?.proofOfResidency, data.proofOfResidency?.description, context);
394
+ case "proofOfNationalId": return formatDocumentUpload(data.proofOfNationalId?.proofOfNationalId, data.proofOfNationalId?.description, context);
395
+ case "proofOfRelationship": return formatDocumentUpload(data.proofOfRelationship?.proofOfRelationship, data.proofOfRelationship?.description, context);
396
+ default: return [];
397
+ }
398
+ }
399
+ function formatSignatoryQuestionnaire({ data, common }) {
400
+ if (data.signatoryQuestionnaire?.isSignatory !== GuidanceQuestionValues.YES) return void 0;
401
+ return { bullets: [common("signatorySummaryLabel")] };
402
+ }
403
+ var UBO_ROLE_LABELS = {
404
+ isOwner: "ownerSummaryLabel",
405
+ isControllingPerson: "controllingPersonSummaryLabel",
406
+ isDirector: "directorSummaryLabel"
407
+ };
408
+ function formatUboQuestionnaire({ data, individual }) {
409
+ const questionnaire = data.uboQuestionnaire;
410
+ if (!questionnaire) return void 0;
411
+ const labels = Object.entries(UBO_ROLE_LABELS).filter(([field]) => questionnaire[field] === GuidanceQuestionValues.YES).map(([, label]) => individual(label));
412
+ return labels.length === 0 ? void 0 : { bullets: labels };
413
+ }
414
+ function formatBasicDetails({ data, common, taskType, source }) {
415
+ const basicDetails = data.basicDetails;
416
+ if (!basicDetails) return [];
417
+ const roles = basicDetails.role ?? [];
418
+ return [
419
+ ...source === "legalEntity" ? [] : [...row(common("firstName"), basicDetails.firstName), ...row(common("lastName"), basicDetails.lastName)],
420
+ ...row(common("jaHaniFirstName"), basicDetails.jaHaniFirstName),
421
+ ...row(common("jaHaniLastName"), basicDetails.jaHaniLastName),
422
+ ...row(common("jaKanaFirstName"), basicDetails.jaKanaFirstName),
423
+ ...row(common("jaKanaLastName"), basicDetails.jaKanaLastName),
424
+ ...row(common("jobTitle"), basicDetails.jobTitle),
425
+ ...taskType === TaskTypes.DECISION_MAKER ? [] : row(roles.length > 1 ? common("roles") : common("role"), roles.map((role) => common(getRoleName(role))).join(", ")),
426
+ ...row(common("phoneNumber"), basicDetails.phoneNumber?.number),
427
+ ...row(common("email"), basicDetails.email),
428
+ ...row(common("relationship"), basicDetails.relationship ? common(basicDetails.relationship) : void 0),
429
+ ...row(common("accountHolder"), basicDetails.accountHolder ? common(basicDetails.accountHolder) : void 0)
430
+ ];
431
+ }
432
+ function formatAdditionalPersonalDetails(context) {
433
+ const { data, common, datasetUtils, language, source, country, existingTaxInformation } = context;
434
+ const details = data.additionalPersonalDetails;
435
+ if (!details) return [];
436
+ const taxInformation = source === "legalEntity" ? details.taxInformation : getSubmittableTaxInformation(details.taxInformation, details.country ?? country, existingTaxInformation);
437
+ const relevantTaxInformation = findRelevantTaxInformation(taxInformation, {
438
+ nationality: details.nationality,
439
+ country: details.country
440
+ });
441
+ const taxRecords = relevantTaxInformation ? [relevantTaxInformation] : getKeyableTaxInformation(taxInformation);
442
+ return [
443
+ ...row(common("birthDate"), details.birthDate ? localizeDateString(details.birthDate, language) : void 0),
444
+ ...row(common("placeOfBirth"), details.placeOfBirth),
445
+ ...row(common("nationality"), details.nationality ? datasetUtils.getCountryName(details.nationality) : void 0),
446
+ ...formatAddress(details, context),
447
+ ...row(common("typeOfIdentity"), details.typeOfIdentity ? common(details.typeOfIdentity) : void 0),
448
+ ...details.idNumberExempt ? [] : row(common("idNumber"), details.idNumber),
449
+ ...row(common("licenseCardNumber"), details.licenseCardNumber),
450
+ ...row(common("issuerState"), details.issuerState),
451
+ ...row(common("expiryDate"), details.expiryDate),
452
+ ...taxRecords.flatMap((taxRecord) => row(common(getTaxIdNumberLabel(taxRecord.type, taxRecord.country)), taxRecord.number))
453
+ ];
454
+ }
455
+ /** Maps the address onto its country specific labels, or the Japanese layout when it applies. */
456
+ function formatAddress(details, { common, datasetUtils, isSettingEnabled }) {
457
+ return Object.entries(mapAddressLabels(details, datasetUtils, isSettingEnabled)).flatMap(([key, value]) => row(common(key), value));
458
+ }
459
+ /**
460
+ * The deprecated summary keyed this row by the raw type (`BSN`, `IDNR`), showing that id to users
461
+ * whenever it was not also a translation key. The option metadata carries the real label.
462
+ */
463
+ function getTaxIdNumberLabel(type, country) {
464
+ return ((country ? taxIdNumberOptions[country] : void 0)?.find((taxOption) => taxOption.id === type))?.name ?? "taxInformationNumber";
465
+ }
466
+ function formatIdVerificationMethod(context) {
467
+ const { data, common, individual, instantVerificationDetails } = context;
468
+ const method = data.idVerificationMethod?.idVerificationMethod;
469
+ if (method === "verifyByInvite") return [
470
+ ...row(individual("type"), individual("inviteDecisionMaker")),
471
+ ...row(individual("sender"), data.inviteDetails?.senderName),
472
+ ...row(individual("message"), data.inviteDetails?.message)
473
+ ];
474
+ if (method === "instantVerification") return row(common("verificationMethod"), instantVerificationDetails);
475
+ return formatIdDocument(data.idVerificationMethod?.idDocument, context);
476
+ }
477
+ /**
478
+ * `frontPage` and `backPage` have no entry in the common bundle, so the deprecated summary
479
+ * rendered those keys verbatim. Kept as-is; correcting them is a separate copy change.
480
+ */
481
+ function formatIdDocument(idDocument, { common, country, source, language }) {
482
+ if (!idDocument) return [];
483
+ const documentTypeOption = idDocument.instantIdVerificationData ? onfidoDocumentTypeMapping.find((option) => idDocument.instantIdVerificationData?.document_front.type === option.id) : getLocalizedIdDocumentTypeOptions(country).find((option) => option.id === idDocument.idDocumentType);
484
+ if (!documentTypeOption) return [];
485
+ const documentType = row(common("documentType"), common(documentTypeOption.name));
486
+ if (source === "legalEntity") return [...documentType, ...row(common("uploadedDate"), idDocument.modificationDate ? localizeDateString(idDocument.modificationDate, language) : void 0)];
487
+ const frontPage = idDocument.idFrontPage?.[0];
488
+ const backPage = idDocument.idBackPage?.[0];
489
+ if (!frontPage) return [];
490
+ return [...documentType, ...backPage && documentTypeOption.hasBackPage ? [...row("frontPage", frontPage.name), ...row("backPage", backPage.name)] : row(common("fileName"), frontPage.name)];
491
+ }
492
+ function formatDocumentUpload(files, description, { common }) {
493
+ const file = files?.[0];
494
+ if (!file) return [];
495
+ return [...row(common("fileName"), file.name), ...row(common("description"), description)];
496
+ }
497
+ //#endregion
498
+ export { getSubmittableTaxInformation as a, individualFormDefaultData as c, getOnfidoIdentityTypeToApiIdentityTypeMap as i, shouldNavigateToAdditionalPersonalDetailsForMissingData as l, SummaryBulletList as n, GuidanceQuestion as o, mapLegalEntityToIndividualSchema as r, GuidanceQuestionValues as s, formatDataForSummary as t, useCreateInvitation as u };
@@ -1,8 +1,8 @@
1
1
  try {
2
2
  let e = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : {}, n = new e.Error().stack;
3
- n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "7eb9b2cf-aeca-41f4-8169-b4f48a78e07a", e._sentryDebugIdIdentifier = "sentry-dbid-7eb9b2cf-aeca-41f4-8169-b4f48a78e07a");
3
+ n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "56162916-c372-4f2f-bfd5-3d136f34c31d", e._sentryDebugIdIdentifier = "sentry-dbid-56162916-c372-4f2f-bfd5-3d136f34c31d");
4
4
  } catch (e) {}
5
- import { d as isTranslationObject, f as translateTranslatable } from "./Select-C0Pp8Jeb.js";
5
+ import { a as translateTranslatable, i as isTranslationObject } from "./Select-BRK2a2V5.js";
6
6
  //#region src/utils/validation/formatValidationError.ts
7
7
  /**
8
8
  * Converts `NsTranslatable` validation error messages into `FieldErrorMessage` for use in `Field` components
@@ -1,12 +1,12 @@
1
1
  try {
2
2
  let e = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : {}, n = new e.Error().stack;
3
- n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "c049a054-89da-4286-854f-6c317d055560", e._sentryDebugIdIdentifier = "sentry-dbid-c049a054-89da-4286-854f-6c317d055560");
3
+ n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "7ab54886-f535-4ac4-8a09-256dc0eac5de", e._sentryDebugIdIdentifier = "sentry-dbid-7ab54886-f535-4ac4-8a09-256dc0eac5de");
4
4
  } catch (e) {}
5
5
  import { r as useTranslation } from "./translation-CpH8D2NK.js";
6
6
  import { t as CountryCodes } from "./country-code-CJk2hdPu.js";
7
- import { r as Field } from "./Select-C0Pp8Jeb.js";
8
- import { C as validateNotEmptyOnBlur, M as spacer, j as numericInputs, k as makeMask, r as RadioGroup, w as validatePatternOnBlur } from "./dropinUtils-cIGIoJvF.js";
9
- import { J as stateFormatGuidanceText, K as businessRegistrationNumberPatterns, q as businessRegistrationNumberMasks } from "./bafinUtils-COyCy9xG.js";
7
+ import { o as Field } from "./Select-BRK2a2V5.js";
8
+ import { I as numericInputs, L as spacer, O as validateNotEmptyOnBlur, P as makeMask, k as validatePatternOnBlur, r as RadioGroup } from "./dropinUtils-DfyQ8xFE.js";
9
+ import { G as businessRegistrationNumberPatterns, K as businessRegistrationNumberMasks, q as stateFormatGuidanceText } from "./bafinUtils-CvQzDDfD.js";
10
10
  import { useCallback, useEffect, useMemo } from "preact/hooks";
11
11
  import { jsx } from "preact/jsx-runtime";
12
12
  //#region src/components/Shared/fields/BusinessRegistrationNumberField/fieldConfig.ts
@@ -4,7 +4,7 @@ try {
4
4
  } catch (e) {}
5
5
  import { r as useLegalEntity, t as ROOT_LE } from "./useLegalEntity-CxeMoCm4.js";
6
6
  import { t as getLegalEntityCountry } from "./getLegalEntityCountry-BK-HHa65.js";
7
- import { n as getCapabilityProblems } from "./processCapabilities-FL4-KAbd.js";
7
+ import { n as getCapabilityProblems } from "./processCapabilities-B75YIdXZ.js";
8
8
  import { useMemo } from "preact/hooks";
9
9
  //#region src/utils/api/getProblemsForEntity.ts
10
10
  var useCapabilityProblems = () => {
@@ -2,7 +2,7 @@ try {
2
2
  let e = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : {}, n = new e.Error().stack;
3
3
  n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "b31ebce0-607d-486f-bbd5-8e26dc271eee", e._sentryDebugIdIdentifier = "sentry-dbid-b31ebce0-607d-486f-bbd5-8e26dc271eee");
4
4
  } catch (e) {}
5
- import { n as getApiTrustedFields } from "./ListItem-DY-qq1lS.js";
5
+ import { n as getApiTrustedFields } from "./ListItem-n927geYb.js";
6
6
  //#region src/components/Individual/tasks/DecisionMakers/getTrustedDecisionMakers.ts
7
7
  function getTrustedDecisionMakers(rootLegalEntity, provider) {
8
8
  return parseTrustedDecisionMakersFromApiFields(getApiTrustedFields(rootLegalEntity, provider));
@@ -1,8 +1,8 @@
1
1
  try {
2
2
  let e = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : {}, n = new e.Error().stack;
3
- n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "ba518ef0-b08f-424d-91c3-1c57f7f8f889", e._sentryDebugIdIdentifier = "sentry-dbid-ba518ef0-b08f-424d-91c3-1c57f7f8f889");
3
+ n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "15f8df9e-dfff-45ed-a73e-bf794282bd4e", e._sentryDebugIdIdentifier = "sentry-dbid-15f8df9e-dfff-45ed-a73e-bf794282bd4e");
4
4
  } catch (e) {}
5
- import { f as translateTranslatable } from "./Select-C0Pp8Jeb.js";
5
+ import { a as translateTranslatable } from "./Select-BRK2a2V5.js";
6
6
  //#region src/adaptiveWorkflow/utils/validators/getValidationError.ts
7
7
  /**
8
8
  * Runs an array of validators against a value.
@@ -1,9 +1,10 @@
1
1
  try {
2
2
  let e = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : {}, n = new e.Error().stack;
3
- n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "9c467a18-f0c4-4532-a08c-7356d316106b", e._sentryDebugIdIdentifier = "sentry-dbid-9c467a18-f0c4-4532-a08c-7356d316106b");
3
+ n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "209438e1-1221-45e4-b15e-6964f81ab568", e._sentryDebugIdIdentifier = "sentry-dbid-209438e1-1221-45e4-b15e-6964f81ab568");
4
4
  } catch (e) {}
5
5
  import { t as CountryCodes } from "./country-code-CJk2hdPu.js";
6
6
  //#region src/utils/legalArrangementUtils.ts
7
+ var TRUST_COUNTRIES = [CountryCodes.Australia, CountryCodes.NewZealand];
7
8
  var LEGAL_ARRANGEMENT_COUNTRIES_REQUIRING_DATE_OF_INCORPORATION = [CountryCodes.HongKong, CountryCodes.Singapore];
8
9
  var ALLOWED_UNINCORPORATED_PARTNERSHIP_COUNTRIES = [
9
10
  CountryCodes.Australia,
@@ -63,6 +64,14 @@ var UNINCORPORATED_PARTNERSHIP_COUNTRIES_VAT_NUMBER_OPTIONAL = [
63
64
  CountryCodes.Spain,
64
65
  CountryCodes.UnitedKingdom
65
66
  ];
67
+ var INDIVIDUALS_WHO_TRADE_COUNTRIES = [
68
+ CountryCodes.UnitedKingdom,
69
+ CountryCodes.UnitedStates,
70
+ CountryCodes.Australia,
71
+ CountryCodes.Germany,
72
+ CountryCodes.France,
73
+ CountryCodes.Canada
74
+ ];
66
75
  var SOLE_PROP_COUNTRIES = [
67
76
  CountryCodes.Austria,
68
77
  CountryCodes.Australia,
@@ -111,4 +120,4 @@ var SOLE_PROP_COUNTRIES = [
111
120
  CountryCodes.UnitedStates
112
121
  ];
113
122
  //#endregion
114
- export { UNINCORPORATED_PARTNERSHIP_COUNTRIES_REGISTRATION_NUMBER_REQUIRED as a, UNINCORPORATED_PARTNERSHIP_COUNTRIES_VAT_NUMBER_OPTIONAL as c, UNINCORPORATED_PARTNERSHIP_COUNTRIES_REGISTRATION_NUMBER_OPTIONAL as i, LEGAL_ARRANGEMENT_COUNTRIES_REQUIRING_DATE_OF_INCORPORATION as n, UNINCORPORATED_PARTNERSHIP_COUNTRIES_TAX_INFORMATION_OPTIONAL as o, SOLE_PROP_COUNTRIES as r, UNINCORPORATED_PARTNERSHIP_COUNTRIES_TAX_INFORMATION_REQUIRED as s, ALLOWED_UNINCORPORATED_PARTNERSHIP_COUNTRIES as t };
123
+ export { TRUST_COUNTRIES as a, UNINCORPORATED_PARTNERSHIP_COUNTRIES_TAX_INFORMATION_OPTIONAL as c, SOLE_PROP_COUNTRIES as i, UNINCORPORATED_PARTNERSHIP_COUNTRIES_TAX_INFORMATION_REQUIRED as l, INDIVIDUALS_WHO_TRADE_COUNTRIES as n, UNINCORPORATED_PARTNERSHIP_COUNTRIES_REGISTRATION_NUMBER_OPTIONAL as o, LEGAL_ARRANGEMENT_COUNTRIES_REQUIRING_DATE_OF_INCORPORATION as r, UNINCORPORATED_PARTNERSHIP_COUNTRIES_REGISTRATION_NUMBER_REQUIRED as s, ALLOWED_UNINCORPORATED_PARTNERSHIP_COUNTRIES as t, UNINCORPORATED_PARTNERSHIP_COUNTRIES_VAT_NUMBER_OPTIONAL as u };
@@ -1,8 +1,8 @@
1
1
  try {
2
2
  let e = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : {}, n = new e.Error().stack;
3
- n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "b2595f53-2fc2-4b74-b0bb-1cecc1349cfb", e._sentryDebugIdIdentifier = "sentry-dbid-b2595f53-2fc2-4b74-b0bb-1cecc1349cfb");
3
+ n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "e0f34a49-2dd7-4794-947c-b3c649d8ea5e", e._sentryDebugIdIdentifier = "sentry-dbid-e0f34a49-2dd7-4794-947c-b3c649d8ea5e");
4
4
  } catch (e) {}
5
- import { W as mapApiScriptLocalizationToSchemaFields } from "./bafinUtils-COyCy9xG.js";
5
+ import { z as mapApiScriptLocalizationToSchemaFields } from "./bafinUtils-CvQzDDfD.js";
6
6
  //#region src/components/Shared/forms/Address/localized/jp/mapAddressLocalizationToJpAddressSchema.ts
7
7
  var mapAddressLocalizationToJpAddressSchema = (localization) => {
8
8
  if (!localization) return {};
@@ -1,6 +1,6 @@
1
1
  try {
2
2
  let e = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : {}, n = new e.Error().stack;
3
- n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "4d85dcf3-c4b1-40cf-9b84-2d06caa30233", e._sentryDebugIdIdentifier = "sentry-dbid-4d85dcf3-c4b1-40cf-9b84-2d06caa30233");
3
+ n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "7a79795d-078d-43d6-b173-4cada077371a", e._sentryDebugIdIdentifier = "sentry-dbid-7a79795d-078d-43d6-b173-4cada077371a");
4
4
  } catch (e) {}
5
5
  import { t as useScenarios } from "./useScenarios-DfE71fl7.js";
6
6
  import { useEffect, useMemo } from "preact/hooks";
@@ -0,0 +1,19 @@
1
+ try {
2
+ let e = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : {}, n = new e.Error().stack;
3
+ n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "0d4142be-99de-4e29-8380-0a02092e108d", e._sentryDebugIdIdentifier = "sentry-dbid-0d4142be-99de-4e29-8380-0a02092e108d");
4
+ } catch (e) {}
5
+ import { m as isEmpty } from "./StateField-CRLgYS1X.js";
6
+ import { B as mapSchemaFieldsToApiScriptLocalization } from "./bafinUtils-CvQzDDfD.js";
7
+ //#region src/components/Shared/forms/Address/localized/jp/mapJpAddressSchemaToAddressLocalizations.ts
8
+ var mapJpAddressSchemaToAddressLocalizations = (data) => {
9
+ if (!data) return [];
10
+ return [mapSchemaFieldsToApiScriptLocalization(data, "jaHani"), mapSchemaFieldsToApiScriptLocalization(data, "jaKana")].filter(({ fields }) => !isEmpty(fields)).map(({ script, fields }) => ({
11
+ script,
12
+ fields: {
13
+ city: fields.city,
14
+ ..."street" in fields ? { street: fields.street } : void 0
15
+ }
16
+ }));
17
+ };
18
+ //#endregion
19
+ export { mapJpAddressSchemaToAddressLocalizations as t };
@@ -3,8 +3,8 @@ try {
3
3
  n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "01d88251-e10d-40c6-bef1-a9de5f6a3222", e._sentryDebugIdIdentifier = "sentry-dbid-01d88251-e10d-40c6-bef1-a9de5f6a3222");
4
4
  } catch (e) {}
5
5
  import { n as httpGet, s as useApiContext } from "./http-C8rt2BZk.js";
6
- import { b as crossBorderMapping, x as payoutComponentKeyMapping } from "./processCapabilities-FL4-KAbd.js";
7
- import { a as mapWith } from "./utils-B6TRzLRs.js";
6
+ import { b as crossBorderMapping, x as payoutComponentKeyMapping } from "./processCapabilities-B75YIdXZ.js";
7
+ import { a as mapWith } from "./utils-Do6-kryk.js";
8
8
  import { skipToken, useQuery } from "@tanstack/preact-query";
9
9
  //#region src/api/transferInstruments/useTransferInstrument.ts
10
10
  var getTransferInstrument = async (legalEntityId, baseUrl, transferInstrumentId) => {