@everymatrix/casino-header-controller-nd 1.45.2 → 1.45.4
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/{CasinoHamburgerMenuNd-BXEsfn-s.cjs → CasinoHamburgerMenuNd-BIyrZ5q3.cjs} +3 -3
- package/components/{CasinoHamburgerMenuNd-CIrTtpDp.js → CasinoHamburgerMenuNd-CDoFtsHC.js} +119 -119
- package/components/{CasinoHeaderControllerNd-B2ZZN_uT.cjs → CasinoHeaderControllerNd-CLx6q3f6.cjs} +1 -1
- package/components/{CasinoHeaderControllerNd-BoPK_uwo.js → CasinoHeaderControllerNd-yjawzjr9.js} +4 -4
- package/components/PlayerAccountBalanceModalNd-3GrgT2AS.js +1458 -0
- package/components/PlayerAccountBalanceModalNd-BXGagG9a.cjs +17 -0
- package/components/{PlayerDeposit-4LdQJefg.js → PlayerDeposit-GdDtZSA2.js} +1 -1
- package/components/{PlayerDeposit-8f9SmwNq.cjs → PlayerDeposit-pj1u5D-u.cjs} +1 -1
- package/es2015/casino-header-controller-nd.cjs +1 -1
- package/es2015/casino-header-controller-nd.js +1 -1
- package/package.json +1 -1
- package/components/PlayerAccountBalanceModalNd-BtrIUvyR.js +0 -1452
- package/components/PlayerAccountBalanceModalNd-Xb8oFGyL.cjs +0 -13
|
@@ -0,0 +1,1458 @@
|
|
|
1
|
+
var mt = Object.defineProperty, gt = Object.defineProperties;
|
|
2
|
+
var vt = Object.getOwnPropertyDescriptors;
|
|
3
|
+
var Qe = Object.getOwnPropertySymbols;
|
|
4
|
+
var yt = Object.prototype.hasOwnProperty, wt = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var Ze = (o, t, n) => t in o ? mt(o, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : o[t] = n, $e = (o, t) => {
|
|
6
|
+
for (var n in t || (t = {}))
|
|
7
|
+
yt.call(t, n) && Ze(o, n, t[n]);
|
|
8
|
+
if (Qe)
|
|
9
|
+
for (var n of Qe(t))
|
|
10
|
+
wt.call(t, n) && Ze(o, n, t[n]);
|
|
11
|
+
return o;
|
|
12
|
+
}, et = (o, t) => gt(o, vt(t));
|
|
13
|
+
var tt = (o, t, n) => new Promise((i, d) => {
|
|
14
|
+
var c = (y) => {
|
|
15
|
+
try {
|
|
16
|
+
m(n.next(y));
|
|
17
|
+
} catch (w) {
|
|
18
|
+
d(w);
|
|
19
|
+
}
|
|
20
|
+
}, g = (y) => {
|
|
21
|
+
try {
|
|
22
|
+
m(n.throw(y));
|
|
23
|
+
} catch (w) {
|
|
24
|
+
d(w);
|
|
25
|
+
}
|
|
26
|
+
}, m = (y) => y.done ? i(y.value) : Promise.resolve(y.value).then(c, g);
|
|
27
|
+
m((n = n.apply(o, t)).next());
|
|
28
|
+
});
|
|
29
|
+
import { b as Bt, $ as bt, M as Tt, S as St, i as Ct, f as Y, c as _t, s as Rt, d as Et, g as U, D as ge, h as oe, B as nt, j as R, n as Me, m as T, o as Ve, E as ve, F as We, v as De, w as At, x as xt, A as Ne, C as ut, I as Mt, H as Dt, K as Ot } from "./CasinoHamburgerMenuNd-CDoFtsHC.js";
|
|
30
|
+
function at(o, t) {
|
|
31
|
+
Bt(o, t);
|
|
32
|
+
}
|
|
33
|
+
function kt(o) {
|
|
34
|
+
bt.set(o);
|
|
35
|
+
}
|
|
36
|
+
const ot = {
|
|
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 qe = { exports: {} };
|
|
209
|
+
/** @license
|
|
210
|
+
* eventsource.js
|
|
211
|
+
* Available under MIT License (MIT)
|
|
212
|
+
* https://github.com/Yaffle/EventSource/
|
|
213
|
+
*/
|
|
214
|
+
(function(o, t) {
|
|
215
|
+
(function(n) {
|
|
216
|
+
var i = n.setTimeout, d = n.clearTimeout, c = n.XMLHttpRequest, g = n.XDomainRequest, m = n.ActiveXObject, y = n.EventSource, w = n.document, M = n.Promise, D = n.fetch, E = n.Response, j = n.TextDecoder, k = n.TextEncoder, H = n.AbortController;
|
|
217
|
+
if (typeof window != "undefined" && typeof w != "undefined" && !("readyState" in w) && w.body == null && (w.readyState = "loading", window.addEventListener("load", function(e) {
|
|
218
|
+
w.readyState = "complete";
|
|
219
|
+
}, !1)), c == null && m != null && (c = function() {
|
|
220
|
+
return new m("Microsoft.XMLHTTP");
|
|
221
|
+
}), Object.create == null && (Object.create = function(e) {
|
|
222
|
+
function a() {
|
|
223
|
+
}
|
|
224
|
+
return a.prototype = e, new a();
|
|
225
|
+
}), Date.now || (Date.now = function() {
|
|
226
|
+
return (/* @__PURE__ */ new Date()).getTime();
|
|
227
|
+
}), H == null) {
|
|
228
|
+
var A = D;
|
|
229
|
+
D = function(e, a) {
|
|
230
|
+
var l = a.signal;
|
|
231
|
+
return A(e, { headers: a.headers, credentials: a.credentials, cache: a.cache }).then(function(r) {
|
|
232
|
+
var p = r.body.getReader();
|
|
233
|
+
return l._reader = p, l._aborted && l._reader.cancel(), {
|
|
234
|
+
status: r.status,
|
|
235
|
+
statusText: r.statusText,
|
|
236
|
+
headers: r.headers,
|
|
237
|
+
body: {
|
|
238
|
+
getReader: function() {
|
|
239
|
+
return p;
|
|
240
|
+
}
|
|
241
|
+
}
|
|
242
|
+
};
|
|
243
|
+
});
|
|
244
|
+
}, H = 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 z() {
|
|
254
|
+
this.bitsNeeded = 0, this.codePoint = 0;
|
|
255
|
+
}
|
|
256
|
+
z.prototype.decode = function(e) {
|
|
257
|
+
function a(x, O, v) {
|
|
258
|
+
if (v === 1)
|
|
259
|
+
return x >= 128 >> O && x << O <= 2047;
|
|
260
|
+
if (v === 2)
|
|
261
|
+
return x >= 2048 >> O && x << O <= 55295 || x >= 57344 >> O && x << O <= 65535;
|
|
262
|
+
if (v === 3)
|
|
263
|
+
return x >= 65536 >> O && x << O <= 1114111;
|
|
264
|
+
throw new Error();
|
|
265
|
+
}
|
|
266
|
+
function l(x, O) {
|
|
267
|
+
if (x === 6 * 1)
|
|
268
|
+
return O >> 6 > 15 ? 3 : O > 31 ? 2 : 1;
|
|
269
|
+
if (x === 6 * 2)
|
|
270
|
+
return O > 15 ? 3 : 2;
|
|
271
|
+
if (x === 6 * 3)
|
|
272
|
+
return 3;
|
|
273
|
+
throw new Error();
|
|
274
|
+
}
|
|
275
|
+
for (var r = 65533, p = "", u = this.bitsNeeded, h = this.codePoint, C = 0; C < e.length; C += 1) {
|
|
276
|
+
var b = e[C];
|
|
277
|
+
u !== 0 && (b < 128 || b > 191 || !a(h << 6 | b & 63, u - 6, l(u, h))) && (u = 0, h = r, p += String.fromCharCode(h)), u === 0 ? (b >= 0 && b <= 127 ? (u = 0, h = b) : b >= 192 && b <= 223 ? (u = 6 * 1, h = b & 31) : b >= 224 && b <= 239 ? (u = 6 * 2, h = b & 15) : b >= 240 && b <= 247 ? (u = 6 * 3, h = b & 7) : (u = 0, h = r), u !== 0 && !a(h, u, l(u, h)) && (u = 0, h = r)) : (u -= 6, h = h << 6 | b & 63), u === 0 && (h <= 65535 ? p += String.fromCharCode(h) : (p += String.fromCharCode(55296 + (h - 65535 - 1 >> 10)), p += String.fromCharCode(56320 + (h - 65535 - 1 & 1023))));
|
|
278
|
+
}
|
|
279
|
+
return this.bitsNeeded = u, this.codePoint = h, p;
|
|
280
|
+
};
|
|
281
|
+
var I = function() {
|
|
282
|
+
try {
|
|
283
|
+
return new j().decode(new k().encode("test"), { stream: !0 }) === "test";
|
|
284
|
+
} catch (e) {
|
|
285
|
+
console.debug("TextDecoder does not support streaming option. Using polyfill instead: " + e);
|
|
286
|
+
}
|
|
287
|
+
return !1;
|
|
288
|
+
};
|
|
289
|
+
(j == null || k == null || !I()) && (j = z);
|
|
290
|
+
var B = function() {
|
|
291
|
+
};
|
|
292
|
+
function S(e) {
|
|
293
|
+
this.withCredentials = !1, this.readyState = 0, this.status = 0, this.statusText = "", this.responseText = "", this.onprogress = B, this.onload = B, this.onerror = B, this.onreadystatechange = B, this._contentType = "", this._xhr = e, this._sendTimeout = 0, this._abort = B;
|
|
294
|
+
}
|
|
295
|
+
S.prototype.open = function(e, a) {
|
|
296
|
+
this._abort(!0);
|
|
297
|
+
var l = this, r = this._xhr, p = 1, u = 0;
|
|
298
|
+
this._abort = function(v) {
|
|
299
|
+
l._sendTimeout !== 0 && (d(l._sendTimeout), l._sendTimeout = 0), (p === 1 || p === 2 || p === 3) && (p = 4, r.onload = B, r.onerror = B, r.onabort = B, r.onprogress = B, r.onreadystatechange = B, r.abort(), u !== 0 && (d(u), u = 0), v || (l.readyState = 4, l.onabort(null), l.onreadystatechange())), p = 0;
|
|
300
|
+
};
|
|
301
|
+
var h = function() {
|
|
302
|
+
if (p === 1) {
|
|
303
|
+
var v = 0, N = "", de = void 0;
|
|
304
|
+
if ("contentType" in r)
|
|
305
|
+
v = 200, N = "OK", de = r.contentType;
|
|
306
|
+
else
|
|
307
|
+
try {
|
|
308
|
+
v = r.status, N = r.statusText, de = r.getResponseHeader("Content-Type");
|
|
309
|
+
} catch (Ae) {
|
|
310
|
+
v = 0, N = "", de = void 0;
|
|
311
|
+
}
|
|
312
|
+
v !== 0 && (p = 2, l.readyState = 2, l.status = v, l.statusText = N, l._contentType = de, l.onreadystatechange());
|
|
313
|
+
}
|
|
314
|
+
}, C = function() {
|
|
315
|
+
if (h(), p === 2 || p === 3) {
|
|
316
|
+
p = 3;
|
|
317
|
+
var v = "";
|
|
318
|
+
try {
|
|
319
|
+
v = r.responseText;
|
|
320
|
+
} catch (N) {
|
|
321
|
+
}
|
|
322
|
+
l.readyState = 3, l.responseText = v, l.onprogress();
|
|
323
|
+
}
|
|
324
|
+
}, b = function(v, N) {
|
|
325
|
+
if ((N == null || N.preventDefault == null) && (N = {
|
|
326
|
+
preventDefault: B
|
|
327
|
+
}), C(), p === 1 || p === 2 || p === 3) {
|
|
328
|
+
if (p = 4, u !== 0 && (d(u), u = 0), l.readyState = 4, v === "load")
|
|
329
|
+
l.onload(N);
|
|
330
|
+
else if (v === "error")
|
|
331
|
+
l.onerror(N);
|
|
332
|
+
else if (v === "abort")
|
|
333
|
+
l.onabort(N);
|
|
334
|
+
else
|
|
335
|
+
throw new TypeError();
|
|
336
|
+
l.onreadystatechange();
|
|
337
|
+
}
|
|
338
|
+
}, x = function(v) {
|
|
339
|
+
r != null && (r.readyState === 4 ? (!("onload" in r) || !("onerror" in r) || !("onabort" in r)) && b(r.responseText === "" ? "error" : "load", v) : r.readyState === 3 ? "onprogress" in r || C() : r.readyState === 2 && h());
|
|
340
|
+
}, O = function() {
|
|
341
|
+
u = i(function() {
|
|
342
|
+
O();
|
|
343
|
+
}, 500), r.readyState === 3 && C();
|
|
344
|
+
};
|
|
345
|
+
"onload" in r && (r.onload = function(v) {
|
|
346
|
+
b("load", v);
|
|
347
|
+
}), "onerror" in r && (r.onerror = function(v) {
|
|
348
|
+
b("error", v);
|
|
349
|
+
}), "onabort" in r && (r.onabort = function(v) {
|
|
350
|
+
b("abort", v);
|
|
351
|
+
}), "onprogress" in r && (r.onprogress = C), "onreadystatechange" in r && (r.onreadystatechange = function(v) {
|
|
352
|
+
x(v);
|
|
353
|
+
}), ("contentType" in r || !("ontimeout" in c.prototype)) && (a += (a.indexOf("?") === -1 ? "?" : "&") + "padding=true"), r.open(e, a, !0), "readyState" in r && (u = i(function() {
|
|
354
|
+
O();
|
|
355
|
+
}, 0));
|
|
356
|
+
}, S.prototype.abort = function() {
|
|
357
|
+
this._abort(!1);
|
|
358
|
+
}, S.prototype.getResponseHeader = function(e) {
|
|
359
|
+
return this._contentType;
|
|
360
|
+
}, S.prototype.setRequestHeader = function(e, a) {
|
|
361
|
+
var l = this._xhr;
|
|
362
|
+
"setRequestHeader" in l && l.setRequestHeader(e, a);
|
|
363
|
+
}, S.prototype.getAllResponseHeaders = function() {
|
|
364
|
+
return this._xhr.getAllResponseHeaders != null && this._xhr.getAllResponseHeaders() || "";
|
|
365
|
+
}, S.prototype.send = function() {
|
|
366
|
+
if ((!("ontimeout" in c.prototype) || !("sendAsBinary" in c.prototype) && !("mozAnon" in c.prototype)) && w != null && w.readyState != null && w.readyState !== "complete") {
|
|
367
|
+
var e = this;
|
|
368
|
+
e._sendTimeout = i(function() {
|
|
369
|
+
e._sendTimeout = 0, e.send();
|
|
370
|
+
}, 4);
|
|
371
|
+
return;
|
|
372
|
+
}
|
|
373
|
+
var a = this._xhr;
|
|
374
|
+
"withCredentials" in a && (a.withCredentials = this.withCredentials);
|
|
375
|
+
try {
|
|
376
|
+
a.send(void 0);
|
|
377
|
+
} catch (l) {
|
|
378
|
+
throw l;
|
|
379
|
+
}
|
|
380
|
+
};
|
|
381
|
+
function L(e) {
|
|
382
|
+
return e.replace(/[A-Z]/g, function(a) {
|
|
383
|
+
return String.fromCharCode(a.charCodeAt(0) + 32);
|
|
384
|
+
});
|
|
385
|
+
}
|
|
386
|
+
function se(e) {
|
|
387
|
+
for (var a = /* @__PURE__ */ Object.create(null), l = e.split(`\r
|
|
388
|
+
`), r = 0; r < l.length; r += 1) {
|
|
389
|
+
var p = l[r], u = p.split(": "), h = u.shift(), C = u.join(": ");
|
|
390
|
+
a[L(h)] = C;
|
|
391
|
+
}
|
|
392
|
+
this._map = a;
|
|
393
|
+
}
|
|
394
|
+
se.prototype.get = function(e) {
|
|
395
|
+
return this._map[L(e)];
|
|
396
|
+
}, c != null && c.HEADERS_RECEIVED == null && (c.HEADERS_RECEIVED = 2);
|
|
397
|
+
function J() {
|
|
398
|
+
}
|
|
399
|
+
J.prototype.open = function(e, a, l, r, p, u, h) {
|
|
400
|
+
e.open("GET", p);
|
|
401
|
+
var C = 0;
|
|
402
|
+
e.onprogress = function() {
|
|
403
|
+
var x = e.responseText, O = x.slice(C);
|
|
404
|
+
C += O.length, l(O);
|
|
405
|
+
}, e.onerror = function(x) {
|
|
406
|
+
x.preventDefault(), r(new Error("NetworkError"));
|
|
407
|
+
}, e.onload = function() {
|
|
408
|
+
r(null);
|
|
409
|
+
}, e.onabort = function() {
|
|
410
|
+
r(null);
|
|
411
|
+
}, e.onreadystatechange = function() {
|
|
412
|
+
if (e.readyState === c.HEADERS_RECEIVED) {
|
|
413
|
+
var x = e.status, O = e.statusText, v = e.getResponseHeader("Content-Type"), N = e.getAllResponseHeaders();
|
|
414
|
+
a(x, O, v, new se(N));
|
|
415
|
+
}
|
|
416
|
+
}, e.withCredentials = u;
|
|
417
|
+
for (var b in h)
|
|
418
|
+
Object.prototype.hasOwnProperty.call(h, b) && e.setRequestHeader(b, h[b]);
|
|
419
|
+
return e.send(), e;
|
|
420
|
+
};
|
|
421
|
+
function V(e) {
|
|
422
|
+
this._headers = e;
|
|
423
|
+
}
|
|
424
|
+
V.prototype.get = function(e) {
|
|
425
|
+
return this._headers.get(e);
|
|
426
|
+
};
|
|
427
|
+
function _() {
|
|
428
|
+
}
|
|
429
|
+
_.prototype.open = function(e, a, l, r, p, u, h) {
|
|
430
|
+
var C = null, b = new H(), x = b.signal, O = new j();
|
|
431
|
+
return D(p, {
|
|
432
|
+
headers: h,
|
|
433
|
+
credentials: u ? "include" : "same-origin",
|
|
434
|
+
signal: x,
|
|
435
|
+
cache: "no-store"
|
|
436
|
+
}).then(function(v) {
|
|
437
|
+
return C = v.body.getReader(), a(v.status, v.statusText, v.headers.get("Content-Type"), new V(v.headers)), new M(function(N, de) {
|
|
438
|
+
var Ae = function() {
|
|
439
|
+
C.read().then(function(Z) {
|
|
440
|
+
if (Z.done)
|
|
441
|
+
N(void 0);
|
|
442
|
+
else {
|
|
443
|
+
var K = O.decode(Z.value, { stream: !0 });
|
|
444
|
+
l(K), Ae();
|
|
445
|
+
}
|
|
446
|
+
}).catch(function(Z) {
|
|
447
|
+
de(Z);
|
|
448
|
+
});
|
|
449
|
+
};
|
|
450
|
+
Ae();
|
|
451
|
+
});
|
|
452
|
+
}).catch(function(v) {
|
|
453
|
+
if (v.name !== "AbortError")
|
|
454
|
+
return v;
|
|
455
|
+
}).then(function(v) {
|
|
456
|
+
r(v);
|
|
457
|
+
}), {
|
|
458
|
+
abort: function() {
|
|
459
|
+
C != null && C.cancel(), b.abort();
|
|
460
|
+
}
|
|
461
|
+
};
|
|
462
|
+
};
|
|
463
|
+
function f() {
|
|
464
|
+
this._listeners = /* @__PURE__ */ Object.create(null);
|
|
465
|
+
}
|
|
466
|
+
function F(e) {
|
|
467
|
+
i(function() {
|
|
468
|
+
throw e;
|
|
469
|
+
}, 0);
|
|
470
|
+
}
|
|
471
|
+
f.prototype.dispatchEvent = function(e) {
|
|
472
|
+
e.target = this;
|
|
473
|
+
var a = this._listeners[e.type];
|
|
474
|
+
if (a != null)
|
|
475
|
+
for (var l = a.length, r = 0; r < l; r += 1) {
|
|
476
|
+
var p = a[r];
|
|
477
|
+
try {
|
|
478
|
+
typeof p.handleEvent == "function" ? p.handleEvent(e) : p.call(this, e);
|
|
479
|
+
} catch (u) {
|
|
480
|
+
F(u);
|
|
481
|
+
}
|
|
482
|
+
}
|
|
483
|
+
}, f.prototype.addEventListener = function(e, a) {
|
|
484
|
+
e = String(e);
|
|
485
|
+
var l = this._listeners, r = l[e];
|
|
486
|
+
r == null && (r = [], l[e] = r);
|
|
487
|
+
for (var p = !1, u = 0; u < r.length; u += 1)
|
|
488
|
+
r[u] === a && (p = !0);
|
|
489
|
+
p || r.push(a);
|
|
490
|
+
}, f.prototype.removeEventListener = function(e, a) {
|
|
491
|
+
e = String(e);
|
|
492
|
+
var l = this._listeners, r = l[e];
|
|
493
|
+
if (r != null) {
|
|
494
|
+
for (var p = [], u = 0; u < r.length; u += 1)
|
|
495
|
+
r[u] !== a && p.push(r[u]);
|
|
496
|
+
p.length === 0 ? delete l[e] : l[e] = p;
|
|
497
|
+
}
|
|
498
|
+
};
|
|
499
|
+
function te(e) {
|
|
500
|
+
this.type = e, this.target = void 0;
|
|
501
|
+
}
|
|
502
|
+
function Oe(e, a) {
|
|
503
|
+
te.call(this, e), this.data = a.data, this.lastEventId = a.lastEventId;
|
|
504
|
+
}
|
|
505
|
+
Oe.prototype = Object.create(te.prototype);
|
|
506
|
+
function le(e, a) {
|
|
507
|
+
te.call(this, e), this.status = a.status, this.statusText = a.statusText, this.headers = a.headers;
|
|
508
|
+
}
|
|
509
|
+
le.prototype = Object.create(te.prototype);
|
|
510
|
+
function Te(e, a) {
|
|
511
|
+
te.call(this, e), this.error = a.error;
|
|
512
|
+
}
|
|
513
|
+
Te.prototype = Object.create(te.prototype);
|
|
514
|
+
var Se = -1, re = 0, he = 1, ce = 2, we = -1, ie = 0, Ce = 1, _e = 2, je = 3, He = /^text\/event\-stream(;.*)?$/i, ke = 1e3, ze = 18e6, Re = function(e, a) {
|
|
515
|
+
var l = e == null ? a : parseInt(e, 10);
|
|
516
|
+
return l !== l && (l = a), Ee(l);
|
|
517
|
+
}, Ee = function(e) {
|
|
518
|
+
return Math.min(Math.max(e, ke), ze);
|
|
519
|
+
}, me = function(e, a, l) {
|
|
520
|
+
try {
|
|
521
|
+
typeof a == "function" && a.call(e, l);
|
|
522
|
+
} catch (r) {
|
|
523
|
+
F(r);
|
|
524
|
+
}
|
|
525
|
+
};
|
|
526
|
+
function Q(e, a) {
|
|
527
|
+
f.call(this), a = a || {}, 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, Xe(this, e, a);
|
|
528
|
+
}
|
|
529
|
+
function Ue() {
|
|
530
|
+
return c != null && "withCredentials" in c.prototype || g == null ? new c() : new g();
|
|
531
|
+
}
|
|
532
|
+
var Pe = D != null && E != null && "body" in E.prototype;
|
|
533
|
+
function Xe(e, a, l) {
|
|
534
|
+
a = String(a);
|
|
535
|
+
var r = !!l.withCredentials, p = l.lastEventIdQueryParameterName || "lastEventId", u = Ee(1e3), h = Re(l.heartbeatTimeout, 45e3), C = "", b = u, x = !1, O = 0, v = l.headers || {}, N = l.Transport, de = Pe && N == null ? void 0 : new S(N != null ? new N() : Ue()), Ae = N != null && typeof N != "string" ? new N() : de == null ? new _() : new J(), Z = void 0, K = 0, ne = Se, Be = "", Fe = "", ue = "", Ie = "", W = ie, Ge = 0, ye = 0, pt = function(X, P, $, ee) {
|
|
536
|
+
if (ne === re)
|
|
537
|
+
if (X === 200 && $ != null && He.test($)) {
|
|
538
|
+
ne = he, x = Date.now(), b = u, e.readyState = he;
|
|
539
|
+
var q = new le("open", {
|
|
540
|
+
status: X,
|
|
541
|
+
statusText: P,
|
|
542
|
+
headers: ee
|
|
543
|
+
});
|
|
544
|
+
e.dispatchEvent(q), me(e, e.onopen, q);
|
|
545
|
+
} else {
|
|
546
|
+
var G = "";
|
|
547
|
+
X !== 200 ? (P && (P = P.replace(/\s+/g, " ")), G = "EventSource's response has a status " + X + " " + P + " that is not 200. Aborting the connection.") : G = "EventSource's response has a Content-Type specifying an unsupported type: " + ($ == null ? "-" : $.replace(/\s+/g, " ")) + ". Aborting the connection.", Ke();
|
|
548
|
+
var q = new le("error", {
|
|
549
|
+
status: X,
|
|
550
|
+
statusText: P,
|
|
551
|
+
headers: ee
|
|
552
|
+
});
|
|
553
|
+
e.dispatchEvent(q), me(e, e.onerror, q), console.error(G);
|
|
554
|
+
}
|
|
555
|
+
}, ht = function(X) {
|
|
556
|
+
if (ne === he) {
|
|
557
|
+
for (var P = -1, $ = 0; $ < X.length; $ += 1) {
|
|
558
|
+
var ee = X.charCodeAt($);
|
|
559
|
+
(ee === 10 || ee === 13) && (P = $);
|
|
560
|
+
}
|
|
561
|
+
var q = (P !== -1 ? Ie : "") + X.slice(0, P + 1);
|
|
562
|
+
Ie = (P === -1 ? Ie : "") + X.slice(P + 1), X !== "" && (x = Date.now(), O += X.length);
|
|
563
|
+
for (var G = 0; G < q.length; G += 1) {
|
|
564
|
+
var ee = q.charCodeAt(G);
|
|
565
|
+
if (W === we && ee === 10)
|
|
566
|
+
W = ie;
|
|
567
|
+
else if (W === we && (W = ie), ee === 13 || ee === 10) {
|
|
568
|
+
if (W !== ie) {
|
|
569
|
+
W === Ce && (ye = G + 1);
|
|
570
|
+
var fe = q.slice(Ge, ye - 1), pe = q.slice(ye + (ye < G && q.charCodeAt(ye) === 32 ? 1 : 0), G);
|
|
571
|
+
fe === "data" ? (Be += `
|
|
572
|
+
`, Be += pe) : fe === "id" ? Fe = pe : fe === "event" ? ue = pe : fe === "retry" ? (u = Re(pe, u), b = u) : fe === "heartbeatTimeout" && (h = Re(pe, h), K !== 0 && (d(K), K = i(function() {
|
|
573
|
+
xe();
|
|
574
|
+
}, h)));
|
|
575
|
+
}
|
|
576
|
+
if (W === ie) {
|
|
577
|
+
if (Be !== "") {
|
|
578
|
+
C = Fe, ue === "" && (ue = "message");
|
|
579
|
+
var be = new Oe(ue, {
|
|
580
|
+
data: Be.slice(1),
|
|
581
|
+
lastEventId: Fe
|
|
582
|
+
});
|
|
583
|
+
if (e.dispatchEvent(be), ue === "open" ? me(e, e.onopen, be) : ue === "message" ? me(e, e.onmessage, be) : ue === "error" && me(e, e.onerror, be), ne === ce)
|
|
584
|
+
return;
|
|
585
|
+
}
|
|
586
|
+
Be = "", ue = "";
|
|
587
|
+
}
|
|
588
|
+
W = ee === 13 ? we : ie;
|
|
589
|
+
} else
|
|
590
|
+
W === ie && (Ge = G, W = Ce), W === Ce ? ee === 58 && (ye = G + 1, W = _e) : W === _e && (W = je);
|
|
591
|
+
}
|
|
592
|
+
}
|
|
593
|
+
}, Je = function(X) {
|
|
594
|
+
if (ne === he || ne === re) {
|
|
595
|
+
ne = Se, K !== 0 && (d(K), K = 0), K = i(function() {
|
|
596
|
+
xe();
|
|
597
|
+
}, b), b = Ee(Math.min(u * 16, b * 2)), e.readyState = re;
|
|
598
|
+
var P = new Te("error", { error: X });
|
|
599
|
+
e.dispatchEvent(P), me(e, e.onerror, P), X != null && console.error(X);
|
|
600
|
+
}
|
|
601
|
+
}, Ke = function() {
|
|
602
|
+
ne = ce, Z != null && (Z.abort(), Z = void 0), K !== 0 && (d(K), K = 0), e.readyState = ce;
|
|
603
|
+
}, xe = function() {
|
|
604
|
+
if (K = 0, ne !== Se) {
|
|
605
|
+
if (!x && Z != null)
|
|
606
|
+
Je(new Error("No activity within " + h + " milliseconds. " + (ne === re ? "No response received." : O + " chars received.") + " Reconnecting.")), Z != null && (Z.abort(), Z = void 0);
|
|
607
|
+
else {
|
|
608
|
+
var X = Math.max((x || Date.now()) + h - Date.now(), 1);
|
|
609
|
+
x = !1, K = i(function() {
|
|
610
|
+
xe();
|
|
611
|
+
}, X);
|
|
612
|
+
}
|
|
613
|
+
return;
|
|
614
|
+
}
|
|
615
|
+
x = !1, O = 0, K = i(function() {
|
|
616
|
+
xe();
|
|
617
|
+
}, h), ne = re, Be = "", ue = "", Fe = C, Ie = "", Ge = 0, ye = 0, W = ie;
|
|
618
|
+
var P = a;
|
|
619
|
+
if (a.slice(0, 5) !== "data:" && a.slice(0, 5) !== "blob:" && C !== "") {
|
|
620
|
+
var $ = a.indexOf("?");
|
|
621
|
+
P = $ === -1 ? a : a.slice(0, $ + 1) + a.slice($ + 1).replace(/(?:^|&)([^=&]*)(?:=[^&]*)?/g, function(pe, be) {
|
|
622
|
+
return be === p ? "" : pe;
|
|
623
|
+
}), P += (a.indexOf("?") === -1 ? "?" : "&") + p + "=" + encodeURIComponent(C);
|
|
624
|
+
}
|
|
625
|
+
var ee = e.withCredentials, q = {};
|
|
626
|
+
q.Accept = "text/event-stream";
|
|
627
|
+
var G = e.headers;
|
|
628
|
+
if (G != null)
|
|
629
|
+
for (var fe in G)
|
|
630
|
+
Object.prototype.hasOwnProperty.call(G, fe) && (q[fe] = G[fe]);
|
|
631
|
+
try {
|
|
632
|
+
Z = Ae.open(de, pt, ht, Je, P, ee, q);
|
|
633
|
+
} catch (pe) {
|
|
634
|
+
throw Ke(), pe;
|
|
635
|
+
}
|
|
636
|
+
};
|
|
637
|
+
e.url = a, e.readyState = re, e.withCredentials = r, e.headers = v, e._close = Ke, xe();
|
|
638
|
+
}
|
|
639
|
+
Q.prototype = Object.create(f.prototype), Q.prototype.CONNECTING = re, Q.prototype.OPEN = he, Q.prototype.CLOSED = ce, Q.prototype.close = function() {
|
|
640
|
+
this._close();
|
|
641
|
+
}, Q.CONNECTING = re, Q.OPEN = he, Q.CLOSED = ce, Q.prototype.withCredentials = void 0;
|
|
642
|
+
var s = y;
|
|
643
|
+
c != null && (y == null || !("withCredentials" in y.prototype)) && (s = Q), function(e) {
|
|
644
|
+
{
|
|
645
|
+
var a = e(t);
|
|
646
|
+
a !== void 0 && (o.exports = a);
|
|
647
|
+
}
|
|
648
|
+
}(function(e) {
|
|
649
|
+
e.EventSourcePolyfill = Q, e.NativeEventSource = y, e.EventSource = s;
|
|
650
|
+
});
|
|
651
|
+
})(typeof globalThis == "undefined" ? typeof window != "undefined" ? window : typeof self != "undefined" ? self : Tt : globalThis);
|
|
652
|
+
})(qe, qe.exports);
|
|
653
|
+
var Ft = qe.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 It = {
|
|
662
|
+
symbol: "$",
|
|
663
|
+
separator: ",",
|
|
664
|
+
decimal: ".",
|
|
665
|
+
errorOnInvalid: !1,
|
|
666
|
+
precision: 2,
|
|
667
|
+
pattern: "!#",
|
|
668
|
+
negativePattern: "-!#",
|
|
669
|
+
format: jt,
|
|
670
|
+
fromCents: !1
|
|
671
|
+
}, ft = function(t) {
|
|
672
|
+
return Math.round(t);
|
|
673
|
+
}, Ye = function(t) {
|
|
674
|
+
return Math.pow(10, t);
|
|
675
|
+
}, Lt = function(t, n) {
|
|
676
|
+
return ft(t / n) * n;
|
|
677
|
+
}, Vt = /(\d)(?=(\d{3})+\b)/g, Nt = /(\d)(?=(\d\d)+\d\b)/g;
|
|
678
|
+
function ae(o, t) {
|
|
679
|
+
var n = this;
|
|
680
|
+
if (!(n instanceof ae))
|
|
681
|
+
return new ae(o, t);
|
|
682
|
+
var i = Object.assign({}, It, t), d = Ye(i.precision), c = Le(o, i);
|
|
683
|
+
n.intValue = c, n.value = c / d, i.increment = i.increment || 1 / d, i.useVedic ? i.groups = Nt : i.groups = Vt, this.s = i, this.p = d;
|
|
684
|
+
}
|
|
685
|
+
function Le(o, t) {
|
|
686
|
+
var n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : !0, i = 0, d = t.decimal, c = t.errorOnInvalid, g = t.precision, m = t.fromCents, y = Ye(g), w = typeof o == "number", M = o instanceof ae;
|
|
687
|
+
if (M && m)
|
|
688
|
+
return o.intValue;
|
|
689
|
+
if (w || M)
|
|
690
|
+
i = M ? o.value : o;
|
|
691
|
+
else if (typeof o == "string") {
|
|
692
|
+
var D = new RegExp("[^-\\d" + d + "]", "g"), E = new RegExp("\\" + d, "g");
|
|
693
|
+
i = o.replace(/\((.*)\)/, "-$1").replace(D, "").replace(E, "."), i = i || 0;
|
|
694
|
+
} else {
|
|
695
|
+
if (c)
|
|
696
|
+
throw Error("Invalid Input");
|
|
697
|
+
i = 0;
|
|
698
|
+
}
|
|
699
|
+
return m || (i *= y, i = i.toFixed(4)), n ? ft(i) : i;
|
|
700
|
+
}
|
|
701
|
+
function jt(o, t) {
|
|
702
|
+
var n = t.pattern, i = t.negativePattern, d = t.symbol, c = t.separator, g = t.decimal, m = t.groups, y = ("" + o).replace(/^-/, "").split("."), w = y[0], M = y[1];
|
|
703
|
+
return (o.value >= 0 ? n : i).replace("!", d).replace("#", w.replace(m, "$1" + c) + (M ? g + M : ""));
|
|
704
|
+
}
|
|
705
|
+
ae.prototype = {
|
|
706
|
+
/**
|
|
707
|
+
* Adds values together.
|
|
708
|
+
* @param {number} number
|
|
709
|
+
* @returns {currency}
|
|
710
|
+
*/
|
|
711
|
+
add: function(t) {
|
|
712
|
+
var n = this.intValue, i = this.s, d = this.p;
|
|
713
|
+
return ae((n += Le(t, i)) / (i.fromCents ? 1 : d), i);
|
|
714
|
+
},
|
|
715
|
+
/**
|
|
716
|
+
* Subtracts value.
|
|
717
|
+
* @param {number} number
|
|
718
|
+
* @returns {currency}
|
|
719
|
+
*/
|
|
720
|
+
subtract: function(t) {
|
|
721
|
+
var n = this.intValue, i = this.s, d = this.p;
|
|
722
|
+
return ae((n -= Le(t, i)) / (i.fromCents ? 1 : d), i);
|
|
723
|
+
},
|
|
724
|
+
/**
|
|
725
|
+
* Multiplies values.
|
|
726
|
+
* @param {number} number
|
|
727
|
+
* @returns {currency}
|
|
728
|
+
*/
|
|
729
|
+
multiply: function(t) {
|
|
730
|
+
var n = this.intValue, i = this.s;
|
|
731
|
+
return ae((n *= t) / (i.fromCents ? 1 : Ye(i.precision)), i);
|
|
732
|
+
},
|
|
733
|
+
/**
|
|
734
|
+
* Divides value.
|
|
735
|
+
* @param {number} number
|
|
736
|
+
* @returns {currency}
|
|
737
|
+
*/
|
|
738
|
+
divide: function(t) {
|
|
739
|
+
var n = this.intValue, i = this.s;
|
|
740
|
+
return ae(n /= Le(t, i, !1), i);
|
|
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(t) {
|
|
749
|
+
for (var n = this.intValue, i = this.p, d = this.s, c = [], g = Math[n >= 0 ? "floor" : "ceil"](n / t), m = Math.abs(n - g * t), y = d.fromCents ? 1 : i; t !== 0; t--) {
|
|
750
|
+
var w = ae(g / y, d);
|
|
751
|
+
m-- > 0 && (w = w[n >= 0 ? "add" : "subtract"](1 / y)), c.push(w);
|
|
752
|
+
}
|
|
753
|
+
return c;
|
|
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 t = this.intValue, n = this.p;
|
|
768
|
+
return ~~(t % 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(t) {
|
|
776
|
+
var n = this.s;
|
|
777
|
+
return typeof t == "function" ? t(this, n) : n.format(this, Object.assign({}, n, t));
|
|
778
|
+
},
|
|
779
|
+
/**
|
|
780
|
+
* Formats the value as a string according to the formatting settings.
|
|
781
|
+
* @returns {string}
|
|
782
|
+
*/
|
|
783
|
+
toString: function() {
|
|
784
|
+
var t = this.intValue, n = this.p, i = this.s;
|
|
785
|
+
return Lt(t / n, i.increment).toFixed(i.precision);
|
|
786
|
+
},
|
|
787
|
+
/**
|
|
788
|
+
* Value for JSON serialization.
|
|
789
|
+
* @returns {float}
|
|
790
|
+
*/
|
|
791
|
+
toJSON: function() {
|
|
792
|
+
return this.value;
|
|
793
|
+
}
|
|
794
|
+
};
|
|
795
|
+
function Ht(o) {
|
|
796
|
+
Et(o, "svelte-bn5dkz", '*,*::before,*::after{font-family:inherit}:host{font-family:inherit}input,textarea,button{font-family:inherit}p{padding:0;margin:0}@keyframes growWidthPercent{from{height:0}to{height:100%}}.ShowBalance{position:relative}.ShowBalance .BalanceValue{font-size:14px;cursor:pointer;display:flex;flex-wrap:nowrap;white-space:nowrap}.ShowBalance .BalanceValue svg{width:16px;fill:black}.ShowBalance .BalanceValue span{padding-left:5px}.ShowBalance .BalanceValue .TriangleActive,.ShowBalance .BalanceValue .TriangleInactive{display:block;margin:0 3px;transition:all 0.2s}.ShowBalance .BalanceValue .TriangleActive:hover,.ShowBalance .BalanceValue .TriangleInactive:hover{transform:scale(1.2)}.ShowBalance .BalanceValue .TriangleActive svg,.ShowBalance .BalanceValue .TriangleInactive svg{margin:2px 0px}.ShowBalance .BalanceValue .TriangleActive{transform:scale(1.1) rotateX(180deg) translateY(3px)}.ShowBalance .BalanceValue .TriangleActive:hover{transform:scale(1.1) rotateX(180deg) translateY(3px)}@media only screen and (max-width: 360px){.ShowBalance .BalanceValue{font-size:12px}.ShowBalance .BalanceValue svg{width:12px}}.BalanceModalWrapper{background:linear-gradient(90deg, rgb(42, 79, 55) 0%, rgb(0, 61, 92) 100%);position:absolute;top:40px;padding:10px;transform:translateX(-45%);box-shadow:0px 30px 30px var(--emw-header-color-primary, var(--emw-color-primary, #D0046C));border-radius:5px;z-index:17;box-shadow:0px 5px 20px 0px #191919;transition:all 0.2s ease-in;opacity:0}.BalanceModalWrapper:before{content:"";background:linear-gradient(90deg, rgb(42, 79, 55) 0%, rgb(0, 61, 92) 100%);clip-path:polygon(50% 0, 0% 100%, 100% 100%);position:absolute;top:-8px;left:50%;width:25px;height:10px;z-index:1}.BalanceModalWrapper.Open{opacity:1}.BalanceModalClose{position:absolute;top:5px;right:5px;width:20px;height:20px;z-index:1;cursor:pointer;transition:all 0.3s ease;opacity:0}.BalanceModalClose:before{content:"";background:var(--emw-color-secondary, var(--emw-color-secondary, white));position:absolute;top:8px;left:0;width:20px;height:2px;transform:rotate(45deg)}.BalanceModalClose:after{content:"";background:var(--emw-color-secondary, var(--emw-color-secondary, white));position:absolute;top:8px;left:0;width:20px;height:2px;transform:rotate(-45deg)}.BalanceModalClose:hover{transform:scale(1.1)}.BalanceModalClose.Open{opacity:1}.BalanceModal{transition:all 0.2s ease-in;width:270px}.BalanceModalHeader{display:flex;align-items:center;justify-content:center;padding:20px 0}.BalanceModalHeader .BalanceModalTitle{font-size:16px;font-weight:bold;color:var(--emw-header-contrast, var(--emw-color-contrast, white))}.BalanceModalRowBoth{display:flex;flex-direction:column;gap:5px;padding:20px 0;border-bottom:1px solid var(--emw-color-gray-100, #E6E6E6)}.BalanceModalRowBoth:last-child{border-bottom:none}.BalanceModalRowBoth .BalanceModalRowLine{display:flex;width:100%;justify-content:space-between}.BalanceModalRowBoth .BalanceModalText{color:var(--emw-header-contrast, var(--emw-color-contrast, white));font-size:14px;text-transform:capitalize}.BalanceModalRowBoth .BalanceModalValue{font-size:14px;font-weight:bold;color:var(--emw-header-contrast, var(--emw-color-contrast, white))}.BalanceModalFooter{display:flex;align-items:center;padding:20px 0 10px}.BalanceModalFooter .BalanceModalAction{background:var(--emw-color-primary);font-size:12px;color:white;text-transform:uppercase;width:100%;border-radius:30px;border:none;padding:10px 0;cursor:pointer;transition:all 0.2s ease-in;box-shadow:0px 3px 7px 0px rgba(0, 0, 0, 0.2)}.BalanceModalFooter .BalanceModalAction:hover{background:rgba(255, 255, 255, 0.1);color:var(--emw-color-primary);box-shadow:0px 0px 0px 2px inset var(--emw-color-primary);font-size:14px}.BalanceModalFooter .BalanceModalAction:active{background:rgba(255, 255, 255, 0.5)}.ShowBalanceModalOverlay{background-color:rgba(0, 0, 0, 0.7);position:fixed;top:0;bottom:0;left:0;right:0;z-index:16;opacity:0;transition:all 0.2s linear}.ShowBalanceModalOverlay.Open{opacity:1}');
|
|
797
|
+
}
|
|
798
|
+
function rt(o, t, n) {
|
|
799
|
+
const i = o.slice();
|
|
800
|
+
return i[48] = t[n], i;
|
|
801
|
+
}
|
|
802
|
+
function it(o, t, n) {
|
|
803
|
+
const i = o.slice();
|
|
804
|
+
return i[51] = t[n], i;
|
|
805
|
+
}
|
|
806
|
+
function st(o) {
|
|
807
|
+
let t, n, i, d, c, g, m, y, w = (
|
|
808
|
+
/*$_*/
|
|
809
|
+
o[5]("Title") + ""
|
|
810
|
+
), M, D, E, j, k, H, A = (
|
|
811
|
+
/*$_*/
|
|
812
|
+
o[5]("DepositButton") + ""
|
|
813
|
+
), z, I, B, S, L, se, J = Ne(Object.keys(
|
|
814
|
+
/*balances*/
|
|
815
|
+
o[1]
|
|
816
|
+
)), V = [];
|
|
817
|
+
for (let _ = 0; _ < J.length; _ += 1)
|
|
818
|
+
V[_] = ct(rt(o, J, _));
|
|
819
|
+
return {
|
|
820
|
+
c() {
|
|
821
|
+
t = U("div"), n = U("div"), d = oe(), c = U("div"), g = U("div"), m = U("div"), y = U("p"), M = ge(w), D = oe(), E = U("div");
|
|
822
|
+
for (let _ = 0; _ < V.length; _ += 1)
|
|
823
|
+
V[_].c();
|
|
824
|
+
j = oe(), k = U("div"), H = U("button"), z = ge(A), R(n, "class", i = "BalanceModalClose " + /*modalOpened*/
|
|
825
|
+
(o[3] ? "Open" : "")), R(y, "class", "BalanceModalTitle"), R(m, "class", "BalanceModalHeader"), R(E, "class", "BalanceModalBody"), R(H, "class", "BalanceModalAction"), R(k, "class", "BalanceModalFooter"), R(g, "class", I = "ModalContent " + /*modalOpened*/
|
|
826
|
+
(o[3] ? "Open" : "")), R(c, "class", B = "BalanceModal " + /*modalOpened*/
|
|
827
|
+
(o[3] ? "Open" : "")), R(t, "class", S = "BalanceModalWrapper " + /*modalOpened*/
|
|
828
|
+
(o[3] ? "Open" : ""));
|
|
829
|
+
},
|
|
830
|
+
m(_, f) {
|
|
831
|
+
Me(_, t, f), T(t, n), T(t, d), T(t, c), T(c, g), T(g, m), T(m, y), T(y, M), T(g, D), T(g, E);
|
|
832
|
+
for (let F = 0; F < V.length; F += 1)
|
|
833
|
+
V[F] && V[F].m(E, null);
|
|
834
|
+
T(g, j), T(g, k), T(k, H), T(H, z), L || (se = [
|
|
835
|
+
Ve(
|
|
836
|
+
n,
|
|
837
|
+
"click",
|
|
838
|
+
/*click_handler_1*/
|
|
839
|
+
o[24]
|
|
840
|
+
),
|
|
841
|
+
Ve(
|
|
842
|
+
H,
|
|
843
|
+
"click",
|
|
844
|
+
/*click_handler_2*/
|
|
845
|
+
o[25]
|
|
846
|
+
)
|
|
847
|
+
], L = !0);
|
|
848
|
+
},
|
|
849
|
+
p(_, f) {
|
|
850
|
+
if (f[0] & /*modalOpened*/
|
|
851
|
+
8 && i !== (i = "BalanceModalClose " + /*modalOpened*/
|
|
852
|
+
(_[3] ? "Open" : "")) && R(n, "class", i), f[0] & /*$_*/
|
|
853
|
+
32 && w !== (w = /*$_*/
|
|
854
|
+
_[5]("Title") + "") && ve(M, w), f[0] & /*balances, currency, formatBalance, $_*/
|
|
855
|
+
178) {
|
|
856
|
+
J = Ne(Object.keys(
|
|
857
|
+
/*balances*/
|
|
858
|
+
_[1]
|
|
859
|
+
));
|
|
860
|
+
let F;
|
|
861
|
+
for (F = 0; F < J.length; F += 1) {
|
|
862
|
+
const te = rt(_, J, F);
|
|
863
|
+
V[F] ? V[F].p(te, f) : (V[F] = ct(te), V[F].c(), V[F].m(E, null));
|
|
864
|
+
}
|
|
865
|
+
for (; F < V.length; F += 1)
|
|
866
|
+
V[F].d(1);
|
|
867
|
+
V.length = J.length;
|
|
868
|
+
}
|
|
869
|
+
f[0] & /*$_*/
|
|
870
|
+
32 && A !== (A = /*$_*/
|
|
871
|
+
_[5]("DepositButton") + "") && ve(z, A), f[0] & /*modalOpened*/
|
|
872
|
+
8 && I !== (I = "ModalContent " + /*modalOpened*/
|
|
873
|
+
(_[3] ? "Open" : "")) && R(g, "class", I), f[0] & /*modalOpened*/
|
|
874
|
+
8 && B !== (B = "BalanceModal " + /*modalOpened*/
|
|
875
|
+
(_[3] ? "Open" : "")) && R(c, "class", B), f[0] & /*modalOpened*/
|
|
876
|
+
8 && S !== (S = "BalanceModalWrapper " + /*modalOpened*/
|
|
877
|
+
(_[3] ? "Open" : "")) && R(t, "class", S);
|
|
878
|
+
},
|
|
879
|
+
d(_) {
|
|
880
|
+
_ && De(t), ut(V, _), L = !1, Mt(se);
|
|
881
|
+
}
|
|
882
|
+
};
|
|
883
|
+
}
|
|
884
|
+
function lt(o) {
|
|
885
|
+
let t, n, i = (
|
|
886
|
+
/*$_*/
|
|
887
|
+
o[5](
|
|
888
|
+
/*k*/
|
|
889
|
+
o[48]
|
|
890
|
+
) + ""
|
|
891
|
+
), d, c, g = (
|
|
892
|
+
/*b*/
|
|
893
|
+
(o[51].productType ? (
|
|
894
|
+
/*$_*/
|
|
895
|
+
o[5](
|
|
896
|
+
/*b*/
|
|
897
|
+
o[51].productType
|
|
898
|
+
)
|
|
899
|
+
) : "") + ""
|
|
900
|
+
), m, y, w, M, D = (
|
|
901
|
+
/*b*/
|
|
902
|
+
(o[51].amount ? (
|
|
903
|
+
/*formatBalance*/
|
|
904
|
+
o[7](
|
|
905
|
+
/*b*/
|
|
906
|
+
o[51].amount
|
|
907
|
+
)
|
|
908
|
+
) : "0") + ""
|
|
909
|
+
), E, j, k, H;
|
|
910
|
+
return {
|
|
911
|
+
c() {
|
|
912
|
+
t = U("div"), n = U("p"), d = ge(i), c = oe(), m = ge(g), y = oe(), w = U("p"), M = U("span"), E = ge(D), j = oe(), k = U("span"), H = ge(
|
|
913
|
+
/*currency*/
|
|
914
|
+
o[4]
|
|
915
|
+
), R(n, "class", "BalanceModalText"), R(M, "class", "BalanceModalAmount"), R(k, "class", "BalanceModalCurrency"), R(w, "class", "BalanceModalValue"), R(t, "class", "BalanceModalRowLine");
|
|
916
|
+
},
|
|
917
|
+
m(A, z) {
|
|
918
|
+
Me(A, t, z), T(t, n), T(n, d), T(n, c), T(n, m), T(t, y), T(t, w), T(w, M), T(M, E), T(w, j), T(w, k), T(k, H);
|
|
919
|
+
},
|
|
920
|
+
p(A, z) {
|
|
921
|
+
z[0] & /*$_, balances*/
|
|
922
|
+
34 && i !== (i = /*$_*/
|
|
923
|
+
A[5](
|
|
924
|
+
/*k*/
|
|
925
|
+
A[48]
|
|
926
|
+
) + "") && ve(d, i), z[0] & /*balances, $_*/
|
|
927
|
+
34 && g !== (g = /*b*/
|
|
928
|
+
(A[51].productType ? (
|
|
929
|
+
/*$_*/
|
|
930
|
+
A[5](
|
|
931
|
+
/*b*/
|
|
932
|
+
A[51].productType
|
|
933
|
+
)
|
|
934
|
+
) : "") + "") && ve(m, g), z[0] & /*balances*/
|
|
935
|
+
2 && D !== (D = /*b*/
|
|
936
|
+
(A[51].amount ? (
|
|
937
|
+
/*formatBalance*/
|
|
938
|
+
A[7](
|
|
939
|
+
/*b*/
|
|
940
|
+
A[51].amount
|
|
941
|
+
)
|
|
942
|
+
) : "0") + "") && ve(E, D), z[0] & /*currency*/
|
|
943
|
+
16 && ve(
|
|
944
|
+
H,
|
|
945
|
+
/*currency*/
|
|
946
|
+
A[4]
|
|
947
|
+
);
|
|
948
|
+
},
|
|
949
|
+
d(A) {
|
|
950
|
+
A && De(t);
|
|
951
|
+
}
|
|
952
|
+
};
|
|
953
|
+
}
|
|
954
|
+
function ct(o) {
|
|
955
|
+
let t, n, i = Ne(
|
|
956
|
+
/*balances*/
|
|
957
|
+
o[1][
|
|
958
|
+
/*k*/
|
|
959
|
+
o[48]
|
|
960
|
+
]
|
|
961
|
+
), d = [];
|
|
962
|
+
for (let c = 0; c < i.length; c += 1)
|
|
963
|
+
d[c] = lt(it(o, i, c));
|
|
964
|
+
return {
|
|
965
|
+
c() {
|
|
966
|
+
t = U("div");
|
|
967
|
+
for (let c = 0; c < d.length; c += 1)
|
|
968
|
+
d[c].c();
|
|
969
|
+
n = oe(), R(t, "class", "BalanceModalRowBoth");
|
|
970
|
+
},
|
|
971
|
+
m(c, g) {
|
|
972
|
+
Me(c, t, g);
|
|
973
|
+
for (let m = 0; m < d.length; m += 1)
|
|
974
|
+
d[m] && d[m].m(t, null);
|
|
975
|
+
T(t, n);
|
|
976
|
+
},
|
|
977
|
+
p(c, g) {
|
|
978
|
+
if (g[0] & /*currency, balances, formatBalance, $_*/
|
|
979
|
+
178) {
|
|
980
|
+
i = Ne(
|
|
981
|
+
/*balances*/
|
|
982
|
+
c[1][
|
|
983
|
+
/*k*/
|
|
984
|
+
c[48]
|
|
985
|
+
]
|
|
986
|
+
);
|
|
987
|
+
let m;
|
|
988
|
+
for (m = 0; m < i.length; m += 1) {
|
|
989
|
+
const y = it(c, i, m);
|
|
990
|
+
d[m] ? d[m].p(y, g) : (d[m] = lt(y), d[m].c(), d[m].m(t, n));
|
|
991
|
+
}
|
|
992
|
+
for (; m < d.length; m += 1)
|
|
993
|
+
d[m].d(1);
|
|
994
|
+
d.length = i.length;
|
|
995
|
+
}
|
|
996
|
+
},
|
|
997
|
+
d(c) {
|
|
998
|
+
c && De(t), ut(d, c);
|
|
999
|
+
}
|
|
1000
|
+
};
|
|
1001
|
+
}
|
|
1002
|
+
function dt(o) {
|
|
1003
|
+
let t, n, i;
|
|
1004
|
+
return {
|
|
1005
|
+
c() {
|
|
1006
|
+
t = U("div"), R(t, "class", "ShowBalanceModalOverlay");
|
|
1007
|
+
},
|
|
1008
|
+
m(d, c) {
|
|
1009
|
+
Me(d, t, c), n || (i = Ve(
|
|
1010
|
+
t,
|
|
1011
|
+
"click",
|
|
1012
|
+
/*click_handler_3*/
|
|
1013
|
+
o[26]
|
|
1014
|
+
), n = !0);
|
|
1015
|
+
},
|
|
1016
|
+
p: We,
|
|
1017
|
+
d(d) {
|
|
1018
|
+
d && De(t), n = !1, i();
|
|
1019
|
+
}
|
|
1020
|
+
};
|
|
1021
|
+
}
|
|
1022
|
+
function zt(o) {
|
|
1023
|
+
let t, n, i, d, c = (
|
|
1024
|
+
/*balances*/
|
|
1025
|
+
(o[1].Total ? (
|
|
1026
|
+
/*formatBalance*/
|
|
1027
|
+
o[7](
|
|
1028
|
+
/*balances*/
|
|
1029
|
+
o[1].Total[0].amount
|
|
1030
|
+
)
|
|
1031
|
+
) : "0") + ""
|
|
1032
|
+
), g, m, y, w, M, D, E, j, k, H, A, z, I = (
|
|
1033
|
+
/*showBalance*/
|
|
1034
|
+
o[2] && st(o)
|
|
1035
|
+
), B = (
|
|
1036
|
+
/*showBalance*/
|
|
1037
|
+
o[2] && dt(o)
|
|
1038
|
+
);
|
|
1039
|
+
return {
|
|
1040
|
+
c() {
|
|
1041
|
+
t = U("div"), n = U("div"), i = U("div"), d = U("p"), g = ge(c), m = oe(), y = ge(
|
|
1042
|
+
/*currency*/
|
|
1043
|
+
o[4]
|
|
1044
|
+
), w = oe(), M = U("span"), D = nt("svg"), E = nt("path"), k = oe(), I && I.c(), H = oe(), B && B.c(), R(E, "id", "arrow"), R(E, "d", "M281.541,447.921a.488.488,0,0,0,.295-.122l6.5-5.851a.488.488,0,1,0-.65-.726l-6.176,5.556-6.176-5.556h0a.488.488,0,1,0-.65.726l6.5,5.851a.488.488,0,0,0,.355.122Z"), R(E, "transform", "translate(-274.511 -441.088)"), R(E, "fill", "#d1d1d1"), R(D, "xmlns", "http://www.w3.org/2000/svg"), R(D, "width", "14"), R(D, "height", "6.835"), R(D, "viewBox", "0 0 14 6.835"), R(M, "class", j = /*modalOpened*/
|
|
1045
|
+
o[3] ? "TriangleActive" : "TriangleInactive"), R(i, "class", "BalanceValue"), R(n, "class", "ShowBalance");
|
|
1046
|
+
},
|
|
1047
|
+
m(S, L) {
|
|
1048
|
+
Me(S, t, L), T(t, n), T(n, i), T(i, d), T(d, g), T(d, m), T(d, y), T(i, w), T(i, M), T(M, D), T(D, E), T(n, k), I && I.m(n, null), T(t, H), B && B.m(t, null), o[27](t), A || (z = Ve(
|
|
1049
|
+
i,
|
|
1050
|
+
"click",
|
|
1051
|
+
/*click_handler*/
|
|
1052
|
+
o[23]
|
|
1053
|
+
), A = !0);
|
|
1054
|
+
},
|
|
1055
|
+
p(S, L) {
|
|
1056
|
+
L[0] & /*balances*/
|
|
1057
|
+
2 && c !== (c = /*balances*/
|
|
1058
|
+
(S[1].Total ? (
|
|
1059
|
+
/*formatBalance*/
|
|
1060
|
+
S[7](
|
|
1061
|
+
/*balances*/
|
|
1062
|
+
S[1].Total[0].amount
|
|
1063
|
+
)
|
|
1064
|
+
) : "0") + "") && ve(g, c), L[0] & /*currency*/
|
|
1065
|
+
16 && ve(
|
|
1066
|
+
y,
|
|
1067
|
+
/*currency*/
|
|
1068
|
+
S[4]
|
|
1069
|
+
), L[0] & /*modalOpened*/
|
|
1070
|
+
8 && j !== (j = /*modalOpened*/
|
|
1071
|
+
S[3] ? "TriangleActive" : "TriangleInactive") && R(M, "class", j), /*showBalance*/
|
|
1072
|
+
S[2] ? I ? I.p(S, L) : (I = st(S), I.c(), I.m(n, null)) : I && (I.d(1), I = null), /*showBalance*/
|
|
1073
|
+
S[2] ? B ? B.p(S, L) : (B = dt(S), B.c(), B.m(t, null)) : B && (B.d(1), B = null);
|
|
1074
|
+
},
|
|
1075
|
+
i: We,
|
|
1076
|
+
o: We,
|
|
1077
|
+
d(S) {
|
|
1078
|
+
S && De(t), I && I.d(), B && B.d(), o[27](null), A = !1, z();
|
|
1079
|
+
}
|
|
1080
|
+
};
|
|
1081
|
+
}
|
|
1082
|
+
function Ut(o, t, n) {
|
|
1083
|
+
let i;
|
|
1084
|
+
At(o, Ot, (s) => n(5, i = s));
|
|
1085
|
+
let { userid: d = "" } = t, { session: c = "" } = t, { endpoint: g = "" } = t, { lang: m = "en" } = t, { clientstyling: y = "" } = t, { clientstylingurl: w = "" } = t, { translationurl: M = "" } = t, { customlocaleidentifier: D = "" } = t, { gmversion: E = "" } = t, { displaybalanceoption: j = "All" } = t, { totalcalculationmode: k = "totalRealAmount" } = t, { currencyseparator: H = "" } = t, { currencydecimal: A = "" } = t, { currencyprecision: z = "" } = t, I, B, S, L = !1, se = !1, J = !1, V = "", _ = [];
|
|
1086
|
+
const f = {}, F = ["totalAmount", "totalCashAmount", "totalRealAmount", "totalWithdrawableAmount"], te = () => {
|
|
1087
|
+
fetch(M).then((s) => s.json()).then((s) => Object.keys(s).forEach((e) => at(e, s[e]))).catch((s) => console.log(s));
|
|
1088
|
+
};
|
|
1089
|
+
Object.keys(ot).forEach((s) => at(s, ot[s]));
|
|
1090
|
+
const Oe = () => {
|
|
1091
|
+
switch (k) {
|
|
1092
|
+
case "totalAmount":
|
|
1093
|
+
return (s, e, a) => a.walletType !== "CreditLine" && a.affectedAmount ? s + a.affectedAmount : s;
|
|
1094
|
+
case "totalCashAmount":
|
|
1095
|
+
return (s, e, a) => a.walletType !== "CreditLine" && (e === "Bonus" || e === "Real") && a.affectedAmount ? s + a.affectedAmount : s;
|
|
1096
|
+
case "totalRealAmount":
|
|
1097
|
+
return (s, e, a) => a.walletType !== "CreditLine" && e === "Real" && a.affectedAmount ? s + a.affectedAmount : a.walletType === "CreditLine" && e === "Real" && a.affectedAmount ? s - Math.abs(a.affectedAmount) : s;
|
|
1098
|
+
case "totalWithdrawableAmount":
|
|
1099
|
+
return (s, e, a) => a.walletType !== "CreditLine" && (e === "Real" || e === "RealNegativeRemainder") && a.affectedAmount ? s + a.affectedAmount : e === "DepositWagering" && a.affectedAmount ? s - a.affectedAmount : s;
|
|
1100
|
+
}
|
|
1101
|
+
}, le = (s) => {
|
|
1102
|
+
switch (s) {
|
|
1103
|
+
case "balance":
|
|
1104
|
+
window.postMessage(
|
|
1105
|
+
{
|
|
1106
|
+
type: "BalanceModalStatus",
|
|
1107
|
+
status: "open"
|
|
1108
|
+
},
|
|
1109
|
+
window.location.href
|
|
1110
|
+
), n(2, se = !0), setTimeout(() => n(3, J = !0), 150);
|
|
1111
|
+
break;
|
|
1112
|
+
case "closebalance":
|
|
1113
|
+
n(3, J = !1), window.postMessage(
|
|
1114
|
+
{
|
|
1115
|
+
type: "BalanceModalStatus",
|
|
1116
|
+
status: "close"
|
|
1117
|
+
},
|
|
1118
|
+
window.location.href
|
|
1119
|
+
), setTimeout(
|
|
1120
|
+
() => {
|
|
1121
|
+
n(2, se = !1);
|
|
1122
|
+
},
|
|
1123
|
+
150
|
|
1124
|
+
);
|
|
1125
|
+
break;
|
|
1126
|
+
}
|
|
1127
|
+
}, Te = () => {
|
|
1128
|
+
if (D.includes(m))
|
|
1129
|
+
return D;
|
|
1130
|
+
}, Se = (s) => D ? new Intl.NumberFormat(Te(), { useGrouping: !0 }).format(s) : H && A ? ae(s, {
|
|
1131
|
+
separator: H,
|
|
1132
|
+
decimal: A,
|
|
1133
|
+
symbol: "",
|
|
1134
|
+
precision: parseInt(z || "2", 10)
|
|
1135
|
+
}).format() : ae(s, {
|
|
1136
|
+
separator: ".",
|
|
1137
|
+
decimal: ",",
|
|
1138
|
+
symbol: "",
|
|
1139
|
+
precision: parseInt(z || "2", 10)
|
|
1140
|
+
}).format(), re = () => tt(this, null, function* () {
|
|
1141
|
+
var e, a;
|
|
1142
|
+
const s = new URL(`${g}/v1/player/${d}/account`);
|
|
1143
|
+
try {
|
|
1144
|
+
L = !0;
|
|
1145
|
+
const l = yield fetch(s, {
|
|
1146
|
+
method: "GET",
|
|
1147
|
+
headers: { "X-SessionID": c }
|
|
1148
|
+
}), r = yield l.json();
|
|
1149
|
+
if (l.ok)
|
|
1150
|
+
L = !1, window.postMessage({ type: "BalancedFetched" }, window.location.href), _ = r.items, n(4, V = Object.keys(r.totalAmount)[0]), n(1, f.Total = [{ amount: r.totalAmount[V] }], f), n(
|
|
1151
|
+
1,
|
|
1152
|
+
f.Real = [
|
|
1153
|
+
{
|
|
1154
|
+
amount: (e = _.find((p) => p.displayName === "Casino")) == null ? void 0 : e.balanceAmount
|
|
1155
|
+
}
|
|
1156
|
+
],
|
|
1157
|
+
f
|
|
1158
|
+
), n(
|
|
1159
|
+
1,
|
|
1160
|
+
f.Bonus = [
|
|
1161
|
+
{
|
|
1162
|
+
amount: (a = _.find((p) => p.displayName === "UBS")) == null ? void 0 : a.balanceAmount
|
|
1163
|
+
}
|
|
1164
|
+
],
|
|
1165
|
+
f
|
|
1166
|
+
);
|
|
1167
|
+
else
|
|
1168
|
+
throw L = !1, new Error("Failed to fetch balance data !");
|
|
1169
|
+
} catch (l) {
|
|
1170
|
+
L = !1, console.log("Balance error: ", l);
|
|
1171
|
+
} finally {
|
|
1172
|
+
L = !1;
|
|
1173
|
+
}
|
|
1174
|
+
}), he = () => {
|
|
1175
|
+
L = !0;
|
|
1176
|
+
const s = new URL(`${g}/v2/player/${d}/balance`), e = new Headers();
|
|
1177
|
+
e.append("X-SessionID", c), fetch(s, { method: "GET", headers: e }).then((l) => l.json()).then((l) => {
|
|
1178
|
+
L = !1;
|
|
1179
|
+
const [r, p] = Object.entries(l[k])[0];
|
|
1180
|
+
if (n(4, V = r), n(1, f.Total = [{ amount: p }], f), n(1, f.Real = [], f), n(1, f.Bonus = [], f), n(1, f.Credit = [], f), !l.items[0].productType) {
|
|
1181
|
+
k === "totalRealAmount" && delete f.Real;
|
|
1182
|
+
const h = Object.values(l.totalBonusAmount)[0];
|
|
1183
|
+
f.Bonus.push({ amount: h });
|
|
1184
|
+
for (const C of l.items)
|
|
1185
|
+
C.type === "Real" && (C.creditLine && f.Credit.length === 0 && f.Credit.push({ amount: C.creditLine }), k !== "totalRealAmount" && (f.Real.length === 0 ? f.Real.push({ amount: C.amount }) : n(1, f.Real[0].amount += C.amount, f)));
|
|
1186
|
+
return;
|
|
1187
|
+
}
|
|
1188
|
+
let u = l.items;
|
|
1189
|
+
j && j !== "All" && (u = l.items.filter((h) => h.productType === j));
|
|
1190
|
+
for (const h of u) {
|
|
1191
|
+
if (h.type === "Real") {
|
|
1192
|
+
h.creditLine && f.Credit.push({
|
|
1193
|
+
amount: h.creditLine,
|
|
1194
|
+
productType: h.productType
|
|
1195
|
+
});
|
|
1196
|
+
const C = f.Real.findIndex((b) => b.productType === h.productType);
|
|
1197
|
+
C > 0 ? n(1, f.Real[C].amount += h.amount, f) : f.Real.push({
|
|
1198
|
+
amount: h.amount,
|
|
1199
|
+
productType: h.productType
|
|
1200
|
+
});
|
|
1201
|
+
continue;
|
|
1202
|
+
}
|
|
1203
|
+
if (h.type === "Bonus") {
|
|
1204
|
+
const C = f.Bonus.findIndex((b) => b.productType === h.productType);
|
|
1205
|
+
C > 0 ? n(1, f.Bonus[C].amount += h.amount, f) : f.Bonus.push({
|
|
1206
|
+
amount: h.amount,
|
|
1207
|
+
productType: h.productType
|
|
1208
|
+
});
|
|
1209
|
+
}
|
|
1210
|
+
}
|
|
1211
|
+
}).catch((l) => {
|
|
1212
|
+
throw L = !1, new Error("Failed to fetch balance data !");
|
|
1213
|
+
});
|
|
1214
|
+
}, ce = () => {
|
|
1215
|
+
if (S && S.close(), c.length < 1) return;
|
|
1216
|
+
let s, e;
|
|
1217
|
+
switch (E) {
|
|
1218
|
+
case "gm16":
|
|
1219
|
+
s = new URL(`${g}/v2/player/${d}/information/updates`), e = (r) => Ce(r.data);
|
|
1220
|
+
break;
|
|
1221
|
+
case "gmcore":
|
|
1222
|
+
s = new URL(`${g}/v1/player/${d}/balance/updates`), e = (r) => ie(r.data);
|
|
1223
|
+
break;
|
|
1224
|
+
}
|
|
1225
|
+
const a = {
|
|
1226
|
+
accept: "text/event-stream",
|
|
1227
|
+
"X-SessionId": c
|
|
1228
|
+
}, l = new Ft.EventSourcePolyfill(s, { headers: a });
|
|
1229
|
+
S = l, l.addEventListener("message", e);
|
|
1230
|
+
}, we = (s) => {
|
|
1231
|
+
let e;
|
|
1232
|
+
try {
|
|
1233
|
+
e = JSON.parse(s);
|
|
1234
|
+
} catch (a) {
|
|
1235
|
+
console.log("Balance stream failed: ", a);
|
|
1236
|
+
return;
|
|
1237
|
+
}
|
|
1238
|
+
return e;
|
|
1239
|
+
}, ie = (s) => {
|
|
1240
|
+
var r, p;
|
|
1241
|
+
const e = we(s);
|
|
1242
|
+
e || ce();
|
|
1243
|
+
let a = "0";
|
|
1244
|
+
const l = e.balanceChange;
|
|
1245
|
+
_ = _.map((u) => (l && l[u.id] && (u = et($e({}, u), {
|
|
1246
|
+
balanceAmount: l[u.id].afterAmount
|
|
1247
|
+
})), a = (parseFloat(u == null ? void 0 : u.balanceAmount) + parseFloat(a)).toString(), u)), n(1, f.Real = [{ amount: (r = _[0]) == null ? void 0 : r.balanceAmount }], f), n(1, f.Bonus = [{ amount: (p = _[1]) == null ? void 0 : p.balanceAmount }], f), n(1, f.Total = [{ amount: Number(a) }], f);
|
|
1248
|
+
}, Ce = (s) => {
|
|
1249
|
+
const e = we(s);
|
|
1250
|
+
(!e || e.type !== "BALANCE_UPDATE_V2") && ce();
|
|
1251
|
+
const a = e.body.balanceChange;
|
|
1252
|
+
for (const [l, r] of Object.entries(a))
|
|
1253
|
+
if (n(1, f.Total[0].amount = I(f.Total[0].amount, l, r), f), !!f[l])
|
|
1254
|
+
for (const p of f[l])
|
|
1255
|
+
(!p.productType || r.productType && r.productType === p.productType) && (p.amount = r.afterAmount);
|
|
1256
|
+
}, _e = () => {
|
|
1257
|
+
le("closebalance"), window.postMessage({ type: "GoToDeposit" }, window.location.href), typeof gtag == "function" && gtag("event", "GoToDeposit", { context: "PlayerAccountBalanceModal" });
|
|
1258
|
+
}, je = () => {
|
|
1259
|
+
F.includes(k) || (console.error(`
|
|
1260
|
+
Unsupported value ('${k}') for totalcalculationmode parameter.
|
|
1261
|
+
Only the following values are supported ${F}.
|
|
1262
|
+
Using default value ('${F[0]}').
|
|
1263
|
+
`), n(9, k = F[0]));
|
|
1264
|
+
}, He = () => {
|
|
1265
|
+
switch (kt(m), je(), I = Oe(), E) {
|
|
1266
|
+
case "gmcore":
|
|
1267
|
+
re();
|
|
1268
|
+
break;
|
|
1269
|
+
case "gm16":
|
|
1270
|
+
he();
|
|
1271
|
+
break;
|
|
1272
|
+
default:
|
|
1273
|
+
throw Error(`Invalid apiversion attribute: ${E}`);
|
|
1274
|
+
}
|
|
1275
|
+
}, ke = (s) => s.data && s.data.type === "LogoutSuccessfull" && S.close(), ze = () => {
|
|
1276
|
+
const s = document.createElement("style");
|
|
1277
|
+
s.innerHTML = y, B.appendChild(s);
|
|
1278
|
+
}, Re = () => {
|
|
1279
|
+
const s = new URL(w), e = document.createElement("style");
|
|
1280
|
+
fetch(s.href).then((a) => a.text()).then((a) => {
|
|
1281
|
+
e.innerHTML = a, setTimeout(
|
|
1282
|
+
() => {
|
|
1283
|
+
B.appendChild(e);
|
|
1284
|
+
},
|
|
1285
|
+
1
|
|
1286
|
+
);
|
|
1287
|
+
});
|
|
1288
|
+
}, Ee = () => {
|
|
1289
|
+
window.postMessage({ type: "UpdateBalanceBackground" }, window.location.href);
|
|
1290
|
+
};
|
|
1291
|
+
xt(() => (window.addEventListener("message", ke, !1), () => {
|
|
1292
|
+
window.removeEventListener("message", ke), S && S.close();
|
|
1293
|
+
}));
|
|
1294
|
+
const me = () => le("balance"), Q = () => le("closebalance"), Ue = () => _e(), Pe = () => le("closeBalance");
|
|
1295
|
+
function Xe(s) {
|
|
1296
|
+
Dt[s ? "unshift" : "push"](() => {
|
|
1297
|
+
B = s, n(0, B);
|
|
1298
|
+
});
|
|
1299
|
+
}
|
|
1300
|
+
return o.$$set = (s) => {
|
|
1301
|
+
"userid" in s && n(10, d = s.userid), "session" in s && n(11, c = s.session), "endpoint" in s && n(12, g = s.endpoint), "lang" in s && n(13, m = s.lang), "clientstyling" in s && n(14, y = s.clientstyling), "clientstylingurl" in s && n(15, w = s.clientstylingurl), "translationurl" in s && n(16, M = s.translationurl), "customlocaleidentifier" in s && n(17, D = s.customlocaleidentifier), "gmversion" in s && n(18, E = s.gmversion), "displaybalanceoption" in s && n(19, j = s.displaybalanceoption), "totalcalculationmode" in s && n(9, k = s.totalcalculationmode), "currencyseparator" in s && n(20, H = s.currencyseparator), "currencydecimal" in s && n(21, A = s.currencydecimal), "currencyprecision" in s && n(22, z = s.currencyprecision);
|
|
1302
|
+
}, o.$$.update = () => {
|
|
1303
|
+
o.$$.dirty[0] & /*lang*/
|
|
1304
|
+
8192 && m && Te(), o.$$.dirty[0] & /*endpoint, userid, session, lang, gmversion, displaybalanceoption*/
|
|
1305
|
+
801792 && g && d && c && m && E && j && He(), o.$$.dirty[0] & /*endpoint, userid, session, gmversion*/
|
|
1306
|
+
269312 && g && d && c && E && ce(), o.$$.dirty[0] & /*clientstyling, customStylingContainer*/
|
|
1307
|
+
16385 && y && B && ze(), o.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
|
|
1308
|
+
32769 && w && B && Re(), o.$$.dirty[0] & /*translationurl*/
|
|
1309
|
+
65536 && M && te(), o.$$.dirty[0] & /*balances*/
|
|
1310
|
+
2 && f.Total && Ee();
|
|
1311
|
+
}, [
|
|
1312
|
+
B,
|
|
1313
|
+
f,
|
|
1314
|
+
se,
|
|
1315
|
+
J,
|
|
1316
|
+
V,
|
|
1317
|
+
i,
|
|
1318
|
+
le,
|
|
1319
|
+
Se,
|
|
1320
|
+
_e,
|
|
1321
|
+
k,
|
|
1322
|
+
d,
|
|
1323
|
+
c,
|
|
1324
|
+
g,
|
|
1325
|
+
m,
|
|
1326
|
+
y,
|
|
1327
|
+
w,
|
|
1328
|
+
M,
|
|
1329
|
+
D,
|
|
1330
|
+
E,
|
|
1331
|
+
j,
|
|
1332
|
+
H,
|
|
1333
|
+
A,
|
|
1334
|
+
z,
|
|
1335
|
+
me,
|
|
1336
|
+
Q,
|
|
1337
|
+
Ue,
|
|
1338
|
+
Pe,
|
|
1339
|
+
Xe
|
|
1340
|
+
];
|
|
1341
|
+
}
|
|
1342
|
+
class Pt extends St {
|
|
1343
|
+
constructor(t) {
|
|
1344
|
+
super(), Ct(
|
|
1345
|
+
this,
|
|
1346
|
+
t,
|
|
1347
|
+
Ut,
|
|
1348
|
+
zt,
|
|
1349
|
+
Rt,
|
|
1350
|
+
{
|
|
1351
|
+
userid: 10,
|
|
1352
|
+
session: 11,
|
|
1353
|
+
endpoint: 12,
|
|
1354
|
+
lang: 13,
|
|
1355
|
+
clientstyling: 14,
|
|
1356
|
+
clientstylingurl: 15,
|
|
1357
|
+
translationurl: 16,
|
|
1358
|
+
customlocaleidentifier: 17,
|
|
1359
|
+
gmversion: 18,
|
|
1360
|
+
displaybalanceoption: 19,
|
|
1361
|
+
totalcalculationmode: 9,
|
|
1362
|
+
currencyseparator: 20,
|
|
1363
|
+
currencydecimal: 21,
|
|
1364
|
+
currencyprecision: 22
|
|
1365
|
+
},
|
|
1366
|
+
Ht,
|
|
1367
|
+
[-1, -1]
|
|
1368
|
+
);
|
|
1369
|
+
}
|
|
1370
|
+
get userid() {
|
|
1371
|
+
return this.$$.ctx[10];
|
|
1372
|
+
}
|
|
1373
|
+
set userid(t) {
|
|
1374
|
+
this.$$set({ userid: t }), Y();
|
|
1375
|
+
}
|
|
1376
|
+
get session() {
|
|
1377
|
+
return this.$$.ctx[11];
|
|
1378
|
+
}
|
|
1379
|
+
set session(t) {
|
|
1380
|
+
this.$$set({ session: t }), Y();
|
|
1381
|
+
}
|
|
1382
|
+
get endpoint() {
|
|
1383
|
+
return this.$$.ctx[12];
|
|
1384
|
+
}
|
|
1385
|
+
set endpoint(t) {
|
|
1386
|
+
this.$$set({ endpoint: t }), Y();
|
|
1387
|
+
}
|
|
1388
|
+
get lang() {
|
|
1389
|
+
return this.$$.ctx[13];
|
|
1390
|
+
}
|
|
1391
|
+
set lang(t) {
|
|
1392
|
+
this.$$set({ lang: t }), Y();
|
|
1393
|
+
}
|
|
1394
|
+
get clientstyling() {
|
|
1395
|
+
return this.$$.ctx[14];
|
|
1396
|
+
}
|
|
1397
|
+
set clientstyling(t) {
|
|
1398
|
+
this.$$set({ clientstyling: t }), Y();
|
|
1399
|
+
}
|
|
1400
|
+
get clientstylingurl() {
|
|
1401
|
+
return this.$$.ctx[15];
|
|
1402
|
+
}
|
|
1403
|
+
set clientstylingurl(t) {
|
|
1404
|
+
this.$$set({ clientstylingurl: t }), Y();
|
|
1405
|
+
}
|
|
1406
|
+
get translationurl() {
|
|
1407
|
+
return this.$$.ctx[16];
|
|
1408
|
+
}
|
|
1409
|
+
set translationurl(t) {
|
|
1410
|
+
this.$$set({ translationurl: t }), Y();
|
|
1411
|
+
}
|
|
1412
|
+
get customlocaleidentifier() {
|
|
1413
|
+
return this.$$.ctx[17];
|
|
1414
|
+
}
|
|
1415
|
+
set customlocaleidentifier(t) {
|
|
1416
|
+
this.$$set({ customlocaleidentifier: t }), Y();
|
|
1417
|
+
}
|
|
1418
|
+
get gmversion() {
|
|
1419
|
+
return this.$$.ctx[18];
|
|
1420
|
+
}
|
|
1421
|
+
set gmversion(t) {
|
|
1422
|
+
this.$$set({ gmversion: t }), Y();
|
|
1423
|
+
}
|
|
1424
|
+
get displaybalanceoption() {
|
|
1425
|
+
return this.$$.ctx[19];
|
|
1426
|
+
}
|
|
1427
|
+
set displaybalanceoption(t) {
|
|
1428
|
+
this.$$set({ displaybalanceoption: t }), Y();
|
|
1429
|
+
}
|
|
1430
|
+
get totalcalculationmode() {
|
|
1431
|
+
return this.$$.ctx[9];
|
|
1432
|
+
}
|
|
1433
|
+
set totalcalculationmode(t) {
|
|
1434
|
+
this.$$set({ totalcalculationmode: t }), Y();
|
|
1435
|
+
}
|
|
1436
|
+
get currencyseparator() {
|
|
1437
|
+
return this.$$.ctx[20];
|
|
1438
|
+
}
|
|
1439
|
+
set currencyseparator(t) {
|
|
1440
|
+
this.$$set({ currencyseparator: t }), Y();
|
|
1441
|
+
}
|
|
1442
|
+
get currencydecimal() {
|
|
1443
|
+
return this.$$.ctx[21];
|
|
1444
|
+
}
|
|
1445
|
+
set currencydecimal(t) {
|
|
1446
|
+
this.$$set({ currencydecimal: t }), Y();
|
|
1447
|
+
}
|
|
1448
|
+
get currencyprecision() {
|
|
1449
|
+
return this.$$.ctx[22];
|
|
1450
|
+
}
|
|
1451
|
+
set currencyprecision(t) {
|
|
1452
|
+
this.$$set({ currencyprecision: t }), Y();
|
|
1453
|
+
}
|
|
1454
|
+
}
|
|
1455
|
+
_t(Pt, { userid: {}, session: {}, endpoint: {}, lang: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {}, customlocaleidentifier: {}, gmversion: {}, displaybalanceoption: {}, totalcalculationmode: {}, currencyseparator: {}, currencydecimal: {}, currencyprecision: {} }, [], [], !0);
|
|
1456
|
+
export {
|
|
1457
|
+
Pt as default
|
|
1458
|
+
};
|