@adyen/kyc-components 4.14.1 → 4.15.0-beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (153) hide show
  1. package/dist/{AcceptTermsOfServiceComponent-BtoIqcdp.js → AcceptTermsOfServiceComponent-D9RkOGLa.js} +21 -21
  2. package/dist/{Accordion-CSpLDvKK.js → Accordion-DmH02rWQ.js} +1 -1
  3. package/dist/{AccountSetupRejected-CkPaqkb_.js → AccountSetupRejected-DXrxeaTA.js} +2 -2
  4. package/dist/{AdaptiveWorkflow-Btk2jonQ.js → AdaptiveWorkflow-DkyHp3I-.js} +31 -31
  5. package/dist/{AdaptiveWorkflowComponent-B9tT8tHO.js → AdaptiveWorkflowComponent-C0s3XA9b.js} +6 -6
  6. package/dist/{Address-k3vjnpJO.js → Address-ByNnIfrX.js} +14 -15
  7. package/dist/{Avatar-DqBKHRAr.js → Avatar-Z3MS8_pW.js} +1 -1
  8. package/dist/{BusinessFinancingDropin-04bEvEtW.js → BusinessFinancingDropin-BI9qbTfa.js} +34 -35
  9. package/dist/{BusinessFinancingPage-CVsDC4X9.js → BusinessFinancingPage-rrQUrZBL.js} +7 -7
  10. package/dist/{BusinessTypeSelectionPage-uql-Z_m_.js → BusinessTypeSelectionPage-DVlhdBOT.js} +14 -14
  11. package/dist/{Button-DBN5gM_d.js → Button-3qGOI53m.js} +1 -1
  12. package/dist/{Checkbox-tUvgt59R.js → Checkbox-DPFQmSgp.js} +1 -1
  13. package/dist/{CompanyRegistrationNumberTypeSelector-BxgvqXhm.js → CompanyRegistrationNumberTypeSelector-B72MvtCt.js} +7 -7
  14. package/dist/{Confirm-C4GotFqm.js → Confirm-6QfuYcA7.js} +3 -3
  15. package/dist/{ConstitutionalDocument-Bl13jW1t.js → ConstitutionalDocument-FDgHtu1v.js} +57 -19
  16. package/dist/{ContactDetails-BnOG9n_e.js → ContactDetails-9JGt7Lx0.js} +7 -7
  17. package/dist/{ContextGuidance-B8Ox0QgB.js → ContextGuidance-CaskjnLp.js} +2 -2
  18. package/dist/{CountryField-BsusUvF9.js → CountryField-D3T5pszb.js} +5 -5
  19. package/dist/{Currency-DOTMElN9.js → Currency-C9smd9hj.js} +45 -10
  20. package/dist/{CustomerSupport-DRbZuWjX.js → CustomerSupport-CxnPz_MZ.js} +13 -13
  21. package/dist/{DebugModal-BpMHPmwR.js → DebugModal-CmyRTcuw.js} +10 -10
  22. package/dist/{DecisionMakerDetails-DgFdlicj.js → DecisionMakerDetails-Cur05tOk.js} +15 -15
  23. package/dist/{DecisionMakerDetailsPage-DBQOBXSO.js → DecisionMakerDetailsPage-Dqkcvgs5.js} +8 -8
  24. package/dist/{DecisionMakers-CKREWpPo.js → DecisionMakers-oSWUwKsE.js} +17 -17
  25. package/dist/{Dropzone-Pg3C3qWS.js → Dropzone-B5f298Ah.js} +19 -7
  26. package/dist/{EmbeddedStatus-BKVqJCeu.js → EmbeddedStatus-Cz3F9iXD.js} +4 -4
  27. package/dist/{EndStateLayout-DfThkkI3.js → EndStateLayout-ic1EOve9.js} +2 -2
  28. package/dist/{EntityAssociation-ByN0fc9V.js → EntityAssociation-Bfb_h3mX.js} +7 -7
  29. package/dist/{ErrorPanel-DV34PhDv.js → ErrorPanel-CbTDpmpi.js} +3 -3
  30. package/dist/{Field-CQWAWo5U.js → Field-DAUlw0M5.js} +3 -3
  31. package/dist/{FormNavigation-BwLxW6W7.js → FormNavigation-LjknVdf5.js} +2 -2
  32. package/dist/{Individual.rules-DrC9MYN9.js → Individual.rules-Cc2Uigav.js} +8 -5
  33. package/dist/{IndividualDropin-9y1vfKN5.js → IndividualDropin-DypupM2F.js} +46 -48
  34. package/dist/{InputDate-cTgjAhzm.js → InputDate-B_jtgBB5.js} +2 -2
  35. package/dist/{InputText-8abfNtHh.js → InputText-B-ebylm4.js} +3 -3
  36. package/dist/{Introduction-z76X1iQT.js → Introduction-CvXA6-RL.js} +8 -8
  37. package/dist/{InvitedDecisionMakerComponent-CHn2iAy5.js → InvitedDecisionMakerComponent-D5gat3zM.js} +20 -24
  38. package/dist/{JpAddress-Db3HFYFH.js → JpAddress-C38zRvZE.js} +13 -13
  39. package/dist/{LandingLayout-Dg0sEASR.js → LandingLayout-C1yh_ggf.js} +1 -1
  40. package/dist/{LegalCompanyNameField-BtsJjXYy.js → LegalCompanyNameField-BxLhDFZ4.js} +5 -5
  41. package/dist/{LegalRepresentativeDetailsPage-CQk2tQEe.js → LegalRepresentativeDetailsPage-B-MsZPf-.js} +7 -7
  42. package/dist/{Link-DtaYQWb-.js → Link-C0jrInxa.js} +1 -1
  43. package/dist/{ListItem-CZWSCEeJ.js → ListItem-C_g-4xPP.js} +2 -2
  44. package/dist/{MaskedInput-PFxgE0kR.js → MaskedInput-CPYBS2wP.js} +6 -6
  45. package/dist/{MaybeModal-4LnufPIv.js → MaybeModal-95T3hqPt.js} +2 -2
  46. package/dist/{Modal-BgeE7zM2.js → Modal-C__-5LgI.js} +1 -1
  47. package/dist/{Name-DtDvWkku.js → Name-BlfQjJkJ.js} +4 -4
  48. package/dist/{NewSummary-DyxWDA7k.js → NewSummary-Cgebw71K.js} +4 -4
  49. package/dist/{PayoutDetailsDropinMultiForm-CLjOrM_6.js → PayoutDetailsDropinMultiForm-BvJmm0SM.js} +131 -534
  50. package/dist/{PayoutDetailsPage-DeZOe9GX.js → PayoutDetailsPage-CmUyWu_t.js} +8 -8
  51. package/dist/{RadioGroup-DlzXLoMN.js → RadioGroup-CMiBSXCA.js} +2 -2
  52. package/dist/{Review-BFvr472f.js → Review-B1T5E3pI.js} +8 -8
  53. package/dist/{RootBusinessDetailsPage-BBlZWEzV.js → RootBusinessDetailsPage-CB44DIGg.js} +6 -6
  54. package/dist/{RootBusinessLinesPage-BQceCG8b.js → RootBusinessLinesPage-BdxPHbIJ.js} +31 -31
  55. package/dist/{RootIndividualDetailsPage-8i_B3gDn.js → RootIndividualDetailsPage-BcM3xHZ8.js} +7 -7
  56. package/dist/{Select-vMYP9lm8.js → Select-CvIMIYjl.js} +6 -6
  57. package/dist/{SignPCIComponent-DNHXXhbJ.js → SignPCIComponent-o5iWDa9u.js} +20 -20
  58. package/dist/{SingpassSelection-Yo9Ir1eA.js → SingpassSelection-CRFf-u1d.js} +6 -6
  59. package/dist/{SoleProprietorshipPage-ME_qvKgi.js → SoleProprietorshipPage-DFEn0Ewu.js} +7 -7
  60. package/dist/{SourceOfFundsPage-c0L-O5Ak.js → SourceOfFundsPage-BCVelN0X.js} +35 -35
  61. package/dist/{Summary-B97jffAv.js → Summary-8V5EZBd4.js} +9 -9
  62. package/dist/{TaskListItem-COPCLnC-.js → TaskListItem-C3XFLrVq.js} +9 -9
  63. package/dist/{TaskVerificationStatus-gGr34dp5.js → TaskVerificationStatus-DTHF8B9j.js} +1 -1
  64. package/dist/{TaxInformationField-CBbvAd7v.js → TaxInformationField-7C6iLtFs.js} +14 -15
  65. package/dist/{TaxReportingDropin-ce-PK1rl.js → TaxReportingDropin-CW0-CVJR.js} +18 -18
  66. package/dist/{TextArea-C2DkQ41s.js → TextArea-BvphlYOu.js} +4 -4
  67. package/dist/{TileGroup-B7-q4NXH.js → TileGroup-B8II9Mip.js} +2 -2
  68. package/dist/{TrustDetailsPage-DJ7mVmqc.js → TrustDetailsPage-Cw2OH_cP.js} +32 -32
  69. package/dist/{TrustMemberCompanyPage-Cpx7cfoE.js → TrustMemberCompanyPage-XaVxyqQT.js} +8 -8
  70. package/dist/{TrustMemberIndividualPage-M12Ee9Xk.js → TrustMemberIndividualPage-DQd5nIl2.js} +7 -7
  71. package/dist/{TrustMemberRoleAndTypePage-D13CmXhi.js → TrustMemberRoleAndTypePage-BJhaU0Ju.js} +20 -20
  72. package/dist/{TrustMembersOverview-DJk9M9PC.js → TrustMembersOverview-CsdYkKZt.js} +13 -13
  73. package/dist/{UnincorporatedPartnershipIndividualPage-qRTM5O7X.js → UnincorporatedPartnershipIndividualPage-CeDtx9P7.js} +7 -7
  74. package/dist/{UnincorporatedPartnershipMemberCompanyPage-DiiD4OOl.js → UnincorporatedPartnershipMemberCompanyPage-B4AUh2uw.js} +8 -8
  75. package/dist/{UnincorporatedPartnershipMemberRoleAndTypePage-CwI6YHT0.js → UnincorporatedPartnershipMemberRoleAndTypePage-CaQgmfeu.js} +12 -12
  76. package/dist/{UnincorporatedPartnershipMembersOverview-B5xOS1CT.js → UnincorporatedPartnershipMembersOverview-zm15XNm0.js} +9 -9
  77. package/dist/{VerificationErrorAlert-DSRLnwIn.js → VerificationErrorAlert-D76yRVAZ.js} +4 -4
  78. package/dist/{accountHolderUtils-C8atFmal.js → accountHolderUtils-DnEhXSHF.js} +1 -1
  79. package/dist/adyen-business-financing.js +8 -8
  80. package/dist/adyen-individual-configuration.js +8 -8
  81. package/dist/adyen-individual-status.js +8 -8
  82. package/dist/adyen-invited-decision-maker.js +3 -3
  83. package/dist/adyen-onboarding.js +62 -57
  84. package/dist/adyen-terms-of-service-management.js +3 -3
  85. package/dist/adyen-terms-of-service-status.js +7 -7
  86. package/dist/adyen-transfer-instrument-configuration.js +7 -7
  87. package/dist/adyen-transfer-instrument-management.js +13 -13
  88. package/dist/adyen-verification-status.js +6 -6
  89. package/dist/{constants-Qca4jZBG.js → constants-DvK9RVMD.js} +6 -6
  90. package/dist/{debouncedInputEvent-D2-Kctv9.js → debouncedInputEvent-Fwwp_K_-.js} +2 -2
  91. package/dist/en-US-BeIZBdDm.js +7 -0
  92. package/dist/en-US-CKZZNUWW.js +16 -0
  93. package/dist/{en-US-BIYEZxZV.js → en-US-CmzloEL3.js} +3 -1
  94. package/dist/{getProblemsForEntity-CogrYbYP.js → getProblemsForEntity-CXzgYL6R.js} +1 -1
  95. package/dist/{http-DYzfwjcs.js → http-DeQp0G69.js} +1 -1
  96. package/dist/{invalidateRootLegalEntity-DvE5hGMG.js → invalidateRootLegalEntity-DfF59VHE.js} +3 -3
  97. package/dist/{localizeDateString-DB-oTe60.js → localizeDateString-CU7HGR-k.js} +1 -1
  98. package/dist/{mapExistingFile-CZB9JLAV.js → mapExistingFile-BmyzNoup.js} +2 -2
  99. package/dist/{mapJpAddressSchemaToAddressLocalizations-DUElzaoS.js → mapJpAddressSchemaToAddressLocalizations-BGLDkUt1.js} +1 -1
  100. package/dist/{mapLegalEntityToIndividualSchema-BsHNunzQ.js → mapLegalEntityToIndividualSchema-BUIjjkrb.js} +7 -7
  101. package/dist/{mapTransferInstrumentToPayoutAccount-DuqJ08ye.js → mapTransferInstrumentToPayoutAccount-DZMqLmU8.js} +2 -2
  102. package/dist/{omitObscuredFieldsIfUnchanged-SoT_JDza.js → omitObscuredFieldsIfUnchanged-Datp62BM.js} +2 -2
  103. package/dist/{patternValidators-B8R6IIuO.js → patternValidators-Dg_UvQs9.js} +1 -1
  104. package/dist/{process-field-configurations-U459c7bG.js → process-field-configurations-n3ecaPQ8.js} +1 -1
  105. package/dist/{resolveEnvironment-BqViMsaD.js → resolveEnvironment-BO-j8Bwm.js} +29 -26
  106. package/dist/{roleMetadata-bznvTmh3.js → roleMetadata-CWdYxbqM.js} +1 -1
  107. package/dist/{translation-ZXpd9jdD.js → translation-BR3rLb4m.js} +1 -1
  108. package/dist/types/components/Business/forms/rules.constants.d.ts +39 -3
  109. package/dist/types/components/Business/forms/rules.d.ts +0 -39
  110. package/dist/types/components/Business/utils/utils.d.ts +13 -0
  111. package/dist/types/components/Shared/forms/Address/utils.d.ts +1 -1
  112. package/dist/types/utils/entityStatusUtil.d.ts +1 -1
  113. package/dist/types/utils/getFormSlice.d.ts +12 -0
  114. package/dist/{types-Bvp3aTbC.js → types-KjTYEnAG.js} +1 -1
  115. package/dist/{unincorporated-partnership-GaTPaALJ.js → unincorporated-partnership-BstfjTh2.js} +1 -1
  116. package/dist/{useAssociatedLegalEntity-CQAe7Co6.js → useAssociatedLegalEntity-QRvyeNwU.js} +2 -2
  117. package/dist/{useBusinessDetailsData-CHXnGCLl.js → useBusinessDetailsData-DBmj3nNJ.js} +240 -57
  118. package/dist/{useBusinessLines-Dshc0pYD.js → useBusinessLines-B2iCcDej.js} +1 -1
  119. package/dist/{useCanSeeIntroduction-DvqgbYjS.js → useCanSeeIntroduction-Cj5FkQFO.js} +1 -1
  120. package/dist/{useCreateLegalEntity-38twl3gB.js → useCreateLegalEntity-zPjl13U3.js} +1 -1
  121. package/dist/{useDataMissingRemediations-7H0hHxXG.js → useDataMissingRemediations-CrKtd_Fd.js} +1 -1
  122. package/dist/{useForm-oeb0FHj0.js → useForm-CANEmbG2.js} +2 -2
  123. package/dist/{useFormContext-BbzJNt4A.js → useFormContext-D9UmS1Tj.js} +8 -8
  124. package/dist/{useLegalEntity-EN5ubX2H.js → useLegalEntity-BXk2tzGe.js} +1 -1
  125. package/dist/{useMultiForm-D7qHT4lY.js → useMultiForm-Ch5yvl-v.js} +2 -2
  126. package/dist/{useNavigate-DoNBuHnj.js → useNavigate-D4SB__Ik.js} +31 -31
  127. package/dist/{useOnboardingStatus-Cf6dZFB2.js → useOnboardingStatus-BgO4uPbW.js} +1 -1
  128. package/dist/{usePciQuestionnaireList-C3bk4K8n.js → usePciQuestionnaireList-BEPt97lw.js} +1 -1
  129. package/dist/{useSalesChannels-CC-N9vqE.js → useSalesChannels-CxxzJGtX.js} +2 -2
  130. package/dist/{useScenarios-ful0VqQ4.js → useScenarios-BRGMIufX.js} +1 -1
  131. package/dist/{useTaskLandedEvent-CtlV_Bum.js → useTaskLandedEvent-Doq80YT8.js} +1 -1
  132. package/dist/{useTaskStatus-CLcXCIz7.js → useTaskStatus-BLkHjMgm.js} +1 -1
  133. package/dist/{useTermsOfServiceStatus-DwWvz0vR.js → useTermsOfServiceStatus-B1OpYOua.js} +1 -1
  134. package/dist/{useTrustMembers-BPfG6J-V.js → useTrustMembers-BOfT11Kj.js} +3 -3
  135. package/dist/{useUnincorporatedPartnershipMembers-wgiUFuxT.js → useUnincorporatedPartnershipMembers-DK_yrIU4.js} +3 -3
  136. package/dist/{useUpdateBusinessLines-BRxlqBnM.js → useUpdateBusinessLines-jlXfi57a.js} +1 -1
  137. package/dist/{useUpdateLegalEntity-YsZGAO7M.js → useUpdateLegalEntity-De_ohp9A.js} +2 -2
  138. package/dist/{utils-DcUoR5qG.js → utils-BtyrxTzp.js} +1 -1
  139. package/dist/{constants-DrtMSDfx.js → utils-DNIZ6F6L.js} +67 -2
  140. package/dist/{utils-CLabUjvb.js → utils-X8YwekZF.js} +3 -3
  141. package/dist/{utils-C_dPMrE_.js → utils-ztjLNfgn.js} +59 -276
  142. package/dist/{validate-Bjm9Iho3.js → validate-7X0zga5Q.js} +1 -1
  143. package/dist/{validate-CqqI54rs.js → validate-B2bZh_uL.js} +6 -18
  144. package/dist/{validateExtractionResult-2oFg6EjE.js → validateExtractionResult-CwehLDDP.js} +14 -14
  145. package/dist/{validationError-tIm9Zzjt.js → validationError-DqjDv5Q-.js} +1 -1
  146. package/package.json +1 -1
  147. package/dist/en-US-xwcTnMwf.js +0 -7
  148. package/dist/japanSupportUtils-H5Zfox2v.js +0 -11
  149. package/dist/types/constants/config.d.ts +0 -1
  150. package/dist/types/context/StateContext/useGlobalData.d.ts +0 -10
  151. package/dist/types/context/StateContext/useStateContext.d.ts +0 -2
  152. package/dist/utils-BgdkZkf5.js +0 -71
  153. package/dist/utils-K8Z-zRnu.js +0 -32
