@tap-payments/os-micro-frontend-shared 0.1.319-test.3 → 0.1.320

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 (110) hide show
  1. package/build/components/AnimatedSpinnerIcon/style.d.ts +1 -0
  2. package/build/components/Chip/style.d.ts +1 -0
  3. package/build/components/CountBadge/style.d.ts +1 -0
  4. package/build/components/Dialog/style.d.ts +1 -0
  5. package/build/components/FlippingCard/style.d.ts +1 -0
  6. package/build/components/ImageWrapper/ImageWrapper.d.ts +1 -0
  7. package/build/components/JSONViewer/style.d.ts +1 -0
  8. package/build/components/LeftPeekRightExpandingChip/style.d.ts +1 -0
  9. package/build/components/RightLeftExpandingCenterChip/style.d.ts +1 -0
  10. package/build/components/SearchButton/styles.d.ts +1 -0
  11. package/build/components/StatusIcons/AuthIcons/style.d.ts +1 -0
  12. package/build/components/StatusIcons/AuthorizationAutoIcons/style.d.ts +1 -0
  13. package/build/components/StatusIcons/ChargeStatusIcon/style.d.ts +1 -0
  14. package/build/components/StatusIcons/IssuerIcon/IssuerIcon.js +1 -2
  15. package/build/components/StatusIcons/SourceIcons/components/SourceIcon.d.ts +5 -4
  16. package/build/components/StatusIcons/SourceIcons/components/SourceIcon.js +3 -19
  17. package/build/components/StatusIcons/SourceIcons/style.d.ts +3 -3
  18. package/build/components/StatusIcons/SourceIcons/style.js +6 -2
  19. package/build/components/TableCells/CustomCells/ActionCell/style.d.ts +1 -0
  20. package/build/components/TableCells/CustomCells/AgreementCell/AgreementCell.js +2 -1
  21. package/build/components/TableCells/CustomCells/AgreementCell/style.d.ts +0 -266
  22. package/build/components/TableCells/CustomCells/AgreementCell/style.js +0 -22
  23. package/build/components/TableCells/CustomCells/ApplicationStatusCell/style.d.ts +1 -0
  24. package/build/components/TableCells/CustomCells/AuthenticationCell/style.d.ts +1 -0
  25. package/build/components/TableCells/CustomCells/AuthenticationStatusCell/style.d.ts +1 -0
  26. package/build/components/TableCells/CustomCells/AuthenticationTypeCell/style.d.ts +1 -0
  27. package/build/components/TableCells/CustomCells/BalanceCell/style.d.ts +1 -0
  28. package/build/components/TableCells/CustomCells/ChannelsCell/style.d.ts +1 -0
  29. package/build/components/TableCells/CustomCells/CheckoutStatusCell/style.d.ts +1 -0
  30. package/build/components/TableCells/CustomCells/DestinationStatusCell/style.d.ts +1 -0
  31. package/build/components/TableCells/CustomCells/DueDateCell/style.d.ts +1 -0
  32. package/build/components/TableCells/CustomCells/IDButton/style.d.ts +1 -0
  33. package/build/components/TableCells/CustomCells/IntentsStatusCell/style.d.ts +1 -0
  34. package/build/components/TableCells/CustomCells/InvoiceStatusCell/style.d.ts +1 -0
  35. package/build/components/TableCells/CustomCells/LinkCell/LinkCell.d.ts +7 -0
  36. package/build/components/TableCells/CustomCells/LinkCell/LinkCell.js +23 -0
  37. package/build/components/TableCells/CustomCells/LinkCell/index.d.ts +1 -0
  38. package/build/components/TableCells/CustomCells/LinkCell/index.js +1 -0
  39. package/build/components/TableCells/CustomCells/LinkCell/style.d.ts +7 -0
  40. package/build/components/TableCells/CustomCells/LinkCell/style.js +19 -0
  41. package/build/components/TableCells/CustomCells/PayoutReportCell/style.d.ts +1 -0
  42. package/build/components/TableCells/CustomCells/PayoutStatusCell/style.d.ts +1 -0
  43. package/build/components/TableCells/CustomCells/ProductsCell/style.d.ts +1 -0
  44. package/build/components/TableCells/CustomCells/ReferenceCell/style.d.ts +1 -0
  45. package/build/components/TableCells/CustomCells/RefundChargeCell/style.d.ts +1 -0
  46. package/build/components/TableCells/CustomCells/RefundStatusCell/style.d.ts +1 -0
  47. package/build/components/TableCells/CustomCells/SalesChannelCell/style.d.ts +1 -0
  48. package/build/components/TableCells/CustomCells/SegmentsCell/style.d.ts +1 -0
  49. package/build/components/TableCells/CustomCells/SourceCell/SourceCell.d.ts +3 -5
  50. package/build/components/TableCells/CustomCells/SourceCell/SourceCell.js +76 -30
  51. package/build/components/TableCells/CustomCells/SourceCell/index.d.ts +2 -3
  52. package/build/components/TableCells/CustomCells/SourceCell/index.js +2 -3
  53. package/build/components/TableCells/CustomCells/SourceCell/style.d.ts +270 -0
  54. package/build/components/TableCells/CustomCells/SourceCell/style.js +42 -0
  55. package/build/components/TableCells/CustomCells/SourceCell/utils.d.ts +1 -0
  56. package/build/components/TableCells/CustomCells/SourceCell/utils.js +8 -0
  57. package/build/components/TableCells/CustomCells/StatusCell/style.d.ts +1 -0
  58. package/build/components/TableCells/CustomCells/TokenStatusCell/style.d.ts +1 -0
  59. package/build/components/TableCells/CustomCells/index.d.ts +1 -0
  60. package/build/components/TableCells/CustomCells/index.js +1 -0
  61. package/build/components/TableCells/CustomCells/style.d.ts +1 -0
  62. package/build/components/TableCells/CustomCells/type.d.ts +1 -1
  63. package/build/components/TableReports/components/DownloadButton/style.d.ts +1 -0
  64. package/build/components/TableReports/style.d.ts +1 -0
  65. package/build/components/VirtualTables/components/style.d.ts +1 -0
  66. package/package.json +3 -3
  67. package/build/components/TableCells/CustomCells/SourceCell/components/PaymentAgreement/PaymentAgreement.d.ts +0 -2
  68. package/build/components/TableCells/CustomCells/SourceCell/components/PaymentAgreement/PaymentAgreement.js +0 -7
  69. package/build/components/TableCells/CustomCells/SourceCell/components/PaymentAgreement/index.d.ts +0 -1
  70. package/build/components/TableCells/CustomCells/SourceCell/components/PaymentAgreement/index.js +0 -1
  71. package/build/components/TableCells/CustomCells/SourceCell/components/PaymentAuth/PaymentAuth.d.ts +0 -18
  72. package/build/components/TableCells/CustomCells/SourceCell/components/PaymentAuth/PaymentAuth.js +0 -9
  73. package/build/components/TableCells/CustomCells/SourceCell/components/PaymentAuth/index.d.ts +0 -1
  74. package/build/components/TableCells/CustomCells/SourceCell/components/PaymentAuth/index.js +0 -1
  75. package/build/components/TableCells/CustomCells/SourceCell/components/PaymentCardNumber/PaymentCardNumber.d.ts +0 -10
  76. package/build/components/TableCells/CustomCells/SourceCell/components/PaymentCardNumber/PaymentCardNumber.js +0 -12
  77. package/build/components/TableCells/CustomCells/SourceCell/components/PaymentCardNumber/index.d.ts +0 -1
  78. package/build/components/TableCells/CustomCells/SourceCell/components/PaymentCardNumber/index.js +0 -1
  79. package/build/components/TableCells/CustomCells/SourceCell/components/PaymentCardNumber/style.d.ts +0 -2
  80. package/build/components/TableCells/CustomCells/SourceCell/components/PaymentCardNumber/style.js +0 -6
  81. package/build/components/TableCells/CustomCells/SourceCell/components/PaymentDevice/PaymentDevice.d.ts +0 -7
  82. package/build/components/TableCells/CustomCells/SourceCell/components/PaymentDevice/PaymentDevice.js +0 -7
  83. package/build/components/TableCells/CustomCells/SourceCell/components/PaymentDevice/index.d.ts +0 -1
  84. package/build/components/TableCells/CustomCells/SourceCell/components/PaymentDevice/index.js +0 -1
  85. package/build/components/TableCells/CustomCells/SourceCell/components/PaymentInitiated/PaymentInitiated.d.ts +0 -5
  86. package/build/components/TableCells/CustomCells/SourceCell/components/PaymentInitiated/PaymentInitiated.js +0 -5
  87. package/build/components/TableCells/CustomCells/SourceCell/components/PaymentInitiated/index.d.ts +0 -1
  88. package/build/components/TableCells/CustomCells/SourceCell/components/PaymentInitiated/index.js +0 -1
  89. package/build/components/TableCells/CustomCells/SourceCell/components/PaymentIssuer/PaymentIssuer.d.ts +0 -7
  90. package/build/components/TableCells/CustomCells/SourceCell/components/PaymentIssuer/PaymentIssuer.js +0 -7
  91. package/build/components/TableCells/CustomCells/SourceCell/components/PaymentIssuer/index.d.ts +0 -1
  92. package/build/components/TableCells/CustomCells/SourceCell/components/PaymentIssuer/index.js +0 -1
  93. package/build/components/TableCells/CustomCells/SourceCell/components/PaymentMethod/PaymentMethod.d.ts +0 -3
  94. package/build/components/TableCells/CustomCells/SourceCell/components/PaymentMethod/PaymentMethod.js +0 -11
  95. package/build/components/TableCells/CustomCells/SourceCell/components/PaymentMethod/index.d.ts +0 -1
  96. package/build/components/TableCells/CustomCells/SourceCell/components/PaymentMethod/index.js +0 -1
  97. package/build/components/TableCells/CustomCells/SourceCell/components/PaymentScheme/PaymentScheme.d.ts +0 -6
  98. package/build/components/TableCells/CustomCells/SourceCell/components/PaymentScheme/PaymentScheme.js +0 -11
  99. package/build/components/TableCells/CustomCells/SourceCell/components/PaymentScheme/index.d.ts +0 -1
  100. package/build/components/TableCells/CustomCells/SourceCell/components/PaymentScheme/index.js +0 -1
  101. package/build/components/TableCells/CustomCells/SourceCell/components/PaymentType/PaymentType.d.ts +0 -3
  102. package/build/components/TableCells/CustomCells/SourceCell/components/PaymentType/PaymentType.js +0 -11
  103. package/build/components/TableCells/CustomCells/SourceCell/components/PaymentType/index.d.ts +0 -1
  104. package/build/components/TableCells/CustomCells/SourceCell/components/PaymentType/index.js +0 -1
  105. package/build/components/TableCells/CustomCells/SourceCell/components/index.d.ts +0 -9
  106. package/build/components/TableCells/CustomCells/SourceCell/components/index.js +0 -9
  107. package/build/components/TableCells/CustomCells/SourceCell/constant.d.ts +0 -4
  108. package/build/components/TableCells/CustomCells/SourceCell/constant.js +0 -11
  109. package/build/components/TableCells/CustomCells/SourceCell/type.d.ts +0 -17
  110. package/build/components/TableCells/CustomCells/SourceCell/type.js +0 -12
