@adyen/kyc-components 3.72.0 → 3.73.0-beta.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (104) hide show
  1. package/dist/{AcceptTermsOfServiceComponent-Bt8sRAoc.js → AcceptTermsOfServiceComponent-Ib77t0y9.js} +11 -198
  2. package/dist/{AccountSetupRejected-BwL6Q3-7.js → AccountSetupRejected-Dcrt_Wjb.js} +3 -3
  3. package/dist/{BusinessDetailsDropin-z-LBYatN.js → BusinessDetailsDropin-D10LCgSY.js} +9 -5
  4. package/dist/{BusinessFinancingPage-BZ0ukckI.js → BusinessFinancingPage-CVRFAPxm.js} +3 -3
  5. package/dist/{BusinessTypeSelectionPage-Bl0fkgrq.js → BusinessTypeSelectionPage-DK4PY3_p.js} +5 -4
  6. package/dist/{CXEL7IU7-BDgMbrmd.js → CXEL7IU7-DyO75Uac.js} +3 -3
  7. package/dist/{CreateIndividualComponent-BYcoaXRs.js → CreateIndividualComponent-BiMYdvQq.js} +38 -887
  8. package/dist/CreateTransferInstrumentComponent-CaBD_3yr.js +1082 -0
  9. package/dist/{CustomerSupport-C1aqVIO5.js → CustomerSupport-BqyayBTP.js} +4 -3
  10. package/dist/{DebugModal-sw85K_ur.js → DebugModal-CO_clhiW.js} +10 -9
  11. package/dist/{DecisionMakerDetailsPage-uOytW22H.js → DecisionMakerDetailsPage-C0wmo475.js} +3 -3
  12. package/dist/{DecisionMakers-CCWH6S3m.js → DecisionMakers-B2rmqsfW.js} +5 -4
  13. package/dist/{EventEmitter-D4j8YPMw.js → EventEmitter-BmWcyurq.js} +430 -573
  14. package/dist/FormNavigation-W4SYacAX.js +205 -0
  15. package/dist/{HASRA6WW-c_NjaqBL.js → HASRA6WW-Cj_9-H1H.js} +2 -2
  16. package/dist/{I3HPI4QX-7hHBw-hy.js → I3HPI4QX-CCkDLYPH.js} +3 -3
  17. package/dist/{Introduction-BIciUCV2.js → Introduction-DlsETOX7.js} +4 -4
  18. package/dist/{LegalRepresentativeDetailsPage-B5NB1_0c.js → LegalRepresentativeDetailsPage-Dbp83K05.js} +3 -3
  19. package/dist/ManageIndividualComponent-D-47IZH6.js +190 -0
  20. package/dist/Modal-6j0jkYFX.js +135 -0
  21. package/dist/{PayoutDetailsPage-csmuS7XY.js → PayoutDetailsPage-CWAOATOb.js} +4 -4
  22. package/dist/{Review-OUouKkBK.js → Review-B0v_A189.js} +4 -3
  23. package/dist/{RootBusinessDetailsPage-8GCh8CZ9.js → RootBusinessDetailsPage-D_3xc6YN.js} +4 -4
  24. package/dist/{RootIndividualDetailsPage-zZl4WLcr.js → RootIndividualDetailsPage-CT-rsvpD.js} +3 -3
  25. package/dist/{EmbedShell-n61dt-oX.js → ShadowStylesRoot-DMxqA0py.js} +28 -10
  26. package/dist/{SingpassSelection-DZx1cQy-.js → SingpassSelection-DB5BHBy1.js} +2 -2
  27. package/dist/{SoleProprietorshipPage-WVtWeQL6.js → SoleProprietorshipPage-CFZ3F57F.js} +4 -4
  28. package/dist/{SourceOfFunds.module-3s3uanVF.js → SourceOfFunds.module-sL22I1gI.js} +2 -2
  29. package/dist/{SourceOfFundsPage-6mejBSsi.js → SourceOfFundsPage-Tde0WbSG.js} +11 -5
  30. package/dist/Tag-DdkVScyr.js +41 -0
  31. package/dist/{TaskItemStatus-BTND6V1w.js → TaskItemStatus-DqNACVFe.js} +4 -32
  32. package/dist/{TaxReportingDropin-Canpx2fK.js → TaxReportingDropin-CPQZXr1j.js} +6 -5
  33. package/dist/{TrustDetailsPage-DSDYwyW0.js → TrustDetailsPage-BGkbFLaG.js} +7 -4
  34. package/dist/{TrustMemberCompanyPage-D7V4OAf4.js → TrustMemberCompanyPage-CQi1xGDz.js} +5 -5
  35. package/dist/{TrustMemberIndividualPage-C9zoI3NZ.js → TrustMemberIndividualPage-BI_XyXhS.js} +3 -3
  36. package/dist/{UnincorporatedPartnershipIndividualPage-BKEuBPUD.js → UnincorporatedPartnershipIndividualPage-B6gLv55I.js} +3 -3
  37. package/dist/{UnincorporatedPartnershipMemberCompanyPage-Ij6N40YA.js → UnincorporatedPartnershipMemberCompanyPage-jHwnxg3n.js} +4 -4
  38. package/dist/adyen-individual.js +41 -0
  39. package/dist/adyen-kyc-components.js +3 -6
  40. package/dist/adyen-manage-individual.js +41 -0
  41. package/dist/adyen-terms-of-service.js +47 -0
  42. package/dist/adyen-terms-of-service.vue_vue_type_script_lang-CLUMW5mI.js +34 -0
  43. package/dist/adyen-transfer-instrument.js +59 -0
  44. package/dist/adyen-transfer-instrument.vue_vue_type_script_lang-uEpG3KG3.js +45 -0
  45. package/dist/{css-FlY03KiS.js → css-CFY1scQ9.js} +2 -2
  46. package/dist/{core-C1rJ5Pjl.js → index-D6YGuPb5.js} +45 -1265
  47. package/dist/{json-C0fKu7KI.js → json-RoVXbcQq.js} +2 -2
  48. package/dist/localizeDateString-DtxuKMqB.js +27 -0
  49. package/dist/mapExistingFile-CwT8TZ5D.js +870 -0
  50. package/dist/{plaintext-VVpKsKsN.js → plaintext-DpBLPLCO.js} +2 -2
  51. package/dist/{terms-of-service-preact.js → preact/adyen-individual.js} +4 -4
  52. package/dist/{individual-preact.js → preact/adyen-manage-individual.js} +4 -4
  53. package/dist/{individual-react.js → preact/adyen-terms-of-service.js} +5 -4
  54. package/dist/preact/adyen-transfer-instrument.js +16 -0
  55. package/dist/style.css +1821 -1821
  56. package/dist/styles-CLV89_hH.js +1821 -1821
  57. package/dist/types/context/AnalyticsContext/AnalyticsProvider.d.ts +2 -2
  58. package/dist/types/context/ExperimentContext/ExperimentsContextProvider.d.ts +1 -1
  59. package/dist/types/core/EmbedShell/EmbedShell.d.ts +3 -4
  60. package/dist/types/core/environment/resolveEnvironment.d.ts +1 -0
  61. package/dist/types/embeds/ShadowStylesRoot.d.ts +3 -0
  62. package/dist/types/embeds/baseEmbedProps.d.ts +30 -0
  63. package/dist/types/embeds/individual/AdyenIndividualPreact.d.ts +3 -0
  64. package/dist/types/embeds/individual/adyen-individual.types.d.ts +30 -0
  65. package/dist/types/embeds/manage-individual/AdyenManageIndividualPreact.d.ts +3 -0
  66. package/dist/types/embeds/manage-individual/adyen-manage-individual.d.ts +1 -0
  67. package/dist/types/embeds/manage-individual/adyen-manage-individual.types.d.ts +29 -0
  68. package/dist/types/embeds/terms-of-service/AdyenTermsOfServicePreact.d.ts +3 -0
  69. package/dist/types/embeds/terms-of-service/adyen-terms-of-service.types.d.ts +30 -0
  70. package/dist/types/embeds/transfer-instrument/AdyenTransferInstrumentPreact.d.ts +3 -0
  71. package/dist/types/embeds/transfer-instrument/adyen-transfer-instrument.types.d.ts +36 -0
  72. package/dist/useToastContext-DiQ_PGrE.js +33 -0
  73. package/dist/{utils-UcNoMAHV.js → utils-Bl8l2XY4.js} +4 -4
  74. package/dist/vue/adyen-individual.js +43 -0
  75. package/dist/vue/adyen-manage-individual.js +46 -0
  76. package/dist/vue/adyen-terms-of-service.js +26 -0
  77. package/dist/vue/adyen-transfer-instrument.js +28 -0
  78. package/dist/{yaml-BipFvPsw.js → yaml-DEzkYiMR.js} +2 -2
  79. package/package.json +28 -61
  80. package/dist/adyenConfig.js +0 -34
  81. package/dist/individual-vue.js +0 -35
  82. package/dist/individual.js +0 -58
  83. package/dist/listToRecord-CO3M1Q74.js +0 -19
  84. package/dist/terms-of-service-react.js +0 -15
  85. package/dist/terms-of-service.js +0 -58
  86. package/dist/transfer-instrument-preact.js +0 -32
  87. package/dist/transfer-instrument-react.js +0 -32
  88. package/dist/transfer-instrument-vue.js +0 -41
  89. package/dist/transfer-instrument.js +0 -38
  90. package/dist/types/embeds/adyenConfig.d.ts +0 -22
  91. package/dist/types/embeds/individual/individual.types.d.ts +0 -12
  92. package/dist/types/embeds/individual/preact/Individual.d.ts +0 -15
  93. package/dist/types/embeds/individual/react/Individual.d.ts +0 -20
  94. package/dist/types/embeds/individual/vue/individual.types.d.ts +0 -9
  95. package/dist/types/embeds/terms-of-service/preact/TermsOfService.d.ts +0 -10
  96. package/dist/types/embeds/terms-of-service/react/TermsOfService.d.ts +0 -20
  97. package/dist/types/embeds/terms-of-service/terms-of-service.types.d.ts +0 -8
  98. package/dist/types/embeds/transfer-instrument/preact/TransferInstrument.d.ts +0 -15
  99. package/dist/types/embeds/transfer-instrument/react/TransferInstrument.d.ts +0 -20
  100. package/dist/types/embeds/transfer-instrument/transfer-instrument.types.d.ts +0 -17
  101. package/dist/types/embeds/transfer-instrument/vue/transfer-instrument.types.d.ts +0 -9
  102. package/dist/types/embeds/types.d.ts +0 -19
  103. package/dist/types/embeds/utils.d.ts +0 -7
  104. package/dist/utils-DD_s-Xlo.js +0 -27