@@ -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] = "3986f00f-7a0a-4309-8d1d-4fdcd600bba6", e._sentryDebugIdIdentifier = "sentry-dbid-3986f00f-7a0a-4309-8d1d-4fdcd600bba6");
4
4
  } catch (e) {}
5
- import { n as httpGet, s as useApiContext } from "./http-DYzfwjcs.js";
5
+ import { n as httpGet, s as useApiContext } from "./http-DeQp0G69.js";
6
6
  import { useQuery } from "@tanstack/preact-query";
7
7
  //#region src/api/taskStatus/useTaskStatus.ts
8
8
  var getTaskStatus = async (legalEntityId, baseUrl, taskType) => {
@@ -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] = "e930c45a-24fa-46dd-afdc-d6da10c23643", e._sentryDebugIdIdentifier = "sentry-dbid-e930c45a-24fa-46dd-afdc-d6da10c23643");
4
4
  } catch (e) {}
5
- import { n as httpGet, s as useApiContext } from "./http-DYzfwjcs.js";
5
+ import { n as httpGet, s as useApiContext } from "./http-DeQp0G69.js";
6
6
  import { useQuery } from "@tanstack/preact-query";
7
7
  //#region src/api/termsOfService/useTermsOfServiceAcceptanceInfos.ts
8
8
  var getTermsOfServiceAcceptanceInfos = async (legalEntityId, baseUrl) => {
@@ -2,12 +2,12 @@ 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-BqViMsaD.js";
6
- import { r as useLegalEntity, t as ROOT_LE } from "./useLegalEntity-EN5ubX2H.js";
5
+ import { j as useToggleContext } from "./resolveEnvironment-BO-j8Bwm.js";
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";
9
9
  import { r as TrustMemberTypes } from "./trustMemberGuidance-CgdU2v0j.js";
10
- import { t as useAssociatedLegalEntity } from "./useAssociatedLegalEntity-CQAe7Co6.js";
10
+ import { t as useAssociatedLegalEntity } from "./useAssociatedLegalEntity-QRvyeNwU.js";
11
11
  import { n as getLegalEntityNameBasedOnType } from "./getName-D4ECvzcI.js";
12
12
  import { useMemo } from "preact/hooks";
13
13
  import { skipToken } from "@tanstack/preact-query";
@@ -2,11 +2,11 @@ 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] = "59a3b3e9-4021-41ea-af73-b9f663f1d267", e._sentryDebugIdIdentifier = "sentry-dbid-59a3b3e9-4021-41ea-af73-b9f663f1d267");
4
4
  } catch (e) {}
