tek-wallet 0.0.815 → 0.0.823

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (114) hide show
  1. package/dist/components/TekWallet/components/ui/AssetsBoard/index.d.ts +2 -0
  2. package/dist/components/TekWallet/components/ui/AssetsBoard/index.js +61 -0
  3. package/dist/components/TekWallet/components/ui/ChangePasscode/index.js +1 -1
  4. package/dist/components/TekWallet/components/ui/ConfirmByPasscode/index.js +3 -3
  5. package/dist/components/TekWallet/components/ui/ConfirmSendExternal/index.d.ts +2 -2
  6. package/dist/components/TekWallet/components/ui/ConfirmSendExternal/index.js +1 -1
  7. package/dist/components/TekWallet/components/ui/ConfirmSendNft/Result.d.ts +10 -0
  8. package/dist/components/TekWallet/components/ui/ConfirmSendNft/Result.js +87 -0
  9. package/dist/components/TekWallet/components/ui/ConfirmSendNft/index.d.ts +17 -0
  10. package/dist/components/TekWallet/components/ui/ConfirmSendNft/index.js +133 -0
  11. package/dist/components/TekWallet/components/ui/ConfirmSwapToken/index.d.ts +1 -1
  12. package/dist/components/TekWallet/components/ui/ConfirmSwapToken/index.js +1 -1
  13. package/dist/components/TekWallet/components/ui/DrawerComponent/index.d.ts +1 -1
  14. package/dist/components/TekWallet/components/ui/DrawerComponent/index.js +2 -1
  15. package/dist/components/TekWallet/components/ui/Input/ClearInput.d.ts +5 -0
  16. package/dist/components/TekWallet/components/ui/{WithdrawFunction/components/tutorial.js → Input/ClearInput.js} +5 -9
  17. package/dist/components/TekWallet/components/ui/Input/PasteInput.d.ts +5 -0
  18. package/dist/components/TekWallet/components/ui/{WithdrawFunction/components/transferHistory.js → Input/PasteInput.js} +5 -9
  19. package/dist/components/TekWallet/components/ui/Input/QrScan.d.ts +5 -0
  20. package/dist/components/TekWallet/components/ui/Input/QrScan.js +31 -0
  21. package/dist/components/TekWallet/components/ui/Input/index.d.ts +12 -10
  22. package/dist/components/TekWallet/components/ui/Input/index.js +120 -19
  23. package/dist/components/TekWallet/components/ui/Input/index_bk.d.ts +10 -0
  24. package/dist/components/TekWallet/components/ui/Input/index_bk.js +46 -0
  25. package/dist/components/TekWallet/components/ui/NftDetail/index.d.ts +6 -0
  26. package/dist/components/TekWallet/components/ui/NftDetail/index.js +47 -0
  27. package/dist/components/TekWallet/components/ui/NftItem/index.d.ts +8 -0
  28. package/dist/components/TekWallet/components/ui/NftItem/index.js +74 -0
  29. package/dist/components/TekWallet/components/ui/NftsBoard/index.d.ts +2 -0
  30. package/dist/components/TekWallet/components/ui/NftsBoard/index.js +118 -0
  31. package/dist/components/TekWallet/components/ui/QrCodeReader/index.d.ts +2 -1
  32. package/dist/components/TekWallet/components/ui/QrCodeReader/index.js +11 -4
  33. package/dist/components/TekWallet/components/ui/ReceiveDirectly/index.js +1 -1
  34. package/dist/components/TekWallet/components/ui/ReceiveFunction/index.js +2 -2
  35. package/dist/components/TekWallet/components/ui/ReceiveHistory/index.js +1 -1
  36. package/dist/components/TekWallet/components/ui/TokensBoard/index.js +21 -44
  37. package/dist/components/TekWallet/components/views/AssetView/index.js +2 -2
  38. package/dist/components/TekWallet/components/views/NftDetailView/LoadingView.d.ts +2 -0
  39. package/dist/components/TekWallet/components/views/NftDetailView/LoadingView.js +29 -0
  40. package/dist/components/TekWallet/components/views/NftDetailView/index.d.ts +8 -0
  41. package/dist/components/TekWallet/components/views/NftDetailView/index.js +20 -0
  42. package/dist/components/TekWallet/components/views/SendExternalView/components/Form.js +54 -77
  43. package/dist/components/TekWallet/components/views/SendExternalView/index.js +1 -1
  44. package/dist/components/TekWallet/components/views/SendInternalView/components/Form.js +24 -68
  45. package/dist/components/TekWallet/components/views/SendNftView/components/Form.d.ts +12 -0
  46. package/dist/components/TekWallet/components/views/SendNftView/components/Form.js +222 -0
  47. package/dist/components/TekWallet/components/views/SendNftView/index.d.ts +2 -0
  48. package/dist/components/TekWallet/components/views/SendNftView/index.js +32 -0
  49. package/dist/components/TekWallet/components/views/SwapView/index.js +1 -1
  50. package/dist/components/TekWallet/components/views/TekWalletView/index.d.ts +1 -0
  51. package/dist/components/TekWallet/components/views/TekWalletView/index.js +5 -0
  52. package/dist/components/TekWallet/hooks/data/useNfts/api.d.ts +5 -0
  53. package/dist/components/TekWallet/hooks/data/useNfts/api.js +83 -0
  54. package/dist/components/TekWallet/hooks/data/useNfts/index.d.ts +213 -0
  55. package/dist/components/TekWallet/hooks/data/useNfts/index.js +55 -0
  56. package/dist/components/TekWallet/hooks/data/useNfts/nftQueryKey.d.ts +5 -0
  57. package/dist/components/TekWallet/hooks/data/useNfts/nftQueryKey.js +18 -0
  58. package/dist/components/TekWallet/hooks/data/useNfts/service.type.d.ts +84 -0
  59. package/dist/components/TekWallet/hooks/data/useNfts/service.type.js +10 -0
  60. package/dist/components/TekWallet/hooks/data/useNfts/state.type.d.ts +4 -0
  61. package/dist/components/TekWallet/hooks/data/useNfts/state.type.js +2 -0
  62. package/dist/components/TekWallet/hooks/data/useNfts/useNft.d.ts +22 -0
  63. package/dist/components/TekWallet/hooks/data/useNfts/useNft.js +213 -0
  64. package/dist/components/TekWallet/hooks/data/useVouchers/service.type.d.ts +22 -0
  65. package/dist/components/TekWallet/hooks/data/useVouchers/service.type.js +14 -0
  66. package/dist/components/TekWallet/hooks/store/useQueryKeys/index.d.ts +3 -0
  67. package/dist/components/TekWallet/hooks/store/useQueryKeys/index.js +86 -0
  68. package/dist/components/TekWallet/hooks/store/useQueryKeys/type.d.ts +27 -0
  69. package/dist/components/TekWallet/hooks/store/useQueryKeys/type.js +29 -0
  70. package/dist/components/TekWallet/hooks/store/useQueryKeys/useQueryKeyDependence.d.ts +11 -0
  71. package/dist/components/TekWallet/hooks/store/useQueryKeys/useQueryKeyDependence.js +35 -0
  72. package/dist/components/TekWallet/hooks/store/useQueryKeys/useQueryKeyDependenceOnAccount.d.ts +6 -0
  73. package/dist/components/TekWallet/hooks/store/useQueryKeys/useQueryKeyDependenceOnAccount.js +25 -0
  74. package/dist/components/TekWallet/hooks/useCustomRouter.js +7 -3
  75. package/dist/components/TekWallet/hooks/utils/useEditPageQuery.d.ts +9 -0
  76. package/dist/components/TekWallet/hooks/utils/useEditPageQuery.js +86 -0
  77. package/dist/components/TekWallet/hooks/utils/useEditSinglePageQuery.d.ts +4 -0
  78. package/dist/components/TekWallet/hooks/utils/useEditSinglePageQuery.js +75 -0
  79. package/dist/components/TekWallet/index.d.ts +1 -0
  80. package/dist/components/TekWallet/index.js +1 -0
  81. package/dist/components/TekWallet/providers/TanstackReactQuery/index.d.ts +4 -0
  82. package/dist/components/TekWallet/providers/TanstackReactQuery/index.js +33 -0
  83. package/dist/components/TekWallet/providers/TanstackReactQuery/query.config.d.ts +2 -0
  84. package/dist/components/TekWallet/providers/TanstackReactQuery/query.config.js +18 -0
  85. package/dist/components/TekWallet/providers/TekWalletProvider/index.d.ts +1 -0
  86. package/dist/components/TekWallet/providers/TekWalletProvider/index.js +3 -1
  87. package/dist/components/TekWallet/services/axios/clients/userClientRequest.d.ts +2 -2
  88. package/dist/components/TekWallet/services/axios/clients/userClientRequest.js +3 -3
  89. package/dist/components/TekWallet/services/axios/type.d.ts +11 -0
  90. package/dist/components/TekWallet/theme/mui/components/index.d.ts +1 -15
  91. package/dist/components/TekWallet/theme/mui/components/overrides/Button.d.ts +1 -15
  92. package/dist/components/TekWallet/theme/mui/components/overrides/Button.js +3 -8
  93. package/dist/components/TekWallet/theme/mui/palette.d.ts +10 -4
  94. package/dist/components/TekWallet/theme/mui/palette.js +6 -1
  95. package/dist/components/TekWallet/utils/getContractColor.d.ts +1 -1
  96. package/package.json +5 -2
  97. package/dist/components/TekWallet/components/ui/WithdrawFunction/components/selectToken.d.ts +0 -13
  98. package/dist/components/TekWallet/components/ui/WithdrawFunction/components/selectToken.js +0 -48
  99. package/dist/components/TekWallet/components/ui/WithdrawFunction/components/sendForm.d.ts +0 -29
  100. package/dist/components/TekWallet/components/ui/WithdrawFunction/components/sendForm.js +0 -235
  101. package/dist/components/TekWallet/components/ui/WithdrawFunction/components/sortByBalance.d.ts +0 -7
  102. package/dist/components/TekWallet/components/ui/WithdrawFunction/components/sortByBalance.js +0 -45
  103. package/dist/components/TekWallet/components/ui/WithdrawFunction/components/sortByToken.d.ts +0 -7
  104. package/dist/components/TekWallet/components/ui/WithdrawFunction/components/sortByToken.js +0 -45
  105. package/dist/components/TekWallet/components/ui/WithdrawFunction/components/summary/infoSummary.d.ts +0 -14
  106. package/dist/components/TekWallet/components/ui/WithdrawFunction/components/summary/infoSummary.js +0 -111
  107. package/dist/components/TekWallet/components/ui/WithdrawFunction/components/transferHistory.d.ts +0 -5
  108. package/dist/components/TekWallet/components/ui/WithdrawFunction/components/tutorial.d.ts +0 -5
  109. package/dist/components/TekWallet/components/ui/WithdrawFunction/index.d.ts +0 -38
  110. package/dist/components/TekWallet/components/ui/WithdrawFunction/index.js +0 -570
  111. package/dist/components/TekWallet/components/views/SendInternalView/components/AmountForm.d.ts +0 -11
  112. package/dist/components/TekWallet/components/views/SendInternalView/components/AmountForm.js +0 -382
  113. package/dist/components/TekWallet/utils/sort.utils.d.ts +0 -3
  114. package/dist/components/TekWallet/utils/sort.utils.js +0 -24
