@adyen/adyen-platform-experience-web 1.8.0 → 1.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/adyen-platform-experience-web.css +1 -1
- package/dist/{angle-right-DYQ6toZV.cjs → angle-right-BWzcy0ip.cjs} +2 -2
- package/dist/{angle-right-DYQ6toZV.cjs.map → angle-right-BWzcy0ip.cjs.map} +1 -1
- package/dist/{checkmark-BvHe3XDD.cjs → checkmark-DfFWWmc9.cjs} +2 -2
- package/dist/{checkmark-BvHe3XDD.cjs.map → checkmark-DfFWWmc9.cjs.map} +1 -1
- package/dist/{checkmark-circle-fill-BBm-SExF.cjs → checkmark-circle-fill-6Nbm2YQh.cjs} +2 -2
- package/dist/{checkmark-circle-fill-BBm-SExF.cjs.map → checkmark-circle-fill-6Nbm2YQh.cjs.map} +1 -1
- package/dist/{checkmark-square-fill-GaJYfE7I.cjs → checkmark-square-fill-U1_7-7K9.cjs} +2 -2
- package/dist/{checkmark-square-fill-GaJYfE7I.cjs.map → checkmark-square-fill-U1_7-7K9.cjs.map} +1 -1
- package/dist/{chevron-down-DiKqNmGu.cjs → chevron-down-BSR5ajTW.cjs} +2 -2
- package/dist/{chevron-down-DiKqNmGu.cjs.map → chevron-down-BSR5ajTW.cjs.map} +1 -1
- package/dist/{chevron-left-D2wsIWaC.cjs → chevron-left-C1QqpQ4S.cjs} +2 -2
- package/dist/{chevron-left-D2wsIWaC.cjs.map → chevron-left-C1QqpQ4S.cjs.map} +1 -1
- package/dist/{chevron-right-ClwwBk5G.cjs → chevron-right-C9cu2vQN.cjs} +2 -2
- package/dist/{chevron-right-ClwwBk5G.cjs.map → chevron-right-C9cu2vQN.cjs.map} +1 -1
- package/dist/{chevron-up-CjIuhiba.cjs → chevron-up-QJhPvS-j.cjs} +2 -2
- package/dist/{chevron-up-CjIuhiba.cjs.map → chevron-up-QJhPvS-j.cjs.map} +1 -1
- package/dist/cjs/index.js +1 -1
- package/dist/{copy-DWaCTvhj.cjs → copy-CvOYWx2Z.cjs} +2 -2
- package/dist/{copy-DWaCTvhj.cjs.map → copy-CvOYWx2Z.cjs.map} +1 -1
- package/dist/{cross-BaBGJ7V7.cjs → cross-C1NPFb0O.cjs} +2 -2
- package/dist/{cross-BaBGJ7V7.cjs.map → cross-C1NPFb0O.cjs.map} +1 -1
- package/dist/{cross-circle-fill-D1r6vt_G.cjs → cross-circle-fill-BIL8DKBy.cjs} +2 -2
- package/dist/{cross-circle-fill-D1r6vt_G.cjs.map → cross-circle-fill-BIL8DKBy.cjs.map} +1 -1
- package/dist/{download-BwlYYru1.cjs → download-B0HG76gQ.cjs} +2 -2
- package/dist/{download-BwlYYru1.cjs.map → download-B0HG76gQ.cjs.map} +1 -1
- package/dist/es/assets/translations/en-US.json.js +4 -0
- package/dist/es/components/external/CapitalOffer/components/CapitalOfferSummary/CapitalOfferSummary.js +21 -21
- package/dist/es/components/external/CapitalOverview/components/GrantDetails/GrantDetails.js +24 -24
- package/dist/es/components/external/CapitalOverview/components/GrantItem/GrantItem.js +6 -6
- package/dist/es/components/external/DisputeManagement/components/DefendDisputeFlow/DefendDisputeFlow.js +21 -17
- package/dist/es/components/external/DisputeManagement/components/DefendDisputeFlow/DefendDisputeReason.js +93 -90
- package/dist/es/components/external/DisputeManagement/components/DisputesData/DisputeData.js +113 -113
- package/dist/es/components/external/DisputesOverview/components/DisputesOverview/DisputesOverview.js +1 -1
- package/dist/es/components/external/TransactionsOverview/components/SummaryItem/SummaryItem.js +18 -18
- package/dist/es/components/external/TransactionsOverview/components/TransactionTotalItem/TransactionTotalItem.js +2 -2
- package/dist/es/components/external/TransactionsOverview/components/TransactionTotals/TotalsCard.js +17 -17
- package/dist/es/components/external/TransactionsOverview/components/TransactionsTable/TransactionsTable.js +26 -26
- package/dist/es/components/external/TransactionsOverview/components/utils.js +6 -5
- package/dist/es/components/internal/Calendar/hooks/useTimezone.js +20 -20
- package/dist/es/components/internal/CopyText/CopyText.js +49 -68
- package/dist/es/components/internal/DatePicker/components/TimeRangeSelector/useTimeRangeSelection.js +17 -16
- package/dist/es/components/internal/FormFields/InputBase.js +59 -52
- package/dist/es/components/internal/FormFields/utils.js +20 -0
- package/dist/es/components/internal/Tooltip/Tooltip.js +14 -14
- package/dist/es/components/types.js +1 -1
- package/dist/es/components/utils/capital/getCapitalErrorMessage.js +6 -6
- package/dist/es/components/utils/disputes/getDisputesErrorMessage.js +3 -3
- package/dist/es/core/Analytics/analytics/customTranslations.js +6 -6
- package/dist/es/core/Http/utils.js +1 -1
- package/dist/es/core/Localization/datetime/restamper/restamper.js +1 -1
- package/dist/es/core/Localization/datetime/restamper/utils.js +21 -21
- package/dist/es/core/core.js +1 -1
- package/dist/es/hooks/useAnalytics/useAnalytics.js +1 -1
- package/dist/es/hooks/useDefaultOverviewFilterParams.js +12 -12
- package/dist/es/primitives/async/abortable/main.js +22 -21
- package/dist/{external-link-C2HjWZuO.cjs → external-link-BpOC7Iux.cjs} +2 -2
- package/dist/{external-link-C2HjWZuO.cjs.map → external-link-BpOC7Iux.cjs.map} +1 -1
- package/dist/{filter-BIRwG0Vl.cjs → filter-D2r4Jsb0.cjs} +2 -2
- package/dist/{filter-BIRwG0Vl.cjs.map → filter-D2r4Jsb0.cjs.map} +1 -1
- package/dist/index-C2bfolFC.cjs +12 -0
- package/dist/index-C2bfolFC.cjs.map +1 -0
- package/dist/{info-filled-vKjjns_Y.cjs → info-filled-BnyHuXP-.cjs} +2 -2
- package/dist/{info-filled-vKjjns_Y.cjs.map → info-filled-BnyHuXP-.cjs.map} +1 -1
- package/dist/{minus-circle-outline-eV-2HTVp.cjs → minus-circle-outline-BCQ8qMpL.cjs} +2 -2
- package/dist/{minus-circle-outline-eV-2HTVp.cjs.map → minus-circle-outline-BCQ8qMpL.cjs.map} +1 -1
- package/dist/{plus-BBN-BevV.cjs → plus-C4IhUDjd.cjs} +2 -2
- package/dist/{plus-BBN-BevV.cjs.map → plus-C4IhUDjd.cjs.map} +1 -1
- package/dist/{plus-circle-outline-D9hOKkhU.cjs → plus-circle-outline-Di_cvYHz.cjs} +2 -2
- package/dist/{plus-circle-outline-D9hOKkhU.cjs.map → plus-circle-outline-Di_cvYHz.cjs.map} +1 -1
- package/dist/{square-CTh_Pt6M.cjs → square-CxVyMMY-.cjs} +2 -2
- package/dist/{square-CTh_Pt6M.cjs.map → square-CxVyMMY-.cjs.map} +1 -1
- package/dist/{trash-can-DLq5jE_J.cjs → trash-can-DJheGbfF.cjs} +2 -2
- package/dist/{trash-can-DLq5jE_J.cjs.map → trash-can-DJheGbfF.cjs.map} +1 -1
- package/dist/types/components/external/DisputeManagement/components/DefendDisputeFlow/DefendDisputeFlow.d.ts.map +1 -1
- package/dist/types/components/external/DisputeManagement/components/DefendDisputeFlow/DefendDisputeReason.d.ts.map +1 -1
- package/dist/types/components/external/DisputeManagement/components/DisputesData/DisputeData.d.ts.map +1 -1
- package/dist/types/components/external/TransactionsOverview/components/SummaryItem/SummaryItem.d.ts +1 -1
- package/dist/types/components/external/TransactionsOverview/components/SummaryItem/SummaryItem.d.ts.map +1 -1
- package/dist/types/components/external/TransactionsOverview/components/SummaryItem/types.d.ts +2 -2
- package/dist/types/components/external/TransactionsOverview/components/SummaryItem/types.d.ts.map +1 -1
- package/dist/types/components/external/TransactionsOverview/components/TransactionTotalItem/TransactionTotalItem.d.ts +1 -1
- package/dist/types/components/external/TransactionsOverview/components/TransactionTotalItem/TransactionTotalItem.d.ts.map +1 -1
- package/dist/types/components/external/TransactionsOverview/components/TransactionTotalItem/types.d.ts +1 -1
- package/dist/types/components/external/TransactionsOverview/components/TransactionTotalItem/types.d.ts.map +1 -1
- package/dist/types/components/external/TransactionsOverview/components/utils.d.ts.map +1 -1
- package/dist/types/components/internal/Calendar/hooks/useTimezone.d.ts.map +1 -1
- package/dist/types/components/internal/CopyText/CopyText.d.ts +3 -3
- package/dist/types/components/internal/CopyText/CopyText.d.ts.map +1 -1
- package/dist/types/components/internal/DatePicker/components/TimeRangeSelector/useTimeRangeSelection.d.ts +3 -19
- package/dist/types/components/internal/DatePicker/components/TimeRangeSelector/useTimeRangeSelection.d.ts.map +1 -1
- package/dist/types/components/internal/FormFields/InputBase.d.ts.map +1 -1
- package/dist/types/components/internal/FormFields/types.d.ts +1 -2
- package/dist/types/components/internal/FormFields/types.d.ts.map +1 -1
- package/dist/types/components/internal/FormFields/utils.d.ts +9 -0
- package/dist/types/components/internal/FormFields/utils.d.ts.map +1 -0
- package/dist/types/components/internal/StructuredList/useStructuredListItem.d.ts +1 -1
- package/dist/types/components/internal/Tooltip/Tooltip.d.ts +1 -1
- package/dist/types/components/internal/Tooltip/types.d.ts +1 -1
- package/dist/types/components/types.d.ts +2 -1
- package/dist/types/components/types.d.ts.map +1 -1
- package/dist/types/core/Analytics/analytics/customTranslations.d.ts.map +1 -1
- package/dist/types/core/Localization/datetime/restamper/utils.d.ts.map +1 -1
- package/dist/types/core/utils.d.ts.map +1 -1
- package/dist/types/hooks/useDefaultOverviewFilterParams.d.ts +14 -20
- package/dist/types/hooks/useDefaultOverviewFilterParams.d.ts.map +1 -1
- package/dist/types/primitives/async/abortable/main.d.ts.map +1 -1
- package/dist/types/primitives/async/abortable/types.d.ts +1 -1
- package/dist/types/primitives/async/abortable/types.d.ts.map +1 -1
- package/dist/types/translations/index.d.ts +4 -0
- package/dist/types/translations/index.d.ts.map +1 -1
- package/dist/{upload-Cbt8Rwse.cjs → upload-CTy5JC9H.cjs} +2 -2
- package/dist/{upload-Cbt8Rwse.cjs.map → upload-CTy5JC9H.cjs.map} +1 -1
- package/dist/{warning-DB0fHdXY.cjs → warning-CUSU9so2.cjs} +2 -2
- package/dist/{warning-DB0fHdXY.cjs.map → warning-CUSU9so2.cjs.map} +1 -1
- package/dist/{warning-filled-B14QLF2h.cjs → warning-filled-OlZVURzS.cjs} +2 -2
- package/dist/{warning-filled-B14QLF2h.cjs.map → warning-filled-OlZVURzS.cjs.map} +1 -1
- package/package.json +2 -2
- package/dist/index-COVW71Qe.cjs +0 -12
- package/dist/index-COVW71Qe.cjs.map +0 -1
|
@@ -1,73 +1,80 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { ARIA_ERROR_SUFFIX as
|
|
3
|
-
import
|
|
4
|
-
import { forwardRef as
|
|
5
|
-
import { useCallback as
|
|
1
|
+
import { jsx as o } from "../../../external/preact/jsx-runtime/dist/jsxRuntime.module.js";
|
|
2
|
+
import { ARIA_ERROR_SUFFIX as y } from "../../../core/Errors/constants.js";
|
|
3
|
+
import V from "classnames";
|
|
4
|
+
import { forwardRef as k } from "../../../external/preact/compat/dist/compat.module.js";
|
|
5
|
+
import { useCallback as a } from "../../../external/preact/hooks/dist/hooks.module.js";
|
|
6
|
+
import { filterDisallowedCharacters as A } from "./utils.js";
|
|
6
7
|
/* empty css */
|
|
7
|
-
import { Fragment as
|
|
8
|
-
import { hasOwnProperty as
|
|
9
|
-
function
|
|
10
|
-
const {
|
|
11
|
-
|
|
12
|
-
const
|
|
13
|
-
(
|
|
14
|
-
|
|
8
|
+
import { Fragment as O } from "../../../external/preact/dist/preact.module.js";
|
|
9
|
+
import { hasOwnProperty as j } from "../../../utils/struct/property.js";
|
|
10
|
+
function v({ onInput: t, onKeyUp: n, trimOnBlur: u, onBlurHandler: e, onBlur: s, onFocusHandler: p, errorMessage: h, onKeyDown: r, ...d }, C) {
|
|
11
|
+
const { classNameModifiers: l, isInvalid: c, isValid: I, readonly: $ = !1, type: m, uniqueId: f, isCollatingErrors: g, disabled: N } = d;
|
|
12
|
+
j(d, "onChange") && console.error("Error: Form fields that rely on InputBase may not have an onChange property");
|
|
13
|
+
const R = a(
|
|
14
|
+
(i) => {
|
|
15
|
+
t == null || t(i);
|
|
15
16
|
},
|
|
16
|
-
[
|
|
17
|
-
),
|
|
18
|
-
(
|
|
19
|
-
|
|
17
|
+
[t]
|
|
18
|
+
), b = a(
|
|
19
|
+
(i) => {
|
|
20
|
+
n && n(i);
|
|
20
21
|
},
|
|
21
|
-
[
|
|
22
|
-
),
|
|
23
|
-
(
|
|
24
|
-
e == null || e(
|
|
22
|
+
[n]
|
|
23
|
+
), x = a(
|
|
24
|
+
(i) => {
|
|
25
|
+
e == null || e(i), u && (i.target.value = i.target.value.trim()), s == null || s(i);
|
|
25
26
|
},
|
|
26
|
-
[
|
|
27
|
-
),
|
|
28
|
-
(
|
|
29
|
-
|
|
27
|
+
[s, e, u]
|
|
28
|
+
), E = a(
|
|
29
|
+
(i) => {
|
|
30
|
+
p == null || p(i);
|
|
30
31
|
},
|
|
31
|
-
[
|
|
32
|
-
),
|
|
32
|
+
[p]
|
|
33
|
+
), _ = V(
|
|
33
34
|
"adyen-pe-input",
|
|
34
|
-
[`adyen-pe-input--${
|
|
35
|
-
|
|
35
|
+
[`adyen-pe-input--${m}`],
|
|
36
|
+
d.className,
|
|
36
37
|
{
|
|
37
|
-
"adyen-pe-input--invalid":
|
|
38
|
-
"adyen-pe-input--valid":
|
|
38
|
+
"adyen-pe-input--invalid": c,
|
|
39
|
+
"adyen-pe-input--valid": I
|
|
39
40
|
},
|
|
40
|
-
|
|
41
|
-
),
|
|
42
|
-
|
|
43
|
-
|
|
41
|
+
l == null ? void 0 : l.map((i) => `adyen-pe-input--${i}`)
|
|
42
|
+
), q = a(
|
|
43
|
+
(i) => {
|
|
44
|
+
A({ event: i, inputType: m, onValidInput: () => r == null ? void 0 : r(i) });
|
|
45
|
+
},
|
|
46
|
+
[m, r]
|
|
47
|
+
), { classNameModifiers: w, uniqueId: F, isInvalid: S, isValid: T, isCollatingErrors: U, ...P } = d;
|
|
48
|
+
return /* @__PURE__ */ o(O, { children: [
|
|
49
|
+
/* @__PURE__ */ o(
|
|
44
50
|
"input",
|
|
45
51
|
{
|
|
46
|
-
id:
|
|
47
|
-
...
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
"aria-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
52
|
+
id: f,
|
|
53
|
+
...P,
|
|
54
|
+
onKeyDown: q,
|
|
55
|
+
type: m,
|
|
56
|
+
className: _,
|
|
57
|
+
readOnly: $,
|
|
58
|
+
"aria-describedby": g ? void 0 : `${f}${y}`,
|
|
59
|
+
"aria-invalid": c,
|
|
60
|
+
onInput: R,
|
|
61
|
+
onBlurCapture: x,
|
|
62
|
+
onFocus: E,
|
|
63
|
+
onKeyUp: b,
|
|
64
|
+
disabled: N,
|
|
65
|
+
ref: C
|
|
59
66
|
}
|
|
60
67
|
),
|
|
61
|
-
|
|
68
|
+
c && h && /* @__PURE__ */ o("span", { className: "adyen-pe-input__invalid-value", id: `${f}${y}`, children: h })
|
|
62
69
|
] });
|
|
63
70
|
}
|
|
64
|
-
|
|
71
|
+
v.defaultProps = {
|
|
65
72
|
type: "text",
|
|
66
73
|
classNameModifiers: [],
|
|
67
74
|
onInput: () => {
|
|
68
75
|
}
|
|
69
76
|
};
|
|
70
|
-
const
|
|
77
|
+
const Z = k(v);
|
|
71
78
|
export {
|
|
72
|
-
|
|
79
|
+
Z as default
|
|
73
80
|
};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { InteractionKeyCode as t } from "../../types.js";
|
|
2
|
+
const u = [
|
|
3
|
+
t.BACKSPACE,
|
|
4
|
+
t.DELETE,
|
|
5
|
+
t.ARROW_LEFT,
|
|
6
|
+
t.ARROW_RIGHT,
|
|
7
|
+
t.ARROW_UP,
|
|
8
|
+
t.ARROW_DOWN,
|
|
9
|
+
t.TAB
|
|
10
|
+
], R = ({ event: s, inputType: c, onValidInput: o }) => {
|
|
11
|
+
const i = s.currentTarget, { key: e } = s, n = /^[0-9.,-]$/.test(e), l = /[.,]/.test(i.value), a = e === "." || e === ",", r = u.includes(e);
|
|
12
|
+
if (c === "number" && !r && (!n || l && a)) {
|
|
13
|
+
s.preventDefault();
|
|
14
|
+
return;
|
|
15
|
+
}
|
|
16
|
+
o(s);
|
|
17
|
+
};
|
|
18
|
+
export {
|
|
19
|
+
R as filterDisallowedCharacters
|
|
20
|
+
};
|
|
@@ -1,30 +1,30 @@
|
|
|
1
1
|
import { jsx as e } from "../../../external/preact/jsx-runtime/dist/jsxRuntime.module.js";
|
|
2
2
|
import T from "../Popover/Popover.js";
|
|
3
3
|
import { PopoverContainerVariant as P } from "../Popover/types.js";
|
|
4
|
-
import { useTooltipListeners as
|
|
5
|
-
import { TypographyVariant as
|
|
4
|
+
import { useTooltipListeners as I } from "./useTooltipListeners.js";
|
|
5
|
+
import { TypographyVariant as N, TypographyElement as b } from "../Typography/types.js";
|
|
6
6
|
import v from "../Typography/Typography.js";
|
|
7
7
|
import x from "../../../hooks/element/useUniqueIdentifier.js";
|
|
8
8
|
import E from "classnames";
|
|
9
|
-
import { cloneElement as
|
|
10
|
-
import { useState as S, useMemo as
|
|
9
|
+
import { cloneElement as C, Fragment as O } from "../../../external/preact/dist/preact.module.js";
|
|
10
|
+
import { useState as S, useMemo as V } from "../../../external/preact/hooks/dist/hooks.module.js";
|
|
11
11
|
/* empty css */
|
|
12
|
-
const
|
|
12
|
+
const c = (o) => typeof o == "string", R = ({ content: o, children: t, showTooltip: n, position: f, isUnderlineVisible: a = !1 }) => {
|
|
13
13
|
var m;
|
|
14
|
-
const [r,
|
|
14
|
+
const [r, u] = S(null), { isVisible: l, listeners: g } = I(), s = x(), p = l || !!n, y = V(
|
|
15
15
|
() => {
|
|
16
16
|
var i;
|
|
17
|
-
return E((i = t == null ? void 0 : t.props) == null ? void 0 : i.className, "adyen-pe-tooltip-target", { "adyen-pe-tooltip-target--
|
|
17
|
+
return E((i = t == null ? void 0 : t.props) == null ? void 0 : i.className, "adyen-pe-tooltip-target", { "adyen-pe-tooltip-target--underlined": a });
|
|
18
18
|
},
|
|
19
|
-
[(m = t == null ? void 0 : t.props) == null ? void 0 : m.className,
|
|
19
|
+
[(m = t == null ? void 0 : t.props) == null ? void 0 : m.className, a]
|
|
20
20
|
);
|
|
21
21
|
return /* @__PURE__ */ e(O, { children: [
|
|
22
|
-
t ?
|
|
22
|
+
t ? C(t, {
|
|
23
23
|
...t.props,
|
|
24
24
|
...g,
|
|
25
25
|
...p && (r != null && r.id) ? { "aria-describedby": r.id } : {},
|
|
26
26
|
className: y,
|
|
27
|
-
ref:
|
|
27
|
+
ref: s,
|
|
28
28
|
role: "button",
|
|
29
29
|
tabIndex: 0
|
|
30
30
|
}) : null,
|
|
@@ -33,15 +33,15 @@ const C = (o) => typeof o == "string", U = ({ content: o, children: t, showToolt
|
|
|
33
33
|
{
|
|
34
34
|
position: f,
|
|
35
35
|
variant: P.TOOLTIP,
|
|
36
|
-
targetElement:
|
|
37
|
-
setPopoverElement:
|
|
36
|
+
targetElement: s,
|
|
37
|
+
setPopoverElement: u,
|
|
38
38
|
fitPosition: !0,
|
|
39
39
|
open: !0,
|
|
40
|
-
children: o &&
|
|
40
|
+
children: o && c(o) ? /* @__PURE__ */ e(v, { el: b.DIV, variant: N.CAPTION, children: o }) : o
|
|
41
41
|
}
|
|
42
42
|
)
|
|
43
43
|
] });
|
|
44
44
|
};
|
|
45
45
|
export {
|
|
46
|
-
|
|
46
|
+
R as Tooltip
|
|
47
47
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var E = /* @__PURE__ */ ((A) => (A.ARROW_DOWN = "ArrowDown", A.ARROW_LEFT = "ArrowLeft", A.ARROW_RIGHT = "ArrowRight", A.ARROW_UP = "ArrowUp", A.BACKSPACE = "Backspace", A.END = "End", A.ENTER = "Enter", A.ESCAPE = "Escape", A.HOME = "Home", A.PAGE_DOWN = "PageDown", A.PAGE_UP = "PageUp", A.SPACE = "Space", A.TAB = "Tab", A))(E || {}), R = /* @__PURE__ */ ((A) => (A.BALANCE_ACCOUNT = "balanceAccount", A.CATEGORIES = "categories", A.CURRENCIES = "currencies", A.CREATED_SINCE = "createdSince", A.CREATED_UNTIL = "createdUntil", A.STATUSES = "statuses", A.MIN_AMOUNT = "minAmount", A.MAX_AMOUNT = "maxAmount", A))(R || {});
|
|
1
|
+
var E = /* @__PURE__ */ ((A) => (A.ARROW_DOWN = "ArrowDown", A.ARROW_LEFT = "ArrowLeft", A.ARROW_RIGHT = "ArrowRight", A.ARROW_UP = "ArrowUp", A.BACKSPACE = "Backspace", A.END = "End", A.ENTER = "Enter", A.ESCAPE = "Escape", A.HOME = "Home", A.PAGE_DOWN = "PageDown", A.PAGE_UP = "PageUp", A.SPACE = "Space", A.TAB = "Tab", A.DELETE = "Delete", A))(E || {}), R = /* @__PURE__ */ ((A) => (A.BALANCE_ACCOUNT = "balanceAccount", A.CATEGORIES = "categories", A.CURRENCIES = "currencies", A.CREATED_SINCE = "createdSince", A.CREATED_UNTIL = "createdUntil", A.STATUSES = "statuses", A.MIN_AMOUNT = "minAmount", A.MAX_AMOUNT = "maxAmount", A))(R || {});
|
|
2
2
|
export {
|
|
3
3
|
R as FilterParam,
|
|
4
4
|
E as InteractionKeyCode
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as s } from "../../../external/preact/jsx-runtime/dist/jsxRuntime.module.js";
|
|
2
|
-
import { getCommonErrorMessage as
|
|
2
|
+
import { getCommonErrorMessage as m } from "../getCommonErrorCode.js";
|
|
3
3
|
import n from "../../internal/CopyText/CopyText.js";
|
|
4
4
|
const o = {
|
|
5
5
|
contactSupportForHelp: "common.errors.contactSupport",
|
|
@@ -12,8 +12,8 @@ const o = {
|
|
|
12
12
|
refreshComponent: !0
|
|
13
13
|
}, g = (e, r) => {
|
|
14
14
|
if (!e) return a;
|
|
15
|
-
const
|
|
16
|
-
if (
|
|
15
|
+
const i = m(e, r);
|
|
16
|
+
if (i) return i;
|
|
17
17
|
const t = r ? "common.errors.errorCode" : "common.errors.errorCodeSupport";
|
|
18
18
|
switch (e.errorCode) {
|
|
19
19
|
case void 0:
|
|
@@ -23,7 +23,7 @@ const o = {
|
|
|
23
23
|
title: o.somethingWentWrong,
|
|
24
24
|
message: [o.couldNotLoadOffers, t],
|
|
25
25
|
translationValues: {
|
|
26
|
-
[t]: e.requestId ? /* @__PURE__ */ s(n, { copyButtonAriaLabelKey: "common.actions.copy.labels.errorCode", textToCopy: e.requestId }) : null
|
|
26
|
+
[t]: e.requestId ? /* @__PURE__ */ s(n, { isUnderlineVisible: !0, copyButtonAriaLabelKey: "common.actions.copy.labels.errorCode", textToCopy: e.requestId }) : null
|
|
27
27
|
},
|
|
28
28
|
onContactSupport: r
|
|
29
29
|
};
|
|
@@ -32,7 +32,7 @@ const o = {
|
|
|
32
32
|
title: "capital.offer.common.errors.accountInactive",
|
|
33
33
|
message: [o.couldNotLoadOffers, t],
|
|
34
34
|
translationValues: {
|
|
35
|
-
[t]: e.requestId ? /* @__PURE__ */ s(n, { copyButtonAriaLabelKey: "common.actions.copy.labels.errorCode", textToCopy: e.requestId }) : null
|
|
35
|
+
[t]: e.requestId ? /* @__PURE__ */ s(n, { isUnderlineVisible: !0, copyButtonAriaLabelKey: "common.actions.copy.labels.errorCode", textToCopy: e.requestId }) : null
|
|
36
36
|
},
|
|
37
37
|
onContactSupport: r
|
|
38
38
|
};
|
|
@@ -41,7 +41,7 @@ const o = {
|
|
|
41
41
|
title: o.somethingWentWrong,
|
|
42
42
|
message: ["capital.offer.common.errors.cannotContinue", t],
|
|
43
43
|
translationValues: {
|
|
44
|
-
[t]: e.requestId ? /* @__PURE__ */ s(n, { copyButtonAriaLabelKey: "common.actions.copy.labels.errorCode", textToCopy: e.requestId }) : null
|
|
44
|
+
[t]: e.requestId ? /* @__PURE__ */ s(n, { isUnderlineVisible: !0, copyButtonAriaLabelKey: "common.actions.copy.labels.errorCode", textToCopy: e.requestId }) : null
|
|
45
45
|
},
|
|
46
46
|
onContactSupport: r
|
|
47
47
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as n } from "../../../external/preact/jsx-runtime/dist/jsxRuntime.module.js";
|
|
2
2
|
import { UNDEFINED_ERROR as t } from "../getCommonErrorCode.js";
|
|
3
3
|
import m from "../../internal/CopyText/CopyText.js";
|
|
4
|
-
const
|
|
4
|
+
const c = (e, o, r) => {
|
|
5
5
|
if (!e) return t;
|
|
6
6
|
switch (e.errorCode) {
|
|
7
7
|
case void 0:
|
|
@@ -16,7 +16,7 @@ const u = (e, o, r) => {
|
|
|
16
16
|
title: "common.errors.somethingWentWrong",
|
|
17
17
|
message: [o, s],
|
|
18
18
|
translationValues: {
|
|
19
|
-
[s]: e.requestId ? /* @__PURE__ */ n(m, { copyButtonAriaLabelKey: "common.actions.copy.labels.errorCode", textToCopy: e.requestId }) : null
|
|
19
|
+
[s]: e.requestId ? /* @__PURE__ */ n(m, { isUnderlineVisible: !0, copyButtonAriaLabelKey: "common.actions.copy.labels.errorCode", textToCopy: e.requestId }) : null
|
|
20
20
|
},
|
|
21
21
|
onContactSupport: r
|
|
22
22
|
};
|
|
@@ -32,5 +32,5 @@ const u = (e, o, r) => {
|
|
|
32
32
|
}
|
|
33
33
|
};
|
|
34
34
|
export {
|
|
35
|
-
|
|
35
|
+
c as getDisputesErrorMessage
|
|
36
36
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { encodeAnalyticsEvent as d } from "./utils.js";
|
|
2
1
|
import p from "../../../assets/translations/en-US.json.js";
|
|
3
|
-
import {
|
|
2
|
+
import { SUPPORTED_LOCALES as f } from "../../Localization/constants/localization.js";
|
|
3
|
+
import { encodeAnalyticsEvent as d } from "./utils.js";
|
|
4
4
|
const l = /* @__PURE__ */ new Set([
|
|
5
5
|
"account",
|
|
6
6
|
"accountBalance",
|
|
@@ -784,11 +784,11 @@ const l = /* @__PURE__ */ new Set([
|
|
|
784
784
|
"weCouldNotLoadYourPayouts",
|
|
785
785
|
"weCouldNotLoadYourReports",
|
|
786
786
|
"weCouldNotLoadYourTransactions"
|
|
787
|
-
]), m =
|
|
787
|
+
]), m = new Set(Object.keys(p)), g = (o) => {
|
|
788
788
|
const i = [], a = Object.keys(o);
|
|
789
789
|
if (a.length > 0)
|
|
790
790
|
for (const s of a)
|
|
791
|
-
if (
|
|
791
|
+
if (f.includes(s)) {
|
|
792
792
|
const t = o == null ? void 0 : o[s], n = t ? Object.keys(t) : [];
|
|
793
793
|
if ((n == null ? void 0 : n.length) > 0) {
|
|
794
794
|
const r = n.filter((e) => l.has(e));
|
|
@@ -805,7 +805,7 @@ const l = /* @__PURE__ */ new Set([
|
|
|
805
805
|
});
|
|
806
806
|
e && i.push(e);
|
|
807
807
|
}
|
|
808
|
-
const c = n.filter((e) =>
|
|
808
|
+
const c = n.filter((e) => m.has(e)), u = d({
|
|
809
809
|
event: "Customized translation",
|
|
810
810
|
properties: {
|
|
811
811
|
category: "PIE",
|
|
@@ -832,6 +832,6 @@ const l = /* @__PURE__ */ new Set([
|
|
|
832
832
|
return i;
|
|
833
833
|
};
|
|
834
834
|
export {
|
|
835
|
-
|
|
835
|
+
g as getCustomTranslationsAnalyticsPayload,
|
|
836
836
|
l as oldTranslationKeys
|
|
837
837
|
};
|
|
@@ -26,7 +26,7 @@ const p = (e) => {
|
|
|
26
26
|
}
|
|
27
27
|
}, T = (e) => {
|
|
28
28
|
var s;
|
|
29
|
-
const { headers: n = [], method: t = "GET" } = e, r = !e.versionless && "1.
|
|
29
|
+
const { headers: n = [], method: t = "GET" } = e, r = !e.versionless && "1.9.0", o = e.skipContentType ? void 0 : ((s = e.contentType) == null ? void 0 : s.toLowerCase()) ?? "application/json";
|
|
30
30
|
return {
|
|
31
31
|
method: t,
|
|
32
32
|
mode: "cors",
|
|
@@ -21,7 +21,7 @@ const d = (() => {
|
|
|
21
21
|
if (t.length === 0) return m.call(this, Date.now());
|
|
22
22
|
const e = t[0], r = new Date(e).getTime(), o = this.formatter ?? f;
|
|
23
23
|
return Object.freeze({
|
|
24
|
-
formatted: o == null ? void 0 : o.format(r),
|
|
24
|
+
formatted: o == null ? void 0 : o.format(new Date(r)),
|
|
25
25
|
offset: a(r, o),
|
|
26
26
|
timestamp: r
|
|
27
27
|
});
|
|
@@ -1,30 +1,30 @@
|
|
|
1
|
-
import { SYSTEM_TIMEZONE_FORMATTER as
|
|
2
|
-
import { EMPTY_ARRAY as
|
|
3
|
-
import { mod as
|
|
4
|
-
const
|
|
1
|
+
import { SYSTEM_TIMEZONE_FORMATTER as c, REGEX_TZ_OFFSET as r } from "./constants.js";
|
|
2
|
+
import { EMPTY_ARRAY as i } from "../../../../utils/value/constants.js";
|
|
3
|
+
import { mod as p } from "../../../../utils/value/number.js";
|
|
4
|
+
const E = /\+(?=-)|([+-]00:00)/g, O = /(^\D?)(\d)$/, S = ([t, e]) => (Math.abs(t * 60) + e) * (t < 0 ? -1 : 1), a = (t) => Object.freeze([
|
|
5
5
|
Math.floor(t / 60),
|
|
6
6
|
// offset hours
|
|
7
|
-
|
|
7
|
+
p(t, 60)
|
|
8
8
|
// offset minutes
|
|
9
|
-
]), _ = (t) => parseInt(t, 10) || 0,
|
|
9
|
+
]), _ = (t) => parseInt(t, 10) || 0, R = (t) => `GMT+${a(t).map((o) => `${o}`.replace(O, "$10$2")).join(":")}`.replace(E, ""), T = (t) => {
|
|
10
10
|
var s;
|
|
11
|
-
const e = ((s = t == null ? void 0 : t.match(
|
|
12
|
-
return
|
|
13
|
-
},
|
|
14
|
-
var
|
|
15
|
-
const s =
|
|
16
|
-
return
|
|
17
|
-
},
|
|
11
|
+
const e = ((s = t == null ? void 0 : t.match(r)) == null ? void 0 : s[0].replace("GMT", "").split(":", 2).map(_)) ?? i;
|
|
12
|
+
return S(e.concat(0, 0).slice(0, 2));
|
|
13
|
+
}, g = (t, e = c) => {
|
|
14
|
+
var n;
|
|
15
|
+
const s = new Date(t), o = T((n = c) == null ? void 0 : n.format(s));
|
|
16
|
+
return T(e == null ? void 0 : e.format(s)) - o;
|
|
17
|
+
}, m = (t, e, s = 1) => {
|
|
18
18
|
const { offset: o, timestamp: f } = t(e);
|
|
19
19
|
return f - o * s * 6e4;
|
|
20
|
-
},
|
|
20
|
+
}, u = (t, e) => m(t, e, 1), l = (t, e) => m(t, e, -1);
|
|
21
21
|
export {
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
22
|
+
S as computeTimezoneOffsetInMinutes,
|
|
23
|
+
a as computeTimezoneOffsetsFromMinutes,
|
|
24
|
+
R as getGMTSuffixForTimezoneOffset,
|
|
25
|
+
g as getTimezoneOffsetForTimestamp,
|
|
26
|
+
T as getTimezoneOffsetFromFormattedDateString,
|
|
27
27
|
_ as parseTimezoneOffset,
|
|
28
|
-
|
|
29
|
-
|
|
28
|
+
u as systemToTimezone,
|
|
29
|
+
l as timezoneToSystem
|
|
30
30
|
};
|
package/dist/es/core/core.js
CHANGED
|
@@ -8,7 +8,7 @@ const h = (o) => {
|
|
|
8
8
|
properties: i || {}
|
|
9
9
|
};
|
|
10
10
|
}, d = ({ userEvents: o, analyticsEnabled: t }) => {
|
|
11
|
-
const i = "1.
|
|
11
|
+
const i = "1.9.0", { i18n: f } = g(), r = a();
|
|
12
12
|
n(() => {
|
|
13
13
|
var c;
|
|
14
14
|
t && ((c = o.updateBaseTrackingPayload) == null || c.call(o, {
|
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
import { useState as
|
|
1
|
+
import { useState as l, useRef as f, useCallback as c, useEffect as T } from "../external/preact/hooks/dist/hooks.module.js";
|
|
2
2
|
import { FilterParam as t } from "../components/types.js";
|
|
3
|
-
import { getTimeRangeSelectionDefaultPresetOptions as
|
|
3
|
+
import { getTimeRangeSelectionDefaultPresetOptions as p } from "../components/internal/DatePicker/components/TimeRangeSelector/useTimeRangeSelection.js";
|
|
4
4
|
import { DEFAULT_TRANSACTIONS_OVERVIEW_MULTI_SELECTION_FILTER_PARAMS as u } from "../components/external/TransactionsOverview/components/MultiSelectionFilter/useMultiSelectionFilter/constants.js";
|
|
5
|
-
const A = (
|
|
6
|
-
const
|
|
5
|
+
const A = (r, e) => {
|
|
6
|
+
const a = p(), s = e ? `common.filters.types.date.rangeSelect.options.${e}` : "common.filters.types.date.rangeSelect.options.last30Days", { from: o, to: n } = a[s];
|
|
7
7
|
return { defaultFilterParams: {
|
|
8
|
-
...
|
|
8
|
+
...r === "transactions" && {
|
|
9
9
|
...u,
|
|
10
10
|
[t.MIN_AMOUNT]: void 0,
|
|
11
11
|
[t.MAX_AMOUNT]: void 0
|
|
12
12
|
},
|
|
13
13
|
[t.BALANCE_ACCOUNT]: void 0,
|
|
14
|
-
[t.CREATED_SINCE]: new Date(
|
|
15
|
-
[t.CREATED_UNTIL]: new Date(
|
|
16
|
-
}, defaultTimeRange:
|
|
17
|
-
}, D = (
|
|
18
|
-
const [
|
|
14
|
+
[t.CREATED_SINCE]: new Date(o).toISOString(),
|
|
15
|
+
[t.CREATED_UNTIL]: new Date(n).toISOString()
|
|
16
|
+
}, defaultTimeRange: s, timeRangeOptions: a };
|
|
17
|
+
}, D = (r, e, a) => {
|
|
18
|
+
const [s, o] = l(Date.now()), n = A(r, a), m = f(n), i = c(() => o(Date.now()), [o]);
|
|
19
19
|
return T(() => {
|
|
20
|
-
|
|
21
|
-
}, [e,
|
|
20
|
+
i();
|
|
21
|
+
}, [e, i]), { defaultParams: m, nowTimestamp: s, refreshNowTimestamp: i };
|
|
22
22
|
};
|
|
23
23
|
export {
|
|
24
24
|
D as default
|
|
@@ -1,27 +1,28 @@
|
|
|
1
1
|
import { struct as d } from "../../../utils/struct/main.js";
|
|
2
|
-
import { getter as
|
|
3
|
-
import { isUndefined as
|
|
4
|
-
import { noop as
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
2
|
+
import { getter as b, enumerable as i } from "../../../utils/struct/property.js";
|
|
3
|
+
import { isUndefined as l } from "../../../utils/value/is.js";
|
|
4
|
+
import { noop as p } from "../../../utils/common.js";
|
|
5
|
+
import { boolOrFalse as u } from "../../../utils/value/bool.js";
|
|
6
|
+
const P = (n) => {
|
|
7
|
+
let r, t, o;
|
|
8
|
+
const a = () => {
|
|
9
|
+
if (l(r)) return;
|
|
10
|
+
const e = r.abort.bind(r);
|
|
11
|
+
r = void 0, e();
|
|
12
|
+
}, m = () => (o = new Promise((e, c) => {
|
|
12
13
|
if (t.addEventListener("abort", function _() {
|
|
13
|
-
t.removeEventListener("abort", _), c(
|
|
14
|
-
}), t.aborted) throw
|
|
15
|
-
}),
|
|
16
|
-
abort:
|
|
17
|
-
promise:
|
|
18
|
-
reason: n
|
|
19
|
-
refresh:
|
|
20
|
-
signal:
|
|
14
|
+
t.removeEventListener("abort", _), c(n);
|
|
15
|
+
}), t.aborted) throw n;
|
|
16
|
+
}), o.catch(p), o), s = (e = !1) => (u(e) && a(), l(r) && (r = new AbortController(), t = r.signal, o = m()), f), f = d({
|
|
17
|
+
abort: i(a),
|
|
18
|
+
promise: b(() => o),
|
|
19
|
+
reason: i(n),
|
|
20
|
+
refresh: i(s),
|
|
21
|
+
signal: b(() => t)
|
|
21
22
|
});
|
|
22
|
-
return
|
|
23
|
+
return s();
|
|
23
24
|
};
|
|
24
25
|
export {
|
|
25
|
-
|
|
26
|
-
|
|
26
|
+
P as createAbortable,
|
|
27
|
+
P as default
|
|
27
28
|
};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-
|
|
2
|
-
//# sourceMappingURL=external-link-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-C2bfolFC.cjs"),i=t=>e.u("svg",{width:11,height:11,viewBox:"0 0 11 11",fill:"none",xmlns:"http://www.w3.org/2000/svg",...t,children:e.u("path",{d:"M0.939453 9L8.18945 1.75H3.25011V0.25H10.7501V7.75H9.25011V2.81066L2.00011 10.0607L0.939453 9Z",fill:"#00112C"})});exports.default=i;
|
|
2
|
+
//# sourceMappingURL=external-link-BpOC7Iux.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"external-link-
|
|
1
|
+
{"version":3,"file":"external-link-BpOC7Iux.cjs","sources":["../src/images/icons/external-link.svg?component"],"sourcesContent":["import { jsx } from \"react/jsx-runtime\";\nconst SvgExternalLink = (props) => /* @__PURE__ */ jsx(\"svg\", { width: 11, height: 11, viewBox: \"0 0 11 11\", fill: \"none\", xmlns: \"http://www.w3.org/2000/svg\", ...props, children: /* @__PURE__ */ jsx(\"path\", { d: \"M0.939453 9L8.18945 1.75H3.25011V0.25H10.7501V7.75H9.25011V2.81066L2.00011 10.0607L0.939453 9Z\", fill: \"#00112C\" }) });\nexport default SvgExternalLink;\n"],"names":["SvgExternalLink","props","jsx"],"mappings":"wHACMA,EAAmBC,GAA0BC,EAAG,EAAC,MAAO,CAAE,MAAO,GAAI,OAAQ,GAAI,QAAS,YAAa,KAAM,OAAQ,MAAO,6BAA8B,GAAGD,EAAO,SAA0BC,EAAG,EAAC,OAAQ,CAAE,EAAG,iGAAkG,KAAM,SAAW,CAAA,CAAG,CAAA"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("./index-
|
|
2
|
-
//# sourceMappingURL=filter-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("./index-C2bfolFC.cjs"),t=e=>l.u("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",...e,children:l.u("path",{fill:"currentColor",d:"M1.25 1.25h13.5v2.8c0 .6-.24 1.17-.66 1.59l-4.01 4.01v1.97l-2.74 3.14H5.92v-5.1L1.91 5.63a2.3 2.3 0 0 1-.66-1.59zm1.5 1.5v1.3q0 .31.22.53l4.45 4.45v3.36l1.16-1.33V9.03l4.45-4.45a.8.8 0 0 0 .22-.53v-1.3z"})});exports.default=t;
|
|
2
|
+
//# sourceMappingURL=filter-D2r4Jsb0.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"filter-
|
|
1
|
+
{"version":3,"file":"filter-D2r4Jsb0.cjs","sources":["../src/images/icons/filter.svg?component"],"sourcesContent":["import { jsx } from \"react/jsx-runtime\";\nconst SvgFilter = (props) => /* @__PURE__ */ jsx(\"svg\", { xmlns: \"http://www.w3.org/2000/svg\", fill: \"none\", viewBox: \"0 0 16 16\", ...props, children: /* @__PURE__ */ jsx(\"path\", { fill: \"currentColor\", d: \"M1.25 1.25h13.5v2.8c0 .6-.24 1.17-.66 1.59l-4.01 4.01v1.97l-2.74 3.14H5.92v-5.1L1.91 5.63a2.3 2.3 0 0 1-.66-1.59zm1.5 1.5v1.3q0 .31.22.53l4.45 4.45v3.36l1.16-1.33V9.03l4.45-4.45a.8.8 0 0 0 .22-.53v-1.3z\" }) });\nexport default SvgFilter;\n"],"names":["SvgFilter","props","jsx"],"mappings":"wHACMA,EAAaC,GAA0BC,EAAAA,EAAI,MAAO,CAAE,MAAO,6BAA8B,KAAM,OAAQ,QAAS,YAAa,GAAGD,EAAO,SAA0BC,EAAAA,EAAI,OAAQ,CAAE,KAAM,eAAgB,EAAG,4MAA4M,CAAE,CAAG,CAAA"}
|