@adyen/kyc-components 4.28.0-beta.1 → 4.28.0-beta.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (166) hide show
  1. package/dist/{AcceptTermsOfServiceWorkflow-CWGZOKtu.js → AcceptTermsOfServiceWorkflow-ClAdxVXd.js} +1 -1
  2. package/dist/{AccountSetupRejected-Bs7galfS.js → AccountSetupRejected-Cr_DSiTy.js} +1 -1
  3. package/dist/{AdaptiveWorkflow-DXJ1u52c.js → AdaptiveWorkflow-CLLU9pOr.js} +20 -20
  4. package/dist/{AdaptiveWorkflowComponent-Bmo1CJwM.js → AdaptiveWorkflowComponent-xaThXPQf.js} +2 -2
  5. package/dist/{AddressFields-M5jupF8l.js → Address-5fEOjxqk.js} +15 -15
  6. package/dist/{BusinessFinancingDropin-Bbw34hVf.js → BusinessFinancingDropin-DGx2jDOE.js} +22 -22
  7. package/dist/{BusinessFinancingPage-CvD-Tk_-.js → BusinessFinancingPage-CnUMV6CL.js} +2 -2
  8. package/dist/{BusinessRegistrationNumberField-B1O-D58L.js → BusinessRegistrationNumberField-DNbNu2rk.js} +5 -5
  9. package/dist/{BusinessRegistrationNumberFieldGroup-C8UNd3to.js → BusinessRegistrationNumberFieldGroup-BQc3omGX.js} +5 -5
  10. package/dist/{BusinessTypeSelectionPage-B10xJcSU.js → BusinessTypeSelectionPage-BaP-I4aE.js} +11 -11
  11. package/dist/{Checkbox-CyMoenl6.js → Checkbox-BEkC71r4.js} +2 -2
  12. package/dist/{ComponentGroup-Jgi1oBjC.js → ComponentGroup-D7Qb-iKj.js} +1 -1
  13. package/dist/{ConstitutionalDocument-bMwKgqNu.js → ConstitutionalDocument-B8Tban-6.js} +131 -125
  14. package/dist/{ContactDetails-Dfr6ysdg.js → ContactDetails-OK5zV1U1.js} +5 -5
  15. package/dist/{ContextGuidance-C7seYQD4.js → ContextGuidance-Dw47AcKO.js} +2 -2
  16. package/dist/{CountryField-EEsbyp0x.js → CountryField-B7939WQQ.js} +3 -3
  17. package/dist/{Currency-dsFhBAjy.js → Currency-DrA7jcDt.js} +6 -6
  18. package/dist/{CustomerSupport-CJVqvdU5.js → CustomerSupport-CJ7N-GAZ.js} +12 -12
  19. package/dist/{DateField-t7FT_iiL.js → DateField-C3vGj_MK.js} +4 -4
  20. package/dist/{DebugModal-BTrunkih.js → DebugModal-DGzw1r1i.js} +6 -6
  21. package/dist/{DecisionMakerDetails-DMljWAWQ.js → DecisionMakerDetails-H1FVYCbP.js} +9 -9
  22. package/dist/{DecisionMakerDetailsPage-B5c_0PN_.js → DecisionMakerDetailsPage-DnC08qvK.js} +5 -5
  23. package/dist/{DecisionMakers-a3DaG-6U.js → DecisionMakers-DA6xwA3n.js} +11 -11
  24. package/dist/{Dropzone-448ZL9VM.js → Dropzone-WVQBXsOb.js} +5 -5
  25. package/dist/{EmailField-Cra7AXIF.js → EmailField-DlTqeno3.js} +4 -4
  26. package/dist/{EntityAssociation-CGquqR8h.js → EntityAssociation-4ZdNmRZ3.js} +3 -3
  27. package/dist/{ErrorPanel-CXMvMtur.js → ErrorPanel-Dwtd8sic.js} +2 -2
  28. package/dist/{GlobalEntryModal-CM5T8FKp.js → GlobalEntryModal-xc6OrAh4.js} +17 -16
  29. package/dist/{GlobalEntryPage-BP588kux.js → GlobalEntryPage-BE9bv-C3.js} +4 -4
  30. package/dist/{IdentityNumber-DnA5GktA.js → IdentityNumber-De-er201.js} +4 -4
  31. package/dist/{IdentityNumberFieldGroup-R8A5uEoN.js → IdentityNumberFieldGroup-C5MkqhvI.js} +3 -3
  32. package/dist/{IdentityScreeningWorkflow-BEf9j8g8.js → IdentityScreeningWorkflow-CIJU2RTu.js} +8 -8
  33. package/dist/{IndividualDropin-BunW0Y1z.js → IndividualDropin-BwgEZs3x.js} +99 -138
  34. package/dist/{IndustryCodeFieldGroup-Dgped8t4.js → IndustryCodeFieldGroup-bwVEhYKO.js} +4 -4
  35. package/dist/{InputDate-PcZy5N0W.js → InputDate-CXixeMAM.js} +4 -4
  36. package/dist/{Introduction-CLSqIBpQ.js → Introduction-DJjsxmbk.js} +5 -5
  37. package/dist/{InvitedDecisionMakerComponent-BxhfJSKq.js → InvitedDecisionMakerComponent-D6x3KHFI.js} +7 -7
  38. package/dist/{JpAddressFields-CapPuNBU.js → JpAddress-D68j3n7L.js} +13 -13
  39. package/dist/{LegalCompanyNameField-4bmqY29I.js → LegalCompanyNameField-BOgs_a16.js} +4 -4
  40. package/dist/{LegalRepresentativeDetailsPage-DxOy9vCU.js → LegalRepresentativeDetailsPage-DDEEsmwC.js} +3 -3
  41. package/dist/{Name-CsOs3hQG.js → Name-BHB7kRk8.js} +3 -3
  42. package/dist/{NumberField-D8xlMgic.js → NumberField-q3UvReko.js} +3 -3
  43. package/dist/{PatriotActDisclosure-CTwsaivh.js → PatriotActDisclosure-BRuDw3WO.js} +9 -9
  44. package/dist/{PayoutDetailsDropin-DAzIUYe4.js → PayoutDetailsDropin-Dnrjswyh.js} +22 -22
  45. package/dist/{PayoutDetailsPage-VLk0DpD7.js → PayoutDetailsPage-AWba5nQN.js} +4 -4
  46. package/dist/{RadioGroup-CEi7ZDGi.js → RadioGroup-Csw26Mhr.js} +2 -2
  47. package/dist/{Review-B03d6GlL.js → Review-BIChuo5g.js} +5 -5
  48. package/dist/{RootBusinessDetailsPage-bY2g62IM.js → RootBusinessDetailsPage-Bzea1U5y.js} +2 -2
  49. package/dist/{RootBusinessLinesPage-DKqmR8rB.js → RootBusinessLinesPage-DidBwXGi.js} +17 -17
  50. package/dist/{RootIndividualDetailsPage-YA9xZU8y.js → RootIndividualDetailsPage-DlFgWqMP.js} +3 -3
  51. package/dist/{Select-DTqe0uNK.js → Select-Jjt3H6zs.js} +3 -3
  52. package/dist/{SignPCIComponent-CXGnjpKO.js → SignPCIComponent-Cbt8lEs0.js} +10 -10
  53. package/dist/{SingpassSelection-CDHJdkCZ.js → SingpassSelection-B_wq0ro8.js} +4 -4
  54. package/dist/{SoleProprietorshipPage-DCjHOTI3.js → SoleProprietorshipPage-DHQ6E1NL.js} +2 -2
  55. package/dist/{SourceOfFundsPage-BEPx4XB0.js → SourceOfFundsPage-DGgdXrvc.js} +18 -18
  56. package/dist/{SourceOfFundsWorkflow-CWYq6pxv.js → SourceOfFundsWorkflow-B8iEJ4QO.js} +1 -1
  57. package/dist/{StateField-DgYpF1_M.js → StateField-_JphU2zZ.js} +9 -9
  58. package/dist/{Step-DGmEuzNc.js → Step-Bz-enzE4.js} +3 -3
  59. package/dist/{Summary-CzJ698Zr.js → Summary-CIL8fweW.js} +1 -1
  60. package/dist/{SummarySection-uydAtNRx.js → SummarySection-BdHCHEUu.js} +2 -2
  61. package/dist/{Task-CxQnoPlO.js → Task-Bt8pnDA9.js} +4 -4
  62. package/dist/{TaskGroup-CNvLui70.js → TaskGroup-CKzG9dgu.js} +2 -2
  63. package/dist/{TaskListItem-D84K14gG.js → TaskListItem-C71fxN7v.js} +5 -5
  64. package/dist/TaxInformationField-Da-YR7qg.js +259 -0
  65. package/dist/{TaxInformationFieldGroup-hUnJmpAo.js → TaxInformationFieldGroup-6qs90McT.js} +7 -7
  66. package/dist/{TaxReportingDropin-CR1Cpz3u.js → TaxReportingDropin-Ci8EwFZR.js} +11 -11
  67. package/dist/{TaxReportingWorkflow-NIVnKcpn.js → TaxReportingWorkflow-BbfN5mpW.js} +1 -1
  68. package/dist/{TermsOfServiceManagement-BJclOKlD.js → TermsOfServiceManagement-CdkojO9F.js} +9 -9
  69. package/dist/{TextArea-CvDM-4De.js → TextArea-CUlnWuqT.js} +3 -3
  70. package/dist/{TextField-DBCBCZMg.js → TextField-C4nHBtK8.js} +4 -4
  71. package/dist/{TrustDetailsPage-B_6vHQnx.js → TrustDetailsPage-CtjpFHPY.js} +23 -22
  72. package/dist/{TrustMemberCompanyPage-DSTdfCRt.js → TrustMemberCompanyPage-zKqn-pzF.js} +4 -4
  73. package/dist/{TrustMemberIndividualPage-CxD06on9.js → TrustMemberIndividualPage-BMleFxIy.js} +3 -3
  74. package/dist/{TrustMemberRoleAndTypePage-Bwl9Dv6w.js → TrustMemberRoleAndTypePage-DFpwcJbZ.js} +19 -19
  75. package/dist/{TrustMembersOverview-Bl_tZ47h.js → TrustMembersOverview-D5H8_NMF.js} +10 -10
  76. package/dist/{UboTaskItem-CYSbY0FC.js → UboTaskItem-BJY_1oAJ.js} +3 -3
  77. package/dist/{UnincorporatedPartnershipIndividualPage-DLpkOoQr.js → UnincorporatedPartnershipIndividualPage-JxcAD39T.js} +3 -3
  78. package/dist/{UnincorporatedPartnershipMemberCompanyPage-BWmArxU3.js → UnincorporatedPartnershipMemberCompanyPage-CxsnGabe.js} +3 -3
  79. package/dist/{UnincorporatedPartnershipMemberRoleAndTypePage-DGys2yUf.js → UnincorporatedPartnershipMemberRoleAndTypePage-BcE8CfWU.js} +9 -9
  80. package/dist/{UnincorporatedPartnershipMembersOverview-GVimwN0S.js → UnincorporatedPartnershipMembersOverview-DO1-L5Cn.js} +5 -5
  81. package/dist/{VerificationErrorAlert-BjsV8ARt.js → VerificationErrorAlert-ByJQTWwc.js} +2 -2
  82. package/dist/{WebsiteField-Sz7RUbW_.js → WebsiteField-BAqw1q1A.js} +4 -4
  83. package/dist/{Workflow-Cty0HzIp.js → Workflow-DgFkPT5b.js} +3 -3
  84. package/dist/{accountHolderUtils-DEWA3MWe.js → accountHolderUtils-C4sbpGq9.js} +1 -1
  85. package/dist/adyen-business-financing.js +3 -3
  86. package/dist/adyen-individual-configuration.js +3 -3
  87. package/dist/adyen-individual-status.js +1 -1
  88. package/dist/adyen-invited-decision-maker.js +2 -2
  89. package/dist/adyen-onboarding.js +18 -18
  90. package/dist/adyen-terms-of-service-management.js +2 -2
  91. package/dist/adyen-terms-of-service-status.js +1 -1
  92. package/dist/adyen-transfer-instrument-configuration.js +2 -2
  93. package/dist/adyen-transfer-instrument-management.js +6 -6
  94. package/dist/adyen-verification-status.js +1 -1
  95. package/dist/{bafinUtils-CFvCTqAt.js → bafinUtils-Cs44-4gm.js} +10 -257
  96. package/dist/{constants-Ctu_3qBl.js → constants-B8YCUIao.js} +3 -3
  97. package/dist/{dropinUtils-DBnjaFWb.js → dropinUtils-BAx_kWeq.js} +5 -5
  98. package/dist/{error-C05wuAm2.js → error-8q7lWdou.js} +2 -2
  99. package/dist/{fieldConfig-28YDsFPu.js → fieldConfig-Bv9qSPl1.js} +1 -1
  100. package/dist/{formatDataForSummary-Ccs4H7BO.js → formatDataForSummary-DVcusBqf.js} +127 -15
  101. package/dist/{formatValidationError-DIPpFoJQ.js → formatValidationError-CRIcczdD.js} +1 -1
  102. package/dist/{getDefaultRegistrationNumberType-C3OAyMCv.js → getDefaultRegistrationNumberType--Vh5y4A3.js} +5 -5
  103. package/dist/{getValidationError-C00cY5Gg.js → getValidationError-t17tjdt8.js} +1 -1
  104. package/dist/{invalidateRootLegalEntity-DrJp13W1.js → invalidateRootLegalEntity-BWLd6SvV.js} +1 -1
  105. package/dist/mapAddressLocalizationToJpAddressSchema-DqM6uUSJ.js +39 -0
  106. package/dist/{mapExistingFile-CqbTLZ6i.js → mapExistingFile-CLSPk17k.js} +1 -1
  107. package/dist/{mapTransferInstrumentToPayoutAccount-Dq0983R5.js → mapTransferInstrumentToPayoutAccount-BcWIlJYq.js} +1 -1
  108. package/dist/{processValidationErrors-D0qSlh3W.js → processValidationErrors-CMs3YEdp.js} +2 -2
  109. package/dist/{registerEmbed-DQqTWYX2.js → registerEmbed-Xubdbk-a.js} +7 -7
  110. package/dist/{roleMetadata-B1KP0JZL.js → roleMetadata-i1i1JuLw.js} +2 -2
  111. package/dist/types/api/address/useAddressCleanse.d.ts +1 -1
  112. package/dist/types/components/Business/forms/AdditionalInformation/VerifiedBusinessCard/VerifiedBusinessCard.d.ts +1 -1
  113. package/dist/types/components/Business/forms/AdditionalInformation/types.d.ts +1 -1
  114. package/dist/types/components/Business/forms/AdditionalInformation/utils.d.ts +1 -1
  115. package/dist/types/components/Business/forms/rules.d.ts +1 -1
  116. package/dist/types/components/EFP/tasks/BusinessFinancingDropin/types.d.ts +1 -1
  117. package/dist/types/components/Individual/forms/AdditionalPersonalDetails/AdditionalPersonalDetails.types.d.ts +1 -1
  118. package/dist/types/components/Individual/forms/IdVerificationMethod/individualConflictsSchema.d.ts +1 -1
  119. package/dist/types/components/Individual/forms/Individual.rules.d.ts +7 -1
  120. package/dist/types/components/Individual/mapping/mapIndividualSchemaToLegalEntity.d.ts +18 -0
  121. package/dist/types/components/Individual/tasks/IndividualDropin/IndividualSummary.d.ts +4 -1
  122. package/dist/types/components/Individual/utils/formatDataForSummary.d.ts +4 -1
  123. package/dist/types/components/Shared/{forms/Address/AddressFields.d.ts → fields/Address/Address.d.ts} +2 -2
  124. package/dist/types/components/Shared/fields/{RegistrationAndOperationalAddressFields → Address/RegistrationAndOperationalAddressFields}/RegistrationAndOperationalAddressFields.d.ts +7 -1
  125. package/dist/types/components/Shared/fields/{RegistrationAndOperationalAddressFields → Address/RegistrationAndOperationalAddressFields}/types.d.ts +5 -5
  126. package/dist/types/components/Shared/fields/{RegistrationAndOperationalAddressFields → Address/RegistrationAndOperationalAddressFields}/utils.d.ts +2 -2
  127. package/dist/types/components/Shared/{forms → fields}/Address/SearchAddress.d.ts +1 -1
  128. package/dist/types/components/Shared/fields/Address/localized/jp/JpAddress.d.ts +2 -0
  129. package/dist/types/components/Shared/{forms → fields}/Address/localized/jp/mapAddressLocalizationToJpAddressSchema.d.ts +1 -1
  130. package/dist/types/components/Shared/{forms → fields}/Address/localized/jp/mapJpAddressSchemaToAddressLocalizations.d.ts +1 -1
  131. package/dist/types/components/Shared/{forms → fields}/Address/localized/jp/mapJpAddressSummary.d.ts +1 -1
  132. package/dist/types/components/Shared/{forms → fields}/Address/rules.d.ts +1 -1
  133. package/dist/types/components/Shared/{forms → fields}/Address/types.d.ts +1 -1
  134. package/dist/types/components/Trust/forms/Trust/forms.d.ts +1 -1
  135. package/dist/types/components/Trust/forms/TrustRegistrationAddress/types.d.ts +1 -1
  136. package/dist/types/utils/addressToString.d.ts +1 -1
  137. package/dist/{unincorporatedPartnership-E0Wffo2-.js → unincorporatedPartnership-DPK34PF1.js} +1 -1
  138. package/dist/{useBusinessDetailsData-B2jIzpVP.js → useBusinessDetailsData-DwaSU98Q.js} +37 -37
  139. package/dist/{useCanSeeIntroduction-CguqBHaC.js → useCanSeeIntroduction-BMXtlTKu.js} +2 -2
  140. package/dist/{useForm-CwWvs060.js → useForm-tZJzKTj7.js} +2 -2
  141. package/dist/{useId-BV444pyC.js → useId-usoEnbTl.js} +1 -1
  142. package/dist/{useNavigate-BPvz7b_2.js → useNavigate-hJpbSouk.js} +32 -32
  143. package/dist/{useSalesChannels-GPyBj7Bk.js → useSalesChannels-OXrUy-Oo.js} +1 -1
  144. package/dist/{useSaveForLater-BSIOwMfL.js → useSaveForLater-fJUZyWBN.js} +3 -3
  145. package/dist/{useTaskLandedEvent-CuOu8Sqr.js → useTaskLandedEvent-CmLLhK6a.js} +1 -1
  146. package/dist/{useTrustMembers-Dwbb5xh4.js → useTrustMembers-C4jO1FRe.js} +2 -2
  147. package/dist/{useUnincorporatedPartnershipMembers-1bLF5aPT.js → useUnincorporatedPartnershipMembers-5_bcpZVq.js} +2 -2
  148. package/dist/{utils-B_dD2dvD.js → utils-6Lfk9m3d.js} +1 -1
  149. package/dist/{utils-BPKdYHDB.js → utils-B9FZV547.js} +3 -3
  150. package/dist/{utils-tMG2x_WY.js → utils-CMDo05iY.js} +1 -1
  151. package/dist/{validate-BZLQWEd-.js → validate-BY2KTX10.js} +2 -2
  152. package/dist/{validate-BlsJOvUC.js → validate-CEKo7egC.js} +8 -8
  153. package/dist/{validate-DlL0gf63.js → validate-D-9807Cu.js} +2 -2
  154. package/dist/{validate-Dtlyak_C.js → validate-NlmooHWm.js} +3 -3
  155. package/dist/{validateExtractionResult-BD0Vu-XF.js → validateExtractionResult-D8JAU47X.js} +1 -1
  156. package/package.json +1 -1
  157. package/dist/mapAddressLocalizationToJpAddressSchema-CyNuoq1S.js +0 -26
  158. package/dist/mapJpAddressSchemaToAddressLocalizations-BtkCWRQU.js +0 -19
  159. package/dist/types/components/Shared/forms/Address/localized/jp/JpAddressFields.d.ts +0 -2
  160. /package/dist/types/components/Shared/{forms → fields}/Address/AddressField.d.ts +0 -0
  161. /package/dist/types/components/Shared/{forms → fields}/Address/SearchAddressItem.d.ts +0 -0
  162. /package/dist/types/components/Shared/{forms → fields}/Address/constants.d.ts +0 -0
  163. /package/dist/types/components/Shared/{forms → fields}/Address/localized/jp/ReadonlyTextField.d.ts +0 -0
  164. /package/dist/types/components/Shared/{forms → fields}/Address/utils.d.ts +0 -0
  165. /package/dist/types/components/Shared/{forms → fields}/Address/validate.d.ts +0 -0
  166. /package/dist/types/components/Shared/{forms → fields}/Address/validate.formats.d.ts +0 -0
