@adyen/adyen-platform-experience-web 0.1.1 → 0.1.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 (71) hide show
  1. package/dist/ModalContent-e2777391.js +2 -0
  2. package/dist/{ModalContent-83a84ba5.js.map → ModalContent-e2777391.js.map} +1 -1
  3. package/dist/cjs/index.js +1 -1
  4. package/dist/es/components/external/BaseElement.js +1 -1
  5. package/dist/es/components/external/TransactionDetails/components/TransactionData.js +3 -3
  6. package/dist/es/components/external/TransactionDetails/components/TransactionDataSkeleton.js +1 -1
  7. package/dist/es/components/external/Transactions/components/Balances/Balances.js +33 -34
  8. package/dist/es/components/external/Transactions/components/ModalContent.js +1 -1
  9. package/dist/es/components/external/Transactions/components/SummaryItem/SummaryItem.js +8 -8
  10. package/dist/es/components/external/Transactions/components/SummaryItem/constants.js +5 -4
  11. package/dist/es/components/external/Transactions/components/TransactionList.js +72 -69
  12. package/dist/es/components/external/Transactions/components/TransactionTotals/TransactionTotals.js +51 -45
  13. package/dist/es/components/external/Transactions/components/TransactionsOverview.js +77 -74
  14. package/dist/es/components/external/Transactions/hooks/useMaxWidths.js +9 -9
  15. package/dist/es/components/external/UIElement.js +4 -4
  16. package/dist/es/components/internal/Button/Button.js +12 -12
  17. package/dist/es/components/internal/Calendar/components/CalendarControls/CalendarControls.js +4 -4
  18. package/dist/es/components/internal/DataGrid/DataGrid.js +7 -7
  19. package/dist/es/components/internal/DataGrid/components/InteractiveBody.js +1 -1
  20. package/dist/es/components/internal/DataGrid/components/SkeletonBody.js +1 -1
  21. package/dist/es/components/internal/DataGrid/components/TableBody.js +3 -3
  22. package/dist/es/components/internal/DataGrid/components/TableCells.js +1 -1
  23. package/dist/es/components/internal/ErrorMessageDisplay/ErrorMessageDisplay.js +3 -3
  24. package/dist/es/components/internal/ExpandableCard/ExpandableCard.js +7 -7
  25. package/dist/es/components/internal/FilterBar/filters/BaseFilter/BaseFilter.js +4 -4
  26. package/dist/es/components/internal/FormFields/InputBase.js +17 -17
  27. package/dist/es/components/internal/FormFields/Select/components/SelectButton.js +1 -1
  28. package/dist/es/components/internal/FormFields/Select/components/SelectListItem.js +1 -1
  29. package/dist/es/components/internal/Modal/Modal.js +12 -11
  30. package/dist/es/components/internal/Popover/Popover.js +4 -4
  31. package/dist/es/components/internal/Popover/PopoverDismissButton/PopoverDismissButton.js +1 -1
  32. package/dist/es/core/Auth/AuthContext.js +1 -1
  33. package/dist/es/core/Auth/AuthProvider.js +4 -4
  34. package/dist/es/core/Context/CoreContext.js +1 -1
  35. package/dist/es/core/Context/CoreProvider.js +1 -1
  36. package/dist/es/core/Localization/Localization.js +57 -56
  37. package/dist/es/core/Localization/amount/amount-util.js +14 -14
  38. package/dist/es/core/core.js +3 -3
  39. package/dist/es/external/preact/compat/dist/compat.module.js +54 -55
  40. package/dist/es/external/preact/dist/preact.module.js +309 -0
  41. package/dist/es/external/preact/hooks/dist/hooks.module.js +3 -3
  42. package/dist/es/external/preact/jsx-runtime/dist/jsxRuntime.module.js +4 -4
  43. package/dist/es/hooks/useModalDetails/useModalDetails.js +24 -18
  44. package/dist/es/index.js +13 -13
  45. package/dist/index-0c9f4def.js +12 -0
  46. package/dist/index-0c9f4def.js.map +1 -0
  47. package/dist/style.css +1 -1
  48. package/dist/types/components/external/TransactionDetails/index.d.ts +1 -1
  49. package/dist/types/components/external/TransactionDetails/index.d.ts.map +1 -1
  50. package/dist/types/components/external/Transactions/components/Balances/Balances.d.ts +2 -2
  51. package/dist/types/components/external/Transactions/components/Balances/Balances.d.ts.map +1 -1
  52. package/dist/types/components/external/Transactions/components/SummaryItem/SummaryItem.d.ts.map +1 -1
  53. package/dist/types/components/external/Transactions/components/SummaryItem/constants.d.ts +1 -0
  54. package/dist/types/components/external/Transactions/components/SummaryItem/constants.d.ts.map +1 -1
  55. package/dist/types/components/external/Transactions/components/TransactionList.d.ts.map +1 -1
  56. package/dist/types/components/external/Transactions/components/TransactionTotals/TransactionTotals.d.ts +2 -1
  57. package/dist/types/components/external/Transactions/components/TransactionTotals/TransactionTotals.d.ts.map +1 -1
  58. package/dist/types/components/external/Transactions/components/TransactionsOverview.d.ts.map +1 -1
  59. package/dist/types/components/external/Transactions/hooks/useMaxWidths.d.ts.map +1 -1
  60. package/dist/types/components/external/Transactions/types.d.ts +2 -2
  61. package/dist/types/components/external/Transactions/types.d.ts.map +1 -1
  62. package/dist/types/components/internal/Modal/Modal.d.ts.map +1 -1
  63. package/dist/types/core/Localization/Localization.d.ts.map +1 -1
  64. package/dist/types/core/Localization/amount/amount-util.d.ts +1 -5
  65. package/dist/types/core/Localization/amount/amount-util.d.ts.map +1 -1
  66. package/dist/types/hooks/useModalDetails/types.d.ts +1 -1
  67. package/dist/types/hooks/useModalDetails/types.d.ts.map +1 -1
  68. package/package.json +4 -2
  69. package/dist/ModalContent-83a84ba5.js +0 -2
  70. package/dist/index-ff45d757.js +0 -12
  71. package/dist/index-ff45d757.js.map +0 -1