@@ -18,57 +18,34 @@ exports.TokensBoard = void 0;
18
18
  var jsx_runtime_1 = require("react/jsx-runtime");
19
19
  var useWalletData_1 = __importDefault(require("../../../hooks/useWalletData"));
20
20
  var Text_1 = __importDefault(require("../Text"));
21
- var CheckBoxComponent_1 = __importDefault(require("../CheckBoxComponent"));
22
21
  var TokenItem_1 = __importDefault(require("../TokenItem"));
23
22
  var material_1 = require("@mui/material");
24
23
  var mui_1 = require("../../../theme/mui");
25
24
  var WaitingData_1 = __importDefault(require("../WaitingData"));
26
- var react_1 = require("react");
27
25
  var TokensBoard = function () {
28
26
  var tokens = (0, useWalletData_1.default)().tokens;
29
27
  var theme = (0, mui_1.useTheme)();
30
- var _a = (0, react_1.useState)(false), showSmallAssets = _a[0], setShowSmallAssets = _a[1];
31
- var toggleDisplay = function () {
32
- setShowSmallAssets(!showSmallAssets);
33
- };
34
- return ((0, jsx_runtime_1.jsxs)(material_1.Box, { sx: {
35
- // ...theme.styleMixins.paper,
36
- // backgroundColor: "background.white",
37
- // boxShadow: theme.shadows[1],
38
- }, children: [(0, jsx_runtime_1.jsxs)(material_1.Box, { sx: __assign(__assign({}, theme.styleMixins.row), { gap: theme.styleMixins.gaps.g12, my: theme.styleMixins.customMargin.m4 }), children: [(0, jsx_runtime_1.jsx)(Text_1.default, { sx: __assign(__assign({}, theme.styleMixins.headerTitle), { pb: theme.styleMixins.customPadding.p8 }), children: "Asset management" }), false && ((0, jsx_runtime_1.jsxs)(material_1.Box, { sx: __assign(__assign({}, theme.styleMixins.row), { gap: theme.styleMixins.gaps.g2, ml: "auto" }), children: [(0, jsx_runtime_1.jsx)(Text_1.default, { sx: {
39
- // ...theme.styleMixins.valueDescription
40
- fontSize: theme.typography.fontSize12,
41
- fontWeight: theme.typography.fontWeight600,
42
- color: theme.palette.text.secondary,
43
- }, children: "Hide small assets" }), (0, jsx_runtime_1.jsx)(CheckBoxComponent_1.default, { sx: {
44
- width: "1.5rem",
45
- height: "1.5rem",
46
- "& .MuiSvgIcon-root": {
47
- color: theme.palette.text.secondary,
48
- },
49
- }, onClick: toggleDisplay })] }))] }), (0, jsx_runtime_1.jsx)(material_1.Divider, { sx: {
50
- borderColor: theme.palette.divider,
51
- } }), (0, jsx_runtime_1.jsxs)(material_1.Box, { sx: __assign(__assign({}, theme.styleMixins.column), { gap: theme.styleMixins.gaps.g12, mt: theme.styleMixins.customMargin.m8, pt: theme.styleMixins.customPadding.p8, minHeight: !tokens ? "20rem" : "unset" }), children: [!!tokens && ((0, jsx_runtime_1.jsxs)(material_1.Box, { sx: {
52
- display: "grid",
53
- gridTemplateColumns: "1fr auto",
54
- gap: theme.styleMixins.gaps.g12,
55
- fontSize: theme.typography.fontSize11,
56
- color: "text.white",
57
- lineHeight: theme.typography.leading140,
58
- }, children: [(0, jsx_runtime_1.jsx)(Text_1.default, { sx: {
59
- textAlign: "left",
60
- fontSize: theme.typography.fontSize14,
61
- fontWeight: theme.typography.fontWeight600,
62
- color: theme.palette.text.secondary,
63
- }, children: "Token" }), (0, jsx_runtime_1.jsx)(Text_1.default, { sx: {
64
- textAlign: "left",
65
- fontSize: theme.typography.fontSize14,
66
- fontWeight: theme.typography.fontWeight600,
67
- color: theme.palette.text.secondary,
68
- }, children: "Balance" })] })), tokens === null || tokens === void 0 ? void 0 : tokens.map(function (item) {
69
- var stringifiedTokenData = JSON.stringify(__assign({}, item));
70
- return ((0, jsx_runtime_1.jsx)(TokenItem_1.default, { showSmallAssets: showSmallAssets, tokenData: stringifiedTokenData }, item.id));
71
- }), !tokens && (0, jsx_runtime_1.jsx)(WaitingData_1.default, { sx: { margin: "auto" } })] })] }));
28
+ return ((0, jsx_runtime_1.jsxs)(material_1.Box, { sx: __assign(__assign({}, theme.styleMixins.column), { gap: theme.styleMixins.gaps.g12, mt: theme.styleMixins.customMargin.m8, pt: theme.styleMixins.customPadding.p8, minHeight: !tokens ? "20rem" : "unset" }), children: [!!tokens && ((0, jsx_runtime_1.jsxs)(material_1.Box, { sx: {
29
+ display: "grid",
30
+ gridTemplateColumns: "1fr auto",
31
+ gap: theme.styleMixins.gaps.g12,
32
+ fontSize: theme.typography.fontSize11,
33
+ color: "text.white",
34
+ lineHeight: theme.typography.leading140,
35
+ }, children: [(0, jsx_runtime_1.jsx)(Text_1.default, { sx: {
36
+ textAlign: "left",
37
+ fontSize: theme.typography.fontSize14,
38
+ fontWeight: theme.typography.fontWeight600,
39
+ color: theme.palette.text.secondary,
40
+ }, children: "Name" }), (0, jsx_runtime_1.jsx)(Text_1.default, { sx: {
41
+ textAlign: "left",
42
+ fontSize: theme.typography.fontSize14,
43
+ fontWeight: theme.typography.fontWeight600,
44
+ color: theme.palette.text.secondary,
45
+ }, children: "Balance" })] })), tokens === null || tokens === void 0 ? void 0 : tokens.map(function (item) {
46
+ var stringifiedTokenData = JSON.stringify(__assign({}, item));
47
+ return (0, jsx_runtime_1.jsx)(TokenItem_1.default, { tokenData: stringifiedTokenData }, item.id);
48
+ }), !tokens && (0, jsx_runtime_1.jsx)(WaitingData_1.default, { sx: { margin: "auto" } })] }));
72
49
  };