5
- import { r as useLegalEntity, t as ROOT_LE } from "./useLegalEntity-EN5ubX2H.js";
5
+ import { r as useLegalEntity, t as ROOT_LE } from "./useLegalEntity-BXk2tzGe.js";
6
6
  import { t as LegalEntityTypes } from "./legal-entity-type-0MfCGzUf.js";
7
7
  import { s as getOwnEntityAssociations } from "./entityAssociationUtil-C-wflW8q.js";
8
- import { t as useAssociatedLegalEntity } from "./useAssociatedLegalEntity-CQAe7Co6.js";
9
- import { t as UnincorporatedPartnershipMemberTypes } from "./unincorporated-partnership-GaTPaALJ.js";
8
+ import { t as useAssociatedLegalEntity } from "./useAssociatedLegalEntity-QRvyeNwU.js";
9
+ import { t as UnincorporatedPartnershipMemberTypes } from "./unincorporated-partnership-BstfjTh2.js";
10
10
  import { n as getLegalEntityNameBasedOnType } from "./getName-D4ECvzcI.js";
11
11
  import { useMemo } from "preact/hooks";
12
12
  //#region src/components/UnincorporatedPartnership/utils/unincorporatedPartnershipMembers.ts
@@ -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] = "9b692f08-d0b3-4161-97b3-29412fe2dcfb", e._sentryDebugIdIdentifier = "sentry-dbid-9b692f08-d0b3-4161-97b3-29412fe2dcfb");
4
4
  } catch (e) {}
5
- import { n as httpGet, r as httpPost, s as useApiContext } from "./http-DYzfwjcs.js";
5
+ import { n as httpGet, r as httpPost, s as useApiContext } from "./http-DeQp0G69.js";
6
6
  import { useMutation, useQuery } from "@tanstack/preact-query";
7
7
  //#region src/api/industryCodes/useIndustryCodes.ts
8
8
  var fetchIndustryCodes = async (legalEntityId, baseUrl, businessLineTypes, locale) => {
@@ -2,8 +2,8 @@ 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] = "b7206278-d5cd-4827-91c7-aab05516a31d", e._sentryDebugIdIdentifier = "sentry-dbid-b7206278-d5cd-4827-91c7-aab05516a31d");
4
4
  } catch (e) {}
5
- import { r as httpPost, s as useApiContext } from "./http-DYzfwjcs.js";
6
- import { t as useInvalidateRootLegalEntity } from "./invalidateRootLegalEntity-DvE5hGMG.js";
5
+ import { r as httpPost, s as useApiContext } from "./http-DeQp0G69.js";
6
+ import { t as useInvalidateRootLegalEntity } from "./invalidateRootLegalEntity-DfF59VHE.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) => {
@@ -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] = "fa121bf3-3e27-49e9-a6a7-a762f41932d5", e._sentryDebugIdIdentifier = "sentry-dbid-fa121bf3-3e27-49e9-a6a7-a762f41932d5");
4
4
  } catch (e) {}
