signer-test-sdk-react 0.0.10 → 0.0.12

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.
Files changed (30) hide show
  1. package/README.md +1 -1
  2. package/dist/src/AbstraxnProvider.js +361 -32
  3. package/dist/src/AbstraxnProvider.js.map +1 -1
  4. package/dist/src/WalletModal.css +1438 -14
  5. package/dist/src/WalletModal.d.ts +2 -1
  6. package/dist/src/WalletModal.js +249 -13
  7. package/dist/src/WalletModal.js.map +1 -1
  8. package/dist/src/chains.d.ts +55 -0
  9. package/dist/src/chains.js +221 -0
  10. package/dist/src/chains.js.map +1 -0
  11. package/dist/src/components/OnboardingUI/OnboardingUIReact.js +49 -9
  12. package/dist/src/components/OnboardingUI/OnboardingUIReact.js.map +1 -1
  13. package/dist/src/components/OnboardingUI/OnboardingUIWeb.d.ts +4 -2
  14. package/dist/src/components/OnboardingUI/OnboardingUIWeb.js +97 -16
  15. package/dist/src/components/OnboardingUI/OnboardingUIWeb.js.map +1 -1
  16. package/dist/src/components/OnboardingUI/components/OtpForm.js +3 -3
  17. package/dist/src/components/OnboardingUI/components/OtpForm.js.map +1 -1
  18. package/dist/src/components/OnboardingUI/components/PasskeyButton.js +1 -1
  19. package/dist/src/components/OnboardingUI/components/PasskeyButton.js.map +1 -1
  20. package/dist/src/components/OnboardingUI/hooks/useOnboarding.js +2 -0
  21. package/dist/src/components/OnboardingUI/hooks/useOnboarding.js.map +1 -1
  22. package/dist/src/components/QRCode.d.ts +13 -0
  23. package/dist/src/components/QRCode.js +6 -0
  24. package/dist/src/components/QRCode.js.map +1 -0
  25. package/dist/src/index.d.ts +2 -1
  26. package/dist/src/index.js +1 -0
  27. package/dist/src/index.js.map +1 -1
  28. package/dist/src/types.d.ts +29 -0
  29. package/dist/tsconfig.tsbuildinfo +1 -1
  30. package/package.json +7 -6
@@ -2,5 +2,6 @@ import './WalletModal.css';
2
2
  export interface WalletModalProps {
3
3
  isOpen: boolean;
4
4
  onClose: () => void;
5
+ onRampUrl?: string;
5
6
  }
6
- export declare function WalletModal({ isOpen, onClose }: WalletModalProps): import("react/jsx-runtime").JSX.Element | null;
7
+ export declare function WalletModal({ isOpen, onClose, onRampUrl }: WalletModalProps): import("react/jsx-runtime").JSX.Element | null;
@@ -3,29 +3,68 @@ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-run
3
3
  * WalletModal Component
4
4
  * Displays wallet management interface when wallet is connected
5
5
  */
6
- import { useCallback, useEffect, useRef } from 'react';
6
+ import { useCallback, useEffect, useRef, useState, useMemo } from 'react';
7
7
  import { useAbstraxnWallet } from './AbstraxnProvider';
8
8
  import { ExternalWalletButtons } from './ExternalWalletButtons';
9
9
  import { AbstraxnContext } from './AbstraxnProvider';
10
10
  import { createRoot } from 'react-dom/client';
11
+ import { QRCode } from './components/QRCode';
12
+ import { useExportWallet } from './hooks';
13
+ import { generateP256KeyPair } from '@turnkey/crypto';
11
14
  import './WalletModal.css';
12
- export function WalletModal({ isOpen, onClose }) {
15
+ export function WalletModal({ isOpen, onClose, onRampUrl }) {
13
16
  const contextValue = useAbstraxnWallet();
14
- const { address, user, disconnect, whoami, uiConfig, availableConnectors } = contextValue;
17
+ const { address, user, disconnect, whoami, uiConfig, availableConnectors, sendTransaction, isExternalWalletConnected, chainId, switchChainEnhanced, currentChain, availableChains, externalWalletBalance, walletBalance } = contextValue;
18
+ const { exportWallet } = useExportWallet();
15
19
  const theme = uiConfig?.theme || 'light';
16
20
  const externalWalletsEnabled = availableConnectors && availableConnectors.length > 0;
17
21
  const externalWalletContainerRef = useRef(null);
18
22
  const externalWalletRootRef = useRef(null);
23
+ // Chain selector state
24
+ const [showChainSelector, setShowChainSelector] = useState(false);
25
+ const [selectedChainType, setSelectedChainType] = useState('evm');
26
+ // Modal states
27
+ const [showReceiveModal, setShowReceiveModal] = useState(false);
28
+ const [showSendModal, setShowSendModal] = useState(false);
29
+ const [showManageModal, setShowManageModal] = useState(false);
30
+ const [copied, setCopied] = useState(false);
31
+ const [copiedManageAddress, setCopiedManageAddress] = useState(false);
32
+ const [exportedWalletResult, setExportedWalletResult] = useState(null);
33
+ const [copiedResult, setCopiedResult] = useState(false);
34
+ const [showExportWarning, setShowExportWarning] = useState(false);
35
+ const [showExportKey, setShowExportKey] = useState(false);
36
+ const [exportAcknowledged, setExportAcknowledged] = useState(false);
37
+ const [isExporting, setIsExporting] = useState(false);
38
+ const [showPrivateKey, setShowPrivateKey] = useState(false);
19
39
  // Close on Escape key
20
40
  useEffect(() => {
21
41
  const handleEscape = (e) => {
22
42
  if (e.key === 'Escape' && isOpen) {
23
- onClose();
43
+ if (showExportKey) {
44
+ setShowExportKey(false);
45
+ setExportedWalletResult(null);
46
+ }
47
+ else if (showExportWarning) {
48
+ setShowExportWarning(false);
49
+ setExportAcknowledged(false);
50
+ }
51
+ else if (showReceiveModal) {
52
+ setShowReceiveModal(false);
53
+ }
54
+ else if (showSendModal) {
55
+ setShowSendModal(false);
56
+ }
57
+ else if (showManageModal) {
58
+ setShowManageModal(false);
59
+ }
60
+ else {
61
+ onClose();
62
+ }
24
63
  }
25
64
  };
26
65
  window.addEventListener('keydown', handleEscape);
27
66
  return () => window.removeEventListener('keydown', handleEscape);
28
- }, [isOpen, onClose]);
67
+ }, [isOpen, onClose, showReceiveModal, showSendModal, showManageModal, showExportWarning, showExportKey]);
29
68
  // Prevent body scroll when modal is open
