tek-wallet 0.0.735 → 0.0.737
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 +2 -0
- package/dist/components/TekWallet/components/index.js +2 -0
- package/dist/components/TekWallet/components/ui/AmountGroupAndChart/index.js +13 -12
- package/dist/components/TekWallet/components/ui/AnalyticGroup/index.js +10 -11
- package/dist/components/TekWallet/components/ui/DrawerComponent/index.d.ts +2 -0
- package/dist/components/TekWallet/components/ui/DrawerComponent/index.js +9 -12
- 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/HistorySwap/index.js +3 -2
- package/dist/components/TekWallet/components/ui/IncomeWallet/components/AnalyticGroup.d.ts +8 -0
- package/dist/components/TekWallet/components/ui/IncomeWallet/components/AnalyticGroup.js +87 -0
- package/dist/components/TekWallet/components/ui/IncomeWallet/components/BalanceChart.d.ts +7 -0
- package/dist/components/TekWallet/components/ui/IncomeWallet/components/BalanceChart.js +170 -0
- package/dist/components/TekWallet/components/ui/IncomeWallet/components/FunctionItem.d.ts +11 -0
- package/dist/components/TekWallet/components/ui/IncomeWallet/components/FunctionItem.js +29 -0
- package/dist/components/TekWallet/components/ui/IncomeWallet/components/HistoryItem.d.ts +7 -0
- package/dist/components/TekWallet/components/ui/IncomeWallet/components/HistoryItem.js +60 -0
- package/dist/components/TekWallet/components/ui/IncomeWallet/components/WealthDeposit.d.ts +13 -0
- package/dist/components/TekWallet/components/ui/IncomeWallet/components/WealthDeposit.js +69 -0
- package/dist/components/TekWallet/components/ui/IncomeWallet/components/WealthWithdraw.d.ts +13 -0
- package/dist/components/TekWallet/components/ui/IncomeWallet/components/WealthWithdraw.js +67 -0
- package/dist/components/TekWallet/components/ui/IncomeWallet/components/deposit/index.d.ts +6 -0
- package/dist/components/TekWallet/components/ui/IncomeWallet/components/deposit/index.js +13 -0
- package/dist/components/TekWallet/components/ui/IncomeWallet/components/history/index.d.ts +6 -0
- package/dist/components/TekWallet/components/ui/IncomeWallet/components/history/index.js +19 -0
- package/dist/components/TekWallet/components/ui/IncomeWallet/index.d.ts +8 -0
- package/dist/components/TekWallet/components/ui/IncomeWallet/index.js +57 -0
- package/dist/components/TekWallet/components/ui/IncomeWallet/types/index.d.ts +2 -0
- package/dist/components/TekWallet/components/ui/IncomeWallet/types/index.js +18 -0
- package/dist/components/TekWallet/components/ui/IncomeWallet/types/transaction.history.dto.d.ts +15 -0
- package/dist/components/TekWallet/components/ui/IncomeWallet/types/transaction.history.dto.js +2 -0
- package/dist/components/TekWallet/components/ui/IncomeWallet/types/userinfo.dto.d.ts +12 -0
- package/dist/components/TekWallet/components/ui/IncomeWallet/types/userinfo.dto.js +2 -0
- 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 +1 -3
- package/dist/components/TekWallet/components/ui/ReceiveFunction/index.js +13 -27
- package/dist/components/TekWallet/components/ui/ReceiveHistory/index.js +3 -2
- package/dist/components/TekWallet/components/ui/Spacer/index.d.ts +5 -0
- package/dist/components/TekWallet/components/ui/Spacer/index.js +7 -0
- package/dist/components/TekWallet/components/ui/SvgPath/index.d.ts +5 -0
- package/dist/components/TekWallet/components/ui/SvgPath/index.js +7 -2
- package/dist/components/TekWallet/components/ui/TransferConfirmation/index.d.ts +1 -0
- package/dist/components/TekWallet/components/ui/TransferConfirmation/index.js +21 -14
- package/dist/components/TekWallet/index.d.ts +10 -0
- package/dist/components/TekWallet/index.js +10 -0
- package/dist/components/TekWallet/theme/mui/theme.d.ts +5 -0
- package/dist/components/TekWallet/theme/mui/theme.js +5 -0
- package/dist/components/TekWallet/types/expose-type.d.ts +0 -46
- package/dist/components/TekWallet/utils/ref.extension.d.ts +3 -0
- package/dist/components/TekWallet/utils/ref.extension.js +8 -0
- package/package.json +1 -1
- package/dist/components/TekWallet/components/ui/FiatDeposit/components/shareAction.d.ts +0 -8
- package/dist/components/TekWallet/components/ui/FiatDeposit/components/shareAction.js +0 -149
- package/dist/components/TekWallet/components/ui/FiatDeposit/components/shareDrawer.d.ts +0 -8
- package/dist/components/TekWallet/components/ui/FiatDeposit/components/shareDrawer.js +0 -21
- package/dist/components/TekWallet/components/ui/FiatDeposit/components/shareImage.d.ts +0 -9
- package/dist/components/TekWallet/components/ui/FiatDeposit/components/shareImage.js +0 -125
- package/dist/components/TekWallet/components/ui/FiatDeposit/index.d.ts +0 -5
- package/dist/components/TekWallet/components/ui/FiatDeposit/index.js +0 -254
- package/dist/components/TekWallet/components/ui/TimeText/index.d.ts +0 -5
- package/dist/components/TekWallet/components/ui/TimeText/index.js +0 -22
- package/dist/components/TekWallet/services/axios/get-deposit-fiat-info-service/getDepositFiatInfoService.d.ts +0 -13
- package/dist/components/TekWallet/services/axios/get-deposit-fiat-info-service/getDepositFiatInfoService.js +0 -55
- package/dist/components/TekWallet/theme/mui/deposit-fiat-theme/components.d.ts +0 -3
- package/dist/components/TekWallet/theme/mui/deposit-fiat-theme/components.js +0 -158
- package/dist/components/TekWallet/theme/mui/deposit-fiat-theme/palette.d.ts +0 -55
- package/dist/components/TekWallet/theme/mui/deposit-fiat-theme/palette.js +0 -45
- package/dist/components/TekWallet/theme/mui/deposit-fiat-theme/theme.d.ts +0 -2
- package/dist/components/TekWallet/theme/mui/deposit-fiat-theme/theme.js +0 -13
- package/dist/components/TekWallet/theme/mui/deposit-fiat-theme/typography.d.ts +0 -39
- package/dist/components/TekWallet/theme/mui/deposit-fiat-theme/typography.js +0 -65
- package/dist/components/TekWallet/utils/cn.d.ts +0 -2
- package/dist/components/TekWallet/utils/cn.js +0 -12
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.IC_TOOLTIP = exports.IC_BACK = exports.IC_UNCHECK = exports.IC_CHECK = exports.IC_ARROW_DROP_DOWN = exports.IC_ARROW_DROP_UP = exports.IC_RECEIVE_EXTERNAL = exports.IC_RECEIVE_INTERNAL = exports.IC_ERROR = exports.IC_SUCCESS = exports.IC_CHEVRON_RIGHT = exports.IC_CHEVRON_LEFT = exports.IC_TRASH = exports.IC_ARROW_BLACK_DROP = exports.IC_SWAP = exports.IC_HELP = exports.IC_PASSCODE = exports.IC_FACE_ID = exports.IC_COPY = exports.IC_TIMELINE_DOT = exports.IC_CLOSE = exports.IC_SEARCH = exports.IC_DOCUMENTS = exports.IC_SCAN = exports.IC_TUTORIAL = exports.IC_HISTORY = exports.ARROW_DROP_DOWN = exports.ARROW_DROP_UP = void 0;
|
|
3
|
+
exports.IC_DEPOSIT = exports.IC_WITHDRAW = exports.IC_INFORMATION = exports.IC_EXPANDER_ARROW = exports.IC_NO_SEE = exports.IC_TOOLTIP = exports.IC_BACK = exports.IC_UNCHECK = exports.IC_CHECK = exports.IC_ARROW_DROP_DOWN = exports.IC_ARROW_DROP_UP = exports.IC_RECEIVE_EXTERNAL = exports.IC_RECEIVE_INTERNAL = exports.IC_ERROR = exports.IC_SUCCESS = exports.IC_CHEVRON_RIGHT = exports.IC_CHEVRON_LEFT = exports.IC_TRASH = exports.IC_ARROW_BLACK_DROP = exports.IC_SWAP = exports.IC_HELP = exports.IC_PASSCODE = exports.IC_FACE_ID = exports.IC_COPY = exports.IC_TIMELINE_DOT = exports.IC_CLOSE = exports.IC_SEARCH = exports.IC_DOCUMENTS = exports.IC_SCAN = exports.IC_TUTORIAL = exports.IC_HISTORY = exports.ARROW_DROP_DOWN = exports.ARROW_DROP_UP = void 0;
|
|
4
4
|
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
5
|
exports.ARROW_DROP_UP = ((0, jsx_runtime_1.jsx)("svg", { width: "8", height: "5", viewBox: "0 0 8 5", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: (0, jsx_runtime_1.jsx)("path", { d: "M0 4.5L4 0.5L8 4.5H0Z", fill: "#000" }) }));
|
|
6
6
|
exports.ARROW_DROP_DOWN = ((0, jsx_runtime_1.jsx)("svg", { width: "8", height: "5", viewBox: "0 0 8 5", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: (0, jsx_runtime_1.jsx)("path", { d: "M8 0.5L4 4.5L0 0.5L8 0.5Z", fill: "#000" }) }));
|
|
@@ -8,7 +8,7 @@ exports.IC_HISTORY = ((0, jsx_runtime_1.jsx)("svg", { width: "20", height: "20",
|
|
|
8
8
|
exports.IC_TUTORIAL = ((0, jsx_runtime_1.jsx)("svg", { width: "20", height: "20", viewBox: "0 0 20 20", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: (0, jsx_runtime_1.jsx)("path", { d: "M10 5.03501C8.62634 3.80281 6.84533 3.12246 5 3.12501C4.12333 3.12501 3.28167 3.27501 2.5 3.55167V15.4267C3.30302 15.1434 4.14847 14.9991 5 15C6.92083 15 8.67333 15.7225 10 16.91M10 5.03501C11.3736 3.80274 13.1547 3.12238 15 3.12501C15.8767 3.12501 16.7183 3.27501 17.5 3.55167V15.4267C16.697 15.1434 15.8515 14.9991 15 15C13.1547 14.9975 11.3737 15.6778 10 16.91M10 5.03501V16.91", stroke: "#121212", strokeWidth: "1.25", strokeLinecap: "round", strokeLinejoin: "round" }) }));
|
|
9
9
|
exports.IC_SCAN = ((0, jsx_runtime_1.jsx)("svg", { width: "18", height: "18", viewBox: "0 0 18 18", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: (0, jsx_runtime_1.jsx)("path", { d: "M5.625 2.8125H4.5C4.05245 2.8125 3.62323 2.99029 3.30676 3.30676C2.99029 3.62323 2.8125 4.05245 2.8125 4.5V5.625M12.375 2.8125H13.5C13.9476 2.8125 14.3768 2.99029 14.6932 3.30676C15.0097 3.62323 15.1875 4.05245 15.1875 4.5V5.625M15.1875 12.375V13.5C15.1875 13.9476 15.0097 14.3768 14.6932 14.6932C14.3768 15.0097 13.9476 15.1875 13.5 15.1875H12.375M5.625 15.1875H4.5C4.05245 15.1875 3.62323 15.0097 3.30676 14.6932C2.99029 14.3768 2.8125 13.9476 2.8125 13.5V12.375M11.25 9C11.25 9.59674 11.0129 10.169 10.591 10.591C10.169 11.0129 9.59674 11.25 9 11.25C8.40326 11.25 7.83097 11.0129 7.40901 10.591C6.98705 10.169 6.75 9.59674 6.75 9C6.75 8.40326 6.98705 7.83097 7.40901 7.40901C7.83097 6.98705 8.40326 6.75 9 6.75C9.59674 6.75 10.169 6.98705 10.591 7.40901C11.0129 7.83097 11.25 8.40326 11.25 9Z", stroke: "#1E4841", strokeWidth: "1.25", strokeLinecap: "round", strokeLinejoin: "round" }) }));
|
|
10
10
|
exports.IC_DOCUMENTS = ((0, jsx_runtime_1.jsx)("svg", { width: "18", height: "18", viewBox: "0 0 18 18", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: (0, jsx_runtime_1.jsx)("path", { d: "M14.625 10.6875V8.71875C14.625 8.04742 14.3583 7.40359 13.8836 6.92889C13.4089 6.45418 12.7651 6.1875 12.0938 6.1875H10.9688C10.745 6.1875 10.5304 6.09861 10.3721 5.94037C10.2139 5.78214 10.125 5.56753 10.125 5.34375V4.21875C10.125 3.54742 9.85832 2.90359 9.38361 2.42889C8.90891 1.95418 8.26508 1.6875 7.59375 1.6875H6.1875M6.1875 11.25H11.8125M6.1875 13.5H9M7.875 1.6875H4.21875C3.753 1.6875 3.375 2.0655 3.375 2.53125V15.4688C3.375 15.9345 3.753 16.3125 4.21875 16.3125H13.7812C14.247 16.3125 14.625 15.9345 14.625 15.4688V8.4375C14.625 6.64729 13.9138 4.9304 12.648 3.66453C11.3821 2.39866 9.66521 1.6875 7.875 1.6875Z", stroke: "#1E4841", strokeWidth: "1.25", strokeLinecap: "round", strokeLinejoin: "round" }) }));
|
|
11
|
-
exports.IC_SEARCH = ((0, jsx_runtime_1.jsx)("svg", { width: "20", height: "20", viewBox: "0 0 20 20", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: (0, jsx_runtime_1.jsx)("path", {
|
|
11
|
+
exports.IC_SEARCH = ((0, jsx_runtime_1.jsx)("svg", { width: "20", height: "20", viewBox: "0 0 20 20", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: (0, jsx_runtime_1.jsx)("path", { "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M8.75 3.12409C8.01131 3.12409 7.27986 3.26959 6.59741 3.55227C5.91495 3.83495 5.29485 4.24929 4.77252 4.77162C4.25019 5.29395 3.83586 5.91404 3.55318 6.5965C3.27049 7.27896 3.125 8.01041 3.125 8.74909C3.125 9.48778 3.27049 10.2192 3.55318 10.9017C3.83586 11.5841 4.25019 12.2042 4.77252 12.7266C5.29485 13.2489 5.91495 13.6632 6.59741 13.9459C7.27986 14.2286 8.01131 14.3741 8.75 14.3741C10.2418 14.3741 11.6726 13.7815 12.7275 12.7266C13.7824 11.6717 14.375 10.2409 14.375 8.74909C14.375 7.25725 13.7824 5.82651 12.7275 4.77162C11.6726 3.71673 10.2418 3.12409 8.75 3.12409ZM1.875 8.74909C1.87515 7.64501 2.1412 6.5572 2.65066 5.57768C3.16012 4.59816 3.89799 3.75574 4.80186 3.12169C5.70574 2.48765 6.74902 2.08061 7.84347 1.93503C8.93791 1.78945 10.0513 1.90959 11.0895 2.28531C12.1277 2.66102 13.0601 3.28125 13.808 4.09353C14.5558 4.90581 15.0969 5.88624 15.3857 6.95189C15.6745 8.01755 15.7023 9.13708 15.4669 10.2158C15.2315 11.2945 14.7398 12.3006 14.0333 13.1491L17.9417 17.0574C18.0031 17.1146 18.0523 17.1836 18.0865 17.2603C18.1206 17.337 18.139 17.4197 18.1405 17.5037C18.142 17.5876 18.1265 17.6709 18.0951 17.7488C18.0637 17.8266 18.0169 17.8973 17.9575 17.9566C17.8982 18.016 17.8275 18.0628 17.7497 18.0942C17.6718 18.1256 17.5885 18.1411 17.5046 18.1396C17.4206 18.1381 17.3379 18.1197 17.2612 18.0856C17.1846 18.0514 17.1156 18.0022 17.0583 17.9408L13.15 14.0324C12.146 14.8687 10.9245 15.4015 9.6286 15.5685C8.33268 15.7355 7.01602 15.5297 5.83284 14.9753C4.64967 14.4208 3.64899 13.5407 2.94803 12.438C2.24707 11.3353 1.87486 10.0557 1.875 8.74909Z", fill: "#121212" }) }));
|
|
12
12
|
exports.IC_CLOSE = ((0, jsx_runtime_1.jsx)("svg", { width: "14", height: "14", viewBox: "0 0 14 14", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: (0, jsx_runtime_1.jsx)("path", { d: "M1 13L13 1M1 1L13 13", stroke: "#121212", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round" }) }));
|
|
13
13
|
exports.IC_TIMELINE_DOT = ((0, jsx_runtime_1.jsxs)("svg", { width: "14", height: "14", viewBox: "0 0 14 14", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [(0, jsx_runtime_1.jsx)("rect", { width: "14", height: "14", rx: "7", fill: "#C5E99F" }), (0, jsx_runtime_1.jsx)("circle", { cx: "7", cy: "7", r: "3", fill: "#121212" })] }));
|
|
14
14
|
exports.IC_COPY = ((0, jsx_runtime_1.jsxs)("svg", { width: "20", height: "20", viewBox: "0 0 20 20", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [(0, jsx_runtime_1.jsx)("mask", { id: "mask0_860_5627", style: { maskType: "alpha" }, maskUnits: "userSpaceOnUse", x: "0", y: "0", width: "20", height: "20", children: (0, jsx_runtime_1.jsx)("rect", { width: "20", height: "20", fill: "#D9D9D9" }) }), (0, jsx_runtime_1.jsx)("g", { mask: "url(#mask0_860_5627)", children: (0, jsx_runtime_1.jsx)("path", { d: "M7.54804 14.5826C7.17293 14.5826 6.85587 14.4531 6.59685 14.1941C6.33783 13.9351 6.20831 13.618 6.20831 13.2429V3.75577C6.20831 3.38066 6.33783 3.06359 6.59685 2.80456C6.85587 2.54553 7.17293 2.41602 7.54804 2.41602H15.0352C15.4103 2.41602 15.7273 2.54553 15.9864 2.80456C16.2454 3.06359 16.3749 3.38066 16.3749 3.75577V13.2429C16.3749 13.618 16.2454 13.9351 15.9864 14.1941C15.7273 14.4531 15.4103 14.5826 15.0352 14.5826H7.54804ZM7.54804 13.4993H15.0352C15.0993 13.4993 15.158 13.4726 15.2115 13.4192C15.2649 13.3658 15.2916 13.307 15.2916 13.2429V3.75577C15.2916 3.69166 15.2649 3.63288 15.2115 3.57945C15.158 3.52604 15.0993 3.49933 15.0352 3.49933H7.54804C7.48393 3.49933 7.42517 3.52604 7.37175 3.57945C7.31832 3.63288 7.2916 3.69166 7.2916 3.75577V13.2429C7.2916 13.307 7.31832 13.3658 7.37175 13.4192C7.42517 13.4726 7.48393 13.4993 7.54804 13.4993ZM4.96473 17.1659C4.58963 17.1659 4.27257 17.0364 4.01354 16.7774C3.75451 16.5184 3.625 16.2013 3.625 15.8262V5.25577H4.70831V15.8262C4.70831 15.8903 4.73502 15.9491 4.78844 16.0025C4.84187 16.0559 4.90063 16.0826 4.96473 16.0826H13.5352V17.1659H4.96473Z", fill: "#1E4841" }) })] }));
|
|
@@ -30,3 +30,8 @@ exports.IC_CHECK = ((0, jsx_runtime_1.jsx)("svg", { width: "20", height: "20", v
|
|
|
30
30
|
exports.IC_UNCHECK = ((0, jsx_runtime_1.jsx)("svg", { width: "20", height: "20", viewBox: "0 0 20 20", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: (0, jsx_runtime_1.jsx)("path", { d: "M19 10C19 11.1819 18.7672 12.3522 18.3149 13.4442C17.8626 14.5361 17.1997 15.5282 16.364 16.364C15.5282 17.1997 14.5361 17.8626 13.4442 18.3149C12.3522 18.7672 11.1819 19 10 19C8.8181 19 7.64778 18.7672 6.55585 18.3149C5.46392 17.8626 4.47177 17.1997 3.63604 16.364C2.80031 15.5282 2.13738 14.5361 1.68508 13.4442C1.23279 12.3522 1 11.1819 1 10C1 7.61305 1.94821 5.32387 3.63604 3.63604C5.32387 1.94821 7.61305 1 10 1C12.3869 1 14.6761 1.94821 16.364 3.63604C18.0518 5.32387 19 7.61305 19 10Z", stroke: "#E5E6E6", strokeWidth: "1.25", strokeLinecap: "round", strokeLinejoin: "round" }) }));
|
|
31
31
|
exports.IC_BACK = ((0, jsx_runtime_1.jsx)("svg", { width: "8", height: "12", viewBox: "0 0 8 12", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: (0, jsx_runtime_1.jsx)("path", { d: "M6.00002 11.6534L0.346191 5.99953L6.00002 0.345703L7.05384 1.39953L2.45384 5.99953L7.05384 10.5995L6.00002 11.6534Z", fill: "#121212" }) }));
|
|
32
32
|
exports.IC_TOOLTIP = ((0, jsx_runtime_1.jsx)("svg", { width: "14", height: "14", viewBox: "0 0 14 14", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: (0, jsx_runtime_1.jsx)("path", { d: "M7 5V7.5M13 7C13 7.78793 12.8448 8.56815 12.5433 9.2961C12.2417 10.0241 11.7998 10.6855 11.2426 11.2426C10.6855 11.7998 10.0241 12.2417 9.2961 12.5433C8.56815 12.8448 7.78793 13 7 13C6.21207 13 5.43185 12.8448 4.7039 12.5433C3.97595 12.2417 3.31451 11.7998 2.75736 11.2426C2.20021 10.6855 1.75825 10.0241 1.45672 9.2961C1.15519 8.56815 1 7.78793 1 7C1 5.4087 1.63214 3.88258 2.75736 2.75736C3.88258 1.63214 5.4087 1 7 1C8.5913 1 10.1174 1.63214 11.2426 2.75736C12.3679 3.88258 13 5.4087 13 7ZM7 9.5H7.00533V9.50533H7V9.5Z", stroke: "#1E4841", strokeLinecap: "round", strokeLinejoin: "round" }) }));
|
|
33
|
+
exports.IC_NO_SEE = ((0, jsx_runtime_1.jsx)("svg", { width: "15", height: "14", viewBox: "0 0 15 14", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: (0, jsx_runtime_1.jsx)("path", { d: "M2.32125 4.482C1.7171 5.21812 1.26723 6.07547 1 7C1.83434 9.892 4.42904 12 7.50032 12C8.14157 12 8.76151 11.908 9.34916 11.7367M3.77294 3.152C4.87891 2.39857 6.17526 1.99792 7.50032 2C10.5716 2 13.1657 4.108 14 6.99867C13.5428 8.57823 12.5612 9.94107 11.2277 10.848M3.77294 3.152L1.68839 1M3.77294 3.152L6.13 5.58533M11.2277 10.848L13.3123 13M11.2277 10.848L8.87065 8.41467C9.05056 8.22893 9.19327 8.00844 9.29064 7.76577C9.38801 7.52309 9.43812 7.263 9.43812 7.00033C9.43812 6.73767 9.38801 6.47757 9.29064 6.2349C9.19327 5.99223 9.05056 5.77173 8.87065 5.586C8.69074 5.40027 8.47715 5.25294 8.24208 5.15242C8.00702 5.0519 7.75508 5.00016 7.50065 5.00016C7.24621 5.00016 6.99427 5.0519 6.75921 5.15242C6.52414 5.25294 6.31056 5.40027 6.13064 5.586M8.87 8.414L6.13129 5.58667", stroke: "#6B7271", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round" }) }));
|
|
34
|
+
exports.IC_EXPANDER_ARROW = ((0, jsx_runtime_1.jsxs)("svg", { width: "16", height: "16", viewBox: "0 0 16 16", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [(0, jsx_runtime_1.jsx)("rect", { x: "0.5", y: "0.5", width: "15", height: "15", rx: "7.5", fill: "#ECF4E9" }), (0, jsx_runtime_1.jsx)("rect", { x: "0.5", y: "0.5", width: "15", height: "15", rx: "7.5", stroke: "#1E4841" }), (0, jsx_runtime_1.jsx)("path", { d: "M4 4V6.18182M4 4H6.18182M4 4L6.54545 6.54545M4 12V9.81818M4 12H6.18182M4 12L6.54545 9.45455M12 4H9.81818M12 4V6.18182M12 4L9.45455 6.54545M12 12H9.81818M12 12V9.81818M12 12L9.45455 9.45455", stroke: "#1E4841", strokeLinecap: "round", strokeLinejoin: "round" })] }));
|
|
35
|
+
exports.IC_INFORMATION = ((0, jsx_runtime_1.jsx)("svg", { width: "14", height: "14", viewBox: "0 0 14 14", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: (0, jsx_runtime_1.jsx)("path", { d: "M7 5V7.5M13 7C13 7.78793 12.8448 8.56815 12.5433 9.2961C12.2417 10.0241 11.7998 10.6855 11.2426 11.2426C10.6855 11.7998 10.0241 12.2417 9.2961 12.5433C8.56815 12.8448 7.78793 13 7 13C6.21207 13 5.43185 12.8448 4.7039 12.5433C3.97595 12.2417 3.31451 11.7998 2.75736 11.2426C2.20021 10.6855 1.75825 10.0241 1.45672 9.2961C1.15519 8.56815 1 7.78793 1 7C1 5.4087 1.63214 3.88258 2.75736 2.75736C3.88258 1.63214 5.4087 1 7 1C8.5913 1 10.1174 1.63214 11.2426 2.75736C12.3679 3.88258 13 5.4087 13 7ZM7 9.5H7.00533V9.50533H7V9.5Z", stroke: "#1E4841", strokeLinecap: "round", strokeLinejoin: "round" }) }));
|
|
36
|
+
exports.IC_WITHDRAW = ((0, jsx_runtime_1.jsxs)("svg", { width: "25", height: "24", viewBox: "0 0 25 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [(0, jsx_runtime_1.jsx)("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M12.625 3.75C8.06865 3.75 4.375 7.44365 4.375 12C4.375 16.5563 8.06865 20.25 12.625 20.25C17.1813 20.25 20.875 16.5563 20.875 12V10.5006C20.875 10.0863 21.2108 9.75 21.625 9.75C22.0392 9.75 22.375 10.0858 22.375 10.5V12C22.375 17.3848 18.0098 21.75 12.625 21.75C7.24022 21.75 2.875 17.3848 2.875 12C2.875 6.61522 7.24022 2.25 12.625 2.25L14.1243 2.25L14.125 3.75L12.625 3.75ZM14.875 3C14.875 3.41422 14.5392 3.75 14.125 3.75L14.1243 2.25C14.5385 2.25 14.875 2.58579 14.875 3Z", fill: "#1E4841" }), (0, jsx_runtime_1.jsx)("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M17.875 3.75C17.4608 3.75 17.125 3.41421 17.125 3C17.125 2.58579 17.4608 2.25 17.875 2.25H21.625C22.0392 2.25 22.375 2.58579 22.375 3V6.75C22.375 7.16421 22.0392 7.5 21.625 7.5C21.2108 7.5 20.875 7.16421 20.875 6.75V4.81066L18.4053 7.28033C18.1124 7.57322 17.6376 7.57322 17.3447 7.28033C17.0518 6.98744 17.0518 6.51256 17.3447 6.21967L19.8143 3.75H17.875Z", fill: "#1E4841" }), (0, jsx_runtime_1.jsx)("path", { d: "M12.625 6C13.0392 6 13.375 6.33579 13.375 6.75V7.5H14.875C15.2892 7.5 15.625 7.83579 15.625 8.25C15.625 8.66421 15.2892 9 14.875 9H11.5C11.2016 9 10.9155 9.11853 10.7045 9.3295C10.4935 9.54048 10.375 9.82663 10.375 10.125C10.375 10.4234 10.4935 10.7095 10.7045 10.9205C10.9155 11.1315 11.2016 11.25 11.5 11.25H13.75C14.4462 11.25 15.1139 11.5266 15.6062 12.0188C16.0984 12.5111 16.375 13.1788 16.375 13.875C16.375 14.5712 16.0984 15.2389 15.6062 15.7312C15.1139 16.2234 14.4462 16.5 13.75 16.5H13.375V17.25C13.375 17.6642 13.0392 18 12.625 18C12.2108 18 11.875 17.6642 11.875 17.25V16.5H10.375C9.96079 16.5 9.625 16.1642 9.625 15.75C9.625 15.3358 9.96079 15 10.375 15H13.75C14.0484 15 14.3345 14.8815 14.5455 14.6705C14.7565 14.4595 14.875 14.1734 14.875 13.875C14.875 13.5766 14.7565 13.2905 14.5455 13.0795C14.3345 12.8685 14.0484 12.75 13.75 12.75H11.5C10.8038 12.75 10.1361 12.4734 9.64384 11.9812C9.15156 11.4889 8.875 10.8212 8.875 10.125C8.875 9.42881 9.15156 8.76113 9.64384 8.26884C10.1361 7.77656 10.8038 7.5 11.5 7.5H11.875V6.75C11.875 6.33579 12.2108 6 12.625 6Z", fill: "#1E4841" })] }));
|
|
37
|
+
exports.IC_DEPOSIT = ((0, jsx_runtime_1.jsxs)("svg", { width: "25", height: "24", viewBox: "0 0 25 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [(0, jsx_runtime_1.jsx)("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M8.375 12C8.375 11.5858 8.71079 11.25 9.125 11.25H16.625C17.0392 11.25 17.375 11.5858 17.375 12C17.375 12.4142 17.0392 12.75 16.625 12.75H9.125C8.71079 12.75 8.375 12.4142 8.375 12Z", fill: "#1E4841" }), (0, jsx_runtime_1.jsx)("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M12.875 7.5C13.2892 7.5 13.625 7.83579 13.625 8.25V15.75C13.625 16.1642 13.2892 16.5 12.875 16.5C12.4608 16.5 12.125 16.1642 12.125 15.75V8.25C12.125 7.83579 12.4608 7.5 12.875 7.5Z", fill: "#1E4841" }), (0, jsx_runtime_1.jsx)("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M3.125 7.5C3.125 4.60051 5.47551 2.25 8.375 2.25H17.375C20.2745 2.25 22.625 4.60051 22.625 7.5V16.5C22.625 19.3995 20.2745 21.75 17.375 21.75H8.375C5.47551 21.75 3.125 19.3995 3.125 16.5V7.5ZM8.375 3.75C6.30393 3.75 4.625 5.42893 4.625 7.5V16.5C4.625 18.5711 6.30393 20.25 8.375 20.25H17.375C19.4461 20.25 21.125 18.5711 21.125 16.5V7.5C21.125 5.42893 19.4461 3.75 17.375 3.75H8.375Z", fill: "#1E4841" })] }));
|
|
@@ -5,6 +5,7 @@ export type TransferConfirmationData = InstructionBody & {
|
|
|
5
5
|
amount: number;
|
|
6
6
|
currency_slug: string;
|
|
7
7
|
to_address: string;
|
|
8
|
+
isEnoughBalance: boolean;
|
|
8
9
|
};
|
|
9
10
|
interface TransferConfirmationProps extends Omit<ConfirmLayoutProps, "action"> {
|
|
10
11
|
transferData: TransferConfirmationData;
|
|
@@ -125,6 +125,7 @@ exports.TransferConfirmation = (0, react_1.forwardRef)(function (props, ref) {
|
|
|
125
125
|
var toAddress = transferData.to_address;
|
|
126
126
|
var amount = transferData.amount;
|
|
127
127
|
var currencySlug = transferData.currency_slug;
|
|
128
|
+
var isEnoughBalance = transferData.isEnoughBalance;
|
|
128
129
|
var token = (0, react_1.useMemo)(function () {
|
|
129
130
|
return sendInternalTokens === null || sendInternalTokens === void 0 ? void 0 : sendInternalTokens.find(function (token) { return token.slug === currencySlug; });
|
|
130
131
|
}, [currencySlug, sendInternalTokens]);
|
|
@@ -143,7 +144,7 @@ exports.TransferConfirmation = (0, react_1.forwardRef)(function (props, ref) {
|
|
|
143
144
|
setErrorAmount(token.min_value);
|
|
144
145
|
return false;
|
|
145
146
|
}
|
|
146
|
-
if (
|
|
147
|
+
if (!isEnoughBalance) {
|
|
147
148
|
setError(TransferConfirmationError.NOT_ENOUGH_BALANCE);
|
|
148
149
|
setErrorAmount(token.balance);
|
|
149
150
|
return false;
|
|
@@ -164,23 +165,29 @@ exports.TransferConfirmation = (0, react_1.forwardRef)(function (props, ref) {
|
|
|
164
165
|
case 1:
|
|
165
166
|
message = (_a.sent()).message;
|
|
166
167
|
setIsValidatingAddress(false);
|
|
167
|
-
if (message
|
|
168
|
-
|
|
169
|
-
|
|
168
|
+
if (message === type_2.ValidateWalletAddressResultMessage.INTERNAL_WALLET ||
|
|
169
|
+
message === type_2.ValidateWalletAddressResultMessage.EXTERNAL_WALLET_BUT_ALSO_INTERNAL_WALLET) {
|
|
170
|
+
setErrorAddress(undefined);
|
|
171
|
+
return [2 /*return*/, true];
|
|
170
172
|
}
|
|
171
|
-
setErrorAddress(
|
|
172
|
-
return [2 /*return*/,
|
|
173
|
+
setErrorAddress("ⓘ This address is not a valid internal wallet address");
|
|
174
|
+
return [2 /*return*/, false];
|
|
173
175
|
}
|
|
174
176
|
});
|
|
175
177
|
}); }, [toAddress]);
|
|
176
178
|
var validateAll = (0, react_1.useCallback)(function () { return __awaiter(void 0, void 0, void 0, function () {
|
|
177
179
|
var isAmountValid;
|
|
178
180
|
return __generator(this, function (_a) {
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
181
|
+
switch (_a.label) {
|
|
182
|
+
case 0:
|
|
183
|
+
isAmountValid = validateAmount();
|
|
184
|
+
if (!isAmountValid)
|
|
185
|
+
return [2 /*return*/, false];
|
|
186
|
+
return [4 /*yield*/, validateAddress()];
|
|
187
|
+
case 1:
|
|
188
|
+
_a.sent();
|
|
189
|
+
return [2 /*return*/];
|
|
190
|
+
}
|
|
184
191
|
});
|
|
185
192
|
}); }, [validateAmount, validateAddress]);
|
|
186
193
|
var handleSendInternalToken = function (passcode) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -237,11 +244,11 @@ exports.TransferConfirmation = (0, react_1.forwardRef)(function (props, ref) {
|
|
|
237
244
|
updateSendInternalToken();
|
|
238
245
|
}
|
|
239
246
|
}, [sendInternalTokens, updateSendInternalToken, isInitPasscode]);
|
|
240
|
-
return ((0, jsx_runtime_1.jsx)(RequireConnect_1.default, { children: (0, jsx_runtime_1.jsxs)(ConfirmLayout_1.default, { ref: confirmLayoutDrawerRef, action: props.titleHeader, trigger: props.children, onOpen: validateAll, confirmAction: (0, jsx_runtime_1.jsx)(ConfirmByPasscode_1.default, { action: type_1.TransactionSlug.TransferInternal, onConfirmSuccess: handleSendInternalToken, triggerStatus: !!error || isValidatingAddress || errorAddress
|
|
247
|
+
return ((0, jsx_runtime_1.jsx)(RequireConnect_1.default, { children: (0, jsx_runtime_1.jsxs)(ConfirmLayout_1.default, { ref: confirmLayoutDrawerRef, action: props.titleHeader, trigger: props.children, onOpen: validateAll, confirmAction: (0, jsx_runtime_1.jsx)(ConfirmByPasscode_1.default, { action: type_1.TransactionSlug.TransferInternal, onConfirmSuccess: handleSendInternalToken, triggerStatus: !!error || isValidatingAddress || errorAddress || !isEnoughBalance
|
|
241
248
|
? DrawerComponent_1.DRAWER_TRIGGER_STATUS.DISABLED
|
|
242
|
-
: DrawerComponent_1.DRAWER_TRIGGER_STATUS.ENABLED, children: (0, jsx_runtime_1.jsx)(Button_1.default.Primary, { status: !!error || isValidatingAddress || errorAddress
|
|
249
|
+
: DrawerComponent_1.DRAWER_TRIGGER_STATUS.ENABLED, children: (0, jsx_runtime_1.jsx)(Button_1.default.Primary, { status: !!error || isValidatingAddress || errorAddress || !isEnoughBalance
|
|
243
250
|
? Button_1.BUTTON_STATUS.DISABLED
|
|
244
251
|
: buttonStatus, sx: { width: "100%" }, children: "Confirm" }) }), children: [transferContent, !!error && ((0, jsx_runtime_1.jsxs)(Text_1.default, { sx: __assign(__assign({}, theme.mixins.validationError), { mt: (_a = theme.mixins.gaps) === null || _a === void 0 ? void 0 : _a.g6 }), children: [error, " ", !!errorAmount && (0, jsx_runtime_1.jsx)(Formatter_1.default, { value: errorAmount, unit: " ".concat(token === null || token === void 0 ? void 0 : token.name) })] })), !!errorAddress && ((0, jsx_runtime_1.jsx)(Text_1.default, { sx: __assign(__assign({}, theme.mixins.validationError), { mt: (_b = theme.mixins.gaps) === null || _b === void 0 ? void 0 : _b.g6 }), children: errorAddress }))] }) }));
|
|
245
252
|
});
|
|
246
|
-
exports.TransferConfirmation.displayName = "
|
|
253
|
+
exports.TransferConfirmation.displayName = "TransferConfirmation";
|
|
247
254
|
exports.default = exports.TransferConfirmation;
|
|
@@ -21,3 +21,13 @@ export * from "./providers/TekWalletProvider";
|
|
|
21
21
|
export * from "./components/ui/UpdateLockToken";
|
|
22
22
|
export * from "./components/ui/SendExternalTokenWithdrawn";
|
|
23
23
|
export * from "./components/ui/TransferConfirmation";
|
|
24
|
+
export * from "./components/ui/IncomeWallet";
|
|
25
|
+
export * from "./components/ui/IncomeWallet/components/AnalyticGroup";
|
|
26
|
+
export * from "./components/ui/IncomeWallet/components/BalanceChart";
|
|
27
|
+
export * from "./components/ui/IncomeWallet/components/HistoryItem";
|
|
28
|
+
export * from "./components/ui/IncomeWallet/components/FunctionItem";
|
|
29
|
+
export * from "./components/ui/IncomeWallet/components/WealthDeposit";
|
|
30
|
+
export * from "./components/ui/IncomeWallet/components/WealthWithdraw";
|
|
31
|
+
export * from "./components/ui/IncomeWallet/components/deposit";
|
|
32
|
+
export * from "./components/ui/IncomeWallet/components/history";
|
|
33
|
+
export * from "./components/ui/AmountGroupAndChart";
|
|
@@ -36,3 +36,13 @@ __exportStar(require("./providers/TekWalletProvider"), exports);
|
|
|
36
36
|
__exportStar(require("./components/ui/UpdateLockToken"), exports);
|
|
37
37
|
__exportStar(require("./components/ui/SendExternalTokenWithdrawn"), exports);
|
|
38
38
|
__exportStar(require("./components/ui/TransferConfirmation"), exports);
|
|
39
|
+
__exportStar(require("./components/ui/IncomeWallet"), exports);
|
|
40
|
+
__exportStar(require("./components/ui/IncomeWallet/components/AnalyticGroup"), exports);
|
|
41
|
+
__exportStar(require("./components/ui/IncomeWallet/components/BalanceChart"), exports);
|
|
42
|
+
__exportStar(require("./components/ui/IncomeWallet/components/HistoryItem"), exports);
|
|
43
|
+
__exportStar(require("./components/ui/IncomeWallet/components/FunctionItem"), exports);
|
|
44
|
+
__exportStar(require("./components/ui/IncomeWallet/components/WealthDeposit"), exports);
|
|
45
|
+
__exportStar(require("./components/ui/IncomeWallet/components/WealthWithdraw"), exports);
|
|
46
|
+
__exportStar(require("./components/ui/IncomeWallet/components/deposit"), exports);
|
|
47
|
+
__exportStar(require("./components/ui/IncomeWallet/components/history"), exports);
|
|
48
|
+
__exportStar(require("./components/ui/AmountGroupAndChart"), exports);
|
|
@@ -295,6 +295,11 @@ var theme = {
|
|
|
295
295
|
fontWeight: typography.fontWeight500,
|
|
296
296
|
fontSize: typography.fontSize14,
|
|
297
297
|
},
|
|
298
|
+
inputLabel: {
|
|
299
|
+
color: "text.black80",
|
|
300
|
+
fontWeight: typography.fontWeight700,
|
|
301
|
+
fontSize: typography.fontSize14,
|
|
302
|
+
},
|
|
298
303
|
center: {
|
|
299
304
|
position: "absolute",
|
|
300
305
|
left: "50%",
|
|
@@ -260,49 +260,3 @@ export interface ReceiveInternalCurrency {
|
|
|
260
260
|
decimal: number;
|
|
261
261
|
link: string;
|
|
262
262
|
}
|
|
263
|
-
export interface FiatDepositData {
|
|
264
|
-
id: string;
|
|
265
|
-
orderId: string;
|
|
266
|
-
amount: number;
|
|
267
|
-
message: string;
|
|
268
|
-
provider: string;
|
|
269
|
-
status: string;
|
|
270
|
-
method: string;
|
|
271
|
-
currency: string;
|
|
272
|
-
is_cancellable: boolean;
|
|
273
|
-
details: null;
|
|
274
|
-
buyer_email: string;
|
|
275
|
-
created_at: number;
|
|
276
|
-
mode: string;
|
|
277
|
-
metadata: Metadata;
|
|
278
|
-
qr_code: string;
|
|
279
|
-
_link: Link;
|
|
280
|
-
tran: string;
|
|
281
|
-
}
|
|
282
|
-
export interface Link {
|
|
283
|
-
payment_link: PaymentLink;
|
|
284
|
-
self: Self;
|
|
285
|
-
}
|
|
286
|
-
export interface PaymentLink {
|
|
287
|
-
href: string;
|
|
288
|
-
type: string;
|
|
289
|
-
}
|
|
290
|
-
export interface Self {
|
|
291
|
-
href: string;
|
|
292
|
-
}
|
|
293
|
-
export interface Metadata {
|
|
294
|
-
app: App;
|
|
295
|
-
bank_account: BankAccount;
|
|
296
|
-
}
|
|
297
|
-
export interface App {
|
|
298
|
-
app_id: string;
|
|
299
|
-
name: string;
|
|
300
|
-
status: string;
|
|
301
|
-
}
|
|
302
|
-
export interface BankAccount {
|
|
303
|
-
account_name: string;
|
|
304
|
-
account_number: string;
|
|
305
|
-
bank_code: string;
|
|
306
|
-
bank_name: string;
|
|
307
|
-
bank_branch: string;
|
|
308
|
-
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.safeCloseDrawer = safeCloseDrawer;
|
|
4
|
+
function safeCloseDrawer(ref) {
|
|
5
|
+
var _a, _b;
|
|
6
|
+
(_a = document.activeElement) === null || _a === void 0 ? void 0 : _a.blur();
|
|
7
|
+
(_b = ref === null || ref === void 0 ? void 0 : ref.current) === null || _b === void 0 ? void 0 : _b.close();
|
|
8
|
+
}
|
package/package.json
CHANGED
|
@@ -1,8 +0,0 @@
|
|
|
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;
|
|
@@ -1,149 +0,0 @@
|
|
|
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
|
-
});
|
|
@@ -1,8 +0,0 @@
|
|
|
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;
|
|
@@ -1,21 +0,0 @@
|
|
|
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
|
-
}
|
|
@@ -1,9 +0,0 @@
|
|
|
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;
|
|
@@ -1,125 +0,0 @@
|
|
|
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
|
-
}
|