@coinbase/cdp-react 0.0.87 → 0.0.88

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 (51) hide show
  1. package/dist/chunks/{CDPReactProvider.C38bKQ2x.js → CDPReactProvider.BkmtXUv1.js} +1 -1
  2. package/dist/chunks/{LinkAuthFlow.CLubKoY0.js → LinkAuthFlow.B4FAtf4V.js} +1 -1
  3. package/dist/chunks/{index.BN39qScu.js → index.DgrgIsTX.js} +1 -1
  4. package/dist/chunks/useSendComponentCallOnce.DGjALrnZ.js +278 -0
  5. package/dist/components/AuthButton/index.js +1 -1
  6. package/dist/components/CDPReactProvider/index.js +1 -1
  7. package/dist/components/CopyEvmKeyButton/index.js +1 -1
  8. package/dist/components/CopySolanaKeyButton/index.js +1 -1
  9. package/dist/components/EnrollMfa/index.js +2 -2
  10. package/dist/components/EnrollMfaModal/index.js +2 -2
  11. package/dist/components/ExportWallet/index.js +3 -3
  12. package/dist/components/ExportWalletModal/index.js +2 -2
  13. package/dist/components/Fund/index.js +2 -2
  14. package/dist/components/FundModal/index.js +2 -2
  15. package/dist/components/LinkAuth/LinkAuthFlow.js +2 -2
  16. package/dist/components/LinkAuth/LinkAuthFlowBackButton.js +2 -2
  17. package/dist/components/LinkAuth/LinkAuthFlowProvider.js +2 -2
  18. package/dist/components/LinkAuth/LinkAuthItem.js +1 -1
  19. package/dist/components/LinkAuth/LinkAuthItems.js +1 -1
  20. package/dist/components/LinkAuth/LinkAuthProvider.js +1 -1
  21. package/dist/components/LinkAuth/index.js +4 -4
  22. package/dist/components/LinkAuth/types.js +1 -1
  23. package/dist/components/LinkAuth/utils.js +1 -1
  24. package/dist/components/LinkAuthModal/index.js +3 -3
  25. package/dist/components/OAuthStatusModal/index.js +2 -2
  26. package/dist/components/SendEvmTransactionButton/index.js +1 -1
  27. package/dist/components/SendSolanaTransactionButton/index.js +1 -1
  28. package/dist/components/SignIn/SignInAuthMethodButtons.js +1 -1
  29. package/dist/components/SignIn/SignInBackButton.js +1 -1
  30. package/dist/components/SignIn/SignInDescription.js +2 -2
  31. package/dist/components/SignIn/SignInForm.js +2 -2
  32. package/dist/components/SignIn/SignInImage.js +1 -1
  33. package/dist/components/SignIn/SignInProvider.js +1 -1
  34. package/dist/components/SignIn/SignInTitle.js +2 -2
  35. package/dist/components/SignIn/flows/SignInWithEmail.js +1 -1
  36. package/dist/components/SignIn/flows/SignInWithOAuth.js +1 -1
  37. package/dist/components/SignIn/flows/SignInWithSms.js +1 -1
  38. package/dist/components/SignIn/index.js +2 -2
  39. package/dist/components/SignIn/types.js +1 -1
  40. package/dist/components/SignIn/useSignInReducer.js +1 -1
  41. package/dist/components/SignInModal/index.js +2 -2
  42. package/dist/components/SignOutButton/index.js +1 -1
  43. package/dist/components/VerifyMfa/index.js +2 -2
  44. package/dist/components/VerifyMfaInline/index.js +2 -2
  45. package/dist/components/VerifyMfaModal/index.js +2 -2
  46. package/dist/hooks/useVerifyMfaModal.js +2 -2
  47. package/dist/index.js +3 -3
  48. package/dist/version.d.ts +1 -1
  49. package/dist/version.js +1 -1
  50. package/package.json +5 -5
  51. package/dist/chunks/useSendComponentCallOnce.BHZMuo6E.js +0 -273
@@ -2,7 +2,7 @@ import { jsx as t, jsxs as h, Fragment as x } from "react/jsx-runtime";
2
2
  import { OAuth2ProviderType as ee, CDPContext as te, CDPHooksProvider as oe } from "@coinbase/cdp-hooks";
3
3
  import { useRef as g, useEffect as O, useCallback as d, useLayoutEffect as re, createContext as D, useState as B, useMemo as T, useContext as S, useId as $, lazy as ne } from "react";
4
4
  import { registerMfaListener as se, cancelMfaVerification as ie } from "@coinbase/cdp-core";
5
- import { A as ae, u as j } from "./useSendComponentCallOnce.BHZMuo6E.js";
5
+ import { A as ae, u as j } from "./useSendComponentCallOnce.DGjALrnZ.js";
6
6
  import { ThemeProvider as ce } from "../components/ThemeProvider/index.js";
7
7
  import { c as le } from "./lite.1fxw3LjI.js";
8
8
  import { Button as J } from "../components/ui/Button/index.js";
@@ -1,6 +1,6 @@
1
1
  import { jsx as i, jsxs as m, Fragment as p } from "react/jsx-runtime";
2
2
  import { createContext as I, useContext as S, useMemo as v, forwardRef as A, useRef as L, useImperativeHandle as x, useEffect as N } from "react";
3
- import { u as C } from "./CDPReactProvider.C38bKQ2x.js";
3
+ import { u as C } from "./CDPReactProvider.BkmtXUv1.js";
4
4
  import { SignIn as _ } from "../components/SignIn/index.js";
5
5
  import "@coinbase/cdp-hooks";
6
6
  import { SwitchSlideTransition as T } from "../components/ui/SwitchSlideTransition/index.js";
@@ -1,5 +1,5 @@
1
1
  import { OAuth2ProviderType as t } from "@coinbase/cdp-hooks";
2
- import "./CDPReactProvider.C38bKQ2x.js";
2
+ import "./CDPReactProvider.BkmtXUv1.js";
3
3
  import { config as i } from "../components/SignIn/flows/SignInWithEmail.js";
4
4
  import { config as m } from "../components/SignIn/flows/SignInWithSms.js";
5
5
  import "react";