30
69
  useEffect(() => {
31
70
  if (isOpen) {
@@ -38,6 +77,36 @@ export function WalletModal({ isOpen, onClose }) {
38
77
  document.body.style.overflow = '';
39
78
  };
40
79
  }, [isOpen]);
80
+ // Reset sub-modals when main modal closes
81
+ useEffect(() => {
82
+ if (!isOpen) {
83
+ setShowReceiveModal(false);
84
+ setShowSendModal(false);
85
+ setShowManageModal(false);
86
+ setExportedWalletResult(null);
87
+ setShowExportWarning(false);
88
+ setShowExportKey(false);
89
+ setExportAcknowledged(false);
90
+ setIsExporting(false);
91
+ setShowPrivateKey(false);
92
+ setShowChainSelector(false);
93
+ }
94
+ }, [isOpen]);
95
+ // Close chain selector when clicking outside
96
+ useEffect(() => {
97
+ if (!showChainSelector)
98
+ return;
99
+ const handleClickOutside = (e) => {
100
+ if (e.target instanceof Element) {
101
+ const target = e.target;
102
+ if (!target.closest('.wallet-modal-chain-selector')) {
103
+ setShowChainSelector(false);
104
+ }
105
+ }
106
+ };
107
+ document.addEventListener('mousedown', handleClickOutside);
108
+ return () => document.removeEventListener('mousedown', handleClickOutside);
109
+ }, [showChainSelector]);
41
110
  // Mount external wallet buttons in WalletModal
42
111
  useEffect(() => {
43
112
  if (!isOpen || !externalWalletsEnabled || !externalWalletContainerRef.current) {
@@ -59,7 +128,35 @@ export function WalletModal({ isOpen, onClose }) {
59
128
  externalWalletRootRef.current = null;
60
129
  }
61
130
  };
62
- }, [isOpen, externalWalletsEnabled]);
131
+ }, [isOpen, externalWalletsEnabled, contextValue]);
132
+ // Get dynamic address based on selected chain
133
+ const displayAddress = useMemo(() => {
134
+ if (!currentChain)
135
+ return address;
136
+ if (currentChain.type === 'solana' && whoami?.solanaAddress) {
137
+ return whoami.solanaAddress;
138
+ }
139
+ return address;
140
+ }, [currentChain, address, whoami?.solanaAddress]);
141
+ // Get balance with dynamic symbol based on current chain
142
+ const balanceDisplay = useMemo(() => {
143
+ if (!currentChain) {
144
+ // Default to ETH if no chain selected
145
+ const balance = externalWalletBalance || walletBalance;
146
+ const balanceValue = balance
147
+ ? (Number(balance) / 1e18).toFixed(4)
148
+ : '0';
149
+ return `${balanceValue} ETH`;
150
+ }
151
+ const symbol = currentChain.nativeCurrency.symbol;
152
+ const decimals = currentChain.nativeCurrency.decimals;
153
+ // Get balance from external wallet or Abstraxn wallet
154
+ const balance = externalWalletBalance || walletBalance;
155
+ const balanceValue = balance
156
+ ? (Number(balance) / Math.pow(10, decimals)).toFixed(4)
157
+ : '0';
158
+ return `${balanceValue} ${symbol}`;
159
+ }, [currentChain, externalWalletBalance, walletBalance]);
63
160
  const handleDisconnect = useCallback(async () => {
64
161
  try {
65
162
  await disconnect();
@@ -70,20 +167,159 @@ export function WalletModal({ isOpen, onClose }) {
70
167
  }
71
168
  }, [disconnect, onClose]);
72
169
  const handleCopyAddress = useCallback(() => {
73
- if (address) {
74
- navigator.clipboard.writeText(address);
75
- // You could add a toast notification here
170
+ const addrToCopy = displayAddress || address;
171
+ if (addrToCopy) {
172
+ navigator.clipboard.writeText(addrToCopy);
173
+ setCopied(true);
174
+ setTimeout(() => setCopied(false), 2000);
76
175
  }
77
- }, [address]);
176
+ }, [displayAddress, address]);
177
+ const handleCopyManageAddress = useCallback(() => {
178
+ const addrToCopy = displayAddress || address;
179
+ if (addrToCopy) {
180
+ navigator.clipboard.writeText(addrToCopy);
181
+ setCopiedManageAddress(true);
182
+ setTimeout(() => setCopiedManageAddress(false), 2000);
183
+ }
184
+ }, [displayAddress, address]);
78
185
  const formatAddress = (addr) => {
79
186
  if (!addr)
80
187
  return '';
81
188
  return `${addr.slice(0, 6)}...${addr.slice(-4)}`;
82
189
  };
190
+ const handleSend = useCallback(() => {
191
+ setShowSendModal(true);
192
+ }, []);
193
+ const handleReceive = useCallback(() => {
194
+ setShowReceiveModal(true);
195
+ }, []);
196
+ const handleBuy = useCallback(() => {
197
+ // Redirect to third-party on-ramp
198
+ if (onRampUrl) {
199
+ window.open(onRampUrl, '_blank', 'noopener,noreferrer');
200
+ }
201
+ else {
202
+ // Use Transak's default widget
203
+ window.open('https://global.transak.com/', '_blank', 'noopener,noreferrer');
204
+ }
205
+ }, [onRampUrl]);
206
+ const handleManageWallet = useCallback(() => {
207
+ setShowManageModal(true);
208
+ }, []);
209
+ const handleExportPrivateKey = useCallback(() => {
210
+ // Show warning modal first
211
+ setShowExportWarning(true);
212
+ }, []);
213
+ const handleAcknowledgeExport = useCallback(async () => {
214
+ if (!exportAcknowledged || !address || isExporting) {
215
+ return;
216
+ }
217
+ setIsExporting(true);
218
+ try {
219
+ const keyPair = await generateP256KeyPair();
220
+ const pvtKey = keyPair.privateKey;
221
+ const publicKey = keyPair.publicKeyUncompressed;
222
+ const res = await exportWallet(publicKey, pvtKey, 'evm');
223
+ const resultString = `${res}`;
224
+ setExportedWalletResult(resultString);
225
+ setShowExportWarning(false);
226
+ setShowExportKey(true);
227
+ setShowPrivateKey(false);
228
+ }
229
+ catch (error) {
230
+ console.error('Failed to export wallet:', error);
231
+ setExportedWalletResult(null);
232
+ setShowExportWarning(false);
233
+ }
234
+ finally {
235
+ setIsExporting(false);
236
+ }
237
+ }, [exportAcknowledged, address, exportWallet, isExporting]);
238
+ const handleCopyResult = useCallback(() => {
239
+ if (exportedWalletResult) {
240
+ navigator.clipboard.writeText(exportedWalletResult);
241
+ setCopiedResult(true);
242
+ setTimeout(() => setCopiedResult(false), 2000);
243
+ }
244
+ }, [exportedWalletResult]);
83
245
  if (!isOpen)
84
246
  return null;
