@payai/x402-solana-react 1.0.3 → 1.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +14 -1
- package/dist/components/X402Paywall.d.ts.map +1 -1
- package/dist/demo/App.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +441 -302
- package/dist/index.mjs.map +1 -1
- package/dist/style.css +1 -1
- package/package.json +2 -2
package/dist/index.mjs
CHANGED
|
@@ -3,12 +3,12 @@ var Oe = (r, n, t) => n in r ? _e(r, n, { enumerable: !0, configurable: !0, writ
|
|
|
3
3
|
var ve = (r, n, t) => Oe(r, typeof n != "symbol" ? n + "" : n, t);
|
|
4
4
|
import { jsx as a, jsxs as b, Fragment as le } from "react/jsx-runtime";
|
|
5
5
|
import * as F from "react";
|
|
6
|
-
import { useState as
|
|
6
|
+
import { useState as J, useCallback as ye, useMemo as ce, useRef as He, useEffect as ne } from "react";
|
|
7
7
|
import { ConnectionProvider as Xe, WalletProvider as Je, useWallet as Ye } from "@solana/wallet-adapter-react";
|
|
8
8
|
import { WalletModalProvider as Ze, WalletMultiButton as qe } from "@solana/wallet-adapter-react-ui";
|
|
9
9
|
import { WalletAdapterNetwork as Ne } from "@solana/wallet-adapter-base";
|
|
10
10
|
import { PhantomWalletAdapter as Qe, SolflareWalletAdapter as Se } from "@solana/wallet-adapter-wallets";
|
|
11
|
-
import { Connection as De, PublicKey as
|
|
11
|
+
import { Connection as De, PublicKey as H, ComputeBudgetProgram as Ce, TransactionInstruction as er, SystemProgram as rr, TransactionMessage as tr, VersionedTransaction as nr, clusterApiUrl as ar } from "@solana/web3.js";
|
|
12
12
|
import { getAssociatedTokenAddress as ue, getAccount as or, TOKEN_2022_PROGRAM_ID as Fe, TOKEN_PROGRAM_ID as sr, getMint as ir, createTransferCheckedInstruction as lr } from "@solana/spl-token";
|
|
13
13
|
function dr(r) {
|
|
14
14
|
return r === "solana" ? "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v" : "4zMMC9srt5Ri5X14GAgXhaHii3GnPAEERYPJgZJDncDU";
|
|
@@ -18,7 +18,7 @@ function cr(r) {
|
|
|
18
18
|
}
|
|
19
19
|
async function ur(r, n, t) {
|
|
20
20
|
try {
|
|
21
|
-
const o = t || cr(n), i = new De(o, "confirmed"), l = new
|
|
21
|
+
const o = t || cr(n), i = new De(o, "confirmed"), l = new H(r), u = new H(dr(n)), c = await ue(
|
|
22
22
|
u,
|
|
23
23
|
l
|
|
24
24
|
), e = await or(i, c);
|
|
@@ -218,8 +218,8 @@ const xe = "-", br = (r) => {
|
|
|
218
218
|
continue;
|
|
219
219
|
l.push(M);
|
|
220
220
|
const T = i(k, A);
|
|
221
|
-
for (let
|
|
222
|
-
const f = T[
|
|
221
|
+
for (let v = 0; v < T.length; ++v) {
|
|
222
|
+
const f = T[v];
|
|
223
223
|
l.push(N + f);
|
|
224
224
|
}
|
|
225
225
|
c = p + (c.length > 0 ? " " + c : c);
|
|
@@ -260,7 +260,7 @@ function Cr(r, ...n) {
|
|
|
260
260
|
const C = (r) => {
|
|
261
261
|
const n = (t) => t[r] || [];
|
|
262
262
|
return n.isThemeGetter = !0, n;
|
|
263
|
-
}, $e = /^\[(?:([a-z-]+):)?(.+)\]$/i, Fr = /^\d+\/\d+$/, Ar = /* @__PURE__ */ new Set(["px", "full", "screen"]), Mr = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, Tr = /\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/, Er = /^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/, Pr = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, jr = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,
|
|
263
|
+
}, $e = /^\[(?:([a-z-]+):)?(.+)\]$/i, Fr = /^\d+\/\d+$/, Ar = /* @__PURE__ */ new Set(["px", "full", "screen"]), Mr = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, Tr = /\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/, Er = /^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/, Pr = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, jr = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, G = (r) => Y(r) || Ar.has(r) || Fr.test(r), V = (r) => Z(r, "length", Gr), Y = (r) => !!r && !Number.isNaN(Number(r)), de = (r) => Z(r, "number", Y), ee = (r) => !!r && Number.isInteger(Number(r)), Dr = (r) => r.endsWith("%") && Y(r.slice(0, -1)), w = (r) => $e.test(r), K = (r) => Mr.test(r), zr = /* @__PURE__ */ new Set(["length", "size", "percentage"]), Ir = (r) => Z(r, zr, Ge), Lr = (r) => Z(r, "position", Ge), Rr = /* @__PURE__ */ new Set(["image", "url"]), Br = (r) => Z(r, Rr, Vr), $r = (r) => Z(r, "", Ur), re = () => !0, Z = (r, n, t) => {
|
|
264
264
|
const o = $e.exec(r);
|
|
265
265
|
return o ? o[1] ? typeof n == "string" ? o[1] === n : n.has(o[1]) : t(o[2]) : !1;
|
|
266
266
|
}, Gr = (r) => (
|
|
@@ -269,36 +269,36 @@ const C = (r) => {
|
|
|
269
269
|
// I could also use lookbehind assertion in `lengthUnitRegex` but that isn't supported widely enough.
|
|
270
270
|
Tr.test(r) && !Er.test(r)
|
|
271
271
|
), Ge = () => !1, Ur = (r) => Pr.test(r), Vr = (r) => jr.test(r), Kr = () => {
|
|
272
|
-
const r = C("colors"), n = C("spacing"), t = C("blur"), o = C("brightness"), i = C("borderColor"), l = C("borderRadius"), u = C("borderSpacing"), c = C("borderWidth"), e = C("contrast"), p = C("grayscale"), h = C("hueRotate"), x = C("invert"), g = C("gap"), s = C("gradientColorStops"), A = C("gradientColorStopPositions"), k = C("inset"), m = C("margin"), N = C("opacity"), M = C("padding"), T = C("saturate"),
|
|
272
|
+
const r = C("colors"), n = C("spacing"), t = C("blur"), o = C("brightness"), i = C("borderColor"), l = C("borderRadius"), u = C("borderSpacing"), c = C("borderWidth"), e = C("contrast"), p = C("grayscale"), h = C("hueRotate"), x = C("invert"), g = C("gap"), s = C("gradientColorStops"), A = C("gradientColorStopPositions"), k = C("inset"), m = C("margin"), N = C("opacity"), M = C("padding"), T = C("saturate"), v = C("scale"), f = C("sepia"), z = C("skew"), D = C("space"), E = C("translate"), I = () => ["auto", "contain", "none"], L = () => ["auto", "hidden", "clip", "visible", "scroll"], R = () => ["auto", w, n], y = () => [w, n], W = () => ["", G, V], _ = () => ["auto", Y, w], P = () => ["bottom", "center", "left", "left-bottom", "left-top", "right", "right-bottom", "right-top", "top"], U = () => ["solid", "dashed", "dotted", "double", "none"], te = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], q = () => ["start", "end", "center", "between", "around", "evenly", "stretch"], O = () => ["", "0", w], Q = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], j = () => [Y, w];
|
|
273
273
|
return {
|
|
274
274
|
cacheSize: 500,
|
|
275
275
|
separator: ":",
|
|
276
276
|
theme: {
|
|
277
277
|
colors: [re],
|
|
278
|
-
spacing: [
|
|
279
|
-
blur: ["none", "",
|
|
280
|
-
brightness:
|
|
278
|
+
spacing: [G, V],
|
|
279
|
+
blur: ["none", "", K, w],
|
|
280
|
+
brightness: j(),
|
|
281
281
|
borderColor: [r],
|
|
282
|
-
borderRadius: ["none", "", "full",
|
|
283
|
-
borderSpacing:
|
|
284
|
-
borderWidth:
|
|
285
|
-
contrast:
|
|
286
|
-
grayscale:
|
|
287
|
-
hueRotate:
|
|
288
|
-
invert:
|
|
289
|
-
gap:
|
|
282
|
+
borderRadius: ["none", "", "full", K, w],
|
|
283
|
+
borderSpacing: y(),
|
|
284
|
+
borderWidth: W(),
|
|
285
|
+
contrast: j(),
|
|
286
|
+
grayscale: O(),
|
|
287
|
+
hueRotate: j(),
|
|
288
|
+
invert: O(),
|
|
289
|
+
gap: y(),
|
|
290
290
|
gradientColorStops: [r],
|
|
291
|
-
gradientColorStopPositions: [Dr,
|
|
292
|
-
inset:
|
|
293
|
-
margin:
|
|
294
|
-
opacity:
|
|
295
|
-
padding:
|
|
296
|
-
saturate:
|
|
297
|
-
scale:
|
|
298
|
-
sepia:
|
|
299
|
-
skew:
|
|
300
|
-
space:
|
|
301
|
-
translate:
|
|
291
|
+
gradientColorStopPositions: [Dr, V],
|
|
292
|
+
inset: R(),
|
|
293
|
+
margin: R(),
|
|
294
|
+
opacity: j(),
|
|
295
|
+
padding: y(),
|
|
296
|
+
saturate: j(),
|
|
297
|
+
scale: j(),
|
|
298
|
+
sepia: O(),
|
|
299
|
+
skew: j(),
|
|
300
|
+
space: y(),
|
|
301
|
+
translate: y()
|
|
302
302
|
},
|
|
303
303
|
classGroups: {
|
|
304
304
|
// Layout
|
|
@@ -319,7 +319,7 @@ const C = (r) => {
|
|
|
319
319
|
* @see https://tailwindcss.com/docs/columns
|
|
320
320
|
*/
|
|
321
321
|
columns: [{
|
|
322
|
-
columns: [
|
|
322
|
+
columns: [K]
|
|
323
323
|
}],
|
|
324
324
|
/**
|
|
325
325
|
* Break After
|
|
@@ -392,7 +392,7 @@ const C = (r) => {
|
|
|
392
392
|
* @see https://tailwindcss.com/docs/object-position
|
|
393
393
|
*/
|
|
394
394
|
"object-position": [{
|
|
395
|
-
object: [...
|
|
395
|
+
object: [...P(), w]
|
|
396
396
|
}],
|
|
397
397
|
/**
|
|
398
398
|
* Overflow
|
|
@@ -522,7 +522,7 @@ const C = (r) => {
|
|
|
522
522
|
* @see https://tailwindcss.com/docs/flex-basis
|
|
523
523
|
*/
|
|
524
524
|
basis: [{
|
|
525
|
-
basis:
|
|
525
|
+
basis: R()
|
|
526
526
|
}],
|
|
527
527
|
/**
|
|
528
528
|
* Flex Direction
|
|
@@ -550,14 +550,14 @@ const C = (r) => {
|
|
|
550
550
|
* @see https://tailwindcss.com/docs/flex-grow
|
|
551
551
|
*/
|
|
552
552
|
grow: [{
|
|
553
|
-
grow:
|
|
553
|
+
grow: O()
|
|
554
554
|
}],
|
|
555
555
|
/**
|
|
556
556
|
* Flex Shrink
|
|
557
557
|
* @see https://tailwindcss.com/docs/flex-shrink
|
|
558
558
|
*/
|
|
559
559
|
shrink: [{
|
|
560
|
-
shrink:
|
|
560
|
+
shrink: O()
|
|
561
561
|
}],
|
|
562
562
|
/**
|
|
563
563
|
* Order
|
|
@@ -587,14 +587,14 @@ const C = (r) => {
|
|
|
587
587
|
* @see https://tailwindcss.com/docs/grid-column
|
|
588
588
|
*/
|
|
589
589
|
"col-start": [{
|
|
590
|
-
"col-start":
|
|
590
|
+
"col-start": _()
|
|
591
591
|
}],
|
|
592
592
|
/**
|
|
593
593
|
* Grid Column End
|
|
594
594
|
* @see https://tailwindcss.com/docs/grid-column
|
|
595
595
|
*/
|
|
596
596
|
"col-end": [{
|
|
597
|
-
"col-end":
|
|
597
|
+
"col-end": _()
|
|
598
598
|
}],
|
|
599
599
|
/**
|
|
600
600
|
* Grid Template Rows
|
|
@@ -617,14 +617,14 @@ const C = (r) => {
|
|
|
617
617
|
* @see https://tailwindcss.com/docs/grid-row
|
|
618
618
|
*/
|
|
619
619
|
"row-start": [{
|
|
620
|
-
"row-start":
|
|
620
|
+
"row-start": _()
|
|
621
621
|
}],
|
|
622
622
|
/**
|
|
623
623
|
* Grid Row End
|
|
624
624
|
* @see https://tailwindcss.com/docs/grid-row
|
|
625
625
|
*/
|
|
626
626
|
"row-end": [{
|
|
627
|
-
"row-end":
|
|
627
|
+
"row-end": _()
|
|
628
628
|
}],
|
|
629
629
|
/**
|
|
630
630
|
* Grid Auto Flow
|
|
@@ -863,7 +863,7 @@ const C = (r) => {
|
|
|
863
863
|
* @see https://tailwindcss.com/docs/space
|
|
864
864
|
*/
|
|
865
865
|
"space-x": [{
|
|
866
|
-
"space-x": [
|
|
866
|
+
"space-x": [D]
|
|
867
867
|
}],
|
|
868
868
|
/**
|
|
869
869
|
* Space Between X Reverse
|
|
@@ -875,7 +875,7 @@ const C = (r) => {
|
|
|
875
875
|
* @see https://tailwindcss.com/docs/space
|
|
876
876
|
*/
|
|
877
877
|
"space-y": [{
|
|
878
|
-
"space-y": [
|
|
878
|
+
"space-y": [D]
|
|
879
879
|
}],
|
|
880
880
|
/**
|
|
881
881
|
* Space Between Y Reverse
|
|
@@ -903,8 +903,8 @@ const C = (r) => {
|
|
|
903
903
|
*/
|
|
904
904
|
"max-w": [{
|
|
905
905
|
"max-w": [w, n, "none", "full", "min", "max", "fit", "prose", {
|
|
906
|
-
screen: [
|
|
907
|
-
},
|
|
906
|
+
screen: [K]
|
|
907
|
+
}, K]
|
|
908
908
|
}],
|
|
909
909
|
/**
|
|
910
910
|
* Height
|
|
@@ -940,7 +940,7 @@ const C = (r) => {
|
|
|
940
940
|
* @see https://tailwindcss.com/docs/font-size
|
|
941
941
|
*/
|
|
942
942
|
"font-size": [{
|
|
943
|
-
text: ["base",
|
|
943
|
+
text: ["base", K, V]
|
|
944
944
|
}],
|
|
945
945
|
/**
|
|
946
946
|
* Font Smoothing
|
|
@@ -1008,14 +1008,14 @@ const C = (r) => {
|
|
|
1008
1008
|
* @see https://tailwindcss.com/docs/line-clamp
|
|
1009
1009
|
*/
|
|
1010
1010
|
"line-clamp": [{
|
|
1011
|
-
"line-clamp": ["none",
|
|
1011
|
+
"line-clamp": ["none", Y, de]
|
|
1012
1012
|
}],
|
|
1013
1013
|
/**
|
|
1014
1014
|
* Line Height
|
|
1015
1015
|
* @see https://tailwindcss.com/docs/line-height
|
|
1016
1016
|
*/
|
|
1017
1017
|
leading: [{
|
|
1018
|
-
leading: ["none", "tight", "snug", "normal", "relaxed", "loose",
|
|
1018
|
+
leading: ["none", "tight", "snug", "normal", "relaxed", "loose", G, w]
|
|
1019
1019
|
}],
|
|
1020
1020
|
/**
|
|
1021
1021
|
* List Style Image
|
|
@@ -1084,21 +1084,21 @@ const C = (r) => {
|
|
|
1084
1084
|
* @see https://tailwindcss.com/docs/text-decoration-style
|
|
1085
1085
|
*/
|
|
1086
1086
|
"text-decoration-style": [{
|
|
1087
|
-
decoration: [...
|
|
1087
|
+
decoration: [...U(), "wavy"]
|
|
1088
1088
|
}],
|
|
1089
1089
|
/**
|
|
1090
1090
|
* Text Decoration Thickness
|
|
1091
1091
|
* @see https://tailwindcss.com/docs/text-decoration-thickness
|
|
1092
1092
|
*/
|
|
1093
1093
|
"text-decoration-thickness": [{
|
|
1094
|
-
decoration: ["auto", "from-font",
|
|
1094
|
+
decoration: ["auto", "from-font", G, V]
|
|
1095
1095
|
}],
|
|
1096
1096
|
/**
|
|
1097
1097
|
* Text Underline Offset
|
|
1098
1098
|
* @see https://tailwindcss.com/docs/text-underline-offset
|
|
1099
1099
|
*/
|
|
1100
1100
|
"underline-offset": [{
|
|
1101
|
-
"underline-offset": ["auto",
|
|
1101
|
+
"underline-offset": ["auto", G, w]
|
|
1102
1102
|
}],
|
|
1103
1103
|
/**
|
|
1104
1104
|
* Text Decoration Color
|
|
@@ -1129,7 +1129,7 @@ const C = (r) => {
|
|
|
1129
1129
|
* @see https://tailwindcss.com/docs/text-indent
|
|
1130
1130
|
*/
|
|
1131
1131
|
indent: [{
|
|
1132
|
-
indent:
|
|
1132
|
+
indent: y()
|
|
1133
1133
|
}],
|
|
1134
1134
|
/**
|
|
1135
1135
|
* Vertical Alignment
|
|
@@ -1201,7 +1201,7 @@ const C = (r) => {
|
|
|
1201
1201
|
* @see https://tailwindcss.com/docs/background-position
|
|
1202
1202
|
*/
|
|
1203
1203
|
"bg-position": [{
|
|
1204
|
-
bg: [...
|
|
1204
|
+
bg: [...P(), Lr]
|
|
1205
1205
|
}],
|
|
1206
1206
|
/**
|
|
1207
1207
|
* Background Repeat
|
|
@@ -1458,7 +1458,7 @@ const C = (r) => {
|
|
|
1458
1458
|
* @see https://tailwindcss.com/docs/border-style
|
|
1459
1459
|
*/
|
|
1460
1460
|
"border-style": [{
|
|
1461
|
-
border: [...
|
|
1461
|
+
border: [...U(), "hidden"]
|
|
1462
1462
|
}],
|
|
1463
1463
|
/**
|
|
1464
1464
|
* Divide Width X
|
|
@@ -1496,7 +1496,7 @@ const C = (r) => {
|
|
|
1496
1496
|
* @see https://tailwindcss.com/docs/divide-style
|
|
1497
1497
|
*/
|
|
1498
1498
|
"divide-style": [{
|
|
1499
|
-
divide:
|
|
1499
|
+
divide: U()
|
|
1500
1500
|
}],
|
|
1501
1501
|
/**
|
|
1502
1502
|
* Border Color
|
|
@@ -1573,21 +1573,21 @@ const C = (r) => {
|
|
|
1573
1573
|
* @see https://tailwindcss.com/docs/outline-style
|
|
1574
1574
|
*/
|
|
1575
1575
|
"outline-style": [{
|
|
1576
|
-
outline: ["", ...
|
|
1576
|
+
outline: ["", ...U()]
|
|
1577
1577
|
}],
|
|
1578
1578
|
/**
|
|
1579
1579
|
* Outline Offset
|
|
1580
1580
|
* @see https://tailwindcss.com/docs/outline-offset
|
|
1581
1581
|
*/
|
|
1582
1582
|
"outline-offset": [{
|
|
1583
|
-
"outline-offset": [
|
|
1583
|
+
"outline-offset": [G, w]
|
|
1584
1584
|
}],
|
|
1585
1585
|
/**
|
|
1586
1586
|
* Outline Width
|
|
1587
1587
|
* @see https://tailwindcss.com/docs/outline-width
|
|
1588
1588
|
*/
|
|
1589
1589
|
"outline-w": [{
|
|
1590
|
-
outline: [
|
|
1590
|
+
outline: [G, V]
|
|
1591
1591
|
}],
|
|
1592
1592
|
/**
|
|
1593
1593
|
* Outline Color
|
|
@@ -1601,7 +1601,7 @@ const C = (r) => {
|
|
|
1601
1601
|
* @see https://tailwindcss.com/docs/ring-width
|
|
1602
1602
|
*/
|
|
1603
1603
|
"ring-w": [{
|
|
1604
|
-
ring:
|
|
1604
|
+
ring: W()
|
|
1605
1605
|
}],
|
|
1606
1606
|
/**
|
|
1607
1607
|
* Ring Width Inset
|
|
@@ -1627,7 +1627,7 @@ const C = (r) => {
|
|
|
1627
1627
|
* @see https://tailwindcss.com/docs/ring-offset-width
|
|
1628
1628
|
*/
|
|
1629
1629
|
"ring-offset-w": [{
|
|
1630
|
-
"ring-offset": [
|
|
1630
|
+
"ring-offset": [G, V]
|
|
1631
1631
|
}],
|
|
1632
1632
|
/**
|
|
1633
1633
|
* Ring Offset Color
|
|
@@ -1642,7 +1642,7 @@ const C = (r) => {
|
|
|
1642
1642
|
* @see https://tailwindcss.com/docs/box-shadow
|
|
1643
1643
|
*/
|
|
1644
1644
|
shadow: [{
|
|
1645
|
-
shadow: ["", "inner", "none",
|
|
1645
|
+
shadow: ["", "inner", "none", K, $r]
|
|
1646
1646
|
}],
|
|
1647
1647
|
/**
|
|
1648
1648
|
* Box Shadow Color
|
|
@@ -1707,7 +1707,7 @@ const C = (r) => {
|
|
|
1707
1707
|
* @see https://tailwindcss.com/docs/drop-shadow
|
|
1708
1708
|
*/
|
|
1709
1709
|
"drop-shadow": [{
|
|
1710
|
-
"drop-shadow": ["", "none",
|
|
1710
|
+
"drop-shadow": ["", "none", K, w]
|
|
1711
1711
|
}],
|
|
1712
1712
|
/**
|
|
1713
1713
|
* Grayscale
|
|
@@ -1871,7 +1871,7 @@ const C = (r) => {
|
|
|
1871
1871
|
* @see https://tailwindcss.com/docs/transition-duration
|
|
1872
1872
|
*/
|
|
1873
1873
|
duration: [{
|
|
1874
|
-
duration:
|
|
1874
|
+
duration: j()
|
|
1875
1875
|
}],
|
|
1876
1876
|
/**
|
|
1877
1877
|
* Transition Timing Function
|
|
@@ -1885,7 +1885,7 @@ const C = (r) => {
|
|
|
1885
1885
|
* @see https://tailwindcss.com/docs/transition-delay
|
|
1886
1886
|
*/
|
|
1887
1887
|
delay: [{
|
|
1888
|
-
delay:
|
|
1888
|
+
delay: j()
|
|
1889
1889
|
}],
|
|
1890
1890
|
/**
|
|
1891
1891
|
* Animation
|
|
@@ -1907,21 +1907,21 @@ const C = (r) => {
|
|
|
1907
1907
|
* @see https://tailwindcss.com/docs/scale
|
|
1908
1908
|
*/
|
|
1909
1909
|
scale: [{
|
|
1910
|
-
scale: [
|
|
1910
|
+
scale: [v]
|
|
1911
1911
|
}],
|
|
1912
1912
|
/**
|
|
1913
1913
|
* Scale X
|
|
1914
1914
|
* @see https://tailwindcss.com/docs/scale
|
|
1915
1915
|
*/
|
|
1916
1916
|
"scale-x": [{
|
|
1917
|
-
"scale-x": [
|
|
1917
|
+
"scale-x": [v]
|
|
1918
1918
|
}],
|
|
1919
1919
|
/**
|
|
1920
1920
|
* Scale Y
|
|
1921
1921
|
* @see https://tailwindcss.com/docs/scale
|
|
1922
1922
|
*/
|
|
1923
1923
|
"scale-y": [{
|
|
1924
|
-
"scale-y": [
|
|
1924
|
+
"scale-y": [v]
|
|
1925
1925
|
}],
|
|
1926
1926
|
/**
|
|
1927
1927
|
* Rotate
|
|
@@ -2020,126 +2020,126 @@ const C = (r) => {
|
|
|
2020
2020
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
2021
2021
|
*/
|
|
2022
2022
|
"scroll-m": [{
|
|
2023
|
-
"scroll-m":
|
|
2023
|
+
"scroll-m": y()
|
|
2024
2024
|
}],
|
|
2025
2025
|
/**
|
|
2026
2026
|
* Scroll Margin X
|
|
2027
2027
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
2028
2028
|
*/
|
|
2029
2029
|
"scroll-mx": [{
|
|
2030
|
-
"scroll-mx":
|
|
2030
|
+
"scroll-mx": y()
|
|
2031
2031
|
}],
|
|
2032
2032
|
/**
|
|
2033
2033
|
* Scroll Margin Y
|
|
2034
2034
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
2035
2035
|
*/
|
|
2036
2036
|
"scroll-my": [{
|
|
2037
|
-
"scroll-my":
|
|
2037
|
+
"scroll-my": y()
|
|
2038
2038
|
}],
|
|
2039
2039
|
/**
|
|
2040
2040
|
* Scroll Margin Start
|
|
2041
2041
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
2042
2042
|
*/
|
|
2043
2043
|
"scroll-ms": [{
|
|
2044
|
-
"scroll-ms":
|
|
2044
|
+
"scroll-ms": y()
|
|
2045
2045
|
}],
|
|
2046
2046
|
/**
|
|
2047
2047
|
* Scroll Margin End
|
|
2048
2048
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
2049
2049
|
*/
|
|
2050
2050
|
"scroll-me": [{
|
|
2051
|
-
"scroll-me":
|
|
2051
|
+
"scroll-me": y()
|
|
2052
2052
|
}],
|
|
2053
2053
|
/**
|
|
2054
2054
|
* Scroll Margin Top
|
|
2055
2055
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
2056
2056
|
*/
|
|
2057
2057
|
"scroll-mt": [{
|
|
2058
|
-
"scroll-mt":
|
|
2058
|
+
"scroll-mt": y()
|
|
2059
2059
|
}],
|
|
2060
2060
|
/**
|
|
2061
2061
|
* Scroll Margin Right
|
|
2062
2062
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
2063
2063
|
*/
|
|
2064
2064
|
"scroll-mr": [{
|
|
2065
|
-
"scroll-mr":
|
|
2065
|
+
"scroll-mr": y()
|
|
2066
2066
|
}],
|
|
2067
2067
|
/**
|
|
2068
2068
|
* Scroll Margin Bottom
|
|
2069
2069
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
2070
2070
|
*/
|
|
2071
2071
|
"scroll-mb": [{
|
|
2072
|
-
"scroll-mb":
|
|
2072
|
+
"scroll-mb": y()
|
|
2073
2073
|
}],
|
|
2074
2074
|
/**
|
|
2075
2075
|
* Scroll Margin Left
|
|
2076
2076
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
2077
2077
|
*/
|
|
2078
2078
|
"scroll-ml": [{
|
|
2079
|
-
"scroll-ml":
|
|
2079
|
+
"scroll-ml": y()
|
|
2080
2080
|
}],
|
|
2081
2081
|
/**
|
|
2082
2082
|
* Scroll Padding
|
|
2083
2083
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
2084
2084
|
*/
|
|
2085
2085
|
"scroll-p": [{
|
|
2086
|
-
"scroll-p":
|
|
2086
|
+
"scroll-p": y()
|
|
2087
2087
|
}],
|
|
2088
2088
|
/**
|
|
2089
2089
|
* Scroll Padding X
|
|
2090
2090
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
2091
2091
|
*/
|
|
2092
2092
|
"scroll-px": [{
|
|
2093
|
-
"scroll-px":
|
|
2093
|
+
"scroll-px": y()
|
|
2094
2094
|
}],
|
|
2095
2095
|
/**
|
|
2096
2096
|
* Scroll Padding Y
|
|
2097
2097
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
2098
2098
|
*/
|
|
2099
2099
|
"scroll-py": [{
|
|
2100
|
-
"scroll-py":
|
|
2100
|
+
"scroll-py": y()
|
|
2101
2101
|
}],
|
|
2102
2102
|
/**
|
|
2103
2103
|
* Scroll Padding Start
|
|
2104
2104
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
2105
2105
|
*/
|
|
2106
2106
|
"scroll-ps": [{
|
|
2107
|
-
"scroll-ps":
|
|
2107
|
+
"scroll-ps": y()
|
|
2108
2108
|
}],
|
|
2109
2109
|
/**
|
|
2110
2110
|
* Scroll Padding End
|
|
2111
2111
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
2112
2112
|
*/
|
|
2113
2113
|
"scroll-pe": [{
|
|
2114
|
-
"scroll-pe":
|
|
2114
|
+
"scroll-pe": y()
|
|
2115
2115
|
}],
|
|
2116
2116
|
/**
|
|
2117
2117
|
* Scroll Padding Top
|
|
2118
2118
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
2119
2119
|
*/
|
|
2120
2120
|
"scroll-pt": [{
|
|
2121
|
-
"scroll-pt":
|
|
2121
|
+
"scroll-pt": y()
|
|
2122
2122
|
}],
|
|
2123
2123
|
/**
|
|
2124
2124
|
* Scroll Padding Right
|
|
2125
2125
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
2126
2126
|
*/
|
|
2127
2127
|
"scroll-pr": [{
|
|
2128
|
-
"scroll-pr":
|
|
2128
|
+
"scroll-pr": y()
|
|
2129
2129
|
}],
|
|
2130
2130
|
/**
|
|
2131
2131
|
* Scroll Padding Bottom
|
|
2132
2132
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
2133
2133
|
*/
|
|
2134
2134
|
"scroll-pb": [{
|
|
2135
|
-
"scroll-pb":
|
|
2135
|
+
"scroll-pb": y()
|
|
2136
2136
|
}],
|
|
2137
2137
|
/**
|
|
2138
2138
|
* Scroll Padding Left
|
|
2139
2139
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
2140
2140
|
*/
|
|
2141
2141
|
"scroll-pl": [{
|
|
2142
|
-
"scroll-pl":
|
|
2142
|
+
"scroll-pl": y()
|
|
2143
2143
|
}],
|
|
2144
2144
|
/**
|
|
2145
2145
|
* Scroll Snap Align
|
|
@@ -2222,7 +2222,7 @@ const C = (r) => {
|
|
|
2222
2222
|
* @see https://tailwindcss.com/docs/stroke-width
|
|
2223
2223
|
*/
|
|
2224
2224
|
"stroke-w": [{
|
|
2225
|
-
stroke: [
|
|
2225
|
+
stroke: [G, V, de]
|
|
2226
2226
|
}],
|
|
2227
2227
|
/**
|
|
2228
2228
|
* Stroke
|
|
@@ -2683,13 +2683,13 @@ async function nt(r, n, t, o) {
|
|
|
2683
2683
|
const i = new De(o, "confirmed"), l = (E = t == null ? void 0 : t.extra) == null ? void 0 : E.feePayer;
|
|
2684
2684
|
if (typeof l != "string" || !l)
|
|
2685
2685
|
throw new Error("Missing facilitator feePayer in payment requirements (extra.feePayer).");
|
|
2686
|
-
const u = new
|
|
2686
|
+
const u = new H(l), c = ((I = r == null ? void 0 : r.publicKey) == null ? void 0 : I.toString()) || (r == null ? void 0 : r.address);
|
|
2687
2687
|
if (!c)
|
|
2688
2688
|
throw new Error("Missing connected Solana wallet address or publicKey");
|
|
2689
|
-
const e = new
|
|
2689
|
+
const e = new H(c);
|
|
2690
2690
|
if (!(t != null && t.payTo))
|
|
2691
2691
|
throw new Error("Missing payTo in payment requirements");
|
|
2692
|
-
const p = new
|
|
2692
|
+
const p = new H(t.payTo), h = [];
|
|
2693
2693
|
if (h.push(
|
|
2694
2694
|
Ce.setComputeUnitLimit({
|
|
2695
2695
|
units: 4e4
|
|
@@ -2702,7 +2702,7 @@ async function nt(r, n, t, o) {
|
|
|
2702
2702
|
})
|
|
2703
2703
|
), !t.asset)
|
|
2704
2704
|
throw new Error("Missing token mint for SPL transfer");
|
|
2705
|
-
const x = new
|
|
2705
|
+
const x = new H(t.asset), g = await i.getAccountInfo(x, "confirmed"), s = ((L = g == null ? void 0 : g.owner) == null ? void 0 : L.toBase58()) === Fe.toBase58() ? Fe : sr, A = await ir(i, x, void 0, s), k = await ue(
|
|
2706
2706
|
x,
|
|
2707
2707
|
e,
|
|
2708
2708
|
!1,
|
|
@@ -2718,9 +2718,9 @@ async function nt(r, n, t, o) {
|
|
|
2718
2718
|
`User does not have an Associated Token Account for ${t.asset}. Please create one first or ensure you have the required token.`
|
|
2719
2719
|
);
|
|
2720
2720
|
if (!await i.getAccountInfo(m, "confirmed")) {
|
|
2721
|
-
const
|
|
2721
|
+
const R = new H(
|
|
2722
2722
|
"ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL"
|
|
2723
|
-
),
|
|
2723
|
+
), y = new er({
|
|
2724
2724
|
keys: [
|
|
2725
2725
|
{ pubkey: u, isSigner: !0, isWritable: !0 },
|
|
2726
2726
|
{ pubkey: m, isSigner: !1, isWritable: !0 },
|
|
@@ -2729,11 +2729,11 @@ async function nt(r, n, t, o) {
|
|
|
2729
2729
|
{ pubkey: rr.programId, isSigner: !1, isWritable: !1 },
|
|
2730
2730
|
{ pubkey: s, isSigner: !1, isWritable: !1 }
|
|
2731
2731
|
],
|
|
2732
|
-
programId:
|
|
2732
|
+
programId: R,
|
|
2733
2733
|
data: Buffer.from([0])
|
|
2734
2734
|
// CreateATA discriminator
|
|
2735
2735
|
});
|
|
2736
|
-
h.push(
|
|
2736
|
+
h.push(y);
|
|
2737
2737
|
}
|
|
2738
2738
|
const T = BigInt(t.maxAmountRequired);
|
|
2739
2739
|
h.push(
|
|
@@ -2748,16 +2748,16 @@ async function nt(r, n, t, o) {
|
|
|
2748
2748
|
s
|
|
2749
2749
|
)
|
|
2750
2750
|
);
|
|
2751
|
-
const { blockhash:
|
|
2751
|
+
const { blockhash: v } = await i.getLatestBlockhash("confirmed"), f = new tr({
|
|
2752
2752
|
payerKey: u,
|
|
2753
|
-
recentBlockhash:
|
|
2753
|
+
recentBlockhash: v,
|
|
2754
2754
|
instructions: h
|
|
2755
2755
|
}).compileToV0Message(), z = new nr(f);
|
|
2756
2756
|
if (typeof (r == null ? void 0 : r.signTransaction) != "function")
|
|
2757
2757
|
throw new Error("Connected wallet does not support signTransaction");
|
|
2758
|
-
const
|
|
2758
|
+
const D = await r.signTransaction(z);
|
|
2759
2759
|
return rt(
|
|
2760
|
-
|
|
2760
|
+
D,
|
|
2761
2761
|
t,
|
|
2762
2762
|
n
|
|
2763
2763
|
);
|
|
@@ -2815,7 +2815,7 @@ function st(r) {
|
|
|
2815
2815
|
return new ot(r);
|
|
2816
2816
|
}
|
|
2817
2817
|
function it(r) {
|
|
2818
|
-
const [n, t] =
|
|
2818
|
+
const [n, t] = J("idle"), [o, i] = J(null), [l, u] = J(null), [c, e] = J(!1), p = ye(() => {
|
|
2819
2819
|
t("idle"), i(null), u(null), e(!1);
|
|
2820
2820
|
}, []);
|
|
2821
2821
|
return {
|
|
@@ -2856,19 +2856,19 @@ function it(r) {
|
|
|
2856
2856
|
});
|
|
2857
2857
|
if (!T.ok)
|
|
2858
2858
|
throw new Error(`Payment request failed: ${T.statusText}`);
|
|
2859
|
-
let
|
|
2859
|
+
let v;
|
|
2860
2860
|
const f = T.headers.get("content-type");
|
|
2861
|
-
f && f.includes("application/json") ?
|
|
2861
|
+
f && f.includes("application/json") ? v = await T.json() : v = { content: await T.text() }, console.log("Payment successful:", v);
|
|
2862
2862
|
const z = T.headers.get("X-PAYMENT-RESPONSE");
|
|
2863
|
-
let
|
|
2863
|
+
let D = `tx_${Date.now()}`;
|
|
2864
2864
|
if (z)
|
|
2865
2865
|
try {
|
|
2866
2866
|
const E = JSON.parse(atob(z));
|
|
2867
|
-
|
|
2867
|
+
D = E.transactionId || E.signature || D, console.log("Payment details:", E);
|
|
2868
2868
|
} catch (E) {
|
|
2869
2869
|
console.warn("Could not decode payment response:", E);
|
|
2870
2870
|
}
|
|
2871
|
-
return u(
|
|
2871
|
+
return u(D), t("success"), e(!1), D;
|
|
2872
2872
|
} catch (A) {
|
|
2873
2873
|
const k = A instanceof Error ? A : new Error("Payment failed");
|
|
2874
2874
|
return i(k), t("error"), e(!1), null;
|
|
@@ -2908,10 +2908,10 @@ const je = ({
|
|
|
2908
2908
|
children: T
|
|
2909
2909
|
}) => {
|
|
2910
2910
|
var he, we, me;
|
|
2911
|
-
const
|
|
2912
|
-
publicKey:
|
|
2913
|
-
signTransaction:
|
|
2914
|
-
}, [t,
|
|
2911
|
+
const v = Ye(), f = ce(() => t || {
|
|
2912
|
+
publicKey: v.publicKey ? { toString: () => v.publicKey.toString() } : void 0,
|
|
2913
|
+
signTransaction: v.signTransaction
|
|
2914
|
+
}, [t, v.publicKey, v.signTransaction]), [z, D] = J(!1), [E, I] = J("0.00"), L = He(null), R = o === "solana" ? "Mainnet" : "Devnet", { pay: y, isLoading: W, status: _, error: P, transactionId: U, reset: te } = it({
|
|
2915
2915
|
wallet: f,
|
|
2916
2916
|
network: o,
|
|
2917
2917
|
rpcUrl: i,
|
|
@@ -2919,26 +2919,34 @@ const je = ({
|
|
|
2919
2919
|
treasuryAddress: u,
|
|
2920
2920
|
facilitatorUrl: c,
|
|
2921
2921
|
maxPaymentAmount: A
|
|
2922
|
-
}),
|
|
2923
|
-
x ? x() : !t &&
|
|
2924
|
-
},
|
|
2922
|
+
}), q = () => {
|
|
2923
|
+
x ? x() : !t && v.disconnect && v.disconnect();
|
|
2924
|
+
}, O = t ? !!(t.publicKey || t.address) : !!(v.connected || v.publicKey);
|
|
2925
2925
|
ne(() => (document.body.className = document.body.className.replace(/wallet-modal-theme-\w+/g, "").replace(/\s+/g, " ").trim(), e && (document.body.className += ` wallet-modal-theme-${e}`), () => {
|
|
2926
2926
|
document.body.className = document.body.className.replace(/wallet-modal-theme-\w+/g, "").replace(/\s+/g, " ").trim();
|
|
2927
2927
|
}), [e]), ne(() => {
|
|
2928
|
-
var
|
|
2929
|
-
const S = ((
|
|
2930
|
-
S &&
|
|
2931
|
-
}, [
|
|
2932
|
-
|
|
2933
|
-
|
|
2928
|
+
var $, X;
|
|
2929
|
+
const S = (($ = v.publicKey) == null ? void 0 : $.toString()) || ((X = t == null ? void 0 : t.publicKey) == null ? void 0 : X.toString()) || (t == null ? void 0 : t.address);
|
|
2930
|
+
S && v.connected && (console.log("Wallet connected:", S), M == null || M(S), ur(S, o, i).then(I)), !v.connected && !t && I("0.00");
|
|
2931
|
+
}, [
|
|
2932
|
+
v.publicKey,
|
|
2933
|
+
v.connected,
|
|
2934
|
+
v.connecting,
|
|
2935
|
+
t,
|
|
2936
|
+
o,
|
|
2937
|
+
i,
|
|
2938
|
+
M
|
|
2939
|
+
]), ne(() => {
|
|
2940
|
+
_ === "success" && U && (D(!0), m == null || m(U));
|
|
2941
|
+
}, [_, U, m]), ne(() => {
|
|
2934
2942
|
P && (N == null || N(P));
|
|
2935
2943
|
}, [P, N]);
|
|
2936
|
-
const
|
|
2937
|
-
k == null || k(), await
|
|
2944
|
+
const Q = async () => {
|
|
2945
|
+
k == null || k(), await y(r, n);
|
|
2938
2946
|
};
|
|
2939
2947
|
if (z)
|
|
2940
2948
|
return /* @__PURE__ */ a(le, { children: T });
|
|
2941
|
-
const
|
|
2949
|
+
const j = P && (e === "dark" || e === "solana-dark" || e === "light" || e === "solana-light" || e === "seeker" || e === "seeker-2"), B = (() => {
|
|
2942
2950
|
switch (e) {
|
|
2943
2951
|
case "solana-dark":
|
|
2944
2952
|
return {
|
|
@@ -3042,8 +3050,8 @@ const je = ({
|
|
|
3042
3050
|
};
|
|
3043
3051
|
}
|
|
3044
3052
|
})();
|
|
3045
|
-
if (!
|
|
3046
|
-
const
|
|
3053
|
+
if (!O) {
|
|
3054
|
+
const $ = (() => {
|
|
3047
3055
|
switch (e) {
|
|
3048
3056
|
case "solana-dark":
|
|
3049
3057
|
return {
|
|
@@ -3124,7 +3132,7 @@ const je = ({
|
|
|
3124
3132
|
{
|
|
3125
3133
|
className: d(
|
|
3126
3134
|
"flex items-center justify-center min-h-screen p-4",
|
|
3127
|
-
|
|
3135
|
+
$.container,
|
|
3128
3136
|
g == null ? void 0 : g.container
|
|
3129
3137
|
),
|
|
3130
3138
|
style: e === "dark" ? {
|
|
@@ -3145,7 +3153,7 @@ const je = ({
|
|
|
3145
3153
|
{
|
|
3146
3154
|
className: d(
|
|
3147
3155
|
"w-full max-w-lg shadow-2xl border-0",
|
|
3148
|
-
|
|
3156
|
+
$.card,
|
|
3149
3157
|
g == null ? void 0 : g.card
|
|
3150
3158
|
),
|
|
3151
3159
|
style: e === "seeker" ? { backgroundColor: "#171719", ...s == null ? void 0 : s.card } : e === "seeker-2" ? {
|
|
@@ -3230,7 +3238,7 @@ const je = ({
|
|
|
3230
3238
|
/* @__PURE__ */ b(
|
|
3231
3239
|
"div",
|
|
3232
3240
|
{
|
|
3233
|
-
className: d("p-6",
|
|
3241
|
+
className: d("p-6", $.paymentDetails),
|
|
3234
3242
|
style: e === "seeker" || e === "seeker-2" ? { backgroundColor: "rgba(0, 0, 0, 0.12)" } : e === "dark" || e === "solana-dark" ? { boxShadow: "0px 0px 16px 4px #000000 inset" } : void 0,
|
|
3235
3243
|
children: [
|
|
3236
3244
|
/* @__PURE__ */ b("div", { className: "flex items-center justify-between mb-4", children: [
|
|
@@ -3343,10 +3351,23 @@ const je = ({
|
|
|
3343
3351
|
]
|
|
3344
3352
|
}
|
|
3345
3353
|
),
|
|
3346
|
-
/* @__PURE__ */ a(
|
|
3354
|
+
/* @__PURE__ */ a(
|
|
3355
|
+
"span",
|
|
3356
|
+
{
|
|
3357
|
+
className: d("text-sm", $.securityMessage),
|
|
3358
|
+
children: "Secure payment powered by Solana"
|
|
3359
|
+
}
|
|
3360
|
+
)
|
|
3347
3361
|
] }),
|
|
3348
3362
|
/* @__PURE__ */ b("div", { className: "relative", children: [
|
|
3349
|
-
/* @__PURE__ */ a(
|
|
3363
|
+
/* @__PURE__ */ a(
|
|
3364
|
+
"div",
|
|
3365
|
+
{
|
|
3366
|
+
ref: L,
|
|
3367
|
+
className: "absolute opacity-0 pointer-events-none -z-10",
|
|
3368
|
+
children: /* @__PURE__ */ a(qe, {})
|
|
3369
|
+
}
|
|
3370
|
+
),
|
|
3350
3371
|
/* @__PURE__ */ a(
|
|
3351
3372
|
ae,
|
|
3352
3373
|
{
|
|
@@ -3355,10 +3376,12 @@ const je = ({
|
|
|
3355
3376
|
customText: "Connect Wallet",
|
|
3356
3377
|
onClick: () => {
|
|
3357
3378
|
var ke;
|
|
3358
|
-
const
|
|
3359
|
-
|
|
3379
|
+
const X = (ke = L.current) == null ? void 0 : ke.querySelector(
|
|
3380
|
+
"button"
|
|
3381
|
+
);
|
|
3382
|
+
X == null || X.click();
|
|
3360
3383
|
},
|
|
3361
|
-
className: d("w-full h-12",
|
|
3384
|
+
className: d("w-full h-12", $.button),
|
|
3362
3385
|
style: e === "dark" ? {
|
|
3363
3386
|
backgroundColor: "#FFFFFF1F",
|
|
3364
3387
|
boxShadow: "0 1px 0 0 rgba(255, 255, 255, 0.3) inset"
|
|
@@ -3369,7 +3392,7 @@ const je = ({
|
|
|
3369
3392
|
}
|
|
3370
3393
|
)
|
|
3371
3394
|
] }),
|
|
3372
|
-
/* @__PURE__ */ a("div", { className: "text-center", children: /* @__PURE__ */ b("p", { className: d("text-sm",
|
|
3395
|
+
/* @__PURE__ */ a("div", { className: "text-center", children: /* @__PURE__ */ b("p", { className: d("text-sm", $.helperText), children: [
|
|
3373
3396
|
"Don't have USDC?",
|
|
3374
3397
|
" ",
|
|
3375
3398
|
/* @__PURE__ */ b("a", { href: "#", className: "font-medium text-[#4ADE80] underline", children: [
|
|
@@ -3404,7 +3427,7 @@ const je = ({
|
|
|
3404
3427
|
{
|
|
3405
3428
|
className: d(
|
|
3406
3429
|
"flex items-center justify-center min-h-screen p-4",
|
|
3407
|
-
|
|
3430
|
+
B.container,
|
|
3408
3431
|
g == null ? void 0 : g.container
|
|
3409
3432
|
),
|
|
3410
3433
|
style: e === "dark" ? {
|
|
@@ -3425,7 +3448,7 @@ const je = ({
|
|
|
3425
3448
|
{
|
|
3426
3449
|
className: d(
|
|
3427
3450
|
"w-full max-w-lg shadow-2xl border-0",
|
|
3428
|
-
|
|
3451
|
+
B.card,
|
|
3429
3452
|
g == null ? void 0 : g.card
|
|
3430
3453
|
),
|
|
3431
3454
|
style: e === "seeker" ? {
|
|
@@ -3453,7 +3476,7 @@ const je = ({
|
|
|
3453
3476
|
{
|
|
3454
3477
|
className: d(
|
|
3455
3478
|
"text-l fw-bold pb-1",
|
|
3456
|
-
|
|
3479
|
+
B.title,
|
|
3457
3480
|
g == null ? void 0 : g.text
|
|
3458
3481
|
),
|
|
3459
3482
|
style: s == null ? void 0 : s.text,
|
|
@@ -3482,7 +3505,7 @@ const je = ({
|
|
|
3482
3505
|
style: e === "seeker" ? { borderBottom: "1px solid #FFFFFF1F" } : e === "seeker-2" ? { borderBottom: "1px solid #FFFFFF1F" } : void 0
|
|
3483
3506
|
}
|
|
3484
3507
|
),
|
|
3485
|
-
!
|
|
3508
|
+
!j && /* @__PURE__ */ b("div", { className: "text-center", children: [
|
|
3486
3509
|
/* @__PURE__ */ a(
|
|
3487
3510
|
"h2",
|
|
3488
3511
|
{
|
|
@@ -3505,7 +3528,7 @@ const je = ({
|
|
|
3505
3528
|
)
|
|
3506
3529
|
] })
|
|
3507
3530
|
] }),
|
|
3508
|
-
/* @__PURE__ */ a(se, { className: "space-y-6", children:
|
|
3531
|
+
/* @__PURE__ */ a(se, { className: "space-y-6", children: j ? /* @__PURE__ */ b(le, { children: [
|
|
3509
3532
|
/* @__PURE__ */ a("div", { className: "flex justify-center mb-4", children: /* @__PURE__ */ a("div", { className: "w-16 h-16 rounded-full bg-red-500 flex items-center justify-center", children: /* @__PURE__ */ a(
|
|
3510
3533
|
"svg",
|
|
3511
3534
|
{
|
|
@@ -3524,115 +3547,208 @@ const je = ({
|
|
|
3524
3547
|
)
|
|
3525
3548
|
}
|
|
3526
3549
|
) }) }),
|
|
3527
|
-
/* @__PURE__ */ a("div", { className: "text-center mb-2", children: /* @__PURE__ */ a(
|
|
3528
|
-
"
|
|
3529
|
-
|
|
3530
|
-
|
|
3531
|
-
|
|
3532
|
-
"text-center text-sm mb-6",
|
|
3533
|
-
e === "dark" || e === "solana-dark" || e === "seeker" || e === "seeker-2" ? "text-gray-400" : "text-slate-600"
|
|
3534
|
-
), children: (P == null ? void 0 : P.message) || "It looks like your wallet doesn't have enough funds or the transaction was declined. Please review the details and try again." }),
|
|
3535
|
-
/* @__PURE__ */ a("div", { className: d(
|
|
3536
|
-
"rounded-lg p-6",
|
|
3537
|
-
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"
|
|
3538
|
-
), children: /* @__PURE__ */ b("div", { className: "space-y-3", children: [
|
|
3539
|
-
/* @__PURE__ */ b("div", { className: "flex items-center justify-between", children: [
|
|
3540
|
-
/* @__PURE__ */ a("span", { className: d(
|
|
3541
|
-
"text-sm",
|
|
3542
|
-
e === "dark" || e === "solana-dark" || e === "seeker" || e === "seeker-2" ? "text-white" : "text-slate-900"
|
|
3543
|
-
), children: "Amount Paid" }),
|
|
3544
|
-
/* @__PURE__ */ b("span", { className: d(
|
|
3545
|
-
"text-sm font-semibold",
|
|
3546
|
-
e === "light" || e === "solana-light" ? "text-purple-600" : "text-green-500"
|
|
3547
|
-
), children: [
|
|
3548
|
-
"$",
|
|
3549
|
-
r.toFixed(2)
|
|
3550
|
-
] })
|
|
3551
|
-
] }),
|
|
3552
|
-
/* @__PURE__ */ b("div", { className: "flex items-center justify-between", children: [
|
|
3553
|
-
/* @__PURE__ */ a("span", { className: d(
|
|
3554
|
-
"text-sm",
|
|
3555
|
-
e === "dark" || e === "solana-dark" || e === "seeker" || e === "seeker-2" ? "text-white" : "text-slate-900"
|
|
3556
|
-
), children: "Wallet" }),
|
|
3557
|
-
/* @__PURE__ */ a("span", { className: d(
|
|
3558
|
-
"text-sm",
|
|
3559
|
-
e === "dark" || e === "solana-dark" || e === "seeker" || e === "seeker-2" ? "text-white" : "text-slate-900"
|
|
3560
|
-
), children: (he = f == null ? void 0 : f.publicKey) != null && he.toString() ? `${f.publicKey.toString().slice(0, 6)}...${f.publicKey.toString().slice(-4)}` : f != null && f.address ? `${f.address.slice(0, 6)}...${f.address.slice(-4)}` : "Not connected" })
|
|
3561
|
-
] }),
|
|
3562
|
-
/* @__PURE__ */ b("div", { className: "flex items-center justify-between", children: [
|
|
3563
|
-
/* @__PURE__ */ a("span", { className: d(
|
|
3564
|
-
"text-sm",
|
|
3565
|
-
e === "dark" || e === "solana-dark" || e === "seeker" || e === "seeker-2" ? "text-white" : "text-slate-900"
|
|
3566
|
-
), children: "Available Balance" }),
|
|
3567
|
-
/* @__PURE__ */ b("span", { className: d(
|
|
3568
|
-
"text-sm",
|
|
3569
|
-
e === "dark" || e === "solana-dark" || e === "seeker" || e === "seeker-2" ? "text-white" : "text-slate-900"
|
|
3570
|
-
), children: [
|
|
3571
|
-
"$",
|
|
3572
|
-
E
|
|
3573
|
-
] })
|
|
3574
|
-
] }),
|
|
3575
|
-
/* @__PURE__ */ b("div", { className: "flex items-center justify-between", children: [
|
|
3576
|
-
/* @__PURE__ */ a("span", { className: d(
|
|
3577
|
-
"text-sm",
|
|
3578
|
-
e === "dark" || e === "solana-dark" || e === "seeker" || e === "seeker-2" ? "text-white" : "text-slate-900"
|
|
3579
|
-
), children: "Currency" }),
|
|
3580
|
-
/* @__PURE__ */ a("span", { className: d(
|
|
3581
|
-
"text-sm",
|
|
3582
|
-
e === "dark" || e === "solana-dark" || e === "seeker" || e === "seeker-2" ? "text-white" : "text-slate-900"
|
|
3583
|
-
), children: "USDC" })
|
|
3584
|
-
] }),
|
|
3585
|
-
/* @__PURE__ */ b("div", { className: "flex items-center justify-between", children: [
|
|
3586
|
-
/* @__PURE__ */ a("span", { className: d(
|
|
3587
|
-
"text-sm",
|
|
3550
|
+
/* @__PURE__ */ a("div", { className: "text-center mb-2", children: /* @__PURE__ */ a(
|
|
3551
|
+
"h3",
|
|
3552
|
+
{
|
|
3553
|
+
className: d(
|
|
3554
|
+
"text-2xl font-semibold",
|
|
3588
3555
|
e === "dark" || e === "solana-dark" || e === "seeker" || e === "seeker-2" ? "text-white" : "text-slate-900"
|
|
3589
|
-
),
|
|
3590
|
-
|
|
3591
|
-
|
|
3592
|
-
|
|
3593
|
-
|
|
3594
|
-
|
|
3595
|
-
|
|
3556
|
+
),
|
|
3557
|
+
children: "Payment Failed"
|
|
3558
|
+
}
|
|
3559
|
+
) }),
|
|
3560
|
+
/* @__PURE__ */ a(
|
|
3561
|
+
"p",
|
|
3562
|
+
{
|
|
3563
|
+
className: d(
|
|
3564
|
+
"text-center text-sm mb-6",
|
|
3565
|
+
e === "dark" || e === "solana-dark" || e === "seeker" || e === "seeker-2" ? "text-gray-400" : "text-slate-600"
|
|
3566
|
+
),
|
|
3567
|
+
children: (P == null ? void 0 : P.message) || "It looks like your wallet doesn't have enough funds or the transaction was declined. Please review the details and try again."
|
|
3568
|
+
}
|
|
3569
|
+
),
|
|
3570
|
+
/* @__PURE__ */ a(
|
|
3571
|
+
"div",
|
|
3572
|
+
{
|
|
3573
|
+
className: d(
|
|
3574
|
+
"rounded-lg p-6",
|
|
3575
|
+
e === "dark" || e === "solana-dark" ? "bg-[#0000001F] border border-slate-600" : e === "seeker" || e === "seeker-2" ? "bg-[rgba(0,0,0,0.12)] border border-white/10" : "bg-slate-50 border border-slate-200"
|
|
3576
|
+
),
|
|
3577
|
+
children: /* @__PURE__ */ b("div", { className: "space-y-3", children: [
|
|
3578
|
+
/* @__PURE__ */ b("div", { className: "flex items-center justify-between", children: [
|
|
3579
|
+
/* @__PURE__ */ a(
|
|
3580
|
+
"span",
|
|
3581
|
+
{
|
|
3582
|
+
className: d(
|
|
3583
|
+
"text-sm",
|
|
3584
|
+
e === "dark" || e === "solana-dark" || e === "seeker" || e === "seeker-2" ? "text-white" : "text-slate-900"
|
|
3585
|
+
),
|
|
3586
|
+
children: "Amount Paid"
|
|
3587
|
+
}
|
|
3588
|
+
),
|
|
3589
|
+
/* @__PURE__ */ b(
|
|
3590
|
+
"span",
|
|
3591
|
+
{
|
|
3592
|
+
className: d(
|
|
3593
|
+
"text-sm font-semibold",
|
|
3594
|
+
e === "light" || e === "solana-light" ? "text-purple-600" : "text-green-500"
|
|
3595
|
+
),
|
|
3596
|
+
children: [
|
|
3597
|
+
"$",
|
|
3598
|
+
r.toFixed(2)
|
|
3599
|
+
]
|
|
3600
|
+
}
|
|
3601
|
+
)
|
|
3602
|
+
] }),
|
|
3603
|
+
/* @__PURE__ */ b("div", { className: "flex items-center justify-between", children: [
|
|
3604
|
+
/* @__PURE__ */ a(
|
|
3605
|
+
"span",
|
|
3606
|
+
{
|
|
3607
|
+
className: d(
|
|
3608
|
+
"text-sm",
|
|
3609
|
+
e === "dark" || e === "solana-dark" || e === "seeker" || e === "seeker-2" ? "text-white" : "text-slate-900"
|
|
3610
|
+
),
|
|
3611
|
+
children: "Wallet"
|
|
3612
|
+
}
|
|
3613
|
+
),
|
|
3614
|
+
/* @__PURE__ */ a(
|
|
3615
|
+
"span",
|
|
3616
|
+
{
|
|
3617
|
+
className: d(
|
|
3618
|
+
"text-sm",
|
|
3619
|
+
e === "dark" || e === "solana-dark" || e === "seeker" || e === "seeker-2" ? "text-white" : "text-slate-900"
|
|
3620
|
+
),
|
|
3621
|
+
children: (he = f == null ? void 0 : f.publicKey) != null && he.toString() ? `${f.publicKey.toString().slice(0, 6)}...${f.publicKey.toString().slice(-4)}` : f != null && f.address ? `${f.address.slice(
|
|
3622
|
+
0,
|
|
3623
|
+
6
|
|
3624
|
+
)}...${f.address.slice(-4)}` : "Not connected"
|
|
3625
|
+
}
|
|
3626
|
+
)
|
|
3627
|
+
] }),
|
|
3628
|
+
/* @__PURE__ */ b("div", { className: "flex items-center justify-between", children: [
|
|
3629
|
+
/* @__PURE__ */ a(
|
|
3630
|
+
"span",
|
|
3631
|
+
{
|
|
3632
|
+
className: d(
|
|
3633
|
+
"text-sm",
|
|
3634
|
+
e === "dark" || e === "solana-dark" || e === "seeker" || e === "seeker-2" ? "text-white" : "text-slate-900"
|
|
3635
|
+
),
|
|
3636
|
+
children: "Available Balance"
|
|
3637
|
+
}
|
|
3638
|
+
),
|
|
3639
|
+
/* @__PURE__ */ b(
|
|
3640
|
+
"span",
|
|
3641
|
+
{
|
|
3642
|
+
className: d(
|
|
3643
|
+
"text-sm",
|
|
3644
|
+
e === "dark" || e === "solana-dark" || e === "seeker" || e === "seeker-2" ? "text-white" : "text-slate-900"
|
|
3645
|
+
),
|
|
3646
|
+
children: [
|
|
3647
|
+
"$",
|
|
3648
|
+
E
|
|
3649
|
+
]
|
|
3650
|
+
}
|
|
3651
|
+
)
|
|
3652
|
+
] }),
|
|
3653
|
+
/* @__PURE__ */ b("div", { className: "flex items-center justify-between", children: [
|
|
3654
|
+
/* @__PURE__ */ a(
|
|
3655
|
+
"span",
|
|
3656
|
+
{
|
|
3657
|
+
className: d(
|
|
3658
|
+
"text-sm",
|
|
3659
|
+
e === "dark" || e === "solana-dark" || e === "seeker" || e === "seeker-2" ? "text-white" : "text-slate-900"
|
|
3660
|
+
),
|
|
3661
|
+
children: "Currency"
|
|
3662
|
+
}
|
|
3663
|
+
),
|
|
3664
|
+
/* @__PURE__ */ a(
|
|
3665
|
+
"span",
|
|
3666
|
+
{
|
|
3667
|
+
className: d(
|
|
3668
|
+
"text-sm",
|
|
3669
|
+
e === "dark" || e === "solana-dark" || e === "seeker" || e === "seeker-2" ? "text-white" : "text-slate-900"
|
|
3670
|
+
),
|
|
3671
|
+
children: "USDC"
|
|
3672
|
+
}
|
|
3673
|
+
)
|
|
3674
|
+
] }),
|
|
3675
|
+
/* @__PURE__ */ b("div", { className: "flex items-center justify-between", children: [
|
|
3676
|
+
/* @__PURE__ */ a(
|
|
3677
|
+
"span",
|
|
3678
|
+
{
|
|
3679
|
+
className: d(
|
|
3680
|
+
"text-sm",
|
|
3681
|
+
e === "dark" || e === "solana-dark" || e === "seeker" || e === "seeker-2" ? "text-white" : "text-slate-900"
|
|
3682
|
+
),
|
|
3683
|
+
children: "Network"
|
|
3684
|
+
}
|
|
3685
|
+
),
|
|
3686
|
+
/* @__PURE__ */ b("div", { className: "flex items-center space-x-2", children: [
|
|
3687
|
+
/* @__PURE__ */ a("div", { className: "w-2 h-2 rounded-full bg-green-500" }),
|
|
3688
|
+
/* @__PURE__ */ a(
|
|
3689
|
+
"span",
|
|
3690
|
+
{
|
|
3691
|
+
className: d(
|
|
3692
|
+
"text-sm",
|
|
3693
|
+
e === "dark" || e === "solana-dark" || e === "seeker" || e === "seeker-2" ? "text-white" : "text-slate-900"
|
|
3694
|
+
),
|
|
3695
|
+
children: R
|
|
3696
|
+
}
|
|
3697
|
+
)
|
|
3698
|
+
] })
|
|
3699
|
+
] })
|
|
3596
3700
|
] })
|
|
3597
|
-
|
|
3598
|
-
|
|
3599
|
-
/* @__PURE__ */ b(
|
|
3600
|
-
"
|
|
3601
|
-
|
|
3602
|
-
|
|
3603
|
-
|
|
3604
|
-
|
|
3605
|
-
|
|
3606
|
-
|
|
3607
|
-
|
|
3608
|
-
|
|
3609
|
-
viewBox: "0 0 24 24",
|
|
3610
|
-
strokeWidth: "2",
|
|
3611
|
-
children: /* @__PURE__ */ a(
|
|
3612
|
-
"path",
|
|
3701
|
+
}
|
|
3702
|
+
),
|
|
3703
|
+
/* @__PURE__ */ b(
|
|
3704
|
+
"div",
|
|
3705
|
+
{
|
|
3706
|
+
className: d(
|
|
3707
|
+
"rounded-lg p-4 flex items-start space-x-3",
|
|
3708
|
+
e === "dark" || e === "solana-dark" || e === "seeker" || e === "seeker-2" ? "bg-orange-900/50 border border-orange-700" : "bg-orange-50 border border-orange-200"
|
|
3709
|
+
),
|
|
3710
|
+
children: [
|
|
3711
|
+
/* @__PURE__ */ a("div", { className: "flex-shrink-0", children: /* @__PURE__ */ a("div", { className: "w-6 h-6 rounded-full bg-orange-500 flex items-center justify-center", children: /* @__PURE__ */ a(
|
|
3712
|
+
"svg",
|
|
3613
3713
|
{
|
|
3614
|
-
|
|
3615
|
-
|
|
3616
|
-
|
|
3714
|
+
className: "w-4 h-4 text-white",
|
|
3715
|
+
fill: "none",
|
|
3716
|
+
stroke: "currentColor",
|
|
3717
|
+
viewBox: "0 0 24 24",
|
|
3718
|
+
strokeWidth: "2",
|
|
3719
|
+
children: /* @__PURE__ */ a(
|
|
3720
|
+
"path",
|
|
3721
|
+
{
|
|
3722
|
+
strokeLinecap: "round",
|
|
3723
|
+
strokeLinejoin: "round",
|
|
3724
|
+
d: "M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-3L13.732 4c-.77-1.333-2.694-1.333-3.464 0L3.34 16c-.77 1.333.192 3 1.732 3z"
|
|
3725
|
+
}
|
|
3726
|
+
)
|
|
3727
|
+
}
|
|
3728
|
+
) }) }),
|
|
3729
|
+
/* @__PURE__ */ a(
|
|
3730
|
+
"p",
|
|
3731
|
+
{
|
|
3732
|
+
className: d(
|
|
3733
|
+
"text-sm",
|
|
3734
|
+
e === "dark" || e === "solana-dark" || e === "seeker" || e === "seeker-2" ? "text-white" : "text-orange-800"
|
|
3735
|
+
),
|
|
3736
|
+
children: "Make sure your Solana wallet has enough USDC to cover the amount before retrying the transaction."
|
|
3617
3737
|
}
|
|
3618
3738
|
)
|
|
3619
|
-
|
|
3620
|
-
|
|
3621
|
-
|
|
3622
|
-
"text-sm",
|
|
3623
|
-
e === "dark" || e === "solana-dark" || e === "seeker" || e === "seeker-2" ? "text-white" : "text-orange-800"
|
|
3624
|
-
), children: "Make sure your Solana wallet has enough USDC to cover the amount before retrying the transaction." })
|
|
3625
|
-
] }),
|
|
3739
|
+
]
|
|
3740
|
+
}
|
|
3741
|
+
),
|
|
3626
3742
|
/* @__PURE__ */ a(
|
|
3627
3743
|
ae,
|
|
3628
3744
|
{
|
|
3629
3745
|
amount: r,
|
|
3630
3746
|
description: n,
|
|
3631
3747
|
onClick: () => {
|
|
3632
|
-
|
|
3748
|
+
te(), Q();
|
|
3633
3749
|
},
|
|
3634
|
-
loading:
|
|
3635
|
-
disabled:
|
|
3750
|
+
loading: W,
|
|
3751
|
+
disabled: W || !(f != null && f.publicKey),
|
|
3636
3752
|
className: d(
|
|
3637
3753
|
"w-full h-12",
|
|
3638
3754
|
e === "dark" || e === "solana-dark" ? e === "dark" ? "bg-[#FFFFFF1F] rounded-full" : "bg-solana-gradient rounded-full" : e === "light" ? "bg-black hover:bg-gray-800 text-white font-light rounded-full" : e === "solana-light" ? "bg-solana-gradient hover:opacity-90 text-white font-light rounded-full" : e === "seeker" || e === "seeker-2" ? "bg-gradient-to-r from-emerald-500 to-teal-500 hover:from-emerald-600 hover:to-teal-600 text-white rounded-full" : "bg-solana-gradient rounded-full",
|
|
@@ -3654,54 +3770,69 @@ const je = ({
|
|
|
3654
3770
|
customText: "Try Again"
|
|
3655
3771
|
}
|
|
3656
3772
|
),
|
|
3657
|
-
/* @__PURE__ */ a("div", { className: "text-center", children: /* @__PURE__ */ b(
|
|
3658
|
-
"
|
|
3659
|
-
|
|
3660
|
-
|
|
3661
|
-
|
|
3662
|
-
|
|
3663
|
-
|
|
3664
|
-
|
|
3665
|
-
|
|
3666
|
-
|
|
3667
|
-
|
|
3668
|
-
|
|
3669
|
-
|
|
3670
|
-
|
|
3671
|
-
|
|
3672
|
-
|
|
3773
|
+
/* @__PURE__ */ a("div", { className: "text-center", children: /* @__PURE__ */ b(
|
|
3774
|
+
"p",
|
|
3775
|
+
{
|
|
3776
|
+
className: d(
|
|
3777
|
+
"text-sm",
|
|
3778
|
+
e === "dark" || e === "solana-dark" || e === "seeker" || e === "seeker-2" ? "text-white" : "text-slate-900"
|
|
3779
|
+
),
|
|
3780
|
+
children: [
|
|
3781
|
+
/* @__PURE__ */ b(
|
|
3782
|
+
"span",
|
|
3783
|
+
{
|
|
3784
|
+
className: d(
|
|
3785
|
+
e === "dark" || e === "solana-dark" || e === "seeker" || e === "seeker-2" ? "text-gray-400" : "text-slate-600"
|
|
3786
|
+
),
|
|
3787
|
+
children: [
|
|
3788
|
+
"Don't have USDC?",
|
|
3789
|
+
" "
|
|
3790
|
+
]
|
|
3791
|
+
}
|
|
3673
3792
|
),
|
|
3674
|
-
|
|
3675
|
-
"
|
|
3676
|
-
|
|
3677
|
-
"
|
|
3678
|
-
|
|
3679
|
-
|
|
3680
|
-
|
|
3681
|
-
|
|
3682
|
-
|
|
3683
|
-
|
|
3684
|
-
|
|
3685
|
-
|
|
3686
|
-
|
|
3793
|
+
/* @__PURE__ */ b(
|
|
3794
|
+
"a",
|
|
3795
|
+
{
|
|
3796
|
+
href: "https://www.coinbase.com/how-to-buy/usdc",
|
|
3797
|
+
target: "_blank",
|
|
3798
|
+
rel: "noopener noreferrer",
|
|
3799
|
+
className: d(
|
|
3800
|
+
"font-medium hover:opacity-80",
|
|
3801
|
+
e === "light" || e === "solana-light" ? "text-purple-600" : "text-green-400 hover:text-green-300"
|
|
3802
|
+
),
|
|
3803
|
+
children: [
|
|
3804
|
+
"Get it here",
|
|
3805
|
+
/* @__PURE__ */ a(
|
|
3806
|
+
"svg",
|
|
3687
3807
|
{
|
|
3688
|
-
|
|
3689
|
-
|
|
3690
|
-
|
|
3808
|
+
className: d(
|
|
3809
|
+
"inline w-3 h-3 ml-1",
|
|
3810
|
+
e === "light" || e === "solana-light" ? "text-purple-600" : "text-green-400"
|
|
3811
|
+
),
|
|
3812
|
+
fill: "currentColor",
|
|
3813
|
+
viewBox: "0 0 20 20",
|
|
3814
|
+
children: /* @__PURE__ */ a(
|
|
3815
|
+
"path",
|
|
3816
|
+
{
|
|
3817
|
+
fillRule: "evenodd",
|
|
3818
|
+
d: "M10.293 3.293a1 1 0 011.414 0l6 6a1 1 0 010 1.414l-6 6a1 1 0 01-1.414-1.414L14.586 11H3a1 1 0 110-2h11.586l-4.293-4.293a1 1 0 010-1.414z",
|
|
3819
|
+
clipRule: "evenodd"
|
|
3820
|
+
}
|
|
3821
|
+
)
|
|
3691
3822
|
}
|
|
3692
3823
|
)
|
|
3693
|
-
|
|
3694
|
-
|
|
3695
|
-
|
|
3696
|
-
|
|
3697
|
-
|
|
3698
|
-
|
|
3824
|
+
]
|
|
3825
|
+
}
|
|
3826
|
+
)
|
|
3827
|
+
]
|
|
3828
|
+
}
|
|
3829
|
+
) })
|
|
3699
3830
|
] }) : /* @__PURE__ */ b(le, { children: [
|
|
3700
3831
|
/* @__PURE__ */ a(
|
|
3701
3832
|
We,
|
|
3702
3833
|
{
|
|
3703
3834
|
wallet: f,
|
|
3704
|
-
onDisconnect:
|
|
3835
|
+
onDisconnect: q,
|
|
3705
3836
|
theme: e,
|
|
3706
3837
|
className: d(
|
|
3707
3838
|
"mb-4",
|
|
@@ -3713,7 +3844,7 @@ const je = ({
|
|
|
3713
3844
|
h && (e === "seeker" || e === "seeker-2" ? /* @__PURE__ */ b(
|
|
3714
3845
|
"div",
|
|
3715
3846
|
{
|
|
3716
|
-
className: d("p-6",
|
|
3847
|
+
className: d("p-6", B.paymentDetails),
|
|
3717
3848
|
style: {
|
|
3718
3849
|
backgroundColor: "rgba(0, 0, 0, 0.12)"
|
|
3719
3850
|
},
|
|
@@ -3739,7 +3870,10 @@ const je = ({
|
|
|
3739
3870
|
/* @__PURE__ */ b("div", { className: "space-y-3", children: [
|
|
3740
3871
|
/* @__PURE__ */ b("div", { className: "flex items-center justify-between", children: [
|
|
3741
3872
|
/* @__PURE__ */ a("span", { className: "text-sm text-white", children: "Wallet" }),
|
|
3742
|
-
/* @__PURE__ */ a("div", { className: "text-sm text-white", children: (we = f == null ? void 0 : f.publicKey) != null && we.toString() ? `${f.publicKey.toString().slice(0, 6)}...${f.publicKey.toString().slice(-4)}` : f != null && f.address ? `${f.address.slice(
|
|
3873
|
+
/* @__PURE__ */ a("div", { className: "text-sm text-white", children: (we = f == null ? void 0 : f.publicKey) != null && we.toString() ? `${f.publicKey.toString().slice(0, 6)}...${f.publicKey.toString().slice(-4)}` : f != null && f.address ? `${f.address.slice(
|
|
3874
|
+
0,
|
|
3875
|
+
6
|
|
3876
|
+
)}...${f.address.slice(-4)}` : "Not connected" })
|
|
3743
3877
|
] }),
|
|
3744
3878
|
/* @__PURE__ */ b("div", { className: "flex items-center justify-between", children: [
|
|
3745
3879
|
/* @__PURE__ */ a("span", { className: "text-sm text-white", children: "Available Balance" }),
|
|
@@ -3762,7 +3896,7 @@ const je = ({
|
|
|
3762
3896
|
style: { backgroundColor: "#95D2E6" }
|
|
3763
3897
|
}
|
|
3764
3898
|
),
|
|
3765
|
-
/* @__PURE__ */ a("span", { className: "text-sm text-white", children:
|
|
3899
|
+
/* @__PURE__ */ a("span", { className: "text-sm text-white", children: R })
|
|
3766
3900
|
] })
|
|
3767
3901
|
] })
|
|
3768
3902
|
] })
|
|
@@ -3771,7 +3905,7 @@ const je = ({
|
|
|
3771
3905
|
) : /* @__PURE__ */ b(
|
|
3772
3906
|
"div",
|
|
3773
3907
|
{
|
|
3774
|
-
className: d("p-6",
|
|
3908
|
+
className: d("p-6", B.paymentDetails),
|
|
3775
3909
|
style: e === "dark" || e === "solana-dark" ? { boxShadow: "0px 0px 16px 4px #000000 inset" } : void 0,
|
|
3776
3910
|
children: [
|
|
3777
3911
|
/* @__PURE__ */ b("div", { className: "flex items-center justify-between mb-4", children: [
|
|
@@ -3827,7 +3961,10 @@ const je = ({
|
|
|
3827
3961
|
"text-sm",
|
|
3828
3962
|
e === "dark" || e === "solana-dark" ? "text-white" : "text-slate-900"
|
|
3829
3963
|
),
|
|
3830
|
-
children: (me = f == null ? void 0 : f.publicKey) != null && me.toString() ? `${f.publicKey.toString().slice(0, 6)}...${f.publicKey.toString().slice(-4)}` : f != null && f.address ? `${f.address.slice(
|
|
3964
|
+
children: (me = f == null ? void 0 : f.publicKey) != null && me.toString() ? `${f.publicKey.toString().slice(0, 6)}...${f.publicKey.toString().slice(-4)}` : f != null && f.address ? `${f.address.slice(
|
|
3965
|
+
0,
|
|
3966
|
+
6
|
|
3967
|
+
)}...${f.address.slice(-4)}` : "Not connected"
|
|
3831
3968
|
}
|
|
3832
3969
|
)
|
|
3833
3970
|
] }),
|
|
@@ -3893,7 +4030,10 @@ const je = ({
|
|
|
3893
4030
|
/* @__PURE__ */ a(
|
|
3894
4031
|
"div",
|
|
3895
4032
|
{
|
|
3896
|
-
className: d(
|
|
4033
|
+
className: d(
|
|
4034
|
+
"w-2 h-2 rounded-full",
|
|
4035
|
+
"bg-green-500"
|
|
4036
|
+
)
|
|
3897
4037
|
}
|
|
3898
4038
|
),
|
|
3899
4039
|
/* @__PURE__ */ a(
|
|
@@ -3903,7 +4043,7 @@ const je = ({
|
|
|
3903
4043
|
"text-sm",
|
|
3904
4044
|
e === "dark" || e === "solana-dark" ? "text-white" : "text-slate-900"
|
|
3905
4045
|
),
|
|
3906
|
-
children:
|
|
4046
|
+
children: R
|
|
3907
4047
|
}
|
|
3908
4048
|
)
|
|
3909
4049
|
] })
|
|
@@ -3937,7 +4077,7 @@ const je = ({
|
|
|
3937
4077
|
/* @__PURE__ */ a(
|
|
3938
4078
|
"span",
|
|
3939
4079
|
{
|
|
3940
|
-
className: d("text-sm",
|
|
4080
|
+
className: d("text-sm", B.securityMessage),
|
|
3941
4081
|
style: e === "seeker" ? { color: "#FFFFFF66" } : e === "seeker-2" ? { color: "#FFFFFF66" } : void 0,
|
|
3942
4082
|
children: "Secure payment powered by Solana"
|
|
3943
4083
|
}
|
|
@@ -3948,12 +4088,12 @@ const je = ({
|
|
|
3948
4088
|
{
|
|
3949
4089
|
amount: r,
|
|
3950
4090
|
description: n,
|
|
3951
|
-
onClick:
|
|
3952
|
-
loading:
|
|
3953
|
-
disabled:
|
|
4091
|
+
onClick: Q,
|
|
4092
|
+
loading: W,
|
|
4093
|
+
disabled: W || !(f != null && f.publicKey),
|
|
3954
4094
|
className: d(
|
|
3955
4095
|
"w-full h-12",
|
|
3956
|
-
e === "dark" || e === "solana-dark" ? e === "dark" ? "bg-[#FFFFFF1F] rounded-full" : "bg-solana-gradient rounded-full" :
|
|
4096
|
+
e === "dark" || e === "solana-dark" ? e === "dark" ? "bg-[#FFFFFF1F] rounded-full" : "bg-solana-gradient rounded-full" : B.button,
|
|
3957
4097
|
g == null ? void 0 : g.button
|
|
3958
4098
|
),
|
|
3959
4099
|
style: e === "dark" ? {
|
|
@@ -3976,18 +4116,24 @@ const je = ({
|
|
|
3976
4116
|
" ",
|
|
3977
4117
|
P.message
|
|
3978
4118
|
] }) }),
|
|
3979
|
-
/* @__PURE__ */ a("div", { className: "text-center", children: /* @__PURE__ */ b("p", { className: d("text-sm",
|
|
3980
|
-
/* @__PURE__ */ b(
|
|
3981
|
-
"
|
|
3982
|
-
|
|
3983
|
-
|
|
4119
|
+
/* @__PURE__ */ a("div", { className: "text-center", children: /* @__PURE__ */ b("p", { className: d("text-sm", B.helperText), children: [
|
|
4120
|
+
/* @__PURE__ */ b(
|
|
4121
|
+
"span",
|
|
4122
|
+
{
|
|
4123
|
+
style: e === "seeker" ? { color: "#FFFFFF66" } : e === "seeker-2" ? { color: "#FFFFFF66" } : void 0,
|
|
4124
|
+
children: [
|
|
4125
|
+
"Don't have USDC?",
|
|
4126
|
+
" "
|
|
4127
|
+
]
|
|
4128
|
+
}
|
|
4129
|
+
),
|
|
3984
4130
|
/* @__PURE__ */ b(
|
|
3985
4131
|
"a",
|
|
3986
4132
|
{
|
|
3987
4133
|
href: "#",
|
|
3988
4134
|
className: d(
|
|
3989
4135
|
"font-medium",
|
|
3990
|
-
e === "seeker" || e === "seeker-2" ? "text-[#4ADE80]" :
|
|
4136
|
+
e === "seeker" || e === "seeker-2" ? "text-[#4ADE80]" : B.helperLink || "text-[#4ADE80]"
|
|
3991
4137
|
),
|
|
3992
4138
|
style: e === "seeker" ? { color: "#4ADE80" } : e === "seeker-2" ? { color: "#4ADE80" } : void 0,
|
|
3993
4139
|
children: [
|
|
@@ -4027,21 +4173,14 @@ const je = ({
|
|
|
4027
4173
|
providerEndpoint: t,
|
|
4028
4174
|
...o
|
|
4029
4175
|
}) => {
|
|
4030
|
-
const i = n ?? (o.network === "solana" ? Ne.Mainnet : Ne.Devnet)
|
|
4031
|
-
|
|
4032
|
-
|
|
4033
|
-
|
|
4034
|
-
|
|
4035
|
-
|
|
4036
|
-
|
|
4037
|
-
|
|
4038
|
-
new Se()
|
|
4039
|
-
],
|
|
4040
|
-
[]
|
|
4041
|
-
);
|
|
4042
|
-
return /* @__PURE__ */ a(Xe, { endpoint: l, children: /* @__PURE__ */ a(Je, { wallets: u, autoConnect: !1, children: /* @__PURE__ */ a(Ze, { children: /* @__PURE__ */ a(je, { ...o }) }) }) });
|
|
4043
|
-
}
|
|
4044
|
-
return /* @__PURE__ */ a(je, { ...o });
|
|
4176
|
+
const i = n ?? (o.network === "solana" ? Ne.Mainnet : Ne.Devnet), l = ce(
|
|
4177
|
+
() => t || o.rpcUrl || ar(i),
|
|
4178
|
+
[t, o.rpcUrl, i]
|
|
4179
|
+
), u = ce(
|
|
4180
|
+
() => [new Qe(), new Se()],
|
|
4181
|
+
[]
|
|
4182
|
+
);
|
|
4183
|
+
return r ? /* @__PURE__ */ a(Xe, { endpoint: l, children: /* @__PURE__ */ a(Je, { wallets: u, autoConnect: !0, children: /* @__PURE__ */ a(Ze, { children: /* @__PURE__ */ a(je, { ...o }) }) }) }) : /* @__PURE__ */ a(je, { ...o });
|
|
4045
4184
|
};
|
|
4046
4185
|
lt.displayName = "X402Paywall";
|
|
4047
4186
|
const dt = ({
|