@adyen/adyen-platform-experience-web 1.8.1 → 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.
Files changed (118) hide show
  1. package/dist/adyen-platform-experience-web.css +1 -1
  2. package/dist/{angle-right-CqBNg1Jd.cjs → angle-right-BWzcy0ip.cjs} +2 -2
  3. package/dist/{angle-right-CqBNg1Jd.cjs.map → angle-right-BWzcy0ip.cjs.map} +1 -1
  4. package/dist/{checkmark-BuzVhITJ.cjs → checkmark-DfFWWmc9.cjs} +2 -2
  5. package/dist/{checkmark-BuzVhITJ.cjs.map → checkmark-DfFWWmc9.cjs.map} +1 -1
  6. package/dist/{checkmark-circle-fill-sWqXqQaT.cjs → checkmark-circle-fill-6Nbm2YQh.cjs} +2 -2
  7. package/dist/{checkmark-circle-fill-sWqXqQaT.cjs.map → checkmark-circle-fill-6Nbm2YQh.cjs.map} +1 -1
  8. package/dist/{checkmark-square-fill-CgBi1mN8.cjs → checkmark-square-fill-U1_7-7K9.cjs} +2 -2
  9. package/dist/{checkmark-square-fill-CgBi1mN8.cjs.map → checkmark-square-fill-U1_7-7K9.cjs.map} +1 -1
  10. package/dist/{chevron-down-BXRAXlb3.cjs → chevron-down-BSR5ajTW.cjs} +2 -2
  11. package/dist/{chevron-down-BXRAXlb3.cjs.map → chevron-down-BSR5ajTW.cjs.map} +1 -1
  12. package/dist/{chevron-left-Dv7eCbep.cjs → chevron-left-C1QqpQ4S.cjs} +2 -2
  13. package/dist/{chevron-left-Dv7eCbep.cjs.map → chevron-left-C1QqpQ4S.cjs.map} +1 -1
  14. package/dist/{chevron-right-oSxEpgMh.cjs → chevron-right-C9cu2vQN.cjs} +2 -2
  15. package/dist/{chevron-right-oSxEpgMh.cjs.map → chevron-right-C9cu2vQN.cjs.map} +1 -1
  16. package/dist/{chevron-up-BjxRPA6R.cjs → chevron-up-QJhPvS-j.cjs} +2 -2
  17. package/dist/{chevron-up-BjxRPA6R.cjs.map → chevron-up-QJhPvS-j.cjs.map} +1 -1
  18. package/dist/cjs/index.js +1 -1
  19. package/dist/{copy-BZ_tVVNm.cjs → copy-CvOYWx2Z.cjs} +2 -2
  20. package/dist/{copy-BZ_tVVNm.cjs.map → copy-CvOYWx2Z.cjs.map} +1 -1
  21. package/dist/{cross-DmEs1PdJ.cjs → cross-C1NPFb0O.cjs} +2 -2
  22. package/dist/{cross-DmEs1PdJ.cjs.map → cross-C1NPFb0O.cjs.map} +1 -1
  23. package/dist/{cross-circle-fill-B0G5mBER.cjs → cross-circle-fill-BIL8DKBy.cjs} +2 -2
  24. package/dist/{cross-circle-fill-B0G5mBER.cjs.map → cross-circle-fill-BIL8DKBy.cjs.map} +1 -1
  25. package/dist/{download-BoQIbQVr.cjs → download-B0HG76gQ.cjs} +2 -2
  26. package/dist/{download-BoQIbQVr.cjs.map → download-B0HG76gQ.cjs.map} +1 -1
  27. package/dist/es/assets/translations/en-US.json.js +4 -0
  28. package/dist/es/components/external/CapitalOffer/components/CapitalOfferSummary/CapitalOfferSummary.js +21 -21
  29. package/dist/es/components/external/CapitalOverview/components/GrantDetails/GrantDetails.js +24 -24
  30. package/dist/es/components/external/CapitalOverview/components/GrantItem/GrantItem.js +6 -6
  31. package/dist/es/components/external/DisputeManagement/components/DefendDisputeFlow/DefendDisputeFlow.js +21 -17
  32. package/dist/es/components/external/DisputeManagement/components/DefendDisputeFlow/DefendDisputeReason.js +93 -90
  33. package/dist/es/components/external/DisputeManagement/components/DisputesData/DisputeData.js +113 -113
  34. package/dist/es/components/external/DisputesOverview/components/DisputesOverview/DisputesOverview.js +1 -1
  35. package/dist/es/components/external/TransactionsOverview/components/SummaryItem/SummaryItem.js +18 -18
  36. package/dist/es/components/external/TransactionsOverview/components/TransactionTotalItem/TransactionTotalItem.js +2 -2
  37. package/dist/es/components/external/TransactionsOverview/components/TransactionTotals/TotalsCard.js +17 -17
  38. package/dist/es/components/external/TransactionsOverview/components/TransactionsTable/TransactionsTable.js +26 -26
  39. package/dist/es/components/external/TransactionsOverview/components/utils.js +6 -5
  40. package/dist/es/components/internal/Calendar/hooks/useTimezone.js +20 -20
  41. package/dist/es/components/internal/CopyText/CopyText.js +49 -68
  42. package/dist/es/components/internal/DatePicker/components/TimeRangeSelector/useTimeRangeSelection.js +17 -16
  43. package/dist/es/components/internal/FormFields/InputBase.js +59 -52
  44. package/dist/es/components/internal/FormFields/utils.js +20 -0
  45. package/dist/es/components/internal/Tooltip/Tooltip.js +14 -14
  46. package/dist/es/components/types.js +1 -1
  47. package/dist/es/components/utils/capital/getCapitalErrorMessage.js +6 -6
  48. package/dist/es/components/utils/disputes/getDisputesErrorMessage.js +3 -3
  49. package/dist/es/core/Http/utils.js +1 -1
  50. package/dist/es/core/Localization/datetime/restamper/restamper.js +1 -1
  51. package/dist/es/core/Localization/datetime/restamper/utils.js +21 -21
  52. package/dist/es/core/core.js +1 -1
  53. package/dist/es/hooks/useAnalytics/useAnalytics.js +1 -1
  54. package/dist/es/hooks/useDefaultOverviewFilterParams.js +12 -12
  55. package/dist/es/primitives/async/abortable/main.js +22 -21
  56. package/dist/{external-link-DJsH4sdl.cjs → external-link-BpOC7Iux.cjs} +2 -2
  57. package/dist/{external-link-DJsH4sdl.cjs.map → external-link-BpOC7Iux.cjs.map} +1 -1
  58. package/dist/{filter-COUahrYv.cjs → filter-D2r4Jsb0.cjs} +2 -2
  59. package/dist/{filter-COUahrYv.cjs.map → filter-D2r4Jsb0.cjs.map} +1 -1
  60. package/dist/index-C2bfolFC.cjs +12 -0
  61. package/dist/index-C2bfolFC.cjs.map +1 -0
  62. package/dist/{info-filled-DFkdeN1c.cjs → info-filled-BnyHuXP-.cjs} +2 -2
  63. package/dist/{info-filled-DFkdeN1c.cjs.map → info-filled-BnyHuXP-.cjs.map} +1 -1
  64. package/dist/{minus-circle-outline-CypCTJ1o.cjs → minus-circle-outline-BCQ8qMpL.cjs} +2 -2
  65. package/dist/{minus-circle-outline-CypCTJ1o.cjs.map → minus-circle-outline-BCQ8qMpL.cjs.map} +1 -1
  66. package/dist/{plus-CRupuRjc.cjs → plus-C4IhUDjd.cjs} +2 -2
  67. package/dist/{plus-CRupuRjc.cjs.map → plus-C4IhUDjd.cjs.map} +1 -1
  68. package/dist/{plus-circle-outline-CtKn_KEr.cjs → plus-circle-outline-Di_cvYHz.cjs} +2 -2
  69. package/dist/{plus-circle-outline-CtKn_KEr.cjs.map → plus-circle-outline-Di_cvYHz.cjs.map} +1 -1
  70. package/dist/{square-BgFnREAS.cjs → square-CxVyMMY-.cjs} +2 -2
  71. package/dist/{square-BgFnREAS.cjs.map → square-CxVyMMY-.cjs.map} +1 -1
  72. package/dist/{trash-can-yF1OyMGn.cjs → trash-can-DJheGbfF.cjs} +2 -2
  73. package/dist/{trash-can-yF1OyMGn.cjs.map → trash-can-DJheGbfF.cjs.map} +1 -1
  74. package/dist/types/components/external/DisputeManagement/components/DefendDisputeFlow/DefendDisputeFlow.d.ts.map +1 -1
  75. package/dist/types/components/external/DisputeManagement/components/DefendDisputeFlow/DefendDisputeReason.d.ts.map +1 -1
  76. package/dist/types/components/external/DisputeManagement/components/DisputesData/DisputeData.d.ts.map +1 -1
  77. package/dist/types/components/external/TransactionsOverview/components/SummaryItem/SummaryItem.d.ts +1 -1
  78. package/dist/types/components/external/TransactionsOverview/components/SummaryItem/SummaryItem.d.ts.map +1 -1
  79. package/dist/types/components/external/TransactionsOverview/components/SummaryItem/types.d.ts +2 -2
  80. package/dist/types/components/external/TransactionsOverview/components/SummaryItem/types.d.ts.map +1 -1
  81. package/dist/types/components/external/TransactionsOverview/components/TransactionTotalItem/TransactionTotalItem.d.ts +1 -1
  82. package/dist/types/components/external/TransactionsOverview/components/TransactionTotalItem/TransactionTotalItem.d.ts.map +1 -1
  83. package/dist/types/components/external/TransactionsOverview/components/TransactionTotalItem/types.d.ts +1 -1
  84. package/dist/types/components/external/TransactionsOverview/components/TransactionTotalItem/types.d.ts.map +1 -1
  85. package/dist/types/components/external/TransactionsOverview/components/utils.d.ts.map +1 -1
  86. package/dist/types/components/internal/Calendar/hooks/useTimezone.d.ts.map +1 -1
  87. package/dist/types/components/internal/CopyText/CopyText.d.ts +3 -3
  88. package/dist/types/components/internal/CopyText/CopyText.d.ts.map +1 -1
  89. package/dist/types/components/internal/DatePicker/components/TimeRangeSelector/useTimeRangeSelection.d.ts +3 -19
  90. package/dist/types/components/internal/DatePicker/components/TimeRangeSelector/useTimeRangeSelection.d.ts.map +1 -1
  91. package/dist/types/components/internal/FormFields/InputBase.d.ts.map +1 -1
  92. package/dist/types/components/internal/FormFields/types.d.ts +1 -2
  93. package/dist/types/components/internal/FormFields/types.d.ts.map +1 -1
  94. package/dist/types/components/internal/FormFields/utils.d.ts +9 -0
  95. package/dist/types/components/internal/FormFields/utils.d.ts.map +1 -0
  96. package/dist/types/components/internal/StructuredList/useStructuredListItem.d.ts +1 -1
  97. package/dist/types/components/internal/Tooltip/Tooltip.d.ts +1 -1
  98. package/dist/types/components/internal/Tooltip/types.d.ts +1 -1
  99. package/dist/types/components/types.d.ts +2 -1
  100. package/dist/types/components/types.d.ts.map +1 -1
  101. package/dist/types/core/Localization/datetime/restamper/utils.d.ts.map +1 -1
  102. package/dist/types/core/utils.d.ts.map +1 -1
  103. package/dist/types/hooks/useDefaultOverviewFilterParams.d.ts +14 -20
  104. package/dist/types/hooks/useDefaultOverviewFilterParams.d.ts.map +1 -1
  105. package/dist/types/primitives/async/abortable/main.d.ts.map +1 -1
  106. package/dist/types/primitives/async/abortable/types.d.ts +1 -1
  107. package/dist/types/primitives/async/abortable/types.d.ts.map +1 -1
  108. package/dist/types/translations/index.d.ts +4 -0
  109. package/dist/types/translations/index.d.ts.map +1 -1
  110. package/dist/{upload-De_fIMjD.cjs → upload-CTy5JC9H.cjs} +2 -2
  111. package/dist/{upload-De_fIMjD.cjs.map → upload-CTy5JC9H.cjs.map} +1 -1
  112. package/dist/{warning-B4wO4aGy.cjs → warning-CUSU9so2.cjs} +2 -2
  113. package/dist/{warning-B4wO4aGy.cjs.map → warning-CUSU9so2.cjs.map} +1 -1
  114. package/dist/{warning-filled-DJ2xUL06.cjs → warning-filled-OlZVURzS.cjs} +2 -2
  115. package/dist/{warning-filled-DJ2xUL06.cjs.map → warning-filled-OlZVURzS.cjs.map} +1 -1
  116. package/package.json +2 -2
  117. package/dist/index-uaN4wZbv.cjs +0 -12
  118. package/dist/index-uaN4wZbv.cjs.map +0 -1
