@adyen/kyc-components 4.22.0-beta.1 → 4.22.0-beta.2

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 (221) hide show
  1. package/dist/{AcceptTermsOfServiceWorkflow-CLA1JNzc.js → AcceptTermsOfServiceWorkflow-BOf_52TF.js} +4 -4
  2. package/dist/{Accordion-Cwp-Xc7e.js → Accordion-Sjyj7C_t.js} +1 -1
  3. package/dist/{AccountSetupRejected-B2h3LRDZ.js → AccountSetupRejected-DoYH7MuS.js} +1 -1
  4. package/dist/{AdaptiveWorkflow-BHooRzh_.js → AdaptiveWorkflow-ychw-YVL.js} +16 -16
  5. package/dist/{AdaptiveWorkflowComponent-D1EALddI.js → AdaptiveWorkflowComponent-DFnkomSo.js} +3 -3
  6. package/dist/{AddressFields-CU23S3JV.js → AddressFields-CFf-ECTn.js} +10 -10
  7. package/dist/{Avatar-BbOb0bui.js → Avatar-Zp1T9qAL.js} +1 -1
  8. package/dist/{BusinessFinancingDropin-Cc0oB8ka.js → BusinessFinancingDropin-Dr9GOZI2.js} +31 -29
  9. package/dist/{BusinessFinancingPage-D0EmBl9D.js → BusinessFinancingPage-DIHz906_.js} +3 -3
  10. package/dist/{BusinessRegistrationNumberField-c8mvmS4m.js → BusinessRegistrationNumberField-BGZrKxCP.js} +5 -5
  11. package/dist/{BusinessRegistrationNumberFieldGroup-DNZALTo_.js → BusinessRegistrationNumberFieldGroup-D4289xzf.js} +5 -5
  12. package/dist/{BusinessTypeSelectionPage-CYjrUqoM.js → BusinessTypeSelectionPage-D7mTXytS.js} +85 -67
  13. package/dist/{Button-oqvTDztg.js → Button-DfRmINzF.js} +1 -1
  14. package/dist/{Checkbox-2Rp9bWYN.js → Checkbox-DTQ5Y6L-.js} +2 -2
  15. package/dist/{ComponentGroup-DbWo8fnI.js → ComponentGroup-DysWDI71.js} +3 -3
  16. package/dist/{ConstitutionalDocument-64rqHz7d.js → ConstitutionalDocument-o1_xv4zy.js} +15 -15
  17. package/dist/{ContactDetails-ucx3UuP8.js → ContactDetails-BUZAvP2T.js} +5 -5
  18. package/dist/{ContextGuidance-CIwiyrm9.js → ContextGuidance-fy9mkvE5.js} +3 -3
  19. package/dist/{Currency-fvQfdQ2i.js → Currency-CfDw1FVZ.js} +5 -5
  20. package/dist/{CustomerSupport-CHHRYNTG.js → CustomerSupport-BRTzBxJt.js} +25 -15
  21. package/dist/{DataConflictsModal-BJHJVW3V.js → DataConflictsModal-s-Ss3HdC.js} +7 -7
  22. package/dist/{DebugModal-CptS2b87.js → DebugModal-CbilZSFv.js} +10 -10
  23. package/dist/{DecisionMakerDetails-a_G8S1S9.js → DecisionMakerDetails-CWZUSV8G.js} +12 -12
  24. package/dist/{DecisionMakerDetailsPage-BsiheWPy.js → DecisionMakerDetailsPage-Rtsv9ICS.js} +7 -7
  25. package/dist/{DecisionMakers-DC3r2UzN.js → DecisionMakers-BmUjP2RH.js} +13 -13
  26. package/dist/{Dropzone-CTdbCPiL.js → Dropzone-dnfMEv2T.js} +7 -7
  27. package/dist/{EmbeddedStatus-DqanSUWu.js → EmbeddedStatus-tbJfdxm8.js} +3 -3
  28. package/dist/{EndStateLayout-CRNRpDeu.js → EndStateLayout-BK1Hh02g.js} +2 -2
  29. package/dist/{EntityAssociation-DqTOqixv.js → EntityAssociation-CH9G3mlZ.js} +6 -6
  30. package/dist/{ErrorPanel-jcVYNW8o.js → ErrorPanel-B5suXapM.js} +2 -2
  31. package/dist/{GlobalEntryModal-Bwy0lfz2.js → GlobalEntryModal-DwhX1CJz.js} +53 -29
  32. package/dist/{GlobalEntryPage-DPKND7LX.js → GlobalEntryPage-DPYM9_FS.js} +6 -6
  33. package/dist/{Icon-BblJeZYj.js → Icon-C3S5_kkS.js} +1 -1
  34. package/dist/{IdentityNumber-D9t0xamT.js → IdentityNumber-BJymypwh.js} +5 -5
  35. package/dist/{IdentityNumberFieldGroup-0Ll_77LW.js → IdentityNumberFieldGroup-DPfXsI_n.js} +2 -2
  36. package/dist/{IdentityScreeningWorkflow-DESXjfuC.js → IdentityScreeningWorkflow-ZVSOyRqF.js} +12 -12
  37. package/dist/{IndividualDropin-CMejkT3R.js → IndividualDropin-B3UfxIu8.js} +269 -42
  38. package/dist/{IndustryCodeFieldGroup-xFrcCogG.js → IndustryCodeFieldGroup-D5U1t1F-.js} +4 -4
  39. package/dist/{InputDate-DMcomeFj.js → InputDate-CncTgJYS.js} +3 -3
  40. package/dist/{InputText-BqeL5dXt.js → InputText-Bniyaz3w.js} +3 -3
  41. package/dist/{Introduction-6WPMkIpx.js → Introduction-BOz_2500.js} +6 -6
  42. package/dist/{InvitedDecisionMakerComponent-w0xQxDgC.js → InvitedDecisionMakerComponent-DgIv6IG9.js} +9 -9
  43. package/dist/{JpAddressFields-Cic1nSNI.js → JpAddressFields-nEKx7nU_.js} +8 -8
  44. package/dist/{LegalCompanyNameField-Dl60xD84.js → LegalCompanyNameField-BFm2LIw2.js} +5 -5
  45. package/dist/{LegalName-DDKN6L93.js → LegalName-DBvf_laS.js} +4 -4
  46. package/dist/{LegalRepresentativeDetailsPage-B2ubp7Rb.js → LegalRepresentativeDetailsPage-BVr_AhP6.js} +3 -3
  47. package/dist/{Link-Bb1XDrs1.js → Link-c2jAgGgc.js} +1 -1
  48. package/dist/{ListItem-CI4fqIkg.js → ListItem-C35r8558.js} +3 -3
  49. package/dist/{Modal-By_wpf9o.js → Modal-5uXk2vE6.js} +2 -2
  50. package/dist/{Name-BpKVUmoY.js → Name-CbdY9G9k.js} +4 -4
  51. package/dist/{NewSummary-Bmi54FYk.js → NewSummary-lUp_hg6V.js} +6 -6
  52. package/dist/{PatriotActDisclosure-DsZX3cb-.js → PatriotActDisclosure-i6txl8sg.js} +9 -9
  53. package/dist/{PayoutDetailsDropin-BkzjalFb.js → PayoutDetailsDropin-BnDericg.js} +25 -25
  54. package/dist/{PayoutDetailsPage-BLbHUm0I.js → PayoutDetailsPage-zLj-XA7a.js} +4 -4
  55. package/dist/{RadioGroup-e6Ty_ggj.js → RadioGroup-BcRkK03K.js} +9 -9
  56. package/dist/{Review-BG_iSaAN.js → Review--lh7xBZJ.js} +6 -6
  57. package/dist/{RootBusinessDetailsPage-D6ZEfFr4.js → RootBusinessDetailsPage-CsOt68pH.js} +3 -3
  58. package/dist/{RootBusinessLinesPage-B6Swhdyx.js → RootBusinessLinesPage-CsPTRJHI.js} +20 -20
  59. package/dist/{RootIndividualDetailsPage-2Bu7fbyB.js → RootIndividualDetailsPage-CROUaWsK.js} +4 -4
  60. package/dist/{Select-CrcaoG0i.js → Select-CAYO1vj-.js} +6 -6
  61. package/dist/{SignPCIComponent-B4Iz8PXX.js → SignPCIComponent-iFFWNqDL.js} +13 -13
  62. package/dist/{SingpassSelection-D2NSiGzi.js → SingpassSelection-BKRSs-Xf.js} +4 -4
  63. package/dist/{SoleProprietorshipPage-bJ6oea6W.js → SoleProprietorshipPage-UvZsbICO.js} +3 -3
  64. package/dist/{SourceOfFundsPage-Bu9e93PV.js → SourceOfFundsPage-B5E9w3tI.js} +25 -26
  65. package/dist/{SourceOfFundsWorkflow-CW7McbuG.js → SourceOfFundsWorkflow-DgUkjcYh.js} +4 -4
  66. package/dist/{StateField-BnyUQjAj.js → StateField-DB4_kWP5.js} +5 -5
  67. package/dist/{Step-CZq7qzCe.js → Step-CoGy1zas.js} +4 -4
  68. package/dist/{Task-Jhx4xFyF.js → Task-DdRNdhJY.js} +7 -7
  69. package/dist/{TaskGroup-CHPDt1lw.js → TaskGroup-yVbg_WHM.js} +3 -3
  70. package/dist/{TaskListItem-BAHYod3y.js → TaskListItem-BritELso.js} +10 -10
  71. package/dist/{TaskStepperContextProvider-BtpYUg5S.js → TaskStepperContextProvider-D0tKJplv.js} +1 -1
  72. package/dist/{TaskVerificationStatus-onOyOzoM.js → TaskVerificationStatus-DPA4ZEPa.js} +1 -1
  73. package/dist/{TaxInformationFieldGroup-D4bSgrDG.js → TaxInformationFieldGroup-CYcqRgQt.js} +9 -9
  74. package/dist/{TaxReportingDropin-BD-WaKf5.js → TaxReportingDropin-Dxt-K1Td.js} +14 -14
  75. package/dist/{TaxReportingWorkflow-UVCd2CGW.js → TaxReportingWorkflow-xeJVSZxl.js} +4 -4
  76. package/dist/{TermsOfServiceManagement-Czlvu-_X.js → TermsOfServiceManagement-BiqqRcsM.js} +12 -12
  77. package/dist/{TextArea-Doiwq6Fz.js → TextArea-mN6mmyt0.js} +4 -4
  78. package/dist/{TrustDetailsPage-Do_Pgp5e.js → TrustDetailsPage-OuITcLjL.js} +23 -23
  79. package/dist/{TrustMemberCompanyPage-COKJWVwj.js → TrustMemberCompanyPage-BSr2h39m.js} +4 -4
  80. package/dist/{TrustMemberIndividualPage-BTzYVATe.js → TrustMemberIndividualPage-D1oTjw8X.js} +3 -3
  81. package/dist/{TrustMemberRoleAndTypePage-CvT2NyPL.js → TrustMemberRoleAndTypePage-qnLRC07p.js} +15 -15
  82. package/dist/{TrustMembersOverview-Dx2d70H1.js → TrustMembersOverview-BhtPLg82.js} +11 -11
  83. package/dist/{UboTaskItem-DItfn-Pd.js → UboTaskItem-dmz_L8pF.js} +7 -7
  84. package/dist/{UnincorporatedPartnershipIndividualPage-CLBFd1-S.js → UnincorporatedPartnershipIndividualPage-BGuseNDd.js} +3 -3
  85. package/dist/{UnincorporatedPartnershipMemberCompanyPage-5RlKVr20.js → UnincorporatedPartnershipMemberCompanyPage-DfWEeKVA.js} +4 -4
  86. package/dist/{UnincorporatedPartnershipMemberRoleAndTypePage-D3j7kPUH.js → UnincorporatedPartnershipMemberRoleAndTypePage-CNrub8wj.js} +8 -8
  87. package/dist/{UnincorporatedPartnershipMembersOverview-BrypfDgd.js → UnincorporatedPartnershipMembersOverview-BISsH8Wm.js} +6 -6
  88. package/dist/{VerificationErrorAlert-Dg0EN5Gg.js → VerificationErrorAlert-DAg5VgBd.js} +3 -3
  89. package/dist/{Workflow-BbFLvLAf.js → Workflow-CVwXYQQE.js} +6 -6
  90. package/dist/{accountHolderUtils-BnH2f3aW.js → accountHolderUtils-Dt7JmWab.js} +1 -1
  91. package/dist/adyen-business-financing.js +4 -4
  92. package/dist/adyen-individual-configuration.js +3 -3
  93. package/dist/adyen-individual-status.js +3 -3
  94. package/dist/adyen-invited-decision-maker.js +3 -3
  95. package/dist/adyen-onboarding.js +31 -31
  96. package/dist/adyen-terms-of-service-management.js +3 -3
  97. package/dist/adyen-terms-of-service-status.js +3 -3
  98. package/dist/adyen-transfer-instrument-configuration.js +3 -3
  99. package/dist/adyen-transfer-instrument-management.js +10 -10
  100. package/dist/adyen-verification-status.js +3 -3
  101. package/dist/{bafinUtils-F8i4raV6.js → bafinUtils-B8teCz7U.js} +160 -1053
  102. package/dist/businessRegistrationNumberPatterns-DwjKFSlu.js +981 -0
  103. package/dist/{constants-C1GRcz1y.js → constants-CSVEfRuk.js} +4 -4
  104. package/dist/{country-DkgapJ4w.js → country-zZC2TAQB.js} +1 -1
  105. package/dist/{decisionMaker-M0Tm92JR.js → decisionMakerRoles-APTR-Ah_.js} +41 -2
  106. package/dist/{error-3d6yiTPF.js → error-DhPmKdY4.js} +3 -3
  107. package/dist/{form-rules-BhIs9ilj.js → form-rules-yTwukXew.js} +6 -6
  108. package/dist/{formatValidationError-DdKr3rgo.js → formatValidationError-ChBRk626.js} +2 -2
  109. package/dist/{getDefaultRegistrationNumberType-CfU1YUaz.js → getDefaultRegistrationNumberType-DPidx6iz.js} +59 -59
  110. package/dist/{getTrustedDecisionMakers-Brlr-pKL.js → getTrustedDecisionMakers-DX3nImM5.js} +2 -2
  111. package/dist/{legalArrangementUtils-skU_cq9L.js → legalArrangementUtils-xvCxpgzJ.js} +48 -2
  112. package/dist/mapAddressLocalizationToJpAddressSchema-DEOqm_oJ.js +26 -0
  113. package/dist/{mapExistingFile-CDahgHsP.js → mapExistingFile-CwGW1ru4.js} +1 -1
  114. package/dist/{mapJpAddressSchemaToAddressLocalizations-CWb68lJV.js → mapJpAddressSchemaToAddressLocalizations-BcW9wSjn.js} +3 -4
  115. package/dist/{mapLegalEntityToIndividualSchema-B3XhBnaa.js → mapLegalEntityToIndividualSchema-Ksy4YlcJ.js} +7 -7
  116. package/dist/{mapTransferInstrumentToPayoutAccount-n4ffPJ2c.js → mapTransferInstrumentToPayoutAccount-BoZaPCSn.js} +2 -2
  117. package/dist/{processValidationErrors-BfqJR1rP.js → processValidationErrors-BJNiG_SS.js} +3 -3
  118. package/dist/{resolveEnvironment-Bp-RuIhz.js → resolveEnvironment-6rOnOa58.js} +11 -11
  119. package/dist/types/adaptiveWorkflow/components/Fields/BusinessRegistrationNumber/BusinessRegistrationNumberFieldGroup.d.ts +2 -3
  120. package/dist/types/adaptiveWorkflow/components/Fields/BusinessRegistrationNumber/RegistrationNumberTypeSelectorField.d.ts +2 -2
  121. package/dist/types/adaptiveWorkflow/components/Fields/TaxInformation/TaxIdTypeSelectorField.d.ts +2 -2
  122. package/dist/types/adaptiveWorkflow/components/Fields/TaxInformation/TaxInformationFieldGroup.d.ts +3 -3
  123. package/dist/types/api/createLegalEntity/useCreateLegalEntity.d.ts +1 -1
  124. package/dist/types/api/legalEntity/legalEntity.types.d.ts +9 -0
  125. package/dist/types/api/legalEntity/useLegalEntity.d.ts +7 -7
  126. package/dist/types/api/legalEntity/useUpdateLegalEntity.d.ts +1 -1
  127. package/dist/types/components/Business/forms/AdditionalInformation/types.d.ts +2 -2
  128. package/dist/types/components/Business/forms/BasicInformation/types.d.ts +2 -2
  129. package/dist/types/components/Business/forms/CompanyStructure/types.d.ts +2 -2
  130. package/dist/types/components/Business/forms/FinancialInformation/mapping/mapFinancialInformationToFinancialReport.d.ts +2 -2
  131. package/dist/types/components/Business/forms/FinancialInformation/mapping/mapFinancialReportsToFinancialInformation.d.ts +2 -2
  132. package/dist/types/components/Business/forms/RegistrationDocument/types.d.ts +3 -3
  133. package/dist/types/components/Business/forms/TaxDocument/types.d.ts +3 -3
  134. package/dist/types/components/Business/mapping/businessDetails/mapLegalEntityToBusinessDetailsSchema.d.ts +1 -1
  135. package/dist/types/components/Business/tasks/BusinessDetailsDropin/validate.d.ts +2 -2
  136. package/dist/types/components/Business/utils/applyVerifiedBusinessData.d.ts +2 -2
  137. package/dist/types/components/Business/utils/companyTypeMetadata.d.ts +4 -4
  138. package/dist/types/components/Business/utils/getAvailableCompanyStructures.d.ts +2 -2
  139. package/dist/types/components/Business/utils/utils.d.ts +3 -4
  140. package/dist/types/components/EFP/mapping/businessFinancingKeyMappings.d.ts +96 -102
  141. package/dist/types/components/EFP/tasks/BusinessFinancingDropin/utils.d.ts +5 -6
  142. package/dist/types/components/EFP/tasks/SourceOfFundsDropin/types.d.ts +2 -2
  143. package/dist/types/components/EmbeddedDropins/BusinessFinancingComponent/utils.d.ts +2 -2
  144. package/dist/types/components/GlobalEntry/fields/PaperworkQuestionnaire/PaperworkQuestionnaire.d.ts +5 -0
  145. package/dist/types/components/GlobalEntry/fields/PaperworkQuestionnaire/types.d.ts +1 -1
  146. package/dist/types/components/GlobalEntry/fields/PrimaryPartnerTypeField/types.d.ts +1 -1
  147. package/dist/types/components/GlobalEntry/fields/UnincorporatedOrganizationTypeField/types.d.ts +1 -1
  148. package/dist/types/components/GlobalEntry/rules.d.ts +1 -1
  149. package/dist/types/components/GlobalEntry/utils.d.ts +5 -2
  150. package/dist/types/components/Individual/forms/IdNowVerificationModal/isIdNowModalOpen.d.ts +1 -1
  151. package/dist/types/components/Individual/forms/Individual.rules.d.ts +0 -1
  152. package/dist/types/components/Shared/fields/BusinessRegistrationNumberField/RegistrationNumberTypeSelector/CompanyRegistrationNumberTypeSelector.d.ts +2 -2
  153. package/dist/types/components/Shared/fields/BusinessRegistrationNumberField/RegistrationNumberTypeSelector/getDefaultRegistrationNumberType.d.ts +2 -2
  154. package/dist/types/components/Shared/fields/BusinessRegistrationNumberField/RegistrationNumberTypeSelector/inferCompanyRegistrationNumberType.d.ts +2 -2
  155. package/dist/types/components/Shared/fields/BusinessRegistrationNumberField/fieldConfig.d.ts +2 -2
  156. package/dist/types/components/Shared/fields/BusinessRegistrationNumberField/registrationNumberTypes.d.ts +3 -3
  157. package/dist/types/components/Shared/fields/BusinessRegistrationNumberField/types.d.ts +3 -4
  158. package/dist/types/components/Shared/fields/RegistrationAndOperationalAddressFields/utils.d.ts +1 -1
  159. package/dist/types/components/Shared/fields/TaxInformationField/TaxIdNumberTypeSelector/TaxIdNumberTypeSelector.d.ts +2 -2
  160. package/dist/types/components/Shared/fields/TaxInformationField/TaxIdNumberTypeSelector/getDefaultTaxIdNumberType.d.ts +3 -4
  161. package/dist/types/components/Shared/fields/TaxInformationField/TaxIdNumberTypeSelector/inferTaxIdNumberType.d.ts +3 -4
  162. package/dist/types/components/Shared/fields/TaxInformationField/fieldConfig.d.ts +4 -4
  163. package/dist/types/components/Shared/fields/TaxInformationField/taxIdNumberTypes.d.ts +5 -4
  164. package/dist/types/components/Shared/fields/TaxInformationField/types.d.ts +9 -4
  165. package/dist/types/components/Shared/fields/TaxInformationField/utils.d.ts +1 -1
  166. package/dist/types/components/Shared/fields/VatNumberField/VatNumberTypeSelector/VatNumberTypeSelector.d.ts +2 -2
  167. package/dist/types/components/Shared/fields/VatNumberField/types.d.ts +4 -4
  168. package/dist/types/components/Shared/fields/VatNumberField/vatNumberTypes.d.ts +2 -3
  169. package/dist/types/components/Shared/forms/Address/localized/jp/mapAddressLocalizationToJpAddressSchema.d.ts +2 -2
  170. package/dist/types/components/Shared/forms/Address/localized/jp/mapJpAddressSchemaToAddressLocalizations.d.ts +2 -2
  171. package/dist/types/components/Shared/forms/Address/types.d.ts +3 -7
  172. package/dist/types/components/Shared/forms/Address/utils.d.ts +1 -1
  173. package/dist/types/components/Shared/forms/BusinessTypeSelection/useUpdateLegalEntityAndSelectAccountHolder.d.ts +13 -0
  174. package/dist/types/components/Shared/forms/BusinessTypeSelection/utils.d.ts +3 -3
  175. package/dist/types/components/Shared/forms/DocumentUpload/types.d.ts +2 -2
  176. package/dist/types/components/Shared/tasks/CustomerSupport/mapping/mapCustomerSupportSchemaToCustomerSupportType.d.ts +2 -2
  177. package/dist/types/components/Shared/tasks/CustomerSupport/mapping/mapDtoToCustomerSupportSchema.d.ts +3 -0
  178. package/dist/types/core/models/api/individual.d.ts +5 -6
  179. package/dist/types/core/models/api/legal-arrangement.d.ts +6 -6
  180. package/dist/types/core/models/api/legal-entity.d.ts +2 -2
  181. package/dist/types/core/user-events.d.ts +2 -2
  182. package/dist/types/datasets/generators/getCompanyTypeExamplesForCountry.d.ts +3 -3
  183. package/dist/types/hooks/useDataConflicts.d.ts +2 -2
  184. package/dist/types/types/businessEntityType.d.ts +7 -0
  185. package/dist/types/utils/addressToString.d.ts +2 -2
  186. package/dist/types/utils/analytics/debouncedInputEvent.d.ts +1 -1
  187. package/dist/types/utils/businessUtils.d.ts +18 -7
  188. package/dist/types/utils/customerSupportUtils.d.ts +2 -2
  189. package/dist/types/utils/legalArrangementUtils.d.ts +1 -0
  190. package/dist/types/utils/mapping/documentGuidanceMap.d.ts +1 -1
  191. package/dist/{types-C6GnB9nH.js → types-wRlt8bxb.js} +1 -1
  192. package/dist/{useBusinessDetailsData-UyUhXzON.js → useBusinessDetailsData-D5WMRXf8.js} +88 -108
  193. package/dist/{useCanSeeIntroduction-C6qXZZe8.js → useCanSeeIntroduction-47a29qGT.js} +3 -3
  194. package/dist/{useForm-BhfuVkAR.js → useForm-C8X8Nh_A.js} +3 -3
  195. package/dist/{useHideTaskStepper-Dlzsx-RK.js → useHideTaskStepper-CbMcV9mk.js} +1 -1
  196. package/dist/{useId-DqpXTon5.js → useId-CcjYxxnm.js} +1 -1
  197. package/dist/{useNavigate-Xc0HARgb.js → useNavigate-ZoEeUtrK.js} +33 -33
  198. package/dist/{useSalesChannels-gzi6QOI7.js → useSalesChannels-K1tuVs25.js} +3 -3
  199. package/dist/{useTaskLandedEvent-BXv-wuAJ.js → useTaskLandedEvent-DcX3urqZ.js} +2 -2
  200. package/dist/{useTrustMembers-wjNlRtOm.js → useTrustMembers-DoRWdimd.js} +2 -2
  201. package/dist/{useUnincorporatedPartnershipMembers-CfpBIS06.js → useUnincorporatedPartnershipMembers-K5jkCKfJ.js} +1 -1
  202. package/dist/{utils-DyriwmGv.js → utils-CXLiV88a.js} +4 -4
  203. package/dist/{utils-DebuaWe9.js → utils-Dm0eoyQ6.js} +8 -17
  204. package/dist/{validate-MsZ6MiUq.js → validate-09Jy2SgA.js} +8 -8
  205. package/dist/{validate-C2fajdCR.js → validate-BcUs5K_M.js} +46 -6
  206. package/dist/{validate-DruWE6jY.js → validate-DnnWVNv6.js} +1 -1
  207. package/dist/{validate-DzNLLQoR.js → validate-tS-cwVuY.js} +2 -2
  208. package/dist/{validateExtractionResult-BfwUJj1D.js → validateExtractionResult-dH4TewHf.js} +2 -2
  209. package/dist/{validationError-DudGlB6v.js → validationError-D4d622D3.js} +2 -2
  210. package/package.json +1 -1
  211. package/dist/Individual.rules-4BHmKpNa.js +0 -293
  212. package/dist/decisionMakerRoles-DbKnutwk.js +0 -46
  213. package/dist/isEmpty-DD8Insy0.js +0 -14
  214. package/dist/mapAddressLocalizationToJpAddressSchema-CBeBTFmC.js +0 -66
  215. package/dist/types/core/models/api/address.d.ts +0 -14
  216. package/dist/types/core/models/api/branchAllocation.d.ts +0 -5
  217. package/dist/types/core/models/api/company-types-value.d.ts +0 -15
  218. package/dist/types/core/models/api/customerSupport.d.ts +0 -12
  219. package/dist/types/core/models/api/financialReport.d.ts +0 -15
  220. package/dist/types/core/models/api/organization.d.ts +0 -60
  221. package/dist/utils-Br7Ah3uy.js +0 -46