@@ -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] = "1afe7fb9-0496-4af2-82bc-19fc0d6871fd", e._sentryDebugIdIdentifier = "sentry-dbid-1afe7fb9-0496-4af2-82bc-19fc0d6871fd");
3
+ n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "848fdeb4-a2f2-410b-9b58-9b78900f73dc", e._sentryDebugIdIdentifier = "sentry-dbid-848fdeb4-a2f2-410b-9b58-9b78900f73dc");
4
4
  } catch (e) {}
5
5
  import { n as addResourceBundles, r as useTranslation } from "./translation-CpH8D2NK.js";
6
- import { N as Header, P as _rolldown_dynamic_import_helper_default, T as Alert } from "./registerEmbed-DQqTWYX2.js";
6
+ import { N as Header, P as _rolldown_dynamic_import_helper_default, T as Alert } from "./registerEmbed-Xubdbk-a.js";
7
7
  import { t as createLogger } from "./logger-Z8AeTE4x.js";
8
8
  import { t as Icon } from "./Icon-D2IGgB2L.js";
9
9
  import { t as Typography } from "./Typography-CAc_f5Iq.js";
@@ -16,31 +16,31 @@ import { a as objectsDeepEqual } from "./genUtils-nphCwt1A.js";
16
16
  import { t as StackLayout } from "./StackLayout-J1ynSX-P.js";
