@rango-dev/ui 0.1.13 → 0.1.14-next.10

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 (225) hide show
  1. package/CHANGELOG.md +11 -0
  2. package/dist/components/Alert/Alert.d.ts +7 -7
  3. package/dist/components/Alert/Alert.stories.d.ts +7 -5
  4. package/dist/components/Alert/LoadingFailedAlert.d.ts +2 -2
  5. package/dist/components/Alert/NotFoundAlert.d.ts +7 -7
  6. package/dist/components/Alert/index.d.ts +2 -2
  7. package/dist/components/BestRoute/BestRoute.d.ts +15 -12
  8. package/dist/components/BestRoute/BestRoute.stories.d.ts +9 -8
  9. package/dist/components/BestRoute/index.d.ts +1 -1
  10. package/dist/components/BestRoute/mock.d.ts +4 -4
  11. package/dist/components/BlockchainSelector/BlockchainSelector.d.ts +17 -17
  12. package/dist/components/BlockchainSelector/BlockchainSelector.stories.d.ts +6 -5
  13. package/dist/components/BlockchainSelector/index.d.ts +1 -1
  14. package/dist/components/BlockchainsList/BlockchainsList.d.ts +10 -10
  15. package/dist/components/BlockchainsList/BlockchainsList.stories.d.ts +6 -5
  16. package/dist/components/BlockchainsList/index.d.ts +1 -1
  17. package/dist/components/BlockchainsList/mockData.d.ts +2 -2
  18. package/dist/components/Button/Button.d.ts +17 -17
  19. package/dist/components/Button/Button.stories.d.ts +9 -8
  20. package/dist/components/Button/index.d.ts +1 -1
  21. package/dist/components/Checkbox/Checkbox.d.ts +11 -11
  22. package/dist/components/Checkbox/Checkbox.stories.d.ts +6 -5
  23. package/dist/components/Checkbox/index.d.ts +1 -1
  24. package/dist/components/Chip/Chip.d.ts +12 -12
  25. package/dist/components/Chip/Chip.stories.d.ts +8 -7
  26. package/dist/components/Chip/index.d.ts +1 -1
  27. package/dist/components/ColorPicker/ColorPicker.d.ts +9 -9
  28. package/dist/components/ColorPicker/ColorPicker.stories.d.ts +6 -5
  29. package/dist/components/ColorPicker/index.d.ts +1 -1
  30. package/dist/components/ConnectWalletsModal/ConnectWallets.stories.d.ts +6 -5
  31. package/dist/components/ConnectWalletsModal/ConnectWalletsModal.d.ts +11 -11
  32. package/dist/components/ConnectWalletsModal/index.d.ts +1 -1
  33. package/dist/components/ConnectWalletsModal/mockData.d.ts +2 -2
  34. package/dist/components/Divider/Divider.d.ts +6 -6
  35. package/dist/components/Divider/index.d.ts +1 -1
  36. package/dist/components/Drawer/Drawer.d.ts +13 -13
  37. package/dist/components/Drawer/Drawer.stories.d.ts +9 -8
  38. package/dist/components/Drawer/index.d.ts +1 -1
  39. package/dist/components/Header/Header.d.ts +9 -9
  40. package/dist/components/Header/index.d.ts +1 -1
  41. package/dist/components/Icon/AddCircleIcon.d.ts +3 -3
  42. package/dist/components/Icon/AddIcon.d.ts +3 -3
  43. package/dist/components/Icon/AddWalletIcon.d.ts +3 -3
  44. package/dist/components/Icon/AngleDownIcon.d.ts +3 -3
  45. package/dist/components/Icon/AngleLeftIcon.d.ts +3 -3
  46. package/dist/components/Icon/AngleRightIcon.d.ts +3 -3
  47. package/dist/components/Icon/AngleUpIcon.d.ts +3 -3
  48. package/dist/components/Icon/ArrowRightIcon.d.ts +3 -3
  49. package/dist/components/Icon/BagIcon.d.ts +3 -3
  50. package/dist/components/Icon/BanIcon.d.ts +3 -3
  51. package/dist/components/Icon/CheckCircleIcon.d.ts +3 -3
  52. package/dist/components/Icon/CheckIcon.d.ts +3 -3
  53. package/dist/components/Icon/CheckSquareIcon.d.ts +3 -3
  54. package/dist/components/Icon/CheckWalletIcon.d.ts +3 -3
  55. package/dist/components/Icon/ChevronRightIcon.d.ts +3 -3
  56. package/dist/components/Icon/CloseIcon.d.ts +112 -1
  57. package/dist/components/Icon/CopyIcon.d.ts +3 -3
  58. package/dist/components/Icon/DeleteCircleIcon.d.ts +3 -3
  59. package/dist/components/Icon/DeleteWalletIcon.d.ts +3 -3
  60. package/dist/components/Icon/DisconnectIcon.d.ts +3 -3
  61. package/dist/components/Icon/DownloadIcon.d.ts +3 -3
  62. package/dist/components/Icon/GasIcon.d.ts +3 -3
  63. package/dist/components/Icon/HistoryIcon.d.ts +3 -3
  64. package/dist/components/Icon/HorizontalSwapIcon.d.ts +3 -3
  65. package/dist/components/Icon/Icons.stories.d.ts +6 -5
  66. package/dist/components/Icon/InfoCircleIcon.d.ts +3 -3
  67. package/dist/components/Icon/MinusCircleIcon.d.ts +3 -3
  68. package/dist/components/Icon/RetryIcon.d.ts +3 -3
  69. package/dist/components/Icon/RetryLeftIcon.d.ts +3 -3
  70. package/dist/components/Icon/RetryRightIcon.d.ts +3 -3
  71. package/dist/components/Icon/SearchIcon.d.ts +3 -3
  72. package/dist/components/Icon/SearchMinusIcon.d.ts +3 -3
  73. package/dist/components/Icon/SettingIcon.d.ts +3 -3
  74. package/dist/components/Icon/SignatureIcon.d.ts +3 -3
  75. package/dist/components/Icon/SwapWalletIcon.d.ts +3 -3
  76. package/dist/components/Icon/TimeIcon.d.ts +3 -3
  77. package/dist/components/Icon/TrashIcon.d.ts +3 -3
  78. package/dist/components/Icon/TryAgainIcon.d.ts +3 -3
  79. package/dist/components/Icon/VerticalSwapIcon.d.ts +3 -3
  80. package/dist/components/Icon/WalletIconIcon.d.ts +3 -3
  81. package/dist/components/Icon/WarningIcon.d.ts +3 -3
  82. package/dist/components/Icon/common.d.ts +228 -2
  83. package/dist/components/Icon/index.d.ts +40 -40
  84. package/dist/components/Icon/types.d.ts +7 -7
  85. package/dist/components/LiquiditySourceList/LiquiditySource.stories.d.ts +6 -5
  86. package/dist/components/LiquiditySourceList/LiquiditySourceList.d.ts +11 -11
  87. package/dist/components/LiquiditySourceList/index.d.ts +1 -1
  88. package/dist/components/LiquiditySourceList/mockData.d.ts +2 -2
  89. package/dist/components/LiquiditySourcesSelector/LiquiditySourcesSelector.d.ts +13 -13
  90. package/dist/components/LiquiditySourcesSelector/LiquiditySourcesSelector.stories.d.ts +6 -5
  91. package/dist/components/LiquiditySourcesSelector/index.d.ts +1 -1
  92. package/dist/components/Modal/Modal.d.ts +11 -11
  93. package/dist/components/Modal/Modal.stories.d.ts +6 -5
  94. package/dist/components/Modal/index.d.ts +1 -1
  95. package/dist/components/Radio/Radio.d.ts +13 -13
  96. package/dist/components/Radio/Radio.stories.d.ts +6 -5
  97. package/dist/components/Radio/index.d.ts +1 -1
  98. package/dist/components/SecondaryPage/SecondaryPage.d.ts +16 -16
  99. package/dist/components/SecondaryPage/SecondaryPage.stories.d.ts +4 -2
  100. package/dist/components/SecondaryPage/index.d.ts +1 -1
  101. package/dist/components/SelectableWalletList/SelectableWalletList.d.ts +7 -7
  102. package/dist/components/SelectableWalletList/SelectableWalletList.stories.d.ts +6 -5
  103. package/dist/components/SelectableWalletList/index.d.ts +1 -1
  104. package/dist/components/SelectableWalletList/mock.d.ts +2 -2
  105. package/dist/components/Settings/Settings.d.ts +24 -23
  106. package/dist/components/Settings/Settings.stories.d.ts +6 -5
  107. package/dist/components/Settings/index.d.ts +1 -1
  108. package/dist/components/Skeleton/Skeleton.d.ts +6 -6
  109. package/dist/components/Skeleton/Skeleton.stories.d.ts +6 -5
  110. package/dist/components/Skeleton/index.d.ts +1 -1
  111. package/dist/components/Spacer/Spacer.d.ts +6 -6
  112. package/dist/components/Spacer/Spacer.stories.d.ts +6 -5
  113. package/dist/components/Spacer/index.d.ts +1 -1
  114. package/dist/components/Spinner/Spinner.d.ts +6 -6
  115. package/dist/components/Spinner/Spinner.stories.d.ts +6 -5
  116. package/dist/components/Spinner/index.d.ts +1 -1
  117. package/dist/components/StatusDrawer/StatusDrawer.d.ts +11 -11
  118. package/dist/components/StatusDrawer/StatusDrawer.stories.d.ts +6 -5
  119. package/dist/components/StatusDrawer/index.d.ts +1 -1
  120. package/dist/components/StepDetail/StepDetail.d.ts +12 -12
  121. package/dist/components/StepDetail/StepDetail.stories.d.ts +6 -5
  122. package/dist/components/StepDetail/index.d.ts +1 -1
  123. package/dist/components/SwapContainer/SwapContainer.d.ts +7 -7
  124. package/dist/components/SwapContainer/SwapContainer.stories.d.ts +6 -5
  125. package/dist/components/SwapContainer/index.d.ts +1 -1
  126. package/dist/components/SwapDetail/SwapDetail.d.ts +8 -8
  127. package/dist/components/SwapDetail/SwapDetail.stories.d.ts +6 -5
  128. package/dist/components/SwapDetail/Token.d.ts +17 -17
  129. package/dist/components/SwapDetail/index.d.ts +1 -1
  130. package/dist/components/SwapDetail/mock.d.ts +2 -2
  131. package/dist/components/Switch/Switch.d.ts +6 -6
  132. package/dist/components/Switch/Switch.stories.d.ts +6 -5
  133. package/dist/components/Switch/index.d.ts +1 -1
  134. package/dist/components/TextField/TextField.d.ts +10 -10
  135. package/dist/components/TextField/TextField.stories.d.ts +8 -7
  136. package/dist/components/TextField/index.d.ts +1 -1
  137. package/dist/components/TokenList/TokenItem.d.ts +11 -11
  138. package/dist/components/TokenList/TokenList.d.ts +17 -17
  139. package/dist/components/TokenList/TokenList.stories.d.ts +6 -5
  140. package/dist/components/TokenList/index.d.ts +1 -1
  141. package/dist/components/TokenList/mockData.d.ts +2 -2
  142. package/dist/components/TokenSelector/TokenSelector.d.ts +124 -14
  143. package/dist/components/TokenSelector/TokenSelector.stories.d.ts +6 -5
  144. package/dist/components/TokenSelector/index.d.ts +1 -1
  145. package/dist/components/Tooltip/Tooltip.d.ts +7 -7
  146. package/dist/components/Tooltip/Tooltip.stories.d.ts +6 -5
  147. package/dist/components/Tooltip/index.d.ts +1 -1
  148. package/dist/components/Typography/Typography.d.ts +18 -18
  149. package/dist/components/Typography/Typography.stories.d.ts +6 -5
  150. package/dist/components/Typography/index.d.ts +1 -1
  151. package/dist/components/VirtualizedList/VirtualizedList.d.ts +17 -17
  152. package/dist/components/Wallet/State.d.ts +7 -7
  153. package/dist/components/Wallet/Wallet.d.ts +7 -7
  154. package/dist/components/Wallet/Wallet.stories.d.ts +6 -5
  155. package/dist/components/Wallet/index.d.ts +1 -1
  156. package/dist/components/common/FilledCircle.d.ts +111 -1
  157. package/dist/components/common/Image.d.ts +6 -6
  158. package/dist/components/common/index.d.ts +2 -2
  159. package/dist/components/index.d.ts +31 -31
  160. package/dist/containers/ConfirmSwap/ConfirmSwap.d.ts +22 -22
  161. package/dist/containers/ConfirmSwap/ConfirmSwap.stories.d.ts +7 -6
  162. package/dist/containers/ConfirmSwap/index.d.ts +1 -1
  163. package/dist/containers/ConfirmSwap/mock.d.ts +5 -5
  164. package/dist/containers/History/History.d.ts +6 -6
  165. package/dist/containers/History/History.stories.d.ts +6 -5
  166. package/dist/containers/History/SwapsGroup.d.ts +13 -13
  167. package/dist/containers/History/index.d.ts +3 -2
  168. package/dist/containers/History/mock.d.ts +2 -2
  169. package/dist/containers/History/types.d.ts +39 -39
  170. package/dist/containers/SwapHistory/SwapHistory.d.ts +1128 -24
  171. package/dist/containers/SwapHistory/SwapHistory.stories.d.ts +6 -5
  172. package/dist/containers/SwapHistory/SwapMessages.d.ts +17 -17
  173. package/dist/containers/SwapHistory/index.d.ts +1 -1
  174. package/dist/containers/SwapHistory/mock.d.ts +2 -2
  175. package/dist/containers/index.d.ts +3 -3
  176. package/dist/helper/index.d.ts +6 -3
  177. package/dist/hooks/index.d.ts +1 -1
  178. package/dist/hooks/useCopyToClipboard.d.ts +1 -1
  179. package/dist/index.d.ts +6 -5
  180. package/dist/index.js +20 -8
  181. package/dist/index.js.map +7 -0
  182. package/dist/theme.d.ts +928 -8
  183. package/dist/types/index.d.ts +2 -2
  184. package/dist/types/meta.d.ts +23 -23
  185. package/dist/types/swaps.d.ts +29 -29
  186. package/dist/types/wallet.d.ts +23 -23
  187. package/package.json +10 -34
  188. package/src/components/Alert/Alert.tsx +2 -2
  189. package/src/components/BestRoute/BestRoute.tsx +4 -3
  190. package/src/components/Button/Button.tsx +42 -42
  191. package/src/components/Checkbox/Checkbox.tsx +2 -0
  192. package/src/components/Chip/Chip.tsx +1 -1
  193. package/src/components/ColorPicker/ColorPicker.stories.tsx +9 -2
  194. package/src/components/ColorPicker/ColorPicker.tsx +34 -10
  195. package/src/components/Icon/common.ts +2 -2
  196. package/src/components/LiquiditySourceList/LiquiditySourceList.tsx +2 -2
  197. package/src/components/Modal/Modal.tsx +3 -2
  198. package/src/components/Radio/Radio.tsx +2 -2
  199. package/src/components/SelectableWalletList/SelectableWalletList.tsx +5 -5
  200. package/src/components/Settings/Settings.tsx +22 -18
  201. package/src/components/Skeleton/Skeleton.tsx +1 -1
  202. package/src/components/Spinner/Spinner.tsx +1 -1
  203. package/src/components/StepDetail/StepDetail.tsx +4 -4
  204. package/src/components/SwapContainer/SwapContainer.tsx +3 -3
  205. package/src/components/SwapDetail/SwapDetail.tsx +1 -1
  206. package/src/components/SwapDetail/Token.tsx +2 -2
  207. package/src/components/Switch/Switch.tsx +2 -2
  208. package/src/components/TextField/TextField.tsx +3 -3
  209. package/src/components/TokenList/TokenItem.tsx +1 -1
  210. package/src/components/Tooltip/Tooltip.tsx +2 -2
  211. package/src/containers/ConfirmSwap/ConfirmSwap.tsx +4 -4
  212. package/src/containers/History/SwapsGroup.tsx +1 -1
  213. package/src/containers/History/index.ts +2 -1
  214. package/src/containers/History/types.tsx +1 -1
  215. package/src/containers/SwapHistory/SwapHistory.tsx +5 -5
  216. package/src/helper/index.ts +75 -0
  217. package/src/index.ts +1 -0
  218. package/src/theme.ts +34 -36
  219. package/src/types/index.ts +1 -1
  220. package/dist/ui.cjs.development.js +0 -5094
  221. package/dist/ui.cjs.development.js.map +0 -1
  222. package/dist/ui.cjs.production.min.js +0 -2
  223. package/dist/ui.cjs.production.min.js.map +0 -1
  224. package/dist/ui.esm.js +0 -5005
  225. package/dist/ui.esm.js.map +0 -1