@@ -0,0 +1,278 @@
1
+ import { useRef as L, useEffect as M } from "react";
2
+ function N(f) {
3
+ return f && f.__esModule && Object.prototype.hasOwnProperty.call(f, "default") ? f.default : f;
4
+ }
5
+ var w = { exports: {} }, T = { exports: {} }, C;
6
+ function q() {
7
+ return C || (C = 1, function() {
8
+ var f = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", d = {
9
+ // Bit-wise rotation left
10
+ rotl: function(c, u) {
11
+ return c << u | c >>> 32 - u;
12
+ },
13
+ // Bit-wise rotation right
14
+ rotr: function(c, u) {
15
+ return c << 32 - u | c >>> u;
16
+ },
17
+ // Swap big-endian to little-endian and vice versa
18
+ endian: function(c) {
19
+ if (c.constructor == Number)
20
+ return d.rotl(c, 8) & 16711935 | d.rotl(c, 24) & 4278255360;
21
+ for (var u = 0; u < c.length; u++)
22
+ c[u] = d.endian(c[u]);
23
+ return c;
24
+ },
25
+ // Generate an array of any length of random bytes
26
+ randomBytes: function(c) {
27
+ for (var u = []; c > 0; c--)
28
+ u.push(Math.floor(Math.random() * 256));
29
+ return u;
30
+ },
31
+ // Convert a byte array to big-endian 32-bit words
32
+ bytesToWords: function(c) {
33
+ for (var u = [], a = 0, s = 0; a < c.length; a++, s += 8)
34
+ u[s >>> 5] |= c[a] << 24 - s % 32;
35
+ return u;
36
+ },
37
+ // Convert big-endian 32-bit words to a byte array
38
+ wordsToBytes: function(c) {
39
+ for (var u = [], a = 0; a < c.length * 32; a += 8)
40
+ u.push(c[a >>> 5] >>> 24 - a % 32 & 255);
41
+ return u;
42
+ },
43
+ // Convert a byte array to a hex string
44
+ bytesToHex: function(c) {
45
+ for (var u = [], a = 0; a < c.length; a++)
46
+ u.push((c[a] >>> 4).toString(16)), u.push((c[a] & 15).toString(16));
47
+ return u.join("");
48
+ },
49
+ // Convert a hex string to a byte array
50
+ hexToBytes: function(c) {
51
+ for (var u = [], a = 0; a < c.length; a += 2)
52
+ u.push(parseInt(c.substr(a, 2), 16));
53
+ return u;
54
+ },
55
+ // Convert a byte array to a base-64 string
56
+ bytesToBase64: function(c) {
57
+ for (var u = [], a = 0; a < c.length; a += 3)
58
+ for (var s = c[a] << 16 | c[a + 1] << 8 | c[a + 2], l = 0; l < 4; l++)
59
+ a * 8 + l * 6 <= c.length * 8 ? u.push(f.charAt(s >>> 6 * (3 - l) & 63)) : u.push("=");
60
+ return u.join("");
61
+ },
62
+ // Convert a base-64 string to a byte array
63
+ base64ToBytes: function(c) {
64
+ c = c.replace(/[^A-Z0-9+\/]/ig, "");
65
+ for (var u = [], a = 0, s = 0; a < c.length; s = ++a % 4)
66
+ s != 0 && u.push((f.indexOf(c.charAt(a - 1)) & Math.pow(2, -2 * s + 8) - 1) << s * 2 | f.indexOf(c.charAt(a)) >>> 6 - s * 2);
67
+ return u;
68
+ }
69
+ };
70
+ T.exports = d;
71
+ }()), T.exports;
72
+ }
73
+ var F, m;
74
+ function x() {
75
+ if (m) return F;
76
+ m = 1;
77
+ var f = {
78
+ // UTF-8 encoding
79
+ utf8: {
80
+ // Convert a string to a byte array
81
+ stringToBytes: function(d) {
82
+ return f.bin.stringToBytes(unescape(encodeURIComponent(d)));
83
+ },
84
+ // Convert a byte array to a string
85
+ bytesToString: function(d) {
86
+ return decodeURIComponent(escape(f.bin.bytesToString(d)));
87
+ }
88
+ },
89
+ // Binary encoding
90
+ bin: {
91
+ // Convert a string to a byte array
92
+ stringToBytes: function(d) {
93
+ for (var c = [], u = 0; u < d.length; u++)
94
+ c.push(d.charCodeAt(u) & 255);
95
+ return c;
96
+ },
97
+ // Convert a byte array to a string
98
+ bytesToString: function(d) {
99
+ for (var c = [], u = 0; u < d.length; u++)
100
+ c.push(String.fromCharCode(d[u]));
101
+ return c.join("");
102
+ }
103
+ }
104
+ };
105
+ return F = f, F;
106
+ }
107
+ /*!
108
+ * Determine if an object is a Buffer
109
+ *
110
+ * @author Feross Aboukhadijeh <https://feross.org>
111
+ * @license MIT
112
+ */
113
+ var S, O;
114
+ function H() {
115
+ if (O) return S;
116
+ O = 1, S = function(c) {
117
+ return c != null && (f(c) || d(c) || !!c._isBuffer);
118
+ };
119
+ function f(c) {
120
+ return !!c.constructor && typeof c.constructor.isBuffer == "function" && c.constructor.isBuffer(c);
121
+ }
122
+ function d(c) {
123
+ return typeof c.readFloatLE == "function" && typeof c.slice == "function" && f(c.slice(0, 0));
124
+ }
125
+ return S;
126
+ }
127
+ var A;
128
+ function V() {
129
+ return A || (A = 1, function() {
130
+ var f = q(), d = x().utf8, c = H(), u = x().bin, a = function(s, l) {
131
+ s.constructor == String ? l && l.encoding === "binary" ? s = u.stringToBytes(s) : s = d.stringToBytes(s) : c(s) ? s = Array.prototype.slice.call(s, 0) : !Array.isArray(s) && s.constructor !== Uint8Array && (s = s.toString());
132
+ for (var o = f.bytesToWords(s), y = s.length * 8, e = 1732584193, n = -271733879, r = -1732584194, t = 271733878, i = 0; i < o.length; i++)
133
+ o[i] = (o[i] << 8 | o[i] >>> 24) & 16711935 | (o[i] << 24 | o[i] >>> 8) & 4278255360;
134
+ o[y >>> 5] |= 128 << y % 32, o[(y + 64 >>> 9 << 4) + 14] = y;
135
+ for (var p = a._ff, h = a._gg, v = a._hh, _ = a._ii, i = 0; i < o.length; i += 16) {
136
+ var P = e, k = n, D = r, U = t;
137
+ e = p(e, n, r, t, o[i + 0], 7, -680876936), t = p(t, e, n, r, o[i + 1], 12, -389564586), r = p(r, t, e, n, o[i + 2], 17, 606105819), n = p(n, r, t, e, o[i + 3], 22, -1044525330), e = p(e, n, r, t, o[i + 4], 7, -176418897), t = p(t, e, n, r, o[i + 5], 12, 1200080426), r = p(r, t, e, n, o[i + 6], 17, -1473231341), n = p(n, r, t, e, o[i + 7], 22, -45705983), e = p(e, n, r, t, o[i + 8], 7, 1770035416), t = p(t, e, n, r, o[i + 9], 12, -1958414417), r = p(r, t, e, n, o[i + 10], 17, -42063), n = p(n, r, t, e, o[i + 11], 22, -1990404162), e = p(e, n, r, t, o[i + 12], 7, 1804603682), t = p(t, e, n, r, o[i + 13], 12, -40341101), r = p(r, t, e, n, o[i + 14], 17, -1502002290), n = p(n, r, t, e, o[i + 15], 22, 1236535329), e = h(e, n, r, t, o[i + 1], 5, -165796510), t = h(t, e, n, r, o[i + 6], 9, -1069501632), r = h(r, t, e, n, o[i + 11], 14, 643717713), n = h(n, r, t, e, o[i + 0], 20, -373897302), e = h(e, n, r, t, o[i + 5], 5, -701558691), t = h(t, e, n, r, o[i + 10], 9, 38016083), r = h(r, t, e, n, o[i + 15], 14, -660478335), n = h(n, r, t, e, o[i + 4], 20, -405537848), e = h(e, n, r, t, o[i + 9], 5, 568446438), t = h(t, e, n, r, o[i + 14], 9, -1019803690), r = h(r, t, e, n, o[i + 3], 14, -187363961), n = h(n, r, t, e, o[i + 8], 20, 1163531501), e = h(e, n, r, t, o[i + 13], 5, -1444681467), t = h(t, e, n, r, o[i + 2], 9, -51403784), r = h(r, t, e, n, o[i + 7], 14, 1735328473), n = h(n, r, t, e, o[i + 12], 20, -1926607734), e = v(e, n, r, t, o[i + 5], 4, -378558), t = v(t, e, n, r, o[i + 8], 11, -2022574463), r = v(r, t, e, n, o[i + 11], 16, 1839030562), n = v(n, r, t, e, o[i + 14], 23, -35309556), e = v(e, n, r, t, o[i + 1], 4, -1530992060), t = v(t, e, n, r, o[i + 4], 11, 1272893353), r = v(r, t, e, n, o[i + 7], 16, -155497632), n = v(n, r, t, e, o[i + 10], 23, -1094730640), e = v(e, n, r, t, o[i + 13], 4, 681279174), t = v(t, e, n, r, o[i + 0], 11, -358537222), r = v(r, t, e, n, o[i + 3], 16, -722521979), n = v(n, r, t, e, o[i + 6], 23, 76029189), e = v(e, n, r, t, o[i + 9], 4, -640364487), t = v(t, e, n, r, o[i + 12], 11, -421815835), r = v(r, t, e, n, o[i + 15], 16, 530742520), n = v(n, r, t, e, o[i + 2], 23, -995338651), e = _(e, n, r, t, o[i + 0], 6, -198630844), t = _(t, e, n, r, o[i + 7], 10, 1126891415), r = _(r, t, e, n, o[i + 14], 15, -1416354905), n = _(n, r, t, e, o[i + 5], 21, -57434055), e = _(e, n, r, t, o[i + 12], 6, 1700485571), t = _(t, e, n, r, o[i + 3], 10, -1894986606), r = _(r, t, e, n, o[i + 10], 15, -1051523), n = _(n, r, t, e, o[i + 1], 21, -2054922799), e = _(e, n, r, t, o[i + 8], 6, 1873313359), t = _(t, e, n, r, o[i + 15], 10, -30611744), r = _(r, t, e, n, o[i + 6], 15, -1560198380), n = _(n, r, t, e, o[i + 13], 21, 1309151649), e = _(e, n, r, t, o[i + 4], 6, -145523070), t = _(t, e, n, r, o[i + 11], 10, -1120210379), r = _(r, t, e, n, o[i + 2], 15, 718787259), n = _(n, r, t, e, o[i + 9], 21, -343485551), e = e + P >>> 0, n = n + k >>> 0, r = r + D >>> 0, t = t + U >>> 0;
138
+ }
139
+ return f.endian([e, n, r, t]);
140
+ };
141
+ a._ff = function(s, l, o, y, e, n, r) {
142
+ var t = s + (l & o | ~l & y) + (e >>> 0) + r;
143
+ return (t << n | t >>> 32 - n) + l;
144
+ }, a._gg = function(s, l, o, y, e, n, r) {
145
+ var t = s + (l & y | o & ~y) + (e >>> 0) + r;
146
+ return (t << n | t >>> 32 - n) + l;
147
+ }, a._hh = function(s, l, o, y, e, n, r) {
148
+ var t = s + (l ^ o ^ y) + (e >>> 0) + r;
149
+ return (t << n | t >>> 32 - n) + l;
150
+ }, a._ii = function(s, l, o, y, e, n, r) {
151
+ var t = s + (o ^ (l | ~y)) + (e >>> 0) + r;
152
+ return (t << n | t >>> 32 - n) + l;
153
+ }, a._blocksize = 16, a._digestsize = 16, w.exports = function(s, l) {
154
+ if (s == null)
155
+ throw new Error("Illegal argument " + s);
156
+ var o = f.wordsToBytes(a(s, l));
157
+ return l && l.asBytes ? o : l && l.asString ? u.bytesToString(o) : f.bytesToHex(o);
158
+ };
159
+ }()), w.exports;
160
+ }
161
+ var G = V();
162
+ const J = /* @__PURE__ */ N(G);
163
+ function K() {
164
+ try {
165
+ return typeof navigator < "u" && navigator.product === "ReactNative";
166
+ } catch {
167
+ return !1;
168
+ }
169
+ }
170
+ function $() {
171
+ try {
172
+ if (typeof window > "u")
173
+ return typeof process < "u" && process.env && "__NEXT_PROCESSED_ENV" in process.env;
174
+ const f = window;
175
+ return !!(f.__NEXT_DATA__ || f.next || document.getElementById("__next"));
176
+ } catch {
177
+ return !1;
178
+ }
179
+ }
180
+ function z() {
181
+ try {
182
+ if (typeof window > "u")
183
+ return !1;
184
+ const f = window;
185
+ return !!(f.__VUE__ || f.__VUE_DEVTOOLS_GLOBAL_HOOK__ || document.querySelector("[data-v-]"));
186
+ } catch {
187
+ return !1;
188
+ }
189
+ }
190
+ function W() {
191
+ try {
192
+ if (typeof window > "u")
193
+ return !1;
194
+ const f = window;
195
+ return f.__REACT_DEVTOOLS_GLOBAL_HOOK__ || f.React ? !0 : !!document.querySelector(
196
+ "[data-reactroot], [data-reactid], ._reactRoot, ._reactRootContainer"
197
+ );
198
+ } catch {
199
+ return !1;
200
+ }
201
+ }
202
+ function X() {
203
+ return W() ? "react" : K() ? "react-native" : $() ? "nextjs" : z() ? "vue" : "unknown";
204
+ }
205
+ let R = null;
206
+ function Y() {
207
+ return R === null && (R = X()), R;
208
+ }
209
+ const Z = "1f8d3e558f493e38a037dbfadb8ba344", b = "d473b1dcc969105adab157226cd9cf63", B = Symbol.for("@coinbase/cdp-analytics");
210
+ function Q() {
211
+ const f = globalThis;
212
+ return f[B] || (f[B] = {
213
+ developerIdentifier: "",
214
+ endUserIdentifier: "",
215
+ enabled: !0,
216
+ isProduction: !1,
217
+ isUsingMocks: !1,
218
+ sendEvent: E,
219
+ sendActionCallEvent: (d) => E({ ...d, type: "action_call" }),
220
+ sendHookCallEvent: (d) => E({ ...d, type: "hook_call" }),
221
+ sendComponentCallEvent: (d) => E({ ...d, type: "component_call" }),
222
+ sendSessionRefreshEvent: (d) => E({ ...d, type: "session_refresh" }),
223
+ versionRegistry: {},
224
+ registerPackageVersion: (d, c) => {
225
+ g.versionRegistry[d] = c;
226
+ }
227
+ }), f[B];
228
+ }
229
+ const g = Q(), j = /* @__PURE__ */ new Set(["session_refresh"]);
230
+ async function E(f) {
231
+ if (!g.enabled)
232
+ return;
233
+ const c = j.has(f.type) ? g.endUserIdentifier : g.developerIdentifier;
234
+ if (!c)
235
+ return;
236
+ const u = Date.now(), s = [{
237
+ user_id: c,
238
+ event_type: f.type,
239
+ platform: I() ? "web" : "native",
240
+ timestamp: u,
241
+ event_properties: {
242
+ project_name: "cdp-embedded-wallet",
243
+ framework: Y(),
244
+ isLocalHost: nn(),
245
+ isUsingMocks: g.isUsingMocks,
246
+ package_versions: g.versionRegistry,
247
+ ...f
248
+ }
249
+ }], l = JSON.stringify(s), o = u.toString(), y = J(l + o), e = {
250
+ client: g.isProduction ? b : Z,
251
+ e: l,
252
+ checksum: y
253
+ };
254
+ await fetch("https://cca-lite.coinbase.com/amp", {
255
+ method: "POST",
256
+ mode: "no-cors",
257
+ headers: {
258
+ "Content-Type": "application/json"
259
+ },
260
+ body: JSON.stringify(e)
261
+ });
262
+ }
263
+ function I() {
264
+ return typeof window < "u" && typeof document < "u";
265
+ }
266
+ function nn() {
267
+ return I() ? window.location.hostname === "localhost" || window.location.hostname === "127.0.0.1" : !1;
268
+ }
269
+ function en(f) {
270
+ const d = L(!1);
271
+ M(() => {
272
+ d.current || (g.sendComponentCallEvent({ name: f }), d.current = !0);
273
+ }, [f]);
274
+ }
275
+ export {
276
+ g as A,
277
+ en as u
278
+ };
@@ -1,6 +1,6 @@
1
1
  import { jsx as u, jsxs as j, Fragment as k } from "react/jsx-runtime";