5
- import { r as Loader } from "./Button-DBN5gM_d.js";
5
+ import { r as Loader } from "./Button-3qGOI53m.js";
6
6
  import cx from "classnames";
7
7
  import { jsx, jsxs } from "preact/jsx-runtime";
8
8
  var LoaderWrapper_module_default = {
@@ -1,8 +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] = "644cecfc-88a0-4342-899f-80d9213420f5", e._sentryDebugIdIdentifier = "sentry-dbid-644cecfc-88a0-4342-899f-80d9213420f5");
3
+ n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "7c9cd2e3-8112-4d87-9335-ac1829dcb8f3", e._sentryDebugIdIdentifier = "sentry-dbid-7c9cd2e3-8112-4d87-9335-ac1829dcb8f3");
4
4
  } catch (e) {}
5
5
  import { t as CountryCodes } from "./country-code-CJk2hdPu.js";
6
+ import { r as summaryItem } from "./summaryItem-uDWmtYtt.js";
6
7
  //#region src/components/Shared/forms/Address/constants.ts
7
8
  var addressFields = [
8
9
  "address",
@@ -139,4 +140,68 @@ var LABELS = {
139
140
  address: { default: ADDRESS }
140
141
  };
141
142
  //#endregion
142
- export { LABELS as a, COUNTRIES_WITH_STATES_DATASET as i, CONDENSED_ADDRESS_FIELDS as n, addressFields as o, COUNTRIES_WITH_HOUSE_NUMBER_FIRST as r, ADDRESS_SCHEMAS as t };
143
+ //#region src/components/Shared/forms/Address/utils.ts
144
+ /**
145
+ * Returns the key for a field of the passed country or the default key for that field.
146
+ * @param fieldName - The data to pre-fill the address fields
147
+ * @param country - The selected country
148
+ */
149
+ var getKeyForField = (fieldName, country) => country ? LABELS[fieldName][country] || LABELS[fieldName].default : LABELS[fieldName].default;
150
+ /**
151
+ * Returns the address schema of the selected country or the default address schema.
152
+ * @param country - The selected country
153
+ */
154
+ var getAddressSchemaForCountry = (country) => country && ADDRESS_SCHEMAS[country] ? ADDRESS_SCHEMAS[country] : ADDRESS_SCHEMAS.default;
155
+ /**
156
+ * Returns the field labels for each field in the selected countries address schema.
157
+ * @param country - The selected country
158
+ */
159
+ var getAddressSchemaLabelsByCountry = (country) => {
160
+ return getAddressSchemaForCountry(country).reduce((labels, field) => ({
161
+ ...labels,
162
+ [field]: getKeyForField(field, country)
163
+ }), {});
164
+ };
165
+ var mapAddressLabels = (data, datasetUtils) => {
166
+ if (data?.country) return getAddressSchemaForCountry(data.country).reduce((mappedAddress, field) => {
167
+ const labelKey = getKeyForField(field, data.country);
168
+ const value = data?.[field];
169
+ if (!value) return mappedAddress;
170
+ switch (field) {
171
+ case "country": return {
172
+ ...mappedAddress,
173
+ [field]: summaryItem(labelKey, datasetUtils.getCountryName(value) ?? value)
174
+ };
175
+ case "stateOrProvince": return {
176
+ ...mappedAddress,
177
+ [field]: summaryItem(labelKey, datasetUtils.getStateName(value, data.country) ?? value)
178
+ };
179
+ default: return {
180
+ ...mappedAddress,
181
+ [field]: summaryItem(labelKey, value)
182
+ };
183
+ }
184
+ }, {});
185
+ return data;
186
+ };
187
+ var mapAddressLabelsNewSummary = (data, datasetUtils) => {
188
+ if (!data?.country) return {};
189
+ const addressSchema = getAddressSchemaForCountry(data.country);
190
+ const mappedSummary = {};
191
+ for (const field of addressSchema) {
192
+ const labelKey = getKeyForField(field, data.country);
193
+ const value = data?.[field];
194
+ if (field === "country") {
195
+ mappedSummary[labelKey] = datasetUtils.getCountryName(value) ?? value;
196
+ continue;
197
+ }
198
+ if (field === "stateOrProvince") {
199
+ mappedSummary[labelKey] = datasetUtils.getStateName(value, data.country) ?? value;
200
+ continue;
201
+ }
202
+ mappedSummary[labelKey] = value;
203
+ }
204
+ return mappedSummary;
205
+ };
206
+ //#endregion
207
+ export { mapAddressLabelsNewSummary as a, COUNTRIES_WITH_STATES_DATASET as c, mapAddressLabels as i, addressFields as l, getAddressSchemaLabelsByCountry as n, CONDENSED_ADDRESS_FIELDS as o, getKeyForField as r, COUNTRIES_WITH_HOUSE_NUMBER_FIRST as s, getAddressSchemaForCountry as t };
@@ -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] = "b8268438-adcc-4d87-977a-df568dcb6aca", e._sentryDebugIdIdentifier = "sentry-dbid-b8268438-adcc-4d87-977a-df568dcb6aca");
3
+ n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "201b9c35-54f6-4e33-9848-4e3fbd26347a", e._sentryDebugIdIdentifier = "sentry-dbid-201b9c35-54f6-4e33-9848-4e3fbd26347a");
4
4
  } catch (e) {}
5
5
  import { t as LegalEntityTypes } from "./legal-entity-type-0MfCGzUf.js";
6
6
  import { t as getLegalEntityCountry } from "./getLegalEntityCountry-BHh7Ux8v.js";
@@ -8,8 +8,8 @@ import { t as CountryCodes } from "./country-code-CJk2hdPu.js";
8
8
  import { t as getCapabilities } from "./processCapabilities-hLmRus8U.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-C8atFmal.js";
12
- import { r as SOLE_PROP_COUNTRIES } from "./Individual.rules-DrC9MYN9.js";
11
+ import { t as allowIndividualWithoutSoleProp } from "./accountHolderUtils-DnEhXSHF.js";
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
15
15
  var TRUST_COUNTRIES = [CountryCodes.Australia, CountryCodes.NewZealand];
@@ -1,23 +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] = "00bfaea3-a83b-481f-a6c2-c2995b169db7", e._sentryDebugIdIdentifier = "sentry-dbid-00bfaea3-a83b-481f-a6c2-c2995b169db7");
3
+ n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "e9249d78-3840-4749-abca-5eedc28ac928", e._sentryDebugIdIdentifier = "sentry-dbid-e9249d78-3840-4749-abca-5eedc28ac928");
4
4
  } catch (e) {}
5
- import { r as useTranslation } from "./translation-ZXpd9jdD.js";
5
+ import { r as useTranslation } from "./translation-BR3rLb4m.js";
6
6
  import { t as LegalEntityTypes } from "./legal-entity-type-0MfCGzUf.js";
7
- import { l as keysOf } from "./AnalyticsContext-BFrJmsp0.js";
8
7
  import { t as CountryCodes } from "./country-code-CJk2hdPu.js";
9
- import { t as TaskTypes } from "./taskTypes-NawDTp5n.js";
10
- import { t as SettingNames } from "./types-Cwq1JAWT.js";
11
8
  import { c as CompanyTypesValues } from "./bafinUtils-BKq-s1Ka.js";
12
- import { a as alphanumericInputs, c as nonInputs, i as alphaInputs, l as numericInputs, o as customInputs, s as makeMask, u as spacer } from "./MaskedInput-PFxgE0kR.js";
13
- import { i as COUNTRIES_WITH_STATES_DATASET } from "./constants-DrtMSDfx.js";
14
- import { t as isJapanLocalizationEnabled } from "./japanSupportUtils-H5Zfox2v.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";
15
10
  import { t as uppercase } from "./uppercase-DvjwUM0n.js";
