@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,141 +1,144 @@
1
- import { jsx as n } from "../../../../../external/preact/jsx-runtime/dist/jsxRuntime.module.js";
2
- import j from "classnames";
1
+ import { jsx as i } from "../../../../../external/preact/jsx-runtime/dist/jsxRuntime.module.js";
2
+ import U from "classnames";
3
3
  import "../../../../../external/preact/compat/dist/compat.module.js";
4
- import { useState as P, useMemo as _, useCallback as m, useEffect as $ } from "../../../../../external/preact/hooks/dist/hooks.module.js";
4
+ import { useState as L, useMemo as c, useCallback as p, useEffect as $ } from "../../../../../external/preact/hooks/dist/hooks.module.js";
5
5
  import z from "../../../../../core/Context/useCoreContext.js";
6
6
  import { useFetch as J } from "../../../../../hooks/useFetch.js";
7
- import { useResponsiveContainer as Q, containerQueries as U } from "../../../../../hooks/useResponsiveContainer.js";
8
- import { Alert as K } from "../../../../internal/Alert/Alert.js";
9
- import { AlertVariantOption as W, AlertTypeOption as X } from "../../../../internal/Alert/types.js";
10
- import Z from "../../../../internal/Button/ButtonActions/ButtonActions.js";
11
- import { TypographyVariant as v, TypographyElement as R } from "../../../../internal/Typography/types.js";
7
+ import { useResponsiveContainer as K, containerQueries as W } from "../../../../../hooks/useResponsiveContainer.js";
8
+ import { Alert as X } from "../../../../internal/Alert/Alert.js";
9
+ import { AlertVariantOption as Z, AlertTypeOption as ee } from "../../../../internal/Alert/types.js";
10
+ import te from "../../../../internal/Button/ButtonActions/ButtonActions.js";
11
+ import { TypographyVariant as R, TypographyElement as S } from "../../../../internal/Typography/types.js";
12
12
  import A from "../../../../internal/Typography/Typography.js";
