@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.
- package/dist/ModalContent-387502da.js +2 -0
- package/dist/{ModalContent-88fdb6f4.js.map → ModalContent-387502da.js.map} +1 -1
- package/dist/cjs/index.js +1 -1
- package/dist/es/components/external/TransactionDetails/TransactionDetails.js +6 -6
- package/dist/es/components/external/TransactionDetails/components/TransactionData.js +3 -3
- package/dist/es/components/external/TransactionDetails/components/TransactionDetails.js +6 -6
- package/dist/es/components/external/TransactionsOverview/components/AmountSkeleton/AmountSkeleton.js +2 -2
- package/dist/es/components/external/TransactionsOverview/components/BalanceAccountSelector/useBalanceAccountSelection.js +7 -7
- package/dist/es/components/external/TransactionsOverview/components/Balances/Balances.js +9 -9
- package/dist/es/components/external/TransactionsOverview/components/ModalContent.js +4 -4
- package/dist/es/components/external/TransactionsOverview/components/MultiSelectionFilter/MultiSelectionFilter.js +6 -6
- package/dist/es/components/external/TransactionsOverview/components/MultiSelectionFilter/useMultiSelectionFilter/useMultiSelectionFilter.js +7 -7
- package/dist/es/components/external/TransactionsOverview/components/SummaryItem/SummaryItem.js +15 -15
- package/dist/es/components/external/TransactionsOverview/components/SummaryItem/SummaryItemLabel.js +3 -3
- package/dist/es/components/external/TransactionsOverview/components/TransactionTotalItem/TransactionTotalItem.js +6 -6
- package/dist/es/components/external/TransactionsOverview/components/TransactionTotals/TotalsCard.js +7 -7
- package/dist/es/components/external/TransactionsOverview/components/TransactionTotals/TransactionTotals.js +31 -31
- package/dist/es/components/external/TransactionsOverview/components/TransactionsDisplay/TransactionsDisplay.js +15 -15
- package/dist/es/components/external/TransactionsOverview/components/TransactionsOverview/TransactionsOverview.js +6 -6
- package/dist/es/components/external/TransactionsOverview/components/TransactionsOverviewContainer/TransactionsOverviewContainer.js +21 -21
- package/dist/es/components/external/TransactionsOverview/components/TransactionsOverviewDateFilter.js +21 -21
- package/dist/es/components/external/TransactionsOverview/components/TransactionsTable/TransactionsTable.js +30 -30
- package/dist/es/components/external/TransactionsOverview/components/utils.js +1 -1
- package/dist/es/components/external/TransactionsOverview/hooks/useMaxWidths.js +4 -4
- package/dist/es/components/external/UIElement.js +4 -4
- package/dist/es/components/internal/BaseButton/BaseButton.js +11 -11
- package/dist/es/components/internal/BaseList/BaseList.js +2 -2
- package/dist/es/components/internal/Button/Button.js +9 -9
- package/dist/es/components/internal/Button/hooks/useButton.js +2 -2
- package/dist/es/components/internal/Calendar/components/CalendarControls/CalendarControls.js +2 -2
- package/dist/es/components/internal/Calendar/components/CalendarGrid/CalendarGridDayOfWeek.js +4 -4
- package/dist/es/components/internal/Calendar/hooks/useCalendar.js +13 -13
- package/dist/es/components/internal/Calendar/hooks/useTimezone.js +2 -2
- package/dist/es/components/internal/DataGrid/DataGrid.js +6 -6
- package/dist/es/components/internal/DataGrid/components/InteractiveBody.js +8 -8
- package/dist/es/components/internal/DataGrid/components/TableBody.js +5 -5
- package/dist/es/components/internal/DataGrid/components/TableCells.js +2 -2
- package/dist/es/components/internal/DataGrid/hooks/useInteractiveDataGrid.js +2 -2
- package/dist/es/components/internal/DatePicker/DatePicker.js +9 -9
- package/dist/es/components/internal/DatePicker/components/TimeRangeSelector/TimeRangeSelector.js +9 -9
- package/dist/es/components/internal/DatePicker/components/TimeRangeSelector/useTimeRangeSelection.js +29 -29
- package/dist/es/components/internal/ErrorMessageDisplay/ErrorMessageDisplay.js +10 -10
- package/dist/es/components/internal/ExpandableCard/ExpandableCard.js +14 -14
- package/dist/es/components/internal/FilterBar/FilterBar.js +12 -12
- package/dist/es/components/internal/FilterBar/components/FilterButton/FilterButton.js +8 -8
- package/dist/es/components/internal/FilterBar/filters/AmountFilter/AmountFilter.js +26 -26
- package/dist/es/components/internal/FilterBar/filters/AmountFilter/RangeSelection.js +3 -3
- package/dist/es/components/internal/FilterBar/filters/BaseFilter/BaseFilter.js +27 -27
- package/dist/es/components/internal/FilterBar/filters/DateFilter/DateFilter.js +17 -17
- package/dist/es/components/internal/FormFields/InputBase.js +16 -16
- package/dist/es/components/internal/FormFields/InputText.js +2 -2
- package/dist/es/components/internal/FormFields/Select/Select.js +27 -27
- package/dist/es/components/internal/FormFields/Select/components/SelectButton.js +16 -16
- package/dist/es/components/internal/FormFields/Select/components/SelectList.js +21 -21
- package/dist/es/components/internal/FormFields/Select/components/SelectListItem.js +9 -9
- package/dist/es/components/internal/FormFields/Select/hooks/useSelect.js +7 -7
- package/dist/es/components/internal/Image/Image.js +2 -2
- package/dist/es/components/internal/Img/Img.js +4 -4
- package/dist/es/components/internal/Modal/Modal.js +16 -16
- package/dist/es/components/internal/Pagination/Pagination.js +4 -4
- package/dist/es/components/internal/Pagination/hooks/usePageLimit.js +2 -2
- package/dist/es/components/internal/Pagination/hooks/usePaginatedRecords.js +42 -44
- package/dist/es/components/internal/Pagination/hooks/usePagination.js +15 -15
- package/dist/es/components/internal/Popover/Popover.js +31 -31
- package/dist/es/components/internal/Popover/PopoverTitle/PopoverTitle.js +2 -2
- package/dist/es/components/internal/SVGIcons/ChevronLeft.js +3 -3
- package/dist/es/components/internal/SVGIcons/ChevronRight.js +3 -3
- package/dist/es/components/internal/SVGIcons/ChevronUp.js +2 -2
- package/dist/es/components/internal/SVGIcons/Filter.js +2 -2
- package/dist/es/components/internal/Tag/Tag.js +3 -3
- package/dist/es/components/internal/Tooltip/Tooltip.js +3 -3
- package/dist/es/components/internal/Typography/Typography.js +2 -2
- package/dist/es/core/Auth/AuthProvider.js +6 -6
- package/dist/es/core/Context/CoreProvider.js +4 -4
- package/dist/es/core/Localization/utils.js +30 -30
- package/dist/es/core/Session/Session.js +1 -1
- package/dist/es/core/core.js +9 -9
- package/dist/es/external/preact/compat/dist/compat.module.js +86 -86
- package/dist/es/external/preact/dist/preact.module.js +241 -234
- package/dist/es/external/preact/hooks/dist/hooks.module.js +86 -84
- package/dist/es/external/preact/jsx-runtime/dist/jsxRuntime.module.js +5 -5
- package/dist/es/hooks/element/useClickOutside.js +2 -2
- package/dist/es/hooks/element/useDetachedRender.js +2 -2
- package/dist/es/hooks/element/useFocusCursor.js +2 -2
- package/dist/es/hooks/element/useFocusTrap.js +2 -2
- package/dist/es/hooks/element/usePopoverPositioner.js +27 -27
- package/dist/es/hooks/useCommitAction/useCommitAction.js +2 -2
- package/dist/es/hooks/useFetch/useFetch.js +1 -1
- package/dist/es/hooks/useModalDetails/useModalDetails.js +4 -4
- package/dist/es/hooks/useReactiveState/useReactiveState.js +10 -10
- package/dist/es/hooks/useSetupEndpoint/useSetupEndpoint.js +4 -4
- package/dist/es/utils/SessionStorage.js +31 -0
- package/dist/index-8daceaea.js +12 -0
- package/dist/index-8daceaea.js.map +1 -0
- package/dist/types/components/external/TransactionDetails/components/TransactionData.d.ts +2 -2
- package/dist/types/components/external/TransactionDetails/components/TransactionData.d.ts.map +1 -1
- package/dist/types/components/external/TransactionDetails/components/TransactionDataSkeleton.d.ts +2 -2
- package/dist/types/components/external/TransactionDetails/components/TransactionDataSkeleton.d.ts.map +1 -1
- package/dist/types/components/external/TransactionsOverview/components/MultiSelectionFilter/MultiSelectionFilter.d.ts +1 -5
- package/dist/types/components/external/TransactionsOverview/components/MultiSelectionFilter/MultiSelectionFilter.d.ts.map +1 -1
- package/dist/types/components/external/TransactionsOverview/components/MultiSelectionFilter/useMultiSelectionFilter/useMultiSelectionFilter.d.ts +1 -1
- package/dist/types/components/external/TransactionsOverview/components/MultiSelectionFilter/useMultiSelectionFilter/useMultiSelectionFilter.d.ts.map +1 -1
- package/dist/types/components/external/TransactionsOverview/components/MultiSelectionFilter/useMultiSelectionFilter/utils.d.ts.map +1 -1
- package/dist/types/components/external/TransactionsOverview/components/TransactionListError/TransactionListError.d.ts +1 -1
- package/dist/types/components/external/TransactionsOverview/components/TransactionListError/TransactionListError.d.ts.map +1 -1
- package/dist/types/components/external/TransactionsOverview/components/TransactionsOverview/TransactionsOverview.d.ts.map +1 -1
- package/dist/types/components/external/TransactionsOverview/components/utils.d.ts +1 -1
- package/dist/types/components/external/TransactionsOverview/hooks/useMaxWidths.d.ts.map +1 -1
- package/dist/types/components/external/TransactionsOverview/hooks/useTransactionsOverviewMultiSelectionFilters.d.ts +2 -2
- package/dist/types/components/internal/Button/constants.d.ts +7 -7
- package/dist/types/components/internal/Button/constants.d.ts.map +1 -1
- package/dist/types/components/internal/Calendar/calendar/shared/indexed/index.d.ts.map +1 -1
- package/dist/types/components/internal/Calendar/calendar/timerange/utils.d.ts +1 -1
- package/dist/types/components/internal/Calendar/calendar/timerange/utils.d.ts.map +1 -1
- package/dist/types/components/internal/Calendar/components/CalendarGrid/utils.d.ts +2 -2
- package/dist/types/components/internal/Calendar/components/CalendarGrid/utils.d.ts.map +1 -1
- package/dist/types/components/internal/CopyText/CopyText.d.ts.map +1 -1
- package/dist/types/components/internal/DataGrid/components/InteractiveBody.d.ts.map +1 -1
- package/dist/types/components/internal/DataGrid/components/SkeletonBody.d.ts +1 -1
- package/dist/types/components/internal/DataGrid/components/SkeletonBody.d.ts.map +1 -1
- package/dist/types/components/internal/DataGrid/components/TableBody.d.ts +1 -1
- package/dist/types/components/internal/DataGrid/components/TableBody.d.ts.map +1 -1
- package/dist/types/components/internal/DataGrid/components/TableCells.d.ts +1 -1
- package/dist/types/components/internal/DataGrid/components/TableCells.d.ts.map +1 -1
- package/dist/types/components/internal/DataGrid/hooks/useInteractiveDataGrid.d.ts.map +1 -1
- package/dist/types/components/internal/DatePicker/components/TimeRangeSelector/TimeRangeSelector.d.ts +1 -1
- package/dist/types/components/internal/DatePicker/components/TimeRangeSelector/TimeRangeSelector.d.ts.map +1 -1
- package/dist/types/components/internal/FormFields/Select/Select.d.ts.map +1 -1
- package/dist/types/components/internal/FormFields/Select/components/SelectButton.d.ts.map +1 -1
- package/dist/types/components/internal/FormFields/Select/components/SelectListItem.d.ts +1 -3
- package/dist/types/components/internal/FormFields/Select/components/SelectListItem.d.ts.map +1 -1
- package/dist/types/components/internal/FormFields/Select/constants.d.ts +21 -21
- package/dist/types/components/internal/FormFields/Select/constants.d.ts.map +1 -1
- package/dist/types/components/internal/FormFields/Select/hooks/useSelect.d.ts +1 -1
- package/dist/types/components/internal/FormFields/Select/hooks/useSelect.d.ts.map +1 -1
- package/dist/types/components/internal/FormFields/index.d.ts +1 -1
- package/dist/types/components/internal/FormFields/index.d.ts.map +1 -1
- package/dist/types/components/internal/Pagination/hooks/useCursorPaginatedRecords.d.ts.map +1 -1
- package/dist/types/components/internal/Pagination/hooks/useOffsetPaginatedRecords.d.ts.map +1 -1
- package/dist/types/components/internal/Pagination/hooks/usePaginatedRecords.d.ts.map +1 -1
- package/dist/types/components/internal/Pagination/hooks/usePaginatedRecordsFilters.d.ts.map +1 -1
- package/dist/types/components/internal/Pagination/hooks/usePagination.d.ts +1 -1
- package/dist/types/components/internal/Pagination/hooks/usePagination.d.ts.map +1 -1
- package/dist/types/components/internal/Pagination/types.d.ts +5 -1
- package/dist/types/components/internal/Pagination/types.d.ts.map +1 -1
- package/dist/types/components/internal/Popover/constants.d.ts +6 -6
- package/dist/types/components/internal/Popover/constants.d.ts.map +1 -1
- package/dist/types/components/internal/Tooltip/useTooltipListeners.d.ts.map +1 -1
- package/dist/types/components/types.d.ts +2 -0
- package/dist/types/components/types.d.ts.map +1 -1
- package/dist/types/core/Localization/amount/amount-util.d.ts +28 -0
- package/dist/types/core/Localization/amount/amount-util.d.ts.map +1 -1
- package/dist/types/core/Localization/datetime/restamper/utils.d.ts.map +1 -1
- package/dist/types/core/Localization/localization-utils.d.ts.map +1 -1
- package/dist/types/core/Localization/utils.d.ts +468 -3
- package/dist/types/core/Localization/utils.d.ts.map +1 -1
- package/dist/types/core/core.d.ts +19 -0
- package/dist/types/core/core.d.ts.map +1 -1
- package/dist/types/core/types.d.ts +5 -0
- package/dist/types/core/types.d.ts.map +1 -1
- package/dist/types/hooks/element/useClickOutside.d.ts +1 -1
- package/dist/types/hooks/element/useClickOutside.d.ts.map +1 -1
- package/dist/types/hooks/element/useDetachedRender.d.ts.map +1 -1
- package/dist/types/hooks/element/useFocusTrap.d.ts.map +1 -1
- package/dist/types/hooks/useImageUrl/useImageUrl.d.ts.map +1 -1
- package/dist/types/hooks/useModalDetails/useModalDetails.d.ts.map +1 -1
- package/dist/types/hooks/useMounted/useMounted.d.ts +1 -1
- package/dist/types/hooks/useMounted/useMounted.d.ts.map +1 -1
- package/dist/types/hooks/useReactiveState/useReactiveState.d.ts.map +1 -1
- package/dist/types/hooks/useReflex/core/reflex.d.ts.map +1 -1
- package/dist/types/hooks/useReflex/core/utils.d.ts.map +1 -1
- package/dist/types/hooks/useReflex/hooks/useReflex.d.ts.map +1 -1
- package/dist/types/hooks/useSessionAwareRequest/useSessionAwareRequest.d.ts.map +1 -1
- package/dist/types/hooks/useSetupEndpoint/useSetupEndpoint.d.ts +1 -1
- package/dist/types/hooks/useSetupEndpoint/useSetupEndpoint.d.ts.map +1 -1
- package/dist/types/types/models/openapi/BalanceAccountsResource.d.ts +104 -0
- package/dist/types/types/models/openapi/BalanceAccountsResource.d.ts.map +1 -0
- package/dist/types/types/models/openapi/SetupResource.d.ts +59 -0
- package/dist/types/types/models/openapi/SetupResource.d.ts.map +1 -0
- package/dist/types/types/models/openapi/TransactionsResource.d.ts +198 -0
- package/dist/types/types/models/openapi/TransactionsResource.d.ts.map +1 -0
- package/dist/types/types/models/openapi/endpoints.d.ts +11 -0
- package/dist/types/types/models/openapi/endpoints.d.ts.map +1 -0
- package/dist/types/utils/SessionStorage.d.ts +11 -0
- package/dist/types/utils/SessionStorage.d.ts.map +1 -0
- package/dist/types/utils/common/index.d.ts +2 -2
- package/dist/types/utils/common/index.d.ts.map +1 -1
- package/dist/types/utils/fixedForwardRef.d.ts +3 -3
- package/dist/types/utils/fixedForwardRef.d.ts.map +1 -1
- package/dist/types/utils/watchable/core/Watchable.d.ts +5 -3
- package/dist/types/utils/watchable/core/Watchable.d.ts.map +1 -1
- package/dist/types/utils/watchable/core/helpers.d.ts +4 -2
- package/dist/types/utils/watchable/core/helpers.d.ts.map +1 -1
- package/dist/types/utils/watchable/core/syncEffect.d.ts +1 -1
- package/dist/types/utils/watchable/core/syncEffect.d.ts.map +1 -1
- package/package.json +5 -5
- package/dist/ModalContent-88fdb6f4.js +0 -2
- package/dist/es/utils/Storage.js +0 -31
- package/dist/index-7e2df524.js +0 -12
- package/dist/index-7e2df524.js.map +0 -1
- package/dist/types/utils/Storage.d.ts +0 -11
- package/dist/types/utils/Storage.d.ts.map +0 -1
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
import { options as
|
|
2
|
-
var s, o, d, A, l = 0,
|
|
3
|
-
function v(_,
|
|
4
|
-
|
|
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
|
|
9
|
-
return l = 1,
|
|
8
|
+
function D(_) {
|
|
9
|
+
return l = 1, W(P, _);
|
|
10
10
|
}
|
|
11
|
-
function
|
|
12
|
-
var
|
|
13
|
-
if (
|
|
14
|
-
var c =
|
|
15
|
-
c !== f && (
|
|
16
|
-
}],
|
|
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 (!
|
|
18
|
+
if (!r.__c.__H)
|
|
19
19
|
return !0;
|
|
20
|
-
var m =
|
|
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 &&
|
|
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
|
|
45
|
+
return r.__N || r.__;
|
|
46
46
|
}
|
|
47
|
-
function I(_,
|
|
47
|
+
function I(_, u) {
|
|
48
48
|
var t = v(s++, 3);
|
|
49
|
-
!
|
|
49
|
+
!n.__s && N(t.__H, u) && (t.__ = _, t.i = u, o.__H.__h.push(t));
|
|
50
50
|
}
|
|
51
|
-
function
|
|
51
|
+
function j(_, u) {
|
|
52
52
|
var t = v(s++, 4);
|
|
53
|
-
!
|
|
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,
|
|
56
|
+
return l = 5, U(function() {
|
|
57
57
|
return { current: _ };
|
|
58
58
|
}, []);
|
|
59
59
|
}
|
|
60
|
-
function M(_,
|
|
61
|
-
l = 6,
|
|
62
|
-
return typeof _ == "function" ? (_(
|
|
60
|
+
function M(_, u, t) {
|
|
61
|
+
l = 6, j(function() {
|
|
62
|
+
return typeof _ == "function" ? (_(u()), function() {
|
|
63
63
|
return _(null);
|
|
64
|
-
}) : _ ? (_.current =
|
|
64
|
+
}) : _ ? (_.current = u(), function() {
|
|
65
65
|
return _.current = null;
|
|
66
66
|
}) : void 0;
|
|
67
67
|
}, t == null ? t : t.concat(_));
|
|
68
68
|
}
|
|
69
|
-
function
|
|
69
|
+
function U(_, u) {
|
|
70
70
|
var t = v(s++, 7);
|
|
71
|
-
return N(t.__H,
|
|
71
|
+
return N(t.__H, u) ? (t.__V = _(), t.i = u, t.__h = _, t.__V) : t.__;
|
|
72
72
|
}
|
|
73
|
-
function
|
|
74
|
-
return l = 8,
|
|
73
|
+
function $(_, u) {
|
|
74
|
+
return l = 8, U(function() {
|
|
75
75
|
return _;
|
|
76
|
-
},
|
|
76
|
+
}, u);
|
|
77
77
|
}
|
|
78
|
-
function
|
|
79
|
-
var
|
|
80
|
-
return t.c = _,
|
|
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
|
|
83
|
-
for (var _; _ =
|
|
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 (
|
|
88
|
-
_.__H.__h = [],
|
|
87
|
+
} catch (u) {
|
|
88
|
+
_.__H.__h = [], n.__e(u, _.__v);
|
|
89
89
|
}
|
|
90
90
|
}
|
|
91
|
-
|
|
91
|
+
n.__b = function(_) {
|
|
92
92
|
o = null, F && F(_);
|
|
93
|
-
},
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
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
|
-
})) : (
|
|
99
|
-
},
|
|
100
|
-
|
|
101
|
-
var
|
|
102
|
-
|
|
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
|
-
},
|
|
106
|
-
|
|
107
|
+
}, n.__c = function(_, u) {
|
|
108
|
+
u.some(function(t) {
|
|
107
109
|
try {
|
|
108
|
-
t.__h.forEach(H), t.__h = t.__h.filter(function(
|
|
109
|
-
return !
|
|
110
|
+
t.__h.forEach(H), t.__h = t.__h.filter(function(r) {
|
|
111
|
+
return !r.__ || E(r);
|
|
110
112
|
});
|
|
111
|
-
} catch (
|
|
112
|
-
|
|
113
|
+
} catch (r) {
|
|
114
|
+
u.some(function(a) {
|
|
113
115
|
a.__h && (a.__h = []);
|
|
114
|
-
}),
|
|
116
|
+
}), u = [], n.__e(r, t.__v);
|
|
115
117
|
}
|
|
116
|
-
}),
|
|
117
|
-
},
|
|
118
|
-
|
|
119
|
-
var
|
|
120
|
-
t && t.__H && (t.__H.__.forEach(function(
|
|
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(
|
|
124
|
+
H(r);
|
|
123
125
|
} catch (a) {
|
|
124
|
-
|
|
126
|
+
u = a;
|
|
125
127
|
}
|
|
126
|
-
}), t.__H = void 0,
|
|
128
|
+
}), t.__H = void 0, u && n.__e(u, t.__v));
|
|
127
129
|
};
|
|
128
|
-
var
|
|
129
|
-
function
|
|
130
|
-
var
|
|
131
|
-
clearTimeout(
|
|
132
|
-
},
|
|
133
|
-
|
|
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
|
|
137
|
-
typeof t == "function" && (_.__c = void 0, t()), o =
|
|
138
|
+
var u = o, t = _.__c;
|
|
139
|
+
typeof t == "function" && (_.__c = void 0, t()), o = u;
|
|
138
140
|
}
|
|
139
141
|
function E(_) {
|
|
140
|
-
var
|
|
141
|
-
_.__c = _.__(), o =
|
|
142
|
+
var u = o;
|
|
143
|
+
_.__c = _.__(), o = u;
|
|
142
144
|
}
|
|
143
|
-
function N(_,
|
|
144
|
-
return !_ || _.length !==
|
|
145
|
-
return t !== _[
|
|
145
|
+
function N(_, u) {
|
|
146
|
+
return !_ || _.length !== u.length || u.some(function(t, r) {
|
|
147
|
+
return t !== _[r];
|
|
146
148
|
});
|
|
147
149
|
}
|
|
148
|
-
function
|
|
149
|
-
return typeof
|
|
150
|
+
function P(_, u) {
|
|
151
|
+
return typeof u == "function" ? u(_) : u;
|
|
150
152
|
}
|
|
151
153
|
export {
|
|
152
|
-
|
|
153
|
-
|
|
154
|
+
$ as useCallback,
|
|
155
|
+
G as useContext,
|
|
154
156
|
I as useEffect,
|
|
155
157
|
M as useImperativeHandle,
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
158
|
+
j as useLayoutEffect,
|
|
159
|
+
U as useMemo,
|
|
160
|
+
W as useReducer,
|
|
159
161
|
L as useRef,
|
|
160
|
-
|
|
162
|
+
D as useState
|
|
161
163
|
};
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { options as
|
|
1
|
+
import { options as f } from "../../dist/preact.module.js";
|
|
2
2
|
import { Fragment as x } from "../../dist/preact.module.js";
|
|
3
|
-
var
|
|
4
|
-
function v(n, s, l, a,
|
|
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
|
|
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
|
|
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
|
-
},
|
|
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
|
-
|
|
40
|
+
k as useClickOutside
|
|
41
41
|
};
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import { PopoverContainerPosition as s, PopoverContainerVariant as I } from "../../components/internal/Popover/types.js";
|
|
2
|
-
import
|
|
3
|
-
import { useState as
|
|
4
|
-
import
|
|
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:
|
|
8
|
+
targetElement: T,
|
|
9
9
|
position: O,
|
|
10
10
|
variant: u,
|
|
11
11
|
fullWidth: L
|
|
12
12
|
}) => {
|
|
13
|
-
const m =
|
|
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,
|
|
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 ?
|
|
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 ?
|
|
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,
|
|
36
|
-
const [e, B] =
|
|
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
|
-
|
|
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]]),
|
|
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]]),
|
|
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]]),
|
|
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]]),
|
|
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]]),
|
|
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 =
|
|
67
|
-
return
|
|
68
|
-
|
|
69
|
-
}, [o]),
|
|
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) &&
|
|
74
|
-
if ((!O || l) &&
|
|
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
|
|
76
|
+
const X = G({
|
|
77
77
|
popover: c,
|
|
78
78
|
offset: r,
|
|
79
79
|
targetElement: t,
|
|
80
80
|
position: w,
|
|
81
|
-
variant:
|
|
81
|
+
variant: T,
|
|
82
82
|
fullWidth: m ?? !1
|
|
83
|
-
}), M = i ?
|
|
84
|
-
c.setAttribute("style", `${H}`), e && B(!1),
|
|
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
|
-
|
|
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
|
-
},
|
|
32
|
+
}, S = L;
|
|
33
33
|
export {
|
|
34
|
-
|
|
34
|
+
S as default
|
|
35
35
|
};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { useState as f, useCallback as u, useMemo as
|
|
2
|
-
import { hasCallback as
|
|
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 &&
|
|
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 =
|
|
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 })),
|
|
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
|
-
|
|
7
|
+
i.current && z(c);
|
|
8
8
|
};
|
|
9
9
|
return [
|
|
10
10
|
() => r("reset"),
|
|
11
11
|
(c) => r(c)
|
|
12
12
|
];
|
|
13
|
-
}, [
|
|
13
|
+
}, [i]), [$, z] = R((r, c) => {
|
|
14
14
|
if (c === "reset")
|
|
15
15
|
return u.current.clear(), e.current;
|
|
16
|
-
const s = { ...c },
|
|
16
|
+
const s = { ...c }, p = [0];
|
|
17
17
|
Object.keys(s).forEach((t, O) => {
|
|
18
|
-
if (!
|
|
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,
|
|
24
|
+
s[t] = l, p[v] |= M, u.current[l === b ? "delete" : "add"](t);
|
|
25
25
|
});
|
|
26
|
-
const m =
|
|
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 }),
|
|
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
|
-
},
|
|
32
|
+
}, q = P;
|
|
33
33
|
export {
|
|
34
|
-
|
|
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
|
|
7
|
-
const
|
|
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] ||
|
|
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
|
-
|
|
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
|
+
};
|