@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
@@ -0,0 +1,309 @@
1
+ var A, h, J, w, G, K, $, Q, T = {}, X = [], oe = /acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i, F = Array.isArray;
2
+ function S(t, e) {
3
+ for (var _ in e)
4
+ t[_] = e[_];
5
+ return t;
6
+ }
7
+ function Y(t) {
8
+ var e = t.parentNode;
9
+ e && e.removeChild(t);
10
+ }
11
+ function re(t, e, _) {
12
+ var r, l, o, s = {};
13
+ for (o in e)
14
+ o == "key" ? r = e[o] : o == "ref" ? l = e[o] : s[o] = e[o];
15
+ if (arguments.length > 2 && (s.children = arguments.length > 3 ? A.call(arguments, 2) : _), typeof t == "function" && t.defaultProps != null)
16
+ for (o in t.defaultProps)
17
+ s[o] === void 0 && (s[o] = t.defaultProps[o]);
18
+ return M(t, s, r, l, null);
19
+ }
20
+ function M(t, e, _, r, l) {
21
+ var o = { type: t, props: e, key: _, ref: r, __k: null, __: null, __b: 0, __e: null, __d: void 0, __c: null, __h: null, constructor: void 0, __v: l ?? ++J };
22
+ return l == null && h.vnode != null && h.vnode(o), o;
23
+ }
24
+ function I(t) {
25
+ return t.children;
26
+ }
27
+ function N(t, e) {
28
+ this.props = t, this.context = e;
29
+ }
30
+ function E(t, e) {
31
+ if (e == null)
32
+ return t.__ ? E(t.__, t.__.__k.indexOf(t) + 1) : null;
33
+ for (var _; e < t.__k.length; e++)
34
+ if ((_ = t.__k[e]) != null && _.__e != null)
35
+ return _.__d || _.__e;
36
+ return typeof t.type == "function" ? E(t) : null;
37
+ }
38
+ function Z(t) {
39
+ var e, _;
40
+ if ((t = t.__) != null && t.__c != null) {
41
+ for (t.__e = t.__c.base = null, e = 0; e < t.__k.length; e++)
42
+ if ((_ = t.__k[e]) != null && _.__e != null) {
43
+ t.__e = t.__c.base = _.__e;
44
+ break;
45
+ }
46
+ return Z(t);
47
+ }
48
+ }
49
+ function B(t) {
50
+ (!t.__d && (t.__d = !0) && w.push(t) && !W.__r++ || G !== h.debounceRendering) && ((G = h.debounceRendering) || K)(W);
51
+ }
52
+ function W() {
53
+ var t, e, _, r, l, o, s, u, f;
54
+ for (w.sort($); t = w.shift(); )
55
+ t.__d && (e = w.length, r = void 0, l = void 0, o = void 0, u = (s = (_ = t).__v).__e, (f = _.__P) && (r = [], l = [], (o = S({}, s)).__v = s.__v + 1, R(f, s, o, _.__n, f.ownerSVGElement !== void 0, s.__h != null ? [u] : null, r, u ?? E(s), s.__h, l), ne(r, s, l), s.__e != u && Z(s)), w.length > e && w.sort($));
56
+ W.__r = 0;
57
+ }
58
+ function ee(t, e, _, r, l, o, s, u, f, x, d) {
59
+ var n, m, c, i, p, P, a, v, k, g = 0, y = r && r.__k || X, U = y.length, C = U, D = e.length;
60
+ for (_.__k = [], n = 0; n < D; n++)
61
+ (i = _.__k[n] = (i = e[n]) == null || typeof i == "boolean" || typeof i == "function" ? null : typeof i == "string" || typeof i == "number" || typeof i == "bigint" ? M(null, i, null, null, i) : F(i) ? M(I, { children: i }, null, null, null) : i.__b > 0 ? M(i.type, i.props, i.key, i.ref ? i.ref : null, i.__v) : i) != null ? (i.__ = _, i.__b = _.__b + 1, (v = ie(i, y, a = n + g, C)) === -1 ? c = T : (c = y[v] || T, y[v] = void 0, C--), R(t, i, c, l, o, s, u, f, x, d), p = i.__e, (m = i.ref) && c.ref != m && (c.ref && j(c.ref, null, i), d.push(m, i.__c || p, i)), p != null && (P == null && (P = p), (k = c === T || c.__v === null) ? v == -1 && g-- : v !== a && (v === a + 1 ? g++ : v > a ? C > D - a ? g += v - a : g-- : g = v < a && v == a - 1 ? v - a : 0), a = n + g, typeof i.type != "function" || v === a && c.__k !== i.__k ? typeof i.type == "function" || v === a && !k ? i.__d !== void 0 ? (f = i.__d, i.__d = void 0) : f = p.nextSibling : f = _e(t, p, f) : f = te(i, f, t), typeof _.type == "function" && (_.__d = f))) : (c = y[n]) && c.key == null && c.__e && (c.__e == f && (c.__ = r, f = E(c)), O(c, c, !1), y[n] = null);
62
+ for (_.__e = P, n = U; n--; )
63
+ y[n] != null && (typeof _.type == "function" && y[n].__e != null && y[n].__e == _.__d && (_.__d = y[n].__e.nextSibling), O(y[n], y[n]));
64
+ }
65
+ function te(t, e, _) {
66
+ for (var r, l = t.__k, o = 0; l && o < l.length; o++)
67
+ (r = l[o]) && (r.__ = t, e = typeof r.type == "function" ? te(r, e, _) : _e(_, r.__e, e));
68
+ return e;
69
+ }
70
+ function le(t, e) {
71
+ return e = e || [], t == null || typeof t == "boolean" || (F(t) ? t.some(function(_) {
72
+ le(_, e);
73
+ }) : e.push(t)), e;
74
+ }
75
+ function _e(t, e, _) {
76
+ return _ == null || _.parentNode !== t ? t.insertBefore(e, null) : e == _ && e.parentNode != null || t.insertBefore(e, _), e.nextSibling;
77
+ }
78
+ function ie(t, e, _, r) {
79
+ var l = t.key, o = t.type, s = _ - 1, u = _ + 1, f = e[_];
80
+ if (f === null || f && l == f.key && o === f.type)
81
+ return _;
82
+ if (r > (f != null ? 1 : 0))
83
+ for (; s >= 0 || u < e.length; ) {
84
+ if (s >= 0) {
85
+ if ((f = e[s]) && l == f.key && o === f.type)
86
+ return s;
87
+ s--;
88
+ }
89
+ if (u < e.length) {
90
+ if ((f = e[u]) && l == f.key && o === f.type)
91
+ return u;
92
+ u++;
93
+ }
94
+ }
95
+ return -1;
96
+ }
97
+ function se(t, e, _, r, l) {
98
+ var o;
99
+ for (o in _)
100
+ o === "children" || o === "key" || o in e || H(t, o, null, _[o], r);
101
+ for (o in e)
102
+ l && typeof e[o] != "function" || o === "children" || o === "key" || o === "value" || o === "checked" || _[o] === e[o] || H(t, o, e[o], _[o], r);
103
+ }
104
+ function z(t, e, _) {
105
+ e[0] === "-" ? t.setProperty(e, _ ?? "") : t[e] = _ == null ? "" : typeof _ != "number" || oe.test(e) ? _ : _ + "px";
106
+ }
107
+ function H(t, e, _, r, l) {
108
+ var o;
109
+ e:
110
+ if (e === "style")
111
+ if (typeof _ == "string")
112
+ t.style.cssText = _;
113
+ else {
114
+ if (typeof r == "string" && (t.style.cssText = r = ""), r)
115
+ for (e in r)
116
+ _ && e in _ || z(t.style, e, "");
117
+ if (_)
118
+ for (e in _)
119
+ r && _[e] === r[e] || z(t.style, e, _[e]);
120
+ }
121
+ else if (e[0] === "o" && e[1] === "n")
122
+ o = e !== (e = e.replace(/(PointerCapture)$|Capture$/, "$1")), e = e.toLowerCase() in t ? e.toLowerCase().slice(2) : e.slice(2), t.l || (t.l = {}), t.l[e + o] = _, _ ? r ? _.u = r.u : (_.u = Date.now(), t.addEventListener(e, o ? q : V, o)) : t.removeEventListener(e, o ? q : V, o);
123
+ else if (e !== "dangerouslySetInnerHTML") {
124
+ if (l)
125
+ e = e.replace(/xlink(H|:h)/, "h").replace(/sName$/, "s");
126
+ else if (e !== "width" && e !== "height" && e !== "href" && e !== "list" && e !== "form" && e !== "tabIndex" && e !== "download" && e !== "rowSpan" && e !== "colSpan" && e !== "role" && e in t)
127
+ try {
128
+ t[e] = _ ?? "";
129
+ break e;
130
+ } catch {
131
+ }
132
+ typeof _ == "function" || (_ == null || _ === !1 && e[4] !== "-" ? t.removeAttribute(e) : t.setAttribute(e, _));
133
+ }
134
+ }
135
+ function V(t) {
136
+ var e = this.l[t.type + !1];
137
+ if (t.t) {
138
+ if (t.t <= e.u)
139
+ return;
140
+ } else
141
+ t.t = Date.now();
142
+ return e(h.event ? h.event(t) : t);
143
+ }
144
+ function q(t) {
145
+ return this.l[t.type + !0](h.event ? h.event(t) : t);
146
+ }
147
+ function R(t, e, _, r, l, o, s, u, f, x) {
148
+ var d, n, m, c, i, p, P, a, v, k, g, y, U, C, D, b = e.type;
149
+ if (e.constructor !== void 0)
150
+ return null;
151
+ _.__h != null && (f = _.__h, u = e.__e = _.__e, e.__h = null, o = [u]), (d = h.__b) && d(e);
152
+ e:
153
+ if (typeof b == "function")
154
+ try {
155
+ if (a = e.props, v = (d = b.contextType) && r[d.__c], k = d ? v ? v.props.value : d.__ : r, _.__c ? P = (n = e.__c = _.__c).__ = n.__E : ("prototype" in b && b.prototype.render ? e.__c = n = new b(a, k) : (e.__c = n = new N(a, k), n.constructor = b, n.render = ue), v && v.sub(n), n.props = a, n.state || (n.state = {}), n.context = k, n.__n = r, m = n.__d = !0, n.__h = [], n._sb = []), n.__s == null && (n.__s = n.state), b.getDerivedStateFromProps != null && (n.__s == n.state && (n.__s = S({}, n.__s)), S(n.__s, b.getDerivedStateFromProps(a, n.__s))), c = n.props, i = n.state, n.__v = e, m)
156
+ b.getDerivedStateFromProps == null && n.componentWillMount != null && n.componentWillMount(), n.componentDidMount != null && n.__h.push(n.componentDidMount);
157
+ else {
158
+ if (b.getDerivedStateFromProps == null && a !== c && n.componentWillReceiveProps != null && n.componentWillReceiveProps(a, k), !n.__e && (n.shouldComponentUpdate != null && n.shouldComponentUpdate(a, n.__s, k) === !1 || e.__v === _.__v)) {
159
+ for (e.__v !== _.__v && (n.props = a, n.state = n.__s, n.__d = !1), e.__e = _.__e, e.__k = _.__k, e.__k.forEach(function(L) {
160
+ L && (L.__ = e);
161
+ }), g = 0; g < n._sb.length; g++)
162
+ n.__h.push(n._sb[g]);
163
+ n._sb = [], n.__h.length && s.push(n);
164
+ break e;
165
+ }
166
+ n.componentWillUpdate != null && n.componentWillUpdate(a, n.__s, k), n.componentDidUpdate != null && n.__h.push(function() {
167
+ n.componentDidUpdate(c, i, p);
168
+ });
169
+ }
170
+ if (n.context = k, n.props = a, n.__P = t, n.__e = !1, y = h.__r, U = 0, "prototype" in b && b.prototype.render) {
171
+ for (n.state = n.__s, n.__d = !1, y && y(e), d = n.render(n.props, n.state, n.context), C = 0; C < n._sb.length; C++)
172
+ n.__h.push(n._sb[C]);
173
+ n._sb = [];
174
+ } else
175
+ do
176
+ n.__d = !1, y && y(e), d = n.render(n.props, n.state, n.context), n.state = n.__s;
177
+ while (n.__d && ++U < 25);
178
+ n.state = n.__s, n.getChildContext != null && (r = S(S({}, r), n.getChildContext())), m || n.getSnapshotBeforeUpdate == null || (p = n.getSnapshotBeforeUpdate(c, i)), ee(t, F(D = d != null && d.type === I && d.key == null ? d.props.children : d) ? D : [D], e, _, r, l, o, s, u, f, x), n.base = e.__e, e.__h = null, n.__h.length && s.push(n), P && (n.__E = n.__ = null);
179
+ } catch (L) {
180
+ e.__v = null, (f || o != null) && (e.__e = u, e.__h = !!f, o[o.indexOf(u)] = null), h.__e(L, e, _);
181
+ }
182
+ else
183
+ o == null && e.__v === _.__v ? (e.__k = _.__k, e.__e = _.__e) : e.__e = ce(_.__e, e, _, r, l, o, s, f, x);
184
+ (d = h.diffed) && d(e);
185
+ }
186
+ function ne(t, e, _) {
187
+ for (var r = 0; r < _.length; r++)
188
+ j(_[r], _[++r], _[++r]);
189
+ h.__c && h.__c(e, t), t.some(function(l) {
190
+ try {
191
+ t = l.__h, l.__h = [], t.some(function(o) {
192
+ o.call(l);
193
+ });
194
+ } catch (o) {
195
+ h.__e(o, l.__v);
196
+ }
197
+ });
198
+ }
199
+ function ce(t, e, _, r, l, o, s, u, f) {
200
+ var x, d, n, m = _.props, c = e.props, i = e.type, p = 0;
201
+ if (i === "svg" && (l = !0), o != null) {
202
+ for (; p < o.length; p++)
203
+ if ((x = o[p]) && "setAttribute" in x == !!i && (i ? x.localName === i : x.nodeType === 3)) {
204
+ t = x, o[p] = null;
205
+ break;
206
+ }
207
+ }
208
+ if (t == null) {
209
+ if (i === null)
210
+ return document.createTextNode(c);
211
+ t = l ? document.createElementNS("http://www.w3.org/2000/svg", i) : document.createElement(i, c.is && c), o = null, u = !1;
212
+ }
213
+ if (i === null)
214
+ m === c || u && t.data === c || (t.data = c);
215
+ else {
216
+ if (o = o && A.call(t.childNodes), d = (m = _.props || T).dangerouslySetInnerHTML, n = c.dangerouslySetInnerHTML, !u) {
217
+ if (o != null)
218
+ for (m = {}, p = 0; p < t.attributes.length; p++)
219
+ m[t.attributes[p].name] = t.attributes[p].value;
220
+ (n || d) && (n && (d && n.__html == d.__html || n.__html === t.innerHTML) || (t.innerHTML = n && n.__html || ""));
221
+ }
222
+ if (se(t, c, m, l, u), n)
223
+ e.__k = [];
224
+ else if (ee(t, F(p = e.props.children) ? p : [p], e, _, r, l && i !== "foreignObject", o, s, o ? o[0] : _.__k && E(_, 0), u, f), o != null)
225
+ for (p = o.length; p--; )
226
+ o[p] != null && Y(o[p]);
227
+ u || ("value" in c && (p = c.value) !== void 0 && (p !== t.value || i === "progress" && !p || i === "option" && p !== m.value) && H(t, "value", p, m.value, !1), "checked" in c && (p = c.checked) !== void 0 && p !== t.checked && H(t, "checked", p, m.checked, !1));
228
+ }
229
+ return t;
230
+ }
231
+ function j(t, e, _) {
232
+ try {
233
+ typeof t == "function" ? t(e) : t.current = e;
234
+ } catch (r) {
235
+ h.__e(r, _);
236
+ }
237
+ }
238
+ function O(t, e, _) {
239
+ var r, l;
240
+ if (h.unmount && h.unmount(t), (r = t.ref) && (r.current && r.current !== t.__e || j(r, null, e)), (r = t.__c) != null) {
241
+ if (r.componentWillUnmount)
242
+ try {
243
+ r.componentWillUnmount();
244
+ } catch (o) {
245
+ h.__e(o, e);
246
+ }
247
+ r.base = r.__P = null, t.__c = void 0;
248
+ }
249
+ if (r = t.__k)
250
+ for (l = 0; l < r.length; l++)
251
+ r[l] && O(r[l], e, _ || typeof t.type != "function");
252
+ _ || t.__e == null || Y(t.__e), t.__ = t.__e = t.__d = void 0;
253
+ }
254
+ function ue(t, e, _) {
255
+ return this.constructor(t, _);
256
+ }
257
+ function fe(t, e, _) {
258
+ var r, l, o, s;
259
+ h.__ && h.__(t, e), l = (r = typeof _ == "function") ? null : _ && _.__k || e.__k, o = [], s = [], R(e, t = (!r && _ || e).__k = re(I, null, [t]), l || T, T, e.ownerSVGElement !== void 0, !r && _ ? [_] : l ? null : e.firstChild ? A.call(e.childNodes) : null, o, !r && _ ? _ : l ? l.__e : e.firstChild, r, s), ne(o, t, s);
260
+ }
261
+ function pe(t, e) {
262
+ var _ = { __c: e = "__cC" + Q++, __: t, Consumer: function(r, l) {
263
+ return r.children(l);
264
+ }, Provider: function(r) {
265
+ var l, o;
266
+ return this.getChildContext || (l = [], (o = {})[e] = this, this.getChildContext = function() {
267
+ return o;
268
+ }, this.shouldComponentUpdate = function(s) {
269
+ this.props.value !== s.value && l.some(function(u) {
270
+ u.__e = !0, B(u);
271
+ });
272
+ }, this.sub = function(s) {
273
+ l.push(s);
274
+ var u = s.componentWillUnmount;
275
+ s.componentWillUnmount = function() {
276
+ l.splice(l.indexOf(s), 1), u && u.call(s);
277
+ };
278
+ }), r.children;
279
+ } };
280
+ return _.Provider.__ = _.Consumer.contextType = _;
281
+ }
282
+ A = X.slice, h = { __e: function(t, e, _, r) {
283
+ for (var l, o, s; e = e.__; )
284
+ if ((l = e.__c) && !l.__)
285
+ try {
286
+ if ((o = l.constructor) && o.getDerivedStateFromError != null && (l.setState(o.getDerivedStateFromError(t)), s = l.__d), l.componentDidCatch != null && (l.componentDidCatch(t, r || {}), s = l.__d), s)
287
+ return l.__E = l;
288
+ } catch (u) {
289
+ t = u;
290
+ }
291
+ throw t;
292
+ } }, J = 0, N.prototype.setState = function(t, e) {
293
+ var _;
294
+ _ = this.__s != null && this.__s !== this.state ? this.__s : this.__s = S({}, this.state), typeof t == "function" && (t = t(S({}, _), this.props)), t && S(_, t), t != null && this.__v && (e && this._sb.push(e), B(this));
295
+ }, N.prototype.forceUpdate = function(t) {
296
+ this.__v && (this.__e = !0, t && this.__h.push(t), B(this));
297
+ }, N.prototype.render = I, w = [], K = typeof Promise == "function" ? Promise.prototype.then.bind(Promise.resolve()) : setTimeout, $ = function(t, e) {
298
+ return t.__v.__b - e.__v.__b;
299
+ }, W.__r = 0, Q = 0;
300
+ export {
301
+ N as Component,
302
+ I as Fragment,
303
+ pe as createContext,
304
+ re as createElement,
305
+ re as h,
306
+ h as options,
307
+ fe as render,
308
+ le as toChildArray
309
+ };
@@ -1,4 +1,4 @@
1
- import { options as r } from "preact";
1
+ import { options as r } from "../../dist/preact.module.js";
2
2
  var s, o, d, A, l = 0, U = [], p = [], F = r.__b, b = r.__r, g = r.diffed, q = r.__c, C = r.unmount;