13
- import { useDisputeFlow as ee } from "../../context/dispute/context.js";
14
- import { getDefenseReasonContent as k } from "../../utils/index.js";
15
- import te from "../../../../internal/FormFields/Select/Select.js";
16
- import { Fragment as ne } from "../../../../../external/preact/dist/preact.module.js";
17
- import { useConfigContext as ie } from "../../../../../core/ConfigContext/context.js";
18
- import { EMPTY_OBJECT as oe } from "../../../../../utils/value/constants.js";
19
- const b = "adyen-pe-defend-dispute-reason", D = {
20
- selector: b + "__selector",
21
- description: b + "__description",
22
- dropdownList: b + "__dropdown-list",
23
- dropdownListMobile: b + "__dropdown-list--mobile"
24
- }, we = () => {
25
- var N, O, T, I;
26
- const { i18n: i } = z(), {
27
- applicableDocuments: o,
28
- dispute: d,
29
- goBack: S,
30
- setFlowState: p,
13
+ import { useDisputeFlow as ne } from "../../context/dispute/context.js";
14
+ import { getDefenseReasonContent as P } from "../../utils/index.js";
15
+ import oe from "../../../../internal/FormFields/Select/Select.js";
16
+ import { Fragment as ie } from "../../../../../external/preact/dist/preact.module.js";
17
+ import { useConfigContext as se } from "../../../../../core/ConfigContext/context.js";
18
+ import { EMPTY_OBJECT as ae } from "../../../../../utils/value/constants.js";
19
+ const D = "adyen-pe-defend-dispute-reason", b = {
20
+ selector: D + "__selector",
21
+ description: D + "__description",
22
+ dropdownList: D + "__dropdown-list",
23
+ dropdownListMobile: D + "__dropdown-list--mobile"
24
+ }, Se = () => {
25
+ var N, T, B, E;
26
+ const { i18n: t } = z(), {
27
+ applicableDocuments: s,
28
+ dispute: n,
29
+ goBack: F,
30
+ setFlowState: f,
31
31
  setSelectedDefenseReason: C,
32
- selectedDefenseReason: s,
33
- setApplicableDocuments: f,
34
- defenseReasonConfig: u
35
- } = ee(), c = (N = d == null ? void 0 : d.dispute) == null ? void 0 : N.allowedDefenseReasons, B = (O = d == null ? void 0 : d.dispute) == null ? void 0 : O.pspReference, [g, h] = P(!1), x = Q(U.down.xs), a = _(
32
+ selectedDefenseReason: a,
33
+ setApplicableDocuments: u,
34
+ defenseReasonConfig: g
35
+ } = ne(), l = (N = n == null ? void 0 : n.dispute) == null ? void 0 : N.allowedDefenseReasons, I = (T = n == null ? void 0 : n.dispute) == null ? void 0 : T.pspReference, [h, y] = L(!1), k = K(W.down.xs), r = c(
36
36
  () => Object.freeze(
37
- c == null ? void 0 : c.map((e) => {
38
- var t;
37
+ l == null ? void 0 : l.map((e) => {
38
+ var o;
39
39
  return {
40
40
  id: e,
41
- disabled: c.length === 1,
42
- name: ((t = k(u, i, e)) == null ? void 0 : t.title) ?? e
41
+ disabled: l.length === 1,
42
+ name: ((o = P(g, t, e)) == null ? void 0 : o.title) ?? e
43
43
  };
44
44
  })
45
45
  ) ?? [],
46
- [i, c, u]
47
- ), l = _(
46
+ [t, l, g]
47
+ ), m = c(
48
48
  () => {
49
- var e, t;
50
- return s ? (e = a.find((q) => q.id === s)) == null ? void 0 : e.id : ((t = a == null ? void 0 : a[0]) == null ? void 0 : t.id) ?? null;
49
+ var e, o;
50
+ return a ? (e = r.find((Q) => Q.id === a)) == null ? void 0 : e.id : ((o = r == null ? void 0 : r[0]) == null ? void 0 : o.id) ?? null;
51
51
  },
52
- [s, a]
53
- ), { getApplicableDefenseDocuments: y } = ie().endpoints, L = m(async () => y == null ? void 0 : y(oe, {
52
+ [a, r]
53
+ ), { getApplicableDefenseDocuments: _ } = se().endpoints, x = p(async () => _ == null ? void 0 : _(ae, {
54
54
  query: {
55
- defenseReason: s
55
+ defenseReason: a
56
56
  },
57
57
  path: {
58
- disputePspReference: B
58
+ disputePspReference: I
59
59
  }
60
- }), [s, B, y]), { error: E, isFetching: w } = J({
61
- queryFn: L,
60
+ }), [a, I, _]), { error: M, isFetching: v } = J({
61
+ queryFn: x,
62
62
  fetchOptions: {
63
- enabled: g,
64
- onSuccess: m(
63
+ enabled: h,
64
+ onSuccess: p(
65
65
  (e) => {
66
- h(!1), f((e == null ? void 0 : e.data) ?? null), e != null && e.data && (e == null ? void 0 : e.data.length) > 0 && p("uploadDefenseFilesView");
66
+ y(!1), u((e == null ? void 0 : e.data) ?? null), e != null && e.data && (e == null ? void 0 : e.data.length) > 0 && f("uploadDefenseFilesView");
67
67
  },
68
- [f, h, p]
68
+ [u, y, f]
69
69
  )
70
70
  }
71
71
  });
72
72
  $(() => {
73
- h(!1);
74
- }, [E]);
75
- const F = m(() => {
76
- if (o != null && o.length) return p("uploadDefenseFilesView");
77
- h(!0);
78
- }, [o, p]), M = m(
73
+ y(!1);
74
+ }, [M]);
75
+ const O = p(() => {
76
+ if (s != null && s.length) return f("uploadDefenseFilesView");
77
+ y(!0);
78
+ }, [s, f]), q = p(
79
79
  (e) => {
80
- var t;
81
- s !== e.target.value && (o != null && o.length) && f([]), (t = e == null ? void 0 : e.target) != null && t.value && C(e.target.value);
80
+ var o;
81
+ a !== e.target.value && (s != null && s.length) && u([]), (o = e == null ? void 0 : e.target) != null && o.value && C(e.target.value);
82
82
  },
83
- [o, s, f, C]
84
- ), H = _(() => [
83
+ [s, a, u, C]
84
+ ), H = c(() => [
85
85
  {
86
- title: i.get("disputes.management.defend.common.actions.continue"),
87
- disabled: g || w,
88
- event: F
86
+ title: t.get("disputes.management.defend.common.actions.continue"),
87
+ disabled: h || v,
88
+ event: O
89
89
  },
90
90
  {
91
- title: i.get("disputes.management.common.actions.goBack"),
92
- disabled: g || w,
93
- event: S
91
+ title: t.get("disputes.management.common.actions.goBack"),
92
+ disabled: h || v,
93
+ event: F
94
94
  }
95
- ], [w, g, i, S, F]), [V, Y] = P(!0), G = m(() => {
95
+ ], [v, h, t, F, O]), w = c(() => (n == null ? void 0 : n.dispute.type) === "REQUEST_FOR_INFORMATION", [n == null ? void 0 : n.dispute.type]), [V, Y] = L(!w), G = p(() => {
96
96
  Y(!1);
97
- }, []), r = _(
98
- () => l ? k(u, i, l) : void 0,
99
- [u, i, l]
97
+ }, []), d = c(
98
+ () => m ? P(g, t, m) : void 0,
99
+ [g, t, m]
100
+ ), j = c(
101
+ () => w ? t.get("disputes.management.defend.requestForInformation.selectDefenseReason") : t.get("disputes.management.defend.chargeback.selectDefenseReason"),
102
+ [t, w]
100
103
  );
101
- return !a || !l ? null : /* @__PURE__ */ n(ne, { children: [
102
- /* @__PURE__ */ n("div", { className: D.selector, children: [
103
- /* @__PURE__ */ n(A, { className: "adyen-pe-defend-dispute__reason-description", variant: v.BODY, children: i.get("disputes.management.defend.chargeback.selectDefenseReason") }),
104
- /* @__PURE__ */ n(
105
- te,
104
+ return !r || !m ? null : /* @__PURE__ */ i(ie, { children: [
105
+ /* @__PURE__ */ i("div", { className: b.selector, children: [
106
+ /* @__PURE__ */ i(A, { className: "adyen-pe-defend-dispute__reason-description", variant: R.BODY, children: j }),
107
+ /* @__PURE__ */ i(
108
+ oe,
106
109
  {
107
- items: a,
108
- onChange: M,
109
- selected: l,
110
- "aria-label": i.get("disputes.management.defend.common.inputs.reasonSelect.a11y.label"),
111
- popoverClassNameModifiers: [j(D.dropdownList, { [D.dropdownListMobile]: x })],
110
+ items: r,
111
+ onChange: q,
112
+ selected: m,
113
+ "aria-label": t.get("disputes.management.defend.common.inputs.reasonSelect.a11y.label"),
114
+ popoverClassNameModifiers: [U(b.dropdownList, { [b.dropdownListMobile]: k })],
112
115
  fixedPopoverPositioning: !0
113
116
  }
114
117
  ),
115
- (T = r == null ? void 0 : r.primaryDescriptionItems) == null ? void 0 : T.map((e, t) => /* @__PURE__ */ n(
118
+ (B = d == null ? void 0 : d.primaryDescriptionItems) == null ? void 0 : B.map((e, o) => /* @__PURE__ */ i(
116
119
  A,
117
120
  {
118
- el: R.PARAGRAPH,
119
- className: D.description,
120
- variant: v.BODY,
121
+ el: S.PARAGRAPH,
122
+ className: b.description,
123
+ variant: R.BODY,
121
124
  children: e
122
125
  },
123
- `description-${t}`
126
+ `description-${o}`
124
127
  )),
125
- ((I = r == null ? void 0 : r.secondaryDescriptionItems) == null ? void 0 : I.length) && /* @__PURE__ */ n("ul", { className: "adyen-pe-defend-dispute-reason__secondary-description-items-container", children: r.secondaryDescriptionItems.map((e, t) => /* @__PURE__ */ n("li", { className: "adyen-pe-defend-dispute-reason__secondary-description-item", children: /* @__PURE__ */ n(
128
+ ((E = d == null ? void 0 : d.secondaryDescriptionItems) == null ? void 0 : E.length) && /* @__PURE__ */ i("ul", { className: "adyen-pe-defend-dispute-reason__secondary-description-items-container", children: d.secondaryDescriptionItems.map((e, o) => /* @__PURE__ */ i("li", { className: "adyen-pe-defend-dispute-reason__secondary-description-item", children: /* @__PURE__ */ i(
126
129
  A,
127
130
  {
128
- el: R.PARAGRAPH,
131
+ el: S.PARAGRAPH,
129
132
  className: "adyen-pe-defend-dispute-reason__description",
130
- variant: v.BODY,
133
+ variant: R.BODY,
131
134
  children: e
132
135
  }
133
- ) }, `description-item-${t}`)) })
136
+ ) }, `description-item-${o}`)) })
134
137
  ] }),
135
- V && /* @__PURE__ */ n(K, { onClose: G, type: X.HIGHLIGHT, variant: W.DEFAULT, children: /* @__PURE__ */ n(A, { className: "adyen-pe-alert__description", el: R.DIV, variant: v.BODY, wide: !0, children: i.get("disputes.management.defend.chargeback.feeInfo") }) }),
136
- /* @__PURE__ */ n("div", { className: "adyen-pe-defend-dispute__actions", children: /* @__PURE__ */ n(Z, { actions: H }) })
138
+ V && /* @__PURE__ */ i(X, { onClose: G, type: ee.HIGHLIGHT, variant: Z.DEFAULT, children: /* @__PURE__ */ i(A, { className: "adyen-pe-alert__description", el: S.DIV, variant: R.BODY, wide: !0, children: t.get("disputes.management.defend.chargeback.feeInfo") }) }),
139
+ /* @__PURE__ */ i("div", { className: "adyen-pe-defend-dispute__actions", children: /* @__PURE__ */ i(te, { actions: H }) })
137
140
  ] });
138
141
  };
139
142
  export {
140
- we as DefendDisputeReason
143
+ Se as DefendDisputeReason
141
144
  };
@@ -1,60 +1,60 @@
1
1
  import { jsx as t } from "../../../../../external/preact/jsx-runtime/dist/jsxRuntime.module.js";
2
- import V from "classnames";
3
- import { useMemo as A, useCallback as N, useState as me, useEffect as pe } from "../../../../../external/preact/hooks/dist/hooks.module.js";
4
- import W from "../../../../../core/Context/useCoreContext.js";
5
- import { useFetch as de } from "../../../../../hooks/useFetch.js";
6
- import { useResponsiveContainer as Te, containerQueries as ue } from "../../../../../hooks/useResponsiveContainer.js";
2
+ import j from "classnames";
3
+ import { useMemo as A, useCallback as N, useState as pe, useEffect as de } from "../../../../../external/preact/hooks/dist/hooks.module.js";
4
+ import $ from "../../../../../core/Context/useCoreContext.js";
5
+ import { useFetch as Te } from "../../../../../hooks/useFetch.js";
6
+ import { useResponsiveContainer as ue, containerQueries as Ae } from "../../../../../hooks/useResponsiveContainer.js";
7
7
  /* empty css */
8
8
  import { Alert as S } from "../../../../internal/Alert/Alert.js";
9
9
  import { AlertVariantOption as O, AlertTypeOption as I } from "../../../../internal/Alert/types.js";
10
- import Ae from "../../../../internal/Button/ButtonActions/ButtonActions.js";
10
+ import Ee from "../../../../internal/Button/ButtonActions/ButtonActions.js";
11
11
  import { ButtonVariant as h } from "../../../../internal/Button/types.js";
12
12
  import De from "../../../../internal/StatusBox/StatusBox.js";
13
- import Ee from "../../../../internal/StatusBox/useStatusBox.js";
14
- import { Tag as fe } from "../../../../internal/Tag/Tag.js";
15
- import _e from "../../../DisputesOverview/components/DisputesTable/DisputeStatusTag.js";
16
- import { useDisputeFlow as Ne } from "../../context/dispute/context.js";
17
- import { isDisputeActionNeeded as Se } from "../../../../utils/disputes/actionNeeded.js";
18
- import { DisputeIssuerComments as Oe } from "./DisputeIssuerComments.js";
19
- import Ie from "./DisputeDataProperties.js";
20
- import { DISPUTE_DATA_SKELETON_CONTAINER as he, DISPUTE_DATA_STATUS_BOX_SKELETON as ge, DISPUTE_DATA_STATUS_BOX_STATUS_CONTAINER as Re, DISPUTE_DATA_STATUS_BOX_STATUS as j, DISPUTE_DATA_STATUS_BOX_AMOUNT as Pe, DISPUTE_DATA_STATUS_BOX_PAYMENT_METHOD_CONTAINER as Be, DISPUTE_DATA_STATUS_BOX_PAYMENT_METHOD as q, DISPUTE_DATA_PROPERTIES_SKELETON_CONTAINER as ye, DISPUTE_DATA_PROPERTIES_SKELETON as ve, DISPUTE_DATA_PROPERTIES_SKELETON_ELEMENT as Q, DISPUTE_DATA_CLASS as Z, DISPUTE_DATA_MOBILE_CLASS as J, DISPUTE_DATA_ERROR_CONTAINER as Ue, DISPUTE_STATUS_BOX as Fe, DISPUTE_DATA_ACTION_BAR as Ce } from "./constants.js";
21
- import Le from "../../../../internal/Typography/Typography.js";
22
- import { TypographyElement as be, TypographyVariant as Me } from "../../../../internal/Typography/types.js";
23
- import ke from "../../../../../hooks/useTimezoneAwareDateFormatting.js";
24
- import { getDisputeType as xe } from "../../../../utils/translation/getters.js";
25
- import { ErrorMessageDisplay as He } from "../../../../internal/ErrorMessageDisplay/ErrorMessageDisplay.js";
26
- import { getDisputesErrorMessage as Ye } from "../../../../utils/disputes/getDisputesErrorMessage.js";
27
- import Xe from "../../../../internal/Button/Button.js";
13
+ import fe from "../../../../internal/StatusBox/useStatusBox.js";
14
+ import { Tag as _e } from "../../../../internal/Tag/Tag.js";
15
+ import Ne from "../../../DisputesOverview/components/DisputesTable/DisputeStatusTag.js";
16
+ import { useDisputeFlow as Se } from "../../context/dispute/context.js";
17
+ import { isDisputeActionNeeded as Oe } from "../../../../utils/disputes/actionNeeded.js";
18
+ import { DisputeIssuerComments as Ie } from "./DisputeIssuerComments.js";
19
+ import he from "./DisputeDataProperties.js";
20
+ import { DISPUTE_DATA_SKELETON_CONTAINER as ge, DISPUTE_DATA_STATUS_BOX_SKELETON as Re, DISPUTE_DATA_STATUS_BOX_STATUS_CONTAINER as Pe, DISPUTE_DATA_STATUS_BOX_STATUS as q, DISPUTE_DATA_STATUS_BOX_AMOUNT as ye, DISPUTE_DATA_STATUS_BOX_PAYMENT_METHOD_CONTAINER as Be, DISPUTE_DATA_STATUS_BOX_PAYMENT_METHOD as Q, DISPUTE_DATA_PROPERTIES_SKELETON_CONTAINER as Fe, DISPUTE_DATA_PROPERTIES_SKELETON as Ue, DISPUTE_DATA_PROPERTIES_SKELETON_ELEMENT as Z, DISPUTE_DATA_CLASS as J, DISPUTE_DATA_MOBILE_CLASS as W, DISPUTE_DATA_ERROR_CONTAINER as ve, DISPUTE_STATUS_BOX as Le, DISPUTE_DATA_ACTION_BAR as Ce } from "./constants.js";
21
+ import be from "../../../../internal/Typography/Typography.js";
22
+ import { TypographyElement as Me, TypographyVariant as ke } from "../../../../internal/Typography/types.js";
23
+ import xe from "../../../../../hooks/useTimezoneAwareDateFormatting.js";
24
+ import { getDisputeType as He } from "../../../../utils/translation/getters.js";
25
+ import { ErrorMessageDisplay as Ye } from "../../../../internal/ErrorMessageDisplay/ErrorMessageDisplay.js";
26
+ import { getDisputesErrorMessage as Xe } from "../../../../utils/disputes/getDisputesErrorMessage.js";
27
+ import we from "../../../../internal/Button/Button.js";
28
28
  import { Fragment as g } from "../../../../../external/preact/dist/preact.module.js";
29
- import { Translation as we } from "../../../../internal/Translation/Translation.js";
30
- import { useConfigContext as Ke } from "../../../../../core/ConfigContext/context.js";
31
- import { EMPTY_OBJECT as Ge } from "../../../../../utils/value/constants.js";
32
- import { isFunction as v } from "../../../../../utils/value/is.js";
33
- import { DATE_FORMAT_RESPONSE_DEADLINE as Ve } from "../../../../../constants/dateFormats.js";
34
- const je = (i) => !!i && typeof i == "object" && i.type === "button", qe = ({
35
- alertMode: i,
36
- dispute: a,
29
+ import { Translation as Ke } from "../../../../internal/Translation/Translation.js";
30
+ import { useConfigContext as Ge } from "../../../../../core/ConfigContext/context.js";
31
+ import { EMPTY_OBJECT as Ve } from "../../../../../utils/value/constants.js";
32
+ import { isFunction as F } from "../../../../../utils/value/is.js";
33
+ import { DATE_FORMAT_RESPONSE_DEADLINE as je } from "../../../../../constants/dateFormats.js";
34
+ const qe = (c) => !!c && typeof c == "object" && c.type === "button", Qe = ({
35
+ alertMode: c,
36
+ dispute: o,
37
37
  timeZone: d
38
38
  }) => {
39
- const { i18n: l } = W(), { dateFormat: r } = ke(d);
40
- switch (i) {
39
+ const { i18n: m } = $(), { dateFormat: r } = xe(d);
40
+ switch (c) {
41
41
  case "contactSupport": {
42
- const { dueDate: c, type: T } = a, u = T === "REQUEST_FOR_INFORMATION" ? "disputes.management.details.alerts.contactSupport.requestForInformation" : T === "NOTIFICATION_OF_FRAUD" ? "disputes.management.details.alerts.contactSupport.notificationOfFraud" : "disputes.management.details.alerts.contactSupport.chargeback";
42
+ const { dueDate: n, type: T } = o, u = T === "REQUEST_FOR_INFORMATION" ? "disputes.management.details.alerts.contactSupport.requestForInformation" : T === "NOTIFICATION_OF_FRAUD" ? "disputes.management.details.alerts.contactSupport.notificationOfFraud" : "disputes.management.details.alerts.contactSupport.chargeback";
43
43
  return /* @__PURE__ */ t(
44
44
  S,
45
45
  {
46
46
  type: I.WARNING,
47
47
  variant: O.TIP,
48
48
  description: /* @__PURE__ */ t(g, { children: [
49
- l.get(u),
50
- T !== "NOTIFICATION_OF_FRAUD" && !!c && /* @__PURE__ */ t(g, { children: [
49
+ m.get(u),
50
+ T !== "NOTIFICATION_OF_FRAUD" && !!n && /* @__PURE__ */ t(g, { children: [
51
51
  " ",
52
52
  /* @__PURE__ */ t(
53
- we,
53
+ Ke,
54
54
  {
55
55
  translationKey: "disputes.management.details.alerts.responseDeadline",
56
56
  fills: {
57
- date: /* @__PURE__ */ t("time", { dateTime: c, children: /* @__PURE__ */ t(Le, { variant: Me.BODY, el: be.SPAN, stronger: !0, children: r(c, Ve) }) })
57
+ date: /* @__PURE__ */ t("time", { dateTime: n, children: /* @__PURE__ */ t(be, { variant: ke.BODY, el: Me.SPAN, stronger: !0, children: r(n, je) }) })
58
58
  }
59
59
  }
60
60
  )
@@ -69,12 +69,12 @@ const je = (i) => !!i && typeof i == "object" && i.type === "button", qe = ({
69
69
  {
70
70
  type: I.HIGHLIGHT,
71
71
  variant: O.TIP,
72
- description: l.get("disputes.management.details.alerts.autoDefended")
72
+ description: m.get("disputes.management.details.alerts.autoDefended")
73
73
  }
74
74
  );
75
75
  case "notDefended": {
76
- const c = a.status === "EXPIRED" ? "disputes.management.details.alerts.notDefendedExpired" : "disputes.management.details.alerts.notDefendedLost";
77
- return /* @__PURE__ */ t(S, { type: I.HIGHLIGHT, variant: O.TIP, description: l.get(c) });
76
+ const n = o.status === "EXPIRED" ? "disputes.management.details.alerts.notDefendedExpired" : "disputes.management.details.alerts.notDefendedLost";
77
+ return /* @__PURE__ */ t(S, { type: I.HIGHLIGHT, variant: O.TIP, description: m.get(n) });
78
78
  }
79
79
  case "notDefendable":
80
80
  return /* @__PURE__ */ t(
@@ -82,146 +82,146 @@ const je = (i) => !!i && typeof i == "object" && i.type === "button", qe = ({
82
82
  {
83
83
  type: I.HIGHLIGHT,
84
84
  variant: O.TIP,
85
- description: l.get("disputes.management.details.alerts.notDefendable")
85
+ description: m.get("disputes.management.details.alerts.notDefendable")
86
86
  }
87
87
  );
88
88
  }
89
89
  return null;
90
- }, Pt = ({
91
- disputeId: i,
92
- dataCustomization: a,
90
+ }, yt = ({
91
+ disputeId: c,
92
+ dataCustomization: o,
93
93
  onContactSupport: d,
94
- onDismiss: l
94
+ onDismiss: m
95
95
  }) => {
96
- var X, w, K;
97
- const { i18n: r } = W(), { dispute: c, setDispute: T, setFlowState: u, defenseReasonConfig: $ } = Ne(), { getDisputeDetail: R, getApplicableDefenseDocuments: z, acceptDispute: ee } = Ke().endpoints, te = v(ee), ne = v(z), U = Te(ue.up.sm), { data: D, isFetching: se, error: P } = de(
96
+ var w, K, G;
97
+ const { i18n: r } = $(), { dispute: n, setDispute: T, setFlowState: u, defenseReasonConfig: z } = Se(), { getDisputeDetail: R, getApplicableDefenseDocuments: ee, acceptDispute: te } = Ge().endpoints, ne = F(te), se = F(ee), U = ue(Ae.up.sm), { data: E, isFetching: ae, error: P } = Te(
98
98
  A(
99
99
  () => ({
100
100
  fetchOptions: {
101
- enabled: !!i && !!R && !c,
102
- onSuccess: (n) => {
103
- T(n);
101
+ enabled: !!c && !!R && !n,
102
+ onSuccess: (s) => {
103
+ T(s);
104
104
  }
105
105
  },
106
- queryFn: async () => R(Ge, {
106
+ queryFn: async () => R(Ve, {
107
107
  path: {
108
- disputePspReference: i
108
+ disputePspReference: c
109
109
  }
110
110
  })
111
111
  }),
112
- [c, i, R, T]
112
+ [n, c, R, T]
113
113
  )
114
- ), e = c || D, m = (X = e == null ? void 0 : e.dispute) == null ? void 0 : X.defensibility, ae = Ee({
114
+ ), e = n || E, l = (w = e == null ? void 0 : e.dispute) == null ? void 0 : w.defensibility, re = fe({
115
115
  amountData: e == null ? void 0 : e.dispute.amount,
116
116
  paymentMethodData: e == null ? void 0 : e.payment.paymentMethod
117
- }), F = A(() => {
118
- const { chargeback: n, preArbitration: s } = (e == null ? void 0 : e.dispute.issuerExtraData) ?? {}, o = [];
119
- return [s, n].forEach((_) => {
117
+ }), v = A(() => {
118
+ const { chargeback: s, preArbitration: a } = (e == null ? void 0 : e.dispute.issuerExtraData) ?? {}, i = [];
119
+ return [a, s].forEach((_) => {
120
120
  _ && ["LIABILITY_NOT_ACCEPTED_FULLY", "PRE_ARB_REASON", "NOTE"].forEach((le) => {
121
- const y = _[le], G = y == null ? void 0 : y.trim();
122
- G && o.push(G);
121
+ const B = _[le], V = B == null ? void 0 : B.trim();
122
+ V && i.push(V);
123
123
  });
124
- }), o.filter(Boolean);
125
- }, [e]), C = A(() => xe(r, e == null ? void 0 : e.dispute.type), [r, e]), E = !!m && ["ACCEPTABLE", "DEFENDABLE_EXTERNALLY"].includes(m) || (e == null ? void 0 : e.dispute.type) === "NOTIFICATION_OF_FRAUD", L = !!m && m === "DEFENDABLE" && ne, b = !!m && ["ACCEPTABLE", "DEFENDABLE"].includes(m) && te, M = N(() => {
124
+ }), i.filter(Boolean);
125
+ }, [e]), L = A(() => He(r, e == null ? void 0 : e.dispute.type), [r, e]), D = !!l && ["ACCEPTABLE", "DEFENDABLE_EXTERNALLY"].includes(l) || (e == null ? void 0 : e.dispute.type) === "NOTIFICATION_OF_FRAUD", C = !!l && l === "DEFENDABLE" && se, b = !!l && ["ACCEPTABLE", "DEFENDABLE"].includes(l) && ne, M = N(() => {
126
126
  u("accept");
127
127
  }, [u]), k = N(() => {
128
128
  u("defendReasonSelectionView");
129
- }, [u]), [f, re] = me([]), x = N(async () => {
130
- var s, o;
131
- const n = D && await ((o = (s = a == null ? void 0 : a.details) == null ? void 0 : s.onDataRetrieve) == null ? void 0 : o.call(s, D));
132
- if (n)
133
- return re(
134
- Object.values(n).filter((_) => je(_))
129
+ }, [u]), [f, oe] = pe([]), x = N(async () => {
130
+ var a, i;
131
+ const s = E && await ((i = (a = o == null ? void 0 : o.details) == null ? void 0 : a.onDataRetrieve) == null ? void 0 : i.call(a, E));
132
+ if (s)
133
+ return oe(
134
+ Object.values(s).filter((_) => qe(_))
135
135
  );
136
- }, [D, a == null ? void 0 : a.details]);
137
- pe(() => {
136
+ }, [E, o == null ? void 0 : o.details]);
137
+ de(() => {
138
138
  x();
139
139
  }, [x]);
140
- const H = A(() => {
141
- const n = [];
142
- return L && n.push({
143
- title: r.get("disputes.management.details.actions.defendChargeback"),
140
+ const H = A(() => (n == null ? void 0 : n.dispute.type) === "REQUEST_FOR_INFORMATION" ? r.get("disputes.management.details.actions.submitInformation") : r.get("disputes.management.details.actions.defendChargeback"), [r, n == null ? void 0 : n.dispute.type]), Y = A(() => {
141
+ const s = [];
142
+ return C && s.push({
143
+ title: H,
144
144
  event: k
145
- }), b && n.push({
145
+ }), b && s.push({
146
146
  title: r.get("disputes.management.details.actions.accept"),
147
147
  event: M,
148
148
  variant: h.SECONDARY
149
- }), E && v(d) && n.push({
149
+ }), D && F(d) && s.push({
150
150
  title: r.get("disputes.management.details.actions.contactSupport"),
151
151
  event: d,
152
152
  variant: h.SECONDARY
153
- }), f && f.length && f.forEach((s) => {
154
- var o;
155
- n.push({
156
- title: s == null ? void 0 : s.value,
157
- event: (o = s == null ? void 0 : s.config) == null ? void 0 : o.action,
153
+ }), f && f.length && f.forEach((a) => {
154
+ var i;
155
+ s.push({
156
+ title: a == null ? void 0 : a.value,
157
+ event: (i = a == null ? void 0 : a.config) == null ? void 0 : i.action,
158
158
  variant: h.SECONDARY
159
159
  });
160
- }), n;
161
- }, [L, r, k, b, E, d, f, M]), Y = A(() => !!e && Se(e.dispute), [e]), oe = N(() => /* @__PURE__ */ t(Xe, { variant: h.SECONDARY, onClick: l, children: r.get("disputes.management.common.actions.goBack") }), [r, l]);
162
- if (!e && !P || se) {
163
- const n = Array.from({ length: 5 });
164
- return /* @__PURE__ */ t("div", { className: V(Z, { [J]: !U }), children: /* @__PURE__ */ t("div", { className: he, children: [
165
- /* @__PURE__ */ t("div", { className: ge, children: [
166
- /* @__PURE__ */ t("div", { className: Re, children: [
167
- /* @__PURE__ */ t("span", { className: j }),
168
- /* @__PURE__ */ t("span", { className: j })
169
- ] }),
170
- /* @__PURE__ */ t("span", { className: Pe }),
171
- /* @__PURE__ */ t("div", { className: Be, children: [
160
+ }), s;
161
+ }, [C, H, k, b, D, d, f, r, M]), X = A(() => !!e && Oe(e.dispute), [e]), ie = N(() => /* @__PURE__ */ t(we, { variant: h.SECONDARY, onClick: m, children: r.get("disputes.management.common.actions.goBack") }), [r, m]);
162
+ if (!e && !P || ae) {
163
+ const s = Array.from({ length: 5 });
164
+ return /* @__PURE__ */ t("div", { className: j(J, { [W]: !U }), children: /* @__PURE__ */ t("div", { className: ge, children: [
165
+ /* @__PURE__ */ t("div", { className: Re, children: [
166
+ /* @__PURE__ */ t("div", { className: Pe, children: [
172
167
  /* @__PURE__ */ t("span", { className: q }),
173
168
  /* @__PURE__ */ t("span", { className: q })
169
+ ] }),
170
+ /* @__PURE__ */ t("span", { className: ye }),
171
+ /* @__PURE__ */ t("div", { className: Be, children: [
172
+ /* @__PURE__ */ t("span", { className: Q }),
173
+ /* @__PURE__ */ t("span", { className: Q })
174
174
  ] })
175
175
  ] }),
176
- /* @__PURE__ */ t("div", { className: ye, children: n.map((s, o) => /* @__PURE__ */ t("div", { className: ve, children: [
177
- /* @__PURE__ */ t("span", { className: Q }),
178
- /* @__PURE__ */ t("span", { className: Q })
179
- ] }, `skeleton-${o}`)) })
176
+ /* @__PURE__ */ t("div", { className: Fe, children: s.map((a, i) => /* @__PURE__ */ t("div", { className: Ue, children: [
177
+ /* @__PURE__ */ t("span", { className: Z }),
178
+ /* @__PURE__ */ t("span", { className: Z })
179
+ ] }, `skeleton-${i}`)) })
180
180
  ] }) });
181
181
  }
182
- const B = (e == null ? void 0 : e.dispute.type) === "NOTIFICATION_OF_FRAUD", ie = !!(e != null && e.defense && e.defense.defendedOn);
182
+ const y = (e == null ? void 0 : e.dispute.type) === "NOTIFICATION_OF_FRAUD", ce = !!(e != null && e.defense && e.defense.defendedOn);
183
183
  let p;
184
- ((w = e == null ? void 0 : e.defense) == null ? void 0 : w.autodefended) === !0 ? p = "autoDefended" : Y && m === "NOT_ACTIONABLE" ? p = "notDefendable" : Y && E || E && B ? p = "contactSupport" : ((e == null ? void 0 : e.dispute.status) === "EXPIRED" || (e == null ? void 0 : e.dispute.status) === "LOST" && !(B || ie)) && (p = "notDefended");
185
- const ce = Ye(
184
+ ((K = e == null ? void 0 : e.defense) == null ? void 0 : K.autodefended) === !0 ? p = "autoDefended" : X && l === "NOT_ACTIONABLE" ? p = "notDefendable" : X && D || D && y ? p = "contactSupport" : ((e == null ? void 0 : e.dispute.status) === "EXPIRED" || (e == null ? void 0 : e.dispute.status) === "LOST" && !(y || ce)) && (p = "notDefended");
185
+ const me = Xe(
186
186
  P,
187
187
  "disputes.management.common.errors.unavailable",
188
188
  d
189
189
  );
190
- return /* @__PURE__ */ t("div", { className: V(Z, { [J]: !U }), children: P ? /* @__PURE__ */ t("div", { className: Ue, children: /* @__PURE__ */ t(
191
- He,
190
+ return /* @__PURE__ */ t("div", { className: j(J, { [W]: !U }), children: P ? /* @__PURE__ */ t("div", { className: ve, children: /* @__PURE__ */ t(
191
+ Ye,
192
192
  {
193
- renderSecondaryButton: l ? oe : void 0,
193
+ renderSecondaryButton: m ? ie : void 0,
194
194
  withImage: !0,
195
195
  outlined: !1,
196
196
  absolutePosition: !1,
197
197
  withBackground: !1,
198
- ...ce
198
+ ...me
199
199
  }
200
200
  ) }) : e ? /* @__PURE__ */ t(g, { children: [
201
- /* @__PURE__ */ t("div", { className: Fe, children: /* @__PURE__ */ t(
201
+ /* @__PURE__ */ t("div", { className: Le, children: /* @__PURE__ */ t(
202
202
  De,
203
203
  {
204
- ...ae,
204
+ ...re,
205
205
  tag: /* @__PURE__ */ t(g, { children: [
206
- C && /* @__PURE__ */ t(fe, { label: C }),
207
- !B && /* @__PURE__ */ t(_e, { dispute: e.dispute })
206
+ L && /* @__PURE__ */ t(_e, { label: L }),
207
+ !y && /* @__PURE__ */ t(Ne, { dispute: e.dispute })
208
208
  ] })
209
209
  }
210
210
  ) }),
211
- F.length > 0 && /* @__PURE__ */ t(Oe, { issuerComments: F }),
211
+ v.length > 0 && /* @__PURE__ */ t(Ie, { issuerComments: v }),
212
212
  p && /* @__PURE__ */ t(
213
- qe,
213
+ Qe,
214
214
  {
215
215
  alertMode: p,
216
216
  dispute: e.dispute,
217
- timeZone: (K = e.payment.balanceAccount) == null ? void 0 : K.timeZone
217
+ timeZone: (G = e.payment.balanceAccount) == null ? void 0 : G.timeZone
218
218
  }
219
219
  ),
220
- /* @__PURE__ */ t(Ie, { dispute: e, dataCustomization: a, defenseReasonConfig: $ }),
221
- H.length > 0 ? /* @__PURE__ */ t("div", { className: Ce, children: /* @__PURE__ */ t(Ae, { actions: H }) }) : null
220
+ /* @__PURE__ */ t(he, { dispute: e, dataCustomization: o, defenseReasonConfig: z }),
221
+ Y.length > 0 ? /* @__PURE__ */ t("div", { className: Ce, children: /* @__PURE__ */ t(Ee, { actions: Y }) }) : null
222
222
  ] }) : null });
223
223
  };
224
224
  export {
225
- Pt as DisputeData,
226
- Pt as default
225
+ yt as DisputeData,
226
+ yt as default
227
227
  };
@@ -66,7 +66,7 @@ const J = "CHARGEBACKS", w = "schemeCodes", T = "reasonCategories", N = "_t", ze
66
66
  showDetails: m,
67
67
  dataCustomization: c
68
68
  }) => {
69
- const { i18n: u } = W(), { getDisputeList: P } = Je().endpoints, { activeBalanceAccount: e, balanceAccountSelectionOptions: te, onBalanceAccountSelection: re } = Pe(o, !0), { defaultParams: F, nowTimestamp: h, refreshNowTimestamp: C } = Ce("disputes", e), [y, se] = E(!1), [ie, oe] = E(), [d, ne] = E(J), [le, G] = E(!1), [x, j] = E(d), k = a(() => u.get("disputes.overview.common.filters.types.statusGroup"), [u]), H = a(
69
+ const { i18n: u } = W(), { getDisputeList: P } = Je().endpoints, { activeBalanceAccount: e, balanceAccountSelectionOptions: te, onBalanceAccountSelection: re } = Pe(o, !0), { defaultParams: F, nowTimestamp: h, refreshNowTimestamp: C } = Ce("disputes", e, "last90Days"), [y, se] = E(!1), [ie, oe] = E(), [d, ne] = E(J), [le, G] = E(!1), [x, j] = E(d), k = a(() => u.get("disputes.overview.common.filters.types.statusGroup"), [u]), H = a(
70
70
  () => ({
71
71
  showDetails: m ?? !0,
72
72
  callback: i