16
- import { a as validateNotEmptyOnBlur, o as validatePatternOnBlur } from "./patternValidators-B8R6IIuO.js";
17
- import { t as Field } from "./Field-CQWAWo5U.js";
18
- import { t as RadioGroup } from "./RadioGroup-DlzXLoMN.js";
19
- import { t as createFormRules } from "./form-rules-CUUQGacJ.js";
20
- import { n as isDateOlderThanAYear } from "./utils-K8Z-zRnu.js";
11
+ import { a as validateNotEmptyOnBlur, o as validatePatternOnBlur } from "./patternValidators-Dg_UvQs9.js";
12
+ import { t as Field } from "./Field-DAUlw0M5.js";
13
+ import { t as RadioGroup } from "./RadioGroup-CMiBSXCA.js";
21
14
  import { useCallback, useEffect, useMemo } from "preact/hooks";
22
15
  import { jsx } from "preact/jsx-runtime";
23
16
  //#region src/types/datasets/state-code.ts
@@ -2086,52 +2079,7 @@ function getDefaultTaxIdNumberType(taxInformation, country, entityType, invertCo
2086
2079
  return existingTaxInformation?.type ?? (existingTaxInformation?.number ? inferTaxIdNumberType(taxInformation, country, entityType, invertCompanyTypeFilter) : getTaxIdNumberOptions(country, entityType, invertCompanyTypeFilter)?.[0]?.id);
2087
2080
  }
2088
2081
  //#endregion
2089
- //#region src/components/Business/utils/requestingCapabilities.ts
2090
- var ISSUING_CAPABILITY_GROUP = [
2091
- "issueCard",
2092
- "issueCardConsumer",
2093
- "issueCardCommercial",
2094
- "useCard",
2095
- "useCardConsumer",
2096
- "useCardCommercial"
2097
- ];
2098
- function requestingIssuing(rootLegalEntity) {
2099
- const capabilities = rootLegalEntity?.capabilities ?? {};
2100
- return ISSUING_CAPABILITY_GROUP.some((capability) => capability in capabilities && capabilities[capability]?.requested === true);
2101
- }
2102
- var BANKING_CAPABILITY_GROUP = [
2103
- "issueBankAccount",
2104
- "sendToThirdParty",
2105
- "receiveFromThirdParty"
2106
- ];
2107
- function requestingBanking(rootLegalEntity) {
2108
- const capabilities = rootLegalEntity?.capabilities ?? {};
2109
- return BANKING_CAPABILITY_GROUP.some((capability) => capability in capabilities && capabilities[capability]?.requested === true);
2110
- }
2111
- //#endregion
2112
- //#region src/components/Business/utils/utils.ts
2113
- var countryToTaxInfoTypeMap = {
2114
- US: "EIN",
2115
- AU: "ABN",
2116
- NZ: "IRD",
2117
- HK: "BRN",
2118
- SG: "GST"
2119
- };
2120
- var isFinancialInformationRequired = (isFinancialInformationFeatureEnabled, taskType, country, capabilities, legalEntityType) => {
2121
- const isOrganization = legalEntityType === LegalEntityTypes.ORGANIZATION;
2122
- if (!isFinancialInformationFeatureEnabled || !COUNTRIES_REQUIRING_FINANCIAL_INFORMATION.includes(country)) return;
2123
- if (country === CountryCodes.UnitedKingdom && (taskType === TaskTypes.SOLE_PROPRIETOR_COMPANY || taskType === TaskTypes.BUSINESS_DETAILS)) return "REQUIRED";
2124
- if (taskType === TaskTypes.BUSINESS_DETAILS && isOrganization) {
2125
- if (keysOf(capabilities ?? {}).some((capability) => capability === "issueBankAccount")) return "REQUIRED";
2126
- }
2127
- };
2128
- var getCountryOfGoverningLaw = (isCountryOfGoverningLawEnabled, basicData) => {
2129
- if (!isCountryOfGoverningLawEnabled || basicData?.country !== CountryCodes.UnitedKingdom) return;
2130
- return !basicData.countryOfGoverningLaw ? CountryCodes.UnitedKingdom : basicData.countryOfGoverningLaw;
2131
- };
2132
- //#endregion
2133
2082
  //#region src/components/Business/forms/rules.constants.ts
2134
- var isRegistrationExemptionAllowed = (country) => country in REGISTRATION_NUMBER_EXEMPTION_RULES;
2135
2083
  /**
2136
2084
  * Source of truth for registration-number exemption eligibility in Business Details.
2137
2085
  *
@@ -2151,41 +2099,28 @@ var REGISTRATION_NUMBER_EXEMPTION_RULES = {
2151
2099
  [CountryCodes.HongKong]: [],
2152
2100
  [CountryCodes.NewZealand]: []
2153
2101
  };
2154
- //#endregion
2155
- //#region src/components/Business/forms/rules.ts
2156
- var COUNTRIES_THAT_DONT_REQUIRE_SOLE_PROP_REGISTRATION = [
2157
- CountryCodes.Australia,
2158
- CountryCodes.Gibraltar,
2159
- CountryCodes.Guernsey,
2160
- CountryCodes.HongKong,
2161
- CountryCodes.Ireland,
2162
- CountryCodes.IsleOfMan,
2163
- CountryCodes.Jersey,
2164
- CountryCodes.Malta,
2165
- CountryCodes.PuertoRico,
2166
- CountryCodes.Spain,
2167
- CountryCodes.UnitedKingdom,
2168
- CountryCodes.UnitedStates
2169
- ];
2102
+ /**
2103
+ * @description Countries in this list use the provider-backed company search flow.
2104
+ * For these countries, business details can be prefilled from provider results,
2105
+ * and search/verification may require tax identifiers (for example TIN or VAT)
2106
+ * in addition to company name/registration details.
2107
+ *
2108
+ * If a country is in this list, it means it will attempt to make an api call for company search.
2109
+ * If the api doesnt have a provider for that country, it will return no results like below
2110
+ * ```
2111
+ * {
2112
+ * "results": [],
2113
+ * "provider": "NO_PROVIDER"
2114
+ * }
2115
+ * ```
2116
+ */
2117
+ var COUNTRIES_USING_COMPANY_SEARCH = [CountryCodes.UnitedStates, CountryCodes.UnitedKingdom];
2170
2118
  var COUNTRIES_THAT_DONT_REQUIRE_COMPANY_REGISTRATION = [
2171
2119
  CountryCodes.HongKong,
2172
2120
  CountryCodes.PuertoRico,
2173
2121
  CountryCodes.UnitedStates
2174
2122
  ];
2175
- var COUNTRIES_WITH_POSSIBLE_REGISTRATION_EXEMPTIONS_FOR_SOLE_PROPS = [
2176
- CountryCodes.Austria,
2177
- CountryCodes.Canada,
2178
- CountryCodes.Finland,
2179
- CountryCodes.Germany,
2180
- CountryCodes.Lithuania,
2181
- CountryCodes.Luxembourg,
2182
- CountryCodes.NewZealand,
2183
- CountryCodes.Poland,
2184
- CountryCodes.Sweden,
2185
- CountryCodes.Switzerland
2186
- ];
2187
2123
  var COUNTRIES_WITH_OPTIONAL_REGISTRATION_NUMBER = [CountryCodes.Canada, CountryCodes.UnitedStates];
2188
- var COUNTRIES_WITH_OPTIONAL_REGISTRATION_NUMBER_SOLE_PROPS = [CountryCodes.Germany];
2189
2124
  /**
2190
2125
  * Also used to determine what documenttype needs to be used
2191
2126
  * when uploading tax document in mapping.ts
@@ -2206,31 +2141,9 @@ var COUNTRIES_THAT_USE_TAX_ID_INSTEAD_OF_VAT = [
2206
2141
  CountryCodes.Brazil,
2207
2142
  CountryCodes.Japan
2208
2143
  ];
2209
- var COUNTRIES_THAT_DO_NOT_USE_TAX_ID_FOR_SOLE_PROP = [CountryCodes.Singapore];
2210
2144
  var COUNTRIES_WITH_POSSIBLE_TAX_EXEMPTION_FOR_COMPANIES = [];
2211
- var COUNTRIES_WITH_POSSIBLE_TAX_EXEMPTION_FOR_SOLE_PROPS = [
2212
- CountryCodes.Canada,
2213
- CountryCodes.PuertoRico,
2214
- CountryCodes.UnitedStates
2215
- ];
2216
2145
  var COUNTRIES_THAT_REQUIRE_DATE_OF_INCORPORATION = [CountryCodes.HongKong, CountryCodes.Singapore];
2217
2146
  var COUNTRIES_THAT_USES_UEN_OR_GST = [CountryCodes.Singapore];
2218
- /**
2219
- * @description Countries in this list use the provider-backed company search flow.
2220
- * For these countries, business details can be prefilled from provider results,
2221
- * and search/verification may require tax identifiers (for example TIN or VAT)
2222
- * in addition to company name/registration details.
2223
- *
2224
- * If a country is in this list, it means it will attempt to make an api call for company search.
2225
- * If the api doesnt have a provider for that country, it will return no results like below
2226
- * ```
2227
- * {
2228
- * "results": [],
2229
- * "provider": "NO_PROVIDER"
2230
- * }
2231
- * ```
2232
- */
2233
- var COUNTRIES_USING_COMPANY_SEARCH = [CountryCodes.UnitedStates, CountryCodes.UnitedKingdom];
2234
2147
  var COUNTRY_OF_GOVERNING_LAW_POSSIBLE = [CountryCodes.UnitedKingdom];
