tek-wallet 0.0.731 → 0.0.734

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 (77) hide show
  1. package/dist/components/TekWallet/components/index.d.ts +0 -2
  2. package/dist/components/TekWallet/components/index.js +0 -2
  3. package/dist/components/TekWallet/components/ui/AnalyticGroup/index.js +11 -10
  4. package/dist/components/TekWallet/components/ui/DrawerComponent/index.d.ts +0 -2
  5. package/dist/components/TekWallet/components/ui/DrawerComponent/index.js +12 -9
  6. package/dist/components/TekWallet/components/ui/Fees/index.d.ts +1 -1
  7. package/dist/components/TekWallet/components/ui/Fees/index.js +2 -2
  8. package/dist/components/TekWallet/components/ui/FiatDeposit/components/depositSuccess.d.ts +45 -0
  9. package/dist/components/TekWallet/components/ui/FiatDeposit/components/depositSuccess.js +32 -0
  10. package/dist/components/TekWallet/components/ui/FiatDeposit/components/shareAction.d.ts +8 -0
  11. package/dist/components/TekWallet/components/ui/FiatDeposit/components/shareAction.js +128 -0
  12. package/dist/components/TekWallet/components/ui/FiatDeposit/components/shareDrawer.d.ts +8 -0
  13. package/dist/components/TekWallet/components/ui/FiatDeposit/components/shareDrawer.js +49 -0
  14. package/dist/components/TekWallet/components/ui/FiatDeposit/components/shareImage.d.ts +9 -0
  15. package/dist/components/TekWallet/components/ui/FiatDeposit/components/shareImage.js +23 -0
  16. package/dist/components/TekWallet/components/ui/FiatDeposit/index.d.ts +5 -0
  17. package/dist/components/TekWallet/components/ui/FiatDeposit/index.js +219 -0
  18. package/dist/components/TekWallet/components/ui/HistorySwap/index.js +2 -3
  19. package/dist/components/TekWallet/components/ui/ModalLayout/index.d.ts +1 -1
  20. package/dist/components/TekWallet/components/ui/ModalLayout/index.js +1 -1
  21. package/dist/components/TekWallet/components/ui/QRCode/index.js +1 -1
  22. package/dist/components/TekWallet/components/ui/QrCodeReader/index.js +1 -1
  23. package/dist/components/TekWallet/components/ui/ReceiveFunction/index.d.ts +3 -1
  24. package/dist/components/TekWallet/components/ui/ReceiveFunction/index.js +27 -13
  25. package/dist/components/TekWallet/components/ui/ReceiveHistory/index.js +2 -3
  26. package/dist/components/TekWallet/components/ui/SvgPath/index.d.ts +0 -5
  27. package/dist/components/TekWallet/components/ui/SvgPath/index.js +2 -7
  28. package/dist/components/TekWallet/components/ui/TimeText/index.d.ts +5 -0
  29. package/dist/components/TekWallet/components/ui/TimeText/index.js +22 -0
  30. package/dist/components/TekWallet/components/ui/TransferConfirmation/index.d.ts +0 -1
  31. package/dist/components/TekWallet/components/ui/TransferConfirmation/index.js +14 -21
  32. package/dist/components/TekWallet/index.d.ts +0 -9
  33. package/dist/components/TekWallet/index.js +0 -9
  34. package/dist/components/TekWallet/services/axios/get-deposit-fiat-info-service/getDepositFiatInfoService.d.ts +13 -0
  35. package/dist/components/TekWallet/services/axios/get-deposit-fiat-info-service/getDepositFiatInfoService.js +55 -0
  36. package/dist/components/TekWallet/theme/mui/deposit-fiat-theme/components.d.ts +3 -0
  37. package/dist/components/TekWallet/theme/mui/deposit-fiat-theme/components.js +158 -0
  38. package/dist/components/TekWallet/theme/mui/deposit-fiat-theme/palette.d.ts +55 -0
  39. package/dist/components/TekWallet/theme/mui/deposit-fiat-theme/palette.js +45 -0
  40. package/dist/components/TekWallet/theme/mui/deposit-fiat-theme/theme.d.ts +2 -0
  41. package/dist/components/TekWallet/theme/mui/deposit-fiat-theme/theme.js +13 -0
  42. package/dist/components/TekWallet/theme/mui/deposit-fiat-theme/typography.d.ts +39 -0
  43. package/dist/components/TekWallet/theme/mui/deposit-fiat-theme/typography.js +65 -0
  44. package/dist/components/TekWallet/theme/mui/theme.d.ts +0 -5
  45. package/dist/components/TekWallet/theme/mui/theme.js +0 -5
  46. package/dist/components/TekWallet/types/expose-type.d.ts +46 -0
  47. package/dist/components/TekWallet/utils/cn.d.ts +2 -0
  48. package/dist/components/TekWallet/utils/cn.js +12 -0
  49. package/package.json +3 -1
  50. package/dist/components/TekWallet/components/ui/IncomeWallet/components/AnalyticGroup.d.ts +0 -8
  51. package/dist/components/TekWallet/components/ui/IncomeWallet/components/AnalyticGroup.js +0 -87
  52. package/dist/components/TekWallet/components/ui/IncomeWallet/components/BalanceChart.d.ts +0 -7
  53. package/dist/components/TekWallet/components/ui/IncomeWallet/components/BalanceChart.js +0 -170
  54. package/dist/components/TekWallet/components/ui/IncomeWallet/components/FunctionItem.d.ts +0 -11
  55. package/dist/components/TekWallet/components/ui/IncomeWallet/components/FunctionItem.js +0 -29
  56. package/dist/components/TekWallet/components/ui/IncomeWallet/components/HistoryItem.d.ts +0 -7
  57. package/dist/components/TekWallet/components/ui/IncomeWallet/components/HistoryItem.js +0 -60
  58. package/dist/components/TekWallet/components/ui/IncomeWallet/components/WealthDeposit.d.ts +0 -14
  59. package/dist/components/TekWallet/components/ui/IncomeWallet/components/WealthDeposit.js +0 -69
  60. package/dist/components/TekWallet/components/ui/IncomeWallet/components/WealthWithdraw.d.ts +0 -14
  61. package/dist/components/TekWallet/components/ui/IncomeWallet/components/WealthWithdraw.js +0 -67
  62. package/dist/components/TekWallet/components/ui/IncomeWallet/components/deposit/index.d.ts +0 -6
  63. package/dist/components/TekWallet/components/ui/IncomeWallet/components/deposit/index.js +0 -13
  64. package/dist/components/TekWallet/components/ui/IncomeWallet/components/history/index.d.ts +0 -6
  65. package/dist/components/TekWallet/components/ui/IncomeWallet/components/history/index.js +0 -19
  66. package/dist/components/TekWallet/components/ui/IncomeWallet/index.d.ts +0 -8
  67. package/dist/components/TekWallet/components/ui/IncomeWallet/index.js +0 -57
  68. package/dist/components/TekWallet/components/ui/IncomeWallet/types/index.d.ts +0 -2
  69. package/dist/components/TekWallet/components/ui/IncomeWallet/types/index.js +0 -18
  70. package/dist/components/TekWallet/components/ui/IncomeWallet/types/transaction.history.dto.d.ts +0 -15
  71. package/dist/components/TekWallet/components/ui/IncomeWallet/types/transaction.history.dto.js +0 -2
  72. package/dist/components/TekWallet/components/ui/IncomeWallet/types/userinfo.dto.d.ts +0 -12
  73. package/dist/components/TekWallet/components/ui/IncomeWallet/types/userinfo.dto.js +0 -2
  74. package/dist/components/TekWallet/components/ui/Spacer/index.d.ts +0 -5
  75. package/dist/components/TekWallet/components/ui/Spacer/index.js +0 -7
  76. package/dist/components/TekWallet/utils/ref.extension.d.ts +0 -3
  77. package/dist/components/TekWallet/utils/ref.extension.js +0 -8
