@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,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-
|
|
2
|
-
//# sourceMappingURL=chevron-down-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-C2bfolFC.cjs"),t=o=>e.u("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",...o,children:e.u("path",{fill:"currentColor",d:"m3 4.44 5 5 5-5 1.06 1.06L8 11.56 1.94 5.5z"})});exports.default=t;
|
|
2
|
+
//# sourceMappingURL=chevron-down-BSR5ajTW.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"chevron-down-
|
|
1
|
+
{"version":3,"file":"chevron-down-BSR5ajTW.cjs","sources":["../src/images/icons/chevron-down.svg?component"],"sourcesContent":["import { jsx } from \"react/jsx-runtime\";\nconst SvgChevronDown = (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: \"m3 4.44 5 5 5-5 1.06 1.06L8 11.56 1.94 5.5z\" }) });\nexport default SvgChevronDown;\n"],"names":["SvgChevronDown","props","jsx"],"mappings":"wHACMA,EAAkBC,GAA0BC,EAAAA,EAAI,MAAO,CAAE,MAAO,6BAA8B,KAAM,OAAQ,QAAS,YAAa,GAAGD,EAAO,SAA0BC,EAAAA,EAAI,OAAQ,CAAE,KAAM,eAAgB,EAAG,6CAA6C,CAAE,CAAG,CAAA"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-
|
|
2
|
-
//# sourceMappingURL=chevron-left-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-C2bfolFC.cjs"),l=t=>e.u("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",...t,children:e.u("path",{fill:"currentColor",d:"m11.56 3-5 5 5 5-1.06 1.06L4.44 8l6.06-6.06z"})});exports.default=l;
|
|
2
|
+
//# sourceMappingURL=chevron-left-C1QqpQ4S.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"chevron-left-
|
|
1
|
+
{"version":3,"file":"chevron-left-C1QqpQ4S.cjs","sources":["../src/images/icons/chevron-left.svg?component"],"sourcesContent":["import { jsx } from \"react/jsx-runtime\";\nconst SvgChevronLeft = (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: \"m11.56 3-5 5 5 5-1.06 1.06L4.44 8l6.06-6.06z\" }) });\nexport default SvgChevronLeft;\n"],"names":["SvgChevronLeft","props","jsx"],"mappings":"wHACMA,EAAkBC,GAA0BC,EAAAA,EAAI,MAAO,CAAE,MAAO,6BAA8B,KAAM,OAAQ,QAAS,YAAa,GAAGD,EAAO,SAA0BC,EAAAA,EAAI,OAAQ,CAAE,KAAM,eAAgB,EAAG,8CAA8C,CAAE,CAAG,CAAA"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-
|
|
2
|
-
//# sourceMappingURL=chevron-right-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-C2bfolFC.cjs"),o=t=>e.u("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",...t,children:e.u("path",{fill:"currentColor",d:"m4.44 13 5-5-5-5L5.5 1.94 11.56 8 5.5 14.06z"})});exports.default=o;
|
|
2
|
+
//# sourceMappingURL=chevron-right-C9cu2vQN.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"chevron-right-
|
|
1
|
+
{"version":3,"file":"chevron-right-C9cu2vQN.cjs","sources":["../src/images/icons/chevron-right.svg?component"],"sourcesContent":["import { jsx } from \"react/jsx-runtime\";\nconst SvgChevronRight = (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: \"m4.44 13 5-5-5-5L5.5 1.94 11.56 8 5.5 14.06z\" }) });\nexport default SvgChevronRight;\n"],"names":["SvgChevronRight","props","jsx"],"mappings":"wHACMA,EAAmBC,GAA0BC,EAAAA,EAAI,MAAO,CAAE,MAAO,6BAA8B,KAAM,OAAQ,QAAS,YAAa,GAAGD,EAAO,SAA0BC,EAAAA,EAAI,OAAQ,CAAE,KAAM,eAAgB,EAAG,8CAA8C,CAAE,CAAG,CAAA"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-
|
|
2
|
-
//# sourceMappingURL=chevron-up-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-C2bfolFC.cjs"),l=t=>e.u("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",...t,children:e.u("path",{fill:"currentColor",d:"m13 11.56-5-5-5 5-1.06-1.06L8 4.44l6.06 6.06z"})});exports.default=l;
|
|
2
|
+
//# sourceMappingURL=chevron-up-QJhPvS-j.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"chevron-up-
|
|
1
|
+
{"version":3,"file":"chevron-up-QJhPvS-j.cjs","sources":["../src/images/icons/chevron-up.svg?component"],"sourcesContent":["import { jsx } from \"react/jsx-runtime\";\nconst SvgChevronUp = (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: \"m13 11.56-5-5-5 5-1.06-1.06L8 4.44l6.06 6.06z\" }) });\nexport default SvgChevronUp;\n"],"names":["SvgChevronUp","props","jsx"],"mappings":"wHACMA,EAAgBC,GAA0BC,EAAAA,EAAI,MAAO,CAAE,MAAO,6BAA8B,KAAM,OAAQ,QAAS,YAAa,GAAGD,EAAO,SAA0BC,EAAAA,EAAI,OAAQ,CAAE,KAAM,eAAgB,EAAG,+CAA+C,CAAE,CAAG,CAAA"}
|
package/dist/cjs/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../index-C2bfolFC.cjs");exports.AdyenPlatformExperience=e.AdyenPlatformExperience;exports.CapitalOffer=e.CapitalOfferElement;exports.CapitalOverview=e.CapitalOverviewElement;exports.Core=e.Core;exports.DisputeManagement=e.DisputeManagementElement;exports.DisputesOverview=e.DisputesOverviewElement;exports.PayoutDetails=e.PayoutElement;exports.PayoutsOverview=e.PayoutsElement;exports.ReportsOverview=e.ReportsElement;exports.TransactionDetails=e.TransactionElement;exports.TransactionsOverview=e.TransactionsElement;exports.all_locales=e.all_locales;exports.da_DK=e.da_DK;exports.de_DE=e.de_DE;exports.en_US=e.en_US;exports.es_ES=e.es_ES;exports.fi_FI=e.fi_FI;exports.fr_FR=e.fr_FR;exports.it_IT=e.it_IT;exports.nl_NL=e.nl_NL;exports.no_NO=e.no_NO;exports.pt_BR=e.pt_BR;exports.sv_SE=e.sv_SE;
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("./index-
|
|
2
|
-
//# sourceMappingURL=copy-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("./index-C2bfolFC.cjs"),t=e=>c.u("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",...e,children:c.u("path",{fill:"currentColor",d:"M3.5 1.25c-1.24 0-2.25 1-2.25 2.25v5c0 1.24 1 2.25 2.25 2.25h1.75v1.75c0 1.24 1 2.25 2.25 2.25h5c1.24 0 2.25-1 2.25-2.25v-5c0-1.24-1-2.25-2.25-2.25h-1.75V3.5c0-1.24-1-2.25-2.25-2.25zm5.75 4H7.5c-1.24 0-2.25 1-2.25 2.25v1.75H3.5a.75.75 0 0 1-.75-.75v-5c0-.41.34-.75.75-.75h5c.41 0 .75.34.75.75zm-2.5 7.25v-5c0-.41.34-.75.75-.75h5c.41 0 .75.34.75.75v5c0 .41-.34.75-.75.75h-5a.75.75 0 0 1-.75-.75"})});exports.default=t;
|
|
2
|
+
//# sourceMappingURL=copy-CvOYWx2Z.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"copy-
|
|
1
|
+
{"version":3,"file":"copy-CvOYWx2Z.cjs","sources":["../src/images/icons/copy.svg?component"],"sourcesContent":["import { jsx } from \"react/jsx-runtime\";\nconst SvgCopy = (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: \"M3.5 1.25c-1.24 0-2.25 1-2.25 2.25v5c0 1.24 1 2.25 2.25 2.25h1.75v1.75c0 1.24 1 2.25 2.25 2.25h5c1.24 0 2.25-1 2.25-2.25v-5c0-1.24-1-2.25-2.25-2.25h-1.75V3.5c0-1.24-1-2.25-2.25-2.25zm5.75 4H7.5c-1.24 0-2.25 1-2.25 2.25v1.75H3.5a.75.75 0 0 1-.75-.75v-5c0-.41.34-.75.75-.75h5c.41 0 .75.34.75.75zm-2.5 7.25v-5c0-.41.34-.75.75-.75h5c.41 0 .75.34.75.75v5c0 .41-.34.75-.75.75h-5a.75.75 0 0 1-.75-.75\" }) });\nexport default SvgCopy;\n"],"names":["SvgCopy","props","jsx"],"mappings":"wHACMA,EAAWC,GAA0BC,EAAAA,EAAI,MAAO,CAAE,MAAO,6BAA8B,KAAM,OAAQ,QAAS,YAAa,GAAGD,EAAO,SAA0BC,EAAAA,EAAI,OAAQ,CAAE,KAAM,eAAgB,EAAG,2YAA2Y,CAAE,CAAG,CAAA"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-
|
|
2
|
-
//# sourceMappingURL=cross-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-C2bfolFC.cjs"),t=l=>e.u("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",...l,children:e.u("path",{fill:"currentColor",d:"m8 9.06 4 4L13.06 12l-4-4 4-4L12 2.94l-4 4-4-4L2.94 4l4 4-4 4L4 13.06z"})});exports.default=t;
|
|
2
|
+
//# sourceMappingURL=cross-C1NPFb0O.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cross-
|
|
1
|
+
{"version":3,"file":"cross-C1NPFb0O.cjs","sources":["../src/images/icons/cross.svg?component"],"sourcesContent":["import { jsx } from \"react/jsx-runtime\";\nconst SvgCross = (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: \"m8 9.06 4 4L13.06 12l-4-4 4-4L12 2.94l-4 4-4-4L2.94 4l4 4-4 4L4 13.06z\" }) });\nexport default SvgCross;\n"],"names":["SvgCross","props","jsx"],"mappings":"wHACMA,EAAYC,GAA0BC,EAAAA,EAAI,MAAO,CAAE,MAAO,6BAA8B,KAAM,OAAQ,QAAS,YAAa,GAAGD,EAAO,SAA0BC,EAAAA,EAAI,OAAQ,CAAE,KAAM,eAAgB,EAAG,wEAAwE,CAAE,CAAG,CAAA"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("./index-
|
|
2
|
-
//# sourceMappingURL=cross-circle-fill-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("./index-C2bfolFC.cjs"),e=r=>l.u("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",...r,children:[l.u("g",{clipPath:"url(#cross-circle-fill_svg__a)",children:l.u("path",{fill:"currentColor",d:"M.25 8a7.75 7.75 0 1 1 15.5 0A7.75 7.75 0 0 1 .25 8M6 4.94 4.94 6l2 2-2 2L6 11.06l2-2 2 2L11.06 10l-2-2 2-2L10 4.94l-2 2z"})}),l.u("defs",{children:l.u("clipPath",{id:"cross-circle-fill_svg__a",children:l.u("path",{fill:"currentColor",d:"M0 0h16v16H0z"})})})]});exports.default=e;
|
|
2
|
+
//# sourceMappingURL=cross-circle-fill-BIL8DKBy.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cross-circle-fill-
|
|
1
|
+
{"version":3,"file":"cross-circle-fill-BIL8DKBy.cjs","sources":["../src/images/icons/cross-circle-fill.svg?component"],"sourcesContent":["import { jsx, jsxs } from \"react/jsx-runtime\";\nconst SvgCrossCircleFill = (props) => /* @__PURE__ */ jsxs(\"svg\", { xmlns: \"http://www.w3.org/2000/svg\", fill: \"none\", viewBox: \"0 0 16 16\", ...props, children: [\n /* @__PURE__ */ jsx(\"g\", { clipPath: \"url(#cross-circle-fill_svg__a)\", children: /* @__PURE__ */ jsx(\"path\", { fill: \"currentColor\", d: \"M.25 8a7.75 7.75 0 1 1 15.5 0A7.75 7.75 0 0 1 .25 8M6 4.94 4.94 6l2 2-2 2L6 11.06l2-2 2 2L11.06 10l-2-2 2-2L10 4.94l-2 2z\" }) }),\n /* @__PURE__ */ jsx(\"defs\", { children: /* @__PURE__ */ jsx(\"clipPath\", { id: \"cross-circle-fill_svg__a\", children: /* @__PURE__ */ jsx(\"path\", { fill: \"currentColor\", d: \"M0 0h16v16H0z\" }) }) })\n] });\nexport default SvgCrossCircleFill;\n"],"names":["SvgCrossCircleFill","props","jsxs","jsx"],"mappings":"wHACMA,EAAsBC,GAA0BC,EAAI,EAAC,MAAO,CAAE,MAAO,6BAA8B,KAAM,OAAQ,QAAS,YAAa,GAAGD,EAAO,SAAU,CAC/IE,EAAAA,EAAI,IAAK,CAAE,SAAU,iCAAkC,SAA0BA,EAAG,EAAC,OAAQ,CAAE,KAAM,eAAgB,EAAG,2HAA2H,CAAE,CAAC,CAAE,EACxPA,EAAG,EAAC,OAAQ,CAAE,SAA0BA,EAAG,EAAC,WAAY,CAAE,GAAI,2BAA4B,SAA0BA,EAAAA,EAAI,OAAQ,CAAE,KAAM,eAAgB,EAAG,eAAe,CAAE,CAAC,CAAE,CAAG,CAAA,CACpM,CAAG,CAAA"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-
|
|
2
|
-
//# sourceMappingURL=download-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-C2bfolFC.cjs"),o=l=>e.u("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",...l,children:[e.u("path",{fill:"currentColor",d:"M8.75 1.25v7.94L11 6.94 12.06 8 8 12.06 3.94 8 5 6.94l2.25 2.25V1.25z"}),e.u("path",{fill:"currentColor",d:"M2.75 12.5v-2.25h-1.5v2.25a2.25 2.25 0 0 0 2.25 2.25h9a2.25 2.25 0 0 0 2.25-2.25v-2.25h-1.5v2.25a.75.75 0 0 1-.75.75h-9a.75.75 0 0 1-.75-.75"})]});exports.default=o;
|
|
2
|
+
//# sourceMappingURL=download-B0HG76gQ.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"download-
|
|
1
|
+
{"version":3,"file":"download-B0HG76gQ.cjs","sources":["../src/images/icons/download.svg?component"],"sourcesContent":["import { jsx, jsxs } from \"react/jsx-runtime\";\nconst SvgDownload = (props) => /* @__PURE__ */ jsxs(\"svg\", { xmlns: \"http://www.w3.org/2000/svg\", fill: \"none\", viewBox: \"0 0 16 16\", ...props, children: [\n /* @__PURE__ */ jsx(\"path\", { fill: \"currentColor\", d: \"M8.75 1.25v7.94L11 6.94 12.06 8 8 12.06 3.94 8 5 6.94l2.25 2.25V1.25z\" }),\n /* @__PURE__ */ jsx(\"path\", { fill: \"currentColor\", d: \"M2.75 12.5v-2.25h-1.5v2.25a2.25 2.25 0 0 0 2.25 2.25h9a2.25 2.25 0 0 0 2.25-2.25v-2.25h-1.5v2.25a.75.75 0 0 1-.75.75h-9a.75.75 0 0 1-.75-.75\" })\n] });\nexport default SvgDownload;\n"],"names":["SvgDownload","props","jsxs","jsx"],"mappings":"wHACMA,EAAeC,GAA0BC,EAAI,EAAC,MAAO,CAAE,MAAO,6BAA8B,KAAM,OAAQ,QAAS,YAAa,GAAGD,EAAO,SAAU,CACxIE,EAAG,EAAC,OAAQ,CAAE,KAAM,eAAgB,EAAG,wEAAyE,EAChHA,EAAG,EAAC,OAAQ,CAAE,KAAM,eAAgB,EAAG,8IAAgJ,CAAA,CACzM,CAAG,CAAA"}
|
|
@@ -160,6 +160,7 @@ const e = {
|
|
|
160
160
|
"common.filters.types.date.rangeSelect.options.custom": "Custom",
|
|
161
161
|
"common.filters.types.date.rangeSelect.options.last30Days": "Last 30 days",
|
|
162
162
|
"common.filters.types.date.rangeSelect.options.last7Days": "Last 7 days",
|
|
163
|
+
"common.filters.types.date.rangeSelect.options.last90Days": "Last 90 days",
|
|
163
164
|
"common.filters.types.date.rangeSelect.options.lastMonth": "Last month",
|
|
164
165
|
"common.filters.types.date.rangeSelect.options.lastWeek": "Last week",
|
|
165
166
|
"common.filters.types.date.rangeSelect.options.thisMonth": "This month",
|
|
@@ -622,6 +623,8 @@ const e = {
|
|
|
622
623
|
"disputes.management.defend.common.inputs.file.errors.required": "Upload at least one supporting document to continue",
|
|
623
624
|
"disputes.management.defend.common.inputs.file.errors.tooLarge": "File is over %{size} limit for %{type}. Choose a smaller file and try again.",
|
|
624
625
|
"disputes.management.defend.common.inputs.reasonSelect.a11y.label": "Select defense reason",
|
|
626
|
+
"disputes.management.defend.requestForInformation.selectDefenseReason": "Select the reason you are providing this information.",
|
|
627
|
+
"disputes.management.defend.requestForInformation.title": "Response to Request for Information",
|
|
625
628
|
"disputes.management.details.actions.accept": "Accept",
|
|
626
629
|
"disputes.management.details.actions.contactSupport": "Contact support",
|
|
627
630
|
"disputes.management.details.actions.copyDisputeReference": "Copy dispute reference",
|
|
@@ -629,6 +632,7 @@ const e = {
|
|
|
629
632
|
"disputes.management.details.actions.copyPaymentReference": "Copy payment reference",
|
|
630
633
|
"disputes.management.details.actions.defendChargeback": "Defend chargeback",
|
|
631
634
|
"disputes.management.details.actions.downloadEvidence": "Download evidence",
|
|
635
|
+
"disputes.management.details.actions.submitInformation": "Provide information",
|
|
632
636
|
"disputes.management.details.alerts.autoDefended": "This chargeback was defended automatically.",
|
|
633
637
|
"disputes.management.details.alerts.contactSupport.chargeback": "Contact support to defend this dispute.",
|
|
634
638
|
"disputes.management.details.alerts.contactSupport.notificationOfFraud": "Contact support to resolve this notification of fraud. Refund this payment to avoid a future chargeback and paying extra fees.",
|
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
import { jsx as a } from "../../../../../external/preact/jsx-runtime/dist/jsxRuntime.module.js";
|
|
2
2
|
import x from "../../../../../core/Context/useCoreContext.js";
|
|
3
|
-
import { useMemo as u, useCallback as
|
|
4
|
-
import { getExpectedRepaymentDate as b, calculateMaximumRepaymentPeriodInMonths as k, getPercentage as
|
|
3
|
+
import { useMemo as u, useCallback as g } from "../../../../../external/preact/hooks/dist/hooks.module.js";
|
|
4
|
+
import { getExpectedRepaymentDate as b, calculateMaximumRepaymentPeriodInMonths as k, getPercentage as v } from "../utils/utils.js";
|
|
5
5
|
import i from "../../../../internal/Typography/Typography.js";
|
|
6
6
|
import { TypographyVariant as m, TypographyElement as l } from "../../../../internal/Typography/types.js";
|
|
7
7
|
/* empty css */
|
|
8
8
|
import y from "../../../../internal/Button/Button.js";
|
|
9
9
|
import { ButtonVariant as P } from "../../../../internal/Button/types.js";
|
|
10
10
|
import M from "../../../../../hooks/useMutation/useMutation.js";
|
|
11
|
-
import { Tooltip as
|
|
11
|
+
import { Tooltip as N } from "../../../../internal/Tooltip/Tooltip.js";
|
|
12
12
|
import { AlertTypeOption as D } from "../../../../internal/Alert/types.js";
|
|
13
13
|
import { Alert as E } from "../../../../internal/Alert/Alert.js";
|
|
14
14
|
import { CapitalErrorMessageDisplay as L } from "../utils/CapitalErrorMessageDisplay.js";
|
|
15
15
|
import S from "classnames";
|
|
16
|
-
import { CAPITAL_REPAYMENT_FREQUENCY as
|
|
16
|
+
import { CAPITAL_REPAYMENT_FREQUENCY as R } from "../../../../constants.js";
|
|
17
17
|
import { CapitalOfferLegalNotice as q } from "../CapitalOfferLegalNotice/CapitalOfferLegalNotice.js";
|
|
18
18
|
import B from "../../../../internal/InfoBox/InfoBox.js";
|
|
19
19
|
import { Translation as F } from "../../../../internal/Translation/Translation.js";
|
|
20
20
|
import Y from "../../../../internal/StructuredList/StructuredList.js";
|
|
21
|
-
import { Icon as
|
|
21
|
+
import { Icon as V } from "../../../../internal/Icon/Icon.js";
|
|
22
22
|
import { useConfigContext as W } from "../../../../../core/ConfigContext/context.js";
|
|
23
23
|
import { EMPTY_OBJECT as w } from "../../../../../utils/value/constants.js";
|
|
24
24
|
const G = ["30_013"], pe = ({
|
|
@@ -27,20 +27,20 @@ const G = ["30_013"], pe = ({
|
|
|
27
27
|
onFundsRequest: p,
|
|
28
28
|
onContactSupport: d
|
|
29
29
|
}) => {
|
|
30
|
-
const { i18n: e } = x(),
|
|
30
|
+
const { i18n: e } = x(), _ = u(() => {
|
|
31
31
|
const o = b(t.expectedRepaymentPeriodDays);
|
|
32
32
|
return o ? e.date(o, { month: "long" }) : null;
|
|
33
|
-
}, [t, e]), { requestFunds:
|
|
34
|
-
queryFn:
|
|
33
|
+
}, [t, e]), { requestFunds: C } = W().endpoints, r = M({
|
|
34
|
+
queryFn: C,
|
|
35
35
|
options: {
|
|
36
36
|
onSuccess: (o) => p == null ? void 0 : p(o)
|
|
37
37
|
}
|
|
38
|
-
}), h =
|
|
38
|
+
}), h = g(
|
|
39
39
|
(o) => {
|
|
40
40
|
r.mutate(w, { path: { grantOfferId: o } });
|
|
41
41
|
},
|
|
42
42
|
[r]
|
|
43
|
-
), T =
|
|
43
|
+
), T = g(() => {
|
|
44
44
|
t.id && h(t.id);
|
|
45
45
|
}, [t.id, h]), s = u(
|
|
46
46
|
() => k(t.maximumRepaymentPeriodDays),
|
|
@@ -78,7 +78,7 @@ const G = ["30_013"], pe = ({
|
|
|
78
78
|
},
|
|
79
79
|
{
|
|
80
80
|
key: "capital.common.fields.dailyRepaymentRate",
|
|
81
|
-
value: e.get("capital.common.values.percentage", { values: { percentage:
|
|
81
|
+
value: e.get("capital.common.values.percentage", { values: { percentage: v(t.repaymentRate) } })
|
|
82
82
|
},
|
|
83
83
|
{
|
|
84
84
|
key: "capital.common.fields.expectedRepaymentPeriod",
|
|
@@ -91,7 +91,7 @@ const G = ["30_013"], pe = ({
|
|
|
91
91
|
value: s === 1 ? e.get("capital.common.values.oneMonth") : e.get("capital.common.values.numberOfMonths", { values: { months: s } })
|
|
92
92
|
}), t.aprBasisPoints && o.splice(1, 0, {
|
|
93
93
|
key: "capital.common.fields.annualPercentageRate",
|
|
94
|
-
value: e.get("capital.common.values.percentage", { values: { percentage:
|
|
94
|
+
value: e.get("capital.common.values.percentage", { values: { percentage: v(t.aprBasisPoints) } })
|
|
95
95
|
}), o;
|
|
96
96
|
}, [t, e, s]);
|
|
97
97
|
return !n && r.error ? /* @__PURE__ */ a(L, { error: r.error, onBack: f, onContactSupport: d }) : /* @__PURE__ */ a("div", { className: "adyen-pe-capital-offer-summary", children: [
|
|
@@ -108,8 +108,8 @@ const G = ["30_013"], pe = ({
|
|
|
108
108
|
/* @__PURE__ */ a(i, { el: l.PARAGRAPH, variant: m.CAPTION, children: e.get("capital.offer.common.repaymentInfo", {
|
|
109
109
|
values: {
|
|
110
110
|
amount: e.amount(t.thresholdAmount.value, t.thresholdAmount.currency),
|
|
111
|
-
days:
|
|
112
|
-
date:
|
|
111
|
+
days: R,
|
|
112
|
+
date: _ ?? ""
|
|
113
113
|
}
|
|
114
114
|
}) })
|
|
115
115
|
] }),
|
|
@@ -118,11 +118,11 @@ const G = ["30_013"], pe = ({
|
|
|
118
118
|
{
|
|
119
119
|
classNames: "adyen-pe-capital-offer-summary__details",
|
|
120
120
|
renderLabel: (o, c) => c === "capital.common.fields.repaymentThreshold" ? /* @__PURE__ */ a(
|
|
121
|
-
|
|
121
|
+
N,
|
|
122
122
|
{
|
|
123
|
-
|
|
123
|
+
isUnderlineVisible: !0,
|
|
124
124
|
content: e.get("capital.common.fields.repaymentThreshold.description", {
|
|
125
|
-
values: { days:
|
|
125
|
+
values: { days: R }
|
|
126
126
|
}),
|
|
127
127
|
children: /* @__PURE__ */ a("span", { children: /* @__PURE__ */ a(
|
|
128
128
|
i,
|
|
@@ -134,7 +134,7 @@ const G = ["30_013"], pe = ({
|
|
|
134
134
|
}
|
|
135
135
|
) })
|
|
136
136
|
}
|
|
137
|
-
) : c === "capital.common.fields.annualPercentageRate" ? /* @__PURE__ */ a(
|
|
137
|
+
) : c === "capital.common.fields.annualPercentageRate" ? /* @__PURE__ */ a(N, { isUnderlineVisible: !0, content: e.get("capital.common.fields.annualPercentageRate.description"), children: /* @__PURE__ */ a("span", { children: /* @__PURE__ */ a(
|
|
138
138
|
i,
|
|
139
139
|
{
|
|
140
140
|
className: "adyen-pe-capital-offer-summary__list-label",
|
|
@@ -152,18 +152,18 @@ const G = ["30_013"], pe = ({
|
|
|
152
152
|
}
|
|
153
153
|
),
|
|
154
154
|
renderValue: (o, c) => {
|
|
155
|
-
const
|
|
155
|
+
const A = c === "capital.common.fields.account" && r.error && n && n.errorCode === "30_013";
|
|
156
156
|
return /* @__PURE__ */ a(
|
|
157
157
|
i,
|
|
158
158
|
{
|
|
159
159
|
className: S({
|
|
160
|
-
"adyen-pe-capital-offer-summary__details--error":
|
|
160
|
+
"adyen-pe-capital-offer-summary__details--error": A
|
|
161
161
|
}),
|
|
162
162
|
el: l.SPAN,
|
|
163
163
|
variant: m.CAPTION,
|
|
164
164
|
stronger: !0,
|
|
165
165
|
children: [
|
|
166
|
-
|
|
166
|
+
A ? /* @__PURE__ */ a(V, { name: "warning-filled", "data-testid": "primary-account-warning-icon" }) : null,
|
|
167
167
|
o
|
|
168
168
|
]
|
|
169
169
|
}
|
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
import { jsx as a } from "../../../../../external/preact/jsx-runtime/dist/jsxRuntime.module.js";
|
|
2
2
|
import { useCallback as u, useMemo as p } from "../../../../../external/preact/hooks/dist/hooks.module.js";
|
|
3
3
|
import d from "../../../../../core/Context/useCoreContext.js";
|
|
4
|
-
import
|
|
4
|
+
import m from "../../../../internal/Typography/Typography.js";
|
|
5
5
|
import { TypographyVariant as n, TypographyElement as l } from "../../../../internal/Typography/types.js";
|
|
6
6
|
import { GRANT_DETAILS_CLASS_NAMES as r } from "./constants.js";
|
|
7
7
|
/* empty css */
|
|
8
8
|
import { getPercentage as y } from "../../../CapitalOffer/components/utils/utils.js";
|
|
9
9
|
import { Tooltip as f } from "../../../../internal/Tooltip/Tooltip.js";
|
|
10
|
-
import { CAPITAL_REPAYMENT_FREQUENCY as
|
|
11
|
-
import { Translation as
|
|
10
|
+
import { CAPITAL_REPAYMENT_FREQUENCY as A } from "../../../../constants.js";
|
|
11
|
+
import { Translation as v } from "../../../../internal/Translation/Translation.js";
|
|
12
12
|
import h from "../../../../internal/StructuredList/StructuredList.js";
|
|
13
13
|
const E = ({ grant: e }) => {
|
|
14
|
-
const { i18n: o } = d(),
|
|
15
|
-
const t = e.maximumRepaymentPeriodDays ? Math.ceil(e.maximumRepaymentPeriodDays / 30) : null,
|
|
14
|
+
const { i18n: o } = d(), i = u((t) => o.amount(t.value, t.currency), [o]), c = p(() => {
|
|
15
|
+
const t = e.maximumRepaymentPeriodDays ? Math.ceil(e.maximumRepaymentPeriodDays / 30) : null, s = [
|
|
16
16
|
{
|
|
17
17
|
key: "capital.common.fields.remainingAmount",
|
|
18
18
|
value: o.amount(e.remainingGrantAmount.value, e.remainingGrantAmount.currency)
|
|
19
19
|
},
|
|
20
|
-
{ key: "capital.common.fields.remainingFees", value:
|
|
21
|
-
{ key: "capital.common.fields.repaidAmount", value:
|
|
22
|
-
{ key: "capital.common.fields.repaidFees", value:
|
|
20
|
+
{ key: "capital.common.fields.remainingFees", value: i(e.remainingFeesAmount) },
|
|
21
|
+
{ key: "capital.common.fields.repaidAmount", value: i(e.repaidGrantAmount) },
|
|
22
|
+
{ key: "capital.common.fields.repaidFees", value: i(e.repaidFeesAmount) },
|
|
23
23
|
{
|
|
24
24
|
key: "capital.common.fields.dailyRepaymentRate",
|
|
25
25
|
value: `${o.get("capital.common.values.percentage", {
|
|
@@ -35,40 +35,40 @@ const E = ({ grant: e }) => {
|
|
|
35
35
|
}
|
|
36
36
|
})
|
|
37
37
|
},
|
|
38
|
-
{ key: "capital.common.fields.totalFees", value:
|
|
39
|
-
{ key: "capital.common.fields.totalRepaymentAmount", value:
|
|
40
|
-
{ key: "capital.common.fields.repaymentThreshold", value:
|
|
38
|
+
{ key: "capital.common.fields.totalFees", value: i(e.feesAmount) },
|
|
39
|
+
{ key: "capital.common.fields.totalRepaymentAmount", value: i(e.totalAmount) },
|
|
40
|
+
{ key: "capital.common.fields.repaymentThreshold", value: i(e.thresholdAmount) },
|
|
41
41
|
{ key: "capital.common.fields.grantID", value: e.id },
|
|
42
42
|
{ key: "capital.common.fields.accountDescription", value: e.balanceAccountDescription },
|
|
43
43
|
{ key: "capital.common.fields.accountID", value: e.balanceAccountCode }
|
|
44
44
|
];
|
|
45
|
-
return t &&
|
|
45
|
+
return t && s.splice(5, 0, {
|
|
46
46
|
key: "capital.common.fields.maximumRepaymentPeriod",
|
|
47
47
|
value: o.get("capital.common.values.numberOfMonths", { values: { months: t } })
|
|
48
|
-
}),
|
|
49
|
-
}, [e,
|
|
48
|
+
}), s;
|
|
49
|
+
}, [e, i, o]);
|
|
50
50
|
return /* @__PURE__ */ a("div", { className: r.base, children: /* @__PURE__ */ a("div", { className: r.content, children: [
|
|
51
|
-
/* @__PURE__ */ a("div", { className: r.header, children: /* @__PURE__ */ a(
|
|
52
|
-
|
|
51
|
+
/* @__PURE__ */ a("div", { className: r.header, children: /* @__PURE__ */ a(m, { el: l.SPAN, variant: n.BODY, children: /* @__PURE__ */ a(m, { el: l.PARAGRAPH, variant: n.BODY, children: /* @__PURE__ */ a(
|
|
52
|
+
v,
|
|
53
53
|
{
|
|
54
54
|
translationKey: "capital.overview.grants.item.details.requestedFunds",
|
|
55
55
|
fills: {
|
|
56
|
-
amount: /* @__PURE__ */ a(
|
|
56
|
+
amount: /* @__PURE__ */ a(m, { el: l.SPAN, variant: n.BODY, strongest: !0, children: o.amount(e.grantAmount.value, e.grantAmount.currency) })
|
|
57
57
|
}
|
|
58
58
|
}
|
|
59
59
|
) }) }) }),
|
|
60
60
|
/* @__PURE__ */ a(
|
|
61
61
|
h,
|
|
62
62
|
{
|
|
63
|
-
renderLabel: (t,
|
|
63
|
+
renderLabel: (t, s) => s === "capital.common.fields.repaymentThreshold" ? /* @__PURE__ */ a(
|
|
64
64
|
f,
|
|
65
65
|
{
|
|
66
|
-
|
|
66
|
+
isUnderlineVisible: !0,
|
|
67
67
|
content: o.get("capital.common.fields.repaymentThreshold.description", {
|
|
68
|
-
values: { days:
|
|
68
|
+
values: { days: A }
|
|
69
69
|
}),
|
|
70
70
|
children: /* @__PURE__ */ a("span", { children: /* @__PURE__ */ a(
|
|
71
|
-
|
|
71
|
+
m,
|
|
72
72
|
{
|
|
73
73
|
className: r.label,
|
|
74
74
|
el: l.SPAN,
|
|
@@ -77,9 +77,9 @@ const E = ({ grant: e }) => {
|
|
|
77
77
|
}
|
|
78
78
|
) })
|
|
79
79
|
}
|
|
80
|
-
) : /* @__PURE__ */ a(
|
|
81
|
-
renderValue: (t) => /* @__PURE__ */ a(
|
|
82
|
-
items:
|
|
80
|
+
) : /* @__PURE__ */ a(m, { className: r.label, el: l.SPAN, variant: n.CAPTION, children: t }),
|
|
81
|
+
renderValue: (t) => /* @__PURE__ */ a(m, { el: l.SPAN, stronger: !0, variant: n.CAPTION, children: t }),
|
|
82
|
+
items: c
|
|
83
83
|
}
|
|
84
84
|
)
|
|
85
85
|
] }) });
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as t } from "../../../../../external/preact/jsx-runtime/dist/jsxRuntime.module.js";
|
|
2
|
-
import { useMemo as c, useCallback as
|
|
2
|
+
import { useMemo as c, useCallback as b } from "../../../../../external/preact/hooks/dist/hooks.module.js";
|
|
3
3
|
import v from "classnames";
|
|
4
|
-
import
|
|
4
|
+
import h from "../../../../../core/Context/useCoreContext.js";
|
|
5
5
|
import C from "../../../../../hooks/useTimezoneAwareDateFormatting.js";
|
|
6
6
|
import s from "../../../../internal/Typography/Typography.js";
|
|
7
7
|
import { TypographyVariant as m, TypographyElement as A } from "../../../../internal/Typography/types.js";
|
|
@@ -21,10 +21,10 @@ import { Fragment as f } from "../../../../../external/preact/dist/preact.module
|
|
|
21
21
|
import { Translation as G } from "../../../../internal/Translation/Translation.js";
|
|
22
22
|
import { DATE_FORMAT_CAPITAL_OVERVIEW as O } from "../../../../../constants/dateFormats.js";
|
|
23
23
|
import R from "../../../../internal/ProgressBar/ProgressBar.js";
|
|
24
|
-
import
|
|
24
|
+
import V from "../../../../internal/Button/Button.js";
|
|
25
25
|
import { uniqueId as l } from "../../../../../utils/random/uniqueId.js";
|
|
26
26
|
const st = ({ grant: r, showDetails: n }) => {
|
|
27
|
-
const { i18n: a } =
|
|
27
|
+
const { i18n: a } = h(), { dateFormat: d } = C(), e = c(() => N(r), [r]), p = b(() => n == null ? void 0 : n("unscheduledRepayment"), [n]), o = c(
|
|
28
28
|
() => ({
|
|
29
29
|
grantAmount: l("elem"),
|
|
30
30
|
grantAmountLabel: l("elem"),
|
|
@@ -99,7 +99,7 @@ const st = ({ grant: r, showDetails: n }) => {
|
|
|
99
99
|
textToCopy: r.id,
|
|
100
100
|
visibleText: a.get("capital.common.fields.grantID"),
|
|
101
101
|
copyButtonAriaLabelKey: "capital.overview.grants.item.actions.copyGrantID",
|
|
102
|
-
|
|
102
|
+
isUnderlineVisible: !0,
|
|
103
103
|
type: "Text",
|
|
104
104
|
"data-testid": "grant-id-copy-text"
|
|
105
105
|
}
|
|
@@ -119,7 +119,7 @@ const st = ({ grant: r, showDetails: n }) => {
|
|
|
119
119
|
title: a.get("capital.overview.grants.item.alerts.processingRequest")
|
|
120
120
|
}
|
|
121
121
|
) }) : e.hasUnscheduledRepaymentDetails && /* @__PURE__ */ t("div", { className: i.actionsBar, children: /* @__PURE__ */ t(
|
|
122
|
-
|
|
122
|
+
V,
|
|
123
123
|
{
|
|
124
124
|
onClick: p,
|
|
125
125
|
className: i.mainActionBtn,
|
|
@@ -1,22 +1,26 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import
|
|
3
|
-
import { useModalContext as
|
|
4
|
-
import { TypographyElement as
|
|
5
|
-
import
|
|
6
|
-
import { useDisputeFlow as
|
|
7
|
-
import { DefendDisputeFileUpload as
|
|
8
|
-
import { DefendDisputeReason as
|
|
9
|
-
import { DefendDisputeResponse as
|
|
1
|
+
import { jsx as t } from "../../../../../external/preact/jsx-runtime/dist/jsxRuntime.module.js";
|
|
2
|
+
import a from "../../../../../core/Context/useCoreContext.js";
|
|
3
|
+
import { useModalContext as f } from "../../../../internal/Modal/Modal.js";
|
|
4
|
+
import { TypographyElement as s, TypographyVariant as l } from "../../../../internal/Typography/types.js";
|
|
5
|
+
import u from "../../../../internal/Typography/Typography.js";
|
|
6
|
+
import { useDisputeFlow as c } from "../../context/dispute/context.js";
|
|
7
|
+
import { DefendDisputeFileUpload as D } from "./DefendDisputeFileUpload.js";
|
|
8
|
+
import { DefendDisputeReason as y } from "./DefendDisputeReason.js";
|
|
9
|
+
import { DefendDisputeResponse as g } from "./DefendDisputeResponse.js";
|
|
10
10
|
/* empty css */
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
11
|
+
import { useMemo as T } from "../../../../../external/preact/hooks/dist/hooks.module.js";
|
|
12
|
+
const N = ({ onDisputeDefend: r }) => {
|
|
13
|
+
const { i18n: n } = a(), { applicableDocuments: i, flowState: o, dispute: e } = c(), { withinModal: p } = f(), m = p ? s.H2 : s.DIV, d = T(
|
|
14
|
+
() => (e == null ? void 0 : e.dispute.type) === "REQUEST_FOR_INFORMATION" ? n.get("disputes.management.defend.requestForInformation.title") : n.get("disputes.management.defend.chargeback.title"),
|
|
15
|
+
[e == null ? void 0 : e.dispute.type, n]
|
|
16
|
+
);
|
|
17
|
+
return /* @__PURE__ */ t("div", { className: "adyen-pe-defend-dispute__container", children: [
|
|
18
|
+
o !== "defenseSubmitResponseView" && /* @__PURE__ */ t(u, { className: "adyen-pe-defend-dispute__title", el: m, variant: l.TITLE, medium: !0, children: d }),
|
|
19
|
+
o === "defendReasonSelectionView" && /* @__PURE__ */ t(y, {}),
|
|
20
|
+
o === "uploadDefenseFilesView" && !!(i != null && i.length) && /* @__PURE__ */ t(D, {}),
|
|
21
|
+
o === "defenseSubmitResponseView" && /* @__PURE__ */ t(g, { onDisputeDefend: r })
|
|
18
22
|
] });
|
|
19
23
|
};
|
|
20
24
|
export {
|
|
21
|
-
|
|
25
|
+
N as DefendDisputeFlow
|
|
22
26
|
};
|