@payai/x402-solana-react 1.0.2 → 1.0.4

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.mjs CHANGED
@@ -1,80 +1,80 @@
1
- var We = Object.defineProperty;
2
- var _e = (r, n, t) => n in r ? We(r, n, { enumerable: !0, configurable: !0, writable: !0, value: t }) : r[n] = t;
3
- var ke = (r, n, t) => _e(r, typeof n != "symbol" ? n + "" : n, t);
4
- import { jsx as a, jsxs as b, Fragment as ie } from "react/jsx-runtime";
5
- import * as A from "react";
6
- import { useState as X, useCallback as ve, useMemo as de, useRef as Oe, useEffect as re } from "react";
7
- import { ConnectionProvider as He, WalletProvider as Xe, useWallet as Je } from "@solana/wallet-adapter-react";
8
- import { WalletModalProvider as Ye, WalletMultiButton as Ze } from "@solana/wallet-adapter-react-ui";
9
- import { WalletAdapterNetwork as ye } from "@solana/wallet-adapter-base";
10
- import { PhantomWalletAdapter as qe, SolflareWalletAdapter as Se } from "@solana/wallet-adapter-wallets";
11
- import { Connection as je, PublicKey as W, ComputeBudgetProgram as Ne, TransactionInstruction as Qe, SystemProgram as er, TransactionMessage as rr, VersionedTransaction as tr, clusterApiUrl as nr } from "@solana/web3.js";
12
- import { getAssociatedTokenAddress as ce, getAccount as ar, TOKEN_2022_PROGRAM_ID as Ce, TOKEN_PROGRAM_ID as or, getMint as sr, createTransferCheckedInstruction as ir } from "@solana/spl-token";
13
- function lr(r) {
1
+ var _e = Object.defineProperty;
2
+ var Oe = (r, n, t) => n in r ? _e(r, n, { enumerable: !0, configurable: !0, writable: !0, value: t }) : r[n] = t;
3
+ var ve = (r, n, t) => Oe(r, typeof n != "symbol" ? n + "" : n, t);
4
+ import { jsx as a, jsxs as b, Fragment as le } from "react/jsx-runtime";
5
+ import * as F from "react";
6
+ import { useState as J, useCallback as ye, useMemo as ce, useRef as He, useEffect as ne } from "react";
7
+ import { ConnectionProvider as Xe, WalletProvider as Je, useWallet as Ye } from "@solana/wallet-adapter-react";
8
+ import { WalletModalProvider as Ze, WalletMultiButton as qe } from "@solana/wallet-adapter-react-ui";
9
+ import { WalletAdapterNetwork as Ne } from "@solana/wallet-adapter-base";
10
+ import { PhantomWalletAdapter as Qe, SolflareWalletAdapter as Se } from "@solana/wallet-adapter-wallets";
11
+ import { Connection as De, PublicKey as H, ComputeBudgetProgram as Ce, TransactionInstruction as er, SystemProgram as rr, TransactionMessage as tr, VersionedTransaction as nr, clusterApiUrl as ar } from "@solana/web3.js";
12
+ import { getAssociatedTokenAddress as ue, getAccount as or, TOKEN_2022_PROGRAM_ID as Fe, TOKEN_PROGRAM_ID as sr, getMint as ir, createTransferCheckedInstruction as lr } from "@solana/spl-token";
13
+ function dr(r) {
14
14
  return r === "solana" ? "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v" : "4zMMC9srt5Ri5X14GAgXhaHii3GnPAEERYPJgZJDncDU";
15
15
  }
16
- function dr(r) {
16
+ function cr(r) {
17
17
  return r === "solana" ? `https://mainnet.helius-rpc.com/?api-key=${process.env.VITE_HELIUS_API_KEY}` : "https://api.devnet.solana.com";
18
18
  }
19
- async function cr(r, n, t) {
19
+ async function ur(r, n, t) {
20
20
  try {
21
- const o = t || dr(n), i = new je(o, "confirmed"), l = new W(r), u = new W(lr(n)), c = await ce(
21
+ const o = t || cr(n), i = new De(o, "confirmed"), l = new H(r), u = new H(dr(n)), c = await ue(
22
22
  u,
23
23
  l
24
- ), e = await ar(i, c);
24
+ ), e = await or(i, c);
25
25
  return (Number(e.amount) / 1e6).toFixed(2);
26
26
  } catch (o) {
27
27
  return console.error("Error fetching USDC balance:", o), "0.00";
28
28
  }
29
29
  }
30
- function De(r) {
30
+ function ze(r) {
31
31
  var n, t, o = "";
32
32
  if (typeof r == "string" || typeof r == "number") o += r;
33
33
  else if (typeof r == "object") if (Array.isArray(r)) {
34
34
  var i = r.length;
35
- for (n = 0; n < i; n++) r[n] && (t = De(r[n])) && (o && (o += " "), o += t);
35
+ for (n = 0; n < i; n++) r[n] && (t = ze(r[n])) && (o && (o += " "), o += t);
36
36
  } else for (t in r) r[t] && (o && (o += " "), o += t);
37
37
  return o;
38
38
  }
39
- function ze() {
40
- for (var r, n, t = 0, o = "", i = arguments.length; t < i; t++) (r = arguments[t]) && (n = De(r)) && (o && (o += " "), o += n);
39
+ function Ie() {
40
+ for (var r, n, t = 0, o = "", i = arguments.length; t < i; t++) (r = arguments[t]) && (n = ze(r)) && (o && (o += " "), o += n);
41
41
  return o;
42
42
  }
43
- const fe = "-", ur = (r) => {
44
- const n = gr(r), {
43
+ const xe = "-", br = (r) => {
44
+ const n = pr(r), {
45
45
  conflictingClassGroups: t,
46
46
  conflictingClassGroupModifiers: o
47
47
  } = r;
48
48
  return {
49
49
  getClassGroupId: (u) => {
50
- const c = u.split(fe);
51
- return c[0] === "" && c.length !== 1 && c.shift(), Ie(c, n) || br(u);
50
+ const c = u.split(xe);
51
+ return c[0] === "" && c.length !== 1 && c.shift(), Le(c, n) || gr(u);
52
52
  },
53
53
  getConflictingClassGroupIds: (u, c) => {
54
54
  const e = t[u] || [];
55
55
  return c && o[u] ? [...e, ...o[u]] : e;
56
56
  }
57
57
  };
58
- }, Ie = (r, n) => {
58
+ }, Le = (r, n) => {
59
59
  var u;
60
60
  if (r.length === 0)
61
61
  return n.classGroupId;
62
- const t = r[0], o = n.nextPart.get(t), i = o ? Ie(r.slice(1), o) : void 0;
62
+ const t = r[0], o = n.nextPart.get(t), i = o ? Le(r.slice(1), o) : void 0;
63
63
  if (i)
64
64
  return i;
65
65
  if (n.validators.length === 0)
66
66
  return;
67
- const l = r.join(fe);
67
+ const l = r.join(xe);
68
68
  return (u = n.validators.find(({
69
69
  validator: c
70
70
  }) => c(l))) == null ? void 0 : u.classGroupId;
71
- }, Fe = /^\[(.+)\]$/, br = (r) => {
72
- if (Fe.test(r)) {
73
- const n = Fe.exec(r)[1], t = n == null ? void 0 : n.substring(0, n.indexOf(":"));
71
+ }, Ae = /^\[(.+)\]$/, gr = (r) => {
72
+ if (Ae.test(r)) {
73
+ const n = Ae.exec(r)[1], t = n == null ? void 0 : n.substring(0, n.indexOf(":"));
74
74
  if (t)
75
75
  return "arbitrary.." + t;
76
76
  }
77
- }, gr = (r) => {
77
+ }, pr = (r) => {
78
78
  const {
79
79
  theme: n,
80
80
  prefix: t
@@ -82,19 +82,19 @@ const fe = "-", ur = (r) => {
82
82
  nextPart: /* @__PURE__ */ new Map(),
83
83
  validators: []
84
84
  };
85
- return fr(Object.entries(r.classGroups), t).forEach(([l, u]) => {
86
- ue(u, o, l, n);
85
+ return xr(Object.entries(r.classGroups), t).forEach(([l, u]) => {
86
+ be(u, o, l, n);
87
87
  }), o;
88
- }, ue = (r, n, t, o) => {
88
+ }, be = (r, n, t, o) => {
89
89
  r.forEach((i) => {
90
90
  if (typeof i == "string") {
91
- const l = i === "" ? n : Ae(n, i);
91
+ const l = i === "" ? n : Me(n, i);
92
92
  l.classGroupId = t;
93
93
  return;
94
94
  }
95
95
  if (typeof i == "function") {
96
- if (pr(i)) {
97
- ue(i(o), n, t, o);
96
+ if (fr(i)) {
97
+ be(i(o), n, t, o);
98
98
  return;
99
99
  }
100
100
  n.validators.push({
@@ -104,21 +104,21 @@ const fe = "-", ur = (r) => {
104
104
  return;
105
105
  }
106
106
  Object.entries(i).forEach(([l, u]) => {
107
- ue(u, Ae(n, l), t, o);
107
+ be(u, Me(n, l), t, o);
108
108
  });
109
109
  });
110
- }, Ae = (r, n) => {
110
+ }, Me = (r, n) => {
111
111
  let t = r;
112
- return n.split(fe).forEach((o) => {
112
+ return n.split(xe).forEach((o) => {
113
113
  t.nextPart.has(o) || t.nextPart.set(o, {
114
114
  nextPart: /* @__PURE__ */ new Map(),
115
115
  validators: []
116
116
  }), t = t.nextPart.get(o);
117
117
  }), t;
118
- }, pr = (r) => r.isThemeGetter, fr = (r, n) => n ? r.map(([t, o]) => {
118
+ }, fr = (r) => r.isThemeGetter, xr = (r, n) => n ? r.map(([t, o]) => {
119
119
  const i = o.map((l) => typeof l == "string" ? n + l : typeof l == "object" ? Object.fromEntries(Object.entries(l).map(([u, c]) => [n + u, c])) : l);
120
120
  return [t, i];
121
- }) : r, xr = (r) => {
121
+ }) : r, hr = (r) => {
122
122
  if (r < 1)
123
123
  return {
124
124
  get: () => {
@@ -142,40 +142,40 @@ const fe = "-", ur = (r) => {
142
142
  t.has(l) ? t.set(l, u) : i(l, u);
143
143
  }
144
144
  };
145
- }, Le = "!", hr = (r) => {
145
+ }, Re = "!", wr = (r) => {
146
146
  const {
147
147
  separator: n,
148
148
  experimentalParseClassName: t
149
149
  } = r, o = n.length === 1, i = n[0], l = n.length, u = (c) => {
150
150
  const e = [];
151
- let f = 0, x = 0, g;
152
- for (let w = 0; w < c.length; w++) {
153
- let N = c[w];
154
- if (f === 0) {
155
- if (N === i && (o || c.slice(w, w + l) === n)) {
156
- e.push(c.slice(x, w)), x = w + l;
151
+ let p = 0, h = 0, x;
152
+ for (let m = 0; m < c.length; m++) {
153
+ let N = c[m];
154
+ if (p === 0) {
155
+ if (N === i && (o || c.slice(m, m + l) === n)) {
156
+ e.push(c.slice(h, m)), h = m + l;
157
157
  continue;
158
158
  }
159
159
  if (N === "/") {
160
- g = w;
160
+ x = m;
161
161
  continue;
162
162
  }
163
163
  }
164
- N === "[" ? f++ : N === "]" && f--;
164
+ N === "[" ? p++ : N === "]" && p--;
165
165
  }
166
- const s = e.length === 0 ? c : c.substring(x), y = s.startsWith(Le), F = y ? s.substring(1) : s, m = g && g > x ? g - x : void 0;
166
+ const g = e.length === 0 ? c : c.substring(h), s = g.startsWith(Re), A = s ? g.substring(1) : g, k = x && x > h ? x - h : void 0;
167
167
  return {
168
168
  modifiers: e,
169
- hasImportantModifier: y,
170
- baseClassName: F,
171
- maybePostfixModifierPosition: m
169
+ hasImportantModifier: s,
170
+ baseClassName: A,
171
+ maybePostfixModifierPosition: k
172
172
  };
173
173
  };
174
174
  return t ? (c) => t({
175
175
  className: c,
176
176
  parseClassName: u
177
177
  }) : u;
178
- }, wr = (r) => {
178
+ }, mr = (r) => {
179
179
  if (r.length <= 1)
180
180
  return r;
181
181
  const n = [];
@@ -183,122 +183,122 @@ const fe = "-", ur = (r) => {
183
183
  return r.forEach((o) => {
184
184
  o[0] === "[" ? (n.push(...t.sort(), o), t = []) : t.push(o);
185
185
  }), n.push(...t.sort()), n;
186
- }, mr = (r) => ({
187
- cache: xr(r.cacheSize),
188
- parseClassName: hr(r),
189
- ...ur(r)
190
- }), kr = /\s+/, vr = (r, n) => {
186
+ }, kr = (r) => ({
187
+ cache: hr(r.cacheSize),
188
+ parseClassName: wr(r),
189
+ ...br(r)
190
+ }), vr = /\s+/, yr = (r, n) => {
191
191
  const {
192
192
  parseClassName: t,
193
193
  getClassGroupId: o,
194
194
  getConflictingClassGroupIds: i
195
- } = n, l = [], u = r.trim().split(kr);
195
+ } = n, l = [], u = r.trim().split(vr);
196
196
  let c = "";
197
197
  for (let e = u.length - 1; e >= 0; e -= 1) {
198
- const f = u[e], {
199
- modifiers: x,
200
- hasImportantModifier: g,
201
- baseClassName: s,
202
- maybePostfixModifierPosition: y
203
- } = t(f);
204
- let F = !!y, m = o(F ? s.substring(0, y) : s);
205
- if (!m) {
206
- if (!F) {
207
- c = f + (c.length > 0 ? " " + c : c);
198
+ const p = u[e], {
199
+ modifiers: h,
200
+ hasImportantModifier: x,
201
+ baseClassName: g,
202
+ maybePostfixModifierPosition: s
203
+ } = t(p);
204
+ let A = !!s, k = o(A ? g.substring(0, s) : g);
205
+ if (!k) {
206
+ if (!A) {
207
+ c = p + (c.length > 0 ? " " + c : c);
208
208
  continue;
209
209
  }
210
- if (m = o(s), !m) {
211
- c = f + (c.length > 0 ? " " + c : c);
210
+ if (k = o(g), !k) {
211
+ c = p + (c.length > 0 ? " " + c : c);
212
212
  continue;
213
213
  }
214
- F = !1;
214
+ A = !1;
215
215
  }
216
- const w = wr(x).join(":"), N = g ? w + Le : w, T = N + m;
217
- if (l.includes(T))
216
+ const m = mr(h).join(":"), N = x ? m + Re : m, M = N + k;
217
+ if (l.includes(M))
218
218
  continue;
219
- l.push(T);
220
- const k = i(m, F);
221
- for (let p = 0; p < k.length; ++p) {
222
- const D = k[p];
223
- l.push(N + D);
219
+ l.push(M);
220
+ const T = i(k, A);
221
+ for (let v = 0; v < T.length; ++v) {
222
+ const f = T[v];
223
+ l.push(N + f);
224
224
  }
225
- c = f + (c.length > 0 ? " " + c : c);
225
+ c = p + (c.length > 0 ? " " + c : c);
226
226
  }
227
227
  return c;
228
228
  };
229
- function yr() {
229
+ function Nr() {
230
230
  let r = 0, n, t, o = "";
231
231
  for (; r < arguments.length; )
232
- (n = arguments[r++]) && (t = Re(n)) && (o && (o += " "), o += t);
232
+ (n = arguments[r++]) && (t = Be(n)) && (o && (o += " "), o += t);
233
233
  return o;
234
234
  }
235
- const Re = (r) => {
235
+ const Be = (r) => {
236
236
  if (typeof r == "string")
237
237
  return r;
238
238
  let n, t = "";
239
239
  for (let o = 0; o < r.length; o++)
240
- r[o] && (n = Re(r[o])) && (t && (t += " "), t += n);
240
+ r[o] && (n = Be(r[o])) && (t && (t += " "), t += n);
241
241
  return t;
242
242
  };
243
- function Nr(r, ...n) {
243
+ function Cr(r, ...n) {
244
244
  let t, o, i, l = u;
245
245
  function u(e) {
246
- const f = n.reduce((x, g) => g(x), r());
247
- return t = mr(f), o = t.cache.get, i = t.cache.set, l = c, c(e);
246
+ const p = n.reduce((h, x) => x(h), r());
247
+ return t = kr(p), o = t.cache.get, i = t.cache.set, l = c, c(e);
248
248
  }
249
249
  function c(e) {
250
- const f = o(e);
251
- if (f)
252
- return f;
253
- const x = vr(e, t);
254
- return i(e, x), x;
250
+ const p = o(e);
251
+ if (p)
252
+ return p;
253
+ const h = yr(e, t);
254
+ return i(e, h), h;
255
255
  }
256
256
  return function() {
257
- return l(yr.apply(null, arguments));
257
+ return l(Nr.apply(null, arguments));
258
258
  };
259
259
  }
260
260
  const C = (r) => {
261
261
  const n = (t) => t[r] || [];
262
262
  return n.isThemeGetter = !0, n;
263
- }, Be = /^\[(?:([a-z-]+):)?(.+)\]$/i, Cr = /^\d+\/\d+$/, Fr = /* @__PURE__ */ new Set(["px", "full", "screen"]), Ar = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, Mr = /\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$/, Tr = /^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/, Er = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, Pr = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, B = (r) => J(r) || Fr.has(r) || Cr.test(r), V = (r) => Y(r, "length", $r), J = (r) => !!r && !Number.isNaN(Number(r)), le = (r) => Y(r, "number", J), q = (r) => !!r && Number.isInteger(Number(r)), jr = (r) => r.endsWith("%") && J(r.slice(0, -1)), h = (r) => Be.test(r), K = (r) => Ar.test(r), Dr = /* @__PURE__ */ new Set(["length", "size", "percentage"]), zr = (r) => Y(r, Dr, $e), Ir = (r) => Y(r, "position", $e), Lr = /* @__PURE__ */ new Set(["image", "url"]), Rr = (r) => Y(r, Lr, Gr), Br = (r) => Y(r, "", Ur), S = () => !0, Y = (r, n, t) => {
264
- const o = Be.exec(r);
263
+ }, $e = /^\[(?:([a-z-]+):)?(.+)\]$/i, Fr = /^\d+\/\d+$/, Ar = /* @__PURE__ */ new Set(["px", "full", "screen"]), Mr = /^(\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$/, Er = /^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/, Pr = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, jr = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, G = (r) => Y(r) || Ar.has(r) || Fr.test(r), V = (r) => Z(r, "length", Gr), Y = (r) => !!r && !Number.isNaN(Number(r)), de = (r) => Z(r, "number", Y), ee = (r) => !!r && Number.isInteger(Number(r)), Dr = (r) => r.endsWith("%") && Y(r.slice(0, -1)), w = (r) => $e.test(r), K = (r) => Mr.test(r), zr = /* @__PURE__ */ new Set(["length", "size", "percentage"]), Ir = (r) => Z(r, zr, Ge), Lr = (r) => Z(r, "position", Ge), Rr = /* @__PURE__ */ new Set(["image", "url"]), Br = (r) => Z(r, Rr, Vr), $r = (r) => Z(r, "", Ur), re = () => !0, Z = (r, n, t) => {
264
+ const o = $e.exec(r);
265
265
  return o ? o[1] ? typeof n == "string" ? o[1] === n : n.has(o[1]) : t(o[2]) : !1;
266
- }, $r = (r) => (
266
+ }, Gr = (r) => (
267
267
  // `colorFunctionRegex` check is necessary because color functions can have percentages in them which which would be incorrectly classified as lengths.
268
268
  // For example, `hsl(0 0% 0%)` would be classified as a length without this check.
269
269
  // I could also use lookbehind assertion in `lengthUnitRegex` but that isn't supported widely enough.
270
- Mr.test(r) && !Tr.test(r)
271
- ), $e = () => !1, Ur = (r) => Er.test(r), Gr = (r) => Pr.test(r), Vr = () => {
272
- const r = C("colors"), n = C("spacing"), t = C("blur"), o = C("brightness"), i = C("borderColor"), l = C("borderRadius"), u = C("borderSpacing"), c = C("borderWidth"), e = C("contrast"), f = C("grayscale"), x = C("hueRotate"), g = C("invert"), s = C("gap"), y = C("gradientColorStops"), F = C("gradientColorStopPositions"), m = C("inset"), w = C("margin"), N = C("opacity"), T = C("padding"), k = C("saturate"), p = C("scale"), D = C("sepia"), I = C("skew"), P = C("space"), E = C("translate"), L = () => ["auto", "contain", "none"], $ = () => ["auto", "hidden", "clip", "visible", "scroll"], z = () => ["auto", h, n], v = () => [h, n], j = () => ["", B, V], U = () => ["auto", J, h], Q = () => ["bottom", "center", "left", "left-bottom", "left-top", "right", "right-bottom", "right-top", "top"], _ = () => ["solid", "dashed", "dotted", "double", "none"], ee = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], O = () => ["start", "end", "center", "between", "around", "evenly", "stretch"], G = () => ["", "0", h], se = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], M = () => [J, h];
270
+ Tr.test(r) && !Er.test(r)
271
+ ), Ge = () => !1, Ur = (r) => Pr.test(r), Vr = (r) => jr.test(r), Kr = () => {
272
+ const r = C("colors"), n = C("spacing"), t = C("blur"), o = C("brightness"), i = C("borderColor"), l = C("borderRadius"), u = C("borderSpacing"), c = C("borderWidth"), e = C("contrast"), p = C("grayscale"), h = C("hueRotate"), x = C("invert"), g = C("gap"), s = C("gradientColorStops"), A = C("gradientColorStopPositions"), k = C("inset"), m = C("margin"), N = C("opacity"), M = C("padding"), T = C("saturate"), v = C("scale"), f = C("sepia"), z = C("skew"), D = C("space"), E = C("translate"), I = () => ["auto", "contain", "none"], L = () => ["auto", "hidden", "clip", "visible", "scroll"], R = () => ["auto", w, n], y = () => [w, n], W = () => ["", G, V], _ = () => ["auto", Y, w], P = () => ["bottom", "center", "left", "left-bottom", "left-top", "right", "right-bottom", "right-top", "top"], U = () => ["solid", "dashed", "dotted", "double", "none"], te = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], q = () => ["start", "end", "center", "between", "around", "evenly", "stretch"], O = () => ["", "0", w], Q = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], j = () => [Y, w];
273
273
  return {
274
274
  cacheSize: 500,
275
275
  separator: ":",
276
276
  theme: {
277
- colors: [S],
278
- spacing: [B, V],
279
- blur: ["none", "", K, h],
280
- brightness: M(),
277
+ colors: [re],
278
+ spacing: [G, V],
279
+ blur: ["none", "", K, w],
280
+ brightness: j(),
281
281
  borderColor: [r],
282
- borderRadius: ["none", "", "full", K, h],
283
- borderSpacing: v(),
284
- borderWidth: j(),
285
- contrast: M(),
286
- grayscale: G(),
287
- hueRotate: M(),
288
- invert: G(),
289
- gap: v(),
282
+ borderRadius: ["none", "", "full", K, w],
283
+ borderSpacing: y(),
284
+ borderWidth: W(),
285
+ contrast: j(),
286
+ grayscale: O(),
287
+ hueRotate: j(),
288
+ invert: O(),
289
+ gap: y(),
290
290
  gradientColorStops: [r],
291
- gradientColorStopPositions: [jr, V],
292
- inset: z(),
293
- margin: z(),
294
- opacity: M(),
295
- padding: v(),
296
- saturate: M(),
297
- scale: M(),
298
- sepia: G(),
299
- skew: M(),
300
- space: v(),
301
- translate: v()
291
+ gradientColorStopPositions: [Dr, V],
292
+ inset: R(),
293
+ margin: R(),
294
+ opacity: j(),
295
+ padding: y(),
296
+ saturate: j(),
297
+ scale: j(),
298
+ sepia: O(),
299
+ skew: j(),
300
+ space: y(),
301
+ translate: y()
302
302
  },
303
303
  classGroups: {
304
304
  // Layout
@@ -307,7 +307,7 @@ const C = (r) => {
307
307
  * @see https://tailwindcss.com/docs/aspect-ratio
308
308
  */
309
309
  aspect: [{
310
- aspect: ["auto", "square", "video", h]
310
+ aspect: ["auto", "square", "video", w]
311
311
  }],
312
312
  /**
313
313
  * Container
@@ -326,14 +326,14 @@ const C = (r) => {
326
326
  * @see https://tailwindcss.com/docs/break-after
327
327
  */
328
328
  "break-after": [{
329
- "break-after": se()
329
+ "break-after": Q()
330
330
  }],
331
331
  /**
332
332
  * Break Before
333
333
  * @see https://tailwindcss.com/docs/break-before
334
334
  */
335
335
  "break-before": [{
336
- "break-before": se()
336
+ "break-before": Q()
337
337
  }],
338
338
  /**
339
339
  * Break Inside
@@ -392,49 +392,49 @@ const C = (r) => {
392
392
  * @see https://tailwindcss.com/docs/object-position
393
393
  */
394
394
  "object-position": [{
395
- object: [...Q(), h]
395
+ object: [...P(), w]
396
396
  }],
397
397
  /**
398
398
  * Overflow
399
399
  * @see https://tailwindcss.com/docs/overflow
400
400
  */
401
401
  overflow: [{
402
- overflow: $()
402
+ overflow: L()
403
403
  }],
404
404
  /**
405
405
  * Overflow X
406
406
  * @see https://tailwindcss.com/docs/overflow
407
407
  */
408
408
  "overflow-x": [{
409
- "overflow-x": $()
409
+ "overflow-x": L()
410
410
  }],
411
411
  /**
412
412
  * Overflow Y
413
413
  * @see https://tailwindcss.com/docs/overflow
414
414
  */
415
415
  "overflow-y": [{
416
- "overflow-y": $()
416
+ "overflow-y": L()
417
417
  }],
418
418
  /**
419
419
  * Overscroll Behavior
420
420
  * @see https://tailwindcss.com/docs/overscroll-behavior
421
421
  */
422
422
  overscroll: [{
423
- overscroll: L()
423
+ overscroll: I()
424
424
  }],
425
425
  /**
426
426
  * Overscroll Behavior X
427
427
  * @see https://tailwindcss.com/docs/overscroll-behavior
428
428
  */
429
429
  "overscroll-x": [{
430
- "overscroll-x": L()
430
+ "overscroll-x": I()
431
431
  }],
432
432
  /**
433
433
  * Overscroll Behavior Y
434
434
  * @see https://tailwindcss.com/docs/overscroll-behavior
435
435
  */
436
436
  "overscroll-y": [{
437
- "overscroll-y": L()
437
+ "overscroll-y": I()
438
438
  }],
439
439
  /**
440
440
  * Position
@@ -446,63 +446,63 @@ const C = (r) => {
446
446
  * @see https://tailwindcss.com/docs/top-right-bottom-left
447
447
  */
448
448
  inset: [{
449
- inset: [m]
449
+ inset: [k]
450
450
  }],
451
451
  /**
452
452
  * Right / Left
453
453
  * @see https://tailwindcss.com/docs/top-right-bottom-left
454
454
  */
455
455
  "inset-x": [{
456
- "inset-x": [m]
456
+ "inset-x": [k]
457
457
  }],
458
458
  /**
459
459
  * Top / Bottom
460
460
  * @see https://tailwindcss.com/docs/top-right-bottom-left
461
461
  */
462
462
  "inset-y": [{
463
- "inset-y": [m]
463
+ "inset-y": [k]
464
464
  }],
465
465
  /**
466
466
  * Start
467
467
  * @see https://tailwindcss.com/docs/top-right-bottom-left
468
468
  */
469
469
  start: [{
470
- start: [m]
470
+ start: [k]
471
471
  }],
472
472
  /**
473
473
  * End
474
474
  * @see https://tailwindcss.com/docs/top-right-bottom-left
475
475
  */
476
476
  end: [{
477
- end: [m]
477
+ end: [k]
478
478
  }],
479
479
  /**
480
480
  * Top
481
481
  * @see https://tailwindcss.com/docs/top-right-bottom-left
482
482
  */
483
483
  top: [{
484
- top: [m]
484
+ top: [k]
485
485
  }],
486
486
  /**
487
487
  * Right
488
488
  * @see https://tailwindcss.com/docs/top-right-bottom-left
489
489
  */
490
490
  right: [{
491
- right: [m]
491
+ right: [k]
492
492
  }],
493
493
  /**
494
494
  * Bottom
495
495
  * @see https://tailwindcss.com/docs/top-right-bottom-left
496
496
  */
497
497
  bottom: [{
498
- bottom: [m]
498
+ bottom: [k]
499
499
  }],
500
500
  /**
501
501
  * Left
502
502
  * @see https://tailwindcss.com/docs/top-right-bottom-left
503
503
  */
504
504
  left: [{
505
- left: [m]
505
+ left: [k]
506
506
  }],
507
507
  /**
508
508
  * Visibility
@@ -514,7 +514,7 @@ const C = (r) => {
514
514
  * @see https://tailwindcss.com/docs/z-index
515
515
  */
516
516
  z: [{
517
- z: ["auto", q, h]
517
+ z: ["auto", ee, w]
518
518
  }],
519
519
  // Flexbox and Grid
520
520
  /**
@@ -522,7 +522,7 @@ const C = (r) => {
522
522
  * @see https://tailwindcss.com/docs/flex-basis
523
523
  */
524
524
  basis: [{
525
- basis: z()
525
+ basis: R()
526
526
  }],
527
527
  /**
528
528
  * Flex Direction
@@ -543,35 +543,35 @@ const C = (r) => {
543
543
  * @see https://tailwindcss.com/docs/flex
544
544
  */
545
545
  flex: [{
546
- flex: ["1", "auto", "initial", "none", h]
546
+ flex: ["1", "auto", "initial", "none", w]
547
547
  }],
548
548
  /**
549
549
  * Flex Grow
550
550
  * @see https://tailwindcss.com/docs/flex-grow
551
551
  */
552
552
  grow: [{
553
- grow: G()
553
+ grow: O()
554
554
  }],
555
555
  /**
556
556
  * Flex Shrink
557
557
  * @see https://tailwindcss.com/docs/flex-shrink
558
558
  */
559
559
  shrink: [{
560
- shrink: G()
560
+ shrink: O()
561
561
  }],
562
562
  /**
563
563
  * Order
564
564
  * @see https://tailwindcss.com/docs/order
565
565
  */
566
566
  order: [{
567
- order: ["first", "last", "none", q, h]
567
+ order: ["first", "last", "none", ee, w]
568
568
  }],
569
569
  /**
570
570
  * Grid Template Columns
571
571
  * @see https://tailwindcss.com/docs/grid-template-columns
572
572
  */
573
573
  "grid-cols": [{
574
- "grid-cols": [S]
574
+ "grid-cols": [re]
575
575
  }],
576
576
  /**
577
577
  * Grid Column Start / End
@@ -579,29 +579,29 @@ const C = (r) => {
579
579
  */
580
580
  "col-start-end": [{
581
581
  col: ["auto", {
582
- span: ["full", q, h]
583
- }, h]
582
+ span: ["full", ee, w]
583
+ }, w]
584
584
  }],
585
585
  /**
586
586
  * Grid Column Start
587
587
  * @see https://tailwindcss.com/docs/grid-column
588
588
  */
589
589
  "col-start": [{
590
- "col-start": U()
590
+ "col-start": _()
591
591
  }],
592
592
  /**
593
593
  * Grid Column End
594
594
  * @see https://tailwindcss.com/docs/grid-column
595
595
  */
596
596
  "col-end": [{
597
- "col-end": U()
597
+ "col-end": _()
598
598
  }],
599
599
  /**
600
600
  * Grid Template Rows
601
601
  * @see https://tailwindcss.com/docs/grid-template-rows
602
602
  */
603
603
  "grid-rows": [{
604
- "grid-rows": [S]
604
+ "grid-rows": [re]
605
605
  }],
606
606
  /**
607
607
  * Grid Row Start / End
@@ -609,22 +609,22 @@ const C = (r) => {
609
609
  */
610
610
  "row-start-end": [{
611
611
  row: ["auto", {
612
- span: [q, h]
613
- }, h]
612
+ span: [ee, w]
613
+ }, w]
614
614
  }],
615
615
  /**
616
616
  * Grid Row Start
617
617
  * @see https://tailwindcss.com/docs/grid-row
618
618
  */
619
619
  "row-start": [{
620
- "row-start": U()
620
+ "row-start": _()
621
621
  }],
622
622
  /**
623
623
  * Grid Row End
624
624
  * @see https://tailwindcss.com/docs/grid-row
625
625
  */
626
626
  "row-end": [{
627
- "row-end": U()
627
+ "row-end": _()
628
628
  }],
629
629
  /**
630
630
  * Grid Auto Flow
@@ -638,42 +638,42 @@ const C = (r) => {
638
638
  * @see https://tailwindcss.com/docs/grid-auto-columns
639
639
  */
640
640
  "auto-cols": [{
641
- "auto-cols": ["auto", "min", "max", "fr", h]
641
+ "auto-cols": ["auto", "min", "max", "fr", w]
642
642
  }],
643
643
  /**
644
644
  * Grid Auto Rows
645
645
  * @see https://tailwindcss.com/docs/grid-auto-rows
646
646
  */
647
647
  "auto-rows": [{
648
- "auto-rows": ["auto", "min", "max", "fr", h]
648
+ "auto-rows": ["auto", "min", "max", "fr", w]
649
649
  }],
650
650
  /**
651
651
  * Gap
652
652
  * @see https://tailwindcss.com/docs/gap
653
653
  */
654
654
  gap: [{
655
- gap: [s]
655
+ gap: [g]
656
656
  }],
657
657
  /**
658
658
  * Gap X
659
659
  * @see https://tailwindcss.com/docs/gap
660
660
  */
661
661
  "gap-x": [{
662
- "gap-x": [s]
662
+ "gap-x": [g]
663
663
  }],
664
664
  /**
665
665
  * Gap Y
666
666
  * @see https://tailwindcss.com/docs/gap
667
667
  */
668
668
  "gap-y": [{
669
- "gap-y": [s]
669
+ "gap-y": [g]
670
670
  }],
671
671
  /**
672
672
  * Justify Content
673
673
  * @see https://tailwindcss.com/docs/justify-content
674
674
  */
675
675
  "justify-content": [{
676
- justify: ["normal", ...O()]
676
+ justify: ["normal", ...q()]
677
677
  }],
678
678
  /**
679
679
  * Justify Items
@@ -694,7 +694,7 @@ const C = (r) => {
694
694
  * @see https://tailwindcss.com/docs/align-content
695
695
  */
696
696
  "align-content": [{
697
- content: ["normal", ...O(), "baseline"]
697
+ content: ["normal", ...q(), "baseline"]
698
698
  }],
699
699
  /**
700
700
  * Align Items
@@ -715,7 +715,7 @@ const C = (r) => {
715
715
  * @see https://tailwindcss.com/docs/place-content
716
716
  */
717
717
  "place-content": [{
718
- "place-content": [...O(), "baseline"]
718
+ "place-content": [...q(), "baseline"]
719
719
  }],
720
720
  /**
721
721
  * Place Items
@@ -737,133 +737,133 @@ const C = (r) => {
737
737
  * @see https://tailwindcss.com/docs/padding
738
738
  */
739
739
  p: [{
740
- p: [T]
740
+ p: [M]
741
741
  }],
742
742
  /**
743
743
  * Padding X
744
744
  * @see https://tailwindcss.com/docs/padding
745
745
  */
746
746
  px: [{
747
- px: [T]
747
+ px: [M]
748
748
  }],
749
749
  /**
750
750
  * Padding Y
751
751
  * @see https://tailwindcss.com/docs/padding
752
752
  */
753
753
  py: [{
754
- py: [T]
754
+ py: [M]
755
755
  }],
756
756
  /**
757
757
  * Padding Start
758
758
  * @see https://tailwindcss.com/docs/padding
759
759
  */
760
760
  ps: [{
761
- ps: [T]
761
+ ps: [M]
762
762
  }],
763
763
  /**
764
764
  * Padding End
765
765
  * @see https://tailwindcss.com/docs/padding
766
766
  */
767
767
  pe: [{
768
- pe: [T]
768
+ pe: [M]
769
769
  }],
770
770
  /**
771
771
  * Padding Top
772
772
  * @see https://tailwindcss.com/docs/padding
773
773
  */
774
774
  pt: [{
775
- pt: [T]
775
+ pt: [M]
776
776
  }],
777
777
  /**
778
778
  * Padding Right
779
779
  * @see https://tailwindcss.com/docs/padding
780
780
  */
781
781
  pr: [{
782
- pr: [T]
782
+ pr: [M]
783
783
  }],
784
784
  /**
785
785
  * Padding Bottom
786
786
  * @see https://tailwindcss.com/docs/padding
787
787
  */
788
788
  pb: [{
789
- pb: [T]
789
+ pb: [M]
790
790
  }],
791
791
  /**
792
792
  * Padding Left
793
793
  * @see https://tailwindcss.com/docs/padding
794
794
  */
795
795
  pl: [{
796
- pl: [T]
796
+ pl: [M]
797
797
  }],
798
798
  /**
799
799
  * Margin
800
800
  * @see https://tailwindcss.com/docs/margin
801
801
  */
802
802
  m: [{
803
- m: [w]
803
+ m: [m]
804
804
  }],
805
805
  /**
806
806
  * Margin X
807
807
  * @see https://tailwindcss.com/docs/margin
808
808
  */
809
809
  mx: [{
810
- mx: [w]
810
+ mx: [m]
811
811
  }],
812
812
  /**
813
813
  * Margin Y
814
814
  * @see https://tailwindcss.com/docs/margin
815
815
  */
816
816
  my: [{
817
- my: [w]
817
+ my: [m]
818
818
  }],
819
819
  /**
820
820
  * Margin Start
821
821
  * @see https://tailwindcss.com/docs/margin
822
822
  */
823
823
  ms: [{
824
- ms: [w]
824
+ ms: [m]
825
825
  }],
826
826
  /**
827
827
  * Margin End
828
828
  * @see https://tailwindcss.com/docs/margin
829
829
  */
830
830
  me: [{
831
- me: [w]
831
+ me: [m]
832
832
  }],
833
833
  /**
834
834
  * Margin Top
835
835
  * @see https://tailwindcss.com/docs/margin
836
836
  */
837
837
  mt: [{
838
- mt: [w]
838
+ mt: [m]
839
839
  }],
840
840
  /**
841
841
  * Margin Right
842
842
  * @see https://tailwindcss.com/docs/margin
843
843
  */
844
844
  mr: [{
845
- mr: [w]
845
+ mr: [m]
846
846
  }],
847
847
  /**
848
848
  * Margin Bottom
849
849
  * @see https://tailwindcss.com/docs/margin
850
850
  */
851
851
  mb: [{
852
- mb: [w]
852
+ mb: [m]
853
853
  }],
854
854
  /**
855
855
  * Margin Left
856
856
  * @see https://tailwindcss.com/docs/margin
857
857
  */
858
858
  ml: [{
859
- ml: [w]
859
+ ml: [m]
860
860
  }],
861
861
  /**
862
862
  * Space Between X
863
863
  * @see https://tailwindcss.com/docs/space
864
864
  */
865
865
  "space-x": [{
866
- "space-x": [P]
866
+ "space-x": [D]
867
867
  }],
868
868
  /**
869
869
  * Space Between X Reverse
@@ -875,7 +875,7 @@ const C = (r) => {
875
875
  * @see https://tailwindcss.com/docs/space
876
876
  */
877
877
  "space-y": [{
878
- "space-y": [P]
878
+ "space-y": [D]
879
879
  }],
880
880
  /**
881
881
  * Space Between Y Reverse
@@ -888,21 +888,21 @@ const C = (r) => {
888
888
  * @see https://tailwindcss.com/docs/width
889
889
  */
890
890
  w: [{
891
- w: ["auto", "min", "max", "fit", "svw", "lvw", "dvw", h, n]
891
+ w: ["auto", "min", "max", "fit", "svw", "lvw", "dvw", w, n]
892
892
  }],
893
893
  /**
894
894
  * Min-Width
895
895
  * @see https://tailwindcss.com/docs/min-width
896
896
  */
897
897
  "min-w": [{
898
- "min-w": [h, n, "min", "max", "fit"]
898
+ "min-w": [w, n, "min", "max", "fit"]
899
899
  }],
900
900
  /**
901
901
  * Max-Width
902
902
  * @see https://tailwindcss.com/docs/max-width
903
903
  */
904
904
  "max-w": [{
905
- "max-w": [h, n, "none", "full", "min", "max", "fit", "prose", {
905
+ "max-w": [w, n, "none", "full", "min", "max", "fit", "prose", {
906
906
  screen: [K]
907
907
  }, K]
908
908
  }],
@@ -911,28 +911,28 @@ const C = (r) => {
911
911
  * @see https://tailwindcss.com/docs/height
912
912
  */
913
913
  h: [{
914
- h: [h, n, "auto", "min", "max", "fit", "svh", "lvh", "dvh"]
914
+ h: [w, n, "auto", "min", "max", "fit", "svh", "lvh", "dvh"]
915
915
  }],
916
916
  /**
917
917
  * Min-Height
918
918
  * @see https://tailwindcss.com/docs/min-height
919
919
  */
920
920
  "min-h": [{
921
- "min-h": [h, n, "min", "max", "fit", "svh", "lvh", "dvh"]
921
+ "min-h": [w, n, "min", "max", "fit", "svh", "lvh", "dvh"]
922
922
  }],
923
923
  /**
924
924
  * Max-Height
925
925
  * @see https://tailwindcss.com/docs/max-height
926
926
  */
927
927
  "max-h": [{
928
- "max-h": [h, n, "min", "max", "fit", "svh", "lvh", "dvh"]
928
+ "max-h": [w, n, "min", "max", "fit", "svh", "lvh", "dvh"]
929
929
  }],
930
930
  /**
931
931
  * Size
932
932
  * @see https://tailwindcss.com/docs/size
933
933
  */
934
934
  size: [{
935
- size: [h, n, "auto", "min", "max", "fit"]
935
+ size: [w, n, "auto", "min", "max", "fit"]
936
936
  }],
937
937
  // Typography
938
938
  /**
@@ -957,14 +957,14 @@ const C = (r) => {
957
957
  * @see https://tailwindcss.com/docs/font-weight
958
958
  */
959
959
  "font-weight": [{
960
- font: ["thin", "extralight", "light", "normal", "medium", "semibold", "bold", "extrabold", "black", le]
960
+ font: ["thin", "extralight", "light", "normal", "medium", "semibold", "bold", "extrabold", "black", de]
961
961
  }],
962
962
  /**
963
963
  * Font Family
964
964
  * @see https://tailwindcss.com/docs/font-family
965
965
  */
966
966
  "font-family": [{
967
- font: [S]
967
+ font: [re]
968
968
  }],
969
969
  /**
970
970
  * Font Variant Numeric
@@ -1001,35 +1001,35 @@ const C = (r) => {
1001
1001
  * @see https://tailwindcss.com/docs/letter-spacing
1002
1002
  */
1003
1003
  tracking: [{
1004
- tracking: ["tighter", "tight", "normal", "wide", "wider", "widest", h]
1004
+ tracking: ["tighter", "tight", "normal", "wide", "wider", "widest", w]
1005
1005
  }],
1006
1006
  /**
1007
1007
  * Line Clamp
1008
1008
  * @see https://tailwindcss.com/docs/line-clamp
1009
1009
  */
1010
1010
  "line-clamp": [{
1011
- "line-clamp": ["none", J, le]
1011
+ "line-clamp": ["none", Y, de]
1012
1012
  }],
1013
1013
  /**
1014
1014
  * Line Height
1015
1015
  * @see https://tailwindcss.com/docs/line-height
1016
1016
  */
1017
1017
  leading: [{
1018
- leading: ["none", "tight", "snug", "normal", "relaxed", "loose", B, h]
1018
+ leading: ["none", "tight", "snug", "normal", "relaxed", "loose", G, w]
1019
1019
  }],
1020
1020
  /**
1021
1021
  * List Style Image
1022
1022
  * @see https://tailwindcss.com/docs/list-style-image
1023
1023
  */
1024
1024
  "list-image": [{
1025
- "list-image": ["none", h]
1025
+ "list-image": ["none", w]
1026
1026
  }],
1027
1027
  /**
1028
1028
  * List Style Type
1029
1029
  * @see https://tailwindcss.com/docs/list-style-type
1030
1030
  */
1031
1031
  "list-style-type": [{
1032
- list: ["none", "disc", "decimal", h]
1032
+ list: ["none", "disc", "decimal", w]
1033
1033
  }],
1034
1034
  /**
1035
1035
  * List Style Position
@@ -1084,21 +1084,21 @@ const C = (r) => {
1084
1084
  * @see https://tailwindcss.com/docs/text-decoration-style
1085
1085
  */
1086
1086
  "text-decoration-style": [{
1087
- decoration: [..._(), "wavy"]
1087
+ decoration: [...U(), "wavy"]
1088
1088
  }],
1089
1089
  /**
1090
1090
  * Text Decoration Thickness
1091
1091
  * @see https://tailwindcss.com/docs/text-decoration-thickness
1092
1092
  */
1093
1093
  "text-decoration-thickness": [{
1094
- decoration: ["auto", "from-font", B, V]
1094
+ decoration: ["auto", "from-font", G, V]
1095
1095
  }],
1096
1096
  /**
1097
1097
  * Text Underline Offset
1098
1098
  * @see https://tailwindcss.com/docs/text-underline-offset
1099
1099
  */
1100
1100
  "underline-offset": [{
1101
- "underline-offset": ["auto", B, h]
1101
+ "underline-offset": ["auto", G, w]
1102
1102
  }],
1103
1103
  /**
1104
1104
  * Text Decoration Color
@@ -1129,14 +1129,14 @@ const C = (r) => {
1129
1129
  * @see https://tailwindcss.com/docs/text-indent
1130
1130
  */
1131
1131
  indent: [{
1132
- indent: v()
1132
+ indent: y()
1133
1133
  }],
1134
1134
  /**
1135
1135
  * Vertical Alignment
1136
1136
  * @see https://tailwindcss.com/docs/vertical-align
1137
1137
  */
1138
1138
  "vertical-align": [{
1139
- align: ["baseline", "top", "middle", "bottom", "text-top", "text-bottom", "sub", "super", h]
1139
+ align: ["baseline", "top", "middle", "bottom", "text-top", "text-bottom", "sub", "super", w]
1140
1140
  }],
1141
1141
  /**
1142
1142
  * Whitespace
@@ -1164,7 +1164,7 @@ const C = (r) => {
1164
1164
  * @see https://tailwindcss.com/docs/content
1165
1165
  */
1166
1166
  content: [{
1167
- content: ["none", h]
1167
+ content: ["none", w]
1168
1168
  }],
1169
1169
  // Backgrounds
1170
1170
  /**
@@ -1201,7 +1201,7 @@ const C = (r) => {
1201
1201
  * @see https://tailwindcss.com/docs/background-position
1202
1202
  */
1203
1203
  "bg-position": [{
1204
- bg: [...Q(), Ir]
1204
+ bg: [...P(), Lr]
1205
1205
  }],
1206
1206
  /**
1207
1207
  * Background Repeat
@@ -1217,7 +1217,7 @@ const C = (r) => {
1217
1217
  * @see https://tailwindcss.com/docs/background-size
1218
1218
  */
1219
1219
  "bg-size": [{
1220
- bg: ["auto", "cover", "contain", zr]
1220
+ bg: ["auto", "cover", "contain", Ir]
1221
1221
  }],
1222
1222
  /**
1223
1223
  * Background Image
@@ -1226,7 +1226,7 @@ const C = (r) => {
1226
1226
  "bg-image": [{
1227
1227
  bg: ["none", {
1228
1228
  "gradient-to": ["t", "tr", "r", "br", "b", "bl", "l", "tl"]
1229
- }, Rr]
1229
+ }, Br]
1230
1230
  }],
1231
1231
  /**
1232
1232
  * Background Color
@@ -1240,42 +1240,42 @@ const C = (r) => {
1240
1240
  * @see https://tailwindcss.com/docs/gradient-color-stops
1241
1241
  */
1242
1242
  "gradient-from-pos": [{
1243
- from: [F]
1243
+ from: [A]
1244
1244
  }],
1245
1245
  /**
1246
1246
  * Gradient Color Stops Via Position
1247
1247
  * @see https://tailwindcss.com/docs/gradient-color-stops
1248
1248
  */
1249
1249
  "gradient-via-pos": [{
1250
- via: [F]
1250
+ via: [A]
1251
1251
  }],
1252
1252
  /**
1253
1253
  * Gradient Color Stops To Position
1254
1254
  * @see https://tailwindcss.com/docs/gradient-color-stops
1255
1255
  */
1256
1256
  "gradient-to-pos": [{
1257
- to: [F]
1257
+ to: [A]
1258
1258
  }],
1259
1259
  /**
1260
1260
  * Gradient Color Stops From
1261
1261
  * @see https://tailwindcss.com/docs/gradient-color-stops
1262
1262
  */
1263
1263
  "gradient-from": [{
1264
- from: [y]
1264
+ from: [s]
1265
1265
  }],
1266
1266
  /**
1267
1267
  * Gradient Color Stops Via
1268
1268
  * @see https://tailwindcss.com/docs/gradient-color-stops
1269
1269
  */
1270
1270
  "gradient-via": [{
1271
- via: [y]
1271
+ via: [s]
1272
1272
  }],
1273
1273
  /**
1274
1274
  * Gradient Color Stops To
1275
1275
  * @see https://tailwindcss.com/docs/gradient-color-stops
1276
1276
  */
1277
1277
  "gradient-to": [{
1278
- to: [y]
1278
+ to: [s]
1279
1279
  }],
1280
1280
  // Borders
1281
1281
  /**
@@ -1458,7 +1458,7 @@ const C = (r) => {
1458
1458
  * @see https://tailwindcss.com/docs/border-style
1459
1459
  */
1460
1460
  "border-style": [{
1461
- border: [..._(), "hidden"]
1461
+ border: [...U(), "hidden"]
1462
1462
  }],
1463
1463
  /**
1464
1464
  * Divide Width X
@@ -1496,7 +1496,7 @@ const C = (r) => {
1496
1496
  * @see https://tailwindcss.com/docs/divide-style
1497
1497
  */
1498
1498
  "divide-style": [{
1499
- divide: _()
1499
+ divide: U()
1500
1500
  }],
1501
1501
  /**
1502
1502
  * Border Color
@@ -1573,21 +1573,21 @@ const C = (r) => {
1573
1573
  * @see https://tailwindcss.com/docs/outline-style
1574
1574
  */
1575
1575
  "outline-style": [{
1576
- outline: ["", ..._()]
1576
+ outline: ["", ...U()]
1577
1577
  }],
1578
1578
  /**
1579
1579
  * Outline Offset
1580
1580
  * @see https://tailwindcss.com/docs/outline-offset
1581
1581
  */
1582
1582
  "outline-offset": [{
1583
- "outline-offset": [B, h]
1583
+ "outline-offset": [G, w]
1584
1584
  }],
1585
1585
  /**
1586
1586
  * Outline Width
1587
1587
  * @see https://tailwindcss.com/docs/outline-width
1588
1588
  */
1589
1589
  "outline-w": [{
1590
- outline: [B, V]
1590
+ outline: [G, V]
1591
1591
  }],
1592
1592
  /**
1593
1593
  * Outline Color
@@ -1601,7 +1601,7 @@ const C = (r) => {
1601
1601
  * @see https://tailwindcss.com/docs/ring-width
1602
1602
  */
1603
1603
  "ring-w": [{
1604
- ring: j()
1604
+ ring: W()
1605
1605
  }],
1606
1606
  /**
1607
1607
  * Ring Width Inset
@@ -1627,7 +1627,7 @@ const C = (r) => {
1627
1627
  * @see https://tailwindcss.com/docs/ring-offset-width
1628
1628
  */
1629
1629
  "ring-offset-w": [{
1630
- "ring-offset": [B, V]
1630
+ "ring-offset": [G, V]
1631
1631
  }],
1632
1632
  /**
1633
1633
  * Ring Offset Color
@@ -1642,14 +1642,14 @@ const C = (r) => {
1642
1642
  * @see https://tailwindcss.com/docs/box-shadow
1643
1643
  */
1644
1644
  shadow: [{
1645
- shadow: ["", "inner", "none", K, Br]
1645
+ shadow: ["", "inner", "none", K, $r]
1646
1646
  }],
1647
1647
  /**
1648
1648
  * Box Shadow Color
1649
1649
  * @see https://tailwindcss.com/docs/box-shadow-color
1650
1650
  */
1651
1651
  "shadow-color": [{
1652
- shadow: [S]
1652
+ shadow: [re]
1653
1653
  }],
1654
1654
  /**
1655
1655
  * Opacity
@@ -1663,14 +1663,14 @@ const C = (r) => {
1663
1663
  * @see https://tailwindcss.com/docs/mix-blend-mode
1664
1664
  */
1665
1665
  "mix-blend": [{
1666
- "mix-blend": [...ee(), "plus-lighter", "plus-darker"]
1666
+ "mix-blend": [...te(), "plus-lighter", "plus-darker"]
1667
1667
  }],
1668
1668
  /**
1669
1669
  * Background Blend Mode
1670
1670
  * @see https://tailwindcss.com/docs/background-blend-mode
1671
1671
  */
1672
1672
  "bg-blend": [{
1673
- "bg-blend": ee()
1673
+ "bg-blend": te()
1674
1674
  }],
1675
1675
  // Filters
1676
1676
  /**
@@ -1707,42 +1707,42 @@ const C = (r) => {
1707
1707
  * @see https://tailwindcss.com/docs/drop-shadow
1708
1708
  */
1709
1709
  "drop-shadow": [{
1710
- "drop-shadow": ["", "none", K, h]
1710
+ "drop-shadow": ["", "none", K, w]
1711
1711
  }],
1712
1712
  /**
1713
1713
  * Grayscale
1714
1714
  * @see https://tailwindcss.com/docs/grayscale
1715
1715
  */
1716
1716
  grayscale: [{
1717
- grayscale: [f]
1717
+ grayscale: [p]
1718
1718
  }],
1719
1719
  /**
1720
1720
  * Hue Rotate
1721
1721
  * @see https://tailwindcss.com/docs/hue-rotate
1722
1722
  */
1723
1723
  "hue-rotate": [{
1724
- "hue-rotate": [x]
1724
+ "hue-rotate": [h]
1725
1725
  }],
1726
1726
  /**
1727
1727
  * Invert
1728
1728
  * @see https://tailwindcss.com/docs/invert
1729
1729
  */
1730
1730
  invert: [{
1731
- invert: [g]
1731
+ invert: [x]
1732
1732
  }],
1733
1733
  /**
1734
1734
  * Saturate
1735
1735
  * @see https://tailwindcss.com/docs/saturate
1736
1736
  */
1737
1737
  saturate: [{
1738
- saturate: [k]
1738
+ saturate: [T]
1739
1739
  }],
1740
1740
  /**
1741
1741
  * Sepia
1742
1742
  * @see https://tailwindcss.com/docs/sepia
1743
1743
  */
1744
1744
  sepia: [{
1745
- sepia: [D]
1745
+ sepia: [f]
1746
1746
  }],
1747
1747
  /**
1748
1748
  * Backdrop Filter
@@ -1778,21 +1778,21 @@ const C = (r) => {
1778
1778
  * @see https://tailwindcss.com/docs/backdrop-grayscale
1779
1779
  */
1780
1780
  "backdrop-grayscale": [{
1781
- "backdrop-grayscale": [f]
1781
+ "backdrop-grayscale": [p]
1782
1782
  }],
1783
1783
  /**
1784
1784
  * Backdrop Hue Rotate
1785
1785
  * @see https://tailwindcss.com/docs/backdrop-hue-rotate
1786
1786
  */
1787
1787
  "backdrop-hue-rotate": [{
1788
- "backdrop-hue-rotate": [x]
1788
+ "backdrop-hue-rotate": [h]
1789
1789
  }],
1790
1790
  /**
1791
1791
  * Backdrop Invert
1792
1792
  * @see https://tailwindcss.com/docs/backdrop-invert
1793
1793
  */
1794
1794
  "backdrop-invert": [{
1795
- "backdrop-invert": [g]
1795
+ "backdrop-invert": [x]
1796
1796
  }],
1797
1797
  /**
1798
1798
  * Backdrop Opacity
@@ -1806,14 +1806,14 @@ const C = (r) => {
1806
1806
  * @see https://tailwindcss.com/docs/backdrop-saturate
1807
1807
  */
1808
1808
  "backdrop-saturate": [{
1809
- "backdrop-saturate": [k]
1809
+ "backdrop-saturate": [T]
1810
1810
  }],
1811
1811
  /**
1812
1812
  * Backdrop Sepia
1813
1813
  * @see https://tailwindcss.com/docs/backdrop-sepia
1814
1814
  */
1815
1815
  "backdrop-sepia": [{
1816
- "backdrop-sepia": [D]
1816
+ "backdrop-sepia": [f]
1817
1817
  }],
1818
1818
  // Tables
1819
1819
  /**
@@ -1864,35 +1864,35 @@ const C = (r) => {
1864
1864
  * @see https://tailwindcss.com/docs/transition-property
1865
1865
  */
1866
1866
  transition: [{
1867
- transition: ["none", "all", "", "colors", "opacity", "shadow", "transform", h]
1867
+ transition: ["none", "all", "", "colors", "opacity", "shadow", "transform", w]
1868
1868
  }],
1869
1869
  /**
1870
1870
  * Transition Duration
1871
1871
  * @see https://tailwindcss.com/docs/transition-duration
1872
1872
  */
1873
1873
  duration: [{
1874
- duration: M()
1874
+ duration: j()
1875
1875
  }],
1876
1876
  /**
1877
1877
  * Transition Timing Function
1878
1878
  * @see https://tailwindcss.com/docs/transition-timing-function
1879
1879
  */
1880
1880
  ease: [{
1881
- ease: ["linear", "in", "out", "in-out", h]
1881
+ ease: ["linear", "in", "out", "in-out", w]
1882
1882
  }],
1883
1883
  /**
1884
1884
  * Transition Delay
1885
1885
  * @see https://tailwindcss.com/docs/transition-delay
1886
1886
  */
1887
1887
  delay: [{
1888
- delay: M()
1888
+ delay: j()
1889
1889
  }],
1890
1890
  /**
1891
1891
  * Animation
1892
1892
  * @see https://tailwindcss.com/docs/animation
1893
1893
  */
1894
1894
  animate: [{
1895
- animate: ["none", "spin", "ping", "pulse", "bounce", h]
1895
+ animate: ["none", "spin", "ping", "pulse", "bounce", w]
1896
1896
  }],
1897
1897
  // Transforms
1898
1898
  /**
@@ -1907,28 +1907,28 @@ const C = (r) => {
1907
1907
  * @see https://tailwindcss.com/docs/scale
1908
1908
  */
1909
1909
  scale: [{
1910
- scale: [p]
1910
+ scale: [v]
1911
1911
  }],
1912
1912
  /**
1913
1913
  * Scale X
1914
1914
  * @see https://tailwindcss.com/docs/scale
1915
1915
  */
1916
1916
  "scale-x": [{
1917
- "scale-x": [p]
1917
+ "scale-x": [v]
1918
1918
  }],
1919
1919
  /**
1920
1920
  * Scale Y
1921
1921
  * @see https://tailwindcss.com/docs/scale
1922
1922
  */
1923
1923
  "scale-y": [{
1924
- "scale-y": [p]
1924
+ "scale-y": [v]
1925
1925
  }],
1926
1926
  /**
1927
1927
  * Rotate
1928
1928
  * @see https://tailwindcss.com/docs/rotate
1929
1929
  */
1930
1930
  rotate: [{
1931
- rotate: [q, h]
1931
+ rotate: [ee, w]
1932
1932
  }],
1933
1933
  /**
1934
1934
  * Translate X
@@ -1949,21 +1949,21 @@ const C = (r) => {
1949
1949
  * @see https://tailwindcss.com/docs/skew
1950
1950
  */
1951
1951
  "skew-x": [{
1952
- "skew-x": [I]
1952
+ "skew-x": [z]
1953
1953
  }],
1954
1954
  /**
1955
1955
  * Skew Y
1956
1956
  * @see https://tailwindcss.com/docs/skew
1957
1957
  */
1958
1958
  "skew-y": [{
1959
- "skew-y": [I]
1959
+ "skew-y": [z]
1960
1960
  }],
1961
1961
  /**
1962
1962
  * Transform Origin
1963
1963
  * @see https://tailwindcss.com/docs/transform-origin
1964
1964
  */
1965
1965
  "transform-origin": [{
1966
- origin: ["center", "top", "top-right", "right", "bottom-right", "bottom", "bottom-left", "left", "top-left", h]
1966
+ origin: ["center", "top", "top-right", "right", "bottom-right", "bottom", "bottom-left", "left", "top-left", w]
1967
1967
  }],
1968
1968
  // Interactivity
1969
1969
  /**
@@ -1985,7 +1985,7 @@ const C = (r) => {
1985
1985
  * @see https://tailwindcss.com/docs/cursor
1986
1986
  */
1987
1987
  cursor: [{
1988
- cursor: ["auto", "default", "pointer", "wait", "text", "move", "help", "not-allowed", "none", "context-menu", "progress", "cell", "crosshair", "vertical-text", "alias", "copy", "no-drop", "grab", "grabbing", "all-scroll", "col-resize", "row-resize", "n-resize", "e-resize", "s-resize", "w-resize", "ne-resize", "nw-resize", "se-resize", "sw-resize", "ew-resize", "ns-resize", "nesw-resize", "nwse-resize", "zoom-in", "zoom-out", h]
1988
+ cursor: ["auto", "default", "pointer", "wait", "text", "move", "help", "not-allowed", "none", "context-menu", "progress", "cell", "crosshair", "vertical-text", "alias", "copy", "no-drop", "grab", "grabbing", "all-scroll", "col-resize", "row-resize", "n-resize", "e-resize", "s-resize", "w-resize", "ne-resize", "nw-resize", "se-resize", "sw-resize", "ew-resize", "ns-resize", "nesw-resize", "nwse-resize", "zoom-in", "zoom-out", w]
1989
1989
  }],
1990
1990
  /**
1991
1991
  * Caret Color
@@ -2020,126 +2020,126 @@ const C = (r) => {
2020
2020
  * @see https://tailwindcss.com/docs/scroll-margin
2021
2021
  */
2022
2022
  "scroll-m": [{
2023
- "scroll-m": v()
2023
+ "scroll-m": y()
2024
2024
  }],
2025
2025
  /**
2026
2026
  * Scroll Margin X
2027
2027
  * @see https://tailwindcss.com/docs/scroll-margin
2028
2028
  */
2029
2029
  "scroll-mx": [{
2030
- "scroll-mx": v()
2030
+ "scroll-mx": y()
2031
2031
  }],
2032
2032
  /**
2033
2033
  * Scroll Margin Y
2034
2034
  * @see https://tailwindcss.com/docs/scroll-margin
2035
2035
  */
2036
2036
  "scroll-my": [{
2037
- "scroll-my": v()
2037
+ "scroll-my": y()
2038
2038
  }],
2039
2039
  /**
2040
2040
  * Scroll Margin Start
2041
2041
  * @see https://tailwindcss.com/docs/scroll-margin
2042
2042
  */
2043
2043
  "scroll-ms": [{
2044
- "scroll-ms": v()
2044
+ "scroll-ms": y()
2045
2045
  }],
2046
2046
  /**
2047
2047
  * Scroll Margin End
2048
2048
  * @see https://tailwindcss.com/docs/scroll-margin
2049
2049
  */
2050
2050
  "scroll-me": [{
2051
- "scroll-me": v()
2051
+ "scroll-me": y()
2052
2052
  }],
2053
2053
  /**
2054
2054
  * Scroll Margin Top
2055
2055
  * @see https://tailwindcss.com/docs/scroll-margin
2056
2056
  */
2057
2057
  "scroll-mt": [{
2058
- "scroll-mt": v()
2058
+ "scroll-mt": y()
2059
2059
  }],
2060
2060
  /**
2061
2061
  * Scroll Margin Right
2062
2062
  * @see https://tailwindcss.com/docs/scroll-margin
2063
2063
  */
2064
2064
  "scroll-mr": [{
2065
- "scroll-mr": v()
2065
+ "scroll-mr": y()
2066
2066
  }],
2067
2067
  /**
2068
2068
  * Scroll Margin Bottom
2069
2069
  * @see https://tailwindcss.com/docs/scroll-margin
2070
2070
  */
2071
2071
  "scroll-mb": [{
2072
- "scroll-mb": v()
2072
+ "scroll-mb": y()
2073
2073
  }],
2074
2074
  /**
2075
2075
  * Scroll Margin Left
2076
2076
  * @see https://tailwindcss.com/docs/scroll-margin
2077
2077
  */
2078
2078
  "scroll-ml": [{
2079
- "scroll-ml": v()
2079
+ "scroll-ml": y()
2080
2080
  }],
2081
2081
  /**
2082
2082
  * Scroll Padding
2083
2083
  * @see https://tailwindcss.com/docs/scroll-padding
2084
2084
  */
2085
2085
  "scroll-p": [{
2086
- "scroll-p": v()
2086
+ "scroll-p": y()
2087
2087
  }],
2088
2088
  /**
2089
2089
  * Scroll Padding X
2090
2090
  * @see https://tailwindcss.com/docs/scroll-padding
2091
2091
  */
2092
2092
  "scroll-px": [{
2093
- "scroll-px": v()
2093
+ "scroll-px": y()
2094
2094
  }],
2095
2095
  /**
2096
2096
  * Scroll Padding Y
2097
2097
  * @see https://tailwindcss.com/docs/scroll-padding
2098
2098
  */
2099
2099
  "scroll-py": [{
2100
- "scroll-py": v()
2100
+ "scroll-py": y()
2101
2101
  }],
2102
2102
  /**
2103
2103
  * Scroll Padding Start
2104
2104
  * @see https://tailwindcss.com/docs/scroll-padding
2105
2105
  */
2106
2106
  "scroll-ps": [{
2107
- "scroll-ps": v()
2107
+ "scroll-ps": y()
2108
2108
  }],
2109
2109
  /**
2110
2110
  * Scroll Padding End
2111
2111
  * @see https://tailwindcss.com/docs/scroll-padding
2112
2112
  */
2113
2113
  "scroll-pe": [{
2114
- "scroll-pe": v()
2114
+ "scroll-pe": y()
2115
2115
  }],
2116
2116
  /**
2117
2117
  * Scroll Padding Top
2118
2118
  * @see https://tailwindcss.com/docs/scroll-padding
2119
2119
  */
2120
2120
  "scroll-pt": [{
2121
- "scroll-pt": v()
2121
+ "scroll-pt": y()
2122
2122
  }],
2123
2123
  /**
2124
2124
  * Scroll Padding Right
2125
2125
  * @see https://tailwindcss.com/docs/scroll-padding
2126
2126
  */
2127
2127
  "scroll-pr": [{
2128
- "scroll-pr": v()
2128
+ "scroll-pr": y()
2129
2129
  }],
2130
2130
  /**
2131
2131
  * Scroll Padding Bottom
2132
2132
  * @see https://tailwindcss.com/docs/scroll-padding
2133
2133
  */
2134
2134
  "scroll-pb": [{
2135
- "scroll-pb": v()
2135
+ "scroll-pb": y()
2136
2136
  }],
2137
2137
  /**
2138
2138
  * Scroll Padding Left
2139
2139
  * @see https://tailwindcss.com/docs/scroll-padding
2140
2140
  */
2141
2141
  "scroll-pl": [{
2142
- "scroll-pl": v()
2142
+ "scroll-pl": y()
2143
2143
  }],
2144
2144
  /**
2145
2145
  * Scroll Snap Align
@@ -2207,7 +2207,7 @@ const C = (r) => {
2207
2207
  * @see https://tailwindcss.com/docs/will-change
2208
2208
  */
2209
2209
  "will-change": [{
2210
- "will-change": ["auto", "scroll", "contents", "transform", h]
2210
+ "will-change": ["auto", "scroll", "contents", "transform", w]
2211
2211
  }],
2212
2212
  // SVG
2213
2213
  /**
@@ -2222,7 +2222,7 @@ const C = (r) => {
2222
2222
  * @see https://tailwindcss.com/docs/stroke-width
2223
2223
  */
2224
2224
  "stroke-w": [{
2225
- stroke: [B, V, le]
2225
+ stroke: [G, V, de]
2226
2226
  }],
2227
2227
  /**
2228
2228
  * Stroke
@@ -2297,11 +2297,11 @@ const C = (r) => {
2297
2297
  "font-size": ["leading"]
2298
2298
  }
2299
2299
  };
2300
- }, Kr = /* @__PURE__ */ Nr(Vr);
2300
+ }, Wr = /* @__PURE__ */ Cr(Kr);
2301
2301
  function d(...r) {
2302
- return Kr(ze(r));
2302
+ return Wr(Ie(r));
2303
2303
  }
2304
- const ne = A.forwardRef(({ className: r, ...n }, t) => /* @__PURE__ */ a(
2304
+ const oe = F.forwardRef(({ className: r, ...n }, t) => /* @__PURE__ */ a(
2305
2305
  "div",
2306
2306
  {
2307
2307
  ref: t,
@@ -2312,8 +2312,8 @@ const ne = A.forwardRef(({ className: r, ...n }, t) => /* @__PURE__ */ a(
2312
2312
  ...n
2313
2313
  }
2314
2314
  ));
2315
- ne.displayName = "Card";
2316
- const be = A.forwardRef(({ className: r, ...n }, t) => /* @__PURE__ */ a(
2315
+ oe.displayName = "Card";
2316
+ const ge = F.forwardRef(({ className: r, ...n }, t) => /* @__PURE__ */ a(
2317
2317
  "div",
2318
2318
  {
2319
2319
  ref: t,
@@ -2321,8 +2321,8 @@ const be = A.forwardRef(({ className: r, ...n }, t) => /* @__PURE__ */ a(
2321
2321
  ...n
2322
2322
  }
2323
2323
  ));
2324
- be.displayName = "CardHeader";
2325
- const ge = A.forwardRef(({ className: r, ...n }, t) => /* @__PURE__ */ a(
2324
+ ge.displayName = "CardHeader";
2325
+ const pe = F.forwardRef(({ className: r, ...n }, t) => /* @__PURE__ */ a(
2326
2326
  "div",
2327
2327
  {
2328
2328
  ref: t,
@@ -2330,8 +2330,8 @@ const ge = A.forwardRef(({ className: r, ...n }, t) => /* @__PURE__ */ a(
2330
2330
  ...n
2331
2331
  }
2332
2332
  ));
2333
- ge.displayName = "CardTitle";
2334
- const pe = A.forwardRef(({ className: r, ...n }, t) => /* @__PURE__ */ a(
2333
+ pe.displayName = "CardTitle";
2334
+ const fe = F.forwardRef(({ className: r, ...n }, t) => /* @__PURE__ */ a(
2335
2335
  "div",
2336
2336
  {
2337
2337
  ref: t,
@@ -2339,10 +2339,10 @@ const pe = A.forwardRef(({ className: r, ...n }, t) => /* @__PURE__ */ a(
2339
2339
  ...n
2340
2340
  }
2341
2341
  ));
2342
- pe.displayName = "CardDescription";
2343
- const ae = A.forwardRef(({ className: r, ...n }, t) => /* @__PURE__ */ a("div", { ref: t, className: d("p-6 pt-0", r), ...n }));
2344
- ae.displayName = "CardContent";
2345
- const Wr = A.forwardRef(({ className: r, ...n }, t) => /* @__PURE__ */ a(
2342
+ fe.displayName = "CardDescription";
2343
+ const se = F.forwardRef(({ className: r, ...n }, t) => /* @__PURE__ */ a("div", { ref: t, className: d("p-6 pt-0", r), ...n }));
2344
+ se.displayName = "CardContent";
2345
+ const _r = F.forwardRef(({ className: r, ...n }, t) => /* @__PURE__ */ a(
2346
2346
  "div",
2347
2347
  {
2348
2348
  ref: t,
@@ -2350,58 +2350,58 @@ const Wr = A.forwardRef(({ className: r, ...n }, t) => /* @__PURE__ */ a(
2350
2350
  ...n
2351
2351
  }
2352
2352
  ));
2353
- Wr.displayName = "CardFooter";
2354
- function Me(r, n) {
2353
+ _r.displayName = "CardFooter";
2354
+ function Te(r, n) {
2355
2355
  if (typeof r == "function")
2356
2356
  return r(n);
2357
2357
  r != null && (r.current = n);
2358
2358
  }
2359
- function _r(...r) {
2359
+ function Or(...r) {
2360
2360
  return (n) => {
2361
2361
  let t = !1;
2362
2362
  const o = r.map((i) => {
2363
- const l = Me(i, n);
2363
+ const l = Te(i, n);
2364
2364
  return !t && typeof l == "function" && (t = !0), l;
2365
2365
  });
2366
2366
  if (t)
2367
2367
  return () => {
2368
2368
  for (let i = 0; i < o.length; i++) {
2369
2369
  const l = o[i];
2370
- typeof l == "function" ? l() : Me(r[i], null);
2370
+ typeof l == "function" ? l() : Te(r[i], null);
2371
2371
  }
2372
2372
  };
2373
2373
  };
2374
2374
  }
2375
2375
  // @__NO_SIDE_EFFECTS__
2376
- function Or(r) {
2377
- const n = /* @__PURE__ */ Xr(r), t = A.forwardRef((o, i) => {
2378
- const { children: l, ...u } = o, c = A.Children.toArray(l), e = c.find(Yr);
2376
+ function Hr(r) {
2377
+ const n = /* @__PURE__ */ Jr(r), t = F.forwardRef((o, i) => {
2378
+ const { children: l, ...u } = o, c = F.Children.toArray(l), e = c.find(Zr);
2379
2379
  if (e) {
2380
- const f = e.props.children, x = c.map((g) => g === e ? A.Children.count(f) > 1 ? A.Children.only(null) : A.isValidElement(f) ? f.props.children : null : g);
2381
- return /* @__PURE__ */ a(n, { ...u, ref: i, children: A.isValidElement(f) ? A.cloneElement(f, void 0, x) : null });
2380
+ const p = e.props.children, h = c.map((x) => x === e ? F.Children.count(p) > 1 ? F.Children.only(null) : F.isValidElement(p) ? p.props.children : null : x);
2381
+ return /* @__PURE__ */ a(n, { ...u, ref: i, children: F.isValidElement(p) ? F.cloneElement(p, void 0, h) : null });
2382
2382
  }
2383
2383
  return /* @__PURE__ */ a(n, { ...u, ref: i, children: l });
2384
2384
  });
2385
2385
  return t.displayName = `${r}.Slot`, t;
2386
2386
  }
2387
- var Hr = /* @__PURE__ */ Or("Slot");
2387
+ var Xr = /* @__PURE__ */ Hr("Slot");
2388
2388
  // @__NO_SIDE_EFFECTS__
2389
- function Xr(r) {
2390
- const n = A.forwardRef((t, o) => {
2389
+ function Jr(r) {
2390
+ const n = F.forwardRef((t, o) => {
2391
2391
  const { children: i, ...l } = t;
2392
- if (A.isValidElement(i)) {
2393
- const u = qr(i), c = Zr(l, i.props);
2394
- return i.type !== A.Fragment && (c.ref = o ? _r(o, u) : u), A.cloneElement(i, c);
2392
+ if (F.isValidElement(i)) {
2393
+ const u = Qr(i), c = qr(l, i.props);
2394
+ return i.type !== F.Fragment && (c.ref = o ? Or(o, u) : u), F.cloneElement(i, c);
2395
2395
  }
2396
- return A.Children.count(i) > 1 ? A.Children.only(null) : null;
2396
+ return F.Children.count(i) > 1 ? F.Children.only(null) : null;
2397
2397
  });
2398
2398
  return n.displayName = `${r}.SlotClone`, n;
2399
2399
  }
2400
- var Jr = Symbol("radix.slottable");
2401
- function Yr(r) {
2402
- return A.isValidElement(r) && typeof r.type == "function" && "__radixId" in r.type && r.type.__radixId === Jr;
2400
+ var Yr = Symbol("radix.slottable");
2401
+ function Zr(r) {
2402
+ return F.isValidElement(r) && typeof r.type == "function" && "__radixId" in r.type && r.type.__radixId === Yr;
2403
2403
  }
2404
- function Zr(r, n) {
2404
+ function qr(r, n) {
2405
2405
  const t = { ...n };
2406
2406
  for (const o in n) {
2407
2407
  const i = r[o], l = n[o];
@@ -2412,40 +2412,40 @@ function Zr(r, n) {
2412
2412
  }
2413
2413
  return { ...r, ...t };
2414
2414
  }
2415
- function qr(r) {
2415
+ function Qr(r) {
2416
2416
  var o, i;
2417
2417
  let n = (o = Object.getOwnPropertyDescriptor(r.props, "ref")) == null ? void 0 : o.get, t = n && "isReactWarning" in n && n.isReactWarning;
2418
2418
  return t ? r.ref : (n = (i = Object.getOwnPropertyDescriptor(r, "ref")) == null ? void 0 : i.get, t = n && "isReactWarning" in n && n.isReactWarning, t ? r.props.ref : r.props.ref || r.ref);
2419
2419
  }
2420
- const Te = (r) => typeof r == "boolean" ? `${r}` : r === 0 ? "0" : r, Ee = ze, Ue = (r, n) => (t) => {
2420
+ const Ee = (r) => typeof r == "boolean" ? `${r}` : r === 0 ? "0" : r, Pe = Ie, Ue = (r, n) => (t) => {
2421
2421
  var o;
2422
- if ((n == null ? void 0 : n.variants) == null) return Ee(r, t == null ? void 0 : t.class, t == null ? void 0 : t.className);
2423
- const { variants: i, defaultVariants: l } = n, u = Object.keys(i).map((f) => {
2424
- const x = t == null ? void 0 : t[f], g = l == null ? void 0 : l[f];
2425
- if (x === null) return null;
2426
- const s = Te(x) || Te(g);
2427
- return i[f][s];
2428
- }), c = t && Object.entries(t).reduce((f, x) => {
2429
- let [g, s] = x;
2430
- return s === void 0 || (f[g] = s), f;
2431
- }, {}), e = n == null || (o = n.compoundVariants) === null || o === void 0 ? void 0 : o.reduce((f, x) => {
2432
- let { class: g, className: s, ...y } = x;
2433
- return Object.entries(y).every((F) => {
2434
- let [m, w] = F;
2435
- return Array.isArray(w) ? w.includes({
2422
+ if ((n == null ? void 0 : n.variants) == null) return Pe(r, t == null ? void 0 : t.class, t == null ? void 0 : t.className);
2423
+ const { variants: i, defaultVariants: l } = n, u = Object.keys(i).map((p) => {
2424
+ const h = t == null ? void 0 : t[p], x = l == null ? void 0 : l[p];
2425
+ if (h === null) return null;
2426
+ const g = Ee(h) || Ee(x);
2427
+ return i[p][g];
2428
+ }), c = t && Object.entries(t).reduce((p, h) => {
2429
+ let [x, g] = h;
2430
+ return g === void 0 || (p[x] = g), p;
2431
+ }, {}), e = n == null || (o = n.compoundVariants) === null || o === void 0 ? void 0 : o.reduce((p, h) => {
2432
+ let { class: x, className: g, ...s } = h;
2433
+ return Object.entries(s).every((A) => {
2434
+ let [k, m] = A;
2435
+ return Array.isArray(m) ? m.includes({
2436
2436
  ...l,
2437
2437
  ...c
2438
- }[m]) : {
2438
+ }[k]) : {
2439
2439
  ...l,
2440
2440
  ...c
2441
- }[m] === w;
2441
+ }[k] === m;
2442
2442
  }) ? [
2443
- ...f,
2444
- g,
2445
- s
2446
- ] : f;
2443
+ ...p,
2444
+ x,
2445
+ g
2446
+ ] : p;
2447
2447
  }, []);
2448
- return Ee(r, u, e, t == null ? void 0 : t.class, t == null ? void 0 : t.className);
2448
+ return Pe(r, u, e, t == null ? void 0 : t.class, t == null ? void 0 : t.className);
2449
2449
  }, Sr = Ue(
2450
2450
  "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",
2451
2451
  {
@@ -2470,9 +2470,9 @@ const Te = (r) => typeof r == "boolean" ? `${r}` : r === 0 ? "0" : r, Ee = ze, U
2470
2470
  size: "default"
2471
2471
  }
2472
2472
  }
2473
- ), Ge = A.forwardRef(
2473
+ ), Ve = F.forwardRef(
2474
2474
  ({ className: r, variant: n, size: t, asChild: o = !1, ...i }, l) => /* @__PURE__ */ a(
2475
- o ? Hr : "button",
2475
+ o ? Xr : "button",
2476
2476
  {
2477
2477
  className: d(Sr({ variant: n, size: t, className: r })),
2478
2478
  ref: l,
@@ -2480,8 +2480,8 @@ const Te = (r) => typeof r == "boolean" ? `${r}` : r === 0 ? "0" : r, Ee = ze, U
2480
2480
  }
2481
2481
  )
2482
2482
  );
2483
- Ge.displayName = "Button";
2484
- const oe = A.forwardRef(
2483
+ Ve.displayName = "Button";
2484
+ const ie = F.forwardRef(
2485
2485
  ({ className: r, size: n = "md", variant: t = "default", ...o }, i) => {
2486
2486
  const l = {
2487
2487
  sm: "h-4 w-4",
@@ -2509,8 +2509,8 @@ const oe = A.forwardRef(
2509
2509
  );
2510
2510
  }
2511
2511
  );
2512
- oe.displayName = "Spinner";
2513
- const te = A.forwardRef(
2512
+ ie.displayName = "Spinner";
2513
+ const ae = F.forwardRef(
2514
2514
  ({
2515
2515
  amount: r,
2516
2516
  description: n,
@@ -2521,16 +2521,16 @@ const te = A.forwardRef(
2521
2521
  style: u,
2522
2522
  customText: c,
2523
2523
  ...e
2524
- }, f) => {
2525
- const x = (g) => new Intl.NumberFormat("en-US", {
2524
+ }, p) => {
2525
+ const h = (x) => new Intl.NumberFormat("en-US", {
2526
2526
  style: "currency",
2527
2527
  currency: "USD",
2528
2528
  minimumFractionDigits: 2
2529
- }).format(g);
2529
+ }).format(x);
2530
2530
  return /* @__PURE__ */ a(
2531
- Ge,
2531
+ Ve,
2532
2532
  {
2533
- ref: f,
2533
+ ref: p,
2534
2534
  onClick: t,
2535
2535
  disabled: o || i,
2536
2536
  className: d(
@@ -2544,7 +2544,7 @@ const te = A.forwardRef(
2544
2544
  ...e,
2545
2545
  children: i ? /* @__PURE__ */ b("div", { className: "flex items-center gap-3", children: [
2546
2546
  /* @__PURE__ */ a(
2547
- oe,
2547
+ ie,
2548
2548
  {
2549
2549
  size: "sm",
2550
2550
  variant: "default",
@@ -2552,13 +2552,13 @@ const te = A.forwardRef(
2552
2552
  }
2553
2553
  ),
2554
2554
  /* @__PURE__ */ a("span", { children: "Processing Payment..." })
2555
- ] }) : /* @__PURE__ */ a("span", { children: c || `Pay ${x(r)} USDC` })
2555
+ ] }) : /* @__PURE__ */ a("span", { children: c || `Pay ${h(r)} USDC` })
2556
2556
  }
2557
2557
  );
2558
2558
  }
2559
2559
  );
2560
- te.displayName = "PaymentButton";
2561
- const Qr = Ue(
2560
+ ae.displayName = "PaymentButton";
2561
+ const et = Ue(
2562
2562
  "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",
2563
2563
  {
2564
2564
  variants: {
@@ -2574,10 +2574,10 @@ const Qr = Ue(
2574
2574
  }
2575
2575
  }
2576
2576
  );
2577
- function Ve({ className: r, variant: n, ...t }) {
2578
- return /* @__PURE__ */ a("div", { className: d(Qr({ variant: n }), r), ...t });
2577
+ function Ke({ className: r, variant: n, ...t }) {
2578
+ return /* @__PURE__ */ a("div", { className: d(et({ variant: n }), r), ...t });
2579
2579
  }
2580
- const Ke = ({
2580
+ const We = ({
2581
2581
  wallet: r,
2582
2582
  balance: n,
2583
2583
  network: t,
@@ -2587,9 +2587,9 @@ const Ke = ({
2587
2587
  className: u,
2588
2588
  style: c
2589
2589
  }) => {
2590
- var g;
2591
- const e = ((g = r == null ? void 0 : r.publicKey) == null ? void 0 : g.toString()) || (r == null ? void 0 : r.address), f = (s) => `${s.slice(0, 4)}...${s.slice(-4)}`, x = () => t === "solana" ? "Mainnet" : "Devnet";
2592
- return !r || !e ? /* @__PURE__ */ a(ne, { className: d("border-dashed", u), style: c, children: /* @__PURE__ */ a(ae, { className: "p-4 text-center text-muted-foreground", children: /* @__PURE__ */ a("p", { className: "text-sm", children: "No wallet connected" }) }) }) : /* @__PURE__ */ a(
2590
+ var x;
2591
+ const e = ((x = r == null ? void 0 : r.publicKey) == null ? void 0 : x.toString()) || (r == null ? void 0 : r.address), p = (g) => `${g.slice(0, 4)}...${g.slice(-4)}`, h = () => t === "solana" ? "Mainnet" : "Devnet";
2592
+ return !r || !e ? /* @__PURE__ */ a(oe, { className: d("border-dashed", u), style: c, children: /* @__PURE__ */ a(se, { className: "p-4 text-center text-muted-foreground", children: /* @__PURE__ */ a("p", { className: "text-sm", children: "No wallet connected" }) }) }) : /* @__PURE__ */ a(
2593
2593
  "div",
2594
2594
  {
2595
2595
  className: d(
@@ -2620,7 +2620,7 @@ const Ke = ({
2620
2620
  "text-sm font-mono",
2621
2621
  l === "light" || l === "solana-light" ? "text-black" : "text-white"
2622
2622
  ),
2623
- children: f(e)
2623
+ children: p(e)
2624
2624
  }
2625
2625
  )
2626
2626
  ] })
@@ -2647,11 +2647,11 @@ const Ke = ({
2647
2647
  t && /* @__PURE__ */ b("div", { className: "flex items-center justify-between", children: [
2648
2648
  /* @__PURE__ */ a("span", { className: "text-sm font-medium text-slate-600", children: "Network" }),
2649
2649
  /* @__PURE__ */ a(
2650
- Ve,
2650
+ Ke,
2651
2651
  {
2652
2652
  variant: "outline",
2653
2653
  className: "text-xs border-slate-300 text-slate-700",
2654
- children: x()
2654
+ children: h()
2655
2655
  }
2656
2656
  )
2657
2657
  ] })
@@ -2659,8 +2659,8 @@ const Ke = ({
2659
2659
  }
2660
2660
  );
2661
2661
  };
2662
- Ke.displayName = "WalletSection";
2663
- function et(r, n, t) {
2662
+ We.displayName = "WalletSection";
2663
+ function rt(r, n, t) {
2664
2664
  const o = Buffer.from(r.serialize()).toString("base64"), i = {
2665
2665
  x402Version: t,
2666
2666
  scheme: n.scheme,
@@ -2671,133 +2671,133 @@ function et(r, n, t) {
2671
2671
  };
2672
2672
  return Buffer.from(JSON.stringify(i)).toString("base64");
2673
2673
  }
2674
- function rt(r) {
2674
+ function tt(r) {
2675
2675
  if (r === "solana")
2676
2676
  return "https://api.mainnet-beta.solana.com";
2677
2677
  if (r === "solana-devnet")
2678
2678
  return "https://api.devnet.solana.com";
2679
2679
  throw new Error(`Unexpected network: ${r}`);
2680
2680
  }
2681
- async function tt(r, n, t, o) {
2682
- var E, L, $;
2683
- const i = new je(o, "confirmed"), l = (E = t == null ? void 0 : t.extra) == null ? void 0 : E.feePayer;
2681
+ async function nt(r, n, t, o) {
2682
+ var E, I, L;
2683
+ const i = new De(o, "confirmed"), l = (E = t == null ? void 0 : t.extra) == null ? void 0 : E.feePayer;
2684
2684
  if (typeof l != "string" || !l)
2685
2685
  throw new Error("Missing facilitator feePayer in payment requirements (extra.feePayer).");
2686
- const u = new W(l), c = ((L = r == null ? void 0 : r.publicKey) == null ? void 0 : L.toString()) || (r == null ? void 0 : r.address);
2686
+ const u = new H(l), c = ((I = r == null ? void 0 : r.publicKey) == null ? void 0 : I.toString()) || (r == null ? void 0 : r.address);
2687
2687
  if (!c)
2688
2688
  throw new Error("Missing connected Solana wallet address or publicKey");
2689
- const e = new W(c);
2689
+ const e = new H(c);
2690
2690
  if (!(t != null && t.payTo))
2691
2691
  throw new Error("Missing payTo in payment requirements");
2692
- const f = new W(t.payTo), x = [];
2693
- if (x.push(
2694
- Ne.setComputeUnitLimit({
2692
+ const p = new H(t.payTo), h = [];
2693
+ if (h.push(
2694
+ Ce.setComputeUnitLimit({
2695
2695
  units: 4e4
2696
2696
  // Sufficient for SPL token transfer + ATA creation
2697
2697
  })
2698
- ), x.push(
2699
- Ne.setComputeUnitPrice({
2698
+ ), h.push(
2699
+ Ce.setComputeUnitPrice({
2700
2700
  microLamports: 1
2701
2701
  // Minimal price
2702
2702
  })
2703
2703
  ), !t.asset)
2704
2704
  throw new Error("Missing token mint for SPL transfer");
2705
- const g = new W(t.asset), s = await i.getAccountInfo(g, "confirmed"), y = (($ = s == null ? void 0 : s.owner) == null ? void 0 : $.toBase58()) === Ce.toBase58() ? Ce : or, F = await sr(i, g, void 0, y), m = await ce(
2706
- g,
2705
+ const x = new H(t.asset), g = await i.getAccountInfo(x, "confirmed"), s = ((L = g == null ? void 0 : g.owner) == null ? void 0 : L.toBase58()) === Fe.toBase58() ? Fe : sr, A = await ir(i, x, void 0, s), k = await ue(
2706
+ x,
2707
2707
  e,
2708
2708
  !1,
2709
- y
2710
- ), w = await ce(
2711
- g,
2712
- f,
2709
+ s
2710
+ ), m = await ue(
2711
+ x,
2712
+ p,
2713
2713
  !1,
2714
- y
2714
+ s
2715
2715
  );
2716
- if (!await i.getAccountInfo(m, "confirmed"))
2716
+ if (!await i.getAccountInfo(k, "confirmed"))
2717
2717
  throw new Error(
2718
2718
  `User does not have an Associated Token Account for ${t.asset}. Please create one first or ensure you have the required token.`
2719
2719
  );
2720
- if (!await i.getAccountInfo(w, "confirmed")) {
2721
- const z = new W(
2720
+ if (!await i.getAccountInfo(m, "confirmed")) {
2721
+ const R = new H(
2722
2722
  "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL"
2723
- ), v = new Qe({
2723
+ ), y = new er({
2724
2724
  keys: [
2725
2725
  { pubkey: u, isSigner: !0, isWritable: !0 },
2726
- { pubkey: w, isSigner: !1, isWritable: !0 },
2727
- { pubkey: f, isSigner: !1, isWritable: !1 },
2728
- { pubkey: g, isSigner: !1, isWritable: !1 },
2729
- { pubkey: er.programId, isSigner: !1, isWritable: !1 },
2730
- { pubkey: y, isSigner: !1, isWritable: !1 }
2726
+ { pubkey: m, isSigner: !1, isWritable: !0 },
2727
+ { pubkey: p, isSigner: !1, isWritable: !1 },
2728
+ { pubkey: x, isSigner: !1, isWritable: !1 },
2729
+ { pubkey: rr.programId, isSigner: !1, isWritable: !1 },
2730
+ { pubkey: s, isSigner: !1, isWritable: !1 }
2731
2731
  ],
2732
- programId: z,
2732
+ programId: R,
2733
2733
  data: Buffer.from([0])
2734
2734
  // CreateATA discriminator
2735
2735
  });
2736
- x.push(v);
2736
+ h.push(y);
2737
2737
  }
2738
- const k = BigInt(t.maxAmountRequired);
2739
- x.push(
2740
- ir(
2738
+ const T = BigInt(t.maxAmountRequired);
2739
+ h.push(
2740
+ lr(
2741
+ k,
2742
+ x,
2741
2743
  m,
2742
- g,
2743
- w,
2744
2744
  e,
2745
- k,
2746
- F.decimals,
2745
+ T,
2746
+ A.decimals,
2747
2747
  [],
2748
- y
2748
+ s
2749
2749
  )
2750
2750
  );
2751
- const { blockhash: p } = await i.getLatestBlockhash("confirmed"), D = new rr({
2751
+ const { blockhash: v } = await i.getLatestBlockhash("confirmed"), f = new tr({
2752
2752
  payerKey: u,
2753
- recentBlockhash: p,
2754
- instructions: x
2755
- }).compileToV0Message(), I = new tr(D);
2753
+ recentBlockhash: v,
2754
+ instructions: h
2755
+ }).compileToV0Message(), z = new nr(f);
2756
2756
  if (typeof (r == null ? void 0 : r.signTransaction) != "function")
2757
2757
  throw new Error("Connected wallet does not support signTransaction");
2758
- const P = await r.signTransaction(I);
2759
- return et(
2760
- P,
2758
+ const D = await r.signTransaction(z);
2759
+ return rt(
2760
+ D,
2761
2761
  t,
2762
2762
  n
2763
2763
  );
2764
2764
  }
2765
- function nt(r, n, t, o = BigInt(0)) {
2765
+ function at(r, n, t, o = BigInt(0)) {
2766
2766
  return async (i, l) => {
2767
2767
  const u = await r(i, l);
2768
2768
  if (u.status !== 402)
2769
2769
  return u;
2770
- const c = await u.json(), e = c.x402Version, f = c.accepts || [], x = f.find(
2771
- (y) => y.scheme === "exact" && (y.network === "solana-devnet" || y.network === "solana")
2770
+ const c = await u.json(), e = c.x402Version, p = c.accepts || [], h = p.find(
2771
+ (s) => s.scheme === "exact" && (s.network === "solana-devnet" || s.network === "solana")
2772
2772
  );
2773
- if (!x)
2773
+ if (!h)
2774
2774
  throw console.error(
2775
2775
  "❌ No suitable Solana payment requirements found. Available networks:",
2776
- f.map((y) => y.network)
2776
+ p.map((s) => s.network)
2777
2777
  ), new Error("No suitable Solana payment requirements found");
2778
- if (o > BigInt(0) && BigInt(x.maxAmountRequired) > o)
2778
+ if (o > BigInt(0) && BigInt(h.maxAmountRequired) > o)
2779
2779
  throw new Error("Payment amount exceeds maximum allowed");
2780
- const g = await tt(
2780
+ const x = await nt(
2781
2781
  n,
2782
2782
  e,
2783
- x,
2783
+ h,
2784
2784
  t
2785
- ), s = {
2785
+ ), g = {
2786
2786
  ...l,
2787
2787
  headers: {
2788
2788
  ...(l == null ? void 0 : l.headers) || {},
2789
- "X-PAYMENT": g,
2789
+ "X-PAYMENT": x,
2790
2790
  "Access-Control-Expose-Headers": "X-PAYMENT-RESPONSE"
2791
2791
  }
2792
2792
  };
2793
- return await r(i, s);
2793
+ return await r(i, g);
2794
2794
  };
2795
2795
  }
2796
- var at = class {
2796
+ var ot = class {
2797
2797
  constructor(r) {
2798
- ke(this, "paymentFetch");
2799
- const n = r.rpcUrl || rt(r.network);
2800
- this.paymentFetch = nt(
2798
+ ve(this, "paymentFetch");
2799
+ const n = r.rpcUrl || tt(r.network);
2800
+ this.paymentFetch = at(
2801
2801
  fetch.bind(window),
2802
2802
  r.wallet,
2803
2803
  n,
@@ -2811,67 +2811,67 @@ var at = class {
2811
2811
  return this.paymentFetch(r, n);
2812
2812
  }
2813
2813
  };
2814
- function ot(r) {
2815
- return new at(r);
2816
- }
2817
2814
  function st(r) {
2818
- const [n, t] = X("idle"), [o, i] = X(null), [l, u] = X(null), [c, e] = X(!1), f = ve(() => {
2815
+ return new ot(r);
2816
+ }
2817
+ function it(r) {
2818
+ const [n, t] = J("idle"), [o, i] = J(null), [l, u] = J(null), [c, e] = J(!1), p = ye(() => {
2819
2819
  t("idle"), i(null), u(null), e(!1);
2820
2820
  }, []);
2821
2821
  return {
2822
- pay: ve(
2823
- async (g, s) => {
2824
- var y;
2822
+ pay: ye(
2823
+ async (x, g) => {
2824
+ var s;
2825
2825
  try {
2826
- if (e(!0), t("pending"), i(null), r.maxPaymentAmount && g > r.maxPaymentAmount)
2826
+ if (e(!0), t("pending"), i(null), r.maxPaymentAmount && x > r.maxPaymentAmount)
2827
2827
  throw new Error(
2828
- `Payment amount ${g} exceeds maximum allowed ${r.maxPaymentAmount}`
2828
+ `Payment amount ${x} exceeds maximum allowed ${r.maxPaymentAmount}`
2829
2829
  );
2830
- const F = ((y = r.wallet.publicKey) == null ? void 0 : y.toString()) || r.wallet.address;
2831
- if (!F)
2830
+ const A = ((s = r.wallet.publicKey) == null ? void 0 : s.toString()) || r.wallet.address;
2831
+ if (!A)
2832
2832
  throw new Error("Wallet not connected");
2833
- const m = ot({
2833
+ const k = st({
2834
2834
  wallet: r.wallet,
2835
2835
  network: r.network,
2836
2836
  rpcUrl: r.rpcUrl,
2837
2837
  maxPaymentAmount: r.maxPaymentAmount ? BigInt(Math.floor(r.maxPaymentAmount * 1e6)) : void 0
2838
- }), w = "https://x402.payai.network/api/solana/paid-content", N = r.apiEndpoint || w;
2838
+ }), m = "https://x402.payai.network/api/solana/paid-content", N = r.apiEndpoint || m;
2839
2839
  console.log("Initiating x402 payment:", {
2840
2840
  endpoint: N,
2841
- isDemo: N === w,
2842
- amount: g,
2843
- description: s,
2844
- wallet: F,
2841
+ isDemo: N === m,
2842
+ amount: x,
2843
+ description: g,
2844
+ wallet: A,
2845
2845
  network: r.network
2846
2846
  });
2847
- const k = await m.fetch(N, {
2847
+ const T = await k.fetch(N, {
2848
2848
  method: "POST",
2849
2849
  headers: {
2850
2850
  "Content-Type": "application/json"
2851
2851
  },
2852
2852
  body: JSON.stringify({
2853
- message: s,
2854
- amount: g
2853
+ message: g,
2854
+ amount: x
2855
2855
  })
2856
2856
  });
2857
- if (!k.ok)
2858
- throw new Error(`Payment request failed: ${k.statusText}`);
2859
- let p;
2860
- const D = k.headers.get("content-type");
2861
- D && D.includes("application/json") ? p = await k.json() : p = { content: await k.text() }, console.log("Payment successful:", p);
2862
- const I = k.headers.get("X-PAYMENT-RESPONSE");
2863
- let P = `tx_${Date.now()}`;
2864
- if (I)
2857
+ if (!T.ok)
2858
+ throw new Error(`Payment request failed: ${T.statusText}`);
2859
+ let v;
2860
+ const f = T.headers.get("content-type");
2861
+ f && f.includes("application/json") ? v = await T.json() : v = { content: await T.text() }, console.log("Payment successful:", v);
2862
+ const z = T.headers.get("X-PAYMENT-RESPONSE");
2863
+ let D = `tx_${Date.now()}`;
2864
+ if (z)
2865
2865
  try {
2866
- const E = JSON.parse(atob(I));
2867
- P = E.transactionId || E.signature || P, console.log("Payment details:", E);
2866
+ const E = JSON.parse(atob(z));
2867
+ D = E.transactionId || E.signature || D, console.log("Payment details:", E);
2868
2868
  } catch (E) {
2869
2869
  console.warn("Could not decode payment response:", E);
2870
2870
  }
2871
- return u(P), t("success"), e(!1), P;
2872
- } catch (F) {
2873
- const m = F instanceof Error ? F : new Error("Payment failed");
2874
- return i(m), t("error"), e(!1), null;
2871
+ return u(D), t("success"), e(!1), D;
2872
+ } catch (A) {
2873
+ const k = A instanceof Error ? A : new Error("Payment failed");
2874
+ return i(k), t("error"), e(!1), null;
2875
2875
  }
2876
2876
  },
2877
2877
  [r]
@@ -2880,10 +2880,10 @@ function st(r) {
2880
2880
  status: n,
2881
2881
  error: o,
2882
2882
  transactionId: l,
2883
- reset: f
2883
+ reset: p
2884
2884
  };
2885
2885
  }
2886
- const Pe = ({
2886
+ const je = ({
2887
2887
  amount: r,
2888
2888
  description: n,
2889
2889
  wallet: t,
@@ -2893,51 +2893,60 @@ const Pe = ({
2893
2893
  treasuryAddress: u,
2894
2894
  facilitatorUrl: c,
2895
2895
  theme: e = "solana-light",
2896
- showPaymentDetails: f = !0,
2896
+ logoUrl: p = "https://raw.githubusercontent.com/PayAINetwork/x402-solana-react/main/src/components/ui/SolanaLogo.svg",
2897
+ showPaymentDetails: h = !0,
2897
2898
  onDisconnect: x,
2898
2899
  classNames: g,
2899
2900
  customStyles: s,
2900
- maxPaymentAmount: y,
2901
+ maxPaymentAmount: A,
2901
2902
  // enablePaymentCaching = false, // TODO: Implement in future
2902
2903
  // autoRetry = false, // TODO: Implement in future
2903
- onPaymentStart: F,
2904
+ onPaymentStart: k,
2904
2905
  onPaymentSuccess: m,
2905
- onPaymentError: w,
2906
- onWalletConnect: N,
2906
+ onPaymentError: N,
2907
+ onWalletConnect: M,
2907
2908
  children: T
2908
2909
  }) => {
2909
- var xe, he, we;
2910
- const k = Je(), p = de(() => t || {
2911
- publicKey: k.publicKey ? { toString: () => k.publicKey.toString() } : void 0,
2912
- signTransaction: k.signTransaction
2913
- }, [t, k.publicKey, k.signTransaction]), [D, I] = X(!1), [P, E] = X("0.00"), L = Oe(null), { pay: $, isLoading: z, status: v, error: j, transactionId: U, reset: Q } = st({
2914
- wallet: p,
2910
+ var he, we, me;
2911
+ const v = Ye(), f = ce(() => t || {
2912
+ publicKey: v.publicKey ? { toString: () => v.publicKey.toString() } : void 0,
2913
+ signTransaction: v.signTransaction
2914
+ }, [t, v.publicKey, v.signTransaction]), [z, D] = J(!1), [E, I] = J("0.00"), L = He(null), R = o === "solana" ? "Mainnet" : "Devnet", { pay: y, isLoading: W, status: _, error: P, transactionId: U, reset: te } = it({
2915
+ wallet: f,
2915
2916
  network: o,
2916
2917
  rpcUrl: i,
2917
2918
  apiEndpoint: l,
2918
2919
  treasuryAddress: u,
2919
2920
  facilitatorUrl: c,
2920
- maxPaymentAmount: y
2921
- }), _ = () => {
2922
- x ? x() : !t && k.disconnect && k.disconnect();
2923
- }, ee = t ? t.publicKey || t.address : k.connected && k.publicKey;
2924
- re(() => (document.body.className = document.body.className.replace(/wallet-modal-theme-\w+/g, "").replace(/\s+/g, " ").trim(), e && (document.body.className += ` wallet-modal-theme-${e}`), () => {
2921
+ maxPaymentAmount: A
2922
+ }), q = () => {
2923
+ x ? x() : !t && v.disconnect && v.disconnect();
2924
+ }, O = t ? !!(t.publicKey || t.address) : !!(v.connected || v.publicKey);
2925
+ ne(() => (document.body.className = document.body.className.replace(/wallet-modal-theme-\w+/g, "").replace(/\s+/g, " ").trim(), e && (document.body.className += ` wallet-modal-theme-${e}`), () => {
2925
2926
  document.body.className = document.body.className.replace(/wallet-modal-theme-\w+/g, "").replace(/\s+/g, " ").trim();
2926
- }), [e]), re(() => {
2927
- var R, H;
2928
- const Z = ((R = k.publicKey) == null ? void 0 : R.toString()) || ((H = t == null ? void 0 : t.publicKey) == null ? void 0 : H.toString()) || (t == null ? void 0 : t.address);
2929
- Z && k.connected && (console.log("Wallet connected:", Z), N == null || N(Z), cr(Z, o, i).then(E)), !k.connected && !t && E("0.00");
2930
- }, [k.publicKey, k.connected, k.connecting, t, o, i, N]), re(() => {
2931
- v === "success" && U && (I(!0), m == null || m(U));
2932
- }, [v, U, m]), re(() => {
2933
- j && (w == null || w(j));
2934
- }, [j, w]);
2935
- const O = async () => {
2936
- F == null || F(), await $(r, n);
2927
+ }), [e]), ne(() => {
2928
+ var $, X;
2929
+ const S = (($ = v.publicKey) == null ? void 0 : $.toString()) || ((X = t == null ? void 0 : t.publicKey) == null ? void 0 : X.toString()) || (t == null ? void 0 : t.address);
2930
+ S && v.connected && (console.log("Wallet connected:", S), M == null || M(S), ur(S, o, i).then(I)), !v.connected && !t && I("0.00");
2931
+ }, [
2932
+ v.publicKey,
2933
+ v.connected,
2934
+ v.connecting,
2935
+ t,
2936
+ o,
2937
+ i,
2938
+ M
2939
+ ]), ne(() => {
2940
+ _ === "success" && U && (D(!0), m == null || m(U));
2941
+ }, [_, U, m]), ne(() => {
2942
+ P && (N == null || N(P));
2943
+ }, [P, N]);
2944
+ const Q = async () => {
2945
+ k == null || k(), await y(r, n);
2937
2946
  };
2938
- if (D)
2939
- return /* @__PURE__ */ a(ie, { children: T });
2940
- const G = j && (e === "dark" || e === "solana-dark" || e === "light" || e === "solana-light" || e === "seeker" || e === "seeker-2"), M = (() => {
2947
+ if (z)
2948
+ return /* @__PURE__ */ a(le, { children: T });
2949
+ const j = P && (e === "dark" || e === "solana-dark" || e === "light" || e === "solana-light" || e === "seeker" || e === "seeker-2"), B = (() => {
2941
2950
  switch (e) {
2942
2951
  case "solana-dark":
2943
2952
  return {
@@ -3041,8 +3050,8 @@ const Pe = ({
3041
3050
  };
3042
3051
  }
3043
3052
  })();
3044
- if (!ee) {
3045
- const R = (() => {
3053
+ if (!O) {
3054
+ const $ = (() => {
3046
3055
  switch (e) {
3047
3056
  case "solana-dark":
3048
3057
  return {
@@ -3123,7 +3132,7 @@ const Pe = ({
3123
3132
  {
3124
3133
  className: d(
3125
3134
  "flex items-center justify-center min-h-screen p-4",
3126
- R.container,
3135
+ $.container,
3127
3136
  g == null ? void 0 : g.container
3128
3137
  ),
3129
3138
  style: e === "dark" ? {
@@ -3140,11 +3149,11 @@ const Pe = ({
3140
3149
  ...s == null ? void 0 : s.container
3141
3150
  } : s == null ? void 0 : s.container,
3142
3151
  children: /* @__PURE__ */ b(
3143
- ne,
3152
+ oe,
3144
3153
  {
3145
3154
  className: d(
3146
3155
  "w-full max-w-lg shadow-2xl border-0",
3147
- R.card,
3156
+ $.card,
3148
3157
  g == null ? void 0 : g.card
3149
3158
  ),
3150
3159
  style: e === "seeker" ? { backgroundColor: "#171719", ...s == null ? void 0 : s.card } : e === "seeker-2" ? {
@@ -3153,19 +3162,19 @@ const Pe = ({
3153
3162
  ...s == null ? void 0 : s.card
3154
3163
  } : s == null ? void 0 : s.card,
3155
3164
  children: [
3156
- /* @__PURE__ */ b(be, { className: "pb-6", children: [
3165
+ /* @__PURE__ */ b(ge, { className: "pb-6", children: [
3157
3166
  /* @__PURE__ */ b("div", { className: "flex items-center space-x-4 mb-6", children: [
3158
3167
  /* @__PURE__ */ a("div", { className: "w-auto h-auto rounded-full p-[2px] flex items-center justify-center overflow-hidden", children: /* @__PURE__ */ a("div", { className: "w-full h-full rounded-full flex items-center justify-center", children: /* @__PURE__ */ a(
3159
3168
  "img",
3160
3169
  {
3161
- src: "/src/components/ui/SolanaLogo.svg",
3162
- alt: "Solana",
3170
+ src: p,
3171
+ alt: "Logo",
3163
3172
  className: "w-12 h-auto"
3164
3173
  }
3165
3174
  ) }) }),
3166
3175
  /* @__PURE__ */ b("div", { children: [
3167
3176
  /* @__PURE__ */ a(
3168
- ge,
3177
+ pe,
3169
3178
  {
3170
3179
  className: d(
3171
3180
  "text-l fw-bold pb-1",
@@ -3176,7 +3185,7 @@ const Pe = ({
3176
3185
  }
3177
3186
  ),
3178
3187
  /* @__PURE__ */ a(
3179
- pe,
3188
+ fe,
3180
3189
  {
3181
3190
  className: d(
3182
3191
  "text-sm font-light",
@@ -3225,11 +3234,11 @@ const Pe = ({
3225
3234
  )
3226
3235
  ] })
3227
3236
  ] }),
3228
- /* @__PURE__ */ b(ae, { className: "space-y-6", children: [
3237
+ /* @__PURE__ */ b(se, { className: "space-y-6", children: [
3229
3238
  /* @__PURE__ */ b(
3230
3239
  "div",
3231
3240
  {
3232
- className: d("p-6", R.paymentDetails),
3241
+ className: d("p-6", $.paymentDetails),
3233
3242
  style: e === "seeker" || e === "seeker-2" ? { backgroundColor: "rgba(0, 0, 0, 0.12)" } : e === "dark" || e === "solana-dark" ? { boxShadow: "0px 0px 16px 4px #000000 inset" } : void 0,
3234
3243
  children: [
3235
3244
  /* @__PURE__ */ b("div", { className: "flex items-center justify-between mb-4", children: [
@@ -3342,22 +3351,37 @@ const Pe = ({
3342
3351
  ]
3343
3352
  }
3344
3353
  ),
3345
- /* @__PURE__ */ a("span", { className: d("text-sm", R.securityMessage), children: "Secure payment powered by Solana" })
3354
+ /* @__PURE__ */ a(
3355
+ "span",
3356
+ {
3357
+ className: d("text-sm", $.securityMessage),
3358
+ children: "Secure payment powered by Solana"
3359
+ }
3360
+ )
3346
3361
  ] }),
3347
3362
  /* @__PURE__ */ b("div", { className: "relative", children: [
3348
- /* @__PURE__ */ a("div", { ref: L, className: "absolute opacity-0 pointer-events-none -z-10", children: /* @__PURE__ */ a(Ze, {}) }),
3349
3363
  /* @__PURE__ */ a(
3350
- te,
3364
+ "div",
3365
+ {
3366
+ ref: L,
3367
+ className: "absolute opacity-0 pointer-events-none -z-10",
3368
+ children: /* @__PURE__ */ a(qe, {})
3369
+ }
3370
+ ),
3371
+ /* @__PURE__ */ a(
3372
+ ae,
3351
3373
  {
3352
3374
  amount: r,
3353
3375
  description: n,
3354
3376
  customText: "Connect Wallet",
3355
3377
  onClick: () => {
3356
- var me;
3357
- const H = (me = L.current) == null ? void 0 : me.querySelector("button");
3358
- H == null || H.click();
3378
+ var ke;
3379
+ const X = (ke = L.current) == null ? void 0 : ke.querySelector(
3380
+ "button"
3381
+ );
3382
+ X == null || X.click();
3359
3383
  },
3360
- className: d("w-full h-12", R.button),
3384
+ className: d("w-full h-12", $.button),
3361
3385
  style: e === "dark" ? {
3362
3386
  backgroundColor: "#FFFFFF1F",
3363
3387
  boxShadow: "0 1px 0 0 rgba(255, 255, 255, 0.3) inset"
@@ -3368,7 +3392,7 @@ const Pe = ({
3368
3392
  }
3369
3393
  )
3370
3394
  ] }),
3371
- /* @__PURE__ */ a("div", { className: "text-center", children: /* @__PURE__ */ b("p", { className: d("text-sm", R.helperText), children: [
3395
+ /* @__PURE__ */ a("div", { className: "text-center", children: /* @__PURE__ */ b("p", { className: d("text-sm", $.helperText), children: [
3372
3396
  "Don't have USDC?",
3373
3397
  " ",
3374
3398
  /* @__PURE__ */ b("a", { href: "#", className: "font-medium text-[#4ADE80] underline", children: [
@@ -3403,7 +3427,7 @@ const Pe = ({
3403
3427
  {
3404
3428
  className: d(
3405
3429
  "flex items-center justify-center min-h-screen p-4",
3406
- M.container,
3430
+ B.container,
3407
3431
  g == null ? void 0 : g.container
3408
3432
  ),
3409
3433
  style: e === "dark" ? {
@@ -3420,11 +3444,11 @@ const Pe = ({
3420
3444
  ...s == null ? void 0 : s.container
3421
3445
  } : s == null ? void 0 : s.container,
3422
3446
  children: /* @__PURE__ */ b(
3423
- ne,
3447
+ oe,
3424
3448
  {
3425
3449
  className: d(
3426
3450
  "w-full max-w-lg shadow-2xl border-0",
3427
- M.card,
3451
+ B.card,
3428
3452
  g == null ? void 0 : g.card
3429
3453
  ),
3430
3454
  style: e === "seeker" ? {
@@ -3436,23 +3460,23 @@ const Pe = ({
3436
3460
  ...s == null ? void 0 : s.card
3437
3461
  } : s == null ? void 0 : s.card,
3438
3462
  children: [
3439
- /* @__PURE__ */ b(be, { className: "pb-6", children: [
3463
+ /* @__PURE__ */ b(ge, { className: "pb-6", children: [
3440
3464
  /* @__PURE__ */ b("div", { className: "flex items-center space-x-4 mb-6", children: [
3441
3465
  /* @__PURE__ */ a("div", { className: "w-auto h-auto rounded-full p-[2px] flex items-center justify-center overflow-hidden", children: /* @__PURE__ */ a("div", { className: "w-full h-full rounded-full flex items-center justify-center", children: /* @__PURE__ */ a(
3442
3466
  "img",
3443
3467
  {
3444
- src: "/src/components/ui/SolanaLogo.svg",
3445
- alt: "Solana",
3468
+ src: p,
3469
+ alt: "Logo",
3446
3470
  className: "w-12 h-auto"
3447
3471
  }
3448
3472
  ) }) }),
3449
3473
  /* @__PURE__ */ b("div", { children: [
3450
3474
  /* @__PURE__ */ a(
3451
- ge,
3475
+ pe,
3452
3476
  {
3453
3477
  className: d(
3454
3478
  "text-l fw-bold pb-1",
3455
- M.title,
3479
+ B.title,
3456
3480
  g == null ? void 0 : g.text
3457
3481
  ),
3458
3482
  style: s == null ? void 0 : s.text,
@@ -3460,7 +3484,7 @@ const Pe = ({
3460
3484
  }
3461
3485
  ),
3462
3486
  /* @__PURE__ */ a(
3463
- pe,
3487
+ fe,
3464
3488
  {
3465
3489
  className: d(
3466
3490
  "text-sm font-light",
@@ -3481,7 +3505,7 @@ const Pe = ({
3481
3505
  style: e === "seeker" ? { borderBottom: "1px solid #FFFFFF1F" } : e === "seeker-2" ? { borderBottom: "1px solid #FFFFFF1F" } : void 0
3482
3506
  }
3483
3507
  ),
3484
- !G && /* @__PURE__ */ b("div", { className: "text-center", children: [
3508
+ !j && /* @__PURE__ */ b("div", { className: "text-center", children: [
3485
3509
  /* @__PURE__ */ a(
3486
3510
  "h2",
3487
3511
  {
@@ -3504,7 +3528,7 @@ const Pe = ({
3504
3528
  )
3505
3529
  ] })
3506
3530
  ] }),
3507
- /* @__PURE__ */ a(ae, { className: "space-y-6", children: G ? /* @__PURE__ */ b(ie, { children: [
3531
+ /* @__PURE__ */ a(se, { className: "space-y-6", children: j ? /* @__PURE__ */ b(le, { children: [
3508
3532
  /* @__PURE__ */ a("div", { className: "flex justify-center mb-4", children: /* @__PURE__ */ a("div", { className: "w-16 h-16 rounded-full bg-red-500 flex items-center justify-center", children: /* @__PURE__ */ a(
3509
3533
  "svg",
3510
3534
  {
@@ -3523,115 +3547,208 @@ const Pe = ({
3523
3547
  )
3524
3548
  }
3525
3549
  ) }) }),
3526
- /* @__PURE__ */ a("div", { className: "text-center mb-2", children: /* @__PURE__ */ a("h3", { className: d(
3527
- "text-2xl font-semibold",
3528
- e === "dark" || e === "solana-dark" || e === "seeker" || e === "seeker-2" ? "text-white" : "text-slate-900"
3529
- ), children: "Payment Failed" }) }),
3530
- /* @__PURE__ */ a("p", { className: d(
3531
- "text-center text-sm mb-6",
3532
- e === "dark" || e === "solana-dark" || e === "seeker" || e === "seeker-2" ? "text-gray-400" : "text-slate-600"
3533
- ), children: (j == null ? void 0 : j.message) || "It looks like your wallet doesn't have enough funds or the transaction was declined. Please review the details and try again." }),
3534
- /* @__PURE__ */ a("div", { className: d(
3535
- "rounded-lg p-6",
3536
- e === "dark" || e === "solana-dark" ? "bg-[#0000001F] border border-slate-600" : e === "seeker" || e === "seeker-2" ? "bg-[rgba(0,0,0,0.12)] border border-white/10" : "bg-slate-50 border border-slate-200"
3537
- ), children: /* @__PURE__ */ b("div", { className: "space-y-3", children: [
3538
- /* @__PURE__ */ b("div", { className: "flex items-center justify-between", children: [
3539
- /* @__PURE__ */ a("span", { className: d(
3540
- "text-sm",
3541
- e === "dark" || e === "solana-dark" || e === "seeker" || e === "seeker-2" ? "text-white" : "text-slate-900"
3542
- ), children: "Amount Paid" }),
3543
- /* @__PURE__ */ b("span", { className: d(
3544
- "text-sm font-semibold",
3545
- e === "light" || e === "solana-light" ? "text-purple-600" : "text-green-500"
3546
- ), children: [
3547
- "$",
3548
- r.toFixed(2)
3549
- ] })
3550
- ] }),
3551
- /* @__PURE__ */ b("div", { className: "flex items-center justify-between", children: [
3552
- /* @__PURE__ */ a("span", { className: d(
3553
- "text-sm",
3554
- e === "dark" || e === "solana-dark" || e === "seeker" || e === "seeker-2" ? "text-white" : "text-slate-900"
3555
- ), children: "Wallet" }),
3556
- /* @__PURE__ */ a("span", { className: d(
3557
- "text-sm",
3558
- e === "dark" || e === "solana-dark" || e === "seeker" || e === "seeker-2" ? "text-white" : "text-slate-900"
3559
- ), children: (xe = p == null ? void 0 : p.publicKey) != null && xe.toString() ? `${p.publicKey.toString().slice(0, 6)}...${p.publicKey.toString().slice(-4)}` : p != null && p.address ? `${p.address.slice(0, 6)}...${p.address.slice(-4)}` : "Not connected" })
3560
- ] }),
3561
- /* @__PURE__ */ b("div", { className: "flex items-center justify-between", children: [
3562
- /* @__PURE__ */ a("span", { className: d(
3563
- "text-sm",
3564
- e === "dark" || e === "solana-dark" || e === "seeker" || e === "seeker-2" ? "text-white" : "text-slate-900"
3565
- ), children: "Available Balance" }),
3566
- /* @__PURE__ */ b("span", { className: d(
3567
- "text-sm",
3568
- e === "dark" || e === "solana-dark" || e === "seeker" || e === "seeker-2" ? "text-white" : "text-slate-900"
3569
- ), children: [
3570
- "$",
3571
- P
3572
- ] })
3573
- ] }),
3574
- /* @__PURE__ */ b("div", { className: "flex items-center justify-between", children: [
3575
- /* @__PURE__ */ a("span", { className: d(
3576
- "text-sm",
3577
- e === "dark" || e === "solana-dark" || e === "seeker" || e === "seeker-2" ? "text-white" : "text-slate-900"
3578
- ), children: "Currency" }),
3579
- /* @__PURE__ */ a("span", { className: d(
3580
- "text-sm",
3581
- e === "dark" || e === "solana-dark" || e === "seeker" || e === "seeker-2" ? "text-white" : "text-slate-900"
3582
- ), children: "USDC" })
3583
- ] }),
3584
- /* @__PURE__ */ b("div", { className: "flex items-center justify-between", children: [
3585
- /* @__PURE__ */ a("span", { className: d(
3586
- "text-sm",
3550
+ /* @__PURE__ */ a("div", { className: "text-center mb-2", children: /* @__PURE__ */ a(
3551
+ "h3",
3552
+ {
3553
+ className: d(
3554
+ "text-2xl font-semibold",
3587
3555
  e === "dark" || e === "solana-dark" || e === "seeker" || e === "seeker-2" ? "text-white" : "text-slate-900"
3588
- ), children: "Network" }),
3589
- /* @__PURE__ */ b("div", { className: "flex items-center space-x-2", children: [
3590
- /* @__PURE__ */ a("div", { className: "w-2 h-2 rounded-full bg-green-500" }),
3591
- /* @__PURE__ */ a("span", { className: d(
3592
- "text-sm",
3593
- e === "dark" || e === "solana-dark" || e === "seeker" || e === "seeker-2" ? "text-white" : "text-slate-900"
3594
- ), children: "Solana" })
3556
+ ),
3557
+ children: "Payment Failed"
3558
+ }
3559
+ ) }),
3560
+ /* @__PURE__ */ a(
3561
+ "p",
3562
+ {
3563
+ className: d(
3564
+ "text-center text-sm mb-6",
3565
+ e === "dark" || e === "solana-dark" || e === "seeker" || e === "seeker-2" ? "text-gray-400" : "text-slate-600"
3566
+ ),
3567
+ children: (P == null ? void 0 : P.message) || "It looks like your wallet doesn't have enough funds or the transaction was declined. Please review the details and try again."
3568
+ }
3569
+ ),
3570
+ /* @__PURE__ */ a(
3571
+ "div",
3572
+ {
3573
+ className: d(
3574
+ "rounded-lg p-6",
3575
+ e === "dark" || e === "solana-dark" ? "bg-[#0000001F] border border-slate-600" : e === "seeker" || e === "seeker-2" ? "bg-[rgba(0,0,0,0.12)] border border-white/10" : "bg-slate-50 border border-slate-200"
3576
+ ),
3577
+ children: /* @__PURE__ */ b("div", { className: "space-y-3", children: [
3578
+ /* @__PURE__ */ b("div", { className: "flex items-center justify-between", children: [
3579
+ /* @__PURE__ */ a(
3580
+ "span",
3581
+ {
3582
+ className: d(
3583
+ "text-sm",
3584
+ e === "dark" || e === "solana-dark" || e === "seeker" || e === "seeker-2" ? "text-white" : "text-slate-900"
3585
+ ),
3586
+ children: "Amount Paid"
3587
+ }
3588
+ ),
3589
+ /* @__PURE__ */ b(
3590
+ "span",
3591
+ {
3592
+ className: d(
3593
+ "text-sm font-semibold",
3594
+ e === "light" || e === "solana-light" ? "text-purple-600" : "text-green-500"
3595
+ ),
3596
+ children: [
3597
+ "$",
3598
+ r.toFixed(2)
3599
+ ]
3600
+ }
3601
+ )
3602
+ ] }),
3603
+ /* @__PURE__ */ b("div", { className: "flex items-center justify-between", children: [
3604
+ /* @__PURE__ */ a(
3605
+ "span",
3606
+ {
3607
+ className: d(
3608
+ "text-sm",
3609
+ e === "dark" || e === "solana-dark" || e === "seeker" || e === "seeker-2" ? "text-white" : "text-slate-900"
3610
+ ),
3611
+ children: "Wallet"
3612
+ }
3613
+ ),
3614
+ /* @__PURE__ */ a(
3615
+ "span",
3616
+ {
3617
+ className: d(
3618
+ "text-sm",
3619
+ e === "dark" || e === "solana-dark" || e === "seeker" || e === "seeker-2" ? "text-white" : "text-slate-900"
3620
+ ),
3621
+ children: (he = f == null ? void 0 : f.publicKey) != null && he.toString() ? `${f.publicKey.toString().slice(0, 6)}...${f.publicKey.toString().slice(-4)}` : f != null && f.address ? `${f.address.slice(
3622
+ 0,
3623
+ 6
3624
+ )}...${f.address.slice(-4)}` : "Not connected"
3625
+ }
3626
+ )
3627
+ ] }),
3628
+ /* @__PURE__ */ b("div", { className: "flex items-center justify-between", children: [
3629
+ /* @__PURE__ */ a(
3630
+ "span",
3631
+ {
3632
+ className: d(
3633
+ "text-sm",
3634
+ e === "dark" || e === "solana-dark" || e === "seeker" || e === "seeker-2" ? "text-white" : "text-slate-900"
3635
+ ),
3636
+ children: "Available Balance"
3637
+ }
3638
+ ),
3639
+ /* @__PURE__ */ b(
3640
+ "span",
3641
+ {
3642
+ className: d(
3643
+ "text-sm",
3644
+ e === "dark" || e === "solana-dark" || e === "seeker" || e === "seeker-2" ? "text-white" : "text-slate-900"
3645
+ ),
3646
+ children: [
3647
+ "$",
3648
+ E
3649
+ ]
3650
+ }
3651
+ )
3652
+ ] }),
3653
+ /* @__PURE__ */ b("div", { className: "flex items-center justify-between", children: [
3654
+ /* @__PURE__ */ a(
3655
+ "span",
3656
+ {
3657
+ className: d(
3658
+ "text-sm",
3659
+ e === "dark" || e === "solana-dark" || e === "seeker" || e === "seeker-2" ? "text-white" : "text-slate-900"
3660
+ ),
3661
+ children: "Currency"
3662
+ }
3663
+ ),
3664
+ /* @__PURE__ */ a(
3665
+ "span",
3666
+ {
3667
+ className: d(
3668
+ "text-sm",
3669
+ e === "dark" || e === "solana-dark" || e === "seeker" || e === "seeker-2" ? "text-white" : "text-slate-900"
3670
+ ),
3671
+ children: "USDC"
3672
+ }
3673
+ )
3674
+ ] }),
3675
+ /* @__PURE__ */ b("div", { className: "flex items-center justify-between", children: [
3676
+ /* @__PURE__ */ a(
3677
+ "span",
3678
+ {
3679
+ className: d(
3680
+ "text-sm",
3681
+ e === "dark" || e === "solana-dark" || e === "seeker" || e === "seeker-2" ? "text-white" : "text-slate-900"
3682
+ ),
3683
+ children: "Network"
3684
+ }
3685
+ ),
3686
+ /* @__PURE__ */ b("div", { className: "flex items-center space-x-2", children: [
3687
+ /* @__PURE__ */ a("div", { className: "w-2 h-2 rounded-full bg-green-500" }),
3688
+ /* @__PURE__ */ a(
3689
+ "span",
3690
+ {
3691
+ className: d(
3692
+ "text-sm",
3693
+ e === "dark" || e === "solana-dark" || e === "seeker" || e === "seeker-2" ? "text-white" : "text-slate-900"
3694
+ ),
3695
+ children: R
3696
+ }
3697
+ )
3698
+ ] })
3699
+ ] })
3595
3700
  ] })
3596
- ] })
3597
- ] }) }),
3598
- /* @__PURE__ */ b("div", { className: d(
3599
- "rounded-lg p-4 flex items-start space-x-3",
3600
- e === "dark" || e === "solana-dark" || e === "seeker" || e === "seeker-2" ? "bg-orange-900/50 border border-orange-700" : "bg-orange-50 border border-orange-200"
3601
- ), children: [
3602
- /* @__PURE__ */ a("div", { className: "flex-shrink-0", children: /* @__PURE__ */ a("div", { className: "w-6 h-6 rounded-full bg-orange-500 flex items-center justify-center", children: /* @__PURE__ */ a(
3603
- "svg",
3604
- {
3605
- className: "w-4 h-4 text-white",
3606
- fill: "none",
3607
- stroke: "currentColor",
3608
- viewBox: "0 0 24 24",
3609
- strokeWidth: "2",
3610
- children: /* @__PURE__ */ a(
3611
- "path",
3701
+ }
3702
+ ),
3703
+ /* @__PURE__ */ b(
3704
+ "div",
3705
+ {
3706
+ className: d(
3707
+ "rounded-lg p-4 flex items-start space-x-3",
3708
+ e === "dark" || e === "solana-dark" || e === "seeker" || e === "seeker-2" ? "bg-orange-900/50 border border-orange-700" : "bg-orange-50 border border-orange-200"
3709
+ ),
3710
+ children: [
3711
+ /* @__PURE__ */ a("div", { className: "flex-shrink-0", children: /* @__PURE__ */ a("div", { className: "w-6 h-6 rounded-full bg-orange-500 flex items-center justify-center", children: /* @__PURE__ */ a(
3712
+ "svg",
3612
3713
  {
3613
- strokeLinecap: "round",
3614
- strokeLinejoin: "round",
3615
- d: "M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-3L13.732 4c-.77-1.333-2.694-1.333-3.464 0L3.34 16c-.77 1.333.192 3 1.732 3z"
3714
+ className: "w-4 h-4 text-white",
3715
+ fill: "none",
3716
+ stroke: "currentColor",
3717
+ viewBox: "0 0 24 24",
3718
+ strokeWidth: "2",
3719
+ children: /* @__PURE__ */ a(
3720
+ "path",
3721
+ {
3722
+ strokeLinecap: "round",
3723
+ strokeLinejoin: "round",
3724
+ d: "M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-3L13.732 4c-.77-1.333-2.694-1.333-3.464 0L3.34 16c-.77 1.333.192 3 1.732 3z"
3725
+ }
3726
+ )
3727
+ }
3728
+ ) }) }),
3729
+ /* @__PURE__ */ a(
3730
+ "p",
3731
+ {
3732
+ className: d(
3733
+ "text-sm",
3734
+ e === "dark" || e === "solana-dark" || e === "seeker" || e === "seeker-2" ? "text-white" : "text-orange-800"
3735
+ ),
3736
+ children: "Make sure your Solana wallet has enough USDC to cover the amount before retrying the transaction."
3616
3737
  }
3617
3738
  )
3618
- }
3619
- ) }) }),
3620
- /* @__PURE__ */ a("p", { className: d(
3621
- "text-sm",
3622
- e === "dark" || e === "solana-dark" || e === "seeker" || e === "seeker-2" ? "text-white" : "text-orange-800"
3623
- ), children: "Make sure your Solana wallet has enough USDC to cover the amount before retrying the transaction." })
3624
- ] }),
3739
+ ]
3740
+ }
3741
+ ),
3625
3742
  /* @__PURE__ */ a(
3626
- te,
3743
+ ae,
3627
3744
  {
3628
3745
  amount: r,
3629
3746
  description: n,
3630
3747
  onClick: () => {
3631
- Q(), O();
3748
+ te(), Q();
3632
3749
  },
3633
- loading: z,
3634
- disabled: z || !(p != null && p.publicKey),
3750
+ loading: W,
3751
+ disabled: W || !(f != null && f.publicKey),
3635
3752
  className: d(
3636
3753
  "w-full h-12",
3637
3754
  e === "dark" || e === "solana-dark" ? e === "dark" ? "bg-[#FFFFFF1F] rounded-full" : "bg-solana-gradient rounded-full" : e === "light" ? "bg-black hover:bg-gray-800 text-white font-light rounded-full" : e === "solana-light" ? "bg-solana-gradient hover:opacity-90 text-white font-light rounded-full" : e === "seeker" || e === "seeker-2" ? "bg-gradient-to-r from-emerald-500 to-teal-500 hover:from-emerald-600 hover:to-teal-600 text-white rounded-full" : "bg-solana-gradient rounded-full",
@@ -3653,54 +3770,69 @@ const Pe = ({
3653
3770
  customText: "Try Again"
3654
3771
  }
3655
3772
  ),
3656
- /* @__PURE__ */ a("div", { className: "text-center", children: /* @__PURE__ */ b("p", { className: d(
3657
- "text-sm",
3658
- e === "dark" || e === "solana-dark" || e === "seeker" || e === "seeker-2" ? "text-white" : "text-slate-900"
3659
- ), children: [
3660
- /* @__PURE__ */ a("span", { className: d(
3661
- e === "dark" || e === "solana-dark" || e === "seeker" || e === "seeker-2" ? "text-gray-400" : "text-slate-600"
3662
- ), children: "Don't have USDC? " }),
3663
- /* @__PURE__ */ b(
3664
- "a",
3665
- {
3666
- href: "https://www.coinbase.com/how-to-buy/usdc",
3667
- target: "_blank",
3668
- rel: "noopener noreferrer",
3669
- className: d(
3670
- "font-medium hover:opacity-80",
3671
- e === "light" || e === "solana-light" ? "text-purple-600" : "text-green-400 hover:text-green-300"
3773
+ /* @__PURE__ */ a("div", { className: "text-center", children: /* @__PURE__ */ b(
3774
+ "p",
3775
+ {
3776
+ className: d(
3777
+ "text-sm",
3778
+ e === "dark" || e === "solana-dark" || e === "seeker" || e === "seeker-2" ? "text-white" : "text-slate-900"
3779
+ ),
3780
+ children: [
3781
+ /* @__PURE__ */ b(
3782
+ "span",
3783
+ {
3784
+ className: d(
3785
+ e === "dark" || e === "solana-dark" || e === "seeker" || e === "seeker-2" ? "text-gray-400" : "text-slate-600"
3786
+ ),
3787
+ children: [
3788
+ "Don't have USDC?",
3789
+ " "
3790
+ ]
3791
+ }
3672
3792
  ),
3673
- children: [
3674
- "Get it here",
3675
- /* @__PURE__ */ a(
3676
- "svg",
3677
- {
3678
- className: d(
3679
- "inline w-3 h-3 ml-1",
3680
- e === "light" || e === "solana-light" ? "text-purple-600" : "text-green-400"
3681
- ),
3682
- fill: "currentColor",
3683
- viewBox: "0 0 20 20",
3684
- children: /* @__PURE__ */ a(
3685
- "path",
3793
+ /* @__PURE__ */ b(
3794
+ "a",
3795
+ {
3796
+ href: "https://www.coinbase.com/how-to-buy/usdc",
3797
+ target: "_blank",
3798
+ rel: "noopener noreferrer",
3799
+ className: d(
3800
+ "font-medium hover:opacity-80",
3801
+ e === "light" || e === "solana-light" ? "text-purple-600" : "text-green-400 hover:text-green-300"
3802
+ ),
3803
+ children: [
3804
+ "Get it here",
3805
+ /* @__PURE__ */ a(
3806
+ "svg",
3686
3807
  {
3687
- fillRule: "evenodd",
3688
- d: "M10.293 3.293a1 1 0 011.414 0l6 6a1 1 0 010 1.414l-6 6a1 1 0 01-1.414-1.414L14.586 11H3a1 1 0 110-2h11.586l-4.293-4.293a1 1 0 010-1.414z",
3689
- clipRule: "evenodd"
3808
+ className: d(
3809
+ "inline w-3 h-3 ml-1",
3810
+ e === "light" || e === "solana-light" ? "text-purple-600" : "text-green-400"
3811
+ ),
3812
+ fill: "currentColor",
3813
+ viewBox: "0 0 20 20",
3814
+ children: /* @__PURE__ */ a(
3815
+ "path",
3816
+ {
3817
+ fillRule: "evenodd",
3818
+ d: "M10.293 3.293a1 1 0 011.414 0l6 6a1 1 0 010 1.414l-6 6a1 1 0 01-1.414-1.414L14.586 11H3a1 1 0 110-2h11.586l-4.293-4.293a1 1 0 010-1.414z",
3819
+ clipRule: "evenodd"
3820
+ }
3821
+ )
3690
3822
  }
3691
3823
  )
3692
- }
3693
- )
3694
- ]
3695
- }
3696
- )
3697
- ] }) })
3698
- ] }) : /* @__PURE__ */ b(ie, { children: [
3824
+ ]
3825
+ }
3826
+ )
3827
+ ]
3828
+ }
3829
+ ) })
3830
+ ] }) : /* @__PURE__ */ b(le, { children: [
3699
3831
  /* @__PURE__ */ a(
3700
- Ke,
3832
+ We,
3701
3833
  {
3702
- wallet: p,
3703
- onDisconnect: _,
3834
+ wallet: f,
3835
+ onDisconnect: q,
3704
3836
  theme: e,
3705
3837
  className: d(
3706
3838
  "mb-4",
@@ -3709,10 +3841,10 @@ const Pe = ({
3709
3841
  style: e === "dark" || e === "solana-dark" ? { boxShadow: "0px 0px 16px 4px #000000 inset" } : void 0
3710
3842
  }
3711
3843
  ),
3712
- f && (e === "seeker" || e === "seeker-2" ? /* @__PURE__ */ b(
3844
+ h && (e === "seeker" || e === "seeker-2" ? /* @__PURE__ */ b(
3713
3845
  "div",
3714
3846
  {
3715
- className: d("p-6", M.paymentDetails),
3847
+ className: d("p-6", B.paymentDetails),
3716
3848
  style: {
3717
3849
  backgroundColor: "rgba(0, 0, 0, 0.12)"
3718
3850
  },
@@ -3738,13 +3870,16 @@ const Pe = ({
3738
3870
  /* @__PURE__ */ b("div", { className: "space-y-3", children: [
3739
3871
  /* @__PURE__ */ b("div", { className: "flex items-center justify-between", children: [
3740
3872
  /* @__PURE__ */ a("span", { className: "text-sm text-white", children: "Wallet" }),
3741
- /* @__PURE__ */ a("div", { className: "text-sm text-white", children: (he = p == null ? void 0 : p.publicKey) != null && he.toString() ? `${p.publicKey.toString().slice(0, 6)}...${p.publicKey.toString().slice(-4)}` : p != null && p.address ? `${p.address.slice(0, 6)}...${p.address.slice(-4)}` : "Not connected" })
3873
+ /* @__PURE__ */ a("div", { className: "text-sm text-white", children: (we = f == null ? void 0 : f.publicKey) != null && we.toString() ? `${f.publicKey.toString().slice(0, 6)}...${f.publicKey.toString().slice(-4)}` : f != null && f.address ? `${f.address.slice(
3874
+ 0,
3875
+ 6
3876
+ )}...${f.address.slice(-4)}` : "Not connected" })
3742
3877
  ] }),
3743
3878
  /* @__PURE__ */ b("div", { className: "flex items-center justify-between", children: [
3744
3879
  /* @__PURE__ */ a("span", { className: "text-sm text-white", children: "Available Balance" }),
3745
3880
  /* @__PURE__ */ b("div", { className: "text-sm text-white", children: [
3746
3881
  "$",
3747
- P
3882
+ E
3748
3883
  ] })
3749
3884
  ] }),
3750
3885
  /* @__PURE__ */ b("div", { className: "flex items-center justify-between", children: [
@@ -3761,7 +3896,7 @@ const Pe = ({
3761
3896
  style: { backgroundColor: "#95D2E6" }
3762
3897
  }
3763
3898
  ),
3764
- /* @__PURE__ */ a("span", { className: "text-sm text-white", children: "Solana" })
3899
+ /* @__PURE__ */ a("span", { className: "text-sm text-white", children: R })
3765
3900
  ] })
3766
3901
  ] })
3767
3902
  ] })
@@ -3770,7 +3905,7 @@ const Pe = ({
3770
3905
  ) : /* @__PURE__ */ b(
3771
3906
  "div",
3772
3907
  {
3773
- className: d("p-6", M.paymentDetails),
3908
+ className: d("p-6", B.paymentDetails),
3774
3909
  style: e === "dark" || e === "solana-dark" ? { boxShadow: "0px 0px 16px 4px #000000 inset" } : void 0,
3775
3910
  children: [
3776
3911
  /* @__PURE__ */ b("div", { className: "flex items-center justify-between mb-4", children: [
@@ -3826,7 +3961,10 @@ const Pe = ({
3826
3961
  "text-sm",
3827
3962
  e === "dark" || e === "solana-dark" ? "text-white" : "text-slate-900"
3828
3963
  ),
3829
- children: (we = p == null ? void 0 : p.publicKey) != null && we.toString() ? `${p.publicKey.toString().slice(0, 6)}...${p.publicKey.toString().slice(-4)}` : p != null && p.address ? `${p.address.slice(0, 6)}...${p.address.slice(-4)}` : "Not connected"
3964
+ children: (me = f == null ? void 0 : f.publicKey) != null && me.toString() ? `${f.publicKey.toString().slice(0, 6)}...${f.publicKey.toString().slice(-4)}` : f != null && f.address ? `${f.address.slice(
3965
+ 0,
3966
+ 6
3967
+ )}...${f.address.slice(-4)}` : "Not connected"
3830
3968
  }
3831
3969
  )
3832
3970
  ] }),
@@ -3850,7 +3988,7 @@ const Pe = ({
3850
3988
  ),
3851
3989
  children: [
3852
3990
  "$",
3853
- P
3991
+ E
3854
3992
  ]
3855
3993
  }
3856
3994
  )
@@ -3892,7 +4030,10 @@ const Pe = ({
3892
4030
  /* @__PURE__ */ a(
3893
4031
  "div",
3894
4032
  {
3895
- className: d("w-2 h-2 rounded-full", "bg-green-500")
4033
+ className: d(
4034
+ "w-2 h-2 rounded-full",
4035
+ "bg-green-500"
4036
+ )
3896
4037
  }
3897
4038
  ),
3898
4039
  /* @__PURE__ */ a(
@@ -3902,7 +4043,7 @@ const Pe = ({
3902
4043
  "text-sm",
3903
4044
  e === "dark" || e === "solana-dark" ? "text-white" : "text-slate-900"
3904
4045
  ),
3905
- children: "Solana"
4046
+ children: R
3906
4047
  }
3907
4048
  )
3908
4049
  ] })
@@ -3936,23 +4077,23 @@ const Pe = ({
3936
4077
  /* @__PURE__ */ a(
3937
4078
  "span",
3938
4079
  {
3939
- className: d("text-sm", M.securityMessage),
4080
+ className: d("text-sm", B.securityMessage),
3940
4081
  style: e === "seeker" ? { color: "#FFFFFF66" } : e === "seeker-2" ? { color: "#FFFFFF66" } : void 0,
3941
4082
  children: "Secure payment powered by Solana"
3942
4083
  }
3943
4084
  )
3944
4085
  ] }),
3945
4086
  /* @__PURE__ */ a(
3946
- te,
4087
+ ae,
3947
4088
  {
3948
4089
  amount: r,
3949
4090
  description: n,
3950
- onClick: O,
3951
- loading: z,
3952
- disabled: z || !(p != null && p.publicKey),
4091
+ onClick: Q,
4092
+ loading: W,
4093
+ disabled: W || !(f != null && f.publicKey),
3953
4094
  className: d(
3954
4095
  "w-full h-12",
3955
- e === "dark" || e === "solana-dark" ? e === "dark" ? "bg-[#FFFFFF1F] rounded-full" : "bg-solana-gradient rounded-full" : M.button,
4096
+ e === "dark" || e === "solana-dark" ? e === "dark" ? "bg-[#FFFFFF1F] rounded-full" : "bg-solana-gradient rounded-full" : B.button,
3956
4097
  g == null ? void 0 : g.button
3957
4098
  ),
3958
4099
  style: e === "dark" ? {
@@ -3970,23 +4111,29 @@ const Pe = ({
3970
4111
  } : s == null ? void 0 : s.button
3971
4112
  }
3972
4113
  ),
3973
- j && /* @__PURE__ */ a("div", { className: "bg-red-50 border border-red-200 rounded-lg p-4", children: /* @__PURE__ */ b("p", { className: "text-sm text-red-800 text-center", children: [
4114
+ P && /* @__PURE__ */ a("div", { className: "bg-red-50 border border-red-200 rounded-lg p-4", children: /* @__PURE__ */ b("p", { className: "text-sm text-red-800 text-center", children: [
3974
4115
  /* @__PURE__ */ a("span", { className: "font-semibold", children: "Payment Error:" }),
3975
4116
  " ",
3976
- j.message
4117
+ P.message
3977
4118
  ] }) }),
3978
- /* @__PURE__ */ a("div", { className: "text-center", children: /* @__PURE__ */ b("p", { className: d("text-sm", M.helperText), children: [
3979
- /* @__PURE__ */ b("span", { style: e === "seeker" ? { color: "#FFFFFF66" } : e === "seeker-2" ? { color: "#FFFFFF66" } : void 0, children: [
3980
- "Don't have USDC?",
3981
- " "
3982
- ] }),
4119
+ /* @__PURE__ */ a("div", { className: "text-center", children: /* @__PURE__ */ b("p", { className: d("text-sm", B.helperText), children: [
4120
+ /* @__PURE__ */ b(
4121
+ "span",
4122
+ {
4123
+ style: e === "seeker" ? { color: "#FFFFFF66" } : e === "seeker-2" ? { color: "#FFFFFF66" } : void 0,
4124
+ children: [
4125
+ "Don't have USDC?",
4126
+ " "
4127
+ ]
4128
+ }
4129
+ ),
3983
4130
  /* @__PURE__ */ b(
3984
4131
  "a",
3985
4132
  {
3986
4133
  href: "#",
3987
4134
  className: d(
3988
4135
  "font-medium",
3989
- e === "seeker" || e === "seeker-2" ? "text-[#4ADE80]" : M.helperLink || "text-[#4ADE80]"
4136
+ e === "seeker" || e === "seeker-2" ? "text-[#4ADE80]" : B.helperLink || "text-[#4ADE80]"
3990
4137
  ),
3991
4138
  style: e === "seeker" ? { color: "#4ADE80" } : e === "seeker-2" ? { color: "#4ADE80" } : void 0,
3992
4139
  children: [
@@ -4020,30 +4167,23 @@ const Pe = ({
4020
4167
  )
4021
4168
  }
4022
4169
  );
4023
- }, it = ({
4170
+ }, lt = ({
4024
4171
  autoSetupProviders: r = !0,
4025
4172
  providerNetwork: n,
4026
4173
  providerEndpoint: t,
4027
4174
  ...o
4028
4175
  }) => {
4029
- const i = n ?? (o.network === "solana" ? ye.Mainnet : ye.Devnet);
4030
- if (r) {
4031
- const l = de(
4032
- () => t || o.rpcUrl || nr(i),
4033
- [t, o.rpcUrl, i]
4034
- ), u = de(
4035
- () => [
4036
- new qe(),
4037
- new Se()
4038
- ],
4039
- []
4040
- );
4041
- return /* @__PURE__ */ a(He, { endpoint: l, children: /* @__PURE__ */ a(Xe, { wallets: u, autoConnect: !1, children: /* @__PURE__ */ a(Ye, { children: /* @__PURE__ */ a(Pe, { ...o }) }) }) });
4042
- }
4043
- return /* @__PURE__ */ a(Pe, { ...o });
4176
+ const i = n ?? (o.network === "solana" ? Ne.Mainnet : Ne.Devnet), l = ce(
4177
+ () => t || o.rpcUrl || ar(i),
4178
+ [t, o.rpcUrl, i]
4179
+ ), u = ce(
4180
+ () => [new Qe(), new Se()],
4181
+ []
4182
+ );
4183
+ return r ? /* @__PURE__ */ a(Xe, { endpoint: l, children: /* @__PURE__ */ a(Je, { wallets: u, autoConnect: !0, children: /* @__PURE__ */ a(Ze, { children: /* @__PURE__ */ a(je, { ...o }) }) }) }) : /* @__PURE__ */ a(je, { ...o });
4044
4184
  };
4045
- it.displayName = "X402Paywall";
4046
- const lt = ({
4185
+ lt.displayName = "X402Paywall";
4186
+ const dt = ({
4047
4187
  status: r,
4048
4188
  message: n,
4049
4189
  progress: t,
@@ -4062,13 +4202,13 @@ const lt = ({
4062
4202
  return {
4063
4203
  label: "Connecting",
4064
4204
  color: "bg-blue-100 text-blue-800",
4065
- icon: /* @__PURE__ */ a(oe, { size: "sm", variant: "default" })
4205
+ icon: /* @__PURE__ */ a(ie, { size: "sm", variant: "default" })
4066
4206
  };
4067
4207
  case "pending":
4068
4208
  return {
4069
4209
  label: "Processing",
4070
4210
  color: "bg-yellow-100 text-yellow-800",
4071
- icon: /* @__PURE__ */ a(oe, { size: "sm", variant: "solana" })
4211
+ icon: /* @__PURE__ */ a(ie, { size: "sm", variant: "solana" })
4072
4212
  };
4073
4213
  case "success":
4074
4214
  return {
@@ -4126,7 +4266,7 @@ const lt = ({
4126
4266
  })();
4127
4267
  return /* @__PURE__ */ b("div", { className: d("flex flex-col gap-2", o), style: i, children: [
4128
4268
  /* @__PURE__ */ b("div", { className: "flex items-center gap-2", children: [
4129
- /* @__PURE__ */ b(Ve, { className: d("flex items-center gap-1.5", u.color), children: [
4269
+ /* @__PURE__ */ b(Ke, { className: d("flex items-center gap-1.5", u.color), children: [
4130
4270
  u.icon,
4131
4271
  /* @__PURE__ */ a("span", { children: u.label })
4132
4272
  ] }),
@@ -4141,21 +4281,21 @@ const lt = ({
4141
4281
  ) })
4142
4282
  ] });
4143
4283
  };
4144
- lt.displayName = "PaymentStatus";
4284
+ dt.displayName = "PaymentStatus";
4145
4285
  export {
4146
- Ve as Badge,
4147
- Ge as Button,
4148
- ne as Card,
4149
- ae as CardContent,
4150
- pe as CardDescription,
4151
- be as CardHeader,
4152
- ge as CardTitle,
4153
- te as PaymentButton,
4154
- lt as PaymentStatus,
4155
- oe as Spinner,
4156
- Ke as WalletSection,
4157
- it as X402Paywall,
4286
+ Ke as Badge,
4287
+ Ve as Button,
4288
+ oe as Card,
4289
+ se as CardContent,
4290
+ fe as CardDescription,
4291
+ ge as CardHeader,
4292
+ pe as CardTitle,
4293
+ ae as PaymentButton,
4294
+ dt as PaymentStatus,
4295
+ ie as Spinner,
4296
+ We as WalletSection,
4297
+ lt as X402Paywall,
4158
4298
  d as cn,
4159
- st as useX402Payment
4299
+ it as useX402Payment
4160
4300
  };
4161
4301
  //# sourceMappingURL=index.mjs.map