@trifle/trifle-hub 1.0.161 → 1.0.163

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.
Files changed (74) hide show
  1. package/dist/AccountIndex-Dn3bQlHS.js +144 -0
  2. package/dist/Earn-BVtdNUxL.js +255 -0
  3. package/dist/{ExchangeController-D9_uwgvR.js → ExchangeController-DKSzd5W5.js} +1 -1
  4. package/dist/{Games-M9GlINCE.js → Games-D5-koQ_A.js} +67 -58
  5. package/dist/{HelpersUtil-3kK0MJ3p.js → HelpersUtil-BPK4Kvyf.js} +4 -4
  6. package/dist/{Leaderboard-B7Mh8DS-.js → Leaderboard-X08Wq92h.js} +1 -1
  7. package/dist/Profile-DcXgQ25_.js +1818 -0
  8. package/dist/QuestCard-ABFoFHer.js +318 -0
  9. package/dist/{ReownAuthentication-CVPDiHcH.js → ReownAuthentication-CttWwnWi.js} +4 -4
  10. package/dist/{SocialsButtons-aWpzKjcb.js → SocialsButtons-DtwEuVa-.js} +1 -1
  11. package/dist/SwapBalls-jt0cB6dz.js +277 -0
  12. package/dist/{SwapController-BeK9JnGm.js → SwapController-BbHqYHlv.js} +1 -1
  13. package/dist/{TrifleGuide-CR0Ozy_0.js → TrifleGuide-z_HgLvDF.js} +1 -1
  14. package/dist/components/QuestCard.vue.d.ts +2 -0
  15. package/dist/components/ScrollMaskedX.vue.d.ts +17 -0
  16. package/dist/config/pointsConfig.d.ts +98 -0
  17. package/dist/config/socialsConfig.d.ts +12 -0
  18. package/dist/config/tailwindTheme.d.ts +12 -0
  19. package/dist/{data-capture-SpEqbF3k.js → data-capture-BAONGzwU.js} +10 -10
  20. package/dist/{email-nGysUKxe.js → email-BpcL1Cj2.js} +15 -15
  21. package/dist/{embedded-wallet-CVRT-KKq.js → embedded-wallet-BjpZdaIk.js} +20 -20
  22. package/dist/{features-ltH2yyBF.js → features-BZ1A8Jw6.js} +1 -1
  23. package/dist/{if-defined-Dy4LSJRL.js → if-defined-DmV0aIGE.js} +1 -1
  24. package/dist/{index-DHWhyTIK.js → index--wmNzxU2.js} +4 -4
  25. package/dist/{index-Dvj2aQzS.js → index-1GzFses_.js} +6 -6
  26. package/dist/{index-Cx-FU6Gm.js → index-5ech7jLW.js} +7 -7
  27. package/dist/{index-Dg7OV12A.js → index-65kw7NXq.js} +86 -86
  28. package/dist/{index-BPEOHrMY.js → index-B4sI2uyx.js} +2 -2
  29. package/dist/{index-vWXwGhx5.js → index-BOY5M7KG.js} +8 -8
  30. package/dist/{index-DB2RGu8K.js → index-B_6bbCRZ.js} +7165 -7049
  31. package/dist/{index-Br4pPBw3.js → index-BfeL-deq.js} +2 -2
  32. package/dist/{index-JL3Wermk.js → index-BqmTrFwO.js} +4 -4
  33. package/dist/{index-B6ReSoq4.js → index-Bsz4RhGO.js} +12 -12
  34. package/dist/{index-BIohKOaQ.js → index-Bv-YtpxG.js} +101 -101
  35. package/dist/{index-CABGgn9P.js → index-BwERftbf.js} +2 -2
  36. package/dist/{index-Dpn8_aG_.js → index-C6jVAUHA.js} +23 -23
  37. package/dist/{index-D0PeBPfJ.js → index-C9HDtjum.js} +8 -8
  38. package/dist/{index-C2kYO0cy.js → index-COS_unoF.js} +4 -4
  39. package/dist/{index-B5tdNBnN.js → index-CPLK5vz3.js} +5 -5
  40. package/dist/{index-CGTgmNWF.js → index-CaMtpfj6.js} +7 -7
  41. package/dist/{index-CAqkQtOq.js → index-Cd-9CkD7.js} +2 -2
  42. package/dist/{index-D8jtytdS.js → index-Cn96EYGe.js} +4 -4
  43. package/dist/{index-DFRmrUjX.js → index-CwMgCQF9.js} +1 -1
  44. package/dist/{index-fsHFGWT7.js → index-D5foIVXV.js} +2 -2
  45. package/dist/{index-C2ffuAYb.js → index-D9Wrhsie.js} +4 -4
  46. package/dist/{index-cQyA4S9L.js → index-DLyASpCu.js} +7 -7
  47. package/dist/{index-C2PmirTf.js → index-DTz2CwC1.js} +3 -3
  48. package/dist/{index-zrzeJIBS.js → index-DU-zD9-x.js} +4 -4
  49. package/dist/{index-5j1niEF0.js → index-DY1X4FAj.js} +3 -3
  50. package/dist/{index-el2rRTti.js → index-DZ4JGqbI.js} +1 -1
  51. package/dist/{index-D7KogVqW.js → index-DacQRuok.js} +3 -3
  52. package/dist/{index-356dXR_D.js → index-DikDXdTK.js} +5 -5
  53. package/dist/{index-Ce6TjHV2.js → index-DpgkQYtx.js} +3 -3
  54. package/dist/{index-Ry5qK6ET.js → index-PJbwRCkP.js} +4 -4
  55. package/dist/{index-D_P4Urp2.js → index-Snl54idt.js} +4 -4
  56. package/dist/{index-fMGZyGCM.js → index-c7T8N6lx.js} +3 -3
  57. package/dist/{index-B6EegOWr.js → index-hdzaDr7r.js} +3 -3
  58. package/dist/{index-BHFhjWws.js → index-n-vdz18K.js} +7 -7
  59. package/dist/{index-DUlBiQtl.js → index-zUAmz5W0.js} +3 -3
  60. package/dist/index.es.js +2 -2
  61. package/dist/{onramp-DqtQTg4r.js → onramp-BUV27771.js} +47 -47
  62. package/dist/{pay-with-exchange-C0oNjyvj.js → pay-with-exchange-BONwE5c2.js} +17 -17
  63. package/dist/{receive-Bb7EcFWE.js → receive-DjIsYMrY.js} +5 -5
  64. package/dist/{ref-CujhPCia.js → ref-BnJwwV1J.js} +2 -2
  65. package/dist/{send-DGTDv4Th.js → send-DCCN5WWk.js} +18 -18
  66. package/dist/{socials-Cp4djpe9.js → socials-sQlxpcN4.js} +20 -20
  67. package/dist/{swaps-DD8uJyu7.js → swaps-BR-jpNEV.js} +11 -11
  68. package/dist/{transactions-DYOP0lkN.js → transactions-BI02pyWr.js} +7 -7
  69. package/dist/{w3m-modal-JJJ6hUHU.js → w3m-modal-Dblq6D4h.js} +20 -20
  70. package/package.json +2 -1
  71. package/dist/AccountIndex-BEX1k5b6.js +0 -128
  72. package/dist/Earn-CgpWSs87.js +0 -521
  73. package/dist/Profile-Ct-mDc2u.js +0 -1696
  74. 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-DcXgQ25_.js";
