@adyen/adyen-platform-experience-web 1.0.0-beta.2 → 1.0.0-beta.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (202) hide show
  1. package/dist/ModalContent-387502da.js +2 -0
  2. package/dist/{ModalContent-88fdb6f4.js.map → ModalContent-387502da.js.map} +1 -1
  3. package/dist/cjs/index.js +1 -1
  4. package/dist/es/components/external/TransactionDetails/TransactionDetails.js +6 -6
  5. package/dist/es/components/external/TransactionDetails/components/TransactionData.js +3 -3
  6. package/dist/es/components/external/TransactionDetails/components/TransactionDetails.js +6 -6
  7. package/dist/es/components/external/TransactionsOverview/components/AmountSkeleton/AmountSkeleton.js +2 -2
  8. package/dist/es/components/external/TransactionsOverview/components/BalanceAccountSelector/useBalanceAccountSelection.js +7 -7
  9. package/dist/es/components/external/TransactionsOverview/components/Balances/Balances.js +9 -9
  10. package/dist/es/components/external/TransactionsOverview/components/ModalContent.js +4 -4
  11. package/dist/es/components/external/TransactionsOverview/components/MultiSelectionFilter/MultiSelectionFilter.js +6 -6
  12. package/dist/es/components/external/TransactionsOverview/components/MultiSelectionFilter/useMultiSelectionFilter/useMultiSelectionFilter.js +7 -7
  13. package/dist/es/components/external/TransactionsOverview/components/SummaryItem/SummaryItem.js +15 -15
  14. package/dist/es/components/external/TransactionsOverview/components/SummaryItem/SummaryItemLabel.js +3 -3
  15. package/dist/es/components/external/TransactionsOverview/components/TransactionTotalItem/TransactionTotalItem.js +6 -6
  16. package/dist/es/components/external/TransactionsOverview/components/TransactionTotals/TotalsCard.js +7 -7
  17. package/dist/es/components/external/TransactionsOverview/components/TransactionTotals/TransactionTotals.js +31 -31
  18. package/dist/es/components/external/TransactionsOverview/components/TransactionsDisplay/TransactionsDisplay.js +15 -15
  19. package/dist/es/components/external/TransactionsOverview/components/TransactionsOverview/TransactionsOverview.js +6 -6
  20. package/dist/es/components/external/TransactionsOverview/components/TransactionsOverviewContainer/TransactionsOverviewContainer.js +21 -21
  21. package/dist/es/components/external/TransactionsOverview/components/TransactionsOverviewDateFilter.js +21 -21
  22. package/dist/es/components/external/TransactionsOverview/components/TransactionsTable/TransactionsTable.js +30 -30
  23. package/dist/es/components/external/TransactionsOverview/components/utils.js +1 -1
  24. package/dist/es/components/external/TransactionsOverview/hooks/useMaxWidths.js +4 -4
  25. package/dist/es/components/external/UIElement.js +4 -4
  26. package/dist/es/components/internal/BaseButton/BaseButton.js +11 -11
  27. package/dist/es/components/internal/BaseList/BaseList.js +2 -2
  28. package/dist/es/components/internal/Button/Button.js +9 -9
  29. package/dist/es/components/internal/Button/hooks/useButton.js +2 -2
  30. package/dist/es/components/internal/Calendar/components/CalendarControls/CalendarControls.js +2 -2
  31. package/dist/es/components/internal/Calendar/components/CalendarGrid/CalendarGridDayOfWeek.js +4 -4
  32. package/dist/es/components/internal/Calendar/hooks/useCalendar.js +13 -13
  33. package/dist/es/components/internal/Calendar/hooks/useTimezone.js +2 -2
  34. package/dist/es/components/internal/DataGrid/DataGrid.js +6 -6
  35. package/dist/es/components/internal/DataGrid/components/InteractiveBody.js +8 -8
  36. package/dist/es/components/internal/DataGrid/components/TableBody.js +5 -5
  37. package/dist/es/components/internal/DataGrid/components/TableCells.js +2 -2
  38. package/dist/es/components/internal/DataGrid/hooks/useInteractiveDataGrid.js +2 -2
  39. package/dist/es/components/internal/DatePicker/DatePicker.js +9 -9
  40. package/dist/es/components/internal/DatePicker/components/TimeRangeSelector/TimeRangeSelector.js +9 -9
  41. package/dist/es/components/internal/DatePicker/components/TimeRangeSelector/useTimeRangeSelection.js +29 -29
  42. package/dist/es/components/internal/ErrorMessageDisplay/ErrorMessageDisplay.js +10 -10
  43. package/dist/es/components/internal/ExpandableCard/ExpandableCard.js +14 -14
  44. package/dist/es/components/internal/FilterBar/FilterBar.js +12 -12
  45. package/dist/es/components/internal/FilterBar/components/FilterButton/FilterButton.js +8 -8
  46. package/dist/es/components/internal/FilterBar/filters/AmountFilter/AmountFilter.js +26 -26
  47. package/dist/es/components/internal/FilterBar/filters/AmountFilter/RangeSelection.js +3 -3
  48. package/dist/es/components/internal/FilterBar/filters/BaseFilter/BaseFilter.js +27 -27
  49. package/dist/es/components/internal/FilterBar/filters/DateFilter/DateFilter.js +17 -17
  50. package/dist/es/components/internal/FormFields/InputBase.js +16 -16
  51. package/dist/es/components/internal/FormFields/InputText.js +2 -2
  52. package/dist/es/components/internal/FormFields/Select/Select.js +27 -27
  53. package/dist/es/components/internal/FormFields/Select/components/SelectButton.js +16 -16
  54. package/dist/es/components/internal/FormFields/Select/components/SelectList.js +21 -21
  55. package/dist/es/components/internal/FormFields/Select/components/SelectListItem.js +9 -9
  56. package/dist/es/components/internal/FormFields/Select/hooks/useSelect.js +7 -7
  57. package/dist/es/components/internal/Image/Image.js +2 -2
  58. package/dist/es/components/internal/Img/Img.js +4 -4
  59. package/dist/es/components/internal/Modal/Modal.js +16 -16
  60. package/dist/es/components/internal/Pagination/Pagination.js +4 -4
  61. package/dist/es/components/internal/Pagination/hooks/usePageLimit.js +2 -2
  62. package/dist/es/components/internal/Pagination/hooks/usePaginatedRecords.js +42 -44
  63. package/dist/es/components/internal/Pagination/hooks/usePagination.js +15 -15
  64. package/dist/es/components/internal/Popover/Popover.js +31 -31
  65. package/dist/es/components/internal/Popover/PopoverTitle/PopoverTitle.js +2 -2
  66. package/dist/es/components/internal/SVGIcons/ChevronLeft.js +3 -3
  67. package/dist/es/components/internal/SVGIcons/ChevronRight.js +3 -3
  68. package/dist/es/components/internal/SVGIcons/ChevronUp.js +2 -2
  69. package/dist/es/components/internal/SVGIcons/Filter.js +2 -2
  70. package/dist/es/components/internal/Tag/Tag.js +3 -3
  71. package/dist/es/components/internal/Tooltip/Tooltip.js +3 -3
  72. package/dist/es/components/internal/Typography/Typography.js +2 -2
  73. package/dist/es/core/Auth/AuthProvider.js +6 -6
  74. package/dist/es/core/Context/CoreProvider.js +4 -4
  75. package/dist/es/core/Localization/utils.js +30 -30
  76. package/dist/es/core/Session/Session.js +1 -1
  77. package/dist/es/core/core.js +9 -9
  78. package/dist/es/external/preact/compat/dist/compat.module.js +86 -86
  79. package/dist/es/external/preact/dist/preact.module.js +241 -234
  80. package/dist/es/external/preact/hooks/dist/hooks.module.js +86 -84
  81. package/dist/es/external/preact/jsx-runtime/dist/jsxRuntime.module.js +5 -5
  82. package/dist/es/hooks/element/useClickOutside.js +2 -2
  83. package/dist/es/hooks/element/useDetachedRender.js +2 -2
  84. package/dist/es/hooks/element/useFocusCursor.js +2 -2
  85. package/dist/es/hooks/element/useFocusTrap.js +2 -2
  86. package/dist/es/hooks/element/usePopoverPositioner.js +27 -27
  87. package/dist/es/hooks/useCommitAction/useCommitAction.js +2 -2
  88. package/dist/es/hooks/useFetch/useFetch.js +1 -1
  89. package/dist/es/hooks/useModalDetails/useModalDetails.js +4 -4
  90. package/dist/es/hooks/useReactiveState/useReactiveState.js +10 -10
  91. package/dist/es/hooks/useSetupEndpoint/useSetupEndpoint.js +4 -4
  92. package/dist/es/utils/SessionStorage.js +31 -0
  93. package/dist/index-8daceaea.js +12 -0
  94. package/dist/index-8daceaea.js.map +1 -0
  95. package/dist/types/components/external/TransactionDetails/components/TransactionData.d.ts +2 -2
  96. package/dist/types/components/external/TransactionDetails/components/TransactionData.d.ts.map +1 -1
  97. package/dist/types/components/external/TransactionDetails/components/TransactionDataSkeleton.d.ts +2 -2
  98. package/dist/types/components/external/TransactionDetails/components/TransactionDataSkeleton.d.ts.map +1 -1
  99. package/dist/types/components/external/TransactionsOverview/components/MultiSelectionFilter/MultiSelectionFilter.d.ts +1 -5
  100. package/dist/types/components/external/TransactionsOverview/components/MultiSelectionFilter/MultiSelectionFilter.d.ts.map +1 -1
  101. package/dist/types/components/external/TransactionsOverview/components/MultiSelectionFilter/useMultiSelectionFilter/useMultiSelectionFilter.d.ts +1 -1
  102. package/dist/types/components/external/TransactionsOverview/components/MultiSelectionFilter/useMultiSelectionFilter/useMultiSelectionFilter.d.ts.map +1 -1
  103. package/dist/types/components/external/TransactionsOverview/components/MultiSelectionFilter/useMultiSelectionFilter/utils.d.ts.map +1 -1
  104. package/dist/types/components/external/TransactionsOverview/components/TransactionListError/TransactionListError.d.ts +1 -1
  105. package/dist/types/components/external/TransactionsOverview/components/TransactionListError/TransactionListError.d.ts.map +1 -1
  106. package/dist/types/components/external/TransactionsOverview/components/TransactionsOverview/TransactionsOverview.d.ts.map +1 -1
  107. package/dist/types/components/external/TransactionsOverview/components/utils.d.ts +1 -1
  108. package/dist/types/components/external/TransactionsOverview/hooks/useMaxWidths.d.ts.map +1 -1
  109. package/dist/types/components/external/TransactionsOverview/hooks/useTransactionsOverviewMultiSelectionFilters.d.ts +2 -2
  110. package/dist/types/components/internal/Button/constants.d.ts +7 -7
  111. package/dist/types/components/internal/Button/constants.d.ts.map +1 -1
  112. package/dist/types/components/internal/Calendar/calendar/shared/indexed/index.d.ts.map +1 -1
  113. package/dist/types/components/internal/Calendar/calendar/timerange/utils.d.ts +1 -1
  114. package/dist/types/components/internal/Calendar/calendar/timerange/utils.d.ts.map +1 -1
  115. package/dist/types/components/internal/Calendar/components/CalendarGrid/utils.d.ts +2 -2
  116. package/dist/types/components/internal/Calendar/components/CalendarGrid/utils.d.ts.map +1 -1
  117. package/dist/types/components/internal/CopyText/CopyText.d.ts.map +1 -1
  118. package/dist/types/components/internal/DataGrid/components/InteractiveBody.d.ts.map +1 -1
  119. package/dist/types/components/internal/DataGrid/components/SkeletonBody.d.ts +1 -1
  120. package/dist/types/components/internal/DataGrid/components/SkeletonBody.d.ts.map +1 -1
  121. package/dist/types/components/internal/DataGrid/components/TableBody.d.ts +1 -1
  122. package/dist/types/components/internal/DataGrid/components/TableBody.d.ts.map +1 -1
  123. package/dist/types/components/internal/DataGrid/components/TableCells.d.ts +1 -1
  124. package/dist/types/components/internal/DataGrid/components/TableCells.d.ts.map +1 -1
  125. package/dist/types/components/internal/DataGrid/hooks/useInteractiveDataGrid.d.ts.map +1 -1
  126. package/dist/types/components/internal/DatePicker/components/TimeRangeSelector/TimeRangeSelector.d.ts +1 -1
  127. package/dist/types/components/internal/DatePicker/components/TimeRangeSelector/TimeRangeSelector.d.ts.map +1 -1
  128. package/dist/types/components/internal/FormFields/Select/Select.d.ts.map +1 -1
  129. package/dist/types/components/internal/FormFields/Select/components/SelectButton.d.ts.map +1 -1
  130. package/dist/types/components/internal/FormFields/Select/components/SelectListItem.d.ts +1 -3
  131. package/dist/types/components/internal/FormFields/Select/components/SelectListItem.d.ts.map +1 -1
  132. package/dist/types/components/internal/FormFields/Select/constants.d.ts +21 -21
  133. package/dist/types/components/internal/FormFields/Select/constants.d.ts.map +1 -1
  134. package/dist/types/components/internal/FormFields/Select/hooks/useSelect.d.ts +1 -1
  135. package/dist/types/components/internal/FormFields/Select/hooks/useSelect.d.ts.map +1 -1
  136. package/dist/types/components/internal/FormFields/index.d.ts +1 -1
  137. package/dist/types/components/internal/FormFields/index.d.ts.map +1 -1
  138. package/dist/types/components/internal/Pagination/hooks/useCursorPaginatedRecords.d.ts.map +1 -1
  139. package/dist/types/components/internal/Pagination/hooks/useOffsetPaginatedRecords.d.ts.map +1 -1
  140. package/dist/types/components/internal/Pagination/hooks/usePaginatedRecords.d.ts.map +1 -1
  141. package/dist/types/components/internal/Pagination/hooks/usePaginatedRecordsFilters.d.ts.map +1 -1
  142. package/dist/types/components/internal/Pagination/hooks/usePagination.d.ts +1 -1
  143. package/dist/types/components/internal/Pagination/hooks/usePagination.d.ts.map +1 -1
  144. package/dist/types/components/internal/Pagination/types.d.ts +5 -1
  145. package/dist/types/components/internal/Pagination/types.d.ts.map +1 -1
  146. package/dist/types/components/internal/Popover/constants.d.ts +6 -6
  147. package/dist/types/components/internal/Popover/constants.d.ts.map +1 -1
  148. package/dist/types/components/internal/Tooltip/useTooltipListeners.d.ts.map +1 -1
  149. package/dist/types/components/types.d.ts +2 -0
  150. package/dist/types/components/types.d.ts.map +1 -1
  151. package/dist/types/core/Localization/amount/amount-util.d.ts +28 -0
  152. package/dist/types/core/Localization/amount/amount-util.d.ts.map +1 -1
  153. package/dist/types/core/Localization/datetime/restamper/utils.d.ts.map +1 -1
  154. package/dist/types/core/Localization/localization-utils.d.ts.map +1 -1
  155. package/dist/types/core/Localization/utils.d.ts +468 -3
  156. package/dist/types/core/Localization/utils.d.ts.map +1 -1
  157. package/dist/types/core/core.d.ts +19 -0
  158. package/dist/types/core/core.d.ts.map +1 -1
  159. package/dist/types/core/types.d.ts +5 -0
  160. package/dist/types/core/types.d.ts.map +1 -1
  161. package/dist/types/hooks/element/useClickOutside.d.ts +1 -1
  162. package/dist/types/hooks/element/useClickOutside.d.ts.map +1 -1
  163. package/dist/types/hooks/element/useDetachedRender.d.ts.map +1 -1
  164. package/dist/types/hooks/element/useFocusTrap.d.ts.map +1 -1
  165. package/dist/types/hooks/useImageUrl/useImageUrl.d.ts.map +1 -1
  166. package/dist/types/hooks/useModalDetails/useModalDetails.d.ts.map +1 -1
  167. package/dist/types/hooks/useMounted/useMounted.d.ts +1 -1
  168. package/dist/types/hooks/useMounted/useMounted.d.ts.map +1 -1
  169. package/dist/types/hooks/useReactiveState/useReactiveState.d.ts.map +1 -1
  170. package/dist/types/hooks/useReflex/core/reflex.d.ts.map +1 -1
  171. package/dist/types/hooks/useReflex/core/utils.d.ts.map +1 -1
  172. package/dist/types/hooks/useReflex/hooks/useReflex.d.ts.map +1 -1
  173. package/dist/types/hooks/useSessionAwareRequest/useSessionAwareRequest.d.ts.map +1 -1
  174. package/dist/types/hooks/useSetupEndpoint/useSetupEndpoint.d.ts +1 -1
  175. package/dist/types/hooks/useSetupEndpoint/useSetupEndpoint.d.ts.map +1 -1
  176. package/dist/types/types/models/openapi/BalanceAccountsResource.d.ts +104 -0
  177. package/dist/types/types/models/openapi/BalanceAccountsResource.d.ts.map +1 -0
  178. package/dist/types/types/models/openapi/SetupResource.d.ts +59 -0
  179. package/dist/types/types/models/openapi/SetupResource.d.ts.map +1 -0
  180. package/dist/types/types/models/openapi/TransactionsResource.d.ts +198 -0
  181. package/dist/types/types/models/openapi/TransactionsResource.d.ts.map +1 -0
  182. package/dist/types/types/models/openapi/endpoints.d.ts +11 -0
  183. package/dist/types/types/models/openapi/endpoints.d.ts.map +1 -0
  184. package/dist/types/utils/SessionStorage.d.ts +11 -0
  185. package/dist/types/utils/SessionStorage.d.ts.map +1 -0
  186. package/dist/types/utils/common/index.d.ts +2 -2
  187. package/dist/types/utils/common/index.d.ts.map +1 -1
  188. package/dist/types/utils/fixedForwardRef.d.ts +3 -3
  189. package/dist/types/utils/fixedForwardRef.d.ts.map +1 -1
  190. package/dist/types/utils/watchable/core/Watchable.d.ts +5 -3
  191. package/dist/types/utils/watchable/core/Watchable.d.ts.map +1 -1
  192. package/dist/types/utils/watchable/core/helpers.d.ts +4 -2
  193. package/dist/types/utils/watchable/core/helpers.d.ts.map +1 -1
  194. package/dist/types/utils/watchable/core/syncEffect.d.ts +1 -1
  195. package/dist/types/utils/watchable/core/syncEffect.d.ts.map +1 -1
  196. package/package.json +5 -5
  197. package/dist/ModalContent-88fdb6f4.js +0 -2
  198. package/dist/es/utils/Storage.js +0 -31
  199. package/dist/index-7e2df524.js +0 -12
  200. package/dist/index-7e2df524.js.map +0 -1
  201. package/dist/types/utils/Storage.d.ts +0 -11
  202. package/dist/types/utils/Storage.d.ts.map +0 -1