2235
2148
  var COUNTRIES_REQUIRING_FINANCIAL_INFORMATION = [
2236
2149
  CountryCodes.Austria,
@@ -2271,172 +2184,42 @@ var TAX_ID_REQUIRED_COUNTRIES_ORGANIZATION = [
2271
2184
  CountryCodes.Slovakia,
2272
2185
  CountryCodes.Slovenia
2273
2186
  ];
2274
- function isUsingCompanySearch(country, taskType) {
2275
- if (taskType !== TaskTypes.BUSINESS_DETAILS) return false;
2276
- return COUNTRIES_USING_COMPANY_SEARCH.includes(country);
2277
- }
2278
- var isRegistrationNumberAbsentStateV4Scenario = (country, entityType) => {
2279
- return country === CountryCodes.Australia && (entityType === CompanyTypesValues.GOVERNMENTAL_ORGANIZATION || entityType === CompanyTypesValues.INCORPORATED_PARTNERSHIP) || country === CountryCodes.NewZealand;
2280
- };
2281
- var rules = ({ data, defaultData, verifiedBusiness, country, taskType, isFeatureEnabled = () => false, isSettingEnabled = () => false, accountHolder, rootLegalEntity, tinMatched }) => {
2282
- const countryRequiresDateOfIncorporationForCompanies = () => {
2283
- if (COUNTRIES_THAT_REQUIRE_DATE_OF_INCORPORATION.includes(country)) return "REQUIRED";
2284
- };
2285
- const countryRequiresFinancialInformation = () => {
2286
- const isFinancialInformationFeatureEnabled = isFeatureEnabled("EnableFinancialInformationComponentV4");
2287
- const leType = rootLegalEntity?.type;
2288
- return isFinancialInformationRequired(isFinancialInformationFeatureEnabled, taskType, country, rootLegalEntity?.capabilities, leType);
2289
- };
2290
- const hasFinancialInformation = (financialInformation) => {
2291
- if (!financialInformation) return false;
2292
- return financialInformation.numberOfEmployees != null || Boolean(financialInformation.financialReportingDate) || Boolean(financialInformation.currency) || financialInformation.balanceSheetTotal != null || financialInformation.annualTurnover != null;
2293
- };
2294
- return createFormRules({
2295
- requireDoingBusinessAsName: () => {
2296
- return data.additionalInformation?.hasDoingBusinessAs ? "REQUIRED" : void 0;
2297
- },
2298
- countryRequiresStateOrProvince: () => {
2299
- if (COUNTRIES_WITH_STATES_DATASET.includes(country)) return "REQUIRED";
2300
- },
2301
- ifPubliclyTradedCompany: () => {
2302
- if (data.companyStructure?.entityType === CompanyTypesValues.PUBLIC_COMPANY) return "REQUIRED";
2303
- },
2304
- countryUsesVat: () => {
2305
- if (!COUNTRIES_THAT_USE_TAX_ID_INSTEAD_OF_VAT.includes(country)) return data.additionalInformation?.exemptedFromVat ? "OPTIONAL" : "REQUIRED";
2306
- },
2307
- vatNumberType: () => {
2308
- if (!COUNTRIES_THAT_USE_TAX_ID_INSTEAD_OF_VAT.includes(country)) return "OPTIONAL";
2309
- },
2310
- isVatExempt: () => {
2311
- if (!COUNTRIES_THAT_USE_TAX_ID_INSTEAD_OF_VAT.includes(country)) return data.additionalInformation?.exemptedFromVat ? "REQUIRED" : "OPTIONAL";
2312
- },
2313
- countryUsesTaxId: () => {
2314
- const isExemptFromTax = Boolean(data.basicInformation?.exemptedFromTax ?? data.additionalInformation?.exemptedFromTax);
2315
- const isOrgWithBanking = rootLegalEntity?.type === "organization" && keysOf(rootLegalEntity.capabilities ?? {}).includes("issueBankAccount");
2316
- const registrationNumberType = isFeatureEnabled("EnableUnifiedCompanySearch") ? data.basicInformation?.registrationNumberType : data.additionalInformation?.registrationNumberType;
2317
- if (TAX_ID_REQUIRED_COUNTRIES_ORGANIZATION.includes(country) && isOrgWithBanking) return isExemptFromTax ? "OPTIONAL" : "REQUIRED";
2318
- if (country === CountryCodes.Italy && isOrgWithBanking && registrationNumberType === "CCIAA") return isExemptFromTax ? "OPTIONAL" : "REQUIRED";
2319
- if (COUNTRIES_THAT_USE_TAX_ID_INSTEAD_OF_VAT.includes(country) && !(taskType === TaskTypes.SOLE_PROPRIETOR_COMPANY && COUNTRIES_THAT_DO_NOT_USE_TAX_ID_FOR_SOLE_PROP.includes(country))) return isExemptFromTax ? "OPTIONAL" : "REQUIRED";
2320
- },
2321
- companyRegistrationNumberExemptionAllowed: () => {
2322
- const isExemptFromRegistrationNumber = Boolean(data.basicInformation?.exemptedFromRegistrationNumber ?? data.additionalInformation?.exemptedFromRegistrationNumber);
2323
- if (taskType === TaskTypes.SOLE_PROPRIETOR_COMPANY) {
2324
- if (!COUNTRIES_WITH_POSSIBLE_REGISTRATION_EXEMPTIONS_FOR_SOLE_PROPS.includes(country)) return;
2325
- return isExemptFromRegistrationNumber ? "REQUIRED" : "OPTIONAL";
2326
- }
2327
- if (!isRegistrationExemptionAllowed(country)) return;
2328
- const companyType = data.companyStructure?.entityType;
2329
- const allowedTypes = REGISTRATION_NUMBER_EXEMPTION_RULES[country];
2330
- if (allowedTypes.length > 0 && companyType && !allowedTypes.includes(companyType)) return;
2331
- /**
2332
- * Country-specific guard checks before applying the shared exemption rule result.
2333
- *
2334
- * - HK first enforces the legacy registration-number presence guard for existing entities.
2335
- * - AU/NZ then enforce the absent-state V4 feature flag gate.
2336
- */
2337
- switch (country) {
2338
- case CountryCodes.HongKong:
2339
- if (!defaultData?.basicInformation?.registrationNumber && !defaultData?.additionalInformation?.registrationNumber) return;
2340
- return isExemptFromRegistrationNumber ? "REQUIRED" : "OPTIONAL";
2341
- case CountryCodes.Australia:
2342
- case CountryCodes.NewZealand:
2343
- if (!isFeatureEnabled("EnableRegistrationAndTaxAbsentStatesV4")) return;
2344
- return isExemptFromRegistrationNumber ? "REQUIRED" : "OPTIONAL";
2345
- default: return isExemptFromRegistrationNumber ? "REQUIRED" : "OPTIONAL";
2346
- }
2347
- },
2348
- countryOfGoverningLawRequired: () => {
2349
- if (isFeatureEnabled("EnableCountryOfGoverningLawForUKCompanies") && COUNTRY_OF_GOVERNING_LAW_POSSIBLE.includes(data.basicInformation?.country)) return "REQUIRED";
2350
- },
2351
- countryRequiresRegistrationNumber: () => {
2352
- const isExemptFromRegistrationNumber = Boolean(data.basicInformation?.exemptedFromRegistrationNumber ?? data.additionalInformation?.exemptedFromRegistrationNumber);
2353
- switch (taskType) {
2354
- case TaskTypes.SOLE_PROPRIETOR_COMPANY:
2355
- if (COUNTRIES_THAT_DONT_REQUIRE_SOLE_PROP_REGISTRATION.includes(country)) return;
2356
- if (COUNTRIES_WITH_OPTIONAL_REGISTRATION_NUMBER_SOLE_PROPS.includes(country)) return "OPTIONAL";
2357
- return isExemptFromRegistrationNumber ? "OPTIONAL" : "REQUIRED";
2358
- default:
2359
- if (COUNTRIES_WITH_OPTIONAL_REGISTRATION_NUMBER.includes(country)) return "OPTIONAL";
2360
- if (country === CountryCodes.HongKong) {
2361
- if (!defaultData?.additionalInformation?.registrationNumber) return;
2362
- return isExemptFromRegistrationNumber ? "OPTIONAL" : "REQUIRED";
2363
- }
2364
- if (!COUNTRIES_THAT_DONT_REQUIRE_COMPANY_REGISTRATION.includes(country)) return isExemptFromRegistrationNumber ? void 0 : "REQUIRED";
2365
- }
2366
- },
2367
- registrationNumberType: () => {
2368
- switch (taskType) {
2369
- case TaskTypes.SOLE_PROPRIETOR_COMPANY:
2370
- if (COUNTRIES_THAT_DONT_REQUIRE_SOLE_PROP_REGISTRATION.includes(country)) return;
2371
- return "OPTIONAL";
2372
- default:
2373
- if (COUNTRIES_WITH_OPTIONAL_REGISTRATION_NUMBER.includes(country)) return "OPTIONAL";
2374
- if (COUNTRIES_THAT_DONT_REQUIRE_COMPANY_REGISTRATION.includes(country)) return;
2375
- return "OPTIONAL";
2376
- }
2377
- },
2378
- countryUsesUenOrGst: () => {
2379
- if (taskType === TaskTypes.SOLE_PROPRIETOR_COMPANY) return;
2380
- if (COUNTRIES_THAT_USES_UEN_OR_GST.includes(country)) return "REQUIRED";
2381
- },
2382
- countryHasTaxExemptions: () => {
2383
- const isExemptFromTax = Boolean(data.basicInformation?.exemptedFromTax ?? data.additionalInformation?.exemptedFromTax);
2384
- switch (taskType) {
2385
- case TaskTypes.SOLE_PROPRIETOR_COMPANY:
2386
- if (!COUNTRIES_WITH_POSSIBLE_TAX_EXEMPTION_FOR_SOLE_PROPS.includes(country)) return;
2387
- return isExemptFromTax ? "REQUIRED" : "OPTIONAL";
2388
- default:
2389
- if (isFeatureEnabled("EnableRegistrationAndTaxAbsentStatesV4") && COUNTRIES_WITH_POSSIBLE_TRUSTEE_TAXID_ABSENT_V4.includes(country) && accountHolder === "aTrust") return isExemptFromTax ? "REQUIRED" : "OPTIONAL";
2390
- if (COUNTRIES_WITH_POSSIBLE_TAX_EXEMPTION_FOR_COMPANIES.includes(country)) return isExemptFromTax ? "REQUIRED" : "OPTIONAL";
2391
- }
2392
- },
2393
- usingCompanySearch: () => {
2394
- if (isUsingCompanySearch(country, taskType)) return "REQUIRED";
2395
- },
2396
- requireStateOrProvinceForCompanySearch: () => {
2397
- if (isUsingCompanySearch(country, taskType) && COUNTRIES_WITH_STATES_DATASET.includes(country)) return "REQUIRED";
2398
- },
2399
- countryRequiresFinancialInformation,
2400
- isDateOfIncorporationRequired: () => {
2401
- return countryRequiresDateOfIncorporationForCompanies() || countryRequiresFinancialInformation();
2402
- },
2403
- isFinancialReportingFieldsRequired: () => {
2404
- if (countryRequiresFinancialInformation() !== "REQUIRED") return;
2405
- if (isDateOlderThanAYear(data.additionalInformation?.dateOfIncorporation)) return "REQUIRED";
2406
- /**
2407
- * MultiForm recalculates required/optional schemas when rules change and reindexes form state
2408
- * against those schemas. If these financial fields are not included, provider-applied values can
2409
- * be pruned and appear to reset. Keeping them OPTIONAL by default when the feature is enabled
2410
- * (instead of undefined) preserves existing values in the form while still avoiding hard validation
2411
- * requirements when provider data is partial.
2412
- */
2413
- if (hasFinancialInformation(verifiedBusiness?.financialInformation) || hasFinancialInformation(data.companyFinancialInformation)) return "OPTIONAL";
2414
- },
2415
- isIndustryCodeRequired: () => {
2416
- const needsBusinessLine = requestingIssuing(rootLegalEntity) || requestingBanking(rootLegalEntity);
2417
- if (isSettingEnabled(SettingNames.AllowBusinessLines) && needsBusinessLine) return "REQUIRED";
2418
- },
2419
- annualTurnoverRequired: () => {
2420
- if (data.companyFinancialInformation?.reportedValueOption === "annualTurnover") return "REQUIRED";
2421
- },
2422
- balanceSheetTotalRequired: () => {
2423
- if (data.companyFinancialInformation?.reportedValueOption === "balanceSheetTotal") return "REQUIRED";
2424
- },
2425
- isEInvoicingCodeEnabled: () => {
2426
- if (isFeatureEnabled("EnableEInvoicingCodeField") && COUNTRIES_REQUIRING_E_INVOICING_CODE.includes(country)) return "REQUIRED";
2427
- },
2428
- ifCountryUsAndTinFailed: () => {
2429
- if (taskType === TaskTypes.SOLE_PROPRIETOR_COMPANY) return;
2430
- if (tinMatched === false && country === CountryCodes.UnitedStates) return "REQUIRED";
2431
- },
2432
- businessRequiresCompanyType: () => {
2433
- if (taskType !== TaskTypes.SOLE_PROPRIETOR_COMPANY) return "REQUIRED";
2434
- },
2435
- japaneseLegalCompanyName: () => {
2436
- if (isJapanLocalizationEnabled(isFeatureEnabled, country)) return "REQUIRED";
2437
- }
2438
- });
2439
- };
2187
+ /**
2188
+ * Sole proprietorship specific rules
2189
+ */
2190
+ var COUNTRIES_THAT_DONT_REQUIRE_SOLE_PROP_REGISTRATION = [
2191
+ CountryCodes.Australia,
2192
+ CountryCodes.Gibraltar,
2193
+ CountryCodes.Guernsey,
2194
+ CountryCodes.HongKong,
2195
+ CountryCodes.Ireland,
2196
+ CountryCodes.IsleOfMan,
2197
+ CountryCodes.Jersey,
2198
+ CountryCodes.Malta,
2199
+ CountryCodes.PuertoRico,
2200
+ CountryCodes.Spain,
2201
+ CountryCodes.UnitedKingdom,
2202
+ CountryCodes.UnitedStates
2203
+ ];
2204
+ var COUNTRIES_WITH_POSSIBLE_TAX_EXEMPTION_FOR_SOLE_PROPS = [
2205
+ CountryCodes.Canada,
2206
+ CountryCodes.PuertoRico,
2207
+ CountryCodes.UnitedStates
2208
+ ];
2209
+ var COUNTRIES_WITH_POSSIBLE_REGISTRATION_EXEMPTIONS_FOR_SOLE_PROPS = [
2210
+ CountryCodes.Austria,
2211
+ CountryCodes.Canada,
2212
+ CountryCodes.Finland,
2213
+ CountryCodes.Germany,
2214
+ CountryCodes.Lithuania,
2215
+ CountryCodes.Luxembourg,
2216
+ CountryCodes.NewZealand,
2217
+ CountryCodes.Poland,
2218
+ CountryCodes.Sweden,
2219
+ CountryCodes.Switzerland
2220
+ ];
2221
+ var COUNTRIES_THAT_DO_NOT_USE_TAX_ID_FOR_SOLE_PROP = [CountryCodes.Singapore];
2222
+ var COUNTRIES_WITH_OPTIONAL_REGISTRATION_NUMBER_SOLE_PROPS = [CountryCodes.Germany];
2440
2223
  //#endregion
2441
2224
  //#region src/components/Shared/fields/TaxInformationField/TaxIdNumberTypeSelector/TaxIdNumberTypeSelector.tsx
2442
2225
  function TaxIdNumberTypeSelector({ country, companyType, invertCompanyTypeFilter, selected, setSelected, exemptedOptionLabel, isUsSoleProp, errorMessage }) {
@@ -2504,4 +2287,4 @@ function removeTaxInfoForCountry(taxInformation, country) {
2504
2287
  return taxInformation?.filter((t) => t.country !== country);
2505
2288
  }
2506
2289
  //#endregion
2507
- export { taxInformationDefaultFieldConfig as C, stateFormatGuidanceText as D, businessRegistrationNumberMasks as E, getTaxInformationPlaceholderText as S, businessRegistrationNumberPatterns as T, getTaxIdNumberOptions as _, COUNTRIES_WITH_POSSIBLE_TRUSTEE_TAXID_ABSENT_V4 as a, exemptedFromTaxDefaultFieldConfig as b, isUsingCompanySearch as c, isRegistrationExemptionAllowed as d, countryToTaxInfoTypeMap as f, getDefaultTaxIdNumberType as g, requestingIssuing as h, COUNTRIES_THAT_USE_TAX_ID_INSTEAD_OF_VAT as i, rules as l, requestingBanking as m, upsertTaxInfoForCountry as n, COUNTRY_OF_GOVERNING_LAW_POSSIBLE as o, getCountryOfGoverningLaw as p, TaxIdNumberTypeSelector as r, isRegistrationNumberAbsentStateV4Scenario as s, removeTaxInfoForCountry as t, REGISTRATION_NUMBER_EXEMPTION_RULES as u, getValidCompanyTypesForTaxIdNumberType as v, taxInformationDefaultFieldMetadata as w, exemptedFromTaxDefaultFieldMetadata as x, taxIdNumberOptions as y };
2290
+ export { taxInformationDefaultFieldMetadata as A, getTaxIdNumberOptions as C, exemptedFromTaxDefaultFieldMetadata as D, exemptedFromTaxDefaultFieldConfig as E, businessRegistrationNumberMasks as M, stateFormatGuidanceText as N, getTaxInformationPlaceholderText as O, getDefaultTaxIdNumberType as S, taxIdNumberOptions as T, COUNTRIES_WITH_POSSIBLE_TAX_EXEMPTION_FOR_SOLE_PROPS as _, COUNTRIES_REQUIRING_FINANCIAL_INFORMATION as a, REGISTRATION_NUMBER_EXEMPTION_RULES as b, COUNTRIES_THAT_DO_NOT_USE_TAX_ID_FOR_SOLE_PROP as c, COUNTRIES_THAT_USE_TAX_ID_INSTEAD_OF_VAT as d, COUNTRIES_USING_COMPANY_SEARCH as f, COUNTRIES_WITH_POSSIBLE_TAX_EXEMPTION_FOR_COMPANIES as g, COUNTRIES_WITH_POSSIBLE_REGISTRATION_EXEMPTIONS_FOR_SOLE_PROPS as h, COUNTRIES_REQUIRING_E_INVOICING_CODE as i, businessRegistrationNumberPatterns as j, taxInformationDefaultFieldConfig as k, COUNTRIES_THAT_REQUIRE_DATE_OF_INCORPORATION as l, COUNTRIES_WITH_OPTIONAL_REGISTRATION_NUMBER_SOLE_PROPS as m, upsertTaxInfoForCountry as n, COUNTRIES_THAT_DONT_REQUIRE_COMPANY_REGISTRATION as o, COUNTRIES_WITH_OPTIONAL_REGISTRATION_NUMBER as p, TaxIdNumberTypeSelector as r, COUNTRIES_THAT_DONT_REQUIRE_SOLE_PROP_REGISTRATION as s, removeTaxInfoForCountry as t, COUNTRIES_THAT_USES_UEN_OR_GST as u, COUNTRIES_WITH_POSSIBLE_TRUSTEE_TAXID_ABSENT_V4 as v, getValidCompanyTypesForTaxIdNumberType as w, TAX_ID_REQUIRED_COUNTRIES_ORGANIZATION as x, COUNTRY_OF_GOVERNING_LAW_POSSIBLE as y };
@@ -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] = "e2ba823b-69ed-44b8-9b28-a635ae75699b", e._sentryDebugIdIdentifier = "sentry-dbid-e2ba823b-69ed-44b8-9b28-a635ae75699b");
4
4
  } catch (e) {}