@@ -8,5 +8,3 @@ export * from "./views/ImportWalletView";
8
8
  export * from "./ui/Fees";
9
9
  export * from "./ui/ConfirmTransaction";
10
10
  export * from "./ui/SwapFunction";
11
- export * from "./ui/IncomeWallet";
12
- export * from "./ui/TransferConfirmation";
@@ -24,5 +24,3 @@ __exportStar(require("./views/ImportWalletView"), exports);
24
24
  __exportStar(require("./ui/Fees"), exports);
25
25
  __exportStar(require("./ui/ConfirmTransaction"), exports);
26
26
  __exportStar(require("./ui/SwapFunction"), exports);
27
- __exportStar(require("./ui/IncomeWallet"), exports);
28
- __exportStar(require("./ui/TransferConfirmation"), exports);
@@ -17,10 +17,11 @@ Object.defineProperty(exports, "__esModule", { value: true });
17
17
  var jsx_runtime_1 = require("react/jsx-runtime");
18
18
  var Text_1 = __importDefault(require("../Text"));
19
19
  var Formatter_1 = __importDefault(require("../Formatter"));
20
+ var Icon_1 = __importDefault(require("../Icon"));
20
21
  var material_1 = require("@mui/material");
21
22
  var providers_1 = require("../../../providers");
23
+ var getIcon_1 = __importDefault(require("../../../utils/getIcon"));
22
24
  var ContentHiddenProvider_1 = require("../../../providers/ContentHiddenProvider");
23
- var SvgPath_1 = require("../SvgPath");
24
25
  var AnalyticGroup = function (props) {
25
26
  var theme = (0, providers_1.useTheme)();
26
27
  var _a = (0, ContentHiddenProvider_1.useContentHidden)(), isHidden = _a.isHidden, setIsHidden = _a.setIsHidden;
@@ -31,7 +32,7 @@ var AnalyticGroup = function (props) {
31
32
  fontSize: theme.typography.fontSize15,
32
33
  fontWeight: theme.typography.fontWeight500,
33
34
  color: theme.palette.text.accent2,
34
- }, children: "Total Amount" }), (0, jsx_runtime_1.jsx)(material_1.SvgIcon, { onClick: toggleHidden, sx: { cursor: "pointer", width: 14, height: 14 }, children: SvgPath_1.IC_NO_SEE })] }), (0, jsx_runtime_1.jsxs)(material_1.Box, { sx: {
35
+ }, children: "Total Amount" }), (0, jsx_runtime_1.jsx)(Icon_1.default, { src: (0, getIcon_1.default)("not_see"), onClick: toggleHidden, width: 16, height: 16 })] }), (0, jsx_runtime_1.jsxs)(material_1.Box, { sx: {
35
36
  display: "flex",
36
37
  flexDirection: "column",
37
38
  alignItems: "flex-end",
@@ -40,7 +41,7 @@ var AnalyticGroup = function (props) {
40
41
  }, children: [(0, jsx_runtime_1.jsx)(Text_1.default, { sx: __assign(__assign(__assign({}, theme.mixins.row), theme.mixins.value), { fontSize: theme.typography.fontSize20, gap: theme.mixins.gaps.g6 }), children: !isHidden ? ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(Formatter_1.default, { sx: { fontWeight: theme.typography.fontWeight700 }, value: 1000000 }), (0, jsx_runtime_1.jsxs)(material_1.Box, { sx: __assign(__assign({}, theme.mixins.row), { gap: theme.mixins.gaps.g4 }), children: [(0, jsx_runtime_1.jsx)(Text_1.default, { sx: {
41
42
  fontWeight: theme.typography.fontWeight400,
42
43
  fontSize: "0.8em",
43
- }, children: "USDC" }), (0, jsx_runtime_1.jsx)(material_1.SvgIcon, { sx: { cursor: "pointer", width: 8, height: 8 }, children: SvgPath_1.ARROW_DROP_DOWN })] })] })) : ((0, jsx_runtime_1.jsx)(Text_1.default, { sx: {
44
+ }, children: "USDC" }), (0, jsx_runtime_1.jsx)(Icon_1.default, { src: (0, getIcon_1.default)("arrow_down"), width: 8 })] })] })) : ((0, jsx_runtime_1.jsx)(Text_1.default, { sx: {
44
45
  fontSize: theme.typography.fontSize24,
45
46
  fontWeight: theme.typography.fontWeight700,
46
47
  color: theme.palette.text.black,
@@ -50,7 +51,7 @@ var AnalyticGroup = function (props) {
50
51
  fontSize: theme.typography.fontSize12,
51
52
  textTransform: "capitalize",
52
53
  color: theme.palette.text.accent,
53
- }, children: props.timeRange }), !isHidden ? ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(material_1.SvgIcon, { sx: { cursor: "pointer", width: 8, height: 8 }, children: SvgPath_1.ARROW_DROP_UP }), (0, jsx_runtime_1.jsx)(Text_1.default, { sx: __assign(__assign({}, theme.mixins.value), { color: theme.palette.text.alertStatus, fontSize: theme.typography.fontSize12, fontWeight: theme.typography.fontWeight600, borderBottom: "1px dashed currentColor" }), children: "5.63 (+3,22%)" })] })) : ((0, jsx_runtime_1.jsx)(Text_1.default, { sx: {
54
+ }, children: props.timeRange }), !isHidden ? ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(Icon_1.default, { src: (0, getIcon_1.default)("arrow_drop_up"), width: 8 }), (0, jsx_runtime_1.jsx)(Text_1.default, { sx: __assign(__assign({}, theme.mixins.value), { color: theme.palette.text.alertStatus, fontSize: theme.typography.fontSize12, fontWeight: theme.typography.fontWeight600, borderBottom: "1px dashed currentColor" }), children: "5.63 (+3,22%)" })] })) : ((0, jsx_runtime_1.jsx)(Text_1.default, { sx: {
54
55
  fontSize: theme.typography.fontSize12,
55
56
  fontWeight: theme.typography.fontWeight600,
56
57
  color: theme.palette.text.accent2,
@@ -66,14 +67,14 @@ var AnalyticGroup = function (props) {
66
67
  fontSize: theme.typography.fontSize12,
67
68
  textTransform: "capitalize",
68
69
  color: theme.palette.text.accent,
69
- }, children: "Profit" }), (0, jsx_runtime_1.jsx)(material_1.Box, { sx: __assign({}, theme.mixins.row), children: !isHidden ? ((0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: (0, jsx_runtime_1.jsx)(Text_1.default, { sx: {
70
- fontSize: theme.typography.fontSize12,
71
- fontWeight: theme.typography.fontWeight600,
72
- color: theme.palette.text.accent2,
73
- }, children: "\u2248 250k XP" }) })) : ((0, jsx_runtime_1.jsx)(Text_1.default, { sx: {
70
+ }, children: "Profit" }), (0, jsx_runtime_1.jsx)(material_1.Box, { sx: __assign({}, theme.mixins.row), children: !isHidden ? ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(Icon_1.default, { src: (0, getIcon_1.default)("approximately"), width: 15, height: 15 }), (0, jsx_runtime_1.jsx)(Text_1.default, { sx: {
71
+ fontSize: theme.typography.fontSize12,
72
+ fontWeight: theme.typography.fontWeight600,
73
+ color: theme.palette.text.accent2,
74
+ }, children: "250k XP" })] })) : ((0, jsx_runtime_1.jsx)(Text_1.default, { sx: {
74
75
  fontSize: theme.typography.fontSize12,
75
76
  fontWeight: theme.typography.fontWeight600,
76
77
  color: theme.palette.text.accent2,
77
- }, children: "****" })) }), (0, jsx_runtime_1.jsx)(material_1.SvgIcon, { sx: { cursor: "pointer", width: 14, height: 14 }, children: SvgPath_1.IC_INFORMATION })] })] })] }));
78
+ }, children: "****" })) }), (0, jsx_runtime_1.jsx)(Icon_1.default, { src: (0, getIcon_1.default)("mark"), width: 15, height: 15 })] })] })] }));
78
79
  };
