@trifle/trifle-hub 1.0.159 → 1.0.160

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 (63) hide show
  1. package/dist/{AccountIndex-I_m-xJA2.js → AccountIndex-DJmRjgF8.js} +2 -2
  2. package/dist/{Earn-eUazTpJq.js → Earn-DXAaaBgH.js} +163 -163
  3. package/dist/{ExchangeController-DV12Cckz.js → ExchangeController-BqiUJhPe.js} +1 -1
  4. package/dist/{Games-_af0-zsI.js → Games-D0tCZt6c.js} +16 -16
  5. package/dist/{HelpersUtil-DffXsS4s.js → HelpersUtil-DjUlhZq5.js} +2 -2
  6. package/dist/{Leaderboard-CdNJ6RpN.js → Leaderboard-DBTdgsH9.js} +1 -1
  7. package/dist/{Profile-DQwKnS5C.js → Profile-CPe1Pymh.js} +463 -455
  8. package/dist/{ReownAuthentication-4hJzNS3a.js → ReownAuthentication-B746PWX7.js} +1 -1
  9. package/dist/{SocialsButtons-BXUP5WJn.js → SocialsButtons-RNAXi88c.js} +1 -1
  10. package/dist/{SwapController-RS74Rf8y.js → SwapController-BWjEZ_Ff.js} +1 -1
  11. package/dist/{TrifleGuide-DV95aOiF.js → TrifleGuide-DDmlqN-_.js} +1 -1
  12. package/dist/{data-capture-4Zt7Mh-x.js → data-capture-CYSjXV5v.js} +4 -4
  13. package/dist/{email-keN3MwiL.js → email-ClthbkYC.js} +8 -8
  14. package/dist/{embedded-wallet-4uVCFENX.js → embedded-wallet-BMDA-g1R.js} +12 -12
  15. package/dist/{features-DP96zO-E.js → features-Bvu4VlVT.js} +1 -1
  16. package/dist/{if-defined-DWpQnkBo.js → if-defined-C1mIu8Om.js} +1 -1
  17. package/dist/{index-SB-6jek0.js → index-BI9Hw0P1.js} +4 -4
  18. package/dist/{index-DOVqr745.js → index-BKG8vBTH.js} +31 -31
  19. package/dist/{index-C8z4JeX0.js → index-BVbO8OpG.js} +3 -3
  20. package/dist/{index-Bs_op1YX.js → index-Bcc1VqzM.js} +3 -3
  21. package/dist/{index-G7BEtCTt.js → index-Bjeu20pi.js} +3 -3
  22. package/dist/{index-D1PtCSNo.js → index-Bl7696Ip.js} +2 -2
  23. package/dist/{index-DKPj-Jsc.js → index-BlCxko5m.js} +3 -3
  24. package/dist/{index-UnIJhvbF.js → index-BnLeUTrv.js} +1 -1
  25. package/dist/{index-DPm1qXRL.js → index-BuOKQUlP.js} +2 -2
  26. package/dist/{index-CfQ4XGey.js → index-Bv0pQAKm.js} +3 -3
  27. package/dist/{index-Csp20V_C.js → index-C-bpIric.js} +14 -25
  28. package/dist/{index-QxHb_qeo.js → index-C6hlHJIY.js} +2 -2
  29. package/dist/{index-CWQmRKXJ.js → index-C7sX8nhM.js} +4 -4
  30. package/dist/{index-E6-HL-vX.js → index-CFF__n3Y.js} +3 -3
  31. package/dist/{index-C1P1tCug.js → index-CGtx5_5q.js} +3 -3
  32. package/dist/{index-BPs0GUi0.js → index-CaRBrIAq.js} +4 -4
  33. package/dist/{index-BO7qLY_A.js → index-CeTMfRz9.js} +7 -7
  34. package/dist/{index-gjTnuwmH.js → index-D0O38mRY.js} +2 -2
  35. package/dist/{index-CIz85z2d.js → index-DBbo4s9k.js} +2 -2
  36. package/dist/{index-DN-NdrN8.js → index-DC5RcEOc.js} +3 -3
  37. package/dist/{index-CyTfW7bb.js → index-DK_IewAG.js} +4 -4
  38. package/dist/{index-DhdIiv9I.js → index-DU4LpRtI.js} +4 -4
  39. package/dist/{index-dR4kMyJ7.js → index-DYV0hpQH.js} +1 -1
  40. package/dist/{index-B6qbfcv3.js → index-Da5d3fwp.js} +3 -3
  41. package/dist/{index-CcH4ohJ_.js → index-DcB-G44g.js} +2 -2
  42. package/dist/{index-B8IL-7_U.js → index-DeJyiONQ.js} +4 -4
  43. package/dist/{index-DnZf5kFT.js → index-DhvTKq5q.js} +4 -4
  44. package/dist/{index-DaRwVfNh.js → index-DzPck4KP.js} +3 -3
  45. package/dist/{index-QJqrYOWX.js → index-N4CuUhy-.js} +3 -3
  46. package/dist/{index-BxFE2Unj.js → index-Z728trQv.js} +13 -13
  47. package/dist/{index-CpFp2zWs.js → index-_VA4Pnh0.js} +2 -2
  48. package/dist/{index-DlHufcDq.js → index-as7lY0Ly.js} +1 -1
  49. package/dist/{index-DDxhg6X6.js → index-dsXoPs-R.js} +2 -2
  50. package/dist/{index-B5bAjn80.js → index-exMSL3SY.js} +2 -2
  51. package/dist/{index-C0G7EHjl.js → index-lpaX5WXm.js} +7 -7
  52. package/dist/{index-BBl5qF2M.js → index-ntCxzY89.js} +3 -3
  53. package/dist/index.es.js +2 -2
  54. package/dist/{onramp-BfgwVaz4.js → onramp-Bq5f4u9e.js} +14 -14
  55. package/dist/{pay-with-exchange-IINfHruD.js → pay-with-exchange-FzBX0cqW.js} +15 -15
  56. package/dist/{receive-tK9feGwv.js → receive-B-MbbToF.js} +5 -5
  57. package/dist/{ref-CDkfw-zs.js → ref-BwSj_fjT.js} +2 -2
  58. package/dist/{send-mES3HGGI.js → send-CDGHfct9.js} +15 -15
  59. package/dist/{socials-U7A0qfan.js → socials-CYMn3wsS.js} +10 -10
  60. package/dist/{swaps-CVIliCpc.js → swaps-xU6AjhNq.js} +11 -11
  61. package/dist/{transactions-C1kMLLvz.js → transactions-VJ5y1YxP.js} +3 -3
  62. package/dist/{w3m-modal-DYHBxO0T.js → w3m-modal-C6dJ0BL7.js} +12 -12
  63. package/package.json +1 -1
