@springmicro/auth 0.1.8 → 0.2.0-alpha.0
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/README.md +20 -15
- package/dist/Index-652aeb8c-BTQ1rBi7.js +2818 -0
- package/dist/Index-c419311f-BOZhAAW3.js +1054 -0
- package/dist/Web3Auth-hACKSouN.js +32769 -0
- package/dist/alphawallet-B7eovdf-.js +26 -0
- package/dist/apexwallet-ysP20G9D.js +93 -0
- package/dist/atoken-BBnNTzcz.js +27 -0
- package/dist/bifrostwallet-CNNBO92h.js +11 -0
- package/dist/binance-DvPgAzCw.js +14 -0
- package/dist/bitget-DZOUrwgy.js +4 -0
- package/dist/bitpie-C_uxmEzw.js +25 -0
- package/dist/bitski-DpzkHNkv.js +4 -0
- package/dist/blockwallet-BL69cqkA.js +8 -0
- package/dist/brave-DnRzMQYW.js +35 -0
- package/dist/ccip-c78d2f16-DLcRlwod.js +165 -0
- package/dist/coin98wallet-CkFdOvXt.js +4 -0
- package/dist/coinbase-CaGNx5if.js +9 -0
- package/dist/core-9rK8tWud.js +7 -0
- package/dist/defiwallet-0AsgJBSy.js +10 -0
- package/dist/detected-CX_JZaUk.js +6 -0
- package/dist/echooo-CmaetT_Z.js +14 -0
- package/dist/enkrypt-BibtwvK7.js +20 -0
- package/dist/exodus-BxzkDWWP.js +4 -0
- package/dist/fordefi-CvKyVwhI.js +6 -0
- package/dist/foxwallet-D7c_LDTf.js +4 -0
- package/dist/frame-CDfNmjUy.js +7 -0
- package/dist/frontier-DqKNSj2z.js +8 -0
- package/dist/huobiwallet-CxSwqa5L.js +14 -0
- package/dist/hyperpay-nmHE3WqM.js +7 -0
- package/dist/icon-2Zqy7pqQ.js +8 -0
- package/dist/icon-CGWI1Ies.js +43 -0
- package/dist/icon-C_O4nprO.js +9 -0
- package/dist/icon-DbgmZCnU.js +9 -0
- package/dist/icon-cAd7RhSC.js +9 -0
- package/dist/icon-duCa3gfT.js +11 -0
- package/dist/imtoken-yENtOTS3.js +17 -0
- package/dist/index-021f6a62-Zz543EDB.js +2583 -0
- package/dist/index-40a497ea-Bn2mC0r7.js +1010 -0
- package/dist/index-BHkXn9Ss.js +4010 -0
- package/dist/index-BaYEABY7.js +7089 -0
- package/dist/index-BtLU53lm.js +6023 -0
- package/dist/index-CynP9H3X.js +6188 -0
- package/dist/index-Dg8m-Szw.js +31 -0
- package/dist/index-Dt6M8ha9.js +161 -0
- package/dist/index-DtJfAdfq.js +5822 -0
- package/dist/index-klU8YB0c.js +1983 -0
- package/dist/index.d.ts +124 -0
- package/dist/index.js +5 -43
- package/dist/index.umd.cjs +1937 -1
- package/dist/infinitywallet-C8J4FUYw.js +42 -0
- package/dist/kayros-AIrUK1za.js +27 -0
- package/dist/lif3wallet-C5D6r8pg.js +41 -0
- package/dist/liquality-nbCtErVq.js +16 -0
- package/dist/mathwallet-CWkivCXo.js +50 -0
- package/dist/meetone-kKmvI8md.js +13 -0
- package/dist/metamask-BN7yiDV1.js +64 -0
- package/dist/mykey-CQZ6UcLH.js +13 -0
- package/dist/number-BXHWhlom.js +1529 -0
- package/dist/okxwallet-CJLVogh2.js +8 -0
- package/dist/oneInch-CciyZ4Pz.js +72 -0
- package/dist/onekey-Dal8kYjU.js +9 -0
- package/dist/opera-DnKg-TJU.js +24 -0
- package/dist/ownbit-BshJUVuW.js +18 -0
- package/dist/phantom-CJ8dIcov.js +35 -0
- package/dist/rabby-D4thTcd6.js +27 -0
- package/dist/rainbow-mXld6yWV.js +69 -0
- package/dist/roninwallet-ZyYrd-D1.js +9 -0
- package/dist/safeheron-Eg1Jb29V.js +23 -0
- package/dist/safepal-DVIKy94N.js +105 -0
- package/dist/sequence-BS2IbtDg.js +70 -0
- package/dist/stablewallet-jyB079Wb.js +20 -0
- package/dist/status-FrAvQjfn.js +4 -0
- package/dist/subwallet-DMvFqKyY.js +25 -0
- package/dist/talisman-Bp8zUXqB.js +16 -0
- package/dist/tallywallet-B4OS9nIr.js +16 -0
- package/dist/tokenary-C7jjcbQa.js +18 -0
- package/dist/tokenpocket-9ZRPmAFA.js +28 -0
- package/dist/tp-V2em5bdl.js +13 -0
- package/dist/transactionRequest-be6a8ea9-CUKWo5mx.js +1117 -0
- package/dist/trust-gPypS1O7.js +11 -0
- package/dist/xdefi-COVIyGz4.js +38 -0
- package/dist/zeal-DxHbDqm0.js +9 -0
- package/dist/zerion-BfW0UElc.js +8 -0
- package/dist/zodiacpilot-CrId6F4w.js +6 -0
- package/package.json +35 -15
- package/src/auth/config.ts +0 -2
- package/src/components/SignUp.tsx +442 -0
- package/src/components/forms/AgreementModal.tsx +88 -0
- package/src/components/forms/CaptchaController.tsx +94 -0
- package/src/components/forms/CaptchaModal.jsx +171 -0
- package/src/components/forms/CaptchaWidget.jsx +146 -0
- package/src/components/forms/PasswordChecker.ts +88 -0
- package/src/components/forms/SendCodeInput.tsx +149 -0
- package/src/components/forms/SignUpFormItem.tsx +704 -0
- package/src/components/forms/util/application-api.ts +155 -0
- package/src/components/forms/util/auth-api.ts +198 -0
- package/src/components/forms/util/auth-util.tsx +346 -0
- package/src/components/forms/util/core.ts +493 -0
- package/src/components/forms/util/invitation-api.ts +132 -0
- package/src/components/forms/util/provider.tsx +603 -0
- package/src/components/forms/util/user-api.ts +303 -0
- package/src/components/provider/AdfsLoginButton.jsx +38 -0
- package/src/components/provider/AlipayLoginButton.jsx +38 -0
- package/src/components/provider/AppleLoginButton.jsx +38 -0
- package/src/components/provider/AzureADB2CLoginButton.jsx +38 -0
- package/src/components/provider/AzureADLoginButton.jsx +38 -0
- package/src/components/provider/BaiduLoginButton.jsx +38 -0
- package/src/components/provider/BilibiliLoginButton.jsx +37 -0
- package/src/components/provider/CasdoorLoginButton.jsx +38 -0
- package/src/components/provider/DingTalkLoginButton.jsx +37 -0
- package/src/components/provider/DouyinLoginButton.jsx +38 -0
- package/src/components/provider/FacebookLoginButton.jsx +37 -0
- package/src/components/provider/GitHubLoginButton.jsx +37 -0
- package/src/components/provider/GitLabLoginButton.jsx +38 -0
- package/src/components/provider/GiteeLoginButton.jsx +34 -0
- package/src/components/provider/GoogleLoginButton.jsx +68 -0
- package/src/components/provider/InfoflowLoginButton.jsx +38 -0
- package/src/components/provider/LarkLoginButton.jsx +38 -0
- package/src/components/provider/LinkedInLoginButton.jsx +37 -0
- package/src/components/provider/LoginButton.jsx +33 -0
- package/src/components/provider/OktaLoginButton.jsx +38 -0
- package/src/components/provider/Provider.jsx +3 -0
- package/src/components/provider/ProviderButton.jsx +327 -0
- package/src/components/provider/QqLoginButton.jsx +31 -0
- package/src/components/provider/SelfLoginButton.jsx +47 -0
- package/src/components/provider/SlackLoginButton.jsx +38 -0
- package/src/components/provider/SteamLoginButton.jsx +38 -0
- package/src/components/provider/WeComLoginButton.jsx +34 -0
- package/src/components/provider/Web3Auth.jsx +365 -0
- package/src/components/provider/WechatLoginButton.jsx +37 -0
- package/src/components/provider/WeiboLoginButton.jsx +34 -0
- package/src/components/util.tsx +173 -0
- package/src/i18n/en/signup.json +48 -0
- package/src/i18n/index.ts +17 -0
- package/src/index.tsx +6 -1
- package/vite.config.ts +33 -25
|
@@ -0,0 +1,2818 @@
|
|
|
1
|
+
import { _ as Be, L as Ht, M as Bt, N as Dt, O as Wt, P as Nt, Q as Et, R as Ft, T as Ot, U as Zt, V as Rt, W as Gt, X as Ut, Y as Xt, Z as Yt, $ as pe, a0 as ve, a1 as me, a2 as he, a3 as h, a4 as z, a5 as p, a6 as M, a7 as c, a8 as Y, a9 as y, aa as ae, ab as A, ac as ie, ad as S, ae as te, af as ye, ag as Ce, ah as ee, ai as Qt, aj as F, ak as O, al as Z, am as De, an as R, ao as ue, ap as Me, aq as qe, ar as $t, as as We, at as P, au as be, av as ge, aw as L, ax as _e, ay as ce, az as Jt, aA as fe, aB as we, aC as At, aD as Kt, aE as j, aF as Ae, aG as Ne, aH as Ee, aI as Fe, aJ as ke, aK as Tt, aL as xt, aM as en, aN as Ve, aO as ze, aP as Mt, aQ as tn, aR as nn, aS as rn, aT as St, aU as on, aV as de, aW as Ie, aX as $e, aY as ln, aZ as je, a_ as an, a$ as sn, b0 as It, b1 as Pt, b2 as cn, b3 as dn, b4 as Oe, b5 as un, b6 as Ze, b7 as fn, b8 as Re, b9 as Pe, ba as Ge, bb as pn, bc as Le, bd as Ue, be as vn, bf as mn, bg as Xe, bh as hn } from "./Web3Auth-hACKSouN.js";
|
|
2
|
+
var gn = function(e) {
|
|
3
|
+
Be(t, e);
|
|
4
|
+
function t(n, r) {
|
|
5
|
+
return e.call(this) || this;
|
|
6
|
+
}
|
|
7
|
+
return t.prototype.schedule = function(n, r) {
|
|
8
|
+
return this;
|
|
9
|
+
}, t;
|
|
10
|
+
}(Ht), He = {
|
|
11
|
+
setInterval: function(e, t) {
|
|
12
|
+
for (var n = [], r = 2; r < arguments.length; r++)
|
|
13
|
+
n[r - 2] = arguments[r];
|
|
14
|
+
return setInterval.apply(void 0, Bt([e, t], Dt(n)));
|
|
15
|
+
},
|
|
16
|
+
clearInterval: function(e) {
|
|
17
|
+
var t = He.delegate;
|
|
18
|
+
return ((t == null ? void 0 : t.clearInterval) || clearInterval)(e);
|
|
19
|
+
},
|
|
20
|
+
delegate: void 0
|
|
21
|
+
}, bn = function(e) {
|
|
22
|
+
Be(t, e);
|
|
23
|
+
function t(n, r) {
|
|
24
|
+
var o = e.call(this, n, r) || this;
|
|
25
|
+
return o.scheduler = n, o.work = r, o.pending = !1, o;
|
|
26
|
+
}
|
|
27
|
+
return t.prototype.schedule = function(n, r) {
|
|
28
|
+
var o;
|
|
29
|
+
if (r === void 0 && (r = 0), this.closed)
|
|
30
|
+
return this;
|
|
31
|
+
this.state = n;
|
|
32
|
+
var l = this.id, a = this.scheduler;
|
|
33
|
+
return l != null && (this.id = this.recycleAsyncId(a, l, r)), this.pending = !0, this.delay = r, this.id = (o = this.id) !== null && o !== void 0 ? o : this.requestAsyncId(a, this.id, r), this;
|
|
34
|
+
}, t.prototype.requestAsyncId = function(n, r, o) {
|
|
35
|
+
return o === void 0 && (o = 0), He.setInterval(n.flush.bind(n, this), o);
|
|
36
|
+
}, t.prototype.recycleAsyncId = function(n, r, o) {
|
|
37
|
+
if (o === void 0 && (o = 0), o != null && this.delay === o && this.pending === !1)
|
|
38
|
+
return r;
|
|
39
|
+
r != null && He.clearInterval(r);
|
|
40
|
+
}, t.prototype.execute = function(n, r) {
|
|
41
|
+
if (this.closed)
|
|
42
|
+
return new Error("executing a cancelled action");
|
|
43
|
+
this.pending = !1;
|
|
44
|
+
var o = this._execute(n, r);
|
|
45
|
+
if (o)
|
|
46
|
+
return o;
|
|
47
|
+
this.pending === !1 && this.id != null && (this.id = this.recycleAsyncId(this.scheduler, this.id, null));
|
|
48
|
+
}, t.prototype._execute = function(n, r) {
|
|
49
|
+
var o = !1, l;
|
|
50
|
+
try {
|
|
51
|
+
this.work(n);
|
|
52
|
+
} catch (a) {
|
|
53
|
+
o = !0, l = a || new Error("Scheduled action threw falsy error");
|
|
54
|
+
}
|
|
55
|
+
if (o)
|
|
56
|
+
return this.unsubscribe(), l;
|
|
57
|
+
}, t.prototype.unsubscribe = function() {
|
|
58
|
+
if (!this.closed) {
|
|
59
|
+
var n = this, r = n.id, o = n.scheduler, l = o.actions;
|
|
60
|
+
this.work = this.state = this.scheduler = null, this.pending = !1, Wt(l, this), r != null && (this.id = this.recycleAsyncId(o, r, null)), this.delay = null, e.prototype.unsubscribe.call(this);
|
|
61
|
+
}
|
|
62
|
+
}, t;
|
|
63
|
+
}(gn), Ye = function() {
|
|
64
|
+
function e(t, n) {
|
|
65
|
+
n === void 0 && (n = e.now), this.schedulerActionCtor = t, this.now = n;
|
|
66
|
+
}
|
|
67
|
+
return e.prototype.schedule = function(t, n, r) {
|
|
68
|
+
return n === void 0 && (n = 0), new this.schedulerActionCtor(this, t).schedule(r, n);
|
|
69
|
+
}, e.now = Nt.now, e;
|
|
70
|
+
}(), _n = function(e) {
|
|
71
|
+
Be(t, e);
|
|
72
|
+
function t(n, r) {
|
|
73
|
+
r === void 0 && (r = Ye.now);
|
|
74
|
+
var o = e.call(this, n, r) || this;
|
|
75
|
+
return o.actions = [], o._active = !1, o;
|
|
76
|
+
}
|
|
77
|
+
return t.prototype.flush = function(n) {
|
|
78
|
+
var r = this.actions;
|
|
79
|
+
if (this._active) {
|
|
80
|
+
r.push(n);
|
|
81
|
+
return;
|
|
82
|
+
}
|
|
83
|
+
var o;
|
|
84
|
+
this._active = !0;
|
|
85
|
+
do
|
|
86
|
+
if (o = n.execute(n.state, n.delay))
|
|
87
|
+
break;
|
|
88
|
+
while (n = r.shift());
|
|
89
|
+
if (this._active = !1, o) {
|
|
90
|
+
for (; n = r.shift(); )
|
|
91
|
+
n.unsubscribe();
|
|
92
|
+
throw o;
|
|
93
|
+
}
|
|
94
|
+
}, t;
|
|
95
|
+
}(Ye), wn = new _n(bn);
|
|
96
|
+
function kn() {
|
|
97
|
+
for (var e = [], t = 0; t < arguments.length; t++)
|
|
98
|
+
e[t] = arguments[t];
|
|
99
|
+
var n = Et(e), r = Ft(e, 1 / 0), o = e;
|
|
100
|
+
return o.length ? o.length === 1 ? Zt(o[0]) : Rt(r)(Gt(o, n)) : Ot;
|
|
101
|
+
}
|
|
102
|
+
function yn(e, t) {
|
|
103
|
+
return t === void 0 && (t = wn), Ut(function(n, r) {
|
|
104
|
+
var o = null, l = null, a = null, s = function() {
|
|
105
|
+
if (o) {
|
|
106
|
+
o.unsubscribe(), o = null;
|
|
107
|
+
var f = l;
|
|
108
|
+
l = null, r.next(f);
|
|
109
|
+
}
|
|
110
|
+
};
|
|
111
|
+
function i() {
|
|
112
|
+
var f = a + e, d = t.now();
|
|
113
|
+
if (d < f) {
|
|
114
|
+
o = this.schedule(void 0, f - d), r.add(o);
|
|
115
|
+
return;
|
|
116
|
+
}
|
|
117
|
+
s();
|
|
118
|
+
}
|
|
119
|
+
n.subscribe(Xt(r, function(f) {
|
|
120
|
+
l = f, a = t.now(), o || (o = t.schedule(i, e), r.add(o));
|
|
121
|
+
}, function() {
|
|
122
|
+
s(), r.complete();
|
|
123
|
+
}, void 0, function() {
|
|
124
|
+
l = o = null;
|
|
125
|
+
}));
|
|
126
|
+
});
|
|
127
|
+
}
|
|
128
|
+
function Cn(e) {
|
|
129
|
+
return Yt(function(t, n) {
|
|
130
|
+
return e <= n;
|
|
131
|
+
});
|
|
132
|
+
}
|
|
133
|
+
var Lt = '<svg width="100%" height="24" viewBox="0 5 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M7 10L12 15L17 10H7Z" fill="currentColor"/></svg>', Se = `
|
|
134
|
+
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
135
|
+
<path d="M1 21H23L12 2L1 21ZM13 18H11V16H13V18ZM13 14H11V10H13V14Z" fill="currentColor"/>
|
|
136
|
+
</svg>
|
|
137
|
+
`;
|
|
138
|
+
function zn(e) {
|
|
139
|
+
he(e, "svelte-1uqued6", "select.svelte-1uqued6{border:none;background-image:none;background-color:transparent;-webkit-appearance:none;-webkit-box-shadow:none;-moz-box-shadow:none;box-shadow:none;appearance:none;font-size:var(--onboard-font-size-7, var(--font-size-7));line-height:var(--onboard-font-line-height-3, var(--font-line-height-3));transition:width 250ms ease-in-out;background-repeat:no-repeat, repeat;background-position:right 0px top 0px, 0 0;scrollbar-width:none;-ms-overflow-style:none;padding:0 14px 0 0;white-space:nowrap;text-overflow:ellipsis}select.minimized_ac.svelte-1uqued6{min-width:80px;max-width:80px}select.maximized_ac.svelte-1uqued6{width:auto !important}select.svelte-1uqued6:focus{outline:none}span.switching-placeholder.svelte-1uqued6{font-size:var(--onboard-font-size-7, var(--font-size-7));line-height:var(--onboard-font-line-height-3, var(--font-line-height-3));min-width:80px;max-width:80px;padding:0 8px 0 4px}");
|
|
140
|
+
}
|
|
141
|
+
function Qe(e, t, n) {
|
|
142
|
+
const r = e.slice();
|
|
143
|
+
return r[15] = t[n], r;
|
|
144
|
+
}
|
|
145
|
+
function Je(e) {
|
|
146
|
+
let t;
|
|
147
|
+
function n(l, a) {
|
|
148
|
+
return (
|
|
149
|
+
/*$switching$*/
|
|
150
|
+
l[7] ? An : $n
|
|
151
|
+
);
|
|
152
|
+
}
|
|
153
|
+
let r = n(e), o = r(e);
|
|
154
|
+
return {
|
|
155
|
+
c() {
|
|
156
|
+
o.c(), t = ue();
|
|
157
|
+
},
|
|
158
|
+
m(l, a) {
|
|
159
|
+
o.m(l, a), M(l, t, a);
|
|
160
|
+
},
|
|
161
|
+
p(l, a) {
|
|
162
|
+
r === (r = n(l)) && o ? o.p(l, a) : (o.d(1), o = r(l), o && (o.c(), o.m(t.parentNode, t)));
|
|
163
|
+
},
|
|
164
|
+
d(l) {
|
|
165
|
+
o.d(l), l && S(t);
|
|
166
|
+
}
|
|
167
|
+
};
|
|
168
|
+
}
|
|
169
|
+
function $n(e) {
|
|
170
|
+
let t, n = !Re(
|
|
171
|
+
/*wallet*/
|
|
172
|
+
e[6].chains[0],
|
|
173
|
+
/*chains*/
|
|
174
|
+
e[2]
|
|
175
|
+
), r, o = [], l = /* @__PURE__ */ new Map(), a, s, i, f, d, v = n && Ke(e), k = (
|
|
176
|
+
/*chains*/
|
|
177
|
+
e[2]
|
|
178
|
+
);
|
|
179
|
+
const b = (g) => (
|
|
180
|
+
/*chain*/
|
|
181
|
+
g[15].id
|
|
182
|
+
);
|
|
183
|
+
for (let g = 0; g < k.length; g += 1) {
|
|
184
|
+
let m = Qe(e, k, g), u = b(m);
|
|
185
|
+
l.set(u, o[g] = xe(u, m));
|
|
186
|
+
}
|
|
187
|
+
return {
|
|
188
|
+
c() {
|
|
189
|
+
t = h("select"), v && v.c(), r = ue();
|
|
190
|
+
for (let g = 0; g < o.length; g += 1)
|
|
191
|
+
o[g].c();
|
|
192
|
+
p(t, "class", a = Pe(`flex justify-center items-center pointer ${/*parentCSSId*/
|
|
193
|
+
e[4]}`) + " svelte-1uqued6"), p(t, "style", i = `
|
|
194
|
+
color: var(${/*colorVar*/
|
|
195
|
+
e[1]},
|
|
196
|
+
var(--account-center-network-selector-color, var(--gray-500)));
|
|
197
|
+
background-image: url('data:image/svg+xml;utf8,${/*selectIcon*/
|
|
198
|
+
e[0]}'); ${/*bold*/
|
|
199
|
+
e[3] ? "font-weight: 600;" : ""}`);
|
|
200
|
+
},
|
|
201
|
+
m(g, m) {
|
|
202
|
+
M(g, t, m), v && v.m(t, null), c(t, r);
|
|
203
|
+
for (let u = 0; u < o.length; u += 1)
|
|
204
|
+
o[u] && o[u].m(t, null);
|
|
205
|
+
Ge(
|
|
206
|
+
t,
|
|
207
|
+
/*wallet*/
|
|
208
|
+
e[6].chains[0].id
|
|
209
|
+
), e[13](t), f || (d = Y(
|
|
210
|
+
t,
|
|
211
|
+
"change",
|
|
212
|
+
/*handleSelect*/
|
|
213
|
+
e[10]
|
|
214
|
+
), f = !0);
|
|
215
|
+
},
|
|
216
|
+
p(g, m) {
|
|
217
|
+
m & /*wallet, chains*/
|
|
218
|
+
68 && (n = !Re(
|
|
219
|
+
/*wallet*/
|
|
220
|
+
g[6].chains[0],
|
|
221
|
+
/*chains*/
|
|
222
|
+
g[2]
|
|
223
|
+
)), n ? v ? v.p(g, m) : (v = Ke(g), v.c(), v.m(t, r)) : v && (v.d(1), v = null), m & /*chains, chainIdToLabel*/
|
|
224
|
+
4 && (k = /*chains*/
|
|
225
|
+
g[2], o = At(o, m, b, 1, g, k, l, t, pn, xe, null, Qe)), m & /*parentCSSId*/
|
|
226
|
+
16 && a !== (a = Pe(`flex justify-center items-center pointer ${/*parentCSSId*/
|
|
227
|
+
g[4]}`) + " svelte-1uqued6") && p(t, "class", a), m & /*wallet*/
|
|
228
|
+
64 && s !== (s = /*wallet*/
|
|
229
|
+
g[6].chains[0].id) && Ge(
|
|
230
|
+
t,
|
|
231
|
+
/*wallet*/
|
|
232
|
+
g[6].chains[0].id
|
|
233
|
+
), m & /*colorVar, selectIcon, bold*/
|
|
234
|
+
11 && i !== (i = `
|
|
235
|
+
color: var(${/*colorVar*/
|
|
236
|
+
g[1]},
|
|
237
|
+
var(--account-center-network-selector-color, var(--gray-500)));
|
|
238
|
+
background-image: url('data:image/svg+xml;utf8,${/*selectIcon*/
|
|
239
|
+
g[0]}'); ${/*bold*/
|
|
240
|
+
g[3] ? "font-weight: 600;" : ""}`) && p(t, "style", i);
|
|
241
|
+
},
|
|
242
|
+
d(g) {
|
|
243
|
+
g && S(t), v && v.d();
|
|
244
|
+
for (let m = 0; m < o.length; m += 1)
|
|
245
|
+
o[m].d();
|
|
246
|
+
e[13](null), f = !1, d();
|
|
247
|
+
}
|
|
248
|
+
};
|
|
249
|
+
}
|
|
250
|
+
function An(e) {
|
|
251
|
+
let t, n, r, o;
|
|
252
|
+
return {
|
|
253
|
+
c() {
|
|
254
|
+
t = h("span"), n = L("switching..."), p(t, "class", r = Pe(`switching-placeholder ${/*parentCSSId*/
|
|
255
|
+
e[4]}`) + " svelte-1uqued6"), p(t, "style", o = `
|
|
256
|
+
color: var(${/*colorVar*/
|
|
257
|
+
e[1]},
|
|
258
|
+
var(--account-center-network-selector-color, var(--gray-500)));
|
|
259
|
+
`);
|
|
260
|
+
},
|
|
261
|
+
m(l, a) {
|
|
262
|
+
M(l, t, a), c(t, n);
|
|
263
|
+
},
|
|
264
|
+
p(l, a) {
|
|
265
|
+
a & /*parentCSSId*/
|
|
266
|
+
16 && r !== (r = Pe(`switching-placeholder ${/*parentCSSId*/
|
|
267
|
+
l[4]}`) + " svelte-1uqued6") && p(t, "class", r), a & /*colorVar*/
|
|
268
|
+
2 && o !== (o = `
|
|
269
|
+
color: var(${/*colorVar*/
|
|
270
|
+
l[1]},
|
|
271
|
+
var(--account-center-network-selector-color, var(--gray-500)));
|
|
272
|
+
`) && p(t, "style", o);
|
|
273
|
+
},
|
|
274
|
+
d(l) {
|
|
275
|
+
l && S(t);
|
|
276
|
+
}
|
|
277
|
+
};
|
|
278
|
+
}
|
|
279
|
+
function Ke(e) {
|
|
280
|
+
let t, n = (Le[
|
|
281
|
+
/*wallet*/
|
|
282
|
+
e[6].chains[0].id
|
|
283
|
+
] || "unrecognized") + "", r, o;
|
|
284
|
+
return {
|
|
285
|
+
c() {
|
|
286
|
+
t = h("option"), r = L(n), t.__value = o = /*wallet*/
|
|
287
|
+
e[6].chains[0].id, t.value = t.__value;
|
|
288
|
+
},
|
|
289
|
+
m(l, a) {
|
|
290
|
+
M(l, t, a), c(t, r);
|
|
291
|
+
},
|
|
292
|
+
p(l, a) {
|
|
293
|
+
a & /*wallet*/
|
|
294
|
+
64 && n !== (n = (Le[
|
|
295
|
+
/*wallet*/
|
|
296
|
+
l[6].chains[0].id
|
|
297
|
+
] || "unrecognized") + "") && j(r, n), a & /*wallet*/
|
|
298
|
+
64 && o !== (o = /*wallet*/
|
|
299
|
+
l[6].chains[0].id) && (t.__value = o, t.value = t.__value);
|
|
300
|
+
},
|
|
301
|
+
d(l) {
|
|
302
|
+
l && S(t);
|
|
303
|
+
}
|
|
304
|
+
};
|
|
305
|
+
}
|
|
306
|
+
function xe(e, t) {
|
|
307
|
+
let n, r = (
|
|
308
|
+
/*chain*/
|
|
309
|
+
(t[15].label || Le[
|
|
310
|
+
/*chain*/
|
|
311
|
+
t[15].id
|
|
312
|
+
] || /*chain*/
|
|
313
|
+
t[15].id) + ""
|
|
314
|
+
), o, l;
|
|
315
|
+
return {
|
|
316
|
+
key: e,
|
|
317
|
+
first: null,
|
|
318
|
+
c() {
|
|
319
|
+
n = h("option"), o = L(r), n.__value = l = /*chain*/
|
|
320
|
+
t[15].id, n.value = n.__value, this.first = n;
|
|
321
|
+
},
|
|
322
|
+
m(a, s) {
|
|
323
|
+
M(a, n, s), c(n, o);
|
|
324
|
+
},
|
|
325
|
+
p(a, s) {
|
|
326
|
+
t = a, s & /*chains*/
|
|
327
|
+
4 && r !== (r = /*chain*/
|
|
328
|
+
(t[15].label || Le[
|
|
329
|
+
/*chain*/
|
|
330
|
+
t[15].id
|
|
331
|
+
] || /*chain*/
|
|
332
|
+
t[15].id) + "") && j(o, r), s & /*chains*/
|
|
333
|
+
4 && l !== (l = /*chain*/
|
|
334
|
+
t[15].id) && (n.__value = l, n.value = n.__value);
|
|
335
|
+
},
|
|
336
|
+
d(a) {
|
|
337
|
+
a && S(n);
|
|
338
|
+
}
|
|
339
|
+
};
|
|
340
|
+
}
|
|
341
|
+
function Tn(e) {
|
|
342
|
+
let t, n = (
|
|
343
|
+
/*wallet*/
|
|
344
|
+
e[6] && Je(e)
|
|
345
|
+
);
|
|
346
|
+
return {
|
|
347
|
+
c() {
|
|
348
|
+
n && n.c(), t = ue();
|
|
349
|
+
},
|
|
350
|
+
m(r, o) {
|
|
351
|
+
n && n.m(r, o), M(r, t, o);
|
|
352
|
+
},
|
|
353
|
+
p(r, [o]) {
|
|
354
|
+
/*wallet*/
|
|
355
|
+
r[6] ? n ? n.p(r, o) : (n = Je(r), n.c(), n.m(t.parentNode, t)) : n && (n.d(1), n = null);
|
|
356
|
+
},
|
|
357
|
+
i: R,
|
|
358
|
+
o: R,
|
|
359
|
+
d(r) {
|
|
360
|
+
n && n.d(r), r && S(t);
|
|
361
|
+
}
|
|
362
|
+
};
|
|
363
|
+
}
|
|
364
|
+
function Mn(e, t, n) {
|
|
365
|
+
let r, o, l, a;
|
|
366
|
+
ee(e, Me, (w) => n(12, l = w));
|
|
367
|
+
let { selectIcon: s = Lt } = t, { colorVar: i } = t, { chains: f } = t, { bold: d = !1 } = t, { parentCSSId: v = "" } = t;
|
|
368
|
+
const k = new an(!1);
|
|
369
|
+
ee(e, k, (w) => n(7, a = w));
|
|
370
|
+
let b;
|
|
371
|
+
const g = kn(Me, k.pipe(Cn(1))).pipe(yn(50), sn((w, C) => typeof w == "boolean" || typeof C == "boolean" ? !1 : w[0] && C[0] && w[0].chains[0].id === C[0].chains[0].id));
|
|
372
|
+
ee(e, g, (w) => n(11, o = w));
|
|
373
|
+
async function m() {
|
|
374
|
+
const w = b.selectedOptions[0].value;
|
|
375
|
+
w !== r.chains[0].id && (k.next(!0), await cn({
|
|
376
|
+
chainId: w,
|
|
377
|
+
chainNamespace: "evm",
|
|
378
|
+
wallet: r.label
|
|
379
|
+
}), k.next(!1));
|
|
380
|
+
}
|
|
381
|
+
function u() {
|
|
382
|
+
if (!b) return;
|
|
383
|
+
let w = document.createElement("option");
|
|
384
|
+
w.textContent = b.selectedOptions[0].textContent;
|
|
385
|
+
let C = document.createElement("select");
|
|
386
|
+
C.style.visibility = "hidden", C.style.position = "fixed", C.appendChild(w), b.after(C), n(5, b.style.width = `${C.clientWidth - 22}px`, b), C.remove();
|
|
387
|
+
}
|
|
388
|
+
function _(w) {
|
|
389
|
+
Tt[w ? "unshift" : "push"](() => {
|
|
390
|
+
b = w, n(5, b), n(2, f), n(6, r), n(12, l);
|
|
391
|
+
});
|
|
392
|
+
}
|
|
393
|
+
return e.$$set = (w) => {
|
|
394
|
+
"selectIcon" in w && n(0, s = w.selectIcon), "colorVar" in w && n(1, i = w.colorVar), "chains" in w && n(2, f = w.chains), "bold" in w && n(3, d = w.bold), "parentCSSId" in w && n(4, v = w.parentCSSId);
|
|
395
|
+
}, e.$$.update = () => {
|
|
396
|
+
e.$$.dirty & /*$wallets$*/
|
|
397
|
+
4096 && n(6, [r] = l, r), e.$$.dirty & /*$resize$*/
|
|
398
|
+
2048 && o && u();
|
|
399
|
+
}, [
|
|
400
|
+
s,
|
|
401
|
+
i,
|
|
402
|
+
f,
|
|
403
|
+
d,
|
|
404
|
+
v,
|
|
405
|
+
b,
|
|
406
|
+
r,
|
|
407
|
+
a,
|
|
408
|
+
k,
|
|
409
|
+
g,
|
|
410
|
+
m,
|
|
411
|
+
o,
|
|
412
|
+
l,
|
|
413
|
+
_
|
|
414
|
+
];
|
|
415
|
+
}
|
|
416
|
+
class qt extends pe {
|
|
417
|
+
constructor(t) {
|
|
418
|
+
super(), ve(
|
|
419
|
+
this,
|
|
420
|
+
t,
|
|
421
|
+
Mn,
|
|
422
|
+
Tn,
|
|
423
|
+
me,
|
|
424
|
+
{
|
|
425
|
+
selectIcon: 0,
|
|
426
|
+
colorVar: 1,
|
|
427
|
+
chains: 2,
|
|
428
|
+
bold: 3,
|
|
429
|
+
parentCSSId: 4
|
|
430
|
+
},
|
|
431
|
+
zn
|
|
432
|
+
);
|
|
433
|
+
}
|
|
434
|
+
}
|
|
435
|
+
var Sn = `
|
|
436
|
+
<svg width="100%" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
437
|
+
<path d="M12 8C13.1 8 14 7.1 14 6C14 4.9 13.1 4 12 4C10.9 4 10 4.9 10 6C10 7.1 10.9 8 12 8ZM12 10C10.9 10 10 10.9 10 12C10 13.1 10.9 14 12 14C13.1 14 14 13.1 14 12C14 10.9 13.1 10 12 10ZM12 16C10.9 16 10 16.9 10 18C10 19.1 10.9 20 12 20C13.1 20 14 19.1 14 18C14 16.9 13.1 16 12 16Z" fill="currentColor"/>
|
|
438
|
+
</svg>
|
|
439
|
+
`;
|
|
440
|
+
function In(e) {
|
|
441
|
+
he(e, "svelte-hb2n95", `.container.svelte-hb2n95.svelte-hb2n95{display:flex;align-items:center;gap:0.5rem;cursor:pointer;position:relative;z-index:0;width:100%;padding:0.25rem;margin-bottom:0.25rem;border-radius:12px;transition:background-color 150ms ease-in-out}.container.svelte-hb2n95.svelte-hb2n95::before{content:'';display:block;position:absolute;top:0;bottom:0;left:0;right:0;height:100%;width:100%;background:var(--action-color);border-radius:12px;z-index:-1;opacity:0}.container.svelte-hb2n95.svelte-hb2n95:hover::before{opacity:0.2}.container.svelte-hb2n95:hover .balance.svelte-hb2n95,.container.svelte-hb2n95:hover .elipsis-container.svelte-hb2n95{opacity:1}.container.svelte-hb2n95:hover .balance.svelte-hb2n95{color:var(--account-center-maximized-balance-color, inherit)}.container.primary.svelte-hb2n95.svelte-hb2n95:hover{background-color:var(
|
|
442
|
+
--account-center-maximized-account-section-background-hover
|
|
443
|
+
)}.account-details.svelte-hb2n95.svelte-hb2n95{flex:1 1;display:flex;gap:inherit;overflow:hidden}.address-domain.svelte-hb2n95.svelte-hb2n95{flex:1 0 auto;max-width:70%;white-space:nowrap;font-weight:600;color:var(--account-center-maximized-address-color, inherit);overflow:scroll;scrollbar-width:none;-ms-overflow-style:none}.address-domain.svelte-hb2n95.svelte-hb2n95::-webkit-scrollbar{display:none}.balance.svelte-hb2n95.svelte-hb2n95{flex:1 1 auto;max-width:70%;white-space:nowrap;text-align:end;opacity:0.4;transition:color 150ms ease-in-out, background-color 150ms ease-in-out;overflow:scroll;scrollbar-width:none;-ms-overflow-style:none}.balance.svelte-hb2n95.svelte-hb2n95::-webkit-scrollbar{display:none}.elipsis-container.svelte-hb2n95.svelte-hb2n95{flex:0;padding:0.25rem;border-radius:24px;transition:color 150ms ease-in-out, background-color 150ms ease-in-out;background-color:transparent;opacity:0.4}.elipsis-container.svelte-hb2n95.svelte-hb2n95:hover{color:var(--text-color)}.elipsis-container.active.svelte-hb2n95.svelte-hb2n95{color:var(--text-color)}.elipsis.svelte-hb2n95.svelte-hb2n95{width:24px}.menu.svelte-hb2n95.svelte-hb2n95{background:var(--onboard-white, var(--white));border:1px solid var(--onboard-gray-100, var(--gray-100));border-radius:8px;list-style-type:none;right:0.25rem;top:2.25rem;margin:0;padding:0;border:none;overflow:hidden;z-index:1}.menu.svelte-hb2n95 li.svelte-hb2n95{color:var(--onboard-primary-500, var(--primary-500));font-size:var(--onboard-font-size-5, var(--font-size-5));line-height:var(--onboard-font-line-height-3, var(--font-line-height-3));padding:12px 16px;background:var(--onboard-white, var(--white));transition:background-color 150ms ease-in-out;cursor:pointer}.menu.svelte-hb2n95 li.svelte-hb2n95:hover{background:var(--onboard-primary-200, var(--primary-200))}`);
|
|
444
|
+
}
|
|
445
|
+
function et(e, t, n) {
|
|
446
|
+
const r = e.slice();
|
|
447
|
+
return r[14] = t[n].address, r[15] = t[n].ens, r[16] = t[n].uns, r[17] = t[n].balance, r[19] = n, r;
|
|
448
|
+
}
|
|
449
|
+
function tt(e) {
|
|
450
|
+
let t, n, r;
|
|
451
|
+
return n = new Ve({ props: { size: 14 } }), {
|
|
452
|
+
c() {
|
|
453
|
+
t = h("div"), F(n.$$.fragment), _e(t, "right", "-5px"), _e(t, "bottom", "-5px"), p(t, "class", "drop-shadow absolute");
|
|
454
|
+
},
|
|
455
|
+
m(o, l) {
|
|
456
|
+
M(o, t, l), O(n, t, null), r = !0;
|
|
457
|
+
},
|
|
458
|
+
i(o) {
|
|
459
|
+
r || (y(n.$$.fragment, o), r = !0);
|
|
460
|
+
},
|
|
461
|
+
o(o) {
|
|
462
|
+
A(n.$$.fragment, o), r = !1;
|
|
463
|
+
},
|
|
464
|
+
d(o) {
|
|
465
|
+
o && S(t), Z(n);
|
|
466
|
+
}
|
|
467
|
+
};
|
|
468
|
+
}
|
|
469
|
+
function nt(e) {
|
|
470
|
+
let t, n = at(
|
|
471
|
+
/*balance*/
|
|
472
|
+
e[17]
|
|
473
|
+
) + "", r, o;
|
|
474
|
+
return {
|
|
475
|
+
c() {
|
|
476
|
+
t = h("div"), r = L(n), p(t, "class", "balance svelte-hb2n95");
|
|
477
|
+
},
|
|
478
|
+
m(l, a) {
|
|
479
|
+
M(l, t, a), c(t, r);
|
|
480
|
+
},
|
|
481
|
+
p(l, a) {
|
|
482
|
+
a & /*wallet*/
|
|
483
|
+
1 && n !== (n = at(
|
|
484
|
+
/*balance*/
|
|
485
|
+
l[17]
|
|
486
|
+
) + "") && j(r, n);
|
|
487
|
+
},
|
|
488
|
+
i(l) {
|
|
489
|
+
l && (o || Ae(() => {
|
|
490
|
+
o = Ie(t, $e, {}), o.start();
|
|
491
|
+
}));
|
|
492
|
+
},
|
|
493
|
+
o: R,
|
|
494
|
+
d(l) {
|
|
495
|
+
l && S(t);
|
|
496
|
+
}
|
|
497
|
+
};
|
|
498
|
+
}
|
|
499
|
+
function rt(e) {
|
|
500
|
+
let t, n, r = (
|
|
501
|
+
/*$_*/
|
|
502
|
+
e[4]("accountCenter.addAccount", {
|
|
503
|
+
default: (
|
|
504
|
+
/*en*/
|
|
505
|
+
e[2].accountCenter.addAccount
|
|
506
|
+
)
|
|
507
|
+
}) + ""
|
|
508
|
+
), o, l, a, s, i = (
|
|
509
|
+
/*$_*/
|
|
510
|
+
e[4]("accountCenter.disconnectWallet", {
|
|
511
|
+
default: (
|
|
512
|
+
/*en*/
|
|
513
|
+
e[2].accountCenter.disconnectWallet
|
|
514
|
+
)
|
|
515
|
+
}) + ""
|
|
516
|
+
), f, d, v, k = (
|
|
517
|
+
/*en*/
|
|
518
|
+
e[2].accountCenter.copyAddress + ""
|
|
519
|
+
), b, g, m, u, _ = !/*primary*/
|
|
520
|
+
(e[1] && /*i*/
|
|
521
|
+
e[19] === 0) && ot(e);
|
|
522
|
+
function w() {
|
|
523
|
+
return (
|
|
524
|
+
/*click_handler_5*/
|
|
525
|
+
e[13](
|
|
526
|
+
/*ens*/
|
|
527
|
+
e[15],
|
|
528
|
+
/*uns*/
|
|
529
|
+
e[16],
|
|
530
|
+
/*address*/
|
|
531
|
+
e[14]
|
|
532
|
+
)
|
|
533
|
+
);
|
|
534
|
+
}
|
|
535
|
+
return {
|
|
536
|
+
c() {
|
|
537
|
+
t = h("ul"), n = h("li"), o = L(r), l = z(), _ && _.c(), a = z(), s = h("li"), f = L(i), d = z(), v = h("li"), b = L(k), p(n, "class", "svelte-hb2n95"), p(s, "class", "svelte-hb2n95"), p(v, "class", "svelte-hb2n95"), p(t, "class", "menu absolute svelte-hb2n95");
|
|
538
|
+
},
|
|
539
|
+
m(C, $) {
|
|
540
|
+
M(C, t, $), c(t, n), c(n, o), c(t, l), _ && _.m(t, null), c(t, a), c(t, s), c(s, f), c(t, d), c(t, v), c(v, b), m || (u = [
|
|
541
|
+
Y(n, "click", fe(
|
|
542
|
+
/*click_handler_2*/
|
|
543
|
+
e[10]
|
|
544
|
+
)),
|
|
545
|
+
Y(s, "click", fe(
|
|
546
|
+
/*click_handler_4*/
|
|
547
|
+
e[12]
|
|
548
|
+
)),
|
|
549
|
+
Y(v, "click", fe(w))
|
|
550
|
+
], m = !0);
|
|
551
|
+
},
|
|
552
|
+
p(C, $) {
|
|
553
|
+
e = C, $ & /*$_, en*/
|
|
554
|
+
20 && r !== (r = /*$_*/
|
|
555
|
+
e[4]("accountCenter.addAccount", {
|
|
556
|
+
default: (
|
|
557
|
+
/*en*/
|
|
558
|
+
e[2].accountCenter.addAccount
|
|
559
|
+
)
|
|
560
|
+
}) + "") && j(o, r), /*primary*/
|
|
561
|
+
e[1] && /*i*/
|
|
562
|
+
e[19] === 0 ? _ && (_.d(1), _ = null) : _ ? _.p(e, $) : (_ = ot(e), _.c(), _.m(t, a)), $ & /*$_, en*/
|
|
563
|
+
20 && i !== (i = /*$_*/
|
|
564
|
+
e[4]("accountCenter.disconnectWallet", {
|
|
565
|
+
default: (
|
|
566
|
+
/*en*/
|
|
567
|
+
e[2].accountCenter.disconnectWallet
|
|
568
|
+
)
|
|
569
|
+
}) + "") && j(f, i), $ & /*en*/
|
|
570
|
+
4 && k !== (k = /*en*/
|
|
571
|
+
e[2].accountCenter.copyAddress + "") && j(b, k);
|
|
572
|
+
},
|
|
573
|
+
i(C) {
|
|
574
|
+
C && (g || Ae(() => {
|
|
575
|
+
g = Ie(t, $e, {}), g.start();
|
|
576
|
+
}));
|
|
577
|
+
},
|
|
578
|
+
o: R,
|
|
579
|
+
d(C) {
|
|
580
|
+
C && S(t), _ && _.d(), m = !1, ke(u);
|
|
581
|
+
}
|
|
582
|
+
};
|
|
583
|
+
}
|
|
584
|
+
function ot(e) {
|
|
585
|
+
let t, n = (
|
|
586
|
+
/*$_*/
|
|
587
|
+
e[4]("accountCenter.setPrimaryAccount", {
|
|
588
|
+
default: (
|
|
589
|
+
/*en*/
|
|
590
|
+
e[2].accountCenter.setPrimaryAccount
|
|
591
|
+
)
|
|
592
|
+
}) + ""
|
|
593
|
+
), r, o, l;
|
|
594
|
+
function a() {
|
|
595
|
+
return (
|
|
596
|
+
/*click_handler_3*/
|
|
597
|
+
e[11](
|
|
598
|
+
/*address*/
|
|
599
|
+
e[14]
|
|
600
|
+
)
|
|
601
|
+
);
|
|
602
|
+
}
|
|
603
|
+
return {
|
|
604
|
+
c() {
|
|
605
|
+
t = h("li"), r = L(n), p(t, "class", "svelte-hb2n95");
|
|
606
|
+
},
|
|
607
|
+
m(s, i) {
|
|
608
|
+
M(s, t, i), c(t, r), o || (l = Y(t, "click", fe(a)), o = !0);
|
|
609
|
+
},
|
|
610
|
+
p(s, i) {
|
|
611
|
+
e = s, i & /*$_, en*/
|
|
612
|
+
20 && n !== (n = /*$_*/
|
|
613
|
+
e[4]("accountCenter.setPrimaryAccount", {
|
|
614
|
+
default: (
|
|
615
|
+
/*en*/
|
|
616
|
+
e[2].accountCenter.setPrimaryAccount
|
|
617
|
+
)
|
|
618
|
+
}) + "") && j(r, n);
|
|
619
|
+
},
|
|
620
|
+
d(s) {
|
|
621
|
+
s && S(t), o = !1, l();
|
|
622
|
+
}
|
|
623
|
+
};
|
|
624
|
+
}
|
|
625
|
+
function lt(e) {
|
|
626
|
+
let t, n, r, o, l, a, s, i, f = (
|
|
627
|
+
/*ens*/
|
|
628
|
+
(e[15] ? de(
|
|
629
|
+
/*ens*/
|
|
630
|
+
e[15].name
|
|
631
|
+
) : (
|
|
632
|
+
/*uns*/
|
|
633
|
+
e[16] ? de(
|
|
634
|
+
/*uns*/
|
|
635
|
+
e[16].name
|
|
636
|
+
) : je(
|
|
637
|
+
/*address*/
|
|
638
|
+
e[14]
|
|
639
|
+
)
|
|
640
|
+
)) + ""
|
|
641
|
+
), d, v, k, b, g, m, u, _, w, C;
|
|
642
|
+
o = new be({
|
|
643
|
+
props: {
|
|
644
|
+
size: 32,
|
|
645
|
+
padding: 4,
|
|
646
|
+
background: "custom",
|
|
647
|
+
color: "#EFF1FC",
|
|
648
|
+
customBackgroundColor: (
|
|
649
|
+
/*primary*/
|
|
650
|
+
e[1] && /*i*/
|
|
651
|
+
e[19] === 0 ? "rgba(24, 206, 102, 0.2)" : "rgba(235, 235, 237, 0.1)"
|
|
652
|
+
),
|
|
653
|
+
border: (
|
|
654
|
+
/*primary*/
|
|
655
|
+
e[1] && /*i*/
|
|
656
|
+
e[19] === 0 ? "green" : "gray"
|
|
657
|
+
),
|
|
658
|
+
radius: 8,
|
|
659
|
+
icon: (
|
|
660
|
+
/*wallet*/
|
|
661
|
+
e[0].icon
|
|
662
|
+
)
|
|
663
|
+
}
|
|
664
|
+
});
|
|
665
|
+
let $ = (
|
|
666
|
+
/*primary*/
|
|
667
|
+
e[1] && /*i*/
|
|
668
|
+
e[19] === 0 && tt()
|
|
669
|
+
), I = (
|
|
670
|
+
/*balance*/
|
|
671
|
+
e[17] && nt(e)
|
|
672
|
+
);
|
|
673
|
+
function B() {
|
|
674
|
+
return (
|
|
675
|
+
/*click_handler*/
|
|
676
|
+
e[8](
|
|
677
|
+
/*address*/
|
|
678
|
+
e[14]
|
|
679
|
+
)
|
|
680
|
+
);
|
|
681
|
+
}
|
|
682
|
+
function D() {
|
|
683
|
+
return (
|
|
684
|
+
/*click_handler_1*/
|
|
685
|
+
e[9](
|
|
686
|
+
/*address*/
|
|
687
|
+
e[14]
|
|
688
|
+
)
|
|
689
|
+
);
|
|
690
|
+
}
|
|
691
|
+
let H = (
|
|
692
|
+
/*showMenu*/
|
|
693
|
+
e[3] === /*address*/
|
|
694
|
+
e[14] && rt(e)
|
|
695
|
+
);
|
|
696
|
+
return {
|
|
697
|
+
c() {
|
|
698
|
+
t = h("div"), n = h("div"), r = h("div"), F(o.$$.fragment), l = z(), $ && $.c(), a = z(), s = h("div"), i = h("div"), d = L(f), v = z(), I && I.c(), k = z(), b = h("div"), g = h("div"), m = z(), H && H.c(), u = z(), p(r, "class", "flex items-center relative"), p(i, "class", "address-domain svelte-hb2n95"), p(s, "class", "account-details svelte-hb2n95"), p(g, "class", "elipsis pointer flex items-center justify-center relative svelte-hb2n95"), p(b, "class", "elipsis-container svelte-hb2n95"), ce(
|
|
699
|
+
b,
|
|
700
|
+
"active",
|
|
701
|
+
/*showMenu*/
|
|
702
|
+
e[3] === /*address*/
|
|
703
|
+
e[14]
|
|
704
|
+
), p(n, "class", "container svelte-hb2n95"), ce(
|
|
705
|
+
n,
|
|
706
|
+
"primary",
|
|
707
|
+
/*primary*/
|
|
708
|
+
e[1] && /*i*/
|
|
709
|
+
e[19] === 0
|
|
710
|
+
), p(t, "class", "relative");
|
|
711
|
+
},
|
|
712
|
+
m(q, W) {
|
|
713
|
+
M(q, t, W), c(t, n), c(n, r), O(o, r, null), c(r, l), $ && $.m(r, null), c(n, a), c(n, s), c(s, i), c(i, d), c(s, v), I && I.m(s, null), c(n, k), c(n, b), c(b, g), g.innerHTML = Sn, c(t, m), H && H.m(t, null), c(t, u), _ = !0, w || (C = [
|
|
714
|
+
Y(g, "click", fe(B)),
|
|
715
|
+
Y(n, "click", D)
|
|
716
|
+
], w = !0);
|
|
717
|
+
},
|
|
718
|
+
p(q, W) {
|
|
719
|
+
e = q;
|
|
720
|
+
const U = {};
|
|
721
|
+
W & /*primary*/
|
|
722
|
+
2 && (U.customBackgroundColor = /*primary*/
|
|
723
|
+
e[1] && /*i*/
|
|
724
|
+
e[19] === 0 ? "rgba(24, 206, 102, 0.2)" : "rgba(235, 235, 237, 0.1)"), W & /*primary*/
|
|
725
|
+
2 && (U.border = /*primary*/
|
|
726
|
+
e[1] && /*i*/
|
|
727
|
+
e[19] === 0 ? "green" : "gray"), W & /*wallet*/
|
|
728
|
+
1 && (U.icon = /*wallet*/
|
|
729
|
+
e[0].icon), o.$set(U), /*primary*/
|
|
730
|
+
e[1] && /*i*/
|
|
731
|
+
e[19] === 0 ? $ ? W & /*primary*/
|
|
732
|
+
2 && y($, 1) : ($ = tt(), $.c(), y($, 1), $.m(r, null)) : $ && (ae(), A($, 1, 1, () => {
|
|
733
|
+
$ = null;
|
|
734
|
+
}), ie()), (!_ || W & /*wallet*/
|
|
735
|
+
1) && f !== (f = /*ens*/
|
|
736
|
+
(e[15] ? de(
|
|
737
|
+
/*ens*/
|
|
738
|
+
e[15].name
|
|
739
|
+
) : (
|
|
740
|
+
/*uns*/
|
|
741
|
+
e[16] ? de(
|
|
742
|
+
/*uns*/
|
|
743
|
+
e[16].name
|
|
744
|
+
) : je(
|
|
745
|
+
/*address*/
|
|
746
|
+
e[14]
|
|
747
|
+
)
|
|
748
|
+
)) + "") && j(d, f), /*balance*/
|
|
749
|
+
e[17] ? I ? (I.p(e, W), W & /*wallet*/
|
|
750
|
+
1 && y(I, 1)) : (I = nt(e), I.c(), y(I, 1), I.m(s, null)) : I && (I.d(1), I = null), (!_ || W & /*showMenu, wallet*/
|
|
751
|
+
9) && ce(
|
|
752
|
+
b,
|
|
753
|
+
"active",
|
|
754
|
+
/*showMenu*/
|
|
755
|
+
e[3] === /*address*/
|
|
756
|
+
e[14]
|
|
757
|
+
), (!_ || W & /*primary*/
|
|
758
|
+
2) && ce(
|
|
759
|
+
n,
|
|
760
|
+
"primary",
|
|
761
|
+
/*primary*/
|
|
762
|
+
e[1] && /*i*/
|
|
763
|
+
e[19] === 0
|
|
764
|
+
), /*showMenu*/
|
|
765
|
+
e[3] === /*address*/
|
|
766
|
+
e[14] ? H ? (H.p(e, W), W & /*showMenu, wallet*/
|
|
767
|
+
9 && y(H, 1)) : (H = rt(e), H.c(), y(H, 1), H.m(t, u)) : H && (H.d(1), H = null);
|
|
768
|
+
},
|
|
769
|
+
i(q) {
|
|
770
|
+
_ || (y(o.$$.fragment, q), y($), y(I), y(H), _ = !0);
|
|
771
|
+
},
|
|
772
|
+
o(q) {
|
|
773
|
+
A(o.$$.fragment, q), A($), _ = !1;
|
|
774
|
+
},
|
|
775
|
+
d(q) {
|
|
776
|
+
q && S(t), Z(o), $ && $.d(), I && I.d(), H && H.d(), w = !1, ke(C);
|
|
777
|
+
}
|
|
778
|
+
};
|
|
779
|
+
}
|
|
780
|
+
function Pn(e) {
|
|
781
|
+
let t, n, r = (
|
|
782
|
+
/*wallet*/
|
|
783
|
+
e[0].accounts
|
|
784
|
+
), o = [];
|
|
785
|
+
for (let a = 0; a < r.length; a += 1)
|
|
786
|
+
o[a] = lt(et(e, r, a));
|
|
787
|
+
const l = (a) => A(o[a], 1, 1, () => {
|
|
788
|
+
o[a] = null;
|
|
789
|
+
});
|
|
790
|
+
return {
|
|
791
|
+
c() {
|
|
792
|
+
for (let a = 0; a < o.length; a += 1)
|
|
793
|
+
o[a].c();
|
|
794
|
+
t = ue();
|
|
795
|
+
},
|
|
796
|
+
m(a, s) {
|
|
797
|
+
for (let i = 0; i < o.length; i += 1)
|
|
798
|
+
o[i] && o[i].m(a, s);
|
|
799
|
+
M(a, t, s), n = !0;
|
|
800
|
+
},
|
|
801
|
+
p(a, [s]) {
|
|
802
|
+
if (s & /*copyWalletAddress, wallet, changeText, en, showMenu, disconnect, $_, setPrimaryWallet, primary, selectAnotherAccount, elipsisIcon, formatBalance, shortenDomain, shortenAddress*/
|
|
803
|
+
127) {
|
|
804
|
+
r = /*wallet*/
|
|
805
|
+
a[0].accounts;
|
|
806
|
+
let i;
|
|
807
|
+
for (i = 0; i < r.length; i += 1) {
|
|
808
|
+
const f = et(a, r, i);
|
|
809
|
+
o[i] ? (o[i].p(f, s), y(o[i], 1)) : (o[i] = lt(f), o[i].c(), y(o[i], 1), o[i].m(t.parentNode, t));
|
|
810
|
+
}
|
|
811
|
+
for (ae(), i = r.length; i < o.length; i += 1)
|
|
812
|
+
l(i);
|
|
813
|
+
ie();
|
|
814
|
+
}
|
|
815
|
+
},
|
|
816
|
+
i(a) {
|
|
817
|
+
if (!n) {
|
|
818
|
+
for (let s = 0; s < r.length; s += 1)
|
|
819
|
+
y(o[s]);
|
|
820
|
+
n = !0;
|
|
821
|
+
}
|
|
822
|
+
},
|
|
823
|
+
o(a) {
|
|
824
|
+
o = o.filter(Boolean);
|
|
825
|
+
for (let s = 0; s < o.length; s += 1)
|
|
826
|
+
A(o[s]);
|
|
827
|
+
n = !1;
|
|
828
|
+
},
|
|
829
|
+
d(a) {
|
|
830
|
+
It(o, a), a && S(t);
|
|
831
|
+
}
|
|
832
|
+
};
|
|
833
|
+
}
|
|
834
|
+
function at(e) {
|
|
835
|
+
const [t] = Object.keys(e);
|
|
836
|
+
return `${e[t].length > 7 ? e[t].slice(0, 7) : e[t]} ${t}`;
|
|
837
|
+
}
|
|
838
|
+
function Ln(e, t, n) {
|
|
839
|
+
let r;
|
|
840
|
+
ee(e, qe, (u) => n(4, r = u));
|
|
841
|
+
let { wallet: o } = t, { primary: l } = t;
|
|
842
|
+
function a() {
|
|
843
|
+
n(3, s = "");
|
|
844
|
+
}
|
|
845
|
+
let s = "";
|
|
846
|
+
async function i(u) {
|
|
847
|
+
try {
|
|
848
|
+
await dn(u.provider);
|
|
849
|
+
} catch (_) {
|
|
850
|
+
const { code: w } = _;
|
|
851
|
+
(w === Oe.UNSUPPORTED_METHOD || w === Oe.DOES_NOT_EXIST) && un.next({
|
|
852
|
+
inProgress: !1,
|
|
853
|
+
actionRequired: u.label
|
|
854
|
+
});
|
|
855
|
+
}
|
|
856
|
+
}
|
|
857
|
+
function f() {
|
|
858
|
+
n(2, P.accountCenter.copyAddress = "Copied Successfully", P), setTimeout(a, 500), setTimeout(
|
|
859
|
+
() => {
|
|
860
|
+
n(2, P.accountCenter.copyAddress = "Copy Wallet address", P);
|
|
861
|
+
},
|
|
862
|
+
700
|
|
863
|
+
);
|
|
864
|
+
}
|
|
865
|
+
const d = (u) => n(3, s = s === u ? "" : u), v = (u) => Ze(o, u), k = () => {
|
|
866
|
+
n(3, s = ""), i(o);
|
|
867
|
+
}, b = (u) => {
|
|
868
|
+
n(3, s = ""), Ze(o, u);
|
|
869
|
+
}, g = () => {
|
|
870
|
+
n(3, s = ""), Mt({ label: o.label });
|
|
871
|
+
}, m = (u, _, w) => {
|
|
872
|
+
fn(u ? u.name : _ ? _.name : w).then(() => {
|
|
873
|
+
f();
|
|
874
|
+
});
|
|
875
|
+
};
|
|
876
|
+
return e.$$set = (u) => {
|
|
877
|
+
"wallet" in u && n(0, o = u.wallet), "primary" in u && n(1, l = u.primary);
|
|
878
|
+
}, [
|
|
879
|
+
o,
|
|
880
|
+
l,
|
|
881
|
+
P,
|
|
882
|
+
s,
|
|
883
|
+
r,
|
|
884
|
+
i,
|
|
885
|
+
f,
|
|
886
|
+
a,
|
|
887
|
+
d,
|
|
888
|
+
v,
|
|
889
|
+
k,
|
|
890
|
+
b,
|
|
891
|
+
g,
|
|
892
|
+
m
|
|
893
|
+
];
|
|
894
|
+
}
|
|
895
|
+
class qn extends pe {
|
|
896
|
+
constructor(t) {
|
|
897
|
+
super(), ve(this, t, Ln, Pn, me, { wallet: 0, primary: 1, hideMenu: 7 }, In);
|
|
898
|
+
}
|
|
899
|
+
get hideMenu() {
|
|
900
|
+
return this.$$.ctx[7];
|
|
901
|
+
}
|
|
902
|
+
}
|
|
903
|
+
var Vn = `
|
|
904
|
+
<svg width="100%" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
905
|
+
<path d="M13 7H11V11H7V13H11V17H13V13H17V11H13V7ZM12 2C6.48 2 2 6.48 2 12C2 17.52 6.48 22 12 22C17.52 22 22 17.52 22 12C22 6.48 17.52 2 12 2ZM12 20C7.59 20 4 16.41 4 12C4 7.59 7.59 4 12 4C16.41 4 20 7.59 20 12C20 16.41 16.41 20 12 20Z" fill="currentColor"/>
|
|
906
|
+
</svg>
|
|
907
|
+
`, jn = `
|
|
908
|
+
<svg width="100%" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
909
|
+
<path d="M10.09 15.59L11.5 17L16.5 12L11.5 7L10.09 8.41L12.67 11H3V13H12.67L10.09 15.59ZM19 3H5C3.89 3 3 3.9 3 5V9H5V5H19V19H5V15H3V19C3 20.1 3.89 21 5 21H19C20.1 21 21 20.1 21 19V5C21 3.9 20.1 3 19 3Z" fill="currentColor"/>
|
|
910
|
+
</svg>
|
|
911
|
+
`, Hn = '<svg width="100%" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M16.59 8.59L12 13.17L7.41 8.59L6 10L12 16L18 10L16.59 8.59Z" fill="grey"/></svg>', Vt = `<svg width="14" height="18" viewBox="0 0 14 18" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
912
|
+
<path d="M6.99998 17.3125C5.05553 16.8264 3.45831 15.6979 2.20831 13.9271C0.958313 12.1562 0.333313 10.2153 0.333313 8.10417V3.14583L6.99998 0.645833L13.6666 3.14583V8.10417C13.6666 10.2153 13.0416 12.1562 11.7916 13.9271C10.5416 15.6979 8.94442 16.8264 6.99998 17.3125ZM5.12498 12.3333H8.87498C9.05553 12.3333 9.20484 12.2743 9.3229 12.1562C9.44095 12.0382 9.49998 11.8889 9.49998 11.7083V8.79167C9.49998 8.61111 9.44095 8.46181 9.3229 8.34375C9.20484 8.22569 9.05553 8.16667 8.87498 8.16667H8.66665V7.33333C8.66665 6.875 8.50345 6.48264 8.17706 6.15625C7.85067 5.82986 7.45831 5.66667 6.99998 5.66667C6.54165 5.66667 6.14928 5.82986 5.8229 6.15625C5.49651 6.48264 5.33331 6.875 5.33331 7.33333V8.16667H5.12498C4.94442 8.16667 4.79512 8.22569 4.67706 8.34375C4.55901 8.46181 4.49998 8.61111 4.49998 8.79167V11.7083C4.49998 11.8889 4.55901 12.0382 4.67706 12.1562C4.79512 12.2743 4.94442 12.3333 5.12498 12.3333ZM5.95831 8.16667V7.33333C5.95831 7.05556 6.06248 6.82292 6.27081 6.63542C6.47915 6.44792 6.7222 6.35417 6.99998 6.35417C7.27776 6.35417 7.52081 6.44792 7.72915 6.63542C7.93748 6.82292 8.04165 7.05556 8.04165 7.33333V8.16667H5.95831Z" fill="#929BED"/>
|
|
913
|
+
</svg>
|
|
914
|
+
`;
|
|
915
|
+
function Bn(e) {
|
|
916
|
+
he(e, "svelte-1ubxcdp", ".content.svelte-1ubxcdp{padding:1rem;width:300px;font-family:var(--onboard-font-family-normal, var(--font-family-normal));font-size:var(--onboard-font-size-5, var(--font-size-5));line-height:24px}.icon-container.svelte-1ubxcdp{width:3rem;height:3rem;background:var(--onboard-warning-100, var(--warning-100));border-radius:24px;padding:12px;color:var(--onboard-warning-500, var(--warning-500))}h4.svelte-1ubxcdp{margin:1.5rem 0 0.5rem 0;font-weight:600}p.svelte-1ubxcdp{margin:0;font-weight:400}button.svelte-1ubxcdp{margin-top:1.5rem;width:50%;font-weight:600}.right.svelte-1ubxcdp{margin-left:0.5rem;width:60%}");
|
|
917
|
+
}
|
|
918
|
+
function Dn(e) {
|
|
919
|
+
let t, n, r, o, l = (
|
|
920
|
+
/*$_*/
|
|
921
|
+
e[2]("modals.confirmDisconnectAll.heading", {
|
|
922
|
+
default: P.modals.confirmDisconnectAll.heading
|
|
923
|
+
}) + ""
|
|
924
|
+
), a, s, i, f = (
|
|
925
|
+
/*$_*/
|
|
926
|
+
e[2]("modals.confirmDisconnectAll.description") + ""
|
|
927
|
+
), d, v, k, b, g = (
|
|
928
|
+
/*$_*/
|
|
929
|
+
e[2]("modals.confirmDisconnectAll.cancel", {
|
|
930
|
+
default: P.modals.confirmDisconnectAll.cancel
|
|
931
|
+
}) + ""
|
|
932
|
+
), m, u, _, w = (
|
|
933
|
+
/*$_*/
|
|
934
|
+
e[2]("modals.confirmDisconnectAll.confirm", {
|
|
935
|
+
default: P.modals.confirmDisconnectAll.confirm
|
|
936
|
+
}) + ""
|
|
937
|
+
), C, $, I;
|
|
938
|
+
return {
|
|
939
|
+
c() {
|
|
940
|
+
t = h("div"), n = h("div"), r = z(), o = h("h4"), a = L(l), s = z(), i = h("p"), d = L(f), v = z(), k = h("div"), b = h("button"), m = L(g), u = z(), _ = h("button"), C = L(w), p(n, "class", "icon-container flex justify-center items-center svelte-1ubxcdp"), p(o, "class", "svelte-1ubxcdp"), p(i, "class", "svelte-1ubxcdp"), p(b, "class", "button-neutral-solid-b rounded svelte-1ubxcdp"), p(_, "class", "right button-neutral-solid rounded svelte-1ubxcdp"), p(k, "class", "flex justify-between items-center w-100"), p(t, "class", "content svelte-1ubxcdp");
|
|
941
|
+
},
|
|
942
|
+
m(B, D) {
|
|
943
|
+
M(B, t, D), c(t, n), n.innerHTML = Se, c(t, r), c(t, o), c(o, a), c(t, s), c(t, i), c(i, d), c(t, v), c(t, k), c(k, b), c(b, m), c(k, u), c(k, _), c(_, C), $ || (I = [
|
|
944
|
+
Y(b, "click", function() {
|
|
945
|
+
we(
|
|
946
|
+
/*onClose*/
|
|
947
|
+
e[1]
|
|
948
|
+
) && e[1].apply(this, arguments);
|
|
949
|
+
}),
|
|
950
|
+
Y(_, "click", function() {
|
|
951
|
+
we(
|
|
952
|
+
/*onConfirm*/
|
|
953
|
+
e[0]
|
|
954
|
+
) && e[0].apply(this, arguments);
|
|
955
|
+
})
|
|
956
|
+
], $ = !0);
|
|
957
|
+
},
|
|
958
|
+
p(B, D) {
|
|
959
|
+
e = B, D & /*$_*/
|
|
960
|
+
4 && l !== (l = /*$_*/
|
|
961
|
+
e[2]("modals.confirmDisconnectAll.heading", {
|
|
962
|
+
default: P.modals.confirmDisconnectAll.heading
|
|
963
|
+
}) + "") && j(a, l), D & /*$_*/
|
|
964
|
+
4 && f !== (f = /*$_*/
|
|
965
|
+
e[2]("modals.confirmDisconnectAll.description") + "") && j(d, f), D & /*$_*/
|
|
966
|
+
4 && g !== (g = /*$_*/
|
|
967
|
+
e[2]("modals.confirmDisconnectAll.cancel", {
|
|
968
|
+
default: P.modals.confirmDisconnectAll.cancel
|
|
969
|
+
}) + "") && j(m, g), D & /*$_*/
|
|
970
|
+
4 && w !== (w = /*$_*/
|
|
971
|
+
e[2]("modals.confirmDisconnectAll.confirm", {
|
|
972
|
+
default: P.modals.confirmDisconnectAll.confirm
|
|
973
|
+
}) + "") && j(C, w);
|
|
974
|
+
},
|
|
975
|
+
d(B) {
|
|
976
|
+
B && S(t), $ = !1, ke(I);
|
|
977
|
+
}
|
|
978
|
+
};
|
|
979
|
+
}
|
|
980
|
+
function Wn(e) {
|
|
981
|
+
let t, n;
|
|
982
|
+
return t = new Pt({
|
|
983
|
+
props: {
|
|
984
|
+
close: (
|
|
985
|
+
/*onClose*/
|
|
986
|
+
e[1]
|
|
987
|
+
),
|
|
988
|
+
$$slots: { default: [Dn] },
|
|
989
|
+
$$scope: { ctx: e }
|
|
990
|
+
}
|
|
991
|
+
}), {
|
|
992
|
+
c() {
|
|
993
|
+
F(t.$$.fragment);
|
|
994
|
+
},
|
|
995
|
+
m(r, o) {
|
|
996
|
+
O(t, r, o), n = !0;
|
|
997
|
+
},
|
|
998
|
+
p(r, [o]) {
|
|
999
|
+
const l = {};
|
|
1000
|
+
o & /*onClose*/
|
|
1001
|
+
2 && (l.close = /*onClose*/
|
|
1002
|
+
r[1]), o & /*$$scope, onConfirm, $_, onClose*/
|
|
1003
|
+
15 && (l.$$scope = { dirty: o, ctx: r }), t.$set(l);
|
|
1004
|
+
},
|
|
1005
|
+
i(r) {
|
|
1006
|
+
n || (y(t.$$.fragment, r), n = !0);
|
|
1007
|
+
},
|
|
1008
|
+
o(r) {
|
|
1009
|
+
A(t.$$.fragment, r), n = !1;
|
|
1010
|
+
},
|
|
1011
|
+
d(r) {
|
|
1012
|
+
Z(t, r);
|
|
1013
|
+
}
|
|
1014
|
+
};
|
|
1015
|
+
}
|
|
1016
|
+
function Nn(e, t, n) {
|
|
1017
|
+
let r;
|
|
1018
|
+
ee(e, qe, (a) => n(2, r = a));
|
|
1019
|
+
let { onConfirm: o } = t, { onClose: l } = t;
|
|
1020
|
+
return e.$$set = (a) => {
|
|
1021
|
+
"onConfirm" in a && n(0, o = a.onConfirm), "onClose" in a && n(1, l = a.onClose);
|
|
1022
|
+
}, [o, l, r];
|
|
1023
|
+
}
|
|
1024
|
+
class En extends pe {
|
|
1025
|
+
constructor(t) {
|
|
1026
|
+
super(), ve(this, t, Nn, Wn, me, { onConfirm: 0, onClose: 1 }, Bn);
|
|
1027
|
+
}
|
|
1028
|
+
}
|
|
1029
|
+
function Fn(e) {
|
|
1030
|
+
he(e, "svelte-ruodf3", ".content.svelte-ruodf3{--background-color:var(--w3o-background-color);--text-color:var(--w3o-text-color);--action-color:var(--w3o-action-color, var(--primary-500));font-size:1rem;line-height:1.5rem;display:flex;flex-flow:column;gap:1.5rem;padding:1rem;max-width:320px;background:var(--background-color);color:var(--text-color)}.icon-container.svelte-ruodf3{position:relative;overflow:hidden;width:3rem;height:3rem;border-radius:24px;padding:0.75rem;background:none}.icon-container.svelte-ruodf3::before{content:'';position:absolute;height:100%;width:100%;opacity:0.2;background:var(--action-color)}.text-container.svelte-ruodf3{display:flex;flex-flow:column;gap:0.5rem;padding:0 0.5rem}.actions-container.svelte-ruodf3{display:flex;flex-flow:row nowrap;gap:1rem}.heading.svelte-ruodf3{font-weight:600}button.svelte-ruodf3{font-weight:600}button.primary.svelte-ruodf3{background:var(--action-color)}");
|
|
1031
|
+
}
|
|
1032
|
+
function On(e) {
|
|
1033
|
+
let t, n, r, o, l, a = (
|
|
1034
|
+
/*$_*/
|
|
1035
|
+
e[3]("modals.confirmTransactionProtection.heading", {
|
|
1036
|
+
default: P.modals.confirmTransactionProtection.heading
|
|
1037
|
+
}) + ""
|
|
1038
|
+
), s, i, f, d = (
|
|
1039
|
+
/*$_*/
|
|
1040
|
+
e[3]("modals.confirmTransactionProtection.description") + ""
|
|
1041
|
+
), v, k, b, g = (
|
|
1042
|
+
/*$_*/
|
|
1043
|
+
e[3]("modals.confirmTransactionProtection.link", {
|
|
1044
|
+
default: P.modals.confirmTransactionProtection.link
|
|
1045
|
+
}) + ""
|
|
1046
|
+
), m, u, _, w, C = (
|
|
1047
|
+
/*$_*/
|
|
1048
|
+
e[3]("modals.confirmTransactionProtection.dismiss", {
|
|
1049
|
+
default: P.modals.confirmTransactionProtection.dismiss
|
|
1050
|
+
}) + ""
|
|
1051
|
+
), $, I, B, D = (
|
|
1052
|
+
/*$_*/
|
|
1053
|
+
e[3]("modals.confirmTransactionProtection.enable", {
|
|
1054
|
+
default: P.modals.confirmTransactionProtection.enable
|
|
1055
|
+
}) + ""
|
|
1056
|
+
), H, q, W;
|
|
1057
|
+
return {
|
|
1058
|
+
c() {
|
|
1059
|
+
t = h("div"), n = h("div"), r = z(), o = h("div"), l = h("div"), s = L(a), i = z(), f = h("div"), v = L(d), k = z(), b = h("a"), m = L(g), u = z(), _ = h("div"), w = h("button"), $ = L(C), I = z(), B = h("button"), H = L(D), p(n, "class", "icon-container flex justify-center items-center svelte-ruodf3"), p(l, "class", "heading svelte-ruodf3"), p(
|
|
1060
|
+
b,
|
|
1061
|
+
"href",
|
|
1062
|
+
/*infoLink*/
|
|
1063
|
+
e[2]
|
|
1064
|
+
), p(b, "target", "_blank"), p(b, "rel", "noreferrer noopener"), p(b, "class", "no-link"), p(o, "class", "text-container svelte-ruodf3"), p(w, "class", "button-neutral-solid-b svelte-ruodf3"), p(B, "class", "button-neutral-solid rounded primary svelte-ruodf3"), p(_, "class", "actions-container svelte-ruodf3"), p(t, "class", "content svelte-ruodf3");
|
|
1065
|
+
},
|
|
1066
|
+
m(U, X) {
|
|
1067
|
+
M(U, t, X), c(t, n), n.innerHTML = Vt, c(t, r), c(t, o), c(o, l), c(l, s), c(o, i), c(o, f), c(f, v), c(o, k), c(o, b), c(b, m), c(t, u), c(t, _), c(_, w), c(w, $), c(_, I), c(_, B), c(B, H), q || (W = [
|
|
1068
|
+
Y(w, "click", function() {
|
|
1069
|
+
we(
|
|
1070
|
+
/*onDismiss*/
|
|
1071
|
+
e[1]
|
|
1072
|
+
) && e[1].apply(this, arguments);
|
|
1073
|
+
}),
|
|
1074
|
+
Y(B, "click", function() {
|
|
1075
|
+
we(
|
|
1076
|
+
/*onEnable*/
|
|
1077
|
+
e[0]
|
|
1078
|
+
) && e[0].apply(this, arguments);
|
|
1079
|
+
})
|
|
1080
|
+
], q = !0);
|
|
1081
|
+
},
|
|
1082
|
+
p(U, X) {
|
|
1083
|
+
e = U, X & /*$_*/
|
|
1084
|
+
8 && a !== (a = /*$_*/
|
|
1085
|
+
e[3]("modals.confirmTransactionProtection.heading", {
|
|
1086
|
+
default: P.modals.confirmTransactionProtection.heading
|
|
1087
|
+
}) + "") && j(s, a), X & /*$_*/
|
|
1088
|
+
8 && d !== (d = /*$_*/
|
|
1089
|
+
e[3]("modals.confirmTransactionProtection.description") + "") && j(v, d), X & /*$_*/
|
|
1090
|
+
8 && g !== (g = /*$_*/
|
|
1091
|
+
e[3]("modals.confirmTransactionProtection.link", {
|
|
1092
|
+
default: P.modals.confirmTransactionProtection.link
|
|
1093
|
+
}) + "") && j(m, g), X & /*infoLink*/
|
|
1094
|
+
4 && p(
|
|
1095
|
+
b,
|
|
1096
|
+
"href",
|
|
1097
|
+
/*infoLink*/
|
|
1098
|
+
e[2]
|
|
1099
|
+
), X & /*$_*/
|
|
1100
|
+
8 && C !== (C = /*$_*/
|
|
1101
|
+
e[3]("modals.confirmTransactionProtection.dismiss", {
|
|
1102
|
+
default: P.modals.confirmTransactionProtection.dismiss
|
|
1103
|
+
}) + "") && j($, C), X & /*$_*/
|
|
1104
|
+
8 && D !== (D = /*$_*/
|
|
1105
|
+
e[3]("modals.confirmTransactionProtection.enable", {
|
|
1106
|
+
default: P.modals.confirmTransactionProtection.enable
|
|
1107
|
+
}) + "") && j(H, D);
|
|
1108
|
+
},
|
|
1109
|
+
d(U) {
|
|
1110
|
+
U && S(t), q = !1, ke(W);
|
|
1111
|
+
}
|
|
1112
|
+
};
|
|
1113
|
+
}
|
|
1114
|
+
function Zn(e) {
|
|
1115
|
+
let t, n;
|
|
1116
|
+
return t = new Pt({
|
|
1117
|
+
props: {
|
|
1118
|
+
close: (
|
|
1119
|
+
/*onDismiss*/
|
|
1120
|
+
e[1]
|
|
1121
|
+
),
|
|
1122
|
+
$$slots: { default: [On] },
|
|
1123
|
+
$$scope: { ctx: e }
|
|
1124
|
+
}
|
|
1125
|
+
}), {
|
|
1126
|
+
c() {
|
|
1127
|
+
F(t.$$.fragment);
|
|
1128
|
+
},
|
|
1129
|
+
m(r, o) {
|
|
1130
|
+
O(t, r, o), n = !0;
|
|
1131
|
+
},
|
|
1132
|
+
p(r, [o]) {
|
|
1133
|
+
const l = {};
|
|
1134
|
+
o & /*onDismiss*/
|
|
1135
|
+
2 && (l.close = /*onDismiss*/
|
|
1136
|
+
r[1]), o & /*$$scope, onEnable, $_, onDismiss, infoLink*/
|
|
1137
|
+
31 && (l.$$scope = { dirty: o, ctx: r }), t.$set(l);
|
|
1138
|
+
},
|
|
1139
|
+
i(r) {
|
|
1140
|
+
n || (y(t.$$.fragment, r), n = !0);
|
|
1141
|
+
},
|
|
1142
|
+
o(r) {
|
|
1143
|
+
A(t.$$.fragment, r), n = !1;
|
|
1144
|
+
},
|
|
1145
|
+
d(r) {
|
|
1146
|
+
Z(t, r);
|
|
1147
|
+
}
|
|
1148
|
+
};
|
|
1149
|
+
}
|
|
1150
|
+
function Rn(e, t, n) {
|
|
1151
|
+
let r;
|
|
1152
|
+
ee(e, qe, (s) => n(3, r = s));
|
|
1153
|
+
let { onEnable: o } = t, { onDismiss: l } = t, { infoLink: a } = t;
|
|
1154
|
+
return e.$$set = (s) => {
|
|
1155
|
+
"onEnable" in s && n(0, o = s.onEnable), "onDismiss" in s && n(1, l = s.onDismiss), "infoLink" in s && n(2, a = s.infoLink);
|
|
1156
|
+
}, [o, l, a, r];
|
|
1157
|
+
}
|
|
1158
|
+
class Gn extends pe {
|
|
1159
|
+
constructor(t) {
|
|
1160
|
+
super(), ve(this, t, Rn, Zn, me, { onEnable: 0, onDismiss: 1, infoLink: 2 }, Fn);
|
|
1161
|
+
}
|
|
1162
|
+
}
|
|
1163
|
+
function Un(e) {
|
|
1164
|
+
he(e, "svelte-b848yl", ".secondary-token-container.svelte-b848yl.svelte-b848yl{width:100%}table.svelte-b848yl.svelte-b848yl{width:100%}tr.svelte-b848yl.svelte-b848yl{padding:0.25rem 1rem;line-height:1rem;border-bottom:1px solid var(--border-color);display:flex;flex-direction:row;align-items:flex-start;gap:1rem}thead.svelte-b848yl .secondary-token-table-header.svelte-b848yl{text-align:inherit;font-size:var(--onboard-font-size-7, var(--font-size-7))}.token-icon.svelte-b848yl.svelte-b848yl{width:30%;font-weight:700;font-size:var(--onboard-font-size-6, var(--font-size-6));color:var(--text-color)}.icon-name-container.svelte-b848yl.svelte-b848yl{display:flex;flex-direction:row;align-items:flex-start;padding:0px;gap:0.5rem}.icon.svelte-b848yl.svelte-b848yl{width:1rem;height:1rem}img.svelte-b848yl.svelte-b848yl{height:100%;width:100%}.token-balance.svelte-b848yl.svelte-b848yl{width:70%;font-weight:200;font-size:var(--onboard-font-size-6, var(--font-size-6));color:var(--text-color)}");
|
|
1165
|
+
}
|
|
1166
|
+
function it(e, t, n) {
|
|
1167
|
+
const r = e.slice();
|
|
1168
|
+
return r[1] = t[n], r;
|
|
1169
|
+
}
|
|
1170
|
+
function st(e) {
|
|
1171
|
+
let t, n, r, o, l = (
|
|
1172
|
+
/*token*/
|
|
1173
|
+
e[1].name.toUpperCase() + ""
|
|
1174
|
+
), a, s, i, f = (
|
|
1175
|
+
/*token*/
|
|
1176
|
+
(e[1].balance.length > 7 ? (
|
|
1177
|
+
/*token*/
|
|
1178
|
+
e[1].balance.slice(0, 7)
|
|
1179
|
+
) : (
|
|
1180
|
+
/*token*/
|
|
1181
|
+
e[1].balance
|
|
1182
|
+
)) + ""
|
|
1183
|
+
), d, v;
|
|
1184
|
+
function k(m, u) {
|
|
1185
|
+
return (
|
|
1186
|
+
/*token*/
|
|
1187
|
+
m[1].icon ? Yn : Xn
|
|
1188
|
+
);
|
|
1189
|
+
}
|
|
1190
|
+
let b = k(e), g = b(e);
|
|
1191
|
+
return {
|
|
1192
|
+
c() {
|
|
1193
|
+
t = h("tr"), n = h("td"), r = h("div"), g.c(), o = z(), a = L(l), s = z(), i = h("td"), d = L(f), v = z(), p(r, "class", "icon-name-container svelte-b848yl"), p(n, "class", "token-icon svelte-b848yl"), p(i, "class", "token-balance svelte-b848yl"), p(t, "class", "token-row svelte-b848yl");
|
|
1194
|
+
},
|
|
1195
|
+
m(m, u) {
|
|
1196
|
+
M(m, t, u), c(t, n), c(n, r), g.m(r, null), c(r, o), c(r, a), c(t, s), c(t, i), c(i, d), c(t, v);
|
|
1197
|
+
},
|
|
1198
|
+
p(m, u) {
|
|
1199
|
+
b === (b = k(m)) && g ? g.p(m, u) : (g.d(1), g = b(m), g && (g.c(), g.m(r, o))), u & /*secondaryTokens*/
|
|
1200
|
+
1 && l !== (l = /*token*/
|
|
1201
|
+
m[1].name.toUpperCase() + "") && j(a, l), u & /*secondaryTokens*/
|
|
1202
|
+
1 && f !== (f = /*token*/
|
|
1203
|
+
(m[1].balance.length > 7 ? (
|
|
1204
|
+
/*token*/
|
|
1205
|
+
m[1].balance.slice(0, 7)
|
|
1206
|
+
) : (
|
|
1207
|
+
/*token*/
|
|
1208
|
+
m[1].balance
|
|
1209
|
+
)) + "") && j(d, f);
|
|
1210
|
+
},
|
|
1211
|
+
d(m) {
|
|
1212
|
+
m && S(t), g.d();
|
|
1213
|
+
}
|
|
1214
|
+
};
|
|
1215
|
+
}
|
|
1216
|
+
function Xn(e) {
|
|
1217
|
+
let t;
|
|
1218
|
+
return {
|
|
1219
|
+
c() {
|
|
1220
|
+
t = h("div"), p(t, "class", "icon svelte-b848yl");
|
|
1221
|
+
},
|
|
1222
|
+
m(n, r) {
|
|
1223
|
+
M(n, t, r);
|
|
1224
|
+
},
|
|
1225
|
+
p: R,
|
|
1226
|
+
d(n) {
|
|
1227
|
+
n && S(t);
|
|
1228
|
+
}
|
|
1229
|
+
};
|
|
1230
|
+
}
|
|
1231
|
+
function Yn(e) {
|
|
1232
|
+
let t, n, r = {
|
|
1233
|
+
ctx: e,
|
|
1234
|
+
current: null,
|
|
1235
|
+
token: null,
|
|
1236
|
+
hasCatch: !1,
|
|
1237
|
+
pending: er,
|
|
1238
|
+
then: Jn,
|
|
1239
|
+
catch: Qn,
|
|
1240
|
+
value: 4
|
|
1241
|
+
};
|
|
1242
|
+
return Ue(n = /*token*/
|
|
1243
|
+
e[1].icon, r), {
|
|
1244
|
+
c() {
|
|
1245
|
+
t = ue(), r.block.c();
|
|
1246
|
+
},
|
|
1247
|
+
m(o, l) {
|
|
1248
|
+
M(o, t, l), r.block.m(o, r.anchor = l), r.mount = () => t.parentNode, r.anchor = t;
|
|
1249
|
+
},
|
|
1250
|
+
p(o, l) {
|
|
1251
|
+
e = o, r.ctx = e, l & /*secondaryTokens*/
|
|
1252
|
+
1 && n !== (n = /*token*/
|
|
1253
|
+
e[1].icon) && Ue(n, r) || vn(r, e, l);
|
|
1254
|
+
},
|
|
1255
|
+
d(o) {
|
|
1256
|
+
o && S(t), r.block.d(o), r.token = null, r = null;
|
|
1257
|
+
}
|
|
1258
|
+
};
|
|
1259
|
+
}
|
|
1260
|
+
function Qn(e) {
|
|
1261
|
+
return {
|
|
1262
|
+
c: R,
|
|
1263
|
+
m: R,
|
|
1264
|
+
p: R,
|
|
1265
|
+
i: R,
|
|
1266
|
+
o: R,
|
|
1267
|
+
d: R
|
|
1268
|
+
};
|
|
1269
|
+
}
|
|
1270
|
+
function Jn(e) {
|
|
1271
|
+
let t, n, r;
|
|
1272
|
+
function o(s, i) {
|
|
1273
|
+
return i & /*secondaryTokens*/
|
|
1274
|
+
1 && (n = null), n == null && (n = !!mn(
|
|
1275
|
+
/*iconLoaded*/
|
|
1276
|
+
s[4]
|
|
1277
|
+
)), n ? xn : Kn;
|
|
1278
|
+
}
|
|
1279
|
+
let l = o(e, -1), a = l(e);
|
|
1280
|
+
return {
|
|
1281
|
+
c() {
|
|
1282
|
+
t = h("div"), a.c(), p(t, "class", "icon svelte-b848yl");
|
|
1283
|
+
},
|
|
1284
|
+
m(s, i) {
|
|
1285
|
+
M(s, t, i), a.m(t, null);
|
|
1286
|
+
},
|
|
1287
|
+
p(s, i) {
|
|
1288
|
+
l === (l = o(s, i)) && a ? a.p(s, i) : (a.d(1), a = l(s), a && (a.c(), a.m(t, null)));
|
|
1289
|
+
},
|
|
1290
|
+
i(s) {
|
|
1291
|
+
s && (r || Ae(() => {
|
|
1292
|
+
r = Ie(t, $e, {}), r.start();
|
|
1293
|
+
}));
|
|
1294
|
+
},
|
|
1295
|
+
o: R,
|
|
1296
|
+
d(s) {
|
|
1297
|
+
s && S(t), a.d();
|
|
1298
|
+
}
|
|
1299
|
+
};
|
|
1300
|
+
}
|
|
1301
|
+
function Kn(e) {
|
|
1302
|
+
let t, n;
|
|
1303
|
+
return {
|
|
1304
|
+
c() {
|
|
1305
|
+
t = h("img"), Xe(t.src, n = /*iconLoaded*/
|
|
1306
|
+
e[4]) || p(t, "src", n), p(t, "alt", "logo"), p(t, "class", "svelte-b848yl");
|
|
1307
|
+
},
|
|
1308
|
+
m(r, o) {
|
|
1309
|
+
M(r, t, o);
|
|
1310
|
+
},
|
|
1311
|
+
p(r, o) {
|
|
1312
|
+
o & /*secondaryTokens*/
|
|
1313
|
+
1 && !Xe(t.src, n = /*iconLoaded*/
|
|
1314
|
+
r[4]) && p(t, "src", n);
|
|
1315
|
+
},
|
|
1316
|
+
d(r) {
|
|
1317
|
+
r && S(t);
|
|
1318
|
+
}
|
|
1319
|
+
};
|
|
1320
|
+
}
|
|
1321
|
+
function xn(e) {
|
|
1322
|
+
let t, n = (
|
|
1323
|
+
/*iconLoaded*/
|
|
1324
|
+
e[4] + ""
|
|
1325
|
+
), r;
|
|
1326
|
+
return {
|
|
1327
|
+
c() {
|
|
1328
|
+
t = new hn(!1), r = ue(), t.a = r;
|
|
1329
|
+
},
|
|
1330
|
+
m(o, l) {
|
|
1331
|
+
t.m(n, o, l), M(o, r, l);
|
|
1332
|
+
},
|
|
1333
|
+
p(o, l) {
|
|
1334
|
+
l & /*secondaryTokens*/
|
|
1335
|
+
1 && n !== (n = /*iconLoaded*/
|
|
1336
|
+
o[4] + "") && t.p(n);
|
|
1337
|
+
},
|
|
1338
|
+
d(o) {
|
|
1339
|
+
o && S(r), o && t.d();
|
|
1340
|
+
}
|
|
1341
|
+
};
|
|
1342
|
+
}
|
|
1343
|
+
function er(e) {
|
|
1344
|
+
return {
|
|
1345
|
+
c: R,
|
|
1346
|
+
m: R,
|
|
1347
|
+
p: R,
|
|
1348
|
+
i: R,
|
|
1349
|
+
o: R,
|
|
1350
|
+
d: R
|
|
1351
|
+
};
|
|
1352
|
+
}
|
|
1353
|
+
function ct(e) {
|
|
1354
|
+
let t, n = (
|
|
1355
|
+
/*token*/
|
|
1356
|
+
e[1] && /*token*/
|
|
1357
|
+
e[1].name && /*token*/
|
|
1358
|
+
e[1].balance && st(e)
|
|
1359
|
+
);
|
|
1360
|
+
return {
|
|
1361
|
+
c() {
|
|
1362
|
+
n && n.c(), t = ue();
|
|
1363
|
+
},
|
|
1364
|
+
m(r, o) {
|
|
1365
|
+
n && n.m(r, o), M(r, t, o);
|
|
1366
|
+
},
|
|
1367
|
+
p(r, o) {
|
|
1368
|
+
/*token*/
|
|
1369
|
+
r[1] && /*token*/
|
|
1370
|
+
r[1].name && /*token*/
|
|
1371
|
+
r[1].balance ? n ? n.p(r, o) : (n = st(r), n.c(), n.m(t.parentNode, t)) : n && (n.d(1), n = null);
|
|
1372
|
+
},
|
|
1373
|
+
d(r) {
|
|
1374
|
+
n && n.d(r), r && S(t);
|
|
1375
|
+
}
|
|
1376
|
+
};
|
|
1377
|
+
}
|
|
1378
|
+
function tr(e) {
|
|
1379
|
+
let t, n, r, o, l, a = (
|
|
1380
|
+
/*secondaryTokens*/
|
|
1381
|
+
e[0]
|
|
1382
|
+
), s = [];
|
|
1383
|
+
for (let i = 0; i < a.length; i += 1)
|
|
1384
|
+
s[i] = ct(it(e, a, i));
|
|
1385
|
+
return {
|
|
1386
|
+
c() {
|
|
1387
|
+
t = h("div"), n = h("table"), r = h("thead"), r.innerHTML = '<tr class="svelte-b848yl"><th colspan="3" class="secondary-token-table-header svelte-b848yl">Token Balances:</th></tr>', o = z(), l = h("tbody");
|
|
1388
|
+
for (let i = 0; i < s.length; i += 1)
|
|
1389
|
+
s[i].c();
|
|
1390
|
+
p(r, "class", "svelte-b848yl"), p(n, "class", "balance-change-table table-radius svelte-b848yl"), p(t, "class", "secondary-token-container svelte-b848yl");
|
|
1391
|
+
},
|
|
1392
|
+
m(i, f) {
|
|
1393
|
+
M(i, t, f), c(t, n), c(n, r), c(n, o), c(n, l);
|
|
1394
|
+
for (let d = 0; d < s.length; d += 1)
|
|
1395
|
+
s[d] && s[d].m(l, null);
|
|
1396
|
+
},
|
|
1397
|
+
p(i, [f]) {
|
|
1398
|
+
if (f & /*secondaryTokens, isSVG*/
|
|
1399
|
+
1) {
|
|
1400
|
+
a = /*secondaryTokens*/
|
|
1401
|
+
i[0];
|
|
1402
|
+
let d;
|
|
1403
|
+
for (d = 0; d < a.length; d += 1) {
|
|
1404
|
+
const v = it(i, a, d);
|
|
1405
|
+
s[d] ? s[d].p(v, f) : (s[d] = ct(v), s[d].c(), s[d].m(l, null));
|
|
1406
|
+
}
|
|
1407
|
+
for (; d < s.length; d += 1)
|
|
1408
|
+
s[d].d(1);
|
|
1409
|
+
s.length = a.length;
|
|
1410
|
+
}
|
|
1411
|
+
},
|
|
1412
|
+
i: R,
|
|
1413
|
+
o: R,
|
|
1414
|
+
d(i) {
|
|
1415
|
+
i && S(t), It(s, i);
|
|
1416
|
+
}
|
|
1417
|
+
};
|
|
1418
|
+
}
|
|
1419
|
+
function nr(e, t, n) {
|
|
1420
|
+
let { secondaryTokens: r } = t;
|
|
1421
|
+
return e.$$set = (o) => {
|
|
1422
|
+
"secondaryTokens" in o && n(0, r = o.secondaryTokens);
|
|
1423
|
+
}, [r];
|
|
1424
|
+
}
|
|
1425
|
+
class rr extends pe {
|
|
1426
|
+
constructor(t) {
|
|
1427
|
+
super(), ve(this, t, nr, tr, me, { secondaryTokens: 0 }, Un);
|
|
1428
|
+
}
|
|
1429
|
+
}
|
|
1430
|
+
function or(e) {
|
|
1431
|
+
he(e, "svelte-177u10y", `.outer-container.svelte-177u10y{--background-color:var(--w3o-background-color);--text-color:var(--w3o-text-color);--border-color:var(--w3o-border-color, var(--gray-500));--action-color:var(--w3o-action-color, var(--primary-500));--border-radius:var(--w3o-border-radius, 1rem);--account-center-network-selector-color:var(--text-color, white);width:100%;overflow:hidden;pointer-events:auto;border:1px solid transparent;background:var(
|
|
1432
|
+
--account-center-maximized-upper-background,
|
|
1433
|
+
var(--background-color)
|
|
1434
|
+
);border-color:var(--border-color);border-radius:var(--account-center-border-radius, var(--border-radius))}.wallets-section.svelte-177u10y{width:100%;color:var(--text-color, var(--gray-100));background:var(--background-color, var(--gray-700))}.p5.svelte-177u10y{padding:var(--onboard-spacing-5, var(--spacing-5))}.wallets.svelte-177u10y{width:100%;margin-bottom:0.5rem}.actions.svelte-177u10y{color:var(
|
|
1435
|
+
--account-center-maximized-upper-action-color,
|
|
1436
|
+
var(--action-color)
|
|
1437
|
+
);padding-left:2px}.action-container.svelte-177u10y{padding:0.25rem 12px 0.25rem 0.5rem;border-radius:0.5rem;transition:background-color 150ms ease-in-out}.action-container.svelte-177u10y:hover{background-color:var(
|
|
1438
|
+
--account-center-maximized-upper-action-background-hover,
|
|
1439
|
+
rgba(146, 155, 237, 0.2)
|
|
1440
|
+
)}.plus-icon.svelte-177u10y{width:20px}.arrow-forward.svelte-177u10y{width:20px}.mt.svelte-177u10y{margin-top:0.25rem}.action-text.svelte-177u10y{font-size:var(--onboard-font-size-6, var(--font-size-6));line-height:var(--onboard-font-line-height-3, var(--font-line-height-3));margin-left:0.5rem}.background-blue.svelte-177u10y{background:var(
|
|
1441
|
+
--account-center-maximized-network-section-background,
|
|
1442
|
+
var(--onboard-primary-100, var(--primary-100))
|
|
1443
|
+
)}.background-gray.svelte-177u10y{background:var(--onboard-gray-100, var(--gray-100))}.background-yellow.svelte-177u10y{background:var(--onboard-warning-100, var(--warning-100))}.network-container.svelte-177u10y{background:var(--background-color);border-top:1px solid var(--border-color);width:100%;display:flex;flex-direction:column;align-items:flex-start;padding:0.75rem;gap:0.5rem;border-radius:var(
|
|
1444
|
+
--account-center-border-radius,
|
|
1445
|
+
var(--onboard-border-radius-3, var(--border-radius-3))
|
|
1446
|
+
);color:var(
|
|
1447
|
+
--account-center-maximized-network-text-color,
|
|
1448
|
+
var(--account-center-maximized-network-section, inherit)
|
|
1449
|
+
)}.network-section.svelte-177u10y{flex-direction:row;align-items:flex-start;padding:0px;gap:16px}.network-selector-container.svelte-177u10y{width:100%}.protect.svelte-177u10y{flex-direction:row;padding:0.25rem 0.375rem 0;gap:0.375rem;width:100%}.shield.svelte-177u10y{width:20px;height:20px;display:flex;justify-content:center}.protect-text.svelte-177u10y{font-size:var(--onboard-font-size-6, var(--font-size-6));color:var(
|
|
1450
|
+
--account-center-maximized-upper-action-color,
|
|
1451
|
+
var(--action-color)
|
|
1452
|
+
);line-height:1.75rem;display:flex;align-items:center}.network-selector-container.svelte-177u10y{margin-left:1rem;width:100%}.network-selector-label.svelte-177u10y{font-size:var(--onboard-font-size-7, var(--font-size-7));line-height:var(--onboard-font-line-height-3, var(--font-line-height-3))}.app-info-container.svelte-177u10y{color:var(--text-color, var(--gray-700));background:var(
|
|
1453
|
+
--account-center-maximized-info-section-background-color,
|
|
1454
|
+
var(
|
|
1455
|
+
--account-center-maximized-info-section,
|
|
1456
|
+
var(--background-color, #fff)
|
|
1457
|
+
)
|
|
1458
|
+
);border-top:1px solid var(--border-color);border-radius:var(--account-center-border-radius, inherit);display:flex;flex-direction:column;align-items:flex-start;padding:0px}.app-info-header.svelte-177u10y{width:100%;flex-direction:column;align-items:flex-start;padding:0.75rem;gap:0.5rem;border-bottom:1px solid var(--border-color)}.app-icon-name.svelte-177u10y{display:flex;align-items:center;flex-direction:row;gap:0.75rem}.app-name.svelte-177u10y{font-size:1rem;font-weight:600;line-height:1rem;margin-bottom:0.25rem;color:var(--account-center-maximized-app-name-color, inherit)}.app-description.svelte-177u10y{margin:0;font-size:var(--onboard-font-size-7, var(--font-size-7));line-height:var(--onboard-font-line-height-3, var(--font-line-height-3));color:var(--account-center-maximized-app-info-color, inherit);display:flex;flex-direction:row;align-items:flex-start;padding:0px 0.25rem;gap:1rem}.app-info.svelte-177u10y{width:100%;font-size:var(--onboard-font-size-7, var(--font-size-7));line-height:var(--onboard-font-line-height-3, var(--font-line-height-3));color:var(--account-center-maximized-app-info-color, inherit);border-bottom:1px solid var(--border-color);display:flex;flex-direction:column;align-items:flex-start;padding:0.5rem 1rem;gap:0.25rem}.app-info-heading.svelte-177u10y{font-weight:700;color:var(--account-center-maximized-app-info-color, inherit)}.w100.svelte-177u10y{width:100%}a.svelte-177u10y{font-weight:700}.powered-by-container.svelte-177u10y{color:var(--text-color);padding:0.75rem}`);
|
|
1459
|
+
}
|
|
1460
|
+
function dt(e, t, n) {
|
|
1461
|
+
const r = e.slice();
|
|
1462
|
+
return r[29] = t[n], r[31] = n, r;
|
|
1463
|
+
}
|
|
1464
|
+
function ut(e) {
|
|
1465
|
+
let t, n;
|
|
1466
|
+
return t = new En({
|
|
1467
|
+
props: {
|
|
1468
|
+
onClose: (
|
|
1469
|
+
/*func*/
|
|
1470
|
+
e[22]
|
|
1471
|
+
),
|
|
1472
|
+
onConfirm: (
|
|
1473
|
+
/*disconnectAllWallets*/
|
|
1474
|
+
e[13]
|
|
1475
|
+
)
|
|
1476
|
+
}
|
|
1477
|
+
}), {
|
|
1478
|
+
c() {
|
|
1479
|
+
F(t.$$.fragment);
|
|
1480
|
+
},
|
|
1481
|
+
m(r, o) {
|
|
1482
|
+
O(t, r, o), n = !0;
|
|
1483
|
+
},
|
|
1484
|
+
p(r, o) {
|
|
1485
|
+
const l = {};
|
|
1486
|
+
o[0] & /*disconnectConfirmModal*/
|
|
1487
|
+
4 && (l.onClose = /*func*/
|
|
1488
|
+
r[22]), t.$set(l);
|
|
1489
|
+
},
|
|
1490
|
+
i(r) {
|
|
1491
|
+
n || (y(t.$$.fragment, r), n = !0);
|
|
1492
|
+
},
|
|
1493
|
+
o(r) {
|
|
1494
|
+
A(t.$$.fragment, r), n = !1;
|
|
1495
|
+
},
|
|
1496
|
+
d(r) {
|
|
1497
|
+
Z(t, r);
|
|
1498
|
+
}
|
|
1499
|
+
};
|
|
1500
|
+
}
|
|
1501
|
+
function ft(e) {
|
|
1502
|
+
let t, n;
|
|
1503
|
+
return t = new Gn({
|
|
1504
|
+
props: {
|
|
1505
|
+
onDismiss: (
|
|
1506
|
+
/*func_1*/
|
|
1507
|
+
e[23]
|
|
1508
|
+
),
|
|
1509
|
+
onEnable: (
|
|
1510
|
+
/*func_2*/
|
|
1511
|
+
e[24]
|
|
1512
|
+
),
|
|
1513
|
+
infoLink: (
|
|
1514
|
+
/*$accountCenter$*/
|
|
1515
|
+
e[9].transactionProtectionInfoLink || We
|
|
1516
|
+
)
|
|
1517
|
+
}
|
|
1518
|
+
}), {
|
|
1519
|
+
c() {
|
|
1520
|
+
F(t.$$.fragment);
|
|
1521
|
+
},
|
|
1522
|
+
m(r, o) {
|
|
1523
|
+
O(t, r, o), n = !0;
|
|
1524
|
+
},
|
|
1525
|
+
p(r, o) {
|
|
1526
|
+
const l = {};
|
|
1527
|
+
o[0] & /*enableTransactionProtection*/
|
|
1528
|
+
16 && (l.onDismiss = /*func_1*/
|
|
1529
|
+
r[23]), o[0] & /*$accountCenter$*/
|
|
1530
|
+
512 && (l.infoLink = /*$accountCenter$*/
|
|
1531
|
+
r[9].transactionProtectionInfoLink || We), t.$set(l);
|
|
1532
|
+
},
|
|
1533
|
+
i(r) {
|
|
1534
|
+
n || (y(t.$$.fragment, r), n = !0);
|
|
1535
|
+
},
|
|
1536
|
+
o(r) {
|
|
1537
|
+
A(t.$$.fragment, r), n = !1;
|
|
1538
|
+
},
|
|
1539
|
+
d(r) {
|
|
1540
|
+
Z(t, r);
|
|
1541
|
+
}
|
|
1542
|
+
};
|
|
1543
|
+
}
|
|
1544
|
+
function pt(e) {
|
|
1545
|
+
let t, n, r, o, l = [], a = /* @__PURE__ */ new Map(), s, i, f, d, v, k, b, g, m, u, _, w = (
|
|
1546
|
+
/*$_*/
|
|
1547
|
+
e[10]("accountCenter.currentNetwork", { default: P.accountCenter.currentNetwork }) + ""
|
|
1548
|
+
), C, $, I, B, D, H, q, W, U, X, K, ne, re, T, N, x = (
|
|
1549
|
+
/*$wallets$*/
|
|
1550
|
+
e[1]
|
|
1551
|
+
);
|
|
1552
|
+
const Te = (E) => (
|
|
1553
|
+
/*wallet*/
|
|
1554
|
+
E[29].label
|
|
1555
|
+
);
|
|
1556
|
+
for (let E = 0; E < x.length; E += 1) {
|
|
1557
|
+
let V = dt(e, x, E), le = Te(V);
|
|
1558
|
+
a.set(le, l[E] = vt(le, V));
|
|
1559
|
+
}
|
|
1560
|
+
let se = (
|
|
1561
|
+
/*device*/
|
|
1562
|
+
e[17].type === "desktop" && lr(e)
|
|
1563
|
+
);
|
|
1564
|
+
b = new be({
|
|
1565
|
+
props: {
|
|
1566
|
+
size: 32,
|
|
1567
|
+
padding: 4,
|
|
1568
|
+
background: "custom",
|
|
1569
|
+
color: /*validAppChain*/ e[5] ? /*validAppChain*/ e[5].icon ? void 0 : "#EFF1FC" : "#FFAF00",
|
|
1570
|
+
customBackgroundColor: (
|
|
1571
|
+
/*validAppChain*/
|
|
1572
|
+
e[5] ? (
|
|
1573
|
+
/*validAppChain*/
|
|
1574
|
+
e[5].color || /*defaultChainStyles*/
|
|
1575
|
+
e[7] && /*defaultChainStyles*/
|
|
1576
|
+
e[7].color || ge.color
|
|
1577
|
+
) : "#FFE7B3"
|
|
1578
|
+
),
|
|
1579
|
+
border: "transparent",
|
|
1580
|
+
radius: 8,
|
|
1581
|
+
icon: (
|
|
1582
|
+
/*validAppChain*/
|
|
1583
|
+
e[5] ? (
|
|
1584
|
+
/*validAppChain*/
|
|
1585
|
+
e[5].icon || /*defaultChainStyles*/
|
|
1586
|
+
e[7] && /*defaultChainStyles*/
|
|
1587
|
+
e[7].icon || ge.icon
|
|
1588
|
+
) : Se
|
|
1589
|
+
)
|
|
1590
|
+
}
|
|
1591
|
+
});
|
|
1592
|
+
let G = (
|
|
1593
|
+
/*validAppChain*/
|
|
1594
|
+
e[5] && mt()
|
|
1595
|
+
);
|
|
1596
|
+
B = new qt({
|
|
1597
|
+
props: {
|
|
1598
|
+
chains: (
|
|
1599
|
+
/*appChains*/
|
|
1600
|
+
e[14]
|
|
1601
|
+
),
|
|
1602
|
+
colorVar: "--account-center-maximized-network-selector-color",
|
|
1603
|
+
bold: !0,
|
|
1604
|
+
selectIcon: Hn,
|
|
1605
|
+
parentCSSId: "maximized_ac"
|
|
1606
|
+
}
|
|
1607
|
+
});
|
|
1608
|
+
let oe = !/*$accountCenter$*/
|
|
1609
|
+
e[9].hideTransactionProtectionBtn && /*primaryWalletOnMainnet*/
|
|
1610
|
+
(e[6] || /*validAppChain*/
|
|
1611
|
+
e[5] && /*validAppChain*/
|
|
1612
|
+
e[5].protectedRpcUrl) && ht(e), Q = (
|
|
1613
|
+
/*$appMetadata$*/
|
|
1614
|
+
e[11] && gt(e)
|
|
1615
|
+
), J = (
|
|
1616
|
+
/*secondaryTokens*/
|
|
1617
|
+
e[8] && /*secondaryTokens*/
|
|
1618
|
+
e[8].length && kt(e)
|
|
1619
|
+
);
|
|
1620
|
+
return {
|
|
1621
|
+
c() {
|
|
1622
|
+
t = h("div"), n = h("div"), r = h("div"), o = h("div");
|
|
1623
|
+
for (let E = 0; E < l.length; E += 1)
|
|
1624
|
+
l[E].c();
|
|
1625
|
+
s = z(), i = h("div"), se && se.c(), f = z(), d = h("div"), v = h("div"), k = h("div"), F(b.$$.fragment), g = z(), G && G.c(), m = z(), u = h("div"), _ = h("div"), C = L(w), $ = z(), I = h("div"), F(B.$$.fragment), D = z(), oe && oe.c(), H = z(), q = h("div"), Q && Q.c(), W = z(), J && J.c(), U = z(), X = h("div"), K = h("a"), p(o, "class", "wallets svelte-177u10y"), p(i, "class", "actions flex flex-column items-start svelte-177u10y"), p(r, "class", "p5 svelte-177u10y"), p(k, "class", "relative flex"), p(_, "class", "network-selector-label svelte-177u10y"), p(I, "class", "flex items-center"), _e(I, "width", "100%"), p(u, "class", "network-selector-container svelte-177u10y"), p(v, "class", "network-section flex items-center svelte-177u10y"), p(d, "class", "network-container svelte-177u10y"), ce(
|
|
1626
|
+
d,
|
|
1627
|
+
"background-blue",
|
|
1628
|
+
/*validAppChain*/
|
|
1629
|
+
e[5] && /*validAppChain*/
|
|
1630
|
+
e[5].icon || /*defaultChainStyles*/
|
|
1631
|
+
e[7]
|
|
1632
|
+
), ce(d, "background-yellow", !/*validAppChain*/
|
|
1633
|
+
e[5]), ce(
|
|
1634
|
+
d,
|
|
1635
|
+
"background-gray",
|
|
1636
|
+
/*validAppChain*/
|
|
1637
|
+
e[5] && !/*defaultChainStyles*/
|
|
1638
|
+
e[7]
|
|
1639
|
+
), p(K, "href", "https://blocknative.com"), p(K, "target", "_blank"), p(K, "rel", "noopener noreferrer"), p(K, "class", "flex justify-center items-center powered-by-container svelte-177u10y"), p(X, "class", "w100 svelte-177u10y"), p(q, "class", "app-info-container svelte-177u10y"), p(n, "class", "wallets-section svelte-177u10y"), p(t, "class", "outer-container svelte-177u10y");
|
|
1640
|
+
},
|
|
1641
|
+
m(E, V) {
|
|
1642
|
+
M(E, t, V), c(t, n), c(n, r), c(r, o);
|
|
1643
|
+
for (let le = 0; le < l.length; le += 1)
|
|
1644
|
+
l[le] && l[le].m(o, null);
|
|
1645
|
+
c(r, s), c(r, i), se && se.m(i, null), c(n, f), c(n, d), c(d, v), c(v, k), O(b, k, null), c(k, g), G && G.m(k, null), c(v, m), c(v, u), c(u, _), c(_, C), c(u, $), c(u, I), O(B, I, null), c(d, D), oe && oe.m(d, null), c(n, H), c(n, q), Q && Q.m(q, null), c(q, W), J && J.m(q, null), c(q, U), c(q, X), c(X, K), K.innerHTML = Jt, re = !0, T || (N = [
|
|
1646
|
+
Y(
|
|
1647
|
+
I,
|
|
1648
|
+
"click",
|
|
1649
|
+
/*click_handler*/
|
|
1650
|
+
e[21]
|
|
1651
|
+
),
|
|
1652
|
+
Y(t, "click", fe(function() {
|
|
1653
|
+
we(
|
|
1654
|
+
/*hideWalletRowMenu*/
|
|
1655
|
+
e[3]
|
|
1656
|
+
) && e[3].apply(this, arguments);
|
|
1657
|
+
}))
|
|
1658
|
+
], T = !0);
|
|
1659
|
+
},
|
|
1660
|
+
p(E, V) {
|
|
1661
|
+
e = E, V[0] & /*$wallets$, hideWalletRowMenu*/
|
|
1662
|
+
10 && (x = /*$wallets$*/
|
|
1663
|
+
e[1], ae(), l = At(l, V, Te, 1, e, x, a, o, Kt, vt, null, dt), ie()), /*device*/
|
|
1664
|
+
e[17].type === "desktop" && se.p(e, V);
|
|
1665
|
+
const le = {};
|
|
1666
|
+
V[0] & /*validAppChain*/
|
|
1667
|
+
32 && (le.color = /*validAppChain*/
|
|
1668
|
+
e[5] ? /*validAppChain*/ e[5].icon ? void 0 : "#EFF1FC" : "#FFAF00"), V[0] & /*validAppChain, defaultChainStyles*/
|
|
1669
|
+
160 && (le.customBackgroundColor = /*validAppChain*/
|
|
1670
|
+
e[5] ? (
|
|
1671
|
+
/*validAppChain*/
|
|
1672
|
+
e[5].color || /*defaultChainStyles*/
|
|
1673
|
+
e[7] && /*defaultChainStyles*/
|
|
1674
|
+
e[7].color || ge.color
|
|
1675
|
+
) : "#FFE7B3"), V[0] & /*validAppChain, defaultChainStyles*/
|
|
1676
|
+
160 && (le.icon = /*validAppChain*/
|
|
1677
|
+
e[5] ? (
|
|
1678
|
+
/*validAppChain*/
|
|
1679
|
+
e[5].icon || /*defaultChainStyles*/
|
|
1680
|
+
e[7] && /*defaultChainStyles*/
|
|
1681
|
+
e[7].icon || ge.icon
|
|
1682
|
+
) : Se), b.$set(le), /*validAppChain*/
|
|
1683
|
+
e[5] ? G ? V[0] & /*validAppChain*/
|
|
1684
|
+
32 && y(G, 1) : (G = mt(), G.c(), y(G, 1), G.m(k, null)) : G && (ae(), A(G, 1, 1, () => {
|
|
1685
|
+
G = null;
|
|
1686
|
+
}), ie()), (!re || V[0] & /*$_*/
|
|
1687
|
+
1024) && w !== (w = /*$_*/
|
|
1688
|
+
e[10]("accountCenter.currentNetwork", { default: P.accountCenter.currentNetwork }) + "") && j(C, w), !/*$accountCenter$*/
|
|
1689
|
+
e[9].hideTransactionProtectionBtn && /*primaryWalletOnMainnet*/
|
|
1690
|
+
(e[6] || /*validAppChain*/
|
|
1691
|
+
e[5] && /*validAppChain*/
|
|
1692
|
+
e[5].protectedRpcUrl) ? oe ? oe.p(e, V) : (oe = ht(e), oe.c(), oe.m(d, null)) : oe && (oe.d(1), oe = null), (!re || V[0] & /*validAppChain, defaultChainStyles*/
|
|
1693
|
+
160) && ce(
|
|
1694
|
+
d,
|
|
1695
|
+
"background-blue",
|
|
1696
|
+
/*validAppChain*/
|
|
1697
|
+
e[5] && /*validAppChain*/
|
|
1698
|
+
e[5].icon || /*defaultChainStyles*/
|
|
1699
|
+
e[7]
|
|
1700
|
+
), (!re || V[0] & /*validAppChain*/
|
|
1701
|
+
32) && ce(d, "background-yellow", !/*validAppChain*/
|
|
1702
|
+
e[5]), (!re || V[0] & /*validAppChain, defaultChainStyles*/
|
|
1703
|
+
160) && ce(
|
|
1704
|
+
d,
|
|
1705
|
+
"background-gray",
|
|
1706
|
+
/*validAppChain*/
|
|
1707
|
+
e[5] && !/*defaultChainStyles*/
|
|
1708
|
+
e[7]
|
|
1709
|
+
), /*$appMetadata$*/
|
|
1710
|
+
e[11] ? Q ? (Q.p(e, V), V[0] & /*$appMetadata$*/
|
|
1711
|
+
2048 && y(Q, 1)) : (Q = gt(e), Q.c(), y(Q, 1), Q.m(q, W)) : Q && (ae(), A(Q, 1, 1, () => {
|
|
1712
|
+
Q = null;
|
|
1713
|
+
}), ie()), /*secondaryTokens*/
|
|
1714
|
+
e[8] && /*secondaryTokens*/
|
|
1715
|
+
e[8].length ? J ? (J.p(e, V), V[0] & /*secondaryTokens*/
|
|
1716
|
+
256 && y(J, 1)) : (J = kt(e), J.c(), y(J, 1), J.m(q, U)) : J && (ae(), A(J, 1, 1, () => {
|
|
1717
|
+
J = null;
|
|
1718
|
+
}), ie());
|
|
1719
|
+
},
|
|
1720
|
+
i(E) {
|
|
1721
|
+
if (!re) {
|
|
1722
|
+
for (let V = 0; V < x.length; V += 1)
|
|
1723
|
+
y(l[V]);
|
|
1724
|
+
y(b.$$.fragment, E), y(G), y(B.$$.fragment, E), y(Q), y(J), E && Ae(() => {
|
|
1725
|
+
re && (ne || (ne = Ne(
|
|
1726
|
+
t,
|
|
1727
|
+
Fe,
|
|
1728
|
+
{
|
|
1729
|
+
duration: 600,
|
|
1730
|
+
y: (
|
|
1731
|
+
/*position*/
|
|
1732
|
+
e[16].includes("bottom") ? 56 : -76
|
|
1733
|
+
),
|
|
1734
|
+
easing: Ee,
|
|
1735
|
+
opacity: 0
|
|
1736
|
+
},
|
|
1737
|
+
!0
|
|
1738
|
+
)), ne.run(1));
|
|
1739
|
+
}), re = !0;
|
|
1740
|
+
}
|
|
1741
|
+
},
|
|
1742
|
+
o(E) {
|
|
1743
|
+
for (let V = 0; V < l.length; V += 1)
|
|
1744
|
+
A(l[V]);
|
|
1745
|
+
A(b.$$.fragment, E), A(G), A(B.$$.fragment, E), A(Q), A(J), E && (ne || (ne = Ne(
|
|
1746
|
+
t,
|
|
1747
|
+
Fe,
|
|
1748
|
+
{
|
|
1749
|
+
duration: 600,
|
|
1750
|
+
y: (
|
|
1751
|
+
/*position*/
|
|
1752
|
+
e[16].includes("bottom") ? 56 : -76
|
|
1753
|
+
),
|
|
1754
|
+
easing: Ee,
|
|
1755
|
+
opacity: 0
|
|
1756
|
+
},
|
|
1757
|
+
!1
|
|
1758
|
+
)), ne.run(0)), re = !1;
|
|
1759
|
+
},
|
|
1760
|
+
d(E) {
|
|
1761
|
+
E && S(t);
|
|
1762
|
+
for (let V = 0; V < l.length; V += 1)
|
|
1763
|
+
l[V].d();
|
|
1764
|
+
se && se.d(), Z(b), G && G.d(), Z(B), oe && oe.d(), Q && Q.d(), J && J.d(), E && ne && ne.end(), T = !1, ke(N);
|
|
1765
|
+
}
|
|
1766
|
+
};
|
|
1767
|
+
}
|
|
1768
|
+
function vt(e, t) {
|
|
1769
|
+
let n, r, o, l;
|
|
1770
|
+
function a(i) {
|
|
1771
|
+
t[25](i);
|
|
1772
|
+
}
|
|
1773
|
+
let s = {
|
|
1774
|
+
wallet: (
|
|
1775
|
+
/*wallet*/
|
|
1776
|
+
t[29]
|
|
1777
|
+
),
|
|
1778
|
+
primary: (
|
|
1779
|
+
/*i*/
|
|
1780
|
+
t[31] === 0
|
|
1781
|
+
)
|
|
1782
|
+
};
|
|
1783
|
+
return (
|
|
1784
|
+
/*hideWalletRowMenu*/
|
|
1785
|
+
t[3] !== void 0 && (s.hideMenu = /*hideWalletRowMenu*/
|
|
1786
|
+
t[3]), r = new qn({ props: s }), Tt.push(() => xt(r, "hideMenu", a)), {
|
|
1787
|
+
key: e,
|
|
1788
|
+
first: null,
|
|
1789
|
+
c() {
|
|
1790
|
+
n = ue(), F(r.$$.fragment), this.first = n;
|
|
1791
|
+
},
|
|
1792
|
+
m(i, f) {
|
|
1793
|
+
M(i, n, f), O(r, i, f), l = !0;
|
|
1794
|
+
},
|
|
1795
|
+
p(i, f) {
|
|
1796
|
+
t = i;
|
|
1797
|
+
const d = {};
|
|
1798
|
+
f[0] & /*$wallets$*/
|
|
1799
|
+
2 && (d.wallet = /*wallet*/
|
|
1800
|
+
t[29]), f[0] & /*$wallets$*/
|
|
1801
|
+
2 && (d.primary = /*i*/
|
|
1802
|
+
t[31] === 0), !o && f[0] & /*hideWalletRowMenu*/
|
|
1803
|
+
8 && (o = !0, d.hideMenu = /*hideWalletRowMenu*/
|
|
1804
|
+
t[3], en(() => o = !1)), r.$set(d);
|
|
1805
|
+
},
|
|
1806
|
+
i(i) {
|
|
1807
|
+
l || (y(r.$$.fragment, i), l = !0);
|
|
1808
|
+
},
|
|
1809
|
+
o(i) {
|
|
1810
|
+
A(r.$$.fragment, i), l = !1;
|
|
1811
|
+
},
|
|
1812
|
+
d(i) {
|
|
1813
|
+
i && S(n), Z(r, i);
|
|
1814
|
+
}
|
|
1815
|
+
}
|
|
1816
|
+
);
|
|
1817
|
+
}
|
|
1818
|
+
function lr(e) {
|
|
1819
|
+
let t, n, r, o, l = (
|
|
1820
|
+
/*$_*/
|
|
1821
|
+
e[10]("accountCenter.connectAnotherWallet", {
|
|
1822
|
+
default: P.accountCenter.connectAnotherWallet
|
|
1823
|
+
}) + ""
|
|
1824
|
+
), a, s, i, f, d, v, k = (
|
|
1825
|
+
/*$_*/
|
|
1826
|
+
e[10]("accountCenter.disconnectAllWallets", {
|
|
1827
|
+
default: P.accountCenter.disconnectAllWallets
|
|
1828
|
+
}) + ""
|
|
1829
|
+
), b, g, m;
|
|
1830
|
+
return {
|
|
1831
|
+
c() {
|
|
1832
|
+
t = h("div"), n = h("div"), r = z(), o = h("span"), a = L(l), s = z(), i = h("div"), f = h("div"), d = z(), v = h("span"), b = L(k), p(n, "class", "plus-icon flex items-center justify-center svelte-177u10y"), p(o, "class", "action-text svelte-177u10y"), p(t, "class", "action-container flex items-center pointer svelte-177u10y"), p(f, "class", "arrow-forward flex items-center justify-center svelte-177u10y"), p(v, "class", "action-text svelte-177u10y"), p(i, "class", "action-container flex items-center mt pointer svelte-177u10y");
|
|
1833
|
+
},
|
|
1834
|
+
m(u, _) {
|
|
1835
|
+
M(u, t, _), c(t, n), n.innerHTML = Vn, c(t, r), c(t, o), c(o, a), M(u, s, _), M(u, i, _), c(i, f), f.innerHTML = jn, c(i, d), c(i, v), c(v, b), g || (m = [
|
|
1836
|
+
Y(
|
|
1837
|
+
t,
|
|
1838
|
+
"click",
|
|
1839
|
+
/*click_handler_1*/
|
|
1840
|
+
e[26]
|
|
1841
|
+
),
|
|
1842
|
+
Y(
|
|
1843
|
+
i,
|
|
1844
|
+
"click",
|
|
1845
|
+
/*click_handler_2*/
|
|
1846
|
+
e[27]
|
|
1847
|
+
)
|
|
1848
|
+
], g = !0);
|
|
1849
|
+
},
|
|
1850
|
+
p(u, _) {
|
|
1851
|
+
_[0] & /*$_*/
|
|
1852
|
+
1024 && l !== (l = /*$_*/
|
|
1853
|
+
u[10]("accountCenter.connectAnotherWallet", {
|
|
1854
|
+
default: P.accountCenter.connectAnotherWallet
|
|
1855
|
+
}) + "") && j(a, l), _[0] & /*$_*/
|
|
1856
|
+
1024 && k !== (k = /*$_*/
|
|
1857
|
+
u[10]("accountCenter.disconnectAllWallets", {
|
|
1858
|
+
default: P.accountCenter.disconnectAllWallets
|
|
1859
|
+
}) + "") && j(b, k);
|
|
1860
|
+
},
|
|
1861
|
+
d(u) {
|
|
1862
|
+
u && S(t), u && S(s), u && S(i), g = !1, ke(m);
|
|
1863
|
+
}
|
|
1864
|
+
};
|
|
1865
|
+
}
|
|
1866
|
+
function mt(e) {
|
|
1867
|
+
let t, n, r;
|
|
1868
|
+
return n = new Ve({ props: { size: 14 } }), {
|
|
1869
|
+
c() {
|
|
1870
|
+
t = h("div"), F(n.$$.fragment), _e(t, "right", "-5px"), _e(t, "bottom", "-5px"), p(t, "class", "drop-shadow absolute");
|
|
1871
|
+
},
|
|
1872
|
+
m(o, l) {
|
|
1873
|
+
M(o, t, l), O(n, t, null), r = !0;
|
|
1874
|
+
},
|
|
1875
|
+
i(o) {
|
|
1876
|
+
r || (y(n.$$.fragment, o), r = !0);
|
|
1877
|
+
},
|
|
1878
|
+
o(o) {
|
|
1879
|
+
A(n.$$.fragment, o), r = !1;
|
|
1880
|
+
},
|
|
1881
|
+
d(o) {
|
|
1882
|
+
o && S(t), Z(n);
|
|
1883
|
+
}
|
|
1884
|
+
};
|
|
1885
|
+
}
|
|
1886
|
+
function ht(e) {
|
|
1887
|
+
let t, n, r, o, l = (
|
|
1888
|
+
/*$_*/
|
|
1889
|
+
e[10]("accountCenter.enableTransactionProtection", {
|
|
1890
|
+
default: P.accountCenter.enableTransactionProtection
|
|
1891
|
+
}) + ""
|
|
1892
|
+
), a, s, i;
|
|
1893
|
+
return {
|
|
1894
|
+
c() {
|
|
1895
|
+
t = h("div"), n = h("div"), r = z(), o = h("span"), a = L(l), p(n, "class", "shield svelte-177u10y"), p(o, "class", "protect-text svelte-177u10y"), p(t, "class", "protect action-container flex items-center pointer svelte-177u10y");
|
|
1896
|
+
},
|
|
1897
|
+
m(f, d) {
|
|
1898
|
+
M(f, t, d), c(t, n), n.innerHTML = Vt, c(t, r), c(t, o), c(o, a), s || (i = Y(
|
|
1899
|
+
t,
|
|
1900
|
+
"click",
|
|
1901
|
+
/*click_handler_3*/
|
|
1902
|
+
e[28]
|
|
1903
|
+
), s = !0);
|
|
1904
|
+
},
|
|
1905
|
+
p(f, d) {
|
|
1906
|
+
d[0] & /*$_*/
|
|
1907
|
+
1024 && l !== (l = /*$_*/
|
|
1908
|
+
f[10]("accountCenter.enableTransactionProtection", {
|
|
1909
|
+
default: P.accountCenter.enableTransactionProtection
|
|
1910
|
+
}) + "") && j(a, l);
|
|
1911
|
+
},
|
|
1912
|
+
d(f) {
|
|
1913
|
+
f && S(t), s = !1, i();
|
|
1914
|
+
}
|
|
1915
|
+
};
|
|
1916
|
+
}
|
|
1917
|
+
function gt(e) {
|
|
1918
|
+
let t, n, r, o, l, a = (
|
|
1919
|
+
/*$appMetadata$*/
|
|
1920
|
+
(e[11] && /*$appMetadata$*/
|
|
1921
|
+
e[11].name || "App Name") + ""
|
|
1922
|
+
), s, i, f, d = (
|
|
1923
|
+
/*$appMetadata$*/
|
|
1924
|
+
(e[11] && /*$appMetadata$*/
|
|
1925
|
+
e[11].description || "This app has not added a description.") + ""
|
|
1926
|
+
), v, k, b, g;
|
|
1927
|
+
r = new be({
|
|
1928
|
+
props: {
|
|
1929
|
+
size: 32,
|
|
1930
|
+
padding: 4,
|
|
1931
|
+
background: "white",
|
|
1932
|
+
border: "black",
|
|
1933
|
+
radius: 8,
|
|
1934
|
+
icon: (
|
|
1935
|
+
/*$appMetadata$*/
|
|
1936
|
+
e[11] && /*$appMetadata$*/
|
|
1937
|
+
e[11].icon || ze
|
|
1938
|
+
)
|
|
1939
|
+
}
|
|
1940
|
+
});
|
|
1941
|
+
let m = (
|
|
1942
|
+
/*$appMetadata$*/
|
|
1943
|
+
(e[11].gettingStartedGuide || /*$appMetadata$*/
|
|
1944
|
+
e[11].explore) && bt(e)
|
|
1945
|
+
);
|
|
1946
|
+
return {
|
|
1947
|
+
c() {
|
|
1948
|
+
t = h("div"), n = h("div"), F(r.$$.fragment), o = z(), l = h("div"), s = L(a), i = z(), f = h("div"), v = L(d), k = z(), m && m.c(), b = ue(), p(l, "class", "app-name svelte-177u10y"), p(n, "class", "relative flex app-icon-name svelte-177u10y"), p(f, "class", "app-description svelte-177u10y"), p(t, "class", "flex items-start app-info-header svelte-177u10y");
|
|
1949
|
+
},
|
|
1950
|
+
m(u, _) {
|
|
1951
|
+
M(u, t, _), c(t, n), O(r, n, null), c(n, o), c(n, l), c(l, s), c(t, i), c(t, f), c(f, v), M(u, k, _), m && m.m(u, _), M(u, b, _), g = !0;
|
|
1952
|
+
},
|
|
1953
|
+
p(u, _) {
|
|
1954
|
+
const w = {};
|
|
1955
|
+
_[0] & /*$appMetadata$*/
|
|
1956
|
+
2048 && (w.icon = /*$appMetadata$*/
|
|
1957
|
+
u[11] && /*$appMetadata$*/
|
|
1958
|
+
u[11].icon || ze), r.$set(w), (!g || _[0] & /*$appMetadata$*/
|
|
1959
|
+
2048) && a !== (a = /*$appMetadata$*/
|
|
1960
|
+
(u[11] && /*$appMetadata$*/
|
|
1961
|
+
u[11].name || "App Name") + "") && j(s, a), (!g || _[0] & /*$appMetadata$*/
|
|
1962
|
+
2048) && d !== (d = /*$appMetadata$*/
|
|
1963
|
+
(u[11] && /*$appMetadata$*/
|
|
1964
|
+
u[11].description || "This app has not added a description.") + "") && j(v, d), /*$appMetadata$*/
|
|
1965
|
+
u[11].gettingStartedGuide || /*$appMetadata$*/
|
|
1966
|
+
u[11].explore ? m ? m.p(u, _) : (m = bt(u), m.c(), m.m(b.parentNode, b)) : m && (m.d(1), m = null);
|
|
1967
|
+
},
|
|
1968
|
+
i(u) {
|
|
1969
|
+
g || (y(r.$$.fragment, u), g = !0);
|
|
1970
|
+
},
|
|
1971
|
+
o(u) {
|
|
1972
|
+
A(r.$$.fragment, u), g = !1;
|
|
1973
|
+
},
|
|
1974
|
+
d(u) {
|
|
1975
|
+
u && S(t), Z(r), u && S(k), m && m.d(u), u && S(b);
|
|
1976
|
+
}
|
|
1977
|
+
};
|
|
1978
|
+
}
|
|
1979
|
+
function bt(e) {
|
|
1980
|
+
let t, n, r = (
|
|
1981
|
+
/*$_*/
|
|
1982
|
+
e[10]("accountCenter.appInfo", { default: P.accountCenter.appInfo }) + ""
|
|
1983
|
+
), o, l, a, s = (
|
|
1984
|
+
/*$appMetadata$*/
|
|
1985
|
+
e[11].gettingStartedGuide && _t(e)
|
|
1986
|
+
), i = (
|
|
1987
|
+
/*$appMetadata$*/
|
|
1988
|
+
e[11].explore && wt(e)
|
|
1989
|
+
);
|
|
1990
|
+
return {
|
|
1991
|
+
c() {
|
|
1992
|
+
t = h("div"), n = h("div"), o = L(r), l = z(), s && s.c(), a = z(), i && i.c(), p(n, "class", "app-info-heading svelte-177u10y"), p(t, "class", "app-info svelte-177u10y");
|
|
1993
|
+
},
|
|
1994
|
+
m(f, d) {
|
|
1995
|
+
M(f, t, d), c(t, n), c(n, o), c(t, l), s && s.m(t, null), c(t, a), i && i.m(t, null);
|
|
1996
|
+
},
|
|
1997
|
+
p(f, d) {
|
|
1998
|
+
d[0] & /*$_*/
|
|
1999
|
+
1024 && r !== (r = /*$_*/
|
|
2000
|
+
f[10]("accountCenter.appInfo", { default: P.accountCenter.appInfo }) + "") && j(o, r), /*$appMetadata$*/
|
|
2001
|
+
f[11].gettingStartedGuide ? s ? s.p(f, d) : (s = _t(f), s.c(), s.m(t, a)) : s && (s.d(1), s = null), /*$appMetadata$*/
|
|
2002
|
+
f[11].explore ? i ? i.p(f, d) : (i = wt(f), i.c(), i.m(t, null)) : i && (i.d(1), i = null);
|
|
2003
|
+
},
|
|
2004
|
+
d(f) {
|
|
2005
|
+
f && S(t), s && s.d(), i && i.d();
|
|
2006
|
+
}
|
|
2007
|
+
};
|
|
2008
|
+
}
|
|
2009
|
+
function _t(e) {
|
|
2010
|
+
let t, n, r = (
|
|
2011
|
+
/*$_*/
|
|
2012
|
+
e[10]("accountCenter.learnMore", { default: P.accountCenter.learnMore }) + ""
|
|
2013
|
+
), o, l, a, s = (
|
|
2014
|
+
/*$_*/
|
|
2015
|
+
e[10]("accountCenter.gettingStartedGuide", {
|
|
2016
|
+
default: P.accountCenter.gettingStartedGuide
|
|
2017
|
+
}) + ""
|
|
2018
|
+
), i, f;
|
|
2019
|
+
return {
|
|
2020
|
+
c() {
|
|
2021
|
+
t = h("div"), n = h("div"), o = L(r), l = z(), a = h("a"), i = L(s), p(a, "href", f = /*$appMetadata$*/
|
|
2022
|
+
e[11].gettingStartedGuide), p(a, "target", "_blank"), p(a, "rel", "noreferrer noopener"), p(a, "class", "svelte-177u10y"), p(t, "class", "flex justify-between items-center w100 svelte-177u10y");
|
|
2023
|
+
},
|
|
2024
|
+
m(d, v) {
|
|
2025
|
+
M(d, t, v), c(t, n), c(n, o), c(t, l), c(t, a), c(a, i);
|
|
2026
|
+
},
|
|
2027
|
+
p(d, v) {
|
|
2028
|
+
v[0] & /*$_*/
|
|
2029
|
+
1024 && r !== (r = /*$_*/
|
|
2030
|
+
d[10]("accountCenter.learnMore", { default: P.accountCenter.learnMore }) + "") && j(o, r), v[0] & /*$_*/
|
|
2031
|
+
1024 && s !== (s = /*$_*/
|
|
2032
|
+
d[10]("accountCenter.gettingStartedGuide", {
|
|
2033
|
+
default: P.accountCenter.gettingStartedGuide
|
|
2034
|
+
}) + "") && j(i, s), v[0] & /*$appMetadata$*/
|
|
2035
|
+
2048 && f !== (f = /*$appMetadata$*/
|
|
2036
|
+
d[11].gettingStartedGuide) && p(a, "href", f);
|
|
2037
|
+
},
|
|
2038
|
+
d(d) {
|
|
2039
|
+
d && S(t);
|
|
2040
|
+
}
|
|
2041
|
+
};
|
|
2042
|
+
}
|
|
2043
|
+
function wt(e) {
|
|
2044
|
+
let t, n, r = (
|
|
2045
|
+
/*$_*/
|
|
2046
|
+
e[10]("accountCenter.smartContracts", { default: P.accountCenter.smartContracts }) + ""
|
|
2047
|
+
), o, l, a, s = (
|
|
2048
|
+
/*$_*/
|
|
2049
|
+
e[10]("accountCenter.explore", { default: P.accountCenter.explore }) + ""
|
|
2050
|
+
), i, f;
|
|
2051
|
+
return {
|
|
2052
|
+
c() {
|
|
2053
|
+
t = h("div"), n = h("div"), o = L(r), l = z(), a = h("a"), i = L(s), p(a, "href", f = /*$appMetadata$*/
|
|
2054
|
+
e[11].explore), p(a, "target", "_blank"), p(a, "rel", "noreferrer noopener"), p(a, "class", "svelte-177u10y"), p(t, "class", "flex justify-between items-center w100 svelte-177u10y");
|
|
2055
|
+
},
|
|
2056
|
+
m(d, v) {
|
|
2057
|
+
M(d, t, v), c(t, n), c(n, o), c(t, l), c(t, a), c(a, i);
|
|
2058
|
+
},
|
|
2059
|
+
p(d, v) {
|
|
2060
|
+
v[0] & /*$_*/
|
|
2061
|
+
1024 && r !== (r = /*$_*/
|
|
2062
|
+
d[10]("accountCenter.smartContracts", { default: P.accountCenter.smartContracts }) + "") && j(o, r), v[0] & /*$_*/
|
|
2063
|
+
1024 && s !== (s = /*$_*/
|
|
2064
|
+
d[10]("accountCenter.explore", { default: P.accountCenter.explore }) + "") && j(i, s), v[0] & /*$appMetadata$*/
|
|
2065
|
+
2048 && f !== (f = /*$appMetadata$*/
|
|
2066
|
+
d[11].explore) && p(a, "href", f);
|
|
2067
|
+
},
|
|
2068
|
+
d(d) {
|
|
2069
|
+
d && S(t);
|
|
2070
|
+
}
|
|
2071
|
+
};
|
|
2072
|
+
}
|
|
2073
|
+
function kt(e) {
|
|
2074
|
+
let t, n;
|
|
2075
|
+
return t = new rr({
|
|
2076
|
+
props: {
|
|
2077
|
+
secondaryTokens: (
|
|
2078
|
+
/*secondaryTokens*/
|
|
2079
|
+
e[8]
|
|
2080
|
+
)
|
|
2081
|
+
}
|
|
2082
|
+
}), {
|
|
2083
|
+
c() {
|
|
2084
|
+
F(t.$$.fragment);
|
|
2085
|
+
},
|
|
2086
|
+
m(r, o) {
|
|
2087
|
+
O(t, r, o), n = !0;
|
|
2088
|
+
},
|
|
2089
|
+
p(r, o) {
|
|
2090
|
+
const l = {};
|
|
2091
|
+
o[0] & /*secondaryTokens*/
|
|
2092
|
+
256 && (l.secondaryTokens = /*secondaryTokens*/
|
|
2093
|
+
r[8]), t.$set(l);
|
|
2094
|
+
},
|
|
2095
|
+
i(r) {
|
|
2096
|
+
n || (y(t.$$.fragment, r), n = !0);
|
|
2097
|
+
},
|
|
2098
|
+
o(r) {
|
|
2099
|
+
A(t.$$.fragment, r), n = !1;
|
|
2100
|
+
},
|
|
2101
|
+
d(r) {
|
|
2102
|
+
Z(t, r);
|
|
2103
|
+
}
|
|
2104
|
+
};
|
|
2105
|
+
}
|
|
2106
|
+
function ar(e) {
|
|
2107
|
+
let t, n, r, o, l = (
|
|
2108
|
+
/*disconnectConfirmModal*/
|
|
2109
|
+
e[2] && ut(e)
|
|
2110
|
+
), a = (
|
|
2111
|
+
/*enableTransactionProtection*/
|
|
2112
|
+
e[4] && ft(e)
|
|
2113
|
+
), s = (
|
|
2114
|
+
/*expanded*/
|
|
2115
|
+
e[0] && pt(e)
|
|
2116
|
+
);
|
|
2117
|
+
return {
|
|
2118
|
+
c() {
|
|
2119
|
+
l && l.c(), t = z(), a && a.c(), n = z(), s && s.c(), r = ue();
|
|
2120
|
+
},
|
|
2121
|
+
m(i, f) {
|
|
2122
|
+
l && l.m(i, f), M(i, t, f), a && a.m(i, f), M(i, n, f), s && s.m(i, f), M(i, r, f), o = !0;
|
|
2123
|
+
},
|
|
2124
|
+
p(i, f) {
|
|
2125
|
+
/*disconnectConfirmModal*/
|
|
2126
|
+
i[2] ? l ? (l.p(i, f), f[0] & /*disconnectConfirmModal*/
|
|
2127
|
+
4 && y(l, 1)) : (l = ut(i), l.c(), y(l, 1), l.m(t.parentNode, t)) : l && (ae(), A(l, 1, 1, () => {
|
|
2128
|
+
l = null;
|
|
2129
|
+
}), ie()), /*enableTransactionProtection*/
|
|
2130
|
+
i[4] ? a ? (a.p(i, f), f[0] & /*enableTransactionProtection*/
|
|
2131
|
+
16 && y(a, 1)) : (a = ft(i), a.c(), y(a, 1), a.m(n.parentNode, n)) : a && (ae(), A(a, 1, 1, () => {
|
|
2132
|
+
a = null;
|
|
2133
|
+
}), ie()), /*expanded*/
|
|
2134
|
+
i[0] ? s ? (s.p(i, f), f[0] & /*expanded*/
|
|
2135
|
+
1 && y(s, 1)) : (s = pt(i), s.c(), y(s, 1), s.m(r.parentNode, r)) : s && (ae(), A(s, 1, 1, () => {
|
|
2136
|
+
s = null;
|
|
2137
|
+
}), ie());
|
|
2138
|
+
},
|
|
2139
|
+
i(i) {
|
|
2140
|
+
o || (y(l), y(a), y(s), o = !0);
|
|
2141
|
+
},
|
|
2142
|
+
o(i) {
|
|
2143
|
+
A(l), A(a), A(s), o = !1;
|
|
2144
|
+
},
|
|
2145
|
+
d(i) {
|
|
2146
|
+
l && l.d(i), i && S(t), a && a.d(i), i && S(n), s && s.d(i), i && S(r);
|
|
2147
|
+
}
|
|
2148
|
+
};
|
|
2149
|
+
}
|
|
2150
|
+
function ir(e, t, n) {
|
|
2151
|
+
let r, o, l, a, s, i, f, d, v, k;
|
|
2152
|
+
ee(e, Me, (T) => n(1, f = T)), ee(e, qe, (T) => n(10, v = T));
|
|
2153
|
+
let { expanded: b } = t;
|
|
2154
|
+
const g = te.select("accountCenter").pipe(ye(te.get().accountCenter), Ce(1));
|
|
2155
|
+
ee(e, g, (T) => n(9, d = T));
|
|
2156
|
+
function m() {
|
|
2157
|
+
f.forEach(({ label: T }) => Mt({ label: T }));
|
|
2158
|
+
}
|
|
2159
|
+
const { chains: u } = te.get();
|
|
2160
|
+
let _ = !1, w, C = !1;
|
|
2161
|
+
const $ = te.select("appMetadata").pipe(ye(te.get().appMetadata), Ce(1));
|
|
2162
|
+
ee(e, $, (T) => n(11, k = T));
|
|
2163
|
+
const { position: I } = te.get().accountCenter, { device: B } = tn, D = async () => {
|
|
2164
|
+
if (a)
|
|
2165
|
+
try {
|
|
2166
|
+
await nn(r.provider, a, a.protectedRpcUrl || rn), n(4, C = !1);
|
|
2167
|
+
} catch (T) {
|
|
2168
|
+
const { code: N } = T;
|
|
2169
|
+
console.log(T, N);
|
|
2170
|
+
}
|
|
2171
|
+
};
|
|
2172
|
+
function H(T) {
|
|
2173
|
+
St.call(this, e, T);
|
|
2174
|
+
}
|
|
2175
|
+
const q = () => n(2, _ = !1), W = () => n(4, C = !1), U = () => D();
|
|
2176
|
+
function X(T) {
|
|
2177
|
+
w = T, n(3, w);
|
|
2178
|
+
}
|
|
2179
|
+
const K = () => on(), ne = () => n(2, _ = !0), re = () => n(4, C = !0);
|
|
2180
|
+
return e.$$set = (T) => {
|
|
2181
|
+
"expanded" in T && n(0, b = T.expanded);
|
|
2182
|
+
}, e.$$.update = () => {
|
|
2183
|
+
e.$$.dirty[0] & /*$wallets$*/
|
|
2184
|
+
2 && n(19, [r] = f, r), e.$$.dirty[0] & /*primaryWallet*/
|
|
2185
|
+
524288 && n(20, [o] = r ? r.chains : [], o), e.$$.dirty[0] & /*primaryWallet*/
|
|
2186
|
+
524288 && n(8, l = r && r.accounts.length && r.accounts[0].secondaryTokens), e.$$.dirty[0] & /*connectedChain*/
|
|
2187
|
+
1048576 && n(5, a = u.find(({ id: T, namespace: N }) => o ? T === o.id && N === o.namespace : !1)), e.$$.dirty[0] & /*connectedChain*/
|
|
2188
|
+
1048576 && n(7, s = $t(o && o.id)), e.$$.dirty[0] & /*connectedChain*/
|
|
2189
|
+
1048576 && n(6, i = o && o.id === "0x1");
|
|
2190
|
+
}, [
|
|
2191
|
+
b,
|
|
2192
|
+
f,
|
|
2193
|
+
_,
|
|
2194
|
+
w,
|
|
2195
|
+
C,
|
|
2196
|
+
a,
|
|
2197
|
+
i,
|
|
2198
|
+
s,
|
|
2199
|
+
l,
|
|
2200
|
+
d,
|
|
2201
|
+
v,
|
|
2202
|
+
k,
|
|
2203
|
+
g,
|
|
2204
|
+
m,
|
|
2205
|
+
u,
|
|
2206
|
+
$,
|
|
2207
|
+
I,
|
|
2208
|
+
B,
|
|
2209
|
+
D,
|
|
2210
|
+
r,
|
|
2211
|
+
o,
|
|
2212
|
+
H,
|
|
2213
|
+
q,
|
|
2214
|
+
W,
|
|
2215
|
+
U,
|
|
2216
|
+
X,
|
|
2217
|
+
K,
|
|
2218
|
+
ne,
|
|
2219
|
+
re
|
|
2220
|
+
];
|
|
2221
|
+
}
|
|
2222
|
+
class jt extends pe {
|
|
2223
|
+
constructor(t) {
|
|
2224
|
+
super(), ve(this, t, ir, ar, me, { expanded: 0 }, or, [-1, -1]);
|
|
2225
|
+
}
|
|
2226
|
+
}
|
|
2227
|
+
function sr(e) {
|
|
2228
|
+
he(e, "svelte-1xsvwqj", `.ac-trigger.svelte-1xsvwqj{--background-color:var(
|
|
2229
|
+
--account-center-minimized-background,
|
|
2230
|
+
var(--w3o-background-color, white)
|
|
2231
|
+
);--text-color:var(--w3o-text-color, var(--gray-700));--border-color:var(
|
|
2232
|
+
--account-center-border,
|
|
2233
|
+
var(--w3o-border-color, var(--onboard-gray-200, var(--gray-200)))
|
|
2234
|
+
);--border-radius:var(
|
|
2235
|
+
--account-center-border-radius,
|
|
2236
|
+
var(--w3o-border-radius, 1rem)
|
|
2237
|
+
);cursor:pointer;pointer-events:auto;width:100%;padding:0.5rem;border:1px solid;background:var(--background-color);color:var(--text-color);border-color:var(--border-color);border-radius:var(--border-radius);box-shadow:var(
|
|
2238
|
+
--account-center-box-shadow,
|
|
2239
|
+
var(--onboard-shadow-3, var(--shadow-3))
|
|
2240
|
+
);z-index:var(--account-center-z-index, 1)}.inner-row.svelte-1xsvwqj{display:flex;flex-flow:row nowrap;align-items:center;gap:0.5rem;padding:0 0.25rem}.wallet-info.svelte-1xsvwqj{display:flex;flex:1;flex-flow:column;height:2.5rem;overflow:hidden}.address.svelte-1xsvwqj{font-weight:600;line-height:1.25rem;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;color:var(--account-center-minimized-address-color, inherit)}.balance.svelte-1xsvwqj{font-weight:400;line-height:1.25rem;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;opacity:0.6;color:var(--account-center-minimized-balance-color, inherit)}.chain-icon-container.svelte-1xsvwqj{margin-right:4px}.container.svelte-1xsvwqj{border:1px solid transparent;border-radius:16px;padding:1px;transition:border-color 250ms ease-in-out, backround 250ms ease-in-out;max-width:128px;cursor:default}.drop-shadow.svelte-1xsvwqj{filter:drop-shadow(0px 1px 4px rgba(0, 0, 0, 0.2))}`);
|
|
2241
|
+
}
|
|
2242
|
+
function yt(e) {
|
|
2243
|
+
let t, n = (
|
|
2244
|
+
/*firstAddressBalance*/
|
|
2245
|
+
(e[5].length > 7 ? (
|
|
2246
|
+
/*firstAddressBalance*/
|
|
2247
|
+
e[5].slice(0, 7)
|
|
2248
|
+
) : (
|
|
2249
|
+
/*firstAddressBalance*/
|
|
2250
|
+
e[5]
|
|
2251
|
+
)) + ""
|
|
2252
|
+
), r, o, l, a;
|
|
2253
|
+
return {
|
|
2254
|
+
c() {
|
|
2255
|
+
t = h("div"), r = L(n), o = z(), l = L(
|
|
2256
|
+
/*firstAddressAsset*/
|
|
2257
|
+
e[2]
|
|
2258
|
+
), p(t, "class", "balance svelte-1xsvwqj");
|
|
2259
|
+
},
|
|
2260
|
+
m(s, i) {
|
|
2261
|
+
M(s, t, i), c(t, r), c(t, o), c(t, l);
|
|
2262
|
+
},
|
|
2263
|
+
p(s, i) {
|
|
2264
|
+
i & /*firstAddressBalance*/
|
|
2265
|
+
32 && n !== (n = /*firstAddressBalance*/
|
|
2266
|
+
(s[5].length > 7 ? (
|
|
2267
|
+
/*firstAddressBalance*/
|
|
2268
|
+
s[5].slice(0, 7)
|
|
2269
|
+
) : (
|
|
2270
|
+
/*firstAddressBalance*/
|
|
2271
|
+
s[5]
|
|
2272
|
+
)) + "") && j(r, n), i & /*firstAddressAsset*/
|
|
2273
|
+
4 && j(
|
|
2274
|
+
l,
|
|
2275
|
+
/*firstAddressAsset*/
|
|
2276
|
+
s[2]
|
|
2277
|
+
);
|
|
2278
|
+
},
|
|
2279
|
+
i(s) {
|
|
2280
|
+
s && (a || Ae(() => {
|
|
2281
|
+
a = Ie(t, $e, {}), a.start();
|
|
2282
|
+
}));
|
|
2283
|
+
},
|
|
2284
|
+
o: R,
|
|
2285
|
+
d(s) {
|
|
2286
|
+
s && S(t);
|
|
2287
|
+
}
|
|
2288
|
+
};
|
|
2289
|
+
}
|
|
2290
|
+
function cr(e) {
|
|
2291
|
+
let t, n, r, o, l, a, s, i, f, d, v, k, b, g, m = (
|
|
2292
|
+
/*ensName*/
|
|
2293
|
+
(e[8] ? de(
|
|
2294
|
+
/*ensName*/
|
|
2295
|
+
e[8]
|
|
2296
|
+
) : (
|
|
2297
|
+
/*unsName*/
|
|
2298
|
+
e[7] ? de(
|
|
2299
|
+
/*unsName*/
|
|
2300
|
+
e[7]
|
|
2301
|
+
) : (
|
|
2302
|
+
/*shortenedFirstAddress*/
|
|
2303
|
+
e[6]
|
|
2304
|
+
)
|
|
2305
|
+
)) + ""
|
|
2306
|
+
), u, _, w, C, $, I, B, D, H, q, W, U, X, K, ne, re;
|
|
2307
|
+
l = new be({
|
|
2308
|
+
props: {
|
|
2309
|
+
size: 32,
|
|
2310
|
+
padding: 4,
|
|
2311
|
+
background: "white",
|
|
2312
|
+
border: "darkGreen",
|
|
2313
|
+
radius: 8,
|
|
2314
|
+
icon: (
|
|
2315
|
+
/*$appMetadata$*/
|
|
2316
|
+
e[9] && /*$appMetadata$*/
|
|
2317
|
+
e[9].icon || ze
|
|
2318
|
+
)
|
|
2319
|
+
}
|
|
2320
|
+
}), i = new be({
|
|
2321
|
+
props: {
|
|
2322
|
+
size: 32,
|
|
2323
|
+
padding: 4,
|
|
2324
|
+
background: "green",
|
|
2325
|
+
border: "darkGreen",
|
|
2326
|
+
radius: 8,
|
|
2327
|
+
icon: (
|
|
2328
|
+
/*primaryWallet*/
|
|
2329
|
+
e[1] ? (
|
|
2330
|
+
/*primaryWallet*/
|
|
2331
|
+
e[1].icon
|
|
2332
|
+
) : ""
|
|
2333
|
+
)
|
|
2334
|
+
}
|
|
2335
|
+
}), v = new Ve({ props: { size: 14 } });
|
|
2336
|
+
let T = (
|
|
2337
|
+
/*firstAddressBalance*/
|
|
2338
|
+
e[5] && yt(e)
|
|
2339
|
+
);
|
|
2340
|
+
return D = new be({
|
|
2341
|
+
props: {
|
|
2342
|
+
size: 22,
|
|
2343
|
+
padding: 4,
|
|
2344
|
+
background: "custom",
|
|
2345
|
+
color: /*validAppChain*/ e[4] ? /*validAppChain*/ e[4].icon ? void 0 : "var(--onboard-primary-100, var(--primary-100))" : `var(
|
|
2346
|
+
--account-center-chain-warning,
|
|
2347
|
+
var(--onboard-warning-500, var(--warning-500))
|
|
2348
|
+
)`,
|
|
2349
|
+
customBackgroundColor: (
|
|
2350
|
+
/*validAppChain*/
|
|
2351
|
+
e[4] ? (
|
|
2352
|
+
/*validAppChain*/
|
|
2353
|
+
e[4].color || /*defaultChainStyles*/
|
|
2354
|
+
e[3] && /*defaultChainStyles*/
|
|
2355
|
+
e[3].color || ge.color
|
|
2356
|
+
) : "var(--onboard-warning-200, var(--warning-200))"
|
|
2357
|
+
),
|
|
2358
|
+
border: "transparent",
|
|
2359
|
+
radius: 25,
|
|
2360
|
+
icon: (
|
|
2361
|
+
/*validAppChain*/
|
|
2362
|
+
e[4] ? (
|
|
2363
|
+
/*validAppChain*/
|
|
2364
|
+
e[4].icon || /*defaultChainStyles*/
|
|
2365
|
+
e[3] && /*defaultChainStyles*/
|
|
2366
|
+
e[3].icon || ge.icon
|
|
2367
|
+
) : Se
|
|
2368
|
+
)
|
|
2369
|
+
}
|
|
2370
|
+
}), q = new qt({
|
|
2371
|
+
props: {
|
|
2372
|
+
chains: (
|
|
2373
|
+
/*chains*/
|
|
2374
|
+
e[11]
|
|
2375
|
+
),
|
|
2376
|
+
colorVar: "--account-center-minimized-network-selector-color",
|
|
2377
|
+
selectIcon: Lt,
|
|
2378
|
+
parentCSSId: "minimized_ac"
|
|
2379
|
+
}
|
|
2380
|
+
}), {
|
|
2381
|
+
c() {
|
|
2382
|
+
t = h("div"), n = h("div"), r = h("div"), o = h("div"), F(l.$$.fragment), a = z(), s = h("div"), F(i.$$.fragment), f = z(), d = h("div"), F(v.$$.fragment), k = z(), b = h("div"), g = h("div"), u = L(m), _ = z(), T && T.c(), w = z(), C = h("div"), $ = h("div"), I = h("div"), B = h("div"), F(D.$$.fragment), H = z(), F(q.$$.fragment), p(o, "class", "drop-shadow svelte-1xsvwqj"), _e(s, "margin-left", "-0.5rem"), p(s, "class", "drop-shadow svelte-1xsvwqj"), _e(d, "right", "-4px"), _e(d, "bottom", "-4px"), p(d, "class", "drop-shadow absolute svelte-1xsvwqj"), p(r, "class", "flex relative"), p(g, "class", "address svelte-1xsvwqj"), p(b, "class", "wallet-info svelte-1xsvwqj"), p(B, "class", "chain-icon-container svelte-1xsvwqj"), p(I, "class", "flex items-center"), p($, "class", "container shadow-1 flex items-center svelte-1xsvwqj"), p($, "style", W = `border-color: var(${/*validAppChain*/
|
|
2383
|
+
e[4] ? "--onboard-primary-200, var(--primary-200)" : "--onboard-warning-500, var(--warning-500)"}); background-color: var(${/*validAppChain*/
|
|
2384
|
+
e[4] ? "--account-center-minimized-chain-select-background, var(--primary-100)" : "--account-center-minimized-chain-select-background-warning, var(--warning-100)"})`), p(C, "class", "network"), p(n, "class", "inner-row svelte-1xsvwqj"), p(t, "class", "ac-trigger svelte-1xsvwqj");
|
|
2385
|
+
},
|
|
2386
|
+
m(N, x) {
|
|
2387
|
+
M(N, t, x), c(t, n), c(n, r), c(r, o), O(l, o, null), c(r, a), c(r, s), O(i, s, null), c(r, f), c(r, d), O(v, d, null), c(n, k), c(n, b), c(b, g), c(g, u), c(b, _), T && T.m(b, null), c(n, w), c(n, C), c(C, $), c($, I), c(I, B), O(D, B, null), c(I, H), O(q, I, null), K = !0, ne || (re = [
|
|
2388
|
+
Y($, "click", fe(
|
|
2389
|
+
/*click_handler*/
|
|
2390
|
+
e[15]
|
|
2391
|
+
)),
|
|
2392
|
+
Y(t, "click", fe(function() {
|
|
2393
|
+
we(
|
|
2394
|
+
/*toggle*/
|
|
2395
|
+
e[0]
|
|
2396
|
+
) && e[0].apply(this, arguments);
|
|
2397
|
+
}))
|
|
2398
|
+
], ne = !0);
|
|
2399
|
+
},
|
|
2400
|
+
p(N, [x]) {
|
|
2401
|
+
e = N;
|
|
2402
|
+
const Te = {};
|
|
2403
|
+
x & /*$appMetadata$*/
|
|
2404
|
+
512 && (Te.icon = /*$appMetadata$*/
|
|
2405
|
+
e[9] && /*$appMetadata$*/
|
|
2406
|
+
e[9].icon || ze), l.$set(Te);
|
|
2407
|
+
const se = {};
|
|
2408
|
+
x & /*primaryWallet*/
|
|
2409
|
+
2 && (se.icon = /*primaryWallet*/
|
|
2410
|
+
e[1] ? (
|
|
2411
|
+
/*primaryWallet*/
|
|
2412
|
+
e[1].icon
|
|
2413
|
+
) : ""), i.$set(se), (!K || x & /*ensName, unsName, shortenedFirstAddress*/
|
|
2414
|
+
448) && m !== (m = /*ensName*/
|
|
2415
|
+
(e[8] ? de(
|
|
2416
|
+
/*ensName*/
|
|
2417
|
+
e[8]
|
|
2418
|
+
) : (
|
|
2419
|
+
/*unsName*/
|
|
2420
|
+
e[7] ? de(
|
|
2421
|
+
/*unsName*/
|
|
2422
|
+
e[7]
|
|
2423
|
+
) : (
|
|
2424
|
+
/*shortenedFirstAddress*/
|
|
2425
|
+
e[6]
|
|
2426
|
+
)
|
|
2427
|
+
)) + "") && j(u, m), /*firstAddressBalance*/
|
|
2428
|
+
e[5] ? T ? (T.p(e, x), x & /*firstAddressBalance*/
|
|
2429
|
+
32 && y(T, 1)) : (T = yt(e), T.c(), y(T, 1), T.m(b, null)) : T && (T.d(1), T = null);
|
|
2430
|
+
const G = {};
|
|
2431
|
+
x & /*validAppChain*/
|
|
2432
|
+
16 && (G.color = /*validAppChain*/
|
|
2433
|
+
e[4] ? /*validAppChain*/ e[4].icon ? void 0 : "var(--onboard-primary-100, var(--primary-100))" : `var(
|
|
2434
|
+
--account-center-chain-warning,
|
|
2435
|
+
var(--onboard-warning-500, var(--warning-500))
|
|
2436
|
+
)`), x & /*validAppChain, defaultChainStyles*/
|
|
2437
|
+
24 && (G.customBackgroundColor = /*validAppChain*/
|
|
2438
|
+
e[4] ? (
|
|
2439
|
+
/*validAppChain*/
|
|
2440
|
+
e[4].color || /*defaultChainStyles*/
|
|
2441
|
+
e[3] && /*defaultChainStyles*/
|
|
2442
|
+
e[3].color || ge.color
|
|
2443
|
+
) : "var(--onboard-warning-200, var(--warning-200))"), x & /*validAppChain, defaultChainStyles*/
|
|
2444
|
+
24 && (G.icon = /*validAppChain*/
|
|
2445
|
+
e[4] ? (
|
|
2446
|
+
/*validAppChain*/
|
|
2447
|
+
e[4].icon || /*defaultChainStyles*/
|
|
2448
|
+
e[3] && /*defaultChainStyles*/
|
|
2449
|
+
e[3].icon || ge.icon
|
|
2450
|
+
) : Se), D.$set(G), (!K || x & /*validAppChain*/
|
|
2451
|
+
16 && W !== (W = `border-color: var(${/*validAppChain*/
|
|
2452
|
+
e[4] ? "--onboard-primary-200, var(--primary-200)" : "--onboard-warning-500, var(--warning-500)"}); background-color: var(${/*validAppChain*/
|
|
2453
|
+
e[4] ? "--account-center-minimized-chain-select-background, var(--primary-100)" : "--account-center-minimized-chain-select-background-warning, var(--warning-100)"})`)) && p($, "style", W);
|
|
2454
|
+
},
|
|
2455
|
+
i(N) {
|
|
2456
|
+
K || (y(l.$$.fragment, N), y(i.$$.fragment, N), y(v.$$.fragment, N), y(T), y(D.$$.fragment, N), y(q.$$.fragment, N), N && Ae(() => {
|
|
2457
|
+
K && (X && X.end(1), U = Ie(t, $e, { duration: 250 }), U.start());
|
|
2458
|
+
}), K = !0);
|
|
2459
|
+
},
|
|
2460
|
+
o(N) {
|
|
2461
|
+
A(l.$$.fragment, N), A(i.$$.fragment, N), A(v.$$.fragment, N), A(D.$$.fragment, N), A(q.$$.fragment, N), U && U.invalidate(), X = ln(t, $e, { duration: 100 }), K = !1;
|
|
2462
|
+
},
|
|
2463
|
+
d(N) {
|
|
2464
|
+
N && S(t), Z(l), Z(i), Z(v), T && T.d(), Z(D), Z(q), N && X && X.end(), ne = !1, ke(re);
|
|
2465
|
+
}
|
|
2466
|
+
};
|
|
2467
|
+
}
|
|
2468
|
+
function dr(e, t, n) {
|
|
2469
|
+
let r, o, l, a, s, i, f, d, v, k, b, g;
|
|
2470
|
+
ee(e, Me, (C) => n(14, b = C));
|
|
2471
|
+
let { toggle: m } = t;
|
|
2472
|
+
const u = te.select("appMetadata").pipe(ye(te.get().appMetadata), Ce(1));
|
|
2473
|
+
ee(e, u, (C) => n(9, g = C));
|
|
2474
|
+
const _ = te.get().chains;
|
|
2475
|
+
function w(C) {
|
|
2476
|
+
St.call(this, e, C);
|
|
2477
|
+
}
|
|
2478
|
+
return e.$$set = (C) => {
|
|
2479
|
+
"toggle" in C && n(0, m = C.toggle);
|
|
2480
|
+
}, e.$$.update = () => {
|
|
2481
|
+
e.$$.dirty & /*$wallets$*/
|
|
2482
|
+
16384 && n(1, [r] = b, r), e.$$.dirty & /*primaryWallet*/
|
|
2483
|
+
2 && n(13, [o] = r ? r.accounts : [], o), e.$$.dirty & /*firstAccount*/
|
|
2484
|
+
8192 && n(8, l = o && o.ens && de(o.ens.name)), e.$$.dirty & /*firstAccount*/
|
|
2485
|
+
8192 && n(7, a = o && o.uns && de(o.uns.name)), e.$$.dirty & /*firstAccount*/
|
|
2486
|
+
8192 && n(6, s = o ? je(o.address) : ""), e.$$.dirty & /*firstAccount*/
|
|
2487
|
+
8192 && n(
|
|
2488
|
+
2,
|
|
2489
|
+
[i] = o && o.balance ? Object.keys(o.balance) : [],
|
|
2490
|
+
i
|
|
2491
|
+
), e.$$.dirty & /*firstAccount, firstAddressAsset*/
|
|
2492
|
+
8196 && n(5, f = o && o.balance ? o.balance[i] : null), e.$$.dirty & /*primaryWallet*/
|
|
2493
|
+
2 && n(12, d = r && r.chains[0]), e.$$.dirty & /*primaryChain*/
|
|
2494
|
+
4096 && n(4, v = _.find(({ id: C, namespace: $ }) => d ? C === d.id && $ === d.namespace : !1)), e.$$.dirty & /*primaryChain*/
|
|
2495
|
+
4096 && n(3, k = $t(d && d.id));
|
|
2496
|
+
}, [
|
|
2497
|
+
m,
|
|
2498
|
+
r,
|
|
2499
|
+
i,
|
|
2500
|
+
k,
|
|
2501
|
+
v,
|
|
2502
|
+
f,
|
|
2503
|
+
s,
|
|
2504
|
+
a,
|
|
2505
|
+
l,
|
|
2506
|
+
g,
|
|
2507
|
+
u,
|
|
2508
|
+
_,
|
|
2509
|
+
d,
|
|
2510
|
+
o,
|
|
2511
|
+
b,
|
|
2512
|
+
w
|
|
2513
|
+
];
|
|
2514
|
+
}
|
|
2515
|
+
class ur extends pe {
|
|
2516
|
+
constructor(t) {
|
|
2517
|
+
super(), ve(this, t, dr, cr, me, { toggle: 0 }, sr);
|
|
2518
|
+
}
|
|
2519
|
+
}
|
|
2520
|
+
function fr(e) {
|
|
2521
|
+
he(e, "svelte-1o9vinu", `.ac-trigger.svelte-1o9vinu{--background-color:var(
|
|
2522
|
+
--account-center-minimized-background,
|
|
2523
|
+
var(--w3o-background-color, white)
|
|
2524
|
+
);--text-color:var(--w3o-text-color, var(--gray-700));--border-color:var(
|
|
2525
|
+
--account-center-border,
|
|
2526
|
+
var(--w3o-border-color, var(--onboard-gray-200, var(--gray-200)))
|
|
2527
|
+
);--border-radius:var(
|
|
2528
|
+
--account-center-border-radius,
|
|
2529
|
+
var(--w3o-border-radius, 1rem)
|
|
2530
|
+
);position:relative;cursor:pointer;pointer-events:auto;min-width:80px;background:var(--background-color);color:var(--text-color);border:1px solid var(--border-color);border-radius:var(--border-radius);box-shadow:var(
|
|
2531
|
+
--account-center-box-shadow,
|
|
2532
|
+
var(--onboard-shadow-3, var(--shadow-3))
|
|
2533
|
+
);z-index:var(--account-center-z-index, 1)}.wallet-square-wrapper.svelte-1o9vinu{position:relative;margin-left:-8px}.check-icon-wrapper.svelte-1o9vinu{position:absolute;right:-4px;bottom:-4px}.inner-row.svelte-1o9vinu{display:flex;flex-flow:row nowrap;width:80px;padding:0.75rem}.drop-shadow.svelte-1o9vinu{filter:drop-shadow(0px 1px 4px rgba(0, 0, 0, 0.2))}`);
|
|
2534
|
+
}
|
|
2535
|
+
function pr(e) {
|
|
2536
|
+
let t, n, r, o, l, a, s, i, f, d, v, k, b, g, m;
|
|
2537
|
+
return o = new be({
|
|
2538
|
+
props: {
|
|
2539
|
+
size: 32,
|
|
2540
|
+
padding: 4,
|
|
2541
|
+
background: "white",
|
|
2542
|
+
border: "darkGreen",
|
|
2543
|
+
radius: 8,
|
|
2544
|
+
icon: (
|
|
2545
|
+
/*$appMetadata$*/
|
|
2546
|
+
e[3] && /*$appMetadata$*/
|
|
2547
|
+
e[3].icon || ze
|
|
2548
|
+
)
|
|
2549
|
+
}
|
|
2550
|
+
}), i = new be({
|
|
2551
|
+
props: {
|
|
2552
|
+
size: 32,
|
|
2553
|
+
padding: 4,
|
|
2554
|
+
background: "green",
|
|
2555
|
+
border: "darkGreen",
|
|
2556
|
+
radius: 8,
|
|
2557
|
+
icon: (
|
|
2558
|
+
/*primaryWallet*/
|
|
2559
|
+
e[1] ? (
|
|
2560
|
+
/*primaryWallet*/
|
|
2561
|
+
e[1].icon
|
|
2562
|
+
) : ""
|
|
2563
|
+
)
|
|
2564
|
+
}
|
|
2565
|
+
}), v = new Ve({ props: { size: 14 } }), {
|
|
2566
|
+
c() {
|
|
2567
|
+
t = h("div"), n = h("div"), r = h("div"), F(o.$$.fragment), l = z(), a = h("div"), s = h("div"), F(i.$$.fragment), f = z(), d = h("div"), F(v.$$.fragment), p(r, "class", "drop-shadow svelte-1o9vinu"), p(s, "class", "drop-shadow svelte-1o9vinu"), p(d, "class", "check-icon-wrapper drop-shadow svelte-1o9vinu"), p(a, "class", "wallet-square-wrapper svelte-1o9vinu"), p(n, "class", "inner-row svelte-1o9vinu"), p(t, "class", "ac-trigger svelte-1o9vinu"), p(t, "style", k = /*$accountCenter$*/
|
|
2568
|
+
e[2].position.includes("Left") ? "align-self: flex-start" : null);
|
|
2569
|
+
},
|
|
2570
|
+
m(u, _) {
|
|
2571
|
+
M(u, t, _), c(t, n), c(n, r), O(o, r, null), c(n, l), c(n, a), c(a, s), O(i, s, null), c(a, f), c(a, d), O(v, d, null), b = !0, g || (m = Y(t, "click", fe(function() {
|
|
2572
|
+
we(
|
|
2573
|
+
/*toggle*/
|
|
2574
|
+
e[0]
|
|
2575
|
+
) && e[0].apply(this, arguments);
|
|
2576
|
+
})), g = !0);
|
|
2577
|
+
},
|
|
2578
|
+
p(u, [_]) {
|
|
2579
|
+
e = u;
|
|
2580
|
+
const w = {};
|
|
2581
|
+
_ & /*$appMetadata$*/
|
|
2582
|
+
8 && (w.icon = /*$appMetadata$*/
|
|
2583
|
+
e[3] && /*$appMetadata$*/
|
|
2584
|
+
e[3].icon || ze), o.$set(w);
|
|
2585
|
+
const C = {};
|
|
2586
|
+
_ & /*primaryWallet*/
|
|
2587
|
+
2 && (C.icon = /*primaryWallet*/
|
|
2588
|
+
e[1] ? (
|
|
2589
|
+
/*primaryWallet*/
|
|
2590
|
+
e[1].icon
|
|
2591
|
+
) : ""), i.$set(C), (!b || _ & /*$accountCenter$*/
|
|
2592
|
+
4 && k !== (k = /*$accountCenter$*/
|
|
2593
|
+
e[2].position.includes("Left") ? "align-self: flex-start" : null)) && p(t, "style", k);
|
|
2594
|
+
},
|
|
2595
|
+
i(u) {
|
|
2596
|
+
b || (y(o.$$.fragment, u), y(i.$$.fragment, u), y(v.$$.fragment, u), b = !0);
|
|
2597
|
+
},
|
|
2598
|
+
o(u) {
|
|
2599
|
+
A(o.$$.fragment, u), A(i.$$.fragment, u), A(v.$$.fragment, u), b = !1;
|
|
2600
|
+
},
|
|
2601
|
+
d(u) {
|
|
2602
|
+
u && S(t), Z(o), Z(i), Z(v), g = !1, m();
|
|
2603
|
+
}
|
|
2604
|
+
};
|
|
2605
|
+
}
|
|
2606
|
+
function vr(e, t, n) {
|
|
2607
|
+
let r, o, l, a;
|
|
2608
|
+
ee(e, Me, (d) => n(6, o = d));
|
|
2609
|
+
let { toggle: s } = t;
|
|
2610
|
+
const i = te.select("appMetadata").pipe(ye(te.get().appMetadata), Ce(1));
|
|
2611
|
+
ee(e, i, (d) => n(3, a = d));
|
|
2612
|
+
const f = te.select("accountCenter").pipe(ye(te.get().accountCenter), Ce(1));
|
|
2613
|
+
return ee(e, f, (d) => n(2, l = d)), e.$$set = (d) => {
|
|
2614
|
+
"toggle" in d && n(0, s = d.toggle);
|
|
2615
|
+
}, e.$$.update = () => {
|
|
2616
|
+
e.$$.dirty & /*$wallets$*/
|
|
2617
|
+
64 && n(1, [r] = o, r);
|
|
2618
|
+
}, [
|
|
2619
|
+
s,
|
|
2620
|
+
r,
|
|
2621
|
+
l,
|
|
2622
|
+
a,
|
|
2623
|
+
i,
|
|
2624
|
+
f,
|
|
2625
|
+
o
|
|
2626
|
+
];
|
|
2627
|
+
}
|
|
2628
|
+
class mr extends pe {
|
|
2629
|
+
constructor(t) {
|
|
2630
|
+
super(), ve(this, t, vr, pr, me, { toggle: 0 }, fr);
|
|
2631
|
+
}
|
|
2632
|
+
}
|
|
2633
|
+
function hr(e) {
|
|
2634
|
+
he(e, "svelte-1nua59o", ".ac-container.svelte-1nua59o{display:flex;flex-flow:column;align-items:flex-end;gap:0.5rem}");
|
|
2635
|
+
}
|
|
2636
|
+
function Ct(e) {
|
|
2637
|
+
let t, n;
|
|
2638
|
+
return t = new jt({ props: { expanded: (
|
|
2639
|
+
/*expanded*/
|
|
2640
|
+
e[0]
|
|
2641
|
+
) } }), {
|
|
2642
|
+
c() {
|
|
2643
|
+
F(t.$$.fragment);
|
|
2644
|
+
},
|
|
2645
|
+
m(r, o) {
|
|
2646
|
+
O(t, r, o), n = !0;
|
|
2647
|
+
},
|
|
2648
|
+
p(r, o) {
|
|
2649
|
+
const l = {};
|
|
2650
|
+
o & /*expanded*/
|
|
2651
|
+
1 && (l.expanded = /*expanded*/
|
|
2652
|
+
r[0]), t.$set(l);
|
|
2653
|
+
},
|
|
2654
|
+
i(r) {
|
|
2655
|
+
n || (y(t.$$.fragment, r), n = !0);
|
|
2656
|
+
},
|
|
2657
|
+
o(r) {
|
|
2658
|
+
A(t.$$.fragment, r), n = !1;
|
|
2659
|
+
},
|
|
2660
|
+
d(r) {
|
|
2661
|
+
Z(t, r);
|
|
2662
|
+
}
|
|
2663
|
+
};
|
|
2664
|
+
}
|
|
2665
|
+
function gr(e) {
|
|
2666
|
+
let t, n;
|
|
2667
|
+
return t = new ur({ props: { toggle: (
|
|
2668
|
+
/*toggle*/
|
|
2669
|
+
e[4]
|
|
2670
|
+
) } }), {
|
|
2671
|
+
c() {
|
|
2672
|
+
F(t.$$.fragment);
|
|
2673
|
+
},
|
|
2674
|
+
m(r, o) {
|
|
2675
|
+
O(t, r, o), n = !0;
|
|
2676
|
+
},
|
|
2677
|
+
p: R,
|
|
2678
|
+
i(r) {
|
|
2679
|
+
n || (y(t.$$.fragment, r), n = !0);
|
|
2680
|
+
},
|
|
2681
|
+
o(r) {
|
|
2682
|
+
A(t.$$.fragment, r), n = !1;
|
|
2683
|
+
},
|
|
2684
|
+
d(r) {
|
|
2685
|
+
Z(t, r);
|
|
2686
|
+
}
|
|
2687
|
+
};
|
|
2688
|
+
}
|
|
2689
|
+
function br(e) {
|
|
2690
|
+
let t, n;
|
|
2691
|
+
return t = new mr({ props: { toggle: (
|
|
2692
|
+
/*toggle*/
|
|
2693
|
+
e[4]
|
|
2694
|
+
) } }), {
|
|
2695
|
+
c() {
|
|
2696
|
+
F(t.$$.fragment);
|
|
2697
|
+
},
|
|
2698
|
+
m(r, o) {
|
|
2699
|
+
O(t, r, o), n = !0;
|
|
2700
|
+
},
|
|
2701
|
+
p: R,
|
|
2702
|
+
i(r) {
|
|
2703
|
+
n || (y(t.$$.fragment, r), n = !0);
|
|
2704
|
+
},
|
|
2705
|
+
o(r) {
|
|
2706
|
+
A(t.$$.fragment, r), n = !1;
|
|
2707
|
+
},
|
|
2708
|
+
d(r) {
|
|
2709
|
+
Z(t, r);
|
|
2710
|
+
}
|
|
2711
|
+
};
|
|
2712
|
+
}
|
|
2713
|
+
function zt(e) {
|
|
2714
|
+
let t, n;
|
|
2715
|
+
return t = new jt({ props: { expanded: (
|
|
2716
|
+
/*expanded*/
|
|
2717
|
+
e[0]
|
|
2718
|
+
) } }), {
|
|
2719
|
+
c() {
|
|
2720
|
+
F(t.$$.fragment);
|
|
2721
|
+
},
|
|
2722
|
+
m(r, o) {
|
|
2723
|
+
O(t, r, o), n = !0;
|
|
2724
|
+
},
|
|
2725
|
+
p(r, o) {
|
|
2726
|
+
const l = {};
|
|
2727
|
+
o & /*expanded*/
|
|
2728
|
+
1 && (l.expanded = /*expanded*/
|
|
2729
|
+
r[0]), t.$set(l);
|
|
2730
|
+
},
|
|
2731
|
+
i(r) {
|
|
2732
|
+
n || (y(t.$$.fragment, r), n = !0);
|
|
2733
|
+
},
|
|
2734
|
+
o(r) {
|
|
2735
|
+
A(t.$$.fragment, r), n = !1;
|
|
2736
|
+
},
|
|
2737
|
+
d(r) {
|
|
2738
|
+
Z(t, r);
|
|
2739
|
+
}
|
|
2740
|
+
};
|
|
2741
|
+
}
|
|
2742
|
+
function _r(e) {
|
|
2743
|
+
let t, n = (
|
|
2744
|
+
/*$accountCenter$*/
|
|
2745
|
+
e[1].position.includes("bottom")
|
|
2746
|
+
), r, o, l, a, s = (
|
|
2747
|
+
/*$accountCenter$*/
|
|
2748
|
+
e[1].position.includes("top")
|
|
2749
|
+
), i, f, d, v = n && Ct(e);
|
|
2750
|
+
const k = [br, gr], b = [];
|
|
2751
|
+
function g(u, _) {
|
|
2752
|
+
return (
|
|
2753
|
+
/*$accountCenter$*/
|
|
2754
|
+
u[1].minimal ? 0 : 1
|
|
2755
|
+
);
|
|
2756
|
+
}
|
|
2757
|
+
o = g(e), l = b[o] = k[o](e);
|
|
2758
|
+
let m = s && zt(e);
|
|
2759
|
+
return {
|
|
2760
|
+
c() {
|
|
2761
|
+
t = h("div"), v && v.c(), r = z(), l.c(), a = z(), m && m.c(), p(t, "class", "ac-container svelte-1nua59o");
|
|
2762
|
+
},
|
|
2763
|
+
m(u, _) {
|
|
2764
|
+
M(u, t, _), v && v.m(t, null), c(t, r), b[o].m(t, null), c(t, a), m && m.m(t, null), i = !0, f || (d = Y(
|
|
2765
|
+
window,
|
|
2766
|
+
"click",
|
|
2767
|
+
/*minimize*/
|
|
2768
|
+
e[3]
|
|
2769
|
+
), f = !0);
|
|
2770
|
+
},
|
|
2771
|
+
p(u, [_]) {
|
|
2772
|
+
_ & /*$accountCenter$*/
|
|
2773
|
+
2 && (n = /*$accountCenter$*/
|
|
2774
|
+
u[1].position.includes("bottom")), n ? v ? (v.p(u, _), _ & /*$accountCenter$*/
|
|
2775
|
+
2 && y(v, 1)) : (v = Ct(u), v.c(), y(v, 1), v.m(t, r)) : v && (ae(), A(v, 1, 1, () => {
|
|
2776
|
+
v = null;
|
|
2777
|
+
}), ie());
|
|
2778
|
+
let w = o;
|
|
2779
|
+
o = g(u), o === w ? b[o].p(u, _) : (ae(), A(b[w], 1, 1, () => {
|
|
2780
|
+
b[w] = null;
|
|
2781
|
+
}), ie(), l = b[o], l ? l.p(u, _) : (l = b[o] = k[o](u), l.c()), y(l, 1), l.m(t, a)), _ & /*$accountCenter$*/
|
|
2782
|
+
2 && (s = /*$accountCenter$*/
|
|
2783
|
+
u[1].position.includes("top")), s ? m ? (m.p(u, _), _ & /*$accountCenter$*/
|
|
2784
|
+
2 && y(m, 1)) : (m = zt(u), m.c(), y(m, 1), m.m(t, null)) : m && (ae(), A(m, 1, 1, () => {
|
|
2785
|
+
m = null;
|
|
2786
|
+
}), ie());
|
|
2787
|
+
},
|
|
2788
|
+
i(u) {
|
|
2789
|
+
i || (y(v), y(l), y(m), i = !0);
|
|
2790
|
+
},
|
|
2791
|
+
o(u) {
|
|
2792
|
+
A(v), A(l), A(m), i = !1;
|
|
2793
|
+
},
|
|
2794
|
+
d(u) {
|
|
2795
|
+
u && S(t), v && v.d(), b[o].d(), m && m.d(), f = !1, d();
|
|
2796
|
+
}
|
|
2797
|
+
};
|
|
2798
|
+
}
|
|
2799
|
+
function wr(e, t, n) {
|
|
2800
|
+
let r, o = !1;
|
|
2801
|
+
const l = te.select("accountCenter").pipe(ye(te.get().accountCenter), Ce(1));
|
|
2802
|
+
ee(e, l, (i) => n(1, r = i)), Qt(a);
|
|
2803
|
+
function a() {
|
|
2804
|
+
r.expanded && (De({ expanded: !1 }), n(0, o = !1));
|
|
2805
|
+
}
|
|
2806
|
+
function s() {
|
|
2807
|
+
De({ expanded: !r.expanded }), n(0, o = !o);
|
|
2808
|
+
}
|
|
2809
|
+
return [o, r, l, a, s];
|
|
2810
|
+
}
|
|
2811
|
+
class yr extends pe {
|
|
2812
|
+
constructor(t) {
|
|
2813
|
+
super(), ve(this, t, wr, _r, me, {}, hr);
|
|
2814
|
+
}
|
|
2815
|
+
}
|
|
2816
|
+
export {
|
|
2817
|
+
yr as default
|
|
2818
|
+
};
|