@@ -1,42 +1,42 @@
1
1
  import { jsx as o } from "../../../../external/preact/jsx-runtime/dist/jsxRuntime.module.js";
2
- import K from "../../../internal/FilterBar/FilterBar.js";
2
+ import Z from "../../../internal/FilterBar/FilterBar.js";
3
3
  import { TransactionFilterParam as t } from "../types.js";
4
- import Q from "./TransactionList.js";
5
- import V from "../../../../core/Context/useCoreContext.js";
6
- import { useSetupEndpoint as W } from "../../../../hooks/useSetupEndpoint/useSetupEndpoint.js";
7
- import { useCallback as Y, useMemo as f, useState as Z, useEffect as N } from "../../../../external/preact/hooks/dist/hooks.module.js";
8
- import $ from "../../../internal/Pagination/hooks/useCursorPaginatedRecords.js";
9
- import { isFunction as _ } from "../../../../utils/common/index.js";
10
- import { LIMIT_OPTIONS as q, DEFAULT_PAGE_LIMIT as B } from "../../../internal/Pagination/constants.js";
11
- import rr from "./TransactionsOverviewDateFilter.js";
12
- import tr from "./TransactionTotals/TransactionTotals.js";
13
- import { Balances as er } from "./Balances/Balances.js";
14
- import or from "../hooks/useDefaultTransactionsOverviewFilterParams.js";
15
- import ir from "../hooks/useTransactionsOverviewMultiSelectionFilters.js";
16
- import { AmountFilter as nr } from "../../../internal/FilterBar/filters/AmountFilter/AmountFilter.js";
17
- import sr from "./BalanceAccountSelector/useBalanceAccountSelection.js";
18
- import { listFrom as a } from "./MultiSelectionFilter/useMultiSelectionFilter/utils.js";
19
- import lr from "./BalanceAccountSelector/BalanceAccountSelector.js";
20
- import T from "./MultiSelectionFilter/MultiSelectionFilter.js";
21
- import { Fragment as mr } from "preact";
22
- const gr = ({
4
+ import $ from "./TransactionList.js";
5
+ import q from "../../../../core/Context/useCoreContext.js";
6
+ import { useSetupEndpoint as B } from "../../../../hooks/useSetupEndpoint/useSetupEndpoint.js";
7
+ import { useCallback as h, useMemo as T, useState as _, useEffect as O } from "../../../../external/preact/hooks/dist/hooks.module.js";
8
+ import rr from "../../../internal/Pagination/hooks/useCursorPaginatedRecords.js";
9
+ import { isFunction as M } from "../../../../utils/common/index.js";
10
+ import { LIMIT_OPTIONS as tr, DEFAULT_PAGE_LIMIT as er } from "../../../internal/Pagination/constants.js";
11
+ import ir from "./TransactionsOverviewDateFilter.js";
12
+ import or from "./TransactionTotals/TransactionTotals.js";
13
+ import { Balances as nr } from "./Balances/Balances.js";
14
+ import sr from "../hooks/useDefaultTransactionsOverviewFilterParams.js";
15
+ import lr from "../hooks/useTransactionsOverviewMultiSelectionFilters.js";
16
+ import { AmountFilter as ar } from "../../../internal/FilterBar/filters/AmountFilter/AmountFilter.js";
17
+ import mr from "./BalanceAccountSelector/useBalanceAccountSelection.js";
18
+ import { listFrom as m } from "./MultiSelectionFilter/useMultiSelectionFilter/utils.js";
19
+ import cr from "./BalanceAccountSelector/BalanceAccountSelector.js";
20
+ import C from "./MultiSelectionFilter/MultiSelectionFilter.js";
21
+ import { Fragment as dr } from "../../../../external/preact/dist/preact.module.js";
22
+ const wr = ({
23
23
  onFiltersChanged: c,
24
24
  onLimitChanged: d,
25
25
  balanceAccounts: u,
26
26
  allowLimitSelection: E,
27
- preferredLimit: O = B,
28
- onTransactionSelected: M,
29
- showDetails: U,
30
- isLoadingBalanceAccount: h,
31
- onContactSupport: D
27
+ preferredLimit: U = er,
28
+ onTransactionSelected: g,
29
+ showDetails: v,
30
+ isLoadingBalanceAccount: D,
31
+ onContactSupport: b
32
32
  }) => {
33
- const { i18n: l } = V(), F = W("getTransactions"), { activeBalanceAccount: r, balanceAccountSelectionOptions: v, onBalanceAccountSelection: L } = sr(u), { defaultParams: s, nowTimestamp: b, refreshNowTimestamp: p } = or(r), g = Y(
34
- async (i, J) => F({ signal: J, errorLevel: "error" }, {
33
+ const { i18n: l } = q(), F = B("getTransactions"), { activeBalanceAccount: r, balanceAccountSelectionOptions: L, onBalanceAccountSelection: x } = mr(u), { defaultParams: s, nowTimestamp: R, refreshNowTimestamp: f } = sr(r), w = h(
34
+ async (i, p) => F({ signal: p, errorLevel: "error" }, {
35
35
  query: {
36
36
  ...i,
37
- statuses: a(i[t.STATUSES]),
38
- categories: a(i[t.CATEGORIES]),
39
- currencies: a(i[t.CURRENCIES]),
37
+ statuses: m(i[t.STATUSES]),
38
+ categories: m(i[t.CATEGORIES]),
39
+ currencies: m(i[t.CURRENCIES]),
40
40
  createdSince: i[t.CREATED_SINCE] ?? s.current.defaultFilterParams[t.CREATED_SINCE],
41
41
  createdUntil: i[t.CREATED_UNTIL] ?? s.current.defaultFilterParams[t.CREATED_UNTIL],
42
42
  sortDirection: "desc",
@@ -46,55 +46,57 @@ const gr = ({
46
46
  }
47
47
  }),
48
48
  [r == null ? void 0 : r.id, s, F]
49
- ), x = f(() => _(c) ? c : void 0, [c]), R = f(() => _(d) ? d : void 0, [d]), w = f(() => E ? q : void 0, [E]), { canResetFilters: P, error: y, fetching: X, filters: e, limit: G, limitOptions: j, records: k, resetFilters: ar, updateFilters: n, updateLimit: z, ...H } = $({
50
- fetchRecords: g,
49
+ ), P = T(() => M(c) ? c : void 0, [c]), y = T(() => M(d) ? d : void 0, [d]), X = T(() => E ? tr : void 0, [E]), { canResetFilters: k, error: G, fetching: j, filters: e, limit: z, limitOptions: H, records: J, resetFilters: ur, updateFilters: n, updateLimit: K, ...Q } = rr({
50
+ fetchRecords: w,
51
51
  dataField: "transactions",
52
52
  filterParams: s.current.defaultFilterParams,
53
53
  initialFiltersSameAsDefault: !0,
54
- onLimitChanged: R,
55
- onFiltersChanged: x,
56
- preferredLimit: O,
57
- preferredLimitOptions: w,
54
+ onLimitChanged: y,
55
+ onFiltersChanged: P,
56
+ preferredLimit: U,
57
+ preferredLimitOptions: X,
58
58
  enabled: !!(r != null && r.id)
59
- }), [m, A] = Z([]), { categoriesFilter: C, currenciesFilter: S, statusesFilter: I } = ir(
59
+ }), [a, A] = _([]), [V, W] = _(!1), Y = h((i, p) => {
60
+ A(i), W(p);
61
+ }, []), { categoriesFilter: I, currenciesFilter: S, statusesFilter: N } = lr(
60
62
  {
61
63
  filters: e,
62
64
  updateFilters: n
63
65
  },
64
- m
66
+ a
65
67
  );
66
- return N(() => {
68
+ return O(() => {
67
69
  A(void 0), n({ [t.CURRENCIES]: void 0 });
68
- }, [n, r == null ? void 0 : r.id]), N(() => {
69
- p();
70
- }, [e, p]), /* @__PURE__ */ o(mr, { children: [
71
- /* @__PURE__ */ o(K, { children: [
70
+ }, [n, r == null ? void 0 : r.id]), O(() => {
71
+ f();
72
+ }, [e, f]), /* @__PURE__ */ o(dr, { children: [
73
+ /* @__PURE__ */ o(Z, { children: [
72
74
  /* @__PURE__ */ o(
73
- lr,
75
+ cr,
74
76
  {
75
77
  activeBalanceAccount: r,
76
- balanceAccountSelectionOptions: v,
77
- onBalanceAccountSelection: L
78
+ balanceAccountSelectionOptions: L,
79
+ onBalanceAccountSelection: x
78
80
  }
79
81
  ),
80
82
  /* @__PURE__ */ o(
81
- rr,
83
+ ir,
82
84
  {
83
- canResetFilters: P,
85
+ canResetFilters: k,
84
86
  defaultParams: s,
85
87
  filters: e,
86
- nowTimestamp: b,
87
- refreshNowTimestamp: p,
88
+ nowTimestamp: R,
89
+ refreshNowTimestamp: f,
88
90
  updateFilters: n
89
91
  }
90
92
  ),
91
- /* @__PURE__ */ o(T, { ...I, placeholder: l.get("filterPlaceholder.status") }),
92
- /* @__PURE__ */ o(T, { ...C, placeholder: l.get("filterPlaceholder.category") }),
93
+ /* @__PURE__ */ o(C, { ...N, placeholder: l.get("filterPlaceholder.status") }),
94
+ /* @__PURE__ */ o(C, { ...I, placeholder: l.get("filterPlaceholder.category") }),
93
95
  /* @__PURE__ */ o(
94
- nr,
96
+ ar,
95
97
  {
96
- availableCurrencies: m,
97
- selectedCurrencies: a(e[t.CURRENCIES]),
98
+ availableCurrencies: a,
99
+ selectedCurrencies: m(e[t.CURRENCIES]),
98
100
  name: "range",
99
101
  label: l.get("amount"),
100
102
  minAmount: e[t.MIN_AMOUNT],
@@ -103,16 +105,17 @@ const gr = ({
103
105
  onChange: n
104
106
  }
105
107
  ),
106
- /* @__PURE__ */ o(T, { ...S, placeholder: l.get("filterPlaceholder.currency") })
108
+ /* @__PURE__ */ o(C, { ...S, placeholder: l.get("filterPlaceholder.currency") })
107
109
  ] }),
108
110
  /* @__PURE__ */ o("div", { className: "adyen-fp-transactions__balance-totals", children: [
109
111
  /* @__PURE__ */ o(
110
- tr,
112
+ or,
111
113
  {
112
- availableCurrencies: m,
114
+ availableCurrencies: a,
115
+ isAvailableCurrenciesFetching: V,
113
116
  balanceAccountId: r == null ? void 0 : r.id,
114
- statuses: I.selection,
115
- categories: C.selection,
117
+ statuses: N.selection,
118
+ categories: I.selection,
116
119
  createdUntil: e[t.CREATED_UNTIL],
117
120
  createdSince: e[t.CREATED_SINCE],
118
121
  currencies: S.selection,
@@ -120,29 +123,29 @@ const gr = ({
120
123
  maxAmount: e[t.MAX_AMOUNT] ? parseFloat(e[t.MAX_AMOUNT]) : void 0
121
124
  }
122
125
  ),
123
- /* @__PURE__ */ o(er, { balanceAccountId: r == null ? void 0 : r.id, updateBalanceAccountCurrencies: A })
126
+ /* @__PURE__ */ o(nr, { balanceAccountId: r == null ? void 0 : r.id, onCurrenciesChange: Y })
124
127
  ] }),
125
128
  /* @__PURE__ */ o(
126
- Q,
129
+ $,
127
130
  {
128
131
  balanceAccounts: u,
129
- availableCurrencies: m,
130
- loading: X || h || !u,
131
- transactions: k,
132
- onTransactionSelected: M,
132
+ availableCurrencies: a,
133
+ loading: j || D || !u,
134
+ transactions: J,
135
+ onTransactionSelected: g,
133
136
  showPagination: !0,
134
- showDetails: U,
137
+ showDetails: v,
135
138
  balanceAccountDescription: (r == null ? void 0 : r.description) || "",
136
- limit: G,
137
- limitOptions: j,
138
- onContactSupport: D,
139
- onLimitSelection: z,
140
- error: y,
141
- ...H
139
+ limit: z,
140
+ limitOptions: H,
141
+ onContactSupport: b,
142
+ onLimitSelection: K,
143
+ error: G,
144
+ ...Q
142
145
  }
143
146
  )
144
147
  ] });
145
148
  };
146
149
  export {
147
- gr as TransactionsOverview
150
+ wr as TransactionsOverview
148
151
  };
@@ -1,15 +1,15 @@
1
- import { useState as c, useCallback as u } from "../../../../external/preact/hooks/dist/hooks.module.js";
2
- const d = () => {
3
- const [a, e] = c([]), n = u((o) => {
4
- e(
5
- (r) => o.map((s, i) => {
6
- const t = r[i];
7
- return !t || s > t ? s : t;
1
+ import { useState as u, useCallback as x } from "../../../../external/preact/hooks/dist/hooks.module.js";
2
+ const W = () => {
3
+ const [s, r] = u([]), n = x((a) => {
4
+ r(
5
+ (o) => a.every((t) => !t) ? a : a.map((t, c) => {
6
+ const e = o[c];
7
+ return !e || t > e ? t : e;
8
8
  })
9
9
  );
10
10
  }, []);
11
- return [a, n];
11
+ return [s, n];
12
12
  };
13
13
  export {
14
- d as useMaxWidthsState
14
+ W as useMaxWidthsState
15
15
  };
@@ -6,8 +6,8 @@ import m from "../../core/Auth/AuthProvider.js";
6
6
  import u from "../../core/Context/CoreProvider.js";
7
7
  import c from "./BaseElement.js";
8
8
  import l from "../../utils/get-image.js";
9
- import { EMPTY_OBJECT as d } from "../../utils/common/constants.js";
10
- import { Fragment as f } from "preact";
9
+ import { Fragment as d } from "../../external/preact/dist/preact.module.js";
10
+ import { EMPTY_OBJECT as f } from "../../utils/common/constants.js";
11
11
  class S extends c {
12
12
  constructor(t) {
13
13
  super(t);
@@ -70,11 +70,11 @@ class S extends c {
70
70
  return /* @__PURE__ */ i(
71
71
  m,
72
72
  {
73
- endpoints: ((r = (t = this.session) == null ? void 0 : t.configuration) == null ? void 0 : r.endpoints) || d,
73
+ endpoints: ((r = (t = this.session) == null ? void 0 : t.configuration) == null ? void 0 : r.endpoints) || f,
74
74
  token: ((n = this.session) == null ? void 0 : n.token) ?? "",
75
75
  updateCore: this.props.core.update.bind(this.props.core),
76
76
  sessionSetupError: this.sessionSetupError,
77
- children: /* @__PURE__ */ i(u, { i18n: this.i18n, loadingContext: this.loadingContext, children: this.componentToRender && /* @__PURE__ */ i(f, { children: this.componentToRender() }) })
77
+ children: /* @__PURE__ */ i(u, { i18n: this.i18n, loadingContext: this.loadingContext, children: this.componentToRender && /* @__PURE__ */ i(d, { children: this.componentToRender() }) })
78
78
  }
79
79
  );
80
80
  }
@@ -4,26 +4,26 @@ import { ICON_BUTTON_CLASSNAME as S, ICON_BUTTON_CONTENT_CLASSNAME as B, BUTTON_
4
4
  import { TypographyElement as U, TypographyVariant as y } from "../Typography/types.js";
5
5
  import I from "../Typography/Typography.js";
6
6
  import { parseClassName as h } from "../../../utils/class-name-utils.js";
7
- import { parseBoolean as d } from "../../../utils/common/index.js";
8
- import { forwardRef as g } from "../../../external/preact/compat/dist/compat.module.js";
7
+ import { parseBoolean as $ } from "../../../utils/common/index.js";
8
+ import { forwardRef as d } from "../../../external/preact/compat/dist/compat.module.js";
9
9
  import { useMemo as p } from "../../../external/preact/hooks/dist/hooks.module.js";
10
- import { ButtonVariant as F } from "./types.js";
10
+ import { ButtonVariant as g } from "./types.js";
11
11
  import "./Button.scss.js";
12
- import { Fragment as V } from "preact";
13
- function $({
14
- variant: n = F.PRIMARY,
12
+ import { Fragment as k } from "../../../external/preact/dist/preact.module.js";
13
+ function F({
14
+ variant: n = g.PRIMARY,
15
15
  disabled: o = !1,
16
16
  onClick: T,
17
17
  classNameModifiers: l = [],
18
18
  iconLeft: a,
19
19
  iconRight: t,
20
20
  type: i = "button",
21
- children: m,
22
- className: s,
21
+ children: s,
22
+ className: m,
23
23
  iconButton: e = !1,
24
24
  ...f
25
25
  }, A) {
26
- const _ = p(() => h("", s) || "", [s]), c = p(() => d(o), [o]), { classes: N, click: u } = C(_, [...l, n], M, c, T);
26
+ const _ = p(() => h("", m) || "", [m]), c = p(() => $(o), [o]), { classes: N, click: u } = C(_, [...l, n], M, c, T);
27
27
  return /* @__PURE__ */ r(
28
28
  "button",
29
29
  {
@@ -33,15 +33,15 @@ function $({
33
33
  onClick: u,
34
34
  ref: A,
35
35
  ...f,
36
- children: e ? /* @__PURE__ */ r("div", { className: `${B}`, children: m }) : /* @__PURE__ */ r(V, { children: [
36
+ children: e ? /* @__PURE__ */ r("div", { className: `${B}`, children: s }) : /* @__PURE__ */ r(k, { children: [
37
37
  a && /* @__PURE__ */ r("span", { className: O, children: a }),
38
- /* @__PURE__ */ r(I, { className: E, el: U.SPAN, variant: y.BODY, stronger: !0, children: m }),
38
+ /* @__PURE__ */ r(I, { className: E, el: U.SPAN, variant: y.BODY, stronger: !0, children: s }),
39
39
  t && /* @__PURE__ */ r("span", { className: L, children: t })
40
40
  ] })
41
41
  }
42
42
  );
43
43
  }
44
- const q = g($);
44
+ const q = d(F);
45
45
  export {
46
46
  q as default
47
47
  };
@@ -1,9 +1,9 @@
1
1
  import { jsx as a } from "../../../../../external/preact/jsx-runtime/dist/jsxRuntime.module.js";
2
- import { memo as l } from "../../../../../external/preact/compat/dist/compat.module.js";
3
- import { isFunction as s } from "../../../../../utils/common/index.js";
2
+ import { memo as s } from "../../../../../external/preact/compat/dist/compat.module.js";
3
+ import { isFunction as l } from "../../../../../utils/common/index.js";
4
4
  import i from "../../calendar/facade/index.js";
5
- import { Fragment as c } from "preact";
6
- const e = ({ config: r, grid: { controls: t }, renderer: o }) => r.controls === i.controls.NONE || !s(o) ? null : /* @__PURE__ */ a(c, { children: t.map(([n, m]) => o(n, m)) }), x = l(e);
5
+ import { Fragment as c } from "../../../../../external/preact/dist/preact.module.js";
6
+ const e = ({ config: r, grid: { controls: t }, renderer: o }) => r.controls === i.controls.NONE || !l(o) ? null : /* @__PURE__ */ a(c, { children: t.map(([n, m]) => o(n, m)) }), x = s(e);
7
7
  export {
8
8
  x as default
9
9
  };
@@ -1,5 +1,5 @@
1
1
  import { jsx as d } from "../../../external/preact/jsx-runtime/dist/jsxRuntime.module.js";
2
- import { toChildArray as u, Fragment as _ } from "preact";
2
+ import { toChildArray as u, Fragment as _ } from "../../../external/preact/dist/preact.module.js";
3
3
  import l from "classnames";
4
4
  import "./DataGrid.scss.js";
5
5
  import { TableBody as h } from "./components/TableBody.js";
@@ -13,9 +13,9 @@ const S = Object.freeze({
13
13
  activeIndex: -1,
14
14
  index: -1
15
15
  });
16
- function g({ errorDisplay: e, ...a }) {
16
+ function s({ errorDisplay: e, ...a }) {
17
17
  var o, r, i;
18
- const f = u(a.children).find((t) => (t == null ? void 0 : t.type) === s), n = !a.loading && ((o = a.data) == null ? void 0 : o.length) === 0 && !a.error, y = m(() => !a.loading && n || a.error, [n, a.error, a.loading]);
18
+ const f = u(a.children).find((t) => (t == null ? void 0 : t.type) === g), n = !a.loading && ((o = a.data) == null ? void 0 : o.length) === 0 && !a.error, y = m(() => !a.loading && n || a.error, [n, a.error, a.loading]);
19
19
  return /* @__PURE__ */ d(
20
20
  "div",
21
21
  {
@@ -71,16 +71,16 @@ function k(e) {
71
71
  }
72
72
  ) : /* @__PURE__ */ d(h, { data: e.data, customCells: e.customCells, columns: e.columns }) });
73
73
  }
74
- g.Footer = s;
75
- function s({ children: e }) {
74
+ s.Footer = g;
75
+ function g({ children: e }) {
76
76
  return /* @__PURE__ */ d("div", { className: "adyen-fp-data-grid__footer", children: e });
77
77
  }
78
- g.defaultProps = {
78
+ s.defaultProps = {
79
79
  condensed: !1,
80
80
  outline: !0,
81
81
  scrollable: !0
82
82
  };
83
83
  export {
84
84
  S as INITIAL_STATE,
85
- g as default
85
+ s as default
86
86
  };
@@ -2,7 +2,7 @@ import { jsx as a } from "../../../../external/preact/jsx-runtime/dist/jsxRuntim
2
2
  import { TableCells as f } from "./TableCells.js";
3
3
  import { useCallback as o } from "../../../../external/preact/hooks/dist/hooks.module.js";
4
4
  import { useInteractiveDataGrid as d } from "../hooks/useInteractiveDataGrid.js";
5
- import { Fragment as i } from "preact";
5
+ import { Fragment as i } from "../../../../external/preact/dist/preact.module.js";
6
6
  const _ = ({
7
7
  data: e,
8
8
  columns: l,
@@ -1,7 +1,7 @@
1
1
  import { jsx as a } from "../../../../external/preact/jsx-runtime/dist/jsxRuntime.module.js";
2
2
  import s from "classnames";
3
3
  import "../DataGrid.scss.js";
4
- import { Fragment as m } from "preact";
4
+ import { Fragment as m } from "../../../../external/preact/dist/preact.module.js";
5
5
  const g = ({ columnsNumber: n, loading: t, emptyMessageDisplay: r }) => {
6
6
  const l = Array.from({ length: 10 }, (d, e) => e), o = Array.from({ length: n }, (d, e) => e);
7
7
  return /* @__PURE__ */ a(m, { children: [
@@ -1,11 +1,11 @@
1
1
  import { jsx as o } from "../../../../external/preact/jsx-runtime/dist/jsxRuntime.module.js";
2
- import { TableCells as n } from "./TableCells.js";
3
- import { Fragment as p } from "preact";
2
+ import { TableCells as s } from "./TableCells.js";
3
+ import { Fragment as n } from "../../../../external/preact/dist/preact.module.js";
4
4
  const f = ({
5
5
  data: r,
6
6
  columns: m,
7
7
  customCells: l
8
- }) => /* @__PURE__ */ o(p, { children: r == null ? void 0 : r.map((e) => /* @__PURE__ */ o("tr", { className: "adyen-fp-data-grid__row", children: /* @__PURE__ */ o(n, { columns: m, customCells: l, item: e }) }, e)) });
8
+ }) => /* @__PURE__ */ o(n, { children: r == null ? void 0 : r.map((e) => /* @__PURE__ */ o("tr", { className: "adyen-fp-data-grid__row", children: /* @__PURE__ */ o(s, { columns: m, customCells: l, item: e }) }, e)) });
9
9
  export {
10
10
  f as TableBody
11
11
  };
@@ -1,6 +1,6 @@
1
1
  import { jsx as n } from "../../../../external/preact/jsx-runtime/dist/jsxRuntime.module.js";
2
2
  import d from "../DataGridCell.js";
3
- import { Fragment as l } from "preact";
3
+ import { Fragment as l } from "../../../../external/preact/dist/preact.module.js";
4
4
  const o = ({
5
5
  columns: b,
6
6
  customCells: a,
@@ -7,11 +7,11 @@ import "./ErrorMessageDisplay.scss.js";
7
7
  import A from "../../../images/no-results.svg.js";
8
8
  import p from "../Button/Button.js";
9
9
  import E from "../../../core/Auth/useAuthContext.js";
10
- import { Fragment as _ } from "preact";
10
+ import { Fragment as _ } from "../../../external/preact/dist/preact.module.js";
11
11
  const h = {
12
12
  md: 680,
13
13
  lg: 1024
14
- }, j = ({
14
+ }, R = ({
15
15
  title: y,
16
16
  message: m,
17
17
  imageDesktop: i,
@@ -45,6 +45,6 @@ const h = {
45
45
  ] });
46
46
  };
47
47
  export {
48
- j as ErrorMessageDisplay,
48
+ R as ErrorMessageDisplay,
49
49
  h as IMAGE_BREAKPOINT_SIZES
50
50
  };
@@ -4,13 +4,13 @@ import { useState as R, useCallback as E, useRef as l, useEffect as T } from "..
4
4
  import "./ExpandableCard.scss.js";
5
5
  import x from "../SVGIcons/ChevronUp.js";
6
6
  import v from "../SVGIcons/ChevronDown.js";
7
- import { BASE_CLASS as I, CONTAINER_CLASS as d, CONTAINER_BUTTON_CLASS as b, CONTAINER_FILLED_CLASS as m, CONTAINER_OVERLAY_ID as p, CONTENT_CLASS as N, CONTENT_EXPANDABLE_CLASS as _, CHEVRON_CLASS as h, CONTAINER_OVERLAY_CLASS as B, CONTAINER_HIDDEN_CLASS as D } from "./constants.js";
8
- import g from "../../../core/Context/useCoreContext.js";
9
- import { useClickOutside as k } from "../../../hooks/element/useClickOutside.js";
7
+ import { BASE_CLASS as I, CONTAINER_CLASS as d, CONTAINER_BUTTON_CLASS as b, CONTAINER_FILLED_CLASS as m, CONTAINER_OVERLAY_ID as p, CONTENT_CLASS as N, CONTENT_EXPANDABLE_CLASS as _, CHEVRON_CLASS as h, CONTAINER_OVERLAY_CLASS as k, CONTAINER_HIDDEN_CLASS as B } from "./constants.js";
8
+ import D from "../../../core/Context/useCoreContext.js";
9
+ import { useClickOutside as g } from "../../../hooks/element/useClickOutside.js";
10
10
  import L from "../BaseButton/BaseButton.js";
11
- import { Fragment as y } from "preact";
11
+ import { Fragment as y } from "../../../external/preact/dist/preact.module.js";
12
12
  const H = ({ renderHeader: t, children: C, filled: o }) => {
13
- const { i18n: f } = g(), [a, u] = R(!1), r = E(() => u((n) => !n), [u]), A = l(null), i = l(!1), S = l(a), c = k(
13
+ const { i18n: f } = D(), [a, u] = R(!1), r = E(() => u((n) => !n), [u]), A = l(null), i = l(!1), S = l(a), c = g(
14
14
  void 0,
15
15
  E(() => {
16
16
  a && (r(), i.current = !0);
@@ -42,9 +42,9 @@ const H = ({ renderHeader: t, children: C, filled: o }) => {
42
42
  L,
43
43
  {
44
44
  id: p,
45
- className: s(d, B, {
45
+ className: s(d, k, {
46
46
  [m]: o,
47
- [D]: !a
47
+ [B]: !a
48
48
  }),
49
49
  disabled: !a,
50
50
  "aria-controls": p,
@@ -12,7 +12,7 @@ import { useMemo as v, useCallback as D, useEffect as E, useState as L } from ".
12
12
  import f from "../../../../../hooks/useBooleanState/useBooleanState.js";
13
13
  import O from "../../../FormFields/InputText.js";
14
14
  import "./BaseFilter.scss.js";
15
- import { Fragment as j } from "preact";
15
+ import { Fragment as j } from "../../../../../external/preact/dist/preact.module.js";
16
16
  const q = (d) => !d || z(d), R = (() => {
17
17
  const d = (e) => {
18
18
  const { editAction: t, name: y, onChange: c, onValueUpdated: l } = e, [a, o] = L(e.value), r = D(
@@ -39,7 +39,7 @@ const q = (d) => !d || z(d), R = (() => {
39
39
  r(m), g(n === null), h(s ? n !== e.value : !m);
40
40
  },
41
41
  [a, r, g, h, s, e.value]
42
- ), { commitAction: x, commitActionButtons: k, committing: A, resetCommitAction: V } = Y({
42
+ ), { commitAction: k, commitActionButtons: x, committing: A, resetCommitAction: V } = Y({
43
43
  applyDisabled: P || !I,
44
44
  resetDisabled: o
45
45
  }), [p, M] = v(() => {
@@ -107,7 +107,7 @@ const q = (d) => !d || z(d), R = (() => {
107
107
  t && /* @__PURE__ */ i(
108
108
  U,
109
109
  {
110
- actions: k,
110
+ actions: x,
111
111
  title: (C = e.title) == null ? void 0 : C.trim(),
112
112
  modifiers: ["filter"],
113
113
  open: t,
@@ -119,7 +119,7 @@ const q = (d) => !d || z(d), R = (() => {
119
119
  targetElement: b,
120
120
  disableFocusTrap: !1,
121
121
  containerSize: e.containerSize,
122
- children: S({ ...e, editAction: x, onValueUpdated: T })
122
+ children: S({ ...e, editAction: k, onValueUpdated: T })
123
123
  }
124
124
  )
125
125
  ] });
@@ -1,14 +1,14 @@
1
1
  import { jsx as f } from "../../../external/preact/jsx-runtime/dist/jsxRuntime.module.js";
2
2
  import { ARIA_ERROR_SUFFIX as h } from "../../../core/Errors/constants.js";
3
- import { hasOwnProperty as k } from "../../../utils/common/index.js";
3
+ import { hasOwnProperty as _ } from "../../../utils/common/index.js";
4
4
  import w from "classnames";
5
5
  import { forwardRef as P } from "../../../external/preact/compat/dist/compat.module.js";
6
6
  import { useCallback as r } from "../../../external/preact/hooks/dist/hooks.module.js";
7
7
  import "./FormFields.scss.js";
8
- import { Fragment as q } from "preact";
9
- function u({ onInput: a, onKeyUp: d, trimOnBlur: c, onBlurHandler: t, onBlur: e, onFocusHandler: s, errorMessage: l, ...p }, v) {
10
- const { autoCorrect: A, classNameModifiers: m, isInvalid: n, isValid: C, readonly: I = !1, spellCheck: O, type: y, uniqueId: o, isCollatingErrors: $, disabled: g } = p;
11
- k(p, "onChange") && console.error("Error: Form fields that rely on InputBase may not have an onChange property");
8
+ import { Fragment as q } from "../../../external/preact/dist/preact.module.js";
9
+ function u({ onInput: a, onKeyUp: d, trimOnBlur: c, onBlurHandler: t, onBlur: s, onFocusHandler: e, errorMessage: l, ...p }, v) {
10
+ const { autoCorrect: A, classNameModifiers: m, isInvalid: n, isValid: C, readonly: $ = !1, spellCheck: O, type: y, uniqueId: o, isCollatingErrors: I, disabled: g } = p;
11
+ _(p, "onChange") && console.error("Error: Form fields that rely on InputBase may not have an onChange property");
12
12
  const N = r(
13
13
  (i) => {
14
14
  a == null || a(i);
@@ -21,15 +21,15 @@ function u({ onInput: a, onKeyUp: d, trimOnBlur: c, onBlurHandler: t, onBlur: e,
21
21
  [d]
22
22
  ), b = r(
23
23
  (i) => {
24
- t == null || t(i), c && (i.target.value = i.target.value.trim()), e == null || e(i);
24
+ t == null || t(i), c && (i.target.value = i.target.value.trim()), s == null || s(i);
25
25
  },
26
- [e, t, c]
27
- ), x = r(
26
+ [s, t, c]
27
+ ), k = r(
28
28
  (i) => {
29
- s == null || s(i);
29
+ e == null || e(i);
30
30
  },
31
- [s]
32
- ), E = w(
31
+ [e]
32
+ ), x = w(
33
33
  "adyen-fp-input",
34
34
  [`adyen-fp-input--${y}`],
35
35
  p.className,
@@ -38,21 +38,21 @@ function u({ onInput: a, onKeyUp: d, trimOnBlur: c, onBlurHandler: t, onBlur: e,
38
38
  "adyen-fp-input--valid": C
39
39
  },
40
40
  m == null ? void 0 : m.map((i) => `adyen-fp-input--${i}`)
41
- ), { classNameModifiers: V, uniqueId: j, isInvalid: F, isValid: S, isCollatingErrors: T, ..._ } = p;
41
+ ), { classNameModifiers: V, uniqueId: j, isInvalid: F, isValid: S, isCollatingErrors: T, ...E } = p;
42
42
  return /* @__PURE__ */ f(q, { children: [
43
43
  /* @__PURE__ */ f(
44
44
  "input",
45
45
  {
46
46
  id: o,
47
- ..._,
47
+ ...E,
48
48
  type: y,
49
- className: E,
50
- readOnly: I,
51
- "aria-describedby": $ ? void 0 : `${o}${h}`,
49
+ className: x,
50
+ readOnly: $,
51
+ "aria-describedby": I ? void 0 : `${o}${h}`,
52
52
  "aria-invalid": n,
53
53
  onInput: N,
54
54
  onBlur: b,
55
- onFocus: x,
55
+ onFocus: k,
56
56
  onKeyUp: R,
57
57
  disabled: g,
58
58
  ref: v
@@ -9,7 +9,7 @@ import u from "../../../Typography/Typography.js";
9
9
  import B from "../../../SVGIcons/ChevronDown.js";
10
10
  import { TypographyElement as p, TypographyVariant as R } from "../../../Typography/types.js";
11
11
  import { DROPDOWN_BUTTON_CLASS as h, DROPDOWN_BUTTON_ACTIVE_CLASS as y, DROPDOWN_BUTTON_HAS_SELECTION_CLASS as A, DROPDOWN_BUTTON_READONLY_CLASS as E, DROPDOWN_BUTTON_INVALID_CLASS as P, DROPDOWN_BUTTON_VALID_CLASS as U, DROPDOWN_BUTTON_ICON_CLASS as g, DROPDOWN_BUTTON_TEXT_CLASS as x, DROPDOWN_BUTTON_MULTI_SELECT_COUNTER_CLASS as I, DROPDOWN_BUTTON_COLLAPSE_INDICATOR_CLASS as W, DROPDOWN_BUTTON_CLASSNAME as b } from "../constants.js";
12
- import { Fragment as w } from "preact";
12
+ import { Fragment as w } from "../../../../../external/preact/dist/preact.module.js";
13
13
  const V = ({
14
14
  active: e,
15
15
  disabled: m,
@@ -6,7 +6,7 @@ import N from "../../../SVGIcons/CheckedBox.js";
6
6
  import _ from "../../../SVGIcons/UncheckedBox.js";
7
7
  import C from "../../../SVGIcons/Checkmark.js";
8
8
  import { DROPDOWN_ELEMENT_CHECKBOX_CLASS as D, DROPDOWN_ELEMENT_CONTENT_CLASS as L, DROPDOWN_ELEMENT_CHECKMARK_CLASS as p, DROPDOWN_ELEMENT_CLASS as O, DROPDOWN_ELEMENT_ACTIVE_CLASS as S, DROPDOWN_ELEMENT_DISABLED_CLASS as f, DROPDOWN_ELEMENT_ICON_CLASS as A } from "../constants.js";
9
- import { Fragment as T } from "preact";
9
+ import { Fragment as T } from "../../../../../external/preact/dist/preact.module.js";
10
10
  const B = ({
11
11
  iconClassName: e,
12
12
  item: o,