@aurora-is-near/intents-swap-widget 2.13.0 → 2.14.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/README.md +9 -1
- package/dist/features/ExternalDeposit.js +2 -3
- package/dist/features/ExternalDeposit.js.map +1 -1
- package/dist/features/SendAddress/index.js +7 -8
- package/dist/features/SendAddress/index.js.map +1 -1
- package/dist/features/TokensModal.js +6 -7
- package/dist/features/TokensModal.js.map +1 -1
- package/dist/hooks/useMakeQuoteTransfer.js +6 -7
- package/dist/hooks/useMakeQuoteTransfer.js.map +1 -1
- package/dist/styles.css +1 -1
- package/dist/utils/evm/isEvmToken.js +394 -4
- package/dist/utils/evm/isEvmToken.js.map +1 -1
- package/dist/widgets/WidgetDeposit/WidgetDepositContent.js +2 -3
- package/dist/widgets/WidgetDeposit/WidgetDepositContent.js.map +1 -1
- package/dist/widgets/WidgetSwap/WidgetSwapContent.js +2 -3
- package/dist/widgets/WidgetSwap/WidgetSwapContent.js.map +1 -1
- package/dist/widgets/WidgetWithdraw/WidgetWithdrawContent.js +2 -3
- package/dist/widgets/WidgetWithdraw/WidgetWithdrawContent.js.map +1 -1
- package/package.json +11 -5
- package/src/features/TokensModal.tsx +1 -1
package/README.md
CHANGED
|
@@ -123,7 +123,15 @@ The available keys can be found in the `types/localisation.ts` file.
|
|
|
123
123
|
## Development
|
|
124
124
|
|
|
125
125
|
If you want to make changes to the package and submit PRs, the repository
|
|
126
|
-
includes a demo application
|
|
126
|
+
includes a demo application that includes various example widget implementations.
|
|
127
|
+
|
|
128
|
+
To run it you will first need to create an `.env` file:
|
|
129
|
+
|
|
130
|
+
```sh
|
|
131
|
+
cp .env.example .env
|
|
132
|
+
```
|
|
133
|
+
|
|
134
|
+
Fill it with the relevant values, then run:
|
|
127
135
|
|
|
128
136
|
```sh
|
|
129
137
|
yarn dev
|
|
@@ -5,7 +5,6 @@ import { GetExecutionStatusResponse as s } from "@defuse-protocol/one-click-sdk-
|
|
|
5
5
|
import * as S from "lucide-react";
|
|
6
6
|
import { isNotEmptyAmount as x } from "../utils/checkers/isNotEmptyAmount.js";
|
|
7
7
|
import { CHAIN_IDS_MAP as g } from "../constants/chains.js";
|
|
8
|
-
import "viem";
|
|
9
8
|
import "ethers";
|
|
10
9
|
import { getTransactionLink as w } from "../utils/formatters/getTransactionLink.js";
|
|
11
10
|
import { formatAddressTruncate as h } from "../utils/formatters/formatAddressTruncate.js";
|
|
@@ -47,7 +46,7 @@ const d = ({ address: r }) => /* @__PURE__ */ u("div", { className: "flex flex-c
|
|
|
47
46
|
/* @__PURE__ */ t("span", { className: "text-sw-gray-100 text-label-s", children: x(n.sourceTokenAmount) ? r("deposit.external.loading.fetching", "Fetching new address") : r("deposit.external.loading.waiting", "Waiting for token amount") })
|
|
48
47
|
] })
|
|
49
48
|
] });
|
|
50
|
-
},
|
|
49
|
+
}, ot = ({ onMsg: r }) => {
|
|
51
50
|
const { t: n } = f(), { ctx: a } = p(), l = T(a, [
|
|
52
51
|
"quote_success_external",
|
|
53
52
|
"quote_success_internal"
|
|
@@ -145,6 +144,6 @@ const d = ({ address: r }) => /* @__PURE__ */ u("div", { className: "flex flex-c
|
|
|
145
144
|
}
|
|
146
145
|
};
|
|
147
146
|
export {
|
|
148
|
-
|
|
147
|
+
ot as ExternalDeposit
|
|
149
148
|
};
|
|
150
149
|
//# sourceMappingURL=ExternalDeposit.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ExternalDeposit.js","sources":["../../src/features/ExternalDeposit.tsx"],"sourcesContent":["import { useEffect } from 'react';\nimport { QRCodeSVG } from 'qrcode.react';\nimport { GetExecutionStatusResponse } from '@defuse-protocol/one-click-sdk-typescript';\nimport * as Icons from 'lucide-react';\n\nimport { notReachable } from '@/utils';\nimport { CHAIN_IDS_MAP } from '@/constants/chains';\nimport { useExternalDepositStatus } from '@/hooks';\nimport { useTypedTranslation } from '@/localisation';\nimport { CopyButton, StatusWidget } from '@/components';\nimport { fireEvent, guardStates, moveTo, useUnsafeSnapshot } from '@/machine';\nimport { formatAddressTruncate } from '@/utils/formatters/formatAddressTruncate';\nimport { getTransactionLink } from '@/utils/formatters/getTransactionLink';\nimport { isNotEmptyAmount } from '@/utils/checkers/isNotEmptyAmount';\nimport type { TransferResult } from '@/types';\n\ntype Msg =\n | { type: 'on_transaction_received' }\n | { type: 'on_successful_transfer'; transferResult: TransferResult };\n\ntype Props = {\n onMsg: (msg: Msg) => void;\n};\n\nconst QrCode = ({ address }: { address: string }) => (\n <div className=\"flex flex-col gap-sw-2xl items-center\">\n <div className=\"p-sw-lg m-sw-lg mx-auto w-fit rounded-md bg-white\">\n <QRCodeSVG size={156} value={address} fgColor=\"#31343d\" />\n </div>\n <div className=\"py-sw-lg px-sw-lg w-full flex items-center justify-between rounded-md bg-sw-gray-600\">\n <span className=\"text-label-m text-sw-gray-100\">\n {formatAddressTruncate(address, 42)}\n </span>\n <CopyButton value={address} />\n </div>\n </div>\n);\n\nconst Skeleton = () => {\n const { t } = useTypedTranslation();\n const { ctx } = useUnsafeSnapshot();\n\n return (\n <div className=\"flex flex-col gap-sw-2xl items-center\">\n <div className=\"bg-sw-gray-600 h-[180px] w-[180px] animate-pulse rounded-md\" />\n <div className=\"bg-sw-gray-600 h-[44px] w-full animate-pulse rounded-md flex items-center justify-center gap-sw-sm\">\n <Icons.Loader className=\"animate-spin text-sw-gray-100 h-sw-lg w-sw-lg\" />\n <span className=\"text-sw-gray-100 text-label-s\">\n {!isNotEmptyAmount(ctx.sourceTokenAmount)\n ? t('deposit.external.loading.waiting', 'Waiting for token amount')\n : t('deposit.external.loading.fetching', 'Fetching new address')}\n </span>\n </div>\n </div>\n );\n};\n\nexport const ExternalDeposit = ({ onMsg }: Props) => {\n const { t } = useTypedTranslation();\n const { ctx } = useUnsafeSnapshot();\n\n const isValidState = guardStates(ctx, [\n 'quote_success_external',\n 'quote_success_internal',\n ]);\n\n const depositStatusQuery = useExternalDepositStatus(\n isValidState ? ctx.quote.depositAddress : '',\n );\n\n useEffect(() => {\n if (\n depositStatusQuery.status === 'success' &&\n depositStatusQuery.data?.status ===\n GetExecutionStatusResponse.status.PROCESSING\n ) {\n onMsg({ type: 'on_transaction_received' });\n }\n }, [depositStatusQuery, onMsg]);\n\n useEffect(() => {\n if (\n depositStatusQuery.status === 'success' &&\n depositStatusQuery.data?.status ===\n GetExecutionStatusResponse.status.SUCCESS\n ) {\n const txHash =\n depositStatusQuery.data.swapDetails.destinationChainTxHashes[0]?.hash;\n\n fireEvent('transferSetStatus', { status: 'success' });\n moveTo('transfer_success');\n\n onMsg({\n type: 'on_successful_transfer',\n transferResult: {\n hash: txHash ?? '',\n intent: depositStatusQuery.data.swapDetails.intentHashes[0],\n transactionLink:\n (ctx.sourceToken &&\n txHash &&\n getTransactionLink(\n CHAIN_IDS_MAP[ctx.sourceToken.blockchain],\n txHash,\n )) ??\n '',\n },\n });\n }\n }, [depositStatusQuery, ctx.sourceToken]);\n\n useEffect(() => {\n switch (depositStatusQuery.data?.status) {\n case GetExecutionStatusResponse.status.FAILED:\n fireEvent('transferSetStatus', { status: 'error' });\n fireEvent('errorSet', { code: 'EXTERNAL_TRANSFER_FAILED' });\n break;\n case GetExecutionStatusResponse.status.INCOMPLETE_DEPOSIT:\n fireEvent('transferSetStatus', { status: 'error' });\n fireEvent('errorSet', { code: 'EXTERNAL_TRANSFER_INCOMPLETE' });\n break;\n case GetExecutionStatusResponse.status.REFUNDED:\n fireEvent('transferSetStatus', { status: 'error' });\n fireEvent('errorSet', { code: 'EXTERNAL_TRANSFER_REFUNDED' });\n break;\n default:\n break;\n }\n }, []);\n\n if (!isValidState) {\n return <Skeleton />;\n }\n\n if (!depositStatusQuery.data) {\n return <QrCode address={ctx.quote.depositAddress} />;\n }\n\n switch (depositStatusQuery.status) {\n case 'error':\n return (\n <StatusWidget.Error\n message={t(\n 'deposit.external.error.noStatus',\n 'Unable to check transfer status',\n )}\n />\n );\n\n case 'success': {\n switch (depositStatusQuery.data.status) {\n case GetExecutionStatusResponse.status.FAILED:\n return (\n <StatusWidget.Error\n message={t(\n 'deposit.external.error.noStatus',\n 'Unable to check transfer status',\n )}\n />\n );\n case GetExecutionStatusResponse.status.INCOMPLETE_DEPOSIT:\n return (\n <StatusWidget.Error\n message={t(\n 'deposit.external.error.incomplete',\n 'Incomplete deposit',\n )}\n />\n );\n case GetExecutionStatusResponse.status.REFUNDED:\n return (\n <StatusWidget.Error\n message={t(\n 'deposit.external.error.failed',\n 'Deposit failed. You were refunded.',\n )}\n />\n );\n case GetExecutionStatusResponse.status.PROCESSING:\n case GetExecutionStatusResponse.status.KNOWN_DEPOSIT_TX:\n return <StatusWidget.Success />;\n case GetExecutionStatusResponse.status.PENDING_DEPOSIT:\n return <QrCode address={ctx.quote.depositAddress} />;\n case GetExecutionStatusResponse.status.SUCCESS:\n return <StatusWidget.Success />;\n default:\n return null;\n }\n }\n\n default:\n return notReachable(depositStatusQuery);\n }\n};\n"],"names":["QrCode","address","jsxs","jsx","QRCodeSVG","formatAddressTruncate","CopyButton","Skeleton","t","useTypedTranslation","ctx","useUnsafeSnapshot","Icons","isNotEmptyAmount","ExternalDeposit","onMsg","isValidState","guardStates","depositStatusQuery","useExternalDepositStatus","useEffect","GetExecutionStatusResponse","txHash","fireEvent","moveTo","getTransactionLink","CHAIN_IDS_MAP","StatusWidget","notReachable"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAwBA,MAAMA,IAAS,CAAC,EAAE,SAAAC,QAChB,gBAAAC,EAAC,OAAA,EAAI,WAAU,yCACb,UAAA;AAAA,EAAA,gBAAAC,EAAC,OAAA,EAAI,WAAU,qDACb,UAAA,gBAAAA,EAACC,GAAA,EAAU,MAAM,KAAK,OAAOH,GAAS,SAAQ,UAAA,CAAU,GAC1D;AAAA,EACA,gBAAAC,EAAC,OAAA,EAAI,WAAU,wFACb,UAAA;AAAA,IAAA,gBAAAC,EAAC,UAAK,WAAU,iCACb,UAAAE,E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AQU,EAAmB,KAAK,QAAA;AAAA,QAC9B,KAAKG,EAA2B,OAAO;AACrC,iBACE,gBAAAlB;AAAA,YAACwB,EAAa;AAAA,YAAb;AAAA,cACC,SAASnB;AAAA,gBACP;AAAA,gBACA;AAAA,cAAA;AAAA,YACF;AAAA,UAAA;AAAA,QAGN,KAAKa,EAA2B,OAAO;AACrC,iBACE,gBAAAlB;AAAA,YAACwB,EAAa;AAAA,YAAb;AAAA,cACC,SAASnB;AAAA,gBACP;AAAA,gBACA;AAAA,cAAA;AAAA,YACF;AAAA,UAAA;AAAA,QAGN,KAAKa,EAA2B,OAAO;AACrC,iBACE,gBAAAlB;AAAA,YAACwB,EAAa;AAAA,YAAb;AAAA,cACC,SAASnB;AAAA,gBACP;AAAA,gBACA;AAAA,cAAA;AAAA,YACF;AAAA,UAAA;AAAA,QAGN,KAAKa,EAA2B,OAAO;AAAA,QACvC,KAAKA,EAA2B,OAAO;AACrC,iBAAO,gBAAAlB,EAACwB,EAAa,SAAb,EAAqB;AAAA,QAC/B,KAAKN,EAA2B,OAAO;AACrC,iBAAO,gBAAAlB,EAACH,GAAA,EAAO,SAASU,EAAI,MAAM,gBAAgB;AAAA,QACpD,KAAKW,EAA2B,OAAO;AACrC,iBAAO,gBAAAlB,EAACwB,EAAa,SAAb,EAAqB;AAAA,QAC/B;AACE,iBAAO;AAAA,MAAA;AAAA,IAIb;AACE,aAAOC,EAAaV,CAAkB;AAAA,EAAA;AAE5C;"}
|
|
1
|
+
{"version":3,"file":"ExternalDeposit.js","sources":["../../src/features/ExternalDeposit.tsx"],"sourcesContent":["import { useEffect } from 'react';\nimport { QRCodeSVG } from 'qrcode.react';\nimport { GetExecutionStatusResponse } from '@defuse-protocol/one-click-sdk-typescript';\nimport * as Icons from 'lucide-react';\n\nimport { notReachable } from '@/utils';\nimport { CHAIN_IDS_MAP } from '@/constants/chains';\nimport { useExternalDepositStatus } from '@/hooks';\nimport { useTypedTranslation } from '@/localisation';\nimport { CopyButton, StatusWidget } from '@/components';\nimport { fireEvent, guardStates, moveTo, useUnsafeSnapshot } from '@/machine';\nimport { formatAddressTruncate } from '@/utils/formatters/formatAddressTruncate';\nimport { getTransactionLink } from '@/utils/formatters/getTransactionLink';\nimport { isNotEmptyAmount } from '@/utils/checkers/isNotEmptyAmount';\nimport type { TransferResult } from '@/types';\n\ntype Msg =\n | { type: 'on_transaction_received' }\n | { type: 'on_successful_transfer'; transferResult: TransferResult };\n\ntype Props = {\n onMsg: (msg: Msg) => void;\n};\n\nconst QrCode = ({ address }: { address: string }) => (\n <div className=\"flex flex-col gap-sw-2xl items-center\">\n <div className=\"p-sw-lg m-sw-lg mx-auto w-fit rounded-md bg-white\">\n <QRCodeSVG size={156} value={address} fgColor=\"#31343d\" />\n </div>\n <div className=\"py-sw-lg px-sw-lg w-full flex items-center justify-between rounded-md bg-sw-gray-600\">\n <span className=\"text-label-m text-sw-gray-100\">\n {formatAddressTruncate(address, 42)}\n </span>\n <CopyButton value={address} />\n </div>\n </div>\n);\n\nconst Skeleton = () => {\n const { t } = useTypedTranslation();\n const { ctx } = useUnsafeSnapshot();\n\n return (\n <div className=\"flex flex-col gap-sw-2xl items-center\">\n <div className=\"bg-sw-gray-600 h-[180px] w-[180px] animate-pulse rounded-md\" />\n <div className=\"bg-sw-gray-600 h-[44px] w-full animate-pulse rounded-md flex items-center justify-center gap-sw-sm\">\n <Icons.Loader className=\"animate-spin text-sw-gray-100 h-sw-lg w-sw-lg\" />\n <span className=\"text-sw-gray-100 text-label-s\">\n {!isNotEmptyAmount(ctx.sourceTokenAmount)\n ? t('deposit.external.loading.waiting', 'Waiting for token amount')\n : t('deposit.external.loading.fetching', 'Fetching new address')}\n </span>\n </div>\n </div>\n );\n};\n\nexport const ExternalDeposit = ({ onMsg }: Props) => {\n const { t } = useTypedTranslation();\n const { ctx } = useUnsafeSnapshot();\n\n const isValidState = guardStates(ctx, [\n 'quote_success_external',\n 'quote_success_internal',\n ]);\n\n const depositStatusQuery = useExternalDepositStatus(\n isValidState ? ctx.quote.depositAddress : '',\n );\n\n useEffect(() => {\n if (\n depositStatusQuery.status === 'success' &&\n depositStatusQuery.data?.status ===\n GetExecutionStatusResponse.status.PROCESSING\n ) {\n onMsg({ type: 'on_transaction_received' });\n }\n }, [depositStatusQuery, onMsg]);\n\n useEffect(() => {\n if (\n depositStatusQuery.status === 'success' &&\n depositStatusQuery.data?.status ===\n GetExecutionStatusResponse.status.SUCCESS\n ) {\n const txHash =\n depositStatusQuery.data.swapDetails.destinationChainTxHashes[0]?.hash;\n\n fireEvent('transferSetStatus', { status: 'success' });\n moveTo('transfer_success');\n\n onMsg({\n type: 'on_successful_transfer',\n transferResult: {\n hash: txHash ?? '',\n intent: depositStatusQuery.data.swapDetails.intentHashes[0],\n transactionLink:\n (ctx.sourceToken &&\n txHash &&\n getTransactionLink(\n CHAIN_IDS_MAP[ctx.sourceToken.blockchain],\n txHash,\n )) ??\n '',\n },\n });\n }\n }, [depositStatusQuery, ctx.sourceToken]);\n\n useEffect(() => {\n switch (depositStatusQuery.data?.status) {\n case GetExecutionStatusResponse.status.FAILED:\n fireEvent('transferSetStatus', { status: 'error' });\n fireEvent('errorSet', { code: 'EXTERNAL_TRANSFER_FAILED' });\n break;\n case GetExecutionStatusResponse.status.INCOMPLETE_DEPOSIT:\n fireEvent('transferSetStatus', { status: 'error' });\n fireEvent('errorSet', { code: 'EXTERNAL_TRANSFER_INCOMPLETE' });\n break;\n case GetExecutionStatusResponse.status.REFUNDED:\n fireEvent('transferSetStatus', { status: 'error' });\n fireEvent('errorSet', { code: 'EXTERNAL_TRANSFER_REFUNDED' });\n break;\n default:\n break;\n }\n }, []);\n\n if (!isValidState) {\n return <Skeleton />;\n }\n\n if (!depositStatusQuery.data) {\n return <QrCode address={ctx.quote.depositAddress} />;\n }\n\n switch (depositStatusQuery.status) {\n case 'error':\n return (\n <StatusWidget.Error\n message={t(\n 'deposit.external.error.noStatus',\n 'Unable to check transfer status',\n )}\n />\n );\n\n case 'success': {\n switch (depositStatusQuery.data.status) {\n case GetExecutionStatusResponse.status.FAILED:\n return (\n <StatusWidget.Error\n message={t(\n 'deposit.external.error.noStatus',\n 'Unable to check transfer status',\n )}\n />\n );\n case GetExecutionStatusResponse.status.INCOMPLETE_DEPOSIT:\n return (\n <StatusWidget.Error\n message={t(\n 'deposit.external.error.incomplete',\n 'Incomplete deposit',\n )}\n />\n );\n case GetExecutionStatusResponse.status.REFUNDED:\n return (\n <StatusWidget.Error\n message={t(\n 'deposit.external.error.failed',\n 'Deposit failed. You were refunded.',\n )}\n />\n );\n case GetExecutionStatusResponse.status.PROCESSING:\n case GetExecutionStatusResponse.status.KNOWN_DEPOSIT_TX:\n return <StatusWidget.Success />;\n case GetExecutionStatusResponse.status.PENDING_DEPOSIT:\n return <QrCode address={ctx.quote.depositAddress} />;\n case GetExecutionStatusResponse.status.SUCCESS:\n return <StatusWidget.Success />;\n default:\n return null;\n }\n }\n\n default:\n return notReachable(depositStatusQuery);\n }\n};\n"],"names":["QrCode","address","jsxs","jsx","QRCodeSVG","formatAddressTruncate","CopyButton","Skeleton","t","useTypedTranslation","ctx","useUnsafeSnapshot","Icons","isNotEmptyAmount","ExternalDeposit","onMsg","isValidState","guardStates","depositStatusQuery","useExternalDepositStatus","useEffect","GetExecutionStatusResponse","txHash","fireEvent","moveTo","getTransactionLink","CHAIN_IDS_MAP","StatusWidget","notReachable"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAwBA,MAAMA,IAAS,CAAC,EAAE,SAAAC,QAChB,gBAAAC,EAAC,OAAA,EAAI,WAAU,yCACb,UAAA;AAAA,EAAA,gBAAAC,EAAC,OAAA,EAAI,WAAU,qDACb,UAAA,gBAAAA,EAACC,GAAA,EAAU,MAAM,KAAK,OAAOH,GAAS,SAAQ,UAAA,CAAU,GAC1D;AAAA,EACA,gBAAAC,EAAC,OAAA,EAAI,WAAU,wFACb,UAAA;AAAA,IAAA,gBAAAC,EAAC,UAAK,WAAU,iCACb,UAA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H,cAAQU,EAAmB,KAAK,QAAA;AAAA,QAC9B,KAAKG,EAA2B,OAAO;AACrC,iBACE,gBAAAlB;AAAA,YAACwB,EAAa;AAAA,YAAb;AAAA,cACC,SAASnB;AAAA,gBACP;AAAA,gBACA;AAAA,cAAA;AAAA,YACF;AAAA,UAAA;AAAA,QAGN,KAAKa,EAA2B,OAAO;AACrC,iBACE,gBAAAlB;AAAA,YAACwB,EAAa;AAAA,YAAb;AAAA,cACC,SAASnB;AAAA,gBACP;AAAA,gBACA;AAAA,cAAA;AAAA,YACF;AAAA,UAAA;AAAA,QAGN,KAAKa,EAA2B,OAAO;AACrC,iBACE,gBAAAlB;AAAA,YAACwB,EAAa;AAAA,YAAb;AAAA,cACC,SAASnB;AAAA,gBACP;AAAA,gBACA;AAAA,cAAA;AAAA,YACF;AAAA,UAAA;AAAA,QAGN,KAAKa,EAA2B,OAAO;AAAA,QACvC,KAAKA,EAA2B,OAAO;AACrC,iBAAO,gBAAAlB,EAACwB,EAAa,SAAb,EAAqB;AAAA,QAC/B,KAAKN,EAA2B,OAAO;AACrC,iBAAO,gBAAAlB,EAACH,GAAA,EAAO,SAASU,EAAI,MAAM,gBAAgB;AAAA,QACpD,KAAKW,EAA2B,OAAO;AACrC,iBAAO,gBAAAlB,EAACwB,EAAa,SAAb,EAAqB;AAAA,QAC/B;AACE,iBAAO;AAAA,MAAA;AAAA,IAIb;AACE,aAAOC,EAAaV,CAAkB;AAAA,EAAA;AAE5C;"}
|
|
@@ -10,13 +10,12 @@ import "../../machine/machine.js";
|
|
|
10
10
|
import { fireEvent as a } from "../../machine/events/utils/fireEvent.js";
|
|
11
11
|
import { useTypedTranslation as S } from "../../localisation.js";
|
|
12
12
|
import "../../constants/chains.js";
|
|
13
|
-
import "viem";
|
|
14
13
|
import { cn as b } from "../../utils/cn.js";
|
|
15
14
|
import { useNotification as y } from "./useNotification.js";
|
|
16
|
-
const
|
|
17
|
-
const { t: l } = S(), { ctx: e } = k(), { walletSupportedChains: c } = C(),
|
|
18
|
-
const
|
|
19
|
-
a("addressSet",
|
|
15
|
+
const W = ({ error: n, className: i, onMsg: d }) => {
|
|
16
|
+
const { t: l } = S(), { ctx: e } = k(), { walletSupportedChains: c } = C(), s = y(n), m = e.targetToken && !e.sendAddress && c.includes(e.targetToken.blockchain), p = (f) => {
|
|
17
|
+
const r = f.target.value;
|
|
18
|
+
a("addressSet", r), d({ type: "on_change_send_address", address: r });
|
|
20
19
|
};
|
|
21
20
|
return /* @__PURE__ */ o(h, { className: b("gap-sw-lg flex flex-col", i), children: [
|
|
22
21
|
/* @__PURE__ */ t("h5", { className: "text-sw-label-m text-sw-gray-50", children: "Send to" }),
|
|
@@ -24,7 +23,7 @@ const q = ({ error: n, className: i, onMsg: d }) => {
|
|
|
24
23
|
g,
|
|
25
24
|
{
|
|
26
25
|
defaultValue: e.sendAddress,
|
|
27
|
-
state:
|
|
26
|
+
state: s?.state ?? "default",
|
|
28
27
|
placeholder: l(
|
|
29
28
|
"wallet.recipient.placeholder",
|
|
30
29
|
"Enter recipient wallet address"
|
|
@@ -46,10 +45,10 @@ const q = ({ error: n, className: i, onMsg: d }) => {
|
|
|
46
45
|
)
|
|
47
46
|
}
|
|
48
47
|
),
|
|
49
|
-
|
|
48
|
+
s && /* @__PURE__ */ t(w, { ...s })
|
|
50
49
|
] });
|
|
51
50
|
};
|
|
52
51
|
export {
|
|
53
|
-
|
|
52
|
+
W as SendAddress
|
|
54
53
|
};
|
|
55
54
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../src/features/SendAddress/index.tsx"],"sourcesContent":["import * as Icons from 'lucide-react';\nimport type { ChangeEvent } from 'react';\n\nimport { Card } from '@/components/Card';\nimport { Input } from '@/components/Input';\nimport { Banner } from '@/components/Banner';\nimport { Badge } from '@/components/Badge';\n\nimport { useConfig } from '@/config';\nimport { fireEvent } from '@/machine';\nimport { useTypedTranslation } from '@/localisation';\nimport { useUnsafeSnapshot } from '@/machine/snap';\nimport { cn } from '@/utils';\n\nimport { useNotification } from './useNotification';\n\ntype Msg = { type: 'on_change_send_address'; address: string };\n\ntype Props = {\n error?: string;\n className?: string;\n onMsg: (msg: Msg) => void;\n};\n\nexport const SendAddress = ({ error, className, onMsg }: Props) => {\n const { t } = useTypedTranslation();\n const { ctx } = useUnsafeSnapshot();\n const { walletSupportedChains } = useConfig();\n\n const notification = useNotification(error);\n\n const showMagicButton =\n ctx.targetToken &&\n !ctx.sendAddress &&\n walletSupportedChains.includes(ctx.targetToken.blockchain);\n\n const onChange = (e: ChangeEvent<HTMLInputElement>) => {\n const address = e.target.value;\n\n fireEvent('addressSet', address);\n onMsg({ type: 'on_change_send_address', address });\n };\n\n return (\n <Card className={cn('gap-sw-lg flex flex-col', className)}>\n <h5 className=\"text-sw-label-m text-sw-gray-50\">Send to</h5>\n <Input\n defaultValue={ctx.sendAddress}\n state={notification?.state ?? 'default'}\n placeholder={t(\n 'wallet.recipient.placeholder',\n 'Enter recipient wallet address',\n )}\n onChange={onChange}>\n {!!showMagicButton && (\n <Badge\n isClickable\n size=\"md\"\n variant=\"primary\"\n className=\"absolute right-0\"\n onClick={() => fireEvent('addressSet', ctx.walletAddress ?? '')}>\n <Icons.Wand2 size={12} />\n My wallet\n </Badge>\n )}\n </Input>\n\n {notification && <Banner {...notification} />}\n </Card>\n );\n};\n"],"names":["SendAddress","error","className","onMsg","t","useTypedTranslation","ctx","useUnsafeSnapshot","walletSupportedChains","useConfig","notification","useNotification","showMagicButton","onChange","e","address","fireEvent","Card","cn","jsx","Input","jsxs","Badge","Icons","Banner"],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../src/features/SendAddress/index.tsx"],"sourcesContent":["import * as Icons from 'lucide-react';\nimport type { ChangeEvent } from 'react';\n\nimport { Card } from '@/components/Card';\nimport { Input } from '@/components/Input';\nimport { Banner } from '@/components/Banner';\nimport { Badge } from '@/components/Badge';\n\nimport { useConfig } from '@/config';\nimport { fireEvent } from '@/machine';\nimport { useTypedTranslation } from '@/localisation';\nimport { useUnsafeSnapshot } from '@/machine/snap';\nimport { cn } from '@/utils';\n\nimport { useNotification } from './useNotification';\n\ntype Msg = { type: 'on_change_send_address'; address: string };\n\ntype Props = {\n error?: string;\n className?: string;\n onMsg: (msg: Msg) => void;\n};\n\nexport const SendAddress = ({ error, className, onMsg }: Props) => {\n const { t } = useTypedTranslation();\n const { ctx } = useUnsafeSnapshot();\n const { walletSupportedChains } = useConfig();\n\n const notification = useNotification(error);\n\n const showMagicButton =\n ctx.targetToken &&\n !ctx.sendAddress &&\n walletSupportedChains.includes(ctx.targetToken.blockchain);\n\n const onChange = (e: ChangeEvent<HTMLInputElement>) => {\n const address = e.target.value;\n\n fireEvent('addressSet', address);\n onMsg({ type: 'on_change_send_address', address });\n };\n\n return (\n <Card className={cn('gap-sw-lg flex flex-col', className)}>\n <h5 className=\"text-sw-label-m text-sw-gray-50\">Send to</h5>\n <Input\n defaultValue={ctx.sendAddress}\n state={notification?.state ?? 'default'}\n placeholder={t(\n 'wallet.recipient.placeholder',\n 'Enter recipient wallet address',\n )}\n onChange={onChange}>\n {!!showMagicButton && (\n <Badge\n isClickable\n size=\"md\"\n variant=\"primary\"\n className=\"absolute right-0\"\n onClick={() => fireEvent('addressSet', ctx.walletAddress ?? '')}>\n <Icons.Wand2 size={12} />\n My wallet\n </Badge>\n )}\n </Input>\n\n {notification && <Banner {...notification} />}\n </Card>\n );\n};\n"],"names":["SendAddress","error","className","onMsg","t","useTypedTranslation","ctx","useUnsafeSnapshot","walletSupportedChains","useConfig","notification","useNotification","showMagicButton","onChange","e","address","fireEvent","Card","cn","jsx","Input","jsxs","Badge","Icons","Banner"],"mappings":";;;;;;;;;;;;;;AAwBO,MAAMA,IAAc,CAAC,EAAE,OAAAC,GAAO,WAAAC,GAAW,OAAAC,QAAmB;AACjE,QAAM,EAAE,GAAAC,EAAA,IAAMC,EAAA,GACR,EAAE,KAAAC,EAAA,IAAQC,EAAA,GACV,EAAE,uBAAAC,EAAA,IAA0BC,EAAA,GAE5BC,IAAeC,EAAgBV,CAAK,GAEpCW,IACJN,EAAI,eACJ,CAACA,EAAI,eACLE,EAAsB,SAASF,EAAI,YAAY,UAAU,GAErDO,IAAW,CAACC,MAAqC;AACrD,UAAMC,IAAUD,EAAE,OAAO;AAEzB,IAAAE,EAAU,cAAcD,CAAO,GAC/BZ,EAAM,EAAE,MAAM,0BAA0B,SAAAY,EAAA,CAAS;AAAA,EACnD;AAEA,2BACGE,GAAA,EAAK,WAAWC,EAAG,2BAA2BhB,CAAS,GACtD,UAAA;AAAA,IAAA,gBAAAiB,EAAC,MAAA,EAAG,WAAU,mCAAkC,UAAA,WAAO;AAAA,IACvD,gBAAAA;AAAA,MAACC;AAAA,MAAA;AAAA,QACC,cAAcd,EAAI;AAAA,QAClB,OAAOI,GAAc,SAAS;AAAA,QAC9B,aAAaN;AAAA,UACX;AAAA,UACA;AAAA,QAAA;AAAA,QAEF,UAAAS;AAAA,QACC,UAAA,CAAC,CAACD,KACD,gBAAAS;AAAA,UAACC;AAAA,UAAA;AAAA,YACC,aAAW;AAAA,YACX,MAAK;AAAA,YACL,SAAQ;AAAA,YACR,WAAU;AAAA,YACV,SAAS,MAAMN,EAAU,cAAcV,EAAI,iBAAiB,EAAE;AAAA,YAC9D,UAAA;AAAA,cAAA,gBAAAa,EAACI,EAAM,OAAN,EAAY,MAAM,GAAA,CAAI;AAAA,cAAE;AAAA,YAAA;AAAA,UAAA;AAAA,QAAA;AAAA,MAE3B;AAAA,IAAA;AAAA,IAIHb,KAAgB,gBAAAS,EAACK,GAAA,EAAQ,GAAGd,EAAA,CAAc;AAAA,EAAA,GAC7C;AAEJ;"}
|
|
@@ -24,8 +24,7 @@ import "axios";
|
|
|
24
24
|
import "../network.js";
|
|
25
25
|
import "ethers";
|
|
26
26
|
import "../machine/machine.js";
|
|
27
|
-
|
|
28
|
-
const ne = ({
|
|
27
|
+
const se = ({
|
|
29
28
|
variant: r,
|
|
30
29
|
showBalances: f,
|
|
31
30
|
showChainsSelector: u,
|
|
@@ -34,7 +33,7 @@ const ne = ({
|
|
|
34
33
|
className: x,
|
|
35
34
|
onMsg: i
|
|
36
35
|
}) => {
|
|
37
|
-
const { t:
|
|
36
|
+
const { t: y } = M(), { ctx: k } = T(), { walletSupportedChains: C } = I(), [l, c] = m(""), n = z(r), S = n.length === 1 && n[0]?.id ? n[0]?.id : "all", [o, b] = m(S), p = o !== "all" && o !== "intents" && s.external !== "all" && !C.includes(o);
|
|
38
37
|
return /* @__PURE__ */ a(
|
|
39
38
|
_,
|
|
40
39
|
{
|
|
@@ -42,7 +41,7 @@ const ne = ({
|
|
|
42
41
|
className: j("gap-sw-2xl flex flex-col px-sw-2xl pt-sw-2xl", x),
|
|
43
42
|
children: [
|
|
44
43
|
/* @__PURE__ */ a("header", { className: "py-sw-md flex items-center justify-between", children: [
|
|
45
|
-
/* @__PURE__ */ t("h2", { className: "text-sw-label-l", children: "Select token" }),
|
|
44
|
+
/* @__PURE__ */ t("h2", { className: "text-sw-label-l text-sw-gray-50", children: "Select token" }),
|
|
46
45
|
/* @__PURE__ */ t(
|
|
47
46
|
"button",
|
|
48
47
|
{
|
|
@@ -83,11 +82,11 @@ const ne = ({
|
|
|
83
82
|
}
|
|
84
83
|
)
|
|
85
84
|
] }),
|
|
86
|
-
p && !!
|
|
85
|
+
p && !!k.walletAddress && /* @__PURE__ */ t(
|
|
87
86
|
N,
|
|
88
87
|
{
|
|
89
88
|
variant: "info",
|
|
90
|
-
message:
|
|
89
|
+
message: y(
|
|
91
90
|
"wallet.connected.error.notSupportedChain",
|
|
92
91
|
"Your connected wallet doesn't support this chain"
|
|
93
92
|
)
|
|
@@ -122,6 +121,6 @@ const ne = ({
|
|
|
122
121
|
);
|
|
123
122
|
};
|
|
124
123
|
export {
|
|
125
|
-
|
|
124
|
+
se as TokensModal
|
|
126
125
|
};
|
|
127
126
|
//# sourceMappingURL=TokensModal.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TokensModal.js","sources":["../../src/features/TokensModal.tsx"],"sourcesContent":["import { useState } from 'react';\nimport * as Icons from 'lucide-react';\n\nimport { Card } from '@/components/Card';\nimport { Input } from '@/components/Input';\nimport { Banner } from '@/components/Banner';\n\nimport { cn } from '@/utils/cn';\nimport { useConfig } from '@/config';\nimport { useUnsafeSnapshot } from '@/machine/snap';\nimport { notReachable } from '@/utils/notReachable';\nimport { useTypedTranslation } from '@/localisation';\nimport type { Chains, DefaultChainsFilter } from '@/types/chain';\nimport type { Token } from '@/types/token';\n\nimport { TokensList } from './TokensList';\nimport { ChainsDropdown } from './ChainsDropdown';\nimport { useChains } from '../hooks';\n\ntype Msg =\n | { type: 'on_select_token'; token: Token }\n | { type: 'on_dismiss_tokens_modal' };\n\ntype Props = {\n variant: 'source' | 'target';\n groupTokens: boolean;\n showBalances: boolean;\n showChainsSelector: boolean;\n chainsFilter: DefaultChainsFilter;\n className?: string;\n onMsg: (msg: Msg) => void;\n};\n\nexport const TokensModal = ({\n variant,\n showBalances,\n showChainsSelector,\n chainsFilter,\n groupTokens,\n className,\n onMsg,\n}: Props) => {\n const { t } = useTypedTranslation();\n const { ctx } = useUnsafeSnapshot();\n const { walletSupportedChains } = useConfig();\n\n const [search, setSearch] = useState('');\n const chains = useChains(variant);\n\n // If there is only one chain available, select it by default\n const defaultChain =\n chains.length === 1 && chains[0]?.id ? chains[0]?.id : 'all';\n\n const [selectedChain, setSelectedChain] = useState<\n 'all' | 'intents' | Chains\n >(defaultChain);\n\n // selected chain is not supported by connected wallet\n const chainIsNotSupported =\n selectedChain !== 'all' &&\n selectedChain !== 'intents' &&\n chainsFilter.external !== 'all' &&\n !walletSupportedChains.includes(selectedChain);\n\n return (\n <Card\n padding=\"none\"\n className={cn('gap-sw-2xl flex flex-col px-sw-2xl pt-sw-2xl', className)}>\n <header className=\"py-sw-md flex items-center justify-between\">\n <h2 className=\"text-sw-label-l\">Select token</h2>\n <button\n type=\"button\"\n className=\"flex cursor-pointer items-center justify-center text-sw-gray-100 transition-colors hover:text-sw-gray-50\"\n onClick={() => onMsg({ type: 'on_dismiss_tokens_modal' })}>\n <Icons.X size={22} />\n </button>\n </header>\n\n <div className=\"gap-sw-xl flex items-center\">\n <Input\n focusOnMount\n icon={Icons.Search}\n defaultValue={search}\n className=\"w-full\"\n placeholder=\"Search or paste address\"\n onChange={(e) => setSearch(e.target.value.trim())}\n />\n {showChainsSelector && (\n <ChainsDropdown\n variant={variant}\n selected={selectedChain}\n chainsFilter={chainsFilter}\n onMsg={(msg) => {\n switch (msg.type) {\n case 'on_click_chain':\n setSelectedChain(msg.chain);\n break;\n default:\n notReachable(msg.type, { throwError: false });\n }\n }}\n />\n )}\n </div>\n\n {chainIsNotSupported && !!ctx.walletAddress && (\n <Banner\n variant=\"info\"\n message={t(\n 'wallet.connected.error.notSupportedChain',\n \"Your connected wallet doesn't support this chain\",\n )}\n />\n )}\n\n <TokensList\n variant={variant}\n search={search}\n groupTokens={groupTokens}\n showBalances={showBalances}\n chainsFilter={chainsFilter}\n selectedChain={selectedChain}\n chainIsNotSupported={chainIsNotSupported}\n onMsg={(msg) => {\n switch (msg.type) {\n case 'on_reset_search':\n setSearch('');\n break;\n case 'on_select_token':\n onMsg(msg);\n break;\n default:\n notReachable(msg, { throwError: false });\n }\n }}\n />\n </Card>\n );\n};\n"],"names":["TokensModal","variant","showBalances","showChainsSelector","chainsFilter","groupTokens","className","onMsg","t","useTypedTranslation","ctx","useUnsafeSnapshot","walletSupportedChains","useConfig","search","setSearch","useState","chains","useChains","defaultChain","selectedChain","setSelectedChain","chainIsNotSupported","jsxs","Card","cn","jsx","Icons","Input","ChainsDropdown","msg","notReachable","Banner","TokensList"],"mappings":"
|
|
1
|
+
{"version":3,"file":"TokensModal.js","sources":["../../src/features/TokensModal.tsx"],"sourcesContent":["import { useState } from 'react';\nimport * as Icons from 'lucide-react';\n\nimport { Card } from '@/components/Card';\nimport { Input } from '@/components/Input';\nimport { Banner } from '@/components/Banner';\n\nimport { cn } from '@/utils/cn';\nimport { useConfig } from '@/config';\nimport { useUnsafeSnapshot } from '@/machine/snap';\nimport { notReachable } from '@/utils/notReachable';\nimport { useTypedTranslation } from '@/localisation';\nimport type { Chains, DefaultChainsFilter } from '@/types/chain';\nimport type { Token } from '@/types/token';\n\nimport { TokensList } from './TokensList';\nimport { ChainsDropdown } from './ChainsDropdown';\nimport { useChains } from '../hooks';\n\ntype Msg =\n | { type: 'on_select_token'; token: Token }\n | { type: 'on_dismiss_tokens_modal' };\n\ntype Props = {\n variant: 'source' | 'target';\n groupTokens: boolean;\n showBalances: boolean;\n showChainsSelector: boolean;\n chainsFilter: DefaultChainsFilter;\n className?: string;\n onMsg: (msg: Msg) => void;\n};\n\nexport const TokensModal = ({\n variant,\n showBalances,\n showChainsSelector,\n chainsFilter,\n groupTokens,\n className,\n onMsg,\n}: Props) => {\n const { t } = useTypedTranslation();\n const { ctx } = useUnsafeSnapshot();\n const { walletSupportedChains } = useConfig();\n\n const [search, setSearch] = useState('');\n const chains = useChains(variant);\n\n // If there is only one chain available, select it by default\n const defaultChain =\n chains.length === 1 && chains[0]?.id ? chains[0]?.id : 'all';\n\n const [selectedChain, setSelectedChain] = useState<\n 'all' | 'intents' | Chains\n >(defaultChain);\n\n // selected chain is not supported by connected wallet\n const chainIsNotSupported =\n selectedChain !== 'all' &&\n selectedChain !== 'intents' &&\n chainsFilter.external !== 'all' &&\n !walletSupportedChains.includes(selectedChain);\n\n return (\n <Card\n padding=\"none\"\n className={cn('gap-sw-2xl flex flex-col px-sw-2xl pt-sw-2xl', className)}>\n <header className=\"py-sw-md flex items-center justify-between\">\n <h2 className=\"text-sw-label-l text-sw-gray-50\">Select token</h2>\n <button\n type=\"button\"\n className=\"flex cursor-pointer items-center justify-center text-sw-gray-100 transition-colors hover:text-sw-gray-50\"\n onClick={() => onMsg({ type: 'on_dismiss_tokens_modal' })}>\n <Icons.X size={22} />\n </button>\n </header>\n\n <div className=\"gap-sw-xl flex items-center\">\n <Input\n focusOnMount\n icon={Icons.Search}\n defaultValue={search}\n className=\"w-full\"\n placeholder=\"Search or paste address\"\n onChange={(e) => setSearch(e.target.value.trim())}\n />\n {showChainsSelector && (\n <ChainsDropdown\n variant={variant}\n selected={selectedChain}\n chainsFilter={chainsFilter}\n onMsg={(msg) => {\n switch (msg.type) {\n case 'on_click_chain':\n setSelectedChain(msg.chain);\n break;\n default:\n notReachable(msg.type, { throwError: false });\n }\n }}\n />\n )}\n </div>\n\n {chainIsNotSupported && !!ctx.walletAddress && (\n <Banner\n variant=\"info\"\n message={t(\n 'wallet.connected.error.notSupportedChain',\n \"Your connected wallet doesn't support this chain\",\n )}\n />\n )}\n\n <TokensList\n variant={variant}\n search={search}\n groupTokens={groupTokens}\n showBalances={showBalances}\n chainsFilter={chainsFilter}\n selectedChain={selectedChain}\n chainIsNotSupported={chainIsNotSupported}\n onMsg={(msg) => {\n switch (msg.type) {\n case 'on_reset_search':\n setSearch('');\n break;\n case 'on_select_token':\n onMsg(msg);\n break;\n default:\n notReachable(msg, { throwError: false });\n }\n }}\n />\n </Card>\n );\n};\n"],"names":["TokensModal","variant","showBalances","showChainsSelector","chainsFilter","groupTokens","className","onMsg","t","useTypedTranslation","ctx","useUnsafeSnapshot","walletSupportedChains","useConfig","search","setSearch","useState","chains","useChains","defaultChain","selectedChain","setSelectedChain","chainIsNotSupported","jsxs","Card","cn","jsx","Icons","Input","ChainsDropdown","msg","notReachable","Banner","TokensList"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAiCO,MAAMA,KAAc,CAAC;AAAA,EAC1B,SAAAC;AAAA,EACA,cAAAC;AAAA,EACA,oBAAAC;AAAA,EACA,cAAAC;AAAA,EACA,aAAAC;AAAA,EACA,WAAAC;AAAA,EACA,OAAAC;AACF,MAAa;AACX,QAAM,EAAE,GAAAC,EAAA,IAAMC,EAAA,GACR,EAAE,KAAAC,EAAA,IAAQC,EAAA,GACV,EAAE,uBAA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AQ;AACd,wBAAQA,EAAI,MAAA;AAAA,kBACV,KAAK;AACH,oBAAAT,EAAiBS,EAAI,KAAK;AAC1B;AAAA,kBACF;AACE,oBAAAC,EAAaD,EAAI,MAAM,EAAE,YAAY,IAAO;AAAA,gBAAA;AAAA,cAElD;AAAA,YAAA;AAAA,UAAA;AAAA,QACF,GAEJ;AAAA,QAECR,KAAuB,CAAC,CAACZ,EAAI,iBAC5B,gBAAAgB;AAAA,UAACM;AAAA,UAAA;AAAA,YACC,SAAQ;AAAA,YACR,SAASxB;AAAA,cACP;AAAA,cACA;AAAA,YAAA;AAAA,UACF;AAAA,QAAA;AAAA,QAIJ,gBAAAkB;AAAA,UAACO;AAAA,UAAA;AAAA,YACC,SAAAhC;AAAA,YACA,QAAAa;AAAA,YACA,aAAAT;AAAA,YACA,cAAAH;AAAA,YACA,cAAAE;AAAA,YACA,eAAAgB;AAAA,YACA,qBAAAE;AAAA,YACA,OAAO,CAACQ,MAAQ;AACd,sBAAQA,EAAI,MAAA;AAAA,gBACV,KAAK;AACH,kBAAAf,EAAU,EAAE;AACZ;AAAA,gBACF,KAAK;AACH,kBAAAR,EAAMuB,CAAG;AACT;AAAA,gBACF;AACE,kBAAAC,EAAaD,GAAK,EAAE,YAAY,GAAA,CAAO;AAAA,cAAA;AAAA,YAE7C;AAAA,UAAA;AAAA,QAAA;AAAA,MACF;AAAA,IAAA;AAAA,EAAA;AAGN;"}
|
|
@@ -1,15 +1,14 @@
|
|
|
1
|
-
import
|
|
1
|
+
import c from "axios";
|
|
2
2
|
import { logger as a } from "../logger.js";
|
|
3
|
-
import { b as
|
|
3
|
+
import { b as m, T as r } from "../config-DOedqUkv.js";
|
|
4
4
|
import { NATIVE_NEAR_DUMB_ASSET_ID as n } from "../constants/tokens.js";
|
|
5
5
|
import { isUserDeniedSigning as d } from "../utils/checkers/isUserDeniedSigning.js";
|
|
6
6
|
import { EVM_CHAIN_IDS_MAP as u } from "../constants/chains.js";
|
|
7
7
|
import { isEvmChain as R } from "../utils/evm/isEvmChain.js";
|
|
8
|
-
import "viem";
|
|
9
8
|
import "ethers";
|
|
10
9
|
import "../utils/cn.js";
|
|
11
|
-
const
|
|
12
|
-
const { ctx: o } =
|
|
10
|
+
const g = ({ makeTransfer: i }) => {
|
|
11
|
+
const { ctx: o } = m();
|
|
13
12
|
return { make: async () => {
|
|
14
13
|
if (!o.sourceToken) {
|
|
15
14
|
const e = "No token selected to transfer.";
|
|
@@ -56,7 +55,7 @@ const p = ({ makeTransfer: i }) => {
|
|
|
56
55
|
const t = e instanceof Error && d(e.message);
|
|
57
56
|
if (t)
|
|
58
57
|
return;
|
|
59
|
-
throw
|
|
58
|
+
throw c.isAxiosError(e) ? (s = e.response?.data?.detail ?? e.message ?? "Failed to make deposit. Please try again.", new r({
|
|
60
59
|
code: "QUOTE_ERROR",
|
|
61
60
|
meta: { message: s }
|
|
62
61
|
})) : s === "No quotes found" ? new r({
|
|
@@ -72,6 +71,6 @@ const p = ({ makeTransfer: i }) => {
|
|
|
72
71
|
} };
|
|
73
72
|
};
|
|
74
73
|
export {
|
|
75
|
-
|
|
74
|
+
g as useMakeQuoteTransfer
|
|
76
75
|
};
|
|
77
76
|
//# sourceMappingURL=useMakeQuoteTransfer.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useMakeQuoteTransfer.js","sources":["../../src/hooks/useMakeQuoteTransfer.ts"],"sourcesContent":["import axios from 'axios';\n\nimport { logger } from '@/logger';\nimport { TransferError } from '@/errors';\nimport { useUnsafeSnapshot } from '@/machine/snap';\nimport { NATIVE_NEAR_DUMB_ASSET_ID } from '@/constants/tokens';\nimport { isUserDeniedSigning } from '@/utils/checkers/isUserDeniedSigning';\nimport type { MakeTransferArgs, TransferResult } from '@/types/transfer';\nimport { EVM_CHAIN_IDS_MAP } from '../constants/chains';\nimport { isEvmChain } from '../utils';\n\ntype Result = {\n hash: string;\n transactionLink: string;\n intent?: string;\n};\n\nexport type QuoteTransferArgs = {\n makeTransfer: (args: MakeTransferArgs) => Promise<Result | undefined | null>;\n};\n\nexport const useMakeQuoteTransfer = ({ makeTransfer }: QuoteTransferArgs) => {\n const { ctx } = useUnsafeSnapshot();\n\n const make = async (): Promise<TransferResult | undefined> => {\n if (!ctx.sourceToken) {\n const msg = 'No token selected to transfer.';\n\n throw new TransferError({\n code: 'TRANSFER_INVALID_INITIAL',\n meta: { message: msg },\n });\n }\n\n if (!ctx.quote) {\n const msg = 'Quote is required for a transfer.';\n\n throw new TransferError({\n code: 'TRANSFER_INVALID_INITIAL',\n meta: { message: msg },\n });\n }\n\n if (!ctx.quote.depositAddress) {\n const msg = 'Quote has no deposit address. Make sure not dry.';\n\n throw new TransferError({\n code: 'TRANSFER_INVALID_INITIAL',\n meta: { message: msg },\n });\n }\n\n try {\n const depositResult = await makeTransfer({\n amount: ctx.quote.amountIn,\n decimals: ctx.sourceToken.decimals,\n address: ctx.quote.depositAddress,\n chain: ctx.sourceToken.blockchain,\n evmChainId: isEvmChain(ctx.sourceToken.blockchain)\n ? EVM_CHAIN_IDS_MAP[ctx.sourceToken.blockchain]\n : null,\n tokenAddress:\n ctx.sourceToken.assetId === NATIVE_NEAR_DUMB_ASSET_ID\n ? NATIVE_NEAR_DUMB_ASSET_ID\n : ctx.sourceToken.contractAddress,\n });\n\n if (!depositResult) {\n logger.error('[TRANSFER ERROR]', 'No deposit result');\n throw new TransferError({\n code: 'NO_DEPOSIT_RESULT',\n });\n }\n\n return {\n hash: depositResult.hash,\n transactionLink: depositResult.transactionLink,\n intent: undefined,\n };\n } catch (error: unknown) {\n logger.error('[TRANSFER ERROR]', error, { error });\n let errorMessage = 'Failed to make a transfer. Please try again.';\n\n const userCancelledTx =\n error instanceof Error && isUserDeniedSigning(error.message);\n\n if (userCancelledTx) {\n return;\n }\n\n if (axios.isAxiosError<{ detail?: string }>(error)) {\n errorMessage =\n error.response?.data?.detail ??\n error.message ??\n 'Failed to make deposit. Please try again.';\n\n throw new TransferError({\n code: 'QUOTE_ERROR',\n meta: { message: errorMessage },\n });\n } else if (errorMessage === 'No quotes found') {\n throw new TransferError({\n code: 'NO_QUOTE_FOUND',\n });\n } else if (error instanceof Error) {\n if (!userCancelledTx) {\n throw new TransferError({\n code: 'QUOTE_ERROR',\n meta: { message: error.message },\n });\n }\n }\n\n throw new TransferError({\n code: 'QUOTE_ERROR',\n meta: { message: 'Unknown quote transfer error' },\n });\n }\n };\n\n return { make };\n};\n"],"names":["useMakeQuoteTransfer","makeTransfer","ctx","useUnsafeSnapshot","msg","TransferError","depositResult","isEvmChain","EVM_CHAIN_IDS_MAP","NATIVE_NEAR_DUMB_ASSET_ID","logger","error","errorMessage","userCancelledTx","isUserDeniedSigning","axios"],"mappings":"
|
|
1
|
+
{"version":3,"file":"useMakeQuoteTransfer.js","sources":["../../src/hooks/useMakeQuoteTransfer.ts"],"sourcesContent":["import axios from 'axios';\n\nimport { logger } from '@/logger';\nimport { TransferError } from '@/errors';\nimport { useUnsafeSnapshot } from '@/machine/snap';\nimport { NATIVE_NEAR_DUMB_ASSET_ID } from '@/constants/tokens';\nimport { isUserDeniedSigning } from '@/utils/checkers/isUserDeniedSigning';\nimport type { MakeTransferArgs, TransferResult } from '@/types/transfer';\nimport { EVM_CHAIN_IDS_MAP } from '../constants/chains';\nimport { isEvmChain } from '../utils';\n\ntype Result = {\n hash: string;\n transactionLink: string;\n intent?: string;\n};\n\nexport type QuoteTransferArgs = {\n makeTransfer: (args: MakeTransferArgs) => Promise<Result | undefined | null>;\n};\n\nexport const useMakeQuoteTransfer = ({ makeTransfer }: QuoteTransferArgs) => {\n const { ctx } = useUnsafeSnapshot();\n\n const make = async (): Promise<TransferResult | undefined> => {\n if (!ctx.sourceToken) {\n const msg = 'No token selected to transfer.';\n\n throw new TransferError({\n code: 'TRANSFER_INVALID_INITIAL',\n meta: { message: msg },\n });\n }\n\n if (!ctx.quote) {\n const msg = 'Quote is required for a transfer.';\n\n throw new TransferError({\n code: 'TRANSFER_INVALID_INITIAL',\n meta: { message: msg },\n });\n }\n\n if (!ctx.quote.depositAddress) {\n const msg = 'Quote has no deposit address. Make sure not dry.';\n\n throw new TransferError({\n code: 'TRANSFER_INVALID_INITIAL',\n meta: { message: msg },\n });\n }\n\n try {\n const depositResult = await makeTransfer({\n amount: ctx.quote.amountIn,\n decimals: ctx.sourceToken.decimals,\n address: ctx.quote.depositAddress,\n chain: ctx.sourceToken.blockchain,\n evmChainId: isEvmChain(ctx.sourceToken.blockchain)\n ? EVM_CHAIN_IDS_MAP[ctx.sourceToken.blockchain]\n : null,\n tokenAddress:\n ctx.sourceToken.assetId === NATIVE_NEAR_DUMB_ASSET_ID\n ? NATIVE_NEAR_DUMB_ASSET_ID\n : ctx.sourceToken.contractAddress,\n });\n\n if (!depositResult) {\n logger.error('[TRANSFER ERROR]', 'No deposit result');\n throw new TransferError({\n code: 'NO_DEPOSIT_RESULT',\n });\n }\n\n return {\n hash: depositResult.hash,\n transactionLink: depositResult.transactionLink,\n intent: undefined,\n };\n } catch (error: unknown) {\n logger.error('[TRANSFER ERROR]', error, { error });\n let errorMessage = 'Failed to make a transfer. Please try again.';\n\n const userCancelledTx =\n error instanceof Error && isUserDeniedSigning(error.message);\n\n if (userCancelledTx) {\n return;\n }\n\n if (axios.isAxiosError<{ detail?: string }>(error)) {\n errorMessage =\n error.response?.data?.detail ??\n error.message ??\n 'Failed to make deposit. Please try again.';\n\n throw new TransferError({\n code: 'QUOTE_ERROR',\n meta: { message: errorMessage },\n });\n } else if (errorMessage === 'No quotes found') {\n throw new TransferError({\n code: 'NO_QUOTE_FOUND',\n });\n } else if (error instanceof Error) {\n if (!userCancelledTx) {\n throw new TransferError({\n code: 'QUOTE_ERROR',\n meta: { message: error.message },\n });\n }\n }\n\n throw new TransferError({\n code: 'QUOTE_ERROR',\n meta: { message: 'Unknown quote transfer error' },\n });\n }\n };\n\n return { make };\n};\n"],"names":["useMakeQuoteTransfer","makeTransfer","ctx","useUnsafeSnapshot","msg","TransferError","depositResult","isEvmChain","EVM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C/B,QAAQ;AAAA,MAAA;AAAA,IAEZ,SAASK,GAAgB;AACvB,MAAAD,EAAO,MAAM,oBAAoBC,GAAO,EAAE,OAAAA,GAAO;AACjD,UAAIC,IAAe;AAEnB,YAAMC,IACJF,aAAiB,SAASG,EAAoBH,EAAM,OAAO;AAE7D,UAAIE;AACF;AAGF,YAAIE,EAAM,aAAkCJ,CAAK,KAC/CC,IACED,EAAM,UAAU,MAAM,UACtBA,EAAM,WACN,6CAEI,IAAIN,EAAc;AAAA,QACtB,MAAM;AAAA,QACN,MAAM,EAAE,SAASO,EAAA;AAAA,MAAa,CAC/B,KACQA,MAAiB,oBACpB,IAAIP,EAAc;AAAA,QACtB,MAAM;AAAA,MAAA,CACP,IACQM,aAAiB,SACtB,CAACE,IACG,IAAIR,EAAc;AAAA,QACtB,MAAM;AAAA,QACN,MAAM,EAAE,SAASM,EAAM,QAAA;AAAA,MAAQ,CAChC,IAIC,IAAIN,EAAc;AAAA,QACtB,MAAM;AAAA,QACN,MAAM,EAAE,SAAS,+BAAA;AAAA,MAA+B,CACjD;AAAA,IACH;AAAA,EACF,EAES;AACX;"}
|
package/dist/styles.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
/*! tailwindcss v4.1.12 | MIT License | https://tailwindcss.com */@layer properties{@supports ((-webkit-hyphens:none) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){.sw *,.sw :before,.sw :after,.sw ::backdrop{--tw-translate-x:0;--tw-translate-y:0;--tw-translate-z:0;--tw-rotate-x:initial;--tw-rotate-y:initial;--tw-rotate-z:initial;--tw-skew-x:initial;--tw-skew-y:initial;--tw-border-style:solid;--tw-leading:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-blur:initial;--tw-brightness:initial;--tw-contrast:initial;--tw-grayscale:initial;--tw-hue-rotate:initial;--tw-invert:initial;--tw-opacity:initial;--tw-saturate:initial;--tw-sepia:initial;--tw-drop-shadow:initial;--tw-drop-shadow-color:initial;--tw-drop-shadow-alpha:100%;--tw-drop-shadow-size:initial;--tw-backdrop-blur:initial;--tw-backdrop-brightness:initial;--tw-backdrop-contrast:initial;--tw-backdrop-grayscale:initial;--tw-backdrop-hue-rotate:initial;--tw-backdrop-invert:initial;--tw-backdrop-opacity:initial;--tw-backdrop-saturate:initial;--tw-backdrop-sepia:initial;--tw-duration:initial;--tw-scale-x:1;--tw-scale-y:1;--tw-scale-z:1}}}@layer theme{.sw,.sw :host{--radius-full:99999px;--radius-sw-md:var(--sw-radius-md);--radius-sw-lg:var(--sw-radius-lg);--color-sw-gray-50:var(--sw-gray-50);--color-sw-gray-100:var(--sw-gray-100);--color-sw-gray-200:var(--sw-gray-200);--color-sw-gray-300:var(--sw-gray-300);--color-sw-gray-400:var(--sw-gray-400);--color-sw-gray-500:var(--sw-gray-500);--color-sw-gray-600:var(--sw-gray-600);--color-sw-gray-700:var(--sw-gray-700);--color-sw-gray-800:var(--sw-gray-800);--color-sw-gray-900:var(--sw-gray-900);--color-sw-gray-975:var(--sw-gray-975);--color-sw-mauve-50:var(--sw-mauve-50);--color-sw-mauve-100:var(--sw-mauve-100);--color-sw-mauve-200:var(--sw-mauve-200);--color-sw-mauve-300:var(--sw-mauve-300);--color-sw-mauve-400:var(--sw-mauve-400);--color-sw-mauve-700:var(--sw-mauve-700);--color-sw-mauve-800:var(--sw-mauve-800);--color-sw-mauve-975:var(--sw-mauve-975);--color-sw-dune-300:var(--sw-dune-300);--color-sw-alert-100:var(--sw-alert-100);--color-sw-alert-900:var(--sw-alert-900);--color-sw-success-100:var(--sw-success-100);--color-sw-success-900:var(--sw-success-900);--color-sw-warn-100:var(--sw-warn-100);--color-sw-warn-900:var(--sw-warn-900);--color-sw-complete-100:var(--sw-complete-100);--color-sw-complete-900:var(--sw-complete-900);--color-sw-modal-bg:var(--sw-modal-bg);--color-sw-modal-item:var(--sw-modal-item);--spacing-sw-xxs:var(--sw-space-xxs);--spacing-sw-xs:var(--sw-space-xs);--spacing-sw-sm:var(--sw-space-sm);--spacing-sw-md:var(--sw-space-md);--spacing-sw-lg:var(--sw-space-lg);--spacing-sw-xl:var(--sw-space-xl);--spacing-sw-2xl:var(--sw-space-2xl);--spacing-sw-3xl:var(--sw-space-3xl);--spacing-sw-4xl:var(--sw-space-4xl);--spacing-sw-5xl:var(--sw-space-5xl);--spacing-sw-6xl:var(--sw-space-6xl)}}@layer base{.sw *,.sw :after,.sw :before,.sw ::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}.sw ::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}.sw,.sw :host{-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent;font-family:ui-sans-serif,system-ui,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;line-height:1.5}.sw hr{height:0;color:inherit;border-top-width:1px}.sw abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}.sw h1,.sw h2,.sw h3,.sw h4,.sw h5,.sw h6{font-size:inherit;font-weight:inherit}.sw a{color:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}.sw b,.sw strong{font-weight:bolder}.sw code,.sw kbd,.sw samp,.sw pre{font-feature-settings:normal;font-variation-settings:normal;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em}.sw small{font-size:80%}.sw sub,.sw sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}.sw sub{bottom:-.25em}.sw sup{top:-.5em}.sw table{text-indent:0;border-color:inherit;border-collapse:collapse}.sw :-moz-focusring{outline:auto}.sw progress{vertical-align:baseline}.sw summary{display:list-item}.sw ol,.sw ul,.sw menu{list-style:none}.sw img,.sw svg,.sw video,.sw canvas,.sw audio,.sw iframe,.sw embed,.sw object{vertical-align:middle;display:block}.sw img,.sw video{max-width:100%;height:auto}.sw button,.sw input,.sw select,.sw optgroup,.sw textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}.sw ::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}.sw :where(select:is([multiple],[size])) optgroup{font-weight:bolder}.sw :where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}.sw ::file-selector-button{margin-inline-end:4px}.sw ::-moz-placeholder{opacity:1}.sw ::placeholder{opacity:1}@supports (not (-webkit-appearance:-apple-pay-button)) or (contain-intrinsic-size:1px){.sw ::-moz-placeholder{color:currentColor}.sw ::placeholder{color:currentColor}@supports (color:color-mix(in lab,red,red)){.sw ::-moz-placeholder{color:color-mix(in oklab,currentcolor 50%,transparent)}.sw ::placeholder{color:color-mix(in oklab,currentcolor 50%,transparent)}}}.sw textarea{resize:vertical}.sw ::-webkit-search-decoration{-webkit-appearance:none}.sw ::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}.sw ::-webkit-datetime-edit{display:inline-flex}.sw ::-webkit-datetime-edit-fields-wrapper{padding:0}.sw ::-webkit-datetime-edit{padding-block:0}.sw ::-webkit-datetime-edit-year-field{padding-block:0}.sw ::-webkit-datetime-edit-month-field{padding-block:0}.sw ::-webkit-datetime-edit-day-field{padding-block:0}.sw ::-webkit-datetime-edit-hour-field{padding-block:0}.sw ::-webkit-datetime-edit-minute-field{padding-block:0}.sw ::-webkit-datetime-edit-second-field{padding-block:0}.sw ::-webkit-datetime-edit-millisecond-field{padding-block:0}.sw ::-webkit-datetime-edit-meridiem-field{padding-block:0}.sw ::-webkit-calendar-picker-indicator{line-height:1}.sw :-moz-ui-invalid{box-shadow:none}.sw button,.sw input:where([type=button],[type=reset],[type=submit]){-webkit-appearance:button;-moz-appearance:button;appearance:button}.sw ::file-selector-button{-webkit-appearance:button;-moz-appearance:button;appearance:button}.sw ::-webkit-inner-spin-button{height:auto}.sw ::-webkit-outer-spin-button{height:auto}.sw [hidden]:where(:not([hidden=until-found])){display:none!important}.sw{font-family:var(--sw-font-sans)}}@layer components{.sw .text-sw-display{font-size:72px;font-weight:500;line-height:74px}.sw .text-sw-h1{font-size:48px;font-weight:500;line-height:48px}.sw .text-sw-h2{font-size:40px;font-weight:500;line-height:40px}.sw .text-sw-h3{font-size:32px;font-weight:500;line-height:32px}.sw .text-sw-h4{font-size:24px;font-weight:500;line-height:24px}.sw .text-sw-p-xs{font-size:12px;font-weight:400;line-height:18px}.sw .text-sw-p-s{font-size:14px;font-weight:400;line-height:20px}.sw .text-sw-p-m{font-size:16px;font-weight:400;line-height:24px}.sw .text-sw-label-s{font-size:12px;font-weight:400;line-height:12px}.sw .text-sw-label-m{font-size:14px;font-weight:400;line-height:16px}.sw .text-sw-label-l{font-size:16px;font-weight:400;line-height:18px}}@layer utilities{.sw .absolute{position:absolute}.sw .fixed{position:fixed}.sw .relative{position:relative}.sw .static{position:static}.sw .top-1\/2{top:50%}.sw .top-\[17px\]{top:17px}.sw .right-\[-4px\]{right:-4px}.sw .left-1\/2{left:50%}.sw .z-10{z-index:10}.sw .z-50{z-index:50}.sw .container{width:100%}.sw .m-sw-lg{margin:var(--spacing-sw-lg)}.sw .mx-auto{margin-inline:auto}.sw .my-sw-sm{margin-block:var(--spacing-sw-sm)}.sw .mt-\[58px\]{margin-top:58px}.sw .mt-sw-md{margin-top:var(--spacing-sw-md)}.sw .mt-sw-sm{margin-top:var(--spacing-sw-sm)}.sw .mt-sw-xl{margin-top:var(--spacing-sw-xl)}.sw .mt-sw-xs{margin-top:var(--spacing-sw-xs)}.sw .mr-auto{margin-right:auto}.sw .mr-sw-md{margin-right:var(--spacing-sw-md)}.sw .mb-sw-4xl{margin-bottom:var(--spacing-sw-4xl)}.sw .mb-sw-md{margin-bottom:var(--spacing-sw-md)}.sw .mb-sw-xl{margin-bottom:var(--spacing-sw-xl)}.sw .ml-auto{margin-left:auto}.sw .ml-sw-lg{margin-left:var(--spacing-sw-lg)}.sw .ml-sw-md{margin-left:var(--spacing-sw-md)}.sw .contents{display:contents}.sw .flex{display:flex}.sw .hidden{display:none}.sw .inline{display:inline}.sw .inline-block{display:inline-block}.sw .h-\[1px\]{height:1px}.sw .h-\[12px\]{height:12px}.sw .h-\[16px\]{height:16px}.sw .h-\[20px\]{height:20px}.sw .h-\[28px\]{height:28px}.sw .h-\[36px\]{height:36px}.sw .h-\[40px\]{height:40px}.sw .h-\[44px\]{height:44px}.sw .h-\[48px\]{height:48px}.sw .h-\[72px\]{height:72px}.sw .h-\[120px\]{height:120px}.sw .h-\[180px\]{height:180px}.sw .h-full{height:100%}.sw .h-sw-2xl{height:var(--spacing-sw-2xl)}.sw .h-sw-lg{height:var(--spacing-sw-lg)}.sw .h-sw-xl{height:var(--spacing-sw-xl)}.sw .max-h-\[400px\]{max-height:400px}.sw .min-h-\[56px\]{min-height:56px}.sw .min-h-\[200px\]{min-height:200px}.sw .min-h-sw-2xl{min-height:var(--spacing-sw-2xl)}.sw .w-\[16px\]{width:16px}.sw .w-\[28px\]{width:28px}.sw .w-\[40px\]{width:40px}.sw .w-\[44px\]{width:44px}.sw .w-\[60px\]{width:60px}.sw .w-\[100px\]{width:100px}.sw .w-\[180px\]{width:180px}.sw .w-\[200px\]{width:200px}.sw .w-\[456px\]{width:456px}.sw .w-fit{width:-moz-fit-content;width:fit-content}.sw .w-full{width:100%}.sw .w-sw-2xl{width:var(--spacing-sw-2xl)}.sw .w-sw-lg{width:var(--spacing-sw-lg)}.sw .w-sw-xl{width:var(--spacing-sw-xl)}.sw .max-w-\[80\%\]{max-width:80%}.sw .max-w-\[311px\]{max-width:311px}.sw .max-w-\[359px\]{max-width:359px}.sw .min-w-\[80px\]{min-width:80px}.sw .min-w-\[100px\]{min-width:100px}.sw .min-w-\[200px\]{min-width:200px}.sw .shrink-0{flex-shrink:0}.sw .-translate-x-1\/2{--tw-translate-x: -50% ;translate:var(--tw-translate-x)var(--tw-translate-y)}.sw .-translate-y-1\/2{--tw-translate-y: -50% ;translate:var(--tw-translate-x)var(--tw-translate-y)}.sw .transform{transform:var(--tw-rotate-x,)var(--tw-rotate-y,)var(--tw-rotate-z,)var(--tw-skew-x,)var(--tw-skew-y,)}.sw .cursor-default{cursor:default}.sw .cursor-not-allowed{cursor:not-allowed}.sw .cursor-pointer{cursor:pointer}.sw .list-none{list-style-type:none}.sw .flex-col{flex-direction:column}.sw .items-center{align-items:center}.sw .items-end{align-items:flex-end}.sw .justify-between{justify-content:space-between}.sw .justify-center{justify-content:center}.sw .gap-\[10px\]{gap:10px}.sw .gap-sw-2xl{gap:var(--spacing-sw-2xl)}.sw .gap-sw-lg{gap:var(--spacing-sw-lg)}.sw .gap-sw-md{gap:var(--spacing-sw-md)}.sw .gap-sw-sm{gap:var(--spacing-sw-sm)}.sw .gap-sw-xl{gap:var(--spacing-sw-xl)}.sw .gap-sw-xs{gap:var(--spacing-sw-xs)}.sw .gap-sw-xxs{gap:var(--spacing-sw-xxs)}.sw .overflow-hidden{overflow:hidden}.sw .rounded-\[4px\]{border-radius:4px}.sw .rounded-\[10px\]{border-radius:10px}.sw .rounded-full{border-radius:3.40282e38px;border-radius:var(--radius-full)}.sw .rounded-sw-lg{border-radius:var(--radius-sw-lg)}.sw .rounded-sw-md{border-radius:var(--radius-sw-md)}.sw .border{border-style:var(--tw-border-style);border-width:1px}.sw .border-2{border-style:var(--tw-border-style);border-width:2px}.sw .border-none{--tw-border-style:none;border-style:none}.sw .border-sw-gray-500{border-color:var(--color-sw-gray-500)}.sw .border-sw-gray-900{border-color:var(--color-sw-gray-900)}.sw .bg-sw-alert-900{background-color:var(--color-sw-alert-900)}.sw .bg-sw-complete-900{background-color:var(--color-sw-complete-900)}.sw .bg-sw-dune-300{background-color:var(--color-sw-dune-300)}.sw .bg-sw-gray-50{background-color:var(--color-sw-gray-50)}.sw .bg-sw-gray-200{background-color:var(--color-sw-gray-200)}.sw .bg-sw-gray-500{background-color:var(--color-sw-gray-500)}.sw .bg-sw-gray-600{background-color:var(--color-sw-gray-600)}.sw .bg-sw-gray-700{background-color:var(--color-sw-gray-700)}.sw .bg-sw-gray-800{background-color:var(--color-sw-gray-800)}.sw .bg-sw-gray-900{background-color:var(--color-sw-gray-900)}.sw .bg-sw-gray-975,.sw .bg-sw-gray-975\/70{background-color:var(--color-sw-gray-975)}@supports (color:color-mix(in lab,red,red)){.sw .bg-sw-gray-975\/70{background-color:color-mix(in oklab,var(--color-sw-gray-975)70%,transparent)}}.sw .bg-sw-mauve-300{background-color:var(--color-sw-mauve-300)}.sw .bg-sw-mauve-700{background-color:var(--color-sw-mauve-700)}.sw .bg-sw-mauve-800{background-color:var(--color-sw-mauve-800)}.sw .bg-sw-modal-bg{background-color:var(--color-sw-modal-bg)}.sw .bg-sw-modal-item{background-color:var(--color-sw-modal-item)}.sw .bg-sw-success-100{background-color:var(--color-sw-success-100)}.sw .bg-sw-success-900{background-color:var(--color-sw-success-900)}.sw .bg-sw-warn-900{background-color:var(--color-sw-warn-900)}.sw .bg-transparent{background-color:#0000}.sw .p-sw-2xl{padding:var(--spacing-sw-2xl)}.sw .p-sw-lg{padding:var(--spacing-sw-lg)}.sw .p-sw-md{padding:var(--spacing-sw-md)}.sw .px-\[1px\]{padding-inline:1px}.sw .px-sw-2xl{padding-inline:var(--spacing-sw-2xl)}.sw .px-sw-3xl{padding-inline:var(--spacing-sw-3xl)}.sw .px-sw-lg{padding-inline:var(--spacing-sw-lg)}.sw .px-sw-md{padding-inline:var(--spacing-sw-md)}.sw .px-sw-sm{padding-inline:var(--spacing-sw-sm)}.sw .py-sw-6xl{padding-block:var(--spacing-sw-6xl)}.sw .py-sw-lg{padding-block:var(--spacing-sw-lg)}.sw .py-sw-md{padding-block:var(--spacing-sw-md)}.sw .py-sw-sm{padding-block:var(--spacing-sw-sm)}.sw .py-sw-xl{padding-block:var(--spacing-sw-xl)}.sw .py-sw-xs{padding-block:var(--spacing-sw-xs)}.sw .pt-\[10vh\]{padding-top:10vh}.sw .pt-sw-2xl{padding-top:var(--spacing-sw-2xl)}.sw .pt-sw-5xl{padding-top:var(--spacing-sw-5xl)}.sw .pt-sw-xl{padding-top:var(--spacing-sw-xl)}.sw .pr-sw-md{padding-right:var(--spacing-sw-md)}.sw .pb-sw-2xl{padding-bottom:var(--spacing-sw-2xl)}.sw .pb-sw-5xl{padding-bottom:var(--spacing-sw-5xl)}.sw .pb-sw-lg{padding-bottom:var(--spacing-sw-lg)}.sw .pl-sw-sm{padding-left:var(--spacing-sw-sm)}.sw .text-center{text-align:center}.sw .align-sub{vertical-align:sub}.sw .text-\[10px\]{font-size:10px}.sw .leading-\[18px\]{--tw-leading:18px;line-height:18px}.sw .text-nowrap{text-wrap:nowrap}.sw .text-sw-alert-100{color:var(--color-sw-alert-100)}.sw .text-sw-complete-100{color:var(--color-sw-complete-100)}.sw .text-sw-gray-50{color:var(--color-sw-gray-50)}.sw .text-sw-gray-100{color:var(--color-sw-gray-100)}.sw .text-sw-gray-200{color:var(--color-sw-gray-200)}.sw .text-sw-gray-300{color:var(--color-sw-gray-300)}.sw .text-sw-gray-975{color:var(--color-sw-gray-975)}.sw .text-sw-mauve-50{color:var(--color-sw-mauve-50)}.sw .text-sw-mauve-100{color:var(--color-sw-mauve-100)}.sw .text-sw-mauve-300{color:var(--color-sw-mauve-300)}.sw .text-sw-mauve-400{color:var(--color-sw-mauve-400)}.sw .text-sw-mauve-975{color:var(--color-sw-mauve-975)}.sw .text-sw-success-100{color:var(--color-sw-success-100)}.sw .text-sw-warn-100{color:var(--color-sw-warn-100)}.sw .lowercase{text-transform:lowercase}.sw .opacity-0{opacity:0}.sw .opacity-50{opacity:.5}.sw .opacity-60{opacity:.6}.sw .opacity-100{opacity:1}.sw .shadow-\[0px_0px_40px_0px_rgba\(0\,0\,0\,0\.5\)\]{--tw-shadow:0px 0px 40px 0px var(--tw-shadow-color,#00000080);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.sw .ring-1{--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(1px + var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.sw .ring-sw-alert-100{--tw-ring-color:var(--color-sw-alert-100)}.sw .ring-sw-gray-400{--tw-ring-color:var(--color-sw-gray-400)}.sw .ring-sw-gray-500{--tw-ring-color:var(--color-sw-gray-500)}.sw .ring-sw-gray-600{--tw-ring-color:var(--color-sw-gray-600)}.sw .ring-sw-mauve-300{--tw-ring-color:var(--color-sw-mauve-300)}.sw .ring-sw-mauve-700{--tw-ring-color:var(--color-sw-mauve-700)}.sw .ring-sw-success-100{--tw-ring-color:var(--color-sw-success-100)}.sw .ring-transparent{--tw-ring-color:transparent}.sw .filter{filter:var(--tw-blur,)var(--tw-brightness,)var(--tw-contrast,)var(--tw-grayscale,)var(--tw-hue-rotate,)var(--tw-invert,)var(--tw-saturate,)var(--tw-sepia,)var(--tw-drop-shadow,)}.sw .backdrop-blur-\[5px\]{--tw-backdrop-blur:blur(5px);backdrop-filter:var(--tw-backdrop-blur,)var(--tw-backdrop-brightness,)var(--tw-backdrop-contrast,)var(--tw-backdrop-grayscale,)var(--tw-backdrop-hue-rotate,)var(--tw-backdrop-invert,)var(--tw-backdrop-opacity,)var(--tw-backdrop-saturate,)var(--tw-backdrop-sepia,)}.sw .backdrop-filter{backdrop-filter:var(--tw-backdrop-blur,)var(--tw-backdrop-brightness,)var(--tw-backdrop-contrast,)var(--tw-backdrop-grayscale,)var(--tw-backdrop-hue-rotate,)var(--tw-backdrop-invert,)var(--tw-backdrop-opacity,)var(--tw-backdrop-saturate,)var(--tw-backdrop-sepia,)}.sw .transition{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to,opacity,box-shadow,transform,translate,scale,rotate,filter,backdrop-filter,display,visibility,content-visibility,overlay,pointer-events;transition-timing-function:var(--tw-ease,ease);transition-duration:var(--tw-duration,0s)}.sw .transition-\[backdrop-filter\]{transition-property:backdrop-filter;transition-timing-function:var(--tw-ease,ease);transition-duration:var(--tw-duration,0s)}.sw .transition-all{transition-property:all;transition-timing-function:var(--tw-ease,ease);transition-duration:var(--tw-duration,0s)}.sw .transition-colors{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to;transition-timing-function:var(--tw-ease,ease);transition-duration:var(--tw-duration,0s)}.sw .transition-opacity{transition-property:opacity;transition-timing-function:var(--tw-ease,ease);transition-duration:var(--tw-duration,0s)}.sw .transition-transform{transition-property:transform,translate,scale,rotate;transition-timing-function:var(--tw-ease,ease);transition-duration:var(--tw-duration,0s)}.sw .delay-0{transition-delay:0s}.sw .duration-100{--tw-duration:.1s;transition-duration:.1s}.sw .duration-150{--tw-duration:.15s;transition-duration:.15s}.sw .duration-250{--tw-duration:.25s;transition-duration:.25s}.sw .duration-300{--tw-duration:.3s;transition-duration:.3s}.sw .\[transition-timing-function\:cubic-bezier\(0\.175\,0\.885\,0\.32\,1\.275\)\]{transition-timing-function:cubic-bezier(.175,.885,.32,1.275)}.sw .outline-none{--tw-outline-style:none;outline-style:none}.sw .ring-inset{--tw-ring-inset:inset}@media (hover:hover){.sw .group-hover\:rotate-180:is(:where(.group):hover *){rotate:180deg}.sw .hover\:scale-110:hover{--tw-scale-x:110%;--tw-scale-y:110%;--tw-scale-z:110%;scale:var(--tw-scale-x)var(--tw-scale-y)}.sw .hover\:scale-125:hover{--tw-scale-x:125%;--tw-scale-y:125%;--tw-scale-z:125%;scale:var(--tw-scale-x)var(--tw-scale-y)}.sw .hover\:bg-sw-gray-100:hover{background-color:var(--color-sw-gray-100)}.sw .hover\:bg-sw-gray-500:hover{background-color:var(--color-sw-gray-500)}.sw .hover\:bg-sw-gray-600:hover{background-color:var(--color-sw-gray-600)}.sw .hover\:bg-sw-gray-700:hover{background-color:var(--color-sw-gray-700)}.sw .hover\:bg-sw-gray-800:hover{background-color:var(--color-sw-gray-800)}.sw .hover\:bg-sw-gray-900:hover{background-color:var(--color-sw-gray-900)}.sw .hover\:bg-sw-mauve-50:hover{background-color:var(--color-sw-mauve-50)}.sw .hover\:bg-sw-mauve-700:hover{background-color:var(--color-sw-mauve-700)}.sw .hover\:bg-transparent:hover{background-color:#0000}.sw .hover\:text-sw-gray-50:hover{color:var(--color-sw-gray-50)}.sw .hover\:text-sw-mauve-50:hover{color:var(--color-sw-mauve-50)}.sw .hover\:text-sw-mauve-200:hover{color:var(--color-sw-mauve-200)}.sw .hover\:text-sw-mauve-300:hover{color:var(--color-sw-mauve-300)}.sw .hover\:text-sw-mauve-975:hover{color:var(--color-sw-mauve-975)}}.sw .active\:scale-x-90:active{--tw-scale-x:90%;scale:var(--tw-scale-x)var(--tw-scale-y)}.sw .active\:scale-y-110:active{--tw-scale-y:110%;scale:var(--tw-scale-x)var(--tw-scale-y)}.sw .data-focus\:outline-none[data-focus]{--tw-outline-style:none;outline-style:none}}.sw{--sw-font-sans:"Suisse Intl",ui-sans-serif,system-ui,sans-serif;--sw-radius-xl:20px;--sw-radius-md:10px;--sw-radius-lg:16px;--sw-radius-sm:6px;--sw-gray-50:#ebedf5;--sw-gray-100:#b2b5c1;--sw-gray-200:#7c7f8a;--sw-gray-300:#71747f;--sw-gray-400:#666873;--sw-gray-500:#4f525c;--sw-gray-600:#444650;--sw-gray-700:#3c3e48;--sw-gray-800:#373942;--sw-gray-900:#31343d;--sw-gray-950:#2a2c33;--sw-gray-975:#24262d;--sw-mauve-50:#e6ddf5;--sw-mauve-100:#c7a9f0;--sw-mauve-200:#cbadf4;--sw-mauve-300:#d5b7ff;--sw-mauve-400:#7c619f;--sw-mauve-500:#675185;--sw-mauve-600:#594573;--sw-mauve-700:#503c68;--sw-mauve-800:#47365e;--sw-mauve-900:#3c304c;--sw-mauve-950:#2c2733;--sw-mauve-975:#28242e;--sw-dune-50:#ede5d9;--sw-dune-100:#c9bca6;--sw-dune-200:#c2b6a0;--sw-dune-300:#cdc0aa;--sw-dune-400:#776c5b;--sw-dune-500:#5f584b;--sw-dune-600:#504b41;--sw-dune-700:#46423b;--sw-dune-800:#3e3b36;--sw-dune-900:#373531;--sw-dune-950:#2e2d2b;--sw-dune-975:#272625;--sw-alert-100:#f4bbbf;--sw-alert-900:#433c43;--sw-success-100:#b0fcbb;--sw-success-900:#3e4849;--sw-warn-100:#f6e0b3;--sw-warn-900:#42403e;--sw-complete-100:#99e2ff;--sw-complete-900:#36424c;--sw-modal-bg:#010714;--sw-modal-item:#151a26;--sw-space-xxs:2px;--sw-space-xs:4px;--sw-space-sm:6px;--sw-space-md:8px;--sw-space-lg:12px;--sw-space-xl:16px;--sw-space-2xl:20px;--sw-space-3xl:24px;--sw-space-4xl:32px;--sw-space-5xl:40px;--sw-space-6xl:48px;--sw-space-7xl:64px;--sw-space-8xl:72px;--sw-space-9xl:80px;--sw-space-10xl:88px;--sw-space-11xl:96px;--sw-space-12xl:108px;--sw-space-max:128px}@property --tw-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-y{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-z{syntax:"*";inherits:false;initial-value:0}@property --tw-rotate-x{syntax:"*";inherits:false}@property --tw-rotate-y{syntax:"*";inherits:false}@property --tw-rotate-z{syntax:"*";inherits:false}@property --tw-skew-x{syntax:"*";inherits:false}@property --tw-skew-y{syntax:"*";inherits:false}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-leading{syntax:"*";inherits:false}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"<length>";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-blur{syntax:"*";inherits:false}@property --tw-brightness{syntax:"*";inherits:false}@property --tw-contrast{syntax:"*";inherits:false}@property --tw-grayscale{syntax:"*";inherits:false}@property --tw-hue-rotate{syntax:"*";inherits:false}@property --tw-invert{syntax:"*";inherits:false}@property --tw-opacity{syntax:"*";inherits:false}@property --tw-saturate{syntax:"*";inherits:false}@property --tw-sepia{syntax:"*";inherits:false}@property --tw-drop-shadow{syntax:"*";inherits:false}@property --tw-drop-shadow-color{syntax:"*";inherits:false}@property --tw-drop-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-drop-shadow-size{syntax:"*";inherits:false}@property --tw-backdrop-blur{syntax:"*";inherits:false}@property --tw-backdrop-brightness{syntax:"*";inherits:false}@property --tw-backdrop-contrast{syntax:"*";inherits:false}@property --tw-backdrop-grayscale{syntax:"*";inherits:false}@property --tw-backdrop-hue-rotate{syntax:"*";inherits:false}@property --tw-backdrop-invert{syntax:"*";inherits:false}@property --tw-backdrop-opacity{syntax:"*";inherits:false}@property --tw-backdrop-saturate{syntax:"*";inherits:false}@property --tw-backdrop-sepia{syntax:"*";inherits:false}@property --tw-duration{syntax:"*";inherits:false}@property --tw-scale-x{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-y{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-z{syntax:"*";inherits:false;initial-value:1}
|
|
1
|
+
/*! tailwindcss v4.1.12 | MIT License | https://tailwindcss.com */@layer properties{@supports ((-webkit-hyphens:none) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){.sw *,.sw :before,.sw :after,.sw ::backdrop{--tw-translate-x:0;--tw-translate-y:0;--tw-translate-z:0;--tw-rotate-x:initial;--tw-rotate-y:initial;--tw-rotate-z:initial;--tw-skew-x:initial;--tw-skew-y:initial;--tw-border-style:solid;--tw-leading:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-blur:initial;--tw-brightness:initial;--tw-contrast:initial;--tw-grayscale:initial;--tw-hue-rotate:initial;--tw-invert:initial;--tw-opacity:initial;--tw-saturate:initial;--tw-sepia:initial;--tw-drop-shadow:initial;--tw-drop-shadow-color:initial;--tw-drop-shadow-alpha:100%;--tw-drop-shadow-size:initial;--tw-backdrop-blur:initial;--tw-backdrop-brightness:initial;--tw-backdrop-contrast:initial;--tw-backdrop-grayscale:initial;--tw-backdrop-hue-rotate:initial;--tw-backdrop-invert:initial;--tw-backdrop-opacity:initial;--tw-backdrop-saturate:initial;--tw-backdrop-sepia:initial;--tw-duration:initial;--tw-scale-x:1;--tw-scale-y:1;--tw-scale-z:1}}}@layer theme{.sw,.sw :host{--radius-full:99999px;--radius-sw-md:var(--sw-radius-md);--radius-sw-lg:var(--sw-radius-lg);--color-sw-gray-50:var(--sw-gray-50);--color-sw-gray-100:var(--sw-gray-100);--color-sw-gray-200:var(--sw-gray-200);--color-sw-gray-300:var(--sw-gray-300);--color-sw-gray-400:var(--sw-gray-400);--color-sw-gray-500:var(--sw-gray-500);--color-sw-gray-600:var(--sw-gray-600);--color-sw-gray-700:var(--sw-gray-700);--color-sw-gray-800:var(--sw-gray-800);--color-sw-gray-900:var(--sw-gray-900);--color-sw-gray-975:var(--sw-gray-975);--color-sw-mauve-50:var(--sw-mauve-50);--color-sw-mauve-100:var(--sw-mauve-100);--color-sw-mauve-200:var(--sw-mauve-200);--color-sw-mauve-300:var(--sw-mauve-300);--color-sw-mauve-400:var(--sw-mauve-400);--color-sw-mauve-700:var(--sw-mauve-700);--color-sw-mauve-800:var(--sw-mauve-800);--color-sw-mauve-975:var(--sw-mauve-975);--color-sw-dune-300:var(--sw-dune-300);--color-sw-alert-100:var(--sw-alert-100);--color-sw-alert-900:var(--sw-alert-900);--color-sw-success-100:var(--sw-success-100);--color-sw-success-900:var(--sw-success-900);--color-sw-warn-100:var(--sw-warn-100);--color-sw-warn-900:var(--sw-warn-900);--color-sw-complete-100:var(--sw-complete-100);--color-sw-complete-900:var(--sw-complete-900);--color-sw-modal-bg:var(--sw-modal-bg);--color-sw-modal-item:var(--sw-modal-item);--spacing-sw-xxs:var(--sw-space-xxs);--spacing-sw-xs:var(--sw-space-xs);--spacing-sw-sm:var(--sw-space-sm);--spacing-sw-md:var(--sw-space-md);--spacing-sw-lg:var(--sw-space-lg);--spacing-sw-xl:var(--sw-space-xl);--spacing-sw-2xl:var(--sw-space-2xl);--spacing-sw-3xl:var(--sw-space-3xl);--spacing-sw-4xl:var(--sw-space-4xl);--spacing-sw-5xl:var(--sw-space-5xl);--spacing-sw-6xl:var(--sw-space-6xl)}}@layer base{.sw *,.sw :after,.sw :before,.sw ::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}.sw ::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}.sw,.sw :host{-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent;font-family:ui-sans-serif,system-ui,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;line-height:1.5}.sw hr{height:0;color:inherit;border-top-width:1px}.sw abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}.sw h1,.sw h2,.sw h3,.sw h4,.sw h5,.sw h6{font-size:inherit;font-weight:inherit}.sw a{color:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}.sw b,.sw strong{font-weight:bolder}.sw code,.sw kbd,.sw samp,.sw pre{font-feature-settings:normal;font-variation-settings:normal;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em}.sw small{font-size:80%}.sw sub,.sw sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}.sw sub{bottom:-.25em}.sw sup{top:-.5em}.sw table{text-indent:0;border-color:inherit;border-collapse:collapse}.sw :-moz-focusring{outline:auto}.sw progress{vertical-align:baseline}.sw summary{display:list-item}.sw ol,.sw ul,.sw menu{list-style:none}.sw img,.sw svg,.sw video,.sw canvas,.sw audio,.sw iframe,.sw embed,.sw object{vertical-align:middle;display:block}.sw img,.sw video{max-width:100%;height:auto}.sw button,.sw input,.sw select,.sw optgroup,.sw textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}.sw ::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}.sw :where(select:is([multiple],[size])) optgroup{font-weight:bolder}.sw :where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}.sw ::file-selector-button{margin-inline-end:4px}.sw ::-moz-placeholder{opacity:1}.sw ::placeholder{opacity:1}@supports (not (-webkit-appearance:-apple-pay-button)) or (contain-intrinsic-size:1px){.sw ::-moz-placeholder{color:currentColor}.sw ::placeholder{color:currentColor}@supports (color:color-mix(in lab,red,red)){.sw ::-moz-placeholder{color:color-mix(in oklab,currentcolor 50%,transparent)}.sw ::placeholder{color:color-mix(in oklab,currentcolor 50%,transparent)}}}.sw textarea{resize:vertical}.sw ::-webkit-search-decoration{-webkit-appearance:none}.sw ::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}.sw ::-webkit-datetime-edit{display:inline-flex}.sw ::-webkit-datetime-edit-fields-wrapper{padding:0}.sw ::-webkit-datetime-edit{padding-block:0}.sw ::-webkit-datetime-edit-year-field{padding-block:0}.sw ::-webkit-datetime-edit-month-field{padding-block:0}.sw ::-webkit-datetime-edit-day-field{padding-block:0}.sw ::-webkit-datetime-edit-hour-field{padding-block:0}.sw ::-webkit-datetime-edit-minute-field{padding-block:0}.sw ::-webkit-datetime-edit-second-field{padding-block:0}.sw ::-webkit-datetime-edit-millisecond-field{padding-block:0}.sw ::-webkit-datetime-edit-meridiem-field{padding-block:0}.sw ::-webkit-calendar-picker-indicator{line-height:1}.sw :-moz-ui-invalid{box-shadow:none}.sw button,.sw input:where([type=button],[type=reset],[type=submit]){-webkit-appearance:button;-moz-appearance:button;appearance:button}.sw ::file-selector-button{-webkit-appearance:button;-moz-appearance:button;appearance:button}.sw ::-webkit-inner-spin-button{height:auto}.sw ::-webkit-outer-spin-button{height:auto}.sw [hidden]:where(:not([hidden=until-found])){display:none!important}.sw{font-family:var(--sw-font-sans)}}@layer components{.sw .text-sw-display{font-size:72px;font-weight:500;line-height:74px}.sw .text-sw-h1{font-size:48px;font-weight:500;line-height:48px}.sw .text-sw-h2{font-size:40px;font-weight:500;line-height:40px}.sw .text-sw-h3{font-size:32px;font-weight:500;line-height:32px}.sw .text-sw-h4{font-size:24px;font-weight:500;line-height:24px}.sw .text-sw-p-xs{font-size:12px;font-weight:400;line-height:18px}.sw .text-sw-p-s{font-size:14px;font-weight:400;line-height:20px}.sw .text-sw-p-m{font-size:16px;font-weight:400;line-height:24px}.sw .text-sw-label-s{font-size:12px;font-weight:400;line-height:12px}.sw .text-sw-label-m{font-size:14px;font-weight:400;line-height:16px}.sw .text-sw-label-l{font-size:16px;font-weight:400;line-height:18px}}@layer utilities{.sw .absolute{position:absolute}.sw .fixed{position:fixed}.sw .relative{position:relative}.sw .static{position:static}.sw .top-1\/2{top:50%}.sw .top-\[17px\]{top:17px}.sw .right-\[-4px\]{right:-4px}.sw .left-1\/2{left:50%}.sw .z-10{z-index:10}.sw .z-50{z-index:50}.sw .container{width:100%}.sw .m-sw-lg{margin:var(--spacing-sw-lg)}.sw .mx-auto{margin-inline:auto}.sw .my-sw-sm{margin-block:var(--spacing-sw-sm)}.sw .mt-\[58px\]{margin-top:58px}.sw .mt-sw-md{margin-top:var(--spacing-sw-md)}.sw .mt-sw-sm{margin-top:var(--spacing-sw-sm)}.sw .mt-sw-xl{margin-top:var(--spacing-sw-xl)}.sw .mt-sw-xs{margin-top:var(--spacing-sw-xs)}.sw .mr-auto{margin-right:auto}.sw .mr-sw-md{margin-right:var(--spacing-sw-md)}.sw .mb-sw-4xl{margin-bottom:var(--spacing-sw-4xl)}.sw .mb-sw-md{margin-bottom:var(--spacing-sw-md)}.sw .mb-sw-xl{margin-bottom:var(--spacing-sw-xl)}.sw .ml-auto{margin-left:auto}.sw .ml-sw-lg{margin-left:var(--spacing-sw-lg)}.sw .ml-sw-md{margin-left:var(--spacing-sw-md)}.sw .contents{display:contents}.sw .flex{display:flex}.sw .hidden{display:none}.sw .inline{display:inline}.sw .inline-block{display:inline-block}.sw .h-\[1px\]{height:1px}.sw .h-\[12px\]{height:12px}.sw .h-\[16px\]{height:16px}.sw .h-\[20px\]{height:20px}.sw .h-\[28px\]{height:28px}.sw .h-\[36px\]{height:36px}.sw .h-\[40px\]{height:40px}.sw .h-\[44px\]{height:44px}.sw .h-\[48px\]{height:48px}.sw .h-\[72px\]{height:72px}.sw .h-\[120px\]{height:120px}.sw .h-\[180px\]{height:180px}.sw .h-full{height:100%}.sw .h-sw-2xl{height:var(--spacing-sw-2xl)}.sw .h-sw-lg{height:var(--spacing-sw-lg)}.sw .h-sw-xl{height:var(--spacing-sw-xl)}.sw .max-h-\[400px\]{max-height:400px}.sw .min-h-\[56px\]{min-height:56px}.sw .min-h-\[200px\]{min-height:200px}.sw .min-h-sw-2xl{min-height:var(--spacing-sw-2xl)}.sw .w-\[16px\]{width:16px}.sw .w-\[28px\]{width:28px}.sw .w-\[40px\]{width:40px}.sw .w-\[44px\]{width:44px}.sw .w-\[60px\]{width:60px}.sw .w-\[100px\]{width:100px}.sw .w-\[180px\]{width:180px}.sw .w-\[200px\]{width:200px}.sw .w-\[456px\]{width:456px}.sw .w-fit{width:-moz-fit-content;width:fit-content}.sw .w-full{width:100%}.sw .w-sw-2xl{width:var(--spacing-sw-2xl)}.sw .w-sw-lg{width:var(--spacing-sw-lg)}.sw .w-sw-xl{width:var(--spacing-sw-xl)}.sw .max-w-\[80\%\]{max-width:80%}.sw .max-w-\[311px\]{max-width:311px}.sw .max-w-\[359px\]{max-width:359px}.sw .min-w-\[80px\]{min-width:80px}.sw .min-w-\[100px\]{min-width:100px}.sw .min-w-\[200px\]{min-width:200px}.sw .shrink-0{flex-shrink:0}.sw .-translate-x-1\/2{--tw-translate-x: -50% ;translate:var(--tw-translate-x)var(--tw-translate-y)}.sw .-translate-y-1\/2{--tw-translate-y: -50% ;translate:var(--tw-translate-x)var(--tw-translate-y)}.sw .transform{transform:var(--tw-rotate-x,)var(--tw-rotate-y,)var(--tw-rotate-z,)var(--tw-skew-x,)var(--tw-skew-y,)}.sw .cursor-default{cursor:default}.sw .cursor-not-allowed{cursor:not-allowed}.sw .cursor-pointer{cursor:pointer}.sw .list-none{list-style-type:none}.sw .flex-col{flex-direction:column}.sw .flex-wrap{flex-wrap:wrap}.sw .items-center{align-items:center}.sw .items-end{align-items:flex-end}.sw .justify-between{justify-content:space-between}.sw .justify-center{justify-content:center}.sw .gap-\[10px\]{gap:10px}.sw .gap-sw-2xl{gap:var(--spacing-sw-2xl)}.sw .gap-sw-lg{gap:var(--spacing-sw-lg)}.sw .gap-sw-md{gap:var(--spacing-sw-md)}.sw .gap-sw-sm{gap:var(--spacing-sw-sm)}.sw .gap-sw-xl{gap:var(--spacing-sw-xl)}.sw .gap-sw-xs{gap:var(--spacing-sw-xs)}.sw .gap-sw-xxs{gap:var(--spacing-sw-xxs)}.sw .overflow-hidden{overflow:hidden}.sw .rounded-\[4px\]{border-radius:4px}.sw .rounded-\[10px\]{border-radius:10px}.sw .rounded-full{border-radius:3.40282e38px;border-radius:var(--radius-full)}.sw .rounded-sw-lg{border-radius:var(--radius-sw-lg)}.sw .rounded-sw-md{border-radius:var(--radius-sw-md)}.sw .border{border-style:var(--tw-border-style);border-width:1px}.sw .border-2{border-style:var(--tw-border-style);border-width:2px}.sw .border-none{--tw-border-style:none;border-style:none}.sw .border-sw-gray-500{border-color:var(--color-sw-gray-500)}.sw .border-sw-gray-900{border-color:var(--color-sw-gray-900)}.sw .bg-sw-alert-900{background-color:var(--color-sw-alert-900)}.sw .bg-sw-complete-900{background-color:var(--color-sw-complete-900)}.sw .bg-sw-dune-300{background-color:var(--color-sw-dune-300)}.sw .bg-sw-gray-50{background-color:var(--color-sw-gray-50)}.sw .bg-sw-gray-200{background-color:var(--color-sw-gray-200)}.sw .bg-sw-gray-500{background-color:var(--color-sw-gray-500)}.sw .bg-sw-gray-600{background-color:var(--color-sw-gray-600)}.sw .bg-sw-gray-700{background-color:var(--color-sw-gray-700)}.sw .bg-sw-gray-800{background-color:var(--color-sw-gray-800)}.sw .bg-sw-gray-900{background-color:var(--color-sw-gray-900)}.sw .bg-sw-gray-975,.sw .bg-sw-gray-975\/70{background-color:var(--color-sw-gray-975)}@supports (color:color-mix(in lab,red,red)){.sw .bg-sw-gray-975\/70{background-color:color-mix(in oklab,var(--color-sw-gray-975)70%,transparent)}}.sw .bg-sw-mauve-300{background-color:var(--color-sw-mauve-300)}.sw .bg-sw-mauve-700{background-color:var(--color-sw-mauve-700)}.sw .bg-sw-mauve-800{background-color:var(--color-sw-mauve-800)}.sw .bg-sw-modal-bg{background-color:var(--color-sw-modal-bg)}.sw .bg-sw-modal-item{background-color:var(--color-sw-modal-item)}.sw .bg-sw-success-100{background-color:var(--color-sw-success-100)}.sw .bg-sw-success-900{background-color:var(--color-sw-success-900)}.sw .bg-sw-warn-900{background-color:var(--color-sw-warn-900)}.sw .bg-transparent{background-color:#0000}.sw .p-sw-2xl{padding:var(--spacing-sw-2xl)}.sw .p-sw-lg{padding:var(--spacing-sw-lg)}.sw .p-sw-md{padding:var(--spacing-sw-md)}.sw .px-\[1px\]{padding-inline:1px}.sw .px-sw-2xl{padding-inline:var(--spacing-sw-2xl)}.sw .px-sw-3xl{padding-inline:var(--spacing-sw-3xl)}.sw .px-sw-lg{padding-inline:var(--spacing-sw-lg)}.sw .px-sw-md{padding-inline:var(--spacing-sw-md)}.sw .px-sw-sm{padding-inline:var(--spacing-sw-sm)}.sw .py-sw-6xl{padding-block:var(--spacing-sw-6xl)}.sw .py-sw-lg{padding-block:var(--spacing-sw-lg)}.sw .py-sw-md{padding-block:var(--spacing-sw-md)}.sw .py-sw-sm{padding-block:var(--spacing-sw-sm)}.sw .py-sw-xl{padding-block:var(--spacing-sw-xl)}.sw .py-sw-xs{padding-block:var(--spacing-sw-xs)}.sw .pt-\[10vh\]{padding-top:10vh}.sw .pt-sw-2xl{padding-top:var(--spacing-sw-2xl)}.sw .pt-sw-5xl{padding-top:var(--spacing-sw-5xl)}.sw .pt-sw-xl{padding-top:var(--spacing-sw-xl)}.sw .pr-sw-md{padding-right:var(--spacing-sw-md)}.sw .pb-sw-2xl{padding-bottom:var(--spacing-sw-2xl)}.sw .pb-sw-5xl{padding-bottom:var(--spacing-sw-5xl)}.sw .pb-sw-lg{padding-bottom:var(--spacing-sw-lg)}.sw .pl-sw-sm{padding-left:var(--spacing-sw-sm)}.sw .text-center{text-align:center}.sw .align-sub{vertical-align:sub}.sw .text-\[10px\]{font-size:10px}.sw .leading-\[18px\]{--tw-leading:18px;line-height:18px}.sw .text-nowrap{text-wrap:nowrap}.sw .text-sw-alert-100{color:var(--color-sw-alert-100)}.sw .text-sw-complete-100{color:var(--color-sw-complete-100)}.sw .text-sw-gray-50{color:var(--color-sw-gray-50)}.sw .text-sw-gray-100{color:var(--color-sw-gray-100)}.sw .text-sw-gray-200{color:var(--color-sw-gray-200)}.sw .text-sw-gray-300{color:var(--color-sw-gray-300)}.sw .text-sw-gray-975{color:var(--color-sw-gray-975)}.sw .text-sw-mauve-50{color:var(--color-sw-mauve-50)}.sw .text-sw-mauve-100{color:var(--color-sw-mauve-100)}.sw .text-sw-mauve-300{color:var(--color-sw-mauve-300)}.sw .text-sw-mauve-400{color:var(--color-sw-mauve-400)}.sw .text-sw-mauve-975{color:var(--color-sw-mauve-975)}.sw .text-sw-success-100{color:var(--color-sw-success-100)}.sw .text-sw-warn-100{color:var(--color-sw-warn-100)}.sw .lowercase{text-transform:lowercase}.sw .opacity-0{opacity:0}.sw .opacity-50{opacity:.5}.sw .opacity-60{opacity:.6}.sw .opacity-100{opacity:1}.sw .shadow-\[0px_0px_40px_0px_rgba\(0\,0\,0\,0\.5\)\]{--tw-shadow:0px 0px 40px 0px var(--tw-shadow-color,#00000080);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.sw .ring-1{--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(1px + var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.sw .ring-sw-alert-100{--tw-ring-color:var(--color-sw-alert-100)}.sw .ring-sw-gray-400{--tw-ring-color:var(--color-sw-gray-400)}.sw .ring-sw-gray-500{--tw-ring-color:var(--color-sw-gray-500)}.sw .ring-sw-gray-600{--tw-ring-color:var(--color-sw-gray-600)}.sw .ring-sw-mauve-300{--tw-ring-color:var(--color-sw-mauve-300)}.sw .ring-sw-mauve-700{--tw-ring-color:var(--color-sw-mauve-700)}.sw .ring-sw-success-100{--tw-ring-color:var(--color-sw-success-100)}.sw .ring-transparent{--tw-ring-color:transparent}.sw .filter{filter:var(--tw-blur,)var(--tw-brightness,)var(--tw-contrast,)var(--tw-grayscale,)var(--tw-hue-rotate,)var(--tw-invert,)var(--tw-saturate,)var(--tw-sepia,)var(--tw-drop-shadow,)}.sw .backdrop-blur-\[5px\]{--tw-backdrop-blur:blur(5px);backdrop-filter:var(--tw-backdrop-blur,)var(--tw-backdrop-brightness,)var(--tw-backdrop-contrast,)var(--tw-backdrop-grayscale,)var(--tw-backdrop-hue-rotate,)var(--tw-backdrop-invert,)var(--tw-backdrop-opacity,)var(--tw-backdrop-saturate,)var(--tw-backdrop-sepia,)}.sw .backdrop-filter{backdrop-filter:var(--tw-backdrop-blur,)var(--tw-backdrop-brightness,)var(--tw-backdrop-contrast,)var(--tw-backdrop-grayscale,)var(--tw-backdrop-hue-rotate,)var(--tw-backdrop-invert,)var(--tw-backdrop-opacity,)var(--tw-backdrop-saturate,)var(--tw-backdrop-sepia,)}.sw .transition{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to,opacity,box-shadow,transform,translate,scale,rotate,filter,backdrop-filter,display,visibility,content-visibility,overlay,pointer-events;transition-timing-function:var(--tw-ease,ease);transition-duration:var(--tw-duration,0s)}.sw .transition-\[backdrop-filter\]{transition-property:backdrop-filter;transition-timing-function:var(--tw-ease,ease);transition-duration:var(--tw-duration,0s)}.sw .transition-all{transition-property:all;transition-timing-function:var(--tw-ease,ease);transition-duration:var(--tw-duration,0s)}.sw .transition-colors{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to;transition-timing-function:var(--tw-ease,ease);transition-duration:var(--tw-duration,0s)}.sw .transition-opacity{transition-property:opacity;transition-timing-function:var(--tw-ease,ease);transition-duration:var(--tw-duration,0s)}.sw .transition-transform{transition-property:transform,translate,scale,rotate;transition-timing-function:var(--tw-ease,ease);transition-duration:var(--tw-duration,0s)}.sw .delay-0{transition-delay:0s}.sw .duration-100{--tw-duration:.1s;transition-duration:.1s}.sw .duration-150{--tw-duration:.15s;transition-duration:.15s}.sw .duration-250{--tw-duration:.25s;transition-duration:.25s}.sw .duration-300{--tw-duration:.3s;transition-duration:.3s}.sw .\[transition-timing-function\:cubic-bezier\(0\.175\,0\.885\,0\.32\,1\.275\)\]{transition-timing-function:cubic-bezier(.175,.885,.32,1.275)}.sw .outline-none{--tw-outline-style:none;outline-style:none}.sw .ring-inset{--tw-ring-inset:inset}@media (hover:hover){.sw .group-hover\:rotate-180:is(:where(.group):hover *){rotate:180deg}.sw .hover\:scale-110:hover{--tw-scale-x:110%;--tw-scale-y:110%;--tw-scale-z:110%;scale:var(--tw-scale-x)var(--tw-scale-y)}.sw .hover\:scale-125:hover{--tw-scale-x:125%;--tw-scale-y:125%;--tw-scale-z:125%;scale:var(--tw-scale-x)var(--tw-scale-y)}.sw .hover\:bg-sw-gray-100:hover{background-color:var(--color-sw-gray-100)}.sw .hover\:bg-sw-gray-500:hover{background-color:var(--color-sw-gray-500)}.sw .hover\:bg-sw-gray-600:hover{background-color:var(--color-sw-gray-600)}.sw .hover\:bg-sw-gray-700:hover{background-color:var(--color-sw-gray-700)}.sw .hover\:bg-sw-gray-800:hover{background-color:var(--color-sw-gray-800)}.sw .hover\:bg-sw-gray-900:hover{background-color:var(--color-sw-gray-900)}.sw .hover\:bg-sw-mauve-50:hover{background-color:var(--color-sw-mauve-50)}.sw .hover\:bg-sw-mauve-700:hover{background-color:var(--color-sw-mauve-700)}.sw .hover\:bg-transparent:hover{background-color:#0000}.sw .hover\:text-sw-gray-50:hover{color:var(--color-sw-gray-50)}.sw .hover\:text-sw-mauve-50:hover{color:var(--color-sw-mauve-50)}.sw .hover\:text-sw-mauve-200:hover{color:var(--color-sw-mauve-200)}.sw .hover\:text-sw-mauve-300:hover{color:var(--color-sw-mauve-300)}.sw .hover\:text-sw-mauve-975:hover{color:var(--color-sw-mauve-975)}}.sw .active\:scale-x-90:active{--tw-scale-x:90%;scale:var(--tw-scale-x)var(--tw-scale-y)}.sw .active\:scale-y-110:active{--tw-scale-y:110%;scale:var(--tw-scale-x)var(--tw-scale-y)}.sw .data-focus\:outline-none[data-focus]{--tw-outline-style:none;outline-style:none}}.sw{--sw-font-sans:"Suisse Intl",ui-sans-serif,system-ui,sans-serif;--sw-radius-xl:20px;--sw-radius-md:10px;--sw-radius-lg:16px;--sw-radius-sm:6px;--sw-gray-50:#ebedf5;--sw-gray-100:#b2b5c1;--sw-gray-200:#7c7f8a;--sw-gray-300:#71747f;--sw-gray-400:#666873;--sw-gray-500:#4f525c;--sw-gray-600:#444650;--sw-gray-700:#3c3e48;--sw-gray-800:#373942;--sw-gray-900:#31343d;--sw-gray-950:#2a2c33;--sw-gray-975:#24262d;--sw-mauve-50:#e6ddf5;--sw-mauve-100:#c7a9f0;--sw-mauve-200:#cbadf4;--sw-mauve-300:#d5b7ff;--sw-mauve-400:#7c619f;--sw-mauve-500:#675185;--sw-mauve-600:#594573;--sw-mauve-700:#503c68;--sw-mauve-800:#47365e;--sw-mauve-900:#3c304c;--sw-mauve-950:#2c2733;--sw-mauve-975:#28242e;--sw-dune-50:#ede5d9;--sw-dune-100:#c9bca6;--sw-dune-200:#c2b6a0;--sw-dune-300:#cdc0aa;--sw-dune-400:#776c5b;--sw-dune-500:#5f584b;--sw-dune-600:#504b41;--sw-dune-700:#46423b;--sw-dune-800:#3e3b36;--sw-dune-900:#373531;--sw-dune-950:#2e2d2b;--sw-dune-975:#272625;--sw-alert-100:#f4bbbf;--sw-alert-900:#433c43;--sw-success-100:#b0fcbb;--sw-success-900:#3e4849;--sw-warn-100:#f6e0b3;--sw-warn-900:#42403e;--sw-complete-100:#99e2ff;--sw-complete-900:#36424c;--sw-modal-bg:#010714;--sw-modal-item:#151a26;--sw-space-xxs:2px;--sw-space-xs:4px;--sw-space-sm:6px;--sw-space-md:8px;--sw-space-lg:12px;--sw-space-xl:16px;--sw-space-2xl:20px;--sw-space-3xl:24px;--sw-space-4xl:32px;--sw-space-5xl:40px;--sw-space-6xl:48px;--sw-space-7xl:64px;--sw-space-8xl:72px;--sw-space-9xl:80px;--sw-space-10xl:88px;--sw-space-11xl:96px;--sw-space-12xl:108px;--sw-space-max:128px}@property --tw-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-y{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-z{syntax:"*";inherits:false;initial-value:0}@property --tw-rotate-x{syntax:"*";inherits:false}@property --tw-rotate-y{syntax:"*";inherits:false}@property --tw-rotate-z{syntax:"*";inherits:false}@property --tw-skew-x{syntax:"*";inherits:false}@property --tw-skew-y{syntax:"*";inherits:false}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-leading{syntax:"*";inherits:false}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"<length>";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-blur{syntax:"*";inherits:false}@property --tw-brightness{syntax:"*";inherits:false}@property --tw-contrast{syntax:"*";inherits:false}@property --tw-grayscale{syntax:"*";inherits:false}@property --tw-hue-rotate{syntax:"*";inherits:false}@property --tw-invert{syntax:"*";inherits:false}@property --tw-opacity{syntax:"*";inherits:false}@property --tw-saturate{syntax:"*";inherits:false}@property --tw-sepia{syntax:"*";inherits:false}@property --tw-drop-shadow{syntax:"*";inherits:false}@property --tw-drop-shadow-color{syntax:"*";inherits:false}@property --tw-drop-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-drop-shadow-size{syntax:"*";inherits:false}@property --tw-backdrop-blur{syntax:"*";inherits:false}@property --tw-backdrop-brightness{syntax:"*";inherits:false}@property --tw-backdrop-contrast{syntax:"*";inherits:false}@property --tw-backdrop-grayscale{syntax:"*";inherits:false}@property --tw-backdrop-hue-rotate{syntax:"*";inherits:false}@property --tw-backdrop-invert{syntax:"*";inherits:false}@property --tw-backdrop-opacity{syntax:"*";inherits:false}@property --tw-backdrop-saturate{syntax:"*";inherits:false}@property --tw-backdrop-sepia{syntax:"*";inherits:false}@property --tw-duration{syntax:"*";inherits:false}@property --tw-scale-x{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-y{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-z{syntax:"*";inherits:false;initial-value:1}
|