@@ -1,5 +1,6 @@
1
- /// <reference types="react" />
2
- import { PropTypes } from './SwapHistory';
3
- declare const _default: import("@storybook/csf").ComponentAnnotations<import("@storybook/react").ReactFramework, PropTypes>;
4
- export default _default;
5
- export declare const Main: (args: PropTypes) => JSX.Element;
1
+ /// <reference types="react" />
2
+ import { ComponentMeta } from '@storybook/react';
3
+ import { PropTypes, SwapHistory } from './SwapHistory';
4
+ declare const _default: ComponentMeta<typeof SwapHistory>;
5
+ export default _default;
6
+ export declare const Main: (args: PropTypes) => JSX.Element;
@@ -1,17 +1,17 @@
1
- import React from 'react';
2
- export declare type PropTypes = {
3
- currentStepBlockchain: string;
4
- switchNetwork?: () => Promise<any>;
5
- shortMessage: string;
6
- detailedMessage: {
7
- content: string;
8
- long: boolean;
9
- };
10
- type?: 'success' | 'error' | 'warning' | 'info';
11
- lastConvertedTokenInFailedSwap?: {
12
- symbol: string;
13
- blockchain: string;
14
- outputAmount: string;
15
- };
16
- };
17
- export declare const SwapMessages: React.FC<PropTypes>;
1
+ import React from 'react';
2
+ export type PropTypes = {
3
+ currentStepBlockchain: string;
4
+ switchNetwork?: () => Promise<any>;
5
+ shortMessage: string;
6
+ detailedMessage: {
7
+ content: string;
8
+ long: boolean;
9
+ };
10
+ type?: 'success' | 'error' | 'warning' | 'info';
11
+ lastConvertedTokenInFailedSwap?: {
12
+ symbol: string;
13
+ blockchain: string;
14
+ outputAmount: string;
15
+ };
16
+ };
17
+ export declare const SwapMessages: React.FC<PropTypes>;
@@ -1 +1 @@
1
- export { SwapHistory } from './SwapHistory';
1
+ export { SwapHistory } from './SwapHistory';
@@ -1,2 +1,2 @@
1
- import { PendingSwap } from '../History/types';
2
- export declare const pendingSwap: PendingSwap;
1
+ import { PendingSwap } from '../History/types';
2
+ export declare const pendingSwap: PendingSwap;
@@ -1,3 +1,3 @@
1
- export * from './ConfirmSwap';
2
- export * from './History';
3
- export * from './SwapHistory';
1
+ export * from './ConfirmSwap';
2
+ export * from './History';
3
+ export * from './SwapHistory';
@@ -1,3 +1,6 @@
1
- export declare function containsText(text: string, searchText: string): boolean;
2
- export declare function getConciseAddress(address: string | null, maxChars?: number, ellipsisLength?: number): string | null;
3
- export declare function limitDecimalPlaces(numberString: string, maxDecimalPlaces?: number): string;
1
+ export declare function containsText(text: string, searchText: string): boolean;
2
+ export declare function getConciseAddress(address: string | null, maxChars?: number, ellipsisLength?: number): string | null;
3
+ export declare function limitDecimalPlaces(numberString: string, maxDecimalPlaces?: number): string;
4
+ export declare const generateRangeColors: (name: string, mode: 'light' | 'dark', color?: string) => {
5
+ [x: string]: string | undefined;
6
+ };
@@ -1 +1 @@
1
- export { useCopyToClipboard } from './useCopyToClipboard';
1
+ export { useCopyToClipboard } from './useCopyToClipboard';
@@ -1 +1 @@
1
- export declare function useCopyToClipboard(resetInterval?: number): readonly [boolean, (text: string | number) => void];
1
+ export declare function useCopyToClipboard(resetInterval?: number): readonly [boolean, (text: string | number) => void];
package/dist/index.d.ts CHANGED
@@ -1,5 +1,6 @@
1
- export * from './components';
2
- export * from './containers';
3
- export * from './theme';
4
- export * from './types';
5
- export * from './hooks';
1
+ export * from './components';
2
+ export * from './containers';
3
+ export * from './theme';
4
+ export * from './types';
5
+ export * from './hooks';
6
+ export { generateRangeColors } from './helper';
package/dist/index.js CHANGED
@@ -1,8 +1,20 @@
1
-
2
- 'use strict'
3
-
4
- if (process.env.NODE_ENV === 'production') {
5
- module.exports = require('./ui.cjs.production.min.js')
6
- } else {
7
- module.exports = require('./ui.cjs.development.js')
8
- }
1
+ var qr=Object.defineProperty;var t=(o,e)=>qr(o,"name",{value:e,configurable:!0});import C,{Fragment as ht}from"react";import*as pe from"react";import{createStitches as Vr}from"@stitches/react";var Gr={colors:{primary:"#5FA425",primary100:"#9FC87C",primary200:"#8FBF66",primary300:"#7FB651",primary400:"#6FAD3B",primary500:"#5FA425",primary600:"#4C831E",primary700:"#396216",primary800:"#26420F",primary900:"#132107",surface:"#fff",neutral100:"#f3f3f3",neutral200:"#FAFAFA",neutral300:"#EAEAEA",neutral400:"#999999",neutral500:"#888888",neutral600:"#666666",neutral700:"#444444",neutral800:"#333333",neutral900:"#111111",background:"#fff",foreground:"#000",success:"#0070F3",success100:"#D3E5FF",success300:"#3291FF",success500:"#0070F3",success700:"#0761D1",warning:"#F5A623",warning100:"#FFEFCF",warning300:"#F7B955",warning500:"#F5A623",warning700:"#AB570A",error:"#FF0000",error100:"#F7D4D6",error300:"#FF3333",error500:"#FF0000",error700:"#E60000",white:"#fff"},space:{2:"2px",4:"4px",6:"6px",8:"8px",10:"10px",12:"12px",16:"16px",20:"20px",24:"24px",28:"28px",30:"30px",32:"32px"},fontSizes:{10:"10px",12:"12px",14:"14px",16:"16px",18:"18px",20:"20px",24:"24px",32:"32px",36:"36px",40:"40px",48:"48px"},fonts:{},fontWeights:{400:"400",500:"500",600:"600",700:"700"},lineHeights:{},letterSpacings:{},sizes:{4:"4px",6:"6px",8:"8px",12:"12px",16:"16px",20:"20px",24:"24px",28:"28px",32:"32px",36:"36px",40:"40px",48:"48px"},borderWidths:{},borderStyles:{},radii:{5:"8px",10:"12px"},shadows:{s:"0px 3px 5px 3px #f0f2f5, 0px 6px 10px 3px #f0f2f5, 0px 1px 18px 3px #f0f2f5"},zIndices:{},transitions:{}},Or={sm:"(min-width: 640px)",md:"(min-width: 768px)",lg:"(min-width: 1024px)"},Yr={bc:o=>({backgroundColor:o})},Ur=Vr,{styled:i,css:sa,createTheme:Xe,keyframes:fo,globalCss:pa}=Ur({media:Or,theme:Gr,utils:Yr}),ca=Xe({}),Y=Xe({colors:{surface:"#000",neutral900:"#f3f3f3",neutral800:"#FAFAFA",neutral700:"#EAEAEA",neutral600:"#999999",neutral500:"#888888",neutral400:"#666666",neutral300:"#444444",neutral200:"#333333",neutral100:"#111111",foreground:"#fff",background:"#000"},shadows:{s:"0px 3px 5px 3px #222, 0px 6px 10px 3px #222, 0px 1px 18px 3px #222"}});var g=i("svg",{stroke:"$foreground",variants:{color:{primary:{stroke:"$primary"},error:{stroke:"$error"},warning:{stroke:"$warning"},success:{stroke:"$success"},black:{$$color:"$colors$foreground",[`.${Y} &`]:{$$color:"$colors$background"},stroke:"$$color"},white:{$$color:"$colors$background",[`.${Y} &`]:{$$color:"$colors$foreground"},stroke:"$$color"}},disabled:{true:{stroke:"$neutral400"}}}}),P=i("svg",{fill:"$foreground",variants:{color:{primary:{fill:"$primary"},error:{fill:"$error"},warning:{fill:"$warning"},success:{fill:"$success"},black:{$$color:"$colors$foreground",[`.${Y} &`]:{$$color:"$colors$background"},fill:"$$color"},white:{$$color:"$colors$background",[`.${Y} &`]:{$$color:"$colors$foreground"},fill:"$$color"}},disabled:{true:{stroke:"$neutral400"}}}});var Je=t(({size:o=16,color:e,...r})=>pe.createElement(g,{width:o,height:o,viewBox:"0 0 24 24",color:e,fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"_icon",...r},pe.createElement("path",{d:"M12 22c5.5 0 10-4.5 10-10S17.5 2 12 2 2 6.5 2 12s4.5 10 10 10ZM9.17 14.83l5.66-5.66M14.83 14.83 9.17 9.17",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),"DeleteCircleIcon");Je.toString=()=>"._icon";import*as Ao from"react";var Ke=t(({size:o=16,color:e,...r})=>Ao.createElement(g,{width:o,height:o,viewBox:"0 0 24 24",color:e,fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"_icon",...r},Ao.createElement("path",{d:"M9 22h6c5 0 7-2 7-7V9c0-5-2-7-7-7H9C4 2 2 4 2 9v6c0 5 2 7 7 7Z",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),Ao.createElement("path",{d:"m7.75 12 2.83 2.83 5.67-5.66",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),"CheckSquareIcon");Ke.toString=()=>"._icon";import*as ce from"react";var Do=t(({size:o=16,color:e,...r})=>ce.createElement(g,{width:o,height:o,viewBox:"0 0 24 24",color:e,fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"_icon",...r},ce.createElement("path",{d:"M6 12h12M12 18V6",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),"AddIcon");Do.toString=()=>"._icon";import*as Ho from"react";var yo=t(({size:o=16,color:e,...r})=>Ho.createElement(P,{width:o,height:o,viewBox:"0 0 24 24",color:e,fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"_icon",...r},Ho.createElement("path",{d:"M12 22c5.5 0 10-4.5 10-10S17.5 2 12 2 2 6.5 2 12s4.5 10 10 10ZM12 8v5",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",stroke:"#fff"}),Ho.createElement("path",{d:"M11.994 16h.01",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",stroke:"#fff"})),"InfoCircleIcon");yo.toString=()=>"._icon";import*as de from"react";var Qe=t(({size:o=16,color:e,...r})=>de.createElement(g,{width:o,height:o,viewBox:"0 0 24 24",color:e,fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"_icon",...r},de.createElement("path",{d:"M12 22c5.5 0 10-4.5 10-10S17.5 2 12 2 2 6.5 2 12s4.5 10 10 10ZM8 12h8M12 16V8",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),"AddCircleIcon");Qe.toString=()=>"._icon";import*as me from"react";var Re=t(({size:o=16,color:e,...r})=>me.createElement(g,{width:o,height:o,viewBox:"0 0 24 24",color:e,fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"_icon",...r},me.createElement("path",{d:"M11.92 22c5.5 0 10-4.5 10-10s-4.5-10-10-10-10 4.5-10 10 4.5 10 10 10ZM7.92 12h8",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),"MinusCircleIcon");Re.toString=()=>"._icon";import*as _o from"react";var xo=t(({size:o=16,color:e,...r})=>_o.createElement(P,{width:o,height:o,viewBox:"0 0 24 24",color:e,fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"_icon",...r},_o.createElement("path",{d:"M12 22c5.5 0 10-4.5 10-10S17.5 2 12 2 2 6.5 2 12s4.5 10 10 10Z",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round",stroke:"#fff"}),_o.createElement("path",{d:"m7.75 12 2.83 2.83 5.67-5.66",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round",stroke:"#fff"})),"CheckCircleIcon");xo.toString=()=>"._icon";import*as ge from"react";var Eo=t(({size:o=16,color:e,...r})=>ge.createElement(P,{width:o,height:o,viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",color:e,className:"_icon",...r},ge.createElement("path",{d:"M11.4669 3.72684C11.7558 3.91574 11.8369 4.30308 11.648 4.59198L7.39799 11.092C7.29783 11.2452 7.13556 11.3467 6.95402 11.3699C6.77247 11.3931 6.58989 11.3355 6.45446 11.2124L3.70446 8.71241C3.44905 8.48022 3.43023 8.08494 3.66242 7.82953C3.89461 7.57412 4.28989 7.55529 4.5453 7.78749L6.75292 9.79441L10.6018 3.90792C10.7907 3.61902 11.178 3.53795 11.4669 3.72684Z",fillRule:"evenodd",clipRule:"evenodd"})),"CheckIcon");Eo.toString=()=>"._icon";import*as he from"react";var or=t(({size:o=16,color:e,...r})=>he.createElement(g,{width:o,height:o,viewBox:"0 0 24 24",color:e,fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"_icon",...r},he.createElement("path",{d:"M12 22c5.52 0 10-4.48 10-10S17.52 2 12 2 2 6.48 2 12s4.48 10 10 10ZM18.9 5l-14 14",strokeWidth:1.5,strokeMiterlimit:10,strokeLinecap:"round",strokeLinejoin:"round"})),"BanIcon");or.toString=()=>"._icon";import*as jo from"react";var Zo=t(({size:o=16,color:e,...r})=>jo.createElement(g,{width:o,height:o,viewBox:"0 0 24 24",color:e,fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"_icon",...r},jo.createElement("path",{d:"M12 9v5M12 21.41H5.94c-3.47 0-4.92-2.48-3.24-5.51l3.12-5.62L8.76 5c1.78-3.21 4.7-3.21 6.48 0l2.94 5.29 3.12 5.62c1.68 3.03.22 5.51-3.24 5.51H12v-.01Z",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),jo.createElement("path",{d:"M11.994 17h.01",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})),"WarningIcon");Zo.toString=()=>"._icon";import*as io from"react";var er=t(({size:o=16,color:e,...r})=>io.createElement(g,{width:o,height:o,viewBox:"0 0 24 24",color:e,fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",xmlns:"http://www.w3.org/2000/svg",className:"_icon",...r},io.createElement("path",{d:"M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z"}),io.createElement("polyline",{points:"14 2 14 8 20 8"}),io.createElement("line",{x1:"16",y1:"13",x2:"8",y2:"13"}),io.createElement("line",{x1:"16",y1:"17",x2:"8",y2:"17"}),io.createElement("polyline",{points:"10 9 9 9 8 9"})),"HistoryIcon");er.toString=()=>"._icon";import*as qo from"react";var vo=t(({size:o=16,color:e,...r})=>qo.createElement(g,{width:o,height:o,viewBox:"0 0 24 24",color:e,fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"_icon",...r},qo.createElement("path",{d:"M4 22V5c0-2 1.34-3 3-3h8c1.66 0 3 1 3 3v17H4ZM2.5 22h17",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),qo.createElement("path",{d:"M8.89 10h4.23c1.04 0 1.89-.5 1.89-1.89V6.88c0-1.39-.85-1.89-1.89-1.89H8.89C7.85 4.99 7 5.49 7 6.88v1.23C7 9.5 7.85 10 8.89 10ZM7 13h3M18 16.01l4.5-.01v-6l-2-1",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),"GasIcon");vo.toString=()=>"._icon";import*as Vo from"react";var rr=t(({size:o=16,color:e,...r})=>Vo.createElement(g,{width:o,height:o,viewBox:"0 0 24 24",color:e,stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"_icon",...r},Vo.createElement("circle",{cx:"12",cy:"12",r:"3"}),Vo.createElement("path",{d:"M19.4 15a1.65 1.65 0 0 0 .33 1.82l.06.06a2 2 0 0 1 0 2.83 2 2 0 0 1-2.83 0l-.06-.06a1.65 1.65 0 0 0-1.82-.33 1.65 1.65 0 0 0-1 1.51V21a2 2 0 0 1-2 2 2 2 0 0 1-2-2v-.09A1.65 1.65 0 0 0 9 19.4a1.65 1.65 0 0 0-1.82.33l-.06.06a2 2 0 0 1-2.83 0 2 2 0 0 1 0-2.83l.06-.06a1.65 1.65 0 0 0 .33-1.82 1.65 1.65 0 0 0-1.51-1H3a2 2 0 0 1-2-2 2 2 0 0 1 2-2h.09A1.65 1.65 0 0 0 4.6 9a1.65 1.65 0 0 0-.33-1.82l-.06-.06a2 2 0 0 1 0-2.83 2 2 0 0 1 2.83 0l.06.06a1.65 1.65 0 0 0 1.82.33H9a1.65 1.65 0 0 0 1-1.51V3a2 2 0 0 1 2-2 2 2 0 0 1 2 2v.09a1.65 1.65 0 0 0 1 1.51 1.65 1.65 0 0 0 1.82-.33l.06-.06a2 2 0 0 1 2.83 0 2 2 0 0 1 0 2.83l-.06.06a1.65 1.65 0 0 0-.33 1.82V9a1.65 1.65 0 0 0 1.51 1H21a2 2 0 0 1 2 2 2 2 0 0 1-2 2h-.09a1.65 1.65 0 0 0-1.51 1z"})),"SettingsIcon");rr.toString=()=>"._icon";import*as ue from"react";var tr=t(({size:o=16,color:e,...r})=>ue.createElement(g,{width:o,height:o,viewBox:"0 0 24 24",color:e,fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"_icon",...r},ue.createElement("path",{d:"M21.5 5.98c-3.33-.33-6.68-.5-10.02-.5-1.98 0-3.96.1-5.94.3l-2.04.2M9 4.97l.22-1.31C9.38 2.71 9.5 2 11.19 2h2.62c1.69 0 1.82.75 1.97 1.67l.22 1.3M19.35 9.14l-.65 10.07c-.11 1.57-.2 2.79-2.99 2.79H9.29c-2.79 0-2.88-1.22-2.99-2.79L5.65 9.14M10.83 16.5h3.33M10 12.5h5",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),"TrashIcon");tr.toString=()=>"._icon";import*as fe from"react";var ir=t(({size:o=16,color:e,...r})=>fe.createElement(g,{width:o,height:o,viewBox:"0 0 24 24",color:e,fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"_icon",...r},fe.createElement("path",{d:"M9 11.7h5M11.5 21a9.5 9.5 0 1 0 0-19 9.5 9.5 0 0 0 0 19ZM22 22l-2-2",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),"SearchMinusIcon");ir.toString=()=>"._icon";import*as ye from"react";var Go=t(({size:o=16,color:e,...r})=>ye.createElement(g,{width:o,height:o,viewBox:"0 0 24 24",color:e,fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"_icon",...r},ye.createElement("path",{d:"M11.5 21a9.5 9.5 0 1 0 0-19 9.5 9.5 0 0 0 0 19ZM22 22l-2-2",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),"SearchIcon");Go.toString=()=>"._icon";import*as xe from"react";var Oo=t(({size:o=16,color:e,...r})=>xe.createElement(g,{width:o,height:o,fill:"none",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",color:e,className:"_icon",...r},xe.createElement("path",{d:"m8.91 19.92 6.52-6.52c.77-.77.77-2.03 0-2.8L8.91 4.08",strokeWidth:1.5,strokeMiterlimit:10,strokeLinecap:"round",strokeLinejoin:"round"})),"AngleRightIcon");Oo.toString=()=>"._icon";import*as ve from"react";var nr=t(({size:o=16,color:e,...r})=>ve.createElement(g,{width:o,height:o,fill:"none",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",color:e,className:"_icon",...r},ve.createElement("path",{d:"M19.92 15.05 13.4 8.53c-.77-.77-2.03-.77-2.8 0l-6.52 6.52",strokeWidth:1.5,strokeMiterlimit:10,strokeLinecap:"round",strokeLinejoin:"round"})),"AngleUpIcon");nr.toString=()=>"._icon";import ar from"react";var Yo=t(({size:o=16,color:e,...r})=>ar.createElement(g,{width:o,height:o,viewBox:"0 0 24 24",color:e,fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"_icon",...r},ar.createElement("path",{d:"m19.92 8.95-6.52 6.52c-.77.77-2.03.77-2.8 0L4.08 8.95",strokeWidth:1.5,strokeMiterlimit:10,strokeLinecap:"round",strokeLinejoin:"round"})),"AngleDownIcon");Yo.toString=()=>"._icon";import*as Ce from"react";var Se=t(({size:o=16,color:e,...r})=>Ce.createElement(g,{width:o,height:o,fill:"none",viewBox:"0 0 24 24",color:e,xmlns:"http://www.w3.org/2000/svg",className:"_icon",...r},Ce.createElement("path",{d:"M15 19.92 8.48 13.4c-.77-.77-.77-2.03 0-2.8L15 4.08",strokeWidth:1.5,strokeMiterlimit:10,strokeLinecap:"round",strokeLinejoin:"round"})),"AngleLeftIcon");Yo.toString=()=>"._icon";import*as Uo from"react";var Xo=t(({size:o=16,color:e,...r})=>Uo.createElement(g,{width:o,height:o,viewBox:"0 0 24 24",color:e,fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"_icon",...r},Uo.createElement("path",{d:"M16.44 8.9c3.6.31 5.07 2.16 5.07 6.21v.13c0 4.47-1.79 6.26-6.26 6.26H8.74c-4.47 0-6.26-1.79-6.26-6.26v-.13c0-4.02 1.45-5.87 4.99-6.2M12 2v12.88",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),Uo.createElement("path",{d:"M15.35 12.65 12 16l-3.35-3.35",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),"DownloadIcon");Xo.toString=()=>"._icon";import*as Po from"react";var lr=Po.forwardRef(({color:o="black",size:e=16,...r},n)=>Po.createElement(g,{xmlns:"http://www.w3.org/2000/svg",width:e,height:e,color:o,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:"_icon",...r,ref:n},Po.createElement("polyline",{points:"9 18 15 12 9 6"})));lr.toString=()=>"._icon";import*as Jo from"react";var Ko=t(({size:o=16,color:e,...r})=>Jo.createElement(g,{width:o,height:o,viewBox:"0 0 24 24",color:e,fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",xmlns:"http://www.w3.org/2000/svg",className:"_icon",...r},Jo.createElement("line",{x1:"5",y1:"12",x2:"19",y2:"12"}),Jo.createElement("polyline",{points:"12 5 19 12 12 19"})),"ArrowRightIcon");Ko.toString=()=>"._icon";import*as ke from"react";var sr=t(({size:o=16,color:e,...r})=>ke.createElement(g,{width:o,height:o,viewBox:"0 0 24 24",color:e,fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"_icon",...r},ke.createElement("path",{d:"M14.89 5.08c-.87-.26-1.83-.43-2.89-.43-4.79 0-8.67 3.88-8.67 8.67C3.33 18.12 7.21 22 12 22s8.67-3.88 8.67-8.67c0-1.78-.54-3.44-1.46-4.82M16.13 5.32 13.24 2M16.13 5.32l-3.37 2.46",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),"RetryRightIcon");sr.toString=()=>"._icon";import*as be from"react";var pr=t(({size:o=16,color:e,...r})=>be.createElement(g,{width:o,height:o,viewBox:"0 0 24 24",color:e,fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"_icon",...r},be.createElement("path",{d:"M9.11 5.08c.87-.26 1.83-.43 2.89-.43 4.79 0 8.67 3.88 8.67 8.67s-3.88 8.67-8.67 8.67-8.67-3.88-8.67-8.67c0-1.78.54-3.44 1.46-4.82M7.87 5.32 10.76 2M7.87 5.32l3.37 2.46",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),"RetryLeftIcon");pr.toString=()=>"._icon";import*as we from"react";var cr=t(({size:o=16,color:e,...r})=>we.createElement(g,{width:o,height:o,viewBox:"0 0 24 24",color:e,fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"_icon",...r},we.createElement("path",{d:"M22 12c0 5.52-4.48 10-10 10s-8.89-5.56-8.89-5.56m0 0h4.52m-4.52 0v5M2 12C2 6.48 6.44 2 12 2c6.67 0 10 5.56 10 5.56m0 0v-5m0 5h-4.44",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),"TryAgainIcon");cr.toString=()=>"._icon";import*as Qo from"react";var dr=t(({size:o=16,color:e,...r})=>Qo.createElement(g,{width:o,height:o,viewBox:"0 0 24 24",color:e,fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"_icon",...r},Qo.createElement("path",{d:"m13.82 6.85 3.04 3.04M13.82 17.15V6.85M10.18 17.15l-3.04-3.04M10.18 6.85v10.3",strokeWidth:1.5,strokeMiterlimit:10,strokeLinecap:"round",strokeLinejoin:"round"}),Qo.createElement("path",{d:"M12 22c5.523 0 10-4.477 10-10S17.523 2 12 2 2 6.477 2 12s4.477 10 10 10Z",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),"VerticalSwapIcon");dr.toString=()=>"._icon";import*as Ro from"react";var mr=t(({size:o=16,color:e,...r})=>Ro.createElement(g,{width:o,height:o,viewBox:"0 0 24 24",color:e,fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"_icon",...r},Ro.createElement("path",{d:"m17.15 13.82-3.04 3.04M6.85 13.82h10.3M6.85 10.18l3.04-3.04M17.15 10.18H6.85",strokeWidth:1.5,strokeMiterlimit:10,strokeLinecap:"round",strokeLinejoin:"round"}),Ro.createElement("path",{d:"M12 22c5.523 0 10-4.477 10-10S17.523 2 12 2 2 6.477 2 12s4.477 10 10 10Z",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),"HorizontalSwapIcon");mr.toString=()=>"._icon";import*as Co from"react";var gr=Co.forwardRef(({color:o="black",size:e=16,...r},n)=>Co.createElement(g,{xmlns:"http://www.w3.org/2000/svg",width:e,height:e,color:o,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:"_icon",...r,ref:n},Co.createElement("polyline",{points:"23 4 23 10 17 10"}),Co.createElement("path",{d:"M20.49 15a9 9 0 1 1-2.12-9.36L23 10"})));gr.toString=()=>"._icon";import*as Lo from"react";var hr=t(({size:o=16,color:e,...r})=>Lo.createElement(P,{width:o,height:o,viewBox:"0 0 24 24",color:e,fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"_icon",...r},Lo.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4.51 7.205a3.018 3.018 0 0 0-3.01 3.01v6.73a3.018 3.018 0 0 0 3.01 3.01h11.48a3.018 3.018 0 0 0 3.01-3.01v-.44h-1.15c-1.41 0-2.778-1.03-2.907-2.553a2.758 2.758 0 0 1 .816-2.227 2.743 2.743 0 0 1 1.971-.82H19v-.69a3.018 3.018 0 0 0-3.01-3.01H4.51ZM0 10.215a4.518 4.518 0 0 1 4.51-4.51h11.48a4.518 4.518 0 0 1 4.51 4.51v1.44a.75.75 0 0 1-.75.75h-2.02c-.36 0-.675.14-.903.373l-.013.014c-.266.26-.415.63-.377 1.022v.009c.053.635.664 1.182 1.413 1.182h1.9a.75.75 0 0 1 .75.75v1.19a4.518 4.518 0 0 1-4.51 4.51H4.51A4.518 4.518 0 0 1 0 16.945v-6.73Z"}),Lo.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12.35 2.655a1.15 1.15 0 0 0-1.554-1.079l-7.94 3A2.098 2.098 0 0 0 1.5 6.547v4.569a.75.75 0 1 1-1.5 0v-4.57c0-1.5.922-2.84 2.325-3.371l7.94-3s-.001 0 0 0c1.732-.657 3.585.629 3.585 2.481v3.8a.75.75 0 0 1-1.5 0v-3.8ZM17.729 12.405c-.36 0-.675.14-.903.373l-.013.014c-.266.26-.415.63-.377 1.022v.009c.053.635.664 1.182 1.413 1.182h1.943a.276.276 0 0 0 .267-.27v-2.06a.276.276 0 0 0-.267-.27h-2.063Zm-1.97-.68a2.743 2.743 0 0 1 1.97-.82h2.107a1.777 1.777 0 0 1 1.723 1.77v2.06a1.777 1.777 0 0 1-1.75 1.77h-1.96c-1.41 0-2.778-1.03-2.907-2.553a2.759 2.759 0 0 1 .816-2.227Z"}),Lo.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4.5 10.705a.75.75 0 0 1 .75-.75h7a.75.75 0 0 1 0 1.5h-7a.75.75 0 0 1-.75-.75Z"})),"WalletIcon");hr.toString=()=>"._icon";import*as no from"react";var ur=t(({size:o=16,color:e,...r})=>no.createElement(P,{width:o,height:o,viewBox:"0 0 24 24",color:e,fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"_icon",...r},no.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.569 7.205a3.018 3.018 0 0 0-3.01 3.01v3.076a4.749 4.749 0 0 1 6.5 4.414c0 .808-.206 1.579-.574 2.25h8.564a3.018 3.018 0 0 0 3.01-3.01v-.44h-1.15c-1.41 0-2.778-1.03-2.907-2.553a2.758 2.758 0 0 1 .816-2.227 2.743 2.743 0 0 1 1.97-.82h1.27v-.69a3.018 3.018 0 0 0-3.01-3.01H6.569Zm-4.51 3.01a4.518 4.518 0 0 1 4.51-4.51h11.48a4.518 4.518 0 0 1 4.51 4.51v1.44a.75.75 0 0 1-.75.75h-2.02c-.36 0-.675.14-.903.373l-.014.014c-.266.26-.414.63-.377 1.022l.001.009c.053.635.664 1.182 1.413 1.182h1.9a.75.75 0 0 1 .75.75v1.19a4.518 4.518 0 0 1-4.51 4.51H7.939a.75.75 0 0 1-.482-1.324c.243-.204.457-.457.624-.744l.01-.015a3.17 3.17 0 0 0 .468-1.667 3.249 3.249 0 0 0-5.283-2.533.75.75 0 0 1-1.217-.587v-4.37Z"}),no.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M14.409 2.655a1.15 1.15 0 0 0-1.555-1.078l-7.94 3a2.098 2.098 0 0 0-1.355 1.968v4.57a.75.75 0 0 1-1.5 0v-4.57c0-1.5.921-2.84 2.324-3.371l7.94-3c1.733-.657 3.586.629 3.586 2.481v3.8a.75.75 0 0 1-1.5 0v-3.8ZM19.787 12.405c-.359 0-.674.14-.902.374l-.014.013c-.266.26-.414.63-.377 1.022v.01c.054.634.664 1.181 1.413 1.181h1.943a.276.276 0 0 0 .267-.27v-2.06a.276.276 0 0 0-.267-.27h-2.063Zm-1.97-.68a2.743 2.743 0 0 1 1.97-.82h2.107a1.777 1.777 0 0 1 1.723 1.77v2.06a1.777 1.777 0 0 1-1.75 1.77h-1.96c-1.41 0-2.777-1.03-2.907-2.553a2.759 2.759 0 0 1 .817-2.227Z"}),no.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.559 10.705a.75.75 0 0 1 .75-.75h7a.75.75 0 0 1 0 1.5h-7a.75.75 0 0 1-.75-.75ZM5.309 14.455c-.762 0-1.469.267-2.033.717h-.001a3.22 3.22 0 0 0-1.216 2.533c0 .61.17 1.184.468 1.667l.006.01a3.22 3.22 0 0 0 2.776 1.573 3.155 3.155 0 0 0 2.148-.824c.243-.204.457-.457.624-.744l.01-.015a3.17 3.17 0 0 0 .468-1.667 3.249 3.249 0 0 0-3.25-3.25Zm-2.967-.457a4.749 4.749 0 0 1 7.717 3.707c0 .888-.248 1.73-.687 2.446-.25.427-.57.808-.941 1.12a4.656 4.656 0 0 1-3.122 1.184 4.72 4.72 0 0 1-4.062-2.301 4.671 4.671 0 0 1-.688-2.449 4.72 4.72 0 0 1 1.783-3.707Z"}),no.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3.07 17.685a.75.75 0 0 1 .75-.75H6.8a.75.75 0 0 1 0 1.5H3.82a.75.75 0 0 1-.75-.75Z"}),no.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5.309 15.475a.75.75 0 0 1 .75.75v2.99a.75.75 0 0 1-1.5 0v-2.99a.75.75 0 0 1 .75-.75Z"})),"AddWalletIcon");ur.toString=()=>"._icon";import*as ao from"react";var fr=t(({size:o=16,color:e,...r})=>ao.createElement(P,{width:o,height:o,viewBox:"0 0 24 24",color:e,fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"_icon",...r},ao.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.627 7.205a3.018 3.018 0 0 0-3.01 3.01v3.076a4.749 4.749 0 0 1 6.5 4.414c0 .808-.205 1.579-.573 2.25h8.563a3.018 3.018 0 0 0 3.01-3.01v-.44h-1.15c-1.41 0-2.777-1.03-2.907-2.553a2.759 2.759 0 0 1 .817-2.227 2.743 2.743 0 0 1 1.97-.82h1.27v-.69a3.018 3.018 0 0 0-3.01-3.01H6.627Zm-4.51 3.01a4.518 4.518 0 0 1 4.51-4.51h11.48a4.518 4.518 0 0 1 4.51 4.51v1.44a.75.75 0 0 1-.75.75h-2.02c-.359 0-.675.14-.902.373l-.014.014c-.266.26-.415.63-.377 1.022v.009c.054.635.664 1.182 1.413 1.182h1.9a.75.75 0 0 1 .75.75v1.19a4.518 4.518 0 0 1-4.51 4.51H7.997a.75.75 0 0 1-.482-1.325c.243-.203.457-.456.624-.743l.01-.016a3.17 3.17 0 0 0 .468-1.666 3.249 3.249 0 0 0-5.282-2.533.75.75 0 0 1-1.218-.587v-4.37Z"}),ao.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M14.467 2.655a1.15 1.15 0 0 0-1.554-1.079l-7.94 3a2.098 2.098 0 0 0-1.356 1.97v4.569a.75.75 0 1 1-1.5 0v-4.57c0-1.5.922-2.84 2.325-3.371l7.94-3c1.732-.657 3.585.629 3.585 2.481v3.8a.75.75 0 0 1-1.5 0v-3.8ZM19.846 12.405c-.359 0-.675.14-.903.373l-.013.014c-.266.26-.415.63-.377 1.022v.009c.053.635.664 1.182 1.413 1.182h1.943a.276.276 0 0 0 .267-.27v-2.06a.276.276 0 0 0-.267-.27h-2.063Zm-1.97-.68a2.743 2.743 0 0 1 1.97-.82h2.107a1.777 1.777 0 0 1 1.723 1.77v2.06a1.777 1.777 0 0 1-1.75 1.77h-1.96c-1.41 0-2.778-1.03-2.907-2.553a2.759 2.759 0 0 1 .816-2.227Z"}),ao.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.617 10.705a.75.75 0 0 1 .75-.75h7a.75.75 0 0 1 0 1.5h-7a.75.75 0 0 1-.75-.75ZM5.367 14.455c-.761 0-1.468.267-2.032.717h-.002a3.22 3.22 0 0 0-1.216 2.533c0 .61.17 1.183.469 1.666l.006.01a3.22 3.22 0 0 0 2.775 1.574 3.155 3.155 0 0 0 2.148-.825c.243-.203.457-.456.624-.743l.01-.016a3.17 3.17 0 0 0 .468-1.666 3.249 3.249 0 0 0-3.25-3.25ZM2.4 13.998a4.749 4.749 0 0 1 7.717 3.707 4.67 4.67 0 0 1-.687 2.446c-.25.427-.57.808-.94 1.12a4.655 4.655 0 0 1-3.123 1.184 4.72 4.72 0 0 1-4.061-2.301 4.67 4.67 0 0 1-.689-2.449A4.72 4.72 0 0 1 2.4 13.998Z"}),ao.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3.785 16.106a.75.75 0 0 1 1.06-.003l2.12 2.11a.75.75 0 1 1-1.058 1.064l-2.12-2.11a.75.75 0 0 1-.002-1.061Z"}),ao.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.948 16.136a.75.75 0 0 1-.002 1.06l-2.12 2.11a.75.75 0 0 1-1.058-1.063l2.12-2.11a.75.75 0 0 1 1.06.003Z"})),"DeleteWalletIcon");fr.toString=()=>"._icon";import*as So from"react";var yr=t(({size:o=16,color:e,...r})=>So.createElement(P,{width:o,height:o,viewBox:"0 0 24 24",color:e,fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"_icon",...r},So.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.686 7.205a3.018 3.018 0 0 0-3.01 3.01v3.076a4.749 4.749 0 0 1 6.5 4.414c0 .808-.205 1.579-.573 2.25h8.563a3.018 3.018 0 0 0 3.01-3.01v-.44h-1.15c-1.41 0-2.778-1.03-2.907-2.553a2.758 2.758 0 0 1 .816-2.227 2.743 2.743 0 0 1 1.97-.82h1.27v-.69a3.018 3.018 0 0 0-3.01-3.01H6.686Zm-4.51 3.01a4.518 4.518 0 0 1 4.51-4.51h11.48a4.518 4.518 0 0 1 4.51 4.51v1.44a.75.75 0 0 1-.75.75h-2.02c-.36 0-.675.14-.903.373l-.013.014c-.266.26-.415.63-.378 1.022l.001.009c.053.635.664 1.182 1.413 1.182h1.9a.75.75 0 0 1 .75.75v1.19a4.518 4.518 0 0 1-4.51 4.51H8.056a.75.75 0 0 1-.482-1.324c.243-.204.457-.457.624-.744l.01-.015a3.17 3.17 0 0 0 .468-1.667 3.249 3.249 0 0 0-5.283-2.533.75.75 0 0 1-1.217-.587v-4.37Z"}),So.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M14.526 2.655a1.15 1.15 0 0 0-1.554-1.078l-7.94 3a2.098 2.098 0 0 0-1.356 1.968v4.57a.75.75 0 0 1-1.5 0v-4.57c0-1.5.921-2.84 2.324-3.371l7.94-3c1.733-.657 3.586.629 3.586 2.481v3.8a.75.75 0 0 1-1.5 0v-3.8ZM19.905 12.405c-.36 0-.675.14-.903.374l-.014.013c-.265.26-.414.63-.377 1.022l.001.01c.053.634.664 1.181 1.413 1.181h1.942a.276.276 0 0 0 .268-.27v-2.06a.276.276 0 0 0-.268-.27h-2.062Zm-1.971-.68a2.743 2.743 0 0 1 1.97-.82h2.107a1.777 1.777 0 0 1 1.724 1.77v2.06a1.777 1.777 0 0 1-1.75 1.77h-1.96c-1.41 0-2.778-1.03-2.907-2.553a2.758 2.758 0 0 1 .816-2.227Z"}),So.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.676 10.705a.75.75 0 0 1 .75-.75h7a.75.75 0 0 1 0 1.5h-7a.75.75 0 0 1-.75-.75ZM5.426 14.455c-.762 0-1.469.267-2.033.717h-.001a3.22 3.22 0 0 0-1.216 2.533c0 .61.17 1.184.468 1.667l.006.01a3.22 3.22 0 0 0 2.776 1.573 3.155 3.155 0 0 0 2.148-.824c.243-.204.457-.457.624-.744l.01-.015a3.17 3.17 0 0 0 .468-1.667 3.249 3.249 0 0 0-3.25-3.25Zm-2.967-.457a4.749 4.749 0 0 1 7.717 3.707c0 .888-.248 1.73-.687 2.446-.25.427-.57.808-.941 1.12a4.656 4.656 0 0 1-3.122 1.184 4.72 4.72 0 0 1-4.062-2.301 4.671 4.671 0 0 1-.688-2.449 4.72 4.72 0 0 1 1.783-3.707Z"}),So.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.538 16.215a.75.75 0 0 1-.042 1.06l-2.13 1.97a.75.75 0 0 1-1.04-.02l-.99-.99a.75.75 0 1 1 1.062-1.06l.48.48 1.6-1.48a.75.75 0 0 1 1.06.04Z"})),"CheckWalletIcon");yr.toString=()=>"._icon";import*as lo from"react";var xr=t(({size:o=16,color:e,...r})=>lo.createElement(P,{width:o,height:o,viewBox:"0 0 24 24",color:e,fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"_icon",...r},lo.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5.244 7.205a3.018 3.018 0 0 0-3.01 3.01v1.73a.75.75 0 0 1-1.5 0v-1.73a4.518 4.518 0 0 1 4.51-4.51h11.48a4.518 4.518 0 0 1 4.51 4.51v1.44a.75.75 0 0 1-.75.75h-2.02c-.359 0-.674.14-.902.373l-.014.014c-.266.26-.414.63-.377 1.022v.009c.054.635.664 1.182 1.413 1.182h1.9a.75.75 0 0 1 .75.75v1.19a4.518 4.518 0 0 1-4.51 4.51h-5.48a.75.75 0 0 1 0-1.5h5.48a3.018 3.018 0 0 0 3.01-3.01v-.44h-1.15c-1.41 0-2.777-1.03-2.907-2.553a2.758 2.758 0 0 1 .817-2.227 2.743 2.743 0 0 1 1.97-.82h1.27v-.69a3.018 3.018 0 0 0-3.01-3.01H5.244Z"}),lo.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M13.084 2.655a1.15 1.15 0 0 0-1.554-1.078l-7.94 3a2.098 2.098 0 0 0-1.356 1.968v4.57a.75.75 0 0 1-1.5 0v-4.57c0-1.5.922-2.84 2.325-3.371l7.94-3c1.732-.657 3.585.629 3.585 2.481v3.8a.75.75 0 0 1-1.5 0v-3.8ZM18.463 12.405c-.359 0-.675.14-.902.374l-.014.013c-.266.26-.415.63-.377 1.022v.01c.053.634.664 1.181 1.413 1.181h1.943a.276.276 0 0 0 .267-.27v-2.06a.276.276 0 0 0-.267-.27h-2.063Zm-1.97-.68a2.743 2.743 0 0 1 1.97-.82h2.107a1.777 1.777 0 0 1 1.723 1.77v2.06a1.777 1.777 0 0 1-1.75 1.77h-1.96c-1.41 0-2.777-1.03-2.907-2.553a2.758 2.758 0 0 1 .816-2.227Z"}),lo.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5.234 10.705a.75.75 0 0 1 .75-.75h7a.75.75 0 0 1 0 1.5h-7a.75.75 0 0 1-.75-.75ZM1.234 15.205a.75.75 0 0 1 .75-.75h5.34a1.91 1.91 0 0 1 1.91 1.91v1.28a.75.75 0 0 1-1.5 0v-1.28a.41.41 0 0 0-.41-.41h-5.34a.75.75 0 0 1-.75-.75Z"}),lo.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3.735 13.455a.75.75 0 0 1 0 1.06l-.69.69.69.69a.75.75 0 1 1-1.061 1.06l-1.22-1.22a.75.75 0 0 1 0-1.06l1.22-1.22a.75.75 0 0 1 1.06 0ZM1.984 17.296a.75.75 0 0 1 .75.75v1.28c0 .225.185.41.41.41h5.34a.75.75 0 0 1 0 1.5h-5.34a1.91 1.91 0 0 1-1.91-1.91v-1.28a.75.75 0 0 1 .75-.75Z"}),lo.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.735 18.735a.75.75 0 0 1 1.061 0l1.22 1.22a.75.75 0 0 1 0 1.061l-1.22 1.22a.75.75 0 1 1-1.06-1.06l.689-.69-.69-.69a.75.75 0 0 1 0-1.06Z"})),"SwapWalletIcon");xr.toString=()=>"._icon";import*as so from"react";var oe=so.forwardRef(({color:o="black",size:e=16,...r},n)=>so.createElement(g,{xmlns:"http://www.w3.org/2000/svg",width:e,height:e,color:o,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:"_icon",...r,ref:n},so.createElement("path",{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4"}),so.createElement("polyline",{points:"16 17 21 12 16 7"}),so.createElement("line",{x1:"21",y1:"12",x2:"9",y2:"12"})));oe.toString=()=>"._icon";import*as Q from"react";var vr=t(({size:o=16,color:e,...r})=>Q.createElement(g,{width:o,height:o,viewBox:"0 0 32 32",color:e,fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"_icon",...r},Q.createElement("g",{clipPath:"url(#a)",strokeWidth:1.5},Q.createElement("path",{d:"M9.333 9.333V4.8a.8.8 0 0 1 .8-.8h11.734a.8.8 0 0 1 .8.8v4.533M13.333 4v5.333M16 4v5.333m9.333 17.334H6.667A2.667 2.667 0 0 1 4 24V12a2.667 2.667 0 0 1 2.667-2.667h18.666A2.667 2.667 0 0 1 28 12v12a2.667 2.667 0 0 1-2.667 2.667Z"}),Q.createElement("path",{d:"M22 18.666a.667.667 0 1 1 0-1.334.667.667 0 0 1 0 1.334Z",fill:e,strokeLinecap:"round",strokeLinejoin:"round"})),Q.createElement("defs",null,Q.createElement("clipPath",{id:"a"},Q.createElement("path",{fill:e,d:"M0 0h32v32H0z"})))),"BagIcon");vr.toString=()=>"._icon";import*as ko from"react";var ee=ko.forwardRef(({size:o=16,...e},r)=>ko.createElement(g,{width:o,height:o,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"_icon",...e,ref:r},ko.createElement("circle",{cx:10,cy:10,r:7.25,strokeWidth:1.5}),ko.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.134 6.6a.6.6 0 0 0-1.2 0v4.27a.6.6 0 0 0 .28.507c.009.01.018.019.029.028l2.59 2.373a.472.472 0 0 0 .753-.109.763.763 0 0 0-.133-.919l-2.319-2.123V6.6Z"})));ee.toString=()=>"._icon";var R=i(Do,{transform:"rotate(45deg)",cursor:"pointer"});R.toString=()=>"._icon";import*as $e from"react";var Cr=t(({size:o=16,color:e,...r})=>$e.createElement(P,{width:o,height:o,color:e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 122.88 107.95",xmlSpace:"preserve",className:"_icon",...r},$e.createElement("path",{d:"M82.19 0c1.22-.01 2.27.4 3.18 1.27l13.27 12.7c.86.82 1.28 1.91 1.3 3.11.02 1.22-.34 2.33-1.18 3.18l-7.06 7.35L72.09 8.67l6.99-7.28C79.94.5 80.98.02 82.19 0zM20.08 68.29a4.536 4.536 0 1 1 2.67 8.67c-6.98 2.14-11.66 6.28-13.21 10.17-.41 1.04-.55 1.99-.39 2.77.12.59.48 1.13 1.07 1.56 2.55 1.86 8.04 2.34 17.26.1 5.46-1.33 11.31-3.13 16.49-4.73 5.29-1.63 9.91-3.06 13.12-3.66 5.92-1.1 11.83-1.85 16.6-1.61 6.26.31 10.96 2.32 12.57 7.13 1.04 3.11.75 5.81.49 8.23-.09.87-.18 1.68-.14 2.21 0 .02.95-.05 5.53-.41 5.3-.42 10.79-2.51 16.21-4.58 2.78-1.06 5.54-2.11 8.67-3.07 2.4-.73 4.93.63 5.65 3.02.73 2.4-.63 4.93-3.02 5.65-2.43.74-5.24 1.82-8.06 2.89-6.04 2.3-12.14 4.63-18.74 5.15-12.07.95-14.87-2.46-15.3-7.95-.1-1.29.03-2.54.17-3.88.16-1.5.34-3.18-.07-4.39-.18-.54-1.89-.82-4.39-.94-3.99-.2-9.22.48-14.54 1.47-2.65.49-7.05 1.85-12.09 3.41-5.27 1.63-11.22 3.46-17.02 4.87-12.14 2.95-20.21 1.7-24.73-1.6-2.54-1.85-4.05-4.27-4.63-7-.54-2.54-.23-5.28.85-8 2.46-6.14 9.23-12.5 18.98-15.48zm21.19-19.84L53.3 60.02l-14.71 3.95c-.53.1-.74-.11-.65-.6l3.33-14.92zm24.6-33.34 19.59 18.87L58.7 62.23l-23.98 6.43c-.86.17-1.2-.17-1.06-.98l5.43-24.31 26.78-28.26z",style:{fillRule:"evenodd",clipRule:"evenodd"}})),"SignatureIcon");Cr.toString=()=>"._icon";import*as oo from"react";var Sr=t(({size:o=16,color:e,...r})=>oo.createElement(P,{width:o,height:o,viewBox:"0 0 64 64",color:e,xmlns:"http://www.w3.org/2000/svg",className:"_icon",...r},oo.createElement("g",{id:"Text-files"},oo.createElement("path",{d:`M53.9791489,9.1429005H50.010849c-0.0826988,0-0.1562004,0.0283995-0.2331009,0.0469999V5.0228
2
+ C49.7777481,2.253,47.4731483,0,44.6398468,0h-34.422596C7.3839517,0,5.0793519,2.253,5.0793519,5.0228v46.8432999
3
+ c0,2.7697983,2.3045998,5.0228004,5.1378999,5.0228004h6.0367002v2.2678986C16.253952,61.8274002,18.4702511,64,21.1954517,64
4
+ h32.783699c2.7252007,0,4.9414978-2.1725998,4.9414978-4.8432007V13.9861002
5
+ C58.9206467,11.3155003,56.7043495,9.1429005,53.9791489,9.1429005z M7.1110516,51.8661003V5.0228
6
+ c0-1.6487999,1.3938999-2.9909999,3.1062002-2.9909999h34.422596c1.7123032,0,3.1062012,1.3422,3.1062012,2.9909999v46.8432999
7
+ c0,1.6487999-1.393898,2.9911003-3.1062012,2.9911003h-34.422596C8.5049515,54.8572006,7.1110516,53.5149002,7.1110516,51.8661003z
8
+ M56.8888474,59.1567993c0,1.550602-1.3055,2.8115005-2.9096985,2.8115005h-32.783699
9
+ c-1.6042004,0-2.9097996-1.2608986-2.9097996-2.8115005v-2.2678986h26.3541946
10
+ c2.8333015,0,5.1379013-2.2530022,5.1379013-5.0228004V11.1275997c0.0769005,0.0186005,0.1504021,0.0469999,0.2331009,0.0469999
11
+ h3.9682999c1.6041985,0,2.9096985,1.2609005,2.9096985,2.8115005V59.1567993z`}),oo.createElement("path",{d:`M38.6031494,13.2063999H16.253952c-0.5615005,0-1.0159006,0.4542999-1.0159006,1.0158005
12
+ c0,0.5615997,0.4544001,1.0158997,1.0159006,1.0158997h22.3491974c0.5615005,0,1.0158997-0.4542999,1.0158997-1.0158997
13
+ C39.6190491,13.6606998,39.16465,13.2063999,38.6031494,13.2063999z`}),oo.createElement("path",{d:`M38.6031494,21.3334007H16.253952c-0.5615005,0-1.0159006,0.4542999-1.0159006,1.0157986
14
+ c0,0.5615005,0.4544001,1.0159016,1.0159006,1.0159016h22.3491974c0.5615005,0,1.0158997-0.454401,1.0158997-1.0159016
15
+ C39.6190491,21.7877007,39.16465,21.3334007,38.6031494,21.3334007z`}),oo.createElement("path",{d:`M38.6031494,29.4603004H16.253952c-0.5615005,0-1.0159006,0.4543991-1.0159006,1.0158997
16
+ s0.4544001,1.0158997,1.0159006,1.0158997h22.3491974c0.5615005,0,1.0158997-0.4543991,1.0158997-1.0158997
17
+ S39.16465,29.4603004,38.6031494,29.4603004z`}),oo.createElement("path",{d:`M28.4444485,37.5872993H16.253952c-0.5615005,0-1.0159006,0.4543991-1.0159006,1.0158997
18
+ s0.4544001,1.0158997,1.0159006,1.0158997h12.1904964c0.5615025,0,1.0158005-0.4543991,1.0158005-1.0158997
19
+ S29.0059509,37.5872993,28.4444485,37.5872993z`}))),"CopyIcon");Sr.toString=()=>"._icon";import Z from"react";import Xr from"react";var Jr=i("span",{margin:0,display:"inline-block",variants:{variant:{h1:{fontSize:"$36",fontWeight:"$700","@md":{fontSize:"$40"},"@lg":{fontSize:"$48"}},h2:{fontSize:"$32",fontWeight:"$700","@md":{fontSize:"$36"},"@lg":{fontSize:"$40"}},h3:{fontSize:"$20",fontWeight:"$700","@md":{fontSize:"$24"},"@lg":{fontSize:"$32"}},h4:{fontSize:"$18",fontWeight:"$600","@md":{fontSize:"$20"},"@lg":{fontSize:"$24"}},h5:{fontSize:"$16",fontWeight:"$600"},h6:{fontSize:"$14",fontWeight:"$500","@md":{fontSize:"$16"},"@lg":{fontSize:"$18"}},title:{fontSize:"$14",fontWeight:"$500","@md":{fontSize:"$15"}},body1:{fontSize:"$14",fontWeight:"$400","@md":{fontSize:"$16"},"@lg":{fontSize:"$18"}},body2:{fontSize:"$14",fontWeight:"$400"},body3:{fontSize:"$12",fontWeight:"$400"},caption:{fontSize:"$10",fontWeight:"$400","@lg":{fontSize:"$12"}}},align:{center:{textAlign:"center"},left:{textAlign:"left"},right:{textAlign:"right"}},noWrap:{true:{whiteSpace:"nowrap"}},ml:{2:{marginLeft:"$2"},4:{marginLeft:"$4"},8:{marginLeft:"$8"},12:{marginLeft:"$12"}},mt:{2:{marginTop:"$2"},4:{marginTop:"$4"},8:{marginTop:"$8"},12:{marginTop:"$12"}},mr:{2:{marginRight:"$2"},4:{marginRight:"$4"},8:{marginRight:"$8"},12:{marginRight:"$12"}},mb:{2:{marginBottom:"$2"},4:{marginBottom:"$4"},8:{marginBottom:"$8"},12:{marginBottom:"$12"}}}});function p({children:o,className:e,color:r,...n}){let a=r?{color:r.startsWith("$")?r:`$${r}`}:{color:"$foreground"};return Xr.createElement(Jr,{className:`_typography _text ${e||""}`,css:a,...n},o)}t(p,"Typography");p.toString=()=>"._typography";var Kr=i("div",{position:"relative",width:"$28",height:"$28",variants:{direction:{vertical:{margin:"auto"},horizontal:{}}}}),Qr=i("img",{width:"$28",height:"$28",borderRadius:"50%"}),Rr=i("div",{position:"absolute",right:-4,bottom:-4,width:"$16",height:"$16",padding:"$2",borderRadius:"50%",backgroundColor:"$background",border:"1px solid $neutral400",img:{width:"100%",display:"block"}}),ot=i("div",{display:"flex",variants:{direction:{horizontal:{alignItems:"center"},vertical:{flexDirection:"column",textAlign:"center",justifyContent:"center"}},success:{true:{filter:"none"},false:{filter:"grayscale(100%)"}}}}),et=i("div",{variants:{pl:{true:{paddingLeft:"$4","@lg":{paddingLeft:"$8"}},false:{paddingTop:"$8"}}}}),rt=i(p,{color:"$neutral600",display:"block",paddingLeft:"$8"});function po(o){let{logo:e,chainLogo:r,amount:n,symbol:a,blockchain:l,estimatedAmount:c,success:s=!0,direction:m="horizontal"}=o;return Z.createElement(ot,{direction:m,success:s},Z.createElement(Kr,{direction:m},Z.createElement(Qr,{src:e,alt:a}),Z.createElement(Rr,null,Z.createElement("img",{src:r,alt:l}))),Z.createElement(et,{pl:m==="horizontal"},n&&Z.createElement(p,{noWrap:!0,variant:m==="vertical"?"body2":"title"},n),!n&&c&&Z.createElement(p,{noWrap:!0,variant:m==="vertical"?"body2":"title",color:"$neutral600"},c),"\xA0",Z.createElement(p,{variant:m==="vertical"?"body2":"title",noWrap:!0},a),Z.createElement(rt,{noWrap:!0,variant:"caption",color:"$neutral800"},"on ",l)))}t(po,"StepDetail");import tt from"react";var it=fo({"0%":{backgroundPosition:"-468px 0"},"100%":{backgroundPosition:"468px 0"}}),nt=i("div",{borderRadius:"$5",backgroundColor:"$neutral100",background:"linear-gradient(to right, rgba(130, 130, 130, 0.2) 8%, rgba(130, 130, 130, 0.3) 18%, rgba(130, 130, 130, 0.2) 33%)",backgroundSize:"800px 100px",animation:`${it} 2s infinite ease-out`,variants:{width:{16:{width:"$16"},20:{width:"$20"},24:{width:"$24"},36:{width:"$36"},48:{width:"$48"}},height:{16:{height:"$16"},20:{height:"$20"},24:{height:"$24"},36:{height:"$36"},48:{height:"$48"},94:{height:94}}}});function Te({width:o=20,height:e=20}){return tt.createElement(nt,{width:o,height:e})}t(Te,"Skeleton");import at from"react";var lt=fo({"100%":{transform:"rotate(360deg)"}}),st=i("div",{borderRadius:"50%",position:"relative",border:"2px solid $neutral100",borderRight:"2px solid",animation:`${lt} 1.5s linear infinite`,margin:"0px $8",variants:{color:{primary:{borderRightColor:"$primary"},error:{borderRightColor:"$error"},warning:{borderRightColor:"$warning"},success:{borderRightColor:"$success"},black:{borderRightColor:"$black"},white:{borderRightColor:"$white"}},size:{16:{width:"$16",height:"$16"},20:{width:"$20",height:"$20"},24:{width:"$24",height:"$24"}}}});function L({size:o=16,color:e="primary"}){return at.createElement(st,{size:o,color:e})}t(L,"Spinner");import*as H from"@radix-ui/react-tooltip";import co from"react";var pt=i(H.Trigger,{border:0,padding:0,backgroundColor:"transparent"}),ct=i(H.Content,{borderRadius:"$5",padding:"$4 $8",fontSize:"$14",animationDuration:"400ms",animationTimingFunction:"cubic-bezier(0.16, 1, 0.3, 1)",willChange:"transform, opacity",variants:{color:{primary:{backgroundColor:"$primary",color:"$white"},error:{backgroundColor:"$error",color:"$white"},warning:{backgroundColor:"$warning",color:"$white"},success:{backgroundColor:"$success",color:"$white"},gray:{backgroundColor:"$neutral100",color:"$black"},black:{backgroundColor:"$black",color:"$white"},white:{backgroundColor:"$white",color:"$black"}}}}),dt=i(H.Arrow,{variants:{color:{primary:{fill:"$primary"},error:{fill:"$error"},warning:{fill:"$warning"},success:{fill:"$success"},gray:{fill:"$neutral100"},black:{fill:"$black"},white:{fill:"$white"}}}}),mt=i("div",{display:"inline-block"});function re({children:o,content:e,side:r="top",color:n="gray"}){return co.createElement(H.Provider,null,co.createElement(H.Root,null,co.createElement(pt,{asChild:!0},co.createElement(mt,null,o)),co.createElement(H.Portal,null,co.createElement(ct,{color:n,side:r,sideOffset:5},e,co.createElement(dt,{color:n})))))}t(re,"Tooltip");var Ie=i("span",{width:"10px",height:"10px",backgroundColor:"$primary",borderRadius:"99999px"});import kr from"react";var gt=i("div",{display:"flex",justifyContent:"center",alignItems:"center",".image":{width:"100%",height:"100%",objectFit:"contain"}});function B(o){let{size:e,...r}=o;return kr.createElement(gt,{css:{width:e+"px",height:e+"px"}},kr.createElement("img",{className:"image",...r}))}t(B,"Image");var ut=i("div",{borderRadius:"$5",border:"1px solid $neutral100",display:"flex",alignItems:"center",minHeight:126,justifyContent:"space-between",backgroundColor:"$surface"}),ft=i(p,{color:"$error"}),yt=i("div",{display:"flex",alignItems:"center",margin:"0 auto",overflowX:"auto",overflowY:"hidden",alignSelf:"stretch",padding:"$4","@md":{padding:"$8"}}),br=i("div",{height:"0",width:"$20",border:"1px dashed $foreground",borderRadius:"inherit","@lg":{width:"$32"}}),xt=i("hr",{width:"100%",border:"1px solid $neutral400",margin:"$8 0"}),vt=i("div",{position:"relative"}),Ct=i("div",{width:"$6",height:"$6",backgroundColor:"$foreground",position:"absolute",top:"45%",right:-5,marginLeft:"$8",borderRadius:"50%","@md":{width:"$8",height:"$8",right:-8,top:"45%"}}),St=i("div",{width:"0px",height:"0px",borderTop:"5px solid transparent",borderBottom:"5px solid transparent",borderLeft:"5px solid $foreground"}),Pe=fo({"0%":{opacity:1},"50%":{opacity:.3},"100%":{opacity:1}}),kt=i("div",{backgroundColor:"$neutral100",borderRadius:"5px",margin:"$4",display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",padding:"$4","@md":{padding:"$8",margin:"$8"}}),wr=i("div",{display:"flex",flexDirection:"column",alignItems:"center",variants:{warning:{true:{animation:`${Pe} 2s ease-in-out infinite`}}}}),bt=i(p,{variants:{warning:{true:{color:"$warning300"}}}}),wt=i("div",{padding:"$4","@md":{padding:"$8"}}),$t=i("div",{display:"flex",justifyContent:"center",alignItems:"center"});function Tt(o){let{data:e,loading:r,error:n,totalFee:a,feeWarning:l,totalTime:c}=o;return C.createElement(ut,null,r?C.createElement(wt,null,C.createElement(Te,{width:48,height:94})):C.createElement(kt,null,C.createElement(re,{content:"Transaction cost (fee)"},C.createElement(wr,{warning:l},C.createElement(vo,{size:20,color:l?"warning":void 0}),C.createElement(bt,{mt:4,align:"center",variant:"caption",warning:l},n&&"-",!!e&&`$${a}`))),C.createElement(xt,null),C.createElement(re,{content:"Time estimate"},C.createElement(wr,{warning:l},C.createElement(ee,{size:20}),C.createElement(p,{mt:4,align:"center",variant:"caption"},n&&"-",!!e&&`~${c}m`)))),C.createElement(yt,null,r&&C.createElement(L,{color:"primary"}),n&&C.createElement(ft,{variant:"caption"},n),!!e&&e.result?.swaps.map((s,m)=>C.createElement(ht,{key:m},m===0&&C.createElement(vt,null,C.createElement(po,{direction:"vertical",logo:s.from.logo,symbol:s.from.symbol,chainLogo:s.from.blockchainLogo,blockchain:s.from.blockchain,amount:s.fromAmount}),C.createElement(Ct,null)),C.createElement($t,null,C.createElement(br,null),C.createElement(B,{src:s.swapperLogo,alt:s.swapperId,size:20}),C.createElement(br,null)),m+1===e.result?.swaps.length&&C.createElement(St,null),C.createElement(po,{direction:"vertical",logo:s.to.logo,symbol:s.to.symbol,chainLogo:s.to.blockchainLogo,blockchain:s.to.blockchain,amount:s.toAmount}))),!!e&&!e?.result&&C.createElement(p,{variant:"body2"},"No routes found")))}t(Tt,"BestRoute");import _ from"react";import bo,{useState as Lt}from"react";import Le from"react";var It=i("button",{borderRadius:"$5",fontSize:"$16",fontWeight:"$400",cursor:"pointer",padding:"0 $12",display:"flex",alignItems:"center",justifyContent:"center",transition:"all 0.35s",border:"0","&:active":{transform:"scale(0.95)"},variants:{align:{start:{display:"flex",width:"100%"},grow:{display:"flex",width:"100%"}},size:{compact:{},free:{},small:{height:"$32"},medium:{height:"$40"},large:{height:"$48"}},variant:{contained:{backgroundColor:"$neutral100",color:"$foreground",border:0,"&:hover":{backgroundColor:"$neutral200"},"&:disabled":{background:"$neutral400"},"&:disabled:hover":{background:"$neutral400",transform:"unset"}},outlined:{backgroundColor:"$surface",border:1,borderStyle:"solid",borderColor:"$neutral400",color:"$foreground","&:hover":{borderColor:"$neutral600"},"&:disabled":{borderColor:"$neutral400",color:"$neutral400"}},ghost:{color:"$foreground","&:hover":{backgroundColor:"$neutral200"},"&:disabled":{color:"$neutral400"},background:"transparent",border:0,[`& ${p}`]:{color:"inherit"}}},fullWidth:{true:{width:"100%"}},loading:{true:{}},type:{primary:{},error:{},warning:{},success:{}}},compoundVariants:[{type:"primary",variant:"contained",css:{background:"$primary",color:"$white","&:hover":{background:"$primary700"},"&:visited":{background:"$primary900"},"&:focus":{background:"$primary600"}}},{type:"primary",variant:"outlined",css:{color:"$primary",borderColor:"$primary","&:hover":{color:"$primary700",borderColor:"$primary700"},"&:visited":{color:"$primary900",borderColor:"$primary900"},"&:focus":{color:"$primary600",borderColor:"$primary600"}}},{type:"primary",variant:"ghost",css:{color:"$primary","&:hover":{color:"$primary700"},"&:visited":{color:"$primary900"},"&:focus":{color:"$primary600"}}},{type:"error",variant:"contained",css:{background:"$error",$$color:"$colors$background",[`.${Y} &`]:{$$color:"$colors$foreground"},color:"$$color","&:hover":{background:"$error300"},"&:visited":{background:"$error700"},"&:focus":{background:"$error700"}}},{type:"error",variant:"outlined",css:{color:"$error",borderColor:"$error","&:hover":{color:"$error300",borderColor:"$error300"},"&:visited":{color:"$error700",borderColor:"$error700"},"&:focus":{color:"$error700",borderColor:"$error700"}}},{type:"error",variant:"ghost",css:{color:"$error","&:hover":{color:"$error300"},"&:visited":{color:"$error700"},"&:focus":{color:"$error700"}}},{type:"warning",variant:"contained",css:{background:"$warning",$$color:"$colors$background",[`.${Y} &`]:{$$color:"$colors$foreground"},color:"$$color","&:hover":{background:"$warning300"},"&:visited":{background:"$warning700"},"&:focus":{background:"$warning700"}}},{type:"warning",variant:"outlined",css:{color:"$warning",borderColor:"$warning","&:hover":{color:"$warning300",borderColor:"$warning300"},"&:visited":{color:"$warning700",borderColor:"$warning700"},"&:focus":{color:"$warning700",borderColor:"$warning700"}}},{type:"warning",variant:"ghost",css:{color:"$warning","&:hover":{color:"$warning300"},"&:visited":{color:"$warning700"},"&:focus":{color:"$warning700"}}},{type:"success",variant:"contained",css:{background:"$success",$$color:"$colors$background",[`.${Y} &`]:{$$color:"$colors$foreground"},color:"$$color","&:hover":{background:"$success300"},"&:visited":{background:"$success700"},"&:focus":{background:"$success700"}}},{type:"success",variant:"outlined",css:{color:"$success",borderColor:"$success","&:hover":{color:"$success300",borderColor:"$success300"},"&:visited":{color:"$success700",borderColor:"$success700"},"&:focus":{color:"$success700",borderColor:"$success700"}}},{type:"success",variant:"ghost",css:{color:"$success","&:hover":{color:"$success300"},"&:visited":{color:"$success700"},"&:focus":{color:"$success700"}}},{size:"compact",css:{padding:"$2 $4",fontSize:"$12"}}],defaultVariants:{size:"medium",variant:"contained"}}),Pt=i("div",{flex:1,variants:{align:{start:{textAlign:"left"},grow:{textAlign:"center"}},ml:{true:{marginLeft:"$8"}},mr:{true:{marginRight:"$8"}},flexContent:{true:{display:"flex",alignItems:"center"}}}});function f({children:o,loading:e,disabled:r,prefix:n,suffix:a,align:l,flexContent:c,...s}){return Le.createElement(It,{disabled:e||r,...s,align:l},n,o&&Le.createElement(Pt,{align:l,ml:!!n,mr:!!a&&!e,flexContent:c,className:"_text"},o),e&&Le.createElement(L,{size:16,color:s.type}),a)}t(f,"Button");var Wt=i("div",{display:"grid",gap:".5rem",gridTemplateColumns:" repeat(2, minmax(0, 1fr))",alignContent:"baseline",width:"100%",height:"100%"}),Bt=i("div",{paddingRight:"$4"});function We(o){let{list:e,onChange:r,multiSelect:n,selectedList:a}=o,[l,c]=Lt(o.selected),s=t(u=>{c(u),r(u)},"changeSelectedBlockchain"),m=t(u=>n&&a?a==="all"||a.findIndex($=>u===$.name)>-1:u===l?.name,"isSelect");return bo.createElement(Wt,null,e.map((u,$)=>bo.createElement(f,{type:m(u.name)?"primary":void 0,variant:"outlined",size:"large",prefix:bo.createElement(Bt,null,bo.createElement(B,{size:24,src:u.logo})),suffix:m(u.name)?bo.createElement(Ie,null):void 0,align:"start",onClick:s.bind(null,u),key:$},bo.createElement(p,{variant:"body2"},u.displayName))))}t(We,"BlockchainsList");import eo,{useState as _t}from"react";import Mt from"react";var Ft=i("div",{variants:{size:{4:{height:"$4"},8:{height:"$8"},12:{height:"$12"},16:{height:"$16"},18:{height:"$18"},20:{height:"$20"},24:{height:"$24"},32:{height:"$32"}}}});function q({size:o=12}){return Mt.createElement(Ft,{size:o})}t(q,"Divider");import Wo from"react";var Nt=i("div",{display:"flex",justifyContent:"space-between",alignItems:"center",padding:"$8 0",position:"relative"}),zt=i(f,{padding:"$8"});function Be(o){return Wo.createElement(Nt,null,o.onBack?Wo.createElement(zt,{variant:"ghost",size:"small",onClick:o.onBack},Wo.createElement(Se,{size:24})):null,o.prefix,Wo.createElement(p,{variant:"h4"},o.title),o.suffix||Wo.createElement("div",null))}t(Be,"Header");import wo from"react";var At=i("div",{backgroundColor:"$surface",padding:"1px",boxSizing:"border-box",border:"1px solid $neutral400",borderRadius:"$5",height:"$48",display:"flex",flexGrow:1,position:"relative",alignItems:"center",color:"$foreground",overflowX:"hidden",transition:"border-color ease .3s","&:focus-within":{borderColor:"$success",outline:"1px solid $success"},variants:{size:{small:{"& input":{fontSize:"$14"},height:"$32"},medium:{"& input":{fontSize:"$15"},height:"$40"},large:{"& input":{fontSize:"$16"},height:"$48"}},disabled:{true:{backgroundColor:"$neutral100",cursor:"not-allowed",filter:"grayscale(100%)"}},prefix:{true:{paddingLeft:"$16"},false:{paddingLeft:"$0"}},suffix:{true:{paddingRight:"$16"},false:{paddingRight:"$0"}}},defaultVariants:{size:"medium"}}),Dt=i("input",{color:"$foreground",paddingLeft:"$16",paddingRight:"$16",flexGrow:1,width:"100%",border:"none",borderRadius:"$5",outline:"none",backgroundColor:"transparent","-webkit-appearance":"none",margin:0,"&:disabled":{cursor:"not-allowed"},"&::-webkit-outer-spin-button, &::-webkit-inner-spin-button":{"-webkit-appearance":"none",margin:0},'&[type="number"]':{"-moz-appearance":"textfield"}}),Ht=i("label",{display:"inline-block",fontSize:"$14",color:"$foreground",marginBottom:"$4"}),Bo=wo.forwardRef((o,e)=>{let{label:r,prefix:n,suffix:a,children:l,size:c,style:s,...m}=o;return wo.createElement(wo.Fragment,null,r&&wo.createElement(Ht,{className:"_text",...m.id&&{htmlFor:m.id}},r),wo.createElement(At,{disabled:m.disabled,prefix:!!n,suffix:!!a,size:c,style:s,className:"_text"},n||null,wo.createElement(Dt,{className:"_text",...m,spellCheck:!1,ref:e}),a||null))});var Et=i("div",{overflow:"hidden",display:"flex",flexDirection:"column",flex:"1",padding:"0 $4"}),jt=i("div",{padding:"1px"});function F(o){let{title:e,Footer:r,TopButton:n,onBack:a,hasHeader:l=!0}=o,[c,s]=_t("");return eo.createElement(eo.Fragment,null,l&&eo.createElement(Be,{onBack:a,title:e||"",suffix:n}),eo.createElement(Et,null,o.textField&&eo.createElement(jt,null,eo.createElement(Bo,{size:"large",prefix:eo.createElement(Go,{size:24}),placeholder:o.textFieldPlaceholder,onChange:m=>s(m.target.value),value:c,autoFocus:!0}),eo.createElement(q,{size:16})),o.textField&&o.children?.(c),!o.textField&&o.children),r)}t(F,"SecondaryPage");function N(o,e){return o.toLowerCase().indexOf(e.toLowerCase())>-1}t(N,"containsText");function $r(o,e=8,r=3){if(!o)return null;if(o.length<2*e+r)return o;let n=Math.ceil((o.length-e)/2),a=o.length-e;return`${o.substr(n,e)}${".".repeat(r)}${o.substr(a)}`}t($r,"getConciseAddress");function te(o,e=4){let r=parseFloat(o);if(isNaN(r))return o;{let n=Math.pow(10,e);return(Math.round(r*n)/n).toString()}}t(te,"limitDecimalPlaces");var Tr=t(o=>(e=>e.length===3?e.split("").map(r=>parseInt(r.repeat(2),16)):(e.match(/.{1,2}/g)||[]).map(r=>parseInt(r,16)))(o.replace("#","")),"hexToRgb"),Zt=t(o=>(([e,r,n])=>.2126*e+.7152*r+.0722*n<40)(Tr(o)),"isHexTooDark"),qt=t(o=>(([e,r,n])=>(e*299+r*587+n*114)/1e3>155)(Tr(o)),"isHexTooLight"),Mo=t((o,e)=>{o=o.replace(/^#/,""),o.length===3&&(o=o[0]+o[0]+o[1]+o[1]+o[2]+o[2]);let[r,n,a]=o.match(/.{2}/g);[r,n,a]=[parseInt(r,16)+e,parseInt(n,16)+e,parseInt(a,16)+e],r=Math.max(Math.min(255,r),0).toString(16),n=Math.max(Math.min(255,n),0).toString(16),a=Math.max(Math.min(255,a),0).toString(16);let l=(r.length<2?"0":"")+r,c=(n.length<2?"0":"")+n,s=(a.length<2?"0":"")+a;return`#${l}${c}${s}`},"colorShade"),Vt=t((o,e,r)=>{let n={[o]:r};if(r){let a=r;if(Zt(r)||e==="dark")for(let l=1;l<10;l++)n={...n,[o+l*100]:o==="neutral"?Mo(a,l*15):Mo(r,l*5)};if(qt(r)||e==="light")for(let l=1;l<10;l++)a=Mo(a,-(l*5)),n={...n,[o+l*100]:Mo(o==="neutral"?a:r,-(l*5))}}return n},"generateRangeColors");import Ut from"react";import z from"react";import Gt from"react";var Ot=i("div",{variants:{size:{4:{},8:{},12:{},16:{},18:{},20:{},24:{}},direction:{vertical:{},horizontal:{}}},compoundVariants:[{size:4,direction:"horizontal",css:{width:"$4"}},{size:4,direction:"vertical",css:{height:"$4"}},{size:8,direction:"horizontal",css:{width:"$8"}},{size:8,direction:"vertical",css:{height:"$8"}},{size:12,direction:"horizontal",css:{width:"$12"}},{size:12,direction:"vertical",css:{height:"$12"}},{size:16,direction:"horizontal",css:{width:"$16"}},{size:16,direction:"vertical",css:{height:"$16"}},{size:18,direction:"horizontal",css:{width:"$18"}},{size:18,direction:"vertical",css:{height:"$18"}},{size:20,direction:"horizontal",css:{width:"$20"}},{size:20,direction:"vertical",css:{height:"$20"}},{size:24,direction:"horizontal",css:{width:"$24"}},{size:24,direction:"vertical",css:{height:"$24"}}]});function T({size:o=12,direction:e="horizontal"}){return Gt.createElement(Ot,{size:o,direction:e})}t(T,"Spacer");var Yt=i("div",{width:"100%",padding:"$16",borderRadius:"$5",backgroundColor:"$neutral100",color:"$neutral800",".main":{display:"flex",alignItems:"center"},".footer":{paddingTop:"$8"},"&.hasIcon .footer":{paddingLeft:"$32"},variants:{type:{primary:{color:"$primary200"},secondary:{color:"$foreground"},success:{color:"$success300"},warning:{color:"$warning500"},error:{color:"$error300"}}}});function A(o){let{type:e,children:r,title:n}=o,a=["error","success","warning"].includes(e);return z.createElement(Yt,{type:e,className:a?"hasIcon":""},z.createElement("div",{className:"main"},a&&z.createElement(z.Fragment,null,z.createElement("div",{style:{width:"32px",display:"flex",justifyContent:"center",alignItems:"center"}},e==="success"&&z.createElement(xo,{color:e,size:24}),e==="warning"&&z.createElement(Zo,{color:e,size:24}),e==="error"&&z.createElement(yo,{color:e,size:24}),z.createElement(T,{size:4}))),z.createElement("div",{style:{display:"flex",justifyContent:"center",alignItems:"start",flexDirection:"column",width:"100%"}},n&&z.createElement(z.Fragment,null,z.createElement(p,{className:"title",variant:"title",color:e},n),!!r&&z.createElement(T,{size:4,direction:"vertical"})),r)),o.footer?z.createElement("div",{className:"footer"},o.footer):null)}t(A,"Alert");function ro(){return Ut.createElement(A,{type:"error",title:" Error connecting server, please reload the app and try again."})}t(ro,"LoadingFailedAlert");import Xt from"react";function U(o){let{catergory:e,searchedFor:r}=o;return Xt.createElement(A,{type:"secondary",title:`${e} ${r?"'"+r+"'":""} not found.`})}t(U,"NotFoundAlert");import $o from"react";import Me,{forwardRef as ri,useEffect as Lr,useState as Fe}from"react";import ie from"react";import{VariableSizeList as Jt}from"react-window";import Kt from"react-window-infinite-loader";import Qt from"react-virtualized-auto-sizer";function Ir(o){let{itemCount:e,hasNextPage:r,loadNextPage:n,Item:a,innerElementType:l,size:c}=o,s=t(m=>!r||m<e,"isItemLoaded");return ie.createElement(Qt,null,({width:m,height:u})=>ie.createElement(Kt,{isItemLoaded:s,itemCount:r?e+1:e,loadMoreItems:n,threshold:1},({onItemsRendered:$,ref:b})=>ie.createElement(Jt,{innerElementType:l,ref:b,itemSize:()=>c,itemCount:e,height:u||0,width:m||0,onItemsRendered:$},({index:h,style:M})=>s(h)?ie.createElement(a,{index:h,style:M}):null)))}t(Ir,"VirtualizedList");import V from"react";var Rt=i("div",{paddingRight:"$16"}),oi=i("div",{display:"flex",flexDirection:"column"}),ei=i("div",{display:"flex",flexDirection:"column",alignItems:"flex-end"});function Pr(o){let{token:e,style:r,onClick:n,selected:a}=o;return V.createElement("div",{style:{display:"flex",alignItems:"center",width:"100%",...r,height:"48px",top:`${parseFloat(r?.top)+0}px`,padding:"0 4px"}},V.createElement(f,{variant:"outlined",size:"large",align:"start",onClick:n.bind(null,e),type:a?"primary":void 0,prefix:V.createElement(Rt,null,V.createElement(B,{src:e.image,size:32})),suffix:e.balance?.amount&&V.createElement(ei,null,V.createElement(p,{variant:"body2"},e.balance.amount),V.createElement(p,{variant:"caption"},`${e.balance.usdValue}$`))},V.createElement(oi,null,V.createElement(p,{variant:"body1"},e.symbol),V.createElement(p,{variant:"caption",color:"neutral600"},e.name))))}t(Pr,"TokenItem");var Wr=20;function Ne(o){let{list:e,searchedText:r,onChange:n,multiSelect:a,selectedList:l}=o,[c,s]=Fe(o.selected),m=t(w=>{s(w),n(w)},"changeSelected"),u=t(w=>a&&l?l.map(x=>x.symbol+x.address).indexOf(w.symbol+w.address)>-1:c?.symbol===w.symbol&&c?.address===w.address,"isSelected"),[$,b]=Fe(!0),[h,M]=Fe(e),v=t(()=>{M(e.slice(0,h.length+Wr))},"loadNextPage");Lr(()=>{M(e.slice(0,Wr))},[r,e]),Lr(()=>{b(e.length>h.length)},[h.length]);let I=ri(({style:w,...x},D)=>Me.createElement("div",{ref:D,style:{...w,height:`${parseFloat(w?.height)+8*2}px`},...x}));return Me.createElement(Ir,{Item:({index:w,style:x})=>Me.createElement(Pr,{token:h[w],style:x,onClick:m,selected:u(h[w])}),hasNextPage:$,itemCount:h.length,loadNextPage:v,innerElementType:I,size:56})}t(Ne,"TokenList");var Fo=i("div",{display:"flex",justifyContent:"center",width:"100%",paddingTop:"33%",flex:1}),ti=t((o,e)=>o.filter(r=>N(r.symbol,e)||N(r.address||"",e)||N(r.name||"",e)),"filterTokens");function ii(o){let{list:e,type:r,selected:n,hasHeader:a,onChange:l,onBack:c,loadingStatus:s}=o;return $o.createElement(F,{textField:!0,hasHeader:a,title:`Select ${r} token`,onBack:c,textFieldPlaceholder:"Search tokens by name"},m=>{let u=ti(e,m);return s==="loading"?$o.createElement(Fo,null,$o.createElement(L,{size:24})):s==="failed"?$o.createElement(ro,null):u.length?$o.createElement(Ne,{searchedText:m,list:u,selected:n,onChange:l}):$o.createElement(U,{catergory:"Token",searchedFor:m})})}t(ii,"TokenSelector");var ni=i("div",{overflowY:"auto",padding:"0 $4"}),ai=t((o,e)=>o.filter(r=>N(r.name,e)||N(r.displayName,e)),"filterBlockchains");function li(o){let{type:e,list:r,onChange:n,selected:a,onBack:l,loadingStatus:c,hasHeader:s,listContainerStyle:m,multiSelect:u,selectedList:$}=o;return _.createElement(F,{textField:!0,hasHeader:s,textFieldPlaceholder:"Search blockchains by name",title:`Select ${e} Blockchain`,onBack:l},b=>{let h=ai(r,b);return _.createElement(_.Fragment,null,c==="loading"&&_.createElement(Fo,null,_.createElement(L,{size:24})),_.createElement(ni,{style:m,key:"1"},c==="failed"&&_.createElement(ro,null),c==="success"&&_.createElement(_.Fragment,null,h.length?_.createElement(We,{list:h,selected:a,multiSelect:u,selectedList:$,onChange:n}):_.createElement(U,{catergory:"Blockchain",searchedFor:b}))))})}t(li,"BlockchainSelector");import No from"react";import*as ne from"@radix-ui/react-checkbox";var si=i("div",{display:"flex",alignItems:"center"}),pi=i(ne.Root,{borderRadius:"5px",width:20,padding:0,height:20,border:"1px solid $foreground",display:"flex",alignItems:"center",justifyContent:"center",marginRight:"$2",backgroundColor:"$neutral-100",cursor:"pointer"}),ci=i("label",{color:"$foreground",fontSize:"$m",marginLeft:"$8",cursor:"pointer"});function di({label:o,id:e,...r}){return No.createElement(si,null,No.createElement(pi,{id:e,...r},No.createElement(ne.Indicator,null,No.createElement(Eo,{size:20}))),No.createElement(ci,{className:"_text",htmlFor:e},o))}t(di,"Checkbox");import mi from"react";var gi=i("div",{display:"inline-flex",justifyContent:"center",alignItems:"center",borderRadius:"$5",padding:"$4 $8",height:"32",fontSize:"$14",cursor:"pointer",transition:"all 0.35s",color:"$foreground","&:hover":{backgroundColor:"$success700",color:"$background"},variants:{selected:{true:{backgroundColor:"$success",color:"$background"},false:{backgroundColor:"$surface"}}}});function ze(o){let{label:e,selected:r,prefix:n,suffix:a,onClick:l,style:c}=o;return mi.createElement(gi,{selected:r,onClick:l,style:c},n||null,e,a||null)}t(ze,"Chip");import He from"react";import to,{useEffect as hi}from"react";import{createPortal as ui}from"react-dom";var fi=i("div",{position:"fixed",display:"flex",justifyContent:"center",alignItems:"center",top:"0",left:"0",width:"100vw",height:"100vh",backgroundColor:"rgba(0,0,0,.1)",zIndex:10}),yi=i("div",{backgroundColor:"$background",borderRadius:"$10",padding:"$16 $16",display:"flex",flexDirection:"column",zIndex:20}),xi=i("div",{display:"flex",alignItems:"center"}),vi=i("div",{display:"flex",justifyContent:"space-between",alignItems:"center",position:"relative",marginBottom:"$16"});function Ae(o){let{title:e,content:r,open:n,onClose:a,containerStyle:l,action:c}=o,s=t(m=>{m.target===m.currentTarget&&a()},"handleBackDropClick");return hi(()=>{n?document.body.style.overflow="hidden":document.body.style.overflow="unset"},[n]),to.createElement(to.Fragment,null,n&&ui(to.createElement(fi,{onClick:s},to.createElement(yi,{style:l},to.createElement(vi,null,to.createElement(p,{variant:"h4"},e),to.createElement(xi,null,c,to.createElement(R,{size:24,onClick:a}))),r)),document.body))}t(Ae,"Modal");import{detectInstallLink as bi}from"@rango-dev/wallets-shared";import mo from"react";var De=(a=>(a.NOT_INSTALLED="not installed",a.DISCONNECTED="disconnected",a.CONNECTING="connecting",a.CONNECTED="connected",a))(De||{});import To,{Fragment as Ci}from"react";import{detectInstallLink as Si}from"@rango-dev/wallets-shared";var ki=i("span",{display:"flex",justifyContent:"center",alignItems:"center"}),Br=t(({walletState:o,installLink:e})=>To.createElement(Ci,null,o!=="disconnected"&&To.createElement(ki,null,o==="not installed"&&To.createElement("a",{href:Si(e),target:"_blank"},To.createElement(Xo,{size:24,color:"success"})),o==="connecting"&&To.createElement(L,null),o==="connected"&&To.createElement(oe,null))),"State");var wi=i("div",{paddingRight:"$12","& img":{borderRadius:"50%"}}),$i=i("div",{display:"flex",flexDirection:"column"}),Ti=i(f,{variants:{type:{primary:{outline:"1px solid $primary",borderColor:"$primary","&:hover":{borderColor:"$primary"}}}}});function Mr(o){let{name:e,type:r,image:n,state:a,onClick:l,installLink:c}=o;return mo.createElement(Ti,{type:a==="connected"?"primary":void 0,disabled:a=="connecting",onClick:()=>{a==="not installed"?window.open(bi(c),"_blank"):l(r)},align:"start",variant:"outlined",size:"large",prefix:mo.createElement(wi,null,mo.createElement(B,{src:n,size:24})),suffix:mo.createElement(Br,{walletState:a,installLink:c})},mo.createElement($i,null,mo.createElement(p,{variant:"h5",noWrap:!1},e),a==="connected"?mo.createElement(p,{variant:"caption",noWrap:!1,color:"primary"},"Connected"):null))}t(Mr,"Wallet");var Ii=i("div",{display:"grid",gap:"$8",gridTemplateColumns:"repeat(2, minmax(0, 1fr))"});function Pi(o){let{open:e,list:r,onSelect:n,onClose:a}=o,l=He.createElement(Ii,null,r.map((c,s)=>He.createElement(Mr,{...c,key:s,onClick:n})));return He.createElement(Ae,{title:"Connect Wallets",open:e,content:l,onClose:a,containerStyle:{width:"75%",maxWidth:"30rem",height:"70%"}})}t(Pi,"ConnectWalletsModal");import Ee from"react";import y,{useEffect as Bi,useState as Mi}from"react";import Fr from"react";import*as ae from"@radix-ui/react-switch";var Li=i(ae.Root,{boxSizing:"border-box",boxShadow:"none",borderStyle:"solid",width:"42px",height:"22px",backgroundColor:"$neutral600",borderColor:"$neutral600",borderRadius:"99999px",position:"relative",padding:"0",cursor:"pointer",'&[data-state="checked"]':{backgroundColor:"$success",borderColor:"$success"},"-webkit-tap-highlight-color":"rgba(0, 0, 0, 0)"}),Wi=i(ae.Thumb,{position:"absolute",top:"0",boxSizing:"border-box",display:"block",width:"18px",height:"18px",backgroundColor:"$white",transition:" transform 300ms",borderRadius:"999999px",willChange:"transform",'&[data-state="checked"]':{transform:"translateX(20px)"}});function zo(o){let{checked:e,onChange:r}=o;return Fr.createElement(Li,{checked:e,onCheckedChange:r},Fr.createElement(Wi,null))}t(zo,"Switch");var Fi=t(o=>({bridge:o.filter(e=>e.type==="BRIDGE"||e.type==="AGGREGATOR"),exchange:o.filter(e=>e.type==="DEX")}),"groupLiquiditySources"),Ni=i("div",{variants:{loaded:{true:{overflowY:"auto",padding:"0 $4"}}}}),Nr=i("div",{position:"sticky",display:"flex",justifyContent:"space-between",alignItems:"center",top:"0",backgroundColor:"$background",zIndex:"9999",paddingTop:"$8",paddingBottom:"$8"}),zi=i("div",{paddingRight:"$16"}),zr=i("div",{display:"flex",justifyContent:"center"});function _e(o){let{list:e,onChange:r,listContainerStyle:n,loadingStatus:a,searchedFor:l}=o,[c,s]=Mi(e.filter(x=>x.selected)),m=t(x=>{x.selected=!x.selected,s(D=>x.selected?[...D,x]:D.filter(se=>se.title!=x.title)),r(x)},"changeLiquiditySources"),u=t(x=>!!c.find(D=>x.title===D.title),"isSelected");Bi(()=>{s(e.filter(x=>x.selected))},[e]);let $=Fi(e),b=$.bridge,h=$.exchange,M=b.length,v=h.length,I=b.filter(u).length,w=h.filter(u).length;return y.createElement(Ni,{style:n,loaded:a==="success"},y.createElement("div",null,y.createElement(Nr,null,y.createElement(p,{variant:"h5"},"Bridges"),y.createElement(p,{variant:"body1",color:"neutral800"},I===M?M:`${I} / ${M}`)),y.createElement(T,{size:12,direction:"vertical"}),a==="loading"&&y.createElement(zr,null,y.createElement(L,{size:24})),a==="failed"&&y.createElement(ro,null),a==="success"&&y.createElement(y.Fragment,null,M?b.map((x,D)=>y.createElement(Ar,{liquiditySource:x,key:D,selected:u(x),onChange:m})):y.createElement(U,{catergory:"Bridge",searchedFor:l}))),y.createElement("div",null,y.createElement(Nr,null,y.createElement(p,{variant:"h5"},"Exchanges"),y.createElement(p,{variant:"body1",color:"neutral800"},w===v?v:`${w} / ${v}`)),y.createElement(T,{size:12,direction:"vertical"}),a==="loading"&&y.createElement(zr,null,y.createElement(L,{size:24})),a==="failed"&&y.createElement(ro,null),a=="success"&&y.createElement(y.Fragment,null,v?h.map((x,D)=>y.createElement(Ar,{liquiditySource:x,key:D,selected:u(x),onChange:m})):y.createElement(U,{catergory:"Exchange",searchedFor:l}))))}t(_e,"LiquiditySourceList");var Ar=t(({liquiditySource:o,selected:e,onChange:r})=>y.createElement(f,{size:"large",align:"start",variant:"outlined",prefix:y.createElement(zi,null,y.createElement(B,{src:o.logo,size:20})),suffix:y.createElement(zo,{checked:e}),style:{marginBottom:"12px"},onClick:r.bind(null,o)},y.createElement(p,{variant:"body1"},o.title)),"LiquiditySourceItem");var Ai=t((o,e)=>o.filter(r=>N(r.title,e||"")),"filterLiquiditySources");function Di(o){let{list:e,onChange:r,onBack:n,hasHeader:a,listContainerStyle:l,toggleAll:c,loadingStatus:s}=o;return Ee.createElement(F,{textField:!0,textFieldPlaceholder:"Search by name",title:"Liquidity Sources",TopButton:Ee.createElement(f,{variant:"ghost",type:"primary",onClick:c},e.find(m=>m.selected)?"Deselect all":"Select all"),hasHeader:a,onBack:n},m=>Ee.createElement(_e,{listContainerStyle:l,list:Ai(e,m),onChange:r,loadingStatus:s,searchedFor:m}))}t(Di,"LiquiditySourcesSelector");import go,{useEffect as Hi,useState as _i}from"react";var Ei=i("div",{display:"flex",flexWrap:"wrap"}),ji=i("div",{width:12,height:12,borderRadius:6,border:"1px solid $neutral400",position:"absolute",top:12,right:12,variants:{checked:{true:{borderColor:"$success"},false:{borderColor:"$neutral400"}}}}),Zi=i("div",{width:6,margin:"20% auto",height:6,borderRadius:3,variants:{checked:{true:{backgroundColor:"$success"},false:{backgroundColor:"$neutral400"}}}}),qi=i("div",{border:"1.5px solid",borderRadius:"$5",padding:"$12",flexBasis:"calc(33.33% - 10px)",margin:5,display:"flex",flexDirection:"column",justifyContent:"space-between",width:124,height:92,cursor:"pointer",position:"relative",variants:{checked:{true:{borderColor:"$success",color:"$success"},false:{borderColor:"$neutral400",color:"$neutral400"}}}});function je({list:o,onChange:e}){let[r,n]=_i(o.find(l=>l.selected)?.walletType||""),a=t(l=>{n(l.walletType),e(l)},"onClick");return Hi(()=>{n(o.find(l=>l.selected)?.walletType||"")},[o]),go.createElement(Ei,null,o.map((l,c)=>{let s=r===l.walletType;return go.createElement(qi,{checked:s,onClick:a.bind(null,l),key:c},go.createElement(B,{src:l.image,alt:l.walletType,size:24}),go.createElement(p,{variant:"body2"},l.name),go.createElement(p,{variant:"caption"},$r(l.address)),go.createElement(ji,{checked:s},go.createElement(Zi,{checked:s})))}))}t(je,"SelectableWalletList");import k,{useState as Ji}from"react";import ho from"react";import*as Io from"@radix-ui/react-radio-group";var Vi=i(Io.Root,{variants:{direction:{horizontal:{display:"flex",flexDirection:"row",flexWrap:"wrap"},vertical:{display:"grid",gridGap:"$24"}}}}),Gi=i("div",{display:"flex",alignItems:"center",marginRight:"$8"}),Oi=i(Io.Item,{padding:"0",width:"20px",height:"20px",borderRadius:"100%",cursor:"pointer",backgroundColor:"$background",border:"1px solid $neutral400","&:hover":{borderColor:"$neutral600"}}),Yi=i("div",{display:"flex"}),Ui=i(Io.Indicator,{display:"flex",alignItems:"center",justifyContent:"center",width:"100%",height:"100%",position:"relative","&::after":{content:"",display:"block",width:"10px",height:"10px",borderRadius:"50%",backgroundColor:"$success"}}),Xi=i("label",{paddingLeft:"$8",cursor:"pointer",color:"$foreground"});function Ze(o){let{value:e,onChange:r,direction:n="vertical",style:a}=o;return ho.createElement(Yi,null,ho.createElement(Vi,{onValueChange:r,value:e,direction:n,style:a},o.options.map((l,c)=>ho.createElement(Gi,{key:c},ho.createElement(Oi,{value:l.value,id:l.value},ho.createElement(Ui,null)),ho.createElement(Xi,{className:"_text",htmlFor:l.value},ho.createElement(p,{variant:"body2"},l.label))))))}t(Ze,"Radio");var le=i("div",{borderRadius:"$5",backgroundColor:"$neutral100",padding:"$16"}),Ki=i(p,{marginBottom:"$16"}),Qi=i("div",{display:"grid",rowGap:"$16",gridTemplateColumns:"repeat(auto-fill, 64px)"}),Ri=i(le,{display:"flex",justifyContent:"space-between",marginTop:"$16",cursor:"pointer"}),on=i(le,{display:"flex",justifyContent:"space-between",marginTop:"$16"}),en=i(Oo,{marginLeft:"$8"}),rn=i("div",{display:"flex",alignItems:"center",justifyContent:"center"}),tn=i(le,{marginTop:"$16"}),nn=i("div",{display:"flex",justifyContent:"space-between",alignItems:"center",paddingBottom:"$16"});function an(o){let{slippages:e,selectedLiquiditySources:r,liquiditySources:n,onSlippageChange:a,onLiquiditySourcesClick:l,onBack:c,customSlippage:s,onCustomSlippageChange:m,maxSlippage:u,minSlippage:$,selectedTheme:b,onThemeChange:h,toggleInfiniteApprove:M,infiniteApprove:v,loadingStatus:I,singleTheme:w}=o,[x,D]=Ji(o.selectedSlippage),se=t(j=>{D(j),a(j)},"changeSlippage"),Zr=k.createElement(k.Fragment,null,k.createElement(le,null,k.createElement(nn,null,k.createElement(p,{variant:"body2"},"Slippage tolerance"),s?k.createElement(p,{variant:"caption",color:"error"},s,"% Custom"):void 0),k.createElement(Qi,null,e.map((j,uo)=>k.createElement(ze,{key:uo,onClick:()=>{s&&m(null),se(j)},selected:!s&&j===x,label:`${j.toString()}%`,style:{marginRight:"8px"}})),k.createElement(Bo,{type:"number",value:s||"",onChange:j=>{let uo=parseFloat(j.target.value);(!uo||uo>=$&&uo<=u)&&m(uo)},suffix:s&&k.createElement(p,{variant:"body2"},"%"),size:"small",placeholder:"Custom %",style:{width:"128px",flexGrow:"initial"}}))),!w&&k.createElement(tn,null,k.createElement(Ki,{variant:"body2"},"Theme"),k.createElement(Ze,{value:b,options:[{value:"dark",label:"Dark"},{value:"light",label:"Light"},{value:"auto",label:"Auto"}],onChange:j=>h(j),direction:"horizontal",style:{marginTop:"$24"}})),k.createElement(on,null,k.createElement(p,{variant:"body2"},"Infinite Approval"),k.createElement(zo,{checked:v,onChange:M})),k.createElement(Ri,null,k.createElement(f,{onClick:l,align:"start",variant:"ghost",loading:I==="loading",suffix:k.createElement(rn,null,I==="success"&&k.createElement(p,{variant:"body2",color:"neutral800"},n.length!==r.length?`${r.length} / ${n.length}`:n.length),I==="failed"&&k.createElement(p,{variant:"body2",color:"$error500"},"Loading failed"),k.createElement(en,null))},k.createElement(p,{variant:"body2"},"Liquidity Sources"))));return k.createElement(F,{title:"Settings",textField:!1,onBack:c},Zr)}t(an,"Settings");import ln from"react";var sn=i("div",{position:"relative",display:"flex",flexDirection:"column",borderRadius:"$10",boxShadow:"$s",width:"100%",minWidth:"375px",maxWidth:"512px",padding:"$16",boxSizing:"border-box",backgroundColor:"$background",overflow:"hidden","& *":{boxSizing:"border-box",listStyleType:"none","&::-webkit-scrollbar":{width:"$8",height:"$8"},"&::-webkit-scrollbar-thumb":{backgroundColor:"$neutral400",borderRadius:"$10"},"&::-webkit-scrollbar-thumb:hover":{backgroundColor:"$neutral500"},"&::-webkit-scrollbar-track":{backgroundColor:"$neutral100"}},variants:{fixedHeight:{true:{height:"595px",maxHeight:"595px"},false:{height:"auto"}}}});function pn(o){let{children:e,style:r,fixedHeight:n=!0}=o;return ln.createElement(sn,{style:r,id:"swap-box",fixedHeight:n},e)}t(pn,"SwapContainer");import G from"react";import X from"react";var cn=i("div",{display:"flex",alignItems:"center",width:"160px","& .amount":{fontWeight:"bold"},"& .estimated":{color:"$neutral600"}}),dn=i("div",{position:"relative",img:{borderRadius:"50%"},".overlay":{position:"absolute",right:-4,bottom:-4,width:"$16",height:"$16",padding:"$2",borderRadius:"50%",display:"flex",justifyContent:"center",alignItems:"center",backgroundColor:"$background",border:"1px solid $neutral400"}});function qe(o){let{data:{token:e,blockchain:r,amount:n,estimatedAmount:a}}=o;return X.createElement(cn,null,X.createElement(dn,null,X.createElement(B,{src:e.logo,alt:"",size:24}),X.createElement("div",{className:"overlay"},X.createElement(B,{src:r.logo,alt:r.name,size:12}))),X.createElement(T,{size:8}),!!n&&X.createElement("span",{className:"amount"},o.data.amount),!n&&a&&X.createElement("span",{className:"amount estimated"},o.data.estimatedAmount),X.createElement(T,{size:4}),e.symbol)}t(qe,"Token");var mn=i("div",{position:"relative",display:"flex",justifyContent:"space-between",alignItems:"center",padding:"$16 0",borderBottom:"1px solid $neutral100","& > .info":{display:"flex",alignItems:"center"},".status":{textTransform:"uppercase",fontWeight:"bold",fontSize:"$12"},"&.failed .status":{color:"$error"},"&.success .status":{color:"$success"}});function Ve({swap:o,status:e,onClick:r}){let n=o.steps[0],a=o.steps[o.steps.length-1];return G.createElement(f,{variant:"ghost",size:"free",fullWidth:!0,onClick:r.bind(null,o.requestId)},G.createElement(mn,{className:`${e}`},G.createElement("div",{className:"info"},G.createElement(qe,{data:{token:{logo:n.fromLogo,symbol:n.fromSymbol},blockchain:{logo:n.fromBlockchainLogo||"",name:n.fromBlockchain},amount:te(o.inputAmount)}}),G.createElement(T,{size:12}),G.createElement(Ko,{size:12}),G.createElement(T,{size:12}),G.createElement(qe,{data:{token:{logo:a.toLogo,symbol:a.toSymbol},blockchain:{logo:a.toBlockchainLogo||"",name:a.toBlockchain},amount:te(a.outputAmount||""),estimatedAmount:te(a.expectedOutputAmountHumanReadable||"")}})),G.createElement("div",{className:"status"},e==="running"?G.createElement(L,{size:24,color:"primary"}):e)))}t(Ve,"SwapDetail");import J,{useState as gn}from"react";import{ChromePicker as hn}from"react-color";import un from"rgb-hex";var fn=i("div",{position:"relative"}),yn=i("div",{border:"1px solid $neutral100",borderRadius:"$5",width:"$32",height:"$32"}),xn=i("div",{position:"fixed",top:"0px",right:"0px",bottom:"0px",left:"0px"}),vn=i("div",{position:"absolute",zIndex:"2",variants:{place:{top:{top:"-241px"},bottom:{},left:{top:"-50%",left:"-225px"},right:{top:"-50%",right:"-225px"}}}}),Cn=i("label",{display:"inline-block",fontSize:"$14",marginBottom:"$4",color:"$foreground"});function Sn({color:o,onChangeColor:e,label:r,place:n,placeholder:a}){let[l,c]=gn(!1);return J.createElement(fn,null,J.createElement(Cn,{className:"_text"},r),J.createElement(f,{variant:"outlined",prefix:J.createElement(yn,{style:{backgroundColor:o}}),fullWidth:!0,align:"start",size:"large",suffix:o&&J.createElement("div",{onClick:s=>{s.stopPropagation(),e(void 0)}},J.createElement(R,{size:20})),onClick:()=>c(s=>!s)},o||a),l&&J.createElement(vn,{place:n},J.createElement(xn,{onClick:()=>c(!1)}),J.createElement(hn,{color:o,onChange:s=>{let m="#"+un(s.rgb.r,s.rgb.g,s.rgb.b,s.rgb.a);e(m)}})))}t(Sn,"ColorPicker");import K from"react";import{createPortal as kn}from"react-dom";var bn=i("div",{position:"absolute",top:"0",left:"0",width:"100%",height:"100%",zIndex:9999999,backgroundColor:"rgba(0,0,0,.1)",borderRadius:"$10"}),wn=i("div",{position:"absolute",boxShadow:"$s",background:"$background",padding:"$20",display:"flex",flexDirection:"column",justifyContent:"space-between",zIndex:9999999,borderRadius:"$10",variants:{anchor:{left:{top:0,left:0,height:"100%",minWidth:"300px",maxWidth:"90%"},right:{top:0,right:0,height:"100%",minWidth:"300px",maxWidth:"90%"},bottom:{bottom:0,width:"100%",maxHeight:"90%"},top:{top:0,width:"100%",maxHeight:"90%"}}}}),$n=i("div",{display:"flex",justifyContent:"space-between",alignItems:"center",position:"relative",marginBottom:"$16"}),Tn=i("div",{overflowY:"auto",height:"100%"}),In=i("footer",{width:"100%",marginTop:"$28"});function Ge(o){let{title:e,content:r,open:n,onClose:a,containerStyle:l,anchor:c="bottom",showClose:s=!1,footer:m,container:u}=o;return K.createElement(K.Fragment,null,n&&u&&kn(K.createElement(bn,{onClick:t(b=>{b.target===b.currentTarget&&a()},"handleBackDropClick")},K.createElement(wn,{anchor:c,style:l},K.createElement($n,null,K.createElement(p,{variant:"h6"},e),s&&K.createElement(R,{size:24,onClick:a})),K.createElement(Tn,null,r),K.createElement(In,null,m))),u))}t(Ge,"Drawer");import S from"react";var Pn=i("div",{overflowY:"auto"}),Ln=i("div",{paddingBottom:"$32",marginBottom:"$32",borderBottom:"1px solid $neutral400"}),Wn=i("div",{display:"flex",alignItems:"center"}),Bn=i("div",{padding:"$16 0"}),Mn=i(f,{marginTop:"$16"}),Fn=i("div",{paddingBottom:"$24",".title":{paddingBottom:"$8",display:"flex",alignItems:"center"},".num":{backgroundColor:"$neutral100",display:"inline-flex",width:"24px",height:"24px",color:"$neutral800",borderRadius:"50%",fontSize:"$14",border:"1px solid $neutral400",justifyContent:"center",alignItems:"center"}}),Nn=i("div",{paddingBottom:"$16"});function zn(o){let{onBack:e,loading:r,onConfirm:n,requiredWallets:a,selectableWallets:l,onChange:c,confirmDisabled:s,isExperimentalChain:m,handleConnectChain:u,confirmButtonTitle:$,errors:b,warnings:h,extraMessages:M}=o;return S.createElement(F,{textField:!1,title:"Confirm Swap",onBack:e,Footer:S.createElement(Wn,null,S.createElement(Mn,{fullWidth:!0,loading:r,type:"primary",variant:"contained",onClick:n,disabled:s},$))},S.createElement(Pn,null,S.createElement("div",null,M||null,S.createElement(Nn,null,b?.map((v,I)=>S.createElement(S.Fragment,{key:I},S.createElement(T,{direction:"vertical"}),S.createElement(A,{type:"error",key:I,...typeof v=="string"?{title:v}:{children:v}}))),h?.map((v,I)=>S.createElement(S.Fragment,{key:I},S.createElement(T,{direction:"vertical"}),S.createElement(A,{type:"warning",key:I,...typeof v=="string"?{title:v}:{children:v}}))))),o.previewInputs||o.previewRoutes?S.createElement(Ln,null,o.previewInputs,o.previewRoutes?S.createElement(T,{size:16,direction:"vertical"}):null,o.previewRoutes):null,a.map((v,I)=>{let w=l.filter(x=>v===x.chain);return S.createElement(Fn,{key:I},S.createElement("div",{className:"title"},S.createElement("div",{className:"num"},I+1),S.createElement(T,{size:8}),S.createElement(p,{variant:"body2"},"Your ",v," Wallet")),w.length===0&&S.createElement(S.Fragment,null,S.createElement(Bn,null,S.createElement(A,{type:"error"},"You need to connect a compatible wallet with ",v,".")),m?.(v)&&S.createElement(f,{variant:"contained",type:"primary",align:"grow",onClick:()=>u?.(v)},`Add ${v} chain to Cosmos wallets`)),w.length!=0&&S.createElement(je,{list:w,onChange:c}))})))}t(zn,"ConfirmSwap");import O from"react";import E from"react";var An=i("div",{".group-title":{textTransform:"uppercase"}});function Oe(o){let{list:e,onSwapClick:r,groupBy:n}=o,a=n?n(e):[{title:"History",swaps:e}];return E.createElement(E.Fragment,null,a.filter(l=>l.swaps.length>0).map((l,c)=>E.createElement(E.Fragment,{key:c},E.createElement(An,null,E.createElement(p,{variant:"body2",color:"neutral600",className:"group-title"},l.title),l.swaps.map(s=>E.createElement(E.Fragment,{key:s.requestId},E.createElement(Ve,{swap:s,status:s.status,onClick:r}),E.createElement(q,{size:12})))),E.createElement(q,{size:24}))))}t(Oe,"SwapsGroup");var Dn=i("div",{overflowY:"auto"}),Hn=t((o,e)=>o.filter(r=>{let n=r.steps[0],a=r.steps[r.steps.length-1];return N(n.fromBlockchain,e)||N(n.fromSymbol,e)||N(a.toBlockchain,e)||N(a.toSymbol,e)||N(r.requestId,e)}),"filteredHistory");function _n(o){let{list:e=[],onBack:r,onSwapClick:n,groupBy:a,loading:l}=o;return O.createElement(F,{onBack:r,textField:!0,textFieldPlaceholder:"Search by blockchain, token or request Id",title:"Swaps"},c=>{let s=Hn(e,c);return O.createElement(O.Fragment,null,l&&O.createElement(Fo,null,O.createElement(L,{size:24})),O.createElement(Dn,null,!l&&O.createElement(O.Fragment,null,s.length?O.createElement(Oe,{list:s,onSwapClick:n,groupBy:a}):O.createElement(U,{catergory:"Swap"}))))})}t(_n,"History");import d,{useState as qn}from"react";import W,{useState as En}from"react";var jn=t(o=>!o||o==="info"?"secondary":o,"getAlertType"),Zn=i("div",{width:"90%",overflowWrap:"break-word",color:"$error500 !important"}),Ye=i(p,{color:"$success500 !important"}),Dr=t(o=>{let{shortMessage:e,detailedMessage:r,currentStepBlockchain:n,type:a,lastConvertedTokenInFailedSwap:l}=o,[c,s]=En(!1),m=r.long?0:150,u=!c&&r.content.length>m;return W.createElement(A,{type:jn(a),title:e,...u&&{footer:W.createElement(f,{variant:"outlined",type:"primary",onClick:s.bind(null,$=>!$)},"Show more details")},...!!o.switchNetwork&&{footer:W.createElement(f,{variant:"outlined",type:"primary",onClick:()=>{o?.switchNetwork&&o.switchNetwork().catch(()=>{})}},"Change network to ",n)}},r.content?W.createElement(Zn,null,W.createElement(p,{variant:"body2"},u&&!c?r.content.substring(0,m)+(m>0?"...":""):r.content)):null,!!l&&W.createElement(W.Fragment,null,W.createElement("p",null,W.createElement(p,{variant:"body2"},"Don't worry, your fund is\xA0"),W.createElement(Ye,{variant:"body2"},W.createElement("b",null,"Safe"))),W.createElement("p",null,W.createElement(p,{variant:"body2"},"It is converted to \xA0",W.createElement("u",null,l.outputAmount),"\xA0"),W.createElement(Ye,{variant:"body2"},W.createElement("b",null,l.symbol,"\xA0")),W.createElement(p,{variant:"body2"},"on your\xA0"),W.createElement(Ye,{variant:"body2"},W.createElement("b",null,l.blockchain,"\xA0")),W.createElement(p,{variant:"body2"},"wallet"))))},"SwapMessages");var Vn=i("div",{display:"flex",alignItems:"center",paddingLeft:"$4",variants:{created:{true:{filter:"grayscale(100%)"}},running:{true:{animation:`${Pe} 2s ease-in-out infinite`}}}}),eh=i("div",{height:"100%",display:"flex",justifyContent:"center",alignItems:"center"}),rh=i(p,{color:"$error"}),Gn=i("div",{paddingLeft:"$16",color:"$neutral800"}),On=i("div",{display:"flex",alignItems:"center"}),Yn=i("div",{position:"relative"}),th=i("div",{display:"flex",alignItems:"center"}),Un=i("div",{width:"$8",height:"$8",backgroundColor:"$foreground",borderRadius:"4px",marginLeft:"11px"}),Xn=i("div",{width:"0px",height:"0px",borderLeft:"5px solid transparent",borderRight:"5px solid transparent",borderTop:"5px solid $foreground",marginLeft:"$10"}),Jn=i("a",{color:"$primary",fontWeight:"$600"}),Kn=i("div",{display:"flex",flexDirection:"column",paddingBottom:"$16",borderBottom:"1px solid $neutral100"}),Qn=i("div",{display:"flex",".details":{padding:"$8 0"}}),Hr=i("div",{display:"flex",margin:"$12 0 $12 $20"}),_r=i("div",{display:"flex",alignItems:"center"}),Er=i(p,{color:"$success",paddingLeft:"$4"}),jr=i("div",{width:"0",minHeight:"$16",marginLeft:"14px",border:"1px dashed $foreground",borderRadius:"inherit"}),Rn=i("div",{display:"flex",justifyContent:"space-between",alignItems:"center",fontSize:"$14",padding:"$8 0",".name":{color:"$neutral600"},".value":{display:"flex",alignItems:"center",color:"$neutral800",justifyContent:"flex-end"},".status":{fontWeight:"bold",textTransform:"uppercase"},".status.failed":{color:"$error"},".status.success":{color:"$success"}}),oa=i("div",{width:"150px",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis","@md":{width:"auto"}}),ea=i("div",{padding:"0",color:"$neutral600",fontSize:"$10"}),ra=i("div",{overflowY:"auto",padding:"$8 $4 $2 $4"});function ta(o){let{pendingSwap:e,onBack:r,onCopy:n,isCopied:a,onCancel:l,date:c,onRetry:s,previewInputs:m,...u}=o,[$,b]=qn(!1);return d.createElement(F,{title:"Swap Details",textField:!1,onBack:r,Footer:d.createElement(d.Fragment,null,e?.status==="running"&&d.createElement(f,{variant:"outlined",fullWidth:!0,type:"error",onClick:b.bind(null,!0)},"Cancel"),!!s&&d.createElement(f,{variant:"contained",fullWidth:!0,type:"primary",onClick:s},"Try again"))},d.createElement("div",null,d.createElement(Kn,null,d.createElement(Rn,null,d.createElement("div",{className:"name"},"Request Id:",d.createElement("span",{className:"value requestId",onClick:n.bind(null,e?.requestId)},d.createElement(oa,null,e?.requestId),d.createElement(T,{size:4}),d.createElement(f,{type:"primary",variant:"ghost",size:"compact"},a?"Copied!":"Copy"))),d.createElement("div",{className:"name"},d.createElement("span",{className:`value status ${e?.status||""}`},e?.status,e?.status==="running"&&d.createElement(L,{size:16,color:"primary"})),d.createElement(ea,null,c))))),d.createElement(ra,null,u.shortMessage&&d.createElement(Dr,{...u}),d.createElement(q,{size:16}),e?.steps.map((h,M)=>d.createElement("div",{key:M},M===0&&d.createElement(Yn,null,d.createElement(po,{logo:h.fromLogo,symbol:h.fromSymbol,chainLogo:h.fromBlockchainLogo||"",blockchain:h.fromBlockchain,amount:e.inputAmount}),d.createElement(Un,null)),d.createElement(jr,null),d.createElement(Vn,{created:h.status==="created",running:!["created","success","failed"].includes(h.status)},d.createElement(B,{src:h.swapperLogo||"",alt:h.swapperId,size:20}),d.createElement(Gn,null,d.createElement(p,{variant:"body2"},h.swapperType==="DEX"?"Swap":"Bridge"," via"," ",h.swapperId),d.createElement(On,null,d.createElement(vo,null),d.createElement(p,{variant:"body2"},"\xA0 $",h.feeInUsd," estimated gas fee")))),d.createElement("div",{style:{display:"flex"}},d.createElement(Qn,null,d.createElement(jr,null),d.createElement("div",{className:"details"},!!h.explorerUrl&&d.createElement("div",null,h.explorerUrl.map((v,I)=>d.createElement(Hr,{key:I},d.createElement(_r,null,d.createElement(q,{size:4}),d.createElement(xo,{color:"primary"}),d.createElement(Er,{variant:"body2"},d.createElement(Jn,{href:v.url,target:"_blank",rel:"noreferrer",key:I},v.description?d.createElement("b",null,v.description.substring(0,1).toUpperCase(),v.description.substring(1)," Tx"):d.createElement("b",null,"View transaction"))))))),h.status==="failed"&&d.createElement(Hr,null,d.createElement(_r,null,d.createElement(yo,{color:"error"}),d.createElement(Er,{variant:"body2",color:"$error500"},"Step failed")))))),M+1===e.steps.length&&d.createElement(Xn,null),d.createElement(po,{logo:h.toLogo,symbol:h.toSymbol,chainLogo:h.toBlockchainLogo||"",blockchain:h.toBlockchain,amount:h.outputAmount||"",estimatedAmount:h.expectedOutputAmountHumanReadable||"",success:h.status==="success"}))),d.createElement(q,{size:32})),d.createElement(Ge,{onClose:b.bind(null,!1),open:$,showClose:!0,anchor:"bottom",title:"Cancel Progress",content:d.createElement(A,{type:"warning"},d.createElement(p,{variant:"body2"},"Warning: Cancel ",d.createElement("u",null,"doesn't revert")," your transaction if you've already signed and sent a transaction to the blockchain. It only stops next steps from being executed.")),footer:d.createElement("div",{style:{display:"flex",justifyContent:"center",alignItems:"center"}},d.createElement(f,{variant:"contained",type:"success",onClick:b.bind(null,!1)},"Skip"),d.createElement(T,{size:16}),d.createElement(f,{variant:"contained",type:"error",onClick:()=>{l(e.requestId),b(!1)}},"Cancel progress")),container:document.getElementById("swap-box")}))}t(ta,"SwapHistory");import Ue from"react";import ia from"copy-to-clipboard";function na(o){let[e,r]=Ue.useState(!1),n=Ue.useCallback(a=>{ia(a.toString()),r(!0)},[]);return Ue.useEffect(()=>{let a;return e&&o&&(a=setTimeout(()=>r(!1),o)),()=>{clearTimeout(a)}},[e,o]),[e,n]}t(na,"useCopyToClipboard");export{Qe as AddCircleIcon,Do as AddIcon,ur as AddWalletIcon,A as Alert,Yo as AngleDownIcon,Se as AngleLeftIcon,Oo as AngleRightIcon,nr as AngleUpIcon,Ko as ArrowRightIcon,vr as BagIcon,or as BanIcon,Tt as BestRoute,li as BlockchainSelector,f as Button,xo as CheckCircleIcon,Eo as CheckIcon,Ke as CheckSquareIcon,yr as CheckWalletIcon,di as Checkbox,lr as ChevronRightIcon,ze as Chip,R as CloseIcon,Sn as ColorPicker,zn as ConfirmSwap,Pi as ConnectWalletsModal,Sr as CopyIcon,Je as DeleteCircleIcon,fr as DeleteWalletIcon,oe as DisconnectIcon,q as Divider,Xo as DownloadIcon,Ge as Drawer,Ie as FilledCircle,vo as GasIcon,Be as Header,_n as History,er as HistoryIcon,mr as HorizontalSwapIcon,B as Image,yo as InfoCircleIcon,Di as LiquiditySourcesSelector,ro as LoadingFailedAlert,Re as MinusCircleIcon,Ae as Modal,Ze as Radio,gr as RetryIcon,pr as RetryLeftIcon,sr as RetryRightIcon,Go as SearchIcon,ir as SearchMinusIcon,F as SecondaryPage,je as SelectableWalletList,an as Settings,rr as SettingsIcon,Cr as SignatureIcon,T as Spacer,L as Spinner,po as StepDetail,pn as SwapContainer,Ve as SwapDetail,ta as SwapHistory,xr as SwapWalletIcon,Oe as SwapsGroup,zo as Switch,Bo as TextField,ee as TimeIcon,Ne as TokenList,ii as TokenSelector,re as Tooltip,tr as TrashIcon,cr as TryAgainIcon,p as Typography,dr as VerticalSwapIcon,Mr as Wallet,hr as WalletIcon,De as WalletState,Zo as WarningIcon,Xe as createTheme,sa as css,Y as darkTheme,Vt as generateRangeColors,pa as globalCss,fo as keyframes,ca as lightTheme,i as styled,na as useCopyToClipboard};
20
+ //# sourceMappingURL=index.js.map