@@ -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] = "97d90026-1cf1-450c-a579-88060c90f26f", e._sentryDebugIdIdentifier = "sentry-dbid-97d90026-1cf1-450c-a579-88060c90f26f");
3
+ n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "5946432f-16a3-412c-92b6-1e8904f115ea", e._sentryDebugIdIdentifier = "sentry-dbid-5946432f-16a3-412c-92b6-1e8904f115ea");
4
4
  } catch (e) {}
5
- import { j as useToggleContext } from "./resolveEnvironment-Bp-RuIhz.js";
5
+ import { j as useToggleContext } from "./resolveEnvironment-6rOnOa58.js";
6
6
  import { r as useLegalEntity, t as ROOT_LE } from "./useLegalEntity-QQXN6YOm.js";
7
7
  import { t as LegalEntityTypes } from "./legal-entity-type-0MfCGzUf.js";
8
8
  import { s as getOwnEntityAssociations } from "./entityAssociationUtil-CLBR9osP.js";
@@ -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] = "e5ca05ec-1568-4096-8a7c-a1615168e3e4", e._sentryDebugIdIdentifier = "sentry-dbid-e5ca05ec-1568-4096-8a7c-a1615168e3e4");
3
+ n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "8394cc2e-8390-44bb-9ee9-118d7d3a2125", e._sentryDebugIdIdentifier = "sentry-dbid-8394cc2e-8390-44bb-9ee9-118d7d3a2125");
4
4
  } catch (e) {}
