@adyen/kyc-components 4.15.0-beta.1 → 4.16.0-beta.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (208) hide show
  1. package/dist/{AcceptTermsOfServiceComponent-D9RkOGLa.js → AcceptTermsOfServiceComponent-sWwPrHpD.js} +56 -56
  2. package/dist/{AccountSetupRejected-DXrxeaTA.js → AccountSetupRejected-h8i4srXf.js} +1 -1
  3. package/dist/{AdaptiveWorkflow-DkyHp3I-.js → AdaptiveWorkflow-CVnJ9NZw.js} +17 -19
  4. package/dist/{AdaptiveWorkflowComponent-C0s3XA9b.js → AdaptiveWorkflowComponent-DlLfVvPW.js} +28 -28
  5. package/dist/{Address-ByNnIfrX.js → Address-BAE2QQ-5.js} +5 -5
  6. package/dist/{BusinessFinancingDropin-BI9qbTfa.js → BusinessFinancingDropin-D2MqJxaF.js} +24 -24
  7. package/dist/{BusinessFinancingPage-rrQUrZBL.js → BusinessFinancingPage-DpyatG4F.js} +28 -28
  8. package/dist/{BusinessTypeSelectionPage-DVlhdBOT.js → BusinessTypeSelectionPage-bkRgRUiw.js} +6 -6
  9. package/dist/{CompanyRegistrationNumberTypeSelector-B72MvtCt.js → CompanyRegistrationNumberTypeSelector-CFqyuzoH.js} +14 -19
  10. package/dist/{ContactDetails-9JGt7Lx0.js → ContactDetails-Cqos4P-U.js} +3 -3
  11. package/dist/{ContextGuidance-CaskjnLp.js → ContextGuidance-DLErBW62.js} +1 -1
  12. package/dist/{CountryField-D3T5pszb.js → CountryField-DSI1tYm2.js} +2 -2
  13. package/dist/{Currency-C9smd9hj.js → Currency-Bfjuo_qU.js} +2 -2
  14. package/dist/{CustomerSupport-CxnPz_MZ.js → CustomerSupport-ry1TO7UY.js} +10 -10
  15. package/dist/{DebugModal-CmyRTcuw.js → DebugModal-BCYwesU5.js} +3 -3
  16. package/dist/{DecisionMakerDetails-Cur05tOk.js → DecisionMakerDetails-BnlhqSiD.js} +3 -3
  17. package/dist/{DecisionMakerDetailsPage-Dqkcvgs5.js → DecisionMakerDetailsPage-DzXL7rI0.js} +4 -4
  18. package/dist/{DecisionMakers-oSWUwKsE.js → DecisionMakers-DKaoWAJE.js} +8 -8
  19. package/dist/{Dropzone-B5f298Ah.js → Dropzone-JmVSKeOB.js} +2 -2
  20. package/dist/{EntityAssociation-Bfb_h3mX.js → EntityAssociation-DMre5SqE.js} +1 -1
  21. package/dist/{ErrorPanel-CbTDpmpi.js → ErrorPanel-B5GuGh_o.js} +2 -2
  22. package/dist/{IndividualDropin-DypupM2F.js → IndividualDropin-DHDR28cv.js} +32 -32
  23. package/dist/{Introduction-CvXA6-RL.js → Introduction-BiWv1ZBC.js} +2 -2
  24. package/dist/{InvitedDecisionMakerComponent-D5gat3zM.js → InvitedDecisionMakerComponent-CQ8wt0IK.js} +29 -29
  25. package/dist/{JpAddress-C38zRvZE.js → JpAddress-BtLxuxr9.js} +4 -4
  26. package/dist/{LegalCompanyNameField-BxLhDFZ4.js → LegalCompanyNameField-B9Cwuyju.js} +1 -1
  27. package/dist/{LegalRepresentativeDetailsPage-B-MsZPf-.js → LegalRepresentativeDetailsPage-2iKaMqsA.js} +4 -4
  28. package/dist/{MaskedInput-CPYBS2wP.js → MaskedInput-VtgquqE0.js} +8 -5
  29. package/dist/{MaybeModal-95T3hqPt.js → MaybeModal-BVaPzNUU.js} +1 -1
  30. package/dist/{NewSummary-Cgebw71K.js → NewSummary-CaV_Faij.js} +1 -1
  31. package/dist/{PayoutDetailsDropinMultiForm-BvJmm0SM.js → PayoutDetailsDropinMultiForm-DTNxQTj8.js} +50 -38
  32. package/dist/{PayoutDetailsPage-CmUyWu_t.js → PayoutDetailsPage-B_umtanU.js} +6 -6
  33. package/dist/{Review-B1T5E3pI.js → Review-9LTJVH2e.js} +2 -2
  34. package/dist/{RootBusinessDetailsPage-CB44DIGg.js → RootBusinessDetailsPage-jLEoZd66.js} +7 -8
  35. package/dist/{RootBusinessLinesPage-BdxPHbIJ.js → RootBusinessLinesPage-DZ0u4YRf.js} +15 -15
  36. package/dist/{RootIndividualDetailsPage-BcM3xHZ8.js → RootIndividualDetailsPage-BzC1-cyB.js} +4 -4
  37. package/dist/{Select-CvIMIYjl.js → Select-CS2E69CJ.js} +4 -2
  38. package/dist/{SignPCIComponent-o5iWDa9u.js → SignPCIComponent-BAemgvnk.js} +56 -56
  39. package/dist/{SingpassSelection-CRFf-u1d.js → SingpassSelection-msWdDNgM.js} +1 -1
  40. package/dist/{SoleProprietorshipPage-DFEn0Ewu.js → SoleProprietorshipPage-DMGE-cEd.js} +6 -6
  41. package/dist/{SourceOfFundsPage-BCVelN0X.js → SourceOfFundsPage-DyczSaZH.js} +18 -21
  42. package/dist/{Summary-8V5EZBd4.js → Summary-CunMdpUq.js} +2 -2
  43. package/dist/{TaskListItem-C3XFLrVq.js → TaskListItem-DDKGB2H5.js} +3 -3
  44. package/dist/{TaxInformationField-7C6iLtFs.js → TaxInformationField-BKnequKz.js} +11 -13
  45. package/dist/{TaxReportingDropin-CW0-CVJR.js → TaxReportingDropin-Ca1wEDdY.js} +10 -10
  46. package/dist/{TrustDetailsPage-Cw2OH_cP.js → TrustDetailsPage-DCTp6-QO.js} +27 -27
  47. package/dist/{TrustMemberCompanyPage-XaVxyqQT.js → TrustMemberCompanyPage-CHtXG88-.js} +7 -7
  48. package/dist/{TrustMemberIndividualPage-DQd5nIl2.js → TrustMemberIndividualPage-CgnPbD6F.js} +4 -4
  49. package/dist/{TrustMemberRoleAndTypePage-BJhaU0Ju.js → TrustMemberRoleAndTypePage-Bey9Tqzz.js} +10 -10
  50. package/dist/{TrustMembersOverview-CsdYkKZt.js → TrustMembersOverview-DuWWJMGv.js} +6 -6
  51. package/dist/{UnincorporatedPartnershipIndividualPage-CeDtx9P7.js → UnincorporatedPartnershipIndividualPage-DFFiL1br.js} +4 -4
  52. package/dist/{UnincorporatedPartnershipMemberCompanyPage-B4AUh2uw.js → UnincorporatedPartnershipMemberCompanyPage-BWBVhegh.js} +6 -6
  53. package/dist/{UnincorporatedPartnershipMemberRoleAndTypePage-CaQgmfeu.js → UnincorporatedPartnershipMemberRoleAndTypePage-C5DV96eC.js} +2 -2
  54. package/dist/{UnincorporatedPartnershipMembersOverview-zm15XNm0.js → UnincorporatedPartnershipMembersOverview-B5xNG_92.js} +3 -3
  55. package/dist/{VerificationErrorAlert-D76yRVAZ.js → VerificationErrorAlert-DBHKdlD8.js} +2 -2
  56. package/dist/{accountHolderUtils-DnEhXSHF.js → accountHolderUtils-DuVrEKUh.js} +1 -1
  57. package/dist/adyen-business-financing.js +29 -29
  58. package/dist/adyen-individual-configuration.js +30 -30
  59. package/dist/adyen-individual-status.js +27 -27
  60. package/dist/adyen-invited-decision-maker.js +2 -2
  61. package/dist/adyen-onboarding.js +67 -66
  62. package/dist/adyen-terms-of-service-management.js +2 -2
  63. package/dist/adyen-terms-of-service-status.js +26 -26
  64. package/dist/adyen-transfer-instrument-configuration.js +29 -29
  65. package/dist/adyen-transfer-instrument-management.js +32 -32
  66. package/dist/adyen-verification-status.js +1 -1
  67. package/dist/{bg-BG-KjJy4fjZ.js → bg-BG-BKPnSg5G.js} +3 -1
  68. package/dist/bg-BG-BcmC41vE.js +7 -0
  69. package/dist/{constants-DvK9RVMD.js → constants-BMNUJ3-d.js} +2 -2
  70. package/dist/{cs-CZ-m-2EDC49.js → cs-CZ-BBnvx4CY.js} +3 -1
  71. package/dist/cs-CZ-ghdW0Tc6.js +7 -0
  72. package/dist/da-DK-CBOVFYaa.js +7 -0
  73. package/dist/{da-DK-C8TyCAru.js → da-DK-CRp6gV0v.js} +3 -1
  74. package/dist/de-DE-CA81fzkA.js +7 -0
  75. package/dist/{de-DE-QoAah1C3.js → de-DE-asP1wacy.js} +3 -1
  76. package/dist/{el-GR-C0N0zQ3U.js → el-GR-B18pS-T4.js} +3 -1
  77. package/dist/el-GR-BjOmQ_B_.js +7 -0
  78. package/dist/en-US-B4SH4SJV.js +7 -0
  79. package/dist/en-US-Dab7moVA.js +7 -0
  80. package/dist/{en-US-DLsYeEWI.js → en-US-Dokjxy17.js} +2 -2
  81. package/dist/es-ES-BEYl7Z8S.js +7 -0
  82. package/dist/{es-ES-D5rPI9Qc.js → es-ES-BN2YT82N.js} +3 -1
  83. package/dist/es-LA-D741KUNg.js +7 -0
  84. package/dist/{es-LA-C58S3BbB.js → es-LA-DK1UJyRv.js} +3 -1
  85. package/dist/{et-EE-IiaprrVp.js → et-EE-6Fsbs-mA.js} +3 -1
  86. package/dist/et-EE-CfgyGext.js +7 -0
  87. package/dist/{fi-FI-DdF7vjHQ.js → fi-FI-C4Ta33KJ.js} +3 -1
  88. package/dist/fi-FI-DFO20YZY.js +7 -0
  89. package/dist/{fr-FR-jPc-OwlY.js → fr-FR-DKTSJHnY.js} +3 -1
  90. package/dist/fr-FR-wvWrk_PU.js +7 -0
  91. package/dist/{getProblemsForEntity-CXzgYL6R.js → getProblemsForEntity-CCpr4UGm.js} +1 -1
  92. package/dist/{hr-HR-DlIGxvkT.js → hr-HR-CII1fh9u.js} +3 -1
  93. package/dist/hr-HR-D0zfmZK6.js +7 -0
  94. package/dist/{hu-HU-DicR116D.js → hu-HU-CAlsW_OP.js} +3 -1
  95. package/dist/hu-HU-CL021irk.js +7 -0
  96. package/dist/{invalidateRootLegalEntity-DfF59VHE.js → invalidateRootLegalEntity-DUOCxqZR.js} +1 -1
  97. package/dist/it-IT-6VoxKX97.js +7 -0
  98. package/dist/{it-IT-BVAe-EX_.js → it-IT-BUwmmlzT.js} +3 -1
  99. package/dist/ja-JP-Cja4dur8.js +7 -0
  100. package/dist/{ja-JP-Fu1XFofD.js → ja-JP-XWbEAz1Y.js} +3 -1
  101. package/dist/lt-LT-CNFgOeH4.js +7 -0
  102. package/dist/{lt-LT-DfL5ey_8.js → lt-LT-Vhhg1gZf.js} +3 -1
  103. package/dist/lv-LV-BdSdhjTP.js +7 -0
  104. package/dist/{lv-LV-CqZT6L9i.js → lv-LV-x-MIpGh3.js} +3 -1
  105. package/dist/{mapLegalEntityToIndividualSchema-BUIjjkrb.js → mapLegalEntityToIndividualSchema-CADQNrLO.js} +1 -1
  106. package/dist/{mapTransferInstrumentToPayoutAccount-DZMqLmU8.js → mapTransferInstrumentToPayoutAccount-CvaJH9VL.js} +1 -1
  107. package/dist/nl-NL-CclRrN3_.js +7 -0
  108. package/dist/{nl-NL-CmlQQSLp.js → nl-NL-CvSvFKVp.js} +3 -1
  109. package/dist/no-NO-CO5xyGPh.js +7 -0
  110. package/dist/{no-NO-BatbPb3N.js → no-NO-TyUIFxXT.js} +3 -1
  111. package/dist/{omitObscuredFieldsIfUnchanged-Datp62BM.js → omitObscuredFieldsIfUnchanged-Ck2si051.js} +1 -1
  112. package/dist/{patternValidators-Dg_UvQs9.js → patternValidators-Bza9mezL.js} +1 -1
  113. package/dist/{pl-PL-ZyxybmlP.js → pl-PL-BYzL4w2k.js} +3 -1
  114. package/dist/pl-PL-DUH23AYC.js +7 -0
  115. package/dist/{process-field-configurations-n3ecaPQ8.js → process-field-configurations-uFcwmzTd.js} +1 -1
  116. package/dist/{processCapabilities-hLmRus8U.js → processCapabilities-fPuXc9gL.js} +11 -11
  117. package/dist/{pt-BR-Dq0Sd1h9.js → pt-BR-D5r3Ig2a.js} +3 -1
  118. package/dist/pt-BR-MAQR_CUu2.js +7 -0
  119. package/dist/pt-PT-CoKsjpyN.js +7 -0
  120. package/dist/{pt-PT-BuM6Edx0.js → pt-PT-Dsxz9fKe.js} +3 -1
  121. package/dist/{resolveEnvironment-BO-j8Bwm.js → resolveEnvironment-l2TGYFxw.js} +34 -38
  122. package/dist/{ro-RO-DJjle7nF.js → ro-RO-BfVd2Ps9.js} +3 -1
  123. package/dist/ro-RO-Cpv5pKod.js +7 -0
  124. package/dist/{sk-SK-CSPSMUYC.js → sk-SK-ID0z1rIS.js} +3 -1
  125. package/dist/sk-SK-p_p2X_aA.js +7 -0
  126. package/dist/sl-SI-BpZp1MAq.js +7 -0
  127. package/dist/{sl-SI-C82Kr3vf.js → sl-SI-hxmAPrRM.js} +3 -1
  128. package/dist/sv-SE-BoXCPhGb.js +7 -0
  129. package/dist/{sv-SE-DT9jLSs2.js → sv-SE-BuzHXTQj.js} +3 -1
  130. package/dist/types/adaptiveWorkflow/components/Fields/BusinessRegistrationNumber/RegistrationNumberTypeSelectorField.d.ts +1 -2
  131. package/dist/types/components/BankAccount/fields/PreferredCurrency/PreferredCurrency.d.ts +1 -1
  132. package/dist/types/components/Business/forms/AdditionalInformation/types.d.ts +7 -4
  133. package/dist/types/components/Business/forms/BusinessDetails/form-ids.d.ts +1 -1
  134. package/dist/types/components/Business/forms/BusinessDetails/forms.d.ts +23 -7
  135. package/dist/types/components/Business/forms/BusinessDetails/types.d.ts +1 -0
  136. package/dist/types/components/Business/forms/ProofOfAddressDocument/ProofOfAddressDocument.d.ts +2 -0
  137. package/dist/types/components/Business/forms/ProofOfAddressDocument/types.d.ts +5 -0
  138. package/dist/types/components/Business/forms/rules.d.ts +2 -0
  139. package/dist/types/components/Business/hooks/useSubmitBusinessDetails.d.ts +1 -1
  140. package/dist/types/components/Business/mapping/businessDetails/businessDetailsKeyMappings.d.ts +1 -1
  141. package/dist/types/components/Business/mapping/businessDetails/mapLegalEntityToBusinessDetailsSchema.d.ts +2 -2
  142. package/dist/types/components/Business/mapping/businessDetails/solePropBusinessDetailsKeyMappings.d.ts +1 -1
  143. package/dist/types/components/Business/tasks/BusinessDetailsDropin/types.d.ts +1 -1
  144. package/dist/types/components/Business/tasks/BusinessDetailsDropin/validate.d.ts +1 -1
  145. package/dist/types/components/Shared/fields/BusinessRegistrationNumberField/BusinessRegistrationNumberField.d.ts +1 -1
  146. package/dist/types/components/Shared/fields/BusinessRegistrationNumberField/RegistrationNumberTypeSelector/CompanyRegistrationNumberTypeSelector.d.ts +1 -2
  147. package/dist/types/components/Shared/fields/BusinessRegistrationNumberField/RegistrationNumberTypeSelector/getDefaultRegistrationNumberType.d.ts +1 -1
  148. package/dist/types/components/Shared/fields/BusinessRegistrationNumberField/RegistrationNumberTypeSelector/inferCompanyRegistrationNumberType.d.ts +1 -1
  149. package/dist/types/components/Shared/fields/BusinessRegistrationNumberField/registrationNumberTypes.d.ts +1 -1
  150. package/dist/types/components/Shared/fields/BusinessRegistrationNumberField/types.d.ts +0 -1
  151. package/dist/types/components/Shared/fields/LegalEntityIdentifierField/LegalEntityIdentifierField.d.ts +3 -0
  152. package/dist/types/components/Shared/fields/LegalEntityIdentifierField/fieldConfig.d.ts +5 -0
  153. package/dist/types/components/Shared/fields/LegalEntityIdentifierField/types.d.ts +8 -0
  154. package/dist/types/components/Shared/fields/TaxInformationField/TaxIdNumberTypeSelector/TaxIdNumberTypeSelector.d.ts +1 -2
  155. package/dist/types/components/Shared/fields/TaxInformationField/TaxIdNumberTypeSelector/getDefaultTaxIdNumberType.d.ts +1 -1
  156. package/dist/types/components/Shared/fields/TaxInformationField/TaxIdNumberTypeSelector/inferTaxIdNumberType.d.ts +1 -1
  157. package/dist/types/components/Shared/fields/TaxInformationField/TaxInformationField.d.ts +1 -1
  158. package/dist/types/components/Shared/fields/TaxInformationField/taxIdNumberTypes.d.ts +1 -1
  159. package/dist/types/components/Shared/fields/TaxInformationField/types.d.ts +0 -1
  160. package/dist/types/components/Shared/forms/Address/utils.d.ts +1 -1
  161. package/dist/types/components/ui/molecules/MaskedInput/MaskedInput.d.ts +2 -1
  162. package/dist/types/context/ToggleContext/types.d.ts +2 -6
  163. package/dist/types/hooks/useMultiForm/types.d.ts +4 -4
  164. package/dist/types/utils/entityStatusUtil.d.ts +1 -1
  165. package/dist/types/utils/getFormSlice.d.ts +2 -2
  166. package/dist/{useBusinessDetailsData-DBmj3nNJ.js → useBusinessDetailsData-C3mDLYw0.js} +273 -210
  167. package/dist/{useCanSeeIntroduction-Cj5FkQFO.js → useCanSeeIntroduction-87OxZXI3.js} +1 -1
  168. package/dist/{useDataMissingRemediations-CrKtd_Fd.js → useDataMissingRemediations-BtSioM7F.js} +1 -1
  169. package/dist/{useForm-CANEmbG2.js → useForm-BcvMNl0D.js} +1 -1
  170. package/dist/{useFormContext-D9UmS1Tj.js → useFormContext-1h2DlUxb.js} +3 -3
  171. package/dist/{useMultiForm-Ch5yvl-v.js → useMultiForm-C0Mz4Mm6.js} +12 -12
  172. package/dist/{useNavigate-D4SB__Ik.js → useNavigate-CVT5ailE.js} +30 -30
  173. package/dist/{useTrustMembers-BOfT11Kj.js → useTrustMembers-CNy3GIeW.js} +1 -1
  174. package/dist/{useUpdateLegalEntity-De_ohp9A.js → useUpdateLegalEntity-GCDgDdeE.js} +1 -1
  175. package/dist/{utils-X8YwekZF.js → utils-BAgsI56z.js} +2 -2
  176. package/dist/{utils-ztjLNfgn.js → utils-Dizf4Xxc.js} +13 -18
  177. package/dist/{ConstitutionalDocument-FDgHtu1v.js → utils-uuBaXnz-.js} +135 -137
  178. package/dist/{validate-7X0zga5Q.js → validate-cXmMxcOs.js} +1 -1
  179. package/dist/{validateExtractionResult-CwehLDDP.js → validateExtractionResult-Bk2WRbLs.js} +3 -3
  180. package/dist/{validationError-DqjDv5Q-.js → validationError-COmWiy16.js} +1 -1
  181. package/package.json +3 -2
  182. package/dist/bg-BG-FthOeqMs.js +0 -7
  183. package/dist/cs-CZ-nMdCNolB.js +0 -7
  184. package/dist/da-DK-BF_wiKbj.js +0 -7
  185. package/dist/de-DE-z8FJw9Yv.js +0 -7
  186. package/dist/el-GR-DHiKsTJQ.js +0 -7
  187. package/dist/en-US-BeIZBdDm.js +0 -7
  188. package/dist/en-US-BqGRsgfO.js +0 -7
  189. package/dist/es-ES-C6Rs-ie9.js +0 -7
  190. package/dist/es-LA-xilYCaSd.js +0 -7
  191. package/dist/et-EE-DEs2iukD.js +0 -7
  192. package/dist/fi-FI-8eStbIaM.js +0 -7
  193. package/dist/fr-FR-B8iVi3nn.js +0 -7
  194. package/dist/hr-HR-Bt2ZduQN.js +0 -7
  195. package/dist/hu-HU-DTRbo1IU.js +0 -7
  196. package/dist/it-IT-DzzajnKQ.js +0 -7
  197. package/dist/ja-JP-BpNu5KzH.js +0 -7
  198. package/dist/lt-LT-BJbA6rDr.js +0 -7
  199. package/dist/lv-LV-BBbE9hg5.js +0 -7
  200. package/dist/nl-NL-7ddo0NCH.js +0 -7
  201. package/dist/no-NO-Bf-QR3EY.js +0 -7
  202. package/dist/pl-PL-Dd9fkdnr.js +0 -7
  203. package/dist/pt-BR-uhrvEANO2.js +0 -7
  204. package/dist/pt-PT-Cz4rJgbi.js +0 -7
  205. package/dist/ro-RO-BnZbYPEH.js +0 -7
  206. package/dist/sk-SK-DBHPBJm4.js +0 -7
  207. package/dist/sl-SI-dukW1tgW.js +0 -7
  208. package/dist/sv-SE-BlGBkLAA.js +0 -7