2
2
  import { useIsInitialized as y, useIsSignedIn as z } from "@coinbase/cdp-hooks";
3
- import { u as D } from "../../chunks/useSendComponentCallOnce.BHZMuo6E.js";
3
+ import { u as D } from "../../chunks/useSendComponentCallOnce.DGjALrnZ.js";
4
4
  import { useState as m, useRef as M, useCallback as x, useEffect as f } from "react";
5
5
  import { SignInModal as N } from "../SignInModal/index.js";
6
6
  import { SignOutButton as $ } from "../SignOutButton/index.js";
@@ -1,7 +1,7 @@
1
1
  import "react/jsx-runtime";
2
2
  import "@coinbase/cdp-hooks";
3
3
  import "react";
4
- import { c as p, A as m, C as t, O as A, u as H, a as T } from "../../chunks/CDPReactProvider.C38bKQ2x.js";
4
+ import { c as p, A as m, C as t, O as A, u as H, a as T } from "../../chunks/CDPReactProvider.BkmtXUv1.js";
5
5
  import "../ThemeProvider/index.js";
6
6
  export {
7
7
  p as ALL_AUTH_METHODS,
@@ -1,6 +1,6 @@
1
1
  import { jsx as B } from "react/jsx-runtime";
2
2
  import { useConfig as S } from "@coinbase/cdp-hooks";
3
- import { u as _ } from "../../chunks/useSendComponentCallOnce.BHZMuo6E.js";
3
+ import { u as _ } from "../../chunks/useSendComponentCallOnce.DGjALrnZ.js";
4
4
  import { useRef as j, useState as i, useCallback as E } from "react";
5
5
  import "../ui/Button/index.js";
6
6
  import { IframeButton as K } from "../ui/IframeButton/index.js";
@@ -1,6 +1,6 @@
1
1
  import { jsx as B } from "react/jsx-runtime";
2
2
  import { useConfig as _ } from "@coinbase/cdp-hooks";
3
- import { u as j } from "../../chunks/useSendComponentCallOnce.BHZMuo6E.js";
3
+ import { u as j } from "../../chunks/useSendComponentCallOnce.DGjALrnZ.js";
4
4
  import { useRef as K, useState as i, useCallback as T } from "react";
5
5
  import "../ui/Button/index.js";
6
6
  import { IframeButton as U } from "../ui/IframeButton/index.js";
@@ -1,10 +1,10 @@
1
1
  import { jsx as r, jsxs as s, Fragment as u } from "react/jsx-runtime";
2
2
  import { getEnabledMfaMethods as $, getEnrolledMfaMethods as k } from "@coinbase/cdp-core";
3
3
  import { useCurrentUser as w, useIsInitialized as V, useInitiateMfaEnrollment as j, useSubmitMfaEnrollment as z, useRecordMfaEnrollmentPrompted as q } from "@coinbase/cdp-hooks";
4
- import { u as J } from "../../chunks/useSendComponentCallOnce.BHZMuo6E.js";
4
+ import { u as J } from "../../chunks/useSendComponentCallOnce.DGjALrnZ.js";
5
5
  import { useMemo as C, useRef as _, useEffect as v, useCallback as p, useLayoutEffect as K } from "react";
6
6
  import { c as G } from "../../chunks/lite.1fxw3LjI.js";
7
- import { u as X } from "../../chunks/CDPReactProvider.C38bKQ2x.js";
7
+ import { u as X } from "../../chunks/CDPReactProvider.BkmtXUv1.js";
8
8
  import { useTimeout as Y } from "../../hooks/useTimeout.js";
9
9
  import { isApiError as Z } from "../../utils/isApiError.js";
10
10
  import "libphonenumber-js";
@@ -1,8 +1,8 @@
1
1
  import { jsx as o, jsxs as r, Fragment as s } from "react/jsx-runtime";
2
- import { u as v } from "../../chunks/useSendComponentCallOnce.BHZMuo6E.js";
2
+ import { u as v } from "../../chunks/useSendComponentCallOnce.DGjALrnZ.js";
3
3
  import { createContext as b, useMemo as w, useContext as y } from "react";
4
4
  import { c as p } from "../../chunks/lite.1fxw3LjI.js";
5
- import { u as F } from "../../chunks/CDPReactProvider.C38bKQ2x.js";
5
+ import { u as F } from "../../chunks/CDPReactProvider.BkmtXUv1.js";
6
6
  import { EnrollMfa as T, EnrollMfaError as B } from "../EnrollMfa/index.js";
7
7
  import { Button as h } from "../ui/Button/index.js";
8
8
  import { Modal as A, ModalContent as O, ModalTitle as S, ModalDescription as $, ModalClose as E, ModalTrigger as D } from "../ui/Modal/index.js";
@@ -1,8 +1,8 @@
1
- import { u as S, A as D } from "../../chunks/useSendComponentCallOnce.BHZMuo6E.js";
1
+ import { u as S, A as D } from "../../chunks/useSendComponentCallOnce.DGjALrnZ.js";
2
2
  import { createContext as A, useContext as k, useMemo as h, useState as L, useCallback as U } from "react";
3
3
  import { VERSION as q } from "../../version.js";
4
4
  import "../AuthButton/index.js";
5
- import { u as b } from "../../chunks/CDPReactProvider.C38bKQ2x.js";
5
+ import { u as b } from "../../chunks/CDPReactProvider.BkmtXUv1.js";
6
6
  import { CopyAddress as H } from "../CopyAddress/index.js";
7
7
  import { CopyEvmKeyButton as J } from "../CopyEvmKeyButton/index.js";
8
8
  import { CopySolanaKeyButton as X } from "../CopySolanaKeyButton/index.js";
@@ -71,7 +71,7 @@ import "../EnrollMfa/EnrollMfaFlowProvider.js";
71
71
  import "../Fund/FundForm.js";
72
72
  import "../Fund/FundTitle.js";
73
73
  import "../Fund/FundProvider.js";
74
- import "../../chunks/LinkAuthFlow.CLubKoY0.js";
74
+ import "../../chunks/LinkAuthFlow.B4FAtf4V.js";
75
75
  import "../LinkAuth/LinkAuthFlowBackButton.js";
76
76
  import "../LinkAuth/LinkAuthItem.js";
77
77
  import "../LinkAuth/LinkAuthItems.js";
@@ -1,8 +1,8 @@
1
1
  import "react/jsx-runtime";
2
- import "../../chunks/useSendComponentCallOnce.BHZMuo6E.js";
2
+ import "../../chunks/useSendComponentCallOnce.DGjALrnZ.js";
3
3
  import "react";
4
4
  import "../../chunks/lite.1fxw3LjI.js";
5
- import "../../chunks/CDPReactProvider.C38bKQ2x.js";
5
+ import "../../chunks/CDPReactProvider.BkmtXUv1.js";
6
6
  import { E as W, a as g, b as n, c as C, d as T } from "../ExportWallet/index.js";
7
7
  import "../ui/Banner/index.js";
8
8
  import "../ui/Button/index.js";
@@ -1,7 +1,7 @@
1
1
  import { jsx as n, jsxs as i, Fragment as f } from "react/jsx-runtime";
2
- import { u as p } from "../../chunks/useSendComponentCallOnce.BHZMuo6E.js";
2
+ import { u as p } from "../../chunks/useSendComponentCallOnce.DGjALrnZ.js";
3
3
  import { useId as a } from "react";
4
- import { u as c } from "../../chunks/CDPReactProvider.C38bKQ2x.js";
4
+ import { u as c } from "../../chunks/CDPReactProvider.BkmtXUv1.js";
5
5
  import { CoinbaseFooter as F } from "../ui/CoinbaseFooter/index.js";
6
6
  import { FundForm as l } from "./FundForm.js";
7
7
  import { FundProvider as C, useFundContext as _ } from "./FundProvider.js";
@@ -1,8 +1,8 @@
1
1
  import { jsx as o, jsxs as u, Fragment as p } from "react/jsx-runtime";
2
- import { u as w } from "../../chunks/useSendComponentCallOnce.BHZMuo6E.js";
2
+ import { u as w } from "../../chunks/useSendComponentCallOnce.DGjALrnZ.js";
3
3
  import { createContext as j, useState as A, useCallback as F, useMemo as S, useId as $, useContext as z } from "react";
4
4
  import { c as x } from "../../chunks/lite.1fxw3LjI.js";
5
- import { u as V } from "../../chunks/CDPReactProvider.C38bKQ2x.js";
5
+ import { u as V } from "../../chunks/CDPReactProvider.BkmtXUv1.js";
6
6
  import { Fund as k, FundFooter as D } from "../Fund/index.js";
7
7
  import { Button as v } from "../ui/Button/index.js";
8
8
  import { Modal as H, ModalContent as L, ModalTitle as R, ModalClose as U, ModalTrigger as W } from "../ui/Modal/index.js";
@@ -1,11 +1,11 @@
1
1
  import "react/jsx-runtime";
2
2
  import "react";
3
- import "../../chunks/CDPReactProvider.C38bKQ2x.js";
3
+ import "../../chunks/CDPReactProvider.BkmtXUv1.js";
4
4
  import "../SignIn/index.js";
5
5
  import "@coinbase/cdp-hooks";
6
6
  import "../ui/SwitchSlideTransition/index.js";
7
7
  import "../ui/VisuallyHidden/index.js";
8
- import { a as A } from "../../chunks/LinkAuthFlow.CLubKoY0.js";
8
+ import { a as A } from "../../chunks/LinkAuthFlow.B4FAtf4V.js";
9
9
  import "./LinkAuthItems.js";
10
10
  import "./types.js";
11
11
  import "../SignIn/SignInProvider.js";
@@ -3,9 +3,9 @@ import { c as k } from "../../chunks/lite.1fxw3LjI.js";
3
3
  import "react";
4
4
  import { Button as p } from "../ui/Button/index.js";
5
5
  import { IconArrowLeft as f } from "../../icons/IconArrowLeft.js";
6
- import { b as w } from "../../chunks/LinkAuthFlow.CLubKoY0.js";
6
+ import { b as w } from "../../chunks/LinkAuthFlow.B4FAtf4V.js";
7
7
  import { useLinkAuthContext as _ } from "./LinkAuthProvider.js";
8
- import "../../chunks/CDPReactProvider.C38bKQ2x.js";
8
+ import "../../chunks/CDPReactProvider.BkmtXUv1.js";
9
9
  import { methodToView as b } from "./utils.js";
10
10
  import '../../assets/LinkAuthFlowBackButton.css';const h = "LinkAuthFlowBackButton-module__button___wPKfW", B = "LinkAuthFlowBackButton-module__icon___OUmzY", o = {
11
11
  button: h,
@@ -1,7 +1,7 @@
1
1
  import "react/jsx-runtime";
2
2
  import "react";
3
- import "../../chunks/CDPReactProvider.C38bKQ2x.js";
4
- import { L as e, u as n, b as s } from "../../chunks/LinkAuthFlow.CLubKoY0.js";
3
+ import "../../chunks/CDPReactProvider.BkmtXUv1.js";
4
+ import { L as e, u as n, b as s } from "../../chunks/LinkAuthFlow.B4FAtf4V.js";
5
5
  export {
6
6
  e as LinkAuthFlowProvider,
7
7
  n as useLinkAuthFlow,
@@ -1,7 +1,7 @@
1
1
  import { jsx as m } from "react/jsx-runtime";
2
2
  import "react";
3
3
  import { ToggleListItem as s } from "../ui/ToggleListItem/index.js";
4
- import "../../chunks/CDPReactProvider.C38bKQ2x.js";
4
+ import "../../chunks/CDPReactProvider.BkmtXUv1.js";
5
5
  const u = ({
6
6
  authMethod: n,
7
7
  userAlias: e,
@@ -1,7 +1,7 @@
1
1
  import { jsx as l } from "react/jsx-runtime";
2
2
  import { c as I } from "../../chunks/lite.1fxw3LjI.js";
3
3
  import { useMemo as b } from "react";
4
- import "../../chunks/CDPReactProvider.C38bKQ2x.js";
4
+ import "../../chunks/CDPReactProvider.BkmtXUv1.js";
5
5
  import { IconAppleLogo as d } from "../../icons/IconAppleLogo.js";
6
6
  import { IconEnvelope as f } from "../../icons/IconEnvelope.js";
7
7
  import { IconGoogleColorLogo as L } from "../../icons/IconGoogleColorLogo.js";
@@ -1,7 +1,7 @@
1
1
  import { jsx as m } from "react/jsx-runtime";
2
2
  import { useCurrentUser as c } from "@coinbase/cdp-hooks";
3
3
  import { createContext as p, useContext as M, useMemo as r, useReducer as A, useEffect as f } from "react";
4
- import { u as L } from "../../chunks/CDPReactProvider.C38bKQ2x.js";
4
+ import { u as L } from "../../chunks/CDPReactProvider.BkmtXUv1.js";
5
5
  import { formatPhoneNumber as k } from "../../utils/formatPhoneNumber.js";
6
6
  const T = {
7
7
  methodToLink: null,
@@ -1,16 +1,16 @@
1
1
  import { jsx as r, jsxs as h, Fragment as C } from "react/jsx-runtime";
2
2
  import { useLinkOAuth as I } from "@coinbase/cdp-hooks";
3
- import { u as N } from "../../chunks/useSendComponentCallOnce.BHZMuo6E.js";
3
+ import { u as N } from "../../chunks/useSendComponentCallOnce.DGjALrnZ.js";
4
4
  import { useRef as d, useState as P, useCallback as a } from "react";
5
- import "../../chunks/CDPReactProvider.C38bKQ2x.js";
5
+ import "../../chunks/CDPReactProvider.BkmtXUv1.js";
6
6
  import { useOauthStatusModal as U } from "../OAuthStatusModal/index.js";
7
7
  import { Banner as D } from "../ui/Banner/index.js";
8
8
  import { useTimeout as H } from "../../hooks/useTimeout.js";
9
9
  import { getMessageFromUnknownError as M } from "../../utils/getMessageFromUnknownError.js";
10
10
  import "libphonenumber-js";
11
11
  import { toOAuthProviderType as v } from "../../utils/toOAuthProviderType.js";
12
- import { L as V, a as j } from "../../chunks/LinkAuthFlow.CLubKoY0.js";
13
- import { u as kt } from "../../chunks/LinkAuthFlow.CLubKoY0.js";
12
+ import { L as V, a as j } from "../../chunks/LinkAuthFlow.B4FAtf4V.js";
13
+ import { u as kt } from "../../chunks/LinkAuthFlow.B4FAtf4V.js";
14
14
  import { LinkAuthFlowBackButton as K } from "./LinkAuthFlowBackButton.js";
15
15
  import { LinkAuthItem as pt } from "./LinkAuthItem.js";
16
16
  import { LinkAuthItems as At } from "./LinkAuthItems.js";
@@ -1,4 +1,4 @@
1
- import "../../chunks/CDPReactProvider.C38bKQ2x.js";
1
+ import "../../chunks/CDPReactProvider.BkmtXUv1.js";
2
2
  const t = ["list", "email", "sms"];
3
3
  export {
4
4
  t as LINK_AUTH_FLOW_VIEWS
@@ -1,4 +1,4 @@
1
- import "../../chunks/CDPReactProvider.C38bKQ2x.js";
1
+ import "../../chunks/CDPReactProvider.BkmtXUv1.js";
2
2
  import { LINK_AUTH_FLOW_VIEWS as i } from "./types.js";
3
3
  const t = (r) => i.includes(r), o = (r) => r && t(r) ? r : "list";
4
4
  export {
@@ -1,8 +1,8 @@
1
1
  import { jsx as o, jsxs as n, Fragment as d } from "react/jsx-runtime";
2
- import { u as p } from "../../chunks/useSendComponentCallOnce.BHZMuo6E.js";
2
+ import { u as p } from "../../chunks/useSendComponentCallOnce.DGjALrnZ.js";
3
3
  import { createContext as f, useMemo as L, useContext as g } from "react";
4
4
  import { c as A } from "../../chunks/lite.1fxw3LjI.js";
5
- import "../../chunks/CDPReactProvider.C38bKQ2x.js";
5
+ import "../../chunks/CDPReactProvider.BkmtXUv1.js";
6
6
  import { LinkAuth as C, LinkAuthError as x } from "../LinkAuth/index.js";
7
7
  import { Button as m } from "../ui/Button/index.js";
8
8
  import { Modal as b, ModalContent as v, ModalTitle as w, ModalClose as N, ModalTrigger as T } from "../ui/Modal/index.js";
@@ -11,7 +11,7 @@ import { IconXMark as F } from "../../icons/IconXMark.js";
11
11
  import { childrenHasComponent as c } from "../../utils/childrenHasComponent.js";
12
12
  import { LinkAuthTitle as H } from "../LinkAuth/LinkAuthTitle.js";
13
13
  import { LinkAuthFlowBackButton as j } from "../LinkAuth/LinkAuthFlowBackButton.js";
14
- import { a as B } from "../../chunks/LinkAuthFlow.CLubKoY0.js";
14
+ import { a as B } from "../../chunks/LinkAuthFlow.B4FAtf4V.js";
15
15
  import '../../assets/LinkAuthModal.css';const S = "LinkAuthModal-module__header___qoco6", D = "LinkAuthModal-module__error___Srl7H", E = "LinkAuthModal-module__trigger___aHDfG", r = {
16
16
  header: S,
17
17
  error: D,
@@ -1,9 +1,9 @@
1
1
  import { jsx as s, jsxs as r, Fragment as S } from "react/jsx-runtime";
2
2
  import "@coinbase/cdp-core";
3
3
  import { useOAuthState as I } from "@coinbase/cdp-hooks";
4
- import { u as b } from "../../chunks/useSendComponentCallOnce.BHZMuo6E.js";
4
+ import { u as b } from "../../chunks/useSendComponentCallOnce.DGjALrnZ.js";
5
5
  import { useCallback as N, useState as O, useEffect as h, useRef as A } from "react";
6
- import { a as $ } from "../../chunks/CDPReactProvider.C38bKQ2x.js";
6
+ import { a as $ } from "../../chunks/CDPReactProvider.BkmtXUv1.js";
7
7
  import { CoinbaseFooter as k } from "../ui/CoinbaseFooter/index.js";
8
8
  import { LoadingSpinner as w } from "../ui/LoadingSpinner/index.js";
9
9
  import { Modal as E, ModalContent as L, ModalTitle as y, ModalDescription as R } from "../ui/Modal/index.js";
@@ -1,6 +1,6 @@
1
1
  import { jsx as E } from "react/jsx-runtime";
2
2
  import { useSendEvmTransaction as _, APIError as S } from "@coinbase/cdp-hooks";
3
- import { u as b } from "../../chunks/useSendComponentCallOnce.BHZMuo6E.js";
3
+ import { u as b } from "../../chunks/useSendComponentCallOnce.DGjALrnZ.js";
4
4
  import { useState as T, useCallback as y } from "react";
5
5
  import { c as C } from "../../chunks/lite.1fxw3LjI.js";
6
6
  import { Button as w } from "../ui/Button/index.js";
@@ -1,6 +1,6 @@
1
1
  import { jsx as _ } from "react/jsx-runtime";
2
2
  import { useSendSolanaTransaction as b, APIError as T } from "@coinbase/cdp-hooks";
3
- import { u as w } from "../../chunks/useSendComponentCallOnce.BHZMuo6E.js";
3
+ import { u as w } from "../../chunks/useSendComponentCallOnce.DGjALrnZ.js";
4
4
  import { useState as x, useCallback as y } from "react";
5
5
  import { c as B } from "../../chunks/lite.1fxw3LjI.js";
6
6
  import { Button as C } from "../ui/Button/index.js";
@@ -1,6 +1,6 @@
1
1
  import { jsx as n, jsxs as r } from "react/jsx-runtime";
2
2
  import { useCallback as v, useMemo as y } from "react";
3
- import "../../chunks/CDPReactProvider.C38bKQ2x.js";
3
+ import "../../chunks/CDPReactProvider.BkmtXUv1.js";
4
4
  import { useSignInWithOAuth as S } from "./hooks/useSignInWithOAuth.js";
5
5
  import { useSignInContext as _ } from "./SignInProvider.js";
6
6
  import { Button as C } from "../ui/Button/index.js";
@@ -5,7 +5,7 @@ import { IconArrowLeft as S } from "../../icons/IconArrowLeft.js";
5
5
  import "../../theme/theme.js";
6
6
  import { useSignInContext as d } from "./SignInProvider.js";
7
7
  import "@coinbase/cdp-hooks";
8
- import "../../chunks/CDPReactProvider.C38bKQ2x.js";
8
+ import "../../chunks/CDPReactProvider.BkmtXUv1.js";
9
9
  import '../../assets/SignInBackButton.css';const B = "SignInBackButton-module__icon___stNFS", k = {
10
10
  icon: B
11
11
  }, E = ({
@@ -1,9 +1,9 @@
1
1
  import { jsx as i } from "react/jsx-runtime";
2
2
  import "react";
3
- import { a as d } from "../../chunks/index.BN39qScu.js";
3
+ import { a as d } from "../../chunks/index.DgrgIsTX.js";
4
4
  import { useSignInContext as h } from "./SignInProvider.js";
5
5
  import "@coinbase/cdp-hooks";
6
- import "../../chunks/CDPReactProvider.C38bKQ2x.js";
6
+ import "../../chunks/CDPReactProvider.BkmtXUv1.js";
7
7
  import '../../assets/SignInDescription.css';const u = "SignInDescription-module__description___jZLc6", _ = {
8
8
  description: u
9
9
  }, M = ({
@@ -1,8 +1,8 @@
1
1
  import { jsx as a } from "react/jsx-runtime";
2
2
  import { useRef as d, useState as I, useLayoutEffect as p } from "react";
3
- import "../../chunks/CDPReactProvider.C38bKQ2x.js";
3
+ import "../../chunks/CDPReactProvider.BkmtXUv1.js";
4
4
  import { SwitchFadeTransition as T } from "../ui/SwitchFadeTransition/index.js";
5
- import { a as y } from "../../chunks/index.BN39qScu.js";
5
+ import { a as y } from "../../chunks/index.DgrgIsTX.js";
6
6
  import { useSignInContext as v } from "./SignInProvider.js";
7
7
  import "@coinbase/cdp-hooks";
8
8
  import '../../assets/SignInForm.css';const E = {
@@ -1,5 +1,5 @@
1
1
  import { jsx as i } from "react/jsx-runtime";
2
- import { u as a } from "../../chunks/CDPReactProvider.C38bKQ2x.js";
2
+ import { u as a } from "../../chunks/CDPReactProvider.BkmtXUv1.js";
3
3
  import '../../assets/SignInImage.css';const e = "SignInImage-module__logo___rlzt-", m = {
4
4
  logo: e
5
5
  }, p = (t) => /^https?:\/\//.test(t), f = ({ className: t = "", alt: s, src: g }) => {
@@ -1,6 +1,6 @@
1
1
  import { jsx as h } from "react/jsx-runtime";
2
2
  import { createContext as m, useContext as l, useMemo as i } from "react";
3
- import { u as f } from "../../chunks/CDPReactProvider.C38bKQ2x.js";
3
+ import { u as f } from "../../chunks/CDPReactProvider.BkmtXUv1.js";
4
4
  import "@coinbase/cdp-hooks";
5
5
  import { useSignInReducer as p } from "./useSignInReducer.js";
6
6
  const a = {
@@ -1,9 +1,9 @@
1
1
  import { jsx as n } from "react/jsx-runtime";
2
2
  import "react";
3
- import { a as c } from "../../chunks/index.BN39qScu.js";
3
+ import { a as c } from "../../chunks/index.DgrgIsTX.js";
4
4
  import { useSignInContext as d } from "./SignInProvider.js";
5
5
  import "@coinbase/cdp-hooks";
6
- import "../../chunks/CDPReactProvider.C38bKQ2x.js";
6
+ import "../../chunks/CDPReactProvider.BkmtXUv1.js";
7
7
  import '../../assets/SignInTitle.css';const l = "SignInTitle-module__heading___QJ071", g = {
8
8
  heading: l
9
9
  }, S = ({
@@ -8,7 +8,7 @@ import { useEmailForm as A } from "../hooks/useEmailForm.js";
8
8
  import { useOTPForm as B } from "../hooks/useOTPForm.js";
9
9
  import { SignInCredentials as G } from "../SignInCredentials.js";
10
10
  import { useSignInContext as E } from "../SignInProvider.js";
11
- import "../../../chunks/CDPReactProvider.C38bKQ2x.js";
11
+ import "../../../chunks/CDPReactProvider.BkmtXUv1.js";
12
12
  const J = ["email", "otp"], N = ({
13
13
  step: n,
14
14
  autoFocus: s,
@@ -1,7 +1,7 @@
1
1
  import { jsxs as h, Fragment as a, jsx as e } from "react/jsx-runtime";
2
2
  import "@coinbase/cdp-hooks";
3
3
  import { useRef as A, useCallback as S, useEffect as v } from "react";
4
- import { u as m } from "../../../chunks/CDPReactProvider.C38bKQ2x.js";
4
+ import { u as m } from "../../../chunks/CDPReactProvider.BkmtXUv1.js";
5
5
  import { useSignInWithOAuth as O } from "../hooks/useSignInWithOAuth.js";
6
6
  import { Button as W } from "../../ui/Button/index.js";
7
7
  import { ServerError as I } from "../../ui/ServerError/index.js";
@@ -10,7 +10,7 @@ import { useOTPForm as X } from "../hooks/useOTPForm.js";
10
10
  import { usePhoneNumberForm as Y } from "../hooks/usePhoneNumberForm.js";
11
11
  import { SignInCredentials as Z } from "../SignInCredentials.js";
12
12
  import { useSignInContext as g } from "../SignInProvider.js";
13
- import "../../../chunks/CDPReactProvider.C38bKQ2x.js";
13
+ import "../../../chunks/CDPReactProvider.BkmtXUv1.js";
14
14
  const _ = ["phoneNumber", "otp"], $ = ({
15
15
  step: o,
16
16
  autoFocus: i,
@@ -1,7 +1,7 @@
1
1
  import { jsx as n, jsxs as r, Fragment as c } from "react/jsx-runtime";
2
- import { u } from "../../chunks/useSendComponentCallOnce.BHZMuo6E.js";
2
+ import { u } from "../../chunks/useSendComponentCallOnce.DGjALrnZ.js";
3
3
  import "react";
4
- import { u as d } from "../../chunks/CDPReactProvider.C38bKQ2x.js";
4
+ import { u as d } from "../../chunks/CDPReactProvider.BkmtXUv1.js";
5
5
  import { SignInAuthMethodButtons as f } from "./SignInAuthMethodButtons.js";
6
6
  import { SignInBackButton as I } from "./SignInBackButton.js";
7
7
  import { SignInDescription as S } from "./SignInDescription.js";
@@ -1,3 +1,3 @@
1
1
  import "@coinbase/cdp-hooks";
2
2
  import "react";
3
- import "../../chunks/CDPReactProvider.C38bKQ2x.js";
3
+ import "../../chunks/CDPReactProvider.BkmtXUv1.js";
@@ -1,6 +1,6 @@
1
1
  import { useReducer as l } from "react";
2
2
  import "@coinbase/cdp-hooks";
3
- import "../../chunks/CDPReactProvider.C38bKQ2x.js";
3
+ import "../../chunks/CDPReactProvider.BkmtXUv1.js";
4
4
  function u(e, r) {
5
5
  switch (r.type) {
6
6
  case "SET_AUTH_METHODS":
@@ -1,8 +1,8 @@
1
1
  import { jsx as n, jsxs as t, Fragment as c } from "react/jsx-runtime";
2
- import { u as C } from "../../chunks/useSendComponentCallOnce.BHZMuo6E.js";
2
+ import { u as C } from "../../chunks/useSendComponentCallOnce.DGjALrnZ.js";
3
3
  import { createContext as b, useMemo as x, useContext as v } from "react";
4
4
  import { c as N } from "../../chunks/lite.1fxw3LjI.js";
5
- import { u as w } from "../../chunks/CDPReactProvider.C38bKQ2x.js";
5
+ import { u as w } from "../../chunks/CDPReactProvider.BkmtXUv1.js";
6
6
  import { SignIn as T } from "../SignIn/index.js";
7
7
  import "@coinbase/cdp-hooks";
8
8
  import { Button as h } from "../ui/Button/index.js";
@@ -1,6 +1,6 @@
1
1
  import { jsx as m } from "react/jsx-runtime";
2
2
  import { useSignOut as r } from "@coinbase/cdp-hooks";
3
- import { u as e } from "../../chunks/useSendComponentCallOnce.BHZMuo6E.js";
3
+ import { u as e } from "../../chunks/useSendComponentCallOnce.DGjALrnZ.js";
4
4
  import "react";
5
5
  import { c } from "../../chunks/lite.1fxw3LjI.js";
6
6
  import { Button as a } from "../ui/Button/index.js";
@@ -1,8 +1,8 @@
1
1
  import "react/jsx-runtime";
2
2
  import "@coinbase/cdp-hooks";
3
- import "../../chunks/useSendComponentCallOnce.BHZMuo6E.js";
3
+ import "../../chunks/useSendComponentCallOnce.DGjALrnZ.js";
4
4
  import "react";
5
- import { V as p } from "../../chunks/CDPReactProvider.C38bKQ2x.js";
5
+ import { V as p } from "../../chunks/CDPReactProvider.BkmtXUv1.js";
6
6
  import "@coinbase/cdp-core";
7
7
  import { VerifyMfaDescription as x } from "./VerifyMfaDescription.js";
8
8
  import { VerifyMfaFlow as y } from "./VerifyMfaFlow.js";
@@ -1,13 +1,13 @@
1
1
  import { jsx as t, jsxs as E } from "react/jsx-runtime";
2
2
  import { isMfaRequired as q } from "@coinbase/cdp-core";
3
3
  import { useCancelMfaVerification as L, useIsInitialized as A, useRegisterMfaListener as O } from "@coinbase/cdp-hooks";
4
- import { u as P } from "../../chunks/useSendComponentCallOnce.BHZMuo6E.js";
4
+ import { u as P } from "../../chunks/useSendComponentCallOnce.DGjALrnZ.js";
5
5
  import { createContext as W, useMemo as h, useRef as k, useState as R, useCallback as C, useContext as X, useEffect as Y } from "react";
6
6
  import { c as j } from "../../chunks/lite.1fxw3LjI.js";
7
7
  import { Button as H } from "../ui/Button/index.js";
8
8
  import { SwitchFadeTransition as J } from "../ui/SwitchFadeTransition/index.js";
9
9
  import { SwitchSlideTransition as Q } from "../ui/SwitchSlideTransition/index.js";
10
- import { V as U } from "../../chunks/CDPReactProvider.C38bKQ2x.js";
10
+ import { V as U } from "../../chunks/CDPReactProvider.BkmtXUv1.js";
11
11
  import { IconArrowLeft as Z } from "../../icons/IconArrowLeft.js";
12
12
  import "../../theme/theme.js";
13
13
  import { useVerifyMfaContext as $ } from "../VerifyMfa/VerifyMfaProvider.js";
@@ -1,8 +1,8 @@
1
1
  import "react/jsx-runtime";
2
- import "../../chunks/useSendComponentCallOnce.BHZMuo6E.js";
2
+ import "../../chunks/useSendComponentCallOnce.DGjALrnZ.js";
3
3
  import "react";
4
4
  import "../../chunks/lite.1fxw3LjI.js";
5
- import { d as x, e as C, f as T } from "../../chunks/CDPReactProvider.C38bKQ2x.js";
5
+ import { d as x, e as C, f as T } from "../../chunks/CDPReactProvider.BkmtXUv1.js";
6
6
  import "../ui/Button/index.js";
7
7
  import "../ui/Modal/index.js";
8
8
  import "../ui/VisuallyHidden/index.js";
@@ -1,7 +1,7 @@
1
1
  import "react/jsx-runtime";
2
2
  import "@coinbase/cdp-core";
3
- import "../chunks/useSendComponentCallOnce.BHZMuo6E.js";
4
- import { g as t, h as m, b as p } from "../chunks/CDPReactProvider.C38bKQ2x.js";
3
+ import "../chunks/useSendComponentCallOnce.DGjALrnZ.js";
4
+ import { g as t, h as m, b as p } from "../chunks/CDPReactProvider.BkmtXUv1.js";
5
5
  import "react";
6
6
  export {
7
7
  t as VerifyMfaModalProvider,
package/dist/index.js CHANGED
@@ -1,8 +1,8 @@
1
- import "./chunks/useSendComponentCallOnce.BHZMuo6E.js";
1
+ import "./chunks/useSendComponentCallOnce.DGjALrnZ.js";
2
2
  import "react";
3
3
  import "./version.js";
4
4
  import { AuthButton as a } from "./components/AuthButton/index.js";
5
- import { c as l, A as p, C as x, O as i, V as s, d as M, e as d, f as u, u as c, a as I, b as g } from "./chunks/CDPReactProvider.C38bKQ2x.js";
5
+ import { c as l, A as p, C as x, O as i, V as s, d as M, e as d, f as u, u as c, a as I, b as g } from "./chunks/CDPReactProvider.BkmtXUv1.js";
6
6
  import { CopyAddress as C } from "./components/CopyAddress/index.js";
7
7
  import { CopyEvmKeyButton as T } from "./components/CopyEvmKeyButton/index.js";
8
8
  import { CopySolanaKeyButton as S } from "./components/CopySolanaKeyButton/index.js";
@@ -66,7 +66,7 @@ import { useEnrollMfaFlow as Ee } from "./components/EnrollMfa/EnrollMfaFlowProv
66
66
  import { FundForm as ye } from "./components/Fund/FundForm.js";
67
67
  import { FundTitle as Fe } from "./components/Fund/FundTitle.js";
68
68
  import { useFundContext as he } from "./components/Fund/FundProvider.js";
69
- import { a as ke, u as Ve } from "./chunks/LinkAuthFlow.CLubKoY0.js";
69
+ import { a as ke, u as Ve } from "./chunks/LinkAuthFlow.B4FAtf4V.js";
70
70
  import { LinkAuthFlowBackButton as Le } from "./components/LinkAuth/LinkAuthFlowBackButton.js";
71
71
  import { LinkAuthItem as We } from "./components/LinkAuth/LinkAuthItem.js";
72
72
  import { LinkAuthItems as be } from "./components/LinkAuth/LinkAuthItems.js";
package/dist/version.d.ts CHANGED
@@ -1 +1 @@
1
- export declare const VERSION = "0.0.87";
1
+ export declare const VERSION = "0.0.88";
package/dist/version.js CHANGED
@@ -1,4 +1,4 @@
1
- const o = "0.0.87";
1
+ const o = "0.0.88";
2
2
  export {
3
3
  o as VERSION
4
4
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@coinbase/cdp-react",
3
- "version": "0.0.87",
3
+ "version": "0.0.88",
4
4
  "type": "module",
5
5
  "dependencies": {
6
6
  "@internationalized/number": "3.6.4",
@@ -16,8 +16,8 @@
16
16
  },
17
17
  "peerDependencies": {
18
18
  "react": ">=18.2.0 <19.2.0",
19
- "@coinbase/cdp-core": "^0.0.87",
20
- "@coinbase/cdp-hooks": "^0.0.87"
19
+ "@coinbase/cdp-hooks": "^0.0.88",
20
+ "@coinbase/cdp-core": "^0.0.88"
21
21
  },
22
22
  "devDependencies": {
23
23
  "@size-limit/preset-big-lib": "^11.2.0",
@@ -49,8 +49,8 @@
49
49
  "vite": "^7.0.4",
50
50
  "vite-plugin-dts": "^4.5.4",
51
51
  "vite-plugin-lib-inject-css": "^2.2.2",
52
- "@coinbase/cdp-core": "^0.0.87",
53
- "@coinbase/cdp-hooks": "^0.0.87"
52
+ "@coinbase/cdp-hooks": "^0.0.88",
53
+ "@coinbase/cdp-core": "^0.0.88"
54
54
  },
55
55
  "size-limit": [
56
56
  {
@@ -1,273 +0,0 @@
1
- import { useRef as M, useEffect as q } from "react";
2
- function U(s) {
3
- return s && s.__esModule && Object.prototype.hasOwnProperty.call(s, "default") ? s.default : s;
4
- }
5
- var E = { exports: {} }, T = { exports: {} }, S;
6
- function H() {
7
- return S || (S = 1, function() {
8
- var s = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", l = {
9
- // Bit-wise rotation left
10
- rotl: function(c, u) {
11
- return c << u | c >>> 32 - u;
12
- },
13
- // Bit-wise rotation right
14
- rotr: function(c, u) {
15
- return c << 32 - u | c >>> u;
16
- },
17
- // Swap big-endian to little-endian and vice versa
18
- endian: function(c) {
19
- if (c.constructor == Number)
20
- return l.rotl(c, 8) & 16711935 | l.rotl(c, 24) & 4278255360;
21
- for (var u = 0; u < c.length; u++)
22
- c[u] = l.endian(c[u]);
23
- return c;
24
- },
25
- // Generate an array of any length of random bytes
26
- randomBytes: function(c) {
27
- for (var u = []; c > 0; c--)
28
- u.push(Math.floor(Math.random() * 256));
29
- return u;
30
- },
31
- // Convert a byte array to big-endian 32-bit words
32
- bytesToWords: function(c) {
33
- for (var u = [], a = 0, f = 0; a < c.length; a++, f += 8)
34
- u[f >>> 5] |= c[a] << 24 - f % 32;
35
- return u;
36
- },
37
- // Convert big-endian 32-bit words to a byte array
38
- wordsToBytes: function(c) {
39
- for (var u = [], a = 0; a < c.length * 32; a += 8)
40
- u.push(c[a >>> 5] >>> 24 - a % 32 & 255);
41
- return u;
42
- },
43
- // Convert a byte array to a hex string
44
- bytesToHex: function(c) {
45
- for (var u = [], a = 0; a < c.length; a++)
46
- u.push((c[a] >>> 4).toString(16)), u.push((c[a] & 15).toString(16));
47
- return u.join("");
48
- },
49
- // Convert a hex string to a byte array
50
- hexToBytes: function(c) {
51
- for (var u = [], a = 0; a < c.length; a += 2)
52
- u.push(parseInt(c.substr(a, 2), 16));
53
- return u;
54
- },
55
- // Convert a byte array to a base-64 string
56
- bytesToBase64: function(c) {
57
- for (var u = [], a = 0; a < c.length; a += 3)
58
- for (var f = c[a] << 16 | c[a + 1] << 8 | c[a + 2], d = 0; d < 4; d++)
59
- a * 8 + d * 6 <= c.length * 8 ? u.push(s.charAt(f >>> 6 * (3 - d) & 63)) : u.push("=");
60
- return u.join("");
61
- },
62
- // Convert a base-64 string to a byte array
63
- base64ToBytes: function(c) {
64
- c = c.replace(/[^A-Z0-9+\/]/ig, "");
65
- for (var u = [], a = 0, f = 0; a < c.length; f = ++a % 4)
66
- f != 0 && u.push((s.indexOf(c.charAt(a - 1)) & Math.pow(2, -2 * f + 8) - 1) << f * 2 | s.indexOf(c.charAt(a)) >>> 6 - f * 2);
67
- return u;
68
- }
69
- };
70
- T.exports = l;
71
- }()), T.exports;
72
- }
73
- var F, m;
74
- function x() {
75
- if (m) return F;
76
- m = 1;
77
- var s = {
78
- // UTF-8 encoding
79
- utf8: {
80
- // Convert a string to a byte array
81
- stringToBytes: function(l) {
82
- return s.bin.stringToBytes(unescape(encodeURIComponent(l)));
83
- },
84
- // Convert a byte array to a string
85
- bytesToString: function(l) {
86
- return decodeURIComponent(escape(s.bin.bytesToString(l)));
87
- }
88
- },
89
- // Binary encoding
90
- bin: {
91
- // Convert a string to a byte array
92
- stringToBytes: function(l) {
93
- for (var c = [], u = 0; u < l.length; u++)
94
- c.push(l.charCodeAt(u) & 255);
95
- return c;
96
- },
97
- // Convert a byte array to a string
98
- bytesToString: function(l) {
99
- for (var c = [], u = 0; u < l.length; u++)
100
- c.push(String.fromCharCode(l[u]));
101
- return c.join("");
102
- }
103
- }
104
- };
105
- return F = s, F;
106
- }
107
- /*!
108
- * Determine if an object is a Buffer
109
- *
110
- * @author Feross Aboukhadijeh <https://feross.org>
111
- * @license MIT
112
- */
113
- var B, O;
114
- function N() {
115
- if (O) return B;
116
- O = 1, B = function(c) {
117
- return c != null && (s(c) || l(c) || !!c._isBuffer);
118
- };
119
- function s(c) {
120
- return !!c.constructor && typeof c.constructor.isBuffer == "function" && c.constructor.isBuffer(c);
121
- }
122
- function l(c) {
123
- return typeof c.readFloatLE == "function" && typeof c.slice == "function" && s(c.slice(0, 0));
124
- }
125
- return B;
126
- }
127
- var A;
128
- function V() {
129
- return A || (A = 1, function() {
130
- var s = H(), l = x().utf8, c = N(), u = x().bin, a = function(f, d) {
131
- f.constructor == String ? d && d.encoding === "binary" ? f = u.stringToBytes(f) : f = l.stringToBytes(f) : c(f) ? f = Array.prototype.slice.call(f, 0) : !Array.isArray(f) && f.constructor !== Uint8Array && (f = f.toString());
132
- for (var o = s.bytesToWords(f), y = f.length * 8, r = 1732584193, t = -271733879, e = -1732584194, n = 271733878, i = 0; i < o.length; i++)
133
- o[i] = (o[i] << 8 | o[i] >>> 24) & 16711935 | (o[i] << 24 | o[i] >>> 8) & 4278255360;
134
- o[y >>> 5] |= 128 << y % 32, o[(y + 64 >>> 9 << 4) + 14] = y;
135
- for (var p = a._ff, h = a._gg, v = a._hh, _ = a._ii, i = 0; i < o.length; i += 16) {
136
- var P = r, D = t, I = e, L = n;
137
- r = p(r, t, e, n, o[i + 0], 7, -680876936), n = p(n, r, t, e, o[i + 1], 12, -389564586), e = p(e, n, r, t, o[i + 2], 17, 606105819), t = p(t, e, n, r, o[i + 3], 22, -1044525330), r = p(r, t, e, n, o[i + 4], 7, -176418897), n = p(n, r, t, e, o[i + 5], 12, 1200080426), e = p(e, n, r, t, o[i + 6], 17, -1473231341), t = p(t, e, n, r, o[i + 7], 22, -45705983), r = p(r, t, e, n, o[i + 8], 7, 1770035416), n = p(n, r, t, e, o[i + 9], 12, -1958414417), e = p(e, n, r, t, o[i + 10], 17, -42063), t = p(t, e, n, r, o[i + 11], 22, -1990404162), r = p(r, t, e, n, o[i + 12], 7, 1804603682), n = p(n, r, t, e, o[i + 13], 12, -40341101), e = p(e, n, r, t, o[i + 14], 17, -1502002290), t = p(t, e, n, r, o[i + 15], 22, 1236535329), r = h(r, t, e, n, o[i + 1], 5, -165796510), n = h(n, r, t, e, o[i + 6], 9, -1069501632), e = h(e, n, r, t, o[i + 11], 14, 643717713), t = h(t, e, n, r, o[i + 0], 20, -373897302), r = h(r, t, e, n, o[i + 5], 5, -701558691), n = h(n, r, t, e, o[i + 10], 9, 38016083), e = h(e, n, r, t, o[i + 15], 14, -660478335), t = h(t, e, n, r, o[i + 4], 20, -405537848), r = h(r, t, e, n, o[i + 9], 5, 568446438), n = h(n, r, t, e, o[i + 14], 9, -1019803690), e = h(e, n, r, t, o[i + 3], 14, -187363961), t = h(t, e, n, r, o[i + 8], 20, 1163531501), r = h(r, t, e, n, o[i + 13], 5, -1444681467), n = h(n, r, t, e, o[i + 2], 9, -51403784), e = h(e, n, r, t, o[i + 7], 14, 1735328473), t = h(t, e, n, r, o[i + 12], 20, -1926607734), r = v(r, t, e, n, o[i + 5], 4, -378558), n = v(n, r, t, e, o[i + 8], 11, -2022574463), e = v(e, n, r, t, o[i + 11], 16, 1839030562), t = v(t, e, n, r, o[i + 14], 23, -35309556), r = v(r, t, e, n, o[i + 1], 4, -1530992060), n = v(n, r, t, e, o[i + 4], 11, 1272893353), e = v(e, n, r, t, o[i + 7], 16, -155497632), t = v(t, e, n, r, o[i + 10], 23, -1094730640), r = v(r, t, e, n, o[i + 13], 4, 681279174), n = v(n, r, t, e, o[i + 0], 11, -358537222), e = v(e, n, r, t, o[i + 3], 16, -722521979), t = v(t, e, n, r, o[i + 6], 23, 76029189), r = v(r, t, e, n, o[i + 9], 4, -640364487), n = v(n, r, t, e, o[i + 12], 11, -421815835), e = v(e, n, r, t, o[i + 15], 16, 530742520), t = v(t, e, n, r, o[i + 2], 23, -995338651), r = _(r, t, e, n, o[i + 0], 6, -198630844), n = _(n, r, t, e, o[i + 7], 10, 1126891415), e = _(e, n, r, t, o[i + 14], 15, -1416354905), t = _(t, e, n, r, o[i + 5], 21, -57434055), r = _(r, t, e, n, o[i + 12], 6, 1700485571), n = _(n, r, t, e, o[i + 3], 10, -1894986606), e = _(e, n, r, t, o[i + 10], 15, -1051523), t = _(t, e, n, r, o[i + 1], 21, -2054922799), r = _(r, t, e, n, o[i + 8], 6, 1873313359), n = _(n, r, t, e, o[i + 15], 10, -30611744), e = _(e, n, r, t, o[i + 6], 15, -1560198380), t = _(t, e, n, r, o[i + 13], 21, 1309151649), r = _(r, t, e, n, o[i + 4], 6, -145523070), n = _(n, r, t, e, o[i + 11], 10, -1120210379), e = _(e, n, r, t, o[i + 2], 15, 718787259), t = _(t, e, n, r, o[i + 9], 21, -343485551), r = r + P >>> 0, t = t + D >>> 0, e = e + I >>> 0, n = n + L >>> 0;
138
- }
139
- return s.endian([r, t, e, n]);
140
- };
141
- a._ff = function(f, d, o, y, r, t, e) {
142
- var n = f + (d & o | ~d & y) + (r >>> 0) + e;
143
- return (n << t | n >>> 32 - t) + d;
144
- }, a._gg = function(f, d, o, y, r, t, e) {
145
- var n = f + (d & y | o & ~y) + (r >>> 0) + e;
146
- return (n << t | n >>> 32 - t) + d;
147
- }, a._hh = function(f, d, o, y, r, t, e) {
148
- var n = f + (d ^ o ^ y) + (r >>> 0) + e;
149
- return (n << t | n >>> 32 - t) + d;
150
- }, a._ii = function(f, d, o, y, r, t, e) {
151
- var n = f + (o ^ (d | ~y)) + (r >>> 0) + e;
152
- return (n << t | n >>> 32 - t) + d;
153
- }, a._blocksize = 16, a._digestsize = 16, E.exports = function(f, d) {
154
- if (f == null)
155
- throw new Error("Illegal argument " + f);
156
- var o = s.wordsToBytes(a(f, d));
157
- return d && d.asBytes ? o : d && d.asString ? u.bytesToString(o) : s.bytesToHex(o);
158
- };
159
- }()), E.exports;
160
- }
161
- var G = V();
162
- const J = /* @__PURE__ */ U(G);
163
- function K() {
164
- try {
165
- return typeof navigator < "u" && navigator.product === "ReactNative";
166
- } catch {
167
- return !1;
168
- }
169
- }
170
- function $() {
171
- try {
172
- if (typeof window > "u")
173
- return typeof process < "u" && process.env && "__NEXT_PROCESSED_ENV" in process.env;
174
- const s = window;
175
- return !!(s.__NEXT_DATA__ || s.next || document.getElementById("__next"));
176
- } catch {
177
- return !1;
178
- }
179
- }
180
- function z() {
181
- try {
182
- if (typeof window > "u")
183
- return !1;
184
- const s = window;
185
- return !!(s.__VUE__ || s.__VUE_DEVTOOLS_GLOBAL_HOOK__ || document.querySelector("[data-v-]"));
186
- } catch {
187
- return !1;
188
- }
189
- }
190
- function W() {
191
- try {
192
- if (typeof window > "u")
193
- return !1;
194
- const s = window;
195
- return s.__REACT_DEVTOOLS_GLOBAL_HOOK__ || s.React ? !0 : !!document.querySelector(
196
- "[data-reactroot], [data-reactid], ._reactRoot, ._reactRootContainer"
197
- );
198
- } catch {
199
- return !1;
200
- }
201
- }
202
- function X() {
203
- return W() ? "react" : K() ? "react-native" : $() ? "nextjs" : z() ? "vue" : "unknown";
204
- }
205
- let R = null;
206
- function Z() {
207
- return R === null && (R = X()), R;
208
- }
209
- const b = "1f8d3e558f493e38a037dbfadb8ba344", Q = "d473b1dcc969105adab157226cd9cf63", C = Symbol.for("@coinbase/cdp-analytics");
210
- function Y() {
211
- const s = globalThis;
212
- return s[C] || (s[C] = {
213
- identifier: "",
214
- enabled: !0,
215
- isProduction: !1,
216
- isUsingMocks: !1,
217
- sendEvent: w,
218
- sendActionCallEvent: (l) => w({ ...l, type: "action_call" }),
219
- sendHookCallEvent: (l) => w({ ...l, type: "hook_call" }),
220
- sendComponentCallEvent: (l) => w({ ...l, type: "component_call" }),
221
- versionRegistry: {},
222
- registerPackageVersion: (l, c) => {
223
- g.versionRegistry[l] = c;
224
- }
225
- }), s[C];
226
- }
227
- const g = Y();
228
- async function w(s) {
229
- if (!g.enabled || !g.identifier)
230
- return;
231
- const l = Date.now(), u = [{
232
- user_id: g.identifier,
233
- event_type: s.type,
234
- platform: k() ? "web" : "native",
235
- timestamp: l,
236
- event_properties: {
237
- project_name: "cdp-embedded-wallet",
238
- framework: Z(),
239
- isLocalHost: j(),
240
- isUsingMocks: g.isUsingMocks,
241
- package_versions: g.versionRegistry,
242
- ...s
243
- }
244
- }], a = JSON.stringify(u), f = l.toString(), d = J(a + f), o = {
245
- client: g.isProduction ? Q : b,
246
- e: a,
247
- checksum: d
248
- };
249
- await fetch("https://cca-lite.coinbase.com/amp", {
250
- method: "POST",
251
- mode: "no-cors",
252
- headers: {
253
- "Content-Type": "application/json"
254
- },
255
- body: JSON.stringify(o)
256
- });
257
- }
258
- function k() {
259
- return typeof window < "u" && typeof document < "u";
260
- }
261
- function j() {
262
- return k() ? window.location.hostname === "localhost" || window.location.hostname === "127.0.0.1" : !1;
263
- }
264
- function nt(s) {
265
- const l = M(!1);
266
- q(() => {
267
- l.current || (g.sendComponentCallEvent({ name: s }), l.current = !0);
268
- }, [s]);
269
- }
270
- export {
271
- g as A,
272
- nt as u
273
- };