@@ -1,4 +1,5 @@
1
1
  /// <reference types="react" />
2
+ /// <reference types="react" />
2
3
  export declare const DueDateCellContainer: import("@emotion/styled").StyledComponent<{
3
4
  hidden?: boolean | undefined;
4
5
  color?: string | undefined;
@@ -0,0 +1,7 @@
1
+ /// <reference types="react" />
2
+ interface LinkCellProps {
3
+ url: string;
4
+ }
5
+ declare function LinkCell({ url }: LinkCellProps): import("react/jsx-runtime").JSX.Element | null;
6
+ declare const _default: import("react").MemoExoticComponent<typeof LinkCell>;
7
+ export default _default;
@@ -0,0 +1,23 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { memo, useState } from 'react';
3
+ import { CopyImage, Icon, Text, Tooltip } from '../../../index.js';
4
+ import { gadientLink } from '../../../../constants/index.js';
5
+ import { copyText } from '../../../../utils/index.js';
6
+ import { Chip, TooltipWrapper } from './style';
7
+ function LinkCell({ url }) {
8
+ const [isCopyActive, setIsCopyActive] = useState(false);
9
+ const onClick = () => {
10
+ setIsCopyActive(true);
11
+ copyText(url);
12
+ const timer = setTimeout(() => {
13
+ setIsCopyActive(false);
14
+ }, 2000);
15
+ return () => {
16
+ clearTimeout(timer);
17
+ };
18
+ };
19
+ if (!url)
20
+ return null;
21
+ return (_jsx(Tooltip, Object.assign({ title: _jsxs(TooltipWrapper, { children: [_jsx(Text, Object.assign({ noWrap: true, sx: { fontSize: 12 } }, { children: url })), _jsx(CopyImage, { isCopyActive: isCopyActive, onClick: onClick })] }) }, { children: _jsx(Chip, { children: _jsx(Icon, { src: gadientLink, alt: "link" }) }) })));
22
+ }
23
+ export default memo(LinkCell);
@@ -0,0 +1 @@
1
+ export { default as LinkCell } from './LinkCell';
@@ -0,0 +1 @@
1
+ export { default as LinkCell } from './LinkCell';
@@ -0,0 +1,7 @@
1
+ /// <reference types="react" />
2
+ export declare const Chip: import("@emotion/styled").StyledComponent<import("@mui/system").BoxOwnProps<import("@mui/material/styles").Theme> & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
3
+ ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
4
+ }, keyof import("@mui/system").BoxOwnProps<import("@mui/material/styles").Theme>> & import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, {}, {}>;
5
+ export declare const TooltipWrapper: import("@emotion/styled").StyledComponent<import("@mui/system").BoxOwnProps<import("@mui/material/styles").Theme> & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
6
+ ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
7
+ }, keyof import("@mui/system").BoxOwnProps<import("@mui/material/styles").Theme>> & import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, {}, {}>;
@@ -0,0 +1,19 @@
1
+ import Box from '@mui/material/Box';
2
+ import { styled } from '@mui/material/styles';
3
+ export const Chip = styled(Box)(({ theme }) => ({
4
+ width: 43,
5
+ height: 24,
6
+ display: 'flex',
7
+ alignItems: 'center',
8
+ justifyContent: 'center',
9
+ borderRadius: '24px',
10
+ border: `1px solid ${theme.palette.divider}`,
11
+ cursor: 'pointer',
12
+ }));
13
+ export const TooltipWrapper = styled(Box)(() => ({
14
+ display: 'flex',
15
+ alignItems: 'center',
16
+ justifyContent: 'center',
17
+ fontSize: '12px',
18
+ gap: '4px',
19
+ }));
@@ -1,4 +1,5 @@
1
1
  /// <reference types="react" />