@@ -1,73 +1,80 @@
1
- import { jsx as c } from "../../../external/preact/jsx-runtime/dist/jsxRuntime.module.js";
2
- import { ARIA_ERROR_SUFFIX as u } from "../../../core/Errors/constants.js";
3
- import k from "classnames";
4
- import { forwardRef as q } from "../../../external/preact/compat/dist/compat.module.js";
5
- import { useCallback as r } from "../../../external/preact/hooks/dist/hooks.module.js";
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 w } from "../../../external/preact/dist/preact.module.js";
8
- import { hasOwnProperty as P } from "../../../utils/struct/property.js";
9
- function h({ onInput: i, onKeyUp: d, trimOnBlur: l, onBlurHandler: e, onBlur: t, onFocusHandler: s, errorMessage: f, ...p }, v) {
10
- const { autoCorrect: A, classNameModifiers: m, isInvalid: n, isValid: C, readonly: I = !1, spellCheck: O, type: y, uniqueId: o, isCollatingErrors: $, disabled: g } = p;
11
- P(p, "onChange") && console.error("Error: Form fields that rely on InputBase may not have an onChange property");
12
- const N = r(
13
- (a) => {
14
- i == null || i(a);
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
- [i]
17
- ), R = r(
18
- (a) => {
19
- d && d(a);
17
+ [t]
18
+ ), b = a(
19
+ (i) => {
20
+ n && n(i);
20
21
  },
21
- [d]
22
- ), b = r(
23
- (a) => {
24
- e == null || e(a), l && (a.target.value = a.target.value.trim()), t == null || t(a);
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
- [t, e, l]
27
- ), x = r(
28
- (a) => {
29
- s == null || s(a);
27
+ [s, e, u]
28
+ ), E = a(
29
+ (i) => {
30
+ p == null || p(i);
30
31
  },
31
- [s]
32
- ), E = k(
32
+ [p]
33
+ ), _ = V(
33
34
  "adyen-pe-input",
34
- [`adyen-pe-input--${y}`],
35
- p.className,
35
+ [`adyen-pe-input--${m}`],
36
+ d.className,
36
37
  {
37
- "adyen-pe-input--invalid": n,
38
- "adyen-pe-input--valid": C
38
+ "adyen-pe-input--invalid": c,
39
+ "adyen-pe-input--valid": I
39
40
  },
40
- m == null ? void 0 : m.map((a) => `adyen-pe-input--${a}`)
41
- ), { classNameModifiers: V, uniqueId: j, isInvalid: D, isValid: F, isCollatingErrors: S, ..._ } = p;
42
- return /* @__PURE__ */ c(w, { children: [
43
- /* @__PURE__ */ c(
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: o,
47
- ..._,
48
- type: y,
49
- className: E,
50
- readOnly: I,
51
- "aria-describedby": $ ? void 0 : `${o}${u}`,
52
- "aria-invalid": n,
53
- onInput: N,
54
- onBlurCapture: b,
55
- onFocus: x,
56
- onKeyUp: R,
57
- disabled: g,
58
- ref: v
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
- n && f && /* @__PURE__ */ c("span", { className: "adyen-pe-input__invalid-value", id: `${o}${u}`, children: f })
68
+ c && h && /* @__PURE__ */ o("span", { className: "adyen-pe-input__invalid-value", id: `${f}${y}`, children: h })
62
69
  ] });
63
70
  }
64
- h.defaultProps = {
71
+ v.defaultProps = {
65
72
  type: "text",
66
73
  classNameModifiers: [],
67
74
  onInput: () => {
68
75
  }
69
76
  };
70
- const Q = q(h);
77
+ const Z = k(v);
71
78
  export {
72
- Q as default
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 b } from "./useTooltipListeners.js";
5
- import { TypographyVariant as I, TypographyElement as N } from "../Typography/types.js";
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 V, Fragment as O } from "../../../external/preact/dist/preact.module.js";
10
- import { useState as S, useMemo as c } from "../../../external/preact/hooks/dist/hooks.module.js";
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 C = (o) => typeof o == "string", U = ({ content: o, children: t, showTooltip: n, position: f, isContainerHovered: s = !1 }) => {
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, l] = S(null), { isVisible: u, listeners: g } = b(), a = x(), p = u || !!n, y = c(
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--hovered": s });
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, s]
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 ? V(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: a,
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: a,
37
- setPopoverElement: l,
36
+ targetElement: s,
37
+ setPopoverElement: u,
38
38
  fitPosition: !0,
39
39
  open: !0,
40
- children: o && C(o) ? /* @__PURE__ */ e(v, { el: N.DIV, variant: I.CAPTION, children: o }) : 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
- U as Tooltip
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 c } from "../getCommonErrorCode.js";
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 m = c(e, r);
16
- if (m) return m;
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 u = (e, o, r) => {
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
- u as getDisputesErrorMessage
35
+ c as getDisputesErrorMessage
36
36
  };
@@ -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.8.1", o = e.skipContentType ? void 0 : ((s = e.contentType) == null ? void 0 : s.toLowerCase()) ?? "application/json";
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 n, REGEX_TZ_OFFSET as m } from "./constants.js";
2
- import { EMPTY_ARRAY as r } from "../../../../utils/value/constants.js";
3
- import { mod as i } from "../../../../utils/value/number.js";
4
- const p = /\+(?=-)|([+-]00:00)/g, E = /(^\D?)(\d)$/, O = ([t, e]) => (Math.abs(t * 60) + e) * (t < 0 ? -1 : 1), S = (t) => Object.freeze([
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
- i(t, 60)
7
+ p(t, 60)
8
8
  // offset minutes
9
- ]), _ = (t) => parseInt(t, 10) || 0, F = (t) => `GMT+${S(t).map((o) => `${o}`.replace(E, "$10$2")).join(":")}`.replace(p, ""), c = (t) => {
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(m)) == null ? void 0 : s[0].replace("GMT", "").split(":", 2).map(_)) ?? r;
12
- return O(e.concat(0, 0).slice(0, 2));
13
- }, R = (t, e = n) => {
14
- var f;
15
- const s = c((f = n) == null ? void 0 : f.format(t));
16
- return c(e == null ? void 0 : e.format(t)) - s;
17
- }, T = (t, e, s = 1) => {
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
- }, g = (t, e) => T(t, e, 1), u = (t, e) => T(t, e, -1);
20
+ }, u = (t, e) => m(t, e, 1), l = (t, e) => m(t, e, -1);
21
21
  export {
22
- O as computeTimezoneOffsetInMinutes,
23
- S as computeTimezoneOffsetsFromMinutes,
24
- F as getGMTSuffixForTimezoneOffset,
25
- R as getTimezoneOffsetForTimestamp,
26
- c as getTimezoneOffsetFromFormattedDateString,
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
- g as systemToTimezone,
29
- u as timezoneToSystem
28
+ u as systemToTimezone,
29
+ l as timezoneToSystem
30
30
  };
@@ -78,7 +78,7 @@ class f {
78
78
  return { ...t };
79
79
  }
80
80
  }
