@rango-dev/ui 0.5.1-next.9 → 0.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +13 -0
- package/dist/index.js +2 -2
- package/dist/index.js.map +4 -4
- package/dist/translations/en.d.ts +2 -0
- package/dist/translations/en.d.ts.map +1 -0
- package/dist/translations/es.d.ts +2 -0
- package/dist/translations/es.d.ts.map +1 -0
- package/dist/translations/fr.d.ts +2 -0
- package/dist/translations/fr.d.ts.map +1 -0
- package/dist/translations/jp.d.ts +2 -0
- package/dist/translations/jp.d.ts.map +1 -0
- package/dist/widget/ui/src/components/Alert/Alert.d.ts.map +1 -0
- package/dist/widget/ui/src/components/Alert/Alert.stories.d.ts.map +1 -0
- package/dist/widget/ui/src/components/Alert/LoadingFailedAlert.d.ts.map +1 -0
- package/dist/widget/ui/src/components/Alert/NotFoundAlert.d.ts.map +1 -0
- package/dist/widget/ui/src/components/Alert/index.d.ts.map +1 -0
- package/dist/widget/ui/src/components/BestRoute/BestRoute.d.ts.map +1 -0
- package/dist/widget/ui/src/components/BestRoute/BestRoute.stories.d.ts.map +1 -0
- package/dist/widget/ui/src/components/BestRoute/index.d.ts.map +1 -0
- package/dist/widget/ui/src/components/BestRoute/mock.d.ts.map +1 -0
- package/dist/widget/ui/src/components/BlockchainsList/BlockchainsList.d.ts.map +1 -0
- package/dist/widget/ui/src/components/BlockchainsList/BlockchainsList.stories.d.ts.map +1 -0
- package/dist/widget/ui/src/components/BlockchainsList/index.d.ts.map +1 -0
- package/dist/widget/ui/src/components/BlockchainsList/mockData.d.ts.map +1 -0
- package/dist/widget/ui/src/components/Button/Button.d.ts.map +1 -0
- package/dist/widget/ui/src/components/Button/Button.stories.d.ts.map +1 -0
- package/dist/widget/ui/src/components/Button/index.d.ts.map +1 -0
- package/dist/widget/ui/src/components/Checkbox/Checkbox.d.ts.map +1 -0
- package/dist/widget/ui/src/components/Checkbox/Checkbox.stories.d.ts.map +1 -0
- package/dist/widget/ui/src/components/Checkbox/index.d.ts.map +1 -0
- package/dist/widget/ui/src/components/Chip/Chip.d.ts.map +1 -0
- package/dist/widget/ui/src/components/Chip/Chip.stories.d.ts.map +1 -0
- package/dist/widget/ui/src/components/Chip/index.d.ts.map +1 -0
- package/dist/widget/ui/src/components/ColorPicker/ColorPicker.d.ts.map +1 -0
- package/dist/widget/ui/src/components/ColorPicker/ColorPicker.stories.d.ts.map +1 -0
- package/dist/widget/ui/src/components/ColorPicker/index.d.ts.map +1 -0
- package/dist/widget/ui/src/components/Divider/Divider.d.ts.map +1 -0
- package/dist/widget/ui/src/components/Divider/index.d.ts.map +1 -0
- package/dist/widget/ui/src/components/Drawer/Drawer.d.ts.map +1 -0
- package/dist/widget/ui/src/components/Drawer/Drawer.stories.d.ts.map +1 -0
- package/dist/widget/ui/src/components/Drawer/index.d.ts.map +1 -0
- package/dist/widget/ui/src/components/Header/Header.d.ts.map +1 -0
- package/dist/widget/ui/src/components/Header/index.d.ts.map +1 -0
- package/dist/widget/ui/src/components/I18nManager/I18nManager.d.ts +14 -0
- package/dist/widget/ui/src/components/I18nManager/I18nManager.d.ts.map +1 -0
- package/dist/widget/ui/src/components/I18nManager/index.d.ts +3 -0
- package/dist/widget/ui/src/components/I18nManager/index.d.ts.map +1 -0
- package/dist/widget/ui/src/components/Icon/AddCircleIcon.d.ts.map +1 -0
- package/dist/widget/ui/src/components/Icon/AddIcon.d.ts.map +1 -0
- package/dist/widget/ui/src/components/Icon/AddWalletIcon.d.ts.map +1 -0
- package/dist/widget/ui/src/components/Icon/AngleDownIcon.d.ts.map +1 -0
- package/dist/widget/ui/src/components/Icon/AngleLeftIcon.d.ts.map +1 -0
- package/dist/widget/ui/src/components/Icon/AngleRightIcon.d.ts.map +1 -0
- package/dist/widget/ui/src/components/Icon/AngleUpIcon.d.ts.map +1 -0
- package/dist/widget/ui/src/components/Icon/ArrowRightIcon.d.ts.map +1 -0
- package/dist/widget/ui/src/components/Icon/BagIcon.d.ts.map +1 -0
- package/dist/widget/ui/src/components/Icon/BanIcon.d.ts.map +1 -0
- package/dist/widget/ui/src/components/Icon/CheckCircleIcon.d.ts.map +1 -0
- package/dist/widget/ui/src/components/Icon/CheckIcon.d.ts.map +1 -0
- package/dist/widget/ui/src/components/Icon/CheckSquareIcon.d.ts.map +1 -0
- package/dist/widget/ui/src/components/Icon/CheckWalletIcon.d.ts.map +1 -0
- package/dist/widget/ui/src/components/Icon/ChevronRightIcon.d.ts.map +1 -0
- package/dist/widget/ui/src/components/Icon/CloseIcon.d.ts.map +1 -0
- package/dist/widget/ui/src/components/Icon/CopyIcon.d.ts.map +1 -0
- package/dist/widget/ui/src/components/Icon/DeleteCircleIcon.d.ts.map +1 -0
- package/dist/widget/ui/src/components/Icon/DeleteWalletIcon.d.ts.map +1 -0
- package/dist/widget/ui/src/components/Icon/DisconnectIcon.d.ts.map +1 -0
- package/dist/widget/ui/src/components/Icon/DownloadIcon.d.ts.map +1 -0
- package/dist/widget/ui/src/components/Icon/GasIcon.d.ts.map +1 -0
- package/dist/widget/ui/src/components/Icon/HistoryIcon.d.ts.map +1 -0
- package/dist/widget/ui/src/components/Icon/HorizontalSwapIcon.d.ts.map +1 -0
- package/dist/widget/ui/src/components/Icon/Icons.stories.d.ts.map +1 -0
- package/dist/widget/ui/src/components/Icon/InfoCircleIcon.d.ts.map +1 -0
- package/dist/widget/ui/src/components/Icon/MinusCircleIcon.d.ts.map +1 -0
- package/dist/widget/ui/src/components/Icon/RetryIcon.d.ts.map +1 -0
- package/dist/widget/ui/src/components/Icon/RetryLeftIcon.d.ts.map +1 -0
- package/dist/widget/ui/src/components/Icon/RetryRightIcon.d.ts.map +1 -0
- package/dist/widget/ui/src/components/Icon/SearchIcon.d.ts.map +1 -0
- package/dist/widget/ui/src/components/Icon/SearchMinusIcon.d.ts.map +1 -0
- package/dist/widget/ui/src/components/Icon/SettingIcon.d.ts.map +1 -0
- package/dist/widget/ui/src/components/Icon/SignatureIcon.d.ts.map +1 -0
- package/dist/widget/ui/src/components/Icon/SwapWalletIcon.d.ts.map +1 -0
- package/dist/widget/ui/src/components/Icon/TimeIcon.d.ts.map +1 -0
- package/dist/widget/ui/src/components/Icon/TrashIcon.d.ts.map +1 -0
- package/dist/widget/ui/src/components/Icon/TryAgainIcon.d.ts.map +1 -0
- package/dist/widget/ui/src/components/Icon/VerticalSwapIcon.d.ts.map +1 -0
- package/dist/widget/ui/src/components/Icon/WalletIconIcon.d.ts.map +1 -0
- package/dist/widget/ui/src/components/Icon/WarningIcon.d.ts.map +1 -0
- package/dist/widget/ui/src/components/Icon/common.d.ts.map +1 -0
- package/dist/widget/ui/src/components/Icon/index.d.ts.map +1 -0
- package/dist/widget/ui/src/components/Icon/types.d.ts.map +1 -0
- package/dist/widget/ui/src/components/LiquiditySourceList/LiquiditySource.stories.d.ts.map +1 -0
- package/dist/widget/ui/src/components/LiquiditySourceList/LiquiditySourceList.d.ts.map +1 -0
- package/dist/widget/ui/src/components/LiquiditySourceList/index.d.ts.map +1 -0
- package/dist/widget/ui/src/components/LiquiditySourceList/mockData.d.ts.map +1 -0
- package/dist/widget/ui/src/components/Modal/Modal.d.ts.map +1 -0
- package/dist/widget/ui/src/components/Modal/Modal.stories.d.ts.map +1 -0
- package/dist/widget/ui/src/components/Modal/index.d.ts.map +1 -0
- package/dist/widget/ui/src/components/Radio/Radio.d.ts.map +1 -0
- package/dist/widget/ui/src/components/Radio/Radio.stories.d.ts.map +1 -0
- package/dist/widget/ui/src/components/Radio/index.d.ts.map +1 -0
- package/dist/widget/ui/src/components/SecondaryPage/SecondaryPage.d.ts.map +1 -0
- package/dist/widget/ui/src/components/SecondaryPage/SecondaryPage.stories.d.ts.map +1 -0
- package/dist/widget/ui/src/components/SecondaryPage/index.d.ts.map +1 -0
- package/dist/widget/ui/src/components/SelectableWalletList/SelectableWalletList.d.ts.map +1 -0
- package/dist/widget/ui/src/components/SelectableWalletList/SelectableWalletList.stories.d.ts.map +1 -0
- package/dist/widget/ui/src/components/SelectableWalletList/index.d.ts.map +1 -0
- package/dist/widget/ui/src/components/SelectableWalletList/mock.d.ts.map +1 -0
- package/dist/widget/ui/src/components/Skeleton/Skeleton.d.ts.map +1 -0
- package/dist/widget/ui/src/components/Skeleton/Skeleton.stories.d.ts.map +1 -0
- package/dist/widget/ui/src/components/Skeleton/index.d.ts.map +1 -0
- package/dist/widget/ui/src/components/Spinner/Spinner.d.ts.map +1 -0
- package/dist/widget/ui/src/components/Spinner/Spinner.stories.d.ts.map +1 -0
- package/dist/widget/ui/src/components/Spinner/index.d.ts.map +1 -0
- package/dist/widget/ui/src/components/StatusDrawer/StatusDrawer.d.ts.map +1 -0
- package/dist/widget/ui/src/components/StatusDrawer/StatusDrawer.stories.d.ts.map +1 -0
- package/dist/widget/ui/src/components/StatusDrawer/index.d.ts.map +1 -0
- package/dist/widget/ui/src/components/StepDetail/StepDetail.d.ts.map +1 -0
- package/dist/widget/ui/src/components/StepDetail/StepDetail.stories.d.ts.map +1 -0
- package/dist/widget/ui/src/components/StepDetail/index.d.ts.map +1 -0
- package/dist/widget/ui/src/components/SwapContainer/SwapContainer.d.ts.map +1 -0
- package/dist/widget/ui/src/components/SwapContainer/index.d.ts.map +1 -0
- package/dist/widget/ui/src/components/SwapDetail/SwapDetail.d.ts.map +1 -0
- package/dist/widget/ui/src/components/SwapDetail/SwapDetail.stories.d.ts.map +1 -0
- package/dist/widget/ui/src/components/SwapDetail/Token.d.ts.map +1 -0
- package/dist/widget/ui/src/components/SwapDetail/index.d.ts.map +1 -0
- package/dist/widget/ui/src/components/SwapDetail/mock.d.ts.map +1 -0
- package/dist/widget/ui/src/components/Switch/Switch.d.ts.map +1 -0
- package/dist/widget/ui/src/components/Switch/Switch.stories.d.ts.map +1 -0
- package/dist/widget/ui/src/components/Switch/index.d.ts.map +1 -0
- package/dist/widget/ui/src/components/TextField/TextField.d.ts.map +1 -0
- package/dist/widget/ui/src/components/TextField/TextField.stories.d.ts.map +1 -0
- package/dist/widget/ui/src/components/TextField/index.d.ts.map +1 -0
- package/dist/widget/ui/src/components/TokenList/TokenItem.d.ts.map +1 -0
- package/dist/widget/ui/src/components/TokenList/TokenList.d.ts.map +1 -0
- package/dist/widget/ui/src/components/TokenList/TokenList.stories.d.ts.map +1 -0
- package/dist/widget/ui/src/components/TokenList/index.d.ts.map +1 -0
- package/dist/widget/ui/src/components/TokenList/mockData.d.ts.map +1 -0
- package/dist/widget/ui/src/components/Tooltip/Tooltip.d.ts.map +1 -0
- package/dist/widget/ui/src/components/Tooltip/Tooltip.stories.d.ts.map +1 -0
- package/dist/widget/ui/src/components/Tooltip/index.d.ts.map +1 -0
- package/dist/widget/ui/src/components/Typography/Typography.d.ts.map +1 -0
- package/dist/widget/ui/src/components/Typography/Typography.stories.d.ts.map +1 -0
- package/dist/widget/ui/src/components/Typography/index.d.ts.map +1 -0
- package/dist/widget/ui/src/components/VirtualizedList/VirtualizedList.d.ts.map +1 -0
- package/dist/widget/ui/src/components/Wallet/State.d.ts.map +1 -0
- package/dist/widget/ui/src/components/Wallet/Wallet.d.ts.map +1 -0
- package/dist/widget/ui/src/components/Wallet/Wallet.stories.d.ts.map +1 -0
- package/dist/widget/ui/src/components/Wallet/index.d.ts.map +1 -0
- package/dist/widget/ui/src/components/common/FilledCircle.d.ts.map +1 -0
- package/dist/widget/ui/src/components/common/Image.d.ts.map +1 -0
- package/dist/widget/ui/src/components/common/index.d.ts.map +1 -0
- package/dist/{components → widget/ui/src/components}/index.d.ts +1 -0
- package/dist/widget/ui/src/components/index.d.ts.map +1 -0
- package/dist/widget/ui/src/containers/BlockchainSelector/BlockchainSelector.d.ts.map +1 -0
- package/dist/widget/ui/src/containers/BlockchainSelector/BlockchainSelector.stories.d.ts.map +1 -0
- package/dist/widget/ui/src/containers/BlockchainSelector/index.d.ts.map +1 -0
- package/dist/widget/ui/src/containers/ConfirmSwap/ConfirmSwap.d.ts.map +1 -0
- package/dist/widget/ui/src/containers/ConfirmSwap/ConfirmSwap.stories.d.ts.map +1 -0
- package/dist/widget/ui/src/containers/ConfirmSwap/index.d.ts.map +1 -0
- package/dist/widget/ui/src/containers/ConfirmSwap/mock.d.ts.map +1 -0
- package/dist/widget/ui/src/containers/ConnectWalletsModal/ConnectWallets.stories.d.ts.map +1 -0
- package/dist/widget/ui/src/containers/ConnectWalletsModal/ConnectWalletsModal.d.ts.map +1 -0
- package/dist/widget/ui/src/containers/ConnectWalletsModal/index.d.ts.map +1 -0
- package/dist/widget/ui/src/containers/ConnectWalletsModal/mockData.d.ts.map +1 -0
- package/dist/widget/ui/src/containers/History/History.d.ts.map +1 -0
- package/dist/widget/ui/src/containers/History/History.stories.d.ts.map +1 -0
- package/dist/widget/ui/src/containers/History/SwapsGroup.d.ts.map +1 -0
- package/dist/widget/ui/src/containers/History/index.d.ts.map +1 -0
- package/dist/widget/ui/src/containers/History/mock.d.ts.map +1 -0
- package/dist/widget/ui/src/containers/History/types.d.ts.map +1 -0
- package/dist/widget/ui/src/containers/LiquiditySourcesSelector/LiquiditySourcesSelector.d.ts.map +1 -0
- package/dist/widget/ui/src/containers/LiquiditySourcesSelector/LiquiditySourcesSelector.stories.d.ts.map +1 -0
- package/dist/widget/ui/src/containers/LiquiditySourcesSelector/index.d.ts.map +1 -0
- package/dist/widget/ui/src/containers/Settings/Settings.d.ts.map +1 -0
- package/dist/widget/ui/src/containers/Settings/Settings.stories.d.ts.map +1 -0
- package/dist/widget/ui/src/containers/Settings/index.d.ts.map +1 -0
- package/dist/widget/ui/src/containers/SwapHistory/SwapHistory.d.ts.map +1 -0
- package/dist/widget/ui/src/containers/SwapHistory/SwapHistory.stories.d.ts.map +1 -0
- package/dist/widget/ui/src/containers/SwapHistory/SwapMessages.d.ts.map +1 -0
- package/dist/widget/ui/src/containers/SwapHistory/index.d.ts.map +1 -0
- package/dist/widget/ui/src/containers/SwapHistory/mock.d.ts.map +1 -0
- package/dist/widget/ui/src/containers/TokenSelector/TokenSelector.d.ts.map +1 -0
- package/dist/widget/ui/src/containers/TokenSelector/TokenSelector.stories.d.ts.map +1 -0
- package/dist/widget/ui/src/containers/TokenSelector/index.d.ts.map +1 -0
- package/dist/widget/ui/src/containers/index.d.ts.map +1 -0
- package/dist/widget/ui/src/helper/index.d.ts.map +1 -0
- package/dist/widget/ui/src/hooks/index.d.ts.map +1 -0
- package/dist/widget/ui/src/hooks/useCopyToClipboard.d.ts.map +1 -0
- package/dist/widget/ui/src/index.d.ts.map +1 -0
- package/dist/{theme.d.ts → widget/ui/src/theme.d.ts} +4 -4
- package/dist/{theme.d.ts.map → widget/ui/src/theme.d.ts.map} +1 -1
- package/dist/widget/ui/src/types/index.d.ts.map +1 -0
- package/dist/widget/ui/src/types/meta.d.ts.map +1 -0
- package/dist/widget/ui/src/types/swaps.d.ts.map +1 -0
- package/dist/widget/ui/src/types/wallet.d.ts.map +1 -0
- package/package.json +4 -4
- package/src/components/Alert/LoadingFailedAlert.tsx +4 -1
- package/src/components/BestRoute/BestRoute.tsx +5 -5
- package/src/components/I18nManager/I18nManager.tsx +40 -0
- package/src/components/I18nManager/index.ts +2 -0
- package/src/components/LiquiditySourceList/LiquiditySourceList.tsx +5 -6
- package/src/components/TokenList/mockData.ts +641 -1502
- package/src/components/index.ts +1 -0
- package/src/containers/ConnectWalletsModal/ConnectWalletsModal.tsx +2 -1
- package/src/containers/Settings/Settings.tsx +12 -10
- package/dist/components/Alert/Alert.d.ts.map +0 -1
- package/dist/components/Alert/Alert.stories.d.ts.map +0 -1
- package/dist/components/Alert/LoadingFailedAlert.d.ts.map +0 -1
- package/dist/components/Alert/NotFoundAlert.d.ts.map +0 -1
- package/dist/components/Alert/index.d.ts.map +0 -1
- package/dist/components/BestRoute/BestRoute.d.ts.map +0 -1
- package/dist/components/BestRoute/BestRoute.stories.d.ts.map +0 -1
- package/dist/components/BestRoute/index.d.ts.map +0 -1
- package/dist/components/BestRoute/mock.d.ts.map +0 -1
- package/dist/components/BlockchainsList/BlockchainsList.d.ts.map +0 -1
- package/dist/components/BlockchainsList/BlockchainsList.stories.d.ts.map +0 -1
- package/dist/components/BlockchainsList/index.d.ts.map +0 -1
- package/dist/components/BlockchainsList/mockData.d.ts.map +0 -1
- package/dist/components/Button/Button.d.ts.map +0 -1
- package/dist/components/Button/Button.stories.d.ts.map +0 -1
- package/dist/components/Button/index.d.ts.map +0 -1
- package/dist/components/Checkbox/Checkbox.d.ts.map +0 -1
- package/dist/components/Checkbox/Checkbox.stories.d.ts.map +0 -1
- package/dist/components/Checkbox/index.d.ts.map +0 -1
- package/dist/components/Chip/Chip.d.ts.map +0 -1
- package/dist/components/Chip/Chip.stories.d.ts.map +0 -1
- package/dist/components/Chip/index.d.ts.map +0 -1
- package/dist/components/ColorPicker/ColorPicker.d.ts.map +0 -1
- package/dist/components/ColorPicker/ColorPicker.stories.d.ts.map +0 -1
- package/dist/components/ColorPicker/index.d.ts.map +0 -1
- package/dist/components/Divider/Divider.d.ts.map +0 -1
- package/dist/components/Divider/index.d.ts.map +0 -1
- package/dist/components/Drawer/Drawer.d.ts.map +0 -1
- package/dist/components/Drawer/Drawer.stories.d.ts.map +0 -1
- package/dist/components/Drawer/index.d.ts.map +0 -1
- package/dist/components/Header/Header.d.ts.map +0 -1
- package/dist/components/Header/index.d.ts.map +0 -1
- package/dist/components/Icon/AddCircleIcon.d.ts.map +0 -1
- package/dist/components/Icon/AddIcon.d.ts.map +0 -1
- package/dist/components/Icon/AddWalletIcon.d.ts.map +0 -1
- package/dist/components/Icon/AngleDownIcon.d.ts.map +0 -1
- package/dist/components/Icon/AngleLeftIcon.d.ts.map +0 -1
- package/dist/components/Icon/AngleRightIcon.d.ts.map +0 -1
- package/dist/components/Icon/AngleUpIcon.d.ts.map +0 -1
- package/dist/components/Icon/ArrowRightIcon.d.ts.map +0 -1
- package/dist/components/Icon/BagIcon.d.ts.map +0 -1
- package/dist/components/Icon/BanIcon.d.ts.map +0 -1
- package/dist/components/Icon/CheckCircleIcon.d.ts.map +0 -1
- package/dist/components/Icon/CheckIcon.d.ts.map +0 -1
- package/dist/components/Icon/CheckSquareIcon.d.ts.map +0 -1
- package/dist/components/Icon/CheckWalletIcon.d.ts.map +0 -1
- package/dist/components/Icon/ChevronRightIcon.d.ts.map +0 -1
- package/dist/components/Icon/CloseIcon.d.ts.map +0 -1
- package/dist/components/Icon/CopyIcon.d.ts.map +0 -1
- package/dist/components/Icon/DeleteCircleIcon.d.ts.map +0 -1
- package/dist/components/Icon/DeleteWalletIcon.d.ts.map +0 -1
- package/dist/components/Icon/DisconnectIcon.d.ts.map +0 -1
- package/dist/components/Icon/DownloadIcon.d.ts.map +0 -1
- package/dist/components/Icon/GasIcon.d.ts.map +0 -1
- package/dist/components/Icon/HistoryIcon.d.ts.map +0 -1
- package/dist/components/Icon/HorizontalSwapIcon.d.ts.map +0 -1
- package/dist/components/Icon/Icons.stories.d.ts.map +0 -1
- package/dist/components/Icon/InfoCircleIcon.d.ts.map +0 -1
- package/dist/components/Icon/MinusCircleIcon.d.ts.map +0 -1
- package/dist/components/Icon/RetryIcon.d.ts.map +0 -1
- package/dist/components/Icon/RetryLeftIcon.d.ts.map +0 -1
- package/dist/components/Icon/RetryRightIcon.d.ts.map +0 -1
- package/dist/components/Icon/SearchIcon.d.ts.map +0 -1
- package/dist/components/Icon/SearchMinusIcon.d.ts.map +0 -1
- package/dist/components/Icon/SettingIcon.d.ts.map +0 -1
- package/dist/components/Icon/SignatureIcon.d.ts.map +0 -1
- package/dist/components/Icon/SwapWalletIcon.d.ts.map +0 -1
- package/dist/components/Icon/TimeIcon.d.ts.map +0 -1
- package/dist/components/Icon/TrashIcon.d.ts.map +0 -1
- package/dist/components/Icon/TryAgainIcon.d.ts.map +0 -1
- package/dist/components/Icon/VerticalSwapIcon.d.ts.map +0 -1
- package/dist/components/Icon/WalletIconIcon.d.ts.map +0 -1
- package/dist/components/Icon/WarningIcon.d.ts.map +0 -1
- package/dist/components/Icon/common.d.ts.map +0 -1
- package/dist/components/Icon/index.d.ts.map +0 -1
- package/dist/components/Icon/types.d.ts.map +0 -1
- package/dist/components/LiquiditySourceList/LiquiditySource.stories.d.ts.map +0 -1
- package/dist/components/LiquiditySourceList/LiquiditySourceList.d.ts.map +0 -1
- package/dist/components/LiquiditySourceList/index.d.ts.map +0 -1
- package/dist/components/LiquiditySourceList/mockData.d.ts.map +0 -1
- package/dist/components/Modal/Modal.d.ts.map +0 -1
- package/dist/components/Modal/Modal.stories.d.ts.map +0 -1
- package/dist/components/Modal/index.d.ts.map +0 -1
- package/dist/components/Radio/Radio.d.ts.map +0 -1
- package/dist/components/Radio/Radio.stories.d.ts.map +0 -1
- package/dist/components/Radio/index.d.ts.map +0 -1
- package/dist/components/SecondaryPage/SecondaryPage.d.ts.map +0 -1
- package/dist/components/SecondaryPage/SecondaryPage.stories.d.ts.map +0 -1
- package/dist/components/SecondaryPage/index.d.ts.map +0 -1
- package/dist/components/SelectableWalletList/SelectableWalletList.d.ts.map +0 -1
- package/dist/components/SelectableWalletList/SelectableWalletList.stories.d.ts.map +0 -1
- package/dist/components/SelectableWalletList/index.d.ts.map +0 -1
- package/dist/components/SelectableWalletList/mock.d.ts.map +0 -1
- package/dist/components/Skeleton/Skeleton.d.ts.map +0 -1
- package/dist/components/Skeleton/Skeleton.stories.d.ts.map +0 -1
- package/dist/components/Skeleton/index.d.ts.map +0 -1
- package/dist/components/Spinner/Spinner.d.ts.map +0 -1
- package/dist/components/Spinner/Spinner.stories.d.ts.map +0 -1
- package/dist/components/Spinner/index.d.ts.map +0 -1
- package/dist/components/StatusDrawer/StatusDrawer.d.ts.map +0 -1
- package/dist/components/StatusDrawer/StatusDrawer.stories.d.ts.map +0 -1
- package/dist/components/StatusDrawer/index.d.ts.map +0 -1
- package/dist/components/StepDetail/StepDetail.d.ts.map +0 -1
- package/dist/components/StepDetail/StepDetail.stories.d.ts.map +0 -1
- package/dist/components/StepDetail/index.d.ts.map +0 -1
- package/dist/components/SwapContainer/SwapContainer.d.ts.map +0 -1
- package/dist/components/SwapContainer/index.d.ts.map +0 -1
- package/dist/components/SwapDetail/SwapDetail.d.ts.map +0 -1
- package/dist/components/SwapDetail/SwapDetail.stories.d.ts.map +0 -1
- package/dist/components/SwapDetail/Token.d.ts.map +0 -1
- package/dist/components/SwapDetail/index.d.ts.map +0 -1
- package/dist/components/SwapDetail/mock.d.ts.map +0 -1
- package/dist/components/Switch/Switch.d.ts.map +0 -1
- package/dist/components/Switch/Switch.stories.d.ts.map +0 -1
- package/dist/components/Switch/index.d.ts.map +0 -1
- package/dist/components/TextField/TextField.d.ts.map +0 -1
- package/dist/components/TextField/TextField.stories.d.ts.map +0 -1
- package/dist/components/TextField/index.d.ts.map +0 -1
- package/dist/components/TokenList/TokenItem.d.ts.map +0 -1
- package/dist/components/TokenList/TokenList.d.ts.map +0 -1
- package/dist/components/TokenList/TokenList.stories.d.ts.map +0 -1
- package/dist/components/TokenList/index.d.ts.map +0 -1
- package/dist/components/TokenList/mockData.d.ts.map +0 -1
- package/dist/components/Tooltip/Tooltip.d.ts.map +0 -1
- package/dist/components/Tooltip/Tooltip.stories.d.ts.map +0 -1
- package/dist/components/Tooltip/index.d.ts.map +0 -1
- package/dist/components/Typography/Typography.d.ts.map +0 -1
- package/dist/components/Typography/Typography.stories.d.ts.map +0 -1
- package/dist/components/Typography/index.d.ts.map +0 -1
- package/dist/components/VirtualizedList/VirtualizedList.d.ts.map +0 -1
- package/dist/components/Wallet/State.d.ts.map +0 -1
- package/dist/components/Wallet/Wallet.d.ts.map +0 -1
- package/dist/components/Wallet/Wallet.stories.d.ts.map +0 -1
- package/dist/components/Wallet/index.d.ts.map +0 -1
- package/dist/components/common/FilledCircle.d.ts.map +0 -1
- package/dist/components/common/Image.d.ts.map +0 -1
- package/dist/components/common/index.d.ts.map +0 -1
- package/dist/components/index.d.ts.map +0 -1
- package/dist/containers/BlockchainSelector/BlockchainSelector.d.ts.map +0 -1
- package/dist/containers/BlockchainSelector/BlockchainSelector.stories.d.ts.map +0 -1
- package/dist/containers/BlockchainSelector/index.d.ts.map +0 -1
- package/dist/containers/ConfirmSwap/ConfirmSwap.d.ts.map +0 -1
- package/dist/containers/ConfirmSwap/ConfirmSwap.stories.d.ts.map +0 -1
- package/dist/containers/ConfirmSwap/index.d.ts.map +0 -1
- package/dist/containers/ConfirmSwap/mock.d.ts.map +0 -1
- package/dist/containers/ConnectWalletsModal/ConnectWallets.stories.d.ts.map +0 -1
- package/dist/containers/ConnectWalletsModal/ConnectWalletsModal.d.ts.map +0 -1
- package/dist/containers/ConnectWalletsModal/index.d.ts.map +0 -1
- package/dist/containers/ConnectWalletsModal/mockData.d.ts.map +0 -1
- package/dist/containers/History/History.d.ts.map +0 -1
- package/dist/containers/History/History.stories.d.ts.map +0 -1
- package/dist/containers/History/SwapsGroup.d.ts.map +0 -1
- package/dist/containers/History/index.d.ts.map +0 -1
- package/dist/containers/History/mock.d.ts.map +0 -1
- package/dist/containers/History/types.d.ts.map +0 -1
- package/dist/containers/LiquiditySourcesSelector/LiquiditySourcesSelector.d.ts.map +0 -1
- package/dist/containers/LiquiditySourcesSelector/LiquiditySourcesSelector.stories.d.ts.map +0 -1
- package/dist/containers/LiquiditySourcesSelector/index.d.ts.map +0 -1
- package/dist/containers/Settings/Settings.d.ts.map +0 -1
- package/dist/containers/Settings/Settings.stories.d.ts.map +0 -1
- package/dist/containers/Settings/index.d.ts.map +0 -1
- package/dist/containers/SwapHistory/SwapHistory.d.ts.map +0 -1
- package/dist/containers/SwapHistory/SwapHistory.stories.d.ts.map +0 -1
- package/dist/containers/SwapHistory/SwapMessages.d.ts.map +0 -1
- package/dist/containers/SwapHistory/index.d.ts.map +0 -1
- package/dist/containers/SwapHistory/mock.d.ts.map +0 -1
- package/dist/containers/TokenSelector/TokenSelector.d.ts.map +0 -1
- package/dist/containers/TokenSelector/TokenSelector.stories.d.ts.map +0 -1
- package/dist/containers/TokenSelector/index.d.ts.map +0 -1
- package/dist/containers/index.d.ts.map +0 -1
- package/dist/helper/index.d.ts.map +0 -1
- package/dist/hooks/index.d.ts.map +0 -1
- package/dist/hooks/useCopyToClipboard.d.ts.map +0 -1
- package/dist/index.d.ts.map +0 -1
- package/dist/types/index.d.ts.map +0 -1
- package/dist/types/meta.d.ts.map +0 -1
- package/dist/types/swaps.d.ts.map +0 -1
- package/dist/types/wallet.d.ts.map +0 -1
- /package/dist/{components → widget/ui/src/components}/Alert/Alert.d.ts +0 -0
- /package/dist/{components → widget/ui/src/components}/Alert/Alert.stories.d.ts +0 -0
- /package/dist/{components → widget/ui/src/components}/Alert/LoadingFailedAlert.d.ts +0 -0
- /package/dist/{components → widget/ui/src/components}/Alert/NotFoundAlert.d.ts +0 -0
- /package/dist/{components → widget/ui/src/components}/Alert/index.d.ts +0 -0
- /package/dist/{components → widget/ui/src/components}/BestRoute/BestRoute.d.ts +0 -0
- /package/dist/{components → widget/ui/src/components}/BestRoute/BestRoute.stories.d.ts +0 -0
- /package/dist/{components → widget/ui/src/components}/BestRoute/index.d.ts +0 -0
- /package/dist/{components → widget/ui/src/components}/BestRoute/mock.d.ts +0 -0
- /package/dist/{components → widget/ui/src/components}/BlockchainsList/BlockchainsList.d.ts +0 -0
- /package/dist/{components → widget/ui/src/components}/BlockchainsList/BlockchainsList.stories.d.ts +0 -0
- /package/dist/{components → widget/ui/src/components}/BlockchainsList/index.d.ts +0 -0
- /package/dist/{components → widget/ui/src/components}/BlockchainsList/mockData.d.ts +0 -0
- /package/dist/{components → widget/ui/src/components}/Button/Button.d.ts +0 -0
- /package/dist/{components → widget/ui/src/components}/Button/Button.stories.d.ts +0 -0
- /package/dist/{components → widget/ui/src/components}/Button/index.d.ts +0 -0
- /package/dist/{components → widget/ui/src/components}/Checkbox/Checkbox.d.ts +0 -0
- /package/dist/{components → widget/ui/src/components}/Checkbox/Checkbox.stories.d.ts +0 -0
- /package/dist/{components → widget/ui/src/components}/Checkbox/index.d.ts +0 -0
- /package/dist/{components → widget/ui/src/components}/Chip/Chip.d.ts +0 -0
- /package/dist/{components → widget/ui/src/components}/Chip/Chip.stories.d.ts +0 -0
- /package/dist/{components → widget/ui/src/components}/Chip/index.d.ts +0 -0
- /package/dist/{components → widget/ui/src/components}/ColorPicker/ColorPicker.d.ts +0 -0
- /package/dist/{components → widget/ui/src/components}/ColorPicker/ColorPicker.stories.d.ts +0 -0
- /package/dist/{components → widget/ui/src/components}/ColorPicker/index.d.ts +0 -0
- /package/dist/{components → widget/ui/src/components}/Divider/Divider.d.ts +0 -0
- /package/dist/{components → widget/ui/src/components}/Divider/index.d.ts +0 -0
- /package/dist/{components → widget/ui/src/components}/Drawer/Drawer.d.ts +0 -0
- /package/dist/{components → widget/ui/src/components}/Drawer/Drawer.stories.d.ts +0 -0
- /package/dist/{components → widget/ui/src/components}/Drawer/index.d.ts +0 -0
- /package/dist/{components → widget/ui/src/components}/Header/Header.d.ts +0 -0
- /package/dist/{components → widget/ui/src/components}/Header/index.d.ts +0 -0
- /package/dist/{components → widget/ui/src/components}/Icon/AddCircleIcon.d.ts +0 -0
- /package/dist/{components → widget/ui/src/components}/Icon/AddIcon.d.ts +0 -0
- /package/dist/{components → widget/ui/src/components}/Icon/AddWalletIcon.d.ts +0 -0
- /package/dist/{components → widget/ui/src/components}/Icon/AngleDownIcon.d.ts +0 -0
- /package/dist/{components → widget/ui/src/components}/Icon/AngleLeftIcon.d.ts +0 -0
- /package/dist/{components → widget/ui/src/components}/Icon/AngleRightIcon.d.ts +0 -0
- /package/dist/{components → widget/ui/src/components}/Icon/AngleUpIcon.d.ts +0 -0
- /package/dist/{components → widget/ui/src/components}/Icon/ArrowRightIcon.d.ts +0 -0
- /package/dist/{components → widget/ui/src/components}/Icon/BagIcon.d.ts +0 -0
- /package/dist/{components → widget/ui/src/components}/Icon/BanIcon.d.ts +0 -0
- /package/dist/{components → widget/ui/src/components}/Icon/CheckCircleIcon.d.ts +0 -0
- /package/dist/{components → widget/ui/src/components}/Icon/CheckIcon.d.ts +0 -0
- /package/dist/{components → widget/ui/src/components}/Icon/CheckSquareIcon.d.ts +0 -0
- /package/dist/{components → widget/ui/src/components}/Icon/CheckWalletIcon.d.ts +0 -0
- /package/dist/{components → widget/ui/src/components}/Icon/ChevronRightIcon.d.ts +0 -0
- /package/dist/{components → widget/ui/src/components}/Icon/CloseIcon.d.ts +0 -0
- /package/dist/{components → widget/ui/src/components}/Icon/CopyIcon.d.ts +0 -0
- /package/dist/{components → widget/ui/src/components}/Icon/DeleteCircleIcon.d.ts +0 -0
- /package/dist/{components → widget/ui/src/components}/Icon/DeleteWalletIcon.d.ts +0 -0
- /package/dist/{components → widget/ui/src/components}/Icon/DisconnectIcon.d.ts +0 -0
- /package/dist/{components → widget/ui/src/components}/Icon/DownloadIcon.d.ts +0 -0
- /package/dist/{components → widget/ui/src/components}/Icon/GasIcon.d.ts +0 -0
- /package/dist/{components → widget/ui/src/components}/Icon/HistoryIcon.d.ts +0 -0
- /package/dist/{components → widget/ui/src/components}/Icon/HorizontalSwapIcon.d.ts +0 -0
- /package/dist/{components → widget/ui/src/components}/Icon/Icons.stories.d.ts +0 -0
- /package/dist/{components → widget/ui/src/components}/Icon/InfoCircleIcon.d.ts +0 -0
- /package/dist/{components → widget/ui/src/components}/Icon/MinusCircleIcon.d.ts +0 -0
- /package/dist/{components → widget/ui/src/components}/Icon/RetryIcon.d.ts +0 -0
- /package/dist/{components → widget/ui/src/components}/Icon/RetryLeftIcon.d.ts +0 -0
- /package/dist/{components → widget/ui/src/components}/Icon/RetryRightIcon.d.ts +0 -0
- /package/dist/{components → widget/ui/src/components}/Icon/SearchIcon.d.ts +0 -0
- /package/dist/{components → widget/ui/src/components}/Icon/SearchMinusIcon.d.ts +0 -0
- /package/dist/{components → widget/ui/src/components}/Icon/SettingIcon.d.ts +0 -0
- /package/dist/{components → widget/ui/src/components}/Icon/SignatureIcon.d.ts +0 -0
- /package/dist/{components → widget/ui/src/components}/Icon/SwapWalletIcon.d.ts +0 -0
- /package/dist/{components → widget/ui/src/components}/Icon/TimeIcon.d.ts +0 -0
- /package/dist/{components → widget/ui/src/components}/Icon/TrashIcon.d.ts +0 -0
- /package/dist/{components → widget/ui/src/components}/Icon/TryAgainIcon.d.ts +0 -0
- /package/dist/{components → widget/ui/src/components}/Icon/VerticalSwapIcon.d.ts +0 -0
- /package/dist/{components → widget/ui/src/components}/Icon/WalletIconIcon.d.ts +0 -0
- /package/dist/{components → widget/ui/src/components}/Icon/WarningIcon.d.ts +0 -0
- /package/dist/{components → widget/ui/src/components}/Icon/common.d.ts +0 -0
- /package/dist/{components → widget/ui/src/components}/Icon/index.d.ts +0 -0
- /package/dist/{components → widget/ui/src/components}/Icon/types.d.ts +0 -0
- /package/dist/{components → widget/ui/src/components}/LiquiditySourceList/LiquiditySource.stories.d.ts +0 -0
- /package/dist/{components → widget/ui/src/components}/LiquiditySourceList/LiquiditySourceList.d.ts +0 -0
- /package/dist/{components → widget/ui/src/components}/LiquiditySourceList/index.d.ts +0 -0
- /package/dist/{components → widget/ui/src/components}/LiquiditySourceList/mockData.d.ts +0 -0
- /package/dist/{components → widget/ui/src/components}/Modal/Modal.d.ts +0 -0
- /package/dist/{components → widget/ui/src/components}/Modal/Modal.stories.d.ts +0 -0
- /package/dist/{components → widget/ui/src/components}/Modal/index.d.ts +0 -0
- /package/dist/{components → widget/ui/src/components}/Radio/Radio.d.ts +0 -0
- /package/dist/{components → widget/ui/src/components}/Radio/Radio.stories.d.ts +0 -0
- /package/dist/{components → widget/ui/src/components}/Radio/index.d.ts +0 -0
- /package/dist/{components → widget/ui/src/components}/SecondaryPage/SecondaryPage.d.ts +0 -0
- /package/dist/{components → widget/ui/src/components}/SecondaryPage/SecondaryPage.stories.d.ts +0 -0
- /package/dist/{components → widget/ui/src/components}/SecondaryPage/index.d.ts +0 -0
- /package/dist/{components → widget/ui/src/components}/SelectableWalletList/SelectableWalletList.d.ts +0 -0
- /package/dist/{components → widget/ui/src/components}/SelectableWalletList/SelectableWalletList.stories.d.ts +0 -0
- /package/dist/{components → widget/ui/src/components}/SelectableWalletList/index.d.ts +0 -0
- /package/dist/{components → widget/ui/src/components}/SelectableWalletList/mock.d.ts +0 -0
- /package/dist/{components → widget/ui/src/components}/Skeleton/Skeleton.d.ts +0 -0
- /package/dist/{components → widget/ui/src/components}/Skeleton/Skeleton.stories.d.ts +0 -0
- /package/dist/{components → widget/ui/src/components}/Skeleton/index.d.ts +0 -0
- /package/dist/{components → widget/ui/src/components}/Spinner/Spinner.d.ts +0 -0
- /package/dist/{components → widget/ui/src/components}/Spinner/Spinner.stories.d.ts +0 -0
- /package/dist/{components → widget/ui/src/components}/Spinner/index.d.ts +0 -0
- /package/dist/{components → widget/ui/src/components}/StatusDrawer/StatusDrawer.d.ts +0 -0
- /package/dist/{components → widget/ui/src/components}/StatusDrawer/StatusDrawer.stories.d.ts +0 -0
- /package/dist/{components → widget/ui/src/components}/StatusDrawer/index.d.ts +0 -0
- /package/dist/{components → widget/ui/src/components}/StepDetail/StepDetail.d.ts +0 -0
- /package/dist/{components → widget/ui/src/components}/StepDetail/StepDetail.stories.d.ts +0 -0
- /package/dist/{components → widget/ui/src/components}/StepDetail/index.d.ts +0 -0
- /package/dist/{components → widget/ui/src/components}/SwapContainer/SwapContainer.d.ts +0 -0
- /package/dist/{components → widget/ui/src/components}/SwapContainer/index.d.ts +0 -0
- /package/dist/{components → widget/ui/src/components}/SwapDetail/SwapDetail.d.ts +0 -0
- /package/dist/{components → widget/ui/src/components}/SwapDetail/SwapDetail.stories.d.ts +0 -0
- /package/dist/{components → widget/ui/src/components}/SwapDetail/Token.d.ts +0 -0
- /package/dist/{components → widget/ui/src/components}/SwapDetail/index.d.ts +0 -0
- /package/dist/{components → widget/ui/src/components}/SwapDetail/mock.d.ts +0 -0
- /package/dist/{components → widget/ui/src/components}/Switch/Switch.d.ts +0 -0
- /package/dist/{components → widget/ui/src/components}/Switch/Switch.stories.d.ts +0 -0
- /package/dist/{components → widget/ui/src/components}/Switch/index.d.ts +0 -0
- /package/dist/{components → widget/ui/src/components}/TextField/TextField.d.ts +0 -0
- /package/dist/{components → widget/ui/src/components}/TextField/TextField.stories.d.ts +0 -0
- /package/dist/{components → widget/ui/src/components}/TextField/index.d.ts +0 -0
- /package/dist/{components → widget/ui/src/components}/TokenList/TokenItem.d.ts +0 -0
- /package/dist/{components → widget/ui/src/components}/TokenList/TokenList.d.ts +0 -0
- /package/dist/{components → widget/ui/src/components}/TokenList/TokenList.stories.d.ts +0 -0
- /package/dist/{components → widget/ui/src/components}/TokenList/index.d.ts +0 -0
- /package/dist/{components → widget/ui/src/components}/TokenList/mockData.d.ts +0 -0
- /package/dist/{components → widget/ui/src/components}/Tooltip/Tooltip.d.ts +0 -0
- /package/dist/{components → widget/ui/src/components}/Tooltip/Tooltip.stories.d.ts +0 -0
- /package/dist/{components → widget/ui/src/components}/Tooltip/index.d.ts +0 -0
- /package/dist/{components → widget/ui/src/components}/Typography/Typography.d.ts +0 -0
- /package/dist/{components → widget/ui/src/components}/Typography/Typography.stories.d.ts +0 -0
- /package/dist/{components → widget/ui/src/components}/Typography/index.d.ts +0 -0
- /package/dist/{components → widget/ui/src/components}/VirtualizedList/VirtualizedList.d.ts +0 -0
- /package/dist/{components → widget/ui/src/components}/Wallet/State.d.ts +0 -0
- /package/dist/{components → widget/ui/src/components}/Wallet/Wallet.d.ts +0 -0
- /package/dist/{components → widget/ui/src/components}/Wallet/Wallet.stories.d.ts +0 -0
- /package/dist/{components → widget/ui/src/components}/Wallet/index.d.ts +0 -0
- /package/dist/{components → widget/ui/src/components}/common/FilledCircle.d.ts +0 -0
- /package/dist/{components → widget/ui/src/components}/common/Image.d.ts +0 -0
- /package/dist/{components → widget/ui/src/components}/common/index.d.ts +0 -0
- /package/dist/{containers → widget/ui/src/containers}/BlockchainSelector/BlockchainSelector.d.ts +0 -0
- /package/dist/{containers → widget/ui/src/containers}/BlockchainSelector/BlockchainSelector.stories.d.ts +0 -0
- /package/dist/{containers → widget/ui/src/containers}/BlockchainSelector/index.d.ts +0 -0
- /package/dist/{containers → widget/ui/src/containers}/ConfirmSwap/ConfirmSwap.d.ts +0 -0
- /package/dist/{containers → widget/ui/src/containers}/ConfirmSwap/ConfirmSwap.stories.d.ts +0 -0
- /package/dist/{containers → widget/ui/src/containers}/ConfirmSwap/index.d.ts +0 -0
- /package/dist/{containers → widget/ui/src/containers}/ConfirmSwap/mock.d.ts +0 -0
- /package/dist/{containers → widget/ui/src/containers}/ConnectWalletsModal/ConnectWallets.stories.d.ts +0 -0
- /package/dist/{containers → widget/ui/src/containers}/ConnectWalletsModal/ConnectWalletsModal.d.ts +0 -0
- /package/dist/{containers → widget/ui/src/containers}/ConnectWalletsModal/index.d.ts +0 -0
- /package/dist/{containers → widget/ui/src/containers}/ConnectWalletsModal/mockData.d.ts +0 -0
- /package/dist/{containers → widget/ui/src/containers}/History/History.d.ts +0 -0
- /package/dist/{containers → widget/ui/src/containers}/History/History.stories.d.ts +0 -0
- /package/dist/{containers → widget/ui/src/containers}/History/SwapsGroup.d.ts +0 -0
- /package/dist/{containers → widget/ui/src/containers}/History/index.d.ts +0 -0
- /package/dist/{containers → widget/ui/src/containers}/History/mock.d.ts +0 -0
- /package/dist/{containers → widget/ui/src/containers}/History/types.d.ts +0 -0
- /package/dist/{containers → widget/ui/src/containers}/LiquiditySourcesSelector/LiquiditySourcesSelector.d.ts +0 -0
- /package/dist/{containers → widget/ui/src/containers}/LiquiditySourcesSelector/LiquiditySourcesSelector.stories.d.ts +0 -0
- /package/dist/{containers → widget/ui/src/containers}/LiquiditySourcesSelector/index.d.ts +0 -0
- /package/dist/{containers → widget/ui/src/containers}/Settings/Settings.d.ts +0 -0
- /package/dist/{containers → widget/ui/src/containers}/Settings/Settings.stories.d.ts +0 -0
- /package/dist/{containers → widget/ui/src/containers}/Settings/index.d.ts +0 -0
- /package/dist/{containers → widget/ui/src/containers}/SwapHistory/SwapHistory.d.ts +0 -0
- /package/dist/{containers → widget/ui/src/containers}/SwapHistory/SwapHistory.stories.d.ts +0 -0
- /package/dist/{containers → widget/ui/src/containers}/SwapHistory/SwapMessages.d.ts +0 -0
- /package/dist/{containers → widget/ui/src/containers}/SwapHistory/index.d.ts +0 -0
- /package/dist/{containers → widget/ui/src/containers}/SwapHistory/mock.d.ts +0 -0
- /package/dist/{containers → widget/ui/src/containers}/TokenSelector/TokenSelector.d.ts +0 -0
- /package/dist/{containers → widget/ui/src/containers}/TokenSelector/TokenSelector.stories.d.ts +0 -0
- /package/dist/{containers → widget/ui/src/containers}/TokenSelector/index.d.ts +0 -0
- /package/dist/{containers → widget/ui/src/containers}/index.d.ts +0 -0
- /package/dist/{helper → widget/ui/src/helper}/index.d.ts +0 -0
- /package/dist/{hooks → widget/ui/src/hooks}/index.d.ts +0 -0
- /package/dist/{hooks → widget/ui/src/hooks}/useCopyToClipboard.d.ts +0 -0
- /package/dist/{index.d.ts → widget/ui/src/index.d.ts} +0 -0
- /package/dist/{types → widget/ui/src/types}/index.d.ts +0 -0
- /package/dist/{types → widget/ui/src/types}/meta.d.ts +0 -0
- /package/dist/{types → widget/ui/src/types}/swaps.d.ts +0 -0
- /package/dist/{types → widget/ui/src/types}/wallet.d.ts +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,16 @@
|
|
|
1
|
+
# [0.7.0](https://github.com/rango-exchange/rango-client/compare/ui@0.6.0...ui@0.7.0) (2023-07-11)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
# [0.6.0](https://github.com/rango-exchange/rango-client/compare/ui@0.5.0...ui@0.6.0) (2023-07-11)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Features
|
|
9
|
+
|
|
10
|
+
* setup lingui for multi-language in widget ([a3f1331](https://github.com/rango-exchange/rango-client/commit/a3f1331def487989a5717335b062dd9ef45876ad))
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
1
14
|
# [0.5.0](https://github.com/rango-exchange/rango-client/compare/ui@0.4.0...ui@0.5.0) (2023-05-31)
|
|
2
15
|
|
|
3
16
|
|
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var Ot=Object.defineProperty;var r=(o,e)=>Ot(o,"name",{value:e,configurable:!0});import b,{Fragment as yr}from"react";import*as de from"react";import{createStitches as Yt}from"@stitches/react";var Ut={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:{}},Xt={sm:"(min-width: 640px)",md:"(min-width: 768px)",lg:"(min-width: 1024px)"},Jt={bc:o=>({backgroundColor:o})},Kt=Yt,{styled:i,css:sa,createTheme:Qe,keyframes:xo,globalCss:pa,config:ca}=Kt({media:Xt,theme:Ut,utils:Jt}),da=Qe({}),U=Qe({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",[`.${U} &`]:{$$color:"$colors$background"},stroke:"$$color"},white:{$$color:"$colors$background",[`.${U} &`]:{$$color:"$colors$foreground"},stroke:"$$color"}},disabled:{true:{stroke:"$neutral400"}}}}),I=i("svg",{fill:"$foreground",variants:{color:{primary:{fill:"$primary"},error:{fill:"$error"},warning:{fill:"$warning"},success:{fill:"$success"},black:{$$color:"$colors$foreground",[`.${U} &`]:{$$color:"$colors$background"},fill:"$$color"},white:{$$color:"$colors$background",[`.${U} &`]:{$$color:"$colors$foreground"},fill:"$$color"}},disabled:{true:{stroke:"$neutral400"}}}});var Re=r(({size:o=16,color:e,...t})=>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",...t},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 10ZM9.17 14.83l5.66-5.66M14.83 14.83 9.17 9.17",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),"DeleteCircleIcon");Re.toString=()=>"._icon";import*as _o from"react";var ot=r(({size:o=16,color:e,...t})=>_o.createElement(g,{width:o,height:o,viewBox:"0 0 24 24",color:e,fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"_icon",...t},_o.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"}),_o.createElement("path",{d:"m7.75 12 2.83 2.83 5.67-5.66",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),"CheckSquareIcon");ot.toString=()=>"._icon";import*as me from"react";var Eo=r(({size:o=16,color:e,...t})=>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",...t},me.createElement("path",{d:"M6 12h12M12 18V6",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),"AddIcon");Eo.toString=()=>"._icon";import*as jo from"react";var vo=r(({size:o=16,color:e,...t})=>jo.createElement(I,{width:o,height:o,viewBox:"0 0 24 24",color:e,fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"_icon",...t},jo.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"}),jo.createElement("path",{d:"M11.994 16h.01",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",stroke:"#fff"})),"InfoCircleIcon");vo.toString=()=>"._icon";import*as ge from"react";var et=r(({size:o=16,color:e,...t})=>ge.createElement(g,{width:o,height:o,viewBox:"0 0 24 24",color:e,fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"_icon",...t},ge.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");et.toString=()=>"._icon";import*as he from"react";var tt=r(({size:o=16,color:e,...t})=>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",...t},he.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");tt.toString=()=>"._icon";import*as qo from"react";var Co=r(({size:o=16,color:e,...t})=>qo.createElement(I,{width:o,height:o,viewBox:"0 0 24 24",color:e,fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"_icon",...t},qo.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"}),qo.createElement("path",{d:"m7.75 12 2.83 2.83 5.67-5.66",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round",stroke:"#fff"})),"CheckCircleIcon");Co.toString=()=>"._icon";import*as ue from"react";var Zo=r(({size:o=16,color:e,...t})=>ue.createElement(I,{width:o,height:o,viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",color:e,className:"_icon",...t},ue.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");Zo.toString=()=>"._icon";import*as fe from"react";var rt=r(({size:o=16,color:e,...t})=>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",...t},fe.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");rt.toString=()=>"._icon";import*as Vo from"react";var Go=r(({size:o=16,color:e,...t})=>Vo.createElement(g,{width:o,height:o,viewBox:"0 0 24 24",color:e,fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"_icon",...t},Vo.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"}),Vo.createElement("path",{d:"M11.994 17h.01",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})),"WarningIcon");Go.toString=()=>"._icon";import*as no from"react";var it=r(({size:o=16,color:e,...t})=>no.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",...t},no.createElement("path",{d:"M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z"}),no.createElement("polyline",{points:"14 2 14 8 20 8"}),no.createElement("line",{x1:"16",y1:"13",x2:"8",y2:"13"}),no.createElement("line",{x1:"16",y1:"17",x2:"8",y2:"17"}),no.createElement("polyline",{points:"10 9 9 9 8 9"})),"HistoryIcon");it.toString=()=>"._icon";import*as Oo from"react";var So=r(({size:o=16,color:e,...t})=>Oo.createElement(g,{width:o,height:o,viewBox:"0 0 24 24",color:e,fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"_icon",...t},Oo.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"}),Oo.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");So.toString=()=>"._icon";import*as Yo from"react";var nt=r(({size:o=16,color:e,...t})=>Yo.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",...t},Yo.createElement("circle",{cx:"12",cy:"12",r:"3"}),Yo.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");nt.toString=()=>"._icon";import*as ye from"react";var at=r(({size:o=16,color:e,...t})=>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",...t},ye.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");at.toString=()=>"._icon";import*as xe from"react";var lt=r(({size:o=16,color:e,...t})=>xe.createElement(g,{width:o,height:o,viewBox:"0 0 24 24",color:e,fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"_icon",...t},xe.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");lt.toString=()=>"._icon";import*as ve from"react";var Uo=r(({size:o=16,color:e,...t})=>ve.createElement(g,{width:o,height:o,viewBox:"0 0 24 24",color:e,fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"_icon",...t},ve.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");Uo.toString=()=>"._icon";import*as Ce from"react";var Xo=r(({size:o=16,color:e,...t})=>Ce.createElement(g,{width:o,height:o,fill:"none",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",color:e,className:"_icon",...t},Ce.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");Xo.toString=()=>"._icon";import*as Se from"react";var st=r(({size:o=16,color:e,...t})=>Se.createElement(g,{width:o,height:o,fill:"none",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",color:e,className:"_icon",...t},Se.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");st.toString=()=>"._icon";import pt from"react";var Jo=r(({size:o=16,color:e,...t})=>pt.createElement(g,{width:o,height:o,viewBox:"0 0 24 24",color:e,fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"_icon",...t},pt.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");Jo.toString=()=>"._icon";import*as be from"react";var ke=r(({size:o=16,color:e,...t})=>be.createElement(g,{width:o,height:o,fill:"none",viewBox:"0 0 24 24",color:e,xmlns:"http://www.w3.org/2000/svg",className:"_icon",...t},be.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");Jo.toString=()=>"._icon";import*as Ko from"react";var Qo=r(({size:o=16,color:e,...t})=>Ko.createElement(g,{width:o,height:o,viewBox:"0 0 24 24",color:e,fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"_icon",...t},Ko.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"}),Ko.createElement("path",{d:"M15.35 12.65 12 16l-3.35-3.35",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),"DownloadIcon");Qo.toString=()=>"._icon";import*as Bo from"react";var ct=Bo.forwardRef(({color:o="black",size:e=16,...t},n)=>Bo.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",...t,ref:n},Bo.createElement("polyline",{points:"9 18 15 12 9 6"})));ct.toString=()=>"._icon";import*as Ro from"react";var oe=r(({size:o=16,color:e,...t})=>Ro.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",...t},Ro.createElement("line",{x1:"5",y1:"12",x2:"19",y2:"12"}),Ro.createElement("polyline",{points:"12 5 19 12 12 19"})),"ArrowRightIcon");oe.toString=()=>"._icon";import*as we from"react";var dt=r(({size:o=16,color:e,...t})=>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",...t},we.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");dt.toString=()=>"._icon";import*as $e from"react";var mt=r(({size:o=16,color:e,...t})=>$e.createElement(g,{width:o,height:o,viewBox:"0 0 24 24",color:e,fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"_icon",...t},$e.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");mt.toString=()=>"._icon";import*as Te from"react";var gt=r(({size:o=16,color:e,...t})=>Te.createElement(g,{width:o,height:o,viewBox:"0 0 24 24",color:e,fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"_icon",...t},Te.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");gt.toString=()=>"._icon";import*as ee from"react";var ht=r(({size:o=16,color:e,...t})=>ee.createElement(g,{width:o,height:o,viewBox:"0 0 24 24",color:e,fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"_icon",...t},ee.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"}),ee.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");ht.toString=()=>"._icon";import*as te from"react";var ut=r(({size:o=16,color:e,...t})=>te.createElement(g,{width:o,height:o,viewBox:"0 0 24 24",color:e,fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"_icon",...t},te.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"}),te.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");ut.toString=()=>"._icon";import*as bo from"react";var ft=bo.forwardRef(({color:o="black",size:e=16,...t},n)=>bo.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",...t,ref:n},bo.createElement("polyline",{points:"23 4 23 10 17 10"}),bo.createElement("path",{d:"M20.49 15a9 9 0 1 1-2.12-9.36L23 10"})));ft.toString=()=>"._icon";import*as Mo from"react";var yt=r(({size:o=16,color:e,...t})=>Mo.createElement(I,{width:o,height:o,viewBox:"0 0 24 24",color:e,fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"_icon",...t},Mo.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"}),Mo.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"}),Mo.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");yt.toString=()=>"._icon";import*as ao from"react";var xt=r(({size:o=16,color:e,...t})=>ao.createElement(I,{width:o,height:o,viewBox:"0 0 24 24",color:e,fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"_icon",...t},ao.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"}),ao.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"}),ao.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"}),ao.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"}),ao.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");xt.toString=()=>"._icon";import*as lo from"react";var vt=r(({size:o=16,color:e,...t})=>lo.createElement(I,{width:o,height:o,viewBox:"0 0 24 24",color:e,fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"_icon",...t},lo.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"}),lo.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"}),lo.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"}),lo.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"}),lo.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");vt.toString=()=>"._icon";import*as ko from"react";var Ct=r(({size:o=16,color:e,...t})=>ko.createElement(I,{width:o,height:o,viewBox:"0 0 24 24",color:e,fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"_icon",...t},ko.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"}),ko.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"}),ko.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"}),ko.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");Ct.toString=()=>"._icon";import*as so from"react";var St=r(({size:o=16,color:e,...t})=>so.createElement(I,{width:o,height:o,viewBox:"0 0 24 24",color:e,fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"_icon",...t},so.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"}),so.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"}),so.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"}),so.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"}),so.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");St.toString=()=>"._icon";import*as po from"react";var re=po.forwardRef(({color:o="black",size:e=16,...t},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",...t,ref:n},po.createElement("path",{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4"}),po.createElement("polyline",{points:"16 17 21 12 16 7"}),po.createElement("line",{x1:"21",y1:"12",x2:"9",y2:"12"})));re.toString=()=>"._icon";import*as Q from"react";var bt=r(({size:o=16,color:e,...t})=>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",...t},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");bt.toString=()=>"._icon";import*as wo from"react";var ie=wo.forwardRef(({size:o=16,...e},t)=>wo.createElement(g,{width:o,height:o,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"_icon",...e,ref:t},wo.createElement("circle",{cx:10,cy:10,r:7.25,strokeWidth:1.5}),wo.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"})));ie.toString=()=>"._icon";var R=i(Eo,{transform:"rotate(45deg)",cursor:"pointer"});R.toString=()=>"._icon";import*as Ie from"react";var kt=r(({size:o=16,color:e,...t})=>Ie.createElement(I,{width:o,height:o,color:e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 122.88 107.95",xmlSpace:"preserve",className:"_icon",...t},Ie.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");kt.toString=()=>"._icon";import*as oo from"react";var wt=r(({size:o=16,color:e,...t})=>oo.createElement(I,{width:o,height:o,viewBox:"0 0 64 64",color:e,xmlns:"http://www.w3.org/2000/svg",className:"_icon",...t},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
|
|
1
|
+
var or=Object.defineProperty;var r=(o,e)=>or(o,"name",{value:e,configurable:!0});import er,{useEffect as tr}from"react";import{i18n as me}from"@lingui/core";import{I18nProvider as rr}from"@lingui/react";var et=JSON.parse('{" Error connecting server, please reload the app and try again.":" Error connecting server, please reload the app and try again.","Transaction cost (fee)":"Transaction cost (fee)","Time estimate":"Time estimate","No routes found":"No routes found","Bridges":"Bridges","Exchanges":"Exchanges","Connect Wallets":"Connect Wallets","Slippage tolerance":"Slippage tolerance","Custom":"Custom","Theme":"Theme","Dark":"Dark","Light":"Light","Auto":"Auto","Infinite Approval":"Infinite Approval","Liquidity Sources":"Liquidity Sources","Powered By":"Powered By","Change Slippage":"Change Slippage","Refresh":"Refresh","Transactions History":"Transactions History","Settings":"Settings","Connect Wallet":"Connect Wallet","Swap Details":"Swap Details","Balance":"Balance","Chain":"Chain","Token":"Token","Insufficent Balance:":"Insufficent Balance:","From":"From","To":"To","Proceed anyway!":"Proceed anyway!","Confirm swap!":"Confirm swap!","SWAP":"SWAP","Select Wallet":"Select Wallet","Finding Best Route...":"Finding Best Route...","Enter an amount":"Enter an amount","Swap":"Swap","Limit Error":"Limit Error","Price impact is too high!":"Price impact is too high!","USD price is unknown, price impact might be high!":"USD price is unknown, price impact might be high!","The route goes through Ethereum. Continue?":"The route goes through Ethereum. Continue?","highSlippage":[" Caution, your slippage is high (=",["selectedSlippage"],"). Your trade may be front run."],"swap from":"From","maximum amount of asset":"Max","swapNotFound":["Swap with request ID = $",["requestId"]," not found."],"swap to":"To","increaseSlippage":["We recommend you to increase slippage to at least ",["minRequiredSlippage"]," for this route."]}');var tt=JSON.parse('{" Error connecting server, please reload the app and try again.":" Error connecting server, please reload the app and try again.","Transaction cost (fee)":"Transaction cost (fee)","Time estimate":"Time estimate","No routes found":"No routes found","Bridges":"Bridges","Exchanges":"Exchanges","Connect Wallets":"Connect Wallets","Slippage tolerance":"Slippage tolerance","Custom":"Custom","Theme":"Theme","Dark":"Dark","Light":"Light","Auto":"Auto","Infinite Approval":"Infinite Approval","Liquidity Sources":"Liquidity Sources","Powered By":"Powered By","Change Slippage":"Change Slippage","Refresh":"Refresh","Transactions History":"Transactions History","Settings":"Settings","Connect Wallet":"Connect Wallet","Swap Details":"Swap Details","Balance":"Balance","Chain":"Chain","Token":"Token","Insufficent Balance:":"Insufficent Balance:","From":"From","To":"To","Proceed anyway!":"Proceed anyway!","Confirm swap!":"Confirm swap!","SWAP":"SWAP","Select Wallet":"Select Wallet","Finding Best Route...":"Finding Best Route...","Enter an amount":"Enter an amount","Swap":"Swap","Limit Error":"Limit Error","Price impact is too high!":"Price impact is too high!","USD price is unknown, price impact might be high!":"USD price is unknown, price impact might be high!","The route goes through Ethereum. Continue?":"The route goes through Ethereum. Continue?","highSlippage":[" Caution, your slippage is high (=",["selectedSlippage"],"). Your trade may be front run."],"swap from":"From","maximum amount of asset":"Max","swapNotFound":["Swap with request ID = $",["requestId"]," not found."],"swap to":"To","increaseSlippage":["We recommend you to increase slippage to at least ",["minRequiredSlippage"]," for this route."]}');var rt=JSON.parse('{" Error connecting server, please reload the app and try again.":" Error connecting server, please reload the app and try again.","Transaction cost (fee)":"Transaction cost (fee)","Time estimate":"Time estimate","No routes found":"No routes found","Bridges":"Bridges","Exchanges":"Exchanges","Connect Wallets":"Connect Wallets","Slippage tolerance":"Slippage tolerance","Custom":"Custom","Theme":"Theme","Dark":"Dark","Light":"Light","Auto":"Auto","Infinite Approval":"Infinite Approval","Liquidity Sources":"Liquidity Sources","Powered By":"Powered By","Change Slippage":"Change Slippage","Refresh":"Refresh","Transactions History":"Transactions History","Settings":"Settings","Connect Wallet":"Connect Wallet","Swap Details":"Swap Details","Balance":"Balance","Chain":"Chain","Token":"Token","Insufficent Balance:":"Insufficent Balance:","From":"From","To":"To","Proceed anyway!":"Proceed anyway!","Confirm swap!":"Confirm swap!","SWAP":"SWAP","Select Wallet":"Select Wallet","Finding Best Route...":"Finding Best Route...","Enter an amount":"Enter an amount","Swap":"Swap","Limit Error":"Limit Error","Price impact is too high!":"Price impact is too high!","USD price is unknown, price impact might be high!":"USD price is unknown, price impact might be high!","The route goes through Ethereum. Continue?":"The route goes through Ethereum. Continue?","highSlippage":[" Caution, your slippage is high (=",["selectedSlippage"],"). Your trade may be front run."],"swap from":"From","maximum amount of asset":"Max","swapNotFound":["Swap with request ID = $",["requestId"]," not found."],"swap to":"To","increaseSlippage":["We recommend you to increase slippage to at least ",["minRequiredSlippage"]," for this route."]}');var it=JSON.parse('{" Error connecting server, please reload the app and try again.":" Error connecting server, please reload the app and try again.","Transaction cost (fee)":"Transaction cost (fee)","Time estimate":"Time estimate","No routes found":"No routes found","Bridges":"Bridges","Exchanges":"Exchanges","Connect Wallets":"Connect Wallets","Slippage tolerance":"Slippage tolerance","Custom":"Custom","Theme":"Theme","Dark":"Dark","Light":"Light","Auto":"Auto","Infinite Approval":"Infinite Approval","Liquidity Sources":"Liquidity Sources","Powered By":"Powered By","Change Slippage":"Change Slippage","Refresh":"Refresh","Transactions History":"Transactions History","Settings":"Settings","Connect Wallet":"Connect Wallet","Swap Details":"Swap Details","Balance":"Balance","Chain":"Chain","Token":"Token","Insufficent Balance:":"Insufficent Balance:","From":"From","To":"To","Proceed anyway!":"Proceed anyway!","Confirm swap!":"Confirm swap!","SWAP":"SWAP","Select Wallet":"Select Wallet","Finding Best Route...":"Finding Best Route...","Enter an amount":"Enter an amount","Swap":"Swap","Limit Error":"Limit Error","Price impact is too high!":"Price impact is too high!","USD price is unknown, price impact might be high!":"USD price is unknown, price impact might be high!","The route goes through Ethereum. Continue?":"The route goes through Ethereum. Continue?","highSlippage":[" Caution, your slippage is high (=",["selectedSlippage"],"). Your trade may be front run."],"swap from":"From","maximum amount of asset":"Max","swapNotFound":["Swap with request ID = $",["requestId"]," not found."],"swap to":"To","increaseSlippage":["We recommend you to increase slippage to at least ",["minRequiredSlippage"]," for this route."]}');var ir="en",nr={en:et,es:tt,jp:rt,fr:it};me.load(nr);function ar(o){return tr(()=>{me.activate(o?.language||ir)},[o?.language]),er.createElement(rr,{i18n:me},o.children)}r(ar,"I18nManager");import w,{Fragment as Br}from"react";import{i18n as Me}from"@lingui/core";import*as ge from"react";import{createStitches as sr}from"@stitches/react";var lr={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:{}},pr={sm:"(min-width: 640px)",md:"(min-width: 768px)",lg:"(min-width: 1024px)"},cr={bc:o=>({backgroundColor:o})},dr=sr,{styled:i,css:Ha,createTheme:nt,keyframes:Co,globalCss:_a,config:qa}=dr({media:pr,theme:lr,utils:cr}),ja=nt({}),Y=nt({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"}}}}),I=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 at=r(({size:o=16,color:e,...t})=>ge.createElement(g,{width:o,height:o,viewBox:"0 0 24 24",color:e,fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"_icon",...t},ge.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");at.toString=()=>"._icon";import*as _o from"react";var st=r(({size:o=16,color:e,...t})=>_o.createElement(g,{width:o,height:o,viewBox:"0 0 24 24",color:e,fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"_icon",...t},_o.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"}),_o.createElement("path",{d:"m7.75 12 2.83 2.83 5.67-5.66",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),"CheckSquareIcon");st.toString=()=>"._icon";import*as he from"react";var qo=r(({size:o=16,color:e,...t})=>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",...t},he.createElement("path",{d:"M6 12h12M12 18V6",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),"AddIcon");qo.toString=()=>"._icon";import*as jo from"react";var vo=r(({size:o=16,color:e,...t})=>jo.createElement(I,{width:o,height:o,viewBox:"0 0 24 24",color:e,fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"_icon",...t},jo.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"}),jo.createElement("path",{d:"M11.994 16h.01",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",stroke:"#fff"})),"InfoCircleIcon");vo.toString=()=>"._icon";import*as ue from"react";var lt=r(({size:o=16,color:e,...t})=>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",...t},ue.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");lt.toString=()=>"._icon";import*as fe from"react";var pt=r(({size:o=16,color:e,...t})=>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",...t},fe.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");pt.toString=()=>"._icon";import*as Zo from"react";var So=r(({size:o=16,color:e,...t})=>Zo.createElement(I,{width:o,height:o,viewBox:"0 0 24 24",color:e,fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"_icon",...t},Zo.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"}),Zo.createElement("path",{d:"m7.75 12 2.83 2.83 5.67-5.66",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round",stroke:"#fff"})),"CheckCircleIcon");So.toString=()=>"._icon";import*as ye from"react";var Vo=r(({size:o=16,color:e,...t})=>ye.createElement(I,{width:o,height:o,viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",color:e,className:"_icon",...t},ye.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");Vo.toString=()=>"._icon";import*as xe from"react";var ct=r(({size:o=16,color:e,...t})=>xe.createElement(g,{width:o,height:o,viewBox:"0 0 24 24",color:e,fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"_icon",...t},xe.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");ct.toString=()=>"._icon";import*as Go from"react";var Oo=r(({size:o=16,color:e,...t})=>Go.createElement(g,{width:o,height:o,viewBox:"0 0 24 24",color:e,fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"_icon",...t},Go.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"}),Go.createElement("path",{d:"M11.994 17h.01",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})),"WarningIcon");Oo.toString=()=>"._icon";import*as ao from"react";var dt=r(({size:o=16,color:e,...t})=>ao.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",...t},ao.createElement("path",{d:"M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z"}),ao.createElement("polyline",{points:"14 2 14 8 20 8"}),ao.createElement("line",{x1:"16",y1:"13",x2:"8",y2:"13"}),ao.createElement("line",{x1:"16",y1:"17",x2:"8",y2:"17"}),ao.createElement("polyline",{points:"10 9 9 9 8 9"})),"HistoryIcon");dt.toString=()=>"._icon";import*as Uo from"react";var wo=r(({size:o=16,color:e,...t})=>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",...t},Uo.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"}),Uo.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");wo.toString=()=>"._icon";import*as Yo from"react";var mt=r(({size:o=16,color:e,...t})=>Yo.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",...t},Yo.createElement("circle",{cx:"12",cy:"12",r:"3"}),Yo.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");mt.toString=()=>"._icon";import*as Ce from"react";var gt=r(({size:o=16,color:e,...t})=>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",...t},Ce.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");gt.toString=()=>"._icon";import*as ve from"react";var ht=r(({size:o=16,color:e,...t})=>ve.createElement(g,{width:o,height:o,viewBox:"0 0 24 24",color:e,fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"_icon",...t},ve.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");ht.toString=()=>"._icon";import*as Se from"react";var Jo=r(({size:o=16,color:e,...t})=>Se.createElement(g,{width:o,height:o,viewBox:"0 0 24 24",color:e,fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"_icon",...t},Se.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");Jo.toString=()=>"._icon";import*as we from"react";var Ro=r(({size:o=16,color:e,...t})=>we.createElement(g,{width:o,height:o,fill:"none",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",color:e,className:"_icon",...t},we.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");Ro.toString=()=>"._icon";import*as ke from"react";var ut=r(({size:o=16,color:e,...t})=>ke.createElement(g,{width:o,height:o,fill:"none",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",color:e,className:"_icon",...t},ke.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");ut.toString=()=>"._icon";import ft from"react";var Xo=r(({size:o=16,color:e,...t})=>ft.createElement(g,{width:o,height:o,viewBox:"0 0 24 24",color:e,fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"_icon",...t},ft.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");Xo.toString=()=>"._icon";import*as be from"react";var $e=r(({size:o=16,color:e,...t})=>be.createElement(g,{width:o,height:o,fill:"none",viewBox:"0 0 24 24",color:e,xmlns:"http://www.w3.org/2000/svg",className:"_icon",...t},be.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");Xo.toString=()=>"._icon";import*as Ko from"react";var Qo=r(({size:o=16,color:e,...t})=>Ko.createElement(g,{width:o,height:o,viewBox:"0 0 24 24",color:e,fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"_icon",...t},Ko.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"}),Ko.createElement("path",{d:"M15.35 12.65 12 16l-3.35-3.35",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),"DownloadIcon");Qo.toString=()=>"._icon";import*as Mo from"react";var yt=Mo.forwardRef(({color:o="black",size:e=16,...t},n)=>Mo.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",...t,ref:n},Mo.createElement("polyline",{points:"9 18 15 12 9 6"})));yt.toString=()=>"._icon";import*as oe from"react";var ee=r(({size:o=16,color:e,...t})=>oe.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",...t},oe.createElement("line",{x1:"5",y1:"12",x2:"19",y2:"12"}),oe.createElement("polyline",{points:"12 5 19 12 12 19"})),"ArrowRightIcon");ee.toString=()=>"._icon";import*as Te from"react";var xt=r(({size:o=16,color:e,...t})=>Te.createElement(g,{width:o,height:o,viewBox:"0 0 24 24",color:e,fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"_icon",...t},Te.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");xt.toString=()=>"._icon";import*as Ie from"react";var Ct=r(({size:o=16,color:e,...t})=>Ie.createElement(g,{width:o,height:o,viewBox:"0 0 24 24",color:e,fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"_icon",...t},Ie.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");Ct.toString=()=>"._icon";import*as Pe from"react";var vt=r(({size:o=16,color:e,...t})=>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",...t},Pe.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");vt.toString=()=>"._icon";import*as te from"react";var St=r(({size:o=16,color:e,...t})=>te.createElement(g,{width:o,height:o,viewBox:"0 0 24 24",color:e,fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"_icon",...t},te.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"}),te.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");St.toString=()=>"._icon";import*as re from"react";var wt=r(({size:o=16,color:e,...t})=>re.createElement(g,{width:o,height:o,viewBox:"0 0 24 24",color:e,fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"_icon",...t},re.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"}),re.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");wt.toString=()=>"._icon";import*as ko from"react";var kt=ko.forwardRef(({color:o="black",size:e=16,...t},n)=>ko.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",...t,ref:n},ko.createElement("polyline",{points:"23 4 23 10 17 10"}),ko.createElement("path",{d:"M20.49 15a9 9 0 1 1-2.12-9.36L23 10"})));kt.toString=()=>"._icon";import*as Fo from"react";var bt=r(({size:o=16,color:e,...t})=>Fo.createElement(I,{width:o,height:o,viewBox:"0 0 24 24",color:e,fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"_icon",...t},Fo.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"}),Fo.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"}),Fo.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");bt.toString=()=>"._icon";import*as so from"react";var $t=r(({size:o=16,color:e,...t})=>so.createElement(I,{width:o,height:o,viewBox:"0 0 24 24",color:e,fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"_icon",...t},so.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"}),so.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"}),so.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"}),so.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"}),so.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");$t.toString=()=>"._icon";import*as lo from"react";var Tt=r(({size:o=16,color:e,...t})=>lo.createElement(I,{width:o,height:o,viewBox:"0 0 24 24",color:e,fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"_icon",...t},lo.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"}),lo.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"}),lo.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"}),lo.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"}),lo.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");Tt.toString=()=>"._icon";import*as bo from"react";var It=r(({size:o=16,color:e,...t})=>bo.createElement(I,{width:o,height:o,viewBox:"0 0 24 24",color:e,fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"_icon",...t},bo.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"}),bo.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"}),bo.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"}),bo.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");It.toString=()=>"._icon";import*as po from"react";var Pt=r(({size:o=16,color:e,...t})=>po.createElement(I,{width:o,height:o,viewBox:"0 0 24 24",color:e,fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"_icon",...t},po.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"}),po.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"}),po.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"}),po.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"}),po.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");Pt.toString=()=>"._icon";import*as co from"react";var ie=co.forwardRef(({color:o="black",size:e=16,...t},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",...t,ref:n},co.createElement("path",{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4"}),co.createElement("polyline",{points:"16 17 21 12 16 7"}),co.createElement("line",{x1:"21",y1:"12",x2:"9",y2:"12"})));ie.toString=()=>"._icon";import*as K from"react";var Lt=r(({size:o=16,color:e,...t})=>K.createElement(g,{width:o,height:o,viewBox:"0 0 32 32",color:e,fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"_icon",...t},K.createElement("g",{clipPath:"url(#a)",strokeWidth:1.5},K.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"}),K.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"})),K.createElement("defs",null,K.createElement("clipPath",{id:"a"},K.createElement("path",{fill:e,d:"M0 0h32v32H0z"})))),"BagIcon");Lt.toString=()=>"._icon";import*as $o from"react";var ne=$o.forwardRef(({size:o=16,...e},t)=>$o.createElement(g,{width:o,height:o,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"_icon",...e,ref:t},$o.createElement("circle",{cx:10,cy:10,r:7.25,strokeWidth:1.5}),$o.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"})));ne.toString=()=>"._icon";var Q=i(qo,{transform:"rotate(45deg)",cursor:"pointer"});Q.toString=()=>"._icon";import*as Le from"react";var Wt=r(({size:o=16,color:e,...t})=>Le.createElement(I,{width:o,height:o,color:e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 122.88 107.95",xmlSpace:"preserve",className:"_icon",...t},Le.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");Wt.toString=()=>"._icon";import*as oo from"react";var Bt=r(({size:o=16,color:e,...t})=>oo.createElement(I,{width:o,height:o,viewBox:"0 0 64 64",color:e,xmlns:"http://www.w3.org/2000/svg",className:"_icon",...t},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
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
3
|
c0,2.7697983,2.3045998,5.0228004,5.1378999,5.0228004h6.0367002v2.2678986C16.253952,61.8274002,18.4702511,64,21.1954517,64
|
|
4
4
|
h32.783699c2.7252007,0,4.9414978-2.1725998,4.9414978-4.8432007V13.9861002
|
|
@@ -16,5 +16,5 @@ var Ot=Object.defineProperty;var r=(o,e)=>Ot(o,"name",{value:e,configurable:!0})
|
|
|
16
16
|
s0.4544001,1.0158997,1.0159006,1.0158997h22.3491974c0.5615005,0,1.0158997-0.4543991,1.0158997-1.0158997
|
|
17
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
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");wt.toString=()=>"._icon";import Z from"react";import Qt from"react";var Rt=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:t,...n}){let a=t?{color:t.startsWith("$")?t:`$${t}`}:{color:"$foreground"};return Qt.createElement(Rt,{className:`_typography _text ${e||""}`,css:a,...n},o)}r(p,"Typography");p.toString=()=>"._typography";var or=i("div",{position:"relative",width:"$28",height:"$28",variants:{direction:{vertical:{margin:"auto"},horizontal:{}}}}),er=i("img",{width:"$28",height:"$28",borderRadius:"50%"}),tr=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"}}),rr=i("div",{display:"flex",variants:{direction:{horizontal:{alignItems:"center"},vertical:{flexDirection:"column",textAlign:"center",justifyContent:"center"}},success:{true:{filter:"none"},false:{filter:"grayscale(100%)"}}}}),ir=i("div",{variants:{pl:{true:{paddingLeft:"$4","@lg":{paddingLeft:"$8"}},false:{paddingTop:"$8"}}}}),nr=i(p,{color:"$neutral600",display:"block",paddingLeft:"$8"});function co(o){let{logo:e,chainLogo:t,amount:n,symbol:a,blockchain:l,estimatedAmount:c,success:s=!0,direction:m="horizontal"}=o;return Z.createElement(rr,{direction:m,success:s},Z.createElement(or,{direction:m},Z.createElement(er,{src:e,alt:a}),Z.createElement(tr,null,Z.createElement("img",{src:t,alt:l}))),Z.createElement(ir,{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(nr,{noWrap:!0,variant:"caption",color:"$neutral800"},"on ",l)))}r(co,"StepDetail");import ar from"react";var lr=xo({"0%":{backgroundPosition:"-468px 0"},"100%":{backgroundPosition:"468px 0"}}),sr=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:`${lr} 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 Pe({width:o=20,height:e=20}){return ar.createElement(sr,{width:o,height:e})}r(Pe,"Skeleton");import pr from"react";var cr=xo({"100%":{transform:"rotate(360deg)"}}),dr=i("div",{borderRadius:"50%",position:"relative",border:"2px solid $neutral100",borderRight:"2px solid",animation:`${cr} 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 P({size:o=16,color:e="primary"}){return pr.createElement(dr,{size:o,color:e})}r(P,"Spinner");import*as E from"@radix-ui/react-tooltip";import mo from"react";var mr=i(E.Trigger,{border:0,padding:0,backgroundColor:"transparent"}),gr=i(E.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"}}}}),hr=i(E.Arrow,{variants:{color:{primary:{fill:"$primary"},error:{fill:"$error"},warning:{fill:"$warning"},success:{fill:"$success"},gray:{fill:"$neutral100"},black:{fill:"$black"},white:{fill:"$white"}}}}),ur=i("div",{display:"inline-block"});function ne({children:o,content:e,side:t="top",color:n="gray"}){return mo.createElement(E.Provider,null,mo.createElement(E.Root,null,mo.createElement(mr,{asChild:!0},mo.createElement(ur,null,o)),mo.createElement(E.Portal,null,mo.createElement(gr,{color:n,side:t,sideOffset:5},e,mo.createElement(hr,{color:n})))))}r(ne,"Tooltip");var Le=i("span",{width:"10px",height:"10px",backgroundColor:"$primary",borderRadius:"99999px"});import $t from"react";var fr=i("div",{display:"flex",justifyContent:"center",alignItems:"center",".image":{width:"100%",height:"100%",objectFit:"contain"}});function B(o){let{size:e,...t}=o;return $t.createElement(fr,{css:{width:e+"px",height:e+"px"}},$t.createElement("img",{className:"image",...t}))}r(B,"Image");var xr=i("div",{borderRadius:"$5",border:"1px solid $neutral100",display:"flex",alignItems:"center",minHeight:126,justifyContent:"space-between",backgroundColor:"$surface"}),vr=i(p,{color:"$error"}),Cr=i("div",{display:"flex",alignItems:"center",margin:"0 auto",overflowX:"auto",overflowY:"hidden",alignSelf:"stretch",padding:"$4","@md":{padding:"$8"}}),Tt=i("div",{height:"0",width:"$20",border:"1px dashed $foreground",borderRadius:"inherit","@lg":{width:"$32"}}),Sr=i("hr",{width:"100%",border:"1px solid $neutral400",margin:"$8 0"}),br=i("div",{position:"relative"}),kr=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%"}}),wr=i("div",{width:"0px",height:"0px",borderTop:"5px solid transparent",borderBottom:"5px solid transparent",borderLeft:"5px solid $foreground"}),We=xo({"0%":{opacity:1},"50%":{opacity:.3},"100%":{opacity:1}}),$r=i("div",{backgroundColor:"$neutral100",borderRadius:"5px",margin:"$4",display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",padding:"$4","@md":{padding:"$8",margin:"$8"}}),It=i("div",{display:"flex",flexDirection:"column",alignItems:"center",variants:{warning:{true:{animation:`${We} 2s ease-in-out infinite`}}}}),Tr=i(p,{variants:{warning:{true:{color:"$warning300"}}}}),Ir=i("div",{padding:"$4","@md":{padding:"$8"}}),Pr=i("div",{display:"flex",justifyContent:"center",alignItems:"center"});function Lr(o){let{data:e,loading:t,error:n,totalFee:a,feeWarning:l,totalTime:c}=o;return b.createElement(xr,null,t?b.createElement(Ir,null,b.createElement(Pe,{width:48,height:94})):b.createElement($r,null,b.createElement(ne,{content:"Transaction cost (fee)"},b.createElement(It,{warning:l},b.createElement(So,{size:20,color:l?"warning":void 0}),b.createElement(Tr,{mt:4,align:"center",variant:"caption",warning:l},n&&"-",!!e&&`$${a}`))),b.createElement(Sr,null),b.createElement(ne,{content:"Time estimate"},b.createElement(It,{warning:l},b.createElement(ie,{size:20}),b.createElement(p,{mt:4,align:"center",variant:"caption"},n&&"-",!!e&&`~${c}m`)))),b.createElement(Cr,null,t&&b.createElement(P,{color:"primary"}),n&&b.createElement(vr,{variant:"caption"},n),!!e&&e.result?.swaps.map((s,m)=>b.createElement(yr,{key:m},m===0&&b.createElement(br,null,b.createElement(co,{direction:"vertical",logo:s.from.logo,symbol:s.from.symbol,chainLogo:s.from.blockchainLogo,blockchain:s.from.blockchain,amount:s.fromAmount}),b.createElement(kr,null)),b.createElement(Pr,null,b.createElement(Tt,null),b.createElement(B,{src:s.swapperLogo,alt:s.swapperId,size:20}),b.createElement(Tt,null)),m+1===e.result?.swaps.length&&b.createElement(wr,null),b.createElement(co,{direction:"vertical",logo:s.to.logo,symbol:s.to.symbol,chainLogo:s.to.blockchainLogo,blockchain:s.to.blockchain,amount:s.toAmount}))),!!e&&!e?.result&&b.createElement(p,{variant:"body2"},"No routes found")))}r(Lr,"BestRoute");import Be from"react";var Wr=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",[`.${U} &`]:{$$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",[`.${U} &`]:{$$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",[`.${U} &`]:{$$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"}}),Br=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 x({children:o,loading:e,disabled:t,prefix:n,suffix:a,align:l,flexContent:c,...s}){return Be.createElement(Wr,{disabled:e||t,...s,align:l},n,o&&Be.createElement(Br,{align:l,ml:!!n,mr:!!a&&!e,flexContent:c,className:"_text"},o),e&&Be.createElement(P,{size:16,color:s.type}),a)}r(x,"Button");import Fo from"react";import*as ae from"@radix-ui/react-checkbox";var Mr=i("div",{display:"flex",alignItems:"center"}),Fr=i(ae.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"}),zr=i("label",{color:"$foreground",fontSize:"$m",marginLeft:"$8",cursor:"pointer"});function Me({label:o,id:e,...t}){return Fo.createElement(Mr,null,Fo.createElement(Fr,{id:e,...t},Fo.createElement(ae.Indicator,null,Fo.createElement(Zo,{size:20}))),Fo.createElement(zr,{className:"_text",htmlFor:e},o))}r(Me,"Checkbox");import Nr from"react";var Ar=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 Fe(o){let{label:e,selected:t,prefix:n,suffix:a,onClick:l,style:c}=o;return Nr.createElement(Ar,{selected:t,onClick:l,style:c},n||null,e,a||null)}r(Fe,"Chip");import eo,{useEffect as Dr}from"react";import{createPortal as Hr}from"react-dom";var _r=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}),Er=i("div",{backgroundColor:"$background",borderRadius:"$10",padding:"$16 $16",display:"flex",flexDirection:"column",zIndex:20}),jr=i("div",{display:"flex",alignItems:"center"}),qr=i("div",{display:"flex",justifyContent:"space-between",alignItems:"center",position:"relative",marginBottom:"$16"});function ze(o){let{title:e,content:t,open:n,onClose:a,containerStyle:l,action:c}=o,s=r(m=>{m.target===m.currentTarget&&a()},"handleBackDropClick");return Dr(()=>{n?document.body.style.overflow="hidden":document.body.style.overflow="unset"},[n]),eo.createElement(eo.Fragment,null,n&&Hr(eo.createElement(_r,{onClick:s},eo.createElement(Er,{css:l},eo.createElement(qr,null,eo.createElement(p,{variant:"h4"},e),eo.createElement(jr,null,c,eo.createElement(R,{size:24,onClick:a}))),t)),document.body))}r(ze,"Modal");import to,{useState as Jr}from"react";import Zr from"react";var Vr=i("div",{variants:{size:{4:{},8:{},12:{},16:{},18:{},20:{},24:{},32:{}},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"}},{size:32,direction:"horizontal",css:{width:"$32"}},{size:32,direction:"vertical",css:{height:"$32"}}]});function v({size:o=12,direction:e="vertical"}){return Zr.createElement(Vr,{size:o,direction:e})}r(v,"Divider");import zo from"react";var Gr=i("div",{display:"flex",justifyContent:"space-between",alignItems:"center",padding:"$8 0",position:"relative"}),Or=i(x,{padding:"$8"});function Ne(o){return zo.createElement(Gr,null,o.onBack?zo.createElement(Or,{variant:"ghost",size:"small",onClick:o.onBack},zo.createElement(ke,{size:24})):null,o.prefix,zo.createElement(p,{variant:"h4"},o.title),o.suffix||zo.createElement("div",null))}r(Ne,"Header");import $o from"react";var Yr=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"}}),Ur=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"}}),Xr=i("label",{display:"inline-block",fontSize:"$14",color:"$foreground",marginBottom:"$4"}),go=$o.forwardRef((o,e)=>{let{label:t,prefix:n,suffix:a,children:l,size:c,style:s,...m}=o;return $o.createElement($o.Fragment,null,t&&$o.createElement(Xr,{className:"_text",...m.id&&{htmlFor:m.id}},t),$o.createElement(Yr,{disabled:m.disabled,prefix:!!n,suffix:!!a,size:c,style:s,className:"_text"},n||null,$o.createElement(Ur,{className:"_text",...m,spellCheck:!1,ref:e}),a||null))});var Kr=i("div",{overflow:"hidden",display:"flex",flexDirection:"column",flex:"1",padding:"0 $4"}),Qr=i("div",{padding:"1px"});function N(o){let{title:e,Footer:t,TopButton:n,onBack:a,hasHeader:l=!0}=o,[c,s]=Jr("");return to.createElement(to.Fragment,null,l&&to.createElement(Ne,{onBack:a,title:e||"",suffix:n}),to.createElement(Kr,null,o.textField&&to.createElement(Qr,null,to.createElement(go,{size:"large",prefix:to.createElement(Uo,{size:24}),placeholder:o.textFieldPlaceholder,onChange:m=>s(m.target.value),value:c,autoFocus:!0}),to.createElement(v,{size:16})),o.textField&&o.children?.(c),!o.textField&&o.children),t)}r(N,"SecondaryPage");import ho,{useEffect as ti,useState as ri}from"react";function A(o,e){return o.toLowerCase().indexOf(e.toLowerCase())>-1}r(A,"containsText");function Pt(o,e=8,t=3){if(!o)return null;if(o.length<2*e+t)return o;let n=Math.ceil((o.length-e)/2),a=o.length-e;return`${o.substr(n,e)}${".".repeat(t)}${o.substr(a)}`}r(Pt,"getConciseAddress");function le(o,e=4){let t=parseFloat(o);if(isNaN(t))return o;{let n=Math.pow(10,e);return(Math.round(t*n)/n).toString()}}r(le,"limitDecimalPlaces");var Lt=r(o=>(e=>e.length===3?e.split("").map(t=>parseInt(t.repeat(2),16)):(e.match(/.{1,2}/g)||[]).map(t=>parseInt(t,16)))(o.replace("#","")),"hexToRgb"),Rr=r(o=>(([e,t,n])=>.2126*e+.7152*t+.0722*n<40)(Lt(o)),"isHexTooDark"),oi=r(o=>(([e,t,n])=>(e*299+t*587+n*114)/1e3>155)(Lt(o)),"isHexTooLight"),No=r((o,e)=>{o=o.replace(/^#/,""),o.length===3&&(o=o[0]+o[0]+o[1]+o[1]+o[2]+o[2]);let[t,n,a]=o.match(/.{2}/g);[t,n,a]=[parseInt(t,16)+e,parseInt(n,16)+e,parseInt(a,16)+e],t=Math.max(Math.min(255,t),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=(t.length<2?"0":"")+t,c=(n.length<2?"0":"")+n,s=(a.length<2?"0":"")+a;return`#${l}${c}${s}`},"colorShade"),ei=r((o,e,t)=>{let n={[o]:t};if(t){let a=t;if(Rr(t)||e==="dark")for(let l=1;l<10;l++)n={...n,[o+l*100]:o==="neutral"?No(a,l*15):No(t,l*5)};if(oi(t)||e==="light")for(let l=1;l<10;l++)a=No(a,-(l*5)),n={...n,[o+l*100]:No(o==="neutral"?a:t,-(l*5))}}return n},"generateRangeColors");var ii=i("div",{display:"flex",flexWrap:"wrap"}),ni=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"}}}}),ai=i("div",{width:6,margin:"20% auto",height:6,borderRadius:3,variants:{checked:{true:{backgroundColor:"$success"},false:{backgroundColor:"$neutral400"}}}}),li=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 Ae({list:o,onChange:e}){let[t,n]=ri(o.find(l=>l.selected)?.walletType||""),a=r(l=>{n(l.walletType),e(l)},"onClick");return ti(()=>{n(o.find(l=>l.selected)?.walletType||"")},[o]),ho.createElement(ii,null,o.map((l,c)=>{let s=t===l.walletType;return ho.createElement(li,{checked:s,onClick:a.bind(null,l),key:c},ho.createElement(B,{src:l.image,alt:l.walletType,size:24}),ho.createElement(p,{variant:"body2"},l.name),ho.createElement(p,{variant:"caption"},Pt(l.address)),ho.createElement(ni,{checked:s},s&&ho.createElement(ai,{checked:s})))}))}r(Ae,"SelectableWalletList");import si from"react";var pi=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 ci(o){let{children:e,style:t,fixedHeight:n=!0}=o;return si.createElement(pi,{style:t,id:"swap-box",fixedHeight:n},e)}r(ci,"SwapContainer");import V from"react";import X from"react";var di=i("div",{display:"flex",alignItems:"center",width:"160px","& .amount":{fontWeight:"bold"},"& .estimated":{color:"$neutral600"}}),mi=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 De(o){let{data:{token:e,blockchain:t,amount:n,estimatedAmount:a}}=o;return X.createElement(di,null,X.createElement(mi,null,X.createElement(B,{src:e.logo,alt:"",size:24}),X.createElement("div",{className:"overlay"},X.createElement(B,{src:t.logo,alt:t.name,size:12}))),X.createElement(v,{size:8,direction:"horizontal"}),!!n&&X.createElement("span",{className:"amount"},o.data.amount),!n&&a&&X.createElement("span",{className:"amount estimated"},o.data.estimatedAmount),X.createElement(v,{size:4,direction:"horizontal"}),e.symbol)}r(De,"Token");var gi=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 He({swap:o,status:e,onClick:t}){let n=o.steps[0],a=o.steps[o.steps.length-1];return V.createElement(x,{variant:"ghost",size:"free",fullWidth:!0,onClick:t.bind(null,o.requestId)},V.createElement(gi,{className:`${e}`},V.createElement("div",{className:"info"},V.createElement(De,{data:{token:{logo:n.fromLogo,symbol:n.fromSymbol},blockchain:{logo:n.fromBlockchainLogo||"",name:n.fromBlockchain},amount:le(o.inputAmount)}}),V.createElement(v,{size:12,direction:"horizontal"}),V.createElement(oe,{size:12}),V.createElement(v,{size:12,direction:"horizontal"}),V.createElement(De,{data:{token:{logo:a.toLogo,symbol:a.toSymbol},blockchain:{logo:a.toBlockchainLogo||"",name:a.toBlockchain},amount:le(a.outputAmount||""),estimatedAmount:le(a.expectedOutputAmountHumanReadable||"")}})),V.createElement("div",{className:"status"},e==="running"?V.createElement(P,{size:24,color:"primary"}):e)))}r(He,"SwapDetail");import Wt from"react";import*as se from"@radix-ui/react-switch";var hi=i(se.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)"}),ui=i(se.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 Ao(o){let{checked:e,onChange:t}=o;return Wt.createElement(hi,{checked:e,onCheckedChange:t},Wt.createElement(ui,null))}r(Ao,"Switch");import{detectInstallLink as vi}from"@rango-dev/wallets-shared";import uo from"react";var _e=(a=>(a.NOT_INSTALLED="not installed",a.DISCONNECTED="disconnected",a.CONNECTING="connecting",a.CONNECTED="connected",a))(_e||{});import To,{Fragment as fi}from"react";import{detectInstallLink as yi}from"@rango-dev/wallets-shared";var xi=i("span",{display:"flex",justifyContent:"center",alignItems:"center"}),Bt=r(({walletState:o,installLink:e})=>To.createElement(fi,null,o!=="disconnected"&&To.createElement(xi,null,o==="not installed"&&To.createElement("a",{href:yi(e),target:"_blank"},To.createElement(Qo,{size:24,color:"success"})),o==="connecting"&&To.createElement(P,null),o==="connected"&&To.createElement(re,null))),"State");var Ci=i("div",{paddingRight:"$12","& img":{borderRadius:"50%"}}),Si=i("div",{display:"flex",flexDirection:"column"}),bi=i(x,{variants:{type:{primary:{outline:"1px solid $primary",borderColor:"$primary","&:hover":{borderColor:"$primary"}}}}});function Mt(o){let{name:e,type:t,image:n,state:a,onClick:l,installLink:c}=o;return uo.createElement(bi,{type:a==="connected"?"primary":void 0,disabled:a=="connecting",onClick:()=>{a==="not installed"?window.open(vi(c),"_blank"):l(t)},align:"start",variant:"outlined",size:"large",prefix:uo.createElement(Ci,null,uo.createElement(B,{src:n,size:24})),suffix:uo.createElement(Bt,{walletState:a,installLink:c})},uo.createElement(Si,null,uo.createElement(p,{variant:"h5",noWrap:!1},e),a==="connected"?uo.createElement(p,{variant:"caption",noWrap:!1,color:"primary"},"Connected"):null))}r(Mt,"Wallet");import D from"react";var ki=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 _(o){let{type:e,children:t,title:n}=o,a=["error","success","warning"].includes(e);return D.createElement(ki,{type:e,className:a?"hasIcon":""},D.createElement("div",{className:"main"},a&&D.createElement(D.Fragment,null,D.createElement("div",{style:{width:"32px",display:"flex",justifyContent:"center",alignItems:"center"}},e==="success"&&D.createElement(Co,{color:e,size:24}),e==="warning"&&D.createElement(Go,{color:e,size:24}),e==="error"&&D.createElement(vo,{color:e,size:24}),D.createElement(v,{size:4,direction:"horizontal"}))),D.createElement("div",{style:{display:"flex",justifyContent:"center",alignItems:"start",flexDirection:"column",width:"100%"}},n&&D.createElement(D.Fragment,null,D.createElement(p,{className:"title",variant:"title",color:e},n),!!t&&D.createElement(v,{size:4})),t)),o.footer?D.createElement("div",{className:"footer"},o.footer):null)}r(_,"Alert");import wi from"react";function ro(){return wi.createElement(_,{type:"error",title:" Error connecting server, please reload the app and try again."})}r(ro,"LoadingFailedAlert");import $i from"react";function G(o){let{catergory:e,searchedFor:t}=o;return $i.createElement(_,{type:"secondary",title:`${e} ${t?"'"+t+"'":""} not found.`})}r(G,"NotFoundAlert");import J,{useState as Ti}from"react";import Ii from"rgb-hex";import Pi from"react-color";var{ChromePicker:Li}=Pi,Wi=i("div",{position:"relative"}),Bi=i("div",{border:"1px solid $neutral100",borderRadius:"$5",width:"$32",height:"$32"}),Mi=i("div",{position:"fixed",top:"0px",right:"0px",bottom:"0px",left:"0px"}),Fi=i("div",{position:"absolute",zIndex:"2",variants:{place:{top:{top:"-241px"},bottom:{},left:{top:"-50%",left:"-225px"},right:{top:"-50%",right:"-225px"}}}}),zi=i("label",{display:"inline-block",fontSize:"$14",marginBottom:"$4",color:"$foreground"});function Ni({color:o,onChangeColor:e,label:t,place:n,placeholder:a}){let[l,c]=Ti(!1);return J.createElement(Wi,null,J.createElement(zi,{className:"_text"},t),J.createElement(x,{variant:"outlined",prefix:J.createElement(Bi,{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(Fi,{place:n},J.createElement(Mi,{onClick:()=>c(!1)}),J.createElement(Li,{color:o,onChange:s=>{let m="#"+Ii(s.rgb.r,s.rgb.g,s.rgb.b,s.rgb.a);e(m)}})))}r(Ni,"ColorPicker");import fo from"react";import*as Io from"@radix-ui/react-radio-group";var Ai=i(Io.Root,{variants:{direction:{horizontal:{display:"flex",flexDirection:"row",flexWrap:"wrap"},vertical:{display:"grid",gridGap:"$24"}}}}),Di=i("div",{display:"flex",alignItems:"center",marginRight:"$8"}),Hi=i(Io.Item,{padding:"0",width:"20px",height:"20px",borderRadius:"100%",cursor:"pointer",backgroundColor:"$background",border:"1px solid $neutral400","&:hover":{borderColor:"$neutral600"}}),_i=i("div",{display:"flex"}),Ei=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"}}),ji=i("label",{paddingLeft:"$8",cursor:"pointer",color:"$foreground"});function Ee(o){let{value:e,onChange:t,direction:n="vertical",style:a}=o;return fo.createElement(_i,null,fo.createElement(Ai,{onValueChange:t,value:e,direction:n,style:a},o.options.map((l,c)=>fo.createElement(Di,{key:c},fo.createElement(Hi,{value:l.value,id:l.value},fo.createElement(Ei,null)),fo.createElement(ji,{className:"_text",htmlFor:l.value},fo.createElement(p,{variant:"body2"},l.label))))))}r(Ee,"Radio");import je,{forwardRef as Ui,useEffect as Nt,useState as qe}from"react";import pe from"react";import{VariableSizeList as qi}from"react-window";import Zi from"react-window-infinite-loader";import Vi from"react-virtualized-auto-sizer";function Ft(o){let{itemCount:e,hasNextPage:t,loadNextPage:n,Item:a,innerElementType:l,size:c}=o,s=r(m=>!t||m<e,"isItemLoaded");return pe.createElement(Vi,null,({width:m,height:u})=>pe.createElement(Zi,{isItemLoaded:s,itemCount:t?e+1:e,loadMoreItems:n,threshold:1},({onItemsRendered:T,ref:w})=>pe.createElement(qi,{innerElementType:l,ref:w,itemSize:()=>c,itemCount:e,height:u||0,width:m||0,onItemsRendered:T},({index:h,style:M})=>s(h)?pe.createElement(a,{index:h,style:M}):null)))}r(Ft,"VirtualizedList");import O from"react";var Gi=i("div",{paddingRight:"$16"}),Oi=i("div",{display:"flex",flexDirection:"column"}),Yi=i("div",{display:"flex",flexDirection:"column",alignItems:"flex-end"});function zt(o){let{token:e,style:t,onClick:n,selected:a}=o;return O.createElement("div",{style:{display:"flex",alignItems:"center",width:"100%",...t,height:"48px",top:`${parseFloat(t?.top)+0}px`,padding:"0 4px"}},O.createElement(x,{variant:"outlined",size:"large",align:"start",onClick:n.bind(null,e),type:a?"primary":void 0,prefix:O.createElement(Gi,null,O.createElement(B,{src:e.image,size:32})),suffix:e.balance?.amount&&O.createElement(Yi,null,O.createElement(p,{variant:"body2"},e.balance.amount),O.createElement(p,{variant:"caption"},`${e.balance.usdValue}$`))},O.createElement(Oi,null,O.createElement(p,{variant:"body1"},e.symbol),O.createElement(p,{variant:"caption",color:"neutral600"},e.name))))}r(zt,"TokenItem");var At=20;function Ze(o){let{list:e,searchedText:t,onChange:n,multiSelect:a,selectedList:l}=o,[c,s]=qe(o.selected),m=r($=>{s($),n($)},"changeSelected"),u=r($=>a&&l?l.map(y=>y.symbol+y.address).indexOf($.symbol+$.address)>-1:c?.symbol===$.symbol&&c?.address===$.address,"isSelected"),[T,w]=qe(!0),[h,M]=qe(e),W=r(()=>{M(e.slice(0,h.length+At))},"loadNextPage");Nt(()=>{M(e.slice(0,At))},[t,e]),Nt(()=>{w(e.length>h.length)},[h.length]);let z=Ui(({style:$,...y},H)=>je.createElement("div",{ref:H,style:{...$,height:`${parseFloat($?.height)+8*2}px`},...y}));return je.createElement(Ft,{Item:({index:$,style:y})=>je.createElement(zt,{token:h[$],style:y,onClick:m,selected:u(h[$])}),hasNextPage:T,itemCount:h.length,loadNextPage:W,innerElementType:z,size:56})}r(Ze,"TokenList");import K from"react";import{createPortal as Xi}from"react-dom";var Ji=i("div",{position:"absolute",top:"0",left:"0",width:"100%",height:"100%",zIndex:9999999,backgroundColor:"rgba(0,0,0,.1)",borderRadius:"$10"}),Ki=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%"}}}}),Qi=i("div",{display:"flex",justifyContent:"space-between",alignItems:"center",position:"relative",marginBottom:"$16"}),Ri=i("div",{overflowY:"auto",height:"100%"}),on=i("footer",{width:"100%",marginTop:"$28"});function Ve(o){let{title:e,content:t,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&&Xi(K.createElement(Ji,{onClick:r(w=>{w.target===w.currentTarget&&a()},"handleBackDropClick")},K.createElement(Ki,{anchor:c,style:l},K.createElement(Qi,null,K.createElement(p,{variant:"h6"},e),s&&K.createElement(R,{size:24,onClick:a})),K.createElement(Ri,null,t),K.createElement(on,null,m))),u))}r(Ve,"Drawer");import f from"react";var en=i("div",{overflowY:"auto"}),tn=i("div",{paddingBottom:"$32",marginBottom:"$32",borderBottom:"1px solid $neutral400"}),rn=i("div",{display:"flex",alignItems:"center"}),Dt=i("div",{padding:"$16 0"}),nn=i(x,{marginTop:"$16"}),an=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"}}),ln=i("div",{paddingBottom:"$16"});function sn(o){let{onBack:e,loading:t,onConfirm:n,requiredWallets:a,selectableWallets:l,onChange:c,confirmDisabled:s,isExperimentalChain:m,handleConnectChain:u,confirmButtonTitle:T,errors:w,warnings:h,extraMessages:M,customDestination:W,setCustomDestination:z,checkedDestination:$,setDestinationChain:y,customDestinationEnabled:H=!0,isValidCustomDestination:yo,isWalletRequired:Ho}=o;return f.createElement(N,{textField:!1,title:"Confirm Swap",onBack:e,Footer:f.createElement(rn,null,f.createElement(nn,{fullWidth:!0,loading:t,type:"primary",variant:"contained",onClick:n,disabled:s||!!W&&!yo(a[a.length-1],W)},T))},f.createElement(en,null,f.createElement("div",null,M||null,f.createElement(ln,null,w?.map((S,F)=>f.createElement(f.Fragment,{key:F},f.createElement(v,null),f.createElement(_,{type:"error",key:F,...typeof S=="string"?{title:S}:{children:S}}))),h?.map((S,F)=>f.createElement(f.Fragment,{key:F},f.createElement(v,null),f.createElement(_,{type:"warning",key:F,...typeof S=="string"?{title:S}:{children:S}}))))),o.previewInputs||o.previewRoutes?f.createElement(tn,null,o.previewInputs,o.previewRoutes?f.createElement(v,{size:16}):null,o.previewRoutes):null,a.map((S,F)=>{let Wo=l.filter(io=>S===io.chain);return f.createElement(an,{key:F},f.createElement("div",{className:"title"},f.createElement("div",{className:"num"},F+1),f.createElement(v,{size:8,direction:"horizontal"}),f.createElement(p,{variant:"body2"},"Your ",S," Wallet")),Wo.length===0&&(Ho||!Ho&&!$)&&f.createElement(f.Fragment,null,f.createElement(Dt,null,f.createElement(_,{type:"error"},"You need to connect a compatible wallet with ",S,".")),m?.(S)&&f.createElement(x,{variant:"contained",type:"primary",align:"grow",onClick:()=>u?.(S)},`Add ${S} chain to Cosmos wallets`)),Wo.length!=0&&f.createElement(Ae,{list:Wo,onChange:io=>{c(io),y(""),z("")}}),F===a.length-1&&H&&f.createElement(f.Fragment,null,f.createElement(v,null),f.createElement(Me,{label:`Choose a custom ${S} address`,checked:$,onCheckedChange:io=>{io?y(S):(y(""),z(""),Wo.length&&c(Wo[0]))},id:"custom_destination"}),f.createElement(v,null),$&&f.createElement(f.Fragment,null,f.createElement(go,{placeholder:"Your destination address",value:W,onChange:io=>{z(io.target.value)}}),!!W&&!yo(S,W)&&f.createElement(Dt,null,f.createElement(_,{type:"error"},"Not a valid ",S," address.")))))})))}r(sn,"ConfirmSwap");import Y from"react";import j from"react";var pn=i("div",{".group-title":{textTransform:"uppercase"}});function Ge(o){let{list:e,onSwapClick:t,groupBy:n}=o,a=n?n(e):[{title:"History",swaps:e}];return j.createElement(j.Fragment,null,a.filter(l=>l.swaps.length>0).map((l,c)=>j.createElement(j.Fragment,{key:c},j.createElement(pn,null,j.createElement(p,{variant:"body2",color:"neutral600",className:"group-title"},l.title),l.swaps.map(s=>j.createElement(j.Fragment,{key:s.requestId},j.createElement(He,{swap:s,status:s.status,onClick:t}),j.createElement(v,{size:12})))),j.createElement(v,{size:24}))))}r(Ge,"SwapsGroup");import Po from"react";var Do=i("div",{display:"flex",justifyContent:"center",width:"100%",paddingTop:"33%",flex:1}),cn=r((o,e)=>o.filter(t=>A(t.symbol,e)||A(t.address||"",e)||A(t.name||"",e)),"filterTokens");function dn(o){let{list:e,type:t,selected:n,hasHeader:a,onChange:l,onBack:c,loadingStatus:s}=o;return Po.createElement(N,{textField:!0,hasHeader:a,title:`Select ${t} token`,onBack:c,textFieldPlaceholder:"Search tokens by name"},m=>{let u=cn(e,m);return s==="loading"?Po.createElement(Do,null,Po.createElement(P,{size:24})):s==="failed"?Po.createElement(ro,null):u.length?Po.createElement(Ze,{searchedText:m,list:u,selected:n,onChange:l}):Po.createElement(G,{catergory:"Token",searchedFor:m})})}r(dn,"TokenSelector");var mn=i("div",{overflowY:"auto"}),gn=r((o,e)=>o.filter(t=>{let n=t.steps[0],a=t.steps[t.steps.length-1];return A(n.fromBlockchain,e)||A(n.fromSymbol,e)||A(a.toBlockchain,e)||A(a.toSymbol,e)||A(t.requestId,e)}),"filteredHistory");function hn(o){let{list:e=[],onBack:t,onSwapClick:n,groupBy:a,loading:l}=o;return Y.createElement(N,{onBack:t,textField:!0,textFieldPlaceholder:"Search by blockchain, token or request Id",title:"Swaps"},c=>{let s=gn(e,c);return Y.createElement(Y.Fragment,null,l&&Y.createElement(Do,null,Y.createElement(P,{size:24})),Y.createElement(mn,null,!l&&Y.createElement(Y.Fragment,null,s.length?Y.createElement(Ge,{list:s,onSwapClick:n,groupBy:a}):Y.createElement(G,{catergory:"Swap"}))))})}r(hn,"History");import d,{useState as xn}from"react";import L,{useState as un}from"react";var fn=r(o=>!o||o==="info"?"secondary":o,"getAlertType"),yn=i("div",{width:"90%",overflowWrap:"break-word",color:"$error500 !important"}),Oe=i(p,{color:"$success500 !important"}),Ht=r(o=>{let{shortMessage:e,detailedMessage:t,currentStepBlockchain:n,type:a,lastConvertedTokenInFailedSwap:l}=o,[c,s]=un(!1),m=t.long?0:150,u=!c&&t.content.length>m;return L.createElement(_,{type:fn(a),title:e,...u&&{footer:L.createElement(x,{variant:"outlined",type:"primary",onClick:s.bind(null,T=>!T)},"Show more details")},...!!o.switchNetwork&&{footer:L.createElement(x,{variant:"outlined",type:"primary",onClick:()=>{o?.switchNetwork&&o.switchNetwork().catch(()=>{})}},"Change network to ",n)}},t.content?L.createElement(yn,null,L.createElement(p,{variant:"body2"},u&&!c?t.content.substring(0,m)+(m>0?"...":""):t.content)):null,!!l&&L.createElement(L.Fragment,null,L.createElement("p",null,L.createElement(p,{variant:"body2"},"Don't worry, your fund is\xA0"),L.createElement(Oe,{variant:"body2"},L.createElement("b",null,"Safe"))),L.createElement("p",null,L.createElement(p,{variant:"body2"},"It is converted to \xA0",L.createElement("u",null,l.outputAmount),"\xA0"),L.createElement(Oe,{variant:"body2"},L.createElement("b",null,l.symbol,"\xA0")),L.createElement(p,{variant:"body2"},"on your\xA0"),L.createElement(Oe,{variant:"body2"},L.createElement("b",null,l.blockchain,"\xA0")),L.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:`${We} 2s ease-in-out infinite`}}}}),W2=i("div",{height:"100%",display:"flex",justifyContent:"center",alignItems:"center"}),B2=i(p,{color:"$error"}),Cn=i("div",{paddingLeft:"$16",color:"$neutral800"}),Sn=i("div",{display:"flex",alignItems:"center"}),bn=i("div",{position:"relative"}),M2=i("div",{display:"flex",alignItems:"center"}),kn=i("div",{width:"$8",height:"$8",backgroundColor:"$foreground",borderRadius:"4px",marginLeft:"11px"}),wn=i("div",{width:"0px",height:"0px",borderLeft:"5px solid transparent",borderRight:"5px solid transparent",borderTop:"5px solid $foreground",marginLeft:"$10"}),$n=i("a",{color:"$primary",fontWeight:"$600"}),Tn=i("div",{display:"flex",flexDirection:"column",paddingBottom:"$16",borderBottom:"1px solid $neutral100"}),In=i("div",{display:"flex",".details":{padding:"$8 0"}}),_t=i("div",{display:"flex",margin:"$12 0 $12 $20"}),Et=i("div",{display:"flex",alignItems:"center"}),jt=i(p,{color:"$success",paddingLeft:"$4"}),qt=i("div",{width:"0",minHeight:"$16",marginLeft:"14px",border:"1px dashed $foreground",borderRadius:"inherit"}),Pn=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"}}),Ln=i("div",{width:"150px",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis","@md":{width:"auto"}}),Wn=i("div",{padding:"0",color:"$neutral600",fontSize:"$10"}),Bn=i("div",{overflowY:"auto",padding:"$8 $4 $2 $4"});function Mn(o){let{pendingSwap:e,onBack:t,onCopy:n,isCopied:a,onCancel:l,date:c,onRetry:s,previewInputs:m,...u}=o,[T,w]=xn(!1);return d.createElement(N,{title:"Swap Details",textField:!1,onBack:t,Footer:d.createElement(d.Fragment,null,e?.status==="running"&&d.createElement(x,{variant:"outlined",fullWidth:!0,type:"error",onClick:w.bind(null,!0)},"Cancel"),!!s&&d.createElement(x,{variant:"contained",fullWidth:!0,type:"primary",onClick:s},"Try again"))},d.createElement("div",null,d.createElement(Tn,null,d.createElement(Pn,null,d.createElement("div",{className:"name"},"Request Id:",d.createElement("span",{className:"value requestId",onClick:n.bind(null,e?.requestId)},d.createElement(Ln,null,e?.requestId),d.createElement(v,{size:4,direction:"horizontal"}),d.createElement(x,{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(P,{size:16,color:"primary"})),d.createElement(Wn,null,c))))),d.createElement(Bn,null,u.shortMessage&&d.createElement(Ht,{...u}),d.createElement(v,{size:16}),e?.steps.map((h,M)=>d.createElement("div",{key:M},M===0&&d.createElement(bn,null,d.createElement(co,{logo:h.fromLogo,symbol:h.fromSymbol,chainLogo:h.fromBlockchainLogo||"",blockchain:h.fromBlockchain,amount:e.inputAmount}),d.createElement(kn,null)),d.createElement(qt,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(Cn,null,d.createElement(p,{variant:"body2"},h.swapperType==="DEX"?"Swap":"Bridge"," via"," ",h.swapperId),d.createElement(Sn,null,d.createElement(So,null),d.createElement(p,{variant:"body2"},"\xA0 $",h.feeInUsd," estimated gas fee")))),d.createElement("div",{style:{display:"flex"}},d.createElement(In,null,d.createElement(qt,null),d.createElement("div",{className:"details"},!!h.explorerUrl&&d.createElement("div",null,h.explorerUrl.map((W,z)=>d.createElement(_t,{key:z},d.createElement(Et,null,d.createElement(v,{size:4}),d.createElement(Co,{color:"primary"}),d.createElement(jt,{variant:"body2"},d.createElement($n,{href:W.url,target:"_blank",rel:"noreferrer",key:z},W.description?d.createElement("b",null,W.description.substring(0,1).toUpperCase(),W.description.substring(1)," Tx"):d.createElement("b",null,"View transaction"))))))),h.status==="failed"&&d.createElement(_t,null,d.createElement(Et,null,d.createElement(vo,{color:"error"}),d.createElement(jt,{variant:"body2",color:"$error500"},"Step failed")))))),M+1===e.steps.length&&d.createElement(wn,null),d.createElement(co,{logo:h.toLogo,symbol:h.toSymbol,chainLogo:h.toBlockchainLogo||"",blockchain:h.toBlockchain,amount:h.outputAmount||"",estimatedAmount:h.expectedOutputAmountHumanReadable||"",success:h.status==="success"}))),d.createElement(v,{size:32})),d.createElement(Ve,{onClose:w.bind(null,!1),open:T,showClose:!0,anchor:"bottom",title:"Cancel Progress",content:d.createElement(_,{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(x,{variant:"contained",type:"success",onClick:w.bind(null,!1)},"Skip"),d.createElement(v,{size:16,direction:"horizontal"}),d.createElement(x,{variant:"contained",type:"error",onClick:()=>{l(e.requestId),w(!1)}},"Cancel progress")),container:document.getElementById("swap-box")}))}r(Mn,"SwapHistory");import q from"react";import Lo,{useState as Fn}from"react";var zn=i("div",{display:"grid",gap:".5rem",gridTemplateColumns:" repeat(2, minmax(0, 1fr))",alignContent:"baseline",width:"100%",height:"100%"}),Nn=i("div",{paddingRight:"$4"});function Ye(o){let{list:e,onChange:t,multiSelect:n,selectedList:a}=o,[l,c]=Fn(o.selected),s=r(u=>{c(u),t(u)},"changeSelectedBlockchain"),m=r(u=>n&&a?a==="all"||a.findIndex(T=>u===T.name)>-1:u===l?.name,"isSelect");return Lo.createElement(zn,null,e.map((u,T)=>Lo.createElement(x,{type:m(u.name)?"primary":void 0,variant:"outlined",size:"large",prefix:Lo.createElement(Nn,null,Lo.createElement(B,{size:24,src:u.logo})),suffix:m(u.name)?Lo.createElement(Le,null):void 0,align:"start",onClick:s.bind(null,u),key:T},Lo.createElement(p,{variant:"body2"},u.displayName))))}r(Ye,"BlockchainsList");var An=i("div",{overflowY:"auto",padding:"0 $4"}),Dn=r((o,e)=>o.filter(t=>A(t.name,e)||A(t.displayName,e)),"filterBlockchains");function Hn(o){let{type:e,list:t,onChange:n,selected:a,onBack:l,loadingStatus:c,hasHeader:s,listContainerStyle:m,multiSelect:u,selectedList:T}=o;return q.createElement(N,{textField:!0,hasHeader:s,textFieldPlaceholder:"Search blockchains by name",title:`Select ${e} Blockchain`,onBack:l},w=>{let h=Dn(t,w);return q.createElement(q.Fragment,null,c==="loading"&&q.createElement(Do,null,q.createElement(P,{size:24})),q.createElement(An,{style:m,key:"1"},c==="failed"&&q.createElement(ro,null),c==="success"&&q.createElement(q.Fragment,null,h.length?q.createElement(Ye,{list:h,selected:a,multiSelect:u,selectedList:T,onChange:n}):q.createElement(G,{catergory:"Blockchain",searchedFor:w}))))})}r(Hn,"BlockchainSelector");import Ue from"react";var _n=i("div",{display:"grid",gap:"$8",gridTemplateColumns:"repeat(2, minmax(0, 1fr))",overflow:"auto"});function En(o){let{open:e,list:t,onSelect:n,onClose:a}=o,l=Ue.createElement(_n,null,t.map((c,s)=>Ue.createElement(Mt,{...c,key:s,onClick:n})));return Ue.createElement(ze,{title:"Connect Wallets",open:e,content:l,onClose:a,containerStyle:{width:"75%",maxWidth:"30rem",height:"60%"}})}r(En,"ConnectWalletsModal");import Je from"react";import C,{useEffect as jn,useState as qn}from"react";var Zn=r(o=>({bridge:o.filter(e=>e.type==="BRIDGE"||e.type==="AGGREGATOR"),exchange:o.filter(e=>e.type==="DEX")}),"groupLiquiditySources"),Vn=i("div",{variants:{loaded:{true:{overflowY:"auto",padding:"0 $4"}}}}),Zt=i("div",{position:"sticky",display:"flex",justifyContent:"space-between",alignItems:"center",top:"0",backgroundColor:"$background",zIndex:"9999",paddingTop:"$8",paddingBottom:"$8"}),Gn=i("div",{paddingRight:"$16"}),Vt=i("div",{display:"flex",justifyContent:"center"});function Xe(o){let{list:e,onChange:t,listContainerStyle:n,loadingStatus:a,searchedFor:l}=o,[c,s]=qn(e.filter(y=>y.selected)),m=r(y=>{y.selected=!y.selected,s(H=>y.selected?[...H,y]:H.filter(yo=>yo.title!=y.title)),t(y)},"changeLiquiditySources"),u=r(y=>!!c.find(H=>y.title===H.title),"isSelected");jn(()=>{s(e.filter(y=>y.selected))},[e]);let T=Zn(e),w=T.bridge,h=T.exchange,M=w.length,W=h.length,z=w.filter(u).length,$=h.filter(u).length;return C.createElement(Vn,{style:n,loaded:a==="success"},C.createElement("div",null,C.createElement(Zt,null,C.createElement(p,{variant:"h5"},"Bridges"),C.createElement(p,{variant:"body1",color:"neutral800"},z===M?M:`${z} / ${M}`)),C.createElement(v,{size:12}),a==="loading"&&C.createElement(Vt,null,C.createElement(P,{size:24})),a==="failed"&&C.createElement(ro,null),a==="success"&&C.createElement(C.Fragment,null,M?w.map((y,H)=>C.createElement(Gt,{liquiditySource:y,key:H,selected:u(y),onChange:m})):C.createElement(G,{catergory:"Bridge",searchedFor:l}))),C.createElement("div",null,C.createElement(Zt,null,C.createElement(p,{variant:"h5"},"Exchanges"),C.createElement(p,{variant:"body1",color:"neutral800"},$===W?W:`${$} / ${W}`)),C.createElement(v,{size:12}),a==="loading"&&C.createElement(Vt,null,C.createElement(P,{size:24})),a==="failed"&&C.createElement(ro,null),a=="success"&&C.createElement(C.Fragment,null,W?h.map((y,H)=>C.createElement(Gt,{liquiditySource:y,key:H,selected:u(y),onChange:m})):C.createElement(G,{catergory:"Exchange",searchedFor:l}))))}r(Xe,"LiquiditySourceList");var Gt=r(({liquiditySource:o,selected:e,onChange:t})=>C.createElement(x,{size:"large",align:"start",variant:"outlined",prefix:C.createElement(Gn,null,C.createElement(B,{src:o.logo,size:20})),suffix:C.createElement(Ao,{checked:e}),style:{marginBottom:"12px"},onClick:t.bind(null,o)},C.createElement(p,{variant:"body1"},o.title)),"LiquiditySourceItem");var On=r((o,e)=>o.filter(t=>A(t.title,e||"")),"filterLiquiditySources");function Yn(o){let{list:e,onChange:t,onBack:n,hasHeader:a,listContainerStyle:l,toggleAll:c,loadingStatus:s}=o;return Je.createElement(N,{textField:!0,textFieldPlaceholder:"Search by name",title:"Liquidity Sources",TopButton:Je.createElement(x,{variant:"ghost",type:"primary",onClick:c},e.find(m=>m.selected)?"Deselect all":"Select all"),hasHeader:a,onBack:n},m=>Je.createElement(Xe,{listContainerStyle:l,list:On(e,m),onChange:t,loadingStatus:s,searchedFor:m}))}r(Yn,"LiquiditySourcesSelector");import k,{useState as Un}from"react";var ce=i("div",{borderRadius:"$5",backgroundColor:"$neutral100",padding:"$16"}),Xn=i(p,{marginBottom:"$16"}),Jn=i("div",{display:"grid",rowGap:"$16",gridTemplateColumns:"repeat(auto-fill, 64px)"}),Kn=i(ce,{display:"flex",justifyContent:"space-between",marginTop:"$16",cursor:"pointer"}),Qn=i(ce,{display:"flex",justifyContent:"space-between",marginTop:"$16"}),Rn=i(Xo,{marginLeft:"$8"}),oa=i("div",{display:"flex",alignItems:"center",justifyContent:"center"}),ea=i(ce,{marginTop:"$16"}),ta=i("div",{display:"flex",justifyContent:"space-between",alignItems:"center",paddingBottom:"$16"});function ra(o){let{slippages:e,selectedLiquiditySources:t,liquiditySources:n,onSlippageChange:a,onLiquiditySourcesClick:l,onBack:c,customSlippage:s,onCustomSlippageChange:m,maxSlippage:u,minSlippage:T,selectedTheme:w,onThemeChange:h,toggleInfiniteApprove:M,infiniteApprove:W,loadingStatus:z,singleTheme:$}=o,[y,H]=Un(o.selectedSlippage),yo=r(S=>{H(S),a(S)},"changeSlippage"),Ho=k.createElement(k.Fragment,null,k.createElement(ce,null,k.createElement(ta,null,k.createElement(p,{variant:"body2"},"Slippage tolerance"),s?k.createElement(p,{variant:"caption",color:"error"},s,"% Custom"):void 0),k.createElement(Jn,null,e.map((S,F)=>k.createElement(Fe,{key:F,onClick:()=>{s&&m(null),yo(S)},selected:!s&&S===y,label:`${S.toString()}%`,style:{marginRight:"8px"}})),k.createElement(go,{type:"number",value:s||"",onChange:S=>{let F=parseFloat(S.target.value);(!F||F>=T&&F<=u)&&m(F)},suffix:s&&k.createElement(p,{variant:"body2"},"%"),size:"small",placeholder:"Custom %",style:{width:"128px",flexGrow:"initial"}}))),!$&&k.createElement(ea,null,k.createElement(Xn,{variant:"body2"},"Theme"),k.createElement(Ee,{value:w,options:[{value:"dark",label:"Dark"},{value:"light",label:"Light"},{value:"auto",label:"Auto"}],onChange:S=>h(S),direction:"horizontal",style:{marginTop:"$24"}})),k.createElement(Qn,null,k.createElement(p,{variant:"body2"},"Infinite Approval"),k.createElement(Ao,{checked:W,onChange:M})),k.createElement(Kn,null,k.createElement(x,{onClick:l,align:"start",variant:"ghost",loading:z==="loading",suffix:k.createElement(oa,null,z==="success"&&k.createElement(p,{variant:"body2",color:"neutral800"},n.length!==t.length?`${t.length} / ${n.length}`:n.length),z==="failed"&&k.createElement(p,{variant:"body2",color:"$error500"},"Loading failed"),k.createElement(Rn,null))},k.createElement(p,{variant:"body2"},"Liquidity Sources"))));return k.createElement(N,{title:"Settings",textField:!1,onBack:c},Ho)}r(ra,"Settings");import Ke from"react";import ia from"copy-to-clipboard";function na(o){let[e,t]=Ke.useState(!1),n=Ke.useCallback(a=>{ia(a.toString()),t(!0)},[]);return Ke.useEffect(()=>{let a;return e&&o&&(a=setTimeout(()=>t(!1),o)),()=>{clearTimeout(a)}},[e,o]),[e,n]}r(na,"useCopyToClipboard");export{et as AddCircleIcon,Eo as AddIcon,xt as AddWalletIcon,_ as Alert,Jo as AngleDownIcon,ke as AngleLeftIcon,Xo as AngleRightIcon,st as AngleUpIcon,oe as ArrowRightIcon,bt as BagIcon,rt as BanIcon,Lr as BestRoute,Hn as BlockchainSelector,x as Button,Co as CheckCircleIcon,Zo as CheckIcon,ot as CheckSquareIcon,Ct as CheckWalletIcon,Me as Checkbox,ct as ChevronRightIcon,Fe as Chip,R as CloseIcon,Ni as ColorPicker,sn as ConfirmSwap,En as ConnectWalletsModal,wt as CopyIcon,Re as DeleteCircleIcon,vt as DeleteWalletIcon,re as DisconnectIcon,v as Divider,Qo as DownloadIcon,Ve as Drawer,Le as FilledCircle,So as GasIcon,Ne as Header,hn as History,it as HistoryIcon,ut as HorizontalSwapIcon,B as Image,vo as InfoCircleIcon,Yn as LiquiditySourcesSelector,ro as LoadingFailedAlert,tt as MinusCircleIcon,ze as Modal,G as NotFoundAlert,Ee as Radio,ft as RetryIcon,mt as RetryLeftIcon,dt as RetryRightIcon,Uo as SearchIcon,lt as SearchMinusIcon,N as SecondaryPage,Ae as SelectableWalletList,ra as Settings,nt as SettingsIcon,kt as SignatureIcon,P as Spinner,co as StepDetail,ci as SwapContainer,He as SwapDetail,Mn as SwapHistory,St as SwapWalletIcon,Ge as SwapsGroup,Ao as Switch,go as TextField,ie as TimeIcon,Ze as TokenList,dn as TokenSelector,ne as Tooltip,at as TrashIcon,gt as TryAgainIcon,p as Typography,ht as VerticalSwapIcon,Mt as Wallet,yt as WalletIcon,_e as WalletState,Go as WarningIcon,ca as config,Qe as createTheme,sa as css,U as darkTheme,ei as generateRangeColors,pa as globalCss,xo as keyframes,da as lightTheme,i as styled,na as useCopyToClipboard};
|
|
19
|
+
S29.0059509,37.5872993,28.4444485,37.5872993z`}))),"CopyIcon");Bt.toString=()=>"._icon";import Z from"react";import mr from"react";var gr=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:t,...n}){let a=t?{color:t.startsWith("$")?t:`$${t}`}:{color:"$foreground"};return mr.createElement(gr,{className:`_typography _text ${e||""}`,css:a,...n},o)}r(p,"Typography");p.toString=()=>"._typography";var hr=i("div",{position:"relative",width:"$28",height:"$28",variants:{direction:{vertical:{margin:"auto"},horizontal:{}}}}),ur=i("img",{width:"$28",height:"$28",borderRadius:"50%"}),fr=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"}}),yr=i("div",{display:"flex",variants:{direction:{horizontal:{alignItems:"center"},vertical:{flexDirection:"column",textAlign:"center",justifyContent:"center"}},success:{true:{filter:"none"},false:{filter:"grayscale(100%)"}}}}),xr=i("div",{variants:{pl:{true:{paddingLeft:"$4","@lg":{paddingLeft:"$8"}},false:{paddingTop:"$8"}}}}),Cr=i(p,{color:"$neutral600",display:"block",paddingLeft:"$8"});function mo(o){let{logo:e,chainLogo:t,amount:n,symbol:a,blockchain:s,estimatedAmount:c,success:l=!0,direction:m="horizontal"}=o;return Z.createElement(yr,{direction:m,success:l},Z.createElement(hr,{direction:m},Z.createElement(ur,{src:e,alt:a}),Z.createElement(fr,null,Z.createElement("img",{src:t,alt:s}))),Z.createElement(xr,{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(Cr,{noWrap:!0,variant:"caption",color:"$neutral800"},"on ",s)))}r(mo,"StepDetail");import vr from"react";var Sr=Co({"0%":{backgroundPosition:"-468px 0"},"100%":{backgroundPosition:"468px 0"}}),wr=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:`${Sr} 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 We({width:o=20,height:e=20}){return vr.createElement(wr,{width:o,height:e})}r(We,"Skeleton");import kr from"react";var br=Co({"100%":{transform:"rotate(360deg)"}}),$r=i("div",{borderRadius:"50%",position:"relative",border:"2px solid $neutral100",borderRight:"2px solid",animation:`${br} 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 P({size:o=16,color:e="primary"}){return kr.createElement($r,{size:o,color:e})}r(P,"Spinner");import*as _ from"@radix-ui/react-tooltip";import go from"react";var Tr=i(_.Trigger,{border:0,padding:0,backgroundColor:"transparent"}),Ir=i(_.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"}}}}),Pr=i(_.Arrow,{variants:{color:{primary:{fill:"$primary"},error:{fill:"$error"},warning:{fill:"$warning"},success:{fill:"$success"},gray:{fill:"$neutral100"},black:{fill:"$black"},white:{fill:"$white"}}}}),Lr=i("div",{display:"inline-block"});function ae({children:o,content:e,side:t="top",color:n="gray"}){return go.createElement(_.Provider,null,go.createElement(_.Root,null,go.createElement(Tr,{asChild:!0},go.createElement(Lr,null,o)),go.createElement(_.Portal,null,go.createElement(Ir,{color:n,side:t,sideOffset:5},e,go.createElement(Pr,{color:n})))))}r(ae,"Tooltip");var Be=i("span",{width:"10px",height:"10px",backgroundColor:"$primary",borderRadius:"99999px"});import Mt from"react";var Wr=i("div",{display:"flex",justifyContent:"center",alignItems:"center",".image":{width:"100%",height:"100%",objectFit:"contain"}});function B(o){let{size:e,...t}=o;return Mt.createElement(Wr,{css:{width:e+"px",height:e+"px"}},Mt.createElement("img",{className:"image",...t}))}r(B,"Image");var Mr=i("div",{borderRadius:"$5",border:"1px solid $neutral100",display:"flex",alignItems:"center",minHeight:126,justifyContent:"space-between",backgroundColor:"$surface"}),Fr=i(p,{color:"$error"}),Nr=i("div",{display:"flex",alignItems:"center",margin:"0 auto",overflowX:"auto",overflowY:"hidden",alignSelf:"stretch",padding:"$4","@md":{padding:"$8"}}),Ft=i("div",{height:"0",width:"$20",border:"1px dashed $foreground",borderRadius:"inherit","@lg":{width:"$32"}}),Ar=i("hr",{width:"100%",border:"1px solid $neutral400",margin:"$8 0"}),Dr=i("div",{position:"relative"}),zr=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%"}}),Er=i("div",{width:"0px",height:"0px",borderTop:"5px solid transparent",borderBottom:"5px solid transparent",borderLeft:"5px solid $foreground"}),Fe=Co({"0%":{opacity:1},"50%":{opacity:.3},"100%":{opacity:1}}),Hr=i("div",{backgroundColor:"$neutral100",borderRadius:"5px",margin:"$4",display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",padding:"$4","@md":{padding:"$8",margin:"$8"}}),Nt=i("div",{display:"flex",flexDirection:"column",alignItems:"center",variants:{warning:{true:{animation:`${Fe} 2s ease-in-out infinite`}}}}),_r=i(p,{variants:{warning:{true:{color:"$warning300"}}}}),qr=i("div",{padding:"$4","@md":{padding:"$8"}}),jr=i("div",{display:"flex",justifyContent:"center",alignItems:"center"});function Zr(o){let{data:e,loading:t,error:n,totalFee:a,feeWarning:s,totalTime:c}=o;return w.createElement(Mr,null,t?w.createElement(qr,null,w.createElement(We,{width:48,height:94})):w.createElement(Hr,null,w.createElement(ae,{content:Me.t("Transaction cost (fee)")},w.createElement(Nt,{warning:s},w.createElement(wo,{size:20,color:s?"warning":void 0}),w.createElement(_r,{mt:4,align:"center",variant:"caption",warning:s},n&&"-",!!e&&`$${a}`))),w.createElement(Ar,null),w.createElement(ae,{content:Me.t("Time estimate")},w.createElement(Nt,{warning:s},w.createElement(ne,{size:20}),w.createElement(p,{mt:4,align:"center",variant:"caption"},n&&"-",!!e&&`~${c}m`)))),w.createElement(Nr,null,t&&w.createElement(P,{color:"primary"}),n&&w.createElement(Fr,{variant:"caption"},n),!!e&&e.result?.swaps.map((l,m)=>w.createElement(Br,{key:m},m===0&&w.createElement(Dr,null,w.createElement(mo,{direction:"vertical",logo:l.from.logo,symbol:l.from.symbol,chainLogo:l.from.blockchainLogo,blockchain:l.from.blockchain,amount:l.fromAmount}),w.createElement(zr,null)),w.createElement(jr,null,w.createElement(Ft,null),w.createElement(B,{src:l.swapperLogo,alt:l.swapperId,size:20}),w.createElement(Ft,null)),m+1===e.result?.swaps.length&&w.createElement(Er,null),w.createElement(mo,{direction:"vertical",logo:l.to.logo,symbol:l.to.symbol,chainLogo:l.to.blockchainLogo,blockchain:l.to.blockchain,amount:l.toAmount}))),!!e&&!e?.result&&w.createElement(p,{variant:"body2"},Me.t("No routes found"))))}r(Zr,"BestRoute");import Ne from"react";var Vr=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"}}),Gr=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 x({children:o,loading:e,disabled:t,prefix:n,suffix:a,align:s,flexContent:c,...l}){return Ne.createElement(Vr,{disabled:e||t,...l,align:s},n,o&&Ne.createElement(Gr,{align:s,ml:!!n,mr:!!a&&!e,flexContent:c,className:"_text"},o),e&&Ne.createElement(P,{size:16,color:l.type}),a)}r(x,"Button");import No from"react";import*as se from"@radix-ui/react-checkbox";var Or=i("div",{display:"flex",alignItems:"center"}),Ur=i(se.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"}),Yr=i("label",{color:"$foreground",fontSize:"$m",marginLeft:"$8",cursor:"pointer"});function Ae({label:o,id:e,...t}){return No.createElement(Or,null,No.createElement(Ur,{id:e,...t},No.createElement(se.Indicator,null,No.createElement(Vo,{size:20}))),No.createElement(Yr,{className:"_text",htmlFor:e},o))}r(Ae,"Checkbox");import Jr from"react";var Rr=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 De(o){let{label:e,selected:t,prefix:n,suffix:a,onClick:s,style:c}=o;return Jr.createElement(Rr,{selected:t,onClick:s,style:c},n||null,e,a||null)}r(De,"Chip");import eo,{useEffect as Xr}from"react";import{createPortal as Kr}from"react-dom";var Qr=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}),oi=i("div",{backgroundColor:"$background",borderRadius:"$10",padding:"$16 $16",display:"flex",flexDirection:"column",zIndex:20}),ei=i("div",{display:"flex",alignItems:"center"}),ti=i("div",{display:"flex",justifyContent:"space-between",alignItems:"center",position:"relative",marginBottom:"$16"});function ze(o){let{title:e,content:t,open:n,onClose:a,containerStyle:s,action:c}=o,l=r(m=>{m.target===m.currentTarget&&a()},"handleBackDropClick");return Xr(()=>{n?document.body.style.overflow="hidden":document.body.style.overflow="unset"},[n]),eo.createElement(eo.Fragment,null,n&&Kr(eo.createElement(Qr,{onClick:l},eo.createElement(oi,{css:s},eo.createElement(ti,null,eo.createElement(p,{variant:"h4"},e),eo.createElement(ei,null,c,eo.createElement(Q,{size:24,onClick:a}))),t)),document.body))}r(ze,"Modal");import to,{useState as ci}from"react";import ri from"react";var ii=i("div",{variants:{size:{4:{},8:{},12:{},16:{},18:{},20:{},24:{},32:{}},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"}},{size:32,direction:"horizontal",css:{width:"$32"}},{size:32,direction:"vertical",css:{height:"$32"}}]});function C({size:o=12,direction:e="vertical"}){return ri.createElement(ii,{size:o,direction:e})}r(C,"Divider");import Ao from"react";var ni=i("div",{display:"flex",justifyContent:"space-between",alignItems:"center",padding:"$8 0",position:"relative"}),ai=i(x,{padding:"$8"});function Ee(o){return Ao.createElement(ni,null,o.onBack?Ao.createElement(ai,{variant:"ghost",size:"small",onClick:o.onBack},Ao.createElement($e,{size:24})):null,o.prefix,Ao.createElement(p,{variant:"h4"},o.title),o.suffix||Ao.createElement("div",null))}r(Ee,"Header");import To from"react";var si=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"}}),li=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"}}),pi=i("label",{display:"inline-block",fontSize:"$14",color:"$foreground",marginBottom:"$4"}),ho=To.forwardRef((o,e)=>{let{label:t,prefix:n,suffix:a,children:s,size:c,style:l,...m}=o;return To.createElement(To.Fragment,null,t&&To.createElement(pi,{className:"_text",...m.id&&{htmlFor:m.id}},t),To.createElement(si,{disabled:m.disabled,prefix:!!n,suffix:!!a,size:c,style:l,className:"_text"},n||null,To.createElement(li,{className:"_text",...m,spellCheck:!1,ref:e}),a||null))});var di=i("div",{overflow:"hidden",display:"flex",flexDirection:"column",flex:"1",padding:"0 $4"}),mi=i("div",{padding:"1px"});function A(o){let{title:e,Footer:t,TopButton:n,onBack:a,hasHeader:s=!0}=o,[c,l]=ci("");return to.createElement(to.Fragment,null,s&&to.createElement(Ee,{onBack:a,title:e||"",suffix:n}),to.createElement(di,null,o.textField&&to.createElement(mi,null,to.createElement(ho,{size:"large",prefix:to.createElement(Jo,{size:24}),placeholder:o.textFieldPlaceholder,onChange:m=>l(m.target.value),value:c,autoFocus:!0}),to.createElement(C,{size:16})),o.textField&&o.children?.(c),!o.textField&&o.children),t)}r(A,"SecondaryPage");import uo,{useEffect as fi,useState as yi}from"react";function D(o,e){return o.toLowerCase().indexOf(e.toLowerCase())>-1}r(D,"containsText");function At(o,e=8,t=3){if(!o)return null;if(o.length<2*e+t)return o;let n=Math.ceil((o.length-e)/2),a=o.length-e;return`${o.substr(n,e)}${".".repeat(t)}${o.substr(a)}`}r(At,"getConciseAddress");function le(o,e=4){let t=parseFloat(o);if(isNaN(t))return o;{let n=Math.pow(10,e);return(Math.round(t*n)/n).toString()}}r(le,"limitDecimalPlaces");var Dt=r(o=>(e=>e.length===3?e.split("").map(t=>parseInt(t.repeat(2),16)):(e.match(/.{1,2}/g)||[]).map(t=>parseInt(t,16)))(o.replace("#","")),"hexToRgb"),gi=r(o=>(([e,t,n])=>.2126*e+.7152*t+.0722*n<40)(Dt(o)),"isHexTooDark"),hi=r(o=>(([e,t,n])=>(e*299+t*587+n*114)/1e3>155)(Dt(o)),"isHexTooLight"),Do=r((o,e)=>{o=o.replace(/^#/,""),o.length===3&&(o=o[0]+o[0]+o[1]+o[1]+o[2]+o[2]);let[t,n,a]=o.match(/.{2}/g);[t,n,a]=[parseInt(t,16)+e,parseInt(n,16)+e,parseInt(a,16)+e],t=Math.max(Math.min(255,t),0).toString(16),n=Math.max(Math.min(255,n),0).toString(16),a=Math.max(Math.min(255,a),0).toString(16);let s=(t.length<2?"0":"")+t,c=(n.length<2?"0":"")+n,l=(a.length<2?"0":"")+a;return`#${s}${c}${l}`},"colorShade"),ui=r((o,e,t)=>{let n={[o]:t};if(t){let a=t;if(gi(t)||e==="dark")for(let s=1;s<10;s++)n={...n,[o+s*100]:o==="neutral"?Do(a,s*15):Do(t,s*5)};if(hi(t)||e==="light")for(let s=1;s<10;s++)a=Do(a,-(s*5)),n={...n,[o+s*100]:Do(o==="neutral"?a:t,-(s*5))}}return n},"generateRangeColors");var xi=i("div",{display:"flex",flexWrap:"wrap"}),Ci=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"}}}}),vi=i("div",{width:6,margin:"20% auto",height:6,borderRadius:3,variants:{checked:{true:{backgroundColor:"$success"},false:{backgroundColor:"$neutral400"}}}}),Si=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 He({list:o,onChange:e}){let[t,n]=yi(o.find(s=>s.selected)?.walletType||""),a=r(s=>{n(s.walletType),e(s)},"onClick");return fi(()=>{n(o.find(s=>s.selected)?.walletType||"")},[o]),uo.createElement(xi,null,o.map((s,c)=>{let l=t===s.walletType;return uo.createElement(Si,{checked:l,onClick:a.bind(null,s),key:c},uo.createElement(B,{src:s.image,alt:s.walletType,size:24}),uo.createElement(p,{variant:"body2"},s.name),uo.createElement(p,{variant:"caption"},At(s.address)),uo.createElement(Ci,{checked:l},l&&uo.createElement(vi,{checked:l})))}))}r(He,"SelectableWalletList");import wi from"react";var ki=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 bi(o){let{children:e,style:t,fixedHeight:n=!0}=o;return wi.createElement(ki,{style:t,id:"swap-box",fixedHeight:n},e)}r(bi,"SwapContainer");import V from"react";import J from"react";var $i=i("div",{display:"flex",alignItems:"center",width:"160px","& .amount":{fontWeight:"bold"},"& .estimated":{color:"$neutral600"}}),Ti=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 _e(o){let{data:{token:e,blockchain:t,amount:n,estimatedAmount:a}}=o;return J.createElement($i,null,J.createElement(Ti,null,J.createElement(B,{src:e.logo,alt:"",size:24}),J.createElement("div",{className:"overlay"},J.createElement(B,{src:t.logo,alt:t.name,size:12}))),J.createElement(C,{size:8,direction:"horizontal"}),!!n&&J.createElement("span",{className:"amount"},o.data.amount),!n&&a&&J.createElement("span",{className:"amount estimated"},o.data.estimatedAmount),J.createElement(C,{size:4,direction:"horizontal"}),e.symbol)}r(_e,"Token");var Ii=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 qe({swap:o,status:e,onClick:t}){let n=o.steps[0],a=o.steps[o.steps.length-1];return V.createElement(x,{variant:"ghost",size:"free",fullWidth:!0,onClick:t.bind(null,o.requestId)},V.createElement(Ii,{className:`${e}`},V.createElement("div",{className:"info"},V.createElement(_e,{data:{token:{logo:n.fromLogo,symbol:n.fromSymbol},blockchain:{logo:n.fromBlockchainLogo||"",name:n.fromBlockchain},amount:le(o.inputAmount)}}),V.createElement(C,{size:12,direction:"horizontal"}),V.createElement(ee,{size:12}),V.createElement(C,{size:12,direction:"horizontal"}),V.createElement(_e,{data:{token:{logo:a.toLogo,symbol:a.toSymbol},blockchain:{logo:a.toBlockchainLogo||"",name:a.toBlockchain},amount:le(a.outputAmount||""),estimatedAmount:le(a.expectedOutputAmountHumanReadable||"")}})),V.createElement("div",{className:"status"},e==="running"?V.createElement(P,{size:24,color:"primary"}):e)))}r(qe,"SwapDetail");import zt from"react";import*as pe from"@radix-ui/react-switch";var Pi=i(pe.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)"}),Li=i(pe.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:t}=o;return zt.createElement(Pi,{checked:e,onCheckedChange:t},zt.createElement(Li,null))}r(zo,"Switch");import{detectInstallLink as Fi}from"@rango-dev/wallets-shared";import fo from"react";var je=(a=>(a.NOT_INSTALLED="not installed",a.DISCONNECTED="disconnected",a.CONNECTING="connecting",a.CONNECTED="connected",a))(je||{});import Io,{Fragment as Wi}from"react";import{detectInstallLink as Bi}from"@rango-dev/wallets-shared";var Mi=i("span",{display:"flex",justifyContent:"center",alignItems:"center"}),Et=r(({walletState:o,installLink:e})=>Io.createElement(Wi,null,o!=="disconnected"&&Io.createElement(Mi,null,o==="not installed"&&Io.createElement("a",{href:Bi(e),target:"_blank"},Io.createElement(Qo,{size:24,color:"success"})),o==="connecting"&&Io.createElement(P,null),o==="connected"&&Io.createElement(ie,null))),"State");var Ni=i("div",{paddingRight:"$12","& img":{borderRadius:"50%"}}),Ai=i("div",{display:"flex",flexDirection:"column"}),Di=i(x,{variants:{type:{primary:{outline:"1px solid $primary",borderColor:"$primary","&:hover":{borderColor:"$primary"}}}}});function Ht(o){let{name:e,type:t,image:n,state:a,onClick:s,installLink:c}=o;return fo.createElement(Di,{type:a==="connected"?"primary":void 0,disabled:a=="connecting",onClick:()=>{a==="not installed"?window.open(Fi(c),"_blank"):s(t)},align:"start",variant:"outlined",size:"large",prefix:fo.createElement(Ni,null,fo.createElement(B,{src:n,size:24})),suffix:fo.createElement(Et,{walletState:a,installLink:c})},fo.createElement(Ai,null,fo.createElement(p,{variant:"h5",noWrap:!1},e),a==="connected"?fo.createElement(p,{variant:"caption",noWrap:!1,color:"primary"},"Connected"):null))}r(Ht,"Wallet");import z from"react";var zi=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 H(o){let{type:e,children:t,title:n}=o,a=["error","success","warning"].includes(e);return z.createElement(zi,{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(So,{color:e,size:24}),e==="warning"&&z.createElement(Oo,{color:e,size:24}),e==="error"&&z.createElement(vo,{color:e,size:24}),z.createElement(C,{size:4,direction:"horizontal"}))),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),!!t&&z.createElement(C,{size:4})),t)),o.footer?z.createElement("div",{className:"footer"},o.footer):null)}r(H,"Alert");import Ei from"react";import{i18n as Hi}from"@lingui/core";function ro(){return Ei.createElement(H,{type:"error",title:Hi.t(" Error connecting server, please reload the app and try again.")})}r(ro,"LoadingFailedAlert");import _i from"react";function G(o){let{catergory:e,searchedFor:t}=o;return _i.createElement(H,{type:"secondary",title:`${e} ${t?"'"+t+"'":""} not found.`})}r(G,"NotFoundAlert");import R,{useState as qi}from"react";import ji from"rgb-hex";import Zi from"react-color";var{ChromePicker:Vi}=Zi,Gi=i("div",{position:"relative"}),Oi=i("div",{border:"1px solid $neutral100",borderRadius:"$5",width:"$32",height:"$32"}),Ui=i("div",{position:"fixed",top:"0px",right:"0px",bottom:"0px",left:"0px"}),Yi=i("div",{position:"absolute",zIndex:"2",variants:{place:{top:{top:"-241px"},bottom:{},left:{top:"-50%",left:"-225px"},right:{top:"-50%",right:"-225px"}}}}),Ji=i("label",{display:"inline-block",fontSize:"$14",marginBottom:"$4",color:"$foreground"});function Ri({color:o,onChangeColor:e,label:t,place:n,placeholder:a}){let[s,c]=qi(!1);return R.createElement(Gi,null,R.createElement(Ji,{className:"_text"},t),R.createElement(x,{variant:"outlined",prefix:R.createElement(Oi,{style:{backgroundColor:o}}),fullWidth:!0,align:"start",size:"large",suffix:o&&R.createElement("div",{onClick:l=>{l.stopPropagation(),e(void 0)}},R.createElement(Q,{size:20})),onClick:()=>c(l=>!l)},o||a),s&&R.createElement(Yi,{place:n},R.createElement(Ui,{onClick:()=>c(!1)}),R.createElement(Vi,{color:o,onChange:l=>{let m="#"+ji(l.rgb.r,l.rgb.g,l.rgb.b,l.rgb.a);e(m)}})))}r(Ri,"ColorPicker");import yo from"react";import*as Po from"@radix-ui/react-radio-group";var Xi=i(Po.Root,{variants:{direction:{horizontal:{display:"flex",flexDirection:"row",flexWrap:"wrap"},vertical:{display:"grid",gridGap:"$24"}}}}),Ki=i("div",{display:"flex",alignItems:"center",marginRight:"$8"}),Qi=i(Po.Item,{padding:"0",width:"20px",height:"20px",borderRadius:"100%",cursor:"pointer",backgroundColor:"$background",border:"1px solid $neutral400","&:hover":{borderColor:"$neutral600"}}),on=i("div",{display:"flex"}),en=i(Po.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"}}),tn=i("label",{paddingLeft:"$8",cursor:"pointer",color:"$foreground"});function Ze(o){let{value:e,onChange:t,direction:n="vertical",style:a}=o;return yo.createElement(on,null,yo.createElement(Xi,{onValueChange:t,value:e,direction:n,style:a},o.options.map((s,c)=>yo.createElement(Ki,{key:c},yo.createElement(Qi,{value:s.value,id:s.value},yo.createElement(en,null)),yo.createElement(tn,{className:"_text",htmlFor:s.value},yo.createElement(p,{variant:"body2"},s.label))))))}r(Ze,"Radio");import Ve,{forwardRef as cn,useEffect as jt,useState as Ge}from"react";import ce from"react";import{VariableSizeList as rn}from"react-window";import nn from"react-window-infinite-loader";import an from"react-virtualized-auto-sizer";function _t(o){let{itemCount:e,hasNextPage:t,loadNextPage:n,Item:a,innerElementType:s,size:c}=o,l=r(m=>!t||m<e,"isItemLoaded");return ce.createElement(an,null,({width:m,height:u})=>ce.createElement(nn,{isItemLoaded:l,itemCount:t?e+1:e,loadMoreItems:n,threshold:1},({onItemsRendered:T,ref:b})=>ce.createElement(rn,{innerElementType:s,ref:b,itemSize:()=>c,itemCount:e,height:u||0,width:m||0,onItemsRendered:T},({index:h,style:M})=>l(h)?ce.createElement(a,{index:h,style:M}):null)))}r(_t,"VirtualizedList");import O from"react";var sn=i("div",{paddingRight:"$16"}),ln=i("div",{display:"flex",flexDirection:"column"}),pn=i("div",{display:"flex",flexDirection:"column",alignItems:"flex-end"});function qt(o){let{token:e,style:t,onClick:n,selected:a}=o;return O.createElement("div",{style:{display:"flex",alignItems:"center",width:"100%",...t,height:"48px",top:`${parseFloat(t?.top)+0}px`,padding:"0 4px"}},O.createElement(x,{variant:"outlined",size:"large",align:"start",onClick:n.bind(null,e),type:a?"primary":void 0,prefix:O.createElement(sn,null,O.createElement(B,{src:e.image,size:32})),suffix:e.balance?.amount&&O.createElement(pn,null,O.createElement(p,{variant:"body2"},e.balance.amount),O.createElement(p,{variant:"caption"},`${e.balance.usdValue}$`))},O.createElement(ln,null,O.createElement(p,{variant:"body1"},e.symbol),O.createElement(p,{variant:"caption",color:"neutral600"},e.name))))}r(qt,"TokenItem");var Zt=20;function Oe(o){let{list:e,searchedText:t,onChange:n,multiSelect:a,selectedList:s}=o,[c,l]=Ge(o.selected),m=r($=>{l($),n($)},"changeSelected"),u=r($=>a&&s?s.map(y=>y.symbol+y.address).indexOf($.symbol+$.address)>-1:c?.symbol===$.symbol&&c?.address===$.address,"isSelected"),[T,b]=Ge(!0),[h,M]=Ge(e),W=r(()=>{M(e.slice(0,h.length+Zt))},"loadNextPage");jt(()=>{M(e.slice(0,Zt))},[t,e]),jt(()=>{b(e.length>h.length)},[h.length]);let N=cn(({style:$,...y},E)=>Ve.createElement("div",{ref:E,style:{...$,height:`${parseFloat($?.height)+8*2}px`},...y}));return Ve.createElement(_t,{Item:({index:$,style:y})=>Ve.createElement(qt,{token:h[$],style:y,onClick:m,selected:u(h[$])}),hasNextPage:T,itemCount:h.length,loadNextPage:W,innerElementType:N,size:56})}r(Oe,"TokenList");import X from"react";import{createPortal as dn}from"react-dom";var mn=i("div",{position:"absolute",top:"0",left:"0",width:"100%",height:"100%",zIndex:9999999,backgroundColor:"rgba(0,0,0,.1)",borderRadius:"$10"}),gn=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%"}}}}),hn=i("div",{display:"flex",justifyContent:"space-between",alignItems:"center",position:"relative",marginBottom:"$16"}),un=i("div",{overflowY:"auto",height:"100%"}),fn=i("footer",{width:"100%",marginTop:"$28"});function Ue(o){let{title:e,content:t,open:n,onClose:a,containerStyle:s,anchor:c="bottom",showClose:l=!1,footer:m,container:u}=o;return X.createElement(X.Fragment,null,n&&u&&dn(X.createElement(mn,{onClick:r(b=>{b.target===b.currentTarget&&a()},"handleBackDropClick")},X.createElement(gn,{anchor:c,style:s},X.createElement(hn,null,X.createElement(p,{variant:"h6"},e),l&&X.createElement(Q,{size:24,onClick:a})),X.createElement(un,null,t),X.createElement(fn,null,m))),u))}r(Ue,"Drawer");import f from"react";var yn=i("div",{overflowY:"auto"}),xn=i("div",{paddingBottom:"$32",marginBottom:"$32",borderBottom:"1px solid $neutral400"}),Cn=i("div",{display:"flex",alignItems:"center"}),Vt=i("div",{padding:"$16 0"}),vn=i(x,{marginTop:"$16"}),Sn=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"}}),wn=i("div",{paddingBottom:"$16"});function kn(o){let{onBack:e,loading:t,onConfirm:n,requiredWallets:a,selectableWallets:s,onChange:c,confirmDisabled:l,isExperimentalChain:m,handleConnectChain:u,confirmButtonTitle:T,errors:b,warnings:h,extraMessages:M,customDestination:W,setCustomDestination:N,checkedDestination:$,setDestinationChain:y,customDestinationEnabled:E=!0,isValidCustomDestination:xo,isWalletRequired:Ho}=o;return f.createElement(A,{textField:!1,title:"Confirm Swap",onBack:e,Footer:f.createElement(Cn,null,f.createElement(vn,{fullWidth:!0,loading:t,type:"primary",variant:"contained",onClick:n,disabled:l||!!W&&!xo(a[a.length-1],W)},T))},f.createElement(yn,null,f.createElement("div",null,M||null,f.createElement(wn,null,b?.map((S,F)=>f.createElement(f.Fragment,{key:F},f.createElement(C,null),f.createElement(H,{type:"error",key:F,...typeof S=="string"?{title:S}:{children:S}}))),h?.map((S,F)=>f.createElement(f.Fragment,{key:F},f.createElement(C,null),f.createElement(H,{type:"warning",key:F,...typeof S=="string"?{title:S}:{children:S}}))))),o.previewInputs||o.previewRoutes?f.createElement(xn,null,o.previewInputs,o.previewRoutes?f.createElement(C,{size:16}):null,o.previewRoutes):null,a.map((S,F)=>{let Bo=s.filter(no=>S===no.chain);return f.createElement(Sn,{key:F},f.createElement("div",{className:"title"},f.createElement("div",{className:"num"},F+1),f.createElement(C,{size:8,direction:"horizontal"}),f.createElement(p,{variant:"body2"},"Your ",S," Wallet")),Bo.length===0&&(Ho||!Ho&&!$)&&f.createElement(f.Fragment,null,f.createElement(Vt,null,f.createElement(H,{type:"error"},"You need to connect a compatible wallet with ",S,".")),m?.(S)&&f.createElement(x,{variant:"contained",type:"primary",align:"grow",onClick:()=>u?.(S)},`Add ${S} chain to Cosmos wallets`)),Bo.length!=0&&f.createElement(He,{list:Bo,onChange:no=>{c(no),y(""),N("")}}),F===a.length-1&&E&&f.createElement(f.Fragment,null,f.createElement(C,null),f.createElement(Ae,{label:`Choose a custom ${S} address`,checked:$,onCheckedChange:no=>{no?y(S):(y(""),N(""),Bo.length&&c(Bo[0]))},id:"custom_destination"}),f.createElement(C,null),$&&f.createElement(f.Fragment,null,f.createElement(ho,{placeholder:"Your destination address",value:W,onChange:no=>{N(no.target.value)}}),!!W&&!xo(S,W)&&f.createElement(Vt,null,f.createElement(H,{type:"error"},"Not a valid ",S," address.")))))})))}r(kn,"ConfirmSwap");import U from"react";import q from"react";var bn=i("div",{".group-title":{textTransform:"uppercase"}});function Ye(o){let{list:e,onSwapClick:t,groupBy:n}=o,a=n?n(e):[{title:"History",swaps:e}];return q.createElement(q.Fragment,null,a.filter(s=>s.swaps.length>0).map((s,c)=>q.createElement(q.Fragment,{key:c},q.createElement(bn,null,q.createElement(p,{variant:"body2",color:"neutral600",className:"group-title"},s.title),s.swaps.map(l=>q.createElement(q.Fragment,{key:l.requestId},q.createElement(qe,{swap:l,status:l.status,onClick:t}),q.createElement(C,{size:12})))),q.createElement(C,{size:24}))))}r(Ye,"SwapsGroup");import Lo from"react";var Eo=i("div",{display:"flex",justifyContent:"center",width:"100%",paddingTop:"33%",flex:1}),$n=r((o,e)=>o.filter(t=>D(t.symbol,e)||D(t.address||"",e)||D(t.name||"",e)),"filterTokens");function Tn(o){let{list:e,type:t,selected:n,hasHeader:a,onChange:s,onBack:c,loadingStatus:l}=o;return Lo.createElement(A,{textField:!0,hasHeader:a,title:`Select ${t} token`,onBack:c,textFieldPlaceholder:"Search tokens by name"},m=>{let u=$n(e,m);return l==="loading"?Lo.createElement(Eo,null,Lo.createElement(P,{size:24})):l==="failed"?Lo.createElement(ro,null):u.length?Lo.createElement(Oe,{searchedText:m,list:u,selected:n,onChange:s}):Lo.createElement(G,{catergory:"Token",searchedFor:m})})}r(Tn,"TokenSelector");var In=i("div",{overflowY:"auto"}),Pn=r((o,e)=>o.filter(t=>{let n=t.steps[0],a=t.steps[t.steps.length-1];return D(n.fromBlockchain,e)||D(n.fromSymbol,e)||D(a.toBlockchain,e)||D(a.toSymbol,e)||D(t.requestId,e)}),"filteredHistory");function Ln(o){let{list:e=[],onBack:t,onSwapClick:n,groupBy:a,loading:s}=o;return U.createElement(A,{onBack:t,textField:!0,textFieldPlaceholder:"Search by blockchain, token or request Id",title:"Swaps"},c=>{let l=Pn(e,c);return U.createElement(U.Fragment,null,s&&U.createElement(Eo,null,U.createElement(P,{size:24})),U.createElement(In,null,!s&&U.createElement(U.Fragment,null,l.length?U.createElement(Ye,{list:l,onSwapClick:n,groupBy:a}):U.createElement(G,{catergory:"Swap"}))))})}r(Ln,"History");import d,{useState as Fn}from"react";import L,{useState as Wn}from"react";var Bn=r(o=>!o||o==="info"?"secondary":o,"getAlertType"),Mn=i("div",{width:"90%",overflowWrap:"break-word",color:"$error500 !important"}),Je=i(p,{color:"$success500 !important"}),Gt=r(o=>{let{shortMessage:e,detailedMessage:t,currentStepBlockchain:n,type:a,lastConvertedTokenInFailedSwap:s}=o,[c,l]=Wn(!1),m=t.long?0:150,u=!c&&t.content.length>m;return L.createElement(H,{type:Bn(a),title:e,...u&&{footer:L.createElement(x,{variant:"outlined",type:"primary",onClick:l.bind(null,T=>!T)},"Show more details")},...!!o.switchNetwork&&{footer:L.createElement(x,{variant:"outlined",type:"primary",onClick:()=>{o?.switchNetwork&&o.switchNetwork().catch(()=>{})}},"Change network to ",n)}},t.content?L.createElement(Mn,null,L.createElement(p,{variant:"body2"},u&&!c?t.content.substring(0,m)+(m>0?"...":""):t.content)):null,!!s&&L.createElement(L.Fragment,null,L.createElement("p",null,L.createElement(p,{variant:"body2"},"Don't worry, your fund is\xA0"),L.createElement(Je,{variant:"body2"},L.createElement("b",null,"Safe"))),L.createElement("p",null,L.createElement(p,{variant:"body2"},"It is converted to \xA0",L.createElement("u",null,s.outputAmount),"\xA0"),L.createElement(Je,{variant:"body2"},L.createElement("b",null,s.symbol,"\xA0")),L.createElement(p,{variant:"body2"},"on your\xA0"),L.createElement(Je,{variant:"body2"},L.createElement("b",null,s.blockchain,"\xA0")),L.createElement(p,{variant:"body2"},"wallet"))))},"SwapMessages");var Nn=i("div",{display:"flex",alignItems:"center",paddingLeft:"$4",variants:{created:{true:{filter:"grayscale(100%)"}},running:{true:{animation:`${Fe} 2s ease-in-out infinite`}}}}),c2=i("div",{height:"100%",display:"flex",justifyContent:"center",alignItems:"center"}),d2=i(p,{color:"$error"}),An=i("div",{paddingLeft:"$16",color:"$neutral800"}),Dn=i("div",{display:"flex",alignItems:"center"}),zn=i("div",{position:"relative"}),m2=i("div",{display:"flex",alignItems:"center"}),En=i("div",{width:"$8",height:"$8",backgroundColor:"$foreground",borderRadius:"4px",marginLeft:"11px"}),Hn=i("div",{width:"0px",height:"0px",borderLeft:"5px solid transparent",borderRight:"5px solid transparent",borderTop:"5px solid $foreground",marginLeft:"$10"}),_n=i("a",{color:"$primary",fontWeight:"$600"}),qn=i("div",{display:"flex",flexDirection:"column",paddingBottom:"$16",borderBottom:"1px solid $neutral100"}),jn=i("div",{display:"flex",".details":{padding:"$8 0"}}),Ot=i("div",{display:"flex",margin:"$12 0 $12 $20"}),Ut=i("div",{display:"flex",alignItems:"center"}),Yt=i(p,{color:"$success",paddingLeft:"$4"}),Jt=i("div",{width:"0",minHeight:"$16",marginLeft:"14px",border:"1px dashed $foreground",borderRadius:"inherit"}),Zn=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"}}),Vn=i("div",{width:"150px",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis","@md":{width:"auto"}}),Gn=i("div",{padding:"0",color:"$neutral600",fontSize:"$10"}),On=i("div",{overflowY:"auto",padding:"$8 $4 $2 $4"});function Un(o){let{pendingSwap:e,onBack:t,onCopy:n,isCopied:a,onCancel:s,date:c,onRetry:l,previewInputs:m,...u}=o,[T,b]=Fn(!1);return d.createElement(A,{title:"Swap Details",textField:!1,onBack:t,Footer:d.createElement(d.Fragment,null,e?.status==="running"&&d.createElement(x,{variant:"outlined",fullWidth:!0,type:"error",onClick:b.bind(null,!0)},"Cancel"),!!l&&d.createElement(x,{variant:"contained",fullWidth:!0,type:"primary",onClick:l},"Try again"))},d.createElement("div",null,d.createElement(qn,null,d.createElement(Zn,null,d.createElement("div",{className:"name"},"Request Id:",d.createElement("span",{className:"value requestId",onClick:n.bind(null,e?.requestId)},d.createElement(Vn,null,e?.requestId),d.createElement(C,{size:4,direction:"horizontal"}),d.createElement(x,{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(P,{size:16,color:"primary"})),d.createElement(Gn,null,c))))),d.createElement(On,null,u.shortMessage&&d.createElement(Gt,{...u}),d.createElement(C,{size:16}),e?.steps.map((h,M)=>d.createElement("div",{key:M},M===0&&d.createElement(zn,null,d.createElement(mo,{logo:h.fromLogo,symbol:h.fromSymbol,chainLogo:h.fromBlockchainLogo||"",blockchain:h.fromBlockchain,amount:e.inputAmount}),d.createElement(En,null)),d.createElement(Jt,null),d.createElement(Nn,{created:h.status==="created",running:!["created","success","failed"].includes(h.status)},d.createElement(B,{src:h.swapperLogo||"",alt:h.swapperId,size:20}),d.createElement(An,null,d.createElement(p,{variant:"body2"},h.swapperType==="DEX"?"Swap":"Bridge"," via"," ",h.swapperId),d.createElement(Dn,null,d.createElement(wo,null),d.createElement(p,{variant:"body2"},"\xA0 $",h.feeInUsd," estimated gas fee")))),d.createElement("div",{style:{display:"flex"}},d.createElement(jn,null,d.createElement(Jt,null),d.createElement("div",{className:"details"},!!h.explorerUrl&&d.createElement("div",null,h.explorerUrl.map((W,N)=>d.createElement(Ot,{key:N},d.createElement(Ut,null,d.createElement(C,{size:4}),d.createElement(So,{color:"primary"}),d.createElement(Yt,{variant:"body2"},d.createElement(_n,{href:W.url,target:"_blank",rel:"noreferrer",key:N},W.description?d.createElement("b",null,W.description.substring(0,1).toUpperCase(),W.description.substring(1)," Tx"):d.createElement("b",null,"View transaction"))))))),h.status==="failed"&&d.createElement(Ot,null,d.createElement(Ut,null,d.createElement(vo,{color:"error"}),d.createElement(Yt,{variant:"body2",color:"$error500"},"Step failed")))))),M+1===e.steps.length&&d.createElement(Hn,null),d.createElement(mo,{logo:h.toLogo,symbol:h.toSymbol,chainLogo:h.toBlockchainLogo||"",blockchain:h.toBlockchain,amount:h.outputAmount||"",estimatedAmount:h.expectedOutputAmountHumanReadable||"",success:h.status==="success"}))),d.createElement(C,{size:32})),d.createElement(Ue,{onClose:b.bind(null,!1),open:T,showClose:!0,anchor:"bottom",title:"Cancel Progress",content:d.createElement(H,{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(x,{variant:"contained",type:"success",onClick:b.bind(null,!1)},"Skip"),d.createElement(C,{size:16,direction:"horizontal"}),d.createElement(x,{variant:"contained",type:"error",onClick:()=>{s(e.requestId),b(!1)}},"Cancel progress")),container:document.getElementById("swap-box")}))}r(Un,"SwapHistory");import j from"react";import Wo,{useState as Yn}from"react";var Jn=i("div",{display:"grid",gap:".5rem",gridTemplateColumns:" repeat(2, minmax(0, 1fr))",alignContent:"baseline",width:"100%",height:"100%"}),Rn=i("div",{paddingRight:"$4"});function Re(o){let{list:e,onChange:t,multiSelect:n,selectedList:a}=o,[s,c]=Yn(o.selected),l=r(u=>{c(u),t(u)},"changeSelectedBlockchain"),m=r(u=>n&&a?a==="all"||a.findIndex(T=>u===T.name)>-1:u===s?.name,"isSelect");return Wo.createElement(Jn,null,e.map((u,T)=>Wo.createElement(x,{type:m(u.name)?"primary":void 0,variant:"outlined",size:"large",prefix:Wo.createElement(Rn,null,Wo.createElement(B,{size:24,src:u.logo})),suffix:m(u.name)?Wo.createElement(Be,null):void 0,align:"start",onClick:l.bind(null,u),key:T},Wo.createElement(p,{variant:"body2"},u.displayName))))}r(Re,"BlockchainsList");var Xn=i("div",{overflowY:"auto",padding:"0 $4"}),Kn=r((o,e)=>o.filter(t=>D(t.name,e)||D(t.displayName,e)),"filterBlockchains");function Qn(o){let{type:e,list:t,onChange:n,selected:a,onBack:s,loadingStatus:c,hasHeader:l,listContainerStyle:m,multiSelect:u,selectedList:T}=o;return j.createElement(A,{textField:!0,hasHeader:l,textFieldPlaceholder:"Search blockchains by name",title:`Select ${e} Blockchain`,onBack:s},b=>{let h=Kn(t,b);return j.createElement(j.Fragment,null,c==="loading"&&j.createElement(Eo,null,j.createElement(P,{size:24})),j.createElement(Xn,{style:m,key:"1"},c==="failed"&&j.createElement(ro,null),c==="success"&&j.createElement(j.Fragment,null,h.length?j.createElement(Re,{list:h,selected:a,multiSelect:u,selectedList:T,onChange:n}):j.createElement(G,{catergory:"Blockchain",searchedFor:b}))))})}r(Qn,"BlockchainSelector");import Xe from"react";import{i18n as oa}from"@lingui/core";var ea=i("div",{display:"grid",gap:"$8",gridTemplateColumns:"repeat(2, minmax(0, 1fr))",overflow:"auto"});function ta(o){let{open:e,list:t,onSelect:n,onClose:a}=o,s=Xe.createElement(ea,null,t.map((c,l)=>Xe.createElement(Ht,{...c,key:l,onClick:n})));return Xe.createElement(ze,{title:oa.t("Connect Wallets"),open:e,content:s,onClose:a,containerStyle:{width:"75%",maxWidth:"30rem",height:"60%"}})}r(ta,"ConnectWalletsModal");import Qe from"react";import v,{useEffect as ra,useState as ia}from"react";import{i18n as Rt}from"@lingui/core";var na=r(o=>({bridge:o.filter(e=>e.type==="BRIDGE"||e.type==="AGGREGATOR"),exchange:o.filter(e=>e.type==="DEX")}),"groupLiquiditySources"),aa=i("div",{variants:{loaded:{true:{overflowY:"auto",padding:"0 $4"}}}}),Xt=i("div",{position:"sticky",display:"flex",justifyContent:"space-between",alignItems:"center",top:"0",backgroundColor:"$background",zIndex:"9999",paddingTop:"$8",paddingBottom:"$8"}),sa=i("div",{paddingRight:"$16"}),Kt=i("div",{display:"flex",justifyContent:"center"});function Ke(o){let{list:e,onChange:t,listContainerStyle:n,loadingStatus:a,searchedFor:s}=o,[c,l]=ia(e.filter(y=>y.selected)),m=r(y=>{y.selected=!y.selected,l(E=>y.selected?[...E,y]:E.filter(xo=>xo.title!=y.title)),t(y)},"changeLiquiditySources"),u=r(y=>!!c.find(E=>y.title===E.title),"isSelected");ra(()=>{l(e.filter(y=>y.selected))},[e]);let T=na(e),b=T.bridge,h=T.exchange,M=b.length,W=h.length,N=b.filter(u).length,$=h.filter(u).length;return v.createElement(aa,{style:n,loaded:a==="success"},v.createElement("div",null,v.createElement(Xt,null,v.createElement(p,{variant:"h5"},Rt.t("Bridges")),v.createElement(p,{variant:"body1",color:"neutral800"},N===M?M:`${N} / ${M}`)),v.createElement(C,{size:12}),a==="loading"&&v.createElement(Kt,null,v.createElement(P,{size:24})),a==="failed"&&v.createElement(ro,null),a==="success"&&v.createElement(v.Fragment,null,M?b.map((y,E)=>v.createElement(Qt,{liquiditySource:y,key:E,selected:u(y),onChange:m})):v.createElement(G,{catergory:"Bridge",searchedFor:s}))),v.createElement("div",null,v.createElement(Xt,null,v.createElement(p,{variant:"h5"},Rt.t("Exchanges")),v.createElement(p,{variant:"body1",color:"neutral800"},$===W?W:`${$} / ${W}`)),v.createElement(C,{size:12}),a==="loading"&&v.createElement(Kt,null,v.createElement(P,{size:24})),a==="failed"&&v.createElement(ro,null),a=="success"&&v.createElement(v.Fragment,null,W?h.map((y,E)=>v.createElement(Qt,{liquiditySource:y,key:E,selected:u(y),onChange:m})):v.createElement(G,{catergory:"Exchange",searchedFor:s}))))}r(Ke,"LiquiditySourceList");var Qt=r(({liquiditySource:o,selected:e,onChange:t})=>v.createElement(x,{size:"large",align:"start",variant:"outlined",prefix:v.createElement(sa,null,v.createElement(B,{src:o.logo,size:20})),suffix:v.createElement(zo,{checked:e}),style:{marginBottom:"12px"},onClick:t.bind(null,o)},v.createElement(p,{variant:"body1"},o.title)),"LiquiditySourceItem");var la=r((o,e)=>o.filter(t=>D(t.title,e||"")),"filterLiquiditySources");function pa(o){let{list:e,onChange:t,onBack:n,hasHeader:a,listContainerStyle:s,toggleAll:c,loadingStatus:l}=o;return Qe.createElement(A,{textField:!0,textFieldPlaceholder:"Search by name",title:"Liquidity Sources",TopButton:Qe.createElement(x,{variant:"ghost",type:"primary",onClick:c},e.find(m=>m.selected)?"Deselect all":"Select all"),hasHeader:a,onBack:n},m=>Qe.createElement(Ke,{listContainerStyle:s,list:la(e,m),onChange:t,loadingStatus:l,searchedFor:m}))}r(pa,"LiquiditySourcesSelector");import k,{useState as ca}from"react";import{i18n as io}from"@lingui/core";var de=i("div",{borderRadius:"$5",backgroundColor:"$neutral100",padding:"$16"}),da=i(p,{marginBottom:"$16"}),ma=i("div",{display:"grid",rowGap:"$16",gridTemplateColumns:"repeat(auto-fill, 64px)"}),ga=i(de,{display:"flex",justifyContent:"space-between",marginTop:"$16",cursor:"pointer"}),ha=i(de,{display:"flex",justifyContent:"space-between",marginTop:"$16"}),ua=i(Ro,{marginLeft:"$8"}),fa=i("div",{display:"flex",alignItems:"center",justifyContent:"center"}),ya=i(de,{marginTop:"$16"}),xa=i("div",{display:"flex",justifyContent:"space-between",alignItems:"center",paddingBottom:"$16"});function Ca(o){let{slippages:e,selectedLiquiditySources:t,liquiditySources:n,onSlippageChange:a,onLiquiditySourcesClick:s,onBack:c,customSlippage:l,onCustomSlippageChange:m,maxSlippage:u,minSlippage:T,selectedTheme:b,onThemeChange:h,toggleInfiniteApprove:M,infiniteApprove:W,loadingStatus:N,singleTheme:$}=o,[y,E]=ca(o.selectedSlippage),xo=r(S=>{E(S),a(S)},"changeSlippage"),Ho=k.createElement(k.Fragment,null,k.createElement(de,null,k.createElement(xa,null,k.createElement(p,{variant:"body2"},io.t("Slippage tolerance")),l?k.createElement(p,{variant:"caption",color:"error"},l,"% ",io.t("Custom")):void 0),k.createElement(ma,null,e.map((S,F)=>k.createElement(De,{key:F,onClick:()=>{l&&m(null),xo(S)},selected:!l&&S===y,label:`${S.toString()}%`,style:{marginRight:"8px"}})),k.createElement(ho,{type:"number",value:l||"",onChange:S=>{let F=parseFloat(S.target.value);(!F||F>=T&&F<=u)&&m(F)},suffix:l&&k.createElement(p,{variant:"body2"},"%"),size:"small",placeholder:"Custom %",style:{width:"128px",flexGrow:"initial"}}))),!$&&k.createElement(ya,null,k.createElement(da,{variant:"body2"},io.t("Theme")),k.createElement(Ze,{value:b,options:[{value:"dark",label:`${io.t("Dark")}`},{value:"light",label:`${io.t("Light")}`},{value:"auto",label:`${io.t("Auto")}`}],onChange:S=>h(S),direction:"horizontal",style:{marginTop:"$24"}})),k.createElement(ha,null,k.createElement(p,{variant:"body2"},io.t("Infinite Approval")),k.createElement(zo,{checked:W,onChange:M})),k.createElement(ga,null,k.createElement(x,{onClick:s,align:"start",variant:"ghost",loading:N==="loading",suffix:k.createElement(fa,null,N==="success"&&k.createElement(p,{variant:"body2",color:"neutral800"},n.length!==t.length?`${t.length} / ${n.length}`:n.length),N==="failed"&&k.createElement(p,{variant:"body2",color:"$error500"},"Loading failed"),k.createElement(ua,null))},k.createElement(p,{variant:"body2"},io.t("Liquidity Sources")))));return k.createElement(A,{title:"Settings",textField:!1,onBack:c},Ho)}r(Ca,"Settings");import ot from"react";import va from"copy-to-clipboard";function Sa(o){let[e,t]=ot.useState(!1),n=ot.useCallback(a=>{va(a.toString()),t(!0)},[]);return ot.useEffect(()=>{let a;return e&&o&&(a=setTimeout(()=>t(!1),o)),()=>{clearTimeout(a)}},[e,o]),[e,n]}r(Sa,"useCopyToClipboard");export{lt as AddCircleIcon,qo as AddIcon,$t as AddWalletIcon,H as Alert,Xo as AngleDownIcon,$e as AngleLeftIcon,Ro as AngleRightIcon,ut as AngleUpIcon,ee as ArrowRightIcon,Lt as BagIcon,ct as BanIcon,Zr as BestRoute,Qn as BlockchainSelector,x as Button,So as CheckCircleIcon,Vo as CheckIcon,st as CheckSquareIcon,It as CheckWalletIcon,Ae as Checkbox,yt as ChevronRightIcon,De as Chip,Q as CloseIcon,Ri as ColorPicker,kn as ConfirmSwap,ta as ConnectWalletsModal,Bt as CopyIcon,at as DeleteCircleIcon,Tt as DeleteWalletIcon,ie as DisconnectIcon,C as Divider,Qo as DownloadIcon,Ue as Drawer,Be as FilledCircle,wo as GasIcon,Ee as Header,Ln as History,dt as HistoryIcon,wt as HorizontalSwapIcon,ar as I18nManager,B as Image,vo as InfoCircleIcon,pa as LiquiditySourcesSelector,ro as LoadingFailedAlert,pt as MinusCircleIcon,ze as Modal,G as NotFoundAlert,Ze as Radio,kt as RetryIcon,Ct as RetryLeftIcon,xt as RetryRightIcon,Jo as SearchIcon,ht as SearchMinusIcon,A as SecondaryPage,He as SelectableWalletList,Ca as Settings,mt as SettingsIcon,Wt as SignatureIcon,P as Spinner,mo as StepDetail,bi as SwapContainer,qe as SwapDetail,Un as SwapHistory,Pt as SwapWalletIcon,Ye as SwapsGroup,zo as Switch,ho as TextField,ne as TimeIcon,Oe as TokenList,Tn as TokenSelector,ae as Tooltip,gt as TrashIcon,vt as TryAgainIcon,p as Typography,St as VerticalSwapIcon,Ht as Wallet,bt as WalletIcon,je as WalletState,Oo as WarningIcon,qa as config,nt as createTheme,Ha as css,Y as darkTheme,ui as generateRangeColors,_a as globalCss,Co as keyframes,ja as lightTheme,i as styled,Sa as useCopyToClipboard};
|
|
20
20
|
//# sourceMappingURL=index.js.map
|