2
+ /// <reference types="react" />
2
3
  export declare const StyledDownloadFileImageWrapper: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme> & {
3
4
  isTextShown?: boolean | undefined;
4
5
  }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
@@ -1,4 +1,5 @@
1
1
  /// <reference types="react" />
2
+ /// <reference types="react" />
2
3
  export declare const UnCapturedContainer: import("@emotion/styled").StyledComponent<{
3
4
  hidden?: boolean | undefined;
4
5
  color?: string | undefined;
@@ -1,4 +1,5 @@
1
1
  /// <reference types="react" />
2
+ /// <reference types="react" />
2
3
  export declare const ProductCellContainer: import("@emotion/styled").StyledComponent<{
3
4
  hidden?: boolean | undefined;
4
5
  color?: string | undefined;
@@ -1,4 +1,5 @@
1
1
  /// <reference types="react" />
2
+ /// <reference types="react" />
2
3
  export declare const StyledSourceCell: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
3
4
  export declare const StyledSourceImage: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").ImgHTMLAttributes<HTMLImageElement>, HTMLImageElement>, {}>;
4
5
  export declare const ReferenceSourcesContainer: import("@emotion/styled").StyledComponent<{
@@ -1,4 +1,5 @@
1
1
  /// <reference types="react" />
2
+ /// <reference types="react" />
2
3
  export declare const RefundChargeCellContainer: import("@emotion/styled").StyledComponent<{
3
4
  hidden?: boolean | undefined;
4
5
  color?: string | undefined;
@@ -1,4 +1,5 @@
1
1
  /// <reference types="react" />
2
+ /// <reference types="react" />
2
3
  export declare const RefundCellContainer: import("@emotion/styled").StyledComponent<{
3
4
  hidden?: boolean | undefined;
4
5
  color?: string | undefined;
@@ -1,4 +1,5 @@
1
1
  /// <reference types="react" />
2
+ /// <reference types="react" />
2
3
  export declare const StyledSourceCell: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
3
4
  export declare const StyledSourceImage: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").ImgHTMLAttributes<HTMLImageElement>, HTMLImageElement>, {}>;
4
5
  export declare const SalesChannelsContainer: import("@emotion/styled").StyledComponent<{
@@ -1,4 +1,5 @@
1
1
  /// <reference types="react" />
2
+ /// <reference types="react" />
2
3
  export declare const StyledSourceCell: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
3
4
  export declare const ReferenceSourcesContainer: import("@emotion/styled").StyledComponent<{
4
5
  hidden?: boolean | undefined;
@@ -1,5 +1,3 @@
1
- /// <reference types="react" />
2
- import { StatusCellProps } from './type';
3
- declare function SourceCell(components: StatusCellProps): import("react/jsx-runtime").JSX.Element | null;
4
- declare const _default: import("react").MemoExoticComponent<typeof SourceCell>;
5
- export default _default;
1
+ import type { SourceCellProps } from '../type';
2
+ declare function SourceCell({ geographyVariant, flagIcon, payment, card, isTextShown, showGeographyBox, customerInitiated, ...props }: SourceCellProps): import("react/jsx-runtime").JSX.Element;
3
+ export default SourceCell;
@@ -1,32 +1,78 @@
1
- import { jsxs as _jsxs, jsx as _jsx } from "react/jsx-runtime";
2
- import { memo, useMemo } from 'react';
3
- import Box from '@mui/material/Box';
4
- import { RightLeftExpandingCenterChip } from '../../../RightLeftExpandingCenterChip';
5
- import { CENTER_ICON_KEY } from './type';
6
- import { CENTER_ICON_PRIORITY, LEFT_ICON_PRIORITY, RIGHT_ICON_PRIORITY } from './constant';
7
- function SourceCell(components) {
8
- const { centerIcon, centerIconId } = useMemo(() => {
9
- for (const key of CENTER_ICON_PRIORITY) {
10
- if (components === null || components === void 0 ? void 0 : components[key]) {
11
- return {
12
- centerIcon: components === null || components === void 0 ? void 0 : components[key],
13
- centerIconId: key,
14
- };
15
- }
1
+ var __rest = (this && this.__rest) || function (s, e) {
2
+ var t = {};
3
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
4
+ t[p] = s[p];
5
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
6
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
7
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
8
+ t[p[i]] = s[p[i]];
16
9
  }
17
- return { centerIcon: null, centerIconId: null };
18
- }, [components]);
19
- if (!centerIconId)
20
- return null;
21
- const isPaymentSchemeVisible = centerIconId !== CENTER_ICON_KEY.PAYMENT_SCHEME && components.paymentScheme;
22
- const isPaymentCardNumberVisible = centerIconId !== CENTER_ICON_KEY.PAYMENT_CARD_NUMBER && components.paymentCardNumber;
23
- const isPaymentTypeVisible = centerIconId !== CENTER_ICON_KEY.PAYMENT_TYPE && components.paymentType;
24
- return (_jsx(RightLeftExpandingCenterChip, { expandedZIndex: 0, centerIcon: centerIcon, leftIcons: LEFT_ICON_PRIORITY.filter((key) => key !== centerIconId && (components === null || components === void 0 ? void 0 : components[key])).map((key) => components === null || components === void 0 ? void 0 : components[key]), rightIcons: RIGHT_ICON_PRIORITY.filter((key) => key !== centerIconId && (components === null || components === void 0 ? void 0 : components[key])).map((key) => components[key]), expandableCenterRight: (isPaymentSchemeVisible || isPaymentCardNumberVisible) && (_jsxs(Box, Object.assign({ sx: {
25
- marginRight: '8px',
26
- display: 'flex',
27
- alignItems: 'center',
28
- gap: '4px',
29
- // minWidth: isPaymentSchemeVisible && isPaymentCardNumberVisible ? 45 : 20
30
- } }, { children: [isPaymentSchemeVisible && components.paymentScheme, isPaymentCardNumberVisible && components.paymentCardNumber] }))), expandableCenterLeft: isPaymentTypeVisible && _jsx(Box, Object.assign({ sx: { marginLeft: '8px', width: 20 } }, { children: components.paymentType })) }));
10
+ return t;
11
+ };
12
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
13
+ import { useEffect, useRef, useState } from 'react';
14
+ import camelCase from 'lodash/camelCase';
15
+ import { useTranslation } from 'react-i18next';
16
+ import CountryFlag from '../../../CountryFlag';
17
+ import { paymentSourceAnimation } from '../../../CountBadge/style';
18
+ import { ImageWrapper } from '../../../index.js';
19
+ import Tooltip from '../../../Tooltip';
20
+ import { TableCell } from '../../../TableCells';
21
+ import { getPaymentMethodsIcon, merchantInitiatedIcon } from '../../../../constants/index.js';
22
+ import { geographyMap } from '../../../../utils/index.js';
23
+ import { BadgeTextWrapper, PaymentSourcesContainer, StyledSourceCell, StyledSourceImage, TextLabel } from './style';
24
+ import { getPaymentMethodKey } from './utils';
25
+ import { GeographyBox } from '../style';
26
+ function SourceCell(_a) {
27
+ var _b, _c, _d, _e;
28
+ var { geographyVariant, flagIcon, payment, card, isTextShown, showGeographyBox = true, customerInitiated } = _a, props = __rest(_a, ["geographyVariant", "flagIcon", "payment", "card", "isTextShown", "showGeographyBox", "customerInitiated"]);
29
+ const paymentResourcesContainer = useRef(null);
30
+ const [leftOffset, setLeftOffset] = useState(0);
31
+ const { t } = useTranslation();
32
+ useEffect(() => {
33
+ const timer = setTimeout(() => {
34
+ var _a;
35
+ setLeftOffset((_a = paymentResourcesContainer === null || paymentResourcesContainer === void 0 ? void 0 : paymentResourcesContainer.current) === null || _a === void 0 ? void 0 : _a.offsetLeft);
36
+ }, 100);
37
+ return () => {
38
+ clearTimeout(timer);
39
+ };
40
+ }, [(_b = paymentResourcesContainer === null || paymentResourcesContainer === void 0 ? void 0 : paymentResourcesContainer.current) === null || _b === void 0 ? void 0 : _b.offsetLeft, isTextShown]);
41
+ const customerInitiatedTooltip = customerInitiated === false ? t('merchantInitiated') : '';
42
+ const geographyTooltip = geographyVariant ? geographyMap[geographyVariant] : undefined;
43
+ const tooltip = geographyTooltip || flagIcon ? `${geographyTooltip || ''} ${geographyTooltip && flagIcon ? `-` : ''} ${flagIcon ? `${flagIcon}` : ''}` : undefined;
44
+ const icon = flagIcon && _jsx(CountryFlag, { countryCode: flagIcon });
45
+ const sources = [];
46
+ const walletTypeIcon = (payment === null || payment === void 0 ? void 0 : payment.wallet) === 'SV Wallet' ? 'walletStoredValue' : 'walletPassThru';
47
+ const type = (payment === null || payment === void 0 ? void 0 : payment.type) === 'Wallet' ? walletTypeIcon : payment === null || payment === void 0 ? void 0 : payment.type;
48
+ const method = payment === null || payment === void 0 ? void 0 : payment.method;
49
+ const scheme = payment === null || payment === void 0 ? void 0 : payment.scheme;
50
+ if (((_c = getPaymentMethodKey(method)) === null || _c === void 0 ? void 0 : _c.toLowerCase()) === ((_d = getPaymentMethodKey(scheme)) === null || _d === void 0 ? void 0 : _d.toLowerCase())) {
51
+ sources.push(...[getPaymentMethodKey(type), getPaymentMethodKey(method)]);
52
+ }
53
+ else {
54
+ sources.push(...[getPaymentMethodKey(type), getPaymentMethodKey(scheme), getPaymentMethodKey(method)]);
55
+ }
56
+ const paymentSources = (_e = sources === null || sources === void 0 ? void 0 : sources.filter((s) => !!s)) === null || _e === void 0 ? void 0 : _e.map((source, index, sourcesList) => {
57
+ if (!source)
58
+ return null;
59
+ const ImageSrc = getPaymentMethodsIcon(source);
60
+ const walletTooltip = (payment === null || payment === void 0 ? void 0 : payment.wallet) === t('sv_wallet') ? t('storedValueWallet') : t('passThruWallet');
61
+ const sourceTooltip = index === sourcesList.length - 1 && !!(card === null || card === void 0 ? void 0 : card.last_four) ? `${t(camelCase(source))} - ${card === null || card === void 0 ? void 0 : card.last_four}` : t(camelCase(source));
62
+ return (_jsx(Tooltip, Object.assign({ title: index === 0 && source === 'Wallet' ? walletTooltip : sourceTooltip }, { children: _jsx(ImageWrapper, Object.assign({ "data-testid": "SourceCell_ImageWrapper", order: index, variants: paymentSourceAnimation(index, isTextShown ? 89 : 0), sx: Object.assign({ width: isTextShown ? '85px' : '36px' }, (isTextShown && { overflow: 'hidden', justifyContent: 'flex-start' })) }, { children: isTextShown ? (_jsx(BadgeTextWrapper, Object.assign({ "data-testid": "SourceCell_BadgeTextWrapper" }, { children: _jsx(TextLabel, Object.assign({ "data-testid": "SourceCell_TextLabel", "data-source": source }, { children: t(camelCase(source)) })) }))) : (_jsx(StyledSourceImage, { src: ImageSrc, alt: source, onError: (e) => {
63
+ e.currentTarget.src = getPaymentMethodsIcon('card');
64
+ } })) })) }), `${source}-${index}`));
65
+ });
66
+ const paymentSourcesCount = (paymentSources === null || paymentSources === void 0 ? void 0 : paymentSources.length) || 0;
67
+ const geographyOffset = showGeographyBox ? 23 : 0;
68
+ const customerInitiatedOffset = customerInitiatedTooltip ? 24 : 0;
69
+ return (_jsx(TableCell, Object.assign({}, props, { ref: paymentResourcesContainer }, { children: _jsxs(StyledSourceCell, Object.assign({ "data-testid": "SourceCell" }, { children: [customerInitiatedTooltip && (_jsx(Tooltip, Object.assign({ title: customerInitiatedTooltip }, { children: _jsx("img", { "data-testid": "CustomerCell_merchantInitiatedIcon", src: merchantInitiatedIcon, alt: "merchant", style: {
70
+ width: '16px',
71
+ height: '16px',
72
+ } }) }))), showGeographyBox && (_jsx(Tooltip, Object.assign({ title: tooltip }, { children: _jsx(GeographyBox, Object.assign({ variant: geographyVariant ? geographyMap[geographyVariant] : undefined, className: "geography-box", "data-testid": "SourceCell_GeographyBox", sx: {
73
+ visibility: 'visible',
74
+ } }, { children: isTextShown ? null : icon })) }))), leftOffset && (paymentSources === null || paymentSources === void 0 ? void 0 : paymentSources.length) > 0 ? (_jsx(PaymentSourcesContainer, Object.assign({ layout: true, className: "payment-sources-container", "data-testid": "SourceCell_PaymentSourcesContainer", whileHover: "animate", animate: "start", sourcesCount: paymentSourcesCount || 0, variants: { animate: { width: (paymentSourcesCount || 0) * (6 + 32) } }, style: Object.assign(Object.assign({}, (leftOffset && {
75
+ left: (leftOffset || 0) + (isTextShown ? geographyOffset * 1.05 : geographyOffset) + customerInitiatedOffset,
76
+ })), { zIndex: 30 }) }, { children: paymentSources }))) : null] })) })));
31
77
  }
32
- export default memo(SourceCell);
78
+ export default SourceCell;
@@ -1,3 +1,2 @@
1
- import SourceCell from './SourceCell';
2
- export * from './components';
3
- export default SourceCell;
1
+ export { default as SourceCell } from './SourceCell';
2
+ export { StyledSourceImage } from './style';
@@ -1,3 +1,2 @@
1
- import SourceCell from './SourceCell';
2
- export * from './components';
3
- export default SourceCell;
1
+ export { default as SourceCell } from './SourceCell';
2
+ export { StyledSourceImage } from './style';
@@ -0,0 +1,270 @@
1
+ /// <reference types="react" />
2
+ /// <reference types="react" />
3
+ export declare const StyledSourceCell: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
4
+ export declare const StyledSourceImage: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").ImgHTMLAttributes<HTMLImageElement>, HTMLImageElement>, {}>;
5
+ export declare const PaymentSourcesContainer: import("@emotion/styled").StyledComponent<{
6
+ hidden?: boolean | undefined;
7
+ color?: string | undefined;
8
+ content?: string | undefined;
9
+ translate?: "yes" | "no" | undefined;
10
+ id?: string | undefined;
11
+ defaultChecked?: boolean | undefined;
12
+ defaultValue?: string | number | readonly string[] | undefined;
13
+ suppressContentEditableWarning?: boolean | undefined;
14
+ suppressHydrationWarning?: boolean | undefined;
15
+ accessKey?: string | undefined;
16
+ autoCapitalize?: (string & {}) | "none" | "off" | "on" | "sentences" | "words" | "characters" | undefined;
17
+ autoFocus?: boolean | undefined;
18
+ className?: string | undefined;
19
+ contentEditable?: "inherit" | (boolean | "false" | "true") | "plaintext-only" | undefined;
20
+ contextMenu?: string | undefined;
21
+ dir?: string | undefined;
22
+ draggable?: (boolean | "false" | "true") | undefined;
23
+ enterKeyHint?: "search" | "enter" | "done" | "go" | "next" | "previous" | "send" | undefined;
24
+ lang?: string | undefined;
25
+ nonce?: string | undefined;
26
+ slot?: string | undefined;
27
+ spellCheck?: (boolean | "false" | "true") | undefined;
28
+ tabIndex?: number | undefined;
29
+ title?: string | undefined;
30
+ radioGroup?: string | undefined;
31
+ role?: import("react").AriaRole | undefined;
32
+ about?: string | undefined;
33
+ datatype?: string | undefined;
34
+ inlist?: any;
35
+ prefix?: string | undefined;
36
+ property?: string | undefined;
37
+ rel?: string | undefined;
38
+ resource?: string | undefined;
39
+ rev?: string | undefined;
40
+ typeof?: string | undefined;
41
+ vocab?: string | undefined;
42
+ autoCorrect?: string | undefined;
43
+ autoSave?: string | undefined;
44
+ itemProp?: string | undefined;
45
+ itemScope?: boolean | undefined;
46
+ itemType?: string | undefined;
47
+ itemID?: string | undefined;
48
+ itemRef?: string | undefined;
49
+ results?: number | undefined;
50
+ security?: string | undefined;
51
+ unselectable?: "off" | "on" | undefined;
52
+ inputMode?: "none" | "text" | "email" | "search" | "numeric" | "url" | "tel" | "decimal" | undefined;
53
+ is?: string | undefined;
54
+ exportparts?: string | undefined;
55
+ part?: string | undefined;
56
+ "aria-activedescendant"?: string | undefined;
57
+ "aria-atomic"?: (boolean | "false" | "true") | undefined;
58
+ "aria-autocomplete"?: "none" | "list" | "both" | "inline" | undefined;
59
+ "aria-braillelabel"?: string | undefined;
60
+ "aria-brailleroledescription"?: string | undefined;
61
+ "aria-busy"?: (boolean | "false" | "true") | undefined;
62
+ "aria-checked"?: boolean | "false" | "true" | "mixed" | undefined;
63
+ "aria-colcount"?: number | undefined;
64
+ "aria-colindex"?: number | undefined;
65
+ "aria-colindextext"?: string | undefined;
66
+ "aria-colspan"?: number | undefined;
67
+ "aria-controls"?: string | undefined;
68
+ "aria-current"?: boolean | "page" | "date" | "false" | "true" | "time" | "step" | "location" | undefined;
69
+ "aria-describedby"?: string | undefined;
70
+ "aria-description"?: string | undefined;
71
+ "aria-details"?: string | undefined;
72
+ "aria-disabled"?: (boolean | "false" | "true") | undefined;
73
+ "aria-dropeffect"?: "none" | "copy" | "link" | "move" | "execute" | "popup" | undefined;
74
+ "aria-errormessage"?: string | undefined;
75
+ "aria-expanded"?: (boolean | "false" | "true") | undefined;
76
+ "aria-flowto"?: string | undefined;
77
+ "aria-grabbed"?: (boolean | "false" | "true") | undefined;
78
+ "aria-haspopup"?: boolean | "grid" | "false" | "true" | "dialog" | "listbox" | "menu" | "tree" | undefined;
79
+ "aria-hidden"?: (boolean | "false" | "true") | undefined;
80
+ "aria-invalid"?: boolean | "false" | "true" | "grammar" | "spelling" | undefined;
81
+ "aria-keyshortcuts"?: string | undefined;
82
+ "aria-label"?: string | undefined;
83
+ "aria-labelledby"?: string | undefined;
84
+ "aria-level"?: number | undefined;
85
+ "aria-live"?: "off" | "assertive" | "polite" | undefined;
86
+ "aria-modal"?: (boolean | "false" | "true") | undefined;
87
+ "aria-multiline"?: (boolean | "false" | "true") | undefined;
88
+ "aria-multiselectable"?: (boolean | "false" | "true") | undefined;
89
+ "aria-orientation"?: "horizontal" | "vertical" | undefined;
90
+ "aria-owns"?: string | undefined;
91
+ "aria-placeholder"?: string | undefined;
92
+ "aria-posinset"?: number | undefined;
93
+ "aria-pressed"?: boolean | "false" | "true" | "mixed" | undefined;
94
+ "aria-readonly"?: (boolean | "false" | "true") | undefined;
95
+ "aria-relevant"?: "all" | "text" | "additions" | "additions removals" | "additions text" | "removals" | "removals additions" | "removals text" | "text additions" | "text removals" | undefined;
96
+ "aria-required"?: (boolean | "false" | "true") | undefined;
97
+ "aria-roledescription"?: string | undefined;
98
+ "aria-rowcount"?: number | undefined;
99
+ "aria-rowindex"?: number | undefined;
100
+ "aria-rowindextext"?: string | undefined;
101
+ "aria-rowspan"?: number | undefined;
102
+ "aria-selected"?: (boolean | "false" | "true") | undefined;
103
+ "aria-setsize"?: number | undefined;
104
+ "aria-sort"?: "none" | "ascending" | "descending" | "other" | undefined;
105
+ "aria-valuemax"?: number | undefined;
106
+ "aria-valuemin"?: number | undefined;
107
+ "aria-valuenow"?: number | undefined;
108
+ "aria-valuetext"?: string | undefined;
109
+ dangerouslySetInnerHTML?: {
110
+ __html: string | TrustedHTML;
111
+ } | undefined;
112
+ onCopy?: import("react").ClipboardEventHandler<HTMLSpanElement> | undefined;
113
+ onCopyCapture?: import("react").ClipboardEventHandler<HTMLSpanElement> | undefined;
114
+ onCut?: import("react").ClipboardEventHandler<HTMLSpanElement> | undefined;
115
+ onCutCapture?: import("react").ClipboardEventHandler<HTMLSpanElement> | undefined;
116
+ onPaste?: import("react").ClipboardEventHandler<HTMLSpanElement> | undefined;
117
+ onPasteCapture?: import("react").ClipboardEventHandler<HTMLSpanElement> | undefined;
118
+ onCompositionEnd?: import("react").CompositionEventHandler<HTMLSpanElement> | undefined;
119
+ onCompositionEndCapture?: import("react").CompositionEventHandler<HTMLSpanElement> | undefined;
120
+ onCompositionStart?: import("react").CompositionEventHandler<HTMLSpanElement> | undefined;
121
+ onCompositionStartCapture?: import("react").CompositionEventHandler<HTMLSpanElement> | undefined;
122
+ onCompositionUpdate?: import("react").CompositionEventHandler<HTMLSpanElement> | undefined;
123
+ onCompositionUpdateCapture?: import("react").CompositionEventHandler<HTMLSpanElement> | undefined;
124
+ onFocus?: import("react").FocusEventHandler<HTMLSpanElement> | undefined;
125
+ onFocusCapture?: import("react").FocusEventHandler<HTMLSpanElement> | undefined;
126
+ onBlur?: import("react").FocusEventHandler<HTMLSpanElement> | undefined;
127
+ onBlurCapture?: import("react").FocusEventHandler<HTMLSpanElement> | undefined;
128
+ onChange?: import("react").FormEventHandler<HTMLSpanElement> | undefined;
129
+ onChangeCapture?: import("react").FormEventHandler<HTMLSpanElement> | undefined;
130
+ onBeforeInput?: import("react").InputEventHandler<HTMLSpanElement> | undefined;
131
+ onBeforeInputCapture?: import("react").FormEventHandler<HTMLSpanElement> | undefined;
132
+ onInput?: import("react").FormEventHandler<HTMLSpanElement> | undefined;
133
+ onInputCapture?: import("react").FormEventHandler<HTMLSpanElement> | undefined;
134
+ onReset?: import("react").FormEventHandler<HTMLSpanElement> | undefined;
135
+ onResetCapture?: import("react").FormEventHandler<HTMLSpanElement> | undefined;
136
+ onSubmit?: import("react").FormEventHandler<HTMLSpanElement> | undefined;
137
+ onSubmitCapture?: import("react").FormEventHandler<HTMLSpanElement> | undefined;
138
+ onInvalid?: import("react").FormEventHandler<HTMLSpanElement> | undefined;
139
+ onInvalidCapture?: import("react").FormEventHandler<HTMLSpanElement> | undefined;
140
+ onLoad?: import("react").ReactEventHandler<HTMLSpanElement> | undefined;
141
+ onLoadCapture?: import("react").ReactEventHandler<HTMLSpanElement> | undefined;
142
+ onError?: import("react").ReactEventHandler<HTMLSpanElement> | undefined;
143
+ onErrorCapture?: import("react").ReactEventHandler<HTMLSpanElement> | undefined;
144
+ onKeyDown?: import("react").KeyboardEventHandler<HTMLSpanElement> | undefined;
145
+ onKeyDownCapture?: import("react").KeyboardEventHandler<HTMLSpanElement> | undefined;
146
+ onKeyPress?: import("react").KeyboardEventHandler<HTMLSpanElement> | undefined;
147
+ onKeyPressCapture?: import("react").KeyboardEventHandler<HTMLSpanElement> | undefined;
148
+ onKeyUp?: import("react").KeyboardEventHandler<HTMLSpanElement> | undefined;
149
+ onKeyUpCapture?: import("react").KeyboardEventHandler<HTMLSpanElement> | undefined;
150
+ onAbort?: import("react").ReactEventHandler<HTMLSpanElement> | undefined;
151
+ onAbortCapture?: import("react").ReactEventHandler<HTMLSpanElement> | undefined;
152
+ onCanPlay?: import("react").ReactEventHandler<HTMLSpanElement> | undefined;
153
+ onCanPlayCapture?: import("react").ReactEventHandler<HTMLSpanElement> | undefined;
154
+ onCanPlayThrough?: import("react").ReactEventHandler<HTMLSpanElement> | undefined;
155
+ onCanPlayThroughCapture?: import("react").ReactEventHandler<HTMLSpanElement> | undefined;
156
+ onDurationChange?: import("react").ReactEventHandler<HTMLSpanElement> | undefined;
157
+ onDurationChangeCapture?: import("react").ReactEventHandler<HTMLSpanElement> | undefined;
158
+ onEmptied?: import("react").ReactEventHandler<HTMLSpanElement> | undefined;
159
+ onEmptiedCapture?: import("react").ReactEventHandler<HTMLSpanElement> | undefined;
160
+ onEncrypted?: import("react").ReactEventHandler<HTMLSpanElement> | undefined;
161
+ onEncryptedCapture?: import("react").ReactEventHandler<HTMLSpanElement> | undefined;
162
+ onEnded?: import("react").ReactEventHandler<HTMLSpanElement> | undefined;
163
+ onEndedCapture?: import("react").ReactEventHandler<HTMLSpanElement> | undefined;
164
+ onLoadedData?: import("react").ReactEventHandler<HTMLSpanElement> | undefined;
165
+ onLoadedDataCapture?: import("react").ReactEventHandler<HTMLSpanElement> | undefined;
166
+ onLoadedMetadata?: import("react").ReactEventHandler<HTMLSpanElement> | undefined;
167
+ onLoadedMetadataCapture?: import("react").ReactEventHandler<HTMLSpanElement> | undefined;
168
+ onLoadStart?: import("react").ReactEventHandler<HTMLSpanElement> | undefined;
169
+ onLoadStartCapture?: import("react").ReactEventHandler<HTMLSpanElement> | undefined;
170
+ onPause?: import("react").ReactEventHandler<HTMLSpanElement> | undefined;
171
+ onPauseCapture?: import("react").ReactEventHandler<HTMLSpanElement> | undefined;
172
+ onPlay?: import("react").ReactEventHandler<HTMLSpanElement> | undefined;
173
+ onPlayCapture?: import("react").ReactEventHandler<HTMLSpanElement> | undefined;
174
+ onPlaying?: import("react").ReactEventHandler<HTMLSpanElement> | undefined;
175
+ onPlayingCapture?: import("react").ReactEventHandler<HTMLSpanElement> | undefined;
176
+ onProgress?: import("react").ReactEventHandler<HTMLSpanElement> | undefined;
177
+ onProgressCapture?: import("react").ReactEventHandler<HTMLSpanElement> | undefined;
178
+ onRateChange?: import("react").ReactEventHandler<HTMLSpanElement> | undefined;
179
+ onRateChangeCapture?: import("react").ReactEventHandler<HTMLSpanElement> | undefined;
180
+ onSeeked?: import("react").ReactEventHandler<HTMLSpanElement> | undefined;
181
+ onSeekedCapture?: import("react").ReactEventHandler<HTMLSpanElement> | undefined;
182
+ onSeeking?: import("react").ReactEventHandler<HTMLSpanElement> | undefined;
183
+ onSeekingCapture?: import("react").ReactEventHandler<HTMLSpanElement> | undefined;
184
+ onStalled?: import("react").ReactEventHandler<HTMLSpanElement> | undefined;
185
+ onStalledCapture?: import("react").ReactEventHandler<HTMLSpanElement> | undefined;
186
+ onSuspend?: import("react").ReactEventHandler<HTMLSpanElement> | undefined;
187
+ onSuspendCapture?: import("react").ReactEventHandler<HTMLSpanElement> | undefined;
188
+ onTimeUpdate?: import("react").ReactEventHandler<HTMLSpanElement> | undefined;
189
+ onTimeUpdateCapture?: import("react").ReactEventHandler<HTMLSpanElement> | undefined;
190
+ onVolumeChange?: import("react").ReactEventHandler<HTMLSpanElement> | undefined;
191
+ onVolumeChangeCapture?: import("react").ReactEventHandler<HTMLSpanElement> | undefined;
192
+ onWaiting?: import("react").ReactEventHandler<HTMLSpanElement> | undefined;
193
+ onWaitingCapture?: import("react").ReactEventHandler<HTMLSpanElement> | undefined;
194
+ onAuxClick?: import("react").MouseEventHandler<HTMLSpanElement> | undefined;
195
+ onAuxClickCapture?: import("react").MouseEventHandler<HTMLSpanElement> | undefined;
196
+ onClick?: import("react").MouseEventHandler<HTMLSpanElement> | undefined;
197
+ onClickCapture?: import("react").MouseEventHandler<HTMLSpanElement> | undefined;
198
+ onContextMenu?: import("react").MouseEventHandler<HTMLSpanElement> | undefined;
199
+ onContextMenuCapture?: import("react").MouseEventHandler<HTMLSpanElement> | undefined;
200
+ onDoubleClick?: import("react").MouseEventHandler<HTMLSpanElement> | undefined;
201
+ onDoubleClickCapture?: import("react").MouseEventHandler<HTMLSpanElement> | undefined;
202
+ onDragCapture?: import("react").DragEventHandler<HTMLSpanElement> | undefined;
203
+ onDragEndCapture?: import("react").DragEventHandler<HTMLSpanElement> | undefined;
204
+ onDragEnter?: import("react").DragEventHandler<HTMLSpanElement> | undefined;
205
+ onDragEnterCapture?: import("react").DragEventHandler<HTMLSpanElement> | undefined;
206
+ onDragExit?: import("react").DragEventHandler<HTMLSpanElement> | undefined;
207
+ onDragExitCapture?: import("react").DragEventHandler<HTMLSpanElement> | undefined;
208
+ onDragLeave?: import("react").DragEventHandler<HTMLSpanElement> | undefined;
209
+ onDragLeaveCapture?: import("react").DragEventHandler<HTMLSpanElement> | undefined;
210
+ onDragOver?: import("react").DragEventHandler<HTMLSpanElement> | undefined;
211
+ onDragOverCapture?: import("react").DragEventHandler<HTMLSpanElement> | undefined;
212
+ onDragStartCapture?: import("react").DragEventHandler<HTMLSpanElement> | undefined;
213
+ onDrop?: import("react").DragEventHandler<HTMLSpanElement> | undefined;
214
+ onDropCapture?: import("react").DragEventHandler<HTMLSpanElement> | undefined;
215
+ onMouseDown?: import("react").MouseEventHandler<HTMLSpanElement> | undefined;
216
+ onMouseDownCapture?: import("react").MouseEventHandler<HTMLSpanElement> | undefined;
217
+ onMouseEnter?: import("react").MouseEventHandler<HTMLSpanElement> | undefined;
218
+ onMouseLeave?: import("react").MouseEventHandler<HTMLSpanElement> | undefined;
219
+ onMouseMove?: import("react").MouseEventHandler<HTMLSpanElement> | undefined;
220
+ onMouseMoveCapture?: import("react").MouseEventHandler<HTMLSpanElement> | undefined;
221
+ onMouseOut?: import("react").MouseEventHandler<HTMLSpanElement> | undefined;
222
+ onMouseOutCapture?: import("react").MouseEventHandler<HTMLSpanElement> | undefined;
223
+ onMouseOver?: import("react").MouseEventHandler<HTMLSpanElement> | undefined;
224
+ onMouseOverCapture?: import("react").MouseEventHandler<HTMLSpanElement> | undefined;
225
+ onMouseUp?: import("react").MouseEventHandler<HTMLSpanElement> | undefined;
226
+ onMouseUpCapture?: import("react").MouseEventHandler<HTMLSpanElement> | undefined;
227
+ onSelect?: import("react").ReactEventHandler<HTMLSpanElement> | undefined;
228
+ onSelectCapture?: import("react").ReactEventHandler<HTMLSpanElement> | undefined;
229
+ onTouchCancel?: import("react").TouchEventHandler<HTMLSpanElement> | undefined;
230
+ onTouchCancelCapture?: import("react").TouchEventHandler<HTMLSpanElement> | undefined;
231
+ onTouchEnd?: import("react").TouchEventHandler<HTMLSpanElement> | undefined;
232
+ onTouchEndCapture?: import("react").TouchEventHandler<HTMLSpanElement> | undefined;
233
+ onTouchMove?: import("react").TouchEventHandler<HTMLSpanElement> | undefined;
234
+ onTouchMoveCapture?: import("react").TouchEventHandler<HTMLSpanElement> | undefined;
235
+ onTouchStart?: import("react").TouchEventHandler<HTMLSpanElement> | undefined;
236
+ onTouchStartCapture?: import("react").TouchEventHandler<HTMLSpanElement> | undefined;
237
+ onPointerDown?: import("react").PointerEventHandler<HTMLSpanElement> | undefined;
238
+ onPointerDownCapture?: import("react").PointerEventHandler<HTMLSpanElement> | undefined;
239
+ onPointerMove?: import("react").PointerEventHandler<HTMLSpanElement> | undefined;
240
+ onPointerMoveCapture?: import("react").PointerEventHandler<HTMLSpanElement> | undefined;
241
+ onPointerUp?: import("react").PointerEventHandler<HTMLSpanElement> | undefined;
242
+ onPointerUpCapture?: import("react").PointerEventHandler<HTMLSpanElement> | undefined;
243
+ onPointerCancel?: import("react").PointerEventHandler<HTMLSpanElement> | undefined;
244
+ onPointerCancelCapture?: import("react").PointerEventHandler<HTMLSpanElement> | undefined;
245
+ onPointerEnter?: import("react").PointerEventHandler<HTMLSpanElement> | undefined;
246
+ onPointerLeave?: import("react").PointerEventHandler<HTMLSpanElement> | undefined;
247
+ onPointerOver?: import("react").PointerEventHandler<HTMLSpanElement> | undefined;
248
+ onPointerOverCapture?: import("react").PointerEventHandler<HTMLSpanElement> | undefined;
249
+ onPointerOut?: import("react").PointerEventHandler<HTMLSpanElement> | undefined;
250
+ onPointerOutCapture?: import("react").PointerEventHandler<HTMLSpanElement> | undefined;
251
+ onGotPointerCapture?: import("react").PointerEventHandler<HTMLSpanElement> | undefined;
252
+ onGotPointerCaptureCapture?: import("react").PointerEventHandler<HTMLSpanElement> | undefined;
253
+ onLostPointerCapture?: import("react").PointerEventHandler<HTMLSpanElement> | undefined;
254
+ onLostPointerCaptureCapture?: import("react").PointerEventHandler<HTMLSpanElement> | undefined;
255
+ onScroll?: import("react").UIEventHandler<HTMLSpanElement> | undefined;
256
+ onScrollCapture?: import("react").UIEventHandler<HTMLSpanElement> | undefined;
257
+ onWheel?: import("react").WheelEventHandler<HTMLSpanElement> | undefined;
258
+ onWheelCapture?: import("react").WheelEventHandler<HTMLSpanElement> | undefined;
259
+ onAnimationStartCapture?: import("react").AnimationEventHandler<HTMLSpanElement> | undefined;
260
+ onAnimationEnd?: import("react").AnimationEventHandler<HTMLSpanElement> | undefined;
261
+ onAnimationEndCapture?: import("react").AnimationEventHandler<HTMLSpanElement> | undefined;
262
+ onAnimationIteration?: import("react").AnimationEventHandler<HTMLSpanElement> | undefined;
263
+ onAnimationIterationCapture?: import("react").AnimationEventHandler<HTMLSpanElement> | undefined;
264
+ onTransitionEnd?: import("react").TransitionEventHandler<HTMLSpanElement> | undefined;
265
+ onTransitionEndCapture?: import("react").TransitionEventHandler<HTMLSpanElement> | undefined;
266
+ } & import("framer-motion").MotionProps & import("react").RefAttributes<HTMLSpanElement> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme> & {
267
+ sourcesCount: number;
268
+ }, {}, {}>;
269
+ export declare const TextLabel: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
270
+ export declare const BadgeTextWrapper: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
@@ -0,0 +1,42 @@
1
+ import { styled } from '@mui/material';
2
+ import { motion } from 'framer-motion';
3
+ export const StyledSourceCell = styled('span')(({ theme }) => ({
4
+ display: 'flex',
5
+ alignItems: 'center',
6
+ justifyContent: 'flex-start',
7
+ gap: theme.spacing(1),
8
+ }));
9
+ export const StyledSourceImage = styled('img')(() => ({
10
+ maxWidth: '36px',
11
+ maxHeight: '24px',
12
+ }));
13
+ export const PaymentSourcesContainer = styled(motion.span)(({ theme, sourcesCount }) => ({
14
+ display: 'flex',
15
+ alignItems: 'center',
16
+ justifyContent: 'flex-start',
17
+ position: 'absolute',
18
+ minWidth: `${sourcesCount * 6 + 36}px `,
19
+ minHeight: '24px',
20
+ cursor: 'pointer',
21
+ backgroundColor: theme.palette.background.paper,
22
+ borderRadius: '16px',
23
+ }));
24
+ export const TextLabel = styled('span')(({ theme }) => ({
25
+ fontSize: '11px',
26
+ overflow: 'hidden',
27
+ textOverflow: 'ellipsis',
28
+ whiteSpace: 'nowrap',
29
+ padding: '2px 0',
30
+ color: theme.palette.text.primary,
31
+ }));
32
+ export const BadgeTextWrapper = styled('div')(() => ({
33
+ display: 'flex',
34
+ alignItems: 'center',
35
+ justifyContent: 'center',
36
+ paddingInline: '8px',
37
+ textAlign: 'center',
38
+ width: '100%',
39
+ overflow: 'hidden',
40
+ textOverflow: 'ellipsis',
41
+ whiteSpace: 'nowrap',
42
+ }));
@@ -0,0 +1 @@
1
+ export declare const getPaymentMethodKey: (method?: string) => string | undefined;
@@ -0,0 +1,8 @@
1
+ const paymentMethodMap = {
2
+ american_express: 'AMEX',
3
+ debit: 'card',
4
+ credit: 'card',
5
+ };
6
+ export const getPaymentMethodKey = (method) => {
7
+ return paymentMethodMap[(method === null || method === void 0 ? void 0 : method.toLowerCase()) || ''] || method;
8
+ };
@@ -1,4 +1,5 @@
1
1
  /// <reference types="react" />
2
+ /// <reference types="react" />
2
3
  export declare const MultiRefundIcon: import("@emotion/styled").StyledComponent<{
3
4
  width?: string | number | undefined;
4
5
  height?: string | number | undefined;