73
50
  exports.TokensBoard = TokensBoard;
74
51
  exports.default = exports.TokensBoard;
@@ -67,7 +67,6 @@ var jsx_runtime_1 = require("react/jsx-runtime");
67
67
  var material_1 = require("@mui/material");
68
68
  var DefaultPageLayout_1 = __importDefault(require("../../layouts/DefaultPageLayout"));
69
69
  var FunctionItem_1 = __importDefault(require("../../ui/FunctionItem"));
70
- var TokensBoard_1 = __importDefault(require("../../ui/TokensBoard"));
71
70
  var useWalletData_1 = __importDefault(require("../../../hooks/useWalletData"));
72
71
  var Text_1 = __importDefault(require("../../ui/Text"));
73
72
  var AmountGroupAndChart_1 = __importDefault(require("../../ui/AmountGroupAndChart"));
@@ -86,6 +85,7 @@ var BasicAmountGroup_1 = __importDefault(require("../../ui/BasicAmountGroup"));
86
85
  var AssetViewHeader_1 = __importDefault(require("../../ui/AssetViewHeader"));
87
86
  var ClickEffect_1 = __importDefault(require("../../ui/ClickEffect"));
88
87
  var mui_1 = require("../../../theme/mui");
88
+ var AssetsBoard_1 = __importDefault(require("../../ui/AssetsBoard"));
89
89
  var AssetView = function (props) {
90
90
  var sx = props.sx, rest = __rest(props, ["sx"]);
91
91
  var _a = (0, useWalletData_1.default)(), isInitPasscode = _a.isInitPasscode, masterWallet = _a.masterWallet, updateWalletDetail = _a.updateWalletDetail;
@@ -169,7 +169,7 @@ var AssetView = function (props) {
169
169
  pt: 0,
170
170
  pb: 0,
171
171
  },
172
- } }) })] })), (0, jsx_runtime_1.jsx)(TokensBoard_1.default, {})] })))] }));
172
+ } }) })] })), (0, jsx_runtime_1.jsx)(AssetsBoard_1.default, {})] })))] }));
173
173
  };
174
174
  exports.AssetView = AssetView;
175
175
  exports.default = exports.AssetView;