5
5
  import { r as useLegalEntity, t as ROOT_LE } from "./useLegalEntity-QQXN6YOm.js";
6
6
  import { t as LegalEntityTypes } from "./legal-entity-type-0MfCGzUf.js";
@@ -1,12 +1,12 @@
1
1
  try {
2
2
  let e = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : {}, n = new e.Error().stack;
3
- n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "15e327d0-d4ca-4367-8352-1a5711131bd9", e._sentryDebugIdIdentifier = "sentry-dbid-15e327d0-d4ca-4367-8352-1a5711131bd9");
3
+ n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "43d633da-ecc8-4a41-88ee-2a5d08f649a4", e._sentryDebugIdIdentifier = "sentry-dbid-43d633da-ecc8-4a41-88ee-2a5d08f649a4");
4
4
  } catch (e) {}
5
5
  import { r as useTranslation } from "./translation-BOm4lmPx.js";
6
6
  import { t as Typography } from "./Typography-CAc_f5Iq.js";
7
- import { t as Button } from "./Button-oqvTDztg.js";
8
- import { i as useAnalyticsContext, t as Modal } from "./Modal-By_wpf9o.js";
9
- import { t as useId } from "./useId-DqpXTon5.js";
7
+ import { t as Button } from "./Button-DfRmINzF.js";
8
+ import { i as useAnalyticsContext, t as Modal } from "./Modal-5uXk2vE6.js";
9
+ import { t as useId } from "./useId-CcjYxxnm.js";
10
10
  import { useEffect, useState } from "preact/hooks";