@@ -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] = "bd7f1f2e-8c7d-4238-adeb-651ba254df9b", e._sentryDebugIdIdentifier = "sentry-dbid-bd7f1f2e-8c7d-4238-adeb-651ba254df9b");
4
4
  } catch (e) {}
5
- import { _ as isPartOfTrustFromLegalEntity } from "./resolveEnvironment-BO-j8Bwm.js";
5
+ import { _ as isPartOfTrustFromLegalEntity } from "./resolveEnvironment-l2TGYFxw.js";
6
6
  import { t as LegalEntityTypes } from "./legal-entity-type-0MfCGzUf.js";
7
7
  import { t as useSettingsContext } from "./useSettingsContext-Bpf4UqRT.js";
8
8
  import { f as hasSolePropInLegalEntity } from "./entityAssociationUtil-C-wflW8q.js";
@@ -3,7 +3,7 @@ try {
3
3
  n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "0e08a2d6-3469-4a22-a5b2-81f030dfcd29", e._sentryDebugIdIdentifier = "sentry-dbid-0e08a2d6-3469-4a22-a5b2-81f030dfcd29");
4
4
  } catch (e) {}
5
5
  import { r as useTranslation } from "./translation-BR3rLb4m.js";
6
- import { C as EntityTypes, T as DATA_MISSING_DECISION_MAKER_ERROR_CODE_MAPPING } from "./processCapabilities-hLmRus8U.js";
6
+ import { C as EntityTypes, T as DATA_MISSING_DECISION_MAKER_ERROR_CODE_MAPPING } from "./processCapabilities-fPuXc9gL.js";
7
7
  import { t as TaskTypes } from "./taskTypes-NawDTp5n.js";