79
80
  exports.default = AnalyticGroup;
@@ -18,8 +18,6 @@ export interface DrawerComponentProps extends Omit<GeneralProps, "onClick" | "sx
18
18
  direction?: DRAWER_DIRECTION;
19
19
  disableSwipe?: boolean;
20
20
  triggerStatus?: DRAWER_TRIGGER_STATUS;
21
- onDismiss?: () => void;
22
- draggable?: boolean;
23
21
  }
24
22
  export interface DrawerComponentRef {
25
23
  open: () => void;
@@ -39,9 +39,10 @@ var DRAWER_TRIGGER_STATUS;
39
39
  DRAWER_TRIGGER_STATUS["DISABLED"] = "DISABLED";
40
40
  })(DRAWER_TRIGGER_STATUS || (exports.DRAWER_TRIGGER_STATUS = DRAWER_TRIGGER_STATUS = {}));
41
41
  var DrawerComponent = (0, react_1.forwardRef)(function (props, ref) {
42
- var onOpen = props.onOpen, onClose = props.onClose, onToggle = props.onToggle, sx = props.sx, trigger = props.trigger, direction = props.direction, children = props.children, _a = props.triggerStatus, triggerStatus = _a === void 0 ? DRAWER_TRIGGER_STATUS.ENABLED : _a, onDismiss = props.onDismiss, draggable = props.draggable, rest = __rest(props, ["onOpen", "onClose", "onToggle", "sx", "trigger", "direction", "children", "triggerStatus", "onDismiss", "draggable"]);
42
+ var onOpen = props.onOpen, onClose = props.onClose, onToggle = props.onToggle, sx = props.sx, trigger = props.trigger, direction = props.direction, children = props.children, disableSwipe = props.disableSwipe, className = props.className, _a = props.triggerStatus, triggerStatus = _a === void 0 ? DRAWER_TRIGGER_STATUS.ENABLED : _a, rest = __rest(props, ["onOpen", "onClose", "onToggle", "sx", "trigger", "direction", "children", "disableSwipe", "className", "triggerStatus"]);
43
43
  var _b = (0, react_1.useState)(false), isShowDrawerComponent = _b[0], setIsShowDrawerComponent = _b[1];
44
44
  var _c = (0, react_1.useState)(undefined), isOpen = _c[0], setIsOpen = _c[1];
45
+ var DrawerComponent = (0, react_1.useMemo)(function () { return (isOpen !== undefined || disableSwipe ? material_1.Drawer : material_1.SwipeableDrawer); }, [isOpen, disableSwipe]);
45
46
  var lockStatus = function () {
46
47
  setIsOpen(isShowDrawerComponent);
47
48
  };
@@ -69,6 +70,12 @@ var DrawerComponent = (0, react_1.forwardRef)(function (props, ref) {
69
70
  var newState = !isShowDrawerComponent;
70
71
  setIsShowDrawerComponent(newState);
71
72
  onToggle === null || onToggle === void 0 ? void 0 : onToggle(newState);
73
+ if (newState) {
74
+ onOpen === null || onOpen === void 0 ? void 0 : onOpen();
75
+ }
76
+ else {
77
+ onClose === null || onClose === void 0 ? void 0 : onClose();
78
+ }
72
79
  };
73
80
  (0, react_1.useImperativeHandle)(ref, function () { return ({
74
81
  open: handleOpen,
@@ -76,25 +83,21 @@ var DrawerComponent = (0, react_1.forwardRef)(function (props, ref) {
76
83
  lockStatus: lockStatus,
77
84
  unlockStatus: unlockStatus,
78
85
  }); });
79
- var onDrawerClose = function () {
86
+ var onDrawerClose = function (e) {
80
87
  setIsShowDrawerComponent(false);
81
- onDismiss === null || onDismiss === void 0 ? void 0 : onDismiss();
88
+ onClose === null || onClose === void 0 ? void 0 : onClose(e);
82
89
  };
83
90
  var onDrawerOpen = function (e) {
84
91
  setIsShowDrawerComponent(true);
85
92
  onOpen === null || onOpen === void 0 ? void 0 : onOpen(e);
86
93
  };
87
- return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(material_1.Box, { sx: __assign({}, sx), onClick: toggle, children: trigger }), (0, jsx_runtime_1.jsx)(material_1.SwipeableDrawer, __assign({}, rest, { disableSwipeToOpen: true, sx: {
94
+ return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(material_1.Box, { sx: __assign({ display: "block" }, sx), className: className, onClick: toggle, children: trigger }), (0, jsx_runtime_1.jsx)(DrawerComponent, __assign({}, rest, { sx: {
88
95
  "& .MuiDrawer-paper": {
89
96
  backgroundColor: "transparent",
90
97
  overflow: "hidden",
91
98
  boxShadow: "none",
92
99
  },
93
- }, anchor: direction || "bottom", open: isOpen !== null && isOpen !== void 0 ? isOpen : isShowDrawerComponent, onOpen: onDrawerOpen, onClose: onDrawerClose, ModalProps: {
94
- onBackdropClick: function () {
95
- onDismiss === null || onDismiss === void 0 ? void 0 : onDismiss();
96
- },
97
- }, draggable: draggable, children: children }))] }));
100
+ }, anchor: direction || DRAWER_DIRECTION.BOTTOM, open: isOpen !== null && isOpen !== void 0 ? isOpen : isShowDrawerComponent, onOpen: onDrawerOpen, onClose: onDrawerClose, children: children }))] }));
98
101
  });