11
11
  import cx from "classnames";
12
12
  import { jsx, jsxs } from "preact/jsx-runtime";
@@ -1,16 +1,14 @@
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] = "60a26fb1-eb24-4b4f-8cf2-5688d792d528", e._sentryDebugIdIdentifier = "sentry-dbid-60a26fb1-eb24-4b4f-8cf2-5688d792d528");
3
+ n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "2cd792da-8532-4255-905d-d9ce3804b664", e._sentryDebugIdIdentifier = "sentry-dbid-2cd792da-8532-4255-905d-d9ce3804b664");
4
4
  } catch (e) {}
5
5
  import { t as LegalEntityTypes } from "./legal-entity-type-0MfCGzUf.js";
6
6
  import { t as getLegalEntityCountry } from "./getLegalEntityCountry-CNE5uei8.js";
7
7
  import { t as CountryCodes } from "./country-code-CJk2hdPu.js";
8
8
  import { t as getCapabilities } from "./processCapabilities-BfskhjUw.js";
9
9
  import { d as hasOwnEntityAssociationOfType } from "./entityAssociationUtil-CLBR9osP.js";
10
- import { H as CompanyTypesValues } from "./bafinUtils-F8i4raV6.js";
11
- import { t as allowIndividualWithoutSoleProp } from "./accountHolderUtils-BnH2f3aW.js";
12
- import { r as SOLE_PROP_COUNTRIES } from "./Individual.rules-4BHmKpNa.js";
13
- import { t as ALLOWED_UNINCORPORATED_PARTNERSHIP_COUNTRIES } from "./legalArrangementUtils-skU_cq9L.js";
10
+ import { t as allowIndividualWithoutSoleProp } from "./accountHolderUtils-Dt7JmWab.js";
11
+ import { r as SOLE_PROP_COUNTRIES, t as ALLOWED_UNINCORPORATED_PARTNERSHIP_COUNTRIES } from "./legalArrangementUtils-xvCxpgzJ.js";
14
12
  //#region src/components/Shared/forms/BusinessTypeSelection/utils.ts
15
13
  var TRUST_COUNTRIES = [CountryCodes.Australia, CountryCodes.NewZealand];
16
14
  var BUSINESS_BANK_ACCOUNT_COUNTRIES = [
@@ -154,27 +152,20 @@ var useSelectionOptions = (legalEntityResponse) => {
154
152
  legalArrangementOptions: getLegalArrangementOptions(country)
155
153
  };
156
154
  };
157
- var mapLegalArrangementOptionToCompanyTypesValue = (legalArrangement) => {
158
- switch (legalArrangement) {
159
- case "partnershipIncorporated": return CompanyTypesValues.INCORPORATED_PARTNERSHIP;
160
- case "associationIncorporated": return CompanyTypesValues.INCORPORATED_ASSOCIATION;
161
- default: return;
162
- }
163
- };
164
155
  var determineOrganizationTypeToUpdate = (targetLegalArrangement, currentCompanyTypeValue) => {
165
- if (targetLegalArrangement === "aTrust") return;
156
+ if (targetLegalArrangement === "aTrust" || targetLegalArrangement === "partnershipUnincorporated") return;
166
157
  if (!targetLegalArrangement) {
167
- if (currentCompanyTypeValue === CompanyTypesValues.INCORPORATED_ASSOCIATION || currentCompanyTypeValue === CompanyTypesValues.INCORPORATED_PARTNERSHIP) return CompanyTypesValues.PRIVATE_COMPANY;
158
+ if (currentCompanyTypeValue === "associationIncorporated" || currentCompanyTypeValue === "partnershipIncorporated") return "privateCompany";
168
159
  }
169
- return mapLegalArrangementOptionToCompanyTypesValue(targetLegalArrangement);
160
+ return targetLegalArrangement;
170
161
  };
171
162
  var getDefaultLegalArrangementOrSuborganizationType = (legalEntityResponse, accountHolder) => {
172
163
  const entityAssociations = legalEntityResponse?.entityAssociations;
173
164
  const suborganizationType = legalEntityResponse?.organization?.type;
174
165
  if (hasOwnEntityAssociationOfType(LegalEntityTypes.TRUST, entityAssociations, legalEntityResponse?.id) || accountHolder === "aTrust") return "aTrust";
175
166
  if (hasOwnEntityAssociationOfType(LegalEntityTypes.UNINCORPORATED_PARTNERSHIP, entityAssociations, legalEntityResponse?.id) || accountHolder === "anUnincorporatedPartnership") return "partnershipUnincorporated";
176
- if (suborganizationType === CompanyTypesValues.INCORPORATED_PARTNERSHIP) return "partnershipIncorporated";
177
- if (suborganizationType === CompanyTypesValues.INCORPORATED_ASSOCIATION) return "associationIncorporated";
167
+ if (suborganizationType === "partnershipIncorporated") return "partnershipIncorporated";
168
+ if (suborganizationType === "associationIncorporated") return "associationIncorporated";
178
169
  };
179
170
  var getTargetLegalEntityType = (businessType, legalArrangement, trusteeType, currentLegalEntityType) => {
180
171
  const trustOrUnincorporatedPartnership = legalArrangement === "aTrust" || legalArrangement === "partnershipUnincorporated";
@@ -1,18 +1,18 @@
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] = "0841c7d6-b694-415c-a12c-ce84953aaaed", e._sentryDebugIdIdentifier = "sentry-dbid-0841c7d6-b694-415c-a12c-ce84953aaaed");
3
+ n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "8a57228d-deaf-492e-bfaa-2796a8a4a5ac", e._sentryDebugIdIdentifier = "sentry-dbid-8a57228d-deaf-492e-bfaa-2796a8a4a5ac");
4
4
  } catch (e) {}
5
5
  import { r as useTranslation } from "./translation-BOm4lmPx.js";
6
- import { j as useToggleContext, nt as isEmpty } from "./resolveEnvironment-Bp-RuIhz.js";
6
+ import { j as useToggleContext, nt as isEmpty } from "./resolveEnvironment-6rOnOa58.js";
7
7
  import { t as LegalEntityTypes } from "./legal-entity-type-0MfCGzUf.js";
8
8
  import { s as keysOf } from "./genUtils-Ce61IJs8.js";
