@everymatrix/player-limit-notification 0.14.4 → 0.14.6
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/{PlayerAccountGamingLimitsHistory2Nd-BULv2YRK.js → PlayerAccountGamingLimitsHistory2Nd-C-kVqqxT.js} +32 -32
- package/components/{PlayerAccountGamingLimitsHistory2Nd-CyBiespU.js → PlayerAccountGamingLimitsHistory2Nd-z3bXp1dk.js} +73 -73
- package/components/{PlayerAccountGamingLimitsPage2Gm16Nd-DNrNq-BG.js → PlayerAccountGamingLimitsPage2Gm16Nd-Bv_KZvS2.js} +92 -92
- package/components/{PlayerAccountGamingLimitsPage2Gm16Nd-CYxgOf4l.js → PlayerAccountGamingLimitsPage2Gm16Nd-DWV868D2.js} +83 -83
- package/components/{PlayerAccountGamingLimitsWrapper2Nd-BIq6Loz_.js → PlayerAccountGamingLimitsWrapper2Nd-Cau8L8MQ.js} +86 -86
- package/components/{PlayerAccountGamingLimitsWrapper2Nd-CcAAfd8e.js → PlayerAccountGamingLimitsWrapper2Nd-coe-8402.js} +85 -85
- package/components/{PlayerLimitNotification-BsVJsyYv.js → PlayerLimitNotification-CvQlhnPu.js} +51 -51
- package/components/{PlayerLimitNotification-Cli_k3bu.js → PlayerLimitNotification-Y644HK5a.js} +52 -52
- package/es2015/player-limit-notification.js +1 -1
- package/esnext/player-limit-notification.js +1 -1
- package/package.json +1 -1
|
@@ -9,15 +9,15 @@ var $ = (e, i, t) => i in e ? vi(e, i, { enumerable: !0, configurable: !0, writa
|
|
|
9
9
|
Ti.call(i, t) && $(e, t, i[t]);
|
|
10
10
|
return e;
|
|
11
11
|
};
|
|
12
|
-
import {
|
|
13
|
-
import { i as
|
|
12
|
+
import { b as bi, a as Si, S as _i, w as Pi, D as Ai, s as P, e as Ci, z as E, o as z, x as R, p as b, f as d, i as ki, B as xi, g as ii, K as x, d as g, Q as D, r as ei, n as Di, U as M, y as Ei, N as q, O as X, M as zi, A as ti, G as Ri, H as ji, I as Wi, k as Hi, $ as Ii } from "./PlayerLimitNotification-Y644HK5a.js";
|
|
13
|
+
import { i as Oi } from "./PlayerAccountGamingLimitsWrapper2Nd-Cau8L8MQ.js";
|
|
14
14
|
function si(e, i) {
|
|
15
15
|
bi(e, i);
|
|
16
16
|
}
|
|
17
|
-
function
|
|
17
|
+
function Fi(e) {
|
|
18
18
|
Si.set(e);
|
|
19
19
|
}
|
|
20
|
-
const
|
|
20
|
+
const Y = {
|
|
21
21
|
en: {
|
|
22
22
|
expandLimits: "Limit history",
|
|
23
23
|
daily: "per day",
|
|
@@ -267,7 +267,7 @@ function Mi(e) {
|
|
|
267
267
|
w[h] = oi(ri(e, A, h));
|
|
268
268
|
return {
|
|
269
269
|
c() {
|
|
270
|
-
i = b("div"), t = b("div"), r = b("button"), n =
|
|
270
|
+
i = b("div"), t = b("div"), r = b("button"), n = D(o), l = q(), a = X("svg"), v = X("path"), L = X("path"), p = q(), y = b("div");
|
|
271
271
|
for (let h = 0; h < w.length; h += 1)
|
|
272
272
|
w[h].c();
|
|
273
273
|
d(v, "d", "M10.5 15l7.5 7.5 7.5-7.5z"), d(v, "class", "svelte-1wi0iai"), d(L, "d", "M0 0h36v36h-36z"), d(L, "fill", "none"), d(L, "class", "svelte-1wi0iai"), d(a, "class", "ExpandArrow " + (/*isDesktop*/
|
|
@@ -289,7 +289,7 @@ function Mi(e) {
|
|
|
289
289
|
R(h, i, S), g(i, t), g(t, r), g(r, n), g(r, l), g(r, a), g(a, v), g(a, L), g(t, p), g(t, y);
|
|
290
290
|
for (let m = 0; m < w.length; m += 1)
|
|
291
291
|
w[m] && w[m].m(y, null);
|
|
292
|
-
u || (f =
|
|
292
|
+
u || (f = Ei(
|
|
293
293
|
r,
|
|
294
294
|
"click",
|
|
295
295
|
/*toggleHistoryDisplayArea*/
|
|
@@ -329,12 +329,12 @@ function Mi(e) {
|
|
|
329
329
|
);
|
|
330
330
|
},
|
|
331
331
|
d(h) {
|
|
332
|
-
h && z(i),
|
|
332
|
+
h && z(i), Di(w, h), u = !1, f();
|
|
333
333
|
}
|
|
334
334
|
};
|
|
335
335
|
}
|
|
336
336
|
function Ni(e) {
|
|
337
|
-
return { c:
|
|
337
|
+
return { c: E, m: E, p: E, d: E };
|
|
338
338
|
}
|
|
339
339
|
function Ui(e) {
|
|
340
340
|
let i, t = (
|
|
@@ -346,7 +346,7 @@ function Ui(e) {
|
|
|
346
346
|
), r;
|
|
347
347
|
return {
|
|
348
348
|
c() {
|
|
349
|
-
i = b("p"), r =
|
|
349
|
+
i = b("p"), r = D(t), d(i, "class", "svelte-1wi0iai");
|
|
350
350
|
},
|
|
351
351
|
m(o, n) {
|
|
352
352
|
R(o, i, n), g(i, r);
|
|
@@ -377,7 +377,7 @@ function Gi(e) {
|
|
|
377
377
|
), y;
|
|
378
378
|
return {
|
|
379
379
|
c() {
|
|
380
|
-
i = b("div"), t = b("span"), r = b("span"), n =
|
|
380
|
+
i = b("div"), t = b("span"), r = b("span"), n = D(o), l = b("span"), v = D(a), L = b("span"), y = D(p), d(r, "class", "LimitType svelte-1wi0iai"), d(l, "class", "LimitAmountPeriod svelte-1wi0iai"), d(t, "class", "GeneralLimitInformation svelte-1wi0iai"), d(L, "class", "DateLimitInformation svelte-1wi0iai"), d(i, "class", "HistoryRow svelte-1wi0iai");
|
|
381
381
|
},
|
|
382
382
|
m(u, f) {
|
|
383
383
|
R(u, i, f), g(i, t), g(t, r), g(r, n), g(t, l), g(l, v), g(i, L), g(L, y);
|
|
@@ -409,7 +409,7 @@ function Ki(e) {
|
|
|
409
409
|
), y;
|
|
410
410
|
return {
|
|
411
411
|
c() {
|
|
412
|
-
i = b("div"), t = b("span"), r = b("span"), n =
|
|
412
|
+
i = b("div"), t = b("span"), r = b("span"), n = D(o), l = b("span"), v = D(a), L = b("span"), y = D(p), d(r, "class", "LimitType svelte-1wi0iai"), d(l, "class", "LimitAmountPeriod svelte-1wi0iai"), d(t, "class", "GeneralLimitInformation svelte-1wi0iai"), d(L, "class", "DateLimitInformation svelte-1wi0iai"), d(i, "class", "HistoryRow svelte-1wi0iai");
|
|
413
413
|
},
|
|
414
414
|
m(u, f) {
|
|
415
415
|
R(u, i, f), g(i, t), g(t, r), g(r, n), g(t, l), g(l, v), g(i, L), g(L, y);
|
|
@@ -449,7 +449,7 @@ function oi(e) {
|
|
|
449
449
|
);
|
|
450
450
|
return {
|
|
451
451
|
c() {
|
|
452
|
-
i = b("div"), a.c(), t =
|
|
452
|
+
i = b("div"), a.c(), t = q(), d(i, "class", r = ti(
|
|
453
453
|
/*index*/
|
|
454
454
|
e[39] > +/*numberofentries*/
|
|
455
455
|
e[1] ? "LimitContainer" : ""
|
|
@@ -473,7 +473,7 @@ function oi(e) {
|
|
|
473
473
|
}
|
|
474
474
|
};
|
|
475
475
|
}
|
|
476
|
-
function
|
|
476
|
+
function Qi(e) {
|
|
477
477
|
let i;
|
|
478
478
|
function t(n, l) {
|
|
479
479
|
return (
|
|
@@ -495,8 +495,8 @@ function Xi(e) {
|
|
|
495
495
|
p(n, l) {
|
|
496
496
|
r === (r = t(n)) && o ? o.p(n, l) : (o.d(1), o = r(n), o && (o.c(), o.m(i, null)));
|
|
497
497
|
},
|
|
498
|
-
i:
|
|
499
|
-
o:
|
|
498
|
+
i: E,
|
|
499
|
+
o: E,
|
|
500
500
|
d(n) {
|
|
501
501
|
n && z(i), o.d(), e[23](null);
|
|
502
502
|
}
|
|
@@ -505,7 +505,7 @@ function Xi(e) {
|
|
|
505
505
|
function Vi(e, i, t) {
|
|
506
506
|
let r;
|
|
507
507
|
ki(e, Ii, (s) => t(9, r = s));
|
|
508
|
-
let o = window.navigator.userAgent, n = !
|
|
508
|
+
let o = window.navigator.userAgent, n = !Oi(o), { lang: l = "" } = i, { userid: a = "" } = i, { session: v = "" } = i, { endpoint: L = "" } = i, { apiversion: p = "" } = i, { numberofentries: y = "10" } = i, { customcurrencysymbols: u = "" } = i, { limitformat: f = "" } = i, { clientstyling: A = "" } = i, { clientstylingurl: w = "" } = i, { mbsource: h } = i, { translationurl: S = "" } = i, m, W, k = new Array(), N = parseInt(y, 10), U = !1, H = !0, I = [], O = [], F = !0, G = !1, j = { EUR: "€", RON: "lei", TRY: "₺" };
|
|
509
509
|
const ai = () => {
|
|
510
510
|
fetch(S).then((c) => c.json()).then((c) => {
|
|
511
511
|
Object.keys(c).forEach((_) => {
|
|
@@ -515,8 +515,8 @@ function Vi(e, i, t) {
|
|
|
515
515
|
console.log(c);
|
|
516
516
|
});
|
|
517
517
|
};
|
|
518
|
-
Object.keys(
|
|
519
|
-
si(s,
|
|
518
|
+
Object.keys(Y).forEach((s) => {
|
|
519
|
+
si(s, Y[s]);
|
|
520
520
|
});
|
|
521
521
|
const ni = () => {
|
|
522
522
|
let s = p === "gmcore" ? `/v2/player/${a}/transactions/limit` : `/v1/player/${a}/limits/monetary/history`, c = new URL(`${L}${s}`);
|
|
@@ -531,14 +531,14 @@ function Vi(e, i, t) {
|
|
|
531
531
|
return T.json();
|
|
532
532
|
}).then(
|
|
533
533
|
(T) => {
|
|
534
|
-
T.length && (I = li(T), t(7,
|
|
534
|
+
T.length && (I = li(T), t(7, O = I.slice(0, N))), t(4, H = !1);
|
|
535
535
|
},
|
|
536
536
|
(T) => {
|
|
537
537
|
console.error("There was an error", T), t(6, U = !0);
|
|
538
538
|
}
|
|
539
539
|
);
|
|
540
540
|
}, li = (s) => {
|
|
541
|
-
const c = !!
|
|
541
|
+
const c = !!Y[l];
|
|
542
542
|
return s.map((T) => {
|
|
543
543
|
let C = {
|
|
544
544
|
amount: "",
|
|
@@ -560,17 +560,17 @@ function Vi(e, i, t) {
|
|
|
560
560
|
const _ = c.match(/\{(\d+)decimals\}/), T = _ ? parseInt(_[1], 10) : 2, C = _ ? new RegExp("\\{\\d+decimals\\}", "g") : "{decimals}";
|
|
561
561
|
let B = parseFloat(s.limitAmount).toFixed(T);
|
|
562
562
|
const [hi, K] = f.includes(".") ? [",", "."] : [".", ","];
|
|
563
|
-
let [
|
|
564
|
-
return
|
|
563
|
+
let [Q, Li] = B.split(".");
|
|
564
|
+
return Q = Q.replace(/\B(?=(\d{3})+(?!\d))/g, hi), B = `${Q}${K}${Li}`, c = c.replace("{currency}", j[s.limitCurrencyCode] || s.limitCurrencyCode).replace("{amount}", B.split(K)[0]).replace(
|
|
565
565
|
C,
|
|
566
566
|
B.split(K)[1]
|
|
567
567
|
), c;
|
|
568
568
|
}, di = () => {
|
|
569
|
-
t(5,
|
|
569
|
+
t(5, F = !F), t(8, G = !G);
|
|
570
570
|
};
|
|
571
571
|
let J = new IntersectionObserver((s) => {
|
|
572
572
|
s.forEach((c) => {
|
|
573
|
-
c.isIntersecting && (N += parseInt(y, 10) || 10,
|
|
573
|
+
c.isIntersecting && (N += parseInt(y, 10) || 10, O.length < I.length && t(7, O = I.slice(0, N)));
|
|
574
574
|
});
|
|
575
575
|
});
|
|
576
576
|
const pi = () => {
|
|
@@ -584,7 +584,7 @@ function Vi(e, i, t) {
|
|
|
584
584
|
s[_[0].trim()] = _[1].trim();
|
|
585
585
|
}), j = V(V({}, j), s);
|
|
586
586
|
}, ui = () => {
|
|
587
|
-
|
|
587
|
+
Fi(l);
|
|
588
588
|
};
|
|
589
589
|
xi(() => () => {
|
|
590
590
|
J.unobserve(k[k.length - 1]);
|
|
@@ -605,7 +605,7 @@ function Vi(e, i, t) {
|
|
|
605
605
|
e.$$.dirty[0] & /*customcurrencysymbols*/
|
|
606
606
|
65536 && u && yi(), e.$$.dirty[0] & /*endpoint, userid, session, apiversion*/
|
|
607
607
|
61440 && L && a && v && p && ni(), e.$$.dirty[0] & /*limitContainer, isLoading, hidden*/
|
|
608
|
-
56 && k[0] && !H && !
|
|
608
|
+
56 && k[0] && !H && !F && pi(), e.$$.dirty[0] & /*lang*/
|
|
609
609
|
1 && l && ui(), e.$$.dirty[0] & /*clientstyling, customStylingContainer*/
|
|
610
610
|
262148 && A && m && Ri(m, A), e.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
|
|
611
611
|
524292 && w && m && ji(m, w), e.$$.dirty[0] & /*mbsource, customStylingContainer*/
|
|
@@ -617,9 +617,9 @@ function Vi(e, i, t) {
|
|
|
617
617
|
m,
|
|
618
618
|
k,
|
|
619
619
|
H,
|
|
620
|
-
O,
|
|
621
|
-
U,
|
|
622
620
|
F,
|
|
621
|
+
U,
|
|
622
|
+
O,
|
|
623
623
|
G,
|
|
624
624
|
r,
|
|
625
625
|
n,
|
|
@@ -638,13 +638,13 @@ function Vi(e, i, t) {
|
|
|
638
638
|
gi
|
|
639
639
|
];
|
|
640
640
|
}
|
|
641
|
-
class
|
|
641
|
+
class Xi extends _i {
|
|
642
642
|
constructor(i) {
|
|
643
643
|
super(), Pi(
|
|
644
644
|
this,
|
|
645
645
|
i,
|
|
646
646
|
Vi,
|
|
647
|
-
|
|
647
|
+
Qi,
|
|
648
648
|
Ai,
|
|
649
649
|
{
|
|
650
650
|
lang: 0,
|
|
@@ -737,7 +737,7 @@ class Yi extends _i {
|
|
|
737
737
|
this.$$set({ translationurl: i }), P();
|
|
738
738
|
}
|
|
739
739
|
}
|
|
740
|
-
Hi(
|
|
740
|
+
Hi(Xi, { lang: {}, userid: {}, session: {}, endpoint: {}, apiversion: {}, numberofentries: {}, customcurrencysymbols: {}, limitformat: {}, clientstyling: {}, clientstylingurl: {}, mbsource: {}, translationurl: {} }, [], [], !0);
|
|
741
741
|
export {
|
|
742
|
-
|
|
742
|
+
Xi as default
|
|
743
743
|
};
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { i as zi } from "./PlayerAccountGamingLimitsWrapper2Nd-
|
|
1
|
+
import { b as hi, a as Li, S as fi, w as vi, D as wi, s as P, e as Ti, z as E, o as z, x as R, p as b, f as d, i as bi, B as Si, g as J, K as x, d as g, Q as D, r as Z, n as _i, U as M, y as Pi, N as Y, O as V, M as Ai, A as $, G as Ci, H as ki, I as xi, k as Di, $ as Ei } from "./PlayerLimitNotification-CvQlhnPu.js";
|
|
2
|
+
import { i as zi } from "./PlayerAccountGamingLimitsWrapper2Nd-coe-8402.js";
|
|
3
3
|
function ii(e, i) {
|
|
4
4
|
hi(e, i);
|
|
5
5
|
}
|
|
6
6
|
function Ri(e) {
|
|
7
7
|
Li.set(e);
|
|
8
8
|
}
|
|
9
|
-
const
|
|
9
|
+
const X = {
|
|
10
10
|
en: {
|
|
11
11
|
expandLimits: "Limit history",
|
|
12
12
|
daily: "per day",
|
|
@@ -248,7 +248,7 @@ function Wi(e) {
|
|
|
248
248
|
let i, t, r, o = (
|
|
249
249
|
/*$_*/
|
|
250
250
|
e[9]("expandLimits") + ""
|
|
251
|
-
), n, l, a, v, L, p, y,
|
|
251
|
+
), n, l, a, v, L, p, y, u, f, A = Z(
|
|
252
252
|
/*lazyShowedHistoryArray*/
|
|
253
253
|
e[7]
|
|
254
254
|
), w = [];
|
|
@@ -256,7 +256,7 @@ function Wi(e) {
|
|
|
256
256
|
w[h] = ti(ei(e, A, h));
|
|
257
257
|
return {
|
|
258
258
|
c() {
|
|
259
|
-
i = b("div"), t = b("div"), r = b("button"), n =
|
|
259
|
+
i = b("div"), t = b("div"), r = b("button"), n = D(o), l = Y(), a = V("svg"), v = V("path"), L = V("path"), p = Y(), y = b("div");
|
|
260
260
|
for (let h = 0; h < w.length; h += 1)
|
|
261
261
|
w[h].c();
|
|
262
262
|
d(v, "d", "M10.5 15l7.5 7.5 7.5-7.5z"), d(v, "class", "svelte-1wi0iai"), d(L, "d", "M0 0h36v36h-36z"), d(L, "fill", "none"), d(L, "class", "svelte-1wi0iai"), d(a, "class", "ExpandArrow " + (/*isDesktop*/
|
|
@@ -278,12 +278,12 @@ function Wi(e) {
|
|
|
278
278
|
R(h, i, S), g(i, t), g(t, r), g(r, n), g(r, l), g(r, a), g(a, v), g(a, L), g(t, p), g(t, y);
|
|
279
279
|
for (let m = 0; m < w.length; m += 1)
|
|
280
280
|
w[m] && w[m].m(y, null);
|
|
281
|
-
|
|
281
|
+
u || (f = Pi(
|
|
282
282
|
r,
|
|
283
283
|
"click",
|
|
284
284
|
/*toggleHistoryDisplayArea*/
|
|
285
285
|
e[11]
|
|
286
|
-
),
|
|
286
|
+
), u = !0);
|
|
287
287
|
},
|
|
288
288
|
p(h, S) {
|
|
289
289
|
if (S[0] & /*$_*/
|
|
@@ -318,12 +318,12 @@ function Wi(e) {
|
|
|
318
318
|
);
|
|
319
319
|
},
|
|
320
320
|
d(h) {
|
|
321
|
-
h && z(i), _i(w, h),
|
|
321
|
+
h && z(i), _i(w, h), u = !1, f();
|
|
322
322
|
}
|
|
323
323
|
};
|
|
324
324
|
}
|
|
325
325
|
function Hi(e) {
|
|
326
|
-
return { c:
|
|
326
|
+
return { c: E, m: E, p: E, d: E };
|
|
327
327
|
}
|
|
328
328
|
function Ii(e) {
|
|
329
329
|
let i, t = (
|
|
@@ -335,7 +335,7 @@ function Ii(e) {
|
|
|
335
335
|
), r;
|
|
336
336
|
return {
|
|
337
337
|
c() {
|
|
338
|
-
i = b("p"), r =
|
|
338
|
+
i = b("p"), r = D(t), d(i, "class", "svelte-1wi0iai");
|
|
339
339
|
},
|
|
340
340
|
m(o, n) {
|
|
341
341
|
R(o, i, n), g(i, r);
|
|
@@ -353,7 +353,7 @@ function Ii(e) {
|
|
|
353
353
|
}
|
|
354
354
|
};
|
|
355
355
|
}
|
|
356
|
-
function
|
|
356
|
+
function Oi(e) {
|
|
357
357
|
let i, t, r, o = (
|
|
358
358
|
/*history*/
|
|
359
359
|
e[37].type + ""
|
|
@@ -366,26 +366,26 @@ function Fi(e) {
|
|
|
366
366
|
), y;
|
|
367
367
|
return {
|
|
368
368
|
c() {
|
|
369
|
-
i = b("div"), t = b("span"), r = b("span"), n =
|
|
369
|
+
i = b("div"), t = b("span"), r = b("span"), n = D(o), l = b("span"), v = D(a), L = b("span"), y = D(p), d(r, "class", "LimitType svelte-1wi0iai"), d(l, "class", "LimitAmountPeriod svelte-1wi0iai"), d(t, "class", "GeneralLimitInformation svelte-1wi0iai"), d(L, "class", "DateLimitInformation svelte-1wi0iai"), d(i, "class", "HistoryRow svelte-1wi0iai");
|
|
370
370
|
},
|
|
371
|
-
m(
|
|
372
|
-
R(
|
|
371
|
+
m(u, f) {
|
|
372
|
+
R(u, i, f), g(i, t), g(t, r), g(r, n), g(t, l), g(l, v), g(i, L), g(L, y);
|
|
373
373
|
},
|
|
374
|
-
p(
|
|
374
|
+
p(u, f) {
|
|
375
375
|
f[0] & /*lazyShowedHistoryArray*/
|
|
376
376
|
128 && o !== (o = /*history*/
|
|
377
|
-
|
|
377
|
+
u[37].type + "") && x(n, o), f[0] & /*lazyShowedHistoryArray*/
|
|
378
378
|
128 && a !== (a = /*history*/
|
|
379
|
-
|
|
379
|
+
u[37].amount + "") && x(v, a), f[0] & /*lazyShowedHistoryArray*/
|
|
380
380
|
128 && p !== (p = /*history*/
|
|
381
|
-
|
|
381
|
+
u[37].date + "") && x(y, p);
|
|
382
382
|
},
|
|
383
|
-
d(
|
|
384
|
-
|
|
383
|
+
d(u) {
|
|
384
|
+
u && z(i);
|
|
385
385
|
}
|
|
386
386
|
};
|
|
387
387
|
}
|
|
388
|
-
function
|
|
388
|
+
function Fi(e) {
|
|
389
389
|
let i, t, r, o = (
|
|
390
390
|
/*history*/
|
|
391
391
|
e[37].type + ""
|
|
@@ -398,22 +398,22 @@ function Oi(e) {
|
|
|
398
398
|
), y;
|
|
399
399
|
return {
|
|
400
400
|
c() {
|
|
401
|
-
i = b("div"), t = b("span"), r = b("span"), n =
|
|
401
|
+
i = b("div"), t = b("span"), r = b("span"), n = D(o), l = b("span"), v = D(a), L = b("span"), y = D(p), d(r, "class", "LimitType svelte-1wi0iai"), d(l, "class", "LimitAmountPeriod svelte-1wi0iai"), d(t, "class", "GeneralLimitInformation svelte-1wi0iai"), d(L, "class", "DateLimitInformation svelte-1wi0iai"), d(i, "class", "HistoryRow svelte-1wi0iai");
|
|
402
402
|
},
|
|
403
|
-
m(
|
|
404
|
-
R(
|
|
403
|
+
m(u, f) {
|
|
404
|
+
R(u, i, f), g(i, t), g(t, r), g(r, n), g(t, l), g(l, v), g(i, L), g(L, y);
|
|
405
405
|
},
|
|
406
|
-
p(
|
|
406
|
+
p(u, f) {
|
|
407
407
|
f[0] & /*lazyShowedHistoryArray*/
|
|
408
408
|
128 && o !== (o = /*history*/
|
|
409
|
-
|
|
409
|
+
u[37].type + "") && x(n, o), f[0] & /*$_*/
|
|
410
410
|
512 && a !== (a = /*$_*/
|
|
411
|
-
|
|
411
|
+
u[9]("limitRemoved") + "") && x(v, a), f[0] & /*lazyShowedHistoryArray*/
|
|
412
412
|
128 && p !== (p = /*history*/
|
|
413
|
-
|
|
413
|
+
u[37].date + "") && x(y, p);
|
|
414
414
|
},
|
|
415
|
-
d(
|
|
416
|
-
|
|
415
|
+
d(u) {
|
|
416
|
+
u && z(i);
|
|
417
417
|
}
|
|
418
418
|
};
|
|
419
419
|
}
|
|
@@ -425,7 +425,7 @@ function ti(e) {
|
|
|
425
425
|
function n(p, y) {
|
|
426
426
|
return (
|
|
427
427
|
/*history*/
|
|
428
|
-
p[37].removed ?
|
|
428
|
+
p[37].removed ? Fi : Oi
|
|
429
429
|
);
|
|
430
430
|
}
|
|
431
431
|
let l = n(e), a = l(e);
|
|
@@ -484,8 +484,8 @@ function Bi(e) {
|
|
|
484
484
|
p(n, l) {
|
|
485
485
|
r === (r = t(n)) && o ? o.p(n, l) : (o.d(1), o = r(n), o && (o.c(), o.m(i, null)));
|
|
486
486
|
},
|
|
487
|
-
i:
|
|
488
|
-
o:
|
|
487
|
+
i: E,
|
|
488
|
+
o: E,
|
|
489
489
|
d(n) {
|
|
490
490
|
n && z(i), o.d(), e[23](null);
|
|
491
491
|
}
|
|
@@ -493,41 +493,41 @@ function Bi(e) {
|
|
|
493
493
|
}
|
|
494
494
|
function Mi(e, i, t) {
|
|
495
495
|
let r;
|
|
496
|
-
bi(e,
|
|
497
|
-
let o = window.navigator.userAgent, n = !zi(o), { lang: l = "" } = i, { userid: a = "" } = i, { session: v = "" } = i, { endpoint: L = "" } = i, { apiversion: p = "" } = i, { numberofentries: y = "10" } = i, { customcurrencysymbols:
|
|
496
|
+
bi(e, Ei, (s) => t(9, r = s));
|
|
497
|
+
let o = window.navigator.userAgent, n = !zi(o), { lang: l = "" } = i, { userid: a = "" } = i, { session: v = "" } = i, { endpoint: L = "" } = i, { apiversion: p = "" } = i, { numberofentries: y = "10" } = i, { customcurrencysymbols: u = "" } = i, { limitformat: f = "" } = i, { clientstyling: A = "" } = i, { clientstylingurl: w = "" } = i, { mbsource: h } = i, { translationurl: S = "" } = i, m, W, k = new Array(), N = parseInt(y, 10), U = !1, H = !0, I = [], O = [], F = !0, G = !1, j = { EUR: "€", RON: "lei", TRY: "₺" };
|
|
498
498
|
const si = () => {
|
|
499
|
-
fetch(S).then((
|
|
500
|
-
Object.keys(
|
|
501
|
-
ii(_,
|
|
499
|
+
fetch(S).then((c) => c.json()).then((c) => {
|
|
500
|
+
Object.keys(c).forEach((_) => {
|
|
501
|
+
ii(_, c[_]);
|
|
502
502
|
});
|
|
503
|
-
}).catch((
|
|
504
|
-
console.log(
|
|
503
|
+
}).catch((c) => {
|
|
504
|
+
console.log(c);
|
|
505
505
|
});
|
|
506
506
|
};
|
|
507
|
-
Object.keys(
|
|
508
|
-
ii(s,
|
|
507
|
+
Object.keys(X).forEach((s) => {
|
|
508
|
+
ii(s, X[s]);
|
|
509
509
|
});
|
|
510
510
|
const ri = () => {
|
|
511
|
-
let s = p === "gmcore" ? `/v2/player/${a}/transactions/limit` : `/v1/player/${a}/limits/monetary/history`,
|
|
512
|
-
|
|
511
|
+
let s = p === "gmcore" ? `/v2/player/${a}/transactions/limit` : `/v1/player/${a}/limits/monetary/history`, c = new URL(`${L}${s}`);
|
|
512
|
+
c.searchParams.append("startDate", `${(/* @__PURE__ */ new Date("2022")).toISOString()}`), c.searchParams.append("endDate", `${(/* @__PURE__ */ new Date("2099")).toISOString()}`), c.searchParams.append("limit", "10000");
|
|
513
513
|
let _ = {
|
|
514
514
|
method: "GET",
|
|
515
515
|
headers: { "X-SessionID": v }
|
|
516
516
|
};
|
|
517
|
-
fetch(
|
|
517
|
+
fetch(c.href, _).then((T) => {
|
|
518
518
|
if (T.status >= 300)
|
|
519
519
|
throw t(4, H = !1), t(6, U = !0), new Error("There was an error fetching the limits");
|
|
520
520
|
return T.json();
|
|
521
521
|
}).then(
|
|
522
522
|
(T) => {
|
|
523
|
-
T.length && (I = oi(T), t(7,
|
|
523
|
+
T.length && (I = oi(T), t(7, O = I.slice(0, N))), t(4, H = !1);
|
|
524
524
|
},
|
|
525
525
|
(T) => {
|
|
526
526
|
console.error("There was an error", T), t(6, U = !0);
|
|
527
527
|
}
|
|
528
528
|
);
|
|
529
529
|
}, oi = (s) => {
|
|
530
|
-
const
|
|
530
|
+
const c = !!X[l];
|
|
531
531
|
return s.map((T) => {
|
|
532
532
|
let C = {
|
|
533
533
|
amount: "",
|
|
@@ -537,50 +537,50 @@ function Mi(e, i, t) {
|
|
|
537
537
|
type: "",
|
|
538
538
|
removed: !1
|
|
539
539
|
};
|
|
540
|
-
return C.amount = ai(T), C.currency =
|
|
540
|
+
return C.amount = ai(T), C.currency = c ? j[T.limitCurrencyCode] : T.limitCurrencyCode, C.date = new Intl.DateTimeFormat("de", { dateStyle: "medium" }).format(new Date(T.limitDate)), C.period = r(`${T.limitPeriod.toLowerCase()}`), C.type = p === "gmcore" ? r(`historyLimitType${T.limitType.split(" ")[0]}`) : r(`historyLimitType${T.limitType.split(" ")[0]}`) + " " + r(`historyProductType${T.limitProductType}`), C.removed = T.limitAmount === -1, C;
|
|
541
541
|
});
|
|
542
542
|
}, ai = (s) => {
|
|
543
|
-
let
|
|
543
|
+
let c = f || Intl.NumberFormat("en-US", { maximumFractionDigits: 0 }).format(s.limitAmount);
|
|
544
544
|
if (!f) {
|
|
545
545
|
let gi = j[s.limitCurrencyCode] || s.limitCurrencyCode;
|
|
546
|
-
return `${
|
|
546
|
+
return `${c}${gi}`;
|
|
547
547
|
}
|
|
548
548
|
typeof s.limitAmount == "string" && s.limitAmount.includes(",") && (s.limitAmount = s.limitAmount.replaceAll(",", ""));
|
|
549
|
-
const _ =
|
|
549
|
+
const _ = c.match(/\{(\d+)decimals\}/), T = _ ? parseInt(_[1], 10) : 2, C = _ ? new RegExp("\\{\\d+decimals\\}", "g") : "{decimals}";
|
|
550
550
|
let B = parseFloat(s.limitAmount).toFixed(T);
|
|
551
|
-
const [
|
|
552
|
-
let [
|
|
553
|
-
return
|
|
551
|
+
const [ui, K] = f.includes(".") ? [",", "."] : [".", ","];
|
|
552
|
+
let [Q, ci] = B.split(".");
|
|
553
|
+
return Q = Q.replace(/\B(?=(\d{3})+(?!\d))/g, ui), B = `${Q}${K}${ci}`, c = c.replace("{currency}", j[s.limitCurrencyCode] || s.limitCurrencyCode).replace("{amount}", B.split(K)[0]).replace(
|
|
554
554
|
C,
|
|
555
555
|
B.split(K)[1]
|
|
556
|
-
),
|
|
556
|
+
), c;
|
|
557
557
|
}, ni = () => {
|
|
558
|
-
t(5,
|
|
558
|
+
t(5, F = !F), t(8, G = !G);
|
|
559
559
|
};
|
|
560
|
-
let
|
|
561
|
-
s.forEach((
|
|
562
|
-
|
|
560
|
+
let q = new IntersectionObserver((s) => {
|
|
561
|
+
s.forEach((c) => {
|
|
562
|
+
c.isIntersecting && (N += parseInt(y, 10) || 10, O.length < I.length && t(7, O = I.slice(0, N)));
|
|
563
563
|
});
|
|
564
564
|
});
|
|
565
565
|
const li = () => {
|
|
566
|
-
|
|
566
|
+
q.observe(k[k.length - 1]);
|
|
567
567
|
}, mi = () => {
|
|
568
|
-
if (!
|
|
568
|
+
if (!u)
|
|
569
569
|
return;
|
|
570
570
|
let s = {};
|
|
571
|
-
|
|
572
|
-
let _ =
|
|
571
|
+
u.split(",").forEach((c) => {
|
|
572
|
+
let _ = c.split(":");
|
|
573
573
|
s[_[0].trim()] = _[1].trim();
|
|
574
574
|
}), j = { ...j, ...s };
|
|
575
575
|
}, di = () => {
|
|
576
576
|
Ri(l);
|
|
577
577
|
};
|
|
578
578
|
Si(() => () => {
|
|
579
|
-
|
|
579
|
+
q.unobserve(k[k.length - 1]);
|
|
580
580
|
});
|
|
581
|
-
function pi(s,
|
|
581
|
+
function pi(s, c) {
|
|
582
582
|
J[s ? "unshift" : "push"](() => {
|
|
583
|
-
k[
|
|
583
|
+
k[c] = s, t(3, k);
|
|
584
584
|
});
|
|
585
585
|
}
|
|
586
586
|
function yi(s) {
|
|
@@ -589,12 +589,12 @@ function Mi(e, i, t) {
|
|
|
589
589
|
});
|
|
590
590
|
}
|
|
591
591
|
return e.$$set = (s) => {
|
|
592
|
-
"lang" in s && t(0, l = s.lang), "userid" in s && t(12, a = s.userid), "session" in s && t(13, v = s.session), "endpoint" in s && t(14, L = s.endpoint), "apiversion" in s && t(15, p = s.apiversion), "numberofentries" in s && t(1, y = s.numberofentries), "customcurrencysymbols" in s && t(16,
|
|
592
|
+
"lang" in s && t(0, l = s.lang), "userid" in s && t(12, a = s.userid), "session" in s && t(13, v = s.session), "endpoint" in s && t(14, L = s.endpoint), "apiversion" in s && t(15, p = s.apiversion), "numberofentries" in s && t(1, y = s.numberofentries), "customcurrencysymbols" in s && t(16, u = s.customcurrencysymbols), "limitformat" in s && t(17, f = s.limitformat), "clientstyling" in s && t(18, A = s.clientstyling), "clientstylingurl" in s && t(19, w = s.clientstylingurl), "mbsource" in s && t(20, h = s.mbsource), "translationurl" in s && t(21, S = s.translationurl);
|
|
593
593
|
}, e.$$.update = () => {
|
|
594
594
|
e.$$.dirty[0] & /*customcurrencysymbols*/
|
|
595
|
-
65536 &&
|
|
595
|
+
65536 && u && mi(), e.$$.dirty[0] & /*endpoint, userid, session, apiversion*/
|
|
596
596
|
61440 && L && a && v && p && ri(), e.$$.dirty[0] & /*limitContainer, isLoading, hidden*/
|
|
597
|
-
56 && k[0] && !H && !
|
|
597
|
+
56 && k[0] && !H && !F && li(), e.$$.dirty[0] & /*lang*/
|
|
598
598
|
1 && l && di(), e.$$.dirty[0] & /*clientstyling, customStylingContainer*/
|
|
599
599
|
262148 && A && m && Ci(m, A), e.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
|
|
600
600
|
524292 && w && m && ki(m, w), e.$$.dirty[0] & /*mbsource, customStylingContainer*/
|
|
@@ -606,9 +606,9 @@ function Mi(e, i, t) {
|
|
|
606
606
|
m,
|
|
607
607
|
k,
|
|
608
608
|
H,
|
|
609
|
-
O,
|
|
610
|
-
U,
|
|
611
609
|
F,
|
|
610
|
+
U,
|
|
611
|
+
O,
|
|
612
612
|
G,
|
|
613
613
|
r,
|
|
614
614
|
n,
|
|
@@ -617,7 +617,7 @@ function Mi(e, i, t) {
|
|
|
617
617
|
v,
|
|
618
618
|
L,
|
|
619
619
|
p,
|
|
620
|
-
|
|
620
|
+
u,
|
|
621
621
|
f,
|
|
622
622
|
A,
|
|
623
623
|
w,
|
|
@@ -726,7 +726,7 @@ class Ni extends fi {
|
|
|
726
726
|
this.$$set({ translationurl: i }), P();
|
|
727
727
|
}
|
|
728
728
|
}
|
|
729
|
-
|
|
729
|
+
Di(Ni, { lang: {}, userid: {}, session: {}, endpoint: {}, apiversion: {}, numberofentries: {}, customcurrencysymbols: {}, limitformat: {}, clientstyling: {}, clientstylingurl: {}, mbsource: {}, translationurl: {} }, [], [], !0);
|
|
730
730
|
export {
|
|
731
731
|
Ni as default
|
|
732
732
|
};
|