99
102
  DrawerComponent.displayName = "DrawerComponent";
100
103
  exports.default = DrawerComponent;
@@ -14,5 +14,5 @@ export interface FeesProps extends Omit<AccordionProps, "children"> {
14
14
  feesStyle?: FeesStyle;
15
15
  estimateReceive?: string | number;
16
16
  }
17
- declare function Fees(props: FeesProps): import("react/jsx-runtime").JSX.Element | null;
17
+ declare function Fees(props: FeesProps): import("react/jsx-runtime").JSX.Element;
18
18
  export default Fees;
@@ -84,7 +84,7 @@ function Fees(props) {
84
84
  var totalfee_in_currency = (0, react_1.useMemo)(function () {
85
85
  return feesData === null || feesData === void 0 ? void 0 : feesData.fee_in_currency;
86
86
  }, [feesData]);
87
- return feeCheckedBalance.length > 0 ? ((0, jsx_runtime_1.jsxs)(material_1.Accordion, __assign({ defaultExpanded: true }, rest, { disableGutters: true, sx: __assign(__assign({}, getStyled(feesStyle !== null && feesStyle !== void 0 ? feesStyle : FeesStyle.DEFAULT, theme)), sx), children: [(0, jsx_runtime_1.jsx)(material_1.AccordionSummary, { expandIcon: (0, jsx_runtime_1.jsx)(Icon_1.default, { src: (0, getIcon_1.default)("arrow_down"), width: 8, height: 8 }), children: (0, jsx_runtime_1.jsxs)(material_1.Box, { sx: __assign(__assign({}, theme.mixins.row), { width: "100%" }), children: [(0, jsx_runtime_1.jsx)(Text_1.default, { sx: {
87
+ return ((0, jsx_runtime_1.jsxs)(material_1.Accordion, __assign({ defaultExpanded: true }, rest, { disableGutters: true, sx: __assign(__assign({}, getStyled(feesStyle !== null && feesStyle !== void 0 ? feesStyle : FeesStyle.DEFAULT, theme)), sx), children: [(0, jsx_runtime_1.jsx)(material_1.AccordionSummary, { expandIcon: (0, jsx_runtime_1.jsx)(Icon_1.default, { src: (0, getIcon_1.default)("arrow_down"), width: 8, height: 8 }), children: (0, jsx_runtime_1.jsxs)(material_1.Box, { sx: __assign(__assign({}, theme.mixins.row), { width: "100%" }), children: [(0, jsx_runtime_1.jsx)(Text_1.default, { sx: {
88
88
  fontSize: theme.typography.fontSize11,
89
89
  fontWeight: theme.typography.fontWeight500,
90
90
  color: theme.palette.text.black,
@@ -119,7 +119,7 @@ function Fees(props) {
119
119
  fontSize: theme.typography.fontSize16,
120
120
  fontWeight: theme.typography.fontWeight700,
121
121
  color: theme.palette.text.black,
122
- }, unit: " ".concat(tokenSlug.toUpperCase()), value: estimateReceive })] }))] }) })] }))) : null;
122
+ }, unit: " ".concat(tokenSlug.toUpperCase()), value: estimateReceive })] }))] }) })] })));
123
123
  }
124
124
  exports.default = Fees;