@@ -0,0 +1,2 @@
1
+ declare function LoadingView(): import("react/jsx-runtime").JSX.Element;
2
+ export default LoadingView;
@@ -0,0 +1,29 @@
1
+ "use strict";
2
+ var __assign = (this && this.__assign) || function () {
3
+ __assign = Object.assign || function(t) {
4
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
5
+ s = arguments[i];
6
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
7
+ t[p] = s[p];
8
+ }
9
+ return t;
10
+ };
11
+ return __assign.apply(this, arguments);
12
+ };
13
+ Object.defineProperty(exports, "__esModule", { value: true });
14
+ var jsx_runtime_1 = require("react/jsx-runtime");
15
+ var material_1 = require("@mui/material");
16
+ var mui_1 = require("../../../theme/mui");
17
+ function LoadingView() {
18
+ var theme = (0, mui_1.useTheme)();
19
+ return ((0, jsx_runtime_1.jsxs)(material_1.Box, { display: "flex", gap: 2, flexDirection: "column", alignItems: "center", sx: { width: "100%" }, children: [(0, jsx_runtime_1.jsx)(material_1.Skeleton, { variant: "circular", width: 64, height: 64 }), (0, jsx_runtime_1.jsxs)(material_1.Box, { sx: __assign(__assign({}, theme.styleMixins.column), { gap: theme.styleMixins.gaps.g4, alignItems: "center" }), children: [(0, jsx_runtime_1.jsx)(material_1.Skeleton, { variant: "text", sx: {
20
+ transform: "scale(1)",
21
+ }, width: "40%", height: 42 }), (0, jsx_runtime_1.jsx)(material_1.Skeleton, { variant: "text", sx: {
22
+ transform: "scale(1)",
23
+ }, width: "60%", height: 18 })] }), (0, jsx_runtime_1.jsxs)(material_1.Box, { sx: __assign(__assign({}, theme.styleMixins.column), { gap: theme.styleMixins.gaps.g4 }), children: [(0, jsx_runtime_1.jsx)(material_1.Skeleton, { variant: "text", sx: {
24
+ transform: "scale(1)",
25
+ }, width: "40%", height: 20 }), (0, jsx_runtime_1.jsx)(material_1.Skeleton, { variant: "text", sx: {
26
+ transform: "scale(1)",
27
+ }, width: "100%", height: 40 })] })] }));
28
+ }
29
+ exports.default = LoadingView;
@@ -0,0 +1,8 @@
1
+ import { GeneralProps } from "../../../types/ui";
2
+ import { SxProps } from "@mui/material";
3
+ interface NftDetailViewProps extends GeneralProps {
4
+ sx?: SxProps;
5
+ id?: string;
6
+ }
7
+ export declare const NftDetailView: (props: NftDetailViewProps) => import("react/jsx-runtime").JSX.Element;
8
+ export default NftDetailView;
@@ -0,0 +1,20 @@
1
+ "use strict";
2
+ "use client";
3
+ var __importDefault = (this && this.__importDefault) || function (mod) {
4
+ return (mod && mod.__esModule) ? mod : { "default": mod };
5
+ };
6
+ Object.defineProperty(exports, "__esModule", { value: true });
7
+ exports.NftDetailView = void 0;
8
+ var jsx_runtime_1 = require("react/jsx-runtime");
9
+ var ChildPageLayout_1 = __importDefault(require("../../layouts/ChildPageLayout"));
10
+ var PageHeader_1 = __importDefault(require("../../ui/PageHeader"));
11
+ var DefaultPageLayout_1 = __importDefault(require("../../layouts/DefaultPageLayout"));
12
+ var NftDetail_1 = __importDefault(require("../../ui/NftDetail"));
13
+ var NftDetailView = function (props) {
14
+ var sx = props.sx, id = props.id;
15
+ return ((0, jsx_runtime_1.jsx)(ChildPageLayout_1.default, { header: (0, jsx_runtime_1.jsx)(PageHeader_1.default, { title: "Voucher" }), sx: sx, children: (0, jsx_runtime_1.jsx)(DefaultPageLayout_1.default, { sx: {
16
+ height: "100%",
17
+ }, children: (0, jsx_runtime_1.jsx)(NftDetail_1.default, { id: id, sx: { height: "100%" } }) }) }));
18
+ };
19
+ exports.NftDetailView = NftDetailView;
20
+ exports.default = exports.NftDetailView;
@@ -98,7 +98,6 @@ var lodash_1 = require("lodash");
98
98
  var Button_1 = __importStar(require("../../../ui/Button"));
99
99
  var expose_1 = require("../../../../services/axios/expose");
100
100
  var __1 = require("..");
101
- var QrCodeReader_1 = __importDefault(require("../../../ui/QrCodeReader"));
102
101
  var Icon_1 = __importDefault(require("../../../ui/Icon"));
103
102
  var get_est_fee_service_1 = __importDefault(require("../../../../services/axios/get-est-fee-service"));
104
103
  var type_1 = require("../../../../services/axios/get-activities-service/type");