17
17
  import { n as TASK_STATUS_POLLING_INTERVAL_MS } from "./taskStatus-BtekPA8E.js";
18
18
  import { t as TaskTypes } from "./taskTypes-3vSkMBDm.js";
19
- import { t as Checkbox } from "./Checkbox-CyMoenl6.js";
20
- import { a as useAnalyticsContext, n as Modal } from "./useId-BV444pyC.js";
21
- import { r as InputText, t as RadioGroup } from "./RadioGroup-CEi7ZDGi.js";
19
+ import { t as Checkbox } from "./Checkbox-BEkC71r4.js";
20
+ import { a as useAnalyticsContext, n as Modal } from "./useId-usoEnbTl.js";
21
+ import { r as InputText, t as RadioGroup } from "./RadioGroup-Csw26Mhr.js";
22
22
  import { t as useBusinessLines } from "./useBusinessLines-0FcuDMzo.js";
23
23
  import { t as Card } from "./Card-BCGLpdw7.js";
24
- import { n as useToastContext, t as useInvalidateRootLegalEntity } from "./invalidateRootLegalEntity-DrJp13W1.js";
25
- import { l as LandingLayout, n as Image } from "./unincorporatedPartnership-E0Wffo2-.js";
24
+ import { n as useToastContext, t as useInvalidateRootLegalEntity } from "./invalidateRootLegalEntity-BWLd6SvV.js";
25
+ import { l as LandingLayout, n as Image } from "./unincorporatedPartnership-DPK34PF1.js";
26
26
  import { n as useCapabilityProblems, t as getProblemsForEntity } from "./getProblemsForEntity-FHk416BA.js";
27
27
  import { t as Avatar } from "./Avatar-BBJO6JWY.js";
28
- import { o as Field, t as Select } from "./Select-DTqe0uNK.js";
29
- import { o as StructuredList, r as formatObject, s as Confirm } from "./utils-B_dD2dvD.js";
30
- import { h as useUpdateLegalEntity, m as isEmpty } from "./StateField-DgYpF1_M.js";
31
- import { H as FormContextProvider, I as useMultiForm, c as CountryField, g as createFormUtils, l as getValidationErrorDisplayMessages, n as getRequiredForms, t as addValidityToForms, v as useFormContext, y as FormFlow, z as useFormComposer } from "./dropinUtils-DBnjaFWb.js";
32
- import { H as TileGroup } from "./bafinUtils-CFvCTqAt.js";
28
+ import { o as Field, t as Select } from "./Select-Jjt3H6zs.js";
29
+ import { o as StructuredList, r as formatObject, s as Confirm } from "./utils-6Lfk9m3d.js";
30
+ import { h as useUpdateLegalEntity, m as isEmpty } from "./StateField-_JphU2zZ.js";
31
+ import { H as FormContextProvider, I as useMultiForm, c as CountryField, g as createFormUtils, l as getValidationErrorDisplayMessages, n as getRequiredForms, t as addValidityToForms, v as useFormContext, y as FormFlow, z as useFormComposer } from "./dropinUtils-BAx_kWeq.js";
32
+ import { U as TileGroup } from "./bafinUtils-Cs44-4gm.js";
33
33
  import { t as useCreateLegalEntity } from "./useCreateLegalEntity-CgzVD39K.js";
