@payai/x402-solana-react 0.1.0-beta.7 → 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.mjs CHANGED
@@ -1,300 +1,304 @@
1
- var Re = Object.defineProperty;
2
- var je = (e, r, t) => r in e ? Re(e, r, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[r] = t;
3
- var ie = (e, r, t) => je(e, typeof r != "symbol" ? r + "" : r, t);
4
- import { jsx as l, jsxs as C, Fragment as Le } from "react/jsx-runtime";
5
- import * as k from "react";
6
- import { useState as $, useCallback as le, useEffect as Q } from "react";
7
- import { Connection as ge, PublicKey as V, ComputeBudgetProgram as ce, TransactionInstruction as Ge, SystemProgram as Be, TransactionMessage as Ue, VersionedTransaction as Oe } from "@solana/web3.js";
8
- import { getAssociatedTokenAddress as ee, getAccount as Ve, TOKEN_2022_PROGRAM_ID as de, TOKEN_PROGRAM_ID as We, getMint as _e, createTransferCheckedInstruction as $e } from "@solana/spl-token";
9
- function Fe(e) {
10
- return e === "solana" ? "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v" : "4zMMC9srt5Ri5X14GAgXhaHii3GnPAEERYPJgZJDncDU";
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) {
14
+ return r === "solana" ? "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v" : "4zMMC9srt5Ri5X14GAgXhaHii3GnPAEERYPJgZJDncDU";
11
15
  }
12
- function De(e) {
13
- return e === "solana" ? "https://api.mainnet-beta.solana.com" : "https://api.devnet.solana.com";
16
+ function dr(r) {
17
+ return r === "solana" ? `https://mainnet.helius-rpc.com/?api-key=${process.env.VITE_HELIUS_API_KEY}` : "https://api.devnet.solana.com";
14
18
  }
15
- async function He(e, r, t) {
19
+ async function cr(r, n, t) {
16
20
  try {
17
- const o = t || De(r), n = new ge(o, "confirmed"), s = new V(e), i = new V(Fe(r)), a = await ee(
18
- i,
19
- s
20
- ), d = await Ve(n, a);
21
- return (Number(d.amount) / 1e6).toFixed(2);
21
+ const o = t || dr(n), i = new je(o, "confirmed"), l = new W(r), u = new W(lr(n)), c = await ce(
22
+ u,
23
+ l
24
+ ), e = await ar(i, c);
25
+ return (Number(e.amount) / 1e6).toFixed(2);
22
26
  } catch (o) {
23
27
  return console.error("Error fetching USDC balance:", o), "0.00";
24
28
  }
25
29
  }
26
- function he(e) {
27
- var r, t, o = "";
28
- if (typeof e == "string" || typeof e == "number") o += e;
29
- else if (typeof e == "object") if (Array.isArray(e)) {
30
- var n = e.length;
31
- for (r = 0; r < n; r++) e[r] && (t = he(e[r])) && (o && (o += " "), o += t);
32
- } else for (t in e) e[t] && (o && (o += " "), o += t);
30
+ function De(r) {
31
+ var n, t, o = "";
32
+ if (typeof r == "string" || typeof r == "number") o += r;
33
+ else if (typeof r == "object") if (Array.isArray(r)) {
34
+ var i = r.length;
35
+ for (n = 0; n < i; n++) r[n] && (t = De(r[n])) && (o && (o += " "), o += t);
36
+ } else for (t in r) r[t] && (o && (o += " "), o += t);
33
37
  return o;
34
38
  }
35
- function xe() {
36
- for (var e, r, t = 0, o = "", n = arguments.length; t < n; t++) (e = arguments[t]) && (r = he(e)) && (o && (o += " "), o += r);
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);
37
41
  return o;
38
42
  }
39
- const re = "-", Ke = (e) => {
40
- const r = Je(e), {
43
+ const fe = "-", ur = (r) => {
44
+ const n = gr(r), {
41
45
  conflictingClassGroups: t,
42
46
  conflictingClassGroupModifiers: o
43
- } = e;
47
+ } = r;
44
48
  return {
45
- getClassGroupId: (i) => {
46
- const a = i.split(re);
47
- return a[0] === "" && a.length !== 1 && a.shift(), ye(a, r) || Xe(i);
49
+ getClassGroupId: (u) => {
50
+ const c = u.split(fe);
51
+ return c[0] === "" && c.length !== 1 && c.shift(), Ie(c, n) || br(u);
48
52
  },
49
- getConflictingClassGroupIds: (i, a) => {
50
- const d = t[i] || [];
51
- return a && o[i] ? [...d, ...o[i]] : d;
53
+ getConflictingClassGroupIds: (u, c) => {
54
+ const e = t[u] || [];
55
+ return c && o[u] ? [...e, ...o[u]] : e;
52
56
  }
53
57
  };
54
- }, ye = (e, r) => {
55
- var i;
56
- if (e.length === 0)
57
- return r.classGroupId;
58
- const t = e[0], o = r.nextPart.get(t), n = o ? ye(e.slice(1), o) : void 0;
59
- if (n)
60
- return n;
61
- if (r.validators.length === 0)
58
+ }, Ie = (r, n) => {
59
+ var u;
60
+ if (r.length === 0)
61
+ return n.classGroupId;
62
+ const t = r[0], o = n.nextPart.get(t), i = o ? Ie(r.slice(1), o) : void 0;
63
+ if (i)
64
+ return i;
65
+ if (n.validators.length === 0)
62
66
  return;
63
- const s = e.join(re);
64
- return (i = r.validators.find(({
65
- validator: a
66
- }) => a(s))) == null ? void 0 : i.classGroupId;
67
- }, ue = /^\[(.+)\]$/, Xe = (e) => {
68
- if (ue.test(e)) {
69
- const r = ue.exec(e)[1], t = r == null ? void 0 : r.substring(0, r.indexOf(":"));
67
+ const l = r.join(fe);
68
+ return (u = n.validators.find(({
69
+ validator: c
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(":"));
70
74
  if (t)
71
75
  return "arbitrary.." + t;
72
76
  }
73
- }, Je = (e) => {
77
+ }, gr = (r) => {
74
78
  const {
75
- theme: r,
79
+ theme: n,
76
80
  prefix: t
77
- } = e, o = {
81
+ } = r, o = {
78
82
  nextPart: /* @__PURE__ */ new Map(),
79
83
  validators: []
80
84
  };
81
- return Ye(Object.entries(e.classGroups), t).forEach(([s, i]) => {
82
- te(i, o, s, r);
85
+ return fr(Object.entries(r.classGroups), t).forEach(([l, u]) => {
86
+ ue(u, o, l, n);
83
87
  }), o;
84
- }, te = (e, r, t, o) => {
85
- e.forEach((n) => {
86
- if (typeof n == "string") {
87
- const s = n === "" ? r : pe(r, n);
88
- s.classGroupId = t;
88
+ }, ue = (r, n, t, o) => {
89
+ r.forEach((i) => {
90
+ if (typeof i == "string") {
91
+ const l = i === "" ? n : Ae(n, i);
92
+ l.classGroupId = t;
89
93
  return;
90
94
  }
91
- if (typeof n == "function") {
92
- if (Ze(n)) {
93
- te(n(o), r, t, o);
95
+ if (typeof i == "function") {
96
+ if (pr(i)) {
97
+ ue(i(o), n, t, o);
94
98
  return;
95
99
  }
96
- r.validators.push({
97
- validator: n,
100
+ n.validators.push({
101
+ validator: i,
98
102
  classGroupId: t
99
103
  });
100
104
  return;
101
105
  }
102
- Object.entries(n).forEach(([s, i]) => {
103
- te(i, pe(r, s), t, o);
106
+ Object.entries(i).forEach(([l, u]) => {
107
+ ue(u, Ae(n, l), t, o);
104
108
  });
105
109
  });
106
- }, pe = (e, r) => {
107
- let t = e;
108
- return r.split(re).forEach((o) => {
110
+ }, Ae = (r, n) => {
111
+ let t = r;
112
+ return n.split(fe).forEach((o) => {
109
113
  t.nextPart.has(o) || t.nextPart.set(o, {
110
114
  nextPart: /* @__PURE__ */ new Map(),
111
115
  validators: []
112
116
  }), t = t.nextPart.get(o);
113
117
  }), t;
114
- }, Ze = (e) => e.isThemeGetter, Ye = (e, r) => r ? e.map(([t, o]) => {
115
- const n = o.map((s) => typeof s == "string" ? r + s : typeof s == "object" ? Object.fromEntries(Object.entries(s).map(([i, a]) => [r + i, a])) : s);
116
- return [t, n];
117
- }) : e, Qe = (e) => {
118
- if (e < 1)
118
+ }, pr = (r) => r.isThemeGetter, fr = (r, n) => n ? r.map(([t, o]) => {
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
+ return [t, i];
121
+ }) : r, xr = (r) => {
122
+ if (r < 1)
119
123
  return {
120
124
  get: () => {
121
125
  },
122
126
  set: () => {
123
127
  }
124
128
  };
125
- let r = 0, t = /* @__PURE__ */ new Map(), o = /* @__PURE__ */ new Map();
126
- const n = (s, i) => {
127
- t.set(s, i), r++, r > e && (r = 0, o = t, t = /* @__PURE__ */ new Map());
129
+ let n = 0, t = /* @__PURE__ */ new Map(), o = /* @__PURE__ */ new Map();
130
+ const i = (l, u) => {
131
+ t.set(l, u), n++, n > r && (n = 0, o = t, t = /* @__PURE__ */ new Map());
128
132
  };
129
133
  return {
130
- get(s) {
131
- let i = t.get(s);
132
- if (i !== void 0)
133
- return i;
134
- if ((i = o.get(s)) !== void 0)
135
- return n(s, i), i;
134
+ get(l) {
135
+ let u = t.get(l);
136
+ if (u !== void 0)
137
+ return u;
138
+ if ((u = o.get(l)) !== void 0)
139
+ return i(l, u), u;
136
140
  },
137
- set(s, i) {
138
- t.has(s) ? t.set(s, i) : n(s, i);
141
+ set(l, u) {
142
+ t.has(l) ? t.set(l, u) : i(l, u);
139
143
  }
140
144
  };
141
- }, we = "!", qe = (e) => {
145
+ }, Le = "!", hr = (r) => {
142
146
  const {
143
- separator: r,
147
+ separator: n,
144
148
  experimentalParseClassName: t
145
- } = e, o = r.length === 1, n = r[0], s = r.length, i = (a) => {
146
- const d = [];
147
- let c = 0, p = 0, g;
148
- for (let m = 0; m < a.length; m++) {
149
- let y = a[m];
150
- if (c === 0) {
151
- if (y === n && (o || a.slice(m, m + s) === r)) {
152
- d.push(a.slice(p, m)), p = m + s;
149
+ } = r, o = n.length === 1, i = n[0], l = n.length, u = (c) => {
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;
153
157
  continue;
154
158
  }
155
- if (y === "/") {
156
- g = m;
159
+ if (N === "/") {
160
+ g = w;
157
161
  continue;
158
162
  }
159
163
  }
160
- y === "[" ? c++ : y === "]" && c--;
164
+ N === "[" ? f++ : N === "]" && f--;
161
165
  }
162
- const u = d.length === 0 ? a : a.substring(p), f = u.startsWith(we), v = f ? u.substring(1) : u, h = g && g > p ? g - p : void 0;
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;
163
167
  return {
164
- modifiers: d,
165
- hasImportantModifier: f,
166
- baseClassName: v,
167
- maybePostfixModifierPosition: h
168
+ modifiers: e,
169
+ hasImportantModifier: y,
170
+ baseClassName: F,
171
+ maybePostfixModifierPosition: m
168
172
  };
169
173
  };
170
- return t ? (a) => t({
171
- className: a,
172
- parseClassName: i
173
- }) : i;
174
- }, et = (e) => {
175
- if (e.length <= 1)
176
- return e;
177
- const r = [];
174
+ return t ? (c) => t({
175
+ className: c,
176
+ parseClassName: u
177
+ }) : u;
178
+ }, wr = (r) => {
179
+ if (r.length <= 1)
180
+ return r;
181
+ const n = [];
178
182
  let t = [];
179
- return e.forEach((o) => {
180
- o[0] === "[" ? (r.push(...t.sort(), o), t = []) : t.push(o);
181
- }), r.push(...t.sort()), r;
182
- }, tt = (e) => ({
183
- cache: Qe(e.cacheSize),
184
- parseClassName: qe(e),
185
- ...Ke(e)
186
- }), rt = /\s+/, ot = (e, r) => {
183
+ return r.forEach((o) => {
184
+ o[0] === "[" ? (n.push(...t.sort(), o), t = []) : t.push(o);
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) => {
187
191
  const {
188
192
  parseClassName: t,
189
193
  getClassGroupId: o,
190
- getConflictingClassGroupIds: n
191
- } = r, s = [], i = e.trim().split(rt);
192
- let a = "";
193
- for (let d = i.length - 1; d >= 0; d -= 1) {
194
- const c = i[d], {
195
- modifiers: p,
194
+ getConflictingClassGroupIds: i
195
+ } = n, l = [], u = r.trim().split(kr);
196
+ let c = "";
197
+ for (let e = u.length - 1; e >= 0; e -= 1) {
198
+ const f = u[e], {
199
+ modifiers: x,
196
200
  hasImportantModifier: g,
197
- baseClassName: u,
198
- maybePostfixModifierPosition: f
199
- } = t(c);
200
- let v = !!f, h = o(v ? u.substring(0, f) : u);
201
- if (!h) {
202
- if (!v) {
203
- a = c + (a.length > 0 ? " " + a : a);
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);
204
208
  continue;
205
209
  }
206
- if (h = o(u), !h) {
207
- a = c + (a.length > 0 ? " " + a : a);
210
+ if (m = o(s), !m) {
211
+ c = f + (c.length > 0 ? " " + c : c);
208
212
  continue;
209
213
  }
210
- v = !1;
214
+ F = !1;
211
215
  }
212
- const m = et(p).join(":"), y = g ? m + we : m, N = y + h;
213
- if (s.includes(N))
216
+ const w = wr(x).join(":"), N = g ? w + Le : w, T = N + m;
217
+ if (l.includes(T))
214
218
  continue;
215
- s.push(N);
216
- const P = n(h, v);
217
- for (let E = 0; E < P.length; ++E) {
218
- const I = P[E];
219
- s.push(y + I);
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);
220
224
  }
221
- a = c + (a.length > 0 ? " " + a : a);
225
+ c = f + (c.length > 0 ? " " + c : c);
222
226
  }
223
- return a;
227
+ return c;
224
228
  };
225
- function nt() {
226
- let e = 0, r, t, o = "";
227
- for (; e < arguments.length; )
228
- (r = arguments[e++]) && (t = ve(r)) && (o && (o += " "), o += t);
229
+ function yr() {
230
+ let r = 0, n, t, o = "";
231
+ for (; r < arguments.length; )
232
+ (n = arguments[r++]) && (t = Re(n)) && (o && (o += " "), o += t);
229
233
  return o;
230
234
  }
231
- const ve = (e) => {
232
- if (typeof e == "string")
233
- return e;
234
- let r, t = "";
235
- for (let o = 0; o < e.length; o++)
236
- e[o] && (r = ve(e[o])) && (t && (t += " "), t += r);
235
+ const Re = (r) => {
236
+ if (typeof r == "string")
237
+ return r;
238
+ let n, t = "";
239
+ for (let o = 0; o < r.length; o++)
240
+ r[o] && (n = Re(r[o])) && (t && (t += " "), t += n);
237
241
  return t;
238
242
  };
239
- function st(e, ...r) {
240
- let t, o, n, s = i;
241
- function i(d) {
242
- const c = r.reduce((p, g) => g(p), e());
243
- return t = tt(c), o = t.cache.get, n = t.cache.set, s = a, a(d);
243
+ function Nr(r, ...n) {
244
+ let t, o, i, l = u;
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);
244
248
  }
245
- function a(d) {
246
- const c = o(d);
247
- if (c)
248
- return c;
249
- const p = ot(d, t);
250
- return n(d, p), p;
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;
251
255
  }
252
256
  return function() {
253
- return s(nt.apply(null, arguments));
257
+ return l(yr.apply(null, arguments));
254
258
  };
255
259
  }
256
- const w = (e) => {
257
- const r = (t) => t[e] || [];
258
- return r.isThemeGetter = !0, r;
259
- }, Ce = /^\[(?:([a-z-]+):)?(.+)\]$/i, at = /^\d+\/\d+$/, it = /* @__PURE__ */ new Set(["px", "full", "screen"]), lt = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, ct = /\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$/, dt = /^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/, ut = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, pt = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, L = (e) => F(e) || it.has(e) || at.test(e), G = (e) => D(e, "length", wt), F = (e) => !!e && !Number.isNaN(Number(e)), q = (e) => D(e, "number", F), K = (e) => !!e && Number.isInteger(Number(e)), ft = (e) => e.endsWith("%") && F(e.slice(0, -1)), b = (e) => Ce.test(e), B = (e) => lt.test(e), bt = /* @__PURE__ */ new Set(["length", "size", "percentage"]), mt = (e) => D(e, bt, ke), gt = (e) => D(e, "position", ke), ht = /* @__PURE__ */ new Set(["image", "url"]), xt = (e) => D(e, ht, Ct), yt = (e) => D(e, "", vt), X = () => !0, D = (e, r, t) => {
260
- const o = Ce.exec(e);
261
- return o ? o[1] ? typeof r == "string" ? o[1] === r : r.has(o[1]) : t(o[2]) : !1;
262
- }, wt = (e) => (
260
+ const C = (r) => {
261
+ const n = (t) => t[r] || [];
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);
265
+ return o ? o[1] ? typeof n == "string" ? o[1] === n : n.has(o[1]) : t(o[2]) : !1;
266
+ }, $r = (r) => (
263
267
  // `colorFunctionRegex` check is necessary because color functions can have percentages in them which which would be incorrectly classified as lengths.
264
268
  // For example, `hsl(0 0% 0%)` would be classified as a length without this check.
265
269
  // I could also use lookbehind assertion in `lengthUnitRegex` but that isn't supported widely enough.
266
- ct.test(e) && !dt.test(e)
267
- ), ke = () => !1, vt = (e) => ut.test(e), Ct = (e) => pt.test(e), kt = () => {
268
- const e = w("colors"), r = w("spacing"), t = w("blur"), o = w("brightness"), n = w("borderColor"), s = w("borderRadius"), i = w("borderSpacing"), a = w("borderWidth"), d = w("contrast"), c = w("grayscale"), p = w("hueRotate"), g = w("invert"), u = w("gap"), f = w("gradientColorStops"), v = w("gradientColorStopPositions"), h = w("inset"), m = w("margin"), y = w("opacity"), N = w("padding"), P = w("saturate"), E = w("scale"), I = w("sepia"), M = w("skew"), z = w("space"), U = w("translate"), R = () => ["auto", "contain", "none"], T = () => ["auto", "hidden", "clip", "visible", "scroll"], S = () => ["auto", b, r], x = () => [b, r], J = () => ["", L, G], W = () => ["auto", F, b], _ = () => ["bottom", "center", "left", "left-bottom", "left-top", "right", "right-bottom", "right-top", "top"], O = () => ["solid", "dashed", "dotted", "double", "none"], se = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], Y = () => ["start", "end", "center", "between", "around", "evenly", "stretch"], H = () => ["", "0", b], ae = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], j = () => [F, b];
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];
269
273
  return {
270
274
  cacheSize: 500,
271
275
  separator: ":",
272
276
  theme: {
273
- colors: [X],
274
- spacing: [L, G],
275
- blur: ["none", "", B, b],
276
- brightness: j(),
277
- borderColor: [e],
278
- borderRadius: ["none", "", "full", B, b],
279
- borderSpacing: x(),
280
- borderWidth: J(),
281
- contrast: j(),
282
- grayscale: H(),
283
- hueRotate: j(),
284
- invert: H(),
285
- gap: x(),
286
- gradientColorStops: [e],
287
- gradientColorStopPositions: [ft, G],
288
- inset: S(),
289
- margin: S(),
290
- opacity: j(),
291
- padding: x(),
292
- saturate: j(),
293
- scale: j(),
294
- sepia: H(),
295
- skew: j(),
296
- space: x(),
297
- translate: x()
277
+ colors: [S],
278
+ spacing: [B, V],
279
+ blur: ["none", "", K, h],
280
+ brightness: M(),
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(),
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()
298
302
  },
299
303
  classGroups: {
300
304
  // Layout
@@ -303,7 +307,7 @@ const w = (e) => {
303
307
  * @see https://tailwindcss.com/docs/aspect-ratio
304
308
  */
305
309
  aspect: [{
306
- aspect: ["auto", "square", "video", b]
310
+ aspect: ["auto", "square", "video", h]
307
311
  }],
308
312
  /**
309
313
  * Container
@@ -315,21 +319,21 @@ const w = (e) => {
315
319
  * @see https://tailwindcss.com/docs/columns
316
320
  */
317
321
  columns: [{
318
- columns: [B]
322
+ columns: [K]
319
323
  }],
320
324
  /**
321
325
  * Break After
322
326
  * @see https://tailwindcss.com/docs/break-after
323
327
  */
324
328
  "break-after": [{
325
- "break-after": ae()
329
+ "break-after": se()
326
330
  }],
327
331
  /**
328
332
  * Break Before
329
333
  * @see https://tailwindcss.com/docs/break-before
330
334
  */
331
335
  "break-before": [{
332
- "break-before": ae()
336
+ "break-before": se()
333
337
  }],
334
338
  /**
335
339
  * Break Inside
@@ -388,49 +392,49 @@ const w = (e) => {
388
392
  * @see https://tailwindcss.com/docs/object-position
389
393
  */
390
394
  "object-position": [{
391
- object: [..._(), b]
395
+ object: [...Q(), h]
392
396
  }],
393
397
  /**
394
398
  * Overflow
395
399
  * @see https://tailwindcss.com/docs/overflow
396
400
  */
397
401
  overflow: [{
398
- overflow: T()
402
+ overflow: $()
399
403
  }],
400
404
  /**
401
405
  * Overflow X
402
406
  * @see https://tailwindcss.com/docs/overflow
403
407
  */
404
408
  "overflow-x": [{
405
- "overflow-x": T()
409
+ "overflow-x": $()
406
410
  }],
407
411
  /**
408
412
  * Overflow Y
409
413
  * @see https://tailwindcss.com/docs/overflow
410
414
  */
411
415
  "overflow-y": [{
412
- "overflow-y": T()
416
+ "overflow-y": $()
413
417
  }],
414
418
  /**
415
419
  * Overscroll Behavior
416
420
  * @see https://tailwindcss.com/docs/overscroll-behavior
417
421
  */
418
422
  overscroll: [{
419
- overscroll: R()
423
+ overscroll: L()
420
424
  }],
421
425
  /**
422
426
  * Overscroll Behavior X
423
427
  * @see https://tailwindcss.com/docs/overscroll-behavior
424
428
  */
425
429
  "overscroll-x": [{
426
- "overscroll-x": R()
430
+ "overscroll-x": L()
427
431
  }],
428
432
  /**
429
433
  * Overscroll Behavior Y
430
434
  * @see https://tailwindcss.com/docs/overscroll-behavior
431
435
  */
432
436
  "overscroll-y": [{
433
- "overscroll-y": R()
437
+ "overscroll-y": L()
434
438
  }],
435
439
  /**
436
440
  * Position
@@ -442,63 +446,63 @@ const w = (e) => {
442
446
  * @see https://tailwindcss.com/docs/top-right-bottom-left
443
447
  */
444
448
  inset: [{
445
- inset: [h]
449
+ inset: [m]
446
450
  }],
447
451
  /**
448
452
  * Right / Left
449
453
  * @see https://tailwindcss.com/docs/top-right-bottom-left
450
454
  */
451
455
  "inset-x": [{
452
- "inset-x": [h]
456
+ "inset-x": [m]
453
457
  }],
454
458
  /**
455
459
  * Top / Bottom
456
460
  * @see https://tailwindcss.com/docs/top-right-bottom-left
457
461
  */
458
462
  "inset-y": [{
459
- "inset-y": [h]
463
+ "inset-y": [m]
460
464
  }],
461
465
  /**
462
466
  * Start
463
467
  * @see https://tailwindcss.com/docs/top-right-bottom-left
464
468
  */
465
469
  start: [{
466
- start: [h]
470
+ start: [m]
467
471
  }],
468
472
  /**
469
473
  * End
470
474
  * @see https://tailwindcss.com/docs/top-right-bottom-left
471
475
  */
472
476
  end: [{
473
- end: [h]
477
+ end: [m]
474
478
  }],
475
479
  /**
476
480
  * Top
477
481
  * @see https://tailwindcss.com/docs/top-right-bottom-left
478
482
  */
479
483
  top: [{
480
- top: [h]
484
+ top: [m]
481
485
  }],
482
486
  /**
483
487
  * Right
484
488
  * @see https://tailwindcss.com/docs/top-right-bottom-left
485
489
  */
486
490
  right: [{
487
- right: [h]
491
+ right: [m]
488
492
  }],
489
493
  /**
490
494
  * Bottom
491
495
  * @see https://tailwindcss.com/docs/top-right-bottom-left
492
496
  */
493
497
  bottom: [{
494
- bottom: [h]
498
+ bottom: [m]
495
499
  }],
496
500
  /**
497
501
  * Left
498
502
  * @see https://tailwindcss.com/docs/top-right-bottom-left
499
503
  */
500
504
  left: [{
501
- left: [h]
505
+ left: [m]
502
506
  }],
503
507
  /**
504
508
  * Visibility
@@ -510,7 +514,7 @@ const w = (e) => {
510
514
  * @see https://tailwindcss.com/docs/z-index
511
515
  */
512
516
  z: [{
513
- z: ["auto", K, b]
517
+ z: ["auto", q, h]
514
518
  }],
515
519
  // Flexbox and Grid
516
520
  /**
@@ -518,7 +522,7 @@ const w = (e) => {
518
522
  * @see https://tailwindcss.com/docs/flex-basis
519
523
  */
520
524
  basis: [{
521
- basis: S()
525
+ basis: z()
522
526
  }],
523
527
  /**
524
528
  * Flex Direction
@@ -539,35 +543,35 @@ const w = (e) => {
539
543
  * @see https://tailwindcss.com/docs/flex
540
544
  */
541
545
  flex: [{
542
- flex: ["1", "auto", "initial", "none", b]
546
+ flex: ["1", "auto", "initial", "none", h]
543
547
  }],
544
548
  /**
545
549
  * Flex Grow
546
550
  * @see https://tailwindcss.com/docs/flex-grow
547
551
  */
548
552
  grow: [{
549
- grow: H()
553
+ grow: G()
550
554
  }],
551
555
  /**
552
556
  * Flex Shrink
553
557
  * @see https://tailwindcss.com/docs/flex-shrink
554
558
  */
555
559
  shrink: [{
556
- shrink: H()
560
+ shrink: G()
557
561
  }],
558
562
  /**
559
563
  * Order
560
564
  * @see https://tailwindcss.com/docs/order
561
565
  */
562
566
  order: [{
563
- order: ["first", "last", "none", K, b]
567
+ order: ["first", "last", "none", q, h]
564
568
  }],
565
569
  /**
566
570
  * Grid Template Columns
567
571
  * @see https://tailwindcss.com/docs/grid-template-columns
568
572
  */
569
573
  "grid-cols": [{
570
- "grid-cols": [X]
574
+ "grid-cols": [S]
571
575
  }],
572
576
  /**
573
577
  * Grid Column Start / End
@@ -575,29 +579,29 @@ const w = (e) => {
575
579
  */
576
580
  "col-start-end": [{
577
581
  col: ["auto", {
578
- span: ["full", K, b]
579
- }, b]
582
+ span: ["full", q, h]
583
+ }, h]
580
584
  }],
581
585
  /**
582
586
  * Grid Column Start
583
587
  * @see https://tailwindcss.com/docs/grid-column
584
588
  */
585
589
  "col-start": [{
586
- "col-start": W()
590
+ "col-start": U()
587
591
  }],
588
592
  /**
589
593
  * Grid Column End
590
594
  * @see https://tailwindcss.com/docs/grid-column
591
595
  */
592
596
  "col-end": [{
593
- "col-end": W()
597
+ "col-end": U()
594
598
  }],
595
599
  /**
596
600
  * Grid Template Rows
597
601
  * @see https://tailwindcss.com/docs/grid-template-rows
598
602
  */
599
603
  "grid-rows": [{
600
- "grid-rows": [X]
604
+ "grid-rows": [S]
601
605
  }],
602
606
  /**
603
607
  * Grid Row Start / End
@@ -605,22 +609,22 @@ const w = (e) => {
605
609
  */
606
610
  "row-start-end": [{
607
611
  row: ["auto", {
608
- span: [K, b]
609
- }, b]
612
+ span: [q, h]
613
+ }, h]
610
614
  }],
611
615
  /**
612
616
  * Grid Row Start
613
617
  * @see https://tailwindcss.com/docs/grid-row
614
618
  */
615
619
  "row-start": [{
616
- "row-start": W()
620
+ "row-start": U()
617
621
  }],
618
622
  /**
619
623
  * Grid Row End
620
624
  * @see https://tailwindcss.com/docs/grid-row
621
625
  */
622
626
  "row-end": [{
623
- "row-end": W()
627
+ "row-end": U()
624
628
  }],
625
629
  /**
626
630
  * Grid Auto Flow
@@ -634,42 +638,42 @@ const w = (e) => {
634
638
  * @see https://tailwindcss.com/docs/grid-auto-columns
635
639
  */
636
640
  "auto-cols": [{
637
- "auto-cols": ["auto", "min", "max", "fr", b]
641
+ "auto-cols": ["auto", "min", "max", "fr", h]
638
642
  }],
639
643
  /**
640
644
  * Grid Auto Rows
641
645
  * @see https://tailwindcss.com/docs/grid-auto-rows
642
646
  */
643
647
  "auto-rows": [{
644
- "auto-rows": ["auto", "min", "max", "fr", b]
648
+ "auto-rows": ["auto", "min", "max", "fr", h]
645
649
  }],
646
650
  /**
647
651
  * Gap
648
652
  * @see https://tailwindcss.com/docs/gap
649
653
  */
650
654
  gap: [{
651
- gap: [u]
655
+ gap: [s]
652
656
  }],
653
657
  /**
654
658
  * Gap X
655
659
  * @see https://tailwindcss.com/docs/gap
656
660
  */
657
661
  "gap-x": [{
658
- "gap-x": [u]
662
+ "gap-x": [s]
659
663
  }],
660
664
  /**
661
665
  * Gap Y
662
666
  * @see https://tailwindcss.com/docs/gap
663
667
  */
664
668
  "gap-y": [{
665
- "gap-y": [u]
669
+ "gap-y": [s]
666
670
  }],
667
671
  /**
668
672
  * Justify Content
669
673
  * @see https://tailwindcss.com/docs/justify-content
670
674
  */
671
675
  "justify-content": [{
672
- justify: ["normal", ...Y()]
676
+ justify: ["normal", ...O()]
673
677
  }],
674
678
  /**
675
679
  * Justify Items
@@ -690,7 +694,7 @@ const w = (e) => {
690
694
  * @see https://tailwindcss.com/docs/align-content
691
695
  */
692
696
  "align-content": [{
693
- content: ["normal", ...Y(), "baseline"]
697
+ content: ["normal", ...O(), "baseline"]
694
698
  }],
695
699
  /**
696
700
  * Align Items
@@ -711,7 +715,7 @@ const w = (e) => {
711
715
  * @see https://tailwindcss.com/docs/place-content
712
716
  */
713
717
  "place-content": [{
714
- "place-content": [...Y(), "baseline"]
718
+ "place-content": [...O(), "baseline"]
715
719
  }],
716
720
  /**
717
721
  * Place Items
@@ -733,133 +737,133 @@ const w = (e) => {
733
737
  * @see https://tailwindcss.com/docs/padding
734
738
  */
735
739
  p: [{
736
- p: [N]
740
+ p: [T]
737
741
  }],
738
742
  /**
739
743
  * Padding X
740
744
  * @see https://tailwindcss.com/docs/padding
741
745
  */
742
746
  px: [{
743
- px: [N]
747
+ px: [T]
744
748
  }],
745
749
  /**
746
750
  * Padding Y
747
751
  * @see https://tailwindcss.com/docs/padding
748
752
  */
749
753
  py: [{
750
- py: [N]
754
+ py: [T]
751
755
  }],
752
756
  /**
753
757
  * Padding Start
754
758
  * @see https://tailwindcss.com/docs/padding
755
759
  */
756
760
  ps: [{
757
- ps: [N]
761
+ ps: [T]
758
762
  }],
759
763
  /**
760
764
  * Padding End
761
765
  * @see https://tailwindcss.com/docs/padding
762
766
  */
763
767
  pe: [{
764
- pe: [N]
768
+ pe: [T]
765
769
  }],
766
770
  /**
767
771
  * Padding Top
768
772
  * @see https://tailwindcss.com/docs/padding
769
773
  */
770
774
  pt: [{
771
- pt: [N]
775
+ pt: [T]
772
776
  }],
773
777
  /**
774
778
  * Padding Right
775
779
  * @see https://tailwindcss.com/docs/padding
776
780
  */
777
781
  pr: [{
778
- pr: [N]
782
+ pr: [T]
779
783
  }],
780
784
  /**
781
785
  * Padding Bottom
782
786
  * @see https://tailwindcss.com/docs/padding
783
787
  */
784
788
  pb: [{
785
- pb: [N]
789
+ pb: [T]
786
790
  }],
787
791
  /**
788
792
  * Padding Left
789
793
  * @see https://tailwindcss.com/docs/padding
790
794
  */
791
795
  pl: [{
792
- pl: [N]
796
+ pl: [T]
793
797
  }],
794
798
  /**
795
799
  * Margin
796
800
  * @see https://tailwindcss.com/docs/margin
797
801
  */
798
802
  m: [{
799
- m: [m]
803
+ m: [w]
800
804
  }],
801
805
  /**
802
806
  * Margin X
803
807
  * @see https://tailwindcss.com/docs/margin
804
808
  */
805
809
  mx: [{
806
- mx: [m]
810
+ mx: [w]
807
811
  }],
808
812
  /**
809
813
  * Margin Y
810
814
  * @see https://tailwindcss.com/docs/margin
811
815
  */
812
816
  my: [{
813
- my: [m]
817
+ my: [w]
814
818
  }],
815
819
  /**
816
820
  * Margin Start
817
821
  * @see https://tailwindcss.com/docs/margin
818
822
  */
819
823
  ms: [{
820
- ms: [m]
824
+ ms: [w]
821
825
  }],
822
826
  /**
823
827
  * Margin End
824
828
  * @see https://tailwindcss.com/docs/margin
825
829
  */
826
830
  me: [{
827
- me: [m]
831
+ me: [w]
828
832
  }],
829
833
  /**
830
834
  * Margin Top
831
835
  * @see https://tailwindcss.com/docs/margin
832
836
  */
833
837
  mt: [{
834
- mt: [m]
838
+ mt: [w]
835
839
  }],
836
840
  /**
837
841
  * Margin Right
838
842
  * @see https://tailwindcss.com/docs/margin
839
843
  */
840
844
  mr: [{
841
- mr: [m]
845
+ mr: [w]
842
846
  }],
843
847
  /**
844
848
  * Margin Bottom
845
849
  * @see https://tailwindcss.com/docs/margin
846
850
  */
847
851
  mb: [{
848
- mb: [m]
852
+ mb: [w]
849
853
  }],
850
854
  /**
851
855
  * Margin Left
852
856
  * @see https://tailwindcss.com/docs/margin
853
857
  */
854
858
  ml: [{
855
- ml: [m]
859
+ ml: [w]
856
860
  }],
857
861
  /**
858
862
  * Space Between X
859
863
  * @see https://tailwindcss.com/docs/space
860
864
  */
861
865
  "space-x": [{
862
- "space-x": [z]
866
+ "space-x": [P]
863
867
  }],
864
868
  /**
865
869
  * Space Between X Reverse
@@ -871,7 +875,7 @@ const w = (e) => {
871
875
  * @see https://tailwindcss.com/docs/space
872
876
  */
873
877
  "space-y": [{
874
- "space-y": [z]
878
+ "space-y": [P]
875
879
  }],
876
880
  /**
877
881
  * Space Between Y Reverse
@@ -884,51 +888,51 @@ const w = (e) => {
884
888
  * @see https://tailwindcss.com/docs/width
885
889
  */
886
890
  w: [{
887
- w: ["auto", "min", "max", "fit", "svw", "lvw", "dvw", b, r]
891
+ w: ["auto", "min", "max", "fit", "svw", "lvw", "dvw", h, n]
888
892
  }],
889
893
  /**
890
894
  * Min-Width
891
895
  * @see https://tailwindcss.com/docs/min-width
892
896
  */
893
897
  "min-w": [{
894
- "min-w": [b, r, "min", "max", "fit"]
898
+ "min-w": [h, n, "min", "max", "fit"]
895
899
  }],
896
900
  /**
897
901
  * Max-Width
898
902
  * @see https://tailwindcss.com/docs/max-width
899
903
  */
900
904
  "max-w": [{
901
- "max-w": [b, r, "none", "full", "min", "max", "fit", "prose", {
902
- screen: [B]
903
- }, B]
905
+ "max-w": [h, n, "none", "full", "min", "max", "fit", "prose", {
906
+ screen: [K]
907
+ }, K]
904
908
  }],
905
909
  /**
906
910
  * Height
907
911
  * @see https://tailwindcss.com/docs/height
908
912
  */
909
913
  h: [{
910
- h: [b, r, "auto", "min", "max", "fit", "svh", "lvh", "dvh"]
914
+ h: [h, n, "auto", "min", "max", "fit", "svh", "lvh", "dvh"]
911
915
  }],
912
916
  /**
913
917
  * Min-Height
914
918
  * @see https://tailwindcss.com/docs/min-height
915
919
  */
916
920
  "min-h": [{
917
- "min-h": [b, r, "min", "max", "fit", "svh", "lvh", "dvh"]
921
+ "min-h": [h, n, "min", "max", "fit", "svh", "lvh", "dvh"]
918
922
  }],
919
923
  /**
920
924
  * Max-Height
921
925
  * @see https://tailwindcss.com/docs/max-height
922
926
  */
923
927
  "max-h": [{
924
- "max-h": [b, r, "min", "max", "fit", "svh", "lvh", "dvh"]
928
+ "max-h": [h, n, "min", "max", "fit", "svh", "lvh", "dvh"]
925
929
  }],
926
930
  /**
927
931
  * Size
928
932
  * @see https://tailwindcss.com/docs/size
929
933
  */
930
934
  size: [{
931
- size: [b, r, "auto", "min", "max", "fit"]
935
+ size: [h, n, "auto", "min", "max", "fit"]
932
936
  }],
933
937
  // Typography
934
938
  /**
@@ -936,7 +940,7 @@ const w = (e) => {
936
940
  * @see https://tailwindcss.com/docs/font-size
937
941
  */
938
942
  "font-size": [{
939
- text: ["base", B, G]
943
+ text: ["base", K, V]
940
944
  }],
941
945
  /**
942
946
  * Font Smoothing
@@ -953,14 +957,14 @@ const w = (e) => {
953
957
  * @see https://tailwindcss.com/docs/font-weight
954
958
  */
955
959
  "font-weight": [{
956
- font: ["thin", "extralight", "light", "normal", "medium", "semibold", "bold", "extrabold", "black", q]
960
+ font: ["thin", "extralight", "light", "normal", "medium", "semibold", "bold", "extrabold", "black", le]
957
961
  }],
958
962
  /**
959
963
  * Font Family
960
964
  * @see https://tailwindcss.com/docs/font-family
961
965
  */
962
966
  "font-family": [{
963
- font: [X]
967
+ font: [S]
964
968
  }],
965
969
  /**
966
970
  * Font Variant Numeric
@@ -997,35 +1001,35 @@ const w = (e) => {
997
1001
  * @see https://tailwindcss.com/docs/letter-spacing
998
1002
  */
999
1003
  tracking: [{
1000
- tracking: ["tighter", "tight", "normal", "wide", "wider", "widest", b]
1004
+ tracking: ["tighter", "tight", "normal", "wide", "wider", "widest", h]
1001
1005
  }],
1002
1006
  /**
1003
1007
  * Line Clamp
1004
1008
  * @see https://tailwindcss.com/docs/line-clamp
1005
1009
  */
1006
1010
  "line-clamp": [{
1007
- "line-clamp": ["none", F, q]
1011
+ "line-clamp": ["none", J, le]
1008
1012
  }],
1009
1013
  /**
1010
1014
  * Line Height
1011
1015
  * @see https://tailwindcss.com/docs/line-height
1012
1016
  */
1013
1017
  leading: [{
1014
- leading: ["none", "tight", "snug", "normal", "relaxed", "loose", L, b]
1018
+ leading: ["none", "tight", "snug", "normal", "relaxed", "loose", B, h]
1015
1019
  }],
1016
1020
  /**
1017
1021
  * List Style Image
1018
1022
  * @see https://tailwindcss.com/docs/list-style-image
1019
1023
  */
1020
1024
  "list-image": [{
1021
- "list-image": ["none", b]
1025
+ "list-image": ["none", h]
1022
1026
  }],
1023
1027
  /**
1024
1028
  * List Style Type
1025
1029
  * @see https://tailwindcss.com/docs/list-style-type
1026
1030
  */
1027
1031
  "list-style-type": [{
1028
- list: ["none", "disc", "decimal", b]
1032
+ list: ["none", "disc", "decimal", h]
1029
1033
  }],
1030
1034
  /**
1031
1035
  * List Style Position
@@ -1040,14 +1044,14 @@ const w = (e) => {
1040
1044
  * @see https://tailwindcss.com/docs/placeholder-color
1041
1045
  */
1042
1046
  "placeholder-color": [{
1043
- placeholder: [e]
1047
+ placeholder: [r]
1044
1048
  }],
1045
1049
  /**
1046
1050
  * Placeholder Opacity
1047
1051
  * @see https://tailwindcss.com/docs/placeholder-opacity
1048
1052
  */
1049
1053
  "placeholder-opacity": [{
1050
- "placeholder-opacity": [y]
1054
+ "placeholder-opacity": [N]
1051
1055
  }],
1052
1056
  /**
1053
1057
  * Text Alignment
@@ -1061,14 +1065,14 @@ const w = (e) => {
1061
1065
  * @see https://tailwindcss.com/docs/text-color
1062
1066
  */
1063
1067
  "text-color": [{
1064
- text: [e]
1068
+ text: [r]
1065
1069
  }],
1066
1070
  /**
1067
1071
  * Text Opacity
1068
1072
  * @see https://tailwindcss.com/docs/text-opacity
1069
1073
  */
1070
1074
  "text-opacity": [{
1071
- "text-opacity": [y]
1075
+ "text-opacity": [N]
1072
1076
  }],
1073
1077
  /**
1074
1078
  * Text Decoration
@@ -1080,28 +1084,28 @@ const w = (e) => {
1080
1084
  * @see https://tailwindcss.com/docs/text-decoration-style
1081
1085
  */
1082
1086
  "text-decoration-style": [{
1083
- decoration: [...O(), "wavy"]
1087
+ decoration: [..._(), "wavy"]
1084
1088
  }],
1085
1089
  /**
1086
1090
  * Text Decoration Thickness
1087
1091
  * @see https://tailwindcss.com/docs/text-decoration-thickness
1088
1092
  */
1089
1093
  "text-decoration-thickness": [{
1090
- decoration: ["auto", "from-font", L, G]
1094
+ decoration: ["auto", "from-font", B, V]
1091
1095
  }],
1092
1096
  /**
1093
1097
  * Text Underline Offset
1094
1098
  * @see https://tailwindcss.com/docs/text-underline-offset
1095
1099
  */
1096
1100
  "underline-offset": [{
1097
- "underline-offset": ["auto", L, b]
1101
+ "underline-offset": ["auto", B, h]
1098
1102
  }],
1099
1103
  /**
1100
1104
  * Text Decoration Color
1101
1105
  * @see https://tailwindcss.com/docs/text-decoration-color
1102
1106
  */
1103
1107
  "text-decoration-color": [{
1104
- decoration: [e]
1108
+ decoration: [r]
1105
1109
  }],
1106
1110
  /**
1107
1111
  * Text Transform
@@ -1125,14 +1129,14 @@ const w = (e) => {
1125
1129
  * @see https://tailwindcss.com/docs/text-indent
1126
1130
  */
1127
1131
  indent: [{
1128
- indent: x()
1132
+ indent: v()
1129
1133
  }],
1130
1134
  /**
1131
1135
  * Vertical Alignment
1132
1136
  * @see https://tailwindcss.com/docs/vertical-align
1133
1137
  */
1134
1138
  "vertical-align": [{
1135
- align: ["baseline", "top", "middle", "bottom", "text-top", "text-bottom", "sub", "super", b]
1139
+ align: ["baseline", "top", "middle", "bottom", "text-top", "text-bottom", "sub", "super", h]
1136
1140
  }],
1137
1141
  /**
1138
1142
  * Whitespace
@@ -1160,7 +1164,7 @@ const w = (e) => {
1160
1164
  * @see https://tailwindcss.com/docs/content
1161
1165
  */
1162
1166
  content: [{
1163
- content: ["none", b]
1167
+ content: ["none", h]
1164
1168
  }],
1165
1169
  // Backgrounds
1166
1170
  /**
@@ -1183,7 +1187,7 @@ const w = (e) => {
1183
1187
  * @see https://tailwindcss.com/docs/background-opacity
1184
1188
  */
1185
1189
  "bg-opacity": [{
1186
- "bg-opacity": [y]
1190
+ "bg-opacity": [N]
1187
1191
  }],
1188
1192
  /**
1189
1193
  * Background Origin
@@ -1197,7 +1201,7 @@ const w = (e) => {
1197
1201
  * @see https://tailwindcss.com/docs/background-position
1198
1202
  */
1199
1203
  "bg-position": [{
1200
- bg: [..._(), gt]
1204
+ bg: [...Q(), Ir]
1201
1205
  }],
1202
1206
  /**
1203
1207
  * Background Repeat
@@ -1213,7 +1217,7 @@ const w = (e) => {
1213
1217
  * @see https://tailwindcss.com/docs/background-size
1214
1218
  */
1215
1219
  "bg-size": [{
1216
- bg: ["auto", "cover", "contain", mt]
1220
+ bg: ["auto", "cover", "contain", zr]
1217
1221
  }],
1218
1222
  /**
1219
1223
  * Background Image
@@ -1222,56 +1226,56 @@ const w = (e) => {
1222
1226
  "bg-image": [{
1223
1227
  bg: ["none", {
1224
1228
  "gradient-to": ["t", "tr", "r", "br", "b", "bl", "l", "tl"]
1225
- }, xt]
1229
+ }, Rr]
1226
1230
  }],
1227
1231
  /**
1228
1232
  * Background Color
1229
1233
  * @see https://tailwindcss.com/docs/background-color
1230
1234
  */
1231
1235
  "bg-color": [{
1232
- bg: [e]
1236
+ bg: [r]
1233
1237
  }],
1234
1238
  /**
1235
1239
  * Gradient Color Stops From Position
1236
1240
  * @see https://tailwindcss.com/docs/gradient-color-stops
1237
1241
  */
1238
1242
  "gradient-from-pos": [{
1239
- from: [v]
1243
+ from: [F]
1240
1244
  }],
1241
1245
  /**
1242
1246
  * Gradient Color Stops Via Position
1243
1247
  * @see https://tailwindcss.com/docs/gradient-color-stops
1244
1248
  */
1245
1249
  "gradient-via-pos": [{
1246
- via: [v]
1250
+ via: [F]
1247
1251
  }],
1248
1252
  /**
1249
1253
  * Gradient Color Stops To Position
1250
1254
  * @see https://tailwindcss.com/docs/gradient-color-stops
1251
1255
  */
1252
1256
  "gradient-to-pos": [{
1253
- to: [v]
1257
+ to: [F]
1254
1258
  }],
1255
1259
  /**
1256
1260
  * Gradient Color Stops From
1257
1261
  * @see https://tailwindcss.com/docs/gradient-color-stops
1258
1262
  */
1259
1263
  "gradient-from": [{
1260
- from: [f]
1264
+ from: [y]
1261
1265
  }],
1262
1266
  /**
1263
1267
  * Gradient Color Stops Via
1264
1268
  * @see https://tailwindcss.com/docs/gradient-color-stops
1265
1269
  */
1266
1270
  "gradient-via": [{
1267
- via: [f]
1271
+ via: [y]
1268
1272
  }],
1269
1273
  /**
1270
1274
  * Gradient Color Stops To
1271
1275
  * @see https://tailwindcss.com/docs/gradient-color-stops
1272
1276
  */
1273
1277
  "gradient-to": [{
1274
- to: [f]
1278
+ to: [y]
1275
1279
  }],
1276
1280
  // Borders
1277
1281
  /**
@@ -1279,189 +1283,189 @@ const w = (e) => {
1279
1283
  * @see https://tailwindcss.com/docs/border-radius
1280
1284
  */
1281
1285
  rounded: [{
1282
- rounded: [s]
1286
+ rounded: [l]
1283
1287
  }],
1284
1288
  /**
1285
1289
  * Border Radius Start
1286
1290
  * @see https://tailwindcss.com/docs/border-radius
1287
1291
  */
1288
1292
  "rounded-s": [{
1289
- "rounded-s": [s]
1293
+ "rounded-s": [l]
1290
1294
  }],
1291
1295
  /**
1292
1296
  * Border Radius End
1293
1297
  * @see https://tailwindcss.com/docs/border-radius
1294
1298
  */
1295
1299
  "rounded-e": [{
1296
- "rounded-e": [s]
1300
+ "rounded-e": [l]
1297
1301
  }],
1298
1302
  /**
1299
1303
  * Border Radius Top
1300
1304
  * @see https://tailwindcss.com/docs/border-radius
1301
1305
  */
1302
1306
  "rounded-t": [{
1303
- "rounded-t": [s]
1307
+ "rounded-t": [l]
1304
1308
  }],
1305
1309
  /**
1306
1310
  * Border Radius Right
1307
1311
  * @see https://tailwindcss.com/docs/border-radius
1308
1312
  */
1309
1313
  "rounded-r": [{
1310
- "rounded-r": [s]
1314
+ "rounded-r": [l]
1311
1315
  }],
1312
1316
  /**
1313
1317
  * Border Radius Bottom
1314
1318
  * @see https://tailwindcss.com/docs/border-radius
1315
1319
  */
1316
1320
  "rounded-b": [{
1317
- "rounded-b": [s]
1321
+ "rounded-b": [l]
1318
1322
  }],
1319
1323
  /**
1320
1324
  * Border Radius Left
1321
1325
  * @see https://tailwindcss.com/docs/border-radius
1322
1326
  */
1323
1327
  "rounded-l": [{
1324
- "rounded-l": [s]
1328
+ "rounded-l": [l]
1325
1329
  }],
1326
1330
  /**
1327
1331
  * Border Radius Start Start
1328
1332
  * @see https://tailwindcss.com/docs/border-radius
1329
1333
  */
1330
1334
  "rounded-ss": [{
1331
- "rounded-ss": [s]
1335
+ "rounded-ss": [l]
1332
1336
  }],
1333
1337
  /**
1334
1338
  * Border Radius Start End
1335
1339
  * @see https://tailwindcss.com/docs/border-radius
1336
1340
  */
1337
1341
  "rounded-se": [{
1338
- "rounded-se": [s]
1342
+ "rounded-se": [l]
1339
1343
  }],
1340
1344
  /**
1341
1345
  * Border Radius End End
1342
1346
  * @see https://tailwindcss.com/docs/border-radius
1343
1347
  */
1344
1348
  "rounded-ee": [{
1345
- "rounded-ee": [s]
1349
+ "rounded-ee": [l]
1346
1350
  }],
1347
1351
  /**
1348
1352
  * Border Radius End Start
1349
1353
  * @see https://tailwindcss.com/docs/border-radius
1350
1354
  */
1351
1355
  "rounded-es": [{
1352
- "rounded-es": [s]
1356
+ "rounded-es": [l]
1353
1357
  }],
1354
1358
  /**
1355
1359
  * Border Radius Top Left
1356
1360
  * @see https://tailwindcss.com/docs/border-radius
1357
1361
  */
1358
1362
  "rounded-tl": [{
1359
- "rounded-tl": [s]
1363
+ "rounded-tl": [l]
1360
1364
  }],
1361
1365
  /**
1362
1366
  * Border Radius Top Right
1363
1367
  * @see https://tailwindcss.com/docs/border-radius
1364
1368
  */
1365
1369
  "rounded-tr": [{
1366
- "rounded-tr": [s]
1370
+ "rounded-tr": [l]
1367
1371
  }],
1368
1372
  /**
1369
1373
  * Border Radius Bottom Right
1370
1374
  * @see https://tailwindcss.com/docs/border-radius
1371
1375
  */
1372
1376
  "rounded-br": [{
1373
- "rounded-br": [s]
1377
+ "rounded-br": [l]
1374
1378
  }],
1375
1379
  /**
1376
1380
  * Border Radius Bottom Left
1377
1381
  * @see https://tailwindcss.com/docs/border-radius
1378
1382
  */
1379
1383
  "rounded-bl": [{
1380
- "rounded-bl": [s]
1384
+ "rounded-bl": [l]
1381
1385
  }],
1382
1386
  /**
1383
1387
  * Border Width
1384
1388
  * @see https://tailwindcss.com/docs/border-width
1385
1389
  */
1386
1390
  "border-w": [{
1387
- border: [a]
1391
+ border: [c]
1388
1392
  }],
1389
1393
  /**
1390
1394
  * Border Width X
1391
1395
  * @see https://tailwindcss.com/docs/border-width
1392
1396
  */
1393
1397
  "border-w-x": [{
1394
- "border-x": [a]
1398
+ "border-x": [c]
1395
1399
  }],
1396
1400
  /**
1397
1401
  * Border Width Y
1398
1402
  * @see https://tailwindcss.com/docs/border-width
1399
1403
  */
1400
1404
  "border-w-y": [{
1401
- "border-y": [a]
1405
+ "border-y": [c]
1402
1406
  }],
1403
1407
  /**
1404
1408
  * Border Width Start
1405
1409
  * @see https://tailwindcss.com/docs/border-width
1406
1410
  */
1407
1411
  "border-w-s": [{
1408
- "border-s": [a]
1412
+ "border-s": [c]
1409
1413
  }],
1410
1414
  /**
1411
1415
  * Border Width End
1412
1416
  * @see https://tailwindcss.com/docs/border-width
1413
1417
  */
1414
1418
  "border-w-e": [{
1415
- "border-e": [a]
1419
+ "border-e": [c]
1416
1420
  }],
1417
1421
  /**
1418
1422
  * Border Width Top
1419
1423
  * @see https://tailwindcss.com/docs/border-width
1420
1424
  */
1421
1425
  "border-w-t": [{
1422
- "border-t": [a]
1426
+ "border-t": [c]
1423
1427
  }],
1424
1428
  /**
1425
1429
  * Border Width Right
1426
1430
  * @see https://tailwindcss.com/docs/border-width
1427
1431
  */
1428
1432
  "border-w-r": [{
1429
- "border-r": [a]
1433
+ "border-r": [c]
1430
1434
  }],
1431
1435
  /**
1432
1436
  * Border Width Bottom
1433
1437
  * @see https://tailwindcss.com/docs/border-width
1434
1438
  */
1435
1439
  "border-w-b": [{
1436
- "border-b": [a]
1440
+ "border-b": [c]
1437
1441
  }],
1438
1442
  /**
1439
1443
  * Border Width Left
1440
1444
  * @see https://tailwindcss.com/docs/border-width
1441
1445
  */
1442
1446
  "border-w-l": [{
1443
- "border-l": [a]
1447
+ "border-l": [c]
1444
1448
  }],
1445
1449
  /**
1446
1450
  * Border Opacity
1447
1451
  * @see https://tailwindcss.com/docs/border-opacity
1448
1452
  */
1449
1453
  "border-opacity": [{
1450
- "border-opacity": [y]
1454
+ "border-opacity": [N]
1451
1455
  }],
1452
1456
  /**
1453
1457
  * Border Style
1454
1458
  * @see https://tailwindcss.com/docs/border-style
1455
1459
  */
1456
1460
  "border-style": [{
1457
- border: [...O(), "hidden"]
1461
+ border: [..._(), "hidden"]
1458
1462
  }],
1459
1463
  /**
1460
1464
  * Divide Width X
1461
1465
  * @see https://tailwindcss.com/docs/divide-width
1462
1466
  */
1463
1467
  "divide-x": [{
1464
- "divide-x": [a]
1468
+ "divide-x": [c]
1465
1469
  }],
1466
1470
  /**
1467
1471
  * Divide Width X Reverse
@@ -1473,7 +1477,7 @@ const w = (e) => {
1473
1477
  * @see https://tailwindcss.com/docs/divide-width
1474
1478
  */
1475
1479
  "divide-y": [{
1476
- "divide-y": [a]
1480
+ "divide-y": [c]
1477
1481
  }],
1478
1482
  /**
1479
1483
  * Divide Width Y Reverse
@@ -1485,119 +1489,119 @@ const w = (e) => {
1485
1489
  * @see https://tailwindcss.com/docs/divide-opacity
1486
1490
  */
1487
1491
  "divide-opacity": [{
1488
- "divide-opacity": [y]
1492
+ "divide-opacity": [N]
1489
1493
  }],
1490
1494
  /**
1491
1495
  * Divide Style
1492
1496
  * @see https://tailwindcss.com/docs/divide-style
1493
1497
  */
1494
1498
  "divide-style": [{
1495
- divide: O()
1499
+ divide: _()
1496
1500
  }],
1497
1501
  /**
1498
1502
  * Border Color
1499
1503
  * @see https://tailwindcss.com/docs/border-color
1500
1504
  */
1501
1505
  "border-color": [{
1502
- border: [n]
1506
+ border: [i]
1503
1507
  }],
1504
1508
  /**
1505
1509
  * Border Color X
1506
1510
  * @see https://tailwindcss.com/docs/border-color
1507
1511
  */
1508
1512
  "border-color-x": [{
1509
- "border-x": [n]
1513
+ "border-x": [i]
1510
1514
  }],
1511
1515
  /**
1512
1516
  * Border Color Y
1513
1517
  * @see https://tailwindcss.com/docs/border-color
1514
1518
  */
1515
1519
  "border-color-y": [{
1516
- "border-y": [n]
1520
+ "border-y": [i]
1517
1521
  }],
1518
1522
  /**
1519
1523
  * Border Color S
1520
1524
  * @see https://tailwindcss.com/docs/border-color
1521
1525
  */
1522
1526
  "border-color-s": [{
1523
- "border-s": [n]
1527
+ "border-s": [i]
1524
1528
  }],
1525
1529
  /**
1526
1530
  * Border Color E
1527
1531
  * @see https://tailwindcss.com/docs/border-color
1528
1532
  */
1529
1533
  "border-color-e": [{
1530
- "border-e": [n]
1534
+ "border-e": [i]
1531
1535
  }],
1532
1536
  /**
1533
1537
  * Border Color Top
1534
1538
  * @see https://tailwindcss.com/docs/border-color
1535
1539
  */
1536
1540
  "border-color-t": [{
1537
- "border-t": [n]
1541
+ "border-t": [i]
1538
1542
  }],
1539
1543
  /**
1540
1544
  * Border Color Right
1541
1545
  * @see https://tailwindcss.com/docs/border-color
1542
1546
  */
1543
1547
  "border-color-r": [{
1544
- "border-r": [n]
1548
+ "border-r": [i]
1545
1549
  }],
1546
1550
  /**
1547
1551
  * Border Color Bottom
1548
1552
  * @see https://tailwindcss.com/docs/border-color
1549
1553
  */
1550
1554
  "border-color-b": [{
1551
- "border-b": [n]
1555
+ "border-b": [i]
1552
1556
  }],
1553
1557
  /**
1554
1558
  * Border Color Left
1555
1559
  * @see https://tailwindcss.com/docs/border-color
1556
1560
  */
1557
1561
  "border-color-l": [{
1558
- "border-l": [n]
1562
+ "border-l": [i]
1559
1563
  }],
1560
1564
  /**
1561
1565
  * Divide Color
1562
1566
  * @see https://tailwindcss.com/docs/divide-color
1563
1567
  */
1564
1568
  "divide-color": [{
1565
- divide: [n]
1569
+ divide: [i]
1566
1570
  }],
1567
1571
  /**
1568
1572
  * Outline Style
1569
1573
  * @see https://tailwindcss.com/docs/outline-style
1570
1574
  */
1571
1575
  "outline-style": [{
1572
- outline: ["", ...O()]
1576
+ outline: ["", ..._()]
1573
1577
  }],
1574
1578
  /**
1575
1579
  * Outline Offset
1576
1580
  * @see https://tailwindcss.com/docs/outline-offset
1577
1581
  */
1578
1582
  "outline-offset": [{
1579
- "outline-offset": [L, b]
1583
+ "outline-offset": [B, h]
1580
1584
  }],
1581
1585
  /**
1582
1586
  * Outline Width
1583
1587
  * @see https://tailwindcss.com/docs/outline-width
1584
1588
  */
1585
1589
  "outline-w": [{
1586
- outline: [L, G]
1590
+ outline: [B, V]
1587
1591
  }],
1588
1592
  /**
1589
1593
  * Outline Color
1590
1594
  * @see https://tailwindcss.com/docs/outline-color
1591
1595
  */
1592
1596
  "outline-color": [{
1593
- outline: [e]
1597
+ outline: [r]
1594
1598
  }],
1595
1599
  /**
1596
1600
  * Ring Width
1597
1601
  * @see https://tailwindcss.com/docs/ring-width
1598
1602
  */
1599
1603
  "ring-w": [{
1600
- ring: J()
1604
+ ring: j()
1601
1605
  }],
1602
1606
  /**
1603
1607
  * Ring Width Inset
@@ -1609,28 +1613,28 @@ const w = (e) => {
1609
1613
  * @see https://tailwindcss.com/docs/ring-color
1610
1614
  */
1611
1615
  "ring-color": [{
1612
- ring: [e]
1616
+ ring: [r]
1613
1617
  }],
1614
1618
  /**
1615
1619
  * Ring Opacity
1616
1620
  * @see https://tailwindcss.com/docs/ring-opacity
1617
1621
  */
1618
1622
  "ring-opacity": [{
1619
- "ring-opacity": [y]
1623
+ "ring-opacity": [N]
1620
1624
  }],
1621
1625
  /**
1622
1626
  * Ring Offset Width
1623
1627
  * @see https://tailwindcss.com/docs/ring-offset-width
1624
1628
  */
1625
1629
  "ring-offset-w": [{
1626
- "ring-offset": [L, G]
1630
+ "ring-offset": [B, V]
1627
1631
  }],
1628
1632
  /**
1629
1633
  * Ring Offset Color
1630
1634
  * @see https://tailwindcss.com/docs/ring-offset-color
1631
1635
  */
1632
1636
  "ring-offset-color": [{
1633
- "ring-offset": [e]
1637
+ "ring-offset": [r]
1634
1638
  }],
1635
1639
  // Effects
1636
1640
  /**
@@ -1638,35 +1642,35 @@ const w = (e) => {
1638
1642
  * @see https://tailwindcss.com/docs/box-shadow
1639
1643
  */
1640
1644
  shadow: [{
1641
- shadow: ["", "inner", "none", B, yt]
1645
+ shadow: ["", "inner", "none", K, Br]
1642
1646
  }],
1643
1647
  /**
1644
1648
  * Box Shadow Color
1645
1649
  * @see https://tailwindcss.com/docs/box-shadow-color
1646
1650
  */
1647
1651
  "shadow-color": [{
1648
- shadow: [X]
1652
+ shadow: [S]
1649
1653
  }],
1650
1654
  /**
1651
1655
  * Opacity
1652
1656
  * @see https://tailwindcss.com/docs/opacity
1653
1657
  */
1654
1658
  opacity: [{
1655
- opacity: [y]
1659
+ opacity: [N]
1656
1660
  }],
1657
1661
  /**
1658
1662
  * Mix Blend Mode
1659
1663
  * @see https://tailwindcss.com/docs/mix-blend-mode
1660
1664
  */
1661
1665
  "mix-blend": [{
1662
- "mix-blend": [...se(), "plus-lighter", "plus-darker"]
1666
+ "mix-blend": [...ee(), "plus-lighter", "plus-darker"]
1663
1667
  }],
1664
1668
  /**
1665
1669
  * Background Blend Mode
1666
1670
  * @see https://tailwindcss.com/docs/background-blend-mode
1667
1671
  */
1668
1672
  "bg-blend": [{
1669
- "bg-blend": se()
1673
+ "bg-blend": ee()
1670
1674
  }],
1671
1675
  // Filters
1672
1676
  /**
@@ -1696,28 +1700,28 @@ const w = (e) => {
1696
1700
  * @see https://tailwindcss.com/docs/contrast
1697
1701
  */
1698
1702
  contrast: [{
1699
- contrast: [d]
1703
+ contrast: [e]
1700
1704
  }],
1701
1705
  /**
1702
1706
  * Drop Shadow
1703
1707
  * @see https://tailwindcss.com/docs/drop-shadow
1704
1708
  */
1705
1709
  "drop-shadow": [{
1706
- "drop-shadow": ["", "none", B, b]
1710
+ "drop-shadow": ["", "none", K, h]
1707
1711
  }],
1708
1712
  /**
1709
1713
  * Grayscale
1710
1714
  * @see https://tailwindcss.com/docs/grayscale
1711
1715
  */
1712
1716
  grayscale: [{
1713
- grayscale: [c]
1717
+ grayscale: [f]
1714
1718
  }],
1715
1719
  /**
1716
1720
  * Hue Rotate
1717
1721
  * @see https://tailwindcss.com/docs/hue-rotate
1718
1722
  */
1719
1723
  "hue-rotate": [{
1720
- "hue-rotate": [p]
1724
+ "hue-rotate": [x]
1721
1725
  }],
1722
1726
  /**
1723
1727
  * Invert
@@ -1731,14 +1735,14 @@ const w = (e) => {
1731
1735
  * @see https://tailwindcss.com/docs/saturate
1732
1736
  */
1733
1737
  saturate: [{
1734
- saturate: [P]
1738
+ saturate: [k]
1735
1739
  }],
1736
1740
  /**
1737
1741
  * Sepia
1738
1742
  * @see https://tailwindcss.com/docs/sepia
1739
1743
  */
1740
1744
  sepia: [{
1741
- sepia: [I]
1745
+ sepia: [D]
1742
1746
  }],
1743
1747
  /**
1744
1748
  * Backdrop Filter
@@ -1767,21 +1771,21 @@ const w = (e) => {
1767
1771
  * @see https://tailwindcss.com/docs/backdrop-contrast
1768
1772
  */
1769
1773
  "backdrop-contrast": [{
1770
- "backdrop-contrast": [d]
1774
+ "backdrop-contrast": [e]
1771
1775
  }],
1772
1776
  /**
1773
1777
  * Backdrop Grayscale
1774
1778
  * @see https://tailwindcss.com/docs/backdrop-grayscale
1775
1779
  */
1776
1780
  "backdrop-grayscale": [{
1777
- "backdrop-grayscale": [c]
1781
+ "backdrop-grayscale": [f]
1778
1782
  }],
1779
1783
  /**
1780
1784
  * Backdrop Hue Rotate
1781
1785
  * @see https://tailwindcss.com/docs/backdrop-hue-rotate
1782
1786
  */
1783
1787
  "backdrop-hue-rotate": [{
1784
- "backdrop-hue-rotate": [p]
1788
+ "backdrop-hue-rotate": [x]
1785
1789
  }],
1786
1790
  /**
1787
1791
  * Backdrop Invert
@@ -1795,21 +1799,21 @@ const w = (e) => {
1795
1799
  * @see https://tailwindcss.com/docs/backdrop-opacity
1796
1800
  */
1797
1801
  "backdrop-opacity": [{
1798
- "backdrop-opacity": [y]
1802
+ "backdrop-opacity": [N]
1799
1803
  }],
1800
1804
  /**
1801
1805
  * Backdrop Saturate
1802
1806
  * @see https://tailwindcss.com/docs/backdrop-saturate
1803
1807
  */
1804
1808
  "backdrop-saturate": [{
1805
- "backdrop-saturate": [P]
1809
+ "backdrop-saturate": [k]
1806
1810
  }],
1807
1811
  /**
1808
1812
  * Backdrop Sepia
1809
1813
  * @see https://tailwindcss.com/docs/backdrop-sepia
1810
1814
  */
1811
1815
  "backdrop-sepia": [{
1812
- "backdrop-sepia": [I]
1816
+ "backdrop-sepia": [D]
1813
1817
  }],
1814
1818
  // Tables
1815
1819
  /**
@@ -1824,21 +1828,21 @@ const w = (e) => {
1824
1828
  * @see https://tailwindcss.com/docs/border-spacing
1825
1829
  */
1826
1830
  "border-spacing": [{
1827
- "border-spacing": [i]
1831
+ "border-spacing": [u]
1828
1832
  }],
1829
1833
  /**
1830
1834
  * Border Spacing X
1831
1835
  * @see https://tailwindcss.com/docs/border-spacing
1832
1836
  */
1833
1837
  "border-spacing-x": [{
1834
- "border-spacing-x": [i]
1838
+ "border-spacing-x": [u]
1835
1839
  }],
1836
1840
  /**
1837
1841
  * Border Spacing Y
1838
1842
  * @see https://tailwindcss.com/docs/border-spacing
1839
1843
  */
1840
1844
  "border-spacing-y": [{
1841
- "border-spacing-y": [i]
1845
+ "border-spacing-y": [u]
1842
1846
  }],
1843
1847
  /**
1844
1848
  * Table Layout
@@ -1860,35 +1864,35 @@ const w = (e) => {
1860
1864
  * @see https://tailwindcss.com/docs/transition-property
1861
1865
  */
1862
1866
  transition: [{
1863
- transition: ["none", "all", "", "colors", "opacity", "shadow", "transform", b]
1867
+ transition: ["none", "all", "", "colors", "opacity", "shadow", "transform", h]
1864
1868
  }],
1865
1869
  /**
1866
1870
  * Transition Duration
1867
1871
  * @see https://tailwindcss.com/docs/transition-duration
1868
1872
  */
1869
1873
  duration: [{
1870
- duration: j()
1874
+ duration: M()
1871
1875
  }],
1872
1876
  /**
1873
1877
  * Transition Timing Function
1874
1878
  * @see https://tailwindcss.com/docs/transition-timing-function
1875
1879
  */
1876
1880
  ease: [{
1877
- ease: ["linear", "in", "out", "in-out", b]
1881
+ ease: ["linear", "in", "out", "in-out", h]
1878
1882
  }],
1879
1883
  /**
1880
1884
  * Transition Delay
1881
1885
  * @see https://tailwindcss.com/docs/transition-delay
1882
1886
  */
1883
1887
  delay: [{
1884
- delay: j()
1888
+ delay: M()
1885
1889
  }],
1886
1890
  /**
1887
1891
  * Animation
1888
1892
  * @see https://tailwindcss.com/docs/animation
1889
1893
  */
1890
1894
  animate: [{
1891
- animate: ["none", "spin", "ping", "pulse", "bounce", b]
1895
+ animate: ["none", "spin", "ping", "pulse", "bounce", h]
1892
1896
  }],
1893
1897
  // Transforms
1894
1898
  /**
@@ -1903,63 +1907,63 @@ const w = (e) => {
1903
1907
  * @see https://tailwindcss.com/docs/scale
1904
1908
  */
1905
1909
  scale: [{
1906
- scale: [E]
1910
+ scale: [p]
1907
1911
  }],
1908
1912
  /**
1909
1913
  * Scale X
1910
1914
  * @see https://tailwindcss.com/docs/scale
1911
1915
  */
1912
1916
  "scale-x": [{
1913
- "scale-x": [E]
1917
+ "scale-x": [p]
1914
1918
  }],
1915
1919
  /**
1916
1920
  * Scale Y
1917
1921
  * @see https://tailwindcss.com/docs/scale
1918
1922
  */
1919
1923
  "scale-y": [{
1920
- "scale-y": [E]
1924
+ "scale-y": [p]
1921
1925
  }],
1922
1926
  /**
1923
1927
  * Rotate
1924
1928
  * @see https://tailwindcss.com/docs/rotate
1925
1929
  */
1926
1930
  rotate: [{
1927
- rotate: [K, b]
1931
+ rotate: [q, h]
1928
1932
  }],
1929
1933
  /**
1930
1934
  * Translate X
1931
1935
  * @see https://tailwindcss.com/docs/translate
1932
1936
  */
1933
1937
  "translate-x": [{
1934
- "translate-x": [U]
1938
+ "translate-x": [E]
1935
1939
  }],
1936
1940
  /**
1937
1941
  * Translate Y
1938
1942
  * @see https://tailwindcss.com/docs/translate
1939
1943
  */
1940
1944
  "translate-y": [{
1941
- "translate-y": [U]
1945
+ "translate-y": [E]
1942
1946
  }],
1943
1947
  /**
1944
1948
  * Skew X
1945
1949
  * @see https://tailwindcss.com/docs/skew
1946
1950
  */
1947
1951
  "skew-x": [{
1948
- "skew-x": [M]
1952
+ "skew-x": [I]
1949
1953
  }],
1950
1954
  /**
1951
1955
  * Skew Y
1952
1956
  * @see https://tailwindcss.com/docs/skew
1953
1957
  */
1954
1958
  "skew-y": [{
1955
- "skew-y": [M]
1959
+ "skew-y": [I]
1956
1960
  }],
1957
1961
  /**
1958
1962
  * Transform Origin
1959
1963
  * @see https://tailwindcss.com/docs/transform-origin
1960
1964
  */
1961
1965
  "transform-origin": [{
1962
- origin: ["center", "top", "top-right", "right", "bottom-right", "bottom", "bottom-left", "left", "top-left", b]
1966
+ origin: ["center", "top", "top-right", "right", "bottom-right", "bottom", "bottom-left", "left", "top-left", h]
1963
1967
  }],
1964
1968
  // Interactivity
1965
1969
  /**
@@ -1967,7 +1971,7 @@ const w = (e) => {
1967
1971
  * @see https://tailwindcss.com/docs/accent-color
1968
1972
  */
1969
1973
  accent: [{
1970
- accent: ["auto", e]
1974
+ accent: ["auto", r]
1971
1975
  }],
1972
1976
  /**
1973
1977
  * Appearance
@@ -1981,14 +1985,14 @@ const w = (e) => {
1981
1985
  * @see https://tailwindcss.com/docs/cursor
1982
1986
  */
1983
1987
  cursor: [{
1984
- 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", b]
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]
1985
1989
  }],
1986
1990
  /**
1987
1991
  * Caret Color
1988
1992
  * @see https://tailwindcss.com/docs/just-in-time-mode#caret-color-utilities
1989
1993
  */
1990
1994
  "caret-color": [{
1991
- caret: [e]
1995
+ caret: [r]
1992
1996
  }],
1993
1997
  /**
1994
1998
  * Pointer Events
@@ -2016,126 +2020,126 @@ const w = (e) => {
2016
2020
  * @see https://tailwindcss.com/docs/scroll-margin
2017
2021
  */
2018
2022
  "scroll-m": [{
2019
- "scroll-m": x()
2023
+ "scroll-m": v()
2020
2024
  }],
2021
2025
  /**
2022
2026
  * Scroll Margin X
2023
2027
  * @see https://tailwindcss.com/docs/scroll-margin
2024
2028
  */
2025
2029
  "scroll-mx": [{
2026
- "scroll-mx": x()
2030
+ "scroll-mx": v()
2027
2031
  }],
2028
2032
  /**
2029
2033
  * Scroll Margin Y
2030
2034
  * @see https://tailwindcss.com/docs/scroll-margin
2031
2035
  */
2032
2036
  "scroll-my": [{
2033
- "scroll-my": x()
2037
+ "scroll-my": v()
2034
2038
  }],
2035
2039
  /**
2036
2040
  * Scroll Margin Start
2037
2041
  * @see https://tailwindcss.com/docs/scroll-margin
2038
2042
  */
2039
2043
  "scroll-ms": [{
2040
- "scroll-ms": x()
2044
+ "scroll-ms": v()
2041
2045
  }],
2042
2046
  /**
2043
2047
  * Scroll Margin End
2044
2048
  * @see https://tailwindcss.com/docs/scroll-margin
2045
2049
  */
2046
2050
  "scroll-me": [{
2047
- "scroll-me": x()
2051
+ "scroll-me": v()
2048
2052
  }],
2049
2053
  /**
2050
2054
  * Scroll Margin Top
2051
2055
  * @see https://tailwindcss.com/docs/scroll-margin
2052
2056
  */
2053
2057
  "scroll-mt": [{
2054
- "scroll-mt": x()
2058
+ "scroll-mt": v()
2055
2059
  }],
2056
2060
  /**
2057
2061
  * Scroll Margin Right
2058
2062
  * @see https://tailwindcss.com/docs/scroll-margin
2059
2063
  */
2060
2064
  "scroll-mr": [{
2061
- "scroll-mr": x()
2065
+ "scroll-mr": v()
2062
2066
  }],
2063
2067
  /**
2064
2068
  * Scroll Margin Bottom
2065
2069
  * @see https://tailwindcss.com/docs/scroll-margin
2066
2070
  */
2067
2071
  "scroll-mb": [{
2068
- "scroll-mb": x()
2072
+ "scroll-mb": v()
2069
2073
  }],
2070
2074
  /**
2071
2075
  * Scroll Margin Left
2072
2076
  * @see https://tailwindcss.com/docs/scroll-margin
2073
2077
  */
2074
2078
  "scroll-ml": [{
2075
- "scroll-ml": x()
2079
+ "scroll-ml": v()
2076
2080
  }],
2077
2081
  /**
2078
2082
  * Scroll Padding
2079
2083
  * @see https://tailwindcss.com/docs/scroll-padding
2080
2084
  */
2081
2085
  "scroll-p": [{
2082
- "scroll-p": x()
2086
+ "scroll-p": v()
2083
2087
  }],
2084
2088
  /**
2085
2089
  * Scroll Padding X
2086
2090
  * @see https://tailwindcss.com/docs/scroll-padding
2087
2091
  */
2088
2092
  "scroll-px": [{
2089
- "scroll-px": x()
2093
+ "scroll-px": v()
2090
2094
  }],
2091
2095
  /**
2092
2096
  * Scroll Padding Y
2093
2097
  * @see https://tailwindcss.com/docs/scroll-padding
2094
2098
  */
2095
2099
  "scroll-py": [{
2096
- "scroll-py": x()
2100
+ "scroll-py": v()
2097
2101
  }],
2098
2102
  /**
2099
2103
  * Scroll Padding Start
2100
2104
  * @see https://tailwindcss.com/docs/scroll-padding
2101
2105
  */
2102
2106
  "scroll-ps": [{
2103
- "scroll-ps": x()
2107
+ "scroll-ps": v()
2104
2108
  }],
2105
2109
  /**
2106
2110
  * Scroll Padding End
2107
2111
  * @see https://tailwindcss.com/docs/scroll-padding
2108
2112
  */
2109
2113
  "scroll-pe": [{
2110
- "scroll-pe": x()
2114
+ "scroll-pe": v()
2111
2115
  }],
2112
2116
  /**
2113
2117
  * Scroll Padding Top
2114
2118
  * @see https://tailwindcss.com/docs/scroll-padding
2115
2119
  */
2116
2120
  "scroll-pt": [{
2117
- "scroll-pt": x()
2121
+ "scroll-pt": v()
2118
2122
  }],
2119
2123
  /**
2120
2124
  * Scroll Padding Right
2121
2125
  * @see https://tailwindcss.com/docs/scroll-padding
2122
2126
  */
2123
2127
  "scroll-pr": [{
2124
- "scroll-pr": x()
2128
+ "scroll-pr": v()
2125
2129
  }],
2126
2130
  /**
2127
2131
  * Scroll Padding Bottom
2128
2132
  * @see https://tailwindcss.com/docs/scroll-padding
2129
2133
  */
2130
2134
  "scroll-pb": [{
2131
- "scroll-pb": x()
2135
+ "scroll-pb": v()
2132
2136
  }],
2133
2137
  /**
2134
2138
  * Scroll Padding Left
2135
2139
  * @see https://tailwindcss.com/docs/scroll-padding
2136
2140
  */
2137
2141
  "scroll-pl": [{
2138
- "scroll-pl": x()
2142
+ "scroll-pl": v()
2139
2143
  }],
2140
2144
  /**
2141
2145
  * Scroll Snap Align
@@ -2203,7 +2207,7 @@ const w = (e) => {
2203
2207
  * @see https://tailwindcss.com/docs/will-change
2204
2208
  */
2205
2209
  "will-change": [{
2206
- "will-change": ["auto", "scroll", "contents", "transform", b]
2210
+ "will-change": ["auto", "scroll", "contents", "transform", h]
2207
2211
  }],
2208
2212
  // SVG
2209
2213
  /**
@@ -2211,21 +2215,21 @@ const w = (e) => {
2211
2215
  * @see https://tailwindcss.com/docs/fill
2212
2216
  */
2213
2217
  fill: [{
2214
- fill: [e, "none"]
2218
+ fill: [r, "none"]
2215
2219
  }],
2216
2220
  /**
2217
2221
  * Stroke Width
2218
2222
  * @see https://tailwindcss.com/docs/stroke-width
2219
2223
  */
2220
2224
  "stroke-w": [{
2221
- stroke: [L, G, q]
2225
+ stroke: [B, V, le]
2222
2226
  }],
2223
2227
  /**
2224
2228
  * Stroke
2225
2229
  * @see https://tailwindcss.com/docs/stroke
2226
2230
  */
2227
2231
  stroke: [{
2228
- stroke: [e, "none"]
2232
+ stroke: [r, "none"]
2229
2233
  }],
2230
2234
  // Accessibility
2231
2235
  /**
@@ -2293,156 +2297,156 @@ const w = (e) => {
2293
2297
  "font-size": ["leading"]
2294
2298
  }
2295
2299
  };
2296
- }, Nt = /* @__PURE__ */ st(kt);
2297
- function A(...e) {
2298
- return Nt(xe(e));
2300
+ }, Kr = /* @__PURE__ */ Nr(Vr);
2301
+ function d(...r) {
2302
+ return Kr(ze(r));
2299
2303
  }
2300
- const oe = k.forwardRef(({ className: e, ...r }, t) => /* @__PURE__ */ l(
2304
+ const ne = A.forwardRef(({ className: r, ...n }, t) => /* @__PURE__ */ a(
2301
2305
  "div",
2302
2306
  {
2303
2307
  ref: t,
2304
- className: A(
2308
+ className: d(
2305
2309
  "rounded-xl border bg-card text-card-foreground shadow",
2306
- e
2310
+ r
2307
2311
  ),
2308
- ...r
2312
+ ...n
2309
2313
  }
2310
2314
  ));
2311
- oe.displayName = "Card";
2312
- const Ne = k.forwardRef(({ className: e, ...r }, t) => /* @__PURE__ */ l(
2315
+ ne.displayName = "Card";
2316
+ const be = A.forwardRef(({ className: r, ...n }, t) => /* @__PURE__ */ a(
2313
2317
  "div",
2314
2318
  {
2315
2319
  ref: t,
2316
- className: A("flex flex-col space-y-1.5 p-6", e),
2317
- ...r
2320
+ className: d("flex flex-col space-y-1.5 p-6", r),
2321
+ ...n
2318
2322
  }
2319
2323
  ));
2320
- Ne.displayName = "CardHeader";
2321
- const Ae = k.forwardRef(({ className: e, ...r }, t) => /* @__PURE__ */ l(
2324
+ be.displayName = "CardHeader";
2325
+ const ge = A.forwardRef(({ className: r, ...n }, t) => /* @__PURE__ */ a(
2322
2326
  "div",
2323
2327
  {
2324
2328
  ref: t,
2325
- className: A("font-semibold leading-none tracking-tight", e),
2326
- ...r
2329
+ className: d("font-semibold leading-none tracking-tight", r),
2330
+ ...n
2327
2331
  }
2328
2332
  ));
2329
- Ae.displayName = "CardTitle";
2330
- const Pe = k.forwardRef(({ className: e, ...r }, t) => /* @__PURE__ */ l(
2333
+ ge.displayName = "CardTitle";
2334
+ const pe = A.forwardRef(({ className: r, ...n }, t) => /* @__PURE__ */ a(
2331
2335
  "div",
2332
2336
  {
2333
2337
  ref: t,
2334
- className: A("text-sm text-muted-foreground", e),
2335
- ...r
2338
+ className: d("text-sm text-muted-foreground", r),
2339
+ ...n
2336
2340
  }
2337
2341
  ));
2338
- Pe.displayName = "CardDescription";
2339
- const ne = k.forwardRef(({ className: e, ...r }, t) => /* @__PURE__ */ l("div", { ref: t, className: A("p-6 pt-0", e), ...r }));
2340
- ne.displayName = "CardContent";
2341
- const At = k.forwardRef(({ className: e, ...r }, t) => /* @__PURE__ */ l(
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
2346
  "div",
2343
2347
  {
2344
2348
  ref: t,
2345
- className: A("flex items-center p-6 pt-0", e),
2346
- ...r
2349
+ className: d("flex items-center p-6 pt-0", r),
2350
+ ...n
2347
2351
  }
2348
2352
  ));
2349
- At.displayName = "CardFooter";
2350
- function fe(e, r) {
2351
- if (typeof e == "function")
2352
- return e(r);
2353
- e != null && (e.current = r);
2353
+ Wr.displayName = "CardFooter";
2354
+ function Me(r, n) {
2355
+ if (typeof r == "function")
2356
+ return r(n);
2357
+ r != null && (r.current = n);
2354
2358
  }
2355
- function Pt(...e) {
2356
- return (r) => {
2359
+ function _r(...r) {
2360
+ return (n) => {
2357
2361
  let t = !1;
2358
- const o = e.map((n) => {
2359
- const s = fe(n, r);
2360
- return !t && typeof s == "function" && (t = !0), s;
2362
+ const o = r.map((i) => {
2363
+ const l = Me(i, n);
2364
+ return !t && typeof l == "function" && (t = !0), l;
2361
2365
  });
2362
2366
  if (t)
2363
2367
  return () => {
2364
- for (let n = 0; n < o.length; n++) {
2365
- const s = o[n];
2366
- typeof s == "function" ? s() : fe(e[n], null);
2368
+ for (let i = 0; i < o.length; i++) {
2369
+ const l = o[i];
2370
+ typeof l == "function" ? l() : Me(r[i], null);
2367
2371
  }
2368
2372
  };
2369
2373
  };
2370
2374
  }
2371
2375
  // @__NO_SIDE_EFFECTS__
2372
- function St(e) {
2373
- const r = /* @__PURE__ */ zt(e), t = k.forwardRef((o, n) => {
2374
- const { children: s, ...i } = o, a = k.Children.toArray(s), d = a.find(Mt);
2375
- if (d) {
2376
- const c = d.props.children, p = a.map((g) => g === d ? k.Children.count(c) > 1 ? k.Children.only(null) : k.isValidElement(c) ? c.props.children : null : g);
2377
- return /* @__PURE__ */ l(r, { ...i, ref: n, children: k.isValidElement(c) ? k.cloneElement(c, void 0, p) : null });
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);
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 });
2378
2382
  }
2379
- return /* @__PURE__ */ l(r, { ...i, ref: n, children: s });
2383
+ return /* @__PURE__ */ a(n, { ...u, ref: i, children: l });
2380
2384
  });
2381
- return t.displayName = `${e}.Slot`, t;
2385
+ return t.displayName = `${r}.Slot`, t;
2382
2386
  }
2383
- var Et = /* @__PURE__ */ St("Slot");
2387
+ var Hr = /* @__PURE__ */ Or("Slot");
2384
2388
  // @__NO_SIDE_EFFECTS__
2385
- function zt(e) {
2386
- const r = k.forwardRef((t, o) => {
2387
- const { children: n, ...s } = t;
2388
- if (k.isValidElement(n)) {
2389
- const i = Rt(n), a = Tt(s, n.props);
2390
- return n.type !== k.Fragment && (a.ref = o ? Pt(o, i) : i), k.cloneElement(n, a);
2389
+ function Xr(r) {
2390
+ const n = A.forwardRef((t, o) => {
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);
2391
2395
  }
2392
- return k.Children.count(n) > 1 ? k.Children.only(null) : null;
2396
+ return A.Children.count(i) > 1 ? A.Children.only(null) : null;
2393
2397
  });
2394
- return r.displayName = `${e}.SlotClone`, r;
2398
+ return n.displayName = `${r}.SlotClone`, n;
2395
2399
  }
2396
- var It = Symbol("radix.slottable");
2397
- function Mt(e) {
2398
- return k.isValidElement(e) && typeof e.type == "function" && "__radixId" in e.type && e.type.__radixId === It;
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;
2399
2403
  }
2400
- function Tt(e, r) {
2401
- const t = { ...r };
2402
- for (const o in r) {
2403
- const n = e[o], s = r[o];
2404
- /^on[A-Z]/.test(o) ? n && s ? t[o] = (...a) => {
2405
- const d = s(...a);
2406
- return n(...a), d;
2407
- } : n && (t[o] = n) : o === "style" ? t[o] = { ...n, ...s } : o === "className" && (t[o] = [n, s].filter(Boolean).join(" "));
2404
+ function Zr(r, n) {
2405
+ const t = { ...n };
2406
+ for (const o in n) {
2407
+ const i = r[o], l = n[o];
2408
+ /^on[A-Z]/.test(o) ? i && l ? t[o] = (...c) => {
2409
+ const e = l(...c);
2410
+ return i(...c), e;
2411
+ } : i && (t[o] = i) : o === "style" ? t[o] = { ...i, ...l } : o === "className" && (t[o] = [i, l].filter(Boolean).join(" "));
2408
2412
  }
2409
- return { ...e, ...t };
2413
+ return { ...r, ...t };
2410
2414
  }
2411
- function Rt(e) {
2412
- var o, n;
2413
- let r = (o = Object.getOwnPropertyDescriptor(e.props, "ref")) == null ? void 0 : o.get, t = r && "isReactWarning" in r && r.isReactWarning;
2414
- return t ? e.ref : (r = (n = Object.getOwnPropertyDescriptor(e, "ref")) == null ? void 0 : n.get, t = r && "isReactWarning" in r && r.isReactWarning, t ? e.props.ref : e.props.ref || e.ref);
2415
+ function qr(r) {
2416
+ var o, i;
2417
+ let n = (o = Object.getOwnPropertyDescriptor(r.props, "ref")) == null ? void 0 : o.get, t = n && "isReactWarning" in n && n.isReactWarning;
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);
2415
2419
  }
2416
- const be = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, me = xe, Se = (e, r) => (t) => {
2420
+ const Te = (r) => typeof r == "boolean" ? `${r}` : r === 0 ? "0" : r, Ee = ze, Ue = (r, n) => (t) => {
2417
2421
  var o;
2418
- if ((r == null ? void 0 : r.variants) == null) return me(e, t == null ? void 0 : t.class, t == null ? void 0 : t.className);
2419
- const { variants: n, defaultVariants: s } = r, i = Object.keys(n).map((c) => {
2420
- const p = t == null ? void 0 : t[c], g = s == null ? void 0 : s[c];
2421
- if (p === null) return null;
2422
- const u = be(p) || be(g);
2423
- return n[c][u];
2424
- }), a = t && Object.entries(t).reduce((c, p) => {
2425
- let [g, u] = p;
2426
- return u === void 0 || (c[g] = u), c;
2427
- }, {}), d = r == null || (o = r.compoundVariants) === null || o === void 0 ? void 0 : o.reduce((c, p) => {
2428
- let { class: g, className: u, ...f } = p;
2429
- return Object.entries(f).every((v) => {
2430
- let [h, m] = v;
2431
- return Array.isArray(m) ? m.includes({
2432
- ...s,
2433
- ...a
2434
- }[h]) : {
2435
- ...s,
2436
- ...a
2437
- }[h] === m;
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({
2436
+ ...l,
2437
+ ...c
2438
+ }[m]) : {
2439
+ ...l,
2440
+ ...c
2441
+ }[m] === w;
2438
2442
  }) ? [
2439
- ...c,
2443
+ ...f,
2440
2444
  g,
2441
- u
2442
- ] : c;
2445
+ s
2446
+ ] : f;
2443
2447
  }, []);
2444
- return me(e, i, d, t == null ? void 0 : t.class, t == null ? void 0 : t.className);
2445
- }, jt = Se(
2448
+ return Ee(r, u, e, t == null ? void 0 : t.class, t == null ? void 0 : t.className);
2449
+ }, Sr = Ue(
2446
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",
2447
2451
  {
2448
2452
  variants: {
@@ -2466,92 +2470,95 @@ const be = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, me = xe, S
2466
2470
  size: "default"
2467
2471
  }
2468
2472
  }
2469
- ), Ee = k.forwardRef(
2470
- ({ className: e, variant: r, size: t, asChild: o = !1, ...n }, s) => /* @__PURE__ */ l(
2471
- o ? Et : "button",
2473
+ ), Ge = A.forwardRef(
2474
+ ({ className: r, variant: n, size: t, asChild: o = !1, ...i }, l) => /* @__PURE__ */ a(
2475
+ o ? Hr : "button",
2472
2476
  {
2473
- className: A(jt({ variant: r, size: t, className: e })),
2474
- ref: s,
2475
- ...n
2477
+ className: d(Sr({ variant: n, size: t, className: r })),
2478
+ ref: l,
2479
+ ...i
2476
2480
  }
2477
2481
  )
2478
2482
  );
2479
- Ee.displayName = "Button";
2480
- const Z = k.forwardRef(
2481
- ({ className: e, size: r = "md", variant: t = "default", ...o }, n) => {
2482
- const s = {
2483
+ Ge.displayName = "Button";
2484
+ const oe = A.forwardRef(
2485
+ ({ className: r, size: n = "md", variant: t = "default", ...o }, i) => {
2486
+ const l = {
2483
2487
  sm: "h-4 w-4",
2484
2488
  md: "h-6 w-6",
2485
2489
  lg: "h-8 w-8"
2486
- }, i = {
2490
+ }, u = {
2487
2491
  default: "border-gray-200 border-t-gray-900",
2488
2492
  solana: "border-gray-200 border-t-solana-primary"
2489
2493
  };
2490
- return /* @__PURE__ */ l(
2494
+ return /* @__PURE__ */ a(
2491
2495
  "div",
2492
2496
  {
2493
- ref: n,
2494
- className: A(
2497
+ ref: i,
2498
+ className: d(
2495
2499
  "inline-block animate-spin rounded-full border-2",
2496
- s[r],
2497
- i[t],
2498
- e
2500
+ l[n],
2501
+ u[t],
2502
+ r
2499
2503
  ),
2500
2504
  role: "status",
2501
2505
  "aria-label": "Loading",
2502
2506
  ...o,
2503
- children: /* @__PURE__ */ l("span", { className: "sr-only", children: "Loading..." })
2507
+ children: /* @__PURE__ */ a("span", { className: "sr-only", children: "Loading..." })
2504
2508
  }
2505
2509
  );
2506
2510
  }
2507
2511
  );
2508
- Z.displayName = "Spinner";
2509
- const ze = k.forwardRef(
2512
+ oe.displayName = "Spinner";
2513
+ const te = A.forwardRef(
2510
2514
  ({
2511
- amount: e,
2512
- description: r,
2515
+ amount: r,
2516
+ description: n,
2513
2517
  onClick: t,
2514
2518
  disabled: o = !1,
2515
- loading: n = !1,
2516
- className: s,
2517
- style: i,
2518
- ...a
2519
- }, d) => {
2520
- const c = (p) => new Intl.NumberFormat("en-US", {
2519
+ loading: i = !1,
2520
+ className: l,
2521
+ style: u,
2522
+ customText: c,
2523
+ ...e
2524
+ }, f) => {
2525
+ const x = (g) => new Intl.NumberFormat("en-US", {
2521
2526
  style: "currency",
2522
2527
  currency: "USD",
2523
2528
  minimumFractionDigits: 2
2524
- }).format(p);
2525
- return /* @__PURE__ */ l(
2526
- Ee,
2529
+ }).format(g);
2530
+ return /* @__PURE__ */ a(
2531
+ Ge,
2527
2532
  {
2528
- ref: d,
2533
+ ref: f,
2529
2534
  onClick: t,
2530
- disabled: o || n,
2531
- className: A(
2532
- "w-full bg-solana-gradient hover:opacity-90 text-white font-semibold shadow-lg hover:shadow-xl transition-all duration-200 transform hover:scale-[1.02] rounded-xl",
2533
- o || n ? "opacity-50 cursor-not-allowed" : "",
2534
- s
2535
+ disabled: o || i,
2536
+ className: d(
2537
+ "w-full hover:opacity-90 text-white font-normal shadow-lg hover:shadow-xl transition-all duration-200 transform hover:scale-[1.02] rounded-xl",
2538
+ // Only apply bg-solana-gradient if no custom style is provided
2539
+ !u && "bg-solana-gradient",
2540
+ o || i ? "opacity-50 cursor-not-allowed" : "",
2541
+ l
2535
2542
  ),
2536
- style: i,
2537
- ...a,
2538
- children: n ? /* @__PURE__ */ C("div", { className: "flex items-center gap-3", children: [
2539
- /* @__PURE__ */ l(Z, { size: "sm", variant: "default", className: "border-white/30 border-t-white" }),
2540
- /* @__PURE__ */ l("span", { children: "Processing Payment..." })
2541
- ] }) : /* @__PURE__ */ C("div", { className: "flex items-center justify-center gap-3", children: [
2542
- /* @__PURE__ */ l("svg", { className: "w-5 h-5", fill: "currentColor", viewBox: "0 0 24 24", children: /* @__PURE__ */ l("path", { d: "M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm3.5 6L12 10.5 8.5 8 12 5.5 15.5 8zM8.5 16L12 13.5 15.5 16 12 18.5 8.5 16z" }) }),
2543
- /* @__PURE__ */ C("span", { children: [
2544
- "Pay ",
2545
- c(e),
2546
- " USDC"
2547
- ] })
2548
- ] })
2543
+ style: u,
2544
+ ...e,
2545
+ children: i ? /* @__PURE__ */ b("div", { className: "flex items-center gap-3", children: [
2546
+ /* @__PURE__ */ a(
2547
+ oe,
2548
+ {
2549
+ size: "sm",
2550
+ variant: "default",
2551
+ className: "border-white/30 border-t-white"
2552
+ }
2553
+ ),
2554
+ /* @__PURE__ */ a("span", { children: "Processing Payment..." })
2555
+ ] }) : /* @__PURE__ */ a("span", { children: c || `Pay ${x(r)} USDC` })
2549
2556
  }
2550
2557
  );
2551
2558
  }
2552
2559
  );
2553
- ze.displayName = "PaymentButton";
2554
- const Lt = Se(
2560
+ te.displayName = "PaymentButton";
2561
+ const Qr = Ue(
2555
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",
2556
2563
  {
2557
2564
  variants: {
@@ -2567,529 +2574,1588 @@ const Lt = Se(
2567
2574
  }
2568
2575
  }
2569
2576
  );
2570
- function Ie({ className: e, variant: r, ...t }) {
2571
- return /* @__PURE__ */ l("div", { className: A(Lt({ variant: r }), e), ...t });
2577
+ function Ve({ className: r, variant: n, ...t }) {
2578
+ return /* @__PURE__ */ a("div", { className: d(Qr({ variant: n }), r), ...t });
2572
2579
  }
2573
- const Me = ({
2574
- status: e,
2575
- message: r,
2576
- progress: t,
2577
- className: o,
2578
- style: n
2580
+ const Ke = ({
2581
+ wallet: r,
2582
+ balance: n,
2583
+ network: t,
2584
+ showBalance: o = !0,
2585
+ onDisconnect: i,
2586
+ theme: l,
2587
+ className: u,
2588
+ style: c
2579
2589
  }) => {
2580
- const i = (() => {
2581
- switch (e) {
2582
- case "idle":
2583
- return {
2584
- label: "Ready",
2585
- color: "bg-gray-100 text-gray-800",
2586
- icon: null
2587
- };
2588
- case "connecting":
2589
- return {
2590
- label: "Connecting",
2591
- color: "bg-blue-100 text-blue-800",
2592
- icon: /* @__PURE__ */ l(Z, { size: "sm", variant: "default" })
2593
- };
2594
- case "pending":
2595
- return {
2596
- label: "Processing",
2597
- color: "bg-yellow-100 text-yellow-800",
2598
- icon: /* @__PURE__ */ l(Z, { size: "sm", variant: "solana" })
2599
- };
2600
- case "success":
2601
- return {
2602
- label: "Paid",
2603
- color: "bg-green-100 text-green-800",
2604
- icon: /* @__PURE__ */ l(
2605
- "svg",
2606
- {
2607
- className: "w-4 h-4",
2608
- fill: "none",
2609
- stroke: "currentColor",
2610
- viewBox: "0 0 24 24",
2611
- children: /* @__PURE__ */ l(
2612
- "path",
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(
2593
+ "div",
2594
+ {
2595
+ className: d(
2596
+ "rounded-lg p-4 border",
2597
+ l === "seeker" || l === "seeker-2" ? "border-[#FFFFFF1F]" : "bg-slate-50 border-slate-200",
2598
+ u
2599
+ ),
2600
+ style: c,
2601
+ children: /* @__PURE__ */ b("div", { className: "space-y-3", children: [
2602
+ /* @__PURE__ */ b("div", { className: "flex items-center justify-between", children: [
2603
+ /* @__PURE__ */ b("div", { className: "flex items-center gap-3", children: [
2604
+ /* @__PURE__ */ a("div", { className: "w-10 h-10 bg-gradient-to-r from-blue-500 to-purple-500 rounded-full flex items-center justify-center", children: /* @__PURE__ */ a("span", { className: "text-white font-semibold text-sm", children: e.slice(0, 2).toUpperCase() }) }),
2605
+ /* @__PURE__ */ b("div", { children: [
2606
+ /* @__PURE__ */ a(
2607
+ "div",
2613
2608
  {
2614
- strokeLinecap: "round",
2615
- strokeLinejoin: "round",
2616
- strokeWidth: 2,
2617
- d: "M5 13l4 4L19 7"
2609
+ className: d(
2610
+ "text-xs font-medium drop-shadow-sm shadow-sm",
2611
+ l === "light" || l === "solana-light" ? "text-[#71717A]" : "text-[#FFFFFF66]"
2612
+ ),
2613
+ children: "Connected Wallet"
2614
+ }
2615
+ ),
2616
+ /* @__PURE__ */ a(
2617
+ "div",
2618
+ {
2619
+ className: d(
2620
+ "text-sm font-mono",
2621
+ l === "light" || l === "solana-light" ? "text-black" : "text-white"
2622
+ ),
2623
+ children: f(e)
2618
2624
  }
2619
2625
  )
2626
+ ] })
2627
+ ] }),
2628
+ /* @__PURE__ */ a(
2629
+ "button",
2630
+ {
2631
+ onClick: i,
2632
+ className: d(
2633
+ "text-sm font-medium transition-colors",
2634
+ l === "light" || l === "solana-light" ? "text-red-500 hover:text-red-700" : "text-[#FFFFFF66] hover:opacity-80"
2635
+ ),
2636
+ children: "Disconnect"
2620
2637
  }
2621
2638
  )
2622
- };
2623
- case "error":
2624
- return {
2625
- label: "Failed",
2626
- color: "bg-red-100 text-red-800",
2627
- icon: /* @__PURE__ */ l(
2628
- "svg",
2639
+ ] }),
2640
+ o && n && /* @__PURE__ */ b("div", { className: "flex items-center justify-between", children: [
2641
+ /* @__PURE__ */ a("span", { className: "text-sm font-medium text-slate-600", children: "USDC Balance" }),
2642
+ /* @__PURE__ */ b("div", { className: "flex items-center gap-2", children: [
2643
+ /* @__PURE__ */ a("span", { className: "text-lg font-bold text-slate-900", children: n }),
2644
+ /* @__PURE__ */ a("span", { className: "text-xs font-semibold text-slate-500 bg-slate-200 px-2 py-1 rounded-md", children: "USDC" })
2645
+ ] })
2646
+ ] }),
2647
+ t && /* @__PURE__ */ b("div", { className: "flex items-center justify-between", children: [
2648
+ /* @__PURE__ */ a("span", { className: "text-sm font-medium text-slate-600", children: "Network" }),
2649
+ /* @__PURE__ */ a(
2650
+ Ve,
2629
2651
  {
2630
- className: "w-4 h-4",
2631
- fill: "none",
2632
- stroke: "currentColor",
2633
- viewBox: "0 0 24 24",
2634
- children: /* @__PURE__ */ l(
2635
- "path",
2636
- {
2637
- strokeLinecap: "round",
2638
- strokeLinejoin: "round",
2639
- strokeWidth: 2,
2640
- d: "M6 18L18 6M6 6l12 12"
2641
- }
2642
- )
2652
+ variant: "outline",
2653
+ className: "text-xs border-slate-300 text-slate-700",
2654
+ children: x()
2643
2655
  }
2644
2656
  )
2645
- };
2646
- default:
2647
- return {
2648
- label: "Unknown",
2649
- color: "bg-gray-100 text-gray-800",
2650
- icon: null
2651
- };
2652
- }
2653
- })();
2654
- return /* @__PURE__ */ C("div", { className: A("flex flex-col gap-2", o), style: n, children: [
2655
- /* @__PURE__ */ C("div", { className: "flex items-center gap-2", children: [
2656
- /* @__PURE__ */ C(Ie, { className: A("flex items-center gap-1.5", i.color), children: [
2657
- i.icon,
2658
- /* @__PURE__ */ l("span", { children: i.label })
2659
- ] }),
2660
- r && /* @__PURE__ */ l("span", { className: "text-sm text-muted-foreground", children: r })
2661
- ] }),
2662
- t !== void 0 && t > 0 && /* @__PURE__ */ l("div", { className: "w-full bg-gray-200 rounded-full h-2 overflow-hidden", children: /* @__PURE__ */ l(
2663
- "div",
2664
- {
2665
- className: "bg-solana-gradient h-full transition-all duration-300",
2666
- style: { width: `${t}%` }
2667
- }
2668
- ) })
2669
- ] });
2670
- };
2671
- Me.displayName = "PaymentStatus";
2672
- const Te = ({
2673
- wallet: e,
2674
- balance: r,
2675
- network: t,
2676
- showBalance: o = !0,
2677
- className: n,
2678
- style: s
2679
- }) => {
2680
- var c;
2681
- const i = ((c = e == null ? void 0 : e.publicKey) == null ? void 0 : c.toString()) || (e == null ? void 0 : e.address), a = (p) => `${p.slice(0, 4)}...${p.slice(-4)}`, d = () => t === "solana" ? "Mainnet" : "Devnet";
2682
- return !e || !i ? /* @__PURE__ */ l(oe, { className: A("border-dashed", n), style: s, children: /* @__PURE__ */ l(ne, { className: "p-4 text-center text-muted-foreground", children: /* @__PURE__ */ l("p", { className: "text-sm", children: "No wallet connected" }) }) }) : /* @__PURE__ */ l("div", { className: A("bg-slate-50 rounded-lg p-4 border border-slate-200", n), style: s, children: /* @__PURE__ */ C("div", { className: "space-y-3", children: [
2683
- /* @__PURE__ */ C("div", { className: "flex items-center justify-between", children: [
2684
- /* @__PURE__ */ C("div", { className: "flex items-center gap-2", children: [
2685
- /* @__PURE__ */ l("div", { className: "w-2 h-2 bg-green-500 rounded-full" }),
2686
- /* @__PURE__ */ l("span", { className: "text-sm font-medium text-slate-600", children: "Connected Wallet" })
2687
- ] }),
2688
- /* @__PURE__ */ l("code", { className: "text-sm font-mono bg-white px-3 py-1.5 rounded-md border border-slate-300 text-slate-800", children: a(i) })
2689
- ] }),
2690
- o && r && /* @__PURE__ */ C("div", { className: "flex items-center justify-between", children: [
2691
- /* @__PURE__ */ l("span", { className: "text-sm font-medium text-slate-600", children: "USDC Balance" }),
2692
- /* @__PURE__ */ C("div", { className: "flex items-center gap-2", children: [
2693
- /* @__PURE__ */ l("span", { className: "text-lg font-bold text-slate-900", children: r }),
2694
- /* @__PURE__ */ l("span", { className: "text-xs font-semibold text-slate-500 bg-slate-200 px-2 py-1 rounded-md", children: "USDC" })
2657
+ ] })
2695
2658
  ] })
2696
- ] }),
2697
- t && /* @__PURE__ */ C("div", { className: "flex items-center justify-between", children: [
2698
- /* @__PURE__ */ l("span", { className: "text-sm font-medium text-slate-600", children: "Network" }),
2699
- /* @__PURE__ */ l(Ie, { variant: "outline", className: "text-xs border-slate-300 text-slate-700", children: d() })
2700
- ] })
2701
- ] }) });
2659
+ }
2660
+ );
2702
2661
  };
2703
- Te.displayName = "WalletSection";
2704
- function Gt(e, r, t) {
2705
- const o = Buffer.from(e.serialize()).toString("base64"), n = {
2662
+ Ke.displayName = "WalletSection";
2663
+ function et(r, n, t) {
2664
+ const o = Buffer.from(r.serialize()).toString("base64"), i = {
2706
2665
  x402Version: t,
2707
- scheme: r.scheme,
2708
- network: r.network,
2666
+ scheme: n.scheme,
2667
+ network: n.network,
2709
2668
  payload: {
2710
2669
  transaction: o
2711
2670
  }
2712
2671
  };
2713
- return Buffer.from(JSON.stringify(n)).toString("base64");
2672
+ return Buffer.from(JSON.stringify(i)).toString("base64");
2714
2673
  }
2715
- function Bt(e) {
2716
- if (e === "solana")
2674
+ function rt(r) {
2675
+ if (r === "solana")
2717
2676
  return "https://api.mainnet-beta.solana.com";
2718
- if (e === "solana-devnet")
2677
+ if (r === "solana-devnet")
2719
2678
  return "https://api.devnet.solana.com";
2720
- throw new Error(`Unexpected network: ${e}`);
2679
+ throw new Error(`Unexpected network: ${r}`);
2721
2680
  }
2722
- async function Ut(e, r, t, o) {
2723
- var U, R, T;
2724
- const n = new ge(o, "confirmed"), s = (U = t == null ? void 0 : t.extra) == null ? void 0 : U.feePayer;
2725
- if (typeof s != "string" || !s)
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;
2684
+ if (typeof l != "string" || !l)
2726
2685
  throw new Error("Missing facilitator feePayer in payment requirements (extra.feePayer).");
2727
- const i = new V(s), a = ((R = e == null ? void 0 : e.publicKey) == null ? void 0 : R.toString()) || (e == null ? void 0 : e.address);
2728
- if (!a)
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);
2687
+ if (!c)
2729
2688
  throw new Error("Missing connected Solana wallet address or publicKey");
2730
- const d = new V(a);
2689
+ const e = new W(c);
2731
2690
  if (!(t != null && t.payTo))
2732
2691
  throw new Error("Missing payTo in payment requirements");
2733
- const c = new V(t.payTo), p = [];
2734
- if (p.push(
2735
- ce.setComputeUnitLimit({
2692
+ const f = new W(t.payTo), x = [];
2693
+ if (x.push(
2694
+ Ne.setComputeUnitLimit({
2736
2695
  units: 4e4
2737
2696
  // Sufficient for SPL token transfer + ATA creation
2738
2697
  })
2739
- ), p.push(
2740
- ce.setComputeUnitPrice({
2698
+ ), x.push(
2699
+ Ne.setComputeUnitPrice({
2741
2700
  microLamports: 1
2742
2701
  // Minimal price
2743
2702
  })
2744
2703
  ), !t.asset)
2745
2704
  throw new Error("Missing token mint for SPL transfer");
2746
- const g = new V(t.asset), u = await n.getAccountInfo(g, "confirmed"), f = ((T = u == null ? void 0 : u.owner) == null ? void 0 : T.toBase58()) === de.toBase58() ? de : We, v = await _e(n, g, void 0, f), h = await ee(
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(
2747
2706
  g,
2748
- d,
2707
+ e,
2749
2708
  !1,
2750
- f
2751
- ), m = await ee(
2709
+ y
2710
+ ), w = await ce(
2752
2711
  g,
2753
- c,
2712
+ f,
2754
2713
  !1,
2755
- f
2714
+ y
2756
2715
  );
2757
- if (!await n.getAccountInfo(h, "confirmed"))
2716
+ if (!await i.getAccountInfo(m, "confirmed"))
2758
2717
  throw new Error(
2759
2718
  `User does not have an Associated Token Account for ${t.asset}. Please create one first or ensure you have the required token.`
2760
2719
  );
2761
- if (!await n.getAccountInfo(m, "confirmed")) {
2762
- const S = new V(
2720
+ if (!await i.getAccountInfo(w, "confirmed")) {
2721
+ const z = new W(
2763
2722
  "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL"
2764
- ), x = new Ge({
2723
+ ), v = new Qe({
2765
2724
  keys: [
2766
- { pubkey: i, isSigner: !0, isWritable: !0 },
2767
- { pubkey: m, isSigner: !1, isWritable: !0 },
2768
- { pubkey: c, isSigner: !1, isWritable: !1 },
2725
+ { pubkey: u, isSigner: !0, isWritable: !0 },
2726
+ { pubkey: w, isSigner: !1, isWritable: !0 },
2727
+ { pubkey: f, isSigner: !1, isWritable: !1 },
2769
2728
  { pubkey: g, isSigner: !1, isWritable: !1 },
2770
- { pubkey: Be.programId, isSigner: !1, isWritable: !1 },
2771
- { pubkey: f, isSigner: !1, isWritable: !1 }
2729
+ { pubkey: er.programId, isSigner: !1, isWritable: !1 },
2730
+ { pubkey: y, isSigner: !1, isWritable: !1 }
2772
2731
  ],
2773
- programId: S,
2732
+ programId: z,
2774
2733
  data: Buffer.from([0])
2775
2734
  // CreateATA discriminator
2776
2735
  });
2777
- p.push(x);
2736
+ x.push(v);
2778
2737
  }
2779
- const P = BigInt(t.maxAmountRequired);
2780
- p.push(
2781
- $e(
2782
- h,
2783
- g,
2738
+ const k = BigInt(t.maxAmountRequired);
2739
+ x.push(
2740
+ ir(
2784
2741
  m,
2785
- d,
2786
- P,
2787
- v.decimals,
2742
+ g,
2743
+ w,
2744
+ e,
2745
+ k,
2746
+ F.decimals,
2788
2747
  [],
2789
- f
2748
+ y
2790
2749
  )
2791
2750
  );
2792
- const { blockhash: E } = await n.getLatestBlockhash("confirmed"), I = new Ue({
2793
- payerKey: i,
2794
- recentBlockhash: E,
2795
- instructions: p
2796
- }).compileToV0Message(), M = new Oe(I);
2797
- if (typeof (e == null ? void 0 : e.signTransaction) != "function")
2751
+ const { blockhash: p } = await i.getLatestBlockhash("confirmed"), D = new rr({
2752
+ payerKey: u,
2753
+ recentBlockhash: p,
2754
+ instructions: x
2755
+ }).compileToV0Message(), I = new tr(D);
2756
+ if (typeof (r == null ? void 0 : r.signTransaction) != "function")
2798
2757
  throw new Error("Connected wallet does not support signTransaction");
2799
- const z = await e.signTransaction(M);
2800
- return Gt(
2801
- z,
2758
+ const P = await r.signTransaction(I);
2759
+ return et(
2760
+ P,
2802
2761
  t,
2803
- r
2762
+ n
2804
2763
  );
2805
2764
  }
2806
- function Ot(e, r, t, o = BigInt(0)) {
2807
- return async (n, s) => {
2808
- const i = await e(n, s);
2809
- if (i.status !== 402)
2810
- return i;
2811
- const a = await i.json(), d = a.x402Version, c = a.accepts || [], p = c.find(
2812
- (f) => f.scheme === "exact" && (f.network === "solana-devnet" || f.network === "solana")
2765
+ function nt(r, n, t, o = BigInt(0)) {
2766
+ return async (i, l) => {
2767
+ const u = await r(i, l);
2768
+ if (u.status !== 402)
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")
2813
2772
  );
2814
- if (!p)
2773
+ if (!x)
2815
2774
  throw console.error(
2816
2775
  "❌ No suitable Solana payment requirements found. Available networks:",
2817
- c.map((f) => f.network)
2776
+ f.map((y) => y.network)
2818
2777
  ), new Error("No suitable Solana payment requirements found");
2819
- if (o > BigInt(0) && BigInt(p.maxAmountRequired) > o)
2778
+ if (o > BigInt(0) && BigInt(x.maxAmountRequired) > o)
2820
2779
  throw new Error("Payment amount exceeds maximum allowed");
2821
- const g = await Ut(
2822
- r,
2823
- d,
2824
- p,
2780
+ const g = await tt(
2781
+ n,
2782
+ e,
2783
+ x,
2825
2784
  t
2826
- ), u = {
2827
- ...s,
2785
+ ), s = {
2786
+ ...l,
2828
2787
  headers: {
2829
- ...(s == null ? void 0 : s.headers) || {},
2788
+ ...(l == null ? void 0 : l.headers) || {},
2830
2789
  "X-PAYMENT": g,
2831
2790
  "Access-Control-Expose-Headers": "X-PAYMENT-RESPONSE"
2832
2791
  }
2833
2792
  };
2834
- return await e(n, u);
2793
+ return await r(i, s);
2835
2794
  };
2836
2795
  }
2837
- var Vt = class {
2838
- constructor(e) {
2839
- ie(this, "paymentFetch");
2840
- const r = e.rpcUrl || Bt(e.network);
2841
- this.paymentFetch = Ot(
2796
+ var at = class {
2797
+ constructor(r) {
2798
+ ke(this, "paymentFetch");
2799
+ const n = r.rpcUrl || rt(r.network);
2800
+ this.paymentFetch = nt(
2842
2801
  fetch.bind(window),
2843
- e.wallet,
2844
- r,
2845
- e.maxPaymentAmount || BigInt(0)
2802
+ r.wallet,
2803
+ n,
2804
+ r.maxPaymentAmount || BigInt(0)
2846
2805
  );
2847
2806
  }
2848
2807
  /**
2849
2808
  * Make a fetch request with automatic x402 payment handling
2850
2809
  */
2851
- async fetch(e, r) {
2852
- return this.paymentFetch(e, r);
2810
+ async fetch(r, n) {
2811
+ return this.paymentFetch(r, n);
2853
2812
  }
2854
2813
  };
2855
- function Wt(e) {
2856
- return new Vt(e);
2814
+ function ot(r) {
2815
+ return new at(r);
2857
2816
  }
2858
- function _t(e) {
2859
- const [r, t] = $("idle"), [o, n] = $(null), [s, i] = $(null), [a, d] = $(!1), c = le(() => {
2860
- t("idle"), n(null), i(null), d(!1);
2817
+ function st(r) {
2818
+ const [n, t] = X("idle"), [o, i] = X(null), [l, u] = X(null), [c, e] = X(!1), f = ve(() => {
2819
+ t("idle"), i(null), u(null), e(!1);
2861
2820
  }, []);
2862
2821
  return {
2863
- pay: le(
2864
- async (g, u) => {
2865
- var f;
2822
+ pay: ve(
2823
+ async (g, s) => {
2824
+ var y;
2866
2825
  try {
2867
- if (d(!0), t("pending"), n(null), e.maxPaymentAmount && g > e.maxPaymentAmount)
2826
+ if (e(!0), t("pending"), i(null), r.maxPaymentAmount && g > r.maxPaymentAmount)
2868
2827
  throw new Error(
2869
- `Payment amount ${g} exceeds maximum allowed ${e.maxPaymentAmount}`
2828
+ `Payment amount ${g} exceeds maximum allowed ${r.maxPaymentAmount}`
2870
2829
  );
2871
- const v = ((f = e.wallet.publicKey) == null ? void 0 : f.toString()) || e.wallet.address;
2872
- if (!v)
2830
+ const F = ((y = r.wallet.publicKey) == null ? void 0 : y.toString()) || r.wallet.address;
2831
+ if (!F)
2873
2832
  throw new Error("Wallet not connected");
2874
- const h = Wt({
2875
- wallet: e.wallet,
2876
- network: e.network,
2877
- rpcUrl: e.rpcUrl,
2878
- maxPaymentAmount: e.maxPaymentAmount ? BigInt(Math.floor(e.maxPaymentAmount * 1e6)) : void 0
2879
- }), m = "https://x402.payai.network/api/solana/paid-content", y = e.apiEndpoint || m;
2833
+ const m = ot({
2834
+ wallet: r.wallet,
2835
+ network: r.network,
2836
+ rpcUrl: r.rpcUrl,
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;
2880
2839
  console.log("Initiating x402 payment:", {
2881
- endpoint: y,
2882
- isDemo: y === m,
2840
+ endpoint: N,
2841
+ isDemo: N === w,
2883
2842
  amount: g,
2884
- description: u,
2885
- wallet: v,
2886
- network: e.network
2843
+ description: s,
2844
+ wallet: F,
2845
+ network: r.network
2887
2846
  });
2888
- const P = await h.fetch(y, {
2847
+ const k = await m.fetch(N, {
2889
2848
  method: "POST",
2890
2849
  headers: {
2891
2850
  "Content-Type": "application/json"
2892
2851
  },
2893
2852
  body: JSON.stringify({
2894
- message: u,
2853
+ message: s,
2895
2854
  amount: g
2896
2855
  })
2897
2856
  });
2898
- if (!P.ok)
2899
- throw new Error(`Payment request failed: ${P.statusText}`);
2900
- const E = await P.json();
2901
- console.log("Payment successful:", E);
2902
- const I = P.headers.get("X-PAYMENT-RESPONSE");
2903
- let M = `tx_${Date.now()}`;
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()}`;
2904
2864
  if (I)
2905
2865
  try {
2906
- const z = JSON.parse(atob(I));
2907
- M = z.transactionId || z.signature || M, console.log("Payment details:", z);
2908
- } catch (z) {
2909
- console.warn("Could not decode payment response:", z);
2866
+ const E = JSON.parse(atob(I));
2867
+ P = E.transactionId || E.signature || P, console.log("Payment details:", E);
2868
+ } catch (E) {
2869
+ console.warn("Could not decode payment response:", E);
2910
2870
  }
2911
- return i(M), t("success"), d(!1), M;
2912
- } catch (v) {
2913
- const h = v instanceof Error ? v : new Error("Payment failed");
2914
- return n(h), t("error"), d(!1), null;
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;
2915
2875
  }
2916
2876
  },
2917
- [e]
2877
+ [r]
2918
2878
  ),
2919
- isLoading: a,
2920
- status: r,
2879
+ isLoading: c,
2880
+ status: n,
2921
2881
  error: o,
2922
- transactionId: s,
2923
- reset: c
2882
+ transactionId: l,
2883
+ reset: f
2924
2884
  };
2925
2885
  }
2926
- const $t = ({
2927
- amount: e,
2928
- description: r,
2886
+ const Pe = ({
2887
+ amount: r,
2888
+ description: n,
2929
2889
  wallet: t,
2930
2890
  network: o = "solana-devnet",
2931
- rpcUrl: n,
2932
- apiEndpoint: s,
2933
- treasuryAddress: i,
2934
- facilitatorUrl: a,
2935
- theme: d = "solana",
2936
- showBalance: c = !0,
2937
- showNetworkInfo: p = !0,
2938
- showPaymentDetails: g = !0,
2939
- classNames: u,
2940
- customStyles: f,
2941
- maxPaymentAmount: v,
2891
+ rpcUrl: i,
2892
+ apiEndpoint: l,
2893
+ treasuryAddress: u,
2894
+ facilitatorUrl: c,
2895
+ theme: e = "solana-light",
2896
+ showPaymentDetails: f = !0,
2897
+ onDisconnect: x,
2898
+ classNames: g,
2899
+ customStyles: s,
2900
+ maxPaymentAmount: y,
2942
2901
  // enablePaymentCaching = false, // TODO: Implement in future
2943
2902
  // autoRetry = false, // TODO: Implement in future
2944
- onPaymentStart: h,
2903
+ onPaymentStart: F,
2945
2904
  onPaymentSuccess: m,
2946
- onPaymentError: y,
2905
+ onPaymentError: w,
2947
2906
  onWalletConnect: N,
2948
- children: P
2907
+ children: T
2949
2908
  }) => {
2950
- const [E, I] = $(!1), [M, z] = $("0.00"), { pay: U, isLoading: R, status: T, error: S, transactionId: x } = _t({
2951
- wallet: t,
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,
2952
2915
  network: o,
2953
- rpcUrl: n,
2954
- apiEndpoint: s,
2955
- treasuryAddress: i,
2956
- facilitatorUrl: a,
2957
- maxPaymentAmount: v
2958
- });
2959
- Q(() => {
2960
- var O;
2961
- const _ = ((O = t.publicKey) == null ? void 0 : O.toString()) || t.address;
2962
- _ && (N == null || N(_), He(_, o, n).then(z));
2963
- }, [t, o, N]), Q(() => {
2964
- T === "success" && x && (I(!0), m == null || m(x));
2965
- }, [T, x, m]), Q(() => {
2966
- S && (y == null || y(S));
2967
- }, [S, y]);
2968
- const J = async () => {
2969
- h == null || h(), await U(e, r);
2916
+ rpcUrl: i,
2917
+ apiEndpoint: l,
2918
+ treasuryAddress: u,
2919
+ 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}`), () => {
2925
+ 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);
2970
2937
  };
2971
- if (E)
2972
- return /* @__PURE__ */ l(Le, { children: P });
2973
- const W = () => {
2974
- switch (d) {
2975
- case "solana":
2976
- return "border-solana-primary/20";
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 = (() => {
2941
+ switch (e) {
2942
+ case "solana-dark":
2943
+ return {
2944
+ container: "",
2945
+ card: "!bg-[#171719] border-0 text-white rounded-xl",
2946
+ icon: "bg-slate-600",
2947
+ title: "",
2948
+ button: "bg-solana-gradient hover:opacity-90 text-white rounded-full",
2949
+ paymentDetails: "bg-[#0000001F] border-slate-600 text-white rounded-lg",
2950
+ walletSection: "bg-[#0000001F] border-slate-600 text-white rounded-lg",
2951
+ notice: "bg-amber-900/50 border-amber-700 text-white rounded-lg",
2952
+ securityMessage: "text-slate-400",
2953
+ helperText: "text-white",
2954
+ helperLink: void 0
2955
+ };
2956
+ case "seeker":
2957
+ return {
2958
+ container: "",
2959
+ card: "backdrop-blur-sm border-emerald-200 rounded-xl",
2960
+ icon: "bg-gradient-to-r from-emerald-500 to-teal-500",
2961
+ title: "text-white",
2962
+ button: "bg-gradient-to-r from-emerald-500 to-teal-500 hover:from-emerald-600 hover:to-teal-600 text-white rounded-full",
2963
+ paymentDetails: "rounded-lg",
2964
+ notice: "bg-cyan-50 border-cyan-200 text-cyan-800 rounded-lg",
2965
+ securityMessage: "text-white",
2966
+ helperText: "text-white"
2967
+ };
2968
+ case "seeker-2":
2969
+ return {
2970
+ container: "",
2971
+ card: "backdrop-blur-sm border-emerald-200 rounded-xl",
2972
+ icon: "bg-gradient-to-r from-emerald-500 to-teal-500",
2973
+ title: "text-white",
2974
+ button: "bg-gradient-to-r from-emerald-500 to-teal-500 hover:from-emerald-600 hover:to-teal-600 text-white rounded-full",
2975
+ paymentDetails: "rounded-lg",
2976
+ notice: "bg-cyan-50 border-cyan-200 text-cyan-800 rounded-lg",
2977
+ securityMessage: "text-white",
2978
+ helperText: "text-white"
2979
+ };
2980
+ case "terminal":
2981
+ return {
2982
+ container: "bg-gradient-to-br from-gray-900 via-black to-gray-800",
2983
+ card: "bg-black/90 backdrop-blur-sm border-green-400/30 text-green-400 rounded-xl",
2984
+ icon: "bg-green-400 text-black",
2985
+ title: "text-green-400 font-mono",
2986
+ button: "bg-green-400 text-black hover:bg-green-300 font-mono rounded-full",
2987
+ paymentDetails: "bg-gray-900/50 border-green-400/20 text-green-300 rounded-lg",
2988
+ notice: "bg-yellow-900/50 border-yellow-400/30 text-yellow-300 rounded-lg"
2989
+ };
2990
+ case "solana-light":
2991
+ return {
2992
+ container: "bg-gradient-to-b from-white via-pink-50 via-purple-50 via-blue-50 to-cyan-50",
2993
+ card: "bg-white/95 backdrop-blur-sm border border-slate-200 shadow-2xl rounded-2xl",
2994
+ icon: "bg-gradient-to-r from-blue-600 to-purple-600",
2995
+ title: "text-slate-900",
2996
+ button: "bg-solana-gradient hover:opacity-90 text-white font-light rounded-full",
2997
+ paymentDetails: "bg-slate-50 border border-slate-200 rounded-xl",
2998
+ notice: "text-slate-600",
2999
+ walletSection: "bg-slate-50 border border-slate-200 rounded-xl",
3000
+ securityMessage: "text-slate-600",
3001
+ helperText: "text-slate-600",
3002
+ helperLink: "text-purple-600 underline"
3003
+ };
2977
3004
  case "dark":
2978
- return "bg-card";
3005
+ return {
3006
+ container: "",
3007
+ card: "!bg-[#171719] border-slate-700 text-white rounded-xl",
3008
+ icon: "bg-slate-600",
3009
+ title: "",
3010
+ button: "bg-slate-600 hover:bg-slate-700 rounded-full",
3011
+ paymentDetails: "bg-[#0000001F] border-slate-600 text-white rounded-lg",
3012
+ walletSection: "bg-[#0000001F] border-slate-600 text-white rounded-lg",
3013
+ notice: "bg-amber-900/50 border-amber-700 text-white rounded-lg",
3014
+ securityMessage: "text-slate-400",
3015
+ helperText: "text-white",
3016
+ helperLink: void 0
3017
+ };
2979
3018
  case "light":
2980
- return "bg-background";
3019
+ return {
3020
+ container: "bg-gradient-to-b from-white via-pink-50 via-purple-50 via-blue-50 to-cyan-50",
3021
+ card: "bg-white/95 backdrop-blur-sm border border-slate-200 shadow-2xl rounded-2xl",
3022
+ icon: "bg-gradient-to-r from-blue-600 to-purple-600",
3023
+ title: "text-slate-900",
3024
+ button: "bg-black hover:bg-gray-800 text-white font-light rounded-full",
3025
+ paymentDetails: "bg-slate-50 border border-slate-200 rounded-xl",
3026
+ notice: "text-slate-600",
3027
+ walletSection: "bg-slate-50 border border-slate-200 rounded-xl",
3028
+ securityMessage: "text-slate-600",
3029
+ helperText: "text-slate-600",
3030
+ helperLink: "text-purple-600 underline"
3031
+ };
2981
3032
  default:
2982
- return "";
3033
+ return {
3034
+ container: "bg-gradient-to-br from-slate-900 via-slate-800 to-slate-900",
3035
+ card: "bg-white/95 backdrop-blur-sm rounded-xl",
3036
+ icon: "bg-slate-600",
3037
+ title: "text-slate-900",
3038
+ button: "bg-slate-600 hover:bg-slate-700 text-white rounded-full",
3039
+ paymentDetails: "bg-slate-50 border-slate-200 rounded-lg",
3040
+ notice: "bg-amber-50 border-amber-200 text-amber-800 rounded-lg"
3041
+ };
2983
3042
  }
2984
- };
2985
- return /* @__PURE__ */ l(
3043
+ })();
3044
+ if (!ee) {
3045
+ const R = (() => {
3046
+ switch (e) {
3047
+ case "solana-dark":
3048
+ return {
3049
+ container: "",
3050
+ card: "!bg-[#171719] border-0 text-white rounded-xl",
3051
+ button: "bg-solana-gradient hover:opacity-90 text-white rounded-full",
3052
+ paymentDetails: "bg-[#0000001F] border-slate-600 text-white rounded-lg",
3053
+ securityMessage: "text-slate-400",
3054
+ helperText: "text-white"
3055
+ };
3056
+ case "seeker":
3057
+ return {
3058
+ container: "",
3059
+ card: "backdrop-blur-sm border-emerald-200 rounded-xl",
3060
+ button: "bg-gradient-to-r from-emerald-500 to-teal-500 hover:from-emerald-600 hover:to-teal-600 text-white rounded-full",
3061
+ paymentDetails: "rounded-lg",
3062
+ securityMessage: "text-white",
3063
+ helperText: "text-white"
3064
+ };
3065
+ case "seeker-2":
3066
+ return {
3067
+ container: "",
3068
+ card: "backdrop-blur-sm border-emerald-200 rounded-xl",
3069
+ button: "bg-gradient-to-r from-emerald-500 to-teal-500 hover:from-emerald-600 hover:to-teal-600 text-white rounded-full",
3070
+ paymentDetails: "rounded-lg",
3071
+ securityMessage: "text-white",
3072
+ helperText: "text-white"
3073
+ };
3074
+ case "terminal":
3075
+ return {
3076
+ container: "bg-gradient-to-br from-gray-900 via-black to-gray-800",
3077
+ card: "bg-black/90 backdrop-blur-sm border-green-400/30 text-green-400 rounded-xl",
3078
+ button: "bg-green-400 text-black hover:bg-green-300 font-mono rounded-full",
3079
+ paymentDetails: "bg-gray-900/50 border-green-400/20 text-green-300 rounded-lg",
3080
+ securityMessage: "text-green-300",
3081
+ helperText: "text-green-300"
3082
+ };
3083
+ case "solana-light":
3084
+ return {
3085
+ container: "bg-gradient-to-b from-white via-pink-50 via-purple-50 via-blue-50 to-cyan-50",
3086
+ card: "bg-white/95 backdrop-blur-sm border border-slate-200 shadow-2xl rounded-2xl",
3087
+ button: "bg-solana-gradient hover:opacity-90 text-white font-light rounded-full",
3088
+ paymentDetails: "bg-slate-50 border border-slate-200 rounded-xl",
3089
+ securityMessage: "text-slate-600",
3090
+ helperText: "text-slate-600"
3091
+ };
3092
+ case "dark":
3093
+ return {
3094
+ container: "",
3095
+ card: "!bg-[#171719] border-slate-700 text-white rounded-xl",
3096
+ button: "bg-slate-600 hover:bg-slate-700 rounded-full",
3097
+ paymentDetails: "bg-[#0000001F] border-slate-600 text-white rounded-lg",
3098
+ securityMessage: "text-slate-400",
3099
+ helperText: "text-white"
3100
+ };
3101
+ case "light":
3102
+ return {
3103
+ container: "bg-gradient-to-b from-white via-pink-50 via-purple-50 via-blue-50 to-cyan-50",
3104
+ card: "bg-white/95 backdrop-blur-sm border border-slate-200 shadow-2xl rounded-2xl",
3105
+ button: "bg-black hover:bg-gray-800 text-white font-light rounded-full",
3106
+ paymentDetails: "bg-slate-50 border border-slate-200 rounded-xl",
3107
+ securityMessage: "text-slate-600",
3108
+ helperText: "text-slate-600"
3109
+ };
3110
+ default:
3111
+ return {
3112
+ container: "bg-gradient-to-b from-white via-pink-50 via-purple-50 via-blue-50 to-cyan-50",
3113
+ card: "bg-white/95 backdrop-blur-sm border border-slate-200 shadow-2xl rounded-2xl",
3114
+ button: "bg-solana-gradient hover:opacity-90 text-white font-light rounded-full",
3115
+ paymentDetails: "bg-slate-50 border border-slate-200 rounded-xl",
3116
+ securityMessage: "text-slate-600",
3117
+ helperText: "text-slate-600"
3118
+ };
3119
+ }
3120
+ })();
3121
+ return /* @__PURE__ */ a(
3122
+ "div",
3123
+ {
3124
+ className: d(
3125
+ "flex items-center justify-center min-h-screen p-4",
3126
+ R.container,
3127
+ g == null ? void 0 : g.container
3128
+ ),
3129
+ style: e === "dark" ? {
3130
+ background: "linear-gradient(to bottom left, #db2777 0%, #9333ea 50%, #1e40af 100%)",
3131
+ ...s == null ? void 0 : s.container
3132
+ } : e === "light" ? {
3133
+ background: "linear-gradient(135deg, rgba(255, 255, 255, 0.6) 0%, rgba(236, 72, 153, 0.4) 33%, rgba(147, 51, 234, 0.4) 66%, rgba(34, 211, 238, 0.4) 100%)",
3134
+ ...s == null ? void 0 : s.container
3135
+ } : e === "seeker" ? {
3136
+ background: "radial-gradient(25% 200% at 50% 50%, #6CCEC6 0%, rgba(19, 77, 128, 0) 30%), radial-gradient(20% 20% at 50% 100%, rgba(66, 202, 189, 0.8) 0%, rgba(33, 100, 94, 0.8) 0%), linear-gradient(180deg, #001214 5%, #0D2734 100%)",
3137
+ ...s == null ? void 0 : s.container
3138
+ } : e === "seeker-2" ? {
3139
+ background: "radial-gradient(25% 200% at 50% 50%, #6CCEC6 0%, rgba(19, 77, 128, 0) 30%), radial-gradient(20% 20% at 50% 100%, rgba(66, 202, 189, 0.8) 0%, rgba(33, 100, 94, 0.8) 0%), linear-gradient(180deg, #001214 5%, #0D2734 100%)",
3140
+ ...s == null ? void 0 : s.container
3141
+ } : s == null ? void 0 : s.container,
3142
+ children: /* @__PURE__ */ b(
3143
+ ne,
3144
+ {
3145
+ className: d(
3146
+ "w-full max-w-lg shadow-2xl border-0",
3147
+ R.card,
3148
+ g == null ? void 0 : g.card
3149
+ ),
3150
+ style: e === "seeker" ? { backgroundColor: "#171719", ...s == null ? void 0 : s.card } : e === "seeker-2" ? {
3151
+ backgroundColor: "rgba(29, 35, 35, 1)",
3152
+ backdropFilter: "blur(12px)",
3153
+ ...s == null ? void 0 : s.card
3154
+ } : s == null ? void 0 : s.card,
3155
+ children: [
3156
+ /* @__PURE__ */ b(be, { className: "pb-6", children: [
3157
+ /* @__PURE__ */ b("div", { className: "flex items-center space-x-4 mb-6", children: [
3158
+ /* @__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
+ "img",
3160
+ {
3161
+ src: "/src/components/ui/SolanaLogo.svg",
3162
+ alt: "Solana",
3163
+ className: "w-12 h-auto"
3164
+ }
3165
+ ) }) }),
3166
+ /* @__PURE__ */ b("div", { children: [
3167
+ /* @__PURE__ */ a(
3168
+ ge,
3169
+ {
3170
+ className: d(
3171
+ "text-l fw-bold pb-1",
3172
+ e === "dark" || e === "solana-dark" || e === "seeker" || e === "seeker-2" ? "text-white" : e === "terminal" ? "text-green-400 font-mono" : "text-slate-900",
3173
+ g == null ? void 0 : g.text
3174
+ ),
3175
+ children: "Premium Content XYZ"
3176
+ }
3177
+ ),
3178
+ /* @__PURE__ */ a(
3179
+ pe,
3180
+ {
3181
+ className: d(
3182
+ "text-sm font-light",
3183
+ e === "terminal" ? "text-green-300" : e === "seeker" || e === "seeker-2" || e === "dark" || e === "solana-dark" ? "text-white" : "text-[#71717A]",
3184
+ g == null ? void 0 : g.text
3185
+ ),
3186
+ children: "content.xyz"
3187
+ }
3188
+ )
3189
+ ] })
3190
+ ] }),
3191
+ /* @__PURE__ */ a(
3192
+ "div",
3193
+ {
3194
+ className: d(
3195
+ "border-b mb-6",
3196
+ e === "dark" || e === "solana-dark" ? "border-slate-600" : e === "seeker" || e === "seeker-2" ? "" : "border-slate-200"
3197
+ ),
3198
+ style: e === "seeker" || e === "seeker-2" ? { borderBottom: "1px solid #FFFFFF1F" } : void 0
3199
+ }
3200
+ ),
3201
+ /* @__PURE__ */ b("div", { className: "text-center", children: [
3202
+ /* @__PURE__ */ a(
3203
+ "h2",
3204
+ {
3205
+ className: d(
3206
+ "text-2xl font-normal mb-2",
3207
+ e === "dark" || e === "solana-dark" || e === "seeker" || e === "seeker-2" ? "text-white" : e === "terminal" ? "text-green-400 font-mono" : "text-slate-900"
3208
+ ),
3209
+ children: "Payment Required"
3210
+ }
3211
+ ),
3212
+ /* @__PURE__ */ b(
3213
+ "p",
3214
+ {
3215
+ className: d(
3216
+ "text-sm font-light",
3217
+ e === "dark" || e === "solana-dark" || e === "seeker" || e === "seeker-2" ? "text-white" : e === "terminal" ? "text-green-300" : "text-slate-600"
3218
+ ),
3219
+ children: [
3220
+ "Access to protected content. To access this content, please pay $",
3221
+ r.toFixed(2),
3222
+ " USDC"
3223
+ ]
3224
+ }
3225
+ )
3226
+ ] })
3227
+ ] }),
3228
+ /* @__PURE__ */ b(ae, { className: "space-y-6", children: [
3229
+ /* @__PURE__ */ b(
3230
+ "div",
3231
+ {
3232
+ className: d("p-6", R.paymentDetails),
3233
+ 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
+ children: [
3235
+ /* @__PURE__ */ b("div", { className: "flex items-center justify-between mb-4", children: [
3236
+ /* @__PURE__ */ a(
3237
+ "span",
3238
+ {
3239
+ className: d(
3240
+ "text-sm",
3241
+ e === "dark" || e === "solana-dark" || e === "seeker" || e === "seeker-2" ? "text-white" : e === "terminal" ? "text-green-300" : "text-slate-900"
3242
+ ),
3243
+ children: "Amount"
3244
+ }
3245
+ ),
3246
+ /* @__PURE__ */ b(
3247
+ "div",
3248
+ {
3249
+ className: d(
3250
+ "text-xl font-bold",
3251
+ e === "light" || e === "solana-light" ? "text-purple-600" : e === "seeker" || e === "seeker-2" ? "" : e === "terminal" ? "text-green-400" : "text-[#21ECAB]"
3252
+ ),
3253
+ style: e === "seeker" || e === "seeker-2" ? { color: "#95D2E6" } : void 0,
3254
+ children: [
3255
+ "$",
3256
+ r.toFixed(2)
3257
+ ]
3258
+ }
3259
+ )
3260
+ ] }),
3261
+ /* @__PURE__ */ a(
3262
+ "div",
3263
+ {
3264
+ className: d(
3265
+ "border-t mb-4",
3266
+ e === "dark" || e === "solana-dark" ? "border-slate-600" : e === "seeker" || e === "seeker-2" ? "" : e === "terminal" ? "border-green-400/20" : "border-slate-200"
3267
+ ),
3268
+ style: e === "seeker" || e === "seeker-2" ? { borderTop: "1px solid #FFFFFF1F" } : void 0
3269
+ }
3270
+ ),
3271
+ /* @__PURE__ */ b("div", { className: "space-y-3", children: [
3272
+ /* @__PURE__ */ b("div", { className: "flex items-center justify-between", children: [
3273
+ /* @__PURE__ */ a(
3274
+ "span",
3275
+ {
3276
+ className: d(
3277
+ "text-sm",
3278
+ e === "dark" || e === "solana-dark" || e === "seeker" || e === "seeker-2" ? "text-white" : e === "terminal" ? "text-green-300" : "text-slate-900"
3279
+ ),
3280
+ children: "Currency"
3281
+ }
3282
+ ),
3283
+ /* @__PURE__ */ a(
3284
+ "div",
3285
+ {
3286
+ className: d(
3287
+ "text-sm",
3288
+ e === "dark" || e === "solana-dark" || e === "seeker" || e === "seeker-2" ? "text-white" : e === "terminal" ? "text-green-300" : "text-slate-900"
3289
+ ),
3290
+ children: "USDC"
3291
+ }
3292
+ )
3293
+ ] }),
3294
+ /* @__PURE__ */ b("div", { className: "flex items-center justify-between", children: [
3295
+ /* @__PURE__ */ a(
3296
+ "span",
3297
+ {
3298
+ className: d(
3299
+ "text-sm",
3300
+ e === "dark" || e === "solana-dark" || e === "seeker" || e === "seeker-2" ? "text-white" : e === "terminal" ? "text-green-300" : "text-slate-900"
3301
+ ),
3302
+ children: "Network"
3303
+ }
3304
+ ),
3305
+ /* @__PURE__ */ b("div", { className: "flex items-center space-x-2", children: [
3306
+ /* @__PURE__ */ a("div", { className: "w-2 h-2 rounded-full bg-green-500" }),
3307
+ /* @__PURE__ */ a(
3308
+ "span",
3309
+ {
3310
+ className: d(
3311
+ "text-sm",
3312
+ e === "dark" || e === "solana-dark" || e === "seeker" || e === "seeker-2" ? "text-white" : e === "terminal" ? "text-green-300" : "text-slate-900"
3313
+ ),
3314
+ children: o === "solana" ? "Mainnet" : "Devnet"
3315
+ }
3316
+ )
3317
+ ] })
3318
+ ] })
3319
+ ] })
3320
+ ]
3321
+ }
3322
+ ),
3323
+ /* @__PURE__ */ b("div", { className: "flex items-center justify-center space-x-2", children: [
3324
+ /* @__PURE__ */ b(
3325
+ "svg",
3326
+ {
3327
+ className: "w-4 h-4 text-green-500",
3328
+ fill: "none",
3329
+ stroke: "currentColor",
3330
+ viewBox: "0 0 24 24",
3331
+ strokeWidth: "2",
3332
+ children: [
3333
+ /* @__PURE__ */ a("path", { d: "M12 1L3 5v6c0 5.55 3.84 10.74 9 12 5.16-1.26 9-6.45 9-12V5l-9-4z" }),
3334
+ /* @__PURE__ */ a(
3335
+ "path",
3336
+ {
3337
+ d: "M9 12l2 2 4-4",
3338
+ strokeLinecap: "round",
3339
+ strokeLinejoin: "round"
3340
+ }
3341
+ )
3342
+ ]
3343
+ }
3344
+ ),
3345
+ /* @__PURE__ */ a("span", { className: d("text-sm", R.securityMessage), children: "Secure payment powered by Solana" })
3346
+ ] }),
3347
+ /* @__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
+ /* @__PURE__ */ a(
3350
+ te,
3351
+ {
3352
+ amount: r,
3353
+ description: n,
3354
+ customText: "Connect Wallet",
3355
+ onClick: () => {
3356
+ var me;
3357
+ const H = (me = L.current) == null ? void 0 : me.querySelector("button");
3358
+ H == null || H.click();
3359
+ },
3360
+ className: d("w-full h-12", R.button),
3361
+ style: e === "dark" ? {
3362
+ backgroundColor: "#FFFFFF1F",
3363
+ boxShadow: "0 1px 0 0 rgba(255, 255, 255, 0.3) inset"
3364
+ } : e === "seeker" || e === "seeker-2" ? {
3365
+ background: "linear-gradient(0deg, #39A298, #39A298), radial-gradient(101.17% 101.67% at 50.28% 134.17%, rgba(255, 255, 255, 0.6) 0%, rgba(22, 188, 174, 0.6) 100%)",
3366
+ backgroundColor: "transparent"
3367
+ } : void 0
3368
+ }
3369
+ )
3370
+ ] }),
3371
+ /* @__PURE__ */ a("div", { className: "text-center", children: /* @__PURE__ */ b("p", { className: d("text-sm", R.helperText), children: [
3372
+ "Don't have USDC?",
3373
+ " ",
3374
+ /* @__PURE__ */ b("a", { href: "#", className: "font-medium text-[#4ADE80] underline", children: [
3375
+ "Get it here",
3376
+ /* @__PURE__ */ a(
3377
+ "svg",
3378
+ {
3379
+ className: "inline w-3 h-3 ml-1 text-[#4ADE80]",
3380
+ fill: "currentColor",
3381
+ viewBox: "0 0 20 20",
3382
+ children: /* @__PURE__ */ a(
3383
+ "path",
3384
+ {
3385
+ fillRule: "evenodd",
3386
+ 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",
3387
+ clipRule: "evenodd"
3388
+ }
3389
+ )
3390
+ }
3391
+ )
3392
+ ] })
3393
+ ] }) })
3394
+ ] })
3395
+ ]
3396
+ }
3397
+ )
3398
+ }
3399
+ );
3400
+ }
3401
+ return /* @__PURE__ */ a(
2986
3402
  "div",
2987
3403
  {
2988
- className: A(
3404
+ className: d(
2989
3405
  "flex items-center justify-center min-h-screen p-4",
2990
- "bg-gradient-to-br from-slate-900 via-slate-800 to-slate-900",
2991
- u == null ? void 0 : u.container
3406
+ M.container,
3407
+ g == null ? void 0 : g.container
2992
3408
  ),
2993
- style: f == null ? void 0 : f.container,
2994
- children: /* @__PURE__ */ C(
2995
- oe,
3409
+ style: e === "dark" ? {
3410
+ background: "radial-gradient(circle at center, #ec4899 0%, #3b82f6 50%, #9333ea 100%)",
3411
+ ...s == null ? void 0 : s.container
3412
+ } : e === "light" ? {
3413
+ background: "linear-gradient(135deg, rgba(255, 255, 255, 0.6) 0%, rgba(236, 72, 153, 0.4) 33%, rgba(147, 51, 234, 0.4) 66%, rgba(34, 211, 238, 0.4) 100%)",
3414
+ ...s == null ? void 0 : s.container
3415
+ } : e === "seeker" ? {
3416
+ background: "radial-gradient(25% 200% at 50% 50%, #6CCEC6 0%, rgba(19, 77, 128, 0) 30%), radial-gradient(20% 20% at 50% 100%, rgba(66, 202, 189, 0.8) 0%, rgba(33, 100, 94, 0.8) 0%), linear-gradient(180deg, #001214 5%, #0D2734 100%)",
3417
+ ...s == null ? void 0 : s.container
3418
+ } : e === "seeker-2" ? {
3419
+ background: "radial-gradient(25% 200% at 50% 50%, #6CCEC6 0%, rgba(19, 77, 128, 0) 30%), radial-gradient(20% 20% at 50% 100%, rgba(66, 202, 189, 0.8) 0%, rgba(33, 100, 94, 0.8) 0%), linear-gradient(180deg, #001214 5%, #0D2734 100%)",
3420
+ ...s == null ? void 0 : s.container
3421
+ } : s == null ? void 0 : s.container,
3422
+ children: /* @__PURE__ */ b(
3423
+ ne,
2996
3424
  {
2997
- className: A(
2998
- "w-full max-w-lg shadow-2xl border-0 bg-white/95 backdrop-blur-sm",
2999
- W(),
3000
- u == null ? void 0 : u.card
3425
+ className: d(
3426
+ "w-full max-w-lg shadow-2xl border-0",
3427
+ M.card,
3428
+ g == null ? void 0 : g.card
3001
3429
  ),
3002
- style: f == null ? void 0 : f.card,
3430
+ style: e === "seeker" ? {
3431
+ backgroundColor: "#171719",
3432
+ ...s == null ? void 0 : s.card
3433
+ } : e === "seeker-2" ? {
3434
+ backgroundColor: "rgba(29, 35, 35, 1)",
3435
+ backdropFilter: "blur(12px)",
3436
+ ...s == null ? void 0 : s.card
3437
+ } : s == null ? void 0 : s.card,
3003
3438
  children: [
3004
- /* @__PURE__ */ C(Ne, { className: "text-center pb-6", children: [
3005
- /* @__PURE__ */ l("div", { className: "mx-auto w-16 h-16 bg-solana-gradient rounded-full flex items-center justify-center mb-4", children: /* @__PURE__ */ l("svg", { className: "w-8 h-8 text-white", fill: "currentColor", viewBox: "0 0 24 24", children: /* @__PURE__ */ l("path", { d: "M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 15l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z" }) }) }),
3006
- /* @__PURE__ */ l(Ae, { className: A("text-3xl font-bold bg-solana-gradient bg-clip-text text-transparent", u == null ? void 0 : u.text), style: f == null ? void 0 : f.text, children: "Unlock Premium Access" }),
3007
- /* @__PURE__ */ l(Pe, { className: "text-lg text-slate-600 mt-2", children: r })
3008
- ] }),
3009
- /* @__PURE__ */ C(ne, { className: "space-y-6", children: [
3010
- /* @__PURE__ */ l(
3011
- Te,
3439
+ /* @__PURE__ */ b(be, { className: "pb-6", children: [
3440
+ /* @__PURE__ */ b("div", { className: "flex items-center space-x-4 mb-6", children: [
3441
+ /* @__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
+ "img",
3443
+ {
3444
+ src: "/src/components/ui/SolanaLogo.svg",
3445
+ alt: "Solana",
3446
+ className: "w-12 h-auto"
3447
+ }
3448
+ ) }) }),
3449
+ /* @__PURE__ */ b("div", { children: [
3450
+ /* @__PURE__ */ a(
3451
+ ge,
3452
+ {
3453
+ className: d(
3454
+ "text-l fw-bold pb-1",
3455
+ M.title,
3456
+ g == null ? void 0 : g.text
3457
+ ),
3458
+ style: s == null ? void 0 : s.text,
3459
+ children: "Premium Content XYZ"
3460
+ }
3461
+ ),
3462
+ /* @__PURE__ */ a(
3463
+ pe,
3464
+ {
3465
+ className: d(
3466
+ "text-sm font-light",
3467
+ e === "terminal" ? "text-green-300" : e === "seeker" || e === "seeker-2" ? "text-white" : "text-[#71717A]"
3468
+ ),
3469
+ children: "content.xyz"
3470
+ }
3471
+ )
3472
+ ] })
3473
+ ] }),
3474
+ /* @__PURE__ */ a(
3475
+ "div",
3012
3476
  {
3013
- wallet: t,
3014
- balance: c ? M : void 0,
3015
- network: p ? o : void 0,
3016
- showBalance: c
3477
+ className: d(
3478
+ "border-b mb-6",
3479
+ e === "dark" || e === "solana-dark" ? "border-slate-600" : e === "seeker" || e === "seeker-2" ? "" : "border-slate-200"
3480
+ ),
3481
+ style: e === "seeker" ? { borderBottom: "1px solid #FFFFFF1F" } : e === "seeker-2" ? { borderBottom: "1px solid #FFFFFF1F" } : void 0
3017
3482
  }
3018
3483
  ),
3019
- g && /* @__PURE__ */ C("div", { className: "bg-gradient-to-r from-slate-50 to-slate-100 rounded-xl p-6 border border-slate-200", children: [
3020
- /* @__PURE__ */ C("div", { className: "flex justify-between items-center mb-2", children: [
3021
- /* @__PURE__ */ l("span", { className: "text-sm font-medium text-slate-600", children: "Payment Amount" }),
3022
- /* @__PURE__ */ C("span", { className: "text-2xl font-bold text-slate-900", children: [
3484
+ !G && /* @__PURE__ */ b("div", { className: "text-center", children: [
3485
+ /* @__PURE__ */ a(
3486
+ "h2",
3487
+ {
3488
+ className: d(
3489
+ "text-2xl font-normal mb-2",
3490
+ e === "dark" || e === "solana-dark" || e === "seeker" || e === "seeker-2" ? "text-white" : "text-slate-900"
3491
+ ),
3492
+ children: "Payment Required"
3493
+ }
3494
+ ),
3495
+ /* @__PURE__ */ a(
3496
+ "p",
3497
+ {
3498
+ className: d(
3499
+ "text-sm font-light",
3500
+ e === "dark" || e === "solana-dark" || e === "seeker" || e === "seeker-2" ? "text-white" : "text-slate-600"
3501
+ ),
3502
+ children: "Access to protected content on base-sepolia. To access this content, please pay $0.01 Base Sepolia USDC"
3503
+ }
3504
+ )
3505
+ ] })
3506
+ ] }),
3507
+ /* @__PURE__ */ a(ae, { className: "space-y-6", children: G ? /* @__PURE__ */ b(ie, { children: [
3508
+ /* @__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
+ "svg",
3510
+ {
3511
+ className: "w-8 h-8 text-white",
3512
+ fill: "none",
3513
+ stroke: "currentColor",
3514
+ viewBox: "0 0 24 24",
3515
+ strokeWidth: "3",
3516
+ children: /* @__PURE__ */ a(
3517
+ "path",
3518
+ {
3519
+ strokeLinecap: "round",
3520
+ strokeLinejoin: "round",
3521
+ d: "M6 18L18 6M6 6l12 12"
3522
+ }
3523
+ )
3524
+ }
3525
+ ) }) }),
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: [
3023
3547
  "$",
3024
- e.toFixed(2)
3548
+ r.toFixed(2)
3025
3549
  ] })
3026
3550
  ] }),
3027
- /* @__PURE__ */ C("div", { className: "flex justify-between items-center", children: [
3028
- /* @__PURE__ */ l("span", { className: "text-xs text-slate-500", children: "Currency" }),
3029
- /* @__PURE__ */ l("span", { className: "text-sm font-semibold text-slate-700 bg-slate-200 px-2 py-1 rounded-md", children: "USDC" })
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" })
3030
3560
  ] }),
3031
- v && /* @__PURE__ */ C("div", { className: "flex justify-between items-center mt-2", children: [
3032
- /* @__PURE__ */ l("span", { className: "text-xs text-slate-500", children: "Maximum Amount" }),
3033
- /* @__PURE__ */ C("span", { className: "text-xs text-slate-600", children: [
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: [
3034
3570
  "$",
3035
- v.toFixed(2)
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",
3587
+ 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" })
3036
3595
  ] })
3037
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",
3612
+ {
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"
3616
+ }
3617
+ )
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." })
3038
3624
  ] }),
3039
- T !== "idle" && /* @__PURE__ */ l(
3040
- Me,
3625
+ /* @__PURE__ */ a(
3626
+ te,
3041
3627
  {
3042
- status: T,
3043
- message: S == null ? void 0 : S.message,
3044
- className: u == null ? void 0 : u.status,
3045
- style: f == null ? void 0 : f.status
3628
+ amount: r,
3629
+ description: n,
3630
+ onClick: () => {
3631
+ Q(), O();
3632
+ },
3633
+ loading: z,
3634
+ disabled: z || !(p != null && p.publicKey),
3635
+ className: d(
3636
+ "w-full h-12",
3637
+ 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",
3638
+ g == null ? void 0 : g.button
3639
+ ),
3640
+ style: e === "dark" ? {
3641
+ backgroundColor: "#FFFFFF1F",
3642
+ boxShadow: "0 1px 0 0 rgba(255, 255, 255, 0.3) inset",
3643
+ ...s == null ? void 0 : s.button
3644
+ } : e === "light" || e === "solana-light" ? s == null ? void 0 : s.button : e === "seeker" ? {
3645
+ background: "linear-gradient(0deg, #39A298, #39A298), radial-gradient(101.17% 101.67% at 50.28% 134.17%, rgba(255, 255, 255, 0.6) 0%, rgba(22, 188, 174, 0.6) 100%)",
3646
+ backgroundColor: "transparent",
3647
+ ...s == null ? void 0 : s.button
3648
+ } : e === "seeker-2" ? {
3649
+ background: "linear-gradient(0deg, #39A298, #39A298), radial-gradient(101.17% 101.67% at 50.28% 134.17%, rgba(255, 255, 255, 0.6) 0%, rgba(22, 188, 174, 0.6) 100%)",
3650
+ backgroundColor: "transparent",
3651
+ ...s == null ? void 0 : s.button
3652
+ } : s == null ? void 0 : s.button,
3653
+ customText: "Try Again"
3046
3654
  }
3047
3655
  ),
3048
- /* @__PURE__ */ l(
3049
- ze,
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"
3672
+ ),
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",
3686
+ {
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"
3690
+ }
3691
+ )
3692
+ }
3693
+ )
3694
+ ]
3695
+ }
3696
+ )
3697
+ ] }) })
3698
+ ] }) : /* @__PURE__ */ b(ie, { children: [
3699
+ /* @__PURE__ */ a(
3700
+ Ke,
3701
+ {
3702
+ wallet: p,
3703
+ onDisconnect: _,
3704
+ theme: e,
3705
+ className: d(
3706
+ "mb-4",
3707
+ (e === "dark" || e === "solana-dark") && "bg-[#0000001F] border-slate-600 text-white"
3708
+ ),
3709
+ style: e === "dark" || e === "solana-dark" ? { boxShadow: "0px 0px 16px 4px #000000 inset" } : void 0
3710
+ }
3711
+ ),
3712
+ f && (e === "seeker" || e === "seeker-2" ? /* @__PURE__ */ b(
3713
+ "div",
3714
+ {
3715
+ className: d("p-6", M.paymentDetails),
3716
+ style: {
3717
+ backgroundColor: "rgba(0, 0, 0, 0.12)"
3718
+ },
3719
+ children: [
3720
+ /* @__PURE__ */ b("div", { className: "flex items-center justify-between mb-4", children: [
3721
+ /* @__PURE__ */ a("span", { className: "text-sm text-white", children: "Amount" }),
3722
+ /* @__PURE__ */ a(
3723
+ "div",
3724
+ {
3725
+ className: "text-xl font-bold",
3726
+ style: { color: "#95D2E6" },
3727
+ children: r.toFixed(2)
3728
+ }
3729
+ )
3730
+ ] }),
3731
+ /* @__PURE__ */ a(
3732
+ "div",
3733
+ {
3734
+ className: "border-t mb-4",
3735
+ style: { borderTop: "1px solid #FFFFFF1F" }
3736
+ }
3737
+ ),
3738
+ /* @__PURE__ */ b("div", { className: "space-y-3", children: [
3739
+ /* @__PURE__ */ b("div", { className: "flex items-center justify-between", children: [
3740
+ /* @__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" })
3742
+ ] }),
3743
+ /* @__PURE__ */ b("div", { className: "flex items-center justify-between", children: [
3744
+ /* @__PURE__ */ a("span", { className: "text-sm text-white", children: "Available Balance" }),
3745
+ /* @__PURE__ */ b("div", { className: "text-sm text-white", children: [
3746
+ "$",
3747
+ P
3748
+ ] })
3749
+ ] }),
3750
+ /* @__PURE__ */ b("div", { className: "flex items-center justify-between", children: [
3751
+ /* @__PURE__ */ a("span", { className: "text-sm text-white", children: "Currency" }),
3752
+ /* @__PURE__ */ a("div", { className: "text-sm text-white", children: "USDC" })
3753
+ ] }),
3754
+ /* @__PURE__ */ b("div", { className: "flex items-center justify-between", children: [
3755
+ /* @__PURE__ */ a("span", { className: "text-sm text-white", children: "Network" }),
3756
+ /* @__PURE__ */ b("div", { className: "flex items-center space-x-2", children: [
3757
+ /* @__PURE__ */ a(
3758
+ "div",
3759
+ {
3760
+ className: "w-2 h-2 rounded-full",
3761
+ style: { backgroundColor: "#95D2E6" }
3762
+ }
3763
+ ),
3764
+ /* @__PURE__ */ a("span", { className: "text-sm text-white", children: "Solana" })
3765
+ ] })
3766
+ ] })
3767
+ ] })
3768
+ ]
3769
+ }
3770
+ ) : /* @__PURE__ */ b(
3771
+ "div",
3772
+ {
3773
+ className: d("p-6", M.paymentDetails),
3774
+ style: e === "dark" || e === "solana-dark" ? { boxShadow: "0px 0px 16px 4px #000000 inset" } : void 0,
3775
+ children: [
3776
+ /* @__PURE__ */ b("div", { className: "flex items-center justify-between mb-4", children: [
3777
+ /* @__PURE__ */ a(
3778
+ "span",
3779
+ {
3780
+ className: d(
3781
+ "text-sm",
3782
+ e === "dark" || e === "solana-dark" ? "text-white" : "text-black"
3783
+ ),
3784
+ children: "Amount"
3785
+ }
3786
+ ),
3787
+ /* @__PURE__ */ b(
3788
+ "div",
3789
+ {
3790
+ className: d(
3791
+ "text-xl font-bold",
3792
+ e === "light" || e === "solana-light" ? "text-purple-600" : "text-[#21ECAB]"
3793
+ ),
3794
+ children: [
3795
+ "$",
3796
+ r.toFixed(2)
3797
+ ]
3798
+ }
3799
+ )
3800
+ ] }),
3801
+ /* @__PURE__ */ a(
3802
+ "div",
3803
+ {
3804
+ className: d(
3805
+ "border-t mb-4",
3806
+ e === "dark" || e === "solana-dark" ? "border-slate-600" : "border-slate-200"
3807
+ )
3808
+ }
3809
+ ),
3810
+ /* @__PURE__ */ b("div", { className: "space-y-3", children: [
3811
+ /* @__PURE__ */ b("div", { className: "flex items-center justify-between", children: [
3812
+ /* @__PURE__ */ a(
3813
+ "span",
3814
+ {
3815
+ className: d(
3816
+ "text-sm",
3817
+ e === "dark" || e === "solana-dark" ? "text-white" : "text-black"
3818
+ ),
3819
+ children: "Wallet"
3820
+ }
3821
+ ),
3822
+ /* @__PURE__ */ a(
3823
+ "div",
3824
+ {
3825
+ className: d(
3826
+ "text-sm",
3827
+ e === "dark" || e === "solana-dark" ? "text-white" : "text-slate-900"
3828
+ ),
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"
3830
+ }
3831
+ )
3832
+ ] }),
3833
+ /* @__PURE__ */ b("div", { className: "flex items-center justify-between", children: [
3834
+ /* @__PURE__ */ a(
3835
+ "span",
3836
+ {
3837
+ className: d(
3838
+ "text-sm",
3839
+ e === "dark" || e === "solana-dark" ? "text-white" : "text-black"
3840
+ ),
3841
+ children: "Available Balance"
3842
+ }
3843
+ ),
3844
+ /* @__PURE__ */ b(
3845
+ "div",
3846
+ {
3847
+ className: d(
3848
+ "text-sm",
3849
+ e === "dark" || e === "solana-dark" ? "text-white" : "text-slate-900"
3850
+ ),
3851
+ children: [
3852
+ "$",
3853
+ P
3854
+ ]
3855
+ }
3856
+ )
3857
+ ] }),
3858
+ /* @__PURE__ */ b("div", { className: "flex items-center justify-between", children: [
3859
+ /* @__PURE__ */ a(
3860
+ "span",
3861
+ {
3862
+ className: d(
3863
+ "text-sm",
3864
+ e === "dark" || e === "solana-dark" ? "text-white" : "text-black"
3865
+ ),
3866
+ children: "Currency"
3867
+ }
3868
+ ),
3869
+ /* @__PURE__ */ a(
3870
+ "div",
3871
+ {
3872
+ className: d(
3873
+ "text-sm",
3874
+ e === "dark" || e === "solana-dark" ? "text-white" : "text-slate-900"
3875
+ ),
3876
+ children: "USDC"
3877
+ }
3878
+ )
3879
+ ] }),
3880
+ /* @__PURE__ */ b("div", { className: "flex items-center justify-between", children: [
3881
+ /* @__PURE__ */ a(
3882
+ "span",
3883
+ {
3884
+ className: d(
3885
+ "text-sm",
3886
+ e === "dark" || e === "solana-dark" ? "text-white" : "text-black"
3887
+ ),
3888
+ children: "Network"
3889
+ }
3890
+ ),
3891
+ /* @__PURE__ */ b("div", { className: "flex items-center space-x-2", children: [
3892
+ /* @__PURE__ */ a(
3893
+ "div",
3894
+ {
3895
+ className: d("w-2 h-2 rounded-full", "bg-green-500")
3896
+ }
3897
+ ),
3898
+ /* @__PURE__ */ a(
3899
+ "span",
3900
+ {
3901
+ className: d(
3902
+ "text-sm",
3903
+ e === "dark" || e === "solana-dark" ? "text-white" : "text-slate-900"
3904
+ ),
3905
+ children: "Solana"
3906
+ }
3907
+ )
3908
+ ] })
3909
+ ] })
3910
+ ] })
3911
+ ]
3912
+ }
3913
+ )),
3914
+ /* @__PURE__ */ b("div", { className: "flex items-center justify-center space-x-2", children: [
3915
+ /* @__PURE__ */ b(
3916
+ "svg",
3917
+ {
3918
+ className: "w-4 h-4 text-green-500",
3919
+ fill: "none",
3920
+ stroke: "currentColor",
3921
+ viewBox: "0 0 24 24",
3922
+ strokeWidth: "2",
3923
+ children: [
3924
+ /* @__PURE__ */ a("path", { d: "M12 1L3 5v6c0 5.55 3.84 10.74 9 12 5.16-1.26 9-6.45 9-12V5l-9-4z" }),
3925
+ /* @__PURE__ */ a(
3926
+ "path",
3927
+ {
3928
+ d: "M9 12l2 2 4-4",
3929
+ strokeLinecap: "round",
3930
+ strokeLinejoin: "round"
3931
+ }
3932
+ )
3933
+ ]
3934
+ }
3935
+ ),
3936
+ /* @__PURE__ */ a(
3937
+ "span",
3938
+ {
3939
+ className: d("text-sm", M.securityMessage),
3940
+ style: e === "seeker" ? { color: "#FFFFFF66" } : e === "seeker-2" ? { color: "#FFFFFF66" } : void 0,
3941
+ children: "Secure payment powered by Solana"
3942
+ }
3943
+ )
3944
+ ] }),
3945
+ /* @__PURE__ */ a(
3946
+ te,
3050
3947
  {
3051
- amount: e,
3052
- description: r,
3053
- onClick: J,
3054
- loading: R,
3055
- disabled: R,
3056
- className: A("w-full h-12 text-lg font-semibold", u == null ? void 0 : u.button),
3057
- style: f == null ? void 0 : f.button
3948
+ amount: r,
3949
+ description: n,
3950
+ onClick: O,
3951
+ loading: z,
3952
+ disabled: z || !(p != null && p.publicKey),
3953
+ className: d(
3954
+ "w-full h-12",
3955
+ e === "dark" || e === "solana-dark" ? e === "dark" ? "bg-[#FFFFFF1F] rounded-full" : "bg-solana-gradient rounded-full" : M.button,
3956
+ g == null ? void 0 : g.button
3957
+ ),
3958
+ style: e === "dark" ? {
3959
+ backgroundColor: "#FFFFFF1F",
3960
+ boxShadow: "0 1px 0 0 rgba(255, 255, 255, 0.3) inset",
3961
+ ...s == null ? void 0 : s.button
3962
+ } : e === "seeker" ? {
3963
+ background: "linear-gradient(0deg, #39A298, #39A298), radial-gradient(101.17% 101.67% at 50.28% 134.17%, rgba(255, 255, 255, 0.6) 0%, rgba(22, 188, 174, 0.6) 100%)",
3964
+ backgroundColor: "transparent",
3965
+ ...s == null ? void 0 : s.button
3966
+ } : e === "seeker-2" ? {
3967
+ background: "linear-gradient(0deg, #39A298, #39A298), radial-gradient(101.17% 101.67% at 50.28% 134.17%, rgba(255, 255, 255, 0.6) 0%, rgba(22, 188, 174, 0.6) 100%)",
3968
+ backgroundColor: "transparent",
3969
+ ...s == null ? void 0 : s.button
3970
+ } : s == null ? void 0 : s.button
3058
3971
  }
3059
3972
  ),
3060
- S && /* @__PURE__ */ l("div", { className: "bg-red-50 border border-red-200 rounded-lg p-4", children: /* @__PURE__ */ C("p", { className: "text-sm text-red-800 text-center", children: [
3061
- /* @__PURE__ */ l("span", { className: "font-semibold", children: "Payment Error:" }),
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: [
3974
+ /* @__PURE__ */ a("span", { className: "font-semibold", children: "Payment Error:" }),
3062
3975
  " ",
3063
- S.message
3976
+ j.message
3064
3977
  ] }) }),
3065
- /* @__PURE__ */ l("div", { className: "bg-amber-50 border border-amber-200 rounded-lg p-4", children: /* @__PURE__ */ C("p", { className: "text-xs text-amber-800 text-center", children: [
3066
- /* @__PURE__ */ l("span", { className: "font-semibold", children: "Live Payments:" }),
3067
- " Uses PayAI facilitator on Solana Mainnet.",
3068
- /* @__PURE__ */ l("br", {}),
3069
- "Requires real USDC balance. Test payments are refunded automatically."
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
+ ] }),
3983
+ /* @__PURE__ */ b(
3984
+ "a",
3985
+ {
3986
+ href: "#",
3987
+ className: d(
3988
+ "font-medium",
3989
+ e === "seeker" || e === "seeker-2" ? "text-[#4ADE80]" : M.helperLink || "text-[#4ADE80]"
3990
+ ),
3991
+ style: e === "seeker" ? { color: "#4ADE80" } : e === "seeker-2" ? { color: "#4ADE80" } : void 0,
3992
+ children: [
3993
+ "Get it here",
3994
+ /* @__PURE__ */ a(
3995
+ "svg",
3996
+ {
3997
+ className: d(
3998
+ "inline w-3 h-3 ml-1",
3999
+ e === "light" ? "text-purple-600" : "text-[#4ADE80]"
4000
+ ),
4001
+ fill: "currentColor",
4002
+ viewBox: "0 0 20 20",
4003
+ children: /* @__PURE__ */ a(
4004
+ "path",
4005
+ {
4006
+ fillRule: "evenodd",
4007
+ 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",
4008
+ clipRule: "evenodd"
4009
+ }
4010
+ )
4011
+ }
4012
+ )
4013
+ ]
4014
+ }
4015
+ )
3070
4016
  ] }) })
3071
- ] })
4017
+ ] }) })
3072
4018
  ]
3073
4019
  }
3074
4020
  )
3075
4021
  }
3076
4022
  );
4023
+ }, it = ({
4024
+ autoSetupProviders: r = !0,
4025
+ providerNetwork: n,
4026
+ providerEndpoint: t,
4027
+ ...o
4028
+ }) => {
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 });
4044
+ };
4045
+ it.displayName = "X402Paywall";
4046
+ const lt = ({
4047
+ status: r,
4048
+ message: n,
4049
+ progress: t,
4050
+ className: o,
4051
+ style: i
4052
+ }) => {
4053
+ const u = (() => {
4054
+ switch (r) {
4055
+ case "idle":
4056
+ return {
4057
+ label: "Ready",
4058
+ color: "bg-gray-100 text-gray-800",
4059
+ icon: null
4060
+ };
4061
+ case "connecting":
4062
+ return {
4063
+ label: "Connecting",
4064
+ color: "bg-blue-100 text-blue-800",
4065
+ icon: /* @__PURE__ */ a(oe, { size: "sm", variant: "default" })
4066
+ };
4067
+ case "pending":
4068
+ return {
4069
+ label: "Processing",
4070
+ color: "bg-yellow-100 text-yellow-800",
4071
+ icon: /* @__PURE__ */ a(oe, { size: "sm", variant: "solana" })
4072
+ };
4073
+ case "success":
4074
+ return {
4075
+ label: "Paid",
4076
+ color: "bg-green-100 text-green-800",
4077
+ icon: /* @__PURE__ */ a(
4078
+ "svg",
4079
+ {
4080
+ className: "w-4 h-4",
4081
+ fill: "none",
4082
+ stroke: "currentColor",
4083
+ viewBox: "0 0 24 24",
4084
+ children: /* @__PURE__ */ a(
4085
+ "path",
4086
+ {
4087
+ strokeLinecap: "round",
4088
+ strokeLinejoin: "round",
4089
+ strokeWidth: 2,
4090
+ d: "M5 13l4 4L19 7"
4091
+ }
4092
+ )
4093
+ }
4094
+ )
4095
+ };
4096
+ case "error":
4097
+ return {
4098
+ label: "Failed",
4099
+ color: "bg-red-100 text-red-800",
4100
+ icon: /* @__PURE__ */ a(
4101
+ "svg",
4102
+ {
4103
+ className: "w-4 h-4",
4104
+ fill: "none",
4105
+ stroke: "currentColor",
4106
+ viewBox: "0 0 24 24",
4107
+ children: /* @__PURE__ */ a(
4108
+ "path",
4109
+ {
4110
+ strokeLinecap: "round",
4111
+ strokeLinejoin: "round",
4112
+ strokeWidth: 2,
4113
+ d: "M6 18L18 6M6 6l12 12"
4114
+ }
4115
+ )
4116
+ }
4117
+ )
4118
+ };
4119
+ default:
4120
+ return {
4121
+ label: "Unknown",
4122
+ color: "bg-gray-100 text-gray-800",
4123
+ icon: null
4124
+ };
4125
+ }
4126
+ })();
4127
+ return /* @__PURE__ */ b("div", { className: d("flex flex-col gap-2", o), style: i, children: [
4128
+ /* @__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: [
4130
+ u.icon,
4131
+ /* @__PURE__ */ a("span", { children: u.label })
4132
+ ] }),
4133
+ n && /* @__PURE__ */ a("span", { className: "text-sm text-muted-foreground", children: n })
4134
+ ] }),
4135
+ t !== void 0 && t > 0 && /* @__PURE__ */ a("div", { className: "w-full bg-gray-200 rounded-full h-2 overflow-hidden", children: /* @__PURE__ */ a(
4136
+ "div",
4137
+ {
4138
+ className: "bg-solana-gradient h-full transition-all duration-300",
4139
+ style: { width: `${t}%` }
4140
+ }
4141
+ ) })
4142
+ ] });
3077
4143
  };
3078
- $t.displayName = "X402Paywall";
4144
+ lt.displayName = "PaymentStatus";
3079
4145
  export {
3080
- Ie as Badge,
3081
- Ee as Button,
3082
- oe as Card,
3083
- ne as CardContent,
3084
- Pe as CardDescription,
3085
- Ne as CardHeader,
3086
- Ae as CardTitle,
3087
- ze as PaymentButton,
3088
- Me as PaymentStatus,
3089
- Z as Spinner,
3090
- Te as WalletSection,
3091
- $t as X402Paywall,
3092
- A as cn,
3093
- _t as useX402Payment
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,
4158
+ d as cn,
4159
+ st as useX402Payment
3094
4160
  };
3095
4161
  //# sourceMappingURL=index.mjs.map