@@ -131,7 +130,6 @@ function Form(props) {
131
130
  var _f = (0, react_1.useState)(undefined), comment = _f[0], setComment = _f[1];
132
131
  var _g = (0, react_1.useState)(), memoError = _g[0], setMemoError = _g[1];
133
132
  var _h = (0, react_1.useState)(false), isValidatingAddress = _h[0], setIsValidatingAddress = _h[1];
134
- var scannerAddressQrCodeRef = (0, react_1.useRef)(null);
135
133
  var _j = (0, react_1.useState)(false), isEstimatingFee = _j[0], setIsLoadingEstimateFee = _j[1];
136
134
  var _k = (0, react_1.useState)(), estimateFee = _k[0], setEstimateFee = _k[1];
137
135
  var _l = (0, react_1.useState)(false), isEnoughBalanceToPayFee = _l[0], setIsEnoughBalanceToPayFee = _l[1];
@@ -273,52 +271,33 @@ function Form(props) {
273
271
  setSelectedNetwork(undefined);
274
272
  setNetworks([]);
275
273
  };
276
- var handlePaste = function () { return __awaiter(_this, void 0, void 0, function () {
277
- var text, address;
278
- return __generator(this, function (_a) {
279
- switch (_a.label) {
280
- case 0: return [4 /*yield*/, navigator.clipboard.readText()];
281
- case 1:
282
- text = _a.sent();
283
- address = text.trim();
284
- if (!address) {
285
- return [2 /*return*/];
286
- }
287
- handleChangeRecipientAddress({
288
- target: { value: address },
289
- });
290
- return [2 /*return*/];
291
- }
292
- });
293
- }); };
294
- var handleClearRecipientAddress = function () {
295
- handleChangeRecipientAddress({
296
- target: { value: "" },
297
- });
274
+ // const handlePaste = async () => {
275
+ // const text = await navigator.clipboard.readText();
276
+ // const address = text.trim();
277
+ // if (!address) {
278
+ // return;
279
+ // }
280
+ // handleChangeRecipientAddress({
281
+ // target: { value: address },
282
+ // } as React.ChangeEvent<HTMLInputElement>);
283
+ // };
284
+ // const handleClearRecipientAddress = () => {
285
+ // handleChangeRecipientAddress({
286
+ // target: { value: "" },
287
+ // } as React.ChangeEvent<HTMLInputElement>);
288
+ // };
289
+ var sanitizeScanText = function (text) {
290
+ var address = "";
291
+ var isReceiveInternal = text === null || text === void 0 ? void 0 : text.includes("isTekWalletReceiveInternal");
292
+ if (isReceiveInternal) {
293
+ var data = JSON.parse(text);
294
+ address = data === null || data === void 0 ? void 0 : data.address;
295
+ }
296
+ else {
297
+ address = text;
298
+ }
299
+ return address;
298
300
  };
299
- var handleScanAddressQrCode = function (result) { return __awaiter(_this, void 0, void 0, function () {
300
- var text, address, isReceiveInternal, data;
301
- var _a;
302
- return __generator(this, function (_b) {
303
- closeScannerAddressQrCode();
304
- text = (_a = result === null || result === void 0 ? void 0 : result[0]) === null || _a === void 0 ? void 0 : _a.rawValue;
305
- address = "";
306
- isReceiveInternal = text === null || text === void 0 ? void 0 : text.includes("isTekWalletReceiveInternal");
307
- if (isReceiveInternal) {
308
- data = JSON.parse(text);
309
- address = data === null || data === void 0 ? void 0 : data.address;
310
- }
311
- else {
312
- address = text;
313
- }
314
- if (!address)
315
- return [2 /*return*/];
316
- handleChangeRecipientAddress({
317
- target: { value: address },
318
- });
319
- return [2 /*return*/];
320
- });
321
- }); };
322
301
  var handleChangeAmount = function (e) {
323
302
  var amount = e.target.value;
324
303
  setAmount(amount);
@@ -363,14 +342,9 @@ function Form(props) {
363
342
  extraTransactions: null,
364
343
  }, estimateFee);
365
344
  };
366
- var openScannerAddressQrCode = function () {
367
- var _a;
368
- (_a = scannerAddressQrCodeRef.current) === null || _a === void 0 ? void 0 : _a.open();
369
- };
370
- var closeScannerAddressQrCode = function () {
371
- var _a;
372
- (_a = scannerAddressQrCodeRef.current) === null || _a === void 0 ? void 0 : _a.close();
373
- };
345
+ // const openScannerAddressQrCode = () => {
346
+ // scannerAddressQrCodeRef.current?.open();
347
+ // };
374
348
  var handleKeyboardOpen = function () {
375
349
  setIsKeyboardOpen(true);
376
350
  };
@@ -417,28 +391,29 @@ function Form(props) {
417
391
  fontSize: theme.typography.fontSize14,
418
392
  color: theme.palette.text.primary,
419
393
  fontWeight: theme.typography.fontWeight700,
420
- }, children: "Wallet address" }), (0, jsx_runtime_1.jsx)(Input_1.default, { sx: {
421
- paddingX: theme.styleMixins.customPadding.p16,
422
- }, inputRest: {
423
- placeholder: "Enter recipient address",
424
- value: recipientAddress,
425
- onChange: handleChangeRecipientAddress,
426
- id: "recipient-address-input-id",
427
- }, rightPart: (0, jsx_runtime_1.jsx)(material_1.Box, { sx: __assign(__assign({}, theme.styleMixins.row), { gap: theme.styleMixins.gaps.g8 }), children: !!recipientAddress ? ((0, jsx_runtime_1.jsx)("label", { htmlFor: "recipient-address-input-id", children: (0, jsx_runtime_1.jsx)(material_1.Box, { onClick: handleClearRecipientAddress, sx: __assign(__assign({}, theme.styleMixins.row), { gap: theme.styleMixins.gaps.g8, cursor: "pointer" }), children: (0, jsx_runtime_1.jsx)(material_1.SvgIcon, { sx: { width: 12, height: 12 }, children: SvgPath_1.IC_CLOSE }) }) })) : ((0, jsx_runtime_1.jsxs)(material_1.Box, { sx: __assign(__assign({}, theme.styleMixins.row), { gap: theme.styleMixins.gaps.g8, color: "primary.main" }), children: [(0, jsx_runtime_1.jsx)(material_1.Box, { onClick: openScannerAddressQrCode, children: (0, jsx_runtime_1.jsx)(Icon_1.default, { iconKey: "IC_SCAN", sx: { width: 20, height: 20 } }) }), (0, jsx_runtime_1.jsx)(material_1.Divider, { orientation: "vertical", variant: "fullWidth", flexItem: true }), (0, jsx_runtime_1.jsx)(material_1.Box, { onClick: handlePaste, children: (0, jsx_runtime_1.jsx)(Icon_1.default, { iconKey: "IC_DOCUMENTS", sx: { width: 20, height: 20 } }) })] })) }) }), !!recipientAddressError && ((0, jsx_runtime_1.jsx)(Text_1.default, { sx: __assign({}, theme.styleMixins.validationError), children: recipientAddressError }))] }), allowSelectNetwork && ((0, jsx_runtime_1.jsxs)(react_2.motion.div, { initial: { opacity: 0, height: 0 }, animate: { opacity: 1, height: "auto" }, transition: { duration: 0.3 }, style: __assign(__assign({}, theme.styleMixins.column), { gap: theme.styleMixins.gaps.g8, willChange: "height, opacity" }), children: [(0, jsx_runtime_1.jsx)(Text_1.default, { sx: {
394
+ }, children: "Wallet address" }), (0, jsx_runtime_1.jsx)(Input_1.default, { canClear: true, canPaste: true, canScan: true, value: recipientAddress, sanitizeScanText: sanitizeScanText, slotProps: {
395
+ input: {
396
+ placeholder: "Enter recipient address",
397
+ onChange: handleChangeRecipientAddress,
398
+ id: "recipient-address-input-id",
399
+ },
400
+ } }), !!recipientAddressError && ((0, jsx_runtime_1.jsx)(Text_1.default, { sx: __assign({}, theme.styleMixins.validationError), children: recipientAddressError }))] }), allowSelectNetwork && ((0, jsx_runtime_1.jsxs)(react_2.motion.div, { initial: { opacity: 0, height: 0 }, animate: { opacity: 1, height: "auto" }, transition: { duration: 0.3 }, style: __assign(__assign({}, theme.styleMixins.column), { gap: theme.styleMixins.gaps.g8, willChange: "height, opacity" }), children: [(0, jsx_runtime_1.jsx)(Text_1.default, { sx: {
428
401
  fontSize: theme.typography.fontSize14,
429
402
  color: theme.palette.text.primary,
430
403
  fontWeight: theme.typography.fontWeight700,
431
404
  }, children: "Network" }), (0, jsx_runtime_1.jsx)(DrawerComponent_1.default, { ref: selectNetworkDrawerRef, trigger: (0, jsx_runtime_1.jsx)(Input_1.default, { sx: {
432
- paddingLeft: theme.styleMixins.customPadding.p12,
433
- paddingRight: theme.styleMixins.customPadding.p16,
434
- }, inputRest: {
435
- placeholder: "Select a network",
436
- value: (selectedNetwork === null || selectedNetwork === void 0 ? void 0 : selectedNetwork.name) || "",
437
- onChange: handleChangeRecipientAddress,
438
- inputProps: {
439
- readOnly: true,
405
+ width: "100%",
406
+ }, value: (selectedNetwork === null || selectedNetwork === void 0 ? void 0 : selectedNetwork.name) || "", slotProps: {
407
+ input: {
408
+ placeholder: "Select a network",
409
+ onChange: handleChangeRecipientAddress,
410
+ inputProps: {
411
+ readOnly: true,
412
+ },
413
+ startAdornment: ((0, jsx_runtime_1.jsx)(material_1.Box, { sx: __assign(__assign({}, theme.styleMixins.row), { gap: theme.styleMixins.gaps.g8 }), children: (0, jsx_runtime_1.jsx)(Icon_1.default, { iconKey: "IC_NETWORK", src: (selectedNetwork === null || selectedNetwork === void 0 ? void 0 : selectedNetwork.link) || undefined, sx: { width: 24, height: 24, mr: 2 } }) })),
414
+ endAdornment: ((0, jsx_runtime_1.jsx)(material_1.Box, { sx: { display: "block" }, children: (0, jsx_runtime_1.jsx)(material_1.SvgIcon, { sx: { width: 10, height: 18, display: "block" }, children: SvgPath_1.ARROW_DOWN }) })),
440
415
  },
441
- }, leftPart: (0, jsx_runtime_1.jsx)(material_1.Box, { sx: __assign(__assign({}, theme.styleMixins.row), { gap: theme.styleMixins.gaps.g8 }), children: (0, jsx_runtime_1.jsx)(Icon_1.default, { iconKey: "IC_NETWORK", src: (selectedNetwork === null || selectedNetwork === void 0 ? void 0 : selectedNetwork.link) || undefined, sx: { width: 24, height: 24 } }) }), rightPart: (0, jsx_runtime_1.jsx)(material_1.Box, { sx: { display: "block" }, children: (0, jsx_runtime_1.jsx)(material_1.SvgIcon, { sx: { width: 10, height: 18, display: "block" }, children: SvgPath_1.ARROW_DOWN }) }) }), children: (0, jsx_runtime_1.jsx)(ModalLayout_1.default, { title: "Select network", onClose: closeSelectNetwork, children: (0, jsx_runtime_1.jsx)(SelectNetwork_1.default, { networks: networks, selectedNetwork: selectedNetwork, selectedToken: selectedToken, onChangeNetwork: handleChangeNetwork }) }) })] })), (0, jsx_runtime_1.jsxs)(material_1.Box, { sx: __assign(__assign({}, theme.styleMixins.column), { gap: theme.styleMixins.gaps.g8 }), children: [(0, jsx_runtime_1.jsxs)(material_1.Box, { sx: __assign(__assign({}, theme.styleMixins.row), { gap: theme.styleMixins.gaps.g8, alignItems: "center", justifyContent: "space-between" }), children: [(0, jsx_runtime_1.jsx)(Text_1.default, { sx: {
416
+ } }), children: (0, jsx_runtime_1.jsx)(ModalLayout_1.default, { title: "Select network", onClose: closeSelectNetwork, children: (0, jsx_runtime_1.jsx)(SelectNetwork_1.default, { networks: networks, selectedNetwork: selectedNetwork, selectedToken: selectedToken, onChangeNetwork: handleChangeNetwork }) }) })] })), (0, jsx_runtime_1.jsxs)(material_1.Box, { sx: __assign(__assign({}, theme.styleMixins.column), { gap: theme.styleMixins.gaps.g8 }), children: [(0, jsx_runtime_1.jsxs)(material_1.Box, { sx: __assign(__assign({}, theme.styleMixins.row), { gap: theme.styleMixins.gaps.g8, alignItems: "center", justifyContent: "space-between" }), children: [(0, jsx_runtime_1.jsx)(Text_1.default, { sx: {
442
417
  fontSize: theme.typography.fontSize14,
443
418
  color: theme.palette.text.primary,
444
419
  fontWeight: theme.typography.fontWeight700,
@@ -462,11 +437,13 @@ function Form(props) {
462
437
  fontSize: theme.typography.fontSize14,
463
438
  color: theme.palette.text.primary,
464
439
  fontWeight: theme.typography.fontWeight700,
465
- }, children: "Memo" }), (0, jsx_runtime_1.jsxs)(material_1.Box, { sx: __assign(__assign({}, theme.styleMixins.column), { gap: theme.styleMixins.gaps.g8 }), children: [(0, jsx_runtime_1.jsx)(Input_1.default, { inputRest: {
466
- placeholder: "Enter memo if needed",
467
- value: comment,
468
- onChange: handleChangeComment,
469
- } }), !!memoError && ((0, jsx_runtime_1.jsx)(Text_1.default, { sx: __assign({}, theme.styleMixins.validationError), children: memoError }))] }), (0, jsx_runtime_1.jsx)(Text_1.default, { sx: __assign({}, theme.styleMixins.validationDescription), children: "Enter memo if your receiving platform requires one to avoid losing your funds." })] }), (0, jsx_runtime_1.jsx)(Fees_1.default, { isFeePaidByAmount: true, feesData: estimateFee, amount: +amount, tokenSlug: (selectedToken === null || selectedToken === void 0 ? void 0 : selectedToken.slug) || "", feesStyle: Fees_1.FeesStyle.WITH_BACKGROUND, setIsEnoughBalanceToPayFee: setIsEnoughBalanceToPayFee }), (0, jsx_runtime_1.jsx)(QrCodeReader_1.default, { ref: scannerAddressQrCodeRef, onResult: handleScanAddressQrCode }), (0, jsx_runtime_1.jsx)(Button_1.default.Primary, { loading: isValidatingAddress || isEstimatingFee, onClick: handleContinue, status: !recipientAddress ||
440
+ }, children: "Memo" }), (0, jsx_runtime_1.jsxs)(material_1.Box, { sx: __assign(__assign({}, theme.styleMixins.column), { gap: theme.styleMixins.gaps.g8 }), children: [(0, jsx_runtime_1.jsx)(Input_1.default, { slotProps: {
441
+ input: {
442
+ placeholder: "Enter memo if needed",
443
+ value: comment,
444
+ onChange: handleChangeComment,
445
+ },
446
+ }, canClear: true, canPaste: true }), !!memoError && ((0, jsx_runtime_1.jsx)(Text_1.default, { sx: __assign({}, theme.styleMixins.validationError), children: memoError }))] }), (0, jsx_runtime_1.jsx)(Text_1.default, { sx: __assign({}, theme.styleMixins.validationDescription), children: "Enter memo if your receiving platform requires one to avoid losing your funds." })] }), (0, jsx_runtime_1.jsx)(Fees_1.default, { isFeePaidByAmount: true, feesData: estimateFee, amount: +amount, tokenSlug: (selectedToken === null || selectedToken === void 0 ? void 0 : selectedToken.slug) || "", feesStyle: Fees_1.FeesStyle.WITH_BACKGROUND, setIsEnoughBalanceToPayFee: setIsEnoughBalanceToPayFee }), (0, jsx_runtime_1.jsx)(Button_1.default.Primary, { loading: isValidatingAddress || isEstimatingFee, onClick: handleContinue, status: !recipientAddress ||
470
447
  !selectedNetwork ||
471
448
  !amount ||
472
449
  !!recipientAddressError ||
@@ -131,7 +131,7 @@ exports.SendExternalView = (0, react_1.forwardRef)(function (props, ref) {
131
131
  height: "100%",
132
132
  }, children: payload && ((0, jsx_runtime_1.jsx)(Summary_1.default, { estimateFee: estimateFee, payload: __assign(__assign({}, payload), { await_completion: true }), selectedToken: selectedToken, confirmProps: {
133
133
  onSuccess: handleSendSuccess,
134
- onDone: startNewTransaction,
134
+ onClose: startNewTransaction,
135
135
  } })) }) }, SendExternalStep.CONFIRM)] }) }));