34
- import { t as useTaskLandedEvent } from "./useTaskLandedEvent-CuOu8Sqr.js";
34
+ import { t as useTaskLandedEvent } from "./useTaskLandedEvent-CmLLhK6a.js";
35
35
  import { n as documentApiUtils, t as createDocumentRequest } from "./documentUtils-6K3LdjjN.js";
36
- import { t as InputDate } from "./InputDate-PcZy5N0W.js";
37
- import { t as ErrorPanel } from "./ErrorPanel-CXMvMtur.js";
38
- import { t as TextArea } from "./TextArea-CvDM-4De.js";
39
- import { t as Dropzone } from "./Dropzone-448ZL9VM.js";
36
+ import { t as InputDate } from "./InputDate-CXixeMAM.js";
37
+ import { t as ErrorPanel } from "./ErrorPanel-Dwtd8sic.js";
38
+ import { t as TextArea } from "./TextArea-CUlnWuqT.js";
39
+ import { t as Dropzone } from "./Dropzone-WVQBXsOb.js";
40
40
  import { t as InputGroup } from "./InputGroup-Bv005B22.js";
41
41
  import { t as localizeDateString } from "./localizeDateString-Dxlqr4rL.js";
42
42
  import { t as Currencies } from "./currency-DQwXq9Mc.js";
43
- import { n as validateDateNotInTheFuture } from "./validate-BZLQWEd-.js";
43
+ import { n as validateDateNotInTheFuture } from "./validate-BY2KTX10.js";
44
44
  import { t as useTaskStatus } from "./useTaskStatus-4nAPf_uD.js";
45
45
  import { t as formatAmountWithCurrency } from "./formatCurrency-BetgkQKi.js";
46
46
  import { lazy } from "preact/compat";
@@ -5,7 +5,7 @@ try {
5
5
  import { t as EndStateLayout } from "./EndStateLayout-CBzxX67s.js";
6
6
  import { t as useTaskStepperContext } from "./useTaskStepperContext-DCNMsKUc.js";
7
7
  import { t as useHideTaskStepper } from "./useHideTaskStepper-DvHXw3zd.js";
8
- import { SourceOfFundsPage } from "./SourceOfFundsPage-BEPx4XB0.js";
8
+ import { SourceOfFundsPage } from "./SourceOfFundsPage-DGgdXrvc.js";
9
9
  import { jsx } from "preact/jsx-runtime";
10
10
  //#region src/adaptiveWorkflow/components/Layout/Steps/SourceOfFundsWorkflow.tsx
11
11
  var SourceOfFundsWorkflow = ({ node }) => {
@@ -1,15 +1,15 @@
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] = "69053f2d-2179-4632-bf8c-0976ce187396", e._sentryDebugIdIdentifier = "sentry-dbid-69053f2d-2179-4632-bf8c-0976ce187396");
3
+ n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "256de0df-b7ba-414d-8676-77c05dedc7ae", e._sentryDebugIdIdentifier = "sentry-dbid-256de0df-b7ba-414d-8676-77c05dedc7ae");
4
4
  } catch (e) {}
5
5
  import { r as useTranslation } from "./translation-CpH8D2NK.js";
6
- import { D as useDataset, O as datasetIdentifier } from "./registerEmbed-DQqTWYX2.js";
6
+ import { D as useDataset, O as datasetIdentifier } from "./registerEmbed-Xubdbk-a.js";
7
7
  import { r as httpPost, s as useApiContext } from "./http-C8rt2BZk.js";
8
8
  import { s as keysOf } from "./genUtils-nphCwt1A.js";
9
9
  import { t as CountryCodes } from "./country-code-CJk2hdPu.js";
10
- import { t as useInvalidateRootLegalEntity } from "./invalidateRootLegalEntity-DrJp13W1.js";
11
- import { o as Field, t as Select } from "./Select-DTqe0uNK.js";
12
- import { E as validateNotEmptyOnBlur } from "./dropinUtils-DBnjaFWb.js";
10
+ import { t as useInvalidateRootLegalEntity } from "./invalidateRootLegalEntity-BWLd6SvV.js";
11
+ import { o as Field, t as Select } from "./Select-Jjt3H6zs.js";
12
+ import { E as validateNotEmptyOnBlur } from "./dropinUtils-BAx_kWeq.js";
13
13
  import { jsx } from "preact/jsx-runtime";
14
14
  import { useMutation, useQueryClient } from "@tanstack/preact-query";
15
15
  //#region src/api/legalEntity/useUpdateLegalEntity.ts
@@ -46,7 +46,7 @@ var isJapanLocalizationEnabled = (isSettingEnabled = () => false, country) => {
46
46
  return country === CountryCodes.Japan && isSettingEnabled("enableJapanLocalization");
47
47
  };
48
48
  //#endregion
49
- //#region src/components/Shared/forms/Address/constants.ts
49
+ //#region src/components/Shared/fields/Address/constants.ts
50
50
  /** Just a full list of known address field names, useful if you need to iterate over some unknown data obj */
51
51
  var addressFields = [
52
52
  "street",
@@ -227,7 +227,7 @@ var LABELS = {
227
227
  }
228
228
  };
229
229
  //#endregion