5
- import { et as hasText } from "./resolveEnvironment-BqViMsaD.js";
5
+ import { et as hasText } from "./resolveEnvironment-BO-j8Bwm.js";
6
6
  //#region src/components/EFP/tasks/BusinessFinancingDropin/validate.ts
7
7
  var validateLegalEntityIdentifier = (legalEntityIdentifier) => {
8
8
  if (!legalEntityIdentifier) return true;
@@ -1,12 +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] = "816ad9b9-b490-4525-b93c-5c886d87520a", e._sentryDebugIdIdentifier = "sentry-dbid-816ad9b9-b490-4525-b93c-5c886d87520a");
3
+ n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "89fbde08-aa62-41d6-969f-1f394063885f", e._sentryDebugIdIdentifier = "sentry-dbid-89fbde08-aa62-41d6-969f-1f394063885f");
4
4
  } catch (e) {}
5
- import { a as Icon, i as Typography, o as createLogger, r as useTranslation } from "./translation-ZXpd9jdD.js";
6
- import { dt as StateContext } from "./resolveEnvironment-BqViMsaD.js";
7
- import { n as IconButton, r as Loader } from "./Button-DBN5gM_d.js";
8
- import { n as httpGet, r as httpPost, t as httpDelete } from "./http-DYzfwjcs.js";
9
- import { i as useAnalyticsContext } from "./Modal-BgeE7zM2.js";
5
+ import { a as Icon, i as Typography, o as createLogger, r as useTranslation } from "./translation-BR3rLb4m.js";
6
+ import { n as IconButton, r as Loader } from "./Button-3qGOI53m.js";
7
+ import { n as httpGet, r as httpPost, t as httpDelete } from "./http-DeQp0G69.js";
8
+ import { i as useAnalyticsContext } from "./Modal-C__-5LgI.js";
10
9
  import { t as getLocalizedIdDocumentTypeOptions } from "./utils-DwujAUJC.js";
