@trifle/trifle-hub 1.0.159 → 1.0.161

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 (65) hide show
  1. package/dist/{AccountIndex-I_m-xJA2.js → AccountIndex-BEX1k5b6.js} +50 -41
  2. package/dist/{Earn-eUazTpJq.js → Earn-CgpWSs87.js} +163 -163
  3. package/dist/{ExchangeController-DV12Cckz.js → ExchangeController-D9_uwgvR.js} +1 -1
  4. package/dist/{Games-_af0-zsI.js → Games-M9GlINCE.js} +16 -16
  5. package/dist/{HelpersUtil-DffXsS4s.js → HelpersUtil-3kK0MJ3p.js} +2 -2
  6. package/dist/{Leaderboard-CdNJ6RpN.js → Leaderboard-B7Mh8DS-.js} +1 -1
  7. package/dist/{Profile-DQwKnS5C.js → Profile-Ct-mDc2u.js} +728 -651
  8. package/dist/{ReownAuthentication-4hJzNS3a.js → ReownAuthentication-CVPDiHcH.js} +1 -1
  9. package/dist/{SocialsButtons-BXUP5WJn.js → SocialsButtons-aWpzKjcb.js} +1 -1
  10. package/dist/{SwapController-RS74Rf8y.js → SwapController-BeK9JnGm.js} +1 -1
  11. package/dist/{TrifleGuide-DV95aOiF.js → TrifleGuide-CR0Ozy_0.js} +1 -1
  12. package/dist/config/pointsConfig.d.ts +13 -0
  13. package/dist/config/socialsConfig.d.ts +32 -18
  14. package/dist/{data-capture-4Zt7Mh-x.js → data-capture-SpEqbF3k.js} +4 -4
  15. package/dist/{email-keN3MwiL.js → email-nGysUKxe.js} +8 -8
  16. package/dist/{embedded-wallet-4uVCFENX.js → embedded-wallet-CVRT-KKq.js} +12 -12
  17. package/dist/{features-DP96zO-E.js → features-ltH2yyBF.js} +1 -1
  18. package/dist/{if-defined-DWpQnkBo.js → if-defined-Dy4LSJRL.js} +1 -1
  19. package/dist/{index-C8z4JeX0.js → index-356dXR_D.js} +3 -3
  20. package/dist/{index-BBl5qF2M.js → index-5j1niEF0.js} +3 -3
  21. package/dist/{index-B6qbfcv3.js → index-B5tdNBnN.js} +3 -3
  22. package/dist/{index-CfQ4XGey.js → index-B6EegOWr.js} +3 -3
  23. package/dist/{index-E6-HL-vX.js → index-B6ReSoq4.js} +3 -3
  24. package/dist/{index-QJqrYOWX.js → index-BHFhjWws.js} +3 -3
  25. package/dist/{index-UnIJhvbF.js → index-BIohKOaQ.js} +1 -1
  26. package/dist/{index-D1PtCSNo.js → index-BPEOHrMY.js} +2 -2
  27. package/dist/{index-DDxhg6X6.js → index-Br4pPBw3.js} +2 -2
  28. package/dist/{index-Bs_op1YX.js → index-C2PmirTf.js} +3 -3
  29. package/dist/{index-CyTfW7bb.js → index-C2ffuAYb.js} +4 -4
  30. package/dist/{index-SB-6jek0.js → index-C2kYO0cy.js} +4 -4
  31. package/dist/{index-CcH4ohJ_.js → index-CABGgn9P.js} +2 -2
  32. package/dist/{index-QxHb_qeo.js → index-CAqkQtOq.js} +2 -2
  33. package/dist/{index-CpFp2zWs.js → index-CGTgmNWF.js} +2 -2
  34. package/dist/{index-DKPj-Jsc.js → index-Ce6TjHV2.js} +3 -3
  35. package/dist/{index-BO7qLY_A.js → index-Cx-FU6Gm.js} +7 -7
  36. package/dist/{index-DhdIiv9I.js → index-D0PeBPfJ.js} +4 -4
  37. package/dist/{index-C1P1tCug.js → index-D7KogVqW.js} +3 -3
  38. package/dist/{index-DnZf5kFT.js → index-D8jtytdS.js} +4 -4
  39. package/dist/{index-Csp20V_C.js → index-DB2RGu8K.js} +5147 -4917
  40. package/dist/{index-dR4kMyJ7.js → index-DFRmrUjX.js} +1 -1
  41. package/dist/{index-B8IL-7_U.js → index-DHWhyTIK.js} +4 -4
  42. package/dist/{index-G7BEtCTt.js → index-DUlBiQtl.js} +3 -3
  43. package/dist/{index-CWQmRKXJ.js → index-D_P4Urp2.js} +4 -4
  44. package/dist/{index-DOVqr745.js → index-Dg7OV12A.js} +31 -31
  45. package/dist/{index-BxFE2Unj.js → index-Dpn8_aG_.js} +13 -13
  46. package/dist/{index-DPm1qXRL.js → index-Dvj2aQzS.js} +2 -2
  47. package/dist/{index-CIz85z2d.js → index-JL3Wermk.js} +2 -2
  48. package/dist/{index-BPs0GUi0.js → index-Ry5qK6ET.js} +4 -4
  49. package/dist/{index-C0G7EHjl.js → index-cQyA4S9L.js} +7 -7
  50. package/dist/{index-DlHufcDq.js → index-el2rRTti.js} +7 -7
  51. package/dist/{index-DN-NdrN8.js → index-fMGZyGCM.js} +3 -3
  52. package/dist/{index-gjTnuwmH.js → index-fsHFGWT7.js} +2 -2
  53. package/dist/{index-DaRwVfNh.js → index-vWXwGhx5.js} +3 -3
  54. package/dist/{index-B5bAjn80.js → index-zrzeJIBS.js} +2 -2
  55. package/dist/index.es.js +2 -2
  56. package/dist/{onramp-BfgwVaz4.js → onramp-DqtQTg4r.js} +14 -14
  57. package/dist/{pay-with-exchange-IINfHruD.js → pay-with-exchange-C0oNjyvj.js} +15 -15
  58. package/dist/{receive-tK9feGwv.js → receive-Bb7EcFWE.js} +5 -5
  59. package/dist/{ref-CDkfw-zs.js → ref-CujhPCia.js} +2 -2
  60. package/dist/{send-mES3HGGI.js → send-DGTDv4Th.js} +15 -15
  61. package/dist/{socials-U7A0qfan.js → socials-Cp4djpe9.js} +10 -10
  62. package/dist/{swaps-CVIliCpc.js → swaps-DD8uJyu7.js} +11 -11
  63. package/dist/{transactions-C1kMLLvz.js → transactions-DYOP0lkN.js} +3 -3
  64. package/dist/{w3m-modal-DYHBxO0T.js → w3m-modal-JJJ6hUHU.js} +12 -12
  65. package/package.json +8 -7
