tek-wallet 0.0.805 → 0.0.807

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 (196) hide show
  1. package/dist/components/TekWallet/components/index.d.ts +2 -1
  2. package/dist/components/TekWallet/components/index.js +2 -1
  3. package/dist/components/TekWallet/components/layouts/ChildPageLayout/index.js +3 -3
  4. package/dist/components/TekWallet/components/layouts/DefaultPageLayout/index.js +3 -3
  5. package/dist/components/TekWallet/components/ui/ActivitiesTypeSlice/index.js +12 -8
  6. package/dist/components/TekWallet/components/ui/ActivityDetail/index.js +17 -19
  7. package/dist/components/TekWallet/components/ui/ActivityItem/index.js +13 -13
  8. package/dist/components/TekWallet/components/ui/AmountGroupAndChart/index.js +3 -3
  9. package/dist/components/TekWallet/components/ui/AnalyticGroup/index.js +20 -20
  10. package/dist/components/TekWallet/components/ui/AnalyticGroupCenter/index.js +9 -8
  11. package/dist/components/TekWallet/components/ui/AppBackDrop/index.js +3 -3
  12. package/dist/components/TekWallet/components/ui/AppDialog/index.js +3 -3
  13. package/dist/components/TekWallet/components/ui/AssetViewHeader/index.js +9 -8
  14. package/dist/components/TekWallet/components/ui/BackHeader/index.js +6 -6
  15. package/dist/components/TekWallet/components/ui/BottomActionLayout/index.js +3 -3
  16. package/dist/components/TekWallet/components/ui/Button/index.js +4 -4
  17. package/dist/components/TekWallet/components/ui/CardToken/index.js +8 -8
  18. package/dist/components/TekWallet/components/ui/Column/index.js +3 -3
  19. package/dist/components/TekWallet/components/ui/ConfirmByPasscode/index.js +6 -4
  20. package/dist/components/TekWallet/components/ui/ConfirmLayout/index.js +3 -3
  21. package/dist/components/TekWallet/components/ui/ConfirmSwapToken/Result.js +17 -17
  22. package/dist/components/TekWallet/components/ui/ConfirmTransfer/index.js +3 -3
  23. package/dist/components/TekWallet/components/ui/CopyTextComponent/index.js +6 -6
  24. package/dist/components/TekWallet/components/ui/CustomTooltip/index.js +4 -2
  25. package/dist/components/TekWallet/components/ui/DetailSwap/index.js +9 -9
  26. package/dist/components/TekWallet/components/ui/DialogContentLayout/index.js +6 -6
  27. package/dist/components/TekWallet/components/ui/DrawerDrag/index.js +3 -3
  28. package/dist/components/TekWallet/components/ui/EmptyData/index.js +3 -3
  29. package/dist/components/TekWallet/components/ui/Fees/index.js +25 -25
  30. package/dist/components/TekWallet/components/ui/FeesAutoDebounce/index.js +24 -25
  31. package/dist/components/TekWallet/components/ui/FiatDeposit/components/shareAction.js +4 -6
  32. package/dist/components/TekWallet/components/ui/FiatDeposit/components/shareDrawer.js +2 -5
  33. package/dist/components/TekWallet/components/ui/FiatDeposit/components/shareImage.js +1 -2
  34. package/dist/components/TekWallet/components/ui/FiatDeposit/index.js +28 -26
  35. package/dist/components/TekWallet/components/ui/Formatter/index.js +3 -0
  36. package/dist/components/TekWallet/components/ui/FunctionItem/index.js +4 -5
  37. package/dist/components/TekWallet/components/ui/Icon/index.js +1 -1
  38. package/dist/components/TekWallet/components/ui/IconText/index.js +3 -3
  39. package/dist/components/TekWallet/components/ui/IncomeWallet/components/AnalyticGroup.js +19 -20
  40. package/dist/components/TekWallet/components/ui/IncomeWallet/components/BalanceChart.js +5 -5
  41. package/dist/components/TekWallet/components/ui/IncomeWallet/components/FunctionItem.js +3 -3
  42. package/dist/components/TekWallet/components/ui/IncomeWallet/components/HistoryItem.js +3 -3
  43. package/dist/components/TekWallet/components/ui/IncomeWallet/components/WealthDeposit.js +3 -1
  44. package/dist/components/TekWallet/components/ui/IncomeWallet/components/WealthWithdraw.js +3 -1
  45. package/dist/components/TekWallet/components/ui/IncomeWallet/components/history/index.js +3 -3
  46. package/dist/components/TekWallet/components/ui/IncomeWallet/index.js +10 -10
  47. package/dist/components/TekWallet/components/ui/InlineTitleValue/index.js +3 -3
  48. package/dist/components/TekWallet/components/ui/Input/index.js +5 -5
  49. package/dist/components/TekWallet/components/ui/LineValue/index.js +3 -3
  50. package/dist/components/TekWallet/components/ui/ListItemCustom/index.js +8 -6
  51. package/dist/components/TekWallet/components/ui/LoadingLayout/index.js +3 -3
  52. package/dist/components/TekWallet/components/ui/LockToken/index.js +4 -4
  53. package/dist/components/TekWallet/components/ui/ModalCheckboxToken/index.js +22 -22
  54. package/dist/components/TekWallet/components/ui/ModalDateFilter/index.js +11 -11
  55. package/dist/components/TekWallet/components/ui/ModalLayout/index.js +3 -3
  56. package/dist/components/TekWallet/components/ui/ModalSelectToken/index.js +12 -12
  57. package/dist/components/TekWallet/components/ui/ModalStatusFilter/index.js +16 -16
  58. package/dist/components/TekWallet/components/ui/ModalTitle/index.js +3 -3
  59. package/dist/components/TekWallet/components/ui/NeonLineChart/index.js +4 -4
  60. package/dist/components/TekWallet/components/ui/NetworkSelection/index.js +5 -5
  61. package/dist/components/TekWallet/components/ui/OTP/index.js +24 -18
  62. package/dist/components/TekWallet/components/ui/PageHeader/index.js +3 -3
  63. package/dist/components/TekWallet/components/ui/QRCode/index.js +3 -1
  64. package/dist/components/TekWallet/components/ui/QrCodeReader/index.js +2 -3
  65. package/dist/components/TekWallet/components/ui/ReceiveDirectly/index.d.ts +26 -0
  66. package/dist/components/TekWallet/components/ui/ReceiveDirectly/index.js +365 -0
  67. package/dist/components/TekWallet/components/ui/ReceiveFunction/components/HelpView.js +4 -4
  68. package/dist/components/TekWallet/components/ui/ReceiveFunction/components/SortGroup.js +4 -4
  69. package/dist/components/TekWallet/components/ui/ReceiveFunction/components/SortTool.js +7 -12
  70. package/dist/components/TekWallet/components/ui/ReceiveFunction/index.js +39 -56
  71. package/dist/components/TekWallet/components/ui/ReceiveHistory/ReceiveCardHistory.js +13 -13
  72. package/dist/components/TekWallet/components/ui/ReceiveHistory/ReceiveHistoryDetails.js +22 -29
  73. package/dist/components/TekWallet/components/ui/ReceiveHistory/index.js +19 -19
  74. package/dist/components/TekWallet/components/ui/Row/index.js +3 -3
  75. package/dist/components/TekWallet/components/ui/ScanQRToSend/index.js +7 -7
  76. package/dist/components/TekWallet/components/ui/SearchBar.d.ts +10 -0
  77. package/dist/components/TekWallet/components/ui/SearchBar.js +42 -0
  78. package/dist/components/TekWallet/components/ui/SendExternalToken/index.js +7 -7
  79. package/dist/components/TekWallet/components/ui/SendInternalToken/index.js +5 -5
  80. package/dist/components/TekWallet/components/ui/SmartList/index.js +3 -3
  81. package/dist/components/TekWallet/components/ui/StatusDisplay/index.js +7 -7
  82. package/dist/components/TekWallet/components/ui/SvgPath/index.js +27 -27
  83. package/dist/components/TekWallet/components/ui/SwiperControlled/index.js +1 -3
  84. package/dist/components/TekWallet/components/ui/TimeFilter/index.js +9 -8
  85. package/dist/components/TekWallet/components/ui/TimeText/index.js +1 -1
  86. package/dist/components/TekWallet/components/ui/TokenItem/index.js +7 -15
  87. package/dist/components/TekWallet/components/ui/TokenSelection/index.js +5 -5
  88. package/dist/components/TekWallet/components/ui/TokensBoard/index.js +12 -12
  89. package/dist/components/TekWallet/components/ui/TransferConfirmation/index.js +3 -3
  90. package/dist/components/TekWallet/components/ui/TransferInternal/index.js +3 -3
  91. package/dist/components/TekWallet/components/ui/UpdateLockToken/index.js +4 -4
  92. package/dist/components/TekWallet/components/ui/UserInfo/index.js +4 -4
  93. package/dist/components/TekWallet/components/ui/WaitingData/index.js +13 -12
  94. package/dist/components/TekWallet/components/ui/WithdrawFunction/components/selectToken.js +11 -11
  95. package/dist/components/TekWallet/components/ui/WithdrawFunction/components/sendForm.js +30 -30
  96. package/dist/components/TekWallet/components/ui/WithdrawFunction/components/sortByBalance.js +3 -3
  97. package/dist/components/TekWallet/components/ui/WithdrawFunction/components/sortByToken.js +3 -3
  98. package/dist/components/TekWallet/components/ui/WithdrawFunction/components/summary/infoSummary.js +8 -8
  99. package/dist/components/TekWallet/components/ui/WithdrawFunction/index.js +9 -9
  100. package/dist/components/TekWallet/components/views/ActivityView/index.js +4 -4
  101. package/dist/components/TekWallet/components/views/AssetView/Menu.js +3 -3
  102. package/dist/components/TekWallet/components/views/AssetView/index.js +12 -12
  103. package/dist/components/TekWallet/components/views/AuthView/index.js +4 -4
  104. package/dist/components/TekWallet/components/views/AuthViewSignIn/index.js +4 -4
  105. package/dist/components/TekWallet/components/views/ChangePasscodeView/index.js +8 -6
  106. package/dist/components/TekWallet/components/views/CreateWalletView/index.js +4 -4
  107. package/dist/components/TekWallet/components/views/DetailActivityView/LoadingView.js +4 -4
  108. package/dist/components/TekWallet/components/views/GetSeedPhraseWalletView/index.js +7 -7
  109. package/dist/components/TekWallet/components/views/ImportWalletView/index.js +4 -7
  110. package/dist/components/TekWallet/components/views/SendExternalView/components/Form.js +32 -37
  111. package/dist/components/TekWallet/components/views/SendExternalView/components/Result.js +16 -16
  112. package/dist/components/TekWallet/components/views/SendExternalView/components/SelectNetwork.js +3 -3
  113. package/dist/components/TekWallet/components/views/SendExternalView/components/SelectToken.js +7 -32
  114. package/dist/components/TekWallet/components/views/SendExternalView/components/Summary.js +12 -12
  115. package/dist/components/TekWallet/components/views/SendExternalView/index.js +3 -3
  116. package/dist/components/TekWallet/components/views/SendInternalView/components/AmountForm.js +26 -24
  117. package/dist/components/TekWallet/components/views/SendInternalView/components/Form.js +27 -33
  118. package/dist/components/TekWallet/components/views/SendInternalView/components/Result.js +14 -14
  119. package/dist/components/TekWallet/components/views/SendInternalView/components/SelectToken.js +7 -32
  120. package/dist/components/TekWallet/components/views/SendInternalView/components/Summary.js +10 -10
  121. package/dist/components/TekWallet/components/views/SendInternalView/index.js +3 -3
  122. package/dist/components/TekWallet/components/views/SettingView/index.js +4 -13
  123. package/dist/components/TekWallet/components/views/SwapView/components/FromCard/FromCardSkeleton.js +7 -8
  124. package/dist/components/TekWallet/components/views/SwapView/components/FromCard/index.js +20 -25
  125. package/dist/components/TekWallet/components/views/SwapView/components/SelectToken.js +7 -32
  126. package/dist/components/TekWallet/components/views/SwapView/components/Summary.js +36 -39
  127. package/dist/components/TekWallet/components/views/SwapView/components/ToCard/index.js +7 -7
  128. package/dist/components/TekWallet/components/views/SwapView/index.js +12 -10
  129. package/dist/components/TekWallet/hooks/useEventHandler.d.ts +1 -0
  130. package/dist/components/TekWallet/hooks/useEventHandler.js +9 -7
  131. package/dist/components/TekWallet/hooks/useRefetchOnWindowFocused.d.ts +7 -0
  132. package/dist/components/TekWallet/hooks/useRefetchOnWindowFocused.js +144 -0
  133. package/dist/components/TekWallet/hooks/useValidateAmount.js +3 -3
  134. package/dist/components/TekWallet/hooks/useWarningWrongPasscode.js +5 -5
  135. package/dist/components/TekWallet/index.d.ts +2 -0
  136. package/dist/components/TekWallet/index.js +2 -12
  137. package/dist/components/TekWallet/layouts/ChildPageLayout/index.js +3 -3
  138. package/dist/components/TekWallet/providers/ActivitiesProvider/index.js +28 -0
  139. package/dist/components/TekWallet/providers/ActivitiesProvider/type.d.ts +1 -0
  140. package/dist/components/TekWallet/providers/EventHandlerProvider/index.js +11 -1
  141. package/dist/components/TekWallet/providers/RealtimeProvider/index.js +15 -13
  142. package/dist/components/TekWallet/providers/TekWalletProvider/index.d.ts +9 -1
  143. package/dist/components/TekWallet/providers/TekWalletProvider/index.js +11 -4
  144. package/dist/components/TekWallet/providers/index.d.ts +0 -1
  145. package/dist/components/TekWallet/providers/index.js +0 -1
  146. package/dist/components/TekWallet/theme/mui/components/index.d.ts +133 -0
  147. package/dist/components/TekWallet/theme/mui/components/index.js +14 -0
  148. package/dist/components/TekWallet/theme/mui/components/overrides/Button.d.ts +142 -0
  149. package/dist/components/TekWallet/theme/mui/components/overrides/Button.js +84 -0
  150. package/dist/components/TekWallet/theme/mui/components/overrides/Drawer.d.ts +4 -0
  151. package/dist/components/TekWallet/theme/mui/components/overrides/Drawer.js +9 -0
  152. package/dist/components/TekWallet/theme/mui/components/overrides/Paper.d.ts +3 -0
  153. package/dist/components/TekWallet/theme/mui/components/overrides/Paper.js +15 -0
  154. package/dist/components/TekWallet/theme/mui/components/overrides/SnackBar.d.ts +3 -0
  155. package/dist/components/TekWallet/theme/mui/components/overrides/SnackBar.js +32 -0
  156. package/dist/components/TekWallet/theme/mui/fixed-mixins.d.ts +2 -0
  157. package/dist/components/TekWallet/theme/mui/fixed-mixins.js +218 -0
  158. package/dist/components/TekWallet/theme/mui/index.d.ts +3 -3
  159. package/dist/components/TekWallet/theme/mui/index.js +16 -32
  160. package/dist/components/TekWallet/theme/mui/palette.d.ts +34 -0
  161. package/dist/components/TekWallet/theme/mui/palette.js +133 -0
  162. package/dist/components/TekWallet/theme/mui/shadows/index.d.ts +3 -0
  163. package/dist/components/TekWallet/theme/mui/shadows/index.js +64 -0
  164. package/dist/components/TekWallet/theme/mui/spacing.d.ts +1 -0
  165. package/dist/components/TekWallet/theme/mui/spacing.js +5 -0
  166. package/dist/components/TekWallet/theme/mui/theme.d.ts +9 -442
  167. package/dist/components/TekWallet/theme/mui/theme.js +38 -415
  168. package/dist/components/TekWallet/theme/mui/type.d.ts +5 -0
  169. package/dist/components/TekWallet/theme/mui/type.js +9 -0
  170. package/dist/components/TekWallet/theme/mui/typography.d.ts +27 -0
  171. package/dist/components/TekWallet/theme/mui/typography.js +30 -0
  172. package/dist/components/TekWallet/theme/mui/utils/deepMergeTheme.d.ts +2 -0
  173. package/dist/components/TekWallet/theme/mui/utils/deepMergeTheme.js +7 -0
  174. package/dist/components/TekWallet/utils/getContractColor.d.ts +1 -0
  175. package/dist/components/TekWallet/utils/getContractColor.js +30 -0
  176. package/package.json +1 -1
  177. package/dist/components/TekWallet/components/ui/CardHistorySwap/index.d.ts +0 -12
  178. package/dist/components/TekWallet/components/ui/CardHistorySwap/index.js +0 -75
  179. package/dist/components/TekWallet/components/ui/DetailSwapResult/index.d.ts +0 -8
  180. package/dist/components/TekWallet/components/ui/DetailSwapResult/index.js +0 -122
  181. package/dist/components/TekWallet/components/ui/HistorySwap/index.d.ts +0 -16
  182. package/dist/components/TekWallet/components/ui/HistorySwap/index.js +0 -434
  183. package/dist/components/TekWallet/components/ui/SwapFunction/index.d.ts +0 -16
  184. package/dist/components/TekWallet/components/ui/SwapFunction/index.js +0 -271
  185. package/dist/components/TekWallet/components/ui/SwapToken/index.d.ts +0 -31
  186. package/dist/components/TekWallet/components/ui/SwapToken/index.js +0 -293
  187. package/dist/components/TekWallet/providers/ThemeProvider/index.d.ts +0 -8
  188. package/dist/components/TekWallet/providers/ThemeProvider/index.js +0 -43
  189. package/dist/components/TekWallet/theme/mui/deposit-fiat-theme/components.d.ts +0 -3
  190. package/dist/components/TekWallet/theme/mui/deposit-fiat-theme/components.js +0 -158
  191. package/dist/components/TekWallet/theme/mui/deposit-fiat-theme/palette.d.ts +0 -55
  192. package/dist/components/TekWallet/theme/mui/deposit-fiat-theme/palette.js +0 -45
  193. package/dist/components/TekWallet/theme/mui/deposit-fiat-theme/theme.d.ts +0 -2
  194. package/dist/components/TekWallet/theme/mui/deposit-fiat-theme/theme.js +0 -13
  195. package/dist/components/TekWallet/theme/mui/deposit-fiat-theme/typography.d.ts +0 -39
  196. package/dist/components/TekWallet/theme/mui/deposit-fiat-theme/typography.js +0 -65
