@adyen/kyc-components 4.28.0-beta.0 → 4.28.0-beta.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (167) hide show
  1. package/dist/{AcceptTermsOfServiceWorkflow-BHLj18cI.js → AcceptTermsOfServiceWorkflow-Be-e8pF_.js} +1 -1
  2. package/dist/{AccountSetupRejected-DrzCd1ET.js → AccountSetupRejected-BGfF7hle.js} +1 -1
  3. package/dist/{AdaptiveWorkflow-DmZF4G5t.js → AdaptiveWorkflow-aM_fyYfd.js} +20 -20
  4. package/dist/{AdaptiveWorkflowComponent-Bv5fIffv.js → AdaptiveWorkflowComponent-DvhXVdFs.js} +2 -2
  5. package/dist/{AddressFields-CF-UaSiA.js → Address-BrGQ-519.js} +15 -15
  6. package/dist/{BusinessFinancingDropin-DxUscJnz.js → BusinessFinancingDropin-Bgg_7bb2.js} +22 -22
  7. package/dist/{BusinessFinancingPage-aNSrpxqt.js → BusinessFinancingPage-BlABPwhd.js} +2 -2
  8. package/dist/{BusinessRegistrationNumberField-ByWbtuPm.js → BusinessRegistrationNumberField-VltO-NYx.js} +5 -5
  9. package/dist/{BusinessRegistrationNumberFieldGroup-BsaKq6cn.js → BusinessRegistrationNumberFieldGroup-Dv6BDmMB.js} +5 -5
  10. package/dist/{BusinessTypeSelectionPage-C8BtZX8K.js → BusinessTypeSelectionPage-C228n5L8.js} +11 -11
  11. package/dist/{Checkbox-Ec4wyyJQ.js → Checkbox-qmfi_XIo.js} +2 -2
  12. package/dist/{ComponentGroup-DnbvXojQ.js → ComponentGroup-CYKRwp_O.js} +1 -1
  13. package/dist/{ConstitutionalDocument-B4rf4Lt3.js → ConstitutionalDocument-amr_KQ4y.js} +131 -125
  14. package/dist/{ContactDetails-CZgDXYqx.js → ContactDetails-BOsIRVqJ.js} +5 -5
  15. package/dist/{ContextGuidance-C8FlwEPA.js → ContextGuidance-BXm2eIOy.js} +2 -2
  16. package/dist/{CountryField-8KwVjSwx.js → CountryField-CrMa4ivD.js} +3 -3
  17. package/dist/{Currency-DyE49bKs.js → Currency-l31xe6JM.js} +6 -6
  18. package/dist/{CustomerSupport-CvTI3Snc.js → CustomerSupport-D2jBxiF7.js} +12 -12
  19. package/dist/{DateField-l6H-nmfS.js → DateField-BgmwaY3C.js} +4 -4
  20. package/dist/{DebugModal-xkdniRzn.js → DebugModal-BlIi2HLj.js} +6 -6
  21. package/dist/{DecisionMakerDetails-CykBZZ9U.js → DecisionMakerDetails-jLcZ7TL2.js} +9 -9
  22. package/dist/{DecisionMakerDetailsPage-BnjOq-R1.js → DecisionMakerDetailsPage-BFJYqKEE.js} +5 -5
  23. package/dist/{DecisionMakers-B-4h5Vw_.js → DecisionMakers-CxKzZBAH.js} +11 -11
  24. package/dist/{Dropzone-D7Z9PsqG.js → Dropzone-bgeKnb5I.js} +5 -5
  25. package/dist/{EmailField-B-g3-z2A.js → EmailField-Bu-zlqHj.js} +4 -4
  26. package/dist/{EntityAssociation-CPRU3Nzl.js → EntityAssociation-CiZRBefO.js} +3 -3
  27. package/dist/{ErrorPanel-DUI1R5Sq.js → ErrorPanel-CBmxfydA.js} +2 -2
  28. package/dist/{GlobalEntryModal-Fszy2PMv.js → GlobalEntryModal-BdBW0KQQ.js} +17 -16
  29. package/dist/{GlobalEntryPage-GMRCmYj1.js → GlobalEntryPage-rC5GlvG_.js} +4 -4
  30. package/dist/{IdentityNumber-M8NzdW3O.js → IdentityNumber-CEJJ12gt.js} +4 -4
  31. package/dist/{IdentityNumberFieldGroup-nOlB5kOW.js → IdentityNumberFieldGroup-CZfyC-Uk.js} +3 -3
  32. package/dist/{IdentityScreeningWorkflow-kYczDRbc.js → IdentityScreeningWorkflow-BCSAk8rF.js} +8 -8
  33. package/dist/{IndividualDropin-C9bKZu8q.js → IndividualDropin-sjM2hszP.js} +99 -138
  34. package/dist/{IndustryCodeFieldGroup-ULwwyMfV.js → IndustryCodeFieldGroup-DYalt7iN.js} +4 -4
  35. package/dist/{InputDate-fc3bdvdZ.js → InputDate-C1Q3XDFU.js} +4 -4
  36. package/dist/{Introduction-BymKbaBE.js → Introduction-DMxhsL3f.js} +5 -5
  37. package/dist/{InvitedDecisionMakerComponent-CLBrLaip.js → InvitedDecisionMakerComponent-DyfllTrf.js} +7 -7
  38. package/dist/{JpAddressFields-Dhe_cQhr.js → JpAddress-eN7gCiZX.js} +13 -13
  39. package/dist/{LegalCompanyNameField-Ch1VrlJs.js → LegalCompanyNameField-hsrxQFKc.js} +4 -4
  40. package/dist/{LegalRepresentativeDetailsPage-ZsBdOW-Y.js → LegalRepresentativeDetailsPage-DWWgUBxS.js} +3 -3
  41. package/dist/{Name-r1ugrnWU.js → Name-X_kAmtWn.js} +3 -3
  42. package/dist/{NumberField-DzM3ge0J.js → NumberField-DZon5iLa.js} +3 -3
  43. package/dist/{PatriotActDisclosure-O5TlzUXU.js → PatriotActDisclosure-DsSoSucu.js} +9 -9
  44. package/dist/{PayoutDetailsDropin-J0pS_4a9.js → PayoutDetailsDropin-ARFbf1mK.js} +22 -22
  45. package/dist/{PayoutDetailsPage-COLJyIQ-.js → PayoutDetailsPage-yToj25iO.js} +4 -4
  46. package/dist/{RadioGroup-SDQSOsEf.js → RadioGroup-Di2A9RNN.js} +2 -2
  47. package/dist/{Review-PhQYqPF4.js → Review-lUkK6MwE.js} +5 -5
  48. package/dist/{RootBusinessDetailsPage-BI7ryRjt.js → RootBusinessDetailsPage-ZxdONb8B.js} +2 -2
  49. package/dist/{RootBusinessLinesPage-mvoHQZD_.js → RootBusinessLinesPage-Baet_8as.js} +17 -17
  50. package/dist/{RootIndividualDetailsPage-Cpm0vnKV.js → RootIndividualDetailsPage-BtcFOmeC.js} +3 -3
  51. package/dist/{Select-DtO-GvLp.js → Select-Cbxz27iA.js} +3 -3
  52. package/dist/{SignPCIComponent-Dvmu4-hc.js → SignPCIComponent-B1itIk9F.js} +10 -10
  53. package/dist/{SingpassSelection-np9ZfMrZ.js → SingpassSelection-BBA3x8Ek.js} +4 -4
  54. package/dist/{SoleProprietorshipPage-CwKtif4U.js → SoleProprietorshipPage-D6yrh1Uz.js} +2 -2
  55. package/dist/{SourceOfFundsPage-waLLSQf2.js → SourceOfFundsPage-Bb67iz0x.js} +18 -18
  56. package/dist/{SourceOfFundsWorkflow-Cat3HvUT.js → SourceOfFundsWorkflow-BJ9h5nc9.js} +1 -1
  57. package/dist/{StateField-DxKg7Ea-.js → StateField-BxWm98Tj.js} +9 -9
  58. package/dist/{Step-ZD1CeO4b.js → Step-BRmpSabH.js} +3 -3
  59. package/dist/{Summary-BJnh9lZz.js → Summary-BcIbpAPH.js} +1 -1
  60. package/dist/{SummarySection-D91P7H2B.js → SummarySection-DnHHb-mJ.js} +2 -2
  61. package/dist/{Task-_WDQUdM0.js → Task-BG_dxQ2R.js} +4 -4
  62. package/dist/{TaskGroup-C20Kri7W.js → TaskGroup-DEPNWcDV.js} +2 -2
  63. package/dist/{TaskListItem-BRTxzrek.js → TaskListItem-DpKBxP1U.js} +5 -5
  64. package/dist/TaxInformationField-Bi3pbDh_.js +259 -0
  65. package/dist/{TaxInformationFieldGroup-BiNe6-D4.js → TaxInformationFieldGroup-CrXPGmyZ.js} +7 -7
  66. package/dist/{TaxReportingDropin-DuZpEzKn.js → TaxReportingDropin-CWBoGi-F.js} +11 -11
  67. package/dist/{TaxReportingWorkflow-CMhxj0jx.js → TaxReportingWorkflow-DTB8F3cy.js} +1 -1
  68. package/dist/{TermsOfServiceManagement-Cp6-BOaT.js → TermsOfServiceManagement-nu7MYGFM.js} +9 -9
  69. package/dist/{TextArea-DD-KMQbg.js → TextArea-CweAdV3F.js} +3 -3
  70. package/dist/{TextField-Bdu0Wm6_.js → TextField-1RHuuIFu.js} +4 -4
  71. package/dist/{TrustDetailsPage-IGLuJZUE.js → TrustDetailsPage-C2921KNk.js} +23 -22
  72. package/dist/{TrustMemberCompanyPage-CNIDzOte.js → TrustMemberCompanyPage-C42UF9Wh.js} +4 -4
  73. package/dist/{TrustMemberIndividualPage-Q_IDqWsr.js → TrustMemberIndividualPage-C924EwDD.js} +3 -3
  74. package/dist/{TrustMemberRoleAndTypePage-B2EtfK6g.js → TrustMemberRoleAndTypePage-Dm_RyCCU.js} +19 -19
  75. package/dist/{TrustMembersOverview-hDVqCUbB.js → TrustMembersOverview-D9LIDqH0.js} +10 -10
  76. package/dist/{UboTaskItem-Bt45kkQu.js → UboTaskItem-Bu4PYMxQ.js} +3 -3
  77. package/dist/{UnincorporatedPartnershipIndividualPage-hkrLvEZw.js → UnincorporatedPartnershipIndividualPage-BcrmCuUV.js} +3 -3
  78. package/dist/{UnincorporatedPartnershipMemberCompanyPage-B8e9E2t2.js → UnincorporatedPartnershipMemberCompanyPage-BkUvuiG8.js} +3 -3
  79. package/dist/{UnincorporatedPartnershipMemberRoleAndTypePage-Rey_F44n.js → UnincorporatedPartnershipMemberRoleAndTypePage-BLvqAXNn.js} +9 -9
  80. package/dist/{UnincorporatedPartnershipMembersOverview-DPO8TjP4.js → UnincorporatedPartnershipMembersOverview-kTIfytG_.js} +5 -5
  81. package/dist/{VerificationErrorAlert-Lim_NsJO.js → VerificationErrorAlert-DKPgv09S.js} +2 -2
  82. package/dist/{WebsiteField-BLgq-_me.js → WebsiteField-9tvLajQV.js} +4 -4
  83. package/dist/{Workflow-CnkirZOn.js → Workflow-DFNvXzVW.js} +3 -3
  84. package/dist/{accountHolderUtils-D6wEBsLQ.js → accountHolderUtils-Cga0JXlL.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-TT8a0y7q.js → bafinUtils-Dxa3eJnZ.js} +10 -257
  96. package/dist/{constants-DsYpJv_6.js → constants-BgGlk1x-.js} +3 -3
  97. package/dist/{dropinUtils-CZuO0w1x.js → dropinUtils-5RadTVG9.js} +5 -5
  98. package/dist/{error-DBn4_qws.js → error-D0RXQj2N.js} +2 -2
  99. package/dist/{fieldConfig-Dh_qmAto.js → fieldConfig-xaGvx64s.js} +1 -1
  100. package/dist/{formatDataForSummary-oC9odBCW.js → formatDataForSummary-sQzHQFug.js} +127 -15
  101. package/dist/{formatValidationError-BsRC83kl.js → formatValidationError-Dy9gejj2.js} +1 -1
  102. package/dist/{getDefaultRegistrationNumberType-t926T5FG.js → getDefaultRegistrationNumberType-HWiiKcO3.js} +5 -5
  103. package/dist/{getValidationError-CXILdPw6.js → getValidationError-a_976vi9.js} +1 -1
  104. package/dist/{invalidateRootLegalEntity-CnH38v8h.js → invalidateRootLegalEntity-DBGrep1S.js} +1 -1
  105. package/dist/mapAddressLocalizationToJpAddressSchema-CT6eGqwa.js +39 -0
  106. package/dist/{mapExistingFile-CqbTLZ6i.js → mapExistingFile-CLSPk17k.js} +1 -1
  107. package/dist/{mapTransferInstrumentToPayoutAccount-Bet2QLgn.js → mapTransferInstrumentToPayoutAccount-DMhDNc2L.js} +1 -1
  108. package/dist/{processValidationErrors-B-A5EFGo.js → processValidationErrors-gryOf4Fj.js} +2 -2
  109. package/dist/{registerEmbed-CZDAZwKX.js → registerEmbed-TZ9ArAAB.js} +7 -7
  110. package/dist/{roleMetadata-DR0IBuky.js → roleMetadata-pBX4Alj3.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/utils/buildRequiredForms.d.ts +1 -0
  116. package/dist/types/components/Business/utils/isEligibleForReducedBusinessDetailsFlow.d.ts +15 -0
  117. package/dist/types/components/EFP/tasks/BusinessFinancingDropin/types.d.ts +1 -1
  118. package/dist/types/components/Individual/forms/AdditionalPersonalDetails/AdditionalPersonalDetails.types.d.ts +1 -1
  119. package/dist/types/components/Individual/forms/IdVerificationMethod/individualConflictsSchema.d.ts +1 -1
  120. package/dist/types/components/Individual/forms/Individual.rules.d.ts +7 -1
  121. package/dist/types/components/Individual/mapping/mapIndividualSchemaToLegalEntity.d.ts +18 -0
  122. package/dist/types/components/Individual/tasks/IndividualDropin/IndividualSummary.d.ts +4 -1
  123. package/dist/types/components/Individual/utils/formatDataForSummary.d.ts +4 -1
  124. package/dist/types/components/Shared/{forms/Address/AddressFields.d.ts → fields/Address/Address.d.ts} +2 -2
  125. package/dist/types/components/Shared/fields/{RegistrationAndOperationalAddressFields → Address/RegistrationAndOperationalAddressFields}/RegistrationAndOperationalAddressFields.d.ts +7 -1
  126. package/dist/types/components/Shared/fields/{RegistrationAndOperationalAddressFields → Address/RegistrationAndOperationalAddressFields}/types.d.ts +5 -5
  127. package/dist/types/components/Shared/fields/{RegistrationAndOperationalAddressFields → Address/RegistrationAndOperationalAddressFields}/utils.d.ts +2 -2
  128. package/dist/types/components/Shared/{forms → fields}/Address/SearchAddress.d.ts +1 -1
  129. package/dist/types/components/Shared/fields/Address/localized/jp/JpAddress.d.ts +2 -0
  130. package/dist/types/components/Shared/{forms → fields}/Address/localized/jp/mapAddressLocalizationToJpAddressSchema.d.ts +1 -1
  131. package/dist/types/components/Shared/{forms → fields}/Address/localized/jp/mapJpAddressSchemaToAddressLocalizations.d.ts +1 -1
  132. package/dist/types/components/Shared/{forms → fields}/Address/localized/jp/mapJpAddressSummary.d.ts +1 -1
  133. package/dist/types/components/Shared/{forms → fields}/Address/rules.d.ts +1 -1
  134. package/dist/types/components/Shared/{forms → fields}/Address/types.d.ts +1 -1
  135. package/dist/types/components/Trust/forms/Trust/forms.d.ts +1 -1
  136. package/dist/types/components/Trust/forms/TrustRegistrationAddress/types.d.ts +1 -1
  137. package/dist/types/utils/addressToString.d.ts +1 -1
  138. package/dist/{unincorporatedPartnership-B5pKn0gl.js → unincorporatedPartnership-DsneX1hY.js} +1 -1
  139. package/dist/{useBusinessDetailsData-CPzTltvn.js → useBusinessDetailsData-Bc_E4Xil.js} +78 -41
  140. package/dist/{useCanSeeIntroduction-Cnuh14Cr.js → useCanSeeIntroduction-RI4wFjW9.js} +2 -2
  141. package/dist/{useForm-B2fQ78Se.js → useForm-C3lG_s-c.js} +2 -2
  142. package/dist/{useId-AzWxLa17.js → useId-Cot-htyS.js} +1 -1
  143. package/dist/{useNavigate-Bx6F2ghI.js → useNavigate-BAkzuA3A.js} +32 -32
  144. package/dist/{useSalesChannels-Db_8bYBY.js → useSalesChannels-vbuU4JFd.js} +1 -1
  145. package/dist/{useSaveForLater-BQio20Zg.js → useSaveForLater-CT5C_u8v.js} +3 -3
  146. package/dist/{useTaskLandedEvent-DdeWh_nV.js → useTaskLandedEvent-J-MdMD4n.js} +1 -1
  147. package/dist/{useTrustMembers-CqeR9IVN.js → useTrustMembers-SGPMEcnS.js} +2 -2
  148. package/dist/{useUnincorporatedPartnershipMembers-WOJzF2NV.js → useUnincorporatedPartnershipMembers-CdbgUMUI.js} +2 -2
  149. package/dist/{utils-BfA0Rrku.js → utils-DPqmuHDt.js} +1 -1
  150. package/dist/{utils-8yLC-qJv.js → utils-SRtPrNOg.js} +1 -1
  151. package/dist/{utils-AnusXLKP.js → utils-szr8jBGQ.js} +3 -3
  152. package/dist/{validate-Bcw1m17m.js → validate-BiZvmxlT.js} +2 -2
  153. package/dist/{validate-DSR31SH8.js → validate-CmvKoxYM.js} +15 -10
  154. package/dist/{validate-CxL6_omc.js → validate-Dc6tnt1l.js} +2 -2
  155. package/dist/{validate-Bf1SBTiG.js → validate-DxoJtDwQ.js} +3 -3
  156. package/dist/{validateExtractionResult-BD0Vu-XF.js → validateExtractionResult-D8JAU47X.js} +1 -1
  157. package/package.json +1 -1
  158. package/dist/mapAddressLocalizationToJpAddressSchema-D8qKuElS.js +0 -26
  159. package/dist/mapJpAddressSchemaToAddressLocalizations-myaH4YTR.js +0 -19
  160. package/dist/types/components/Shared/forms/Address/localized/jp/JpAddressFields.d.ts +0 -2
  161. /package/dist/types/components/Shared/{forms → fields}/Address/AddressField.d.ts +0 -0
  162. /package/dist/types/components/Shared/{forms → fields}/Address/SearchAddressItem.d.ts +0 -0
  163. /package/dist/types/components/Shared/{forms → fields}/Address/constants.d.ts +0 -0
  164. /package/dist/types/components/Shared/{forms → fields}/Address/localized/jp/ReadonlyTextField.d.ts +0 -0
  165. /package/dist/types/components/Shared/{forms → fields}/Address/utils.d.ts +0 -0
  166. /package/dist/types/components/Shared/{forms → fields}/Address/validate.d.ts +0 -0
  167. /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-CZDAZwKX.js";
6
+ import { N as Header, P as _rolldown_dynamic_import_helper_default, T as Alert } from "./registerEmbed-TZ9ArAAB.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-Ec4wyyJQ.js";
20
- import { a as useAnalyticsContext, n as Modal } from "./useId-AzWxLa17.js";
21
- import { r as InputText, t as RadioGroup } from "./RadioGroup-SDQSOsEf.js";
19
+ import { t as Checkbox } from "./Checkbox-qmfi_XIo.js";
20
+ import { a as useAnalyticsContext, n as Modal } from "./useId-Cot-htyS.js";
21
+ import { r as InputText, t as RadioGroup } from "./RadioGroup-Di2A9RNN.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-CnH38v8h.js";
25
- import { l as LandingLayout, n as Image } from "./unincorporatedPartnership-B5pKn0gl.js";
24
+ import { n as useToastContext, t as useInvalidateRootLegalEntity } from "./invalidateRootLegalEntity-DBGrep1S.js";
25
+ import { l as LandingLayout, n as Image } from "./unincorporatedPartnership-DsneX1hY.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-DtO-GvLp.js";
29
- import { o as StructuredList, r as formatObject, s as Confirm } from "./utils-BfA0Rrku.js";
30
- import { h as useUpdateLegalEntity, m as isEmpty } from "./StateField-DxKg7Ea-.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-CZuO0w1x.js";
32
- import { H as TileGroup } from "./bafinUtils-TT8a0y7q.js";
28
+ import { o as Field, t as Select } from "./Select-Cbxz27iA.js";
29
+ import { o as StructuredList, r as formatObject, s as Confirm } from "./utils-DPqmuHDt.js";
30
+ import { h as useUpdateLegalEntity, m as isEmpty } from "./StateField-BxWm98Tj.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-5RadTVG9.js";
32
+ import { U as TileGroup } from "./bafinUtils-Dxa3eJnZ.js";
33
33
  import { t as useCreateLegalEntity } from "./useCreateLegalEntity-CgzVD39K.js";
34
- import { t as useTaskLandedEvent } from "./useTaskLandedEvent-DdeWh_nV.js";
34
+ import { t as useTaskLandedEvent } from "./useTaskLandedEvent-J-MdMD4n.js";
35
35
  import { n as documentApiUtils, t as createDocumentRequest } from "./documentUtils-6K3LdjjN.js";
36
- import { t as InputDate } from "./InputDate-fc3bdvdZ.js";
37
- import { t as ErrorPanel } from "./ErrorPanel-DUI1R5Sq.js";
38
- import { t as TextArea } from "./TextArea-DD-KMQbg.js";
39
- import { t as Dropzone } from "./Dropzone-D7Z9PsqG.js";
36
+ import { t as InputDate } from "./InputDate-C1Q3XDFU.js";
37
+ import { t as ErrorPanel } from "./ErrorPanel-CBmxfydA.js";
38
+ import { t as TextArea } from "./TextArea-CweAdV3F.js";
39
+ import { t as Dropzone } from "./Dropzone-bgeKnb5I.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-CxL6_omc.js";
43
+ import { n as validateDateNotInTheFuture } from "./validate-Dc6tnt1l.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-waLLSQf2.js";
8
+ import { SourceOfFundsPage } from "./SourceOfFundsPage-Bb67iz0x.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-CZDAZwKX.js";
6
+ import { D as useDataset, O as datasetIdentifier } from "./registerEmbed-TZ9ArAAB.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-CnH38v8h.js";
11
- import { o as Field, t as Select } from "./Select-DtO-GvLp.js";
12
- import { E as validateNotEmptyOnBlur } from "./dropinUtils-CZuO0w1x.js";
10
+ import { t as useInvalidateRootLegalEntity } from "./invalidateRootLegalEntity-DBGrep1S.js";
11
+ import { o as Field, t as Select } from "./Select-Cbxz27iA.js";
12
+ import { E as validateNotEmptyOnBlur } from "./dropinUtils-5RadTVG9.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-CZDAZwKX.js";
6
+ import { N as Header } from "./registerEmbed-TZ9ArAAB.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-DxKg7Ea-.js";
11
- import { n as useWorkflowContext, t as NodeRenderer } from "./AdaptiveWorkflow-DmZF4G5t.js";
10
+ import { h as useUpdateLegalEntity } from "./StateField-BxWm98Tj.js";
11
+ import { n as useWorkflowContext, t as NodeRenderer } from "./AdaptiveWorkflow-aM_fyYfd.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-CZDAZwKX.js";
6
+ import { N as Header } from "./registerEmbed-TZ9ArAAB.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-AzWxLa17.js";
9
- import { B as trackNavigation, o as List } from "./dropinUtils-CZuO0w1x.js";
8
+ import { a as useAnalyticsContext } from "./useId-Cot-htyS.js";
9
+ import { B as trackNavigation, o as List } from "./dropinUtils-5RadTVG9.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-AzWxLa17.js";
9
- import { t as TaskListItem } from "./TaskListItem-BRTxzrek.js";
10
- import { b as FormFlow_module_default } from "./dropinUtils-CZuO0w1x.js";
11
- import { n as useWorkflowContext, t as NodeRenderer } from "./AdaptiveWorkflow-DmZF4G5t.js";
8
+ import { n as Modal } from "./useId-Cot-htyS.js";
9
+ import { t as TaskListItem } from "./TaskListItem-DpKBxP1U.js";
10
+ import { b as FormFlow_module_default } from "./dropinUtils-5RadTVG9.js";
11
+ import { n as useWorkflowContext, t as NodeRenderer } from "./AdaptiveWorkflow-aM_fyYfd.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-CZDAZwKX.js";
6
+ import { N as Header } from "./registerEmbed-TZ9ArAAB.js";
7
7
  import { t as StackLayout } from "./StackLayout-J1ynSX-P.js";
8
- import { t as NodeRenderer } from "./AdaptiveWorkflow-DmZF4G5t.js";
8
+ import { t as NodeRenderer } from "./AdaptiveWorkflow-aM_fyYfd.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-CZDAZwKX.js";
6
+ import { T as Alert } from "./registerEmbed-TZ9ArAAB.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-AzWxLa17.js";
11
+ import { a as useAnalyticsContext } from "./useId-Cot-htyS.js";
12
12
  import { t as Card } from "./Card-BCGLpdw7.js";
13
- import { t as VerificationErrorAlert } from "./VerificationErrorAlert-Lim_NsJO.js";
13
+ import { t as VerificationErrorAlert } from "./VerificationErrorAlert-DKPgv09S.js";
14
14
  import { t as Avatar } from "./Avatar-BBJO6JWY.js";
15
- import { p as LoaderWrapper } from "./Select-DtO-GvLp.js";
16
- import { s as Confirm } from "./utils-BfA0Rrku.js";
15
+ import { p as LoaderWrapper } from "./Select-Cbxz27iA.js";
16
+ import { s as Confirm } from "./utils-DPqmuHDt.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-TZ9ArAAB.js";
7
+ import { i as useToggleContext, t as Checkbox } from "./Checkbox-qmfi_XIo.js";
8
+ import { a as resolveFieldMetadata } from "./unincorporatedPartnership-DsneX1hY.js";
9
+ import { a as translateTranslatable, o as Field } from "./Select-Cbxz27iA.js";
10
+ import { r as MaskedInput } from "./dropinUtils-5RadTVG9.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-Dxa3eJnZ.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-Ec4wyyJQ.js";
7
- import { a as resolveFieldMetadata } from "./unincorporatedPartnership-B5pKn0gl.js";
8
- import { a as translateTranslatable, o as Field } from "./Select-DtO-GvLp.js";
9
- import { r as MaskedInput } from "./dropinUtils-CZuO0w1x.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-TT8a0y7q.js";
11
- import { t as formatValidationError } from "./formatValidationError-BsRC83kl.js";
6
+ import { i as useToggleContext, t as Checkbox } from "./Checkbox-qmfi_XIo.js";
7
+ import { a as resolveFieldMetadata } from "./unincorporatedPartnership-DsneX1hY.js";
8
+ import { a as translateTranslatable, o as Field } from "./Select-Cbxz27iA.js";
9
+ import { r as MaskedInput } from "./dropinUtils-5RadTVG9.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-Dxa3eJnZ.js";
11
+ import { t as formatValidationError } from "./formatValidationError-Dy9gejj2.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-CZDAZwKX.js";
6
+ import { N as Header, P as _rolldown_dynamic_import_helper_default, T as Alert, ct as isEmpty } from "./registerEmbed-TZ9ArAAB.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-AzWxLa17.js";
17
- import { t as RadioGroup } from "./RadioGroup-SDQSOsEf.js";
16
+ import { a as useAnalyticsContext } from "./useId-Cot-htyS.js";
17
+ import { t as RadioGroup } from "./RadioGroup-Di2A9RNN.js";
18
18
  import { t as Card } from "./Card-BCGLpdw7.js";
19
- import { t as useInvalidateRootLegalEntity } from "./invalidateRootLegalEntity-CnH38v8h.js";
20
- import { l as LandingLayout, n as Image } from "./unincorporatedPartnership-B5pKn0gl.js";
21
- import { o as Field } from "./Select-DtO-GvLp.js";
22
- import { o as StructuredList } from "./utils-BfA0Rrku.js";
23
- import { h as useUpdateLegalEntity, m as isEmpty$1 } from "./StateField-DxKg7Ea-.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-CZuO0w1x.js";
25
- import { t as useTaskLandedEvent } from "./useTaskLandedEvent-DdeWh_nV.js";
19
+ import { t as useInvalidateRootLegalEntity } from "./invalidateRootLegalEntity-DBGrep1S.js";
20
+ import { l as LandingLayout, n as Image } from "./unincorporatedPartnership-DsneX1hY.js";
21
+ import { o as Field } from "./Select-Cbxz27iA.js";
22
+ import { o as StructuredList } from "./utils-DPqmuHDt.js";
23
+ import { h as useUpdateLegalEntity, m as isEmpty$1 } from "./StateField-BxWm98Tj.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-5RadTVG9.js";
25
+ import { t as useTaskLandedEvent } from "./useTaskLandedEvent-J-MdMD4n.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-DuZpEzKn.js";
8
+ import { TaxReportingDropin } from "./TaxReportingDropin-CWBoGi-F.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-CZDAZwKX.js";
6
+ import { P as _rolldown_dynamic_import_helper_default, T as Alert, s as doesLegalEntityRequiresLegalRepresentative } from "./registerEmbed-TZ9ArAAB.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-Ec4wyyJQ.js";
18
- import { a as useAnalyticsContext } from "./useId-AzWxLa17.js";
17
+ import { i as useToggleContext, t as Checkbox } from "./Checkbox-qmfi_XIo.js";
18
+ import { a as useAnalyticsContext } from "./useId-Cot-htyS.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-CnH38v8h.js";
21
+ import { n as useToastContext, t as useInvalidateRootLegalEntity } from "./invalidateRootLegalEntity-DBGrep1S.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-DtO-GvLp.js";
24
+ import { c as MaybeModal, o as Field, p as LoaderWrapper, r as getLanguageCode, s as ProgressBar, t as Select } from "./Select-Cbxz27iA.js";
25
25
  import { n as getLegalEntityNameBasedOnType } from "./getName-Cii7OyRd.js";
26
- import { t as useTaskLandedEvent } from "./useTaskLandedEvent-DdeWh_nV.js";
27
- import { t as useForm } from "./useForm-B2fQ78Se.js";
28
- import { t as formatValidationError } from "./formatValidationError-BsRC83kl.js";
26
+ import { t as useTaskLandedEvent } from "./useTaskLandedEvent-J-MdMD4n.js";
27
+ import { t as useForm } from "./useForm-C3lG_s-c.js";
28
+ import { t as formatValidationError } from "./formatValidationError-Dy9gejj2.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-Ec4wyyJQ.js";
8
- import { a as useAnalyticsContext } from "./useId-AzWxLa17.js";
9
- import { i as convertFullToHalf } from "./unincorporatedPartnership-B5pKn0gl.js";
7
+ import { n as debouncedInputEvent } from "./Checkbox-qmfi_XIo.js";
8
+ import { a as useAnalyticsContext } from "./useId-Cot-htyS.js";
9
+ import { i as convertFullToHalf } from "./unincorporatedPartnership-DsneX1hY.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-CZDAZwKX.js";
7
- import { a as InputBase } from "./RadioGroup-SDQSOsEf.js";
8
- import { o as Field } from "./Select-DtO-GvLp.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-TZ9ArAAB.js";
7
+ import { a as InputBase } from "./RadioGroup-Di2A9RNN.js";
8
+ import { o as Field } from "./Select-Cbxz27iA.js";
9
9
  import { n as withForm } from "./formHook-Dgi2CgbT.js";
10
- import { t as getValidationError } from "./getValidationError-CXILdPw6.js";
10
+ import { t as getValidationError } from "./getValidationError-a_976vi9.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) => {