@moon-x/react-sdk 0.9.1 → 0.10.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 +18 -16
- package/dist/{chunk-7XFCJAFG.mjs → chunk-ACYQG7VT.mjs} +4 -4
- package/dist/{chunk-VBAVYDWQ.js → chunk-IPTLHXJ4.js} +4 -4
- package/dist/{chunk-OAG4S5VJ.mjs → chunk-MURLJWUN.mjs} +3 -3
- package/dist/{chunk-F345C4FX.js → chunk-RRFMI4ZL.js} +3 -3
- package/dist/index.css +43 -43
- package/dist/index.d.mts +13 -13
- package/dist/index.d.ts +13 -13
- package/dist/index.js +730 -687
- package/dist/index.mjs +728 -684
- package/dist/style.css +43 -43
- package/dist/wallets/ethereum.js +15 -15
- package/dist/wallets/ethereum.mjs +1 -1
- package/dist/wallets/solana.js +11 -11
- package/dist/wallets/solana.mjs +1 -1
- package/package.json +2 -2
package/dist/index.mjs
CHANGED
|
@@ -389,8 +389,8 @@ function _ts_generator(thisArg, body) {
|
|
|
389
389
|
};
|
|
390
390
|
}
|
|
391
391
|
}
|
|
392
|
-
import { ethereum_exports } from "./chunk-
|
|
393
|
-
import { solana_exports } from "./chunk-
|
|
392
|
+
import { ethereum_exports } from "./chunk-ACYQG7VT.mjs";
|
|
393
|
+
import { solana_exports } from "./chunk-MURLJWUN.mjs";
|
|
394
394
|
import { AuthContext, useAuthSDK } from "./chunk-PCEN5CH6.mjs";
|
|
395
395
|
// src/index.ts
|
|
396
396
|
import { useAddPasskey, useEphemeralSigner, useLoginWithEmail, usePasskeyStatus, useRegisterPasskey, useRemovePasskey, useUser } from "@moon-x/core/react";
|
|
@@ -822,7 +822,7 @@ function useLoginWithOAuth() {
|
|
|
822
822
|
};
|
|
823
823
|
}
|
|
824
824
|
// src/hooks/use-moonkey.ts
|
|
825
|
-
var
|
|
825
|
+
var useMoonX = function useMoonX() {
|
|
826
826
|
var coreSDK = useAuthSDK();
|
|
827
827
|
return {
|
|
828
828
|
ready: coreSDK.ready,
|
|
@@ -1883,7 +1883,7 @@ var getSDKMethods = function getSDKMethods(publishableKey, isMounted, getIsReady
|
|
|
1883
1883
|
publishableKey: publishableKey,
|
|
1884
1884
|
// window is defined in the browser context where this hook runs.
|
|
1885
1885
|
// SSR rendering never reaches the factory because the SDK is gated
|
|
1886
|
-
// on the
|
|
1886
|
+
// on the MoonXProvider's `useEffect`-mounted lifecycle.
|
|
1887
1887
|
relyingPartyOrigin: typeof window !== "undefined" ? window.location.origin : "",
|
|
1888
1888
|
setIsAuthenticated: setIsAuthenticated,
|
|
1889
1889
|
setUser: setUser
|
|
@@ -2789,7 +2789,7 @@ import { useEffect as useEffect5, useState as useState5 } from "react";
|
|
|
2789
2789
|
import { PostMessageClient, PostMessageMethod as PostMessageMethod9, PostMessageType as PostMessageType10, getIframeOrigin, getIframeUrl } from "@moon-x/core";
|
|
2790
2790
|
import { createIframeTransport as createIframeTransport6 } from "@moon-x/core/web";
|
|
2791
2791
|
var getIframeClient = function getIframeClient(publishableKey) {
|
|
2792
|
-
var iframeId = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "
|
|
2792
|
+
var iframeId = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "moonx-auth-iframe";
|
|
2793
2793
|
var iframe = document.getElementById(iframeId);
|
|
2794
2794
|
if (!(iframe === null || iframe === void 0 ? void 0 : iframe.contentWindow)) {
|
|
2795
2795
|
return void 0;
|
|
@@ -2799,7 +2799,7 @@ var getIframeClient = function getIframeClient(publishableKey) {
|
|
|
2799
2799
|
return new PostMessageClient(iframe.contentWindow, iframeOrigin);
|
|
2800
2800
|
};
|
|
2801
2801
|
var getIframeTransport = function getIframeTransport() {
|
|
2802
|
-
var iframeId = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "
|
|
2802
|
+
var iframeId = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "moonx-auth-iframe";
|
|
2803
2803
|
return createIframeTransport6({
|
|
2804
2804
|
getContentWindow: function getContentWindow() {
|
|
2805
2805
|
var _ref;
|
|
@@ -3004,38 +3004,38 @@ var darkTheme = {
|
|
|
3004
3004
|
function themeToCSS(theme) {
|
|
3005
3005
|
return {
|
|
3006
3006
|
// Accent colors
|
|
3007
|
-
"--
|
|
3008
|
-
"--
|
|
3009
|
-
"--
|
|
3010
|
-
"--
|
|
3011
|
-
"--
|
|
3012
|
-
"--
|
|
3007
|
+
"--moonx-color-accent": theme.colors.accent,
|
|
3008
|
+
"--moonx-color-accent-foreground": theme.colors.accentForeground,
|
|
3009
|
+
"--moonx-color-accent-dark": theme.colors.accentDark,
|
|
3010
|
+
"--moonx-color-accent-darkest": theme.colors.accentDarkest,
|
|
3011
|
+
"--moonx-color-accent-light": theme.colors.accentLight,
|
|
3012
|
+
"--moonx-color-accent-lightest": theme.colors.accentLightest,
|
|
3013
3013
|
// Background colors
|
|
3014
|
-
"--
|
|
3015
|
-
"--
|
|
3016
|
-
"--
|
|
3014
|
+
"--moonx-color-background": theme.colors.background,
|
|
3015
|
+
"--moonx-color-background-2": theme.colors.background2,
|
|
3016
|
+
"--moonx-color-background-3": theme.colors.background3,
|
|
3017
3017
|
// Foreground colors
|
|
3018
|
-
"--
|
|
3019
|
-
"--
|
|
3020
|
-
"--
|
|
3021
|
-
"--
|
|
3022
|
-
"--
|
|
3018
|
+
"--moonx-color-foreground": theme.colors.foreground,
|
|
3019
|
+
"--moonx-color-foreground-2": theme.colors.foreground2,
|
|
3020
|
+
"--moonx-color-foreground-3": theme.colors.foreground3,
|
|
3021
|
+
"--moonx-color-foreground-4": theme.colors.foreground4,
|
|
3022
|
+
"--moonx-color-foreground-accent": theme.colors.foregroundAccent,
|
|
3023
3023
|
// Success colors
|
|
3024
|
-
"--
|
|
3025
|
-
"--
|
|
3024
|
+
"--moonx-color-success": theme.colors.success,
|
|
3025
|
+
"--moonx-color-success-foreground": theme.colors.successForeground,
|
|
3026
3026
|
// Error colors
|
|
3027
|
-
"--
|
|
3028
|
-
"--
|
|
3029
|
-
"--
|
|
3027
|
+
"--moonx-color-error": theme.colors.error,
|
|
3028
|
+
"--moonx-color-error-foreground": theme.colors.errorForeground,
|
|
3029
|
+
"--moonx-color-error-light": theme.colors.errorLight,
|
|
3030
3030
|
// Border
|
|
3031
|
-
"--
|
|
3031
|
+
"--moonx-color-border": theme.colors.border,
|
|
3032
3032
|
// Border radius
|
|
3033
|
-
"--
|
|
3034
|
-
"--
|
|
3035
|
-
"--
|
|
3036
|
-
"--
|
|
3033
|
+
"--moonx-border-radius-sm": theme.borderRadius.sm,
|
|
3034
|
+
"--moonx-border-radius-md": theme.borderRadius.md,
|
|
3035
|
+
"--moonx-border-radius-lg": theme.borderRadius.lg,
|
|
3036
|
+
"--moonx-border-radius-full": theme.borderRadius.full,
|
|
3037
3037
|
// Font family
|
|
3038
|
-
"--
|
|
3038
|
+
"--moonx-font-family": theme.fontFamily
|
|
3039
3039
|
};
|
|
3040
3040
|
}
|
|
3041
3041
|
function isColorDark(color) {
|
|
@@ -3126,12 +3126,12 @@ var Button = React2.forwardRef(function(_0, _1) {
|
|
|
3126
3126
|
]), _rest1 = _sliced_to_array(_rest, 1), ref = _rest1[0];
|
|
3127
3127
|
return /* @__PURE__ */ jsxs("button", _object_spread_props(_object_spread({
|
|
3128
3128
|
ref: ref,
|
|
3129
|
-
className: cx("
|
|
3129
|
+
className: cx("moonx-btn", "moonx-btn--".concat(variant), size !== "default" && "moonx-btn--".concat(size), full && "moonx-btn--full", state && "moonx-state--".concat(state), className),
|
|
3130
3130
|
disabled: disabled || state === "loading"
|
|
3131
3131
|
}, props), {
|
|
3132
3132
|
children: [
|
|
3133
3133
|
state === "loading" && /* @__PURE__ */ jsx2("span", {
|
|
3134
|
-
className: "
|
|
3134
|
+
className: "moonx-spinner moonx-spinner--md"
|
|
3135
3135
|
}),
|
|
3136
3136
|
children
|
|
3137
3137
|
]
|
|
@@ -3151,7 +3151,7 @@ var Input = React3.forwardRef(function(_0, _1) {
|
|
|
3151
3151
|
]), _rest1 = _sliced_to_array(_rest, 1), ref = _rest1[0];
|
|
3152
3152
|
return /* @__PURE__ */ jsx3("input", _object_spread({
|
|
3153
3153
|
ref: ref,
|
|
3154
|
-
className: cx("
|
|
3154
|
+
className: cx("moonx-input", error && "moonx-input--error", className)
|
|
3155
3155
|
}, props));
|
|
3156
3156
|
});
|
|
3157
3157
|
Input.displayName = "Input";
|
|
@@ -3168,7 +3168,7 @@ var Label = React4.forwardRef(function(_0, _1) {
|
|
|
3168
3168
|
]), _rest1 = _sliced_to_array(_rest, 1), ref = _rest1[0];
|
|
3169
3169
|
return /* @__PURE__ */ jsx4("label", _object_spread({
|
|
3170
3170
|
ref: ref,
|
|
3171
|
-
className: cx("
|
|
3171
|
+
className: cx("moonx-label", tone !== "default" && "moonx-label--".concat(tone), className)
|
|
3172
3172
|
}, props));
|
|
3173
3173
|
});
|
|
3174
3174
|
Label.displayName = "Label";
|
|
@@ -3527,7 +3527,7 @@ function appearanceToCssVars(appearance, isDark) {
|
|
|
3527
3527
|
return _object_spread({}, themeToCSS(merged), appearanceToMoonxVars(appearance, isDark), appearanceToComponentVars(appearance));
|
|
3528
3528
|
}
|
|
3529
3529
|
// src/styles/sdk-stylesheet.ts
|
|
3530
|
-
var SDK_STYLES = '\n/* === Reset === */\n.moonkey-sdk-root * { box-sizing: border-box; }\n.moonkey-sdk-root *:focus-visible { outline: 2px solid var(--moonx-color-ring, var(--moonkey-color-accent)); outline-offset: 2px; }\n.moonkey-sdk-root input::placeholder { color: var(--moonkey-color-foreground-3); opacity: 1; }\n\n/* === Animations === */\n@keyframes moonkey-spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }\n@keyframes moonkey-pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }\n\n/* === Button === */\n.moonkey-sdk-root .moonkey-btn {\n display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;\n font-weight: var(--moonx-font-weight-medium, 500); font-size: 0.875rem; border: none; cursor: pointer;\n user-select: none; -webkit-user-select: none; white-space: nowrap;\n transition: background-color 0.2s, color 0.2s, border-color 0.2s, opacity 0.2s;\n font-family: inherit; text-decoration: none;\n}\n.moonkey-sdk-root .moonkey-btn:disabled { opacity: 0.5; cursor: not-allowed; pointer-events: none; }\n\n/* Sizes */\n.moonkey-sdk-root .moonkey-btn--sm { height: 2.25rem; padding: 0 0.75rem; border-radius: var(--moonx-radius-button, var(--moonkey-border-radius-md)); }\n.moonkey-sdk-root .moonkey-btn--md, .moonkey-sdk-root .moonkey-btn--default { height: 2.75rem; padding: 0 1rem; border-radius: var(--moonx-radius-button, var(--moonkey-border-radius-md)); }\n.moonkey-sdk-root .moonkey-btn--lg { height: 3rem; padding: 0 2rem; font-size: 1rem; border-radius: var(--moonx-radius-button, var(--moonkey-border-radius-md)); }\n.moonkey-sdk-root .moonkey-btn--icon { width: 2rem; height: 2rem; padding: 0; border-radius: var(--moonx-radius-button, var(--moonkey-border-radius-md)); }\n.moonkey-sdk-root .moonkey-btn--full { width: 100%; justify-content: center; }\n\n/* Variants */\n.moonkey-sdk-root .moonkey-btn--primary, .moonkey-sdk-root .moonkey-btn--default {\n background-color: var(--moonx-button-bg, var(--moonkey-color-accent)); color: var(--moonx-button-fg, var(--moonkey-color-accent-foreground));\n border: var(--moonx-button-border-width, 0px) solid var(--moonx-button-border-color, transparent);\n}\n.moonkey-sdk-root .moonkey-btn--primary:hover:not(:disabled), .moonkey-sdk-root .moonkey-btn--default:hover:not(:disabled) {\n background-color: var(--moonkey-color-accent-dark);\n}\n.moonkey-sdk-root .moonkey-btn--primary.moonkey-state--success { background-color: var(--moonkey-color-success); color: var(--moonkey-color-success-foreground); }\n.moonkey-sdk-root .moonkey-btn--primary.moonkey-state--error { background-color: var(--moonkey-color-error); color: var(--moonkey-color-error-foreground); }\n\n.moonkey-sdk-root .moonkey-btn--outline {\n background-color: transparent; border: 1px solid var(--moonkey-color-border); color: var(--moonkey-color-foreground);\n}\n.moonkey-sdk-root .moonkey-btn--outline:hover:not(:disabled) { background-color: var(--moonkey-color-background-2); border-color: var(--moonkey-color-accent); }\n\n.moonkey-sdk-root .moonkey-btn--ghost { background-color: transparent; color: var(--moonkey-color-foreground); }\n.moonkey-sdk-root .moonkey-btn--ghost:hover:not(:disabled) { background-color: var(--moonkey-color-background-2); }\n\n.moonkey-sdk-root .moonkey-btn--secondary { background-color: var(--moonkey-color-background-2); color: var(--moonkey-color-foreground); }\n.moonkey-sdk-root .moonkey-btn--secondary:hover:not(:disabled) { background-color: var(--moonkey-color-background-3); }\n\n.moonkey-sdk-root .moonkey-btn--destructive { background-color: var(--moonkey-color-error); color: var(--moonkey-color-error-foreground); }\n.moonkey-sdk-root .moonkey-btn--destructive:hover:not(:disabled) { opacity: 0.9; }\n\n.moonkey-sdk-root .moonkey-btn--link { background: transparent; color: var(--moonx-color-link, var(--moonkey-color-accent)); text-decoration: underline; text-underline-offset: 4px; height: auto; padding: 0; }\n\n/* === Input === */\n.moonkey-sdk-root .moonkey-input {\n display: flex; width: 100%; height: 2.75rem; padding: 0 0.75rem;\n font-size: 0.875rem; font-family: inherit; color: var(--moonx-input-fg, var(--moonkey-color-foreground));\n background-color: var(--moonx-input-bg, transparent); border: var(--moonx-input-border-width, 1px) solid var(--moonx-input-border-color, var(--moonkey-color-border));\n border-radius: var(--moonx-radius-input, var(--moonkey-border-radius-md)); outline: none;\n transition: border-color 0.2s, box-shadow 0.2s; box-sizing: border-box;\n}\n.moonkey-sdk-root .moonkey-input:focus { border-color: var(--moonx-color-ring, var(--moonkey-color-accent)); box-shadow: 0 0 0 1px var(--moonx-color-ring, var(--moonkey-color-accent)); }\n.moonkey-sdk-root .moonkey-input:disabled { opacity: 0.5; cursor: not-allowed; }\n.moonkey-sdk-root .moonkey-input--error { border-color: var(--moonkey-color-error); }\n\n/* === Label === */\n.moonkey-sdk-root .moonkey-label { display: block; font-size: 0.875rem; font-weight: var(--moonx-font-weight-medium, 500); color: var(--moonkey-color-foreground); line-height: 1; }\n.moonkey-sdk-root .moonkey-label--secondary { color: var(--moonkey-color-foreground-3); }\n.moonkey-sdk-root .moonkey-label--tertiary { color: var(--moonkey-color-foreground-4); font-size: 0.75rem; }\n.moonkey-sdk-root .moonkey-label--error { color: var(--moonkey-color-error); }\n.moonkey-sdk-root .moonkey-label--success { color: var(--moonkey-color-success); }\n\n/* === Detail Row === */\n.moonkey-sdk-root .moonkey-detail-row { display: flex; justify-content: space-between; align-items: center; padding: 0.25rem 0; }\n.moonkey-sdk-root .moonkey-detail-row__label { font-size: 0.875rem; color: var(--moonkey-color-foreground-3); }\n.moonkey-sdk-root .moonkey-detail-row__value { font-size: 0.875rem; font-weight: 500; color: var(--moonkey-color-foreground); text-align: right; }\n\n/* === Divider === */\n.moonkey-sdk-root .moonkey-divider { border-top: 1px solid var(--moonkey-color-border); margin: 1rem 0; }\n\n/* === Boxes === */\n.moonkey-sdk-root .moonkey-box { padding: 0.75rem; border-radius: var(--moonkey-border-radius-lg); }\n.moonkey-sdk-root .moonkey-box--surface { background-color: var(--moonkey-color-background-2); }\n.moonkey-sdk-root .moonkey-box--error { background-color: var(--moonkey-color-background-2); border: 1px solid var(--moonkey-color-error); }\n.moonkey-sdk-root .moonkey-box--success { background-color: var(--moonkey-color-background-2); border: 1px solid var(--moonkey-color-success); }\n.moonkey-sdk-root .moonkey-box--info { background-color: var(--moonkey-color-background-2); border: 1px solid var(--moonx-color-info, var(--moonkey-color-border)); }\n.moonkey-sdk-root .moonkey-box--warning { background-color: var(--moonkey-color-background-2); border: 1px solid var(--moonx-color-warning, var(--moonkey-color-error)); display: flex; align-items: flex-start; gap: 0.5rem; }\n.moonkey-sdk-root .moonkey-box--scrollable { overflow-y: auto; font-size: 0.875rem; white-space: pre-wrap; word-break: break-word; }\n\n/* === Address Pill === */\n.moonkey-sdk-root .moonkey-address-pill {\n display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.25rem 0.75rem;\n background-color: var(--moonkey-color-background-3); color: var(--moonkey-color-foreground);\n border: 1px solid var(--moonkey-color-border); border-radius: var(--moonkey-border-radius-md);\n font-size: 0.875rem; font-family: monospace; cursor: pointer;\n transition: background-color 0.2s, border-color 0.2s;\n}\n.moonkey-sdk-root .moonkey-address-pill:hover { background-color: var(--moonkey-color-background-2); }\n.moonkey-sdk-root .moonkey-address-pill--copied { border-color: var(--moonkey-color-success); }\n\n/* === Mono Text === */\n.moonkey-sdk-root .moonkey-mono { font-family: monospace; font-size: 0.875rem; color: var(--moonkey-color-foreground); }\n\n/* === Spinner === */\n.moonkey-sdk-root .moonkey-spinner {\n display: inline-block; flex-shrink: 0;\n border: 2px solid currentColor; border-top-color: transparent;\n border-radius: 9999px; animation: moonkey-spin 1s linear infinite;\n}\n.moonkey-sdk-root .moonkey-spinner--sm { width: 0.875rem; height: 0.875rem; }\n.moonkey-sdk-root .moonkey-spinner--md { width: 1rem; height: 1rem; }\n.moonkey-sdk-root .moonkey-spinner--lg { width: 1.5rem; height: 1.5rem; }\n.moonkey-sdk-root .moonkey-spinner--xl { width: 2rem; height: 2rem; }\n\n/* === Pulse skeleton === */\n.moonkey-sdk-root .moonkey-skeleton { background-color: var(--moonkey-color-background-2); border-radius: 0.25rem; animation: moonkey-pulse 2s cubic-bezier(0.4,0,0.6,1) infinite; }\n\n/* === Flow layout === */\n.moonkey-sdk-root .moonkey-flow-close { position: absolute; top: 1rem; right: 1.5rem; display: flex; align-items: center; flex-shrink: 0; z-index: 1; }\n.moonkey-sdk-root .moonkey-flow-header { display: flex; flex-direction: column; text-align: center; padding: 0 0.5rem 0.25rem; gap: 0.5rem; }\n.moonkey-sdk-root .moonkey-flow-content { display: flex; flex-direction: column; flex: 1; margin-top: 1rem; padding: 0 0.5rem; }\n.moonkey-sdk-root .moonkey-flow-footer {\n position: absolute; bottom: 0; left: 0; right: 0;\n background-color: var(--moonkey-color-background); padding: 1rem 2rem 3rem;\n margin: 0 0.125rem 0.125rem;\n border-bottom-left-radius: var(--moonkey-border-radius-lg);\n border-bottom-right-radius: var(--moonkey-border-radius-lg);\n}\n.moonkey-sdk-root .moonkey-flow-footer__actions { display: flex; gap: 0.75rem; }\n/* Buttons inside footer actions auto-stretch to fill space */\n.moonkey-sdk-root .moonkey-flow-footer__actions > .moonkey-btn { flex: 1; height: 3rem; font-size: 1rem; }\n\n/* === Flow text utilities === */\n.moonkey-sdk-root .moonkey-text--heading { font-weight: var(--moonx-font-weight-heading, var(--moonx-font-weight-medium, 500)); font-family: var(--moonx-font-family-heading, inherit); letter-spacing: var(--moonx-letter-spacing-heading, inherit); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--moonx-color-heading, var(--moonkey-color-foreground)); }\n.moonkey-sdk-root .moonkey-text--title { font-size: var(--moonx-font-size-heading, var(--moonx-font-size-lg, 1rem)); font-weight: var(--moonx-font-weight-heading, var(--moonx-font-weight-bold, 600)); font-family: var(--moonx-font-family-heading, inherit); letter-spacing: var(--moonx-letter-spacing-heading, inherit); color: var(--moonx-color-heading, var(--moonkey-color-foreground)); }\n.moonkey-sdk-root .moonkey-text--secondary { font-size: var(--moonx-font-size-sm, 0.875rem); color: var(--moonkey-color-foreground-3); }\n.moonkey-sdk-root .moonkey-text--error { font-size: 0.875rem; color: var(--moonkey-color-error); }\n.moonkey-sdk-root .moonkey-text--success { font-size: 0.875rem; color: var(--moonkey-color-success); }\n.moonkey-sdk-root .moonkey-flow-logo { display: flex; align-items: center; justify-content: center; }\n\n/* === Terms link row (accept-terms) === */\n.moonkey-sdk-root .moonkey-terms-link {\n display: flex; flex-direction: row; align-items: center; justify-content: space-between;\n border-radius: var(--moonkey-border-radius-lg); padding: 0.75rem;\n margin-left: 0.75rem; margin-right: 0.75rem;\n border: 1px solid var(--moonkey-color-border); cursor: pointer;\n transition: background-color 0.2s ease;\n}\n.moonkey-sdk-root .moonkey-terms-link:hover { background-color: var(--moonkey-color-background-2); }\n\n/* === Wallet item === */\n.moonkey-sdk-root .moonkey-wallet-item {\n display: flex; align-items: center; justify-content: space-between; padding: 0.5rem 1rem;\n border: 1px solid var(--moonkey-color-border); border-radius: var(--moonx-radius-button, var(--moonkey-border-radius-lg));\n background-color: var(--moonkey-color-background); cursor: pointer;\n transition: border-color 0.2s, background-color 0.2s;\n}\n.moonkey-sdk-root .moonkey-wallet-item:hover { border-color: var(--moonkey-color-accent); background-color: var(--moonkey-color-background-2); }\n.moonkey-sdk-root .moonkey-wallet-item--selected { border-color: var(--moonkey-color-accent); background-color: var(--moonkey-color-background-2); }\n\n/* === Flow overlay (z-index stack wrapper) === */\n.moonkey-sdk-root .moonkey-flow-overlay { position: relative; z-index: 100; }\n\n/* === Wallet connection state container === */\n.moonkey-sdk-root .moonkey-connect-state { display: flex; flex-direction: column; align-items: center; justify-content: center; padding-top: 3rem; padding-bottom: 3rem; }\n\n/* === Large wallet icon spinner === */\n.moonkey-sdk-root .moonkey-wallet-spinner { position: relative; width: 5rem; height: 5rem; display: flex; align-items: center; justify-content: center; }\n.moonkey-sdk-root .moonkey-wallet-spinner__ring { position: absolute; inset: 0; width: 5rem; height: 5rem; border-radius: 50%; border: 4px solid var(--moonkey-color-border); }\n.moonkey-sdk-root .moonkey-wallet-spinner__ring--error { border-color: var(--moonkey-color-error); }\n.moonkey-sdk-root .moonkey-wallet-spinner__spin { position: absolute; inset: 0; width: 5rem; height: 5rem; border-radius: 50%; border: 4px solid transparent; border-top-color: var(--moonkey-color-accent); animation: moonkey-spin 1s linear infinite; }\n.moonkey-sdk-root .moonkey-wallet-spinner__center { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }\n\n/* === Data preview box (sign typed-data / transactions) === */\n.moonkey-sdk-root .moonkey-data-preview { margin-top: 0.25rem; padding: 0.75rem; background-color: var(--moonkey-color-background-2); border-radius: var(--moonkey-border-radius-md); font-size: 0.875rem; font-family: monospace; word-break: break-all; white-space: pre-line; user-select: none; -webkit-user-select: none; }\n\n/* === Scrollable data container (signing flows) === */\n.moonkey-sdk-root .moonkey-data-scroll { display: flex; flex-direction: column; max-height: 390px; overflow-y: auto; padding-bottom: 5rem; position: relative; }\n\n/* === Expand/collapse trigger === */\n.moonkey-sdk-root .moonkey-expand-toggle { display: inline-flex; align-items: center; cursor: pointer; user-select: none; -webkit-user-select: none; }\n\n/* === Scrollable bordered list (transaction detail panels) === */\n.moonkey-sdk-root .moonkey-scrollable-list { display: flex; flex-direction: column; overflow-y: auto; border: 1px solid var(--moonkey-color-border); border-radius: var(--moonkey-border-radius-md); scrollbar-width: none; }\n.moonkey-sdk-root .moonkey-scrollable-list::-webkit-scrollbar { display: none; }\n\n/* === Modal content column (passkey-enroll, add-passkey) === */\n.moonkey-sdk-root .moonkey-modal-content { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 0 1rem 1.5rem; gap: 1rem; }\n\n/* === Back nav button (absolute top-left) === */\n.moonkey-sdk-root .moonkey-back-btn { position: absolute; top: 1rem; left: 0.5rem; width: 2.5rem; height: 2.5rem; display: flex; align-items: center; justify-content: center; border-radius: var(--moonkey-border-radius-full); }\n\n/* === Centered inline row (resend, action links) === */\n.moonkey-sdk-root .moonkey-center-row { display: flex; justify-content: center; align-items: center; gap: 0.25rem; }\n\n/* === Stacked button column (modal CTAs) === */\n.moonkey-sdk-root .moonkey-btn-stack { display: flex; flex-direction: column; gap: 0.5rem; width: 100%; padding-top: 0.5rem; }\n\n/* === Legal footer text (terms & privacy) === */\n.moonkey-sdk-root .moonkey-legal-text { font-size: 0.75rem; color: var(--moonkey-color-foreground-3); text-align: center; line-height: 1.5; margin-top: 1rem; }\n.moonkey-sdk-root .moonkey-legal-text a { color: var(--moonx-color-link, var(--moonkey-color-accent)); cursor: pointer; }\n/* Inline-checkbox variant: same typography, but flex layout aligned left so the checkbox sits beside the link text. */\n.moonkey-sdk-root .moonkey-legal-checkbox { display: flex; align-items: flex-start; justify-content: flex-start; text-align: left; gap: 0.5rem; }\n.moonkey-sdk-root .moonkey-legal-checkbox input[type="checkbox"] { margin-top: 0.15rem; cursor: pointer; }\n\n/* === Login gating (require_users_accept_terms) === */\n/* Wraps the email/social/wallet buttons so they can be visually disabled until the terms checkbox is ticked. The default state is unaffected. */\n.moonkey-sdk-root .moonkey-login-gateable { transition: opacity 0.15s ease-out; }\n.moonkey-sdk-root .moonkey-login-gated { opacity: 0.5; pointer-events: none; }\n\n/* === Shared entry animations === */\n@keyframes moonkey-slide-in { from { opacity: 0; transform: translateX(-20px); } to { opacity: 1; transform: translateX(0); } }\n@keyframes moonkey-success-bounce { from { opacity: 0; transform: translateY(-50px) rotate(-60deg); } to { opacity: 1; transform: translateY(20px) rotate(0deg); } }\n@keyframes moonkey-error-bounce { from { opacity: 0; transform: translateY(-50px) rotate(-60deg); } to { opacity: 1; transform: translateY(20px) rotate(0deg); } }\n@keyframes moonkey-error-shake { 0%, 100% { transform: translateX(0); } 10%, 30%, 50%, 70%, 90% { transform: translateX(-10px); } 20%, 40%, 60%, 80% { transform: translateX(10px); } }\n@keyframes moonkey-mail-slide-in { from { opacity: 0; transform: translateX(-50px) rotate(-15deg); } to { opacity: 1; transform: translateX(0) rotate(0deg); } }\n@keyframes moonkey-verified-slide-in { from { opacity: 0; transform: translateX(100px); } to { opacity: 1; transform: translateX(0); } }\n\n/* === Icon size utilities === */\n.moonkey-sdk-root .moonkey-icon--xs { width: 0.75rem; height: 0.75rem; }\n.moonkey-sdk-root .moonkey-icon--sm { width: 1rem; height: 1rem; }\n.moonkey-sdk-root .moonkey-icon--md { width: 1.5rem; height: 1.5rem; }\n.moonkey-sdk-root .moonkey-icon--lg { width: 2rem; height: 2rem; }\n.moonkey-sdk-root .moonkey-icon--xl { width: 2.5rem; height: 2.5rem; }\n.moonkey-sdk-root .moonkey-icon--2xl { width: 3rem; height: 3rem; }\n.moonkey-sdk-root .moonkey-icon--mr-xs { margin-right: 0.25rem; }\n.moonkey-sdk-root .moonkey-icon--mr-sm { margin-right: 0.5rem; }\n.moonkey-sdk-root .moonkey-icon--accent { color: var(--moonkey-color-accent); }\n.moonkey-sdk-root .moonkey-icon--success { color: var(--moonkey-color-success, #16a34a); }\n.moonkey-sdk-root .moonkey-icon--error { color: var(--moonkey-color-error); }\n.moonkey-sdk-root .moonkey-icon--muted { color: var(--moonkey-color-foreground-3); }\n.moonkey-sdk-root .moonkey-icon--fg { color: var(--moonkey-color-foreground); }\n\n/* === Layout utilities === */\n.moonkey-sdk-root .moonkey-flex-center { display: flex; align-items: center; justify-content: center; }\n.moonkey-sdk-root .moonkey-flex-between { display: flex; align-items: center; justify-content: space-between; }\n.moonkey-sdk-root .moonkey-flex-col { display: flex; flex-direction: column; }\n.moonkey-sdk-root .moonkey-flex-col-center { display: flex; flex-direction: column; align-items: center; }\n\n/* === Text modifiers === */\n.moonkey-sdk-root .moonkey-text--semibold { font-weight: var(--moonx-font-weight-medium, 500); }\n.moonkey-sdk-root .moonkey-text--bold { font-weight: var(--moonx-font-weight-bold, 600); }\n.moonkey-sdk-root .moonkey-text--center { text-align: center; }\n.moonkey-sdk-root .moonkey-text--sm { font-size: var(--moonx-font-size-sm, 0.875rem); }\n.moonkey-sdk-root .moonkey-text--lg { font-size: var(--moonx-font-size-lg, 1.125rem); }\n.moonkey-sdk-root .moonkey-text--xl { font-size: var(--moonx-font-size-xl, 1.25rem); }\n\n/* === Transaction detail card (success receipt) === */\n.moonkey-sdk-root .moonkey-detail-card { display: flex; flex-direction: column; border: 1px solid var(--moonkey-color-border); border-radius: var(--moonkey-border-radius-lg); padding: 1rem 0.5rem; margin: 2rem 0.5rem 0; }\n.moonkey-sdk-root .moonkey-detail-card__rows { flex: 1; display: flex; flex-direction: column; gap: 0.25rem; }\n\n/* === Failed-transaction error scroll box === */\n.moonkey-sdk-root .moonkey-error-scroll { display: flex; flex-direction: column; background-color: var(--moonkey-color-background-2); border: 1px solid var(--moonkey-color-border); border-radius: var(--moonkey-border-radius-lg); padding: 1rem 0.5rem; margin: 0.5rem; height: 150px; overflow: auto; }\n\n/* === Network logo badge (ethereum/solana pair) === */\n.moonkey-sdk-root .moonkey-network-badge { width: 32px; height: 32px; border-radius: 16px; border: 1px solid var(--moonkey-color-border); background-color: var(--moonkey-color-background-2); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }\n.moonkey-sdk-root .moonkey-network-badge--overlap { margin-left: -8px; }\n\n/* === Positioned icons inside inputs === */\n.moonkey-sdk-root .moonkey-search-icon { position: absolute; left: 0.75rem; top: 0.875rem; color: var(--moonkey-color-foreground-3); }\n.moonkey-sdk-root .moonkey-input-icon--left { position: absolute; left: 0.75rem; top: 50%; transform: translateY(-50%); color: var(--moonkey-color-foreground-3); pointer-events: none; }\n\n/* === Step indicator (N of M) === */\n.moonkey-sdk-root .moonkey-step-label { font-size: 0.75rem; font-weight: 600; color: var(--moonkey-color-accent); letter-spacing: 0.05em; text-transform: uppercase; }\n\n/* === Feature bullet item (passkey enroll) === */\n.moonkey-sdk-root .moonkey-feature-item { display: flex; align-items: flex-start; gap: 0.75rem; text-align: left; font-size: 0.875rem; color: var(--moonkey-color-foreground); }\n\n/* === Monospace textarea (import wallet) === */\n.moonkey-sdk-root .moonkey-mono-textarea { width: 100%; min-height: 100px; padding: 0.75rem; font-family: monospace; font-size: 0.75rem; background-color: var(--moonkey-color-background-2); color: var(--moonkey-color-foreground); border: 1px solid var(--moonkey-color-border); border-radius: var(--moonx-radius-input, var(--moonkey-border-radius-md)); outline: none; resize: vertical; }\n\n/* === Sign-flow inner section and row === */\n.moonkey-sdk-root .moonkey-sign-section { padding: 0.5rem; }\n.moonkey-sdk-root .moonkey-sign-row { display: flex; align-items: center; justify-content: space-between; }\n\n/* === External wallet connect button (login flow) === */\n.moonkey-sdk-root .moonkey-external-wallet-btn { border-radius: var(--moonx-radius-button, var(--moonkey-border-radius-lg)); border: var(--moonx-button-border-width, 1px) solid var(--moonx-button-border-color, var(--moonkey-color-border)); color: var(--moonx-button-fg, var(--moonkey-color-foreground)); padding: 0.75rem 0.25rem; cursor: pointer; margin-top: 0.75rem; transition: all 0.2s ease-in-out; background-color: var(--moonx-button-bg, transparent); }\n.moonkey-sdk-root .moonkey-external-wallet-btn:hover { border-color: var(--moonx-button-border-color-hover, var(--moonkey-color-accent)); background-color: var(--moonx-button-bg-hover, var(--moonkey-color-background-2)); }\n.moonkey-sdk-root .moonkey-external-wallet-btn--accent-hover:hover { background-color: var(--moonkey-color-accent); }\n.moonkey-sdk-root .moonkey-external-wallet-btn__inner { display: flex; flex-direction: row; align-items: center; gap: 0.5rem; animation: moonkey-slide-in 0.3s ease-out 0.1s both; }\n\n/* === Flex row utility (icon + label pairs) === */\n.moonkey-sdk-root .moonkey-flex-row { display: flex; flex-direction: row; align-items: center; gap: 0.5rem; }\n\n/* === Login landing layout === */\n.moonkey-sdk-root .moonkey-header { position: absolute; top: 1.5rem; left: 0; right: 0; text-align: center; font-family: var(--moonx-font-family-heading, inherit); font-size: var(--moonx-font-size-heading, 0.875rem); font-weight: var(--moonx-font-weight-heading, 500); letter-spacing: var(--moonx-letter-spacing-heading, inherit); color: var(--moonx-color-heading, var(--moonkey-color-foreground)); margin-bottom: 0.5rem; padding-left: 3rem; padding-right: 3rem; }\n.moonkey-sdk-root .moonkey-header__inner { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }\n.moonkey-sdk-root .moonkey-content-wrapper { padding-top: 1rem; padding-bottom: 1rem; width: 100%; }\n.moonkey-sdk-root .moonkey-logo-section { text-align: center; margin-bottom: 1rem; }\n.moonkey-sdk-root .moonkey-logo-section__inner { padding-top: 1rem; padding-bottom: 1rem; }\n.moonkey-sdk-root .moonkey-description { padding-left: 1.25rem; padding-right: 1.25rem; text-align: center; color: var(--moonkey-color-foreground-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }\n.moonkey-sdk-root .moonkey-form-section { padding: 0.5rem 1rem; }\n\n/* === Email OTP content fill === */\n.moonkey-sdk-root .moonkey-otp-content { flex-grow: 1; display: flex; flex-direction: column; justify-content: center; }\n\n/* === Wallet icon status overlay badge === */\n.moonkey-sdk-root .moonkey-wallet-status-badge { position: absolute; bottom: -4px; right: -4px; background-color: var(--moonkey-color-background); border-radius: 50%; display: flex; align-items: center; justify-content: center; }\n\n/* === Wallet connect success animation === */\n@keyframes fadeInScale { from { opacity: 0; transform: scale(0.8); } to { opacity: 1; transform: scale(1); } }\n';
|
|
3530
|
+
var SDK_STYLES = '\n/* === Reset === */\n.moonx-sdk-root * { box-sizing: border-box; }\n.moonx-sdk-root *:focus-visible { outline: 2px solid var(--moonx-color-ring, var(--moonx-color-accent)); outline-offset: 2px; }\n.moonx-sdk-root input::placeholder { color: var(--moonx-color-foreground-3); opacity: 1; }\n\n/* === Animations === */\n@keyframes moonx-spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }\n@keyframes moonx-pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }\n\n/* === Button === */\n.moonx-sdk-root .moonx-btn {\n display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;\n font-weight: var(--moonx-font-weight-medium, 500); font-size: 0.875rem; border: none; cursor: pointer;\n user-select: none; -webkit-user-select: none; white-space: nowrap;\n transition: background-color 0.2s, color 0.2s, border-color 0.2s, opacity 0.2s;\n font-family: inherit; text-decoration: none;\n}\n.moonx-sdk-root .moonx-btn:disabled { opacity: 0.5; cursor: not-allowed; pointer-events: none; }\n\n/* Sizes */\n.moonx-sdk-root .moonx-btn--sm { height: 2.25rem; padding: 0 0.75rem; border-radius: var(--moonx-radius-button, var(--moonx-border-radius-md)); }\n.moonx-sdk-root .moonx-btn--md, .moonx-sdk-root .moonx-btn--default { height: 2.75rem; padding: 0 1rem; border-radius: var(--moonx-radius-button, var(--moonx-border-radius-md)); }\n.moonx-sdk-root .moonx-btn--lg { height: 3rem; padding: 0 2rem; font-size: 1rem; border-radius: var(--moonx-radius-button, var(--moonx-border-radius-md)); }\n.moonx-sdk-root .moonx-btn--icon { width: 2rem; height: 2rem; padding: 0; border-radius: var(--moonx-radius-button, var(--moonx-border-radius-md)); }\n.moonx-sdk-root .moonx-btn--full { width: 100%; justify-content: center; }\n\n/* Variants */\n.moonx-sdk-root .moonx-btn--primary, .moonx-sdk-root .moonx-btn--default {\n background-color: var(--moonx-button-bg, var(--moonx-color-accent)); color: var(--moonx-button-fg, var(--moonx-color-accent-foreground));\n border: var(--moonx-button-border-width, 0px) solid var(--moonx-button-border-color, transparent);\n}\n.moonx-sdk-root .moonx-btn--primary:hover:not(:disabled), .moonx-sdk-root .moonx-btn--default:hover:not(:disabled) {\n background-color: var(--moonx-color-accent-dark);\n}\n.moonx-sdk-root .moonx-btn--primary.moonx-state--success { background-color: var(--moonx-color-success); color: var(--moonx-color-success-foreground); }\n.moonx-sdk-root .moonx-btn--primary.moonx-state--error { background-color: var(--moonx-color-error); color: var(--moonx-color-error-foreground); }\n\n.moonx-sdk-root .moonx-btn--outline {\n background-color: transparent; border: 1px solid var(--moonx-color-border); color: var(--moonx-color-foreground);\n}\n.moonx-sdk-root .moonx-btn--outline:hover:not(:disabled) { background-color: var(--moonx-color-background-2); border-color: var(--moonx-color-accent); }\n\n.moonx-sdk-root .moonx-btn--ghost { background-color: transparent; color: var(--moonx-color-foreground); }\n.moonx-sdk-root .moonx-btn--ghost:hover:not(:disabled) { background-color: var(--moonx-color-background-2); }\n\n.moonx-sdk-root .moonx-btn--secondary { background-color: var(--moonx-color-background-2); color: var(--moonx-color-foreground); }\n.moonx-sdk-root .moonx-btn--secondary:hover:not(:disabled) { background-color: var(--moonx-color-background-3); }\n\n.moonx-sdk-root .moonx-btn--destructive { background-color: var(--moonx-color-error); color: var(--moonx-color-error-foreground); }\n.moonx-sdk-root .moonx-btn--destructive:hover:not(:disabled) { opacity: 0.9; }\n\n.moonx-sdk-root .moonx-btn--link { background: transparent; color: var(--moonx-color-link, var(--moonx-color-accent)); text-decoration: underline; text-underline-offset: 4px; height: auto; padding: 0; }\n\n/* === Input === */\n.moonx-sdk-root .moonx-input {\n display: flex; width: 100%; height: 2.75rem; padding: 0 0.75rem;\n font-size: 0.875rem; font-family: inherit; color: var(--moonx-input-fg, var(--moonx-color-foreground));\n background-color: var(--moonx-input-bg, transparent); border: var(--moonx-input-border-width, 1px) solid var(--moonx-input-border-color, var(--moonx-color-border));\n border-radius: var(--moonx-radius-input, var(--moonx-border-radius-md)); outline: none;\n transition: border-color 0.2s, box-shadow 0.2s; box-sizing: border-box;\n}\n.moonx-sdk-root .moonx-input:focus { border-color: var(--moonx-color-ring, var(--moonx-color-accent)); box-shadow: 0 0 0 1px var(--moonx-color-ring, var(--moonx-color-accent)); }\n.moonx-sdk-root .moonx-input:disabled { opacity: 0.5; cursor: not-allowed; }\n.moonx-sdk-root .moonx-input--error { border-color: var(--moonx-color-error); }\n\n/* === Label === */\n.moonx-sdk-root .moonx-label { display: block; font-size: 0.875rem; font-weight: var(--moonx-font-weight-medium, 500); color: var(--moonx-color-foreground); line-height: 1; }\n.moonx-sdk-root .moonx-label--secondary { color: var(--moonx-color-foreground-3); }\n.moonx-sdk-root .moonx-label--tertiary { color: var(--moonx-color-foreground-4); font-size: 0.75rem; }\n.moonx-sdk-root .moonx-label--error { color: var(--moonx-color-error); }\n.moonx-sdk-root .moonx-label--success { color: var(--moonx-color-success); }\n\n/* === Detail Row === */\n.moonx-sdk-root .moonx-detail-row { display: flex; justify-content: space-between; align-items: center; padding: 0.25rem 0; }\n.moonx-sdk-root .moonx-detail-row__label { font-size: 0.875rem; color: var(--moonx-color-foreground-3); }\n.moonx-sdk-root .moonx-detail-row__value { font-size: 0.875rem; font-weight: 500; color: var(--moonx-color-foreground); text-align: right; }\n\n/* === Divider === */\n.moonx-sdk-root .moonx-divider { border-top: 1px solid var(--moonx-color-border); margin: 1rem 0; }\n\n/* === Boxes === */\n.moonx-sdk-root .moonx-box { padding: 0.75rem; border-radius: var(--moonx-border-radius-lg); }\n.moonx-sdk-root .moonx-box--surface { background-color: var(--moonx-color-background-2); }\n.moonx-sdk-root .moonx-box--error { background-color: var(--moonx-color-background-2); border: 1px solid var(--moonx-color-error); }\n.moonx-sdk-root .moonx-box--success { background-color: var(--moonx-color-background-2); border: 1px solid var(--moonx-color-success); }\n.moonx-sdk-root .moonx-box--info { background-color: var(--moonx-color-background-2); border: 1px solid var(--moonx-color-info, var(--moonx-color-border)); }\n.moonx-sdk-root .moonx-box--warning { background-color: var(--moonx-color-background-2); border: 1px solid var(--moonx-color-warning, var(--moonx-color-error)); display: flex; align-items: flex-start; gap: 0.5rem; }\n.moonx-sdk-root .moonx-box--scrollable { overflow-y: auto; font-size: 0.875rem; white-space: pre-wrap; word-break: break-word; }\n\n/* === Address Pill === */\n.moonx-sdk-root .moonx-address-pill {\n display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.25rem 0.75rem;\n background-color: var(--moonx-color-background-3); color: var(--moonx-color-foreground);\n border: 1px solid var(--moonx-color-border); border-radius: var(--moonx-border-radius-md);\n font-size: 0.875rem; font-family: monospace; cursor: pointer;\n transition: background-color 0.2s, border-color 0.2s;\n}\n.moonx-sdk-root .moonx-address-pill:hover { background-color: var(--moonx-color-background-2); }\n.moonx-sdk-root .moonx-address-pill--copied { border-color: var(--moonx-color-success); }\n\n/* === Mono Text === */\n.moonx-sdk-root .moonx-mono { font-family: monospace; font-size: 0.875rem; color: var(--moonx-color-foreground); }\n\n/* === Spinner === */\n.moonx-sdk-root .moonx-spinner {\n display: inline-block; flex-shrink: 0;\n border: 2px solid currentColor; border-top-color: transparent;\n border-radius: 9999px; animation: moonx-spin 1s linear infinite;\n}\n.moonx-sdk-root .moonx-spinner--sm { width: 0.875rem; height: 0.875rem; }\n.moonx-sdk-root .moonx-spinner--md { width: 1rem; height: 1rem; }\n.moonx-sdk-root .moonx-spinner--lg { width: 1.5rem; height: 1.5rem; }\n.moonx-sdk-root .moonx-spinner--xl { width: 2rem; height: 2rem; }\n\n/* === Pulse skeleton === */\n.moonx-sdk-root .moonx-skeleton { background-color: var(--moonx-color-background-2); border-radius: 0.25rem; animation: moonx-pulse 2s cubic-bezier(0.4,0,0.6,1) infinite; }\n\n/* === Flow layout === */\n.moonx-sdk-root .moonx-flow-close { position: absolute; top: 1rem; right: 1.5rem; display: flex; align-items: center; flex-shrink: 0; z-index: 1; }\n.moonx-sdk-root .moonx-flow-header { display: flex; flex-direction: column; text-align: center; padding: 0 0.5rem 0.25rem; gap: 0.5rem; }\n.moonx-sdk-root .moonx-flow-content { display: flex; flex-direction: column; flex: 1; margin-top: 1rem; padding: 0 0.5rem; }\n.moonx-sdk-root .moonx-flow-footer {\n position: absolute; bottom: 0; left: 0; right: 0;\n background-color: var(--moonx-color-background); padding: 1rem 2rem 3rem;\n margin: 0 0.125rem 0.125rem;\n border-bottom-left-radius: var(--moonx-border-radius-lg);\n border-bottom-right-radius: var(--moonx-border-radius-lg);\n}\n.moonx-sdk-root .moonx-flow-footer__actions { display: flex; gap: 0.75rem; }\n/* Buttons inside footer actions auto-stretch to fill space */\n.moonx-sdk-root .moonx-flow-footer__actions > .moonx-btn { flex: 1; height: 3rem; font-size: 1rem; }\n\n/* === Flow text utilities === */\n.moonx-sdk-root .moonx-text--heading { font-weight: var(--moonx-font-weight-heading, var(--moonx-font-weight-medium, 500)); font-family: var(--moonx-font-family-heading, inherit); letter-spacing: var(--moonx-letter-spacing-heading, inherit); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--moonx-color-heading, var(--moonx-color-foreground)); }\n.moonx-sdk-root .moonx-text--title { font-size: var(--moonx-font-size-heading, var(--moonx-font-size-lg, 1rem)); font-weight: var(--moonx-font-weight-heading, var(--moonx-font-weight-bold, 600)); font-family: var(--moonx-font-family-heading, inherit); letter-spacing: var(--moonx-letter-spacing-heading, inherit); color: var(--moonx-color-heading, var(--moonx-color-foreground)); }\n.moonx-sdk-root .moonx-text--secondary { font-size: var(--moonx-font-size-sm, 0.875rem); color: var(--moonx-color-foreground-3); }\n.moonx-sdk-root .moonx-text--error { font-size: 0.875rem; color: var(--moonx-color-error); }\n.moonx-sdk-root .moonx-text--success { font-size: 0.875rem; color: var(--moonx-color-success); }\n.moonx-sdk-root .moonx-flow-logo { display: flex; align-items: center; justify-content: center; }\n\n/* === Terms link row (accept-terms) === */\n.moonx-sdk-root .moonx-terms-link {\n display: flex; flex-direction: row; align-items: center; justify-content: space-between;\n border-radius: var(--moonx-border-radius-lg); padding: 0.75rem;\n margin-left: 0.75rem; margin-right: 0.75rem;\n border: 1px solid var(--moonx-color-border); cursor: pointer;\n transition: background-color 0.2s ease;\n}\n.moonx-sdk-root .moonx-terms-link:hover { background-color: var(--moonx-color-background-2); }\n\n/* === Wallet item === */\n.moonx-sdk-root .moonx-wallet-item {\n display: flex; align-items: center; justify-content: space-between; padding: 0.5rem 1rem;\n border: 1px solid var(--moonx-color-border); border-radius: var(--moonx-radius-button, var(--moonx-border-radius-lg));\n background-color: var(--moonx-color-background); cursor: pointer;\n transition: border-color 0.2s, background-color 0.2s;\n}\n.moonx-sdk-root .moonx-wallet-item:hover { border-color: var(--moonx-color-accent); background-color: var(--moonx-color-background-2); }\n.moonx-sdk-root .moonx-wallet-item--selected { border-color: var(--moonx-color-accent); background-color: var(--moonx-color-background-2); }\n\n/* === Flow overlay (z-index stack wrapper) === */\n.moonx-sdk-root .moonx-flow-overlay { position: relative; z-index: 100; }\n\n/* === Wallet connection state container === */\n.moonx-sdk-root .moonx-connect-state { display: flex; flex-direction: column; align-items: center; justify-content: center; padding-top: 3rem; padding-bottom: 3rem; }\n\n/* === Large wallet icon spinner === */\n.moonx-sdk-root .moonx-wallet-spinner { position: relative; width: 5rem; height: 5rem; display: flex; align-items: center; justify-content: center; }\n.moonx-sdk-root .moonx-wallet-spinner__ring { position: absolute; inset: 0; width: 5rem; height: 5rem; border-radius: 50%; border: 4px solid var(--moonx-color-border); }\n.moonx-sdk-root .moonx-wallet-spinner__ring--error { border-color: var(--moonx-color-error); }\n.moonx-sdk-root .moonx-wallet-spinner__spin { position: absolute; inset: 0; width: 5rem; height: 5rem; border-radius: 50%; border: 4px solid transparent; border-top-color: var(--moonx-color-accent); animation: moonx-spin 1s linear infinite; }\n.moonx-sdk-root .moonx-wallet-spinner__center { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }\n\n/* === Data preview box (sign typed-data / transactions) === */\n.moonx-sdk-root .moonx-data-preview { margin-top: 0.25rem; padding: 0.75rem; background-color: var(--moonx-color-background-2); border-radius: var(--moonx-border-radius-md); font-size: 0.875rem; font-family: monospace; word-break: break-all; white-space: pre-line; user-select: none; -webkit-user-select: none; }\n\n/* === Scrollable data container (signing flows) === */\n.moonx-sdk-root .moonx-data-scroll { display: flex; flex-direction: column; max-height: 390px; overflow-y: auto; padding-bottom: 5rem; position: relative; }\n\n/* === Expand/collapse trigger === */\n.moonx-sdk-root .moonx-expand-toggle { display: inline-flex; align-items: center; cursor: pointer; user-select: none; -webkit-user-select: none; }\n\n/* === Scrollable bordered list (transaction detail panels) === */\n.moonx-sdk-root .moonx-scrollable-list { display: flex; flex-direction: column; overflow-y: auto; border: 1px solid var(--moonx-color-border); border-radius: var(--moonx-border-radius-md); scrollbar-width: none; }\n.moonx-sdk-root .moonx-scrollable-list::-webkit-scrollbar { display: none; }\n\n/* === Modal content column (passkey-enroll, add-passkey) === */\n.moonx-sdk-root .moonx-modal-content { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 0 1rem 1.5rem; gap: 1rem; }\n\n/* === Back nav button (absolute top-left) === */\n.moonx-sdk-root .moonx-back-btn { position: absolute; top: 1rem; left: 0.5rem; width: 2.5rem; height: 2.5rem; display: flex; align-items: center; justify-content: center; border-radius: var(--moonx-border-radius-full); }\n\n/* === Centered inline row (resend, action links) === */\n.moonx-sdk-root .moonx-center-row { display: flex; justify-content: center; align-items: center; gap: 0.25rem; }\n\n/* === Stacked button column (modal CTAs) === */\n.moonx-sdk-root .moonx-btn-stack { display: flex; flex-direction: column; gap: 0.5rem; width: 100%; padding-top: 0.5rem; }\n\n/* === Legal footer text (terms & privacy) === */\n.moonx-sdk-root .moonx-legal-text { font-size: 0.75rem; color: var(--moonx-color-foreground-3); text-align: center; line-height: 1.5; margin-top: 1rem; }\n.moonx-sdk-root .moonx-legal-text a { color: var(--moonx-color-link, var(--moonx-color-accent)); cursor: pointer; }\n/* Inline-checkbox variant: same typography, but flex layout aligned left so the checkbox sits beside the link text. */\n.moonx-sdk-root .moonx-legal-checkbox { display: flex; align-items: flex-start; justify-content: flex-start; text-align: left; gap: 0.5rem; }\n.moonx-sdk-root .moonx-legal-checkbox input[type="checkbox"] { margin-top: 0.15rem; cursor: pointer; }\n\n/* === Login gating (require_users_accept_terms) === */\n/* Wraps the email/social/wallet buttons so they can be visually disabled until the terms checkbox is ticked. The default state is unaffected. */\n.moonx-sdk-root .moonx-login-gateable { transition: opacity 0.15s ease-out; }\n.moonx-sdk-root .moonx-login-gated { opacity: 0.5; pointer-events: none; }\n\n/* === Shared entry animations === */\n@keyframes moonx-slide-in { from { opacity: 0; transform: translateX(-20px); } to { opacity: 1; transform: translateX(0); } }\n@keyframes moonx-success-bounce { from { opacity: 0; transform: translateY(-50px) rotate(-60deg); } to { opacity: 1; transform: translateY(20px) rotate(0deg); } }\n@keyframes moonx-error-bounce { from { opacity: 0; transform: translateY(-50px) rotate(-60deg); } to { opacity: 1; transform: translateY(20px) rotate(0deg); } }\n@keyframes moonx-error-shake { 0%, 100% { transform: translateX(0); } 10%, 30%, 50%, 70%, 90% { transform: translateX(-10px); } 20%, 40%, 60%, 80% { transform: translateX(10px); } }\n@keyframes moonx-mail-slide-in { from { opacity: 0; transform: translateX(-50px) rotate(-15deg); } to { opacity: 1; transform: translateX(0) rotate(0deg); } }\n@keyframes moonx-verified-slide-in { from { opacity: 0; transform: translateX(100px); } to { opacity: 1; transform: translateX(0); } }\n\n/* === Icon size utilities === */\n.moonx-sdk-root .moonx-icon--xs { width: 0.75rem; height: 0.75rem; }\n.moonx-sdk-root .moonx-icon--sm { width: 1rem; height: 1rem; }\n.moonx-sdk-root .moonx-icon--md { width: 1.5rem; height: 1.5rem; }\n.moonx-sdk-root .moonx-icon--lg { width: 2rem; height: 2rem; }\n.moonx-sdk-root .moonx-icon--xl { width: 2.5rem; height: 2.5rem; }\n.moonx-sdk-root .moonx-icon--2xl { width: 3rem; height: 3rem; }\n.moonx-sdk-root .moonx-icon--mr-xs { margin-right: 0.25rem; }\n.moonx-sdk-root .moonx-icon--mr-sm { margin-right: 0.5rem; }\n.moonx-sdk-root .moonx-icon--accent { color: var(--moonx-color-accent); }\n.moonx-sdk-root .moonx-icon--success { color: var(--moonx-color-success, #16a34a); }\n.moonx-sdk-root .moonx-icon--error { color: var(--moonx-color-error); }\n.moonx-sdk-root .moonx-icon--muted { color: var(--moonx-color-foreground-3); }\n.moonx-sdk-root .moonx-icon--fg { color: var(--moonx-color-foreground); }\n\n/* === Layout utilities === */\n.moonx-sdk-root .moonx-flex-center { display: flex; align-items: center; justify-content: center; }\n.moonx-sdk-root .moonx-flex-between { display: flex; align-items: center; justify-content: space-between; }\n.moonx-sdk-root .moonx-flex-col { display: flex; flex-direction: column; }\n.moonx-sdk-root .moonx-flex-col-center { display: flex; flex-direction: column; align-items: center; }\n\n/* === Text modifiers === */\n.moonx-sdk-root .moonx-text--semibold { font-weight: var(--moonx-font-weight-medium, 500); }\n.moonx-sdk-root .moonx-text--bold { font-weight: var(--moonx-font-weight-bold, 600); }\n.moonx-sdk-root .moonx-text--center { text-align: center; }\n.moonx-sdk-root .moonx-text--sm { font-size: var(--moonx-font-size-sm, 0.875rem); }\n.moonx-sdk-root .moonx-text--lg { font-size: var(--moonx-font-size-lg, 1.125rem); }\n.moonx-sdk-root .moonx-text--xl { font-size: var(--moonx-font-size-xl, 1.25rem); }\n\n/* === Transaction detail card (success receipt) === */\n.moonx-sdk-root .moonx-detail-card { display: flex; flex-direction: column; border: 1px solid var(--moonx-color-border); border-radius: var(--moonx-border-radius-lg); padding: 1rem 0.5rem; margin: 2rem 0.5rem 0; }\n.moonx-sdk-root .moonx-detail-card__rows { flex: 1; display: flex; flex-direction: column; gap: 0.25rem; }\n\n/* === Failed-transaction error scroll box === */\n.moonx-sdk-root .moonx-error-scroll { display: flex; flex-direction: column; background-color: var(--moonx-color-background-2); border: 1px solid var(--moonx-color-border); border-radius: var(--moonx-border-radius-lg); padding: 1rem 0.5rem; margin: 0.5rem; height: 150px; overflow: auto; }\n\n/* === Network logo badge (ethereum/solana pair) === */\n.moonx-sdk-root .moonx-network-badge { width: 32px; height: 32px; border-radius: 16px; border: 1px solid var(--moonx-color-border); background-color: var(--moonx-color-background-2); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }\n.moonx-sdk-root .moonx-network-badge--overlap { margin-left: -8px; }\n\n/* === Positioned icons inside inputs === */\n.moonx-sdk-root .moonx-search-icon { position: absolute; left: 0.75rem; top: 0.875rem; color: var(--moonx-color-foreground-3); }\n.moonx-sdk-root .moonx-input-icon--left { position: absolute; left: 0.75rem; top: 50%; transform: translateY(-50%); color: var(--moonx-color-foreground-3); pointer-events: none; }\n\n/* === Step indicator (N of M) === */\n.moonx-sdk-root .moonx-step-label { font-size: 0.75rem; font-weight: 600; color: var(--moonx-color-accent); letter-spacing: 0.05em; text-transform: uppercase; }\n\n/* === Feature bullet item (passkey enroll) === */\n.moonx-sdk-root .moonx-feature-item { display: flex; align-items: flex-start; gap: 0.75rem; text-align: left; font-size: 0.875rem; color: var(--moonx-color-foreground); }\n\n/* === Monospace textarea (import wallet) === */\n.moonx-sdk-root .moonx-mono-textarea { width: 100%; min-height: 100px; padding: 0.75rem; font-family: monospace; font-size: 0.75rem; background-color: var(--moonx-color-background-2); color: var(--moonx-color-foreground); border: 1px solid var(--moonx-color-border); border-radius: var(--moonx-radius-input, var(--moonx-border-radius-md)); outline: none; resize: vertical; }\n\n/* === Sign-flow inner section and row === */\n.moonx-sdk-root .moonx-sign-section { padding: 0.5rem; }\n.moonx-sdk-root .moonx-sign-row { display: flex; align-items: center; justify-content: space-between; }\n\n/* === External wallet connect button (login flow) === */\n.moonx-sdk-root .moonx-external-wallet-btn { border-radius: var(--moonx-radius-button, var(--moonx-border-radius-lg)); border: var(--moonx-button-border-width, 1px) solid var(--moonx-button-border-color, var(--moonx-color-border)); color: var(--moonx-button-fg, var(--moonx-color-foreground)); padding: 0.75rem 0.25rem; cursor: pointer; margin-top: 0.75rem; transition: all 0.2s ease-in-out; background-color: var(--moonx-button-bg, transparent); }\n.moonx-sdk-root .moonx-external-wallet-btn:hover { border-color: var(--moonx-button-border-color-hover, var(--moonx-color-accent)); background-color: var(--moonx-button-bg-hover, var(--moonx-color-background-2)); }\n.moonx-sdk-root .moonx-external-wallet-btn--accent-hover:hover { background-color: var(--moonx-color-accent); }\n.moonx-sdk-root .moonx-external-wallet-btn__inner { display: flex; flex-direction: row; align-items: center; gap: 0.5rem; animation: moonx-slide-in 0.3s ease-out 0.1s both; }\n\n/* === Flex row utility (icon + label pairs) === */\n.moonx-sdk-root .moonx-flex-row { display: flex; flex-direction: row; align-items: center; gap: 0.5rem; }\n\n/* === Login landing layout === */\n.moonx-sdk-root .moonx-header { position: absolute; top: 1.5rem; left: 0; right: 0; text-align: center; font-family: var(--moonx-font-family-heading, inherit); font-size: var(--moonx-font-size-heading, 0.875rem); font-weight: var(--moonx-font-weight-heading, 500); letter-spacing: var(--moonx-letter-spacing-heading, inherit); color: var(--moonx-color-heading, var(--moonx-color-foreground)); margin-bottom: 0.5rem; padding-left: 3rem; padding-right: 3rem; }\n.moonx-sdk-root .moonx-header__inner { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }\n.moonx-sdk-root .moonx-content-wrapper { padding-top: 1rem; padding-bottom: 1rem; width: 100%; }\n.moonx-sdk-root .moonx-logo-section { text-align: center; margin-bottom: 1rem; }\n.moonx-sdk-root .moonx-logo-section__inner { padding-top: 1rem; padding-bottom: 1rem; }\n.moonx-sdk-root .moonx-description { padding-left: 1.25rem; padding-right: 1.25rem; text-align: center; color: var(--moonx-color-foreground-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }\n.moonx-sdk-root .moonx-form-section { padding: 0.5rem 1rem; }\n\n/* === Email OTP content fill === */\n.moonx-sdk-root .moonx-otp-content { flex-grow: 1; display: flex; flex-direction: column; justify-content: center; }\n\n/* === Wallet icon status overlay badge === */\n.moonx-sdk-root .moonx-wallet-status-badge { position: absolute; bottom: -4px; right: -4px; background-color: var(--moonx-color-background); border-radius: 50%; display: flex; align-items: center; justify-content: center; }\n\n/* === Wallet connect success animation === */\n@keyframes fadeInScale { from { opacity: 0; transform: scale(0.8); } to { opacity: 1; transform: scale(1); } }\n';
|
|
3531
3531
|
// src/components/scoped-container.tsx
|
|
3532
3532
|
import { jsx as jsx5, jsxs as jsxs2 } from "react/jsx-runtime";
|
|
3533
3533
|
function ScopedContainer(param) {
|
|
@@ -3548,12 +3548,12 @@ function ScopedContainer(param) {
|
|
|
3548
3548
|
boxSizing: "border-box",
|
|
3549
3549
|
WebkitFontSmoothing: "antialiased",
|
|
3550
3550
|
MozOsxFontSmoothing: "grayscale",
|
|
3551
|
-
fontFamily: "var(--
|
|
3551
|
+
fontFamily: "var(--moonx-font-family)",
|
|
3552
3552
|
letterSpacing: "var(--moonx-letter-spacing, normal)",
|
|
3553
3553
|
color: mergedTheme.colors.foreground
|
|
3554
3554
|
});
|
|
3555
3555
|
return /* @__PURE__ */ jsxs2("div", {
|
|
3556
|
-
className: "
|
|
3556
|
+
className: "moonx-sdk-root".concat(className ? " ".concat(className) : ""),
|
|
3557
3557
|
style: containerStyles,
|
|
3558
3558
|
"data-theme": isDark ? "dark" : "light",
|
|
3559
3559
|
children: [
|
|
@@ -3581,11 +3581,11 @@ function RootCard(param) {
|
|
|
3581
3581
|
var cardStyle = {
|
|
3582
3582
|
minHeight: minHeight,
|
|
3583
3583
|
width: "100%",
|
|
3584
|
-
borderRadius: "var(--moonx-radius-card, var(--
|
|
3584
|
+
borderRadius: "var(--moonx-radius-card, var(--moonx-border-radius-lg))",
|
|
3585
3585
|
boxShadow: "var(--moonx-card-shadow, 0 25px 50px -12px rgb(0 0 0 / 0.25))",
|
|
3586
|
-
border: "var(--moonx-card-border-width, 1px) solid var(--moonx-card-border-color, var(--
|
|
3586
|
+
border: "var(--moonx-card-border-width, 1px) solid var(--moonx-card-border-color, var(--moonx-color-border))",
|
|
3587
3587
|
position: "relative",
|
|
3588
|
-
backgroundColor: "var(--
|
|
3588
|
+
backgroundColor: "var(--moonx-color-background)",
|
|
3589
3589
|
color: "var(--moonx-card-fg, inherit)",
|
|
3590
3590
|
display: "flex",
|
|
3591
3591
|
flexDirection: "column",
|
|
@@ -3648,10 +3648,10 @@ function RootCard(param) {
|
|
|
3648
3648
|
theme: theme,
|
|
3649
3649
|
appearance: appearance,
|
|
3650
3650
|
children: /* @__PURE__ */ jsx6("div", {
|
|
3651
|
-
className: cx("
|
|
3651
|
+
className: cx("moonx-root-card", "moonx-embedded"),
|
|
3652
3652
|
style: cardStyle,
|
|
3653
3653
|
children: /* @__PURE__ */ jsx6("div", {
|
|
3654
|
-
className: "
|
|
3654
|
+
className: "moonx-card-content",
|
|
3655
3655
|
style: contentStyle,
|
|
3656
3656
|
children: children
|
|
3657
3657
|
})
|
|
@@ -3664,7 +3664,7 @@ function RootCard(param) {
|
|
|
3664
3664
|
useEffect7(function() {
|
|
3665
3665
|
if (typeof window === "undefined") return;
|
|
3666
3666
|
var portalDiv = document.createElement("div");
|
|
3667
|
-
portalDiv.id = "
|
|
3667
|
+
portalDiv.id = "moonx-modal-portal";
|
|
3668
3668
|
portalDiv.style.cssText = "\n position: fixed;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n z-index: ".concat(MODAL_PORTAL_Z_INDEX, ";\n pointer-events: none;\n ");
|
|
3669
3669
|
document.body.appendChild(portalDiv);
|
|
3670
3670
|
setPortalContainer(portalDiv);
|
|
@@ -3729,29 +3729,29 @@ function RootCard(param) {
|
|
|
3729
3729
|
children: [
|
|
3730
3730
|
/* @__PURE__ */ jsx6("style", {
|
|
3731
3731
|
dangerouslySetInnerHTML: {
|
|
3732
|
-
__html: "\n @keyframes fadeInZoom {\n from {\n opacity: 0;\n transform: scale(0.95);\n }\n to {\n opacity: 1;\n transform: scale(1);\n }\n }\n\n @keyframes slideUpFromBottom {\n from {\n opacity: 0;\n transform: translateY(100%);\n }\n to {\n opacity: 1;\n transform: translateY(0);\n }\n }\n\n /* Fix for mobile keyboard - use dvh units */\n .
|
|
3732
|
+
__html: "\n @keyframes fadeInZoom {\n from {\n opacity: 0;\n transform: scale(0.95);\n }\n to {\n opacity: 1;\n transform: scale(1);\n }\n }\n\n @keyframes slideUpFromBottom {\n from {\n opacity: 0;\n transform: translateY(100%);\n }\n to {\n opacity: 1;\n transform: translateY(0);\n }\n }\n\n /* Fix for mobile keyboard - use dvh units */\n .moonx-modal-overlay,\n .moonx-modal-container {\n height: 100dvh !important;\n min-height: 100dvh !important;\n pointer-events: auto !important;\n }\n\n /* Desktop: centered modal with zoom animation */\n .moonx-modal-card {\n animation: fadeInZoom 0.2s ease-out;\n }\n\n /* Mobile: bottom sheet with slide up animation */\n @media (max-width: 768px) {\n .moonx-modal-container {\n align-items: flex-end !important;\n padding: 0 !important;\n /* Prevent layout shift when keyboard opens */\n position: fixed !important;\n overscroll-behavior: contain !important;\n }\n\n .moonx-modal-wrapper {\n max-width: 100% !important;\n width: 100% !important;\n }\n\n .moonx-modal-card {\n animation: slideUpFromBottom 0.3s ease-out !important;\n max-width: 100% !important;\n width: 100% !important;\n border-bottom-left-radius: 0 !important;\n border-bottom-right-radius: 0 !important;\n border-top-left-radius: 1.5rem !important;\n border-top-right-radius: 1.5rem !important;\n margin: 0 !important;\n max-height: 100dvh !important;\n overflow-y: auto !important;\n /* Prevent bounce/rubber-band scrolling on iOS */\n overscroll-behavior: contain !important;\n /* Smooth scrolling on iOS */\n -webkit-overflow-scrolling: touch !important;\n /* Prevent zoom on input focus */\n touch-action: manipulation !important;\n }\n\n /* Ensure content is scrollable when keyboard is open */\n .moonx-card-content {\n overflow-y: auto !important;\n -webkit-overflow-scrolling: touch !important;\n overscroll-behavior: contain !important;\n /* Prevent content from shifting */\n position: relative !important;\n }\n\n /* Prevent input zoom on iOS */\n .moonx-modal-card input,\n .moonx-modal-card textarea,\n .moonx-modal-card select {\n font-size: 16px !important;\n touch-action: manipulation !important;\n }\n }\n\n /* Fallback for browsers that don't support dvh */\n @supports not (height: 100dvh) {\n .moonx-modal-overlay,\n .moonx-modal-container {\n height: 100vh !important;\n min-height: -webkit-fill-available !important;\n }\n }\n "
|
|
3733
3733
|
}
|
|
3734
3734
|
}),
|
|
3735
3735
|
/* @__PURE__ */ jsx6("div", {
|
|
3736
|
-
className: "
|
|
3736
|
+
className: "moonx-modal-overlay",
|
|
3737
3737
|
style: _object_spread_props(_object_spread({}, modalOverlayStyle), {
|
|
3738
3738
|
pointerEvents: "auto"
|
|
3739
3739
|
})
|
|
3740
3740
|
}),
|
|
3741
3741
|
/* @__PURE__ */ jsx6("div", {
|
|
3742
3742
|
ref: modalContainerRef,
|
|
3743
|
-
className: "
|
|
3743
|
+
className: "moonx-modal-container",
|
|
3744
3744
|
style: _object_spread_props(_object_spread({}, modalContainerStyle), {
|
|
3745
3745
|
pointerEvents: "auto"
|
|
3746
3746
|
}),
|
|
3747
3747
|
children: /* @__PURE__ */ jsx6("div", {
|
|
3748
|
-
className: "
|
|
3748
|
+
className: "moonx-modal-wrapper",
|
|
3749
3749
|
style: modalWrapperStyle,
|
|
3750
3750
|
children: /* @__PURE__ */ jsx6("div", {
|
|
3751
|
-
className: cx("
|
|
3751
|
+
className: cx("moonx-root-card", "moonx-modal", "moonx-modal-card"),
|
|
3752
3752
|
style: modalCardStyle,
|
|
3753
3753
|
children: /* @__PURE__ */ jsx6("div", {
|
|
3754
|
-
className: "
|
|
3754
|
+
className: "moonx-card-content",
|
|
3755
3755
|
style: contentStyle,
|
|
3756
3756
|
children: children
|
|
3757
3757
|
})
|
|
@@ -3808,7 +3808,7 @@ var CountdownTimer = function CountdownTimer(param) {
|
|
|
3808
3808
|
fontWeight: "500"
|
|
3809
3809
|
};
|
|
3810
3810
|
return /* @__PURE__ */ jsxs4("div", {
|
|
3811
|
-
className: cx("
|
|
3811
|
+
className: cx("moonx-countdown-timer", className),
|
|
3812
3812
|
style: containerStyle,
|
|
3813
3813
|
children: [
|
|
3814
3814
|
/* @__PURE__ */ jsx7("div", {
|
|
@@ -3899,21 +3899,21 @@ function SimpleOtpInput(param) {
|
|
|
3899
3899
|
var isFocused = focusedIndex === index;
|
|
3900
3900
|
var isFirst = index === 0;
|
|
3901
3901
|
var isLast = index === length - 1;
|
|
3902
|
-
var borderColor = "var(--
|
|
3903
|
-
var backgroundColor = "var(--
|
|
3904
|
-
var textColor = "var(--
|
|
3902
|
+
var borderColor = "var(--moonx-color-border)";
|
|
3903
|
+
var backgroundColor = "var(--moonx-color-background)";
|
|
3904
|
+
var textColor = "var(--moonx-color-foreground)";
|
|
3905
3905
|
if (validationState === "success") {
|
|
3906
|
-
borderColor = "var(--
|
|
3907
|
-
backgroundColor = "var(--
|
|
3908
|
-
textColor = "var(--
|
|
3906
|
+
borderColor = "var(--moonx-color-success)";
|
|
3907
|
+
backgroundColor = "var(--moonx-color-background-2)";
|
|
3908
|
+
textColor = "var(--moonx-color-success)";
|
|
3909
3909
|
} else if (validationState === "error") {
|
|
3910
|
-
borderColor = "var(--
|
|
3911
|
-
backgroundColor = "var(--
|
|
3912
|
-
textColor = "var(--
|
|
3910
|
+
borderColor = "var(--moonx-color-error)";
|
|
3911
|
+
backgroundColor = "var(--moonx-color-background-2)";
|
|
3912
|
+
textColor = "var(--moonx-color-error)";
|
|
3913
3913
|
} else if (isFilled) {
|
|
3914
|
-
borderColor = "var(--
|
|
3914
|
+
borderColor = "var(--moonx-color-foreground)";
|
|
3915
3915
|
} else if (isFocused) {
|
|
3916
|
-
borderColor = "var(--
|
|
3916
|
+
borderColor = "var(--moonx-color-accent)";
|
|
3917
3917
|
}
|
|
3918
3918
|
return {
|
|
3919
3919
|
width: "3rem",
|
|
@@ -3925,10 +3925,10 @@ function SimpleOtpInput(param) {
|
|
|
3925
3925
|
borderBottom: "1px solid ".concat(borderColor),
|
|
3926
3926
|
borderRight: "1px solid ".concat(borderColor),
|
|
3927
3927
|
borderLeft: isFirst ? "1px solid ".concat(borderColor) : "none",
|
|
3928
|
-
borderTopLeftRadius: isFirst ? "var(--
|
|
3929
|
-
borderBottomLeftRadius: isFirst ? "var(--
|
|
3930
|
-
borderTopRightRadius: isLast ? "var(--
|
|
3931
|
-
borderBottomRightRadius: isLast ? "var(--
|
|
3928
|
+
borderTopLeftRadius: isFirst ? "var(--moonx-border-radius-md)" : 0,
|
|
3929
|
+
borderBottomLeftRadius: isFirst ? "var(--moonx-border-radius-md)" : 0,
|
|
3930
|
+
borderTopRightRadius: isLast ? "var(--moonx-border-radius-md)" : 0,
|
|
3931
|
+
borderBottomRightRadius: isLast ? "var(--moonx-border-radius-md)" : 0,
|
|
3932
3932
|
backgroundColor: backgroundColor,
|
|
3933
3933
|
color: textColor,
|
|
3934
3934
|
outline: "none",
|
|
@@ -3936,7 +3936,7 @@ function SimpleOtpInput(param) {
|
|
|
3936
3936
|
boxShadow: isFocused ? "0 0 0 3px rgba(99, 102, 241, 0.1)" : "0 1px 2px 0 rgb(0 0 0 / 0.05)",
|
|
3937
3937
|
cursor: disabled ? "not-allowed" : "text",
|
|
3938
3938
|
opacity: disabled ? 0.5 : 1,
|
|
3939
|
-
fontFamily: "var(--
|
|
3939
|
+
fontFamily: "var(--moonx-font-family)"
|
|
3940
3940
|
};
|
|
3941
3941
|
};
|
|
3942
3942
|
var containerStyle = {
|
|
@@ -4028,7 +4028,7 @@ function AddressPill(param) {
|
|
|
4028
4028
|
var label = address.length > prefixLen + suffixLen ? "".concat(address.slice(0, prefixLen), "...").concat(address.slice(-suffixLen)) : address;
|
|
4029
4029
|
return /* @__PURE__ */ jsxs5("button", {
|
|
4030
4030
|
type: "button",
|
|
4031
|
-
className: cx("
|
|
4031
|
+
className: cx("moonx-address-pill", copied && "moonx-address-pill--copied", className),
|
|
4032
4032
|
onClick: handleCopy,
|
|
4033
4033
|
title: address,
|
|
4034
4034
|
children: [
|
|
@@ -4037,7 +4037,7 @@ function AddressPill(param) {
|
|
|
4037
4037
|
style: {
|
|
4038
4038
|
width: "1rem",
|
|
4039
4039
|
height: "1rem",
|
|
4040
|
-
color: "var(--
|
|
4040
|
+
color: "var(--moonx-color-success)"
|
|
4041
4041
|
}
|
|
4042
4042
|
}) : /* @__PURE__ */ jsx9(Copy, {
|
|
4043
4043
|
style: {
|
|
@@ -4067,13 +4067,13 @@ var ExpiryPill = function ExpiryPill(param) {
|
|
|
4067
4067
|
alignItems: "center",
|
|
4068
4068
|
gap: "0.4rem",
|
|
4069
4069
|
padding: "0.35rem 0.75rem",
|
|
4070
|
-
borderRadius: "var(--
|
|
4070
|
+
borderRadius: "var(--moonx-border-radius-full, 9999px)",
|
|
4071
4071
|
fontSize: "0.8125rem",
|
|
4072
4072
|
lineHeight: 1,
|
|
4073
4073
|
fontVariantNumeric: "tabular-nums",
|
|
4074
|
-
backgroundColor: "var(--
|
|
4075
|
-
color: urgent ? "var(--
|
|
4076
|
-
border: "1px solid var(--
|
|
4074
|
+
backgroundColor: "var(--moonx-color-background-2, #f9fafb)",
|
|
4075
|
+
color: urgent ? "var(--moonx-color-error, #ef4444)" : "var(--moonx-color-foreground-3, #6b7280)",
|
|
4076
|
+
border: "1px solid var(--moonx-color-border, #e5e7eb)"
|
|
4077
4077
|
},
|
|
4078
4078
|
children: [
|
|
4079
4079
|
/* @__PURE__ */ jsx10(Clock, {
|
|
@@ -4119,10 +4119,10 @@ function ErrorBox(param) {
|
|
|
4119
4119
|
"aria-hidden": "true"
|
|
4120
4120
|
});
|
|
4121
4121
|
return /* @__PURE__ */ jsxs7("div", _object_spread_props(_object_spread({}, a11yProps), {
|
|
4122
|
-
className: cx("
|
|
4122
|
+
className: cx("moonx-text--error", className),
|
|
4123
4123
|
style: _object_spread({
|
|
4124
4124
|
fontSize: "0.875rem",
|
|
4125
|
-
color: "var(--
|
|
4125
|
+
color: "var(--moonx-color-error)",
|
|
4126
4126
|
textAlign: resolvedAlign,
|
|
4127
4127
|
display: "flex",
|
|
4128
4128
|
alignItems: "center",
|
|
@@ -4139,7 +4139,7 @@ function ErrorBox(param) {
|
|
|
4139
4139
|
}));
|
|
4140
4140
|
}
|
|
4141
4141
|
return /* @__PURE__ */ jsxs7("div", _object_spread_props(_object_spread({}, a11yProps), {
|
|
4142
|
-
className: cx("
|
|
4142
|
+
className: cx("moonx-box moonx-box--warning", className),
|
|
4143
4143
|
style: style,
|
|
4144
4144
|
children: [
|
|
4145
4145
|
icon && /* @__PURE__ */ jsx11("span", {
|
|
@@ -4149,14 +4149,14 @@ function ErrorBox(param) {
|
|
|
4149
4149
|
marginTop: "0.125rem",
|
|
4150
4150
|
width: "1.25rem",
|
|
4151
4151
|
height: "1.25rem",
|
|
4152
|
-
color: "var(--
|
|
4152
|
+
color: "var(--moonx-color-error)"
|
|
4153
4153
|
},
|
|
4154
4154
|
children: icon
|
|
4155
4155
|
}),
|
|
4156
4156
|
/* @__PURE__ */ jsx11("span", {
|
|
4157
4157
|
style: _object_spread({
|
|
4158
4158
|
fontSize: "0.875rem",
|
|
4159
|
-
color: "var(--
|
|
4159
|
+
color: "var(--moonx-color-error)"
|
|
4160
4160
|
}, align === "center" && {
|
|
4161
4161
|
textAlign: "center",
|
|
4162
4162
|
flex: 1
|
|
@@ -4171,7 +4171,7 @@ import { jsx as jsx12, jsxs as jsxs8 } from "react/jsx-runtime";
|
|
|
4171
4171
|
function SuccessBox(param) {
|
|
4172
4172
|
var children = param.children, icon = param.icon, className = param.className;
|
|
4173
4173
|
return /* @__PURE__ */ jsxs8("div", {
|
|
4174
|
-
className: cx("
|
|
4174
|
+
className: cx("moonx-box moonx-box--success", className),
|
|
4175
4175
|
style: {
|
|
4176
4176
|
display: "flex",
|
|
4177
4177
|
alignItems: "flex-start",
|
|
@@ -4184,14 +4184,14 @@ function SuccessBox(param) {
|
|
|
4184
4184
|
marginTop: "0.125rem",
|
|
4185
4185
|
width: "1.25rem",
|
|
4186
4186
|
height: "1.25rem",
|
|
4187
|
-
color: "var(--
|
|
4187
|
+
color: "var(--moonx-color-success)"
|
|
4188
4188
|
},
|
|
4189
4189
|
children: icon
|
|
4190
4190
|
}),
|
|
4191
4191
|
/* @__PURE__ */ jsx12("span", {
|
|
4192
4192
|
style: {
|
|
4193
4193
|
fontSize: "0.875rem",
|
|
4194
|
-
color: "var(--
|
|
4194
|
+
color: "var(--moonx-color-success)"
|
|
4195
4195
|
},
|
|
4196
4196
|
children: children
|
|
4197
4197
|
})
|
|
@@ -4208,7 +4208,7 @@ function MonoText(_0) {
|
|
|
4208
4208
|
"className"
|
|
4209
4209
|
]);
|
|
4210
4210
|
return /* @__PURE__ */ jsx14("span", _object_spread_props(_object_spread({
|
|
4211
|
-
className: cx("
|
|
4211
|
+
className: cx("moonx-mono", className)
|
|
4212
4212
|
}, props), {
|
|
4213
4213
|
children: children
|
|
4214
4214
|
}));
|
|
@@ -4218,14 +4218,14 @@ import { jsx as jsx15, jsxs as jsxs9 } from "react/jsx-runtime";
|
|
|
4218
4218
|
function DetailRow(param) {
|
|
4219
4219
|
var label = param.label, value = param.value, className = param.className;
|
|
4220
4220
|
return /* @__PURE__ */ jsxs9("div", {
|
|
4221
|
-
className: cx("
|
|
4221
|
+
className: cx("moonx-detail-row", className),
|
|
4222
4222
|
children: [
|
|
4223
4223
|
/* @__PURE__ */ jsx15("span", {
|
|
4224
|
-
className: "
|
|
4224
|
+
className: "moonx-detail-row__label",
|
|
4225
4225
|
children: label
|
|
4226
4226
|
}),
|
|
4227
4227
|
/* @__PURE__ */ jsx15("span", {
|
|
4228
|
-
className: "
|
|
4228
|
+
className: "moonx-detail-row__value",
|
|
4229
4229
|
children: value
|
|
4230
4230
|
})
|
|
4231
4231
|
]
|
|
@@ -4539,14 +4539,14 @@ var AddPasskey = function AddPasskey(param) {
|
|
|
4539
4539
|
};
|
|
4540
4540
|
var renderLogo = function renderLogo() {
|
|
4541
4541
|
return /* @__PURE__ */ jsx16("div", {
|
|
4542
|
-
className: "
|
|
4542
|
+
className: "moonx-flow-logo",
|
|
4543
4543
|
style: {
|
|
4544
4544
|
paddingTop: "1rem"
|
|
4545
4545
|
},
|
|
4546
4546
|
children: customLogoUrl ? /* @__PURE__ */ jsx16("img", {
|
|
4547
4547
|
src: customLogoUrl,
|
|
4548
4548
|
alt: "",
|
|
4549
|
-
className: "
|
|
4549
|
+
className: "moonx-icon--lg",
|
|
4550
4550
|
style: {
|
|
4551
4551
|
objectFit: "contain"
|
|
4552
4552
|
}
|
|
@@ -4567,22 +4567,22 @@ var AddPasskey = function AddPasskey(param) {
|
|
|
4567
4567
|
theme: config === null || config === void 0 ? void 0 : (_config_config6 = config.config) === null || _config_config6 === void 0 ? void 0 : _config_config6.theme,
|
|
4568
4568
|
appearance: config === null || config === void 0 ? void 0 : (_config_config7 = config.config) === null || _config_config7 === void 0 ? void 0 : _config_config7.appearance,
|
|
4569
4569
|
children: /* @__PURE__ */ jsxs10("div", {
|
|
4570
|
-
className: cx("
|
|
4570
|
+
className: cx("moonx-add-passkey", "moonx-add-passkey-success", "moonx-modal-content"),
|
|
4571
4571
|
children: [
|
|
4572
4572
|
renderLogo(),
|
|
4573
4573
|
/* @__PURE__ */ jsx16(CheckCircle2, {
|
|
4574
|
-
className: "
|
|
4574
|
+
className: "moonx-icon--2xl moonx-icon--success"
|
|
4575
4575
|
}),
|
|
4576
4576
|
/* @__PURE__ */ jsx16("div", {
|
|
4577
|
-
className: "
|
|
4577
|
+
className: "moonx-text--title moonx-text--xl",
|
|
4578
4578
|
children: "New passkey added"
|
|
4579
4579
|
}),
|
|
4580
4580
|
/* @__PURE__ */ jsx16("div", {
|
|
4581
|
-
className: "
|
|
4581
|
+
className: "moonx-text--secondary",
|
|
4582
4582
|
children: "You can now unlock your wallet from this passkey too."
|
|
4583
4583
|
}),
|
|
4584
4584
|
/* @__PURE__ */ jsx16("div", {
|
|
4585
|
-
className: "
|
|
4585
|
+
className: "moonx-btn-stack",
|
|
4586
4586
|
children: /* @__PURE__ */ jsx16(Button, {
|
|
4587
4587
|
onClick: function onClick() {
|
|
4588
4588
|
return finish({
|
|
@@ -4604,15 +4604,15 @@ var AddPasskey = function AddPasskey(param) {
|
|
|
4604
4604
|
theme: config === null || config === void 0 ? void 0 : (_config_config8 = config.config) === null || _config_config8 === void 0 ? void 0 : _config_config8.theme,
|
|
4605
4605
|
appearance: config === null || config === void 0 ? void 0 : (_config_config9 = config.config) === null || _config_config9 === void 0 ? void 0 : _config_config9.appearance,
|
|
4606
4606
|
children: /* @__PURE__ */ jsxs10("div", {
|
|
4607
|
-
className: cx("
|
|
4607
|
+
className: cx("moonx-add-passkey", "moonx-add-passkey-error", "moonx-modal-content"),
|
|
4608
4608
|
children: [
|
|
4609
4609
|
renderLogo(),
|
|
4610
4610
|
/* @__PURE__ */ jsx16(AlertTriangle, {
|
|
4611
4611
|
"aria-hidden": true,
|
|
4612
|
-
className: "
|
|
4612
|
+
className: "moonx-icon--xl moonx-icon--error"
|
|
4613
4613
|
}),
|
|
4614
4614
|
/* @__PURE__ */ jsx16("div", {
|
|
4615
|
-
className: "
|
|
4615
|
+
className: "moonx-text--title moonx-text--xl",
|
|
4616
4616
|
children: recoverWithUnlock ? "Unlock expired" : "Couldn't add passkey"
|
|
4617
4617
|
}),
|
|
4618
4618
|
errorMessage && /* @__PURE__ */ jsx16(ErrorBox, {
|
|
@@ -4621,7 +4621,7 @@ var AddPasskey = function AddPasskey(param) {
|
|
|
4621
4621
|
children: errorMessage
|
|
4622
4622
|
}),
|
|
4623
4623
|
/* @__PURE__ */ jsxs10("div", {
|
|
4624
|
-
className: "
|
|
4624
|
+
className: "moonx-btn-stack",
|
|
4625
4625
|
children: [
|
|
4626
4626
|
/* @__PURE__ */ jsx16(Button, {
|
|
4627
4627
|
onClick: handleRetry,
|
|
@@ -4647,30 +4647,30 @@ var AddPasskey = function AddPasskey(param) {
|
|
|
4647
4647
|
theme: config === null || config === void 0 ? void 0 : (_config_config10 = config.config) === null || _config_config10 === void 0 ? void 0 : _config_config10.theme,
|
|
4648
4648
|
appearance: config === null || config === void 0 ? void 0 : (_config_config11 = config.config) === null || _config_config11 === void 0 ? void 0 : _config_config11.appearance,
|
|
4649
4649
|
children: /* @__PURE__ */ jsxs10("div", {
|
|
4650
|
-
className: cx("
|
|
4650
|
+
className: cx("moonx-add-passkey", "moonx-add-passkey-step-1", "moonx-modal-content"),
|
|
4651
4651
|
children: [
|
|
4652
4652
|
renderLogo(),
|
|
4653
4653
|
/* @__PURE__ */ jsx16("div", {
|
|
4654
|
-
className: "
|
|
4654
|
+
className: "moonx-step-label",
|
|
4655
4655
|
children: "Step 1 of 2"
|
|
4656
4656
|
}),
|
|
4657
4657
|
/* @__PURE__ */ jsx16(KeyRound, {
|
|
4658
|
-
className: "
|
|
4658
|
+
className: "moonx-icon--xl moonx-icon--accent"
|
|
4659
4659
|
}),
|
|
4660
4660
|
/* @__PURE__ */ jsx16("div", {
|
|
4661
|
-
className: "
|
|
4661
|
+
className: "moonx-text--title moonx-text--xl",
|
|
4662
4662
|
children: "Confirm with an existing passkey"
|
|
4663
4663
|
}),
|
|
4664
4664
|
/* @__PURE__ */ jsx16("div", {
|
|
4665
|
-
className: "
|
|
4665
|
+
className: "moonx-text--secondary",
|
|
4666
4666
|
children: "To add another passkey, first prove you have access by unlocking with one you already use. Your wallet stays encrypted on this device throughout."
|
|
4667
4667
|
}),
|
|
4668
4668
|
errorMessage && /* @__PURE__ */ jsx16("div", {
|
|
4669
|
-
className: "
|
|
4669
|
+
className: "moonx-text--error",
|
|
4670
4670
|
children: errorMessage
|
|
4671
4671
|
}),
|
|
4672
4672
|
/* @__PURE__ */ jsxs10("div", {
|
|
4673
|
-
className: "
|
|
4673
|
+
className: "moonx-btn-stack",
|
|
4674
4674
|
children: [
|
|
4675
4675
|
/* @__PURE__ */ jsx16(Button, {
|
|
4676
4676
|
onClick: handleUnlock,
|
|
@@ -4696,40 +4696,40 @@ var AddPasskey = function AddPasskey(param) {
|
|
|
4696
4696
|
theme: config === null || config === void 0 ? void 0 : (_config_config4 = config.config) === null || _config_config4 === void 0 ? void 0 : _config_config4.theme,
|
|
4697
4697
|
appearance: config === null || config === void 0 ? void 0 : (_config_config5 = config.config) === null || _config_config5 === void 0 ? void 0 : _config_config5.appearance,
|
|
4698
4698
|
children: /* @__PURE__ */ jsxs10("div", {
|
|
4699
|
-
className: cx("
|
|
4699
|
+
className: cx("moonx-add-passkey", "moonx-add-passkey-step-2", "moonx-modal-content"),
|
|
4700
4700
|
children: [
|
|
4701
4701
|
renderLogo(),
|
|
4702
4702
|
/* @__PURE__ */ jsx16("div", {
|
|
4703
|
-
className: "
|
|
4703
|
+
className: "moonx-step-label",
|
|
4704
4704
|
children: "Step 2 of 2"
|
|
4705
4705
|
}),
|
|
4706
4706
|
/* @__PURE__ */ jsx16(Plus, {
|
|
4707
|
-
className: "
|
|
4707
|
+
className: "moonx-icon--xl moonx-icon--accent",
|
|
4708
4708
|
"aria-hidden": true
|
|
4709
4709
|
}),
|
|
4710
4710
|
/* @__PURE__ */ jsx16(Fingerprint, {
|
|
4711
|
-
className: "
|
|
4711
|
+
className: "moonx-icon--xl moonx-icon--accent",
|
|
4712
4712
|
style: {
|
|
4713
4713
|
marginTop: "-1rem"
|
|
4714
4714
|
}
|
|
4715
4715
|
}),
|
|
4716
4716
|
/* @__PURE__ */ jsx16("div", {
|
|
4717
|
-
className: "
|
|
4717
|
+
className: "moonx-text--title moonx-text--xl",
|
|
4718
4718
|
children: "Add another passkey"
|
|
4719
4719
|
}),
|
|
4720
4720
|
/* @__PURE__ */ jsx16("div", {
|
|
4721
|
-
className: "
|
|
4721
|
+
className: "moonx-text--secondary",
|
|
4722
4722
|
children: "On the next prompt, your browser or password manager will offer to create a new passkey. Pick a syncing option (iCloud Keychain, Google Password Manager, 1Password) so you keep access if you lose this device."
|
|
4723
4723
|
}),
|
|
4724
4724
|
secondsLeft !== null && /* @__PURE__ */ jsx16(ExpiryPill, {
|
|
4725
4725
|
secondsLeft: secondsLeft
|
|
4726
4726
|
}),
|
|
4727
4727
|
errorMessage && /* @__PURE__ */ jsx16("div", {
|
|
4728
|
-
className: "
|
|
4728
|
+
className: "moonx-text--error",
|
|
4729
4729
|
children: errorMessage
|
|
4730
4730
|
}),
|
|
4731
4731
|
/* @__PURE__ */ jsxs10("div", {
|
|
4732
|
-
className: "
|
|
4732
|
+
className: "moonx-btn-stack",
|
|
4733
4733
|
children: [
|
|
4734
4734
|
/* @__PURE__ */ jsx16(Button, {
|
|
4735
4735
|
onClick: handleEnroll,
|
|
@@ -4908,20 +4908,20 @@ var EmailOtpInput = function EmailOtpInput(param) {
|
|
|
4908
4908
|
};
|
|
4909
4909
|
return /* @__PURE__ */ jsx17(Fragment, {
|
|
4910
4910
|
children: /* @__PURE__ */ jsx17("div", {
|
|
4911
|
-
className: cx("
|
|
4911
|
+
className: cx("moonx-email-otp-input", "moonx-flex-col"),
|
|
4912
4912
|
style: {
|
|
4913
4913
|
marginTop: "1rem"
|
|
4914
4914
|
},
|
|
4915
4915
|
children: /* @__PURE__ */ jsx17("div", {
|
|
4916
|
-
className: "
|
|
4916
|
+
className: "moonx-otp-content",
|
|
4917
4917
|
children: /* @__PURE__ */ jsxs11("div", {
|
|
4918
|
-
className: "
|
|
4918
|
+
className: "moonx-flex-col",
|
|
4919
4919
|
style: {
|
|
4920
4920
|
gap: "1rem"
|
|
4921
4921
|
},
|
|
4922
4922
|
children: [
|
|
4923
4923
|
/* @__PURE__ */ jsx17(Label, {
|
|
4924
|
-
htmlFor: "
|
|
4924
|
+
htmlFor: "moonx-email-input",
|
|
4925
4925
|
children: "Email address"
|
|
4926
4926
|
}),
|
|
4927
4927
|
/* @__PURE__ */ jsxs11("div", {
|
|
@@ -4930,13 +4930,13 @@ var EmailOtpInput = function EmailOtpInput(param) {
|
|
|
4930
4930
|
},
|
|
4931
4931
|
children: [
|
|
4932
4932
|
/* @__PURE__ */ jsx17("div", {
|
|
4933
|
-
className: "
|
|
4933
|
+
className: "moonx-input-icon--left",
|
|
4934
4934
|
children: /* @__PURE__ */ jsx17(Mail, {
|
|
4935
|
-
className: "
|
|
4935
|
+
className: "moonx-icon--md"
|
|
4936
4936
|
})
|
|
4937
4937
|
}),
|
|
4938
4938
|
/* @__PURE__ */ jsx17(Input, {
|
|
4939
|
-
id: "
|
|
4939
|
+
id: "moonx-email-input",
|
|
4940
4940
|
type: "email",
|
|
4941
4941
|
value: email,
|
|
4942
4942
|
onChange: function onChange(e) {
|
|
@@ -4950,7 +4950,7 @@ var EmailOtpInput = function EmailOtpInput(param) {
|
|
|
4950
4950
|
paddingRight: "5.3rem",
|
|
4951
4951
|
paddingTop: "0.75rem",
|
|
4952
4952
|
paddingBottom: "0.75rem",
|
|
4953
|
-
borderRadius: "var(--moonx-radius-input, var(--
|
|
4953
|
+
borderRadius: "var(--moonx-radius-input, var(--moonx-border-radius-lg))",
|
|
4954
4954
|
fontSize: "1rem"
|
|
4955
4955
|
},
|
|
4956
4956
|
required: true
|
|
@@ -4970,9 +4970,9 @@ var EmailOtpInput = function EmailOtpInput(param) {
|
|
|
4970
4970
|
size: "sm",
|
|
4971
4971
|
disabled: !isEmailValid || isProcessing,
|
|
4972
4972
|
children: isProcessing ? /* @__PURE__ */ jsxs11("svg", {
|
|
4973
|
-
className: "
|
|
4973
|
+
className: "moonx-icon--sm",
|
|
4974
4974
|
style: {
|
|
4975
|
-
animation: "
|
|
4975
|
+
animation: "moonx-spin 1s linear infinite"
|
|
4976
4976
|
},
|
|
4977
4977
|
fill: "none",
|
|
4978
4978
|
viewBox: "0 0 24 24",
|
|
@@ -5516,49 +5516,49 @@ var EmailOtpVerify = function EmailOtpVerify(param) {
|
|
|
5516
5516
|
appearance: config === null || config === void 0 ? void 0 : (_config_config4 = config.config) === null || _config_config4 === void 0 ? void 0 : _config_config4.appearance,
|
|
5517
5517
|
children: [
|
|
5518
5518
|
/* @__PURE__ */ jsx18("div", {
|
|
5519
|
-
className: "
|
|
5519
|
+
className: "moonx-back-btn",
|
|
5520
5520
|
children: /* @__PURE__ */ jsx18(Button, {
|
|
5521
5521
|
variant: "ghost",
|
|
5522
5522
|
size: "icon",
|
|
5523
5523
|
onClick: onBackPress,
|
|
5524
5524
|
disabled: isLoading,
|
|
5525
5525
|
children: /* @__PURE__ */ jsx18(ChevronLeft, {
|
|
5526
|
-
className: "
|
|
5526
|
+
className: "moonx-icon--md"
|
|
5527
5527
|
})
|
|
5528
5528
|
})
|
|
5529
5529
|
}),
|
|
5530
5530
|
/* @__PURE__ */ jsx18("div", {
|
|
5531
|
-
className: "
|
|
5531
|
+
className: "moonx-flex-col",
|
|
5532
5532
|
children: /* @__PURE__ */ jsxs12("div", {
|
|
5533
|
-
className: "
|
|
5533
|
+
className: "moonx-otp-content",
|
|
5534
5534
|
children: [
|
|
5535
5535
|
/* @__PURE__ */ jsx18("div", {
|
|
5536
|
-
className: "
|
|
5536
|
+
className: "moonx-flex-center",
|
|
5537
5537
|
children: /* @__PURE__ */ jsx18("div", {
|
|
5538
5538
|
style: {
|
|
5539
|
-
animation: "
|
|
5539
|
+
animation: "moonx-mail-slide-in 0.8s ease-out 0.4s both"
|
|
5540
5540
|
},
|
|
5541
5541
|
children: /* @__PURE__ */ jsx18(MailCheck, {
|
|
5542
|
-
className: "
|
|
5542
|
+
className: "moonx-icon--2xl moonx-icon--muted"
|
|
5543
5543
|
})
|
|
5544
5544
|
})
|
|
5545
5545
|
}),
|
|
5546
5546
|
/* @__PURE__ */ jsx18("div", {
|
|
5547
|
-
className: "
|
|
5547
|
+
className: "moonx-label moonx-text--lg moonx-text--center",
|
|
5548
5548
|
style: {
|
|
5549
5549
|
paddingTop: "1rem"
|
|
5550
5550
|
},
|
|
5551
5551
|
children: (config === null || config === void 0 ? void 0 : (_config_config5 = config.config) === null || _config_config5 === void 0 ? void 0 : (_config_config_emailConfig = _config_config5.emailConfig) === null || _config_config_emailConfig === void 0 ? void 0 : _config_config_emailConfig.verifyEmailTitle) || t("emailOtp.title")
|
|
5552
5552
|
}),
|
|
5553
5553
|
/* @__PURE__ */ jsxs12("div", {
|
|
5554
|
-
className: "
|
|
5554
|
+
className: "moonx-flex-col",
|
|
5555
5555
|
style: {
|
|
5556
5556
|
gap: "1.5rem",
|
|
5557
5557
|
paddingTop: "1.5rem"
|
|
5558
5558
|
},
|
|
5559
5559
|
children: [
|
|
5560
5560
|
/* @__PURE__ */ jsxs12("div", {
|
|
5561
|
-
className: "
|
|
5561
|
+
className: "moonx-text--secondary moonx-text--center",
|
|
5562
5562
|
style: {
|
|
5563
5563
|
paddingLeft: "2rem",
|
|
5564
5564
|
paddingRight: "2rem"
|
|
@@ -5567,7 +5567,7 @@ var EmailOtpVerify = function EmailOtpVerify(param) {
|
|
|
5567
5567
|
t("emailOtp.descriptionStart"),
|
|
5568
5568
|
" ",
|
|
5569
5569
|
/* @__PURE__ */ jsx18("span", {
|
|
5570
|
-
className: "
|
|
5570
|
+
className: "moonx-text--bold",
|
|
5571
5571
|
title: emailOtpSendResponse.email,
|
|
5572
5572
|
children: formatEmailDisplay(emailOtpSendResponse.email)
|
|
5573
5573
|
}),
|
|
@@ -5576,7 +5576,7 @@ var EmailOtpVerify = function EmailOtpVerify(param) {
|
|
|
5576
5576
|
]
|
|
5577
5577
|
}),
|
|
5578
5578
|
/* @__PURE__ */ jsx18("div", {
|
|
5579
|
-
className: "
|
|
5579
|
+
className: "moonx-flex-col-center",
|
|
5580
5580
|
style: {
|
|
5581
5581
|
paddingTop: "1rem",
|
|
5582
5582
|
paddingBottom: "1rem"
|
|
@@ -5590,7 +5590,7 @@ var EmailOtpVerify = function EmailOtpVerify(param) {
|
|
|
5590
5590
|
},
|
|
5591
5591
|
children: [
|
|
5592
5592
|
validationState === "success" && /* @__PURE__ */ jsxs12("div", {
|
|
5593
|
-
className: "
|
|
5593
|
+
className: "moonx-text--success",
|
|
5594
5594
|
style: {
|
|
5595
5595
|
textAlign: "right"
|
|
5596
5596
|
},
|
|
@@ -5616,7 +5616,7 @@ var EmailOtpVerify = function EmailOtpVerify(param) {
|
|
|
5616
5616
|
children: errorMessage
|
|
5617
5617
|
}),
|
|
5618
5618
|
canResend ? /* @__PURE__ */ jsxs12("div", {
|
|
5619
|
-
className: "
|
|
5619
|
+
className: "moonx-center-row",
|
|
5620
5620
|
children: [
|
|
5621
5621
|
/* @__PURE__ */ jsx18(Label, {
|
|
5622
5622
|
tone: "secondary",
|
|
@@ -5636,7 +5636,7 @@ var EmailOtpVerify = function EmailOtpVerify(param) {
|
|
|
5636
5636
|
},
|
|
5637
5637
|
children: [
|
|
5638
5638
|
/* @__PURE__ */ jsx18("span", {
|
|
5639
|
-
className: "
|
|
5639
|
+
className: "moonx-spinner moonx-spinner--sm"
|
|
5640
5640
|
}),
|
|
5641
5641
|
t("emailOtp.sending")
|
|
5642
5642
|
]
|
|
@@ -5680,7 +5680,7 @@ var AnimatedCheck = function AnimatedCheck(param) {
|
|
|
5680
5680
|
width: size,
|
|
5681
5681
|
height: size,
|
|
5682
5682
|
borderRadius: "50%",
|
|
5683
|
-
backgroundColor: "var(--
|
|
5683
|
+
backgroundColor: "var(--moonx-color-success)",
|
|
5684
5684
|
display: "flex",
|
|
5685
5685
|
alignItems: "center",
|
|
5686
5686
|
justifyContent: "center",
|
|
@@ -5762,7 +5762,7 @@ var EmailOtpVerified = function EmailOtpVerified(param) {
|
|
|
5762
5762
|
appearance: config === null || config === void 0 ? void 0 : (_config_config5 = config.config) === null || _config_config5 === void 0 ? void 0 : _config_config5.appearance,
|
|
5763
5763
|
children: /* @__PURE__ */ jsxs14("div", {
|
|
5764
5764
|
style: {
|
|
5765
|
-
animation: "
|
|
5765
|
+
animation: "moonx-verified-slide-in 0.4s ease-out 0.1s both"
|
|
5766
5766
|
},
|
|
5767
5767
|
children: [
|
|
5768
5768
|
/* @__PURE__ */ jsx20("div", {
|
|
@@ -5938,13 +5938,16 @@ var ExportKey = function ExportKey(param) {
|
|
|
5938
5938
|
url.searchParams.append("wallet_type", walletType);
|
|
5939
5939
|
url.searchParams.append("entropy_type", entropyType2);
|
|
5940
5940
|
url.searchParams.append("displayMode", isDark ? "dark" : "light");
|
|
5941
|
-
url.searchParams.append("user_handle_b64url", userHandleB64url);
|
|
5942
|
-
url.searchParams.append("credential_id_b64url", credentialIdB64url);
|
|
5943
|
-
url.searchParams.append("keyshare_read_token", keyshareReadToken);
|
|
5944
5941
|
var themeVars = buildThemeParams();
|
|
5945
5942
|
if (Object.keys(themeVars).length > 0) {
|
|
5946
5943
|
url.searchParams.append("theme", JSON.stringify(themeVars));
|
|
5947
5944
|
}
|
|
5945
|
+
var secrets = new URLSearchParams({
|
|
5946
|
+
user_handle_b64url: userHandleB64url,
|
|
5947
|
+
credential_id_b64url: credentialIdB64url,
|
|
5948
|
+
keyshare_read_token: keyshareReadToken
|
|
5949
|
+
});
|
|
5950
|
+
url.hash = secrets.toString();
|
|
5948
5951
|
return url.toString();
|
|
5949
5952
|
};
|
|
5950
5953
|
var getWallet = function getWallet() {
|
|
@@ -6129,13 +6132,13 @@ var ExportKey = function ExportKey(param) {
|
|
|
6129
6132
|
appearance: config === null || config === void 0 ? void 0 : (_config_config6 = config.config) === null || _config_config6 === void 0 ? void 0 : _config_config6.appearance,
|
|
6130
6133
|
children: [
|
|
6131
6134
|
/* @__PURE__ */ jsx22("div", {
|
|
6132
|
-
className: "
|
|
6135
|
+
className: "moonx-flow-close",
|
|
6133
6136
|
children: /* @__PURE__ */ jsx22(Button, {
|
|
6134
6137
|
variant: "ghost",
|
|
6135
6138
|
size: "icon",
|
|
6136
6139
|
onClick: onCancel,
|
|
6137
6140
|
children: /* @__PURE__ */ jsx22(X, {
|
|
6138
|
-
className: "
|
|
6141
|
+
className: "moonx-icon--sm"
|
|
6139
6142
|
})
|
|
6140
6143
|
})
|
|
6141
6144
|
}),
|
|
@@ -6144,28 +6147,28 @@ var ExportKey = function ExportKey(param) {
|
|
|
6144
6147
|
gap: "1rem",
|
|
6145
6148
|
padding: "1.5rem"
|
|
6146
6149
|
},
|
|
6147
|
-
className: "
|
|
6150
|
+
className: "moonx-flex-col-center moonx-text--center",
|
|
6148
6151
|
children: [
|
|
6149
6152
|
/* @__PURE__ */ jsx22("div", {
|
|
6150
6153
|
style: {
|
|
6151
6154
|
width: "3rem",
|
|
6152
6155
|
height: "3rem",
|
|
6153
6156
|
borderRadius: "50%",
|
|
6154
|
-
backgroundColor: "var(--
|
|
6157
|
+
backgroundColor: "var(--moonx-color-background-2)"
|
|
6155
6158
|
},
|
|
6156
|
-
className: "
|
|
6159
|
+
className: "moonx-flex-center",
|
|
6157
6160
|
children: /* @__PURE__ */ jsx22(ShieldOff, {
|
|
6158
|
-
className: "
|
|
6161
|
+
className: "moonx-icon--md moonx-icon--muted"
|
|
6159
6162
|
})
|
|
6160
6163
|
}),
|
|
6161
6164
|
/* @__PURE__ */ jsxs15("div", {
|
|
6162
6165
|
children: [
|
|
6163
6166
|
/* @__PURE__ */ jsx22("p", {
|
|
6164
|
-
className: "
|
|
6167
|
+
className: "moonx-text--title",
|
|
6165
6168
|
children: t("exportKey.notAvailable")
|
|
6166
6169
|
}),
|
|
6167
6170
|
/* @__PURE__ */ jsx22("p", {
|
|
6168
|
-
className: "
|
|
6171
|
+
className: "moonx-text--secondary",
|
|
6169
6172
|
style: {
|
|
6170
6173
|
paddingTop: "1rem"
|
|
6171
6174
|
},
|
|
@@ -6185,21 +6188,21 @@ var ExportKey = function ExportKey(param) {
|
|
|
6185
6188
|
appearance: config === null || config === void 0 ? void 0 : (_config_config4 = config.config) === null || _config_config4 === void 0 ? void 0 : _config_config4.appearance,
|
|
6186
6189
|
children: [
|
|
6187
6190
|
/* @__PURE__ */ jsx22("div", {
|
|
6188
|
-
className: "
|
|
6191
|
+
className: "moonx-flow-close",
|
|
6189
6192
|
children: /* @__PURE__ */ jsx22(Button, {
|
|
6190
6193
|
variant: "ghost",
|
|
6191
6194
|
size: "icon",
|
|
6192
6195
|
onClick: onCancel,
|
|
6193
6196
|
children: /* @__PURE__ */ jsx22(X, {
|
|
6194
|
-
className: "
|
|
6197
|
+
className: "moonx-icon--sm"
|
|
6195
6198
|
})
|
|
6196
6199
|
})
|
|
6197
6200
|
}),
|
|
6198
6201
|
/* @__PURE__ */ jsxs15("div", {
|
|
6199
|
-
className: "
|
|
6202
|
+
className: "moonx-flow-header",
|
|
6200
6203
|
children: [
|
|
6201
6204
|
/* @__PURE__ */ jsx22("p", {
|
|
6202
|
-
className: "
|
|
6205
|
+
className: "moonx-text--heading",
|
|
6203
6206
|
children: (_ref = uiConfig === null || uiConfig === void 0 ? void 0 : uiConfig.title) !== null && _ref !== void 0 ? _ref : /* @__PURE__ */ jsxs15(Fragment3, {
|
|
6204
6207
|
children: [
|
|
6205
6208
|
"Export ",
|
|
@@ -6215,7 +6218,7 @@ var ExportKey = function ExportKey(param) {
|
|
|
6215
6218
|
]
|
|
6216
6219
|
}),
|
|
6217
6220
|
/* @__PURE__ */ jsxs15("div", {
|
|
6218
|
-
className: "
|
|
6221
|
+
className: "moonx-flow-content",
|
|
6219
6222
|
children: [
|
|
6220
6223
|
/* @__PURE__ */ jsx22(ErrorBox, {
|
|
6221
6224
|
icon: WarningIcon,
|
|
@@ -6225,7 +6228,7 @@ var ExportKey = function ExportKey(param) {
|
|
|
6225
6228
|
children: (uiConfig === null || uiConfig === void 0 ? void 0 : uiConfig.neverShareDescription) || t("exportKey.neverShare")
|
|
6226
6229
|
}),
|
|
6227
6230
|
/* @__PURE__ */ jsx22("div", {
|
|
6228
|
-
className: "
|
|
6231
|
+
className: "moonx-box moonx-box--surface",
|
|
6229
6232
|
style: {
|
|
6230
6233
|
marginBottom: "1rem"
|
|
6231
6234
|
},
|
|
@@ -6243,7 +6246,7 @@ var ExportKey = function ExportKey(param) {
|
|
|
6243
6246
|
gap: "0.5rem",
|
|
6244
6247
|
marginTop: "0.5rem"
|
|
6245
6248
|
},
|
|
6246
|
-
className: "
|
|
6249
|
+
className: "moonx-flex-col",
|
|
6247
6250
|
children: [
|
|
6248
6251
|
/* @__PURE__ */ jsx22(Button, {
|
|
6249
6252
|
onClick: handleReveal,
|
|
@@ -6263,14 +6266,14 @@ var ExportKey = function ExportKey(param) {
|
|
|
6263
6266
|
},
|
|
6264
6267
|
children: [
|
|
6265
6268
|
/* @__PURE__ */ jsx22(KeyRound2, {
|
|
6266
|
-
className: "
|
|
6269
|
+
className: "moonx-icon--sm"
|
|
6267
6270
|
}),
|
|
6268
6271
|
"Reveal Key"
|
|
6269
6272
|
]
|
|
6270
6273
|
})
|
|
6271
6274
|
}),
|
|
6272
6275
|
revealError && /* @__PURE__ */ jsx22("p", {
|
|
6273
|
-
className: "
|
|
6276
|
+
className: "moonx-text--error moonx-text--center",
|
|
6274
6277
|
children: revealError
|
|
6275
6278
|
})
|
|
6276
6279
|
]
|
|
@@ -6280,12 +6283,15 @@ var ExportKey = function ExportKey(param) {
|
|
|
6280
6283
|
src: iframeUrl,
|
|
6281
6284
|
allow: "clipboard-write",
|
|
6282
6285
|
style: {
|
|
6283
|
-
width
|
|
6284
|
-
|
|
6285
|
-
|
|
6286
|
+
// Match the sibling content width (never-share warning, wallet
|
|
6287
|
+
// box) — both sit inside `.moonkey-flow-content`'s 0.5rem inline
|
|
6288
|
+
// padding. A previous `calc(100% + 1rem)` + negative margins
|
|
6289
|
+
// full-bled the iframe into that padding, so the revealed key
|
|
6290
|
+
// rendered ~1rem wider than the warning above it.
|
|
6291
|
+
width: "100%",
|
|
6286
6292
|
height: "180px",
|
|
6287
6293
|
border: "none",
|
|
6288
|
-
borderRadius: "var(--
|
|
6294
|
+
borderRadius: "var(--moonx-border-radius-lg)"
|
|
6289
6295
|
}
|
|
6290
6296
|
})
|
|
6291
6297
|
]
|
|
@@ -6303,7 +6309,7 @@ var FundingFailure = function FundingFailure(param) {
|
|
|
6303
6309
|
var _config_config, _config_config_appearance, _config_config1, _config_config_appearance1, _config_config2, _config_config3, _config_config4;
|
|
6304
6310
|
var isDark = propsIsDark !== void 0 ? propsIsDark : isDarkMode(config === null || config === void 0 ? void 0 : (_config_config = config.config) === null || _config_config === void 0 ? void 0 : _config_config.theme, config === null || config === void 0 ? void 0 : (_config_config1 = config.config) === null || _config_config1 === void 0 ? void 0 : (_config_config_appearance = _config_config1.appearance) === null || _config_config_appearance === void 0 ? void 0 : _config_config_appearance.displayMode, config === null || config === void 0 ? void 0 : (_config_config2 = config.config) === null || _config_config2 === void 0 ? void 0 : (_config_config_appearance1 = _config_config2.appearance) === null || _config_config_appearance1 === void 0 ? void 0 : _config_config_appearance1.backgroundColor);
|
|
6305
6311
|
return /* @__PURE__ */ jsx23("div", {
|
|
6306
|
-
className: "
|
|
6312
|
+
className: "moonx-flow-overlay",
|
|
6307
6313
|
children: /* @__PURE__ */ jsxs16(RootCard, {
|
|
6308
6314
|
centerContent: false,
|
|
6309
6315
|
isDark: isDark,
|
|
@@ -6311,42 +6317,42 @@ var FundingFailure = function FundingFailure(param) {
|
|
|
6311
6317
|
appearance: config === null || config === void 0 ? void 0 : (_config_config4 = config.config) === null || _config_config4 === void 0 ? void 0 : _config_config4.appearance,
|
|
6312
6318
|
children: [
|
|
6313
6319
|
/* @__PURE__ */ jsx23("div", {
|
|
6314
|
-
className: "
|
|
6320
|
+
className: "moonx-flex-center",
|
|
6315
6321
|
style: {
|
|
6316
6322
|
marginTop: "3rem"
|
|
6317
6323
|
},
|
|
6318
6324
|
children: /* @__PURE__ */ jsx23("div", {
|
|
6319
6325
|
style: {
|
|
6320
|
-
animation: "
|
|
6326
|
+
animation: "moonx-error-shake 0.5s ease-out 0.1s both"
|
|
6321
6327
|
},
|
|
6322
6328
|
children: /* @__PURE__ */ jsx23(XCircle, {
|
|
6323
|
-
className: "
|
|
6329
|
+
className: "moonx-icon--2xl moonx-icon--error"
|
|
6324
6330
|
})
|
|
6325
6331
|
})
|
|
6326
6332
|
}),
|
|
6327
6333
|
/* @__PURE__ */ jsx23("div", {
|
|
6328
|
-
className: "
|
|
6334
|
+
className: "moonx-text--lg moonx-text--semibold moonx-text--center",
|
|
6329
6335
|
style: {
|
|
6330
6336
|
paddingTop: "0.5rem"
|
|
6331
6337
|
},
|
|
6332
6338
|
children: "Funding Failed"
|
|
6333
6339
|
}),
|
|
6334
6340
|
/* @__PURE__ */ jsx23("div", {
|
|
6335
|
-
className: "
|
|
6341
|
+
className: "moonx-text--center",
|
|
6336
6342
|
style: {
|
|
6337
6343
|
paddingTop: "2.5rem",
|
|
6338
6344
|
paddingLeft: "0.5rem",
|
|
6339
6345
|
paddingRight: "0.5rem"
|
|
6340
6346
|
},
|
|
6341
6347
|
children: /* @__PURE__ */ jsx23("div", {
|
|
6342
|
-
className: "
|
|
6348
|
+
className: "moonx-text--secondary moonx-text--semibold",
|
|
6343
6349
|
children: "We couldn't complete your funding request. Please try again or contact support if the problem persists."
|
|
6344
6350
|
})
|
|
6345
6351
|
}),
|
|
6346
6352
|
/* @__PURE__ */ jsx23("div", {
|
|
6347
|
-
className: "
|
|
6353
|
+
className: "moonx-flow-footer",
|
|
6348
6354
|
children: /* @__PURE__ */ jsx23("div", {
|
|
6349
|
-
className: "
|
|
6355
|
+
className: "moonx-flow-footer__actions",
|
|
6350
6356
|
children: /* @__PURE__ */ jsx23(Button, {
|
|
6351
6357
|
onClick: onClose,
|
|
6352
6358
|
children: "Try Again"
|
|
@@ -6363,7 +6369,7 @@ import { jsx as jsx24, jsxs as jsxs17 } from "react/jsx-runtime";
|
|
|
6363
6369
|
var FundingOptionButton = function FundingOptionButton(param) {
|
|
6364
6370
|
var icon = param.icon, label = param.label, onClick = param.onClick;
|
|
6365
6371
|
return /* @__PURE__ */ jsx24("div", {
|
|
6366
|
-
className: "
|
|
6372
|
+
className: "moonx-wallet-item",
|
|
6367
6373
|
onClick: onClick,
|
|
6368
6374
|
children: /* @__PURE__ */ jsxs17("div", {
|
|
6369
6375
|
style: {
|
|
@@ -6380,7 +6386,7 @@ var FundingOptionButton = function FundingOptionButton(param) {
|
|
|
6380
6386
|
children: icon
|
|
6381
6387
|
}),
|
|
6382
6388
|
/* @__PURE__ */ jsx24("div", {
|
|
6383
|
-
className: "
|
|
6389
|
+
className: "moonx-text--sm",
|
|
6384
6390
|
children: label
|
|
6385
6391
|
})
|
|
6386
6392
|
]
|
|
@@ -6399,7 +6405,7 @@ var FundingSelection = function FundingSelection(param) {
|
|
|
6399
6405
|
children: /* @__PURE__ */ jsxs17("div", {
|
|
6400
6406
|
children: [
|
|
6401
6407
|
/* @__PURE__ */ jsxs17("div", {
|
|
6402
|
-
className: "
|
|
6408
|
+
className: "moonx-flex-between",
|
|
6403
6409
|
children: [
|
|
6404
6410
|
/* @__PURE__ */ jsx24(Button, {
|
|
6405
6411
|
variant: "ghost",
|
|
@@ -6409,11 +6415,11 @@ var FundingSelection = function FundingSelection(param) {
|
|
|
6409
6415
|
visibility: "hidden"
|
|
6410
6416
|
},
|
|
6411
6417
|
children: /* @__PURE__ */ jsx24(ArrowLeft, {
|
|
6412
|
-
className: "
|
|
6418
|
+
className: "moonx-icon--sm moonx-icon--fg"
|
|
6413
6419
|
})
|
|
6414
6420
|
}),
|
|
6415
6421
|
/* @__PURE__ */ jsx24("span", {
|
|
6416
|
-
className: "
|
|
6422
|
+
className: "moonx-text--title",
|
|
6417
6423
|
children: (uiConfig === null || uiConfig === void 0 ? void 0 : (_uiConfig_landing = uiConfig.landing) === null || _uiConfig_landing === void 0 ? void 0 : _uiConfig_landing.title) || "Add funds to your wallet"
|
|
6418
6424
|
}),
|
|
6419
6425
|
/* @__PURE__ */ jsx24(Button, {
|
|
@@ -6421,13 +6427,13 @@ var FundingSelection = function FundingSelection(param) {
|
|
|
6421
6427
|
size: "icon",
|
|
6422
6428
|
onClick: onClose,
|
|
6423
6429
|
children: /* @__PURE__ */ jsx24(X2, {
|
|
6424
|
-
className: "
|
|
6430
|
+
className: "moonx-icon--sm moonx-icon--fg"
|
|
6425
6431
|
})
|
|
6426
6432
|
})
|
|
6427
6433
|
]
|
|
6428
6434
|
}),
|
|
6429
6435
|
/* @__PURE__ */ jsxs17("div", {
|
|
6430
|
-
className: "
|
|
6436
|
+
className: "moonx-flex-col",
|
|
6431
6437
|
style: {
|
|
6432
6438
|
marginTop: "1rem",
|
|
6433
6439
|
gap: "0.5rem"
|
|
@@ -6435,7 +6441,7 @@ var FundingSelection = function FundingSelection(param) {
|
|
|
6435
6441
|
children: [
|
|
6436
6442
|
/* @__PURE__ */ jsx24(FundingOptionButton, {
|
|
6437
6443
|
icon: /* @__PURE__ */ jsx24(CreditCard, {
|
|
6438
|
-
className: "
|
|
6444
|
+
className: "moonx-icon--fg"
|
|
6439
6445
|
}),
|
|
6440
6446
|
label: "Pay with card",
|
|
6441
6447
|
onClick: function onClick() {
|
|
@@ -6444,7 +6450,7 @@ var FundingSelection = function FundingSelection(param) {
|
|
|
6444
6450
|
}),
|
|
6445
6451
|
/* @__PURE__ */ jsx24(FundingOptionButton, {
|
|
6446
6452
|
icon: /* @__PURE__ */ jsx24(QrCode, {
|
|
6447
|
-
className: "
|
|
6453
|
+
className: "moonx-icon--fg"
|
|
6448
6454
|
}),
|
|
6449
6455
|
label: "Receive funds",
|
|
6450
6456
|
onClick: function onClick() {
|
|
@@ -6465,7 +6471,7 @@ function FundingSuccess(param) {
|
|
|
6465
6471
|
var _config_config, _config_config_appearance, _config_config1, _config_config_appearance1, _config_config2, _config_config3, _config_config4;
|
|
6466
6472
|
var isDark = propsIsDark !== void 0 ? propsIsDark : isDarkMode(config === null || config === void 0 ? void 0 : (_config_config = config.config) === null || _config_config === void 0 ? void 0 : _config_config.theme, config === null || config === void 0 ? void 0 : (_config_config1 = config.config) === null || _config_config1 === void 0 ? void 0 : (_config_config_appearance = _config_config1.appearance) === null || _config_config_appearance === void 0 ? void 0 : _config_config_appearance.displayMode, config === null || config === void 0 ? void 0 : (_config_config2 = config.config) === null || _config_config2 === void 0 ? void 0 : (_config_config_appearance1 = _config_config2.appearance) === null || _config_config_appearance1 === void 0 ? void 0 : _config_config_appearance1.backgroundColor);
|
|
6467
6473
|
return /* @__PURE__ */ jsx25("div", {
|
|
6468
|
-
className: "
|
|
6474
|
+
className: "moonx-flow-overlay",
|
|
6469
6475
|
children: /* @__PURE__ */ jsxs18(RootCard, {
|
|
6470
6476
|
centerContent: false,
|
|
6471
6477
|
isDark: isDark,
|
|
@@ -6473,39 +6479,39 @@ function FundingSuccess(param) {
|
|
|
6473
6479
|
appearance: config === null || config === void 0 ? void 0 : (_config_config4 = config.config) === null || _config_config4 === void 0 ? void 0 : _config_config4.appearance,
|
|
6474
6480
|
children: [
|
|
6475
6481
|
/* @__PURE__ */ jsx25("div", {
|
|
6476
|
-
className: "
|
|
6482
|
+
className: "moonx-flex-center",
|
|
6477
6483
|
children: /* @__PURE__ */ jsx25("div", {
|
|
6478
6484
|
style: {
|
|
6479
|
-
animation: "
|
|
6485
|
+
animation: "moonx-success-bounce 0.8s ease-out 0.1s both"
|
|
6480
6486
|
},
|
|
6481
6487
|
children: /* @__PURE__ */ jsx25(CheckCircle22, {
|
|
6482
|
-
className: "
|
|
6488
|
+
className: "moonx-icon--2xl moonx-icon--success"
|
|
6483
6489
|
})
|
|
6484
6490
|
})
|
|
6485
6491
|
}),
|
|
6486
6492
|
/* @__PURE__ */ jsx25("div", {
|
|
6487
|
-
className: "
|
|
6493
|
+
className: "moonx-text--lg moonx-text--semibold moonx-text--center",
|
|
6488
6494
|
style: {
|
|
6489
6495
|
paddingTop: "3rem"
|
|
6490
6496
|
},
|
|
6491
6497
|
children: "Funding Successful"
|
|
6492
6498
|
}),
|
|
6493
6499
|
/* @__PURE__ */ jsx25("div", {
|
|
6494
|
-
className: "
|
|
6500
|
+
className: "moonx-text--center",
|
|
6495
6501
|
style: {
|
|
6496
6502
|
paddingTop: "2.5rem",
|
|
6497
6503
|
paddingLeft: "0.5rem",
|
|
6498
6504
|
paddingRight: "0.5rem"
|
|
6499
6505
|
},
|
|
6500
6506
|
children: /* @__PURE__ */ jsx25("div", {
|
|
6501
|
-
className: "
|
|
6507
|
+
className: "moonx-text--secondary moonx-text--semibold",
|
|
6502
6508
|
children: "Your wallet has been funded successfully. The funds should appear in your account shortly."
|
|
6503
6509
|
})
|
|
6504
6510
|
}),
|
|
6505
6511
|
/* @__PURE__ */ jsx25("div", {
|
|
6506
|
-
className: "
|
|
6512
|
+
className: "moonx-flow-footer",
|
|
6507
6513
|
children: /* @__PURE__ */ jsx25("div", {
|
|
6508
|
-
className: "
|
|
6514
|
+
className: "moonx-flow-footer__actions",
|
|
6509
6515
|
children: /* @__PURE__ */ jsx25(Button, {
|
|
6510
6516
|
onClick: onClose,
|
|
6511
6517
|
children: "Done"
|
|
@@ -6574,7 +6580,7 @@ var LoadingSpinner = function LoadingSpinner(param) {
|
|
|
6574
6580
|
position: "absolute",
|
|
6575
6581
|
inset: 0,
|
|
6576
6582
|
borderRadius: "50%",
|
|
6577
|
-
border: "4px solid var(--
|
|
6583
|
+
border: "4px solid var(--moonx-color-background-2)"
|
|
6578
6584
|
}
|
|
6579
6585
|
}),
|
|
6580
6586
|
/* @__PURE__ */ jsx26("div", {
|
|
@@ -6583,8 +6589,8 @@ var LoadingSpinner = function LoadingSpinner(param) {
|
|
|
6583
6589
|
inset: 0,
|
|
6584
6590
|
borderRadius: "50%",
|
|
6585
6591
|
border: "4px solid transparent",
|
|
6586
|
-
borderTopColor: "var(--
|
|
6587
|
-
animation: "
|
|
6592
|
+
borderTopColor: "var(--moonx-color-accent)",
|
|
6593
|
+
animation: "moonx-spin 1s linear infinite"
|
|
6588
6594
|
}
|
|
6589
6595
|
}),
|
|
6590
6596
|
(iconUrl || iconComponent) && /* @__PURE__ */ jsx26("div", {
|
|
@@ -6629,7 +6635,7 @@ var LoadingSpinner = function LoadingSpinner(param) {
|
|
|
6629
6635
|
}),
|
|
6630
6636
|
text && /* @__PURE__ */ jsx26("div", {
|
|
6631
6637
|
style: {
|
|
6632
|
-
color: "var(--
|
|
6638
|
+
color: "var(--moonx-color-foreground-3)",
|
|
6633
6639
|
fontSize: "0.875rem"
|
|
6634
6640
|
},
|
|
6635
6641
|
children: text
|
|
@@ -6836,7 +6842,7 @@ var PayWithCard = function PayWithCard(param) {
|
|
|
6836
6842
|
children: /* @__PURE__ */ jsxs20("div", {
|
|
6837
6843
|
children: [
|
|
6838
6844
|
/* @__PURE__ */ jsxs20("div", {
|
|
6839
|
-
className: "
|
|
6845
|
+
className: "moonx-flex-between",
|
|
6840
6846
|
style: {
|
|
6841
6847
|
marginBottom: "1.5rem"
|
|
6842
6848
|
},
|
|
@@ -6846,11 +6852,11 @@ var PayWithCard = function PayWithCard(param) {
|
|
|
6846
6852
|
size: "icon",
|
|
6847
6853
|
onClick: onClose,
|
|
6848
6854
|
children: /* @__PURE__ */ jsx27(ArrowLeft2, {
|
|
6849
|
-
className: "
|
|
6855
|
+
className: "moonx-icon--sm moonx-icon--fg"
|
|
6850
6856
|
})
|
|
6851
6857
|
}),
|
|
6852
6858
|
/* @__PURE__ */ jsx27("div", {
|
|
6853
|
-
className: "
|
|
6859
|
+
className: "moonx-text--title",
|
|
6854
6860
|
style: {
|
|
6855
6861
|
fontWeight: 600,
|
|
6856
6862
|
flex: 1,
|
|
@@ -6863,7 +6869,7 @@ var PayWithCard = function PayWithCard(param) {
|
|
|
6863
6869
|
size: "icon",
|
|
6864
6870
|
onClick: onClose,
|
|
6865
6871
|
children: /* @__PURE__ */ jsx27(X3, {
|
|
6866
|
-
className: "
|
|
6872
|
+
className: "moonx-icon--sm moonx-icon--fg"
|
|
6867
6873
|
})
|
|
6868
6874
|
})
|
|
6869
6875
|
]
|
|
@@ -6873,7 +6879,7 @@ var PayWithCard = function PayWithCard(param) {
|
|
|
6873
6879
|
gap: "1.5rem",
|
|
6874
6880
|
padding: "1rem"
|
|
6875
6881
|
},
|
|
6876
|
-
className: "
|
|
6882
|
+
className: "moonx-flex-col-center",
|
|
6877
6883
|
children: isLoading ? /* @__PURE__ */ jsxs20(Fragment4, {
|
|
6878
6884
|
children: [
|
|
6879
6885
|
/* @__PURE__ */ jsx27(LoadingSpinner, {
|
|
@@ -6881,7 +6887,7 @@ var PayWithCard = function PayWithCard(param) {
|
|
|
6881
6887
|
iconUrl: moonpay_default
|
|
6882
6888
|
}),
|
|
6883
6889
|
/* @__PURE__ */ jsx27("div", {
|
|
6884
|
-
className: "
|
|
6890
|
+
className: "moonx-text--secondary moonx-text--center",
|
|
6885
6891
|
style: {
|
|
6886
6892
|
maxWidth: "320px"
|
|
6887
6893
|
},
|
|
@@ -6891,7 +6897,7 @@ var PayWithCard = function PayWithCard(param) {
|
|
|
6891
6897
|
}) : popupBlocked ? /* @__PURE__ */ jsxs20(Fragment4, {
|
|
6892
6898
|
children: [
|
|
6893
6899
|
/* @__PURE__ */ jsx27("div", {
|
|
6894
|
-
className: "
|
|
6900
|
+
className: "moonx-icon--muted moonx-text--center",
|
|
6895
6901
|
style: {
|
|
6896
6902
|
fontSize: "1rem",
|
|
6897
6903
|
fontWeight: 700,
|
|
@@ -6900,7 +6906,7 @@ var PayWithCard = function PayWithCard(param) {
|
|
|
6900
6906
|
children: "Popup blocked"
|
|
6901
6907
|
}),
|
|
6902
6908
|
/* @__PURE__ */ jsx27("div", {
|
|
6903
|
-
className: "
|
|
6909
|
+
className: "moonx-text--secondary moonx-text--center",
|
|
6904
6910
|
style: {
|
|
6905
6911
|
maxWidth: "320px"
|
|
6906
6912
|
},
|
|
@@ -6913,7 +6919,7 @@ var PayWithCard = function PayWithCard(param) {
|
|
|
6913
6919
|
maxWidth: "320px",
|
|
6914
6920
|
marginTop: "1rem"
|
|
6915
6921
|
},
|
|
6916
|
-
className: "
|
|
6922
|
+
className: "moonx-flex-col",
|
|
6917
6923
|
children: [
|
|
6918
6924
|
/* @__PURE__ */ jsxs20(Button, {
|
|
6919
6925
|
onClick: handleManualOpen,
|
|
@@ -6921,7 +6927,7 @@ var PayWithCard = function PayWithCard(param) {
|
|
|
6921
6927
|
/* @__PURE__ */ jsx27(ExternalLink, {
|
|
6922
6928
|
size: 16,
|
|
6923
6929
|
style: {
|
|
6924
|
-
color: "var(--
|
|
6930
|
+
color: "var(--moonx-color-accent-foreground)"
|
|
6925
6931
|
}
|
|
6926
6932
|
}),
|
|
6927
6933
|
"Try Opening Again"
|
|
@@ -6942,7 +6948,7 @@ var PayWithCard = function PayWithCard(param) {
|
|
|
6942
6948
|
iconUrl: moonpay_default
|
|
6943
6949
|
}),
|
|
6944
6950
|
/* @__PURE__ */ jsx27("div", {
|
|
6945
|
-
className: "
|
|
6951
|
+
className: "moonx-text--secondary moonx-text--center",
|
|
6946
6952
|
style: {
|
|
6947
6953
|
maxWidth: "320px"
|
|
6948
6954
|
},
|
|
@@ -6954,7 +6960,7 @@ var PayWithCard = function PayWithCard(param) {
|
|
|
6954
6960
|
children: [
|
|
6955
6961
|
/* @__PURE__ */ jsx27(ExternalLink, {
|
|
6956
6962
|
size: 16,
|
|
6957
|
-
className: "
|
|
6963
|
+
className: "moonx-icon--fg"
|
|
6958
6964
|
}),
|
|
6959
6965
|
"Reopen Payment Window"
|
|
6960
6966
|
]
|
|
@@ -7054,12 +7060,12 @@ var GeneratedQRCode = function GeneratedQRCode(param) {
|
|
|
7054
7060
|
padding: "2rem"
|
|
7055
7061
|
};
|
|
7056
7062
|
var errorTextStyle = {
|
|
7057
|
-
color: "var(--
|
|
7063
|
+
color: "var(--moonx-color-error)",
|
|
7058
7064
|
fontSize: "0.875rem",
|
|
7059
7065
|
marginBottom: "0.5rem"
|
|
7060
7066
|
};
|
|
7061
7067
|
var errorDetailStyle = {
|
|
7062
|
-
color: "var(--
|
|
7068
|
+
color: "var(--moonx-color-foreground-3)",
|
|
7063
7069
|
fontSize: "0.75rem"
|
|
7064
7070
|
};
|
|
7065
7071
|
var containerStyle = {
|
|
@@ -7082,13 +7088,13 @@ var GeneratedQRCode = function GeneratedQRCode(param) {
|
|
|
7082
7088
|
borderRadius: "50%",
|
|
7083
7089
|
height: "3rem",
|
|
7084
7090
|
width: "3rem",
|
|
7085
|
-
borderBottom: "2px solid var(--
|
|
7091
|
+
borderBottom: "2px solid var(--moonx-color-accent)",
|
|
7086
7092
|
marginBottom: "1rem"
|
|
7087
7093
|
};
|
|
7088
7094
|
var loadingTextStyle = {
|
|
7089
7095
|
fontSize: "1.125rem",
|
|
7090
7096
|
fontWeight: 500,
|
|
7091
|
-
color: "var(--
|
|
7097
|
+
color: "var(--moonx-color-foreground)"
|
|
7092
7098
|
};
|
|
7093
7099
|
var qrContainerStyle = {
|
|
7094
7100
|
display: "flex",
|
|
@@ -7204,7 +7210,7 @@ var ReceiveFundsQRCode = function ReceiveFundsQRCode(param) {
|
|
|
7204
7210
|
};
|
|
7205
7211
|
var qrCodeUri = "".concat(walletType, ":").concat(walletAddress);
|
|
7206
7212
|
return /* @__PURE__ */ jsxs22("div", {
|
|
7207
|
-
className: "
|
|
7213
|
+
className: "moonx-flex-col-center",
|
|
7208
7214
|
style: {
|
|
7209
7215
|
position: "relative",
|
|
7210
7216
|
gap: "1rem"
|
|
@@ -7219,21 +7225,21 @@ var ReceiveFundsQRCode = function ReceiveFundsQRCode(param) {
|
|
|
7219
7225
|
height: 225
|
|
7220
7226
|
}),
|
|
7221
7227
|
/* @__PURE__ */ jsxs22("div", {
|
|
7222
|
-
className: "
|
|
7228
|
+
className: "moonx-flex-col-center",
|
|
7223
7229
|
style: {
|
|
7224
7230
|
gap: "0.5rem",
|
|
7225
7231
|
width: "100%"
|
|
7226
7232
|
},
|
|
7227
7233
|
children: [
|
|
7228
7234
|
/* @__PURE__ */ jsxs22("div", {
|
|
7229
|
-
className: "
|
|
7235
|
+
className: "moonx-flex-between",
|
|
7230
7236
|
style: {
|
|
7231
7237
|
width: "100%",
|
|
7232
7238
|
marginBottom: "0.5rem"
|
|
7233
7239
|
},
|
|
7234
7240
|
children: [
|
|
7235
7241
|
/* @__PURE__ */ jsxs22("div", {
|
|
7236
|
-
className: "
|
|
7242
|
+
className: "moonx-text--secondary moonx-text--semibold",
|
|
7237
7243
|
children: [
|
|
7238
7244
|
"Your ",
|
|
7239
7245
|
walletType === "solana" ? "Solana" : "Ethereum",
|
|
@@ -7243,10 +7249,10 @@ var ReceiveFundsQRCode = function ReceiveFundsQRCode(param) {
|
|
|
7243
7249
|
/* @__PURE__ */ jsx29("button", {
|
|
7244
7250
|
style: {
|
|
7245
7251
|
padding: "0.25rem 0.75rem",
|
|
7246
|
-
backgroundColor: isCopied ? "var(--
|
|
7252
|
+
backgroundColor: isCopied ? "var(--moonx-color-success)" : "var(--moonx-color-accent)",
|
|
7247
7253
|
color: "white",
|
|
7248
7254
|
border: "none",
|
|
7249
|
-
borderRadius: "var(--
|
|
7255
|
+
borderRadius: "var(--moonx-border-radius-md)",
|
|
7250
7256
|
fontSize: "0.75rem",
|
|
7251
7257
|
fontWeight: 500,
|
|
7252
7258
|
cursor: "pointer",
|
|
@@ -7258,12 +7264,12 @@ var ReceiveFundsQRCode = function ReceiveFundsQRCode(param) {
|
|
|
7258
7264
|
onClick: handleCopyAddress,
|
|
7259
7265
|
onMouseEnter: function onMouseEnter(e) {
|
|
7260
7266
|
if (!isCopied) {
|
|
7261
|
-
e.currentTarget.style.backgroundColor = "var(--
|
|
7267
|
+
e.currentTarget.style.backgroundColor = "var(--moonx-color-accent-dark)";
|
|
7262
7268
|
}
|
|
7263
7269
|
},
|
|
7264
7270
|
onMouseLeave: function onMouseLeave(e) {
|
|
7265
7271
|
if (!isCopied) {
|
|
7266
|
-
e.currentTarget.style.backgroundColor = "var(--
|
|
7272
|
+
e.currentTarget.style.backgroundColor = "var(--moonx-color-accent)";
|
|
7267
7273
|
}
|
|
7268
7274
|
},
|
|
7269
7275
|
children: isCopied ? /* @__PURE__ */ jsxs22(Fragment6, {
|
|
@@ -7317,10 +7323,10 @@ var ReceiveFundsQRCode = function ReceiveFundsQRCode(param) {
|
|
|
7317
7323
|
/* @__PURE__ */ jsx29("div", {
|
|
7318
7324
|
style: {
|
|
7319
7325
|
fontSize: "0.75rem",
|
|
7320
|
-
color: "var(--
|
|
7321
|
-
backgroundColor: "var(--
|
|
7326
|
+
color: "var(--moonx-color-foreground)",
|
|
7327
|
+
backgroundColor: "var(--moonx-color-background-2)",
|
|
7322
7328
|
padding: "0.5rem 0.75rem",
|
|
7323
|
-
borderRadius: "var(--
|
|
7329
|
+
borderRadius: "var(--moonx-border-radius-md)",
|
|
7324
7330
|
wordBreak: "break-all",
|
|
7325
7331
|
textAlign: "center",
|
|
7326
7332
|
width: "100%"
|
|
@@ -7356,7 +7362,7 @@ var ReceivedFunds = function ReceivedFunds(param) {
|
|
|
7356
7362
|
appearance: config === null || config === void 0 ? void 0 : (_config_config4 = config.config) === null || _config_config4 === void 0 ? void 0 : _config_config4.appearance,
|
|
7357
7363
|
children: [
|
|
7358
7364
|
/* @__PURE__ */ jsxs23("div", {
|
|
7359
|
-
className: "
|
|
7365
|
+
className: "moonx-flex-between",
|
|
7360
7366
|
style: {
|
|
7361
7367
|
marginBottom: "0.5rem"
|
|
7362
7368
|
},
|
|
@@ -7366,11 +7372,11 @@ var ReceivedFunds = function ReceivedFunds(param) {
|
|
|
7366
7372
|
size: "icon",
|
|
7367
7373
|
onClick: onClose,
|
|
7368
7374
|
children: /* @__PURE__ */ jsx30(ArrowLeft3, {
|
|
7369
|
-
className: "
|
|
7375
|
+
className: "moonx-icon--sm moonx-icon--fg"
|
|
7370
7376
|
})
|
|
7371
7377
|
}),
|
|
7372
7378
|
/* @__PURE__ */ jsx30("div", {
|
|
7373
|
-
className: "
|
|
7379
|
+
className: "moonx-text--title",
|
|
7374
7380
|
style: {
|
|
7375
7381
|
fontWeight: 600,
|
|
7376
7382
|
flex: 1
|
|
@@ -7382,13 +7388,13 @@ var ReceivedFunds = function ReceivedFunds(param) {
|
|
|
7382
7388
|
size: "icon",
|
|
7383
7389
|
onClick: onClose,
|
|
7384
7390
|
children: /* @__PURE__ */ jsx30(X4, {
|
|
7385
|
-
className: "
|
|
7391
|
+
className: "moonx-icon--sm moonx-icon--fg"
|
|
7386
7392
|
})
|
|
7387
7393
|
})
|
|
7388
7394
|
]
|
|
7389
7395
|
}),
|
|
7390
7396
|
isLoading ? /* @__PURE__ */ jsx30("div", {
|
|
7391
|
-
className: "
|
|
7397
|
+
className: "moonx-flex-col-center",
|
|
7392
7398
|
style: {
|
|
7393
7399
|
justifyContent: "center",
|
|
7394
7400
|
padding: "3rem",
|
|
@@ -7398,7 +7404,7 @@ var ReceivedFunds = function ReceivedFunds(param) {
|
|
|
7398
7404
|
children: "Loading wallet information..."
|
|
7399
7405
|
})
|
|
7400
7406
|
}) : error ? /* @__PURE__ */ jsxs23("div", {
|
|
7401
|
-
className: "
|
|
7407
|
+
className: "moonx-flex-col-center moonx-text--error",
|
|
7402
7408
|
style: {
|
|
7403
7409
|
justifyContent: "center",
|
|
7404
7410
|
padding: "3rem",
|
|
@@ -7417,13 +7423,13 @@ var ReceivedFunds = function ReceivedFunds(param) {
|
|
|
7417
7423
|
})
|
|
7418
7424
|
]
|
|
7419
7425
|
}) : /* @__PURE__ */ jsxs23("div", {
|
|
7420
|
-
className: "
|
|
7426
|
+
className: "moonx-flex-col-center",
|
|
7421
7427
|
style: {
|
|
7422
7428
|
padding: "0.5rem"
|
|
7423
7429
|
},
|
|
7424
7430
|
children: [
|
|
7425
7431
|
/* @__PURE__ */ jsx30("div", {
|
|
7426
|
-
className: "
|
|
7432
|
+
className: "moonx-text--secondary moonx-text--center",
|
|
7427
7433
|
style: {
|
|
7428
7434
|
overflow: "hidden",
|
|
7429
7435
|
textOverflow: "ellipsis",
|
|
@@ -7635,37 +7641,37 @@ var ImportWallet = function ImportWallet(param) {
|
|
|
7635
7641
|
appearance: config === null || config === void 0 ? void 0 : (_config_config4 = config.config) === null || _config_config4 === void 0 ? void 0 : _config_config4.appearance,
|
|
7636
7642
|
children: [
|
|
7637
7643
|
/* @__PURE__ */ jsx32("div", {
|
|
7638
|
-
className: "
|
|
7644
|
+
className: "moonx-flow-close",
|
|
7639
7645
|
children: /* @__PURE__ */ jsx32(Button, {
|
|
7640
7646
|
variant: "ghost",
|
|
7641
7647
|
size: "icon",
|
|
7642
7648
|
onClick: onCancel,
|
|
7643
7649
|
children: /* @__PURE__ */ jsx32(X5, {
|
|
7644
|
-
className: "
|
|
7650
|
+
className: "moonx-icon--sm"
|
|
7645
7651
|
})
|
|
7646
7652
|
})
|
|
7647
7653
|
}),
|
|
7648
7654
|
/* @__PURE__ */ jsxs24("div", {
|
|
7649
|
-
className: "
|
|
7655
|
+
className: "moonx-flow-header",
|
|
7650
7656
|
children: [
|
|
7651
7657
|
/* @__PURE__ */ jsx32("div", {
|
|
7652
|
-
className: "
|
|
7658
|
+
className: "moonx-text--heading",
|
|
7653
7659
|
children: title
|
|
7654
7660
|
}),
|
|
7655
7661
|
/* @__PURE__ */ jsx32("div", {
|
|
7656
|
-
className: "
|
|
7662
|
+
className: "moonx-text--secondary moonx-text--semibold",
|
|
7657
7663
|
children: description
|
|
7658
7664
|
})
|
|
7659
7665
|
]
|
|
7660
7666
|
}),
|
|
7661
7667
|
/* @__PURE__ */ jsxs24("div", {
|
|
7662
|
-
className: "
|
|
7668
|
+
className: "moonx-flow-content",
|
|
7663
7669
|
style: {
|
|
7664
7670
|
gap: "0.75rem"
|
|
7665
7671
|
},
|
|
7666
7672
|
children: [
|
|
7667
7673
|
/* @__PURE__ */ jsxs24("div", {
|
|
7668
|
-
className: "
|
|
7674
|
+
className: "moonx-flex-col",
|
|
7669
7675
|
style: {
|
|
7670
7676
|
gap: "0.5rem"
|
|
7671
7677
|
},
|
|
@@ -7682,7 +7688,7 @@ var ImportWallet = function ImportWallet(param) {
|
|
|
7682
7688
|
spellCheck: false,
|
|
7683
7689
|
autoComplete: "off",
|
|
7684
7690
|
disabled: submitting,
|
|
7685
|
-
className: "
|
|
7691
|
+
className: "moonx-mono-textarea"
|
|
7686
7692
|
})
|
|
7687
7693
|
]
|
|
7688
7694
|
}),
|
|
@@ -7701,7 +7707,7 @@ var ImportWallet = function ImportWallet(param) {
|
|
|
7701
7707
|
style: {
|
|
7702
7708
|
display: "block",
|
|
7703
7709
|
fontWeight: 500,
|
|
7704
|
-
color: "var(--
|
|
7710
|
+
color: "var(--moonx-color-foreground)"
|
|
7705
7711
|
},
|
|
7706
7712
|
children: successText
|
|
7707
7713
|
}),
|
|
@@ -7710,7 +7716,7 @@ var ImportWallet = function ImportWallet(param) {
|
|
|
7710
7716
|
display: "block",
|
|
7711
7717
|
fontFamily: "monospace",
|
|
7712
7718
|
fontSize: "0.75rem",
|
|
7713
|
-
color: "var(--
|
|
7719
|
+
color: "var(--moonx-color-foreground-3)",
|
|
7714
7720
|
wordBreak: "break-all"
|
|
7715
7721
|
},
|
|
7716
7722
|
children: importedWallet.public_address
|
|
@@ -7746,17 +7752,17 @@ var SocialLoginButton = function SocialLoginButton(param) {
|
|
|
7746
7752
|
var icon = param.icon, text = param.text, provider = param.provider, onSocialLoginClick = param.onSocialLoginClick;
|
|
7747
7753
|
var _useState23 = _sliced_to_array(useState23(false), 2), isHovered = _useState23[0], setIsHovered = _useState23[1];
|
|
7748
7754
|
var buttonStyle = {
|
|
7749
|
-
borderRadius: "var(--moonx-radius-button, var(--
|
|
7755
|
+
borderRadius: "var(--moonx-radius-button, var(--moonx-border-radius-lg))",
|
|
7750
7756
|
borderWidth: "var(--moonx-button-border-width, 1px)",
|
|
7751
7757
|
borderStyle: "solid",
|
|
7752
|
-
borderColor: isHovered ? "var(--moonx-button-border-color-hover, var(--
|
|
7753
|
-
color: "var(--moonx-button-fg, var(--
|
|
7758
|
+
borderColor: isHovered ? "var(--moonx-button-border-color-hover, var(--moonx-color-accent))" : "var(--moonx-button-border-color, var(--moonx-color-border))",
|
|
7759
|
+
color: "var(--moonx-button-fg, var(--moonx-color-foreground))",
|
|
7754
7760
|
paddingTop: "0.75rem",
|
|
7755
7761
|
paddingBottom: "0.75rem",
|
|
7756
7762
|
paddingLeft: "0.25rem",
|
|
7757
7763
|
paddingRight: "0.25rem",
|
|
7758
7764
|
cursor: "pointer",
|
|
7759
|
-
backgroundColor: isHovered ? "var(--moonx-button-bg-hover, var(--
|
|
7765
|
+
backgroundColor: isHovered ? "var(--moonx-button-bg-hover, var(--moonx-color-background-2))" : "var(--moonx-button-bg, transparent)",
|
|
7760
7766
|
marginTop: "0.75rem",
|
|
7761
7767
|
transition: "all 0.2s ease-in-out"
|
|
7762
7768
|
};
|
|
@@ -7780,7 +7786,7 @@ var SocialLoginButton = function SocialLoginButton(param) {
|
|
|
7780
7786
|
}
|
|
7781
7787
|
}),
|
|
7782
7788
|
/* @__PURE__ */ jsx33("div", {
|
|
7783
|
-
className: cx("
|
|
7789
|
+
className: cx("moonx-social-login-button"),
|
|
7784
7790
|
style: buttonStyle,
|
|
7785
7791
|
onMouseEnter: function onMouseEnter() {
|
|
7786
7792
|
return setIsHovered(true);
|
|
@@ -7824,7 +7830,7 @@ var AppleLogin = function AppleLogin(param) {
|
|
|
7824
7830
|
children: /* @__PURE__ */ jsx34("path", {
|
|
7825
7831
|
d: "M18.71 19.5c-.83 1.24-1.71 2.45-3.05 2.47-1.34.03-1.77-.79-3.29-.79-1.53 0-2 .77-3.27.82-1.31.05-2.3-1.32-3.14-2.53C4.25 17 2.94 12.45 4.7 9.39c.87-1.52 2.43-2.48 4.12-2.51 1.28-.02 2.5.87 3.29.87.78 0 2.26-1.07 3.81-.91.65.03 2.47.26 3.64 1.98-.09.06-2.17 1.28-2.15 3.81.03 3.02 2.65 4.03 2.68 4.04-.03.07-.42 1.44-1.38 2.83M13 3.5c.73-.83 1.94-1.46 2.94-1.5.13 1.17-.34 2.35-1.04 3.19-.69.85-1.83 1.51-2.95 1.42-.15-1.15.41-2.35 1.05-3.11z",
|
|
7826
7832
|
transform: "translate(-2, -2)",
|
|
7827
|
-
fill: "var(--
|
|
7833
|
+
fill: "var(--moonx-color-foreground, #000)"
|
|
7828
7834
|
})
|
|
7829
7835
|
});
|
|
7830
7836
|
return /* @__PURE__ */ jsx34(SocialLoginButton, {
|
|
@@ -7877,12 +7883,12 @@ import { jsx as jsx36, jsxs as jsxs27 } from "react/jsx-runtime";
|
|
|
7877
7883
|
var ConnectSolanaWalletButton = function ConnectSolanaWalletButton(param) {
|
|
7878
7884
|
var onConnectWalletClick = param.onConnectWalletClick;
|
|
7879
7885
|
return /* @__PURE__ */ jsx36("div", {
|
|
7880
|
-
className: cx("
|
|
7886
|
+
className: cx("moonx-external-wallet-btn", "moonx-connect-solana-wallet-button"),
|
|
7881
7887
|
onClick: function onClick() {
|
|
7882
7888
|
return onConnectWalletClick();
|
|
7883
7889
|
},
|
|
7884
7890
|
children: /* @__PURE__ */ jsxs27("div", {
|
|
7885
|
-
className: "
|
|
7891
|
+
className: "moonx-external-wallet-btn__inner",
|
|
7886
7892
|
children: [
|
|
7887
7893
|
/* @__PURE__ */ jsx36("div", {
|
|
7888
7894
|
style: {
|
|
@@ -7906,12 +7912,12 @@ import { jsx as jsx37, jsxs as jsxs28 } from "react/jsx-runtime";
|
|
|
7906
7912
|
var ConnectEthereumWalletButton = function ConnectEthereumWalletButton(param) {
|
|
7907
7913
|
var onWalletConnectClick = param.onWalletConnectClick;
|
|
7908
7914
|
return /* @__PURE__ */ jsx37("div", {
|
|
7909
|
-
className: "
|
|
7915
|
+
className: "moonx-external-wallet-btn",
|
|
7910
7916
|
onClick: function onClick() {
|
|
7911
7917
|
return onWalletConnectClick();
|
|
7912
7918
|
},
|
|
7913
7919
|
children: /* @__PURE__ */ jsxs28("div", {
|
|
7914
|
-
className: "
|
|
7920
|
+
className: "moonx-external-wallet-btn__inner",
|
|
7915
7921
|
children: [
|
|
7916
7922
|
/* @__PURE__ */ jsx37("div", {
|
|
7917
7923
|
style: {
|
|
@@ -9364,7 +9370,7 @@ var BrowserExtensionUI = function BrowserExtensionUI(param) {
|
|
|
9364
9370
|
width: "5rem",
|
|
9365
9371
|
height: "5rem",
|
|
9366
9372
|
borderRadius: "50%",
|
|
9367
|
-
border: "4px solid var(--
|
|
9373
|
+
border: "4px solid var(--moonx-color-border)"
|
|
9368
9374
|
};
|
|
9369
9375
|
var spinnerInnerStyles = {
|
|
9370
9376
|
position: "absolute",
|
|
@@ -9373,7 +9379,7 @@ var BrowserExtensionUI = function BrowserExtensionUI(param) {
|
|
|
9373
9379
|
height: "5rem",
|
|
9374
9380
|
borderRadius: "50%",
|
|
9375
9381
|
border: "4px solid transparent",
|
|
9376
|
-
borderTopColor: "var(--
|
|
9382
|
+
borderTopColor: "var(--moonx-color-accent)",
|
|
9377
9383
|
animation: "spin 1s linear infinite"
|
|
9378
9384
|
};
|
|
9379
9385
|
var errorRingStyles = {
|
|
@@ -9382,7 +9388,7 @@ var BrowserExtensionUI = function BrowserExtensionUI(param) {
|
|
|
9382
9388
|
width: "5rem",
|
|
9383
9389
|
height: "5rem",
|
|
9384
9390
|
borderRadius: "50%",
|
|
9385
|
-
border: "4px solid var(--
|
|
9391
|
+
border: "4px solid var(--moonx-color-error)"
|
|
9386
9392
|
};
|
|
9387
9393
|
var iconInnerContainerStyles = {
|
|
9388
9394
|
position: "absolute",
|
|
@@ -9395,7 +9401,7 @@ var BrowserExtensionUI = function BrowserExtensionUI(param) {
|
|
|
9395
9401
|
width: "3rem",
|
|
9396
9402
|
height: "3rem",
|
|
9397
9403
|
borderRadius: "50%",
|
|
9398
|
-
backgroundColor: "var(--
|
|
9404
|
+
backgroundColor: "var(--moonx-color-background-2)",
|
|
9399
9405
|
display: "flex",
|
|
9400
9406
|
alignItems: "center",
|
|
9401
9407
|
justifyContent: "center"
|
|
@@ -9408,7 +9414,7 @@ var BrowserExtensionUI = function BrowserExtensionUI(param) {
|
|
|
9408
9414
|
width: "4rem",
|
|
9409
9415
|
height: "4rem",
|
|
9410
9416
|
borderRadius: "50%",
|
|
9411
|
-
backgroundColor: "var(--
|
|
9417
|
+
backgroundColor: "var(--moonx-color-background-2)",
|
|
9412
9418
|
display: "flex",
|
|
9413
9419
|
alignItems: "center",
|
|
9414
9420
|
justifyContent: "center"
|
|
@@ -9424,12 +9430,12 @@ var BrowserExtensionUI = function BrowserExtensionUI(param) {
|
|
|
9424
9430
|
var titleStyles = {
|
|
9425
9431
|
fontSize: "1.125rem",
|
|
9426
9432
|
fontWeight: 500,
|
|
9427
|
-
color: "var(--
|
|
9433
|
+
color: "var(--moonx-color-foreground)",
|
|
9428
9434
|
marginBottom: "0.5rem"
|
|
9429
9435
|
};
|
|
9430
9436
|
var descriptionStyles = {
|
|
9431
9437
|
fontSize: "0.875rem",
|
|
9432
|
-
color: "var(--
|
|
9438
|
+
color: "var(--moonx-color-foreground-3)"
|
|
9433
9439
|
};
|
|
9434
9440
|
var contentContainerStyles = {
|
|
9435
9441
|
textAlign: "center",
|
|
@@ -9438,24 +9444,24 @@ var BrowserExtensionUI = function BrowserExtensionUI(param) {
|
|
|
9438
9444
|
};
|
|
9439
9445
|
var successDescriptionStyles = {
|
|
9440
9446
|
fontSize: "0.875rem",
|
|
9441
|
-
color: "var(--
|
|
9447
|
+
color: "var(--moonx-color-foreground-3)",
|
|
9442
9448
|
marginBottom: "1rem"
|
|
9443
9449
|
};
|
|
9444
9450
|
var addressStyles = {
|
|
9445
9451
|
fontSize: "0.75rem",
|
|
9446
|
-
color: "var(--
|
|
9452
|
+
color: "var(--moonx-color-foreground-3)",
|
|
9447
9453
|
fontFamily: "monospace",
|
|
9448
|
-
backgroundColor: "var(--
|
|
9454
|
+
backgroundColor: "var(--moonx-color-background-2)",
|
|
9449
9455
|
padding: "0.5rem 0.75rem",
|
|
9450
|
-
borderRadius: "var(--
|
|
9456
|
+
borderRadius: "var(--moonx-border-radius-md)"
|
|
9451
9457
|
};
|
|
9452
9458
|
var errorBoxStyles = {
|
|
9453
9459
|
fontSize: "0.875rem",
|
|
9454
|
-
color: "var(--
|
|
9460
|
+
color: "var(--moonx-color-error)",
|
|
9455
9461
|
marginBottom: "1rem",
|
|
9456
9462
|
padding: "0.75rem 1rem",
|
|
9457
|
-
backgroundColor: "var(--
|
|
9458
|
-
borderRadius: "var(--
|
|
9463
|
+
backgroundColor: "var(--moonx-color-background-2)",
|
|
9464
|
+
borderRadius: "var(--moonx-border-radius-md)"
|
|
9459
9465
|
};
|
|
9460
9466
|
var buttonContainerStyles = {
|
|
9461
9467
|
display: "flex",
|
|
@@ -9466,7 +9472,7 @@ var BrowserExtensionUI = function BrowserExtensionUI(param) {
|
|
|
9466
9472
|
bottom: 0,
|
|
9467
9473
|
left: 0,
|
|
9468
9474
|
right: 0,
|
|
9469
|
-
backgroundColor: "var(--
|
|
9475
|
+
backgroundColor: "var(--moonx-color-background)",
|
|
9470
9476
|
paddingTop: "1rem",
|
|
9471
9477
|
paddingBottom: "3rem",
|
|
9472
9478
|
marginBottom: "0.125rem",
|
|
@@ -9474,8 +9480,8 @@ var BrowserExtensionUI = function BrowserExtensionUI(param) {
|
|
|
9474
9480
|
marginRight: "0.125rem",
|
|
9475
9481
|
paddingLeft: "2rem",
|
|
9476
9482
|
paddingRight: "2rem",
|
|
9477
|
-
borderBottomLeftRadius: "var(--
|
|
9478
|
-
borderBottomRightRadius: "var(--
|
|
9483
|
+
borderBottomLeftRadius: "var(--moonx-border-radius-lg)",
|
|
9484
|
+
borderBottomRightRadius: "var(--moonx-border-radius-lg)"
|
|
9479
9485
|
};
|
|
9480
9486
|
var primaryButtonStyles = {
|
|
9481
9487
|
flex: 1,
|
|
@@ -9483,9 +9489,9 @@ var BrowserExtensionUI = function BrowserExtensionUI(param) {
|
|
|
9483
9489
|
paddingBottom: "0.75rem",
|
|
9484
9490
|
paddingLeft: "1rem",
|
|
9485
9491
|
paddingRight: "1rem",
|
|
9486
|
-
backgroundColor: isTryAgainHovered ? "var(--
|
|
9487
|
-
border: "1px solid var(--
|
|
9488
|
-
borderRadius: "var(--
|
|
9492
|
+
backgroundColor: isTryAgainHovered ? "var(--moonx-color-accent-dark)" : "var(--moonx-color-accent)",
|
|
9493
|
+
border: "1px solid var(--moonx-color-border)",
|
|
9494
|
+
borderRadius: "var(--moonx-border-radius-lg)",
|
|
9489
9495
|
color: "white",
|
|
9490
9496
|
transition: "background-color 0.2s",
|
|
9491
9497
|
cursor: "pointer",
|
|
@@ -9494,10 +9500,10 @@ var BrowserExtensionUI = function BrowserExtensionUI(param) {
|
|
|
9494
9500
|
var successButtonStyles = {
|
|
9495
9501
|
width: "100%",
|
|
9496
9502
|
padding: "0.75rem 1.5rem",
|
|
9497
|
-
backgroundColor: "var(--
|
|
9503
|
+
backgroundColor: "var(--moonx-color-success)",
|
|
9498
9504
|
color: "#ffffff",
|
|
9499
9505
|
border: "none",
|
|
9500
|
-
borderRadius: "var(--
|
|
9506
|
+
borderRadius: "var(--moonx-border-radius-md)",
|
|
9501
9507
|
fontSize: "0.875rem",
|
|
9502
9508
|
fontWeight: 500,
|
|
9503
9509
|
cursor: "pointer",
|
|
@@ -9506,10 +9512,10 @@ var BrowserExtensionUI = function BrowserExtensionUI(param) {
|
|
|
9506
9512
|
var secondaryButtonStyles = {
|
|
9507
9513
|
width: "100%",
|
|
9508
9514
|
padding: "0.75rem 1.5rem",
|
|
9509
|
-
backgroundColor: isBackHovered ? "var(--
|
|
9510
|
-
color: "var(--
|
|
9515
|
+
backgroundColor: isBackHovered ? "var(--moonx-color-accent-dark)" : "var(--moonx-color-accent)",
|
|
9516
|
+
color: "var(--moonx-color-accent-foreground)",
|
|
9511
9517
|
border: "none",
|
|
9512
|
-
borderRadius: "var(--
|
|
9518
|
+
borderRadius: "var(--moonx-border-radius-md)",
|
|
9513
9519
|
fontSize: "0.875rem",
|
|
9514
9520
|
fontWeight: 500,
|
|
9515
9521
|
cursor: "pointer",
|
|
@@ -9857,7 +9863,7 @@ var QRCodeUI = function QRCodeUI(param) {
|
|
|
9857
9863
|
};
|
|
9858
9864
|
var subtitleStyle = {
|
|
9859
9865
|
fontSize: "0.875rem",
|
|
9860
|
-
color: "var(--
|
|
9866
|
+
color: "var(--moonx-color-foreground-3)"
|
|
9861
9867
|
};
|
|
9862
9868
|
var stateContainerStyle = {
|
|
9863
9869
|
display: "flex",
|
|
@@ -9891,7 +9897,7 @@ var QRCodeUI = function QRCodeUI(param) {
|
|
|
9891
9897
|
width: "5rem",
|
|
9892
9898
|
height: "5rem",
|
|
9893
9899
|
borderRadius: "50%",
|
|
9894
|
-
border: "4px solid var(--
|
|
9900
|
+
border: "4px solid var(--moonx-color-border)"
|
|
9895
9901
|
};
|
|
9896
9902
|
var spinnerAnimStyle = {
|
|
9897
9903
|
position: "absolute",
|
|
@@ -9900,7 +9906,7 @@ var QRCodeUI = function QRCodeUI(param) {
|
|
|
9900
9906
|
height: "5rem",
|
|
9901
9907
|
borderRadius: "50%",
|
|
9902
9908
|
border: "4px solid transparent",
|
|
9903
|
-
borderTopColor: "var(--
|
|
9909
|
+
borderTopColor: "var(--moonx-color-accent)",
|
|
9904
9910
|
animation: "spin 1s linear infinite"
|
|
9905
9911
|
};
|
|
9906
9912
|
var spinnerCenterStyle = {
|
|
@@ -9914,7 +9920,7 @@ var QRCodeUI = function QRCodeUI(param) {
|
|
|
9914
9920
|
width: "3rem",
|
|
9915
9921
|
height: "3rem",
|
|
9916
9922
|
borderRadius: "50%",
|
|
9917
|
-
backgroundColor: "var(--
|
|
9923
|
+
backgroundColor: "var(--moonx-color-background-2)",
|
|
9918
9924
|
display: "flex",
|
|
9919
9925
|
alignItems: "center",
|
|
9920
9926
|
justifyContent: "center"
|
|
@@ -9930,18 +9936,18 @@ var QRCodeUI = function QRCodeUI(param) {
|
|
|
9930
9936
|
var textLgStyle = {
|
|
9931
9937
|
fontSize: "1.125rem",
|
|
9932
9938
|
fontWeight: 500,
|
|
9933
|
-
color: "var(--
|
|
9939
|
+
color: "var(--moonx-color-foreground)",
|
|
9934
9940
|
marginBottom: "0.5rem"
|
|
9935
9941
|
};
|
|
9936
9942
|
var textSmStyle = {
|
|
9937
9943
|
fontSize: "0.875rem",
|
|
9938
|
-
color: "var(--
|
|
9944
|
+
color: "var(--moonx-color-foreground-3)"
|
|
9939
9945
|
};
|
|
9940
9946
|
var successIconStyle = {
|
|
9941
9947
|
borderRadius: "50%",
|
|
9942
9948
|
height: "3rem",
|
|
9943
9949
|
width: "3rem",
|
|
9944
|
-
backgroundColor: "var(--
|
|
9950
|
+
backgroundColor: "var(--moonx-color-background-2)",
|
|
9945
9951
|
display: "flex",
|
|
9946
9952
|
alignItems: "center",
|
|
9947
9953
|
justifyContent: "center",
|
|
@@ -9951,11 +9957,11 @@ var QRCodeUI = function QRCodeUI(param) {
|
|
|
9951
9957
|
borderRadius: "50%",
|
|
9952
9958
|
height: "2rem",
|
|
9953
9959
|
width: "2rem",
|
|
9954
|
-
backgroundColor: "var(--
|
|
9960
|
+
backgroundColor: "var(--moonx-color-success)"
|
|
9955
9961
|
};
|
|
9956
9962
|
var accountStyle = {
|
|
9957
9963
|
fontSize: "0.875rem",
|
|
9958
|
-
color: "var(--
|
|
9964
|
+
color: "var(--moonx-color-foreground-3)",
|
|
9959
9965
|
marginTop: "0.5rem",
|
|
9960
9966
|
fontFamily: "monospace"
|
|
9961
9967
|
};
|
|
@@ -9965,18 +9971,18 @@ var QRCodeUI = function QRCodeUI(param) {
|
|
|
9965
9971
|
width: "5rem",
|
|
9966
9972
|
height: "5rem",
|
|
9967
9973
|
borderRadius: "50%",
|
|
9968
|
-
border: "4px solid var(--
|
|
9974
|
+
border: "4px solid var(--moonx-color-error)"
|
|
9969
9975
|
};
|
|
9970
9976
|
var errorMessageStyle = {
|
|
9971
9977
|
fontSize: "0.875rem",
|
|
9972
|
-
color: "var(--
|
|
9978
|
+
color: "var(--moonx-color-error)",
|
|
9973
9979
|
marginBottom: "1rem",
|
|
9974
9980
|
paddingLeft: "1rem",
|
|
9975
9981
|
paddingRight: "1rem",
|
|
9976
9982
|
paddingTop: "0.75rem",
|
|
9977
9983
|
paddingBottom: "0.75rem",
|
|
9978
|
-
backgroundColor: "var(--
|
|
9979
|
-
borderRadius: "var(--
|
|
9984
|
+
backgroundColor: "var(--moonx-color-background-2)",
|
|
9985
|
+
borderRadius: "var(--moonx-border-radius-lg)"
|
|
9980
9986
|
};
|
|
9981
9987
|
return /* @__PURE__ */ jsxs30(Fragment8, {
|
|
9982
9988
|
children: [
|
|
@@ -10183,7 +10189,7 @@ var WalletConnectionUI = function WalletConnectionUI(param) {
|
|
|
10183
10189
|
var spacerStyles = {
|
|
10184
10190
|
fontSize: "1.125rem",
|
|
10185
10191
|
fontWeight: 500,
|
|
10186
|
-
color: "var(--
|
|
10192
|
+
color: "var(--moonx-color-foreground)"
|
|
10187
10193
|
};
|
|
10188
10194
|
var deepLinkContainerStyles = {
|
|
10189
10195
|
display: "flex",
|
|
@@ -10191,8 +10197,8 @@ var WalletConnectionUI = function WalletConnectionUI(param) {
|
|
|
10191
10197
|
alignItems: "center",
|
|
10192
10198
|
gap: "1.5rem",
|
|
10193
10199
|
padding: "1.5rem",
|
|
10194
|
-
backgroundColor: "var(--
|
|
10195
|
-
borderRadius: "var(--
|
|
10200
|
+
backgroundColor: "var(--moonx-color-background)",
|
|
10201
|
+
borderRadius: "var(--moonx-border-radius-md)",
|
|
10196
10202
|
boxShadow: "0 10px 15px -3px rgb(0 0 0 / 0.1)"
|
|
10197
10203
|
};
|
|
10198
10204
|
var walletImageStyles = {
|
|
@@ -10208,19 +10214,19 @@ var WalletConnectionUI = function WalletConnectionUI(param) {
|
|
|
10208
10214
|
fontSize: "1.25rem",
|
|
10209
10215
|
fontWeight: 600,
|
|
10210
10216
|
marginBottom: "0.5rem",
|
|
10211
|
-
color: "var(--
|
|
10217
|
+
color: "var(--moonx-color-foreground)"
|
|
10212
10218
|
};
|
|
10213
10219
|
var descriptionStyles = {
|
|
10214
10220
|
fontSize: "0.875rem",
|
|
10215
|
-
color: "var(--
|
|
10221
|
+
color: "var(--moonx-color-foreground-3)"
|
|
10216
10222
|
};
|
|
10217
10223
|
var deepLinkButtonStyles = {
|
|
10218
10224
|
width: "100%",
|
|
10219
10225
|
padding: "1rem 1.5rem",
|
|
10220
|
-
backgroundColor: isDeepLinkHovered ? "var(--
|
|
10221
|
-
color: "var(--
|
|
10226
|
+
backgroundColor: isDeepLinkHovered ? "var(--moonx-color-accent-dark)" : "var(--moonx-color-accent)",
|
|
10227
|
+
color: "var(--moonx-color-accent-foreground)",
|
|
10222
10228
|
border: "none",
|
|
10223
|
-
borderRadius: "var(--
|
|
10229
|
+
borderRadius: "var(--moonx-border-radius-md)",
|
|
10224
10230
|
fontSize: "0.875rem",
|
|
10225
10231
|
fontWeight: 500,
|
|
10226
10232
|
cursor: "pointer",
|
|
@@ -10233,12 +10239,12 @@ var WalletConnectionUI = function WalletConnectionUI(param) {
|
|
|
10233
10239
|
var infoBoxStyles = {
|
|
10234
10240
|
width: "100%",
|
|
10235
10241
|
padding: "1rem",
|
|
10236
|
-
backgroundColor: "var(--
|
|
10237
|
-
borderRadius: "var(--
|
|
10242
|
+
backgroundColor: "var(--moonx-color-accent)",
|
|
10243
|
+
borderRadius: "var(--moonx-border-radius-md)"
|
|
10238
10244
|
};
|
|
10239
10245
|
var infoTextStyles = {
|
|
10240
10246
|
fontSize: "0.75rem",
|
|
10241
|
-
color: "var(--
|
|
10247
|
+
color: "var(--moonx-color-accent-foreground)",
|
|
10242
10248
|
textAlign: "center"
|
|
10243
10249
|
};
|
|
10244
10250
|
return /* @__PURE__ */ jsx41(RootCard, {
|
|
@@ -10392,10 +10398,10 @@ var WalletCard = function WalletCard(param) {
|
|
|
10392
10398
|
gap: "0.5rem",
|
|
10393
10399
|
position: "relative",
|
|
10394
10400
|
padding: "0.75rem 0.25rem",
|
|
10395
|
-
border: "1px solid ".concat(isHovered ? "var(--
|
|
10396
|
-
borderRadius: "var(--
|
|
10401
|
+
border: "1px solid ".concat(isHovered ? "var(--moonx-color-accent)" : "var(--moonx-color-border)"),
|
|
10402
|
+
borderRadius: "var(--moonx-border-radius-lg)",
|
|
10397
10403
|
transition: "all 0.2s",
|
|
10398
|
-
backgroundColor: "var(--
|
|
10404
|
+
backgroundColor: "var(--moonx-color-background)",
|
|
10399
10405
|
cursor: "pointer"
|
|
10400
10406
|
};
|
|
10401
10407
|
var imageContainerStyle = {
|
|
@@ -10412,13 +10418,13 @@ var WalletCard = function WalletCard(param) {
|
|
|
10412
10418
|
right: 0,
|
|
10413
10419
|
width: "0.75rem",
|
|
10414
10420
|
height: "0.75rem",
|
|
10415
|
-
backgroundColor: "var(--
|
|
10421
|
+
backgroundColor: "var(--moonx-color-success)",
|
|
10416
10422
|
borderRadius: "50%",
|
|
10417
|
-
border: "2px solid var(--
|
|
10423
|
+
border: "2px solid var(--moonx-color-background)"
|
|
10418
10424
|
};
|
|
10419
10425
|
var textStyle = {
|
|
10420
10426
|
fontSize: "0.875rem",
|
|
10421
|
-
color: "var(--
|
|
10427
|
+
color: "var(--moonx-color-foreground)",
|
|
10422
10428
|
transition: "color 0.2s"
|
|
10423
10429
|
};
|
|
10424
10430
|
return /* @__PURE__ */ jsxs32("button", {
|
|
@@ -10593,12 +10599,12 @@ var WalletListScreen = function WalletListScreen(param) {
|
|
|
10593
10599
|
width: "3rem",
|
|
10594
10600
|
height: "3rem",
|
|
10595
10601
|
border: "2px solid transparent",
|
|
10596
|
-
borderBottomColor: "var(--
|
|
10602
|
+
borderBottomColor: "var(--moonx-color-accent)",
|
|
10597
10603
|
borderRadius: "50%",
|
|
10598
10604
|
animation: "spin 1s linear infinite"
|
|
10599
10605
|
};
|
|
10600
10606
|
var loadingTextStyles = {
|
|
10601
|
-
color: "var(--
|
|
10607
|
+
color: "var(--moonx-color-foreground-3)",
|
|
10602
10608
|
fontSize: "0.875rem"
|
|
10603
10609
|
};
|
|
10604
10610
|
return /* @__PURE__ */ jsxs33(RootCard, {
|
|
@@ -10638,25 +10644,25 @@ var WalletListScreen = function WalletListScreen(param) {
|
|
|
10638
10644
|
gap: "1rem"
|
|
10639
10645
|
};
|
|
10640
10646
|
var errorIconStyles = {
|
|
10641
|
-
color: "var(--
|
|
10647
|
+
color: "var(--moonx-color-error)",
|
|
10642
10648
|
fontSize: "1.125rem"
|
|
10643
10649
|
};
|
|
10644
10650
|
var errorTitleStyles = {
|
|
10645
|
-
color: "var(--
|
|
10651
|
+
color: "var(--moonx-color-foreground)",
|
|
10646
10652
|
fontWeight: 500,
|
|
10647
10653
|
fontSize: "0.875rem"
|
|
10648
10654
|
};
|
|
10649
10655
|
var errorMessageStyles = {
|
|
10650
|
-
color: "var(--
|
|
10656
|
+
color: "var(--moonx-color-foreground-3)",
|
|
10651
10657
|
fontSize: "0.875rem",
|
|
10652
10658
|
textAlign: "center"
|
|
10653
10659
|
};
|
|
10654
10660
|
var retryButtonStyles = {
|
|
10655
10661
|
padding: "0.5rem 1rem",
|
|
10656
|
-
backgroundColor: isRetryHovered ? "var(--
|
|
10657
|
-
color: "var(--
|
|
10662
|
+
backgroundColor: isRetryHovered ? "var(--moonx-color-accent-dark)" : "var(--moonx-color-accent)",
|
|
10663
|
+
color: "var(--moonx-color-accent-foreground)",
|
|
10658
10664
|
border: "none",
|
|
10659
|
-
borderRadius: "var(--
|
|
10665
|
+
borderRadius: "var(--moonx-border-radius-md)",
|
|
10660
10666
|
cursor: "pointer",
|
|
10661
10667
|
fontSize: "0.875rem",
|
|
10662
10668
|
fontWeight: 500,
|
|
@@ -10706,7 +10712,7 @@ var WalletListScreen = function WalletListScreen(param) {
|
|
|
10706
10712
|
var titleStyles = {
|
|
10707
10713
|
fontSize: "1rem",
|
|
10708
10714
|
fontWeight: 500,
|
|
10709
|
-
color: "var(--
|
|
10715
|
+
color: "var(--moonx-color-foreground)"
|
|
10710
10716
|
};
|
|
10711
10717
|
var contentStyles = {
|
|
10712
10718
|
display: "flex",
|
|
@@ -10720,11 +10726,11 @@ var WalletListScreen = function WalletListScreen(param) {
|
|
|
10720
10726
|
var searchInputStyles = {
|
|
10721
10727
|
width: "100%",
|
|
10722
10728
|
padding: "0.75rem 1rem 0.75rem 2.5rem",
|
|
10723
|
-
border: "1px solid var(--
|
|
10724
|
-
borderRadius: "var(--
|
|
10729
|
+
border: "1px solid var(--moonx-color-border)",
|
|
10730
|
+
borderRadius: "var(--moonx-border-radius-lg)",
|
|
10725
10731
|
fontSize: "0.875rem",
|
|
10726
|
-
color: "var(--
|
|
10727
|
-
backgroundColor: "var(--
|
|
10732
|
+
color: "var(--moonx-color-foreground)",
|
|
10733
|
+
backgroundColor: "var(--moonx-color-background)",
|
|
10728
10734
|
outline: "none",
|
|
10729
10735
|
transition: "border-color 0.2s ease, box-shadow 0.2s ease"
|
|
10730
10736
|
};
|
|
@@ -10734,7 +10740,7 @@ var WalletListScreen = function WalletListScreen(param) {
|
|
|
10734
10740
|
top: "0.875rem",
|
|
10735
10741
|
width: "1rem",
|
|
10736
10742
|
height: "1rem",
|
|
10737
|
-
color: "var(--
|
|
10743
|
+
color: "var(--moonx-color-foreground-3)"
|
|
10738
10744
|
};
|
|
10739
10745
|
var walletListContainerStyles = {
|
|
10740
10746
|
height: "300px",
|
|
@@ -10747,12 +10753,12 @@ var WalletListScreen = function WalletListScreen(param) {
|
|
|
10747
10753
|
padding: "2rem 1rem"
|
|
10748
10754
|
};
|
|
10749
10755
|
var emptyTitleStyles = {
|
|
10750
|
-
color: "var(--
|
|
10756
|
+
color: "var(--moonx-color-foreground-3)",
|
|
10751
10757
|
fontSize: "0.875rem",
|
|
10752
10758
|
marginBottom: "0.5rem"
|
|
10753
10759
|
};
|
|
10754
10760
|
var emptySubtitleStyles = {
|
|
10755
|
-
color: "var(--
|
|
10761
|
+
color: "var(--moonx-color-foreground-3)",
|
|
10756
10762
|
fontSize: "0.75rem",
|
|
10757
10763
|
opacity: 0.7
|
|
10758
10764
|
};
|
|
@@ -10763,7 +10769,7 @@ var WalletListScreen = function WalletListScreen(param) {
|
|
|
10763
10769
|
};
|
|
10764
10770
|
var dividerStyles = {
|
|
10765
10771
|
margin: "0.2rem 0",
|
|
10766
|
-
borderTop: "1px solid var(--
|
|
10772
|
+
borderTop: "1px solid var(--moonx-color-border)"
|
|
10767
10773
|
};
|
|
10768
10774
|
return /* @__PURE__ */ jsxs33(RootCard, {
|
|
10769
10775
|
centerContent: false,
|
|
@@ -10772,7 +10778,7 @@ var WalletListScreen = function WalletListScreen(param) {
|
|
|
10772
10778
|
children: [
|
|
10773
10779
|
/* @__PURE__ */ jsx43("style", {
|
|
10774
10780
|
dangerouslySetInnerHTML: {
|
|
10775
|
-
__html: "\n .wallet-list-container::-webkit-scrollbar {\n display: none;\n }\n .wallet-search-input:focus {\n border-color: var(--
|
|
10781
|
+
__html: "\n .wallet-list-container::-webkit-scrollbar {\n display: none;\n }\n .wallet-search-input:focus {\n border-color: var(--moonx-color-accent);\n box-shadow: 0 0 0 2px var(--moonx-color-accent);\n }\n "
|
|
10776
10782
|
}
|
|
10777
10783
|
}),
|
|
10778
10784
|
/* @__PURE__ */ jsxs33("div", {
|
|
@@ -11032,7 +11038,7 @@ var WalletConnectFlow = function WalletConnectFlow(param) {
|
|
|
11032
11038
|
return /* @__PURE__ */ jsx44("div", {
|
|
11033
11039
|
style: {
|
|
11034
11040
|
minHeight: "100vh",
|
|
11035
|
-
backgroundColor: "var(--
|
|
11041
|
+
backgroundColor: "var(--moonx-color-background-2)",
|
|
11036
11042
|
display: "flex",
|
|
11037
11043
|
alignItems: "center",
|
|
11038
11044
|
justifyContent: "center"
|
|
@@ -11044,25 +11050,25 @@ var WalletConnectFlow = function WalletConnectFlow(param) {
|
|
|
11044
11050
|
children: [
|
|
11045
11051
|
/* @__PURE__ */ jsx44("div", {
|
|
11046
11052
|
style: {
|
|
11047
|
-
animation: "
|
|
11053
|
+
animation: "moonx-spin 1s linear infinite",
|
|
11048
11054
|
borderRadius: "50%",
|
|
11049
11055
|
height: "4rem",
|
|
11050
11056
|
width: "4rem",
|
|
11051
|
-
borderBottom: "2px solid var(--
|
|
11057
|
+
borderBottom: "2px solid var(--moonx-color-accent)",
|
|
11052
11058
|
margin: "0 auto 1rem"
|
|
11053
11059
|
}
|
|
11054
11060
|
}),
|
|
11055
11061
|
/* @__PURE__ */ jsx44("p", {
|
|
11056
11062
|
style: {
|
|
11057
11063
|
fontSize: "1.25rem",
|
|
11058
|
-
color: "var(--
|
|
11064
|
+
color: "var(--moonx-color-foreground-3)"
|
|
11059
11065
|
},
|
|
11060
11066
|
children: "Initializing WalletConnect..."
|
|
11061
11067
|
}),
|
|
11062
11068
|
/* @__PURE__ */ jsx44("p", {
|
|
11063
11069
|
style: {
|
|
11064
11070
|
fontSize: "0.875rem",
|
|
11065
|
-
color: "var(--
|
|
11071
|
+
color: "var(--moonx-color-foreground-3)",
|
|
11066
11072
|
marginTop: "0.5rem"
|
|
11067
11073
|
},
|
|
11068
11074
|
children: "Please wait a moment"
|
|
@@ -11108,12 +11114,12 @@ import { jsx as jsx45, jsxs as jsxs35 } from "react/jsx-runtime";
|
|
|
11108
11114
|
var WalletFlowButton = function WalletFlowButton(param) {
|
|
11109
11115
|
var onWalletFlowClick = param.onWalletFlowClick;
|
|
11110
11116
|
return /* @__PURE__ */ jsx45("div", {
|
|
11111
|
-
className: cx("
|
|
11117
|
+
className: cx("moonx-external-wallet-btn", "moonx-connect-solana-wallet-button"),
|
|
11112
11118
|
onClick: function onClick() {
|
|
11113
11119
|
return onWalletFlowClick();
|
|
11114
11120
|
},
|
|
11115
11121
|
children: /* @__PURE__ */ jsxs35("div", {
|
|
11116
|
-
className: "
|
|
11122
|
+
className: "moonx-external-wallet-btn__inner",
|
|
11117
11123
|
children: [
|
|
11118
11124
|
/* @__PURE__ */ jsx45("div", {
|
|
11119
11125
|
style: {
|
|
@@ -11153,18 +11159,18 @@ var NetworkSelection = function NetworkSelection(param) {
|
|
|
11153
11159
|
appearance: config === null || config === void 0 ? void 0 : (_config_config4 = config.config) === null || _config_config4 === void 0 ? void 0 : _config_config4.appearance,
|
|
11154
11160
|
children: [
|
|
11155
11161
|
/* @__PURE__ */ jsxs36("div", {
|
|
11156
|
-
className: "
|
|
11162
|
+
className: "moonx-flex-between",
|
|
11157
11163
|
children: [
|
|
11158
11164
|
/* @__PURE__ */ jsx46(Button, {
|
|
11159
11165
|
variant: "ghost",
|
|
11160
11166
|
size: "icon",
|
|
11161
11167
|
onClick: onBack,
|
|
11162
11168
|
children: /* @__PURE__ */ jsx46(ArrowLeft6, {
|
|
11163
|
-
className: "
|
|
11169
|
+
className: "moonx-icon--sm"
|
|
11164
11170
|
})
|
|
11165
11171
|
}),
|
|
11166
11172
|
/* @__PURE__ */ jsx46("div", {
|
|
11167
|
-
className: "
|
|
11173
|
+
className: "moonx-label",
|
|
11168
11174
|
children: /* @__PURE__ */ jsx46("span", {
|
|
11169
11175
|
children: "Select Network"
|
|
11170
11176
|
})
|
|
@@ -11176,20 +11182,20 @@ var NetworkSelection = function NetworkSelection(param) {
|
|
|
11176
11182
|
visibility: "hidden"
|
|
11177
11183
|
},
|
|
11178
11184
|
children: /* @__PURE__ */ jsx46(X8, {
|
|
11179
|
-
className: "
|
|
11185
|
+
className: "moonx-icon--sm"
|
|
11180
11186
|
})
|
|
11181
11187
|
})
|
|
11182
11188
|
]
|
|
11183
11189
|
}),
|
|
11184
11190
|
/* @__PURE__ */ jsxs36("div", {
|
|
11185
|
-
className: "
|
|
11191
|
+
className: "moonx-flex-col",
|
|
11186
11192
|
style: {
|
|
11187
11193
|
gap: "1rem",
|
|
11188
11194
|
marginTop: "1.5rem"
|
|
11189
11195
|
},
|
|
11190
11196
|
children: [
|
|
11191
11197
|
/* @__PURE__ */ jsxs36("div", {
|
|
11192
|
-
className: "
|
|
11198
|
+
className: "moonx-flex-col-center",
|
|
11193
11199
|
style: {
|
|
11194
11200
|
gap: "0.5rem",
|
|
11195
11201
|
marginBottom: "0.5rem"
|
|
@@ -11198,45 +11204,45 @@ var NetworkSelection = function NetworkSelection(param) {
|
|
|
11198
11204
|
walletIcon && /* @__PURE__ */ jsx46("img", {
|
|
11199
11205
|
src: walletIcon,
|
|
11200
11206
|
alt: walletName,
|
|
11201
|
-
className: "
|
|
11207
|
+
className: "moonx-icon--2xl",
|
|
11202
11208
|
style: {
|
|
11203
|
-
borderRadius: "var(--
|
|
11209
|
+
borderRadius: "var(--moonx-border-radius-md)"
|
|
11204
11210
|
}
|
|
11205
11211
|
}),
|
|
11206
11212
|
/* @__PURE__ */ jsx46("span", {
|
|
11207
|
-
className: "
|
|
11213
|
+
className: "moonx-text--title moonx-text--lg",
|
|
11208
11214
|
children: walletName
|
|
11209
11215
|
})
|
|
11210
11216
|
]
|
|
11211
11217
|
}),
|
|
11212
11218
|
/* @__PURE__ */ jsx46("p", {
|
|
11213
|
-
className: "
|
|
11219
|
+
className: "moonx-text--secondary moonx-text--center",
|
|
11214
11220
|
style: {
|
|
11215
11221
|
marginBottom: "0.25rem"
|
|
11216
11222
|
},
|
|
11217
11223
|
children: "This wallet supports multiple networks. Choose which network you'd like to connect with:"
|
|
11218
11224
|
}),
|
|
11219
11225
|
supportedNetworks.includes("ethereum") && /* @__PURE__ */ jsxs36("div", {
|
|
11220
|
-
className: "
|
|
11226
|
+
className: "moonx-wallet-item",
|
|
11221
11227
|
onClick: function onClick() {
|
|
11222
11228
|
return onNetworkSelect("ethereum");
|
|
11223
11229
|
},
|
|
11224
11230
|
children: [
|
|
11225
11231
|
/* @__PURE__ */ jsxs36("div", {
|
|
11226
|
-
className: "
|
|
11232
|
+
className: "moonx-flex-col",
|
|
11227
11233
|
children: [
|
|
11228
11234
|
/* @__PURE__ */ jsx46("span", {
|
|
11229
|
-
className: "
|
|
11235
|
+
className: "moonx-text--title",
|
|
11230
11236
|
children: "Ethereum"
|
|
11231
11237
|
}),
|
|
11232
11238
|
/* @__PURE__ */ jsx46("span", {
|
|
11233
|
-
className: "
|
|
11239
|
+
className: "moonx-text--secondary",
|
|
11234
11240
|
children: "Connect with Ethereum network"
|
|
11235
11241
|
})
|
|
11236
11242
|
]
|
|
11237
11243
|
}),
|
|
11238
11244
|
/* @__PURE__ */ jsx46("div", {
|
|
11239
|
-
className: "
|
|
11245
|
+
className: "moonx-network-badge",
|
|
11240
11246
|
children: /* @__PURE__ */ jsx46("img", {
|
|
11241
11247
|
src: ethereum_default,
|
|
11242
11248
|
alt: "Ethereum",
|
|
@@ -11250,26 +11256,26 @@ var NetworkSelection = function NetworkSelection(param) {
|
|
|
11250
11256
|
]
|
|
11251
11257
|
}),
|
|
11252
11258
|
supportedNetworks.includes("solana") && /* @__PURE__ */ jsxs36("div", {
|
|
11253
|
-
className: "
|
|
11259
|
+
className: "moonx-wallet-item",
|
|
11254
11260
|
onClick: function onClick() {
|
|
11255
11261
|
return onNetworkSelect("solana");
|
|
11256
11262
|
},
|
|
11257
11263
|
children: [
|
|
11258
11264
|
/* @__PURE__ */ jsxs36("div", {
|
|
11259
|
-
className: "
|
|
11265
|
+
className: "moonx-flex-col",
|
|
11260
11266
|
children: [
|
|
11261
11267
|
/* @__PURE__ */ jsx46("span", {
|
|
11262
|
-
className: "
|
|
11268
|
+
className: "moonx-text--title",
|
|
11263
11269
|
children: "Solana"
|
|
11264
11270
|
}),
|
|
11265
11271
|
/* @__PURE__ */ jsx46("span", {
|
|
11266
|
-
className: "
|
|
11272
|
+
className: "moonx-text--secondary",
|
|
11267
11273
|
children: "Connect with Solana network"
|
|
11268
11274
|
})
|
|
11269
11275
|
]
|
|
11270
11276
|
}),
|
|
11271
11277
|
/* @__PURE__ */ jsx46("div", {
|
|
11272
|
-
className: "
|
|
11278
|
+
className: "moonx-network-badge",
|
|
11273
11279
|
children: /* @__PURE__ */ jsx46("img", {
|
|
11274
11280
|
src: solana_default,
|
|
11275
11281
|
alt: "Solana",
|
|
@@ -11893,46 +11899,46 @@ var SolanaConnectionUI = function SolanaConnectionUI(param) {
|
|
|
11893
11899
|
}, 100);
|
|
11894
11900
|
};
|
|
11895
11901
|
var spinnerWidget = /* @__PURE__ */ jsxs37("div", {
|
|
11896
|
-
className: "
|
|
11902
|
+
className: "moonx-wallet-spinner",
|
|
11897
11903
|
children: [
|
|
11898
11904
|
/* @__PURE__ */ jsx47("div", {
|
|
11899
|
-
className: "
|
|
11905
|
+
className: "moonx-wallet-spinner__ring"
|
|
11900
11906
|
}),
|
|
11901
11907
|
/* @__PURE__ */ jsx47("div", {
|
|
11902
|
-
className: "
|
|
11908
|
+
className: "moonx-wallet-spinner__spin"
|
|
11903
11909
|
}),
|
|
11904
11910
|
/* @__PURE__ */ jsx47("div", {
|
|
11905
|
-
className: "
|
|
11911
|
+
className: "moonx-wallet-spinner__center",
|
|
11906
11912
|
children: /* @__PURE__ */ jsx47("img", {
|
|
11907
11913
|
src: walletIcon,
|
|
11908
11914
|
alt: walletName,
|
|
11909
|
-
className: "
|
|
11915
|
+
className: "moonx-icon--lg"
|
|
11910
11916
|
})
|
|
11911
11917
|
})
|
|
11912
11918
|
]
|
|
11913
11919
|
});
|
|
11914
11920
|
return /* @__PURE__ */ jsxs37("div", {
|
|
11915
|
-
className: "
|
|
11921
|
+
className: "moonx-flex-col-center",
|
|
11916
11922
|
children: [
|
|
11917
11923
|
(connectionState === "connecting" || connectionState === "signing") && /* @__PURE__ */ jsxs37("div", {
|
|
11918
|
-
className: "
|
|
11924
|
+
className: "moonx-connect-state",
|
|
11919
11925
|
children: [
|
|
11920
11926
|
spinnerWidget,
|
|
11921
11927
|
/* @__PURE__ */ jsxs37("div", {
|
|
11922
|
-
className: "
|
|
11928
|
+
className: "moonx-text--center",
|
|
11923
11929
|
style: {
|
|
11924
11930
|
marginTop: "1rem"
|
|
11925
11931
|
},
|
|
11926
11932
|
children: [
|
|
11927
11933
|
/* @__PURE__ */ jsx47("div", {
|
|
11928
|
-
className: "
|
|
11934
|
+
className: "moonx-label moonx-text--lg",
|
|
11929
11935
|
style: {
|
|
11930
11936
|
marginBottom: "0.5rem"
|
|
11931
11937
|
},
|
|
11932
11938
|
children: connectionState === "connecting" ? "Connecting to ".concat(walletName) : "Sign Message to Verify"
|
|
11933
11939
|
}),
|
|
11934
11940
|
/* @__PURE__ */ jsx47("div", {
|
|
11935
|
-
className: "
|
|
11941
|
+
className: "moonx-text--secondary",
|
|
11936
11942
|
children: connectionState === "connecting" ? "Opening your wallet..." : "Please sign the message in your wallet to complete authentication"
|
|
11937
11943
|
})
|
|
11938
11944
|
]
|
|
@@ -11940,39 +11946,39 @@ var SolanaConnectionUI = function SolanaConnectionUI(param) {
|
|
|
11940
11946
|
]
|
|
11941
11947
|
}),
|
|
11942
11948
|
(connectionState === "error" || connectionState === "rejected") && /* @__PURE__ */ jsxs37("div", {
|
|
11943
|
-
className: "
|
|
11949
|
+
className: "moonx-connect-state",
|
|
11944
11950
|
children: [
|
|
11945
11951
|
/* @__PURE__ */ jsxs37("div", {
|
|
11946
|
-
className: "
|
|
11952
|
+
className: "moonx-wallet-spinner",
|
|
11947
11953
|
children: [
|
|
11948
11954
|
/* @__PURE__ */ jsx47("div", {
|
|
11949
|
-
className: "
|
|
11955
|
+
className: "moonx-wallet-spinner__ring moonx-wallet-spinner__ring--error"
|
|
11950
11956
|
}),
|
|
11951
11957
|
/* @__PURE__ */ jsx47("div", {
|
|
11952
|
-
className: "
|
|
11958
|
+
className: "moonx-wallet-spinner__center",
|
|
11953
11959
|
children: /* @__PURE__ */ jsx47("img", {
|
|
11954
11960
|
src: walletIcon,
|
|
11955
11961
|
alt: walletName,
|
|
11956
|
-
className: "
|
|
11962
|
+
className: "moonx-icon--lg"
|
|
11957
11963
|
})
|
|
11958
11964
|
})
|
|
11959
11965
|
]
|
|
11960
11966
|
}),
|
|
11961
11967
|
/* @__PURE__ */ jsxs37("div", {
|
|
11962
|
-
className: "
|
|
11968
|
+
className: "moonx-text--center",
|
|
11963
11969
|
style: {
|
|
11964
11970
|
marginTop: "1rem"
|
|
11965
11971
|
},
|
|
11966
11972
|
children: [
|
|
11967
11973
|
/* @__PURE__ */ jsx47("div", {
|
|
11968
|
-
className: "
|
|
11974
|
+
className: "moonx-label moonx-text--lg",
|
|
11969
11975
|
style: {
|
|
11970
11976
|
marginBottom: "0.5rem"
|
|
11971
11977
|
},
|
|
11972
11978
|
children: connectionState === "error" ? "Connection Failed" : "Connection Rejected"
|
|
11973
11979
|
}),
|
|
11974
11980
|
/* @__PURE__ */ jsx47("div", {
|
|
11975
|
-
className: "
|
|
11981
|
+
className: "moonx-box moonx-box--error moonx-text--error",
|
|
11976
11982
|
style: {
|
|
11977
11983
|
marginBottom: "1rem"
|
|
11978
11984
|
},
|
|
@@ -12132,7 +12138,7 @@ var UnifiedWalletList = function UnifiedWalletList(param) {
|
|
|
12132
12138
|
appearance: config === null || config === void 0 ? void 0 : (_config_config4 = config.config) === null || _config_config4 === void 0 ? void 0 : _config_config4.appearance,
|
|
12133
12139
|
children: [
|
|
12134
12140
|
/* @__PURE__ */ jsxs38("div", {
|
|
12135
|
-
className: "
|
|
12141
|
+
className: "moonx-flex-between",
|
|
12136
12142
|
children: [
|
|
12137
12143
|
/* @__PURE__ */ jsx48(Button, {
|
|
12138
12144
|
variant: "ghost",
|
|
@@ -12141,11 +12147,11 @@ var UnifiedWalletList = function UnifiedWalletList(param) {
|
|
|
12141
12147
|
return onCancel();
|
|
12142
12148
|
},
|
|
12143
12149
|
children: /* @__PURE__ */ jsx48(ArrowLeft7, {
|
|
12144
|
-
className: "
|
|
12150
|
+
className: "moonx-icon--sm"
|
|
12145
12151
|
})
|
|
12146
12152
|
}),
|
|
12147
12153
|
/* @__PURE__ */ jsx48("div", {
|
|
12148
|
-
className: "
|
|
12154
|
+
className: "moonx-label",
|
|
12149
12155
|
children: /* @__PURE__ */ jsx48("span", {
|
|
12150
12156
|
children: "Select a wallet"
|
|
12151
12157
|
})
|
|
@@ -12160,13 +12166,13 @@ var UnifiedWalletList = function UnifiedWalletList(param) {
|
|
|
12160
12166
|
return onCancel();
|
|
12161
12167
|
},
|
|
12162
12168
|
children: /* @__PURE__ */ jsx48(X9, {
|
|
12163
|
-
className: "
|
|
12169
|
+
className: "moonx-icon--sm"
|
|
12164
12170
|
})
|
|
12165
12171
|
})
|
|
12166
12172
|
]
|
|
12167
12173
|
}),
|
|
12168
12174
|
/* @__PURE__ */ jsxs38("div", {
|
|
12169
|
-
className: "
|
|
12175
|
+
className: "moonx-flex-col",
|
|
12170
12176
|
style: {
|
|
12171
12177
|
marginTop: "1rem",
|
|
12172
12178
|
gap: "0.75rem"
|
|
@@ -12184,13 +12190,13 @@ var UnifiedWalletList = function UnifiedWalletList(param) {
|
|
|
12184
12190
|
onChange: function onChange(e) {
|
|
12185
12191
|
return setSearchValue(e.target.value);
|
|
12186
12192
|
},
|
|
12187
|
-
className: "
|
|
12193
|
+
className: "moonx-input",
|
|
12188
12194
|
style: {
|
|
12189
12195
|
paddingLeft: "2.5rem"
|
|
12190
12196
|
}
|
|
12191
12197
|
}),
|
|
12192
12198
|
/* @__PURE__ */ jsx48("svg", {
|
|
12193
|
-
className: "
|
|
12199
|
+
className: "moonx-search-icon moonx-icon--sm",
|
|
12194
12200
|
fill: "none",
|
|
12195
12201
|
stroke: "currentColor",
|
|
12196
12202
|
viewBox: "0 0 24 24",
|
|
@@ -12204,26 +12210,26 @@ var UnifiedWalletList = function UnifiedWalletList(param) {
|
|
|
12204
12210
|
]
|
|
12205
12211
|
}),
|
|
12206
12212
|
/* @__PURE__ */ jsx48("div", {
|
|
12207
|
-
className: "
|
|
12213
|
+
className: "moonx-scrollable-list",
|
|
12208
12214
|
style: {
|
|
12209
12215
|
height: "300px",
|
|
12210
12216
|
gap: "0.5rem"
|
|
12211
12217
|
},
|
|
12212
12218
|
children: loading ? /* @__PURE__ */ jsx48("div", {
|
|
12213
|
-
className: "
|
|
12219
|
+
className: "moonx-text--secondary moonx-flex-center",
|
|
12214
12220
|
style: {
|
|
12215
12221
|
padding: "2rem 1rem"
|
|
12216
12222
|
},
|
|
12217
12223
|
children: "Loading wallets..."
|
|
12218
12224
|
}) : filteredWallets.length === 0 ? /* @__PURE__ */ jsx48("div", {
|
|
12219
|
-
className: "
|
|
12225
|
+
className: "moonx-text--secondary moonx-text--center",
|
|
12220
12226
|
style: {
|
|
12221
12227
|
padding: "2rem 1rem"
|
|
12222
12228
|
},
|
|
12223
12229
|
children: "No wallets found"
|
|
12224
12230
|
}) : filteredWallets.map(function(wallet) {
|
|
12225
12231
|
return /* @__PURE__ */ jsxs38("div", {
|
|
12226
|
-
className: "
|
|
12232
|
+
className: "moonx-wallet-item",
|
|
12227
12233
|
onClick: function onClick() {
|
|
12228
12234
|
return onWalletSelect(wallet);
|
|
12229
12235
|
},
|
|
@@ -12255,7 +12261,7 @@ var UnifiedWalletList = function UnifiedWalletList(param) {
|
|
|
12255
12261
|
})
|
|
12256
12262
|
}),
|
|
12257
12263
|
/* @__PURE__ */ jsx48("span", {
|
|
12258
|
-
className: "
|
|
12264
|
+
className: "moonx-text--sm moonx-icon--fg",
|
|
12259
12265
|
style: {
|
|
12260
12266
|
transition: "color 0.2s"
|
|
12261
12267
|
},
|
|
@@ -12271,7 +12277,7 @@ var UnifiedWalletList = function UnifiedWalletList(param) {
|
|
|
12271
12277
|
},
|
|
12272
12278
|
children: [
|
|
12273
12279
|
wallet.supportedNetworks.includes("ethereum") && /* @__PURE__ */ jsx48("div", {
|
|
12274
|
-
className: "
|
|
12280
|
+
className: "moonx-network-badge",
|
|
12275
12281
|
children: /* @__PURE__ */ jsx48("img", {
|
|
12276
12282
|
src: ethereum_default,
|
|
12277
12283
|
alt: "Ethereum",
|
|
@@ -12283,7 +12289,7 @@ var UnifiedWalletList = function UnifiedWalletList(param) {
|
|
|
12283
12289
|
})
|
|
12284
12290
|
}),
|
|
12285
12291
|
wallet.supportedNetworks.includes("solana") && /* @__PURE__ */ jsx48("div", {
|
|
12286
|
-
className: "
|
|
12292
|
+
className: "moonx-network-badge" + (wallet.supportedNetworks.includes("ethereum") ? " moonx-network-badge--overlap" : ""),
|
|
12287
12293
|
children: /* @__PURE__ */ jsx48("img", {
|
|
12288
12294
|
src: solana_default,
|
|
12289
12295
|
alt: "Solana",
|
|
@@ -12469,18 +12475,18 @@ var WalletsFlow = function WalletsFlow(param) {
|
|
|
12469
12475
|
appearance: config === null || config === void 0 ? void 0 : (_config_config4 = config.config) === null || _config_config4 === void 0 ? void 0 : _config_config4.appearance,
|
|
12470
12476
|
children: [
|
|
12471
12477
|
/* @__PURE__ */ jsxs39("div", {
|
|
12472
|
-
className: "
|
|
12478
|
+
className: "moonx-flex-between",
|
|
12473
12479
|
children: [
|
|
12474
12480
|
/* @__PURE__ */ jsx49(Button, {
|
|
12475
12481
|
variant: "ghost",
|
|
12476
12482
|
size: "icon",
|
|
12477
12483
|
onClick: handleBack,
|
|
12478
12484
|
children: /* @__PURE__ */ jsx49(ArrowLeft8, {
|
|
12479
|
-
className: "
|
|
12485
|
+
className: "moonx-icon--sm"
|
|
12480
12486
|
})
|
|
12481
12487
|
}),
|
|
12482
12488
|
/* @__PURE__ */ jsx49("div", {
|
|
12483
|
-
className: "
|
|
12489
|
+
className: "moonx-text--title",
|
|
12484
12490
|
children: /* @__PURE__ */ jsxs39("span", {
|
|
12485
12491
|
children: [
|
|
12486
12492
|
"Connect ",
|
|
@@ -12496,13 +12502,13 @@ var WalletsFlow = function WalletsFlow(param) {
|
|
|
12496
12502
|
},
|
|
12497
12503
|
onClick: handleBack,
|
|
12498
12504
|
children: /* @__PURE__ */ jsx49(X10, {
|
|
12499
|
-
className: "
|
|
12505
|
+
className: "moonx-icon--sm"
|
|
12500
12506
|
})
|
|
12501
12507
|
})
|
|
12502
12508
|
]
|
|
12503
12509
|
}),
|
|
12504
12510
|
/* @__PURE__ */ jsx49("div", {
|
|
12505
|
-
className: "
|
|
12511
|
+
className: "moonx-flex-col",
|
|
12506
12512
|
style: {
|
|
12507
12513
|
marginTop: "1rem"
|
|
12508
12514
|
},
|
|
@@ -12529,7 +12535,7 @@ var WalletsFlow = function WalletsFlow(param) {
|
|
|
12529
12535
|
theme: config === null || config === void 0 ? void 0 : (_config_config5 = config.config) === null || _config_config5 === void 0 ? void 0 : _config_config5.theme,
|
|
12530
12536
|
appearance: config === null || config === void 0 ? void 0 : (_config_config6 = config.config) === null || _config_config6 === void 0 ? void 0 : _config_config6.appearance,
|
|
12531
12537
|
children: /* @__PURE__ */ jsxs39("div", {
|
|
12532
|
-
className: "
|
|
12538
|
+
className: "moonx-connect-state",
|
|
12533
12539
|
style: {
|
|
12534
12540
|
gap: "1rem"
|
|
12535
12541
|
},
|
|
@@ -12539,13 +12545,13 @@ var WalletsFlow = function WalletsFlow(param) {
|
|
|
12539
12545
|
width: "3rem",
|
|
12540
12546
|
height: "3rem",
|
|
12541
12547
|
border: "2px solid transparent",
|
|
12542
|
-
borderBottomColor: "var(--
|
|
12548
|
+
borderBottomColor: "var(--moonx-color-accent)",
|
|
12543
12549
|
borderRadius: "50%",
|
|
12544
|
-
animation: "
|
|
12550
|
+
animation: "moonx-spin 1s linear infinite"
|
|
12545
12551
|
}
|
|
12546
12552
|
}),
|
|
12547
12553
|
/* @__PURE__ */ jsx49("p", {
|
|
12548
|
-
className: "
|
|
12554
|
+
className: "moonx-text--secondary",
|
|
12549
12555
|
children: "Initializing WalletConnect..."
|
|
12550
12556
|
})
|
|
12551
12557
|
]
|
|
@@ -12633,10 +12639,10 @@ var TermsAndPrivacy = function TermsAndPrivacy(param) {
|
|
|
12633
12639
|
});
|
|
12634
12640
|
};
|
|
12635
12641
|
if (require_users_accept_terms) {
|
|
12636
|
-
var checkboxId = "
|
|
12642
|
+
var checkboxId = "moonx-terms-checkbox";
|
|
12637
12643
|
return /* @__PURE__ */ jsxs40("label", {
|
|
12638
12644
|
htmlFor: checkboxId,
|
|
12639
|
-
className: "
|
|
12645
|
+
className: "moonx-legal-text moonx-legal-checkbox",
|
|
12640
12646
|
children: [
|
|
12641
12647
|
/* @__PURE__ */ jsx50("input", {
|
|
12642
12648
|
id: checkboxId,
|
|
@@ -12653,7 +12659,7 @@ var TermsAndPrivacy = function TermsAndPrivacy(param) {
|
|
|
12653
12659
|
});
|
|
12654
12660
|
}
|
|
12655
12661
|
return /* @__PURE__ */ jsx50("div", {
|
|
12656
|
-
className: "
|
|
12662
|
+
className: "moonx-legal-text",
|
|
12657
12663
|
children: renderLinks()
|
|
12658
12664
|
});
|
|
12659
12665
|
};
|
|
@@ -12797,14 +12803,14 @@ var LoginLanding = function LoginLanding(param) {
|
|
|
12797
12803
|
appearance: config === null || config === void 0 ? void 0 : (_config_config7 = config.config) === null || _config_config7 === void 0 ? void 0 : _config_config7.appearance,
|
|
12798
12804
|
children: [
|
|
12799
12805
|
!hideClose && /* @__PURE__ */ jsx51("div", {
|
|
12800
|
-
className: "
|
|
12806
|
+
className: "moonx-flow-close",
|
|
12801
12807
|
children: /* @__PURE__ */ jsx51(Button, {
|
|
12802
12808
|
variant: "ghost",
|
|
12803
12809
|
size: "icon",
|
|
12804
12810
|
onClick: onCancel,
|
|
12805
12811
|
"aria-label": "Close",
|
|
12806
12812
|
children: /* @__PURE__ */ jsx51("svg", {
|
|
12807
|
-
className: "
|
|
12813
|
+
className: "moonx-icon--md",
|
|
12808
12814
|
fill: "none",
|
|
12809
12815
|
stroke: "currentColor",
|
|
12810
12816
|
viewBox: "0 0 24 24",
|
|
@@ -12818,20 +12824,20 @@ var LoginLanding = function LoginLanding(param) {
|
|
|
12818
12824
|
})
|
|
12819
12825
|
}),
|
|
12820
12826
|
/* @__PURE__ */ jsx51("div", {
|
|
12821
|
-
className: "
|
|
12827
|
+
className: "moonx-header",
|
|
12822
12828
|
children: /* @__PURE__ */ jsx51("div", {
|
|
12823
|
-
className: "
|
|
12829
|
+
className: "moonx-header__inner",
|
|
12824
12830
|
children: (config === null || config === void 0 ? void 0 : (_config_config8 = config.config) === null || _config_config8 === void 0 ? void 0 : (_config_config_appearance3 = _config_config8.appearance) === null || _config_config_appearance3 === void 0 ? void 0 : (_config_config_appearance_loginHeaderTitle = _config_config_appearance3.loginHeaderTitle) === null || _config_config_appearance_loginHeaderTitle === void 0 ? void 0 : _config_config_appearance_loginHeaderTitle.toString()) || t("loginLanding.title")
|
|
12825
12831
|
})
|
|
12826
12832
|
}),
|
|
12827
12833
|
/* @__PURE__ */ jsxs41("div", {
|
|
12828
|
-
className: "
|
|
12834
|
+
className: "moonx-content-wrapper",
|
|
12829
12835
|
children: [
|
|
12830
12836
|
/* @__PURE__ */ jsxs41("div", {
|
|
12831
|
-
className: "
|
|
12837
|
+
className: "moonx-logo-section",
|
|
12832
12838
|
children: [
|
|
12833
12839
|
/* @__PURE__ */ jsx51("div", {
|
|
12834
|
-
className: "
|
|
12840
|
+
className: "moonx-logo-section__inner",
|
|
12835
12841
|
children: /* @__PURE__ */ jsx51(AppLogo, {
|
|
12836
12842
|
appConfig: appConfig,
|
|
12837
12843
|
src: logo === null || logo === void 0 ? void 0 : logo.src,
|
|
@@ -12840,16 +12846,16 @@ var LoginLanding = function LoginLanding(param) {
|
|
|
12840
12846
|
})
|
|
12841
12847
|
}),
|
|
12842
12848
|
(config === null || config === void 0 ? void 0 : (_config_config9 = config.config) === null || _config_config9 === void 0 ? void 0 : (_config_config_appearance4 = _config_config9.appearance) === null || _config_config_appearance4 === void 0 ? void 0 : _config_config_appearance4.loginHeaderDescription) && /* @__PURE__ */ jsx51("div", {
|
|
12843
|
-
className: "
|
|
12849
|
+
className: "moonx-description",
|
|
12844
12850
|
children: config === null || config === void 0 ? void 0 : (_config_config10 = config.config) === null || _config_config10 === void 0 ? void 0 : (_config_config_appearance5 = _config_config10.appearance) === null || _config_config_appearance5 === void 0 ? void 0 : _config_config_appearance5.loginHeaderDescription
|
|
12845
12851
|
})
|
|
12846
12852
|
]
|
|
12847
12853
|
}),
|
|
12848
12854
|
/* @__PURE__ */ jsxs41("div", {
|
|
12849
|
-
className: "
|
|
12855
|
+
className: "moonx-form-section",
|
|
12850
12856
|
children: [
|
|
12851
12857
|
/* @__PURE__ */ jsxs41("div", {
|
|
12852
|
-
className: "
|
|
12858
|
+
className: "moonx-login-gateable".concat(loginGated ? " moonx-login-gated" : ""),
|
|
12853
12859
|
"aria-disabled": loginGated,
|
|
12854
12860
|
children: [
|
|
12855
12861
|
showEmail && /* @__PURE__ */ jsx51(EmailOtpInput, {
|
|
@@ -12865,7 +12871,7 @@ var LoginLanding = function LoginLanding(param) {
|
|
|
12865
12871
|
}
|
|
12866
12872
|
}),
|
|
12867
12873
|
/* @__PURE__ */ jsxs41("div", {
|
|
12868
|
-
className: "
|
|
12874
|
+
className: "moonx-social-buttons moonx-flex-col",
|
|
12869
12875
|
children: [
|
|
12870
12876
|
showGoogle && /* @__PURE__ */ jsx51(GoogleLogin, {
|
|
12871
12877
|
onLoginClick: function onLoginClick() {
|
|
@@ -12880,7 +12886,7 @@ var LoginLanding = function LoginLanding(param) {
|
|
|
12880
12886
|
]
|
|
12881
12887
|
}),
|
|
12882
12888
|
showWallet && /* @__PURE__ */ jsx51("div", {
|
|
12883
|
-
className: "
|
|
12889
|
+
className: "moonx-wallet-section moonx-flex-col",
|
|
12884
12890
|
style: {
|
|
12885
12891
|
gap: "0.75rem"
|
|
12886
12892
|
},
|
|
@@ -12914,7 +12920,7 @@ var OAuth = function OAuth(param) {
|
|
|
12914
12920
|
var t = useTranslation().t;
|
|
12915
12921
|
var isDark = isDarkMode(config === null || config === void 0 ? void 0 : (_config_config = config.config) === null || _config_config === void 0 ? void 0 : _config_config.theme, config === null || config === void 0 ? void 0 : (_config_config1 = config.config) === null || _config_config1 === void 0 ? void 0 : (_config_config_appearance = _config_config1.appearance) === null || _config_config_appearance === void 0 ? void 0 : _config_config_appearance.displayMode, config === null || config === void 0 ? void 0 : (_config_config2 = config.config) === null || _config_config2 === void 0 ? void 0 : (_config_config_appearance1 = _config_config2.appearance) === null || _config_config_appearance1 === void 0 ? void 0 : _config_config_appearance1.backgroundColor);
|
|
12916
12922
|
var googleIcon = /* @__PURE__ */ jsxs42("svg", {
|
|
12917
|
-
className: "
|
|
12923
|
+
className: "moonx-icon--xl",
|
|
12918
12924
|
viewBox: "0 0 24 24",
|
|
12919
12925
|
xmlns: "http://www.w3.org/2000/svg",
|
|
12920
12926
|
children: [
|
|
@@ -12937,13 +12943,13 @@ var OAuth = function OAuth(param) {
|
|
|
12937
12943
|
]
|
|
12938
12944
|
});
|
|
12939
12945
|
var appleIcon = /* @__PURE__ */ jsx52("svg", {
|
|
12940
|
-
className: "
|
|
12946
|
+
className: "moonx-icon--xl",
|
|
12941
12947
|
viewBox: "0 0 20 20",
|
|
12942
12948
|
xmlns: "http://www.w3.org/2000/svg",
|
|
12943
12949
|
children: /* @__PURE__ */ jsx52("path", {
|
|
12944
12950
|
d: "M18.71 19.5c-.83 1.24-1.71 2.45-3.05 2.47-1.34.03-1.77-.79-3.29-.79-1.53 0-2 .77-3.27.82-1.31.05-2.3-1.32-3.14-2.53C4.25 17 2.94 12.45 4.7 9.39c.87-1.52 2.43-2.48 4.12-2.51 1.28-.02 2.5.87 3.29.87.78 0 2.26-1.07 3.81-.91.65.03 2.47.26 3.64 1.98-.09.06-2.17 1.28-2.15 3.81.03 3.02 2.65 4.03 2.68 4.04-.03.07-.42 1.44-1.38 2.83M13 3.5c.73-.83 1.94-1.46 2.94-1.5.13 1.17-.34 2.35-1.04 3.19-.69.85-1.83 1.51-2.95 1.42-.15-1.15.41-2.35 1.05-3.11z",
|
|
12945
12951
|
transform: "translate(-2, -2)",
|
|
12946
|
-
fill: "var(--
|
|
12952
|
+
fill: "var(--moonx-color-foreground, #000)"
|
|
12947
12953
|
})
|
|
12948
12954
|
});
|
|
12949
12955
|
var getIcon = function getIcon() {
|
|
@@ -12962,7 +12968,7 @@ var OAuth = function OAuth(param) {
|
|
|
12962
12968
|
theme: config === null || config === void 0 ? void 0 : (_config_config3 = config.config) === null || _config_config3 === void 0 ? void 0 : _config_config3.theme,
|
|
12963
12969
|
appearance: config === null || config === void 0 ? void 0 : (_config_config4 = config.config) === null || _config_config4 === void 0 ? void 0 : _config_config4.appearance,
|
|
12964
12970
|
children: /* @__PURE__ */ jsxs42("div", {
|
|
12965
|
-
className: cx("
|
|
12971
|
+
className: cx("moonx-oauth-container", "moonx-flex-col-center", "moonx-text--center"),
|
|
12966
12972
|
style: {
|
|
12967
12973
|
paddingBottom: "0.25rem",
|
|
12968
12974
|
paddingLeft: "0.5rem",
|
|
@@ -12971,10 +12977,10 @@ var OAuth = function OAuth(param) {
|
|
|
12971
12977
|
},
|
|
12972
12978
|
children: [
|
|
12973
12979
|
/* @__PURE__ */ jsx52("div", {
|
|
12974
|
-
className: "
|
|
12980
|
+
className: "moonx-flow-logo",
|
|
12975
12981
|
children: /* @__PURE__ */ jsx52(AppLogo, {
|
|
12976
12982
|
appConfig: appConfig,
|
|
12977
|
-
className: "
|
|
12983
|
+
className: "moonx-icon--lg"
|
|
12978
12984
|
})
|
|
12979
12985
|
}),
|
|
12980
12986
|
/* @__PURE__ */ jsx52("div", {
|
|
@@ -12983,7 +12989,7 @@ var OAuth = function OAuth(param) {
|
|
|
12983
12989
|
gap: "1rem",
|
|
12984
12990
|
justifyContent: "center"
|
|
12985
12991
|
},
|
|
12986
|
-
className: "
|
|
12992
|
+
className: "moonx-flex-col-center",
|
|
12987
12993
|
children: /* @__PURE__ */ jsx52(LoadingSpinner, {
|
|
12988
12994
|
iconComponent: getIcon(),
|
|
12989
12995
|
size: "md",
|
|
@@ -13244,17 +13250,17 @@ var PasskeyEnroll = function PasskeyEnroll(param) {
|
|
|
13244
13250
|
theme: config === null || config === void 0 ? void 0 : (_config_config6 = config.config) === null || _config_config6 === void 0 ? void 0 : _config_config6.theme,
|
|
13245
13251
|
appearance: config === null || config === void 0 ? void 0 : (_config_config7 = config.config) === null || _config_config7 === void 0 ? void 0 : _config_config7.appearance,
|
|
13246
13252
|
children: /* @__PURE__ */ jsxs43("div", {
|
|
13247
|
-
className: cx("
|
|
13253
|
+
className: cx("moonx-passkey-enroll", "moonx-passkey-success", "moonx-modal-content"),
|
|
13248
13254
|
children: [
|
|
13249
13255
|
/* @__PURE__ */ jsx53("div", {
|
|
13250
|
-
className: "
|
|
13256
|
+
className: "moonx-flow-logo",
|
|
13251
13257
|
style: {
|
|
13252
13258
|
paddingTop: "1rem"
|
|
13253
13259
|
},
|
|
13254
13260
|
children: customLogoUrl ? /* @__PURE__ */ jsx53("img", {
|
|
13255
13261
|
src: customLogoUrl,
|
|
13256
13262
|
alt: "",
|
|
13257
|
-
className: "
|
|
13263
|
+
className: "moonx-icon--lg",
|
|
13258
13264
|
style: {
|
|
13259
13265
|
objectFit: "contain"
|
|
13260
13266
|
}
|
|
@@ -13267,18 +13273,18 @@ var PasskeyEnroll = function PasskeyEnroll(param) {
|
|
|
13267
13273
|
})
|
|
13268
13274
|
}),
|
|
13269
13275
|
/* @__PURE__ */ jsx53(CheckCircle24, {
|
|
13270
|
-
className: "
|
|
13276
|
+
className: "moonx-icon--2xl moonx-icon--success"
|
|
13271
13277
|
}),
|
|
13272
13278
|
/* @__PURE__ */ jsx53("div", {
|
|
13273
|
-
className: "
|
|
13279
|
+
className: "moonx-text--title moonx-text--xl",
|
|
13274
13280
|
children: successTitleText
|
|
13275
13281
|
}),
|
|
13276
13282
|
/* @__PURE__ */ jsx53("div", {
|
|
13277
|
-
className: "
|
|
13283
|
+
className: "moonx-text--secondary",
|
|
13278
13284
|
children: successDescriptionText
|
|
13279
13285
|
}),
|
|
13280
13286
|
/* @__PURE__ */ jsx53("div", {
|
|
13281
|
-
className: "
|
|
13287
|
+
className: "moonx-btn-stack",
|
|
13282
13288
|
children: /* @__PURE__ */ jsx53(Button, {
|
|
13283
13289
|
onClick: finish,
|
|
13284
13290
|
children: successDoneButtonText
|
|
@@ -13294,17 +13300,17 @@ var PasskeyEnroll = function PasskeyEnroll(param) {
|
|
|
13294
13300
|
theme: config === null || config === void 0 ? void 0 : (_config_config4 = config.config) === null || _config_config4 === void 0 ? void 0 : _config_config4.theme,
|
|
13295
13301
|
appearance: config === null || config === void 0 ? void 0 : (_config_config5 = config.config) === null || _config_config5 === void 0 ? void 0 : _config_config5.appearance,
|
|
13296
13302
|
children: /* @__PURE__ */ jsxs43("div", {
|
|
13297
|
-
className: cx("
|
|
13303
|
+
className: cx("moonx-passkey-enroll", "moonx-modal-content"),
|
|
13298
13304
|
children: [
|
|
13299
13305
|
/* @__PURE__ */ jsx53("div", {
|
|
13300
|
-
className: "
|
|
13306
|
+
className: "moonx-flow-logo",
|
|
13301
13307
|
style: {
|
|
13302
13308
|
paddingTop: "1rem"
|
|
13303
13309
|
},
|
|
13304
13310
|
children: customLogoUrl ? /* @__PURE__ */ jsx53("img", {
|
|
13305
13311
|
src: customLogoUrl,
|
|
13306
13312
|
alt: "",
|
|
13307
|
-
className: "
|
|
13313
|
+
className: "moonx-icon--lg",
|
|
13308
13314
|
style: {
|
|
13309
13315
|
objectFit: "contain"
|
|
13310
13316
|
}
|
|
@@ -13317,18 +13323,18 @@ var PasskeyEnroll = function PasskeyEnroll(param) {
|
|
|
13317
13323
|
})
|
|
13318
13324
|
}),
|
|
13319
13325
|
/* @__PURE__ */ jsx53(Fingerprint2, {
|
|
13320
|
-
className: "
|
|
13326
|
+
className: "moonx-icon--xl moonx-icon--accent"
|
|
13321
13327
|
}),
|
|
13322
13328
|
/* @__PURE__ */ jsx53("div", {
|
|
13323
|
-
className: "
|
|
13329
|
+
className: "moonx-text--title moonx-text--xl",
|
|
13324
13330
|
children: titleText
|
|
13325
13331
|
}),
|
|
13326
13332
|
/* @__PURE__ */ jsx53("div", {
|
|
13327
|
-
className: "
|
|
13333
|
+
className: "moonx-text--secondary",
|
|
13328
13334
|
children: descriptionText
|
|
13329
13335
|
}),
|
|
13330
13336
|
/* @__PURE__ */ jsxs43("div", {
|
|
13331
|
-
className: "
|
|
13337
|
+
className: "moonx-flex-col",
|
|
13332
13338
|
style: {
|
|
13333
13339
|
gap: "0.75rem",
|
|
13334
13340
|
width: "100%",
|
|
@@ -13336,10 +13342,10 @@ var PasskeyEnroll = function PasskeyEnroll(param) {
|
|
|
13336
13342
|
},
|
|
13337
13343
|
children: [
|
|
13338
13344
|
/* @__PURE__ */ jsxs43("div", {
|
|
13339
|
-
className: "
|
|
13345
|
+
className: "moonx-feature-item",
|
|
13340
13346
|
children: [
|
|
13341
13347
|
/* @__PURE__ */ jsx53(ShieldCheck, {
|
|
13342
|
-
className: "
|
|
13348
|
+
className: "moonx-icon--accent",
|
|
13343
13349
|
style: {
|
|
13344
13350
|
width: "1.25rem",
|
|
13345
13351
|
height: "1.25rem",
|
|
@@ -13352,10 +13358,10 @@ var PasskeyEnroll = function PasskeyEnroll(param) {
|
|
|
13352
13358
|
]
|
|
13353
13359
|
}),
|
|
13354
13360
|
/* @__PURE__ */ jsxs43("div", {
|
|
13355
|
-
className: "
|
|
13361
|
+
className: "moonx-feature-item",
|
|
13356
13362
|
children: [
|
|
13357
13363
|
/* @__PURE__ */ jsx53(CloudCog, {
|
|
13358
|
-
className: "
|
|
13364
|
+
className: "moonx-icon--accent",
|
|
13359
13365
|
style: {
|
|
13360
13366
|
width: "1.25rem",
|
|
13361
13367
|
height: "1.25rem",
|
|
@@ -13373,7 +13379,7 @@ var PasskeyEnroll = function PasskeyEnroll(param) {
|
|
|
13373
13379
|
children: errorMessage
|
|
13374
13380
|
}),
|
|
13375
13381
|
/* @__PURE__ */ jsxs43("div", {
|
|
13376
|
-
className: "
|
|
13382
|
+
className: "moonx-btn-stack",
|
|
13377
13383
|
children: [
|
|
13378
13384
|
/* @__PURE__ */ jsx53(Button, {
|
|
13379
13385
|
onClick: enroll,
|
|
@@ -13394,6 +13400,32 @@ var PasskeyEnroll = function PasskeyEnroll(param) {
|
|
|
13394
13400
|
// src/components/flows/send-ethereum-transaction-flow/send-ethereum-transaction-flow.tsx
|
|
13395
13401
|
import { PostMessageClient as PostMessageClient4, PostMessageMethod as PostMessageMethod21, PostMessageType as PostMessageType22 } from "@moon-x/core/utils";
|
|
13396
13402
|
import { useState as useState41 } from "react";
|
|
13403
|
+
// src/lib/verify-ethereum-transaction.ts
|
|
13404
|
+
import { serializeEthereumTransaction as serializeEthereumTransaction2 } from "@moon-x/core/lib";
|
|
13405
|
+
var ETHEREUM_TX_PREVIEW_MISMATCH = "ETHEREUM_TX_PREVIEW_MISMATCH";
|
|
13406
|
+
function canonicalSerializedForSigning(transaction, serializedTransaction) {
|
|
13407
|
+
return _async_to_generator(function() {
|
|
13408
|
+
var canonical;
|
|
13409
|
+
return _ts_generator(this, function(_state) {
|
|
13410
|
+
switch(_state.label){
|
|
13411
|
+
case 0:
|
|
13412
|
+
return [
|
|
13413
|
+
4,
|
|
13414
|
+
serializeEthereumTransaction2(transaction)
|
|
13415
|
+
];
|
|
13416
|
+
case 1:
|
|
13417
|
+
canonical = _state.sent();
|
|
13418
|
+
if (canonical.toLowerCase() !== serializedTransaction.toLowerCase()) {
|
|
13419
|
+
throw new Error(ETHEREUM_TX_PREVIEW_MISMATCH);
|
|
13420
|
+
}
|
|
13421
|
+
return [
|
|
13422
|
+
2,
|
|
13423
|
+
canonical
|
|
13424
|
+
];
|
|
13425
|
+
}
|
|
13426
|
+
});
|
|
13427
|
+
})();
|
|
13428
|
+
}
|
|
13397
13429
|
// src/components/flows/send-ethereum-transaction-flow/send-ethereum-transaction.tsx
|
|
13398
13430
|
import { PostMessageMethod as PostMessageMethod20, PostMessageType as PostMessageType21 } from "@moon-x/core/utils";
|
|
13399
13431
|
import { ListCheck, X as X11, XCircle as XCircle2 } from "lucide-react";
|
|
@@ -13474,7 +13506,7 @@ var SendEthereumTransaction = function SendEthereumTransaction(param) {
|
|
|
13474
13506
|
console.error("Failed to get confirm transaction:", error2 || "Unknown error");
|
|
13475
13507
|
};
|
|
13476
13508
|
return /* @__PURE__ */ jsx54("div", {
|
|
13477
|
-
className: "
|
|
13509
|
+
className: "moonx-flow-overlay",
|
|
13478
13510
|
children: /* @__PURE__ */ jsxs44(RootCard, {
|
|
13479
13511
|
centerContent: false,
|
|
13480
13512
|
isDark: isDark,
|
|
@@ -13482,35 +13514,35 @@ var SendEthereumTransaction = function SendEthereumTransaction(param) {
|
|
|
13482
13514
|
appearance: config === null || config === void 0 ? void 0 : (_config_config4 = config.config) === null || _config_config4 === void 0 ? void 0 : _config_config4.appearance,
|
|
13483
13515
|
children: [
|
|
13484
13516
|
/* @__PURE__ */ jsx54("div", {
|
|
13485
|
-
className: "
|
|
13517
|
+
className: "moonx-flow-close",
|
|
13486
13518
|
children: /* @__PURE__ */ jsx54(Button, {
|
|
13487
13519
|
variant: "ghost",
|
|
13488
13520
|
size: "icon",
|
|
13489
13521
|
onClick: onCancel,
|
|
13490
13522
|
children: /* @__PURE__ */ jsx54(X11, {
|
|
13491
|
-
className: "
|
|
13523
|
+
className: "moonx-icon--sm"
|
|
13492
13524
|
})
|
|
13493
13525
|
})
|
|
13494
13526
|
}),
|
|
13495
13527
|
/* @__PURE__ */ jsxs44("div", {
|
|
13496
|
-
className: "
|
|
13528
|
+
className: "moonx-flow-header",
|
|
13497
13529
|
style: {
|
|
13498
13530
|
marginTop: "1rem"
|
|
13499
13531
|
},
|
|
13500
13532
|
children: [
|
|
13501
13533
|
/* @__PURE__ */ jsx54("div", {
|
|
13502
|
-
className: "
|
|
13534
|
+
className: "moonx-flow-logo",
|
|
13503
13535
|
children: /* @__PURE__ */ jsx54(AppLogo, {
|
|
13504
13536
|
appConfig: appConfig,
|
|
13505
|
-
className: "
|
|
13537
|
+
className: "moonx-icon--lg"
|
|
13506
13538
|
})
|
|
13507
13539
|
}),
|
|
13508
13540
|
/* @__PURE__ */ jsx54("div", {
|
|
13509
|
-
className: "
|
|
13541
|
+
className: "moonx-label",
|
|
13510
13542
|
children: t("sendTransaction.confirmTransaction")
|
|
13511
13543
|
}),
|
|
13512
13544
|
/* @__PURE__ */ jsx54("div", {
|
|
13513
|
-
className: "
|
|
13545
|
+
className: "moonx-text--secondary",
|
|
13514
13546
|
children: t("sendTransaction.wantsPermission", {
|
|
13515
13547
|
companyName: appConfig === null || appConfig === void 0 ? void 0 : appConfig.name
|
|
13516
13548
|
})
|
|
@@ -13518,7 +13550,7 @@ var SendEthereumTransaction = function SendEthereumTransaction(param) {
|
|
|
13518
13550
|
]
|
|
13519
13551
|
}),
|
|
13520
13552
|
isLoadingError ? /* @__PURE__ */ jsxs44("div", {
|
|
13521
|
-
className: "
|
|
13553
|
+
className: "moonx-flex-col-center",
|
|
13522
13554
|
style: {
|
|
13523
13555
|
textAlign: "center",
|
|
13524
13556
|
marginTop: "2rem",
|
|
@@ -13527,17 +13559,17 @@ var SendEthereumTransaction = function SendEthereumTransaction(param) {
|
|
|
13527
13559
|
children: [
|
|
13528
13560
|
/* @__PURE__ */ jsx54("div", {
|
|
13529
13561
|
children: /* @__PURE__ */ jsx54(XCircle2, {
|
|
13530
|
-
className: "
|
|
13562
|
+
className: "moonx-icon--lg moonx-icon--error"
|
|
13531
13563
|
})
|
|
13532
13564
|
}),
|
|
13533
13565
|
/* @__PURE__ */ jsxs44("div", {
|
|
13534
13566
|
children: [
|
|
13535
13567
|
/* @__PURE__ */ jsx54("div", {
|
|
13536
|
-
className: "
|
|
13568
|
+
className: "moonx-label",
|
|
13537
13569
|
children: "Error detected"
|
|
13538
13570
|
}),
|
|
13539
13571
|
/* @__PURE__ */ jsx54("div", {
|
|
13540
|
-
className: "
|
|
13572
|
+
className: "moonx-text--secondary",
|
|
13541
13573
|
style: {
|
|
13542
13574
|
marginTop: "1rem"
|
|
13543
13575
|
},
|
|
@@ -13547,12 +13579,12 @@ var SendEthereumTransaction = function SendEthereumTransaction(param) {
|
|
|
13547
13579
|
})
|
|
13548
13580
|
]
|
|
13549
13581
|
}) : /* @__PURE__ */ jsx54("div", {
|
|
13550
|
-
className: "
|
|
13582
|
+
className: "moonx-flex-col",
|
|
13551
13583
|
style: {
|
|
13552
13584
|
marginTop: "1rem"
|
|
13553
13585
|
},
|
|
13554
13586
|
children: /* @__PURE__ */ jsxs44("div", {
|
|
13555
|
-
className: "
|
|
13587
|
+
className: "moonx-detail-card__rows",
|
|
13556
13588
|
children: [
|
|
13557
13589
|
/* @__PURE__ */ jsxs44("div", {
|
|
13558
13590
|
style: {
|
|
@@ -13571,7 +13603,7 @@ var SendEthereumTransaction = function SendEthereumTransaction(param) {
|
|
|
13571
13603
|
/* @__PURE__ */ jsx54(DetailRow, {
|
|
13572
13604
|
label: formatAddress((wallet === null || wallet === void 0 ? void 0 : wallet.public_address) || "", 8, 8),
|
|
13573
13605
|
value: isLoadingConfirm ? /* @__PURE__ */ jsx54("div", {
|
|
13574
|
-
className: "
|
|
13606
|
+
className: "moonx-skeleton",
|
|
13575
13607
|
style: {
|
|
13576
13608
|
height: "1rem",
|
|
13577
13609
|
width: "4rem"
|
|
@@ -13598,7 +13630,7 @@ var SendEthereumTransaction = function SendEthereumTransaction(param) {
|
|
|
13598
13630
|
children: /* @__PURE__ */ jsx54(DetailRow, {
|
|
13599
13631
|
label: t("sendTransaction.estimatedFee"),
|
|
13600
13632
|
value: isLoadingConfirm ? /* @__PURE__ */ jsx54("div", {
|
|
13601
|
-
className: "
|
|
13633
|
+
className: "moonx-skeleton",
|
|
13602
13634
|
style: {
|
|
13603
13635
|
height: "1rem",
|
|
13604
13636
|
width: "4rem"
|
|
@@ -13624,10 +13656,10 @@ var SendEthereumTransaction = function SendEthereumTransaction(param) {
|
|
|
13624
13656
|
},
|
|
13625
13657
|
children: [
|
|
13626
13658
|
/* @__PURE__ */ jsx54(ListCheck, {
|
|
13627
|
-
className: "
|
|
13659
|
+
className: "moonx-icon--sm"
|
|
13628
13660
|
}),
|
|
13629
13661
|
/* @__PURE__ */ jsx54("span", {
|
|
13630
|
-
className: "
|
|
13662
|
+
className: "moonx-label",
|
|
13631
13663
|
children: isLoadingConfirm ? t("common.loading") : t("sendTransaction.viewAdvancedDetails")
|
|
13632
13664
|
})
|
|
13633
13665
|
]
|
|
@@ -13637,9 +13669,9 @@ var SendEthereumTransaction = function SendEthereumTransaction(param) {
|
|
|
13637
13669
|
})
|
|
13638
13670
|
}),
|
|
13639
13671
|
/* @__PURE__ */ jsx54("div", {
|
|
13640
|
-
className: "
|
|
13672
|
+
className: "moonx-flow-footer",
|
|
13641
13673
|
children: /* @__PURE__ */ jsxs44("div", {
|
|
13642
|
-
className: "
|
|
13674
|
+
className: "moonx-flow-footer__actions",
|
|
13643
13675
|
children: [
|
|
13644
13676
|
/* @__PURE__ */ jsx54(Button, {
|
|
13645
13677
|
variant: "outline",
|
|
@@ -13667,7 +13699,7 @@ function SendEthereumTransactionFailed(param) {
|
|
|
13667
13699
|
var t = useTranslation().t;
|
|
13668
13700
|
var isDark = propsIsDark !== void 0 ? propsIsDark : isDarkMode(config === null || config === void 0 ? void 0 : (_config_config = config.config) === null || _config_config === void 0 ? void 0 : _config_config.theme, config === null || config === void 0 ? void 0 : (_config_config1 = config.config) === null || _config_config1 === void 0 ? void 0 : (_config_config_appearance = _config_config1.appearance) === null || _config_config_appearance === void 0 ? void 0 : _config_config_appearance.displayMode, config === null || config === void 0 ? void 0 : (_config_config2 = config.config) === null || _config_config2 === void 0 ? void 0 : (_config_config_appearance1 = _config_config2.appearance) === null || _config_config_appearance1 === void 0 ? void 0 : _config_config_appearance1.backgroundColor);
|
|
13669
13701
|
return /* @__PURE__ */ jsx55("div", {
|
|
13670
|
-
className: "
|
|
13702
|
+
className: "moonx-flow-overlay",
|
|
13671
13703
|
children: /* @__PURE__ */ jsxs45(RootCard, {
|
|
13672
13704
|
centerContent: false,
|
|
13673
13705
|
isDark: isDark,
|
|
@@ -13675,29 +13707,29 @@ function SendEthereumTransactionFailed(param) {
|
|
|
13675
13707
|
appearance: config === null || config === void 0 ? void 0 : (_config_config4 = config.config) === null || _config_config4 === void 0 ? void 0 : _config_config4.appearance,
|
|
13676
13708
|
children: [
|
|
13677
13709
|
/* @__PURE__ */ jsx55("div", {
|
|
13678
|
-
className: "
|
|
13710
|
+
className: "moonx-flow-close",
|
|
13679
13711
|
children: /* @__PURE__ */ jsx55(Button, {
|
|
13680
13712
|
variant: "ghost",
|
|
13681
13713
|
size: "icon",
|
|
13682
13714
|
onClick: onClose,
|
|
13683
13715
|
children: /* @__PURE__ */ jsx55(X12, {
|
|
13684
|
-
className: "
|
|
13716
|
+
className: "moonx-icon--md"
|
|
13685
13717
|
})
|
|
13686
13718
|
})
|
|
13687
13719
|
}),
|
|
13688
13720
|
/* @__PURE__ */ jsx55("div", {
|
|
13689
|
-
className: "
|
|
13721
|
+
className: "moonx-flex-center",
|
|
13690
13722
|
children: /* @__PURE__ */ jsx55("div", {
|
|
13691
13723
|
style: {
|
|
13692
|
-
animation: "
|
|
13724
|
+
animation: "moonx-error-bounce 0.8s ease-out 0.1s both"
|
|
13693
13725
|
},
|
|
13694
13726
|
children: /* @__PURE__ */ jsx55(XCircle3, {
|
|
13695
|
-
className: "
|
|
13727
|
+
className: "moonx-icon--2xl moonx-icon--error"
|
|
13696
13728
|
})
|
|
13697
13729
|
})
|
|
13698
13730
|
}),
|
|
13699
13731
|
/* @__PURE__ */ jsx55("div", {
|
|
13700
|
-
className: "
|
|
13732
|
+
className: "moonx-text--heading",
|
|
13701
13733
|
style: {
|
|
13702
13734
|
paddingTop: "2rem"
|
|
13703
13735
|
},
|
|
@@ -13710,7 +13742,7 @@ function SendEthereumTransactionFailed(param) {
|
|
|
13710
13742
|
paddingRight: "0.5rem"
|
|
13711
13743
|
},
|
|
13712
13744
|
children: /* @__PURE__ */ jsx55("div", {
|
|
13713
|
-
className: "
|
|
13745
|
+
className: "moonx-text--secondary moonx-text--semibold",
|
|
13714
13746
|
children: (uiConfig === null || uiConfig === void 0 ? void 0 : uiConfig.description) || t("sendTransaction.failure.transactionFailedDescription")
|
|
13715
13747
|
})
|
|
13716
13748
|
}),
|
|
@@ -13721,14 +13753,14 @@ function SendEthereumTransactionFailed(param) {
|
|
|
13721
13753
|
marginTop: "1.5rem"
|
|
13722
13754
|
},
|
|
13723
13755
|
children: /* @__PURE__ */ jsx55("div", {
|
|
13724
|
-
className: "
|
|
13756
|
+
className: "moonx-text--sm moonx-text--semibold",
|
|
13725
13757
|
children: (uiConfig === null || uiConfig === void 0 ? void 0 : uiConfig.errorTitle) || t("sendTransaction.failure.transactionFailedErrorDetails")
|
|
13726
13758
|
})
|
|
13727
13759
|
}),
|
|
13728
13760
|
/* @__PURE__ */ jsx55("div", {
|
|
13729
|
-
className: "
|
|
13761
|
+
className: "moonx-error-scroll",
|
|
13730
13762
|
children: /* @__PURE__ */ jsx55("div", {
|
|
13731
|
-
className: "
|
|
13763
|
+
className: "moonx-text--secondary moonx-text--semibold",
|
|
13732
13764
|
style: {
|
|
13733
13765
|
padding: "0 0.5rem"
|
|
13734
13766
|
},
|
|
@@ -13736,9 +13768,9 @@ function SendEthereumTransactionFailed(param) {
|
|
|
13736
13768
|
})
|
|
13737
13769
|
}),
|
|
13738
13770
|
/* @__PURE__ */ jsx55("div", {
|
|
13739
|
-
className: "
|
|
13771
|
+
className: "moonx-flow-footer",
|
|
13740
13772
|
children: /* @__PURE__ */ jsx55("div", {
|
|
13741
|
-
className: "
|
|
13773
|
+
className: "moonx-flow-footer__actions",
|
|
13742
13774
|
children: /* @__PURE__ */ jsx55(Button, {
|
|
13743
13775
|
onClick: onClose,
|
|
13744
13776
|
children: (uiConfig === null || uiConfig === void 0 ? void 0 : uiConfig.closeButtonText) || t("sendTransaction.failure.transactionFailedRetryTransaction")
|
|
@@ -13758,7 +13790,7 @@ function SendEthereumTransactionSuccess(param) {
|
|
|
13758
13790
|
var t = useTranslation().t;
|
|
13759
13791
|
var isDark = propsIsDark !== void 0 ? propsIsDark : isDarkMode(config === null || config === void 0 ? void 0 : (_config_config = config.config) === null || _config_config === void 0 ? void 0 : _config_config.theme, config === null || config === void 0 ? void 0 : (_config_config1 = config.config) === null || _config_config1 === void 0 ? void 0 : (_config_config_appearance = _config_config1.appearance) === null || _config_config_appearance === void 0 ? void 0 : _config_config_appearance.displayMode, config === null || config === void 0 ? void 0 : (_config_config2 = config.config) === null || _config_config2 === void 0 ? void 0 : (_config_config_appearance1 = _config_config2.appearance) === null || _config_config_appearance1 === void 0 ? void 0 : _config_config_appearance1.backgroundColor);
|
|
13760
13792
|
return /* @__PURE__ */ jsx56("div", {
|
|
13761
|
-
className: "
|
|
13793
|
+
className: "moonx-flow-overlay",
|
|
13762
13794
|
children: /* @__PURE__ */ jsxs46(RootCard, {
|
|
13763
13795
|
centerContent: false,
|
|
13764
13796
|
isDark: isDark,
|
|
@@ -13766,18 +13798,18 @@ function SendEthereumTransactionSuccess(param) {
|
|
|
13766
13798
|
appearance: config === null || config === void 0 ? void 0 : (_config_config4 = config.config) === null || _config_config4 === void 0 ? void 0 : _config_config4.appearance,
|
|
13767
13799
|
children: [
|
|
13768
13800
|
/* @__PURE__ */ jsx56("div", {
|
|
13769
|
-
className: "
|
|
13801
|
+
className: "moonx-flex-center",
|
|
13770
13802
|
children: /* @__PURE__ */ jsx56("div", {
|
|
13771
13803
|
style: {
|
|
13772
|
-
animation: "
|
|
13804
|
+
animation: "moonx-success-bounce 0.8s ease-out 0.1s both"
|
|
13773
13805
|
},
|
|
13774
13806
|
children: /* @__PURE__ */ jsx56(CheckCircle25, {
|
|
13775
|
-
className: "
|
|
13807
|
+
className: "moonx-icon--2xl moonx-icon--success"
|
|
13776
13808
|
})
|
|
13777
13809
|
})
|
|
13778
13810
|
}),
|
|
13779
13811
|
/* @__PURE__ */ jsx56("div", {
|
|
13780
|
-
className: "
|
|
13812
|
+
className: "moonx-text--heading",
|
|
13781
13813
|
style: {
|
|
13782
13814
|
paddingTop: "2rem"
|
|
13783
13815
|
},
|
|
@@ -13790,14 +13822,14 @@ function SendEthereumTransactionSuccess(param) {
|
|
|
13790
13822
|
paddingRight: "0.5rem"
|
|
13791
13823
|
},
|
|
13792
13824
|
children: /* @__PURE__ */ jsx56("div", {
|
|
13793
|
-
className: "
|
|
13825
|
+
className: "moonx-text--secondary moonx-text--semibold",
|
|
13794
13826
|
children: (uiConfig === null || uiConfig === void 0 ? void 0 : uiConfig.description) || t("sendTransaction.success.transactionCompleteDescription")
|
|
13795
13827
|
})
|
|
13796
13828
|
}),
|
|
13797
13829
|
/* @__PURE__ */ jsx56("div", {
|
|
13798
|
-
className: "
|
|
13830
|
+
className: "moonx-detail-card",
|
|
13799
13831
|
children: /* @__PURE__ */ jsxs46("div", {
|
|
13800
|
-
className: "
|
|
13832
|
+
className: "moonx-detail-card__rows",
|
|
13801
13833
|
children: [
|
|
13802
13834
|
/* @__PURE__ */ jsx56(DetailRow, {
|
|
13803
13835
|
label: t("sendTransaction.success.transactionCompleteNetwork"),
|
|
@@ -13809,7 +13841,7 @@ function SendEthereumTransactionSuccess(param) {
|
|
|
13809
13841
|
/* @__PURE__ */ jsx56(DetailRow, {
|
|
13810
13842
|
label: t("sendTransaction.success.transactionCompleteTotal"),
|
|
13811
13843
|
value: /* @__PURE__ */ jsxs46("div", {
|
|
13812
|
-
className: "
|
|
13844
|
+
className: "moonx-flex-col",
|
|
13813
13845
|
style: {
|
|
13814
13846
|
textAlign: "right"
|
|
13815
13847
|
},
|
|
@@ -13818,7 +13850,7 @@ function SendEthereumTransactionSuccess(param) {
|
|
|
13818
13850
|
children: transactionSummary.totalFiat
|
|
13819
13851
|
}),
|
|
13820
13852
|
/* @__PURE__ */ jsx56("span", {
|
|
13821
|
-
className: "
|
|
13853
|
+
className: "moonx-text--secondary",
|
|
13822
13854
|
children: transactionSummary.totalCrypto
|
|
13823
13855
|
})
|
|
13824
13856
|
]
|
|
@@ -13966,7 +13998,7 @@ function TransactionDetails(param) {
|
|
|
13966
13998
|
if (loading) {
|
|
13967
13999
|
var _config_config5, _config_config6;
|
|
13968
14000
|
return /* @__PURE__ */ jsx57("div", {
|
|
13969
|
-
className: "
|
|
14001
|
+
className: "moonx-flow-overlay",
|
|
13970
14002
|
children: /* @__PURE__ */ jsx57(RootCard, {
|
|
13971
14003
|
centerContent: false,
|
|
13972
14004
|
isDark: isDark,
|
|
@@ -13978,7 +14010,7 @@ function TransactionDetails(param) {
|
|
|
13978
14010
|
textAlign: "center"
|
|
13979
14011
|
},
|
|
13980
14012
|
children: /* @__PURE__ */ jsx57("div", {
|
|
13981
|
-
className: "
|
|
14013
|
+
className: "moonx-text--secondary",
|
|
13982
14014
|
children: "Loading transaction details..."
|
|
13983
14015
|
})
|
|
13984
14016
|
})
|
|
@@ -13988,7 +14020,7 @@ function TransactionDetails(param) {
|
|
|
13988
14020
|
if (error) {
|
|
13989
14021
|
var _config_config7, _config_config8;
|
|
13990
14022
|
return /* @__PURE__ */ jsx57("div", {
|
|
13991
|
-
className: "
|
|
14023
|
+
className: "moonx-flow-overlay",
|
|
13992
14024
|
children: /* @__PURE__ */ jsxs47(RootCard, {
|
|
13993
14025
|
centerContent: false,
|
|
13994
14026
|
isDark: isDark,
|
|
@@ -13996,18 +14028,18 @@ function TransactionDetails(param) {
|
|
|
13996
14028
|
appearance: config === null || config === void 0 ? void 0 : (_config_config8 = config.config) === null || _config_config8 === void 0 ? void 0 : _config_config8.appearance,
|
|
13997
14029
|
children: [
|
|
13998
14030
|
/* @__PURE__ */ jsx57("div", {
|
|
13999
|
-
className: "
|
|
14031
|
+
className: "moonx-flow-close",
|
|
14000
14032
|
children: /* @__PURE__ */ jsx57(Button, {
|
|
14001
14033
|
variant: "ghost",
|
|
14002
14034
|
size: "icon",
|
|
14003
14035
|
onClick: onClose,
|
|
14004
14036
|
children: /* @__PURE__ */ jsx57(X13, {
|
|
14005
|
-
className: "
|
|
14037
|
+
className: "moonx-icon--md"
|
|
14006
14038
|
})
|
|
14007
14039
|
})
|
|
14008
14040
|
}),
|
|
14009
14041
|
/* @__PURE__ */ jsxs47("div", {
|
|
14010
|
-
className: "
|
|
14042
|
+
className: "moonx-flex-col-center",
|
|
14011
14043
|
style: {
|
|
14012
14044
|
padding: "2rem",
|
|
14013
14045
|
textAlign: "center",
|
|
@@ -14020,7 +14052,7 @@ function TransactionDetails(param) {
|
|
|
14020
14052
|
width: "3rem",
|
|
14021
14053
|
height: "3rem",
|
|
14022
14054
|
borderRadius: "50%",
|
|
14023
|
-
backgroundColor: "var(--
|
|
14055
|
+
backgroundColor: "var(--moonx-color-error)",
|
|
14024
14056
|
opacity: 0.1,
|
|
14025
14057
|
display: "flex",
|
|
14026
14058
|
alignItems: "center",
|
|
@@ -14029,7 +14061,7 @@ function TransactionDetails(param) {
|
|
|
14029
14061
|
},
|
|
14030
14062
|
children: /* @__PURE__ */ jsx57("div", {
|
|
14031
14063
|
style: {
|
|
14032
|
-
color: "var(--
|
|
14064
|
+
color: "var(--moonx-color-error)",
|
|
14033
14065
|
fontSize: "1.5rem",
|
|
14034
14066
|
fontWeight: "bold"
|
|
14035
14067
|
},
|
|
@@ -14043,7 +14075,7 @@ function TransactionDetails(param) {
|
|
|
14043
14075
|
children: "Unable to Load Transaction"
|
|
14044
14076
|
}),
|
|
14045
14077
|
/* @__PURE__ */ jsx57("div", {
|
|
14046
|
-
className: "
|
|
14078
|
+
className: "moonx-text--secondary",
|
|
14047
14079
|
style: {
|
|
14048
14080
|
marginBottom: "1rem",
|
|
14049
14081
|
maxWidth: "300px"
|
|
@@ -14053,9 +14085,9 @@ function TransactionDetails(param) {
|
|
|
14053
14085
|
]
|
|
14054
14086
|
}),
|
|
14055
14087
|
/* @__PURE__ */ jsx57("div", {
|
|
14056
|
-
className: "
|
|
14088
|
+
className: "moonx-flow-footer",
|
|
14057
14089
|
children: /* @__PURE__ */ jsx57("div", {
|
|
14058
|
-
className: "
|
|
14090
|
+
className: "moonx-flow-footer__actions",
|
|
14059
14091
|
children: /* @__PURE__ */ jsx57(Button, {
|
|
14060
14092
|
onClick: onClose,
|
|
14061
14093
|
variant: "default",
|
|
@@ -14069,7 +14101,7 @@ function TransactionDetails(param) {
|
|
|
14069
14101
|
});
|
|
14070
14102
|
}
|
|
14071
14103
|
return /* @__PURE__ */ jsx57("div", {
|
|
14072
|
-
className: "
|
|
14104
|
+
className: "moonx-flow-overlay",
|
|
14073
14105
|
children: /* @__PURE__ */ jsxs47(RootCard, {
|
|
14074
14106
|
centerContent: false,
|
|
14075
14107
|
isDark: isDark,
|
|
@@ -14077,28 +14109,28 @@ function TransactionDetails(param) {
|
|
|
14077
14109
|
appearance: config === null || config === void 0 ? void 0 : (_config_config4 = config.config) === null || _config_config4 === void 0 ? void 0 : _config_config4.appearance,
|
|
14078
14110
|
children: [
|
|
14079
14111
|
/* @__PURE__ */ jsx57("div", {
|
|
14080
|
-
className: "
|
|
14112
|
+
className: "moonx-flow-close",
|
|
14081
14113
|
children: /* @__PURE__ */ jsx57(Button, {
|
|
14082
14114
|
variant: "ghost",
|
|
14083
14115
|
size: "icon",
|
|
14084
14116
|
onClick: onClose,
|
|
14085
14117
|
children: /* @__PURE__ */ jsx57(X13, {
|
|
14086
|
-
className: "
|
|
14118
|
+
className: "moonx-icon--md"
|
|
14087
14119
|
})
|
|
14088
14120
|
})
|
|
14089
14121
|
}),
|
|
14090
14122
|
/* @__PURE__ */ jsx57("div", {
|
|
14091
|
-
className: "
|
|
14123
|
+
className: "moonx-flow-header",
|
|
14092
14124
|
style: {
|
|
14093
14125
|
marginTop: "1rem"
|
|
14094
14126
|
},
|
|
14095
14127
|
children: /* @__PURE__ */ jsx57("div", {
|
|
14096
|
-
className: "
|
|
14128
|
+
className: "moonx-label",
|
|
14097
14129
|
children: (uiConfig === null || uiConfig === void 0 ? void 0 : uiConfig.title) || t("sendTransaction.advancedTransactionDetails")
|
|
14098
14130
|
})
|
|
14099
14131
|
}),
|
|
14100
14132
|
/* @__PURE__ */ jsx57("div", {
|
|
14101
|
-
className: "
|
|
14133
|
+
className: "moonx-scrollable-list",
|
|
14102
14134
|
style: {
|
|
14103
14135
|
height: "300px",
|
|
14104
14136
|
margin: "1rem 0.75rem 0"
|
|
@@ -14109,14 +14141,14 @@ function TransactionDetails(param) {
|
|
|
14109
14141
|
},
|
|
14110
14142
|
children: transactionDetails.map(function(section) {
|
|
14111
14143
|
return /* @__PURE__ */ jsxs47("div", {
|
|
14112
|
-
className: "
|
|
14144
|
+
className: "moonx-flex-col",
|
|
14113
14145
|
style: {
|
|
14114
14146
|
justifyContent: "space-between",
|
|
14115
14147
|
marginBottom: "1.5rem"
|
|
14116
14148
|
},
|
|
14117
14149
|
children: [
|
|
14118
14150
|
/* @__PURE__ */ jsx57("h3", {
|
|
14119
|
-
className: "
|
|
14151
|
+
className: "moonx-label",
|
|
14120
14152
|
style: {
|
|
14121
14153
|
marginBottom: "0.75rem"
|
|
14122
14154
|
},
|
|
@@ -14132,7 +14164,7 @@ function TransactionDetails(param) {
|
|
|
14132
14164
|
paddingTop: "0.5rem",
|
|
14133
14165
|
paddingBottom: "0.5rem"
|
|
14134
14166
|
}, index < section.details.length - 1 && {
|
|
14135
|
-
borderBottom: "1px solid var(--
|
|
14167
|
+
borderBottom: "1px solid var(--moonx-color-border)"
|
|
14136
14168
|
})
|
|
14137
14169
|
}, index);
|
|
14138
14170
|
})
|
|
@@ -14142,9 +14174,9 @@ function TransactionDetails(param) {
|
|
|
14142
14174
|
})
|
|
14143
14175
|
}),
|
|
14144
14176
|
/* @__PURE__ */ jsx57("div", {
|
|
14145
|
-
className: "
|
|
14177
|
+
className: "moonx-flow-footer",
|
|
14146
14178
|
children: /* @__PURE__ */ jsx57("div", {
|
|
14147
|
-
className: "
|
|
14179
|
+
className: "moonx-flow-footer__actions",
|
|
14148
14180
|
children: /* @__PURE__ */ jsx57(Button, {
|
|
14149
14181
|
onClick: onClose,
|
|
14150
14182
|
variant: "default",
|
|
@@ -14167,6 +14199,12 @@ var SendEthereumTransactionFlow = function SendEthereumTransactionFlow(param) {
|
|
|
14167
14199
|
var _useState411 = _sliced_to_array(useState41(""), 2), transactionHash = _useState411[0], setTransactionHash = _useState411[1];
|
|
14168
14200
|
var _useState412 = _sliced_to_array(useState41(null), 2), confirmTransactionData = _useState412[0], setConfirmTransactionData = _useState412[1];
|
|
14169
14201
|
var _useState413 = _sliced_to_array(useState41(false), 2), isSending = _useState413[0], setIsSending = _useState413[1];
|
|
14202
|
+
var _useState414 = _sliced_to_array(useState41(function() {
|
|
14203
|
+
return structuredClone(sendTransactionRequest);
|
|
14204
|
+
}), 1), request = _useState414[0];
|
|
14205
|
+
var _useState415 = _sliced_to_array(useState41(function() {
|
|
14206
|
+
return structuredClone(wallet);
|
|
14207
|
+
}), 1), requestWallet = _useState415[0];
|
|
14170
14208
|
var onConfirm = function onConfirm() {
|
|
14171
14209
|
handleSend();
|
|
14172
14210
|
};
|
|
@@ -14185,15 +14223,15 @@ var SendEthereumTransactionFlow = function SendEthereumTransactionFlow(param) {
|
|
|
14185
14223
|
};
|
|
14186
14224
|
var handleSend = function handleSend() {
|
|
14187
14225
|
return _async_to_generator(function() {
|
|
14188
|
-
var _options_uiOptions, client, _ref, userHandleB64url, credentialIdB64url, presenceTokens, signed, broadcastResponse, broadcast, hash, parentClient, error;
|
|
14226
|
+
var _options_uiOptions, client, serializedToSign, _ref, userHandleB64url, credentialIdB64url, presenceTokens, signed, broadcastResponse, broadcast, hash, parentClient, error;
|
|
14189
14227
|
return _ts_generator(this, function(_state) {
|
|
14190
14228
|
switch(_state.label){
|
|
14191
14229
|
case 0:
|
|
14192
14230
|
_state.trys.push([
|
|
14193
14231
|
0,
|
|
14194
|
-
|
|
14232
|
+
6,
|
|
14195
14233
|
,
|
|
14196
|
-
|
|
14234
|
+
7
|
|
14197
14235
|
]);
|
|
14198
14236
|
setIsSending(true);
|
|
14199
14237
|
client = getIframeClient(publishableKey);
|
|
@@ -14205,27 +14243,33 @@ var SendEthereumTransactionFlow = function SendEthereumTransactionFlow(param) {
|
|
|
14205
14243
|
}
|
|
14206
14244
|
return [
|
|
14207
14245
|
4,
|
|
14208
|
-
|
|
14246
|
+
canonicalSerializedForSigning(request.transaction, request.serializedTransaction)
|
|
14209
14247
|
];
|
|
14210
14248
|
case 1:
|
|
14249
|
+
serializedToSign = _state.sent();
|
|
14250
|
+
return [
|
|
14251
|
+
4,
|
|
14252
|
+
onAssertPasskey()
|
|
14253
|
+
];
|
|
14254
|
+
case 2:
|
|
14211
14255
|
_ref = _state.sent(), userHandleB64url = _ref.userHandleB64url, credentialIdB64url = _ref.credentialIdB64url, presenceTokens = _ref.presenceTokens;
|
|
14212
14256
|
return [
|
|
14213
14257
|
4,
|
|
14214
14258
|
client.send(PostMessageType22.WALLET, PostMessageMethod21.SIGN_TRANSACTION, {
|
|
14215
14259
|
publishableKey: publishableKey,
|
|
14216
|
-
serializedTransaction:
|
|
14217
|
-
wallet:
|
|
14260
|
+
serializedTransaction: serializedToSign,
|
|
14261
|
+
wallet: requestWallet,
|
|
14218
14262
|
options: options,
|
|
14219
14263
|
userHandleB64url: userHandleB64url,
|
|
14220
14264
|
credentialIdB64url: credentialIdB64url,
|
|
14221
14265
|
presenceTokens: presenceTokens
|
|
14222
14266
|
})
|
|
14223
14267
|
];
|
|
14224
|
-
case
|
|
14268
|
+
case 3:
|
|
14225
14269
|
signed = _state.sent();
|
|
14226
14270
|
return [
|
|
14227
14271
|
4,
|
|
14228
|
-
fetch(
|
|
14272
|
+
fetch(request.rpcUrl, {
|
|
14229
14273
|
method: "POST",
|
|
14230
14274
|
headers: {
|
|
14231
14275
|
"Content-Type": "application/json"
|
|
@@ -14240,13 +14284,13 @@ var SendEthereumTransactionFlow = function SendEthereumTransactionFlow(param) {
|
|
|
14240
14284
|
})
|
|
14241
14285
|
})
|
|
14242
14286
|
];
|
|
14243
|
-
case
|
|
14287
|
+
case 4:
|
|
14244
14288
|
broadcastResponse = _state.sent();
|
|
14245
14289
|
return [
|
|
14246
14290
|
4,
|
|
14247
14291
|
broadcastResponse.json()
|
|
14248
14292
|
];
|
|
14249
|
-
case
|
|
14293
|
+
case 5:
|
|
14250
14294
|
broadcast = _state.sent();
|
|
14251
14295
|
if (broadcast.error) {
|
|
14252
14296
|
setIsSending(false);
|
|
@@ -14271,21 +14315,21 @@ var SendEthereumTransactionFlow = function SendEthereumTransactionFlow(param) {
|
|
|
14271
14315
|
onComplete === null || onComplete === void 0 ? void 0 : onComplete({
|
|
14272
14316
|
hash: hash,
|
|
14273
14317
|
signature: signed.signature,
|
|
14274
|
-
metadata:
|
|
14318
|
+
metadata: request.metadata
|
|
14275
14319
|
});
|
|
14276
14320
|
}, getWaitBeforeCloseTime());
|
|
14277
14321
|
return [
|
|
14278
14322
|
3,
|
|
14279
|
-
|
|
14323
|
+
7
|
|
14280
14324
|
];
|
|
14281
|
-
case
|
|
14325
|
+
case 6:
|
|
14282
14326
|
error = _state.sent();
|
|
14283
14327
|
setIsSending(false);
|
|
14284
14328
|
setCurrentStep("failed");
|
|
14285
14329
|
return [
|
|
14286
14330
|
2
|
|
14287
14331
|
];
|
|
14288
|
-
case
|
|
14332
|
+
case 7:
|
|
14289
14333
|
return [
|
|
14290
14334
|
2
|
|
14291
14335
|
];
|
|
@@ -14316,10 +14360,10 @@ var SendEthereumTransactionFlow = function SendEthereumTransactionFlow(param) {
|
|
|
14316
14360
|
if (currentStep === "confirm") {
|
|
14317
14361
|
return /* @__PURE__ */ jsx58(SendEthereumTransaction, {
|
|
14318
14362
|
publishableKey: publishableKey,
|
|
14319
|
-
transaction:
|
|
14320
|
-
wallet:
|
|
14321
|
-
rpcUrl:
|
|
14322
|
-
network:
|
|
14363
|
+
transaction: request.serializedTransaction,
|
|
14364
|
+
wallet: requestWallet,
|
|
14365
|
+
rpcUrl: request.rpcUrl,
|
|
14366
|
+
network: request.network,
|
|
14323
14367
|
onCancel: handleCancel,
|
|
14324
14368
|
onConfirm: onConfirm,
|
|
14325
14369
|
onAdvancedDetailsClick: onAdvancedDetailsClick,
|
|
@@ -14339,22 +14383,22 @@ var SendEthereumTransactionFlow = function SendEthereumTransactionFlow(param) {
|
|
|
14339
14383
|
});
|
|
14340
14384
|
}
|
|
14341
14385
|
if (currentStep === "success") {
|
|
14342
|
-
var
|
|
14343
|
-
var txData = typeof
|
|
14386
|
+
var _request_metadata, _options_uiOptions1, _request_metadata1;
|
|
14387
|
+
var txData = typeof request.transaction === "string" ? null : request.transaction;
|
|
14344
14388
|
var ethAmount = (txData === null || txData === void 0 ? void 0 : txData.value) || "0";
|
|
14345
14389
|
var maxFeePerGas = (txData === null || txData === void 0 ? void 0 : txData.maxFeePerGas) || "0";
|
|
14346
14390
|
var gasLimit = (txData === null || txData === void 0 ? void 0 : txData.gasLimit) || (txData === null || txData === void 0 ? void 0 : txData.gas) || "21000";
|
|
14347
14391
|
var estimatedFeesWei = BigInt(maxFeePerGas) * BigInt(gasLimit);
|
|
14348
14392
|
var estimatedFeesEth = (Number(estimatedFeesWei) / 1e18).toFixed(6);
|
|
14349
|
-
var cryptoDisplay = ((
|
|
14393
|
+
var cryptoDisplay = ((_request_metadata = request.metadata) === null || _request_metadata === void 0 ? void 0 : _request_metadata.estimatedTokens) ? "".concat(ethAmount, " ETH → ").concat(request.metadata.estimatedTokens, " ").concat(request.metadata.tokenSymbol || "tokens") : "".concat(ethAmount, " ETH");
|
|
14350
14394
|
return /* @__PURE__ */ jsx58(SendEthereumTransactionSuccess, {
|
|
14351
14395
|
uiConfig: (_options_uiOptions1 = options.uiOptions) === null || _options_uiOptions1 === void 0 ? void 0 : _options_uiOptions1.success,
|
|
14352
14396
|
transactionSummary: {
|
|
14353
|
-
walletAddress:
|
|
14397
|
+
walletAddress: requestWallet.public_address,
|
|
14354
14398
|
totalCrypto: cryptoDisplay,
|
|
14355
|
-
totalFiat: ((
|
|
14399
|
+
totalFiat: ((_request_metadata1 = request.metadata) === null || _request_metadata1 === void 0 ? void 0 : _request_metadata1.totalFiat) || "$0.00",
|
|
14356
14400
|
fees: "".concat(estimatedFeesEth, " ETH"),
|
|
14357
|
-
network:
|
|
14401
|
+
network: request.network || "Ethereum Mainnet"
|
|
14358
14402
|
},
|
|
14359
14403
|
config: config
|
|
14360
14404
|
});
|
|
@@ -14499,7 +14543,7 @@ var SendTransaction = function SendTransaction(param) {
|
|
|
14499
14543
|
console.error("Failed to get confirm transaction:", error2 || "Unknown error");
|
|
14500
14544
|
};
|
|
14501
14545
|
return /* @__PURE__ */ jsx59("div", {
|
|
14502
|
-
className: "
|
|
14546
|
+
className: "moonx-flow-overlay",
|
|
14503
14547
|
children: /* @__PURE__ */ jsxs48(RootCard, {
|
|
14504
14548
|
centerContent: false,
|
|
14505
14549
|
isDark: isDark,
|
|
@@ -14507,35 +14551,35 @@ var SendTransaction = function SendTransaction(param) {
|
|
|
14507
14551
|
appearance: config === null || config === void 0 ? void 0 : (_config_config4 = config.config) === null || _config_config4 === void 0 ? void 0 : _config_config4.appearance,
|
|
14508
14552
|
children: [
|
|
14509
14553
|
/* @__PURE__ */ jsx59("div", {
|
|
14510
|
-
className: "
|
|
14554
|
+
className: "moonx-flow-close",
|
|
14511
14555
|
children: /* @__PURE__ */ jsx59(Button, {
|
|
14512
14556
|
variant: "ghost",
|
|
14513
14557
|
size: "icon",
|
|
14514
14558
|
onClick: onCancel,
|
|
14515
14559
|
children: /* @__PURE__ */ jsx59(X14, {
|
|
14516
|
-
className: "
|
|
14560
|
+
className: "moonx-icon--sm"
|
|
14517
14561
|
})
|
|
14518
14562
|
})
|
|
14519
14563
|
}),
|
|
14520
14564
|
/* @__PURE__ */ jsxs48("div", {
|
|
14521
|
-
className: "
|
|
14565
|
+
className: "moonx-flow-header",
|
|
14522
14566
|
style: {
|
|
14523
14567
|
marginTop: "1rem"
|
|
14524
14568
|
},
|
|
14525
14569
|
children: [
|
|
14526
14570
|
/* @__PURE__ */ jsx59("div", {
|
|
14527
|
-
className: "
|
|
14571
|
+
className: "moonx-flow-logo",
|
|
14528
14572
|
children: /* @__PURE__ */ jsx59(AppLogo, {
|
|
14529
14573
|
appConfig: appConfig,
|
|
14530
|
-
className: "
|
|
14574
|
+
className: "moonx-icon--lg"
|
|
14531
14575
|
})
|
|
14532
14576
|
}),
|
|
14533
14577
|
/* @__PURE__ */ jsx59("div", {
|
|
14534
|
-
className: "
|
|
14578
|
+
className: "moonx-label",
|
|
14535
14579
|
children: (uiConfig === null || uiConfig === void 0 ? void 0 : uiConfig.title) || t("sendTransaction.confirmTransaction")
|
|
14536
14580
|
}),
|
|
14537
14581
|
/* @__PURE__ */ jsx59("div", {
|
|
14538
|
-
className: "
|
|
14582
|
+
className: "moonx-text--secondary",
|
|
14539
14583
|
children: (uiConfig === null || uiConfig === void 0 ? void 0 : uiConfig.description) || t("sendTransaction.wantsPermission", {
|
|
14540
14584
|
companyName: appConfig === null || appConfig === void 0 ? void 0 : appConfig.name
|
|
14541
14585
|
})
|
|
@@ -14543,7 +14587,7 @@ var SendTransaction = function SendTransaction(param) {
|
|
|
14543
14587
|
]
|
|
14544
14588
|
}),
|
|
14545
14589
|
isLoadingError ? /* @__PURE__ */ jsxs48("div", {
|
|
14546
|
-
className: "
|
|
14590
|
+
className: "moonx-flex-col-center moonx-text--center",
|
|
14547
14591
|
style: {
|
|
14548
14592
|
marginTop: "2rem",
|
|
14549
14593
|
gap: "0.5rem"
|
|
@@ -14551,17 +14595,17 @@ var SendTransaction = function SendTransaction(param) {
|
|
|
14551
14595
|
children: [
|
|
14552
14596
|
/* @__PURE__ */ jsx59("div", {
|
|
14553
14597
|
children: /* @__PURE__ */ jsx59(XCircle4, {
|
|
14554
|
-
className: "
|
|
14598
|
+
className: "moonx-icon--lg moonx-icon--error"
|
|
14555
14599
|
})
|
|
14556
14600
|
}),
|
|
14557
14601
|
/* @__PURE__ */ jsxs48("div", {
|
|
14558
14602
|
children: [
|
|
14559
14603
|
/* @__PURE__ */ jsx59("div", {
|
|
14560
|
-
className: "
|
|
14604
|
+
className: "moonx-label",
|
|
14561
14605
|
children: "Error detected"
|
|
14562
14606
|
}),
|
|
14563
14607
|
/* @__PURE__ */ jsx59("div", {
|
|
14564
|
-
className: "
|
|
14608
|
+
className: "moonx-text--secondary",
|
|
14565
14609
|
style: {
|
|
14566
14610
|
marginTop: "1rem"
|
|
14567
14611
|
},
|
|
@@ -14571,15 +14615,15 @@ var SendTransaction = function SendTransaction(param) {
|
|
|
14571
14615
|
})
|
|
14572
14616
|
]
|
|
14573
14617
|
}) : /* @__PURE__ */ jsx59("div", {
|
|
14574
|
-
className: "
|
|
14618
|
+
className: "moonx-flex-col",
|
|
14575
14619
|
style: {
|
|
14576
14620
|
marginTop: "1rem"
|
|
14577
14621
|
},
|
|
14578
14622
|
children: /* @__PURE__ */ jsxs48("div", {
|
|
14579
|
-
className: "
|
|
14623
|
+
className: "moonx-detail-card__rows",
|
|
14580
14624
|
children: [
|
|
14581
14625
|
/* @__PURE__ */ jsxs48("div", {
|
|
14582
|
-
className: "
|
|
14626
|
+
className: "moonx-flex-col",
|
|
14583
14627
|
style: {
|
|
14584
14628
|
paddingLeft: "0.5rem",
|
|
14585
14629
|
paddingRight: "0.5rem",
|
|
@@ -14594,7 +14638,7 @@ var SendTransaction = function SendTransaction(param) {
|
|
|
14594
14638
|
/* @__PURE__ */ jsx59(DetailRow, {
|
|
14595
14639
|
label: formatAddress(walletAddress, 8, 8),
|
|
14596
14640
|
value: isLoadingConfirm ? /* @__PURE__ */ jsx59("div", {
|
|
14597
|
-
className: "
|
|
14641
|
+
className: "moonx-skeleton",
|
|
14598
14642
|
style: {
|
|
14599
14643
|
height: "1rem",
|
|
14600
14644
|
width: "4rem"
|
|
@@ -14621,7 +14665,7 @@ var SendTransaction = function SendTransaction(param) {
|
|
|
14621
14665
|
children: /* @__PURE__ */ jsx59(DetailRow, {
|
|
14622
14666
|
label: t("sendTransaction.estimatedFee"),
|
|
14623
14667
|
value: isLoadingConfirm ? /* @__PURE__ */ jsx59("div", {
|
|
14624
|
-
className: "
|
|
14668
|
+
className: "moonx-skeleton",
|
|
14625
14669
|
style: {
|
|
14626
14670
|
height: "1rem",
|
|
14627
14671
|
width: "4rem"
|
|
@@ -14647,10 +14691,10 @@ var SendTransaction = function SendTransaction(param) {
|
|
|
14647
14691
|
},
|
|
14648
14692
|
children: [
|
|
14649
14693
|
/* @__PURE__ */ jsx59(ListCheck2, {
|
|
14650
|
-
className: "
|
|
14694
|
+
className: "moonx-icon--sm"
|
|
14651
14695
|
}),
|
|
14652
14696
|
/* @__PURE__ */ jsx59("span", {
|
|
14653
|
-
className: "
|
|
14697
|
+
className: "moonx-label",
|
|
14654
14698
|
children: isLoadingConfirm ? t("common.loading") : t("sendTransaction.viewAdvancedDetails")
|
|
14655
14699
|
})
|
|
14656
14700
|
]
|
|
@@ -14660,9 +14704,9 @@ var SendTransaction = function SendTransaction(param) {
|
|
|
14660
14704
|
})
|
|
14661
14705
|
}),
|
|
14662
14706
|
/* @__PURE__ */ jsx59("div", {
|
|
14663
|
-
className: "
|
|
14707
|
+
className: "moonx-flow-footer",
|
|
14664
14708
|
children: /* @__PURE__ */ jsxs48("div", {
|
|
14665
|
-
className: "
|
|
14709
|
+
className: "moonx-flow-footer__actions",
|
|
14666
14710
|
children: [
|
|
14667
14711
|
/* @__PURE__ */ jsx59(Button, {
|
|
14668
14712
|
variant: "outline",
|
|
@@ -14690,7 +14734,7 @@ function SendTransactionFailed(param) {
|
|
|
14690
14734
|
var t = useTranslation().t;
|
|
14691
14735
|
var isDark = propsIsDark !== void 0 ? propsIsDark : isDarkMode(config === null || config === void 0 ? void 0 : (_config_config = config.config) === null || _config_config === void 0 ? void 0 : _config_config.theme, config === null || config === void 0 ? void 0 : (_config_config1 = config.config) === null || _config_config1 === void 0 ? void 0 : (_config_config_appearance = _config_config1.appearance) === null || _config_config_appearance === void 0 ? void 0 : _config_config_appearance.displayMode, config === null || config === void 0 ? void 0 : (_config_config2 = config.config) === null || _config_config2 === void 0 ? void 0 : (_config_config_appearance1 = _config_config2.appearance) === null || _config_config_appearance1 === void 0 ? void 0 : _config_config_appearance1.backgroundColor);
|
|
14692
14736
|
return /* @__PURE__ */ jsx60("div", {
|
|
14693
|
-
className: "
|
|
14737
|
+
className: "moonx-flow-overlay",
|
|
14694
14738
|
children: /* @__PURE__ */ jsxs49(RootCard, {
|
|
14695
14739
|
centerContent: false,
|
|
14696
14740
|
isDark: isDark,
|
|
@@ -14698,42 +14742,42 @@ function SendTransactionFailed(param) {
|
|
|
14698
14742
|
appearance: config === null || config === void 0 ? void 0 : (_config_config4 = config.config) === null || _config_config4 === void 0 ? void 0 : _config_config4.appearance,
|
|
14699
14743
|
children: [
|
|
14700
14744
|
/* @__PURE__ */ jsx60("div", {
|
|
14701
|
-
className: "
|
|
14745
|
+
className: "moonx-flow-close",
|
|
14702
14746
|
children: /* @__PURE__ */ jsx60(Button, {
|
|
14703
14747
|
variant: "ghost",
|
|
14704
14748
|
size: "icon",
|
|
14705
14749
|
onClick: onClose,
|
|
14706
14750
|
children: /* @__PURE__ */ jsx60(X15, {
|
|
14707
|
-
className: "
|
|
14751
|
+
className: "moonx-icon--md"
|
|
14708
14752
|
})
|
|
14709
14753
|
})
|
|
14710
14754
|
}),
|
|
14711
14755
|
/* @__PURE__ */ jsx60("div", {
|
|
14712
|
-
className: "
|
|
14756
|
+
className: "moonx-flex-center",
|
|
14713
14757
|
children: /* @__PURE__ */ jsx60("div", {
|
|
14714
14758
|
style: {
|
|
14715
|
-
animation: "
|
|
14759
|
+
animation: "moonx-error-bounce 0.8s ease-out 0.1s both"
|
|
14716
14760
|
},
|
|
14717
14761
|
children: /* @__PURE__ */ jsx60(XCircle5, {
|
|
14718
|
-
className: "
|
|
14762
|
+
className: "moonx-icon--2xl moonx-icon--error"
|
|
14719
14763
|
})
|
|
14720
14764
|
})
|
|
14721
14765
|
}),
|
|
14722
14766
|
/* @__PURE__ */ jsx60("div", {
|
|
14723
|
-
className: "
|
|
14767
|
+
className: "moonx-text--heading",
|
|
14724
14768
|
style: {
|
|
14725
14769
|
paddingTop: "2rem"
|
|
14726
14770
|
},
|
|
14727
14771
|
children: (uiConfig === null || uiConfig === void 0 ? void 0 : uiConfig.title) || t("sendTransaction.failure.transactionFailed")
|
|
14728
14772
|
}),
|
|
14729
14773
|
/* @__PURE__ */ jsx60("div", {
|
|
14730
|
-
className: "
|
|
14774
|
+
className: "moonx-text--center",
|
|
14731
14775
|
style: {
|
|
14732
14776
|
paddingLeft: "0.5rem",
|
|
14733
14777
|
paddingRight: "0.5rem"
|
|
14734
14778
|
},
|
|
14735
14779
|
children: /* @__PURE__ */ jsx60("div", {
|
|
14736
|
-
className: "
|
|
14780
|
+
className: "moonx-text--secondary moonx-text--semibold",
|
|
14737
14781
|
children: (uiConfig === null || uiConfig === void 0 ? void 0 : uiConfig.description) || t("sendTransaction.failure.transactionFailedDescription")
|
|
14738
14782
|
})
|
|
14739
14783
|
}),
|
|
@@ -14744,14 +14788,14 @@ function SendTransactionFailed(param) {
|
|
|
14744
14788
|
marginTop: "1.5rem"
|
|
14745
14789
|
},
|
|
14746
14790
|
children: /* @__PURE__ */ jsx60("div", {
|
|
14747
|
-
className: "
|
|
14791
|
+
className: "moonx-text--sm moonx-text--semibold",
|
|
14748
14792
|
children: (uiConfig === null || uiConfig === void 0 ? void 0 : uiConfig.errorTitle) || t("sendTransaction.failure.transactionFailedErrorDetails")
|
|
14749
14793
|
})
|
|
14750
14794
|
}),
|
|
14751
14795
|
/* @__PURE__ */ jsx60("div", {
|
|
14752
|
-
className: "
|
|
14796
|
+
className: "moonx-error-scroll",
|
|
14753
14797
|
children: /* @__PURE__ */ jsx60("div", {
|
|
14754
|
-
className: "
|
|
14798
|
+
className: "moonx-text--secondary moonx-text--semibold",
|
|
14755
14799
|
style: {
|
|
14756
14800
|
padding: "0 0.5rem"
|
|
14757
14801
|
},
|
|
@@ -14759,9 +14803,9 @@ function SendTransactionFailed(param) {
|
|
|
14759
14803
|
})
|
|
14760
14804
|
}),
|
|
14761
14805
|
/* @__PURE__ */ jsx60("div", {
|
|
14762
|
-
className: "
|
|
14806
|
+
className: "moonx-flow-footer",
|
|
14763
14807
|
children: /* @__PURE__ */ jsx60("div", {
|
|
14764
|
-
className: "
|
|
14808
|
+
className: "moonx-flow-footer__actions",
|
|
14765
14809
|
children: /* @__PURE__ */ jsx60(Button, {
|
|
14766
14810
|
onClick: onClose,
|
|
14767
14811
|
children: (uiConfig === null || uiConfig === void 0 ? void 0 : uiConfig.closeButtonText) || t("sendTransaction.failure.transactionFailedRetryTransaction")
|
|
@@ -14781,7 +14825,7 @@ function SendTransactionSuccess(param) {
|
|
|
14781
14825
|
var t = useTranslation().t;
|
|
14782
14826
|
var isDark = propsIsDark !== void 0 ? propsIsDark : isDarkMode(config === null || config === void 0 ? void 0 : (_config_config = config.config) === null || _config_config === void 0 ? void 0 : _config_config.theme, config === null || config === void 0 ? void 0 : (_config_config1 = config.config) === null || _config_config1 === void 0 ? void 0 : (_config_config_appearance = _config_config1.appearance) === null || _config_config_appearance === void 0 ? void 0 : _config_config_appearance.displayMode, config === null || config === void 0 ? void 0 : (_config_config2 = config.config) === null || _config_config2 === void 0 ? void 0 : (_config_config_appearance1 = _config_config2.appearance) === null || _config_config_appearance1 === void 0 ? void 0 : _config_config_appearance1.backgroundColor);
|
|
14783
14827
|
return /* @__PURE__ */ jsx61("div", {
|
|
14784
|
-
className: "
|
|
14828
|
+
className: "moonx-flow-overlay",
|
|
14785
14829
|
children: /* @__PURE__ */ jsxs50(RootCard, {
|
|
14786
14830
|
centerContent: false,
|
|
14787
14831
|
isDark: isDark,
|
|
@@ -14789,38 +14833,38 @@ function SendTransactionSuccess(param) {
|
|
|
14789
14833
|
appearance: config === null || config === void 0 ? void 0 : (_config_config4 = config.config) === null || _config_config4 === void 0 ? void 0 : _config_config4.appearance,
|
|
14790
14834
|
children: [
|
|
14791
14835
|
/* @__PURE__ */ jsx61("div", {
|
|
14792
|
-
className: "
|
|
14836
|
+
className: "moonx-flex-center",
|
|
14793
14837
|
children: /* @__PURE__ */ jsx61("div", {
|
|
14794
14838
|
style: {
|
|
14795
|
-
animation: "
|
|
14839
|
+
animation: "moonx-success-bounce 0.8s ease-out 0.1s both"
|
|
14796
14840
|
},
|
|
14797
14841
|
children: /* @__PURE__ */ jsx61(CheckCircle26, {
|
|
14798
|
-
className: "
|
|
14842
|
+
className: "moonx-icon--2xl moonx-icon--success"
|
|
14799
14843
|
})
|
|
14800
14844
|
})
|
|
14801
14845
|
}),
|
|
14802
14846
|
/* @__PURE__ */ jsx61("div", {
|
|
14803
|
-
className: "
|
|
14847
|
+
className: "moonx-text--heading",
|
|
14804
14848
|
style: {
|
|
14805
14849
|
paddingTop: "2rem"
|
|
14806
14850
|
},
|
|
14807
14851
|
children: (uiConfig === null || uiConfig === void 0 ? void 0 : uiConfig.title) || t("sendTransaction.success.transactionComplete")
|
|
14808
14852
|
}),
|
|
14809
14853
|
/* @__PURE__ */ jsx61("div", {
|
|
14810
|
-
className: "
|
|
14854
|
+
className: "moonx-text--center",
|
|
14811
14855
|
style: {
|
|
14812
14856
|
paddingLeft: "0.5rem",
|
|
14813
14857
|
paddingRight: "0.5rem"
|
|
14814
14858
|
},
|
|
14815
14859
|
children: /* @__PURE__ */ jsx61("div", {
|
|
14816
|
-
className: "
|
|
14860
|
+
className: "moonx-text--secondary moonx-text--semibold",
|
|
14817
14861
|
children: (uiConfig === null || uiConfig === void 0 ? void 0 : uiConfig.description) || t("sendTransaction.success.transactionCompleteDescription")
|
|
14818
14862
|
})
|
|
14819
14863
|
}),
|
|
14820
14864
|
/* @__PURE__ */ jsx61("div", {
|
|
14821
|
-
className: "
|
|
14865
|
+
className: "moonx-detail-card",
|
|
14822
14866
|
children: /* @__PURE__ */ jsxs50("div", {
|
|
14823
|
-
className: "
|
|
14867
|
+
className: "moonx-detail-card__rows",
|
|
14824
14868
|
children: [
|
|
14825
14869
|
/* @__PURE__ */ jsx61(DetailRow, {
|
|
14826
14870
|
label: t("sendTransaction.success.transactionCompleteNetwork"),
|
|
@@ -14832,7 +14876,7 @@ function SendTransactionSuccess(param) {
|
|
|
14832
14876
|
/* @__PURE__ */ jsx61(DetailRow, {
|
|
14833
14877
|
label: t("sendTransaction.success.transactionCompleteTotal"),
|
|
14834
14878
|
value: /* @__PURE__ */ jsxs50("div", {
|
|
14835
|
-
className: "
|
|
14879
|
+
className: "moonx-flex-col",
|
|
14836
14880
|
style: {
|
|
14837
14881
|
textAlign: "right"
|
|
14838
14882
|
},
|
|
@@ -14841,7 +14885,7 @@ function SendTransactionSuccess(param) {
|
|
|
14841
14885
|
children: transactionSummary.totalFiat
|
|
14842
14886
|
}),
|
|
14843
14887
|
/* @__PURE__ */ jsx61("span", {
|
|
14844
|
-
className: "
|
|
14888
|
+
className: "moonx-text--secondary",
|
|
14845
14889
|
children: transactionSummary.totalCrypto
|
|
14846
14890
|
})
|
|
14847
14891
|
]
|
|
@@ -14967,7 +15011,7 @@ function SimulateTransactionDetails(param) {
|
|
|
14967
15011
|
if (loading) {
|
|
14968
15012
|
var _config_config5, _config_config6;
|
|
14969
15013
|
return /* @__PURE__ */ jsx62("div", {
|
|
14970
|
-
className: "
|
|
15014
|
+
className: "moonx-flow-overlay",
|
|
14971
15015
|
children: /* @__PURE__ */ jsx62(RootCard, {
|
|
14972
15016
|
centerContent: false,
|
|
14973
15017
|
isDark: isDark,
|
|
@@ -14979,7 +15023,7 @@ function SimulateTransactionDetails(param) {
|
|
|
14979
15023
|
textAlign: "center"
|
|
14980
15024
|
},
|
|
14981
15025
|
children: /* @__PURE__ */ jsx62("div", {
|
|
14982
|
-
className: "
|
|
15026
|
+
className: "moonx-text--secondary",
|
|
14983
15027
|
children: "Loading transaction details..."
|
|
14984
15028
|
})
|
|
14985
15029
|
})
|
|
@@ -14989,7 +15033,7 @@ function SimulateTransactionDetails(param) {
|
|
|
14989
15033
|
if (error) {
|
|
14990
15034
|
var _config_config7, _config_config8;
|
|
14991
15035
|
return /* @__PURE__ */ jsx62("div", {
|
|
14992
|
-
className: "
|
|
15036
|
+
className: "moonx-flow-overlay",
|
|
14993
15037
|
children: /* @__PURE__ */ jsxs51(RootCard, {
|
|
14994
15038
|
centerContent: false,
|
|
14995
15039
|
isDark: isDark,
|
|
@@ -14997,18 +15041,18 @@ function SimulateTransactionDetails(param) {
|
|
|
14997
15041
|
appearance: config === null || config === void 0 ? void 0 : (_config_config8 = config.config) === null || _config_config8 === void 0 ? void 0 : _config_config8.appearance,
|
|
14998
15042
|
children: [
|
|
14999
15043
|
/* @__PURE__ */ jsx62("div", {
|
|
15000
|
-
className: "
|
|
15044
|
+
className: "moonx-flow-close",
|
|
15001
15045
|
children: /* @__PURE__ */ jsx62(Button, {
|
|
15002
15046
|
variant: "ghost",
|
|
15003
15047
|
size: "icon",
|
|
15004
15048
|
onClick: onClose,
|
|
15005
15049
|
children: /* @__PURE__ */ jsx62(X16, {
|
|
15006
|
-
className: "
|
|
15050
|
+
className: "moonx-icon--md"
|
|
15007
15051
|
})
|
|
15008
15052
|
})
|
|
15009
15053
|
}),
|
|
15010
15054
|
/* @__PURE__ */ jsxs51("div", {
|
|
15011
|
-
className: "
|
|
15055
|
+
className: "moonx-flex-col-center moonx-text--center",
|
|
15012
15056
|
style: {
|
|
15013
15057
|
padding: "2rem",
|
|
15014
15058
|
gap: "1rem",
|
|
@@ -15020,7 +15064,7 @@ function SimulateTransactionDetails(param) {
|
|
|
15020
15064
|
width: "3rem",
|
|
15021
15065
|
height: "3rem",
|
|
15022
15066
|
borderRadius: "50%",
|
|
15023
|
-
backgroundColor: "var(--
|
|
15067
|
+
backgroundColor: "var(--moonx-color-error)",
|
|
15024
15068
|
opacity: 0.1,
|
|
15025
15069
|
display: "flex",
|
|
15026
15070
|
alignItems: "center",
|
|
@@ -15029,7 +15073,7 @@ function SimulateTransactionDetails(param) {
|
|
|
15029
15073
|
},
|
|
15030
15074
|
children: /* @__PURE__ */ jsx62("div", {
|
|
15031
15075
|
style: {
|
|
15032
|
-
color: "var(--
|
|
15076
|
+
color: "var(--moonx-color-error)",
|
|
15033
15077
|
fontSize: "1.5rem",
|
|
15034
15078
|
fontWeight: "bold"
|
|
15035
15079
|
},
|
|
@@ -15043,7 +15087,7 @@ function SimulateTransactionDetails(param) {
|
|
|
15043
15087
|
children: "Unable to Load Transaction"
|
|
15044
15088
|
}),
|
|
15045
15089
|
/* @__PURE__ */ jsx62("div", {
|
|
15046
|
-
className: "
|
|
15090
|
+
className: "moonx-text--secondary",
|
|
15047
15091
|
style: {
|
|
15048
15092
|
marginBottom: "1rem",
|
|
15049
15093
|
maxWidth: "300px"
|
|
@@ -15053,9 +15097,9 @@ function SimulateTransactionDetails(param) {
|
|
|
15053
15097
|
]
|
|
15054
15098
|
}),
|
|
15055
15099
|
/* @__PURE__ */ jsx62("div", {
|
|
15056
|
-
className: "
|
|
15100
|
+
className: "moonx-flow-footer",
|
|
15057
15101
|
children: /* @__PURE__ */ jsx62("div", {
|
|
15058
|
-
className: "
|
|
15102
|
+
className: "moonx-flow-footer__actions",
|
|
15059
15103
|
children: /* @__PURE__ */ jsx62(Button, {
|
|
15060
15104
|
onClick: onClose,
|
|
15061
15105
|
variant: "default",
|
|
@@ -15069,7 +15113,7 @@ function SimulateTransactionDetails(param) {
|
|
|
15069
15113
|
});
|
|
15070
15114
|
}
|
|
15071
15115
|
return /* @__PURE__ */ jsx62("div", {
|
|
15072
|
-
className: "
|
|
15116
|
+
className: "moonx-flow-overlay",
|
|
15073
15117
|
children: /* @__PURE__ */ jsxs51(RootCard, {
|
|
15074
15118
|
centerContent: false,
|
|
15075
15119
|
isDark: isDark,
|
|
@@ -15077,28 +15121,28 @@ function SimulateTransactionDetails(param) {
|
|
|
15077
15121
|
appearance: config === null || config === void 0 ? void 0 : (_config_config4 = config.config) === null || _config_config4 === void 0 ? void 0 : _config_config4.appearance,
|
|
15078
15122
|
children: [
|
|
15079
15123
|
/* @__PURE__ */ jsx62("div", {
|
|
15080
|
-
className: "
|
|
15124
|
+
className: "moonx-flow-close",
|
|
15081
15125
|
children: /* @__PURE__ */ jsx62(Button, {
|
|
15082
15126
|
variant: "ghost",
|
|
15083
15127
|
size: "icon",
|
|
15084
15128
|
onClick: onClose,
|
|
15085
15129
|
children: /* @__PURE__ */ jsx62(X16, {
|
|
15086
|
-
className: "
|
|
15130
|
+
className: "moonx-icon--md"
|
|
15087
15131
|
})
|
|
15088
15132
|
})
|
|
15089
15133
|
}),
|
|
15090
15134
|
/* @__PURE__ */ jsx62("div", {
|
|
15091
|
-
className: "
|
|
15135
|
+
className: "moonx-flow-header",
|
|
15092
15136
|
style: {
|
|
15093
15137
|
marginTop: "1rem"
|
|
15094
15138
|
},
|
|
15095
15139
|
children: /* @__PURE__ */ jsx62("div", {
|
|
15096
|
-
className: "
|
|
15140
|
+
className: "moonx-label",
|
|
15097
15141
|
children: (uiConfig === null || uiConfig === void 0 ? void 0 : uiConfig.title) || t("sendTransaction.advancedTransactionDetails")
|
|
15098
15142
|
})
|
|
15099
15143
|
}),
|
|
15100
15144
|
/* @__PURE__ */ jsx62("div", {
|
|
15101
|
-
className: "
|
|
15145
|
+
className: "moonx-scrollable-list",
|
|
15102
15146
|
style: {
|
|
15103
15147
|
height: "300px",
|
|
15104
15148
|
margin: "1rem 0.75rem 0"
|
|
@@ -15109,14 +15153,14 @@ function SimulateTransactionDetails(param) {
|
|
|
15109
15153
|
},
|
|
15110
15154
|
children: instructions.map(function(instruction) {
|
|
15111
15155
|
return /* @__PURE__ */ jsxs51("div", {
|
|
15112
|
-
className: "
|
|
15156
|
+
className: "moonx-flex-col",
|
|
15113
15157
|
style: {
|
|
15114
15158
|
justifyContent: "space-between",
|
|
15115
15159
|
marginBottom: "1rem"
|
|
15116
15160
|
},
|
|
15117
15161
|
children: [
|
|
15118
15162
|
instruction.title && /* @__PURE__ */ jsx62("h3", {
|
|
15119
|
-
className: "
|
|
15163
|
+
className: "moonx-label",
|
|
15120
15164
|
style: {
|
|
15121
15165
|
marginBottom: "0.5rem"
|
|
15122
15166
|
},
|
|
@@ -15137,9 +15181,9 @@ function SimulateTransactionDetails(param) {
|
|
|
15137
15181
|
})
|
|
15138
15182
|
}),
|
|
15139
15183
|
/* @__PURE__ */ jsx62("div", {
|
|
15140
|
-
className: "
|
|
15184
|
+
className: "moonx-flow-footer",
|
|
15141
15185
|
children: /* @__PURE__ */ jsx62("div", {
|
|
15142
|
-
className: "
|
|
15186
|
+
className: "moonx-flow-footer__actions",
|
|
15143
15187
|
children: /* @__PURE__ */ jsx62(Button, {
|
|
15144
15188
|
onClick: onClose,
|
|
15145
15189
|
children: (uiConfig === null || uiConfig === void 0 ? void 0 : uiConfig.closeButtonText) || t("common.close")
|
|
@@ -15542,32 +15586,32 @@ var Sign7702Authorization = function Sign7702Authorization(param) {
|
|
|
15542
15586
|
appearance: config === null || config === void 0 ? void 0 : (_config_config4 = config.config) === null || _config_config4 === void 0 ? void 0 : _config_config4.appearance,
|
|
15543
15587
|
children: [
|
|
15544
15588
|
/* @__PURE__ */ jsx64("div", {
|
|
15545
|
-
className: "
|
|
15589
|
+
className: "moonx-flow-close",
|
|
15546
15590
|
children: /* @__PURE__ */ jsx64(Button, {
|
|
15547
15591
|
variant: "ghost",
|
|
15548
15592
|
size: "icon",
|
|
15549
15593
|
onClick: onCancel,
|
|
15550
15594
|
children: /* @__PURE__ */ jsx64(X17, {
|
|
15551
|
-
className: "
|
|
15595
|
+
className: "moonx-icon--sm"
|
|
15552
15596
|
})
|
|
15553
15597
|
})
|
|
15554
15598
|
}),
|
|
15555
15599
|
/* @__PURE__ */ jsxs52("div", {
|
|
15556
|
-
className: "
|
|
15600
|
+
className: "moonx-flow-header",
|
|
15557
15601
|
children: [
|
|
15558
15602
|
/* @__PURE__ */ jsx64("div", {
|
|
15559
|
-
className: "
|
|
15603
|
+
className: "moonx-flow-logo",
|
|
15560
15604
|
children: /* @__PURE__ */ jsx64(AppLogo, {
|
|
15561
15605
|
appConfig: appConfig,
|
|
15562
|
-
className: "
|
|
15606
|
+
className: "moonx-icon--lg"
|
|
15563
15607
|
})
|
|
15564
15608
|
}),
|
|
15565
15609
|
/* @__PURE__ */ jsx64("div", {
|
|
15566
|
-
className: "
|
|
15610
|
+
className: "moonx-text--heading",
|
|
15567
15611
|
children: (options === null || options === void 0 ? void 0 : (_options_uiOptions = options.uiOptions) === null || _options_uiOptions === void 0 ? void 0 : _options_uiOptions.title) || t("sign7702Authorization.title")
|
|
15568
15612
|
}),
|
|
15569
15613
|
/* @__PURE__ */ jsx64("div", {
|
|
15570
|
-
className: "
|
|
15614
|
+
className: "moonx-text--secondary moonx-text--semibold",
|
|
15571
15615
|
children: (options === null || options === void 0 ? void 0 : (_options_uiOptions1 = options.uiOptions) === null || _options_uiOptions1 === void 0 ? void 0 : _options_uiOptions1.description) || t("sign7702Authorization.description", {
|
|
15572
15616
|
companyName: appConfig === null || appConfig === void 0 ? void 0 : appConfig.name
|
|
15573
15617
|
})
|
|
@@ -15575,14 +15619,14 @@ var Sign7702Authorization = function Sign7702Authorization(param) {
|
|
|
15575
15619
|
]
|
|
15576
15620
|
}),
|
|
15577
15621
|
/* @__PURE__ */ jsxs52("div", {
|
|
15578
|
-
className: "
|
|
15622
|
+
className: "moonx-data-scroll",
|
|
15579
15623
|
children: [
|
|
15580
15624
|
/* @__PURE__ */ jsx64("div", {
|
|
15581
|
-
className: "
|
|
15625
|
+
className: "moonx-sign-section",
|
|
15582
15626
|
children: /* @__PURE__ */ jsxs52("div", {
|
|
15583
15627
|
children: [
|
|
15584
15628
|
/* @__PURE__ */ jsxs52("div", {
|
|
15585
|
-
className: "
|
|
15629
|
+
className: "moonx-sign-row",
|
|
15586
15630
|
style: {
|
|
15587
15631
|
marginBottom: "0.5rem"
|
|
15588
15632
|
},
|
|
@@ -15603,14 +15647,14 @@ var Sign7702Authorization = function Sign7702Authorization(param) {
|
|
|
15603
15647
|
children: copySuccess ? /* @__PURE__ */ jsxs52(Fragment10, {
|
|
15604
15648
|
children: [
|
|
15605
15649
|
/* @__PURE__ */ jsx64(Check2, {
|
|
15606
|
-
className: "
|
|
15650
|
+
className: "moonx-icon--xs moonx-icon--mr-xs"
|
|
15607
15651
|
}),
|
|
15608
15652
|
t("common.copied")
|
|
15609
15653
|
]
|
|
15610
15654
|
}) : /* @__PURE__ */ jsxs52(Fragment10, {
|
|
15611
15655
|
children: [
|
|
15612
15656
|
/* @__PURE__ */ jsx64(Copy2, {
|
|
15613
|
-
className: "
|
|
15657
|
+
className: "moonx-icon--xs moonx-icon--mr-xs"
|
|
15614
15658
|
}),
|
|
15615
15659
|
t("common.copy")
|
|
15616
15660
|
]
|
|
@@ -15620,7 +15664,7 @@ var Sign7702Authorization = function Sign7702Authorization(param) {
|
|
|
15620
15664
|
}),
|
|
15621
15665
|
/* @__PURE__ */ jsx64("div", {
|
|
15622
15666
|
ref: contentRef,
|
|
15623
|
-
className: "
|
|
15667
|
+
className: "moonx-data-preview",
|
|
15624
15668
|
style: {
|
|
15625
15669
|
height: "84px",
|
|
15626
15670
|
overflow: "hidden"
|
|
@@ -15631,7 +15675,7 @@ var Sign7702Authorization = function Sign7702Authorization(param) {
|
|
|
15631
15675
|
})
|
|
15632
15676
|
}),
|
|
15633
15677
|
/* @__PURE__ */ jsx64("div", {
|
|
15634
|
-
className: "
|
|
15678
|
+
className: "moonx-text--secondary moonx-text--center",
|
|
15635
15679
|
style: {
|
|
15636
15680
|
marginTop: "150px",
|
|
15637
15681
|
paddingBottom: "0.5rem"
|
|
@@ -15641,9 +15685,9 @@ var Sign7702Authorization = function Sign7702Authorization(param) {
|
|
|
15641
15685
|
]
|
|
15642
15686
|
}),
|
|
15643
15687
|
/* @__PURE__ */ jsx64("div", {
|
|
15644
|
-
className: "
|
|
15688
|
+
className: "moonx-flow-footer",
|
|
15645
15689
|
children: /* @__PURE__ */ jsxs52("div", {
|
|
15646
|
-
className: "
|
|
15690
|
+
className: "moonx-flow-footer__actions",
|
|
15647
15691
|
children: [
|
|
15648
15692
|
/* @__PURE__ */ jsx64(Button, {
|
|
15649
15693
|
variant: "outline",
|
|
@@ -15659,7 +15703,7 @@ var Sign7702Authorization = function Sign7702Authorization(param) {
|
|
|
15659
15703
|
signResult === "success" && /* @__PURE__ */ jsxs52(Fragment10, {
|
|
15660
15704
|
children: [
|
|
15661
15705
|
/* @__PURE__ */ jsx64(Check2, {
|
|
15662
|
-
className: "
|
|
15706
|
+
className: "moonx-icon--sm moonx-icon--mr-xs"
|
|
15663
15707
|
}),
|
|
15664
15708
|
/* @__PURE__ */ jsx64("span", {
|
|
15665
15709
|
children: t("common.success")
|
|
@@ -15669,7 +15713,7 @@ var Sign7702Authorization = function Sign7702Authorization(param) {
|
|
|
15669
15713
|
signResult === "error" && /* @__PURE__ */ jsxs52(Fragment10, {
|
|
15670
15714
|
children: [
|
|
15671
15715
|
/* @__PURE__ */ jsx64(XCircle6, {
|
|
15672
|
-
className: "
|
|
15716
|
+
className: "moonx-icon--sm moonx-icon--mr-xs"
|
|
15673
15717
|
}),
|
|
15674
15718
|
/* @__PURE__ */ jsx64("span", {
|
|
15675
15719
|
children: t("common.failed")
|
|
@@ -15902,28 +15946,28 @@ var SignMessage = function SignMessage(param) {
|
|
|
15902
15946
|
appearance: config === null || config === void 0 ? void 0 : (_config_config4 = config.config) === null || _config_config4 === void 0 ? void 0 : _config_config4.appearance,
|
|
15903
15947
|
children: [
|
|
15904
15948
|
/* @__PURE__ */ jsx65("div", {
|
|
15905
|
-
className: "
|
|
15949
|
+
className: "moonx-flow-close",
|
|
15906
15950
|
children: /* @__PURE__ */ jsx65(Button, {
|
|
15907
15951
|
variant: "ghost",
|
|
15908
15952
|
size: "icon",
|
|
15909
15953
|
onClick: onCancel,
|
|
15910
15954
|
children: /* @__PURE__ */ jsx65(X18, {
|
|
15911
|
-
className: "
|
|
15955
|
+
className: "moonx-icon--sm"
|
|
15912
15956
|
})
|
|
15913
15957
|
})
|
|
15914
15958
|
}),
|
|
15915
15959
|
/* @__PURE__ */ jsxs53("div", {
|
|
15916
|
-
className: "
|
|
15960
|
+
className: "moonx-flow-header",
|
|
15917
15961
|
children: [
|
|
15918
15962
|
/* @__PURE__ */ jsx65("div", {
|
|
15919
|
-
className: "
|
|
15963
|
+
className: "moonx-flow-logo",
|
|
15920
15964
|
children: /* @__PURE__ */ jsx65(AppLogo, {
|
|
15921
15965
|
appConfig: appConfig,
|
|
15922
|
-
className: "
|
|
15966
|
+
className: "moonx-icon--lg"
|
|
15923
15967
|
})
|
|
15924
15968
|
}),
|
|
15925
15969
|
/* @__PURE__ */ jsx65("p", {
|
|
15926
|
-
className: "
|
|
15970
|
+
className: "moonx-text--heading",
|
|
15927
15971
|
children: (uiOptions === null || uiOptions === void 0 ? void 0 : uiOptions.title) || t("signMessage.title")
|
|
15928
15972
|
}),
|
|
15929
15973
|
/* @__PURE__ */ jsx65(Label, {
|
|
@@ -15935,7 +15979,7 @@ var SignMessage = function SignMessage(param) {
|
|
|
15935
15979
|
]
|
|
15936
15980
|
}),
|
|
15937
15981
|
/* @__PURE__ */ jsx65("div", {
|
|
15938
|
-
className: "
|
|
15982
|
+
className: "moonx-flex-col",
|
|
15939
15983
|
style: {
|
|
15940
15984
|
position: "relative"
|
|
15941
15985
|
},
|
|
@@ -15945,7 +15989,7 @@ var SignMessage = function SignMessage(param) {
|
|
|
15945
15989
|
},
|
|
15946
15990
|
children: [
|
|
15947
15991
|
/* @__PURE__ */ jsxs53("div", {
|
|
15948
|
-
className: "
|
|
15992
|
+
className: "moonx-sign-row",
|
|
15949
15993
|
style: {
|
|
15950
15994
|
marginBottom: "0.25rem"
|
|
15951
15995
|
},
|
|
@@ -15974,14 +16018,14 @@ var SignMessage = function SignMessage(param) {
|
|
|
15974
16018
|
children: copySuccess ? /* @__PURE__ */ jsxs53(Fragment11, {
|
|
15975
16019
|
children: [
|
|
15976
16020
|
/* @__PURE__ */ jsx65(Check3, {
|
|
15977
|
-
className: "
|
|
16021
|
+
className: "moonx-icon--xs moonx-icon--mr-xs"
|
|
15978
16022
|
}),
|
|
15979
16023
|
t("common.copied")
|
|
15980
16024
|
]
|
|
15981
16025
|
}) : /* @__PURE__ */ jsxs53(Fragment11, {
|
|
15982
16026
|
children: [
|
|
15983
16027
|
/* @__PURE__ */ jsx65(Copy3, {
|
|
15984
|
-
className: "
|
|
16028
|
+
className: "moonx-icon--xs moonx-icon--mr-xs"
|
|
15985
16029
|
}),
|
|
15986
16030
|
t("common.copy")
|
|
15987
16031
|
]
|
|
@@ -15991,7 +16035,7 @@ var SignMessage = function SignMessage(param) {
|
|
|
15991
16035
|
}),
|
|
15992
16036
|
/* @__PURE__ */ jsx65("div", {
|
|
15993
16037
|
ref: contentRef,
|
|
15994
|
-
className: "
|
|
16038
|
+
className: "moonx-box moonx-box--scrollable",
|
|
15995
16039
|
style: {
|
|
15996
16040
|
height: "210px"
|
|
15997
16041
|
},
|
|
@@ -16001,9 +16045,9 @@ var SignMessage = function SignMessage(param) {
|
|
|
16001
16045
|
})
|
|
16002
16046
|
}),
|
|
16003
16047
|
/* @__PURE__ */ jsx65("div", {
|
|
16004
|
-
className: "
|
|
16048
|
+
className: "moonx-flow-footer",
|
|
16005
16049
|
children: /* @__PURE__ */ jsx65("div", {
|
|
16006
|
-
className: "
|
|
16050
|
+
className: "moonx-flow-footer__actions",
|
|
16007
16051
|
children: /* @__PURE__ */ jsxs53(Button, {
|
|
16008
16052
|
state: isSigning ? "loading" : signResult === "success" ? "success" : signResult === "error" ? "error" : void 0,
|
|
16009
16053
|
disabled: isSigning || signResult === "success",
|
|
@@ -16017,7 +16061,7 @@ var SignMessage = function SignMessage(param) {
|
|
|
16017
16061
|
},
|
|
16018
16062
|
children: [
|
|
16019
16063
|
/* @__PURE__ */ jsx65(Check3, {
|
|
16020
|
-
className: "
|
|
16064
|
+
className: "moonx-icon--sm moonx-icon--mr-sm"
|
|
16021
16065
|
}),
|
|
16022
16066
|
t("common.signed")
|
|
16023
16067
|
]
|
|
@@ -16030,7 +16074,7 @@ var SignMessage = function SignMessage(param) {
|
|
|
16030
16074
|
},
|
|
16031
16075
|
children: [
|
|
16032
16076
|
/* @__PURE__ */ jsx65(XCircle7, {
|
|
16033
|
-
className: "
|
|
16077
|
+
className: "moonx-icon--sm moonx-icon--mr-sm"
|
|
16034
16078
|
}),
|
|
16035
16079
|
t("common.failed")
|
|
16036
16080
|
]
|
|
@@ -16224,32 +16268,32 @@ var SignTransaction = function SignTransaction(param) {
|
|
|
16224
16268
|
appearance: config === null || config === void 0 ? void 0 : (_config_config4 = config.config) === null || _config_config4 === void 0 ? void 0 : _config_config4.appearance,
|
|
16225
16269
|
children: [
|
|
16226
16270
|
/* @__PURE__ */ jsx66("div", {
|
|
16227
|
-
className: "
|
|
16271
|
+
className: "moonx-flow-close",
|
|
16228
16272
|
children: /* @__PURE__ */ jsx66(Button, {
|
|
16229
16273
|
variant: "ghost",
|
|
16230
16274
|
size: "icon",
|
|
16231
16275
|
onClick: onCancel,
|
|
16232
16276
|
children: /* @__PURE__ */ jsx66(X19, {
|
|
16233
|
-
className: "
|
|
16277
|
+
className: "moonx-icon--sm"
|
|
16234
16278
|
})
|
|
16235
16279
|
})
|
|
16236
16280
|
}),
|
|
16237
16281
|
/* @__PURE__ */ jsxs54("div", {
|
|
16238
|
-
className: "
|
|
16282
|
+
className: "moonx-flow-header",
|
|
16239
16283
|
children: [
|
|
16240
16284
|
/* @__PURE__ */ jsx66("div", {
|
|
16241
|
-
className: "
|
|
16285
|
+
className: "moonx-flow-logo",
|
|
16242
16286
|
children: /* @__PURE__ */ jsx66(AppLogo, {
|
|
16243
16287
|
appConfig: appConfig,
|
|
16244
|
-
className: "
|
|
16288
|
+
className: "moonx-icon--lg"
|
|
16245
16289
|
})
|
|
16246
16290
|
}),
|
|
16247
16291
|
/* @__PURE__ */ jsx66("div", {
|
|
16248
|
-
className: "
|
|
16292
|
+
className: "moonx-text--heading",
|
|
16249
16293
|
children: (options === null || options === void 0 ? void 0 : (_options_uiOptions = options.uiOptions) === null || _options_uiOptions === void 0 ? void 0 : _options_uiOptions.title) || t("signTransaction.title")
|
|
16250
16294
|
}),
|
|
16251
16295
|
/* @__PURE__ */ jsx66("div", {
|
|
16252
|
-
className: "
|
|
16296
|
+
className: "moonx-text--secondary moonx-text--semibold",
|
|
16253
16297
|
children: (options === null || options === void 0 ? void 0 : (_options_uiOptions1 = options.uiOptions) === null || _options_uiOptions1 === void 0 ? void 0 : _options_uiOptions1.description) || t("signTransaction.description", {
|
|
16254
16298
|
companyName: appConfig === null || appConfig === void 0 ? void 0 : appConfig.name
|
|
16255
16299
|
})
|
|
@@ -16257,24 +16301,24 @@ var SignTransaction = function SignTransaction(param) {
|
|
|
16257
16301
|
]
|
|
16258
16302
|
}),
|
|
16259
16303
|
/* @__PURE__ */ jsxs54("div", {
|
|
16260
|
-
className: "
|
|
16304
|
+
className: "moonx-data-scroll",
|
|
16261
16305
|
children: [
|
|
16262
16306
|
/* @__PURE__ */ jsx66("div", {
|
|
16263
|
-
className: "
|
|
16307
|
+
className: "moonx-sign-section",
|
|
16264
16308
|
children: /* @__PURE__ */ jsxs54("div", {
|
|
16265
16309
|
children: [
|
|
16266
16310
|
/* @__PURE__ */ jsxs54("div", {
|
|
16267
|
-
className: "
|
|
16311
|
+
className: "moonx-sign-row",
|
|
16268
16312
|
children: [
|
|
16269
16313
|
/* @__PURE__ */ jsxs54("div", {
|
|
16270
|
-
className: "
|
|
16314
|
+
className: "moonx-expand-toggle",
|
|
16271
16315
|
onClick: handleToggle,
|
|
16272
16316
|
children: [
|
|
16273
16317
|
/* @__PURE__ */ jsx66(Label, {
|
|
16274
16318
|
children: t("signTransaction.transaction")
|
|
16275
16319
|
}),
|
|
16276
16320
|
/* @__PURE__ */ jsx66(ChevronRight, {
|
|
16277
|
-
className: "
|
|
16321
|
+
className: "moonx-icon--sm",
|
|
16278
16322
|
style: {
|
|
16279
16323
|
marginLeft: "0.5rem",
|
|
16280
16324
|
transition: "transform 0.2s ease-in-out",
|
|
@@ -16292,19 +16336,19 @@ var SignTransaction = function SignTransaction(param) {
|
|
|
16292
16336
|
paddingLeft: "0.5rem",
|
|
16293
16337
|
paddingRight: "0.5rem",
|
|
16294
16338
|
fontSize: "0.75rem",
|
|
16295
|
-
color: copySuccess ? "var(--
|
|
16339
|
+
color: copySuccess ? "var(--moonx-color-success)" : "var(--moonx-color-foreground-3)"
|
|
16296
16340
|
},
|
|
16297
16341
|
children: copySuccess ? /* @__PURE__ */ jsxs54(Fragment12, {
|
|
16298
16342
|
children: [
|
|
16299
16343
|
/* @__PURE__ */ jsx66(Copy4, {
|
|
16300
|
-
className: "
|
|
16344
|
+
className: "moonx-icon--xs moonx-icon--mr-xs"
|
|
16301
16345
|
}),
|
|
16302
16346
|
t("common.copied")
|
|
16303
16347
|
]
|
|
16304
16348
|
}) : /* @__PURE__ */ jsxs54(Fragment12, {
|
|
16305
16349
|
children: [
|
|
16306
16350
|
/* @__PURE__ */ jsx66(Check4, {
|
|
16307
|
-
className: "
|
|
16351
|
+
className: "moonx-icon--xs moonx-icon--mr-xs"
|
|
16308
16352
|
}),
|
|
16309
16353
|
t("common.copy")
|
|
16310
16354
|
]
|
|
@@ -16314,7 +16358,7 @@ var SignTransaction = function SignTransaction(param) {
|
|
|
16314
16358
|
}),
|
|
16315
16359
|
/* @__PURE__ */ jsx66("div", {
|
|
16316
16360
|
ref: contentRef,
|
|
16317
|
-
className: "
|
|
16361
|
+
className: "moonx-data-preview",
|
|
16318
16362
|
style: {
|
|
16319
16363
|
height: isExpanded ? "auto" : "84px",
|
|
16320
16364
|
overflow: isExpanded ? "visible" : "hidden"
|
|
@@ -16325,7 +16369,7 @@ var SignTransaction = function SignTransaction(param) {
|
|
|
16325
16369
|
})
|
|
16326
16370
|
}),
|
|
16327
16371
|
/* @__PURE__ */ jsx66("div", {
|
|
16328
|
-
className: "
|
|
16372
|
+
className: "moonx-text--secondary moonx-text--center",
|
|
16329
16373
|
style: {
|
|
16330
16374
|
marginTop: isExpanded ? "1rem" : "150px",
|
|
16331
16375
|
paddingTop: isExpanded ? "1rem" : 0,
|
|
@@ -16336,9 +16380,9 @@ var SignTransaction = function SignTransaction(param) {
|
|
|
16336
16380
|
]
|
|
16337
16381
|
}),
|
|
16338
16382
|
/* @__PURE__ */ jsx66("div", {
|
|
16339
|
-
className: "
|
|
16383
|
+
className: "moonx-flow-footer",
|
|
16340
16384
|
children: /* @__PURE__ */ jsxs54("div", {
|
|
16341
|
-
className: "
|
|
16385
|
+
className: "moonx-flow-footer__actions",
|
|
16342
16386
|
children: [
|
|
16343
16387
|
/* @__PURE__ */ jsx66(Button, {
|
|
16344
16388
|
variant: "outline",
|
|
@@ -16354,7 +16398,7 @@ var SignTransaction = function SignTransaction(param) {
|
|
|
16354
16398
|
signResult === "success" && /* @__PURE__ */ jsxs54(Fragment12, {
|
|
16355
16399
|
children: [
|
|
16356
16400
|
/* @__PURE__ */ jsx66(Check4, {
|
|
16357
|
-
className: "
|
|
16401
|
+
className: "moonx-icon--sm moonx-icon--mr-xs"
|
|
16358
16402
|
}),
|
|
16359
16403
|
/* @__PURE__ */ jsx66("span", {
|
|
16360
16404
|
children: t("common.success")
|
|
@@ -16364,7 +16408,7 @@ var SignTransaction = function SignTransaction(param) {
|
|
|
16364
16408
|
signResult === "error" && /* @__PURE__ */ jsxs54(Fragment12, {
|
|
16365
16409
|
children: [
|
|
16366
16410
|
/* @__PURE__ */ jsx66(XCircle8, {
|
|
16367
|
-
className: "
|
|
16411
|
+
className: "moonx-icon--sm moonx-icon--mr-xs"
|
|
16368
16412
|
}),
|
|
16369
16413
|
/* @__PURE__ */ jsx66("span", {
|
|
16370
16414
|
children: t("common.failed")
|
|
@@ -16570,32 +16614,32 @@ var SignTypedData = function SignTypedData(param) {
|
|
|
16570
16614
|
appearance: config === null || config === void 0 ? void 0 : (_config_config4 = config.config) === null || _config_config4 === void 0 ? void 0 : _config_config4.appearance,
|
|
16571
16615
|
children: [
|
|
16572
16616
|
/* @__PURE__ */ jsx67("div", {
|
|
16573
|
-
className: "
|
|
16617
|
+
className: "moonx-flow-close",
|
|
16574
16618
|
children: /* @__PURE__ */ jsx67(Button, {
|
|
16575
16619
|
variant: "ghost",
|
|
16576
16620
|
size: "icon",
|
|
16577
16621
|
onClick: onCancel,
|
|
16578
16622
|
children: /* @__PURE__ */ jsx67(X20, {
|
|
16579
|
-
className: "
|
|
16623
|
+
className: "moonx-icon--sm"
|
|
16580
16624
|
})
|
|
16581
16625
|
})
|
|
16582
16626
|
}),
|
|
16583
16627
|
/* @__PURE__ */ jsxs55("div", {
|
|
16584
|
-
className: "
|
|
16628
|
+
className: "moonx-flow-header",
|
|
16585
16629
|
children: [
|
|
16586
16630
|
/* @__PURE__ */ jsx67("div", {
|
|
16587
|
-
className: "
|
|
16631
|
+
className: "moonx-flow-logo",
|
|
16588
16632
|
children: /* @__PURE__ */ jsx67(AppLogo, {
|
|
16589
16633
|
appConfig: appConfig,
|
|
16590
|
-
className: "
|
|
16634
|
+
className: "moonx-icon--lg"
|
|
16591
16635
|
})
|
|
16592
16636
|
}),
|
|
16593
16637
|
/* @__PURE__ */ jsx67("div", {
|
|
16594
|
-
className: "
|
|
16638
|
+
className: "moonx-text--heading",
|
|
16595
16639
|
children: (options === null || options === void 0 ? void 0 : (_options_uiOptions = options.uiOptions) === null || _options_uiOptions === void 0 ? void 0 : _options_uiOptions.title) || t("signTypedData.title")
|
|
16596
16640
|
}),
|
|
16597
16641
|
/* @__PURE__ */ jsx67("div", {
|
|
16598
|
-
className: "
|
|
16642
|
+
className: "moonx-text--secondary moonx-text--semibold",
|
|
16599
16643
|
children: (options === null || options === void 0 ? void 0 : (_options_uiOptions1 = options.uiOptions) === null || _options_uiOptions1 === void 0 ? void 0 : _options_uiOptions1.description) || t("signTypedData.description", {
|
|
16600
16644
|
companyName: appConfig === null || appConfig === void 0 ? void 0 : appConfig.name
|
|
16601
16645
|
})
|
|
@@ -16603,24 +16647,24 @@ var SignTypedData = function SignTypedData(param) {
|
|
|
16603
16647
|
]
|
|
16604
16648
|
}),
|
|
16605
16649
|
/* @__PURE__ */ jsxs55("div", {
|
|
16606
|
-
className: "
|
|
16650
|
+
className: "moonx-data-scroll",
|
|
16607
16651
|
children: [
|
|
16608
16652
|
/* @__PURE__ */ jsx67("div", {
|
|
16609
|
-
className: "
|
|
16653
|
+
className: "moonx-sign-section",
|
|
16610
16654
|
children: /* @__PURE__ */ jsxs55("div", {
|
|
16611
16655
|
children: [
|
|
16612
16656
|
/* @__PURE__ */ jsxs55("div", {
|
|
16613
|
-
className: "
|
|
16657
|
+
className: "moonx-sign-row",
|
|
16614
16658
|
children: [
|
|
16615
16659
|
/* @__PURE__ */ jsxs55("div", {
|
|
16616
|
-
className: "
|
|
16660
|
+
className: "moonx-expand-toggle",
|
|
16617
16661
|
onClick: handleToggle,
|
|
16618
16662
|
children: [
|
|
16619
16663
|
/* @__PURE__ */ jsx67(Label, {
|
|
16620
16664
|
children: t("signTransaction.transaction")
|
|
16621
16665
|
}),
|
|
16622
16666
|
/* @__PURE__ */ jsx67(ChevronRight2, {
|
|
16623
|
-
className: "
|
|
16667
|
+
className: "moonx-icon--sm",
|
|
16624
16668
|
style: {
|
|
16625
16669
|
marginLeft: "0.5rem",
|
|
16626
16670
|
transition: "transform 0.2s ease-in-out",
|
|
@@ -16638,19 +16682,19 @@ var SignTypedData = function SignTypedData(param) {
|
|
|
16638
16682
|
paddingLeft: "0.5rem",
|
|
16639
16683
|
paddingRight: "0.5rem",
|
|
16640
16684
|
fontSize: "0.75rem",
|
|
16641
|
-
color: copySuccess ? "var(--
|
|
16685
|
+
color: copySuccess ? "var(--moonx-color-success)" : "var(--moonx-color-foreground-3)"
|
|
16642
16686
|
},
|
|
16643
16687
|
children: copySuccess ? /* @__PURE__ */ jsxs55(Fragment13, {
|
|
16644
16688
|
children: [
|
|
16645
16689
|
/* @__PURE__ */ jsx67(Check5, {
|
|
16646
|
-
className: "
|
|
16690
|
+
className: "moonx-icon--xs moonx-icon--mr-xs"
|
|
16647
16691
|
}),
|
|
16648
16692
|
t("common.copied")
|
|
16649
16693
|
]
|
|
16650
16694
|
}) : /* @__PURE__ */ jsxs55(Fragment13, {
|
|
16651
16695
|
children: [
|
|
16652
16696
|
/* @__PURE__ */ jsx67(Copy5, {
|
|
16653
|
-
className: "
|
|
16697
|
+
className: "moonx-icon--xs moonx-icon--mr-xs"
|
|
16654
16698
|
}),
|
|
16655
16699
|
t("common.copy")
|
|
16656
16700
|
]
|
|
@@ -16660,7 +16704,7 @@ var SignTypedData = function SignTypedData(param) {
|
|
|
16660
16704
|
}),
|
|
16661
16705
|
/* @__PURE__ */ jsx67("div", {
|
|
16662
16706
|
ref: contentRef,
|
|
16663
|
-
className: "
|
|
16707
|
+
className: "moonx-data-preview",
|
|
16664
16708
|
style: {
|
|
16665
16709
|
height: isExpanded ? "auto" : "84px",
|
|
16666
16710
|
overflow: isExpanded ? "visible" : "hidden"
|
|
@@ -16671,7 +16715,7 @@ var SignTypedData = function SignTypedData(param) {
|
|
|
16671
16715
|
})
|
|
16672
16716
|
}),
|
|
16673
16717
|
/* @__PURE__ */ jsx67("div", {
|
|
16674
|
-
className: "
|
|
16718
|
+
className: "moonx-text--secondary moonx-text--center",
|
|
16675
16719
|
style: {
|
|
16676
16720
|
marginTop: isExpanded ? "1rem" : "150px",
|
|
16677
16721
|
paddingTop: isExpanded ? "1rem" : 0,
|
|
@@ -16682,9 +16726,9 @@ var SignTypedData = function SignTypedData(param) {
|
|
|
16682
16726
|
]
|
|
16683
16727
|
}),
|
|
16684
16728
|
/* @__PURE__ */ jsx67("div", {
|
|
16685
|
-
className: "
|
|
16729
|
+
className: "moonx-flow-footer",
|
|
16686
16730
|
children: /* @__PURE__ */ jsxs55("div", {
|
|
16687
|
-
className: "
|
|
16731
|
+
className: "moonx-flow-footer__actions",
|
|
16688
16732
|
children: [
|
|
16689
16733
|
/* @__PURE__ */ jsx67(Button, {
|
|
16690
16734
|
variant: "outline",
|
|
@@ -16700,7 +16744,7 @@ var SignTypedData = function SignTypedData(param) {
|
|
|
16700
16744
|
signResult === "success" && /* @__PURE__ */ jsxs55(Fragment13, {
|
|
16701
16745
|
children: [
|
|
16702
16746
|
/* @__PURE__ */ jsx67(Check5, {
|
|
16703
|
-
className: "
|
|
16747
|
+
className: "moonx-icon--sm moonx-icon--mr-xs"
|
|
16704
16748
|
}),
|
|
16705
16749
|
/* @__PURE__ */ jsx67("span", {
|
|
16706
16750
|
children: t("common.success")
|
|
@@ -16710,7 +16754,7 @@ var SignTypedData = function SignTypedData(param) {
|
|
|
16710
16754
|
signResult === "error" && /* @__PURE__ */ jsxs55(Fragment13, {
|
|
16711
16755
|
children: [
|
|
16712
16756
|
/* @__PURE__ */ jsx67(XCircle9, {
|
|
16713
|
-
className: "
|
|
16757
|
+
className: "moonx-icon--sm moonx-icon--mr-xs"
|
|
16714
16758
|
}),
|
|
16715
16759
|
/* @__PURE__ */ jsx67("span", {
|
|
16716
16760
|
children: t("common.failed")
|
|
@@ -16831,7 +16875,7 @@ var SolanaWalletSelector = function SolanaWalletSelector(param) {
|
|
|
16831
16875
|
width: "1.5rem",
|
|
16832
16876
|
height: "1.5rem",
|
|
16833
16877
|
border: "2px solid transparent",
|
|
16834
|
-
borderBottomColor: "var(--
|
|
16878
|
+
borderBottomColor: "var(--moonx-color-foreground)",
|
|
16835
16879
|
borderRadius: "50%",
|
|
16836
16880
|
animation: "spin 1s linear infinite"
|
|
16837
16881
|
};
|
|
@@ -16860,10 +16904,10 @@ var SolanaWalletSelector = function SolanaWalletSelector(param) {
|
|
|
16860
16904
|
var searchInputStyles = {
|
|
16861
16905
|
width: "100%",
|
|
16862
16906
|
padding: "0.75rem 1rem 0.75rem 2.5rem",
|
|
16863
|
-
borderRadius: "var(--
|
|
16864
|
-
border: "1px solid var(--
|
|
16865
|
-
backgroundColor: "var(--
|
|
16866
|
-
color: "var(--
|
|
16907
|
+
borderRadius: "var(--moonx-border-radius-lg)",
|
|
16908
|
+
border: "1px solid var(--moonx-color-border)",
|
|
16909
|
+
backgroundColor: "var(--moonx-color-background)",
|
|
16910
|
+
color: "var(--moonx-color-foreground)",
|
|
16867
16911
|
fontSize: "0.875rem",
|
|
16868
16912
|
outline: "none",
|
|
16869
16913
|
transition: "border-color 0.2s ease, box-shadow 0.2s ease"
|
|
@@ -16874,12 +16918,12 @@ var SolanaWalletSelector = function SolanaWalletSelector(param) {
|
|
|
16874
16918
|
top: "0.875rem",
|
|
16875
16919
|
width: "1rem",
|
|
16876
16920
|
height: "1rem",
|
|
16877
|
-
color: "var(--
|
|
16921
|
+
color: "var(--moonx-color-foreground-3)"
|
|
16878
16922
|
};
|
|
16879
16923
|
var emptyStateStyles = {
|
|
16880
16924
|
textAlign: "center",
|
|
16881
16925
|
padding: "2rem 0",
|
|
16882
|
-
color: "var(--
|
|
16926
|
+
color: "var(--moonx-color-foreground-3)",
|
|
16883
16927
|
fontSize: "0.875rem"
|
|
16884
16928
|
};
|
|
16885
16929
|
return /* @__PURE__ */ jsxs56("div", {
|
|
@@ -16887,7 +16931,7 @@ var SolanaWalletSelector = function SolanaWalletSelector(param) {
|
|
|
16887
16931
|
children: [
|
|
16888
16932
|
/* @__PURE__ */ jsx68("style", {
|
|
16889
16933
|
dangerouslySetInnerHTML: {
|
|
16890
|
-
__html: "\n .solana-search-input:focus {\n border-color: var(--
|
|
16934
|
+
__html: "\n .solana-search-input:focus {\n border-color: var(--moonx-color-accent);\n box-shadow: 0 0 0 2px var(--moonx-color-accent);\n }\n .solana-search-input::placeholder {\n color: var(--moonx-color-foreground-3);\n opacity: 0.7;\n }\n "
|
|
16891
16935
|
}
|
|
16892
16936
|
}),
|
|
16893
16937
|
/* @__PURE__ */ jsxs56("div", {
|
|
@@ -16935,17 +16979,17 @@ var SolanaWalletSelector = function SolanaWalletSelector(param) {
|
|
|
16935
16979
|
});
|
|
16936
16980
|
var getInstalledWalletCardStyles = function getInstalledWalletCardStyles(walletType) {
|
|
16937
16981
|
return {
|
|
16938
|
-
borderRadius: "var(--
|
|
16939
|
-
border: "1px solid ".concat(hoveredWallet === walletType ? "var(--
|
|
16982
|
+
borderRadius: "var(--moonx-border-radius-lg)",
|
|
16983
|
+
border: "1px solid ".concat(hoveredWallet === walletType ? "var(--moonx-color-accent)" : "var(--moonx-color-border)"),
|
|
16940
16984
|
padding: "0.75rem 0.25rem",
|
|
16941
16985
|
cursor: "pointer",
|
|
16942
16986
|
transition: "all 0.2s ease"
|
|
16943
16987
|
};
|
|
16944
16988
|
};
|
|
16945
16989
|
var uninstalledWalletCardStyles = {
|
|
16946
|
-
borderRadius: "var(--
|
|
16947
|
-
border: "1px solid var(--
|
|
16948
|
-
backgroundColor: "var(--
|
|
16990
|
+
borderRadius: "var(--moonx-border-radius-lg)",
|
|
16991
|
+
border: "1px solid var(--moonx-color-border)",
|
|
16992
|
+
backgroundColor: "var(--moonx-color-background-2)",
|
|
16949
16993
|
padding: "0.75rem 0.25rem",
|
|
16950
16994
|
cursor: "not-allowed",
|
|
16951
16995
|
opacity: 0.6,
|
|
@@ -16964,11 +17008,11 @@ var SolanaWalletSelector = function SolanaWalletSelector(param) {
|
|
|
16964
17008
|
};
|
|
16965
17009
|
var walletNameStyles = {
|
|
16966
17010
|
fontSize: "0.875rem",
|
|
16967
|
-
color: "var(--
|
|
17011
|
+
color: "var(--moonx-color-foreground)"
|
|
16968
17012
|
};
|
|
16969
17013
|
var uninstalledWalletNameStyles = {
|
|
16970
17014
|
fontSize: "0.875rem",
|
|
16971
|
-
color: "var(--
|
|
17015
|
+
color: "var(--moonx-color-foreground-3)"
|
|
16972
17016
|
};
|
|
16973
17017
|
var installLabelContainerStyles = {
|
|
16974
17018
|
marginLeft: "auto",
|
|
@@ -16976,11 +17020,11 @@ var SolanaWalletSelector = function SolanaWalletSelector(param) {
|
|
|
16976
17020
|
};
|
|
16977
17021
|
var installLabelStyles = {
|
|
16978
17022
|
fontSize: "0.75rem",
|
|
16979
|
-
color: "var(--
|
|
17023
|
+
color: "var(--moonx-color-foreground-3)"
|
|
16980
17024
|
};
|
|
16981
17025
|
var dividerStyles = {
|
|
16982
17026
|
margin: "0.2rem 0",
|
|
16983
|
-
borderTop: "1px solid var(--
|
|
17027
|
+
borderTop: "1px solid var(--moonx-color-border)"
|
|
16984
17028
|
};
|
|
16985
17029
|
return /* @__PURE__ */ jsxs56(Fragment14, {
|
|
16986
17030
|
children: [
|
|
@@ -17120,7 +17164,7 @@ var SolanaWallets = function SolanaWallets(param) {
|
|
|
17120
17164
|
})
|
|
17121
17165
|
}),
|
|
17122
17166
|
/* @__PURE__ */ jsx69("div", {
|
|
17123
|
-
className: "
|
|
17167
|
+
className: "moonx-label",
|
|
17124
17168
|
children: /* @__PURE__ */ jsx69("span", {
|
|
17125
17169
|
children: currentStep === "listing" ? "Select a wallet" : "Connect ".concat((selectedWallet === null || selectedWallet === void 0 ? void 0 : selectedWallet.name) || "wallet")
|
|
17126
17170
|
})
|
|
@@ -17805,7 +17849,7 @@ var AuthProvider = function AuthProvider(param) {
|
|
|
17805
17849
|
try {
|
|
17806
17850
|
for(var _iterator = targets[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true){
|
|
17807
17851
|
var _step_value = _step.value, origin = _step_value.origin, crossorigin = _step_value.crossorigin;
|
|
17808
|
-
var sel = 'link[data-
|
|
17852
|
+
var sel = 'link[data-moonx-preconnect="'.concat(origin, '"]');
|
|
17809
17853
|
if (document.head.querySelector(sel)) continue;
|
|
17810
17854
|
for(var _i = 0, _iter = [
|
|
17811
17855
|
"preconnect",
|
|
@@ -17816,7 +17860,7 @@ var AuthProvider = function AuthProvider(param) {
|
|
|
17816
17860
|
link.rel = rel;
|
|
17817
17861
|
link.href = origin;
|
|
17818
17862
|
if (crossorigin && rel === "preconnect") link.crossOrigin = "anonymous";
|
|
17819
|
-
link.setAttribute("data-
|
|
17863
|
+
link.setAttribute("data-moonx-preconnect", origin);
|
|
17820
17864
|
document.head.appendChild(link);
|
|
17821
17865
|
added.push(link);
|
|
17822
17866
|
}
|
|
@@ -18540,7 +18584,7 @@ var AuthProvider = function AuthProvider(param) {
|
|
|
18540
18584
|
value: sdkInstance,
|
|
18541
18585
|
children: [
|
|
18542
18586
|
isMounted && /* @__PURE__ */ jsx72("iframe", {
|
|
18543
|
-
id: "
|
|
18587
|
+
id: "moonx-auth-iframe",
|
|
18544
18588
|
ref: iframeRef,
|
|
18545
18589
|
src: finalUrl,
|
|
18546
18590
|
style: iframeStyles,
|
|
@@ -18575,7 +18619,7 @@ var WalletConnectContext = createContext({
|
|
|
18575
18619
|
isInitializing: false
|
|
18576
18620
|
});
|
|
18577
18621
|
var MoonKeyContext = createContext(null);
|
|
18578
|
-
var
|
|
18622
|
+
var MoonXProvider = function MoonXProvider(param) {
|
|
18579
18623
|
var publishableKey = param.publishableKey, embeddableId = param.embeddableId, config = param.config, children = param.children;
|
|
18580
18624
|
var _config_walletConnect, _config_emailConfig, _config_emailConfig1, _config_emailConfig2, _config_emailConfig3, _config_emailConfig4;
|
|
18581
18625
|
if ((config === null || config === void 0 ? void 0 : config.chains) || (config === null || config === void 0 ? void 0 : config.defaultChain)) {
|
|
@@ -18760,4 +18804,4 @@ var getReconnectionInfo = function getReconnectionInfo(error) {
|
|
|
18760
18804
|
import { buildChainIndex, estimateEvmGas, estimateEvmGasReserve, getChainById, getEvmGasPrice, getEvmMaxPriorityFeePerGas, getEvmNonce, getRpcUrl, isChainSupported, isEvmEntry, normalizeChainKey, resolveChainEntry, resolveRpcUrl, resolveSolanaChainEntry, resolveWsUrl, validateChainConfig as validateChainConfig2 } from "@moon-x/core/lib";
|
|
18761
18805
|
import { Network } from "@moon-x/core/types";
|
|
18762
18806
|
import { arbitrum, arbitrumSepolia, avalanche, avalancheFuji, base, baseSepolia, bsc, bscTestnet, goerli, holesky, mainnet, optimism, optimismSepolia, polygon, polygonAmoy, sepolia } from "viem/chains";
|
|
18763
|
-
export {
|
|
18807
|
+
export { MoonXProvider, Network, SessionExpiredError, SessionNotFoundError, appearanceToComponentVars, appearanceToCssVars, appearanceToMoonxVars, appearanceToTheme, arbitrum, arbitrumSepolia, avalanche, avalancheFuji, base, baseSepolia, bsc, bscTestnet, buildChainIndex, darkTheme, definedOnly, estimateEvmGas, estimateEvmGasReserve, ethereum_exports as ethereum, getChainById, getEvmGasPrice, getEvmMaxPriorityFeePerGas, getEvmNonce, getReconnectionInfo, getRpcUrl, goerli, holesky, isChainSupported, isColorDark, isDarkAppearance, isDarkMode, isEvmEntry, lightTheme, mainnet, normalizeChainKey, optimism, optimismSepolia, polygon, polygonAmoy, requiresReconnection, resolveAppearanceTokens, resolveChainEntry, resolveFontUrls, resolveLogo, resolveRpcUrl, resolveSolanaChainEntry, resolveWsUrl, sepolia, solana_exports as solana, themeToCSS, useAddPasskey, useAttachOAuth, useConnectWallet, useDetachOAuth, useEphemeralSigner, useLoginWithEmail, useLoginWithOAuth, useMoonX, useOAuthCompletion, usePasskeyStatus, useRegisterPasskey, useRemovePasskey, useUser, validateChainConfig2 as validateChainConfig };
|