11
10
  import { useEffect } from "preact/hooks";
12
11
  import cx from "classnames";
@@ -218,17 +217,6 @@ var mergeProofOfOwnershipAttachments = (existing, incoming) => {
218
217
  return [...incoming, ...filteredExisting].slice(0, 2);
219
218
  };
220
219
  //#endregion
221
- //#region src/context/StateContext/StateContextSetter.tsx
222
- function StateContextSetter({ stateRef }) {
223
- if (stateRef.current.setState) return null;
224
- return /* @__PURE__ */ jsx(StateContext.Consumer, { children: (stateContextValue) => {
225
- const { dispatch, setActiveForms } = stateContextValue;
226
- stateRef.current.setState = dispatch;
227
- stateRef.current.setActiveForms = setActiveForms;
228
- return null;
229
- } });
230
- }
231
- //#endregion
232
220
  //#region src/utils/bytesToSize.ts
233
221
  function bytesToSize(bytes) {
234
222
  const sizes = [
@@ -394,4 +382,4 @@ var fileValidationRules = ({ allowedFileTypes, maxNumberOfFiles, maxSize, isOpti
394
382
  }
395
383
  ];
396
384
  //#endregion
397
- export { StateContextSetter as a, getDocument as c, getIdDocument as d, mergeAttachments as f, bytesToSize as i, getDocuments as l, fileValidationRules as n, createDocumentRequest as o, mergeProofOfOwnershipAttachments as p, DropzoneFile as r, documentApiUtils as s, defaultFileValidationOptions as t, getFileExtention as u };
385
+ 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 };