230
- //#region src/components/Shared/forms/Address/localized/jp/mapJpAddressSummary.tsx
230
+ //#region src/components/Shared/fields/Address/localized/jp/mapJpAddressSummary.tsx
231
231
  /**
232
232
  * Stacks the scripts a field was given in, skipping the ones it was not. Returns nothing when the
233
233
  * field is empty in every script, so the caller can leave the row out rather than render a label
@@ -250,7 +250,7 @@ var mapJpAddressSummary = (data, datasetUtils) => {
250
250
  };
251
251
  };
252
252
  //#endregion
253
- //#region src/components/Shared/forms/Address/rules.ts
253
+ //#region src/components/Shared/fields/Address/rules.ts
254
254
  /**
255
255
  * Handling for fields with version/feature-specific requirements that need to be removed
256
256
  * even if in the schema for a particular country.
@@ -287,7 +287,7 @@ function addressFieldRule({ field, country, isSettingEnabled, version, isOperati
287
287
  return "REQUIRED";
288
288
  }
289
289
  //#endregion
290
- //#region src/components/Shared/forms/Address/utils.ts
290
+ //#region src/components/Shared/fields/Address/utils.ts
291
291
  /**
292
292
  * Returns the key for a field of the passed country or the default key for that field.
293
293
  * @param fieldName - The data to pre-fill the address fields
@@ -3,12 +3,12 @@ try {
3
3
  n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "b67edb96-9a2d-4694-a5af-a065f2615dc9", e._sentryDebugIdIdentifier = "sentry-dbid-b67edb96-9a2d-4694-a5af-a065f2615dc9");
4
4
  } catch (e) {}
5
5
  import { r as useTranslation } from "./translation-CpH8D2NK.js";
6
- import { N as Header } from "./registerEmbed-DQqTWYX2.js";
6
+ import { N as Header } from "./registerEmbed-Xubdbk-a.js";
7
7
  import { s as useApiContext } from "./http-C8rt2BZk.js";
8
8
  import { t as StackLayout } from "./StackLayout-J1ynSX-P.js";
9
9
  import { i as setNestedValue, n as getNestedValue } from "./utils-ChZNfG5_.js";
10
- import { h as useUpdateLegalEntity } from "./StateField-DgYpF1_M.js";
11
- import { n as useWorkflowContext, t as NodeRenderer } from "./AdaptiveWorkflow-DXJ1u52c.js";
10
+ import { h as useUpdateLegalEntity } from "./StateField-_JphU2zZ.js";
11
+ import { n as useWorkflowContext, t as NodeRenderer } from "./AdaptiveWorkflow-CLLU9pOr.js";
12
12
  import { t as useAppForm } from "./formHook-Dgi2CgbT.js";
13
13
  import { t as useTaskStepperContext } from "./useTaskStepperContext-DCNMsKUc.js";
14
14
  import { n as useCreateBusinessLine, t as useUpdateBusinessLine } from "./useUpdateBusinessLines-B-pF2YT-.js";
@@ -3,7 +3,7 @@ try {
3
3
  n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "be816df4-64af-4a73-909a-25100f010a93", e._sentryDebugIdIdentifier = "sentry-dbid-be816df4-64af-4a73-909a-25100f010a93");
4
4
  } catch (e) {}
5
5
  import { r as useTranslation } from "./translation-CpH8D2NK.js";
6
- import { N as Header } from "./registerEmbed-DQqTWYX2.js";
6
+ import { N as Header } from "./registerEmbed-Xubdbk-a.js";
7
7
  import { t as StackLayout } from "./StackLayout-J1ynSX-P.js";
8
8
  import { jsx, jsxs } from "preact/jsx-runtime";
9
9
  //#region src/components/Shared/Summary/Summary.tsx
@@ -5,8 +5,8 @@ try {
5
5
  import { r as useTranslation } from "./translation-CpH8D2NK.js";
6
6
  import { t as Typography } from "./Typography-CAc_f5Iq.js";
7
7
  import { n as IconButton } from "./Button-EhGM-oCO.js";
8
- import { a as useAnalyticsContext } from "./useId-BV444pyC.js";
9
- import { B as trackNavigation, o as List } from "./dropinUtils-DBnjaFWb.js";
8
+ import { a as useAnalyticsContext } from "./useId-usoEnbTl.js";
9
+ import { B as trackNavigation, o as List } from "./dropinUtils-BAx_kWeq.js";
10
10
  import { jsx, jsxs } from "preact/jsx-runtime";
11
11
  var SummarySection_module_default = {
12
12
  "summary-header": "_summary-header_jps0f_1",
@@ -5,10 +5,10 @@ try {
5
5
  import { r as useTranslation } from "./translation-CpH8D2NK.js";
6
6
  import { t as Button } from "./Button-EhGM-oCO.js";
7
7
  import { i as TaskStatuses } from "./taskStatus-BtekPA8E.js";
8
- import { n as Modal } from "./useId-BV444pyC.js";
9
- import { t as TaskListItem } from "./TaskListItem-D84K14gG.js";
10
- import { b as FormFlow_module_default } from "./dropinUtils-DBnjaFWb.js";
11
- import { n as useWorkflowContext, t as NodeRenderer } from "./AdaptiveWorkflow-DXJ1u52c.js";
8
+ import { n as Modal } from "./useId-usoEnbTl.js";
9
+ import { t as TaskListItem } from "./TaskListItem-C71fxN7v.js";
10
+ import { b as FormFlow_module_default } from "./dropinUtils-BAx_kWeq.js";
11
+ import { n as useWorkflowContext, t as NodeRenderer } from "./AdaptiveWorkflow-CLLU9pOr.js";
12
12
  import { t as useTaskStepperContext } from "./useTaskStepperContext-DCNMsKUc.js";
13
13
  import { t as TaskStepperContextProvider } from "./TaskStepperContextProvider-C36jSigo.js";
14
14
  import { useCallback, useRef, useState } from "preact/hooks";
@@ -3,9 +3,9 @@ try {
3
3
  n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "0651eda7-4249-4f00-b02f-334db0b3f3db", e._sentryDebugIdIdentifier = "sentry-dbid-0651eda7-4249-4f00-b02f-334db0b3f3db");
4
4
  } catch (e) {}
5
5
  import { r as useTranslation } from "./translation-CpH8D2NK.js";
6
- import { N as Header } from "./registerEmbed-DQqTWYX2.js";
6
+ import { N as Header } from "./registerEmbed-Xubdbk-a.js";
7
7
  import { t as StackLayout } from "./StackLayout-J1ynSX-P.js";
8
- import { t as NodeRenderer } from "./AdaptiveWorkflow-DXJ1u52c.js";
8
+ import { t as NodeRenderer } from "./AdaptiveWorkflow-CLLU9pOr.js";
9
9
  import { jsx, jsxs } from "preact/jsx-runtime";
10
10
  //#region src/adaptiveWorkflow/components/Layout/TaskGroup/contextMap.ts
11
11
  var contextMap = {
@@ -3,17 +3,17 @@ try {
3
3
  n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "aeca5b25-6faf-4fde-89c5-0cdd19d635e3", e._sentryDebugIdIdentifier = "sentry-dbid-aeca5b25-6faf-4fde-89c5-0cdd19d635e3");
4
4
  } catch (e) {}
5
5
  import { r as useTranslation } from "./translation-CpH8D2NK.js";
6
- import { T as Alert } from "./registerEmbed-DQqTWYX2.js";
6
+ import { T as Alert } from "./registerEmbed-Xubdbk-a.js";
7
7
  import { t as Icon } from "./Icon-D2IGgB2L.js";
8
8
  import { n as IconButton } from "./Button-EhGM-oCO.js";
9
9
  import { t as TaskVerificationStatus } from "./TaskVerificationStatus-Br7t30ur.js";
10
10
  import { i as TaskStatuses } from "./taskStatus-BtekPA8E.js";
11
- import { a as useAnalyticsContext } from "./useId-BV444pyC.js";
11
+ import { a as useAnalyticsContext } from "./useId-usoEnbTl.js";
12
12
  import { t as Card } from "./Card-BCGLpdw7.js";
13
- import { t as VerificationErrorAlert } from "./VerificationErrorAlert-BjsV8ARt.js";
13
+ import { t as VerificationErrorAlert } from "./VerificationErrorAlert-ByJQTWwc.js";
14
14
  import { t as Avatar } from "./Avatar-BBJO6JWY.js";
15
- import { p as LoaderWrapper } from "./Select-DTqe0uNK.js";
16
- import { s as Confirm } from "./utils-B_dD2dvD.js";
15
+ import { p as LoaderWrapper } from "./Select-Jjt3H6zs.js";
16
+ import { s as Confirm } from "./utils-6Lfk9m3d.js";
17
17
  import { useState } from "preact/hooks";
18
18
  import { Fragment, jsx, jsxs } from "preact/jsx-runtime";
19
19
  //#region src/components/Apps/tasks/TaskList/TaskListItem/TaskListItem.tsx
@@ -0,0 +1,259 @@
1
+ try {
2
+ let e = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : {}, n = new e.Error().stack;
3
+ n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "eba061a8-f351-492c-9c2a-8e631a75c3d6", e._sentryDebugIdIdentifier = "sentry-dbid-eba061a8-f351-492c-9c2a-8e631a75c3d6");
4
+ } catch (e) {}
5
+ import { r as useTranslation } from "./translation-CpH8D2NK.js";
6
+ import { vt as useAccountHolder } from "./registerEmbed-Xubdbk-a.js";
7
+ import { i as useToggleContext, t as Checkbox } from "./Checkbox-BEkC71r4.js";
8
+ import { a as resolveFieldMetadata } from "./unincorporatedPartnership-DPK34PF1.js";
9
+ import { a as translateTranslatable, o as Field } from "./Select-Jjt3H6zs.js";
10
+ import { r as MaskedInput } from "./dropinUtils-BAx_kWeq.js";
11
+ import { B as getTaxIdNumberSelectorOptions, _ as taxInformationDefaultFieldMetadata, d as upsertTaxInfoForCountry, f as TaxIdNumberTypeSelector, g as taxInformationDefaultFieldConfig, k as COUNTRIES_WITH_POSSIBLE_TRUSTEE_TAXID_ABSENT_V4, l as removeTaxInfoForCountry, m as exemptedFromTaxDefaultFieldMetadata, p as exemptedFromTaxDefaultFieldConfig, u as resolveTaxIdNumberType, z as getTaxIdNumberOptions } from "./bafinUtils-Cs44-4gm.js";
12
+ import { useCallback, useEffect, useLayoutEffect, useMemo, useRef } from "preact/hooks";
13
+ import { jsx, jsxs } from "preact/jsx-runtime";
14
+ //#region src/components/Shared/fields/TaxInformationField/TaxIdNumberTypeSelector/findExistingTaxInformation.ts
15
+ /**
16
+ * Finds tax information for a specific country from an array of tax information objects.
17
+ *
18
+ * @param taxInformation - Array of tax information objects to search through
19
+ * @param country - Country code to find tax information for
20
+ * @returns The first matching tax information object or undefined if none found
21
+ */
22
+ function findExistingTaxInformation(taxInformation, country) {
23
+ return taxInformation?.find((taxId) => taxId.country === country);
24
+ }
25
+ //#endregion
26
+ //#region src/components/Shared/fields/TaxInformationField/TaxInformationField.tsx
27
+ var TAX_INFORMATION_FIELD = [
28
+ "taxInformation",
29
+ "exemptedFromTax",
30
+ "isUen"
31
+ ];
32
+ /**
33
+ * Renders a dynamic form field for tax identification information, adapting its display
34
+ * and behavior based on country and company type. It supports various tax ID input
35
+ * scenarios, including two specialized handling for US Sole Proprietorships (where SSN option acts as exemption selection)
36
+ * and Singapore Companies (where registration number (UEN) can be used for tax ID).
37
+ */
38
+ function TaxInformationField({ data, valid, errors, placeholder, readonly, optional, shouldValidate, handleChangeFor, country, canExempt, registrationNumber, entityType, defaultData }) {
39
+ const { isFeatureEnabled } = useToggleContext();
40
+ const { t } = useTranslation("common");
41
+ const { accountHolder } = useAccountHolder();
42
+ const currentCountryTaxInformation = useMemo(() => data?.taxInformation?.find((taxInfo) => taxInfo.country === country) ?? (!data.exemptedFromTax ? defaultData?.find((taxInfo) => taxInfo.country === country) : void 0), [
43
+ data?.taxInformation,
44
+ data.exemptedFromTax,
45
+ defaultData,
46
+ country
47
+ ]);
48
+ const isUsSoleProp = country === "US" && entityType === "soleProprietorship";
49
+ const { type: savedTaxIdNumberType, isStale: isSavedTaxIdStale } = resolveTaxIdNumberType({
50
+ country,
51
+ entityType,
52
+ savedType: currentCountryTaxInformation?.type
53
+ });
54
+ const savedTaxIdNumber = isSavedTaxIdStale ? void 0 : currentCountryTaxInformation?.number;
55
+ const options = getTaxIdNumberOptions(country, entityType);
56
+ const showTaxIdExemptedOptions = canExempt && (options?.length ?? 0) > 1 || isUsSoleProp;
57
+ const canSaveAbsentState = isFeatureEnabled("EnableRegistrationAndTaxAbsentStatesV4") && COUNTRIES_WITH_POSSIBLE_TRUSTEE_TAXID_ABSENT_V4.includes(country) && accountHolder === "aTrust";
58
+ const { label: resolvedExemptionLabel } = resolveFieldMetadata(exemptedFromTaxDefaultFieldConfig[country], {}, exemptedFromTaxDefaultFieldMetadata);
59
+ const exemptedFromTaxLabel = t(($) => $[resolvedExemptionLabel ?? "iDontHaveATaxId"]);
60
+ const exemptionLabel = isUsSoleProp ? t(($) => $["socialSecurityNumber"]) : exemptedFromTaxLabel;
61
+ const selectorOptions = getTaxIdNumberSelectorOptions(country, entityType, showTaxIdExemptedOptions ? exemptionLabel : void 0);
62
+ const shouldRenderInput = isUsSoleProp ? currentCountryTaxInformation?.type === "EIN" : !data.isUen;
63
+ const taxIdNumberType = useMemo(() => {
64
+ if (data.exemptedFromTax) return "exempted";
65
+ if (savedTaxIdNumberType) return savedTaxIdNumberType;
66
+ if (isUsSoleProp) return void 0;
67
+ return findExistingTaxInformation(data.taxInformation, country)?.type;
68
+ }, [
69
+ country,
70
+ savedTaxIdNumberType,
71
+ data.exemptedFromTax,
72
+ data.taxInformation,
73
+ isUsSoleProp
74
+ ]);
75
+ const shouldDisplayErrorOnSelector = selectorOptions.length > 1 && taxIdNumberType === void 0;
76
+ const selectorError = shouldDisplayErrorOnSelector ? errors.taxInformation : void 0;
77
+ const inputError = shouldDisplayErrorOnSelector ? void 0 : errors.taxInformation;
78
+ const { label, mask, guidanceText } = resolveFieldMetadata(taxInformationDefaultFieldConfig[country], {
79
+ taxIdNumberType: taxIdNumberType === "exempted" ? void 0 : taxIdNumberType,
80
+ companyType: entityType
81
+ }, taxInformationDefaultFieldMetadata);
82
+ const updateTaxInfo = useCallback((mode, newEntry) => {
83
+ const entry = canSaveAbsentState ? {
84
+ ...newEntry,
85
+ numberAbsent: newEntry.numberAbsent ?? false
86
+ } : newEntry;
87
+ handleChangeFor("taxInformation", mode)(upsertTaxInfoForCountry(data.taxInformation, country, entry));
88
+ }, [
89
+ canSaveAbsentState,
90
+ country,
91
+ data.taxInformation,
92
+ handleChangeFor
93
+ ]);
94
+ const updateTaxType = useCallback((type, mode) => {
95
+ updateTaxInfo(mode, {
96
+ country,
97
+ number: savedTaxIdNumber,
98
+ type
99
+ });
100
+ }, [
101
+ country,
102
+ savedTaxIdNumber,
103
+ updateTaxInfo
104
+ ]);
105
+ const resetToDefaultData = useCallback(() => {
106
+ if (defaultData !== void 0) handleChangeFor("taxInformation", "input")(defaultData);
107
+ }, [defaultData, handleChangeFor]);
108
+ const removeCountryTaxInfo = useCallback(() => {
109
+ handleChangeFor("taxInformation", "input")(removeTaxInfoForCountry(data.taxInformation, country));
110
+ }, [
111
+ country,
112
+ data.taxInformation,
113
+ handleChangeFor
114
+ ]);
115
+ const setUenAsTaxId = useCallback((uen) => {
116
+ updateTaxInfo("blur", {
117
+ country,
118
+ number: uen ?? "",
119
+ type: "UEN"
120
+ });
121
+ }, [country, updateTaxInfo]);
122
+ const addTaxAbsentStatus = useCallback((exempted) => {
123
+ handleChangeFor("taxInformation", "input")(upsertTaxInfoForCountry(data.taxInformation, country, {
124
+ country,
125
+ numberAbsent: exempted
126
+ }));
127
+ }, [
128
+ country,
129
+ data.taxInformation,
130
+ handleChangeFor
131
+ ]);
132
+ const handleTaxNumberChange = useCallback((e, mode) => {
133
+ const value = e ? typeof e === "string" ? e : e.currentTarget.value : void 0;
134
+ updateTaxInfo(mode, {
135
+ country,
136
+ number: value,
137
+ type: savedTaxIdNumberType ?? (taxIdNumberType !== "exempted" ? taxIdNumberType : void 0)
138
+ });
139
+ }, [
140
+ country,
141
+ savedTaxIdNumberType,
142
+ taxIdNumberType,
143
+ updateTaxInfo
144
+ ]);
145
+ const handleTaxIdNumberTypeChange = useCallback((taxIdType) => {
146
+ if (!canExempt && taxIdType === "exempted") throw Error(`${country} does not allow tax exemptions`);
147
+ if (taxIdType === "exempted") {
148
+ handleChangeFor("exemptedFromTax")(true);
149
+ updateTaxType(void 0, "input");
150
+ return canSaveAbsentState ? addTaxAbsentStatus(true) : removeCountryTaxInfo();
151
+ }
152
+ handleChangeFor("exemptedFromTax")(false);
153
+ if (country === "SG") {
154
+ if (taxIdType === "UEN") {
155
+ handleChangeFor("isUen")(true);
156
+ setUenAsTaxId(registrationNumber);
157
+ } else {
158
+ handleChangeFor("isUen")(false);
159
+ removeCountryTaxInfo();
160
+ }
161
+ }
162
+ updateTaxType(taxIdType, "input");
163
+ }, [
164
+ addTaxAbsentStatus,
165
+ canExempt,
166
+ canSaveAbsentState,
167
+ country,
168
+ handleChangeFor,
169
+ updateTaxType,
170
+ registrationNumber,
171
+ removeCountryTaxInfo,
172
+ setUenAsTaxId
173
+ ]);
174
+ const handleExemptedFromTaxChange = useCallback((exempted) => {
175
+ handleChangeFor("exemptedFromTax")(exempted);
176
+ if (canSaveAbsentState) addTaxAbsentStatus(exempted);
177
+ else removeCountryTaxInfo();
178
+ }, [
179
+ addTaxAbsentStatus,
180
+ canSaveAbsentState,
181
+ handleChangeFor,
182
+ removeCountryTaxInfo
183
+ ]);
184
+ const prevCountryRef = useRef(country);
185
+ useEffect(() => {
186
+ if (!country || prevCountryRef.current === country) return;
187
+ prevCountryRef.current = country;
188
+ const hasSavedTaxId = defaultData?.find((taxId) => taxId.country === country);
189
+ if (currentCountryTaxInformation && !hasSavedTaxId) return;
190
+ if (entityType === "soleProprietorship") return;
191
+ resetToDefaultData();
192
+ }, [country]);
193
+ useEffect(() => {
194
+ if (country === "SG" && data.isUen && registrationNumber && registrationNumber !== currentCountryTaxInformation?.number) setUenAsTaxId(registrationNumber);
195
+ }, [
196
+ registrationNumber,
197
+ currentCountryTaxInformation?.number,
198
+ data.isUen,
199
+ country,
200
+ setUenAsTaxId
201
+ ]);
202
+ useLayoutEffect(() => {
203
+ if (isSavedTaxIdStale) updateTaxType(savedTaxIdNumberType, "input");
204
+ }, [
205
+ isSavedTaxIdStale,
206
+ savedTaxIdNumberType,
207
+ updateTaxType
208
+ ]);
209
+ const isInitialized = useRef(false);
210
+ if (!isInitialized.current && country === "SG" && !defaultData?.find((taxInfo) => taxInfo.country === country)?.number) {
211
+ isInitialized.current = true;
212
+ handleChangeFor("isUen")(false);
213
+ }
214
+ return /* @__PURE__ */ jsxs("div", { children: [
215
+ /* @__PURE__ */ jsx(TaxIdNumberTypeSelector, {
216
+ country,
217
+ companyType: entityType,
218
+ setSelected: handleTaxIdNumberTypeChange,
219
+ selected: taxIdNumberType,
220
+ exemptedOptionLabel: showTaxIdExemptedOptions ? exemptionLabel : void 0,
221
+ isUsSoleProp,
222
+ errorMessage: selectorError
223
+ }),
224
+ shouldRenderInput && /* @__PURE__ */ jsx(MaskedInput, {
225
+ type: "text",
226
+ "aria-required": true,
227
+ "aria-invalid": !valid.taxInformation,
228
+ name: "taxInformation",
229
+ label: t(($) => $[label ?? "taxId"]),
230
+ formatGuidance: translateTranslatable(t, guidanceText),
231
+ value: savedTaxIdNumber ?? "",
232
+ errorMessage: inputError,
233
+ placeholder,
234
+ isValid: Boolean(valid.taxInformation) && !!currentCountryTaxInformation,
235
+ onInput: (e) => handleTaxNumberChange(e, "input"),
236
+ onBlur: (e) => handleTaxNumberChange(e, "blur"),
237
+ disabled: data.exemptedFromTax || data.isUen,
238
+ readonly,
239
+ optional,
240
+ shouldValidate,
241
+ ...mask
242
+ }),
243
+ canExempt && !showTaxIdExemptedOptions && /* @__PURE__ */ jsx(Field, {
244
+ name: "exemptedFromTax",
245
+ children: (childProps) => /* @__PURE__ */ jsx(Checkbox, {
246
+ ...childProps,
247
+ "aria-required": false,
248
+ "aria-invalid": false,
249
+ name: "exemptedFromTax",
250
+ label: exemptedFromTaxLabel,
251
+ value: "exemptedFromTax",
252
+ checked: Boolean(data.exemptedFromTax),
253
+ onChange: handleExemptedFromTaxChange
254
+ })
255
+ })
256
+ ] });
257
+ }
258
+ //#endregion
259
+ export { TaxInformationField as n, findExistingTaxInformation as r, TAX_INFORMATION_FIELD as t };
@@ -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] = "d6756e7c-349b-4056-a764-ed6fb9e92b7f", e._sentryDebugIdIdentifier = "sentry-dbid-d6756e7c-349b-4056-a764-ed6fb9e92b7f");
3
+ n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "dd39333d-3063-481c-89b4-6b249bf92d70", e._sentryDebugIdIdentifier = "sentry-dbid-dd39333d-3063-481c-89b4-6b249bf92d70");
4
4
  } catch (e) {}