9
9
  import { t as CountryCodes } from "./country-code-CJk2hdPu.js";
10
10
  import { t as TaskTypes } from "./taskTypes-3vSkMBDm.js";
11
- import { r as KEYBOARD_KEYS } from "./Modal-By_wpf9o.js";
12
- import { m as resolveFieldMetadata, p as convertFullToHalf } from "./form-rules-BhIs9ilj.js";
13
- import { B as toFullWidth, H as CompanyTypesValues, V as isJapanLocalizationEnabled, k as REGISTRATION_NUMBER_EXEMPTION_RULES, v as COUNTRIES_REQUIRING_FINANCIAL_INFORMATION } from "./bafinUtils-F8i4raV6.js";
14
- import { i as validateJaKanaLegalCompanyName, r as validateJaHaniLegalCompanyName, u as CountryField } from "./RadioGroup-e6Ty_ggj.js";
15
- import { a as defaultFieldMetadata, i as defaultFieldConfigV4, o as defaultFieldMetadataV4, r as defaultFieldConfig, s as getLegalCompanyNameGuidanceText, t as LEGAL_COMPANY_NAME_FIELD } from "./LegalCompanyNameField-Dl60xD84.js";
11
+ import { r as KEYBOARD_KEYS } from "./Modal-5uXk2vE6.js";
12
+ import { m as resolveFieldMetadata, p as convertFullToHalf } from "./form-rules-yTwukXew.js";
13
+ import { i as validateJaKanaLegalCompanyName, r as validateJaHaniLegalCompanyName, u as CountryField } from "./RadioGroup-BcRkK03K.js";
14
+ import { a as defaultFieldMetadata, i as defaultFieldConfigV4, o as defaultFieldMetadataV4, r as defaultFieldConfig, s as getLegalCompanyNameGuidanceText, t as LEGAL_COMPANY_NAME_FIELD } from "./LegalCompanyNameField-BFm2LIw2.js";
15
+ import { H as toFullWidth, U as isJapanLocalizationEnabled, k as REGISTRATION_NUMBER_EXEMPTION_RULES, v as COUNTRIES_REQUIRING_FINANCIAL_INFORMATION } from "./bafinUtils-B8teCz7U.js";
16
16
  import { useEffect } from "preact/hooks";
17
17
  import { jsx } from "preact/jsx-runtime";
18
18
  var localizedLegalCompanyNameFieldConfig = {
@@ -138,7 +138,7 @@ var getCountryOfGoverningLaw = (isCountryOfGoverningLawEnabled, basicData) => {
138
138
  */
139
139
  var isRegistrationExemptionAllowed = (country) => country in REGISTRATION_NUMBER_EXEMPTION_RULES;
140
140
  var isRegistrationNumberAbsentStateV4Scenario = (country, entityType) => {
141
- return country === CountryCodes.Australia && (entityType === CompanyTypesValues.GOVERNMENTAL_ORGANIZATION || entityType === CompanyTypesValues.INCORPORATED_PARTNERSHIP) || country === CountryCodes.NewZealand;
141
+ return country === CountryCodes.Australia && (entityType === "governmentalOrganization" || entityType === "partnershipIncorporated") || country === CountryCodes.NewZealand;
142
142
  };
143
143
  //#endregion
144
144
  //#region src/components/Shared/fields/CountryOfGoverningLawField/validate.ts
@@ -1,16 +1,16 @@
1
1
  try {
2
2
  let e = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : {}, n = new e.Error().stack;
3
- n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "093be1ff-55c0-4852-8b38-06369f12ff87", e._sentryDebugIdIdentifier = "sentry-dbid-093be1ff-55c0-4852-8b38-06369f12ff87");
3
+ n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "cdb31d30-1928-417a-b283-5941990916cb", e._sentryDebugIdIdentifier = "sentry-dbid-cdb31d30-1928-417a-b283-5941990916cb");
4
4
  } catch (e) {}
5
5
  import { r as useTranslation } from "./translation-BOm4lmPx.js";
6
6
  import { t as createLogger } from "./logger-Z8AeTE4x.js";
7
- import { t as Icon } from "./Icon-BblJeZYj.js";
7
+ import { t as Icon } from "./Icon-C3S5_kkS.js";
8
8
  import { t as Typography } from "./Typography-CAc_f5Iq.js";
9
9
  import { t as Loader } from "./Loader-BEpMlKm2.js";
10
- import { n as IconButton } from "./Button-oqvTDztg.js";
10
+ import { n as IconButton } from "./Button-DfRmINzF.js";
11
11
  import { n as httpGet, r as httpPost, t as httpDelete } from "./http-DsJtugN1.js";
12
- import { i as useAnalyticsContext } from "./Modal-By_wpf9o.js";
13
- import { t as getLocalizedIdDocumentTypeOptions } from "./utils-Br7Ah3uy.js";
12
+ import { t as CountryCodes } from "./country-code-CJk2hdPu.js";
13
+ import { i as useAnalyticsContext } from "./Modal-5uXk2vE6.js";
14
14
  import { useEffect } from "preact/hooks";
15
15
  import cx from "classnames";
16
16
  import { jsx, jsxs } from "preact/jsx-runtime";
@@ -55,6 +55,46 @@ var updateDocument = async (context, document, documentId, ownerId) => {
55
55
  var isExistingFile = (file) => "existing" in file && file.existing;
56
56
  var isNewlyUploadedFile = (file) => !isExistingFile(file);
57
57
  //#endregion
58
+ //#region src/components/Individual/forms/IdDocumentUpload/utils.ts
59
+ function getLocalizedIdDocumentTypeOptions(country) {
60
+ switch (country) {
61
+ case CountryCodes.Japan: return [
62
+ {
63
+ id: "driversLicense",
64
+ name: "driversLicense",
65
+ hasBackPage: true
66
+ },
67
+ {
68
+ id: "passport",
69
+ name: "passport",
70
+ hasBackPage: false
71
+ },
72
+ {
73
+ id: "identityCard",
74
+ name: "identityCard__JP",
75
+ hasBackPage: true
76
+ }
77
+ ];
78
+ default: return [
79
+ {
80
+ id: "driversLicense",
81
+ name: "driversLicense",
82
+ hasBackPage: true
83
+ },
84
+ {
85
+ id: "passport",
86
+ name: "passport",
87
+ hasBackPage: false
88
+ },
89
+ {
90
+ id: "identityCard",
91
+ name: "identityCard",
92
+ hasBackPage: true
93
+ }
94
+ ];
95
+ }
96
+ }
97
+ //#endregion
58
98
  //#region src/utils/api/documentUtils.ts
59
99
  var logger = createLogger();
60
100
  var documentStore = {};
@@ -386,4 +426,4 @@ var fileValidationRules = ({ allowedFileTypes, maxNumberOfFiles, maxSize, isOpti
386
426
  }
387
427
  ];
388
428
  //#endregion
389
- export { createDocumentRequest as a, getDocuments as c, mergeAttachments as d, mergeProofOfOwnershipAttachments as f, bytesToSize as i, getFileExtention as l, fileValidationRules as n, documentApiUtils as o, DropzoneFile as r, getDocument as s, defaultFileValidationOptions as t, getIdDocument as u };
429
+ export { createDocumentRequest as a, getDocuments as c, mergeAttachments as d, mergeProofOfOwnershipAttachments as f, bytesToSize as i, getFileExtention as l, fileValidationRules as n, documentApiUtils as o, getLocalizedIdDocumentTypeOptions as p, DropzoneFile as r, getDocument as s, defaultFileValidationOptions as t, getIdDocument as u };
@@ -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] = "4f028ec8-cb0a-4ab4-a41e-dff43e3f9df6", e._sentryDebugIdIdentifier = "sentry-dbid-4f028ec8-cb0a-4ab4-a41e-dff43e3f9df6");
4
4
  } catch (e) {}
5
- import { t as addressValidators } from "./validate-DzNLLQoR.js";
5
+ import { t as addressValidators } from "./validate-tS-cwVuY.js";
6
6
  import { t as capitalize } from "./getProps-DVqK7eRw.js";
7
7
  //#region src/components/EFP/tasks/BusinessFinancingDropin/validate.ts
8
8
  var validateLegalEntityIdentifier = (legalEntityIdentifier) => {
@@ -2,10 +2,10 @@ 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] = "48814dfa-39da-4f52-9aa4-30f812478fa0", e._sentryDebugIdIdentifier = "sentry-dbid-48814dfa-39da-4f52-9aa4-30f812478fa0");
4
4
  } catch (e) {}
5
- import { $ as hasRepeatedCharacters, H as NO_ALPHABET_REGEX, K as chomeAndBanchiValidator, Q as hasMaximumTwoRepeatedCharacters, R as ADDRESS_VALID_CHAR_REGEX, U as NO_ALPHABET_UNICODE_REGEX, et as hasText, it as isInvalidName, ot as isValidMinLength, st as matchesRegex, z as EMOJI_REGEX } from "./resolveEnvironment-Bp-RuIhz.js";
5
+ import { $ as hasRepeatedCharacters, H as NO_ALPHABET_REGEX, K as chomeAndBanchiValidator, Q as hasMaximumTwoRepeatedCharacters, R as ADDRESS_VALID_CHAR_REGEX, U as NO_ALPHABET_UNICODE_REGEX, et as hasText, it as isInvalidName, ot as isValidMinLength, st as matchesRegex, z as EMOJI_REGEX } from "./resolveEnvironment-6rOnOa58.js";
6
6
  import { t as createLogger } from "./logger-Z8AeTE4x.js";
