@trifle/trifle-hub 1.0.158 → 1.0.159
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-I_m-xJA2.js +119 -0
- package/dist/Earn-eUazTpJq.js +521 -0
- package/dist/{ExchangeController-O21rDxQI.js → ExchangeController-DV12Cckz.js} +1 -1
- package/dist/{Games-urE8dCiQ.js → Games-_af0-zsI.js} +126 -100
- package/dist/{HelpersUtil-CTL0zzpL.js → HelpersUtil-DffXsS4s.js} +2 -2
- package/dist/{Leaderboard-p6FRl_qo.js → Leaderboard-CdNJ6RpN.js} +78 -74
- package/dist/Profile-DQwKnS5C.js +1619 -0
- package/dist/{ReownAuthentication-z0Hzyrdn.js → ReownAuthentication-4hJzNS3a.js} +4 -4
- package/dist/{SocialsButtons-CE7zWqqh.js → SocialsButtons-BXUP5WJn.js} +1 -1
- package/dist/{SwapController-D-08czsg.js → SwapController-RS74Rf8y.js} +1 -1
- package/dist/{TrifleGuide-DBjZze_W.js → TrifleGuide-DV95aOiF.js} +1 -1
- package/dist/components/ReferralSection.vue.d.ts +2 -0
- package/dist/components/TwitterEngagementQuest.vue.d.ts +2 -0
- package/dist/components/TwitterTweetSummary.vue.d.ts +2 -0
- package/dist/config/pointsConfig.d.ts +0 -13
- package/dist/{data-capture-BurHpsk0.js → data-capture-4Zt7Mh-x.js} +10 -10
- package/dist/{email-caSfULEh.js → email-keN3MwiL.js} +8 -8
- package/dist/{embedded-wallet-CEz0Lhvv.js → embedded-wallet-4uVCFENX.js} +15 -15
- package/dist/{features-BwTHxbfn.js → features-DP96zO-E.js} +1 -1
- package/dist/{if-defined-BNumhkgE.js → if-defined-DWpQnkBo.js} +1 -1
- package/dist/{index-C_2OLYwS.js → index-B5bAjn80.js} +5 -5
- package/dist/{index-DodtoSGj.js → index-B6qbfcv3.js} +3 -3
- package/dist/{index-C7eEhpa8.js → index-B8IL-7_U.js} +4 -4
- package/dist/{index-89vSMSlU.js → index-BBl5qF2M.js} +3 -3
- package/dist/{index-CQFGvnA-.js → index-BO7qLY_A.js} +7 -7
- package/dist/{index-msSimcJK.js → index-BPs0GUi0.js} +4 -4
- package/dist/{index-Cb7k9l7V.js → index-Bs_op1YX.js} +3 -3
- package/dist/{index-B6GGU_Yv.js → index-BxFE2Unj.js} +23 -23
- package/dist/{index-K1xv67LI.js → index-C0G7EHjl.js} +29 -29
- package/dist/{index-Dg7_cwWU.js → index-C1P1tCug.js} +5 -5
- package/dist/{index-Bkj3uNfm.js → index-C8z4JeX0.js} +5 -5
- package/dist/{index-B3Kw351e.js → index-CIz85z2d.js} +2 -2
- package/dist/{index-D76hQfB6.js → index-CWQmRKXJ.js} +4 -4
- package/dist/{index-CwAgKs0q.js → index-CcH4ohJ_.js} +4 -4
- package/dist/{index-DXVkuTgx.js → index-CfQ4XGey.js} +5 -5
- package/dist/{index-BHgZhZnd.js → index-CpFp2zWs.js} +2 -2
- package/dist/{index-BestOUlf.js → index-Csp20V_C.js} +97 -58
- package/dist/{index-pCBpwyph.js → index-CyTfW7bb.js} +6 -6
- package/dist/{index-Co_urUVD.js → index-D1PtCSNo.js} +2 -2
- package/dist/{index-B4ypbAaJ.js → index-DDxhg6X6.js} +2 -2
- package/dist/{index-D-P8X6DA.js → index-DKPj-Jsc.js} +3 -3
- package/dist/{index-DpIl6Wev.js → index-DN-NdrN8.js} +3 -3
- package/dist/{index-C7xl7pFK.js → index-DOVqr745.js} +31 -31
- package/dist/{index-BMPcBhgi.js → index-DPm1qXRL.js} +8 -8
- package/dist/{index-5_bOFSu-.js → index-DaRwVfNh.js} +8 -8
- package/dist/{index-BvQv0KlV.js → index-DhdIiv9I.js} +4 -4
- package/dist/{index-DfgpBvgd.js → index-DlHufcDq.js} +7 -7
- package/dist/{index-FhNgcqVw.js → index-DnZf5kFT.js} +4 -4
- package/dist/{index-DkZ5owF-.js → index-E6-HL-vX.js} +5 -5
- package/dist/{index-gh4E7rPC.js → index-G7BEtCTt.js} +3 -3
- package/dist/{index-0UckIGq1.js → index-QJqrYOWX.js} +5 -5
- package/dist/{index-hrWlsaQz.js → index-QxHb_qeo.js} +5 -5
- package/dist/{index-BFnZ3glo.js → index-SB-6jek0.js} +4 -4
- package/dist/{index-C1gHFH6V.js → index-UnIJhvbF.js} +1 -1
- package/dist/{index-DVj-n2n2.js → index-dR4kMyJ7.js} +1 -1
- package/dist/{index-PnMkyIQv.js → index-gjTnuwmH.js} +2 -2
- package/dist/index.es.js +2 -2
- package/dist/{onramp-DDMX8dgQ.js → onramp-BfgwVaz4.js} +23 -23
- package/dist/{pay-with-exchange-DupicqoA.js → pay-with-exchange-IINfHruD.js} +15 -15
- package/dist/{receive-CslAXVA7.js → receive-tK9feGwv.js} +7 -7
- package/dist/{ref-CJX9F_fb.js → ref-CDkfw-zs.js} +2 -2
- package/dist/{send-DkMybs9S.js → send-mES3HGGI.js} +15 -15
- package/dist/{socials-DbW23ibQ.js → socials-U7A0qfan.js} +16 -16
- package/dist/{swaps-4_FZwgjm.js → swaps-CVIliCpc.js} +11 -11
- package/dist/{transactions-CDTgv5JK.js → transactions-C1kMLLvz.js} +3 -3
- package/dist/{w3m-modal-CRjTiieg.js → w3m-modal-DYHBxO0T.js} +12 -12
- package/package.json +1 -1
- package/dist/AccountIndex-Tw5xY7ab.js +0 -1140
- package/dist/AccountLayout-DtKvcqQk.js +0 -28
- package/dist/Earn-wpObjq-V.js +0 -306
- package/dist/Profile-BXTdPhEU.js +0 -246
- /package/dist/{views/Account/UserAccount.vue.d.ts → components/AccountSettings.vue.d.ts} +0 -0
|
@@ -26,19 +26,6 @@ export const possiblePoints: ({
|
|
|
26
26
|
description?: undefined;
|
|
27
27
|
activityText?: undefined;
|
|
28
28
|
hiddenFromQuests?: undefined;
|
|
29
|
-
} | {
|
|
30
|
-
name: string;
|
|
31
|
-
id: string;
|
|
32
|
-
icon: any;
|
|
33
|
-
description: string;
|
|
34
|
-
pachinkoBalls: number;
|
|
35
|
-
kudzuBurn: number;
|
|
36
|
-
claimed: boolean;
|
|
37
|
-
once: boolean;
|
|
38
|
-
enabled: boolean;
|
|
39
|
-
link: string;
|
|
40
|
-
activityText?: undefined;
|
|
41
|
-
hiddenFromQuests?: undefined;
|
|
42
29
|
} | {
|
|
43
30
|
name: string;
|
|
44
31
|
id: string;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { y,
|
|
2
|
-
import { n as S, c as x, r as u, U as _ } from "./index-
|
|
3
|
-
import { W as C } from "./index-
|
|
4
|
-
import { R as v } from "./ReownAuthentication-
|
|
5
|
-
const
|
|
1
|
+
import { t as y, q as $, x as l, O as m, R as p, C as f, S as h, K as E, I as R } from "./index-Csp20V_C.js";
|
|
2
|
+
import { n as S, c as x, r as u, U as _ } from "./index-DlHufcDq.js";
|
|
3
|
+
import { W as C } from "./index-DhdIiv9I.js";
|
|
4
|
+
import { R as v } from "./ReownAuthentication-4hJzNS3a.js";
|
|
5
|
+
const I = y`
|
|
6
6
|
.email-sufixes {
|
|
7
7
|
display: flex;
|
|
8
8
|
flex-direction: row;
|
|
@@ -28,7 +28,7 @@ var O = function(o, t, i, a) {
|
|
|
28
28
|
else for (var s = o.length - 1; s >= 0; s--) (r = o[s]) && (e = (n < 3 ? r(e) : n > 3 ? r(t, i, e) : r(t, i)) || e);
|
|
29
29
|
return n > 3 && e && Object.defineProperty(t, i, e), e;
|
|
30
30
|
};
|
|
31
|
-
const
|
|
31
|
+
const D = [
|
|
32
32
|
"@gmail.com",
|
|
33
33
|
"@outlook.com",
|
|
34
34
|
"@yahoo.com",
|
|
@@ -42,7 +42,7 @@ let g = class extends $ {
|
|
|
42
42
|
super(...arguments), this.email = "";
|
|
43
43
|
}
|
|
44
44
|
render() {
|
|
45
|
-
const t =
|
|
45
|
+
const t = D.filter(this.filter.bind(this)).map(this.item.bind(this));
|
|
46
46
|
return t.length === 0 ? null : l`<div class="email-sufixes">${t}</div>`;
|
|
47
47
|
}
|
|
48
48
|
filter(t) {
|
|
@@ -69,7 +69,7 @@ let g = class extends $ {
|
|
|
69
69
|
>`;
|
|
70
70
|
}
|
|
71
71
|
};
|
|
72
|
-
g.styles = [
|
|
72
|
+
g.styles = [I];
|
|
73
73
|
O([
|
|
74
74
|
S()
|
|
75
75
|
], g.prototype, "email", void 0);
|
|
@@ -169,7 +169,7 @@ A([
|
|
|
169
169
|
b = A([
|
|
170
170
|
x("w3m-data-capture-otp-confirm-view")
|
|
171
171
|
], b);
|
|
172
|
-
const
|
|
172
|
+
const q = y`
|
|
173
173
|
.hero {
|
|
174
174
|
display: flex;
|
|
175
175
|
flex-direction: column;
|
|
@@ -457,7 +457,7 @@ let c = class extends $ {
|
|
|
457
457
|
return /^\S+@\S+\.\S+$/u.test(t);
|
|
458
458
|
}
|
|
459
459
|
};
|
|
460
|
-
c.styles = [
|
|
460
|
+
c.styles = [q];
|
|
461
461
|
d([
|
|
462
462
|
u()
|
|
463
463
|
], c.prototype, "email", void 0);
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { C as S,
|
|
2
|
-
import { c as u, r as E } from "./index-
|
|
3
|
-
import { W as b } from "./index-
|
|
4
|
-
import "./index-
|
|
5
|
-
import "./index-
|
|
6
|
-
import { e as N, n as T } from "./ref-
|
|
7
|
-
import "./index-
|
|
8
|
-
import "./index-
|
|
1
|
+
import { C as S, u as g, O as p, E as c, M as _, R as s, S as f, b as C, n as D, q as y, G as d, x as m, t as $, a2 as W, y as P } from "./index-Csp20V_C.js";
|
|
2
|
+
import { c as u, r as E } from "./index-DlHufcDq.js";
|
|
3
|
+
import { W as b } from "./index-DhdIiv9I.js";
|
|
4
|
+
import "./index-Bs_op1YX.js";
|
|
5
|
+
import "./index-QxHb_qeo.js";
|
|
6
|
+
import { e as N, n as T } from "./ref-CDkfw-zs.js";
|
|
7
|
+
import "./index-CfQ4XGey.js";
|
|
8
|
+
import "./index-CyTfW7bb.js";
|
|
9
9
|
var F = function(a, e, t, r) {
|
|
10
10
|
var n = arguments.length, i = n < 3 ? e : r === null ? r = Object.getOwnPropertyDescriptor(e, t) : r, o;
|
|
11
11
|
if (typeof Reflect == "object" && typeof Reflect.decorate == "function") i = Reflect.decorate(a, e, t, r);
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { r as d, c as w, n as l } from "./index-
|
|
3
|
-
import "./index-
|
|
4
|
-
import { e as
|
|
5
|
-
import "./index-
|
|
6
|
-
import { H as I } from "./HelpersUtil-
|
|
7
|
-
import { o as ee } from "./if-defined-
|
|
8
|
-
import "./index-
|
|
9
|
-
import "./index-
|
|
10
|
-
import "./index-
|
|
11
|
-
import "./index-
|
|
12
|
-
import "./index-
|
|
1
|
+
import { t as H, q as g, M as W, O as K, x as c, G as _, Y as j, ad as G, n as E, r as z, o as B, e as N, C as m, ae as V, y as k, z as C, W as h, u as L, af as q, ag as v, b as D, E as O, S as X, R as Q } from "./index-Csp20V_C.js";
|
|
2
|
+
import { r as d, c as w, n as l } from "./index-DlHufcDq.js";
|
|
3
|
+
import "./index-DKPj-Jsc.js";
|
|
4
|
+
import { e as Z, n as J } from "./ref-CDkfw-zs.js";
|
|
5
|
+
import "./index-D1PtCSNo.js";
|
|
6
|
+
import { H as I } from "./HelpersUtil-DffXsS4s.js";
|
|
7
|
+
import { o as ee } from "./if-defined-DWpQnkBo.js";
|
|
8
|
+
import "./index-SB-6jek0.js";
|
|
9
|
+
import "./index-CcH4ohJ_.js";
|
|
10
|
+
import "./index-CfQ4XGey.js";
|
|
11
|
+
import "./index-Bs_op1YX.js";
|
|
12
|
+
import "./index-QxHb_qeo.js";
|
|
13
13
|
import { N as te } from "./NavigationUtil-kj9LEOOd.js";
|
|
14
14
|
const ie = H`
|
|
15
15
|
div {
|
|
@@ -591,7 +591,7 @@ var x = function(e, t, i, r) {
|
|
|
591
591
|
let p = class extends g {
|
|
592
592
|
constructor() {
|
|
593
593
|
var t;
|
|
594
|
-
super(), this.formRef =
|
|
594
|
+
super(), this.formRef = Z(), this.usubscribe = [], this.name = "", this.error = "", this.loading = v.state.loading, this.suggestions = v.state.suggestions, this.profileName = (t = m.getAccountData()) == null ? void 0 : t.profileName, this.onDebouncedNameInputChange = D.debounce((i) => {
|
|
595
595
|
i.length < 4 ? this.error = "Name must be at least 4 characters long" : I.isValidReownName(i) ? (this.error = "", v.getSuggestions(i)) : this.error = "The value is not a valid username";
|
|
596
596
|
}), this.usubscribe.push(v.subscribe((i) => {
|
|
597
597
|
this.suggestions = i.suggestions, this.loading = i.loading;
|
|
@@ -615,7 +615,7 @@ let p = class extends g {
|
|
|
615
615
|
gap="4"
|
|
616
616
|
.padding=${["1", "3", "4", "3"]}
|
|
617
617
|
>
|
|
618
|
-
<form ${
|
|
618
|
+
<form ${J(this.formRef)} @submit=${this.onSubmitName.bind(this)}>
|
|
619
619
|
<wui-ens-input
|
|
620
620
|
@inputChange=${this.onNameInputChange.bind(this)}
|
|
621
621
|
.errorMessage=${this.error}
|
|
@@ -804,7 +804,7 @@ let U = class extends g {
|
|
|
804
804
|
</wui-flex>`;
|
|
805
805
|
}
|
|
806
806
|
redirectToAccount() {
|
|
807
|
-
|
|
807
|
+
Q.replace("Account");
|
|
808
808
|
}
|
|
809
809
|
};
|
|
810
810
|
U.styles = ue;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { r as m, c as
|
|
1
|
+
import { w as d, a as h, s as f, j as g, n as w, q as b, x as y } from "./index-Csp20V_C.js";
|
|
2
|
+
import { r as m, c as x } from "./index-DlHufcDq.js";
|
|
3
3
|
const o = h({
|
|
4
4
|
message: "",
|
|
5
5
|
open: !1,
|
|
@@ -10,7 +10,7 @@ const o = h({
|
|
|
10
10
|
left: 0
|
|
11
11
|
},
|
|
12
12
|
variant: "shade"
|
|
13
|
-
}),
|
|
13
|
+
}), v = {
|
|
14
14
|
state: o,
|
|
15
15
|
subscribe(t) {
|
|
16
16
|
return g(o, () => t(o));
|
|
@@ -29,7 +29,7 @@ const o = h({
|
|
|
29
29
|
left: 0
|
|
30
30
|
};
|
|
31
31
|
}
|
|
32
|
-
}, s = d(
|
|
32
|
+
}, s = d(v), $ = w`
|
|
33
33
|
:host {
|
|
34
34
|
pointer-events: none;
|
|
35
35
|
}
|
|
@@ -152,7 +152,7 @@ n([
|
|
|
152
152
|
m()
|
|
153
153
|
], r.prototype, "variant", void 0);
|
|
154
154
|
r = n([
|
|
155
|
-
|
|
155
|
+
x("w3m-tooltip")
|
|
156
156
|
], r);
|
|
157
157
|
export {
|
|
158
158
|
s as T
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { n as d, c as m, U as p } from "./index-
|
|
3
|
-
import "./index-
|
|
1
|
+
import { n as h, r as f, q as u, x as v } from "./index-Csp20V_C.js";
|
|
2
|
+
import { n as d, c as m, U as p } from "./index-DlHufcDq.js";
|
|
3
|
+
import "./index-DKPj-Jsc.js";
|
|
4
4
|
const x = h`
|
|
5
5
|
:host {
|
|
6
6
|
display: block;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { n as i, c as b } from "./index-
|
|
3
|
-
import { o as p } from "./if-defined-
|
|
4
|
-
import "./index-
|
|
1
|
+
import { n as h, r as m, o as f, q as g, x as a } from "./index-Csp20V_C.js";
|
|
2
|
+
import { n as i, c as b } from "./index-DlHufcDq.js";
|
|
3
|
+
import { o as p } from "./if-defined-DWpQnkBo.js";
|
|
4
|
+
import "./index-D1PtCSNo.js";
|
|
5
5
|
const y = h`
|
|
6
6
|
:host {
|
|
7
7
|
width: 100%;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { n as i, c as w } from "./index-
|
|
3
|
-
import "./index-
|
|
1
|
+
import { n as p, r as f, o as h, q as b, N as d, x as m } from "./index-Csp20V_C.js";
|
|
2
|
+
import { n as i, c as w } from "./index-DlHufcDq.js";
|
|
3
|
+
import "./index-DKPj-Jsc.js";
|
|
4
4
|
const g = p`
|
|
5
5
|
:host {
|
|
6
6
|
width: 100%;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { r as y, c as b, n as w } from "./index-
|
|
3
|
-
import "./index-
|
|
4
|
-
import { H as x } from "./HelpersUtil-
|
|
5
|
-
import { o as v } from "./if-defined-
|
|
6
|
-
import "./index-
|
|
7
|
-
import "./index-
|
|
1
|
+
import { n as g, q as f, R as u, x as e, E as P, r as k, o as A } from "./index-Csp20V_C.js";
|
|
2
|
+
import { r as y, c as b, n as w } from "./index-DlHufcDq.js";
|
|
3
|
+
import "./index-DN-NdrN8.js";
|
|
4
|
+
import { H as x } from "./HelpersUtil-DffXsS4s.js";
|
|
5
|
+
import { o as v } from "./if-defined-DWpQnkBo.js";
|
|
6
|
+
import "./index-Bs_op1YX.js";
|
|
7
|
+
import "./index-DnZf5kFT.js";
|
|
8
8
|
const I = g`
|
|
9
9
|
:host {
|
|
10
10
|
display: block;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { a as g, s as C, j as w,
|
|
2
|
-
import { n as x, c as f, r as v } from "./index-
|
|
3
|
-
import { o as z } from "./if-defined-
|
|
4
|
-
import { e as O, n as _ } from "./ref-
|
|
1
|
+
import { a as g, s as C, j as w, n as k, r as $, q as m, x as d, O as l } from "./index-Csp20V_C.js";
|
|
2
|
+
import { n as x, c as f, r as v } from "./index-DlHufcDq.js";
|
|
3
|
+
import { o as z } from "./if-defined-DWpQnkBo.js";
|
|
4
|
+
import { e as O, n as _ } from "./ref-CDkfw-zs.js";
|
|
5
5
|
const h = g({
|
|
6
6
|
isLegalCheckboxChecked: !1
|
|
7
7
|
}), u = {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { n as d, c as m } from "./index-
|
|
3
|
-
import { o as b } from "./if-defined-
|
|
1
|
+
import { n as u, r as h, o as f, q as p, x as g } from "./index-Csp20V_C.js";
|
|
2
|
+
import { n as d, c as m } from "./index-DlHufcDq.js";
|
|
3
|
+
import { o as b } from "./if-defined-DWpQnkBo.js";
|
|
4
4
|
const y = u`
|
|
5
5
|
:host {
|
|
6
6
|
display: inline-flex;
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { O as $, aa as b, b as
|
|
2
|
-
import { r as h, c as H } from "./index-
|
|
3
|
-
import { o as Y } 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 "./index-
|
|
12
|
-
import "./index-
|
|
13
|
-
import "./index-
|
|
1
|
+
import { O as $, aa as b, b as C, C as p, y as g, ab as B, u as w, ac as j, a as q, E as _, S as T, R as L, M as x, s as z, j as X, t as W, q as F, x as m, Y as J, G as M, X as Z } from "./index-Csp20V_C.js";
|
|
2
|
+
import { r as h, c as H } from "./index-DlHufcDq.js";
|
|
3
|
+
import { o as Y } from "./if-defined-DWpQnkBo.js";
|
|
4
|
+
import "./index-CfQ4XGey.js";
|
|
5
|
+
import "./index-DaRwVfNh.js";
|
|
6
|
+
import "./index-CcH4ohJ_.js";
|
|
7
|
+
import "./index-DKPj-Jsc.js";
|
|
8
|
+
import "./index-B8IL-7_U.js";
|
|
9
|
+
import "./index-D1PtCSNo.js";
|
|
10
|
+
import "./index-C1P1tCug.js";
|
|
11
|
+
import "./index-gjTnuwmH.js";
|
|
12
|
+
import "./index-DnZf5kFT.js";
|
|
13
|
+
import "./index-CIz85z2d.js";
|
|
14
14
|
const o = {
|
|
15
15
|
INVALID_PAYMENT_CONFIG: "INVALID_PAYMENT_CONFIG",
|
|
16
16
|
INVALID_RECIPIENT: "INVALID_RECIPIENT",
|
|
@@ -104,7 +104,7 @@ function ie(t) {
|
|
|
104
104
|
return ae.includes(e);
|
|
105
105
|
}
|
|
106
106
|
async function oe(t) {
|
|
107
|
-
const { paymentAssetNetwork: e, activeCaipNetwork: s, approvedCaipNetworkIds: a, requestedCaipNetworks: r } = t, u =
|
|
107
|
+
const { paymentAssetNetwork: e, activeCaipNetwork: s, approvedCaipNetworkIds: a, requestedCaipNetworks: r } = t, u = C.sortRequestedNetworks(a, r).find((P) => P.caipNetworkId === e);
|
|
108
108
|
if (!u)
|
|
109
109
|
throw new c(o.INVALID_PAYMENT_CONFIG);
|
|
110
110
|
if (u.caipNetworkId === s.caipNetworkId)
|
|
@@ -257,7 +257,7 @@ const V = 0, v = "unknown", n = q({
|
|
|
257
257
|
});
|
|
258
258
|
n.exchanges = t.exchanges.slice(0, 2);
|
|
259
259
|
} catch {
|
|
260
|
-
throw
|
|
260
|
+
throw T.showError(N.UNABLE_TO_GET_EXCHANGES), new c(o.UNABLE_TO_GET_EXCHANGES);
|
|
261
261
|
} finally {
|
|
262
262
|
n.isLoading = !1;
|
|
263
263
|
}
|
|
@@ -331,7 +331,7 @@ const V = 0, v = "unknown", n = q({
|
|
|
331
331
|
if (!a)
|
|
332
332
|
throw new c(o.UNABLE_TO_GET_PAY_URL);
|
|
333
333
|
const i = t.openInNewTab ?? !0 ? "_blank" : "_self";
|
|
334
|
-
return
|
|
334
|
+
return C.openHref(a.url, i), a;
|
|
335
335
|
} catch (a) {
|
|
336
336
|
throw a instanceof c ? n.error = a.message : n.error = N.GENERIC_PAYMENT_ERROR, new c(o.UNABLE_TO_GET_PAY_URL);
|
|
337
337
|
}
|
|
@@ -393,7 +393,7 @@ const V = 0, v = "unknown", n = q({
|
|
|
393
393
|
throw new c(o.INVALID_CHAIN_NAMESPACE);
|
|
394
394
|
}
|
|
395
395
|
} catch (u) {
|
|
396
|
-
u instanceof c ? n.error = u.message : n.error = N.GENERIC_PAYMENT_ERROR, n.currentPayment.status = "FAILED",
|
|
396
|
+
u instanceof c ? n.error = u.message : n.error = N.GENERIC_PAYMENT_ERROR, n.currentPayment.status = "FAILED", T.showError(n.error);
|
|
397
397
|
} finally {
|
|
398
398
|
n.isPaymentInProgress = !1;
|
|
399
399
|
}
|
|
@@ -444,7 +444,7 @@ const V = 0, v = "unknown", n = q({
|
|
|
444
444
|
openInNewTab: n.openInNewTab
|
|
445
445
|
};
|
|
446
446
|
} catch (e) {
|
|
447
|
-
return e instanceof c ? n.error = e.message : n.error = N.GENERIC_PAYMENT_ERROR, n.isPaymentInProgress = !1,
|
|
447
|
+
return e instanceof c ? n.error = e.message : n.error = N.GENERIC_PAYMENT_ERROR, n.isPaymentInProgress = !1, T.showError(n.error), null;
|
|
448
448
|
}
|
|
449
449
|
},
|
|
450
450
|
async getBuyStatus(t, e) {
|
|
@@ -455,7 +455,7 @@ const V = 0, v = "unknown", n = q({
|
|
|
455
455
|
type: "track",
|
|
456
456
|
event: r.status === "SUCCESS" ? "PAY_SUCCESS" : "PAY_ERROR",
|
|
457
457
|
properties: {
|
|
458
|
-
message: r.status === "FAILED" ?
|
|
458
|
+
message: r.status === "FAILED" ? C.parseError(n.error) : void 0,
|
|
459
459
|
source: "pay",
|
|
460
460
|
paymentId: n.paymentId || v,
|
|
461
461
|
configuration: {
|
|
@@ -500,7 +500,7 @@ const V = 0, v = "unknown", n = q({
|
|
|
500
500
|
type: "track",
|
|
501
501
|
event: s,
|
|
502
502
|
properties: {
|
|
503
|
-
message: n.currentPayment.status === "FAILED" ?
|
|
503
|
+
message: n.currentPayment.status === "FAILED" ? C.parseError(n.error) : void 0,
|
|
504
504
|
source: "pay",
|
|
505
505
|
paymentId: n.paymentId || v,
|
|
506
506
|
configuration: {
|
|
@@ -678,9 +678,9 @@ let y = class extends F {
|
|
|
678
678
|
const s = await l.handlePayWithExchange(e);
|
|
679
679
|
s && (await x.open({
|
|
680
680
|
view: "PayLoading"
|
|
681
|
-
}),
|
|
681
|
+
}), C.openHref(s.url, s.openInNewTab ? "_blank" : "_self"));
|
|
682
682
|
} catch (s) {
|
|
683
|
-
console.error("Failed to pay with exchange", s),
|
|
683
|
+
console.error("Failed to pay with exchange", s), T.showError("Failed to pay with exchange");
|
|
684
684
|
} finally {
|
|
685
685
|
this.loadingExchangeId = null;
|
|
686
686
|
}
|
|
@@ -690,7 +690,7 @@ let y = class extends F {
|
|
|
690
690
|
try {
|
|
691
691
|
await w.disconnect();
|
|
692
692
|
} catch {
|
|
693
|
-
console.error("Failed to disconnect"),
|
|
693
|
+
console.error("Failed to disconnect"), T.showError("Failed to disconnect");
|
|
694
694
|
}
|
|
695
695
|
}
|
|
696
696
|
disconnectedCallback() {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { ao as yt,
|
|
2
|
-
import { U as _t, n as M, c as st, r as at } from "./index-
|
|
3
|
-
import "./index-
|
|
4
|
-
import "./index-
|
|
5
|
-
import { o as
|
|
6
|
-
import "./index-
|
|
7
|
-
import "./index-
|
|
1
|
+
import { ao as yt, n as nt, q as ot, x as w, r as Ct, C as pt, ap as R, b as xt, R as Rt, O as Nt, E as Lt, z as kt, W as jt } from "./index-Csp20V_C.js";
|
|
2
|
+
import { U as _t, n as M, c as st, r as at } from "./index-DlHufcDq.js";
|
|
3
|
+
import "./index-Bs_op1YX.js";
|
|
4
|
+
import "./index-QxHb_qeo.js";
|
|
5
|
+
import { o as Ft } from "./if-defined-DWpQnkBo.js";
|
|
6
|
+
import "./index-DKPj-Jsc.js";
|
|
7
|
+
import "./index-CpFp2zWs.js";
|
|
8
8
|
var mt = { exports: {} }, zt = mt.exports, Mt;
|
|
9
9
|
function Et() {
|
|
10
10
|
return Mt || (Mt = 1, function(t, e) {
|
|
@@ -619,7 +619,7 @@ var G = function(t, e, i, r) {
|
|
|
619
619
|
else for (var u = t.length - 1; u >= 0; u--) (s = t[u]) && (n = (o < 3 ? s(n) : o > 3 ? s(e, i, n) : s(e, i)) || n);
|
|
620
620
|
return o > 3 && n && Object.defineProperty(e, i, n), n;
|
|
621
621
|
};
|
|
622
|
-
let
|
|
622
|
+
let j = class extends ot {
|
|
623
623
|
constructor() {
|
|
624
624
|
super(...arguments), this.images = [], this.secondImage = {
|
|
625
625
|
type: void 0,
|
|
@@ -676,28 +676,28 @@ let F = class extends ot {
|
|
|
676
676
|
}
|
|
677
677
|
}
|
|
678
678
|
};
|
|
679
|
-
|
|
679
|
+
j.styles = [ne];
|
|
680
680
|
G([
|
|
681
681
|
M()
|
|
682
|
-
],
|
|
682
|
+
], j.prototype, "type", void 0);
|
|
683
683
|
G([
|
|
684
684
|
M()
|
|
685
|
-
],
|
|
685
|
+
], j.prototype, "status", void 0);
|
|
686
686
|
G([
|
|
687
687
|
M()
|
|
688
|
-
],
|
|
688
|
+
], j.prototype, "direction", void 0);
|
|
689
689
|
G([
|
|
690
690
|
M({ type: Boolean })
|
|
691
|
-
],
|
|
691
|
+
], j.prototype, "onlyDirectionIcon", void 0);
|
|
692
692
|
G([
|
|
693
693
|
M({ type: Array })
|
|
694
|
-
],
|
|
694
|
+
], j.prototype, "images", void 0);
|
|
695
695
|
G([
|
|
696
696
|
M({ type: Object })
|
|
697
|
-
],
|
|
698
|
-
|
|
697
|
+
], j.prototype, "secondImage", void 0);
|
|
698
|
+
j = G([
|
|
699
699
|
st("wui-transaction-visual")
|
|
700
|
-
],
|
|
700
|
+
], j);
|
|
701
701
|
const oe = nt`
|
|
702
702
|
:host {
|
|
703
703
|
width: 100%;
|
|
@@ -761,7 +761,7 @@ let L = class extends ot {
|
|
|
761
761
|
<wui-flex>
|
|
762
762
|
<wui-transaction-visual
|
|
763
763
|
.status=${this.status}
|
|
764
|
-
direction=${
|
|
764
|
+
direction=${Ft(this.direction)}
|
|
765
765
|
type=${this.type}
|
|
766
766
|
.onlyDirectionIcon=${this.onlyDirectionIcon}
|
|
767
767
|
.images=${this.images}
|
|
@@ -1082,7 +1082,7 @@ var P = function(t, e, i, r) {
|
|
|
1082
1082
|
return o > 3 && n && Object.defineProperty(e, i, n), n;
|
|
1083
1083
|
};
|
|
1084
1084
|
const At = "last-transaction", le = 7;
|
|
1085
|
-
let
|
|
1085
|
+
let F = class extends ot {
|
|
1086
1086
|
constructor() {
|
|
1087
1087
|
super(), this.unsubscribe = [], this.paginationObserver = void 0, this.page = "activity", this.caipAddress = pt.state.activeCaipAddress, this.transactionsByYear = R.state.transactionsByYear, this.loading = R.state.loading, this.empty = R.state.empty, this.next = R.state.next, R.clearCursor(), this.unsubscribe.push(pt.subscribeKey("activeCaipAddress", (e) => {
|
|
1088
1088
|
e && this.caipAddress !== e && (R.resetTransactions(), R.fetchTransactions(e)), this.caipAddress = e;
|
|
@@ -1231,7 +1231,7 @@ let j = class extends ot {
|
|
|
1231
1231
|
address: xt.getPlainAddress(this.caipAddress),
|
|
1232
1232
|
projectId: e,
|
|
1233
1233
|
cursor: this.next,
|
|
1234
|
-
isSmartAccount: kt(pt.state.activeChain) ===
|
|
1234
|
+
isSmartAccount: kt(pt.state.activeChain) === jt.ACCOUNT_TYPES.SMART_ACCOUNT
|
|
1235
1235
|
}
|
|
1236
1236
|
}));
|
|
1237
1237
|
}, {}), this.setPaginationObserver();
|
|
@@ -1257,25 +1257,25 @@ let j = class extends ot {
|
|
|
1257
1257
|
};
|
|
1258
1258
|
}
|
|
1259
1259
|
};
|
|
1260
|
-
|
|
1260
|
+
F.styles = ce;
|
|
1261
1261
|
P([
|
|
1262
1262
|
M()
|
|
1263
|
-
],
|
|
1263
|
+
], F.prototype, "page", void 0);
|
|
1264
1264
|
P([
|
|
1265
1265
|
at()
|
|
1266
|
-
],
|
|
1266
|
+
], F.prototype, "caipAddress", void 0);
|
|
1267
1267
|
P([
|
|
1268
1268
|
at()
|
|
1269
|
-
],
|
|
1269
|
+
], F.prototype, "transactionsByYear", void 0);
|
|
1270
1270
|
P([
|
|
1271
1271
|
at()
|
|
1272
|
-
],
|
|
1272
|
+
], F.prototype, "loading", void 0);
|
|
1273
1273
|
P([
|
|
1274
1274
|
at()
|
|
1275
|
-
],
|
|
1275
|
+
], F.prototype, "empty", void 0);
|
|
1276
1276
|
P([
|
|
1277
1277
|
at()
|
|
1278
|
-
],
|
|
1279
|
-
|
|
1278
|
+
], F.prototype, "next", void 0);
|
|
1279
|
+
F = P([
|
|
1280
1280
|
st("w3m-activity-list")
|
|
1281
|
-
],
|
|
1281
|
+
], F);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { a0 as d,
|
|
2
|
-
import { n as s, c as
|
|
3
|
-
import "./index-
|
|
1
|
+
import { a0 as d, n as g, r as u, q as m, x as p } from "./index-Csp20V_C.js";
|
|
2
|
+
import { n as s, c as v } from "./index-DlHufcDq.js";
|
|
3
|
+
import "./index-DKPj-Jsc.js";
|
|
4
4
|
const w = d`<svg width="86" height="96" fill="none">
|
|
5
5
|
<path
|
|
6
6
|
d="M78.3244 18.926L50.1808 2.45078C45.7376 -0.150261 40.2624 -0.150262 35.8192 2.45078L7.6756 18.926C3.23322 21.5266 0.5 26.3301 0.5 31.5248V64.4752C0.5 69.6699 3.23322 74.4734 7.6756 77.074L35.8192 93.5492C40.2624 96.1503 45.7376 96.1503 50.1808 93.5492L78.3244 77.074C82.7668 74.4734 85.5 69.6699 85.5 64.4752V31.5248C85.5 26.3301 82.7668 21.5266 78.3244 18.926Z"
|
|
@@ -65,7 +65,7 @@ var a = function(e, i, r, n) {
|
|
|
65
65
|
else for (var h = e.length - 1; h >= 0; h--) (c = e[h]) && (o = (l < 3 ? c(o) : l > 3 ? c(i, r, o) : c(i, r)) || o);
|
|
66
66
|
return l > 3 && o && Object.defineProperty(i, r, o), o;
|
|
67
67
|
};
|
|
68
|
-
let t = class extends
|
|
68
|
+
let t = class extends m {
|
|
69
69
|
constructor() {
|
|
70
70
|
super(...arguments), this.size = "md", this.name = "uknown", this.networkImagesBySize = {
|
|
71
71
|
sm: k,
|
|
@@ -118,7 +118,7 @@ a([
|
|
|
118
118
|
s({ type: Boolean })
|
|
119
119
|
], t.prototype, "round", void 0);
|
|
120
120
|
t = a([
|
|
121
|
-
|
|
121
|
+
v("wui-network-image")
|
|
122
122
|
], t);
|
|
123
123
|
export {
|
|
124
124
|
f as n
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { n as r, c as y, U as b } from "./index-
|
|
3
|
-
import { e as g, n as w } from "./ref-
|
|
1
|
+
import { n as d, r as m, o as c, q as f, v, x as h } from "./index-Csp20V_C.js";
|
|
2
|
+
import { n as r, c as y, U as b } from "./index-DlHufcDq.js";
|
|
3
|
+
import { e as g, n as w } from "./ref-CDkfw-zs.js";
|
|
4
4
|
const x = d`
|
|
5
5
|
:host {
|
|
6
6
|
position: relative;
|
|
@@ -65,9 +65,9 @@ const x = d`
|
|
|
65
65
|
}
|
|
66
66
|
`;
|
|
67
67
|
var a = function(t, e, n, s) {
|
|
68
|
-
var p = arguments.length, o = p < 3 ? e : s === null ? s = Object.getOwnPropertyDescriptor(e, n) : s,
|
|
68
|
+
var p = arguments.length, o = p < 3 ? e : s === null ? s = Object.getOwnPropertyDescriptor(e, n) : s, l;
|
|
69
69
|
if (typeof Reflect == "object" && typeof Reflect.decorate == "function") o = Reflect.decorate(t, e, n, s);
|
|
70
|
-
else for (var
|
|
70
|
+
else for (var u = t.length - 1; u >= 0; u--) (l = t[u]) && (o = (p < 3 ? l(o) : p > 3 ? l(e, n, o) : l(e, n)) || o);
|
|
71
71
|
return p > 3 && o && Object.defineProperty(e, n, o), o;
|
|
72
72
|
};
|
|
73
73
|
let i = class extends f {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { n as p, c as m } from "./index-
|
|
1
|
+
import { n as c, r as l, q as u, x as f } from "./index-Csp20V_C.js";
|
|
2
|
+
import { n as p, c as m } from "./index-DlHufcDq.js";
|
|
3
3
|
const g = c`
|
|
4
4
|
:host {
|
|
5
5
|
display: block;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { n as r, c as x } from "./index-
|
|
3
|
-
import "./index-
|
|
4
|
-
import "./index-
|
|
1
|
+
import { n as u, r as g, o as m, q as p, x as n } from "./index-Csp20V_C.js";
|
|
2
|
+
import { n as r, c as x } from "./index-DlHufcDq.js";
|
|
3
|
+
import "./index-DKPj-Jsc.js";
|
|
4
|
+
import "./index-CpFp2zWs.js";
|
|
5
5
|
const b = u`
|
|
6
6
|
button {
|
|
7
7
|
display: block;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { n as r, c as f } from "./index-
|
|
1
|
+
import { n as l, r as b, o as p, q as h, x as v } from "./index-Csp20V_C.js";
|
|
2
|
+
import { n as r, c as f } from "./index-DlHufcDq.js";
|
|
3
3
|
const m = l`
|
|
4
4
|
button {
|
|
5
5
|
background-color: transparent;
|
|
@@ -75,7 +75,7 @@ var i = function(t, o, n, s) {
|
|
|
75
75
|
else for (var u = t.length - 1; u >= 0; u--) (d = t[u]) && (e = (c < 3 ? d(e) : c > 3 ? d(o, n, e) : d(o, n)) || e);
|
|
76
76
|
return c > 3 && e && Object.defineProperty(o, n, e), e;
|
|
77
77
|
};
|
|
78
|
-
let a = class extends
|
|
78
|
+
let a = class extends h {
|
|
79
79
|
constructor() {
|
|
80
80
|
super(...arguments), this.size = "md", this.disabled = !1, this.icon = "copy", this.iconColor = "default", this.variant = "accent";
|
|
81
81
|
}
|
|
@@ -85,7 +85,7 @@ let a = class extends v {
|
|
|
85
85
|
primary: "inverse",
|
|
86
86
|
secondary: "default"
|
|
87
87
|
};
|
|
88
|
-
return
|
|
88
|
+
return v`
|
|
89
89
|
<button data-variant=${this.variant} ?disabled=${this.disabled} data-size=${this.size}>
|
|
90
90
|
<wui-icon
|
|
91
91
|
color=${o[this.variant] || this.iconColor}
|