4
+ import { o as S } from "./index-B_6bbCRZ.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 r, openBlock as i, 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-B_6bbCRZ.js";
3
+ import { H as Z } from "./HubPageHeader-VDMilTIN.js";
4
+ import { storeToRefs as q } from "pinia";
5
+ import { _ as ee } from "./SocialsButtons-DtwEuVa-.js";
6
+ import { _ as te, a as le } from "./SwapBalls-jt0cB6dz.js";
7
+ import { _ as se } from "./QuestCard-ABFoFHer.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" }, ie = {
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
+ }, re = { 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]" }, ke = { class: "_flex-1 _text-center _text-stroke-2xl" }, ye = { 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), k = f(null), P = f(0), L = f("all"), u = f("earn"), { backendUrl: U, isAuthenticated: y } = 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, k.value = null;
64
+ try {
65
+ if (y.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), k.value = "Failed to load quest data. Please try again later.";
109
+ } finally {
110
+ h.value = !1;
111
+ }
112
+ };
113
+ return j(y, () => {
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 i(), r("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(y) ? v("", !0) : (i(), r("section", ie, [
148
+ t("div", re, [
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(y) ? (i(), r("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 ? (i(), r("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" ? (i(), r("div", me, [
196
+ h.value ? (i(), r("div", fe, [
197
+ (i(), r(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
+ ])) : k.value ? (i(), r("div", pe, A(k.value), 1)) : (i(), r("div", ge, [
208
+ (i(!0), r(H, null, z(M.value, (l) => (i(), 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" ? (i(), r("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", ke, [
225
+ e[15] || (e[15] = w(" Add ")),
226
+ e[16] || (e[16] = t("span", { class: "_inline-block" }, "balls", -1)),
227
+ e[17] || (e[17] = w(" to next week's ")),
228
+ t("button", {
229
+ class: "_underline",
230
+ onClick: e[3] || (e[3] = (l) => p($)("games", !1, { tab: "lotteries" }))
231
+ }, " USDC contest"),
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", ye, [
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-9837718d"]]);
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-DB2RGu8K.js";
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-B_6bbCRZ.js";
2
2
  const D = 0, b = {
3
3
  paymentAsset: null,
4
4
  amount: null,