@@ -1,8 +1,8 @@
1
- import { computed as Q, createElementBlock as s, createCommentVNode as u, openBlock as n, createElementVNode as l, toDisplayString as $, inject as N, ref as m, onMounted as J, Fragment as A, createBlock as O, withModifiers as F, unref as C, normalizeClass as j, watch as q, createVNode as S, withCtx as I, createTextVNode as V, normalizeStyle as R, TransitionGroup as ee, renderList as Y, resolveDynamicComponent as te } from "vue";
2
- import { T as le, U as ne, V as G } from "./index-Csp20V_C.js";
1
+ import { computed as Q, createElementBlock as o, createCommentVNode as f, openBlock as n, createElementVNode as l, toDisplayString as $, inject as O, ref as m, onMounted as J, Fragment as A, createBlock as R, withModifiers as I, unref as L, normalizeClass as j, watch as q, createVNode as S, withCtx as V, createTextVNode as F, normalizeStyle as N, TransitionGroup as ee, renderList as X, resolveDynamicComponent as te } from "vue";
2
+ import { T as le, U as ne, V as G } from "./index-C-bpIric.js";
3
3
  import { H as se } from "./HubPageHeader-VDMilTIN.js";
4
4
  import { storeToRefs as K } from "pinia";
5
- import { _ as oe } from "./SocialsButtons-BXUP5WJn.js";
5
+ import { _ as oe } from "./SocialsButtons-RNAXi88c.js";
6
6
  import { _ as ie, a as re } from "./SwapBalls-D14eVMm3.js";
7
7
  import { _ as ae } from "./_plugin-vue_export-helper-CHgC5LLL.js";
8
8
  const de = ["href"], _e = { class: "_size-[2.65em] _rounded-md _overflow-hidden _flex _items-center _justify-center _bg-black/80" }, ce = ["src"], ue = {
@@ -16,33 +16,33 @@ const de = ["href"], _e = { class: "_size-[2.65em] _rounded-md _overflow-hidden
16
16
  default: null
17
17
  }
18
18
  },