@@ -29,7 +29,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
29
29
  exports.FeesStyle = void 0;
30
30
  var jsx_runtime_1 = require("react/jsx-runtime");
31
31
  var material_1 = require("@mui/material");
32
- var ThemeProvider_1 = require("../../../providers/ThemeProvider");
32
+ var mui_1 = require("../../../theme/mui");
33
33
  var Icon_1 = __importDefault(require("../Icon"));
34
34
  var Text_1 = __importDefault(require("../Text"));
35
35
  var Formatter_1 = __importDefault(require("../Formatter"));
@@ -44,7 +44,7 @@ var FeesStyle;
44
44
  })(FeesStyle || (exports.FeesStyle = FeesStyle = {}));
45
45
  function Fees(props) {
46
46
  var sx = props.sx, amount = props.amount, feesData = props.feesData, isFeePaidByAmount = props.isFeePaidByAmount, tokenSlug = props.tokenSlug, setIsEnoughBalanceToPayFee = props.setIsEnoughBalanceToPayFee, feesStyle = props.feesStyle, estimateReceive = props.estimateReceive, rest = __rest(props, ["sx", "amount", "feesData", "isFeePaidByAmount", "tokenSlug", "setIsEnoughBalanceToPayFee", "feesStyle", "estimateReceive"]);
47
- var theme = (0, ThemeProvider_1.useTheme)();
47
+ var theme = (0, mui_1.useTheme)();
48
48
  // const feesData = parsePropsData<FeesDataType>(feesDataString);
49
49
  var tokens = (0, useWalletData_1.default)().tokens;
50
50
  var getBalanceUseToPaidFee = (0, react_1.useCallback)(function (tokenSlugMustBePaidFee) {
@@ -94,63 +94,63 @@ function Fees(props) {
94
94
  var totalFeeInCurrency = (0, react_1.useMemo)(function () {
95
95
  return feesData === null || feesData === void 0 ? void 0 : feesData.fee_in_currency;
96
96
  }, [feesData]);
97
- return ((0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: !!isChargeFee && ((0, jsx_runtime_1.jsxs)(material_1.Accordion, __assign({ defaultExpanded: true }, rest, { disableGutters: true, sx: __assign(__assign({}, getStyled(feesStyle !== null && feesStyle !== void 0 ? feesStyle : FeesStyle.DEFAULT, theme)), sx), children: [(0, jsx_runtime_1.jsx)(material_1.AccordionSummary, { expandIcon: (0, jsx_runtime_1.jsx)(Icon_1.default, { src: (0, getIcon_1.default)("arrow_down"), width: 8, height: 8 }), children: (0, jsx_runtime_1.jsxs)(material_1.Box, { sx: __assign(__assign({}, theme.mixins.row), { width: "100%" }), children: [(0, jsx_runtime_1.jsx)(Text_1.default, { sx: {
97
+ return ((0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: !!isChargeFee && ((0, jsx_runtime_1.jsxs)(material_1.Accordion, __assign({ defaultExpanded: true }, rest, { disableGutters: true, sx: __assign(__assign({}, getStyled(feesStyle !== null && feesStyle !== void 0 ? feesStyle : FeesStyle.DEFAULT, theme)), sx), children: [(0, jsx_runtime_1.jsx)(material_1.AccordionSummary, { expandIcon: (0, jsx_runtime_1.jsx)(Icon_1.default, { src: (0, getIcon_1.default)("arrow_down"), width: 8, height: 8 }), children: (0, jsx_runtime_1.jsxs)(material_1.Box, { sx: __assign(__assign({}, theme.styleMixins.row), { width: "100%" }), children: [(0, jsx_runtime_1.jsx)(Text_1.default, { sx: {
98
98
  fontSize: theme.typography.fontSize11,
99
99
  fontWeight: theme.typography.fontWeight500,
100
- color: theme.palette.text.black,
100
+ color: theme.palette.text.primary,
101
101
  }, children: "Total fees" }), (0, jsx_runtime_1.jsx)(material_1.Box, { sx: {
102
102
  borderTop: "1px dashed",
103
- borderColor: theme.palette.border.accent,
103
+ borderColor: theme.palette.divider,
104
104
  flex: 1,
105
105
  height: "1px",
106
106
  width: "100%",
107
- ml: theme.mixins.gaps.g8,
108
- mr: theme.mixins.gaps.g8,
107
+ ml: theme.styleMixins.gaps.g8,
108
+ mr: theme.styleMixins.gaps.g8,
109
109
  } }), (0, jsx_runtime_1.jsx)(Formatter_1.default, { sx: {
110
110
  fontSize: theme.typography.fontSize13,
111
111
  fontWeight: theme.typography.fontWeight500,
112
- color: theme.palette.text.black,
113
- }, value: totalFeeInCurrency, unit: " ".concat(tokenSlug.toUpperCase()), disableTooltip: true }), (0, jsx_runtime_1.jsx)(material_1.Box, { sx: __assign(__assign({}, theme.mixins.row), { width: "0.5rem" }) })] }) }), (0, jsx_runtime_1.jsx)(material_1.AccordionDetails, { children: (0, jsx_runtime_1.jsxs)(material_1.Box, { sx: __assign(__assign({}, theme.mixins.column), { gap: theme.mixins.gaps.g8, pt: theme.mixins.gaps.g12 }), children: [(0, jsx_runtime_1.jsx)(material_1.Box, { sx: __assign(__assign({}, theme.mixins.row), { alignItems: "stretch" }), children: (0, jsx_runtime_1.jsx)(material_1.Box, { sx: __assign(__assign({}, theme.mixins.column), { flex: 1, gap: theme.mixins.gaps.g8 }), children: feeCheckedBalance === null || feeCheckedBalance === void 0 ? void 0 : feeCheckedBalance.map(function (item, index) {
112
+ color: theme.palette.text.primary,
113
+ }, value: totalFeeInCurrency, unit: " ".concat(tokenSlug.toUpperCase()), disableTooltip: true }), (0, jsx_runtime_1.jsx)(material_1.Box, { sx: __assign(__assign({}, theme.styleMixins.row), { width: "0.5rem" }) })] }) }), (0, jsx_runtime_1.jsx)(material_1.AccordionDetails, { children: (0, jsx_runtime_1.jsxs)(material_1.Box, { sx: __assign(__assign({}, theme.styleMixins.column), { gap: theme.styleMixins.gaps.g8, pt: theme.styleMixins.gaps.g12 }), children: [(0, jsx_runtime_1.jsx)(material_1.Box, { sx: __assign(__assign({}, theme.styleMixins.row), { alignItems: "stretch" }), children: (0, jsx_runtime_1.jsx)(material_1.Box, { sx: __assign(__assign({}, theme.styleMixins.column), { flex: 1, gap: theme.styleMixins.gaps.g8 }), children: feeCheckedBalance === null || feeCheckedBalance === void 0 ? void 0 : feeCheckedBalance.map(function (item, index) {
114
114
  var _a, _b, _c, _d;
115
115
  return ((0, jsx_runtime_1.jsxs)(react_1.Fragment, { children: [index !== 0 && ((0, jsx_runtime_1.jsx)(material_1.Box, { sx: {
116
- borderRight: "1px dashed ".concat(theme.palette.border.accent),
116
+ borderRight: "1px dashed ".concat(theme.palette.divider),
117
117
  width: "1px",
118
118
  height: "1rem",
119
- pr: theme.mixins.gaps.g6,
119
+ pr: theme.styleMixins.gaps.g6,
120
120
  } })), (0, jsx_runtime_1.jsx)(FeeDetails, { feeName: (_a = item.fee_type) === null || _a === void 0 ? void 0 : _a.name, fee_in_currency: item.fee_in_currency, fee_in_usd: item.fee_in_usd, currencyName: (_b = item.currency) === null || _b === void 0 ? void 0 : _b.name }, (_c = item.fee_type) === null || _c === void 0 ? void 0 : _c.name)] }, (_d = item.fee_type) === null || _d === void 0 ? void 0 : _d.name));
121
- }) }) }), isNotEnoughBalanceToPayFee && ((0, jsx_runtime_1.jsx)(Text_1.default, { sx: __assign({}, theme.mixins.validationError), children: "ⓘ Insufficient transaction fee!" })), (0, jsx_runtime_1.jsx)(material_1.Divider, { sx: {
122
- borderColor: theme.palette.border.black16,
123
- my: theme.mixins.gaps.g4,
124
- } }), estimateReceive !== undefined && ((0, jsx_runtime_1.jsxs)(material_1.Box, { sx: __assign(__assign({}, theme.mixins.row), { justifyContent: "space-between" }), children: [(0, jsx_runtime_1.jsx)(Text_1.default, { sx: {
121
+ }) }) }), isNotEnoughBalanceToPayFee && ((0, jsx_runtime_1.jsx)(Text_1.default, { sx: __assign({}, theme.styleMixins.validationError), children: "ⓘ Insufficient transaction fee!" })), (0, jsx_runtime_1.jsx)(material_1.Divider, { sx: {
122
+ borderColor: theme.palette.divider,
123
+ my: theme.styleMixins.gaps.g4,
124
+ } }), estimateReceive !== undefined && ((0, jsx_runtime_1.jsxs)(material_1.Box, { sx: __assign(__assign({}, theme.styleMixins.row), { justifyContent: "space-between" }), children: [(0, jsx_runtime_1.jsx)(Text_1.default, { sx: {
125
125
  fontSize: theme.typography.fontSize11,
126
126
  fontWeight: theme.typography.fontWeight500,
127
127
  lineHeight: theme.typography.leading160,
128
128
  }, children: "Receive amount estimated" }), (0, jsx_runtime_1.jsx)(Formatter_1.default, { sx: {
129
129
  fontSize: theme.typography.fontSize16,
130
130
  fontWeight: theme.typography.fontWeight700,
131
- color: theme.palette.text.black,
131
+ color: theme.palette.text.primary,
132
132
  }, unit: " ".concat(tokenSlug.toUpperCase()), value: estimateReceive })] }))] }) })] }))) }));
133
133
  }
134
134
  exports.default = Fees;
135
135
  var FeeDetails = function (_a) {
136
136
  var feeName = _a.feeName, fee_in_currency = _a.fee_in_currency, fee_in_usd = _a.fee_in_usd, currencyName = _a.currencyName;
137
- var theme = (0, ThemeProvider_1.useTheme)();
138
- return ((0, jsx_runtime_1.jsxs)(material_1.Box, { sx: __assign(__assign({}, theme.mixins.row), { gap: theme.mixins.gaps.g4, alignItems: "center", justifyContent: "space-between" }), children: [(0, jsx_runtime_1.jsx)(material_1.SvgIcon, { sx: { width: 14, height: 14 }, children: SvgPath_1.IC_TIMELINE_DOT }), (0, jsx_runtime_1.jsx)(Text_1.default, { sx: {
137
+ var theme = (0, mui_1.useTheme)();
138
+ return ((0, jsx_runtime_1.jsxs)(material_1.Box, { sx: __assign(__assign({}, theme.styleMixins.row), { gap: theme.styleMixins.gaps.g4, alignItems: "center", justifyContent: "space-between" }), children: [(0, jsx_runtime_1.jsx)(material_1.SvgIcon, { sx: { width: 14, height: 14 }, children: SvgPath_1.IC_TIMELINE_DOT }), (0, jsx_runtime_1.jsx)(Text_1.default, { sx: {
139
139
  fontSize: theme.typography.fontSize11,
140
140
  fontWeight: theme.typography.fontWeight500,
141
141
  lineHeight: theme.typography.leading160,
142
- color: theme.palette.text.accent,
143
- pl: theme.mixins.gaps.g12,
142
+ color: theme.palette.text.secondary,
143
+ pl: theme.styleMixins.gaps.g12,
144
144
  whiteSpace: "nowrap",
145
145
  flex: 1,
146
- }, children: feeName }), (0, jsx_runtime_1.jsxs)(material_1.Box, { sx: __assign(__assign({}, theme.mixins.column), { width: "fit-content", alignItems: "flex-end" }), children: [(0, jsx_runtime_1.jsx)(Formatter_1.default, { sx: {
146
+ }, children: feeName }), (0, jsx_runtime_1.jsxs)(material_1.Box, { sx: __assign(__assign({}, theme.styleMixins.column), { width: "fit-content", alignItems: "flex-end" }), children: [(0, jsx_runtime_1.jsx)(Formatter_1.default, { sx: {
147
147
  fontSize: theme.typography.fontSize13,
148
148
  fontWeight: theme.typography.fontWeight500,
149
- color: theme.palette.text.black,
149
+ color: theme.palette.text.primary,
150
150
  }, value: fee_in_currency, unit: " ".concat(currencyName), disableTooltip: true }), (0, jsx_runtime_1.jsx)(Formatter_1.default, { sx: {
151
151
  fontSize: theme.typography.fontSize11,
152
152
  fontWeight: theme.typography.fontWeight500,
153
- color: theme.palette.text.black,
153
+ color: theme.palette.text.primary,
154
154
  }, value: fee_in_usd, unit: " $" })] })] }));
155
155
  };
156
156
  var getStyled = function (style, theme) {
@@ -192,8 +192,8 @@ var getStyled = function (style, theme) {
192
192
  "&.MuiAccordion-root": {
193
193
  backgroundColor: theme.palette.background.tertiary,
194
194
  margin: 0,
195
- padding: theme.mixins.customPadding.p16,
196
- borderRadius: theme.mixins.customRadius.r16,
195
+ padding: theme.styleMixins.customPadding.p16,
196
+ borderRadius: theme.styleMixins.customRadius.r16,
197
197
  border: "none",
198
198
  boxShadow: "none",
199
199
  },
@@ -29,7 +29,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
29
29
  exports.FeesStyle = void 0;
30
30
  var jsx_runtime_1 = require("react/jsx-runtime");
31
31
  var material_1 = require("@mui/material");
32
- var ThemeProvider_1 = require("../../../providers/ThemeProvider");
32
+ var mui_1 = require("../../../theme/mui");
33
33
  var Icon_1 = __importDefault(require("../Icon"));
34
34
  var Text_1 = __importDefault(require("../Text"));
35
35
  var Formatter_1 = __importDefault(require("../Formatter"));
@@ -44,7 +44,7 @@ var FeesStyle;
44
44
  })(FeesStyle || (exports.FeesStyle = FeesStyle = {}));
45
45
  function Fees(props) {
46
46
  var sx = props.sx, amount = props.amount, feesData = props.feesData, isFeePaidByAmount = props.isFeePaidByAmount, tokenSlug = props.tokenSlug, setIsEnoughBalanceToPayFee = props.setIsEnoughBalanceToPayFee, feesStyle = props.feesStyle, estimateReceive = props.estimateReceive, rest = __rest(props, ["sx", "amount", "feesData", "isFeePaidByAmount", "tokenSlug", "setIsEnoughBalanceToPayFee", "feesStyle", "estimateReceive"]);
47
- var theme = (0, ThemeProvider_1.useTheme)();
47
+ var theme = (0, mui_1.useTheme)();
48
48
  // const feesData = parsePropsData<FeesDataType>(feesDataString);
49
49
  var tokens = (0, useWalletData_1.default)().tokens;
50
50
  var getBalanceUseToPaidFee = (0, react_1.useCallback)(function (tokenSlugMustBePaidFee) {
@@ -94,63 +94,62 @@ function Fees(props) {
94
94
  var totalFeeInCurrency = (0, react_1.useMemo)(function () {
95
95
  return feesData === null || feesData === void 0 ? void 0 : feesData.fee_in_currency;
96
96
  }, [feesData]);
97
- return ((0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: !!isChargeFee && ((0, jsx_runtime_1.jsxs)(material_1.Accordion, __assign({ defaultExpanded: true }, rest, { disableGutters: true, sx: __assign(__assign({}, getStyled(feesStyle !== null && feesStyle !== void 0 ? feesStyle : FeesStyle.DEFAULT, theme)), sx), children: [(0, jsx_runtime_1.jsx)(material_1.AccordionSummary, { expandIcon: (0, jsx_runtime_1.jsx)(Icon_1.default, { src: (0, getIcon_1.default)("arrow_down"), width: 8, height: 8 }), children: (0, jsx_runtime_1.jsxs)(material_1.Box, { sx: __assign(__assign({}, theme.mixins.row), { width: "100%" }), children: [(0, jsx_runtime_1.jsx)(Text_1.default, { sx: {
97
+ return ((0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: !!isChargeFee && ((0, jsx_runtime_1.jsxs)(material_1.Accordion, __assign({ defaultExpanded: true }, rest, { disableGutters: true, sx: __assign(__assign({}, getStyled(feesStyle !== null && feesStyle !== void 0 ? feesStyle : FeesStyle.DEFAULT, theme)), sx), children: [(0, jsx_runtime_1.jsx)(material_1.AccordionSummary, { expandIcon: (0, jsx_runtime_1.jsx)(Icon_1.default, { src: (0, getIcon_1.default)("arrow_down"), width: 8, height: 8 }), children: (0, jsx_runtime_1.jsxs)(material_1.Box, { sx: __assign(__assign({}, theme.styleMixins.row), { width: "100%" }), children: [(0, jsx_runtime_1.jsx)(Text_1.default, { sx: {
98
98
  fontSize: theme.typography.fontSize11,
99
99
  fontWeight: theme.typography.fontWeight500,
100
- color: theme.palette.text.black,
100
+ color: theme.palette.text.primary,
101
101
  }, children: "Total fees" }), (0, jsx_runtime_1.jsx)(material_1.Box, { sx: {
102
102
  borderTop: "1px dashed",
103
- borderColor: theme.palette.border.accent,
103
+ borderColor: theme.palette.divider,
104
104
  flex: 1,
105
105
  height: "1px",
106
106
  width: "100%",
107
- ml: theme.mixins.gaps.g8,
108
- mr: theme.mixins.gaps.g8,
107
+ ml: theme.styleMixins.gaps.g8,
108
+ mr: theme.styleMixins.gaps.g8,
109
109
  } }), (0, jsx_runtime_1.jsx)(Formatter_1.default, { sx: {
110
110
  fontSize: theme.typography.fontSize13,
111
111
  fontWeight: theme.typography.fontWeight500,
112
- color: theme.palette.text.black,
113
- }, value: totalFeeInCurrency, unit: " ".concat(tokenSlug.toUpperCase()), disableTooltip: true }), (0, jsx_runtime_1.jsx)(material_1.Box, { sx: __assign(__assign({}, theme.mixins.row), { width: "0.5rem" }) })] }) }), (0, jsx_runtime_1.jsx)(material_1.AccordionDetails, { children: (0, jsx_runtime_1.jsxs)(material_1.Box, { sx: __assign(__assign({}, theme.mixins.column), { gap: theme.mixins.gaps.g8, pt: theme.mixins.gaps.g12 }), children: [(0, jsx_runtime_1.jsx)(material_1.Box, { sx: __assign(__assign({}, theme.mixins.row), { alignItems: "stretch" }), children: (0, jsx_runtime_1.jsx)(material_1.Box, { sx: __assign(__assign({}, theme.mixins.column), { flex: 1, gap: theme.mixins.gaps.g8 }), children: feeCheckedBalance === null || feeCheckedBalance === void 0 ? void 0 : feeCheckedBalance.map(function (item, index) {
112
+ color: theme.palette.text.primary,
113
+ }, value: totalFeeInCurrency, unit: " ".concat(tokenSlug.toUpperCase()), disableTooltip: true }), (0, jsx_runtime_1.jsx)(material_1.Box, { sx: __assign(__assign({}, theme.styleMixins.row), { width: "0.5rem" }) })] }) }), (0, jsx_runtime_1.jsx)(material_1.AccordionDetails, { children: (0, jsx_runtime_1.jsxs)(material_1.Box, { sx: __assign(__assign({}, theme.styleMixins.column), { gap: theme.styleMixins.gaps.g8, pt: theme.styleMixins.gaps.g12 }), children: [(0, jsx_runtime_1.jsx)(material_1.Box, { sx: __assign(__assign({}, theme.styleMixins.row), { alignItems: "stretch" }), children: (0, jsx_runtime_1.jsx)(material_1.Box, { sx: __assign(__assign({}, theme.styleMixins.column), { flex: 1, gap: theme.styleMixins.gaps.g8 }), children: feeCheckedBalance === null || feeCheckedBalance === void 0 ? void 0 : feeCheckedBalance.map(function (item, index) {
114
114
  var _a, _b, _c, _d;
115
115
  return ((0, jsx_runtime_1.jsxs)(react_1.Fragment, { children: [index !== 0 && ((0, jsx_runtime_1.jsx)(material_1.Box, { sx: {
116
- borderRight: "1px dashed ".concat(theme.palette.border.accent),
116
+ borderRight: "1px dashed ".concat(theme.palette.divider),
117
117
  width: "1px",
118
118
  height: "1rem",
119
- pr: theme.mixins.gaps.g6,
119
+ pr: theme.styleMixins.gaps.g6,
120
120
  } })), (0, jsx_runtime_1.jsx)(FeeDetails, { feeName: (_a = item.fee_type) === null || _a === void 0 ? void 0 : _a.name, fee_in_currency: item.fee_in_currency, fee_in_usd: item.fee_in_usd, currencyName: (_b = item.currency) === null || _b === void 0 ? void 0 : _b.name }, (_c = item.fee_type) === null || _c === void 0 ? void 0 : _c.name)] }, (_d = item.fee_type) === null || _d === void 0 ? void 0 : _d.name));
121
- }) }) }), isNotEnoughBalanceToPayFee && ((0, jsx_runtime_1.jsx)(Text_1.default, { sx: __assign({}, theme.mixins.validationError), children: "ⓘ Insufficient transaction fee!" })), (0, jsx_runtime_1.jsx)(material_1.Divider, { sx: {
122
- borderColor: theme.palette.border.black16,
123
- my: theme.mixins.gaps.g4,
124
- } }), estimateReceive !== undefined && ((0, jsx_runtime_1.jsxs)(material_1.Box, { sx: __assign(__assign({}, theme.mixins.row), { justifyContent: "space-between" }), children: [(0, jsx_runtime_1.jsx)(Text_1.default, { sx: {
121
+ }) }) }), isNotEnoughBalanceToPayFee && ((0, jsx_runtime_1.jsx)(Text_1.default, { sx: __assign({}, theme.styleMixins.validationError), children: "ⓘ Insufficient transaction fee!" })), (0, jsx_runtime_1.jsx)(material_1.Divider, { sx: {
122
+ my: theme.styleMixins.gaps.g4,
123
+ } }), estimateReceive !== undefined && ((0, jsx_runtime_1.jsxs)(material_1.Box, { sx: __assign(__assign({}, theme.styleMixins.row), { justifyContent: "space-between" }), children: [(0, jsx_runtime_1.jsx)(Text_1.default, { sx: {
125
124
  fontSize: theme.typography.fontSize11,
126
125
  fontWeight: theme.typography.fontWeight500,
127
126
  lineHeight: theme.typography.leading160,
128
127
  }, children: "Receive amount estimated" }), (0, jsx_runtime_1.jsx)(Formatter_1.default, { sx: {
129
128
  fontSize: theme.typography.fontSize16,
130
129
  fontWeight: theme.typography.fontWeight700,
131
- color: theme.palette.text.black,
130
+ color: theme.palette.text.primary,
132
131
  }, unit: " ".concat(tokenSlug.toUpperCase()), value: estimateReceive })] }))] }) })] }))) }));
133
132
  }
134
133
  exports.default = Fees;
135
134
  var FeeDetails = function (_a) {
136
135
  var feeName = _a.feeName, fee_in_currency = _a.fee_in_currency, fee_in_usd = _a.fee_in_usd, currencyName = _a.currencyName;
137
- var theme = (0, ThemeProvider_1.useTheme)();
138
- return ((0, jsx_runtime_1.jsxs)(material_1.Box, { sx: __assign(__assign({}, theme.mixins.row), { gap: theme.mixins.gaps.g4, alignItems: "center", justifyContent: "space-between" }), children: [(0, jsx_runtime_1.jsx)(material_1.SvgIcon, { sx: { width: 14, height: 14 }, children: SvgPath_1.IC_TIMELINE_DOT }), (0, jsx_runtime_1.jsx)(Text_1.default, { sx: {
136
+ var theme = (0, mui_1.useTheme)();
137
+ return ((0, jsx_runtime_1.jsxs)(material_1.Box, { sx: __assign(__assign({}, theme.styleMixins.row), { gap: theme.styleMixins.gaps.g4, alignItems: "center", justifyContent: "space-between" }), children: [(0, jsx_runtime_1.jsx)(material_1.SvgIcon, { sx: { width: 14, height: 14 }, children: SvgPath_1.IC_TIMELINE_DOT }), (0, jsx_runtime_1.jsx)(Text_1.default, { sx: {
139
138
  fontSize: theme.typography.fontSize11,
140
139
  fontWeight: theme.typography.fontWeight500,
141
140
  lineHeight: theme.typography.leading160,
142
- color: theme.palette.text.accent,
143
- pl: theme.mixins.gaps.g12,
141
+ color: theme.palette.text.secondary,
142
+ pl: theme.styleMixins.gaps.g12,
144
143
  whiteSpace: "nowrap",
145
144
  flex: 1,
146
- }, children: feeName }), (0, jsx_runtime_1.jsxs)(material_1.Box, { sx: __assign(__assign({}, theme.mixins.column), { width: "fit-content", alignItems: "flex-end" }), children: [(0, jsx_runtime_1.jsx)(Formatter_1.default, { sx: {
145
+ }, children: feeName }), (0, jsx_runtime_1.jsxs)(material_1.Box, { sx: __assign(__assign({}, theme.styleMixins.column), { width: "fit-content", alignItems: "flex-end" }), children: [(0, jsx_runtime_1.jsx)(Formatter_1.default, { sx: {
147
146
  fontSize: theme.typography.fontSize13,
148
147
  fontWeight: theme.typography.fontWeight500,
149
- color: theme.palette.text.black,
148
+ color: theme.palette.text.primary,
150
149
  }, value: fee_in_currency, unit: " ".concat(currencyName), disableTooltip: true }), (0, jsx_runtime_1.jsx)(Formatter_1.default, { sx: {
151
150
  fontSize: theme.typography.fontSize11,
152
151
  fontWeight: theme.typography.fontWeight500,
153
- color: theme.palette.text.black,
152
+ color: theme.palette.text.primary,
154
153
  }, value: fee_in_usd, unit: " $" })] })] }));
155
154
  };
156
155
  var getStyled = function (style, theme) {
@@ -192,8 +191,8 @@ var getStyled = function (style, theme) {
192
191
  "&.MuiAccordion-root": {
193
192
  backgroundColor: theme.palette.background.tertiary,
194
193
  margin: 0,
195
- padding: theme.mixins.customPadding.p16,
196
- borderRadius: theme.mixins.customRadius.r16,
194
+ padding: theme.styleMixins.customPadding.p16,
195
+ borderRadius: theme.styleMixins.customRadius.r16,
197
196
  border: "none",
198
197
  boxShadow: "none",
199
198
  },
@@ -58,15 +58,13 @@ var react_1 = require("react");
58
58
  var html_to_image_1 = require("html-to-image");
59
59
  var Text_1 = __importDefault(require("../../Text"));
60
60
  var style_1 = require("../style");
61
- var palette_1 = require("../../../../theme/mui/deposit-fiat-theme/palette");
62
61
  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" }) })); };
63
62
  exports.SuccessAnimation = SuccessAnimation;
64
63
  exports.default = (0, react_1.memo)(function ShareAction(_a) {
65
64
  var _this = this;
66
- var _b, _c;
67
65
  var data = _a.data, shareRef = _a.shareRef;
68
- var _d = (0, react_1.useState)(false), isDownloading = _d[0], setIsDownloading = _d[1];
69
- var _e = (0, react_1.useState)(false), copySuccess = _e[0], setCopySuccess = _e[1];
66
+ var _b = (0, react_1.useState)(false), isDownloading = _b[0], setIsDownloading = _b[1];
67
+ var _c = (0, react_1.useState)(false), copySuccess = _c[0], setCopySuccess = _c[1];
70
68
  var convertHtml2Img = function () { return __awaiter(_this, void 0, void 0, function () {
71
69
  var _a, _b;
72
70
  var _c;
@@ -157,7 +155,7 @@ exports.default = (0, react_1.memo)(function ShareAction(_a) {
157
155
  color: "#fff",
158
156
  aspectRatio: "1 / 1",
159
157
  background: "#044C2F",
160
- }, 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)(Text_1.default, { sx: __assign({}, style_1.content02), color: (_b = palette_1.palette.positive) === null || _b === void 0 ? void 0 : _b.main, 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: {
158
+ }, 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)(Text_1.default, { sx: __assign({}, style_1.content02), color: "text.primary", 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: {
161
159
  borderRadius: "0.75rem",
162
160
  justifyContent: "center",
163
161
  alignItems: "center",
@@ -167,5 +165,5 @@ exports.default = (0, react_1.memo)(function ShareAction(_a) {
167
165
  color: "#fff",
168
166
  aspectRatio: "1 / 1",
169
167
  background: "#044C2F",
170
- }, 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)(Text_1.default, { sx: __assign({}, style_1.content02), color: (_c = palette_1.palette.positive) === null || _c === void 0 ? void 0 : _c.main, children: copySuccess ? "Copied!" : "Copy link" })] })] }));
168
+ }, 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)(Text_1.default, { sx: __assign({}, style_1.content02), color: "text.primary", children: copySuccess ? "Copied!" : "Copy link" })] })] }));
171
169
  });
@@ -19,18 +19,15 @@ var jsx_runtime_1 = require("react/jsx-runtime");
19
19
  var material_1 = require("@mui/material");
20
20
  var shareImage_1 = __importDefault(require("./shareImage"));
21
21
  var shareAction_1 = __importDefault(require("./shareAction"));
22
- var theme_1 = __importDefault(require("../../../../theme/mui/deposit-fiat-theme/theme"));
23
22
  var react_1 = require("react");
24
23
  var Text_1 = __importDefault(require("../../Text"));
25
24
  var style_1 = require("../style");
26
- var palette_1 = require("../../../../theme/mui/deposit-fiat-theme/palette");
27
25
  function ShareDrawer(_a) {
28
- var _b, _c;
29
26
  var depositData = _a.depositData, count = _a.count, handleRefresh = _a.handleRefresh, onClose = _a.onClose;
30
27
  var shareRef = (0, react_1.useRef)(null);
31
28
  return ((0, jsx_runtime_1.jsxs)(material_1.Stack, { p: "1rem", sx: {
32
- background: theme_1.default.palette.tertiary.main,
29
+ background: "background.tertiary",
33
30
  maxHeight: "70%",
34
31
  overflowY: "auto",
35
- }, 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)(Text_1.default, { sx: __assign({}, style_1.title01), color: (_b = palette_1.palette.positive) === null || _b === void 0 ? void 0 : _b.main, 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)(Text_1.default, { sx: __assign({}, style_1.title01), color: (_c = palette_1.palette.positive) === null || _c === void 0 ? void 0 : _c.main, children: "Share To" }), (0, jsx_runtime_1.jsx)(shareAction_1.default, { data: depositData, shareRef: shareRef })] })] }));
32
+ }, 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)(Text_1.default, { sx: __assign({}, style_1.title01), color: "text.primary", 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)(Text_1.default, { sx: __assign({}, style_1.title01), color: "text.primary", children: "Share To" }), (0, jsx_runtime_1.jsx)(shareAction_1.default, { data: depositData, shareRef: shareRef })] })] }));
36
33
  }
@@ -7,14 +7,13 @@ exports.default = ShareImage;
7
7
  var jsx_runtime_1 = require("react/jsx-runtime");
8
8
  var material_1 = require("@mui/material");
9
9
  var formatter_1 = __importDefault(require("../../Formatter/functions/formatter"));
10
- var theme_1 = __importDefault(require("../../../../theme/mui/deposit-fiat-theme/theme"));
11
10
  var Icon_1 = __importDefault(require("../../Icon"));
12
11
  var Text_1 = __importDefault(require("../../Text"));
13
12
  function ShareImage(_a) {
14
13
  var _b, _c;
15
14
  var data = _a.data, count = _a.count, handleRefresh = _a.handleRefresh, ref = _a.ref;
16
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: {
17
- background: theme_1.default.palette.negative.main,
16
+ background: "background.default",
18
17
  borderRadius: "0.563rem",
19
18
  gap: "2rem",
20
19
  alignItems: "center",
@@ -64,16 +64,16 @@ var formatter_1 = __importDefault(require("../Formatter/functions/formatter"));
64
64
  var shareDrawer_1 = __importDefault(require("./components/shareDrawer"));
65
65
  var link_1 = __importDefault(require("next/link"));
66
66
  var DrawerComponent_1 = __importStar(require("../DrawerComponent"));
67
- var theme_1 = __importDefault(require("../../../theme/mui/deposit-fiat-theme/theme"));
68
67
  var Icon_1 = __importDefault(require("../Icon"));
69
68
  var Button_1 = __importStar(require("../Button"));
70
69
  var Text_1 = __importDefault(require("../Text"));
71
70
  var style_1 = require("./style");
72
- var palette_1 = require("../../../theme/mui/deposit-fiat-theme/palette");
73
71
  var type_1 = require("../../../services/axios/get-activities-service/type");
74
72
  var CopyTextComponent_1 = __importDefault(require("../CopyTextComponent"));
75
73
  var Formatter_1 = __importDefault(require("../Formatter"));
76
74
  var PageHeader_1 = __importDefault(require("../PageHeader"));
75
+ var providers_1 = require("../../../providers");
76
+ var mui_1 = require("../../../theme/mui");
77
77
  // Because PageHeader component don't work
78
78
  var BackArrow = function (props) {
79
79
  return ((0, jsx_runtime_1.jsxs)("svg", __assign({ xmlns: "http://www.w3.org/2000/svg", width: "24", height: "24", viewBox: "0 0 24 24", fill: "none" }, props, { children: [(0, jsx_runtime_1.jsx)("mask", { id: "mask0_6061_2295", style: { maskType: "alpha" }, maskUnits: "userSpaceOnUse", x: "0", y: "0", width: "24", height: "24", children: (0, jsx_runtime_1.jsx)("rect", { width: "24", height: "24", fill: "#D9D9D9" }) }), (0, jsx_runtime_1.jsx)("g", { mask: "url(#mask0_6061_2295)", children: (0, jsx_runtime_1.jsx)("path", { d: "M14 17.6538L8.34619 12L14 6.34619L15.0538 7.40002L10.4538 12L15.0538 16.6L14 17.6538Z", fill: "#121212" }) })] })));
@@ -92,22 +92,22 @@ var CopyIcon = function () {
92
92
  };
93
93
  exports.CopyIcon = CopyIcon;
94
94
  function FiatDeposit(_a) {
95
- var _b, _c, _d, _e, _f, _g, _h, _j;
95
+ var _b, _c, _d, _e;
96
96
  var children = _a.children;
97
97
  var amountInputRef = (0, react_1.useRef)(null);
98
- var _k = (0, useWallet_1.default)(), masterWallet = _k.masterWallet, transaction = _k.transaction, receiveExternalTokens = _k.receiveExternalTokens, tokens = _k.tokens;
99
- var _l = (0, react_1.useState)(false), open = _l[0], setOpen = _l[1];
100
- var _m = (0, react_1.useState)(false), openQR = _m[0], setOpenQR = _m[1];
101
- var _o = (0, react_1.useState)(false), openShare = _o[0], setOpenShare = _o[1];
98
+ var _f = (0, useWallet_1.default)(), masterWallet = _f.masterWallet, transaction = _f.transaction, receiveExternalTokens = _f.receiveExternalTokens, tokens = _f.tokens;
99
+ var _g = (0, react_1.useState)(false), open = _g[0], setOpen = _g[1];
100
+ var _h = (0, react_1.useState)(false), openQR = _h[0], setOpenQR = _h[1];
101
+ var _j = (0, react_1.useState)(false), openShare = _j[0], setOpenShare = _j[1];
102
102
  var keyboardId = (0, useUniqueId_1.useUniqueId)("receive-function-keyboard");
103
- var _p = (0, react_1.useState)(""), inputAmount = _p[0], setInputAmount = _p[1];
104
- var _q = (0, react_1.useState)(null), depositData = _q[0], setDepositData = _q[1];
105
- var _r = (0, react_1.useState)(false), loading = _r[0], setLoading = _r[1];
106
- var _s = (0, react_1.useState)(null), error = _s[0], setError = _s[1];
107
- var _t = (0, react_1.useState)(false), copySuccess = _t[0], setCopySuccess = _t[1];
108
- var _u = (0, usehooks_ts_1.useCountdown)({
103
+ var _k = (0, react_1.useState)(""), inputAmount = _k[0], setInputAmount = _k[1];
104
+ var _l = (0, react_1.useState)(null), depositData = _l[0], setDepositData = _l[1];
105
+ var _m = (0, react_1.useState)(false), loading = _m[0], setLoading = _m[1];
106
+ var _o = (0, react_1.useState)(null), error = _o[0], setError = _o[1];
107
+ var _p = (0, react_1.useState)(false), copySuccess = _p[0], setCopySuccess = _p[1];
108
+ var _q = (0, usehooks_ts_1.useCountdown)({
109
109
  countStart: 600,
110
- }), count = _u[0], _v = _u[1], startCountdown = _v.startCountdown, resetCountdown = _v.resetCountdown;
110
+ }), count = _q[0], _r = _q[1], startCountdown = _r.startCountdown, resetCountdown = _r.resetCountdown;
111
111
  var handleChangeAmount = function (value) {
112
112
  var amountNumber = Number(value);
113
113
  if (isNaN(amountNumber)) {
@@ -185,6 +185,8 @@ function FiatDeposit(_a) {
185
185
  }
186
186
  // eslint-disable-next-line react-hooks/exhaustive-deps
187
187
  }, [inputAmount]);
188
+ var keyboardThemeMode = (0, providers_1.useKeyboardThemeMode)();
189
+ var theme = (0, mui_1.useTheme)();
188
190
  return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)("span", { onClick: function (e) {
189
191
  e.stopPropagation();
190
192
  setOpen(true);
@@ -196,27 +198,27 @@ function FiatDeposit(_a) {
196
198
  }, title: "Top up", overrideBack: function () {
197
199
  setOpen(false);
198
200
  setInputAmount("");
199
- } }), (0, jsx_runtime_1.jsx)(xhub_keyboard_1.Keyboard, { id: keyboardId, onChange: handleChangeAmount, keyboardType: xhub_keyboard_1.KeyboardType.Double, value: inputAmount === null || inputAmount === void 0 ? void 0 : inputAmount.toString(), keyboardId: "amount-keyboard-id", classNames: {
201
+ } }), (0, jsx_runtime_1.jsx)(xhub_keyboard_1.Keyboard, { theme: keyboardThemeMode, id: keyboardId, onChange: handleChangeAmount, keyboardType: xhub_keyboard_1.KeyboardType.Double, value: inputAmount === null || inputAmount === void 0 ? void 0 : inputAmount.toString(), keyboardId: "amount-keyboard-id", classNames: {
200
202
  children: "fc",
201
203
  }, styles: {
202
204
  container: {
203
205
  height: "100%",
204
206
  },
205
207
  }, children: (0, jsx_runtime_1.jsxs)(material_1.Stack, { height: "100%", flexDirection: "column", children: [(0, jsx_runtime_1.jsx)(material_1.Stack, { height: 0, flex: 1, p: "1rem", children: (0, jsx_runtime_1.jsxs)(material_1.Stack, { flexDirection: "column", p: "1rem", sx: {
206
- backgroundColor: theme_1.default.palette.tertiary.main,
208
+ backgroundColor: "background.tertiary",
207
209
  border: "1px solid",
208
- borderColor: theme_1.default.palette.accent3.main,
210
+ borderColor: "palette.divider",
209
211
  borderRadius: "1rem",
210
212
  gap: "0.5rem",
211
213
  opacity: loading ? 0.5 : 1,
212
214
  pointerEvents: loading ? "none" : "auto",
213
- }, children: [(0, jsx_runtime_1.jsx)(Text_1.default, { sx: __assign({}, style_1.title02), color: (_b = palette_1.palette.positive) === null || _b === void 0 ? void 0 : _b.main, children: "You Pay" }), (0, jsx_runtime_1.jsx)(xhub_keyboard_1.Label, { htmlFor: keyboardId, children: (0, jsx_runtime_1.jsx)(xhub_keyboard_1.Input, { autoFocus: true, alwaysFocus: true, ref: amountInputRef, elementsAcceptIds: ["amount-keyboard-id"], value: inputAmount === null || inputAmount === void 0 ? void 0 : inputAmount.toString(), displayType: xhub_keyboard_1.DisplayType.Double, styles: {
215
+ }, children: [(0, jsx_runtime_1.jsx)(Text_1.default, { sx: __assign({}, style_1.title02), color: "text.primary", children: "You Pay" }), (0, jsx_runtime_1.jsx)(xhub_keyboard_1.Label, { htmlFor: keyboardId, children: (0, jsx_runtime_1.jsx)(xhub_keyboard_1.Input, { autoFocus: true, alwaysFocus: true, ref: amountInputRef, elementsAcceptIds: ["amount-keyboard-id"], value: inputAmount === null || inputAmount === void 0 ? void 0 : inputAmount.toString(), displayType: xhub_keyboard_1.DisplayType.Double, styles: {
214
216
  container: {
215
- border: "1px solid ".concat(error ? theme_1.default.palette.error.main : theme_1.default.palette.primary.main),
217
+ border: "1px solid ".concat(error ? theme.palette.error.main : theme.palette.primary.main),
216
218
  },
217
219
  }, rightElement: (0, jsx_runtime_1.jsxs)(material_1.Stack, { flexDirection: "row", alignItems: "center", gap: "4px", flexShrink: 0, pl: "1rem", children: [(0, jsx_runtime_1.jsx)(Icon_1.default, { alt: "", width: 16, height: 16, sx: {
218
220
  borderRadius: "999px",
219
- }, src: (_d = (_c = tokens === null || tokens === void 0 ? void 0 : tokens.find(function (item) { return item.currency_slug.toLocaleLowerCase() === "vnd"; })) === null || _c === void 0 ? void 0 : _c.currency.link) !== null && _d !== void 0 ? _d : "/" }), (0, jsx_runtime_1.jsx)(Text_1.default, { sx: __assign({}, style_1.title03), color: (_e = palette_1.palette.accent2) === null || _e === void 0 ? void 0 : _e.main, children: "VND" })] }) }) }), error && ((0, jsx_runtime_1.jsxs)(Text_1.default, { sx: __assign({}, style_1.content02), display: "flex", alignItems: "center", gap: "4px", className: "text-error", children: [(0, jsx_runtime_1.jsx)("svg", { 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: "M7 5.25V7.4375M12.25 7C12.25 7.68944 12.1142 8.37213 11.8504 9.00909C11.5865 9.64605 11.1998 10.2248 10.7123 10.7123C10.2248 11.1998 9.64605 11.5865 9.00909 11.8504C8.37213 12.1142 7.68944 12.25 7 12.25C6.31056 12.25 5.62787 12.1142 4.99091 11.8504C4.35395 11.5865 3.7752 11.1998 3.28769 10.7123C2.80018 10.2248 2.41347 9.64605 2.14963 9.00909C1.8858 8.37213 1.75 7.68944 1.75 7C1.75 5.60761 2.30312 4.27226 3.28769 3.28769C4.27226 2.30312 5.60761 1.75 7 1.75C8.39239 1.75 9.72774 2.30312 10.7123 3.28769C11.6969 4.27226 12.25 5.60761 12.25 7ZM7 9.1875H7.00467V9.19217H7V9.1875Z", stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round" }) }), error] }))] }) }), (0, jsx_runtime_1.jsx)(material_1.Stack, { pt: "12px", id: "input-amount-action", children: (0, jsx_runtime_1.jsx)(material_1.Box, { px: "1rem", pb: "1.5rem", children: (0, jsx_runtime_1.jsx)(Button_1.default.Primary, { status: !!error || !inputAmount
221
+ }, src: (_c = (_b = tokens === null || tokens === void 0 ? void 0 : tokens.find(function (item) { return item.currency_slug.toLocaleLowerCase() === "vnd"; })) === null || _b === void 0 ? void 0 : _b.currency.link) !== null && _c !== void 0 ? _c : "/" }), (0, jsx_runtime_1.jsx)(Text_1.default, { sx: __assign({}, style_1.title03), color: "text.primary", children: "VND" })] }) }) }), error && ((0, jsx_runtime_1.jsxs)(Text_1.default, { sx: __assign({}, style_1.content02), display: "flex", alignItems: "center", gap: "4px", className: "text-error", children: [(0, jsx_runtime_1.jsx)("svg", { 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: "M7 5.25V7.4375M12.25 7C12.25 7.68944 12.1142 8.37213 11.8504 9.00909C11.5865 9.64605 11.1998 10.2248 10.7123 10.7123C10.2248 11.1998 9.64605 11.5865 9.00909 11.8504C8.37213 12.1142 7.68944 12.25 7 12.25C6.31056 12.25 5.62787 12.1142 4.99091 11.8504C4.35395 11.5865 3.7752 11.1998 3.28769 10.7123C2.80018 10.2248 2.41347 9.64605 2.14963 9.00909C1.8858 8.37213 1.75 7.68944 1.75 7C1.75 5.60761 2.30312 4.27226 3.28769 3.28769C4.27226 2.30312 5.60761 1.75 7 1.75C8.39239 1.75 9.72774 2.30312 10.7123 3.28769C11.6969 4.27226 12.25 5.60761 12.25 7ZM7 9.1875H7.00467V9.19217H7V9.1875Z", stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round" }) }), error] }))] }) }), (0, jsx_runtime_1.jsx)(material_1.Stack, { pt: "12px", id: "input-amount-action", children: (0, jsx_runtime_1.jsx)(material_1.Box, { px: "1rem", pb: "1.5rem", children: (0, jsx_runtime_1.jsx)(Button_1.default.Primary, { status: !!error || !inputAmount
220
222
  ? Button_1.BUTTON_STATUS.DISABLED
221
223
  : loading
222
224
  ? Button_1.BUTTON_STATUS.LOADING
@@ -225,12 +227,12 @@ function FiatDeposit(_a) {
225
227
  setOpenQR(false);
226
228
  setInputAmount("");
227
229
  } }), (0, jsx_runtime_1.jsxs)(material_1.Stack, { height: "100%", p: "1rem", pt: "26%", children: [(0, jsx_runtime_1.jsx)(material_1.Stack, { height: 0, flex: 1, width: "100%", children: (0, jsx_runtime_1.jsxs)(material_1.Stack, { alignItems: "center", p: "1rem", sx: {
228
- backgroundColor: theme_1.default.palette.tertiary.main,
230
+ backgroundColor: "background.tertiary",
229
231
  border: "1px solid",
230
- borderColor: theme_1.default.palette.accent3.main,
232
+ borderColor: "palette.divider",
231
233
  borderRadius: "1rem",
232
234
  gap: "0.75rem",
233
- }, children: [(0, jsx_runtime_1.jsxs)(material_1.Box, { position: "relative", width: "45%", mt: "-25%", sx: { aspectRatio: "1 / 1" }, children: [(0, jsx_runtime_1.jsx)(Icon_1.default, { src: (_f = depositData === null || depositData === void 0 ? void 0 : depositData.qr_code) !== null && _f !== void 0 ? _f : "/", sx: {
235
+ }, children: [(0, jsx_runtime_1.jsxs)(material_1.Box, { position: "relative", width: "45%", mt: "-25%", sx: { aspectRatio: "1 / 1" }, children: [(0, jsx_runtime_1.jsx)(Icon_1.default, { src: (_d = depositData === null || depositData === void 0 ? void 0 : depositData.qr_code) !== null && _d !== void 0 ? _d : "/", sx: {
234
236
  position: "absolute",
235
237
  inset: 0,
236
238
  }, style: { filter: count === 0 ? "blur(6px)" : "none" } }), count === 0 && ((0, jsx_runtime_1.jsx)(material_1.Stack, { direction: "row", position: "absolute", alignItems: "center", justifyContent: "center", sx: {
@@ -243,16 +245,16 @@ function FiatDeposit(_a) {
243
245
  display: "flex",
244
246
  alignItems: "center",
245
247
  flexDirection: "column",
246
- color: theme_1.default.palette.primary.main,
248
+ color: "text.primary",
247
249
  }, children: [(0, jsx_runtime_1.jsx)(Formatter_1.default, { value: depositData === null || depositData === void 0 ? void 0 : depositData.amount, unit: "VND", hideUnitOutSide: true }), (0, jsx_runtime_1.jsx)(Text_1.default, { sx: {
248
250
  fontSize: "0.938rem",
249
251
  fontWeight: 500,
250
252
  lineHeight: "140%",
251
- }, children: "VND" })] }), (0, jsx_runtime_1.jsxs)(Text_1.default, { display: "flex", alignItems: "center", gap: "0.375rem", sx: __assign({}, style_1.title03), color: (_g = palette_1.palette.accent2) === null || _g === void 0 ? void 0 : _g.main, children: ["Top up time left", (0, jsx_runtime_1.jsx)(TimeText_1.default, { seconds: count }), (0, jsx_runtime_1.jsx)("svg", { 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: "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: "#044C2F", strokeLinecap: "round", strokeLinejoin: "round" }) })] }), (0, jsx_runtime_1.jsx)(material_1.Divider, { flexItem: true }), (0, jsx_runtime_1.jsxs)(Text_1.default, { display: "flex", flexDirection: "column", alignItems: "center", gap: "0.375rem", sx: __assign({}, style_1.title01), children: [depositData === null || depositData === void 0 ? void 0 : depositData.metadata.bank_account.account_name, (0, jsx_runtime_1.jsx)(Text_1.default, { sx: __assign({}, style_1.content02), color: (_h = palette_1.palette.accent2) === null || _h === void 0 ? void 0 : _h.main, children: depositData === null || depositData === void 0 ? void 0 : depositData.metadata.bank_account.bank_name }), (0, jsx_runtime_1.jsx)(Text_1.default, { sx: __assign({}, style_1.title02), display: "flex", alignItems: "center", gap: "0.25rem", children: (0, jsx_runtime_1.jsxs)(CopyTextComponent_1.default, { sx: {
253
+ }, children: "VND" })] }), (0, jsx_runtime_1.jsxs)(Text_1.default, { display: "flex", alignItems: "center", gap: "0.375rem", sx: __assign({}, style_1.title03), color: "text.primary", children: ["Top up time left", (0, jsx_runtime_1.jsx)(TimeText_1.default, { seconds: count }), (0, jsx_runtime_1.jsx)("svg", { 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: "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: "#044C2F", strokeLinecap: "round", strokeLinejoin: "round" }) })] }), (0, jsx_runtime_1.jsx)(material_1.Divider, { flexItem: true }), (0, jsx_runtime_1.jsxs)(Text_1.default, { display: "flex", flexDirection: "column", alignItems: "center", gap: "0.375rem", sx: __assign({}, style_1.title01), children: [depositData === null || depositData === void 0 ? void 0 : depositData.metadata.bank_account.account_name, (0, jsx_runtime_1.jsx)(Text_1.default, { sx: __assign({}, style_1.content02), color: "text.primary", children: depositData === null || depositData === void 0 ? void 0 : depositData.metadata.bank_account.bank_name }), (0, jsx_runtime_1.jsx)(Text_1.default, { sx: __assign({}, style_1.title02), display: "flex", alignItems: "center", gap: "0.25rem", children: (0, jsx_runtime_1.jsxs)(CopyTextComponent_1.default, { sx: {
252
254
  display: "flex",
253
255
  alignItems: "center",
254
256
  gap: 1,
255
- }, value: (depositData === null || depositData === void 0 ? void 0 : depositData.metadata.bank_account.account_number) || "", children: [depositData === null || depositData === void 0 ? void 0 : depositData.metadata.bank_account.account_number, " ", (0, jsx_runtime_1.jsx)(exports.CopyIcon, {})] }) }), (0, jsx_runtime_1.jsx)(link_1.default, { href: (_j = depositData === null || depositData === void 0 ? void 0 : depositData._link.payment_link.href) !== null && _j !== void 0 ? _j : "#", target: "_blank", rel: "noopener noreferrer", style: {
257
+ }, value: (depositData === null || depositData === void 0 ? void 0 : depositData.metadata.bank_account.account_number) || "", children: [depositData === null || depositData === void 0 ? void 0 : depositData.metadata.bank_account.account_number, " ", (0, jsx_runtime_1.jsx)(exports.CopyIcon, {})] }) }), (0, jsx_runtime_1.jsx)(link_1.default, { href: (_e = depositData === null || depositData === void 0 ? void 0 : depositData._link.payment_link.href) !== null && _e !== void 0 ? _e : "#", target: "_blank", rel: "noopener noreferrer", style: {
256
258
  marginTop: "-0.5rem",
257
259
  }, children: (0, jsx_runtime_1.jsx)(Text_1.default, { sx: __assign(__assign({}, style_1.content02), { textDecoration: "underline", fontStyle: "italic" }), children: "Transfer" }) })] })] }) }), (0, jsx_runtime_1.jsx)(material_1.Box, { pt: "0.75rem", pb: "1rem", width: "100%", children: (0, jsx_runtime_1.jsx)(Button_1.default.Primary, { disabled: loading, loading: loading, onClick: function () {
258
260
  if (count === 0) {
@@ -68,6 +68,7 @@ var Formatter = function (_a) {
68
68
  ]);
69
69
  var trigger = valueDisplay();
70
70
  return ((0, jsx_runtime_1.jsx)(CustomTooltip_1.default, { disabled: disableTooltip, trigger: value ? addUnit(trigger) : trigger, sx: {
71
+ display: "inline-block",
71
72
  "& .MuiPaper-root": {
72
73
  whiteSpace: "nowrap",
73
74
  backdropFilter: "blur(10px)",
@@ -76,6 +77,8 @@ var Formatter = function (_a) {
76
77
  fontSize: "1.05em",
77
78
  fontWeight: 500,
78
79
  lineHeight: "100%",
80
+ backgroundColor: "background.popover",
81
+ display: "inline-block",
79
82
  },
80
83
  }, children: (0, jsx_runtime_1.jsx)(exports.Formatter, { disableTooltip: true, start: start, value: value, lengthValueAllowed: 12, useCompact: false, unit: unit, allowShowZero: true, isNotCurrency: isNotCurrency }) }));
81
84
  };
@@ -16,15 +16,14 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  var jsx_runtime_1 = require("react/jsx-runtime");
18
18
  var material_1 = require("@mui/material");
19
- var ThemeProvider_1 = require("../../../providers/ThemeProvider");
19
+ var mui_1 = require("../../../theme/mui");
20
20
  var Icon_1 = __importDefault(require("../Icon"));
21
21
  var Text_1 = __importDefault(require("../Text"));
22
22
  var FunctionItem = function (props) {
23
- var theme = (0, ThemeProvider_1.useTheme)();
24
- return ((0, jsx_runtime_1.jsxs)(material_1.Box, { sx: __assign(__assign(__assign({}, theme.mixins.column), { alignItems: "center", gap: theme.mixins.gaps.g4 }), props.sx), children: [(0, jsx_runtime_1.jsx)(Icon_1.default, { iconKey: props.icon, alt: "", sx: {
25
- borderRadius: theme.mixins.customRadius.full,
23
+ var theme = (0, mui_1.useTheme)();
24
+ return ((0, jsx_runtime_1.jsxs)(material_1.Box, { sx: __assign(__assign(__assign({}, theme.styleMixins.column), { alignItems: "center", gap: theme.styleMixins.gaps.g4, color: theme.palette.primary.main }), props.sx), children: [(0, jsx_runtime_1.jsx)(Icon_1.default, { iconKey: props.icon, alt: "", sx: {
25
+ borderRadius: theme.styleMixins.customRadius.full,
26
26
  }, width: 24 }), (0, jsx_runtime_1.jsx)(Text_1.default, { sx: {
27
- color: theme.palette.text.primary,
28
27
  fontSize: theme.typography.fontSize11,
29
28
  lineHeight: theme.typography.leading140,
30
29
  fontWeight: theme.typography.fontWeight600,
@@ -68,6 +68,6 @@ var Icon = function (props) {
68
68
  if (src) {
69
69
  return ((0, jsx_runtime_1.jsx)(material_1.Box, __assign({ component: "img", src: src, alt: alt, onClick: onClick }, rest, { sx: __assign({ display: "block", width: ((_a = width !== null && width !== void 0 ? width : height) !== null && _a !== void 0 ? _a : false) ? "".concat((width || height || 0) / 16, "rem") : "auto", height: ((_b = height !== null && height !== void 0 ? height : width) !== null && _b !== void 0 ? _b : false) ? "".concat((height || width || 0) / 16, "rem") : "auto" }, sx) })));
70
70
  }
71
- return ((0, jsx_runtime_1.jsx)(material_1.SvgIcon, __assign({}, rest, { sx: __assign({ width: ((_c = width !== null && width !== void 0 ? width : height) !== null && _c !== void 0 ? _c : false) ? "".concat((width || height || 0) / 16, "rem") : "auto", height: ((_d = height !== null && height !== void 0 ? height : width) !== null && _d !== void 0 ? _d : false) ? "".concat((height || width || 0) / 16, "rem") : "auto" }, sx), children: icon })));
71
+ return ((0, jsx_runtime_1.jsx)(material_1.SvgIcon, __assign({}, rest, { onClick: onClick, sx: __assign({ width: ((_c = width !== null && width !== void 0 ? width : height) !== null && _c !== void 0 ? _c : false) ? "".concat((width || height || 0) / 16, "rem") : "auto", height: ((_d = height !== null && height !== void 0 ? height : width) !== null && _d !== void 0 ? _d : false) ? "".concat((height || width || 0) / 16, "rem") : "auto", display: "block" }, sx), children: icon })));
72
72
  };
73
73
  exports.default = Icon;
@@ -18,9 +18,9 @@ exports.default = IconText;
18
18
  var jsx_runtime_1 = require("react/jsx-runtime");
19
19
  var Text_1 = __importDefault(require("../Text"));
20
20
  var material_1 = require("@mui/material");
21
- var ThemeProvider_1 = require("../../../providers/ThemeProvider");
21
+ var mui_1 = require("../../../theme/mui");
22
22
  function IconText(props) {
23
23
  var title = props.title, beforeIcon = props.beforeIcon, afterIcon = props.afterIcon, sx = props.sx;
24
- var theme = (0, ThemeProvider_1.useTheme)();
25
- return ((0, jsx_runtime_1.jsxs)(material_1.Box, { sx: __assign(__assign({}, theme.mixins.row), { gap: theme.mixins.gaps.g8 }), children: [beforeIcon && beforeIcon, (0, jsx_runtime_1.jsx)(Text_1.default, { sx: __assign({}, sx), children: title }), afterIcon && afterIcon] }));
24
+ var theme = (0, mui_1.useTheme)();
25
+ return ((0, jsx_runtime_1.jsxs)(material_1.Box, { sx: __assign(__assign({}, theme.styleMixins.row), { gap: theme.styleMixins.gaps.g8 }), children: [beforeIcon && beforeIcon, (0, jsx_runtime_1.jsx)(Text_1.default, { sx: __assign({}, sx), children: title }), afterIcon && afterIcon] }));
26
26
  }