85
- // Get balance from whoami if available
86
- const balance = whoami?.address ? '0' : '0'; // You can fetch actual balance here
87
- return (_jsx("div", { className: `wallet-modal-overlay wallet-modal-theme-${theme}`, onClick: onClose, children: _jsxs("div", { className: `wallet-modal-content wallet-modal-theme-${theme}`, onClick: (e) => e.stopPropagation(), children: [_jsxs("div", { className: "wallet-modal-header", children: [_jsxs("div", { className: "wallet-modal-user-info", children: [_jsx("div", { className: "wallet-modal-avatar", children: user?.authProvider === 'google' ? (_jsx("div", { className: "wallet-modal-avatar-icon", children: _jsxs("svg", { width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", children: [_jsx("path", { d: "M22.56 12.25c0-.78-.07-1.53-.2-2.25H12v4.26h5.92c-.26 1.37-1.04 2.53-2.21 3.31v2.77h3.57c2.08-1.92 3.28-4.74 3.28-8.09z", fill: "#4285F4" }), _jsx("path", { d: "M12 23c2.97 0 5.46-.98 7.28-2.66l-3.57-2.77c-.98.66-2.23 1.06-3.71 1.06-2.86 0-5.29-1.93-6.16-4.53H2.18v2.84C3.99 20.53 7.7 23 12 23z", fill: "#34A853" }), _jsx("path", { d: "M5.84 14.09c-.22-.66-.35-1.36-.35-2.09s.13-1.43.35-2.09V7.07H2.18C1.43 8.55 1 10.22 1 12s.43 3.45 1.18 4.93l2.85-2.22.81-.62z", fill: "#FBBC05" }), _jsx("path", { d: "M12 5.38c1.62 0 3.06.56 4.21 1.64l3.15-3.15C17.45 2.09 14.97 1 12 1 7.7 1 3.99 3.47 2.18 7.07l3.66 2.84c.87-2.6 3.3-4.53 6.16-4.53z", fill: "#EA4335" })] }) })) : (_jsx("div", { className: "wallet-modal-avatar-icon", children: _jsxs("svg", { width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", children: [_jsx("path", { d: "M12 12C14.21 12 16 10.21 16 8C16 5.79 14.21 4 12 4C9.79 4 8 5.79 8 8C8 10.21 9.79 12 12 12Z", fill: "currentColor" }), _jsx("path", { d: "M12 14C7.58 14 4 15.79 4 18V20H20V18C20 15.79 16.42 14 12 14Z", fill: "currentColor" })] }) })) }), _jsxs("div", { className: "wallet-modal-user-details", children: [_jsxs("div", { className: "wallet-modal-address", onClick: handleCopyAddress, children: [formatAddress(address), _jsxs("svg", { width: "16", height: "16", viewBox: "0 0 16 16", fill: "none", className: "wallet-modal-copy-icon", children: [_jsx("path", { d: "M5.5 3.5H3.5C2.67157 3.5 2 4.17157 2 5V12.5C2 13.3284 2.67157 14 3.5 14H11C11.8284 14 12.5 13.3284 12.5 12.5V10.5", stroke: "currentColor", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round" }), _jsx("path", { d: "M5.5 3.5C5.5 2.67157 6.17157 2 7 2H12.5C13.3284 2 14 2.67157 14 3.5V9C14 9.82843 13.3284 10.5 12.5 10.5H7C6.17157 10.5 5.5 9.82843 5.5 9V3.5Z", stroke: "currentColor", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round" })] })] }), user?.email && (_jsx("div", { className: "wallet-modal-email", children: user.email }))] })] }), _jsx("button", { className: "wallet-modal-close", onClick: onClose, "aria-label": "Close", children: _jsx("svg", { width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", children: _jsx("path", { d: "M18 6L6 18M6 6L18 18", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" }) }) })] }), _jsxs("div", { className: "wallet-modal-actions", children: [_jsxs("button", { className: "wallet-modal-action-btn", children: [_jsx("svg", { width: "20", height: "20", viewBox: "0 0 20 20", fill: "none", children: _jsx("path", { d: "M2.5 10L17.5 10M17.5 10L12.5 5M17.5 10L12.5 15", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" }) }), _jsx("span", { children: "Send" })] }), _jsxs("button", { className: "wallet-modal-action-btn", children: [_jsx("svg", { width: "20", height: "20", viewBox: "0 0 20 20", fill: "none", children: _jsx("path", { d: "M2.5 10L17.5 10M2.5 10L7.5 5M2.5 10L7.5 15", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" }) }), _jsx("span", { children: "Receive" })] }), _jsxs("button", { className: "wallet-modal-action-btn", children: [_jsx("svg", { width: "20", height: "20", viewBox: "0 0 20 20", fill: "none", children: _jsx("path", { d: "M10 4V16M4 10H16", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" }) }), _jsx("span", { children: "Buy" })] })] }), _jsxs("div", { className: "wallet-modal-asset", children: [_jsxs("div", { className: "wallet-modal-asset-info", children: [_jsx("div", { className: "wallet-modal-asset-icon", children: _jsxs("svg", { width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", children: [_jsx("path", { d: "M12 2L2 7L12 12L22 7L12 2Z", fill: "currentColor" }), _jsx("path", { d: "M2 17L12 22L22 17M2 12L12 17L22 12", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" })] }) }), _jsxs("div", { className: "wallet-modal-asset-details", children: [_jsx("div", { className: "wallet-modal-asset-name", children: "Ethereum" }), _jsxs("div", { className: "wallet-modal-asset-balance", children: [balance, " ETH", _jsx("span", { className: "wallet-modal-asset-status" })] })] })] }), _jsx("svg", { width: "20", height: "20", viewBox: "0 0 20 20", fill: "none", className: "wallet-modal-asset-arrow", children: _jsx("path", { d: "M7.5 5L12.5 10L7.5 15", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" }) })] }), _jsxs("div", { className: "wallet-modal-menu", children: [_jsxs("button", { className: "wallet-modal-menu-item", children: [_jsx("svg", { width: "20", height: "20", viewBox: "0 0 20 20", fill: "none", children: _jsx("path", { d: "M2.5 5H17.5M2.5 10H17.5M2.5 15H17.5", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" }) }), _jsx("span", { children: "Transactions" })] }), _jsxs("button", { className: "wallet-modal-menu-item", children: [_jsxs("svg", { width: "20", height: "20", viewBox: "0 0 20 20", fill: "none", children: [_jsx("circle", { cx: "10", cy: "10", r: "8", stroke: "currentColor", strokeWidth: "2" }), _jsx("path", { d: "M10 6V10L13 13", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" })] }), _jsx("span", { children: "View Assets" })] }), _jsxs("button", { className: "wallet-modal-menu-item", children: [_jsxs("svg", { width: "20", height: "20", viewBox: "0 0 20 20", fill: "none", children: [_jsx("path", { d: "M3 6C3 4.89543 3.89543 4 5 4H15C16.1046 4 17 4.89543 17 6V16C17 17.1046 16.1046 18 15 18H5C3.89543 18 3 17.1046 3 16V6Z", stroke: "currentColor", strokeWidth: "2" }), _jsx("path", { d: "M7 8H13M7 12H13", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round" })] }), _jsx("span", { children: "Manage Wallet" })] })] }), externalWalletsEnabled && (_jsxs(_Fragment, { children: [_jsx("div", { className: "wallet-modal-divider" }), _jsxs("div", { className: "wallet-modal-external-wallets", children: [_jsx("div", { className: "wallet-modal-external-wallets-label", children: "Connect External Wallet" }), _jsx("div", { ref: externalWalletContainerRef })] })] })), _jsx("div", { className: "wallet-modal-divider" }), _jsxs("button", { className: "wallet-modal-disconnect", onClick: handleDisconnect, children: [_jsxs("svg", { width: "20", height: "20", viewBox: "0 0 20 20", fill: "none", children: [_jsx("path", { d: "M7.5 15L12.5 10L7.5 5M12.5 10H2.5", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" }), _jsx("path", { d: "M2.5 4V16", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" })] }), _jsx("span", { children: "Disconnect Wallet" })] })] }) }));
247
+ // Receive Modal
248
+ if (showReceiveModal) {
249
+ return (_jsx("div", { className: `wallet-modal-overlay wallet-modal-theme-${theme}`, onClick: () => setShowReceiveModal(false), children: _jsxs("div", { className: `wallet-modal-content wallet-modal-theme-${theme} wallet-modal-receive`, onClick: (e) => e.stopPropagation(), children: [_jsxs("div", { className: "wallet-modal-receive-header", children: [_jsx("button", { className: "wallet-modal-back", onClick: () => setShowReceiveModal(false), children: _jsx("svg", { width: "20", height: "20", viewBox: "0 0 20 20", fill: "none", children: _jsx("path", { d: "M12.5 15L7.5 10L12.5 5", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" }) }) }), _jsx("h2", { className: "wallet-modal-receive-title", children: "Receive" }), _jsx("div", { style: { width: '40px' } })] }), _jsxs("div", { className: "wallet-modal-receive-content", children: [_jsx("div", { className: "wallet-modal-qr-container", children: address && (_jsx(QRCode, { value: address, size: 240, bgColor: theme === 'dark' ? '#ffffff' : '#ffffff', fgColor: theme === 'dark' ? '#000000' : '#000000' })) }), _jsxs("div", { className: "wallet-modal-address-section", children: [_jsx("p", { className: "wallet-modal-address-label", children: "Your Wallet Address" }), _jsxs("div", { className: "wallet-modal-address-display", children: [_jsx("span", { className: "wallet-modal-address-full", children: displayAddress || address }), _jsx("button", { className: `wallet-modal-copy-btn ${copied ? 'copied' : ''}`, onClick: handleCopyAddress, "aria-label": "Copy address", children: copied ? (_jsxs(_Fragment, { children: [_jsx("svg", { width: "16", height: "16", viewBox: "0 0 16 16", fill: "none", children: _jsx("path", { d: "M13.5 4L6 11.5L2.5 8", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" }) }), _jsx("span", { children: "Copied!" })] })) : (_jsxs(_Fragment, { children: [_jsxs("svg", { width: "16", height: "16", viewBox: "0 0 16 16", fill: "none", children: [_jsx("path", { d: "M5.5 3.5H3.5C2.67157 3.5 2 4.17157 2 5V12.5C2 13.3284 2.67157 14 3.5 14H11C11.8284 14 12.5 13.3284 12.5 12.5V10.5", stroke: "currentColor", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round" }), _jsx("path", { d: "M5.5 3.5C5.5 2.67157 6.17157 2 7 2H12.5C13.3284 2 14 2.67157 14 3.5V9C14 9.82843 13.3284 10.5 12.5 10.5H7C6.17157 10.5 5.5 9.82843 5.5 9V3.5Z", stroke: "currentColor", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round" })] }), _jsx("span", { children: "Copy" })] })) })] }), _jsx("p", { className: "wallet-modal-address-hint", children: "Scan this QR code or copy the address to receive funds" })] })] })] }) }));
250
+ }
251
+ // Send Modal (placeholder for now)
252
+ if (showSendModal) {
253
+ return (_jsx("div", { className: `wallet-modal-overlay wallet-modal-theme-${theme}`, onClick: () => setShowSendModal(false), children: _jsxs("div", { className: `wallet-modal-content wallet-modal-theme-${theme} wallet-modal-send`, onClick: (e) => e.stopPropagation(), children: [_jsxs("div", { className: "wallet-modal-receive-header", children: [_jsx("button", { className: "wallet-modal-back", onClick: () => setShowSendModal(false), children: _jsx("svg", { width: "20", height: "20", viewBox: "0 0 20 20", fill: "none", children: _jsx("path", { d: "M12.5 15L7.5 10L12.5 5", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" }) }) }), _jsx("h2", { className: "wallet-modal-receive-title", children: "Send" }), _jsx("div", { style: { width: '40px' } })] }), _jsxs("div", { className: "wallet-modal-send-content", children: [_jsxs("p", { className: "wallet-modal-send-placeholder", children: ["Send functionality will be implemented here.", _jsx("br", {}), "This will allow users to send tokens to other addresses."] }), _jsx("button", { className: "wallet-modal-action-btn-primary", onClick: () => setShowSendModal(false), children: "Close" })] })] }) }));
254
+ }
255
+ // Export Key Modal
256
+ if (showExportKey && exportedWalletResult) {
257
+ return (_jsx("div", { className: `wallet-modal-overlay wallet-modal-theme-${theme}`, onClick: () => { setShowExportKey(false); setExportedWalletResult(null); }, children: _jsxs("div", { className: `wallet-modal-content wallet-modal-theme-${theme} wallet-modal-export-key`, onClick: (e) => e.stopPropagation(), children: [_jsxs("div", { className: "wallet-modal-export-header", children: [_jsx("h2", { className: "wallet-modal-export-title", children: "Export Key" }), _jsx("button", { className: "wallet-modal-close", onClick: () => { setShowExportKey(false); setExportedWalletResult(null); }, "aria-label": "Close", children: _jsx("svg", { width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", children: _jsx("path", { d: "M18 6L6 18M6 6L18 18", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" }) }) })] }), _jsxs("div", { className: "wallet-modal-export-content", children: [_jsx("div", { className: `wallet-modal-export-key-display ${!showPrivateKey ? 'blurred' : ''}`, onClick: () => {
258
+ if (!showPrivateKey) {
259
+ setShowPrivateKey(true);
260
+ }
261
+ }, style: { cursor: showPrivateKey ? 'text' : 'pointer' }, children: exportedWalletResult }), !showPrivateKey && (_jsx("p", { className: "wallet-modal-export-key-hint", children: "Click to reveal private key" })), _jsx("button", { className: "wallet-modal-export-copy-btn", onClick: handleCopyResult, disabled: !showPrivateKey, children: copiedResult ? (_jsxs(_Fragment, { children: [_jsx("svg", { width: "16", height: "16", viewBox: "0 0 16 16", fill: "none", children: _jsx("path", { d: "M13.5 4L6 11.5L2.5 8", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" }) }), _jsx("span", { children: "Copied!" })] })) : (_jsxs(_Fragment, { children: [_jsxs("svg", { width: "16", height: "16", viewBox: "0 0 16 16", fill: "none", children: [_jsx("path", { d: "M5.5 3.5H3.5C2.67157 3.5 2 4.17157 2 5V12.5C2 13.3284 2.67157 14 3.5 14H11C11.8284 14 12.5 13.3284 12.5 12.5V10.5", stroke: "currentColor", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round" }), _jsx("path", { d: "M5.5 3.5C5.5 2.67157 6.17157 2 7 2H12.5C13.3284 2 14 2.67157 14 3.5V9C14 9.82843 13.3284 10.5 12.5 10.5H7C6.17157 10.5 5.5 9.82843 5.5 9V3.5Z", stroke: "currentColor", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round" })] }), _jsx("span", { children: "Copy" })] })) }), _jsx("button", { className: `wallet-modal-export-done-btn wallet-modal-theme-${theme}`, onClick: () => { setShowExportKey(false); setExportedWalletResult(null); setShowPrivateKey(false); }, children: "I'm Done" })] })] }) }));
262
+ }
263
+ // Export Warning Modal
264
+ if (showExportWarning) {
265
+ return (_jsx("div", { className: `wallet-modal-overlay wallet-modal-theme-${theme}`, onClick: () => setShowExportWarning(false), children: _jsxs("div", { className: `wallet-modal-content wallet-modal-theme-${theme} wallet-modal-export-warning`, onClick: (e) => e.stopPropagation(), children: [_jsxs("div", { className: "wallet-modal-receive-header", children: [_jsx("button", { className: "wallet-modal-back", onClick: () => setShowExportWarning(false), children: _jsx("svg", { width: "20", height: "20", viewBox: "0 0 20 20", fill: "none", children: _jsx("path", { d: "M12.5 15L7.5 10L12.5 5", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" }) }) }), _jsx("h2", { className: "wallet-modal-receive-title", children: "Agree to continue" }), _jsx("button", { className: "wallet-modal-close", onClick: () => setShowExportWarning(false), "aria-label": "Close", children: _jsx("svg", { width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", children: _jsx("path", { d: "M18 6L6 18M6 6L18 18", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" }) }) })] }), _jsxs("div", { className: "wallet-modal-export-warning-content", children: [_jsx("div", { className: "wallet-modal-export-warning-illustration", children: _jsx("div", { className: "wallet-modal-export-warning-icon-bg", children: _jsxs("svg", { width: "48", height: "48", viewBox: "0 0 48 48", fill: "none", children: [_jsx("path", { d: "M24 12L12 18L24 24L36 18L24 12Z", fill: "currentColor" }), _jsx("path", { d: "M12 30L24 36L36 30M12 24L24 30L36 24", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" })] }) }) }), _jsx("div", { className: "wallet-modal-export-warning-badge", children: "Sensitive information" }), _jsx("h3", { className: "wallet-modal-export-warning-heading", children: "Your wallet is ready. Back up your key to protect your assets." }), _jsxs("div", { className: "wallet-modal-export-warning-info-cards", children: [_jsxs("div", { className: "wallet-modal-export-warning-info-card", children: [_jsxs("svg", { width: "20", height: "20", viewBox: "0 0 20 20", fill: "none", children: [_jsx("path", { d: "M3 6C3 4.89543 3.89543 4 5 4H15C16.1046 4 17 4.89543 17 6V16C17 17.1046 16.1046 18 15 18H5C3.89543 18 3 17.1046 3 16V6Z", stroke: "currentColor", strokeWidth: "2" }), _jsx("path", { d: "M7 8H13M7 12H13", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round" })] }), _jsx("span", { children: "Non-custodial wallet: You're always in control" })] }), _jsxs("div", { className: "wallet-modal-export-warning-info-card", children: [_jsxs("svg", { width: "20", height: "20", viewBox: "0 0 20 20", fill: "none", children: [_jsx("path", { d: "M10 2L2 6L10 10L18 6L10 2Z", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" }), _jsx("path", { d: "M2 14L10 18L18 14M2 10L10 14L18 10", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" }), _jsx("path", { d: "M10 10V18", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" })] }), _jsx("span", { children: "Keep your key private. It controls your account and assets." })] })] }), _jsxs("label", { className: "wallet-modal-export-warning-checkbox", children: [_jsx("input", { type: "checkbox", checked: exportAcknowledged, onChange: (e) => setExportAcknowledged(e.target.checked), className: "wallet-modal-export-warning-checkbox-input" }), _jsx("span", { children: "I am responsible for safeguarding and using my wallet key information." })] }), _jsx("button", { className: `wallet-modal-export-warning-reveal ${!exportAcknowledged || isExporting ? 'disabled' : ''}`, onClick: handleAcknowledgeExport, disabled: !exportAcknowledged || isExporting, children: isExporting ? (_jsxs(_Fragment, { children: [_jsxs("svg", { width: "16", height: "16", viewBox: "0 0 16 16", fill: "none", className: "wallet-modal-loading-spinner", children: [_jsx("circle", { cx: "8", cy: "8", r: "6", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeDasharray: "37.7", strokeDashoffset: "37.7", fill: "none", opacity: "0.3" }), _jsx("circle", { cx: "8", cy: "8", r: "6", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeDasharray: "37.7", fill: "none", children: _jsx("animate", { attributeName: "stroke-dashoffset", from: "37.7", to: "0", dur: "1s", repeatCount: "indefinite" }) })] }), _jsx("span", { children: "Loading..." })] })) : ('Reveal') })] })] }) }));
266
+ }
267
+ // Account & Settings Modal
268
+ if (showManageModal) {
269
+ return (_jsx("div", { className: `wallet-modal-overlay wallet-modal-theme-${theme}`, onClick: () => setShowManageModal(false), children: _jsxs("div", { className: `wallet-modal-content wallet-modal-theme-${theme} wallet-modal-manage`, onClick: (e) => e.stopPropagation(), children: [_jsxs("div", { className: "wallet-modal-receive-header", children: [_jsx("button", { className: "wallet-modal-back", onClick: () => setShowManageModal(false), children: _jsx("svg", { width: "20", height: "20", viewBox: "0 0 20 20", fill: "none", children: _jsx("path", { d: "M12.5 15L7.5 10L12.5 5", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" }) }) }), _jsx("h2", { className: "wallet-modal-receive-title", children: "Account & Settings" }), _jsx("div", { style: { width: '40px' } })] }), _jsxs("div", { className: "wallet-modal-manage-content", children: [_jsxs("div", { className: "wallet-modal-manage-section", children: [_jsx("h3", { className: "wallet-modal-manage-section-title", children: "Wallet Information" }), _jsxs("div", { className: "wallet-modal-manage-item", children: [_jsx("span", { className: "wallet-modal-manage-label", children: "Address" }), _jsxs("div", { className: "wallet-modal-manage-value", children: [_jsx("span", { className: "wallet-modal-manage-address-text", children: formatAddress(displayAddress || address) }), _jsx("button", { className: `wallet-modal-manage-copy-btn ${copiedManageAddress ? 'copied' : ''}`, onClick: handleCopyManageAddress, children: copiedManageAddress ? (_jsxs(_Fragment, { children: [_jsx("svg", { width: "14", height: "14", viewBox: "0 0 14 14", fill: "none", children: _jsx("path", { d: "M11.5 3.5L5.5 9.5L2.5 6.5", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" }) }), _jsx("span", { children: "Copied!" })] })) : (_jsxs("svg", { width: "14", height: "14", viewBox: "0 0 14 14", fill: "none", children: [_jsx("path", { d: "M4.5 3H2.5C1.67157 3 1 3.67157 1 4.5V11C1 11.8284 1.67157 12.5 2.5 12.5H9C9.82843 12.5 10.5 11.8284 10.5 11V9", stroke: "currentColor", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round" }), _jsx("path", { d: "M4.5 3C4.5 2.17157 5.17157 1.5 6 1.5H11.5C12.3284 1.5 13 2.17157 13 3V7.5C13 8.32843 12.3284 9 11.5 9H6C5.17157 9 4.5 8.32843 4.5 7.5V3Z", stroke: "currentColor", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round" })] })) })] })] }), user?.email && (_jsxs("div", { className: "wallet-modal-manage-item", children: [_jsx("span", { className: "wallet-modal-manage-label", children: "Email" }), _jsx("span", { className: "wallet-modal-manage-value", children: user.email })] })), whoami?.organizationName && (_jsxs("div", { className: "wallet-modal-manage-item", children: [_jsx("span", { className: "wallet-modal-manage-label", children: "Organization" }), _jsx("span", { className: "wallet-modal-manage-value", children: whoami.organizationName })] }))] }), !isExternalWalletConnected && (_jsxs("div", { className: "wallet-modal-manage-section", children: [_jsx("h3", { className: "wallet-modal-manage-section-title", children: "Export & Backup" }), _jsxs("button", { className: "wallet-modal-manage-action-item", onClick: handleExportPrivateKey, children: [_jsx("div", { className: "wallet-modal-manage-action-icon", children: _jsxs("svg", { width: "20", height: "20", viewBox: "0 0 20 20", fill: "none", children: [_jsx("path", { d: "M10 2L2 6L10 10L18 6L10 2Z", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" }), _jsx("path", { d: "M2 14L10 18L18 14M2 10L10 14L18 10", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" }), _jsx("path", { d: "M10 10V18", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" })] }) }), _jsx("span", { className: "wallet-modal-manage-action-label", children: "Export Private Key" }), _jsx("svg", { width: "16", height: "16", viewBox: "0 0 16 16", fill: "none", className: "wallet-modal-manage-action-arrow", children: _jsx("path", { d: "M6 12L10 8L6 4", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" }) })] })] }))] })] }) }));
270
+ }
271
+ // Main Modal
272
+ return (_jsx("div", { className: `wallet-modal-overlay wallet-modal-theme-${theme}`, onClick: onClose, children: _jsxs("div", { className: `wallet-modal-content wallet-modal-theme-${theme}`, onClick: (e) => e.stopPropagation(), children: [_jsxs("div", { className: "wallet-modal-header", children: [_jsx("div", { className: "wallet-modal-header-left", children: _jsxs("div", { className: "wallet-modal-user-info", children: [_jsx("div", { className: "wallet-modal-avatar", children: (() => {
273
+ const authProvider = (user?.authProvider || '').toLowerCase();
274
+ // Check for external wallet first
275
+ if (isExternalWalletConnected) {
276
+ return (_jsx("div", { className: "wallet-modal-avatar-icon", children: _jsxs("svg", { width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", children: [_jsx("path", { d: "M12 2L2 7L12 12L22 7L12 2Z", fill: "#9333ea" }), _jsx("path", { d: "M2 17L12 22L22 17M2 12L12 17L22 12", stroke: "#9333ea", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" })] }) }));
277
+ }
278
+ // Google
279
+ if (authProvider === 'google') {
280
+ return (_jsx("div", { className: "wallet-modal-avatar-icon", children: _jsxs("svg", { width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", children: [_jsx("path", { d: "M22.56 12.25c0-.78-.07-1.53-.2-2.25H12v4.26h5.92c-.26 1.37-1.04 2.53-2.21 3.31v2.77h3.57c2.08-1.92 3.28-4.74 3.28-8.09z", fill: "#4285F4" }), _jsx("path", { d: "M12 23c2.97 0 5.46-.98 7.28-2.66l-3.57-2.77c-.98.66-2.23 1.06-3.71 1.06-2.86 0-5.29-1.93-6.16-4.53H2.18v2.84C3.99 20.53 7.7 23 12 23z", fill: "#34A853" }), _jsx("path", { d: "M5.84 14.09c-.22-.66-.35-1.36-.35-2.09s.13-1.43.35-2.09V7.07H2.18C1.43 8.55 1 10.22 1 12s.43 3.45 1.18 4.93l2.85-2.22.81-.62z", fill: "#FBBC05" }), _jsx("path", { d: "M12 5.38c1.62 0 3.06.56 4.21 1.64l3.15-3.15C17.45 2.09 14.97 1 12 1 7.7 1 3.99 3.47 2.18 7.07l3.66 2.84c.87-2.6 3.3-4.53 6.16-4.53z", fill: "#EA4335" })] }) }));
281
+ }
282
+ // Discord
283
+ if (authProvider === 'discord') {
284
+ return (_jsx("div", { className: "wallet-modal-avatar-icon", children: _jsx("svg", { width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", children: _jsx("path", { d: "M20.317 4.37a19.791 19.791 0 0 0-4.885-1.515.074.074 0 0 0-.079.037c-.21.375-.444.864-.608 1.25a18.27 18.27 0 0 0-5.487 0 12.64 12.64 0 0 0-.617-1.25.077.077 0 0 0-.079-.037A19.736 19.736 0 0 0 3.677 4.37a.07.07 0 0 0-.032.027C2.451 6.018 1.9 7.765 1.6 9.515a.082.082 0 0 0 .031.084 19.9 19.9 0 0 0 5.993 3.03.078.078 0 0 0 .084-.028c.462-.63.874-1.295 1.226-1.994a.076.076 0 0 0-.041-.106 13.107 13.107 0 0 1-1.872-.892.077.077 0 0 1-.008-.128 10.2 10.2 0 0 0 .372-.292.074.074 0 0 1 .077-.01c3.928 1.793 8.18 1.793 12.062 0a.074.074 0 0 1 .078.01c.12.098.246.198.373.292a.077.077 0 0 1-.006.127 12.299 12.299 0 0 1-1.873.892.077.077 0 0 0-.041.107c.36.698.772 1.362 1.225 1.993a.076.076 0 0 0 .084.028 19.839 19.839 0 0 0 6.002-3.03.077.077 0 0 0 .032-.084c-.334-1.847-.93-3.591-1.679-5.118a.061.061 0 0 0-.031-.03zM8.02 15.33c-1.183 0-2.157-1.085-2.157-2.419 0-1.333.956-2.419 2.157-2.419 1.21 0 2.176 1.096 2.157 2.42 0 1.333-.956 2.418-2.157 2.418zm7.975 0c-1.183 0-2.157-1.085-2.157-2.419 0-1.333.955-2.419 2.157-2.419 1.21 0 2.176 1.096 2.157 2.42 0 1.333-.946 2.418-2.157 2.418z", fill: "#5865F2" }) }) }));
285
+ }
286
+ // Twitter/X
287
+ if (authProvider === 'twitter' || authProvider === 'x') {
288
+ return (_jsx("div", { className: "wallet-modal-avatar-icon", children: _jsx("svg", { width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", children: _jsx("path", { d: "M18.244 2.25h3.308l-7.227 8.26 8.502 11.24H16.17l-5.214-6.817L4.99 21.75H1.68l7.73-8.835L1.254 2.25H8.08l4.713 6.231zm-1.161 17.52h1.833L7.084 4.126H5.117z", fill: "#000000" }) }) }));
289
+ }
290
+ // Passkey
291
+ if (authProvider === 'passkey' || authProvider === 'webauthn') {
292
+ return (_jsx("div", { className: "wallet-modal-avatar-icon", children: _jsx("svg", { width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", children: _jsx("path", { d: "M12 2C8.13 2 5 5.13 5 9C5 14.25 12 22 12 22C12 22 19 14.25 19 9C19 5.13 15.87 2 12 2ZM12 11.5C10.62 11.5 9.5 10.38 9.5 9C9.5 7.62 10.62 6.5 12 6.5C13.38 6.5 14.5 7.62 14.5 9C14.5 10.38 13.38 11.5 12 11.5Z", fill: "currentColor" }) }) }));
293
+ }
294
+ // Email/OTP - check if user has email but no OAuth provider
295
+ if (user?.email && !authProvider) {
296
+ return (_jsx("div", { className: "wallet-modal-avatar-icon", children: _jsxs("svg", { width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", children: [_jsx("path", { d: "M4 4H20C21.1 4 22 4.9 22 6V18C22 19.1 21.1 20 20 20H4C2.9 20 2 19.1 2 18V6C2 4.9 2.9 4 4 4Z", stroke: "#9333ea", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" }), _jsx("path", { d: "M22 6L12 13L2 6", stroke: "#9333ea", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" })] }) }));
297
+ }
298
+ // OTP/Email (explicit provider)
299
+ if (authProvider === 'otp' || authProvider === 'email') {
300
+ return (_jsx("div", { className: "wallet-modal-avatar-icon", children: _jsxs("svg", { width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", children: [_jsx("path", { d: "M4 4H20C21.1 4 22 4.9 22 6V18C22 19.1 21.1 20 20 20H4C2.9 20 2 19.1 2 18V6C2 4.9 2.9 4 4 4Z", stroke: "#9333ea", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" }), _jsx("path", { d: "M22 6L12 13L2 6", stroke: "#9333ea", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" })] }) }));
301
+ }
302
+ // Passkey
303
+ if (authProvider === 'passkey' || authProvider === 'webauthn') {
304
+ return (_jsx("div", { className: "wallet-modal-avatar-icon", children: _jsx("svg", { width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", children: _jsx("path", { d: "M12 2C8.13 2 5 5.13 5 9C5 14.25 12 22 12 22C12 22 19 14.25 19 9C19 5.13 15.87 2 12 2ZM12 11.5C10.62 11.5 9.5 10.38 9.5 9C9.5 7.62 10.62 6.5 12 6.5C13.38 6.5 14.5 7.62 14.5 9C14.5 10.38 13.38 11.5 12 11.5Z", fill: "#9333ea" }) }) }));
305
+ }
306
+ // Default fallback: generic user icon
307
+ return (_jsx("div", { className: "wallet-modal-avatar-icon", children: _jsxs("svg", { width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", children: [_jsx("path", { d: "M12 12C14.21 12 16 10.21 16 8C16 5.79 14.21 4 12 4C9.79 4 8 5.79 8 8C8 10.21 9.79 12 12 12Z", fill: "#9333ea" }), _jsx("path", { d: "M12 14C7.58 14 4 15.79 4 18V20H20V18C20 15.79 16.42 14 12 14Z", fill: "#9333ea" })] }) }));
308
+ })() }), _jsxs("div", { className: "wallet-modal-user-details", children: [_jsxs("div", { className: "wallet-modal-address", onClick: handleCopyAddress, children: [formatAddress(displayAddress || address), copied ? (_jsx("span", { className: "wallet-modal-copy-notification", children: "Copied!" })) : (_jsxs("svg", { width: "16", height: "16", viewBox: "0 0 16 16", fill: "none", className: "wallet-modal-copy-icon", children: [_jsx("path", { d: "M5.5 3.5H3.5C2.67157 3.5 2 4.17157 2 5V12.5C2 13.3284 2.67157 14 3.5 14H11C11.8284 14 12.5 13.3284 12.5 12.5V10.5", stroke: "currentColor", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round" }), _jsx("path", { d: "M5.5 3.5C5.5 2.67157 6.17157 2 7 2H12.5C13.3284 2 14 2.67157 14 3.5V9C14 9.82843 13.3284 10.5 12.5 10.5H7C6.17157 10.5 5.5 9.82843 5.5 9V3.5Z", stroke: "currentColor", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round" })] }))] }), user?.email && (_jsx("div", { className: "wallet-modal-email", children: user.email }))] })] }) }), _jsx("div", { className: "wallet-modal-header-right", children: _jsx("button", { className: "wallet-modal-close", onClick: onClose, "aria-label": "Close", children: _jsx("svg", { width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", children: _jsx("path", { d: "M18 6L6 18M6 6L18 18", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" }) }) }) })] }), _jsxs("div", { className: "wallet-modal-actions", children: [_jsxs("button", { className: "wallet-modal-action-btn", onClick: handleSend, children: [_jsx("svg", { width: "20", height: "20", viewBox: "0 0 20 20", fill: "none", children: _jsx("path", { d: "M2.5 10L17.5 10M17.5 10L12.5 5M17.5 10L12.5 15", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" }) }), _jsx("span", { children: "Send" })] }), _jsxs("button", { className: "wallet-modal-action-btn", onClick: handleReceive, children: [_jsx("svg", { width: "20", height: "20", viewBox: "0 0 20 20", fill: "none", children: _jsx("path", { d: "M2.5 10L17.5 10M2.5 10L7.5 5M2.5 10L7.5 15", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" }) }), _jsx("span", { children: "Receive" })] }), _jsxs("button", { className: "wallet-modal-action-btn", onClick: handleBuy, children: [_jsx("svg", { width: "20", height: "20", viewBox: "0 0 20 20", fill: "none", children: _jsx("path", { d: "M10 4V16M4 10H16", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" }) }), _jsx("span", { children: "Buy" })] })] }), availableChains && availableChains.length > 0 && (_jsx("div", { className: "wallet-modal-chain-selector-section", children: _jsxs("div", { className: "wallet-modal-chain-selector", children: [currentChain ? (_jsxs("button", { className: "wallet-modal-chain-selector-btn", onClick: () => setShowChainSelector(!showChainSelector), children: [_jsxs("div", { className: "wallet-modal-chain-selector-current", children: [_jsx("div", { className: "wallet-modal-chain-icon", children: _jsxs("svg", { width: "20", height: "20", viewBox: "0 0 20 20", fill: "none", children: [_jsx("circle", { cx: "10", cy: "10", r: "8", stroke: "currentColor", strokeWidth: "2", fill: "none" }), _jsx("path", { d: "M10 2L10 6M10 14L10 18M2 10L6 10M14 10L18 10", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round" })] }) }), _jsx("span", { className: "wallet-modal-chain-name", children: currentChain.displayName })] }), _jsx("svg", { width: "16", height: "16", viewBox: "0 0 16 16", fill: "none", className: `wallet-modal-chain-arrow ${showChainSelector ? 'open' : ''}`, children: _jsx("path", { d: "M4 6L8 10L12 6", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" }) })] })) : (_jsx("div", { className: "wallet-modal-chain-selector-placeholder", children: _jsx("span", { children: "Select Chain" }) })), showChainSelector && availableChains && availableChains.length > 0 && (_jsxs("div", { className: "wallet-modal-chain-dropdown", children: [_jsxs("div", { className: "wallet-modal-chain-tabs", children: [_jsx("button", { className: `wallet-modal-chain-tab ${selectedChainType === 'evm' ? 'active' : ''}`, onClick: () => setSelectedChainType('evm'), children: "EVM" }), availableChains.some(c => c.type === 'solana') && (_jsx("button", { className: `wallet-modal-chain-tab ${selectedChainType === 'solana' ? 'active' : ''}`, onClick: () => setSelectedChainType('solana'), children: "Solana" }))] }), _jsx("div", { className: "wallet-modal-chain-list", children: availableChains
309
+ .filter(chain => chain.type === selectedChainType)
310
+ .map((chain) => (_jsxs("button", { className: `wallet-modal-chain-item ${currentChain?.id === chain.id ? 'active' : ''}`, onClick: async () => {
311
+ if (switchChainEnhanced && chain.id !== currentChain?.id) {
312
+ try {
313
+ await switchChainEnhanced(chain.id);
314
+ setShowChainSelector(false);
315
+ }
316
+ catch (error) {
317
+ console.error('Failed to switch chain:', error);
318
+ }
319
+ }
320
+ else {
321
+ setShowChainSelector(false);
322
+ }
323
+ }, children: [_jsx("div", { className: "wallet-modal-chain-icon", children: _jsxs("svg", { width: "20", height: "20", viewBox: "0 0 20 20", fill: "none", children: [_jsx("circle", { cx: "10", cy: "10", r: "8", stroke: "currentColor", strokeWidth: "2", fill: "none" }), _jsx("path", { d: "M10 2L10 6M10 14L10 18M2 10L6 10M14 10L18 10", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round" })] }) }), _jsxs("div", { className: "wallet-modal-chain-info", children: [_jsx("span", { className: "wallet-modal-chain-name", children: chain.displayName }), chain.isTestnet && (_jsx("span", { className: "wallet-modal-chain-badge", children: "Testnet" }))] }), currentChain?.id === chain.id && (_jsx("svg", { width: "16", height: "16", viewBox: "0 0 16 16", fill: "none", children: _jsx("path", { d: "M13.5 4L6 11.5L2.5 8", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" }) }))] }, chain.id))) })] }))] }) })), _jsxs("div", { className: "wallet-modal-balance", children: [_jsx("div", { className: "wallet-modal-balance-label", children: "Balance" }), _jsxs("div", { className: "wallet-modal-balance-value", children: [balanceDisplay, _jsx("span", { className: "wallet-modal-asset-status" })] })] }), _jsx("div", { className: "wallet-modal-menu", children: _jsxs("button", { className: "wallet-modal-menu-item", onClick: handleManageWallet, children: [_jsxs("svg", { width: "20", height: "20", viewBox: "0 0 20 20", fill: "none", children: [_jsx("path", { d: "M3 6C3 4.89543 3.89543 4 5 4H15C16.1046 4 17 4.89543 17 6V16C17 17.1046 16.1046 18 15 18H5C3.89543 18 3 17.1046 3 16V6Z", stroke: "currentColor", strokeWidth: "2" }), _jsx("path", { d: "M7 8H13M7 12H13", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round" })] }), _jsx("span", { children: "Account & Settings" })] }) }), externalWalletsEnabled && (_jsxs(_Fragment, { children: [_jsx("div", { className: "wallet-modal-divider" }), _jsxs("div", { className: "wallet-modal-external-wallets", children: [_jsx("div", { className: "wallet-modal-external-wallets-label", children: "Connect External Wallet" }), _jsx("div", { ref: externalWalletContainerRef })] })] })), _jsx("div", { className: "wallet-modal-divider" }), _jsxs("button", { className: "wallet-modal-disconnect", onClick: handleDisconnect, children: [_jsxs("svg", { width: "20", height: "20", viewBox: "0 0 20 20", fill: "none", children: [_jsx("path", { d: "M7.5 15L12.5 10L7.5 5M12.5 10H2.5", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" }), _jsx("path", { d: "M2.5 4V16", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" })] }), _jsx("span", { children: "Disconnect Wallet" })] })] }) }));
88
324
  }
89
325
  //# sourceMappingURL=WalletModal.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"WalletModal.js","sourceRoot":"","sources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,MAAM,EAAC,cAAc,EACrB,WAAW,EAAC,GAAG,EACf,aAAa,EAAC,OAAO,EACrB,cAAc,EAAC,OAAO,GACtB,IACE,EACN,+CAA8B,IACvB,IACL,GACF,CACP,CAAC;AACJ,CAAC"}
@@ -0,0 +1,55 @@
1
+ /**
2
+ * Chain Constants
3
+ * Complete chain data for EVM and Solana networks
4
+ */
5
+ export interface ChainData {
6
+ id: number;
7
+ name: string;
8
+ displayName: string;
9
+ rpcUrl: string;
10
+ explorerUrl: string;
11
+ icon?: string;
12
+ nativeCurrency: {
13
+ name: string;
14
+ symbol: string;
15
+ decimals: number;
16
+ };
17
+ type: 'evm' | 'solana';
18
+ isTestnet: boolean;
19
+ blockExplorer?: {
20
+ name: string;
21
+ url: string;
22
+ };
23
+ }
24
+ /**
25
+ * EVM Chains
26
+ */
27
+ export declare const EVM_CHAINS: Record<string, ChainData>;
28
+ /**
29
+ * Solana Chains
30
+ */
31
+ export declare const SOLANA_CHAINS: Record<string, ChainData>;
32
+ /**
33
+ * All available chains
34
+ */
35
+ export declare const ALL_CHAINS: Record<string, ChainData>;
36
+ /**
37
+ * Get chain by ID
38
+ */
39
+ export declare function getChainById(chainId: number): ChainData | undefined;
40
+ /**
41
+ * Get chains by type
42
+ */
43
+ export declare function getChainsByType(type: 'evm' | 'solana'): ChainData[];
44
+ /**
45
+ * Get default chains (Ethereum, Polygon, Base for EVM; Solana for Solana)
46
+ */
47
+ export declare function getDefaultChains(): ChainData[];
48
+ /**
49
+ * Convert ChainData to Core Chain format for SDK compatibility
50
+ */
51
+ export declare function toCoreChain(chainData: ChainData): import('signer-test-sdk-core').Chain;
52
+ /**
53
+ * Get chain icon SVG path (placeholder - can be replaced with actual icons)
54
+ */
55
+ export declare function getChainIcon(chainId: number): string;