@@ -1,24 +1,24 @@
1
- import { options as r } from "../../dist/preact.module.js";
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
- function v(_, n) {
4
- r.__h && r.__h(o, _, l || n), l = 0;
1
+ import { options as S } from "../../dist/preact.module.js";
2
+ var s, o, d, A, l = 0, T = [], p = [], n = S, F = n.__b, k = n.__r, q = n.diffed, C = n.__c, b = n.unmount, g = n.__;
3
+ function v(_, u) {
4
+ n.__h && n.__h(o, _, l || u), l = 0;
5
5
  var t = o.__H || (o.__H = { __: [], __h: [] });
6
6
  return _ >= t.__.length && t.__.push({ __V: p }), t.__[_];
7
7
  }
8
- function B(_) {
9
- return l = 1, S(k, _);
8
+ function D(_) {
9
+ return l = 1, W(P, _);
10
10
  }
11
- function S(_, n, t) {
12
- var u = v(s++, 2);
13
- if (u.t = _, !u.__c && (u.__ = [t ? t(n) : k(void 0, n), function(i) {
14
- var c = u.__N ? u.__N[0] : u.__[0], f = u.t(c, i);
15
- c !== f && (u.__N = [f, u.__[1]], u.__c.setState({}));
16
- }], u.__c = o, !o.u)) {
11
+ function W(_, u, t) {
12
+ var r = v(s++, 2);
13
+ if (r.t = _, !r.__c && (r.__ = [t ? t(u) : P(void 0, u), function(i) {
14
+ var c = r.__N ? r.__N[0] : r.__[0], f = r.t(c, i);
15
+ c !== f && (r.__N = [f, r.__[1]], r.__c.setState({}));
16
+ }], r.__c = o, !o.u)) {
17
17
  var a = function(i, c, f) {
18
- if (!u.__c.__H)
18
+ if (!r.__c.__H)
19
19
  return !0;
20
- var m = u.__c.__H.__.filter(function(e) {
21
- return e.__c;
20
+ var m = r.__c.__H.__.filter(function(e) {
21
+ return !!e.__c;
22
22
  });
23
23
  if (m.every(function(e) {
24
24
  return !e.__N;
@@ -30,7 +30,7 @@ function S(_, n, t) {
30
30
  var R = e.__[0];
31
31
  e.__ = e.__N, e.__N = void 0, R !== e.__[0] && (V = !0);
32
32
  }
33
- }), !(!V && u.__c.props === i) && (!h || h.call(this, i, c, f));
33
+ }), !(!V && r.__c.props === i) && (!h || h.call(this, i, c, f));
34
34
  };
35
35
  o.u = !0;
36
36
  var h = o.shouldComponentUpdate, y = o.componentWillUpdate;
@@ -42,120 +42,122 @@ function S(_, n, t) {
42
42
  y && y.call(this, i, c, f);
43
43
  }, o.shouldComponentUpdate = a;
44
44
  }
45
- return u.__N || u.__;
45
+ return r.__N || r.__;
46
46
  }
47
- function I(_, n) {
47
+ function I(_, u) {
48
48
  var t = v(s++, 3);
49
- !r.__s && N(t.__H, n) && (t.__ = _, t.i = n, o.__H.__h.push(t));
49
+ !n.__s && N(t.__H, u) && (t.__ = _, t.i = u, o.__H.__h.push(t));
50
50
  }
51
- function W(_, n) {
51
+ function j(_, u) {
52
52
  var t = v(s++, 4);
53
- !r.__s && N(t.__H, n) && (t.__ = _, t.i = n, o.__h.push(t));
53
+ !n.__s && N(t.__H, u) && (t.__ = _, t.i = u, o.__h.push(t));
54
54
  }
55
55
  function L(_) {
56
- return l = 5, x(function() {
56
+ return l = 5, U(function() {
57
57
  return { current: _ };
58
58
  }, []);
59
59
  }
60
- function M(_, n, t) {
61
- l = 6, W(function() {
62
- return typeof _ == "function" ? (_(n()), function() {
60
+ function M(_, u, t) {
61
+ l = 6, j(function() {
62
+ return typeof _ == "function" ? (_(u()), function() {
63
63
  return _(null);
64
- }) : _ ? (_.current = n(), function() {
64
+ }) : _ ? (_.current = u(), function() {
65
65
  return _.current = null;
66
66
  }) : void 0;
67
67
  }, t == null ? t : t.concat(_));
68
68
  }
69
- function x(_, n) {
69
+ function U(_, u) {
70
70
  var t = v(s++, 7);
71
- return N(t.__H, n) ? (t.__V = _(), t.i = n, t.__h = _, t.__V) : t.__;
71
+ return N(t.__H, u) ? (t.__V = _(), t.i = u, t.__h = _, t.__V) : t.__;
72
72
  }
73
- function P(_, n) {
74
- return l = 8, x(function() {
73
+ function $(_, u) {
74
+ return l = 8, U(function() {
75
75
  return _;
76
- }, n);
76
+ }, u);
77
77
  }
78
- function $(_) {
79
- var n = o.context[_.__c], t = v(s++, 9);
80
- return t.c = _, n ? (t.__ == null && (t.__ = !0, n.sub(o)), n.props.value) : _.__;
78
+ function G(_) {
79
+ var u = o.context[_.__c], t = v(s++, 9);
80
+ return t.c = _, u ? (t.__ == null && (t.__ = !0, u.sub(o)), u.props.value) : _.__;
81
81
  }
82
- function j() {
83
- for (var _; _ = U.shift(); )
82
+ function w() {
83
+ for (var _; _ = T.shift(); )
84
84
  if (_.__P && _.__H)
85
85
  try {
86
86
  _.__H.__h.forEach(H), _.__H.__h.forEach(E), _.__H.__h = [];
87
- } catch (n) {
88
- _.__H.__h = [], r.__e(n, _.__v);
87
+ } catch (u) {
88
+ _.__H.__h = [], n.__e(u, _.__v);
89
89
  }
90
90
  }
91
- r.__b = function(_) {
91
+ n.__b = function(_) {
92
92
  o = null, F && F(_);
93
- }, r.__r = function(_) {
94
- b && b(_), s = 0;
95
- var n = (o = _.__c).__H;
96
- n && (d === o ? (n.__h = [], o.__h = [], n.__.forEach(function(t) {
93
+ }, n.__ = function(_, u) {
94
+ _ && u.__k && u.__k.__m && (_.__m = u.__k.__m), g && g(_, u);
95
+ }, n.__r = function(_) {
96
+ k && k(_), s = 0;
97
+ var u = (o = _.__c).__H;
98
+ u && (d === o ? (u.__h = [], o.__h = [], u.__.forEach(function(t) {
97
99
  t.__N && (t.__ = t.__N), t.__V = p, t.__N = t.i = void 0;
98
- })) : (n.__h.forEach(H), n.__h.forEach(E), n.__h = [], s = 0)), d = o;
99
- }, r.diffed = function(_) {
100
- g && g(_);
101
- var n = _.__c;
102
- n && n.__H && (n.__H.__h.length && (U.push(n) !== 1 && A === r.requestAnimationFrame || ((A = r.requestAnimationFrame) || w)(j)), n.__H.__.forEach(function(t) {
100
+ })) : (u.__h.forEach(H), u.__h.forEach(E), u.__h = [], s = 0)), d = o;
101
+ }, n.diffed = function(_) {
102
+ q && q(_);
103
+ var u = _.__c;
104
+ u && u.__H && (u.__H.__h.length && (T.push(u) !== 1 && A === n.requestAnimationFrame || ((A = n.requestAnimationFrame) || z)(w)), u.__H.__.forEach(function(t) {
103
105
  t.i && (t.__H = t.i), t.__V !== p && (t.__ = t.__V), t.i = void 0, t.__V = p;
104
106
  })), d = o = null;
105
- }, r.__c = function(_, n) {
106
- n.some(function(t) {
107
+ }, n.__c = function(_, u) {
108
+ u.some(function(t) {
107
109
  try {
108
- t.__h.forEach(H), t.__h = t.__h.filter(function(u) {
109
- return !u.__ || E(u);
110
+ t.__h.forEach(H), t.__h = t.__h.filter(function(r) {
111
+ return !r.__ || E(r);
110
112
  });
111
- } catch (u) {
112
- n.some(function(a) {
113
+ } catch (r) {
114
+ u.some(function(a) {
113
115
  a.__h && (a.__h = []);
114
- }), n = [], r.__e(u, t.__v);
116
+ }), u = [], n.__e(r, t.__v);
115
117
  }
116
- }), q && q(_, n);
117
- }, r.unmount = function(_) {
118
- C && C(_);
119
- var n, t = _.__c;
120
- t && t.__H && (t.__H.__.forEach(function(u) {
118
+ }), C && C(_, u);
119
+ }, n.unmount = function(_) {
120
+ b && b(_);
121
+ var u, t = _.__c;
122
+ t && t.__H && (t.__H.__.forEach(function(r) {
121
123
  try {
122
- H(u);
124
+ H(r);
123
125
  } catch (a) {
124
- n = a;
126
+ u = a;
125
127
  }
126
- }), t.__H = void 0, n && r.__e(n, t.__v));
128
+ }), t.__H = void 0, u && n.__e(u, t.__v));
127
129
  };
128
- var T = typeof requestAnimationFrame == "function";
129
- function w(_) {
130
- var n, t = function() {
131
- clearTimeout(u), T && cancelAnimationFrame(n), setTimeout(_);
132
- }, u = setTimeout(t, 100);
133
- T && (n = requestAnimationFrame(t));
130
+ var x = typeof requestAnimationFrame == "function";
131
+ function z(_) {
132
+ var u, t = function() {
133
+ clearTimeout(r), x && cancelAnimationFrame(u), setTimeout(_);
134
+ }, r = setTimeout(t, 100);
135
+ x && (u = requestAnimationFrame(t));
134
136
  }
135
137
  function H(_) {
136
- var n = o, t = _.__c;
137
- typeof t == "function" && (_.__c = void 0, t()), o = n;
138
+ var u = o, t = _.__c;
139
+ typeof t == "function" && (_.__c = void 0, t()), o = u;
138
140
  }
139
141
  function E(_) {
140
- var n = o;
141
- _.__c = _.__(), o = n;
142
+ var u = o;
143
+ _.__c = _.__(), o = u;
142
144
  }
143
- function N(_, n) {
144
- return !_ || _.length !== n.length || n.some(function(t, u) {
145
- return t !== _[u];
145
+ function N(_, u) {
146
+ return !_ || _.length !== u.length || u.some(function(t, r) {
147
+ return t !== _[r];
146
148
  });
147
149
  }
148
- function k(_, n) {
149
- return typeof n == "function" ? n(_) : n;
150
+ function P(_, u) {
151
+ return typeof u == "function" ? u(_) : u;
150
152
  }
151
153
  export {
152
- P as useCallback,
153
- $ as useContext,
154
+ $ as useCallback,
155
+ G as useContext,
154
156
  I as useEffect,
155
157
  M as useImperativeHandle,
156
- W as useLayoutEffect,
157
- x as useMemo,
158
- S as useReducer,
158
+ j as useLayoutEffect,
159
+ U as useMemo,
160
+ W as useReducer,
159
161
  L as useRef,
160
- B as useState
162
+ D as useState
161
163
  };
@@ -1,15 +1,15 @@
1
- import { options as e } from "../../dist/preact.module.js";
1
+ import { options as f } from "../../dist/preact.module.js";
2
2
  import { Fragment as x } from "../../dist/preact.module.js";
3
- var i = 0;
4
- function v(n, s, l, a, f, u) {
3
+ var t = 0;
4
+ function v(n, s, l, a, u, i) {
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: 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 };
8
+ var e = { type: n, props: r, key: l, ref: _, __k: null, __: null, __b: 0, __e: null, __d: void 0, __c: null, constructor: void 0, __v: --t, __i: -1, __u: 0, __source: u, __self: i };
9
9
  if (typeof n == "function" && (_ = n.defaultProps))
10
10
  for (o in _)
11
11
  r[o] === void 0 && (r[o] = _[o]);
12
- return e.vnode && e.vnode(t), t;
12
+ return f.vnode && f.vnode(e), e;
13
13
  }
14
14
  export {
15
15
  x as Fragment,
@@ -4,7 +4,7 @@ import L from "../useReflex/hooks/useReflex.js";
4
4
  var O = /* @__PURE__ */ ((t) => (t.POPOVER = "POPOVER", t.DEFAULT = "DEFAULT", t))(O || {});
5
5
  const P = (t) => {
6
6
  t.stopImmediatePropagation();
7
- }, F = (t, o, s, u) => {
7
+ }, k = (t, o, s, u) => {
8
8
  const e = d(null), f = v(
9
9
  (c) => {
10
10
  const n = c.composedPath();
@@ -37,5 +37,5 @@ const P = (t) => {
37
37
  };
38
38
  export {
39
39
  O as ClickOutsideVariant,
40
- F as useClickOutside
40
+ k as useClickOutside
41
41
  };
@@ -13,7 +13,7 @@ const p = (r, o) => {
13
13
  o
14
14
  );
15
15
  return [t, d];
16
- }, v = p;
16
+ }, j = p;
17
17
  export {
18
- v as default
18
+ j as default
19
19
  };
@@ -19,7 +19,7 @@ const n = (e) => {
19
19
  [e]
20
20
  )
21
21
  );
22
- }, x = n;
22
+ }, u = n;
23
23
  export {
24
- x as default
24
+ u as default
25
25
  };
@@ -57,7 +57,7 @@ const O = (R, f) => {
57
57
  }, []),
58
58
  R
59
59
  );
60
- }, g = O;
60
+ }, q = O;
61
61
  export {
62
- g as default
62
+ q as default
63
63
  };
@@ -1,18 +1,18 @@
1
1
  import { PopoverContainerPosition as s, PopoverContainerVariant as I } from "../../components/internal/Popover/types.js";
2
- import F from "../../components/internal/Popover/utils/utils.js";
3
- import { useState as X, useCallback as W, useRef as $, useEffect as v } from "../../external/preact/hooks/dist/hooks.module.js";
4
- import x from "../useReflex/hooks/useReflex.js";
2
+ import Y from "../../components/internal/Popover/utils/utils.js";
3
+ import { useState as F, useCallback as W, useRef as x, useEffect as $ } from "../../external/preact/hooks/dist/hooks.module.js";
4
+ import v from "../useReflex/hooks/useReflex.js";
5
5
  const G = ({
6
6
  popover: r,
7
7
  offset: t,
8
- targetElement: d,
8
+ targetElement: T,
9
9
  position: O,
10
10
  variant: u,
11
11
  fullWidth: L
12
12
  }) => {
13
- const m = d == null ? void 0 : d.current;
13
+ const m = T == null ? void 0 : T.current;
14
14
  let l = 0, h = 0;
15
- const e = m.getBoundingClientRect(), B = document.body.getBoundingClientRect(), i = r == null ? void 0 : r.firstChild, R = B.left + B.width / 2 - i.offsetWidth / 2, w = e.left + e.width / 2 - i.offsetWidth / 2, T = e.top + e.height / 2 - i.offsetHeight / 2;
15
+ const e = m.getBoundingClientRect(), B = document.body.getBoundingClientRect(), i = r == null ? void 0 : r.firstChild, R = B.left + B.width / 2 - i.offsetWidth / 2, w = e.left + e.width / 2 - i.offsetWidth / 2, d = e.top + e.height / 2 - i.offsetHeight / 2;
16
16
  switch (O) {
17
17
  case s.BOTTOM:
18
18
  l = L ? R : u === I.TOOLTIP ? w + window.scrollX : (e == null ? void 0 : e.left) + window.scrollX, h = (e == null ? void 0 : e.top) + (e == null ? void 0 : e.height) + window.scrollY + t[1];
@@ -24,64 +24,64 @@ const G = ({
24
24
  l = u === I.TOOLTIP ? w + window.scrollX : e.left + window.scrollX, h = (e == null ? void 0 : e.top) - (i == null ? void 0 : i.clientHeight) + window.scrollY - t[0];
25
25
  break;
26
26
  case s.RIGHT:
27
- l = e.left + e.width + window.scrollX + t[2], h = u === I.TOOLTIP ? T + window.scrollY : (e == null ? void 0 : e.top) - (e == null ? void 0 : e.height) / 2 + window.scrollY;
27
+ l = e.left + e.width + window.scrollX + t[2], h = u === I.TOOLTIP ? d + window.scrollY : (e == null ? void 0 : e.top) - (e == null ? void 0 : e.height) / 2 + window.scrollY;
28
28
  break;
29
29
  case s.LEFT:
30
- l = (e == null ? void 0 : e.left) - (r == null ? void 0 : r.clientWidth) + window.scrollX - t[3], h = u === I.TOOLTIP ? T + window.scrollY : (e == null ? void 0 : e.top) + window.scrollY - (e == null ? void 0 : e.height) / 2;
30
+ l = (e == null ? void 0 : e.left) - (r == null ? void 0 : r.clientWidth) + window.scrollX - t[3], h = u === I.TOOLTIP ? d + window.scrollY : (e == null ? void 0 : e.top) + window.scrollY - (e == null ? void 0 : e.height) / 2;
31
31
  break;
32
32
  }
33
33
  const b = [l, h, 0];
34
34
  return `position:absolute;inset:0 auto auto 0;margin: 0;transform: ${b.reduce((o, k, c) => c === 0 ? o + `${k}px,` : c === b.length - 1 ? o + ` ${k}px)` : o + ` ${k}px,`, "translate3d(")};visibility:hidden`;
35
- }, _ = (r, t, d, O, u, L, m, l, h) => {
36
- const [e, B] = X(!0), [i, R] = X(l ? !l : !!O), [w, T] = X(O || s.TOP), [b, f] = X([]), o = W(
35
+ }, _ = (r, t, T, O, u, L, m, l, h) => {
36
+ const [e, B] = F(!0), [i, R] = F(l ? !l : !!O), [w, d] = F(O || s.TOP), [b, f] = F([]), o = W(
37
37
  (c) => {
38
38
  if (c.intersectionRatio === 1)
39
39
  return R(!0);
40
40
  if (!e && c.intersectionRatio !== 1) {
41
41
  if (b && b.length === (l ? 5 : 4)) {
42
42
  const n = b.reduce((a, C) => C[1] > a[1] ? C : a, b[0]);
43
- T(n[0]), R(!0);
43
+ d(n[0]), R(!0);
44
44
  return;
45
45
  }
46
46
  switch (R(!1), w) {
47
47
  case s.TOP:
48
- f((n) => [...n, [s.TOP, c.intersectionRatio]]), T(s.BOTTOM);
48
+ f((n) => [...n, [s.TOP, c.intersectionRatio]]), d(s.BOTTOM);
49
49
  break;
50
50
  case s.BOTTOM:
51
- f((n) => [...n, [s.BOTTOM, c.intersectionRatio]]), T(l ? s.BOTTOM_LEFT : s.RIGHT);
51
+ f((n) => [...n, [s.BOTTOM, c.intersectionRatio]]), d(l ? s.BOTTOM_LEFT : s.RIGHT);
52
52
  break;
53
53
  case s.BOTTOM_LEFT:
54
- f((n) => [...n, [s.BOTTOM, c.intersectionRatio]]), T(s.RIGHT);
54
+ f((n) => [...n, [s.BOTTOM, c.intersectionRatio]]), d(s.RIGHT);
55
55
  break;
56
56
  case s.RIGHT:
57
- f((n) => [...n, [s.RIGHT, c.intersectionRatio]]), T(s.LEFT);
57
+ f((n) => [...n, [s.RIGHT, c.intersectionRatio]]), d(s.LEFT);
58
58
  break;
59
59
  case s.LEFT:
60
- f((n) => [...n, [s.LEFT, c.intersectionRatio]]), T(s.TOP);
60
+ f((n) => [...n, [s.LEFT, c.intersectionRatio]]), d(s.TOP);
61
61
  break;
62
62
  }
63
63
  }
64
64
  },
65
65
  [e, b, w, l]
66
- ), k = $(o);
67
- return v(() => {
68
- F(k.current).remove(), k.current = o;
69
- }, [o]), x(
66
+ ), k = x(o);
67
+ return $(() => {
68
+ Y(k.current).remove(), k.current = o;
69
+ }, [o]), v(
70
70
  W(
71
71
  (c, n) => {
72
72
  var a, C;
73
- if (n && (!O || l) && F(o).observer.unobserve(n), c && t.current) {
74
- if ((!O || l) && F(o).observer.observe(c), !(c instanceof Element))
73
+ if (n && (!O || l) && Y(o).observer.unobserve(n), c && t.current) {
74
+ if ((!O || l) && Y(o).observer.observe(c), !(c instanceof Element))
75
75
  return;
76
- const Y = G({
76
+ const X = G({
77
77
  popover: c,
78
78
  offset: r,
79
79
  targetElement: t,
80
80
  position: w,
81
- variant: d,
81
+ variant: T,
82
82
  fullWidth: m ?? !1
83
- }), M = i ? Y + ";visibility:visible" : Y, H = L ? M + ";min-width:fit-content;width:" + ((a = t.current) == null ? void 0 : a.clientWidth) + "px" : M;
84
- c.setAttribute("style", `${H}`), e && B(!1), d && d === I.TOOLTIP && u && ((C = u.current) == null || C.setAttribute("data-popover-placement", w));
83
+ }), M = i ? X + ";visibility:visible" : X, H = L ? M + ";min-width:fit-content;width:" + ((a = t.current) == null ? void 0 : a.clientWidth) + "px" : M;
84
+ c.setAttribute("style", `${H}`), e && B(!1), T && T === I.TOOLTIP && u && ((C = u.current) == null || C.setAttribute("data-popover-placement", w));
85
85
  }
86
86
  },
87
87
  [
@@ -89,7 +89,7 @@ const G = ({
89
89
  t,
90
90
  w,
91
91
  O,
92
- d,
92
+ T,
93
93
  o,
94
94
  i,
95
95
  e,
@@ -29,7 +29,7 @@ const L = ({ applyDisabled: e, applyTitle: m, resetDisabled: a, resetTitle: c }
29
29
  break;
30
30
  }
31
31
  }, [n, u, i]), { commitAction: n, commitActionButtons: R, committing: B, resetCommitAction: i };
32
- }, x = L;
32
+ }, S = L;
33
33
  export {
34
- x as default
34
+ S as default
35
35
  };
@@ -2,7 +2,7 @@ import { useRef as u, useReducer as o, useCallback as f, useEffect as p } from "
2
2
  function g({
3
3
  fetchOptions: a = { keepPrevData: !0 },
4
4
  queryFn: n,
5
- params: h
5
+ params: y
6
6
  }) {
7
7
  u(/* @__PURE__ */ new Map());
8
8
  const r = u(!1), t = {
@@ -1,10 +1,10 @@
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";
1
+ import { useState as f, useCallback as u, useMemo as k } from "../../external/preact/hooks/dist/hooks.module.js";
2
+ import { hasCallback as D } from "./types.js";
3
3
  function o(l) {
4
4
  const [n, r] = f(null), d = u(
5
5
  (e) => {
6
6
  var c;
7
- return e && k(l[e.selection.type]) ? {
7
+ return e && D(l[e.selection.type]) ? {
8
8
  callback: (c = l == null ? void 0 : l[e.selection.type]) != null && c.callback ? (a) => {
9
9
  var s, t;
10
10
  return (t = (s = l[e.selection.type]) == null ? void 0 : s.callback) == null ? void 0 : t.call(s, { showModal: () => r(e), ...a });
@@ -15,7 +15,7 @@ function o(l) {
15
15
  } : (r(e), {});
16
16
  },
17
17
  [l]
18
- ), i = u(() => r(null), []), b = h(() => {
18
+ ), i = u(() => r(null), []), b = k(() => {
19
19
  const e = {};
20
20
  for (const c in l) {
21
21
  const a = l[c];
@@ -2,34 +2,34 @@ import { useRef as o, useMemo as h, useReducer as R, useEffect as T } from "../.
2
2
  import w from "../useMounted/useMounted.js";
3
3
  import { EMPTY_OBJECT as F } from "../../utils/common/constants.js";
4
4
  const P = (a = F, f = !0) => {
5
- const n = o(f), e = o(Object.freeze({ ...a })), p = o(new Set(Object.keys(e.current))), u = o(/* @__PURE__ */ new Set()), S = w(), [d, j] = h(() => {
5
+ const n = o(f), e = o(Object.freeze({ ...a })), S = o(new Set(Object.keys(e.current))), u = o(/* @__PURE__ */ new Set()), i = w(), [d, j] = h(() => {
6
6
  const r = (c) => {
7
- S.current && z(c);
7
+ i.current && z(c);
8
8
  };
9
9
  return [
10
10
  () => r("reset"),
11
11
  (c) => r(c)
12
12
  ];
13
- }, [S]), [$, z] = R((r, c) => {
13
+ }, [i]), [$, z] = R((r, c) => {
14
14
  if (c === "reset")
15
15
  return u.current.clear(), e.current;
16
- const s = { ...c }, i = [0];
16
+ const s = { ...c }, p = [0];
17
17
  Object.keys(s).forEach((t, O) => {
18
- if (!p.current.has(t))
18
+ if (!S.current.has(t))
19
19
  return;
20
20
  const g = r[t] ?? void 0, b = e.current[t] ?? void 0, l = s[t] ?? b;
21
21
  if (l === g)
22
22
  return;
23
23
  const v = Math.floor(O / 32), M = 1 << O % 32;
24
- s[t] = l, i[v] |= M, u.current[l === b ? "delete" : "add"](t);
24
+ s[t] = l, p[v] |= M, u.current[l === b ? "delete" : "add"](t);
25
25
  });
26
- const m = i.some((t) => t) ? n.current && u.current.size === 0 ? e.current : Object.freeze({ ...r, ...s }) : r;
26
+ const m = p.some((t) => t) ? n.current && u.current.size === 0 ? e.current : Object.freeze({ ...r, ...s }) : r;
27
27
  return n.current || (e.current = m, n.current = !0), m;
28
28
  }, e.current), E = h(() => !!u.current.size, []);
29
29
  return T(() => {
30
- e.current = Object.freeze({ ...a }), p.current = new Set(Object.keys(e.current)), n.current = f, d();
30
+ e.current = Object.freeze({ ...a }), S.current = new Set(Object.keys(e.current)), n.current = f, d();
31
31
  }, [f, a, d]), { canResetState: E, defaultState: e.current, resetState: d, state: $, updateState: j };
32
- }, x = P;
32
+ }, q = P;
33
33
  export {
34
- x as default
34
+ q as default
35
35
  };
@@ -3,12 +3,12 @@ import h from "../useSessionAwareRequest/useSessionAwareRequest.js";
3
3
  import f from "../../core/Context/useCoreContext.js";
4
4
  import { parseSearchParams as l } from "../../core/Services/requests/utils.js";
5
5
  import { useCallback as C } from "../../external/preact/hooks/dist/hooks.module.js";
6
- import { EMPTY_OBJECT as y } from "../../utils/common/constants.js";
7
- const O = (e) => {
6
+ import { EMPTY_OBJECT as x } from "../../utils/common/constants.js";
7
+ const S = (e) => {
8
8
  const { endpoints: s } = i(), { loadingContext: a } = f(), { httpProvider: n } = h();
9
9
  return C(
10
10
  async (...p) => {
11
- const u = p[0], t = p[1] || y, m = s[e], o = t.path;
11
+ const u = p[0], t = p[1] || x, m = s[e], o = t.path;
12
12
  let r = m.url;
13
13
  if (o) {
14
14
  const c = Object.keys(o)[0];
@@ -23,5 +23,5 @@ const O = (e) => {
23
23
  );
24
24
  };
25
25
  export {
26
- O as useSetupEndpoint
26
+ S as useSetupEndpoint
27
27
  };
@@ -0,0 +1,31 @@
1
+ var o = Object.defineProperty;
2
+ var a = (r, e, t) => e in r ? o(r, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : r[e] = t;
3
+ var s = (r, e, t) => (a(r, typeof e != "symbol" ? e + "" : e, t), t);
4
+ class i {
5
+ constructor(e, t = window.localStorage) {
6
+ s(this, "prefix", "adyen-pe-");
7
+ s(this, "key");
8
+ s(this, "storage");
9
+ this.storage = t, this.key = this.prefix + e;
10
+ }
11
+ get() {
12
+ const e = this.storage.getItem(this.key);
13
+ if (e)
14
+ try {
15
+ return JSON.parse(e);
16
+ } catch {
17
+ return null;
18
+ }
19
+ return null;
20
+ }
21
+ set(e) {
22
+ this.storage.setItem(this.key, JSON.stringify(e));
23
+ }
24
+ remove() {
25
+ this.storage.removeItem(this.key);
26
+ }
27
+ }
28
+ const n = i;
29
+ export {
30
+ n as default
31
+ };