136
136
  });
137
137
  exports.SendExternalView.displayName = "SendExternalView";
@@ -96,8 +96,6 @@ var lodash_1 = require("lodash");
96
96
  var Button_1 = __importStar(require("../../../ui/Button"));
97
97
  var expose_1 = require("../../../../services/axios/expose");
98
98
  var __1 = require("..");
99
- var QrCodeReader_1 = __importDefault(require("../../../ui/QrCodeReader"));
100
- var Icon_1 = __importDefault(require("../../../ui/Icon"));
101
99
  var get_est_fee_service_1 = __importDefault(require("../../../../services/axios/get-est-fee-service"));
102
100
  var type_1 = require("../../../../services/axios/get-activities-service/type");
103
101
  var Fees_1 = __importStar(require("../../../ui/Fees"));
@@ -125,7 +123,6 @@ function Form(props) {
125
123
  var _e = (0, react_1.useState)(), amountError = _e[0], setAmountError = _e[1];
126
124
  var _f = (0, react_1.useState)(undefined), comment = _f[0], setComment = _f[1];
127
125
  var _g = (0, react_1.useState)(false), isValidatingAddress = _g[0], setIsValidatingAddress = _g[1];
128
- var scannerAddressQrCodeRef = (0, react_1.useRef)(null);
129
126
  var _h = (0, react_1.useState)(false), isEstimatingFee = _h[0], setIsLoadingEstimateFee = _h[1];
130
127
  var _j = (0, react_1.useState)(), estimateFee = _j[0], setEstimateFee = _j[1];
131
128
  var _k = (0, react_1.useState)(false), isEnoughBalanceToPayFee = _k[0], setIsEnoughBalanceToPayFee = _k[1];
@@ -226,29 +223,6 @@ function Form(props) {
226
223
  setRecipientAddress(address);
227
224
  validateAddress(address);
228
225
  };
229
- var handlePaste = function () { return __awaiter(_this, void 0, void 0, function () {
230
- var text, address;
231
- return __generator(this, function (_a) {
232
- switch (_a.label) {
233
- case 0: return [4 /*yield*/, navigator.clipboard.readText()];
234
- case 1:
235
- text = _a.sent();
236
- address = text.trim();
237
- if (!address) {
238
- return [2 /*return*/];
239
- }
240
- handleChangeRecipientAddress({
241
- target: { value: address },
242
- });
243
- return [2 /*return*/];
244
- }
245
- });
246
- }); };
247
- var handleClearRecipientAddress = function () {
248
- handleChangeRecipientAddress({
249
- target: { value: "" },
250
- });
251
- };
252
226
  var handleChangeAmount = function (e) {
253
227
  var amount = e.target.value;
254
228
  setAmount(amount);
@@ -279,37 +253,18 @@ function Form(props) {
279
253
  message: comment,
280
254
  }, estimateFee);
281
255
  };