8
8
  import { useMemo } from "preact/hooks";
9
9
  //#region src/hooks/useDataMissingRemediations.ts
@@ -3,7 +3,7 @@ try {
3
3
  n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "4995c2a1-d968-472d-a832-542999fb395d", e._sentryDebugIdIdentifier = "sentry-dbid-4995c2a1-d968-472d-a832-542999fb395d");
4
4
  } catch (e) {}
5
5
  import { o as createLogger } from "./translation-BR3rLb4m.js";
6
- import { nt as isEmpty } from "./resolveEnvironment-BO-j8Bwm.js";
6
+ import { nt as isEmpty } from "./resolveEnvironment-l2TGYFxw.js";
7
7
  import { r as doArraysMatch } from "./AnalyticsContext-BFrJmsp0.js";
8
8
  import { i as omitKeys, n as addKeys, t as ValidationResult } from "./validationResult-CqlLuppx.js";
9
9
  import { useCallback, useEffect, useMemo, useReducer, useState } from "preact/hooks";
@@ -8,10 +8,10 @@ import { i as useAnalyticsContext } from "./Modal-C__-5LgI.js";
8
8
  import { r as LoaderWrapper } from "./utils-BtyrxTzp.js";
9
9
  import { t as Confirm } from "./Confirm-6QfuYcA7.js";
10
10
  import { t as formDebugInfo } from "./debugStore-Dwn1FXrh.js";
11
- import { r as FormRouterContext } from "./ErrorPanel-CbTDpmpi.js";
11
+ import { r as FormRouterContext } from "./ErrorPanel-B5GuGh_o.js";
12
12
  import { t as trackNavigation } from "./trackNavigation-DR70qR8T.js";
13
- import { n as summaryStep, t as Summary } from "./Summary-8V5EZBd4.js";
14
- import { t as MaybeModal } from "./MaybeModal-95T3hqPt.js";
13
+ import { n as summaryStep, t as Summary } from "./Summary-CunMdpUq.js";
14
+ import { t as MaybeModal } from "./MaybeModal-BVaPzNUU.js";
15
15
  import { t as ProgressBar } from "./ProgressBar-DWFxLMUA.js";
16
16
  import { useCallback, useContext, useMemo, useRef, useState } from "preact/hooks";
17
17
  import cx from "classnames";
@@ -1,9 +1,9 @@
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] = "4eba7412-4f13-47ee-8b27-79e50a807512", e._sentryDebugIdIdentifier = "sentry-dbid-4eba7412-4f13-47ee-8b27-79e50a807512");
3
+ n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "95b27371-73cf-4c35-b87c-c6513b343957", e._sentryDebugIdIdentifier = "sentry-dbid-95b27371-73cf-4c35-b87c-c6513b343957");
4
4
  } catch (e) {}
5
5
  import { o as createLogger } from "./translation-BR3rLb4m.js";
6
- import { nt as isEmpty } from "./resolveEnvironment-BO-j8Bwm.js";
6
+ import { nt as isEmpty } from "./resolveEnvironment-l2TGYFxw.js";
7
7
  import { o as objectsDeepEqual } from "./AnalyticsContext-BFrJmsp0.js";
8
8
  import { i as omitKeys, n as addKeys, t as ValidationResult } from "./validationResult-CqlLuppx.js";
9
9
  import { useCallback, useEffect, useMemo, useReducer } from "preact/hooks";
@@ -698,12 +698,12 @@ function useMultiForm({ defaultData, rules, asyncRules, fieldProblems, allFields
698
698
  };
699
699
  }, {});
700
700
  }, [state.requiredFields, state.valid]);