5
5
  import { r as useTranslation } from "./translation-CpH8D2NK.js";
6
- import { i as useToggleContext, t as Checkbox } from "./Checkbox-CyMoenl6.js";
7
- import { a as resolveFieldMetadata } from "./unincorporatedPartnership-E0Wffo2-.js";
8
- import { a as translateTranslatable, o as Field } from "./Select-DTqe0uNK.js";
9
- import { r as MaskedInput } from "./dropinUtils-DBnjaFWb.js";
10
- import { _ as taxInformationDefaultFieldMetadata, d as TaxIdNumberTypeSelector, g as taxInformationDefaultFieldConfig, k as COUNTRIES_WITH_POSSIBLE_TRUSTEE_TAXID_ABSENT_V4, z as getTaxIdNumberOptions } from "./bafinUtils-CFvCTqAt.js";
11
- import { t as formatValidationError } from "./formatValidationError-DIPpFoJQ.js";
6
+ import { i as useToggleContext, t as Checkbox } from "./Checkbox-BEkC71r4.js";
7
+ import { a as resolveFieldMetadata } from "./unincorporatedPartnership-DPK34PF1.js";
8
+ import { a as translateTranslatable, o as Field } from "./Select-Jjt3H6zs.js";
9
+ import { r as MaskedInput } from "./dropinUtils-BAx_kWeq.js";
10
+ import { _ as taxInformationDefaultFieldMetadata, f as TaxIdNumberTypeSelector, g as taxInformationDefaultFieldConfig, k as COUNTRIES_WITH_POSSIBLE_TRUSTEE_TAXID_ABSENT_V4, z as getTaxIdNumberOptions } from "./bafinUtils-Cs44-4gm.js";
11
+ import { t as formatValidationError } from "./formatValidationError-CRIcczdD.js";
12
12
  import { n as withForm } from "./formHook-Dgi2CgbT.js";