19
- setup(d) {
20
- const f = d, c = Q(() => {
21
- if (!f.tweet || !f.tweet.media) return null;
22
- const w = f.tweet.media;
19
+ setup(_) {
20
+ const u = _, c = Q(() => {
21
+ if (!u.tweet || !u.tweet.media) return null;
22
+ const w = u.tweet.media;
23
23
  if (!Array.isArray(w) || w.length === 0) return null;
24
24
  const g = w.find((h) => h.type === "photo") || w[0];
25
25
  return (g == null ? void 0 : g.url) || null;
26
26
  });
27
- return (w, g) => d.tweet ? (n(), s("a", {
27
+ return (w, g) => _.tweet ? (n(), o("a", {
28
28
  key: 0,
29
- href: d.tweet.url,
29
+ href: _.tweet.url,
30
30
  target: "_blank",
31
31
  rel: "noopener noreferrer",
32
32
  class: "_flex _items-start _gap-2.5 _p-[0.625em] _rounded-lg _bg-metallic-linear _shadow-panel _no-underline"
33
33
  }, [
34
34
  l("div", _e, [
35
- c.value ? (n(), s("img", {
35
+ c.value ? (n(), o("img", {
36
36
  key: 0,
37
37
  src: c.value,
38
38
  alt: "Tweet media",
39
39
  class: "_w-full _h-full _object-cover"
40
- }, null, 8, ce)) : (n(), s("span", ue, "𝕏"))
40
+ }, null, 8, ce)) : (n(), o("span", ue, "𝕏"))
41
41
  ]),
42
42
  l("div", fe, [
43
- l("p", me, $(d.tweet.text), 1)
43
+ l("p", me, $(_.tweet.text), 1)
44
44
  ])
45
- ], 8, de)) : u("", !0);
45
+ ], 8, de)) : f("", !0);
46
46
  }
47
47
  }, ve = { class: "_space-y-3 _mt-2 _mb-0.5" }, ge = {
48
48
  key: 1,
@@ -52,64 +52,64 @@ const de = ["href"], _e = { class: "_size-[2.65em] _rounded-md _overflow-hidden
52
52
  class: "_flex _items-center _justify-between _gap-3 _w-full"
53
53
  }, ye = {
54
54
  key: 0,
55
- class: "_w-full _text-em-xs _text-zinc-500 _text-center"
56
- }, ke = { key: 0 }, be = { key: 1 }, xe = { key: 2 }, he = {
55
+ class: "_w-full _-mt-1 _text-em-sm _text-center _bg-metallic-cone _shadow-panel _rounded-lg _p-3 _text-green-600"
56
+ }, ke = {
57
57
  key: 1,
58
58
  class: "_w-full _flex _items-center _justify-evenly _text-em-smff"
59
- }, $e = ["href"], Te = ["disabled"], Le = {
59
+ }, be = ["href"], xe = ["disabled"], he = {
60
60
  key: 3,
61
61
  class: "_flex _justify-center"
62
- }, Ce = "https://trifle.life/twitter", je = {
62
+ }, $e = "https://trifle.life/twitter", Te = {
63
63
  __name: "TwitterEngagementQuest",
64
64
  props: {
65
65
  mode: {
66
66
  type: String,
67
67
  required: !0,
68
- validator: (d) => d === "like" || d === "reply" || d === "follow"
68
+ validator: (_) => _ === "like" || _ === "reply" || _ === "follow"
69
69
  }
70
70
  },
71
71
  emits: ["points-updated"],
72
- setup(d, { emit: f }) {
73
- const c = d, w = f, g = N("TrifleHub/store"), { backendUrl: h, isAuthenticated: z } = K(g), p = m(null), _ = m(null), y = m(!1), L = m(!1), k = m(null), v = m(null), B = m(!1), H = Q(() => _.value ? c.mode === "follow" ? !!_.value.followed : !p.value || _.value.tweetId !== p.value.id ? !1 : c.mode === "like" ? !!_.value.liked : c.mode === "reply" ? !!_.value.replied : !1 : !1), P = () => {
74
- const o = g.authToken;
75
- return o ? { Authorization: `Bearer ${o}` } : {};
72
+ setup(_, { emit: u }) {
73
+ const c = _, w = u, g = O("TrifleHub/store"), { backendUrl: h, isAuthenticated: z } = K(g), p = m(null), d = m(null), y = m(!1), C = m(!1), k = m(null), v = m(null), B = m(!1), H = Q(() => d.value ? c.mode === "follow" ? !!d.value.followed : !p.value || d.value.tweetId !== p.value.id ? !1 : c.mode === "like" ? !!d.value.liked : c.mode === "reply" ? !!d.value.replied : !1 : !1), P = () => {
74
+ const s = g.authToken;
75
+ return s ? { Authorization: `Bearer ${s}` } : {};
76
76
  }, M = async () => {
77
77
  y.value = !0;
78
78
  try {
79
- const o = await fetch(`${h.value}/twitter/featured-tweet`);
80
- if (!o.ok) return;
81
- p.value = await o.json();
82
- } catch (o) {
83
- console.error("Error fetching featured tweet:", o);
79
+ const s = await fetch(`${h.value}/twitter/featured-tweet`);
80
+ if (!s.ok) return;
81
+ p.value = await s.json();
82
+ } catch (s) {
83
+ console.error("Error fetching featured tweet:", s);
84
84
  } finally {
85
85
  y.value = !1;
86
86
  }
87
87
  }, E = async () => {
88
88
  try {
89
- const o = P();
90
- if (!o.Authorization) return;
89
+ const s = P();
90
+ if (!s.Authorization) return;
91
91
  const i = await fetch(`${h.value}/twitter/my-status`, {
92
- headers: o
92
+ headers: s
93
93
  });
94
94
  if (!i.ok) return;
95
95
  const e = await i.json();
96
- (e.followed || e.tweetId && (e.liked || e.replied)) && (_.value = {
96
+ (e.followed || e.tweetId && (e.liked || e.replied)) && (d.value = {
97
97
  tweetId: e.tweetId,
98
98
  liked: !!e.liked,
99
99
  replied: !!e.replied,
100
100
  followed: !!e.followed
101
101
  });
102
- } catch (o) {
103
- console.error("Error fetching twitter status:", o);
102
+ } catch (s) {
103
+ console.error("Error fetching twitter status:", s);
104
104
  }
105
- }, r = async (o) => {
105
+ }, r = async (s) => {
106
106
  var i;
107
- L.value = !0;
107
+ C.value = !0;
108
108
  try {
109
109
  const e = {
110
110
  "Content-Type": "application/json",
111
111
  ...P()
112
- }, b = (i = p.value) != null && i.id ? { tweetId: p.value.id } : {}, x = await fetch(`${h.value}/twitter/${o}`, {
112
+ }, b = (i = p.value) != null && i.id ? { tweetId: p.value.id } : {}, x = await fetch(`${h.value}/twitter/${s}`, {
113
113
  method: "POST",
114
114
  headers: e,
115
115
  body: JSON.stringify(b)
@@ -118,123 +118,123 @@ const de = ["href"], _e = { class: "_size-[2.65em] _rounded-md _overflow-hidden
118
118
  throw T.reconnectRequired && (B.value = !0), new Error((T == null ? void 0 : T.error) || "Verification failed");
119
119
  return T;
120
120
  } finally {
121
- L.value = !1;
121
+ C.value = !1;
122
122
  }
123
123
  }, t = async () => {
124
124
  k.value = null, v.value = null, B.value = !1;
125
125
  try {
126
- const o = { like: "verify-like", reply: "verify-reply", follow: "verify-follow" }, i = { like: "Like", reply: "Reply", follow: "Follow" }, e = { like: "liked", reply: "replied", follow: "followed" }, b = await r(o[c.mode]);
127
- b.verified ? (v.value = `${i[c.mode]} verified!`, _.value = {
128
- ..._.value,
126
+ const s = { like: "verify-like", reply: "verify-reply", follow: "verify-follow" }, i = { like: "Like", reply: "Reply", follow: "Follow" }, e = { like: "liked", reply: "replied", follow: "followed" }, b = await r(s[c.mode]);
127
+ b.verified ? (v.value = `${i[c.mode]} verified!`, d.value = {
128
+ ...d.value,
129
129
  ...b.tweetId ? { tweetId: b.tweetId } : {},
130
130
  [e[c.mode]]: !0
131
131
  }, b.pointsAwarded && w("points-updated")) : k.value = b.message || `Your ${i[c.mode].toLowerCase()} wasn't detected yet — it can take a minute to show up. Try again shortly.`;
132
- } catch (o) {
133
- k.value = (o == null ? void 0 : o.message) || "Verification failed. Please try again.";
132
+ } catch (s) {
133
+ k.value = (s == null ? void 0 : s.message) || "Verification failed. Please try again.";
134
134
  }
135
135
  }, a = () => {
136
136
  g.connectTwitter();
137
137
  };
138
138
  return J(() => {
139
139
  c.mode !== "follow" && M(), E();
140
- }), (o, i) => {
140
+ }), (s, i) => {
141
141
  var e;
142
- return n(), s("div", ve, [
143
- d.mode !== "follow" ? (n(), s(A, { key: 0 }, [
144
- p.value ? (n(), O(pe, {
142
+ return n(), o("div", ve, [
143
+ _.mode !== "follow" ? (n(), o(A, { key: 0 }, [
144
+ p.value ? (n(), R(pe, {
145
145
  key: 0,
146
146
  tweet: p.value,
147
147
  class: "_text-sm"
148
- }, null, 8, ["tweet"])) : (n(), s("p", ge, $(y.value ? "Loading latest tweet..." : "No featured tweet available right now."), 1))
149
- ], 64)) : u("", !0),
150
- d.mode === "follow" || !y.value ? (n(), s("div", we, [
151
- H.value ? (n(), s("div", ye, [
152
- d.mode === "like" ? (n(), s("span", ke, "Like detected")) : d.mode === "reply" ? (n(), s("span", be, "Reply detected")) : d.mode === "follow" ? (n(), s("span", xe, "Follow detected")) : u("", !0)
153
- ])) : (n(), s("div", he, [
154
- d.mode === "follow" ? (n(), s(A, { key: 0 }, [
148
+ }, null, 8, ["tweet"])) : (n(), o("p", ge, $(y.value ? "Loading latest tweet..." : "No featured tweet available right now."), 1))
149
+ ], 64)) : f("", !0),
150
+ _.mode === "follow" || !y.value ? (n(), o("div", we, [
151
+ H.value ? (n(), o("p", ye, i[2] || (i[2] = [
152
+ l("span", { class: "_animate-scaleup-sm _block" }, "You did it! 🪩🪩🪩", -1)
153
+ ]))) : (n(), o("div", ke, [
154
+ _.mode === "follow" ? (n(), o(A, { key: 0 }, [
155
155
  l("a", {
156
- href: Ce,
156
+ href: $e,
157
157
  target: "_blank",
158
158
  rel: "noopener noreferrer",
159
159
  class: "_underline _inline-block _animate-wiggle-sm",
160
- onClick: i[0] || (i[0] = F(() => {
160
+ onClick: i[0] || (i[0] = I(() => {
161
161
  }, ["stop"]))
162
162
  }, " Follow on X "),
163
- i[2] || (i[2] = l("div", { class: "_text-zinc-500" }, "then...", -1))
164
- ], 64)) : (e = p.value) != null && e.url ? (n(), s(A, { key: 1 }, [
163
+ i[3] || (i[3] = l("div", { class: "_text-zinc-500" }, "then...", -1))
164
+ ], 64)) : (e = p.value) != null && e.url ? (n(), o(A, { key: 1 }, [
165
165
  l("a", {
166
166
  href: p.value.url,
167
167
  target: "_blank",
168
168
  rel: "noopener noreferrer",
169
169
  class: "_underline _inline-block _animate-wiggle-sm",
170
- onClick: i[1] || (i[1] = F(() => {
170
+ onClick: i[1] || (i[1] = I(() => {
171
171
  }, ["stop"]))
172
- }, $(d.mode === "like" ? "Like on X" : "Reply on X"), 9, $e),
173
- i[3] || (i[3] = l("div", { class: "_text-zinc-500" }, "then...", -1))
174
- ], 64)) : u("", !0),
172
+ }, $(_.mode === "like" ? "Like on X" : "Reply on X"), 9, be),
173
+ i[4] || (i[4] = l("div", { class: "_text-zinc-500" }, "then...", -1))
174
+ ], 64)) : f("", !0),
175
175
  l("button", {
176
176
  class: "_bubble-btn _px-5 _py-3 _text-em-smff",
177
- disabled: L.value || !C(z),
177
+ disabled: C.value || !L(z),
178
178
  style: { filter: "hue-rotate(20deg) saturate(3)" },
179
- onClick: F(t, ["stop"])
179
+ onClick: I(t, ["stop"])
180
180
  }, [
181
- l("span", null, $(d.mode === "like" ? "Verify Like" : d.mode === "reply" ? "Verify Reply" : "Verify Follow"), 1)
182
- ], 8, Te)
181
+ l("span", null, $(_.mode === "like" ? "Verify Like" : _.mode === "reply" ? "Verify Reply" : "Verify Follow"), 1)
182
+ ], 8, xe)
183
183
  ]))
184
- ])) : u("", !0),
185
- k.value || v.value || L.value ? (n(), s("p", {
184
+ ])) : f("", !0),
185
+ k.value || v.value || C.value ? (n(), o("p", {
186
186
  key: 2,
187
187
  class: j([
188
188
  "_mt-0.5 _text-em-xs _text-center _bg-metallic-linear _shadow-panel _rounded-lg _p-3",
189
- L.value ? "_text-zinc-600" : k.value ? "_text-red-600" : "_text-primary"
189
+ C.value ? "_text-zinc-600" : k.value ? "_text-red-600" : "_text-primary"
190
190
  ])
191
- }, $(L.value ? "Checking..." : k.value || v.value), 3)) : u("", !0),
192
- B.value ? (n(), s("div", Le, [
191
+ }, $(C.value ? "Checking..." : k.value || v.value), 3)) : f("", !0),
192
+ B.value ? (n(), o("div", he, [
193
193
  l("button", {
194
194
  class: "_bubble-btn _px-5 _py-3 _text-em-smff",
195
195
  style: { filter: "hue-rotate(-340deg) saturate(1.8)" },
196
- onClick: F(a, ["stop"])
197
- }, i[4] || (i[4] = [
196
+ onClick: I(a, ["stop"])
197
+ }, i[5] || (i[5] = [
198
198
  l("span", { style: { filter: "hue-rotate(340deg) saturate(0.5)" } }, "Reconnect Twitter", -1)
199
199
  ]))
200
- ])) : u("", !0)
200
+ ])) : f("", !0)
201
201
  ]);
202
202
  };
203
203
  }
204
- }, ze = { class: "_flex-1 _overflow-y-scroll-masked _no-scrollbar _px-5 _w-full _flex _flex-col" }, Be = { class: "_-mt-3.5 _space-y-3.5" }, Ee = {
204
+ }, Ce = { class: "_flex-1 _overflow-y-scroll-masked _no-scrollbar _px-5 _w-full _flex _flex-col" }, Le = { class: "_-mt-3.5 _space-y-3.5" }, je = {
205
205
  key: 0,
206
206
  class: "_mt-4 _px-3.5 _py-3 _flex _flex-col _gap-3 _rounded-lg _overflow-hidden _shadow-panel _bg-metallic-cone"
207
- }, Se = { class: "_relative _flex _flex-col _gap-2.5" }, Ae = { class: "_flex _justify-between _items-center" }, Pe = { class: "_flex _items-center _min-w-0 _flex-1" }, Fe = { class: "_text-right _min-w-0 _truncate _text-stroke-3xl" }, Ie = { class: "_gap-[0.45rem] _mt-6 _grid _grid-cols-2 _text-stroke-2xl _text-xl _tracking-wide _mb-3" }, Ve = {
207
+ }, ze = { class: "_relative _flex _flex-col _gap-2.5" }, Be = { class: "_flex _justify-between _items-center" }, Ee = { class: "_flex _items-center _min-w-0 _flex-1" }, Se = { class: "_text-right _min-w-0 _truncate _text-stroke-3xl" }, Ae = { class: "_gap-[0.45rem] _mt-6 _grid _grid-cols-2 _text-stroke-2xl _text-xl _tracking-wide _mb-3" }, Pe = {
208
208
  key: 0,
209
209
  class: "_space-y-4"
210
- }, He = {
210
+ }, Ie = {
211
211
  key: 0,
212
212
  class: "_space-y-2"
213
- }, Me = {
213
+ }, Ve = {
214
214
  key: 1,
215
215
  class: "_p-4 _bg-red-100 _text-red-700 _rounded-lg"
216
- }, Ue = {
216
+ }, Fe = {
217
217
  key: 2,
218
218
  class: "_space-y-2"
219
- }, De = { class: "_flex _w-full _gap-2.5" }, Re = { class: "_size-[1.7em]" }, Ne = ["src"], Oe = { class: "_flex-1" }, Qe = { class: "_flex _items-center _h-[1.7em] _gap-0.5 _relative _text-em-sm" }, Xe = {
219
+ }, He = { class: "_flex _w-full _gap-2.5 _cursor-pointer" }, Me = { class: "_size-[1.7em]" }, Ue = ["src"], De = { class: "_flex-1" }, Ne = { class: "_flex _items-center _h-[1.7em] _gap-0.5 _relative _text-em-sm" }, Oe = {
220
220
  key: 0,
221
221
  class: "_rounded-full _bg-metallic-cone _shadow-panel _px-[0.5em]"
222
- }, Ye = {
222
+ }, Re = {
223
223
  key: 1,
224
224
  class: "_rounded-full _bg-metallic-cone _shadow-panel _pr-[0.5em] _pl-[0.25em] _flex _gap-[0.1em]"
225
- }, Ge = { key: 0 }, Je = { key: 1 }, Ke = {
225
+ }, Qe = { key: 0 }, Ye = { key: 1 }, Xe = {
226
226
  key: 0,
227
227
  class: "_flex _items-start _gap-3 _pr-3"
228
- }, Ze = ["innerHTML"], We = {
228
+ }, Ge = ["innerHTML"], Je = {
229
229
  key: 0,
230
230
  class: "_absolute _top-0 _right-1 _flex _items-center _justify-center"
231
- }, qe = {
231
+ }, Ke = {
232
232
  key: 1,
233
233
  class: "_space-y-3"
234
- }, et = { 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" }, tt = { class: "_flex _items-center _gap-[0.75em] _justify-center _leading-none _mt-2 _-mb-1" }, lt = { class: "_flex _items-center _gap-[0.5em]" }, nt = { class: "_flex-1 _text-center _text-stroke-2xl" }, st = { class: "_mt-6 _bg-metallic-linear _p-4 _rounded-lg _shadow-panel _text-center _flex _flex-col _gap-3.5 _pb-5" }, ot = { class: "_grid _grid-cols-2 _gap-2" }, it = {
234
+ }, Ze = { 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" }, We = { class: "_flex _items-center _gap-[0.75em] _justify-center _leading-none _mt-2 _-mb-1" }, qe = { class: "_flex _items-center _gap-[0.5em]" }, et = { class: "_flex-1 _text-center _text-stroke-2xl" }, tt = { class: "_mt-6 _bg-metallic-linear _p-4 _rounded-lg _shadow-panel _text-center _flex _flex-col _gap-3.5 _pb-5" }, lt = { class: "_grid _grid-cols-2 _gap-2" }, nt = {
235
235
  __name: "Earn",
236
- setup(d) {
237
- const f = N("TrifleHub/store"), { openHub: c } = N("hub"), w = m([]), g = m(!0), h = m(null), z = m(0), p = m("all"), _ = m("earn"), y = m({}), { backendUrl: L, isAuthenticated: k } = K(f), v = (r) => r === "twitter-like-tweet" || r === "twitter-reply-tweet" || r === "follow-trifle-twitter", B = (r) => {
236
+ setup(_) {
237
+ const u = O("TrifleHub/store"), { openHub: c } = O("hub"), w = m([]), g = m(!0), h = m(null), z = m(0), p = m("all"), d = m("earn"), y = m({}), { backendUrl: C, isAuthenticated: k } = K(u), v = (r) => r === "twitter-like-tweet" || r === "twitter-reply-tweet" || r === "follow-trifle-twitter", B = (r) => {
238
238
  var t;
239
239
  if (v(r.id)) {
240
240
  const a = y.value[r.id];
@@ -244,45 +244,45 @@ const de = ["href"], _e = { class: "_size-[2.65em] _rounded-md _overflow-hidden
244
244
  };
245
245
  } else (t = r.link) != null && t.to && H(r.link.to);
246
246
  }, H = (r) => {
247
- r == "spend" ? _.value = "spend" : c(r);
247
+ r == "spend" ? d.value = "spend" : c(r);
248
248
  }, P = () => {
249
249
  var r;
250
- f.setProfileUsername((r = f.user) == null ? void 0 : r.username), c("profile");
250
+ u.setProfileUsername((r = u.user) == null ? void 0 : r.username), c("profile");
251
251
  }, M = Q(() => {
252
252
  let r = [];
253
253
  const t = w.value.filter((a) => !a.hiddenFromQuests);
254
- return p.value === "all" ? r = t : p.value === "once" ? r = t.filter((a) => a.once) : p.value === "ongoing" ? r = t.filter((a) => !a.once) : r = t, r.slice().sort((a, o) => {
255
- if (a.enabled && !o.enabled) return -1;
256
- if (!a.enabled && o.enabled) return 1;
257
- if (a.enabled && o.enabled) {
258
- const i = a.completed && a.once, e = o.completed && o.once;
254
+ return p.value === "all" ? r = t : p.value === "once" ? r = t.filter((a) => a.once) : p.value === "ongoing" ? r = t.filter((a) => !a.once) : r = t, r.slice().sort((a, s) => {
255
+ if (a.enabled && !s.enabled) return -1;
256
+ if (!a.enabled && s.enabled) return 1;
257
+ if (a.enabled && s.enabled) {
258
+ const i = a.completed && a.once, e = s.completed && s.once;
259
259
  if (i && !e) return 1;
260
260
  if (!i && e) return -1;
261
261
  }
262
262
  return 0;
263
263
  });
264
264
  }), E = async () => {
265
- var r, t, a, o, i;
265
+ var r, t, a, s, i;
266
266
  g.value = !0, h.value = null;
267
267
  try {
268
- if (k.value || (t = (r = f.isFarcaster) == null ? void 0 : r.user) != null && t.id) {
269
- const e = await fetch(`${L.value}/balls/point-categories-with-counts`, {
268
+ if (k.value || (t = (r = u.isFarcaster) == null ? void 0 : r.user) != null && t.id) {
269
+ const e = await fetch(`${C.value}/balls/point-categories-with-counts`, {
270
270
  method: "POST",
271
271
  headers: {
272
272
  "Content-Type": "application/json"
273
273
  // Authorization: `Bearer ${auth.authToken}`
274
274
  },
275
275
  body: JSON.stringify({
276
- userId: ((a = f.user) == null ? void 0 : a.id) || ((i = (o = f.isFarcaster) == null ? void 0 : o.user) == null ? void 0 : i.id)
276
+ userId: ((a = u.user) == null ? void 0 : a.id) || ((i = (s = u.isFarcaster) == null ? void 0 : s.user) == null ? void 0 : i.id)
277
277
  })
278
278
  });
279
279
  if (!e.ok)
280
280
  throw new Error(`HTTP error! status: ${e.status}`);
281
281
  const b = await e.json();
282
282
  z.value = b.balls.total, w.value = G.map((x) => {
283
- const T = b.balls.data.filter((D) => D.name === x.id), X = T.length > 0;
283
+ const T = b.balls.data.filter((D) => D.name === x.id), Y = T.length > 0;
284
284
  let U = null;
285
- if (!x.once && X)
285
+ if (!x.once && Y)
286
286
  if (x.id === "gm") {
287
287
  const D = (/* @__PURE__ */ new Date()).toDateString(), Z = T.filter(
288
288
  (W) => new Date(W.createdAt).toDateString() === D
@@ -291,7 +291,7 @@ const de = ["href"], _e = { class: "_size-[2.65em] _rounded-md _overflow-hidden
291
291
  } else x.id === "burn-kudzu" && (U = Math.min(T.length % 10 * 10, 100));
292
292
  return {
293
293
  ...x,
294
- completed: X,
294
+ completed: Y,
295
295
  progress: U,
296
296
  requiresLogin: !1,
297
297
  enabled: x.enabled !== void 0 ? x.enabled : !0,
@@ -318,73 +318,73 @@ const de = ["href"], _e = { class: "_size-[2.65em] _rounded-md _overflow-hidden
318
318
  }), J(() => {
319
319
  E();
320
320
  }), (r, t) => {
321
- var a, o, i;
322
- return n(), s("div", ze, [
323
- l("header", Be, [
321
+ var a, s, i;
322
+ return n(), o("div", Ce, [
323
+ l("header", Le, [
324
324
  S(se, null, {
325
- icon: I(() => t[5] || (t[5] = [
325
+ icon: V(() => t[5] || (t[5] = [
326
326
  l("img", {
327
327
  src: le,
328
328
  alt: "📈🪩",
329
329
  class: "_h-[1.75em]"
330
330
  }, null, -1)
331
331
  ])),
332
- default: I(() => [
333
- t[6] || (t[6] = V(" BALL$ "))
332
+ default: V(() => [
333
+ t[6] || (t[6] = F(" BALL$ "))
334
334
  ]),
335
335
  _: 1
336
336
  }),
337
- C(k) ? u("", !0) : (n(), s("section", Ee, [
338
- l("div", Se, [
337
+ L(k) ? f("", !0) : (n(), o("section", je, [
338
+ l("div", ze, [
339
339
  t[9] || (t[9] = l("div", null, [
340
340
  l("p", { class: "_text-mlg" }, "You might have 🪩BALL$ to claim!")
341
341
  ], -1)),
342
- l("div", Ae, [
342
+ l("div", Be, [
343
343
  t[8] || (t[8] = l("p", { class: "_italic _text-[#888] _text-em-sm _animate-blink" }, "Login to claim →", -1)),
344
344
  l("button", {
345
345
  class: "_bubble-btn _px-6 _py-2",
346
346
  style: { filter: "hue-rotate(-340deg) saturate(1.8)" },
347
- onClick: t[0] || (t[0] = (e) => C(c)("account"))
347
+ onClick: t[0] || (t[0] = (e) => L(c)("account"))
348
348
  }, t[7] || (t[7] = [
349
349
  l("span", { style: { filter: "hue-rotate(340deg) saturate(0.5)" } }, "Login", -1)
350
350
  ]))
351
351
  ])
352
352
  ])
353
353
  ])),
354
- C(k) ? (n(), s("section", {
354
+ L(k) ? (n(), o("section", {
355
355
  key: 1,
356
356
  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",
357
357
  onClick: P
358
358
  }, [
359
- l("div", Pe, [
360
- (a = C(f).user) != null && a.avatar ? (n(), s("div", {
359
+ l("div", Ee, [
360
+ (a = L(u).user) != null && a.avatar ? (n(), o("div", {
361
361
  key: 0,
362
362
  class: "_size-[1.125em] _block _rounded-full _shadow-panel-inset _bg-cover _bg-center",
363
- style: R({ backgroundImage: `url(${(o = C(f).user) == null ? void 0 : o.avatar})` })
364
- }, null, 4)) : u("", !0),
363
+ style: N({ backgroundImage: `url(${(s = L(u).user) == null ? void 0 : s.avatar})` })
364
+ }, null, 4)) : f("", !0),
365
365
  t[10] || (t[10] = l("div", { class: "_opacity-30 _text-mlg _text-stroke-lg _ml-[0.37em] _min-w-0 _truncate" }, " Your Balance ", -1))
366
366
  ]),
367
- l("div", Fe, $(((i = z.value) == null ? void 0 : i.toLocaleString()) || "???"), 1),
367
+ l("div", Se, $(((i = z.value) == null ? void 0 : i.toLocaleString()) || "???"), 1),
368
368
  t[11] || (t[11] = l("div", { class: "_flex-shrink-0" }, "🪩", -1))
369
- ])) : u("", !0)
369
+ ])) : f("", !0)
370
370
  ]),
371
- l("nav", Ie, [
371
+ l("nav", Ae, [
372
372
  l("button", {
373
- class: j(["_bubble-btn _px-4.5 _h-16", { "_animate-wiggle-sm": _.value === "earn" }]),
374
- onClick: t[1] || (t[1] = (e) => _.value = "earn"),
375
- style: R(_.value === "earn" ? "filter: hue-rotate(-70deg) saturate(2.1)" : "")
373
+ class: j(["_bubble-btn _px-4.5 _h-16", { "_animate-wiggle-sm": d.value === "earn" }]),
374
+ onClick: t[1] || (t[1] = (e) => d.value = "earn"),
375
+ style: N(d.value === "earn" ? "filter: hue-rotate(-70deg) saturate(2.1)" : "")
376
376
  }, " earn ", 6),
377
377
  l("button", {
378
- class: j(["_bubble-btn _px-4.5 _h-16", { "_animate-wiggle-sm": _.value === "spend" }]),
379
- onClick: t[2] || (t[2] = (e) => _.value = "spend"),
380
- style: R(_.value === "spend" ? "filter: hue-rotate(-345deg) saturate(2.5)" : "")
378
+ class: j(["_bubble-btn _px-4.5 _h-16", { "_animate-wiggle-sm": d.value === "spend" }]),
379
+ onClick: t[2] || (t[2] = (e) => d.value = "spend"),
380
+ style: N(d.value === "spend" ? "filter: hue-rotate(-345deg) saturate(2.5)" : "")
381
381
  }, " redeem ", 6)
382
382
  ]),
383
383
  S(ee, { name: "thub-page-group" }, {
384
- default: I(() => [
385
- _.value === "earn" ? (n(), s("div", Ve, [
386
- g.value ? (n(), s("div", He, [
387
- (n(), s(A, null, Y(3, (e) => l("div", {
384
+ default: V(() => [
385
+ d.value === "earn" ? (n(), o("div", Pe, [
386
+ g.value ? (n(), o("div", Ie, [
387
+ (n(), o(A, null, X(3, (e) => l("div", {
388
388
  key: `loader-${e}`,
389
389
  class: "_flex _items-center _gap-3 _p-3 _bg-metallic-linear _shadow-panel _rounded-lg animate-pulse"
390
390
  }, t[12] || (t[12] = [
@@ -394,8 +394,8 @@ const de = ["href"], _e = { class: "_size-[2.65em] _rounded-md _overflow-hidden
394
394
  ], -1),
395
395
  l("div", { class: "_h-6 _w-12 _bg-black/30 _rounded" }, null, -1)
396
396
  ]))), 64))
397
- ])) : h.value ? (n(), s("div", Me, $(h.value), 1)) : (n(), s("div", Ue, [
398
- (n(!0), s(A, null, Y(M.value, (e) => (n(), O(te(
397
+ ])) : h.value ? (n(), o("div", Ve, $(h.value), 1)) : (n(), o("div", Fe, [
398
+ (n(!0), o(A, null, X(M.value, (e) => (n(), R(te(
399
399
  e.link && !v(e.id) ? typeof e.link == "string" ? "a" : "button" : "div"
400
400
  ), {
401
401
  key: e.id,
@@ -406,7 +406,7 @@ const de = ["href"], _e = { class: "_size-[2.65em] _rounded-md _overflow-hidden
406
406
  onClick: (b) => B(e),
407
407
  class: j(["_w-full _block _relative", { "_pointer-events-none": e.completed && e.once }])
408
408
  }, {
409
- default: I(() => [
409
+ default: V(() => [
410
410
  l("div", {
411
411
  class: j(["_bg-metallic-linear _w-full _flex _flex-col _gap-0.5 _p-[0.5em] _rounded-lg _transition-colors _text-base md:_text-mlg _relative _justify-center", [
412
412
  {
@@ -416,24 +416,24 @@ const de = ["href"], _e = { class: "_size-[2.65em] _rounded-md _overflow-hidden
416
416
  }
417
417
  ]])
418
418
  }, [
419
- l("header", De, [
420
- l("div", Re, [
419
+ l("header", He, [
420
+ l("div", Me, [
421
421
  l("img", {
422
422
  src: e.icon,
423
423
  class: "_w-full _h-full _rounded-lg _block"
424
- }, null, 8, Ne)
424
+ }, null, 8, Ue)
425
425
  ]),
426
- l("div", Oe, [
426
+ l("div", De, [
427
427
  l("div", {
428
428
  class: j(["_min-h-[1.7em] _flex _items-center _justify-start _text-left _py-[0.06em] _text-stroke-xl _leading-snug", { "_line-through": e.completed && e.once }])
429
429
  }, $(e.name), 3)
430
430
  ]),
431
- l("div", Qe, [
432
- e.enabled ? (n(), s("div", Ye, [
431
+ l("div", Ne, [
432
+ e.enabled ? (n(), o("div", Re, [
433
433
  t[13] || (t[13] = l("div", null, "🪩", -1)),
434
- typeof e.pachinkoBalls == "string" ? (n(), s("span", Ge, $(e.pachinkoBalls), 1)) : (n(), s("span", Je, $(e.pachinkoBalls), 1))
435
- ])) : (n(), s("div", Xe, " soon ")),
436
- (n(), s("svg", {
434
+ typeof e.pachinkoBalls == "string" ? (n(), o("span", Qe, $(e.pachinkoBalls), 1)) : (n(), o("span", Ye, $(e.pachinkoBalls), 1))
435
+ ])) : (n(), o("div", Oe, " soon ")),
436
+ (n(), o("svg", {
437
437
  xmlns: "http://www.w3.org/2000/svg",
438
438
  viewBox: "0 0 20 20",
439
439
  fill: "black",
@@ -454,68 +454,68 @@ const de = ["href"], _e = { class: "_size-[2.65em] _rounded-md _overflow-hidden
454
454
  ]), 2))
455
455
  ])
456
456
  ]),
457
- e.description && !(v(e.id) && y.value[e.id]) ? (n(), s("div", Ke, [
457
+ e.description && !(v(e.id) && y.value[e.id]) ? (n(), o("div", Xe, [
458
458
  t[15] || (t[15] = l("div", { class: "_w-[1.7em] _flex-shrink-0" }, null, -1)),
459
459
  l("p", {
460
460
  class: "_flex-1 _text-em-xs _text-zinc-500 _text-stroke-lg _text-left",
461
461
  innerHTML: e.description
462
- }, null, 8, Ze)
463
- ])) : u("", !0),
464
- v(e.id) && y.value[e.id] ? (n(), O(je, {
462
+ }, null, 8, Ge)
463
+ ])) : f("", !0),
464
+ v(e.id) && y.value[e.id] ? (n(), R(Te, {
465
465
  key: 1,
466
466
  mode: e.id === "twitter-like-tweet" ? "like" : e.id === "twitter-reply-tweet" ? "reply" : "follow",
467
467
  onPointsUpdated: E
468
- }, null, 8, ["mode"])) : u("", !0)
468
+ }, null, 8, ["mode"])) : f("", !0)
469
469
  ], 2),
470
- e.completed && e.once ? (n(), s("div", We, t[16] || (t[16] = [
470
+ e.completed && e.once ? (n(), o("div", Je, t[16] || (t[16] = [
471
471
  l("img", {
472
472
  src: ne,
473
473
  class: "_size-[2.5em]"
474
474
  }, null, -1)
475
- ]))) : u("", !0)
475
+ ]))) : f("", !0)
476
476
  ]),
477
477
  _: 2
478
478
  }, 1032, ["fid", "href", "target", "rel", "onClick", "class"]))), 128))
479
479
  ]))
480
- ])) : u("", !0),
481
- _.value === "spend" ? (n(), s("div", qe, [
482
- l("section", et, [
483
- l("header", tt, [
480
+ ])) : f("", !0),
481
+ d.value === "spend" ? (n(), o("div", Ke, [
482
+ l("section", Ze, [
483
+ l("header", We, [
484
484
  t[17] || (t[17] = l("div", { class: "_text-[2.5em] _animate-wiggle-sm" }, "🪩", -1)),
485
485
  t[18] || (t[18] = l("div", { class: "_text-[1.75em]" }, "➡️", -1)),
486
486
  S(ie, { class: "_h-[2.5em]" })
487
487
  ]),
488
- l("div", lt, [
489
- l("p", nt, [
490
- t[19] || (t[19] = V(" Swap BALL$ for ")),
488
+ l("div", qe, [
489
+ l("p", et, [
490
+ t[19] || (t[19] = F(" Swap BALL$ for ")),
491
491
  t[20] || (t[20] = l("span", { class: "_inline-block" }, "lotto-balls", -1)),
492
492
  t[21] || (t[21] = l("br", null, null, -1)),
493
- t[22] || (t[22] = V(" in the ")),
493
+ t[22] || (t[22] = F(" in the ")),
494
494
  l("button", {
495
495
  class: "_underline",
496
- onClick: t[3] || (t[3] = (e) => C(c)("games"))
496
+ onClick: t[3] || (t[3] = (e) => L(c)("games"))
497
497
  }, "weekly USDC lottery"),
498
- t[23] || (t[23] = V("! "))
498
+ t[23] || (t[23] = F("! "))
499
499
  ])
500
500
  ]),
501
501
  S(re, {
502
- onGetBallsClick: t[4] || (t[4] = (e) => _.value = "earn")
502
+ onGetBallsClick: t[4] || (t[4] = (e) => d.value = "earn")
503
503
  })
504
504
  ])
505
- ])) : u("", !0)
505
+ ])) : f("", !0)
506
506
  ]),
507
507
  _: 1
508
508
  }),
509
- l("section", st, [
509
+ l("section", tt, [
510
510
  t[24] || (t[24] = l("div", { class: "_opacity-30 _animate-wiggle-sm" }, "follow for more BALL$", -1)),
511
- l("div", ot, [
511
+ l("div", lt, [
512
512
  S(oe)
513
513
  ])
514
514
  ])
515
515
  ]);
516
516
  };
517
517
  }
518
- }, mt = /* @__PURE__ */ ae(it, [["__scopeId", "data-v-efad72da"]]);
518
+ }, ct = /* @__PURE__ */ ae(nt, [["__scopeId", "data-v-fdecc434"]]);
519
519
  export {
520
- mt as default
520
+ ct as default
521
521
  };