701
- const getTargetValue = useCallback((key, formName, e) => {
701
+ const getTargetValue = useCallback((formName, key, e) => {
702
702
  if (!e?.target) return e;
703
703
  if (e.target.type === "checkbox") return !state.data?.[formName][key];
704
704
  return e.target.value;
705
705
  }, [state.data]);
706
- const setErrors = useCallback((key, value, formName) => {
706
+ const setErrors = useCallback((formName, key, value) => {
707
707
  dispatch({
708
708
  type: "setErrors",
709
709
  key,
@@ -711,7 +711,7 @@ function useMultiForm({ defaultData, rules, asyncRules, fieldProblems, allFields
711
711
  formName
712
712
  });
713
713
  }, []);
714
- const setValid = useCallback((key, value, formName) => {
714
+ const setValid = useCallback((formName, key, value) => {
715
715
  dispatch({
716
716
  type: "setValid",
717
717
  key,
@@ -719,7 +719,7 @@ function useMultiForm({ defaultData, rules, asyncRules, fieldProblems, allFields
719
719
  formName
720
720
  });
721
721
  }, []);
722
- const setData = useCallback((key, value, formName) => {
722
+ const setData = useCallback((formName, key, value) => {
723
723
  dispatch({
724
724
  type: "setData",
725
725
  key,
@@ -734,11 +734,11 @@ function useMultiForm({ defaultData, rules, asyncRules, fieldProblems, allFields
734
734
  formData
735
735
  });
736
736
  }, []);
737
- const handleChangeFor = useCallback((key, formName, mode = "blur") => (e) => {
737
+ const handleChangeFor = useCallback((formName, key, mode = "blur") => (e) => {
738
738
  dispatch({
739
739
  type: "updateField",
740
740
  key,
741
- value: getTargetValue(key, formName, e),
741
+ value: getTargetValue(formName, key, e),
742
742
  mode,
743
743
  formName
744
744
  });
@@ -760,12 +760,12 @@ function useMultiForm({ defaultData, rules, asyncRules, fieldProblems, allFields
760
760
  const formData = defaultData?.[form];
761
761
  getSchema[form].forEach((field) => {
762
762
  if (!formData || typeof formData[field] !== "undefined") {
763
- handleChangeFor(field, form)(formData);
763
+ handleChangeFor(form, field)(formData);
764
764
  return;
765
765
  }
766
- setValid(field, false, form);
767
- setErrors(field, null, form);
768
- setData(field, formData[field], form);
766
+ setValid(form, field, false);
767
+ setErrors(form, field, null);
768
+ setData(form, field, formData[field]);
769
769
  });
770
770
  });
771
771
  }, [
@@ -25,36 +25,36 @@ var hasProgressedBeyondEntitySelection = (legalEntity) => {
25
25
  };
26
26
  //#endregion
27
27
  //#region src/router/routeConfig.ts
28
- var Introduction = lazy(async () => (await import("./Introduction-CvXA6-RL.js")).Introduction);
29
- var Adaptive = lazy(async () => (await import("./AdaptiveWorkflow-DkyHp3I-.js")).AdaptiveWorkflow);
30
- var BusinessTypeSelectionPage = lazy(async () => (await import("./BusinessTypeSelectionPage-DVlhdBOT.js")).BusinessTypeSelectionPage);
31
- var SingpassSelection = lazy(async () => (await import("./SingpassSelection-CRFf-u1d.js")).SingpassSelection);
32
- var AccountSetupRejected = lazy(async () => (await import("./AccountSetupRejected-DXrxeaTA.js")).AccountSetupRejected);
33
- var DecisionMakers = lazy(async () => (await import("./DecisionMakers-oSWUwKsE.js")).DecisionMakers);
34
- var CustomerSupport = lazy(async () => (await import("./CustomerSupport-CxnPz_MZ.js")).CustomerSupport);
35
- var Review = lazy(async () => (await import("./Review-B1T5E3pI.js")).Review);
36
- var SignPCIComponent = lazy(async () => (await import("./SignPCIComponent-o5iWDa9u.js").then((n) => n.n)).SignPCIComponent);
37
- var AcceptTermsOfService = lazy(async () => (await import("./AcceptTermsOfServiceComponent-D9RkOGLa.js").then((n) => n.n)).AcceptTermsOfServiceComponent);
38
- var TaxReportingDropin = lazy(async () => (await import("./TaxReportingDropin-CW0-CVJR.js").then((n) => n.n)).TaxReportingDropin);
39
- var PayoutDetailsPage = lazy(async () => (await import("./PayoutDetailsPage-CmUyWu_t.js")).PayoutDetailsPage);
40
- var RootBusinessDetailsPage = lazy(async () => (await import("./RootBusinessDetailsPage-CB44DIGg.js")).RootBusinessDetailsPage);
41
- var RootBusinessLinesPage = lazy(async () => (await import("./RootBusinessLinesPage-BdxPHbIJ.js")).RootBusinessLinesPage);
42
- var SoleProprietorshipPage = lazy(async () => (await import("./SoleProprietorshipPage-DFEn0Ewu.js")).SoleProprietorshipPage);
43
- var TrustMemberCompanyPage = lazy(async () => (await import("./TrustMemberCompanyPage-XaVxyqQT.js")).TrustMemberCompanyPage);
44
- var TrustMemberIndividualPage = lazy(async () => (await import("./TrustMemberIndividualPage-DQd5nIl2.js")).TrustMemberIndividualPage);
45
- var TrustMemberRoleAndTypePage = lazy(async () => (await import("./TrustMemberRoleAndTypePage-BJhaU0Ju.js")).TrustMemberRoleAndTypePage);
46
- var TrustMembersOverview = lazy(async () => (await import("./TrustMembersOverview-CsdYkKZt.js")).TrustMembersOverview);
47
- var UnincorporatedPartnershipMemberCompanyPage = lazy(async () => (await import("./UnincorporatedPartnershipMemberCompanyPage-B4AUh2uw.js")).UnincorporatedPartnershipMemberCompanyPage);
48
- var UnincorporatedPartnershipIndividualPage = lazy(async () => (await import("./UnincorporatedPartnershipIndividualPage-CeDtx9P7.js")).UnincorporatedPartnershipIndividualPage);
49
- var UnincorporatedPartnershipMemberRoleAndTypePage = lazy(async () => (await import("./UnincorporatedPartnershipMemberRoleAndTypePage-CaQgmfeu.js")).UnincorporatedPartnershipMemberRoleAndTypePage);
50
- var UnincorporatedPartnershipMembersOverview = lazy(async () => (await import("./UnincorporatedPartnershipMembersOverview-zm15XNm0.js")).UnincorporatedPartnershipMembersOverview);
51
- var BusinessFinancingPage = lazy(async () => (await import("./BusinessFinancingPage-rrQUrZBL.js")).BusinessFinancingPage);
52
- var TrustDetailsPage = lazy(async () => (await import("./TrustDetailsPage-Cw2OH_cP.js")).TrustDetailsPage);
53
- var SourceOfFundsPage = lazy(async () => (await import("./SourceOfFundsPage-BCVelN0X.js").then((n) => n.n)).SourceOfFundsPage);
54
- var RootIndividualDetailsPage = lazy(async () => (await import("./RootIndividualDetailsPage-BcM3xHZ8.js")).RootIndividualDetailsPage);
55
- var LegalRepresentativeDetailsPage = lazy(async () => (await import("./LegalRepresentativeDetailsPage-B-MsZPf-.js")).LegalRepresentativeDetailsPage);
56
- var DecisionMakerDetailsPage = lazy(async () => (await import("./DecisionMakerDetailsPage-Dqkcvgs5.js")).DecisionMakerDetailsPage);
57
- lazy(async () => (await import("./InvitedDecisionMakerComponent-D5gat3zM.js").then((n) => n.n)).InvitedDecisionMakerComponent);
28
+ var Introduction = lazy(async () => (await import("./Introduction-BiWv1ZBC.js")).Introduction);
29
+ var Adaptive = lazy(async () => (await import("./AdaptiveWorkflow-CVnJ9NZw.js")).AdaptiveWorkflow);
30
+ var BusinessTypeSelectionPage = lazy(async () => (await import("./BusinessTypeSelectionPage-bkRgRUiw.js")).BusinessTypeSelectionPage);
31
+ var SingpassSelection = lazy(async () => (await import("./SingpassSelection-msWdDNgM.js")).SingpassSelection);
32
+ var AccountSetupRejected = lazy(async () => (await import("./AccountSetupRejected-h8i4srXf.js")).AccountSetupRejected);
33
+ var DecisionMakers = lazy(async () => (await import("./DecisionMakers-DKaoWAJE.js")).DecisionMakers);
34
+ var CustomerSupport = lazy(async () => (await import("./CustomerSupport-ry1TO7UY.js")).CustomerSupport);
35
+ var Review = lazy(async () => (await import("./Review-9LTJVH2e.js")).Review);
36
+ var SignPCIComponent = lazy(async () => (await import("./SignPCIComponent-BAemgvnk.js").then((n) => n.n)).SignPCIComponent);
37
+ var AcceptTermsOfService = lazy(async () => (await import("./AcceptTermsOfServiceComponent-sWwPrHpD.js").then((n) => n.n)).AcceptTermsOfServiceComponent);
38
+ var TaxReportingDropin = lazy(async () => (await import("./TaxReportingDropin-Ca1wEDdY.js").then((n) => n.n)).TaxReportingDropin);
39
+ var PayoutDetailsPage = lazy(async () => (await import("./PayoutDetailsPage-B_umtanU.js")).PayoutDetailsPage);
40
+ var RootBusinessDetailsPage = lazy(async () => (await import("./RootBusinessDetailsPage-jLEoZd66.js")).RootBusinessDetailsPage);
41
+ var RootBusinessLinesPage = lazy(async () => (await import("./RootBusinessLinesPage-DZ0u4YRf.js")).RootBusinessLinesPage);
42
+ var SoleProprietorshipPage = lazy(async () => (await import("./SoleProprietorshipPage-DMGE-cEd.js")).SoleProprietorshipPage);
43
+ var TrustMemberCompanyPage = lazy(async () => (await import("./TrustMemberCompanyPage-CHtXG88-.js")).TrustMemberCompanyPage);
44
+ var TrustMemberIndividualPage = lazy(async () => (await import("./TrustMemberIndividualPage-CgnPbD6F.js")).TrustMemberIndividualPage);
45
+ var TrustMemberRoleAndTypePage = lazy(async () => (await import("./TrustMemberRoleAndTypePage-Bey9Tqzz.js")).TrustMemberRoleAndTypePage);
46
+ var TrustMembersOverview = lazy(async () => (await import("./TrustMembersOverview-DuWWJMGv.js")).TrustMembersOverview);
47
+ var UnincorporatedPartnershipMemberCompanyPage = lazy(async () => (await import("./UnincorporatedPartnershipMemberCompanyPage-BWBVhegh.js")).UnincorporatedPartnershipMemberCompanyPage);
48
+ var UnincorporatedPartnershipIndividualPage = lazy(async () => (await import("./UnincorporatedPartnershipIndividualPage-DFFiL1br.js")).UnincorporatedPartnershipIndividualPage);
49
+ var UnincorporatedPartnershipMemberRoleAndTypePage = lazy(async () => (await import("./UnincorporatedPartnershipMemberRoleAndTypePage-C5DV96eC.js")).UnincorporatedPartnershipMemberRoleAndTypePage);
50
+ var UnincorporatedPartnershipMembersOverview = lazy(async () => (await import("./UnincorporatedPartnershipMembersOverview-B5xNG_92.js")).UnincorporatedPartnershipMembersOverview);
51
+ var BusinessFinancingPage = lazy(async () => (await import("./BusinessFinancingPage-DpyatG4F.js")).BusinessFinancingPage);
52
+ var TrustDetailsPage = lazy(async () => (await import("./TrustDetailsPage-DCTp6-QO.js")).TrustDetailsPage);
53
+ var SourceOfFundsPage = lazy(async () => (await import("./SourceOfFundsPage-DyczSaZH.js").then((n) => n.n)).SourceOfFundsPage);
54
+ var RootIndividualDetailsPage = lazy(async () => (await import("./RootIndividualDetailsPage-BzC1-cyB.js")).RootIndividualDetailsPage);
55
+ var LegalRepresentativeDetailsPage = lazy(async () => (await import("./LegalRepresentativeDetailsPage-2iKaMqsA.js")).LegalRepresentativeDetailsPage);
56
+ var DecisionMakerDetailsPage = lazy(async () => (await import("./DecisionMakerDetailsPage-DzXL7rI0.js")).DecisionMakerDetailsPage);
57
+ lazy(async () => (await import("./InvitedDecisionMakerComponent-CQ8wt0IK.js").then((n) => n.n)).InvitedDecisionMakerComponent);
58
58
  var ROUTE_CONFIG = {
59
59
  [TaskTypes.ADAPTIVE]: {
60
60
  path: "/adaptive",
@@ -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] = "88619ddb-07c1-40df-882f-af823ba659c1", e._sentryDebugIdIdentifier = "sentry-dbid-88619ddb-07c1-40df-882f-af823ba659c1");
4
4
  } catch (e) {}
5
- import { j as useToggleContext } from "./resolveEnvironment-BO-j8Bwm.js";
5
+ import { j as useToggleContext } from "./resolveEnvironment-l2TGYFxw.js";
6
6
  import { r as useLegalEntity, t as ROOT_LE } from "./useLegalEntity-BXk2tzGe.js";
7
7
  import { t as LegalEntityTypes } from "./legal-entity-type-0MfCGzUf.js";
8
8
  import { s as getOwnEntityAssociations } from "./entityAssociationUtil-C-wflW8q.js";
@@ -3,7 +3,7 @@ try {
3
3
  n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "b7206278-d5cd-4827-91c7-aab05516a31d", e._sentryDebugIdIdentifier = "sentry-dbid-b7206278-d5cd-4827-91c7-aab05516a31d");
4
4
  } catch (e) {}
5
5
  import { r as httpPost, s as useApiContext } from "./http-DeQp0G69.js";
6
- import { t as useInvalidateRootLegalEntity } from "./invalidateRootLegalEntity-DfF59VHE.js";
6
+ import { t as useInvalidateRootLegalEntity } from "./invalidateRootLegalEntity-DUOCxqZR.js";
7
7
  import { useMutation, useQueryClient } from "@tanstack/preact-query";
8
8
  //#region src/api/legalEntity/useUpdateLegalEntity.ts
9
9
  var updateLegalEntity = async (rootLegalEntityId, baseUrl, data) => {
@@ -5,10 +5,10 @@ try {
5
5
  import { t as LegalEntityTypes } from "./legal-entity-type-0MfCGzUf.js";
6
6
  import { t as getLegalEntityCountry } from "./getLegalEntityCountry-BHh7Ux8v.js";
7
7
  import { t as CountryCodes } from "./country-code-CJk2hdPu.js";
8
- import { t as getCapabilities } from "./processCapabilities-hLmRus8U.js";
8
+ import { t as getCapabilities } from "./processCapabilities-fPuXc9gL.js";
9
9
  import { d as hasOwnEntityAssociationOfType } from "./entityAssociationUtil-C-wflW8q.js";
10
10
  import { c as CompanyTypesValues } from "./bafinUtils-BKq-s1Ka.js";
11
- import { t as allowIndividualWithoutSoleProp } from "./accountHolderUtils-DnEhXSHF.js";
11
+ import { t as allowIndividualWithoutSoleProp } from "./accountHolderUtils-DuVrEKUh.js";
12
12
  import { r as SOLE_PROP_COUNTRIES } from "./Individual.rules-Cc2Uigav.js";
13
13
  import { t as ALLOWED_UNINCORPORATED_PARTNERSHIP_COUNTRIES } from "./types-Bm4RGrSI.js";
14
14
  //#region src/components/Shared/forms/BusinessTypeSelection/utils.ts
@@ -1,14 +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] = "e9249d78-3840-4749-abca-5eedc28ac928", e._sentryDebugIdIdentifier = "sentry-dbid-e9249d78-3840-4749-abca-5eedc28ac928");
3
+ n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "1181f762-d229-4033-897b-2b518a242520", e._sentryDebugIdIdentifier = "sentry-dbid-1181f762-d229-4033-897b-2b518a242520");
4
4
  } catch (e) {}
5
5
  import { r as useTranslation } from "./translation-BR3rLb4m.js";
6
6
  import { t as LegalEntityTypes } from "./legal-entity-type-0MfCGzUf.js";
7
7
  import { t as CountryCodes } from "./country-code-CJk2hdPu.js";
8
8
  import { c as CompanyTypesValues } from "./bafinUtils-BKq-s1Ka.js";
9
- import { a as alphanumericInputs, c as nonInputs, i as alphaInputs, l as numericInputs, o as customInputs, s as makeMask, u as spacer } from "./MaskedInput-CPYBS2wP.js";
9
+ import { a as alphanumericInputs, c as nonInputs, i as alphaInputs, l as numericInputs, o as customInputs, s as makeMask, u as spacer } from "./MaskedInput-VtgquqE0.js";
10
10
  import { t as uppercase } from "./uppercase-DvjwUM0n.js";
11
- import { a as validateNotEmptyOnBlur, o as validatePatternOnBlur } from "./patternValidators-Dg_UvQs9.js";
11
+ import { a as validateNotEmptyOnBlur, o as validatePatternOnBlur } from "./patternValidators-Bza9mezL.js";
12
12
  import { t as Field } from "./Field-DAUlw0M5.js";
13
13
  import { t as RadioGroup } from "./RadioGroup-CMiBSXCA.js";
14
14
  import { useCallback, useEffect, useMemo } from "preact/hooks";
@@ -2003,15 +2003,11 @@ var taxIdNumberOptions = {
2003
2003
  name: "ein"
2004
2004
  }]
2005
2005
  };
2006
- var getTaxIdNumberOptions = (country, companyType, invertCompanyTypeFilter = false) => {
2006
+ var getTaxIdNumberOptions = (country, companyType) => {
2007
2007
  const optionsForCountry = taxIdNumberOptions[country];
2008
2008
  if (!optionsForCountry) return optionsForCountry;
2009
- if (invertCompanyTypeFilter) {
2010
- if (isRestrictedEntityType(companyType)) return optionsForCountry.filter((option) => option.applicableOnlyFor?.includes(companyType) ?? true);
2011
- return optionsForCountry.filter((option) => !isApplicableOnlyForSingleRestrictedType(option));
2012
- }
2013
- if (!companyType) return optionsForCountry;
2014
- return optionsForCountry.filter((option) => option.applicableOnlyFor?.includes(companyType) ?? true);
2009
+ if (isRestrictedEntityType(companyType)) return optionsForCountry.filter((option) => option.applicableOnlyFor?.includes(companyType) ?? true);
2010
+ return optionsForCountry.filter((option) => !isApplicableOnlyForSingleRestrictedType(option));
2015
2011
  };
2016
2012
  function getValidCompanyTypesForTaxIdNumberType(country, taxIdNumberType) {
2017
2013
  if (!taxIdNumberType) return void 0;
@@ -2030,9 +2026,9 @@ function getValidCompanyTypesForTaxIdNumberType(country, taxIdNumberType) {
2030
2026
  * @param country the country of the LE
2031
2027
  * @param companyType the company type, e.g. `nonProfit`
2032
2028
  */
2033
- var inferTaxIdNumberType = (taxInformation, country, companyType, invertCompanyTypeFilter = false) => {
2029
+ var inferTaxIdNumberType = (taxInformation, country, companyType) => {
2034
2030
  if (!taxInformation) return void 0;
2035
- const optionsForCountry = getTaxIdNumberOptions(country, companyType, invertCompanyTypeFilter);
2031
+ const optionsForCountry = getTaxIdNumberOptions(country, companyType);
2036
2032
  const metadataFn = taxInformationDefaultFieldConfig[country];
2037
2033
  if (!optionsForCountry || !metadataFn) return void 0;
2038
2034
  if (optionsForCountry.length === 1) return optionsForCountry[0].id;
@@ -2074,9 +2070,9 @@ function findExistingTaxInformation(taxInformation, country) {
2074
2070
  * @param entityType - Type of entity (company type or individual)
2075
2071
  * @returns The determined tax ID number type or undefined if none can be determined
2076
2072
  */
2077
- function getDefaultTaxIdNumberType(taxInformation, country, entityType, invertCompanyTypeFilter) {
2073
+ function getDefaultTaxIdNumberType(taxInformation, country, entityType) {
2078
2074
  const existingTaxInformation = findExistingTaxInformation(taxInformation, country);
2079
- return existingTaxInformation?.type ?? (existingTaxInformation?.number ? inferTaxIdNumberType(taxInformation, country, entityType, invertCompanyTypeFilter) : getTaxIdNumberOptions(country, entityType, invertCompanyTypeFilter)?.[0]?.id);
2075
+ return existingTaxInformation?.type ?? (existingTaxInformation?.number ? inferTaxIdNumberType(taxInformation, country, entityType) : getTaxIdNumberOptions(country, entityType)?.[0]?.id);
2080
2076
  }
2081
2077
  //#endregion
2082
2078
  //#region src/components/Business/forms/rules.constants.ts
@@ -2222,7 +2218,7 @@ var COUNTRIES_THAT_DO_NOT_USE_TAX_ID_FOR_SOLE_PROP = [CountryCodes.Singapore];
2222
2218
  var COUNTRIES_WITH_OPTIONAL_REGISTRATION_NUMBER_SOLE_PROPS = [CountryCodes.Germany];
2223
2219
  //#endregion
2224
2220
  //#region src/components/Shared/fields/TaxInformationField/TaxIdNumberTypeSelector/TaxIdNumberTypeSelector.tsx
2225
- function TaxIdNumberTypeSelector({ country, companyType, invertCompanyTypeFilter, selected, setSelected, exemptedOptionLabel, isUsSoleProp, errorMessage }) {
2221
+ function TaxIdNumberTypeSelector({ country, companyType, selected, setSelected, exemptedOptionLabel, isUsSoleProp, errorMessage }) {
2226
2222
  const { t } = useTranslation("common");
2227
2223
  const handleSelect = useCallback((selectedStr) => {
2228
2224
  const newSelected = selectedStr;
@@ -2233,7 +2229,7 @@ function TaxIdNumberTypeSelector({ country, companyType, invertCompanyTypeFilter
2233
2229
  setSelected(newSelected);
2234
2230
  }, [exemptedOptionLabel, setSelected]);
2235
2231
  const options = useMemo(() => {
2236
- const availableOptions = getTaxIdNumberOptions(country, companyType, invertCompanyTypeFilter) ?? [];
2232
+ const availableOptions = getTaxIdNumberOptions(country, companyType) ?? [];
2237
2233
  if (availableOptions.length === 0 || !exemptedOptionLabel) return availableOptions;
2238
2234
  return [...availableOptions, {
2239
2235
  id: "exempted",
@@ -2242,8 +2238,7 @@ function TaxIdNumberTypeSelector({ country, companyType, invertCompanyTypeFilter
2242
2238
  }, [
2243
2239
  country,
2244
2240
  companyType,
2245
- exemptedOptionLabel,
2246
- invertCompanyTypeFilter
2241
+ exemptedOptionLabel
2247
2242
  ]);
2248
2243
  useEffect(() => {
2249
2244
  if (!isUsSoleProp && !selected && options.length > 0) handleSelect(options[0].id);
@@ -1,159 +1,35 @@
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] = "a4371a0d-61fe-477d-8508-dcc046a49e8b", e._sentryDebugIdIdentifier = "sentry-dbid-a4371a0d-61fe-477d-8508-dcc046a49e8b");
3
+ n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "11960a93-b087-4ed6-b9bd-f9ecd23d952d", e._sentryDebugIdIdentifier = "sentry-dbid-11960a93-b087-4ed6-b9bd-f9ecd23d952d");
4
4
  } catch (e) {}
5
5
  import { r as useTranslation } from "./translation-BR3rLb4m.js";
6
- import { j as useToggleContext } from "./resolveEnvironment-BO-j8Bwm.js";
6
+ import { j as useToggleContext } from "./resolveEnvironment-l2TGYFxw.js";
7
7
  import { t as LegalEntityTypes } from "./legal-entity-type-0MfCGzUf.js";
8
8
  import { l as keysOf, o as objectsDeepEqual } from "./AnalyticsContext-BFrJmsp0.js";
9
9
  import { t as CountryCodes } from "./country-code-CJk2hdPu.js";
10
10
  import { t as TaskTypes } from "./taskTypes-NawDTp5n.js";
11
11
  import { c as CompanyTypesValues } from "./bafinUtils-BKq-s1Ka.js";
12
12
  import { n as translateTranslatable } from "./utils-BtyrxTzp.js";
13
- import "./Address-ByNnIfrX.js";
14
- import "./ErrorPanel-CbTDpmpi.js";
15
- import { a as alphanumericInputs, c as nonInputs, i as alphaInputs, l as numericInputs, s as makeMask, t as MaskedInput, u as spacer } from "./MaskedInput-CPYBS2wP.js";
16
- import { r as MemoizedDocumentUpload } from "./TaxInformationField-7C6iLtFs.js";
13
+ import "./Address-BAE2QQ-5.js";
14
+ import "./ErrorPanel-B5GuGh_o.js";
15
+ import { a as alphanumericInputs, c as nonInputs, i as alphaInputs, l as numericInputs, s as makeMask, t as MaskedInput, u as spacer } from "./MaskedInput-VtgquqE0.js";
16
+ import { r as MemoizedDocumentUpload } from "./TaxInformationField-BKnequKz.js";
17
17
  import { t as uppercase } from "./uppercase-DvjwUM0n.js";
18
- import { a as validateNotEmptyOnBlur, o as validatePatternOnBlur } from "./patternValidators-Dg_UvQs9.js";
19
- import { a as COUNTRIES_REQUIRING_FINANCIAL_INFORMATION, b as REGISTRATION_NUMBER_EXEMPTION_RULES, f as COUNTRIES_USING_COMPANY_SEARCH } from "./utils-ztjLNfgn.js";
18
+ import { a as validateNotEmptyOnBlur, o as validatePatternOnBlur } from "./patternValidators-Bza9mezL.js";
19
+ import { a as COUNTRIES_REQUIRING_FINANCIAL_INFORMATION, b as REGISTRATION_NUMBER_EXEMPTION_RULES, f as COUNTRIES_USING_COMPANY_SEARCH } from "./utils-Dizf4Xxc.js";
20
20
  import { t as resolveFieldMetadata } from "./fieldConfigurations-CZCFghnK.js";
21
21
  import { t as Field } from "./Field-DAUlw0M5.js";
22
22
  import { t as Checkbox } from "./Checkbox-DPFQmSgp.js";
23
- import "./Dropzone-B5f298Ah.js";
24
- import "./useForm-CANEmbG2.js";
23
+ import "./Dropzone-JmVSKeOB.js";
24
+ import "./useForm-BcvMNl0D.js";
25
25
  import { t as InputText } from "./InputText-B-ebylm4.js";
26
26
  import { t as RadioGroup } from "./RadioGroup-CMiBSXCA.js";
27
- import "./ContextGuidance-CaskjnLp.js";
28
- import { i as getCompanyRegistrationNumberOptions, l as registrationNumberDefaultFieldConfig, n as getDefaultRegistrationNumberType, o as exemptFromRegistrationNumberDefaultFieldConfig, s as exemptFromRegistrationNumberDefaultFieldMetadata, t as CompanyRegistrationNumberTypeSelector, u as registrationNumberDefaultFieldMetadata } from "./CompanyRegistrationNumberTypeSelector-B72MvtCt.js";
27
+ import "./ContextGuidance-DLErBW62.js";
28
+ import { i as getCompanyRegistrationNumberOptions, l as registrationNumberDefaultFieldConfig, n as getDefaultRegistrationNumberType, o as exemptFromRegistrationNumberDefaultFieldConfig, s as exemptFromRegistrationNumberDefaultFieldMetadata, t as CompanyRegistrationNumberTypeSelector, u as registrationNumberDefaultFieldMetadata } from "./CompanyRegistrationNumberTypeSelector-CFqyuzoH.js";
29
29
  import { memo } from "preact/compat";
30
30
  import { useCallback as useCallback$1, useEffect as useEffect$1, useMemo as useMemo$1 } from "preact/hooks";
31
31
  import { Fragment as Fragment$1, jsx, jsxs } from "preact/jsx-runtime";
32
32
  import "preact";
33
- //#region src/components/Shared/fields/BusinessRegistrationNumberField/BusinessRegistrationNumberField.tsx
34
- var BUSINESS_REGISTRATION_NUMBER_FIELD = [
35
- "registrationNumber",
36
- "registrationNumberType",
37
- "exemptedFromRegistrationNumber"
38
- ];
39
- function BusinessRegistrationNumberField({ data, valid, errors, helperText, readonly, shouldValidate, optional, handleChangeFor, country, state, canExempt, companyType, invertCompanyTypeFilter }) {
40
- const { t } = useTranslation("common");
41
- const { isFeatureEnabled } = useToggleContext();
42
- const registrationNumberOptions = getCompanyRegistrationNumberOptions(country, companyType, invertCompanyTypeFilter);
43
- const defaultType = getDefaultRegistrationNumberType(data.registrationNumber, country, companyType, invertCompanyTypeFilter);
44
- const showExemptedOption = canExempt && !!registrationNumberOptions && registrationNumberOptions.length > 1;
45
- const showExemptionGuidance = isFeatureEnabled("EnableUnifiedCompanySearch") && companyType !== "trust" && companyType !== "soleProprietorship" && !!data.exemptedFromRegistrationNumber;
46
- const registrationNumberType = data.exemptedFromRegistrationNumber ? "exempted" : data.registrationNumberType ? data.registrationNumberType : defaultType;
47
- const fieldMetadata = resolveFieldMetadata(registrationNumberDefaultFieldConfig[country], {
48
- registrationNumberType: registrationNumberType === "exempted" ? void 0 : registrationNumberType,
49
- state
50
- }, registrationNumberDefaultFieldMetadata);
51
- const exemptionFieldMetadata = resolveFieldMetadata(exemptFromRegistrationNumberDefaultFieldConfig[country], {}, exemptFromRegistrationNumberDefaultFieldMetadata);
52
- const handleRegistrationNumberChange = (e, mode) => {
53
- const value = typeof e === "string" ? e : e.currentTarget.value;
54
- handleChangeFor("registrationNumber", mode)(value);
55
- handleChangeFor("registrationNumberType")(registrationNumberType);
56
- };
57
- const handleExemptedFromRegistrationNumber = (exempt) => {
58
- if (exempt) handleChangeFor("registrationNumber")("");
59
- handleChangeFor("exemptedFromRegistrationNumber")(exempt);
60
- };
61
- const handleCompanyRegistrationNumberTypeChange = (regNumberType) => {
62
- if (regNumberType === "exempted") {
63
- if (!canExempt) throw Error(`${country} does not allow tax exemptions`);
64
- handleChangeFor("registrationNumber")("");
65
- handleChangeFor("exemptedFromRegistrationNumber")(true);
66
- handleChangeFor("registrationNumberType")(void 0);
67
- return;
68
- }
69
- if (canExempt && data.exemptedFromRegistrationNumber === true) handleChangeFor("exemptedFromRegistrationNumber")(false);
70
- handleChangeFor("registrationNumber")("");
71
- handleChangeFor("registrationNumberType")(regNumberType);
72
- };
73
- if (registrationNumberType && registrationNumberType !== "exempted") {
74
- if (!registrationNumberOptions?.find((option) => option.id === registrationNumberType)) handleChangeFor("registrationNumberType")(defaultType);
75
- }
76
- return /* @__PURE__ */ jsxs("div", { children: [
77
- /* @__PURE__ */ jsx(CompanyRegistrationNumberTypeSelector, {
78
- companyType,
79
- country,
80
- invertCompanyTypeFilter,
81
- setSelected: handleCompanyRegistrationNumberTypeChange,
82
- selected: registrationNumberType,
83
- exemptedOptionLabel: showExemptedOption ? translateTranslatable(t, exemptionFieldMetadata.label) : void 0
84
- }),
85
- /* @__PURE__ */ jsx(MaskedInput, {
86
- "aria-required": true,
87
- "aria-invalid": !valid.registrationNumber,
88
- name: "registrationNumber",
89
- type: "text",
90
- value: data?.registrationNumber ?? "",
91
- label: translateTranslatable(t, fieldMetadata.label) ?? "",
92
- formatGuidance: translateTranslatable(t, fieldMetadata.guidanceText),
93
- errorMessage: errors.registrationNumber,
94
- isValid: Boolean(valid.registrationNumber),
95
- onInput: (e) => handleRegistrationNumberChange(e, "input"),
96
- onBlur: (e) => handleRegistrationNumberChange(e, "blur"),
97
- disabled: data.exemptedFromRegistrationNumber,
98
- optional,
99
- readonly,
100
- shouldValidate: !optional && shouldValidate,
101
- helper: helperText,
102
- ...fieldMetadata.mask
103
- }),
104
- canExempt && !showExemptedOption && /* @__PURE__ */ jsx(Field, {
105
- name: "exemptedFromRegistrationNumber",
106
- formatGuidance: showExemptionGuidance ? translateTranslatable(t, exemptionFieldMetadata.guidanceText) : void 0,
107
- children: (childProps) => /* @__PURE__ */ jsx(Checkbox, {
108
- ...childProps,
109
- "aria-required": false,
110
- "aria-invalid": false,
111
- name: "exemptedFromRegistrationNumber",
112
- value: "exemptedFromRegistrationNumber",
113
- checked: Boolean(data.exemptedFromRegistrationNumber),
114
- label: translateTranslatable(t, exemptionFieldMetadata.label),
115
- readonly,
116
- onChange: handleExemptedFromRegistrationNumber
117
- })
118
- })
119
- ] });
120
- }
121
- //#endregion
122
- //#region src/components/Business/utils/utils.ts
123
- var countryToTaxInfoTypeMap = {
124
- US: "EIN",
125
- AU: "ABN",
126
- NZ: "IRD",
127
- HK: "BRN",
128
- SG: "GST"
129
- };
130
- var isFinancialInformationRequired = (isFinancialInformationFeatureEnabled, taskType, country, capabilities, legalEntityType) => {
131
- const isOrganization = legalEntityType === LegalEntityTypes.ORGANIZATION;
132
- if (!isFinancialInformationFeatureEnabled || !COUNTRIES_REQUIRING_FINANCIAL_INFORMATION.includes(country)) return;
133
- if (country === CountryCodes.UnitedKingdom && (taskType === TaskTypes.SOLE_PROPRIETOR_COMPANY || taskType === TaskTypes.BUSINESS_DETAILS)) return "REQUIRED";
134
- if (taskType === TaskTypes.BUSINESS_DETAILS && isOrganization) {
135
- if (keysOf(capabilities ?? {}).some((capability) => capability === "issueBankAccount")) return "REQUIRED";
136
- }
137
- };
138
- var getCountryOfGoverningLaw = (isCountryOfGoverningLawEnabled, basicData) => {
139
- if (!isCountryOfGoverningLawEnabled || basicData?.country !== CountryCodes.UnitedKingdom) return;
140
- return !basicData.countryOfGoverningLaw ? CountryCodes.UnitedKingdom : basicData.countryOfGoverningLaw;
141
- };
142
- /**
143
- * Checks if a country allows registration number exemption for business details.
144
- *
145
- * @param country The country code to check.
146
- * @returns True if the country allows registration number exemption, false otherwise.
147
- */
148
- var isRegistrationExemptionAllowed = (country) => country in REGISTRATION_NUMBER_EXEMPTION_RULES;
149
- var isRegistrationNumberAbsentStateV4Scenario = (country, entityType) => {
150
- return country === CountryCodes.Australia && (entityType === CompanyTypesValues.GOVERNMENTAL_ORGANIZATION || entityType === CompanyTypesValues.INCORPORATED_PARTNERSHIP) || country === CountryCodes.NewZealand;
151
- };
152
- var isUsingCompanySearch = (country, taskType) => {
153
- if (taskType !== TaskTypes.BUSINESS_DETAILS) return false;
154
- return COUNTRIES_USING_COMPANY_SEARCH.includes(country);
155
- };
156
- //#endregion
157
33
  //#region src/components/Shared/fields/DBANameField/DBANameField.tsx
158
34
  var DBA_NAME_FIELD = ["hasDoingBusinessAs", "doingBusinessAs"];
159
35
  function DBANameField({ data, valid, errors, readonly, handleChangeFor }) {
@@ -1159,4 +1035,126 @@ function ConstitutionalDocumentUpload({ id, legalEntityType, ...props }) {
1159
1035
  }
1160
1036
  var MemoizedConstitutionalDocument = memo(ConstitutionalDocumentUpload, (prevProps, nextProps) => objectsDeepEqual(prevProps.requiredFields, nextProps.requiredFields) && objectsDeepEqual(prevProps.data, nextProps.data) && objectsDeepEqual(prevProps.formVerificationErrors, nextProps.formVerificationErrors) && objectsDeepEqual(prevProps.fieldValidationErrors, nextProps.fieldValidationErrors) && prevProps.shouldValidate === nextProps.shouldValidate);
1161
1037
  //#endregion
1162
- export { BusinessRegistrationNumberField as S, isFinancialInformationRequired as _, VAT_NUMBER_FIELD as a, isUsingCompanySearch as b, defaultFieldConfig as c, doingBusinessAsAbsentFieldMetadata as d, doingBusinessAsFieldMetadata as f, getCountryOfGoverningLaw as g, countryToTaxInfoTypeMap as h, operationalAddressIsSameItems as i, defaultFieldMetadata as l, DBA_NAME_FIELD as m, registrationAddressFields as n, VatNumberField as o, DBANameField as p, operationalAddressIsSameIds as r, getDefaultVatNumberType as s, MemoizedConstitutionalDocument as t, vatAbsenceReasonMetadata as u, isRegistrationExemptionAllowed as v, BUSINESS_REGISTRATION_NUMBER_FIELD as x, isRegistrationNumberAbsentStateV4Scenario as y };
1038
+ //#region src/components/Shared/fields/BusinessRegistrationNumberField/BusinessRegistrationNumberField.tsx
1039
+ var BUSINESS_REGISTRATION_NUMBER_FIELD = [
1040
+ "registrationNumber",
1041
+ "registrationNumberType",
1042
+ "exemptedFromRegistrationNumber"
1043
+ ];
1044
+ function BusinessRegistrationNumberField({ data, valid, errors, helperText, readonly, shouldValidate, optional, handleChangeFor, country, state, canExempt, companyType }) {
1045
+ const { t } = useTranslation("common");
1046
+ const registrationNumberOptions = getCompanyRegistrationNumberOptions(country, companyType);
1047
+ const defaultType = getDefaultRegistrationNumberType(data.registrationNumber, country, companyType);
1048
+ const showExemptedOption = canExempt && !!registrationNumberOptions && registrationNumberOptions.length > 1;
1049
+ const showExemptionGuidance = companyType !== "trust" && companyType !== "soleProprietorship" && !!data.exemptedFromRegistrationNumber;
1050
+ const registrationNumberType = data.exemptedFromRegistrationNumber ? "exempted" : data.registrationNumberType ? data.registrationNumberType : defaultType;
1051
+ const fieldMetadata = resolveFieldMetadata(registrationNumberDefaultFieldConfig[country], {
1052
+ registrationNumberType: registrationNumberType === "exempted" ? void 0 : registrationNumberType,
1053
+ state
1054
+ }, registrationNumberDefaultFieldMetadata);
1055
+ const exemptionFieldMetadata = resolveFieldMetadata(exemptFromRegistrationNumberDefaultFieldConfig[country], {}, exemptFromRegistrationNumberDefaultFieldMetadata);
1056
+ const handleRegistrationNumberChange = (e, mode) => {
1057
+ const value = typeof e === "string" ? e : e.currentTarget.value;
1058
+ handleChangeFor("registrationNumber", mode)(value);
1059
+ handleChangeFor("registrationNumberType")(registrationNumberType);
1060
+ };
1061
+ const handleExemptedFromRegistrationNumber = (exempt) => {
1062
+ if (exempt) handleChangeFor("registrationNumber")("");
1063
+ handleChangeFor("exemptedFromRegistrationNumber")(exempt);
1064
+ };
1065
+ const handleCompanyRegistrationNumberTypeChange = (regNumberType) => {
1066
+ if (regNumberType === "exempted") {
1067
+ if (!canExempt) throw Error(`${country} does not allow tax exemptions`);
1068
+ handleChangeFor("registrationNumber")("");
1069
+ handleChangeFor("exemptedFromRegistrationNumber")(true);
1070
+ handleChangeFor("registrationNumberType")(void 0);
1071
+ return;
1072
+ }
1073
+ if (canExempt && data.exemptedFromRegistrationNumber === true) handleChangeFor("exemptedFromRegistrationNumber")(false);
1074
+ handleChangeFor("registrationNumber")("");
1075
+ handleChangeFor("registrationNumberType")(regNumberType);
1076
+ };
1077
+ if (registrationNumberType && registrationNumberType !== "exempted") {
1078
+ if (!registrationNumberOptions?.find((option) => option.id === registrationNumberType)) handleChangeFor("registrationNumberType")(defaultType);
1079
+ }
1080
+ return /* @__PURE__ */ jsxs("div", { children: [
1081
+ /* @__PURE__ */ jsx(CompanyRegistrationNumberTypeSelector, {
1082
+ companyType,
1083
+ country,
1084
+ setSelected: handleCompanyRegistrationNumberTypeChange,
1085
+ selected: registrationNumberType,
1086
+ exemptedOptionLabel: showExemptedOption ? translateTranslatable(t, exemptionFieldMetadata.label) : void 0
1087
+ }),
1088
+ /* @__PURE__ */ jsx(MaskedInput, {
1089
+ "aria-required": true,
1090
+ "aria-invalid": !valid.registrationNumber,
1091
+ name: "registrationNumber",
1092
+ type: "text",
1093
+ value: data?.registrationNumber ?? "",
1094
+ label: translateTranslatable(t, fieldMetadata.label) ?? "",
1095
+ formatGuidance: translateTranslatable(t, fieldMetadata.guidanceText),
1096
+ errorMessage: errors.registrationNumber,
1097
+ isValid: Boolean(valid.registrationNumber),
1098
+ onInput: (e) => handleRegistrationNumberChange(e, "input"),
1099
+ onBlur: (e) => handleRegistrationNumberChange(e, "blur"),
1100
+ disabled: data.exemptedFromRegistrationNumber,
1101
+ optional,
1102
+ readonly,
1103
+ shouldValidate: !optional && shouldValidate,
1104
+ helper: helperText,
1105
+ ...fieldMetadata.mask
1106
+ }),
1107
+ canExempt && !showExemptedOption && /* @__PURE__ */ jsx(Field, {
1108
+ name: "exemptedFromRegistrationNumber",
1109
+ formatGuidance: showExemptionGuidance ? translateTranslatable(t, exemptionFieldMetadata.guidanceText) : void 0,
1110
+ children: (childProps) => /* @__PURE__ */ jsx(Checkbox, {
1111
+ ...childProps,
1112
+ "aria-required": false,
1113
+ "aria-invalid": false,
1114
+ name: "exemptedFromRegistrationNumber",
1115
+ value: "exemptedFromRegistrationNumber",
1116
+ checked: Boolean(data.exemptedFromRegistrationNumber),
1117
+ label: translateTranslatable(t, exemptionFieldMetadata.label),
1118
+ readonly,
1119
+ onChange: handleExemptedFromRegistrationNumber
1120
+ })
1121
+ })
1122
+ ] });
1123
+ }
1124
+ //#endregion
1125
+ //#region src/components/Business/utils/utils.ts
1126
+ var countryToTaxInfoTypeMap = {
1127
+ US: "EIN",
1128
+ AU: "ABN",
1129
+ NZ: "IRD",
1130
+ HK: "BRN",
1131
+ SG: "GST"
1132
+ };
1133
+ var isFinancialInformationRequired = (isFinancialInformationFeatureEnabled, taskType, country, capabilities, legalEntityType) => {
1134
+ const isOrganization = legalEntityType === LegalEntityTypes.ORGANIZATION;
1135
+ if (!isFinancialInformationFeatureEnabled || !COUNTRIES_REQUIRING_FINANCIAL_INFORMATION.includes(country)) return;
1136
+ if (country === CountryCodes.UnitedKingdom && (taskType === TaskTypes.SOLE_PROPRIETOR_COMPANY || taskType === TaskTypes.BUSINESS_DETAILS)) return "REQUIRED";
1137
+ if (taskType === TaskTypes.BUSINESS_DETAILS && isOrganization) {
1138
+ if (keysOf(capabilities ?? {}).some((capability) => capability === "issueBankAccount")) return "REQUIRED";
1139
+ }
1140
+ };
1141
+ var getCountryOfGoverningLaw = (isCountryOfGoverningLawEnabled, basicData) => {
1142
+ if (!isCountryOfGoverningLawEnabled || basicData?.country !== CountryCodes.UnitedKingdom) return;
1143
+ return !basicData.countryOfGoverningLaw ? CountryCodes.UnitedKingdom : basicData.countryOfGoverningLaw;
1144
+ };
1145
+ /**
1146
+ * Checks if a country allows registration number exemption for business details.
1147
+ *
1148
+ * @param country The country code to check.
1149
+ * @returns True if the country allows registration number exemption, false otherwise.
1150
+ */
1151
+ var isRegistrationExemptionAllowed = (country) => country in REGISTRATION_NUMBER_EXEMPTION_RULES;
1152
+ var isRegistrationNumberAbsentStateV4Scenario = (country, entityType) => {
1153
+ return country === CountryCodes.Australia && (entityType === CompanyTypesValues.GOVERNMENTAL_ORGANIZATION || entityType === CompanyTypesValues.INCORPORATED_PARTNERSHIP) || country === CountryCodes.NewZealand;
1154
+ };
1155
+ var isUsingCompanySearch = (country, taskType) => {
1156
+ if (taskType !== TaskTypes.BUSINESS_DETAILS) return false;
1157
+ return COUNTRIES_USING_COMPANY_SEARCH.includes(country);
1158
+ };
1159
+ //#endregion
1160
+ export { DBA_NAME_FIELD as S, defaultFieldMetadata as _, isRegistrationNumberAbsentStateV4Scenario as a, doingBusinessAsFieldMetadata as b, BusinessRegistrationNumberField as c, operationalAddressIsSameIds as d, operationalAddressIsSameItems as f, defaultFieldConfig as g, getDefaultVatNumberType as h, isRegistrationExemptionAllowed as i, MemoizedConstitutionalDocument as l, VatNumberField as m, getCountryOfGoverningLaw as n, isUsingCompanySearch as o, VAT_NUMBER_FIELD as p, isFinancialInformationRequired as r, BUSINESS_REGISTRATION_NUMBER_FIELD as s, countryToTaxInfoTypeMap as t, registrationAddressFields as u, vatAbsenceReasonMetadata as v, DBANameField as x, doingBusinessAsAbsentFieldMetadata as y };