@adyen/adyen-platform-experience-web 1.6.0 → 1.7.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/README.md +1 -1
- package/dist/adyen-platform-experience-web.css +1 -1
- package/dist/{angle-right-Bb55rXYe.cjs → angle-right-BYzD_-Ft.cjs} +2 -2
- package/dist/{angle-right-Bb55rXYe.cjs.map → angle-right-BYzD_-Ft.cjs.map} +1 -1
- package/dist/{checkmark-DiDm_wM9.cjs → checkmark-BvN7Hdc4.cjs} +2 -2
- package/dist/{checkmark-DiDm_wM9.cjs.map → checkmark-BvN7Hdc4.cjs.map} +1 -1
- package/dist/{checkmark-circle-fill-Cw6AyXxm.cjs → checkmark-circle-fill-B2FBCXMi.cjs} +2 -2
- package/dist/{checkmark-circle-fill-Cw6AyXxm.cjs.map → checkmark-circle-fill-B2FBCXMi.cjs.map} +1 -1
- package/dist/{checkmark-square-fill-B0JKpJWE.cjs → checkmark-square-fill-C0yzqh08.cjs} +2 -2
- package/dist/{checkmark-square-fill-B0JKpJWE.cjs.map → checkmark-square-fill-C0yzqh08.cjs.map} +1 -1
- package/dist/{chevron-down-BhSTKYlw.cjs → chevron-down-Bh5iG-g7.cjs} +2 -2
- package/dist/{chevron-down-BhSTKYlw.cjs.map → chevron-down-Bh5iG-g7.cjs.map} +1 -1
- package/dist/{chevron-left-D-GWfC1v.cjs → chevron-left-CslKDyxG.cjs} +2 -2
- package/dist/{chevron-left-D-GWfC1v.cjs.map → chevron-left-CslKDyxG.cjs.map} +1 -1
- package/dist/{chevron-right-CSehcQXv.cjs → chevron-right-B86-08tq.cjs} +2 -2
- package/dist/{chevron-right-CSehcQXv.cjs.map → chevron-right-B86-08tq.cjs.map} +1 -1
- package/dist/{chevron-up-D8g7ZBDG.cjs → chevron-up-DRKXzgCM.cjs} +2 -2
- package/dist/{chevron-up-D8g7ZBDG.cjs.map → chevron-up-DRKXzgCM.cjs.map} +1 -1
- package/dist/cjs/index.js +1 -1
- package/dist/{copy-BOKezSIj.cjs → copy--wgagwiQ.cjs} +2 -2
- package/dist/{copy-BOKezSIj.cjs.map → copy--wgagwiQ.cjs.map} +1 -1
- package/dist/{cross-BMK10x3R.cjs → cross-BWhI1OkU.cjs} +2 -2
- package/dist/{cross-BMK10x3R.cjs.map → cross-BWhI1OkU.cjs.map} +1 -1
- package/dist/{cross-circle-fill-DzWguWQ6.cjs → cross-circle-fill-CNa1fp55.cjs} +2 -2
- package/dist/{cross-circle-fill-DzWguWQ6.cjs.map → cross-circle-fill-CNa1fp55.cjs.map} +1 -1
- package/dist/{download-DciFfoOz.cjs → download-v3aQcc7_.cjs} +2 -2
- package/dist/{download-DciFfoOz.cjs.map → download-v3aQcc7_.cjs.map} +1 -1
- package/dist/es/components/external/CapitalOverview/components/GrantActions/GrantActions.js +133 -0
- package/dist/es/components/external/CapitalOverview/components/GrantActions/constants.js +9 -0
- package/dist/es/components/external/CapitalOverview/components/GrantItem/GrantItem.js +39 -40
- package/dist/es/components/external/ReportsOverview/components/ReportsTable/ReportsTable.js +11 -11
- package/dist/es/components/external/TransactionDetails/components/refund/TransactionRefundAmount.js +19 -19
- package/dist/es/components/internal/Accordion/Accordion.js +19 -20
- package/dist/es/components/internal/Button/DownloadButton/DownloadButton.js +37 -37
- package/dist/es/components/internal/Calendar/hooks/useCalendarControlsRendering.js +18 -19
- package/dist/es/components/internal/ExpandableCard/ExpandableCard.js +47 -48
- package/dist/es/components/internal/FormFields/Select/Select.js +29 -29
- package/dist/es/components/internal/FormFields/Select/components/SelectButton.js +27 -27
- package/dist/es/components/internal/FormFields/Select/components/SelectListItem.js +27 -29
- package/dist/es/components/internal/Pagination/Pagination.js +41 -38
- package/dist/es/components/internal/Popover/Popover.js +95 -92
- package/dist/es/components/internal/Popover/types.js +2 -2
- package/dist/es/components/internal/Tooltip/Tooltip.js +28 -32
- package/dist/es/constants/dateFormats.js +19 -18
- package/dist/es/core/Http/utils.js +1 -1
- package/dist/es/core/core.js +1 -1
- package/dist/es/hooks/element/usePopoverPositioner.js +129 -89
- package/dist/es/translations/en-US.json.js +4 -0
- package/dist/{external-link-B2F_A_Cq.cjs → external-link-Y0ITwX_D.cjs} +2 -2
- package/dist/{external-link-B2F_A_Cq.cjs.map → external-link-Y0ITwX_D.cjs.map} +1 -1
- package/dist/{filter-D22HZfjz.cjs → filter-B0jf9LNT.cjs} +2 -2
- package/dist/{filter-D22HZfjz.cjs.map → filter-B0jf9LNT.cjs.map} +1 -1
- package/dist/index-CldOsFs0.cjs +12 -0
- package/dist/index-CldOsFs0.cjs.map +1 -0
- package/dist/{info-filled-DChkt5PM.cjs → info-filled-DWI7yYIK.cjs} +2 -2
- package/dist/{info-filled-DChkt5PM.cjs.map → info-filled-DWI7yYIK.cjs.map} +1 -1
- package/dist/{minus-circle-outline-o-wMYGB7.cjs → minus-circle-outline-TX4FRKCq.cjs} +2 -2
- package/dist/{minus-circle-outline-o-wMYGB7.cjs.map → minus-circle-outline-TX4FRKCq.cjs.map} +1 -1
- package/dist/{plus-IYFySo3s.cjs → plus-WkQleJCL.cjs} +2 -2
- package/dist/{plus-IYFySo3s.cjs.map → plus-WkQleJCL.cjs.map} +1 -1
- package/dist/{plus-circle-outline-CoI6-j9k.cjs → plus-circle-outline-BSbUWJEJ.cjs} +2 -2
- package/dist/{plus-circle-outline-CoI6-j9k.cjs.map → plus-circle-outline-BSbUWJEJ.cjs.map} +1 -1
- package/dist/{square-DN8rGu6b.cjs → square-wBNy5hkk.cjs} +2 -2
- package/dist/{square-DN8rGu6b.cjs.map → square-wBNy5hkk.cjs.map} +1 -1
- package/dist/{trash-can-DIrL2Xi0.cjs → trash-can-BtOHiu0D.cjs} +2 -2
- package/dist/{trash-can-DIrL2Xi0.cjs.map → trash-can-BtOHiu0D.cjs.map} +1 -1
- package/dist/types/components/external/CapitalOverview/components/AccountDetails/types.d.ts +2 -2
- package/dist/types/components/external/CapitalOverview/components/AccountDetails/types.d.ts.map +1 -1
- package/dist/types/components/external/CapitalOverview/components/GrantActions/GrantActions.d.ts +9 -0
- package/dist/types/components/external/CapitalOverview/components/GrantActions/GrantActions.d.ts.map +1 -0
- package/dist/types/components/external/CapitalOverview/components/GrantActions/constants.d.ts +7 -0
- package/dist/types/components/external/CapitalOverview/components/{GrantAction → GrantActions}/constants.d.ts.map +1 -1
- package/dist/types/components/external/CapitalOverview/components/GrantActions/utils.d.ts.map +1 -0
- package/dist/types/components/external/CapitalOverview/components/GrantItem/GrantItem.d.ts.map +1 -1
- package/dist/types/components/external/ReportsOverview/components/ReportsTable/ReportsTable.d.ts.map +1 -1
- package/dist/types/components/internal/Accordion/Accordion.d.ts.map +1 -1
- package/dist/types/components/internal/Button/DownloadButton/useDownload.d.ts +5 -21
- package/dist/types/components/internal/Button/DownloadButton/useDownload.d.ts.map +1 -1
- package/dist/types/components/internal/Calendar/hooks/useCalendarControlsRendering.d.ts.map +1 -1
- package/dist/types/components/internal/ExpandableCard/ExpandableCard.d.ts.map +1 -1
- package/dist/types/components/internal/FormFields/Select/components/SelectListItem.d.ts.map +1 -1
- package/dist/types/components/internal/Pagination/Pagination.d.ts +1 -1
- package/dist/types/components/internal/Pagination/Pagination.d.ts.map +1 -1
- package/dist/types/components/internal/Popover/Popover.d.ts.map +1 -1
- package/dist/types/components/internal/Popover/types.d.ts +4 -2
- package/dist/types/components/internal/Popover/types.d.ts.map +1 -1
- package/dist/types/components/internal/StructuredList/useStructuredListItem.d.ts +1 -1
- package/dist/types/components/internal/Tooltip/Tooltip.d.ts.map +1 -1
- package/dist/types/constants/dateFormats.d.ts +1 -0
- package/dist/types/constants/dateFormats.d.ts.map +1 -1
- package/dist/types/core/ConfigContext/context.d.ts +38 -20
- package/dist/types/core/ConfigContext/context.d.ts.map +1 -1
- package/dist/types/core/ConfigContext/session/AuthSession.d.ts +76 -40
- package/dist/types/core/ConfigContext/session/AuthSession.d.ts.map +1 -1
- package/dist/types/core/ConfigContext/session/SetupContext.d.ts +38 -20
- package/dist/types/core/ConfigContext/session/SetupContext.d.ts.map +1 -1
- package/dist/types/core/ConfigContext/types.d.ts +7 -1
- package/dist/types/core/ConfigContext/types.d.ts.map +1 -1
- package/dist/types/hooks/element/usePopoverPositioner.d.ts +1 -1
- package/dist/types/hooks/element/usePopoverPositioner.d.ts.map +1 -1
- package/dist/types/hooks/useTableColumns.d.ts +1 -1
- package/dist/types/translations/index.d.ts +4 -0
- package/dist/types/translations/index.d.ts.map +1 -1
- package/dist/types/types/api/endpoints.d.ts +4 -2
- package/dist/types/types/api/endpoints.d.ts.map +1 -1
- package/dist/types/types/api/models/capital.d.ts +10 -6
- package/dist/types/types/api/models/capital.d.ts.map +1 -1
- package/dist/types/types/api/resources/BalanceAccountsResource.d.ts +56 -28
- package/dist/types/types/api/resources/BalanceAccountsResource.d.ts.map +1 -1
- package/dist/types/types/api/resources/CapitalGrantOffersResource.d.ts +182 -0
- package/dist/types/types/api/resources/CapitalGrantOffersResource.d.ts.map +1 -0
- package/dist/types/types/api/resources/CapitalGrantsResource.d.ts +190 -0
- package/dist/types/types/api/resources/CapitalGrantsResource.d.ts.map +1 -0
- package/dist/types/types/api/resources/CapitalMissingActionsResource.d.ts +112 -0
- package/dist/types/types/api/resources/CapitalMissingActionsResource.d.ts.map +1 -0
- package/dist/types/types/api/resources/SetupResource.d.ts +33 -15
- package/dist/types/types/api/resources/SetupResource.d.ts.map +1 -1
- package/dist/types/utils/abort/main.d.ts +1 -2
- package/dist/types/utils/abort/main.d.ts.map +1 -1
- package/dist/{upload-deLJWgy1.cjs → upload-CwRQ9v3Y.cjs} +2 -2
- package/dist/{upload-deLJWgy1.cjs.map → upload-CwRQ9v3Y.cjs.map} +1 -1
- package/dist/{warning-DhLYlOp4.cjs → warning-DBphva9h.cjs} +2 -2
- package/dist/{warning-DhLYlOp4.cjs.map → warning-DBphva9h.cjs.map} +1 -1
- package/dist/{warning-filled-B9O_Hc7Y.cjs → warning-filled-Ctsg1oEC.cjs} +2 -2
- package/dist/{warning-filled-B9O_Hc7Y.cjs.map → warning-filled-Ctsg1oEC.cjs.map} +1 -1
- package/package.json +20 -43
- package/dist/es/components/external/CapitalOverview/components/GrantAction/GrantAction.js +0 -65
- package/dist/es/components/external/CapitalOverview/components/GrantAction/constants.js +0 -6
- package/dist/es/components/internal/SVGIcons/CheckedBox.js +0 -15
- package/dist/es/components/internal/SVGIcons/Checkmark.js +0 -17
- package/dist/es/components/internal/SVGIcons/ChevronDown.js +0 -17
- package/dist/es/components/internal/SVGIcons/ChevronLeft.js +0 -17
- package/dist/es/components/internal/SVGIcons/ChevronRight.js +0 -17
- package/dist/es/components/internal/SVGIcons/ChevronUp.js +0 -17
- package/dist/es/components/internal/SVGIcons/CloseCircle.js +0 -16
- package/dist/es/components/internal/SVGIcons/Download.js +0 -20
- package/dist/es/components/internal/SVGIcons/UncheckedBox.js +0 -9
- package/dist/es/components/internal/SVGIcons/Warning.js +0 -21
- package/dist/index-CmIP-V4s.cjs +0 -12
- package/dist/index-CmIP-V4s.cjs.map +0 -1
- package/dist/types/components/external/CapitalOverview/components/GrantAction/GrantAction.d.ts +0 -5
- package/dist/types/components/external/CapitalOverview/components/GrantAction/GrantAction.d.ts.map +0 -1
- package/dist/types/components/external/CapitalOverview/components/GrantAction/constants.d.ts +0 -4
- package/dist/types/components/external/CapitalOverview/components/GrantAction/types.d.ts +0 -7
- package/dist/types/components/external/CapitalOverview/components/GrantAction/types.d.ts.map +0 -1
- package/dist/types/components/external/CapitalOverview/components/GrantAction/utils.d.ts.map +0 -1
- package/dist/types/components/internal/SVGIcons/CheckedBox.d.ts +0 -10
- package/dist/types/components/internal/SVGIcons/CheckedBox.d.ts.map +0 -1
- package/dist/types/components/internal/SVGIcons/Checkmark.d.ts +0 -10
- package/dist/types/components/internal/SVGIcons/Checkmark.d.ts.map +0 -1
- package/dist/types/components/internal/SVGIcons/ChevronDown.d.ts +0 -10
- package/dist/types/components/internal/SVGIcons/ChevronDown.d.ts.map +0 -1
- package/dist/types/components/internal/SVGIcons/ChevronLeft.d.ts +0 -10
- package/dist/types/components/internal/SVGIcons/ChevronLeft.d.ts.map +0 -1
- package/dist/types/components/internal/SVGIcons/ChevronRight.d.ts +0 -10
- package/dist/types/components/internal/SVGIcons/ChevronRight.d.ts.map +0 -1
- package/dist/types/components/internal/SVGIcons/ChevronUp.d.ts +0 -10
- package/dist/types/components/internal/SVGIcons/ChevronUp.d.ts.map +0 -1
- package/dist/types/components/internal/SVGIcons/CloseCircle.d.ts +0 -7
- package/dist/types/components/internal/SVGIcons/CloseCircle.d.ts.map +0 -1
- package/dist/types/components/internal/SVGIcons/Download.d.ts +0 -7
- package/dist/types/components/internal/SVGIcons/Download.d.ts.map +0 -1
- package/dist/types/components/internal/SVGIcons/UncheckedBox.d.ts +0 -10
- package/dist/types/components/internal/SVGIcons/UncheckedBox.d.ts.map +0 -1
- package/dist/types/components/internal/SVGIcons/Warning.d.ts +0 -7
- package/dist/types/components/internal/SVGIcons/Warning.d.ts.map +0 -1
- package/dist/types/types/api/resources/CapitalResource.d.ts +0 -255
- package/dist/types/types/api/resources/CapitalResource.d.ts.map +0 -1
- /package/dist/es/components/external/CapitalOverview/components/{GrantAction → GrantActions}/utils.js +0 -0
- /package/dist/types/components/external/CapitalOverview/components/{GrantAction → GrantActions}/utils.d.ts +0 -0
|
@@ -1,45 +1,41 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import
|
|
3
|
-
import { PopoverContainerVariant as
|
|
4
|
-
import { useTooltipListeners as
|
|
5
|
-
import { TypographyVariant as
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import {
|
|
1
|
+
import { jsx as r } from "../../../external/preact/jsx-runtime/dist/jsxRuntime.module.js";
|
|
2
|
+
import _ from "../Popover/Popover.js";
|
|
3
|
+
import { PopoverContainerVariant as T } from "../Popover/types.js";
|
|
4
|
+
import { useTooltipListeners as b } from "./useTooltipListeners.js";
|
|
5
|
+
import { TypographyVariant as v } from "../Typography/types.js";
|
|
6
|
+
import P from "../Typography/Typography.js";
|
|
7
|
+
import x from "../../../hooks/element/useUniqueIdentifier.js";
|
|
8
|
+
import n from "classnames";
|
|
9
|
+
import { cloneElement as I, Fragment as g } from "../../../external/preact/dist/preact.module.js";
|
|
10
10
|
/* empty css */
|
|
11
|
-
const
|
|
12
|
-
|
|
13
|
-
const
|
|
14
|
-
return
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
var m, u, f;
|
|
18
|
-
const e = l(), { isVisible: n, listeners: T } = P();
|
|
19
|
-
return h() ? /* @__PURE__ */ a(s, { children: o }) : /* @__PURE__ */ a(s, { children: [
|
|
20
|
-
o ? b(o, {
|
|
21
|
-
...o == null ? void 0 : o.props,
|
|
11
|
+
const N = (o) => typeof o == "string", F = ({ content: o, children: t, triggerRef: u, showTooltip: p, position: y, isContainerHovered: a = !1 }) => {
|
|
12
|
+
var m, i, f;
|
|
13
|
+
const e = x(), { isVisible: s, listeners: l } = b();
|
|
14
|
+
return /* @__PURE__ */ r(g, { children: [
|
|
15
|
+
t ? I(t, {
|
|
16
|
+
...t == null ? void 0 : t.props,
|
|
22
17
|
role: "button",
|
|
23
18
|
tabIndex: -1,
|
|
24
19
|
ref: e,
|
|
25
|
-
className: (m =
|
|
26
|
-
" adyen-pe__tooltip-target--hovered":
|
|
27
|
-
}) :
|
|
28
|
-
...
|
|
20
|
+
className: (m = t == null ? void 0 : t.props) != null && m.className ? n(`${(i = t == null ? void 0 : t.props) == null ? void 0 : i.className} adyen-pe__tooltip-target`, {
|
|
21
|
+
" adyen-pe__tooltip-target--hovered": a
|
|
22
|
+
}) : n("adyen-pe__tooltip-target", { "adyen-pe__tooltip-target--hovered": a }),
|
|
23
|
+
...l,
|
|
29
24
|
"aria-describedby": `tooltip-${(f = e.current) == null ? void 0 : f.id}`
|
|
30
25
|
}) : null,
|
|
31
|
-
(
|
|
32
|
-
|
|
26
|
+
(s || p) && /* @__PURE__ */ r(
|
|
27
|
+
_,
|
|
33
28
|
{
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
29
|
+
fitPosition: !0,
|
|
30
|
+
variant: T.TOOLTIP,
|
|
31
|
+
targetElement: u ?? e,
|
|
32
|
+
position: y,
|
|
33
|
+
open: s || p,
|
|
34
|
+
children: /* @__PURE__ */ r(g, { children: o && N(o) ? /* @__PURE__ */ r(P, { variant: v.CAPTION, children: o }) : { content: o } })
|
|
39
35
|
}
|
|
40
36
|
)
|
|
41
37
|
] });
|
|
42
38
|
};
|
|
43
39
|
export {
|
|
44
|
-
|
|
40
|
+
F as Tooltip
|
|
45
41
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const _ = "2-digit", A = "long", o = "numeric",
|
|
1
|
+
const _ = "2-digit", A = "long", o = "numeric", t = "short", E = "shortOffset", T = {
|
|
2
2
|
month: A,
|
|
3
3
|
day: o,
|
|
4
4
|
year: o
|
|
@@ -8,35 +8,36 @@ const _ = "2-digit", A = "long", o = "numeric", E = "short", t = "shortOffset",
|
|
|
8
8
|
}, n = {
|
|
9
9
|
...T,
|
|
10
10
|
...O,
|
|
11
|
-
month:
|
|
11
|
+
month: t,
|
|
12
12
|
hour12: !1
|
|
13
|
-
},
|
|
13
|
+
}, s = { ...n, year: void 0 }, R = { ...T, month: "short" }, S = { ...T, month: "long" }, e = T, M = s, D = { ...T, weekday: A }, I = { ...T, month: t }, c = n, F = s, m = {
|
|
14
14
|
...T,
|
|
15
15
|
...O,
|
|
16
16
|
weekday: A,
|
|
17
|
-
timeZoneName:
|
|
18
|
-
},
|
|
17
|
+
timeZoneName: E
|
|
18
|
+
}, N = T, h = {
|
|
19
19
|
...n,
|
|
20
20
|
hour12: !0,
|
|
21
|
-
timeZoneName:
|
|
22
|
-
},
|
|
23
|
-
month:
|
|
21
|
+
timeZoneName: E
|
|
22
|
+
}, r = {
|
|
23
|
+
month: t,
|
|
24
24
|
weekday: A,
|
|
25
25
|
hour: _,
|
|
26
26
|
minute: o,
|
|
27
27
|
year: void 0,
|
|
28
|
-
timeZoneName:
|
|
28
|
+
timeZoneName: E
|
|
29
29
|
};
|
|
30
30
|
export {
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
31
|
+
R as DATE_FORMAT_CAPITAL_OVERVIEW,
|
|
32
|
+
N as DATE_FORMAT_DISPUTES,
|
|
33
|
+
h as DATE_FORMAT_DISPUTE_DETAILS,
|
|
34
|
+
S as DATE_FORMAT_MISSING_ACTION,
|
|
35
|
+
e as DATE_FORMAT_PAYOUTS,
|
|
36
|
+
M as DATE_FORMAT_PAYOUTS_MOBILE,
|
|
36
37
|
D as DATE_FORMAT_PAYOUT_DETAILS,
|
|
37
|
-
|
|
38
|
-
|
|
38
|
+
I as DATE_FORMAT_REPORTS,
|
|
39
|
+
r as DATE_FORMAT_RESPONSE_DEADLINE,
|
|
39
40
|
c as DATE_FORMAT_TRANSACTIONS,
|
|
40
|
-
|
|
41
|
-
|
|
41
|
+
F as DATE_FORMAT_TRANSACTIONS_MOBILE,
|
|
42
|
+
m as DATE_FORMAT_TRANSACTION_DETAILS
|
|
42
43
|
};
|
|
@@ -26,7 +26,7 @@ const p = (e) => {
|
|
|
26
26
|
}
|
|
27
27
|
}, O = (e) => {
|
|
28
28
|
var s;
|
|
29
|
-
const { headers: n = [], method: t = "GET" } = e, r = "1.
|
|
29
|
+
const { headers: n = [], method: t = "GET" } = e, r = "1.7.0", o = ((s = e.contentType) == null ? void 0 : s.toLowerCase()) ?? "application/json";
|
|
30
30
|
return {
|
|
31
31
|
method: t,
|
|
32
32
|
mode: "cors",
|
package/dist/es/core/core.js
CHANGED
|
@@ -1,139 +1,179 @@
|
|
|
1
|
-
import { useState as P, useCallback as
|
|
2
|
-
import
|
|
3
|
-
import { PopoverContainerPosition as t, PopoverContainerVariant as
|
|
1
|
+
import { useState as P, useCallback as Y, useRef as y, useEffect as D } from "../../external/preact/hooks/dist/hooks.module.js";
|
|
2
|
+
import d from "../../components/internal/Popover/utils/utils.js";
|
|
3
|
+
import { PopoverContainerPosition as t, PopoverContainerVariant as v } from "../../components/internal/Popover/types.js";
|
|
4
4
|
import { isRefObject as W } from "../../primitives/reactive/reflex/helpers.js";
|
|
5
|
-
import
|
|
6
|
-
const
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
5
|
+
import V from "../useReflex.js";
|
|
6
|
+
const w = [
|
|
7
|
+
t.BOTTOM_RIGHT,
|
|
8
|
+
t.BOTTOM_LEFT,
|
|
9
|
+
t.TOP_RIGHT,
|
|
10
|
+
t.TOP_LEFT
|
|
11
|
+
], q = 5, A = 4, U = 10, Z = ({
|
|
12
|
+
position: M,
|
|
13
|
+
variant: _,
|
|
14
|
+
offset: O,
|
|
15
|
+
additionalStyle: i,
|
|
16
|
+
fixedPositioning: T,
|
|
17
|
+
fullWidth: F,
|
|
18
|
+
popover: a,
|
|
19
|
+
targetElement: r
|
|
15
20
|
}) => {
|
|
16
|
-
let
|
|
17
|
-
const
|
|
18
|
-
switch (
|
|
21
|
+
let n = 0, c = 0;
|
|
22
|
+
const B = _ === v.TOOLTIP, u = a.clientHeight, C = a.clientWidth, p = a.firstChild, k = p.offsetHeight, E = p.offsetWidth, h = document.body.getBoundingClientRect(), e = r.getBoundingClientRect(), L = h.x + (h.width - E) / 2, l = e.x + (e.width - E) / 2, m = e.y + (e.height - k) / 2, b = window.scrollX, s = window.scrollY;
|
|
23
|
+
switch (M) {
|
|
19
24
|
case t.BOTTOM:
|
|
20
|
-
|
|
21
|
-
break;
|
|
22
|
-
case t.BOTTOM_LEFT:
|
|
23
|
-
r = e.x + e.width - M, o = e.y + e.height + T[1], n || (r += i, o += s);
|
|
25
|
+
n = F ? L : B ? l : e.x, c = e.y + e.height + O[1], T || (F || (n += b), c += s);
|
|
24
26
|
break;
|
|
25
27
|
case t.TOP:
|
|
26
|
-
|
|
28
|
+
n = B ? l : e.x, c = e.y - (u + O[0]), T || (n += b, c += s - p.clientHeight + u);
|
|
27
29
|
break;
|
|
28
30
|
case t.RIGHT:
|
|
29
|
-
|
|
31
|
+
n = e.x + e.width + O[2], c = B ? m : e.y - e.height / 2, T || (n += b, c += s);
|
|
30
32
|
break;
|
|
31
33
|
case t.LEFT:
|
|
32
|
-
|
|
34
|
+
n = e.x - (C + O[3]), c = B ? m : e.y - e.height / 2, T || (n += b, c += s);
|
|
35
|
+
break;
|
|
36
|
+
case t.BOTTOM_LEFT:
|
|
37
|
+
n = 5, c = e.y + e.height + O[1], T || (n += b, c += s);
|
|
38
|
+
break;
|
|
39
|
+
case t.BOTTOM_RIGHT:
|
|
40
|
+
n = -5, c = e.y + e.height + O[1], T || (n += b, c += s);
|
|
41
|
+
break;
|
|
42
|
+
case t.TOP_LEFT:
|
|
43
|
+
n = q, c = e.y - u, T || (n += b, c += s - p.clientHeight + u);
|
|
44
|
+
break;
|
|
45
|
+
case t.TOP_RIGHT:
|
|
46
|
+
n = -5, c = e.y - u, T || (n += b, c += s - p.clientHeight + u);
|
|
33
47
|
break;
|
|
34
48
|
}
|
|
35
|
-
const
|
|
36
|
-
if (
|
|
37
|
-
const
|
|
38
|
-
if (
|
|
39
|
-
const
|
|
40
|
-
|
|
49
|
+
const R = {};
|
|
50
|
+
if (i) {
|
|
51
|
+
const G = !!i.maxY && c + (a == null ? void 0 : a.clientHeight) > i.maxY, o = !!i.minY && c < i.minY;
|
|
52
|
+
if (G && i.maxY) {
|
|
53
|
+
const g = e.y + e.height + 8, H = Math.max(0, i.maxY - g);
|
|
54
|
+
H > 20 && (R.height = `${H}px`), R["overflow-y"] = "scroll";
|
|
41
55
|
}
|
|
42
|
-
if (
|
|
43
|
-
const
|
|
44
|
-
|
|
56
|
+
if (o && i.minY && c) {
|
|
57
|
+
const g = a.offsetHeight ?? a.clientHeight, H = Math.max(0, g - (i.minY - c));
|
|
58
|
+
R.height = `${H}px`, H && (R["overflow-y"] = "scroll");
|
|
45
59
|
}
|
|
46
|
-
|
|
60
|
+
o && (c = i.minY ?? 0);
|
|
47
61
|
}
|
|
62
|
+
const I = M === t.TOP_RIGHT || M === t.BOTTOM_RIGHT;
|
|
48
63
|
return {
|
|
49
|
-
inset: "0 auto auto 0",
|
|
64
|
+
inset: I ? "0 0 auto auto" : "0 auto auto 0",
|
|
50
65
|
margin: "0",
|
|
51
|
-
position:
|
|
52
|
-
transform: `translate3d(${
|
|
66
|
+
position: T ? "fixed" : "absolute",
|
|
67
|
+
transform: `translate3d(${n}px, ${c}px, 0)`,
|
|
53
68
|
visibility: "hidden",
|
|
54
|
-
|
|
69
|
+
right: I ? 0 : "auto",
|
|
70
|
+
...R
|
|
55
71
|
};
|
|
56
|
-
},
|
|
57
|
-
const [
|
|
58
|
-
(
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
72
|
+
}, tt = (M, _, O, i, T, F, a, r, n, c, B, u) => {
|
|
73
|
+
const [C, p] = P(!0), [k, E] = P(r ? !r : !!i), [h, e] = P(i || t.TOP), [L, l] = P([]), m = Y(
|
|
74
|
+
(s) => {
|
|
75
|
+
var G;
|
|
76
|
+
const R = document.documentElement.clientWidth, I = (G = _.current) == null ? void 0 : G.getBoundingClientRect();
|
|
77
|
+
if (s.intersectionRatio === 1) return E(!0);
|
|
78
|
+
if (!C && s.intersectionRatio !== 1) {
|
|
79
|
+
if (L && L.length === (r ? 8 : 4)) {
|
|
80
|
+
const o = L.reduce((g, H) => H[1] > g[1] ? H : g, L[0]);
|
|
81
|
+
return e(o[0]), E(!0);
|
|
64
82
|
}
|
|
65
|
-
switch (
|
|
83
|
+
switch (E(!1), h) {
|
|
66
84
|
case t.TOP:
|
|
67
|
-
|
|
85
|
+
l((o) => [...o, [t.TOP, s.intersectionRatio]]), e(t.BOTTOM);
|
|
68
86
|
break;
|
|
69
87
|
case t.BOTTOM:
|
|
70
|
-
|
|
88
|
+
l((o) => [...o, [t.BOTTOM, s.intersectionRatio]]), e(
|
|
89
|
+
r ? ((I == null ? void 0 : I.x) || 0) > R / 2 ? t.BOTTOM_RIGHT : t.BOTTOM_LEFT : t.RIGHT
|
|
90
|
+
);
|
|
71
91
|
break;
|
|
72
92
|
case t.BOTTOM_LEFT:
|
|
73
|
-
|
|
93
|
+
l((o) => [...o, [t.BOTTOM_LEFT, s.intersectionRatio]]), e(r ? t.TOP_LEFT : t.RIGHT);
|
|
94
|
+
break;
|
|
95
|
+
case t.BOTTOM_RIGHT:
|
|
96
|
+
l((o) => [...o, [t.BOTTOM_RIGHT, s.intersectionRatio]]), e(r ? t.TOP_RIGHT : t.RIGHT);
|
|
97
|
+
break;
|
|
98
|
+
case t.TOP_LEFT:
|
|
99
|
+
l((o) => [...o, [t.TOP_LEFT, s.intersectionRatio]]), e(r ? t.BOTTOM_LEFT : t.RIGHT);
|
|
100
|
+
break;
|
|
101
|
+
case t.TOP_RIGHT:
|
|
102
|
+
l((o) => [...o, [t.TOP_RIGHT, s.intersectionRatio]]), e(r ? t.BOTTOM_RIGHT : t.RIGHT);
|
|
74
103
|
break;
|
|
75
104
|
case t.RIGHT:
|
|
76
|
-
|
|
105
|
+
l((o) => [...o, [t.RIGHT, s.intersectionRatio]]), e(t.LEFT);
|
|
77
106
|
break;
|
|
78
107
|
case t.LEFT:
|
|
79
|
-
|
|
108
|
+
l((o) => [...o, [t.LEFT, s.intersectionRatio]]), e(t.TOP);
|
|
80
109
|
break;
|
|
81
110
|
}
|
|
82
111
|
}
|
|
83
112
|
},
|
|
84
|
-
[
|
|
85
|
-
),
|
|
86
|
-
return
|
|
87
|
-
|
|
88
|
-
}, [
|
|
89
|
-
|
|
90
|
-
(
|
|
91
|
-
var
|
|
92
|
-
if (
|
|
93
|
-
if ((!
|
|
94
|
-
const
|
|
95
|
-
...
|
|
96
|
-
variant:
|
|
97
|
-
offset:
|
|
98
|
-
additionalStyle:
|
|
99
|
-
fixedPositioning:
|
|
100
|
-
fullWidth:
|
|
101
|
-
popover:
|
|
102
|
-
position:
|
|
103
|
-
targetElement:
|
|
113
|
+
[_, C, L, r, h]
|
|
114
|
+
), b = y(m);
|
|
115
|
+
return D(() => {
|
|
116
|
+
d(b.current).remove(), b.current = m;
|
|
117
|
+
}, [m]), V(
|
|
118
|
+
Y(
|
|
119
|
+
(s, R) => {
|
|
120
|
+
var I, G, o;
|
|
121
|
+
if (R && (!i || r) && d(m).observer.unobserve(R), s && _.current) {
|
|
122
|
+
if ((!i || r) && d(m).observer.observe(s), !(s instanceof Element)) return;
|
|
123
|
+
const H = {
|
|
124
|
+
...Z({
|
|
125
|
+
variant: O,
|
|
126
|
+
offset: M,
|
|
127
|
+
additionalStyle: c,
|
|
128
|
+
fixedPositioning: n,
|
|
129
|
+
fullWidth: a,
|
|
130
|
+
popover: s,
|
|
131
|
+
position: h,
|
|
132
|
+
targetElement: _.current
|
|
104
133
|
}),
|
|
105
|
-
...
|
|
106
|
-
...
|
|
134
|
+
...k && { visibility: "visible" },
|
|
135
|
+
...F && {
|
|
107
136
|
"min-width": "fit-content",
|
|
108
|
-
width: `${
|
|
137
|
+
width: `${_.current.clientWidth}px`
|
|
109
138
|
}
|
|
110
139
|
};
|
|
111
|
-
|
|
140
|
+
if (s.setAttribute(
|
|
112
141
|
"style",
|
|
113
|
-
Object.entries(
|
|
114
|
-
),
|
|
142
|
+
Object.entries(H).map((f) => f.join(":")).join(";")
|
|
143
|
+
), C && p(!1), O && O === v.TOOLTIP && T && W(T) && ((I = T.current) == null || I.setAttribute("data-popover-placement", h), w.includes(h))) {
|
|
144
|
+
const f = _.current.getBoundingClientRect(), x = s.firstChild, $ = x.offsetWidth, N = f.x + (f.width - $) / 2, X = x.offsetHeight, j = h === t.BOTTOM_RIGHT || h === t.BOTTOM_LEFT ? X + A : A;
|
|
145
|
+
(G = T.current) == null || G.setAttribute(
|
|
146
|
+
"style",
|
|
147
|
+
`transform: translate3d(${N}px, -${j}px, 0) rotate(45deg); inset: 0 0 auto auto`
|
|
148
|
+
);
|
|
149
|
+
}
|
|
150
|
+
if (O && O === v.TOOLTIP && u && W(u) && w.includes(h)) {
|
|
151
|
+
const f = document.documentElement.clientWidth;
|
|
152
|
+
(o = u.current) == null || o.setAttribute("style", `max-width: ${f - U}px`);
|
|
153
|
+
}
|
|
115
154
|
}
|
|
116
155
|
},
|
|
117
156
|
[
|
|
118
|
-
|
|
119
|
-
|
|
157
|
+
i,
|
|
158
|
+
r,
|
|
159
|
+
_,
|
|
120
160
|
m,
|
|
121
|
-
c,
|
|
122
|
-
T,
|
|
123
|
-
u,
|
|
124
|
-
p,
|
|
125
161
|
O,
|
|
126
|
-
|
|
162
|
+
M,
|
|
163
|
+
c,
|
|
127
164
|
n,
|
|
165
|
+
a,
|
|
128
166
|
h,
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
167
|
+
k,
|
|
168
|
+
F,
|
|
169
|
+
C,
|
|
170
|
+
T,
|
|
171
|
+
u
|
|
132
172
|
]
|
|
133
173
|
),
|
|
134
|
-
|
|
174
|
+
B
|
|
135
175
|
);
|
|
136
176
|
};
|
|
137
177
|
export {
|
|
138
|
-
|
|
178
|
+
tt as default
|
|
139
179
|
};
|
|
@@ -77,6 +77,7 @@ const e = "Account", t = "Account Balance", n = "Account description", a = "Acco
|
|
|
77
77
|
"capital.sendRepaymentSubtitle": "Transfer money to this bank account to repay back part of your loan or the entirety of it.",
|
|
78
78
|
"capital.signTermsAndConditionsToReceiveFunds": "Sign the Terms & Conditions to receive your funds.",
|
|
79
79
|
"capital.signTheTermsToReceiveYourFunds": "Sign the terms to receive your funds",
|
|
80
|
+
"capital.submitInformation": "Submit information",
|
|
80
81
|
"capital.termEnds": "Term ends: ",
|
|
81
82
|
"capital.thereIsNoPrimaryAccountConfigured": "There is no primary account configured",
|
|
82
83
|
"capital.thisOfferExpiresOn": "This offer expires on %{date}.",
|
|
@@ -88,6 +89,9 @@ const e = "Account", t = "Account Balance", n = "Account description", a = "Acco
|
|
|
88
89
|
"capital.weCouldNotContinueWithTheOfferContactSupportForHelp": "We couldn't continue with the offer. Contact support for help.",
|
|
89
90
|
"capital.weCouldNotLoadFinancialOffers": "We couldn't load financial offers.",
|
|
90
91
|
"capital.weCouldNotProcessThisRequestTryAgain": "We couldn't process this request. Try again with a new offer.",
|
|
92
|
+
"capital.weNeedABitMoreInformationToProcessYourFundsPleaseCompleteTheseActions": "We need a bit more information to process your funds. Please complete these actions:",
|
|
93
|
+
"capital.weNeedABitMoreInformationToProcessYourFundsPleaseCompleteThisAction": "We need a bit more information to process your funds. Please complete this action:",
|
|
94
|
+
"capital.weNeedABitMoreInformationToProcessYourFundsPleaseCompleteThisActionBy": "We need a bit more information to process your funds. Please complete this action by %{date}:",
|
|
91
95
|
"capital.weReceivedYourRequestAndWeAreWorkingOnItNowCheckBackSoon": "We received your request and we’re working on it now. Check back soon for the next steps.",
|
|
92
96
|
"capital.writtenOff": "Written off",
|
|
93
97
|
"capital.xDays": "%{days} days",
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-
|
|
2
|
-
//# sourceMappingURL=external-link-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-CldOsFs0.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-Y0ITwX_D.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"external-link-
|
|
1
|
+
{"version":3,"file":"external-link-Y0ITwX_D.cjs","sources":["../src/images/icons/external-link.svg?component"],"sourcesContent":["import { jsx } from \"react/jsx-runtime\";\nconst SvgExternalLink = (props) => /* @__PURE__ */ jsx(\"svg\", { width: 11, height: 11, viewBox: \"0 0 11 11\", fill: \"none\", xmlns: \"http://www.w3.org/2000/svg\", ...props, children: /* @__PURE__ */ jsx(\"path\", { d: \"M0.939453 9L8.18945 1.75H3.25011V0.25H10.7501V7.75H9.25011V2.81066L2.00011 10.0607L0.939453 9Z\", fill: \"#00112C\" }) });\nexport default SvgExternalLink;\n"],"names":["SvgExternalLink","props","jsx"],"mappings":"wHACMA,EAAmBC,GAA0BC,EAAG,EAAC,MAAO,CAAE,MAAO,GAAI,OAAQ,GAAI,QAAS,YAAa,KAAM,OAAQ,MAAO,6BAA8B,GAAGD,EAAO,SAA0BC,EAAG,EAAC,OAAQ,CAAE,EAAG,iGAAkG,KAAM,SAAW,CAAA,CAAG,CAAA"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("./index-
|
|
2
|
-
//# sourceMappingURL=filter-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("./index-CldOsFs0.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-B0jf9LNT.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"filter-
|
|
1
|
+
{"version":3,"file":"filter-B0jf9LNT.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"}
|