@trifle/trifle-hub 1.0.135 → 1.0.139
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/AccountIndex-CiY27JqC.js +1141 -0
- package/dist/AccountLayout-DtKvcqQk.js +28 -0
- package/dist/Earn-kdKep6z4.js +308 -0
- package/dist/{ExchangeController-zXhAKkK6.js → ExchangeController-CpawOBjO.js} +1 -1
- package/dist/Games-nm8YkrKb.js +150 -0
- package/dist/{HelpersUtil-CY6R7Co_.js → HelpersUtil-3iZQOrUR.js} +2 -2
- package/dist/HubPageHeader-VDMilTIN.js +15 -0
- package/dist/Leaderboard-DTMuuUI2.js +127 -0
- package/dist/Profile-OcprYiTe.js +247 -0
- package/dist/{ReownAuthentication-EPFmKaRG.js → ReownAuthentication-Dx9J5wW5.js} +1 -1
- package/dist/SocialsButtons-CaxHp39D.js +40 -0
- package/dist/SwapBalls-D14eVMm3.js +279 -0
- package/dist/{SwapController-CGPI_D5e.js → SwapController-CfHJg94E.js} +8 -8
- package/dist/Theme-BWsbj5D7.js +103 -0
- package/dist/TrifleBall-BzjRmmn0.js +442 -0
- package/dist/{TrifleGuide-D0ZIok-4.js → TrifleGuide-BaDjBbmQ.js} +7 -5
- package/dist/Welcome-BY_5cki_.js +26 -0
- package/dist/_plugin-vue_export-helper-CHgC5LLL.js +9 -0
- package/dist/config/pointsConfig.d.ts +22 -0
- package/dist/{data-capture-Ic2otuXH.js → data-capture-Cjm5W0Y1.js} +4 -4
- package/dist/{email-D56bUVOJ.js → email-D9DzAmAf.js} +8 -8
- package/dist/{embedded-wallet-CZ2TPPSy.js → embedded-wallet-frEKbYcX.js} +15 -15
- package/dist/{features-B8TqHDpF.js → features-CxANzbNq.js} +1 -1
- package/dist/{if-defined-DEJMSyi4.js → if-defined-Dt4YEz4W.js} +1 -1
- package/dist/{index-CefBEKyy.js → index-04dY-_Br.js} +8 -8
- package/dist/{index-DyMBLFwZ.js → index-9uPe2rYW.js} +3 -3
- package/dist/{index-BoAlKGDj.js → index-B0Kcxhe4.js} +3 -3
- package/dist/{index-Sxh9fI5L.js → index-B1L3X8u_.js} +10 -10
- package/dist/{index-D2lN4PSE.js → index-B9YsAezq.js} +23 -23
- package/dist/{index-BgQGaGU_.js → index-BQFwpRsK.js} +1 -1
- package/dist/{index-CTJWVPLI.js → index-BUMEn1E4.js} +4 -4
- package/dist/{index-qANCkRC3.js → index-BUdv01TL.js} +2 -2
- package/dist/{index-DE0hi2Cs.js → index-BavnkbGD.js} +29 -29
- package/dist/{index-CyIzzfCN.js → index-BcZlwNIi.js} +5 -5
- package/dist/{index-DAa0lWM9.js → index-C6cJllXv.js} +4 -4
- package/dist/{index-DiXVmK25.js → index-CJflfvlk.js} +4 -4
- package/dist/{index-zs8o6Hm_.js → index-CP50wTqN.js} +7 -7
- package/dist/{index-ea-e8z1x.js → index-CRErkVO3.js} +17 -17
- package/dist/{index-BSF_7fnA.js → index-CSmFhiF8.js} +8 -8
- package/dist/{index-BNvvB5k7.js → index-CTDuTVO_.js} +4 -4
- package/dist/{index-CA_SDYT1.js → index-C_4Vihwh.js} +2 -2
- package/dist/{index-DgFgX1AL.js → index-Cda169Sl.js} +4 -4
- package/dist/{index-B0eqy0m2.js → index-Cl0XcWd8.js} +4 -4
- package/dist/index-CwKzvTqB.js +39170 -0
- package/dist/{index-DAQEdzUM.js → index-D5nLyAyi.js} +1 -1
- package/dist/{index-C088i3Y2.js → index-DCXrU6Zp.js} +4 -4
- package/dist/{index-CWYI78Xc.js → index-DIufPwSL.js} +5 -5
- package/dist/{index-DwtQgCcN.js → index-DL90mqMa.js} +6 -6
- package/dist/{index-CmEc7cLh.js → index-DN1pAdfc.js} +3 -3
- package/dist/{index-D4LkTveQ.js → index-DYUd496J.js} +7 -7
- package/dist/{index-C9k7jnxR.js → index-Dgu687MR.js} +4 -4
- package/dist/{index-DeCywS64.js → index-DkFHQduQ.js} +3 -3
- package/dist/{index-CSrBo_jp.js → index-Dtbd5XVq.js} +2 -2
- package/dist/{index-DiOJnz2Y.js → index-I6786tUo.js} +1 -1
- package/dist/{index-BHBFVq76.js → index-PWQWtfWN.js} +3 -3
- package/dist/{index-sG3oxoS7.js → index-SKsZHB0-.js} +3 -3
- package/dist/{index-gZI3cyf-.js → index-Sf6jvZHY.js} +3 -3
- package/dist/{index-BjIZnvGE.js → index-_051Pwm_.js} +2 -2
- package/dist/{index-cqNsdUSa.js → index-ftdTTbvp.js} +8 -8
- package/dist/{index-BBSuzwU2.js → index-oMyM5fBH.js} +167 -167
- package/dist/index.es.js +2 -2
- package/dist/{onramp-TyOLb3hr.js → onramp-BpodJIc_.js} +34 -34
- package/dist/{pay-with-exchange-XiOnKhS8.js → pay-with-exchange-CDe8hXwu.js} +15 -15
- package/dist/pointsConfig-BnWciGN1.js +341 -0
- package/dist/{receive-DSFhhExk.js → receive-DZv-SqXU.js} +12 -12
- package/dist/{ref-BFksc6PZ.js → ref-6WzuxW2E.js} +2 -2
- package/dist/routes.d.ts +13 -14
- package/dist/{send-BzG6enLY.js → send-DdeWJH-F.js} +21 -21
- package/dist/{socials-DW3LcLzQ.js → socials-DzZQtjng.js} +35 -35
- package/dist/socialsConfig-C_thrh4W.js +63 -0
- package/dist/{swaps-C99aLOQH.js → swaps-CNPRmrr4.js} +11 -11
- package/dist/{transactions-ClHo5ZDR.js → transactions-Byg78bzh.js} +9 -9
- package/dist/{w3m-modal-CwvVS-Q_.js → w3m-modal-b77XA1K1.js} +14 -14
- package/package.json +1 -1
- package/dist/index-CbOpPaCw.js +0 -42309
|
@@ -0,0 +1,1141 @@
|
|
|
1
|
+
import { computed as m, inject as X, createElementBlock as l, openBlock as s, normalizeStyle as ne, createElementVNode as t, renderSlot as He, createCommentVNode as r, toDisplayString as g, ref as U, unref as o, Fragment as w, createTextVNode as d, defineAsyncComponent as We, onMounted as Ye, watch as je, createBlock as S, withCtx as p, renderList as P, normalizeClass as k, withDirectives as E, vShow as ae, withKeys as ge, vModelText as he, nextTick as Qe, createVNode as se } from "vue";
|
|
2
|
+
import { storeToRefs as be } from "pinia";
|
|
3
|
+
import { p as ye, c as we, d as Ie, a as Ke, b as Ee, _ as Xe } from "./socialsConfig-C_thrh4W.js";
|
|
4
|
+
import { n as xe } from "./index-CwKzvTqB.js";
|
|
5
|
+
import { A as ke } from "./AccountLayout-DtKvcqQk.js";
|
|
6
|
+
import { _ as Je } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
7
|
+
const Ve = "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+2Na27U0o2xtBWNtWrFixR2qoPkCJ9QWD4XPAATaLGu5imCOBkKhstzudrjdsNset6XR6itRQVbBAHO3v8wUewkZ1ycgQiy4RQR96YNy4cWGpYeRBUzqZTJ4KHWOjjBx3KTp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2m/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==", Re = ["disabled"], Oe = { class: "_size-7 _rounded-lg _overflow-hidden" }, Ge = ["src"], Ze = { class: "_flex-1 _min-w-0 _truncate _text-center _text-stroke-md _leading-snug" }, qe = { class: "_size-7 _flex _justify-end _items-center" }, Pe = {
|
|
8
|
+
key: 0,
|
|
9
|
+
class: "_whitespace-nowrap _leading-snug _pr-[0.25em] _pl-[0.4em] _shadow-panel-inset _rounded-full _text-[0.875em] _tracking-tight"
|
|
10
|
+
}, T = {
|
|
11
|
+
__name: "AuthButton",
|
|
12
|
+
props: {
|
|
13
|
+
platform: {
|
|
14
|
+
type: String,
|
|
15
|
+
default: "wallet"
|
|
16
|
+
},
|
|
17
|
+
points: {
|
|
18
|
+
type: String,
|
|
19
|
+
default: void 0
|
|
20
|
+
},
|
|
21
|
+
disabled: {
|
|
22
|
+
type: Boolean,
|
|
23
|
+
default: !1
|
|
24
|
+
}
|
|
25
|
+
},
|
|
26
|
+
setup(F) {
|
|
27
|
+
const f = F, e = m(() => ye[f.platform]), u = X("TrifleHub/store");
|
|
28
|
+
let A = !1;
|
|
29
|
+
const B = async (v) => {
|
|
30
|
+
if (!A)
|
|
31
|
+
switch (A = !0, setTimeout(() => {
|
|
32
|
+
A = !1;
|
|
33
|
+
}, 1e3), v) {
|
|
34
|
+
case "discord":
|
|
35
|
+
await c();
|
|
36
|
+
break;
|
|
37
|
+
case "farcaster":
|
|
38
|
+
await H();
|
|
39
|
+
break;
|
|
40
|
+
case "wallet":
|
|
41
|
+
await z();
|
|
42
|
+
break;
|
|
43
|
+
case "twitter":
|
|
44
|
+
await N();
|
|
45
|
+
break;
|
|
46
|
+
case "telegram":
|
|
47
|
+
await j();
|
|
48
|
+
break;
|
|
49
|
+
default:
|
|
50
|
+
throw new Error(`Unsupported platform: ${v}`);
|
|
51
|
+
}
|
|
52
|
+
}, H = async () => {
|
|
53
|
+
console.log("Farcaster connect clicked");
|
|
54
|
+
try {
|
|
55
|
+
await u.connectFarcaster();
|
|
56
|
+
} catch (v) {
|
|
57
|
+
console.error("Farcaster connection failed:", v), u.addNotification({
|
|
58
|
+
type: "error",
|
|
59
|
+
message: "Farcaster login failed. Try again?"
|
|
60
|
+
});
|
|
61
|
+
}
|
|
62
|
+
}, z = async () => {
|
|
63
|
+
try {
|
|
64
|
+
await u.connectWallet();
|
|
65
|
+
} catch (v) {
|
|
66
|
+
console.error("Wallet connection failed:", v), u.addNotification({
|
|
67
|
+
type: "error",
|
|
68
|
+
message: "Wallet login failed. Try again?"
|
|
69
|
+
});
|
|
70
|
+
}
|
|
71
|
+
}, c = async () => {
|
|
72
|
+
try {
|
|
73
|
+
await u.connectDiscord();
|
|
74
|
+
} catch (v) {
|
|
75
|
+
v.message.includes("Authentication window closed") && u.addNotification({
|
|
76
|
+
type: "error",
|
|
77
|
+
message: "Discord login failed. Try again?"
|
|
78
|
+
}), console.error("Discord connection failed:", v);
|
|
79
|
+
}
|
|
80
|
+
}, N = async () => {
|
|
81
|
+
try {
|
|
82
|
+
await u.connectTwitter();
|
|
83
|
+
} catch (v) {
|
|
84
|
+
v.message.includes("Authentication window closed") && u.addNotification({
|
|
85
|
+
type: "error",
|
|
86
|
+
message: "TwitterX login failed. Try again?"
|
|
87
|
+
}), console.error("TwitterX connection failed:", v);
|
|
88
|
+
}
|
|
89
|
+
}, j = async () => {
|
|
90
|
+
try {
|
|
91
|
+
await u.connectTelegram();
|
|
92
|
+
} catch (v) {
|
|
93
|
+
console.error("Telegram connection failed:", v), u.addNotification({
|
|
94
|
+
type: "error",
|
|
95
|
+
message: "Telegram login failed. Try again?"
|
|
96
|
+
});
|
|
97
|
+
}
|
|
98
|
+
};
|
|
99
|
+
return (v, L) => (s(), l("button", {
|
|
100
|
+
class: "_platform-login-btn _bubble-btn-full _p-4.5",
|
|
101
|
+
style: ne({
|
|
102
|
+
filter: `hue-rotate(${e.value.bubbleButtonStyle.hueRotate}deg) saturate(${e.value.bubbleButtonStyle.saturate}) brightness(${e.value.bubbleButtonStyle.brightness || 1})`
|
|
103
|
+
}),
|
|
104
|
+
disabled: f.disabled,
|
|
105
|
+
onClick: L[0] || (L[0] = (Q) => f.click || B(f.platform))
|
|
106
|
+
}, [
|
|
107
|
+
t("div", {
|
|
108
|
+
class: "_flex _justify-between _items-center _gap-2.5",
|
|
109
|
+
style: ne({
|
|
110
|
+
filter: `hue-rotate(${e.value.bubbleButtonStyle.hueRotate * -1}deg) saturate(${1 / e.value.bubbleButtonStyle.saturate})`
|
|
111
|
+
})
|
|
112
|
+
}, [
|
|
113
|
+
t("div", Oe, [
|
|
114
|
+
t("img", {
|
|
115
|
+
src: e.value.icon,
|
|
116
|
+
class: "_w-full",
|
|
117
|
+
style: ne({ backgroundColor: e.value.iconBgColor })
|
|
118
|
+
}, null, 12, Ge)
|
|
119
|
+
]),
|
|
120
|
+
t("div", Ze, [
|
|
121
|
+
He(v.$slots, "default")
|
|
122
|
+
]),
|
|
123
|
+
t("div", qe, [
|
|
124
|
+
f.points ? (s(), l("div", Pe, g(f.points) + " 🪩 ", 1)) : r("", !0)
|
|
125
|
+
])
|
|
126
|
+
], 4)
|
|
127
|
+
], 12, Re));
|
|
128
|
+
}
|
|
129
|
+
}, $e = { class: "_flex _flex-col _gap-2ff _bg-metallic-linear _shadow-panel _rounded-lg _p-3 _gap-3" }, et = { class: "_flex _items-center _justify-between _gap-3" }, tt = { class: "_flex _items-center _gap-2.5 _min-w-0" }, at = { class: "_flex-1 _min-w-0 _leading-tight" }, st = { class: "_flex-1 _min-w-0 _truncate _text-em-lg _text-gray-500" }, nt = ["disabled"], lt = { class: "_flex-1 _min-w-0 _truncate _text-center _text-stroke-md _leading-snug" }, ot = {
|
|
130
|
+
key: 0,
|
|
131
|
+
class: "_animate-pulse-deep"
|
|
132
|
+
}, it = {
|
|
133
|
+
__name: "AuthenticateWalletSection",
|
|
134
|
+
props: {
|
|
135
|
+
walletAddress: String,
|
|
136
|
+
walletAvatar: String,
|
|
137
|
+
displayName: String,
|
|
138
|
+
points: String,
|
|
139
|
+
disabled: {
|
|
140
|
+
type: Boolean,
|
|
141
|
+
default: !1
|
|
142
|
+
}
|
|
143
|
+
},
|
|
144
|
+
setup(F) {
|
|
145
|
+
const f = ye.wallet, e = F, u = X("TrifleHub/store"), A = U(!1), B = async () => {
|
|
146
|
+
if (e.disabled || u.isSimulationMode) {
|
|
147
|
+
u.addNotification({
|
|
148
|
+
message: "Cannot disconnect wallet in simulation mode",
|
|
149
|
+
type: "error"
|
|
150
|
+
});
|
|
151
|
+
return;
|
|
152
|
+
}
|
|
153
|
+
try {
|
|
154
|
+
await u.disconnect(), u.addNotification({ message: "Wallet disconnected" });
|
|
155
|
+
} catch (z) {
|
|
156
|
+
console.error(z), u.addNotification({ type: "error", message: "Failed to disconnect wallet" });
|
|
157
|
+
}
|
|
158
|
+
}, H = async () => {
|
|
159
|
+
if (e.disabled || u.isSimulationMode) {
|
|
160
|
+
u.addNotification({
|
|
161
|
+
message: "Cannot authenticate wallet in simulation mode",
|
|
162
|
+
type: "error"
|
|
163
|
+
});
|
|
164
|
+
return;
|
|
165
|
+
}
|
|
166
|
+
A.value = !0;
|
|
167
|
+
try {
|
|
168
|
+
await u.authenticateWithWallet(e.walletAddress);
|
|
169
|
+
} catch {
|
|
170
|
+
u.addNotification({ type: "error", message: "Authentication failed" });
|
|
171
|
+
} finally {
|
|
172
|
+
A.value = !1;
|
|
173
|
+
}
|
|
174
|
+
};
|
|
175
|
+
return (z, c) => (s(), l("section", $e, [
|
|
176
|
+
t("div", et, [
|
|
177
|
+
t("div", tt, [
|
|
178
|
+
c[0] || (c[0] = t("img", {
|
|
179
|
+
src: we,
|
|
180
|
+
class: "_size-7 _rounded-md",
|
|
181
|
+
style: { "background-color": "#f1584d" }
|
|
182
|
+
}, null, -1)),
|
|
183
|
+
t("div", at, [
|
|
184
|
+
t("div", st, g(F.displayName), 1)
|
|
185
|
+
])
|
|
186
|
+
]),
|
|
187
|
+
t("button", {
|
|
188
|
+
class: "_bubble-btn _h-10 _text-sm _text-stroke-md _px-[1em]",
|
|
189
|
+
"aria-label": "Disconnect wallet",
|
|
190
|
+
onClick: B,
|
|
191
|
+
title: "Disconnect wallet"
|
|
192
|
+
}, c[1] || (c[1] = [
|
|
193
|
+
t("span", null, "⛌", -1)
|
|
194
|
+
]))
|
|
195
|
+
]),
|
|
196
|
+
t("button", {
|
|
197
|
+
class: "_platform-login-btn _bubble-btn _p-4.5 flex-1 basis-1/2ff min-w-0",
|
|
198
|
+
style: ne({
|
|
199
|
+
filter: `hue-rotate(${o(f).bubbleButtonStyle.hueRotate}deg) saturate(${o(f).bubbleButtonStyle.saturate}) brightness(${o(f).bubbleButtonStyle.brightness || 1})`
|
|
200
|
+
}),
|
|
201
|
+
onClick: H,
|
|
202
|
+
disabled: A.value || F.disabled
|
|
203
|
+
}, [
|
|
204
|
+
t("div", lt, [
|
|
205
|
+
A.value ? (s(), l("span", ot, "Confirm in your wallet...")) : (s(), l(w, { key: 1 }, [
|
|
206
|
+
d("Finish Wallet Login")
|
|
207
|
+
], 64))
|
|
208
|
+
])
|
|
209
|
+
], 12, nt)
|
|
210
|
+
]));
|
|
211
|
+
}
|
|
212
|
+
}, Ae = /* @__PURE__ */ Je(it, [["__scopeId", "data-v-1fad0d64"]]), rt = {
|
|
213
|
+
key: 0,
|
|
214
|
+
class: "_flex _flex-col _gap-2"
|
|
215
|
+
}, dt = {
|
|
216
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
217
|
+
class: "_size-5 _opacity-60",
|
|
218
|
+
fill: "none",
|
|
219
|
+
viewBox: "0 0 24 24",
|
|
220
|
+
stroke: "currentColor",
|
|
221
|
+
style: { "pointer-events": "none" }
|
|
222
|
+
}, ut = {
|
|
223
|
+
key: 1,
|
|
224
|
+
class: "_bg-metallic-linear _shadow-panel _rounded-lg _p-3 _space-y-2 _min-w-[200px]"
|
|
225
|
+
}, ct = {
|
|
226
|
+
key: 0,
|
|
227
|
+
class: "_text-xs _font-semibold _text-center _bg-yellow-500/20 _border _border-yellow-500/40 _rounded _py-1"
|
|
228
|
+
}, _t = {
|
|
229
|
+
key: 1,
|
|
230
|
+
class: "_space-y-2"
|
|
231
|
+
}, mt = ["disabled"], pt = { class: "_h-12 _flex _items-center _gap-1 _w-full _justify-center _pl-[1em] _border _border-transparent" }, ft = { class: "_text-stroke-2xl _min-w-0 _truncate _px-0.5" }, vt = { class: "_relative _h-12 _flex _items-stretch _gap-0.5 _px-1 _rounded-lg _shadow-panel-inset _text-center _bg-metallic-linear" }, gt = { class: "_flex _justify-center _gap-1 _h-10 _items-center" }, ht = { class: "_text-stroke-xl" }, bt = { class: "_flex _justify-center _gap-1 _h-10 _items-center" }, yt = { class: "_flex _flex-col _gap-[inherit]" }, wt = { class: "_bg-metallic-linear _shadow-panel _p-4 _pb-5 _space-y-2 _rounded-lg" }, xt = { class: "_flex _items-center _gap-2.5 _-mt-1.5" }, kt = { class: "_text-xl _weight-bold" }, At = { class: "_flex _flex-col _gap-2" }, Ct = { class: "_flex _items-center _gap-2" }, St = ["disabled"], Ut = ["onClick"], Bt = ["src"], Nt = {
|
|
232
|
+
key: 1,
|
|
233
|
+
class: "_w-full _flex _items-center _justify-center"
|
|
234
|
+
}, Tt = { class: "_flex-1 _min-w-0 _leading-tight" }, zt = ["onClick"], Lt = {
|
|
235
|
+
key: 0,
|
|
236
|
+
class: "_text-em-2xs _text-gray-500 _leading-none"
|
|
237
|
+
}, Dt = {
|
|
238
|
+
key: 1,
|
|
239
|
+
class: "_text-em-2xs _text-gray-500 _leading-none"
|
|
240
|
+
}, Mt = ["onClick"], Ft = { styleff: "filter: hue-rotate(-130deg) saturate(0.5)" }, Ht = { class: "_bg-metallic-linear _shadow-panel _p-4 _pb-5 _space-y-2 _rounded-lg" }, Wt = {
|
|
241
|
+
key: 0,
|
|
242
|
+
class: "_flex _items-center _gap-2.5 _-mt-1.5"
|
|
243
|
+
}, Yt = { class: "_space-y-2" }, jt = { class: "_flex _items-center _gap-2" }, Qt = ["disabled"], It = ["onClick"], Kt = ["src"], Et = {
|
|
244
|
+
key: 1,
|
|
245
|
+
class: "_w-full _flex _items-center _justify-center"
|
|
246
|
+
}, Xt = { class: "_flex-1 _min-w-0 _leading-tight" }, Jt = { class: "_flex-1 _min-w-0 _truncate _text-em-lg" }, Vt = ["onClick"], Rt = { styleff: "filter: hue-rotate(-130deg) saturate(0.5)" }, Ot = { class: "_bg-metallic-linear _shadow-panel _p-4 _pb-5 _space-y-2 _rounded-lg" }, Gt = {
|
|
247
|
+
key: 0,
|
|
248
|
+
class: "_flex _items-center _gap-2.5 _-mt-1.5"
|
|
249
|
+
}, Zt = { class: "_space-y-2" }, qt = { class: "_flex _items-center _gap-2" }, Pt = ["disabled"], $t = ["onClick"], ea = ["src"], ta = {
|
|
250
|
+
key: 1,
|
|
251
|
+
class: "_w-full _flex _items-center _justify-center"
|
|
252
|
+
}, aa = { class: "_flex-1 _min-w-0 _leading-tight" }, sa = { class: "_flex-1 _min-w-0 _truncate _text-em-lg" }, na = {
|
|
253
|
+
key: 0,
|
|
254
|
+
class: "_text-em-2xs _text-blue-400 _leading-none"
|
|
255
|
+
}, la = ["onClick"], oa = { styleff: "filter: hue-rotate(-130deg) saturate(0.5)" }, ia = { class: "_bg-metallic-linear _shadow-panel _p-4 _pb-5 _space-y-2 _rounded-lg" }, ra = {
|
|
256
|
+
key: 0,
|
|
257
|
+
class: "_flex _items-center _gap-2.5 _-mt-1.5"
|
|
258
|
+
}, da = { class: "_space-y-2" }, ua = { class: "_flex _items-center _gap-2" }, ca = ["disabled"], _a = ["onClick"], ma = ["src"], pa = {
|
|
259
|
+
key: 1,
|
|
260
|
+
class: "_w-full _flex _items-center _justify-center"
|
|
261
|
+
}, fa = { class: "_flex-1 _min-w-0 _leading-tight" }, va = { class: "_flex-1 _min-w-0 _truncate _text-em-lg" }, ga = ["onClick"], ha = { styleff: "filter: hue-rotate(-130deg) saturate(0.5)" }, ba = {
|
|
262
|
+
key: 0,
|
|
263
|
+
class: "_flex _items-center _gap-2.5 _-mt-1.5"
|
|
264
|
+
}, ya = { class: "_space-y-2" }, wa = { class: "_flex _items-center _p-2 _pr-3.5 _justify-between _bg-metallic-linear _shadow-panel _rounded-lg" }, xa = { class: "_flex _items-center _gap-2" }, ka = ["disabled"], Aa = ["onClick"], Ca = ["src"], Sa = {
|
|
265
|
+
key: 1,
|
|
266
|
+
class: "_w-full _flex _items-center _justify-center"
|
|
267
|
+
}, Ua = { class: "_flex-1 _min-w-0 _leading-tight" }, Ba = { class: "_flex-1 _min-w-0 _truncate _text-em-lg" }, Na = ["onClick"], Ta = { styleff: "filter: hue-rotate(-130deg) saturate(0.5)" }, za = {
|
|
268
|
+
__name: "UserAccount",
|
|
269
|
+
setup(F) {
|
|
270
|
+
const f = We(() => import("./TrifleBall-BzjRmmn0.js")), e = X("TrifleHub/store"), { isAuthenticated: u, backendUrl: A } = be(e), B = m(() => e.isFarcaster), H = m(() => e.isSuperApp), z = async () => {
|
|
271
|
+
await e.addFrame();
|
|
272
|
+
}, c = () => {
|
|
273
|
+
var i;
|
|
274
|
+
e.setProfileUsername((i = e.user) == null ? void 0 : i.username), j("profile");
|
|
275
|
+
}, N = U(!1);
|
|
276
|
+
Ye(() => {
|
|
277
|
+
setTimeout(() => {
|
|
278
|
+
N.value = !0;
|
|
279
|
+
}, 300);
|
|
280
|
+
});
|
|
281
|
+
const { openHub: j } = X("hub"), v = U(null), L = m(() => e.getPlatformData("wallet")), Q = m(() => e.getPlatformData("discord").filter((i) => i.username)), J = m(() => e.getPlatformData("farcaster")), V = m(() => e.getPlatformData("twitter").filter((i) => i.username)), R = m(() => e.getPlatformData("telegram").filter((i) => i.username)), Ce = m(() => Q.value.length > 0), Se = m(() => J.value.length > 0), Ue = m(() => V.value.length > 0), Be = m(() => R.value.length > 0), O = m(
|
|
282
|
+
() => L.value.length + Q.value.length + J.value.length + V.value.length + R.value.length
|
|
283
|
+
), x = U({ platform: null, id: null }), G = async (i, n, _) => {
|
|
284
|
+
if (_.stopPropagation(), e.isSimulationMode) {
|
|
285
|
+
e.addNotification({
|
|
286
|
+
message: "Cannot disconnect platforms in simulation mode",
|
|
287
|
+
type: "error"
|
|
288
|
+
});
|
|
289
|
+
return;
|
|
290
|
+
}
|
|
291
|
+
if (x.value.platform === i && x.value.id === n) {
|
|
292
|
+
try {
|
|
293
|
+
await e.disconnectPlatformInstance(i, n);
|
|
294
|
+
} catch (h) {
|
|
295
|
+
console.error(`Failed to disconnect ${i} instance:`, h);
|
|
296
|
+
}
|
|
297
|
+
x.value = { platform: null, id: null };
|
|
298
|
+
return;
|
|
299
|
+
}
|
|
300
|
+
x.value = { platform: i, id: n };
|
|
301
|
+
}, oe = () => {
|
|
302
|
+
x.value = { platform: null, id: null };
|
|
303
|
+
};
|
|
304
|
+
je(x, (i) => {
|
|
305
|
+
i.platform ? window.addEventListener("click", oe, { once: !0 }) : window.removeEventListener("click", oe);
|
|
306
|
+
});
|
|
307
|
+
const ie = (i) => i ? `0x${i.slice(2, 6).toUpperCase()}...${i.slice(-4).toUpperCase()}` : "", W = U(!1), D = U(""), re = U(!1), M = U(""), de = U(!1), Y = U(!0);
|
|
308
|
+
let le;
|
|
309
|
+
const I = U(!1), K = U(""), $ = U(!1), ue = async () => {
|
|
310
|
+
var i;
|
|
311
|
+
if (K.value) {
|
|
312
|
+
$.value = !0;
|
|
313
|
+
try {
|
|
314
|
+
await e.enterSimulationMode(K.value), I.value = !1, K.value = "", e.addNotification({
|
|
315
|
+
message: `Entered simulation mode for user: ${(i = e.user) == null ? void 0 : i.username}`,
|
|
316
|
+
type: "success"
|
|
317
|
+
});
|
|
318
|
+
} catch (n) {
|
|
319
|
+
e.addNotification({
|
|
320
|
+
message: n.message || "Failed to enter simulation mode",
|
|
321
|
+
type: "error"
|
|
322
|
+
});
|
|
323
|
+
} finally {
|
|
324
|
+
$.value = !1;
|
|
325
|
+
}
|
|
326
|
+
}
|
|
327
|
+
}, Ne = () => {
|
|
328
|
+
e.exitSimulationMode(), I.value = !1, e.addNotification({
|
|
329
|
+
message: "Exited simulation mode",
|
|
330
|
+
type: "success"
|
|
331
|
+
});
|
|
332
|
+
}, Te = async (i) => {
|
|
333
|
+
var _;
|
|
334
|
+
if (!i) {
|
|
335
|
+
Y.value = !0, M.value = "";
|
|
336
|
+
return;
|
|
337
|
+
}
|
|
338
|
+
if (i === ((_ = e.user) == null ? void 0 : _.username)) {
|
|
339
|
+
Y.value = !0, M.value = "";
|
|
340
|
+
return;
|
|
341
|
+
}
|
|
342
|
+
if (!/^(?!.*--)[a-zA-Z0-9]+(-[a-zA-Z0-9]+)*$/.test(i)) {
|
|
343
|
+
M.value = "Username must be alphanumeric";
|
|
344
|
+
return;
|
|
345
|
+
}
|
|
346
|
+
if (i.length > 22) {
|
|
347
|
+
M.value = "Username must be 22 characters or less";
|
|
348
|
+
return;
|
|
349
|
+
}
|
|
350
|
+
de.value = !0;
|
|
351
|
+
try {
|
|
352
|
+
const h = await fetch(
|
|
353
|
+
`${A.value}/auth/username/check?username=${encodeURIComponent(i)}`
|
|
354
|
+
);
|
|
355
|
+
if (!h.ok) throw new Error("Failed to check username availability");
|
|
356
|
+
const a = await h.json();
|
|
357
|
+
Y.value = a.available, M.value = a.available ? "" : "This username is already taken";
|
|
358
|
+
} catch (h) {
|
|
359
|
+
console.error("Failed to check username:", h), M.value = "Error checking username";
|
|
360
|
+
} finally {
|
|
361
|
+
de.value = !1;
|
|
362
|
+
}
|
|
363
|
+
}, ze = (i) => {
|
|
364
|
+
const n = i.target.value.trim();
|
|
365
|
+
D.value = n, M.value = "", le && clearTimeout(le), n ? le = setTimeout(() => Te(n), 500) : Y.value = !0;
|
|
366
|
+
}, Le = async () => {
|
|
367
|
+
var i;
|
|
368
|
+
if (e.isSimulationMode) {
|
|
369
|
+
e.addNotification({
|
|
370
|
+
message: "Cannot edit username in simulation mode",
|
|
371
|
+
type: "error"
|
|
372
|
+
});
|
|
373
|
+
return;
|
|
374
|
+
}
|
|
375
|
+
M.value = "", D.value = ((i = e.user) == null ? void 0 : i.username) || "", W.value = !0, Y.value = !0, await Qe(), v.value.focus(), v.value.select();
|
|
376
|
+
}, ce = async () => {
|
|
377
|
+
var i;
|
|
378
|
+
if (!D.value.trim()) {
|
|
379
|
+
e.addNotification({ type: "error", message: "Oops, name can't be empty!" });
|
|
380
|
+
return;
|
|
381
|
+
}
|
|
382
|
+
if (!Y.value) {
|
|
383
|
+
e.addNotification({ type: "error", message: "This name is already taken" });
|
|
384
|
+
return;
|
|
385
|
+
}
|
|
386
|
+
if (D.value.trim() === ((i = e.user) == null ? void 0 : i.username)) {
|
|
387
|
+
W.value = !1;
|
|
388
|
+
return;
|
|
389
|
+
}
|
|
390
|
+
re.value = !0;
|
|
391
|
+
try {
|
|
392
|
+
await e.updateUsername(D.value.trim()), W.value = !1, e.addNotification({ type: "success", message: "Name updated!" });
|
|
393
|
+
} catch (n) {
|
|
394
|
+
console.error("Failed to update name:", n), e.addNotification({ type: "error", message: "Hmm, something went wrong" });
|
|
395
|
+
} finally {
|
|
396
|
+
re.value = !1;
|
|
397
|
+
}
|
|
398
|
+
}, De = () => {
|
|
399
|
+
W.value = !1, D.value = "", M.value = "", Y.value = !0;
|
|
400
|
+
}, Me = async () => {
|
|
401
|
+
try {
|
|
402
|
+
await e.disconnect(), console.log("User logged out");
|
|
403
|
+
} catch (i) {
|
|
404
|
+
console.error("Logout failed:", i);
|
|
405
|
+
}
|
|
406
|
+
}, Z = async (i, n) => {
|
|
407
|
+
if (e.isSimulationMode) {
|
|
408
|
+
e.addNotification({
|
|
409
|
+
message: "Cannot set avatar in simulation mode",
|
|
410
|
+
type: "error"
|
|
411
|
+
});
|
|
412
|
+
return;
|
|
413
|
+
}
|
|
414
|
+
try {
|
|
415
|
+
if (!(await fetch(`${A.value}/auth/update-avatar`, {
|
|
416
|
+
method: "POST",
|
|
417
|
+
headers: {
|
|
418
|
+
"Content-Type": "application/json",
|
|
419
|
+
Authorization: `Bearer ${e.authToken}`
|
|
420
|
+
},
|
|
421
|
+
body: JSON.stringify({ platform: i, platformId: n })
|
|
422
|
+
})).ok) throw new Error("Failed to set avatar");
|
|
423
|
+
await e.fetchUserStatus(), e.addNotification({ type: "success", message: "Avatar updated!" });
|
|
424
|
+
} catch (_) {
|
|
425
|
+
e.addNotification({ type: "error", message: "Oops, couldn't set avatar. Try again?" }), console.error("Failed to set avatar:", _);
|
|
426
|
+
}
|
|
427
|
+
};
|
|
428
|
+
m(() => e.accountConnected), m(() => e.currentWalletNeedsAuth);
|
|
429
|
+
const ee = m(() => e.accountAddress);
|
|
430
|
+
m(() => e.isWalletAuthenticated(ee.value));
|
|
431
|
+
const _e = m(() => ee.value ? L.value.find((i) => {
|
|
432
|
+
var n, _;
|
|
433
|
+
return ((n = i.id) == null ? void 0 : n.toLowerCase()) === ((_ = ee.value) == null ? void 0 : _.toLowerCase());
|
|
434
|
+
}) : null), Fe = async () => {
|
|
435
|
+
try {
|
|
436
|
+
await e.openAccountModal();
|
|
437
|
+
} catch {
|
|
438
|
+
e.addNotification({ type: "error", message: "Couldn't open wallet modal" });
|
|
439
|
+
}
|
|
440
|
+
};
|
|
441
|
+
return (i, n) => (s(), S(ke, null, {
|
|
442
|
+
"admin-controls": p(() => [
|
|
443
|
+
o(e).isAdmin ? (s(), l("div", rt, [
|
|
444
|
+
!I.value && !o(e).isSimulationMode ? (s(), l("button", {
|
|
445
|
+
key: 0,
|
|
446
|
+
class: "_p-2 _bg-metallic-linear _shadow-panel _rounded-full _cursor-pointer mouse:hover:_scale-110 _duration-150",
|
|
447
|
+
onClick: n[0] || (n[0] = (_) => I.value = !0),
|
|
448
|
+
title: "Admin Mode"
|
|
449
|
+
}, [
|
|
450
|
+
(s(), l("svg", dt, n[5] || (n[5] = [
|
|
451
|
+
t("path", {
|
|
452
|
+
"stroke-linecap": "round",
|
|
453
|
+
"stroke-linejoin": "round",
|
|
454
|
+
"stroke-width": "2",
|
|
455
|
+
d: "M10.325 4.317c.426-1.756 2.924-1.756 3.35 0a1.724 1.724 0 002.573 1.066c1.543-.94 3.31.826 2.37 2.37a1.724 1.724 0 001.065 2.572c1.756.426 1.756 2.924 0 3.35a1.724 1.724 0 00-1.066 2.573c.94 1.543-.826 3.31-2.37 2.37a1.724 1.724 0 00-2.572 1.065c-.426 1.756-2.924 1.756-3.35 0a1.724 1.724 0 00-2.573-1.066c-1.543.94-3.31-.826-2.37-2.37a1.724 1.724 0 00-1.065-2.572c-1.756-.426-1.756-2.924 0-3.35a1.724 1.724 0 001.066-2.573c-.94-1.543.826-3.31 2.37-2.37.996.608 2.296.07 2.572-1.065z",
|
|
456
|
+
style: { "pointer-events": "none" }
|
|
457
|
+
}, null, -1),
|
|
458
|
+
t("path", {
|
|
459
|
+
"stroke-linecap": "round",
|
|
460
|
+
"stroke-linejoin": "round",
|
|
461
|
+
"stroke-width": "2",
|
|
462
|
+
d: "M15 12a3 3 0 11-6 0 3 3 0 016 0z",
|
|
463
|
+
style: { "pointer-events": "none" }
|
|
464
|
+
}, null, -1)
|
|
465
|
+
])))
|
|
466
|
+
])) : r("", !0),
|
|
467
|
+
I.value || o(e).isSimulationMode ? (s(), l("div", ut, [
|
|
468
|
+
o(e).isSimulationMode ? (s(), l("div", ct, " SIMULATION MODE ")) : r("", !0),
|
|
469
|
+
o(e).isSimulationMode ? r("", !0) : (s(), l("div", _t, [
|
|
470
|
+
E(t("input", {
|
|
471
|
+
"onUpdate:modelValue": n[1] || (n[1] = (_) => K.value = _),
|
|
472
|
+
type: "text",
|
|
473
|
+
placeholder: "Username or ID",
|
|
474
|
+
autocomplete: "off",
|
|
475
|
+
"data-1p-ignore": "",
|
|
476
|
+
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",
|
|
477
|
+
onKeyup: ge(ue, ["enter"])
|
|
478
|
+
}, null, 544), [
|
|
479
|
+
[he, K.value]
|
|
480
|
+
]),
|
|
481
|
+
t("button", {
|
|
482
|
+
class: "_w-full _px-3 _py-1 _text-sm _bg-blue-500/80 _rounded mouse:hover:_bg-blue-500 _duration-150",
|
|
483
|
+
disabled: !K.value || $.value,
|
|
484
|
+
onClick: ue
|
|
485
|
+
}, g($.value ? "Loading..." : "Simulate User"), 9, mt),
|
|
486
|
+
t("button", {
|
|
487
|
+
class: "_w-full _px-3 _py-1 _text-xs _bg-white/10 _rounded mouse:hover:_bg-white/20 _duration-150",
|
|
488
|
+
onClick: n[2] || (n[2] = (_) => I.value = !1)
|
|
489
|
+
}, " Cancel ")
|
|
490
|
+
])),
|
|
491
|
+
o(e).isSimulationMode ? (s(), l("button", {
|
|
492
|
+
key: 2,
|
|
493
|
+
class: "_w-full _px-3 _py-1.5 _text-sm _bg-red-500/80 _rounded mouse:hover:_bg-red-500 _duration-150 _font-semibold",
|
|
494
|
+
onClick: Ne
|
|
495
|
+
}, " Exit Simulation ")) : r("", !0)
|
|
496
|
+
])) : r("", !0)
|
|
497
|
+
])) : r("", !0)
|
|
498
|
+
]),
|
|
499
|
+
avatar: p(() => {
|
|
500
|
+
var _, h, a, b, y, C;
|
|
501
|
+
return [
|
|
502
|
+
t("div", {
|
|
503
|
+
class: k(["_size-full _flex _items-center _justify-center _rounded-full _duration-150 _delay-50", { "_opacity-0": !N.value }]),
|
|
504
|
+
style: { "box-shadow": "0 16px 24px 2px rgba(0, 0, 0, 0.4)" }
|
|
505
|
+
}, [
|
|
506
|
+
N.value ? (s(), S(o(f), {
|
|
507
|
+
key: ((_ = o(e).user) == null ? void 0 : _.avatar) || ((a = (h = o(e).isFarcaster) == null ? void 0 : h.user) == null ? void 0 : a.avatar) || "smiley-face",
|
|
508
|
+
mode: "glass-inner-wall",
|
|
509
|
+
"image-source": ((b = o(e).user) == null ? void 0 : b.avatar) || ((C = (y = o(e).isFarcaster) == null ? void 0 : y.user) == null ? void 0 : C.avatar) || o(xe),
|
|
510
|
+
style: { width: "175%", height: "175%" },
|
|
511
|
+
class: "_cursor-grab",
|
|
512
|
+
onClick: n[3] || (n[3] = (q) => o(e).addNotification({
|
|
513
|
+
message: "Click one of your avatar's to set as your profile pic!"
|
|
514
|
+
}))
|
|
515
|
+
}, null, 8, ["image-source"])) : r("", !0)
|
|
516
|
+
], 2)
|
|
517
|
+
];
|
|
518
|
+
}),
|
|
519
|
+
title: p(() => {
|
|
520
|
+
var _;
|
|
521
|
+
return [
|
|
522
|
+
E(t("div", pt, [
|
|
523
|
+
t("span", ft, g(((_ = o(e).user) == null ? void 0 : _.username) || "Not set"), 1),
|
|
524
|
+
t("button", {
|
|
525
|
+
class: "_p-1 _-m-0.5 _leading-none _flex-shrink-0 _block mouse:hover:_scale-[1.2] _duration-150 _rounded-md",
|
|
526
|
+
onClick: Le
|
|
527
|
+
}, n[6] || (n[6] = [
|
|
528
|
+
t("img", {
|
|
529
|
+
src: Ve,
|
|
530
|
+
class: "_h-[0.72em] _opacity-20 _pointer-events-none"
|
|
531
|
+
}, null, -1)
|
|
532
|
+
]))
|
|
533
|
+
], 512), [
|
|
534
|
+
[ae, !W.value]
|
|
535
|
+
]),
|
|
536
|
+
E(t("div", vt, [
|
|
537
|
+
E(t("input", {
|
|
538
|
+
ref_key: "usernameInput",
|
|
539
|
+
ref: v,
|
|
540
|
+
"onUpdate:modelValue": n[4] || (n[4] = (h) => D.value = h),
|
|
541
|
+
type: "text",
|
|
542
|
+
maxlength: "22",
|
|
543
|
+
autocomplete: "off",
|
|
544
|
+
"data-1p-ignore": "",
|
|
545
|
+
class: k(["_flex-1 _text-stroke-2xl _bg-transparent _text-center _w-full _outline-none", { "_border-red-500": !Y.value && D.value }]),
|
|
546
|
+
placeholder: "Enter new username",
|
|
547
|
+
onInput: ze,
|
|
548
|
+
onKeyup: ge(ce, ["enter"])
|
|
549
|
+
}, null, 34), [
|
|
550
|
+
[he, D.value]
|
|
551
|
+
])
|
|
552
|
+
], 512), [
|
|
553
|
+
[ae, W.value]
|
|
554
|
+
])
|
|
555
|
+
];
|
|
556
|
+
}),
|
|
557
|
+
description: p(() => {
|
|
558
|
+
var _, h;
|
|
559
|
+
return [
|
|
560
|
+
E(t("div", gt, [
|
|
561
|
+
t("button", {
|
|
562
|
+
class: "_text-xl _shadow-panel _pl-[0.3em] _pr-[0.5em] _rounded-full _bg-metallic-cone _leading-none _py-[0.25em] _flex _gap-[0.2em] mouse:hover:_scale-[1.05] _duration-150",
|
|
563
|
+
onClick: c
|
|
564
|
+
}, [
|
|
565
|
+
n[7] || (n[7] = t("span", null, "🪩", -1)),
|
|
566
|
+
t("span", ht, g((h = (_ = o(e).user) == null ? void 0 : _.totalBalls) == null ? void 0 : h.toLocaleString()), 1)
|
|
567
|
+
])
|
|
568
|
+
], 512), [
|
|
569
|
+
[ae, !W.value]
|
|
570
|
+
]),
|
|
571
|
+
E(t("div", bt, [
|
|
572
|
+
t("button", {
|
|
573
|
+
class: "_bubble-btn _h-11 _text-base _min-w-[5em] _weight-semibold",
|
|
574
|
+
style: { filter: "hue-rotate(-340deg) saturate(1.8)" },
|
|
575
|
+
onClick: ce
|
|
576
|
+
}, n[8] || (n[8] = [
|
|
577
|
+
t("span", { style: { filter: "hue-rotate(340deg) saturate(0.5)" } }, "Save", -1)
|
|
578
|
+
])),
|
|
579
|
+
t("button", {
|
|
580
|
+
class: "_bubble-btn _h-11 _text-base _min-w-[5em] _weight-semibold",
|
|
581
|
+
onClick: De
|
|
582
|
+
}, n[9] || (n[9] = [
|
|
583
|
+
t("span", null, "Cancel", -1)
|
|
584
|
+
]))
|
|
585
|
+
], 512), [
|
|
586
|
+
[ae, W.value]
|
|
587
|
+
])
|
|
588
|
+
];
|
|
589
|
+
}),
|
|
590
|
+
default: p(() => {
|
|
591
|
+
var _, h;
|
|
592
|
+
return [
|
|
593
|
+
t("section", yt, [
|
|
594
|
+
t("section", wt, [
|
|
595
|
+
t("div", xt, [
|
|
596
|
+
t("h3", kt, "wallet" + g(L.value.length > 1 ? "s" : ""), 1)
|
|
597
|
+
]),
|
|
598
|
+
t("ul", At, [
|
|
599
|
+
(s(!0), l(w, null, P(L.value, (a) => {
|
|
600
|
+
var b, y, C, q, me, pe, fe, ve;
|
|
601
|
+
return s(), l("li", {
|
|
602
|
+
key: a.id,
|
|
603
|
+
class: k(["_flex _items-center _p-2 _pr-3.5 _justify-between _bg-metallic-linear _shadow-panel _rounded-lg", {
|
|
604
|
+
"_order-first": o(e).accountConnected && a.id.toLowerCase() === ((b = o(e).accountAddress) == null ? void 0 : b.toLowerCase())
|
|
605
|
+
}])
|
|
606
|
+
}, [
|
|
607
|
+
t("div", Ct, [
|
|
608
|
+
t("button", {
|
|
609
|
+
class: k(["_size-11 _flex _items-stretch _p-1.5 _group _rounded-md _overflow-hidden", [
|
|
610
|
+
{
|
|
611
|
+
"_shadow-panel": a.avatar,
|
|
612
|
+
"_shadow-panel-inset _bg-metallic-cone _cursor-default": a.avatar === ((y = o(e).user) == null ? void 0 : y.avatar)
|
|
613
|
+
}
|
|
614
|
+
]]),
|
|
615
|
+
disabled: !a.avatar
|
|
616
|
+
}, [
|
|
617
|
+
a.avatar ? (s(), l("div", {
|
|
618
|
+
key: 0,
|
|
619
|
+
onClick: () => Z("wallet", a.id),
|
|
620
|
+
style: { background: "none" },
|
|
621
|
+
type: "button",
|
|
622
|
+
title: "Set as profile avatar"
|
|
623
|
+
}, [
|
|
624
|
+
t("img", {
|
|
625
|
+
src: `${a.avatar}`,
|
|
626
|
+
class: k(["_size-full _rounded-full _duration-150", {
|
|
627
|
+
"group-hover:_scale-[1.8]": a.avatar !== ((C = o(e).user) == null ? void 0 : C.avatar)
|
|
628
|
+
}])
|
|
629
|
+
}, null, 10, Bt)
|
|
630
|
+
], 8, Ut)) : (s(), l("div", Nt, n[10] || (n[10] = [
|
|
631
|
+
t("img", {
|
|
632
|
+
src: we,
|
|
633
|
+
class: "_size-6 _rounded",
|
|
634
|
+
style: { "background-color": "#f1584d" }
|
|
635
|
+
}, null, -1)
|
|
636
|
+
])))
|
|
637
|
+
], 10, St),
|
|
638
|
+
t("div", Tt, [
|
|
639
|
+
t("div", {
|
|
640
|
+
onClick: () => {
|
|
641
|
+
var te;
|
|
642
|
+
return a.id.toLowerCase() == ((te = o(e).accountAddress) == null ? void 0 : te.toLowerCase()) && Fe();
|
|
643
|
+
},
|
|
644
|
+
class: k(["_flex-1 _min-w-0 _truncate _text-em-lg", {
|
|
645
|
+
"_text-stroke-xl _tracking-wide": L.value.length > 1 && o(e).accountConnected && a.id.toLowerCase() === ((q = o(e).accountAddress) == null ? void 0 : q.toLowerCase()),
|
|
646
|
+
"cursor-pointer": a.id.toLowerCase() == ((me = o(e).accountAddress) == null ? void 0 : me.toLowerCase())
|
|
647
|
+
}])
|
|
648
|
+
}, g(a.username == a.id ? ie(a.id) : a.username), 11, zt),
|
|
649
|
+
o(e).accountConnected && a.id.toLowerCase() === ((pe = o(e).accountAddress) == null ? void 0 : pe.toLowerCase()) ? (s(), l("div", Lt, [
|
|
650
|
+
n[11] || (n[11] = d(" connected ")),
|
|
651
|
+
(fe = a.metadata) != null && fe.origin ? (s(), l(w, { key: 0 }, [
|
|
652
|
+
d(" via " + g(a.metadata.origin), 1)
|
|
653
|
+
], 64)) : r("", !0)
|
|
654
|
+
])) : (ve = a.metadata) != null && ve.origin ? (s(), l("div", Dt, " via " + g(a.metadata.origin), 1)) : r("", !0)
|
|
655
|
+
])
|
|
656
|
+
]),
|
|
657
|
+
O.value > 1 ? (s(), l("button", {
|
|
658
|
+
key: 0,
|
|
659
|
+
class: "_bubble-btn _h-10 _text-sm _text-stroke-md _px-[1em]",
|
|
660
|
+
onClick: (te) => G("wallet", a.id, te),
|
|
661
|
+
styleff: "filter: hue-rotate(130deg) saturate(2)",
|
|
662
|
+
"aria-label": "Remove"
|
|
663
|
+
}, [
|
|
664
|
+
t("span", Ft, [
|
|
665
|
+
x.value.platform == "wallet" && x.value.id == a.id ? (s(), l(w, { key: 0 }, [
|
|
666
|
+
d(" Confirm? ")
|
|
667
|
+
], 64)) : (s(), l(w, { key: 1 }, [
|
|
668
|
+
d(" ⛌ ")
|
|
669
|
+
], 64))
|
|
670
|
+
])
|
|
671
|
+
], 8, Mt)) : r("", !0)
|
|
672
|
+
], 2);
|
|
673
|
+
}), 128)),
|
|
674
|
+
o(u) && o(e).accountConnected && o(e).currentWalletNeedsAuth ? (s(), S(Ae, {
|
|
675
|
+
key: 0,
|
|
676
|
+
"wallet-address": o(e).accountAddress,
|
|
677
|
+
"wallet-avatar": (_ = _e.value) == null ? void 0 : _.avatar,
|
|
678
|
+
"display-name": ((h = _e.value) == null ? void 0 : h.username) || ee.value,
|
|
679
|
+
disabled: o(e).isSimulationMode
|
|
680
|
+
}, {
|
|
681
|
+
default: p(() => [
|
|
682
|
+
d(" Authenticate " + g(ie(o(e).accountAddress)), 1)
|
|
683
|
+
]),
|
|
684
|
+
_: 1
|
|
685
|
+
}, 8, ["wallet-address", "wallet-avatar", "display-name", "disabled"])) : r("", !0),
|
|
686
|
+
o(u) && !o(e).accountConnected ? (s(), S(T, {
|
|
687
|
+
key: 1,
|
|
688
|
+
platform: "wallet",
|
|
689
|
+
points: L.value.length ? void 0 : "+10",
|
|
690
|
+
disabled: o(e).isSimulationMode,
|
|
691
|
+
class: "_w-full"
|
|
692
|
+
}, {
|
|
693
|
+
default: p(() => [
|
|
694
|
+
d(g(L.value.length > 0 ? "Link another Wallet" : "Link Wallet"), 1)
|
|
695
|
+
]),
|
|
696
|
+
_: 1
|
|
697
|
+
}, 8, ["points", "disabled"])) : r("", !0)
|
|
698
|
+
])
|
|
699
|
+
]),
|
|
700
|
+
t("section", Ht, [
|
|
701
|
+
Q.value.length ? (s(), l("div", Wt, n[12] || (n[12] = [
|
|
702
|
+
t("h3", { class: "_text-xl _weight-bold" }, "discord", -1)
|
|
703
|
+
]))) : r("", !0),
|
|
704
|
+
t("ul", Yt, [
|
|
705
|
+
(s(!0), l(w, null, P(Q.value, (a) => {
|
|
706
|
+
var b, y;
|
|
707
|
+
return s(), l("li", {
|
|
708
|
+
key: a.id,
|
|
709
|
+
class: "_flex _items-center _p-2 _pr-3.5 _justify-between _bg-metallic-linear _shadow-panel _rounded-lg"
|
|
710
|
+
}, [
|
|
711
|
+
t("div", jt, [
|
|
712
|
+
t("button", {
|
|
713
|
+
class: k(["_size-11 _flex _items-stretch _p-1.5 _group _overflow-hidden _rounded-md", [
|
|
714
|
+
{
|
|
715
|
+
"_shadow-panel": a.avatar,
|
|
716
|
+
"_shadow-panel-inset _bg-metallic-cone _cursor-default": a.avatar === ((b = o(e).user) == null ? void 0 : b.avatar)
|
|
717
|
+
}
|
|
718
|
+
]]),
|
|
719
|
+
disabled: !a.avatar
|
|
720
|
+
}, [
|
|
721
|
+
a.avatar ? (s(), l("div", {
|
|
722
|
+
key: 0,
|
|
723
|
+
onClick: () => Z("discord", a.id),
|
|
724
|
+
style: { background: "none" },
|
|
725
|
+
type: "button",
|
|
726
|
+
title: "Set as profile avatar"
|
|
727
|
+
}, [
|
|
728
|
+
t("img", {
|
|
729
|
+
src: `${a.avatar}`,
|
|
730
|
+
class: k(["_size-full _rounded-full _duration-150", {
|
|
731
|
+
"group-hover:_scale-[1.8]": a.avatar !== ((y = o(e).user) == null ? void 0 : y.avatar)
|
|
732
|
+
}])
|
|
733
|
+
}, null, 10, Kt)
|
|
734
|
+
], 8, It)) : (s(), l("div", Et, n[13] || (n[13] = [
|
|
735
|
+
t("img", {
|
|
736
|
+
src: Ie,
|
|
737
|
+
class: "_size-6 _rounded",
|
|
738
|
+
style: { "background-color": "#5865f2" }
|
|
739
|
+
}, null, -1)
|
|
740
|
+
])))
|
|
741
|
+
], 10, Qt),
|
|
742
|
+
t("div", Xt, [
|
|
743
|
+
t("div", Jt, g(a.username), 1)
|
|
744
|
+
])
|
|
745
|
+
]),
|
|
746
|
+
O.value > 1 ? (s(), l("button", {
|
|
747
|
+
key: 0,
|
|
748
|
+
class: "_bubble-btn _h-10 _text-sm _text-stroke-md _px-[1em]",
|
|
749
|
+
onClick: (C) => G("discord", a.id, C),
|
|
750
|
+
styleff: "filter: hue-rotate(130deg) saturate(2)",
|
|
751
|
+
"aria-label": "Remove"
|
|
752
|
+
}, [
|
|
753
|
+
t("span", Rt, [
|
|
754
|
+
x.value.platform == "discord" && x.value.id == a.id ? (s(), l(w, { key: 0 }, [
|
|
755
|
+
d(" Confirm? ")
|
|
756
|
+
], 64)) : (s(), l(w, { key: 1 }, [
|
|
757
|
+
d(" ⛌ ")
|
|
758
|
+
], 64))
|
|
759
|
+
])
|
|
760
|
+
], 8, Vt)) : r("", !0)
|
|
761
|
+
]);
|
|
762
|
+
}), 128)),
|
|
763
|
+
Ce.value ? r("", !0) : (s(), S(T, {
|
|
764
|
+
key: 0,
|
|
765
|
+
platform: "discord",
|
|
766
|
+
points: "+10",
|
|
767
|
+
disabled: o(e).isSimulationMode,
|
|
768
|
+
class: "_w-full"
|
|
769
|
+
}, {
|
|
770
|
+
default: p(() => [
|
|
771
|
+
d(g(Q.value.length > 0 ? "Link Another Discord" : "Link Discord"), 1)
|
|
772
|
+
]),
|
|
773
|
+
_: 1
|
|
774
|
+
}, 8, ["disabled"]))
|
|
775
|
+
])
|
|
776
|
+
]),
|
|
777
|
+
t("section", Ot, [
|
|
778
|
+
V.value.length ? (s(), l("div", Gt, n[14] || (n[14] = [
|
|
779
|
+
t("h3", { class: "_text-xl _weight-bold" }, "twitter", -1)
|
|
780
|
+
]))) : r("", !0),
|
|
781
|
+
t("ul", Zt, [
|
|
782
|
+
(s(!0), l(w, null, P(V.value, (a) => {
|
|
783
|
+
var b, y, C;
|
|
784
|
+
return s(), l("li", {
|
|
785
|
+
key: a.id,
|
|
786
|
+
class: "_flex _items-center _p-2 _pr-3.5 _justify-between _bg-metallic-linear _shadow-panel _rounded-lg"
|
|
787
|
+
}, [
|
|
788
|
+
t("div", qt, [
|
|
789
|
+
t("button", {
|
|
790
|
+
class: k(["_size-11 _flex _items-stretch _p-1.5 _group _overflow-hidden _rounded-md", [
|
|
791
|
+
{
|
|
792
|
+
"_shadow-panel": a.avatar,
|
|
793
|
+
"_shadow-panel-inset _bg-metallic-cone _cursor-default": a.avatar === ((b = o(e).user) == null ? void 0 : b.avatar)
|
|
794
|
+
}
|
|
795
|
+
]]),
|
|
796
|
+
disabled: !a.avatar
|
|
797
|
+
}, [
|
|
798
|
+
a.avatar ? (s(), l("div", {
|
|
799
|
+
key: 0,
|
|
800
|
+
onClick: () => Z("twitter", a.id),
|
|
801
|
+
style: { background: "none" },
|
|
802
|
+
type: "button",
|
|
803
|
+
title: "Set as profile avatar"
|
|
804
|
+
}, [
|
|
805
|
+
t("img", {
|
|
806
|
+
src: `${a.avatar}`,
|
|
807
|
+
class: k(["_size-full _rounded-full _duration-150", {
|
|
808
|
+
"group-hover:_scale-[1.8]": a.avatar !== ((y = o(e).user) == null ? void 0 : y.avatar)
|
|
809
|
+
}])
|
|
810
|
+
}, null, 10, ea)
|
|
811
|
+
], 8, $t)) : (s(), l("div", ta, n[15] || (n[15] = [
|
|
812
|
+
t("img", {
|
|
813
|
+
src: Ke,
|
|
814
|
+
class: "_size-6 _rounded",
|
|
815
|
+
style: { "background-color": "#000" }
|
|
816
|
+
}, null, -1)
|
|
817
|
+
])))
|
|
818
|
+
], 10, Pt),
|
|
819
|
+
t("div", aa, [
|
|
820
|
+
t("div", sa, g(a.username), 1),
|
|
821
|
+
(C = a.metadata) != null && C.verified ? (s(), l("div", na, " verified ✓ ")) : r("", !0)
|
|
822
|
+
])
|
|
823
|
+
]),
|
|
824
|
+
O.value > 1 ? (s(), l("button", {
|
|
825
|
+
key: 0,
|
|
826
|
+
class: "_bubble-btn _h-10 _text-sm _text-stroke-md _px-[1em]",
|
|
827
|
+
onClick: (q) => G("twitter", a.id, q),
|
|
828
|
+
styleff: "filter: hue-rotate(130deg) saturate(2)",
|
|
829
|
+
"aria-label": "Remove"
|
|
830
|
+
}, [
|
|
831
|
+
t("span", oa, [
|
|
832
|
+
x.value.platform == "twitter" && x.value.id == a.id ? (s(), l(w, { key: 0 }, [
|
|
833
|
+
d(" Confirm? ")
|
|
834
|
+
], 64)) : (s(), l(w, { key: 1 }, [
|
|
835
|
+
d(" ⛌ ")
|
|
836
|
+
], 64))
|
|
837
|
+
])
|
|
838
|
+
], 8, la)) : r("", !0)
|
|
839
|
+
]);
|
|
840
|
+
}), 128)),
|
|
841
|
+
Ue.value ? r("", !0) : (s(), S(T, {
|
|
842
|
+
key: 0,
|
|
843
|
+
platform: "twitter",
|
|
844
|
+
points: "+10",
|
|
845
|
+
disabled: o(e).isSimulationMode,
|
|
846
|
+
class: "_w-full"
|
|
847
|
+
}, {
|
|
848
|
+
default: p(() => [
|
|
849
|
+
d(g(V.value.length > 0 ? "Link Another TwitterX" : "Link TwitterX"), 1)
|
|
850
|
+
]),
|
|
851
|
+
_: 1
|
|
852
|
+
}, 8, ["disabled"]))
|
|
853
|
+
])
|
|
854
|
+
]),
|
|
855
|
+
t("section", ia, [
|
|
856
|
+
R.value.length ? (s(), l("div", ra, n[16] || (n[16] = [
|
|
857
|
+
t("h3", { class: "_text-xl _weight-bold" }, "telegram", -1)
|
|
858
|
+
]))) : r("", !0),
|
|
859
|
+
t("ul", da, [
|
|
860
|
+
(s(!0), l(w, null, P(R.value, (a) => {
|
|
861
|
+
var b, y;
|
|
862
|
+
return s(), l("li", {
|
|
863
|
+
key: a.id,
|
|
864
|
+
class: "_flex _items-center _p-2 _pr-3.5 _justify-between _bg-metallic-linear _shadow-panel _rounded-lg"
|
|
865
|
+
}, [
|
|
866
|
+
t("div", ua, [
|
|
867
|
+
t("button", {
|
|
868
|
+
class: k(["_size-11 _flex _items-stretch _p-1.5 _group _overflow-hidden _rounded-md", [
|
|
869
|
+
{
|
|
870
|
+
"_shadow-panel": a.avatar,
|
|
871
|
+
"_shadow-panel-inset _bg-metallic-cone _cursor-default": a.avatar === ((b = o(e).user) == null ? void 0 : b.avatar)
|
|
872
|
+
}
|
|
873
|
+
]]),
|
|
874
|
+
disabled: !a.avatar
|
|
875
|
+
}, [
|
|
876
|
+
a.avatar ? (s(), l("div", {
|
|
877
|
+
key: 0,
|
|
878
|
+
onClick: () => Z("telegram", a.id),
|
|
879
|
+
style: { background: "none" },
|
|
880
|
+
type: "button",
|
|
881
|
+
title: "Set as profile avatar"
|
|
882
|
+
}, [
|
|
883
|
+
t("img", {
|
|
884
|
+
src: `${a.avatar}`,
|
|
885
|
+
class: k(["_size-full _rounded-full _duration-150", {
|
|
886
|
+
"group-hover:_scale-[1.8]": a.avatar !== ((y = o(e).user) == null ? void 0 : y.avatar)
|
|
887
|
+
}])
|
|
888
|
+
}, null, 10, ma)
|
|
889
|
+
], 8, _a)) : (s(), l("div", pa, n[17] || (n[17] = [
|
|
890
|
+
t("img", {
|
|
891
|
+
src: Ee,
|
|
892
|
+
class: "_size-6 _rounded",
|
|
893
|
+
style: { "background-color": "#0088cc" }
|
|
894
|
+
}, null, -1)
|
|
895
|
+
])))
|
|
896
|
+
], 10, ca),
|
|
897
|
+
t("div", fa, [
|
|
898
|
+
t("div", va, g(a.username), 1)
|
|
899
|
+
])
|
|
900
|
+
]),
|
|
901
|
+
O.value > 1 ? (s(), l("button", {
|
|
902
|
+
key: 0,
|
|
903
|
+
class: "_bubble-btn _h-10 _text-sm _text-stroke-md _px-[1em]",
|
|
904
|
+
onClick: (C) => G("telegram", a.id, C),
|
|
905
|
+
styleff: "filter: hue-rotate(130deg) saturate(2)",
|
|
906
|
+
"aria-label": "Remove"
|
|
907
|
+
}, [
|
|
908
|
+
t("span", ha, [
|
|
909
|
+
x.value.platform == "telegram" && x.value.id == a.id ? (s(), l(w, { key: 0 }, [
|
|
910
|
+
d(" Confirm? ")
|
|
911
|
+
], 64)) : (s(), l(w, { key: 1 }, [
|
|
912
|
+
d(" ⛌ ")
|
|
913
|
+
], 64))
|
|
914
|
+
])
|
|
915
|
+
], 8, ga)) : r("", !0)
|
|
916
|
+
]);
|
|
917
|
+
}), 128)),
|
|
918
|
+
Be.value ? r("", !0) : (s(), S(T, {
|
|
919
|
+
key: 0,
|
|
920
|
+
platform: "telegram",
|
|
921
|
+
points: "+10",
|
|
922
|
+
disabled: o(e).isSimulationMode,
|
|
923
|
+
class: "_w-full"
|
|
924
|
+
}, {
|
|
925
|
+
default: p(() => [
|
|
926
|
+
d(g(R.value.length > 0 ? "Link Another Telegram" : "Link Telegram"), 1)
|
|
927
|
+
]),
|
|
928
|
+
_: 1
|
|
929
|
+
}, 8, ["disabled"]))
|
|
930
|
+
])
|
|
931
|
+
]),
|
|
932
|
+
t("section", {
|
|
933
|
+
class: k(["_bg-metallic-linear _shadow-panel _p-4 _pb-5 _space-y-2 _rounded-lg", { "_order-first": o(e).isFarcaster }])
|
|
934
|
+
}, [
|
|
935
|
+
J.value.length ? (s(), l("div", ba, n[18] || (n[18] = [
|
|
936
|
+
t("h3", { class: "_text-xl _weight-bold" }, "farcaster", -1)
|
|
937
|
+
]))) : r("", !0),
|
|
938
|
+
t("ul", ya, [
|
|
939
|
+
(s(!0), l(w, null, P(J.value, (a) => {
|
|
940
|
+
var b, y;
|
|
941
|
+
return s(), l("li", {
|
|
942
|
+
key: a.id
|
|
943
|
+
}, [
|
|
944
|
+
t("div", wa, [
|
|
945
|
+
t("div", xa, [
|
|
946
|
+
t("button", {
|
|
947
|
+
class: k(["_size-11 _flex _items-stretch _p-1.5 _group _overflow-hidden _rounded-md", [
|
|
948
|
+
{
|
|
949
|
+
"_shadow-panel": a.avatar,
|
|
950
|
+
"_shadow-panel-inset _bg-metallic-cone _cursor-default": a.avatar === ((b = o(e).user) == null ? void 0 : b.avatar)
|
|
951
|
+
}
|
|
952
|
+
]]),
|
|
953
|
+
disabled: !a.avatar
|
|
954
|
+
}, [
|
|
955
|
+
a.avatar ? (s(), l("div", {
|
|
956
|
+
key: 0,
|
|
957
|
+
onClick: () => Z("farcaster", a.id),
|
|
958
|
+
style: { background: "none" },
|
|
959
|
+
type: "button",
|
|
960
|
+
title: "Set as profile avatar"
|
|
961
|
+
}, [
|
|
962
|
+
t("img", {
|
|
963
|
+
src: `${a.avatar}`,
|
|
964
|
+
class: k(["_size-full _rounded-full _duration-150", {
|
|
965
|
+
"group-hover:_scale-[1.8]": a.avatar !== ((y = o(e).user) == null ? void 0 : y.avatar)
|
|
966
|
+
}])
|
|
967
|
+
}, null, 10, Ca)
|
|
968
|
+
], 8, Aa)) : (s(), l("div", Sa, n[19] || (n[19] = [
|
|
969
|
+
t("img", {
|
|
970
|
+
src: Xe,
|
|
971
|
+
class: "_size-6 _rounded",
|
|
972
|
+
style: { "background-color": "#000" }
|
|
973
|
+
}, null, -1)
|
|
974
|
+
])))
|
|
975
|
+
], 10, ka),
|
|
976
|
+
t("div", Ua, [
|
|
977
|
+
t("div", Ba, g(a.username), 1)
|
|
978
|
+
])
|
|
979
|
+
]),
|
|
980
|
+
O.value > 1 ? (s(), l("button", {
|
|
981
|
+
key: 0,
|
|
982
|
+
class: "_bubble-btn _h-10 _text-sm _text-stroke-md _px-[1em]",
|
|
983
|
+
onClick: (C) => G("farcaster", a.id, C),
|
|
984
|
+
styleff: "filter: hue-rotate(130deg) saturate(2)",
|
|
985
|
+
"aria-label": "Remove"
|
|
986
|
+
}, [
|
|
987
|
+
t("span", Ta, [
|
|
988
|
+
x.value.platform == "farcaster" && x.value.id == a.id ? (s(), l(w, { key: 0 }, [
|
|
989
|
+
d(" Confirm? ")
|
|
990
|
+
], 64)) : (s(), l(w, { key: 1 }, [
|
|
991
|
+
d(" ⛌ ")
|
|
992
|
+
], 64))
|
|
993
|
+
])
|
|
994
|
+
], 8, Na)) : r("", !0)
|
|
995
|
+
])
|
|
996
|
+
]);
|
|
997
|
+
}), 128)),
|
|
998
|
+
Se.value ? r("", !0) : (s(), S(T, {
|
|
999
|
+
key: 0,
|
|
1000
|
+
platform: "farcaster",
|
|
1001
|
+
points: "+10",
|
|
1002
|
+
disabled: o(e).isSimulationMode,
|
|
1003
|
+
class: "_w-full"
|
|
1004
|
+
}, {
|
|
1005
|
+
default: p(() => [
|
|
1006
|
+
d(g(J.value.length > 0 ? "Link Another Farcaster" : "Link Farcaster"), 1)
|
|
1007
|
+
]),
|
|
1008
|
+
_: 1
|
|
1009
|
+
}, 8, ["disabled"])),
|
|
1010
|
+
B.value && !B.value.client.added && H.value ? (s(), S(T, {
|
|
1011
|
+
key: 1,
|
|
1012
|
+
platform: "farcaster",
|
|
1013
|
+
points: "+10",
|
|
1014
|
+
disabled: o(e).isSimulationMode,
|
|
1015
|
+
class: "_w-full",
|
|
1016
|
+
onClick: z
|
|
1017
|
+
}, {
|
|
1018
|
+
default: p(() => n[20] || (n[20] = [
|
|
1019
|
+
d(" Add this Mini App ")
|
|
1020
|
+
])),
|
|
1021
|
+
_: 1
|
|
1022
|
+
}, 8, ["disabled"])) : r("", !0)
|
|
1023
|
+
])
|
|
1024
|
+
], 2)
|
|
1025
|
+
]),
|
|
1026
|
+
t("footer", { class: "_bg-metallic-cone _p-4 _rounded-lg _shadow-panel _flex _items-center _justify-center" }, [
|
|
1027
|
+
t("button", {
|
|
1028
|
+
onClick: Me,
|
|
1029
|
+
class: "_bubble-btn-full _h-16 _text-lg _bold"
|
|
1030
|
+
}, n[21] || (n[21] = [
|
|
1031
|
+
t("span", null, "logout 💤", -1)
|
|
1032
|
+
]))
|
|
1033
|
+
])
|
|
1034
|
+
];
|
|
1035
|
+
}),
|
|
1036
|
+
_: 1
|
|
1037
|
+
}));
|
|
1038
|
+
}
|
|
1039
|
+
}, La = ["data"], Da = { class: "_w-full _max-w-[22em] _mx-auto _px-1.5 sm:_px-8 _flex _flex-col _gap-4 _items-center" }, Ma = { class: "_flex _flex-col _w-full _leading-none" }, Fa = {
|
|
1040
|
+
__name: "ConnectAccount",
|
|
1041
|
+
setup(F) {
|
|
1042
|
+
const f = X("TrifleHub/store"), e = m(() => f.getPlatformData("wallet")), u = m(() => f.accountConnected), A = m(() => f.currentWalletNeedsAuth), B = m(() => f.accountAddress), H = m(() => B.value ? e.value.find((z) => {
|
|
1043
|
+
var c, N;
|
|
1044
|
+
return ((c = z.id) == null ? void 0 : c.toLowerCase()) === ((N = B.value) == null ? void 0 : N.toLowerCase());
|
|
1045
|
+
}) : null);
|
|
1046
|
+
return (z, c) => (s(), S(ke, null, {
|
|
1047
|
+
avatar: p(() => [
|
|
1048
|
+
t("object", {
|
|
1049
|
+
data: o(xe),
|
|
1050
|
+
alt: "smiley face with dashed outline",
|
|
1051
|
+
class: "_w-full _block _transform _origin-center _scale-[1.35] sm:_scale-[1.45]"
|
|
1052
|
+
}, null, 8, La)
|
|
1053
|
+
]),
|
|
1054
|
+
title: p(() => c[0] || (c[0] = [
|
|
1055
|
+
t("div", { class: "_text-stroke-2xl" }, g("who r u??"), -1)
|
|
1056
|
+
])),
|
|
1057
|
+
description: p(() => c[1] || (c[1] = [
|
|
1058
|
+
t("p", { class: "_-mt-2" }, [
|
|
1059
|
+
d(" Link identities → "),
|
|
1060
|
+
t("span", {
|
|
1061
|
+
class: "_ffborder-b _border-current",
|
|
1062
|
+
style: { "border-style": "dashed" }
|
|
1063
|
+
}, " earn BALL$"),
|
|
1064
|
+
d(" 🪩 ")
|
|
1065
|
+
], -1)
|
|
1066
|
+
])),
|
|
1067
|
+
default: p(() => {
|
|
1068
|
+
var N, j;
|
|
1069
|
+
return [
|
|
1070
|
+
t("section", Da, [
|
|
1071
|
+
t("nav", Ma, [
|
|
1072
|
+
u.value && A.value ? (s(), S(Ae, {
|
|
1073
|
+
key: 0,
|
|
1074
|
+
"wallet-address": B.value,
|
|
1075
|
+
"wallet-avatar": (N = H.value) == null ? void 0 : N.avatar,
|
|
1076
|
+
"display-name": ((j = H.value) == null ? void 0 : j.username) || B.value,
|
|
1077
|
+
class: "_mb-1"
|
|
1078
|
+
}, null, 8, ["wallet-address", "wallet-avatar", "display-name"])) : (s(), S(T, {
|
|
1079
|
+
key: 1,
|
|
1080
|
+
platform: "wallet",
|
|
1081
|
+
points: "+10"
|
|
1082
|
+
}, {
|
|
1083
|
+
default: p(() => c[2] || (c[2] = [
|
|
1084
|
+
d(" Wallet Login ")
|
|
1085
|
+
])),
|
|
1086
|
+
_: 1
|
|
1087
|
+
})),
|
|
1088
|
+
se(T, {
|
|
1089
|
+
platform: "discord",
|
|
1090
|
+
points: "+10"
|
|
1091
|
+
}, {
|
|
1092
|
+
default: p(() => c[3] || (c[3] = [
|
|
1093
|
+
d(" Discord Login ")
|
|
1094
|
+
])),
|
|
1095
|
+
_: 1
|
|
1096
|
+
}),
|
|
1097
|
+
se(T, {
|
|
1098
|
+
platform: "twitter",
|
|
1099
|
+
points: "+10"
|
|
1100
|
+
}, {
|
|
1101
|
+
default: p(() => c[4] || (c[4] = [
|
|
1102
|
+
d(" TwitterX Login ")
|
|
1103
|
+
])),
|
|
1104
|
+
_: 1
|
|
1105
|
+
}),
|
|
1106
|
+
se(T, {
|
|
1107
|
+
platform: "telegram",
|
|
1108
|
+
points: "+10"
|
|
1109
|
+
}, {
|
|
1110
|
+
default: p(() => c[5] || (c[5] = [
|
|
1111
|
+
d(" Telegram Login ")
|
|
1112
|
+
])),
|
|
1113
|
+
_: 1
|
|
1114
|
+
}),
|
|
1115
|
+
se(T, {
|
|
1116
|
+
platform: "farcaster",
|
|
1117
|
+
points: "+10",
|
|
1118
|
+
class: k({ "_order-first": o(f).isFarcaster })
|
|
1119
|
+
}, {
|
|
1120
|
+
default: p(() => c[6] || (c[6] = [
|
|
1121
|
+
d(" Farcaster Login ")
|
|
1122
|
+
])),
|
|
1123
|
+
_: 1
|
|
1124
|
+
}, 8, ["class"])
|
|
1125
|
+
])
|
|
1126
|
+
])
|
|
1127
|
+
];
|
|
1128
|
+
}),
|
|
1129
|
+
_: 1
|
|
1130
|
+
}));
|
|
1131
|
+
}
|
|
1132
|
+
}, Ka = {
|
|
1133
|
+
__name: "AccountIndex",
|
|
1134
|
+
setup(F) {
|
|
1135
|
+
const f = X("TrifleHub/store"), { isAuthenticated: e } = be(f);
|
|
1136
|
+
return (u, A) => o(e) ? (s(), S(za, { key: 0 })) : (s(), S(Fa, { key: 1 }));
|
|
1137
|
+
}
|
|
1138
|
+
};
|
|
1139
|
+
export {
|
|
1140
|
+
Ka as default
|
|
1141
|
+
};
|