125
125
  var FeeDetails = function (_a) {
@@ -0,0 +1,45 @@
1
+ export interface DepositResult {
2
+ id: number;
3
+ transaction_type: {};
4
+ from_address: string;
5
+ to_address: string;
6
+ network: string;
7
+ currency_slug: string;
8
+ fee: number;
9
+ amount: number;
10
+ transaction_status: string;
11
+ user_created: string;
12
+ user_updated: string;
13
+ date_created: Date;
14
+ date_updated: null;
15
+ description: null;
16
+ currency_usd_rate: string;
17
+ from_app_slug: string;
18
+ fee_info: FeeInfo;
19
+ order_id: null;
20
+ parent_transaction_id: null;
21
+ child_transactions: any[];
22
+ currency_data: CurrencyData;
23
+ raw_transaction_type: string;
24
+ }
25
+ export interface CurrencyData {
26
+ name: string;
27
+ id: number;
28
+ slug: string;
29
+ full_name: string;
30
+ icon: string;
31
+ link: string;
32
+ usd_rate: number;
33
+ }
34
+ export interface FeeInfo {
35
+ fee_detail: any[];
36
+ fee_in_currency: number;
37
+ fee_in_usd: number;
38
+ original_amount_in_currency: number;
39
+ original_amount_in_usd: number;
40
+ original_currency: string;
41
+ }
42
+ export interface IDepositResultProps {
43
+ data: DepositResult | undefined;
44
+ }
45
+ export default function DepositSuccessResult({ data }: IDepositResultProps): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,32 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.default = DepositSuccessResult;
7
+ var jsx_runtime_1 = require("react/jsx-runtime");
8
+ var material_1 = require("@mui/material");
9
+ var image_1 = __importDefault(require("next/image"));
10
+ var react_1 = require("react");
11
+ var __1 = require("..");
12
+ var useWallet_1 = __importDefault(require("../../../../hooks/useWallet"));
13
+ var formatter_1 = __importDefault(require("../../Formatter/functions/formatter"));
14
+ function DepositSuccessResult(_a) {
15
+ var _b, _c, _d;
16
+ var data = _a.data;
17
+ var tokens = (0, useWallet_1.default)().tokens;
18
+ var _e = (0, react_1.useState)(false), copySuccess = _e[0], setCopySuccess = _e[1];
19
+ var handleCopy = function (text) {
20
+ if (copySuccess)
21
+ return;
22
+ navigator.clipboard
23
+ .writeText(text)
24
+ .then(function () {
25
+ setCopySuccess(true);
26
+ })
27
+ .catch(function (err) {
28
+ console.error("Failed to copy link:", err);
29
+ });
30
+ };
31
+ return ((0, jsx_runtime_1.jsx)("div", { className: "fc pt-[25%]", children: (0, jsx_runtime_1.jsxs)("div", { className: "fc items-center p-4 bg-tertiary border border-accent-3-stoke rounded-2xl gap-3", children: [(0, jsx_runtime_1.jsx)("div", { className: "relative w-[45%] aspect-square -mt-[25%]", children: (0, jsx_runtime_1.jsx)(image_1.default, { alt: "", fill: true, src: "/" }) }), (0, jsx_runtime_1.jsxs)("div", { className: "fc", children: [(0, jsx_runtime_1.jsxs)(material_1.Typography, { variant: "title03", color: "accent2", children: [data === null || data === void 0 ? void 0 : data.raw_transaction_type, (0, jsx_runtime_1.jsx)(material_1.Typography, { variant: "title01", color: "primary", className: "capitalize", children: data === null || data === void 0 ? void 0 : data.transaction_status })] }), (0, jsx_runtime_1.jsx)(material_1.Divider, { flexItem: true }), (0, jsx_runtime_1.jsxs)("div", { className: "fc gap-4", children: [(0, jsx_runtime_1.jsxs)(material_1.Typography, { variant: "title02", color: "positive", className: "flex gap-1 items-center", children: [(0, formatter_1.default)((_b = data === null || data === void 0 ? void 0 : data.amount) !== null && _b !== void 0 ? _b : 0, false, false), " VND", (0, jsx_runtime_1.jsx)(image_1.default, { alt: "", width: 20, height: 20, src: (_d = (_c = tokens === null || tokens === void 0 ? void 0 : tokens.find(function (item) { return item.currency_slug.toLocaleLowerCase() === "vnd"; })) === null || _c === void 0 ? void 0 : _c.currency.link) !== null && _d !== void 0 ? _d : "/" })] }), (0, jsx_runtime_1.jsx)(material_1.Divider, { flexItem: true }), (0, jsx_runtime_1.jsxs)(material_1.Typography, { variant: "content02", color: "positive", className: "flex items-center gap-1 justify-between", children: ["Invoice code", (0, jsx_runtime_1.jsxs)(material_1.Typography, { variant: "title02", className: "flex items-center gap-1", children: [copySuccess ? "Copied!" : data === null || data === void 0 ? void 0 : data.id, (0, jsx_runtime_1.jsx)(material_1.Button, { variant: "icon", onClick: function () { return handleCopy((data === null || data === void 0 ? void 0 : data.id.toString()) || ""); }, children: (0, jsx_runtime_1.jsx)(__1.CopyIcon, {}) })] })] }), (0, jsx_runtime_1.jsxs)(material_1.Typography, { variant: "content02", color: "positive", className: "flex items-center gap-1 justify-between", children: ["User", (0, jsx_runtime_1.jsxs)(material_1.Typography, { variant: "title02", className: "flex items-center gap-1", children: [copySuccess ? "Copied!" : data === null || data === void 0 ? void 0 : data.id, (0, jsx_runtime_1.jsx)(material_1.Button, { variant: "icon", onClick: function () { return handleCopy((data === null || data === void 0 ? void 0 : data.id.toString()) || ""); }, children: (0, jsx_runtime_1.jsx)(__1.CopyIcon, {}) })] })] }), (0, jsx_runtime_1.jsxs)(material_1.Typography, { variant: "content02", color: "positive", className: "flex items-center gap-1 justify-between", children: ["Invoice code", (0, jsx_runtime_1.jsxs)(material_1.Typography, { variant: "title02", className: "flex items-center gap-1", children: [copySuccess ? "Copied!" : data === null || data === void 0 ? void 0 : data.id, (0, jsx_runtime_1.jsx)(material_1.Button, { variant: "icon", onClick: function () { return handleCopy((data === null || data === void 0 ? void 0 : data.id.toString()) || ""); }, children: (0, jsx_runtime_1.jsx)(__1.CopyIcon, {}) })] })] })] })] })] }) }));
32
+ }
@@ -0,0 +1,8 @@
1
+ import { FiatDepositData } from "../../../../types/expose-type";
2
+ export declare const SuccessAnimation: () => import("react/jsx-runtime").JSX.Element;
3
+ export interface IShareActionProps {
4
+ data: FiatDepositData | null;
5
+ shareRef: React.RefObject<HTMLDivElement | null>;
6
+ }
7
+ declare const _default: import("react").NamedExoticComponent<IShareActionProps>;
8
+ export default _default;
@@ -0,0 +1,128 @@
1
+ "use strict";
2
+ "use client";
3
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
4
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
5
+ return new (P || (P = Promise))(function (resolve, reject) {
6
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
7
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
8
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
9
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
10
+ });
11
+ };
12
+ var __generator = (this && this.__generator) || function (thisArg, body) {
13
+ var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
14
+ return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
15
+ function verb(n) { return function (v) { return step([n, v]); }; }
16
+ function step(op) {
17
+ if (f) throw new TypeError("Generator is already executing.");
18
+ while (g && (g = 0, op[0] && (_ = 0)), _) try {
19
+ if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
20
+ if (y = 0, t) op = [op[0] & 2, t.value];
21
+ switch (op[0]) {
22
+ case 0: case 1: t = op; break;
23
+ case 4: _.label++; return { value: op[1], done: false };
24
+ case 5: _.label++; y = op[1]; op = [0]; continue;
25
+ case 7: op = _.ops.pop(); _.trys.pop(); continue;
26
+ default:
27
+ if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
28
+ if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
29
+ if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
30
+ if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
31
+ if (t[2]) _.ops.pop();
32
+ _.trys.pop(); continue;
33
+ }
34
+ op = body.call(thisArg, _);
35
+ } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
36
+ if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
37
+ }
38
+ };
39
+ Object.defineProperty(exports, "__esModule", { value: true });
40
+ exports.SuccessAnimation = void 0;
41
+ var jsx_runtime_1 = require("react/jsx-runtime");
42
+ var material_1 = require("@mui/material");
43
+ var react_1 = require("react");
44
+ var html_to_image_1 = require("html-to-image");
45
+ var SuccessAnimation = function () { return ((0, jsx_runtime_1.jsx)("svg", { xmlns: "http://www.w3.org/2000/svg", width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", children: (0, jsx_runtime_1.jsx)("path", { d: "M4.5 12.75L10.5 18.75L19.5 5.25", stroke: "currentColor", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round" }) })); };
46
+ exports.SuccessAnimation = SuccessAnimation;
47
+ exports.default = (0, react_1.memo)(function ShareAction(_a) {
48
+ var _this = this;
49
+ var data = _a.data, shareRef = _a.shareRef;
50
+ var _b = (0, react_1.useState)(false), isDownloading = _b[0], setIsDownloading = _b[1];
51
+ var _c = (0, react_1.useState)(false), copySuccess = _c[0], setCopySuccess = _c[1];
52
+ var convertHtml2Img = function () { return __awaiter(_this, void 0, void 0, function () {
53
+ var _a, _b;
54
+ var _c;
55
+ return __generator(this, function (_d) {
56
+ switch (_d.label) {
57
+ case 0:
58
+ if (!shareRef.current)
59
+ return [2 /*return*/];
60
+ _a = html_to_image_1.toPng;
61
+ _b = [shareRef.current];
62
+ _c = {};
63
+ return [4 /*yield*/, (0, html_to_image_1.getFontEmbedCSS)(shareRef.current)];
64
+ case 1: return [4 /*yield*/, _a.apply(void 0, _b.concat([(_c.fontEmbedCSS = _d.sent(), _c)]))];
65
+ case 2: return [2 /*return*/, _d.sent()];
66
+ }
67
+ });
68
+ }); };
69
+ var handleDownloadFile = function (url, filename) { return __awaiter(_this, void 0, void 0, function () {
70
+ var link;
71
+ return __generator(this, function (_a) {
72
+ link = document.createElement("a");
73
+ link.download = filename;
74
+ link.href = url;
75
+ link.setAttribute("data-downloadurl", ["image/png", link.download, link.href].join(":"));
76
+ document.body.appendChild(link);
77
+ link.click();
78
+ document.body.removeChild(link);
79
+ return [2 /*return*/];
80
+ });
81
+ }); };
82
+ var handleDownload = function () { return __awaiter(_this, void 0, void 0, function () {
83
+ var dataUrl, error_1;
84
+ return __generator(this, function (_a) {
85
+ switch (_a.label) {
86
+ case 0:
87
+ if (isDownloading)
88
+ return [2 /*return*/];
89
+ setIsDownloading(true);
90
+ _a.label = 1;
91
+ case 1:
92
+ _a.trys.push([1, 3, , 4]);
93
+ return [4 /*yield*/, convertHtml2Img()];
94
+ case 2:
95
+ dataUrl = _a.sent();
96
+ handleDownloadFile(dataUrl !== null && dataUrl !== void 0 ? dataUrl : "", "".concat(data === null || data === void 0 ? void 0 : data.id, ".png")).finally(function () { return setIsDownloading(false); });
97
+ return [3 /*break*/, 4];
98
+ case 3:
99
+ error_1 = _a.sent();
100
+ console.warn("🚀 ~ handleDownload ~ error:", error_1);
101
+ return [3 /*break*/, 4];
102
+ case 4: return [2 /*return*/];
103
+ }
104
+ });
105
+ }); };
106
+ var handleCopyLink = function () {
107
+ if (!(data === null || data === void 0 ? void 0 : data.id) || copySuccess)
108
+ return;
109
+ var link = data._link.payment_link.href;
110
+ navigator.clipboard
111
+ .writeText(link)
112
+ .then(function () {
113
+ setCopySuccess(true);
114
+ })
115
+ .catch(function (err) {
116
+ console.error("Failed to copy link:", err);
117
+ });
118
+ };
119
+ (0, react_1.useEffect)(function () {
120
+ if (copySuccess) {
121
+ var timeout_1 = setTimeout(function () {
122
+ setCopySuccess(false);
123
+ }, 2000);
124
+ return function () { return clearTimeout(timeout_1); };
125
+ }
126
+ }, [copySuccess]);
127
+ return ((0, jsx_runtime_1.jsxs)("div", { className: "grid grid-cols-4 gap-2", children: [(0, jsx_runtime_1.jsxs)("div", { className: "fc gap-1.5 items-center", children: [(0, jsx_runtime_1.jsx)(material_1.Button, { loading: isDownloading, color: "primary", onClick: handleDownload, className: "rounded-xl justify-center flex items-center w-12 aspect-square", children: (0, jsx_runtime_1.jsx)("svg", { xmlns: "http://www.w3.org/2000/svg", width: "21", height: "20", viewBox: "0 0 21 20", fill: "none", children: (0, jsx_runtime_1.jsx)("path", { d: "M3.375 13.75V15.625C3.375 16.1223 3.57254 16.5992 3.92417 16.9508C4.27581 17.3025 4.75272 17.5 5.25 17.5H16.5C16.9973 17.5 17.4742 17.3025 17.8258 16.9508C18.1775 16.5992 18.375 16.1223 18.375 15.625V13.75M14.625 10L10.875 13.75M10.875 13.75L7.125 10M10.875 13.75V2.5", stroke: "white", strokeWidth: "1.25", strokeLinecap: "round", strokeLinejoin: "round" }) }) }), (0, jsx_runtime_1.jsx)(material_1.Typography, { variant: "content02", color: "positive", children: "Save photo" })] }), (0, jsx_runtime_1.jsxs)("div", { className: "fc gap-1.5 items-center", children: [(0, jsx_runtime_1.jsx)(material_1.Button, { color: "primary", onClick: handleCopyLink, className: "rounded-xl text-negative justify-center flex items-center w-12 aspect-square", children: copySuccess ? ((0, jsx_runtime_1.jsx)(exports.SuccessAnimation, {})) : ((0, jsx_runtime_1.jsx)("svg", { xmlns: "http://www.w3.org/2000/svg", width: "21", height: "20", viewBox: "0 0 21 20", fill: "none", children: (0, jsx_runtime_1.jsx)("path", { d: "M11.6167 7.24002C12.1582 7.49857 12.6298 7.8833 12.9918 8.36189C13.3538 8.84048 13.5956 9.39895 13.697 9.9904C13.7985 10.5818 13.7564 11.189 13.5745 11.7608C13.3926 12.3327 13.0762 12.8525 12.6517 13.2767L8.90169 17.0267C8.19842 17.73 7.24459 18.125 6.25002 18.125C5.25546 18.125 4.30162 17.73 3.59836 17.0267C2.89509 16.3234 2.5 15.3696 2.5 14.375C2.5 13.3805 2.89509 12.4266 3.59836 11.7234L5.06252 10.2592M16.1875 9.74086L17.6517 8.27669C18.355 7.57342 18.75 6.61959 18.75 5.62502C18.75 4.63046 18.355 3.67662 17.6517 2.97336C16.9484 2.27009 15.9946 1.875 15 1.875C14.0055 1.875 13.0516 2.27009 12.3484 2.97336L8.59836 6.72336C8.17389 7.14752 7.85741 7.66736 7.67551 8.23921C7.49361 8.81105 7.45159 9.4182 7.553 10.0096C7.6544 10.6011 7.89626 11.1596 8.25827 11.6382C8.62027 12.1167 9.09183 12.5015 9.63336 12.76", stroke: "white", strokeWidth: "1.25", strokeLinecap: "round", strokeLinejoin: "round" }) })) }), (0, jsx_runtime_1.jsx)(material_1.Typography, { variant: "content02", color: "positive", children: copySuccess ? "Copied!" : "Copy link" })] })] }));
128
+ });
@@ -0,0 +1,8 @@
1
+ import { FiatDepositData } from "../../../../types/expose-type";
2
+ export interface IShareDrawerProps {
3
+ depositData: FiatDepositData | null;
4
+ count?: number;
5
+ handleRefresh?: () => void;
6
+ onClose?: () => void;
7
+ }
8
+ export default function ShareDrawer({ depositData, count, handleRefresh, onClose, }: IShareDrawerProps): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,49 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || (function () {
19
+ var ownKeys = function(o) {
20
+ ownKeys = Object.getOwnPropertyNames || function (o) {
21
+ var ar = [];
22
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
23
+ return ar;
24
+ };
25
+ return ownKeys(o);
26
+ };
27
+ return function (mod) {
28
+ if (mod && mod.__esModule) return mod;
29
+ var result = {};
30
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
31
+ __setModuleDefault(result, mod);
32
+ return result;
33
+ };
34
+ })();
35
+ var __importDefault = (this && this.__importDefault) || function (mod) {
36
+ return (mod && mod.__esModule) ? mod : { "default": mod };
37
+ };
38
+ Object.defineProperty(exports, "__esModule", { value: true });
39
+ exports.default = ShareDrawer;
40
+ var jsx_runtime_1 = require("react/jsx-runtime");
41
+ var material_1 = require("@mui/material");
42
+ var React = __importStar(require("react"));
43
+ var shareImage_1 = __importDefault(require("./shareImage"));
44
+ var shareAction_1 = __importDefault(require("./shareAction"));
45
+ function ShareDrawer(_a) {
46
+ var depositData = _a.depositData, count = _a.count, handleRefresh = _a.handleRefresh, onClose = _a.onClose;
47
+ var shareRef = React.useRef(null);
48
+ return ((0, jsx_runtime_1.jsxs)("div", { className: "bg-tertiary fc gap-3 p-4 items-center max-h-[70%] overflow-auto pb-10", children: [(0, jsx_runtime_1.jsxs)("div", { className: "w-full flex items-center justify-between", children: [(0, jsx_runtime_1.jsx)(material_1.Typography, { variant: "title01", color: "positive", children: "Share" }), (0, jsx_runtime_1.jsx)("svg", { onClick: onClose, xmlns: "http://www.w3.org/2000/svg", width: "14", height: "14", viewBox: "0 0 14 14", fill: "none", children: (0, jsx_runtime_1.jsx)("path", { d: "M1 13L13 1M1 1L13 13", stroke: "#121212", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round" }) })] }), (0, jsx_runtime_1.jsx)(material_1.Divider, { flexItem: true }), (0, jsx_runtime_1.jsx)(shareImage_1.default, { ref: shareRef, data: depositData, count: count, handleRefresh: handleRefresh }), (0, jsx_runtime_1.jsx)(material_1.Divider, { flexItem: true }), (0, jsx_runtime_1.jsxs)("div", { className: "w-full fc gap-3", children: [(0, jsx_runtime_1.jsx)(material_1.Typography, { variant: "title01", color: "positive", children: "Share To" }), (0, jsx_runtime_1.jsx)(shareAction_1.default, { data: depositData, shareRef: shareRef })] })] }));
49
+ }
@@ -0,0 +1,9 @@
1
+ import { FiatDepositData } from "../../../../types/expose-type";
2
+ import { RefObject } from "react";
3
+ export interface IShareImageProps {
4
+ data: FiatDepositData | null;
5
+ count?: number;
6
+ handleRefresh?: () => void;
7
+ ref: RefObject<HTMLDivElement>;
8
+ }
9
+ export default function ShareImage({ data, count, handleRefresh, ref }: IShareImageProps): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,23 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.default = ShareImage;
7
+ var jsx_runtime_1 = require("react/jsx-runtime");
8
+ var material_1 = require("@mui/material");
9
+ var image_1 = __importDefault(require("next/image"));
10
+ var formatter_1 = __importDefault(require("../../Formatter/functions/formatter"));
11
+ function ShareImage(_a) {
12
+ var _b, _c;
13
+ var data = _a.data, count = _a.count, handleRefresh = _a.handleRefresh, ref = _a.ref;
14
+ return ((0, jsx_runtime_1.jsx)("div", { className: "w-[55%] p-3", ref: ref, children: (0, jsx_runtime_1.jsxs)("div", { className: "relative py-6 bg-negative rounded-[.563rem] fc gap-8 items-center text-center", children: [(0, jsx_runtime_1.jsxs)("div", { className: "fc items-center", children: [(0, jsx_runtime_1.jsx)(image_1.default, { src: "/icons/logo.svg", alt: "", width: 34, height: 34 }), (0, jsx_runtime_1.jsxs)(material_1.Typography, { component: "span", className: "fc gap-[3px] text-[9px] font-[700]", color: "positive", children: ["Ting.Money", (0, jsx_runtime_1.jsx)(material_1.Typography, { className: "text-[6px] font-[500]", color: "accent2", children: "Ting.Money \u2013 Powering Your Global Travel Dreams" })] })] }), (0, jsx_runtime_1.jsxs)("div", { className: "w-full fc items-center gap-3 px-4", children: [(0, jsx_runtime_1.jsxs)("div", { className: "relative w-[52%] aspect-square ", children: [(0, jsx_runtime_1.jsx)(image_1.default, { alt: "", fill: true, src: (_b = data === null || data === void 0 ? void 0 : data.qr_code) !== null && _b !== void 0 ? _b : "/", className: count === 0 ? "blur-[6px]" : "" }), count === 0 && ((0, jsx_runtime_1.jsx)("div", { onClick: handleRefresh, className: "absolute inset-0 bg-transparent items-center justify-center flex", children: (0, jsx_runtime_1.jsx)("svg", { xmlns: "http://www.w3.org/2000/svg", width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", children: (0, jsx_runtime_1.jsx)("path", { d: "M16.0234 9.34794H21.0154L17.8344 6.16494C16.8103 5.14081 15.5346 4.40433 14.1356 4.02955C12.7366 3.65476 11.2636 3.65487 9.86464 4.02986C8.4657 4.40486 7.19014 5.14153 6.16617 6.16581C5.14221 7.19009 4.40594 8.46588 4.03138 9.86494M2.98537 19.6439V14.6519M2.98537 14.6519H7.97738M2.98537 14.6519L6.16537 17.8349C7.18949 18.8591 8.46517 19.5955 9.86416 19.9703C11.2632 20.3451 12.7362 20.345 14.1351 19.97C15.534 19.595 16.8096 18.8584 17.8336 17.8341C18.8575 16.8098 19.5938 15.534 19.9684 14.1349M21.0154 4.35594V9.34594", stroke: "#1E4841", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round" }) }) }))] }), (0, jsx_runtime_1.jsxs)(material_1.Typography, { component: "span", variant: "title01", sx: {
15
+ fontSize: "0.813rem",
16
+ fontWeight: 600,
17
+ lineHeight: "140%",
18
+ }, color: "primary", className: "fc items-center", children: [(0, formatter_1.default)((_c = data === null || data === void 0 ? void 0 : data.amount) !== null && _c !== void 0 ? _c : 0, !!0, !!0) || "--", (0, jsx_runtime_1.jsx)(material_1.Typography, { variant: "title01", sx: {
19
+ fontSize: ".5rem",
20
+ fontWeight: 500,
21
+ lineHeight: "140%",
22
+ }, color: "accent2", children: "VND" })] }), (0, jsx_runtime_1.jsx)(material_1.Divider, { flexItem: true }), (0, jsx_runtime_1.jsxs)(material_1.Typography, { component: "span", className: "fc gap-[3px] items-center text-center text-[0.563rem]", children: [data === null || data === void 0 ? void 0 : data.metadata.bank_account.account_name, (0, jsx_runtime_1.jsx)(material_1.Typography, { className: "text-[.375rem]", children: data === null || data === void 0 ? void 0 : data.metadata.bank_account.bank_name }), (0, jsx_runtime_1.jsx)(material_1.Typography, { className: "text-[.563rem] flex items-center gap-1", children: data === null || data === void 0 ? void 0 : data.metadata.bank_account.account_number })] })] }), (0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)("div", { className: "absolute -top-[1px] -left-[1px] w-4 h-4 border-t-[1px] border-l-[1px] border-[#1E4841] rounded-tl-[9px]" }), (0, jsx_runtime_1.jsx)("div", { className: "absolute -top-[1px] -right-[1px] w-4 h-4 border-t-[1px] border-r-[1px] border-[#1E4841] rounded-tr-[9px]" }), (0, jsx_runtime_1.jsx)("div", { className: "absolute -bottom-[1px] -left-[1px] w-4 h-4 border-b-[1px] border-l-[1px] border-[#1E4841] rounded-bl-[9px]" }), (0, jsx_runtime_1.jsx)("div", { className: "absolute -bottom-[1px] -right-[1px] w-4 h-4 border-b-[1px] border-r-[1px] border-[#1E4841] rounded-br-[9px]" }), (0, jsx_runtime_1.jsx)("div", { className: "absolute -top-[1px] w-4 h-4 border-t-[1px] border-[#1E4841] " }), (0, jsx_runtime_1.jsx)("div", { className: "absolute -bottom-[1px] w-4 h-4 border-b-[1px] border-[#1E4841] " }), (0, jsx_runtime_1.jsx)("div", { className: "absolute -left-[1px] w-4 h-4 border-l-[1px] border-[#1E4841] top-1/2 -translate-y-1/2" }), (0, jsx_runtime_1.jsx)("div", { className: "absolute -right-[1px] w-4 h-4 border-r-[1px] border-[#1E4841] top-1/2 -translate-y-1/2" })] })] }) }));
23
+ }
@@ -0,0 +1,5 @@
1
+ export interface IFiatDepositProps {
2
+ children?: React.ReactNode;
3
+ }
4
+ export declare const CopyIcon: () => import("react/jsx-runtime").JSX.Element;
5
+ export default function FiatDeposit({ children }: IFiatDepositProps): import("react/jsx-runtime").JSX.Element;