282
- var openScannerAddressQrCode = function () {
283
- var _a;
284
- (_a = scannerAddressQrCodeRef.current) === null || _a === void 0 ? void 0 : _a.open();
285
- };
286
- var closeScannerAddressQrCode = function () {
287
- var _a;
288
- (_a = scannerAddressQrCodeRef.current) === null || _a === void 0 ? void 0 : _a.close();
256
+ var sanitizeScanText = function (text) {
257
+ var address = "";
258
+ var isReceiveInternal = text === null || text === void 0 ? void 0 : text.includes("isTekWalletReceiveInternal");
259
+ if (isReceiveInternal) {
260
+ var data = JSON.parse(text);
261
+ address = data === null || data === void 0 ? void 0 : data.address;
262
+ }
263
+ else {
264
+ address = text;
265
+ }
266
+ return address;
289
267
  };
290
- var handleScanAddressQrCode = function (result) { return __awaiter(_this, void 0, void 0, function () {
291
- var text, address, isReceiveInternal, data;
292
- var _a;
293
- return __generator(this, function (_b) {
294
- closeScannerAddressQrCode();
295
- text = (_a = result === null || result === void 0 ? void 0 : result[0]) === null || _a === void 0 ? void 0 : _a.rawValue;
296
- address = "";
297
- isReceiveInternal = text === null || text === void 0 ? void 0 : text.includes("isTekWalletReceiveInternal");
298
- if (isReceiveInternal) {
299
- data = JSON.parse(text);
300
- address = data === null || data === void 0 ? void 0 : data.address;
301
- }
302
- else {
303
- address = text;
304
- }
305
- if (!address)
306
- return [2 /*return*/];
307
- handleChangeRecipientAddress({
308
- target: { value: address },
309
- });
310
- return [2 /*return*/];
311
- });
312
- }); };
313
268
  var keyboardId = (0, useUniqueId_1.useUniqueId)("form-keyboard");
314
269
  var handleKeyboardOpen = function () {
315
270
  setIsKeyboardOpen(true);
@@ -337,13 +292,13 @@ function Form(props) {
337
292
  fontSize: theme.typography.fontSize14,
338
293
  color: theme.palette.text.primary,
339
294
  fontWeight: theme.typography.fontWeight700,
340
- }, children: "Wallet address" }), (0, jsx_runtime_1.jsx)(Input_1.default, { sx: {
341
- paddingX: theme.styleMixins.customPadding.p16,
342
- }, inputRest: {
343
- placeholder: "Enter recipient address",
344
- value: recipientAddress,
345
- onChange: handleChangeRecipientAddress,
346
- }, rightPart: (0, jsx_runtime_1.jsx)(material_1.Box, { sx: __assign(__assign({}, theme.styleMixins.row), { gap: theme.styleMixins.gaps.g8 }), children: !!recipientAddress ? ((0, jsx_runtime_1.jsx)(material_1.Box, { onClick: handleClearRecipientAddress, sx: __assign(__assign({}, theme.styleMixins.row), { gap: theme.styleMixins.gaps.g8, cursor: "pointer" }), children: (0, jsx_runtime_1.jsx)(Icon_1.default, { iconKey: "IC_CLOSE", sx: { width: 12, height: 12 } }) })) : ((0, jsx_runtime_1.jsxs)(material_1.Box, { sx: __assign(__assign({}, theme.styleMixins.row), { gap: theme.styleMixins.gaps.g8, color: "primary.main" }), children: [(0, jsx_runtime_1.jsx)(material_1.Box, { onClick: openScannerAddressQrCode, children: (0, jsx_runtime_1.jsx)(Icon_1.default, { iconKey: "IC_SCAN", sx: { width: 20, height: 20 } }) }), (0, jsx_runtime_1.jsx)(material_1.Divider, { orientation: "vertical", variant: "fullWidth", flexItem: true }), (0, jsx_runtime_1.jsx)(material_1.Box, { onClick: handlePaste, children: (0, jsx_runtime_1.jsx)(Icon_1.default, { iconKey: "IC_DOCUMENTS", sx: { width: 20, height: 20 } }) })] })) }) }), !!recipientAddressError && ((0, jsx_runtime_1.jsx)(Text_1.default, { sx: __assign({}, theme.styleMixins.validationError), children: recipientAddressError }))] }), (0, jsx_runtime_1.jsxs)(material_1.Box, { sx: __assign(__assign({}, theme.styleMixins.column), { gap: theme.styleMixins.gaps.g8 }), children: [(0, jsx_runtime_1.jsxs)(material_1.Box, { sx: __assign(__assign({}, theme.styleMixins.row), { gap: theme.styleMixins.gaps.g8, alignItems: "center", justifyContent: "space-between" }), children: [(0, jsx_runtime_1.jsx)(Text_1.default, { sx: {
295
+ }, children: "Wallet address" }), (0, jsx_runtime_1.jsx)(Input_1.default, { slotProps: {
296
+ input: {
297
+ placeholder: "Enter recipient address",
298
+ value: recipientAddress,
299
+ onChange: handleChangeRecipientAddress,
300
+ },
301
+ }, canClear: true, canPaste: true, canScan: true, sanitizeScanText: sanitizeScanText }), !!recipientAddressError && ((0, jsx_runtime_1.jsx)(Text_1.default, { sx: __assign({}, theme.styleMixins.validationError), children: recipientAddressError }))] }), (0, jsx_runtime_1.jsxs)(material_1.Box, { sx: __assign(__assign({}, theme.styleMixins.column), { gap: theme.styleMixins.gaps.g8 }), children: [(0, jsx_runtime_1.jsxs)(material_1.Box, { sx: __assign(__assign({}, theme.styleMixins.row), { gap: theme.styleMixins.gaps.g8, alignItems: "center", justifyContent: "space-between" }), children: [(0, jsx_runtime_1.jsx)(Text_1.default, { sx: {
347
302
  fontSize: theme.typography.fontSize14,
348
303
  color: theme.palette.text.primary,
349
304
  fontWeight: theme.typography.fontWeight700,
@@ -372,11 +327,12 @@ function Form(props) {
372
327
  fontSize: theme.typography.fontSize14,
373
328
  color: theme.palette.text.primary,
374
329
  fontWeight: theme.typography.fontWeight700,
375
- }, children: "Message" }), (0, jsx_runtime_1.jsx)(Input_1.default, { inputRest: {
376
- placeholder: "Enter comment if needed",
377
- value: comment,
378
- onChange: handleChangeComment,
379
- } })] }), (0, jsx_runtime_1.jsx)(Fees_1.default, { isFeePaidByAmount: true, feesData: estimateFee, amount: +amount, tokenSlug: (selectedToken === null || selectedToken === void 0 ? void 0 : selectedToken.slug) || "", feesStyle: Fees_1.FeesStyle.WITH_BACKGROUND, setIsEnoughBalanceToPayFee: setIsEnoughBalanceToPayFee }), (0, jsx_runtime_1.jsx)(QrCodeReader_1.default, { ref: scannerAddressQrCodeRef, onResult: handleScanAddressQrCode }), (0, jsx_runtime_1.jsx)(Button_1.default.Primary, { loading: isValidatingAddress || isEstimatingFee, onClick: handleContinue, status: !recipientAddress ||
330
+ }, children: "Message" }), (0, jsx_runtime_1.jsx)(Input_1.default, { value: comment, slotProps: {
331
+ input: {
332
+ placeholder: "Enter comment if needed",
333
+ onChange: handleChangeComment,
334
+ },
335
+ }, canClear: true, canPaste: true })] }), (0, jsx_runtime_1.jsx)(Fees_1.default, { isFeePaidByAmount: true, feesData: estimateFee, amount: +amount, tokenSlug: (selectedToken === null || selectedToken === void 0 ? void 0 : selectedToken.slug) || "", feesStyle: Fees_1.FeesStyle.WITH_BACKGROUND, setIsEnoughBalanceToPayFee: setIsEnoughBalanceToPayFee }), (0, jsx_runtime_1.jsx)(Button_1.default.Primary, { loading: isValidatingAddress || isEstimatingFee, onClick: handleContinue, status: !recipientAddress ||
380
336
  !amount ||
381
337
  !!recipientAddressError ||
382
338
  !!amountError ||
@@ -0,0 +1,12 @@
1
+ import { SxProps } from "@mui/material";
2
+ import { NetworkData } from "../../../../services/axios/expose";
3
+ interface FormProps {
4
+ onContinue?: (payload?: {
5
+ to_address: string;
6
+ network: NetworkData;
7
+ }) => void;
8
+ sx?: SxProps;
9
+ nftId?: string;
10
+ }
11
+ export default function Form(props: FormProps): import("react/jsx-runtime").JSX.Element;
12
+ export type { FormProps };