81
- s(f, "version", "1.8.1");
81
+ s(f, "version", "1.9.0");
82
82
  export {
83
83
  f as default
84
84
  };
@@ -8,7 +8,7 @@ const h = (o) => {
8
8
  properties: i || {}
9
9
  };
10
10
  }, d = ({ userEvents: o, analyticsEnabled: t }) => {
11
- const i = "1.8.1", { i18n: f } = g(), r = a();
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 m, useRef as l, useCallback as f, useEffect as T } from "../external/preact/hooks/dist/hooks.module.js";
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 c } from "../components/internal/DatePicker/components/TimeRangeSelector/useTimeRangeSelection.js";
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 = (o) => {
6
- const e = c(), a = "common.filters.types.date.rangeSelect.options.last30Days", { from: s, to: r } = e[a];
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
- ...o === "transactions" && {
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(s).toISOString(),
15
- [t.CREATED_UNTIL]: new Date(r).toISOString()
16
- }, defaultTimeRange: a, timeRangeOptions: e };
17
- }, D = (o, e) => {
18
- const [a, s] = m(Date.now()), r = A(o), i = l(r), n = f(() => s(Date.now()), [s]);
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
- n();
21
- }, [e, n]), { defaultParams: i, nowTimestamp: a, refreshNowTimestamp: n };
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 s, enumerable as n } from "../../../utils/struct/property.js";
3
- import { isUndefined as b } from "../../../utils/value/is.js";
4
- import { noop as u } from "../../../utils/common.js";
5
- const w = (o) => {
6
- let r, t, e;
7
- const l = () => {
8
- if (b(r)) return;
9
- const i = r.abort.bind(r);
10
- r = void 0, i();
11
- }, m = () => (e = new Promise((i, c) => {
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(o);
14
- }), t.aborted) throw o;
15
- }), e.catch(u), e), a = () => (b(r) && (r = new AbortController(), t = r.signal, e = m()), f), f = d({
16
- abort: n(l),
17
- promise: s(() => e),
18
- reason: n(o),
19
- refresh: n(a),
20
- signal: s(() => t)
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 a();
23
+ return s();
23
24
  };
24
25
  export {
25
- w as createAbortable,
26
- w as default
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-uaN4wZbv.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-DJsH4sdl.cjs.map
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-DJsH4sdl.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
+ {"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-uaN4wZbv.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-COUahrYv.cjs.map
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-COUahrYv.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"}
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"}