@@ -2,16 +2,20 @@
2
2
  {
3
3
  try {
4
4
  let e = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : {}, n = new e.Error().stack;
5
- n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "5cde36b4-a942-4d67-b502-e9f489277901", e._sentryDebugIdIdentifier = "sentry-dbid-5cde36b4-a942-4d67-b502-e9f489277901");
5
+ n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "df9d2a86-69a3-4fcf-b906-0c035548ce27", e._sentryDebugIdIdentifier = "sentry-dbid-df9d2a86-69a3-4fcf-b906-0c035548ce27");
6
6
  } catch (e) {
7
7
  }
8
8
  }
9
9
  ;
10
10
  import { jsx, jsxs, Fragment } from "preact/jsx-runtime";
11
11
  import { useRef, useState, useEffect, useCallback } from "preact/hooks";
12
- import { m as useApiContext, Q as useInvalidateRootLegalEntity, a5 as useMutation, a4 as httpPost, p as useQuery, q as httpGet, a6 as skipToken, a1 as Icon, u as useI18nContext, T as Typography, dm as globalStyles, bu as AlertIcon, db as KEYBOARD_KEYS, a as useAnalyticsContext, aJ as noop, au as createLogger, W as useToastContext, b as useExperimentsContext, D as useForm, aq as Alert, B as Button, l as localizeDateString, L as LoaderWrapper, F as Field, t as Select, bq as Checkbox, bd as ActionBar, M as MaybeModal, c as ModalContent, f as ModalFooter, S as Spacer, i as LegalEntityType, aR as getOwnSignatories, az as doesLegalEntityRequiresLegalRepresentative, ay as getLegalRepresentative, a2 as useLegalEntity, ao as ROOT_LE, a0 as Loader, ah as TaskTypes } from "./EventEmitter-D4j8YPMw.js";
12
+ import { u as useApiContext, y as useInvalidateRootLegalEntity, V as useMutation, U as httpPost, a as useQuery, h as httpGet, a6 as skipToken, N as Icon, bd as AlertIcon, a1 as createLogger, b as useI18nContext, x as useAnalyticsContext, al as useExperimentsContext, n as useForm, X as Alert, O as Button, aj as LoaderWrapper, F as Field, S as Select, b9 as Checkbox, aY as ActionBar, L as LegalEntityType, av as getOwnSignatories, a7 as doesLegalEntityRequiresLegalRepresentative, a5 as getLegalRepresentative, P as useLegalEntity, aq as ROOT_LE, M as Loader, ah as TaskTypes } from "./EventEmitter-BmWcyurq.js";
13
+ import { u as useToastContext, M as MaybeModal, S as Spacer } from "./useToastContext-DiQ_PGrE.js";
14
+ import { b as ModalContent, c as ModalFooter } from "./Modal-6j0jkYFX.js";
15
+ import { S as StepProgressIndicator, F as FormNavigation } from "./FormNavigation-W4SYacAX.js";
13
16
  import cx from "classnames";