@@ -1,33 +1,33 @@
1
- import { createElementBlock as a, openBlock as t, createElementVNode as e, renderSlot as re, createCommentVNode as i, computed as v, inject as ue, normalizeStyle as fe, toDisplayString as _, ref as h, unref as u, Fragment as T, createTextVNode as b, watch as Be, normalizeClass as A, createBlock as W, renderList as ie, withCtx as P, defineComponent as We, onMounted as we, withDirectives as _e, withKeys as ke, vModelText as Ae, resolveDynamicComponent as Qe, mergeProps as Ee, defineAsyncComponent as Ke, createSlots as Ve, createVNode as Je, vShow as Te, nextTick as Xe } from "vue";
2
- import { p as De, a5 as Ne, a6 as Me, a7 as Le, a8 as je, a9 as $e, V as Oe, m as Ge } from "./index-Csp20V_C.js";
3
- import { storeToRefs as Ce } from "pinia";
4
- import { _ as Fe } from "./_plugin-vue_export-helper-CHgC5LLL.js";
5
- const Ze = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAI0AAAB1CAYAAABzn2LRAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAABnrSURBVHgB7V0JdFzVef5n3/d9tNmSvIDBgZpASdMAcRJoMKQNMZCwBNIkBJwTCgQ4BVIMlMU5YQkkoS5L7aSJWVMcdgIYw8FAbBYDxkACXrAxNsabLEu2pFG/b+YJhJDeaN7cNxrJ851zjwy23rvv3v/++/9fm9RQKVgSicQEh8NxIIbX7/e7mpubc7Nmzep+6qmneqWGGvpj2rRpjkgk/iObzfYB/jNntVr32O32DSCex/Hn65PJzCk+n29qKpVKTp061Scy24p/Z5EqRdVObKygqakps3Hjh1fs2dN5Si6Xc8gna/4p7mKxWDpcLtca/Jt3AoHQazabfUUu1/WW0+nc5PV6t9XX1+8CR+oZ+Hs1jCHMnDnTFo/HZ4AQVuA/c1LY7GIj98mw9IATtXs83vc8Hs9il8v9m3A4dgqIaHIgEIhPmTLFKbVDP3YArhDFRl8H0bNThk8wwyEmcpqdIKZXIOp+B6L8t2g0+rVQKNmSzWbjra2trtmz86LNVNQoVS0ssVjsoI6OjhswDu3t7TVrfT8WURBr3eA+m8Vq/cDlcKwEZ3vPZnO+2Na27U0o2xtBWNtWrFixR2qoPkCJ9QWD4XPAATaLGu5imCOBkKhstzudrjdsNset6XR6itRQVbBAHO3v8wUewkZ1ycgQiy4RQR96YNy4cWGpYeRBUzqZTJ4KHWOjjBx3KTpAzLuh+1xx+OGH26WGEYMlm21udHu9t1mttg6pYoLpG3aHY1MikTlKaqg8aEqDu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rXEol0o/3vtbu4xqezqQXNlj0xTgVEIKLvOLV6/7/pIKHTt6tWrO2UvRJ5oentztGr2uhNTCrRE9kVeb/CSDz5Yt2z71q052ZuBxTjUhHshx4w4Yt87mNKzK9p2rNrB+iGYxWbcIDLaB9uOvardnjtqErwrBWs0mji7CvJ0q2XkTelgMPyrhoaGkhoO7FVADCbt9wcW7uWEQ8uoB36XlYjUf2dMx41UgYnTTHC2WJRGe0cFsXCw4jMWS1yTzTY3Sg3DB/UbEM7NYM+btOqAsUo8eULhN+JbN8Lv8r9akLGmuxTBUGY2L284BAHGUzs7O7/Q1dXFdqJexI4c2u+MZvM8n5BltVpgETnfh1X0sN/vvW39+vV9LWFrKIJim29rampK5nLW1rZdO1o6du6KY6HTWPAwftOC5ff19PTkk6Ot1vyzeIItuVz+Z/7/8c+D/eTfD/bnwf5dH0C09vb2dr6vPzfIv7PfTxn4Z7fbu8Nut7XZbNYNOACbHA73m5FIbHlXl/29deve6EuNqGGYMMIx+nOaSnMdo+/L9ftZI5Ay8f+8FFLxg4KdeQAAAABJRU5ErkJggg==", qe = {}, et = { class: "_p-5 _w-full _flex _flex-col _gap-6 _items-center _overflow-y-scroll-masked _no-scrollbar _relative" }, tt = { class: "_absolute _top-4 _left-4 _z-10" }, at = { class: "_mt-8 _w-full _text-center" }, st = { class: "_size-24 _rounded-full _mx-auto" }, lt = { class: "_mt-5 _flex _flex-col _gap-3 _w-full" }, nt = { class: "_text-5xl _tracking-wide _w-full _text-center _min-w-0" }, ot = { class: "_w-full _flex-1 _flex _flex-col _gap-3" };
6
- function rt(x, s) {
7
- return t(), a("div", et, [
8
- e("div", tt, [
9
- re(x.$slots, "admin-controls")
1
+ import { createElementBlock as a, openBlock as t, createElementVNode as e, renderSlot as de, createCommentVNode as i, computed as f, inject as _e, normalizeStyle as pe, toDisplayString as d, ref as b, unref as u, Fragment as A, createTextVNode as h, watch as De, normalizeClass as k, createBlock as W, renderList as oe, withCtx as P, defineComponent as We, onMounted as Ae, withDirectives as ve, withKeys as Ce, vModelText as Se, resolveDynamicComponent as Qe, mergeProps as Ee, defineAsyncComponent as Ke, createSlots as Ve, createVNode as Je, vShow as Be, nextTick as Xe } from "vue";
2
+ import { p as Ne, a5 as Me, a6 as Oe, a7 as Le, a8 as je, a9 as $e, aa as Fe, V as Ge, m as Ze } from "./index-DB2RGu8K.js";
3
+ import { storeToRefs as Ue } from "pinia";
4
+ import { _ as He } from "./_plugin-vue_export-helper-CHgC5LLL.js";
5
+ const qe = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAI0AAAB1CAYAAABzn2LRAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAABnrSURBVHgB7V0JdFzVef5n3/d9tNmSvIDBgZpASdMAcRJoMKQNMZCwBNIkBJwTCgQ4BVIMlMU5YQkkoS5L7aSJWVMcdgIYw8FAbBYDxkACXrAxNsabLEu2pFG/b+YJhJDeaN7cNxrJ851zjwy23rvv3v/++/9fm9RQKVgSicQEh8NxIIbX7/e7mpubc7Nmzep+6qmneqWGGvpj2rRpjkgk/iObzfYB/jNntVr32O32DSCex/Hn65PJzCk+n29qKpVKTp061Scy24p/Z5EqRdVObKygqakps3Hjh1fs2dN5Si6Xc8gna/4p7mKxWDpcLtca/Jt3AoHQazabfUUu1/WW0+nc5PV6t9XX1+8CR+oZ+Hs1jCHMnDnTFo/HZ4AQVuA/c1LY7GIj98mw9IATtXs83vc8Hs9il8v9m3A4dgqIaHIgEIhPmTLFKbVDP3YArhDFRl8H0bNThk8wwyEmcpqdIKZXIOp+B6L8t2g0+rVQKNmSzWbjra2trtmz86LNVNQoVS0ssVjsoI6OjhswDu3t7TVrfT8WURBr3eA+m8Vq/cDlcKwEZ3vPZnO+2Na27U0o2xtBWNtWrFixR2qoPkCJ9QWD4XPAATaLGu5imCOBkKhstzudrjdsNset6XR6itRQVbBAHO3v8wUewkZ1ycgQiy4RQR96YNy4cWGpYeRBUzqZTJ4K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cC8nYRNUV6a2m/kFI/eKhlUdjuhXM+vygRvM6HV+47GG0JGlGDcHs9bybS5XdCrFlAyjaR17rXEol0o/3vtbu4xqezqQXNlj0xTgVEIKLvOLV6/7/pIKHTt6tWrO2UvRJ5oentztGr2uhNTCrRE9kVeb/CSDz5Yt2z71q052ZuBxTjUhHshx4w4Yt87mNKzK9p2rNrB+iGYxWbcIDLaB9uOvardnjtqErwrBWs0mji7CvJ0q2XkTelgMPyrhoaGkhoO7FVADCbt9wcW7uWEQ8uoB36XlYjUf2dMx41UgYnTTHC2WJRGe0cFsXCw4jMWS1yTzTY3Sg3DB/UbEM7NYM+btOqAsUo8eULhN+JbN8Lv8r9akLGmuxTBUGY2L284BAHGUzs7O7/Q1dXFdqJexI4c2u+MZvM8n5BltVpgETnfh1X0sN/vvW39+vV9LWFrKIJim29rampK5nLW1rZdO1o6du6KY6HTWPAwftOC5ff19PTkk6Ot1vyzeIItuVz+Z/7/8c+D/eTfD/bnwf5dH0C09vb2dr6vPzfIv7PfTxn4Z7fbu8Nut7XZbNYNOACbHA73m5FIbHlXl/29deve6EuNqGGYMMIx+nOaSnMdo+/L9ftZI5Ay8f+8FFLxg4KdeQAAAABJRU5ErkJggg==", et = {}, tt = { class: "_p-5 _w-full _flex _flex-col _gap-6 _items-center _overflow-y-scroll-masked _no-scrollbar _relative" }, at = { class: "_absolute _top-4 _left-4 _z-10" }, st = { class: "_mt-8 _w-full _text-center" }, lt = { class: "_size-24 _rounded-full _mx-auto" }, nt = { class: "_mt-5 _flex _flex-col _gap-3 _w-full" }, ot = { class: "_text-5xl _tracking-wide _w-full _text-center _min-w-0" }, rt = { class: "_w-full _flex-1 _flex _flex-col _gap-3" };
6
+ function it(x, s) {
7
+ return t(), a("div", tt, [
8
+ e("div", at, [
9
+ de(x.$slots, "admin-controls")
10
10
  ]),
11
- e("header", at, [
12
- e("div", st, [
13
- re(x.$slots, "avatar")
14
- ]),
11
+ e("header", st, [
15
12
  e("div", lt, [
16
- e("h2", nt, [
17
- re(x.$slots, "title")
13
+ de(x.$slots, "avatar")
14
+ ]),
15
+ e("div", nt, [
16
+ e("h2", ot, [
17
+ de(x.$slots, "title")
18
18
  ]),
19
- x.$slots.description ? re(x.$slots, "description", { key: 0 }) : i("", !0)
19
+ x.$slots.description ? de(x.$slots, "description", { key: 0 }) : i("", !0)
20
20
  ])
21
21
  ]),
22
- e("section", ot, [
23
- re(x.$slots, "default")
22
+ e("section", rt, [
23
+ de(x.$slots, "default")
24
24
  ])
25
25
  ]);
26
26
  }
27
- const it = /* @__PURE__ */ Fe(qe, [["render", rt]]), ut = ["disabled"], ct = { class: "_size-7 _rounded-lg _overflow-hidden" }, dt = ["src"], _t = { class: "_flex-1 _min-w-0 _truncate _text-center _text-stroke-md _leading-snug" }, ft = { class: "_size-7 _flex _justify-end _items-center" }, mt = {
27
+ const ut = /* @__PURE__ */ He(et, [["render", it]]), ct = ["disabled"], dt = { class: "_size-7 _rounded-lg _overflow-hidden" }, _t = ["src"], ft = { class: "_flex-1 _min-w-0 _truncate _text-center _text-stroke-md _leading-snug" }, mt = { class: "_size-7 _flex _justify-end _items-center" }, vt = {
28
28
  key: 0,
29
29
  class: "_whitespace-nowrap _leading-snug _pr-[0.25em] _pl-[0.4em] _shadow-panel-inset _rounded-full _text-[0.875em] _tracking-tight"
30
- }, oe = {
30
+ }, ne = {
31
31
  __name: "AuthButton",
32
32
  props: {
33
33
  platform: {
@@ -44,13 +44,13 @@ const it = /* @__PURE__ */ Fe(qe, [["render", rt]]), ut = ["disabled"], ct = { c
44
44
  }
45
45
  },
46
46
  setup(x) {
47
- const s = x, C = v(() => De[s.platform]), r = ue("TrifleHub/store");
47
+ const s = x, C = f(() => Ne[s.platform]), o = _e("TrifleHub/store");
48
48
  let S = !1;
49
- const D = async (m) => {
49
+ const L = async (v) => {
50
50
  if (!S)
51
51
  switch (S = !0, setTimeout(() => {
52
52
  S = !1;
53
- }, 1e3), m) {
53
+ }, 1e3), v) {
54
54
  case "discord":
55
55
  await y();
56
56
  break;
@@ -58,98 +58,110 @@ const it = /* @__PURE__ */ Fe(qe, [["render", rt]]), ut = ["disabled"], ct = { c
58
58
  await B();
59
59
  break;
60
60
  case "wallet":
61
- await o();
61
+ await r();
62
62
  break;
63
63
  case "twitter":
64
- await z();
64
+ await D();
65
65
  break;
66
66
  case "telegram":
67
67
  await w();
68
68
  break;
69
+ case "solana":
70
+ await N();
71
+ break;
69
72
  default:
70
- throw new Error(`Unsupported platform: ${m}`);
73
+ throw new Error(`Unsupported platform: ${v}`);
71
74
  }
72
75
  }, B = async () => {
73
76
  console.log("Farcaster connect clicked");
74
77
  try {
75
- await r.connectFarcaster();
76
- } catch (m) {
77
- console.error("Farcaster connection failed:", m), r.addNotification({
78
+ await o.connectFarcaster();
79
+ } catch (v) {
80
+ console.error("Farcaster connection failed:", v), o.addNotification({
78
81
  type: "error",
79
82
  message: "Farcaster login failed. Try again?"
80
83
  });
81
84
  }
82
- }, o = async () => {
85
+ }, r = async () => {
83
86
  try {
84
- await r.connectWallet();
85
- } catch (m) {
86
- console.error("Wallet connection failed:", m), r.addNotification({
87
+ await o.connectWallet();
88
+ } catch (v) {
89
+ console.error("Wallet connection failed:", v), o.addNotification({
87
90
  type: "error",
88
91
  message: "Wallet login failed. Try again?"
89
92
  });
90
93
  }
91
94
  }, y = async () => {
92
95
  try {
93
- await r.connectDiscord();
94
- } catch (m) {
95
- m.message.includes("Authentication window closed") && r.addNotification({
96
+ await o.connectDiscord();
97
+ } catch (v) {
98
+ v.message.includes("Authentication window closed") && o.addNotification({
96
99
  type: "error",
97
100
  message: "Discord login failed. Try again?"
98
- }), console.error("Discord connection failed:", m);
101
+ }), console.error("Discord connection failed:", v);
99
102
  }
100
- }, z = async () => {
103
+ }, D = async () => {
101
104
  try {
102
- await r.connectTwitter();
103
- } catch (m) {
104
- m.message.includes("Authentication window closed") && r.addNotification({
105
+ await o.connectTwitter();
106
+ } catch (v) {
107
+ v.message.includes("Authentication window closed") && o.addNotification({
105
108
  type: "error",
106
109
  message: "TwitterX login failed. Try again?"
107
- }), console.error("TwitterX connection failed:", m);
110
+ }), console.error("TwitterX connection failed:", v);
108
111
  }
109
112
  }, w = async () => {
110
113
  try {
111
- await r.connectTelegram();
112
- } catch (m) {
113
- console.error("Telegram connection failed:", m), r.addNotification({
114
+ await o.connectTelegram();
115
+ } catch (v) {
116
+ console.error("Telegram connection failed:", v), o.addNotification({
114
117
  type: "error",
115
118
  message: "Telegram login failed. Try again?"
116
119
  });
117
120
  }
121
+ }, N = async () => {
122
+ try {
123
+ await o.connectSolana();
124
+ } catch (v) {
125
+ console.error("Solana connection failed:", v), o.addNotification({
126
+ type: "error",
127
+ message: v.message || "Solana login failed. Try again?"
128
+ });
129
+ }
118
130
  };
119
- return (m, j) => (t(), a("button", {
131
+ return (v, M) => (t(), a("button", {
120
132
  class: "_platform-login-btn _bubble-btn-full _p-4.5",
121
- style: fe({
133
+ style: pe({
122
134
  filter: `hue-rotate(${C.value.bubbleButtonStyle.hueRotate}deg) saturate(${C.value.bubbleButtonStyle.saturate}) brightness(${C.value.bubbleButtonStyle.brightness || 1})`
123
135
  }),
124
136
  disabled: s.disabled,
125
- onClick: j[0] || (j[0] = (N) => s.click || D(s.platform))
137
+ onClick: M[0] || (M[0] = (I) => s.click || L(s.platform))
126
138
  }, [
127
139
  e("div", {
128
140
  class: "_flex _justify-between _items-center _gap-2.5",
129
- style: fe({
141
+ style: pe({
130
142
  filter: `hue-rotate(${C.value.bubbleButtonStyle.hueRotate * -1}deg) saturate(${1 / C.value.bubbleButtonStyle.saturate})`
131
143
  })
132
144
  }, [
133
- e("div", ct, [
145
+ e("div", dt, [
134
146
  e("img", {
135
147
  src: C.value.icon,
136
148
  class: "_w-full",
137
- style: fe({ backgroundColor: C.value.iconBgColor })
138
- }, null, 12, dt)
139
- ]),
140
- e("div", _t, [
141
- re(m.$slots, "default")
149
+ style: pe({ backgroundColor: C.value.iconBgColor })
150
+ }, null, 12, _t)
142
151
  ]),
143
152
  e("div", ft, [
144
- s.points ? (t(), a("div", mt, _(s.points) + " 🪩 ", 1)) : i("", !0)
153
+ de(v.$slots, "default")
154
+ ]),
155
+ e("div", mt, [
156
+ s.points ? (t(), a("div", vt, d(s.points) + " 🪩 ", 1)) : i("", !0)
145
157
  ])
146
158
  ], 4)
147
- ], 12, ut));
159
+ ], 12, ct));
148
160
  }
149
- }, vt = { class: "_flex _flex-col _gap-2ff _bg-metallic-linear _shadow-panel _rounded-lg _p-3 _gap-3" }, pt = { class: "_flex _items-center _justify-between _gap-3" }, gt = { class: "_flex _items-center _gap-2.5 _min-w-0" }, ht = { class: "_flex-1 _min-w-0 _leading-tight" }, yt = { class: "_flex-1 _min-w-0 _truncate _text-em-lg _text-gray-500" }, bt = ["disabled"], xt = { class: "_flex-1 _min-w-0 _truncate _text-center _text-stroke-md _leading-snug" }, wt = {
161
+ }, pt = { class: "_flex _flex-col _gap-2ff _bg-metallic-linear _shadow-panel _rounded-lg _p-3 _gap-3" }, gt = { class: "_flex _items-center _justify-between _gap-3" }, ht = { class: "_flex _items-center _gap-2.5 _min-w-0" }, yt = { class: "_flex-1 _min-w-0 _leading-tight" }, bt = { class: "_flex-1 _min-w-0 _truncate _text-em-lg _text-gray-500" }, xt = ["disabled"], wt = { class: "_flex-1 _min-w-0 _truncate _text-center _text-stroke-md _leading-snug" }, kt = {
150
162
  key: 0,
151
163
  class: "_animate-pulse-deep"
152
- }, kt = {
164
+ }, At = {
153
165
  __name: "AuthenticateWalletSection",
154
166
  props: {
155
167
  walletAddress: String,
@@ -162,22 +174,22 @@ const it = /* @__PURE__ */ Fe(qe, [["render", rt]]), ut = ["disabled"], ct = { c
162
174
  }
163
175
  },
164
176
  setup(x) {
165
- const s = De.wallet, C = x, r = ue("TrifleHub/store"), S = h(!1), D = async () => {
166
- if (C.disabled || r.isSimulationMode) {
167
- r.addNotification({
177
+ const s = Ne.wallet, C = x, o = _e("TrifleHub/store"), S = b(!1), L = async () => {
178
+ if (C.disabled || o.isSimulationMode) {
179
+ o.addNotification({
168
180
  message: "Cannot disconnect wallet in simulation mode",
169
181
  type: "error"
170
182
  });
171
183
  return;
172
184
  }
173
185
  try {
174
- await r.disconnect(), r.addNotification({ message: "Wallet disconnected" });
175
- } catch (o) {
176
- console.error(o), r.addNotification({ type: "error", message: "Failed to disconnect wallet" });
186
+ await o.disconnect(), o.addNotification({ message: "Wallet disconnected" });
187
+ } catch (r) {
188
+ console.error(r), o.addNotification({ type: "error", message: "Failed to disconnect wallet" });
177
189
  }
178
190
  }, B = async () => {
179
- if (C.disabled || r.isSimulationMode) {
180
- r.addNotification({
191
+ if (C.disabled || o.isSimulationMode) {
192
+ o.addNotification({
181
193
  message: "Cannot authenticate wallet in simulation mode",
182
194
  type: "error"
183
195
  });
@@ -185,29 +197,29 @@ const it = /* @__PURE__ */ Fe(qe, [["render", rt]]), ut = ["disabled"], ct = { c
185
197
  }
186
198
  S.value = !0;
187
199
  try {
188
- await r.authenticateWithWallet(C.walletAddress);
200
+ await o.authenticateWithWallet(C.walletAddress);
189
201
  } catch {
190
- r.addNotification({ type: "error", message: "Authentication failed" });
202
+ o.addNotification({ type: "error", message: "Authentication failed" });
191
203
  } finally {
192
204
  S.value = !1;
193
205
  }
194
206
  };
195
- return (o, y) => (t(), a("section", vt, [
196
- e("div", pt, [
197
- e("div", gt, [
207
+ return (r, y) => (t(), a("section", pt, [
208
+ e("div", gt, [
209
+ e("div", ht, [
198
210
  y[0] || (y[0] = e("img", {
199
- src: Ne,
211
+ src: Me,
200
212
  class: "_size-7 _rounded-md",
201
213
  style: { "background-color": "#f1584d" }
202
214
  }, null, -1)),
203
- e("div", ht, [
204
- e("div", yt, _(x.displayName), 1)
215
+ e("div", yt, [
216
+ e("div", bt, d(x.displayName), 1)
205
217
  ])
206
218
  ]),
207
219
  e("button", {
208
220
  class: "_bubble-btn _h-10 _text-sm _text-stroke-md _px-[1em]",
209
221
  "aria-label": "Disconnect wallet",
210
- onClick: D,
222
+ onClick: L,
211
223
  title: "Disconnect wallet"
212
224
  }, y[1] || (y[1] = [
213
225
  e("span", null, "⛌", -1)
@@ -215,108 +227,111 @@ const it = /* @__PURE__ */ Fe(qe, [["render", rt]]), ut = ["disabled"], ct = { c
215
227
  ]),
216
228
  e("button", {
217
229
  class: "_platform-login-btn _bubble-btn _p-4.5 flex-1 basis-1/2ff min-w-0",
218
- style: fe({
230
+ style: pe({
219
231
  filter: `hue-rotate(${u(s).bubbleButtonStyle.hueRotate}deg) saturate(${u(s).bubbleButtonStyle.saturate}) brightness(${u(s).bubbleButtonStyle.brightness || 1})`
220
232
  }),
221
233
  onClick: B,
222
234
  disabled: S.value || x.disabled
223
235
  }, [
224
- e("div", xt, [
225
- S.value ? (t(), a("span", wt, "Confirm in your wallet...")) : (t(), a(T, { key: 1 }, [
226
- b("Finish Wallet Login")
236
+ e("div", wt, [
237
+ S.value ? (t(), a("span", kt, "Confirm in your wallet...")) : (t(), a(A, { key: 1 }, [
238
+ h("Finish Wallet Login")
227
239
  ], 64))
228
240
  ])
229
- ], 12, bt)
241
+ ], 12, xt)
230
242
  ]));
231
243
  }
232
- }, At = /* @__PURE__ */ Fe(kt, [["__scopeId", "data-v-1fad0d64"]]), Ct = { class: "_flex _items-center _gap-2.5 _-mt-1.5" }, St = { class: "_text-mlg _opacity-30 _weight-bold" }, Ut = { class: "_flex _flex-col _gap-0.5" }, zt = { class: "_flex _items-center _gap-2" }, Tt = ["disabled"], Bt = ["onClick"], Dt = ["src"], Nt = {
244
+ }, Ct = /* @__PURE__ */ He(At, [["__scopeId", "data-v-1fad0d64"]]), St = { class: "_flex _items-center _gap-2.5 _-mt-1.5" }, Ut = { class: "_text-mlg _opacity-30 _weight-bold" }, zt = { class: "_flex _flex-col _gap-0.5" }, Tt = { class: "_flex _items-center _gap-2" }, Bt = ["disabled"], Dt = ["onClick"], Nt = ["src"], Mt = {
233
245
  key: 1,
234
246
  class: "_w-full _flex _items-center _justify-center"
235
- }, Mt = { class: "_flex-1 _min-w-0 _leading-tight" }, Lt = ["onClick"], jt = {
247
+ }, Lt = { class: "_flex-1 _min-w-0 _leading-tight" }, jt = ["onClick"], $t = {
236
248
  key: 0,
237
249
  class: "_text-em-2xs _text-primary _leading-none _weight-semibold"
238
- }, $t = {
250
+ }, Ft = {
239
251
  key: 0,
240
252
  class: "_opacity-30"
241
- }, Ft = {
253
+ }, Ht = {
242
254
  key: 1,
243
255
  class: "_text-em-2xs _text-gray-500 _leading-none _weight-semibold"
244
- }, Ht = ["onClick"], Yt = { styleff: "filter: hue-rotate(-130deg) saturate(0.5)" }, It = {
256
+ }, Yt = ["onClick"], It = { styleff: "filter: hue-rotate(-130deg) saturate(0.5)" }, Pt = {
257
+ key: 0,
258
+ class: "_flex _items-center _gap-2.5 _-mt-1.5"
259
+ }, Rt = { class: "_text-mlg _opacity-30 _weight-bold" }, Wt = { class: "_flex _flex-col _gap-0.5" }, Qt = { class: "_flex _items-center _gap-2" }, Et = { class: "_flex-1 _min-w-0 _leading-tight" }, Kt = { class: "_flex-1 _min-w-0 _truncate _text-em-lg" }, Vt = ["onClick"], Jt = {
245
260
  key: 0,
246
261
  class: "_flex _items-center _gap-2.5 _-mt-1.5"
247
- }, Pt = { class: "_space-y-0.5" }, Rt = { class: "_flex _items-center _gap-2" }, Wt = ["disabled"], Qt = ["onClick"], Et = ["src"], Kt = {
262
+ }, Xt = { class: "_space-y-0.5" }, Ot = { class: "_flex _items-center _gap-2" }, Gt = ["disabled"], Zt = ["onClick"], qt = ["src"], ea = {
248
263
  key: 1,
249
264
  class: "_w-full _flex _items-center _justify-center"
250
- }, Vt = { class: "_flex-1 _min-w-0 _leading-tight" }, Jt = { class: "_flex-1 _min-w-0 _truncate _text-em-lg" }, Xt = ["onClick"], Ot = { styleff: "filter: hue-rotate(-130deg) saturate(0.5)" }, Gt = {
265
+ }, ta = { class: "_flex-1 _min-w-0 _leading-tight" }, aa = { class: "_flex-1 _min-w-0 _truncate _text-em-lg" }, sa = ["onClick"], la = { styleff: "filter: hue-rotate(-130deg) saturate(0.5)" }, na = {
251
266
  key: 0,
252
267
  class: "_flex _items-center _gap-2.5 _-mt-1.5"
253
- }, Zt = { class: "_space-y-0.5" }, qt = { class: "_flex _items-center _gap-2" }, ea = ["disabled"], ta = ["onClick"], aa = ["src"], sa = {
268
+ }, oa = { class: "_space-y-0.5" }, ra = { class: "_flex _items-center _gap-2" }, ia = ["disabled"], ua = ["onClick"], ca = ["src"], da = {
254
269
  key: 1,
255
270
  class: "_w-full _flex _items-center _justify-center"
256
- }, la = { class: "_flex-1 _min-w-0 _leading-tight" }, na = { class: "_flex-1 _min-w-0 _truncate _text-em-lg" }, oa = {
271
+ }, _a = { class: "_flex-1 _min-w-0 _leading-tight" }, fa = { class: "_flex-1 _min-w-0 _truncate _text-em-lg" }, ma = {
257
272
  key: 0,
258
273
  class: "_text-em-2xs _text-blue-400 _leading-none"
259
- }, ra = ["onClick"], ia = { styleff: "filter: hue-rotate(-130deg) saturate(0.5)" }, ua = {
274
+ }, va = ["onClick"], pa = { styleff: "filter: hue-rotate(-130deg) saturate(0.5)" }, ga = {
260
275
  key: 0,
261
276
  class: "_flex _items-center _gap-2.5 _-mt-1.5"
262
- }, ca = { class: "_space-y-0.5" }, da = { class: "_flex _items-center _gap-2" }, _a = ["disabled"], fa = ["onClick"], ma = ["src"], va = {
277
+ }, ha = { class: "_space-y-0.5" }, ya = { class: "_flex _items-center _gap-2" }, ba = ["disabled"], xa = ["onClick"], wa = ["src"], ka = {
263
278
  key: 1,
264
279
  class: "_w-full _flex _items-center _justify-center"
265
- }, pa = { class: "_flex-1 _min-w-0 _leading-tight" }, ga = { class: "_flex-1 _min-w-0 _truncate _text-em-lg" }, ha = ["onClick"], ya = { styleff: "filter: hue-rotate(-130deg) saturate(0.5)" }, ba = {
280
+ }, Aa = { class: "_flex-1 _min-w-0 _leading-tight" }, Ca = { class: "_flex-1 _min-w-0 _truncate _text-em-lg" }, Sa = ["onClick"], Ua = { styleff: "filter: hue-rotate(-130deg) saturate(0.5)" }, za = {
266
281
  key: 0,
267
282
  class: "_flex _items-center _gap-2.5 _-mt-1.5"
268
- }, xa = { class: "_space-y-0.5" }, wa = { class: "_flex _items-center _p-2 _pr-3.5 _justify-between _bg-metallic-linear _shadow-panel _rounded-lg" }, ka = { class: "_flex _items-center _gap-2" }, Aa = ["disabled"], Ca = ["onClick"], Sa = ["src"], Ua = {
283
+ }, Ta = { class: "_space-y-0.5" }, Ba = { class: "_flex _items-center _p-2 _pr-3.5 _justify-between _bg-metallic-linear _shadow-panel _rounded-lg" }, Da = { class: "_flex _items-center _gap-2" }, Na = ["disabled"], Ma = ["onClick"], La = ["src"], ja = {
269
284
  key: 1,
270
285
  class: "_w-full _flex _items-center _justify-center"
271
- }, za = { class: "_flex-1 _min-w-0 _leading-tight" }, Ta = { class: "_flex-1 _min-w-0 _truncate _text-em-lg" }, Ba = ["onClick"], Da = { styleff: "filter: hue-rotate(-130deg) saturate(0.5)" }, Na = {
286
+ }, $a = { class: "_flex-1 _min-w-0 _leading-tight" }, Fa = { class: "_flex-1 _min-w-0 _truncate _text-em-lg" }, Ha = ["onClick"], Ya = { styleff: "filter: hue-rotate(-130deg) saturate(0.5)" }, Ia = {
272
287
  __name: "AccountSettings",
273
288
  setup(x) {
274
- const s = ue("TrifleHub/store"), { isAuthenticated: C, backendUrl: r } = Ce(s), S = v(() => s.isFarcaster), D = v(() => s.isSuperApp), B = async () => {
289
+ const s = _e("TrifleHub/store"), { isAuthenticated: C, backendUrl: o } = Ue(s), S = f(() => s.isFarcaster), L = f(() => s.isSuperApp), B = async () => {
275
290
  await s.addFrame();
276
- }, o = v(() => s.getPlatformData("wallet")), y = v(() => s.getPlatformData("discord").filter((k) => k.username)), z = v(() => s.getPlatformData("farcaster")), w = v(() => s.getPlatformData("twitter").filter((k) => k.username)), m = v(() => s.getPlatformData("telegram").filter((k) => k.username)), j = v(() => y.value.length > 0), N = v(() => z.value.length > 0), R = v(() => w.value.length > 0), Q = v(() => m.value.length > 0), I = v(
277
- () => o.value.length + y.value.length + z.value.length + w.value.length + m.value.length
278
- ), M = h({ platform: null, id: null }), E = async (k, d, H) => {
279
- if (H.stopPropagation(), s.isSimulationMode) {
291
+ }, r = f(() => s.getPlatformData("wallet")), y = f(() => s.getPlatformData("solana")), D = f(() => s.getPlatformData("discord").filter((g) => g.username)), w = f(() => s.getPlatformData("farcaster")), N = f(() => s.getPlatformData("twitter").filter((g) => g.username)), v = f(() => s.getPlatformData("telegram").filter((g) => g.username)), M = f(() => D.value.length > 0), I = f(() => w.value.length > 0), R = f(() => N.value.length > 0), X = f(() => v.value.length > 0), Z = f(() => y.value.length > 0), E = f(
292
+ () => r.value.length + y.value.length + D.value.length + w.value.length + N.value.length + v.value.length
293
+ ), U = b({ platform: null, id: null }), J = async (g, m, Q) => {
294
+ if (Q.stopPropagation(), s.isSimulationMode) {
280
295
  s.addNotification({
281
296
  message: "Cannot disconnect platforms in simulation mode",
282
297
  type: "error"
283
298
  });
284
299
  return;
285
300
  }
286
- if (M.value.platform === k && M.value.id === d) {
301
+ if (U.value.platform === g && U.value.id === m) {
287
302
  try {
288
- await s.disconnectPlatformInstance(k, d);
289
- } catch (X) {
290
- console.error(`Failed to disconnect ${k} instance:`, X);
303
+ await s.disconnectPlatformInstance(g, m);
304
+ } catch (ue) {
305
+ console.error(`Failed to disconnect ${g} instance:`, ue);
291
306
  }
292
- M.value = { platform: null, id: null };
307
+ U.value = { platform: null, id: null };
293
308
  return;
294
309
  }
295
- M.value = { platform: k, id: d };
296
- }, V = () => {
297
- M.value = { platform: null, id: null };
310
+ U.value = { platform: g, id: m };
311
+ }, re = () => {
312
+ U.value = { platform: null, id: null };
298
313
  };
299
- Be(M, (k) => {
300
- k.platform ? window.addEventListener("click", V, { once: !0 }) : window.removeEventListener("click", V);
314
+ De(U, (g) => {
315
+ g.platform ? window.addEventListener("click", re, { once: !0 }) : window.removeEventListener("click", re);
301
316
  });
302
- const ae = (k) => k ? `0x${k.slice(2, 6).toUpperCase()}...${k.slice(-4).toUpperCase()}` : "", se = async () => {
317
+ const H = (g) => g ? `0x${g.slice(2, 6).toUpperCase()}...${g.slice(-4).toUpperCase()}` : "", ie = (g) => g ? `${g.slice(0, 4)}...${g.slice(-4)}` : "", z = async () => {
303
318
  try {
304
319
  await s.disconnect(), console.log("User logged out");
305
- } catch (k) {
306
- console.error("Logout failed:", k);
320
+ } catch (g) {
321
+ console.error("Logout failed:", g);
307
322
  }
308
323
  };
309
- v(() => s.isWalletAuthenticated(s.accountAddress));
310
- const p = v(() => s.accountAddress), f = v(() => p.value ? o.value.find((k) => {
311
- var d, H;
312
- return ((d = k.id) == null ? void 0 : d.toLowerCase()) === ((H = p.value) == null ? void 0 : H.toLowerCase());
313
- }) : null), L = async () => {
324
+ f(() => s.isWalletAuthenticated(s.accountAddress));
325
+ const _ = f(() => s.accountAddress), j = f(() => _.value ? r.value.find((g) => {
326
+ var m, Q;
327
+ return ((m = g.id) == null ? void 0 : m.toLowerCase()) === ((Q = _.value) == null ? void 0 : Q.toLowerCase());
328
+ }) : null), O = async () => {
314
329
  try {
315
330
  await s.openAccountModal();
316
331
  } catch {
317
332
  s.addNotification({ type: "error", message: "Couldn't open wallet modal" });
318
333
  }
319
- }, J = async (k, d) => {
334
+ }, K = async (g, m) => {
320
335
  if (s.isSimulationMode) {
321
336
  s.addNotification({
322
337
  message: "Cannot set avatar in simulation mode",
@@ -325,42 +340,42 @@ const it = /* @__PURE__ */ Fe(qe, [["render", rt]]), ut = ["disabled"], ct = { c
325
340
  return;
326
341
  }
327
342
  try {
328
- if (!(await fetch(`${r.value}/auth/update-avatar`, {
343
+ if (!(await fetch(`${o.value}/auth/update-avatar`, {
329
344
  method: "POST",
330
345
  headers: {
331
346
  "Content-Type": "application/json",
332
347
  Authorization: `Bearer ${s.authToken}`
333
348
  },
334
- body: JSON.stringify({ platform: k, platformId: d })
349
+ body: JSON.stringify({ platform: g, platformId: m })
335
350
  })).ok) throw new Error("Failed to set avatar");
336
351
  await s.fetchUserStatus(), s.addNotification({ type: "success", message: "Avatar updated!" });
337
- } catch (H) {
338
- s.addNotification({ type: "error", message: "Oops, couldn't set avatar. Try again?" }), console.error("Failed to set avatar:", H);
352
+ } catch (Q) {
353
+ s.addNotification({ type: "error", message: "Oops, couldn't set avatar. Try again?" }), console.error("Failed to set avatar:", Q);
339
354
  }
340
355
  };
341
- return (k, d) => {
342
- var H, X, ee, me, ve, pe;
356
+ return (g, m) => {
357
+ var Q, ue, ge, he, ye, be, ce;
343
358
  return t(), a("section", {
344
- class: A(["_flex _flex-col _gap-[inherit]", k.$attrs.class])
359
+ class: k(["_flex _flex-col _gap-[inherit]", g.$attrs.class])
345
360
  }, [
346
361
  e("section", {
347
- class: A(["_bg-metallic-linear _shadow-panel _p-4 _space-y-1.5 _rounded-lg", { "_order-last": !((H = o.value) != null && H.length) }])
362
+ class: k(["_bg-metallic-linear _shadow-panel _p-4 _space-y-1.5 _rounded-lg", { "_order-last": !((Q = r.value) != null && Q.length) }])
348
363
  }, [
349
- e("div", Ct, [
350
- e("h3", St, " wallet" + _(o.value.length > 1 ? "s" : ""), 1)
364
+ e("div", St, [
365
+ e("h3", Ut, " wallet" + d(r.value.length > 1 ? "s" : ""), 1)
351
366
  ]),
352
- e("ul", Ut, [
353
- (t(!0), a(T, null, ie(o.value, (l) => {
354
- var $, F, Y, le, ge, ce, ne, O;
367
+ e("ul", zt, [
368
+ (t(!0), a(A, null, oe(r.value, (l) => {
369
+ var $, F, Y, V, G, se, fe, xe;
355
370
  return t(), a("li", {
356
371
  key: l.id,
357
- class: A(["_flex _items-center _p-2 _pr-3.5 _justify-between _bg-metallic-linear _shadow-panel _rounded-lg", {
372
+ class: k(["_flex _items-center _p-2 _pr-3.5 _justify-between _bg-metallic-linear _shadow-panel _rounded-lg", {
358
373
  "_order-first": u(s).accountConnected && l.id.toLowerCase() === (($ = u(s).accountAddress) == null ? void 0 : $.toLowerCase())
359
374
  }])
360
375
  }, [
361
- e("div", zt, [
376
+ e("div", Tt, [
362
377
  e("button", {
363
- class: A(["_size-11 _flex _items-stretch _p-1.5 _group _rounded-md _overflow-hidden", [
378
+ class: k(["_size-11 _flex _items-stretch _p-1.5 _group _rounded-md _overflow-hidden", [
364
379
  {
365
380
  "_shadow-panel": l.avatar,
366
381
  "_shadow-panel-inset _bg-metallic-cone _cursor-default": l.avatar === ((F = u(s).user) == null ? void 0 : F.avatar)
@@ -370,101 +385,155 @@ const it = /* @__PURE__ */ Fe(qe, [["render", rt]]), ut = ["disabled"], ct = { c
370
385
  }, [
371
386
  l.avatar ? (t(), a("div", {
372
387
  key: 0,
373
- onClick: () => J("wallet", l.id),
388
+ onClick: () => K("wallet", l.id),
374
389
  style: { background: "none" },
375
390
  type: "button",
376
391
  title: "Set as profile avatar"
377
392
  }, [
378
393
  e("img", {
379
394
  src: `${l.avatar}`,
380
- class: A(["_size-full _rounded-full _duration-150", {
395
+ class: k(["_size-full _rounded-full _duration-150", {
381
396
  "group-hover:_scale-[1.8]": l.avatar !== ((Y = u(s).user) == null ? void 0 : Y.avatar)
382
397
  }])
383
- }, null, 10, Dt)
384
- ], 8, Bt)) : (t(), a("div", Nt, d[0] || (d[0] = [
398
+ }, null, 10, Nt)
399
+ ], 8, Dt)) : (t(), a("div", Mt, m[0] || (m[0] = [
385
400
  e("img", {
386
- src: Ne,
401
+ src: Me,
387
402
  class: "_size-6 _rounded",
388
403
  style: { "background-color": "#f1584d" }
389
404
  }, null, -1)
390
405
  ])))
391
- ], 10, Tt),
392
- e("div", Mt, [
406
+ ], 10, Bt),
407
+ e("div", Lt, [
393
408
  e("div", {
394
409
  onClick: () => {
395
- var K;
396
- return l.id.toLowerCase() == ((K = u(s).accountAddress) == null ? void 0 : K.toLowerCase()) && L();
410
+ var q;
411
+ return l.id.toLowerCase() == ((q = u(s).accountAddress) == null ? void 0 : q.toLowerCase()) && O();
397
412
  },
398
- class: A(["_flex-1 _min-w-0 _truncate _text-em-lg", {
399
- "_text-stroke-xl _tracking-wide": o.value.length > 1 && u(s).accountConnected && l.id.toLowerCase() === ((le = u(s).accountAddress) == null ? void 0 : le.toLowerCase()),
400
- "cursor-pointer": l.id.toLowerCase() == ((ge = u(s).accountAddress) == null ? void 0 : ge.toLowerCase())
413
+ class: k(["_flex-1 _min-w-0 _truncate _text-em-lg", {
414
+ "_text-stroke-xl _tracking-wide": r.value.length > 1 && u(s).accountConnected && l.id.toLowerCase() === ((V = u(s).accountAddress) == null ? void 0 : V.toLowerCase()),
415
+ "cursor-pointer": l.id.toLowerCase() == ((G = u(s).accountAddress) == null ? void 0 : G.toLowerCase())
401
416
  }])
402
- }, _(l.username == l.id ? ae(l.id) : l.username), 11, Lt),
403
- u(s).accountConnected && l.id.toLowerCase() === ((ce = u(s).accountAddress) == null ? void 0 : ce.toLowerCase()) ? (t(), a("div", jt, [
404
- d[1] || (d[1] = b(" connected ")),
405
- (ne = l.metadata) != null && ne.origin ? (t(), a("span", $t, " via " + _(l.metadata.origin), 1)) : i("", !0)
406
- ])) : (O = l.metadata) != null && O.origin ? (t(), a("div", Ft, " via " + _(l.metadata.origin), 1)) : i("", !0)
417
+ }, d(l.username == l.id ? H(l.id) : l.username), 11, jt),
418
+ u(s).accountConnected && l.id.toLowerCase() === ((se = u(s).accountAddress) == null ? void 0 : se.toLowerCase()) ? (t(), a("div", $t, [
419
+ m[1] || (m[1] = h(" connected ")),
420
+ (fe = l.metadata) != null && fe.origin ? (t(), a("span", Ft, " via " + d(l.metadata.origin), 1)) : i("", !0)
421
+ ])) : (xe = l.metadata) != null && xe.origin ? (t(), a("div", Ht, " via " + d(l.metadata.origin), 1)) : i("", !0)
407
422
  ])
408
423
  ]),
409
- I.value > 1 ? (t(), a("button", {
424
+ E.value > 1 ? (t(), a("button", {
410
425
  key: 0,
411
426
  class: "_bubble-btn _h-10 _text-sm _text-stroke-md _px-[1em]",
412
- onClick: (K) => E("wallet", l.id, K),
427
+ onClick: (q) => J("wallet", l.id, q),
413
428
  styleff: "filter: hue-rotate(130deg) saturate(2)",
414
429
  "aria-label": "Remove"
415
430
  }, [
416
- e("span", Yt, [
417
- M.value.platform == "wallet" && M.value.id == l.id ? (t(), a(T, { key: 0 }, [
418
- b(" Confirm? ")
419
- ], 64)) : (t(), a(T, { key: 1 }, [
420
- b(" ⛌ ")
431
+ e("span", It, [
432
+ U.value.platform == "wallet" && U.value.id == l.id ? (t(), a(A, { key: 0 }, [
433
+ h(" Confirm? ")
434
+ ], 64)) : (t(), a(A, { key: 1 }, [
435
+ h(" ⛌ ")
421
436
  ], 64))
422
437
  ])
423
- ], 8, Ht)) : i("", !0)
438
+ ], 8, Yt)) : i("", !0)
424
439
  ], 2);
425
440
  }), 128)),
426
- u(C) && u(s).accountConnected && u(s).currentWalletNeedsAuth ? (t(), W(At, {
441
+ u(C) && u(s).accountConnected && u(s).currentWalletNeedsAuth ? (t(), W(Ct, {
427
442
  key: 0,
428
443
  "wallet-address": u(s).accountAddress,
429
- "wallet-avatar": (X = f.value) == null ? void 0 : X.avatar,
430
- "display-name": ((ee = f.value) == null ? void 0 : ee.username) || p.value,
444
+ "wallet-avatar": (ue = j.value) == null ? void 0 : ue.avatar,
445
+ "display-name": ((ge = j.value) == null ? void 0 : ge.username) || _.value,
431
446
  disabled: u(s).isSimulationMode
432
447
  }, {
433
448
  default: P(() => [
434
- b(" Authenticate " + _(ae(u(s).accountAddress)), 1)
449
+ h(" Authenticate " + d(H(u(s).accountAddress)), 1)
435
450
  ]),
436
451
  _: 1
437
452
  }, 8, ["wallet-address", "wallet-avatar", "display-name", "disabled"])) : i("", !0),
438
- u(C) && !u(s).accountConnected ? (t(), W(oe, {
453
+ u(C) && !u(s).accountConnected ? (t(), W(ne, {
439
454
  key: 1,
440
455
  platform: "wallet",
441
- points: o.value.length ? void 0 : "+10",
456
+ points: r.value.length ? void 0 : "+10",
442
457
  disabled: u(s).isSimulationMode,
443
458
  class: "_w-full"
444
459
  }, {
445
460
  default: P(() => [
446
- b(_(o.value.length > 0 ? "Link another Wallet" : "Link Wallet"), 1)
461
+ h(d(r.value.length > 0 ? "Link another Wallet" : "Link Wallet"), 1)
447
462
  ]),
448
463
  _: 1
449
464
  }, 8, ["points", "disabled"])) : i("", !0)
450
465
  ])
451
466
  ], 2),
452
467
  e("section", {
453
- class: A(["_bg-metallic-linear _shadow-panel _p-4 _space-y-1.5 _rounded-lg", { "_order-last": !((me = y.value) != null && me.length) }])
468
+ class: k(["_bg-metallic-linear _shadow-panel _p-4 _space-y-1.5 _rounded-lg", { "_order-last": !((he = y.value) != null && he.length) }])
454
469
  }, [
455
- y.value.length ? (t(), a("div", It, d[2] || (d[2] = [
470
+ y.value.length ? (t(), a("div", Pt, [
471
+ e("h3", Rt, " solana wallet" + d(y.value.length > 1 ? "s" : ""), 1)
472
+ ])) : i("", !0),
473
+ e("ul", Wt, [
474
+ (t(!0), a(A, null, oe(y.value, (l) => (t(), a("li", {
475
+ key: l.id,
476
+ class: "_flex _items-center _p-2 _pr-3.5 _justify-between _bg-metallic-linear _shadow-panel _rounded-lg"
477
+ }, [
478
+ e("div", Qt, [
479
+ m[2] || (m[2] = e("div", { class: "_size-11 _flex _items-stretch _p-1.5 _rounded-md" }, [
480
+ e("div", { class: "_w-full _flex _items-center _justify-center" }, [
481
+ e("img", {
482
+ src: Oe,
483
+ class: "_size-6 _rounded",
484
+ style: { "background-color": "#000" }
485
+ })
486
+ ])
487
+ ], -1)),
488
+ e("div", Et, [
489
+ e("div", Kt, d(ie(l.id)), 1)
490
+ ])
491
+ ]),
492
+ E.value > 1 ? (t(), a("button", {
493
+ key: 0,
494
+ class: "_bubble-btn _h-10 _text-sm _text-stroke-md _px-[1em]",
495
+ onClick: ($) => J("solana", l.id, $),
496
+ "aria-label": "Remove"
497
+ }, [
498
+ e("span", null, [
499
+ U.value.platform == "solana" && U.value.id == l.id ? (t(), a(A, { key: 0 }, [
500
+ h(" Confirm? ")
501
+ ], 64)) : (t(), a(A, { key: 1 }, [
502
+ h(" ⛌ ")
503
+ ], 64))
504
+ ])
505
+ ], 8, Vt)) : i("", !0)
506
+ ]))), 128)),
507
+ Z.value ? i("", !0) : (t(), W(ne, {
508
+ key: 0,
509
+ platform: "solana",
510
+ points: y.value.length ? void 0 : "+10",
511
+ disabled: u(s).isSimulationMode,
512
+ class: "_w-full"
513
+ }, {
514
+ default: P(() => [
515
+ h(d(y.value.length > 0 ? "Link another Solana" : "Link Solana"), 1)
516
+ ]),
517
+ _: 1
518
+ }, 8, ["points", "disabled"]))
519
+ ])
520
+ ], 2),
521
+ e("section", {
522
+ class: k(["_bg-metallic-linear _shadow-panel _p-4 _space-y-1.5 _rounded-lg", { "_order-last": !((ye = D.value) != null && ye.length) }])
523
+ }, [
524
+ D.value.length ? (t(), a("div", Jt, m[3] || (m[3] = [
456
525
  e("h3", { class: "_text-mlg _opacity-30 _weight-bold" }, "discord", -1)
457
526
  ]))) : i("", !0),
458
- e("ul", Pt, [
459
- (t(!0), a(T, null, ie(y.value, (l) => {
527
+ e("ul", Xt, [
528
+ (t(!0), a(A, null, oe(D.value, (l) => {
460
529
  var $, F;
461
530
  return t(), a("li", {
462
531
  key: l.id,
463
532
  class: "_flex _items-center _p-2 _pr-3.5 _justify-between _bg-metallic-linear _shadow-panel _rounded-lg"
464
533
  }, [
465
- e("div", Rt, [
534
+ e("div", Ot, [
466
535
  e("button", {
467
- class: A(["_size-11 _flex _items-stretch _p-1.5 _group _overflow-hidden _rounded-md", [
536
+ class: k(["_size-11 _flex _items-stretch _p-1.5 _group _overflow-hidden _rounded-md", [
468
537
  {
469
538
  "_shadow-panel": l.avatar,
470
539
  "_shadow-panel-inset _bg-metallic-cone _cursor-default": l.avatar === (($ = u(s).user) == null ? void 0 : $.avatar)
@@ -474,47 +543,47 @@ const it = /* @__PURE__ */ Fe(qe, [["render", rt]]), ut = ["disabled"], ct = { c
474
543
  }, [
475
544
  l.avatar ? (t(), a("div", {
476
545
  key: 0,
477
- onClick: () => J("discord", l.id),
546
+ onClick: () => K("discord", l.id),
478
547
  style: { background: "none" },
479
548
  type: "button",
480
549
  title: "Set as profile avatar"
481
550
  }, [
482
551
  e("img", {
483
552
  src: `${l.avatar}`,
484
- class: A(["_size-full _rounded-full _duration-150", {
553
+ class: k(["_size-full _rounded-full _duration-150", {
485
554
  "group-hover:_scale-[1.8]": l.avatar !== ((F = u(s).user) == null ? void 0 : F.avatar)
486
555
  }])
487
- }, null, 10, Et)
488
- ], 8, Qt)) : (t(), a("div", Kt, d[3] || (d[3] = [
556
+ }, null, 10, qt)
557
+ ], 8, Zt)) : (t(), a("div", ea, m[4] || (m[4] = [
489
558
  e("img", {
490
- src: Me,
559
+ src: Le,
491
560
  class: "_size-6 _rounded",
492
561
  style: { "background-color": "#5865f2" }
493
562
  }, null, -1)
494
563
  ])))
495
- ], 10, Wt),
496
- e("div", Vt, [
497
- e("div", Jt, _(l.username), 1)
564
+ ], 10, Gt),
565
+ e("div", ta, [
566
+ e("div", aa, d(l.username), 1)
498
567
  ])
499
568
  ]),
500
- I.value > 1 ? (t(), a("button", {
569
+ E.value > 1 ? (t(), a("button", {
501
570
  key: 0,
502
571
  class: "_bubble-btn _h-10 _text-sm _text-stroke-md _px-[1em]",
503
- onClick: (Y) => E("discord", l.id, Y),
572
+ onClick: (Y) => J("discord", l.id, Y),
504
573
  styleff: "filter: hue-rotate(130deg) saturate(2)",
505
574
  "aria-label": "Remove"
506
575
  }, [
507
- e("span", Ot, [
508
- M.value.platform == "discord" && M.value.id == l.id ? (t(), a(T, { key: 0 }, [
509
- b(" Confirm? ")
510
- ], 64)) : (t(), a(T, { key: 1 }, [
511
- b(" ⛌ ")
576
+ e("span", la, [
577
+ U.value.platform == "discord" && U.value.id == l.id ? (t(), a(A, { key: 0 }, [
578
+ h(" Confirm? ")
579
+ ], 64)) : (t(), a(A, { key: 1 }, [
580
+ h(" ⛌ ")
512
581
  ], 64))
513
582
  ])
514
- ], 8, Xt)) : i("", !0)
583
+ ], 8, sa)) : i("", !0)
515
584
  ]);
516
585
  }), 128)),
517
- j.value ? i("", !0) : (t(), W(oe, {
586
+ M.value ? i("", !0) : (t(), W(ne, {
518
587
  key: 0,
519
588
  platform: "discord",
520
589
  points: "+10",
@@ -522,28 +591,28 @@ const it = /* @__PURE__ */ Fe(qe, [["render", rt]]), ut = ["disabled"], ct = { c
522
591
  class: "_w-full"
523
592
  }, {
524
593
  default: P(() => [
525
- b(_(y.value.length > 0 ? "Link Another Discord" : "Link Discord"), 1)
594
+ h(d(D.value.length > 0 ? "Link Another Discord" : "Link Discord"), 1)
526
595
  ]),
527
596
  _: 1
528
597
  }, 8, ["disabled"]))
529
598
  ])
530
599
  ], 2),
531
600
  e("section", {
532
- class: A(["_bg-metallic-linear _shadow-panel _p-4 _space-y-1.5 _rounded-lg", { "_order-last": !((ve = w.value) != null && ve.length) }])
601
+ class: k(["_bg-metallic-linear _shadow-panel _p-4 _space-y-1.5 _rounded-lg", { "_order-last": !((be = N.value) != null && be.length) }])
533
602
  }, [
534
- w.value.length ? (t(), a("div", Gt, d[4] || (d[4] = [
603
+ N.value.length ? (t(), a("div", na, m[5] || (m[5] = [
535
604
  e("h3", { class: "_text-mlg _opacity-30 _weight-bold" }, "twitter", -1)
536
605
  ]))) : i("", !0),
537
- e("ul", Zt, [
538
- (t(!0), a(T, null, ie(w.value, (l) => {
606
+ e("ul", oa, [
607
+ (t(!0), a(A, null, oe(N.value, (l) => {
539
608
  var $, F, Y;
540
609
  return t(), a("li", {
541
610
  key: l.id,
542
611
  class: "_flex _items-center _p-2 _pr-3.5 _justify-between _bg-metallic-linear _shadow-panel _rounded-lg"
543
612
  }, [
544
- e("div", qt, [
613
+ e("div", ra, [
545
614
  e("button", {
546
- class: A(["_size-11 _flex _items-stretch _p-1.5 _group _overflow-hidden _rounded-md", [
615
+ class: k(["_size-11 _flex _items-stretch _p-1.5 _group _overflow-hidden _rounded-md", [
547
616
  {
548
617
  "_shadow-panel": l.avatar,
549
618
  "_shadow-panel-inset _bg-metallic-cone _cursor-default": l.avatar === (($ = u(s).user) == null ? void 0 : $.avatar)
@@ -553,48 +622,48 @@ const it = /* @__PURE__ */ Fe(qe, [["render", rt]]), ut = ["disabled"], ct = { c
553
622
  }, [
554
623
  l.avatar ? (t(), a("div", {
555
624
  key: 0,
556
- onClick: () => J("twitter", l.id),
625
+ onClick: () => K("twitter", l.id),
557
626
  style: { background: "none" },
558
627
  type: "button",
559
628
  title: "Set as profile avatar"
560
629
  }, [
561
630
  e("img", {
562
631
  src: `${l.avatar}`,
563
- class: A(["_size-full _rounded-full _duration-150", {
632
+ class: k(["_size-full _rounded-full _duration-150", {
564
633
  "group-hover:_scale-[1.8]": l.avatar !== ((F = u(s).user) == null ? void 0 : F.avatar)
565
634
  }])
566
- }, null, 10, aa)
567
- ], 8, ta)) : (t(), a("div", sa, d[5] || (d[5] = [
635
+ }, null, 10, ca)
636
+ ], 8, ua)) : (t(), a("div", da, m[6] || (m[6] = [
568
637
  e("img", {
569
- src: Le,
638
+ src: je,
570
639
  class: "_size-6 _rounded",
571
640
  style: { "background-color": "#000" }
572
641
  }, null, -1)
573
642
  ])))
574
- ], 10, ea),
575
- e("div", la, [
576
- e("div", na, _(l.username), 1),
577
- (Y = l.metadata) != null && Y.verified ? (t(), a("div", oa, " verified ✓ ")) : i("", !0)
643
+ ], 10, ia),
644
+ e("div", _a, [
645
+ e("div", fa, d(l.username), 1),
646
+ (Y = l.metadata) != null && Y.verified ? (t(), a("div", ma, " verified ✓ ")) : i("", !0)
578
647
  ])
579
648
  ]),
580
- I.value > 1 ? (t(), a("button", {
649
+ E.value > 1 ? (t(), a("button", {
581
650
  key: 0,
582
651
  class: "_bubble-btn _h-10 _text-sm _text-stroke-md _px-[1em]",
583
- onClick: (le) => E("twitter", l.id, le),
652
+ onClick: (V) => J("twitter", l.id, V),
584
653
  styleff: "filter: hue-rotate(130deg) saturate(2)",
585
654
  "aria-label": "Remove"
586
655
  }, [
587
- e("span", ia, [
588
- M.value.platform == "twitter" && M.value.id == l.id ? (t(), a(T, { key: 0 }, [
589
- b(" Confirm? ")
590
- ], 64)) : (t(), a(T, { key: 1 }, [
591
- b(" ⛌ ")
656
+ e("span", pa, [
657
+ U.value.platform == "twitter" && U.value.id == l.id ? (t(), a(A, { key: 0 }, [
658
+ h(" Confirm? ")
659
+ ], 64)) : (t(), a(A, { key: 1 }, [
660
+ h(" ⛌ ")
592
661
  ], 64))
593
662
  ])
594
- ], 8, ra)) : i("", !0)
663
+ ], 8, va)) : i("", !0)
595
664
  ]);
596
665
  }), 128)),
597
- R.value ? i("", !0) : (t(), W(oe, {
666
+ R.value ? i("", !0) : (t(), W(ne, {
598
667
  key: 0,
599
668
  platform: "twitter",
600
669
  points: "+10",
@@ -602,28 +671,28 @@ const it = /* @__PURE__ */ Fe(qe, [["render", rt]]), ut = ["disabled"], ct = { c
602
671
  class: "_w-full"
603
672
  }, {
604
673
  default: P(() => [
605
- b(_(w.value.length > 0 ? "Link Another TwitterX" : "Link TwitterX"), 1)
674
+ h(d(N.value.length > 0 ? "Link Another TwitterX" : "Link TwitterX"), 1)
606
675
  ]),
607
676
  _: 1
608
677
  }, 8, ["disabled"]))
609
678
  ])
610
679
  ], 2),
611
680
  e("section", {
612
- class: A(["_bg-metallic-linear _shadow-panel _p-4 _space-y-1.5 _rounded-lg", { "_order-last": !((pe = m.value) != null && pe.length) }])
681
+ class: k(["_bg-metallic-linear _shadow-panel _p-4 _space-y-1.5 _rounded-lg", { "_order-last": !((ce = v.value) != null && ce.length) }])
613
682
  }, [
614
- m.value.length ? (t(), a("div", ua, d[6] || (d[6] = [
683
+ v.value.length ? (t(), a("div", ga, m[7] || (m[7] = [
615
684
  e("h3", { class: "_text-mlg _opacity-30 _weight-bold" }, "telegram", -1)
616
685
  ]))) : i("", !0),
617
- e("ul", ca, [
618
- (t(!0), a(T, null, ie(m.value, (l) => {
686
+ e("ul", ha, [
687
+ (t(!0), a(A, null, oe(v.value, (l) => {
619
688
  var $, F;
620
689
  return t(), a("li", {
621
690
  key: l.id,
622
691
  class: "_flex _items-center _p-2 _pr-3.5 _justify-between _bg-metallic-linear _shadow-panel _rounded-lg"
623
692
  }, [
624
- e("div", da, [
693
+ e("div", ya, [
625
694
  e("button", {
626
- class: A(["_size-11 _flex _items-stretch _p-1.5 _group _overflow-hidden _rounded-md", [
695
+ class: k(["_size-11 _flex _items-stretch _p-1.5 _group _overflow-hidden _rounded-md", [
627
696
  {
628
697
  "_shadow-panel": l.avatar,
629
698
  "_shadow-panel-inset _bg-metallic-cone _cursor-default": l.avatar === (($ = u(s).user) == null ? void 0 : $.avatar)
@@ -633,55 +702,55 @@ const it = /* @__PURE__ */ Fe(qe, [["render", rt]]), ut = ["disabled"], ct = { c
633
702
  }, [
634
703
  l.avatar ? (t(), a("div", {
635
704
  key: 0,
636
- onClick: () => J("telegram", l.id),
705
+ onClick: () => K("telegram", l.id),
637
706
  style: { background: "none" },
638
707
  type: "button",
639
708
  title: "Set as profile avatar"
640
709
  }, [
641
710
  e("img", {
642
711
  src: `${l.avatar}`,
643
- class: A(["_size-full _rounded-full _duration-150", {
712
+ class: k(["_size-full _rounded-full _duration-150", {
644
713
  "group-hover:_scale-[1.8]": l.avatar !== ((F = u(s).user) == null ? void 0 : F.avatar)
645
714
  }])
646
- }, null, 10, ma)
647
- ], 8, fa)) : (t(), a("div", va, d[7] || (d[7] = [
715
+ }, null, 10, wa)
716
+ ], 8, xa)) : (t(), a("div", ka, m[8] || (m[8] = [
648
717
  e("img", {
649
- src: je,
718
+ src: $e,
650
719
  class: "_size-6 _rounded",
651
720
  style: { "background-color": "#0088cc" }
652
721
  }, null, -1)
653
722
  ])))
654
- ], 10, _a),
655
- e("div", pa, [
656
- e("div", ga, _(l.username), 1)
723
+ ], 10, ba),
724
+ e("div", Aa, [
725
+ e("div", Ca, d(l.username), 1)
657
726
  ])
658
727
  ]),
659
- I.value > 1 ? (t(), a("button", {
728
+ E.value > 1 ? (t(), a("button", {
660
729
  key: 0,
661
730
  class: "_bubble-btn _h-10 _text-sm _text-stroke-md _px-[1em]",
662
- onClick: (Y) => E("telegram", l.id, Y),
731
+ onClick: (Y) => J("telegram", l.id, Y),
663
732
  styleff: "filter: hue-rotate(130deg) saturate(2)",
664
733
  "aria-label": "Remove"
665
734
  }, [
666
- e("span", ya, [
667
- M.value.platform == "telegram" && M.value.id == l.id ? (t(), a(T, { key: 0 }, [
668
- b(" Confirm? ")
669
- ], 64)) : (t(), a(T, { key: 1 }, [
670
- b(" ⛌ ")
735
+ e("span", Ua, [
736
+ U.value.platform == "telegram" && U.value.id == l.id ? (t(), a(A, { key: 0 }, [
737
+ h(" Confirm? ")
738
+ ], 64)) : (t(), a(A, { key: 1 }, [
739
+ h(" ⛌ ")
671
740
  ], 64))
672
741
  ])
673
- ], 8, ha)) : i("", !0)
742
+ ], 8, Sa)) : i("", !0)
674
743
  ]);
675
744
  }), 128)),
676
- Q.value ? i("", !0) : (t(), a(T, { key: 0 }, [
677
- Q.value ? i("", !0) : (t(), W(oe, {
745
+ X.value ? i("", !0) : (t(), a(A, { key: 0 }, [
746
+ X.value ? i("", !0) : (t(), W(ne, {
678
747
  key: 0,
679
748
  platform: "telegram",
680
749
  points: "+10",
681
750
  disabled: u(s).isSimulationMode
682
751
  }, {
683
752
  default: P(() => [
684
- b(_(m.value.length > 0 ? "Link Another Telegram" : "Link Telegram"), 1)
753
+ h(d(v.value.length > 0 ? "Link Another Telegram" : "Link Telegram"), 1)
685
754
  ]),
686
755
  _: 1
687
756
  }, 8, ["disabled"]))
@@ -689,21 +758,21 @@ const it = /* @__PURE__ */ Fe(qe, [["render", rt]]), ut = ["disabled"], ct = { c
689
758
  ])
690
759
  ], 2),
691
760
  e("section", {
692
- class: A(["_bg-metallic-linear _shadow-panel _p-4 _space-y-1.5 _rounded-lg", { "_order-first": u(s).isFarcaster }])
761
+ class: k(["_bg-metallic-linear _shadow-panel _p-4 _space-y-1.5 _rounded-lg", { "_order-first": u(s).isFarcaster }])
693
762
  }, [
694
- z.value.length ? (t(), a("div", ba, d[8] || (d[8] = [
763
+ w.value.length ? (t(), a("div", za, m[9] || (m[9] = [
695
764
  e("h3", { class: "_text-mlg _opacity-30 _weight-bold" }, "farcaster", -1)
696
765
  ]))) : i("", !0),
697
- e("ul", xa, [
698
- (t(!0), a(T, null, ie(z.value, (l) => {
766
+ e("ul", Ta, [
767
+ (t(!0), a(A, null, oe(w.value, (l) => {
699
768
  var $, F;
700
769
  return t(), a("li", {
701
770
  key: l.id
702
771
  }, [
703
- e("div", wa, [
704
- e("div", ka, [
772
+ e("div", Ba, [
773
+ e("div", Da, [
705
774
  e("button", {
706
- class: A(["_size-11 _flex _items-stretch _p-1.5 _group _overflow-hidden _rounded-md", [
775
+ class: k(["_size-11 _flex _items-stretch _p-1.5 _group _overflow-hidden _rounded-md", [
707
776
  {
708
777
  "_shadow-panel": l.avatar,
709
778
  "_shadow-panel-inset _bg-metallic-cone _cursor-default": l.avatar === (($ = u(s).user) == null ? void 0 : $.avatar)
@@ -713,48 +782,48 @@ const it = /* @__PURE__ */ Fe(qe, [["render", rt]]), ut = ["disabled"], ct = { c
713
782
  }, [
714
783
  l.avatar ? (t(), a("div", {
715
784
  key: 0,
716
- onClick: () => J("farcaster", l.id),
785
+ onClick: () => K("farcaster", l.id),
717
786
  style: { background: "none" },
718
787
  type: "button",
719
788
  title: "Set as profile avatar"
720
789
  }, [
721
790
  e("img", {
722
791
  src: `${l.avatar}`,
723
- class: A(["_size-full _rounded-full _duration-150", {
792
+ class: k(["_size-full _rounded-full _duration-150", {
724
793
  "group-hover:_scale-[1.8]": l.avatar !== ((F = u(s).user) == null ? void 0 : F.avatar)
725
794
  }])
726
- }, null, 10, Sa)
727
- ], 8, Ca)) : (t(), a("div", Ua, d[9] || (d[9] = [
795
+ }, null, 10, La)
796
+ ], 8, Ma)) : (t(), a("div", ja, m[10] || (m[10] = [
728
797
  e("img", {
729
- src: $e,
798
+ src: Fe,
730
799
  class: "_size-6 _rounded",
731
800
  style: { "background-color": "#000" }
732
801
  }, null, -1)
733
802
  ])))
734
- ], 10, Aa),
735
- e("div", za, [
736
- e("div", Ta, _(l.username), 1)
803
+ ], 10, Na),
804
+ e("div", $a, [
805
+ e("div", Fa, d(l.username), 1)
737
806
  ])
738
807
  ]),
739
- I.value > 1 ? (t(), a("button", {
808
+ E.value > 1 ? (t(), a("button", {
740
809
  key: 0,
741
810
  class: "_bubble-btn _h-10 _text-sm _text-stroke-md _px-[1em]",
742
- onClick: (Y) => E("farcaster", l.id, Y),
811
+ onClick: (Y) => J("farcaster", l.id, Y),
743
812
  styleff: "filter: hue-rotate(130deg) saturate(2)",
744
813
  "aria-label": "Remove"
745
814
  }, [
746
- e("span", Da, [
747
- M.value.platform == "farcaster" && M.value.id == l.id ? (t(), a(T, { key: 0 }, [
748
- b(" Confirm? ")
749
- ], 64)) : (t(), a(T, { key: 1 }, [
750
- b(" ⛌ ")
815
+ e("span", Ya, [
816
+ U.value.platform == "farcaster" && U.value.id == l.id ? (t(), a(A, { key: 0 }, [
817
+ h(" Confirm? ")
818
+ ], 64)) : (t(), a(A, { key: 1 }, [
819
+ h(" ⛌ ")
751
820
  ], 64))
752
821
  ])
753
- ], 8, Ba)) : i("", !0)
822
+ ], 8, Ha)) : i("", !0)
754
823
  ])
755
824
  ]);
756
825
  }), 128)),
757
- N.value ? i("", !0) : (t(), W(oe, {
826
+ I.value ? i("", !0) : (t(), W(ne, {
758
827
  key: 0,
759
828
  platform: "farcaster",
760
829
  points: "+10",
@@ -762,11 +831,11 @@ const it = /* @__PURE__ */ Fe(qe, [["render", rt]]), ut = ["disabled"], ct = { c
762
831
  class: "_w-full"
763
832
  }, {
764
833
  default: P(() => [
765
- b(_(z.value.length > 0 ? "Link Another Farcaster" : "Link Farcaster"), 1)
834
+ h(d(w.value.length > 0 ? "Link Another Farcaster" : "Link Farcaster"), 1)
766
835
  ]),
767
836
  _: 1
768
837
  }, 8, ["disabled"])),
769
- S.value && !S.value.client.added && D.value ? (t(), W(oe, {
838
+ S.value && !S.value.client.added && L.value ? (t(), W(ne, {
770
839
  key: 1,
771
840
  platform: "farcaster",
772
841
  points: "+10",
@@ -774,8 +843,8 @@ const it = /* @__PURE__ */ Fe(qe, [["render", rt]]), ut = ["disabled"], ct = { c
774
843
  class: "_w-full",
775
844
  onClick: B
776
845
  }, {
777
- default: P(() => d[10] || (d[10] = [
778
- b(" Add this Mini App ")
846
+ default: P(() => m[11] || (m[11] = [
847
+ h(" Add this Mini App ")
779
848
  ])),
780
849
  _: 1
781
850
  }, 8, ["disabled"])) : i("", !0)
@@ -784,9 +853,9 @@ const it = /* @__PURE__ */ Fe(qe, [["render", rt]]), ut = ["disabled"], ct = { c
784
853
  e("footer", { class: "_order-last _bg-metallic-cone _p-4 _rounded-lg _shadow-panel" }, [
785
854
  e("div", { class: "_w-full" }, [
786
855
  e("button", {
787
- onClick: se,
856
+ onClick: z,
788
857
  class: "_bubble-btn-full _h-16 _text-lg _bold"
789
- }, d[11] || (d[11] = [
858
+ }, m[12] || (m[12] = [
790
859
  e("span", null, "logout 💤", -1)
791
860
  ]))
792
861
  ])
@@ -794,288 +863,296 @@ const it = /* @__PURE__ */ Fe(qe, [["render", rt]]), ut = ["disabled"], ct = { c
794
863
  ], 2);
795
864
  };
796
865
  }
797
- }, Ma = { class: "_bg-metallic-linear _shadow-panel _p-4 _space-y-2 _rounded-lg" }, La = { class: "_flex _items-center _justify-between _-mt-1.5" }, ja = {
866
+ }, Pa = { class: "_bg-metallic-linear _shadow-panel _p-4 _space-y-2 _rounded-lg" }, Ra = { class: "_flex _items-center _justify-between _-mt-1.5" }, Wa = {
798
867
  key: 0,
799
868
  class: "_text-sm _text-red-400"
800
- }, $a = {
869
+ }, Qa = {
801
870
  key: 1,
802
- class: "_space-y-4"
803
- }, Fa = { class: "_flex _flex-col _gap-0.5" }, Ha = {
871
+ class: "_space-y-2"
872
+ }, Ea = { class: "_flex _flex-col _gap-0.5" }, Ka = {
804
873
  key: 0,
805
874
  class: "_bg-metallic-linear _shadow-panel _p-3 _rounded-lg _flex _flex-col _gap-2.5"
806
- }, Ya = { class: "_w-full _flex _flex-col _gap-1.5" }, Ia = { class: "_text-xs _text-center _opacity-40" }, Pa = { class: "_font-mono" }, Ra = {
875
+ }, Va = { class: "_w-full _flex _flex-col _gap-2.5" }, Ja = { class: "_w-full _truncate _min-w-0" }, Xa = {
807
876
  key: 0,
808
877
  class: "_flex _flex-wrap _gap-[inherit] _text-center"
809
- }, Wa = { class: "_flex-1 _bg-metallic-linear _shadow-panel _rounded-lg _p-3" }, Qa = { class: "_text-3xl _font-bold _text-primary _leading-tight" }, Ea = { class: "_flex-1 _bg-metallic-linear _shadow-panel _rounded-lg _p-3" }, Ka = { class: "_text-md" }, Va = {
878
+ }, Oa = { class: "_flex-1 _bg-metallic-linear _shadow-panel _rounded-lg _p-3" }, Ga = { class: "_text-3xl _font-bold _text-primary _leading-tight" }, Za = { class: "_flex-1 _bg-metallic-linear _shadow-panel _rounded-lg _p-3" }, qa = { class: "_text-md" }, es = {
810
879
  key: 0,
811
880
  class: "_bg-metallic-linear _shadow-panel _p-3 _rounded-lg _space-y-2"
812
- }, Ja = { class: "_flex _items-center _gap-2" }, Xa = ["disabled"], Oa = ["disabled"], Ga = {
881
+ }, ts = { class: "_flex _items-center _gap-2" }, as = ["disabled"], ss = ["disabled"], ls = {
813
882
  key: 0,
814
883
  class: "_text-xs _text-red-500"
815
- }, Za = {
884
+ }, ns = {
816
885
  key: 1,
817
886
  class: "_text-xs _text-emerald-300"
818
- }, qa = {
887
+ }, os = {
819
888
  key: 1,
820
- class: "_text-base"
821
- }, es = { class: "_font-semibold" }, ts = /* @__PURE__ */ We({
889
+ class: "_text-xs _bg-metallic-linear _shadow-panel _px-3 _py-1 _rounded-lg _text-zinc-500"
890
+ }, rs = { class: "" }, is = { class: "_weight-black _text-em-xl _text-black" }, us = /* @__PURE__ */ We({
822
891
  __name: "ReferralSection",
823
892
  setup(x) {
824
- const s = ue("TrifleHub/store"), { backendUrl: C } = Ce(s), r = h(!0), S = h(null), D = h({
893
+ const s = _e("TrifleHub/store"), { backendUrl: C } = Ue(s), o = b(!0), S = b(null), L = b({
825
894
  invited: 0,
826
895
  qualified: 0,
827
896
  points: 0
828
- }), B = h(""), o = h(null), y = v(() => !!o.value), z = h(""), w = h(!1), m = h(""), j = h(!1), N = h(!1), R = v(() => {
829
- var p;
830
- return ((p = s == null ? void 0 : s.user) == null ? void 0 : p.username) || "";
831
- }), Q = v(() => o.value ? o.value.username || o.value.displayName : "someone"), I = v(() => {
832
- const p = B.value || R.value;
833
- return p ? `${window.location.origin}#ref=${p}` : "";
897
+ }), B = b(""), r = b(null), y = f(() => !!r.value), D = b(""), w = b(!1), N = b(""), v = b(!1), M = b(!1), I = b(!1), R = f(() => {
898
+ var z;
899
+ return ((z = s == null ? void 0 : s.user) == null ? void 0 : z.username) || "";
900
+ }), X = f(() => r.value ? r.value.username || r.value.displayName : "someone"), Z = f(() => {
901
+ const z = B.value || R.value;
902
+ return z ? `${window.location.origin}?ref=${z}` : "";
834
903
  });
835
- v(() => I.value.replace("https://", ""));
836
- const M = () => {
837
- const p = {
904
+ f(() => Z.value.replace("https://", ""));
905
+ const E = () => {
906
+ const z = {
838
907
  "Content-Type": "application/json"
839
908
  };
840
- return s != null && s.authToken && (p.Authorization = `Bearer ${s.authToken}`), p;
841
- }, E = async () => {
842
- r.value = !0, S.value = null;
909
+ return s != null && s.authToken && (z.Authorization = `Bearer ${s.authToken}`), z;
910
+ }, U = async () => {
911
+ o.value = !0, S.value = null;
843
912
  try {
844
913
  if (!C.value || !(s != null && s.isAuthenticated)) {
845
- r.value = !1;
914
+ o.value = !1;
846
915
  return;
847
916
  }
848
- const p = await fetch(`${C.value}/profile/me`, {
917
+ const z = await fetch(`${C.value}/profile/me`, {
849
918
  headers: {
850
919
  Authorization: `Bearer ${s.authToken}`
851
920
  }
852
921
  });
853
- let f = null;
922
+ let _ = null;
854
923
  try {
855
- f = await p.json();
924
+ _ = await z.json();
856
925
  } catch {
857
926
  }
858
- if (!p.ok) {
859
- const L = f && f.error || "";
860
- if (p.status === 404 || /no route matches/i.test(L)) {
861
- r.value = !1;
927
+ if (!z.ok) {
928
+ const j = _ && _.error || "";
929
+ if (z.status === 404 || /no route matches/i.test(j)) {
930
+ o.value = !1;
862
931
  return;
863
932
  }
864
- S.value = L || `failed to load referrals (status ${p.status})`;
933
+ S.value = j || `failed to load referrals (status ${z.status})`;
865
934
  return;
866
935
  }
867
- D.value = f.referralStats || { invited: 0, qualified: 0, points: 0 }, B.value = f.referralCode || "", o.value = f.referrer || null;
868
- } catch (p) {
869
- console.error("Referral profile fetch error:", p), S.value = p.message || "error loading referrals";
936
+ L.value = _.referralStats || { invited: 0, qualified: 0, points: 0 }, B.value = _.referralCode || "", r.value = _.referrer || null;
937
+ } catch (z) {
938
+ console.error("Referral profile fetch error:", z), S.value = z.message || "error loading referrals";
870
939
  } finally {
871
- r.value = !1;
940
+ o.value = !1;
872
941
  }
873
- }, V = () => {
874
- I.value && (navigator.clipboard.writeText(I.value), N.value = !0, setTimeout(() => {
875
- N.value = !1;
942
+ }, J = () => {
943
+ Z.value && (navigator.clipboard.writeText(Z.value), M.value = !0, setTimeout(() => {
944
+ M.value = !1;
876
945
  }, 2e3));
877
- }, ae = (p) => {
878
- const f = p.trim();
946
+ }, re = () => {
947
+ !B.value || !R.value || (navigator.clipboard.writeText(B.value || R.value), I.value = !0, setTimeout(() => {
948
+ I.value = !1;
949
+ }, 2e3));
950
+ }, H = (z) => {
951
+ const _ = z.trim();
879
952
  try {
880
- const L = new URL(f);
881
- if (L.hash) {
882
- const d = new URLSearchParams(L.hash.substring(1)).get("ref");
883
- if (d) return d;
953
+ const j = new URL(_);
954
+ if (j.hash) {
955
+ const g = new URLSearchParams(j.hash.substring(1)).get("ref");
956
+ if (g) return g;
884
957
  }
885
- const J = L.searchParams.get("ref");
886
- if (J) return J;
958
+ const O = j.searchParams.get("ref");
959
+ if (O) return O;
887
960
  } catch {
888
961
  }
889
- return f;
890
- }, se = async () => {
891
- const p = ae(z.value);
892
- if (!(!p || w.value)) {
893
- w.value = !0, m.value = "", j.value = !1;
962
+ return _;
963
+ }, ie = async () => {
964
+ const z = H(D.value);
965
+ if (!(!z || w.value)) {
966
+ w.value = !0, N.value = "", v.value = !1;
894
967
  try {
895
- const f = await fetch(`${C.value}/profile/referral`, {
968
+ const _ = await fetch(`${C.value}/profile/referral`, {
896
969
  method: "POST",
897
- headers: M(),
898
- body: JSON.stringify({ referralCode: p })
899
- }), L = await f.json();
900
- if (!f.ok) {
901
- L.error === "Already referred" ? m.value = "You already have a referrer" : L.error === "Invalid referral code" ? m.value = "Invalid referral code" : L.error === "Cannot refer yourself" ? m.value = "You can't use your own code" : m.value = L.error || "Something went wrong";
970
+ headers: E(),
971
+ body: JSON.stringify({ referralCode: z })
972
+ }), j = await _.json();
973
+ if (!_.ok) {
974
+ j.error === "Already referred" ? N.value = "You already have a referrer" : j.error === "Invalid referral code" ? N.value = "Invalid referral code" : j.error === "Cannot refer yourself" ? N.value = "You can't use your own code" : N.value = j.error || "Something went wrong";
902
975
  return;
903
976
  }
904
- j.value = !0, z.value = "", await E();
905
- } catch (f) {
906
- console.error("Referral submit error:", f), m.value = f.message || "Something went wrong";
977
+ v.value = !0, D.value = "", await U();
978
+ } catch (_) {
979
+ console.error("Referral submit error:", _), N.value = _.message || "Something went wrong";
907
980
  } finally {
908
981
  w.value = !1;
909
982
  }
910
983
  }
911
984
  };
912
- return we(() => {
913
- E();
914
- }), (p, f) => (t(), a("section", {
915
- class: A(["_w-full _max-w-2xl", p.$attrs.class])
985
+ return Ae(() => {
986
+ U();
987
+ }), (z, _) => (t(), a("section", {
988
+ class: k(["_w-full _max-w-2xl", z.$attrs.class])
916
989
  }, [
917
- e("section", Ma, [
918
- e("div", La, [
990
+ e("section", Pa, [
991
+ e("div", Ra, [
919
992
  e("h3", {
920
- class: A(["_text-mlg _weight-bold", { "_animate-pulse-deep": r.value }])
921
- }, f[1] || (f[1] = [
993
+ class: k(["_text-mlg _weight-bold", { "_animate-pulse-deep": o.value }])
994
+ }, _[1] || (_[1] = [
922
995
  e("span", { class: "_opacity-30" }, "invites", -1)
923
996
  ]), 2)
924
997
  ]),
925
- S.value ? (t(), a("div", ja, _(S.value), 1)) : (t(), a("div", $a, [
926
- e("section", Fa, [
927
- B.value ? (t(), a("div", Ha, [
928
- f[5] || (f[5] = e("div", { class: "_text-base" }, [
929
- b(" Invite a friend and "),
998
+ S.value ? (t(), a("div", Wa, d(S.value), 1)) : (t(), a("div", Qa, [
999
+ e("section", Ea, [
1000
+ B.value ? (t(), a("div", Ka, [
1001
+ _[4] || (_[4] = e("div", { class: "_text-base" }, [
1002
+ h(" Invite a friend and "),
930
1003
  e("u", null, "you both"),
931
- b(" get "),
1004
+ h(" get "),
932
1005
  e("span", { class: "_font-semiboldff _whitespace-nowrap" }, "10🪩"),
933
- b(" for every 100🪩 they earn ")
1006
+ h(" for every 100🪩 they earn ")
934
1007
  ], -1)),
935
- e("div", Ya, [
1008
+ e("div", Va, [
936
1009
  e("button", {
937
- class: "_flex-1 _bubble-btn _py-[1em] _text-base",
1010
+ class: "_flex-1 _bubble-btn _py-4 _weight-black",
938
1011
  style: { filter: "hue-rotate(20deg) saturate(3)" },
939
- onClick: V
940
- }, _(N.value ? "Copied!" : "Copy Invite Link"), 1),
941
- e("div", Ia, [
942
- f[2] || (f[2] = b(" code: ")),
943
- e("span", Pa, _(B.value || R.value), 1)
1012
+ onClick: J
1013
+ }, d(M.value ? "Copied!" : "Copy Invite Link"), 1),
1014
+ e("button", {
1015
+ class: "_py-0.5 _border-4 _border-dashed _border-zinc-400 _rounded-lg _px-2 _leading-relaxed _text-center _text-zinc-500 _text-em-lg _text-stroke-3xl",
1016
+ onClick: re
1017
+ }, [
1018
+ e("div", Ja, d(I.value ? "Copied!" : B.value || R.value), 1)
944
1019
  ])
945
1020
  ]),
946
- D.value.invited > 0 ? (t(), a("div", Ra, [
947
- e("div", Wa, [
948
- e("div", Qa, _(D.value.invited), 1),
949
- f[3] || (f[3] = e("div", { class: "_text-md" }, "invited", -1))
1021
+ L.value.invited > 0 ? (t(), a("div", Xa, [
1022
+ e("div", Oa, [
1023
+ e("div", Ga, d(L.value.invited), 1),
1024
+ _[2] || (_[2] = e("div", { class: "_text-md" }, "invited", -1))
950
1025
  ]),
951
- e("div", Ea, [
1026
+ e("div", Za, [
952
1027
  e("div", {
953
- class: A(["_text-3xl _font-bold _leading-tight", { "_text-primary": !D.value.points }])
1028
+ class: k(["_text-3xl _font-bold _leading-tight", { "_text-primary": !L.value.points }])
954
1029
  }, [
955
- b(_(D.value.points) + " ", 1),
956
- D.value.points > 0 ? (t(), a(T, { key: 0 }, [
957
- b("🪩")
1030
+ h(d(L.value.points) + " ", 1),
1031
+ L.value.points > 0 ? (t(), a(A, { key: 0 }, [
1032
+ h("🪩")
958
1033
  ], 64)) : i("", !0)
959
1034
  ], 2),
960
- e("div", Ka, [
961
- D.value.points ? i("", !0) : (t(), a(T, { key: 0 }, [
962
- b("🪩 ")
1035
+ e("div", qa, [
1036
+ L.value.points ? i("", !0) : (t(), a(A, { key: 0 }, [
1037
+ h("🪩 ")
963
1038
  ], 64)),
964
- f[4] || (f[4] = b("earned"))
1039
+ _[3] || (_[3] = h("earned"))
965
1040
  ])
966
1041
  ])
967
1042
  ])) : i("", !0),
968
1043
  e("div", {
969
- class: A(["_text-gray-500 _text-xs _-mb-0.5", { "_text-center": D.value.invited > 0, "_text-right": D.value.invited === 0 }])
1044
+ class: k(["_text-zinc-500 _text-xs _-my-0.5", { "_text-center": L.value.invited > 0, "_text-right": L.value.invited === 0 }])
970
1045
  }, " Max 100🪩 per friend ", 2)
971
1046
  ])) : i("", !0)
972
1047
  ]),
973
- y.value ? (t(), a("div", qa, [
974
- e("div", null, [
975
- f[7] || (f[7] = b(" invited by ")),
976
- e("span", es, _(Q.value), 1)
1048
+ y.value ? (t(), a("div", os, [
1049
+ e("div", rs, [
1050
+ _[6] || (_[6] = h(" ♡ You were invited by ")),
1051
+ e("span", is, d(X.value), 1),
1052
+ _[7] || (_[7] = e("br", null, null, -1)),
1053
+ _[8] || (_[8] = h(" You BOTH earn 10🪩 every time YOU earn 100🪩 (max 100) "))
977
1054
  ]),
978
- f[8] || (f[8] = e("div", { class: "_text-xs _opacity-30 _mt-0.5" }, " you'll both earn 10🪩 when you reach 100🪩! ", -1))
979
- ])) : (t(), a("div", Va, [
980
- f[6] || (f[6] = e("div", { class: "_text-base" }, "Have an invite?", -1)),
981
- e("div", Ja, [
982
- _e(e("input", {
983
- "onUpdate:modelValue": f[0] || (f[0] = (L) => z.value = L),
1055
+ _[9] || (_[9] = e("div", { class: "_text-em-2xsff _mt-0.5" }, null, -1))
1056
+ ])) : (t(), a("div", es, [
1057
+ _[5] || (_[5] = e("div", { class: "_text-base" }, "Have an invite?", -1)),
1058
+ e("div", ts, [
1059
+ ve(e("input", {
1060
+ "onUpdate:modelValue": _[0] || (_[0] = (j) => D.value = j),
984
1061
  type: "text",
985
1062
  placeholder: "enter code or invite link",
986
1063
  class: "_flex-1 _bg-metallic-linear _shadow-panel-inset _rounded-lg _px-3 _h-10 _text-sm _min-w-0",
987
1064
  disabled: w.value,
988
- onKeyup: ke(se, ["enter"])
989
- }, null, 40, Xa), [
990
- [Ae, z.value]
1065
+ onKeyup: Ce(ie, ["enter"])
1066
+ }, null, 40, as), [
1067
+ [Se, D.value]
991
1068
  ]),
992
1069
  e("button", {
993
1070
  class: "_bubble-btn _h-12 _text-sm _text-stroke-md _px-[1.5em] _font-bold",
994
- disabled: !z.value.trim() || w.value,
995
- style: fe({
996
- filter: z.value.trim().length > 0 && !w.value ? "hue-rotate(20deg) saturate(3)" : "none"
1071
+ disabled: !D.value.trim() || w.value,
1072
+ style: pe({
1073
+ filter: D.value.trim().length > 0 && !w.value ? "hue-rotate(20deg) saturate(3)" : "none"
997
1074
  }),
998
- onClick: se
1075
+ onClick: ie
999
1076
  }, [
1000
1077
  e("span", {
1001
- class: A({ "_opacity-30": !z.value.trim() || w.value })
1002
- }, _(w.value ? "Sending..." : "Apply"), 3)
1003
- ], 12, Oa)
1078
+ class: k({ "_opacity-30": !D.value.trim() || w.value })
1079
+ }, d(w.value ? "Sending..." : "Apply"), 3)
1080
+ ], 12, ss)
1004
1081
  ]),
1005
- m.value ? (t(), a("div", Ga, _(m.value), 1)) : i("", !0),
1006
- j.value ? (t(), a("div", Za, "invite code applied!")) : i("", !0)
1082
+ N.value ? (t(), a("div", ls, d(N.value), 1)) : i("", !0),
1083
+ v.value ? (t(), a("div", ns, "invite code applied!")) : i("", !0)
1007
1084
  ]))
1008
1085
  ]))
1009
1086
  ])
1010
1087
  ], 2));
1011
1088
  }
1012
- }), as = { class: "_flex _w-full _gap-2.5 _items-stretch" }, ss = { class: "_size-9 _flex-shrink-0" }, ls = ["src"], ns = { class: "_flex-1 _flex _flex-col _gap-[0.25em] _justify-center _min-h-8 _text-left _leading-normal _min-w-0" }, os = { class: "_min-w-0 _leading-[1.1]" }, rs = {
1089
+ }), cs = { class: "_flex _w-full _gap-2.5 _items-stretch" }, ds = { class: "_size-9 _flex-shrink-0" }, _s = ["src"], fs = { class: "_flex-1 _flex _flex-col _gap-[0.25em] _justify-center _min-h-8 _text-left _leading-normal _min-w-0" }, ms = { class: "_min-w-0 _leading-[1.1]" }, vs = {
1013
1090
  key: 0,
1014
1091
  class: "_weight-semiboldff"
1015
- }, is = {
1092
+ }, ps = {
1016
1093
  key: 0,
1017
1094
  class: "_text-em-2xs _opacity-25 _leading-tight _flex _gap-[0.35em] _truncate"
1018
- }, us = { class: "_flex _items-center _h-9 _text-em-sm _flex-shrink-0 sm:_text-mlg" }, cs = { class: "_rounded-full _bg-metallic-linear _shadow-panel _pl-[0.5em] _pr-[0.25em] _flex _gap-[0.15em]" }, ds = {
1095
+ }, gs = { class: "_flex _items-center _h-9 _text-em-sm _flex-shrink-0 sm:_text-mlg" }, hs = { class: "_rounded-full _bg-metallic-linear _shadow-panel _pl-[0.5em] _pr-[0.25em] _flex _gap-[0.15em]" }, ys = {
1019
1096
  __name: "PointCard",
1020
1097
  props: { point: Object },
1021
1098
  setup(x) {
1022
- const s = x, C = v(
1023
- () => Oe.find((o) => o.name === s.point.name || o.id === s.point.name)
1024
- ), r = (o) => {
1025
- if (!o) return "";
1026
- const y = /* @__PURE__ */ new Date(), z = new Date(o), w = y - z, m = Math.floor(w / (1e3 * 60)), j = Math.floor(w / (1e3 * 60 * 60)), N = Math.floor(w / (1e3 * 60 * 60 * 24)), R = Math.floor(N / 7), Q = Math.floor(N / 30), I = Math.floor(N / 365);
1027
- return m < 60 ? `${m}m` : j < 24 ? `${j}h` : N < 7 ? `${N}d` : R < 4 ? `${R}wk` : Q < 12 ? `${Q}mo` : `${I}y`;
1028
- }, S = (o) => (o = Number(o), o % 1 === 0 ? o : o.toFixed(2)), D = (o) => {
1029
- if (!o) return "";
1030
- const y = new Date(o), z = y.toLocaleString("en-US", { month: "short" }).toUpperCase(), w = y.toLocaleString("en-US", { day: "2-digit" });
1031
- return `${z} ${w}`;
1032
- }, B = v(() => {
1099
+ const s = x, C = f(
1100
+ () => Ge.find((r) => r.name === s.point.name || r.id === s.point.name)
1101
+ ), o = (r) => {
1102
+ if (!r) return "";
1103
+ const y = /* @__PURE__ */ new Date(), D = new Date(r), w = y - D, N = Math.floor(w / (1e3 * 60)), v = Math.floor(w / (1e3 * 60 * 60)), M = Math.floor(w / (1e3 * 60 * 60 * 24)), I = Math.floor(M / 7), R = Math.floor(M / 30), X = Math.floor(M / 365);
1104
+ return N < 60 ? `${N}m` : v < 24 ? `${v}h` : M < 7 ? `${M}d` : I < 4 ? `${I}wk` : R < 12 ? `${R}mo` : `${X}y`;
1105
+ }, S = (r) => (r = Number(r), r % 1 === 0 ? r : r.toFixed(2)), L = (r) => {
1106
+ if (!r) return "";
1107
+ const y = new Date(r), D = y.toLocaleString("en-US", { month: "short" }).toUpperCase(), w = y.toLocaleString("en-US", { day: "2-digit" });
1108
+ return `${D} ${w}`;
1109
+ }, B = f(() => {
1033
1110
  var y;
1034
- let o;
1111
+ let r;
1035
1112
  try {
1036
- o = new URL((y = C.value) == null ? void 0 : y.link), ["farcaster", "discord"].includes(o.host.split(".")[0]) && (o = { host: "trifle", origin: o.href });
1113
+ r = new URL((y = C.value) == null ? void 0 : y.link), ["farcaster", "discord"].includes(r.host.split(".")[0]) && (r = { host: "trifle", origin: r.href });
1037
1114
  } catch {
1038
1115
  }
1039
- return o;
1116
+ return r;
1040
1117
  });
1041
- return (o, y) => (t(), W(Qe(B.value ? "a" : "div"), Ee(B.value ? { href: B.value.origin, target: "_blank" } : {}, {
1118
+ return (r, y) => (t(), W(Qe(B.value ? "a" : "div"), Ee(B.value ? { href: B.value.origin, target: "_blank" } : {}, {
1042
1119
  class: ["_bg-metallic-linear _shadow-panel _w-full _p-2 _px-2.5 _pr-3 _rounded-lg _block _flex _items-center _min-h-14", { "mouse:hover:_scale-[1.01] _origin-center _duration-150 _group": B.value }]
1043
1120
  }), {
1044
1121
  default: P(() => {
1045
- var z, w;
1122
+ var D, w;
1046
1123
  return [
1047
- e("header", as, [
1048
- e("div", ss, [
1124
+ e("header", cs, [
1125
+ e("div", ds, [
1049
1126
  C.value && C.value.icon ? (t(), a("img", {
1050
1127
  key: 0,
1051
1128
  src: C.value.icon,
1052
1129
  class: "_w-full _h-full _rounded-lg _block"
1053
- }, null, 8, ls)) : i("", !0)
1130
+ }, null, 8, _s)) : i("", !0)
1054
1131
  ]),
1055
- e("div", ns, [
1056
- e("div", os, [
1057
- x.point.name === "anybody-daily" ? (t(), a(T, { key: 0 }, [
1058
- b("Solved " + _(D(x.point.createdAt)), 1)
1059
- ], 64)) : x.point.name === "gm" ? (t(), a(T, { key: 1 }, [
1060
- b('"' + _(x.point.extra) + '"', 1)
1061
- ], 64)) : x.point.name === "gm-react" ? (t(), a(T, { key: 2 }, [
1062
- b(_(!x.point.giver || x.point.giver === "???" ? "someone" : x.point.giver) + " ♥︎ ", 1),
1063
- x.point.gmMessage ? (t(), a("span", rs, '"' + _(x.point.gmMessage) + '"', 1)) : (t(), a(T, { key: 1 }, [
1064
- b("your gm")
1132
+ e("div", fs, [
1133
+ e("div", ms, [
1134
+ x.point.name === "anybody-daily" ? (t(), a(A, { key: 0 }, [
1135
+ h("Solved " + d(L(x.point.createdAt)), 1)
1136
+ ], 64)) : x.point.name === "gm" ? (t(), a(A, { key: 1 }, [
1137
+ h('"' + d(x.point.extra) + '"', 1)
1138
+ ], 64)) : x.point.name === "gm-react" ? (t(), a(A, { key: 2 }, [
1139
+ h(d(!x.point.giver || x.point.giver === "???" ? "someone" : x.point.giver) + " ♥︎ ", 1),
1140
+ x.point.gmMessage ? (t(), a("span", vs, '"' + d(x.point.gmMessage) + '"', 1)) : (t(), a(A, { key: 1 }, [
1141
+ h("your gm")
1065
1142
  ], 64))
1066
- ], 64)) : (t(), a(T, { key: 3 }, [
1067
- b(_(((z = C.value) == null ? void 0 : z.activityText) || ((w = C.value) == null ? void 0 : w.name) || x.point.name), 1)
1143
+ ], 64)) : (t(), a(A, { key: 3 }, [
1144
+ h(d(((D = C.value) == null ? void 0 : D.activityText) || ((w = C.value) == null ? void 0 : w.name) || x.point.name), 1)
1068
1145
  ], 64))
1069
1146
  ]),
1070
- B.value ? (t(), a("div", is, [
1071
- e("span", null, _(r(x.point.createdAt)), 1),
1147
+ B.value ? (t(), a("div", ps, [
1148
+ e("span", null, d(o(x.point.createdAt)), 1),
1072
1149
  y[0] || (y[0] = e("span", null, "·", -1)),
1073
- e("u", null, _(B.value.host), 1)
1150
+ e("u", null, d(B.value.host), 1)
1074
1151
  ])) : i("", !0)
1075
1152
  ]),
1076
- e("div", us, [
1077
- e("div", cs, [
1078
- e("span", null, _(S(x.point.value)), 1),
1153
+ e("div", gs, [
1154
+ e("div", hs, [
1155
+ e("span", null, d(S(x.point.value)), 1),
1079
1156
  y[1] || (y[1] = e("div", null, "🪩", -1))
1080
1157
  ])
1081
1158
  ])
@@ -1085,268 +1162,268 @@ const it = /* @__PURE__ */ Fe(qe, [["render", rt]]), ut = ["disabled"], ct = { c
1085
1162
  _: 1
1086
1163
  }, 16, ["class"]));
1087
1164
  }
1088
- }, _s = {
1165
+ }, bs = {
1089
1166
  key: 0,
1090
1167
  class: "_flex _flex-col _gap-2"
1091
- }, fs = {
1168
+ }, xs = {
1092
1169
  xmlns: "http://www.w3.org/2000/svg",
1093
1170
  class: "_size-5 _opacity-60",
1094
1171
  fill: "none",
1095
1172
  viewBox: "0 0 24 24",
1096
1173
  stroke: "currentColor",
1097
1174
  style: { "pointer-events": "none" }
1098
- }, ms = {
1175
+ }, ws = {
1099
1176
  key: 1,
1100
1177
  class: "_bg-metallic-linear _shadow-panel _rounded-lg _p-3 _space-y-2 _min-w-[200px]"
1101
- }, vs = {
1178
+ }, ks = {
1102
1179
  key: 0,
1103
1180
  class: "_text-xs _font-semibold _text-center _bg-yellow-500/20 _border _border-yellow-500/40 _rounded _py-1"
1104
- }, ps = {
1181
+ }, As = {
1105
1182
  key: 1,
1106
1183
  class: "_space-y-2"
1107
- }, gs = ["disabled"], hs = {
1184
+ }, Cs = ["disabled"], Ss = {
1108
1185
  key: 0,
1109
1186
  class: "_h-12 _flex _items-center _gap-1 _w-full _justify-center _border _border-transparent"
1110
- }, ys = { class: "_text-stroke-2xl _min-w-0 _px-0.5" }, bs = {
1187
+ }, Us = { class: "_text-stroke-2xl _min-w-0 _px-0.5" }, zs = {
1111
1188
  key: 1,
1112
1189
  class: "_h-12 _flex _items-center _gap-1 _w-full _justify-center _border _border-transparent"
1113
- }, xs = { class: "_flex _items-center _gap-1 _w-full _justify-center _pl-[1em]" }, ws = { class: "_text-stroke-2xl _min-w-0 _truncate _px-0.5" }, ks = { class: "_relative _h-12 _flex _items-stretch _gap-0.5 _px-1 _rounded-lg _shadow-panel-inset _text-center _bg-metallic-linear" }, As = { class: "_flex _justify-center _gap-2 _h-10 _items-center" }, Cs = ["href"], Ss = ["href"], Us = ["href"], zs = ["href"], Ts = { class: "_whitespace-nowrap _overflow-x-scroll _no-scrollbar _align-top _-ml-[2px] _p-[2px]" }, Bs = { class: "_flex _justify-end _text-2xl _pl-6" }, Ds = {
1190
+ }, Ts = { class: "_flex _items-center _gap-1 _w-full _justify-center _pl-[1em]" }, Bs = { class: "_text-stroke-2xl _min-w-0 _truncate _px-0.5" }, Ds = { class: "_relative _h-12 _flex _items-stretch _gap-0.5 _px-1 _rounded-lg _shadow-panel-inset _text-center _bg-metallic-linear" }, Ns = { class: "_flex _justify-center _gap-2 _h-10 _items-center" }, Ms = ["href"], Ls = ["href"], js = ["href"], $s = ["href"], Fs = { class: "_whitespace-nowrap _overflow-x-scroll _no-scrollbar _align-top _-ml-[2px] _p-[2px]" }, Hs = { class: "_flex _justify-end _text-2xl _pl-6" }, Ys = {
1114
1191
  key: 0,
1115
1192
  class: "_text-stroke-xl _animate-pulse-deep"
1116
- }, Ns = {
1193
+ }, Is = {
1117
1194
  key: 1,
1118
1195
  class: "_text-stroke-xl"
1119
- }, Ms = { class: "_inline-flex _flex-col _mr-2 _bg-metallic-linear _shadow-panel _px-3 _py-2 _pb-1.5 _rounded-lg" }, Ls = { class: "_flex _justify-end _text-2xl _gap-[0.1em] _pl-6" }, js = {
1196
+ }, Ps = { class: "_inline-flex _flex-col _mr-2 _bg-metallic-linear _shadow-panel _px-3 _py-2 _pb-1.5 _rounded-lg" }, Rs = { class: "_flex _justify-end _text-2xl _gap-[0.1em] _pl-6" }, Ws = {
1120
1197
  key: 0,
1121
1198
  class: "_text-stroke-xl _animate-pulse-deep"
1122
- }, $s = {
1199
+ }, Qs = {
1123
1200
  key: 1,
1124
1201
  class: "_text-stroke-xl"
1125
- }, Fs = { key: 2 }, Hs = { class: "_inline-flex _flex-col _bg-metallic-linear _shadow-panel _px-3 _py-2 _pb-1.5 _rounded-lg" }, Ys = { class: "_flex _justify-end _text-2xl _gap-[0.1em] _pl-6" }, Is = {
1202
+ }, Es = { key: 2 }, Ks = { class: "_inline-flex _flex-col _bg-metallic-linear _shadow-panel _px-3 _py-2 _pb-1.5 _rounded-lg" }, Vs = { class: "_flex _justify-end _text-2xl _gap-[0.1em] _pl-6" }, Js = {
1126
1203
  key: 0,
1127
1204
  class: "_text-stroke-xl _animate-pulse-deep"
1128
- }, Ps = {
1205
+ }, Xs = {
1129
1206
  key: 1,
1130
1207
  class: "_text-stroke-xl"
1131
- }, Rs = { key: 2 }, Ws = { class: "_w-full _max-w-2xl" }, Qs = { class: "_bg-metallic-linear _shadow-panel _p-4 _space-y-2 _rounded-lg" }, Es = { class: "_flex _items-center _justify-between _-mt-1.5" }, Ks = {
1208
+ }, Os = { key: 2 }, Gs = { class: "_w-full _max-w-2xl" }, Zs = { class: "_bg-metallic-linear _shadow-panel _p-4 _space-y-2 _rounded-lg" }, qs = { class: "_flex _items-center _justify-between _-mt-1.5" }, el = {
1132
1209
  key: 0,
1133
1210
  class: "_flex _items-center _gap-2"
1134
- }, Vs = {
1211
+ }, tl = {
1135
1212
  key: 0,
1136
1213
  class: "_text-xs _opacity-30 _tracking-wide"
1137
- }, Js = { key: 0 }, Xs = { class: "_flex _items-center _gap-1" }, Os = ["disabled"], Gs = ["disabled"], Zs = {
1214
+ }, al = { key: 0 }, sl = { class: "_flex _items-center _gap-1" }, ll = ["disabled"], nl = ["disabled"], ol = {
1138
1215
  key: 0,
1139
1216
  class: "_text-sm _text-red-400"
1140
- }, qs = {
1217
+ }, rl = {
1141
1218
  key: 1,
1142
1219
  class: "_flex _flex-col _gap-4"
1143
- }, el = { class: "_space-y-0.5" }, xe = 3, tl = {
1220
+ }, il = { class: "_space-y-0.5" }, ke = 3, ul = {
1144
1221
  __name: "Profile",
1145
1222
  setup(x) {
1146
- const s = Ke(() => import("./TrifleBall-BzjRmmn0.js")), C = ue("hub"), r = ue("TrifleHub/store"), { currentProfileUsername: S, backendUrl: D, user: B } = Ce(r), o = h(null), y = h(!0), z = h(null), w = h([]), m = h(!1), j = h(null), N = h(1), R = h(!1), Q = h(0), I = v(() => Math.max(1, Math.ceil(Q.value / xe))), M = h(null), E = h(0), V = h(!0), ae = v(() => {
1147
- const c = M.value;
1223
+ const s = Ke(() => import("./TrifleBall-BzjRmmn0.js")), C = _e("hub"), o = _e("TrifleHub/store"), { currentProfileUsername: S, backendUrl: L, user: B } = Ue(o), r = b(null), y = b(!0), D = b(null), w = b([]), N = b(!1), v = b(null), M = b(1), I = b(!1), R = b(0), X = f(() => Math.max(1, Math.ceil(R.value / ke))), Z = b(null), E = b(0), U = b(!0), J = f(() => {
1224
+ const c = Z.value;
1148
1225
  if (!c || isNaN(c)) return "—";
1149
- const n = Number(c), g = n % 10, U = n % 100;
1150
- return g === 1 && U !== 11 ? `${n}st` : g === 2 && U !== 12 ? `${n}nd` : g === 3 && U !== 13 ? `${n}rd` : `${n}th`;
1151
- }), se = v(
1226
+ const n = Number(c), p = n % 10, T = n % 100;
1227
+ return p === 1 && T !== 11 ? `${n}st` : p === 2 && T !== 12 ? `${n}nd` : p === 3 && T !== 13 ? `${n}rd` : `${n}th`;
1228
+ }), re = f(
1152
1229
  () => Number(E.value || 0).toLocaleString("en-us")
1153
- ), p = v(() => {
1230
+ ), H = f(() => {
1154
1231
  var c;
1155
1232
  return !((c = B.value) != null && c.username) || !S.value ? !1 : B.value.username === S.value;
1156
- }), f = v(() => {
1157
- var n, g;
1158
- return (p.value ? r.getPlatformData("discord") || [] : ((g = (n = o.value) == null ? void 0 : n.linkedAccounts) == null ? void 0 : g.discord) || []).filter((U) => U.username);
1159
- }), L = v(() => {
1160
- var n, g;
1161
- return (p.value ? r.getPlatformData("twitter") || [] : ((g = (n = o.value) == null ? void 0 : n.linkedAccounts) == null ? void 0 : g.twitter) || []).filter((U) => U.username);
1162
- }), J = v(() => {
1163
- var n, g;
1164
- return (p.value ? r.getPlatformData("telegram") || [] : ((g = (n = o.value) == null ? void 0 : n.linkedAccounts) == null ? void 0 : g.telegram) || []).filter((U) => U.username);
1165
- }), k = v(() => {
1233
+ }), ie = f(() => {
1234
+ var n, p;
1235
+ return (H.value ? o.getPlatformData("discord") || [] : ((p = (n = r.value) == null ? void 0 : n.linkedAccounts) == null ? void 0 : p.discord) || []).filter((T) => T.username);
1236
+ }), z = f(() => {
1237
+ var n, p;
1238
+ return (H.value ? o.getPlatformData("twitter") || [] : ((p = (n = r.value) == null ? void 0 : n.linkedAccounts) == null ? void 0 : p.twitter) || []).filter((T) => T.username);
1239
+ }), _ = f(() => {
1240
+ var n, p;
1241
+ return (H.value ? o.getPlatformData("telegram") || [] : ((p = (n = r.value) == null ? void 0 : n.linkedAccounts) == null ? void 0 : p.telegram) || []).filter((T) => T.username);
1242
+ }), j = f(() => {
1166
1243
  var c, n;
1167
- return p.value ? r.getPlatformData("farcaster") || [] : ((n = (c = o.value) == null ? void 0 : c.linkedAccounts) == null ? void 0 : n.farcaster) || [];
1168
- }), d = v(() => f.value[0] || null), H = v(() => L.value[0] || null), X = v(() => J.value[0] || null), ee = v(() => k.value[0] || null), me = v(
1169
- () => d.value ? `https://discord.com/users/${d.value.id}` : "#"
1170
- ), ve = v(
1171
- () => H.value ? `https://x.com/${H.value.username}` : "#"
1172
- ), pe = v(
1173
- () => X.value ? `https://t.me/${X.value.username}` : "#"
1174
- ), l = v(
1175
- () => ee.value ? `https://warpcast.com/${ee.value.username}` : "#"
1176
- ), $ = async () => {
1177
- y.value = !0, z.value = null;
1244
+ return H.value ? o.getPlatformData("farcaster") || [] : ((n = (c = r.value) == null ? void 0 : c.linkedAccounts) == null ? void 0 : n.farcaster) || [];
1245
+ }), O = f(() => ie.value[0] || null), K = f(() => z.value[0] || null), g = f(() => _.value[0] || null), m = f(() => j.value[0] || null), Q = f(
1246
+ () => O.value ? `https://discord.com/users/${O.value.id}` : "#"
1247
+ ), ue = f(
1248
+ () => K.value ? `https://x.com/${K.value.username}` : "#"
1249
+ ), ge = f(
1250
+ () => g.value ? `https://t.me/${g.value.username}` : "#"
1251
+ ), he = f(
1252
+ () => m.value ? `https://warpcast.com/${m.value.username}` : "#"
1253
+ ), ye = async () => {
1254
+ y.value = !0, D.value = null;
1178
1255
  try {
1179
1256
  const c = await fetch(
1180
- `${D.value}/auth/by-username?username=${encodeURIComponent(
1257
+ `${L.value}/auth/by-username?username=${encodeURIComponent(
1181
1258
  S.value
1182
1259
  )}`
1183
1260
  );
1184
1261
  if (!c.ok) throw new Error("Failed to fetch user");
1185
1262
  const n = await c.json();
1186
- console.log({ data: n }), o.value = n.user, console.log({ user: o });
1263
+ console.log({ data: n }), r.value = n.user, console.log({ user: r });
1187
1264
  } catch (c) {
1188
- z.value = c.message;
1265
+ D.value = c.message;
1189
1266
  } finally {
1190
1267
  y.value = !1;
1191
1268
  }
1192
- }, F = async () => {
1269
+ }, be = async () => {
1193
1270
  var c;
1194
- V.value = !0;
1271
+ U.value = !0;
1195
1272
  try {
1196
- if (!D.value || !((c = o.value) != null && c.id)) return;
1273
+ if (!L.value || !((c = r.value) != null && c.id)) return;
1197
1274
  const n = new URLSearchParams({
1198
1275
  sortBy: "count",
1199
1276
  sortDir: "desc",
1200
1277
  limit: "1",
1201
- userId: String(o.value.id)
1202
- }), g = await fetch(`${D.value}/balls/airdrop-points?${n.toString()}`);
1203
- if (!g.ok) return;
1204
- const U = await g.json();
1205
- U.currentUser && (E.value = U.currentUser.totalBalls || 0, M.value = U.currentUser.rank || null);
1278
+ userId: String(r.value.id)
1279
+ }), p = await fetch(`${L.value}/balls/airdrop-points?${n.toString()}`);
1280
+ if (!p.ok) return;
1281
+ const T = await p.json();
1282
+ T.currentUser && (E.value = T.currentUser.totalBalls || 0, Z.value = T.currentUser.rank || null);
1206
1283
  } catch (n) {
1207
1284
  console.error("Failed to fetch airdrop info", n);
1208
1285
  } finally {
1209
- V.value = !1;
1286
+ U.value = !1;
1210
1287
  }
1211
- }, Y = async () => {
1212
- m.value = !0, j.value = null;
1288
+ }, ce = async () => {
1289
+ N.value = !0, v.value = null;
1213
1290
  try {
1214
- let c = `${D.value}/balls/list?page=${N.value}&limit=${xe}&username=${encodeURIComponent(S.value)}`;
1291
+ let c = `${L.value}/balls/list?page=${M.value}&limit=${ke}&username=${encodeURIComponent(S.value)}`;
1215
1292
  const n = await fetch(c);
1216
1293
  if (!n.ok) throw new Error("Failed to fetch points");
1217
- const g = await n.json();
1218
- w.value = g.data, R.value = g.data.length === xe, Q.value = g.total || 0;
1294
+ const p = await n.json();
1295
+ w.value = p.data, I.value = p.data.length === ke, R.value = p.total || 0;
1219
1296
  } catch (c) {
1220
- j.value = c.message;
1297
+ v.value = c.message;
1221
1298
  } finally {
1222
- m.value = !1;
1299
+ N.value = !1;
1223
1300
  }
1224
- }, le = () => {
1225
- N.value > 1 && (N.value--, Y());
1226
- }, ge = () => {
1227
- R.value && (N.value++, Y());
1228
- }, ce = async () => {
1301
+ }, l = () => {
1302
+ M.value > 1 && (M.value--, ce());
1303
+ }, $ = () => {
1304
+ I.value && (M.value++, ce());
1305
+ }, F = async () => {
1229
1306
  if (!S.value) {
1230
1307
  y.value = !1;
1231
1308
  return;
1232
1309
  }
1233
- await $(), await Promise.all([F(), Y()]);
1310
+ await ye(), await Promise.all([be(), ce()]);
1234
1311
  };
1235
- we(async () => {
1236
- console.log("onMounted", S.value), await ce();
1237
- }), Be(S, async (c, n) => {
1238
- !c || c === n || (N.value = 1, await ce());
1312
+ Ae(async () => {
1313
+ console.log("onMounted", S.value), await F();
1314
+ }), De(S, async (c, n) => {
1315
+ !c || c === n || (M.value = 1, await F());
1239
1316
  });
1240
- const ne = h(!1);
1241
- we(() => {
1317
+ const Y = b(!1);
1318
+ Ae(() => {
1242
1319
  setTimeout(() => {
1243
- ne.value = !0;
1320
+ Y.value = !0;
1244
1321
  }, 350);
1245
1322
  });
1246
- const O = h(!1), K = h(""), he = h(!1), Se = async () => {
1323
+ const V = b(!1), G = b(""), se = b(!1), fe = async () => {
1247
1324
  var c;
1248
- if (K.value) {
1249
- he.value = !0;
1325
+ if (G.value) {
1326
+ se.value = !0;
1250
1327
  try {
1251
- await r.enterSimulationMode(K.value), O.value = !1, K.value = "", r.addNotification({
1252
- message: `Entered simulation mode for user: ${(c = r.user) == null ? void 0 : c.username}`,
1328
+ await o.enterSimulationMode(G.value), V.value = !1, G.value = "", o.addNotification({
1329
+ message: `Entered simulation mode for user: ${(c = o.user) == null ? void 0 : c.username}`,
1253
1330
  type: "success"
1254
1331
  });
1255
1332
  } catch (n) {
1256
- r.addNotification({
1333
+ o.addNotification({
1257
1334
  message: n.message || "Failed to enter simulation mode",
1258
1335
  type: "error"
1259
1336
  });
1260
1337
  } finally {
1261
- he.value = !1;
1338
+ se.value = !1;
1262
1339
  }
1263
1340
  }
1264
- }, He = () => {
1265
- r.exitSimulationMode(), O.value = !1, r.addNotification({
1341
+ }, xe = () => {
1342
+ o.exitSimulationMode(), V.value = !1, o.addNotification({
1266
1343
  message: "Exited simulation mode",
1267
1344
  type: "success"
1268
1345
  });
1269
- }, ye = h(null), de = h(!1), G = h(""), Ue = h(!1), Z = h(""), ze = h(!1), te = h(!0);
1270
- let be;
1346
+ }, q = b(null), me = b(!1), ee = b(""), ze = b(!1), te = b(""), Te = b(!1), le = b(!0);
1347
+ let we;
1271
1348
  const Ye = async (c) => {
1272
- var g;
1349
+ var p;
1273
1350
  if (!c) {
1274
- te.value = !0, Z.value = "";
1351
+ le.value = !0, te.value = "";
1275
1352
  return;
1276
1353
  }
1277
- if (c === ((g = B.value) == null ? void 0 : g.username)) {
1278
- te.value = !0, Z.value = "";
1354
+ if (c === ((p = B.value) == null ? void 0 : p.username)) {
1355
+ le.value = !0, te.value = "";
1279
1356
  return;
1280
1357
  }
1281
1358
  if (!/^(?!.*--)[a-zA-Z0-9]+(-[a-zA-Z0-9]+)*$/.test(c)) {
1282
- Z.value = "Username must be alphanumeric";
1359
+ te.value = "Username must be alphanumeric";
1283
1360
  return;
1284
1361
  }
1285
1362
  if (c.length > 22) {
1286
- Z.value = "Username must be 22 characters or less";
1363
+ te.value = "Username must be 22 characters or less";
1287
1364
  return;
1288
1365
  }
1289
- ze.value = !0;
1366
+ Te.value = !0;
1290
1367
  try {
1291
- const U = await fetch(
1292
- `${D.value}/auth/username/check?username=${encodeURIComponent(c)}`
1368
+ const T = await fetch(
1369
+ `${L.value}/auth/username/check?username=${encodeURIComponent(c)}`
1293
1370
  );
1294
- if (!U.ok) throw new Error("Failed to check username availability");
1295
- const q = await U.json();
1296
- te.value = q.available, Z.value = q.available ? "" : "This username is already taken";
1297
- } catch (U) {
1298
- console.error("Failed to check username:", U), Z.value = "Error checking username";
1371
+ if (!T.ok) throw new Error("Failed to check username availability");
1372
+ const ae = await T.json();
1373
+ le.value = ae.available, te.value = ae.available ? "" : "This username is already taken";
1374
+ } catch (T) {
1375
+ console.error("Failed to check username:", T), te.value = "Error checking username";
1299
1376
  } finally {
1300
- ze.value = !1;
1377
+ Te.value = !1;
1301
1378
  }
1302
1379
  }, Ie = (c) => {
1303
1380
  const n = c.target.value.trim();
1304
- G.value = n, Z.value = "", be && clearTimeout(be), n ? be = setTimeout(() => Ye(n), 500) : te.value = !0;
1381
+ ee.value = n, te.value = "", we && clearTimeout(we), n ? we = setTimeout(() => Ye(n), 500) : le.value = !0;
1305
1382
  }, Pe = async () => {
1306
- var c, n, g;
1307
- if (p.value) {
1308
- if (r.isSimulationMode) {
1309
- r.addNotification({
1383
+ var c, n, p;
1384
+ if (H.value) {
1385
+ if (o.isSimulationMode) {
1386
+ o.addNotification({
1310
1387
  message: "Cannot edit username in simulation mode",
1311
1388
  type: "error"
1312
1389
  });
1313
1390
  return;
1314
1391
  }
1315
- Z.value = "", G.value = ((c = B.value) == null ? void 0 : c.username) || "", de.value = !0, te.value = !0, await Xe(), (n = ye.value) == null || n.focus(), (g = ye.value) == null || g.select();
1392
+ te.value = "", ee.value = ((c = B.value) == null ? void 0 : c.username) || "", me.value = !0, le.value = !0, await Xe(), (n = q.value) == null || n.focus(), (p = q.value) == null || p.select();
1316
1393
  }
1317
1394
  }, Re = async () => {
1318
1395
  var c;
1319
- if (!G.value.trim()) {
1320
- r.addNotification({ type: "error", message: "Oops, name can't be empty!" });
1396
+ if (!ee.value.trim()) {
1397
+ o.addNotification({ type: "error", message: "Oops, name can't be empty!" });
1321
1398
  return;
1322
1399
  }
1323
- if (!te.value) {
1324
- r.addNotification({ type: "error", message: "This name is already taken" });
1400
+ if (!le.value) {
1401
+ o.addNotification({ type: "error", message: "This name is already taken" });
1325
1402
  return;
1326
1403
  }
1327
- if (G.value.trim() === ((c = B.value) == null ? void 0 : c.username)) {
1328
- de.value = !1;
1404
+ if (ee.value.trim() === ((c = B.value) == null ? void 0 : c.username)) {
1405
+ me.value = !1;
1329
1406
  return;
1330
1407
  }
1331
- Ue.value = !0;
1408
+ ze.value = !0;
1332
1409
  try {
1333
- await r.updateUsername(G.value.trim()), de.value = !1, r.addNotification({ type: "success", message: "Name updated!" });
1410
+ await o.updateUsername(ee.value.trim()), me.value = !1, o.addNotification({ type: "success", message: "Name updated!" });
1334
1411
  } catch (n) {
1335
- console.error("Failed to update name:", n), r.addNotification({ type: "error", message: "Hmm, something went wrong" });
1412
+ console.error("Failed to update name:", n), o.addNotification({ type: "error", message: "Hmm, something went wrong" });
1336
1413
  } finally {
1337
- Ue.value = !1;
1414
+ ze.value = !1;
1338
1415
  }
1339
1416
  };
1340
- return (c, n) => (t(), W(it, null, Ve({
1417
+ return (c, n) => (t(), W(ut, null, Ve({
1341
1418
  "admin-controls": P(() => [
1342
- p.value && u(r).isAdmin ? (t(), a("div", _s, [
1343
- !O.value && !u(r).isSimulationMode ? (t(), a("button", {
1419
+ H.value && u(o).isAdmin ? (t(), a("div", bs, [
1420
+ !V.value && !u(o).isSimulationMode ? (t(), a("button", {
1344
1421
  key: 0,
1345
1422
  class: "_p-2 _bg-metallic-linear _shadow-panel _rounded-full _cursor-pointer mouse:hover:_scale-110 _duration-150",
1346
- onClick: n[0] || (n[0] = (g) => O.value = !0),
1423
+ onClick: n[0] || (n[0] = (p) => V.value = !0),
1347
1424
  title: "Admin Mode"
1348
1425
  }, [
1349
- (t(), a("svg", fs, n[5] || (n[5] = [
1426
+ (t(), a("svg", xs, n[5] || (n[5] = [
1350
1427
  e("path", {
1351
1428
  "stroke-linecap": "round",
1352
1429
  "stroke-linejoin": "round",
@@ -1363,49 +1440,49 @@ const it = /* @__PURE__ */ Fe(qe, [["render", rt]]), ut = ["disabled"], ct = { c
1363
1440
  }, null, -1)
1364
1441
  ])))
1365
1442
  ])) : i("", !0),
1366
- O.value || u(r).isSimulationMode ? (t(), a("div", ms, [
1367
- u(r).isSimulationMode ? (t(), a("div", vs, " SIMULATION MODE ")) : i("", !0),
1368
- u(r).isSimulationMode ? i("", !0) : (t(), a("div", ps, [
1369
- _e(e("input", {
1370
- "onUpdate:modelValue": n[1] || (n[1] = (g) => K.value = g),
1443
+ V.value || u(o).isSimulationMode ? (t(), a("div", ws, [
1444
+ u(o).isSimulationMode ? (t(), a("div", ks, " SIMULATION MODE ")) : i("", !0),
1445
+ u(o).isSimulationMode ? i("", !0) : (t(), a("div", As, [
1446
+ ve(e("input", {
1447
+ "onUpdate:modelValue": n[1] || (n[1] = (p) => G.value = p),
1371
1448
  type: "text",
1372
1449
  placeholder: "Username or ID",
1373
1450
  autocomplete: "off",
1374
1451
  "data-1p-ignore": "",
1375
1452
  class: "_w-full _px-2 _py-1 _text-sm _font-normal _rounded _bg-black/20 _border _border-white/10 _outline-none focus:_border-white/30",
1376
- onKeyup: ke(Se, ["enter"])
1453
+ onKeyup: Ce(fe, ["enter"])
1377
1454
  }, null, 544), [
1378
- [Ae, K.value]
1455
+ [Se, G.value]
1379
1456
  ]),
1380
1457
  e("button", {
1381
1458
  class: "_w-full _px-3 _py-1 _text-sm _bg-blue-500/80 _rounded mouse:hover:_bg-blue-500 _duration-150",
1382
- disabled: !K.value || he.value,
1383
- onClick: Se
1384
- }, _(he.value ? "Loading..." : "Simulate User"), 9, gs),
1459
+ disabled: !G.value || se.value,
1460
+ onClick: fe
1461
+ }, d(se.value ? "Loading..." : "Simulate User"), 9, Cs),
1385
1462
  e("button", {
1386
1463
  class: "_w-full _px-3 _py-1 _text-xs _bg-white/10 _rounded mouse:hover:_bg-white/20 _duration-150",
1387
- onClick: n[2] || (n[2] = (g) => O.value = !1)
1464
+ onClick: n[2] || (n[2] = (p) => V.value = !1)
1388
1465
  }, " Cancel ")
1389
1466
  ])),
1390
- u(r).isSimulationMode ? (t(), a("button", {
1467
+ u(o).isSimulationMode ? (t(), a("button", {
1391
1468
  key: 2,
1392
1469
  class: "_w-full _px-3 _py-1.5 _text-sm _bg-red-500/80 _rounded mouse:hover:_bg-red-500 _duration-150 _font-semibold",
1393
- onClick: He
1470
+ onClick: xe
1394
1471
  }, " Exit Simulation ")) : i("", !0)
1395
1472
  ])) : i("", !0)
1396
1473
  ])) : i("", !0)
1397
1474
  ]),
1398
1475
  avatar: P(() => {
1399
- var g, U;
1476
+ var p, T;
1400
1477
  return [
1401
1478
  e("div", {
1402
- class: A(["_size-full _flex _items-center _justify-center _rounded-full _duration-150 _delay-50", { "_opacity-0": !ne.value }]),
1479
+ class: k(["_size-full _flex _items-center _justify-center _rounded-full _duration-150 _delay-50", { "_opacity-0": !Y.value }]),
1403
1480
  style: { "box-shadow": "0 16px 24px 2px rgba(0, 0, 0, 0.4)" }
1404
1481
  }, [
1405
- ne.value ? (t(), W(u(s), {
1406
- key: o.value && ((g = o.value) == null ? void 0 : g.avatar) || "smiley-face",
1482
+ Y.value ? (t(), W(u(s), {
1483
+ key: r.value && ((p = r.value) == null ? void 0 : p.avatar) || "smiley-face",
1407
1484
  mode: "glass-inner-wall",
1408
- "image-source": o.value && ((U = o.value) == null ? void 0 : U.avatar) || u(Ge),
1485
+ "image-source": r.value && ((T = r.value) == null ? void 0 : T.avatar) || u(Ze),
1409
1486
  style: { width: "175%", height: "175%" },
1410
1487
  class: "_cursor-grab"
1411
1488
  }, null, 8, ["image-source"])) : i("", !0)
@@ -1413,126 +1490,126 @@ const it = /* @__PURE__ */ Fe(qe, [["render", rt]]), ut = ["disabled"], ct = { c
1413
1490
  ];
1414
1491
  }),
1415
1492
  title: P(() => {
1416
- var g, U;
1493
+ var p, T;
1417
1494
  return [
1418
- p.value ? (t(), a("div", bs, [
1419
- _e(e("div", xs, [
1420
- e("span", ws, _(((U = u(B)) == null ? void 0 : U.username) || "Not set"), 1),
1495
+ H.value ? (t(), a("div", zs, [
1496
+ ve(e("div", Ts, [
1497
+ e("span", Bs, d(((T = u(B)) == null ? void 0 : T.username) || "Not set"), 1),
1421
1498
  e("button", {
1422
1499
  class: "_p-1 _-m-0.5 _leading-none _flex-shrink-0 _block mouse:hover:_scale-[1.2] _duration-150 _rounded-md",
1423
1500
  onClick: Pe
1424
1501
  }, n[6] || (n[6] = [
1425
1502
  e("img", {
1426
- src: Ze,
1503
+ src: qe,
1427
1504
  class: "_h-[0.72em] _opacity-20 _pointer-events-none"
1428
1505
  }, null, -1)
1429
1506
  ]))
1430
1507
  ], 512), [
1431
- [Te, !de.value]
1508
+ [Be, !me.value]
1432
1509
  ]),
1433
- _e(e("div", ks, [
1434
- _e(e("input", {
1510
+ ve(e("div", Ds, [
1511
+ ve(e("input", {
1435
1512
  ref_key: "usernameInput",
1436
- ref: ye,
1437
- "onUpdate:modelValue": n[3] || (n[3] = (q) => G.value = q),
1513
+ ref: q,
1514
+ "onUpdate:modelValue": n[3] || (n[3] = (ae) => ee.value = ae),
1438
1515
  type: "text",
1439
1516
  maxlength: "22",
1440
1517
  autocomplete: "off",
1441
1518
  "data-1p-ignore": "",
1442
- class: A(["_flex-1 _text-stroke-2xl _bg-transparent _text-center _w-full _outline-none", { "_border-red-500": !te.value && G.value }]),
1519
+ class: k(["_flex-1 _text-stroke-2xl _bg-transparent _text-center _w-full _outline-none", { "_border-red-500": !le.value && ee.value }]),
1443
1520
  placeholder: "Enter new username",
1444
1521
  onInput: Ie,
1445
- onKeyup: ke(Re, ["enter"])
1522
+ onKeyup: Ce(Re, ["enter"])
1446
1523
  }, null, 34), [
1447
- [Ae, G.value]
1524
+ [Se, ee.value]
1448
1525
  ])
1449
1526
  ], 512), [
1450
- [Te, de.value]
1527
+ [Be, me.value]
1451
1528
  ])
1452
- ])) : (t(), a("div", hs, [
1453
- e("span", ys, _(((g = o.value) == null ? void 0 : g.username) || "..."), 1)
1529
+ ])) : (t(), a("div", Ss, [
1530
+ e("span", Us, d(((p = r.value) == null ? void 0 : p.username) || "..."), 1)
1454
1531
  ]))
1455
1532
  ];
1456
1533
  }),
1457
1534
  default: P(() => {
1458
- var g, U;
1535
+ var p, T;
1459
1536
  return [
1460
- e("section", Ts, [
1537
+ e("section", Fs, [
1461
1538
  e("section", {
1462
1539
  class: "_inline-flex _flex-col _mr-2 _bg-metallic-linear _shadow-panel _px-3 _py-2 _pb-1.5 _rounded-lg",
1463
- onClick: n[4] || (n[4] = (q) => u(C).openHub("leaderboard"))
1540
+ onClick: n[4] || (n[4] = (ae) => u(C).openHub("leaderboard"))
1464
1541
  }, [
1465
1542
  n[11] || (n[11] = e("header", { class: "_flex _justify-between _items-center _opacity-30 _text-base _leading-snug" }, [
1466
1543
  e("h3", { class: "_weight-black" }, "rank")
1467
1544
  ], -1)),
1468
- e("div", Bs, [
1469
- V.value ? (t(), a("span", Ds, "...")) : (t(), a("span", Ns, _(ae.value), 1))
1545
+ e("div", Hs, [
1546
+ U.value ? (t(), a("span", Ys, "...")) : (t(), a("span", Is, d(J.value), 1))
1470
1547
  ])
1471
1548
  ]),
1472
- e("section", Ms, [
1549
+ e("section", Ps, [
1473
1550
  n[12] || (n[12] = e("header", { class: "_flex _justify-between _items-center _opacity-30 _text-base _leading-snug" }, [
1474
1551
  e("h3", { class: "_weight-black" }, "airdrop points")
1475
1552
  ], -1)),
1476
- e("div", Ls, [
1477
- V.value ? (t(), a("span", js, "...")) : (t(), a("span", $s, _(se.value), 1)),
1478
- V.value ? i("", !0) : (t(), a("span", Fs, "🪂"))
1553
+ e("div", Rs, [
1554
+ U.value ? (t(), a("span", Ws, "...")) : (t(), a("span", Qs, d(re.value), 1)),
1555
+ U.value ? i("", !0) : (t(), a("span", Es, "🪂"))
1479
1556
  ])
1480
1557
  ]),
1481
- e("section", Hs, [
1558
+ e("section", Ks, [
1482
1559
  n[13] || (n[13] = e("header", { class: "_flex _justify-between _opacity-30 _text-base _leading-snug" }, [
1483
1560
  e("h3", { class: "_weight-black" }, "balance")
1484
1561
  ], -1)),
1485
- e("div", Ys, [
1486
- y.value ? (t(), a("span", Is, "...")) : (t(), a("span", Ps, _(((U = (g = o.value) == null ? void 0 : g.totalPoints) == null ? void 0 : U.toLocaleString()) || 0), 1)),
1487
- y.value ? i("", !0) : (t(), a("span", Rs, "🪩"))
1562
+ e("div", Vs, [
1563
+ y.value ? (t(), a("span", Js, "...")) : (t(), a("span", Xs, d(((T = (p = r.value) == null ? void 0 : p.totalPoints) == null ? void 0 : T.toLocaleString()) || 0), 1)),
1564
+ y.value ? i("", !0) : (t(), a("span", Os, "🪩"))
1488
1565
  ])
1489
1566
  ])
1490
1567
  ]),
1491
- e("section", Ws, [
1492
- e("section", Qs, [
1493
- e("div", Es, [
1568
+ e("section", Gs, [
1569
+ e("section", Zs, [
1570
+ e("div", qs, [
1494
1571
  e("h3", {
1495
- class: A(["_text-mlg _weight-bold", { "_animate-pulse-deep": m.value }])
1572
+ class: k(["_text-mlg _weight-bold", { "_animate-pulse-deep": N.value }])
1496
1573
  }, n[14] || (n[14] = [
1497
1574
  e("span", { class: "_opacity-30" }, "activity", -1)
1498
1575
  ]), 2),
1499
- I.value > 1 ? (t(), a("div", Ks, [
1500
- N.value > 1 ? (t(), a("div", Vs, [
1501
- b(" Page " + _(N.value), 1),
1502
- Q.value ? (t(), a("span", Js, " of " + _(I.value), 1)) : i("", !0)
1576
+ X.value > 1 ? (t(), a("div", el, [
1577
+ M.value > 1 ? (t(), a("div", tl, [
1578
+ h(" Page " + d(M.value), 1),
1579
+ R.value ? (t(), a("span", al, " of " + d(X.value), 1)) : i("", !0)
1503
1580
  ])) : i("", !0),
1504
- e("div", Xs, [
1581
+ e("div", sl, [
1505
1582
  e("button", {
1506
- class: A(["_size-8 _flex _items-center _justify-center _rounded-lg _bg-metallic-cone _shadow-panel _text-xl mouse:hover:_scale-[1.05] _duration-150", { "_opacity-30 _cursor-default": N.value === 1 }]),
1507
- onClick: le,
1508
- disabled: N.value === 1,
1583
+ class: k(["_size-8 _flex _items-center _justify-center _rounded-lg _bg-metallic-cone _shadow-panel _text-xl mouse:hover:_scale-[1.05] _duration-150", { "_opacity-30 _cursor-default": M.value === 1 }]),
1584
+ onClick: l,
1585
+ disabled: M.value === 1,
1509
1586
  "aria-label": "Previous page"
1510
- }, " ← ", 10, Os),
1587
+ }, " ← ", 10, ll),
1511
1588
  e("button", {
1512
- class: A(["_size-8 _flex _items-center _justify-center _rounded-lg _bg-metallic-cone _shadow-panel _text-xl mouse:hover:_scale-[1.05] _duration-150", { "_opacity-30 _cursor-default": !R.value }]),
1513
- onClick: ge,
1514
- disabled: !R.value,
1589
+ class: k(["_size-8 _flex _items-center _justify-center _rounded-lg _bg-metallic-cone _shadow-panel _text-xl mouse:hover:_scale-[1.05] _duration-150", { "_opacity-30 _cursor-default": !I.value }]),
1590
+ onClick: $,
1591
+ disabled: !I.value,
1515
1592
  "aria-label": "Next page"
1516
- }, " → ", 10, Gs)
1593
+ }, " → ", 10, nl)
1517
1594
  ])
1518
1595
  ])) : i("", !0)
1519
1596
  ]),
1520
- j.value ? (t(), a("div", Zs, _(j.value), 1)) : w.value.length ? (t(), a("section", qs, [
1521
- e("ul", el, [
1522
- (t(!0), a(T, null, ie(w.value, (q) => (t(), a("li", {
1523
- key: q.id
1597
+ v.value ? (t(), a("div", ol, d(v.value), 1)) : w.value.length ? (t(), a("section", rl, [
1598
+ e("ul", il, [
1599
+ (t(!0), a(A, null, oe(w.value, (ae) => (t(), a("li", {
1600
+ key: ae.id
1524
1601
  }, [
1525
- Je(ds, { point: q }, null, 8, ["point"])
1602
+ Je(ys, { point: ae }, null, 8, ["point"])
1526
1603
  ]))), 128))
1527
1604
  ])
1528
1605
  ])) : i("", !0)
1529
1606
  ])
1530
1607
  ]),
1531
- p.value ? (t(), W(ts, {
1608
+ H.value ? (t(), W(us, {
1532
1609
  key: 0,
1533
1610
  class: "_w-full _max-w-2xl"
1534
1611
  })) : i("", !0),
1535
- p.value ? (t(), W(Na, {
1612
+ H.value ? (t(), W(Ia, {
1536
1613
  key: 1,
1537
1614
  class: "_w-full _max-w-2xl"
1538
1615
  })) : i("", !0)
@@ -1540,80 +1617,80 @@ const it = /* @__PURE__ */ Fe(qe, [["render", rt]]), ut = ["disabled"], ct = { c
1540
1617
  }),
1541
1618
  _: 2
1542
1619
  }, [
1543
- !p.value && (d.value || H.value || X.value || ee.value) ? {
1620
+ !H.value && (O.value || K.value || g.value || m.value) ? {
1544
1621
  name: "description",
1545
1622
  fn: P(() => [
1546
- e("div", As, [
1547
- d.value ? (t(), a("a", {
1623
+ e("div", Ns, [
1624
+ O.value ? (t(), a("a", {
1548
1625
  key: 0,
1549
- href: me.value,
1626
+ href: Q.value,
1550
1627
  target: "_blank",
1551
1628
  rel: "noopener noreferrer",
1552
1629
  class: "_p-1.5 _flex _items-center _justify-center _rounded-lg _bg-metallic-cone _shadow-panel",
1553
1630
  "aria-label": "View Discord profile"
1554
1631
  }, n[7] || (n[7] = [
1555
1632
  e("img", {
1556
- src: Me,
1633
+ src: Le,
1557
1634
  class: "_size-7 _rounded",
1558
1635
  style: { "background-color": "#5865f2" }
1559
1636
  }, null, -1)
1560
- ]), 8, Cs)) : i("", !0),
1561
- H.value ? (t(), a("a", {
1637
+ ]), 8, Ms)) : i("", !0),
1638
+ K.value ? (t(), a("a", {
1562
1639
  key: 1,
1563
- href: ve.value,
1640
+ href: ue.value,
1564
1641
  target: "_blank",
1565
1642
  rel: "noopener noreferrer",
1566
1643
  class: "_p-1.5 _flex _items-center _justify-center _rounded-lg _bg-metallic-cone _shadow-panel",
1567
1644
  "aria-label": "View Twitter profile"
1568
1645
  }, n[8] || (n[8] = [
1569
1646
  e("img", {
1570
- src: Le,
1647
+ src: je,
1571
1648
  class: "_size-7 _rounded",
1572
1649
  style: { "background-color": "#000" }
1573
1650
  }, null, -1)
1574
- ]), 8, Ss)) : i("", !0),
1575
- X.value ? (t(), a("a", {
1651
+ ]), 8, Ls)) : i("", !0),
1652
+ g.value ? (t(), a("a", {
1576
1653
  key: 2,
1577
- href: pe.value,
1654
+ href: ge.value,
1578
1655
  target: "_blank",
1579
1656
  rel: "noopener noreferrer",
1580
1657
  class: "_p-1.5 _flex _items-center _justify-center _rounded-lg _bg-metallic-cone _shadow-panel",
1581
1658
  "aria-label": "View Telegram profile"
1582
1659
  }, n[9] || (n[9] = [
1583
1660
  e("img", {
1584
- src: je,
1661
+ src: $e,
1585
1662
  class: "_size-7 _rounded",
1586
1663
  style: { "background-color": "#0088cc" }
1587
1664
  }, null, -1)
1588
- ]), 8, Us)) : i("", !0),
1589
- ee.value ? (t(), a("a", {
1665
+ ]), 8, js)) : i("", !0),
1666
+ m.value ? (t(), a("a", {
1590
1667
  key: 3,
1591
- href: l.value,
1668
+ href: he.value,
1592
1669
  target: "_blank",
1593
1670
  rel: "noopener noreferrer",
1594
1671
  class: "_p-1.5 _flex _items-center _justify-center _rounded-lg _bg-metallic-cone _shadow-panel",
1595
1672
  "aria-label": "View Farcaster profile"
1596
1673
  }, n[10] || (n[10] = [
1597
1674
  e("img", {
1598
- src: $e,
1675
+ src: Fe,
1599
1676
  class: "_size-7 _rounded",
1600
1677
  style: { "background-color": "#000" }
1601
1678
  }, null, -1)
1602
- ]), 8, zs)) : i("", !0)
1679
+ ]), 8, $s)) : i("", !0)
1603
1680
  ])
1604
1681
  ]),
1605
1682
  key: "0"
1606
1683
  } : void 0
1607
1684
  ]), 1024));
1608
1685
  }
1609
- }, ol = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1686
+ }, ml = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1610
1687
  __proto__: null,
1611
- default: tl
1688
+ default: ul
1612
1689
  }, Symbol.toStringTag, { value: "Module" }));
1613
1690
  export {
1614
- it as A,
1615
- ol as P,
1616
- At as S,
1617
- oe as _,
1618
- tl as a
1691
+ ut as A,
1692
+ ml as P,
1693
+ Ct as S,
1694
+ ne as _,
1695
+ ul as a
1619
1696
  };