tek-wallet 0.0.732 → 0.0.735
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/TekWallet/components/index.d.ts +0 -2
- package/dist/components/TekWallet/components/index.js +0 -2
- package/dist/components/TekWallet/components/ui/AnalyticGroup/index.js +11 -10
- package/dist/components/TekWallet/components/ui/DrawerComponent/index.d.ts +0 -2
- package/dist/components/TekWallet/components/ui/DrawerComponent/index.js +12 -9
- package/dist/components/TekWallet/components/ui/Fees/index.d.ts +1 -1
- package/dist/components/TekWallet/components/ui/Fees/index.js +2 -2
- package/dist/components/TekWallet/components/ui/FiatDeposit/components/shareAction.d.ts +8 -0
- package/dist/components/TekWallet/components/ui/FiatDeposit/components/shareAction.js +149 -0
- package/dist/components/TekWallet/components/ui/FiatDeposit/components/shareDrawer.d.ts +8 -0
- package/dist/components/TekWallet/components/ui/FiatDeposit/components/shareDrawer.js +21 -0
- package/dist/components/TekWallet/components/ui/FiatDeposit/components/shareImage.d.ts +9 -0
- package/dist/components/TekWallet/components/ui/FiatDeposit/components/shareImage.js +125 -0
- package/dist/components/TekWallet/components/ui/FiatDeposit/index.d.ts +5 -0
- package/dist/components/TekWallet/components/ui/FiatDeposit/index.js +254 -0
- package/dist/components/TekWallet/components/ui/HistorySwap/index.js +2 -3
- package/dist/components/TekWallet/components/ui/ModalLayout/index.d.ts +1 -1
- package/dist/components/TekWallet/components/ui/ModalLayout/index.js +1 -1
- package/dist/components/TekWallet/components/ui/QRCode/index.js +1 -1
- package/dist/components/TekWallet/components/ui/QrCodeReader/index.js +1 -1
- package/dist/components/TekWallet/components/ui/ReceiveFunction/index.d.ts +3 -1
- package/dist/components/TekWallet/components/ui/ReceiveFunction/index.js +27 -13
- package/dist/components/TekWallet/components/ui/ReceiveHistory/index.js +2 -3
- package/dist/components/TekWallet/components/ui/SvgPath/index.d.ts +0 -5
- package/dist/components/TekWallet/components/ui/SvgPath/index.js +2 -7
- package/dist/components/TekWallet/components/ui/TimeText/index.d.ts +5 -0
- package/dist/components/TekWallet/components/ui/TimeText/index.js +22 -0
- package/dist/components/TekWallet/components/ui/TransferConfirmation/index.d.ts +0 -1
- package/dist/components/TekWallet/components/ui/TransferConfirmation/index.js +14 -21
- package/dist/components/TekWallet/index.d.ts +0 -9
- package/dist/components/TekWallet/index.js +0 -9
- package/dist/components/TekWallet/services/axios/get-deposit-fiat-info-service/getDepositFiatInfoService.d.ts +13 -0
- package/dist/components/TekWallet/services/axios/get-deposit-fiat-info-service/getDepositFiatInfoService.js +55 -0
- package/dist/components/TekWallet/theme/mui/deposit-fiat-theme/components.d.ts +3 -0
- package/dist/components/TekWallet/theme/mui/deposit-fiat-theme/components.js +158 -0
- package/dist/components/TekWallet/theme/mui/deposit-fiat-theme/palette.d.ts +55 -0
- package/dist/components/TekWallet/theme/mui/deposit-fiat-theme/palette.js +45 -0
- package/dist/components/TekWallet/theme/mui/deposit-fiat-theme/theme.d.ts +2 -0
- package/dist/components/TekWallet/theme/mui/deposit-fiat-theme/theme.js +13 -0
- package/dist/components/TekWallet/theme/mui/deposit-fiat-theme/typography.d.ts +39 -0
- package/dist/components/TekWallet/theme/mui/deposit-fiat-theme/typography.js +65 -0
- package/dist/components/TekWallet/theme/mui/theme.d.ts +0 -5
- package/dist/components/TekWallet/theme/mui/theme.js +0 -5
- package/dist/components/TekWallet/types/expose-type.d.ts +46 -0
- package/dist/components/TekWallet/utils/cn.d.ts +2 -0
- package/dist/components/TekWallet/utils/cn.js +12 -0
- package/package.json +3 -1
- package/dist/components/TekWallet/components/ui/IncomeWallet/components/AnalyticGroup.d.ts +0 -8
- package/dist/components/TekWallet/components/ui/IncomeWallet/components/AnalyticGroup.js +0 -87
- package/dist/components/TekWallet/components/ui/IncomeWallet/components/BalanceChart.d.ts +0 -7
- package/dist/components/TekWallet/components/ui/IncomeWallet/components/BalanceChart.js +0 -170
- package/dist/components/TekWallet/components/ui/IncomeWallet/components/FunctionItem.d.ts +0 -11
- package/dist/components/TekWallet/components/ui/IncomeWallet/components/FunctionItem.js +0 -29
- package/dist/components/TekWallet/components/ui/IncomeWallet/components/HistoryItem.d.ts +0 -7
- package/dist/components/TekWallet/components/ui/IncomeWallet/components/HistoryItem.js +0 -60
- package/dist/components/TekWallet/components/ui/IncomeWallet/components/WealthDeposit.d.ts +0 -14
- package/dist/components/TekWallet/components/ui/IncomeWallet/components/WealthDeposit.js +0 -69
- package/dist/components/TekWallet/components/ui/IncomeWallet/components/WealthWithdraw.d.ts +0 -14
- package/dist/components/TekWallet/components/ui/IncomeWallet/components/WealthWithdraw.js +0 -67
- package/dist/components/TekWallet/components/ui/IncomeWallet/components/deposit/index.d.ts +0 -6
- package/dist/components/TekWallet/components/ui/IncomeWallet/components/deposit/index.js +0 -13
- package/dist/components/TekWallet/components/ui/IncomeWallet/components/history/index.d.ts +0 -6
- package/dist/components/TekWallet/components/ui/IncomeWallet/components/history/index.js +0 -19
- package/dist/components/TekWallet/components/ui/IncomeWallet/index.d.ts +0 -8
- package/dist/components/TekWallet/components/ui/IncomeWallet/index.js +0 -57
- package/dist/components/TekWallet/components/ui/IncomeWallet/types/index.d.ts +0 -2
- package/dist/components/TekWallet/components/ui/IncomeWallet/types/index.js +0 -18
- package/dist/components/TekWallet/components/ui/IncomeWallet/types/transaction.history.dto.d.ts +0 -15
- package/dist/components/TekWallet/components/ui/IncomeWallet/types/transaction.history.dto.js +0 -2
- package/dist/components/TekWallet/components/ui/IncomeWallet/types/userinfo.dto.d.ts +0 -12
- package/dist/components/TekWallet/components/ui/IncomeWallet/types/userinfo.dto.js +0 -2
- package/dist/components/TekWallet/components/ui/Spacer/index.d.ts +0 -5
- package/dist/components/TekWallet/components/ui/Spacer/index.js +0 -7
- package/dist/components/TekWallet/utils/ref.extension.d.ts +0 -3
- package/dist/components/TekWallet/utils/ref.extension.js +0 -8
|
@@ -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)(
|
|
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)(
|
|
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)(
|
|
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.
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
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)(
|
|
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,
|
|
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
|
-
|
|
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)(
|
|
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 ||
|
|
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
|
|
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
|
|
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 })] }))] }) })] })))
|
|
122
|
+
}, unit: " ".concat(tokenSlug.toUpperCase()), value: estimateReceive })] }))] }) })] })));
|
|
123
123
|
}
|
|
124
124
|
exports.default = Fees;
|
|
125
125
|
var FeeDetails = function (_a) {
|
|
@@ -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,149 @@
|
|
|
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)(material_1.Grid2, { sx: {
|
|
128
|
+
gridTemplateColumns: "1fr 1fr 1fr 1fr",
|
|
129
|
+
gridTemplateRows: "1fr",
|
|
130
|
+
alignItems: "center",
|
|
131
|
+
gap: "0.5rem",
|
|
132
|
+
}, container: true, display: "grid", children: [(0, jsx_runtime_1.jsxs)(material_1.Grid2, { display: "flex", flexDirection: "column", gap: "0.375rem", alignItems: "center", children: [(0, jsx_runtime_1.jsx)(material_1.Button, { loading: isDownloading, color: "primary", onClick: handleDownload, sx: {
|
|
133
|
+
borderRadius: "0.75rem",
|
|
134
|
+
justifyContent: "center",
|
|
135
|
+
alignItems: "center",
|
|
136
|
+
width: "3rem",
|
|
137
|
+
height: "3rem",
|
|
138
|
+
display: "flex",
|
|
139
|
+
color: "#fff",
|
|
140
|
+
}, 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)(material_1.Grid2, { display: "flex", flexDirection: "column", gap: "0.375rem", alignItems: "center", children: [(0, jsx_runtime_1.jsx)(material_1.Button, { color: "primary", onClick: handleCopyLink, sx: {
|
|
141
|
+
borderRadius: "0.75rem",
|
|
142
|
+
justifyContent: "center",
|
|
143
|
+
alignItems: "center",
|
|
144
|
+
width: "3rem",
|
|
145
|
+
height: "3rem",
|
|
146
|
+
display: "flex",
|
|
147
|
+
color: "#fff",
|
|
148
|
+
}, 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" })] })] }));
|
|
149
|
+
});
|
|
@@ -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,21 @@
|
|
|
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 = ShareDrawer;
|
|
7
|
+
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
8
|
+
var material_1 = require("@mui/material");
|
|
9
|
+
var shareImage_1 = __importDefault(require("./shareImage"));
|
|
10
|
+
var shareAction_1 = __importDefault(require("./shareAction"));
|
|
11
|
+
var theme_1 = __importDefault(require("../../../../theme/mui/deposit-fiat-theme/theme"));
|
|
12
|
+
var react_1 = require("react");
|
|
13
|
+
function ShareDrawer(_a) {
|
|
14
|
+
var depositData = _a.depositData, count = _a.count, handleRefresh = _a.handleRefresh, onClose = _a.onClose;
|
|
15
|
+
var shareRef = (0, react_1.useRef)(null);
|
|
16
|
+
return ((0, jsx_runtime_1.jsxs)(material_1.Stack, { p: "1rem", sx: {
|
|
17
|
+
background: theme_1.default.palette.tertiary.main,
|
|
18
|
+
maxHeight: "70%",
|
|
19
|
+
overflowY: "auto",
|
|
20
|
+
}, pb: "2.5rem", gap: "0.75rem", alignItems: "center", children: [(0, jsx_runtime_1.jsxs)(material_1.Stack, { width: "100%", flexDirection: "row", alignItems: "center", justifyContent: "space-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)(material_1.Stack, { gap: "0.75rem", width: "100%", 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 })] })] }));
|
|
21
|
+
}
|
|
@@ -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 | null>;
|
|
8
|
+
}
|
|
9
|
+
export default function ShareImage({ data, count, handleRefresh, ref }: IShareImageProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,125 @@
|
|
|
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
|
+
var theme_1 = __importDefault(require("../../../../theme/mui/deposit-fiat-theme/theme"));
|
|
12
|
+
function ShareImage(_a) {
|
|
13
|
+
var _b, _c;
|
|
14
|
+
var data = _a.data, count = _a.count, handleRefresh = _a.handleRefresh, ref = _a.ref;
|
|
15
|
+
return ((0, jsx_runtime_1.jsx)(material_1.Box, { width: "55%", p: "0.75rem", ref: ref, children: (0, jsx_runtime_1.jsxs)(material_1.Stack, { position: "relative", py: "1.5rem", sx: {
|
|
16
|
+
background: theme_1.default.palette.negative.main,
|
|
17
|
+
borderRadius: "0.563rem",
|
|
18
|
+
gap: "2rem",
|
|
19
|
+
alignItems: "center",
|
|
20
|
+
textAlign: "center",
|
|
21
|
+
}, children: [(0, jsx_runtime_1.jsxs)(material_1.Stack, { alignItems: "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", color: "positive", sx: {
|
|
22
|
+
gap: "3px",
|
|
23
|
+
fontSize: "9px",
|
|
24
|
+
fontWeight: 700,
|
|
25
|
+
lineHeight: "140%",
|
|
26
|
+
}, children: ["Ting.Money", (0, jsx_runtime_1.jsx)(material_1.Typography, { sx: {
|
|
27
|
+
fontSize: "6px",
|
|
28
|
+
fontWeight: 500,
|
|
29
|
+
lineHeight: "140%",
|
|
30
|
+
}, color: "accent2", children: "Ting.Money \u2013 Powering Your Global Travel Dreams" })] })] }), (0, jsx_runtime_1.jsxs)(material_1.Stack, { alignItems: "center", style: {
|
|
31
|
+
gap: "12px",
|
|
32
|
+
width: "100%",
|
|
33
|
+
paddingLeft: "16px",
|
|
34
|
+
paddingRight: "16px",
|
|
35
|
+
}, children: [(0, jsx_runtime_1.jsxs)(material_1.Box, { sx: { width: "52%", position: "relative", aspectRatio: "1 / 1" }, 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 : "/", style: { filter: count === 0 ? "blur(6px)" : "none" } }), count === 0 && ((0, jsx_runtime_1.jsx)(material_1.Box, { onClick: handleRefresh, sx: {
|
|
36
|
+
display: "flex",
|
|
37
|
+
position: "absolute",
|
|
38
|
+
inset: "0",
|
|
39
|
+
backgroundColor: "transparent",
|
|
40
|
+
alignItems: "center",
|
|
41
|
+
justifyContent: "center",
|
|
42
|
+
}, 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: {
|
|
43
|
+
display: "flex",
|
|
44
|
+
flexDirection: "column",
|
|
45
|
+
fontSize: "0.813rem",
|
|
46
|
+
fontWeight: 600,
|
|
47
|
+
lineHeight: "140%",
|
|
48
|
+
alignItems: "center",
|
|
49
|
+
}, color: "primary", 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: {
|
|
50
|
+
fontSize: ".5rem",
|
|
51
|
+
fontWeight: 500,
|
|
52
|
+
lineHeight: "140%",
|
|
53
|
+
}, color: "accent2", children: "VND" })] }), (0, jsx_runtime_1.jsx)(material_1.Divider, { flexItem: true }), (0, jsx_runtime_1.jsxs)(material_1.Typography, { component: "span", sx: {
|
|
54
|
+
display: "flex",
|
|
55
|
+
flexDirection: "column",
|
|
56
|
+
gap: "3px",
|
|
57
|
+
fontSize: "0.563rem",
|
|
58
|
+
alignItems: "center",
|
|
59
|
+
textAlign: "center",
|
|
60
|
+
}, children: [data === null || data === void 0 ? void 0 : data.metadata.bank_account.account_name, (0, jsx_runtime_1.jsx)(material_1.Typography, { sx: { fontSize: ".375rem" }, children: data === null || data === void 0 ? void 0 : data.metadata.bank_account.bank_name }), (0, jsx_runtime_1.jsx)(material_1.Typography, { sx: { fontSize: ".563rem", display: "flex", alignItems: "center", gap: "4px" }, 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", { style: {
|
|
61
|
+
position: "absolute",
|
|
62
|
+
top: "-1px",
|
|
63
|
+
left: "-1px",
|
|
64
|
+
width: "16px",
|
|
65
|
+
height: "16px",
|
|
66
|
+
borderTop: "1px solid #1E4841",
|
|
67
|
+
borderLeft: "1px solid #1E4841",
|
|
68
|
+
borderTopLeftRadius: "9px",
|
|
69
|
+
} }), (0, jsx_runtime_1.jsx)("div", { style: {
|
|
70
|
+
position: "absolute",
|
|
71
|
+
top: "-1px",
|
|
72
|
+
right: "-1px",
|
|
73
|
+
width: "16px",
|
|
74
|
+
height: "16px",
|
|
75
|
+
borderTop: "1px solid #1E4841",
|
|
76
|
+
borderRight: "1px solid #1E4841",
|
|
77
|
+
borderTopRightRadius: "9px",
|
|
78
|
+
} }), (0, jsx_runtime_1.jsx)("div", { style: {
|
|
79
|
+
position: "absolute",
|
|
80
|
+
bottom: "-1px",
|
|
81
|
+
left: "-1px",
|
|
82
|
+
width: "16px",
|
|
83
|
+
height: "16px",
|
|
84
|
+
borderBottom: "1px solid #1E4841",
|
|
85
|
+
borderLeft: "1px solid #1E4841",
|
|
86
|
+
borderBottomLeftRadius: "9px",
|
|
87
|
+
} }), (0, jsx_runtime_1.jsx)("div", { style: {
|
|
88
|
+
position: "absolute",
|
|
89
|
+
bottom: "-1px",
|
|
90
|
+
right: "-1px",
|
|
91
|
+
width: "16px",
|
|
92
|
+
height: "16px",
|
|
93
|
+
borderBottom: "1px solid #1E4841",
|
|
94
|
+
borderRight: "1px solid #1E4841",
|
|
95
|
+
borderBottomRightRadius: "9px",
|
|
96
|
+
} }), (0, jsx_runtime_1.jsx)("div", { style: {
|
|
97
|
+
position: "absolute",
|
|
98
|
+
top: "-1px",
|
|
99
|
+
width: "16px",
|
|
100
|
+
height: "16px",
|
|
101
|
+
borderTop: "1px solid #1E4841",
|
|
102
|
+
} }), (0, jsx_runtime_1.jsx)("div", { style: {
|
|
103
|
+
position: "absolute",
|
|
104
|
+
bottom: "-1px",
|
|
105
|
+
width: "16px",
|
|
106
|
+
height: "16px",
|
|
107
|
+
borderBottom: "1px solid #1E4841",
|
|
108
|
+
} }), (0, jsx_runtime_1.jsx)("div", { style: {
|
|
109
|
+
position: "absolute",
|
|
110
|
+
left: "-1px",
|
|
111
|
+
width: "16px",
|
|
112
|
+
height: "16px",
|
|
113
|
+
borderLeft: "1px solid #1E4841",
|
|
114
|
+
top: "50%",
|
|
115
|
+
transform: "translateY(-50%)",
|
|
116
|
+
} }), (0, jsx_runtime_1.jsx)("div", { style: {
|
|
117
|
+
position: "absolute",
|
|
118
|
+
right: "-1px",
|
|
119
|
+
width: "16px",
|
|
120
|
+
height: "16px",
|
|
121
|
+
borderRight: "1px solid #1E4841",
|
|
122
|
+
top: "50%",
|
|
123
|
+
transform: "translateY(-50%)",
|
|
124
|
+
} })] })] }) }));
|
|
125
|
+
}
|