@trifle/trifle-hub 1.1.0 → 1.1.1
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-Dn3bQlHS.js → AccountIndex-D60Jm77t.js} +2 -2
- package/dist/Earn-Du-QbIyl.js +297 -0
- package/dist/{ExchangeController-DKSzd5W5.js → ExchangeController-Co2XHJuv.js} +1 -1
- package/dist/{Games-D5-koQ_A.js → Games-C5XkMCaw.js} +51 -50
- package/dist/{HelpersUtil-BPK4Kvyf.js → HelpersUtil-D9b9TbXb.js} +2 -2
- package/dist/{Leaderboard-X08Wq92h.js → Leaderboard-BUdRf7Qs.js} +1 -1
- package/dist/{Profile-DcXgQ25_.js → Profile-yM_ILkFM.js} +2 -2
- package/dist/{QuestCard-ABFoFHer.js → QuestCard-BAD8PgfA.js} +1 -1
- package/dist/{ReownAuthentication-CttWwnWi.js → ReownAuthentication-wpUvwiIU.js} +1 -1
- package/dist/{SocialsButtons-DtwEuVa-.js → SocialsButtons-WqOFzwOG.js} +1 -1
- package/dist/{SwapBalls-jt0cB6dz.js → SwapBalls-Cs5xWzGZ.js} +36 -41
- package/dist/{SwapController-BbHqYHlv.js → SwapController-v4pppXIt.js} +1 -1
- package/dist/{TrifleGuide-z_HgLvDF.js → TrifleGuide-B7DyPFtl.js} +1 -1
- package/dist/{data-capture-BAONGzwU.js → data-capture-hSUmouVX.js} +4 -4
- package/dist/{email-BpcL1Cj2.js → email-CIK5zeKM.js} +8 -8
- package/dist/{embedded-wallet-BjpZdaIk.js → embedded-wallet-u6gqaxUu.js} +12 -12
- package/dist/{features-BZ1A8Jw6.js → features-B8WA4eje.js} +1 -1
- package/dist/{if-defined-DmV0aIGE.js → if-defined-BnV-ervM.js} +1 -1
- package/dist/{index-BOY5M7KG.js → index-4yRoGOQO.js} +3 -3
- package/dist/{index-BfeL-deq.js → index-9LMXvg6z.js} +2 -2
- package/dist/{index-65kw7NXq.js → index-9P_OBje2.js} +31 -31
- package/dist/{index-BwERftbf.js → index-B-to9VUX.js} +2 -2
- package/dist/{index-hdzaDr7r.js → index-B20n3ETF.js} +3 -3
- package/dist/{index-CwMgCQF9.js → index-B2kQv26f.js} +1 -1
- package/dist/{index-Bv-YtpxG.js → index-BDXO44FI.js} +1 -1
- package/dist/{index-DTz2CwC1.js → index-BEw-Pamy.js} +3 -3
- package/dist/{index-c7T8N6lx.js → index-BFnrZgM2.js} +3 -3
- package/dist/{index-DacQRuok.js → index-BHuyhGC4.js} +3 -3
- package/dist/{index-CaMtpfj6.js → index-BLewXRlj.js} +2 -2
- package/dist/{index-n-vdz18K.js → index-BO7yZWBD.js} +3 -3
- package/dist/{index-C6jVAUHA.js → index-BVAmuOm6.js} +13 -13
- package/dist/{index--wmNzxU2.js → index-BYUIgFYz.js} +4 -4
- package/dist/{index-BqmTrFwO.js → index-Bb87kDJL.js} +2 -2
- package/dist/{index-B_6bbCRZ.js → index-BjgdEoUq.js} +12 -12
- package/dist/{index-PJbwRCkP.js → index-BtuYCqDV.js} +4 -4
- package/dist/{index-Cd-9CkD7.js → index-BzHS6p-l.js} +2 -2
- package/dist/{index-DU-zD9-x.js → index-BzRlqe1H.js} +2 -2
- package/dist/{index-B4sI2uyx.js → index-C-O4WPQJ.js} +2 -2
- package/dist/{index-zUAmz5W0.js → index-CVL_07UF.js} +3 -3
- package/dist/{index-DpgkQYtx.js → index-Cdq2oZWs.js} +3 -3
- package/dist/{index-Cn96EYGe.js → index-CeBr-U9c.js} +4 -4
- package/dist/{index-D5foIVXV.js → index-CphuOhcf.js} +2 -2
- package/dist/{index-1GzFses_.js → index-CqP96ufb.js} +2 -2
- package/dist/{index-CPLK5vz3.js → index-D2kFWzbc.js} +3 -3
- package/dist/{index-C9HDtjum.js → index-DBiZORSw.js} +4 -4
- package/dist/{index-COS_unoF.js → index-DHdHH03r.js} +4 -4
- package/dist/{index-DikDXdTK.js → index-DM1fdCr_.js} +3 -3
- package/dist/{index-Bsz4RhGO.js → index-D_0pIlko.js} +3 -3
- package/dist/{index-DY1X4FAj.js → index-Dadi5DZf.js} +3 -3
- package/dist/{index-DZ4JGqbI.js → index-DyKoAen5.js} +1 -1
- package/dist/{index-Snl54idt.js → index-Dz6b_m4q.js} +4 -4
- package/dist/{index-DLyASpCu.js → index-O1OqNkfY.js} +7 -7
- package/dist/{index-5ech7jLW.js → index-qeopR1ky.js} +7 -7
- package/dist/{index-D9Wrhsie.js → index-u_gtG9Tx.js} +4 -4
- package/dist/index.es.js +2 -2
- package/dist/{onramp-BUV27771.js → onramp-ChLiUFfL.js} +14 -14
- package/dist/{pay-with-exchange-BONwE5c2.js → pay-with-exchange-Blj6-UQk.js} +15 -15
- package/dist/{receive-DjIsYMrY.js → receive-BRvyfS7O.js} +5 -5
- package/dist/{ref-BnJwwV1J.js → ref-BBOIalX3.js} +2 -2
- package/dist/{send-DCCN5WWk.js → send-DvOYRAqW.js} +15 -15
- package/dist/{socials-sQlxpcN4.js → socials-COpGew42.js} +10 -10
- package/dist/{swaps-BR-jpNEV.js → swaps-CsqJhRVb.js} +11 -11
- package/dist/{transactions-BI02pyWr.js → transactions-BN1AxMlP.js} +3 -3
- package/dist/trifle-hub.css +58 -0
- package/dist/{w3m-modal-Dblq6D4h.js → w3m-modal-DkzTBu_K.js} +12 -12
- package/package.json +1 -1
- package/dist/Earn-BVtdNUxL.js +0 -255
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { q as O, u as b, aj as c, ak as C, O as T, x as u, T as $, C as I, Y as E, R as D, b as B, E as z, D as V, W as K, z as M, Z as Y, S as W } from "./index-
|
|
2
|
-
import { r as l, c as g, n as p } from "./index-
|
|
3
|
-
import { o as m } from "./if-defined-
|
|
4
|
-
import "./index
|
|
5
|
-
import { O as j } from "./index-
|
|
6
|
-
import "./index-
|
|
7
|
-
import "./index-
|
|
8
|
-
import "./index-
|
|
9
|
-
import "./index-
|
|
10
|
-
import "./index-
|
|
11
|
-
import "./index-
|
|
12
|
-
import "./index-
|
|
13
|
-
import "./index-
|
|
14
|
-
import "./index-
|
|
1
|
+
import { q as O, u as b, aj as c, ak as C, O as T, x as u, T as $, C as I, Y as E, R as D, b as B, E as z, D as V, W as K, z as M, Z as Y, S as W } from "./index-BjgdEoUq.js";
|
|
2
|
+
import { r as l, c as g, n as p } from "./index-DyKoAen5.js";
|
|
3
|
+
import { o as m } from "./if-defined-BnV-ervM.js";
|
|
4
|
+
import "./index-BYUIgFYz.js";
|
|
5
|
+
import { O as j } from "./index-BtuYCqDV.js";
|
|
6
|
+
import "./index-Cdq2oZWs.js";
|
|
7
|
+
import "./index-C-O4WPQJ.js";
|
|
8
|
+
import "./index-CqP96ufb.js";
|
|
9
|
+
import "./index-BFnrZgM2.js";
|
|
10
|
+
import "./index-B20n3ETF.js";
|
|
11
|
+
import "./index-BEw-Pamy.js";
|
|
12
|
+
import "./index-BzHS6p-l.js";
|
|
13
|
+
import "./index-Bb87kDJL.js";
|
|
14
|
+
import "./index-DHdHH03r.js";
|
|
15
15
|
const q = O`
|
|
16
16
|
:host > wui-grid {
|
|
17
17
|
max-height: 360px;
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { q as A, r as D, t as z, u as $, x as u, C as y, R as f, Y as E, S as b, z as S, b as _ } from "./index-
|
|
2
|
-
import { n as h, c as v, r as d } from "./index-
|
|
3
|
-
import { o as P } from "./if-defined-
|
|
4
|
-
import "./index-
|
|
5
|
-
import "./index-
|
|
6
|
-
import "./index
|
|
7
|
-
import "./index-
|
|
8
|
-
import "./index-
|
|
9
|
-
import "./index-
|
|
10
|
-
import "./index-
|
|
11
|
-
import { E as r } from "./ExchangeController-
|
|
12
|
-
import "./index-
|
|
13
|
-
import "./index-
|
|
14
|
-
import "./index-
|
|
15
|
-
import "./index-
|
|
1
|
+
import { q as A, r as D, t as z, u as $, x as u, C as y, R as f, Y as E, S as b, z as S, b as _ } from "./index-BjgdEoUq.js";
|
|
2
|
+
import { n as h, c as v, r as d } from "./index-DyKoAen5.js";
|
|
3
|
+
import { o as P } from "./if-defined-BnV-ervM.js";
|
|
4
|
+
import "./index-Cdq2oZWs.js";
|
|
5
|
+
import "./index-B-to9VUX.js";
|
|
6
|
+
import "./index-BYUIgFYz.js";
|
|
7
|
+
import "./index-BLewXRlj.js";
|
|
8
|
+
import "./index-B20n3ETF.js";
|
|
9
|
+
import "./index-DM1fdCr_.js";
|
|
10
|
+
import "./index-BzHS6p-l.js";
|
|
11
|
+
import { E as r } from "./ExchangeController-Co2XHJuv.js";
|
|
12
|
+
import "./index-BEw-Pamy.js";
|
|
13
|
+
import "./index-DHdHH03r.js";
|
|
14
|
+
import "./index-Dadi5DZf.js";
|
|
15
|
+
import "./index-CphuOhcf.js";
|
|
16
16
|
const T = A`
|
|
17
17
|
button {
|
|
18
18
|
border: none;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { q as y, r as v, t as N, u as k, x as u, C as c, S as w, Y as h, Z as f, D as R, W as A, R as S, b as I } from "./index-
|
|
2
|
-
import { n as $, c as C, U as T, r as b } from "./index-
|
|
3
|
-
import { o as O } from "./if-defined-
|
|
4
|
-
import "./index-
|
|
5
|
-
import "./index-
|
|
1
|
+
import { q as y, r as v, t as N, u as k, x as u, C as c, S as w, Y as h, Z as f, D as R, W as A, R as S, b as I } from "./index-BjgdEoUq.js";
|
|
2
|
+
import { n as $, c as C, U as T, r as b } from "./index-DyKoAen5.js";
|
|
3
|
+
import { o as O } from "./if-defined-BnV-ervM.js";
|
|
4
|
+
import "./index-Cdq2oZWs.js";
|
|
5
|
+
import "./index-CVL_07UF.js";
|
|
6
6
|
const _ = y`
|
|
7
7
|
button {
|
|
8
8
|
width: 100%;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { k as l } from "./index-
|
|
2
|
-
import { i as $, t as a, e as f } from "./index-
|
|
1
|
+
import { k as l } from "./index-BjgdEoUq.js";
|
|
2
|
+
import { i as $, t as a, e as f } from "./index-DyKoAen5.js";
|
|
3
3
|
/**
|
|
4
4
|
* @license
|
|
5
5
|
* Copyright 2020 Google LLC
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { q as x, u as b, b as D, C as w, z as j, ah as l, x as c, R as h, N as z, T as L, S as y, e as J, H as G, Y as M, r as q, t as K, al as Q, am as X, A as Z, E as ee } from "./index-
|
|
2
|
-
import { n as d, r as u, c as v, U as E } from "./index-
|
|
3
|
-
import "./index-
|
|
4
|
-
import "./index-
|
|
5
|
-
import "./index-
|
|
6
|
-
import { e as F, n as H } from "./ref-
|
|
7
|
-
import "./index-
|
|
8
|
-
import "./index-
|
|
9
|
-
import "./index-
|
|
10
|
-
import { S as Y } from "./SwapController-
|
|
11
|
-
import "./index-
|
|
12
|
-
import "./index-
|
|
13
|
-
import "./index-
|
|
14
|
-
import "./index-
|
|
15
|
-
import { o as te } from "./if-defined-
|
|
1
|
+
import { q as x, u as b, b as D, C as w, z as j, ah as l, x as c, R as h, N as z, T as L, S as y, e as J, H as G, Y as M, r as q, t as K, al as Q, am as X, A as Z, E as ee } from "./index-BjgdEoUq.js";
|
|
2
|
+
import { n as d, r as u, c as v, U as E } from "./index-DyKoAen5.js";
|
|
3
|
+
import "./index-B20n3ETF.js";
|
|
4
|
+
import "./index-BEw-Pamy.js";
|
|
5
|
+
import "./index-CphuOhcf.js";
|
|
6
|
+
import { e as F, n as H } from "./ref-BBOIalX3.js";
|
|
7
|
+
import "./index-DM1fdCr_.js";
|
|
8
|
+
import "./index-BzHS6p-l.js";
|
|
9
|
+
import "./index-Dz6b_m4q.js";
|
|
10
|
+
import { S as Y } from "./SwapController-v4pppXIt.js";
|
|
11
|
+
import "./index-DHdHH03r.js";
|
|
12
|
+
import "./index-Dadi5DZf.js";
|
|
13
|
+
import "./index-Cdq2oZWs.js";
|
|
14
|
+
import "./index-D2kFWzbc.js";
|
|
15
|
+
import { o as te } from "./if-defined-BnV-ervM.js";
|
|
16
16
|
const ie = x`
|
|
17
17
|
:host {
|
|
18
18
|
width: 100%;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { q as O, u as I, I as S, O as h, P as W, R as f, e as T, x as c, b as C, a4 as F, G as D, C as d, z as P, U as N, E as u, a0 as A, S as v, a5 as j, T as R, Z as y } from "./index-
|
|
2
|
-
import { n as M, r as l, c as _ } from "./index-
|
|
3
|
-
import { o as $ } from "./if-defined-
|
|
4
|
-
import { O as U } from "./index-
|
|
5
|
-
import { e as q } from "./index-
|
|
6
|
-
import "./index-
|
|
7
|
-
import "./index-
|
|
8
|
-
import "./index-
|
|
9
|
-
import "./index-
|
|
10
|
-
import "./index-
|
|
1
|
+
import { q as O, u as I, I as S, O as h, P as W, R as f, e as T, x as c, b as C, a4 as F, G as D, C as d, z as P, U as N, E as u, a0 as A, S as v, a5 as j, T as R, Z as y } from "./index-BjgdEoUq.js";
|
|
2
|
+
import { n as M, r as l, c as _ } from "./index-DyKoAen5.js";
|
|
3
|
+
import { o as $ } from "./if-defined-BnV-ervM.js";
|
|
4
|
+
import { O as U } from "./index-BtuYCqDV.js";
|
|
5
|
+
import { e as q } from "./index-D_0pIlko.js";
|
|
6
|
+
import "./index-BEw-Pamy.js";
|
|
7
|
+
import "./index-Bb87kDJL.js";
|
|
8
|
+
import "./index-B20n3ETF.js";
|
|
9
|
+
import "./index-CVL_07UF.js";
|
|
10
|
+
import "./index-BLewXRlj.js";
|
|
11
11
|
const z = O`
|
|
12
12
|
:host {
|
|
13
13
|
margin-top: ${({ spacing: t }) => t[1]};
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { q as A, u as D, C as $, N as h, x as u, e as V, E as N, R as S, b as M, T as K, D as F, W as Q, r as W, t as q } from "./index-
|
|
2
|
-
import { r as l, n as w, c as C } from "./index-
|
|
3
|
-
import "./index-
|
|
4
|
-
import "./index-
|
|
5
|
-
import { M as _ } from "./index-
|
|
6
|
-
import "./index-
|
|
7
|
-
import { S as s } from "./SwapController-
|
|
8
|
-
import "./index-
|
|
9
|
-
import "./index-
|
|
10
|
-
import "./index-
|
|
11
|
-
import "./index-
|
|
1
|
+
import { q as A, u as D, C as $, N as h, x as u, e as V, E as N, R as S, b as M, T as K, D as F, W as Q, r as W, t as q } from "./index-BjgdEoUq.js";
|
|
2
|
+
import { r as l, n as w, c as C } from "./index-DyKoAen5.js";
|
|
3
|
+
import "./index-B20n3ETF.js";
|
|
4
|
+
import "./index-BEw-Pamy.js";
|
|
5
|
+
import { M as _ } from "./index-BO7yZWBD.js";
|
|
6
|
+
import "./index-BzRlqe1H.js";
|
|
7
|
+
import { S as s } from "./SwapController-v4pppXIt.js";
|
|
8
|
+
import "./index-BLewXRlj.js";
|
|
9
|
+
import "./index-Dz6b_m4q.js";
|
|
10
|
+
import "./index-DHdHH03r.js";
|
|
11
|
+
import "./index-Cdq2oZWs.js";
|
|
12
12
|
const H = {
|
|
13
13
|
numericInputKeyDown(e, t, o) {
|
|
14
14
|
const i = [
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { w as f, u as a, x as u } from "./index-
|
|
2
|
-
import { c as w } from "./index-
|
|
3
|
-
import "./index-
|
|
1
|
+
import { w as f, u as a, x as u } from "./index-BjgdEoUq.js";
|
|
2
|
+
import { c as w } from "./index-DyKoAen5.js";
|
|
3
|
+
import "./index-O1OqNkfY.js";
|
|
4
4
|
const d = f`
|
|
5
5
|
:host > wui-flex:first-child {
|
|
6
6
|
height: 500px;
|
package/dist/trifle-hub.css
CHANGED
|
@@ -436,6 +436,9 @@ video {
|
|
|
436
436
|
margin: -0.125rem;
|
|
437
437
|
}._-m-1 {
|
|
438
438
|
margin: -0.25rem;
|
|
439
|
+
}._-mx-2 {
|
|
440
|
+
margin-left: -0.5rem;
|
|
441
|
+
margin-right: -0.5rem;
|
|
439
442
|
}._-mx-5 {
|
|
440
443
|
margin-left: -1.25rem;
|
|
441
444
|
margin-right: -1.25rem;
|
|
@@ -470,6 +473,8 @@ video {
|
|
|
470
473
|
margin-left: -2px;
|
|
471
474
|
}._-mr-6 {
|
|
472
475
|
margin-right: -1.5rem;
|
|
476
|
+
}._-mt-0\.5 {
|
|
477
|
+
margin-top: -0.125rem;
|
|
473
478
|
}._-mt-1 {
|
|
474
479
|
margin-top: -0.25rem;
|
|
475
480
|
}._-mt-1\.5 {
|
|
@@ -1714,6 +1719,59 @@ video {
|
|
|
1714
1719
|
._bubble-btn:hover:not([disabled]) {
|
|
1715
1720
|
border-image-width: 19px;
|
|
1716
1721
|
}
|
|
1722
|
+
}.trifle-hub-ui .masked-oval {
|
|
1723
|
+
--oval-mask: radial-gradient(
|
|
1724
|
+
ellipse 80% 48% at 50% 50%,
|
|
1725
|
+
rgba(0, 0, 0, 1) 70%,
|
|
1726
|
+
rgba(0, 0, 0, 0.7) 78%,
|
|
1727
|
+
rgba(0, 0, 0, 0.4) 86%,
|
|
1728
|
+
rgba(0, 0, 0, 0.15) 93%,
|
|
1729
|
+
rgba(0, 0, 0, 0) 100%
|
|
1730
|
+
);
|
|
1731
|
+
-webkit-mask-image: var(--oval-mask);
|
|
1732
|
+
-webkit-mask-repeat: no-repeat;
|
|
1733
|
+
-webkit-mask-size: 100% 100%;
|
|
1734
|
+
mask-image: var(--oval-mask);
|
|
1735
|
+
mask-repeat: no-repeat;
|
|
1736
|
+
mask-size: 100% 100%;
|
|
1737
|
+
}@layer trifle-hub {
|
|
1738
|
+
._animate-rainbow-wiggle {
|
|
1739
|
+
animation: rainbow-wiggle 1s ease-in-out infinite;
|
|
1740
|
+
}
|
|
1741
|
+
|
|
1742
|
+
._animate-rainbow-wiggle-sm {
|
|
1743
|
+
animation: rainbow-wiggle-sm 1s ease-in-out infinite;
|
|
1744
|
+
}
|
|
1745
|
+
|
|
1746
|
+
@keyframes rainbow-wiggle {
|
|
1747
|
+
0% {
|
|
1748
|
+
filter: hue-rotate(0deg) brightness(1) contrast(1) saturate(3);
|
|
1749
|
+
transform: rotate(-8deg);
|
|
1750
|
+
}
|
|
1751
|
+
50% {
|
|
1752
|
+
filter: hue-rotate(180deg) brightness(1) contrast(1) saturate(3);
|
|
1753
|
+
transform: rotate(8deg);
|
|
1754
|
+
}
|
|
1755
|
+
100% {
|
|
1756
|
+
filter: hue-rotate(360deg) brightness(1) contrast(1) saturate(3);
|
|
1757
|
+
transform: rotate(-8deg);
|
|
1758
|
+
}
|
|
1759
|
+
}
|
|
1760
|
+
|
|
1761
|
+
@keyframes rainbow-wiggle-sm {
|
|
1762
|
+
0% {
|
|
1763
|
+
filter: hue-rotate(0deg) brightness(1) contrast(1) saturate(3);
|
|
1764
|
+
transform: rotate(-4deg);
|
|
1765
|
+
}
|
|
1766
|
+
50% {
|
|
1767
|
+
filter: hue-rotate(180deg) brightness(1) contrast(1) saturate(3);
|
|
1768
|
+
transform: rotate(4deg);
|
|
1769
|
+
}
|
|
1770
|
+
100% {
|
|
1771
|
+
filter: hue-rotate(360deg) brightness(1) contrast(1) saturate(3);
|
|
1772
|
+
transform: rotate(-4deg);
|
|
1773
|
+
}
|
|
1774
|
+
}
|
|
1717
1775
|
}.hover\:_bg-zinc-300:hover {
|
|
1718
1776
|
--tw-bg-opacity: 1;
|
|
1719
1777
|
background-color: rgb(212 212 216 / var(--tw-bg-opacity, 1));
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { T as x, an as ae, R as c, z as de, q as C, r as L, u as y, x as d, G as _, t as ue, v as D, C as g, Y as j, ak as he, U as V, E as U, O as R, I as F, w as pe, S as O, P as z, Z as me, ao as fe, ap as we } from "./index-
|
|
2
|
-
import { c as w, n as l, r as u, U as ne } from "./index-
|
|
3
|
-
import { o as W } from "./if-defined-
|
|
4
|
-
import "./index-
|
|
5
|
-
import "./index-
|
|
6
|
-
import { H as ee } from "./HelpersUtil-
|
|
7
|
-
import "./index-
|
|
8
|
-
import "./index-
|
|
9
|
-
import "./index-
|
|
10
|
-
import "./index-
|
|
11
|
-
import { S as be } from "./SwapController-
|
|
12
|
-
import "./index-
|
|
1
|
+
import { T as x, an as ae, R as c, z as de, q as C, r as L, u as y, x as d, G as _, t as ue, v as D, C as g, Y as j, ak as he, U as V, E as U, O as R, I as F, w as pe, S as O, P as z, Z as me, ao as fe, ap as we } from "./index-BjgdEoUq.js";
|
|
2
|
+
import { c as w, n as l, r as u, U as ne } from "./index-DyKoAen5.js";
|
|
3
|
+
import { o as W } from "./if-defined-BnV-ervM.js";
|
|
4
|
+
import "./index-4yRoGOQO.js";
|
|
5
|
+
import "./index-Cdq2oZWs.js";
|
|
6
|
+
import { H as ee } from "./HelpersUtil-D9b9TbXb.js";
|
|
7
|
+
import "./index-C-O4WPQJ.js";
|
|
8
|
+
import "./index-BEw-Pamy.js";
|
|
9
|
+
import "./index-BzRlqe1H.js";
|
|
10
|
+
import "./index-qeopR1ky.js";
|
|
11
|
+
import { S as be } from "./SwapController-v4pppXIt.js";
|
|
12
|
+
import "./index-B20n3ETF.js";
|
|
13
13
|
const se = {
|
|
14
14
|
isUnsupportedChainView() {
|
|
15
15
|
return c.state.view === "UnsupportedChain" || c.state.view === "SwitchNetwork" && c.state.history.includes("UnsupportedChain");
|
package/package.json
CHANGED
package/dist/Earn-BVtdNUxL.js
DELETED
|
@@ -1,255 +0,0 @@
|
|
|
1
|
-
import { inject as E, ref as f, computed as Q, watch as j, onMounted as J, nextTick as R, createElementBlock as r, openBlock as i, createElementVNode as t, createVNode as b, createCommentVNode as v, withCtx as S, createTextVNode as w, unref as p, normalizeStyle as D, toDisplayString as A, normalizeClass as F, TransitionGroup as K, Fragment as H, renderList as z, createBlock as W } from "vue";
|
|
2
|
-
import { m as X, n as N } from "./index-B_6bbCRZ.js";
|
|
3
|
-
import { H as Z } from "./HubPageHeader-VDMilTIN.js";
|
|
4
|
-
import { storeToRefs as q } from "pinia";
|
|
5
|
-
import { _ as ee } from "./SocialsButtons-DtwEuVa-.js";
|
|
6
|
-
import { _ as te, a as le } from "./SwapBalls-jt0cB6dz.js";
|
|
7
|
-
import { _ as se } from "./QuestCard-ABFoFHer.js";
|
|
8
|
-
import { _ as ne } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
9
|
-
const ae = { class: "_flex-1 _overflow-y-scroll-masked _no-scrollbar _px-5 _w-full _flex _flex-col" }, oe = { class: "_-mt-3.5 _space-y-3.5" }, ie = {
|
|
10
|
-
key: 0,
|
|
11
|
-
class: "_mt-4 _px-3.5 _py-3 _flex _flex-col _gap-3 _rounded-lg _overflow-hidden _shadow-panel _bg-metallic-cone"
|
|
12
|
-
}, re = { class: "_relative _flex _flex-col _gap-2.5" }, _e = { class: "_flex _justify-between _items-center" }, de = { class: "_flex _items-center _min-w-0 _flex-1" }, ue = { class: "_text-right _min-w-0 _truncate _text-stroke-3xl" }, ce = { class: "_gap-[0.45rem] _mt-6 _grid _grid-cols-2 _text-stroke-2xl _text-xl _tracking-wide _mb-3" }, me = {
|
|
13
|
-
key: 0,
|
|
14
|
-
class: "_space-y-4"
|
|
15
|
-
}, fe = {
|
|
16
|
-
key: 0,
|
|
17
|
-
class: "_space-y-2"
|
|
18
|
-
}, pe = {
|
|
19
|
-
key: 1,
|
|
20
|
-
class: "_p-4 _bg-red-100 _text-red-700 _rounded-lg"
|
|
21
|
-
}, ge = {
|
|
22
|
-
key: 2,
|
|
23
|
-
class: "_space-y-2"
|
|
24
|
-
}, be = {
|
|
25
|
-
key: 1,
|
|
26
|
-
class: "_space-y-3"
|
|
27
|
-
}, ve = { class: "_text-mlg _bg-metallic-linearff _p-2.5 _rounded-lg _shadow-panel-insetff _border-4 _border-dashed _border-black/20 _text-center _flex _flex-col _gap-4" }, xe = { class: "_flex _items-center _gap-[0.75em] _justify-center _leading-none _mt-2 _-mb-1" }, he = { class: "_flex _items-center _gap-[0.5em]" }, ke = { class: "_flex-1 _text-center _text-stroke-2xl" }, ye = { class: "_mt-6 _bg-metallic-linear _p-4 _rounded-lg _shadow-panel _text-center _flex _flex-col _gap-3.5 _pb-5" }, we = { class: "_grid _grid-cols-2 _gap-2" }, $e = {
|
|
28
|
-
__name: "Earn",
|
|
29
|
-
setup(Ce) {
|
|
30
|
-
const d = E("TrifleHub/store"), x = E("hub"), { openHub: $ } = x, C = f([]), h = f(!0), k = f(null), P = f(0), L = f("all"), u = f("earn"), { backendUrl: U, isAuthenticated: y } = q(d), V = () => {
|
|
31
|
-
var s;
|
|
32
|
-
d.setProfileUsername((s = d.user) == null ? void 0 : s.username), $("profile");
|
|
33
|
-
}, O = Q(() => {
|
|
34
|
-
var s;
|
|
35
|
-
return (s = x.highlightQuestId) == null ? void 0 : s.value;
|
|
36
|
-
}), M = Q(() => {
|
|
37
|
-
var l;
|
|
38
|
-
let s = [];
|
|
39
|
-
const e = d.isFarcaster ? "farcaster" : "web", o = C.value.filter(
|
|
40
|
-
(n) => !n.hiddenFromQuests && (!n.platforms || n.platforms.includes(e))
|
|
41
|
-
);
|
|
42
|
-
L.value === "all" ? s = o : L.value === "once" ? s = o.filter((n) => n.once) : L.value === "ongoing" ? s = o.filter((n) => !n.once) : s = o;
|
|
43
|
-
const _ = s.slice().sort((n, a) => {
|
|
44
|
-
if (n.enabled && !a.enabled) return -1;
|
|
45
|
-
if (!n.enabled && a.enabled) return 1;
|
|
46
|
-
if (n.enabled && a.enabled) {
|
|
47
|
-
const m = n.completed && n.once, g = a.completed && a.once;
|
|
48
|
-
if (m && !g) return 1;
|
|
49
|
-
if (!m && g) return -1;
|
|
50
|
-
}
|
|
51
|
-
return 0;
|
|
52
|
-
}), c = (l = x.highlightQuestId) == null ? void 0 : l.value;
|
|
53
|
-
if (c) {
|
|
54
|
-
const n = _.findIndex((a) => a.id === c);
|
|
55
|
-
if (n > 0) {
|
|
56
|
-
const [a] = _.splice(n, 1);
|
|
57
|
-
_.unshift(a);
|
|
58
|
-
}
|
|
59
|
-
}
|
|
60
|
-
return _;
|
|
61
|
-
}), T = async () => {
|
|
62
|
-
var s, e, o, _, c;
|
|
63
|
-
h.value = !0, k.value = null;
|
|
64
|
-
try {
|
|
65
|
-
if (y.value || (e = (s = d.isFarcaster) == null ? void 0 : s.user) != null && e.id) {
|
|
66
|
-
const l = await fetch(`${U.value}/balls/point-categories-with-counts`, {
|
|
67
|
-
method: "POST",
|
|
68
|
-
headers: {
|
|
69
|
-
"Content-Type": "application/json"
|
|
70
|
-
// Authorization: `Bearer ${auth.authToken}`
|
|
71
|
-
},
|
|
72
|
-
body: JSON.stringify({
|
|
73
|
-
userId: ((o = d.user) == null ? void 0 : o.id) || ((c = (_ = d.isFarcaster) == null ? void 0 : _.user) == null ? void 0 : c.id)
|
|
74
|
-
})
|
|
75
|
-
});
|
|
76
|
-
if (!l.ok)
|
|
77
|
-
throw new Error(`HTTP error! status: ${l.status}`);
|
|
78
|
-
const n = await l.json();
|
|
79
|
-
P.value = n.balls.total, C.value = N.map((a) => {
|
|
80
|
-
const m = n.balls.data.filter((I) => I.name === a.id), g = m.length > 0;
|
|
81
|
-
let B = null;
|
|
82
|
-
if (!a.once && g)
|
|
83
|
-
if (a.id === "gm") {
|
|
84
|
-
const I = (/* @__PURE__ */ new Date()).toDateString(), G = m.filter(
|
|
85
|
-
(Y) => new Date(Y.createdAt).toDateString() === I
|
|
86
|
-
);
|
|
87
|
-
B = Math.min(G.length / 10 * 100, 100);
|
|
88
|
-
} else a.id === "burn-kudzu" && (B = Math.min(m.length % 10 * 10, 100));
|
|
89
|
-
return {
|
|
90
|
-
...a,
|
|
91
|
-
completed: g,
|
|
92
|
-
progress: B,
|
|
93
|
-
requiresLogin: !1,
|
|
94
|
-
enabled: a.enabled !== void 0 ? a.enabled : !0,
|
|
95
|
-
link: a.link || null
|
|
96
|
-
};
|
|
97
|
-
});
|
|
98
|
-
} else
|
|
99
|
-
P.value = 0, C.value = N.map((l) => ({
|
|
100
|
-
...l,
|
|
101
|
-
completed: !1,
|
|
102
|
-
progress: null,
|
|
103
|
-
requiresLogin: !0,
|
|
104
|
-
enabled: l.enabled !== void 0 ? l.enabled : !0,
|
|
105
|
-
link: l.link || null
|
|
106
|
-
}));
|
|
107
|
-
} catch (l) {
|
|
108
|
-
console.error("Error fetching quest data:", l), k.value = "Failed to load quest data. Please try again later.";
|
|
109
|
-
} finally {
|
|
110
|
-
h.value = !1;
|
|
111
|
-
}
|
|
112
|
-
};
|
|
113
|
-
return j(y, () => {
|
|
114
|
-
T();
|
|
115
|
-
}), J(() => {
|
|
116
|
-
T();
|
|
117
|
-
}), j(
|
|
118
|
-
() => {
|
|
119
|
-
var s;
|
|
120
|
-
return [(s = x.highlightQuestId) == null ? void 0 : s.value, h.value];
|
|
121
|
-
},
|
|
122
|
-
async ([s, e]) => {
|
|
123
|
-
var o;
|
|
124
|
-
!s || e || (await R(), (o = document.getElementById(`thub-quest-${s}`)) == null || o.scrollIntoView({
|
|
125
|
-
behavior: "smooth",
|
|
126
|
-
block: "nearest"
|
|
127
|
-
}));
|
|
128
|
-
},
|
|
129
|
-
{ flush: "post" }
|
|
130
|
-
), (s, e) => {
|
|
131
|
-
var o, _, c;
|
|
132
|
-
return i(), r("div", ae, [
|
|
133
|
-
t("header", oe, [
|
|
134
|
-
b(Z, null, {
|
|
135
|
-
icon: S(() => e[5] || (e[5] = [
|
|
136
|
-
t("img", {
|
|
137
|
-
src: X,
|
|
138
|
-
alt: "📈🪩",
|
|
139
|
-
class: "_h-[1.75em]"
|
|
140
|
-
}, null, -1)
|
|
141
|
-
])),
|
|
142
|
-
default: S(() => [
|
|
143
|
-
e[6] || (e[6] = w(" BALL$ "))
|
|
144
|
-
]),
|
|
145
|
-
_: 1
|
|
146
|
-
}),
|
|
147
|
-
p(y) ? v("", !0) : (i(), r("section", ie, [
|
|
148
|
-
t("div", re, [
|
|
149
|
-
e[9] || (e[9] = t("div", null, [
|
|
150
|
-
t("p", { class: "_text-mlg" }, "You might have 🪩BALL$ to claim!")
|
|
151
|
-
], -1)),
|
|
152
|
-
t("div", _e, [
|
|
153
|
-
e[8] || (e[8] = t("p", { class: "_italic _text-[#888] _text-em-sm _animate-blink" }, "Login to claim →", -1)),
|
|
154
|
-
t("button", {
|
|
155
|
-
class: "_bubble-btn _px-6 _py-2",
|
|
156
|
-
style: { filter: "hue-rotate(-340deg) saturate(1.8)" },
|
|
157
|
-
onClick: e[0] || (e[0] = (l) => p($)("account"))
|
|
158
|
-
}, e[7] || (e[7] = [
|
|
159
|
-
t("span", { style: { filter: "hue-rotate(340deg) saturate(0.5)" } }, "Login", -1)
|
|
160
|
-
]))
|
|
161
|
-
])
|
|
162
|
-
])
|
|
163
|
-
])),
|
|
164
|
-
p(y) ? (i(), r("section", {
|
|
165
|
-
key: 1,
|
|
166
|
-
class: "_px-3 _py-3 _bg-metallic-cone _rounded-lg _shadow-panel _flex _justify-between _items-center _flex-wrap _gap-2 _leading-none _text-3xl _cursor-pointer _whitespace-nowrap",
|
|
167
|
-
onClick: V
|
|
168
|
-
}, [
|
|
169
|
-
t("div", de, [
|
|
170
|
-
(o = p(d).user) != null && o.avatar ? (i(), r("div", {
|
|
171
|
-
key: 0,
|
|
172
|
-
class: "_size-[1.125em] _block _rounded-full _shadow-panel-inset _bg-cover _bg-center",
|
|
173
|
-
style: D({ backgroundImage: `url(${(_ = p(d).user) == null ? void 0 : _.avatar})` })
|
|
174
|
-
}, null, 4)) : v("", !0),
|
|
175
|
-
e[10] || (e[10] = t("div", { class: "_opacity-30 _text-mlg _text-stroke-lg _ml-[0.37em] _min-w-0 _truncate" }, " Your Balance ", -1))
|
|
176
|
-
]),
|
|
177
|
-
t("div", ue, A(((c = P.value) == null ? void 0 : c.toLocaleString()) || "???"), 1),
|
|
178
|
-
e[11] || (e[11] = t("div", { class: "_flex-shrink-0" }, "🪩", -1))
|
|
179
|
-
])) : v("", !0)
|
|
180
|
-
]),
|
|
181
|
-
t("nav", ce, [
|
|
182
|
-
t("button", {
|
|
183
|
-
class: F(["_bubble-btn _px-4.5 _h-16", { "_animate-wiggle-sm": u.value === "earn" }]),
|
|
184
|
-
onClick: e[1] || (e[1] = (l) => u.value = "earn"),
|
|
185
|
-
style: D(u.value === "earn" ? "filter: hue-rotate(-70deg) saturate(1.6)" : "")
|
|
186
|
-
}, " earn ", 6),
|
|
187
|
-
t("button", {
|
|
188
|
-
class: F(["_bubble-btn _px-4.5 _h-16", { "_animate-wiggle-sm": u.value === "spend" }]),
|
|
189
|
-
onClick: e[2] || (e[2] = (l) => u.value = "spend"),
|
|
190
|
-
style: D(u.value === "spend" ? "filter: hue-rotate(-345deg) saturate(2.5)" : "")
|
|
191
|
-
}, " redeem ", 6)
|
|
192
|
-
]),
|
|
193
|
-
b(K, { name: "thub-page-group" }, {
|
|
194
|
-
default: S(() => [
|
|
195
|
-
u.value === "earn" ? (i(), r("div", me, [
|
|
196
|
-
h.value ? (i(), r("div", fe, [
|
|
197
|
-
(i(), r(H, null, z(3, (l) => t("div", {
|
|
198
|
-
key: `loader-${l}`,
|
|
199
|
-
class: "_flex _items-center _gap-3 _p-3 _bg-metallic-linear _shadow-panel _rounded-lg animate-pulse"
|
|
200
|
-
}, e[12] || (e[12] = [
|
|
201
|
-
t("div", { class: "_size-8 _rounded-full _bg-black/30" }, null, -1),
|
|
202
|
-
t("div", { class: "_flex-1 _space-y-2" }, [
|
|
203
|
-
t("div", { class: "_h-4 _bg-black/30 _rounded w-3/4" })
|
|
204
|
-
], -1),
|
|
205
|
-
t("div", { class: "_h-6 _w-12 _bg-black/30 _rounded" }, null, -1)
|
|
206
|
-
]))), 64))
|
|
207
|
-
])) : k.value ? (i(), r("div", pe, A(k.value), 1)) : (i(), r("div", ge, [
|
|
208
|
-
(i(!0), r(H, null, z(M.value, (l) => (i(), W(se, {
|
|
209
|
-
key: l.id,
|
|
210
|
-
quest: l,
|
|
211
|
-
highlight: l.id === O.value,
|
|
212
|
-
onPointsUpdated: T
|
|
213
|
-
}, null, 8, ["quest", "highlight"]))), 128))
|
|
214
|
-
]))
|
|
215
|
-
])) : v("", !0),
|
|
216
|
-
u.value === "spend" ? (i(), r("div", be, [
|
|
217
|
-
t("section", ve, [
|
|
218
|
-
t("header", xe, [
|
|
219
|
-
e[13] || (e[13] = t("div", { class: "_text-[2.5em] _animate-wiggle-sm" }, "🪩", -1)),
|
|
220
|
-
e[14] || (e[14] = t("div", { class: "_text-[1.75em]" }, "➡️", -1)),
|
|
221
|
-
b(te, { class: "_h-[2.5em]" })
|
|
222
|
-
]),
|
|
223
|
-
t("div", he, [
|
|
224
|
-
t("p", ke, [
|
|
225
|
-
e[15] || (e[15] = w(" Add ")),
|
|
226
|
-
e[16] || (e[16] = t("span", { class: "_inline-block" }, "balls", -1)),
|
|
227
|
-
e[17] || (e[17] = w(" to next week's ")),
|
|
228
|
-
t("button", {
|
|
229
|
-
class: "_underline",
|
|
230
|
-
onClick: e[3] || (e[3] = (l) => p($)("games", !1, { tab: "lotteries" }))
|
|
231
|
-
}, " USDC contest"),
|
|
232
|
-
e[18] || (e[18] = w("! "))
|
|
233
|
-
])
|
|
234
|
-
]),
|
|
235
|
-
b(le, {
|
|
236
|
-
onGetBallsClick: e[4] || (e[4] = (l) => u.value = "earn")
|
|
237
|
-
})
|
|
238
|
-
])
|
|
239
|
-
])) : v("", !0)
|
|
240
|
-
]),
|
|
241
|
-
_: 1
|
|
242
|
-
}),
|
|
243
|
-
t("section", ye, [
|
|
244
|
-
e[19] || (e[19] = t("div", { class: "_opacity-30 _animate-wiggle-sm" }, "follow for more BALL$", -1)),
|
|
245
|
-
t("div", we, [
|
|
246
|
-
b(ee)
|
|
247
|
-
])
|
|
248
|
-
])
|
|
249
|
-
]);
|
|
250
|
-
};
|
|
251
|
-
}
|
|
252
|
-
}, Qe = /* @__PURE__ */ ne($e, [["__scopeId", "data-v-9837718d"]]);
|
|
253
|
-
export {
|
|
254
|
-
Qe as default
|
|
255
|
-
};
|