@payai/x402-solana-react 2.0.1 → 2.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +3 -3
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +246 -246
- package/dist/index.mjs.map +1 -1
- package/package.json +12 -12
package/dist/index.mjs
CHANGED
|
@@ -1,82 +1,82 @@
|
|
|
1
1
|
import { jsx as a, jsxs as m, Fragment as ye } from "react/jsx-runtime";
|
|
2
2
|
import * as T from "react";
|
|
3
|
-
import { useState as q, useCallback as Me, useMemo as
|
|
4
|
-
import { ConnectionProvider as
|
|
5
|
-
import { WalletModalProvider as
|
|
3
|
+
import { useState as q, useCallback as Me, useMemo as Fe, useRef as gt, useEffect as re } from "react";
|
|
4
|
+
import { ConnectionProvider as ht, WalletProvider as bt, useWallet as pt } from "@solana/wallet-adapter-react";
|
|
5
|
+
import { WalletModalProvider as ft, WalletMultiButton as xt } from "@solana/wallet-adapter-react-ui";
|
|
6
6
|
import { WalletAdapterNetwork as Se } from "@solana/wallet-adapter-base";
|
|
7
|
-
import { PhantomWalletAdapter as
|
|
8
|
-
import { Connection as
|
|
9
|
-
import { getAssociatedTokenAddress as
|
|
10
|
-
function
|
|
7
|
+
import { PhantomWalletAdapter as kt, SolflareWalletAdapter as wt } from "@solana/wallet-adapter-wallets";
|
|
8
|
+
import { Connection as Ge, PublicKey as ee, ComputeBudgetProgram as Re, TransactionMessage as yt, VersionedTransaction as vt, clusterApiUrl as Ft } from "@solana/web3.js";
|
|
9
|
+
import { getAssociatedTokenAddress as Ce, getAccount as Ct, TOKEN_2022_PROGRAM_ID as Be, TOKEN_PROGRAM_ID as Nt, getMint as Et, createTransferCheckedInstruction as At } from "@solana/spl-token";
|
|
10
|
+
function Tt(t) {
|
|
11
11
|
return t === "solana" ? "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v" : "4zMMC9srt5Ri5X14GAgXhaHii3GnPAEERYPJgZJDncDU";
|
|
12
12
|
}
|
|
13
|
-
function
|
|
13
|
+
function Dt(t) {
|
|
14
14
|
return t === "solana" ? `https://mainnet.helius-rpc.com/?api-key=${process.env.VITE_HELIUS_API_KEY}` : "https://api.devnet.solana.com";
|
|
15
15
|
}
|
|
16
|
-
async function
|
|
16
|
+
async function Pt(t, o, r) {
|
|
17
17
|
try {
|
|
18
|
-
const n = r ||
|
|
18
|
+
const n = r || Dt(o), s = new Ge(n, "confirmed"), l = new ee(t), i = new ee(Tt(o)), u = await Ce(
|
|
19
19
|
i,
|
|
20
20
|
l
|
|
21
|
-
), g = await
|
|
21
|
+
), g = await Ct(s, u);
|
|
22
22
|
return (Number(g.amount) / 1e6).toFixed(2);
|
|
23
23
|
} catch (n) {
|
|
24
24
|
return console.error("Error fetching USDC balance:", n), "0.00";
|
|
25
25
|
}
|
|
26
26
|
}
|
|
27
|
-
function
|
|
27
|
+
function Ke(t) {
|
|
28
28
|
var o, r, n = "";
|
|
29
29
|
if (typeof t == "string" || typeof t == "number") n += t;
|
|
30
30
|
else if (typeof t == "object") if (Array.isArray(t)) {
|
|
31
31
|
var s = t.length;
|
|
32
|
-
for (o = 0; o < s; o++) t[o] && (r =
|
|
32
|
+
for (o = 0; o < s; o++) t[o] && (r = Ke(t[o])) && (n && (n += " "), n += r);
|
|
33
33
|
} else for (r in t) t[r] && (n && (n += " "), n += r);
|
|
34
34
|
return n;
|
|
35
35
|
}
|
|
36
|
-
function
|
|
37
|
-
for (var t, o, r = 0, n = "", s = arguments.length; r < s; r++) (t = arguments[r]) && (o =
|
|
36
|
+
function Ye() {
|
|
37
|
+
for (var t, o, r = 0, n = "", s = arguments.length; r < s; r++) (t = arguments[r]) && (o = Ke(t)) && (n && (n += " "), n += o);
|
|
38
38
|
return n;
|
|
39
39
|
}
|
|
40
|
-
const
|
|
40
|
+
const Mt = (t, o) => {
|
|
41
41
|
const r = new Array(t.length + o.length);
|
|
42
42
|
for (let n = 0; n < t.length; n++)
|
|
43
43
|
r[n] = t[n];
|
|
44
44
|
for (let n = 0; n < o.length; n++)
|
|
45
45
|
r[t.length + n] = o[n];
|
|
46
46
|
return r;
|
|
47
|
-
},
|
|
47
|
+
}, St = (t, o) => ({
|
|
48
48
|
classGroupId: t,
|
|
49
49
|
validator: o
|
|
50
|
-
}),
|
|
50
|
+
}), qe = (t = /* @__PURE__ */ new Map(), o = null, r) => ({
|
|
51
51
|
nextPart: t,
|
|
52
52
|
validators: o,
|
|
53
53
|
classGroupId: r
|
|
54
|
-
}), he = "-", Ie = [],
|
|
55
|
-
const o =
|
|
54
|
+
}), he = "-", Ie = [], Rt = "arbitrary..", Bt = (t) => {
|
|
55
|
+
const o = zt(t), {
|
|
56
56
|
conflictingClassGroups: r,
|
|
57
57
|
conflictingClassGroupModifiers: n
|
|
58
58
|
} = t;
|
|
59
59
|
return {
|
|
60
60
|
getClassGroupId: (i) => {
|
|
61
61
|
if (i.startsWith("[") && i.endsWith("]"))
|
|
62
|
-
return
|
|
62
|
+
return It(i);
|
|
63
63
|
const u = i.split(he), g = u[0] === "" && u.length > 1 ? 1 : 0;
|
|
64
|
-
return
|
|
64
|
+
return He(u, g, o);
|
|
65
65
|
},
|
|
66
66
|
getConflictingClassGroupIds: (i, u) => {
|
|
67
67
|
if (u) {
|
|
68
68
|
const g = n[i], h = r[i];
|
|
69
|
-
return g ? h ?
|
|
69
|
+
return g ? h ? Mt(h, g) : g : h || Ie;
|
|
70
70
|
}
|
|
71
71
|
return r[i] || Ie;
|
|
72
72
|
}
|
|
73
73
|
};
|
|
74
|
-
},
|
|
74
|
+
}, He = (t, o, r) => {
|
|
75
75
|
if (t.length - o === 0)
|
|
76
76
|
return r.classGroupId;
|
|
77
77
|
const s = t[o], l = r.nextPart.get(s);
|
|
78
78
|
if (l) {
|
|
79
|
-
const h =
|
|
79
|
+
const h = He(t, o + 1, l);
|
|
80
80
|
if (h) return h;
|
|
81
81
|
}
|
|
82
82
|
const i = r.validators;
|
|
@@ -88,63 +88,63 @@ const Tt = (t, o) => {
|
|
|
88
88
|
if (x.validator(u))
|
|
89
89
|
return x.classGroupId;
|
|
90
90
|
}
|
|
91
|
-
},
|
|
91
|
+
}, It = (t) => t.slice(1, -1).indexOf(":") === -1 ? void 0 : (() => {
|
|
92
92
|
const o = t.slice(1, -1), r = o.indexOf(":"), n = o.slice(0, r);
|
|
93
|
-
return n ?
|
|
94
|
-
})(),
|
|
93
|
+
return n ? Rt + n : void 0;
|
|
94
|
+
})(), zt = (t) => {
|
|
95
95
|
const {
|
|
96
96
|
theme: o,
|
|
97
97
|
classGroups: r
|
|
98
98
|
} = t;
|
|
99
|
-
return
|
|
100
|
-
},
|
|
101
|
-
const r =
|
|
99
|
+
return Lt(r, o);
|
|
100
|
+
}, Lt = (t, o) => {
|
|
101
|
+
const r = qe();
|
|
102
102
|
for (const n in t) {
|
|
103
103
|
const s = t[n];
|
|
104
|
-
|
|
104
|
+
De(s, r, n, o);
|
|
105
105
|
}
|
|
106
106
|
return r;
|
|
107
|
-
},
|
|
107
|
+
}, De = (t, o, r, n) => {
|
|
108
108
|
const s = t.length;
|
|
109
109
|
for (let l = 0; l < s; l++) {
|
|
110
110
|
const i = t[l];
|
|
111
|
-
|
|
111
|
+
jt(i, o, r, n);
|
|
112
112
|
}
|
|
113
|
-
},
|
|
113
|
+
}, jt = (t, o, r, n) => {
|
|
114
114
|
if (typeof t == "string") {
|
|
115
|
-
|
|
115
|
+
Ut(t, o, r);
|
|
116
116
|
return;
|
|
117
117
|
}
|
|
118
118
|
if (typeof t == "function") {
|
|
119
|
-
|
|
119
|
+
Ot(t, o, r, n);
|
|
120
120
|
return;
|
|
121
121
|
}
|
|
122
|
-
|
|
123
|
-
},
|
|
124
|
-
const n = t === "" ? o :
|
|
122
|
+
Wt(t, o, r, n);
|
|
123
|
+
}, Ut = (t, o, r) => {
|
|
124
|
+
const n = t === "" ? o : Xe(o, t);
|
|
125
125
|
n.classGroupId = r;
|
|
126
|
-
},
|
|
127
|
-
if (
|
|
128
|
-
|
|
126
|
+
}, Ot = (t, o, r, n) => {
|
|
127
|
+
if (_t(t)) {
|
|
128
|
+
De(t(n), o, r, n);
|
|
129
129
|
return;
|
|
130
130
|
}
|
|
131
|
-
o.validators === null && (o.validators = []), o.validators.push(
|
|
132
|
-
},
|
|
131
|
+
o.validators === null && (o.validators = []), o.validators.push(St(r, t));
|
|
132
|
+
}, Wt = (t, o, r, n) => {
|
|
133
133
|
const s = Object.entries(t), l = s.length;
|
|
134
134
|
for (let i = 0; i < l; i++) {
|
|
135
135
|
const [u, g] = s[i];
|
|
136
|
-
|
|
136
|
+
De(g, Xe(o, u), r, n);
|
|
137
137
|
}
|
|
138
|
-
},
|
|
138
|
+
}, Xe = (t, o) => {
|
|
139
139
|
let r = t;
|
|
140
140
|
const n = o.split(he), s = n.length;
|
|
141
141
|
for (let l = 0; l < s; l++) {
|
|
142
142
|
const i = n[l];
|
|
143
143
|
let u = r.nextPart.get(i);
|
|
144
|
-
u || (u =
|
|
144
|
+
u || (u = qe(), r.nextPart.set(i, u)), r = u;
|
|
145
145
|
}
|
|
146
146
|
return r;
|
|
147
|
-
},
|
|
147
|
+
}, _t = (t) => "isThemeGetter" in t && t.isThemeGetter === !0, $t = (t) => {
|
|
148
148
|
if (t < 1)
|
|
149
149
|
return {
|
|
150
150
|
get: () => {
|
|
@@ -168,13 +168,13 @@ const Tt = (t, o) => {
|
|
|
168
168
|
l in r ? r[l] = i : s(l, i);
|
|
169
169
|
}
|
|
170
170
|
};
|
|
171
|
-
},
|
|
171
|
+
}, Ne = "!", ze = ":", Vt = [], Le = (t, o, r, n, s) => ({
|
|
172
172
|
modifiers: t,
|
|
173
173
|
hasImportantModifier: o,
|
|
174
174
|
baseClassName: r,
|
|
175
175
|
maybePostfixModifierPosition: n,
|
|
176
176
|
isExternal: s
|
|
177
|
-
}),
|
|
177
|
+
}), Gt = (t) => {
|
|
178
178
|
const {
|
|
179
179
|
prefix: o,
|
|
180
180
|
experimentalParseClassName: r
|
|
@@ -199,19 +199,19 @@ const Tt = (t, o) => {
|
|
|
199
199
|
}
|
|
200
200
|
const w = l.length === 0 ? s : s.slice(g);
|
|
201
201
|
let d = w, D = !1;
|
|
202
|
-
w.endsWith(
|
|
202
|
+
w.endsWith(Ne) ? (d = w.slice(0, -1), D = !0) : (
|
|
203
203
|
/**
|
|
204
204
|
* In Tailwind CSS v3 the important modifier was at the start of the base class name. This is still supported for legacy reasons.
|
|
205
205
|
* @see https://github.com/dcastil/tailwind-merge/issues/513#issuecomment-2614029864
|
|
206
206
|
*/
|
|
207
|
-
w.startsWith(
|
|
207
|
+
w.startsWith(Ne) && (d = w.slice(1), D = !0)
|
|
208
208
|
);
|
|
209
209
|
const A = h && h > g ? h - g : void 0;
|
|
210
210
|
return Le(l, D, d, A);
|
|
211
211
|
};
|
|
212
212
|
if (o) {
|
|
213
213
|
const s = o + ze, l = n;
|
|
214
|
-
n = (i) => i.startsWith(s) ? l(i.slice(s.length)) : Le(
|
|
214
|
+
n = (i) => i.startsWith(s) ? l(i.slice(s.length)) : Le(Vt, !1, i, void 0, !0);
|
|
215
215
|
}
|
|
216
216
|
if (r) {
|
|
217
217
|
const s = n;
|
|
@@ -221,7 +221,7 @@ const Tt = (t, o) => {
|
|
|
221
221
|
});
|
|
222
222
|
}
|
|
223
223
|
return n;
|
|
224
|
-
},
|
|
224
|
+
}, Kt = (t) => {
|
|
225
225
|
const o = /* @__PURE__ */ new Map();
|
|
226
226
|
return t.orderSensitiveModifiers.forEach((r, n) => {
|
|
227
227
|
o.set(r, 1e6 + n);
|
|
@@ -234,18 +234,18 @@ const Tt = (t, o) => {
|
|
|
234
234
|
}
|
|
235
235
|
return s.length > 0 && (s.sort(), n.push(...s)), n;
|
|
236
236
|
};
|
|
237
|
-
},
|
|
238
|
-
cache:
|
|
239
|
-
parseClassName:
|
|
240
|
-
sortModifiers:
|
|
241
|
-
...
|
|
242
|
-
}),
|
|
237
|
+
}, Yt = (t) => ({
|
|
238
|
+
cache: $t(t.cacheSize),
|
|
239
|
+
parseClassName: Gt(t),
|
|
240
|
+
sortModifiers: Kt(t),
|
|
241
|
+
...Bt(t)
|
|
242
|
+
}), qt = /\s+/, Ht = (t, o) => {
|
|
243
243
|
const {
|
|
244
244
|
parseClassName: r,
|
|
245
245
|
getClassGroupId: n,
|
|
246
246
|
getConflictingClassGroupIds: s,
|
|
247
247
|
sortModifiers: l
|
|
248
|
-
} = o, i = [], u = t.trim().split(
|
|
248
|
+
} = o, i = [], u = t.trim().split(qt);
|
|
249
249
|
let g = "";
|
|
250
250
|
for (let h = u.length - 1; h >= 0; h -= 1) {
|
|
251
251
|
const x = u[h], {
|
|
@@ -271,58 +271,58 @@ const Tt = (t, o) => {
|
|
|
271
271
|
}
|
|
272
272
|
E = !1;
|
|
273
273
|
}
|
|
274
|
-
const B = d.length === 0 ? "" : d.length === 1 ? d[0] : l(d).join(":"), C = D ? B +
|
|
274
|
+
const B = d.length === 0 ? "" : d.length === 1 ? d[0] : l(d).join(":"), C = D ? B + Ne : B, y = C + S;
|
|
275
275
|
if (i.indexOf(y) > -1)
|
|
276
276
|
continue;
|
|
277
277
|
i.push(y);
|
|
278
278
|
const I = s(S, E);
|
|
279
279
|
for (let P = 0; P < I.length; ++P) {
|
|
280
|
-
const
|
|
281
|
-
i.push(C +
|
|
280
|
+
const W = I[P];
|
|
281
|
+
i.push(C + W);
|
|
282
282
|
}
|
|
283
283
|
g = x + (g.length > 0 ? " " + g : g);
|
|
284
284
|
}
|
|
285
285
|
return g;
|
|
286
|
-
},
|
|
286
|
+
}, Xt = (...t) => {
|
|
287
287
|
let o = 0, r, n, s = "";
|
|
288
288
|
for (; o < t.length; )
|
|
289
|
-
(r = t[o++]) && (n =
|
|
289
|
+
(r = t[o++]) && (n = Je(r)) && (s && (s += " "), s += n);
|
|
290
290
|
return s;
|
|
291
|
-
},
|
|
291
|
+
}, Je = (t) => {
|
|
292
292
|
if (typeof t == "string")
|
|
293
293
|
return t;
|
|
294
294
|
let o, r = "";
|
|
295
295
|
for (let n = 0; n < t.length; n++)
|
|
296
|
-
t[n] && (o =
|
|
296
|
+
t[n] && (o = Je(t[n])) && (r && (r += " "), r += o);
|
|
297
297
|
return r;
|
|
298
|
-
},
|
|
298
|
+
}, Jt = (t, ...o) => {
|
|
299
299
|
let r, n, s, l;
|
|
300
300
|
const i = (g) => {
|
|
301
301
|
const h = o.reduce((x, w) => w(x), t());
|
|
302
|
-
return r =
|
|
302
|
+
return r = Yt(h), n = r.cache.get, s = r.cache.set, l = u, u(g);
|
|
303
303
|
}, u = (g) => {
|
|
304
304
|
const h = n(g);
|
|
305
305
|
if (h)
|
|
306
306
|
return h;
|
|
307
|
-
const x =
|
|
307
|
+
const x = Ht(g, r);
|
|
308
308
|
return s(g, x), x;
|
|
309
309
|
};
|
|
310
|
-
return l = i, (...g) => l(
|
|
311
|
-
},
|
|
312
|
-
const o = (r) => r[t] ||
|
|
310
|
+
return l = i, (...g) => l(Xt(...g));
|
|
311
|
+
}, Zt = [], R = (t) => {
|
|
312
|
+
const o = (r) => r[t] || Zt;
|
|
313
313
|
return o.isThemeGetter = !0, o;
|
|
314
|
-
},
|
|
314
|
+
}, Ze = /^\[(?:(\w[\w-]*):)?(.+)\]$/i, Qe = /^\((?:(\w[\w-]*):)?(.+)\)$/i, Qt = /^\d+\/\d+$/, er = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, tr = /\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/, rr = /^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/, or = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, nr = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, Q = (t) => Qt.test(t), v = (t) => !!t && !Number.isNaN(Number(t)), Y = (t) => !!t && Number.isInteger(Number(t)), ve = (t) => t.endsWith("%") && v(t.slice(0, -1)), G = (t) => er.test(t), et = () => !0, ar = (t) => (
|
|
315
315
|
// `colorFunctionRegex` check is necessary because color functions can have percentages in them which which would be incorrectly classified as lengths.
|
|
316
316
|
// For example, `hsl(0 0% 0%)` would be classified as a length without this check.
|
|
317
317
|
// I could also use lookbehind assertion in `lengthUnitRegex` but that isn't supported widely enough.
|
|
318
|
-
|
|
319
|
-
),
|
|
320
|
-
const n = Je.exec(t);
|
|
321
|
-
return n ? n[1] ? o(n[1]) : r(n[2]) : !1;
|
|
322
|
-
}, ee = (t, o, r = !1) => {
|
|
318
|
+
tr.test(t) && !rr.test(t)
|
|
319
|
+
), Pe = () => !1, lr = (t) => or.test(t), sr = (t) => nr.test(t), ir = (t) => !b(t) && !p(t), cr = (t) => H(t, ot, Pe), b = (t) => Ze.test(t), X = (t) => H(t, nt, ar), je = (t) => H(t, fr, v), dr = (t) => H(t, lt, et), mr = (t) => H(t, at, Pe), Ue = (t) => H(t, tt, Pe), ur = (t) => H(t, rt, sr), me = (t) => H(t, st, lr), p = (t) => Qe.test(t), oe = (t) => J(t, nt), gr = (t) => J(t, at), Oe = (t) => J(t, tt), hr = (t) => J(t, ot), br = (t) => J(t, rt), ue = (t) => J(t, st, !0), pr = (t) => J(t, lt, !0), H = (t, o, r) => {
|
|
323
320
|
const n = Ze.exec(t);
|
|
321
|
+
return n ? n[1] ? o(n[1]) : r(n[2]) : !1;
|
|
322
|
+
}, J = (t, o, r = !1) => {
|
|
323
|
+
const n = Qe.exec(t);
|
|
324
324
|
return n ? n[1] ? o(n[1]) : r : !1;
|
|
325
|
-
},
|
|
325
|
+
}, tt = (t) => t === "position" || t === "percentage", rt = (t) => t === "image" || t === "url", ot = (t) => t === "length" || t === "size" || t === "bg-size", nt = (t) => t === "length", fr = (t) => t === "number", at = (t) => t === "family-name", lt = (t) => t === "number" || t === "weight", st = (t) => t === "shadow", xr = () => {
|
|
326
326
|
const t = R("color"), o = R("font"), r = R("text"), n = R("font-weight"), s = R("tracking"), l = R("leading"), i = R("breakpoint"), u = R("container"), g = R("spacing"), h = R("radius"), x = R("shadow"), w = R("inset-shadow"), d = R("text-shadow"), D = R("drop-shadow"), A = R("blur"), N = R("perspective"), E = R("aspect"), S = R("ease"), B = R("animate"), C = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], y = () => [
|
|
327
327
|
"center",
|
|
328
328
|
"top",
|
|
@@ -341,15 +341,15 @@ const Tt = (t, o) => {
|
|
|
341
341
|
"bottom-left",
|
|
342
342
|
// Deprecated since Tailwind CSS v4.1.0, see https://github.com/tailwindlabs/tailwindcss/pull/17378
|
|
343
343
|
"left-bottom"
|
|
344
|
-
], I = () => [...y(), p, b], P = () => ["auto", "hidden", "clip", "visible", "scroll"],
|
|
344
|
+
], I = () => [...y(), p, b], P = () => ["auto", "hidden", "clip", "visible", "scroll"], W = () => ["auto", "contain", "none"], k = () => [p, b, g], e = () => [Q, "full", "auto", ...k()], j = () => [Y, "none", "subgrid", p, b], te = () => ["auto", {
|
|
345
345
|
span: ["full", Y, p, b]
|
|
346
|
-
}, Y, p, b],
|
|
346
|
+
}, Y, p, b], $ = () => [Y, "auto", p, b], ne = () => ["auto", "min", "max", "fr", p, b], K = () => ["start", "end", "center", "between", "around", "evenly", "stretch", "baseline", "center-safe", "end-safe"], V = () => ["start", "end", "center", "stretch", "center-safe", "end-safe"], L = () => ["auto", ...k()], _ = () => [Q, "auto", "full", "dvw", "dvh", "lvw", "lvh", "svw", "svh", "min", "max", "fit", ...k()], f = () => [t, p, b], ae = () => [...y(), Oe, Ue, {
|
|
347
347
|
position: [p, b]
|
|
348
348
|
}], le = () => ["no-repeat", {
|
|
349
349
|
repeat: ["", "x", "y", "space", "round"]
|
|
350
|
-
}], se = () => ["auto", "cover", "contain",
|
|
350
|
+
}], se = () => ["auto", "cover", "contain", hr, cr, {
|
|
351
351
|
size: [p, b]
|
|
352
|
-
}],
|
|
352
|
+
}], Z = () => [ve, oe, X], z = () => [
|
|
353
353
|
// Deprecated since Tailwind CSS v4.0.0
|
|
354
354
|
"",
|
|
355
355
|
"none",
|
|
@@ -357,14 +357,14 @@ const Tt = (t, o) => {
|
|
|
357
357
|
h,
|
|
358
358
|
p,
|
|
359
359
|
b
|
|
360
|
-
], U = () => ["", v, oe,
|
|
360
|
+
], U = () => ["", v, oe, X], O = () => ["solid", "dashed", "dotted", "double"], M = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], F = () => [v, ve, Oe, Ue], ke = () => [
|
|
361
361
|
// Deprecated since Tailwind CSS v4.0.0
|
|
362
362
|
"",
|
|
363
363
|
"none",
|
|
364
364
|
A,
|
|
365
365
|
p,
|
|
366
366
|
b
|
|
367
|
-
], ie = () => ["none", v, p, b], ce = () => ["none", v, p, b], we = () => [v, p, b], de = () => [
|
|
367
|
+
], ie = () => ["none", v, p, b], ce = () => ["none", v, p, b], we = () => [v, p, b], de = () => [Q, "full", ...k()];
|
|
368
368
|
return {
|
|
369
369
|
cacheSize: 500,
|
|
370
370
|
theme: {
|
|
@@ -372,11 +372,11 @@ const Tt = (t, o) => {
|
|
|
372
372
|
aspect: ["video"],
|
|
373
373
|
blur: [G],
|
|
374
374
|
breakpoint: [G],
|
|
375
|
-
color: [
|
|
375
|
+
color: [et],
|
|
376
376
|
container: [G],
|
|
377
377
|
"drop-shadow": [G],
|
|
378
378
|
ease: ["in", "out", "in-out"],
|
|
379
|
-
font: [
|
|
379
|
+
font: [ir],
|
|
380
380
|
"font-weight": ["thin", "extralight", "light", "normal", "medium", "semibold", "bold", "extrabold", "black"],
|
|
381
381
|
"inset-shadow": [G],
|
|
382
382
|
leading: ["none", "tight", "snug", "normal", "relaxed", "loose"],
|
|
@@ -397,7 +397,7 @@ const Tt = (t, o) => {
|
|
|
397
397
|
* @see https://tailwindcss.com/docs/aspect-ratio
|
|
398
398
|
*/
|
|
399
399
|
aspect: [{
|
|
400
|
-
aspect: ["auto", "square",
|
|
400
|
+
aspect: ["auto", "square", Q, b, p, E]
|
|
401
401
|
}],
|
|
402
402
|
/**
|
|
403
403
|
* Container
|
|
@@ -516,21 +516,21 @@ const Tt = (t, o) => {
|
|
|
516
516
|
* @see https://tailwindcss.com/docs/overscroll-behavior
|
|
517
517
|
*/
|
|
518
518
|
overscroll: [{
|
|
519
|
-
overscroll:
|
|
519
|
+
overscroll: W()
|
|
520
520
|
}],
|
|
521
521
|
/**
|
|
522
522
|
* Overscroll Behavior X
|
|
523
523
|
* @see https://tailwindcss.com/docs/overscroll-behavior
|
|
524
524
|
*/
|
|
525
525
|
"overscroll-x": [{
|
|
526
|
-
"overscroll-x":
|
|
526
|
+
"overscroll-x": W()
|
|
527
527
|
}],
|
|
528
528
|
/**
|
|
529
529
|
* Overscroll Behavior Y
|
|
530
530
|
* @see https://tailwindcss.com/docs/overscroll-behavior
|
|
531
531
|
*/
|
|
532
532
|
"overscroll-y": [{
|
|
533
|
-
"overscroll-y":
|
|
533
|
+
"overscroll-y": W()
|
|
534
534
|
}],
|
|
535
535
|
/**
|
|
536
536
|
* Position
|
|
@@ -620,7 +620,7 @@ const Tt = (t, o) => {
|
|
|
620
620
|
* @see https://tailwindcss.com/docs/flex-basis
|
|
621
621
|
*/
|
|
622
622
|
basis: [{
|
|
623
|
-
basis: [
|
|
623
|
+
basis: [Q, "full", "auto", u, ...k()]
|
|
624
624
|
}],
|
|
625
625
|
/**
|
|
626
626
|
* Flex Direction
|
|
@@ -641,7 +641,7 @@ const Tt = (t, o) => {
|
|
|
641
641
|
* @see https://tailwindcss.com/docs/flex
|
|
642
642
|
*/
|
|
643
643
|
flex: [{
|
|
644
|
-
flex: [v,
|
|
644
|
+
flex: [v, Q, "auto", "initial", "none", b]
|
|
645
645
|
}],
|
|
646
646
|
/**
|
|
647
647
|
* Flex Grow
|
|
@@ -683,14 +683,14 @@ const Tt = (t, o) => {
|
|
|
683
683
|
* @see https://tailwindcss.com/docs/grid-column
|
|
684
684
|
*/
|
|
685
685
|
"col-start": [{
|
|
686
|
-
"col-start":
|
|
686
|
+
"col-start": $()
|
|
687
687
|
}],
|
|
688
688
|
/**
|
|
689
689
|
* Grid Column End
|
|
690
690
|
* @see https://tailwindcss.com/docs/grid-column
|
|
691
691
|
*/
|
|
692
692
|
"col-end": [{
|
|
693
|
-
"col-end":
|
|
693
|
+
"col-end": $()
|
|
694
694
|
}],
|
|
695
695
|
/**
|
|
696
696
|
* Grid Template Rows
|
|
@@ -711,14 +711,14 @@ const Tt = (t, o) => {
|
|
|
711
711
|
* @see https://tailwindcss.com/docs/grid-row
|
|
712
712
|
*/
|
|
713
713
|
"row-start": [{
|
|
714
|
-
"row-start":
|
|
714
|
+
"row-start": $()
|
|
715
715
|
}],
|
|
716
716
|
/**
|
|
717
717
|
* Grid Row End
|
|
718
718
|
* @see https://tailwindcss.com/docs/grid-row
|
|
719
719
|
*/
|
|
720
720
|
"row-end": [{
|
|
721
|
-
"row-end":
|
|
721
|
+
"row-end": $()
|
|
722
722
|
}],
|
|
723
723
|
/**
|
|
724
724
|
* Grid Auto Flow
|
|
@@ -988,14 +988,14 @@ const Tt = (t, o) => {
|
|
|
988
988
|
* @see https://tailwindcss.com/docs/width#setting-both-width-and-height
|
|
989
989
|
*/
|
|
990
990
|
size: [{
|
|
991
|
-
size:
|
|
991
|
+
size: _()
|
|
992
992
|
}],
|
|
993
993
|
/**
|
|
994
994
|
* Width
|
|
995
995
|
* @see https://tailwindcss.com/docs/width
|
|
996
996
|
*/
|
|
997
997
|
w: [{
|
|
998
|
-
w: [u, "screen",
|
|
998
|
+
w: [u, "screen", ..._()]
|
|
999
999
|
}],
|
|
1000
1000
|
/**
|
|
1001
1001
|
* Min-Width
|
|
@@ -1007,7 +1007,7 @@ const Tt = (t, o) => {
|
|
|
1007
1007
|
"screen",
|
|
1008
1008
|
/** Deprecated. @see https://github.com/tailwindlabs/tailwindcss.com/issues/2027#issuecomment-2620152757 */
|
|
1009
1009
|
"none",
|
|
1010
|
-
|
|
1010
|
+
..._()
|
|
1011
1011
|
]
|
|
1012
1012
|
}],
|
|
1013
1013
|
/**
|
|
@@ -1025,7 +1025,7 @@ const Tt = (t, o) => {
|
|
|
1025
1025
|
{
|
|
1026
1026
|
screen: [i]
|
|
1027
1027
|
},
|
|
1028
|
-
|
|
1028
|
+
..._()
|
|
1029
1029
|
]
|
|
1030
1030
|
}],
|
|
1031
1031
|
/**
|
|
@@ -1033,21 +1033,21 @@ const Tt = (t, o) => {
|
|
|
1033
1033
|
* @see https://tailwindcss.com/docs/height
|
|
1034
1034
|
*/
|
|
1035
1035
|
h: [{
|
|
1036
|
-
h: ["screen", "lh",
|
|
1036
|
+
h: ["screen", "lh", ..._()]
|
|
1037
1037
|
}],
|
|
1038
1038
|
/**
|
|
1039
1039
|
* Min-Height
|
|
1040
1040
|
* @see https://tailwindcss.com/docs/min-height
|
|
1041
1041
|
*/
|
|
1042
1042
|
"min-h": [{
|
|
1043
|
-
"min-h": ["screen", "lh", "none",
|
|
1043
|
+
"min-h": ["screen", "lh", "none", ..._()]
|
|
1044
1044
|
}],
|
|
1045
1045
|
/**
|
|
1046
1046
|
* Max-Height
|
|
1047
1047
|
* @see https://tailwindcss.com/docs/max-height
|
|
1048
1048
|
*/
|
|
1049
1049
|
"max-h": [{
|
|
1050
|
-
"max-h": ["screen", "lh",
|
|
1050
|
+
"max-h": ["screen", "lh", ..._()]
|
|
1051
1051
|
}],
|
|
1052
1052
|
// ------------------
|
|
1053
1053
|
// --- Typography ---
|
|
@@ -1057,7 +1057,7 @@ const Tt = (t, o) => {
|
|
|
1057
1057
|
* @see https://tailwindcss.com/docs/font-size
|
|
1058
1058
|
*/
|
|
1059
1059
|
"font-size": [{
|
|
1060
|
-
text: ["base", r, oe,
|
|
1060
|
+
text: ["base", r, oe, X]
|
|
1061
1061
|
}],
|
|
1062
1062
|
/**
|
|
1063
1063
|
* Font Smoothing
|
|
@@ -1074,7 +1074,7 @@ const Tt = (t, o) => {
|
|
|
1074
1074
|
* @see https://tailwindcss.com/docs/font-weight
|
|
1075
1075
|
*/
|
|
1076
1076
|
"font-weight": [{
|
|
1077
|
-
font: [n,
|
|
1077
|
+
font: [n, pr, dr]
|
|
1078
1078
|
}],
|
|
1079
1079
|
/**
|
|
1080
1080
|
* Font Stretch
|
|
@@ -1088,7 +1088,7 @@ const Tt = (t, o) => {
|
|
|
1088
1088
|
* @see https://tailwindcss.com/docs/font-family
|
|
1089
1089
|
*/
|
|
1090
1090
|
"font-family": [{
|
|
1091
|
-
font: [
|
|
1091
|
+
font: [gr, mr, o]
|
|
1092
1092
|
}],
|
|
1093
1093
|
/**
|
|
1094
1094
|
* Font Variant Numeric
|
|
@@ -1132,7 +1132,7 @@ const Tt = (t, o) => {
|
|
|
1132
1132
|
* @see https://tailwindcss.com/docs/line-clamp
|
|
1133
1133
|
*/
|
|
1134
1134
|
"line-clamp": [{
|
|
1135
|
-
"line-clamp": [v, "none", p,
|
|
1135
|
+
"line-clamp": [v, "none", p, je]
|
|
1136
1136
|
}],
|
|
1137
1137
|
/**
|
|
1138
1138
|
* Line Height
|
|
@@ -1205,7 +1205,7 @@ const Tt = (t, o) => {
|
|
|
1205
1205
|
* @see https://tailwindcss.com/docs/text-decoration-thickness
|
|
1206
1206
|
*/
|
|
1207
1207
|
"text-decoration-thickness": [{
|
|
1208
|
-
decoration: [v, "from-font", "auto", p,
|
|
1208
|
+
decoration: [v, "from-font", "auto", p, X]
|
|
1209
1209
|
}],
|
|
1210
1210
|
/**
|
|
1211
1211
|
* Text Decoration Color
|
|
@@ -1343,7 +1343,7 @@ const Tt = (t, o) => {
|
|
|
1343
1343
|
}, Y, p, b],
|
|
1344
1344
|
radial: ["", p, b],
|
|
1345
1345
|
conic: [Y, p, b]
|
|
1346
|
-
},
|
|
1346
|
+
}, br, ur]
|
|
1347
1347
|
}],
|
|
1348
1348
|
/**
|
|
1349
1349
|
* Background Color
|
|
@@ -1357,21 +1357,21 @@ const Tt = (t, o) => {
|
|
|
1357
1357
|
* @see https://tailwindcss.com/docs/gradient-color-stops
|
|
1358
1358
|
*/
|
|
1359
1359
|
"gradient-from-pos": [{
|
|
1360
|
-
from:
|
|
1360
|
+
from: Z()
|
|
1361
1361
|
}],
|
|
1362
1362
|
/**
|
|
1363
1363
|
* Gradient Color Stops Via Position
|
|
1364
1364
|
* @see https://tailwindcss.com/docs/gradient-color-stops
|
|
1365
1365
|
*/
|
|
1366
1366
|
"gradient-via-pos": [{
|
|
1367
|
-
via:
|
|
1367
|
+
via: Z()
|
|
1368
1368
|
}],
|
|
1369
1369
|
/**
|
|
1370
1370
|
* Gradient Color Stops To Position
|
|
1371
1371
|
* @see https://tailwindcss.com/docs/gradient-color-stops
|
|
1372
1372
|
*/
|
|
1373
1373
|
"gradient-to-pos": [{
|
|
1374
|
-
to:
|
|
1374
|
+
to: Z()
|
|
1375
1375
|
}],
|
|
1376
1376
|
/**
|
|
1377
1377
|
* Gradient Color Stops From
|
|
@@ -1692,7 +1692,7 @@ const Tt = (t, o) => {
|
|
|
1692
1692
|
* @see https://tailwindcss.com/docs/outline-width
|
|
1693
1693
|
*/
|
|
1694
1694
|
"outline-w": [{
|
|
1695
|
-
outline: ["", v, oe,
|
|
1695
|
+
outline: ["", v, oe, X]
|
|
1696
1696
|
}],
|
|
1697
1697
|
/**
|
|
1698
1698
|
* Outline Color
|
|
@@ -1767,7 +1767,7 @@ const Tt = (t, o) => {
|
|
|
1767
1767
|
* @see https://github.com/tailwindlabs/tailwindcss/blob/v4.0.0/packages/tailwindcss/src/utilities.ts#L4158
|
|
1768
1768
|
*/
|
|
1769
1769
|
"ring-offset-w": [{
|
|
1770
|
-
"ring-offset": [v,
|
|
1770
|
+
"ring-offset": [v, X]
|
|
1771
1771
|
}],
|
|
1772
1772
|
/**
|
|
1773
1773
|
* Ring Offset Color
|
|
@@ -2717,7 +2717,7 @@ const Tt = (t, o) => {
|
|
|
2717
2717
|
* @see https://tailwindcss.com/docs/stroke-width
|
|
2718
2718
|
*/
|
|
2719
2719
|
"stroke-w": [{
|
|
2720
|
-
stroke: [v, oe,
|
|
2720
|
+
stroke: [v, oe, X, je]
|
|
2721
2721
|
}],
|
|
2722
2722
|
/**
|
|
2723
2723
|
* Stroke
|
|
@@ -2792,9 +2792,9 @@ const Tt = (t, o) => {
|
|
|
2792
2792
|
},
|
|
2793
2793
|
orderSensitiveModifiers: ["*", "**", "after", "backdrop", "before", "details-content", "file", "first-letter", "first-line", "marker", "placeholder", "selection"]
|
|
2794
2794
|
};
|
|
2795
|
-
},
|
|
2795
|
+
}, kr = /* @__PURE__ */ Jt(xr);
|
|
2796
2796
|
function c(...t) {
|
|
2797
|
-
return
|
|
2797
|
+
return kr(Ye(t));
|
|
2798
2798
|
}
|
|
2799
2799
|
const be = T.forwardRef(({ className: t, ...o }, r) => /* @__PURE__ */ a(
|
|
2800
2800
|
"div",
|
|
@@ -2808,7 +2808,7 @@ const be = T.forwardRef(({ className: t, ...o }, r) => /* @__PURE__ */ a(
|
|
|
2808
2808
|
}
|
|
2809
2809
|
));
|
|
2810
2810
|
be.displayName = "Card";
|
|
2811
|
-
const
|
|
2811
|
+
const Ee = T.forwardRef(({ className: t, ...o }, r) => /* @__PURE__ */ a(
|
|
2812
2812
|
"div",
|
|
2813
2813
|
{
|
|
2814
2814
|
ref: r,
|
|
@@ -2816,8 +2816,8 @@ const Ae = T.forwardRef(({ className: t, ...o }, r) => /* @__PURE__ */ a(
|
|
|
2816
2816
|
...o
|
|
2817
2817
|
}
|
|
2818
2818
|
));
|
|
2819
|
-
|
|
2820
|
-
const
|
|
2819
|
+
Ee.displayName = "CardHeader";
|
|
2820
|
+
const Ae = T.forwardRef(({ className: t, ...o }, r) => /* @__PURE__ */ a(
|
|
2821
2821
|
"div",
|
|
2822
2822
|
{
|
|
2823
2823
|
ref: r,
|
|
@@ -2825,8 +2825,8 @@ const Te = T.forwardRef(({ className: t, ...o }, r) => /* @__PURE__ */ a(
|
|
|
2825
2825
|
...o
|
|
2826
2826
|
}
|
|
2827
2827
|
));
|
|
2828
|
-
|
|
2829
|
-
const
|
|
2828
|
+
Ae.displayName = "CardTitle";
|
|
2829
|
+
const Te = T.forwardRef(({ className: t, ...o }, r) => /* @__PURE__ */ a(
|
|
2830
2830
|
"div",
|
|
2831
2831
|
{
|
|
2832
2832
|
ref: r,
|
|
@@ -2834,10 +2834,10 @@ const De = T.forwardRef(({ className: t, ...o }, r) => /* @__PURE__ */ a(
|
|
|
2834
2834
|
...o
|
|
2835
2835
|
}
|
|
2836
2836
|
));
|
|
2837
|
-
|
|
2837
|
+
Te.displayName = "CardDescription";
|
|
2838
2838
|
const pe = T.forwardRef(({ className: t, ...o }, r) => /* @__PURE__ */ a("div", { ref: r, className: c("p-6 pt-0", t), ...o }));
|
|
2839
2839
|
pe.displayName = "CardContent";
|
|
2840
|
-
const
|
|
2840
|
+
const wr = T.forwardRef(({ className: t, ...o }, r) => /* @__PURE__ */ a(
|
|
2841
2841
|
"div",
|
|
2842
2842
|
{
|
|
2843
2843
|
ref: r,
|
|
@@ -2845,41 +2845,41 @@ const pr = T.forwardRef(({ className: t, ...o }, r) => /* @__PURE__ */ a(
|
|
|
2845
2845
|
...o
|
|
2846
2846
|
}
|
|
2847
2847
|
));
|
|
2848
|
-
|
|
2849
|
-
function
|
|
2848
|
+
wr.displayName = "CardFooter";
|
|
2849
|
+
function We(t, o) {
|
|
2850
2850
|
if (typeof t == "function")
|
|
2851
2851
|
return t(o);
|
|
2852
2852
|
t != null && (t.current = o);
|
|
2853
2853
|
}
|
|
2854
|
-
function
|
|
2854
|
+
function yr(...t) {
|
|
2855
2855
|
return (o) => {
|
|
2856
2856
|
let r = !1;
|
|
2857
2857
|
const n = t.map((s) => {
|
|
2858
|
-
const l =
|
|
2858
|
+
const l = We(s, o);
|
|
2859
2859
|
return !r && typeof l == "function" && (r = !0), l;
|
|
2860
2860
|
});
|
|
2861
2861
|
if (r)
|
|
2862
2862
|
return () => {
|
|
2863
2863
|
for (let s = 0; s < n.length; s++) {
|
|
2864
2864
|
const l = n[s];
|
|
2865
|
-
typeof l == "function" ? l() :
|
|
2865
|
+
typeof l == "function" ? l() : We(t[s], null);
|
|
2866
2866
|
}
|
|
2867
2867
|
};
|
|
2868
2868
|
};
|
|
2869
2869
|
}
|
|
2870
|
-
var
|
|
2871
|
-
function
|
|
2870
|
+
var vr = /* @__PURE__ */ Symbol.for("react.lazy"), fe = T[" use ".trim().toString()];
|
|
2871
|
+
function Fr(t) {
|
|
2872
2872
|
return typeof t == "object" && t !== null && "then" in t;
|
|
2873
2873
|
}
|
|
2874
|
-
function
|
|
2875
|
-
return t != null && typeof t == "object" && "$$typeof" in t && t.$$typeof ===
|
|
2874
|
+
function it(t) {
|
|
2875
|
+
return t != null && typeof t == "object" && "$$typeof" in t && t.$$typeof === vr && "_payload" in t && Fr(t._payload);
|
|
2876
2876
|
}
|
|
2877
2877
|
// @__NO_SIDE_EFFECTS__
|
|
2878
|
-
function
|
|
2879
|
-
const o = /* @__PURE__ */
|
|
2878
|
+
function Cr(t) {
|
|
2879
|
+
const o = /* @__PURE__ */ Er(t), r = T.forwardRef((n, s) => {
|
|
2880
2880
|
let { children: l, ...i } = n;
|
|
2881
|
-
|
|
2882
|
-
const u = T.Children.toArray(l), g = u.find(
|
|
2881
|
+
it(l) && typeof fe == "function" && (l = fe(l._payload));
|
|
2882
|
+
const u = T.Children.toArray(l), g = u.find(Tr);
|
|
2883
2883
|
if (g) {
|
|
2884
2884
|
const h = g.props.children, x = u.map((w) => w === g ? T.Children.count(h) > 1 ? T.Children.only(null) : T.isValidElement(h) ? h.props.children : null : w);
|
|
2885
2885
|
return /* @__PURE__ */ a(o, { ...i, ref: s, children: T.isValidElement(h) ? T.cloneElement(h, void 0, x) : null });
|
|
@@ -2888,24 +2888,24 @@ function wr(t) {
|
|
|
2888
2888
|
});
|
|
2889
2889
|
return r.displayName = `${t}.Slot`, r;
|
|
2890
2890
|
}
|
|
2891
|
-
var
|
|
2891
|
+
var Nr = /* @__PURE__ */ Cr("Slot");
|
|
2892
2892
|
// @__NO_SIDE_EFFECTS__
|
|
2893
|
-
function
|
|
2893
|
+
function Er(t) {
|
|
2894
2894
|
const o = T.forwardRef((r, n) => {
|
|
2895
2895
|
let { children: s, ...l } = r;
|
|
2896
|
-
if (
|
|
2897
|
-
const i =
|
|
2898
|
-
return s.type !== T.Fragment && (u.ref = n ?
|
|
2896
|
+
if (it(s) && typeof fe == "function" && (s = fe(s._payload)), T.isValidElement(s)) {
|
|
2897
|
+
const i = Pr(s), u = Dr(l, s.props);
|
|
2898
|
+
return s.type !== T.Fragment && (u.ref = n ? yr(n, i) : i), T.cloneElement(s, u);
|
|
2899
2899
|
}
|
|
2900
2900
|
return T.Children.count(s) > 1 ? T.Children.only(null) : null;
|
|
2901
2901
|
});
|
|
2902
2902
|
return o.displayName = `${t}.SlotClone`, o;
|
|
2903
2903
|
}
|
|
2904
|
-
var
|
|
2905
|
-
function
|
|
2906
|
-
return T.isValidElement(t) && typeof t.type == "function" && "__radixId" in t.type && t.type.__radixId ===
|
|
2904
|
+
var Ar = /* @__PURE__ */ Symbol("radix.slottable");
|
|
2905
|
+
function Tr(t) {
|
|
2906
|
+
return T.isValidElement(t) && typeof t.type == "function" && "__radixId" in t.type && t.type.__radixId === Ar;
|
|
2907
2907
|
}
|
|
2908
|
-
function
|
|
2908
|
+
function Dr(t, o) {
|
|
2909
2909
|
const r = { ...o };
|
|
2910
2910
|
for (const n in o) {
|
|
2911
2911
|
const s = t[n], l = o[n];
|
|
@@ -2916,11 +2916,11 @@ function Nr(t, o) {
|
|
|
2916
2916
|
}
|
|
2917
2917
|
return { ...t, ...r };
|
|
2918
2918
|
}
|
|
2919
|
-
function
|
|
2919
|
+
function Pr(t) {
|
|
2920
2920
|
let o = Object.getOwnPropertyDescriptor(t.props, "ref")?.get, r = o && "isReactWarning" in o && o.isReactWarning;
|
|
2921
2921
|
return r ? t.ref : (o = Object.getOwnPropertyDescriptor(t, "ref")?.get, r = o && "isReactWarning" in o && o.isReactWarning, r ? t.props.ref : t.props.ref || t.ref);
|
|
2922
2922
|
}
|
|
2923
|
-
const _e = (t) => typeof t == "boolean" ? `${t}` : t === 0 ? "0" : t, $e =
|
|
2923
|
+
const _e = (t) => typeof t == "boolean" ? `${t}` : t === 0 ? "0" : t, $e = Ye, ct = (t, o) => (r) => {
|
|
2924
2924
|
var n;
|
|
2925
2925
|
if (o?.variants == null) return $e(t, r?.class, r?.className);
|
|
2926
2926
|
const { variants: s, defaultVariants: l } = o, i = Object.keys(s).map((h) => {
|
|
@@ -2949,7 +2949,7 @@ const _e = (t) => typeof t == "boolean" ? `${t}` : t === 0 ? "0" : t, $e = Ke, l
|
|
|
2949
2949
|
] : h;
|
|
2950
2950
|
}, []);
|
|
2951
2951
|
return $e(t, i, g, r?.class, r?.className);
|
|
2952
|
-
},
|
|
2952
|
+
}, Mr = ct(
|
|
2953
2953
|
"inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",
|
|
2954
2954
|
{
|
|
2955
2955
|
variants: {
|
|
@@ -2973,17 +2973,17 @@ const _e = (t) => typeof t == "boolean" ? `${t}` : t === 0 ? "0" : t, $e = Ke, l
|
|
|
2973
2973
|
size: "default"
|
|
2974
2974
|
}
|
|
2975
2975
|
}
|
|
2976
|
-
),
|
|
2976
|
+
), dt = T.forwardRef(
|
|
2977
2977
|
({ className: t, variant: o, size: r, asChild: n = !1, ...s }, l) => /* @__PURE__ */ a(
|
|
2978
|
-
n ?
|
|
2978
|
+
n ? Nr : "button",
|
|
2979
2979
|
{
|
|
2980
|
-
className: c(
|
|
2980
|
+
className: c(Mr({ variant: o, size: r, className: t })),
|
|
2981
2981
|
ref: l,
|
|
2982
2982
|
...s
|
|
2983
2983
|
}
|
|
2984
2984
|
)
|
|
2985
2985
|
);
|
|
2986
|
-
|
|
2986
|
+
dt.displayName = "Button";
|
|
2987
2987
|
const xe = T.forwardRef(
|
|
2988
2988
|
({ className: t, size: o = "md", variant: r = "default", ...n }, s) => {
|
|
2989
2989
|
const l = {
|
|
@@ -3031,7 +3031,7 @@ const ge = T.forwardRef(
|
|
|
3031
3031
|
minimumFractionDigits: 2
|
|
3032
3032
|
}).format(w);
|
|
3033
3033
|
return /* @__PURE__ */ a(
|
|
3034
|
-
|
|
3034
|
+
dt,
|
|
3035
3035
|
{
|
|
3036
3036
|
ref: h,
|
|
3037
3037
|
onClick: r,
|
|
@@ -3061,7 +3061,7 @@ const ge = T.forwardRef(
|
|
|
3061
3061
|
}
|
|
3062
3062
|
);
|
|
3063
3063
|
ge.displayName = "PaymentButton";
|
|
3064
|
-
const
|
|
3064
|
+
const Sr = ct(
|
|
3065
3065
|
"inline-flex items-center rounded-md border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",
|
|
3066
3066
|
{
|
|
3067
3067
|
variants: {
|
|
@@ -3077,10 +3077,10 @@ const Tr = lt(
|
|
|
3077
3077
|
}
|
|
3078
3078
|
}
|
|
3079
3079
|
);
|
|
3080
|
-
function
|
|
3081
|
-
return /* @__PURE__ */ a("div", { className: c(
|
|
3080
|
+
function mt({ className: t, variant: o, ...r }) {
|
|
3081
|
+
return /* @__PURE__ */ a("div", { className: c(Sr({ variant: o }), t), ...r });
|
|
3082
3082
|
}
|
|
3083
|
-
const
|
|
3083
|
+
const ut = ({
|
|
3084
3084
|
wallet: t,
|
|
3085
3085
|
balance: o,
|
|
3086
3086
|
network: r,
|
|
@@ -3205,7 +3205,7 @@ const ct = ({
|
|
|
3205
3205
|
}
|
|
3206
3206
|
),
|
|
3207
3207
|
/* @__PURE__ */ a(
|
|
3208
|
-
|
|
3208
|
+
mt,
|
|
3209
3209
|
{
|
|
3210
3210
|
variant: "outline",
|
|
3211
3211
|
className: c(
|
|
@@ -3220,8 +3220,8 @@ const ct = ({
|
|
|
3220
3220
|
}
|
|
3221
3221
|
);
|
|
3222
3222
|
};
|
|
3223
|
-
|
|
3224
|
-
function
|
|
3223
|
+
ut.displayName = "WalletSection";
|
|
3224
|
+
function Rr(t) {
|
|
3225
3225
|
if (typeof globalThis < "u" && typeof globalThis.atob == "function") {
|
|
3226
3226
|
const o = globalThis.atob(t), r = new Uint8Array(o.length);
|
|
3227
3227
|
for (let s = 0; s < o.length; s++)
|
|
@@ -3230,14 +3230,14 @@ function Dr(t) {
|
|
|
3230
3230
|
}
|
|
3231
3231
|
return Buffer.from(t, "base64").toString("utf-8");
|
|
3232
3232
|
}
|
|
3233
|
-
var
|
|
3234
|
-
function
|
|
3233
|
+
var Br = "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp";
|
|
3234
|
+
function Ir(t) {
|
|
3235
3235
|
return t === "solana" || t === "solana-devnet" || t.startsWith("solana:");
|
|
3236
3236
|
}
|
|
3237
|
-
function
|
|
3238
|
-
return t === "solana" || t ===
|
|
3237
|
+
function zr(t) {
|
|
3238
|
+
return t === "solana" || t === Br;
|
|
3239
3239
|
}
|
|
3240
|
-
function
|
|
3240
|
+
function Lr(t, o, r) {
|
|
3241
3241
|
const n = Buffer.from(t.serialize()).toString(
|
|
3242
3242
|
"base64"
|
|
3243
3243
|
), s = {
|
|
@@ -3254,7 +3254,7 @@ function Rr(t, o, r) {
|
|
|
3254
3254
|
};
|
|
3255
3255
|
return Buffer.from(JSON.stringify(s)).toString("base64");
|
|
3256
3256
|
}
|
|
3257
|
-
function
|
|
3257
|
+
function jr(t, o) {
|
|
3258
3258
|
const r = Buffer.from(t.serialize()).toString("base64"), n = {
|
|
3259
3259
|
x402Version: 1,
|
|
3260
3260
|
scheme: o.scheme,
|
|
@@ -3267,41 +3267,41 @@ function Br(t, o) {
|
|
|
3267
3267
|
"base64"
|
|
3268
3268
|
);
|
|
3269
3269
|
}
|
|
3270
|
-
function
|
|
3271
|
-
return
|
|
3270
|
+
function Ur(t) {
|
|
3271
|
+
return zr(t) ? "https://api.mainnet-beta.solana.com" : "https://api.devnet.solana.com";
|
|
3272
3272
|
}
|
|
3273
|
-
var
|
|
3274
|
-
async function
|
|
3275
|
-
const n = new
|
|
3273
|
+
var Or = 2e4, Wr = 1;
|
|
3274
|
+
async function _r(t, o, r) {
|
|
3275
|
+
const n = new Ge(r, "confirmed"), s = o.extra?.feePayer;
|
|
3276
3276
|
if (!s)
|
|
3277
3277
|
throw new Error(
|
|
3278
3278
|
"Missing facilitator feePayer in payment requirements (extra.feePayer)."
|
|
3279
3279
|
);
|
|
3280
|
-
const l = new
|
|
3280
|
+
const l = new ee(s), i = t?.publicKey?.toString() || t?.address;
|
|
3281
3281
|
if (!i)
|
|
3282
3282
|
throw new Error("Missing connected Solana wallet address or publicKey");
|
|
3283
|
-
const u = new
|
|
3283
|
+
const u = new ee(i);
|
|
3284
3284
|
if (!o.payTo)
|
|
3285
3285
|
throw new Error("Missing payTo in payment requirements");
|
|
3286
|
-
const g = new
|
|
3286
|
+
const g = new ee(o.payTo);
|
|
3287
3287
|
if (!o.asset)
|
|
3288
3288
|
throw new Error("Missing token mint for SPL transfer");
|
|
3289
|
-
const h = new
|
|
3289
|
+
const h = new ee(o.asset), x = [];
|
|
3290
3290
|
x.push(
|
|
3291
3291
|
Re.setComputeUnitLimit({
|
|
3292
|
-
units:
|
|
3292
|
+
units: Or
|
|
3293
3293
|
})
|
|
3294
3294
|
), x.push(
|
|
3295
3295
|
Re.setComputeUnitPrice({
|
|
3296
|
-
microLamports:
|
|
3296
|
+
microLamports: Wr
|
|
3297
3297
|
})
|
|
3298
3298
|
);
|
|
3299
|
-
const d = (await n.getAccountInfo(h, "confirmed"))?.owner?.toBase58() === Be.toBase58() ? Be :
|
|
3299
|
+
const d = (await n.getAccountInfo(h, "confirmed"))?.owner?.toBase58() === Be.toBase58() ? Be : Nt, D = await Et(n, h, void 0, d), A = await Ce(
|
|
3300
3300
|
h,
|
|
3301
3301
|
u,
|
|
3302
3302
|
!1,
|
|
3303
3303
|
d
|
|
3304
|
-
), N = await
|
|
3304
|
+
), N = await Ce(
|
|
3305
3305
|
h,
|
|
3306
3306
|
g,
|
|
3307
3307
|
!1,
|
|
@@ -3323,7 +3323,7 @@ async function jr(t, o, r) {
|
|
|
3323
3323
|
throw new Error("Missing amount in payment requirements");
|
|
3324
3324
|
const C = BigInt(B);
|
|
3325
3325
|
x.push(
|
|
3326
|
-
|
|
3326
|
+
At(
|
|
3327
3327
|
A,
|
|
3328
3328
|
h,
|
|
3329
3329
|
N,
|
|
@@ -3334,20 +3334,20 @@ async function jr(t, o, r) {
|
|
|
3334
3334
|
d
|
|
3335
3335
|
)
|
|
3336
3336
|
);
|
|
3337
|
-
const { blockhash: y } = await n.getLatestBlockhash("confirmed"), I = new
|
|
3337
|
+
const { blockhash: y } = await n.getLatestBlockhash("confirmed"), I = new yt({
|
|
3338
3338
|
payerKey: l,
|
|
3339
3339
|
recentBlockhash: y,
|
|
3340
3340
|
instructions: x
|
|
3341
|
-
}).compileToV0Message(), P = new
|
|
3341
|
+
}).compileToV0Message(), P = new vt(I);
|
|
3342
3342
|
if (typeof t?.signTransaction != "function")
|
|
3343
3343
|
throw new Error("Connected wallet does not support signTransaction");
|
|
3344
3344
|
return await t.signTransaction(P);
|
|
3345
3345
|
}
|
|
3346
|
-
function
|
|
3347
|
-
const o =
|
|
3346
|
+
function $r(t) {
|
|
3347
|
+
const o = Rr(t);
|
|
3348
3348
|
return JSON.parse(o);
|
|
3349
3349
|
}
|
|
3350
|
-
function
|
|
3350
|
+
function Vr(t, o, r, n = BigInt(0), s = !1) {
|
|
3351
3351
|
const l = (...i) => {
|
|
3352
3352
|
s && console.log("[x402-solana]", ...i);
|
|
3353
3353
|
};
|
|
@@ -3360,9 +3360,9 @@ function Or(t, o, r, n = BigInt(0), s = !1) {
|
|
|
3360
3360
|
l("Got 402, parsing payment requirements...");
|
|
3361
3361
|
let x, w;
|
|
3362
3362
|
const d = h.headers.get("PAYMENT-REQUIRED");
|
|
3363
|
-
d ? (l("Found PAYMENT-REQUIRED header (v2 protocol)"), x =
|
|
3363
|
+
d ? (l("Found PAYMENT-REQUIRED header (v2 protocol)"), x = $r(d), w = 2) : (l("No PAYMENT-REQUIRED header, falling back to body (v1 protocol)"), x = await h.json(), w = 1), l("Payment requirements:", JSON.stringify(x, null, 2)), l("Protocol version:", w);
|
|
3364
3364
|
const D = x.accepts || [], A = D.find(
|
|
3365
|
-
(P) => P.scheme === "exact" &&
|
|
3365
|
+
(P) => P.scheme === "exact" && Ir(P.network)
|
|
3366
3366
|
);
|
|
3367
3367
|
if (!A)
|
|
3368
3368
|
throw console.error(
|
|
@@ -3376,18 +3376,18 @@ function Or(t, o, r, n = BigInt(0), s = !1) {
|
|
|
3376
3376
|
throw new Error("Payment amount exceeds maximum allowed");
|
|
3377
3377
|
const E = typeof i == "string" ? i : i.url;
|
|
3378
3378
|
l("Creating signed transaction...");
|
|
3379
|
-
const S = await
|
|
3379
|
+
const S = await _r(
|
|
3380
3380
|
o,
|
|
3381
3381
|
A,
|
|
3382
3382
|
r
|
|
3383
3383
|
);
|
|
3384
3384
|
l("Transaction signed successfully");
|
|
3385
3385
|
let B, C;
|
|
3386
|
-
w === 2 ? (B =
|
|
3386
|
+
w === 2 ? (B = Lr(
|
|
3387
3387
|
S,
|
|
3388
3388
|
A,
|
|
3389
3389
|
E
|
|
3390
|
-
), C = "PAYMENT-SIGNATURE") : (B =
|
|
3390
|
+
), C = "PAYMENT-SIGNATURE") : (B = jr(
|
|
3391
3391
|
S,
|
|
3392
3392
|
A
|
|
3393
3393
|
), C = "X-PAYMENT"), l("Payment header created, length:", B.length), l("Using header:", C);
|
|
@@ -3403,11 +3403,11 @@ function Or(t, o, r, n = BigInt(0), s = !1) {
|
|
|
3403
3403
|
return l("Retry response status:", I.status), I;
|
|
3404
3404
|
};
|
|
3405
3405
|
}
|
|
3406
|
-
var
|
|
3406
|
+
var Gr = class {
|
|
3407
3407
|
paymentFetch;
|
|
3408
3408
|
constructor(t) {
|
|
3409
|
-
const o = t.rpcUrl ||
|
|
3410
|
-
this.paymentFetch =
|
|
3409
|
+
const o = t.rpcUrl || Ur(t.network), r = t.customFetch || globalThis.fetch.bind(globalThis);
|
|
3410
|
+
this.paymentFetch = Vr(
|
|
3411
3411
|
r,
|
|
3412
3412
|
t.wallet,
|
|
3413
3413
|
o,
|
|
@@ -3423,10 +3423,10 @@ var _r = class {
|
|
|
3423
3423
|
return this.paymentFetch(t, o);
|
|
3424
3424
|
}
|
|
3425
3425
|
};
|
|
3426
|
-
function
|
|
3427
|
-
return new
|
|
3426
|
+
function Kr(t) {
|
|
3427
|
+
return new Gr(t);
|
|
3428
3428
|
}
|
|
3429
|
-
function
|
|
3429
|
+
function Yr(t) {
|
|
3430
3430
|
const [o, r] = q("idle"), [n, s] = q(null), [l, i] = q(null), [u, g] = q(null), [h, x] = q(!1), w = Me(() => {
|
|
3431
3431
|
r("idle"), s(null), i(null), g(null), x(!1);
|
|
3432
3432
|
}, []);
|
|
@@ -3439,7 +3439,7 @@ function Wr(t) {
|
|
|
3439
3439
|
const N = t.wallet.publicKey?.toString() || t.wallet.address;
|
|
3440
3440
|
if (!N)
|
|
3441
3441
|
throw new Error("Wallet not connected");
|
|
3442
|
-
const E =
|
|
3442
|
+
const E = Kr({
|
|
3443
3443
|
wallet: t.wallet,
|
|
3444
3444
|
network: t.network,
|
|
3445
3445
|
rpcUrl: t.rpcUrl,
|
|
@@ -3470,8 +3470,8 @@ function Wr(t) {
|
|
|
3470
3470
|
if (!y.ok)
|
|
3471
3471
|
throw new Error(`Payment request failed: ${y.statusText}`);
|
|
3472
3472
|
let I, P = null;
|
|
3473
|
-
const
|
|
3474
|
-
if (
|
|
3473
|
+
const W = y.headers.get("content-type");
|
|
3474
|
+
if (W && W.includes("application/json"))
|
|
3475
3475
|
I = await y.json(), P = JSON.stringify(I);
|
|
3476
3476
|
else {
|
|
3477
3477
|
const j = await y.text();
|
|
@@ -3503,7 +3503,7 @@ function Wr(t) {
|
|
|
3503
3503
|
reset: w
|
|
3504
3504
|
};
|
|
3505
3505
|
}
|
|
3506
|
-
const
|
|
3506
|
+
const Ve = ({
|
|
3507
3507
|
amount: t,
|
|
3508
3508
|
description: o,
|
|
3509
3509
|
wallet: r,
|
|
@@ -3526,10 +3526,10 @@ const We = ({
|
|
|
3526
3526
|
onWalletConnect: S,
|
|
3527
3527
|
children: B
|
|
3528
3528
|
}) => {
|
|
3529
|
-
const C =
|
|
3529
|
+
const C = pt(), y = Fe(() => r || {
|
|
3530
3530
|
publicKey: C.publicKey ? { toString: () => C.publicKey.toString() } : void 0,
|
|
3531
3531
|
signTransaction: C.signTransaction
|
|
3532
|
-
}, [r, C.publicKey, C.signTransaction]), [I, P] = q(!1), [
|
|
3532
|
+
}, [r, C.publicKey, C.signTransaction]), [I, P] = q(!1), [W, k] = q("0.00"), [e, j] = q(() => u === "system" ? typeof window < "u" && window.matchMedia ? window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light" : "dark" : u), te = gt(null), $ = n === "solana" ? "Mainnet" : "Devnet", { pay: ne, isLoading: K, status: V, error: L, transactionId: _, responseContent: f, reset: ae } = Yr({
|
|
3533
3533
|
wallet: y,
|
|
3534
3534
|
network: n,
|
|
3535
3535
|
rpcUrl: s,
|
|
@@ -3562,7 +3562,7 @@ const We = ({
|
|
|
3562
3562
|
};
|
|
3563
3563
|
}, [u, e]), re(() => {
|
|
3564
3564
|
const M = C.publicKey?.toString() || r?.publicKey?.toString() || r?.address;
|
|
3565
|
-
M && C.connected && (console.log("Wallet connected:", M), S?.(M),
|
|
3565
|
+
M && C.connected && (console.log("Wallet connected:", M), S?.(M), Pt(M, n, s).then(k)), !C.connected && !r && k("0.00");
|
|
3566
3566
|
}, [
|
|
3567
3567
|
C.publicKey,
|
|
3568
3568
|
C.connected,
|
|
@@ -3572,11 +3572,11 @@ const We = ({
|
|
|
3572
3572
|
s,
|
|
3573
3573
|
S
|
|
3574
3574
|
]), re(() => {
|
|
3575
|
-
V === "success" &&
|
|
3576
|
-
}, [V,
|
|
3575
|
+
V === "success" && _ && (P(!0), N?.(_, f));
|
|
3576
|
+
}, [V, _, f, N]), re(() => {
|
|
3577
3577
|
L && E?.(L);
|
|
3578
3578
|
}, [L, E]);
|
|
3579
|
-
const
|
|
3579
|
+
const Z = async () => {
|
|
3580
3580
|
A?.(), await ne(t, o);
|
|
3581
3581
|
};
|
|
3582
3582
|
if (I)
|
|
@@ -3884,7 +3884,7 @@ const We = ({
|
|
|
3884
3884
|
...d?.card
|
|
3885
3885
|
} : d?.card,
|
|
3886
3886
|
children: [
|
|
3887
|
-
/* @__PURE__ */ m(
|
|
3887
|
+
/* @__PURE__ */ m(Ee, { className: "pb-6", children: [
|
|
3888
3888
|
/* @__PURE__ */ m(
|
|
3889
3889
|
"div",
|
|
3890
3890
|
{
|
|
@@ -3913,7 +3913,7 @@ const We = ({
|
|
|
3913
3913
|
),
|
|
3914
3914
|
/* @__PURE__ */ m("div", { children: [
|
|
3915
3915
|
/* @__PURE__ */ a(
|
|
3916
|
-
|
|
3916
|
+
Ae,
|
|
3917
3917
|
{
|
|
3918
3918
|
className: c(
|
|
3919
3919
|
"text-l fw-bold pb-1",
|
|
@@ -3924,7 +3924,7 @@ const We = ({
|
|
|
3924
3924
|
}
|
|
3925
3925
|
),
|
|
3926
3926
|
/* @__PURE__ */ a(
|
|
3927
|
-
|
|
3927
|
+
Te,
|
|
3928
3928
|
{
|
|
3929
3929
|
className: c(
|
|
3930
3930
|
"text-sm font-light",
|
|
@@ -4122,7 +4122,7 @@ const We = ({
|
|
|
4122
4122
|
)
|
|
4123
4123
|
] }),
|
|
4124
4124
|
/* @__PURE__ */ m("div", { className: "relative", children: [
|
|
4125
|
-
/* @__PURE__ */ a("div", { ref: te, className: "absolute opacity-0 pointer-events-none -z-10", children: /* @__PURE__ */ a(
|
|
4125
|
+
/* @__PURE__ */ a("div", { ref: te, className: "absolute opacity-0 pointer-events-none -z-10", children: /* @__PURE__ */ a(xt, {}) }),
|
|
4126
4126
|
/* @__PURE__ */ a(
|
|
4127
4127
|
ge,
|
|
4128
4128
|
{
|
|
@@ -4286,7 +4286,7 @@ const We = ({
|
|
|
4286
4286
|
...d?.card
|
|
4287
4287
|
} : d?.card,
|
|
4288
4288
|
children: [
|
|
4289
|
-
/* @__PURE__ */ m(
|
|
4289
|
+
/* @__PURE__ */ m(Ee, { className: "pb-6", children: [
|
|
4290
4290
|
/* @__PURE__ */ m(
|
|
4291
4291
|
"div",
|
|
4292
4292
|
{
|
|
@@ -4315,7 +4315,7 @@ const We = ({
|
|
|
4315
4315
|
),
|
|
4316
4316
|
/* @__PURE__ */ m("div", { children: [
|
|
4317
4317
|
/* @__PURE__ */ a(
|
|
4318
|
-
|
|
4318
|
+
Ae,
|
|
4319
4319
|
{
|
|
4320
4320
|
className: c("text-l fw-bold pb-1", O.title, w?.text),
|
|
4321
4321
|
style: d?.text,
|
|
@@ -4323,7 +4323,7 @@ const We = ({
|
|
|
4323
4323
|
}
|
|
4324
4324
|
),
|
|
4325
4325
|
/* @__PURE__ */ a(
|
|
4326
|
-
|
|
4326
|
+
Te,
|
|
4327
4327
|
{
|
|
4328
4328
|
className: c(
|
|
4329
4329
|
"text-sm font-light",
|
|
@@ -4372,7 +4372,7 @@ const We = ({
|
|
|
4372
4372
|
style: e === "terminal" ? { color: "#FFFFFF99" } : e === "terminal-light" ? { color: "#71717A" } : e === "seeker-light" ? { color: "#71717A" } : void 0,
|
|
4373
4373
|
children: [
|
|
4374
4374
|
"Access to protected content on Solana ",
|
|
4375
|
-
|
|
4375
|
+
$,
|
|
4376
4376
|
". To access this content, please pay $",
|
|
4377
4377
|
t.toFixed(2),
|
|
4378
4378
|
" USDC"
|
|
@@ -4487,7 +4487,7 @@ const We = ({
|
|
|
4487
4487
|
),
|
|
4488
4488
|
children: [
|
|
4489
4489
|
"$",
|
|
4490
|
-
|
|
4490
|
+
W
|
|
4491
4491
|
]
|
|
4492
4492
|
}
|
|
4493
4493
|
)
|
|
@@ -4534,7 +4534,7 @@ const We = ({
|
|
|
4534
4534
|
"text-sm",
|
|
4535
4535
|
e === "dark" || e === "solana-dark" || e === "seeker" || e === "seeker-2" ? "text-white" : "text-slate-900"
|
|
4536
4536
|
),
|
|
4537
|
-
children:
|
|
4537
|
+
children: $
|
|
4538
4538
|
}
|
|
4539
4539
|
)
|
|
4540
4540
|
] })
|
|
@@ -4587,7 +4587,7 @@ const We = ({
|
|
|
4587
4587
|
amount: t,
|
|
4588
4588
|
description: o,
|
|
4589
4589
|
onClick: () => {
|
|
4590
|
-
ae(),
|
|
4590
|
+
ae(), Z();
|
|
4591
4591
|
},
|
|
4592
4592
|
loading: K,
|
|
4593
4593
|
disabled: K || !y?.publicKey,
|
|
@@ -4681,7 +4681,7 @@ const We = ({
|
|
|
4681
4681
|
) })
|
|
4682
4682
|
] }) : /* @__PURE__ */ m(ye, { children: [
|
|
4683
4683
|
/* @__PURE__ */ a(
|
|
4684
|
-
|
|
4684
|
+
ut,
|
|
4685
4685
|
{
|
|
4686
4686
|
wallet: y,
|
|
4687
4687
|
onDisconnect: le,
|
|
@@ -4734,7 +4734,7 @@ const We = ({
|
|
|
4734
4734
|
/* @__PURE__ */ a("span", { className: "text-sm text-white", children: "Available Balance" }),
|
|
4735
4735
|
/* @__PURE__ */ m("div", { className: "text-sm text-white", children: [
|
|
4736
4736
|
"$",
|
|
4737
|
-
|
|
4737
|
+
W
|
|
4738
4738
|
] })
|
|
4739
4739
|
] }),
|
|
4740
4740
|
/* @__PURE__ */ m("div", { className: "flex items-center justify-between", children: [
|
|
@@ -4751,7 +4751,7 @@ const We = ({
|
|
|
4751
4751
|
style: { backgroundColor: "#95D2E6" }
|
|
4752
4752
|
}
|
|
4753
4753
|
),
|
|
4754
|
-
/* @__PURE__ */ a("span", { className: "text-sm text-white", children:
|
|
4754
|
+
/* @__PURE__ */ a("span", { className: "text-sm text-white", children: $ })
|
|
4755
4755
|
] })
|
|
4756
4756
|
] })
|
|
4757
4757
|
] })
|
|
@@ -4854,7 +4854,7 @@ const We = ({
|
|
|
4854
4854
|
),
|
|
4855
4855
|
children: [
|
|
4856
4856
|
"$",
|
|
4857
|
-
|
|
4857
|
+
W
|
|
4858
4858
|
]
|
|
4859
4859
|
}
|
|
4860
4860
|
)
|
|
@@ -4910,7 +4910,7 @@ const We = ({
|
|
|
4910
4910
|
"text-sm",
|
|
4911
4911
|
e === "dark" || e === "solana-dark" ? "text-white" : e === "terminal-light" ? "text-black font-vt323" : e === "seeker-light" ? "text-black" : e === "terminal" ? "text-white font-vt323" : "text-slate-900"
|
|
4912
4912
|
),
|
|
4913
|
-
children:
|
|
4913
|
+
children: $
|
|
4914
4914
|
}
|
|
4915
4915
|
)
|
|
4916
4916
|
] })
|
|
@@ -4952,7 +4952,7 @@ const We = ({
|
|
|
4952
4952
|
{
|
|
4953
4953
|
amount: t,
|
|
4954
4954
|
description: o,
|
|
4955
|
-
onClick:
|
|
4955
|
+
onClick: Z,
|
|
4956
4956
|
loading: K,
|
|
4957
4957
|
disabled: K || !y?.publicKey,
|
|
4958
4958
|
className: c(
|
|
@@ -5045,20 +5045,20 @@ const We = ({
|
|
|
5045
5045
|
]
|
|
5046
5046
|
}
|
|
5047
5047
|
);
|
|
5048
|
-
},
|
|
5048
|
+
}, qr = ({
|
|
5049
5049
|
autoSetupProviders: t = !0,
|
|
5050
5050
|
providerNetwork: o,
|
|
5051
5051
|
providerEndpoint: r,
|
|
5052
5052
|
...n
|
|
5053
5053
|
}) => {
|
|
5054
|
-
const s = o ?? (n.network === "solana" ? Se.Mainnet : Se.Devnet), l =
|
|
5055
|
-
() => r || n.rpcUrl ||
|
|
5054
|
+
const s = o ?? (n.network === "solana" ? Se.Mainnet : Se.Devnet), l = Fe(
|
|
5055
|
+
() => r || n.rpcUrl || Ft(s),
|
|
5056
5056
|
[r, n.rpcUrl, s]
|
|
5057
|
-
), i =
|
|
5058
|
-
return t ? /* @__PURE__ */ a(
|
|
5057
|
+
), i = Fe(() => [new kt(), new wt()], []);
|
|
5058
|
+
return t ? /* @__PURE__ */ a(ht, { endpoint: l, children: /* @__PURE__ */ a(bt, { wallets: i, autoConnect: !0, children: /* @__PURE__ */ a(ft, { children: /* @__PURE__ */ a(Ve, { ...n }) }) }) }) : /* @__PURE__ */ a(Ve, { ...n });
|
|
5059
5059
|
};
|
|
5060
|
-
|
|
5061
|
-
const
|
|
5060
|
+
qr.displayName = "X402Paywall";
|
|
5061
|
+
const Hr = ({
|
|
5062
5062
|
status: t,
|
|
5063
5063
|
message: o,
|
|
5064
5064
|
progress: r,
|
|
@@ -5141,7 +5141,7 @@ const Gr = ({
|
|
|
5141
5141
|
})();
|
|
5142
5142
|
return /* @__PURE__ */ m("div", { className: c("flex flex-col gap-2", n), style: s, children: [
|
|
5143
5143
|
/* @__PURE__ */ m("div", { className: "flex items-center gap-2", children: [
|
|
5144
|
-
/* @__PURE__ */ m(
|
|
5144
|
+
/* @__PURE__ */ m(mt, { className: c("flex items-center gap-1.5", i.color), children: [
|
|
5145
5145
|
i.icon,
|
|
5146
5146
|
/* @__PURE__ */ a("span", { children: i.label })
|
|
5147
5147
|
] }),
|
|
@@ -5156,21 +5156,21 @@ const Gr = ({
|
|
|
5156
5156
|
) })
|
|
5157
5157
|
] });
|
|
5158
5158
|
};
|
|
5159
|
-
|
|
5159
|
+
Hr.displayName = "PaymentStatus";
|
|
5160
5160
|
export {
|
|
5161
|
-
|
|
5162
|
-
|
|
5161
|
+
mt as Badge,
|
|
5162
|
+
dt as Button,
|
|
5163
5163
|
be as Card,
|
|
5164
5164
|
pe as CardContent,
|
|
5165
|
-
|
|
5166
|
-
|
|
5167
|
-
|
|
5165
|
+
Te as CardDescription,
|
|
5166
|
+
Ee as CardHeader,
|
|
5167
|
+
Ae as CardTitle,
|
|
5168
5168
|
ge as PaymentButton,
|
|
5169
|
-
|
|
5169
|
+
Hr as PaymentStatus,
|
|
5170
5170
|
xe as Spinner,
|
|
5171
|
-
|
|
5172
|
-
|
|
5171
|
+
ut as WalletSection,
|
|
5172
|
+
qr as X402Paywall,
|
|
5173
5173
|
c as cn,
|
|
5174
|
-
|
|
5174
|
+
Yr as useX402Payment
|
|
5175
5175
|
};
|
|
5176
5176
|
//# sourceMappingURL=index.mjs.map
|