@trifle/trifle-hub 1.0.161 → 1.0.162
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/AccountIndex-CTjOLmjP.js +144 -0
- package/dist/Earn-DMrF4S31.js +255 -0
- package/dist/{ExchangeController-D9_uwgvR.js → ExchangeController-6NjzC79Z.js} +1 -1
- package/dist/{Games-M9GlINCE.js → Games-CLUUM0mP.js} +10 -10
- package/dist/{HelpersUtil-3kK0MJ3p.js → HelpersUtil-Dj0wfodo.js} +4 -4
- package/dist/{Leaderboard-B7Mh8DS-.js → Leaderboard-CuG041PJ.js} +1 -1
- package/dist/Profile-YoSRBmlN.js +1818 -0
- package/dist/QuestCard-CapG6iNR.js +318 -0
- package/dist/{ReownAuthentication-CVPDiHcH.js → ReownAuthentication-ClyLCgeo.js} +4 -4
- package/dist/{SocialsButtons-aWpzKjcb.js → SocialsButtons-uL2_XTTy.js} +1 -1
- package/dist/SwapBalls-ChUy9GIh.js +277 -0
- package/dist/{SwapController-BeK9JnGm.js → SwapController-Q_rNvOur.js} +1 -1
- package/dist/{TrifleGuide-CR0Ozy_0.js → TrifleGuide-Dn1FDCub.js} +1 -1
- package/dist/components/QuestCard.vue.d.ts +2 -0
- package/dist/components/ScrollMaskedX.vue.d.ts +17 -0
- package/dist/config/pointsConfig.d.ts +98 -0
- package/dist/config/socialsConfig.d.ts +12 -0
- package/dist/config/tailwindTheme.d.ts +12 -0
- package/dist/{data-capture-SpEqbF3k.js → data-capture-C1pQbx1q.js} +10 -10
- package/dist/{email-nGysUKxe.js → email-D2uCwQIX.js} +15 -15
- package/dist/{embedded-wallet-CVRT-KKq.js → embedded-wallet-C4TtNIAk.js} +20 -20
- package/dist/{features-ltH2yyBF.js → features-p7PixpOp.js} +1 -1
- package/dist/{if-defined-Dy4LSJRL.js → if-defined-Db2RYcoI.js} +1 -1
- package/dist/{index-D7KogVqW.js → index-B7YpXXOx.js} +3 -3
- package/dist/{index-el2rRTti.js → index-B874HQ1C.js} +1 -1
- package/dist/{index-DB2RGu8K.js → index-BBZwHOZx.js} +7174 -7062
- package/dist/{index-CGTgmNWF.js → index-BCwqn9QZ.js} +7 -7
- package/dist/{index-D8jtytdS.js → index-BPUorytH.js} +4 -4
- package/dist/{index-B6EegOWr.js → index-BUYdR_2_.js} +3 -3
- package/dist/{index-Br4pPBw3.js → index-Be1ETcsd.js} +2 -2
- package/dist/{index-vWXwGhx5.js → index-BgP8qyHN.js} +8 -8
- package/dist/{index-B5tdNBnN.js → index-BlHGPGWv.js} +5 -5
- package/dist/{index-DFRmrUjX.js → index-Bw4BSPxV.js} +1 -1
- package/dist/{index-D_P4Urp2.js → index-ByEuzHZx.js} +4 -4
- package/dist/{index-Ry5qK6ET.js → index-Bz5RbsFD.js} +4 -4
- package/dist/{index-fsHFGWT7.js → index-C5VTkzn_.js} +2 -2
- package/dist/{index-BPEOHrMY.js → index-CCLcIWvl.js} +2 -2
- package/dist/{index-B6ReSoq4.js → index-CEp7-6gC.js} +12 -12
- package/dist/{index-zrzeJIBS.js → index-CG4RerkJ.js} +4 -4
- package/dist/{index-CABGgn9P.js → index-CGVqIMrP.js} +2 -2
- package/dist/{index-JL3Wermk.js → index-CRnT53WM.js} +4 -4
- package/dist/{index-fMGZyGCM.js → index-CbMqJqgs.js} +3 -3
- package/dist/{index-CAqkQtOq.js → index-Ch8Y71PT.js} +2 -2
- package/dist/{index-C2ffuAYb.js → index-CldzoQ7r.js} +4 -4
- package/dist/{index-Dpn8_aG_.js → index-CnEa77cL.js} +23 -23
- package/dist/{index-DHWhyTIK.js → index-Cs4b_oEO.js} +4 -4
- package/dist/{index-C2PmirTf.js → index-D6xLy_9u.js} +3 -3
- package/dist/{index-356dXR_D.js → index-DCC9iWUP.js} +5 -5
- package/dist/{index-Dg7OV12A.js → index-DISZZqKI.js} +86 -86
- package/dist/{index-C2kYO0cy.js → index-DKxX5-s9.js} +4 -4
- package/dist/{index-BHFhjWws.js → index-DPKtJuhj.js} +7 -7
- package/dist/{index-BIohKOaQ.js → index-DT6SLq6J.js} +101 -101
- package/dist/{index-D0PeBPfJ.js → index-Diei326e.js} +8 -8
- package/dist/{index-Dvj2aQzS.js → index-DoLlp6XK.js} +6 -6
- package/dist/{index-Ce6TjHV2.js → index-Dw0RgphK.js} +3 -3
- package/dist/{index-DUlBiQtl.js → index-gICsvOhN.js} +3 -3
- package/dist/{index-5j1niEF0.js → index-iR5Uvd14.js} +3 -3
- package/dist/{index-cQyA4S9L.js → index-u4YndyyJ.js} +7 -7
- package/dist/{index-Cx-FU6Gm.js → index-wAnKlCQm.js} +7 -7
- package/dist/index.es.js +2 -2
- package/dist/{onramp-DqtQTg4r.js → onramp-3E-5EGhn.js} +47 -47
- package/dist/{pay-with-exchange-C0oNjyvj.js → pay-with-exchange-DBpQTxCY.js} +17 -17
- package/dist/{receive-Bb7EcFWE.js → receive-DDXsTS6R.js} +5 -5
- package/dist/{ref-CujhPCia.js → ref-CRKmoaio.js} +2 -2
- package/dist/{send-DGTDv4Th.js → send-Bp9p9m9K.js} +18 -18
- package/dist/{socials-Cp4djpe9.js → socials-C1MyEZn9.js} +20 -20
- package/dist/{swaps-DD8uJyu7.js → swaps-Hpy8DwH3.js} +11 -11
- package/dist/{transactions-DYOP0lkN.js → transactions-BV1mkVO3.js} +7 -7
- package/dist/{w3m-modal-JJJ6hUHU.js → w3m-modal-Du6ALWMy.js} +20 -20
- package/package.json +2 -1
- package/dist/AccountIndex-BEX1k5b6.js +0 -128
- package/dist/Earn-CgpWSs87.js +0 -521
- package/dist/Profile-Ct-mDc2u.js +0 -1696
- package/dist/SwapBalls-D14eVMm3.js +0 -279
|
@@ -0,0 +1,318 @@
|
|
|
1
|
+
import { computed as E, createElementBlock as o, createCommentVNode as v, openBlock as s, createElementVNode as t, toDisplayString as k, inject as j, ref as h, onMounted as H, Fragment as C, createBlock as z, withModifiers as $, unref as N, normalizeClass as b, resolveDynamicComponent as S, withCtx as O } from "vue";
|
|
2
|
+
import { Q as U } from "./index-BBZwHOZx.js";
|
|
3
|
+
import { storeToRefs as P } from "pinia";
|
|
4
|
+
const Q = ["href"], X = { class: "_size-[2.65em] _rounded-md _overflow-hidden _flex _items-center _justify-center _bg-black/80" }, D = ["src"], Y = {
|
|
5
|
+
key: 1,
|
|
6
|
+
class: "_text-xs _tracking-wide _text-white/80"
|
|
7
|
+
}, J = { class: "_flex-1 _min-w-0" }, K = { class: "_leading-snug _line-clamp-2 _whitespace-pre-line _text-zinc-500" }, Z = {
|
|
8
|
+
__name: "TwitterTweetSummary",
|
|
9
|
+
props: {
|
|
10
|
+
tweet: {
|
|
11
|
+
type: Object,
|
|
12
|
+
default: null
|
|
13
|
+
}
|
|
14
|
+
},
|
|
15
|
+
setup(e) {
|
|
16
|
+
const c = e, u = E(() => {
|
|
17
|
+
if (!c.tweet || !c.tweet.media) return null;
|
|
18
|
+
const w = c.tweet.media;
|
|
19
|
+
if (!Array.isArray(w) || w.length === 0) return null;
|
|
20
|
+
const d = w.find((f) => f.type === "photo") || w[0];
|
|
21
|
+
return (d == null ? void 0 : d.url) || null;
|
|
22
|
+
});
|
|
23
|
+
return (w, d) => e.tweet ? (s(), o("a", {
|
|
24
|
+
key: 0,
|
|
25
|
+
href: e.tweet.url,
|
|
26
|
+
target: "_blank",
|
|
27
|
+
rel: "noopener noreferrer",
|
|
28
|
+
class: "_flex _items-start _gap-2.5 _p-[0.625em] _rounded-lg _bg-metallic-linear _shadow-panel _no-underline"
|
|
29
|
+
}, [
|
|
30
|
+
t("div", X, [
|
|
31
|
+
u.value ? (s(), o("img", {
|
|
32
|
+
key: 0,
|
|
33
|
+
src: u.value,
|
|
34
|
+
alt: "Tweet media",
|
|
35
|
+
class: "_w-full _h-full _object-cover"
|
|
36
|
+
}, null, 8, D)) : (s(), o("span", Y, "𝕏"))
|
|
37
|
+
]),
|
|
38
|
+
t("div", J, [
|
|
39
|
+
t("p", K, k(e.tweet.text), 1)
|
|
40
|
+
])
|
|
41
|
+
], 8, Q)) : v("", !0);
|
|
42
|
+
}
|
|
43
|
+
}, G = { class: "_space-y-3 _mt-2 _mb-0.5" }, W = {
|
|
44
|
+
key: 1,
|
|
45
|
+
class: "_text-em-xs _text-zinc-500 _text-center _border-2 _border-dashed _border-black/30 _rounded-lg _p-3"
|
|
46
|
+
}, ee = {
|
|
47
|
+
key: 1,
|
|
48
|
+
class: "_flex _items-center _justify-between _gap-3 _w-full"
|
|
49
|
+
}, te = {
|
|
50
|
+
key: 0,
|
|
51
|
+
class: "_w-full _-mt-1 _text-em-sm _text-center _bg-metallic-cone _shadow-panel _rounded-lg _p-3 _text-green-600"
|
|
52
|
+
}, le = {
|
|
53
|
+
key: 1,
|
|
54
|
+
class: "_w-full _flex-wrap _gap-2 _flex _items-center _justify-evenly _text-em-smff"
|
|
55
|
+
}, ne = ["href"], se = ["disabled"], ie = {
|
|
56
|
+
key: 3,
|
|
57
|
+
class: "_flex _justify-center"
|
|
58
|
+
}, oe = "https://x.com/intent/follow?screen_name=triflelife", ae = {
|
|
59
|
+
__name: "TwitterEngagementQuest",
|
|
60
|
+
props: {
|
|
61
|
+
mode: {
|
|
62
|
+
type: String,
|
|
63
|
+
required: !0,
|
|
64
|
+
validator: (e) => e === "like" || e === "reply" || e === "follow"
|
|
65
|
+
}
|
|
66
|
+
},
|
|
67
|
+
emits: ["points-updated"],
|
|
68
|
+
setup(e, { emit: c }) {
|
|
69
|
+
const u = e, w = c, d = j("TrifleHub/store"), { backendUrl: f, isAuthenticated: m } = P(d), _ = h(null), a = h(null), i = h(!1), y = h(!1), p = h(null), q = h(null), T = h(!1), V = E(() => a.value ? u.mode === "follow" ? !!a.value.followed : !_.value || a.value.tweetId !== _.value.id ? !1 : u.mode === "like" ? !!a.value.liked : u.mode === "reply" ? !!a.value.replied : !1 : !1), L = () => {
|
|
70
|
+
const l = d.authToken;
|
|
71
|
+
return l ? { Authorization: `Bearer ${l}` } : {};
|
|
72
|
+
}, F = async () => {
|
|
73
|
+
i.value = !0;
|
|
74
|
+
try {
|
|
75
|
+
const l = await fetch(`${f.value}/twitter/featured-tweet`);
|
|
76
|
+
if (!l.ok) return;
|
|
77
|
+
_.value = await l.json();
|
|
78
|
+
} catch (l) {
|
|
79
|
+
console.error("Error fetching featured tweet:", l);
|
|
80
|
+
} finally {
|
|
81
|
+
i.value = !1;
|
|
82
|
+
}
|
|
83
|
+
}, A = async () => {
|
|
84
|
+
try {
|
|
85
|
+
const l = L();
|
|
86
|
+
if (!l.Authorization) return;
|
|
87
|
+
const n = await fetch(`${f.value}/twitter/my-status`, {
|
|
88
|
+
headers: l
|
|
89
|
+
});
|
|
90
|
+
if (!n.ok) return;
|
|
91
|
+
const r = await n.json();
|
|
92
|
+
(r.followed || r.tweetId && (r.liked || r.replied)) && (a.value = {
|
|
93
|
+
tweetId: r.tweetId,
|
|
94
|
+
liked: !!r.liked,
|
|
95
|
+
replied: !!r.replied,
|
|
96
|
+
followed: !!r.followed
|
|
97
|
+
});
|
|
98
|
+
} catch (l) {
|
|
99
|
+
console.error("Error fetching twitter status:", l);
|
|
100
|
+
}
|
|
101
|
+
}, B = async (l) => {
|
|
102
|
+
var n;
|
|
103
|
+
y.value = !0;
|
|
104
|
+
try {
|
|
105
|
+
const r = {
|
|
106
|
+
"Content-Type": "application/json",
|
|
107
|
+
...L()
|
|
108
|
+
}, g = (n = _.value) != null && n.id ? { tweetId: _.value.id } : {}, I = await fetch(`${f.value}/twitter/${l}`, {
|
|
109
|
+
method: "POST",
|
|
110
|
+
headers: r,
|
|
111
|
+
body: JSON.stringify(g)
|
|
112
|
+
}), x = await I.json();
|
|
113
|
+
if (!I.ok)
|
|
114
|
+
throw x.reconnectRequired && (T.value = !0), new Error((x == null ? void 0 : x.error) || "Verification failed");
|
|
115
|
+
return x;
|
|
116
|
+
} finally {
|
|
117
|
+
y.value = !1;
|
|
118
|
+
}
|
|
119
|
+
}, M = async () => {
|
|
120
|
+
p.value = null, q.value = null, T.value = !1;
|
|
121
|
+
try {
|
|
122
|
+
const l = { like: "verify-like", reply: "verify-reply", follow: "verify-follow" }, n = { like: "Like", reply: "Reply", follow: "Follow" }, r = { like: "liked", reply: "replied", follow: "followed" }, g = await B(l[u.mode]);
|
|
123
|
+
g.verified ? (q.value = `${n[u.mode]} verified!`, a.value = {
|
|
124
|
+
...a.value,
|
|
125
|
+
...g.tweetId ? { tweetId: g.tweetId } : {},
|
|
126
|
+
[r[u.mode]]: !0
|
|
127
|
+
}, g.pointsAwarded && w("points-updated")) : p.value = g.message || `Your ${n[u.mode].toLowerCase()} wasn't detected yet — it can take a minute to show up. Try again shortly.`;
|
|
128
|
+
} catch (l) {
|
|
129
|
+
p.value = (l == null ? void 0 : l.message) || "Verification failed. Please try again.";
|
|
130
|
+
}
|
|
131
|
+
}, R = () => {
|
|
132
|
+
d.connectTwitter();
|
|
133
|
+
};
|
|
134
|
+
return H(() => {
|
|
135
|
+
u.mode !== "follow" && F(), A();
|
|
136
|
+
}), (l, n) => {
|
|
137
|
+
var r;
|
|
138
|
+
return s(), o("div", G, [
|
|
139
|
+
e.mode !== "follow" ? (s(), o(C, { key: 0 }, [
|
|
140
|
+
_.value ? (s(), z(Z, {
|
|
141
|
+
key: 0,
|
|
142
|
+
tweet: _.value,
|
|
143
|
+
class: "_text-sm"
|
|
144
|
+
}, null, 8, ["tweet"])) : (s(), o("p", W, k(i.value ? "Loading latest tweet..." : "No featured tweet available right now."), 1))
|
|
145
|
+
], 64)) : v("", !0),
|
|
146
|
+
e.mode === "follow" || !i.value ? (s(), o("div", ee, [
|
|
147
|
+
V.value ? (s(), o("p", te, n[2] || (n[2] = [
|
|
148
|
+
t("span", { class: "_animate-scaleup-sm _block" }, "You did it! 🪩🪩🪩", -1)
|
|
149
|
+
]))) : (s(), o("div", le, [
|
|
150
|
+
e.mode === "follow" ? (s(), o(C, { key: 0 }, [
|
|
151
|
+
t("a", {
|
|
152
|
+
href: oe,
|
|
153
|
+
target: "_blank",
|
|
154
|
+
rel: "noopener noreferrer",
|
|
155
|
+
class: "_underline _inline-block _animate-wiggle-sm _p-[0.25em]",
|
|
156
|
+
onClick: n[0] || (n[0] = $(() => {
|
|
157
|
+
}, ["stop"]))
|
|
158
|
+
}, " Follow on X "),
|
|
159
|
+
n[3] || (n[3] = t("div", { class: "_text-zinc-500" }, "then...", -1))
|
|
160
|
+
], 64)) : (r = _.value) != null && r.url ? (s(), o(C, { key: 1 }, [
|
|
161
|
+
t("a", {
|
|
162
|
+
href: _.value.url,
|
|
163
|
+
target: "_blank",
|
|
164
|
+
rel: "noopener noreferrer",
|
|
165
|
+
class: "_underline _inline-block _animate-wiggle-sm",
|
|
166
|
+
onClick: n[1] || (n[1] = $(() => {
|
|
167
|
+
}, ["stop"]))
|
|
168
|
+
}, k(e.mode === "like" ? "Like on X" : "Reply on X"), 9, ne),
|
|
169
|
+
n[4] || (n[4] = t("div", { class: "_text-zinc-500" }, "then...", -1))
|
|
170
|
+
], 64)) : v("", !0),
|
|
171
|
+
t("button", {
|
|
172
|
+
class: "_bubble-btn _px-5 _py-3 _text-em-smff",
|
|
173
|
+
disabled: y.value || !N(m),
|
|
174
|
+
style: { filter: "hue-rotate(20deg) saturate(3)" },
|
|
175
|
+
onClick: $(M, ["stop"])
|
|
176
|
+
}, [
|
|
177
|
+
t("span", null, k(e.mode === "like" ? "Verify Like" : e.mode === "reply" ? "Verify Reply" : "Verify Follow"), 1)
|
|
178
|
+
], 8, se)
|
|
179
|
+
]))
|
|
180
|
+
])) : v("", !0),
|
|
181
|
+
p.value || q.value || y.value ? (s(), o("p", {
|
|
182
|
+
key: 2,
|
|
183
|
+
class: b([
|
|
184
|
+
"_mt-0.5 _text-em-xs _text-center _bg-metallic-linear _shadow-panel _rounded-lg _p-3",
|
|
185
|
+
y.value ? "_text-zinc-600" : p.value ? "_text-red-600" : "_text-primary"
|
|
186
|
+
])
|
|
187
|
+
}, k(y.value ? "Checking..." : p.value || q.value), 3)) : v("", !0),
|
|
188
|
+
T.value ? (s(), o("div", ie, [
|
|
189
|
+
t("button", {
|
|
190
|
+
class: "_bubble-btn _px-5 _py-3 _text-em-smff",
|
|
191
|
+
style: { filter: "hue-rotate(-340deg) saturate(1.8)" },
|
|
192
|
+
onClick: $(R, ["stop"])
|
|
193
|
+
}, n[5] || (n[5] = [
|
|
194
|
+
t("span", { style: { filter: "hue-rotate(340deg) saturate(0.5)" } }, "Reconnect Twitter", -1)
|
|
195
|
+
]))
|
|
196
|
+
])) : v("", !0)
|
|
197
|
+
]);
|
|
198
|
+
};
|
|
199
|
+
}
|
|
200
|
+
}, re = { class: "_flex _w-full _gap-2.5 _cursor-pointer _min-w-0 _items-stretch" }, ue = { class: "_size-9 _flex-shrink-0" }, de = ["src"], ce = { class: "_flex-1 _min-w-0 _flex _flex-col _justify-center _min-h-8 _text-left _leading-normal" }, fe = { class: "_flex _items-center _h-9 _gap-0.5 _relative _text-em-sm sm:_text-mlg _flex-shrink-0" }, _e = {
|
|
201
|
+
key: 0,
|
|
202
|
+
class: "_rounded-full _bg-metallic-cone _shadow-panel _px-[0.5em]"
|
|
203
|
+
}, me = {
|
|
204
|
+
key: 1,
|
|
205
|
+
class: "_rounded-full _bg-metallic-cone _shadow-panel _pr-[0.5em] _pl-[0.25em] _flex _gap-[0.1em]"
|
|
206
|
+
}, we = {
|
|
207
|
+
key: 0,
|
|
208
|
+
class: "_flex _items-start _gap-3 _pr-3"
|
|
209
|
+
}, ve = ["innerHTML"], he = {
|
|
210
|
+
key: 0,
|
|
211
|
+
class: "_absolute _top-0 _right-1 _flex _items-center _justify-center"
|
|
212
|
+
}, pe = {
|
|
213
|
+
__name: "QuestCard",
|
|
214
|
+
props: {
|
|
215
|
+
quest: { type: Object, required: !0 },
|
|
216
|
+
highlight: { type: Boolean, default: !1 }
|
|
217
|
+
},
|
|
218
|
+
emits: ["points-updated", "internal-link"],
|
|
219
|
+
setup(e) {
|
|
220
|
+
const c = e, u = j("hub"), { openHub: w } = u, d = j("TrifleHub/store"), f = h(!1), m = E(() => {
|
|
221
|
+
const a = c.quest.id;
|
|
222
|
+
return a === "twitter-like-tweet" || a === "twitter-reply-tweet" || a === "follow-trifle-twitter";
|
|
223
|
+
}), _ = (a) => {
|
|
224
|
+
var i;
|
|
225
|
+
m.value ? f.value = !f.value : (i = c.quest.link) != null && i.to ? w(c.quest.link.to) : c.quest.action === "fcEnableNotifications" ? d.fcEnableNotifications() : c.quest.action === "fcComposeCast" && (d.isFarcaster ? d.fcComposeCast() : window.open(
|
|
226
|
+
"https://warpcast.com/~/compose?text=I%20❤%20trifle.life&embeds[]=https://trifle.life",
|
|
227
|
+
"_blank",
|
|
228
|
+
"noopener,noreferrer"
|
|
229
|
+
));
|
|
230
|
+
};
|
|
231
|
+
return (a, i) => (s(), z(S(
|
|
232
|
+
e.quest.link && !m.value ? typeof e.quest.link == "string" ? "a" : "button" : e.quest.action ? "button" : "div"
|
|
233
|
+
), {
|
|
234
|
+
fid: e.quest.fid,
|
|
235
|
+
href: typeof e.quest.link == "string" && !m.value ? e.quest.link : void 0,
|
|
236
|
+
target: typeof e.quest.link == "string" && !m.value ? "_blank" : void 0,
|
|
237
|
+
rel: typeof e.quest.link == "string" && !m.value ? "noopener noreferrer" : void 0,
|
|
238
|
+
onClick: _,
|
|
239
|
+
class: b(["_w-full _block _relative", {
|
|
240
|
+
"_pointer-events-none": e.quest.completed && e.quest.once,
|
|
241
|
+
"_origin-center _animate-quest-highlight-pop _delay-500 _z-10 _relative": e.highlight
|
|
242
|
+
}]),
|
|
243
|
+
id: "thub-quest-" + e.quest.id
|
|
244
|
+
}, {
|
|
245
|
+
default: O(() => [
|
|
246
|
+
t("div", {
|
|
247
|
+
class: b(["_bg-metallic-linear _shadow-panel _w-full _p-2 _px-2.5 _pr-3 _rounded-lg _transition-colors _relative _flex _flex-col _gap-0.5 _min-h-14 _justify-center", [
|
|
248
|
+
{
|
|
249
|
+
"mouse:hover:_scale-[1.006] _duration-100": e.quest.link || e.quest.action,
|
|
250
|
+
"_opacity-40": e.quest.completed && e.quest.once
|
|
251
|
+
}
|
|
252
|
+
]])
|
|
253
|
+
}, [
|
|
254
|
+
t("header", re, [
|
|
255
|
+
t("div", ue, [
|
|
256
|
+
t("img", {
|
|
257
|
+
src: e.quest.icon,
|
|
258
|
+
class: "_w-full _h-full _rounded-lg _block"
|
|
259
|
+
}, null, 8, de)
|
|
260
|
+
]),
|
|
261
|
+
t("div", ce, [
|
|
262
|
+
t("div", {
|
|
263
|
+
class: b(["_min-w-0 _leading-[1.1] _text-stroke-xl", { "_line-through": e.quest.completed && e.quest.once }])
|
|
264
|
+
}, k(e.quest.name), 3)
|
|
265
|
+
]),
|
|
266
|
+
t("div", fe, [
|
|
267
|
+
e.quest.enabled ? (s(), o("div", me, [
|
|
268
|
+
i[1] || (i[1] = t("div", null, "🪩", -1)),
|
|
269
|
+
t("span", null, k(e.quest.pachinkoBalls), 1)
|
|
270
|
+
])) : (s(), o("div", _e, " soon ")),
|
|
271
|
+
(s(), o("svg", {
|
|
272
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
273
|
+
viewBox: "0 0 20 20",
|
|
274
|
+
fill: "black",
|
|
275
|
+
"stroke-width": "0.75",
|
|
276
|
+
stroke: "black",
|
|
277
|
+
class: b(["_size-6 sm:_size-7 _opacity-30 sm:_ml-0.5", [
|
|
278
|
+
{
|
|
279
|
+
"_invisible _ml-4.5": e.quest.completed && e.quest.once,
|
|
280
|
+
"_rotate-90": m.value && f.value
|
|
281
|
+
}
|
|
282
|
+
]])
|
|
283
|
+
}, i[2] || (i[2] = [
|
|
284
|
+
t("path", {
|
|
285
|
+
"fill-rule": "evenodd",
|
|
286
|
+
d: "M8.22 5.22a.75.75 0 0 1 1.06 0l4.25 4.25a.75.75 0 0 1 0 1.06l-4.25 4.25a.75.75 0 0 1-1.06-1.06L11.94 10 8.22 6.28a.75.75 0 0 1 0-1.06Z",
|
|
287
|
+
"clip-rule": "evenodd"
|
|
288
|
+
}, null, -1)
|
|
289
|
+
]), 2))
|
|
290
|
+
])
|
|
291
|
+
]),
|
|
292
|
+
e.quest.description && !(m.value && f.value) ? (s(), o("div", we, [
|
|
293
|
+
i[3] || (i[3] = t("div", { class: "_w-9 _flex-shrink-0" }, null, -1)),
|
|
294
|
+
t("p", {
|
|
295
|
+
class: "_flex-1 _text-em-xs _text-zinc-500 _text-stroke-lg _text-left",
|
|
296
|
+
innerHTML: e.quest.description
|
|
297
|
+
}, null, 8, ve)
|
|
298
|
+
])) : v("", !0),
|
|
299
|
+
m.value && f.value ? (s(), z(ae, {
|
|
300
|
+
key: 1,
|
|
301
|
+
mode: e.quest.id === "twitter-like-tweet" ? "like" : e.quest.id === "twitter-reply-tweet" ? "reply" : "follow",
|
|
302
|
+
onPointsUpdated: i[0] || (i[0] = (y) => a.$emit("points-updated"))
|
|
303
|
+
}, null, 8, ["mode"])) : v("", !0)
|
|
304
|
+
], 2),
|
|
305
|
+
e.quest.completed && e.quest.once ? (s(), o("div", he, i[4] || (i[4] = [
|
|
306
|
+
t("img", {
|
|
307
|
+
src: U,
|
|
308
|
+
class: "_size-[2.5em]"
|
|
309
|
+
}, null, -1)
|
|
310
|
+
]))) : v("", !0)
|
|
311
|
+
]),
|
|
312
|
+
_: 1
|
|
313
|
+
}, 8, ["fid", "href", "target", "rel", "id", "class"]));
|
|
314
|
+
}
|
|
315
|
+
};
|
|
316
|
+
export {
|
|
317
|
+
pe as _
|
|
318
|
+
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { C as g,
|
|
1
|
+
import { C as g, J as w, K as y, L as A, A as k, M as u, B as N, P as m } from "./index-BBZwHOZx.js";
|
|
2
2
|
class p {
|
|
3
3
|
constructor(e) {
|
|
4
4
|
this.getNonce = e.getNonce;
|
|
@@ -55,7 +55,7 @@ class E {
|
|
|
55
55
|
constructor(e = {}) {
|
|
56
56
|
this.otpUuid = null, this.listeners = {
|
|
57
57
|
sessionChanged: []
|
|
58
|
-
}, this.localAuthStorageKey = e.localAuthStorageKey ||
|
|
58
|
+
}, this.localAuthStorageKey = e.localAuthStorageKey || y.SIWX_AUTH_TOKEN, this.localNonceStorageKey = e.localNonceStorageKey || y.SIWX_NONCE_TOKEN, this.required = e.required ?? !0, this.messenger = new p({
|
|
59
59
|
getNonce: this.getNonce.bind(this)
|
|
60
60
|
});
|
|
61
61
|
}
|
|
@@ -172,7 +172,7 @@ class E {
|
|
|
172
172
|
});
|
|
173
173
|
}
|
|
174
174
|
async request({ method: e, key: t, query: s, body: n, headers: o }) {
|
|
175
|
-
var
|
|
175
|
+
var f;
|
|
176
176
|
const { projectId: r, st: h, sv: S } = this.getSDKProperties(), a = new URL(`${k.W3M_API_URL}/auth/v1/${String(t)}`);
|
|
177
177
|
a.searchParams.set("projectId", r), a.searchParams.set("st", h), a.searchParams.set("sv", S), s && Object.entries(s).forEach(([i, l]) => a.searchParams.set(i, String(l)));
|
|
178
178
|
const c = await fetch(a, {
|
|
@@ -195,7 +195,7 @@ class E {
|
|
|
195
195
|
});
|
|
196
196
|
if (!c.ok)
|
|
197
197
|
throw new Error(await c.text());
|
|
198
|
-
return (
|
|
198
|
+
return (f = c.headers.get("content-type")) != null && f.includes("application/json") ? c.json() : null;
|
|
199
199
|
}
|
|
200
200
|
getStorageToken(e) {
|
|
201
201
|
return u.getItem(e);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { createElementBlock as n, openBlock as l, Fragment as u, renderList as o, unref as e, normalizeStyle as _, createElementVNode as r, toDisplayString as a } from "vue";
|
|
2
|
-
import { p as s } from "./index-
|
|
2
|
+
import { p as s } from "./index-BBZwHOZx.js";
|
|
3
3
|
const i = ["href", "fid"], b = { class: "_size-7 sm:_size-8 _rounded-lg _overflow-hidden" }, d = ["src"], c = { class: "_flex-1 _min-w-0 _truncate _text-center _text-stroke-xl _text-mlg _leading-snug" }, y = {
|
|
4
4
|
__name: "SocialsButtons",
|
|
5
5
|
setup(f) {
|
|
@@ -0,0 +1,277 @@
|
|
|
1
|
+
import { createElementBlock as s, openBlock as l, normalizeClass as x, unref as O, inject as X, computed as y, ref as f, withModifiers as Z, createElementVNode as a, createCommentVNode as i, createVNode as T, normalizeStyle as I, toDisplayString as u, withDirectives as F, vModelText as H, Fragment as p, renderList as K, createTextVNode as v, TransitionGroup as V, withCtx as q } from "vue";
|
|
2
|
+
import { X as R } from "./index-BBZwHOZx.js";
|
|
3
|
+
const Y = ["src"], L = {
|
|
4
|
+
__name: "TicketEmoji",
|
|
5
|
+
props: {
|
|
6
|
+
animate: {
|
|
7
|
+
type: Boolean,
|
|
8
|
+
default: !0
|
|
9
|
+
}
|
|
10
|
+
},
|
|
11
|
+
setup(S) {
|
|
12
|
+
const b = S;
|
|
13
|
+
return (C, d) => (l(), s("img", {
|
|
14
|
+
src: O(R),
|
|
15
|
+
class: x(["_inline-block _h-[1.1em]", { "_animate-wiggle": b.animate }])
|
|
16
|
+
}, null, 10, Y));
|
|
17
|
+
}
|
|
18
|
+
}, J = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEUAAABFCAYAAAAcjSspAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAQvSURBVHgB7ZvteZswEMf/6dPvzQi3QbxBNUI2MBs0Gzgb2BuQDZoNaCeIM4HpBHYnSLkKYoxPAvTCi+3f81wcAxbipDudTuIOw3FfiCqECnkoZFEeq6TiUEpefr4X8quQbfn9YvhRyL6QD095woXAveAjkOxx2qui8AXxIYSjaWqThlrO7xCmp+w86zEICscH5s+F4Toq5KWQrJAU2jc8lsebLX9flqPK66rf/YT5ofn6fa0eCUaAK75G/5aMhdQT1xjQ1Ah2cxgDm7kRIlPvppJkGIcMdsUsEIkl2hVCGAeC9j02J71EYJawxw5TCaq4HraGC6aYBUa22Z4QzD6PFeZtSmS5wRumG0gRdP1MiiE4wg88R4VUcP1MitnBsf5rzFchFTbFrNGTBPPxIW3YerxCD6RCvGxxZAjyqLTrU4Ck1bnnMrj+0nNR1wKaWk1xGWRw7CnMAkcTGjNSDQ3hqBh+vmjh/40b/hDCc4+ZmnM9e8+2G2LkqhJbg2bYQrXACvLQt4IfKeKFCtUa1AnNliW4QbDnNBTcULCnLlynHYTTQPVTwdK6zCvcSGBXygZubFrKde0tzd73X8G87iON1d/gRqyJYqxySbiPYqUo4eIcbmw9z7v+zrVn/xGOEf/h9ZSQziuDOeXgim2m62qSjDQfYpMSH0LBHX6AF+FGviZAjXLZ/p/hxyMMjSe1QIg5QTXEh/YHIcslGNIJUp5hLpk1X6SRd39X/tPkDtfD2fMPsRVjdtyUIsBKOQjHr8mnNDlcu1JIOGZUyrWk6aTGz1kp78IJQj8UdIC2hvsM2wcFPRkl9ENq/L/8xxjqdmSF8+BnhWGUk+A8+FTdfy7maJ75hBTqZuiObb2WbxrDFBXMc6w+dRenOF+hdzOzX6nbV47umJwyQbdkUpa3LT9/1753KZtwzIx9h1aIbSDo0wiSP/2sV92EdujX9U0rb11kX95PEtcyU3SHavcSNx9VWzVdeEK4vbI+Ck7hFk4QIoUhBD21D7EHv69kmPiyB0H7EZMDDq0MhcDEng0TdKXZLB9gWEroCDvFHNoRsrN+RaRXXcZIEVBDTOTlZ/WeT46Rue06EKgUUrfdSyDF+YjVCYLs1Hwy/FOAV0Gl56KuBewgxwGEeULw3PPGKMha5ULmlmshmAPLBD3ZGAq6lH20Tototx3XBgjmsP0N0/UxbQoheMJj+T7mDQJDsE9Og+V3EstNpvS+T9tL4QkCk8A+OUsx7pthGewNlyAS9fBfkgzj0KaQ6KsThNvbpiLs3TeGSoyB1EgbjBQ2JDjNcZq6KUHvmOJunkI7ZgU5v1Ilqx/L69La78hQft2sd4iQeHKBWs7bzK2PtPVEwkwghFFI8DjDxBBbMQ4ImzbMcSH4rA0NHiQOmaOt1pUUdBK7vqGv7mwPNdlCbwDIcVzJjM4/radYQjo6ZCEAAAAASUVORK5CYII=", W = { class: "_w-full _flex _justify-between _items-center" }, $ = { class: "_flex _gap-[0.25em] _min-w-0 _flex-1 _items-center" }, ee = ["src"], te = {
|
|
19
|
+
key: 2,
|
|
20
|
+
class: "_min-w-0 _truncate"
|
|
21
|
+
}, se = {
|
|
22
|
+
key: 3,
|
|
23
|
+
class: "_min-w-0 _truncate _opacity-25 _pl-0.5 _text-em-sm"
|
|
24
|
+
}, le = {
|
|
25
|
+
key: 0,
|
|
26
|
+
class: "_animate-blink-fast"
|
|
27
|
+
}, ae = {
|
|
28
|
+
key: 0,
|
|
29
|
+
class: "_w-full _flex _shadow-panel-inset _rounded-lg _p-[0.05em]"
|
|
30
|
+
}, ne = ["max", "disabled"], oe = { class: "_p-[0.3em] _flex _items-center _justify-center" }, re = {
|
|
31
|
+
key: 1,
|
|
32
|
+
class: "_flex _justify-evenly _w-full"
|
|
33
|
+
}, ie = ["onClick"], ue = {
|
|
34
|
+
key: 2,
|
|
35
|
+
class: "_flex _w-full"
|
|
36
|
+
}, ce = { class: "_flex _items-start _gap-[0.5em]" }, _e = { key: 0 }, de = { class: "_flex-1" }, me = { class: "_size-[1.3em] _text-black _bg-metallic-cone _rounded _flex _items-center _justify-center _shadow-panel _pt-[0.1em]" }, fe = {
|
|
37
|
+
key: 0,
|
|
38
|
+
class: "_text-em-2xs _mt-[0.25em] _text-stroke-xl"
|
|
39
|
+
}, pe = {
|
|
40
|
+
key: 3,
|
|
41
|
+
class: "_flex _w-full _mt-0.5"
|
|
42
|
+
}, ve = {
|
|
43
|
+
__name: "SwapBalls",
|
|
44
|
+
emits: ["getBallsClick"],
|
|
45
|
+
setup(S, { emit: b }) {
|
|
46
|
+
const C = b, d = X("TrifleHub/store"), c = y(() => d.user), r = f(0);
|
|
47
|
+
function N(e = 1) {
|
|
48
|
+
var t;
|
|
49
|
+
r.value = Math.floor((((t = c.value) == null ? void 0 : t.totalBalls) || 0) * e);
|
|
50
|
+
}
|
|
51
|
+
const w = y(() => {
|
|
52
|
+
var e;
|
|
53
|
+
return r.value > 0 && r.value <= ((e = c.value) == null ? void 0 : e.totalBalls);
|
|
54
|
+
}), n = f(), m = f(!1), j = y(() => {
|
|
55
|
+
var e;
|
|
56
|
+
return {
|
|
57
|
+
// success: '🪄',
|
|
58
|
+
error: "❌",
|
|
59
|
+
pending: "⏳"
|
|
60
|
+
}[(e = n.value) == null ? void 0 : e.type];
|
|
61
|
+
}), h = (e, t, g = {}) => {
|
|
62
|
+
m.value = !1, n.value = { type: e, message: t, data: g };
|
|
63
|
+
}, G = () => n.value = null, A = f(!1), _ = y(() => {
|
|
64
|
+
var e;
|
|
65
|
+
return (e = c.value) == null ? void 0 : e.totalBalls;
|
|
66
|
+
}), k = f(), M = () => {
|
|
67
|
+
const e = "_animate-shake-x-micro-fast";
|
|
68
|
+
k.value.classList.add(e), setTimeout(() => k.value.classList.remove(e), 120);
|
|
69
|
+
};
|
|
70
|
+
async function U() {
|
|
71
|
+
if (d.user)
|
|
72
|
+
try {
|
|
73
|
+
A.value = !0, await d.fetchUserStatus();
|
|
74
|
+
} catch (e) {
|
|
75
|
+
throw console.error(e), new Error("Couldn't get your BALL$ balance", { cause: e });
|
|
76
|
+
} finally {
|
|
77
|
+
A.value = !1;
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
U();
|
|
81
|
+
const P = async () => {
|
|
82
|
+
if (!r.value)
|
|
83
|
+
return h("error", "Enter an amount to swap first!");
|
|
84
|
+
try {
|
|
85
|
+
h("pending", "Swapping...");
|
|
86
|
+
const t = await (await fetch(d.backendUrl + "/farcaster/award", {
|
|
87
|
+
method: "POST",
|
|
88
|
+
headers: {
|
|
89
|
+
"Content-Type": "application/json",
|
|
90
|
+
Authorization: `Bearer ${d.authToken}`
|
|
91
|
+
},
|
|
92
|
+
body: JSON.stringify({
|
|
93
|
+
points: r.value
|
|
94
|
+
// Integer. Required. Number of points to swap to lotto-balls (awarded to the calling user).
|
|
95
|
+
})
|
|
96
|
+
})).json();
|
|
97
|
+
if (console.log(t), t.success)
|
|
98
|
+
console.log("Swap successful"), h("success", null, t), r.value = 0, U();
|
|
99
|
+
else
|
|
100
|
+
throw new Error("Swap failed", { cause: t });
|
|
101
|
+
} catch (e) {
|
|
102
|
+
console.log({ error: e }), console.error(e), h("error", `bZZZt... ${e.message}`, {
|
|
103
|
+
detail: (e.cause ? JSON.stringify(e.cause) : e).toString()
|
|
104
|
+
});
|
|
105
|
+
}
|
|
106
|
+
};
|
|
107
|
+
function z() {
|
|
108
|
+
C("getBallsClick");
|
|
109
|
+
}
|
|
110
|
+
return (e, t) => {
|
|
111
|
+
var g, E, D;
|
|
112
|
+
return l(), s("form", {
|
|
113
|
+
ref_key: "el",
|
|
114
|
+
ref: k,
|
|
115
|
+
class: "trifle-hub-ui _bg-metallic-linear _p-4 _rounded-lg _shadow-panel _flex _flex-col _items-center _gap-2.5 _text-2xl _text-stroke-2xl _text-right",
|
|
116
|
+
onSubmit: Z(P, ["prevent"])
|
|
117
|
+
}, [
|
|
118
|
+
a("header", W, [
|
|
119
|
+
a("div", $, [
|
|
120
|
+
(g = c.value) != null && g.avatar ? (l(), s("img", {
|
|
121
|
+
key: 0,
|
|
122
|
+
src: (E = c.value) == null ? void 0 : E.avatar,
|
|
123
|
+
class: "_size-[1.2em] _rounded-full"
|
|
124
|
+
}, null, 8, ee)) : (l(), s("div", {
|
|
125
|
+
key: 1,
|
|
126
|
+
alt: "smiley face with dashed outline",
|
|
127
|
+
class: "_size-[1.375em] _flex-shrink-0 _rounded-full _bg-cover _bg-center _opacity-30 _animate-wiggleff",
|
|
128
|
+
tabindex: "-1",
|
|
129
|
+
style: I({
|
|
130
|
+
backgroundImage: `url(${O(J)})`,
|
|
131
|
+
mixBlendMode: "multiply"
|
|
132
|
+
})
|
|
133
|
+
}, null, 4)),
|
|
134
|
+
c.value ? (l(), s("div", te, u(((D = c.value) == null ? void 0 : D.username) || "me"), 1)) : (l(), s("div", se, "who r u??"))
|
|
135
|
+
]),
|
|
136
|
+
a("button", {
|
|
137
|
+
type: "button",
|
|
138
|
+
class: "_text-em-xs _shadow-panel _pl-[0.3em] _pr-[0.35em] _rounded-full _bg-metallic-cone _leading-none _h-[1.375em] _flex _items-center _gap-[0.15em]",
|
|
139
|
+
onClick: t[0] || (t[0] = (...o) => e.openBallsHub && e.openBallsHub(...o))
|
|
140
|
+
}, [
|
|
141
|
+
t[3] || (t[3] = a("span", null, "🪩", -1)),
|
|
142
|
+
A.value ? (l(), s("span", le, "...")) : (l(), s("span", {
|
|
143
|
+
key: 1,
|
|
144
|
+
class: x(["_text-stroke-xl", { "_text-rot": r.value > 0 }])
|
|
145
|
+
}, u(((_.value || 0) - r.value).toLocaleString()), 3))
|
|
146
|
+
])
|
|
147
|
+
]),
|
|
148
|
+
_.value > 0 ? (l(), s("div", ae, [
|
|
149
|
+
F(a("input", {
|
|
150
|
+
type: "number",
|
|
151
|
+
class: "_flex-1 _border _w-0 _text-right _p-0",
|
|
152
|
+
"onUpdate:modelValue": t[1] || (t[1] = (o) => r.value = o),
|
|
153
|
+
placeholder: "0",
|
|
154
|
+
min: "0",
|
|
155
|
+
max: _.value,
|
|
156
|
+
step: "1",
|
|
157
|
+
onChange: G,
|
|
158
|
+
disabled: !_.value
|
|
159
|
+
}, null, 40, ne), [
|
|
160
|
+
[H, r.value]
|
|
161
|
+
]),
|
|
162
|
+
a("div", oe, [
|
|
163
|
+
T(L, { animate: w.value }, null, 8, ["animate"])
|
|
164
|
+
])
|
|
165
|
+
])) : i("", !0),
|
|
166
|
+
_.value > 0 ? (l(), s("div", re, [
|
|
167
|
+
(l(), s(p, null, K([0.1, 0.25, 0.5, 0.75, 1], (o) => a("button", {
|
|
168
|
+
key: o,
|
|
169
|
+
type: "button",
|
|
170
|
+
class: "_text-em-3xs _text-stroke-3xl _shadow-panel _px-[0.5em] _rounded-full _bg-metallic-cone _leading-none _h-[1.5em] _flex _items-center _gap-[0.15em]",
|
|
171
|
+
onClick: (B) => N(o)
|
|
172
|
+
}, [
|
|
173
|
+
o === 1 ? (l(), s(p, { key: 0 }, [
|
|
174
|
+
v("MAX")
|
|
175
|
+
], 64)) : (l(), s(p, { key: 1 }, [
|
|
176
|
+
v(u(o * 100) + "%", 1)
|
|
177
|
+
], 64))
|
|
178
|
+
], 8, ie)), 64))
|
|
179
|
+
])) : i("", !0),
|
|
180
|
+
_.value ? i("", !0) : (l(), s("div", ue, [
|
|
181
|
+
a("button", {
|
|
182
|
+
type: "button",
|
|
183
|
+
class: "_flex-1 _bubble-btn _px-6 _h-16 _flex _items-center _justify-center _text-xl _text-stroke-2xl _animate-scaleup-xs",
|
|
184
|
+
style: { filter: "hue-rotate(-345deg) saturate(2.5)" },
|
|
185
|
+
onClick: z
|
|
186
|
+
}, t[4] || (t[4] = [
|
|
187
|
+
a("span", {
|
|
188
|
+
style: { filter: "hue-rotate(345deg) saturate(0.9)" },
|
|
189
|
+
class: "_tracking-wide"
|
|
190
|
+
}, " 🪩 GET BALL$ 🪩 ", -1)
|
|
191
|
+
]))
|
|
192
|
+
])),
|
|
193
|
+
T(V, {
|
|
194
|
+
name: "status",
|
|
195
|
+
onAfterEnter: M
|
|
196
|
+
}, {
|
|
197
|
+
default: q(() => {
|
|
198
|
+
var o, B, Q;
|
|
199
|
+
return [
|
|
200
|
+
n.value ? (l(), s("section", {
|
|
201
|
+
class: "_w-full",
|
|
202
|
+
key: JSON.stringify(n.value)
|
|
203
|
+
}, [
|
|
204
|
+
a("div", {
|
|
205
|
+
class: x(["_w-full _bg-metallic-cone _p-2.5 _rounded-lg _shadow-panel _text-left _text-stroke-2xl _text-lg _leading-normal _flex _flex-col", {
|
|
206
|
+
"_animate-scaleup-xs": ["success", "pending"].includes(n.value.type),
|
|
207
|
+
"_text-rot": n.value.type === "error"
|
|
208
|
+
}])
|
|
209
|
+
}, [
|
|
210
|
+
a("header", ce, [
|
|
211
|
+
j.value ? (l(), s("div", _e, u(j.value), 1)) : i("", !0),
|
|
212
|
+
a("div", de, [
|
|
213
|
+
n.value.type === "success" ? (l(), s(p, { key: 0 }, [
|
|
214
|
+
v(" 🪄 BADA-BING-BADA-BOTTO, you added " + u(n.value.data.pointsAwarded) + " ball" + u(n.value.data.pointsAwarded > 1 ? "s" : "") + " ", 1),
|
|
215
|
+
T(L, {
|
|
216
|
+
class: "_mb-[0.25em]",
|
|
217
|
+
animate: !1
|
|
218
|
+
}),
|
|
219
|
+
t[5] || (t[5] = v(" to the next LOTTO!"))
|
|
220
|
+
], 64)) : (l(), s(p, { key: 1 }, [
|
|
221
|
+
v(u(n.value.message), 1)
|
|
222
|
+
], 64))
|
|
223
|
+
]),
|
|
224
|
+
(o = n.value.data) != null && o.detail ? (l(), s("button", {
|
|
225
|
+
key: 1,
|
|
226
|
+
type: "button",
|
|
227
|
+
class: "_h-[1.4em] _flex _items-center _justify-center",
|
|
228
|
+
onClick: t[2] || (t[2] = (xe) => m.value = !m.value)
|
|
229
|
+
}, [
|
|
230
|
+
a("div", me, [
|
|
231
|
+
(l(), s("svg", {
|
|
232
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
233
|
+
fill: "none",
|
|
234
|
+
viewBox: "0 0 24 24",
|
|
235
|
+
"stroke-width": "4",
|
|
236
|
+
stroke: "currentColor",
|
|
237
|
+
class: x(["_size-5/6 _opacity-75", { "_-rotate-180": m.value }])
|
|
238
|
+
}, t[6] || (t[6] = [
|
|
239
|
+
a("path", {
|
|
240
|
+
"stroke-linecap": "round",
|
|
241
|
+
"stroke-linejoin": "round",
|
|
242
|
+
d: "m19.5 8.25-7.5 7.5-7.5-7.5"
|
|
243
|
+
}, null, -1)
|
|
244
|
+
]), 2))
|
|
245
|
+
])
|
|
246
|
+
])) : i("", !0)
|
|
247
|
+
]),
|
|
248
|
+
(B = n.value.data) != null && B.detail && m.value ? (l(), s("p", fe, u((Q = n.value.data.detail) == null ? void 0 : Q.toString()), 1)) : i("", !0)
|
|
249
|
+
], 2)
|
|
250
|
+
])) : i("", !0)
|
|
251
|
+
];
|
|
252
|
+
}),
|
|
253
|
+
_: 1
|
|
254
|
+
}),
|
|
255
|
+
_.value > 0 ? (l(), s("footer", pe, [
|
|
256
|
+
a("button", {
|
|
257
|
+
type: "submit",
|
|
258
|
+
class: "_flex-1 _bubble-btn _px-6 _h-16 _flex _items-center _justify-center _text-xl _text-stroke-2xl",
|
|
259
|
+
style: I({ filter: w.value ? "hue-rotate(-345deg) saturate(2.5)" : "none" })
|
|
260
|
+
}, [
|
|
261
|
+
a("div", {
|
|
262
|
+
class: x({ "_animate-scaleup-sm": w.value })
|
|
263
|
+
}, "ADD TO LOTTO", 2)
|
|
264
|
+
], 4)
|
|
265
|
+
])) : i("", !0)
|
|
266
|
+
], 544);
|
|
267
|
+
};
|
|
268
|
+
}
|
|
269
|
+
}, ye = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
270
|
+
__proto__: null,
|
|
271
|
+
default: ve
|
|
272
|
+
}, Symbol.toStringTag, { value: "Module" }));
|
|
273
|
+
export {
|
|
274
|
+
ye as S,
|
|
275
|
+
L as _,
|
|
276
|
+
ve as a
|
|
277
|
+
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { N as T,
|
|
1
|
+
import { N as T, y as O, a as x, R as A, S as g, z as B, A as P, E as D, D as M, W as F, C as w, B as v, b as L, F as N, G as z, H as R, e as _, h as H, I as V, s as $, j as q } from "./index-BBZwHOZx.js";
|
|
2
2
|
const I = {
|
|
3
3
|
getGasPriceInEther(n, t) {
|
|
4
4
|
const o = t * n;
|