@everymatrix/casino-header-controller 1.45.2 → 1.45.3
Sign up to get free protection for your applications and to get access to all the features.
- package/components/{CasinoHamburgerMenu-Bf5T77Ny.cjs → CasinoHamburgerMenu-B0MV4RSB.cjs} +5 -5
- package/components/{CasinoHamburgerMenu-BNVeOJMg.js → CasinoHamburgerMenu-BLnwex5I.js} +88 -88
- package/components/{CasinoHeaderController-BZWtNlWs.js → CasinoHeaderController-DXkH7S0F.js} +5 -5
- package/components/{CasinoHeaderController-DmDDQCWH.cjs → CasinoHeaderController-ZXDtahtb.cjs} +1 -1
- package/components/{CasinoSlider-CR8-l30P.js → CasinoSlider-C4IgBaEw.js} +1 -1
- package/components/{CasinoSlider-Lbt4Xcus.cjs → CasinoSlider-Cnzis9s1.cjs} +1 -1
- package/components/PlayerAccountBalanceModal-BOZKv1_0.cjs +17 -0
- package/components/PlayerAccountBalanceModal-DSQ6pw_2.js +1412 -0
- package/components/{PlayerDeposit-Bjair_ez.js → PlayerDeposit-BF-HVwV0.js} +1 -1
- package/components/{PlayerDeposit-BuxjgZ7D.cjs → PlayerDeposit-DvSu-Mhc.cjs} +1 -1
- package/es2015/casino-header-controller.cjs +1 -1
- package/es2015/casino-header-controller.js +1 -1
- package/package.json +1 -1
- package/components/PlayerAccountBalanceModal-CJTxCTO4.js +0 -1406
- package/components/PlayerAccountBalanceModal-z-8Le6l-.cjs +0 -13
@@ -0,0 +1,1412 @@
|
|
1
|
+
var ht = Object.defineProperty, mt = Object.defineProperties;
|
2
|
+
var vt = Object.getOwnPropertyDescriptors;
|
3
|
+
var Ye = Object.getOwnPropertySymbols;
|
4
|
+
var gt = Object.prototype.hasOwnProperty, yt = Object.prototype.propertyIsEnumerable;
|
5
|
+
var Ze = (a, e, n) => e in a ? ht(a, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : a[e] = n, $e = (a, e) => {
|
6
|
+
for (var n in e || (e = {}))
|
7
|
+
gt.call(e, n) && Ze(a, n, e[n]);
|
8
|
+
if (Ye)
|
9
|
+
for (var n of Ye(e))
|
10
|
+
yt.call(e, n) && Ze(a, n, e[n]);
|
11
|
+
return a;
|
12
|
+
}, et = (a, e) => mt(a, vt(e));
|
13
|
+
var tt = (a, e, n) => new Promise((o, l) => {
|
14
|
+
var d = (T) => {
|
15
|
+
try {
|
16
|
+
p(n.next(T));
|
17
|
+
} catch (g) {
|
18
|
+
l(g);
|
19
|
+
}
|
20
|
+
}, w = (T) => {
|
21
|
+
try {
|
22
|
+
p(n.throw(T));
|
23
|
+
} catch (g) {
|
24
|
+
l(g);
|
25
|
+
}
|
26
|
+
}, p = (T) => T.done ? o(T.value) : Promise.resolve(T.value).then(d, w);
|
27
|
+
p((n = n.apply(a, e)).next());
|
28
|
+
});
|
29
|
+
import { b as wt, $ as Tt, M as bt, S as Bt, i as St, f as J, c as Ct, s as _t, d as Rt, e as z, x as ve, g as oe, h as U, m as Me, l as E, y as je, z as ge, n as Ke, o as Fe, p as Et, q as At, w as ze, A as dt, B as xt, u as Dt, F as Mt } from "./CasinoHamburgerMenu-BLnwex5I.js";
|
30
|
+
function nt(a, e) {
|
31
|
+
wt(a, e);
|
32
|
+
}
|
33
|
+
function Ft(a) {
|
34
|
+
Tt.set(a);
|
35
|
+
}
|
36
|
+
const at = {
|
37
|
+
en: {
|
38
|
+
Title: "Your Balance",
|
39
|
+
Total: "Total Balance",
|
40
|
+
Real: "Cash Balance",
|
41
|
+
Bonus: "Bonus Balance",
|
42
|
+
Credit: "Credit Balance",
|
43
|
+
Casino: "Casino",
|
44
|
+
Sports: "Sports",
|
45
|
+
DepositButton: "Deposit"
|
46
|
+
},
|
47
|
+
"zh-hk": {
|
48
|
+
Title: "您的結餘",
|
49
|
+
Total: "總結餘",
|
50
|
+
Real: "現金結餘",
|
51
|
+
Bonus: "紅利結餘",
|
52
|
+
Credit: "信用結餘",
|
53
|
+
Casino: "賭場",
|
54
|
+
Sports: "體育",
|
55
|
+
DepositButton: "存款"
|
56
|
+
},
|
57
|
+
de: {
|
58
|
+
Title: "Ihr Guthaben",
|
59
|
+
Total: "Gesamtguthaben",
|
60
|
+
Real: "Barguthaben",
|
61
|
+
Bonus: "Bonusguthaben",
|
62
|
+
Credit: "Kreditguthaben",
|
63
|
+
Casino: "Casino",
|
64
|
+
Sports: "Sport",
|
65
|
+
DepositButton: "Einzahlen"
|
66
|
+
},
|
67
|
+
it: {
|
68
|
+
Title: "Il tuo saldo",
|
69
|
+
Total: "Saldo totale",
|
70
|
+
Real: "Saldo in contanti",
|
71
|
+
Bonus: "Saldo bonus",
|
72
|
+
Credit: "Saldo di credito",
|
73
|
+
Casino: "Casinò",
|
74
|
+
Sports: "Sport",
|
75
|
+
DepositButton: "Deposita"
|
76
|
+
},
|
77
|
+
fr: {
|
78
|
+
Title: "Votre solde",
|
79
|
+
Total: "Solde total",
|
80
|
+
Real: "Solde en espèces",
|
81
|
+
Bonus: "Solde bonus",
|
82
|
+
Credit: "Solde de crédit",
|
83
|
+
Casino: "Casino",
|
84
|
+
Sports: "Sports",
|
85
|
+
DepositButton: "Dépôt"
|
86
|
+
},
|
87
|
+
es: {
|
88
|
+
Title: "Tu saldo",
|
89
|
+
Total: "Saldo total",
|
90
|
+
Real: "Saldo en efectivo",
|
91
|
+
Bonus: "Saldo de bono",
|
92
|
+
Credit: "Saldo de crédito",
|
93
|
+
Casino: "Casino",
|
94
|
+
Sports: "Deportes",
|
95
|
+
DepositButton: "Depósito"
|
96
|
+
},
|
97
|
+
tr: {
|
98
|
+
Title: "Bakiyeniz",
|
99
|
+
Total: "Toplam Bakiye",
|
100
|
+
Real: "Nakit Bakiye",
|
101
|
+
Bonus: "Bonus Bakiyesi",
|
102
|
+
Credit: "Kredi Bakiyesi",
|
103
|
+
Casino: "Kumarhane",
|
104
|
+
Sports: "Spor",
|
105
|
+
DepositButton: "Yatır"
|
106
|
+
},
|
107
|
+
ru: {
|
108
|
+
Title: "Ваш баланс",
|
109
|
+
Total: "Общий баланс",
|
110
|
+
Real: "Денежный баланс",
|
111
|
+
Bonus: "Бонусный баланс",
|
112
|
+
Credit: "Кредитный баланс",
|
113
|
+
Casino: "Казино",
|
114
|
+
Sports: "Спорт",
|
115
|
+
DepositButton: "Депозит"
|
116
|
+
},
|
117
|
+
ro: {
|
118
|
+
Title: "Soldul tău",
|
119
|
+
Total: "Sold total",
|
120
|
+
Real: "Sold în numerar",
|
121
|
+
Bonus: "Sold bonus",
|
122
|
+
Credit: "Sold credit",
|
123
|
+
Casino: "Cazinou",
|
124
|
+
Sports: "Sporturi",
|
125
|
+
DepositButton: "Depozit"
|
126
|
+
},
|
127
|
+
hr: {
|
128
|
+
Title: "Vaš saldo",
|
129
|
+
Total: "Ukupni saldo",
|
130
|
+
Real: "Gotovinski saldo",
|
131
|
+
Bonus: "Bonus saldo",
|
132
|
+
Credit: "Kreditni saldo",
|
133
|
+
Casino: "Casino",
|
134
|
+
Sports: "Sportovi",
|
135
|
+
DepositButton: "Depozit"
|
136
|
+
},
|
137
|
+
hu: {
|
138
|
+
Title: "Az egyenleged",
|
139
|
+
Total: "Teljes egyenleg",
|
140
|
+
Real: "Készpénz egyenleg",
|
141
|
+
Bonus: "Bónusz egyenleg",
|
142
|
+
Credit: "Hitel egyenleg",
|
143
|
+
Casino: "Kaszinó",
|
144
|
+
Sports: "Sport",
|
145
|
+
DepositButton: "Befizetés"
|
146
|
+
},
|
147
|
+
pl: {
|
148
|
+
Title: "Twoje saldo",
|
149
|
+
Total: "Całkowite saldo",
|
150
|
+
Real: "Saldo gotówkowe",
|
151
|
+
Bonus: "Saldo bonusowe",
|
152
|
+
Credit: "Saldo kredytowe",
|
153
|
+
Casino: "Kasyno",
|
154
|
+
Sports: "Sport",
|
155
|
+
DepositButton: "Wpłać"
|
156
|
+
},
|
157
|
+
pt: {
|
158
|
+
Title: "Seu Saldo",
|
159
|
+
Total: "Saldo Total",
|
160
|
+
Real: "Saldo em Dinheiro",
|
161
|
+
Bonus: "Saldo de Bônus",
|
162
|
+
Credit: "Saldo de Crédito",
|
163
|
+
Casino: "Cassino",
|
164
|
+
Sports: "Esportes",
|
165
|
+
DepositButton: "Depositar"
|
166
|
+
},
|
167
|
+
sl: {
|
168
|
+
Title: "Vaš saldo",
|
169
|
+
Total: "Skupni saldo",
|
170
|
+
Real: "Gotovinski saldo",
|
171
|
+
Bonus: "Bonus saldo",
|
172
|
+
Credit: "Kreditni saldo",
|
173
|
+
Casino: "Kasino",
|
174
|
+
Sports: "Šport",
|
175
|
+
DepositButton: "Depozit"
|
176
|
+
},
|
177
|
+
sr: {
|
178
|
+
Title: "Vaš saldo",
|
179
|
+
Total: "Ukupan saldo",
|
180
|
+
Real: "Gotovinski saldo",
|
181
|
+
Bonus: "Bonus saldo",
|
182
|
+
Credit: "Kreditni saldo",
|
183
|
+
Casino: "Kasino",
|
184
|
+
Sports: "Sport",
|
185
|
+
DepositButton: "Depozit"
|
186
|
+
},
|
187
|
+
"pt-br": {
|
188
|
+
Title: "Seu Saldo",
|
189
|
+
Total: "Saldo Total",
|
190
|
+
Real: "Saldo em Dinheiro",
|
191
|
+
Bonus: "Saldo de Bônus",
|
192
|
+
Credit: "Saldo de Crédito",
|
193
|
+
Casino: "Cassino",
|
194
|
+
Sports: "Esportes",
|
195
|
+
DepositButton: "Depositar"
|
196
|
+
},
|
197
|
+
"es-mx": {
|
198
|
+
Title: "Tu saldo",
|
199
|
+
Total: "Saldo total",
|
200
|
+
Real: "Saldo en efectivo",
|
201
|
+
Bonus: "Saldo de bono",
|
202
|
+
Credit: "Saldo de crédito",
|
203
|
+
Casino: "Casino",
|
204
|
+
Sports: "Deportes",
|
205
|
+
DepositButton: "Depósito"
|
206
|
+
}
|
207
|
+
};
|
208
|
+
var We = { exports: {} };
|
209
|
+
/** @license
|
210
|
+
* eventsource.js
|
211
|
+
* Available under MIT License (MIT)
|
212
|
+
* https://github.com/Yaffle/EventSource/
|
213
|
+
*/
|
214
|
+
(function(a, e) {
|
215
|
+
(function(n) {
|
216
|
+
var o = n.setTimeout, l = n.clearTimeout, d = n.XMLHttpRequest, w = n.XDomainRequest, p = n.ActiveXObject, T = n.EventSource, g = n.document, M = n.Promise, I = n.fetch, O = n.Response, N = n.TextDecoder, B = n.TextEncoder, A = n.AbortController;
|
217
|
+
if (typeof window != "undefined" && typeof g != "undefined" && !("readyState" in g) && g.body == null && (g.readyState = "loading", window.addEventListener("load", function(t) {
|
218
|
+
g.readyState = "complete";
|
219
|
+
}, !1)), d == null && p != null && (d = function() {
|
220
|
+
return new p("Microsoft.XMLHTTP");
|
221
|
+
}), Object.create == null && (Object.create = function(t) {
|
222
|
+
function s() {
|
223
|
+
}
|
224
|
+
return s.prototype = t, new s();
|
225
|
+
}), Date.now || (Date.now = function() {
|
226
|
+
return (/* @__PURE__ */ new Date()).getTime();
|
227
|
+
}), A == null) {
|
228
|
+
var y = I;
|
229
|
+
I = function(t, s) {
|
230
|
+
var c = s.signal;
|
231
|
+
return y(t, { headers: s.headers, credentials: s.credentials, cache: s.cache }).then(function(r) {
|
232
|
+
var u = r.body.getReader();
|
233
|
+
return c._reader = u, c._aborted && c._reader.cancel(), {
|
234
|
+
status: r.status,
|
235
|
+
statusText: r.statusText,
|
236
|
+
headers: r.headers,
|
237
|
+
body: {
|
238
|
+
getReader: function() {
|
239
|
+
return u;
|
240
|
+
}
|
241
|
+
}
|
242
|
+
};
|
243
|
+
});
|
244
|
+
}, A = function() {
|
245
|
+
this.signal = {
|
246
|
+
_reader: null,
|
247
|
+
_aborted: !1
|
248
|
+
}, this.abort = function() {
|
249
|
+
this.signal._reader != null && this.signal._reader.cancel(), this.signal._aborted = !0;
|
250
|
+
};
|
251
|
+
};
|
252
|
+
}
|
253
|
+
function k() {
|
254
|
+
this.bitsNeeded = 0, this.codePoint = 0;
|
255
|
+
}
|
256
|
+
k.prototype.decode = function(t) {
|
257
|
+
function s(x, L, m) {
|
258
|
+
if (m === 1)
|
259
|
+
return x >= 128 >> L && x << L <= 2047;
|
260
|
+
if (m === 2)
|
261
|
+
return x >= 2048 >> L && x << L <= 55295 || x >= 57344 >> L && x << L <= 65535;
|
262
|
+
if (m === 3)
|
263
|
+
return x >= 65536 >> L && x << L <= 1114111;
|
264
|
+
throw new Error();
|
265
|
+
}
|
266
|
+
function c(x, L) {
|
267
|
+
if (x === 6 * 1)
|
268
|
+
return L >> 6 > 15 ? 3 : L > 31 ? 2 : 1;
|
269
|
+
if (x === 6 * 2)
|
270
|
+
return L > 15 ? 3 : 2;
|
271
|
+
if (x === 6 * 3)
|
272
|
+
return 3;
|
273
|
+
throw new Error();
|
274
|
+
}
|
275
|
+
for (var r = 65533, u = "", f = this.bitsNeeded, S = this.codePoint, V = 0; V < t.length; V += 1) {
|
276
|
+
var _ = t[V];
|
277
|
+
f !== 0 && (_ < 128 || _ > 191 || !s(S << 6 | _ & 63, f - 6, c(f, S))) && (f = 0, S = r, u += String.fromCharCode(S)), f === 0 ? (_ >= 0 && _ <= 127 ? (f = 0, S = _) : _ >= 192 && _ <= 223 ? (f = 6 * 1, S = _ & 31) : _ >= 224 && _ <= 239 ? (f = 6 * 2, S = _ & 15) : _ >= 240 && _ <= 247 ? (f = 6 * 3, S = _ & 7) : (f = 0, S = r), f !== 0 && !s(S, f, c(f, S)) && (f = 0, S = r)) : (f -= 6, S = S << 6 | _ & 63), f === 0 && (S <= 65535 ? u += String.fromCharCode(S) : (u += String.fromCharCode(55296 + (S - 65535 - 1 >> 10)), u += String.fromCharCode(56320 + (S - 65535 - 1 & 1023))));
|
278
|
+
}
|
279
|
+
return this.bitsNeeded = f, this.codePoint = S, u;
|
280
|
+
};
|
281
|
+
var te = function() {
|
282
|
+
try {
|
283
|
+
return new N().decode(new B().encode("test"), { stream: !0 }) === "test";
|
284
|
+
} catch (t) {
|
285
|
+
console.debug("TextDecoder does not support streaming option. Using polyfill instead: " + t);
|
286
|
+
}
|
287
|
+
return !1;
|
288
|
+
};
|
289
|
+
(N == null || B == null || !te()) && (N = k);
|
290
|
+
var C = function() {
|
291
|
+
};
|
292
|
+
function R(t) {
|
293
|
+
this.withCredentials = !1, this.readyState = 0, this.status = 0, this.statusText = "", this.responseText = "", this.onprogress = C, this.onload = C, this.onerror = C, this.onreadystatechange = C, this._contentType = "", this._xhr = t, this._sendTimeout = 0, this._abort = C;
|
294
|
+
}
|
295
|
+
R.prototype.open = function(t, s) {
|
296
|
+
this._abort(!0);
|
297
|
+
var c = this, r = this._xhr, u = 1, f = 0;
|
298
|
+
this._abort = function(m) {
|
299
|
+
c._sendTimeout !== 0 && (l(c._sendTimeout), c._sendTimeout = 0), (u === 1 || u === 2 || u === 3) && (u = 4, r.onload = C, r.onerror = C, r.onabort = C, r.onprogress = C, r.onreadystatechange = C, r.abort(), f !== 0 && (l(f), f = 0), m || (c.readyState = 4, c.onabort(null), c.onreadystatechange())), u = 0;
|
300
|
+
};
|
301
|
+
var S = function() {
|
302
|
+
if (u === 1) {
|
303
|
+
var m = 0, H = "", de = void 0;
|
304
|
+
if ("contentType" in r)
|
305
|
+
m = 200, H = "OK", de = r.contentType;
|
306
|
+
else
|
307
|
+
try {
|
308
|
+
m = r.status, H = r.statusText, de = r.getResponseHeader("Content-Type");
|
309
|
+
} catch (xe) {
|
310
|
+
m = 0, H = "", de = void 0;
|
311
|
+
}
|
312
|
+
m !== 0 && (u = 2, c.readyState = 2, c.status = m, c.statusText = H, c._contentType = de, c.onreadystatechange());
|
313
|
+
}
|
314
|
+
}, V = function() {
|
315
|
+
if (S(), u === 2 || u === 3) {
|
316
|
+
u = 3;
|
317
|
+
var m = "";
|
318
|
+
try {
|
319
|
+
m = r.responseText;
|
320
|
+
} catch (H) {
|
321
|
+
}
|
322
|
+
c.readyState = 3, c.responseText = m, c.onprogress();
|
323
|
+
}
|
324
|
+
}, _ = function(m, H) {
|
325
|
+
if ((H == null || H.preventDefault == null) && (H = {
|
326
|
+
preventDefault: C
|
327
|
+
}), V(), u === 1 || u === 2 || u === 3) {
|
328
|
+
if (u = 4, f !== 0 && (l(f), f = 0), c.readyState = 4, m === "load")
|
329
|
+
c.onload(H);
|
330
|
+
else if (m === "error")
|
331
|
+
c.onerror(H);
|
332
|
+
else if (m === "abort")
|
333
|
+
c.onabort(H);
|
334
|
+
else
|
335
|
+
throw new TypeError();
|
336
|
+
c.onreadystatechange();
|
337
|
+
}
|
338
|
+
}, x = function(m) {
|
339
|
+
r != null && (r.readyState === 4 ? (!("onload" in r) || !("onerror" in r) || !("onabort" in r)) && _(r.responseText === "" ? "error" : "load", m) : r.readyState === 3 ? "onprogress" in r || V() : r.readyState === 2 && S());
|
340
|
+
}, L = function() {
|
341
|
+
f = o(function() {
|
342
|
+
L();
|
343
|
+
}, 500), r.readyState === 3 && V();
|
344
|
+
};
|
345
|
+
"onload" in r && (r.onload = function(m) {
|
346
|
+
_("load", m);
|
347
|
+
}), "onerror" in r && (r.onerror = function(m) {
|
348
|
+
_("error", m);
|
349
|
+
}), "onabort" in r && (r.onabort = function(m) {
|
350
|
+
_("abort", m);
|
351
|
+
}), "onprogress" in r && (r.onprogress = V), "onreadystatechange" in r && (r.onreadystatechange = function(m) {
|
352
|
+
x(m);
|
353
|
+
}), ("contentType" in r || !("ontimeout" in d.prototype)) && (s += (s.indexOf("?") === -1 ? "?" : "&") + "padding=true"), r.open(t, s, !0), "readyState" in r && (f = o(function() {
|
354
|
+
L();
|
355
|
+
}, 0));
|
356
|
+
}, R.prototype.abort = function() {
|
357
|
+
this._abort(!1);
|
358
|
+
}, R.prototype.getResponseHeader = function(t) {
|
359
|
+
return this._contentType;
|
360
|
+
}, R.prototype.setRequestHeader = function(t, s) {
|
361
|
+
var c = this._xhr;
|
362
|
+
"setRequestHeader" in c && c.setRequestHeader(t, s);
|
363
|
+
}, R.prototype.getAllResponseHeaders = function() {
|
364
|
+
return this._xhr.getAllResponseHeaders != null && this._xhr.getAllResponseHeaders() || "";
|
365
|
+
}, R.prototype.send = function() {
|
366
|
+
if ((!("ontimeout" in d.prototype) || !("sendAsBinary" in d.prototype) && !("mozAnon" in d.prototype)) && g != null && g.readyState != null && g.readyState !== "complete") {
|
367
|
+
var t = this;
|
368
|
+
t._sendTimeout = o(function() {
|
369
|
+
t._sendTimeout = 0, t.send();
|
370
|
+
}, 4);
|
371
|
+
return;
|
372
|
+
}
|
373
|
+
var s = this._xhr;
|
374
|
+
"withCredentials" in s && (s.withCredentials = this.withCredentials);
|
375
|
+
try {
|
376
|
+
s.send(void 0);
|
377
|
+
} catch (c) {
|
378
|
+
throw c;
|
379
|
+
}
|
380
|
+
};
|
381
|
+
function P(t) {
|
382
|
+
return t.replace(/[A-Z]/g, function(s) {
|
383
|
+
return String.fromCharCode(s.charCodeAt(0) + 32);
|
384
|
+
});
|
385
|
+
}
|
386
|
+
function F(t) {
|
387
|
+
for (var s = /* @__PURE__ */ Object.create(null), c = t.split(`\r
|
388
|
+
`), r = 0; r < c.length; r += 1) {
|
389
|
+
var u = c[r], f = u.split(": "), S = f.shift(), V = f.join(": ");
|
390
|
+
s[P(S)] = V;
|
391
|
+
}
|
392
|
+
this._map = s;
|
393
|
+
}
|
394
|
+
F.prototype.get = function(t) {
|
395
|
+
return this._map[P(t)];
|
396
|
+
}, d != null && d.HEADERS_RECEIVED == null && (d.HEADERS_RECEIVED = 2);
|
397
|
+
function ie() {
|
398
|
+
}
|
399
|
+
ie.prototype.open = function(t, s, c, r, u, f, S) {
|
400
|
+
t.open("GET", u);
|
401
|
+
var V = 0;
|
402
|
+
t.onprogress = function() {
|
403
|
+
var x = t.responseText, L = x.slice(V);
|
404
|
+
V += L.length, c(L);
|
405
|
+
}, t.onerror = function(x) {
|
406
|
+
x.preventDefault(), r(new Error("NetworkError"));
|
407
|
+
}, t.onload = function() {
|
408
|
+
r(null);
|
409
|
+
}, t.onabort = function() {
|
410
|
+
r(null);
|
411
|
+
}, t.onreadystatechange = function() {
|
412
|
+
if (t.readyState === d.HEADERS_RECEIVED) {
|
413
|
+
var x = t.status, L = t.statusText, m = t.getResponseHeader("Content-Type"), H = t.getAllResponseHeaders();
|
414
|
+
s(x, L, m, new F(H));
|
415
|
+
}
|
416
|
+
}, t.withCredentials = f;
|
417
|
+
for (var _ in S)
|
418
|
+
Object.prototype.hasOwnProperty.call(S, _) && t.setRequestHeader(_, S[_]);
|
419
|
+
return t.send(), t;
|
420
|
+
};
|
421
|
+
function se(t) {
|
422
|
+
this._headers = t;
|
423
|
+
}
|
424
|
+
se.prototype.get = function(t) {
|
425
|
+
return this._headers.get(t);
|
426
|
+
};
|
427
|
+
function h() {
|
428
|
+
}
|
429
|
+
h.prototype.open = function(t, s, c, r, u, f, S) {
|
430
|
+
var V = null, _ = new A(), x = _.signal, L = new N();
|
431
|
+
return I(u, {
|
432
|
+
headers: S,
|
433
|
+
credentials: f ? "include" : "same-origin",
|
434
|
+
signal: x,
|
435
|
+
cache: "no-store"
|
436
|
+
}).then(function(m) {
|
437
|
+
return V = m.body.getReader(), s(m.status, m.statusText, m.headers.get("Content-Type"), new se(m.headers)), new M(function(H, de) {
|
438
|
+
var xe = function() {
|
439
|
+
V.read().then(function(Y) {
|
440
|
+
if (Y.done)
|
441
|
+
H(void 0);
|
442
|
+
else {
|
443
|
+
var q = L.decode(Y.value, { stream: !0 });
|
444
|
+
c(q), xe();
|
445
|
+
}
|
446
|
+
}).catch(function(Y) {
|
447
|
+
de(Y);
|
448
|
+
});
|
449
|
+
};
|
450
|
+
xe();
|
451
|
+
});
|
452
|
+
}).catch(function(m) {
|
453
|
+
if (m.name !== "AbortError")
|
454
|
+
return m;
|
455
|
+
}).then(function(m) {
|
456
|
+
r(m);
|
457
|
+
}), {
|
458
|
+
abort: function() {
|
459
|
+
V != null && V.cancel(), _.abort();
|
460
|
+
}
|
461
|
+
};
|
462
|
+
};
|
463
|
+
function le() {
|
464
|
+
this._listeners = /* @__PURE__ */ Object.create(null);
|
465
|
+
}
|
466
|
+
function Le(t) {
|
467
|
+
o(function() {
|
468
|
+
throw t;
|
469
|
+
}, 0);
|
470
|
+
}
|
471
|
+
le.prototype.dispatchEvent = function(t) {
|
472
|
+
t.target = this;
|
473
|
+
var s = this._listeners[t.type];
|
474
|
+
if (s != null)
|
475
|
+
for (var c = s.length, r = 0; r < c; r += 1) {
|
476
|
+
var u = s[r];
|
477
|
+
try {
|
478
|
+
typeof u.handleEvent == "function" ? u.handleEvent(t) : u.call(this, t);
|
479
|
+
} catch (f) {
|
480
|
+
Le(f);
|
481
|
+
}
|
482
|
+
}
|
483
|
+
}, le.prototype.addEventListener = function(t, s) {
|
484
|
+
t = String(t);
|
485
|
+
var c = this._listeners, r = c[t];
|
486
|
+
r == null && (r = [], c[t] = r);
|
487
|
+
for (var u = !1, f = 0; f < r.length; f += 1)
|
488
|
+
r[f] === s && (u = !0);
|
489
|
+
u || r.push(s);
|
490
|
+
}, le.prototype.removeEventListener = function(t, s) {
|
491
|
+
t = String(t);
|
492
|
+
var c = this._listeners, r = c[t];
|
493
|
+
if (r != null) {
|
494
|
+
for (var u = [], f = 0; f < r.length; f += 1)
|
495
|
+
r[f] !== s && u.push(r[f]);
|
496
|
+
u.length === 0 ? delete c[t] : c[t] = u;
|
497
|
+
}
|
498
|
+
};
|
499
|
+
function he(t) {
|
500
|
+
this.type = t, this.target = void 0;
|
501
|
+
}
|
502
|
+
function Be(t, s) {
|
503
|
+
he.call(this, t), this.data = s.data, this.lastEventId = s.lastEventId;
|
504
|
+
}
|
505
|
+
Be.prototype = Object.create(he.prototype);
|
506
|
+
function Se(t, s) {
|
507
|
+
he.call(this, t), this.status = s.status, this.statusText = s.statusText, this.headers = s.headers;
|
508
|
+
}
|
509
|
+
Se.prototype = Object.create(he.prototype);
|
510
|
+
function Oe(t, s) {
|
511
|
+
he.call(this, t), this.error = s.error;
|
512
|
+
}
|
513
|
+
Oe.prototype = Object.create(he.prototype);
|
514
|
+
var Ce = -1, ee = 0, ce = 1, ye = 2, _e = -1, ne = 0, Re = 1, ke = 2, Ie = 3, Ue = /^text\/event\-stream(;.*)?$/i, Pe = 1e3, Ge = 18e6, Ee = function(t, s) {
|
515
|
+
var c = t == null ? s : parseInt(t, 10);
|
516
|
+
return c !== c && (c = s), Ae(c);
|
517
|
+
}, Ae = function(t) {
|
518
|
+
return Math.min(Math.max(t, Pe), Ge);
|
519
|
+
}, me = function(t, s, c) {
|
520
|
+
try {
|
521
|
+
typeof s == "function" && s.call(t, c);
|
522
|
+
} catch (r) {
|
523
|
+
Le(r);
|
524
|
+
}
|
525
|
+
};
|
526
|
+
function Q(t, s) {
|
527
|
+
le.call(this), s = s || {}, this.onopen = void 0, this.onmessage = void 0, this.onerror = void 0, this.url = void 0, this.readyState = void 0, this.withCredentials = void 0, this.headers = void 0, this._close = void 0, v(this, t, s);
|
528
|
+
}
|
529
|
+
function i() {
|
530
|
+
return d != null && "withCredentials" in d.prototype || w == null ? new d() : new w();
|
531
|
+
}
|
532
|
+
var b = I != null && O != null && "body" in O.prototype;
|
533
|
+
function v(t, s, c) {
|
534
|
+
s = String(s);
|
535
|
+
var r = !!c.withCredentials, u = c.lastEventIdQueryParameterName || "lastEventId", f = Ae(1e3), S = Ee(c.heartbeatTimeout, 45e3), V = "", _ = f, x = !1, L = 0, m = c.headers || {}, H = c.Transport, de = b && H == null ? void 0 : new R(H != null ? new H() : i()), xe = H != null && typeof H != "string" ? new H() : de == null ? new h() : new ie(), Y = void 0, q = 0, ae = Ce, Te = "", Ne = "", ue = "", Ve = "", K = ne, Xe = 0, we = 0, ft = function(G, j, Z, $) {
|
536
|
+
if (ae === ee)
|
537
|
+
if (G === 200 && Z != null && Ue.test(Z)) {
|
538
|
+
ae = ce, x = Date.now(), _ = f, t.readyState = ce;
|
539
|
+
var W = new Se("open", {
|
540
|
+
status: G,
|
541
|
+
statusText: j,
|
542
|
+
headers: $
|
543
|
+
});
|
544
|
+
t.dispatchEvent(W), me(t, t.onopen, W);
|
545
|
+
} else {
|
546
|
+
var X = "";
|
547
|
+
G !== 200 ? (j && (j = j.replace(/\s+/g, " ")), X = "EventSource's response has a status " + G + " " + j + " that is not 200. Aborting the connection.") : X = "EventSource's response has a Content-Type specifying an unsupported type: " + (Z == null ? "-" : Z.replace(/\s+/g, " ")) + ". Aborting the connection.", qe();
|
548
|
+
var W = new Se("error", {
|
549
|
+
status: G,
|
550
|
+
statusText: j,
|
551
|
+
headers: $
|
552
|
+
});
|
553
|
+
t.dispatchEvent(W), me(t, t.onerror, W), console.error(X);
|
554
|
+
}
|
555
|
+
}, pt = function(G) {
|
556
|
+
if (ae === ce) {
|
557
|
+
for (var j = -1, Z = 0; Z < G.length; Z += 1) {
|
558
|
+
var $ = G.charCodeAt(Z);
|
559
|
+
($ === 10 || $ === 13) && (j = Z);
|
560
|
+
}
|
561
|
+
var W = (j !== -1 ? Ve : "") + G.slice(0, j + 1);
|
562
|
+
Ve = (j === -1 ? Ve : "") + G.slice(j + 1), G !== "" && (x = Date.now(), L += G.length);
|
563
|
+
for (var X = 0; X < W.length; X += 1) {
|
564
|
+
var $ = W.charCodeAt(X);
|
565
|
+
if (K === _e && $ === 10)
|
566
|
+
K = ne;
|
567
|
+
else if (K === _e && (K = ne), $ === 13 || $ === 10) {
|
568
|
+
if (K !== ne) {
|
569
|
+
K === Re && (we = X + 1);
|
570
|
+
var fe = W.slice(Xe, we - 1), pe = W.slice(we + (we < X && W.charCodeAt(we) === 32 ? 1 : 0), X);
|
571
|
+
fe === "data" ? (Te += `
|
572
|
+
`, Te += pe) : fe === "id" ? Ne = pe : fe === "event" ? ue = pe : fe === "retry" ? (f = Ee(pe, f), _ = f) : fe === "heartbeatTimeout" && (S = Ee(pe, S), q !== 0 && (l(q), q = o(function() {
|
573
|
+
De();
|
574
|
+
}, S)));
|
575
|
+
}
|
576
|
+
if (K === ne) {
|
577
|
+
if (Te !== "") {
|
578
|
+
V = Ne, ue === "" && (ue = "message");
|
579
|
+
var be = new Be(ue, {
|
580
|
+
data: Te.slice(1),
|
581
|
+
lastEventId: Ne
|
582
|
+
});
|
583
|
+
if (t.dispatchEvent(be), ue === "open" ? me(t, t.onopen, be) : ue === "message" ? me(t, t.onmessage, be) : ue === "error" && me(t, t.onerror, be), ae === ye)
|
584
|
+
return;
|
585
|
+
}
|
586
|
+
Te = "", ue = "";
|
587
|
+
}
|
588
|
+
K = $ === 13 ? _e : ne;
|
589
|
+
} else
|
590
|
+
K === ne && (Xe = X, K = Re), K === Re ? $ === 58 && (we = X + 1, K = ke) : K === ke && (K = Ie);
|
591
|
+
}
|
592
|
+
}
|
593
|
+
}, Qe = function(G) {
|
594
|
+
if (ae === ce || ae === ee) {
|
595
|
+
ae = Ce, q !== 0 && (l(q), q = 0), q = o(function() {
|
596
|
+
De();
|
597
|
+
}, _), _ = Ae(Math.min(f * 16, _ * 2)), t.readyState = ee;
|
598
|
+
var j = new Oe("error", { error: G });
|
599
|
+
t.dispatchEvent(j), me(t, t.onerror, j), G != null && console.error(G);
|
600
|
+
}
|
601
|
+
}, qe = function() {
|
602
|
+
ae = ye, Y != null && (Y.abort(), Y = void 0), q !== 0 && (l(q), q = 0), t.readyState = ye;
|
603
|
+
}, De = function() {
|
604
|
+
if (q = 0, ae !== Ce) {
|
605
|
+
if (!x && Y != null)
|
606
|
+
Qe(new Error("No activity within " + S + " milliseconds. " + (ae === ee ? "No response received." : L + " chars received.") + " Reconnecting.")), Y != null && (Y.abort(), Y = void 0);
|
607
|
+
else {
|
608
|
+
var G = Math.max((x || Date.now()) + S - Date.now(), 1);
|
609
|
+
x = !1, q = o(function() {
|
610
|
+
De();
|
611
|
+
}, G);
|
612
|
+
}
|
613
|
+
return;
|
614
|
+
}
|
615
|
+
x = !1, L = 0, q = o(function() {
|
616
|
+
De();
|
617
|
+
}, S), ae = ee, Te = "", ue = "", Ne = V, Ve = "", Xe = 0, we = 0, K = ne;
|
618
|
+
var j = s;
|
619
|
+
if (s.slice(0, 5) !== "data:" && s.slice(0, 5) !== "blob:" && V !== "") {
|
620
|
+
var Z = s.indexOf("?");
|
621
|
+
j = Z === -1 ? s : s.slice(0, Z + 1) + s.slice(Z + 1).replace(/(?:^|&)([^=&]*)(?:=[^&]*)?/g, function(pe, be) {
|
622
|
+
return be === u ? "" : pe;
|
623
|
+
}), j += (s.indexOf("?") === -1 ? "?" : "&") + u + "=" + encodeURIComponent(V);
|
624
|
+
}
|
625
|
+
var $ = t.withCredentials, W = {};
|
626
|
+
W.Accept = "text/event-stream";
|
627
|
+
var X = t.headers;
|
628
|
+
if (X != null)
|
629
|
+
for (var fe in X)
|
630
|
+
Object.prototype.hasOwnProperty.call(X, fe) && (W[fe] = X[fe]);
|
631
|
+
try {
|
632
|
+
Y = xe.open(de, ft, pt, Qe, j, $, W);
|
633
|
+
} catch (pe) {
|
634
|
+
throw qe(), pe;
|
635
|
+
}
|
636
|
+
};
|
637
|
+
t.url = s, t.readyState = ee, t.withCredentials = r, t.headers = m, t._close = qe, De();
|
638
|
+
}
|
639
|
+
Q.prototype = Object.create(le.prototype), Q.prototype.CONNECTING = ee, Q.prototype.OPEN = ce, Q.prototype.CLOSED = ye, Q.prototype.close = function() {
|
640
|
+
this._close();
|
641
|
+
}, Q.CONNECTING = ee, Q.OPEN = ce, Q.CLOSED = ye, Q.prototype.withCredentials = void 0;
|
642
|
+
var D = T;
|
643
|
+
d != null && (T == null || !("withCredentials" in T.prototype)) && (D = Q), function(t) {
|
644
|
+
{
|
645
|
+
var s = t(e);
|
646
|
+
s !== void 0 && (a.exports = s);
|
647
|
+
}
|
648
|
+
}(function(t) {
|
649
|
+
t.EventSourcePolyfill = Q, t.NativeEventSource = T, t.EventSource = D;
|
650
|
+
});
|
651
|
+
})(typeof globalThis == "undefined" ? typeof window != "undefined" ? window : typeof self != "undefined" ? self : bt : globalThis);
|
652
|
+
})(We, We.exports);
|
653
|
+
var Lt = We.exports;
|
654
|
+
/*!
|
655
|
+
* currency.js - v2.0.4
|
656
|
+
* http://scurker.github.io/currency.js
|
657
|
+
*
|
658
|
+
* Copyright (c) 2021 Jason Wilson
|
659
|
+
* Released under MIT license
|
660
|
+
*/
|
661
|
+
var Ot = {
|
662
|
+
symbol: "$",
|
663
|
+
separator: ",",
|
664
|
+
decimal: ".",
|
665
|
+
errorOnInvalid: !1,
|
666
|
+
precision: 2,
|
667
|
+
pattern: "!#",
|
668
|
+
negativePattern: "-!#",
|
669
|
+
format: Vt,
|
670
|
+
fromCents: !1
|
671
|
+
}, ut = function(e) {
|
672
|
+
return Math.round(e);
|
673
|
+
}, Je = function(e) {
|
674
|
+
return Math.pow(10, e);
|
675
|
+
}, kt = function(e, n) {
|
676
|
+
return ut(e / n) * n;
|
677
|
+
}, It = /(\d)(?=(\d{3})+\b)/g, Nt = /(\d)(?=(\d\d)+\d\b)/g;
|
678
|
+
function re(a, e) {
|
679
|
+
var n = this;
|
680
|
+
if (!(n instanceof re))
|
681
|
+
return new re(a, e);
|
682
|
+
var o = Object.assign({}, Ot, e), l = Je(o.precision), d = He(a, o);
|
683
|
+
n.intValue = d, n.value = d / l, o.increment = o.increment || 1 / l, o.useVedic ? o.groups = Nt : o.groups = It, this.s = o, this.p = l;
|
684
|
+
}
|
685
|
+
function He(a, e) {
|
686
|
+
var n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : !0, o = 0, l = e.decimal, d = e.errorOnInvalid, w = e.precision, p = e.fromCents, T = Je(w), g = typeof a == "number", M = a instanceof re;
|
687
|
+
if (M && p)
|
688
|
+
return a.intValue;
|
689
|
+
if (g || M)
|
690
|
+
o = M ? a.value : a;
|
691
|
+
else if (typeof a == "string") {
|
692
|
+
var I = new RegExp("[^-\\d" + l + "]", "g"), O = new RegExp("\\" + l, "g");
|
693
|
+
o = a.replace(/\((.*)\)/, "-$1").replace(I, "").replace(O, "."), o = o || 0;
|
694
|
+
} else {
|
695
|
+
if (d)
|
696
|
+
throw Error("Invalid Input");
|
697
|
+
o = 0;
|
698
|
+
}
|
699
|
+
return p || (o *= T, o = o.toFixed(4)), n ? ut(o) : o;
|
700
|
+
}
|
701
|
+
function Vt(a, e) {
|
702
|
+
var n = e.pattern, o = e.negativePattern, l = e.symbol, d = e.separator, w = e.decimal, p = e.groups, T = ("" + a).replace(/^-/, "").split("."), g = T[0], M = T[1];
|
703
|
+
return (a.value >= 0 ? n : o).replace("!", l).replace("#", g.replace(p, "$1" + d) + (M ? w + M : ""));
|
704
|
+
}
|
705
|
+
re.prototype = {
|
706
|
+
/**
|
707
|
+
* Adds values together.
|
708
|
+
* @param {number} number
|
709
|
+
* @returns {currency}
|
710
|
+
*/
|
711
|
+
add: function(e) {
|
712
|
+
var n = this.intValue, o = this.s, l = this.p;
|
713
|
+
return re((n += He(e, o)) / (o.fromCents ? 1 : l), o);
|
714
|
+
},
|
715
|
+
/**
|
716
|
+
* Subtracts value.
|
717
|
+
* @param {number} number
|
718
|
+
* @returns {currency}
|
719
|
+
*/
|
720
|
+
subtract: function(e) {
|
721
|
+
var n = this.intValue, o = this.s, l = this.p;
|
722
|
+
return re((n -= He(e, o)) / (o.fromCents ? 1 : l), o);
|
723
|
+
},
|
724
|
+
/**
|
725
|
+
* Multiplies values.
|
726
|
+
* @param {number} number
|
727
|
+
* @returns {currency}
|
728
|
+
*/
|
729
|
+
multiply: function(e) {
|
730
|
+
var n = this.intValue, o = this.s;
|
731
|
+
return re((n *= e) / (o.fromCents ? 1 : Je(o.precision)), o);
|
732
|
+
},
|
733
|
+
/**
|
734
|
+
* Divides value.
|
735
|
+
* @param {number} number
|
736
|
+
* @returns {currency}
|
737
|
+
*/
|
738
|
+
divide: function(e) {
|
739
|
+
var n = this.intValue, o = this.s;
|
740
|
+
return re(n /= He(e, o, !1), o);
|
741
|
+
},
|
742
|
+
/**
|
743
|
+
* Takes the currency amount and distributes the values evenly. Any extra pennies
|
744
|
+
* left over from the distribution will be stacked onto the first set of entries.
|
745
|
+
* @param {number} count
|
746
|
+
* @returns {array}
|
747
|
+
*/
|
748
|
+
distribute: function(e) {
|
749
|
+
for (var n = this.intValue, o = this.p, l = this.s, d = [], w = Math[n >= 0 ? "floor" : "ceil"](n / e), p = Math.abs(n - w * e), T = l.fromCents ? 1 : o; e !== 0; e--) {
|
750
|
+
var g = re(w / T, l);
|
751
|
+
p-- > 0 && (g = g[n >= 0 ? "add" : "subtract"](1 / T)), d.push(g);
|
752
|
+
}
|
753
|
+
return d;
|
754
|
+
},
|
755
|
+
/**
|
756
|
+
* Returns the dollar value.
|
757
|
+
* @returns {number}
|
758
|
+
*/
|
759
|
+
dollars: function() {
|
760
|
+
return ~~this.value;
|
761
|
+
},
|
762
|
+
/**
|
763
|
+
* Returns the cent value.
|
764
|
+
* @returns {number}
|
765
|
+
*/
|
766
|
+
cents: function() {
|
767
|
+
var e = this.intValue, n = this.p;
|
768
|
+
return ~~(e % n);
|
769
|
+
},
|
770
|
+
/**
|
771
|
+
* Formats the value as a string according to the formatting settings.
|
772
|
+
* @param {boolean} useSymbol - format with currency symbol
|
773
|
+
* @returns {string}
|
774
|
+
*/
|
775
|
+
format: function(e) {
|
776
|
+
var n = this.s;
|
777
|
+
return typeof e == "function" ? e(this, n) : n.format(this, Object.assign({}, n, e));
|
778
|
+
},
|
779
|
+
/**
|
780
|
+
* Formats the value as a string according to the formatting settings.
|
781
|
+
* @returns {string}
|
782
|
+
*/
|
783
|
+
toString: function() {
|
784
|
+
var e = this.intValue, n = this.p, o = this.s;
|
785
|
+
return kt(e / n, o.increment).toFixed(o.precision);
|
786
|
+
},
|
787
|
+
/**
|
788
|
+
* Value for JSON serialization.
|
789
|
+
* @returns {float}
|
790
|
+
*/
|
791
|
+
toJSON: function() {
|
792
|
+
return this.value;
|
793
|
+
}
|
794
|
+
};
|
795
|
+
function Ht(a) {
|
796
|
+
Rt(a, "svelte-139zio6", '*,*::before,*::after{font-family:inherit}:host{font-family:inherit}input,textarea,button{font-family:inherit}p{padding:0;margin:0}.ShowBalance{position:relative}.ShowBalance .BalanceValue{font-size:14px;cursor:pointer;display:flex;flex-wrap:nowrap;white-space:nowrap}.ShowBalance .BalanceValue svg{width:16px}.ShowBalance .BalanceValue span{padding-left:8px}@media only screen and (max-width: 360px){.ShowBalance .BalanceValue{font-size:12px}.ShowBalance .BalanceValue svg{width:12px}}.BalanceModalWrapper{background-color:var(--emfe-w-color-white, #FFFFFF);position:absolute;top:45px;left:50%;transform:translateX(-60%);padding:10px;box-shadow:0px 30px 30px var(--emfe-w-header-color-primary, var(--emfe-w-color-primary, #D0046C));border-radius:5px;z-index:17;box-shadow:0px 5px 20px 0px #191919}.BalanceModalWrapper:before{content:"";background:var(--emfe-w-color-white, #FFFFFF);clip-path:polygon(50% 0, 0% 100%, 100% 100%);position:absolute;top:-8px;left:60%;width:25px;height:10px;transform:translateX(-50%);z-index:1}.BalanceModalClose{position:absolute;top:5px;right:5px;width:20px;height:20px;z-index:1;cursor:pointer}.BalanceModalClose:before{content:"";background:var(--emfe-w-color-secondary, var(--emfe-w-color-secondary, #FD2839));position:absolute;top:8px;left:0;width:20px;height:2px;transform:rotate(45deg)}.BalanceModalClose:after{content:"";background:var(--emfe-w-color-secondary, var(--emfe-w-color-secondary, #FD2839));position:absolute;top:8px;left:0;width:20px;height:2px;transform:rotate(-45deg)}.BalanceModal{position:relative;width:280px}.BalanceModalHeader{display:flex;align-items:center;justify-content:center;padding:20px 0}.BalanceModalHeader .BalanceModalTitle{font-size:16px;font-weight:bold;color:var(--emfe-w-header-contrast, var(--emfe-w-color-contrast, #07072A))}.BalanceModalRowBoth{display:flex;flex-direction:column;gap:5px;padding:20px 0;border-bottom:1px solid var(--emfe-w-color-gray-100, #E6E6E6)}.BalanceModalRowBoth:last-child{border-bottom:none}.BalanceModalRowBoth .BalanceModalRowLine{display:flex;width:100%;justify-content:space-between}.BalanceModalRowBoth .BalanceModalText{color:var(--emfe-w-header-contrast, var(--emfe-w-color-contrast, #07072A));font-size:14px;text-transform:capitalize}.BalanceModalRowBoth .BalanceModalValue{font-size:14px;font-weight:bold;color:var(--emfe-w-header-contrast, var(--emfe-w-color-contrast, #07072A))}.BalanceModalFooter{display:flex;align-items:center;padding:20px 0 10px}.BalanceModalFooter .BalanceModalAction{background:var(--emfe-w-header-color-primary, var(--emfe-w-color-primary, #D0046C));font-size:12px;color:white;text-transform:uppercase;width:100%;border-radius:5px;border:none;padding:10px 0;cursor:pointer}.BalanceModalFooter .BalanceModalAction:hover,.BalanceModalFooter .BalanceModalActionactive{background:var(--emfe-w-header-contrast, var(--emfe-w-color-background, #07072A))}.ShowBalanceModalOverlay{background-color:rgba(0, 0, 0, 0.7);position:fixed;top:0;bottom:0;left:0;right:0;z-index:16}');
|
797
|
+
}
|
798
|
+
function rt(a, e, n) {
|
799
|
+
const o = a.slice();
|
800
|
+
return o[45] = e[n], o;
|
801
|
+
}
|
802
|
+
function ot(a, e, n) {
|
803
|
+
const o = a.slice();
|
804
|
+
return o[48] = e[n], o;
|
805
|
+
}
|
806
|
+
function it(a) {
|
807
|
+
let e, n, o, l, d, w, p = (
|
808
|
+
/*$_*/
|
809
|
+
a[4]("Title") + ""
|
810
|
+
), T, g, M, I, O, N, B = (
|
811
|
+
/*$_*/
|
812
|
+
a[4]("DepositButton") + ""
|
813
|
+
), A, y, k, te = ze(Object.keys(
|
814
|
+
/*balances*/
|
815
|
+
a[3]
|
816
|
+
)), C = [];
|
817
|
+
for (let R = 0; R < te.length; R += 1)
|
818
|
+
C[R] = lt(rt(a, te, R));
|
819
|
+
return {
|
820
|
+
c() {
|
821
|
+
e = z("div"), n = z("div"), o = oe(), l = z("div"), d = z("div"), w = z("p"), T = ve(p), g = oe(), M = z("div");
|
822
|
+
for (let R = 0; R < C.length; R += 1)
|
823
|
+
C[R].c();
|
824
|
+
I = oe(), O = z("div"), N = z("button"), A = ve(B), U(n, "class", "BalanceModalClose"), U(w, "class", "BalanceModalTitle"), U(d, "class", "BalanceModalHeader"), U(M, "class", "BalanceModalBody"), U(N, "class", "BalanceModalAction"), U(O, "class", "BalanceModalFooter"), U(l, "class", "BalanceModal"), U(e, "class", "BalanceModalWrapper");
|
825
|
+
},
|
826
|
+
m(R, P) {
|
827
|
+
Me(R, e, P), E(e, n), E(e, o), E(e, l), E(l, d), E(d, w), E(w, T), E(l, g), E(l, M);
|
828
|
+
for (let F = 0; F < C.length; F += 1)
|
829
|
+
C[F] && C[F].m(M, null);
|
830
|
+
E(l, I), E(l, O), E(O, N), E(N, A), y || (k = [
|
831
|
+
je(
|
832
|
+
n,
|
833
|
+
"click",
|
834
|
+
/*click_handler_1*/
|
835
|
+
a[22]
|
836
|
+
),
|
837
|
+
je(
|
838
|
+
N,
|
839
|
+
"click",
|
840
|
+
/*click_handler_2*/
|
841
|
+
a[23]
|
842
|
+
)
|
843
|
+
], y = !0);
|
844
|
+
},
|
845
|
+
p(R, P) {
|
846
|
+
if (P[0] & /*$_*/
|
847
|
+
16 && p !== (p = /*$_*/
|
848
|
+
R[4]("Title") + "") && ge(T, p), P[0] & /*balances, currency, formatBalance, $_*/
|
849
|
+
60) {
|
850
|
+
te = ze(Object.keys(
|
851
|
+
/*balances*/
|
852
|
+
R[3]
|
853
|
+
));
|
854
|
+
let F;
|
855
|
+
for (F = 0; F < te.length; F += 1) {
|
856
|
+
const ie = rt(R, te, F);
|
857
|
+
C[F] ? C[F].p(ie, P) : (C[F] = lt(ie), C[F].c(), C[F].m(M, null));
|
858
|
+
}
|
859
|
+
for (; F < C.length; F += 1)
|
860
|
+
C[F].d(1);
|
861
|
+
C.length = te.length;
|
862
|
+
}
|
863
|
+
P[0] & /*$_*/
|
864
|
+
16 && B !== (B = /*$_*/
|
865
|
+
R[4]("DepositButton") + "") && ge(A, B);
|
866
|
+
},
|
867
|
+
d(R) {
|
868
|
+
R && Fe(e), dt(C, R), y = !1, xt(k);
|
869
|
+
}
|
870
|
+
};
|
871
|
+
}
|
872
|
+
function st(a) {
|
873
|
+
let e, n, o = (
|
874
|
+
/*$_*/
|
875
|
+
a[4](
|
876
|
+
/*k*/
|
877
|
+
a[45]
|
878
|
+
) + ""
|
879
|
+
), l, d, w = (
|
880
|
+
/*b*/
|
881
|
+
(a[48].productType ? (
|
882
|
+
/*$_*/
|
883
|
+
a[4](
|
884
|
+
/*b*/
|
885
|
+
a[48].productType
|
886
|
+
)
|
887
|
+
) : "") + ""
|
888
|
+
), p, T, g, M, I = (
|
889
|
+
/*b*/
|
890
|
+
(a[48].amount ? (
|
891
|
+
/*formatBalance*/
|
892
|
+
a[5](
|
893
|
+
/*b*/
|
894
|
+
a[48].amount
|
895
|
+
)
|
896
|
+
) : "0") + ""
|
897
|
+
), O, N, B, A;
|
898
|
+
return {
|
899
|
+
c() {
|
900
|
+
e = z("div"), n = z("p"), l = ve(o), d = oe(), p = ve(w), T = oe(), g = z("p"), M = z("span"), O = ve(I), N = oe(), B = z("span"), A = ve(
|
901
|
+
/*currency*/
|
902
|
+
a[2]
|
903
|
+
), U(n, "class", "BalanceModalText"), U(M, "class", "BalanceModalAmount"), U(B, "class", "BalanceModalCurrency"), U(g, "class", "BalanceModalValue"), U(e, "class", "BalanceModalRowLine");
|
904
|
+
},
|
905
|
+
m(y, k) {
|
906
|
+
Me(y, e, k), E(e, n), E(n, l), E(n, d), E(n, p), E(e, T), E(e, g), E(g, M), E(M, O), E(g, N), E(g, B), E(B, A);
|
907
|
+
},
|
908
|
+
p(y, k) {
|
909
|
+
k[0] & /*$_, balances*/
|
910
|
+
24 && o !== (o = /*$_*/
|
911
|
+
y[4](
|
912
|
+
/*k*/
|
913
|
+
y[45]
|
914
|
+
) + "") && ge(l, o), k[0] & /*balances, $_*/
|
915
|
+
24 && w !== (w = /*b*/
|
916
|
+
(y[48].productType ? (
|
917
|
+
/*$_*/
|
918
|
+
y[4](
|
919
|
+
/*b*/
|
920
|
+
y[48].productType
|
921
|
+
)
|
922
|
+
) : "") + "") && ge(p, w), k[0] & /*balances*/
|
923
|
+
8 && I !== (I = /*b*/
|
924
|
+
(y[48].amount ? (
|
925
|
+
/*formatBalance*/
|
926
|
+
y[5](
|
927
|
+
/*b*/
|
928
|
+
y[48].amount
|
929
|
+
)
|
930
|
+
) : "0") + "") && ge(O, I), k[0] & /*currency*/
|
931
|
+
4 && ge(
|
932
|
+
A,
|
933
|
+
/*currency*/
|
934
|
+
y[2]
|
935
|
+
);
|
936
|
+
},
|
937
|
+
d(y) {
|
938
|
+
y && Fe(e);
|
939
|
+
}
|
940
|
+
};
|
941
|
+
}
|
942
|
+
function lt(a) {
|
943
|
+
let e, n, o = ze(
|
944
|
+
/*balances*/
|
945
|
+
a[3][
|
946
|
+
/*k*/
|
947
|
+
a[45]
|
948
|
+
]
|
949
|
+
), l = [];
|
950
|
+
for (let d = 0; d < o.length; d += 1)
|
951
|
+
l[d] = st(ot(a, o, d));
|
952
|
+
return {
|
953
|
+
c() {
|
954
|
+
e = z("div");
|
955
|
+
for (let d = 0; d < l.length; d += 1)
|
956
|
+
l[d].c();
|
957
|
+
n = oe(), U(e, "class", "BalanceModalRowBoth");
|
958
|
+
},
|
959
|
+
m(d, w) {
|
960
|
+
Me(d, e, w);
|
961
|
+
for (let p = 0; p < l.length; p += 1)
|
962
|
+
l[p] && l[p].m(e, null);
|
963
|
+
E(e, n);
|
964
|
+
},
|
965
|
+
p(d, w) {
|
966
|
+
if (w[0] & /*currency, balances, formatBalance, $_*/
|
967
|
+
60) {
|
968
|
+
o = ze(
|
969
|
+
/*balances*/
|
970
|
+
d[3][
|
971
|
+
/*k*/
|
972
|
+
d[45]
|
973
|
+
]
|
974
|
+
);
|
975
|
+
let p;
|
976
|
+
for (p = 0; p < o.length; p += 1) {
|
977
|
+
const T = ot(d, o, p);
|
978
|
+
l[p] ? l[p].p(T, w) : (l[p] = st(T), l[p].c(), l[p].m(e, n));
|
979
|
+
}
|
980
|
+
for (; p < l.length; p += 1)
|
981
|
+
l[p].d(1);
|
982
|
+
l.length = o.length;
|
983
|
+
}
|
984
|
+
},
|
985
|
+
d(d) {
|
986
|
+
d && Fe(e), dt(l, d);
|
987
|
+
}
|
988
|
+
};
|
989
|
+
}
|
990
|
+
function ct(a) {
|
991
|
+
let e, n, o;
|
992
|
+
return {
|
993
|
+
c() {
|
994
|
+
e = z("div"), U(e, "class", "ShowBalanceModalOverlay");
|
995
|
+
},
|
996
|
+
m(l, d) {
|
997
|
+
Me(l, e, d), n || (o = je(
|
998
|
+
e,
|
999
|
+
"click",
|
1000
|
+
/*click_handler_3*/
|
1001
|
+
a[24]
|
1002
|
+
), n = !0);
|
1003
|
+
},
|
1004
|
+
p: Ke,
|
1005
|
+
d(l) {
|
1006
|
+
l && Fe(e), n = !1, o();
|
1007
|
+
}
|
1008
|
+
};
|
1009
|
+
}
|
1010
|
+
function jt(a) {
|
1011
|
+
let e, n, o, l = (
|
1012
|
+
/*balances*/
|
1013
|
+
(a[3].Total ? (
|
1014
|
+
/*formatBalance*/
|
1015
|
+
a[5](
|
1016
|
+
/*balances*/
|
1017
|
+
a[3].Total[0].amount
|
1018
|
+
)
|
1019
|
+
) : "0") + ""
|
1020
|
+
), d, w, p, T, g, M, I, O, N, B = (
|
1021
|
+
/*showBalance*/
|
1022
|
+
a[1] && it(a)
|
1023
|
+
), A = (
|
1024
|
+
/*showBalance*/
|
1025
|
+
a[1] && ct(a)
|
1026
|
+
);
|
1027
|
+
return {
|
1028
|
+
c() {
|
1029
|
+
e = z("div"), n = z("div"), o = z("p"), d = ve(l), w = oe(), p = ve(
|
1030
|
+
/*currency*/
|
1031
|
+
a[2]
|
1032
|
+
), T = oe(), g = z("span"), g.innerHTML = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 11.435"><defs><style>.a{fill:var(--emfe-w-color-white, #FFFFFF);}</style></defs><path class="a" d="M16.191,19.235l7.562-7.568a1.423,1.423,0,0,1,2.019,0,1.441,1.441,0,0,1,0,2.025L17.2,22.265a1.427,1.427,0,0,1-1.971.042L6.6,13.7a1.429,1.429,0,0,1,2.019-2.025Z" transform="translate(-6.188 -11.246)"></path></svg>', M = oe(), B && B.c(), I = oe(), A && A.c(), U(o, "class", "BalanceValue"), U(o, "part", "BalanceValue"), U(n, "class", "ShowBalance"), U(n, "part", "ShowBalance");
|
1033
|
+
},
|
1034
|
+
m(y, k) {
|
1035
|
+
Me(y, e, k), E(e, n), E(n, o), E(o, d), E(o, w), E(o, p), E(o, T), E(o, g), E(n, M), B && B.m(n, null), E(e, I), A && A.m(e, null), a[25](e), O || (N = je(
|
1036
|
+
o,
|
1037
|
+
"click",
|
1038
|
+
/*click_handler*/
|
1039
|
+
a[21]
|
1040
|
+
), O = !0);
|
1041
|
+
},
|
1042
|
+
p(y, k) {
|
1043
|
+
k[0] & /*balances*/
|
1044
|
+
8 && l !== (l = /*balances*/
|
1045
|
+
(y[3].Total ? (
|
1046
|
+
/*formatBalance*/
|
1047
|
+
y[5](
|
1048
|
+
/*balances*/
|
1049
|
+
y[3].Total[0].amount
|
1050
|
+
)
|
1051
|
+
) : "0") + "") && ge(d, l), k[0] & /*currency*/
|
1052
|
+
4 && ge(
|
1053
|
+
p,
|
1054
|
+
/*currency*/
|
1055
|
+
y[2]
|
1056
|
+
), /*showBalance*/
|
1057
|
+
y[1] ? B ? B.p(y, k) : (B = it(y), B.c(), B.m(n, null)) : B && (B.d(1), B = null), /*showBalance*/
|
1058
|
+
y[1] ? A ? A.p(y, k) : (A = ct(y), A.c(), A.m(e, null)) : A && (A.d(1), A = null);
|
1059
|
+
},
|
1060
|
+
i: Ke,
|
1061
|
+
o: Ke,
|
1062
|
+
d(y) {
|
1063
|
+
y && Fe(e), B && B.d(), A && A.d(), a[25](null), O = !1, N();
|
1064
|
+
}
|
1065
|
+
};
|
1066
|
+
}
|
1067
|
+
function zt(a, e, n) {
|
1068
|
+
let o;
|
1069
|
+
Et(a, Mt, (i) => n(4, o = i));
|
1070
|
+
let { userid: l = "" } = e, { session: d = "" } = e, { endpoint: w = "" } = e, { lang: p = "en" } = e, { clientstyling: T = "" } = e, { clientstylingurl: g = "" } = e, { translationurl: M = "" } = e, { customlocaleidentifier: I = "" } = e, { gmversion: O = "gmcore" } = e, { displaybalanceoption: N = "All" } = e, { totalcalculationmode: B = "" } = e, { currencyseparator: A = "" } = e, { currencydecimal: y = "" } = e, { currencyprecision: k = "" } = e, te, C, R, P = !1, F = !1, ie = "", se = [];
|
1071
|
+
const h = {}, le = ["totalAmount", "totalCashAmount", "totalRealAmount", "totalWithdrawableAmount"], Le = () => {
|
1072
|
+
fetch(M).then((i) => i.json()).then((i) => Object.keys(i).forEach((b) => nt(b, i[b]))).catch((i) => console.log(i));
|
1073
|
+
};
|
1074
|
+
Object.keys(at).forEach((i) => nt(i, at[i]));
|
1075
|
+
const he = () => {
|
1076
|
+
switch (B) {
|
1077
|
+
case "totalAmount":
|
1078
|
+
return (i, b, v) => v.walletType !== "CreditLine" && v.affectedAmount ? i + v.affectedAmount : i;
|
1079
|
+
case "totalCashAmount":
|
1080
|
+
return (i, b, v) => v.walletType !== "CreditLine" && (b === "Bonus" || b === "Real") && v.affectedAmount ? i + v.affectedAmount : i;
|
1081
|
+
case "totalRealAmount":
|
1082
|
+
return (i, b, v) => v.walletType !== "CreditLine" && b === "Real" && v.affectedAmount ? i + v.affectedAmount : v.walletType === "CreditLine" && b === "Real" && v.affectedAmount ? i - Math.abs(v.affectedAmount) : i;
|
1083
|
+
case "totalWithdrawableAmount":
|
1084
|
+
return (i, b, v) => v.walletType !== "CreditLine" && (b === "Real" || b === "RealNegativeRemainder") && v.affectedAmount ? i + v.affectedAmount : b === "DepositWagering" && v.affectedAmount ? i - v.affectedAmount : i;
|
1085
|
+
}
|
1086
|
+
}, Be = () => {
|
1087
|
+
if (I.includes(p))
|
1088
|
+
return I;
|
1089
|
+
}, Se = (i) => I ? new Intl.NumberFormat(Be(), { useGrouping: !0 }).format(i) : A && y ? re(i, {
|
1090
|
+
separator: A,
|
1091
|
+
decimal: y,
|
1092
|
+
symbol: "",
|
1093
|
+
precision: parseInt(k || "2", 10)
|
1094
|
+
}).format() : re(i, {
|
1095
|
+
separator: ".",
|
1096
|
+
decimal: ",",
|
1097
|
+
symbol: "",
|
1098
|
+
precision: parseInt(k || "2", 10)
|
1099
|
+
}).format(), Oe = () => tt(this, null, function* () {
|
1100
|
+
var b, v;
|
1101
|
+
const i = new URL(`${w}/v1/player/${l}/account`);
|
1102
|
+
try {
|
1103
|
+
P = !0;
|
1104
|
+
const D = yield fetch(i, {
|
1105
|
+
method: "GET",
|
1106
|
+
headers: { "X-SessionID": d }
|
1107
|
+
}), t = yield D.json();
|
1108
|
+
if (D.ok)
|
1109
|
+
P = !1, se = t.items, n(2, ie = Object.keys(t.totalAmount)[0]), n(3, h.Total = [{ amount: t.totalAmount[ie] }], h), n(
|
1110
|
+
3,
|
1111
|
+
h.Real = [
|
1112
|
+
{
|
1113
|
+
amount: (b = se.find((s) => s.displayName === "Casino")) == null ? void 0 : b.balanceAmount
|
1114
|
+
}
|
1115
|
+
],
|
1116
|
+
h
|
1117
|
+
), n(
|
1118
|
+
3,
|
1119
|
+
h.Bonus = [
|
1120
|
+
{
|
1121
|
+
amount: (v = se.find((s) => s.displayName === "UBS")) == null ? void 0 : v.balanceAmount
|
1122
|
+
}
|
1123
|
+
],
|
1124
|
+
h
|
1125
|
+
);
|
1126
|
+
else
|
1127
|
+
throw P = !1, new Error("Failed to fetch balance data !");
|
1128
|
+
} catch (D) {
|
1129
|
+
P = !1, console.log("Balance error: ", D);
|
1130
|
+
} finally {
|
1131
|
+
P = !1;
|
1132
|
+
}
|
1133
|
+
}), Ce = () => {
|
1134
|
+
P = !0;
|
1135
|
+
const i = new URL(`${w}/v2/player/${l}/balance`), b = new Headers();
|
1136
|
+
b.append("X-SessionID", d), fetch(i, { method: "GET", headers: b }).then((D) => D.json()).then((D) => {
|
1137
|
+
P = !1;
|
1138
|
+
const [t, s] = Object.entries(D[B])[0];
|
1139
|
+
if (n(2, ie = t), n(3, h.Total = [{ amount: s }], h), n(3, h.Real = [], h), n(3, h.Bonus = [], h), n(3, h.Credit = [], h), !D.items[0].productType) {
|
1140
|
+
B === "totalRealAmount" && delete h.Real;
|
1141
|
+
const r = Object.values(D.totalBonusAmount)[0];
|
1142
|
+
h.Bonus.push({ amount: r });
|
1143
|
+
for (const u of D.items)
|
1144
|
+
u.type === "Real" && (u.creditLine && h.Credit.length === 0 && h.Credit.push({ amount: u.creditLine }), B !== "totalRealAmount" && (h.Real.length === 0 ? h.Real.push({ amount: u.amount }) : n(3, h.Real[0].amount += u.amount, h)));
|
1145
|
+
return;
|
1146
|
+
}
|
1147
|
+
let c = D.items;
|
1148
|
+
N && N !== "All" && (c = D.items.filter((r) => r.productType === N));
|
1149
|
+
for (const r of c) {
|
1150
|
+
if (r.type === "Real") {
|
1151
|
+
r.creditLine && h.Credit.push({
|
1152
|
+
amount: r.creditLine,
|
1153
|
+
productType: r.productType
|
1154
|
+
});
|
1155
|
+
const u = h.Real.findIndex((f) => f.productType === r.productType);
|
1156
|
+
u > 0 ? n(3, h.Real[u].amount += r.amount, h) : h.Real.push({
|
1157
|
+
amount: r.amount,
|
1158
|
+
productType: r.productType
|
1159
|
+
});
|
1160
|
+
continue;
|
1161
|
+
}
|
1162
|
+
if (r.type === "Bonus") {
|
1163
|
+
const u = h.Bonus.findIndex((f) => f.productType === r.productType);
|
1164
|
+
u > 0 ? n(3, h.Bonus[u].amount += r.amount, h) : h.Bonus.push({
|
1165
|
+
amount: r.amount,
|
1166
|
+
productType: r.productType
|
1167
|
+
});
|
1168
|
+
}
|
1169
|
+
}
|
1170
|
+
}).catch((D) => {
|
1171
|
+
throw P = !1, new Error("Failed to fetch balance data !");
|
1172
|
+
});
|
1173
|
+
}, ee = () => {
|
1174
|
+
if (R && R.close(), d.length < 1) return;
|
1175
|
+
let i, b;
|
1176
|
+
switch (O) {
|
1177
|
+
case "gm16":
|
1178
|
+
i = new URL(`${w}/v2/player/${l}/information/updates`), b = (t) => _e(t.data);
|
1179
|
+
break;
|
1180
|
+
case "gmcore":
|
1181
|
+
i = new URL(`${w}/v1/player/${l}/balance/updates`), b = (t) => ye(t.data);
|
1182
|
+
break;
|
1183
|
+
}
|
1184
|
+
const v = {
|
1185
|
+
accept: "text/event-stream",
|
1186
|
+
"X-SessionId": d
|
1187
|
+
}, D = new Lt.EventSourcePolyfill(i, { headers: v });
|
1188
|
+
R = D, D.addEventListener("message", b);
|
1189
|
+
}, ce = (i) => {
|
1190
|
+
let b;
|
1191
|
+
try {
|
1192
|
+
b = JSON.parse(i);
|
1193
|
+
} catch (v) {
|
1194
|
+
console.log("Balance stream failed: ", v);
|
1195
|
+
return;
|
1196
|
+
}
|
1197
|
+
return b;
|
1198
|
+
}, ye = (i) => {
|
1199
|
+
var t, s;
|
1200
|
+
const b = ce(i);
|
1201
|
+
b || ee();
|
1202
|
+
let v = "0";
|
1203
|
+
const D = b.balanceChange;
|
1204
|
+
se = se.map((c) => (D && D[c.id] && (c = et($e({}, c), {
|
1205
|
+
balanceAmount: D[c.id].afterAmount
|
1206
|
+
})), v = (parseFloat(c == null ? void 0 : c.balanceAmount) + parseFloat(v)).toString(), c)), n(3, h.Real = [{ amount: (t = se[0]) == null ? void 0 : t.balanceAmount }], h), n(3, h.Bonus = [{ amount: (s = se[1]) == null ? void 0 : s.balanceAmount }], h), n(3, h.Total = [{ amount: Number(v) }], h);
|
1207
|
+
}, _e = (i) => {
|
1208
|
+
const b = ce(i);
|
1209
|
+
(!b || b.type !== "BALANCE_UPDATE_V2") && ee();
|
1210
|
+
const v = b.body.balanceChange;
|
1211
|
+
for (const [D, t] of Object.entries(v))
|
1212
|
+
if (n(3, h.Total[0].amount = te(h.Total[0].amount, D, t), h), !!h[D])
|
1213
|
+
for (const s of h[D])
|
1214
|
+
(!s.productType || t.productType && t.productType === s.productType) && (s.amount = t.afterAmount);
|
1215
|
+
}, ne = () => {
|
1216
|
+
n(1, F = !1), window.postMessage({ type: "GoToDeposit" }, window.location.href), typeof gtag == "function" && gtag("event", "GoToDeposit", { context: "PlayerAccountBalanceModal" });
|
1217
|
+
}, Re = () => {
|
1218
|
+
le.includes(B) || (console.error(`
|
1219
|
+
Unsupported value ('${B}') for totalcalculationmode parameter.
|
1220
|
+
Only the following values are supported ${le}.
|
1221
|
+
Using default value ('${le[0]}').
|
1222
|
+
`), n(7, B = le[2]));
|
1223
|
+
}, ke = () => {
|
1224
|
+
switch (Ft(p), Re(), te = he(), O) {
|
1225
|
+
case "gmcore":
|
1226
|
+
Oe();
|
1227
|
+
break;
|
1228
|
+
case "gm16":
|
1229
|
+
Ce();
|
1230
|
+
break;
|
1231
|
+
default:
|
1232
|
+
throw Error(`Invalid apiversion attribute: ${O}`);
|
1233
|
+
}
|
1234
|
+
}, Ie = (i) => i.data && i.data.type === "LogoutSuccessfull" && R.close(), Ue = () => {
|
1235
|
+
const i = document.createElement("style");
|
1236
|
+
i.innerHTML = T, C.appendChild(i);
|
1237
|
+
}, Pe = () => {
|
1238
|
+
const i = new URL(g), b = document.createElement("style");
|
1239
|
+
fetch(i.href).then((v) => v.text()).then((v) => {
|
1240
|
+
b.innerHTML = v, setTimeout(
|
1241
|
+
() => {
|
1242
|
+
C.appendChild(b);
|
1243
|
+
},
|
1244
|
+
1
|
1245
|
+
);
|
1246
|
+
});
|
1247
|
+
};
|
1248
|
+
At(() => (window.addEventListener("message", Ie, !1), () => {
|
1249
|
+
window.removeEventListener("message", Ie), R && R.close();
|
1250
|
+
}));
|
1251
|
+
const Ge = () => n(1, F = !0), Ee = () => n(1, F = !1), Ae = () => ne(), me = () => n(1, F = !1);
|
1252
|
+
function Q(i) {
|
1253
|
+
Dt[i ? "unshift" : "push"](() => {
|
1254
|
+
C = i, n(0, C);
|
1255
|
+
});
|
1256
|
+
}
|
1257
|
+
return a.$$set = (i) => {
|
1258
|
+
"userid" in i && n(8, l = i.userid), "session" in i && n(9, d = i.session), "endpoint" in i && n(10, w = i.endpoint), "lang" in i && n(11, p = i.lang), "clientstyling" in i && n(12, T = i.clientstyling), "clientstylingurl" in i && n(13, g = i.clientstylingurl), "translationurl" in i && n(14, M = i.translationurl), "customlocaleidentifier" in i && n(15, I = i.customlocaleidentifier), "gmversion" in i && n(16, O = i.gmversion), "displaybalanceoption" in i && n(17, N = i.displaybalanceoption), "totalcalculationmode" in i && n(7, B = i.totalcalculationmode), "currencyseparator" in i && n(18, A = i.currencyseparator), "currencydecimal" in i && n(19, y = i.currencydecimal), "currencyprecision" in i && n(20, k = i.currencyprecision);
|
1259
|
+
}, a.$$.update = () => {
|
1260
|
+
a.$$.dirty[0] & /*lang*/
|
1261
|
+
2048 && p && Be(), a.$$.dirty[0] & /*endpoint, userid, session, lang, gmversion, displaybalanceoption*/
|
1262
|
+
200448 && w && l && d && p && O && N && ke(), a.$$.dirty[0] & /*endpoint, userid, session, gmversion*/
|
1263
|
+
67328 && w && l && d && O && ee(), a.$$.dirty[0] & /*clientstyling, customStylingContainer*/
|
1264
|
+
4097 && T && C && Ue(), a.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
|
1265
|
+
8193 && g && C && Pe(), a.$$.dirty[0] & /*translationurl*/
|
1266
|
+
16384 && M && Le();
|
1267
|
+
}, [
|
1268
|
+
C,
|
1269
|
+
F,
|
1270
|
+
ie,
|
1271
|
+
h,
|
1272
|
+
o,
|
1273
|
+
Se,
|
1274
|
+
ne,
|
1275
|
+
B,
|
1276
|
+
l,
|
1277
|
+
d,
|
1278
|
+
w,
|
1279
|
+
p,
|
1280
|
+
T,
|
1281
|
+
g,
|
1282
|
+
M,
|
1283
|
+
I,
|
1284
|
+
O,
|
1285
|
+
N,
|
1286
|
+
A,
|
1287
|
+
y,
|
1288
|
+
k,
|
1289
|
+
Ge,
|
1290
|
+
Ee,
|
1291
|
+
Ae,
|
1292
|
+
me,
|
1293
|
+
Q
|
1294
|
+
];
|
1295
|
+
}
|
1296
|
+
class Ut extends Bt {
|
1297
|
+
constructor(e) {
|
1298
|
+
super(), St(
|
1299
|
+
this,
|
1300
|
+
e,
|
1301
|
+
zt,
|
1302
|
+
jt,
|
1303
|
+
_t,
|
1304
|
+
{
|
1305
|
+
userid: 8,
|
1306
|
+
session: 9,
|
1307
|
+
endpoint: 10,
|
1308
|
+
lang: 11,
|
1309
|
+
clientstyling: 12,
|
1310
|
+
clientstylingurl: 13,
|
1311
|
+
translationurl: 14,
|
1312
|
+
customlocaleidentifier: 15,
|
1313
|
+
gmversion: 16,
|
1314
|
+
displaybalanceoption: 17,
|
1315
|
+
totalcalculationmode: 7,
|
1316
|
+
currencyseparator: 18,
|
1317
|
+
currencydecimal: 19,
|
1318
|
+
currencyprecision: 20
|
1319
|
+
},
|
1320
|
+
Ht,
|
1321
|
+
[-1, -1]
|
1322
|
+
);
|
1323
|
+
}
|
1324
|
+
get userid() {
|
1325
|
+
return this.$$.ctx[8];
|
1326
|
+
}
|
1327
|
+
set userid(e) {
|
1328
|
+
this.$$set({ userid: e }), J();
|
1329
|
+
}
|
1330
|
+
get session() {
|
1331
|
+
return this.$$.ctx[9];
|
1332
|
+
}
|
1333
|
+
set session(e) {
|
1334
|
+
this.$$set({ session: e }), J();
|
1335
|
+
}
|
1336
|
+
get endpoint() {
|
1337
|
+
return this.$$.ctx[10];
|
1338
|
+
}
|
1339
|
+
set endpoint(e) {
|
1340
|
+
this.$$set({ endpoint: e }), J();
|
1341
|
+
}
|
1342
|
+
get lang() {
|
1343
|
+
return this.$$.ctx[11];
|
1344
|
+
}
|
1345
|
+
set lang(e) {
|
1346
|
+
this.$$set({ lang: e }), J();
|
1347
|
+
}
|
1348
|
+
get clientstyling() {
|
1349
|
+
return this.$$.ctx[12];
|
1350
|
+
}
|
1351
|
+
set clientstyling(e) {
|
1352
|
+
this.$$set({ clientstyling: e }), J();
|
1353
|
+
}
|
1354
|
+
get clientstylingurl() {
|
1355
|
+
return this.$$.ctx[13];
|
1356
|
+
}
|
1357
|
+
set clientstylingurl(e) {
|
1358
|
+
this.$$set({ clientstylingurl: e }), J();
|
1359
|
+
}
|
1360
|
+
get translationurl() {
|
1361
|
+
return this.$$.ctx[14];
|
1362
|
+
}
|
1363
|
+
set translationurl(e) {
|
1364
|
+
this.$$set({ translationurl: e }), J();
|
1365
|
+
}
|
1366
|
+
get customlocaleidentifier() {
|
1367
|
+
return this.$$.ctx[15];
|
1368
|
+
}
|
1369
|
+
set customlocaleidentifier(e) {
|
1370
|
+
this.$$set({ customlocaleidentifier: e }), J();
|
1371
|
+
}
|
1372
|
+
get gmversion() {
|
1373
|
+
return this.$$.ctx[16];
|
1374
|
+
}
|
1375
|
+
set gmversion(e) {
|
1376
|
+
this.$$set({ gmversion: e }), J();
|
1377
|
+
}
|
1378
|
+
get displaybalanceoption() {
|
1379
|
+
return this.$$.ctx[17];
|
1380
|
+
}
|
1381
|
+
set displaybalanceoption(e) {
|
1382
|
+
this.$$set({ displaybalanceoption: e }), J();
|
1383
|
+
}
|
1384
|
+
get totalcalculationmode() {
|
1385
|
+
return this.$$.ctx[7];
|
1386
|
+
}
|
1387
|
+
set totalcalculationmode(e) {
|
1388
|
+
this.$$set({ totalcalculationmode: e }), J();
|
1389
|
+
}
|
1390
|
+
get currencyseparator() {
|
1391
|
+
return this.$$.ctx[18];
|
1392
|
+
}
|
1393
|
+
set currencyseparator(e) {
|
1394
|
+
this.$$set({ currencyseparator: e }), J();
|
1395
|
+
}
|
1396
|
+
get currencydecimal() {
|
1397
|
+
return this.$$.ctx[19];
|
1398
|
+
}
|
1399
|
+
set currencydecimal(e) {
|
1400
|
+
this.$$set({ currencydecimal: e }), J();
|
1401
|
+
}
|
1402
|
+
get currencyprecision() {
|
1403
|
+
return this.$$.ctx[20];
|
1404
|
+
}
|
1405
|
+
set currencyprecision(e) {
|
1406
|
+
this.$$set({ currencyprecision: e }), J();
|
1407
|
+
}
|
1408
|
+
}
|
1409
|
+
Ct(Ut, { userid: {}, session: {}, endpoint: {}, lang: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {}, customlocaleidentifier: {}, gmversion: {}, displaybalanceoption: {}, totalcalculationmode: {}, currencyseparator: {}, currencydecimal: {}, currencyprecision: {} }, [], [], !0);
|
1410
|
+
export {
|
1411
|
+
Ut as default
|
1412
|
+
};
|