@everymatrix/player-account-vault 0.19.12 → 0.19.14
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/components/{PlayerAccountVault-VsYtPpzT.js → PlayerAccountVault-Cb2kA-FN.js} +290 -267
- package/components/{PlayerAccountVault-BWJHrxHt.cjs → PlayerAccountVault-pMFFtO0Q.cjs} +2 -2
- package/components/{PlayerAccountVault-DMe8q4L3.js → PlayerAccountVault-vQLu6pvk.js} +681 -658
- package/es2015/player-account-vault.cjs +1 -1
- package/es2015/player-account-vault.js +1 -1
- package/package.json +1 -1
|
@@ -35,7 +35,7 @@ function nr(e) {
|
|
|
35
35
|
function An() {
|
|
36
36
|
return /* @__PURE__ */ Object.create(null);
|
|
37
37
|
}
|
|
38
|
-
function
|
|
38
|
+
function we(e) {
|
|
39
39
|
e.forEach(nr);
|
|
40
40
|
}
|
|
41
41
|
function pt(e) {
|
|
@@ -115,7 +115,7 @@ function O() {
|
|
|
115
115
|
function Gr() {
|
|
116
116
|
return Z("");
|
|
117
117
|
}
|
|
118
|
-
function
|
|
118
|
+
function re(e, t, n, r) {
|
|
119
119
|
return e.addEventListener(t, n, r), () => e.removeEventListener(t, n, r);
|
|
120
120
|
}
|
|
121
121
|
function $r(e) {
|
|
@@ -132,7 +132,7 @@ function St(e) {
|
|
|
132
132
|
function jr(e) {
|
|
133
133
|
return Array.from(e.childNodes);
|
|
134
134
|
}
|
|
135
|
-
function
|
|
135
|
+
function ie(e, t) {
|
|
136
136
|
t = "" + t, e.data !== t && (e.data = /** @type {string} */
|
|
137
137
|
t);
|
|
138
138
|
}
|
|
@@ -208,7 +208,7 @@ function G() {
|
|
|
208
208
|
}
|
|
209
209
|
function qr(e) {
|
|
210
210
|
if (e.fragment !== null) {
|
|
211
|
-
e.update(),
|
|
211
|
+
e.update(), we(e.before_update);
|
|
212
212
|
const t = e.dirty;
|
|
213
213
|
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(nn);
|
|
214
214
|
}
|
|
@@ -228,7 +228,7 @@ function Re() {
|
|
|
228
228
|
};
|
|
229
229
|
}
|
|
230
230
|
function Oe() {
|
|
231
|
-
Ne.r ||
|
|
231
|
+
Ne.r || we(Ne.c), Ne = Ne.p;
|
|
232
232
|
}
|
|
233
233
|
function $(e, t) {
|
|
234
234
|
e && e.i && (At.delete(e), e.i(t));
|
|
@@ -257,12 +257,12 @@ function ze(e, t, n) {
|
|
|
257
257
|
const { fragment: r, after_update: i } = e.$$;
|
|
258
258
|
r && r.m(t, n), nn(() => {
|
|
259
259
|
const o = e.$$.on_mount.map(nr).filter(pt);
|
|
260
|
-
e.$$.on_destroy ? e.$$.on_destroy.push(...o) :
|
|
260
|
+
e.$$.on_destroy ? e.$$.on_destroy.push(...o) : we(o), e.$$.on_mount = [];
|
|
261
261
|
}), i.forEach(nn);
|
|
262
262
|
}
|
|
263
263
|
function Ze(e, t) {
|
|
264
264
|
const n = e.$$;
|
|
265
|
-
n.fragment !== null && (Kr(n.after_update),
|
|
265
|
+
n.fragment !== null && (Kr(n.after_update), we(n.on_destroy), n.fragment && n.fragment.d(t), n.on_destroy = n.fragment = null, n.ctx = []);
|
|
266
266
|
}
|
|
267
267
|
function Qr(e, t) {
|
|
268
268
|
e.$$.dirty[0] === -1 && (je.push(e), Zr(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
|
@@ -296,7 +296,7 @@ function mn(e, t, n, r, i, o, a = null, s = [-1]) {
|
|
|
296
296
|
if (c.ctx = n ? n(e, t.props || {}, (f, h, ...m) => {
|
|
297
297
|
const _ = m.length ? m[0] : h;
|
|
298
298
|
return c.ctx && i(c.ctx[f], c.ctx[f] = _) && (!c.skip_bound && c.bound[f] && c.bound[f](_), u && Qr(e, f)), h;
|
|
299
|
-
}) : [], c.update(), u = !0,
|
|
299
|
+
}) : [], c.update(), u = !0, we(c.before_update), c.fragment = r ? r(c.ctx) : !1, t.target) {
|
|
300
300
|
if (t.hydrate) {
|
|
301
301
|
const f = jr(t.target);
|
|
302
302
|
c.fragment && c.fragment.l(f), f.forEach(S);
|
|
@@ -595,7 +595,7 @@ function Je(e, t, n) {
|
|
|
595
595
|
)
|
|
596
596
|
);
|
|
597
597
|
return l = !0, h(), function() {
|
|
598
|
-
|
|
598
|
+
we(m), f(), l = !1;
|
|
599
599
|
};
|
|
600
600
|
});
|
|
601
601
|
}
|
|
@@ -690,15 +690,15 @@ function Ot(e, t) {
|
|
|
690
690
|
}
|
|
691
691
|
e.prototype = t === null ? Object.create(t) : (n.prototype = t.prototype, new n());
|
|
692
692
|
}
|
|
693
|
-
var
|
|
694
|
-
return
|
|
693
|
+
var me = function() {
|
|
694
|
+
return me = Object.assign || function(t) {
|
|
695
695
|
for (var n, r = 1, i = arguments.length; r < i; r++) {
|
|
696
696
|
n = arguments[r];
|
|
697
697
|
for (var o in n)
|
|
698
698
|
Object.prototype.hasOwnProperty.call(n, o) && (t[o] = n[o]);
|
|
699
699
|
}
|
|
700
700
|
return t;
|
|
701
|
-
},
|
|
701
|
+
}, me.apply(this, arguments);
|
|
702
702
|
};
|
|
703
703
|
function gi(e, t) {
|
|
704
704
|
var n = {};
|
|
@@ -2938,7 +2938,7 @@ var qi = (
|
|
|
2938
2938
|
if (this.bumpSpace(), !this.bumpIf(","))
|
|
2939
2939
|
return this.error(P.EXPECT_SELECT_ARGUMENT_OPTIONS, N(y, It({}, y)));
|
|
2940
2940
|
this.bumpSpace();
|
|
2941
|
-
var D = this.parseIdentifierIfPossible(),
|
|
2941
|
+
var D = this.parseIdentifierIfPossible(), M = 0;
|
|
2942
2942
|
if (s !== "select" && D.value === "offset") {
|
|
2943
2943
|
if (!this.bumpIf(":"))
|
|
2944
2944
|
return this.error(P.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, N(this.clonePosition(), this.clonePosition()));
|
|
@@ -2946,7 +2946,7 @@ var qi = (
|
|
|
2946
2946
|
var f = this.tryParseDecimalInteger(P.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, P.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
|
|
2947
2947
|
if (f.err)
|
|
2948
2948
|
return f;
|
|
2949
|
-
this.bumpSpace(), D = this.parseIdentifierIfPossible(),
|
|
2949
|
+
this.bumpSpace(), D = this.parseIdentifierIfPossible(), M = f.val;
|
|
2950
2950
|
}
|
|
2951
2951
|
var X = this.tryParsePluralOrSelectOptions(t, s, n, D);
|
|
2952
2952
|
if (X.err)
|
|
@@ -2954,13 +2954,13 @@ var qi = (
|
|
|
2954
2954
|
var _ = this.tryParseArgumentClose(i);
|
|
2955
2955
|
if (_.err)
|
|
2956
2956
|
return _;
|
|
2957
|
-
var
|
|
2957
|
+
var ge = N(i, this.clonePosition());
|
|
2958
2958
|
return s === "select" ? {
|
|
2959
2959
|
val: {
|
|
2960
2960
|
type: U.select,
|
|
2961
2961
|
value: r,
|
|
2962
2962
|
options: Rn(X.val),
|
|
2963
|
-
location:
|
|
2963
|
+
location: ge
|
|
2964
2964
|
},
|
|
2965
2965
|
err: null
|
|
2966
2966
|
} : {
|
|
@@ -2968,9 +2968,9 @@ var qi = (
|
|
|
2968
2968
|
type: U.plural,
|
|
2969
2969
|
value: r,
|
|
2970
2970
|
options: Rn(X.val),
|
|
2971
|
-
offset:
|
|
2971
|
+
offset: M,
|
|
2972
2972
|
pluralType: s === "plural" ? "cardinal" : "ordinal",
|
|
2973
|
-
location:
|
|
2973
|
+
location: ge
|
|
2974
2974
|
},
|
|
2975
2975
|
err: null
|
|
2976
2976
|
};
|
|
@@ -3217,14 +3217,14 @@ var Dt = (
|
|
|
3217
3217
|
}
|
|
3218
3218
|
return t;
|
|
3219
3219
|
}(Dt)
|
|
3220
|
-
),
|
|
3220
|
+
), J;
|
|
3221
3221
|
(function(e) {
|
|
3222
3222
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
|
3223
|
-
})(
|
|
3223
|
+
})(J || (J = {}));
|
|
3224
3224
|
function no(e) {
|
|
3225
3225
|
return e.length < 2 ? e : e.reduce(function(t, n) {
|
|
3226
3226
|
var r = t[t.length - 1];
|
|
3227
|
-
return !r || r.type !==
|
|
3227
|
+
return !r || r.type !== J.literal || n.type !== J.literal ? t.push(n) : r.value += n.value, t;
|
|
3228
3228
|
}, []);
|
|
3229
3229
|
}
|
|
3230
3230
|
function ro(e) {
|
|
@@ -3234,7 +3234,7 @@ function Tt(e, t, n, r, i, o, a) {
|
|
|
3234
3234
|
if (e.length === 1 && Hn(e[0]))
|
|
3235
3235
|
return [
|
|
3236
3236
|
{
|
|
3237
|
-
type:
|
|
3237
|
+
type: J.literal,
|
|
3238
3238
|
value: e[0].value
|
|
3239
3239
|
}
|
|
3240
3240
|
];
|
|
@@ -3242,14 +3242,14 @@ function Tt(e, t, n, r, i, o, a) {
|
|
|
3242
3242
|
var u = c[l];
|
|
3243
3243
|
if (Hn(u)) {
|
|
3244
3244
|
s.push({
|
|
3245
|
-
type:
|
|
3245
|
+
type: J.literal,
|
|
3246
3246
|
value: u.value
|
|
3247
3247
|
});
|
|
3248
3248
|
continue;
|
|
3249
3249
|
}
|
|
3250
3250
|
if (Ci(u)) {
|
|
3251
3251
|
typeof o == "number" && s.push({
|
|
3252
|
-
type:
|
|
3252
|
+
type: J.literal,
|
|
3253
3253
|
value: n.getNumberFormat(t).format(o)
|
|
3254
3254
|
});
|
|
3255
3255
|
continue;
|
|
@@ -3260,7 +3260,7 @@ function Tt(e, t, n, r, i, o, a) {
|
|
|
3260
3260
|
var h = i[f];
|
|
3261
3261
|
if (Ai(u)) {
|
|
3262
3262
|
(!h || typeof h == "string" || typeof h == "number") && (h = typeof h == "string" || typeof h == "number" ? String(h) : ""), s.push({
|
|
3263
|
-
type: typeof h == "string" ?
|
|
3263
|
+
type: typeof h == "string" ? J.literal : J.object,
|
|
3264
3264
|
value: h
|
|
3265
3265
|
});
|
|
3266
3266
|
continue;
|
|
@@ -3268,7 +3268,7 @@ function Tt(e, t, n, r, i, o, a) {
|
|
|
3268
3268
|
if (fr(u)) {
|
|
3269
3269
|
var m = typeof u.style == "string" ? r.date[u.style] : on(u.style) ? u.style.parsedOptions : void 0;
|
|
3270
3270
|
s.push({
|
|
3271
|
-
type:
|
|
3271
|
+
type: J.literal,
|
|
3272
3272
|
value: n.getDateTimeFormat(t, m).format(h)
|
|
3273
3273
|
});
|
|
3274
3274
|
continue;
|
|
@@ -3276,7 +3276,7 @@ function Tt(e, t, n, r, i, o, a) {
|
|
|
3276
3276
|
if (pr(u)) {
|
|
3277
3277
|
var m = typeof u.style == "string" ? r.time[u.style] : on(u.style) ? u.style.parsedOptions : r.time.medium;
|
|
3278
3278
|
s.push({
|
|
3279
|
-
type:
|
|
3279
|
+
type: J.literal,
|
|
3280
3280
|
value: n.getDateTimeFormat(t, m).format(h)
|
|
3281
3281
|
});
|
|
3282
3282
|
continue;
|
|
@@ -3284,7 +3284,7 @@ function Tt(e, t, n, r, i, o, a) {
|
|
|
3284
3284
|
if (hr(u)) {
|
|
3285
3285
|
var m = typeof u.style == "string" ? r.number[u.style] : br(u.style) ? u.style.parsedOptions : void 0;
|
|
3286
3286
|
m && m.scale && (h = h * (m.scale || 1)), s.push({
|
|
3287
|
-
type:
|
|
3287
|
+
type: J.literal,
|
|
3288
3288
|
value: n.getNumberFormat(t, m).format(h)
|
|
3289
3289
|
});
|
|
3290
3290
|
continue;
|
|
@@ -3293,13 +3293,13 @@ function Tt(e, t, n, r, i, o, a) {
|
|
|
3293
3293
|
var _ = u.children, d = u.value, E = i[d];
|
|
3294
3294
|
if (!ro(E))
|
|
3295
3295
|
throw new eo(d, "function", a);
|
|
3296
|
-
var C = Tt(_, t, n, r, i, o), R = E(C.map(function(
|
|
3297
|
-
return
|
|
3296
|
+
var C = Tt(_, t, n, r, i, o), R = E(C.map(function(M) {
|
|
3297
|
+
return M.value;
|
|
3298
3298
|
}));
|
|
3299
|
-
Array.isArray(R) || (R = [R]), s.push.apply(s, R.map(function(
|
|
3299
|
+
Array.isArray(R) || (R = [R]), s.push.apply(s, R.map(function(M) {
|
|
3300
3300
|
return {
|
|
3301
|
-
type: typeof
|
|
3302
|
-
value:
|
|
3301
|
+
type: typeof M == "string" ? J.literal : J.object,
|
|
3302
|
+
value: M
|
|
3303
3303
|
};
|
|
3304
3304
|
}));
|
|
3305
3305
|
}
|
|
@@ -3329,14 +3329,14 @@ Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
|
3329
3329
|
return no(s);
|
|
3330
3330
|
}
|
|
3331
3331
|
function io(e, t) {
|
|
3332
|
-
return t ?
|
|
3333
|
-
return n[r] =
|
|
3332
|
+
return t ? me(me(me({}, e || {}), t || {}), Object.keys(e).reduce(function(n, r) {
|
|
3333
|
+
return n[r] = me(me({}, e[r]), t[r] || {}), n;
|
|
3334
3334
|
}, {})) : e;
|
|
3335
3335
|
}
|
|
3336
3336
|
function oo(e, t) {
|
|
3337
3337
|
return t ? Object.keys(e).reduce(function(n, r) {
|
|
3338
3338
|
return n[r] = io(e[r], t[r]), n;
|
|
3339
|
-
},
|
|
3339
|
+
}, me({}, e)) : e;
|
|
3340
3340
|
}
|
|
3341
3341
|
function Kt(e) {
|
|
3342
3342
|
return {
|
|
@@ -3399,7 +3399,7 @@ var so = (
|
|
|
3399
3399
|
if (c.length === 1)
|
|
3400
3400
|
return c[0].value;
|
|
3401
3401
|
var u = c.reduce(function(f, h) {
|
|
3402
|
-
return !f.length || h.type !==
|
|
3402
|
+
return !f.length || h.type !== J.literal || typeof f[f.length - 1] != "string" ? f.push(h.value) : f[f.length - 1] += h.value, f;
|
|
3403
3403
|
}, []);
|
|
3404
3404
|
return u.length <= 1 ? u[0] || "" : u;
|
|
3405
3405
|
}, this.formatToParts = function(l) {
|
|
@@ -3417,7 +3417,7 @@ var so = (
|
|
|
3417
3417
|
var a = i || {};
|
|
3418
3418
|
a.formatters;
|
|
3419
3419
|
var s = gi(a, ["formatters"]);
|
|
3420
|
-
this.ast = e.__parse(t,
|
|
3420
|
+
this.ast = e.__parse(t, me(me({}, s), { locale: this.resolvedLocale }));
|
|
3421
3421
|
} else
|
|
3422
3422
|
this.ast = t;
|
|
3423
3423
|
if (!Array.isArray(this.ast))
|
|
@@ -3807,7 +3807,7 @@ function Fn(e, t) {
|
|
|
3807
3807
|
function $o(e) {
|
|
3808
3808
|
Le.set(e);
|
|
3809
3809
|
}
|
|
3810
|
-
const
|
|
3810
|
+
const k = kr(Fo), Gn = {
|
|
3811
3811
|
en: {
|
|
3812
3812
|
vaultExchange: "Vault Exchange",
|
|
3813
3813
|
debitPlaceHolder: "Debit amount",
|
|
@@ -4194,7 +4194,7 @@ const M = kr(Fo), Gn = {
|
|
|
4194
4194
|
ZWD: "Z$"
|
|
4195
4195
|
}, Xo = 6e3, Wo = {
|
|
4196
4196
|
InvalidSession: "Invalid session"
|
|
4197
|
-
},
|
|
4197
|
+
}, K = {
|
|
4198
4198
|
BalanceError: "BalanceError",
|
|
4199
4199
|
CheckWalletExchangeError: "CheckWalletExchangeError",
|
|
4200
4200
|
WalletExchangeError: "WalletExchangeError",
|
|
@@ -4209,7 +4209,7 @@ const M = kr(Fo), Gn = {
|
|
|
4209
4209
|
}, jn = {
|
|
4210
4210
|
Real: "Real",
|
|
4211
4211
|
Vault: "Vault"
|
|
4212
|
-
},
|
|
4212
|
+
}, He = {
|
|
4213
4213
|
success: "success",
|
|
4214
4214
|
error: "error"
|
|
4215
4215
|
}, Jt = String(Number.MAX_SAFE_INTEGER).length + 1, wt = {
|
|
@@ -4222,8 +4222,10 @@ const M = kr(Fo), Gn = {
|
|
|
4222
4222
|
}, Xn = {
|
|
4223
4223
|
Fiat: "Fiat",
|
|
4224
4224
|
CryptoCurrency: "CryptoCurrency"
|
|
4225
|
+
}, zo = {
|
|
4226
|
+
Credit: "Credit"
|
|
4225
4227
|
};
|
|
4226
|
-
function
|
|
4228
|
+
function Zo(e, t) {
|
|
4227
4229
|
let n;
|
|
4228
4230
|
return function(...r) {
|
|
4229
4231
|
n && clearTimeout(n), n = setTimeout(() => {
|
|
@@ -4238,7 +4240,7 @@ const Wn = (e, t = null, n = 2) => {
|
|
|
4238
4240
|
return console.warn("Failed to stringify:", r), null;
|
|
4239
4241
|
}
|
|
4240
4242
|
};
|
|
4241
|
-
function
|
|
4243
|
+
function qo(e) {
|
|
4242
4244
|
const t = (n) => {
|
|
4243
4245
|
e.contains(n.target) || e.dispatchEvent(new CustomEvent("outclick"));
|
|
4244
4246
|
};
|
|
@@ -4248,7 +4250,28 @@ function Zo(e) {
|
|
|
4248
4250
|
}
|
|
4249
4251
|
};
|
|
4250
4252
|
}
|
|
4251
|
-
|
|
4253
|
+
const Ko = (e) => {
|
|
4254
|
+
if (typeof e == "number" && !e.toString().includes("e") && !e.toString().includes("E"))
|
|
4255
|
+
return e.toString();
|
|
4256
|
+
const t = typeof e == "number" ? e.toExponential() : e, [n, r] = t.toLowerCase().split("e"), i = n.startsWith("-"), o = n.replace("-", ""), [a, s = ""] = o.split("."), l = parseInt(r, 10);
|
|
4257
|
+
let c;
|
|
4258
|
+
if (l === 0)
|
|
4259
|
+
c = o;
|
|
4260
|
+
else if (l > 0) {
|
|
4261
|
+
const u = a + s, f = l - s.length;
|
|
4262
|
+
if (f >= 0)
|
|
4263
|
+
c = u + "0".repeat(f);
|
|
4264
|
+
else {
|
|
4265
|
+
const h = a.length + l;
|
|
4266
|
+
c = u.slice(0, h) + "." + u.slice(h);
|
|
4267
|
+
}
|
|
4268
|
+
} else {
|
|
4269
|
+
const u = a + s, f = u.length + l;
|
|
4270
|
+
f > 0 ? c = u.slice(0, f) + "." + u.slice(f) : c = "0." + "0".repeat(Math.abs(f)) + u;
|
|
4271
|
+
}
|
|
4272
|
+
return i ? "-" + c : c;
|
|
4273
|
+
};
|
|
4274
|
+
function Qo(e) {
|
|
4252
4275
|
dn(e, "svelte-1g9pqha", ".selectWrapper.svelte-1g9pqha.svelte-1g9pqha{position:relative;min-width:96px;font-family:inherit;height:var(--emw--base-height, 36px);font-size:var(--emw--font-size-small, 12px);border-radius:var(--emw--border-radius-small, 8px)}.selectButton.svelte-1g9pqha.svelte-1g9pqha{width:100%;height:100%;cursor:pointer;text-align:left;border:unset;display:flex;align-items:center;justify-content:space-between;color:var(--emw--select-typography, #595959);background-color:rgba(255, 255, 255, var(--emw--background-opacity, 0.9));-webkit-backdrop-filter:blur(var(--emw--filter-blur, 31.5px));backdrop-filter:blur(var(--emw--filter-blur, 31.5px));padding:0 var(--emw--spacing-small, 10px);font-size:var(--emw--font-size-small, 12px);border-radius:var(--emw--border-radius-small, 8px);font-family:inherit}.selectButton.svelte-1g9pqha.svelte-1g9pqha:focus-visible{outline:none}.label.svelte-1g9pqha.svelte-1g9pqha{display:flex;align-items:center}.selectDropdownWrapper.svelte-1g9pqha.svelte-1g9pqha{position:absolute;top:calc(100% + 2px);left:0;right:0;overflow:hidden;z-index:100;background-color:rgba(255, 255, 255, var(--emw--background-opacity, 0.9));-webkit-backdrop-filter:blur(var(--emw--filter-blur, 31.5px));backdrop-filter:blur(var(--emw--filter-blur, 31.5px));border-radius:var(--emw--border-radius-small, 8px)}.selectDropdown.svelte-1g9pqha.svelte-1g9pqha{display:flex;flex-direction:column;gap:4px;max-height:150px;overflow-y:auto;scrollbar-width:thin}.selectDropdown.svelte-1g9pqha li.svelte-1g9pqha{height:24px;flex:0 0 24px;display:flex;align-items:center;;;padding:0 var(--emw--spacing-small, 10px);cursor:pointer;transition:all 0.3s ease}.selectDropdown.svelte-1g9pqha li.svelte-1g9pqha:hover,.selectDropdown.svelte-1g9pqha li.active.svelte-1g9pqha{background:var(--emw--selected-option, #f0f0f0)}.symbol.svelte-1g9pqha.svelte-1g9pqha{display:inline-flex;width:14px;height:14px;border-radius:50%;align-items:center;justify-content:center;line-height:0;margin-right:5px;overflow:hidden;background:var(--emw--symbol-background, #595959);font-size:var(--emw--font-size-small, 12px);color:var(--emw--symbol-typography, #fff)}");
|
|
4253
4276
|
}
|
|
4254
4277
|
function zn(e, t, n) {
|
|
@@ -4272,7 +4295,7 @@ function Zn(e) {
|
|
|
4272
4295
|
var s;
|
|
4273
4296
|
a & /*selected*/
|
|
4274
4297
|
1 && n !== (n = /*selected*/
|
|
4275
|
-
(((s = o[0]) == null ? void 0 : s.symbol) || "") + "") &&
|
|
4298
|
+
(((s = o[0]) == null ? void 0 : s.symbol) || "") + "") && ie(r, n);
|
|
4276
4299
|
},
|
|
4277
4300
|
d(o) {
|
|
4278
4301
|
o && S(t);
|
|
@@ -4349,8 +4372,8 @@ function Kn(e) {
|
|
|
4349
4372
|
},
|
|
4350
4373
|
m(_, d) {
|
|
4351
4374
|
H(_, t, d), v(t, n), v(n, i), v(t, o), v(t, s), v(t, l), u || (f = [
|
|
4352
|
-
|
|
4353
|
-
|
|
4375
|
+
re(t, "keydown", Jo),
|
|
4376
|
+
re(t, "click", function() {
|
|
4354
4377
|
pt(
|
|
4355
4378
|
/*handleChange*/
|
|
4356
4379
|
e[9](
|
|
@@ -4369,12 +4392,12 @@ function Kn(e) {
|
|
|
4369
4392
|
], u = !0);
|
|
4370
4393
|
},
|
|
4371
4394
|
p(_, d) {
|
|
4372
|
-
var E, C, R, y, D,
|
|
4395
|
+
var E, C, R, y, D, M;
|
|
4373
4396
|
e = _, d & /*options*/
|
|
4374
4397
|
2 && r !== (r = /*option*/
|
|
4375
|
-
((E = e[16]) == null ? void 0 : E.symbol) + "") &&
|
|
4398
|
+
((E = e[16]) == null ? void 0 : E.symbol) + "") && ie(i, r), d & /*options*/
|
|
4376
4399
|
2 && a !== (a = /*option*/
|
|
4377
|
-
((C = e[16]) == null ? void 0 : C.currency) + "") &&
|
|
4400
|
+
((C = e[16]) == null ? void 0 : C.currency) + "") && ie(s, a), d & /*options, selected, activeIndex*/
|
|
4378
4401
|
35 && c !== (c = /*option*/
|
|
4379
4402
|
((R = e[16]) == null ? void 0 : R.currency) === /*selected*/
|
|
4380
4403
|
((y = e[0]) == null ? void 0 : y.currency) || /*index*/
|
|
@@ -4385,17 +4408,17 @@ function Kn(e) {
|
|
|
4385
4408
|
"active",
|
|
4386
4409
|
/*option*/
|
|
4387
4410
|
((D = e[16]) == null ? void 0 : D.currency) === /*selected*/
|
|
4388
|
-
((
|
|
4411
|
+
((M = e[0]) == null ? void 0 : M.currency) || /*index*/
|
|
4389
4412
|
e[18] === /*activeIndex*/
|
|
4390
4413
|
e[5]
|
|
4391
4414
|
);
|
|
4392
4415
|
},
|
|
4393
4416
|
d(_) {
|
|
4394
|
-
_ && S(t), u = !1,
|
|
4417
|
+
_ && S(t), u = !1, we(f);
|
|
4395
4418
|
}
|
|
4396
4419
|
};
|
|
4397
4420
|
}
|
|
4398
|
-
function
|
|
4421
|
+
function Yo(e) {
|
|
4399
4422
|
var _, d;
|
|
4400
4423
|
let t, n, r, i, o = (
|
|
4401
4424
|
/*selected*/
|
|
@@ -4426,18 +4449,18 @@ function Ko(e) {
|
|
|
4426
4449
|
},
|
|
4427
4450
|
m(E, C) {
|
|
4428
4451
|
H(E, t, C), v(t, n), v(n, r), h && h.m(r, null), v(r, i), v(r, a), v(n, s), v(n, l), v(t, c), m && m.m(t, null), u || (f = [
|
|
4429
|
-
|
|
4452
|
+
re(
|
|
4430
4453
|
n,
|
|
4431
4454
|
"keydown",
|
|
4432
4455
|
/*handleKeyDown*/
|
|
4433
4456
|
e[11]
|
|
4434
4457
|
),
|
|
4435
|
-
|
|
4458
|
+
re(n, "click", $r(
|
|
4436
4459
|
/*handleToggleDropdown*/
|
|
4437
4460
|
e[8]
|
|
4438
4461
|
)),
|
|
4439
|
-
Ur(
|
|
4440
|
-
|
|
4462
|
+
Ur(qo.call(null, t)),
|
|
4463
|
+
re(
|
|
4441
4464
|
t,
|
|
4442
4465
|
"outclick",
|
|
4443
4466
|
/*handleOutClick*/
|
|
@@ -4452,7 +4475,7 @@ function Ko(e) {
|
|
|
4452
4475
|
E[3] === Ie.true ? h ? h.p(E, C) : (h = Zn(E), h.c(), h.m(r, i)) : h && (h.d(1), h = null), C & /*selected, placeholder*/
|
|
4453
4476
|
5 && o !== (o = /*selected*/
|
|
4454
4477
|
(((y = E[0]) == null ? void 0 : y.currency) || /*placeholder*/
|
|
4455
|
-
E[2]) + "") &&
|
|
4478
|
+
E[2]) + "") && ie(a, o), C & /*open*/
|
|
4456
4479
|
128 && ue(
|
|
4457
4480
|
l,
|
|
4458
4481
|
"open",
|
|
@@ -4472,13 +4495,13 @@ function Ko(e) {
|
|
|
4472
4495
|
i: L,
|
|
4473
4496
|
o: L,
|
|
4474
4497
|
d(E) {
|
|
4475
|
-
E && S(t), h && h.d(), m && m.d(), u = !1,
|
|
4498
|
+
E && S(t), h && h.d(), m && m.d(), u = !1, we(f);
|
|
4476
4499
|
}
|
|
4477
4500
|
};
|
|
4478
4501
|
}
|
|
4479
|
-
const
|
|
4480
|
-
function
|
|
4481
|
-
let { options: r = [] } = t, { selected: i = null } = t, { placeholder: o =
|
|
4502
|
+
const Jo = (e) => e.preventDefault();
|
|
4503
|
+
function ea(e, t, n) {
|
|
4504
|
+
let { options: r = [] } = t, { selected: i = null } = t, { placeholder: o = k("select") } = t, { withSymbol: a = "true" } = t, { id: s } = t, { disabled: l = !1 } = t, { onChange: c = () => {
|
|
4482
4505
|
} } = t, u = -1, f, h = !1;
|
|
4483
4506
|
const m = () => {
|
|
4484
4507
|
r.length !== 0 && (n(7, h = !h), h && (n(5, u = r.findIndex((y) => (y == null ? void 0 : y.currency) === (i == null ? void 0 : i.currency))), setTimeout(() => f == null ? void 0 : f.focus(), 0), window.dispatchEvent(new CustomEvent("dropdown-opened", { detail: s }))));
|
|
@@ -4526,8 +4549,8 @@ class pn extends bn {
|
|
|
4526
4549
|
super(), mn(
|
|
4527
4550
|
this,
|
|
4528
4551
|
t,
|
|
4552
|
+
ea,
|
|
4529
4553
|
Yo,
|
|
4530
|
-
Ko,
|
|
4531
4554
|
Nt,
|
|
4532
4555
|
{
|
|
4533
4556
|
options: 1,
|
|
@@ -4538,7 +4561,7 @@ class pn extends bn {
|
|
|
4538
4561
|
disabled: 4,
|
|
4539
4562
|
onChange: 13
|
|
4540
4563
|
},
|
|
4541
|
-
|
|
4564
|
+
Qo
|
|
4542
4565
|
);
|
|
4543
4566
|
}
|
|
4544
4567
|
get options() {
|
|
@@ -4585,11 +4608,11 @@ class pn extends bn {
|
|
|
4585
4608
|
}
|
|
4586
4609
|
}
|
|
4587
4610
|
gn(pn, { options: {}, selected: {}, placeholder: {}, withSymbol: {}, id: {}, disabled: { type: "Boolean" }, onChange: {} }, [], [], !0);
|
|
4588
|
-
function
|
|
4611
|
+
function ta(e) {
|
|
4589
4612
|
dn(e, "svelte-2fhtvy", ".warningIcon.svelte-2fhtvy{line-height:1;margin-right:0.4rem}");
|
|
4590
4613
|
}
|
|
4591
|
-
function
|
|
4592
|
-
let t, n, r =
|
|
4614
|
+
function na(e) {
|
|
4615
|
+
let t, n, r = k("balanceUnavailable") + "", i;
|
|
4593
4616
|
return {
|
|
4594
4617
|
c() {
|
|
4595
4618
|
t = A("span"), t.innerHTML = '<svg fill="currentColor" width="20px" height="20px" viewBox="0 0 64 64" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xml:space="preserve"><g><path d="M32.427,7.987c2.183,0.124 4,1.165 5.096,3.281l17.936,36.208c1.739,3.66 -0.954,8.585 -5.373,8.656l-36.119,0c-4.022,-0.064 -7.322,-4.631 -5.352,-8.696l18.271,-36.207c0.342,-0.65 0.498,-0.838 0.793,-1.179c1.186,-1.375 2.483,-2.111 4.748,-2.063Zm-0.295,3.997c-0.687,0.034 -1.316,0.419 -1.659,1.017c-6.312,11.979 -12.397,24.081 -18.301,36.267c-0.546,1.225 0.391,2.797 1.762,2.863c12.06,0.195 24.125,0.195 36.185,0c1.325,-0.064 2.321,-1.584 1.769,-2.85c-5.793,-12.184 -11.765,-24.286 -17.966,-36.267c-0.366,-0.651 -0.903,-1.042 -1.79,-1.03Z" style="fill-rule:nonzero;"></path><path d="M33.631,40.581l-3.348,0l-0.368,-16.449l4.1,0l-0.384,16.449Zm-3.828,5.03c0,-0.609 0.197,-1.113 0.592,-1.514c0.396,-0.4 0.935,-0.601 1.618,-0.601c0.684,0 1.223,0.201 1.618,0.601c0.395,0.401 0.593,0.905 0.593,1.514c0,0.587 -0.193,1.078 -0.577,1.473c-0.385,0.395 -0.929,0.593 -1.634,0.593c-0.705,0 -1.249,-0.198 -1.634,-0.593c-0.384,-0.395 -0.576,-0.886 -0.576,-1.473Z" style="fill-rule:nonzero;"></path></g></svg>', n = O(), i = Z(r), b(t, "class", "warningIcon svelte-2fhtvy");
|
|
@@ -4607,11 +4630,11 @@ function ea(e) {
|
|
|
4607
4630
|
}
|
|
4608
4631
|
class Ut extends bn {
|
|
4609
4632
|
constructor(t) {
|
|
4610
|
-
super(), mn(this, t, null,
|
|
4633
|
+
super(), mn(this, t, null, na, Nt, {}, ta);
|
|
4611
4634
|
}
|
|
4612
4635
|
}
|
|
4613
4636
|
gn(Ut, {}, [], [], !0);
|
|
4614
|
-
function
|
|
4637
|
+
function ra(e) {
|
|
4615
4638
|
dn(e, "svelte-1mw4zse", '@charset "UTF-8";*{margin:0;padding:0}.playerAccountVault{max-width:400px;display:flex;flex-direction:column;justify-content:center;align-items:center;margin:auto;font-family:inherit;overflow:hidden;gap:var(--emw--spacing-small, 10px);font-size:var(--emw--font-size-small, 12px);background:var(--emw--widget-background, #F8F8F8);color:var(--emw--typography, #595959);padding:var(--emw--spacing-medium, 16px);position:relative}.playerAccountVault .closeButton{position:absolute;background:none;border:none;top:var(--emw--spacing-medium, 16px);right:var(--emw--spacing-small, 10px);line-height:0;cursor:pointer}.playerAccountVault .closeButton svg{fill:var(--emw--color-faded, #A0A29F)}.playerAccountVault .playerVaultContainer{width:100%;display:flex;justify-content:space-between;align-items:center;gap:var(--emw--spacing-small, 10px);border-radius:var(--emw--border-radius-smaller, 5px);box-sizing:border-box}.playerAccountVault .amountContainer{display:flex;align-items:center}.playerAccountVault .headerContainer{display:flex;width:100%;gap:var(--emw--spacing-small, 10px);justify-content:space-between;flex-direction:column}.playerAccountVault .headerContainer .headerTitle{font-family:inherit;color:var(--emw--color-secondary, #24B04F);font-size:var(--emw--font-size-large, 16px);font-weight:var(--emw--font-weight-normal, 400)}.playerAccountVault .headerContainer .totalAmount{margin-right:4px;color:var(--emw--color-faded, #A0A29F)}.playerAccountVault .exchangesContainer{width:100%;height:100%;box-sizing:border-box;position:relative;display:flex;flex-direction:column;gap:var(--emw--spacing-small, 10px)}.playerAccountVault .exchangesContainer .containerExchangeFrom .exchangeHeader,.playerAccountVault .exchangesContainer .containerExchangeTo .exchangeHeader{font-size:inherit;font-family:inherit;font-family:inherit}.playerAccountVault .exchangesContainer .containerExchangeFrom .flexingContainerRow,.playerAccountVault .exchangesContainer .containerExchangeTo .flexingContainerRow{display:flex;align-items:center;gap:var(--emw--spacing-small, 10px)}.playerAccountVault .exchangesContainer .containerExchangeFrom .flexingContainerRow input[type=number]::-webkit-inner-spin-button,.playerAccountVault .exchangesContainer .containerExchangeFrom .flexingContainerRow input[type=number]::-webkit-outer-spin-button,.playerAccountVault .exchangesContainer .containerExchangeTo .flexingContainerRow input[type=number]::-webkit-inner-spin-button,.playerAccountVault .exchangesContainer .containerExchangeTo .flexingContainerRow input[type=number]::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}.playerAccountVault .exchangesContainer .containerExchangeFrom .flexingContainerRow input[type=number],.playerAccountVault .exchangesContainer .containerExchangeTo .flexingContainerRow input[type=number]{-moz-appearance:textfield}.playerAccountVault .exchangesContainer .containerExchangeFrom .flexingContainerRow .exchangeInput,.playerAccountVault .exchangesContainer .containerExchangeTo .flexingContainerRow .exchangeInput{flex:1;min-width:50px;border:unset;height:var(--emw--base-height, 36px);font-size:var(--emw--font-size-medium, 14px);padding:0 var(--emw--spacing-small, 10px);border-radius:var(--emw--border-radius-small, 8px);background-color:rgba(255, 255, 255, var(--emw--background-opacity, 0.9));-webkit-backdrop-filter:blur(var(--emw--filter-blur, 31.5px));backdrop-filter:blur(var(--emw--filter-blur, 31.5px));font-family:inherit;color:var(--emw--input-typography, #000)}.playerAccountVault .exchangesContainer .containerExchangeFrom .flexingContainerRow .exchangeInput:focus,.playerAccountVault .exchangesContainer .containerExchangeTo .flexingContainerRow .exchangeInput:focus{outline:none}.playerAccountVault .exchangesContainer .containerExchangeFrom .flexingContainerRow .exchangeInput[disabled],.playerAccountVault .exchangesContainer .containerExchangeTo .flexingContainerRow .exchangeInput[disabled]{color:var(--emw--input-disabled, #a0a29f)}.playerAccountVault .exchangesContainer .containerExchangeFrom .flexingContainerRow .exchangeInput::placeholder,.playerAccountVault .exchangesContainer .containerExchangeTo .flexingContainerRow .exchangeInput::placeholder{color:var(--emw--input-placeholder, #a0a29f)}.playerAccountVault .exchangesContainer .containerExchangeFrom .flexingContainerRow .currenciesSelect,.playerAccountVault .exchangesContainer .containerExchangeTo .flexingContainerRow .currenciesSelect{min-width:96px;border:unset;white-space:nowrap;height:var(--emw--base-height, 36px);padding:0 var(--emw--spacing-small, 10px)}.playerAccountVault .exchangesContainer .containerExchangeFrom .flexingContainerRow .currenciesSelect:focus,.playerAccountVault .exchangesContainer .containerExchangeTo .flexingContainerRow .currenciesSelect:focus{outline:none}.playerAccountVault .exchangesContainer .containerExchangeFrom .balanceContainer,.playerAccountVault .exchangesContainer .containerExchangeTo .balanceContainer{display:flex;justify-content:space-between;gap:var(--emw--spacing-small, 10px)}.playerAccountVault .exchangesContainer .containerExchangeFrom .balanceContainer.hasError,.playerAccountVault .exchangesContainer .containerExchangeTo .balanceContainer.hasError{color:var(--emw--color-error, #ed0909)}.playerAccountVault .exchangesContainer .containerExchangeFrom .balanceContainer.hasError span,.playerAccountVault .exchangesContainer .containerExchangeTo .balanceContainer.hasError span{color:var(--emw--color-error, #ed0909)}.playerAccountVault .exchangesContainer .containerExchangeFrom .balanceContainer .validationError,.playerAccountVault .exchangesContainer .containerExchangeTo .balanceContainer .validationError{flex:1}.playerAccountVault .exchangesContainer .containerExchangeFrom .playerBalance,.playerAccountVault .exchangesContainer .containerExchangeTo .playerBalance{white-space:nowrap;justify-content:flex-end}.playerAccountVault .exchangesContainer .containerExchangeFrom .playerBalance .amount,.playerAccountVault .exchangesContainer .containerExchangeTo .playerBalance .amount{color:var(--emw--color-faded, #A0A29F);margin-right:4px}.playerAccountVault .vaultsContainer{display:flex;flex-direction:column;width:100%}.playerAccountVault .vaultsContainer .vaultToggleButton{display:flex;align-items:center;justify-content:center;width:35px;height:35px;cursor:pointer;border:unset;align-self:flex-end;padding:var(--emw--spacing-small, 10px);background:var(--emw--color-primary, #24B04F);border-radius:var(--emw--border-radius-small, 8px)}.playerAccountVault .vaultsContainer .vaultToggleButton .vaultToggleIcon{transform:rotateZ(0deg);transition:all 0.3s ease-in-out}.playerAccountVault .vaultsContainer .vaultToggleButton .vaultToggleIcon path{fill:var(--emw--color-white, #fff)}.playerAccountVault .vaultsContainer .vaultToggleButton.active .vaultToggleIcon{transform:rotateZ(180deg)}.playerAccountVault .vaultsContainer .vaultDropdown{width:80%;max-height:0;height:200px;margin:0 auto;display:flex;flex-direction:column;overflow:auto;opacity:0;scrollbar-width:thin;gap:var(--emw--spacing-small, 10px);font-size:var(--emw--font-size-medium, 14px);color:var(--emw--color-white, #fff);font-family:inherit;transition:max-height 0.4s ease-out, opacity 0.4s ease-out}.playerAccountVault .vaultsContainer .vaultDropdown .vaultItem{display:inherit;font-size:var(--emw--font-size-medium, 14px);justify-content:space-between;width:100%;margin:0 auto;box-sizing:border-box;height:var(--emw--base-height, 36px);padding:var(--emw--spacing-small, 10px);background:var(--emw--color-primary, #24B04F);border-radius:var(--emw--border-radius-small, 8px)}.playerAccountVault .vaultsContainer .vaultDropdown.expanded{transition:max-height 1s ease-in, opacity 0.4s ease-in;max-height:1000vh;opacity:1}.playerAccountVault .notificationsContainer{width:100%;min-height:var(--emw--base-height, 36px);padding:0px}.playerAccountVault .notificationsContainer.error{color:var(--emw--color-error, #FF2424)}.playerAccountVault .notificationsContainer.success{color:var(--emw--color-success, #24B04F)}.playerAccountVault .feesContainer{width:100%;height:var(--emw--base-height, 36px);display:flex;align-items:center;justify-content:space-between;background-color:rgba(255, 255, 255, var(--emw--background-opacity, 0.9));-webkit-backdrop-filter:blur(var(--emw--filter-blur, 31.5px));backdrop-filter:blur(var(--emw--filter-blur, 31.5px));border-radius:var(--emw--border-radius-small, 8px);padding:0 var(--emw--spacing-small, 10px);box-sizing:border-box}.playerAccountVault .feesContainer .feesLabel{color:var(--emw--color-faded, #A0A29F)}.playerAccountVault .actionsContainer{width:100%;height:100%;display:flex;justify-content:space-between;align-items:center;box-sizing:border-box;gap:var(--emw--spacing-small, 10px)}.playerAccountVault .actionsContainer button{flex:1;height:var(--emw--base-height, 36px);border:none;cursor:pointer;font-family:inherit;font-size:var(--emw--button-font-size, 14px);border-radius:var(--emw--border-radius-small, 8px);font-weight:var(--emw--font-weight-bold, 500);transition:background 0.3s ease, color 0.3s ease, filter 0.3s ease}.playerAccountVault .actionsContainer .exchangeButton{background:var(--emw--color-primary, #24B04F);color:var(--emw--button-typography, #fff)}.playerAccountVault .actionsContainer .exchangeButton:hover{filter:brightness(110%)}.playerAccountVault .actionsContainer .resetButton{background:transparent;color:var(--emw--color-primary, #24B04F);border:1px solid var(--emw--color-primary, #24B04F)}.playerAccountVault .actionsContainer .resetButton:hover{background:var(--emw--color-primary, #24B04F);color:var(--emw--button-typography, #fff)}.playerAccountVault .actionsContainer .exchangeButton.disabled{cursor:default;filter:none;background:var(--emw--button-disabled, #595959)}.playerAccountVault .actionsContainer .exchangeButton.disabled:hover{background:var(--emw--button-disabled, #595959)}.playerAccountVault .actionsContainer .exchangeButton.disabled.pending{background:var(--emw--color-primary, #24B04F);pointer-events:none;opacity:0.5}.playerAccountVault .skeleton{background-color:rgba(0, 0, 0, 0.11);height:auto;min-height:0.1rem;-webkit-animation:loading 1.5s ease-in-out 0.5s infinite;animation:loading 1.5s ease-in-out 0.5s infinite}.playerAccountVault .skeleton::before{content:" "}@keyframes loading{0%{opacity:1}50%{opacity:0.4}100%{opacity:1}}.playerAccountVault .exchangeContainer{display:flex;flex-direction:column;gap:4px}');
|
|
4616
4639
|
}
|
|
4617
4640
|
function Qn(e, t, n) {
|
|
@@ -4625,7 +4648,7 @@ function Yn(e) {
|
|
|
4625
4648
|
t = A("button"), t.innerHTML = '<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M13.414 12l4.95-4.95-1.414-1.414-4.95 4.95-4.95-4.95L5.636 7.05l4.95 4.95-4.95 4.95 1.414 1.414 4.95-4.95 4.95 4.95 1.414-1.414-4.95-4.95z"></path></svg>', b(t, "type", "button"), b(t, "class", "closeButton");
|
|
4626
4649
|
},
|
|
4627
4650
|
m(i, o) {
|
|
4628
|
-
H(i, t, o), n || (r =
|
|
4651
|
+
H(i, t, o), n || (r = re(
|
|
4629
4652
|
t,
|
|
4630
4653
|
"click",
|
|
4631
4654
|
/*handleCloseWidget*/
|
|
@@ -4640,7 +4663,7 @@ function Yn(e) {
|
|
|
4640
4663
|
}
|
|
4641
4664
|
function Jn(e) {
|
|
4642
4665
|
let t, n, r, i;
|
|
4643
|
-
const o = [
|
|
4666
|
+
const o = [oa, ia], a = [];
|
|
4644
4667
|
function s(l, c) {
|
|
4645
4668
|
return !/*isBalanceFetched*/
|
|
4646
4669
|
l[16] || !/*isCurrenciesFetched*/
|
|
@@ -4670,14 +4693,14 @@ function Jn(e) {
|
|
|
4670
4693
|
}
|
|
4671
4694
|
};
|
|
4672
4695
|
}
|
|
4673
|
-
function
|
|
4696
|
+
function ia(e) {
|
|
4674
4697
|
let t, n, r, i;
|
|
4675
|
-
const o = [
|
|
4698
|
+
const o = [sa, aa], a = [];
|
|
4676
4699
|
function s(l, c) {
|
|
4677
4700
|
var u;
|
|
4678
4701
|
return (
|
|
4679
4702
|
/*fetchResponse*/
|
|
4680
|
-
((u = l[12]) == null ? void 0 : u.source) ===
|
|
4703
|
+
((u = l[12]) == null ? void 0 : u.source) === K.BalanceError ? 0 : 1
|
|
4681
4704
|
);
|
|
4682
4705
|
}
|
|
4683
4706
|
return n = s(e), r = a[n] = o[n](e), {
|
|
@@ -4704,7 +4727,7 @@ function na(e) {
|
|
|
4704
4727
|
}
|
|
4705
4728
|
};
|
|
4706
4729
|
}
|
|
4707
|
-
function
|
|
4730
|
+
function oa(e) {
|
|
4708
4731
|
let t;
|
|
4709
4732
|
return {
|
|
4710
4733
|
c() {
|
|
@@ -4721,7 +4744,7 @@ function ra(e) {
|
|
|
4721
4744
|
}
|
|
4722
4745
|
};
|
|
4723
4746
|
}
|
|
4724
|
-
function
|
|
4747
|
+
function aa(e) {
|
|
4725
4748
|
var l, c;
|
|
4726
4749
|
let t, n, r = (
|
|
4727
4750
|
/*playerBalance*/
|
|
@@ -4732,7 +4755,7 @@ function ia(e) {
|
|
|
4732
4755
|
), s;
|
|
4733
4756
|
return {
|
|
4734
4757
|
c() {
|
|
4735
|
-
t = A("span"), t.textContent = `${
|
|
4758
|
+
t = A("span"), t.textContent = `${k("totalBalance")}`, n = O(), i = Z(r), o = O(), s = Z(a), b(t, "class", "totalAmount");
|
|
4736
4759
|
},
|
|
4737
4760
|
m(u, f) {
|
|
4738
4761
|
H(u, t, f), H(u, n, f), H(u, i, f), H(u, o, f), H(u, s, f);
|
|
@@ -4741,9 +4764,9 @@ function ia(e) {
|
|
|
4741
4764
|
var h, m;
|
|
4742
4765
|
f[0] & /*playerBalance*/
|
|
4743
4766
|
1024 && r !== (r = /*playerBalance*/
|
|
4744
|
-
(((h = u[10]) == null ? void 0 : h.amount) || 0) + "") &&
|
|
4767
|
+
(((h = u[10]) == null ? void 0 : h.amount) || 0) + "") && ie(i, r), f[0] & /*playerBalance*/
|
|
4745
4768
|
1024 && a !== (a = /*playerBalance*/
|
|
4746
|
-
(((m = u[10]) == null ? void 0 : m.currency) || "") + "") &&
|
|
4769
|
+
(((m = u[10]) == null ? void 0 : m.currency) || "") + "") && ie(s, a);
|
|
4747
4770
|
},
|
|
4748
4771
|
i: L,
|
|
4749
4772
|
o: L,
|
|
@@ -4752,7 +4775,7 @@ function ia(e) {
|
|
|
4752
4775
|
}
|
|
4753
4776
|
};
|
|
4754
4777
|
}
|
|
4755
|
-
function
|
|
4778
|
+
function sa(e) {
|
|
4756
4779
|
let t, n;
|
|
4757
4780
|
return t = new Ut({}), {
|
|
4758
4781
|
c() {
|
|
@@ -4773,14 +4796,14 @@ function oa(e) {
|
|
|
4773
4796
|
}
|
|
4774
4797
|
};
|
|
4775
4798
|
}
|
|
4776
|
-
function
|
|
4799
|
+
function la(e) {
|
|
4777
4800
|
let t, n, r, i, o, a, s, l, c;
|
|
4778
|
-
const u = [
|
|
4801
|
+
const u = [ha, ca], f = [];
|
|
4779
4802
|
function h(m, _) {
|
|
4780
4803
|
var d;
|
|
4781
4804
|
return (
|
|
4782
4805
|
/*fetchResponse*/
|
|
4783
|
-
((d = m[12]) == null ? void 0 : d.source) ===
|
|
4806
|
+
((d = m[12]) == null ? void 0 : d.source) === K.BalanceError ? 0 : 1
|
|
4784
4807
|
);
|
|
4785
4808
|
}
|
|
4786
4809
|
return a = h(e), s = f[a] = u[a](e), {
|
|
@@ -4796,7 +4819,7 @@ function aa(e) {
|
|
|
4796
4819
|
},
|
|
4797
4820
|
p(m, _) {
|
|
4798
4821
|
(!c || _[0] & /*validationError*/
|
|
4799
|
-
8192) &&
|
|
4822
|
+
8192) && ie(
|
|
4800
4823
|
r,
|
|
4801
4824
|
/*validationError*/
|
|
4802
4825
|
m[13]
|
|
@@ -4819,7 +4842,7 @@ function aa(e) {
|
|
|
4819
4842
|
}
|
|
4820
4843
|
};
|
|
4821
4844
|
}
|
|
4822
|
-
function
|
|
4845
|
+
function ua(e) {
|
|
4823
4846
|
let t;
|
|
4824
4847
|
return {
|
|
4825
4848
|
c() {
|
|
@@ -4836,7 +4859,7 @@ function sa(e) {
|
|
|
4836
4859
|
}
|
|
4837
4860
|
};
|
|
4838
4861
|
}
|
|
4839
|
-
function
|
|
4862
|
+
function ca(e) {
|
|
4840
4863
|
var l, c;
|
|
4841
4864
|
let t, n, r = (
|
|
4842
4865
|
/*selectedCurrencyFrom*/
|
|
@@ -4847,7 +4870,7 @@ function la(e) {
|
|
|
4847
4870
|
), s;
|
|
4848
4871
|
return {
|
|
4849
4872
|
c() {
|
|
4850
|
-
t = A("span"), t.textContent = `${
|
|
4873
|
+
t = A("span"), t.textContent = `${k("currentBalance")}`, n = O(), i = Z(r), o = O(), s = Z(a), b(t, "class", "amount");
|
|
4851
4874
|
},
|
|
4852
4875
|
m(u, f) {
|
|
4853
4876
|
H(u, t, f), H(u, n, f), H(u, i, f), H(u, o, f), H(u, s, f);
|
|
@@ -4856,9 +4879,9 @@ function la(e) {
|
|
|
4856
4879
|
var h, m;
|
|
4857
4880
|
f[0] & /*selectedCurrencyFrom*/
|
|
4858
4881
|
32 && r !== (r = /*selectedCurrencyFrom*/
|
|
4859
|
-
(((h = u[5]) == null ? void 0 : h.amount) || 0) + "") &&
|
|
4882
|
+
(((h = u[5]) == null ? void 0 : h.amount) || 0) + "") && ie(i, r), f[0] & /*selectedCurrencyFrom*/
|
|
4860
4883
|
32 && a !== (a = /*selectedCurrencyFrom*/
|
|
4861
|
-
(((m = u[5]) == null ? void 0 : m.currency) || "") + "") &&
|
|
4884
|
+
(((m = u[5]) == null ? void 0 : m.currency) || "") + "") && ie(s, a);
|
|
4862
4885
|
},
|
|
4863
4886
|
i: L,
|
|
4864
4887
|
o: L,
|
|
@@ -4867,7 +4890,7 @@ function la(e) {
|
|
|
4867
4890
|
}
|
|
4868
4891
|
};
|
|
4869
4892
|
}
|
|
4870
|
-
function
|
|
4893
|
+
function ha(e) {
|
|
4871
4894
|
let t, n;
|
|
4872
4895
|
return t = new Ut({}), {
|
|
4873
4896
|
c() {
|
|
@@ -4888,14 +4911,14 @@ function ua(e) {
|
|
|
4888
4911
|
}
|
|
4889
4912
|
};
|
|
4890
4913
|
}
|
|
4891
|
-
function
|
|
4914
|
+
function fa(e) {
|
|
4892
4915
|
let t, n, r, i;
|
|
4893
|
-
const o = [
|
|
4916
|
+
const o = [ma, da], a = [];
|
|
4894
4917
|
function s(l, c) {
|
|
4895
4918
|
var u;
|
|
4896
4919
|
return (
|
|
4897
4920
|
/*fetchResponse*/
|
|
4898
|
-
((u = l[12]) == null ? void 0 : u.source) ===
|
|
4921
|
+
((u = l[12]) == null ? void 0 : u.source) === K.BalanceError ? 0 : 1
|
|
4899
4922
|
);
|
|
4900
4923
|
}
|
|
4901
4924
|
return n = s(e), r = a[n] = o[n](e), {
|
|
@@ -4922,7 +4945,7 @@ function ca(e) {
|
|
|
4922
4945
|
}
|
|
4923
4946
|
};
|
|
4924
4947
|
}
|
|
4925
|
-
function
|
|
4948
|
+
function pa(e) {
|
|
4926
4949
|
let t;
|
|
4927
4950
|
return {
|
|
4928
4951
|
c() {
|
|
@@ -4939,7 +4962,7 @@ function ha(e) {
|
|
|
4939
4962
|
}
|
|
4940
4963
|
};
|
|
4941
4964
|
}
|
|
4942
|
-
function
|
|
4965
|
+
function da(e) {
|
|
4943
4966
|
var l, c;
|
|
4944
4967
|
let t, n, r = (
|
|
4945
4968
|
/*selectedCurrencyTo*/
|
|
@@ -4950,7 +4973,7 @@ function fa(e) {
|
|
|
4950
4973
|
), s;
|
|
4951
4974
|
return {
|
|
4952
4975
|
c() {
|
|
4953
|
-
t = A("span"), t.textContent = `${
|
|
4976
|
+
t = A("span"), t.textContent = `${k("currentBalance")}`, n = O(), i = Z(r), o = O(), s = Z(a), b(t, "class", "amount");
|
|
4954
4977
|
},
|
|
4955
4978
|
m(u, f) {
|
|
4956
4979
|
H(u, t, f), H(u, n, f), H(u, i, f), H(u, o, f), H(u, s, f);
|
|
@@ -4959,9 +4982,9 @@ function fa(e) {
|
|
|
4959
4982
|
var h, m;
|
|
4960
4983
|
f[0] & /*selectedCurrencyTo*/
|
|
4961
4984
|
64 && r !== (r = /*selectedCurrencyTo*/
|
|
4962
|
-
(((h = u[6]) == null ? void 0 : h.amount) || 0) + "") &&
|
|
4985
|
+
(((h = u[6]) == null ? void 0 : h.amount) || 0) + "") && ie(i, r), f[0] & /*selectedCurrencyTo*/
|
|
4963
4986
|
64 && a !== (a = /*selectedCurrencyTo*/
|
|
4964
|
-
(((m = u[6]) == null ? void 0 : m.currency) || "") + "") &&
|
|
4987
|
+
(((m = u[6]) == null ? void 0 : m.currency) || "") + "") && ie(s, a);
|
|
4965
4988
|
},
|
|
4966
4989
|
i: L,
|
|
4967
4990
|
o: L,
|
|
@@ -4970,7 +4993,7 @@ function fa(e) {
|
|
|
4970
4993
|
}
|
|
4971
4994
|
};
|
|
4972
4995
|
}
|
|
4973
|
-
function
|
|
4996
|
+
function ma(e) {
|
|
4974
4997
|
let t, n;
|
|
4975
4998
|
return t = new Ut({}), {
|
|
4976
4999
|
c() {
|
|
@@ -5013,7 +5036,7 @@ function er(e) {
|
|
|
5013
5036
|
H(m, t, _), v(t, n), v(n, r), v(r, i), v(t, a), v(t, s);
|
|
5014
5037
|
for (let d = 0; d < h.length; d += 1)
|
|
5015
5038
|
h[d] && h[d].m(s, null);
|
|
5016
|
-
c || (u =
|
|
5039
|
+
c || (u = re(
|
|
5017
5040
|
n,
|
|
5018
5041
|
"click",
|
|
5019
5042
|
/*handleToggleVaultDropdown*/
|
|
@@ -5069,16 +5092,16 @@ function tr(e) {
|
|
|
5069
5092
|
var _, d;
|
|
5070
5093
|
m[0] & /*dropDownVaults*/
|
|
5071
5094
|
524288 && r !== (r = /*vault*/
|
|
5072
|
-
((_ = h[62]) == null ? void 0 : _.currency) + "") &&
|
|
5095
|
+
((_ = h[62]) == null ? void 0 : _.currency) + "") && ie(i, r), m[0] & /*dropDownVaults*/
|
|
5073
5096
|
524288 && s !== (s = /*vault*/
|
|
5074
|
-
((d = h[62]) == null ? void 0 : d.amount) + "") &&
|
|
5097
|
+
((d = h[62]) == null ? void 0 : d.amount) + "") && ie(l, s);
|
|
5075
5098
|
},
|
|
5076
5099
|
d(h) {
|
|
5077
5100
|
h && S(t);
|
|
5078
5101
|
}
|
|
5079
5102
|
};
|
|
5080
5103
|
}
|
|
5081
|
-
function
|
|
5104
|
+
function ga(e) {
|
|
5082
5105
|
var r, i, o, a;
|
|
5083
5106
|
let t = `${/*currentFee*/
|
|
5084
5107
|
((i = (r = e[11]) == null ? void 0 : r.fees[0]) == null ? void 0 : i.amount) || 0} ${/*currentFee*/
|
|
@@ -5095,15 +5118,15 @@ function da(e) {
|
|
|
5095
5118
|
l[0] & /*currentFee*/
|
|
5096
5119
|
2048 && t !== (t = `${/*currentFee*/
|
|
5097
5120
|
((u = (c = s[11]) == null ? void 0 : c.fees[0]) == null ? void 0 : u.amount) || 0} ${/*currentFee*/
|
|
5098
|
-
((h = (f = s[11]) == null ? void 0 : f.fees[0]) == null ? void 0 : h.currency) || ""}`) &&
|
|
5121
|
+
((h = (f = s[11]) == null ? void 0 : f.fees[0]) == null ? void 0 : h.currency) || ""}`) && ie(n, t);
|
|
5099
5122
|
},
|
|
5100
5123
|
d(s) {
|
|
5101
5124
|
s && S(n);
|
|
5102
5125
|
}
|
|
5103
5126
|
};
|
|
5104
5127
|
}
|
|
5105
|
-
function
|
|
5106
|
-
let t =
|
|
5128
|
+
function ba(e) {
|
|
5129
|
+
let t = k("feesUnavailable") + "", n;
|
|
5107
5130
|
return {
|
|
5108
5131
|
c() {
|
|
5109
5132
|
n = Z(t);
|
|
@@ -5117,12 +5140,12 @@ function ma(e) {
|
|
|
5117
5140
|
}
|
|
5118
5141
|
};
|
|
5119
5142
|
}
|
|
5120
|
-
function
|
|
5143
|
+
function ya(e) {
|
|
5121
5144
|
var j;
|
|
5122
|
-
let t, n, r, i, o, a, s, l, c, u, f, h, m, _, d, E, C, R, y, D,
|
|
5145
|
+
let t, n, r, i, o, a, s, l, c, u, f, h, m, _, d, E, C, R, y, D, M, X, ge, oe, W, ce, be, se, he, Ae, Q, ee, fe, nt, Ce, Me, dt, ke, rt, ae, ye = k(
|
|
5123
5146
|
/*fetchResponse*/
|
|
5124
5147
|
((j = e[12]) == null ? void 0 : j.message) || ""
|
|
5125
|
-
) + "",
|
|
5148
|
+
) + "", Te, ve, Ee, Ue, te, Be = k("exchange") + "", mt, _e, ne, it, ot, Y = (
|
|
5126
5149
|
/*showclosebutton*/
|
|
5127
5150
|
e[3] === Ie.true && Yn(e)
|
|
5128
5151
|
), F = (
|
|
@@ -5153,13 +5176,13 @@ function ga(e) {
|
|
|
5153
5176
|
/*selectedCurrencyFrom*/
|
|
5154
5177
|
e[5] !== void 0 && (gt.selected = /*selectedCurrencyFrom*/
|
|
5155
5178
|
e[5]), d = new pn({ props: gt }), We.push(() => Bn(d, "selected", Vt));
|
|
5156
|
-
const bt = [
|
|
5179
|
+
const bt = [ua, la], pe = [];
|
|
5157
5180
|
function at(g, B) {
|
|
5158
5181
|
return !/*isBalanceFetched*/
|
|
5159
5182
|
g[16] || !/*isCurrenciesFetched*/
|
|
5160
5183
|
g[17] ? 0 : 1;
|
|
5161
5184
|
}
|
|
5162
|
-
R = at(e), y =
|
|
5185
|
+
R = at(e), y = pe[R] = bt[R](e);
|
|
5163
5186
|
function Ft(g) {
|
|
5164
5187
|
e[41](g);
|
|
5165
5188
|
}
|
|
@@ -5186,109 +5209,109 @@ function ga(e) {
|
|
|
5186
5209
|
/*selectedCurrencyTo*/
|
|
5187
5210
|
e[6] !== void 0 && (yt.selected = /*selectedCurrencyTo*/
|
|
5188
5211
|
e[6]), se = new pn({ props: yt }), We.push(() => Bn(se, "selected", Ft));
|
|
5189
|
-
const vt = [
|
|
5212
|
+
const vt = [pa, fa], de = [];
|
|
5190
5213
|
function Et(g, B) {
|
|
5191
5214
|
return !/*isBalanceFetched*/
|
|
5192
5215
|
g[16] || !/*isCurrenciesFetched*/
|
|
5193
5216
|
g[17] ? 0 : 1;
|
|
5194
5217
|
}
|
|
5195
|
-
|
|
5218
|
+
Q = Et(e), ee = de[Q] = vt[Q](e);
|
|
5196
5219
|
let p = (
|
|
5197
5220
|
/*showvaults*/
|
|
5198
5221
|
e[1] === Ie.true && er(e)
|
|
5199
5222
|
);
|
|
5200
5223
|
function w(g, B) {
|
|
5201
|
-
var
|
|
5224
|
+
var q;
|
|
5202
5225
|
return (
|
|
5203
5226
|
/*fetchResponse*/
|
|
5204
|
-
((
|
|
5227
|
+
((q = g[12]) == null ? void 0 : q.source) === K.CheckWalletExchangeError ? ba : ga
|
|
5205
5228
|
);
|
|
5206
5229
|
}
|
|
5207
5230
|
let I = w(e), x = I(e);
|
|
5208
5231
|
return {
|
|
5209
5232
|
c() {
|
|
5210
|
-
var g, B,
|
|
5211
|
-
t = A("div"),
|
|
5233
|
+
var g, B, q;
|
|
5234
|
+
t = A("div"), Y && Y.c(), n = O(), r = A("div"), i = A("h1"), i.textContent = `${k("vaultExchange")}`, o = O(), F && F.c(), a = O(), s = A("div"), l = A("div"), c = A("p"), c.textContent = `${k("exchangeFrom")}`, u = O(), f = A("div"), h = A("input"), _ = O(), ct(d.$$.fragment), C = O(), y.c(), D = O(), M = A("div"), X = A("p"), X.textContent = `${k("exchangeTo")}`, ge = O(), oe = A("div"), W = A("input"), be = O(), ct(se.$$.fragment), Ae = O(), ee.c(), fe = O(), p && p.c(), nt = O(), Ce = A("div"), Me = A("span"), Me.textContent = `${k("feesIncluded")}`, dt = O(), ke = A("span"), x.c(), rt = O(), ae = A("div"), Te = O(), ve = A("div"), Ee = A("button"), Ee.textContent = `${k("reset")}`, Ue = O(), te = A("button"), mt = Z(Be), b(i, "class", "headerTitle"), b(r, "class", "headerContainer"), b(c, "class", "exchangeHeader"), b(h, "id", "senderInput"), h.disabled = m = !/*session*/
|
|
5212
5235
|
e[0] || !/*isBalanceFetched*/
|
|
5213
5236
|
e[16] || !/*isCurrenciesFetched*/
|
|
5214
|
-
e[17], b(h, "placeholder",
|
|
5237
|
+
e[17], b(h, "placeholder", k("debitPlaceHolder")), b(h, "class", "exchangeInput"), b(h, "type", "number"), b(h, "aria-label", "Enter exchange amount"), b(h, "inputmode", "decimal"), b(h, "step", "0.000000000000001"), b(h, "min", "0"), b(f, "class", "flexingContainerRow"), b(l, "class", "containerExchangeFrom exchangeContainer"), b(X, "class", "exchangeHeader"), b(W, "id", "destinationInput"), W.disabled = ce = !/*session*/
|
|
5215
5238
|
e[0] || !/*isBalanceFetched*/
|
|
5216
5239
|
e[16] || !/*isCurrenciesFetched*/
|
|
5217
|
-
e[17], b(W, "placeholder",
|
|
5218
|
-
|
|
5240
|
+
e[17], b(W, "placeholder", k("creditPlaceHolder")), b(W, "class", "exchangeInput"), b(W, "type", "number"), W.readOnly = !0, b(W, "min", "0"), b(oe, "class", "flexingContainerRow"), b(M, "class", "containerExchangeTo exchangeContainer"), b(s, "class", "exchangesContainer"), b(Me, "class", "feesLabel"), b(Ce, "class", "feesContainer"), b(ae, "class", "notificationsContainer"), ue(
|
|
5241
|
+
ae,
|
|
5219
5242
|
"error",
|
|
5220
5243
|
/*fetchResponse*/
|
|
5221
5244
|
((g = e[12]) == null ? void 0 : g.type) === "error"
|
|
5222
5245
|
), ue(
|
|
5223
|
-
|
|
5246
|
+
ae,
|
|
5224
5247
|
"success",
|
|
5225
5248
|
/*fetchResponse*/
|
|
5226
5249
|
((B = e[12]) == null ? void 0 : B.type) === "success"
|
|
5227
|
-
), b(Ee, "class", "resetButton"), b(Ee, "type", "button"), b(
|
|
5250
|
+
), b(Ee, "class", "resetButton"), b(Ee, "type", "button"), b(te, "type", "button"), b(te, "class", "exchangeButton"), te.disabled = _e = /*isExchangeDisabled*/
|
|
5228
5251
|
e[14] || /*isExchangePending*/
|
|
5229
5252
|
e[18] || /*inputExchangeFrom*/
|
|
5230
5253
|
e[8] === 0 && !/*selectedCurrencyFrom*/
|
|
5231
|
-
((
|
|
5232
|
-
|
|
5254
|
+
((q = e[5]) != null && q.amount), ue(
|
|
5255
|
+
te,
|
|
5233
5256
|
"disabled",
|
|
5234
5257
|
/*isExchangeDisabled*/
|
|
5235
5258
|
e[14] || /*isExchangePending*/
|
|
5236
5259
|
e[18]
|
|
5237
5260
|
), ue(
|
|
5238
|
-
|
|
5261
|
+
te,
|
|
5239
5262
|
"pending",
|
|
5240
5263
|
/*isExchangePending*/
|
|
5241
5264
|
e[18]
|
|
5242
5265
|
), b(ve, "class", "actionsContainer"), b(t, "class", "playerAccountVault");
|
|
5243
5266
|
},
|
|
5244
5267
|
m(g, B) {
|
|
5245
|
-
H(g, t, B),
|
|
5268
|
+
H(g, t, B), Y && Y.m(t, null), v(t, n), v(t, r), v(r, i), v(r, o), F && F.m(r, null), v(t, a), v(t, s), v(s, l), v(l, c), v(l, u), v(l, f), v(f, h), _t(
|
|
5246
5269
|
h,
|
|
5247
5270
|
/*inputExchangeFrom*/
|
|
5248
5271
|
e[8]
|
|
5249
|
-
), v(f, _), ze(d, f, null), v(l, C),
|
|
5272
|
+
), v(f, _), ze(d, f, null), v(l, C), pe[R].m(l, null), v(s, D), v(s, M), v(M, X), v(M, ge), v(M, oe), v(oe, W), _t(
|
|
5250
5273
|
W,
|
|
5251
5274
|
/*inputExchangeTo*/
|
|
5252
5275
|
e[9]
|
|
5253
|
-
), v(
|
|
5254
|
-
|
|
5276
|
+
), v(oe, be), ze(se, oe, null), v(M, Ae), de[Q].m(M, null), v(t, fe), p && p.m(t, null), v(t, nt), v(t, Ce), v(Ce, Me), v(Ce, dt), v(Ce, ke), x.m(ke, null), v(t, rt), v(t, ae), ae.innerHTML = ye, v(t, Te), v(t, ve), v(ve, Ee), v(ve, Ue), v(ve, te), v(te, mt), e[42](t), ne = !0, it || (ot = [
|
|
5277
|
+
re(
|
|
5255
5278
|
h,
|
|
5256
5279
|
"input",
|
|
5257
5280
|
/*input0_input_handler*/
|
|
5258
5281
|
e[38]
|
|
5259
5282
|
),
|
|
5260
|
-
|
|
5283
|
+
re(
|
|
5261
5284
|
h,
|
|
5262
5285
|
"input",
|
|
5263
5286
|
/*handleInputChange*/
|
|
5264
5287
|
e[26]
|
|
5265
5288
|
),
|
|
5266
|
-
|
|
5289
|
+
re(
|
|
5267
5290
|
h,
|
|
5268
5291
|
"beforeinput",
|
|
5269
5292
|
/*handleBeforeInput*/
|
|
5270
5293
|
e[27]
|
|
5271
5294
|
),
|
|
5272
|
-
|
|
5295
|
+
re(
|
|
5273
5296
|
h,
|
|
5274
5297
|
"focus",
|
|
5275
5298
|
/*handleInputFocus*/
|
|
5276
5299
|
e[28]
|
|
5277
5300
|
),
|
|
5278
|
-
|
|
5301
|
+
re(
|
|
5279
5302
|
W,
|
|
5280
5303
|
"input",
|
|
5281
5304
|
/*input1_input_handler*/
|
|
5282
5305
|
e[40]
|
|
5283
5306
|
),
|
|
5284
|
-
|
|
5307
|
+
re(
|
|
5285
5308
|
Ee,
|
|
5286
5309
|
"click",
|
|
5287
5310
|
/*handleResetToDefault*/
|
|
5288
5311
|
e[24]
|
|
5289
5312
|
),
|
|
5290
|
-
|
|
5291
|
-
|
|
5313
|
+
re(
|
|
5314
|
+
te,
|
|
5292
5315
|
"click",
|
|
5293
5316
|
/*handleExchange*/
|
|
5294
5317
|
e[29]
|
|
@@ -5296,13 +5319,13 @@ function ga(e) {
|
|
|
5296
5319
|
], it = !0);
|
|
5297
5320
|
},
|
|
5298
5321
|
p(g, B) {
|
|
5299
|
-
var
|
|
5322
|
+
var Se, En, _n, xn;
|
|
5300
5323
|
/*showclosebutton*/
|
|
5301
|
-
g[3] === Ie.true ?
|
|
5324
|
+
g[3] === Ie.true ? Y ? Y.p(g, B) : (Y = Yn(g), Y.c(), Y.m(t, n)) : Y && (Y.d(1), Y = null), /*showtotalbalance*/
|
|
5302
5325
|
g[2] === Ie.true ? F ? (F.p(g, B), B[0] & /*showtotalbalance*/
|
|
5303
5326
|
4 && $(F, 1)) : (F = Jn(g), F.c(), $(F, 1), F.m(r, null)) : F && (Re(), z(F, 1, 1, () => {
|
|
5304
5327
|
F = null;
|
|
5305
|
-
}), Oe()), (!
|
|
5328
|
+
}), Oe()), (!ne || B[0] & /*session, isBalanceFetched, isCurrenciesFetched*/
|
|
5306
5329
|
196609 && m !== (m = !/*session*/
|
|
5307
5330
|
g[0] || !/*isBalanceFetched*/
|
|
5308
5331
|
g[16] || !/*isCurrenciesFetched*/
|
|
@@ -5313,21 +5336,21 @@ function ga(e) {
|
|
|
5313
5336
|
/*inputExchangeFrom*/
|
|
5314
5337
|
g[8]
|
|
5315
5338
|
);
|
|
5316
|
-
const
|
|
5339
|
+
const q = {};
|
|
5317
5340
|
B[0] & /*showcurrencysymbol*/
|
|
5318
|
-
16 && (
|
|
5341
|
+
16 && (q.withSymbol = /*showcurrencysymbol*/
|
|
5319
5342
|
g[4]), B[0] & /*isBalanceFetched, isCurrenciesFetched*/
|
|
5320
|
-
196608 && (
|
|
5343
|
+
196608 && (q.disabled = !/*isBalanceFetched*/
|
|
5321
5344
|
g[16] || !/*isCurrenciesFetched*/
|
|
5322
5345
|
g[17]), B[0] & /*optionsFrom*/
|
|
5323
|
-
1048576 && (
|
|
5346
|
+
1048576 && (q.options = /*optionsFrom*/
|
|
5324
5347
|
g[20]), !E && B[0] & /*selectedCurrencyFrom*/
|
|
5325
|
-
32 && (E = !0,
|
|
5326
|
-
g[5], Tn(() => E = !1)), d.$set(
|
|
5348
|
+
32 && (E = !0, q.selected = /*selectedCurrencyFrom*/
|
|
5349
|
+
g[5], Tn(() => E = !1)), d.$set(q);
|
|
5327
5350
|
let Ve = R;
|
|
5328
|
-
R = at(g), R === Ve ?
|
|
5329
|
-
|
|
5330
|
-
}), Oe(), y =
|
|
5351
|
+
R = at(g), R === Ve ? pe[R].p(g, B) : (Re(), z(pe[Ve], 1, 1, () => {
|
|
5352
|
+
pe[Ve] = null;
|
|
5353
|
+
}), Oe(), y = pe[R], y ? y.p(g, B) : (y = pe[R] = bt[R](g), y.c()), $(y, 1), y.m(l, null)), (!ne || B[0] & /*session, isBalanceFetched, isCurrenciesFetched*/
|
|
5331
5354
|
196609 && ce !== (ce = !/*session*/
|
|
5332
5355
|
g[0] || !/*isBalanceFetched*/
|
|
5333
5356
|
g[16] || !/*isCurrenciesFetched*/
|
|
@@ -5348,68 +5371,68 @@ function ga(e) {
|
|
|
5348
5371
|
g[16] || !/*isCurrenciesFetched*/
|
|
5349
5372
|
g[17]), B[0] & /*optionsTo*/
|
|
5350
5373
|
2097152 && (T.options = /*optionsTo*/
|
|
5351
|
-
g[21]), !
|
|
5352
|
-
64 && (
|
|
5353
|
-
g[6], Tn(() =>
|
|
5354
|
-
let
|
|
5355
|
-
|
|
5356
|
-
|
|
5357
|
-
}), Oe(),
|
|
5358
|
-
g[1] === Ie.true ? p ? p.p(g, B) : (p = er(g), p.c(), p.m(t, nt)) : p && (p.d(1), p = null), I === (I = w(g)) && x ? x.p(g, B) : (x.d(1), x = I(g), x && (x.c(), x.m(ke, null))), (!
|
|
5359
|
-
4096) && ye !== (ye =
|
|
5374
|
+
g[21]), !he && B[0] & /*selectedCurrencyTo*/
|
|
5375
|
+
64 && (he = !0, T.selected = /*selectedCurrencyTo*/
|
|
5376
|
+
g[6], Tn(() => he = !1)), se.$set(T);
|
|
5377
|
+
let xe = Q;
|
|
5378
|
+
Q = Et(g), Q === xe ? de[Q].p(g, B) : (Re(), z(de[xe], 1, 1, () => {
|
|
5379
|
+
de[xe] = null;
|
|
5380
|
+
}), Oe(), ee = de[Q], ee ? ee.p(g, B) : (ee = de[Q] = vt[Q](g), ee.c()), $(ee, 1), ee.m(M, null)), /*showvaults*/
|
|
5381
|
+
g[1] === Ie.true ? p ? p.p(g, B) : (p = er(g), p.c(), p.m(t, nt)) : p && (p.d(1), p = null), I === (I = w(g)) && x ? x.p(g, B) : (x.d(1), x = I(g), x && (x.c(), x.m(ke, null))), (!ne || B[0] & /*fetchResponse*/
|
|
5382
|
+
4096) && ye !== (ye = k(
|
|
5360
5383
|
/*fetchResponse*/
|
|
5361
|
-
((
|
|
5362
|
-
) + "") && (
|
|
5384
|
+
((Se = g[12]) == null ? void 0 : Se.message) || ""
|
|
5385
|
+
) + "") && (ae.innerHTML = ye), (!ne || B[0] & /*fetchResponse*/
|
|
5363
5386
|
4096) && ue(
|
|
5364
|
-
|
|
5387
|
+
ae,
|
|
5365
5388
|
"error",
|
|
5366
5389
|
/*fetchResponse*/
|
|
5367
5390
|
((En = g[12]) == null ? void 0 : En.type) === "error"
|
|
5368
|
-
), (!
|
|
5391
|
+
), (!ne || B[0] & /*fetchResponse*/
|
|
5369
5392
|
4096) && ue(
|
|
5370
|
-
|
|
5393
|
+
ae,
|
|
5371
5394
|
"success",
|
|
5372
5395
|
/*fetchResponse*/
|
|
5373
5396
|
((_n = g[12]) == null ? void 0 : _n.type) === "success"
|
|
5374
|
-
), (!
|
|
5375
|
-
278816 &&
|
|
5397
|
+
), (!ne || B[0] & /*isExchangeDisabled, isExchangePending, inputExchangeFrom, selectedCurrencyFrom*/
|
|
5398
|
+
278816 && _e !== (_e = /*isExchangeDisabled*/
|
|
5376
5399
|
g[14] || /*isExchangePending*/
|
|
5377
5400
|
g[18] || /*inputExchangeFrom*/
|
|
5378
5401
|
g[8] === 0 && !/*selectedCurrencyFrom*/
|
|
5379
|
-
((xn = g[5]) != null && xn.amount))) && (
|
|
5402
|
+
((xn = g[5]) != null && xn.amount))) && (te.disabled = _e), (!ne || B[0] & /*isExchangeDisabled, isExchangePending*/
|
|
5380
5403
|
278528) && ue(
|
|
5381
|
-
|
|
5404
|
+
te,
|
|
5382
5405
|
"disabled",
|
|
5383
5406
|
/*isExchangeDisabled*/
|
|
5384
5407
|
g[14] || /*isExchangePending*/
|
|
5385
5408
|
g[18]
|
|
5386
|
-
), (!
|
|
5409
|
+
), (!ne || B[0] & /*isExchangePending*/
|
|
5387
5410
|
262144) && ue(
|
|
5388
|
-
|
|
5411
|
+
te,
|
|
5389
5412
|
"pending",
|
|
5390
5413
|
/*isExchangePending*/
|
|
5391
5414
|
g[18]
|
|
5392
5415
|
);
|
|
5393
5416
|
},
|
|
5394
5417
|
i(g) {
|
|
5395
|
-
|
|
5418
|
+
ne || ($(F), $(d.$$.fragment, g), $(y), $(se.$$.fragment, g), $(ee), ne = !0);
|
|
5396
5419
|
},
|
|
5397
5420
|
o(g) {
|
|
5398
|
-
z(F), z(d.$$.fragment, g), z(y), z(se.$$.fragment, g), z(
|
|
5421
|
+
z(F), z(d.$$.fragment, g), z(y), z(se.$$.fragment, g), z(ee), ne = !1;
|
|
5399
5422
|
},
|
|
5400
5423
|
d(g) {
|
|
5401
|
-
g && S(t),
|
|
5424
|
+
g && S(t), Y && Y.d(), F && F.d(), Ze(d), pe[R].d(), Ze(se), de[Q].d(), p && p.d(), x.d(), e[42](null), it = !1, we(ot);
|
|
5402
5425
|
}
|
|
5403
5426
|
};
|
|
5404
5427
|
}
|
|
5405
|
-
function
|
|
5406
|
-
let { session: r = "" } = t, { userid: i = "" } = t, { endpoint: o = "" } = t, { lang: a = "en" } = t, { clientstyling: s = "" } = t, { clientstylingurl: l = "" } = t, { translationurl: c = "" } = t, { playercurrency: u = "" } = t, { showvaults: f = "true" } = t, { showtotalbalance: h = "true" } = t, { showclosebutton: m = "true" } = t, { showcurrencysymbol: _ = "true" } = t, d = null, E = null, C = 0, R = 0, y = 0, D = null,
|
|
5428
|
+
function va(e, t, n) {
|
|
5429
|
+
let { session: r = "" } = t, { userid: i = "" } = t, { endpoint: o = "" } = t, { lang: a = "en" } = t, { clientstyling: s = "" } = t, { clientstylingurl: l = "" } = t, { translationurl: c = "" } = t, { playercurrency: u = "" } = t, { showvaults: f = "true" } = t, { showtotalbalance: h = "true" } = t, { showclosebutton: m = "true" } = t, { showcurrencysymbol: _ = "true" } = t, d = null, E = null, C = 0, R = 0, y = 0, D = null, M = null, X = null, ge = "", oe = !0, W = !1, ce = !1, be = !1, se = !1, he = [], Ae = [], Q = [], ee = [], fe;
|
|
5407
5430
|
Go({ withLocale: "en", translations: {} }), Object.keys(Gn).forEach((p) => {
|
|
5408
5431
|
Fn(p, Gn[p]);
|
|
5409
5432
|
});
|
|
5410
5433
|
const nt = () => {
|
|
5411
5434
|
$o(a);
|
|
5412
|
-
},
|
|
5435
|
+
}, Ce = () => {
|
|
5413
5436
|
fetch(c).then((p) => p.json()).then((p) => {
|
|
5414
5437
|
Object.keys(p).forEach((w) => {
|
|
5415
5438
|
Fn(w, p[w]);
|
|
@@ -5419,19 +5442,19 @@ function ba(e, t, n) {
|
|
|
5419
5442
|
});
|
|
5420
5443
|
}, Me = () => {
|
|
5421
5444
|
let p = document.createElement("style");
|
|
5422
|
-
p.innerHTML = s,
|
|
5445
|
+
p.innerHTML = s, fe.appendChild(p);
|
|
5423
5446
|
}, dt = () => {
|
|
5424
5447
|
let p, w = new URL(l), I = document.createElement("style");
|
|
5425
5448
|
fetch(w.href).then((x) => x.text()).then((x) => {
|
|
5426
5449
|
I.innerHTML = x, p && clearTimeout(p), p = setTimeout(
|
|
5427
5450
|
() => {
|
|
5428
|
-
|
|
5451
|
+
fe.appendChild(I);
|
|
5429
5452
|
},
|
|
5430
5453
|
1
|
|
5431
5454
|
);
|
|
5432
5455
|
});
|
|
5433
5456
|
}, ke = () => {
|
|
5434
|
-
|
|
5457
|
+
Ae.length !== 0 && (n(15, W = !W), window.postMessage(
|
|
5435
5458
|
{
|
|
5436
5459
|
type: Yt.VaultDropdownToggled,
|
|
5437
5460
|
state: W
|
|
@@ -5445,28 +5468,28 @@ function ba(e, t, n) {
|
|
|
5445
5468
|
},
|
|
5446
5469
|
window.location.href
|
|
5447
5470
|
);
|
|
5448
|
-
},
|
|
5449
|
-
n(14,
|
|
5471
|
+
}, ae = () => {
|
|
5472
|
+
n(14, oe = !0), Te(), ve(), Ee(), Ue(), window.postMessage({ type: Yt.VaultWidgetReset }, window.location.href);
|
|
5450
5473
|
}, ye = () => {
|
|
5451
|
-
n(14,
|
|
5452
|
-
},
|
|
5453
|
-
n(11,
|
|
5474
|
+
n(14, oe = !0), n(9, y = 0);
|
|
5475
|
+
}, Te = () => {
|
|
5476
|
+
n(11, M = null);
|
|
5454
5477
|
}, ve = () => {
|
|
5455
5478
|
n(8, C = 0), n(9, y = 0);
|
|
5456
5479
|
}, Ee = () => {
|
|
5457
|
-
n(13,
|
|
5480
|
+
n(13, ge = "");
|
|
5458
5481
|
}, Ue = () => {
|
|
5459
5482
|
n(12, X = null);
|
|
5460
|
-
},
|
|
5461
|
-
p && n(13,
|
|
5462
|
-
},
|
|
5483
|
+
}, te = (p) => {
|
|
5484
|
+
p && n(13, ge = p);
|
|
5485
|
+
}, Be = ({ type: p, message: w, source: I = "" }) => {
|
|
5463
5486
|
let x;
|
|
5464
5487
|
switch (n(12, X = { message: w, source: I, type: p }), p) {
|
|
5465
|
-
case
|
|
5466
|
-
n(14,
|
|
5488
|
+
case He.error:
|
|
5489
|
+
n(14, oe = !0), window.postMessage({ type: I, data: { type: p, message: w } }, window.location.href);
|
|
5467
5490
|
break;
|
|
5468
|
-
case
|
|
5469
|
-
n(14,
|
|
5491
|
+
case He.success:
|
|
5492
|
+
n(14, oe = !0), window.postMessage({ type: I, data: { type: p, message: w } }, window.location.href), x && clearTimeout(x), x = setTimeout(
|
|
5470
5493
|
() => {
|
|
5471
5494
|
Ue();
|
|
5472
5495
|
},
|
|
@@ -5476,16 +5499,16 @@ function ba(e, t, n) {
|
|
|
5476
5499
|
}
|
|
5477
5500
|
}, mt = () => new Promise((p, w) => {
|
|
5478
5501
|
const I = X == null ? void 0 : X.message.includes(Wo.InvalidSession);
|
|
5479
|
-
I && w(), isNaN(Number(C)) && (ye(),
|
|
5480
|
-
}),
|
|
5502
|
+
I && w(), isNaN(Number(C)) && (ye(), Te(), w(k("invalidValue"))), C > (d == null ? void 0 : d.amount) && (ye(), Te(), w(k("exceededValue"))), C === null && !I && (ye(), Te(), w()), C === 0 && C === 0 && !I && (ae(), w()), (!d || !E) && !I && w(), Ee(), p();
|
|
5503
|
+
}), _e = (p, w) => jt(this, null, function* () {
|
|
5481
5504
|
var x, j;
|
|
5482
5505
|
const I = yield p.json();
|
|
5483
|
-
return (p == null ? void 0 : p.status) >= 200 && (p == null ? void 0 : p.status) < 400 ? I : (w ===
|
|
5484
|
-
type:
|
|
5485
|
-
message:
|
|
5506
|
+
return (p == null ? void 0 : p.status) >= 200 && (p == null ? void 0 : p.status) < 400 ? I : (w === K.CheckWalletExchangeError && ye(), !ce && w === K.BalanceError && (n(16, ce = !0), n(17, be = !0)), !be && w === K.CurrenciesError && n(17, be = !0), Be({
|
|
5507
|
+
type: He.error,
|
|
5508
|
+
message: k((x = I == null ? void 0 : I.thirdPartyResponse) == null ? void 0 : x.code) || k((j = I == null ? void 0 : I.thirdPartyResponse) == null ? void 0 : j.errorCode) || "generalError",
|
|
5486
5509
|
source: w
|
|
5487
5510
|
}));
|
|
5488
|
-
}),
|
|
5511
|
+
}), ne = () => new Promise((p, w) => {
|
|
5489
5512
|
const I = new URL(`${o}/v1/player/${i}/wallet-exchange/currencies`);
|
|
5490
5513
|
fetch(I, {
|
|
5491
5514
|
method: "GET",
|
|
@@ -5494,31 +5517,31 @@ function ba(e, t, n) {
|
|
|
5494
5517
|
"Content-Type": "application/json",
|
|
5495
5518
|
Accept: "application/json"
|
|
5496
5519
|
}
|
|
5497
|
-
}).then((j) =>
|
|
5520
|
+
}).then((j) => _e(j, K.CurrenciesError)).then((j) => {
|
|
5498
5521
|
p(j == null ? void 0 : j.currencies);
|
|
5499
5522
|
}).catch((j) => {
|
|
5500
|
-
n(17,
|
|
5501
|
-
type:
|
|
5502
|
-
message:
|
|
5503
|
-
source:
|
|
5523
|
+
n(17, be = !0), console.error("There was an error on the allowed currencies request.", j), Be({
|
|
5524
|
+
type: He.error,
|
|
5525
|
+
message: k("generalError"),
|
|
5526
|
+
source: K.CurrenciesError
|
|
5504
5527
|
}), w();
|
|
5505
5528
|
}).finally(() => {
|
|
5506
|
-
n(17,
|
|
5529
|
+
n(17, be = !0);
|
|
5507
5530
|
});
|
|
5508
5531
|
}), it = ({ data: p, shouldUpdateSelectedCurrencies: w, allowed: I = [] }) => {
|
|
5509
5532
|
var Ve;
|
|
5510
5533
|
const { items: x = [], totalAmount: j = {}, totalRealAmount: g } = p || {};
|
|
5511
|
-
n(10, D = Object.entries(g || j).map(([T = "",
|
|
5534
|
+
n(10, D = Object.entries(g || j).map(([T = "", xe = 0]) => ({ currency: T, amount: xe }))[0]);
|
|
5512
5535
|
let B = null;
|
|
5513
|
-
const
|
|
5536
|
+
const q = new Map(I.map((T) => [T.code, T]));
|
|
5514
5537
|
for (const T of x)
|
|
5515
5538
|
if ((T == null ? void 0 : T.type) === jn.Real) {
|
|
5516
|
-
const
|
|
5517
|
-
if (
|
|
5518
|
-
const
|
|
5539
|
+
const xe = q.get(T == null ? void 0 : T.currency);
|
|
5540
|
+
if (xe && xe.code === (T == null ? void 0 : T.currency)) {
|
|
5541
|
+
const Se = $t(Fe(Fe({}, T), xe), {
|
|
5519
5542
|
symbol: (Ve = jo[T == null ? void 0 : T.currency]) == null ? void 0 : Ve[0]
|
|
5520
5543
|
});
|
|
5521
|
-
n(37,
|
|
5544
|
+
n(37, he = [...he, Se]), (T == null ? void 0 : T.currency) === (D == null ? void 0 : D.currency) && n(10, D = Fe(Fe({}, D), Se)), (T == null ? void 0 : T.currency) !== (D == null ? void 0 : D.currency) && (T == null ? void 0 : T.walletAccountType) === jn.Vault && n(19, Ae = [...Ae, Se]), w && (T == null ? void 0 : T.amount) > 0 && n(5, d = D != null && D.currency ? D : B), d && (d == null ? void 0 : d.currency) === (T == null ? void 0 : T.currency) && n(5, d = Se), E && (E == null ? void 0 : E.currency) === (T == null ? void 0 : T.currency) && n(6, E = Se);
|
|
5522
5545
|
}
|
|
5523
5546
|
}
|
|
5524
5547
|
}, ot = (p = !0) => {
|
|
@@ -5530,24 +5553,24 @@ function ba(e, t, n) {
|
|
|
5530
5553
|
"Content-Type": "application/json",
|
|
5531
5554
|
Accept: "application/json"
|
|
5532
5555
|
}
|
|
5533
|
-
}).then((x) =>
|
|
5534
|
-
x &&
|
|
5535
|
-
n(37,
|
|
5556
|
+
}).then((x) => _e(x, K.BalanceError)).then((x) => {
|
|
5557
|
+
x && ne().then((j) => {
|
|
5558
|
+
n(37, he = []), n(19, Ae = []), it({
|
|
5536
5559
|
data: x,
|
|
5537
5560
|
shouldUpdateSelectedCurrencies: p,
|
|
5538
5561
|
allowed: j
|
|
5539
5562
|
});
|
|
5540
5563
|
});
|
|
5541
5564
|
}).catch((x) => {
|
|
5542
|
-
n(16, ce = !0), console.error("There was an error with the player balance request.", x),
|
|
5543
|
-
type:
|
|
5544
|
-
message:
|
|
5545
|
-
source:
|
|
5565
|
+
n(16, ce = !0), console.error("There was an error with the player balance request.", x), Be({
|
|
5566
|
+
type: He.error,
|
|
5567
|
+
message: k("generalError"),
|
|
5568
|
+
source: K.BalanceError
|
|
5546
5569
|
});
|
|
5547
5570
|
}).finally(() => {
|
|
5548
5571
|
n(16, ce = !0);
|
|
5549
5572
|
});
|
|
5550
|
-
}, F =
|
|
5573
|
+
}, F = Zo(() => {
|
|
5551
5574
|
mt().then(() => {
|
|
5552
5575
|
const p = new URL(`${o}/v2/player/${i}/check/wallet-exchange`), w = {
|
|
5553
5576
|
userId: i,
|
|
@@ -5565,18 +5588,24 @@ function ba(e, t, n) {
|
|
|
5565
5588
|
},
|
|
5566
5589
|
body: Wn(w)
|
|
5567
5590
|
};
|
|
5568
|
-
fetch(p, I).then((x) =>
|
|
5591
|
+
fetch(p, I).then((x) => _e(x, K.CheckWalletExchangeError)).then((x) => {
|
|
5569
5592
|
var j, g;
|
|
5570
|
-
|
|
5593
|
+
if (x) {
|
|
5594
|
+
if ((X == null ? void 0 : X.source) === K.CheckWalletExchangeError && Ue(), Array.isArray((j = x == null ? void 0 : x.fees) == null ? void 0 : j.fees) && n(11, M = x.fees), Array.isArray(x == null ? void 0 : x.walletActions)) {
|
|
5595
|
+
const B = ((g = x.walletActions.find((q) => (q == null ? void 0 : q.directionName) === zo.Credit)) == null ? void 0 : g.amount) || 0;
|
|
5596
|
+
n(9, y = Ko(B));
|
|
5597
|
+
}
|
|
5598
|
+
C > 0 && y > 0 && (d != null && d.currency) && (E != null && E.currency) && u && n(14, oe = !1);
|
|
5599
|
+
}
|
|
5571
5600
|
}).catch((x) => {
|
|
5572
|
-
|
|
5573
|
-
type:
|
|
5574
|
-
message:
|
|
5575
|
-
source:
|
|
5601
|
+
Be({
|
|
5602
|
+
type: He.error,
|
|
5603
|
+
message: k("generalError"),
|
|
5604
|
+
source: K.CheckWalletExchangeError
|
|
5576
5605
|
}), console.error("There was a problem with the wallet exchange request.", x);
|
|
5577
5606
|
});
|
|
5578
5607
|
}).catch((p) => {
|
|
5579
|
-
|
|
5608
|
+
te(p);
|
|
5580
5609
|
});
|
|
5581
5610
|
}, 500), Vt = (p) => {
|
|
5582
5611
|
const w = p.target.value, [I, x] = w.split(".");
|
|
@@ -5586,11 +5615,11 @@ function ba(e, t, n) {
|
|
|
5586
5615
|
[">", "<", ","].includes(w) && p.preventDefault(), w && !w.match(/[\d.]/) && p.preventDefault(), w === "." && p.target.value.includes(".") && p.preventDefault();
|
|
5587
5616
|
}, bt = () => {
|
|
5588
5617
|
C === 0 && n(8, C = null);
|
|
5589
|
-
},
|
|
5618
|
+
}, pe = () => {
|
|
5590
5619
|
const p = new URL(`${o}/v2/player/${i}/wallet-exchange`);
|
|
5591
5620
|
n(18, se = !0);
|
|
5592
5621
|
const w = {
|
|
5593
|
-
feeDetails:
|
|
5622
|
+
feeDetails: M,
|
|
5594
5623
|
userId: i,
|
|
5595
5624
|
amount: C,
|
|
5596
5625
|
currency: d == null ? void 0 : d.currency,
|
|
@@ -5606,26 +5635,26 @@ function ba(e, t, n) {
|
|
|
5606
5635
|
},
|
|
5607
5636
|
body: Wn(w)
|
|
5608
5637
|
};
|
|
5609
|
-
fetch(p, I).then((x) =>
|
|
5610
|
-
x && (
|
|
5611
|
-
type:
|
|
5612
|
-
message:
|
|
5638
|
+
fetch(p, I).then((x) => _e(x, K.WalletExchangeError)).then((x) => {
|
|
5639
|
+
x && (Be({
|
|
5640
|
+
type: He.success,
|
|
5641
|
+
message: k("exchangeSuccess"),
|
|
5613
5642
|
source: "ExchangeSuccess"
|
|
5614
5643
|
}), ot(!1));
|
|
5615
5644
|
}).catch((x) => {
|
|
5616
|
-
|
|
5617
|
-
type:
|
|
5618
|
-
message:
|
|
5619
|
-
source:
|
|
5645
|
+
Be({
|
|
5646
|
+
type: He.error,
|
|
5647
|
+
message: k("generalError"),
|
|
5648
|
+
source: K.WalletExchangeError
|
|
5620
5649
|
}), console.error("There was an error with the wallet exchange request.", x);
|
|
5621
5650
|
}).finally(() => {
|
|
5622
|
-
n(18, se = !1), ve(),
|
|
5651
|
+
n(18, se = !1), ve(), Te();
|
|
5623
5652
|
});
|
|
5624
5653
|
}, at = (p) => {
|
|
5625
5654
|
const { data: { type: w } = {} } = p || {};
|
|
5626
5655
|
switch (w) {
|
|
5627
5656
|
case $n.ResetVaultWidget:
|
|
5628
|
-
|
|
5657
|
+
ae();
|
|
5629
5658
|
break;
|
|
5630
5659
|
case $n.CloseVaultWidget:
|
|
5631
5660
|
rt();
|
|
@@ -5644,12 +5673,12 @@ function ba(e, t, n) {
|
|
|
5644
5673
|
function vt() {
|
|
5645
5674
|
y = St(this.value), n(9, y);
|
|
5646
5675
|
}
|
|
5647
|
-
function
|
|
5676
|
+
function de(p) {
|
|
5648
5677
|
E = p, n(6, E);
|
|
5649
5678
|
}
|
|
5650
5679
|
function Et(p) {
|
|
5651
5680
|
We[p ? "unshift" : "push"](() => {
|
|
5652
|
-
|
|
5681
|
+
fe = p, n(7, fe);
|
|
5653
5682
|
});
|
|
5654
5683
|
}
|
|
5655
5684
|
return e.$$set = (p) => {
|
|
@@ -5658,22 +5687,16 @@ function ba(e, t, n) {
|
|
|
5658
5687
|
e.$$.dirty[1] & /*lang*/
|
|
5659
5688
|
2 && a && nt(), e.$$.dirty[0] & /*customStylingContainer*/
|
|
5660
5689
|
128 | e.$$.dirty[1] & /*clientstyling*/
|
|
5661
|
-
4 && s &&
|
|
5690
|
+
4 && s && fe && Me(), e.$$.dirty[0] & /*customStylingContainer*/
|
|
5662
5691
|
128 | e.$$.dirty[1] & /*clientstylingurl*/
|
|
5663
|
-
8 && l &&
|
|
5664
|
-
16 && c &&
|
|
5692
|
+
8 && l && fe && dt(), e.$$.dirty[1] & /*translationurl*/
|
|
5693
|
+
16 && c && Ce(), e.$$.dirty[0] & /*session, userid*/
|
|
5665
5694
|
1073741825 | e.$$.dirty[1] & /*endpoint, playercurrency*/
|
|
5666
|
-
33 && r && i && o && u && ot(), e.$$.dirty[0] & /*
|
|
5667
|
-
1073741825 | e.$$.dirty[1] & /*endpoint, playercurrency*/
|
|
5668
|
-
33 && (!r || !i || !o || !u) && (n(16, ce = !0), n(17, he = !0), _e({
|
|
5669
|
-
type: Ae.error,
|
|
5670
|
-
message: M("generalError"),
|
|
5671
|
-
source: q.BalanceError
|
|
5672
|
-
})), e.$$.dirty[0] & /*selectedCurrencyTo*/
|
|
5695
|
+
33 && r && i && o && u && ot(), e.$$.dirty[0] & /*selectedCurrencyTo*/
|
|
5673
5696
|
64 | e.$$.dirty[1] & /*filteredBalances*/
|
|
5674
|
-
64 && n(20,
|
|
5697
|
+
64 && n(20, Q = he.filter((p) => (p == null ? void 0 : p.amount) > 0 && (p == null ? void 0 : p.currency) !== (E == null ? void 0 : E.currency))), e.$$.dirty[0] & /*selectedCurrencyFrom*/
|
|
5675
5698
|
32 | e.$$.dirty[1] & /*filteredBalances*/
|
|
5676
|
-
64 && n(21,
|
|
5699
|
+
64 && n(21, ee = he.filter((p) => (d == null ? void 0 : d.currency) !== (p == null ? void 0 : p.currency)));
|
|
5677
5700
|
}, [
|
|
5678
5701
|
r,
|
|
5679
5702
|
f,
|
|
@@ -5682,29 +5705,29 @@ function ba(e, t, n) {
|
|
|
5682
5705
|
_,
|
|
5683
5706
|
d,
|
|
5684
5707
|
E,
|
|
5685
|
-
|
|
5708
|
+
fe,
|
|
5686
5709
|
C,
|
|
5687
5710
|
y,
|
|
5688
5711
|
D,
|
|
5689
|
-
|
|
5712
|
+
M,
|
|
5690
5713
|
X,
|
|
5691
|
-
|
|
5692
|
-
|
|
5714
|
+
ge,
|
|
5715
|
+
oe,
|
|
5693
5716
|
W,
|
|
5694
5717
|
ce,
|
|
5695
|
-
|
|
5718
|
+
be,
|
|
5696
5719
|
se,
|
|
5697
|
-
|
|
5698
|
-
|
|
5699
|
-
|
|
5720
|
+
Ae,
|
|
5721
|
+
Q,
|
|
5722
|
+
ee,
|
|
5700
5723
|
ke,
|
|
5701
5724
|
rt,
|
|
5702
|
-
|
|
5725
|
+
ae,
|
|
5703
5726
|
F,
|
|
5704
5727
|
Vt,
|
|
5705
5728
|
gt,
|
|
5706
5729
|
bt,
|
|
5707
|
-
|
|
5730
|
+
pe,
|
|
5708
5731
|
i,
|
|
5709
5732
|
o,
|
|
5710
5733
|
a,
|
|
@@ -5712,21 +5735,21 @@ function ba(e, t, n) {
|
|
|
5712
5735
|
l,
|
|
5713
5736
|
c,
|
|
5714
5737
|
u,
|
|
5715
|
-
|
|
5738
|
+
he,
|
|
5716
5739
|
Ft,
|
|
5717
5740
|
yt,
|
|
5718
5741
|
vt,
|
|
5719
|
-
|
|
5742
|
+
de,
|
|
5720
5743
|
Et
|
|
5721
5744
|
];
|
|
5722
5745
|
}
|
|
5723
|
-
class
|
|
5746
|
+
class Ea extends bn {
|
|
5724
5747
|
constructor(t) {
|
|
5725
5748
|
super(), mn(
|
|
5726
5749
|
this,
|
|
5727
5750
|
t,
|
|
5728
|
-
|
|
5729
|
-
|
|
5751
|
+
va,
|
|
5752
|
+
ya,
|
|
5730
5753
|
Nt,
|
|
5731
5754
|
{
|
|
5732
5755
|
session: 0,
|
|
@@ -5742,7 +5765,7 @@ class ya extends bn {
|
|
|
5742
5765
|
showclosebutton: 3,
|
|
5743
5766
|
showcurrencysymbol: 4
|
|
5744
5767
|
},
|
|
5745
|
-
|
|
5768
|
+
ra,
|
|
5746
5769
|
[-1, -1, -1]
|
|
5747
5770
|
);
|
|
5748
5771
|
}
|
|
@@ -5819,7 +5842,7 @@ class ya extends bn {
|
|
|
5819
5842
|
this.$$set({ showcurrencysymbol: t }), G();
|
|
5820
5843
|
}
|
|
5821
5844
|
}
|
|
5822
|
-
gn(
|
|
5845
|
+
gn(Ea, { session: {}, userid: {}, endpoint: {}, lang: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {}, playercurrency: {}, showvaults: {}, showtotalbalance: {}, showclosebutton: {}, showcurrencysymbol: {} }, [], [], !0);
|
|
5823
5846
|
export {
|
|
5824
|
-
|
|
5847
|
+
Ea as default
|
|
5825
5848
|
};
|