7
7
  import { t as CountryCodes } from "./country-code-CJk2hdPu.js";
8
- import { r as countrySpecificFormatters } from "./InputDate-DMcomeFj.js";
8
+ import { r as countrySpecificFormatters } from "./InputDate-CncTgJYS.js";
9
9
  //#region src/utils/regex/postalCodePatterns.ts
10
10
  var createRegExpByDigits = (digits) => new RegExp(`^\\d{${digits}}$`);
11
11
  var postalCodePatterns = {
@@ -1,11 +1,11 @@
1
1
  try {
2
2
  let e = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : {}, n = new e.Error().stack;
3
- n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "de2ce97d-82f5-405c-835c-ded1259d3f49", e._sentryDebugIdIdentifier = "sentry-dbid-de2ce97d-82f5-405c-835c-ded1259d3f49");
3
+ n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "12d8d32e-37f7-4246-90e3-06be7e687d1c", e._sentryDebugIdIdentifier = "sentry-dbid-12d8d32e-37f7-4246-90e3-06be7e687d1c");
4
4
  } catch (e) {}
5
5
  import { r as useTranslation } from "./translation-BOm4lmPx.js";
6
6
  import { t as createLogger } from "./logger-Z8AeTE4x.js";
7
7
  import { t as Typography } from "./Typography-CAc_f5Iq.js";
8
- import { n as IconButton, t as Button } from "./Button-oqvTDztg.js";
8
+ import { n as IconButton, t as Button } from "./Button-DfRmINzF.js";
9
9
  import { r as httpPost, s as useApiContext } from "./http-DsJtugN1.js";
10
10
  import { a as objectsDeepEqual, c as valuesOf, s as keysOf } from "./genUtils-Ce61IJs8.js";
11
11
  import { t as localizeDateString } from "./localizeDateString-Dxlqr4rL.js";
@@ -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] = "fae48524-6bfc-48f8-be66-5851d92f7143", e._sentryDebugIdIdentifier = "sentry-dbid-fae48524-6bfc-48f8-be66-5851d92f7143");
3
+ n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "3a3bbdd6-a486-41a2-b077-0a3f1799970d", e._sentryDebugIdIdentifier = "sentry-dbid-3a3bbdd6-a486-41a2-b077-0a3f1799970d");
4
4
  } catch (e) {}
5
- import { i as getFieldNameFromPath } from "./ErrorPanel-jcVYNW8o.js";
5
+ import { i as getFieldNameFromPath } from "./ErrorPanel-B5suXapM.js";
6
6
  //#region src/utils/validationError.ts
7
7
  var API_VALIDATION_ERROR_CODE = "30_102";
8
8
  var ID_DOCUMENT_UPLOAD_ERROR_CODE = "30_105";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adyen/kyc-components",
