@layerswap/widget 1.0.2 → 1.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/esm/components/ErrorFallback.js +1 -1
- package/dist/esm/components/Icons/QRIcon.js +1 -1
- package/dist/esm/components/Input/Address/AddressPicker/ManualAddressInput.js +1 -1
- package/dist/esm/components/Input/Address/AddressPicker/index.js +9 -9
- package/dist/esm/components/Input/Amount/PriceImpact.js +2 -2
- package/dist/esm/components/Input/Amount/ReceiveAmount.js +1 -1
- package/dist/esm/components/Input/Amount/index.js +1 -1
- package/dist/esm/components/Input/RoutePicker/Routes.js +1 -5
- package/dist/esm/components/Input/TransferCEX.js +1 -1
- package/dist/esm/components/Menu/MenuList.js +3 -4
- package/dist/esm/components/Modal/leaflet.js +3 -3
- package/dist/esm/components/Modal/modal.js +6 -16
- package/dist/esm/components/Modal/modalWithoutAnimation.js +2 -2
- package/dist/esm/components/Modal/vaulModal.js +1 -1
- package/dist/esm/components/Pages/Campaigns/Details/Leaderboard.js +2 -2
- package/dist/esm/components/Pages/Swap/Form/ExchangeForm.js +13 -14
- package/dist/esm/components/Pages/Swap/Form/FeeDetails/RefuelModal.js +12 -12
- package/dist/esm/components/Pages/Swap/Form/FeeDetails/index.js +5 -5
- package/dist/esm/components/Pages/Swap/Form/FormWrapper.js +2 -3
- package/dist/esm/components/Pages/Swap/Form/NetworkExchangeTabs.js +1 -1
- package/dist/esm/components/Pages/Swap/Form/SecondaryComponents/validationError/ErrorDisplay.js +1 -1
- package/dist/esm/components/Pages/Swap/Form/index.js +1 -1
- package/dist/esm/components/Pages/Swap/Withdraw/Failed.js +1 -1
- package/dist/esm/components/Pages/Swap/Withdraw/ManualWithdraw.js +1 -1
- package/dist/esm/components/Pages/Swap/Withdraw/NotFound.js +1 -1
- package/dist/esm/components/Pages/Swap/Withdraw/Processing/Processing.js +3 -5
- package/dist/esm/components/Pages/Swap/Withdraw/Summary/Summary.js +1 -1
- package/dist/esm/components/Pages/Swap/Withdraw/Wallet/index.js +2 -2
- package/dist/esm/components/Pages/Swap/Withdraw/messages/TransactionMessages.js +3 -3
- package/dist/esm/components/Pages/SwapHistory/HistorySummary.js +1 -1
- package/dist/esm/components/Pages/SwapHistory/StatusIcons.js +3 -3
- package/dist/esm/components/Pages/SwapHistory/SwapDetailsComponent.js +1 -1
- package/dist/esm/components/Wallet/WalletModal/ConnectorsList.js +1 -1
- package/dist/esm/components/Widget/Footer.js +1 -1
- package/dist/esm/components/Widget/Index.js +3 -2
- package/dist/esm/components/shadcn/tooltip.js +4 -1
- package/dist/esm/components/themeWrapper.js +2 -2
- package/dist/esm/context/LayerswapProvider.js +2 -1
- package/dist/esm/helpers/{getSettings.js → getSettings/getSettings.js} +1 -16
- package/dist/esm/helpers/getSettings/index.js +2 -0
- package/dist/esm/helpers/getSettings/useSettings.js +17 -0
- package/dist/esm/lib/AppSettings.js +1 -0
- package/dist/esm/lib/apiClients/index.js +2 -1
- package/dist/index.css +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/types/components/Icons/QRIcon.d.ts +2 -1
- package/dist/types/components/Icons/QRIcon.d.ts.map +1 -1
- package/dist/types/components/Input/Address/AddressPicker/index.d.ts.map +1 -1
- package/dist/types/components/Input/Amount/PriceImpact.d.ts.map +1 -1
- package/dist/types/components/Input/RoutePicker/Routes.d.ts.map +1 -1
- package/dist/types/components/Menu/index.d.ts.map +1 -1
- package/dist/types/components/Modal/leaflet.d.ts +0 -1
- package/dist/types/components/Modal/leaflet.d.ts.map +1 -1
- package/dist/types/components/Modal/modal.d.ts +1 -2
- package/dist/types/components/Modal/modal.d.ts.map +1 -1
- package/dist/types/components/Pages/Campaigns/Details/Leaderboard.d.ts.map +1 -1
- package/dist/types/components/Pages/Swap/Form/ExchangeForm.d.ts.map +1 -1
- package/dist/types/components/Pages/Swap/Form/FeeDetails/RefuelModal.d.ts.map +1 -1
- package/dist/types/components/Pages/Swap/Form/FormWrapper.d.ts.map +1 -1
- package/dist/types/components/Pages/Swap/Form/NetworkExchangeTabs.d.ts.map +1 -1
- package/dist/types/components/Pages/Swap/Withdraw/Processing/Processing.d.ts.map +1 -1
- package/dist/types/components/Pages/Swap/Withdraw/messages/TransactionMessages.d.ts +2 -2
- package/dist/types/components/Pages/Swap/Withdraw/messages/TransactionMessages.d.ts.map +1 -1
- package/dist/types/components/Widget/Index.d.ts.map +1 -1
- package/dist/types/components/shadcn/tooltip.d.ts +2 -1
- package/dist/types/components/shadcn/tooltip.d.ts.map +1 -1
- package/dist/types/context/LayerswapProvider.d.ts +1 -0
- package/dist/types/context/LayerswapProvider.d.ts.map +1 -1
- package/dist/types/helpers/getSettings/getSettings.d.ts +7 -0
- package/dist/types/helpers/getSettings/getSettings.d.ts.map +1 -0
- package/dist/types/helpers/getSettings/index.d.ts +3 -0
- package/dist/types/helpers/getSettings/index.d.ts.map +1 -0
- package/dist/types/helpers/getSettings/useSettings.d.ts +6 -0
- package/dist/types/helpers/getSettings/useSettings.d.ts.map +1 -0
- package/dist/types/lib/AppSettings.d.ts +1 -0
- package/dist/types/lib/AppSettings.d.ts.map +1 -1
- package/dist/types/lib/apiClients/index.d.ts +2 -1
- package/dist/types/lib/apiClients/index.d.ts.map +1 -1
- package/package.json +1 -1
- package/dist/types/helpers/getSettings.d.ts +0 -12
- package/dist/types/helpers/getSettings.d.ts.map +0 -1
|
@@ -89,7 +89,7 @@ const ManualWithdraw = ({ swapBasicData, quote, depositActions, refuel, partner,
|
|
|
89
89
|
const sourceNetworkPopover = (_jsxs(Popover, { open: isPopoverOpen, onOpenChange: setIsPopoverOpen, children: [_jsx(PopoverTrigger, { asChild: true, children: _jsxs("button", { className: "inline-flex items-center gap-1 px-1.5 mx-1 bg-secondary-300 rounded-lg", children: [_jsx(ImageWithFallback, { src: newNetwork?.logo || swapBasicData?.source_network?.logo, alt: "Project Logo", height: "16", width: "16", loading: "eager", className: "rounded-sm object-contain" }), _jsx("span", { children: newNetwork?.display_name || swapBasicData?.source_network?.display_name }), _jsx("span", { className: "pointer-events-none text-shadow-primary-text-tertiary", children: _jsx(ChevronDown, { className: "h-3.5 w-3.5 text-secondary-text", "aria-hidden": "true" }) })] }) }), _jsx(PopoverContent, { side: 'top', className: "bg-secondary-300! space-y-1 p-1! rounded-lg!", children: _jsx(CommandWrapper, { children: _jsx(CommandList, { children: withdrawalNetworks?.map((item) => {
|
|
90
90
|
return (_jsx(CommandItem, { className: 'hover:bg-secondary-100 rounded-md p-1! cursor-pointer', value: item.network.name, onSelect: () => handleClick(item.network, item.token), children: _jsx("div", { className: `flex items-center justify-between w-full overflow-hidden`, children: _jsxs("div", { className: `gap-2 relative flex items-center w-full space-y-1`, children: [_jsx("div", { className: `h-6 w-6 shrink-0 mb-0!`, children: item.network.logo && (_jsx(ImageWithFallback, { src: item.network.logo, alt: "Project Logo", height: "24", width: "24", loading: "eager", className: "rounded-md object-contain" })) }), _jsx("div", { className: "flex justify-between w-full items-center", children: _jsx("span", { className: "flex items-center pb-0.5 text-sm font-medium text-primary-text pr-20", children: item.network.display_name }) })] }) }) }, item.network.name));
|
|
91
91
|
}) }) }) })] }));
|
|
92
|
-
return (_jsxs(_Fragment, { children: [_jsx(Widget.Content, { children: _jsx("div", { className: 'flex flex-col flex-1 h-full min-h-0 w-full space-y-3', children: (loading || exchangeSourceNetworksLoading) ? (_jsxs(_Fragment, { children: [_jsx(SkeletonStep, { number: 1 }), _jsx(SkeletonStep, { number: 2 }), _jsx(SkeletonStep, { number: 3 })] })) : (_jsxs(_Fragment, { children: [_jsx(Step, { number: 1, label: _jsxs("div", { className: "flex items-center justify-between gap-2 relative", children: [_jsx("span", { children: "Copy the deposit address" }), _jsx("div", { className: "relative", children: _jsxs(Popover, { open: showQR, onOpenChange: setShowQR, children: [_jsx(PopoverTrigger, { asChild: true, children: _jsx("div", { className: "relative", children: _jsx(QRIcon, { className: "bg-secondary-300 p-1 rounded-lg cursor-pointer hover:opacity-80" }) }) }), _jsx(PopoverContent, { side: "left", align: "start", className: "bg-secondary-300 p-2 rounded-xl z-50", children: _jsx("div", { className: "bg-white p-2 rounded-xl shadow-lg", children: _jsx(QRCodeSVG, { className: "rounded-lg", value: depositAddress || '', includeMargin: true, size: 160, level: "H" }) }) })] }) })] }), value: _jsx("span", { className: "cursor-pointer hover:underline min-h-[20px] block", children: depositAddress ? (_jsxs("span", { className: 'flex items-center gap-1', children: [shortenAddress(depositAddress), _jsx(CopyButton, { toCopy: depositAddress || '', className: 'flex' })] })) : (_jsx("span", { className: "inline-block w-28 bg-secondary-400 h-[20px] rounded animate-pulse" })) }) }), _jsx(Step, { number: 2, label: _jsxs("span", { children: [_jsxs("span", { className: 'inline-flex items-center', children: [_jsx("span", { children: "Send" }), requestAmount] }), _jsx("span", { children: "via" }), swapBasicData?.source_exchange ? (_jsx("span", { className: "inline-flex items-center align-bottom", children: sourceNetworkPopover })) : (_jsxs("span", { className: "inline-flex items-center gap-1 mx-1 h-6 align-bottom", children: [_jsx(ImageWithFallback, { src: swapBasicData?.source_network?.logo, alt: "Project Logo", height: "16", width: "16", loading: "eager", className: "rounded-sm object-contain" }), _jsx("span", { children: swapBasicData?.source_network?.display_name })] })), _jsx("span", { children: "to the deposit address" })] }) }), _jsx(Step, { number: 3, label: _jsxs("span", { className: 'flex items-center gap-1', children: [_jsx("span", { children: "Receive" }), " ", _jsx("span", { children: truncateDecimals(quote?.receive_amount ?? 0, swapBasicData?.destination_token?.precision) }), " ", _jsx("span", { children: swapBasicData?.destination_token?.symbol }), " ", _jsx("span", { children: "at" }), " ", _jsx("span", { children: destinationNetwork })] }), value: _jsxs("span", { className: "cursor-pointer hover:underline flex items-center gap-1", children: [WalletIcon ? (_jsx(WalletIcon, { className: "w-4 h-4 p-0.5 bg-white rounded-sm" })) : addressProviderIcon ? (_jsx(ImageWithFallback, { alt: "Partner logo", className: "h-4 w-4 rounded-md object-contain", src: partner.logo, width: "36", height: "36" })) : (_jsx(AddressIcon, { className: "h-4 w-4", address: swapBasicData.destination_address, size: 36, rounded: "4px" })), ((swapBasicData?.destination_network && isValidAddress(swapBasicData?.destination_address, swapBasicData?.destination_network)) ?
|
|
92
|
+
return (_jsxs(_Fragment, { children: [_jsx(Widget.Content, { children: _jsx("div", { className: 'flex flex-col flex-1 h-full min-h-0 w-full space-y-3', children: (loading || exchangeSourceNetworksLoading) ? (_jsxs(_Fragment, { children: [_jsx(SkeletonStep, { number: 1 }), _jsx(SkeletonStep, { number: 2 }), _jsx(SkeletonStep, { number: 3 })] })) : (_jsxs(_Fragment, { children: [_jsx(Step, { number: 1, label: _jsxs("div", { className: "flex items-center justify-between gap-2 relative", children: [_jsx("span", { children: "Copy the deposit address" }), _jsx("div", { className: "relative", children: _jsxs(Popover, { open: showQR, onOpenChange: setShowQR, children: [_jsx(PopoverTrigger, { asChild: true, children: _jsx("div", { className: "relative", children: _jsx(QRIcon, { className: "bg-secondary-300 p-1 rounded-lg cursor-pointer hover:opacity-80 fill-primary-text text-primary-text" }) }) }), _jsx(PopoverContent, { side: "left", align: "start", className: "bg-secondary-300 p-2 rounded-xl z-50", children: _jsx("div", { className: "bg-white p-2 rounded-xl shadow-lg", children: _jsx(QRCodeSVG, { className: "rounded-lg", value: depositAddress || '', includeMargin: true, size: 160, level: "H" }) }) })] }) })] }), value: _jsx("span", { className: "cursor-pointer hover:underline min-h-[20px] block", children: depositAddress ? (_jsxs("span", { className: 'flex items-center gap-1', children: [shortenAddress(depositAddress), _jsx(CopyButton, { toCopy: depositAddress || '', className: 'flex' })] })) : (_jsx("span", { className: "inline-block w-28 bg-secondary-400 h-[20px] rounded animate-pulse" })) }) }), _jsx(Step, { number: 2, label: _jsxs("span", { children: [_jsxs("span", { className: 'inline-flex items-center', children: [_jsx("span", { children: "Send" }), requestAmount] }), _jsx("span", { children: "via" }), swapBasicData?.source_exchange ? (_jsx("span", { className: "inline-flex items-center align-bottom", children: sourceNetworkPopover })) : (_jsxs("span", { className: "inline-flex items-center gap-1 mx-1 h-6 align-bottom", children: [_jsx(ImageWithFallback, { src: swapBasicData?.source_network?.logo, alt: "Project Logo", height: "16", width: "16", loading: "eager", className: "rounded-sm object-contain" }), _jsx("span", { children: swapBasicData?.source_network?.display_name })] })), _jsx("span", { children: "to the deposit address" })] }) }), _jsx(Step, { number: 3, label: _jsxs("span", { className: 'flex items-center gap-1', children: [_jsx("span", { children: "Receive" }), " ", _jsx("span", { children: truncateDecimals(quote?.receive_amount ?? 0, swapBasicData?.destination_token?.precision) }), " ", _jsx("span", { children: swapBasicData?.destination_token?.symbol }), " ", _jsx("span", { children: "at" }), " ", _jsx("span", { children: destinationNetwork })] }), value: _jsxs("span", { className: "cursor-pointer hover:underline flex items-center gap-1", children: [WalletIcon ? (_jsx(WalletIcon, { className: "w-4 h-4 p-0.5 bg-white rounded-sm" })) : addressProviderIcon ? (_jsx(ImageWithFallback, { alt: "Partner logo", className: "h-4 w-4 rounded-md object-contain", src: partner.logo, width: "36", height: "36" })) : (_jsx(AddressIcon, { className: "h-4 w-4", address: swapBasicData.destination_address, size: 36, rounded: "4px" })), ((swapBasicData?.destination_network && isValidAddress(swapBasicData?.destination_address, swapBasicData?.destination_network)) ?
|
|
93
93
|
_jsx("div", { className: "text-sm group/addressItem text-secondary-text", children: _jsx(ExtendedAddress, { address: addressFormat(swapBasicData?.destination_address, swapBasicData?.destination_network), network: swapBasicData?.destination_network, shouldShowChevron: false }) })
|
|
94
94
|
:
|
|
95
95
|
_jsx("p", { className: "text-sm text-secondary-text", children: shortenAddress(swapBasicData?.destination_address) }))] }) })] })) }) }), _jsx(Widget.Footer, { sticky: type == 'widget', children: _jsx(SubmitButton, { onClick: handleCopy, children: copied ? 'Copied!' : 'Copy deposit address' }) })] }));
|
|
@@ -14,6 +14,6 @@ const NotFound = ({ swapId }) => {
|
|
|
14
14
|
show();
|
|
15
15
|
updateWithProps();
|
|
16
16
|
}, [boot, show, updateWithProps]);
|
|
17
|
-
return _jsxs(MessageComponent, { children: [_jsxs(MessageComponent.Content, { center: true, children: [_jsxs(MessageComponent.Header, { className: "mb-3", children: [_jsx("div", { className: "mx-auto mb-4 flex h-16 w-16 items-center justify-center rounded-full bg-red-600/20", children: _jsx(NotFoundIcon, {}) }), _jsx("h1", { className: "text-center text-2xl font-semibold text-
|
|
17
|
+
return _jsxs(MessageComponent, { children: [_jsxs(MessageComponent.Content, { center: true, children: [_jsxs(MessageComponent.Header, { className: "mb-3", children: [_jsx("div", { className: "mx-auto mb-4 flex h-16 w-16 items-center justify-center rounded-full bg-red-600/20", children: _jsx(NotFoundIcon, {}) }), _jsx("h1", { className: "text-center text-2xl font-semibold text-primary-text", children: "Swap not found" })] }), _jsx(MessageComponent.Description, { children: _jsxs("p", { className: "mx-auto text-center text-base font-normal leading-5 text-secondary-text px-9", children: [_jsx("span", { children: "We couldn't find a swap with this link. If you believe there's an issue, please" }), _jsx("button", { type: "button", onClick: startIntercom, className: "mx-1 underline decoration-gray-400 underline-offset-2 hover:decoration-gray-200 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-offset-[#0f1420] focus:ring-gray-400 rounded", children: _jsx("span", { children: "contact our support" }) }), _jsx("span", { children: "and we'll help you fix it." })] }) })] }), _jsx(MessageComponent.Buttons, { children: _jsx("div", { className: "flex w-full text-primary-text text-base space-x-2", children: _jsxs("button", { onClick: triggerBackClickCallback, type: "button", className: "w-full inline-flex items-center justify-center gap-2 rounded-xl bg-secondary-300 px-5 py-4 text-base font-semibold leading-6 hover:bg-secondary-400 focus:outline-none transition", children: [_jsx(Home, { className: "h-5 w-5", "aria-hidden": "true" }), _jsx("span", { children: "Back to app" })] }) }) })] });
|
|
18
18
|
};
|
|
19
19
|
export default NotFound;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
3
|
import LinkWithIcon from '../../../../../components/Common/LinkWithIcon';
|
|
4
|
-
import
|
|
4
|
+
import { useCallback, useEffect, useRef } from 'react';
|
|
5
5
|
import { Widget } from '../../../../../components/Widget/Index';
|
|
6
6
|
import SwapSummary from '../Summary';
|
|
7
7
|
import LayerSwapApiClient, { BackendTransactionStatus, TransactionType, TransactionStatus } from '../../../../../lib/apiClients/layerSwapApiClient';
|
|
@@ -17,13 +17,11 @@ import CountdownTimer from '../../../../../components/Common/CountDownTimer';
|
|
|
17
17
|
import useSWR from 'swr';
|
|
18
18
|
import { useIntercom } from 'react-use-intercom';
|
|
19
19
|
import logError from '../../../../../lib/logError';
|
|
20
|
-
import SubmitButton from '../../../../../components/Buttons/submitButton';
|
|
21
20
|
// import { posthog } from 'posthog-js';
|
|
22
21
|
import Steps from './StepsComponent';
|
|
23
22
|
const Processing = ({ swapBasicData, swapDetails, quote, refuel }) => {
|
|
24
23
|
const { boot, show, update, showNewMessages } = useIntercom();
|
|
25
24
|
const { setSwapTransaction, swapTransactions } = useSwapTransactionStore();
|
|
26
|
-
const [showSupportButton, setShowSupportButton] = React.useState(false);
|
|
27
25
|
const { source_network, destination_network, destination_token, } = swapBasicData;
|
|
28
26
|
const { fail_reason } = swapDetails;
|
|
29
27
|
const updateWithProps = () => update({ customAttributes: { swapId: swapDetails.id } });
|
|
@@ -103,7 +101,7 @@ const Processing = ({ swapBasicData, swapDetails, quote, refuel }) => {
|
|
|
103
101
|
const truncatedRefuelAmount = refuel && truncateDecimals(refuel.amount, refuel.token?.precision);
|
|
104
102
|
const progressStatuses = getProgressStatuses(swapDetails, refuel, inputTxStatusData?.data?.status.toLowerCase());
|
|
105
103
|
const stepStatuses = progressStatuses.stepStatuses;
|
|
106
|
-
const countDownTimer = quote?.avg_completion_time && _jsx("div", { className: 'text-primary-text', children: _jsx(CountdownTimer, { initialTime: String(quote?.avg_completion_time), swapDetails: swapDetails
|
|
104
|
+
const countDownTimer = quote?.avg_completion_time && _jsx("div", { className: 'text-primary-text', children: _jsx(CountdownTimer, { initialTime: String(quote?.avg_completion_time), swapDetails: swapDetails }) });
|
|
107
105
|
const progressStates = {
|
|
108
106
|
"input_transfer": {
|
|
109
107
|
upcoming: {
|
|
@@ -243,7 +241,7 @@ const Processing = ({ swapBasicData, swapDetails, quote, refuel }) => {
|
|
|
243
241
|
_jsx("span", { className: "text-sm block text-secondary-text", children: progressStatuses.generalStatus.subTitle }), swapOutputTransaction?.status != BackendTransactionStatus.Completed && (swapStatus !== SwapStatus.Cancelled && swapStatus !== SwapStatus.Expired && swapStatus !== SwapStatus.Failed && swapStatus !== SwapStatus.PendingRefund && swapStatus !== SwapStatus.Refunded) &&
|
|
244
242
|
_jsx("span", { className: 'text-sm block space-x-1 text-secondary-text', children: _jsx("span", { children: countDownTimer }) })] })] }) }), _jsxs("div", { className: 'pt-4', children: [swapStatus != SwapStatus.Cancelled && swapStatus != SwapStatus.Expired && currentSteps.find(x => x.status != null) &&
|
|
245
243
|
_jsx("div", { className: 'flex flex-col justify-center space-y-4', children: _jsx(Steps, { steps: currentSteps }) }), ([SwapStatus.Expired, SwapStatus.Cancelled, SwapStatus.UserTransferDelayed].includes(swapStatus)) &&
|
|
246
|
-
_jsx(Failed, {})
|
|
244
|
+
_jsx(Failed, {})] })] })] }) }));
|
|
247
245
|
};
|
|
248
246
|
const resolveSwapInputTxStatus = (swapInputTransaction, inputTxStatusFromApi) => {
|
|
249
247
|
if (swapInputTransaction) {
|
|
@@ -32,6 +32,6 @@ const Summary = (props) => {
|
|
|
32
32
|
_jsx(_Fragment, {})] }) }));
|
|
33
33
|
};
|
|
34
34
|
const RouteTokenPair = ({ route, token }) => {
|
|
35
|
-
return (_jsxs("div", { className: "flex grow gap-4 text-left items-center md:text-base relative col-span-6 align-center", children: [_jsxs("div", { className: "inline-flex items-center relative shrink-0 mb-1.5", children: [_jsx(ImageWithFallback, { src: token.logo, alt: "Token Logo", height: "28", width: "28", loading: "eager", fetchPriority: "high", className: "rounded-full object-contain" }), _jsx(ImageWithFallback, { src: route.logo, alt: "Route Logo", height: "16", width: "16", loading: "eager", fetchPriority: "high", className: "absolute -right-1.5 -bottom-1.5 object-contain rounded-md border-1 border-secondary-300" })] }), _jsxs("div", { className: "flex flex-col font-medium text-primary-text overflow-hidden", children: [_jsx("span", { className: "leading-4 text-sm ", children: token.symbol }), _jsx("div", { className: "flex items-center gap-1 leading-3 text-sm sm:text-base", children: _jsx("p", { className: "text-secondary-text text-sm truncate whitespace-nowrap", children: route.display_name }) })] })] }));
|
|
35
|
+
return (_jsxs("div", { className: "flex grow gap-4 text-left items-center md:text-base relative col-span-6 align-center", children: [_jsxs("div", { className: "inline-flex items-center relative shrink-0 mb-1.5", children: [_jsx(ImageWithFallback, { src: token.logo, alt: "Token Logo", height: "28", width: "28", loading: "eager", fetchPriority: "high", className: "rounded-full object-contain" }), _jsx(ImageWithFallback, { src: route.logo, alt: "Route Logo", height: "16", width: "16", loading: "eager", fetchPriority: "high", className: "absolute -right-1.5 -bottom-1.5 object-contain rounded-md border-1 border-secondary-300" })] }), _jsxs("div", { className: "flex flex-col font-medium text-primary-text overflow-hidden", children: [_jsx("span", { className: "leading-4 text-sm p-[1.75px]", children: token.symbol }), _jsx("div", { className: "flex items-center gap-1 leading-3 text-sm sm:text-base", children: _jsx("p", { className: "text-secondary-text text-sm truncate whitespace-nowrap p-[1.75px]", children: route.display_name }) })] })] }));
|
|
36
36
|
};
|
|
37
37
|
export default Summary;
|
|
@@ -13,7 +13,7 @@ export const WalletTransferAction = ({ swapData, swapId, refuel, onWalletWithdra
|
|
|
13
13
|
const { provider, wallets } = useWallet(source_network, "withdrawal");
|
|
14
14
|
const selectedSourceAccount = useSelectedAccount("from", source_network?.name);
|
|
15
15
|
useEffect(() => {
|
|
16
|
-
const selectedWallet = wallets.find(w => w.id === selectedSourceAccount?.id && w.
|
|
16
|
+
const selectedWallet = wallets.find(w => w.id === selectedSourceAccount?.id && w.addresses.some(a => a.toLowerCase() === selectedSourceAccount.address.toLowerCase()));
|
|
17
17
|
if (selectedSourceAccount && selectedWallet) {
|
|
18
18
|
provider?.switchAccount(selectedWallet, selectedSourceAccount.address);
|
|
19
19
|
}
|
|
@@ -147,7 +147,7 @@ const TransactionMessage = ({ error, isLoading }) => {
|
|
|
147
147
|
// where: 'swapWithdrawalError',
|
|
148
148
|
// severity: 'error',
|
|
149
149
|
// });
|
|
150
|
-
return _jsx(TransactionMessages.
|
|
150
|
+
return _jsx(TransactionMessages.UnexpectedErrorMessage, { message: error.message });
|
|
151
151
|
}
|
|
152
152
|
else
|
|
153
153
|
return _jsx(_Fragment, {});
|
|
@@ -25,7 +25,7 @@ const WaletMismatchMessage = ({ address }) => {
|
|
|
25
25
|
const SwapErrorMessage = ({ message }) => {
|
|
26
26
|
return _jsx(WalletMessage, { status: "error", header: 'API error', details: message });
|
|
27
27
|
};
|
|
28
|
-
const
|
|
28
|
+
const UnexpectedErrorMessage = ({ message }) => {
|
|
29
29
|
return _jsx(WalletMessage, { status: "error", header: 'Unexpected error', details: message, showInModal: true });
|
|
30
30
|
};
|
|
31
31
|
const ActionMessages = {
|
|
@@ -36,7 +36,7 @@ const ActionMessages = {
|
|
|
36
36
|
WaletMismatchMessage,
|
|
37
37
|
TransactionFailedMessage,
|
|
38
38
|
SwapErrorMessage,
|
|
39
|
-
|
|
39
|
+
UnexpectedErrorMessage,
|
|
40
40
|
DifferentAccountsNotAllowedError
|
|
41
41
|
};
|
|
42
42
|
export var TransactionMessageType;
|
|
@@ -47,7 +47,7 @@ export var TransactionMessageType;
|
|
|
47
47
|
TransactionMessageType["TransactionRejected"] = "TransactionRejected";
|
|
48
48
|
TransactionMessageType["WaletMismatch"] = "WaletMismatch";
|
|
49
49
|
TransactionMessageType["TransactionFailed"] = "TransactionFailed";
|
|
50
|
-
TransactionMessageType["
|
|
50
|
+
TransactionMessageType["UnexpectedErrorMessage"] = "UnexpectedErrorMessage";
|
|
51
51
|
TransactionMessageType["DifferentAccountsNotAllowedError"] = "DifferentAccountsNotAllowedError";
|
|
52
52
|
})(TransactionMessageType || (TransactionMessageType = {}));
|
|
53
53
|
export default ActionMessages;
|
|
@@ -34,7 +34,7 @@ const HistorySummary = ({ swapResponse, wallets, className }) => {
|
|
|
34
34
|
sourceAccountAddress = shortenEmail(exchange_account_name, 10);
|
|
35
35
|
}
|
|
36
36
|
const destAddress = (hideAddress && hideTo && account) ? account : destination_address;
|
|
37
|
-
return (source_token && _jsxs(_Fragment, { children: [_jsx("div", { className: `${className || ""} bg-secondary-500 relative z-10 w-full rounded-xl overflow-hidden hover:bg-secondary-400`, children: _jsxs("div", { className: "grid grid-cols-12 items-center gap-2 relative z-50", children: [_jsxs("div", { className: "col-span-6 flex items-center gap-2 p-3", children: [_jsxs("div", { className: "w-8 h-8 relative", children: [_jsx(ImageWithFallback, { src: source_token.logo, alt: `${source_token.symbol} logo`, width: 30, height: 30, className: "rounded-full" }), source?.logo && (_jsx(ImageWithFallback, { src: source.logo, alt: `${source.display_name} badge`, width: 18, height: 18, className: "absolute -bottom-1 -right-1 h-[18px] w-[18px] rounded-md" }))] }), _jsxs("div", { className: "flex min-w-0 flex-col items-start space-y-0.5", children: [_jsxs("span", { className: "text-
|
|
37
|
+
return (source_token && _jsxs(_Fragment, { children: [_jsx("div", { className: `${className || ""} bg-secondary-500 relative z-10 w-full rounded-xl overflow-hidden hover:bg-secondary-400`, children: _jsxs("div", { className: "grid grid-cols-12 items-center gap-2 relative z-50", children: [_jsxs("div", { className: "col-span-6 flex items-center gap-2 p-3", children: [_jsxs("div", { className: "w-8 h-8 relative", children: [_jsx(ImageWithFallback, { src: source_token.logo, alt: `${source_token.symbol} logo`, width: 30, height: 30, className: "rounded-full" }), source?.logo && (_jsx(ImageWithFallback, { src: source.logo, alt: `${source.display_name} badge`, width: 18, height: 18, className: "absolute -bottom-1 -right-1 h-[18px] w-[18px] rounded-md" }))] }), _jsxs("div", { className: "flex min-w-0 flex-col items-start space-y-0.5", children: [_jsxs("span", { className: "text-primary-text text-lg leading-5 flex min-w-0", children: [_jsxs(Tooltip, { children: [_jsx(TooltipTrigger, { asChild: true, children: _jsx("span", { className: "truncate overflow-hidden whitespace-nowrap max-w-[100px]", children: requested_amount.toLocaleString('en-US', { maximumFractionDigits: 20 }) }) }), _jsx(TooltipContent, { children: requested_amount })] }), "\u00A0", source_token.symbol] }), _jsx("span", { className: "text-secondary-text text-sm leading-[14px]", children: source?.display_name || "" })] })] }), _jsx("div", { className: "absolute left-1/2 top-1/2 -translate-x-1/2 -translate-y-1/2 pointer-events-none -z-10", children: _jsx("div", { className: "h-7 w-6 rounded-md bg-secondary-400 flex items-center justify-center", children: _jsx(ChevronRightIcon, { className: "h-5 w-5 text-primary-text" }) }) }), _jsxs("div", { className: "col-span-6 flex items-center justify-end gap-2 bg-secondary-400 p-3 rounded-xl", children: [_jsxs("div", { className: "flex min-w-0 flex-col items-end space-y-0.5", children: [_jsxs("span", { className: "text-primary-text text-lg leading-5 flex min-w-0", children: [_jsxs(Tooltip, { children: [_jsx(TooltipTrigger, { asChild: true, children: _jsx("span", { className: "truncate overflow-hidden whitespace-nowrap max-w-[100px]", children: calculatedReceiveAmount.toLocaleString('en-US', { maximumFractionDigits: 20 }) }) }), _jsx(TooltipContent, { children: calculatedReceiveAmount })] }), "\u00A0", destination_token.symbol] }), _jsx("span", { className: "text-secondary-text text-sm leading-[14px]", children: destination?.display_name || "" })] }), _jsxs("div", { className: "relative w-8 h-8", children: [_jsx(ImageWithFallback, { src: destination_token.logo, alt: `${destination_token.symbol} logo`, width: 30, height: 30, className: "rounded-full" }), destination?.logo && (_jsx(ImageWithFallback, { src: destination.logo, alt: `${destination.display_name} badge`, width: 18, height: 18, className: "absolute -bottom-1 -right-1 h-[18px] w-[18px] rounded-md" }))] })] })] }) }), swap.status !== SwapStatus.Completed &&
|
|
38
38
|
_jsx("div", { className: "-mt-2 z-0 relative", children: _jsx(StatusIcon, { swap: swap, withBg: true }) })] }));
|
|
39
39
|
};
|
|
40
40
|
export default HistorySummary;
|
|
@@ -40,7 +40,7 @@ const IconComponentWrapper = ({ children, withBg, classNames }) => {
|
|
|
40
40
|
return (_jsx("div", { className: `inline-flex items-center gap-1 font-bold ${classNames} ${withBg ? 'pt-3.5 py-1.5 w-full justify-center rounded-b-2xl' : 'bg-transparent!'}`, children: children }));
|
|
41
41
|
};
|
|
42
42
|
const GreenComponent = ({ text, withBg, short }) => {
|
|
43
|
-
return (_jsxs(IconComponentWrapper, { withBg: withBg, classNames: "bg-
|
|
43
|
+
return (_jsxs(IconComponentWrapper, { withBg: withBg, classNames: "bg-success-background text-success-foreground text-sm", children: [_jsx(CheckIcon, { className: "fill-success-foreground text-success-foreground" }), !short && _jsx("p", { children: text })] }));
|
|
44
44
|
};
|
|
45
45
|
const PrimaryComponent = ({ text, withBg, short }) => {
|
|
46
46
|
return (_jsxs(IconComponentWrapper, { withBg: withBg, classNames: "bg-primary-900 text-primary-500 text-sm", children: [_jsxs("div", { className: 'relative', children: [_jsx("div", { className: 'absolute top-0.5 left-0.5 w-3 h-3 opacity-40 bg bg-primary rounded-full animate-ping' }), _jsx("div", { className: 'relative top-0 left-0 w-4 h-4 scale-75 bg bg-primary rounded-full' })] }), !short && _jsx("p", { children: text })] }));
|
|
@@ -52,8 +52,8 @@ const SecondaryComponent = ({ text, withBg, short }) => {
|
|
|
52
52
|
_jsx("p", { children: text }) }));
|
|
53
53
|
};
|
|
54
54
|
const YellowComponent = ({ text, withBg, short }) => {
|
|
55
|
-
return (_jsxs(IconComponentWrapper, { withBg: withBg, classNames: "bg-
|
|
55
|
+
return (_jsxs(IconComponentWrapper, { withBg: withBg, classNames: "bg-warning-background text-warning-foreground text-sm", children: [_jsx("svg", { xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", viewBox: "0 0 60 60", fill: "none", children: _jsx("circle", { cx: "30", cy: "30", r: "30", fill: "#DF8B16" }) }), !short && _jsx("p", { className: "text-sm font-bold", children: text })] }));
|
|
56
56
|
};
|
|
57
57
|
const RedComponenet = ({ text, withBg, short }) => {
|
|
58
|
-
return (_jsxs(IconComponentWrapper, { withBg: withBg, classNames: "bg-
|
|
58
|
+
return (_jsxs(IconComponentWrapper, { withBg: withBg, classNames: "bg-error-background text-error-foreground text-sm", children: [_jsx("svg", { xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", viewBox: "0 0 60 60", fill: "none", className: "fill-error-foreground", children: _jsx("circle", { cx: "30", cy: "30", r: "30", fill: "currentColor" }) }), !short && _jsx("p", { children: text })] }));
|
|
59
59
|
};
|
|
@@ -95,7 +95,7 @@ const SwapDetails = ({ swapResponse }) => {
|
|
|
95
95
|
_jsxs("a", { target: "_blank", href: output_tx_explorer_template?.replace("{0}", swapOutputTransaction.transaction_hash), className: 'flex items-center space-x-1', rel: "noopener noreferrer", children: [_jsx("span", { children: shortenAddress(swapOutputTransaction.transaction_hash) }), _jsx(ExternalLink, { className: 'h-4' })] }))
|
|
96
96
|
:
|
|
97
97
|
_jsx("span", { children: "-" })] }) })] }) }) }), swap.status === SwapStatus.Completed &&
|
|
98
|
-
_jsx(SecondaryButton, { type: 'button', size: 'xl', onClick: handleRepeatSwap, isLoading: isRepeatLoading, children: _jsx("p", { children: isRepeatLoading ? 'Creating Swap...' : 'Repeat Swap' }) }), (swap.status !== SwapStatus.Completed && swap.status !== SwapStatus.Expired && swap.status !== SwapStatus.Failed) &&
|
|
98
|
+
_jsx(SecondaryButton, { type: 'button', size: 'xl', onClick: handleRepeatSwap, isLoading: isRepeatLoading, children: _jsx("p", { className: 'text-primary-text', children: isRepeatLoading ? 'Creating Swap...' : 'Repeat Swap' }) }), (swap.status !== SwapStatus.Completed && swap.status !== SwapStatus.Expired && swap.status !== SwapStatus.Failed) &&
|
|
99
99
|
_jsx(SubmitButton, { type: 'button', onClick: handleViewCompleteSwap, children: _jsx("p", { children: swap.status == SwapStatus.LsTransferPending ? "View Swap" : "Complete Swap" }) })] }) })] }));
|
|
100
100
|
};
|
|
101
101
|
export default SwapDetails;
|
|
@@ -145,7 +145,7 @@ const LoadingConnect = ({ onRetry, selectedConnector, connectionError }) => {
|
|
|
145
145
|
:
|
|
146
146
|
_jsx("div", { className: "loader text-[3px]! place-self-center" }), _jsx("div", { className: "p-3 bg-secondary-700 rounded-lg z-10", children: _jsx(ConnectorIcon, { className: "w-11 h-auto" }) })] }) }), !connectionError &&
|
|
147
147
|
_jsxs("div", { className: "py-1 text-center", children: [_jsx("p", { className: "text-base font-medium", children: isMobilePlatform ? 'Approve connection in your wallet' : 'Approve connection in your wallet pop-up' }), _jsx("p", { className: "text-sm font-normal text-secondary-text", children: isMobilePlatform ? "Don't see the request? Check your wallet app." : "Don't see a pop-up? Check your browser windows." })] })] }), connectionError &&
|
|
148
|
-
_jsxs("div", { className: `bg-secondary-500 rounded-lg flex flex-col gap-1.5 items-center p-3 w-full absolute bottom-0`, children: [_jsxs("div", { className: "flex w-full gap-1 text-sm text-secondary-text justify-start", children: [_jsx(CircleX, { className: "w-5 h-5 stroke-primary-500 mr-1 mt-0.5 flex-shrink-0" }), _jsxs("div", { className: 'flex flex-col gap-1', children: [_jsx("p", { className: 'text-base text-
|
|
148
|
+
_jsxs("div", { className: `bg-secondary-500 rounded-lg flex flex-col gap-1.5 items-center p-3 w-full absolute bottom-0`, children: [_jsxs("div", { className: "flex w-full gap-1 text-sm text-secondary-text justify-start", children: [_jsx(CircleX, { className: "w-5 h-5 stroke-primary-500 mr-1 mt-0.5 flex-shrink-0" }), _jsxs("div", { className: 'flex flex-col gap-1', children: [_jsx("p", { className: 'text-base text-primary-text', children: "Failed to connect" }), _jsx("p", { className: "text-sm font-normal", children: connectionError })] })] }), _jsxs("button", { type: "button", className: "flex gap-1.5 items-center justify-center bg-secondary-400 w-full text-primary-text p-4 border-none rounded-lg cursor-pointer text-sm font-medium leading-4", onClick: onRetry, children: [_jsx(RotateCw, { className: 'h-4 w-4' }), _jsx("span", { children: "Try again" })] })] })] }));
|
|
149
149
|
};
|
|
150
150
|
const ProviderPicker = ({ providers, selectedProviderName, setSelectedProviderName }) => {
|
|
151
151
|
const values = providers.map(p => p.name);
|
|
@@ -55,6 +55,6 @@ const Footer = ({ children, hidden, sticky, showPoweredBy }) => {
|
|
|
55
55
|
}), children: _jsx("a", { target: "_blank", href: 'https://layerswap.io/', className: "flex items-center gap-1.5 w-fit", children: _jsx(PoweredBy, { className: "fill-secondary-text text-secondary-text" }) }) })] }));
|
|
56
56
|
};
|
|
57
57
|
const PoweredBy = (props) => {
|
|
58
|
-
return (_jsxs("svg", { xmlns: "http://www.w3.org/2000/svg", width: "152", height: "14", viewBox: "0 0 152 14", fill: "currentColor", ...props, children: [_jsx("path", { d: "M92.9333 11.2374C92.7677 11.2374 92.6334 11.0985 92.6334 10.9271V3.21025C92.6334 3.03884 92.7677 2.8999 92.9333 2.8999H94.105C94.2707 2.8999 94.4048 3.03884 94.4048 3.21025V9.68817H97.8308C97.9962 9.68817 98.1306 9.8271 98.1306 9.99851V10.9271C98.1306 11.0985 97.9962 11.2374 97.8308 11.2374H92.9333Z", fill: "#A3ADC2" }), _jsx("path", { d: "M101.216 11.5248C100.784 11.5248 100.403 11.4423 100.072 11.2772C99.7419 11.1121 99.4784 10.888 99.2819 10.605C99.0929 10.322 98.9987 10.0036 98.9987 9.6499C98.9987 9.23323 99.1088 8.89913 99.329 8.64757C99.5492 8.396 99.9069 8.21911 100.403 8.11693C100.898 8.00685 101.555 7.95182 102.372 7.95182H102.596C102.707 7.95182 102.797 7.86208 102.797 7.75137C102.797 7.40548 102.718 7.16176 102.561 7.02027C102.404 6.8709 102.136 6.79622 101.759 6.79622C101.445 6.79622 101.11 6.8473 100.756 6.94952C100.515 7.01544 100.273 7.1063 100.031 7.22213C99.8621 7.30292 99.6558 7.23205 99.5853 7.05883L99.3304 6.43081C99.2746 6.29373 99.3235 6.13523 99.4535 6.06499C99.6093 5.98119 99.7838 5.9026 99.9777 5.82927C100.277 5.71922 100.587 5.63668 100.91 5.58163C101.232 5.51874 101.539 5.4873 101.83 5.4873C102.726 5.4873 103.395 5.69171 103.835 6.10048C104.276 6.50142 104.496 7.12638 104.496 7.97542V11.0857C104.496 11.2566 104.357 11.3951 104.186 11.3951H103.142C102.971 11.3951 102.833 11.2566 102.833 11.0857V10.5225C102.715 10.8291 102.514 11.0728 102.231 11.2536C101.956 11.4344 101.617 11.5248 101.216 11.5248ZM101.617 10.3338C101.948 10.3338 102.227 10.2198 102.455 9.99186C102.683 9.76387 102.797 9.46906 102.797 9.10745C102.797 8.9772 102.691 8.87161 102.561 8.87161H102.384C101.779 8.87161 101.35 8.92664 101.098 9.03669C100.847 9.13891 100.721 9.31972 100.721 9.57914C100.721 9.79925 100.796 9.98005 100.945 10.1216C101.102 10.2631 101.326 10.3338 101.617 10.3338Z", fill: "#A3ADC2" }), _jsx("path", { d: "M106.618 13.2498C106.4 13.2498 106.254 13.0217 106.345 12.8207L107.227 10.8551L105.1 5.91204C105.013 5.71154 105.159 5.4873 105.375 5.4873H106.531C106.655 5.4873 106.765 5.56354 106.81 5.67953L108.143 9.0967L109.519 5.67641C109.565 5.56208 109.675 5.4873 109.797 5.4873H110.85C111.067 5.4873 111.212 5.71306 111.124 5.91375L107.993 13.0691C107.945 13.179 107.837 13.2498 107.718 13.2498H106.618Z", fill: "#A3ADC2" }), _jsx("path", { d: "M114.935 11.5248C114.208 11.5248 113.582 11.403 113.056 11.1593C112.538 10.9077 112.137 10.5579 111.853 10.1098C111.577 9.65382 111.44 9.11923 111.44 8.50605C111.44 7.90861 111.573 7.38581 111.84 6.93771C112.116 6.48177 112.488 6.12799 112.955 5.87643C113.432 5.617 113.978 5.4873 114.597 5.4873C115.49 5.4873 116.2 5.7546 116.726 6.28915C117.252 6.81587 117.515 7.53126 117.515 8.4353V8.57395C117.515 8.74486 117.368 8.8834 117.187 8.8834H113.243C113.31 9.33936 113.486 9.67346 113.77 9.88573C114.062 10.0901 114.463 10.1923 114.973 10.1923C115.306 10.1923 115.645 10.1452 115.987 10.0508C116.186 9.99595 116.374 9.92382 116.551 9.83442C116.742 9.73744 116.993 9.80285 117.073 9.99312L117.323 10.5868C117.378 10.716 117.335 10.865 117.21 10.9393C116.942 11.0985 116.631 11.2307 116.275 11.3361C115.833 11.4619 115.386 11.5248 114.935 11.5248ZM114.672 6.6665C114.271 6.6665 113.945 6.78049 113.695 7.00846C113.452 7.23646 113.302 7.55483 113.243 7.96363H115.95C115.899 7.09887 115.474 6.6665 114.672 6.6665Z", fill: "#A3ADC2" }), _jsx("path", { d: "M118.688 11.2373C118.52 11.2373 118.383 11.1028 118.383 10.9369V5.91687C118.383 5.75094 118.52 5.61645 118.688 5.61645H119.795C119.964 5.61645 120.1 5.75094 120.1 5.91687V6.58952C120.37 5.93316 120.95 5.57067 121.839 5.50198L122.047 5.48801C122.214 5.47674 122.359 5.60129 122.371 5.76649L122.433 6.63208C122.445 6.79351 122.325 6.935 122.162 6.95205L121.468 7.02454C120.602 7.10847 120.169 7.54349 120.169 8.32956V10.9369C120.169 11.1028 120.033 11.2373 119.865 11.2373H118.688Z", fill: "#A3ADC2" }), _jsx("path", { d: "M125.27 11.5248C124.741 11.5248 124.249 11.4659 123.793 11.3479C123.437 11.2557 123.128 11.137 122.866 10.9919C122.74 10.9221 122.693 10.7729 122.743 10.6413L122.962 10.0656C123.032 9.8815 123.259 9.80634 123.442 9.89199C123.653 9.99072 123.88 10.0751 124.123 10.1452C124.513 10.2473 124.9 10.2985 125.283 10.2985C125.624 10.2985 125.877 10.2473 126.039 10.1452C126.202 10.0351 126.283 9.89359 126.283 9.72062C126.283 9.4455 126.076 9.27253 125.661 9.2018L124.379 8.97775C123.867 8.89126 123.476 8.71437 123.207 8.44711C122.939 8.17982 122.805 7.82999 122.805 7.39762C122.805 7.00454 122.919 6.6665 123.146 6.3835C123.374 6.10048 123.688 5.88038 124.086 5.72314C124.485 5.56593 124.945 5.4873 125.466 5.4873C125.897 5.4873 126.316 5.54233 126.723 5.65238C127.045 5.73338 127.332 5.85387 127.583 6.01382C127.7 6.08827 127.738 6.23324 127.687 6.35905L127.461 6.91694C127.384 7.1061 127.142 7.17397 126.955 7.0799C126.795 6.9992 126.62 6.92821 126.43 6.86698C126.096 6.7569 125.783 6.70187 125.49 6.70187C125.124 6.70187 124.859 6.76085 124.696 6.87876C124.534 6.98881 124.452 7.13033 124.452 7.30327C124.452 7.57842 124.644 7.75137 125.026 7.82212L126.308 8.04617C126.837 8.13266 127.24 8.3056 127.516 8.56503C127.793 8.81659 127.931 9.16247 127.931 9.60271C127.931 10.208 127.687 10.6797 127.199 11.0178C126.711 11.3558 126.068 11.5248 125.27 11.5248Z", fill: "#A3ADC2" }), _jsx("path", { d: "M130.618 11.2373C130.493 11.2373 130.381 11.1616 130.334 11.0459L128.243 5.91053C128.161 5.70842 128.31 5.4873 128.528 5.4873H129.648C129.776 5.4873 129.891 5.5672 129.936 5.6876L131.231 9.17621L132.525 5.6876C132.57 5.5672 132.685 5.4873 132.813 5.4873H133.556C133.684 5.4873 133.8 5.56777 133.844 5.68879L135.139 9.22305L136.435 5.68879C136.479 5.56777 136.594 5.4873 136.723 5.4873H137.75C137.968 5.4873 138.116 5.70757 138.035 5.90954L135.966 11.0449C135.919 11.1612 135.806 11.2373 135.681 11.2373H134.601C134.474 11.2373 134.36 11.1593 134.314 11.0409L133.126 7.96998L131.973 11.0382C131.928 11.158 131.813 11.2373 131.685 11.2373H130.618Z", fill: "#A3ADC2" }), _jsx("path", { d: "M140.737 11.5248C140.328 11.5248 139.966 11.4423 139.653 11.2772C139.34 11.1121 139.091 10.888 138.905 10.605C138.726 10.322 138.636 10.0036 138.636 9.6499C138.636 9.23323 138.741 8.89913 138.949 8.64757C139.158 8.396 139.497 8.21911 139.966 8.11693C140.435 8.00685 141.058 7.95182 141.832 7.95182H142.235V7.75137C142.235 7.40548 142.16 7.16176 142.011 7.02027C141.862 6.8709 141.609 6.79622 141.251 6.79622C140.953 6.79622 140.637 6.8473 140.302 6.94952C140.072 7.01544 139.843 7.1063 139.614 7.22213C139.455 7.30292 139.259 7.23205 139.192 7.05883L138.951 6.43081C138.898 6.29373 138.944 6.13523 139.067 6.06499C139.215 5.98119 139.38 5.9026 139.564 5.82927C139.847 5.71922 140.141 5.63668 140.447 5.58163C140.752 5.51874 141.043 5.4873 141.318 5.4873C142.168 5.4873 142.801 5.69171 143.218 6.10048C143.635 6.50142 143.844 7.12638 143.844 7.97542V11.0857C143.844 11.2566 143.713 11.3951 143.551 11.3951H142.561C142.4 11.3951 142.268 11.2566 142.268 11.0857V10.5225C142.157 10.8291 141.967 11.0728 141.698 11.2536C141.438 11.4344 141.117 11.5248 140.737 11.5248ZM141.117 10.3338C141.43 10.3338 141.695 10.2198 141.911 9.99186C142.127 9.76387 142.235 9.46906 142.235 9.10745V8.87161H141.844C141.27 8.87161 140.864 8.92664 140.625 9.03669C140.387 9.13891 140.268 9.31972 140.268 9.57914C140.268 9.79925 140.339 9.98005 140.48 10.1216C140.629 10.2631 140.842 10.3338 141.117 10.3338Z", fill: "#A3ADC2" }), _jsx("path", { d: "M145.873 13.2498C145.711 13.2498 145.58 13.1159 145.58 12.9507V5.90041C145.58 5.7352 145.711 5.60129 145.873 5.60129H146.94C147.102 5.60129 147.233 5.7352 147.233 5.90041V6.4334C147.382 6.14464 147.609 5.91664 147.915 5.74947C148.228 5.57469 148.578 5.4873 148.965 5.4873C149.441 5.4873 149.859 5.60507 150.216 5.84067C150.581 6.07624 150.864 6.41059 151.065 6.84374C151.266 7.27689 151.367 7.79365 151.367 8.39397C151.367 8.9943 151.266 9.51484 151.065 9.9556C150.864 10.3887 150.581 10.7269 150.216 10.9701C149.859 11.2057 149.441 11.3234 148.965 11.3234C148.6 11.3234 148.265 11.2436 147.959 11.0841C147.662 10.9245 147.431 10.7117 147.267 10.4457V12.9507C147.267 13.1159 147.136 13.2498 146.974 13.2498H145.873ZM148.462 10.0354C148.82 10.0354 149.11 9.90241 149.333 9.63643C149.557 9.37045 149.669 8.95632 149.669 8.39397C149.669 7.83924 149.557 7.43268 149.333 7.1743C149.11 6.90835 148.82 6.77535 148.462 6.77535C148.097 6.77535 147.803 6.90835 147.58 7.1743C147.356 7.43268 147.245 7.83924 147.245 8.39397C147.245 8.95632 147.356 9.37045 147.58 9.63643C147.803 9.90241 148.097 10.0354 148.462 10.0354Z", fill: "#A3ADC2" }), _jsx("path", { opacity: "0.5", d: "M78.062 5.23543C78.062 4.78989 78.4232 4.42871 78.8687 4.42871H85.8267C86.2723 4.42871 86.6334 4.78989 86.6334 5.23543V12.1934C86.6334 12.639 86.2723 13.0001 85.8267 13.0001H78.8687C78.4232 13.0001 78.062 12.639 78.062 12.1934V5.23543Z", fill: "#A3ADC2" }), _jsx("path", { opacity: "0.6", d: "M76.3477 3.52108C76.3477 3.07554 76.7088 2.71436 77.1544 2.71436H84.1124C84.5579 2.71436 84.9191 3.07554 84.9191 3.52108V10.4791C84.9191 10.9246 84.5579 11.2858 84.1124 11.2858H77.1544C76.7088 11.2858 76.3477 10.9246 76.3477 10.4791V3.52108Z", fill: "#A3ADC2" }), _jsx("path", { opacity: "0.9", d: "M74.6334 1.80672C74.6334 1.36118 74.9946 1 75.4401 1H82.3981C82.8437 1 83.2049 1.36118 83.2049 1.80672V8.7647C83.2049 9.21025 82.8437 9.57143 82.3981 9.57143H75.4401C74.9946 9.57143 74.6334 9.21025 74.6334 8.7647V1.80672Z", fill: "#A3ADC2" }), _jsx("path", { d: "M62.8483 13.2383C62.7701 13.2383 62.6862 13.2344 62.5963 13.2266C62.5065 13.2227 62.4205 13.2168 62.3385 13.209V12.207C62.401 12.2148 62.4694 12.2207 62.5436 12.2246C62.6217 12.2285 62.6959 12.2305 62.7662 12.2305C63.0631 12.2305 63.3033 12.1602 63.4869 12.0195C63.6705 11.8828 63.8092 11.6543 63.903 11.334L63.9967 11.0059L61.6881 4.63672H63.0651L64.8639 10.373L64.4655 9.7168H64.9518L64.5592 10.373L66.3522 4.63672H67.694L65.3268 11.2402C65.1471 11.748 64.9479 12.1465 64.7291 12.4355C64.5104 12.7285 64.2506 12.9355 63.9498 13.0566C63.649 13.1777 63.2819 13.2383 62.8483 13.2383Z", fill: "#A3ADC2" }), _jsx("path", { d: "M58.3248 11.1055C58.028 11.1055 57.7545 11.0625 57.5045 10.9766C57.2545 10.8867 57.0319 10.7598 56.8365 10.5957C56.6451 10.4277 56.4889 10.2285 56.3678 9.99805H56.2682V11H54.9967V2.14062H56.2682V5.64453H56.3678C56.4811 5.41406 56.6354 5.2168 56.8307 5.05273C57.026 4.88477 57.2506 4.75586 57.5045 4.66602C57.7584 4.57227 58.0319 4.52539 58.3248 4.52539C58.8639 4.52539 59.3307 4.66016 59.7252 4.92969C60.1198 5.19531 60.4244 5.57422 60.6393 6.06641C60.8541 6.55859 60.9615 7.14062 60.9615 7.8125V7.82422C60.9615 8.49219 60.8522 9.07227 60.6334 9.56445C60.4186 10.0566 60.1139 10.4375 59.7194 10.707C59.3248 10.9727 58.86 11.1055 58.3248 11.1055ZM57.9615 10.0156C58.317 10.0156 58.6217 9.92773 58.8756 9.75195C59.1295 9.57617 59.3229 9.32422 59.4557 8.99609C59.5924 8.66797 59.6608 8.27734 59.6608 7.82422V7.8125C59.6608 7.35547 59.5924 6.96484 59.4557 6.64062C59.3229 6.3125 59.1295 6.06055 58.8756 5.88477C58.6217 5.70508 58.317 5.61523 57.9615 5.61523C57.61 5.61523 57.3053 5.70508 57.0475 5.88477C56.7897 6.06055 56.5924 6.3125 56.4557 6.64062C56.319 6.96875 56.2506 7.35938 56.2506 7.8125V7.82422C56.2506 8.27344 56.319 8.66406 56.4557 8.99609C56.5924 9.32422 56.7897 9.57617 57.0475 9.75195C57.3053 9.92773 57.61 10.0156 57.9615 10.0156Z", fill: "#A3ADC2" }), _jsx("path", { d: "M46.4537 11.1055C45.9225 11.1055 45.4576 10.9727 45.0592 10.707C44.6647 10.4375 44.358 10.0566 44.1393 9.56445C43.9244 9.07227 43.817 8.49219 43.817 7.82422V7.8125C43.817 7.14062 43.9244 6.55859 44.1393 6.06641C44.3541 5.57422 44.6588 5.19531 45.0533 4.92969C45.4479 4.66016 45.9147 4.52539 46.4537 4.52539C46.7467 4.52539 47.0201 4.57227 47.274 4.66602C47.528 4.75586 47.7526 4.88477 47.9479 5.05273C48.1432 5.2168 48.2975 5.41406 48.4108 5.64453H48.5045V2.14062H49.7819V11H48.5045V9.99805H48.4108C48.2858 10.2285 48.1276 10.4277 47.9362 10.5957C47.7448 10.7598 47.524 10.8867 47.274 10.9766C47.024 11.0625 46.7506 11.1055 46.4537 11.1055ZM46.817 10.0156C47.1686 10.0156 47.4733 9.92773 47.7311 9.75195C47.9889 9.57617 48.1862 9.32422 48.3229 8.99609C48.4596 8.66406 48.528 8.27344 48.528 7.82422V7.8125C48.528 7.35938 48.4576 6.96875 48.317 6.64062C48.1803 6.3125 47.983 6.06055 47.7252 5.88477C47.4713 5.70508 47.1686 5.61523 46.817 5.61523C46.4655 5.61523 46.1608 5.70508 45.903 5.88477C45.649 6.06055 45.4537 6.3125 45.317 6.64062C45.1842 6.96484 45.1178 7.35547 45.1178 7.8125V7.82422C45.1178 8.27734 45.1842 8.66797 45.317 8.99609C45.4537 9.32422 45.649 9.57617 45.903 9.75195C46.1608 9.92773 46.4655 10.0156 46.817 10.0156Z", fill: "#A3ADC2" }), _jsx("path", { d: "M39.8209 11.123C39.1998 11.123 38.6666 10.9902 38.2213 10.7246C37.776 10.4551 37.4323 10.0742 37.1901 9.58203C36.9518 9.08984 36.8326 8.50781 36.8326 7.83594V7.83008C36.8326 7.16602 36.9518 6.58594 37.1901 6.08984C37.4323 5.59375 37.7721 5.20703 38.2096 4.92969C38.651 4.65234 39.1666 4.51367 39.7565 4.51367C40.3502 4.51367 40.86 4.64648 41.2858 4.91211C41.7155 5.17773 42.0455 5.55078 42.276 6.03125C42.5065 6.50781 42.6217 7.06641 42.6217 7.70703V8.15234H37.4772V7.24414H41.9889L41.3795 8.08789V7.57812C41.3795 7.125 41.3092 6.75 41.1686 6.45312C41.0319 6.15234 40.8424 5.92773 40.6002 5.7793C40.358 5.63086 40.0787 5.55664 39.7623 5.55664C39.4459 5.55664 39.1627 5.63477 38.9127 5.79102C38.6666 5.94336 38.4713 6.16992 38.3268 6.4707C38.1862 6.77148 38.1158 7.14062 38.1158 7.57812V8.08789C38.1158 8.50586 38.1862 8.86328 38.3268 9.16016C38.4674 9.45703 38.6666 9.68359 38.9244 9.83984C39.1862 9.99609 39.4948 10.0742 39.8502 10.0742C40.1237 10.0742 40.358 10.0371 40.5533 9.96289C40.7526 9.88477 40.9147 9.78906 41.0397 9.67578C41.1686 9.5625 41.2565 9.45117 41.3033 9.3418L41.3268 9.29492H42.5573L42.5455 9.34766C42.4908 9.55859 42.3951 9.76953 42.2584 9.98047C42.1217 10.1875 41.9401 10.377 41.7135 10.5488C41.4908 10.7207 41.2213 10.8594 40.9049 10.9648C40.5924 11.0703 40.2311 11.123 39.8209 11.123Z", fill: "#A3ADC2" }), _jsx("path", { d: "M32.4967 11V4.63672H33.7682V5.59766H33.8678C33.9811 5.25781 34.1803 4.99414 34.4655 4.80664C34.7545 4.61914 35.11 4.52539 35.5319 4.52539C35.6373 4.52539 35.7408 4.53125 35.8424 4.54297C35.944 4.55469 36.026 4.56836 36.0885 4.58398V5.75586C35.9752 5.73242 35.8619 5.71484 35.7487 5.70312C35.6393 5.69141 35.524 5.68555 35.403 5.68555C35.0787 5.68555 34.7936 5.74805 34.5475 5.87305C34.3053 5.99805 34.1139 6.17383 33.9733 6.40039C33.8365 6.62305 33.7682 6.88867 33.7682 7.19727V11H32.4967Z", fill: "#A3ADC2" }), _jsx("path", { d: "M28.1842 11.123C27.5631 11.123 27.0299 10.9902 26.5846 10.7246C26.1393 10.4551 25.7955 10.0742 25.5533 9.58203C25.3151 9.08984 25.1959 8.50781 25.1959 7.83594V7.83008C25.1959 7.16602 25.3151 6.58594 25.5533 6.08984C25.7955 5.59375 26.1354 5.20703 26.5729 4.92969C27.0143 4.65234 27.5299 4.51367 28.1198 4.51367C28.7135 4.51367 29.2233 4.64648 29.649 4.91211C30.0787 5.17773 30.4088 5.55078 30.6393 6.03125C30.8698 6.50781 30.985 7.06641 30.985 7.70703V8.15234H25.8405V7.24414H30.3522L29.7428 8.08789V7.57812C29.7428 7.125 29.6725 6.75 29.5319 6.45312C29.3951 6.15234 29.2057 5.92773 28.9635 5.7793C28.7213 5.63086 28.442 5.55664 28.1256 5.55664C27.8092 5.55664 27.526 5.63477 27.276 5.79102C27.0299 5.94336 26.8346 6.16992 26.6901 6.4707C26.5494 6.77148 26.4791 7.14062 26.4791 7.57812V8.08789C26.4791 8.50586 26.5494 8.86328 26.6901 9.16016C26.8307 9.45703 27.0299 9.68359 27.2877 9.83984C27.5494 9.99609 27.858 10.0742 28.2135 10.0742C28.4869 10.0742 28.7213 10.0371 28.9166 9.96289C29.1158 9.88477 29.278 9.78906 29.403 9.67578C29.5319 9.5625 29.6198 9.45117 29.6666 9.3418L29.6901 9.29492H30.9205L30.9088 9.34766C30.8541 9.55859 30.7584 9.76953 30.6217 9.98047C30.485 10.1875 30.3033 10.377 30.0768 10.5488C29.8541 10.7207 29.5846 10.8594 29.2682 10.9648C28.9557 11.0703 28.5944 11.123 28.1842 11.123Z", fill: "#A3ADC2" }), _jsx("path", { d: "M17.3561 11L15.6041 4.63672H16.8873L18.024 9.54688H18.1237L19.4303 4.63672H20.6432L21.9557 9.54688H22.0494L23.192 4.63672H24.4518L22.7057 11H21.3873L20.069 6.25391H19.9694L18.6627 11H17.3561Z", fill: "#A3ADC2" }), _jsx("path", { d: "M11.86 11.123C11.2389 11.123 10.7018 10.9902 10.2487 10.7246C9.79944 10.459 9.45374 10.0801 9.21155 9.58789C8.96936 9.0918 8.84827 8.50391 8.84827 7.82422V7.8125C8.84827 7.12891 8.96936 6.54102 9.21155 6.04883C9.45764 5.55664 9.8053 5.17773 10.2545 4.91211C10.7076 4.64648 11.2428 4.51367 11.86 4.51367C12.4811 4.51367 13.0162 4.64648 13.4655 4.91211C13.9147 5.17383 14.2604 5.55273 14.5026 6.04883C14.7487 6.54102 14.8717 7.12891 14.8717 7.8125V7.82422C14.8717 8.50391 14.7487 9.0918 14.5026 9.58789C14.2604 10.0801 13.9147 10.459 13.4655 10.7246C13.0201 10.9902 12.485 11.123 11.86 11.123ZM11.86 10.0566C12.2233 10.0566 12.5319 9.96875 12.7858 9.79297C13.0397 9.61328 13.233 9.35742 13.3658 9.02539C13.4987 8.69336 13.5651 8.29297 13.5651 7.82422V7.8125C13.5651 7.33984 13.4987 6.9375 13.3658 6.60547C13.233 6.27344 13.0397 6.01953 12.7858 5.84375C12.5319 5.66406 12.2233 5.57422 11.86 5.57422C11.4967 5.57422 11.1881 5.66406 10.9342 5.84375C10.6803 6.01953 10.485 6.27344 10.3483 6.60547C10.2155 6.9375 10.149 7.33984 10.149 7.8125V7.82422C10.149 8.29297 10.2155 8.69336 10.3483 9.02539C10.485 9.35742 10.6803 9.61328 10.9342 9.79297C11.1881 9.96875 11.4967 10.0566 11.86 10.0566Z", fill: "#A3ADC2" }), _jsx("path", { d: "M2.35022 8.11133V7.00977H4.65881C5.22913 7.00977 5.67053 6.86328 5.98303 6.57031C6.29944 6.27344 6.45764 5.86328 6.45764 5.33984V5.32812C6.45764 4.79688 6.29944 4.38477 5.98303 4.0918C5.67053 3.79883 5.22913 3.65234 4.65881 3.65234H2.35022V2.54492H4.98694C5.54163 2.54492 6.02795 2.66211 6.44592 2.89648C6.8678 3.12695 7.19788 3.45117 7.43616 3.86914C7.67444 4.2832 7.79358 4.76562 7.79358 5.31641V5.32812C7.79358 5.87891 7.67444 6.36523 7.43616 6.78711C7.19788 7.20508 6.8678 7.53125 6.44592 7.76562C6.02795 7.99609 5.54163 8.11133 4.98694 8.11133H2.35022ZM1.69397 11V2.54492H3.00647V11H1.69397Z", fill: "#A3ADC2" })] }));
|
|
58
|
+
return (_jsxs("svg", { xmlns: "http://www.w3.org/2000/svg", width: "152", height: "14", viewBox: "0 0 152 14", fill: "currentColor", ...props, children: [_jsx("path", { d: "M92.9333 11.2374C92.7677 11.2374 92.6334 11.0985 92.6334 10.9271V3.21025C92.6334 3.03884 92.7677 2.8999 92.9333 2.8999H94.105C94.2707 2.8999 94.4048 3.03884 94.4048 3.21025V9.68817H97.8308C97.9962 9.68817 98.1306 9.8271 98.1306 9.99851V10.9271C98.1306 11.0985 97.9962 11.2374 97.8308 11.2374H92.9333Z", fill: "currentColor" }), _jsx("path", { d: "M101.216 11.5248C100.784 11.5248 100.403 11.4423 100.072 11.2772C99.7419 11.1121 99.4784 10.888 99.2819 10.605C99.0929 10.322 98.9987 10.0036 98.9987 9.6499C98.9987 9.23323 99.1088 8.89913 99.329 8.64757C99.5492 8.396 99.9069 8.21911 100.403 8.11693C100.898 8.00685 101.555 7.95182 102.372 7.95182H102.596C102.707 7.95182 102.797 7.86208 102.797 7.75137C102.797 7.40548 102.718 7.16176 102.561 7.02027C102.404 6.8709 102.136 6.79622 101.759 6.79622C101.445 6.79622 101.11 6.8473 100.756 6.94952C100.515 7.01544 100.273 7.1063 100.031 7.22213C99.8621 7.30292 99.6558 7.23205 99.5853 7.05883L99.3304 6.43081C99.2746 6.29373 99.3235 6.13523 99.4535 6.06499C99.6093 5.98119 99.7838 5.9026 99.9777 5.82927C100.277 5.71922 100.587 5.63668 100.91 5.58163C101.232 5.51874 101.539 5.4873 101.83 5.4873C102.726 5.4873 103.395 5.69171 103.835 6.10048C104.276 6.50142 104.496 7.12638 104.496 7.97542V11.0857C104.496 11.2566 104.357 11.3951 104.186 11.3951H103.142C102.971 11.3951 102.833 11.2566 102.833 11.0857V10.5225C102.715 10.8291 102.514 11.0728 102.231 11.2536C101.956 11.4344 101.617 11.5248 101.216 11.5248ZM101.617 10.3338C101.948 10.3338 102.227 10.2198 102.455 9.99186C102.683 9.76387 102.797 9.46906 102.797 9.10745C102.797 8.9772 102.691 8.87161 102.561 8.87161H102.384C101.779 8.87161 101.35 8.92664 101.098 9.03669C100.847 9.13891 100.721 9.31972 100.721 9.57914C100.721 9.79925 100.796 9.98005 100.945 10.1216C101.102 10.2631 101.326 10.3338 101.617 10.3338Z", fill: "currentColor" }), _jsx("path", { d: "M106.618 13.2498C106.4 13.2498 106.254 13.0217 106.345 12.8207L107.227 10.8551L105.1 5.91204C105.013 5.71154 105.159 5.4873 105.375 5.4873H106.531C106.655 5.4873 106.765 5.56354 106.81 5.67953L108.143 9.0967L109.519 5.67641C109.565 5.56208 109.675 5.4873 109.797 5.4873H110.85C111.067 5.4873 111.212 5.71306 111.124 5.91375L107.993 13.0691C107.945 13.179 107.837 13.2498 107.718 13.2498H106.618Z", fill: "currentColor" }), _jsx("path", { d: "M114.935 11.5248C114.208 11.5248 113.582 11.403 113.056 11.1593C112.538 10.9077 112.137 10.5579 111.853 10.1098C111.577 9.65382 111.44 9.11923 111.44 8.50605C111.44 7.90861 111.573 7.38581 111.84 6.93771C112.116 6.48177 112.488 6.12799 112.955 5.87643C113.432 5.617 113.978 5.4873 114.597 5.4873C115.49 5.4873 116.2 5.7546 116.726 6.28915C117.252 6.81587 117.515 7.53126 117.515 8.4353V8.57395C117.515 8.74486 117.368 8.8834 117.187 8.8834H113.243C113.31 9.33936 113.486 9.67346 113.77 9.88573C114.062 10.0901 114.463 10.1923 114.973 10.1923C115.306 10.1923 115.645 10.1452 115.987 10.0508C116.186 9.99595 116.374 9.92382 116.551 9.83442C116.742 9.73744 116.993 9.80285 117.073 9.99312L117.323 10.5868C117.378 10.716 117.335 10.865 117.21 10.9393C116.942 11.0985 116.631 11.2307 116.275 11.3361C115.833 11.4619 115.386 11.5248 114.935 11.5248ZM114.672 6.6665C114.271 6.6665 113.945 6.78049 113.695 7.00846C113.452 7.23646 113.302 7.55483 113.243 7.96363H115.95C115.899 7.09887 115.474 6.6665 114.672 6.6665Z", fill: "currentColor" }), _jsx("path", { d: "M118.688 11.2373C118.52 11.2373 118.383 11.1028 118.383 10.9369V5.91687C118.383 5.75094 118.52 5.61645 118.688 5.61645H119.795C119.964 5.61645 120.1 5.75094 120.1 5.91687V6.58952C120.37 5.93316 120.95 5.57067 121.839 5.50198L122.047 5.48801C122.214 5.47674 122.359 5.60129 122.371 5.76649L122.433 6.63208C122.445 6.79351 122.325 6.935 122.162 6.95205L121.468 7.02454C120.602 7.10847 120.169 7.54349 120.169 8.32956V10.9369C120.169 11.1028 120.033 11.2373 119.865 11.2373H118.688Z", fill: "currentColor" }), _jsx("path", { d: "M125.27 11.5248C124.741 11.5248 124.249 11.4659 123.793 11.3479C123.437 11.2557 123.128 11.137 122.866 10.9919C122.74 10.9221 122.693 10.7729 122.743 10.6413L122.962 10.0656C123.032 9.8815 123.259 9.80634 123.442 9.89199C123.653 9.99072 123.88 10.0751 124.123 10.1452C124.513 10.2473 124.9 10.2985 125.283 10.2985C125.624 10.2985 125.877 10.2473 126.039 10.1452C126.202 10.0351 126.283 9.89359 126.283 9.72062C126.283 9.4455 126.076 9.27253 125.661 9.2018L124.379 8.97775C123.867 8.89126 123.476 8.71437 123.207 8.44711C122.939 8.17982 122.805 7.82999 122.805 7.39762C122.805 7.00454 122.919 6.6665 123.146 6.3835C123.374 6.10048 123.688 5.88038 124.086 5.72314C124.485 5.56593 124.945 5.4873 125.466 5.4873C125.897 5.4873 126.316 5.54233 126.723 5.65238C127.045 5.73338 127.332 5.85387 127.583 6.01382C127.7 6.08827 127.738 6.23324 127.687 6.35905L127.461 6.91694C127.384 7.1061 127.142 7.17397 126.955 7.0799C126.795 6.9992 126.62 6.92821 126.43 6.86698C126.096 6.7569 125.783 6.70187 125.49 6.70187C125.124 6.70187 124.859 6.76085 124.696 6.87876C124.534 6.98881 124.452 7.13033 124.452 7.30327C124.452 7.57842 124.644 7.75137 125.026 7.82212L126.308 8.04617C126.837 8.13266 127.24 8.3056 127.516 8.56503C127.793 8.81659 127.931 9.16247 127.931 9.60271C127.931 10.208 127.687 10.6797 127.199 11.0178C126.711 11.3558 126.068 11.5248 125.27 11.5248Z", fill: "currentColor" }), _jsx("path", { d: "M130.618 11.2373C130.493 11.2373 130.381 11.1616 130.334 11.0459L128.243 5.91053C128.161 5.70842 128.31 5.4873 128.528 5.4873H129.648C129.776 5.4873 129.891 5.5672 129.936 5.6876L131.231 9.17621L132.525 5.6876C132.57 5.5672 132.685 5.4873 132.813 5.4873H133.556C133.684 5.4873 133.8 5.56777 133.844 5.68879L135.139 9.22305L136.435 5.68879C136.479 5.56777 136.594 5.4873 136.723 5.4873H137.75C137.968 5.4873 138.116 5.70757 138.035 5.90954L135.966 11.0449C135.919 11.1612 135.806 11.2373 135.681 11.2373H134.601C134.474 11.2373 134.36 11.1593 134.314 11.0409L133.126 7.96998L131.973 11.0382C131.928 11.158 131.813 11.2373 131.685 11.2373H130.618Z", fill: "currentColor" }), _jsx("path", { d: "M140.737 11.5248C140.328 11.5248 139.966 11.4423 139.653 11.2772C139.34 11.1121 139.091 10.888 138.905 10.605C138.726 10.322 138.636 10.0036 138.636 9.6499C138.636 9.23323 138.741 8.89913 138.949 8.64757C139.158 8.396 139.497 8.21911 139.966 8.11693C140.435 8.00685 141.058 7.95182 141.832 7.95182H142.235V7.75137C142.235 7.40548 142.16 7.16176 142.011 7.02027C141.862 6.8709 141.609 6.79622 141.251 6.79622C140.953 6.79622 140.637 6.8473 140.302 6.94952C140.072 7.01544 139.843 7.1063 139.614 7.22213C139.455 7.30292 139.259 7.23205 139.192 7.05883L138.951 6.43081C138.898 6.29373 138.944 6.13523 139.067 6.06499C139.215 5.98119 139.38 5.9026 139.564 5.82927C139.847 5.71922 140.141 5.63668 140.447 5.58163C140.752 5.51874 141.043 5.4873 141.318 5.4873C142.168 5.4873 142.801 5.69171 143.218 6.10048C143.635 6.50142 143.844 7.12638 143.844 7.97542V11.0857C143.844 11.2566 143.713 11.3951 143.551 11.3951H142.561C142.4 11.3951 142.268 11.2566 142.268 11.0857V10.5225C142.157 10.8291 141.967 11.0728 141.698 11.2536C141.438 11.4344 141.117 11.5248 140.737 11.5248ZM141.117 10.3338C141.43 10.3338 141.695 10.2198 141.911 9.99186C142.127 9.76387 142.235 9.46906 142.235 9.10745V8.87161H141.844C141.27 8.87161 140.864 8.92664 140.625 9.03669C140.387 9.13891 140.268 9.31972 140.268 9.57914C140.268 9.79925 140.339 9.98005 140.48 10.1216C140.629 10.2631 140.842 10.3338 141.117 10.3338Z", fill: "currentColor" }), _jsx("path", { d: "M145.873 13.2498C145.711 13.2498 145.58 13.1159 145.58 12.9507V5.90041C145.58 5.7352 145.711 5.60129 145.873 5.60129H146.94C147.102 5.60129 147.233 5.7352 147.233 5.90041V6.4334C147.382 6.14464 147.609 5.91664 147.915 5.74947C148.228 5.57469 148.578 5.4873 148.965 5.4873C149.441 5.4873 149.859 5.60507 150.216 5.84067C150.581 6.07624 150.864 6.41059 151.065 6.84374C151.266 7.27689 151.367 7.79365 151.367 8.39397C151.367 8.9943 151.266 9.51484 151.065 9.9556C150.864 10.3887 150.581 10.7269 150.216 10.9701C149.859 11.2057 149.441 11.3234 148.965 11.3234C148.6 11.3234 148.265 11.2436 147.959 11.0841C147.662 10.9245 147.431 10.7117 147.267 10.4457V12.9507C147.267 13.1159 147.136 13.2498 146.974 13.2498H145.873ZM148.462 10.0354C148.82 10.0354 149.11 9.90241 149.333 9.63643C149.557 9.37045 149.669 8.95632 149.669 8.39397C149.669 7.83924 149.557 7.43268 149.333 7.1743C149.11 6.90835 148.82 6.77535 148.462 6.77535C148.097 6.77535 147.803 6.90835 147.58 7.1743C147.356 7.43268 147.245 7.83924 147.245 8.39397C147.245 8.95632 147.356 9.37045 147.58 9.63643C147.803 9.90241 148.097 10.0354 148.462 10.0354Z", fill: "currentColor" }), _jsx("path", { opacity: "0.5", d: "M78.062 5.23543C78.062 4.78989 78.4232 4.42871 78.8687 4.42871H85.8267C86.2723 4.42871 86.6334 4.78989 86.6334 5.23543V12.1934C86.6334 12.639 86.2723 13.0001 85.8267 13.0001H78.8687C78.4232 13.0001 78.062 12.639 78.062 12.1934V5.23543Z", fill: "currentColor" }), _jsx("path", { opacity: "0.6", d: "M76.3477 3.52108C76.3477 3.07554 76.7088 2.71436 77.1544 2.71436H84.1124C84.5579 2.71436 84.9191 3.07554 84.9191 3.52108V10.4791C84.9191 10.9246 84.5579 11.2858 84.1124 11.2858H77.1544C76.7088 11.2858 76.3477 10.9246 76.3477 10.4791V3.52108Z", fill: "currentColor" }), _jsx("path", { opacity: "0.9", d: "M74.6334 1.80672C74.6334 1.36118 74.9946 1 75.4401 1H82.3981C82.8437 1 83.2049 1.36118 83.2049 1.80672V8.7647C83.2049 9.21025 82.8437 9.57143 82.3981 9.57143H75.4401C74.9946 9.57143 74.6334 9.21025 74.6334 8.7647V1.80672Z", fill: "currentColor" }), _jsx("path", { d: "M62.8483 13.2383C62.7701 13.2383 62.6862 13.2344 62.5963 13.2266C62.5065 13.2227 62.4205 13.2168 62.3385 13.209V12.207C62.401 12.2148 62.4694 12.2207 62.5436 12.2246C62.6217 12.2285 62.6959 12.2305 62.7662 12.2305C63.0631 12.2305 63.3033 12.1602 63.4869 12.0195C63.6705 11.8828 63.8092 11.6543 63.903 11.334L63.9967 11.0059L61.6881 4.63672H63.0651L64.8639 10.373L64.4655 9.7168H64.9518L64.5592 10.373L66.3522 4.63672H67.694L65.3268 11.2402C65.1471 11.748 64.9479 12.1465 64.7291 12.4355C64.5104 12.7285 64.2506 12.9355 63.9498 13.0566C63.649 13.1777 63.2819 13.2383 62.8483 13.2383Z", fill: "currentColor" }), _jsx("path", { d: "M58.3248 11.1055C58.028 11.1055 57.7545 11.0625 57.5045 10.9766C57.2545 10.8867 57.0319 10.7598 56.8365 10.5957C56.6451 10.4277 56.4889 10.2285 56.3678 9.99805H56.2682V11H54.9967V2.14062H56.2682V5.64453H56.3678C56.4811 5.41406 56.6354 5.2168 56.8307 5.05273C57.026 4.88477 57.2506 4.75586 57.5045 4.66602C57.7584 4.57227 58.0319 4.52539 58.3248 4.52539C58.8639 4.52539 59.3307 4.66016 59.7252 4.92969C60.1198 5.19531 60.4244 5.57422 60.6393 6.06641C60.8541 6.55859 60.9615 7.14062 60.9615 7.8125V7.82422C60.9615 8.49219 60.8522 9.07227 60.6334 9.56445C60.4186 10.0566 60.1139 10.4375 59.7194 10.707C59.3248 10.9727 58.86 11.1055 58.3248 11.1055ZM57.9615 10.0156C58.317 10.0156 58.6217 9.92773 58.8756 9.75195C59.1295 9.57617 59.3229 9.32422 59.4557 8.99609C59.5924 8.66797 59.6608 8.27734 59.6608 7.82422V7.8125C59.6608 7.35547 59.5924 6.96484 59.4557 6.64062C59.3229 6.3125 59.1295 6.06055 58.8756 5.88477C58.6217 5.70508 58.317 5.61523 57.9615 5.61523C57.61 5.61523 57.3053 5.70508 57.0475 5.88477C56.7897 6.06055 56.5924 6.3125 56.4557 6.64062C56.319 6.96875 56.2506 7.35938 56.2506 7.8125V7.82422C56.2506 8.27344 56.319 8.66406 56.4557 8.99609C56.5924 9.32422 56.7897 9.57617 57.0475 9.75195C57.3053 9.92773 57.61 10.0156 57.9615 10.0156Z", fill: "currentColor" }), _jsx("path", { d: "M46.4537 11.1055C45.9225 11.1055 45.4576 10.9727 45.0592 10.707C44.6647 10.4375 44.358 10.0566 44.1393 9.56445C43.9244 9.07227 43.817 8.49219 43.817 7.82422V7.8125C43.817 7.14062 43.9244 6.55859 44.1393 6.06641C44.3541 5.57422 44.6588 5.19531 45.0533 4.92969C45.4479 4.66016 45.9147 4.52539 46.4537 4.52539C46.7467 4.52539 47.0201 4.57227 47.274 4.66602C47.528 4.75586 47.7526 4.88477 47.9479 5.05273C48.1432 5.2168 48.2975 5.41406 48.4108 5.64453H48.5045V2.14062H49.7819V11H48.5045V9.99805H48.4108C48.2858 10.2285 48.1276 10.4277 47.9362 10.5957C47.7448 10.7598 47.524 10.8867 47.274 10.9766C47.024 11.0625 46.7506 11.1055 46.4537 11.1055ZM46.817 10.0156C47.1686 10.0156 47.4733 9.92773 47.7311 9.75195C47.9889 9.57617 48.1862 9.32422 48.3229 8.99609C48.4596 8.66406 48.528 8.27344 48.528 7.82422V7.8125C48.528 7.35938 48.4576 6.96875 48.317 6.64062C48.1803 6.3125 47.983 6.06055 47.7252 5.88477C47.4713 5.70508 47.1686 5.61523 46.817 5.61523C46.4655 5.61523 46.1608 5.70508 45.903 5.88477C45.649 6.06055 45.4537 6.3125 45.317 6.64062C45.1842 6.96484 45.1178 7.35547 45.1178 7.8125V7.82422C45.1178 8.27734 45.1842 8.66797 45.317 8.99609C45.4537 9.32422 45.649 9.57617 45.903 9.75195C46.1608 9.92773 46.4655 10.0156 46.817 10.0156Z", fill: "currentColor" }), _jsx("path", { d: "M39.8209 11.123C39.1998 11.123 38.6666 10.9902 38.2213 10.7246C37.776 10.4551 37.4323 10.0742 37.1901 9.58203C36.9518 9.08984 36.8326 8.50781 36.8326 7.83594V7.83008C36.8326 7.16602 36.9518 6.58594 37.1901 6.08984C37.4323 5.59375 37.7721 5.20703 38.2096 4.92969C38.651 4.65234 39.1666 4.51367 39.7565 4.51367C40.3502 4.51367 40.86 4.64648 41.2858 4.91211C41.7155 5.17773 42.0455 5.55078 42.276 6.03125C42.5065 6.50781 42.6217 7.06641 42.6217 7.70703V8.15234H37.4772V7.24414H41.9889L41.3795 8.08789V7.57812C41.3795 7.125 41.3092 6.75 41.1686 6.45312C41.0319 6.15234 40.8424 5.92773 40.6002 5.7793C40.358 5.63086 40.0787 5.55664 39.7623 5.55664C39.4459 5.55664 39.1627 5.63477 38.9127 5.79102C38.6666 5.94336 38.4713 6.16992 38.3268 6.4707C38.1862 6.77148 38.1158 7.14062 38.1158 7.57812V8.08789C38.1158 8.50586 38.1862 8.86328 38.3268 9.16016C38.4674 9.45703 38.6666 9.68359 38.9244 9.83984C39.1862 9.99609 39.4948 10.0742 39.8502 10.0742C40.1237 10.0742 40.358 10.0371 40.5533 9.96289C40.7526 9.88477 40.9147 9.78906 41.0397 9.67578C41.1686 9.5625 41.2565 9.45117 41.3033 9.3418L41.3268 9.29492H42.5573L42.5455 9.34766C42.4908 9.55859 42.3951 9.76953 42.2584 9.98047C42.1217 10.1875 41.9401 10.377 41.7135 10.5488C41.4908 10.7207 41.2213 10.8594 40.9049 10.9648C40.5924 11.0703 40.2311 11.123 39.8209 11.123Z", fill: "currentColor" }), _jsx("path", { d: "M32.4967 11V4.63672H33.7682V5.59766H33.8678C33.9811 5.25781 34.1803 4.99414 34.4655 4.80664C34.7545 4.61914 35.11 4.52539 35.5319 4.52539C35.6373 4.52539 35.7408 4.53125 35.8424 4.54297C35.944 4.55469 36.026 4.56836 36.0885 4.58398V5.75586C35.9752 5.73242 35.8619 5.71484 35.7487 5.70312C35.6393 5.69141 35.524 5.68555 35.403 5.68555C35.0787 5.68555 34.7936 5.74805 34.5475 5.87305C34.3053 5.99805 34.1139 6.17383 33.9733 6.40039C33.8365 6.62305 33.7682 6.88867 33.7682 7.19727V11H32.4967Z", fill: "currentColor" }), _jsx("path", { d: "M28.1842 11.123C27.5631 11.123 27.0299 10.9902 26.5846 10.7246C26.1393 10.4551 25.7955 10.0742 25.5533 9.58203C25.3151 9.08984 25.1959 8.50781 25.1959 7.83594V7.83008C25.1959 7.16602 25.3151 6.58594 25.5533 6.08984C25.7955 5.59375 26.1354 5.20703 26.5729 4.92969C27.0143 4.65234 27.5299 4.51367 28.1198 4.51367C28.7135 4.51367 29.2233 4.64648 29.649 4.91211C30.0787 5.17773 30.4088 5.55078 30.6393 6.03125C30.8698 6.50781 30.985 7.06641 30.985 7.70703V8.15234H25.8405V7.24414H30.3522L29.7428 8.08789V7.57812C29.7428 7.125 29.6725 6.75 29.5319 6.45312C29.3951 6.15234 29.2057 5.92773 28.9635 5.7793C28.7213 5.63086 28.442 5.55664 28.1256 5.55664C27.8092 5.55664 27.526 5.63477 27.276 5.79102C27.0299 5.94336 26.8346 6.16992 26.6901 6.4707C26.5494 6.77148 26.4791 7.14062 26.4791 7.57812V8.08789C26.4791 8.50586 26.5494 8.86328 26.6901 9.16016C26.8307 9.45703 27.0299 9.68359 27.2877 9.83984C27.5494 9.99609 27.858 10.0742 28.2135 10.0742C28.4869 10.0742 28.7213 10.0371 28.9166 9.96289C29.1158 9.88477 29.278 9.78906 29.403 9.67578C29.5319 9.5625 29.6198 9.45117 29.6666 9.3418L29.6901 9.29492H30.9205L30.9088 9.34766C30.8541 9.55859 30.7584 9.76953 30.6217 9.98047C30.485 10.1875 30.3033 10.377 30.0768 10.5488C29.8541 10.7207 29.5846 10.8594 29.2682 10.9648C28.9557 11.0703 28.5944 11.123 28.1842 11.123Z", fill: "currentColor" }), _jsx("path", { d: "M17.3561 11L15.6041 4.63672H16.8873L18.024 9.54688H18.1237L19.4303 4.63672H20.6432L21.9557 9.54688H22.0494L23.192 4.63672H24.4518L22.7057 11H21.3873L20.069 6.25391H19.9694L18.6627 11H17.3561Z", fill: "currentColor" }), _jsx("path", { d: "M11.86 11.123C11.2389 11.123 10.7018 10.9902 10.2487 10.7246C9.79944 10.459 9.45374 10.0801 9.21155 9.58789C8.96936 9.0918 8.84827 8.50391 8.84827 7.82422V7.8125C8.84827 7.12891 8.96936 6.54102 9.21155 6.04883C9.45764 5.55664 9.8053 5.17773 10.2545 4.91211C10.7076 4.64648 11.2428 4.51367 11.86 4.51367C12.4811 4.51367 13.0162 4.64648 13.4655 4.91211C13.9147 5.17383 14.2604 5.55273 14.5026 6.04883C14.7487 6.54102 14.8717 7.12891 14.8717 7.8125V7.82422C14.8717 8.50391 14.7487 9.0918 14.5026 9.58789C14.2604 10.0801 13.9147 10.459 13.4655 10.7246C13.0201 10.9902 12.485 11.123 11.86 11.123ZM11.86 10.0566C12.2233 10.0566 12.5319 9.96875 12.7858 9.79297C13.0397 9.61328 13.233 9.35742 13.3658 9.02539C13.4987 8.69336 13.5651 8.29297 13.5651 7.82422V7.8125C13.5651 7.33984 13.4987 6.9375 13.3658 6.60547C13.233 6.27344 13.0397 6.01953 12.7858 5.84375C12.5319 5.66406 12.2233 5.57422 11.86 5.57422C11.4967 5.57422 11.1881 5.66406 10.9342 5.84375C10.6803 6.01953 10.485 6.27344 10.3483 6.60547C10.2155 6.9375 10.149 7.33984 10.149 7.8125V7.82422C10.149 8.29297 10.2155 8.69336 10.3483 9.02539C10.485 9.35742 10.6803 9.61328 10.9342 9.79297C11.1881 9.96875 11.4967 10.0566 11.86 10.0566Z", fill: "currentColor" }), _jsx("path", { d: "M2.35022 8.11133V7.00977H4.65881C5.22913 7.00977 5.67053 6.86328 5.98303 6.57031C6.29944 6.27344 6.45764 5.86328 6.45764 5.33984V5.32812C6.45764 4.79688 6.29944 4.38477 5.98303 4.0918C5.67053 3.79883 5.22913 3.65234 4.65881 3.65234H2.35022V2.54492H4.98694C5.54163 2.54492 6.02795 2.66211 6.44592 2.89648C6.8678 3.12695 7.19788 3.45117 7.43616 3.86914C7.67444 4.2832 7.79358 4.76562 7.79358 5.31641V5.32812C7.79358 5.87891 7.67444 6.36523 7.43616 6.78711C7.19788 7.20508 6.8678 7.53125 6.44592 7.76562C6.02795 7.99609 5.54163 8.11133 4.98694 8.11133H2.35022ZM1.69397 11V2.54492H3.00647V11H1.69397Z", fill: "currentColor" })] }));
|
|
59
59
|
};
|
|
60
60
|
export default Footer;
|
|
@@ -8,12 +8,13 @@ import AppSettings from "../../lib/AppSettings";
|
|
|
8
8
|
import clsx from "clsx";
|
|
9
9
|
const Widget = ({ children, hideMenu, goBack, contextualMenu }) => {
|
|
10
10
|
const wrapper = useRef(null);
|
|
11
|
-
return _jsxs("div", { className: "relative p-px", children: [AppSettings.ThemeData?.enableWideVersion &&
|
|
11
|
+
return _jsxs("div", { className: "relative p-px h-full", children: [AppSettings.ThemeData?.enableWideVersion &&
|
|
12
12
|
_jsx("div", { className: "invisible sm:visible absolute inset-0 rounded-[25px] bg-gradient-to-t from-secondary-800 to-secondary-300 pointer-events-none" }), _jsxs("div", { id: "widget", style: AppSettings.ThemeData?.cardBackgroundStyle, className: clsx("sm:pb-4 rounded-3xl w-full sm:overflow-hidden relative bg-secondary-700 h-full flex flex-col", {
|
|
13
13
|
"max-sm:has-openpicker:min-h-svh max-sm:min-h-[99.8svh] sm:has-openpicker:min-h-[79svh]": AppSettings.ThemeData?.enableWideVersion,
|
|
14
14
|
"sm:has-openpicker:min-h-[650px]": !AppSettings.ThemeData?.enableWideVersion,
|
|
15
|
+
"pb-4 overflow-hidden": AppSettings.ThemeData?.enablePortal == false,
|
|
15
16
|
}), children: [AppSettings.ApiVersion === 'testnet' &&
|
|
16
|
-
_jsx("div", { className: "relative z-20", children: _jsx("div", { className: "absolute -top-1 right-[calc(50%-68px)] bg-
|
|
17
|
+
_jsx("div", { className: "relative z-20", children: _jsx("div", { className: "absolute -top-1 right-[calc(50%-68px)] bg-warning-foreground py-0.5 px-10 rounded-b-md text-xs scale-75", children: "TESTNET" }) }), !hideMenu &&
|
|
17
18
|
_jsx(HeaderWithMenu, { goBack: goBack, contextualMenu: contextualMenu }), _jsx("div", { className: "relative flex-col px-4 h-full min-h-0 flex flex-1", children: _jsx("div", { className: "flex flex-col flex-1 items-start h-full min-h-0 w-full gap-3", ref: wrapper, children: children }) }), _jsx("div", { id: "widget_root" })] })] });
|
|
18
19
|
};
|
|
19
20
|
Widget.Content = Content;
|
|
@@ -45,4 +45,7 @@ function TooltipContent({ className, sideOffset = 0, children, arrowClasses, ...
|
|
|
45
45
|
const container = document.getElementById('widget');
|
|
46
46
|
return (_jsx(TooltipPrimitive.Portal, { container: container, children: _jsx(TooltipPrimitive.Content, { "data-slot": "tooltip-content", sideOffset: sideOffset, className: clsx("z-50 rounded-md border border-secondary-600 bg-secondary-800 px-3 py-1.5 text-xs text-secondary-text animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2", className), ...props, children: children }) }));
|
|
47
47
|
}
|
|
48
|
-
|
|
48
|
+
function TooltipArrow({ className, ...props }) {
|
|
49
|
+
return _jsx(TooltipPrimitive.Arrow, { className: clsx("bg-secondary-500 fill-secondary-500 z-50 size-2.5 translate-y-[calc(-50%_-_2px)] rotate-45 rounded-[2px]", className), ...props });
|
|
50
|
+
}
|
|
51
|
+
export { Tooltip, TooltipTrigger, TooltipContent, TooltipProvider, TooltipArrow };
|
|
@@ -3,7 +3,7 @@ import { X } from "lucide-react";
|
|
|
3
3
|
import toast, { ToastBar, Toaster } from "react-hot-toast";
|
|
4
4
|
import { TooltipProvider } from "./shadcn/tooltip";
|
|
5
5
|
export default function ThemeWrapper({ children }) {
|
|
6
|
-
return _jsx(TooltipProvider, { delayDuration: 400, children: _jsx("main", { className: "styled-scroll", children: _jsxs("div", { className: `flex flex-col items-center overflow-hidden relative font-robo`, children: [_jsx(Toaster, { position: "top-center", toastOptions: {
|
|
6
|
+
return _jsx(TooltipProvider, { delayDuration: 400, children: _jsx("main", { className: "styled-scroll h-full", children: _jsxs("div", { className: `flex flex-col items-center overflow-hidden relative font-robo h-full`, children: [_jsx(Toaster, { position: "top-center", toastOptions: {
|
|
7
7
|
duration: 5000,
|
|
8
8
|
style: {
|
|
9
9
|
background: 'rgb(var(--ls-colors-secondary-600))',
|
|
@@ -13,5 +13,5 @@ export default function ThemeWrapper({ children }) {
|
|
|
13
13
|
error: {
|
|
14
14
|
duration: Infinity,
|
|
15
15
|
},
|
|
16
|
-
}, children: (t) => (_jsx(ToastBar, { toast: t, children: ({ icon, message }) => (_jsxs(_Fragment, { children: [icon, message, t.type !== 'loading' && (_jsx("button", { type: "button", onClick: () => toast.dismiss(t.id), children: _jsx(X, { className: "h-5" }) }))] })) })) }), _jsx("div", { className: "w-full h-full max-w-
|
|
16
|
+
}, children: (t) => (_jsx(ToastBar, { toast: t, children: ({ icon, message }) => (_jsxs(_Fragment, { children: [icon, message, t.type !== 'loading' && (_jsx("button", { type: "button", onClick: () => toast.dismiss(t.id), children: _jsx(X, { className: "h-5" }) }))] })) })) }), _jsx("div", { className: "w-full h-full max-w-[472px] z-auto", children: _jsx("div", { className: "flex h-full content-center items-center justify-center flex-col container", children: _jsx("div", { className: "h-full w-full text-primary-text", children: children }) }) }), _jsx("div", { id: "offset-for-stickyness", className: "block md:hidden" })] }) }) });
|
|
17
17
|
}
|
|
@@ -25,6 +25,7 @@ const LayerswapProviderComponent = ({ children, callbacks, config, walletProvide
|
|
|
25
25
|
themeData = { ...THEME_COLORS['default'], ...config?.theme };
|
|
26
26
|
AppSettings.ApiVersion = version || AppSettings.ApiVersion;
|
|
27
27
|
AppSettings.ImtblPassportConfig = imtblPassport;
|
|
28
|
+
AppSettings.TonClientConfig = config?.tonConfigs || AppSettings.TonClientConfig;
|
|
28
29
|
AppSettings.WalletConnectConfig = config?.walletConnect || AppSettings.WalletConnectConfig;
|
|
29
30
|
AppSettings.ThemeData = themeData;
|
|
30
31
|
if (apiKey)
|
|
@@ -46,5 +47,5 @@ const LayerswapProviderComponent = ({ children, callbacks, config, walletProvide
|
|
|
46
47
|
return (_jsx(IntercomProvider, { appId: INTERCOM_APP_ID, initializeDelay: 2500, children: _jsx(SettingsProvider, { initialLayerswapData: appSettings, initialSettings: config?.initialValues, children: _jsx(CallbackProvider, { callbacks: callbacks, children: _jsx(ErrorBoundary, { FallbackComponent: ErrorFallback, children: _jsx(ThemeWrapper, { children: _jsx(WalletsProviders, { appName: initialValues?.appName, themeData: themeData, walletProviders: walletProviders, children: _jsx(ResolverProviders, { walletProviders: walletProviders, children: _jsx(BalanceAccountsProvider, { children: _jsx(AsyncModalProvider, { children: children }) }) }) }) }) }) }) }) }));
|
|
47
48
|
};
|
|
48
49
|
export const LayerswapProvider = (props) => {
|
|
49
|
-
return (_jsxs(_Fragment, { children: [_jsx(ColorSchema, { themeData: props.config?.theme }), _jsx("div", { style: { backgroundColor: 'transparent' }, className: "layerswap-styles", children: _jsx(LayerswapProviderComponent, { ...props, children: props.children }) })] }));
|
|
50
|
+
return (_jsxs(_Fragment, { children: [_jsx(ColorSchema, { themeData: props.config?.theme }), _jsx("div", { style: { backgroundColor: 'transparent', height: '100%' }, className: "layerswap-styles", children: _jsx(LayerswapProviderComponent, { ...props, children: props.children }) })] }));
|
|
50
51
|
};
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import
|
|
2
|
-
import LayerSwapApiClient from "../lib/apiClients/layerSwapApiClient";
|
|
1
|
+
import LayerSwapApiClient from "../../lib/apiClients/layerSwapApiClient";
|
|
3
2
|
export async function getSettings(apiKey) {
|
|
4
3
|
const apiClient = new LayerSwapApiClient();
|
|
5
4
|
LayerSwapApiClient.apiKey = apiKey;
|
|
@@ -17,17 +16,3 @@ export async function getSettings(apiKey) {
|
|
|
17
16
|
};
|
|
18
17
|
return settings;
|
|
19
18
|
}
|
|
20
|
-
export function useSettings(apiKey) {
|
|
21
|
-
const [loading, setLoading] = useState(true);
|
|
22
|
-
const [settings, setSettings] = useState(null);
|
|
23
|
-
useEffect(() => {
|
|
24
|
-
(async () => {
|
|
25
|
-
const settings = await getSettings(apiKey);
|
|
26
|
-
if (!settings)
|
|
27
|
-
throw new Error('Failed to fetch settings');
|
|
28
|
-
setSettings(settings);
|
|
29
|
-
setLoading(false);
|
|
30
|
-
})();
|
|
31
|
-
}, []);
|
|
32
|
-
return { settings, loading };
|
|
33
|
-
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import { useEffect, useState } from "react";
|
|
3
|
+
import { getSettings } from "./getSettings";
|
|
4
|
+
export function useSettings(apiKey) {
|
|
5
|
+
const [loading, setLoading] = useState(true);
|
|
6
|
+
const [settings, setSettings] = useState(null);
|
|
7
|
+
useEffect(() => {
|
|
8
|
+
(async () => {
|
|
9
|
+
const settings = await getSettings(apiKey);
|
|
10
|
+
if (!settings)
|
|
11
|
+
throw new Error('Failed to fetch settings');
|
|
12
|
+
setSettings(settings);
|
|
13
|
+
setLoading(false);
|
|
14
|
+
})();
|
|
15
|
+
}, []);
|
|
16
|
+
return { settings, loading };
|
|
17
|
+
}
|
|
@@ -19,6 +19,7 @@ AppSettings.WalletConnectConfig = {
|
|
|
19
19
|
};
|
|
20
20
|
AppSettings.TonClientConfig = {
|
|
21
21
|
tonApiKey: 'ac793ea74c19105d617dfbeedb827f1b267b4e91f1b15b2420d003ec49722c82',
|
|
22
|
+
manifestUrl: `https://layerswap.io/app/tonconnect-manifest.json`
|
|
22
23
|
};
|
|
23
24
|
AppSettings.ImtblPassportConfig = {
|
|
24
25
|
publishableKey: "",
|