13
13
  import { t as toTanStackValidators } from "./tanstackValidation-BgAM9eKo.js";
14
14
  import { useCallback, useEffect, useRef } from "preact/hooks";
@@ -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] = "b9b1dfdd-6acd-436a-a8ac-3b80f7ef8d9a", e._sentryDebugIdIdentifier = "sentry-dbid-b9b1dfdd-6acd-436a-a8ac-3b80f7ef8d9a");
3
+ n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "c9b63fbc-2ca4-418c-af08-318b3f220899", e._sentryDebugIdIdentifier = "sentry-dbid-c9b63fbc-2ca4-418c-af08-318b3f220899");
4
4
  } catch (e) {}
5
5
  import { n as addResourceBundles, r as useTranslation, t as Trans } from "./translation-CpH8D2NK.js";
6
- import { N as Header, P as _rolldown_dynamic_import_helper_default, T as Alert, ct as isEmpty } from "./registerEmbed-DQqTWYX2.js";
6
+ import { N as Header, P as _rolldown_dynamic_import_helper_default, T as Alert, ct as isEmpty } from "./registerEmbed-Xubdbk-a.js";
7
7
  import { t as createLogger } from "./logger-Z8AeTE4x.js";
8
8
  import { t as Icon } from "./Icon-D2IGgB2L.js";
9
9
  import { t as Typography } from "./Typography-CAc_f5Iq.js";
@@ -13,16 +13,16 @@ import { n as httpGet, s as useApiContext } from "./http-C8rt2BZk.js";
13
13
  import { r as useLegalEntity, t as ROOT_LE } from "./useLegalEntity-CxeMoCm4.js";
14
14
  import { n as TASK_STATUS_POLLING_INTERVAL_MS } from "./taskStatus-BtekPA8E.js";
15
15
  import { t as TaskTypes } from "./taskTypes-3vSkMBDm.js";
16
- import { a as useAnalyticsContext } from "./useId-BV444pyC.js";
17
- import { t as RadioGroup } from "./RadioGroup-CEi7ZDGi.js";
16
+ import { a as useAnalyticsContext } from "./useId-usoEnbTl.js";
17
+ import { t as RadioGroup } from "./RadioGroup-Csw26Mhr.js";
18
18
  import { t as Card } from "./Card-BCGLpdw7.js";
19
- import { t as useInvalidateRootLegalEntity } from "./invalidateRootLegalEntity-DrJp13W1.js";
20
- import { l as LandingLayout, n as Image } from "./unincorporatedPartnership-E0Wffo2-.js";
21
- import { o as Field } from "./Select-DTqe0uNK.js";
22
- import { o as StructuredList } from "./utils-B_dD2dvD.js";
23
- import { h as useUpdateLegalEntity, m as isEmpty$1 } from "./StateField-DgYpF1_M.js";
24
- import { H as FormContextProvider, I as useMultiForm, n as getRequiredForms, t as addValidityToForms, v as useFormContext, y as FormFlow, z as useFormComposer } from "./dropinUtils-DBnjaFWb.js";
25
- import { t as useTaskLandedEvent } from "./useTaskLandedEvent-CuOu8Sqr.js";
19
+ import { t as useInvalidateRootLegalEntity } from "./invalidateRootLegalEntity-BWLd6SvV.js";
20
+ import { l as LandingLayout, n as Image } from "./unincorporatedPartnership-DPK34PF1.js";
21
+ import { o as Field } from "./Select-Jjt3H6zs.js";
22
+ import { o as StructuredList } from "./utils-6Lfk9m3d.js";
23
+ import { h as useUpdateLegalEntity, m as isEmpty$1 } from "./StateField-_JphU2zZ.js";
24
+ import { H as FormContextProvider, I as useMultiForm, n as getRequiredForms, t as addValidityToForms, v as useFormContext, y as FormFlow, z as useFormComposer } from "./dropinUtils-BAx_kWeq.js";
25
+ import { t as useTaskLandedEvent } from "./useTaskLandedEvent-CmLLhK6a.js";
26
26
  import { r as getFormProps } from "./getProps-DVqK7eRw.js";
