@trifle/trifle-hub 1.0.162 → 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.
- package/dist/{AccountIndex-CTjOLmjP.js → AccountIndex-Dn3bQlHS.js} +2 -2
- package/dist/{Earn-DMrF4S31.js → Earn-BVtdNUxL.js} +31 -31
- package/dist/{ExchangeController-6NjzC79Z.js → ExchangeController-DKSzd5W5.js} +1 -1
- package/dist/{Games-CLUUM0mP.js → Games-D5-koQ_A.js} +65 -56
- package/dist/{HelpersUtil-Dj0wfodo.js → HelpersUtil-BPK4Kvyf.js} +2 -2
- package/dist/{Leaderboard-CuG041PJ.js → Leaderboard-X08Wq92h.js} +1 -1
- package/dist/{Profile-YoSRBmlN.js → Profile-DcXgQ25_.js} +2 -2
- package/dist/{QuestCard-CapG6iNR.js → QuestCard-ABFoFHer.js} +1 -1
- package/dist/{ReownAuthentication-ClyLCgeo.js → ReownAuthentication-CttWwnWi.js} +1 -1
- package/dist/{SocialsButtons-uL2_XTTy.js → SocialsButtons-DtwEuVa-.js} +1 -1
- package/dist/{SwapBalls-ChUy9GIh.js → SwapBalls-jt0cB6dz.js} +13 -13
- package/dist/{SwapController-Q_rNvOur.js → SwapController-BbHqYHlv.js} +1 -1
- package/dist/{TrifleGuide-Dn1FDCub.js → TrifleGuide-z_HgLvDF.js} +1 -1
- package/dist/{data-capture-C1pQbx1q.js → data-capture-BAONGzwU.js} +4 -4
- package/dist/{email-D2uCwQIX.js → email-BpcL1Cj2.js} +8 -8
- package/dist/{embedded-wallet-C4TtNIAk.js → embedded-wallet-BjpZdaIk.js} +12 -12
- package/dist/{features-p7PixpOp.js → features-BZ1A8Jw6.js} +1 -1
- package/dist/{if-defined-Db2RYcoI.js → if-defined-DmV0aIGE.js} +1 -1
- package/dist/{index-Cs4b_oEO.js → index--wmNzxU2.js} +4 -4
- package/dist/{index-DoLlp6XK.js → index-1GzFses_.js} +2 -2
- package/dist/{index-wAnKlCQm.js → index-5ech7jLW.js} +7 -7
- package/dist/{index-DISZZqKI.js → index-65kw7NXq.js} +31 -31
- package/dist/{index-CCLcIWvl.js → index-B4sI2uyx.js} +2 -2
- package/dist/{index-BgP8qyHN.js → index-BOY5M7KG.js} +3 -3
- package/dist/{index-BBZwHOZx.js → index-B_6bbCRZ.js} +1506 -1502
- package/dist/{index-Be1ETcsd.js → index-BfeL-deq.js} +2 -2
- package/dist/{index-CRnT53WM.js → index-BqmTrFwO.js} +2 -2
- package/dist/{index-CEp7-6gC.js → index-Bsz4RhGO.js} +3 -3
- package/dist/{index-DT6SLq6J.js → index-Bv-YtpxG.js} +1 -1
- package/dist/{index-CGVqIMrP.js → index-BwERftbf.js} +2 -2
- package/dist/{index-CnEa77cL.js → index-C6jVAUHA.js} +13 -13
- package/dist/{index-Diei326e.js → index-C9HDtjum.js} +4 -4
- package/dist/{index-DKxX5-s9.js → index-COS_unoF.js} +4 -4
- package/dist/{index-BlHGPGWv.js → index-CPLK5vz3.js} +3 -3
- package/dist/{index-BCwqn9QZ.js → index-CaMtpfj6.js} +2 -2
- package/dist/{index-Ch8Y71PT.js → index-Cd-9CkD7.js} +2 -2
- package/dist/{index-BPUorytH.js → index-Cn96EYGe.js} +4 -4
- package/dist/{index-Bw4BSPxV.js → index-CwMgCQF9.js} +1 -1
- package/dist/{index-C5VTkzn_.js → index-D5foIVXV.js} +2 -2
- package/dist/{index-CldzoQ7r.js → index-D9Wrhsie.js} +4 -4
- package/dist/{index-u4YndyyJ.js → index-DLyASpCu.js} +7 -7
- package/dist/{index-D6xLy_9u.js → index-DTz2CwC1.js} +3 -3
- package/dist/{index-CG4RerkJ.js → index-DU-zD9-x.js} +2 -2
- package/dist/{index-iR5Uvd14.js → index-DY1X4FAj.js} +3 -3
- package/dist/{index-B874HQ1C.js → index-DZ4JGqbI.js} +1 -1
- package/dist/{index-B7YpXXOx.js → index-DacQRuok.js} +3 -3
- package/dist/{index-DCC9iWUP.js → index-DikDXdTK.js} +3 -3
- package/dist/{index-Dw0RgphK.js → index-DpgkQYtx.js} +3 -3
- package/dist/{index-Bz5RbsFD.js → index-PJbwRCkP.js} +4 -4
- package/dist/{index-ByEuzHZx.js → index-Snl54idt.js} +4 -4
- package/dist/{index-CbMqJqgs.js → index-c7T8N6lx.js} +3 -3
- package/dist/{index-BUYdR_2_.js → index-hdzaDr7r.js} +3 -3
- package/dist/{index-DPKtJuhj.js → index-n-vdz18K.js} +3 -3
- package/dist/{index-gICsvOhN.js → index-zUAmz5W0.js} +3 -3
- package/dist/index.es.js +2 -2
- package/dist/{onramp-3E-5EGhn.js → onramp-BUV27771.js} +14 -14
- package/dist/{pay-with-exchange-DBpQTxCY.js → pay-with-exchange-BONwE5c2.js} +15 -15
- package/dist/{receive-DDXsTS6R.js → receive-DjIsYMrY.js} +5 -5
- package/dist/{ref-CRKmoaio.js → ref-BnJwwV1J.js} +2 -2
- package/dist/{send-Bp9p9m9K.js → send-DCCN5WWk.js} +15 -15
- package/dist/{socials-C1MyEZn9.js → socials-sQlxpcN4.js} +10 -10
- package/dist/{swaps-Hpy8DwH3.js → swaps-BR-jpNEV.js} +11 -11
- package/dist/{transactions-BV1mkVO3.js → transactions-BI02pyWr.js} +3 -3
- package/dist/{w3m-modal-Du6ALWMy.js → w3m-modal-Dblq6D4h.js} +12 -12
- package/package.json +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
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
2
|
import { storeToRefs as T } from "pinia";
|
|
3
|
-
import { A as N, a as W, _ as o, b as F } from "./Profile-
|
|
4
|
-
import { o as S } from "./index-
|
|
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
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
6
|
__name: "ConnectAccount",
|
|
7
7
|
setup(y) {
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { inject as E, ref as f, computed as Q, watch as j, onMounted as J, nextTick as R, createElementBlock as
|
|
2
|
-
import { m as X, n as N } from "./index-
|
|
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
3
|
import { H as Z } from "./HubPageHeader-VDMilTIN.js";
|
|
4
4
|
import { storeToRefs as q } from "pinia";
|
|
5
|
-
import { _ as ee } from "./SocialsButtons-
|
|
6
|
-
import { _ as te, a as le } from "./SwapBalls-
|
|
7
|
-
import { _ as se } from "./QuestCard-
|
|
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
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" },
|
|
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
10
|
key: 0,
|
|
11
11
|
class: "_mt-4 _px-3.5 _py-3 _flex _flex-col _gap-3 _rounded-lg _overflow-hidden _shadow-panel _bg-metallic-cone"
|
|
12
|
-
},
|
|
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
13
|
key: 0,
|
|
14
14
|
class: "_space-y-4"
|
|
15
15
|
}, fe = {
|
|
@@ -24,10 +24,10 @@ const ae = { class: "_flex-1 _overflow-y-scroll-masked _no-scrollbar _px-5 _w-fu
|
|
|
24
24
|
}, be = {
|
|
25
25
|
key: 1,
|
|
26
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]" },
|
|
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
28
|
__name: "Earn",
|
|
29
29
|
setup(Ce) {
|
|
30
|
-
const d = E("TrifleHub/store"), x = E("hub"), { openHub: $ } = x, C = f([]), h = f(!0),
|
|
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
31
|
var s;
|
|
32
32
|
d.setProfileUsername((s = d.user) == null ? void 0 : s.username), $("profile");
|
|
33
33
|
}, O = Q(() => {
|
|
@@ -60,9 +60,9 @@ const ae = { class: "_flex-1 _overflow-y-scroll-masked _no-scrollbar _px-5 _w-fu
|
|
|
60
60
|
return _;
|
|
61
61
|
}), T = async () => {
|
|
62
62
|
var s, e, o, _, c;
|
|
63
|
-
h.value = !0,
|
|
63
|
+
h.value = !0, k.value = null;
|
|
64
64
|
try {
|
|
65
|
-
if (
|
|
65
|
+
if (y.value || (e = (s = d.isFarcaster) == null ? void 0 : s.user) != null && e.id) {
|
|
66
66
|
const l = await fetch(`${U.value}/balls/point-categories-with-counts`, {
|
|
67
67
|
method: "POST",
|
|
68
68
|
headers: {
|
|
@@ -105,12 +105,12 @@ const ae = { class: "_flex-1 _overflow-y-scroll-masked _no-scrollbar _px-5 _w-fu
|
|
|
105
105
|
link: l.link || null
|
|
106
106
|
}));
|
|
107
107
|
} catch (l) {
|
|
108
|
-
console.error("Error fetching quest data:", l),
|
|
108
|
+
console.error("Error fetching quest data:", l), k.value = "Failed to load quest data. Please try again later.";
|
|
109
109
|
} finally {
|
|
110
110
|
h.value = !1;
|
|
111
111
|
}
|
|
112
112
|
};
|
|
113
|
-
return j(
|
|
113
|
+
return j(y, () => {
|
|
114
114
|
T();
|
|
115
115
|
}), J(() => {
|
|
116
116
|
T();
|
|
@@ -129,7 +129,7 @@ const ae = { class: "_flex-1 _overflow-y-scroll-masked _no-scrollbar _px-5 _w-fu
|
|
|
129
129
|
{ flush: "post" }
|
|
130
130
|
), (s, e) => {
|
|
131
131
|
var o, _, c;
|
|
132
|
-
return
|
|
132
|
+
return i(), r("div", ae, [
|
|
133
133
|
t("header", oe, [
|
|
134
134
|
b(Z, null, {
|
|
135
135
|
icon: S(() => e[5] || (e[5] = [
|
|
@@ -144,8 +144,8 @@ const ae = { class: "_flex-1 _overflow-y-scroll-masked _no-scrollbar _px-5 _w-fu
|
|
|
144
144
|
]),
|
|
145
145
|
_: 1
|
|
146
146
|
}),
|
|
147
|
-
p(
|
|
148
|
-
t("div",
|
|
147
|
+
p(y) ? v("", !0) : (i(), r("section", ie, [
|
|
148
|
+
t("div", re, [
|
|
149
149
|
e[9] || (e[9] = t("div", null, [
|
|
150
150
|
t("p", { class: "_text-mlg" }, "You might have 🪩BALL$ to claim!")
|
|
151
151
|
], -1)),
|
|
@@ -161,13 +161,13 @@ const ae = { class: "_flex-1 _overflow-y-scroll-masked _no-scrollbar _px-5 _w-fu
|
|
|
161
161
|
])
|
|
162
162
|
])
|
|
163
163
|
])),
|
|
164
|
-
p(
|
|
164
|
+
p(y) ? (i(), r("section", {
|
|
165
165
|
key: 1,
|
|
166
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
167
|
onClick: V
|
|
168
168
|
}, [
|
|
169
169
|
t("div", de, [
|
|
170
|
-
(o = p(d).user) != null && o.avatar ? (
|
|
170
|
+
(o = p(d).user) != null && o.avatar ? (i(), r("div", {
|
|
171
171
|
key: 0,
|
|
172
172
|
class: "_size-[1.125em] _block _rounded-full _shadow-panel-inset _bg-cover _bg-center",
|
|
173
173
|
style: D({ backgroundImage: `url(${(_ = p(d).user) == null ? void 0 : _.avatar})` })
|
|
@@ -192,9 +192,9 @@ const ae = { class: "_flex-1 _overflow-y-scroll-masked _no-scrollbar _px-5 _w-fu
|
|
|
192
192
|
]),
|
|
193
193
|
b(K, { name: "thub-page-group" }, {
|
|
194
194
|
default: S(() => [
|
|
195
|
-
u.value === "earn" ? (
|
|
196
|
-
h.value ? (
|
|
197
|
-
(
|
|
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
198
|
key: `loader-${l}`,
|
|
199
199
|
class: "_flex _items-center _gap-3 _p-3 _bg-metallic-linear _shadow-panel _rounded-lg animate-pulse"
|
|
200
200
|
}, e[12] || (e[12] = [
|
|
@@ -204,8 +204,8 @@ const ae = { class: "_flex-1 _overflow-y-scroll-masked _no-scrollbar _px-5 _w-fu
|
|
|
204
204
|
], -1),
|
|
205
205
|
t("div", { class: "_h-6 _w-12 _bg-black/30 _rounded" }, null, -1)
|
|
206
206
|
]))), 64))
|
|
207
|
-
])) :
|
|
208
|
-
(
|
|
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
209
|
key: l.id,
|
|
210
210
|
quest: l,
|
|
211
211
|
highlight: l.id === O.value,
|
|
@@ -213,7 +213,7 @@ const ae = { class: "_flex-1 _overflow-y-scroll-masked _no-scrollbar _px-5 _w-fu
|
|
|
213
213
|
}, null, 8, ["quest", "highlight"]))), 128))
|
|
214
214
|
]))
|
|
215
215
|
])) : v("", !0),
|
|
216
|
-
u.value === "spend" ? (
|
|
216
|
+
u.value === "spend" ? (i(), r("div", be, [
|
|
217
217
|
t("section", ve, [
|
|
218
218
|
t("header", xe, [
|
|
219
219
|
e[13] || (e[13] = t("div", { class: "_text-[2.5em] _animate-wiggle-sm" }, "🪩", -1)),
|
|
@@ -221,14 +221,14 @@ const ae = { class: "_flex-1 _overflow-y-scroll-masked _no-scrollbar _px-5 _w-fu
|
|
|
221
221
|
b(te, { class: "_h-[2.5em]" })
|
|
222
222
|
]),
|
|
223
223
|
t("div", he, [
|
|
224
|
-
t("p",
|
|
224
|
+
t("p", ke, [
|
|
225
225
|
e[15] || (e[15] = w(" Add ")),
|
|
226
|
-
e[16] || (e[16] = t("span", { class: "_inline-block" }, "
|
|
227
|
-
e[17] || (e[17] = w(" to
|
|
226
|
+
e[16] || (e[16] = t("span", { class: "_inline-block" }, "balls", -1)),
|
|
227
|
+
e[17] || (e[17] = w(" to next week's ")),
|
|
228
228
|
t("button", {
|
|
229
229
|
class: "_underline",
|
|
230
|
-
onClick: e[3] || (e[3] = (l) => p($)("games"))
|
|
231
|
-
}, "
|
|
230
|
+
onClick: e[3] || (e[3] = (l) => p($)("games", !1, { tab: "lotteries" }))
|
|
231
|
+
}, " USDC contest"),
|
|
232
232
|
e[18] || (e[18] = w("! "))
|
|
233
233
|
])
|
|
234
234
|
]),
|
|
@@ -240,7 +240,7 @@ const ae = { class: "_flex-1 _overflow-y-scroll-masked _no-scrollbar _px-5 _w-fu
|
|
|
240
240
|
]),
|
|
241
241
|
_: 1
|
|
242
242
|
}),
|
|
243
|
-
t("section",
|
|
243
|
+
t("section", ye, [
|
|
244
244
|
e[19] || (e[19] = t("div", { class: "_opacity-30 _animate-wiggle-sm" }, "follow for more BALL$", -1)),
|
|
245
245
|
t("div", we, [
|
|
246
246
|
b(ee)
|
|
@@ -249,7 +249,7 @@ const ae = { class: "_flex-1 _overflow-y-scroll-masked _no-scrollbar _px-5 _w-fu
|
|
|
249
249
|
]);
|
|
250
250
|
};
|
|
251
251
|
}
|
|
252
|
-
}, Qe = /* @__PURE__ */ ne($e, [["__scopeId", "data-v-
|
|
252
|
+
}, Qe = /* @__PURE__ */ ne($e, [["__scopeId", "data-v-9837718d"]]);
|
|
253
253
|
export {
|
|
254
254
|
Qe as default
|
|
255
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-B_6bbCRZ.js";
|
|
2
2
|
const D = 0, b = {
|
|
3
3
|
paymentAsset: null,
|
|
4
4
|
amount: null,
|