3
3
  function v(_, n) {
4
4
  r.__h && r.__h(o, _, l || n), l = 0;
@@ -75,7 +75,7 @@ function P(_, n) {
75
75
  return _;
76
76
  }, n);
77
77
  }
78
- function D(_) {
78
+ function $(_) {
79
79
  var n = o.context[_.__c], t = v(s++, 9);
80
80
  return t.c = _, n ? (t.__ == null && (t.__ = !0, n.sub(o)), n.props.value) : _.__;
81
81
  }
@@ -150,7 +150,7 @@ function k(_, n) {
150
150
  }
151
151
  export {
152
152
  P as useCallback,
153
- D as useContext,
153
+ $ as useContext,
154
154
  I as useEffect,
155
155
  M as useImperativeHandle,
156
156
  W as useLayoutEffect,
@@ -1,11 +1,11 @@
1
- import { options as e } from "preact";
2
- import { Fragment as x } from "preact";
1
+ import { options as e } from "../../dist/preact.module.js";
2
+ import { Fragment as x } from "../../dist/preact.module.js";
3
3
  var i = 0;
4
- function v(n, s, f, a, l, u) {
4
+ function v(n, s, l, a, f, u) {
5
5
  var _, o, r = {};
6
6
  for (o in s)
7
7
  o == "ref" ? _ = s[o] : r[o] = s[o];
8
- var t = { type: n, props: r, key: f, ref: _, __k: null, __: null, __b: 0, __e: null, __d: void 0, __c: null, __h: null, constructor: void 0, __v: --i, __source: l, __self: u };
8
+ var t = { type: n, props: r, key: l, ref: _, __k: null, __: null, __b: 0, __e: null, __d: void 0, __c: null, __h: null, constructor: void 0, __v: --i, __source: f, __self: u };
9
9
  if (typeof n == "function" && (_ = n.defaultProps))
10
10
  for (o in _)
11
11
  r[o] === void 0 && (r[o] = _[o]);
@@ -1,29 +1,35 @@
1
- import { useState as b, useCallback as t, useMemo as k } from "../../external/preact/hooks/dist/hooks.module.js";
2
- import { hasCallback as m } from "./types.js";
3
- function D(l) {
4
- const [u, c] = b(null), d = t(
5
- (e) => e && m(l[e.selection.type]) ? {
6
- callback: l != null && l.callback ? (r) => {
7
- var a, s;
8
- return (s = (a = l[e.selection.type]) == null ? void 0 : a.callback) == null ? void 0 : s.call(a, { showModal: () => c(e), ...r });
9
- } : () => c(e)
10
- } : (c(e), {}),
1
+ import { useState as f, useCallback as u, useMemo as h } from "../../external/preact/hooks/dist/hooks.module.js";
2
+ import { hasCallback as k } from "./types.js";
3
+ function o(l) {
4
+ const [n, r] = f(null), d = u(
5
+ (e) => {
6
+ var c;
7
+ return e && k(l[e.selection.type]) ? {
8
+ callback: (c = l == null ? void 0 : l[e.selection.type]) != null && c.callback ? (a) => {
9
+ var s, t;
10
+ return (t = (s = l[e.selection.type]) == null ? void 0 : s.callback) == null ? void 0 : t.call(s, { showModal: () => r(e), ...a });
11
+ } : () => {
12
+ var a;
13
+ return ((a = l[e.selection.type]) == null ? void 0 : a.showDetails) && r(e);
14
+ }
15
+ } : (r(e), {});
16
+ },
11
17
  [l]
12
- ), n = t(() => c(null), []), f = k(() => {
18
+ ), i = u(() => r(null), []), b = h(() => {
13
19
  const e = {};
14
- for (const r in l) {
15
- const a = l[r];
16
- e[r] = !(a != null && a.showDetails.some((s) => s === !1)) || !!a.callback;
20
+ for (const c in l) {
21
+ const a = l[c];
22
+ e[c] = !(a != null && a.showDetails) || !!a.callback;
17
23
  }
18
24
  return e;
19
25
  }, [l]);
20
26
  return {
21
- selectedDetail: u,
27
+ selectedDetail: n,
22
28
  updateDetails: d,
23
- detailsToShow: f,
24
- resetDetails: n
29
+ detailsToShow: b,
30
+ resetDetails: i
25
31
  };
26
32
  }
27
33
  export {
28
- D as default
34
+ o as default
29
35
  };
package/dist/es/index.js CHANGED
@@ -1,33 +1,33 @@
1
1
  import "./components/shared.scss.js";
2
2
  import "./style/index.scss.js";
3
- import r from "./core/core.js";
4
- import { all_locales as l, ar as p, cs_CZ as m, da_DK as c, de_DE as f, el_GR as R, en_US as u, es_ES as T, fi_FI as d, fr_FR as x, hr_HR as C, hu_HU as P, it_IT as S, ja_JP as h, ko_KR as F, nl_NL as z, no_NO as D, pl_PL as E, pt_BR as I, pt_PT as K, ro_RO as N, ru_RU as U, sk_SK as k, sl_SI as w, sv_SE as y, zh_CN as H, zh_TW as L } from "./core/Localization/translations/index.js";
3
+ import o from "./core/core.js";
4
+ import { all_locales as l, ar as p, cs_CZ as c, da_DK as f, de_DE as m, el_GR as R, en_US as u, es_ES as T, fi_FI as d, fr_FR as x, hr_HR as P, hu_HU as S, it_IT as h, ja_JP as C, ko_KR as F, nl_NL as z, no_NO as D, pl_PL as E, pt_BR as I, pt_PT as K, ro_RO as N, ru_RU as U, sk_SK as k, sl_SI as w, sv_SE as y, zh_CN as H, zh_TW as L } from "./core/Localization/translations/index.js";
5
5
  import { default as j } from "./components/external/Transactions/TransactionsOverviewElement.js";
6
6
  import { TransactionFilterParam as A } from "./components/external/Transactions/types.js";
7
7
  import { default as G } from "./components/external/TransactionDetails/TransactionDetails.js";
8
- async function n(o) {
9
- return await new r(o).initialize();
8
+ async function n(r) {
9
+ return await new o(r).initialize();
10
10
  }
11
11
  export {
12
12
  n as AdyenFP,
13
- r as Core,
13
+ o as Core,
14
14
  A as TransactionFilterParam,
15
15
  j as TransactionsComponent,
16
- G as TransactionsDetailsComponent,
16
+ G as TransactionsDetails,
17
17
  l as all_locales,
18
18
  p as ar,
19
- m as cs_CZ,
20
- c as da_DK,
21
- f as de_DE,
19
+ c as cs_CZ,
20
+ f as da_DK,
21
+ m as de_DE,
22
22
  R as el_GR,
23
23
  u as en_US,
24
24
  T as es_ES,
25
25
  d as fi_FI,
26
26
  x as fr_FR,
27
- C as hr_HR,
28
- P as hu_HU,
29
- S as it_IT,
30
- h as ja_JP,
27
+ P as hr_HR,
28
+ S as hu_HU,
29
+ h as it_IT,
30
+ C as ja_JP,
31
31
  F as ko_KR,
32
32
  z as nl_NL,
33
33
  D as no_NO,