14
17
  import { defineSlots } from "named-slots";
18
+ import { l as localizeDateString } from "./localizeDateString-DtxuKMqB.js";
15
19
  const acceptTermsOfService = async (legalEntityId, baseUrl, termsOfServiceDocumentId, data) => {
16
20
  return httpPost(
17
21
  {
@@ -106,69 +110,10 @@ const useTermsOfService = (data, options) => {
106
110
  });
107
111
  };
108
112
  const outlinedIcon = "adyen-kyc-outlined-icon";
109
- const styles$1 = {
110
- outlinedIcon
111
- };
112
- const OutlinedIcon = ({ name }) => /* @__PURE__ */ jsx("div", { className: styles$1.outlinedIcon, children: /* @__PURE__ */ jsx(Icon, { name }) });
113
- const range = (stop, start = 0, step = 1) => Array.from({ length: (stop - start) / step + 1 }, (_, i) => start + i * step);
114
- const progressBar = "adyen-kyc-progress-bar";
115
- const progressBarThick = "adyen-kyc-progress-bar-thick";
116
- const progressStep = "adyen-kyc-progress-step";
117
- const progressStepActive = "adyen-kyc-progress-step-active";
118
- const progressBarCircles = "adyen-kyc-progress-bar-circles";
119
113
  const styles = {
120
- progressBar,
121
- progressBarThick,
122
- progressStep,
123
- progressStepActive,
124
- progressBarCircles
125
- };
126
- const shouldHighlight = (active, current, fillBefore) => !fillBefore ? active === current : active >= current;
127
- const StepProgressIndicator = ({
128
- activeStepIndex,
129
- stepsCount,
130
- fillBefore,
131
- thick,
132
- circles
133
- }) => {
134
- const { i18n } = useI18nContext();
135
- if (stepsCount === 0 || stepsCount > 10) {
136
- return /* @__PURE__ */ jsx(Typography, { variant: "caption", children: i18n.get("XOfYSteps", {
137
- values: { currentStep: activeStepIndex, totalSteps: stepsCount }
138
- }) });
139
- }
140
- return /* @__PURE__ */ jsx(
141
- "div",
142
- {
143
- "aria-label": `Step ${activeStepIndex} of ${stepsCount}`,
144
- className: styles.progress,
145
- role: "group",
146
- children: /* @__PURE__ */ jsx(
147
- "ol",
148
- {
149
- className: cx(styles.progressBar, {
150
- [styles.progressBarThick]: thick,
151
- [styles.progressBarCircles]: circles
152
- }),
153
- children: range(stepsCount).map((stepNumber) => {
154
- const isHighlighted = shouldHighlight(activeStepIndex, stepNumber, fillBefore);
155
- return /* @__PURE__ */ jsx(
156
- "li",
157
- {
158
- "aria-current": isHighlighted ? "step" : void 0,
159
- className: cx(styles.progressStep, {
160
- [styles.progressStepActive]: isHighlighted
161
- }),
162
- children: /* @__PURE__ */ jsx("span", { className: globalStyles.screenReaderOnly, children: `Step ${stepNumber}: ${stepNumber < activeStepIndex ? "completed" : "not completed"}` })
163
- },
164
- stepNumber
165
- );
166
- })
167
- }
168
- )
169
- }
170
- );
114
+ outlinedIcon
171
115
  };
116
+ const OutlinedIcon = ({ name }) => /* @__PURE__ */ jsx("div", { className: styles.outlinedIcon, children: /* @__PURE__ */ jsx(Icon, { name }) });
172
117
  const FormEndState = ({ variant = "success", children, className }) => {
173
118
  const Slot = defineSlots(children, ["title", "content", "icon", "actions"]);
174
119
  return /* @__PURE__ */ jsxs(
@@ -185,136 +130,6 @@ const FormEndState = ({ variant = "success", children, className }) => {
185
130
  }
186
131
  );
187
132
  };
188
- const FormNavigationItem = ({
189
- form,
190
- isActive,
191
- onClick,
192
- hasVerificationErrors
193
- }) => {
194
- const { i18n } = useI18nContext();
195
- const hasError = form.hasServerValidationErrors || hasVerificationErrors;
196
- const handleKeyDown = (e) => {
197
- if (onClick && (e.key === KEYBOARD_KEYS.enter || e.key === KEYBOARD_KEYS.space)) {
198
- e.preventDefault();
199
- onClick();
200
- }
201
- };
202
- return /* @__PURE__ */ jsx(
203
- "li",
204
- {
205
- "aria-label": i18n.get(form.formName),
206
- "aria-current": isActive,
207
- className: cx("adyen-kyc-form-navigation__item", {
208
- "adyen-kyc-form-navigation__item--active": isActive,
209
- "adyen-kyc-form-navigation__item--valid": form.isValid,
210
- "adyen-kyc-form-navigation__item--isnav": Boolean(onClick)
211
- }),
212
- children: /* @__PURE__ */ jsxs(
213
- "button",
214
- {
215
- type: "button",
216
- onClick,
217
- onKeyDown: onClick ? handleKeyDown : void 0,
218
- tabIndex: onClick ? 0 : void 0,
219
- children: [
220
- i18n.get(form.formName),
221
- form.hasServerValidationErrors && /* @__PURE__ */ jsxs("span", { className: "adyen-kyc-form-navigation__item-icon adyen-kyc-form-navigation__item-icon--error", children: [
222
- /* @__PURE__ */ jsx(Icon, { name: "warning" }),
223
- /* @__PURE__ */ jsx("span", { className: globalStyles.screenReaderOnly, children: i18n.get("formStepInvalid") })
224
- ] }),
225
- form.isValid && !hasError && /* @__PURE__ */ jsxs("span", { className: "adyen-kyc-form-navigation__item-icon adyen-kyc-form-navigation__item-icon--success", children: [
226
- /* @__PURE__ */ jsx(Icon, { name: "checkmark-small" }),
227
- /* @__PURE__ */ jsx("span", { className: globalStyles.screenReaderOnly, children: i18n.get("formStepCompleted") })
228
- ] })
229
- ]
230
- }
231
- )
232
- },
233
- form.formId
234
- );
235
- };
236
- function FormNavigation({
237
- forms,
238
- activeForm,
239
- gotoForm,
240
- validateForm,
241
- className,
242
- taskName,
243
- verificationErrors,
244
- trackNavigation = noop
245
- }) {
246
- const { i18n } = useI18nContext();
247
- const userEvents = useAnalyticsContext();
248
- const taskNameTranslated = i18n.get(taskName);
249
- const getFormIndex = (form) => forms.findIndex((f) => f.formId === form.formId);
250
- const goToForm = (form) => () => {
251
- if (form.formId === activeForm.formId) return;
252
- gotoForm(getFormIndex(form));
253
- trackNavigation({
254
- userEvents,
255
- actionType: "navigate",
256
- toForm: form.formName,
257
- label: form.formName,
258
- returnValue: "success"
259
- });
260
- };
261
- const getNavigateHandler = (form, activeForm2) => {
262
- const priorForms = forms.slice(0, getFormIndex(form));
263
- const allPriorFormsValid = priorForms.every((subForm) => subForm.isValid);
264
- if (allPriorFormsValid || !validateForm) {
265
- return goToForm(form);
266
- }
267
- return activeForm2.isValid ? void 0 : () => {
268
- trackNavigation({
269
- userEvents,
270
- actionType: "navigate",
271
- toForm: form.formName,
272
- label: form.formName,
273
- returnValue: "validation error"
274
- });
275
- validateForm();
276
- };
277
- };
278
- return /* @__PURE__ */ jsxs("div", { className: cx("adyen-kyc-form-navigation", className), children: [
279
- /* @__PURE__ */ jsx(
280
- Typography,
281
- {
282
- el: "h3",
283
- variant: "body",
284
- color: "secondary",
285
- className: "adyen-kyc-form-navigation__header",
286
- children: taskNameTranslated
287
- }
288
- ),
289
- forms && /* @__PURE__ */ jsxs(Fragment, { children: [
290
- /* @__PURE__ */ jsx(
291
- Typography,
292
- {
293
- color: "tertiary",
294
- variant: "caption-stronger",
295
- className: "adyen-kyc-form-navigation__step-count",
296
- children: i18n.get("stepsX/YofForm", {
297
- values: {
298
- activeFormIndex: getFormIndex(activeForm) + 1,
299
- totalForms: forms.length,
300
- taskNameTranslated
301
- }
302
- })
303
- }
304
- ),
305
- /* @__PURE__ */ jsx("ul", { className: "adyen-kyc-form-navigation__items", children: forms.map((form) => /* @__PURE__ */ jsx(
306
- FormNavigationItem,
307
- {
308
- form,
309
- isActive: form.formId === activeForm.formId,
310
- onClick: getNavigateHandler(form, activeForm),
311
- hasVerificationErrors: Boolean((verificationErrors == null ? void 0 : verificationErrors[form.formId]) ?? false)
312
- },
313
- form.formId
314
- )) })
315
- ] })
316
- ] });
317
- }
318
133
  const downloadFile = async (base64, filename) => {
319
134
  saveBlobAsFile(base64ToBlob(base64), filename);
320
135
  };
@@ -1854,12 +1669,10 @@ const AcceptTermsOfServiceComponent$1 = /* @__PURE__ */ Object.freeze(/* @__PURE
1854
1669
  export {
1855
1670
  AcceptTermsOfServiceComponent as A,
1856
1671
  ContractViewer as C,
1857
- FormNavigation as F,
1672
+ FormEndState as F,
1858
1673
  OutlinedIcon as O,
1859
- StepProgressIndicator as S,
1860
- FormEndState as a,
1861
- useTermsOfServiceStatus as b,
1862
- AcceptTermsOfServiceComponent$1 as c,
1674
+ useTermsOfServiceStatus as a,
1675
+ AcceptTermsOfServiceComponent$1 as b,
1863
1676
  downloadFile as d,
1864
1677
  useTermsOfServiceAcceptanceInfos as u
1865
1678
  };
@@ -2,14 +2,14 @@
2
2
  {
3
3
  try {
4
4
  let e = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : {}, n = new e.Error().stack;
5
- n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "d80039ab-268d-43e2-8e79-5673d098e66a", e._sentryDebugIdIdentifier = "sentry-dbid-d80039ab-268d-43e2-8e79-5673d098e66a");
5
+ n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "9e35e36d-c14d-47a8-97aa-d7375b3fafea", e._sentryDebugIdIdentifier = "sentry-dbid-9e35e36d-c14d-47a8-97aa-d7375b3fafea");
6
6
  } catch (e) {
7
7
  }
8
8
  }
9
9
  ;
10
10
  import { jsxs, jsx } from "preact/jsx-runtime";
11
- import { u as useI18nContext, bu as AlertIcon, b2 as FormHeader } from "./EventEmitter-D4j8YPMw.js";
12
- import { D as DropinLayout } from "./core-C1rJ5Pjl.js";
11
+ import { b as useI18nContext, bd as AlertIcon, aK as FormHeader } from "./EventEmitter-BmWcyurq.js";
12
+ import { D as DropinLayout } from "./index-D6YGuPb5.js";
13
13
  function AccountSetupRejected() {
14
14
  const { i18n } = useI18nContext();
15
15
  const content = /* @__PURE__ */ jsxs("div", { children: [
@@ -2,18 +2,22 @@
2
2
  {
3
3
  try {
4
4
  let e = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : {}, n = new e.Error().stack;
5
- n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "5c09e0c0-89a4-43ca-9b03-57fe963aae4b", e._sentryDebugIdIdentifier = "sentry-dbid-5c09e0c0-89a4-43ca-9b03-57fe963aae4b");
5
+ n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "29d6b51d-2f15-4588-b3c9-0cddbbd40e70", e._sentryDebugIdIdentifier = "sentry-dbid-29d6b51d-2f15-4588-b3c9-0cddbbd40e70");
6
6
  } catch (e) {
7
7
  }
8
8
  }
9
9
  ;
10
10
  import { jsx, jsxs, Fragment } from "preact/jsx-runtime";
11
11
  import { useState, useEffect, useCallback, useRef, useMemo } from "preact/hooks";
12
- import { m as useApiContext, a5 as useMutation, a4 as httpPost, u as useI18nContext, dj as MemoizedDocumentUpload, B as Button, ak as Modal, c as ModalContent, T as Typography, ad as CountryCodes, aE as CompanyTypesValue, J as useGlobalData, dt as getForms, ah as TaskTypes, du as BasicInformation, $ as getFormProps, dv as CompanyStructure, dw as AdditionalInformation, dx as MemoizedConstitutionalDocument, i as LegalEntityType, dy as FinancialInformation, dz as StateCodesUS, o as objectsDeepEqual, au as createLogger, e as entriesOf, bY as businessDetailsComponentsKeyMapping, dA as solePropBusinessDetailsKeyMapping, dB as operationalAddressIsSameIds, dC as COUNTRIES_USING_COMPANY_SEARCH, dD as FIELDS_NEEDED_FOR_COMPANY_SEARCH, ab as keysOf, bs as isUndefinedOrNull, ac as summaryItem, dE as solePropBusinessDetailsApiKeyMapping, bL as businessDetailsApiKeyMapping, d5 as isEmpty, dF as COUNTRIES_THAT_USE_TAX_ID_INSTEAD_OF_VAT, V as datasetUtilities, cD as mapAddressLabels, dG as companyTypeMetadata, k as isEmpty$1, cC as filterOutUnwantedAssociationsIfRootLE, dH as documentFormsIds, aZ as resolveFieldMetadata, dI as defaultFieldMetadata, dJ as inferCompanyRegistrationNumberType, dK as getCompanyRegistrationNumberOptions, dL as defaultFieldConfig, ck as defaultFieldMetadata$1, dM as countryToTaxInfoTypeMap, cl as defaultFieldConfig$1, dN as getKeyForField, h as drop, aX as getOwnEntityAssociations, cK as doArraysMatch, aF as useAccountHolder, W as useToastContext, a as useAnalyticsContext, b as useExperimentsContext, Y as useSettingsContext, X as useStateContext, Z as SettingNames, dO as setIsBankAccountRequestedForOrganization, _ as getAssociatedLeAnalyticsPayload, aj as getCapabilityProblems, dP as rules, dQ as solePropBusinessDetailsDocumentMapping, dR as businessDetailsDocumentMapping } from "./EventEmitter-D4j8YPMw.js";
13
- import { f as formatObject, n as getDocument, o as mapExistingFile, q as getPageName, r as createDocumentRequest, v as augmentWithCountryConfigs, j as composePerScenarioFormConfigurations, g as getProp, l as isValidationError, p as processValidationErrors, m as isMaintenanceModeError, D as getFileExtention, w as documentApiUtils, b as useScenarioConfiguration, c as getPropsFromConfigurations, O as getFieldsWithExistingData, d as getRequiredForms, e as addValidityToForms, u as useCreateLegalEntity, a as useUpdateLegalEntity, h as useFormComposer, t as trackNavigation, E as Confirm } from "./CreateIndividualComponent-BYcoaXRs.js";
14
- import { m as mapFinancialReportsToFinancialInformation, e as mapFinancialInformationToFinancialReport, h as hasDataChanged, F as FormWrapper } from "./core-C1rJ5Pjl.js";
15
- import { o as organizationTypesToSkipCompanyStructureForm } from "./utils-UcNoMAHV.js";
12
+ import { u as useApiContext, V as useMutation, U as httpPost, b as useI18nContext, cY as MemoizedDocumentUpload, O as Button, T as Typography, aD as CountryCodes, ad as CompanyTypesValue, s as useGlobalData, dm as getForms, ah as TaskTypes, dn as BasicInformation, K as getFormProps, dp as CompanyStructure, dq as AdditionalInformation, dr as MemoizedConstitutionalDocument, L as LegalEntityType, ds as FinancialInformation, dt as StateCodesUS, o as objectsDeepEqual, a1 as createLogger, e as entriesOf, bz as businessDetailsComponentsKeyMapping, du as solePropBusinessDetailsKeyMapping, dv as operationalAddressIsSameIds, dw as COUNTRIES_USING_COMPANY_SEARCH, dx as FIELDS_NEEDED_FOR_COMPANY_SEARCH, cI as keysOf, bb as isUndefinedOrNull, aU as summaryItem, dy as solePropBusinessDetailsApiKeyMapping, d3 as businessDetailsApiKeyMapping, cJ as isEmpty, dz as COUNTRIES_THAT_USE_TAX_ID_INSTEAD_OF_VAT, B as datasetUtilities, ce as mapAddressLabels, dA as companyTypeMetadata, i as isEmpty$1, cd as filterOutUnwantedAssociationsIfRootLE, dB as documentFormsIds, aF as resolveFieldMetadata, dC as defaultFieldMetadata, dD as inferCompanyRegistrationNumberType, dE as getCompanyRegistrationNumberOptions, dF as defaultFieldConfig, bU as defaultFieldMetadata$1, dG as countryToTaxInfoTypeMap, bV as defaultFieldConfig$1, dH as getKeyForField, d as drop, aC as getOwnEntityAssociations, cl as doArraysMatch, ae as useAccountHolder, x as useAnalyticsContext, al as useExperimentsContext, G as useSettingsContext, D as useStateContext, H as SettingNames, dI as setIsBankAccountRequestedForOrganization, J as getAssociatedLeAnalyticsPayload, Y as getCapabilityProblems, dJ as rules, dK as solePropBusinessDetailsDocumentMapping, dL as businessDetailsDocumentMapping } from "./EventEmitter-BmWcyurq.js";
13
+ import { l as getFieldsWithExistingData, u as useCreateLegalEntity, a as useUpdateLegalEntity, C as Confirm } from "./CreateIndividualComponent-BiMYdvQq.js";
14
+ import { m as mapFinancialReportsToFinancialInformation, e as mapFinancialInformationToFinancialReport, h as hasDataChanged } from "./index-D6YGuPb5.js";
15
+ import { u as useToastContext } from "./useToastContext-DiQ_PGrE.js";
16
+ import { f as formatObject, k as getDocument, m as mapExistingFile, l as getPageName, o as createDocumentRequest, y as augmentWithCountryConfigs, e as composePerScenarioFormConfigurations, g as getProp, i as isValidationError, p as processValidationErrors, h as isMaintenanceModeError, w as getFileExtention, q as documentApiUtils, u as useScenarioConfiguration, a as getPropsFromConfigurations, b as getRequiredForms, c as addValidityToForms, d as useFormComposer, t as trackNavigation } from "./mapExistingFile-CwT8TZ5D.js";
17
+ import { o as organizationTypesToSkipCompanyStructureForm } from "./utils-Bl8l2XY4.js";
18
+ import { F as FormWrapper } from "./CreateTransferInstrumentComponent-CaBD_3yr.js";
16
19
  import cx from "classnames";
20
+ import { M as Modal, b as ModalContent } from "./Modal-6j0jkYFX.js";
17
21
  import { f as formatCurrency } from "./formatCurrency-CMOSdJMB.js";
18
22
  const clearCompanyData = async (legalEntityId, baseUrl) => {
19
23
  return httpPost({
@@ -2,14 +2,14 @@
2
2
  {
3
3
  try {
4
4
  let e = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : {}, n = new e.Error().stack;
5
- n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "84bf9c4b-c8b5-4828-8d28-ffac2271764d", e._sentryDebugIdIdentifier = "sentry-dbid-84bf9c4b-c8b5-4828-8d28-ffac2271764d");
5
+ n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "ce45f16c-d32f-4703-bca0-082fabd33f14", e._sentryDebugIdIdentifier = "sentry-dbid-ce45f16c-d32f-4703-bca0-082fabd33f14");
6
6
  } catch (e) {
7
7
  }
8
8
  }
9
9
  ;
10
10
  import { jsx } from "preact/jsx-runtime";
11
- import { u as useI18nContext, a2 as useLegalEntity, ao as ROOT_LE, a0 as Loader, a3 as getLegalEntityCountry } from "./EventEmitter-D4j8YPMw.js";
12
- import { B as BusinessFinancingDropin } from "./core-C1rJ5Pjl.js";
11
+ import { b as useI18nContext, P as useLegalEntity, aq as ROOT_LE, M as Loader, Q as getLegalEntityCountry } from "./EventEmitter-BmWcyurq.js";
12
+ import { B as BusinessFinancingDropin } from "./index-D6YGuPb5.js";
13
13
  const BusinessFinancingPage = ({
14
14
  onSubmit,
15
15
  handleHomeClick
@@ -2,16 +2,17 @@
2
2
  {
3
3
  try {
4
4
  let e = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : {}, n = new e.Error().stack;
5
- n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "416219f1-a6ed-4ddf-b47c-f0fd95f0dae7", e._sentryDebugIdIdentifier = "sentry-dbid-416219f1-a6ed-4ddf-b47c-f0fd95f0dae7");
5
+ n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "878aa34f-e847-454e-9c95-490f45b39775", e._sentryDebugIdIdentifier = "sentry-dbid-878aa34f-e847-454e-9c95-490f45b39775");
6
6
  } catch (e) {
7
7
  }
8
8
  }
9
9
  ;
10
10
  import { jsx, jsxs, Fragment } from "preact/jsx-runtime";
11
- import { u as useI18nContext, a as useAnalyticsContext, W as useToastContext, b as useExperimentsContext, aF as useAccountHolder, dr as getCapabilities, a3 as getLegalEntityCountry, i as LegalEntityType, D as useForm, L as LoaderWrapper, T as Typography, F as Field, ds as EntityTypeRadioGroupCard, b5 as RadioGroupCard, B as Button, S as Spacer, a1 as Icon, aB as hasSolePropInLegalEntity, a2 as useLegalEntity, ao as ROOT_LE, a0 as Loader } from "./EventEmitter-D4j8YPMw.js";
11
+ import { b as useI18nContext, x as useAnalyticsContext, al as useExperimentsContext, ae as useAccountHolder, dk as getCapabilities, Q as getLegalEntityCountry, L as LegalEntityType, n as useForm, aj as LoaderWrapper, T as Typography, F as Field, dl as EntityTypeRadioGroupCard, aN as RadioGroupCard, O as Button, N as Icon, aa as hasSolePropInLegalEntity, P as useLegalEntity, aq as ROOT_LE, M as Loader } from "./EventEmitter-BmWcyurq.js";
12
12
  import { useState, useEffect } from "preact/hooks";
13
- import { a as useUpdateLegalEntity } from "./CreateIndividualComponent-BYcoaXRs.js";
14
- import { u as useSelectionOptions, g as getBusinessType, a as getDefaultLegalArrangementOrSuborganizationType, l as legalArrangementMetadata, b as getTargetLegalEntityType, c as businessTypeIcons, d as determineOrganizationTypeToUpdate } from "./utils-UcNoMAHV.js";
13
+ import { a as useUpdateLegalEntity } from "./CreateIndividualComponent-BiMYdvQq.js";
14
+ import { u as useToastContext, S as Spacer } from "./useToastContext-DiQ_PGrE.js";
15
+ import { u as useSelectionOptions, g as getBusinessType, a as getDefaultLegalArrangementOrSuborganizationType, l as legalArrangementMetadata, b as getTargetLegalEntityType, c as businessTypeIcons, d as determineOrganizationTypeToUpdate } from "./utils-Bl8l2XY4.js";
15
16
  const businessTypeExamples = /* @__PURE__ */ Object.assign({ "../localized/legalEntityTypeExamples/AT.json": () => import("./AT-EpV7jN58.js"), "../localized/legalEntityTypeExamples/AU.json": () => import("./AU-pBsEvEUy.js"), "../localized/legalEntityTypeExamples/BE.json": () => import("./BE-CU5o9cmc.js"), "../localized/legalEntityTypeExamples/BR.json": () => import("./BR-ORoHRwTk.js"), "../localized/legalEntityTypeExamples/CA.json": () => import("./CA-VXNq-m6m.js"), "../localized/legalEntityTypeExamples/CH.json": () => import("./CH-B_-afpD_.js"), "../localized/legalEntityTypeExamples/CZ.json": () => import("./CZ-CTw_bQIu.js"), "../localized/legalEntityTypeExamples/DE.json": () => import("./DE-D_jIDxOH.js"), "../localized/legalEntityTypeExamples/DK.json": () => import("./DK-dBzrfgpQ.js"), "../localized/legalEntityTypeExamples/ES.json": () => import("./ES-DYbZmFcJ.js"), "../localized/legalEntityTypeExamples/FI.json": () => import("./FI-C9nRvop7.js"), "../localized/legalEntityTypeExamples/FR.json": () => import("./FR-BycGQO4W.js"), "../localized/legalEntityTypeExamples/GB.json": () => import("./GB-DFyzo5sN.js"), "../localized/legalEntityTypeExamples/HK.json": () => import("./HK-WqZ5UBEF.js"), "../localized/legalEntityTypeExamples/HR.json": () => import("./HR-CRa19tH1.js"), "../localized/legalEntityTypeExamples/HU.json": () => import("./HU-D5NCweWf.js"), "../localized/legalEntityTypeExamples/IE.json": () => import("./IE-rhATS57q.js"), "../localized/legalEntityTypeExamples/IT.json": () => import("./IT-wD7dHdYD.js"), "../localized/legalEntityTypeExamples/LT.json": () => import("./LT-0F72uCyI.js"), "../localized/legalEntityTypeExamples/NL.json": () => import("./NL-q2U2l276.js"), "../localized/legalEntityTypeExamples/NO.json": () => import("./NO-CX12Zsf_.js"), "../localized/legalEntityTypeExamples/PL.json": () => import("./PL-CwCXF3Yu.js"), "../localized/legalEntityTypeExamples/PT.json": () => import("./PT-Dei5v1nD.js"), "../localized/legalEntityTypeExamples/RO.json": () => import("./RO-Dxk08mOu.js"), "../localized/legalEntityTypeExamples/SE.json": () => import("./SE-AP3gLiyy.js"), "../localized/legalEntityTypeExamples/SG.json": () => import("./SG-DMcOb17i.js"), "../localized/legalEntityTypeExamples/SI.json": () => import("./SI-BXe-yndm.js"), "../localized/legalEntityTypeExamples/SK.json": () => import("./SK-DwdgoGnD.js"), "../localized/legalEntityTypeExamples/US.json": () => import("./US-DHxLSqeC.js") });
16
17
  const getBusinessTypeExamplesForCountry = async (country) => {
17
18
  const importForCountry = businessTypeExamples[`../localized/legalEntityTypeExamples/${country}.json`];
@@ -2,13 +2,13 @@
2
2
  {
3
3
  try {
4
4
  let e = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : {}, n = new e.Error().stack;
5
- n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "9821d035-6173-4614-9c55-bd1aa88ff419", e._sentryDebugIdIdentifier = "sentry-dbid-9821d035-6173-4614-9c55-bd1aa88ff419");
5
+ n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "5c9b4b5b-2c03-4d36-9d4a-99dbdd68d195", e._sentryDebugIdIdentifier = "sentry-dbid-5c9b4b5b-2c03-4d36-9d4a-99dbdd68d195");
6
6
  } catch (e) {
7
7
  }
8
8
  }
9
9
  ;
10
- import { c as createLocalStorage, T as THEME_PREFERENCE, P as PiPProvider, a as ThemeContext, b as ParentPanel, C as ContentView, Q as QueryDevtoolsContext } from "./HASRA6WW-c_NjaqBL.js";
11
- import { e7 as getPreferredColorScheme, e8 as createMemo, e9 as createComponent } from "./EventEmitter-D4j8YPMw.js";
10
+ import { c as createLocalStorage, T as THEME_PREFERENCE, P as PiPProvider, a as ThemeContext, b as ParentPanel, C as ContentView, Q as QueryDevtoolsContext } from "./HASRA6WW-Cj_9-H1H.js";
11
+ import { e1 as getPreferredColorScheme, e2 as createMemo, e3 as createComponent } from "./EventEmitter-BmWcyurq.js";
12
12
  var DevtoolsPanelComponent = (props) => {
13
13
  const [localStore, setLocalStore] = createLocalStorage({
14
14
  prefix: "TanstackQueryDevtools"