3
- "version": "4.22.0-beta.1",
3
+ "version": "4.22.0-beta.2",
4
4
  "keywords": [
5
5
  "adyen",
6
6
  "adyen-for-platforms",
@@ -1,293 +0,0 @@
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] = "5d455b14-b927-4752-92bd-2e20db3fbfc5", e._sentryDebugIdIdentifier = "sentry-dbid-5d455b14-b927-4752-92bd-2e20db3fbfc5");
4
- } catch (e) {}
5
- import { t as getLegalEntityCountry } from "./getLegalEntityCountry-CNE5uei8.js";
6
- import { t as CountryCodes } from "./country-code-CJk2hdPu.js";
7
- import { t as TaskTypes } from "./taskTypes-3vSkMBDm.js";
8
- import { t as allowedCountriesForNominee } from "./entityAssociationUtil-CLBR9osP.js";
9
- import { t as DecisionMakerTypes } from "./decision-maker-type-NR4GFAeT.js";
10
- import { t as Scenarios } from "./get-scenarios-Bb-paHmJ.js";
11
- import { t as getAvailableDecisionMakerRoleTypes } from "./decisionMaker-M0Tm92JR.js";
12
- import { i as isLowRiskCountry } from "./country-DkgapJ4w.js";
13
- import { t as createFormRules } from "./form-rules-BhIs9ilj.js";
14
- import { V as isJapanLocalizationEnabled, n as isBafinSignatoryFlow } from "./bafinUtils-F8i4raV6.js";
15
- import { d as COUNTRIES_WITH_STATES_DATASET, i as getAddressSchemaForCountry } from "./StateField-BnyUQjAj.js";
16
- import { t as getLocalizedIdDocumentTypeOptions } from "./utils-Br7Ah3uy.js";
17
- //#region src/components/Individual/forms/Individual.rules.ts
18
- var REQUIRED = "REQUIRED";
19
- var OPTIONAL = "OPTIONAL";
20
- var ID_NUMBER_EXEMPT_COUNTRIES = [
21
- CountryCodes.Canada,
22
- CountryCodes.PuertoRico,
23
- CountryCodes.UnitedStates
24
- ];
25
- var COUNTRIES_WHICH_USE_MULTIPLE_IDENTITY_TYPES = [
26
- CountryCodes.HongKong,
27
- CountryCodes.Australia,
28
- CountryCodes.NewZealand
29
- ];
30
- var ID_NUMBER_REQUIRED_FOR_DIRECTOR_COUNTRIES = [CountryCodes.Singapore, CountryCodes.UnitedStates];
31
- var NATIONALITY_REQUIRED_FOR_COUNTRIES = [CountryCodes.Singapore, CountryCodes.HongKong];
32
- var JOB_TITLE_REQUIRED_FOR_COUNTRIES = [CountryCodes.NewZealand];
33
- var ISSUER_REQUIRED_FOR_COUNTRIES = [CountryCodes.Australia];
34
- var EXPIRY_DATE_REQUIRED_FOR_COUNTRIES = [CountryCodes.NewZealand];
35
- var LICENSE_CARD_NUMBER_REQUIRED_FOR_COUNTRIES = [CountryCodes.NewZealand, CountryCodes.Australia];
36
- var TAX_ID_REQUIRED_COUNTRIES = [
37
- CountryCodes.Austria,
38
- CountryCodes.Belgium,
39
- CountryCodes.Croatia,
40
- CountryCodes.Cyprus,
41
- CountryCodes.Estonia,
42
- CountryCodes.Finland,
43
- CountryCodes.France,
44
- CountryCodes.Germany,
45
- CountryCodes.Greece,
46
- CountryCodes.Ireland,
47
- CountryCodes.Latvia,
48
- CountryCodes.Lithuania,
49
- CountryCodes.Luxembourg,
50
- CountryCodes.Malta,
51
- CountryCodes.Netherlands,
52
- CountryCodes.Portugal,
53
- CountryCodes.Slovakia,
54
- CountryCodes.Slovenia,
55
- CountryCodes.UnitedKingdom
56
- ];
57
- var SOLE_PROP_COUNTRIES = [
58
- CountryCodes.Austria,
59
- CountryCodes.Australia,
60
- CountryCodes.Belgium,
61
- CountryCodes.Bulgaria,
62
- CountryCodes.Canada,
63
- CountryCodes.Croatia,
64
- CountryCodes.Cyprus,
65
- CountryCodes.CzechRepublic,
66
- CountryCodes.Denmark,
67
- CountryCodes.Estonia,
68
- CountryCodes.Finland,
69
- CountryCodes.France,
70
- CountryCodes.Germany,
71
- CountryCodes.Gibraltar,
72
- CountryCodes.Greece,
73
- CountryCodes.Guernsey,
74
- CountryCodes.HongKong,
75
- CountryCodes.Hungary,
76
- CountryCodes.Ireland,
77
- CountryCodes.IsleOfMan,
78
- CountryCodes.Italy,
79
- CountryCodes.Japan,
80
- CountryCodes.Jersey,
81
- CountryCodes.Latvia,
82
- CountryCodes.Liechtenstein,
83
- CountryCodes.Lithuania,
84
- CountryCodes.Luxembourg,
85
- CountryCodes.Malta,
86
- CountryCodes.Monaco,
87
- CountryCodes.Netherlands,
88
- CountryCodes.NewZealand,
89
- CountryCodes.Norway,
90
- CountryCodes.Poland,
91
- CountryCodes.Portugal,
92
- CountryCodes.PuertoRico,
93
- CountryCodes.Romania,
94
- CountryCodes.Singapore,
95
- CountryCodes.Slovakia,
96
- CountryCodes.Slovenia,
97
- CountryCodes.Spain,
98
- CountryCodes.Sweden,
99
- CountryCodes.Switzerland,
100
- CountryCodes.UnitedKingdom,
101
- CountryCodes.UnitedStates
102
- ];
103
- var DECISION_MAKER_TYPES_WITH_JOBTITLE = [DecisionMakerTypes.SIGNATORY, DecisionMakerTypes.CONTROLLING_PERSON];
104
- var ID_MISSING_DATA_ERROR_CODE = "2_8071";
105
- var REMEDIATION_CODES_UPLOAD_ID = [
106
- "1_301",
107
- "1_302",
108
- "1_303"
109
- ];
110
- var individualRules = ({ matchingScenario, data, country, taskType, isFeatureEnabled = () => false, rootLegalEntity, problems }) => createFormRules({
111
- countryUsesTaxId: () => {
112
- if (matchingScenario?.includes(Scenarios.L_TAXINFO) && TAX_ID_REQUIRED_COUNTRIES.includes(country)) return "REQUIRED";
113
- },
114
- isDirectorIdNumberRequiredForCountry: () => {
115
- if (!data.basicDetails?.role) return REQUIRED;
116
- if (data.basicDetails?.role?.some((role) => role !== DecisionMakerTypes.DIRECTOR)) return REQUIRED;
117
- if (ID_NUMBER_REQUIRED_FOR_DIRECTOR_COUNTRIES.includes(country) && data.basicDetails?.role?.some((role) => role === DecisionMakerTypes.DIRECTOR)) return REQUIRED;
118
- },
119
- idNumberRules: () => {
120
- if (data.additionalPersonalDetails?.idNumberExempt) return OPTIONAL;
121
- if (!data.basicDetails?.role) return REQUIRED;
122
- if (country === CountryCodes.UnitedStates && data.basicDetails?.role?.every((role) => role === DecisionMakerTypes.SIGNATORY)) return;
123
- if (data.basicDetails?.role?.some((role) => role !== DecisionMakerTypes.DIRECTOR)) return REQUIRED;
124
- if (ID_NUMBER_REQUIRED_FOR_DIRECTOR_COUNTRIES.includes(country) && data.basicDetails?.role?.some((role) => role === DecisionMakerTypes.DIRECTOR)) return REQUIRED;
125
- },
126
- requiredIfDecisionMakerTask: () => {
127
- if (taskType === TaskTypes.DECISION_MAKER || taskType === TaskTypes.TRUST_MEMBER_COMPANY_OWNER || taskType === TaskTypes.UNINCORPORATED_PARTNERSHIP_MEMBER_COMPANY_OWNER) return REQUIRED;
128
- },
129
- idNumberExemptIfApplicableCountry: () => {
130
- if (matchingScenario?.includes(Scenarios.L_TAXINFO)) return;
131
- if (country === CountryCodes.UnitedStates && data.basicDetails?.role?.every((role) => role === DecisionMakerTypes.SIGNATORY)) return;
132
- if (ID_NUMBER_EXEMPT_COUNTRIES.includes(country)) return REQUIRED;
133
- },
134
- hasChosenIdType: () => {
135
- return data?.manualIdUpload?.idDocumentType ? REQUIRED : void 0;
136
- },
137
- backPageIfRequiredForIdType: () => {
138
- return getLocalizedIdDocumentTypeOptions(country).find(({ id }) => id === data.manualIdUpload?.idDocumentType)?.hasBackPage ? REQUIRED : void 0;
139
- },
140
- isProofOfResidencyRequired: () => {
141
- if (isBafinSignatoryFlow({
142
- taskType,
143
- data,
144
- scenarios: matchingScenario
145
- })) return;
146
- if (data.proofOfResidency?.proofOfResidency?.length) return REQUIRED;
147
- if (!(data?.idVerificationMethod?.idVerificationMethod === "instantVerification")) return;
148
- const documentCountry = data?.idVerificationMethod?.idDocument?.documentCountry;
149
- const residenceCountry = data?.additionalPersonalDetails?.country ?? country;
150
- if (!documentCountry || !residenceCountry) return;
151
- const countriesMismatch = documentCountry !== residenceCountry;
152
- const isEeaLowRiskException = isLowRiskCountry(documentCountry) && isLowRiskCountry(residenceCountry);
153
- if (countriesMismatch && !isEeaLowRiskException) return REQUIRED;
154
- },
155
- isProofOfNationalIdRequired: () => {
156
- if (isBafinSignatoryFlow({
157
- taskType,
158
- data,
159
- scenarios: matchingScenario
160
- })) return;
161
- if (data.proofOfNationalId?.proofOfNationalId?.length) return REQUIRED;
162
- },
163
- isIdVerificationMethodRequired: () => {
164
- if (isBafinSignatoryFlow({
165
- taskType,
166
- data,
167
- scenarios: matchingScenario
168
- })) return;
169
- return REQUIRED;
170
- },
171
- isVerifyByInviteSelected: () => {
172
- return taskType === TaskTypes.DECISION_MAKER && isFeatureEnabled("EnableVerifyByInvite") && data?.idVerificationMethod?.idVerificationMethod === "verifyByInvite" ? REQUIRED : void 0;
173
- },
174
- contactsIfRequiredForRole: () => {
175
- if (taskType === TaskTypes.DECISION_MAKER) {
176
- if (data.basicDetails?.role?.includes(DecisionMakerTypes.SIGNATORY)) return REQUIRED;
177
- return;
178
- }
179
- return REQUIRED;
180
- },
181
- requiredIfPhoneScenarioDisabled: () => !isFeatureEnabled("EnablePhoneFieldScenario") ? REQUIRED : void 0,
182
- jobTitleIfRequiredForRole: () => {
183
- if (taskType !== TaskTypes.DECISION_MAKER) return;
184
- if (data.basicDetails?.role?.some((role) => DECISION_MAKER_TYPES_WITH_JOBTITLE.includes(role)) || JOB_TITLE_REQUIRED_FOR_COUNTRIES.includes(country)) return REQUIRED;
185
- },
186
- isPlaceOfBirthRequired: () => {
187
- if (isBafinSignatoryFlow({
188
- taskType,
189
- data,
190
- scenarios: matchingScenario
191
- })) return REQUIRED;
192
- },
193
- nationalityIfRequiredForRole: () => {
194
- if (isBafinSignatoryFlow({
195
- taskType,
196
- data,
197
- scenarios: matchingScenario
198
- })) return REQUIRED;
199
- const enableNationalitySGHK = isFeatureEnabled("EnableNationalitySGHK");
200
- const rootLegalEntityCountry = rootLegalEntity?.organization?.registeredAddress.country;
201
- if (enableNationalitySGHK && rootLegalEntityCountry && NATIONALITY_REQUIRED_FOR_COUNTRIES.includes(rootLegalEntityCountry)) return REQUIRED;
202
- if (NATIONALITY_REQUIRED_FOR_COUNTRIES.includes(country) || data?.additionalPersonalDetails?.nationality) return REQUIRED;
203
- },
204
- requiredIfCountryUsesMultipleTypesOfIdentity: () => {
205
- if (COUNTRIES_WHICH_USE_MULTIPLE_IDENTITY_TYPES.includes(country)) return REQUIRED;
206
- },
207
- licenseCardNumberRules: () => {
208
- if (data.additionalPersonalDetails?.typeOfIdentity === "driversLicense" && LICENSE_CARD_NUMBER_REQUIRED_FOR_COUNTRIES.includes(country)) return REQUIRED;
209
- },
210
- issuerStateRequired: () => {
211
- if (data.additionalPersonalDetails?.typeOfIdentity === "driversLicense" && ISSUER_REQUIRED_FOR_COUNTRIES.includes(country)) return REQUIRED;
212
- },
213
- expiryDateRequired: () => {
214
- if (data.additionalPersonalDetails?.typeOfIdentity === "passport" && EXPIRY_DATE_REQUIRED_FOR_COUNTRIES.includes(country)) return REQUIRED;
215
- },
216
- legalRepresentativeRelationshipRequired: () => taskType === TaskTypes.LEGAL_REPRESENTATIVE_DETAILS ? REQUIRED : void 0,
217
- isProofOfRelationshipRequired: () => void 0,
218
- addressIfRequiredForCountry: () => {
219
- return getAddressSchemaForCountry(data?.additionalPersonalDetails?.country).includes("street") ? "REQUIRED" : void 0;
220
- },
221
- otherAddressInfoIfRequiredForCountry: () => {
222
- if (isJapanLocalizationEnabled(isFeatureEnabled, country)) return "REQUIRED";
223
- return getAddressSchemaForCountry(data?.additionalPersonalDetails?.country).includes("street2") ? "OPTIONAL" : void 0;
224
- },
225
- postalCodeIfRequiredForCountry: () => {
226
- return getAddressSchemaForCountry(data?.additionalPersonalDetails?.country).includes("postalCode") ? "REQUIRED" : void 0;
227
- },
228
- cityIfRequiredForCountry: () => {
229
- return getAddressSchemaForCountry(data?.additionalPersonalDetails?.country).includes("city") ? "REQUIRED" : void 0;
230
- },
231
- stateOrProvinceIfRequiredForCountry: () => {
232
- return getAddressSchemaForCountry(data?.additionalPersonalDetails?.country).includes("stateOrProvince") && COUNTRIES_WITH_STATES_DATASET.includes(data?.additionalPersonalDetails?.country ?? country) ? "REQUIRED" : void 0;
233
- },
234
- nomineeDirectorRequiredForCountry: () => {
235
- if (allowedCountriesForNominee.includes(data?.additionalPersonalDetails?.country ?? country) && data?.basicDetails?.role?.includes(DecisionMakerTypes.DIRECTOR)) return "REQUIRED";
236
- },
237
- nomineeShareHolderRequiredForCountry: () => {
238
- if (allowedCountriesForNominee.includes(data?.additionalPersonalDetails?.country ?? country) && data?.basicDetails?.role?.includes(DecisionMakerTypes.OWNER)) return "REQUIRED";
239
- },
240
- isUsingInstantVerificationOrHasExistingDocument: () => {
241
- if (isBafinSignatoryFlow({
242
- taskType,
243
- data,
244
- scenarios: matchingScenario
245
- })) return;
246
- const isUsingInstantVerification = data?.idVerificationMethod?.idVerificationMethod === "instantVerification";
247
- const existingDocument = data?.idVerificationMethod?.idDocument;
248
- return isUsingInstantVerification || existingDocument ? REQUIRED : void 0;
249
- },
250
- isManualIdFlow: () => {
251
- if (isBafinSignatoryFlow({
252
- taskType,
253
- data,
254
- scenarios: matchingScenario
255
- })) return;
256
- return data?.idVerificationMethod?.idVerificationMethod === "manualVerification" ? "REQUIRED" : void 0;
257
- },
258
- isManualIdFlowAndNotProvidingIdNumber: () => {
259
- if (isBafinSignatoryFlow({
260
- taskType,
261
- data,
262
- scenarios: matchingScenario
263
- })) return;
264
- const hasMissingId = problems?.missingData?.some((error) => error.code === ID_MISSING_DATA_ERROR_CODE);
265
- const isManualFlow = data?.idVerificationMethod?.idVerificationMethod === "manualVerification";
266
- const idNumberExempt = data?.additionalPersonalDetails?.idNumberExempt;
267
- const hasIdRemediationAction = Object.keys(problems?.remediationActions ?? {}).some((code) => REMEDIATION_CODES_UPLOAD_ID.includes(code));
268
- return isManualFlow && (idNumberExempt || hasMissingId || hasIdRemediationAction) ? "REQUIRED" : void 0;
269
- },
270
- isManualIdFlowAndHasMissingData: () => {
271
- if (isBafinSignatoryFlow({
272
- taskType,
273
- data,
274
- scenarios: matchingScenario
275
- })) return;
276
- const isManualFlow = data?.idVerificationMethod?.idVerificationMethod === "manualVerification";
277
- if (matchingScenario?.includes(Scenarios.L1_IDDOC)) return isManualFlow ? "REQUIRED" : void 0;
278
- const hasMissingId = problems?.missingData?.some((error) => error.code === ID_MISSING_DATA_ERROR_CODE);
279
- const hasIdRemediationAction = Object.keys(problems?.remediationActions ?? {}).some((code) => REMEDIATION_CODES_UPLOAD_ID.includes(code));
280
- return isManualFlow && (hasMissingId || hasIdRemediationAction) ? "REQUIRED" : void 0;
281
- },
282
- idVerificationRequired: () => {
283
- return REQUIRED;
284
- },
285
- isDirectorRequiredForCountry: () => {
286
- if (getAvailableDecisionMakerRoleTypes(rootLegalEntity ? getLegalEntityCountry(rootLegalEntity) : country, matchingScenario).some((maker) => maker.roleType === DecisionMakerTypes.DIRECTOR)) return "REQUIRED";
287
- },
288
- japanSpecificField: () => {
289
- if (isJapanLocalizationEnabled(isFeatureEnabled, taskType === TaskTypes.DECISION_MAKER && rootLegalEntity?.organization?.registeredAddress.country || country)) return "REQUIRED";
290
- }
291
- });
292
- //#endregion
293
- export { individualRules as i, DECISION_MAKER_TYPES_WITH_JOBTITLE as n, SOLE_PROP_COUNTRIES as r, COUNTRIES_WHICH_USE_MULTIPLE_IDENTITY_TYPES as t };
@@ -1,46 +0,0 @@
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] = "0e38ebfc-e040-479a-9f3a-9f5f95b09328", e._sentryDebugIdIdentifier = "sentry-dbid-0e38ebfc-e040-479a-9f3a-9f5f95b09328");
4
- } catch (e) {}
5
- import { t as TaskTypes } from "./taskTypes-3vSkMBDm.js";
6
- import { i as getDirectEntityAssociations } from "./entityAssociationUtil-CLBR9osP.js";
7
- import { t as DecisionMakerTypes } from "./decision-maker-type-NR4GFAeT.js";
8
- import { r as getDecisionMakerRequirements } from "./decisionMaker-M0Tm92JR.js";
9
- //#region src/utils/decisionMakerRoles.ts
10
- var getOwnDecisionMakers = (rootLegalEntity) => {
11
- if (!rootLegalEntity?.entityAssociations) return [];
12
- return rootLegalEntity.entityAssociations.filter((entityAssociation) => Object.values(DecisionMakerTypes).includes(entityAssociation.type) && entityAssociation.associatorId === rootLegalEntity.id);
13
- };
14
- var getDecisionMakers = (rootLegalEntity, companyLegalEntityId) => getDirectEntityAssociations(rootLegalEntity, companyLegalEntityId).filter((association) => Object.values(DecisionMakerTypes).includes(association.type));
15
- var getOwnSignatories = (rootLegalEntity) => getOwnDecisionMakers(rootLegalEntity).filter((decisionMaker) => decisionMaker.type === DecisionMakerTypes.SIGNATORY);
16
- var getOwnDecisionMakersLegalEntityIds = (rootLegalEntity) => getOwnDecisionMakers(rootLegalEntity).map((ea) => ea.legalEntityId).filter((id) => id !== void 0);
17
- var getDecisionMakerCount = (rootLegalEntity) => {
18
- return getOwnDecisionMakers(rootLegalEntity).reduce((decisionMakerCount, decisionMaker) => {
19
- decisionMakerCount[decisionMaker.type] = (decisionMakerCount[decisionMaker.type] ?? 0) + 1;
20
- return decisionMakerCount;
21
- }, {});
22
- };
23
- var getAllowedDecisionMakerRoles = (rootLegalEntity, taskType, scenarios) => {
24
- if (taskType === TaskTypes.TRUST_MEMBER_COMPANY_OWNER || taskType === TaskTypes.UNINCORPORATED_PARTNERSHIP_MEMBER_COMPANY_OWNER) return [DecisionMakerTypes.OWNER];
25
- const existingDecisionMakerCount = getDecisionMakerCount(rootLegalEntity);
26
- const registeredCountry = rootLegalEntity?.organization?.registeredAddress?.country;
27
- const allowedRoles = getDecisionMakerRequirements(registeredCountry, scenarios).reduce((acc, requirements) => {
28
- const { roleTypes, max } = requirements;
29
- if (roleTypes.length === 1) {
30
- const role = roleTypes[0];
31
- if ((existingDecisionMakerCount?.[role] ?? 0) < max) acc.push(role);
32
- }
33
- return acc;
34
- }, []);
35
- return [...new Set(allowedRoles)];
36
- };
37
- var hasMinRequiredDecisionMakerCount = (rootLegalEntity) => {
38
- const existingDecisionMakerCount = getDecisionMakerCount(rootLegalEntity);
39
- const registeredCountry = rootLegalEntity?.organization?.registeredAddress?.country;
40
- return getDecisionMakerRequirements(registeredCountry).every((requirements) => {
41
- const { roleTypes, min } = requirements;
42
- return roleTypes.some((role) => min ? existingDecisionMakerCount?.[role] ?? min <= 0 : true);
43
- });
44
- };
45
- //#endregion
46
- export { getOwnSignatories as a, getOwnDecisionMakersLegalEntityIds as i, getDecisionMakers as n, hasMinRequiredDecisionMakerCount as o, getOwnDecisionMakers as r, getAllowedDecisionMakerRoles as t };
@@ -1,14 +0,0 @@
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] = "be4ec6c4-c26e-490d-a7f5-cc6cf87bf0af", e._sentryDebugIdIdentifier = "sentry-dbid-be4ec6c4-c26e-490d-a7f5-cc6cf87bf0af");
4
- } catch (e) {}
5
- import { s as keysOf } from "./genUtils-Ce61IJs8.js";
6
- //#region src/utils/isEmpty.ts
7
- var isEmpty = (obj, ignoreEmptyProperties = true) => {
8
- if (obj === null || obj === void 0) return true;
9
- if (Array.isArray(obj)) return obj.length === 0;
10
- if (typeof obj !== "object") return false;
11
- return keysOf(obj).every((key) => !Object.hasOwn(obj, key) || ignoreEmptyProperties && isEmpty(obj[key], true));
12
- };
13
- //#endregion
14
- export { isEmpty as t };