@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,144 @@
|
|
|
1
|
+
import { inject as g, computed as n, createBlock as _, openBlock as p, withCtx as a, createElementVNode as i, createVNode as u, createTextVNode as l, normalizeClass as A, toDisplayString as k, unref as L, onMounted as C, watch as x } from "vue";
|
|
2
|
+
import { storeToRefs as T } from "pinia";
|
|
3
|
+
import { A as N, a as W, _ as o, b as F } from "./Profile-YoSRBmlN.js";
|
|
4
|
+
import { o as S } from "./index-BBZwHOZx.js";
|
|
5
|
+
const $ = ["data"], B = { class: "_w-full _max-w-[22em] _mx-auto _px-1.5 sm:_px-8 _flex _flex-col _gap-4 _items-center" }, D = { class: "_flex _flex-col _w-full _leading-none" }, P = {
|
|
6
|
+
__name: "ConnectAccount",
|
|
7
|
+
setup(y) {
|
|
8
|
+
const s = g("TrifleHub/store"), t = n(() => !!s.isFarcaster), r = n(() => s.getPlatformData("wallet")), d = n(() => s.accountConnected), c = n(() => s.currentWalletNeedsAuth), m = n(() => s.accountAddress), v = n(() => m.value ? r.value.find((b) => {
|
|
9
|
+
var e, f;
|
|
10
|
+
return ((e = b.id) == null ? void 0 : e.toLowerCase()) === ((f = m.value) == null ? void 0 : f.toLowerCase());
|
|
11
|
+
}) : null);
|
|
12
|
+
return (b, e) => (p(), _(N, null, {
|
|
13
|
+
avatar: a(() => [
|
|
14
|
+
i("object", {
|
|
15
|
+
data: L(S),
|
|
16
|
+
alt: "smiley face with dashed outline",
|
|
17
|
+
class: "_w-full _block _transform _origin-center _scale-[1.35] sm:_scale-[1.45]"
|
|
18
|
+
}, null, 8, $)
|
|
19
|
+
]),
|
|
20
|
+
title: a(() => e[0] || (e[0] = [
|
|
21
|
+
i("div", { class: "_text-stroke-2xl" }, k("who r u??"), -1)
|
|
22
|
+
])),
|
|
23
|
+
description: a(() => e[1] || (e[1] = [
|
|
24
|
+
i("p", { class: "_-mt-2" }, [
|
|
25
|
+
l(" Link identities → "),
|
|
26
|
+
i("span", {
|
|
27
|
+
class: "_ffborder-b _border-current",
|
|
28
|
+
style: { "border-style": "dashed" }
|
|
29
|
+
}, " earn BALL$"),
|
|
30
|
+
l(" 🪩 ")
|
|
31
|
+
], -1)
|
|
32
|
+
])),
|
|
33
|
+
default: a(() => {
|
|
34
|
+
var f, w;
|
|
35
|
+
return [
|
|
36
|
+
i("section", B, [
|
|
37
|
+
i("nav", D, [
|
|
38
|
+
d.value && c.value && !t.value ? (p(), _(W, {
|
|
39
|
+
key: 0,
|
|
40
|
+
"wallet-address": m.value,
|
|
41
|
+
"wallet-avatar": (f = v.value) == null ? void 0 : f.avatar,
|
|
42
|
+
"display-name": ((w = v.value) == null ? void 0 : w.username) || m.value,
|
|
43
|
+
class: "_mb-1"
|
|
44
|
+
}, null, 8, ["wallet-address", "wallet-avatar", "display-name"])) : (p(), _(o, {
|
|
45
|
+
key: 1,
|
|
46
|
+
platform: "wallet",
|
|
47
|
+
points: "+10",
|
|
48
|
+
disabled: t.value
|
|
49
|
+
}, {
|
|
50
|
+
default: a(() => e[2] || (e[2] = [
|
|
51
|
+
l(" Wallet Login ")
|
|
52
|
+
])),
|
|
53
|
+
_: 1
|
|
54
|
+
}, 8, ["disabled"])),
|
|
55
|
+
u(o, {
|
|
56
|
+
platform: "solana",
|
|
57
|
+
points: "+10",
|
|
58
|
+
disabled: t.value
|
|
59
|
+
}, {
|
|
60
|
+
default: a(() => e[3] || (e[3] = [
|
|
61
|
+
l(" Solana Login ")
|
|
62
|
+
])),
|
|
63
|
+
_: 1
|
|
64
|
+
}, 8, ["disabled"]),
|
|
65
|
+
u(o, {
|
|
66
|
+
platform: "discord",
|
|
67
|
+
points: "+10",
|
|
68
|
+
disabled: t.value
|
|
69
|
+
}, {
|
|
70
|
+
default: a(() => e[4] || (e[4] = [
|
|
71
|
+
l(" Discord Login ")
|
|
72
|
+
])),
|
|
73
|
+
_: 1
|
|
74
|
+
}, 8, ["disabled"]),
|
|
75
|
+
u(o, {
|
|
76
|
+
platform: "twitter",
|
|
77
|
+
points: "+10",
|
|
78
|
+
disabled: t.value
|
|
79
|
+
}, {
|
|
80
|
+
default: a(() => e[5] || (e[5] = [
|
|
81
|
+
l(" TwitterX Login ")
|
|
82
|
+
])),
|
|
83
|
+
_: 1
|
|
84
|
+
}, 8, ["disabled"]),
|
|
85
|
+
u(o, {
|
|
86
|
+
platform: "telegram",
|
|
87
|
+
points: "+10",
|
|
88
|
+
disabled: t.value
|
|
89
|
+
}, {
|
|
90
|
+
default: a(() => e[6] || (e[6] = [
|
|
91
|
+
l(" Telegram Login ")
|
|
92
|
+
])),
|
|
93
|
+
_: 1
|
|
94
|
+
}, 8, ["disabled"]),
|
|
95
|
+
u(o, {
|
|
96
|
+
platform: "farcaster",
|
|
97
|
+
points: "+10",
|
|
98
|
+
class: A({ "_order-first": t.value })
|
|
99
|
+
}, {
|
|
100
|
+
default: a(() => e[7] || (e[7] = [
|
|
101
|
+
l(" Farcaster Login ")
|
|
102
|
+
])),
|
|
103
|
+
_: 1
|
|
104
|
+
}, 8, ["class"]),
|
|
105
|
+
u(o, {
|
|
106
|
+
platform: "email",
|
|
107
|
+
points: "+10",
|
|
108
|
+
disabled: t.value,
|
|
109
|
+
class: "_order-last"
|
|
110
|
+
}, {
|
|
111
|
+
default: a(() => e[8] || (e[8] = [
|
|
112
|
+
l(" Email Login ")
|
|
113
|
+
])),
|
|
114
|
+
_: 1
|
|
115
|
+
}, 8, ["disabled"])
|
|
116
|
+
])
|
|
117
|
+
])
|
|
118
|
+
];
|
|
119
|
+
}),
|
|
120
|
+
_: 1
|
|
121
|
+
}));
|
|
122
|
+
}
|
|
123
|
+
}, U = {
|
|
124
|
+
__name: "AccountIndex",
|
|
125
|
+
setup(y) {
|
|
126
|
+
const s = g("TrifleHub/store"), { isAuthenticated: t, user: r } = T(s), d = () => {
|
|
127
|
+
var c;
|
|
128
|
+
t.value && ((c = r.value) != null && c.username) && s.setProfileUsername(r.value.username);
|
|
129
|
+
};
|
|
130
|
+
return C(() => {
|
|
131
|
+
d();
|
|
132
|
+
}), x(t, () => {
|
|
133
|
+
d();
|
|
134
|
+
}), x(
|
|
135
|
+
() => r.value && r.value.username,
|
|
136
|
+
() => {
|
|
137
|
+
d();
|
|
138
|
+
}
|
|
139
|
+
), (c, m) => L(t) ? (p(), _(F, { key: 0 })) : (p(), _(P, { key: 1 }));
|
|
140
|
+
}
|
|
141
|
+
};
|
|
142
|
+
export {
|
|
143
|
+
U as default
|
|
144
|
+
};
|
|
@@ -0,0 +1,255 @@
|
|
|
1
|
+
import { inject as E, ref as f, computed as Q, watch as j, onMounted as J, nextTick as R, createElementBlock as i, openBlock as r, createElementVNode as t, createVNode as b, createCommentVNode as v, withCtx as S, createTextVNode as w, unref as p, normalizeStyle as D, toDisplayString as A, normalizeClass as F, TransitionGroup as K, Fragment as H, renderList as z, createBlock as W } from "vue";
|
|
2
|
+
import { m as X, n as N } from "./index-BBZwHOZx.js";
|
|
3
|
+
import { H as Z } from "./HubPageHeader-VDMilTIN.js";
|
|
4
|
+
import { storeToRefs as q } from "pinia";
|
|
5
|
+
import { _ as ee } from "./SocialsButtons-uL2_XTTy.js";
|
|
6
|
+
import { _ as te, a as le } from "./SwapBalls-ChUy9GIh.js";
|
|
7
|
+
import { _ as se } from "./QuestCard-CapG6iNR.js";
|
|
8
|
+
import { _ as ne } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
9
|
+
const ae = { class: "_flex-1 _overflow-y-scroll-masked _no-scrollbar _px-5 _w-full _flex _flex-col" }, oe = { class: "_-mt-3.5 _space-y-3.5" }, re = {
|
|
10
|
+
key: 0,
|
|
11
|
+
class: "_mt-4 _px-3.5 _py-3 _flex _flex-col _gap-3 _rounded-lg _overflow-hidden _shadow-panel _bg-metallic-cone"
|
|
12
|
+
}, ie = { class: "_relative _flex _flex-col _gap-2.5" }, _e = { class: "_flex _justify-between _items-center" }, de = { class: "_flex _items-center _min-w-0 _flex-1" }, ue = { class: "_text-right _min-w-0 _truncate _text-stroke-3xl" }, ce = { class: "_gap-[0.45rem] _mt-6 _grid _grid-cols-2 _text-stroke-2xl _text-xl _tracking-wide _mb-3" }, me = {
|
|
13
|
+
key: 0,
|
|
14
|
+
class: "_space-y-4"
|
|
15
|
+
}, fe = {
|
|
16
|
+
key: 0,
|
|
17
|
+
class: "_space-y-2"
|
|
18
|
+
}, pe = {
|
|
19
|
+
key: 1,
|
|
20
|
+
class: "_p-4 _bg-red-100 _text-red-700 _rounded-lg"
|
|
21
|
+
}, ge = {
|
|
22
|
+
key: 2,
|
|
23
|
+
class: "_space-y-2"
|
|
24
|
+
}, be = {
|
|
25
|
+
key: 1,
|
|
26
|
+
class: "_space-y-3"
|
|
27
|
+
}, ve = { class: "_text-mlg _bg-metallic-linearff _p-2.5 _rounded-lg _shadow-panel-insetff _border-4 _border-dashed _border-black/20 _text-center _flex _flex-col _gap-4" }, xe = { class: "_flex _items-center _gap-[0.75em] _justify-center _leading-none _mt-2 _-mb-1" }, he = { class: "_flex _items-center _gap-[0.5em]" }, ye = { class: "_flex-1 _text-center _text-stroke-2xl" }, ke = { class: "_mt-6 _bg-metallic-linear _p-4 _rounded-lg _shadow-panel _text-center _flex _flex-col _gap-3.5 _pb-5" }, we = { class: "_grid _grid-cols-2 _gap-2" }, $e = {
|
|
28
|
+
__name: "Earn",
|
|
29
|
+
setup(Ce) {
|
|
30
|
+
const d = E("TrifleHub/store"), x = E("hub"), { openHub: $ } = x, C = f([]), h = f(!0), y = f(null), P = f(0), L = f("all"), u = f("earn"), { backendUrl: U, isAuthenticated: k } = q(d), V = () => {
|
|
31
|
+
var s;
|
|
32
|
+
d.setProfileUsername((s = d.user) == null ? void 0 : s.username), $("profile");
|
|
33
|
+
}, O = Q(() => {
|
|
34
|
+
var s;
|
|
35
|
+
return (s = x.highlightQuestId) == null ? void 0 : s.value;
|
|
36
|
+
}), M = Q(() => {
|
|
37
|
+
var l;
|
|
38
|
+
let s = [];
|
|
39
|
+
const e = d.isFarcaster ? "farcaster" : "web", o = C.value.filter(
|
|
40
|
+
(n) => !n.hiddenFromQuests && (!n.platforms || n.platforms.includes(e))
|
|
41
|
+
);
|
|
42
|
+
L.value === "all" ? s = o : L.value === "once" ? s = o.filter((n) => n.once) : L.value === "ongoing" ? s = o.filter((n) => !n.once) : s = o;
|
|
43
|
+
const _ = s.slice().sort((n, a) => {
|
|
44
|
+
if (n.enabled && !a.enabled) return -1;
|
|
45
|
+
if (!n.enabled && a.enabled) return 1;
|
|
46
|
+
if (n.enabled && a.enabled) {
|
|
47
|
+
const m = n.completed && n.once, g = a.completed && a.once;
|
|
48
|
+
if (m && !g) return 1;
|
|
49
|
+
if (!m && g) return -1;
|
|
50
|
+
}
|
|
51
|
+
return 0;
|
|
52
|
+
}), c = (l = x.highlightQuestId) == null ? void 0 : l.value;
|
|
53
|
+
if (c) {
|
|
54
|
+
const n = _.findIndex((a) => a.id === c);
|
|
55
|
+
if (n > 0) {
|
|
56
|
+
const [a] = _.splice(n, 1);
|
|
57
|
+
_.unshift(a);
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
return _;
|
|
61
|
+
}), T = async () => {
|
|
62
|
+
var s, e, o, _, c;
|
|
63
|
+
h.value = !0, y.value = null;
|
|
64
|
+
try {
|
|
65
|
+
if (k.value || (e = (s = d.isFarcaster) == null ? void 0 : s.user) != null && e.id) {
|
|
66
|
+
const l = await fetch(`${U.value}/balls/point-categories-with-counts`, {
|
|
67
|
+
method: "POST",
|
|
68
|
+
headers: {
|
|
69
|
+
"Content-Type": "application/json"
|
|
70
|
+
// Authorization: `Bearer ${auth.authToken}`
|
|
71
|
+
},
|
|
72
|
+
body: JSON.stringify({
|
|
73
|
+
userId: ((o = d.user) == null ? void 0 : o.id) || ((c = (_ = d.isFarcaster) == null ? void 0 : _.user) == null ? void 0 : c.id)
|
|
74
|
+
})
|
|
75
|
+
});
|
|
76
|
+
if (!l.ok)
|
|
77
|
+
throw new Error(`HTTP error! status: ${l.status}`);
|
|
78
|
+
const n = await l.json();
|
|
79
|
+
P.value = n.balls.total, C.value = N.map((a) => {
|
|
80
|
+
const m = n.balls.data.filter((I) => I.name === a.id), g = m.length > 0;
|
|
81
|
+
let B = null;
|
|
82
|
+
if (!a.once && g)
|
|
83
|
+
if (a.id === "gm") {
|
|
84
|
+
const I = (/* @__PURE__ */ new Date()).toDateString(), G = m.filter(
|
|
85
|
+
(Y) => new Date(Y.createdAt).toDateString() === I
|
|
86
|
+
);
|
|
87
|
+
B = Math.min(G.length / 10 * 100, 100);
|
|
88
|
+
} else a.id === "burn-kudzu" && (B = Math.min(m.length % 10 * 10, 100));
|
|
89
|
+
return {
|
|
90
|
+
...a,
|
|
91
|
+
completed: g,
|
|
92
|
+
progress: B,
|
|
93
|
+
requiresLogin: !1,
|
|
94
|
+
enabled: a.enabled !== void 0 ? a.enabled : !0,
|
|
95
|
+
link: a.link || null
|
|
96
|
+
};
|
|
97
|
+
});
|
|
98
|
+
} else
|
|
99
|
+
P.value = 0, C.value = N.map((l) => ({
|
|
100
|
+
...l,
|
|
101
|
+
completed: !1,
|
|
102
|
+
progress: null,
|
|
103
|
+
requiresLogin: !0,
|
|
104
|
+
enabled: l.enabled !== void 0 ? l.enabled : !0,
|
|
105
|
+
link: l.link || null
|
|
106
|
+
}));
|
|
107
|
+
} catch (l) {
|
|
108
|
+
console.error("Error fetching quest data:", l), y.value = "Failed to load quest data. Please try again later.";
|
|
109
|
+
} finally {
|
|
110
|
+
h.value = !1;
|
|
111
|
+
}
|
|
112
|
+
};
|
|
113
|
+
return j(k, () => {
|
|
114
|
+
T();
|
|
115
|
+
}), J(() => {
|
|
116
|
+
T();
|
|
117
|
+
}), j(
|
|
118
|
+
() => {
|
|
119
|
+
var s;
|
|
120
|
+
return [(s = x.highlightQuestId) == null ? void 0 : s.value, h.value];
|
|
121
|
+
},
|
|
122
|
+
async ([s, e]) => {
|
|
123
|
+
var o;
|
|
124
|
+
!s || e || (await R(), (o = document.getElementById(`thub-quest-${s}`)) == null || o.scrollIntoView({
|
|
125
|
+
behavior: "smooth",
|
|
126
|
+
block: "nearest"
|
|
127
|
+
}));
|
|
128
|
+
},
|
|
129
|
+
{ flush: "post" }
|
|
130
|
+
), (s, e) => {
|
|
131
|
+
var o, _, c;
|
|
132
|
+
return r(), i("div", ae, [
|
|
133
|
+
t("header", oe, [
|
|
134
|
+
b(Z, null, {
|
|
135
|
+
icon: S(() => e[5] || (e[5] = [
|
|
136
|
+
t("img", {
|
|
137
|
+
src: X,
|
|
138
|
+
alt: "📈🪩",
|
|
139
|
+
class: "_h-[1.75em]"
|
|
140
|
+
}, null, -1)
|
|
141
|
+
])),
|
|
142
|
+
default: S(() => [
|
|
143
|
+
e[6] || (e[6] = w(" BALL$ "))
|
|
144
|
+
]),
|
|
145
|
+
_: 1
|
|
146
|
+
}),
|
|
147
|
+
p(k) ? v("", !0) : (r(), i("section", re, [
|
|
148
|
+
t("div", ie, [
|
|
149
|
+
e[9] || (e[9] = t("div", null, [
|
|
150
|
+
t("p", { class: "_text-mlg" }, "You might have 🪩BALL$ to claim!")
|
|
151
|
+
], -1)),
|
|
152
|
+
t("div", _e, [
|
|
153
|
+
e[8] || (e[8] = t("p", { class: "_italic _text-[#888] _text-em-sm _animate-blink" }, "Login to claim →", -1)),
|
|
154
|
+
t("button", {
|
|
155
|
+
class: "_bubble-btn _px-6 _py-2",
|
|
156
|
+
style: { filter: "hue-rotate(-340deg) saturate(1.8)" },
|
|
157
|
+
onClick: e[0] || (e[0] = (l) => p($)("account"))
|
|
158
|
+
}, e[7] || (e[7] = [
|
|
159
|
+
t("span", { style: { filter: "hue-rotate(340deg) saturate(0.5)" } }, "Login", -1)
|
|
160
|
+
]))
|
|
161
|
+
])
|
|
162
|
+
])
|
|
163
|
+
])),
|
|
164
|
+
p(k) ? (r(), i("section", {
|
|
165
|
+
key: 1,
|
|
166
|
+
class: "_px-3 _py-3 _bg-metallic-cone _rounded-lg _shadow-panel _flex _justify-between _items-center _flex-wrap _gap-2 _leading-none _text-3xl _cursor-pointer _whitespace-nowrap",
|
|
167
|
+
onClick: V
|
|
168
|
+
}, [
|
|
169
|
+
t("div", de, [
|
|
170
|
+
(o = p(d).user) != null && o.avatar ? (r(), i("div", {
|
|
171
|
+
key: 0,
|
|
172
|
+
class: "_size-[1.125em] _block _rounded-full _shadow-panel-inset _bg-cover _bg-center",
|
|
173
|
+
style: D({ backgroundImage: `url(${(_ = p(d).user) == null ? void 0 : _.avatar})` })
|
|
174
|
+
}, null, 4)) : v("", !0),
|
|
175
|
+
e[10] || (e[10] = t("div", { class: "_opacity-30 _text-mlg _text-stroke-lg _ml-[0.37em] _min-w-0 _truncate" }, " Your Balance ", -1))
|
|
176
|
+
]),
|
|
177
|
+
t("div", ue, A(((c = P.value) == null ? void 0 : c.toLocaleString()) || "???"), 1),
|
|
178
|
+
e[11] || (e[11] = t("div", { class: "_flex-shrink-0" }, "🪩", -1))
|
|
179
|
+
])) : v("", !0)
|
|
180
|
+
]),
|
|
181
|
+
t("nav", ce, [
|
|
182
|
+
t("button", {
|
|
183
|
+
class: F(["_bubble-btn _px-4.5 _h-16", { "_animate-wiggle-sm": u.value === "earn" }]),
|
|
184
|
+
onClick: e[1] || (e[1] = (l) => u.value = "earn"),
|
|
185
|
+
style: D(u.value === "earn" ? "filter: hue-rotate(-70deg) saturate(1.6)" : "")
|
|
186
|
+
}, " earn ", 6),
|
|
187
|
+
t("button", {
|
|
188
|
+
class: F(["_bubble-btn _px-4.5 _h-16", { "_animate-wiggle-sm": u.value === "spend" }]),
|
|
189
|
+
onClick: e[2] || (e[2] = (l) => u.value = "spend"),
|
|
190
|
+
style: D(u.value === "spend" ? "filter: hue-rotate(-345deg) saturate(2.5)" : "")
|
|
191
|
+
}, " redeem ", 6)
|
|
192
|
+
]),
|
|
193
|
+
b(K, { name: "thub-page-group" }, {
|
|
194
|
+
default: S(() => [
|
|
195
|
+
u.value === "earn" ? (r(), i("div", me, [
|
|
196
|
+
h.value ? (r(), i("div", fe, [
|
|
197
|
+
(r(), i(H, null, z(3, (l) => t("div", {
|
|
198
|
+
key: `loader-${l}`,
|
|
199
|
+
class: "_flex _items-center _gap-3 _p-3 _bg-metallic-linear _shadow-panel _rounded-lg animate-pulse"
|
|
200
|
+
}, e[12] || (e[12] = [
|
|
201
|
+
t("div", { class: "_size-8 _rounded-full _bg-black/30" }, null, -1),
|
|
202
|
+
t("div", { class: "_flex-1 _space-y-2" }, [
|
|
203
|
+
t("div", { class: "_h-4 _bg-black/30 _rounded w-3/4" })
|
|
204
|
+
], -1),
|
|
205
|
+
t("div", { class: "_h-6 _w-12 _bg-black/30 _rounded" }, null, -1)
|
|
206
|
+
]))), 64))
|
|
207
|
+
])) : y.value ? (r(), i("div", pe, A(y.value), 1)) : (r(), i("div", ge, [
|
|
208
|
+
(r(!0), i(H, null, z(M.value, (l) => (r(), W(se, {
|
|
209
|
+
key: l.id,
|
|
210
|
+
quest: l,
|
|
211
|
+
highlight: l.id === O.value,
|
|
212
|
+
onPointsUpdated: T
|
|
213
|
+
}, null, 8, ["quest", "highlight"]))), 128))
|
|
214
|
+
]))
|
|
215
|
+
])) : v("", !0),
|
|
216
|
+
u.value === "spend" ? (r(), i("div", be, [
|
|
217
|
+
t("section", ve, [
|
|
218
|
+
t("header", xe, [
|
|
219
|
+
e[13] || (e[13] = t("div", { class: "_text-[2.5em] _animate-wiggle-sm" }, "🪩", -1)),
|
|
220
|
+
e[14] || (e[14] = t("div", { class: "_text-[1.75em]" }, "➡️", -1)),
|
|
221
|
+
b(te, { class: "_h-[2.5em]" })
|
|
222
|
+
]),
|
|
223
|
+
t("div", he, [
|
|
224
|
+
t("p", ye, [
|
|
225
|
+
e[15] || (e[15] = w(" Add ")),
|
|
226
|
+
e[16] || (e[16] = t("span", { class: "_inline-block" }, "lotto-balls", -1)),
|
|
227
|
+
e[17] || (e[17] = w(" to the next ")),
|
|
228
|
+
t("button", {
|
|
229
|
+
class: "_underline",
|
|
230
|
+
onClick: e[3] || (e[3] = (l) => p($)("games"))
|
|
231
|
+
}, "weekly USDC lottery"),
|
|
232
|
+
e[18] || (e[18] = w("! "))
|
|
233
|
+
])
|
|
234
|
+
]),
|
|
235
|
+
b(le, {
|
|
236
|
+
onGetBallsClick: e[4] || (e[4] = (l) => u.value = "earn")
|
|
237
|
+
})
|
|
238
|
+
])
|
|
239
|
+
])) : v("", !0)
|
|
240
|
+
]),
|
|
241
|
+
_: 1
|
|
242
|
+
}),
|
|
243
|
+
t("section", ke, [
|
|
244
|
+
e[19] || (e[19] = t("div", { class: "_opacity-30 _animate-wiggle-sm" }, "follow for more BALL$", -1)),
|
|
245
|
+
t("div", we, [
|
|
246
|
+
b(ee)
|
|
247
|
+
])
|
|
248
|
+
])
|
|
249
|
+
]);
|
|
250
|
+
};
|
|
251
|
+
}
|
|
252
|
+
}, Qe = /* @__PURE__ */ ne($e, [["__scopeId", "data-v-188a4258"]]);
|
|
253
|
+
export {
|
|
254
|
+
Qe as default
|
|
255
|
+
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as k, g as U, C as l, E as w, b as E, S as A, c as x, f as P, d as N, e as I, O as L, N as f, h as C, B as T, i as W, s as _, j as v } from "./index-
|
|
1
|
+
import { a as k, g as U, C as l, E as w, b as E, S as A, c as x, f as P, d as N, e as I, O as L, N as f, h as C, B as T, i as W, s as _, j as v } from "./index-BBZwHOZx.js";
|
|
2
2
|
const D = 0, b = {
|
|
3
3
|
paymentAsset: null,
|
|
4
4
|
amount: null,
|