@aurora-is-near/intents-swap-widget 2.0.1 → 2.2.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/dist/features/SubmitButton/index.d.ts +4 -1
- package/dist/features/SubmitButton/index.js +39 -32
- package/dist/features/SubmitButton/index.js.map +1 -1
- package/dist/styles.css +1 -1
- package/dist/types/localisation.d.ts +1 -1
- package/dist/widgets/WidgetDeposit.js +63 -58
- package/dist/widgets/WidgetDeposit.js.map +1 -1
- package/dist/widgets/WidgetSwap.js +63 -58
- package/dist/widgets/WidgetSwap.js.map +1 -1
- package/dist/widgets/WidgetWithdraw.js +70 -59
- package/dist/widgets/WidgetWithdraw.js.map +1 -1
- package/package.json +3 -4
- package/src/features/SubmitButton/index.tsx +14 -4
- package/src/types/localisation.ts +12 -4
- package/src/widgets/WidgetDeposit.tsx +8 -0
- package/src/widgets/WidgetSwap.tsx +8 -1
- package/src/widgets/WidgetWithdraw.tsx +14 -1
|
@@ -7,8 +7,11 @@ type Msg = {
|
|
|
7
7
|
};
|
|
8
8
|
type Props = QuoteTransferArgs & IntentsTransferArgs & {
|
|
9
9
|
onMsg: (msg: Msg) => void;
|
|
10
|
+
externalSwapLabel: string;
|
|
11
|
+
internalSwapLabel: string;
|
|
12
|
+
transferLabel: string;
|
|
10
13
|
};
|
|
11
|
-
export declare const SubmitButton: (({ providers, makeTransfer, onMsg }: Props) => import("react/jsx-runtime").JSX.Element) & {
|
|
14
|
+
export declare const SubmitButton: (({ providers, makeTransfer, onMsg, internalSwapLabel, externalSwapLabel, transferLabel, }: Props) => import("react/jsx-runtime").JSX.Element) & {
|
|
12
15
|
Error: () => import("react/jsx-runtime").JSX.Element | undefined;
|
|
13
16
|
};
|
|
14
17
|
export {};
|
|
@@ -1,31 +1,31 @@
|
|
|
1
|
-
import { jsx as e, jsxs as
|
|
2
|
-
import { Trans as
|
|
1
|
+
import { jsx as e, jsxs as a } from "react/jsx-runtime";
|
|
2
|
+
import { Trans as w } from "react-i18next";
|
|
3
3
|
import { Button as t } from "../../components/Button.js";
|
|
4
|
-
import { TinyNumber as
|
|
4
|
+
import { TinyNumber as O } from "../../components/TinyNumber.js";
|
|
5
5
|
import { ErrorMessage as l } from "../../components/ErrorMessage.js";
|
|
6
|
-
import { g, e as
|
|
6
|
+
import { g, e as R } from "../../config-CsHJaepw.js";
|
|
7
7
|
import { useTypedTranslation as h } from "../../localisation.js";
|
|
8
|
-
import { useMakeTransfer as
|
|
9
|
-
import { isNotEmptyAmount as
|
|
10
|
-
import { NATIVE_NEAR_DUMB_ASSET_ID as
|
|
8
|
+
import { useMakeTransfer as y } from "../../hooks/useMakeTransfer.js";
|
|
9
|
+
import { isNotEmptyAmount as D } from "../../utils/checkers/isNotEmptyAmount.js";
|
|
10
|
+
import { NATIVE_NEAR_DUMB_ASSET_ID as F, WNEAR_ASSET_ID as B } from "../../constants/tokens.js";
|
|
11
11
|
const n = {
|
|
12
12
|
size: "lg",
|
|
13
13
|
variant: "primary"
|
|
14
14
|
}, N = (r) => {
|
|
15
|
-
const { t:
|
|
15
|
+
const { t: o } = h();
|
|
16
16
|
if (r.error?.code === "SOURCE_BALANCE_INSUFFICIENT")
|
|
17
|
-
return /* @__PURE__ */ e(t, { state: "error", ...n, children:
|
|
17
|
+
return /* @__PURE__ */ e(t, { state: "error", ...n, children: o("submit.error.insufficientBalance", "Insufficient balance") });
|
|
18
18
|
if (r.error?.code === "TOKEN_IS_NOT_SUPPORTED")
|
|
19
|
-
return /* @__PURE__ */ e(t, { state: "error", ...n, children:
|
|
19
|
+
return /* @__PURE__ */ e(t, { state: "error", ...n, children: o("submit.error.invalidAddress", "Invalid address") });
|
|
20
20
|
if (r.error?.code === "QUOTE_AMOUNT_IS_TOO_LOW")
|
|
21
|
-
return /* @__PURE__ */
|
|
22
|
-
/* @__PURE__ */ e(t, { state: "error", ...n, children:
|
|
23
|
-
/* @__PURE__ */ e(l, { children: /* @__PURE__ */
|
|
21
|
+
return /* @__PURE__ */ a("div", { className: "gap-sw-md flex flex-col", children: [
|
|
22
|
+
/* @__PURE__ */ e(t, { state: "error", ...n, children: o("submit.error.amountTooLow.label", "Amount is too low") }),
|
|
23
|
+
/* @__PURE__ */ e(l, { children: /* @__PURE__ */ a(w, { i18nKey: "submit.error.amountTooLow.message", children: [
|
|
24
24
|
"Amount you entered is very low. Please try increasing it",
|
|
25
25
|
" ",
|
|
26
|
-
/* @__PURE__ */
|
|
26
|
+
/* @__PURE__ */ a("span", { className: "text-nowrap", children: [
|
|
27
27
|
"above ",
|
|
28
|
-
/* @__PURE__ */ e(
|
|
28
|
+
/* @__PURE__ */ e(O, { value: r.error.meta.minAmount ?? "0" }),
|
|
29
29
|
" ",
|
|
30
30
|
r.sourceToken?.symbol ?? "",
|
|
31
31
|
"."
|
|
@@ -33,40 +33,47 @@ const n = {
|
|
|
33
33
|
] }) })
|
|
34
34
|
] });
|
|
35
35
|
if (r.quoteStatus === "error")
|
|
36
|
-
return /* @__PURE__ */
|
|
37
|
-
/* @__PURE__ */ e(t, { state: "error", ...n, children:
|
|
38
|
-
/* @__PURE__ */ e(l, { children:
|
|
36
|
+
return /* @__PURE__ */ a("div", { className: "gap-sw-md flex flex-col", children: [
|
|
37
|
+
/* @__PURE__ */ e(t, { state: "error", ...n, children: o("submit.error.quoteFailed.label", "Quote failed") }),
|
|
38
|
+
/* @__PURE__ */ e(l, { children: o(
|
|
39
39
|
"submit.error.quoteFailed.message",
|
|
40
40
|
"We couldn’t finalize your quote. Please try again or adjust your values."
|
|
41
41
|
) })
|
|
42
42
|
] });
|
|
43
43
|
if (r.error?.code === "TRANSFER_INVALID_INITIAL")
|
|
44
|
-
return /* @__PURE__ */
|
|
45
|
-
/* @__PURE__ */ e(t, { state: "error", ...n, children:
|
|
44
|
+
return /* @__PURE__ */ a("div", { className: "gap-sw-md flex flex-col", children: [
|
|
45
|
+
/* @__PURE__ */ e(t, { state: "error", ...n, children: o("submit.error.invalidTransferData.label", "Invalid transfer data") }),
|
|
46
46
|
r.error.meta?.message ? /* @__PURE__ */ e(l, { children: r.error.meta.message }) : null
|
|
47
47
|
] });
|
|
48
48
|
if (r.error?.code === "DIRECT_TRANSFER_ERROR")
|
|
49
|
-
return /* @__PURE__ */
|
|
50
|
-
/* @__PURE__ */ e(t, { state: "error", ...n, children:
|
|
49
|
+
return /* @__PURE__ */ a("div", { className: "gap-sw-md flex flex-col", children: [
|
|
50
|
+
/* @__PURE__ */ e(t, { state: "error", ...n, children: o("submit.error.transferFailed.label", "Transfer failed") }),
|
|
51
51
|
r.error.meta?.message ? /* @__PURE__ */ e(l, { children: r.error.meta.message }) : null
|
|
52
52
|
] });
|
|
53
|
-
},
|
|
53
|
+
}, k = () => {
|
|
54
54
|
const { ctx: r } = g();
|
|
55
55
|
return N(r);
|
|
56
|
-
},
|
|
56
|
+
}, C = ({
|
|
57
|
+
providers: r,
|
|
58
|
+
makeTransfer: o,
|
|
59
|
+
onMsg: I,
|
|
60
|
+
internalSwapLabel: E,
|
|
61
|
+
externalSwapLabel: S,
|
|
62
|
+
transferLabel: _
|
|
63
|
+
}) => {
|
|
57
64
|
const { ctx: s } = g(), { t: i } = h(), {
|
|
58
65
|
isDirectTransfer: d,
|
|
59
66
|
isDirectNonNearWithdrawal: m,
|
|
60
67
|
isNearToIntentsSameAssetTransfer: c,
|
|
61
68
|
isDirectNearDeposit: f
|
|
62
|
-
} =
|
|
63
|
-
const b = await
|
|
69
|
+
} = R(), { make: A } = y({ providers: r, makeTransfer: o }), T = N(s), p = s.sourceToken?.assetId === F && s.targetToken?.assetId === B, u = () => d || m || c || f || p ? _ : s.sourceToken?.isIntent && s.targetToken?.isIntent ? E : S, v = async () => {
|
|
70
|
+
const b = await A();
|
|
64
71
|
b && I({
|
|
65
72
|
type: "on_successful_transfer",
|
|
66
73
|
transfer: b
|
|
67
74
|
});
|
|
68
75
|
};
|
|
69
|
-
if (!
|
|
76
|
+
if (!D(s.sourceTokenAmount))
|
|
70
77
|
return /* @__PURE__ */ e(t, { ...n, state: "disabled", children: "Enter amount" });
|
|
71
78
|
if (T)
|
|
72
79
|
return T;
|
|
@@ -78,7 +85,7 @@ const n = {
|
|
|
78
85
|
default:
|
|
79
86
|
return /* @__PURE__ */ e(t, { state: "loading", ...n, children: i("submit.pending.transfer.finalizing", "Finalizing transfer") });
|
|
80
87
|
}
|
|
81
|
-
return s.transferStatus.status === "error" ? /* @__PURE__ */
|
|
88
|
+
return s.transferStatus.status === "error" ? /* @__PURE__ */ a("div", { className: "gap-sw-md flex flex-col", children: [
|
|
82
89
|
/* @__PURE__ */ e(t, { ...n, children: u() }),
|
|
83
90
|
/* @__PURE__ */ e(l, { children: (() => {
|
|
84
91
|
switch (s.error?.code) {
|
|
@@ -94,11 +101,11 @@ const n = {
|
|
|
94
101
|
);
|
|
95
102
|
}
|
|
96
103
|
})() })
|
|
97
|
-
] }) : s.quoteStatus === "pending" ? /* @__PURE__ */ e(t, { state: "loading", ...n, children: i("submit.pending.quote.finalizing", "Finalizing quote") }) : s.error ? /* @__PURE__ */ e(t, { state: "disabled", ...n, children: u() }) : !s.quote && !d && !m && !c && !f && !p ? /* @__PURE__ */ e(t, { state: "disabled", ...n, children: u() }) : /* @__PURE__ */ e(t, { ...n, onClick:
|
|
98
|
-
},
|
|
99
|
-
Error:
|
|
104
|
+
] }) : s.quoteStatus === "pending" ? /* @__PURE__ */ e(t, { state: "loading", ...n, children: i("submit.pending.quote.finalizing", "Finalizing quote") }) : s.error ? /* @__PURE__ */ e(t, { state: "disabled", ...n, children: u() }) : !s.quote && !d && !m && !c && !f && !p ? /* @__PURE__ */ e(t, { state: "disabled", ...n, children: u() }) : /* @__PURE__ */ e(t, { ...n, onClick: v, children: u() });
|
|
105
|
+
}, K = Object.assign(C, {
|
|
106
|
+
Error: k
|
|
100
107
|
});
|
|
101
108
|
export {
|
|
102
|
-
|
|
109
|
+
K as SubmitButton
|
|
103
110
|
};
|
|
104
111
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../src/features/SubmitButton/index.tsx"],"sourcesContent":["import { Trans } from 'react-i18next';\nimport { Button } from '@/components/Button';\nimport { TinyNumber } from '@/components/TinyNumber';\nimport { ErrorMessage } from '@/components/ErrorMessage';\nimport { useComputedSnapshot, useUnsafeSnapshot } from '@/machine/snap';\nimport type { TransferResult } from '@/types/transfer';\nimport type { Context } from '@/machine/context';\n\nimport { useTypedTranslation } from '@/localisation';\nimport { useMakeTransfer } from '@/hooks/useMakeTransfer';\nimport { isNotEmptyAmount } from '@/utils/checkers/isNotEmptyAmount';\nimport { NATIVE_NEAR_DUMB_ASSET_ID, WNEAR_ASSET_ID } from '@/constants/tokens';\nimport type { QuoteTransferArgs } from '@/hooks/useMakeQuoteTransfer';\nimport type { IntentsTransferArgs } from '@/hooks/useMakeIntentsTransfer';\n\ntype Msg = { type: 'on_successful_transfer'; transfer: TransferResult };\n\ntype Props = QuoteTransferArgs &\n IntentsTransferArgs & {\n onMsg: (msg: Msg) => void;\n };\n\nconst commonBtnProps = {\n size: 'lg' as const,\n variant: 'primary' as const,\n};\n\nconst useGetErrorButton = (ctx: Context) => {\n const { t } = useTypedTranslation();\n\n if (ctx.error?.code === 'SOURCE_BALANCE_INSUFFICIENT') {\n return (\n <Button state=\"error\" {...commonBtnProps}>\n {t('submit.error.insufficientBalance', 'Insufficient balance')}\n </Button>\n );\n }\n\n if (ctx.error?.code === 'TOKEN_IS_NOT_SUPPORTED') {\n return (\n <Button state=\"error\" {...commonBtnProps}>\n {t('submit.error.invalidAddress', 'Invalid address')}\n </Button>\n );\n }\n\n if (ctx.error?.code === 'QUOTE_AMOUNT_IS_TOO_LOW') {\n return (\n <div className=\"gap-sw-md flex flex-col\">\n <Button state=\"error\" {...commonBtnProps}>\n {t('submit.error.amountTooLow.label', 'Amount is too low')}\n </Button>\n <ErrorMessage>\n <Trans i18nKey=\"submit.error.amountTooLow.message\">\n Amount you entered is very low. Please try increasing it{' '}\n <span className=\"text-nowrap\">\n above <TinyNumber value={ctx.error.meta.minAmount ?? '0'} />{' '}\n {ctx.sourceToken?.symbol ?? ''}.\n </span>\n </Trans>\n </ErrorMessage>\n </div>\n );\n }\n\n // other quote errors\n if (ctx.quoteStatus === 'error') {\n return (\n <div className=\"gap-sw-md flex flex-col\">\n <Button state=\"error\" {...commonBtnProps}>\n {t('submit.error.quoteFailed.label', 'Quote failed')}\n </Button>\n <ErrorMessage>\n {t(\n 'submit.error.quoteFailed.message',\n 'We couldn’t finalize your quote. Please try again or adjust your values.',\n )}\n </ErrorMessage>\n </div>\n );\n }\n\n // transfer errors\n if (ctx.error?.code === 'TRANSFER_INVALID_INITIAL') {\n return (\n <div className=\"gap-sw-md flex flex-col\">\n <Button state=\"error\" {...commonBtnProps}>\n {t('submit.error.invalidTransferData.label', 'Invalid transfer data')}\n </Button>\n {ctx.error.meta?.message ? (\n <ErrorMessage>{ctx.error.meta.message}</ErrorMessage>\n ) : null}\n </div>\n );\n }\n\n if (ctx.error?.code === 'DIRECT_TRANSFER_ERROR') {\n return (\n <div className=\"gap-sw-md flex flex-col\">\n <Button state=\"error\" {...commonBtnProps}>\n {t('submit.error.transferFailed.label', 'Transfer failed')}\n </Button>\n {ctx.error.meta?.message ? (\n <ErrorMessage>{ctx.error.meta.message}</ErrorMessage>\n ) : null}\n </div>\n );\n }\n};\n\nconst SubmitButtonError = () => {\n const { ctx } = useUnsafeSnapshot();\n\n return useGetErrorButton(ctx);\n};\n\nconst SubmitButtonBase = ({ providers, makeTransfer, onMsg }: Props) => {\n const { ctx } = useUnsafeSnapshot();\n const { t } = useTypedTranslation();\n const {\n isDirectTransfer,\n isDirectNonNearWithdrawal,\n isNearToIntentsSameAssetTransfer,\n isDirectNearDeposit,\n } = useComputedSnapshot();\n\n const { make } = useMakeTransfer({ providers, makeTransfer });\n\n const SubmitErrorButton = useGetErrorButton(ctx);\n\n const nativeNearDeposit =\n ctx.sourceToken?.assetId === NATIVE_NEAR_DUMB_ASSET_ID &&\n ctx.targetToken?.assetId === WNEAR_ASSET_ID;\n\n const getMainLabel = () => {\n if (\n isDirectTransfer ||\n isDirectNonNearWithdrawal ||\n isNearToIntentsSameAssetTransfer ||\n isDirectNearDeposit ||\n nativeNearDeposit\n ) {\n return t('submit.active.transfer', 'Transfer');\n }\n\n return ctx.sourceToken?.isIntent && ctx.targetToken?.isIntent\n ? t('submit.active.internal', 'Swap')\n : t('submit.active.external', 'Swap & send');\n };\n\n const onClick = async () => {\n const transferResult = await make();\n\n if (transferResult) {\n onMsg({\n type: 'on_successful_transfer',\n transfer: transferResult,\n });\n }\n };\n\n if (!isNotEmptyAmount(ctx.sourceTokenAmount)) {\n return (\n <Button {...commonBtnProps} state=\"disabled\">\n Enter amount\n </Button>\n );\n }\n\n if (SubmitErrorButton) {\n return SubmitErrorButton;\n }\n\n if (ctx.transferStatus.status === 'pending') {\n switch (ctx.transferStatus.reason) {\n case 'WAITING_CONFIRMATION':\n return (\n <Button state=\"loading\" {...commonBtnProps}>\n {t('submit.pending.transfer.confirmInWallet', 'Confirm in wallet')}\n </Button>\n );\n case 'PROCESSING':\n default:\n return (\n <Button state=\"loading\" {...commonBtnProps}>\n {t('submit.pending.transfer.finalizing', 'Finalizing transfer')}\n </Button>\n );\n }\n }\n\n if (ctx.transferStatus.status === 'error') {\n return (\n <div className=\"gap-sw-md flex flex-col\">\n <Button {...commonBtnProps}>{getMainLabel()}</Button>\n <ErrorMessage>\n {(() => {\n switch (ctx.error?.code) {\n case 'FEES_NOT_ESTIMATED':\n return t(\n 'submit.error.transfer.noFees',\n 'Transfer fees could not be estimated.',\n );\n default:\n return t(\n 'submit.error.transfer.failed',\n 'Transfer can not be completed.',\n );\n }\n })()}\n </ErrorMessage>\n </div>\n );\n }\n\n if (ctx.quoteStatus === 'pending') {\n return (\n <Button state=\"loading\" {...commonBtnProps}>\n {t('submit.pending.quote.finalizing', 'Finalizing quote')}\n </Button>\n );\n }\n\n if (ctx.error) {\n return (\n <Button state=\"disabled\" {...commonBtnProps}>\n {getMainLabel()}\n </Button>\n );\n }\n\n if (\n !ctx.quote &&\n !isDirectTransfer &&\n !isDirectNonNearWithdrawal &&\n !isNearToIntentsSameAssetTransfer &&\n !isDirectNearDeposit &&\n !nativeNearDeposit\n ) {\n return (\n <Button state=\"disabled\" {...commonBtnProps}>\n {getMainLabel()}\n </Button>\n );\n }\n\n return (\n <Button {...commonBtnProps} onClick={onClick}>\n {getMainLabel()}\n </Button>\n );\n};\n\nexport const SubmitButton = Object.assign(SubmitButtonBase, {\n Error: SubmitButtonError,\n});\n"],"names":["commonBtnProps","useGetErrorButton","ctx","t","useTypedTranslation","jsx","Button","jsxs","ErrorMessage","Trans","TinyNumber","SubmitButtonError","useUnsafeSnapshot","SubmitButtonBase","providers","makeTransfer","onMsg","isDirectTransfer","isDirectNonNearWithdrawal","isNearToIntentsSameAssetTransfer","isDirectNearDeposit","useComputedSnapshot","make","useMakeTransfer","SubmitErrorButton","nativeNearDeposit","NATIVE_NEAR_DUMB_ASSET_ID","WNEAR_ASSET_ID","getMainLabel","onClick","transferResult","isNotEmptyAmount","SubmitButton"],"mappings":"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"}
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../src/features/SubmitButton/index.tsx"],"sourcesContent":["import { Trans } from 'react-i18next';\nimport { Button } from '@/components/Button';\nimport { TinyNumber } from '@/components/TinyNumber';\nimport { ErrorMessage } from '@/components/ErrorMessage';\nimport { useComputedSnapshot, useUnsafeSnapshot } from '@/machine/snap';\nimport type { TransferResult } from '@/types/transfer';\nimport type { Context } from '@/machine/context';\n\nimport { useTypedTranslation } from '@/localisation';\nimport { useMakeTransfer } from '@/hooks/useMakeTransfer';\nimport { isNotEmptyAmount } from '@/utils/checkers/isNotEmptyAmount';\nimport { NATIVE_NEAR_DUMB_ASSET_ID, WNEAR_ASSET_ID } from '@/constants/tokens';\nimport type { QuoteTransferArgs } from '@/hooks/useMakeQuoteTransfer';\nimport type { IntentsTransferArgs } from '@/hooks/useMakeIntentsTransfer';\n\ntype Msg = { type: 'on_successful_transfer'; transfer: TransferResult };\n\ntype Props = QuoteTransferArgs &\n IntentsTransferArgs & {\n onMsg: (msg: Msg) => void;\n externalSwapLabel: string;\n internalSwapLabel: string;\n transferLabel: string;\n };\n\nconst commonBtnProps = {\n size: 'lg' as const,\n variant: 'primary' as const,\n};\n\nconst useGetErrorButton = (ctx: Context) => {\n const { t } = useTypedTranslation();\n\n if (ctx.error?.code === 'SOURCE_BALANCE_INSUFFICIENT') {\n return (\n <Button state=\"error\" {...commonBtnProps}>\n {t('submit.error.insufficientBalance', 'Insufficient balance')}\n </Button>\n );\n }\n\n if (ctx.error?.code === 'TOKEN_IS_NOT_SUPPORTED') {\n return (\n <Button state=\"error\" {...commonBtnProps}>\n {t('submit.error.invalidAddress', 'Invalid address')}\n </Button>\n );\n }\n\n if (ctx.error?.code === 'QUOTE_AMOUNT_IS_TOO_LOW') {\n return (\n <div className=\"gap-sw-md flex flex-col\">\n <Button state=\"error\" {...commonBtnProps}>\n {t('submit.error.amountTooLow.label', 'Amount is too low')}\n </Button>\n <ErrorMessage>\n <Trans i18nKey=\"submit.error.amountTooLow.message\">\n Amount you entered is very low. Please try increasing it{' '}\n <span className=\"text-nowrap\">\n above <TinyNumber value={ctx.error.meta.minAmount ?? '0'} />{' '}\n {ctx.sourceToken?.symbol ?? ''}.\n </span>\n </Trans>\n </ErrorMessage>\n </div>\n );\n }\n\n // other quote errors\n if (ctx.quoteStatus === 'error') {\n return (\n <div className=\"gap-sw-md flex flex-col\">\n <Button state=\"error\" {...commonBtnProps}>\n {t('submit.error.quoteFailed.label', 'Quote failed')}\n </Button>\n <ErrorMessage>\n {t(\n 'submit.error.quoteFailed.message',\n 'We couldn’t finalize your quote. Please try again or adjust your values.',\n )}\n </ErrorMessage>\n </div>\n );\n }\n\n // transfer errors\n if (ctx.error?.code === 'TRANSFER_INVALID_INITIAL') {\n return (\n <div className=\"gap-sw-md flex flex-col\">\n <Button state=\"error\" {...commonBtnProps}>\n {t('submit.error.invalidTransferData.label', 'Invalid transfer data')}\n </Button>\n {ctx.error.meta?.message ? (\n <ErrorMessage>{ctx.error.meta.message}</ErrorMessage>\n ) : null}\n </div>\n );\n }\n\n if (ctx.error?.code === 'DIRECT_TRANSFER_ERROR') {\n return (\n <div className=\"gap-sw-md flex flex-col\">\n <Button state=\"error\" {...commonBtnProps}>\n {t('submit.error.transferFailed.label', 'Transfer failed')}\n </Button>\n {ctx.error.meta?.message ? (\n <ErrorMessage>{ctx.error.meta.message}</ErrorMessage>\n ) : null}\n </div>\n );\n }\n};\n\nconst SubmitButtonError = () => {\n const { ctx } = useUnsafeSnapshot();\n\n return useGetErrorButton(ctx);\n};\n\nconst SubmitButtonBase = ({\n providers,\n makeTransfer,\n onMsg,\n internalSwapLabel,\n externalSwapLabel,\n transferLabel,\n}: Props) => {\n const { ctx } = useUnsafeSnapshot();\n const { t } = useTypedTranslation();\n const {\n isDirectTransfer,\n isDirectNonNearWithdrawal,\n isNearToIntentsSameAssetTransfer,\n isDirectNearDeposit,\n } = useComputedSnapshot();\n\n const { make } = useMakeTransfer({ providers, makeTransfer });\n\n const SubmitErrorButton = useGetErrorButton(ctx);\n\n const nativeNearDeposit =\n ctx.sourceToken?.assetId === NATIVE_NEAR_DUMB_ASSET_ID &&\n ctx.targetToken?.assetId === WNEAR_ASSET_ID;\n\n const getMainLabel = () => {\n if (\n isDirectTransfer ||\n isDirectNonNearWithdrawal ||\n isNearToIntentsSameAssetTransfer ||\n isDirectNearDeposit ||\n nativeNearDeposit\n ) {\n return transferLabel;\n }\n\n return ctx.sourceToken?.isIntent && ctx.targetToken?.isIntent\n ? internalSwapLabel\n : externalSwapLabel;\n };\n\n const onClick = async () => {\n const transferResult = await make();\n\n if (transferResult) {\n onMsg({\n type: 'on_successful_transfer',\n transfer: transferResult,\n });\n }\n };\n\n if (!isNotEmptyAmount(ctx.sourceTokenAmount)) {\n return (\n <Button {...commonBtnProps} state=\"disabled\">\n Enter amount\n </Button>\n );\n }\n\n if (SubmitErrorButton) {\n return SubmitErrorButton;\n }\n\n if (ctx.transferStatus.status === 'pending') {\n switch (ctx.transferStatus.reason) {\n case 'WAITING_CONFIRMATION':\n return (\n <Button state=\"loading\" {...commonBtnProps}>\n {t('submit.pending.transfer.confirmInWallet', 'Confirm in wallet')}\n </Button>\n );\n case 'PROCESSING':\n default:\n return (\n <Button state=\"loading\" {...commonBtnProps}>\n {t('submit.pending.transfer.finalizing', 'Finalizing transfer')}\n </Button>\n );\n }\n }\n\n if (ctx.transferStatus.status === 'error') {\n return (\n <div className=\"gap-sw-md flex flex-col\">\n <Button {...commonBtnProps}>{getMainLabel()}</Button>\n <ErrorMessage>\n {(() => {\n switch (ctx.error?.code) {\n case 'FEES_NOT_ESTIMATED':\n return t(\n 'submit.error.transfer.noFees',\n 'Transfer fees could not be estimated.',\n );\n default:\n return t(\n 'submit.error.transfer.failed',\n 'Transfer can not be completed.',\n );\n }\n })()}\n </ErrorMessage>\n </div>\n );\n }\n\n if (ctx.quoteStatus === 'pending') {\n return (\n <Button state=\"loading\" {...commonBtnProps}>\n {t('submit.pending.quote.finalizing', 'Finalizing quote')}\n </Button>\n );\n }\n\n if (ctx.error) {\n return (\n <Button state=\"disabled\" {...commonBtnProps}>\n {getMainLabel()}\n </Button>\n );\n }\n\n if (\n !ctx.quote &&\n !isDirectTransfer &&\n !isDirectNonNearWithdrawal &&\n !isNearToIntentsSameAssetTransfer &&\n !isDirectNearDeposit &&\n !nativeNearDeposit\n ) {\n return (\n <Button state=\"disabled\" {...commonBtnProps}>\n {getMainLabel()}\n </Button>\n );\n }\n\n return (\n <Button {...commonBtnProps} onClick={onClick}>\n {getMainLabel()}\n </Button>\n );\n};\n\nexport const SubmitButton = Object.assign(SubmitButtonBase, {\n Error: SubmitButtonError,\n});\n"],"names":["commonBtnProps","useGetErrorButton","ctx","t","useTypedTranslation","jsx","Button","jsxs","ErrorMessage","Trans","TinyNumber","SubmitButtonError","useUnsafeSnapshot","SubmitButtonBase","providers","makeTransfer","onMsg","internalSwapLabel","externalSwapLabel","transferLabel","isDirectTransfer","isDirectNonNearWithdrawal","isNearToIntentsSameAssetTransfer","isDirectNearDeposit","useComputedSnapshot","make","useMakeTransfer","SubmitErrorButton","nativeNearDeposit","NATIVE_NEAR_DUMB_ASSET_ID","WNEAR_ASSET_ID","getMainLabel","onClick","transferResult","isNotEmptyAmount","SubmitButton"],"mappings":"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"}
|
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-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-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 .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 .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 .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 .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-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-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 .inline-flex{display:inline-flex}.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 .antialiased{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.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 .grayscale{--tw-grayscale:grayscale(100%);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 .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,2 +1,2 @@
|
|
|
1
|
-
export type LocalisationKeys = 'chain.all.label' | 'wallet.recipient.placeholder' | 'wallet.recipient.info.selectToken' | 'wallet.recipient.error.noAddress' | 'wallet.recipient.error.tokenNotSelected' | 'wallet.recipient.error.invalidAddress' | 'wallet.recipient.warn.compatibleNetwork' | 'wallet.recipient.message.networkVerified' | 'wallet.recipient.message.receiveFunds' | 'wallet.connected.error.notSupportedChain' | 'transfer.success.hash.label' | 'transfer.success.intent.label' | 'quote.result.maxSlippage.label' | 'quote.result.processingTime.label' | 'tokens.input.max.label' | 'tokens.input.half.label' | 'tokens.input.externalBalance.label' | 'tokens.list.noBalanceOnApp.label' | 'tokens.list.searchEmpty.label' | 'tokens.list.searchReset.label' | 'deposit.external.error.noStatus' | 'deposit.external.error.incomplete' | 'deposit.external.error.failed' | 'deposit.external.loading.waiting' | 'deposit.external.loading.fetching' | 'submit.error.invalidTransferData.label' | 'submit.error.transferFailed.label' | 'submit.error.insufficientBalance' | 'submit.error.invalidAddress' | 'submit.error.amountTooLow.label' | 'submit.error.amountTooLow.message' | 'submit.error.quoteFailed.label' | 'submit.error.quoteFailed.message' | 'submit.error.transfer.noFees' | 'submit.error.transfer.failed' | 'submit.active.transfer' | 'submit.active.internal' | 'submit.active.external' | 'submit.disabled.temporary.label' | 'submit.disabled.temporary.message' | 'submit.pending.quote.finalizing' | 'submit.pending.transfer.confirmInWallet' | 'submit.pending.transfer.finalizing' | 'walletCompatibility.modal.title.initial' | 'walletCompatibility.modal.title.error' | 'walletCompatibility.modal.description.initial' | 'walletCompatibility.modal.description.error' | 'walletCompatibility.modal.feature.secureTransactions' | 'walletCompatibility.modal.feature.fullAccess' | 'walletCompatibility.modal.feature.fundProtection' | 'walletCompatibility.modal.error.interrupted' | 'walletCompatibility.modal.error.incompatible' | 'walletCompatibility.modal.button.checkCompatibility' | 'walletCompatibility.modal.button.tryAgain' | 'walletCompatibility.modal.button.signOut';
|
|
1
|
+
export type LocalisationKeys = 'chain.all.label' | 'wallet.recipient.placeholder' | 'wallet.recipient.info.selectToken' | 'wallet.recipient.error.noAddress' | 'wallet.recipient.error.tokenNotSelected' | 'wallet.recipient.error.invalidAddress' | 'wallet.recipient.warn.compatibleNetwork' | 'wallet.recipient.message.networkVerified' | 'wallet.recipient.message.receiveFunds' | 'wallet.connected.error.notSupportedChain' | 'transfer.success.hash.label' | 'transfer.success.intent.label' | 'quote.result.maxSlippage.label' | 'quote.result.processingTime.label' | 'tokens.input.max.label' | 'tokens.input.half.label' | 'tokens.input.externalBalance.label' | 'tokens.list.noBalanceOnApp.label' | 'tokens.list.searchEmpty.label' | 'tokens.list.searchReset.label' | 'deposit.external.error.noStatus' | 'deposit.external.error.incomplete' | 'deposit.external.error.failed' | 'deposit.external.loading.waiting' | 'deposit.external.loading.fetching' | 'submit.error.invalidTransferData.label' | 'submit.error.transferFailed.label' | 'submit.error.insufficientBalance' | 'submit.error.invalidAddress' | 'submit.error.amountTooLow.label' | 'submit.error.amountTooLow.message' | 'submit.error.quoteFailed.label' | 'submit.error.quoteFailed.message' | 'submit.error.transfer.noFees' | 'submit.error.transfer.failed' | 'submit.active.transfer.swap' | 'submit.active.internal.swap' | 'submit.active.external.swap' | 'submit.active.transfer.withdraw' | 'submit.active.internal.withdraw' | 'submit.active.external.withdraw' | 'submit.active.transfer.deposit' | 'submit.active.internal.deposit' | 'submit.active.external.deposit' | 'submit.disabled.temporary.label' | 'submit.disabled.temporary.message' | 'submit.pending.quote.finalizing' | 'submit.pending.transfer.confirmInWallet' | 'submit.pending.transfer.finalizing' | 'walletCompatibility.modal.title.initial' | 'walletCompatibility.modal.title.error' | 'walletCompatibility.modal.description.initial' | 'walletCompatibility.modal.description.error' | 'walletCompatibility.modal.feature.secureTransactions' | 'walletCompatibility.modal.feature.fullAccess' | 'walletCompatibility.modal.feature.fundProtection' | 'walletCompatibility.modal.error.interrupted' | 'walletCompatibility.modal.error.incompatible' | 'walletCompatibility.modal.button.checkCompatibility' | 'walletCompatibility.modal.button.tryAgain' | 'walletCompatibility.modal.button.signOut';
|
|
2
2
|
export type LocalisationDict = Partial<Record<LocalisationKeys, string>>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { jsx as t, jsxs as
|
|
2
|
-
import { useState as g, useEffect as
|
|
3
|
-
import { g as
|
|
1
|
+
import { jsx as t, jsxs as m } from "react/jsx-runtime";
|
|
2
|
+
import { useState as g, useEffect as f } from "react";
|
|
3
|
+
import { g as E, e as D, i as C, d as M, h as B } from "../config-CsHJaepw.js";
|
|
4
4
|
import "@tanstack/react-query";
|
|
5
5
|
import "../features/BalanceRpcLoader/TokenBalanceLoader.js";
|
|
6
6
|
import "@headlessui/react";
|
|
@@ -9,26 +9,25 @@ import "lucide-react";
|
|
|
9
9
|
import "../utils/cn.js";
|
|
10
10
|
import "../constants/chains.js";
|
|
11
11
|
import { notReachable as r } from "../utils/notReachable.js";
|
|
12
|
-
import "
|
|
13
|
-
import "
|
|
14
|
-
import { Banner as B } from "../components/Banner.js";
|
|
12
|
+
import { useTypedTranslation as W } from "../localisation.js";
|
|
13
|
+
import { Banner as F } from "../components/Banner.js";
|
|
15
14
|
import "ethers";
|
|
16
15
|
import "../machine/machine.js";
|
|
17
|
-
import { fireEvent as
|
|
18
|
-
import { isDebug as
|
|
16
|
+
import { fireEvent as d } from "../machine/events/utils/fireEvent.js";
|
|
17
|
+
import { isDebug as I } from "../utils/checkers/isDebug.js";
|
|
19
18
|
import "viem";
|
|
20
|
-
import { SubmitButton as
|
|
21
|
-
import { SuccessScreen as
|
|
22
|
-
import { SwapQuote as
|
|
23
|
-
import { TokenInput as
|
|
19
|
+
import { SubmitButton as k } from "../features/SubmitButton/index.js";
|
|
20
|
+
import { SuccessScreen as N } from "../features/SuccessScreen/index.js";
|
|
21
|
+
import { SwapQuote as R } from "../features/SwapQuote/index.js";
|
|
22
|
+
import { TokenInput as A } from "../features/TokenInput/index.js";
|
|
24
23
|
import "../features/TokensList/index.js";
|
|
25
|
-
import { TokensModal as
|
|
26
|
-
import { ExternalDeposit as
|
|
27
|
-
import { DepositMethodSwitcher as
|
|
24
|
+
import { TokensModal as L } from "../features/TokensModal.js";
|
|
25
|
+
import { ExternalDeposit as j } from "../features/ExternalDeposit.js";
|
|
26
|
+
import { DepositMethodSwitcher as q } from "../features/DepositMethodSwitcher.js";
|
|
28
27
|
import "../index-CqENtPJM.js";
|
|
29
28
|
import "@defuse-protocol/internal-utils";
|
|
30
29
|
import "../utils/near/rpc.js";
|
|
31
|
-
import { BlockingError as
|
|
30
|
+
import { BlockingError as Q } from "../components/BlockingError.js";
|
|
32
31
|
import "copy-text-to-clipboard";
|
|
33
32
|
import "clsx";
|
|
34
33
|
import "../components/InputAmount.js";
|
|
@@ -40,19 +39,19 @@ import "bs58";
|
|
|
40
39
|
import "@defuse-protocol/one-click-sdk-typescript";
|
|
41
40
|
import "axios";
|
|
42
41
|
import "../network.js";
|
|
43
|
-
import { useTokenInputPair as
|
|
44
|
-
import { WidgetSkeleton as
|
|
45
|
-
import { useTokenModal as
|
|
46
|
-
const
|
|
47
|
-
providers:
|
|
48
|
-
onMsg:
|
|
42
|
+
import { useTokenInputPair as U } from "../hooks/useTokenInputPair.js";
|
|
43
|
+
import { WidgetSkeleton as h } from "./WidgetSkeleton.js";
|
|
44
|
+
import { useTokenModal as K } from "../hooks/useTokenModal.js";
|
|
45
|
+
const Ie = ({
|
|
46
|
+
providers: w,
|
|
47
|
+
onMsg: a,
|
|
49
48
|
makeTransfer: _
|
|
50
49
|
}) => {
|
|
51
|
-
const { ctx: o } =
|
|
52
|
-
if (
|
|
53
|
-
|
|
54
|
-
}), []),
|
|
55
|
-
debug:
|
|
50
|
+
const { ctx: o } = E(), { isDirectTransfer: b } = D(), { chainsFilter: p, walletAddress: x } = C(), { t: n } = W(), { onChangeAmount: S, onChangeToken: y } = U(), { status: T, refetch: v } = M(), { tokenModalOpen: s, updateTokenModalState: i } = K({ onMsg: a }), [u, c] = g();
|
|
51
|
+
if (f(() => (d("reset", null), () => {
|
|
52
|
+
d("depositTypeSet", { isExternal: !1 });
|
|
53
|
+
}), []), B({
|
|
54
|
+
debug: I(),
|
|
56
55
|
listenTo: [
|
|
57
56
|
"checkWalletConnection",
|
|
58
57
|
"setSourceTokenBalance",
|
|
@@ -61,18 +60,18 @@ const Fe = ({
|
|
|
61
60
|
["makeQuote", { message: void 0 }],
|
|
62
61
|
["setBalancesUsingAlchemyExt", { alchemyApiKey: void 0 }]
|
|
63
62
|
]
|
|
64
|
-
}),
|
|
65
|
-
|
|
63
|
+
}), f(() => {
|
|
64
|
+
a?.({
|
|
66
65
|
type: "on_change_deposit_type",
|
|
67
66
|
isExternal: o.isDepositFromExternalWallet
|
|
68
67
|
});
|
|
69
68
|
}, [o.isDepositFromExternalWallet]), !o.sourceToken)
|
|
70
|
-
return /* @__PURE__ */ t(
|
|
71
|
-
if (o.state === "transfer_success" &&
|
|
69
|
+
return /* @__PURE__ */ t(h.Deposit, {});
|
|
70
|
+
if (o.state === "transfer_success" && u)
|
|
72
71
|
return /* @__PURE__ */ t(
|
|
73
|
-
|
|
72
|
+
N,
|
|
74
73
|
{
|
|
75
|
-
...
|
|
74
|
+
...u,
|
|
76
75
|
message: [
|
|
77
76
|
"Your deposit has been successfully completed,",
|
|
78
77
|
"and the funds are now available in your account."
|
|
@@ -80,7 +79,7 @@ const Fe = ({
|
|
|
80
79
|
onMsg: (e) => {
|
|
81
80
|
switch (e.type) {
|
|
82
81
|
case "on_dismiss_success":
|
|
83
|
-
|
|
82
|
+
c(void 0);
|
|
84
83
|
break;
|
|
85
84
|
default:
|
|
86
85
|
r(e.type);
|
|
@@ -91,49 +90,49 @@ const Fe = ({
|
|
|
91
90
|
switch (T) {
|
|
92
91
|
case "error":
|
|
93
92
|
return /* @__PURE__ */ t(
|
|
94
|
-
|
|
93
|
+
Q,
|
|
95
94
|
{
|
|
96
95
|
message: "Couldn't load tokens list.",
|
|
97
|
-
onClickRetry:
|
|
96
|
+
onClickRetry: v
|
|
98
97
|
}
|
|
99
98
|
);
|
|
100
99
|
case "success":
|
|
101
100
|
return s !== "none" ? /* @__PURE__ */ t(
|
|
102
|
-
|
|
101
|
+
L,
|
|
103
102
|
{
|
|
104
103
|
showBalances: !0,
|
|
105
104
|
showChainsSelector: !0,
|
|
106
105
|
groupTokens: s === "source",
|
|
107
|
-
chainsFilter: s === "source" ?
|
|
106
|
+
chainsFilter: s === "source" ? p.source : p.target,
|
|
108
107
|
onMsg: (e) => {
|
|
109
108
|
switch (e.type) {
|
|
110
109
|
case "on_select_token":
|
|
111
|
-
|
|
110
|
+
y(s, e.token), i("none"), a?.({
|
|
112
111
|
type: e.type,
|
|
113
112
|
token: e.token,
|
|
114
113
|
variant: s
|
|
115
114
|
});
|
|
116
115
|
break;
|
|
117
116
|
case "on_dismiss_tokens_modal":
|
|
118
|
-
|
|
117
|
+
i("none");
|
|
119
118
|
break;
|
|
120
119
|
default:
|
|
121
120
|
r(e);
|
|
122
121
|
}
|
|
123
122
|
}
|
|
124
123
|
}
|
|
125
|
-
) : /* @__PURE__ */ t("div", { className: "gap-sw-2xl flex flex-col", children: /* @__PURE__ */
|
|
124
|
+
) : /* @__PURE__ */ t("div", { className: "gap-sw-2xl flex flex-col", children: /* @__PURE__ */ m("div", { className: "gap-sw-lg relative flex flex-col", children: [
|
|
126
125
|
/* @__PURE__ */ t(
|
|
127
|
-
|
|
126
|
+
A.Source,
|
|
128
127
|
{
|
|
129
128
|
showBalance: !o.isDepositFromExternalWallet,
|
|
130
129
|
onMsg: (e) => {
|
|
131
130
|
switch (e.type) {
|
|
132
131
|
case "on_change_amount":
|
|
133
|
-
|
|
132
|
+
S("source", e.amount);
|
|
134
133
|
break;
|
|
135
134
|
case "on_click_select_token":
|
|
136
|
-
|
|
135
|
+
i("source");
|
|
137
136
|
break;
|
|
138
137
|
default:
|
|
139
138
|
r(e);
|
|
@@ -141,25 +140,25 @@ const Fe = ({
|
|
|
141
140
|
}
|
|
142
141
|
}
|
|
143
142
|
),
|
|
144
|
-
/* @__PURE__ */ t(
|
|
143
|
+
/* @__PURE__ */ t(q, { className: "mt-sw-md", children: ({ isExternal: e }) => e ? /* @__PURE__ */ m("div", { className: "gap-sw-2xl pb-sw-2xl flex flex-col", children: [
|
|
145
144
|
/* @__PURE__ */ t(
|
|
146
|
-
|
|
145
|
+
j,
|
|
147
146
|
{
|
|
148
|
-
onMsg: (
|
|
149
|
-
switch (
|
|
147
|
+
onMsg: (l) => {
|
|
148
|
+
switch (l.type) {
|
|
150
149
|
case "on_successful_transfer":
|
|
151
|
-
|
|
150
|
+
c(l.transferResult);
|
|
152
151
|
break;
|
|
153
152
|
case "on_transaction_received":
|
|
154
153
|
break;
|
|
155
154
|
default:
|
|
156
|
-
r(
|
|
155
|
+
r(l);
|
|
157
156
|
}
|
|
158
157
|
}
|
|
159
158
|
}
|
|
160
159
|
),
|
|
161
160
|
(o.state === "quote_success_internal" || o.state === "quote_success_external") && /* @__PURE__ */ t(
|
|
162
|
-
|
|
161
|
+
F,
|
|
163
162
|
{
|
|
164
163
|
multiline: !0,
|
|
165
164
|
variant: "warn",
|
|
@@ -167,30 +166,36 @@ const Fe = ({
|
|
|
167
166
|
}
|
|
168
167
|
)
|
|
169
168
|
] }) : null }),
|
|
170
|
-
!
|
|
169
|
+
!b && /* @__PURE__ */ t(R, { className: "mt-sw-md" }),
|
|
171
170
|
x ? /* @__PURE__ */ t(
|
|
172
|
-
|
|
171
|
+
k,
|
|
173
172
|
{
|
|
174
|
-
providers:
|
|
173
|
+
providers: w,
|
|
175
174
|
makeTransfer: _,
|
|
175
|
+
transferLabel: n("submit.active.transfer.withdraw", "Transfer"),
|
|
176
|
+
internalSwapLabel: n("submit.active.internal.withdraw", "Swap"),
|
|
177
|
+
externalSwapLabel: n(
|
|
178
|
+
"submit.active.external.deposit",
|
|
179
|
+
"Swap & send"
|
|
180
|
+
),
|
|
176
181
|
onMsg: (e) => {
|
|
177
182
|
switch (e.type) {
|
|
178
183
|
case "on_successful_transfer":
|
|
179
|
-
|
|
184
|
+
c(e.transfer), a?.({ type: "on_transfer_success" });
|
|
180
185
|
break;
|
|
181
186
|
default:
|
|
182
187
|
r(e.type);
|
|
183
188
|
}
|
|
184
189
|
}
|
|
185
190
|
}
|
|
186
|
-
) : /* @__PURE__ */ t(
|
|
191
|
+
) : /* @__PURE__ */ t(k.Error, {})
|
|
187
192
|
] }) });
|
|
188
193
|
case "pending":
|
|
189
194
|
default:
|
|
190
|
-
return /* @__PURE__ */ t(
|
|
195
|
+
return /* @__PURE__ */ t(h.Deposit, {});
|
|
191
196
|
}
|
|
192
197
|
};
|
|
193
198
|
export {
|
|
194
|
-
|
|
199
|
+
Ie as WidgetDeposit
|
|
195
200
|
};
|
|
196
201
|
//# sourceMappingURL=WidgetDeposit.js.map
|