27
27
  import { t as Link } from "./Link-BtWj5mVH.js";
28
28
  import { t as useTaskStatus } from "./useTaskStatus-4nAPf_uD.js";
@@ -5,7 +5,7 @@ try {
5
5
  import { t as EndStateLayout } from "./EndStateLayout-CBzxX67s.js";
6
6
  import { t as useTaskStepperContext } from "./useTaskStepperContext-DCNMsKUc.js";
7
7
  import { t as useHideTaskStepper } from "./useHideTaskStepper-DvHXw3zd.js";
8
- import { TaxReportingDropin } from "./TaxReportingDropin-CR1Cpz3u.js";
8
+ import { TaxReportingDropin } from "./TaxReportingDropin-Ci8EwFZR.js";
9
9
  import { jsx } from "preact/jsx-runtime";
10
10
  //#region src/adaptiveWorkflow/components/Layout/Steps/TaxReportingWorkflow.tsx
11
11
  var TaxReportingWorkflow = ({ node }) => {
@@ -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] = "e830ebd3-5efe-4c2c-aa83-a3218e46165b", e._sentryDebugIdIdentifier = "sentry-dbid-e830ebd3-5efe-4c2c-aa83-a3218e46165b");
3
+ n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "e6d6a923-f3a5-43d9-b7ec-abe3e587de06", e._sentryDebugIdIdentifier = "sentry-dbid-e6d6a923-f3a5-43d9-b7ec-abe3e587de06");
4
4
  } catch (e) {}
5
5
  import { n as addResourceBundles, o as __exportAll, r as useTranslation } from "./translation-CpH8D2NK.js";
6
- import { P as _rolldown_dynamic_import_helper_default, T as Alert, s as doesLegalEntityRequiresLegalRepresentative } from "./registerEmbed-DQqTWYX2.js";
6
+ import { P as _rolldown_dynamic_import_helper_default, T as Alert, s as doesLegalEntityRequiresLegalRepresentative } from "./registerEmbed-Xubdbk-a.js";
7
7
  import { t as createLogger } from "./logger-Z8AeTE4x.js";
8
8
  import { t as Loader } from "./Loader-BDaKGf77.js";
9
9
  import { t as Button } from "./Button-EhGM-oCO.js";
@@ -14,18 +14,18 @@ import { t as StackLayout } from "./StackLayout-J1ynSX-P.js";
14
14
  import { t as TaskTypes } from "./taskTypes-3vSkMBDm.js";
15
15
  import { a as getLegalRepresentative } from "./entityAssociationUtil-BlfcBl3i.js";
16
16
  import { a as getOwnSignatories } from "./decisionMakerRoles-DA8MK9Dh.js";
17
- import { i as useToggleContext, t as Checkbox } from "./Checkbox-CyMoenl6.js";
18
- import { a as useAnalyticsContext } from "./useId-BV444pyC.js";
17
+ import { i as useToggleContext, t as Checkbox } from "./Checkbox-BEkC71r4.js";
18
+ import { a as useAnalyticsContext } from "./useId-usoEnbTl.js";
19
19
  import { n as useTermsOfServiceAcceptanceInfos, t as useTermsOfServiceStatus } from "./useTermsOfServiceStatus-FDpSDjco.js";
20
20
  import { t as Card } from "./Card-BCGLpdw7.js";
21
- import { n as useToastContext, t as useInvalidateRootLegalEntity } from "./invalidateRootLegalEntity-DrJp13W1.js";
21
+ import { n as useToastContext, t as useInvalidateRootLegalEntity } from "./invalidateRootLegalEntity-BWLd6SvV.js";
22
22
  import { t as EndStateLayout } from "./EndStateLayout-CBzxX67s.js";
23
23
  import { t as downloadFile } from "./file-1IenVoh8.js";
24
- import { c as MaybeModal, o as Field, p as LoaderWrapper, r as getLanguageCode, s as ProgressBar, t as Select } from "./Select-DTqe0uNK.js";
24
+ import { c as MaybeModal, o as Field, p as LoaderWrapper, r as getLanguageCode, s as ProgressBar, t as Select } from "./Select-Jjt3H6zs.js";
25
25
  import { n as getLegalEntityNameBasedOnType } from "./getName-Cii7OyRd.js";
26
- import { t as useTaskLandedEvent } from "./useTaskLandedEvent-CuOu8Sqr.js";
27
- import { t as useForm } from "./useForm-CwWvs060.js";
28
- import { t as formatValidationError } from "./formatValidationError-DIPpFoJQ.js";
26
+ import { t as useTaskLandedEvent } from "./useTaskLandedEvent-CmLLhK6a.js";
27
+ import { t as useForm } from "./useForm-tZJzKTj7.js";
28
+ import { t as formatValidationError } from "./formatValidationError-CRIcczdD.js";
29
29
  import { t as localizeDateString } from "./localizeDateString-Dxlqr4rL.js";
30
30
  import { t as ContractViewer } from "./ContractViewer-CG9UNGz1.js";
31
31
  import { useCallback, useEffect, useMemo, useState } from "preact/hooks";
@@ -4,9 +4,9 @@ try {
4
4
  } catch (e) {}
5
5
  import { r as useTranslation } from "./translation-CpH8D2NK.js";
6
6
  import { t as createLogger } from "./logger-Z8AeTE4x.js";
7
- import { n as debouncedInputEvent } from "./Checkbox-CyMoenl6.js";
8
- import { a as useAnalyticsContext } from "./useId-BV444pyC.js";
9
- import { i as convertFullToHalf } from "./unincorporatedPartnership-E0Wffo2-.js";
7
+ import { n as debouncedInputEvent } from "./Checkbox-BEkC71r4.js";
8
+ import { a as useAnalyticsContext } from "./useId-usoEnbTl.js";
9
+ import { i as convertFullToHalf } from "./unincorporatedPartnership-DPK34PF1.js";
10
10
  import { useState } from "preact/hooks";
11
11
  import cx from "classnames";
12
12
  import { Fragment, jsx, jsxs } from "preact/jsx-runtime";
@@ -3,11 +3,11 @@ try {
3
3
  n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "1d9a707a-ba77-482c-8790-be22ef752470", e._sentryDebugIdIdentifier = "sentry-dbid-1d9a707a-ba77-482c-8790-be22ef752470");
4
4
  } catch (e) {}
5
5
  import { r as useTranslation } from "./translation-CpH8D2NK.js";
6
- import { U as EMOJI_REGEX, Y as OTHER_ENTITIES_VALID_CHAR_REGEX, at as hasRepeatedCharacters, ft as isValidMinLength, ot as hasText, pt as matchesRegex, q as NO_ALPHABET_REGEX, ut as isInvalidName } from "./registerEmbed-DQqTWYX2.js";
7
- import { a as InputBase } from "./RadioGroup-CEi7ZDGi.js";
8
- import { o as Field } from "./Select-DTqe0uNK.js";
6
+ import { U as EMOJI_REGEX, Y as OTHER_ENTITIES_VALID_CHAR_REGEX, at as hasRepeatedCharacters, ft as isValidMinLength, ot as hasText, pt as matchesRegex, q as NO_ALPHABET_REGEX, ut as isInvalidName } from "./registerEmbed-Xubdbk-a.js";
7
+ import { a as InputBase } from "./RadioGroup-Csw26Mhr.js";
8
+ import { o as Field } from "./Select-Jjt3H6zs.js";
9
9
  import { n as withForm } from "./formHook-Dgi2CgbT.js";
10
- import { t as getValidationError } from "./getValidationError-C00cY5Gg.js";
10
+ import { t as getValidationError } from "./getValidationError-t17tjdt8.js";
11
11
  import { jsx } from "preact/jsx-runtime";
12
12
  //#region src/adaptiveWorkflow/components/Shared/Fields/TextField/validators.ts
13
13
  var containsText = (val) => {